MapPress Easy Google Maps - Version 2.83.4

Version Description

  • Fixed: updated German translation
  • Fixed: double markers showing when using multiple maps with Leaflet clustering
Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.83.4
Comparing to
See all releases

Code changes from version 2.83.3 to 2.83.4

build/index_mappress.js CHANGED
@@ -1 +1 @@
1
- (()=>{var t={117:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappAutocomplete:()=>m});var o=n(326);const a=wp.element.createElement,{Fragment:i,useCallback:l,useEffect:s,useLayoutEffect:p,useMemo:r,useRef:c,useState:u}=wp.element;function m(e){e={buttonLabel:null,className:"",delay:null,focus:!1,onFetch:null,onSelect:null,placeholder:"",selected:null,suggestions:[],title:"",...e};const t=c(null),n=c(null),[i,l]=u({isOpen:!1,value:""});function p(e){l((t=>({...t,...e})))}(0,o.useClickOutside)(t,(()=>{i.isOpen&&p({isOpen:!1})})),s((()=>{e.focus&&n.current&&n.current.focus()}),[n.current]),s((()=>{i.map&&setMapTypeId(e.mapTypeId)}),[e.mapTypeId,i.map]);const r=(0,o.useDebounce)((t=>{e.onFetch&&e.onFetch(t)}),e.delay);function m(){let t;p({isOpen:!1}),e.suggestions&&(t=null==i.selected?e.suggestions[0]:e.suggestions[i.selected]),e.onSelect({suggestion:t,value:g})}const g=i.selected>=0&&e.suggestions&&e.suggestions[i.selected]?e.suggestions[i.selected].value:i.value;return a("div",{className:"mapp-autocomplete",ref:t},a("div",{className:"mapp-autocomplete-wrapper"},a("input",{className:e.className,onChange:e=>{!function(e){p({value:e,selected:null}),r(e)}(e.target.value)},onKeyDownCapture:t=>function(t){switch(t.stopPropagation(),t.code){case"Backspace":p({isOpen:i.value.length>1});break;case"Enter":m();break;case"Escape":p({isOpen:!1});break;case"ArrowUp":if(t.preventDefault(),e.suggestions&&0!=i.selected){const t=null==i.selected?e.suggestions.length-1:i.selected-1;e.suggestions[t]&&p({isOpen:!0,selected:t})}else p({selected:null});break;case"ArrowDown":if(e.suggestions&&i.selected<e.suggestions.length-1){const t=null==i.selected?0:i.selected+1;e.suggestions[t]&&p({isOpen:!0,selected:t})}else p({selected:null});break;case"Tab":case"AltLeft":case"AltRight":case"ControlLeft":case"ControlRight":case"MetaLeft":case"MetaRight":break;default:p({isOpen:!0})}}(t),placeholder:e.placeholder,ref:n,title:e.title,type:"text",value:g}),i.isOpen&&function(){if(e.suggestions&&e.suggestions.length)return a("div",{className:"mapp-autocomplete-list"},_.map(e.suggestions,((t,n)=>{const o="mapp-autocomplete-item"+(i.selected==n?" mapp-selected":"");return a("div",{className:o,key:n,onClick:()=>function(t,n){p({isOpen:!1,selected:n}),e.onSelect({suggestion:t})}(t,n)},t.value)})))}()),e.buttonLabel&&a("div",{className:"mapp-submit-button",onClick:()=>m()},e.buttonLabel))}},715:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappDirections:()=>r});const o=wp.element.createElement,{Fragment:a,useEffect:i,useLayoutEffect:l,useRef:s,useState:p}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function r(e){e={from:null,onClose:null,to:null,...e};const[t,n]=p({from:e.from?e.from:"",to:e.to?e.to:""});function a(e){n((t=>({...t,...e})))}function l(){e.onClose&&e.onClose()}function s(){const e=t.from.trim(),n=t.to.trim();let o=mappl10n.options.directionsServer;o="https://maps.google.com"==o?"https://www.google.com":o,-1==o.toLowerCase().indexOf("http")&&(o="https://"+o),o+="/maps/dir/?api=1&origin="+encodeURIComponent(e)+"&destination="+encodeURIComponent(n),window.open(o),l()}function r(e){13==e?s():27==e&&l()}return i((()=>{"google"==mappl10n.options.directions&&s()}),[]),"google"==mappl10n.options.directions?null:o("div",{className:"mapp-directions"},o("div",{className:"mapp-close",onClick:()=>l()}),o("div",null,o("input",{className:"mapp-dir-from",onChange:e=>a({from:e.target.value}),onKeyPress:e=>r(e.which),tabIndex:"1",placeholder:__("My location"),value:t.from}),o("div",{className:"mapp-dir-arrows",onClick:()=>{a({from:t.to,to:t.from})}})),o("div",null,o("input",{className:"mapp-dir-to",onChange:e=>a({to:e.target.value}),onKeyPress:e=>r(e.which),tabIndex:"2",value:t.to})),o("div",{className:"mapp-dir-toolbar"},o("div",{className:"mapp-submit-button",onClick:()=>s()},__("Get Directions"))))}},817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappFilters:()=>u});var o=n(939),a=n(326);const i=wp.element.createElement,{Fragment:l,useEffect:s,useLayoutEffect:p,useRef:r,useState:c}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress"),sprintf=wp.i18n.sprintf,u=e=>{e={onChange:null,otype:"post",poiCount:0,...e};const t=(0,a.useDebounce)(e.onChange,500),[n,p]=c({filters:[],isBusy:!0,open:null,selected:{}});function u(e){p((t=>({...t,...e})))}const m=r({});function g(e,o){let a=n.selected[e.key]?n.selected[e.key].values:null;if("checkbox"==e.format){var i;const e=null===(i=a)||void 0===i?void 0:i.indexOf(o);e>-1?a.splice(e,1):(a=a||[],a.push(o))}else a=o?[o]:[];a.length?n.selected[e.key]={key:e.key,values:a,meta_key:e.meta_key,meta_values:e.meta_values}:delete n.selected[e.key],u({selected:n.selected}),t(n.selected)}function d(e){u({open:n.open==e?null:e})}function f(e){e.key;const t=[...e.values],a=n.selected[e.key]?n.selected[e.key].values:"";switch(e.format){case"input":return i("input",{type:"text",value:a?a[0]:"",onChange:t=>g(e,t.target.value)});case"checkbox":return _.map(t,(t=>i("label",{key:t.value},i("input",{checked:null==a?void 0:a.includes(t.value),key:t.value,onChange:t=>g(e,t.target.value),type:e.format,value:t.value}),t.iconid&&i("img",{className:"mapp-icon",src:o.mappLib.getIconUrl(t.iconid)}),i("span",{dangerouslySetInnerHTML:{__html:t.label}}))));case"radio":return"radio"==e.format&&t.unshift({value:"",label:__("All")}),_.map(t,(t=>i("label",{key:t.value},i("input",{checked:a==t.value||""==t.value&&!a,key:t.value,onChange:t=>g(e,t.target.value),type:e.format,value:t.value}),t.iconid&&i("img",{className:"mapp-icon",src:o.mappLib.getIconUrl(t.iconid)}),i("span",{dangerouslySetInnerHTML:{__html:t.label}}))));case"select":t.unshift({value:"",label:""});const n=_.map(t,(e=>'<option value="'+e.value+'">'+e.label+"</option>"));return i("select",{value:a[0],dangerouslySetInnerHTML:{__html:n},onChange:t=>g(e,t.target.value)})}}function v(o){return i("div",{className:"mapp-filter-dropdown"},function(e){return i("div",{className:"mapp-filter-values"},"all"==e?n.filters.map((e=>i(l,{key:e.key},i("div",{className:"mapp-filter-label"},e.label),f(e)))):f(e))}(o),"all"==o&&function(n){const o="all"==n?"all":n.key;let a=e.poiCount>1?__("%d Results"):__("%d Result");return a=sprintf(a,e.poiCount),i("div",{className:"mapp-filter-toolbar"},i("div",{className:"mapp-link-button",onClick:()=>(u({selected:{}}),void t())},__("Reset")),i("div",{className:"mapp-filter-count"},a),i("div",{className:"mapp-submit-button",onClick:()=>d(o)},__("Done")))}(o))}function h(e){const t="all"==e?"all":e.key,o="all"==e?__("Filter"):e.label,a="mapp-filter mapp-filter-"+t+(n.open==t?" mapp-filter-open":"");return i("div",{key:t,className:a,ref:e=>m.current[t]=e},i("div",{className:"mapp-button mapp-button-caret mapp-filter-button"+(n.isBusy?" mapp-button-disabled":""),onClick:()=>d(t)},o),v(e))}return(0,a.useClickOutside)({current:n.open&&m.current[n.open]?m.current[n.open]:null},(()=>{u({open:null})})),s((()=>{u({isBusy:!0}),o.mappLib.ajax({method:"GET",data:{action:"mapp_filters_get",nonce:mappl10n.options.nonce,otype:e.otype},callback:e=>{e&&"OK"==e.status?u({filters:e.data}):console.error("MapPress: unable to fetch filter data"),u({isBusy:!1})}})}),[]),i("div",{className:"mapp-filters"},h("all"),_.map(n.filters,(e=>e.isStandalone?h(e):null)))}},10:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useGeocoding:()=>u});const o=n(939).mappLib.toJSON,{Fragment:a,useCallback:i,useEffect:l,useLayoutEffect:s,useRef:p,useState:r}=(wp.element.createElement,wp.element),c={google:function(){this.token=null;const e=document.createElement("div");this.placesService=new google.maps.places.PlacesService(e),this.autocompleteService=new google.maps.places.AutocompleteService}};c.google.prototype={getDetails:function(e){let{suggestion:t,callback:n}=e;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken,this.token=null;var a={fields:["formatted_address","name","geometry"],placeId:t.place_id,sessionToken:this.token};this.placesService.getDetails(a,(function(e,t){if("OK"==t&&e&&e.geometry){if(e.geometry.location&&(e.geometry.location=o(e.geometry.location)),e.geometry.viewport){var a=o(e.geometry.viewport);e.geometry.viewport={sw:{lat:a.south,lng:a.west},ne:{lat:a.north,lng:a.east}}}n(e)}else n(null)}))},getFirstPrediction:function(e){let{map:t,value:n,callback:o}=e;this.getPredictions({map:t,value:n,callback:e=>{e&&Array.isArray(e)?this.getDetails({suggestion:e[0],callback:e=>o(e)}):o(null)}})},getPredictions:function(e){let{map:t,value:n,includeBusinesses:o,callback:a}=e;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;var i=t?t.getBounds():null;"leaflet"==mappl10n.options.engine&&(i=new google.maps.LatLngBounds(new google.maps.LatLng(i.getSouthWest().lat,i.getSouthWest().lng),new google.maps.LatLng(i.getNorthEast().lat,i.getNorthEast().lng)));var l={input:n,bounds:i=i||new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180)),sessionToken:this.token,types:o?null:["geocode"]};this.autocompleteService.getPlacePredictions(l,(function(e,t){"OK"==t&&e&&e.length?(e=(e=e.map((e=>(e.value=e.description,e)))).filter((e=>e.place_id)),a(e)):(t==google.maps.places.PlacesServiceStatus.REQUEST_DENIED?alert("Google Maps API Key error: please enable the Places API in the Google Developer Console."):t==google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT&&alert("Google Maps API Key has exceeded its query limit"),a(null))}))}},c.mapbox=function(){},c.mapbox.prototype={getDetails:function(e){let{suggestion:t,callback:n}=e,o=t.place_name,a=o.indexOf(","),i=o.indexOf(",",a+1);a>0&&(o=parseInt(o.substr(0,a))?o.substr(0,i).replace(",",""):o.substr(0,a));let l=t.bbox&&4==t.bbox.length?{sw:{lat:t.bbox[1],lng:t.bbox[0]},ne:{lat:t.bbox[3],lng:t.bbox[2]}}:null;n({formatted_address:t.place_name,name:o,geometry:{location:{lat:t.center[1],lng:t.center[0]},viewport:l}})},getFirstPrediction:function(e){let{map:t,value:n,callback:o}=e;this.getPredictions({map:t,value:n,callback:e=>{e&&e.length?this.getDetails({suggestion:e[0],callback:e=>o(e)}):o(null)}})},getPredictions:function(e){let{map:t,value:n,callback:o}=e;var a="https://api.mapbox.com/geocoding/v5/mapbox.places/"+n+".json?access_token="+mappl10n.options.mapbox;a=mappl10n.options.country?a+"&country="+mappl10n.options.country.toLowerCase():a,a=mappl10n.options.language?a+"&language="+mappl10n.options.language.toLowerCase():a;var i=t?t.getCenter():null;i&&(a+="&proximity="+i.lng+","+i.lat),mappl10n.options.searchBox&&(a+="&bbox="+mappl10n.options.searchBox),fetch(a).then((e=>e.json())).then((e=>{e&&e.features&&e.features.length>0?(e.features=e.features.map((e=>(e.value=e.label=e.place_name,e))),o(e.features)):o(null)}))}},c.nominatim=function(){},c.nominatim.prototype={getDetails:function(e){let{suggestion:t,callback:n}=e,o=t.display_name,a=o.indexOf(","),i=o.indexOf(",",a+1);a>0&&(o=parseInt(o.substr(0,a))?o.substr(0,i).replace(",",""):o.substr(0,a));let l=t.boundingbox&&4==t.boundingbox.length?{sw:{lat:t.boundingbox[0],lng:t.boundingbox[2]},ne:{lat:t.boundingbox[1],lng:t.boundingbox[3]}}:null;n({formatted_address:t.display_name,name:o,geometry:{location:{lat:t.lat,lng:t.lon},viewport:l}})},getFirstPrediction:function(e){let{map:t,value:n,callback:o}=e;this.getPredictions({map:t,value:n,callback:e=>{e&&e.length?this.getDetails({suggestion:e[0],callback:e=>o(e)}):o(null)}})},getPredictions:function(e){let{map:t,value:n,callback:o}=e;var a="https://nominatim.openstreetmap.org/search?format=json&dedupe=1&limit=5&q="+encodeURIComponent(n);if(a=mappl10n.options.country?a+"&countrycodes="+mappl10n.options.country.toLowerCase():a,a=mappl10n.options.language?a+"&accept-language="+mappl10n.options.language.toLowerCase():a,mappl10n.options.searchBox)a+="&viewbox="+mappl10n.options.searchBox,a+="&bounded=1";else{var i=t?t.getBounds():null;if(i){let e=i.getSouthWest(),t=i.getNorthEast();a+="&viewbox="+e.lng+","+e.lat+","+t.lng+","+t.lat}}fetch(a).then((e=>e.json())).then((e=>{e&&e.length?(e=e.map((e=>(e.value=e.display_name,e))),o(e)):o(null)}))}};const u=e=>{let{includeBusinesses:t}=e;function n(){let e="";return e="leaflet"!=mappl10n.options.engine?"google":mappl10n.options.geocoder?mappl10n.options.geocoder:"nominatim",new c[e]}function o(e,t){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){var n={lat:t.coords.latitude,lng:t.coords.longitude};e({name:n.lat+", "+n.lng,geometry:{location:n}})}),(function(n){if(!t){var o=n&&n.message?" : "+n.message:"";alert(mappl10n.no_geolocate+o)}e(null)}),{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4}):alert(mappl10n.no_geolocate)}return{geocode:function(e){let{map:a,suggestion:i,value:l,callback:s}=e;const p=n();l="string"==typeof l?l.trim():l,i||l?function(e){let{map:t,value:n,callback:a}=e;if(!n)return void a(null);if("string"!=typeof n){const e=n.lat&&n.lng?{geometry:{location:{lat:n.lat,lng:n.lng}}}:null;return void a(e)}if("http"==n.substring(0,4))return void a(n);if("user"==n)return void o((function(e){a(e)}));const i=n.split(",");if(2==i.length){const e=parseFloat(i[0]),t=parseFloat(i[1]);if(!isNaN(e)&&!isNaN(t))return void a({name:e+", "+t,geometry:{location:{lat:e,lng:t}}})}a(null)}({map:a,value:l,callback:e=>{e?s(e):i?p.getDetails({suggestion:i,callback:s}):p.getFirstPrediction({map:a,value:l,includeBusinesses:t,callback:s})}}):s(null)},geolocate:o,getPredictions:function(e){let{map:t,value:o,callback:a}=e;n().getPredictions({map:t,value:o,callback:a})}}}},326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useClickOutside:()=>c,useDebounce:()=>u,useResizeObserver:()=>m});wp.element.createElement;const{Fragment:o,useCallback:a,useEffect:i,useLayoutEffect:l,useMemo:s,useRef:p,useState:r}=wp.element;function c(e,t){i((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}))}function u(e,t,n){const o=p(!1);i((()=>(o.current=!0,()=>o.current=!1)),[]);const l=_.debounce((function(){o.current&&e(...arguments)}),t);return a(l,n=n||[])}function m(e,t){const n=p();n.current=t,i((()=>{if(!e)return;const t=new ResizeObserver(((e,t)=>{n.current()}));return t.observe(e),()=>{t.disconnect()}}),[e])}},939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mappLib:()=>o,mappEvent:()=>a,mappPoi:()=>i});const o={ajax:function(e){if("POST"==(e={cache:"no-cache",credentials:"same-origin",data:null,method:e.method?e.method:"GET",mode:"cors",redirect:"follow",referrerPolicy:"no-referrer",responseType:"json",url:e.url?e.url:mappl10n.options.ajaxurl,...e}).method)if(e.data instanceof FormData)e.body=e.data;else{const t=new FormData;t.append("action",e.data.action),t.append("nonce",e.data.nonce),t.append("data",JSON.stringify(e.data)),e.body=t}else"GET"==e.method&&(e.url+="?"+o.jQueryParam(e.data));fetch(e.url,e).then((t=>{if("html"==e.responseType)return t.text();if(t.ok)return t.json();throw Error(`Request rejected with status ${t.status}`)})).then((t=>{e.url!=mappl10n.options.ajaxurl||t&&"OK"==t.status||o.alert(t.status),t.output&&o.alert("MapPress: invalid output from a plugin or theme file. Deactivate plugins to find the problem. Output:\r\n"+t.output),e.callback&&e.callback(t)})).catch((t=>{if(e.error)return void e.error();const n=void 0!==t.message?t.message:t.statusText;o.alert("AJAX error -- "+n)}))},alert:function(e){mappl10n.options.admin||mappl10n.options.debug?alert(e):window.console&&console.error(e)},boundsToViewport:function(e){return e?{sw:o.toJSON(e.getSouthWest()),ne:o.toJSON(e.getNorthEast())}:null},getIcon:function(e){{const t=this.getIconUrl(e);return"leaflet"==mappl10n.options.engine?L.icon({iconUrl:t,iconAnchor:[16,32],iconSize:[32,32],popupAnchor:[0,-32]}):{url:t}}},getIconUrl:function(e){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"},jQueryParam:function(e){var t=[],n=function(e,n){n=null==(n="function"==typeof n?n():n)?"":n,t[t.length]=encodeURIComponent(e)+"="+encodeURIComponent(n)},o=function(e,a){var i,l,s;if(e)if(Array.isArray(a))for(i=0,l=a.length;i<l;i++)o(e+"["+("object"==typeof a[i]&&a[i]?i:"")+"]",a[i]);else if("[object Object]"===Object.prototype.toString.call(a))for(s in a)o(e+"["+s+"]",a[s]);else n(e,a);else if(Array.isArray(a))for(i=0,l=a.length;i<l;i++)n(a[i].name,a[i].value);else for(s in a)o(s,a[s]);return t};return o("",e).join("&")},nanoid:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;const t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let n="",o=e;for(;o--;)n+=t[64*Math.random()|0];return n},pointToLatLng:function(e){return e?"leaflet"==mappl10n.options.engine?L.latLng(e):new google.maps.LatLng(e.lat,e.lng):null},template:function(e,t){if(o.templates=o.templates?o.templates:{},!o.templates[e]){var n=document.getElementById("mapp-tmpl-"+e).innerHTML;if(!n)return"";o.templates[e]=_.template(n,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g})}return o.templates[e](t)},toJSON:e=>e.toJSON?e.toJSON():"undefined"!=typeof L&&e instanceof L.LatLng?{lat:e.lat,lng:e.lng}:"undefined"!=typeof L&&L.LatLngBounds&&e instanceof L.LatLngBounds?{south:e.getSouth(),west:e.getWest(),north:e.getNorth(),east:e.getEast()}:null,toUrlValue(e){return e.toUrlValue?e.toUrlValue():"undefined"!=typeof L&&e instanceof L.LatLng?Math.round(1e6*this.lat)/1e6+", "+Math.round(1e6*this.lng)/1e6:null},viewportToBounds:function(e){return e&&e.sw&&e.ne?"leaflet"==mappl10n.options.engine?new L.LatLngBounds(L.latLng(e.sw.lat,e.sw.lng),L.latLng(e.ne.lat,e.ne.lng)):new google.maps.LatLngBounds(new google.maps.LatLng(e.sw.lat,e.sw.lng),new google.maps.LatLng(e.ne.lat,e.ne.lng)):null}},a={addListener:function(e,t,n){let o=[];t=t.split(" ");for(var a=0;a<t.length;a++)"leaflet"==mappl10n.options.engine?(e.on(t[a],n),o.push({target:e,event:t[a],callback:n})):o.push(google.maps.event.addListener(e,t[a],n));return o},addListenerOnce:function(e,t,n){t=t.split(" ");for(var o=0;o<t.length;o++)"leaflet"==mappl10n.options.engine?e.once(t[o],n):google.maps.event.addListenerOnce(e,t[o],n)},clearInstanceListeners:function(e){"leaflet"==mappl10n.options.engine?e.off():google.maps.event.clearInstanceListeners(e)},clearListeners:function(e,t){t=t.split(" ");for(var n=0;n<t.length;n++)"leaflet"==mappl10n.options.engine?e.off(t[n]):google.maps.event.clearListeners(e,t[n])},removeListener:function(e){for(let t=0;t<e.length;t++)"leaflet"==mappl10n.options.engine?e[t].target.off(e[t].event,e[t].callback):google.maps.event.removeListener(e[t])},trigger:function(e,t,n){"leaflet"==mappl10n.options.engine?e.fire(t,n):google.maps.event.trigger(e,t,n)}},i={parseOverlay:function(e,t){if("google"==mappl10n.options.engine){if("kml"==e){const e=t.getDefaultViewport();return{point:e?o.toJSON(e.getCenter()):null,viewport:e?o.boundsToViewport(e):null}}const n=t instanceof google.maps.Polyline?{strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,stokeWeight:t.strokeWeight}:{fillColor:t.fillColor,fillOpacity:t.fillOpacity,strokeColor:t.strokeColor,strokeOpacity:1,stokeWeight:t.strokeWeight};if("circle"==e)return{point:o.toJSON(t.getCenter()),poly:{radius:t.getRadius(),...n}};if("rectangle"==e)return{viewport:o.boundsToViewport(t.getBounds()),poly:{...n}};if("polyline"==e){const e=[];return t.getPath().forEach((function(t){e.push(o.toJSON(t))})),{poly:{path:e,...n}}}if("polygon"==e){const e={fillColor:t.fillColor,fillOpacity:t.fillOpacity,strokeColor:t.strokeColor,strokeOpacity:1,stokeWeight:t.strokeWeight},n=[];return t.getPaths().forEach((function(e){var t=[];e.forEach((function(e){t.push(o.toJSON(e))})),n.push(t)})),{poly:{paths:n,...e}}}if(!e)return{point:o.toJSON(t.getPosition())}}else{if("kml"==e){const e=t.getBounds();return{point:e&&e.isValid()?o.toJSON(e.getCenter()):null,viewport:e&&e.isValid()?o.boundsToViewport(e):null}}if(!e)return{point:"leaflet"==mappl10n.options.engine?o.toJSON(t.getLatLng()):o.toJSON(t.getPosition())}}}}},374:(e,t,n)=>{"use strict";n.r(t);var o=n(939),a=n(346);window.mapp=window.mapp||{};const i=wp.element.createElement;mapp.load=function(){if(void 0!==mapp.data)for(const[e,t]of Object.entries(mapp.data)){t.pois&&t.pois.map((e=>{e.id=o.mappLib.nanoid()}));const e=document.getElementById(t.name+"-layout");e?wp.element.render(i(a.MappMap,{...t,parent:e}),e):console.log("Missing container for map "+t.name)}},mapp.load()},346:(t,n,o)=>{"use strict";o.r(n),o.d(n,{MappMap:()=>I});var a=o(939),i=o(715),l=(o(817),o(602)),s=o(818),p=o(81),r=o(50),c=o(615);const u=wp.element.createElement,{Fragment:m,useEffect:g,useLayoutEffect:d,useMemo:f,useRef:v,useState:h}=wp.element;function y(e){e={anchor:null,className:null,content:null,map:null,point:null,...e};const t=v(null),[n,o]=h({isLoaded:null,mapDiv:"leaflet"==mappl10n.options.engine?e.map.getContainer():e.map.getDiv(),overlayView:null});function i(e){o((t=>({...t,...e})))}function l(){const o=t.current;if(!o)return;if(document.fullscreenElement||e.map.isFullscreen)return;let i;const{width:l,height:s}=o.getBoundingClientRect(),p=a.mappLib.pointToLatLng(e.point);if("leaflet"==mappl10n.options.engine)i=e.map.latLngToContainerPoint(p);else{const e=n.overlayView.getProjection();if(!e)return;i=e.fromLatLngToContainerPixel(p)}o.style.bottom=n.mapDiv.clientHeight-i.y-e.anchor.y+"px",o.style.left=i.x-l/2+e.anchor.x+"px"}return d((()=>{"google"==mappl10n.options.engine?n.overlayView||(n.overlayView=new google.maps.OverlayView,n.overlayView.onAdd=function(){i({isLoaded:!0})},n.overlayView.setMap(e.map)):(e.map.stop(),i({isLoaded:!0}))}),[]),d((()=>{if(!n.isLoaded)return;let t;return"google"==mappl10n.options.engine?n.overlayView.draw=()=>l():t=a.mappEvent.addListener(e.map,"move",(e=>l())),()=>{"google"==mappl10n.options.engine?n.overlayView.draw=null:a.mappEvent.removeListener(t)}})),d((()=>{n.isLoaded&&(l(),function(){const o=t.current;if(!o)return;const i=30,l=o.offsetWidth,s=o.offsetHeight,p=n.mapDiv.clientWidth,r=n.mapDiv.clientHeight,c=a.mappLib.pointToLatLng(e.point);let u;if("leaflet"==mappl10n.options.engine)u=e.map.latLngToContainerPoint(c);else{const e=n.overlayView.getProjection();u=e?e.fromLatLngToContainerPixel(c):null}if(!u)return;var m={x:u.x,y:u.y};u.x+l/2+e.anchor.x>p-i?m.x=Math.max(p-l/2-e.anchor.x-i,p/2-e.anchor.x):u.x-l/2+e.anchor.x<i&&(m.x=Math.min(l/2+e.anchor.x+i,p/2-e.anchor.x));u.y+e.anchor.y-s<i&&(m.y=s-e.anchor.y+i);m.y>=r&&(m.y=r-i);const g={x:u.x-m.x,y:u.y-m.y};(g.x<=-1||g.x>=1||g.y<=-1||g.y>=1)&&("leaflet"==mappl10n.options.engine?e.map.panBy([g.x,g.y]):e.map.panBy(g.x,g.y))}())}),[n.isLoaded]),n.isLoaded?u("div",{className:"mapp-ib-wrapper",ref:t},u("div",{className:"mapp-ib-content"},u("div",{className:"mapp-ib"},u("div",{className:"mapp-iw "+(e.className?e.className:"")},e.content)),u("div",{className:"mapp-ib-tip"}))):null}var b=o(892),w=o(10),k=o(326);const E=a.mappLib.toJSON,{Fragment:C,useCallback:O,useEffect:x,useLayoutEffect:N,useRef:M,useState:P}=wp.element,S=wp.element.createElement,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function I(t){const[n,o]=P({clusterer:null,directionsTo:null,drawingManager:null,filters:null,hovered:null,isDirectionsOpen:null,isFetching:null,isGeolocating:null,init:null,isLoaded:null,isMounted:null,isMini:null,isSidebarOpen:null!=t.poiListOpen?t.poiListOpen:mappl10n.options.poiListOpen,kmlEvent:null,layers:{},layout:t.layout?t.layout:mappl10n.options.layout,map:null,opened:null,oid:t.oid?t.oid:mappl10n.options.oid,otype:t.otype?t.otype:mappl10n.options.otype,page:1,pageCount:0,parsedCenter:null,poiList:void 0!==t.poiList&&null!=t.poiList?t.poiList:mappl10n.options.poiList,pois:[],polyline:null,templates:t.query?"user"==t.otype?{item:"user-mashup-item",popup:"user-mashup-popup"}:{item:"mashup-item",popup:"mashup-popup"}:{item:"map-item",popup:"map-popup"},userLocation:null}),u=M(null),m=M(t.parent),{geocode:g,geolocate:d}=(M(),(0,w.useGeocoding)({withBusinesses:t.isEditable}));function f(e){o((t=>({...t,...e})))}function v(e){}function h(e){return n.pois.find((t=>t.id==e))}function O(e){return n.map.fitBounds(e)}function N(){try{return n.map.getBounds()}catch(e){return null}}function I(){let e;try{e=n.map.getCenter()}catch(t){e=null}return e?E(e):null}function T(e){let t;switch("leaflet"==mappl10n.options.engine&&"kml"!=e.type?null:e.type){case"polygon":t=new google.maps.LatLngBounds,e.poly.paths.map((e=>{e.map((e=>{t.extend(e)}))}));break;case"polyline":t=new google.maps.LatLngBounds,e.poly.path.map((e=>{t.extend(e)}));break;case"circle":const n=new google.maps.Circle({center:e.point,radius:e.poly.radius});t=n.getBounds();break;default:t=a.mappLib.viewportToBounds(e.viewport)}return t}function D(e,t){if(e.point&&!e.type)return"leaflet"==mappl10n.options.engine?L.latLng(e.point):new google.maps.LatLng(e.point.lat,e.point.lng);if("kml"==e.type&&t&&t.latLng)return t.latLng;const n=T(e);return"leaflet"==mappl10n.options.engine?n&&n.isValid()?n.getCenter():new L.latLng(0,0):n?n.getCenter():new google.maps.LatLng(0,0)}function B(){let e;try{e=n.map.getZoom()}catch(t){e=null}return e?parseInt(e):null}function R(){return!!(t.isEditable||t.search||mappl10n.options.search&&t.query)}(0,k.useResizeObserver)(m.current,(function(){if(n.poiList&&"inline"!=n.layout&&m.current){const e=m.current.clientWidth<mappl10n.options.mini;null==n.isMini?e&&f({isMini:e,isSidebarOpen:!1}):e!=n.isMini&&f({isMini:e,isSidebarOpen:!e})}})),(0,k.useResizeObserver)(u.current,G),x((()=>{switch(n.init){case null:!function(){const e=[__("MapPress FAQ")+": http://mappresspro.com/mappress-faq",__("Support")+": http://mappresspro.com/chris-contact",__("Get an API Key")+": https://mappresspro.com/how-to-get-a-google-maps-api-key"];let t=[{condition:"leaflet"==mappl10n.options.engine&&"undefined"==typeof L,title:__("Leaflet library not loaded"),text:__("A theme or plugin is preventing the Leaflet library from loading.")},{condition:"google"==mappl10n.options.engine&&"undefined"==typeof google,title:__("Google Maps API not loaded"),text:__("A theme or plugin is preventing Google Maps from loading.")},{condition:"google"==mappl10n.options.engine&&!mappl10n.options.apikey,title:__("Google Maps API key required")},{condition:document.querySelectorAll('script[src*="https://maps.googleapis.com/maps/api/js?v="]').length>1,title:__("Google Maps API loaded multiple times"),text:__("A theme or plugin has loaded Google Maps twice")},{condition:"undefined"==typeof _,title:__("Underscore library not loaded"),text:__("A theme or plugin is preventing the underscore.js library from loading.")}];t=t.filter((e=>e.condition));let n=t.map((e=>e.title+" : "+e.text));n.length&&(console.log(__("Map Error")+"\n----------------\n"+n.join("\n")+"\n----------------\n"+e.join("\n")),mappl10n.options.admin&&alert(__("Map error: please see the developer console (F12 in most browsers) for details.")))}();let e,o={...t.mapOpts};o.minZoom=isNaN(parseInt(o.minZoom))?0:parseInt(o.minZoom),"leaflet"==mappl10n.options.engine?(e=new L.Map(u.current,{attribution:'Map data <a href="https://openstreetmap.org">OpenStreetMap</a>',minZoom:0,scrollWheelZoom:mappl10n.options.scrollWheel,worldCopyJump:!0,zoomControl:null,...o}),L.control.zoom({position:"bottomright",zoomInTitle:"",zoomOutTitle:""}).addTo(e)):e=new google.maps.Map(u.current,{backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,mapTypeControl:!1,minZoom:0,scaleControl:!0,streetViewControl:!t.query,streetViewControlOptions:{position:google.maps.ControlPosition.LEFT_BOTTOM},...o}),f({map:e}),mappl10n.options.userLocation&&mappl10n.options.ssl&&d((e=>{e&&e.geometry&&e.geometry.location&&f({userLocation:e.geometry.location})}),!0),g({value:t.center,callback:e=>{e&&e.geometry&&e.geometry.location?f({parsedCenter:{lat:e.geometry.location.lat,lng:e.geometry.location.lng}}):f({parsedCenter:null}),f({init:1})}});break;case 1:Q(t.mapTypeId),function(){if(t.isEditable&&"google"==mappl10n.options.engine&&google.maps.drawing){const e={fillColor:"#0000FF",fillOpacity:.4,strokeColor:"#0000FF",strokeOpacity:1,strokeWeight:2};n.drawingManager=new google.maps.drawing.DrawingManager({drawingControlOptions:{position:google.maps.ControlPosition.TOP_CENTER,drawingModes:[google.maps.drawing.OverlayType.MARKER,google.maps.drawing.OverlayType.POLYGON,google.maps.drawing.OverlayType.POLYLINE,google.maps.drawing.OverlayType.RECTANGLE,google.maps.drawing.OverlayType.CIRCLE]},circleOptions:e,polygonOptions:e,polylineOptions:e,rectangleOptions:e}),n.drawingManager.setMap(n.map)}}(),function(){n.polyline&&("leaflet"==mappl10n.options.engine?n.polyline.remove():n.polyline.setMap(null),f({polyline:null}));if(t.isEditable||!t.lines&&!mappl10n.options.lines||n.pois.length<2)return;const e={...mappl10n.options.lineOpts},o=[];if(_.map(n.pois,(e=>{o.push(D(e))})),"leaflet"==mappl10n.options.engine)f({polyline:new L.Polyline(o,e).addTo(n.map)});else{const t={strokeColor:e.color,strokeWeight:e.weight,strokeOpacity:e.opacity};e.icons&&(_.map(e.icons,(e=>{e.icon.path=parseInt(e.icon.path)})),e.icons[0].repeat="50px"),f({polyline:new google.maps.Polyline({map:n.map,path:o,...e,...t})}),e.animate&&e.icons&&e.icons.length&&function(){let e=0;const t=n.polyline.get("icons");t[0].repeat.replace("%","").replace("px","");window.setInterval((()=>{e+=1;t[0].offset=e+(t[0].repeat.indexOf("%")>=0?"%":"px"),n.polyline.set("icons",t)}),20)}()}}(),t.query?v((()=>f({init:2}))):(f({pois:t.pois?t.pois:[]}),f({init:2}));break;case 2:const i="leaflet"==mappl10n.options.engine?"load":"tilesloaded";a.mappEvent.addListenerOnce(n.map,i,(()=>{f({bounds:N()}),function(){if(mappl10n.options.clustering&&!t.isEditable){let e,t=mappl10n.options.clusteringOptions?mappl10n.options.clusteringOptions:{};void 0!==t.disableClusteringAtZoom&&""==t.disableClusteringAtZoom&&(t.disableClusteringAtZoom=null),"leaflet"==mappl10n.options.engine?(e=L.markerClusterGroup(t),n.map.addLayer(e)):(t={...t,imagePath:mappl10n.options.baseurl+"/lib/js-markerclustererplus-main/images/m"},e=new MarkerClusterer(n.map,[],t)),f({clusterer:e})}}(),(t.initialOpenInfo||mappl10n.options.initialOpenInfo)&&!t.isEditable&&n.pois&&j(n.pois[0]),f({isLoaded:!0})})),U()}}),[n.init]),x((()=>{n.isLoaded&&!t.query&&f({pois:t.pois?t.pois:[]})}),[t.pois]),x((()=>{n.isLoaded&&t.query&&v()}),[t.query,n.filters]),x((()=>{n.isLoaded&&null==t.center&&U(null)}),[t.center]),x((()=>{n.isLoaded&&Q(t.mapTypeId)}),[t.mapTypeId]),x((()=>{n.isLoaded&&W(t.centerPoi)}),[t.centerPoi]),x((()=>{if(!n.isLoaded)return;let e,o,i;return e=a.mappEvent.addListener(n.map,"moveend idle",(e=>A())),o=a.mappEvent.addListener(n.map,"click dragstart zoom_changed zoomstart",(e=>{"leaflet"==mappl10n.options.engine&&"click"==e.type&&e.originalEvent&&!e.originalEvent.target.matches(".mapp-canvas")||F()})),n.drawingManager&&(i=a.mappEvent.addListener(n.drawingManager,"overlaycomplete",(e=>{n.drawingManager.setDrawingMode(null),V(null),t.onDrawingEvent&&t.onDrawingEvent(e)}))),t.name&&(window[t.name]={getPois:()=>n.pois,poiOpen:e=>f({opened:"string"==typeof e?e:e.id})}),()=>{a.mappEvent.removeListener(e),a.mappEvent.removeListener(o),i&&a.mappEvent.removeListener(i)}}));const A=(0,k.useDebounce)((()=>{f({bounds:N(),page:1}),t.onViewportChange&&t.onViewportChange({center:I(),zoom:B()})}),500,[t.onViewportChange,n.map]);function z(e,n){if("poi"!=mappl10n.options.mashupClick&&t.query&&"post"==e.otype&&e.oid&&e.url)switch(mappl10n.options.mashupClick){case"post":return void window.location.assign(e.url);case"postnew":return void window.open(e.url);case"postmodal":const t=document.createElement("div");return document.body.appendChild(t),wp.element.render(S(b.MappPopupModal,{onClose:()=>{wp.element.unmountComponentAtNode(t),t.remove()},poi:e}),t)}else j(e,n)}function F(){f({opened:null,isDirectionsOpen:!1})}function V(e){if(!e||e.id!=n.opened)if(e){if(e.id==n.opened)return;f({hovered:e.id}),mappl10n.options.tooltips&&!t.isEditable&&(F(),j(e,null))}else f({hovered:null})}function j(e,t){F(),n.isMini&&H(!1),f({kmlEvent:t,opened:e.id})}function G(){"leaflet"==mappl10n.options.engine?n.map.invalidateSize():a.mappEvent.trigger(n.map,"resize")}function H(e){f({isSidebarOpen:e=void 0!==e?e:!n.isSidebarOpen,isDirectionsOpen:!1}),setTimeout((()=>G()),100)}function U(e){e=null==e?n.parsedCenter:e;const o=t.zoom&&parseInt(t.zoom)?parseInt(t.zoom):null;if(e)return void $(e,o||1);if(0==n.pois.length)return void $({lat:0,lng:0},o||1);if(1==n.pois.length)return void W(n.pois[0]);let a="leaflet"==mappl10n.options.engine?new L.LatLngBounds:new google.maps.LatLngBounds;for(var i=0;i<n.pois.length;i++){var l=T(n.pois[i]);a=l?"leaflet"==mappl10n.options.engine?a.extend(l):a.union(l):a.extend(D(n.pois[i]))}o?$(E(a.getCenter()),o):O(a)}function W(e){let n;if(e.viewport){var o=e.viewport.ne.lng-e.viewport.sw.lng;o<0&&(o+=360),n=Math.floor(Math.log(360*u.current.clientWidth/o/256)/Math.LN2)}else n=t.zoom&&parseInt(t.zoom)?parseInt(t.zoom):parseInt(mappl10n.options.poiZoom);$(D(e),n)}function J(){return mappl10n.options.ssl?S("div",{className:"mapp-geolocate-control-wrapper"},S("div",{className:"mapp-geolocate-control",onClick:()=>(f({isGeolocating:!0}),void d((e=>{f({isGeolocating:!1}),e&&e.geometry&&e.geometry.location&&$(e.geometry.location,parseInt(mappl10n.options.poiZoom))}),!1)),title:__("Your Location")})):null}function Z(){if(n.isLoaded)return R()?S("div",{className:"mapp-header"},R()&&n.map?S("div",{className:"mapp-search-container"},S(s.MappPlaces,{buttonLabel:t.isEditable?__("Add to map"):S("img",{src:mappl10n.options.baseurl+"/images/search.png"}),focus:t.isEditable,includeBusinesses:t.isEditable,map:n.map,onSearch:e=>{t.onSearch?t.onSearch(e):function(e){if(!e||!e.geometry)return;const t=e.geometry.location?e.geometry.location:null,n=e.geometry.viewport?e.geometry.viewport:null;let o;if("leaflet"==mappl10n.options.engine){const e=new L.LatLng(t.lat,t.lng);o=n?new L.LatLngBounds(new L.LatLng(n.sw.lat,n.sw.lng),new L.LatLng(n.ne.lat,n.ne.lng)):e.toBounds(1e3*mappl10n.options.radius)}else{const e=new google.maps.Circle({center:t,radius:1e3*mappl10n.options.radius});o=n?new google.maps.LatLngBounds(new google.maps.LatLng(n.sw.lat,n.sw.lng),new google.maps.LatLng(n.ne.lat,n.ne.lng)).union(e.getBounds()):e.getBounds()}o&&O(o),$(t)}(e)}})):null,"top"==mappl10n.options.filtersPos&&null):null}function K(){if(!n.poiList||!n.isLoaded)return null;let e=[];return e=R()&&n.bounds&&!t.isEditable?n.pois.filter(((e,t)=>n.bounds.contains(D(e)))):n.pois,n.pageCount!=e.length&&f({pageCount:e.length}),S(c.MappPoiList,{className:!t.isEditable&&mappl10n.options.thumbsList?" mapp-thumb-"+mappl10n.options.thumbsList:"",hovered:n.hovered,isEditable:t.isEditable,isPaged:!!t.query,onClick:e=>z(h(e)),onDirectionsClick:e=>f({isDirectionsOpen:!0,directionsTo:h(e)}),onDragDrop:e=>{let{from:n,to:o}=e;return function(e,n){t.onDragDrop&&t.onDragDrop(e,n)}(n,o)},onHover:e=>V(h(e)),onPage:e=>{f({page:e})},opened:n.opened,page:n.page,pois:e,template:t.isEditable?null:n.templates.item})}function q(){if(n.isLoaded)return n.pois.map((o=>S(p.MappPoi,{key:o.id,isClusterable:!!n.clusterer,isEditable:!!t.isEditable,isHovered:o.id==n.hovered,isOpen:o.id==n.opened,map:n.map,onChange:e=>{t.onPoiChange&&t.onPoiChange(o.id,e)},onClick:e=>z(o,e),onClusterAdd:e=>function(e){n.clusterer&&("leaflet"==mappl10n.options.engine?n.clusterer.addLayer(e):n.clusterer.addMarker(e))}(e),onMouseOut:()=>{V(null)},onMouseOver:()=>V(o),onRenderPopup:(o,a)=>function(o,a){const i=function(e){if(n.clusterer){if("leaflet"==mappl10n.options.engine){var t=n.clusterer.getVisibleParent(e);return t&&t!=e?t.getLatLng():null}const a=n.clusterer.getClusters();for(var o=0;o<a.length;o++){const t=a[o].markers_;if(t.length>1)for(let n=0;n<t.length;n++)if(t[n]==e)return a[o].center_}}}(a),l=D(o),s=E(i||l);let p,c,u={x:0,y:0};i?u={x:0,y:-14}:o.type||(u=mappl10n.options.iconScale&&mappl10n.options.iconScale[0]&&mappl10n.options.iconScale[1]?{x:0,y:0-mappl10n.options.iconScale[1]}:{x:0,y:-32});n.kmlEvent&&(n.kmlEvent.pixelOffset&&(u={x:e.pixelOffset.width,y:e.pixelOffset.height}),n.kmlEvent.featureData?p=n.kmlEvent.featureData:n.kmlEvent&&n.kmlEvent.propagatedFrom&&n.kmlEvent.propagatedFrom.feature&&n.kmlEvent.propagatedFrom.feature.properties&&(p=n.kmlEvent.propagatedFrom.feature.properties));c=t.onRenderPopup?t.onRenderPopup(o,F):S(r.MappPoiContent,{context:"popup",feature:p,onDirectionsClick:()=>f({isDirectionsOpen:!0,directionsTo:o}),poi:o,template:n.templates.popup,thumbs:mappl10n.options.thumbsPopup});return S(y,{anchor:u,className:!t.isEditable&&mappl10n.options.thumbsPopup?"mapp-thumb-"+mappl10n.options.thumbsPopup:"",content:c,map:n.map,point:s})}(o,a),poi:o})))}function Y(){return!n.poiList||n.isDirectionsOpen&&"inline"==mappl10n.options.directions?null:S("div",{className:"mapp-sidebar"+(n.isSidebarOpen?" mapp-sidebar-open":"")},S("div",{className:"mapp-sidebar-toggle",onClick:()=>H()}),"list"==mappl10n.options.filtersPos&&null,t.onRenderSidebar&&t.onRenderSidebar(),K())}function X(e){return S(C,null,S("div",{className:"mapp-wrapper",style:e},S("div",{className:"mapp-content"},n.isFetching||n.isGeolocating?S(C,null,S("div",{className:"mapp-spinner-overlay"}),S("div",{className:"mapp-spinner"})):null,Z(),S("div",{className:"mapp-main"},"inline"!=n.layout&&Y(),function(){if(!n.isDirectionsOpen)return null;let e="";if(n.directionsTo)if(n.directionsTo.address)e=n.directionsTo.address;else{const t=E(D(n.directionsTo));e=t.lat+", "+t.lng}return S(i.MappDirections,{from:"",to:e,onClose:()=>{f({isDirectionsOpen:!1,directionsTo:null})}})}(),S("div",{className:"mapp-canvas-panel"},S("div",{className:"mapp-canvas",ref:u}),n.isLoaded&&n.userLocation?S(p.MappPoi,{isClusterable:!1,isEditable:!1,isOpen:!1,key:"user",map:n.map,poi:{point:n.userLocation,iconid:"geolocation"}}):null,q(),t.isEditable||"leaflet"==mappl10n.options.engine||!n.map?null:S(l.MappMenuControl,{map:n.map,onCenter:()=>{F(),U()}}),J())),n.poiList&&"inline"!=n.layout&&n.isMini?S("div",{className:"mapp-footer"},!n.isSidebarOpen&&S("div",{className:"mapp-button mapp-view-list",onClick:()=>H(!0)},S("img",{src:mappl10n.options.baseurl+"/images/outline_format_list_bulleted_black_18dp.png"}),"List"),n.isSidebarOpen&&S("div",{className:"mapp-button mapp-view-map",onClick:()=>H(!1)},S("img",{src:mappl10n.options.baseurl+"/images/outline_map_black_18dp.png"}),"Map")):null)),"inline"==n.layout&&Y())}function Q(e){const t=mappl10n.options.standardStyles.concat(mappl10n.options.userStyles),o=_.find(t,(t=>t.id==e));!mappl10n.options.style||"roadmap"!=e&&"streets"!=e&&o||(e=mappl10n.options.style);let a=_.find(t,(t=>t.id==e));if(a=a||t[0],"leaflet"==mappl10n.options.engine){let e={mapbox:{accessToken:mappl10n.options.mapbox,attribution:['<a href="https://www.mappresspro.com" target="_blank">MapPress</a>','<a href="https://www.mapbox.com/about/maps" target="_blank">&copy; Mapbox<a/>','<a href="https://www.openstreetmap.org/about/" target="_blank">&copy; OpenStreetMap</a>'],url:"https://api.mapbox.com/styles/v1/{user}/{mapboxid}/tiles/256/{z}/{x}/{y}{r}?access_token={accessToken}&fresh=true",zoomOffset:0},osm:{attribution:['<a href="https://www.mappresspro.com" target="_blank">MapPress</a>','<a href="https://openstreetmap.org" target="_blank">Map data (c) OpenStreetMap</a>'],url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}}[a.provider],t={...e,...a};L.tileLayer(e.url,t).addTo(n.map)}else if(n.map.setMapTypeId("standard"==a.type?a.id:"roadmap"),a.json){let e=null;try{e=JSON.parse(a.json)}catch(e){console.log("Invalid JSON in map style")}n.map.setOptions({styles:e||null})}else n.map.setOptions({styles:null})}function $(e,t,o){"leaflet"==mappl10n.options.engine?(null==t&&(t=n.map.getZoom()?n.map.getZoom():0),n.map.setView(e,t,o)):(e=e&&!E(e)?{lat:parseFloat(e.lat),lng:parseFloat(e.lng)}:e,t=t?parseInt(t):null,e&&n.map.setCenter(e),t&&n.map.setZoom(t))}const ee=t.name?t.name+"-layout":"",te=function(){if(t.embed)return{width:"100%",height:"100%"};const e=mappl10n.options.sizes[mappl10n.options.size]?mappl10n.options.sizes[mappl10n.options.size]:mappl10n.options.sizes[0],n=e=>"string"==typeof e&&(e.indexOf("px")>=0||e.indexOf("%")>=0||e.indexOf("vh")>=0||e.indexOf("vw")>=0)?e:e+"px";return{width:t.width?n(t.width):n(e.width),height:t.height?n(t.height):n(e.height)}}();let ne=[];ne.push("left"==n.layout?"mapp-list-left":"mapp-inline"),ne.push("leaflet"==mappl10n.options.engine?"mapp-leaflet":"mapp-google"),n.isMini&&ne.push("mapp-mini"),t.classname&&ne.push(t.classname);const oe=t.alignment?t.alignment:mappl10n.options.alignment;let ae=[];oe&&!document.body.classList.contains("block-editor-page")&&(ae.push("align"+oe),ae.push("mapp-align-"+oe));const ie="full"==t.alignment?"auto":te.width,le=te.height.includes("vh")?{height:te.height}:{paddingBottom:te.height,height:"auto"};let se=t.parent?t.parent:null;if(window.frameElement){const e=window.frameElement.parentElement.parentElement,t=window.frameElement.parentElement;return e.className="mapp-iframe-container "+ae.join(" "),e.style.width=ie,Object.assign(t.style,le),se.className="mapp-layout "+ne.join(" "),se.style.height="100%",X({height:"100%"})}if(se)return se.className="mapp-layout "+ne.join(" ")+" "+ae.join(" "),se.id=ee,se.style.width=ie,X(le);{const e="mapp-layout "+ne.join(" ")+" "+ae;return S("div",{ref:m,className:e,id:ee,style:{width:ie},tabIndex:"-1"},X(le))}}},759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mappMarker:()=>a});var o=n(939);function a(e){this.anchorPoint=null,this.div=null,this.draggable=null,this.icon=null,this.map=null,this.position=null,this.visible=null,this.zIndex=0,this.setValues(e),this.overlayView=new google.maps.OverlayView,this.overlayView.draw=()=>this.draw(),this.overlayView.onAdd=()=>this.onAdd(),this.overlayView.onRemove=()=>this.onRemove(),this.div=document.createElement("div"),this.div.classList.add("mapp-marker")}a.prototype={draw:function(){if(!this.div||!this.icon)return;let e=this.overlayView.getProjection();if(e){let t=e.fromLatLngToDivPixel(this.position),n=this.icon.scaledSize?this.icon.scaledSize:{width:32,height:32};this.div.style.left=t.x-n.width/2+"px",this.div.style.top=t.y-n.height+"px"}},getDiv:function(){return this.div},getDraggable:function(){return this.draggable},getMap:function(){return this.map},getPosition:function(){return this.position},getVisible:function(){return this.visible},handleEvent:function(e){let t="on"+e.type[0].toUpperCase()+e.type.slice(1);this[t]&&this[t](e)},onAdd:function(){let e=this.overlayView.getPanes();e&&(this.div||(this.div=document.createElement("div"),this.div.classList.add("mapp-marker")),e.overlayMouseTarget.append(this.div),this.icon&&this.setIcon(),google.maps.OverlayView.preventMapHitsAndGesturesFrom(this.div),this.div.addEventListener("click",(()=>{(!this.dragging||this.dragging&&!this.dragging.moved)&&o.mappEvent.trigger(this,"click"),this.dragging=null})),this.div.addEventListener("mouseenter",this),this.div.addEventListener("mouseleave",this),this.setDraggable(this.draggable))},onMouseenter:function(e){o.mappEvent.trigger(this,"mouseover")},onMouseleave:function(e){o.mappEvent.trigger(this,"mouseout")},onPointerdown:function(e){const t=this.map.getDiv().getBoundingClientRect(),n=this.overlayView.getProjection().fromLatLngToContainerPixel(this.position);this.dragging={moved:!1,startPixel:{x:e.clientX,y:e.clientY},offset:{x:n.x-(e.clientX-t.left),y:n.y-(e.clientY-t.top)}},this.toggleDragEvents(!0)},onPointermove:function(e){if(Math.abs(e.clientX-this.dragging.startPixel.x)+Math.abs(e.clientY-this.dragging.startPixel.y)<3)return;const t=this.map.getDiv().getBoundingClientRect();let n={x:e.clientX-t.left+this.dragging.offset.x,y:e.clientY-t.top+this.dragging.offset.y};this.setPosition(this.overlayView.getProjection().fromContainerPixelToLatLng(n)),this.draw(),this.dragging.moved=!0,o.mappEvent.trigger(this,"dragstart")},onPointercancel:function(e){this.onPointerup(e)},onPointerup:function(e){this.dragging&&this.dragging.moved&&o.mappEvent.trigger(this,"dragend"),this.toggleDragEvents(!1)},onRemove:function(){this.div&&(this.toggleDragEvents(!1),this.div.remove(),this.div=null)},set:function(e,t){let n="set"+e[0].toUpperCase()+e.slice(1);this[n]&&this[n](t)},setDraggable:function(e){this.draggable=e,this.map&&this.div&&(this.div.removeEventListener("pointerdown",this,{passive:!0}),e&&this.div.addEventListener("pointerdown",this,{passive:!0}))},setIcon:function(e){if(void 0!==e&&(this.icon=e),this.icon&&this.div){let e='<img draggable="false" src="'+this.icon.url+'">';this.div.innerHTML=e;let t=this.icon.scaledSize?this.icon.scaledSize:{width:32,height:32};this.div.style.width=t.width+"px",this.div.style.height=t.height+"px",this.setZIndex(),this.draw()}},setMap:function(e){this.map=e,this.overlayView.setMap(e)},setPosition:function(e){this.position=e},setValues:function(e){for(const t in e)this.set(t,e[t])},setVisible:function(e){this.visible=e,this.div&&(this.div.style.visibility=e?"visible":"hidden")},setZIndex:function(e){this.zIndex=void 0!==e?e:this.zIndex,this.div&&(this.div.style.zIndex=e)},toggleDragEvents(e){document.removeEventListener("pointermove",this,{passive:!0}),document.removeEventListener("pointerup",this,{passive:!0}),document.removeEventListener("pointercancel",this,{passive:!0}),e&&(document.addEventListener("pointermove",this,{passive:!0}),document.addEventListener("pointerup",this,{passive:!0}),document.addEventListener("pointercancel",this,{passive:!0}))}}},602:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappMenuControl:()=>c});var o=n(326);const a=wp.element.createElement,{Fragment:i,useEffect:l,useLayoutEffect:s,useRef:p,useState:r}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function c(e){e={layer:null,map:null,onCenter:null,...e};const[t,n]=r({activeLayer:e.layer?e.layer:null,layers:null,isOpen:!1}),s=p(null);function c(e){n((t=>({...t,...e})))}function u(){c({isOpen:!t.isOpen})}return(0,o.useClickOutside)(s,(()=>{t.isOpen&&u()})),l((()=>{if("google"==mappl10n.options.engine){c({layers:{traffic:{googleLayer:new google.maps.TrafficLayer,label:__("Traffic")},bicycling:{googleLayer:new google.maps.BicyclingLayer,label:__("Bicycling")},transit:{googleLayer:new google.maps.TransitLayer,label:__("Transit")}}})}}),[]),a("div",{ref:s},a("div",{className:"mapp-menu-toggle",onClick:()=>u()}),t.isOpen&&function(){const n=_.map(t.layers,((n,o)=>{const i=t.activeLayer==o?"mapp-menu-item mapp-active":"mapp-menu-item";return a("div",{className:i,key:o,onClick:()=>function(n){t.activeLayer&&t.layers[t.activeLayer].googleLayer.setMap(null),n!=t.activeLayer&&t.layers[n].googleLayer.setMap(e.map),c({activeLayer:n==t.activeLayer?null:n,isOpen:!1})}(o)},n.label)}));return a("div",{className:"mapp-menu"},a("div",{className:"mapp-menu-items"},a("div",{className:"mapp-menu-item",onClick:()=>(c({isOpen:!1}),void e.onCenter())},__("Center map")),"google"==mappl10n.options.engine&&a(i,null,a("div",{className:"mapp-menu-separator"}),n)),a("div",{className:"mapp-menu-footer"},a("a",{className:"mapp-menu-help",href:"https://mappresspro.com/mappress-documentation",target:"_blank"},a("span",null,__("Help")))))}())}},27:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPaginate:()=>r});const o=wp.element.createElement,{Fragment:a,useEffect:i,useLayoutEffect:l,useRef:s,useState:p}=wp.element,{sprintf}=wp.i18n;function r(e){function t(t,n){const o=Math.ceil(e.count/e.pageSize);switch(t){case"first":e.onChange(1);break;case"last":e.onChange(o);break;case"next":e.page<o&&e.onChange(e.page+1);break;case"prev":e.page>1&&e.onChange(e.page-1)}}return function(){const n=Math.ceil(e.count/e.pageSize),a=e.isBusy||e.page<=1,i=e.isBusy||e.page>=n,l=a?"mapp-paginate-button mapp-disabled":"mapp-paginate-button",s=i?"mapp-paginate-button mapp-disabled":"mapp-paginate-button",p=(r="%d of %d",wp.i18n.__(r,"mappress-google-maps-for-wordpress"));var r;return o("div",{className:"mapp-paginate"},o("div",{className:l,onClick:()=>{a||t("first")}},"«"),o("div",{className:l,onClick:()=>{a||t("prev")}},"‹"),o("div",{className:"mapp-paginate-count"},sprintf(p,e.page,n)),o("div",{className:s,onClick:()=>{i||t("next")}},"›"),o("div",{className:s,onClick:()=>{i||t("last")}},"»"))}()}},818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPlaces:()=>m});var o=n(117),a=n(10);const i=wp.element.createElement,{Fragment:l,useCallback:s,useEffect:p,useLayoutEffect:r,useRef:c,useState:u}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function m(e){e={buttonLabel:null,focus:!1,includeBusinesses:!1,map:null,onSearch:null,...e};const{geocode:t,getPredictions:n}=(0,a.useGeocoding)({map:e.map,includeBusinesses:e.includeBusinesses}),[l,s]=u({suggestions:[]});return i(o.MappAutocomplete,{buttonLabel:e.buttonLabel,className:"mapp-places",debounce:"nominatim"===mappl10n.options.geocoder?500:300,delay:"nominatim"==mappl10n.options.geocoder?500:50,focus:e.focus,onFetch:function(t){n({map:e.map,value:t,callback:e=>{var t;t={suggestions:e},s((e=>({...e,...t})))}})},onSelect:function(n){let{suggestion:o,value:a}=n;t({map:e.map,suggestion:o,value:a,callback:t=>{t&&e.onSearch(t)}})},placeholder:__("Search"),suggestions:l.suggestions,title:__("Enter an address, place, KML file URL, or lat,lng")})}},50:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPoiContent:()=>u});var o=n(939);const a=wp.element.createElement,{Fragment:i,useEffect:l,useLayoutEffect:s,useMemo:p,useRef:r,useState:c}=wp.element;wp.i18n.sprintf;function u(e){e={context:null,feature:null,onDirectionsClick:null,poi:null,template:null,thumbs:null,...e};const[t,n]=c({imageNumber:0});function l(e){n((t=>({...t,...e})))}return a(i,null,function(){const n="list"!=e.context&&mappl10n.options.thumbWidth&&mappl10n.options.thumbHeight?{width:mappl10n.options.thumbWidth+"px",height:mappl10n.options.thumbHeight+"px"}:null,o=e.thumbs&&e.poi.images&&e.poi.images.length&&e.poi.images[t.imageNumber]?e.poi.images[t.imageNumber]:null;if(!o)return null;const i=function(e){switch(e.type){case"avatar":return a("div",{className:"mapp-avatar",dangerouslySetInnerHTML:{__html:e.html}});case"embed":return a("div",{className:"mapp-embed",dangerouslySetInnerHTML:{__html:e.html}});default:if("image"==e.type||!e.type){const t=e.size?{src:e.url,width:e.size[0]+"px",height:e.size[1]+"px"}:{src:e.url};return a("img",t)}}}(o);return a("div",{className:"mapp-thumbnail",style:n},t.imageNumber>=1&&a("div",{className:"mapp-gallery-previous",onClick:e=>function(e){t.imageNumber>0&&(l({imageNumber:t.imageNumber-1}),e.stopPropagation())}(e)}),i,t.imageNumber<e.poi.images.length-1&&a("div",{className:"mapp-gallery-next",onClick:n=>function(n){t.imageNumber<e.poi.images.length-1&&(l({imageNumber:t.imageNumber+1}),n.stopPropagation())}(n)}))}(),a("div",{className:"mapp-info"},function(){let t={...e.poi};t.icon=o.mappLib.getIconUrl(e.poi.iconid),e.feature&&(t.body=e.feature.description,t.title=e.feature.name),t.props=t.props?t.props:{};const n=o.mappLib.template(e.template,{poi:t});return a("div",{className:"mapp-template",dangerouslySetInnerHTML:{__html:n}})}(),function(){var t;if(!(e.template.indexOf("user")>=0))return"popup"==e.context&&mappl10n.options.directionsPopup||"list"==e.context&&mappl10n.options.directionsList?a("div",null,a("span",{className:"mapp-dir",onClick:t=>function(t){t.stopPropagation(),e.onDirectionsClick()}(t)},(t="Get Directions",wp.i18n.__(t,"mappress-google-maps-for-wordpress")))):void 0}()))}},615:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPoiList:()=>g});var o=n(939),a=n(27),i=n(50);const l=wp.element.createElement,{Fragment:s,useEffect:p,useLayoutEffect:r,useMemo:c,useRef:u,useState:m}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress"),sprintf=wp.i18n.sprintf;const g=wp.element.memo((function(e){e={className:null,hovered:null,isEditable:!1,isPaged:!1,onClick:null,onDragDrop:null,onHover:null,onPage:null,opened:null,page:1,pois:null,template:null,...e};const[t,n]=m({dragging:null,dragover:null,pageSize:!e.isEditable&&mappl10n.options.poiListPageSize?parseInt(mappl10n.options.poiListPageSize):20});function p(e){n((t=>({...t,...e})))}function r(n){let a,r="mapp-item";return e.opened!=n.id&&e.hovered!=n.id||(r+=" mapp-selected"),r+=t.dragover==n.id?" mapp-dragover":"",a=e.isEditable?l(s,null,l("img",{className:"mapp-icon",src:o.mappLib.getIconUrl(n.iconid)}),l("div",{className:"mapp-title"},n.title)):l(i.MappPoiContent,{context:"list",onDirectionsClick:()=>e.onDirectionsClick(n.id),poi:n,template:e.template,thumbs:mappl10n.options.thumbsList}),l("div",{className:r,dangerouslySetInnerHTML:null,draggable:e.isEditable,key:n.id,onClick:()=>e.onClick(n.id),onDragOver:e=>e.preventDefault(),onDragStart:e=>p({dragging:n.id}),onDragEnter:e=>p({dragover:n.id}),onDragEnd:e=>p({dragging:null,dragover:null}),onDrop:o=>{return a=n.id,void(e.onDragDrop&&e.onDragDrop({from:t.dragging,to:a}));var a},onMouseEnter:t=>{e.onHover(n.id)},onMouseLeave:t=>{e.onHover(null)}},a)}return l("div",{className:"mapp-list "+(e.className?e.className:"")},e.isPaged&&function(){let t=1!=e.pois.length?__("%d Results"):__("%d Result");return t=sprintf(t,e.pois.length),l("div",{className:"mapp-list-header"},l("div",{className:"mapp-list-count"},t))}(),function(){const n=t.pageSize*(e.page-1),o=n+t.pageSize-1;return l("div",{className:"mapp-items"},_.map(e.pois,((t,a)=>{if(!e.isPaged||a>=n&&a<=o)return r(t)})))}(),e.isPaged&&(!e.isPaged||e.pois.length<=t.pageSize?null:l("div",{className:"mapp-list-footer"},l(a.MappPaginate,{count:e.pois.length,onChange:t=>e.onPage(t),page:e.page,pageSize:t.pageSize}))))}))},81:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPoi:()=>u});var o=n(939),a=n(759);wp.element.createElement;const{Fragment:i,useEffect:l,useLayoutEffect:s,useMemo:p,useRef:r,useState:c}=wp.element;function u(e){e={isClusterable:null,isEditable:null,isHovered:null,isOpen:null,map:null,onClusterAdd:null,onMouseOut:null,onMouseOver:null,poi:null,...e};const t=r(null),[n,i]=c({overlay:null});function s(t){p()&&"google"==mappl10n.options.engine&&("rectangle"==e.poi.type&&(o.mappEvent.clearListeners(n.overlay,"bounds_changed"),t&&o.mappEvent.addListener(n.overlay,"bounds_changed",(()=>{u()}))),"circle"==e.poi.type&&(o.mappEvent.clearListeners(n.overlay,"center_changed radius_changed"),t&&o.mappEvent.addListener(n.overlay,"center_changed radius_changed",(()=>{u()}))),"polygon"!=e.poi.type&&"polyline"!=e.poi.type||(o.mappEvent.clearListeners(n.overlay,"rightclick"),o.mappEvent.clearListeners(n.overlay.getPath(),"insert_at remove_at set_at"),t&&(o.mappEvent.addListener(n.overlay,"rightclick",(e=>{null!=e.vertex&&n.overlay.getPath().getLength()>2&&(n.overlay.getPath().removeAt(e.vertex),u())})),o.mappEvent.addListener(n.overlay.getPath(),"insert_at remove_at set_at",(()=>{u()})))))}function p(){return"google"==mappl10n.options.engine&&-1!=["polyline","polygon","circle","rectangle"].indexOf(e.poi.type)}function u(){const t=o.mappPoi.parseOverlay(e.poi.type,n.overlay);e.onChange(t)}function m(t,n){n?"leaflet"==mappl10n.options.engine?t.addTo(e.map):t.setMap(e.map):"leaflet"==mappl10n.options.engine?t.remove():t.setMap(null)}return l((()=>{const n="leaflet"==mappl10n.options.engine&&"kml"!=e.poi.type?null:e.poi.type,l=_.pick(e.poi.poly,"strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity");let s;switch(n){case"polygon":s=new google.maps.Polygon({paths:e.poi.poly.paths,...l});break;case"polyline":s=new google.maps.Polyline({path:e.poi.poly.path,...l});break;case"circle":const t=new google.maps.LatLng(e.poi.point.lat,e.poi.point.lng);s=new google.maps.Circle({center:t,radius:parseFloat(e.poi.poly.radius),...l});break;case"rectangle":s=new google.maps.Rectangle({bounds:o.mappLib.viewportToBounds(e.poi.viewport),...l});break;case"kml":const n=e.poi.kml&&e.poi.kml.url?e.poi.kml.url:"";s="leaflet"==mappl10n.options.engine?omnivore.kml(n):new google.maps.KmlLayer({url:n,preserveViewport:!0,suppressInfoWindows:!0});break;default:s="leaflet"==mappl10n.options.engine?L.marker([e.poi.point.lat,e.poi.point.lng]):new a.mappMarker({position:new google.maps.LatLng(e.poi.point.lat,e.poi.point.lng)}),s.setIcon(o.mappLib.getIcon(e.poi.iconid))}var r;return r={overlay:s},i((e=>({...e,...r}))),"kml"!=e.poi.type&&("leaflet"==mappl10n.options.engine?s.options.draggable=e.isEditable:s.setDraggable(e.isEditable),p()&&s.setEditable(e.isEditable)),e.isClusterable?(e.onClusterAdd(s),"google"==mappl10n.options.engine&&m(s,e.map)):m(s,e.map),t.current=s,()=>{m(t.current,null)}}),[]),l((()=>{if(n.overlay){const t=_.pick(e.poi.poly,"strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity");n.overlay.setOptions({...t})}}),[e.poi.poly]),l((()=>{n.overlay&&n.overlay.setIcon(o.mappLib.getIcon(e.poi.iconid))}),[e.poi.iconid]),l((()=>{n.overlay&&function(t){if(e.poi.type)return;if("icon"==mappl10n.options.highlight&&"leaflet"==mappl10n.options.engine&&e.isEditable)return;var a="leaflet"==mappl10n.options.engine?n.overlay._icon:n.overlay.getDiv();if(!a)return;switch(e.isEditable?"circle":mappl10n.options.highlight){case"circle":a.classList.toggle("mapp-marker-circle",t);break;case"icon":var i=t?o.mappLib.getIcon(mappl10n.options.highlightIcon):o.mappLib.getIcon(e.poi.iconid);if("leaflet"==mappl10n.options.engine&&n.overlay.getIcon().options.iconUrl==i.options.iconUrl)return;n.overlay.setIcon(i);break;case"scale":a.classList.add("mapp-marker"),a.classList.toggle("mapp-marker-scale",t)}const l=t?1e4:0;"leaflet"==mappl10n.options.engine?e.poi.type||n.overlay.setZIndexOffset(l):n.overlay.set("zIndex",l)}(e.isHovered||e.isOpen)}),[e.isHovered,e.isOpen,n.overlay]),l((()=>{if(n.overlay)return o.mappEvent.addListener(n.overlay,"click",(t=>{e.onClick(t)})),o.mappEvent.addListener(n.overlay,"mouseover",(t=>e.onMouseOver(t))),o.mappEvent.addListener(n.overlay,"mouseout",(t=>e.onMouseOut(t))),"kml"==e.poi.type&&("leaflet"==mappl10n.options.engine?(o.mappEvent.addListenerOnce(n.overlay,"ready",(()=>{n.overlayUpdate()})),o.mappEvent.addListenerOnce(n.overlay,"error",(()=>{alert(mappl10n.kml_error+" : "+e.poi.kml.url)}))):(o.mappEvent.addListener(n.overlay,"defaultviewport_changed",(()=>{u()})),o.mappEvent.addListener(n.overlay,"status_changed",(()=>{"OK"!=n.overlay.getStatus()&&alert(mappl10n.kml_error+" : "+e.poi.kml.url)})))),e.isEditable&&(s(!0),o.mappEvent.addListener(n.overlay,"dragstart",(()=>(s(!1),void(e.onChange&&e.onChange({viewport:null}))))),o.mappEvent.addListener(n.overlay,"dragend",(()=>(u(),void s(!0))))),()=>{o.mappEvent.clearInstanceListeners(n.overlay)}})),e.isOpen?e.onRenderPopup(e.poi,n.overlay):null}},892:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPopupModal:()=>u});var o=n(939);const a=wp.element.createElement,i=wp.element.createPortal,{Fragment:l,useEffect:s,useLayoutEffect:p,useRef:r,useState:c}=wp.element;function u(e){e={onClose:null,poi:null,...e};const[t,n]=c({isBusy:!1,html:null});function l(e){n((t=>({...t,...e})))}const p=React.createRef();function r(t){27==t.keyCode&&e.onClose()}return s((()=>(document.body.classList.add("mapp-modal-noscroll"),()=>document.body.classList.remove("mapp-modal-noscroll"))),[]),s((()=>{e.poi.oid&&(l({isBusy:!0}),o.mappLib.ajax({method:"GET",data:{action:"mapp_get_post",oid:e.poi.oid,nonce:mappl10n.options.nonce},responseType:"html",callback:e=>{l({isBusy:!1,html:e})}}))}),[e.poi.oid]),s((()=>{p.current&&p.current.focus(),console.log("focus"+document.activeElement)}),[p.current]),i(a("div",{className:"mapp-modal"},a("div",{className:"mapp-modal-backdrop",onClick:e.onClose,onKeyDown:r},a("div",{className:"mapp-modal-close",onClick:e.onClose},"×")),a("div",{className:"mapp-modal-content-wrapper",ref:p,onKeyDown:r,tabIndex:0},a("div",{className:"mapp-modal-content"},t.isBusy&&a("div",{className:"mapp-modal-spinner"}),!t.isBusy&&a("div",{className:"mapp-modal-template",dangerouslySetInnerHTML:{__html:t.html}}),a("div",{className:"mapp-modal-close",onClick:e.onClose},"X")))),document.body)}}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(117),o(715),o(817),o(10),o(326),o(939),o(346),o(759),o(602),o(27),o(818),o(81),o(50),o(615),o(892),o(374)})();
1
+ (()=>{var t={117:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappAutocomplete:()=>m});var o=n(326);const a=wp.element.createElement,{Fragment:i,useCallback:l,useEffect:s,useLayoutEffect:p,useMemo:r,useRef:c,useState:u}=wp.element;function m(e){e={buttonLabel:null,className:"",delay:null,focus:!1,onFetch:null,onSelect:null,placeholder:"",selected:null,suggestions:[],title:"",...e};const t=c(null),n=c(null),[i,l]=u({isOpen:!1,value:""});function p(e){l((t=>({...t,...e})))}(0,o.useClickOutside)(t,(()=>{i.isOpen&&p({isOpen:!1})})),s((()=>{e.focus&&n.current&&n.current.focus()}),[n.current]),s((()=>{i.map&&setMapTypeId(e.mapTypeId)}),[e.mapTypeId,i.map]);const r=(0,o.useDebounce)((t=>{e.onFetch&&e.onFetch(t)}),e.delay);function m(){let t;p({isOpen:!1}),e.suggestions&&(t=null==i.selected?e.suggestions[0]:e.suggestions[i.selected]),e.onSelect({suggestion:t,value:g})}const g=i.selected>=0&&e.suggestions&&e.suggestions[i.selected]?e.suggestions[i.selected].value:i.value;return a("div",{className:"mapp-autocomplete",ref:t},a("div",{className:"mapp-autocomplete-wrapper"},a("input",{className:e.className,onChange:e=>{!function(e){p({value:e,selected:null}),r(e)}(e.target.value)},onKeyDownCapture:t=>function(t){switch(t.stopPropagation(),t.code){case"Backspace":p({isOpen:i.value.length>1});break;case"Enter":m();break;case"Escape":p({isOpen:!1});break;case"ArrowUp":if(t.preventDefault(),e.suggestions&&0!=i.selected){const t=null==i.selected?e.suggestions.length-1:i.selected-1;e.suggestions[t]&&p({isOpen:!0,selected:t})}else p({selected:null});break;case"ArrowDown":if(e.suggestions&&i.selected<e.suggestions.length-1){const t=null==i.selected?0:i.selected+1;e.suggestions[t]&&p({isOpen:!0,selected:t})}else p({selected:null});break;case"Tab":case"AltLeft":case"AltRight":case"ControlLeft":case"ControlRight":case"MetaLeft":case"MetaRight":break;default:p({isOpen:!0})}}(t),placeholder:e.placeholder,ref:n,title:e.title,type:"text",value:g}),i.isOpen&&function(){if(e.suggestions&&e.suggestions.length)return a("div",{className:"mapp-autocomplete-list"},_.map(e.suggestions,((t,n)=>{const o="mapp-autocomplete-item"+(i.selected==n?" mapp-selected":"");return a("div",{className:o,key:n,onClick:()=>function(t,n){p({isOpen:!1,selected:n}),e.onSelect({suggestion:t})}(t,n)},t.value)})))}()),e.buttonLabel&&a("div",{className:"mapp-submit-button",onClick:()=>m()},e.buttonLabel))}},715:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappDirections:()=>r});const o=wp.element.createElement,{Fragment:a,useEffect:i,useLayoutEffect:l,useRef:s,useState:p}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function r(e){e={from:null,onClose:null,to:null,...e};const[t,n]=p({from:e.from?e.from:"",to:e.to?e.to:""});function a(e){n((t=>({...t,...e})))}function l(){e.onClose&&e.onClose()}function s(){const e=t.from.trim(),n=t.to.trim();let o=mappl10n.options.directionsServer;o="https://maps.google.com"==o?"https://www.google.com":o,-1==o.toLowerCase().indexOf("http")&&(o="https://"+o),o+="/maps/dir/?api=1&origin="+encodeURIComponent(e)+"&destination="+encodeURIComponent(n),window.open(o),l()}function r(e){13==e?s():27==e&&l()}return i((()=>{"google"==mappl10n.options.directions&&s()}),[]),"google"==mappl10n.options.directions?null:o("div",{className:"mapp-directions"},o("div",{className:"mapp-close",onClick:()=>l()}),o("div",null,o("input",{className:"mapp-dir-from",onChange:e=>a({from:e.target.value}),onKeyPress:e=>r(e.which),tabIndex:"1",placeholder:__("My location"),value:t.from}),o("div",{className:"mapp-dir-arrows",onClick:()=>{a({from:t.to,to:t.from})}})),o("div",null,o("input",{className:"mapp-dir-to",onChange:e=>a({to:e.target.value}),onKeyPress:e=>r(e.which),tabIndex:"2",value:t.to})),o("div",{className:"mapp-dir-toolbar"},o("div",{className:"mapp-submit-button",onClick:()=>s()},__("Get Directions"))))}},817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappFilters:()=>u});var o=n(939),a=n(326);const i=wp.element.createElement,{Fragment:l,useEffect:s,useLayoutEffect:p,useRef:r,useState:c}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress"),sprintf=wp.i18n.sprintf,u=e=>{e={onChange:null,otype:"post",poiCount:0,...e};const t=(0,a.useDebounce)(e.onChange,500),[n,p]=c({filters:[],isBusy:!0,open:null,selected:{}});function u(e){p((t=>({...t,...e})))}const m=r({});function g(e,o){let a=n.selected[e.key]?n.selected[e.key].values:null;if("checkbox"==e.format){var i;const e=null===(i=a)||void 0===i?void 0:i.indexOf(o);e>-1?a.splice(e,1):(a=a||[],a.push(o))}else a=o?[o]:[];a.length?n.selected[e.key]={key:e.key,values:a,meta_key:e.meta_key,meta_values:e.meta_values}:delete n.selected[e.key],u({selected:n.selected}),t(n.selected)}function d(e){u({open:n.open==e?null:e})}function f(e){e.key;const t=[...e.values],a=n.selected[e.key]?n.selected[e.key].values:"";switch(e.format){case"input":return i("input",{type:"text",value:a?a[0]:"",onChange:t=>g(e,t.target.value)});case"checkbox":return _.map(t,(t=>i("label",{key:t.value},i("input",{checked:null==a?void 0:a.includes(t.value),key:t.value,onChange:t=>g(e,t.target.value),type:e.format,value:t.value}),t.iconid&&i("img",{className:"mapp-icon",src:o.mappLib.getIconUrl(t.iconid)}),i("span",{dangerouslySetInnerHTML:{__html:t.label}}))));case"radio":return"radio"==e.format&&t.unshift({value:"",label:__("All")}),_.map(t,(t=>i("label",{key:t.value},i("input",{checked:a==t.value||""==t.value&&!a,key:t.value,onChange:t=>g(e,t.target.value),type:e.format,value:t.value}),t.iconid&&i("img",{className:"mapp-icon",src:o.mappLib.getIconUrl(t.iconid)}),i("span",{dangerouslySetInnerHTML:{__html:t.label}}))));case"select":t.unshift({value:"",label:""});const n=_.map(t,(e=>'<option value="'+e.value+'">'+e.label+"</option>"));return i("select",{value:a[0],dangerouslySetInnerHTML:{__html:n},onChange:t=>g(e,t.target.value)})}}function v(o){return i("div",{className:"mapp-filter-dropdown"},function(e){return i("div",{className:"mapp-filter-values"},"all"==e?n.filters.map((e=>i(l,{key:e.key},i("div",{className:"mapp-filter-label"},e.label),f(e)))):f(e))}(o),"all"==o&&function(n){const o="all"==n?"all":n.key;let a=e.poiCount>1?__("%d Results"):__("%d Result");return a=sprintf(a,e.poiCount),i("div",{className:"mapp-filter-toolbar"},i("div",{className:"mapp-link-button",onClick:()=>(u({selected:{}}),void t())},__("Reset")),i("div",{className:"mapp-filter-count"},a),i("div",{className:"mapp-submit-button",onClick:()=>d(o)},__("Done")))}(o))}function h(e){const t="all"==e?"all":e.key,o="all"==e?__("Filter"):e.label,a="mapp-filter mapp-filter-"+t+(n.open==t?" mapp-filter-open":"");return i("div",{key:t,className:a,ref:e=>m.current[t]=e},i("div",{className:"mapp-button mapp-button-caret mapp-filter-button"+(n.isBusy?" mapp-button-disabled":""),onClick:()=>d(t)},o),v(e))}return(0,a.useClickOutside)({current:n.open&&m.current[n.open]?m.current[n.open]:null},(()=>{u({open:null})})),s((()=>{u({isBusy:!0}),o.mappLib.ajax({method:"GET",data:{action:"mapp_filters_get",nonce:mappl10n.options.nonce,otype:e.otype},callback:e=>{e&&"OK"==e.status?u({filters:e.data}):console.error("MapPress: unable to fetch filter data"),u({isBusy:!1})}})}),[]),i("div",{className:"mapp-filters"},h("all"),_.map(n.filters,(e=>e.isStandalone?h(e):null)))}},10:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useGeocoding:()=>u});const o=n(939).mappLib.toJSON,{Fragment:a,useCallback:i,useEffect:l,useLayoutEffect:s,useRef:p,useState:r}=(wp.element.createElement,wp.element),c={google:function(){this.token=null;const e=document.createElement("div");this.placesService=new google.maps.places.PlacesService(e),this.autocompleteService=new google.maps.places.AutocompleteService}};c.google.prototype={getDetails:function(e){let{suggestion:t,callback:n}=e;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken,this.token=null;var a={fields:["formatted_address","name","geometry"],placeId:t.place_id,sessionToken:this.token};this.placesService.getDetails(a,(function(e,t){if("OK"==t&&e&&e.geometry){if(e.geometry.location&&(e.geometry.location=o(e.geometry.location)),e.geometry.viewport){var a=o(e.geometry.viewport);e.geometry.viewport={sw:{lat:a.south,lng:a.west},ne:{lat:a.north,lng:a.east}}}n(e)}else n(null)}))},getFirstPrediction:function(e){let{map:t,value:n,callback:o}=e;this.getPredictions({map:t,value:n,callback:e=>{e&&Array.isArray(e)?this.getDetails({suggestion:e[0],callback:e=>o(e)}):o(null)}})},getPredictions:function(e){let{map:t,value:n,includeBusinesses:o,callback:a}=e;this.token=this.token?this.token:new google.maps.places.AutocompleteSessionToken;var i=t?t.getBounds():null;"leaflet"==mappl10n.options.engine&&(i=new google.maps.LatLngBounds(new google.maps.LatLng(i.getSouthWest().lat,i.getSouthWest().lng),new google.maps.LatLng(i.getNorthEast().lat,i.getNorthEast().lng)));var l={input:n,bounds:i=i||new google.maps.LatLngBounds(new google.maps.LatLng(85,-180),new google.maps.LatLng(-85,180)),sessionToken:this.token,types:o?null:["geocode"]};this.autocompleteService.getPlacePredictions(l,(function(e,t){"OK"==t&&e&&e.length?(e=(e=e.map((e=>(e.value=e.description,e)))).filter((e=>e.place_id)),a(e)):(t==google.maps.places.PlacesServiceStatus.REQUEST_DENIED?alert("Google Maps API Key error: please enable the Places API in the Google Developer Console."):t==google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT&&alert("Google Maps API Key has exceeded its query limit"),a(null))}))}},c.mapbox=function(){},c.mapbox.prototype={getDetails:function(e){let{suggestion:t,callback:n}=e,o=t.place_name,a=o.indexOf(","),i=o.indexOf(",",a+1);a>0&&(o=parseInt(o.substr(0,a))?o.substr(0,i).replace(",",""):o.substr(0,a));let l=t.bbox&&4==t.bbox.length?{sw:{lat:t.bbox[1],lng:t.bbox[0]},ne:{lat:t.bbox[3],lng:t.bbox[2]}}:null;n({formatted_address:t.place_name,name:o,geometry:{location:{lat:t.center[1],lng:t.center[0]},viewport:l}})},getFirstPrediction:function(e){let{map:t,value:n,callback:o}=e;this.getPredictions({map:t,value:n,callback:e=>{e&&e.length?this.getDetails({suggestion:e[0],callback:e=>o(e)}):o(null)}})},getPredictions:function(e){let{map:t,value:n,callback:o}=e;var a="https://api.mapbox.com/geocoding/v5/mapbox.places/"+n+".json?access_token="+mappl10n.options.mapbox;a=mappl10n.options.country?a+"&country="+mappl10n.options.country.toLowerCase():a,a=mappl10n.options.language?a+"&language="+mappl10n.options.language.toLowerCase():a;var i=t?t.getCenter():null;i&&(a+="&proximity="+i.lng+","+i.lat),mappl10n.options.searchBox&&(a+="&bbox="+mappl10n.options.searchBox),fetch(a).then((e=>e.json())).then((e=>{e&&e.features&&e.features.length>0?(e.features=e.features.map((e=>(e.value=e.label=e.place_name,e))),o(e.features)):o(null)}))}},c.nominatim=function(){},c.nominatim.prototype={getDetails:function(e){let{suggestion:t,callback:n}=e,o=t.display_name,a=o.indexOf(","),i=o.indexOf(",",a+1);a>0&&(o=parseInt(o.substr(0,a))?o.substr(0,i).replace(",",""):o.substr(0,a));let l=t.boundingbox&&4==t.boundingbox.length?{sw:{lat:t.boundingbox[0],lng:t.boundingbox[2]},ne:{lat:t.boundingbox[1],lng:t.boundingbox[3]}}:null;n({formatted_address:t.display_name,name:o,geometry:{location:{lat:t.lat,lng:t.lon},viewport:l}})},getFirstPrediction:function(e){let{map:t,value:n,callback:o}=e;this.getPredictions({map:t,value:n,callback:e=>{e&&e.length?this.getDetails({suggestion:e[0],callback:e=>o(e)}):o(null)}})},getPredictions:function(e){let{map:t,value:n,callback:o}=e;var a="https://nominatim.openstreetmap.org/search?format=json&dedupe=1&limit=5&q="+encodeURIComponent(n);if(a=mappl10n.options.country?a+"&countrycodes="+mappl10n.options.country.toLowerCase():a,a=mappl10n.options.language?a+"&accept-language="+mappl10n.options.language.toLowerCase():a,mappl10n.options.searchBox)a+="&viewbox="+mappl10n.options.searchBox,a+="&bounded=1";else{var i=t?t.getBounds():null;if(i){let e=i.getSouthWest(),t=i.getNorthEast();a+="&viewbox="+e.lng+","+e.lat+","+t.lng+","+t.lat}}fetch(a).then((e=>e.json())).then((e=>{e&&e.length?(e=e.map((e=>(e.value=e.display_name,e))),o(e)):o(null)}))}};const u=e=>{let{includeBusinesses:t}=e;function n(){let e="";return e="leaflet"!=mappl10n.options.engine?"google":mappl10n.options.geocoder?mappl10n.options.geocoder:"nominatim",new c[e]}function o(e,t){navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){var n={lat:t.coords.latitude,lng:t.coords.longitude};e({name:n.lat+", "+n.lng,geometry:{location:n}})}),(function(n){if(!t){var o=n&&n.message?" : "+n.message:"";alert(mappl10n.no_geolocate+o)}e(null)}),{timeout:15e3,enableHighAccuracy:!0,maximumAge:3e4}):alert(mappl10n.no_geolocate)}return{geocode:function(e){let{map:a,suggestion:i,value:l,callback:s}=e;const p=n();l="string"==typeof l?l.trim():l,i||l?function(e){let{map:t,value:n,callback:a}=e;if(!n)return void a(null);if("string"!=typeof n){const e=n.lat&&n.lng?{geometry:{location:{lat:n.lat,lng:n.lng}}}:null;return void a(e)}if("http"==n.substring(0,4))return void a(n);if("user"==n)return void o((function(e){a(e)}));const i=n.split(",");if(2==i.length){const e=parseFloat(i[0]),t=parseFloat(i[1]);if(!isNaN(e)&&!isNaN(t))return void a({name:e+", "+t,geometry:{location:{lat:e,lng:t}}})}a(null)}({map:a,value:l,callback:e=>{e?s(e):i?p.getDetails({suggestion:i,callback:s}):p.getFirstPrediction({map:a,value:l,includeBusinesses:t,callback:s})}}):s(null)},geolocate:o,getPredictions:function(e){let{map:t,value:o,callback:a}=e;n().getPredictions({map:t,value:o,callback:a})}}}},326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{useClickOutside:()=>c,useDebounce:()=>u,useResizeObserver:()=>m});wp.element.createElement;const{Fragment:o,useCallback:a,useEffect:i,useLayoutEffect:l,useMemo:s,useRef:p,useState:r}=wp.element;function c(e,t){i((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}))}function u(e,t,n){const o=p(!1);i((()=>(o.current=!0,()=>o.current=!1)),[]);const l=_.debounce((function(){o.current&&e(...arguments)}),t);return a(l,n=n||[])}function m(e,t){const n=p();n.current=t,i((()=>{if(!e)return;const t=new ResizeObserver(((e,t)=>{n.current()}));return t.observe(e),()=>{t.disconnect()}}),[e])}},939:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mappLib:()=>o,mappEvent:()=>a,mappPoi:()=>i});const o={ajax:function(e){if("POST"==(e={cache:"no-cache",credentials:"same-origin",data:null,method:e.method?e.method:"GET",mode:"cors",redirect:"follow",referrerPolicy:"no-referrer",responseType:"json",url:e.url?e.url:mappl10n.options.ajaxurl,...e}).method)if(e.data instanceof FormData)e.body=e.data;else{const t=new FormData;t.append("action",e.data.action),t.append("nonce",e.data.nonce),t.append("data",JSON.stringify(e.data)),e.body=t}else"GET"==e.method&&(e.url+="?"+o.jQueryParam(e.data));fetch(e.url,e).then((t=>{if("html"==e.responseType)return t.text();if(t.ok)return t.json();throw Error(`Request rejected with status ${t.status}`)})).then((t=>{e.url!=mappl10n.options.ajaxurl||t&&"OK"==t.status||o.alert(t.status),t.output&&o.alert("MapPress: invalid output from a plugin or theme file. Deactivate plugins to find the problem. Output:\r\n"+t.output),e.callback&&e.callback(t)})).catch((t=>{if(e.error)return void e.error();const n=void 0!==t.message?t.message:t.statusText;o.alert("AJAX error -- "+n)}))},alert:function(e){mappl10n.options.admin||mappl10n.options.debug?alert(e):window.console&&console.error(e)},boundsToViewport:function(e){return e?{sw:o.toJSON(e.getSouthWest()),ne:o.toJSON(e.getNorthEast())}:null},getIcon:function(e){{const t=this.getIconUrl(e);return"leaflet"==mappl10n.options.engine?L.icon({iconUrl:t,iconAnchor:[16,32],iconSize:[32,32],popupAnchor:[0,-32]}):{url:t}}},getIconUrl:function(e){return"https://maps.google.com/intl/en_us/mapfiles/ms/micons/red-dot.png"},jQueryParam:function(e){var t=[],n=function(e,n){n=null==(n="function"==typeof n?n():n)?"":n,t[t.length]=encodeURIComponent(e)+"="+encodeURIComponent(n)},o=function(e,a){var i,l,s;if(e)if(Array.isArray(a))for(i=0,l=a.length;i<l;i++)o(e+"["+("object"==typeof a[i]&&a[i]?i:"")+"]",a[i]);else if("[object Object]"===Object.prototype.toString.call(a))for(s in a)o(e+"["+s+"]",a[s]);else n(e,a);else if(Array.isArray(a))for(i=0,l=a.length;i<l;i++)n(a[i].name,a[i].value);else for(s in a)o(s,a[s]);return t};return o("",e).join("&")},nanoid:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;const t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let n="",o=e;for(;o--;)n+=t[64*Math.random()|0];return n},pointToLatLng:function(e){return e?"leaflet"==mappl10n.options.engine?L.latLng(e):new google.maps.LatLng(e.lat,e.lng):null},template:function(e,t){if(o.templates=o.templates?o.templates:{},!o.templates[e]){var n=document.getElementById("mapp-tmpl-"+e).innerHTML;if(!n)return"";o.templates[e]=_.template(n,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g})}return o.templates[e](t)},toJSON:e=>e.toJSON?e.toJSON():"undefined"!=typeof L&&e instanceof L.LatLng?{lat:e.lat,lng:e.lng}:"undefined"!=typeof L&&L.LatLngBounds&&e instanceof L.LatLngBounds?{south:e.getSouth(),west:e.getWest(),north:e.getNorth(),east:e.getEast()}:null,toUrlValue(e){return e.toUrlValue?e.toUrlValue():"undefined"!=typeof L&&e instanceof L.LatLng?Math.round(1e6*this.lat)/1e6+", "+Math.round(1e6*this.lng)/1e6:null},viewportToBounds:function(e){return e&&e.sw&&e.ne?"leaflet"==mappl10n.options.engine?new L.LatLngBounds(L.latLng(e.sw.lat,e.sw.lng),L.latLng(e.ne.lat,e.ne.lng)):new google.maps.LatLngBounds(new google.maps.LatLng(e.sw.lat,e.sw.lng),new google.maps.LatLng(e.ne.lat,e.ne.lng)):null}},a={addListener:function(e,t,n){let o=[];t=t.split(" ");for(var a=0;a<t.length;a++)"leaflet"==mappl10n.options.engine?(e.on(t[a],n),o.push({target:e,event:t[a],callback:n})):o.push(google.maps.event.addListener(e,t[a],n));return o},addListenerOnce:function(e,t,n){t=t.split(" ");for(var o=0;o<t.length;o++)"leaflet"==mappl10n.options.engine?e.once(t[o],n):google.maps.event.addListenerOnce(e,t[o],n)},clearInstanceListeners:function(e){"leaflet"==mappl10n.options.engine?e.off():google.maps.event.clearInstanceListeners(e)},clearListeners:function(e,t){t=t.split(" ");for(var n=0;n<t.length;n++)"leaflet"==mappl10n.options.engine?e.off(t[n]):google.maps.event.clearListeners(e,t[n])},removeListener:function(e){for(let t=0;t<e.length;t++)"leaflet"==mappl10n.options.engine?e[t].target.off(e[t].event,e[t].callback):google.maps.event.removeListener(e[t])},trigger:function(e,t,n){"leaflet"==mappl10n.options.engine?e.fire(t,n):google.maps.event.trigger(e,t,n)}},i={parseOverlay:function(e,t){if("google"==mappl10n.options.engine){if("kml"==e){const e=t.getDefaultViewport();return{point:e?o.toJSON(e.getCenter()):null,viewport:e?o.boundsToViewport(e):null}}const n=t instanceof google.maps.Polyline?{strokeColor:t.strokeColor,strokeOpacity:t.strokeOpacity,stokeWeight:t.strokeWeight}:{fillColor:t.fillColor,fillOpacity:t.fillOpacity,strokeColor:t.strokeColor,strokeOpacity:1,stokeWeight:t.strokeWeight};if("circle"==e)return{point:o.toJSON(t.getCenter()),poly:{radius:t.getRadius(),...n}};if("rectangle"==e)return{viewport:o.boundsToViewport(t.getBounds()),poly:{...n}};if("polyline"==e){const e=[];return t.getPath().forEach((function(t){e.push(o.toJSON(t))})),{poly:{path:e,...n}}}if("polygon"==e){const e={fillColor:t.fillColor,fillOpacity:t.fillOpacity,strokeColor:t.strokeColor,strokeOpacity:1,stokeWeight:t.strokeWeight},n=[];return t.getPaths().forEach((function(e){var t=[];e.forEach((function(e){t.push(o.toJSON(e))})),n.push(t)})),{poly:{paths:n,...e}}}if(!e)return{point:o.toJSON(t.getPosition())}}else{if("kml"==e){const e=t.getBounds();return{point:e&&e.isValid()?o.toJSON(e.getCenter()):null,viewport:e&&e.isValid()?o.boundsToViewport(e):null}}if(!e)return{point:"leaflet"==mappl10n.options.engine?o.toJSON(t.getLatLng()):o.toJSON(t.getPosition())}}}}},374:(e,t,n)=>{"use strict";n.r(t);var o=n(939),a=n(346);window.mapp=window.mapp||{};const i=wp.element.createElement;mapp.load=function(){if(void 0!==mapp.data)for(;mapp.data.length;){const e=mapp.data.pop();e.pois&&e.pois.map((e=>{e.id=o.mappLib.nanoid()}));const t=document.getElementById(e.name+"-layout");t?wp.element.render(i(a.MappMap,{...e,parent:t}),t):console.log("Missing container for map "+e.name)}},mapp.load()},346:(t,n,o)=>{"use strict";o.r(n),o.d(n,{MappMap:()=>I});var a=o(939),i=o(715),l=(o(817),o(602)),s=o(818),p=o(81),r=o(50),c=o(615);const u=wp.element.createElement,{Fragment:m,useEffect:g,useLayoutEffect:d,useMemo:f,useRef:v,useState:h}=wp.element;function y(e){e={anchor:null,className:null,content:null,map:null,point:null,...e};const t=v(null),[n,o]=h({isLoaded:null,mapDiv:"leaflet"==mappl10n.options.engine?e.map.getContainer():e.map.getDiv(),overlayView:null});function i(e){o((t=>({...t,...e})))}function l(){const o=t.current;if(!o)return;if(document.fullscreenElement||e.map.isFullscreen)return;let i;const{width:l,height:s}=o.getBoundingClientRect(),p=a.mappLib.pointToLatLng(e.point);if("leaflet"==mappl10n.options.engine)i=e.map.latLngToContainerPoint(p);else{const e=n.overlayView.getProjection();if(!e)return;i=e.fromLatLngToContainerPixel(p)}o.style.bottom=n.mapDiv.clientHeight-i.y-e.anchor.y+"px",o.style.left=i.x-l/2+e.anchor.x+"px"}return d((()=>{"google"==mappl10n.options.engine?n.overlayView||(n.overlayView=new google.maps.OverlayView,n.overlayView.onAdd=function(){i({isLoaded:!0})},n.overlayView.setMap(e.map)):(e.map.stop(),i({isLoaded:!0}))}),[]),d((()=>{if(!n.isLoaded)return;let t;return"google"==mappl10n.options.engine?n.overlayView.draw=()=>l():t=a.mappEvent.addListener(e.map,"move",(e=>l())),()=>{"google"==mappl10n.options.engine?n.overlayView.draw=null:a.mappEvent.removeListener(t)}})),d((()=>{n.isLoaded&&(l(),function(){const o=t.current;if(!o)return;const i=30,l=o.offsetWidth,s=o.offsetHeight,p=n.mapDiv.clientWidth,r=n.mapDiv.clientHeight,c=a.mappLib.pointToLatLng(e.point);let u;if("leaflet"==mappl10n.options.engine)u=e.map.latLngToContainerPoint(c);else{const e=n.overlayView.getProjection();u=e?e.fromLatLngToContainerPixel(c):null}if(!u)return;var m={x:u.x,y:u.y};u.x+l/2+e.anchor.x>p-i?m.x=Math.max(p-l/2-e.anchor.x-i,p/2-e.anchor.x):u.x-l/2+e.anchor.x<i&&(m.x=Math.min(l/2+e.anchor.x+i,p/2-e.anchor.x));u.y+e.anchor.y-s<i&&(m.y=s-e.anchor.y+i);m.y>=r&&(m.y=r-i);const g={x:u.x-m.x,y:u.y-m.y};(g.x<=-1||g.x>=1||g.y<=-1||g.y>=1)&&("leaflet"==mappl10n.options.engine?e.map.panBy([g.x,g.y]):e.map.panBy(g.x,g.y))}())}),[n.isLoaded]),n.isLoaded?u("div",{className:"mapp-ib-wrapper",ref:t},u("div",{className:"mapp-ib-content"},u("div",{className:"mapp-ib"},u("div",{className:"mapp-iw "+(e.className?e.className:"")},e.content)),u("div",{className:"mapp-ib-tip"}))):null}var b=o(892),w=o(10),k=o(326);const E=a.mappLib.toJSON,{Fragment:C,useCallback:O,useEffect:x,useLayoutEffect:N,useRef:M,useState:P}=wp.element,S=wp.element.createElement,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function I(t){const[n,o]=P({clusterer:null,directionsTo:null,drawingManager:null,filters:null,hovered:null,isDirectionsOpen:null,isFetching:null,isGeolocating:null,init:null,isLoaded:null,isMounted:null,isMini:null,isSidebarOpen:null!=t.poiListOpen?t.poiListOpen:mappl10n.options.poiListOpen,kmlEvent:null,layers:{},layout:t.layout?t.layout:mappl10n.options.layout,map:null,opened:null,oid:t.oid?t.oid:mappl10n.options.oid,otype:t.otype?t.otype:mappl10n.options.otype,page:1,pageCount:0,parsedCenter:null,poiList:void 0!==t.poiList&&null!=t.poiList?t.poiList:mappl10n.options.poiList,pois:[],polyline:null,templates:t.query?"user"==t.otype?{item:"user-mashup-item",popup:"user-mashup-popup"}:{item:"mashup-item",popup:"mashup-popup"}:{item:"map-item",popup:"map-popup"},userLocation:null}),u=M(null),m=M(t.parent),{geocode:g,geolocate:d}=(M(),(0,w.useGeocoding)({withBusinesses:t.isEditable}));function f(e){o((t=>({...t,...e})))}function v(e){}function h(e){return n.pois.find((t=>t.id==e))}function O(e){return n.map.fitBounds(e)}function N(){try{return n.map.getBounds()}catch(e){return null}}function I(){let e;try{e=n.map.getCenter()}catch(t){e=null}return e?E(e):null}function T(e){let t;switch("leaflet"==mappl10n.options.engine&&"kml"!=e.type?null:e.type){case"polygon":t=new google.maps.LatLngBounds,e.poly.paths.map((e=>{e.map((e=>{t.extend(e)}))}));break;case"polyline":t=new google.maps.LatLngBounds,e.poly.path.map((e=>{t.extend(e)}));break;case"circle":const n=new google.maps.Circle({center:e.point,radius:e.poly.radius});t=n.getBounds();break;default:t=a.mappLib.viewportToBounds(e.viewport)}return t}function D(e,t){if(e.point&&!e.type)return"leaflet"==mappl10n.options.engine?L.latLng(e.point):new google.maps.LatLng(e.point.lat,e.point.lng);if("kml"==e.type&&t&&t.latLng)return t.latLng;const n=T(e);return"leaflet"==mappl10n.options.engine?n&&n.isValid()?n.getCenter():new L.latLng(0,0):n?n.getCenter():new google.maps.LatLng(0,0)}function B(){let e;try{e=n.map.getZoom()}catch(t){e=null}return e?parseInt(e):null}function R(){return!!(t.isEditable||t.search||mappl10n.options.search&&t.query)}(0,k.useResizeObserver)(m.current,(function(){if(n.poiList&&"inline"!=n.layout&&m.current){const e=m.current.clientWidth<mappl10n.options.mini;null==n.isMini?e&&f({isMini:e,isSidebarOpen:!1}):e!=n.isMini&&f({isMini:e,isSidebarOpen:!e})}})),(0,k.useResizeObserver)(u.current,G),x((()=>{switch(n.init){case null:!function(){const e=[__("MapPress FAQ")+": http://mappresspro.com/mappress-faq",__("Support")+": http://mappresspro.com/chris-contact",__("Get an API Key")+": https://mappresspro.com/how-to-get-a-google-maps-api-key"];let t=[{condition:"leaflet"==mappl10n.options.engine&&"undefined"==typeof L,title:__("Leaflet library not loaded"),text:__("A theme or plugin is preventing the Leaflet library from loading.")},{condition:"google"==mappl10n.options.engine&&"undefined"==typeof google,title:__("Google Maps API not loaded"),text:__("A theme or plugin is preventing Google Maps from loading.")},{condition:"google"==mappl10n.options.engine&&!mappl10n.options.apikey,title:__("Google Maps API key required")},{condition:document.querySelectorAll('script[src*="https://maps.googleapis.com/maps/api/js?v="]').length>1,title:__("Google Maps API loaded multiple times"),text:__("A theme or plugin has loaded Google Maps twice")},{condition:"undefined"==typeof _,title:__("Underscore library not loaded"),text:__("A theme or plugin is preventing the underscore.js library from loading.")}];t=t.filter((e=>e.condition));let n=t.map((e=>e.title+" : "+e.text));n.length&&(console.log(__("Map Error")+"\n----------------\n"+n.join("\n")+"\n----------------\n"+e.join("\n")),mappl10n.options.admin&&alert(__("Map error: please see the developer console (F12 in most browsers) for details.")))}();let e,o={...t.mapOpts};o.minZoom=isNaN(parseInt(o.minZoom))?0:parseInt(o.minZoom),"leaflet"==mappl10n.options.engine?(e=new L.Map(u.current,{attribution:'Map data <a href="https://openstreetmap.org">OpenStreetMap</a>',minZoom:0,scrollWheelZoom:mappl10n.options.scrollWheel,worldCopyJump:!0,zoomControl:null,...o}),L.control.zoom({position:"bottomright",zoomInTitle:"",zoomOutTitle:""}).addTo(e)):e=new google.maps.Map(u.current,{backgroundColor:"transparent",clickableIcons:!1,fullscreenControl:!1,mapTypeControl:!1,minZoom:0,scaleControl:!0,streetViewControl:!t.query,streetViewControlOptions:{position:google.maps.ControlPosition.LEFT_BOTTOM},...o}),f({map:e}),mappl10n.options.userLocation&&mappl10n.options.ssl&&d((e=>{e&&e.geometry&&e.geometry.location&&f({userLocation:e.geometry.location})}),!0),g({value:t.center,callback:e=>{e&&e.geometry&&e.geometry.location?f({parsedCenter:{lat:e.geometry.location.lat,lng:e.geometry.location.lng}}):f({parsedCenter:null}),f({init:1})}});break;case 1:Q(t.mapTypeId),function(){if(t.isEditable&&"google"==mappl10n.options.engine&&google.maps.drawing){const e={fillColor:"#0000FF",fillOpacity:.4,strokeColor:"#0000FF",strokeOpacity:1,strokeWeight:2};n.drawingManager=new google.maps.drawing.DrawingManager({drawingControlOptions:{position:google.maps.ControlPosition.TOP_CENTER,drawingModes:[google.maps.drawing.OverlayType.MARKER,google.maps.drawing.OverlayType.POLYGON,google.maps.drawing.OverlayType.POLYLINE,google.maps.drawing.OverlayType.RECTANGLE,google.maps.drawing.OverlayType.CIRCLE]},circleOptions:e,polygonOptions:e,polylineOptions:e,rectangleOptions:e}),n.drawingManager.setMap(n.map)}}(),function(){n.polyline&&("leaflet"==mappl10n.options.engine?n.polyline.remove():n.polyline.setMap(null),f({polyline:null}));if(t.isEditable||!t.lines&&!mappl10n.options.lines||n.pois.length<2)return;const e={...mappl10n.options.lineOpts},o=[];if(_.map(n.pois,(e=>{o.push(D(e))})),"leaflet"==mappl10n.options.engine)f({polyline:new L.Polyline(o,e).addTo(n.map)});else{const t={strokeColor:e.color,strokeWeight:e.weight,strokeOpacity:e.opacity};e.icons&&(_.map(e.icons,(e=>{e.icon.path=parseInt(e.icon.path)})),e.icons[0].repeat="50px"),f({polyline:new google.maps.Polyline({map:n.map,path:o,...e,...t})}),e.animate&&e.icons&&e.icons.length&&function(){let e=0;const t=n.polyline.get("icons");t[0].repeat.replace("%","").replace("px","");window.setInterval((()=>{e+=1;t[0].offset=e+(t[0].repeat.indexOf("%")>=0?"%":"px"),n.polyline.set("icons",t)}),20)}()}}(),t.query?v((()=>f({init:2}))):(f({pois:t.pois?t.pois:[]}),f({init:2}));break;case 2:const i="leaflet"==mappl10n.options.engine?"load":"tilesloaded";a.mappEvent.addListenerOnce(n.map,i,(()=>{f({bounds:N()}),function(){if(mappl10n.options.clustering&&!t.isEditable){let e,t=mappl10n.options.clusteringOptions?mappl10n.options.clusteringOptions:{};void 0!==t.disableClusteringAtZoom&&""==t.disableClusteringAtZoom&&(t.disableClusteringAtZoom=null),"leaflet"==mappl10n.options.engine?(e=L.markerClusterGroup(t),n.map.addLayer(e)):(t={...t,imagePath:mappl10n.options.baseurl+"/lib/js-markerclustererplus-main/images/m"},e=new MarkerClusterer(n.map,[],t)),f({clusterer:e})}}(),(t.initialOpenInfo||mappl10n.options.initialOpenInfo)&&!t.isEditable&&n.pois&&j(n.pois[0]),f({isLoaded:!0})})),U()}}),[n.init]),x((()=>{n.isLoaded&&!t.query&&f({pois:t.pois?t.pois:[]})}),[t.pois]),x((()=>{n.isLoaded&&t.query&&v()}),[t.query,n.filters]),x((()=>{n.isLoaded&&null==t.center&&U(null)}),[t.center]),x((()=>{n.isLoaded&&Q(t.mapTypeId)}),[t.mapTypeId]),x((()=>{n.isLoaded&&W(t.centerPoi)}),[t.centerPoi]),x((()=>{if(!n.isLoaded)return;let e,o,i;return e=a.mappEvent.addListener(n.map,"moveend idle",(e=>A())),o=a.mappEvent.addListener(n.map,"click dragstart zoom_changed zoomstart",(e=>{"leaflet"==mappl10n.options.engine&&"click"==e.type&&e.originalEvent&&!e.originalEvent.target.matches(".mapp-canvas")||F()})),n.drawingManager&&(i=a.mappEvent.addListener(n.drawingManager,"overlaycomplete",(e=>{n.drawingManager.setDrawingMode(null),V(null),t.onDrawingEvent&&t.onDrawingEvent(e)}))),t.name&&(window[t.name]={getPois:()=>n.pois,poiOpen:e=>f({opened:"string"==typeof e?e:e.id})}),()=>{a.mappEvent.removeListener(e),a.mappEvent.removeListener(o),i&&a.mappEvent.removeListener(i)}}));const A=(0,k.useDebounce)((()=>{f({bounds:N(),page:1}),t.onViewportChange&&t.onViewportChange({center:I(),zoom:B()})}),500,[t.onViewportChange,n.map]);function z(e,n){if("poi"!=mappl10n.options.mashupClick&&t.query&&"post"==e.otype&&e.oid&&e.url)switch(mappl10n.options.mashupClick){case"post":return void window.location.assign(e.url);case"postnew":return void window.open(e.url);case"postmodal":const t=document.createElement("div");return document.body.appendChild(t),wp.element.render(S(b.MappPopupModal,{onClose:()=>{wp.element.unmountComponentAtNode(t),t.remove()},poi:e}),t)}else j(e,n)}function F(){f({opened:null,isDirectionsOpen:!1})}function V(e){if(!e||e.id!=n.opened)if(e){if(e.id==n.opened)return;f({hovered:e.id}),mappl10n.options.tooltips&&!t.isEditable&&(F(),j(e,null))}else f({hovered:null})}function j(e,t){F(),n.isMini&&H(!1),f({kmlEvent:t,opened:e.id})}function G(){"leaflet"==mappl10n.options.engine?n.map.invalidateSize():a.mappEvent.trigger(n.map,"resize")}function H(e){f({isSidebarOpen:e=void 0!==e?e:!n.isSidebarOpen,isDirectionsOpen:!1}),setTimeout((()=>G()),100)}function U(e){e=null==e?n.parsedCenter:e;const o=t.zoom&&parseInt(t.zoom)?parseInt(t.zoom):null;if(e)return void $(e,o||1);if(0==n.pois.length)return void $({lat:0,lng:0},o||1);if(1==n.pois.length)return void W(n.pois[0]);let a="leaflet"==mappl10n.options.engine?new L.LatLngBounds:new google.maps.LatLngBounds;for(var i=0;i<n.pois.length;i++){var l=T(n.pois[i]);a=l?"leaflet"==mappl10n.options.engine?a.extend(l):a.union(l):a.extend(D(n.pois[i]))}o?$(E(a.getCenter()),o):O(a)}function W(e){let n;if(e.viewport){var o=e.viewport.ne.lng-e.viewport.sw.lng;o<0&&(o+=360),n=Math.floor(Math.log(360*u.current.clientWidth/o/256)/Math.LN2)}else n=t.zoom&&parseInt(t.zoom)?parseInt(t.zoom):parseInt(mappl10n.options.poiZoom);$(D(e),n)}function J(){return mappl10n.options.ssl?S("div",{className:"mapp-geolocate-control-wrapper"},S("div",{className:"mapp-geolocate-control",onClick:()=>(f({isGeolocating:!0}),void d((e=>{f({isGeolocating:!1}),e&&e.geometry&&e.geometry.location&&$(e.geometry.location,parseInt(mappl10n.options.poiZoom))}),!1)),title:__("Your Location")})):null}function Z(){if(n.isLoaded)return R()?S("div",{className:"mapp-header"},R()&&n.map?S("div",{className:"mapp-search-container"},S(s.MappPlaces,{buttonLabel:t.isEditable?__("Add to map"):S("img",{src:mappl10n.options.baseurl+"/images/search.png"}),focus:t.isEditable,includeBusinesses:t.isEditable,map:n.map,onSearch:e=>{t.onSearch?t.onSearch(e):function(e){if(!e||!e.geometry)return;const t=e.geometry.location?e.geometry.location:null,n=e.geometry.viewport?e.geometry.viewport:null;let o;if("leaflet"==mappl10n.options.engine){const e=new L.LatLng(t.lat,t.lng);o=n?new L.LatLngBounds(new L.LatLng(n.sw.lat,n.sw.lng),new L.LatLng(n.ne.lat,n.ne.lng)):e.toBounds(1e3*mappl10n.options.radius)}else{const e=new google.maps.Circle({center:t,radius:1e3*mappl10n.options.radius});o=n?new google.maps.LatLngBounds(new google.maps.LatLng(n.sw.lat,n.sw.lng),new google.maps.LatLng(n.ne.lat,n.ne.lng)).union(e.getBounds()):e.getBounds()}o&&O(o),$(t)}(e)}})):null,"top"==mappl10n.options.filtersPos&&null):null}function K(){if(!n.poiList||!n.isLoaded)return null;let e=[];return e=R()&&n.bounds&&!t.isEditable?n.pois.filter(((e,t)=>n.bounds.contains(D(e)))):n.pois,n.pageCount!=e.length&&f({pageCount:e.length}),S(c.MappPoiList,{className:!t.isEditable&&mappl10n.options.thumbsList?" mapp-thumb-"+mappl10n.options.thumbsList:"",hovered:n.hovered,isEditable:t.isEditable,isPaged:!!t.query,onClick:e=>z(h(e)),onDirectionsClick:e=>f({isDirectionsOpen:!0,directionsTo:h(e)}),onDragDrop:e=>{let{from:n,to:o}=e;return function(e,n){t.onDragDrop&&t.onDragDrop(e,n)}(n,o)},onHover:e=>V(h(e)),onPage:e=>{f({page:e})},opened:n.opened,page:n.page,pois:e,template:t.isEditable?null:n.templates.item})}function q(){if(n.isLoaded)return n.pois.map((o=>S(p.MappPoi,{key:o.id,isClusterable:!!n.clusterer,isEditable:!!t.isEditable,isHovered:o.id==n.hovered,isOpen:o.id==n.opened,map:n.map,onChange:e=>{t.onPoiChange&&t.onPoiChange(o.id,e)},onClick:e=>z(o,e),onClusterAdd:e=>function(e){n.clusterer&&("leaflet"==mappl10n.options.engine?n.clusterer.addLayer(e):n.clusterer.addMarker(e))}(e),onMouseOut:()=>{V(null)},onMouseOver:()=>V(o),onRenderPopup:(o,a)=>function(o,a){const i=function(e){if(n.clusterer){if("leaflet"==mappl10n.options.engine){var t=n.clusterer.getVisibleParent(e);return t&&t!=e?t.getLatLng():null}const a=n.clusterer.getClusters();for(var o=0;o<a.length;o++){const t=a[o].markers_;if(t.length>1)for(let n=0;n<t.length;n++)if(t[n]==e)return a[o].center_}}}(a),l=D(o),s=E(i||l);let p,c,u={x:0,y:0};i?u={x:0,y:-14}:o.type||(u=mappl10n.options.iconScale&&mappl10n.options.iconScale[0]&&mappl10n.options.iconScale[1]?{x:0,y:0-mappl10n.options.iconScale[1]}:{x:0,y:-32});n.kmlEvent&&(n.kmlEvent.pixelOffset&&(u={x:e.pixelOffset.width,y:e.pixelOffset.height}),n.kmlEvent.featureData?p=n.kmlEvent.featureData:n.kmlEvent&&n.kmlEvent.propagatedFrom&&n.kmlEvent.propagatedFrom.feature&&n.kmlEvent.propagatedFrom.feature.properties&&(p=n.kmlEvent.propagatedFrom.feature.properties));c=t.onRenderPopup?t.onRenderPopup(o,F):S(r.MappPoiContent,{context:"popup",feature:p,onDirectionsClick:()=>f({isDirectionsOpen:!0,directionsTo:o}),poi:o,template:n.templates.popup,thumbs:mappl10n.options.thumbsPopup});return S(y,{anchor:u,className:!t.isEditable&&mappl10n.options.thumbsPopup?"mapp-thumb-"+mappl10n.options.thumbsPopup:"",content:c,map:n.map,point:s})}(o,a),poi:o})))}function Y(){return!n.poiList||n.isDirectionsOpen&&"inline"==mappl10n.options.directions?null:S("div",{className:"mapp-sidebar"+(n.isSidebarOpen?" mapp-sidebar-open":"")},S("div",{className:"mapp-sidebar-toggle",onClick:()=>H()}),"list"==mappl10n.options.filtersPos&&null,t.onRenderSidebar&&t.onRenderSidebar(),K())}function X(e){return S(C,null,S("div",{className:"mapp-wrapper",style:e},S("div",{className:"mapp-content"},n.isFetching||n.isGeolocating?S(C,null,S("div",{className:"mapp-spinner-overlay"}),S("div",{className:"mapp-spinner"})):null,Z(),S("div",{className:"mapp-main"},"inline"!=n.layout&&Y(),function(){if(!n.isDirectionsOpen)return null;let e="";if(n.directionsTo)if(n.directionsTo.address)e=n.directionsTo.address;else{const t=E(D(n.directionsTo));e=t.lat+", "+t.lng}return S(i.MappDirections,{from:"",to:e,onClose:()=>{f({isDirectionsOpen:!1,directionsTo:null})}})}(),S("div",{className:"mapp-canvas-panel"},S("div",{className:"mapp-canvas",ref:u}),n.isLoaded&&n.userLocation?S(p.MappPoi,{isClusterable:!1,isEditable:!1,isOpen:!1,key:"user",map:n.map,poi:{point:n.userLocation,iconid:"geolocation"}}):null,q(),t.isEditable||"leaflet"==mappl10n.options.engine||!n.map?null:S(l.MappMenuControl,{map:n.map,onCenter:()=>{F(),U()}}),J())),n.poiList&&"inline"!=n.layout&&n.isMini?S("div",{className:"mapp-footer"},!n.isSidebarOpen&&S("div",{className:"mapp-button mapp-view-list",onClick:()=>H(!0)},S("img",{src:mappl10n.options.baseurl+"/images/outline_format_list_bulleted_black_18dp.png"}),"List"),n.isSidebarOpen&&S("div",{className:"mapp-button mapp-view-map",onClick:()=>H(!1)},S("img",{src:mappl10n.options.baseurl+"/images/outline_map_black_18dp.png"}),"Map")):null)),"inline"==n.layout&&Y())}function Q(e){const t=mappl10n.options.standardStyles.concat(mappl10n.options.userStyles),o=_.find(t,(t=>t.id==e));!mappl10n.options.style||"roadmap"!=e&&"streets"!=e&&o||(e=mappl10n.options.style);let a=_.find(t,(t=>t.id==e));if(a=a||t[0],"leaflet"==mappl10n.options.engine){let e={mapbox:{accessToken:mappl10n.options.mapbox,attribution:['<a href="https://www.mappresspro.com" target="_blank">MapPress</a>','<a href="https://www.mapbox.com/about/maps" target="_blank">&copy; Mapbox<a/>','<a href="https://www.openstreetmap.org/about/" target="_blank">&copy; OpenStreetMap</a>'],url:"https://api.mapbox.com/styles/v1/{user}/{mapboxid}/tiles/256/{z}/{x}/{y}{r}?access_token={accessToken}&fresh=true",zoomOffset:0},osm:{attribution:['<a href="https://www.mappresspro.com" target="_blank">MapPress</a>','<a href="https://openstreetmap.org" target="_blank">Map data (c) OpenStreetMap</a>'],url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}}[a.provider],t={...e,...a};L.tileLayer(e.url,t).addTo(n.map)}else if(n.map.setMapTypeId("standard"==a.type?a.id:"roadmap"),a.json){let e=null;try{e=JSON.parse(a.json)}catch(e){console.log("Invalid JSON in map style")}n.map.setOptions({styles:e||null})}else n.map.setOptions({styles:null})}function $(e,t,o){"leaflet"==mappl10n.options.engine?(null==t&&(t=n.map.getZoom()?n.map.getZoom():0),n.map.setView(e,t,o)):(e=e&&!E(e)?{lat:parseFloat(e.lat),lng:parseFloat(e.lng)}:e,t=t?parseInt(t):null,e&&n.map.setCenter(e),t&&n.map.setZoom(t))}const ee=t.name?t.name+"-layout":"",te=function(){if(t.embed)return{width:"100%",height:"100%"};const e=mappl10n.options.sizes[mappl10n.options.size]?mappl10n.options.sizes[mappl10n.options.size]:mappl10n.options.sizes[0],n=e=>"string"==typeof e&&(e.indexOf("px")>=0||e.indexOf("%")>=0||e.indexOf("vh")>=0||e.indexOf("vw")>=0)?e:e+"px";return{width:t.width?n(t.width):n(e.width),height:t.height?n(t.height):n(e.height)}}();let ne=[];ne.push("left"==n.layout?"mapp-list-left":"mapp-inline"),ne.push("leaflet"==mappl10n.options.engine?"mapp-leaflet":"mapp-google"),n.isMini&&ne.push("mapp-mini"),t.classname&&ne.push(t.classname);const oe=t.alignment?t.alignment:mappl10n.options.alignment;let ae=[];oe&&!document.body.classList.contains("block-editor-page")&&(ae.push("align"+oe),ae.push("mapp-align-"+oe));const ie="full"==t.alignment?"auto":te.width,le=te.height.includes("vh")?{height:te.height}:{paddingBottom:te.height,height:"auto"};let se=t.parent?t.parent:null;if(window.frameElement){const e=window.frameElement.parentElement.parentElement,t=window.frameElement.parentElement;return e.className="mapp-iframe-container "+ae.join(" "),e.style.width=ie,Object.assign(t.style,le),se.className="mapp-layout "+ne.join(" "),se.style.height="100%",X({height:"100%"})}if(se)return se.className="mapp-layout "+ne.join(" ")+" "+ae.join(" "),se.id=ee,se.style.width=ie,X(le);{const e="mapp-layout "+ne.join(" ")+" "+ae;return S("div",{ref:m,className:e,id:ee,style:{width:ie},tabIndex:"-1"},X(le))}}},759:(e,t,n)=>{"use strict";n.r(t),n.d(t,{mappMarker:()=>a});var o=n(939);function a(e){this.anchorPoint=null,this.div=null,this.draggable=null,this.icon=null,this.map=null,this.position=null,this.visible=null,this.zIndex=0,this.setValues(e),this.overlayView=new google.maps.OverlayView,this.overlayView.draw=()=>this.draw(),this.overlayView.onAdd=()=>this.onAdd(),this.overlayView.onRemove=()=>this.onRemove(),this.div=document.createElement("div"),this.div.classList.add("mapp-marker")}a.prototype={draw:function(){if(!this.div||!this.icon)return;let e=this.overlayView.getProjection();if(e){let t=e.fromLatLngToDivPixel(this.position),n=this.icon.scaledSize?this.icon.scaledSize:{width:32,height:32};this.div.style.left=t.x-n.width/2+"px",this.div.style.top=t.y-n.height+"px"}},getDiv:function(){return this.div},getDraggable:function(){return this.draggable},getMap:function(){return this.map},getPosition:function(){return this.position},getVisible:function(){return this.visible},handleEvent:function(e){let t="on"+e.type[0].toUpperCase()+e.type.slice(1);this[t]&&this[t](e)},onAdd:function(){let e=this.overlayView.getPanes();e&&(this.div||(this.div=document.createElement("div"),this.div.classList.add("mapp-marker")),e.overlayMouseTarget.append(this.div),this.icon&&this.setIcon(),google.maps.OverlayView.preventMapHitsAndGesturesFrom(this.div),this.div.addEventListener("click",(()=>{(!this.dragging||this.dragging&&!this.dragging.moved)&&o.mappEvent.trigger(this,"click"),this.dragging=null})),this.div.addEventListener("mouseenter",this),this.div.addEventListener("mouseleave",this),this.setDraggable(this.draggable))},onMouseenter:function(e){o.mappEvent.trigger(this,"mouseover")},onMouseleave:function(e){o.mappEvent.trigger(this,"mouseout")},onPointerdown:function(e){const t=this.map.getDiv().getBoundingClientRect(),n=this.overlayView.getProjection().fromLatLngToContainerPixel(this.position);this.dragging={moved:!1,startPixel:{x:e.clientX,y:e.clientY},offset:{x:n.x-(e.clientX-t.left),y:n.y-(e.clientY-t.top)}},this.toggleDragEvents(!0)},onPointermove:function(e){if(Math.abs(e.clientX-this.dragging.startPixel.x)+Math.abs(e.clientY-this.dragging.startPixel.y)<3)return;const t=this.map.getDiv().getBoundingClientRect();let n={x:e.clientX-t.left+this.dragging.offset.x,y:e.clientY-t.top+this.dragging.offset.y};this.setPosition(this.overlayView.getProjection().fromContainerPixelToLatLng(n)),this.draw(),this.dragging.moved=!0,o.mappEvent.trigger(this,"dragstart")},onPointercancel:function(e){this.onPointerup(e)},onPointerup:function(e){this.dragging&&this.dragging.moved&&o.mappEvent.trigger(this,"dragend"),this.toggleDragEvents(!1)},onRemove:function(){this.div&&(this.toggleDragEvents(!1),this.div.remove(),this.div=null)},set:function(e,t){let n="set"+e[0].toUpperCase()+e.slice(1);this[n]&&this[n](t)},setDraggable:function(e){this.draggable=e,this.map&&this.div&&(this.div.removeEventListener("pointerdown",this,{passive:!0}),e&&this.div.addEventListener("pointerdown",this,{passive:!0}))},setIcon:function(e){if(void 0!==e&&(this.icon=e),this.icon&&this.div){let e='<img draggable="false" src="'+this.icon.url+'">';this.div.innerHTML=e;let t=this.icon.scaledSize?this.icon.scaledSize:{width:32,height:32};this.div.style.width=t.width+"px",this.div.style.height=t.height+"px",this.setZIndex(),this.draw()}},setMap:function(e){this.map=e,this.overlayView.setMap(e)},setPosition:function(e){this.position=e},setValues:function(e){for(const t in e)this.set(t,e[t])},setVisible:function(e){this.visible=e,this.div&&(this.div.style.visibility=e?"visible":"hidden")},setZIndex:function(e){this.zIndex=void 0!==e?e:this.zIndex,this.div&&(this.div.style.zIndex=e)},toggleDragEvents(e){document.removeEventListener("pointermove",this,{passive:!0}),document.removeEventListener("pointerup",this,{passive:!0}),document.removeEventListener("pointercancel",this,{passive:!0}),e&&(document.addEventListener("pointermove",this,{passive:!0}),document.addEventListener("pointerup",this,{passive:!0}),document.addEventListener("pointercancel",this,{passive:!0}))}}},602:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappMenuControl:()=>c});var o=n(326);const a=wp.element.createElement,{Fragment:i,useEffect:l,useLayoutEffect:s,useRef:p,useState:r}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function c(e){e={layer:null,map:null,onCenter:null,...e};const[t,n]=r({activeLayer:e.layer?e.layer:null,layers:null,isOpen:!1}),s=p(null);function c(e){n((t=>({...t,...e})))}function u(){c({isOpen:!t.isOpen})}return(0,o.useClickOutside)(s,(()=>{t.isOpen&&u()})),l((()=>{if("google"==mappl10n.options.engine){c({layers:{traffic:{googleLayer:new google.maps.TrafficLayer,label:__("Traffic")},bicycling:{googleLayer:new google.maps.BicyclingLayer,label:__("Bicycling")},transit:{googleLayer:new google.maps.TransitLayer,label:__("Transit")}}})}}),[]),a("div",{ref:s},a("div",{className:"mapp-menu-toggle",onClick:()=>u()}),t.isOpen&&function(){const n=_.map(t.layers,((n,o)=>{const i=t.activeLayer==o?"mapp-menu-item mapp-active":"mapp-menu-item";return a("div",{className:i,key:o,onClick:()=>function(n){t.activeLayer&&t.layers[t.activeLayer].googleLayer.setMap(null),n!=t.activeLayer&&t.layers[n].googleLayer.setMap(e.map),c({activeLayer:n==t.activeLayer?null:n,isOpen:!1})}(o)},n.label)}));return a("div",{className:"mapp-menu"},a("div",{className:"mapp-menu-items"},a("div",{className:"mapp-menu-item",onClick:()=>(c({isOpen:!1}),void e.onCenter())},__("Center map")),"google"==mappl10n.options.engine&&a(i,null,a("div",{className:"mapp-menu-separator"}),n)),a("div",{className:"mapp-menu-footer"},a("a",{className:"mapp-menu-help",href:"https://mappresspro.com/mappress-documentation",target:"_blank"},a("span",null,__("Help")))))}())}},27:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPaginate:()=>r});const o=wp.element.createElement,{Fragment:a,useEffect:i,useLayoutEffect:l,useRef:s,useState:p}=wp.element,{sprintf}=wp.i18n;function r(e){function t(t,n){const o=Math.ceil(e.count/e.pageSize);switch(t){case"first":e.onChange(1);break;case"last":e.onChange(o);break;case"next":e.page<o&&e.onChange(e.page+1);break;case"prev":e.page>1&&e.onChange(e.page-1)}}return function(){const n=Math.ceil(e.count/e.pageSize),a=e.isBusy||e.page<=1,i=e.isBusy||e.page>=n,l=a?"mapp-paginate-button mapp-disabled":"mapp-paginate-button",s=i?"mapp-paginate-button mapp-disabled":"mapp-paginate-button",p=(r="%d of %d",wp.i18n.__(r,"mappress-google-maps-for-wordpress"));var r;return o("div",{className:"mapp-paginate"},o("div",{className:l,onClick:()=>{a||t("first")}},"«"),o("div",{className:l,onClick:()=>{a||t("prev")}},"‹"),o("div",{className:"mapp-paginate-count"},sprintf(p,e.page,n)),o("div",{className:s,onClick:()=>{i||t("next")}},"›"),o("div",{className:s,onClick:()=>{i||t("last")}},"»"))}()}},818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPlaces:()=>m});var o=n(117),a=n(10);const i=wp.element.createElement,{Fragment:l,useCallback:s,useEffect:p,useLayoutEffect:r,useRef:c,useState:u}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress");function m(e){e={buttonLabel:null,focus:!1,includeBusinesses:!1,map:null,onSearch:null,...e};const{geocode:t,getPredictions:n}=(0,a.useGeocoding)({map:e.map,includeBusinesses:e.includeBusinesses}),[l,s]=u({suggestions:[]});return i(o.MappAutocomplete,{buttonLabel:e.buttonLabel,className:"mapp-places",debounce:"nominatim"===mappl10n.options.geocoder?500:300,delay:"nominatim"==mappl10n.options.geocoder?500:50,focus:e.focus,onFetch:function(t){n({map:e.map,value:t,callback:e=>{var t;t={suggestions:e},s((e=>({...e,...t})))}})},onSelect:function(n){let{suggestion:o,value:a}=n;t({map:e.map,suggestion:o,value:a,callback:t=>{t&&e.onSearch(t)}})},placeholder:__("Search"),suggestions:l.suggestions,title:__("Enter an address, place, KML file URL, or lat,lng")})}},50:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPoiContent:()=>u});var o=n(939);const a=wp.element.createElement,{Fragment:i,useEffect:l,useLayoutEffect:s,useMemo:p,useRef:r,useState:c}=wp.element;wp.i18n.sprintf;function u(e){e={context:null,feature:null,onDirectionsClick:null,poi:null,template:null,thumbs:null,...e};const[t,n]=c({imageNumber:0});function l(e){n((t=>({...t,...e})))}return a(i,null,function(){const n="list"!=e.context&&mappl10n.options.thumbWidth&&mappl10n.options.thumbHeight?{width:mappl10n.options.thumbWidth+"px",height:mappl10n.options.thumbHeight+"px"}:null,o=e.thumbs&&e.poi.images&&e.poi.images.length&&e.poi.images[t.imageNumber]?e.poi.images[t.imageNumber]:null;if(!o)return null;const i=function(e){switch(e.type){case"avatar":return a("div",{className:"mapp-avatar",dangerouslySetInnerHTML:{__html:e.html}});case"embed":return a("div",{className:"mapp-embed",dangerouslySetInnerHTML:{__html:e.html}});default:if("image"==e.type||!e.type){const t=e.size?{src:e.url,width:e.size[0]+"px",height:e.size[1]+"px"}:{src:e.url};return a("img",t)}}}(o);return a("div",{className:"mapp-thumbnail",style:n},t.imageNumber>=1&&a("div",{className:"mapp-gallery-previous",onClick:e=>function(e){t.imageNumber>0&&(l({imageNumber:t.imageNumber-1}),e.stopPropagation())}(e)}),i,t.imageNumber<e.poi.images.length-1&&a("div",{className:"mapp-gallery-next",onClick:n=>function(n){t.imageNumber<e.poi.images.length-1&&(l({imageNumber:t.imageNumber+1}),n.stopPropagation())}(n)}))}(),a("div",{className:"mapp-info"},function(){let t={...e.poi};t.icon=o.mappLib.getIconUrl(e.poi.iconid),e.feature&&(t.body=e.feature.description,t.title=e.feature.name),t.props=t.props?t.props:{};const n=o.mappLib.template(e.template,{poi:t});return a("div",{className:"mapp-template",dangerouslySetInnerHTML:{__html:n}})}(),function(){var t;if(!(e.template.indexOf("user")>=0))return"popup"==e.context&&mappl10n.options.directionsPopup||"list"==e.context&&mappl10n.options.directionsList?a("div",null,a("span",{className:"mapp-dir",onClick:t=>function(t){t.stopPropagation(),e.onDirectionsClick()}(t)},(t="Get Directions",wp.i18n.__(t,"mappress-google-maps-for-wordpress")))):void 0}()))}},615:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPoiList:()=>g});var o=n(939),a=n(27),i=n(50);const l=wp.element.createElement,{Fragment:s,useEffect:p,useLayoutEffect:r,useMemo:c,useRef:u,useState:m}=wp.element,__=e=>wp.i18n.__(e,"mappress-google-maps-for-wordpress"),sprintf=wp.i18n.sprintf;const g=wp.element.memo((function(e){e={className:null,hovered:null,isEditable:!1,isPaged:!1,onClick:null,onDragDrop:null,onHover:null,onPage:null,opened:null,page:1,pois:null,template:null,...e};const[t,n]=m({dragging:null,dragover:null,pageSize:!e.isEditable&&mappl10n.options.poiListPageSize?parseInt(mappl10n.options.poiListPageSize):20});function p(e){n((t=>({...t,...e})))}function r(n){let a,r="mapp-item";return e.opened!=n.id&&e.hovered!=n.id||(r+=" mapp-selected"),r+=t.dragover==n.id?" mapp-dragover":"",a=e.isEditable?l(s,null,l("img",{className:"mapp-icon",src:o.mappLib.getIconUrl(n.iconid)}),l("div",{className:"mapp-title"},n.title)):l(i.MappPoiContent,{context:"list",onDirectionsClick:()=>e.onDirectionsClick(n.id),poi:n,template:e.template,thumbs:mappl10n.options.thumbsList}),l("div",{className:r,dangerouslySetInnerHTML:null,draggable:e.isEditable,key:n.id,onClick:()=>e.onClick(n.id),onDragOver:e=>e.preventDefault(),onDragStart:e=>p({dragging:n.id}),onDragEnter:e=>p({dragover:n.id}),onDragEnd:e=>p({dragging:null,dragover:null}),onDrop:o=>{return a=n.id,void(e.onDragDrop&&e.onDragDrop({from:t.dragging,to:a}));var a},onMouseEnter:t=>{e.onHover(n.id)},onMouseLeave:t=>{e.onHover(null)}},a)}return l("div",{className:"mapp-list "+(e.className?e.className:"")},e.isPaged&&function(){let t=1!=e.pois.length?__("%d Results"):__("%d Result");return t=sprintf(t,e.pois.length),l("div",{className:"mapp-list-header"},l("div",{className:"mapp-list-count"},t))}(),function(){const n=t.pageSize*(e.page-1),o=n+t.pageSize-1;return l("div",{className:"mapp-items"},_.map(e.pois,((t,a)=>{if(!e.isPaged||a>=n&&a<=o)return r(t)})))}(),e.isPaged&&(!e.isPaged||e.pois.length<=t.pageSize?null:l("div",{className:"mapp-list-footer"},l(a.MappPaginate,{count:e.pois.length,onChange:t=>e.onPage(t),page:e.page,pageSize:t.pageSize}))))}))},81:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPoi:()=>u});var o=n(939),a=n(759);wp.element.createElement;const{Fragment:i,useEffect:l,useLayoutEffect:s,useMemo:p,useRef:r,useState:c}=wp.element;function u(e){e={isClusterable:null,isEditable:null,isHovered:null,isOpen:null,map:null,onClusterAdd:null,onMouseOut:null,onMouseOver:null,poi:null,...e};const t=r(null),[n,i]=c({overlay:null});function s(t){p()&&"google"==mappl10n.options.engine&&("rectangle"==e.poi.type&&(o.mappEvent.clearListeners(n.overlay,"bounds_changed"),t&&o.mappEvent.addListener(n.overlay,"bounds_changed",(()=>{u()}))),"circle"==e.poi.type&&(o.mappEvent.clearListeners(n.overlay,"center_changed radius_changed"),t&&o.mappEvent.addListener(n.overlay,"center_changed radius_changed",(()=>{u()}))),"polygon"!=e.poi.type&&"polyline"!=e.poi.type||(o.mappEvent.clearListeners(n.overlay,"rightclick"),o.mappEvent.clearListeners(n.overlay.getPath(),"insert_at remove_at set_at"),t&&(o.mappEvent.addListener(n.overlay,"rightclick",(e=>{null!=e.vertex&&n.overlay.getPath().getLength()>2&&(n.overlay.getPath().removeAt(e.vertex),u())})),o.mappEvent.addListener(n.overlay.getPath(),"insert_at remove_at set_at",(()=>{u()})))))}function p(){return"google"==mappl10n.options.engine&&-1!=["polyline","polygon","circle","rectangle"].indexOf(e.poi.type)}function u(){const t=o.mappPoi.parseOverlay(e.poi.type,n.overlay);e.onChange(t)}function m(t,n){n?"leaflet"==mappl10n.options.engine?t.addTo(e.map):t.setMap(e.map):"leaflet"==mappl10n.options.engine?t.remove():t.setMap(null)}return l((()=>{const n="leaflet"==mappl10n.options.engine&&"kml"!=e.poi.type?null:e.poi.type,l=_.pick(e.poi.poly,"strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity");let s;switch(n){case"polygon":s=new google.maps.Polygon({paths:e.poi.poly.paths,...l});break;case"polyline":s=new google.maps.Polyline({path:e.poi.poly.path,...l});break;case"circle":const t=new google.maps.LatLng(e.poi.point.lat,e.poi.point.lng);s=new google.maps.Circle({center:t,radius:parseFloat(e.poi.poly.radius),...l});break;case"rectangle":s=new google.maps.Rectangle({bounds:o.mappLib.viewportToBounds(e.poi.viewport),...l});break;case"kml":const n=e.poi.kml&&e.poi.kml.url?e.poi.kml.url:"";s="leaflet"==mappl10n.options.engine?omnivore.kml(n):new google.maps.KmlLayer({url:n,preserveViewport:!0,suppressInfoWindows:!0});break;default:s="leaflet"==mappl10n.options.engine?L.marker([e.poi.point.lat,e.poi.point.lng]):new a.mappMarker({position:new google.maps.LatLng(e.poi.point.lat,e.poi.point.lng)}),s.setIcon(o.mappLib.getIcon(e.poi.iconid))}var r;return r={overlay:s},i((e=>({...e,...r}))),"kml"!=e.poi.type&&("leaflet"==mappl10n.options.engine?s.options.draggable=e.isEditable:s.setDraggable(e.isEditable),p()&&s.setEditable(e.isEditable)),e.isClusterable?(e.onClusterAdd(s),"google"==mappl10n.options.engine&&m(s,e.map)):m(s,e.map),t.current=s,()=>{m(t.current,null)}}),[]),l((()=>{if(n.overlay){const t=_.pick(e.poi.poly,"strokeColor","strokeOpacity","strokeWeight","fillColor","fillOpacity");n.overlay.setOptions({...t})}}),[e.poi.poly]),l((()=>{n.overlay&&n.overlay.setIcon(o.mappLib.getIcon(e.poi.iconid))}),[e.poi.iconid]),l((()=>{n.overlay&&function(t){if(e.poi.type)return;if("icon"==mappl10n.options.highlight&&"leaflet"==mappl10n.options.engine&&e.isEditable)return;var a="leaflet"==mappl10n.options.engine?n.overlay._icon:n.overlay.getDiv();if(!a)return;switch(e.isEditable?"circle":mappl10n.options.highlight){case"circle":a.classList.toggle("mapp-marker-circle",t);break;case"icon":var i=t?o.mappLib.getIcon(mappl10n.options.highlightIcon):o.mappLib.getIcon(e.poi.iconid);if("leaflet"==mappl10n.options.engine&&n.overlay.getIcon().options.iconUrl==i.options.iconUrl)return;n.overlay.setIcon(i);break;case"scale":a.classList.add("mapp-marker"),a.classList.toggle("mapp-marker-scale",t)}const l=t?1e4:0;"leaflet"==mappl10n.options.engine?e.poi.type||n.overlay.setZIndexOffset(l):n.overlay.set("zIndex",l)}(e.isHovered||e.isOpen)}),[e.isHovered,e.isOpen,n.overlay]),l((()=>{if(n.overlay)return o.mappEvent.addListener(n.overlay,"click",(t=>{e.onClick(t)})),o.mappEvent.addListener(n.overlay,"mouseover",(t=>e.onMouseOver(t))),o.mappEvent.addListener(n.overlay,"mouseout",(t=>e.onMouseOut(t))),"kml"==e.poi.type&&("leaflet"==mappl10n.options.engine?(o.mappEvent.addListenerOnce(n.overlay,"ready",(()=>{n.overlayUpdate()})),o.mappEvent.addListenerOnce(n.overlay,"error",(()=>{alert(mappl10n.kml_error+" : "+e.poi.kml.url)}))):(o.mappEvent.addListener(n.overlay,"defaultviewport_changed",(()=>{u()})),o.mappEvent.addListener(n.overlay,"status_changed",(()=>{"OK"!=n.overlay.getStatus()&&alert(mappl10n.kml_error+" : "+e.poi.kml.url)})))),e.isEditable&&(s(!0),o.mappEvent.addListener(n.overlay,"dragstart",(()=>(s(!1),void(e.onChange&&e.onChange({viewport:null}))))),o.mappEvent.addListener(n.overlay,"dragend",(()=>(u(),void s(!0))))),()=>{o.mappEvent.clearInstanceListeners(n.overlay)}})),e.isOpen?e.onRenderPopup(e.poi,n.overlay):null}},892:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MappPopupModal:()=>u});var o=n(939);const a=wp.element.createElement,i=wp.element.createPortal,{Fragment:l,useEffect:s,useLayoutEffect:p,useRef:r,useState:c}=wp.element;function u(e){e={onClose:null,poi:null,...e};const[t,n]=c({isBusy:!1,html:null});function l(e){n((t=>({...t,...e})))}const p=React.createRef();function r(t){27==t.keyCode&&e.onClose()}return s((()=>(document.body.classList.add("mapp-modal-noscroll"),()=>document.body.classList.remove("mapp-modal-noscroll"))),[]),s((()=>{e.poi.oid&&(l({isBusy:!0}),o.mappLib.ajax({method:"GET",data:{action:"mapp_get_post",oid:e.poi.oid,nonce:mappl10n.options.nonce},responseType:"html",callback:e=>{l({isBusy:!1,html:e})}}))}),[e.poi.oid]),s((()=>{p.current&&p.current.focus(),console.log("focus"+document.activeElement)}),[p.current]),i(a("div",{className:"mapp-modal"},a("div",{className:"mapp-modal-backdrop",onClick:e.onClose,onKeyDown:r},a("div",{className:"mapp-modal-close",onClick:e.onClose},"×")),a("div",{className:"mapp-modal-content-wrapper",ref:p,onKeyDown:r,tabIndex:0},a("div",{className:"mapp-modal-content"},t.isBusy&&a("div",{className:"mapp-modal-spinner"}),!t.isBusy&&a("div",{className:"mapp-modal-template",dangerouslySetInnerHTML:{__html:t.html}}),a("div",{className:"mapp-modal-close",onClick:e.onClose},"X")))),document.body)}}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o(117),o(715),o(817),o(10),o(326),o(939),o(346),o(759),o(602),o(27),o(818),o(81),o(50),o(615),o(892),o(374)})();
languages/mappress-google-maps-for-wordpress-de_DE-4cfebd0e75a430fc3eb311e0637a25c6.json DELETED
@@ -1 +0,0 @@
1
- {"translation-revision-date":"2020-12-15 11:19-0800","generator":"WP-CLI\/2.4.0","source":"build\/index_mappress_admin.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"de_DE","plural-forms":"nplurals=2; plural=(n != 1);"},"Settings":["Einstellungen"],"Map Library":["Kartenrand"],"Help":[""],"No results":[""],"Add":["hinzuf\u00fcgen"],"Delete":["L\u00f6schen"],"Untitled":["Unbenannt"],"Google API key":["Google"],"Default":["Standard"],"Google":["Google"],"Leaflet":[""],"Post type":["Beitragsarten"],"Automatic":["automatische Kartendarstellung"],"Search":[""],"Zoom":["Zoom"],"Map ID":["Karten ID"],"Save":["speichern"],"Cancel":["Abbrechen"],"Select a map":["Karte zur\u00fccksetzen"],"Add New":[""],"Attached to this post":[""],"All maps":["kleinere Karte"],"Size":["Gr\u00f6\u00dfe"],"Map title":["Titel"],"Attached to":[""],"Action":["Ort"],"Unattached":[""],"No maps found":["Karte nicht gefunden"],"Custom":["eigenes CSS"],"New map":["Neue Karte"],"Edit map":["Bearbeiten"],"Like the block? Upgrade to the free plugin or MapPress Pro for more features!":[""],"MapPress Pro":["MapPress Link"],"Free plugin":[""],"MapPress options":["MapPress Link"],"Map settings":["Einstellungen"],"MapPress Map":["MapPress Link"],"Create a new map or choose one from the map library.":[""],"Insert a map":["Karte zur\u00fccksetzen"],"Query":[""],"Refresh map":["Karte zur\u00fccksetzen"],"Author":[""],"Order by":["Marker Liste"],"Include children":[""],"Add custom field":["Benutzerdefinierte Felder"],"Field name":[""],"The field \"%s\" has already been added":[""],"Please enter a field name":["Bitte speichern Sie die Karte zuerst"],"Value (a or a,b,c...)":[""],"Invalid JSON":[""],"Update":[""],"Query code":["L\u00e4ndercode"],"MapPress Mashup":["MapPress Link"],"Insert a mashup":[""],"Options saved.":["Karte gespeichert"],"Mapping Engine":[""],"Save options":[""],"Map copied":["Kartentypen"],"Shortcode copied":[""],"post title, map title, or map id":[""],"current post":["Aktuelle Karten"],"Edit post":["Bearbeiten"],"Copy":[""],"Shortcode":[""],"Delete map":["Diese Karte l\u00f6schen?"],"Viewport saved":["Karte gespeichert"],"px, %, vw":[""],"Width":["Breite"],"px, %, vh":[""],"Height":["Rechtsb\u00fcndig"],"Center\/Zoom":["Zentriert"]}}}
 
