jQuery(function($){var core={MARKER_PULL_DATABASE:"0",MARKER_PULL_XML:"1",PAGE_MAP_LIST:"map-list",PAGE_MAP_EDIT:"map-edit",PAGE_SETTINGS:"map-settings",PAGE_STYLING:"map-styling",PAGE_SUPPORT:"map-support",PAGE_INSTALLER:"installer",PAGE_CATEGORIES:"categories",PAGE_ADVANCED:"advanced",PAGE_CUSTOM_FIELDS:"custom-fields",PAGE_INSIGHTS:"insights",PAGE_PRO_FEATURES:"pro-features",MOBILE_RESOLUTION_THRESHOLD:1e3,maps:[],events:null,settings:null,restAPI:null,localized_strings:null,loadingHTML:'
'+WPGMZA.localized_strings.unsecure_geolocation+"
",$(".wpgmza-geolocation-setting").first().after($(elements))),WPGMZA.googleAPIStatus&&"USER_CONSENT_NOT_GIVEN"==WPGMZA.googleAPIStatus.code&&jQuery(".wpgmza-gdpr-compliance").length<=0&&($(".wpgmza-inner-stack").hide(),$("button.wpgmza-api-consent").on("click",function(event){Cookies.set("wpgmza-api-consent-given",!0),window.location.reload()}))}),function($){$(function(){try{WPGMZA.restAPI=WPGMZA.RestAPI.createInstance(),WPGMZA.accessibility=WPGMZA.Accessibility.createInstance(),WPGMZA.CloudAPI&&(WPGMZA.cloudAPI=WPGMZA.CloudAPI.createInstance()),$(document.body).trigger("preinit.wpgmza"),WPGMZA.initMaps(),WPGMZA.onScroll(),WPGMZA.initCapsules(),$(document.body).trigger("postinit.wpgmza")}catch(ex){WPGMZA&&"function"==typeof WPGMZA.delayedReloader&&WPGMZA.delayedReloader()}})}($)}),jQuery(function($){WPGMZA.Accessibility=function(){this.bind(),$(document.body).trigger("init.accessibility.wpgmza")},WPGMZA.Accessibility.createInstance=function(){return new WPGMZA.Accessibility},WPGMZA.Accessibility.prototype.bind=function(){var event,ariaEventGroupings={keydown:{keys:["Enter"],prevent:[" "]},keyup:{keys:[" "]}};for(event in ariaEventGroupings){const config=ariaEventGroupings[event];$(document.body).on(event,".wpgmza_map .wpgmza-aria-bridge, .wpgmza-standalone-component .wpgmza-aria-bridge",function(event){event&&event.key&&(config.keys&&-1!==config.keys.indexOf(event.key)&&(event.preventDefault(),$(this).trigger("click")),config.prevent)&&-1!==config.prevent.indexOf(event.key)&&event.preventDefault()})}$(document.body).on("focusin",".wpgmza_map .grouping:not(.visible)",function(event){$(this).parent().find(".grouping-handle .icon").click()}),$(document.body).on("keyup",".wpgmza_map .grouping.visible",function(event){event&&event.key&&"Escape"===event.key&&$(this).parent().find(".grouping-handle .icon").click()})}}),jQuery(function($){function L(key,fallback){return WPGMZA.localized_strings&&WPGMZA.localized_strings[key]||fallback}"map-edit"==WPGMZA.currentPage&&document.querySelector(".wpgmza-atlas-major")&&(WPGMZA.AtlasMajorAutoSave=function(){var self=this;if(this.form=$("#wpgmaps_options"),this.form.length){this.pill=$(".am-save-pill"),this.pauseToggle=$(".am-autosave-pause-toggle"),this.saveButtons=$('label[for="wpgmza_savemap"]'),this.saveButtonOriginalText=this.saveButtons.first().text(),this.pollIntervalMs=1e4,this.paused=!0;try{window.localStorage&&"1"===localStorage.getItem("wpgmza_autosave_enabled")&&(this.paused=!1)}catch(e){}var self2=this;this.saveButtons.on("click",function(e){if($(this).hasClass("is-disabled"))return e.preventDefault(),e.stopImmediatePropagation(),!1;self2.setSaveButtonState("saving")}),this.fallbackDelayMs=3e3,this.changeDebounceMs=1500,this.gracePeriodMs=3e3,this.inFlight=!1,this.pendingFlush=!1,this.fallbackTimer=null,this.changeTimer=null,this.ready=!1,setTimeout(function(){self.lastHash=self.hashForm(),self.ready=!0,self.attachListeners()},this.gracePeriodMs),this.attachPauseToggle(),this.refreshPauseToggleUI(),this.attachReminderPillTimer()}},WPGMZA.AtlasMajorAutoSave.prototype.attachReminderPillTimer=function(){var last,self=this,pillEl=document.getElementById("wpgmaps_save_reminder"),latEl=document.querySelector('input[name="map_start_lat"]'),lngEl=document.querySelector('input[name="map_start_lng"]'),zoomEl=document.querySelector('input[name="map_start_zoom"]');pillEl&&latEl&&lngEl&&zoomEl?(last={lat:latEl.value,lng:lngEl.value,zoom:zoomEl.value},setInterval(function(){var cur={lat:latEl.value,lng:lngEl.value,zoom:zoomEl.value},panZoomChanged=cur.lat!==last.lat||cur.lng!==last.lng||cur.zoom!==last.zoom,cur=(panZoomChanged&&(last=cur),!1);self.ready&&void 0!==self.lastHash&&self.hashForm()!==self.lastHash&&(cur=!0),(panZoomChanged||cur)&&(self.setPillState("unsaved"),self.paused)&&panZoomChanged&&(pillEl.style.display="block",(cur=pillEl.firstElementChild)&&(cur.style.display=""),clearTimeout(self._reminderPillTimer),self._reminderPillTimer=setTimeout(function(){pillEl.style.display="none"},8e3))},250)):setTimeout(function(){self.attachReminderPillTimer()},250)},WPGMZA.AtlasMajorAutoSave.prototype.attachPauseToggle=function(){var self=this;this.pauseToggle.length&&this.pauseToggle.on("click",function(e){e.preventDefault(),self.setPaused(!self.paused)})},WPGMZA.AtlasMajorAutoSave.prototype.refreshPauseToggleUI=function(){var label,title;this.pauseToggle.length&&(this.pauseToggle.toggleClass("is-paused",!!this.paused),label=this.paused?L("atlas_major_autosave_paused_label","Autosave off"):L("atlas_major_autosave_active_label","Autosave on"),title=this.paused?L("atlas_major_autosave_resume_tip","Click to enable autosave"):L("atlas_major_autosave_pause_tip","Click to disable autosave (manual Save Map still works)"),this.pauseToggle.attr({"aria-label":label,title:title}),this.pauseToggle.find(".am-autosave-pause-text").text(label),$("body").toggleClass("wpgmza-autosave-on",!this.paused),this.paused||(clearTimeout(this._reminderPillTimer),$("#wpgmaps_save_reminder").hide()))},WPGMZA.AtlasMajorAutoSave.prototype.setPaused=function(paused){this.paused=!!paused;try{this.paused?localStorage.removeItem("wpgmza_autosave_enabled"):localStorage.setItem("wpgmza_autosave_enabled","1")}catch(e){}this.refreshPauseToggleUI()},WPGMZA.AtlasMajorAutoSave.prototype.attachListeners=function(){var self=this;this.form.on("change input",function(){self.setPillState("unsaved")}),this.form.on("change",function(e){self.paused||(clearTimeout(self.changeTimer),self.changeTimer=setTimeout(function(){self.changeTimer=null,self.paused||self.inFlight||self.flush(!1)},self.changeDebounceMs))}),this.form.on("submit",function(e){e.preventDefault(),self.flush(!0)}),setInterval(function(){self.paused||self.inFlight||self.hashForm()!==self.lastHash&&self.flush(!1)},this.pollIntervalMs)},WPGMZA.AtlasMajorAutoSave.prototype.resolveMapId=function(){var val=parseInt(this.form.find('input[name="map_id"]').val()||0,10);return val||(WPGMZA.mapEditPage&&WPGMZA.mapEditPage.map&&WPGMZA.mapEditPage.map.id?parseInt(WPGMZA.mapEditPage.map.id,10):(val=window.location.search.match(/[?&]map_id=(\d+)/))?parseInt(val[1],10):0)},WPGMZA.AtlasMajorAutoSave.prototype.hashForm=function(){for(var pairs=this.form.serializeArray(),str=JSON.stringify(pairs),hash=0,i=0;i"+(this.feature.map.settings.store_locator_distance==WPGMZA.Distance.KILOMETERS?currentLatLng+WPGMZA.localized_strings.kilometers_away:currentLatLng+" "+WPGMZA.localized_strings.miles_away)+"
"),html=this.feature.address+extra_html),this.contentHtml&&(html=this.contentHtml),callback&&callback(html),html},WPGMZA.InfoWindow.prototype.open=function(map,feature){return this.feature=feature,!WPGMZA.settings.disable_infowindows&&"1"!=WPGMZA.settings.wpgmza_settings_disable_infowindows&&!this.feature.disableInfoWindow&&(this.state=WPGMZA.InfoWindow.STATE_OPEN,!0)},WPGMZA.InfoWindow.prototype.close=function(){this.state!=WPGMZA.InfoWindow.STATE_CLOSED&&(this.state=WPGMZA.InfoWindow.STATE_CLOSED,this.trigger("infowindowclose"))},WPGMZA.InfoWindow.prototype.setContent=function(options){},WPGMZA.InfoWindow.prototype.setOptions=function(options){},WPGMZA.InfoWindow.prototype.onFeatureAdded=function(){1==this.feature.settings.infoopen&&this.open()},WPGMZA.InfoWindow.prototype.onOpen=function(){},WPGMZA.InfoWindow.prototype.getWrapperAttributes=function(){var attrs={type:"system",id:this.feature&&this.feature.id?this.feature.id:null,feature:null};return this.feature&&(this.feature instanceof WPGMZA.Marker?attrs.feature="marker":this.feature instanceof WPGMZA.Polyline?attrs.feature="polyline":this.feature instanceof WPGMZA.Polygon?attrs.feature="polygon":this.feature instanceof WPGMZA.Circle?attrs.feature="circle":this.feature instanceof WPGMZA.Rectangle&&(attrs.feature="rectangle")),attrs},WPGMZA.InfoWindow.prototype.compileWrapperAttributes=function(){var key,attrs=this.getWrapperAttributes(),compiled=[];for(key in attrs){var value=attrs[key];key&&value&&compiled.push(`data-prop-${key}="${value}"`)}return compiled&&0