PageSourceSearch

https://www.studioespresso.co/frontend-studio/mapbox.component-BV5BtIFI.js

js studioespresso.co collected 2026-10-02 05:17:15 UTC 2,615 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["mapbox-gl-DLkZvJ8a.js","_commonjsHelpers-Cpj98o6Y.js"])))=>i.map(i=>d[i]);
2import{_ as f}from"./site-TMvbJ_tI.js";class h{constructor(){this.pending=[],document.querySelectorAll("[data-mapbox-map]").forEach(e=>{e.dataset.mapboxInitialized||(this.isVisible(e)?this.initMap(e):this.pending.push(e))}),this.watchCollapsibles()}watchCollapsibles(){if(!this.pending.length)return;const n=new Set;this.pending.forEach(e=>{let t=e.parentElement;for(;t;)t.tagName==="DETAILS"&&n.add(t),t=t.parentElement}),n.forEach(e=>{e.addEventListener("toggle",()=>this.revealPending())})}revealPending(){this.pending=this.pending.filter(n=>n.dataset.mapboxInitialized?!1:this.isVisible(n)?(this.initMap(n),!1):!0)}isVisible(n){let e=n;for(;e;){if(e.tagName==="DETAILS"&&!e.open)return!1;e=e.parentElement}return!0}async initMap(n){if(n.dataset.mapboxInitialized)return;n.dataset.mapboxInitialized="true";const e=await f(()=>import("./mapbox-gl-DLkZvJ8a.js").then(a=>a.m),__vite__mapDeps([0,1])),t=JSON.parse(n.dataset.mapboxMap||"[]"),s=n.dataset.mapboxToken;if(e.default.accessToken=s,t.length===0)return;const i=new e.default.LngLatBounds;t.forEach(a=>i.extend([a.lng,a.lat]));const l={container:n,style:"mapbox://styles/mapbox/streets-v12",scrollZoom:!1,attributionControl:!1};t.length===1?(l.center=[t[0].lng,t[0].lat],l.zoom=15):(l.bounds=i,l.fitBoundsOptions={padding:80});const o=new e.default.Map(l);o.once("load",()=>{o.resize(),t.length>1&&o.fitBounds(i,{padding:80,animate:!1})}),t.forEach(a=>{const d=a.label?new e.default.Popup({offset:25}).setText(a.label):void 0,r={};(a.color||a.icon)&&(r.element=this.createMarkerElement(a),r.anchor="bottom"),new e.default.Marker(r).setLngLat([a.lng,a.lat]).setPopup(d).addTo(o)})}createMarkerElement(n){const e=n.color||"#3b82f6",t=document.createElement("div");t.style.width="32px",t.style.height="32px",t.style.cursor="pointer",t.style.filter="drop-shadow(0 2px 3px rgba(0,0,0,0.4))";const s=document.createElement("div");if(s.style.width="32px",s.style.height="32px",s.style.background=e,s.style.border="2px solid #ffffff",s.style.borderRadius="50% 50% 50% 0",s.style.transform="rotate(-45deg)",s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",t.appendChild(s),n.icon){const i=document.createElement("span");i.style.transform="rotate(45deg)",i.style.width="15px",i.style.height="15px",i.style.display="flex",i.innerHTML=n.icon;const l=i.querySelector("svg");l&&(l.style.width="100%",l.style.height="100%",l.setAttribute("fill","#ffffff")),s.appendChild(i)}return t}}export{h as default};

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.