languages/mappress-google-maps-for-wordpress-de_DE.mo DELETED
Binary file
languages/mappress-google-maps-for-wordpress-de_DE.po DELETED
@@ -1,1688 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: MapPress v2.8 Google Maps for WordPress\n"
4
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
5
- "Last-Translator: Michael Busch <busch@seo-traffic-guide.de>\n"
6
- "Language-Team: dewib <dewib@gmx.de>\n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "POT-Creation-Date: 2020-12-15T18:23:01+00:00\n"
11
- "PO-Revision-Date: 2020-12-15 11:19-0800\n"
12
- "Language: de_DE\n"
13
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
- "X-Poedit-Basepath: .\n"
15
- "X-Generator: Poedit 2.4.2\n"
16
- "X-Poedit-SearchPath-0: ../../mappress-google-maps-for-wordpress\n"
17
-
18
- #. Plugin Name of the plugin
19
- msgid "MapPress Maps for WordPress"
20
- msgstr ""
21
-
22
- #. Plugin URI of the plugin
23
- msgid "https://www.mappresspro.com/mappress"
24
- msgstr ""
25
-
26
- #. Description of the plugin
27
- msgid "MapPress makes it easy to add Google and Leaflet Maps to WordPress"
28
- msgstr ""
29
-
30
- #. Author of the plugin
31
- msgid "Chris Richardson"
32
- msgstr ""
33
-
34
- #. Author URI of the plugin
35
- msgid "https://www.mappresspro.com/chris-contact"
36
- msgstr ""
37
-
38
- #: mappress.php:171
39
- #: mappress.php:701
40
- #: build/index_mappress_admin.js:1
41
- #, fuzzy
42
- msgid "Settings"
43
- msgstr "Einstellungen"
44
-
45
- #: mappress.php:172
46
- #: build/index_mappress_admin.js:1
47
- #, fuzzy
48
- msgid "Map Library"
49
- msgstr "Kartenrand"
50
-
51
- #: mappress.php:183
52
- msgid "MapPress database tables are missing. Please deactivate the plugin and activate it again to fix this."
53
- msgstr "MapPress Datenbanktabellen fehlen. Bitte Plugin deaktivieren und erneut aktivieren zur Fehlerbehebung."
54
-
55
- #: mappress.php:188
56
- msgid "A Google Maps API key is required"
57
- msgstr ""
58
-
59
- #: mappress.php:188
60
- msgid "Please update your"
61
- msgstr ""
62
-
63
- #: mappress.php:188
64
- #, fuzzy
65
- msgid "MapPress Settings"
66
- msgstr "Einstellungen"
67
-
68
- #: mappress.php:280
69
- msgid "OK, you deserve it!"
70
- msgstr ""
71
-
72
- #: mappress.php:281
73
- msgid "Nope, maybe later"
74
- msgstr ""
75
-
76
- #: mappress.php:282
77
- msgid "I neeed some help"
78
- msgstr ""
79
-
80
- #: mappress.php:284
81
- msgid "Please Help Spread the Word"
82
- msgstr ""
83
-
84
- #: mappress.php:285
85
- msgid "If you're enjoying MapPress, would you mind taking a moment to write a brief review? It would mean the world to me!"
86
- msgstr ""
87
-
88
- #: mappress.php:286
89
- msgid "If you have any issues or suggestions, please let me know. I'll be happy to help!"
90
- msgstr ""
91
-
92
- #: mappress.php:402
93
- #: mappress.php:931
94
- msgid "Version"
95
- msgstr "Version"
96
-
97
- #: mappress.php:404
98
- #: build/index_mappress_admin.js:1
99
- msgid "Help"
100
- msgstr ""
101
-
102
- #: mappress.php:406
103
- msgid "Upgrade to MapPress Pro"
104
- msgstr "Upgrade auf MapPress Pro"
105
-
106
- #: mappress.php:473
107
- msgid "Please enter your MapPress license key to enable plugin updates"
108
- msgstr ""
109
-
110
- #: mappress.php:477
111
- msgid "MapPress Gutenberg blocks require WordPress 5.3 or the latest Gutenberg Plugin. Please update if using the block editor."
112
- msgstr ""
113
-
114
- #: mappress.php:481
115
- msgid "MapPress has many new features! Please take a moment to learn %s."
116
- msgstr ""
117
-
118
- #: mappress.php:481
119
- msgid "what's new"
120
- msgstr ""
121
-
122
- #: mappress.php:487
123
- #, fuzzy
124
- msgid "The MapPress map editor has moved!"
125
- msgstr "Es gibt noch keine Karten für diesen Beitrag"
126
-
127
- #: mappress.php:488
128
- msgid "Use this button to open the new popup editor where you can easily create, edit and insert maps."
129
- msgstr ""
130
-
131
- #: mappress.php:534
132
- msgid "Are you sure you want to delete?"
133
- msgstr ""
134
-
135
- #: mappress.php:535
136
- msgid "Permanently delete this map from the map library?"
137
- msgstr ""
138
-
139
- #: mappress.php:536
140
- msgid "Error reading KML file"
141
- msgstr "Fehler beim Lesen der KML Datei"
142
-
143
- #: mappress.php:537
144
- msgid "URL for KML file"
145
- msgstr ""
146
-
147
- #: mappress.php:538
148
- #, fuzzy
149
- msgid "Loading"
150
- msgstr "Lade…"
151
-
152
- #: mappress.php:539
153
- msgid "Please select a classic editor block to insert into."
154
- msgstr ""
155
-
156
- #: mappress.php:540
157
- msgid "Unable to get your location"
158
- msgstr "Standortbestimmung nicht möglich"
159
-
160
- #: mappress.php:541
161
- #: build/index_mappress_admin.js:1
162
- msgid "No results"
163
- msgstr ""
164
-
165
- #: mappress.php:542
166
- #, fuzzy
167
- msgid "Save changes?"
168
- msgstr "Änderungen speichern"
169
-
170
- #: mappress.php:543
171
- msgid "Shape"
172
- msgstr "Umriss"
173
-
174
- #: mappress.php:572
175
- #, fuzzy
176
- msgid "Improve this map"
177
- msgstr "Diese Karte löschen?"
178
-
179
- #: mappress.php:588
180
- #: mappress.php:607
181
- #, fuzzy
182
- msgid "Streets"
183
- msgstr "Street View"
184
-
185
- #: mappress.php:589
186
- msgid "Outdoors"
187
- msgstr ""
188
-
189
- #: mappress.php:590
190
- #, fuzzy
191
- msgid "Light"
192
- msgstr "Rechtsbündig"
193
-
194
- #: mappress.php:591
195
- msgid "Dark"
196
- msgstr ""
197
-
198
- #: mappress.php:592
199
- msgid "Satellite"
200
- msgstr "Satellit"
201
-
202
- #: mappress.php:593
203
- #, fuzzy
204
- msgid "Satellite Streets"
205
- msgstr "Satellit"
206
-
207
- #: mappress_controls.php:93
208
- #: templates_admin/widgets.php:42
209
- #: build/index_mappress_admin.js:1
210
- msgid "Add"
211
- msgstr "hinzufügen"
212
-
213
- #: mappress_controls.php:102
214
- #: templates_admin/editor.php:47
215
- #: templates_admin/mce.php:100
216
- #: templates_admin/widgets.php:94
217
- #: build/index_mappress_admin.js:1
218
- msgid "Delete"
219
- msgstr "Löschen"
220
-
221
- #: mappress_map.php:85
222
- #: mappress_settings.php:321
223
- #, fuzzy
224
- msgid "MapPress"
225
- msgstr "MapPress Link"
226
-
227
- #: mappress_map.php:94
228
- #: templates_admin/mce.php:30
229
- #: templates_admin/mce.php:80
230
- #: templates_admin/mce.php:86
231
- #: build/index_mappress_admin.js:1
232
- msgid "Untitled"
233
- msgstr "Unbenannt"
234
-
235
- #: mappress_map.php:95
236
- #, fuzzy
237
- msgid "Copy of %s"
238
- msgstr "Über dem Beitrag"
239
-
240
- #: mappress_map.php:199
241
- msgid "Map not found"
242
- msgstr "Karte nicht gefunden"
243
-
244
- #: mappress_settings.php:86
245
- msgid "Sample Map"
246
- msgstr "Beispielskarte"
247
-
248
- #: mappress_settings.php:88
249
- msgid "Basic Settings"
250
- msgstr "Einstellungen"
251
-
252
- #: mappress_settings.php:89
253
- msgid "Mapping API"
254
- msgstr ""
255
-
256
- #: mappress_settings.php:92
257
- #: build/index_mappress_admin.js:1
258
- #, fuzzy
259
- msgid "Google API key"
260
- msgstr "Google"
261
-
262
- #: mappress_settings.php:95
263
- msgid "Mapbox access token"
264
- msgstr ""
265
-
266
- #: mappress_settings.php:99
267
- msgid "License"
268
- msgstr ""
269
-
270
- #: mappress_settings.php:101
271
- msgid "Map Settings"
272
- msgstr "Einstellungen"
273
-
274
- #: mappress_settings.php:102
275
- msgid "Post types"
276
- msgstr "Beitragsarten"
277
-
278
- #: mappress_settings.php:103
279
- #, fuzzy
280
- msgid "Automatic display"
281
- msgstr "automatische Kartendarstellung"
282
-
283
- #: mappress_settings.php:104
284
- msgid "Map alignment"
285
- msgstr "Kartenausrichtung"
286
-
287
- #: mappress_settings.php:105
288
- #: templates/map-popup.php:3
289
- #: templates/mashup-popup.php:6
290
- msgid "Directions"
291
- msgstr "Wegbeschreibung"
292
-
293
- #: mappress_settings.php:108
294
- msgid "POI Settings"
295
- msgstr "Marker-Einstellungen"
296
-
297
- #: mappress_settings.php:109
298
- msgid "Default zoom"
299
- msgstr "Standard-Zoom"
300
-
301
- #: mappress_settings.php:110
302
- #: mappress_settings.php:238
303
- msgid "Open first POI"
304
- msgstr "Ersten Marker anzeigen"
305
-
306
- #: mappress_settings.php:113
307
- msgid "Mashups"
308
- msgstr "Mashups"
309
-
310
- #: mappress_settings.php:114
311
- msgid "Icons"
312
- msgstr "Meine Ions"
313
-
314
- #: mappress_settings.php:115
315
- msgid "Styled Maps"
316
- msgstr "Karte mit CSS"
317
-
318
- #: mappress_settings.php:116
319
- msgid "Geocoding"
320
- msgstr "Geocoding"
321
-
322
- #: mappress_settings.php:117
323
- msgid "Templates"
324
- msgstr ""
325
-
326
- #: mappress_settings.php:120
327
- msgid "Localization"
328
- msgstr "Übersetzung"
329
-
330
- #: mappress_settings.php:121
331
- #, fuzzy
332
- msgid "Search language"
333
- msgstr "Sprache"
334
-
335
- #: mappress_settings.php:122
336
- msgid "Search country"
337
- msgstr ""
338
-
339
- #: mappress_settings.php:123
340
- msgid "Directions server"
341
- msgstr "Server für Wegbeschreibung"
342
-
343
- #: mappress_settings.php:125
344
- msgid "Miscellaneous"
345
- msgstr "Verschiedenes"
346
-
347
- #: mappress_settings.php:126
348
- #, fuzzy
349
- msgid "Map sizes"
350
- msgstr "Karte gespeichert"
351
-
352
- #: mappress_settings.php:127
353
- msgid "Scripts"
354
- msgstr ""
355
-
356
- #: mappress_settings.php:131
357
- msgid "Compatiblity"
358
- msgstr ""
359
-
360
- #: mappress_settings.php:175
361
- #: mappress_settings.php:244
362
- #: pro/mappress_pro_settings.php:234
363
- #: templates_admin/widgets.php:78
364
- #: build/index_mappress_admin.js:1
365
- msgid "Default"
366
- msgstr "Standard"
367
-
368
- #: mappress_settings.php:176
369
- msgid "Center"
370
- msgstr "Zentriert"
371
-
372
- #: mappress_settings.php:177
373
- msgid "Left"
374
- msgstr "Linksbündig"
375
-
376
- #: mappress_settings.php:178
377
- msgid "Right"
378
- msgstr "Rechtsbündig"
379
-
380
- #: mappress_settings.php:190
381
- msgid "None"
382
- msgstr "keine"
383
-
384
- #: mappress_settings.php:191
385
- msgid "Top of post"
386
- msgstr "Über dem Beitrag"
387
-
388
- #: mappress_settings.php:192
389
- msgid "Bottom of post"
390
- msgstr "Unter dem Beitrag"
391
-
392
- #: mappress_settings.php:199
393
- #: mappress_settings.php:243
394
- msgid "(list)"
395
- msgstr ""
396
-
397
- #: mappress_settings.php:204
398
- msgid "Country code for searches"
399
- msgstr ""
400
-
401
- #: mappress_settings.php:208
402
- msgid "Prevent other plugins/themes from loading the Google Maps API"
403
- msgstr ""
404
-
405
- #: mappress_settings.php:212
406
- #: mappress_settings.php:221
407
- #: pro/mappress_pro_settings.php:232
408
- #: build/index_mappress_admin.js:1
409
- msgid "Google"
410
- msgstr "Google"
411
-
412
- #: mappress_settings.php:212
413
- msgid "Inline"
414
- msgstr ""
415
-
416
- #: mappress_settings.php:221
417
- #: build/index_mappress_admin.js:1
418
- msgid "Leaflet"
419
- msgstr ""
420
-
421
- #: mappress_settings.php:223
422
- msgid "Leaflet is free and requires no API key. Google requires an API key and has strict usage limits."
423
- msgstr ""
424
-
425
- #: mappress_settings.php:229
426
- #: mappress_settings.php:232
427
- msgid "Output scripts in footer"
428
- msgstr ""
429
-
430
- #: mappress_settings.php:230
431
- msgid "Disabled because Jetpack Infinite Scroll is active"
432
- msgstr ""
433
-
434
- #: mappress_settings.php:233
435
- msgid "disable if maps are output using AJAX"
436
- msgstr ""
437
-
438
- #: mappress_settings.php:246
439
- msgid "Language for searches and Google map controls"
440
- msgstr ""
441
-
442
- #: mappress_settings.php:250
443
- msgid "Enter token to use Mapbox map tiles"
444
- msgstr ""
445
-
446
- #: mappress_settings.php:257
447
- #: mappress_settings.php:262
448
- #, fuzzy
449
- msgid "Map type control"
450
- msgstr "Kartenkontrollelemente"
451
-
452
- #: mappress_settings.php:258
453
- #, fuzzy
454
- msgid "Street view control"
455
- msgstr "Street View"
456
-
457
- #: mappress_settings.php:259
458
- #: mappress_settings.php:263
459
- #, fuzzy
460
- msgid "Zoom control"
461
- msgstr "Kontrollelemente zeigen"
462
-
463
- #: mappress_settings.php:278
464
- msgid "Default zoom when displaying a single POI"
465
- msgstr ""
466
-
467
- #: mappress_settings.php:291
468
- msgid "Easy Google Maps"
469
- msgstr "Easy Google Maps"
470
-
471
- #: mappress_settings.php:299
472
- msgid "Width (px, %, vh, vw)"
473
- msgstr ""
474
-
475
- #: mappress_settings.php:299
476
- msgid "Height (px, %, vh, vw)"
477
- msgstr ""
478
-
479
- #: mappress_settings.php:299
480
- #, fuzzy
481
- msgid "Default size"
482
- msgstr "Standard-Zoom"
483
-
484
- #: mappress_settings.php:314
485
- msgid "Copy maps when overwriting a translation"
486
- msgstr ""
487
-
488
- #: mappress_settings.php:326
489
- #: mappress_settings.php:334
490
- msgid "Save Changes"
491
- msgstr "Änderungen speichern"
492
-
493
- #: mappress_settings.php:327
494
- #: mappress_settings.php:335
495
- msgid "Reset Defaults"
496
- msgstr "Standard wiederherstellen"
497
-
498
- #: mappress_template.php:34
499
- #, fuzzy
500
- msgid "Address"
501
- msgstr "Adresse eingeben"
502
-
503
- #: mappress_template.php:35
504
- #: pro/mappress_pro_settings.php:338
505
- msgid "Body"
506
- msgstr ""
507
-
508
- #: mappress_template.php:36
509
- #: pro/mappress_pro_settings.php:174
510
- #: pro/mappress_pro_settings.php:338
511
- #, fuzzy
512
- msgid "Icon"
513
- msgstr "Meine Ions"
514
-
515
- #: mappress_template.php:37
516
- msgid "Thumbnail"
517
- msgstr ""
518
-
519
- #: mappress_template.php:38
520
- #: pro/mappress_pro_settings.php:338
521
- #, fuzzy
522
- msgid "Title"
523
- msgstr "Titel"
524
-
525
- #: mappress_template.php:39
526
- msgid "Url"
527
- msgstr ""
528
-
529
- #: mappress_template.php:40
530
- #: pro/mappress_filter.php:120
531
- #: pro/mappress_pro_settings.php:343
532
- #, fuzzy
533
- msgid "Custom Field"
534
- msgstr "Benutzerdefinierte Felder"
535
-
536
- #: pro/mappress_filter.php:84
537
- #: pro/mappress_filter.php:133
538
- #: pro/mappress_pro_settings.php:167
539
- #: build/index_mappress_admin.js:1
540
- #, fuzzy
541
- msgid "Post type"
542
- msgstr "Beitragsarten"
543
-
544
- #: pro/mappress_filter.php:120
545
- msgid "Taxonomy"
546
- msgstr ""
547
-
548
- #: pro/mappress_filter.php:120
549
- #, fuzzy
550
- msgid "Post field"
551
- msgstr "Benutzerdefinierte Felder"
552
-
553
- #: pro/mappress_geocoder.php:29
554
- msgid "Invalid geocoder: %s"
555
- msgstr ""
556
-
557
- #: pro/mappress_geocoder.php:59
558
- #: pro/mappress_geocoder.php:110
559
- #: pro/mappress_geocoder.php:147
560
- #: pro/mappress_geocoder.php:192
561
- #, fuzzy
562
- msgid "No results for address: %s"
563
- msgstr "Kein Geocoding Ergebnis für die Adresse: %s"
564
-
565
- #: pro/mappress_geocoder.php:82
566
- msgid "Server API Key is missing - see MapPress Settings"
567
- msgstr ""
568
-
569
- #: pro/mappress_geocoder.php:100
570
- msgid "Invalid status: %s, %s Address: %s"
571
- msgstr ""
572
-
573
- #: pro/mappress_geocoder.php:221
574
- msgid "Error: %s %s"
575
- msgstr ""
576
-
577
- #: pro/mappress_geocoder.php:226
578
- msgid "Invalid JSON from Geocoding service: %s"
579
- msgstr ""
580
-
581
- #: pro/mappress_icons.php:49
582
- msgid "No file provided"
583
- msgstr ""
584
-
585
- #: pro/mappress_icons.php:74
586
- msgid "Files error: "
587
- msgstr ""
588
-
589
- #: pro/mappress_meta.php:109
590
- #: build/index_mappress_admin.js:1
591
- #, fuzzy
592
- msgid "Automatic"
593
- msgstr "automatische Kartendarstellung"
594
-
595
- #: pro/mappress_pro_settings.php:16
596
- msgid "MapPress license key"
597
- msgstr ""
598
-
599
- #: pro/mappress_pro_settings.php:17
600
- #, fuzzy
601
- msgid "Beta versions"
602
- msgstr "Version"
603
-
604
- #: pro/mappress_pro_settings.php:21
605
- #, fuzzy
606
- msgid "Geocoder"
607
- msgstr "Geocoding"
608
-
609
- #: pro/mappress_pro_settings.php:23
610
- #, fuzzy
611
- msgid "POI list"
612
- msgstr "POI links"
613
-
614
- #: pro/mappress_pro_settings.php:24
615
- msgid "POI list layout"
616
- msgstr ""
617
-
618
- #: pro/mappress_pro_settings.php:25
619
- msgid "Mini width"
620
- msgstr ""
621
-
622
- #: pro/mappress_pro_settings.php:26
623
- msgid "Sort"
624
- msgstr ""
625
-
626
- #: pro/mappress_pro_settings.php:28
627
- msgid "Clustering"
628
- msgstr ""
629
-
630
- #: pro/mappress_pro_settings.php:30
631
- #, fuzzy
632
- msgid "Popup type"
633
- msgstr "Beitragsarten"
634
-
635
- #: pro/mappress_pro_settings.php:32
636
- #, fuzzy
637
- msgid "Default icon"
638
- msgstr "Standard-Zoom"
639
-
640
- #: pro/mappress_pro_settings.php:33
641
- msgid "Icon directory"
642
- msgstr ""
643
-
644
- #: pro/mappress_pro_settings.php:34
645
- #, fuzzy
646
- msgid "Custom icons"
647
- msgstr "Benutzerdefinierte Felder"
648
-
649
- #: pro/mappress_pro_settings.php:35
650
- msgid "Icon scaling"
651
- msgstr ""
652
-
653
- #: pro/mappress_pro_settings.php:36
654
- #, fuzzy
655
- msgid "Automatic icons"
656
- msgstr "automatische Kartendarstellung"
657
-
658
- #: pro/mappress_pro_settings.php:38
659
- #: templates/map.php:51
660
- #: templates_admin/mce.php:13
661
- #: build/index_mappress_admin.js:1
662
- msgid "Search"
663
- msgstr ""
664
-
665
- #: pro/mappress_pro_settings.php:40
666
- #: templates/map.php:58
667
- msgid "Filter"
668
- msgstr ""
669
-
670
- #: pro/mappress_pro_settings.php:41
671
- msgid "POI content"
672
- msgstr ""
673
-
674
- #: pro/mappress_pro_settings.php:42
675
- #, fuzzy
676
- msgid "POI click"
677
- msgstr "POI links"
678
-
679
- #: pro/mappress_pro_settings.php:43
680
- msgid "KMLs"
681
- msgstr ""
682
-
683
- #: pro/mappress_pro_settings.php:44
684
- msgid "Thumbnails"
685
- msgstr ""
686
-
687
- #: pro/mappress_pro_settings.php:45
688
- msgid "Thumbnail size"
689
- msgstr ""
690
-
691
- #: pro/mappress_pro_settings.php:48
692
- #: pro/mappress_pro_settings.php:50
693
- #, fuzzy
694
- msgid "Styled maps"
695
- msgstr "Karte mit CSS"
696
-
697
- #: pro/mappress_pro_settings.php:51
698
- #, fuzzy
699
- msgid "Default style"
700
- msgstr "Standard"
701
-
702
- #: pro/mappress_pro_settings.php:54
703
- #, fuzzy
704
- msgid "Geocoding fields"
705
- msgstr "Geocoding"
706
-
707
- #: pro/mappress_pro_settings.php:55
708
- msgid "Overwrite"
709
- msgstr ""
710
-
711
- #: pro/mappress_pro_settings.php:56
712
- #, fuzzy
713
- msgid "Geocoding errors"
714
- msgstr "Geocoding"
715
-
716
- #: pro/mappress_pro_settings.php:59
717
- msgid "Google Server API key"
718
- msgstr ""
719
-
720
- #: pro/mappress_pro_settings.php:61
721
- #, fuzzy
722
- msgid "Custom templates"
723
- msgstr "Benutzerdefinierte Felder"
724
-
725
- #: pro/mappress_pro_settings.php:62
726
- #: pro/mappress_pro_settings.php:227
727
- msgid "Force resize"
728
- msgstr "Größenänderung erzwingen"
729
-
730
- #: pro/mappress_pro_settings.php:154
731
- msgid "more info"
732
- msgstr ""
733
-
734
- #: pro/mappress_pro_settings.php:155
735
- msgid "API key secured by IP address for geocoding (optional)"
736
- msgstr ""
737
-
738
- #: pro/mappress_pro_settings.php:174
739
- msgid "Value"
740
- msgstr ""
741
-
742
- #: pro/mappress_pro_settings.php:189
743
- msgid "Enable updates for beta versions"
744
- msgstr ""
745
-
746
- #: pro/mappress_pro_settings.php:193
747
- msgid "Enable marker clustering"
748
- msgstr ""
749
-
750
- #: pro/mappress_pro_settings.php:202
751
- msgid "Checkboxes"
752
- msgstr ""
753
-
754
- #: pro/mappress_pro_settings.php:202
755
- msgid "Select"
756
- msgstr ""
757
-
758
- #: pro/mappress_pro_settings.php:209
759
- msgid "Key"
760
- msgstr ""
761
-
762
- #: pro/mappress_pro_settings.php:209
763
- msgid "Format"
764
- msgstr ""
765
-
766
- #: pro/mappress_pro_settings.php:224
767
- #, fuzzy
768
- msgid "Permanently resize existing maps (classic editor only)"
769
- msgstr "Klicken um die Größe ALLER Karten dauerhaft zu ändern"
770
-
771
- #: pro/mappress_pro_settings.php:226
772
- msgid "from %s to %s"
773
- msgstr ""
774
-
775
- #: pro/mappress_pro_settings.php:234
776
- msgid "Algolia"
777
- msgstr ""
778
-
779
- #: pro/mappress_pro_settings.php:235
780
- msgid "Nominatim"
781
- msgstr ""
782
-
783
- #: pro/mappress_pro_settings.php:236
784
- msgid "MapBox"
785
- msgstr ""
786
-
787
- #: pro/mappress_pro_settings.php:246
788
- #: templates_admin/widgets.php:68
789
- msgid "Edit"
790
- msgstr "Bearbeiten"
791
-
792
- #: pro/mappress_pro_settings.php:260
793
- #, fuzzy
794
- msgid "Standard"
795
- msgstr "Standard Icons"
796
-
797
- #: pro/mappress_pro_settings.php:261
798
- msgid "InfoBox"
799
- msgstr ""
800
-
801
- #: pro/mappress_pro_settings.php:268
802
- #, fuzzy
803
- msgid "Left of map"
804
- msgstr "Karte zurücksetzen"
805
-
806
- #: pro/mappress_pro_settings.php:269
807
- #, fuzzy
808
- msgid "Below map"
809
- msgstr "Karte zeigen"
810
-
811
- #: pro/mappress_pro_settings.php:275
812
- #, fuzzy
813
- msgid "Get license"
814
- msgstr "Routenplanung starten"
815
-
816
- #: pro/mappress_pro_settings.php:276
817
- msgid "Enter license to enable automatic updates"
818
- msgstr ""
819
-
820
- #: pro/mappress_pro_settings.php:289
821
- msgid "Active"
822
- msgstr ""
823
-
824
- #: pro/mappress_pro_settings.php:294
825
- msgid "Check now"
826
- msgstr ""
827
-
828
- #: pro/mappress_pro_settings.php:299
829
- #: pro/mappress_updater.php:116
830
- msgid "Communication error, please try again later"
831
- msgstr ""
832
-
833
- #: pro/mappress_pro_settings.php:301
834
- msgid "License is invalid or expired"
835
- msgstr ""
836
-
837
- #: pro/mappress_pro_settings.php:305
838
- msgid "POI title + POI body"
839
- msgstr ""
840
-
841
- #: pro/mappress_pro_settings.php:305
842
- msgid "Post title + post excerpt"
843
- msgstr ""
844
-
845
- #: pro/mappress_pro_settings.php:310
846
- #, fuzzy
847
- msgid "Open POI"
848
- msgstr "Ersten Marker anzeigen"
849
-
850
- #: pro/mappress_pro_settings.php:310
851
- #, fuzzy
852
- msgid "Open post"
853
- msgstr "Artikel"
854
-
855
- #: pro/mappress_pro_settings.php:310
856
- msgid "Open post in new tab"
857
- msgstr ""
858
-
859
- #: pro/mappress_pro_settings.php:315
860
- msgid "Include KML POIs in mashups"
861
- msgstr ""
862
-
863
- #: pro/mappress_pro_settings.php:327
864
- msgid "%d Errors"
865
- msgstr ""
866
-
867
- #: pro/mappress_pro_settings.php:337
868
- msgid "Address line "
869
- msgstr ""
870
-
871
- #: pro/mappress_pro_settings.php:338
872
- msgid "Latitude"
873
- msgstr ""
874
-
875
- #: pro/mappress_pro_settings.php:338
876
- msgid "Longitude"
877
- msgstr ""
878
-
879
- #: pro/mappress_pro_settings.php:338
880
- #: build/index_mappress_admin.js:1
881
- msgid "Zoom"
882
- msgstr "Zoom"
883
-
884
- #: pro/mappress_pro_settings.php:343
885
- #, fuzzy
886
- msgid "Map Field"
887
- msgstr "Karte gelöscht"
888
-
889
- #: pro/mappress_pro_settings.php:356
890
- #, fuzzy
891
- msgid "Overwrite maps when posts are saved"
892
- msgstr "Karte neu zentrieren wenn die Fenstergröße verändert wird"
893
-
894
- #: pro/mappress_pro_settings.php:361
895
- msgid "Width (px) at which to collapse the left POI list"
896
- msgstr ""
897
-
898
- #: pro/mappress_pro_settings.php:365
899
- #, fuzzy
900
- msgid "Show a list of POIs with each map"
901
- msgstr "Zeige eine Liste aller Marker unter jeder Karte."
902
-
903
- #: pro/mappress_pro_settings.php:373
904
- #, fuzzy
905
- msgid "Enable search"
906
- msgstr "Freischalten"
907
-
908
- #: pro/mappress_pro_settings.php:377
909
- msgid "Sort POI list by title"
910
- msgstr ""
911
-
912
- #: pro/mappress_pro_settings.php:383
913
- msgid "No styles have been defined yet"
914
- msgstr ""
915
-
916
- #: pro/mappress_pro_settings.php:392
917
- #, fuzzy
918
- msgid "Snazzy Maps"
919
- msgstr "Karte mit CSS"
920
-
921
- #: pro/mappress_pro_settings.php:393
922
- msgid "Enter JSON from %s"
923
- msgstr ""
924
-
925
- #: pro/mappress_pro_settings.php:397
926
- #: pro/mappress_pro_settings.php:413
927
- #, fuzzy
928
- msgid "Style name"
929
- msgstr "Karte mit CSS"
930
-
931
- #: pro/mappress_pro_settings.php:409
932
- msgid "Mapbox Studio"
933
- msgstr ""
934
-
935
- #: pro/mappress_pro_settings.php:410
936
- msgid "Enter styles from %s"
937
- msgstr ""
938
-
939
- #: pro/mappress_pro_settings.php:428
940
- msgid "Only admins or multisite super-admins can edit templates"
941
- msgstr ""
942
-
943
- #: pro/mappress_pro_settings.php:433
944
- msgid "WordPress 4.9 or higher is needed to use the template editor."
945
- msgstr ""
946
-
947
- #: pro/mappress_pro_settings.php:447
948
- msgid "or "
949
- msgstr ""
950
-
951
- #: pro/mappress_pro_settings.php:455
952
- msgid "Show featured image thumbnails in mashup POIs"
953
- msgstr ""
954
-
955
- #: pro/mappress_updater.php:122
956
- msgid "JSON error"
957
- msgstr ""
958
-
959
- #: pro/mappress_widget.php:69
960
- #: pro/mappress_widget_map.php:56
961
- msgid "Widget title"
962
- msgstr "Titel"
963
-
964
- #: pro/mappress_widget.php:74
965
- #: pro/mappress_widget_map.php:66
966
- #, fuzzy
967
- msgid "Map size"
968
- msgstr "Karte gespeichert"
969
-
970
- #: pro/mappress_widget.php:80
971
- #, fuzzy
972
- msgid "Show"
973
- msgstr "Karte zeigen"
974
-
975
- #: pro/mappress_widget.php:81
976
- #, fuzzy
977
- msgid "Current posts"
978
- msgstr "Aktuelle Karten"
979
-
980
- #: pro/mappress_widget.php:82
981
- msgid "Hide if empty"
982
- msgstr ""
983
-
984
- #: pro/mappress_widget.php:84
985
- #, fuzzy
986
- msgid "All posts"
987
- msgstr "Artikel"
988
-
989
- #: pro/mappress_widget.php:85
990
- #, fuzzy
991
- msgid "Custom query"
992
- msgstr "Benutzerdefinierte Felder"
993
-
994
- #: pro/mappress_widget.php:88
995
- msgid "Learn about queries"
996
- msgstr ""
997
-
998
- #: pro/mappress_widget.php:94
999
- #: pro/mappress_widget_map.php:74
1000
- #, fuzzy
1001
- msgid "Show POI list"
1002
- msgstr "POI links"
1003
-
1004
- #: pro/mappress_widget.php:101
1005
- #: pro/mappress_widget_map.php:81
1006
- #, fuzzy
1007
- msgid "Other Settings"
1008
- msgstr "Marker-Einstellungen"
1009
-
1010
- #: pro/mappress_widget.php:104
1011
- #: pro/mappress_widget_map.php:84
1012
- msgid "Example: initialopeninfo=\"true\""
1013
- msgstr ""
1014
-
1015
- #: pro/mappress_widget_map.php:61
1016
- #: templates_admin/mce.php:49
1017
- #: templates_admin/mce.php:69
1018
- #: build/index_mappress_admin.js:1
1019
- msgid "Map ID"
1020
- msgstr "Karten ID"
1021
-
1022
- #: templates/map-directions.php:5
1023
- #, fuzzy
1024
- msgid "My location"
1025
- msgstr "Ort"
1026
-
1027
- #: templates/map-directions.php:14
1028
- msgid "Get Directions"
1029
- msgstr "Routenplanung starten"
1030
-
1031
- #: templates/map-filters.php:12
1032
- msgid "Done"
1033
- msgstr ""
1034
-
1035
- #: templates/map-filters.php:13
1036
- #, fuzzy
1037
- msgid "Reset"
1038
- msgstr "Karte zurücksetzen"
1039
-
1040
- #: templates/map-loop.php:3
1041
- #, fuzzy
1042
- msgid "Results"
1043
- msgstr "Standard wiederherstellen"
1044
-
1045
- #: templates/map.php:53
1046
- #, fuzzy
1047
- msgid "Your Location"
1048
- msgstr "Ort"
1049
-
1050
- #: templates/map.php:67
1051
- msgid "Menu"
1052
- msgstr ""
1053
-
1054
- #: templates/map.php:69
1055
- msgid "Center map"
1056
- msgstr "Karte zentrieren"
1057
-
1058
- #: templates/map.php:72
1059
- msgid "Traffic"
1060
- msgstr "Verkehr"
1061
-
1062
- #: templates/map.php:73
1063
- msgid "Bicycling"
1064
- msgstr "per Fahrrad"
1065
-
1066
- #: templates/map.php:74
1067
- msgid "Transit"
1068
- msgstr "Transit"
1069
-
1070
- #: templates/map.php:84
1071
- msgid "Show List"
1072
- msgstr ""
1073
-
1074
- #: templates/map.php:85
1075
- #, fuzzy
1076
- msgid "Show Map"
1077
- msgstr "Karte zeigen"
1078
-
1079
- #: templates_admin/editor.php:34
1080
- msgid "Visual"
1081
- msgstr "Visuell"
1082
-
1083
- #: templates_admin/editor.php:34
1084
- msgid "HTML"
1085
- msgstr "HTML"
1086
-
1087
- #: templates_admin/editor.php:36
1088
- msgid "Add Media"
1089
- msgstr ""
1090
-
1091
- #: templates_admin/editor.php:45
1092
- #: templates_admin/mce.php:55
1093
- #: templates_admin/widgets.php:91
1094
- #: build/index_mappress_admin.js:1
1095
- msgid "Save"
1096
- msgstr "speichern"
1097
-
1098
- #: templates_admin/editor.php:46
1099
- #: templates_admin/mce.php:56
1100
- #: templates_admin/widgets.php:92
1101
- #: build/index_mappress_admin.js:1
1102
- msgid "Cancel"
1103
- msgstr "Abbrechen"
1104
-
1105
- #: templates_admin/mce.php:6
1106
- #: build/index_mappress_admin.js:1
1107
- #, fuzzy
1108
- msgid "Select a map"
1109
- msgstr "Karte zurücksetzen"
1110
-
1111
- #: templates_admin/mce.php:7
1112
- #: build/index_mappress_admin.js:1
1113
- msgid "Add New"
1114
- msgstr ""
1115
-
1116
- #: templates_admin/mce.php:14
1117
- #, fuzzy
1118
- msgid "post title"
1119
- msgstr "Beitragstypen"
1120
-
1121
- #: templates_admin/mce.php:18
1122
- #: build/index_mappress_admin.js:1
1123
- msgid "Attached to this post"
1124
- msgstr ""
1125
-
1126
- #: templates_admin/mce.php:19
1127
- #: build/index_mappress_admin.js:1
1128
- #, fuzzy
1129
- msgid "All maps"
1130
- msgstr "kleinere Karte"
1131
-
1132
- #: templates_admin/mce.php:24
1133
- msgid "Close"
1134
- msgstr "schließen"
1135
-
1136
- #: templates_admin/mce.php:35
1137
- #: build/index_mappress_admin.js:1
1138
- msgid "Size"
1139
- msgstr "Größe"
1140
-
1141
- #: templates_admin/mce.php:59
1142
- msgid "Save center / zoom"
1143
- msgstr ""
1144
-
1145
- #: templates_admin/mce.php:68
1146
- #: build/index_mappress_admin.js:1
1147
- #, fuzzy
1148
- msgid "Map title"
1149
- msgstr "Titel"
1150
-
1151
- #: templates_admin/mce.php:71
1152
- #: build/index_mappress_admin.js:1
1153
- msgid "Attached to"
1154
- msgstr ""
1155
-
1156
- #: templates_admin/mce.php:73
1157
- #: build/index_mappress_admin.js:1
1158
- #, fuzzy
1159
- msgid "Action"
1160
- msgstr "Ort"
1161
-
1162
- #: templates_admin/mce.php:87
1163
- #, fuzzy
1164
- msgid "Current post"
1165
- msgstr "Aktuelle Karten"
1166
-
1167
- #: templates_admin/mce.php:92
1168
- #: build/index_mappress_admin.js:1
1169
- msgid "Unattached"
1170
- msgstr ""
1171
-
1172
- #: templates_admin/mce.php:99
1173
- msgid "Insert into post"
1174
- msgstr "in Beitrag einfügen"
1175
-
1176
- #: templates_admin/mce.php:107
1177
- #: build/index_mappress_admin.js:1
1178
- #, fuzzy
1179
- msgid "No maps found"
1180
- msgstr "Karte nicht gefunden"
1181
-
1182
- #: templates_admin/widgets.php:7
1183
- msgid "Opacity"
1184
- msgstr "Durchsichtigkeit"
1185
-
1186
- #: templates_admin/widgets.php:13
1187
- #, fuzzy
1188
- msgid "Weight"
1189
- msgstr "Rechtsbündig"
1190
-
1191
- #: templates_admin/widgets.php:28
1192
- msgid "No custom icons have been added yet."
1193
- msgstr ""
1194
-
1195
- #: templates_admin/widgets.php:59
1196
- #, fuzzy
1197
- msgid "Use default icon"
1198
- msgstr "Standard wiederherstellen"
1199
-
1200
- #: templates_admin/widgets.php:67
1201
- msgid "Map popup"
1202
- msgstr ""
1203
-
1204
- #: templates_admin/widgets.php:67
1205
- #, fuzzy
1206
- msgid "Map list item"
1207
- msgstr "Marker Listen Vorlage"
1208
-
1209
- #: templates_admin/widgets.php:67
1210
- #, fuzzy
1211
- msgid "Mashup popup"
1212
- msgstr "Mashups"
1213
-
1214
- #: templates_admin/widgets.php:67
1215
- #, fuzzy
1216
- msgid "Mashup list item"
1217
- msgstr "Marker Listen Vorlage"
1218
-
1219
- #: templates_admin/widgets.php:74
1220
- #, fuzzy
1221
- msgid "New"
1222
- msgstr "Neue Karte"
1223
-
1224
- #: templates_admin/widgets.php:74
1225
- #: build/index_mappress_admin.js:1
1226
- #, fuzzy
1227
- msgid "Custom"
1228
- msgstr "eigenes CSS"
1229
-
1230
- #: templates_admin/widgets.php:77
1231
- #, fuzzy
1232
- msgid "Editor"
1233
- msgstr "Bearbeiten"
1234
-
1235
- #: package.json
1236
- msgctxt "block description"
1237
- msgid "MapPress Maps for WordPress"
1238
- msgstr ""
1239
-
1240
- #~ msgid "Documentation"
1241
- #~ msgstr "Dokumentation"
1242
-
1243
- #~ msgid "Support"
1244
- #~ msgstr "Support"
1245
-
1246
- #~ msgid "Contact"
1247
- #~ msgstr "Kontakt"
1248
-
1249
- #~ msgid ""
1250
- "\n"
1251
- "MapPress now requires WordPress 3.2 or higher. Please upgrade \"\n"
1252
- "using MapPress.\""
1253
- #~ msgstr ""
1254
- "\n"
1255
- "MapPress benötigt WordPress 3.2 oder höher. Bitte aktualisieren!\""
1256
-
1257
- #~ msgid ""
1258
- "\n"
1259
- "MapPress is not compfatible with the WP-Geo plugin. Please \"\n"
1260
- "or uninstall WP-Geo before using MapPress.\""
1261
- #~ msgstr ""
1262
- "\n"
1263
- "MapPress ist nicht kompatibel mit dem WP-Geo Plugin. Vor der \"\n"
1264
- "von MapPress bitte WP-Geo deaktivieren oder entfernen.\""
1265
-
1266
- #~ msgid "Bike"
1267
- #~ msgstr "Fahrrad"
1268
-
1269
- #~ msgid "One of the addresses could not be found."
1270
- #~ msgstr "Die Start- oder Zieladresse fehlt."
1271
-
1272
- #~ msgid ""
1273
- "\n"
1274
- "cannot return directions between those addresses. There is no \"\n"
1275
- "between them or the routing information is not available.\""
1276
- #~ msgstr ""
1277
- "\n"
1278
- "kann zu diesen Adressen keine Wegbeschreibung liefern. Es gibt \"\n"
1279
- "Route zwischen ihnen oder es fehlen Routeninfos dazu.\""
1280
-
1281
- #~ msgid "Unknown error, unable to return directions. Status code = "
1282
- #~ msgstr "Unbekannter Fehler. Wegbeschreibung nicht möglich. Status Code = "
1283
-
1284
- #~ msgid "No matching address"
1285
- #~ msgstr "Keine passende Adresse"
1286
-
1287
- #~ msgid "Click & drag to move"
1288
- #~ msgstr "Klicken & Ziehen um Marker zu bewegen"
1289
-
1290
- #~ msgid "Click to change"
1291
- #~ msgstr "Klicken um zu ändern"
1292
-
1293
- #~ msgid "Delete this POI?"
1294
- #~ msgstr "Diesen Marker löschen?"
1295
-
1296
- #~ msgid "Internal error, your data has not been saved!"
1297
- #~ msgstr ""
1298
- "\n"
1299
- "Fehler: Karte wurde nicht gefunden. Daten wurden nicht \"\n"
1300
- ""
1301
-
1302
- #~ msgid "Bigger map"
1303
- #~ msgstr "Größere Karte"
1304
-
1305
- #~ msgid "Directions to"
1306
- #~ msgstr "Wegbeschreibung hierher"
1307
-
1308
- #~ msgid "Directions from"
1309
- #~ msgstr "Wegbeschreibung von hier"
1310
-
1311
- #~ msgid "Map Controls"
1312
- #~ msgstr "Kartenkontrollelemente"
1313
-
1314
- #~ msgid "Draggable"
1315
- #~ msgstr "Draggable"
1316
-
1317
- #~ msgid "Keyboard shortcuts"
1318
- #~ msgstr "Tastaturkürzel"
1319
-
1320
- #~ msgid "Scroll wheel zoom"
1321
- #~ msgstr "Zoom per Scrollrad"
1322
-
1323
- #~ msgid "Map links"
1324
- #~ msgstr "Kartenlinks"
1325
-
1326
- #~ msgid "Map border color"
1327
- #~ msgstr "Farbe Kartenrand"
1328
-
1329
- #~ msgid "Tooltips"
1330
- #~ msgstr "Tooltips"
1331
-
1332
- #~ msgid "Language"
1333
- #~ msgstr "Sprache"
1334
-
1335
- #~ msgid "Country"
1336
- #~ msgstr "Land"
1337
-
1338
- #~ msgid "Directions units"
1339
- #~ msgstr "Einheiten für Wegbeschreibung"
1340
-
1341
- #~ msgid "Adaptive display"
1342
- #~ msgstr "Adaptive Kartendarstellung"
1343
-
1344
- #~ msgid "Turn off CSS"
1345
- #~ msgstr "CSS ausschalten"
1346
-
1347
- #~ msgid "Load maps last"
1348
- #~ msgstr "Karten zuletzt laden"
1349
-
1350
- #~ msgid ""
1351
- "\n"
1352
- "the settings below to automatically create maps from custom fields.\""
1353
- #~ msgstr "Automatisch Karten aus benutzerdefinierten Feldern erzeugen"
1354
-
1355
- #, fuzzy
1356
- #~ msgid "Posts"
1357
- #~ msgstr "Beitragsarten"
1358
-
1359
- #~ msgid "Pages"
1360
- #~ msgstr "Seiten"
1361
-
1362
- #, php-format
1363
- #~ msgid "Enter a %s to use when searching (leave blank for USA)"
1364
- #~ msgstr "%s angeben für die Suche (leer lassen für USA / .com)"
1365
-
1366
- #~ msgid "Enter a google server URL for directions/printing"
1367
- #~ msgstr "Geben Sie eine Google Server URL für Wegbschreibungen/Drucken an"
1368
-
1369
- #, fuzzy
1370
- #~ msgid "(Default)"
1371
- #~ msgstr "Standard"
1372
-
1373
- #~ msgid "Metric (kilometers)"
1374
- #~ msgstr "Metrisch (Kilometer)"
1375
-
1376
- #~ msgid "Imperial (miles)"
1377
- #~ msgstr "Imperial (Meilen)"
1378
-
1379
- #, fuzzy
1380
- #~ msgid "Enable map dragging with the mouse"
1381
- #~ msgstr "Zoom per Scrollrad der Maus aktivieren"
1382
-
1383
- #~ msgid "Enable zoom with the mouse scroll wheel"
1384
- #~ msgstr "Zoom per Scrollrad der Maus aktivieren"
1385
-
1386
- #~ msgid "Enable keyboard panning and zooming"
1387
- #~ msgstr "Zoom und Ziehen per Tastatur aktivieren"
1388
-
1389
- #, fuzzy,php-format
1390
- #~ msgid "Use a specific %s for map controls and geocoding"
1391
- #~ msgstr ""
1392
- "\n"
1393
- "%s für Kartensteuerelemente verwenden (Standard: Browsersprache)\""
1394
-
1395
- #~ msgid "Horizontal"
1396
- #~ msgstr "Horizontal"
1397
-
1398
- #~ msgid "Dropdown"
1399
- #~ msgstr "Dropdown"
1400
-
1401
- #~ msgid "Small"
1402
- #~ msgstr "klein"
1403
-
1404
- #~ msgid "Large"
1405
- #~ msgstr "groß"
1406
-
1407
- #~ msgid "Android"
1408
- #~ msgstr "Android"
1409
-
1410
- #~ msgid "Open initially"
1411
- #~ msgstr "Beim Laden öffnen"
1412
-
1413
- #~ msgid "Checked initially"
1414
- #~ msgstr "Beim Laden angehakt"
1415
-
1416
- #~ msgid "Control"
1417
- #~ msgstr "Kontrollelement"
1418
-
1419
- #~ msgid "Style"
1420
- #~ msgstr "Stil"
1421
-
1422
- #~ msgid "Map types"
1423
- #~ msgstr "Kartentypen"
1424
-
1425
- #~ msgid "Pan"
1426
- #~ msgstr "Schwenken"
1427
-
1428
- #~ msgid "Scale"
1429
- #~ msgstr "Skalieren"
1430
-
1431
- #~ msgid "Overview map"
1432
- #~ msgstr "Übersichtskarte"
1433
-
1434
- #~ msgid "Public transit"
1435
- #~ msgstr "Öffentlicher Nachverkehr"
1436
-
1437
- #~ msgid "Bike routes"
1438
- #~ msgstr "Fahrradrouten"
1439
-
1440
- #~ msgid "Road map"
1441
- #~ msgstr "Straßenkarte"
1442
-
1443
- #~ msgid "Terrain"
1444
- #~ msgstr "Terrain"
1445
-
1446
- #~ msgid "Hybrid"
1447
- #~ msgstr "Hybrid"
1448
-
1449
- #~ msgid "Inline (in your blog)"
1450
- #~ msgstr "Inline (im Blog)"
1451
-
1452
- #, fuzzy
1453
- #~ msgid "Automatically open the first POI when a map is displayed"
1454
- #~ msgstr "Ersten Marker sofort beim Laden der Karte anzeigen"
1455
-
1456
- #~ msgid "Enabled by default"
1457
- #~ msgstr "Standardmässig freischalten"
1458
-
1459
- #, fuzzy
1460
- #~ msgid "Show POI titles as a \"tooltip\" on mouse-over"
1461
- #~ msgstr "Zeige Marker-Titel als \"Tooltip\" bei Mouse-Over"
1462
-
1463
- #~ msgid "solid"
1464
- #~ msgstr "durchgehend"
1465
-
1466
- #~ msgid "dashed"
1467
- #~ msgstr "gestrichelt"
1468
-
1469
- #~ msgid "dotted"
1470
- #~ msgstr "gepunktet"
1471
-
1472
- #~ msgid "double"
1473
- #~ msgstr "doppelt"
1474
-
1475
- #~ msgid "groove"
1476
- #~ msgstr "3D-Effekt (groove)"
1477
-
1478
- #~ msgid "inset"
1479
- #~ msgstr "3D-Effekt (inset)"
1480
-
1481
- #~ msgid "outset"
1482
- #~ msgstr "3D-Effekt (outset)"
1483
-
1484
- #~ msgid "Corner radius"
1485
- #~ msgstr "Eckenradius"
1486
-
1487
- #~ msgid "Color"
1488
- #~ msgstr "Farbe"
1489
-
1490
- #~ msgid "Display shadow"
1491
- #~ msgstr "Schatten anzeigen"
1492
-
1493
- #~ msgid "Default zoom for POIs entered by lat/lng"
1494
- #~ msgstr "Standardzoom für POIs mit Länge/Breite eingegeben"
1495
-
1496
- #~ msgid "No automatic display"
1497
- #~ msgstr "Keine automatische Anzeige"
1498
-
1499
- #~ msgid "Use tinyMCE"
1500
- #~ msgstr "TinyMCE benutzen"
1501
-
1502
- #, php-format
1503
- #~ msgid "Don't load the %s stylesheet"
1504
- #~ msgstr "Das %s Stylesheet nicht laden"
1505
-
1506
- #~ msgid "Load maps in window 'load' event"
1507
- #~ msgstr "Karte im Fenster \"Load-Event\" laden"
1508
-
1509
- #~ msgid "Rate it 5 Stars"
1510
- #~ msgstr "Mit 5 Sternen bewerten"
1511
-
1512
- #, php-format
1513
- #~ msgid "%s on WordPress.org"
1514
- #~ msgstr "%s auf WordPress.org"
1515
-
1516
- #~ msgid "Thanks for your support!"
1517
- #~ msgstr "Funke für Ihre Unterstützung!"
1518
-
1519
- #~ msgid "Like this plugin?"
1520
- #~ msgstr "Mögen Sie dieses Plugin?"
1521
-
1522
- #~ msgid "download it now"
1523
- #~ msgstr "jetzt herunterladen"
1524
-
1525
- #, php-format
1526
- #~ msgid "A PRO Version update is available for manual installation: %s"
1527
- #~ msgstr "Ein PRO-Versionsupdate is zur händischen Installation verfügbar: %s"
1528
-
1529
- #~ msgid "Click map for lat/lng: "
1530
- #~ msgstr "Auf die Karte klicken um Länge/Breite zu erhalten:"
1531
-
1532
- #~ msgid "Line: "
1533
- #~ msgstr "Linie:"
1534
-
1535
- #~ msgid "Fill: "
1536
- #~ msgstr "Füllung:"
1537
-
1538
- #, fuzzy
1539
- #~ msgid "Maps for This Post"
1540
- #~ msgstr "Karten in diesem Beitrag"
1541
-
1542
- #~ msgid "By car"
1543
- #~ msgstr "mit dem KFZ"
1544
-
1545
- #~ msgid "Public Transit"
1546
- #~ msgstr "Öffentliche Verkehrsmittel"
1547
-
1548
- #~ msgid "Walking"
1549
- #~ msgstr "zu Fuß"
1550
-
1551
- #~ msgid "Swap start and end"
1552
- #~ msgstr "Start/Ziel tauschen"
1553
-
1554
- #~ msgid "Print"
1555
- #~ msgstr "Drucken"
1556
-
1557
- #~ msgid "Internal error - unable to save map. Your data has not been saved!"
1558
- #~ msgstr ""
1559
- "\n"
1560
- "Fehler: Karte konnte nicht gesichert werden. Daten wurden nicht \"\n"
1561
- ""
1562
-
1563
- #~ msgid "Marker list"
1564
- #~ msgstr "Marker Liste"
1565
-
1566
- #~ msgid "Show traffic button"
1567
- #~ msgstr "Verkehrsinfo-Button anzeigen"
1568
-
1569
- #~ msgid ""
1570
- "\n"
1571
- "your readers to change the map type (street, satellite, or hybrid)\""
1572
- #~ msgstr ""
1573
- "\n"
1574
- "erlauben den Kartentyp zu ändern (Karte, Satellit, Hybrid)\""
1575
-
1576
- #~ msgid "Display the street view control \"peg man\""
1577
- #~ msgstr "Street View Button \"Peg Man\" anzeigen"
1578
-
1579
- #~ msgid ""
1580
- "\n"
1581
- "'Google' if directions aren't displaying properly in your theme\""
1582
- #~ msgstr ""
1583
- "\n"
1584
- "'Google' wenn die Wegbeschreibung im Theme nicht korrekt \"\n"
1585
- "wird\""
1586
-
1587
- #~ msgid "This setting requires %s."
1588
- #~ msgstr "Diese Einstellung benötigt %s."
1589
-
1590
- #~ msgid "Show a button for real-time traffic conditions"
1591
- #~ msgstr "Button für Echtzeit-Verkehrsinformationen anzeigen"
1592
-
1593
- #~ msgid "Mark the %s where you want to use MapPress"
1594
- #~ msgstr "%s auswählen, in denen MapPress verwendet werden soll"
1595
-
1596
- #~ msgid "page"
1597
- #~ msgstr "Seite"
1598
-
1599
- #~ msgid "Force Resize"
1600
- #~ msgstr "Größenänderung erzwingen"
1601
-
1602
- #~ msgid "Enter the URL for your CSS file"
1603
- #~ msgstr "URL der CSS Datei eingeben"
1604
-
1605
- #~ msgid "Set a template for the marker list"
1606
- #~ msgstr "Marker Listen Vorlage"
1607
-
1608
- #~ msgid "Toggle the 'powered by' message"
1609
- #~ msgstr "Die 'powered by' Nachricht unterdrücken"
1610
-
1611
- #~ msgid "Report a bug"
1612
- #~ msgstr "Fehler berichten"
1613
-
1614
- #~ msgid "No geocoding response from Google: %s"
1615
- #~ msgstr "Keine Geocoding Antwort von Google: %s"
1616
-
1617
- #~ msgid "Google cannot geocode address: %s, status: %s"
1618
- #~ msgstr "Google kann die Adresse nicht geocodieren: %s, status: %s"
1619
-
1620
- #~ msgid "Start"
1621
- #~ msgstr "Start"
1622
-
1623
- #~ msgid "End"
1624
- #~ msgstr "Ziel"
1625
-
1626
- #~ msgid "Print Directions"
1627
- #~ msgstr "Wegbeschreibung drucken"
1628
-
1629
- #~ msgid "FAQ"
1630
- #~ msgstr "FAQ"
1631
-
1632
- #~ msgid "Toggle lat/lng entry"
1633
- #~ msgstr "Länge/Breite umschalten"
1634
-
1635
- #~ msgid "Lat/Lng"
1636
- #~ msgstr "Länge/Breite"
1637
-
1638
- #~ msgid "Medium"
1639
- #~ msgstr "medium"
1640
-
1641
- #~ msgid "Create a new map"
1642
- #~ msgstr "Neue Karte erstellen"
1643
-
1644
- #~ msgid "Did you mean: "
1645
- #~ msgstr "Meinten Sie: "
1646
-
1647
- #~ msgid "View"
1648
- #~ msgstr "Anzeigen"
1649
-
1650
- #~ msgid "Back"
1651
- #~ msgstr "zurück"
1652
-
1653
- #~ msgid "Delete this map marker?"
1654
- #~ msgstr "Diesen Karten-Marker löschen?"
1655
-
1656
- #~ msgid "Error: AJAX failed! "
1657
- #~ msgstr "AJAX-Fehler!"
1658
-
1659
- #~ msgid "Show a list of markers under each map."
1660
- #~ msgstr "Zeige eine Liste aller Marker unter jeder Karte."
1661
-
1662
- #, fuzzy
1663
- #~ msgid "show a list of markers under each map."
1664
- #~ msgstr "Zeige eine Liste aller Marker unter jeder Karte."
1665
-
1666
- #~ msgid "This setting requires %s. Show a list of markers under each map."
1667
- #~ msgstr ""
1668
- "\n"
1669
- "Einstellung benötigt %s. Zeige eine Liste aller Marker unter jeder \"\n"
1670
- ""
1671
-
1672
- #, fuzzy
1673
- #~ msgid "Marker title:"
1674
- #~ msgstr "Marker Liste"
1675
-
1676
- #, fuzzy
1677
- #~ msgid "Directions:"
1678
- #~ msgstr "Wegbeschreibung"
1679
-
1680
- #, fuzzy
1681
- #~ msgid "Marker list:"
1682
- #~ msgstr "Marker Liste"
1683
-
1684
- #~ msgid "Donate"
1685
- #~ msgstr "Spenden"
1686
-
1687
- #~ msgid "Please make a donation today!"
1688
- #~ msgstr "Bitte spende heute!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/mappress-google-maps-for-wordpress.mo ADDED
Binary file
languages/mappress-google-maps-for-wordpress.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the MapPress Maps for WordPress plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: MapPress Maps for WordPress 2.83.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-07-11T18:07:12+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
2
  # This file is distributed under the same license as the MapPress Maps for WordPress plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: MapPress Maps for WordPress 2.83.4\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-07-13T18:20:49+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
 
