Viewing File: /home/maglabs/riadlooma2/wp-content/themes/homey/js/homey-maps.min.js

!function(v){"use strict";function r(e,a){a=v(a).filter("span.locality").html();v("#"+e).val(a)}function a(e){var a,t,o,n,l,i=0;for(v('input[name="search_city"]').val(""),v('input[name="search_area"]').val(""),v('input[name="search_country"]').val(""),v('input[name="lat"]').val(e.geometry.location.lat()),v('input[name="lng"]').val(e.geometry.location.lng()),a=0;a<e.address_components.length;a++)t=e.address_components[a].types[0],void 0!==(o=e.address_components[a][Ie[t]])&&(o=(o=o.toLowerCase()).split(" ").join("-")),"neighborhood"===t||"sublocality_level_1"===t||"administrative_area_level_2"===t?(v('input[name="search_area"]').attr("data-value",o),v('input[name="search_area"]').val(o)):"locality"===t?(v('input[name="search_city"]').attr("data-value",o),v('input[name="search_city"]').val(o),""!==o&&(i=1)):"country"===t&&(v('input[name="search_country"]').attr("data-value",o),v('input[name="search_country"]').val(o));0===i&&(n="search_city",l=e.adr_address,l=v(l).filter("span.locality").html(),v('input[name="'+n+'"]').val(l))}var y,h,f,w,E,c,t,o,n,M,e,l,i,b,O,I,B,p,g,u,_,L,H,k,Y,x,z,P,C,T,S,R,A,j,D,Z,F,N,V,W,G,U,J,K,Q,q,X,$,ee,ae,te,oe,ne,le,ie,se,re,me,de,ce,pe,ge,s,m,ue,_e,d,ve,ye,he,fe,we,Ee,Me,be,Oe,Ie,Be,Le,He,ke,Ye,xe,ze,Pe,Ce,Te,Se,Re,Ae,je,De,Ze,Fe,Ne,Ve,We,Ge,Ue;"undefined"!=typeof HOMEY_map_vars&&(h=HOMEY_map_vars.user_id,f=v("#listings_found"),w=HOMEY_map_vars.admin_url+"admin-ajax.php",E=HOMEY_map_vars.header_map_city,c=HOMEY_map_vars.markerPricePins,t=HOMEY_map_vars.pin_cluster,o=HOMEY_map_vars.pin_cluster_icon,n=HOMEY_map_vars.pin_cluster_zoom,M=HOMEY_map_vars.is_singular_listing,Fe=HOMEY_map_vars.homey_default_radius,e=HOMEY_map_vars.geo_country_limit,l=HOMEY_map_vars.geocomplete_country,i=0,b=new Array,O=v("#homey_halfmap_listings_container"),new google.maps.InfoWindow,le=HOMEY_map_vars.google_map_style,I=HOMEY_map_vars.default_lat,B=HOMEY_map_vars.default_lng,p=HOMEY_map_vars.arrive,g=HOMEY_map_vars.depart,u=HOMEY_map_vars.guests,_=HOMEY_map_vars.pets,L=HOMEY_map_vars.search_country,H=HOMEY_map_vars.search_city,k=HOMEY_map_vars.search_area,Y=HOMEY_map_vars.listing_type,x=HOMEY_map_vars.country,z=HOMEY_map_vars.state,P=HOMEY_map_vars.city,ve=HOMEY_map_vars.booking_type,C=HOMEY_map_vars.start_time,T=HOMEY_map_vars.end_time,S=HOMEY_map_vars.min_price,R=HOMEY_map_vars.max_price,A=HOMEY_map_vars.keyword,j=HOMEY_map_vars.lat,D=HOMEY_map_vars.lng,Z=HOMEY_map_vars.radius,F=HOMEY_map_vars.bedrooms,N=HOMEY_map_vars.rooms,V=HOMEY_map_vars.room_size,W=W=HOMEY_map_vars.area,G=HOMEY_map_vars.amenity,U=HOMEY_map_vars.facility,J=HOMEY_map_vars.not_found,d=HOMEY_map_vars.infoboxClose,K=HOMEY_map_vars.bedrooms_icon,Q=HOMEY_map_vars.bathroom_icon,q=HOMEY_map_vars.guests_icon,X=v("#securityhomeyMap").val(),$=0,ee=HOMEY_ajax_vars.compare_url,ae=HOMEY_ajax_vars.add_compare,te=HOMEY_ajax_vars.remove_compare,oe=HOMEY_ajax_vars.compare_limit,ne=!1,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(ne=!0),""!=le&&(le=JSON.parse(le)),Ue="yes"==c?-30:-70,ie=new InfoBox({maxWidth:300,alignBottom:!0,disableAutoPan:!1,pixelOffset:new google.maps.Size(-160,Ue),zIndex:null,boxClass:"homeyInfobox",closeBoxMargin:"13px 2px -14px 2px",closeBoxURL:d,infoBoxClearance:new google.maps.Size(20,20),pane:"floatPane",enableEventPropagation:!1}),se=function(e){var a;"yes"==t&&(a=16,(n=parseInt(n))&&(a=n),new MarkerClusterer(e,b,{maxZoom:a,gridSize:60,styles:[{url:o,width:48,height:48,textColor:"#fff"}]}))},re=function(a){google.maps.event.addDomListener(document.getElementById("listing-mapzoomin"),"click",function(){var e=parseInt(a.getZoom(),10);console.log(e),20<++e&&(e=20),console.log("== "+e+" ++"),a.setZoom(e)})},me=function(a){google.maps.event.addDomListener(document.getElementById("listing-mapzoomout"),"click",function(){var e=parseInt(a.getZoom(),10);console.log(e),--e<0&&(e=0),console.log("== "+e+" -- "),a.setZoom(e)})},v(".homeyMapType").on("click",function(e){e.preventDefault();e=v(this).data("maptype");"roadmap"===(e=e)?y.setMapTypeId(google.maps.MapTypeId.ROADMAP):"satellite"===e?y.setMapTypeId(google.maps.MapTypeId.SATELLITE):"hybrid"===e?y.setMapTypeId(google.maps.MapTypeId.HYBRID):"terrain"===e&&y.setMapTypeId(google.maps.MapTypeId.TERRAIN)}),v("#homey-gmap-next").on("click",function(){!function(){for(++i>b.length&&(i=1);!1===b[i-1].visible;)++i>b.length&&(i=1);console.log(i-1),google.maps.event.trigger(b[i-1],"click")}()}),v("#homey-gmap-prev").on("click",function(){!function(){for(--i<1&&(i=b.length);!1===b[i-1].visible;)--i>b.length&&(i=1);console.log(i-1),google.maps.event.trigger(b[i-1],"click")}()}),de=function(e,o){var a=new google.maps.places.SearchBox(e);o.controls[google.maps.ControlPosition.TOP_LEFT].push(e),o.addListener("bounds_changed",function(){a.setBounds(o.getBounds())});var n=[];a.addListener("places_changed",function(){var t,e=a.getPlaces();0!=e.length&&(n.forEach(function(e){e.setMap(null)}),n=[],t=new google.maps.LatLngBounds,e.forEach(function(e){var a={url:e.icon,size:new google.maps.Size(71,71),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(17,34),scaledSize:new google.maps.Size(25,25)};n.push(new google.maps.Marker({map:o,icon:a,title:e.name,position:e.geometry.location})),e.geometry.viewport?t.union(e.geometry.viewport):t.extend(e.geometry.location)}),o.fitBounds(t))})},ce=function(){for(var e=0;e<b.length;e++)b[e].setMap(null);b=[]},pe=function(e,d){v.each(e,function(e,a){var t,o=new google.maps.LatLng(a.lat,a.long),n=a.data?a.data.post_title:a.title;t="yes"==c?(l='<div data-id="'+a.id+'" class="gm-marker gm-marker-color-'+a.term_id+'"><div class="gm-marker-price">'+a.price+"</div></div>",new RichMarker({map:d,position:o,draggable:!1,flat:!0,anchor:RichMarkerPosition.MIDDLE,content:l})):(i=a.icon,s=new google.maps.Size(44,56),1.5<window.devicePixelRatio&&a.retinaIcon&&(i=a.retinaIcon,s=new google.maps.Size(44,56)),r={url:i,size:s,scaledSize:new google.maps.Size(44,56)},new google.maps.Marker({position:o,map:d,icon:r,draggable:!1,title:n}));var l="",i="",s="",o="",r="?arrive="+a.arrive+"&depart="+a.depart;""!=a.bedrooms&&(l="<li>"+K+'<span class="total-beds">'+a.bedrooms+"</span></li>"),""!=a.baths&&(i="<li>"+Q+'<span class="total-baths">'+a.baths+"</span></li>"),""!=a.guests&&(s="<li>"+q+'<span class="total-guests">'+a.guests+"</span></li>"),""!=a.listing_type&&(o='<li class="item-type">'+a.listing_type+"</li>");var m='<div id="google-maps-info-window"><div class="item-wrap item-grid-view"><div class="media property-item"><div class="media-left"><div class="item-media item-media-thumb"><a href="'+a.url+r+'" class="hover-effect">'+a.thumbnail+'</a><div class="item-media-price"><span class="item-price">'+a.price+'</span></div></div></div><div class="media-body item-body clearfix"><div class="item-title-head"><div class="title-head-left"><h2 class="title"><a href="'+a.url+r+'">'+n+'</a></h2><address class="item-address">'+a.address+'</address></div></div><ul class="item-amenities">'+l+i+s+o+"</ul></div></div></div></div>";google.maps.event.addListener(t,"click",function(e){ie.setContent(m),ie.open(d,this)}),b.push(t)})},ge=function(e,a,t,o,n,l,i,s,r,m){var d,c,p,g,u,_;null!=document.getElementById(t)?(l=l||14,i=i||0,d="",s?c="homey_half_map":(c="homey_header_map","lat_long"==m||"city"==m&&(d=E)),y=new google.maps.Map(document.getElementById(t),{zoom:l,zoomControl:!1,mapTypeControl:!1,streetViewControl:!1,overviewMapControl:!1,scrollwheel:!1,fullscreenControl:!0,fullscreenControlOptions:{position:google.maps.ControlPosition.RIGHT_BOTTOM},center:new google.maps.LatLng(e,a),mapTypeId:"roadmap",gestureHandling:"cooperative",styles:le}),p=s?r:{action:c,map_cities:d,security:X},google.maps.event.addListenerOnce(y,"idle",function(){u(w,p),g()}),g=function(){1==i&&google.maps.event.addListener(y,"dragend",function(){var e={action:c,map_cities:d,security:X,optimized_loading:1,north_east_lat:y.getBounds().getNorthEast().lat(),north_east_lng:y.getBounds().getNorthEast().lng(),south_west_lat:y.getBounds().getSouthWest().lat(),south_west_lng:y.getBounds().getSouthWest().lng()};u(w,e)})},u=function(o,e){v.ajax({url:o,dataType:"json",method:"POST",data:e,beforeSend:function(){v("#homey-map-loading").show(),s&&O.empty().append('<div id="homey-map-loading"><div class="mapPlaceholder"><div class="loader-ripple spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div></div>')},success:function(e){var a,t;!0===e.getListings?(ce(),pe(e.listings,y),s&&(O.empty().html(e.listingHtml),f.empty().html(e.total_results),ne||v(".infobox_trigger").each(function(e){v(this).on("mouseenter",function(){google.maps.event.trigger(b[e],"click")}),v(this).on("mouseleave",function(){ie.open(null,null)})})),i||_(),se(y),homey_init_add_favorite(o,h,M),homey_init_remove_favorite(o,h,M),a=homeyGetCookie("homey_compare_listings"),add_to_compare(ee,ae,te,oe,a,4),remove_from_compare(a,ae,te),s&&(fe(),v(".half-map-left-wrap, .half-map-right-wrap").animate({scrollTop:0},"slow")),v("#homey-map-loading").hide()):(ce(),y.setCenter(new google.maps.LatLng(I,B)),v("#homey-map-loading").hide(),v("#homey-halfmap").append('<div class="map-notfound">'+J+"</div>"),O.empty().html('<div class="map-notfound">'+J+"</div>"),f.empty().html(e.total_results)),s&&(t=setInterval(function(){v([document.documentElement,document.body]).animate({scrollTop:v(".half-map-right-wrap").offset().top},"slow"),clearInterval(t)},500))},error:function(e){console.log(e)}})},_=function(){y.fitBounds(b.reduce(function(e,a){return e.extend(a.getPosition())},new google.maps.LatLngBounds));var e=parseInt(y.getZoom(),10);20<e&&(e=14),y.setZoom(e)},document.getElementById("listing-mapzoomin")&&re(y),document.getElementById("listing-mapzoomout")&&me(y),document.getElementById("google-map-search")&&(r=document.getElementById("google-map-search"),de(r,y))):console.log("No map element found")},s=function(e,a,t,o,n,l,i,s,r,m){var d=v("#homey-halfmap");p=e.find('input[name="arrive"]').val(),g=e.find('input[name="depart"]').val(),u=e.find('input[name="guest"]').val(),A=e.find('input[name="keyword"]').val(),_=e.find('input[name="pets"]:checked').val(),k=e.find('input[name="search_area"]').val(),H=e.find('input[name="search_city"]').val(),L=e.find('input[name="search_country"]').val(),j=e.find('input[name="lat"]').val(),D=e.find('input[name="lng"]').val(),Z=e.find('input[name="radius"]').val(),ve=e.find('input[name="booking_type"]').val(),Y=e.find('select[name="listing_type"]').val(),x=e.find('select[name="country"]').val(),z=e.find('select[name="state"]').val(),P=e.find('select[name="city"]').val(),W=e.find('select[name="area"]').val(),C=e.find('select[name="start"]').val(),T=e.find('select[name="end"]').val(),""!=Y&&null!=Y||(Y=d.data("type")),""!=ve&&null!=ve||(ve=d.data("booking_type")),G=e.find(".amenities-list input[type=checkbox]:checked").map(function(e,a){return v(a).val()}).toArray(),U=e.find(".facilities-list input[type=checkbox]:checked").map(function(e,a){return v(a).val()}).toArray(),S=e.find('select[name="min-price"]').val(),R=e.find('select[name="max-price"]').val(),F=e.find('select[name="bedrooms"]').val(),N=e.find('select[name="rooms"]').val(),V=e.find('select[name="room_size"]').val();e=v("#sort_listings_halfmap").val();null!=a&&($=a);ge(t,o,n,0,0,s,r,m,{action:"homey_half_map",arrive:p,depart:g,guest:u,keyword:A,pets:_,bedrooms:F,rooms:N,room_size:V,search_country:L,search_city:H,search_area:k,listing_type:Y,"min-price":S,"max-price":R,country:x,search_lat:j,search_lng:D,radius:Z,state:z,city:P,area:W,booking_type:ve,start_hour:C,end_hour:T,amenity:G,facility:U,sort_by:e,layout:ue,num_posts:_e,paged:a,security:X},"")},m=function(e,a,t,o,n,l,i,s){n=n||!1,l=l||15;var r,m,d,c=new google.maps.LatLng(e,a);d={zoom:l,center:r=c,disableDefaultUI:!1,gestureHandling:"cooperative",styles:le},r=document.getElementById(t),y=new google.maps.Map(r,d),n||(r=y,d=i,m=new google.maps.Size(44,56),1.5<window.devicePixelRatio&&s&&(d=s,m=new google.maps.Size(44,56)),m={url:d,size:m,scaledSize:new google.maps.Size(44,56)},new google.maps.Marker({position:r.getCenter(),map:r,icon:m,draggable:!1,animation:google.maps.Animation.DROP})),n&&(m=y,new google.maps.Circle({strokeColor:"#4f5962",strokeOpacity:.8,strokeWeight:2,fillColor:"#4f5962",fillOpacity:.35,map:m,center:c,radius:500}))},0<v("#banner-map").length&&(Ze=(Le=v("#banner-map")).data("zoomlevel"),we=Le.data("maptype"),He=Le.data("lat"),ke=Le.data("long"),ge(Ee="",Me="",be="banner-map",0,0,Oe=Ze,he=0,ye=!!0,null,we)),0<v("#homey-halfmap").length&&(Ze=(Le=v("#homey-halfmap")).data("zoom"),ue=Le.data("layout"),_e=Le.data("num-posts"),Ue=Le.data("order"),d=Le.data("type"),ve=Le.data("booking_type"),""==Y&&(Y=d),ge(Ee=I,Me=B,be="homey-halfmap",0,0,Oe=Ze,he=0,ye=!0,{action:"homey_half_map",arrive:p,depart:g,guest:u,keyword:A,pets:_,bedrooms:F,rooms:N,room_size:V,search_country:L,search_city:H,search_area:k,listing_type:Y,"min-price":S,"max-price":R,country:x,state:z,city:P,area:W,booking_type:ve,search_lat:j,search_lng:D,radius:Z,start_hour:C,end_hour:T,amenity:G,facility:U,layout:ue,num_posts:_e,sort_by:Ue,paged:$,security:X},we=""),v(".homey_half_map_search_btn").on("click",function(e){e.preventDefault();e=v(this).parents(".half-map-wrap");s(e,1,Ee,Me,be,0,0,Oe,he,ye)}),v("#sort_listings_halfmap").on("change",function(e){e.preventDefault();e=v(this).parents(".half-map-wrap");s(e,1,Ee,Me,be,0,0,Oe,he,ye)}),fe=function(){return v(".half_map_ajax_pagi a").on("click",function(e){e.preventDefault();var a=v(this).data("homeypagi"),e=v(this).parents(".half-map-wrap");v(".half-map-left-wrap, .half-map-right-wrap").animate({scrollTop:0},"slow"),s(e,a,Ee,Me,be,0,0,Oe,he,ye)}),!1},0<v("#radius-range-slider").length&&(Ue=Fe,v("#radius-range-slider").slider({value:Ue,min:0,max:100,step:5,slide:function(e,a){v("#radius-range-text").html(a.value),v("#radius-range-value").val(a.value)},stop:function(e,a){var t=v(this).parents(".half-map-wrap");s(t,1,Ee,Me,be,0,0,Oe,he,ye)}}),v("#radius-range-text").html(v("#radius-range-slider").slider("value")),v("#radius-range-value").val(v("#radius-range-slider").slider("value")))),0<v("#homey-single-map").length&&(Ze=(Le=v("#homey-single-map")).data("zoom"),we=Le.data("pin-type"),Fe=Le.data("marker-pin"),Ne=Le.data("marker-pin-retina"),Ee=Le.data("lat"),Me=Le.data("long"),m(Ee,Me,be="homey-single-map",0,"marker"!=we,Oe=Ze,Fe,Ne)),0<v("#homey_sticky_map").length&&(Le=v("#homey_sticky_map"),be="homey_sticky_map",Oe=12,Ne=Le.data("mappaged"),Ze=be,Fe=Oe,Ne=Ne,null!=document.getElementById(Ze)?(Fe=Fe||14,y=new google.maps.Map(document.getElementById(Ze),{zoom:Fe,zoomControl:!1,mapTypeControl:!1,streetViewControl:!1,overviewMapControl:!1,scrollwheel:!1,fullscreenControl:!0,fullscreenControlOptions:{position:google.maps.ControlPosition.RIGHT_BOTTOM},center:new google.maps.LatLng("",""),mapTypeId:"roadmap",gestureHandling:"cooperative",styles:le}),Ve={action:"homey_sticky_map",paged:Ne,security:X},google.maps.event.addListenerOnce(y,"idle",function(){We(w,Ve)}),We=function(e,a){v.ajax({url:e,dataType:"json",method:"POST",data:a,success:function(e){!0===e.getListings&&(ce(),pe(e.listings,y),Ge(),se(y),v("#homey-map-loading").hide())},error:function(e){console.log(e)}})},Ge=function(){y.fitBounds(b.reduce(function(e,a){return e.extend(a.getPosition())},new google.maps.LatLngBounds))},document.getElementById("listing-mapzoomin")&&re(y),document.getElementById("listing-mapzoomout")&&me(y),document.getElementById("google-map-search")&&(Ne=document.getElementById("google-map-search"),de(Ne,y))):console.log("No map element found")),v("#homey-gmap-full").on("click",function(){v('div.gm-style button[title="Toggle fullscreen view"]').trigger("click")}),Ie={locality:"long_name",administrative_area_level_1:"long_name",administrative_area_level_2:"short_name",country:"long_name",postal_code:"short_name",neighborhood:"long_name",sublocality_level_1:"long_name",political:"long_name"},(document.getElementById("listing_address")||document.getElementById("experience_address"))&&(Ce="",void 0!==v('input[name="listing_address"]').val()&&(Ce=v('input[name="listing_address"]')),void 0!==v('input[name="experience_address"]').val()&&(Ce=v('input[name="experience_address"]')),Te={bounds:new google.maps.LatLngBounds(new google.maps.LatLng(-90,-180),new google.maps.LatLng(90,180)),types:["geocode"]},He=(Le=v("#map")).data("add-lat"),ke=Le.data("add-long"),Ye=new google.maps.Map(document.getElementById("map"),{center:{lat:He,lng:ke}}),document.getElementById("homey_edit_map")?(xe={lat:parseFloat(He),lng:parseFloat(ke)},ze=new google.maps.Marker({position:xe,map:Ye,draggable:!0}),google.maps.event.addListener(ze,"dragend",function(e){document.getElementById("lat").value=this.getPosition().lat(),document.getElementById("lng").value=this.getPosition().lng()}),Ye.setZoom(16)):(xe={lat:parseFloat(He),lng:parseFloat(ke)},ze=new google.maps.Marker({map:Ye,position:xe,draggable:!0,anchorPoint:new google.maps.Point(0,-29)}),google.maps.event.addListener(ze,"dragend",function(e){document.getElementById("lat").value=this.getPosition().lat(),document.getElementById("lng").value=this.getPosition().lng()}),Ye.setZoom(13)),Be=new google.maps.places.Autocomplete(Ce,Te),0!=e&&""!=l&&Be.setComponentRestrictions({country:[l]}),Be.bindTo("bounds",Ye),Pe=new google.maps.Geocoder,document.getElementById("find").addEventListener("click",function(){var e,i,s,a,t;ze.setVisible(!1),e=Pe,i=Ye,s=ze,a=document.getElementById("lat").value,t=document.getElementById("lng").value,t={lat:parseFloat(a),lng:parseFloat(t)},e.geocode({location:t},function(e,a){if("OK"===a){var t,o,n,l=0;for(v("#city").val(""),v("#countyState").val(""),v("#zip").val(""),v("#area").val(""),v("#homey_country").val(""),document.getElementById("lat").value=e[0].geometry.location.lat(),document.getElementById("lng").value=e[0].geometry.location.lng(),document.getElementById("listing_address").value=e[0].formatted_address,t=0;t<e[0].address_components.length;t++)o=e[0].address_components[t].types[0],n=e[0].address_components[t][Ie[o]],"neighborhood"===o||"sublocality_level_1"===o||"administrative_area_level_2"===o?v("#area").val(n):"political"===o||"locality"===o||"sublocality_level_1"===o?(v("#city").val(n),""!==n&&(l=1)):"country"===o?v("#homey_country").val(n):"postal_code"===o?v("#zip").val(n):"administrative_area_level_1"===o&&v("#countyState").val(n);0===l&&r("city",e[0].adr_address),e[0].geometry.viewport?i.fitBounds(e[0].geometry.viewport):(i.setCenter(e[0].geometry.location),i.setZoom(17)),s.setPosition(e[0].geometry.location),s.setVisible(!0),console.log(e)}else alert(geo_coding_msg+": "+a)})}),google.maps.event.addListener(Be,"place_changed",function(){var e=Be.getPlace();!function(e){var a,t,o,n;for(t=0,v("#city").val(""),v("#countyState").val(""),v("#zip").val(""),v("#area").val(""),v("#homey_country").val(""),document.getElementById("lat").value=e.geometry.location.lat(),document.getElementById("lng").value=e.geometry.location.lng(),a=0;a<e.address_components.length;a++)o=e.address_components[a].types[0],n=e.address_components[a][Ie[o]],"neighborhood"===o||"sublocality_level_1"===o||"administrative_area_level_2"===o?v("#area").val(n):"locality"===o?(v("#city").val(n),""!==n&&(t=1)):"country"===o?v("#homey_country").val(n):"postal_code"===o?v("#zip").val(n):"administrative_area_level_1"===o&&v("#countyState").val(n);v("#address-place").html(e.adr_address),0===t&&r("city",e.adr_address)}(e),ze.setVisible(!1),e.geometry?(e.geometry.viewport?Ye.fitBounds(e.geometry.viewport):(Ye.setCenter(e.geometry.location),Ye.setZoom(17)),ze.setPosition(e.geometry.location),ze.setVisible(!0),console.log(e)):window.alert("No details available for input: '"+e.name+"'")})),document.getElementById("location_search")&&(Ce=document.getElementById("location_search"),Te={bounds:new google.maps.LatLngBounds(new google.maps.LatLng(-90,-180),new google.maps.LatLng(90,180)),types:["geocode"]},Se=new google.maps.places.Autocomplete(Ce,Te),0!=e&&""!=l&&Se.setComponentRestrictions({country:[l]}),google.maps.event.addListener(Se,"place_changed",function(){var e=Se.getPlace();a(e),console.log(e)})),document.getElementById("location_search_mobile")&&(Ae=document.getElementById("location_search_mobile"),je={bounds:new google.maps.LatLngBounds(new google.maps.LatLng(-90,-180),new google.maps.LatLng(90,180)),types:["geocode"]},Re=new google.maps.places.Autocomplete(Ae,je),0!=e&&""!=l&&Re.setComponentRestrictions({country:[l]}),google.maps.event.addListener(Re,"place_changed",function(){var e=Re.getPlace();a(e),console.log(e)})),document.getElementById("location_search_banner")&&(Ae=document.getElementById("location_search_banner"),je={bounds:new google.maps.LatLngBounds(new google.maps.LatLng(-90,-180),new google.maps.LatLng(90,180)),types:["geocode"]},De=new google.maps.places.Autocomplete(Ae,je),0!=e&&""!=l&&De.setComponentRestrictions({country:[l]}),google.maps.event.addListener(De,"place_changed",function(){var e=De.getPlace();a(e),console.log(e)})))}(jQuery);
Back to Directory File Manager