%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/romanian.ongrace.com/wp-content/plugins/otter-blocks/build/blocks/
Upload File :
Create Path :
Current File : /var/www/projetos/romanian.ongrace.com/wp-content/plugins/otter-blocks/build/blocks/leaflet-map.js

!function(){"use strict";var e;e=()=>{if(!window.themeisleLeafletMaps)return void console.warn("The leaflet map attributes did not load on the page!");document.querySelectorAll(".wp-block-themeisle-blocks-leaflet-map").forEach((e=>{e.style.margin="20px 0",e.style.backgroundColor="#ccc"}));const e=setInterval((()=>{if(!window.L)return void console.warn("The leaflet script did not load on the page! Waiting for loading.");clearInterval(e);const t=Array.from(window.themeisleLeafletMaps).reduce(((e,t)=>(e[t.container]=t.attributes,e)),{});document.querySelectorAll(".wp-block-themeisle-blocks-leaflet-map").forEach((e=>{void 0!==t[e.id]&&(((e,t)=>{if(!e)return void console.warn(`The placeholder for the leaflet map block with id: ${e} does not exist!`);e.classList.add("wp-block-themeisle-leaflet-blocks-map");const o=window.L.map(e,{zoomControl:t.zoomControl,dragging:t.draggable,gestureHandling:t.draggable,gestureHandlingOptions:{text:{touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use ⌘ + scroll to zoom the map"}}});window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:["a","b","c"]}).addTo(o),o.setView([t.latitude,t.longitude],t.zoom||15),t.markers.map((e=>(e=>{const t=window.L.marker([e.latitude,e.longitude]);return t.bindTooltip(e.title,{direction:"auto"}),t.bindPopup((e=>{const t=document.createElement("div"),o=document.createElement("h6"),l=document.createElement("div"),a=document.createElement("p");return o.innerHTML=e.title,a.innerHTML=e.description,t.classList.add("wp-block-themeisle-blocks-leaflet-map-overview"),l.classList.add("wp-block-themeisle-blocks-leaflet-map-overview-content"),o.classList.add("wp-block-themeisle-blocks-leaflet-map-overview-title"),t.appendChild(o),t.appendChild(l),l.appendChild(a),t})(e)),t})(e))).forEach((e=>{o.addLayer(e)}))})(e,t[e.id]),e.style.removeProperty("margin"),e.style.removeProperty("background-color"))}))}),2e3)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e())}();

Zerion Mini Shell 1.0