mappress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: MapPress Maps for WordPress
4
  Plugin URI: https://www.mappresspro.com
5
  Author URI: https://www.mappresspro.com
6
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
- Version: 2.83.3
8
  Author: Chris Richardson
9
  Text Domain: mappress-google-maps-for-wordpress
10
  Thanks to all the translators and to Scott DeJonge for his wonderful icons
@@ -39,7 +39,7 @@ if (is_dir(dirname( __FILE__ ) . '/pro')) {
39
  }
40
 
41
  class Mappress {
42
- const VERSION = '2.83.3';
43
 
44
  static
45
  $baseurl,
4
  Plugin URI: https://www.mappresspro.com
5
  Author URI: https://www.mappresspro.com
6
  Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
+ Version: 2.83.4
8
  Author: Chris Richardson
9
  Text Domain: mappress-google-maps-for-wordpress
10
  Thanks to all the translators and to Scott DeJonge for his wonderful icons
39
  }
40
 
41
  class Mappress {
42
+ const VERSION = '2.83.4';
43
 
44
  static
45
  $baseurl,
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: maps, google maps, map, map markers, google map, leaflet maps, leaflet map
5
  Requires at least: 5.3
6
  Requires PHP: 5.6
7
  Tested up to: 6.0
8
- Stable tag: 2.83.3
9
 
10
  == Description ==
11
  MapPress is the easiest way to add beautiful interactive Google and Leaflet maps to WordPress.
@@ -89,6 +89,10 @@ Please see the plugin documentation pages:
89
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 2.83.3 =
93
  * Fixed: POI list pagination incorrect
94
 
5
  Requires at least: 5.3
6
  Requires PHP: 5.6
7
  Tested up to: 6.0
8
+ Stable tag: 2.83.4
9
 
10
  == Description ==
11
  MapPress is the easiest way to add beautiful interactive Google and Leaflet maps to WordPress.
89
 
90
  == Changelog ==
91
 
92
+ = 2.83.4 =
93
+ * Fixed: updated German translation
94
+ * Fixed: double markers showing when using multiple maps with Leaflet clustering
95
+
96
  = 2.83.3 =
97
  * Fixed: POI list pagination incorrect
98