1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/maplibre-gl.C1ig77X4.js","_astro/_commonjsHelpers.CqkleIqs.js"])))=>i.map(i=>d[i]); 2import{_ as h}from"./preload-helper.BlTxHScW.js";function b(e){let t=e.trim().replace(/\(0\)/g,"").replace(/[\s().-]/g,"");return/^\+?\d+$/.test(t)?(t.startsWith("00")&&(t=`+${t.slice(2)}`),t.startsWith("+")||(t=/^31\d{9}$/.test(t)?`+${t}`:`+31${t.replace(/^0/,"")}`),t=t.replace(/^\+310/,"+31"),/^\+[1-9]\d{5,14}$/.test(t)?`tel:${t}`:null):null}function l(e){return e.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]||t)}function f(e){return l(e).replace(/\r\n|\r|\n/g,"<br>")}function v(e){const t=[e.streetAddress,[e.postalCode,e.addressLocality].filter(Boolean).join(" ")].filter(Boolean).join(` 3`),n=encodeURIComponent([e.streetAddress,e.postalCode,e.addressLocality,e.country].filter(Boolean).join(", ")||`${e.lat},${e.lon}`),o=(e.phone||"").trim(),i=b(o),a=(e.openingHours||"").trim();return`<strong>${l(e.title||"KEUK locatie")}</strong>`+(t?`<div>${f(t)}</div>`:"")+(o?`<div>Telefoon: ${i?`<a href="${i}">${l(o)}</a>`:l(o)}</div>`:"")+(a?`<div><strong>Openingstijden</strong><br>${f(a)}</div>`:"")+`<a href="https://www.google.com/maps/dir/?api=1&destination=${n}" target="_blank" rel="noreferrer">Route plannen</a>`}const c=[[5.9884641,50.3132786],[6.7053224,52.0711621],[7.0440673,52.604713],[7.3489382,53.1566378],[6.6824341,53.5745465],[5.065155,53.4444236],[4.5368958,52.9566388],[4.5048523,52.62083],[4.3995667,52.4188915],[4.1775513,52.2297278],[3.8182068,51.8928616],[3.4332275,51.6705584],[3.3274841,51.3997839]],s=new Map,m=new WeakSet;let p;function w(){return p??=h(()=>import("./maplibre-gl.C1ig77X4.js").then(e=>e.m),__vite__mapDeps([0,1])).catch(e=>{throw p=void 0,e}),p}function k(e,t){const n=e.querySelector("[data-bezoek-map-canvas]");n&&(n.textContent="De kaart kon niet worden geladen. Probeer de pagina opnieuw te laden.",n.classList.add("grid","place-items-center","p-6","text-center","text-sm","text-muted-foreground"),console.error("[BezoekMap] MapLibre kon niet worden geladen.",t))}function z(e){const t=document.createElement("img");return t.src=e.src,t.alt=e.alt,t.draggable=!1,t.style.cssText="width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 6px 10px rgb(0 0 0 / 0.22))",t}async function g(e){if(e.dataset.initialized==="true"||m.has(e))return;const t=e.querySelector("[data-bezoek-map-canvas]"),n=e.querySelector("[data-bezoek-map-points]");if(!(!t||!n)){m.add(e);try{const[o,i]=await Promise.all([w(),Promise.resolve(JSON.parse(n.textContent||"[]"))]);if(!e.isConnected||s.has(e))return;const a=new o.Map({container:t,style:"https://tiles.openfreemap.org/styles/positron",center:[5.225,52.16],zoom:6.6});s.set(e,a),a.addControl(new o.NavigationControl({showCompass:!1}),"top-right");for(const r of i)(r.icon?new o.Marker({element:z(r.icon),anchor:"bottom"}):new o.Marker({color:"#d4a017"})).setLngLat([r.lon,r.lat]).setPopup(new o.Popup({offset:28}).setHTML(v(r))).addTo(a);const d=new o.LngLatBounds(c[0],c[0]);for(const r of c)d.extend(r);for(const r of i)d.extend([r.lon,r.lat]);a.fitBounds(d,{padding:64}),a.on("load",()=>a.resize()),new ResizeObserver(()=>a.resize()).observe(t),e.dataset.initialized="true"}catch(o){e.isConnected&&k(e,o)}finally{m.delete(e)}}}function u(e=document){e instanceof HTMLElement&&e.matches("[data-bezoek-map]")&&g(e),e.querySelectorAll("[data-bezoek-map]").forEach(t=>void g(t))}function L(e){if(!(e instanceof HTMLElement))return;const t=e.matches("[data-bezoek-map]")?[e]:[...e.querySelectorAll("[data-bezoek-map]")];for(const n of t)s.get(n)?.remove(),s.delete(n)}u();document.addEventListener("astro:page-load",()=>u());document.addEventListener("astro:before-swap",()=>{for(const[e,t]of s)t.remove(),s.delete(e),e.dataset.initialized=""});new MutationObserver(e=>{for(const t of e)t.addedNodes.forEach(n=>{(n instanceof HTMLElement||n instanceof DocumentFragment)&&u(n)}),t.removedNodes.forEach(L)}).observe(document.documentElement,{childList:!0,subtree:!0});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.