1import{e as w,H,M as V,S as W,I as Z,o as u,c as b,J as $,K as J,g as B,a as P,i as n,b as h,w as f,d as K,t as k,v as I,j as _,L as U,_ as D,D as X,l as Y,z as x,h as T,F as q,r as Q,n as S,x as ee,A as te}from"./-eBh0pYo.js";import{S as oe}from"./DukUkke3.js";import{_ as ne}from"./TWbGHj3g.js";import{i as ae}from"./CV9NDokU.js";import{g as se}from"./B30rpdLM.js";import{d as ie}from"./zk8OdAkl.js";const re=w({__name:"MarkerCluster",props:{maxZoom:{},styles:{}},setup(s){const a=s,p=H("$mapPromise");if(!p)throw new Error("MarkerCluster must be rendered inside GMapMap");const e=a.styles[0],g={render({count:o,position:r}){return new google.maps.Marker({position:r,icon:{url:e.url,scaledSize:new google.maps.Size(e.width,e.height),labelOrigin:new google.maps.Point(e.width/2+(e.anchorText?.[1]??0),e.height/2+(e.anchorText?.[0]??0))},label:{text:String(o),color:e.textColor,fontFamily:e.fontFamily,fontSize:e.textSize?`${e.textSize}px`:void 0},zIndex:Number(google.maps.Marker.MAX_ZINDEX)+o})}},m=p.then(o=>new V({map:o,renderer:g,algorithm:new W({maxZoom:a.maxZoom})}));return J("$clusterPromise",m),Z(async()=>{const o=await m;o.clearMarkers(),o.setMap(null)}),(o,r)=>(u(),b("div",null,[$(o.$slots,"default")]))}}),le={textColor:"#ffffff",url:"/images/icons/splash.svg",width:75,height:100,textSize:25,anchorText:[9,0],fontFamily:"Ranade"},ce={path:oe,fillColor:"#31322F",fillOpacity:.8,strokeWeight:0,rotation:0,scale:.08,anchor:{x:250,y:450}},ue=["src","alt"],pe={class:"details"},me=["innerHTML"],de={key:1,class:"date"},fe=w({__name:"MapObjectPopover",props:{item:{}},setup(s){const a=s,{imageBaseUrl:p}=B().public,e=_(()=>a.item.attributes.find(d=>d.slug===U.DESCRIPTION)),g=_(()=>se(p,a.item?.mainAttributes?.image,"medium")),m=_(()=>a.item.mainAttributes?.shortDescription?.value||e.value?.value||""),o=_(()=>ae(a.item.mainAttributes?.date?.configuration?.displayDate)),r=_(()=>a.item.mainAttributes?.title?.value);return(d,M)=>{const v=ne;return u(),b("section",null,[P("img",{src:n(g),alt:n(r)},null,8,ue),P("div",pe,[h(v,{class:"title",to:d.$localePath("/content/"+s.item?.slug)+"?source=map"},{default:f(()=>[K(k(n(r)),1)]),_:1},8,["to"]),n(m)?(u(),b("div",{key:0,class:"description",innerHTML:n(e)?.value},null,8,me)):I("",!0),s.item.mainAttributes?.date?.configuration?.displayDate?(u(),b("div",de,k(s.item.mainAttributes?.date?.configuration?.displayDate)+" "+k(n(o)?d.$t("yearAbbreviation"):""),1)):I("",!0)])])}}}),_e=D(fe,[["__scopeId","data-v-df9b2972"]]),ge=w({__name:"MapWrapper",props:{items:{}},emits:["boundsChanged"],setup(s,{emit:a}){const p=S({lat:55.093048,lng:23.84212}),e=s,{mapId:g}=B().public,m=ce,o=S(null),r=a,d={mapId:g,gestureHandling:"greedy",mapTypeControl:!1,streetViewControl:!1},M=S(null),v={text:"1",fontSize:"22px",fontWeight:"400",fontFamily:"Ranade",color:"white",className:"marker-label"},N=[le],O=t=>t.attributes.find(i=>i.type===te.LOCATION),y=_(()=>e.items.flatMap(t=>{const{lat:i,lng:l}=O(t)?.configuration??{};return typeof i!="number"||typeof l!="number"?[]:[{id:t.id,position:{lat:i,lng:l},item:t}]})),L=t=>{M.value===t&&(M.value=null)},z=t=>{M.value=t},A=async()=>{await o.value?.$mapPromise;const t=o.value?.$mapObject,i=window?.google?.maps;if(!t||!i||!y.value.length)return;const l=new i.LatLngBounds;y.value.forEach(C=>l.extend(C.position)),t.fitBounds(l)};X(()=>{A()}),Y(y,A,{flush:"post"});const E=ie(t=>{r("boundsChanged",t.toJSON())},400);return(t,i)=>{const l=x("GMapInfoWindow"),C=x("GMapMarker"),R=re,G=x("GMapMap"),F=ee;return u(),T(F,null,{default:f(()=>[h(G,{class:"map",ref_key:"gmap",ref:o,center:n(p),zoom:7,options:d,onBounds_changed:n(E)},{default:f(()=>[h(R,{styles:N},{default:f(()=>[(u(!0),b(q,null,Q(n(y),c=>(u(),T(C,{key:c.id,position:c.position,icon:n(m),label:v,clickable:!0,onClick:j=>z(c.id)},{default:f(()=>[h(l,{opened:n(M)===c.id,closeclick:!0,onCloseclick:j=>L(c.id)},{default:f(()=>[$(t.$slots,"popover",{item:c.item},()=>[h(_e,{item:c.item},null,8,["item"])],!0)]),_:2},1032,["opened","onCloseclick"])]),_:2},1032,["position","icon","onClick"]))),128))]),_:3})]),_:3},8,["center","onBounds_changed"])]),_:3})}}}),xe=D(ge,[["__scopeId","data-v-62e70822"]]);export{xe as M};
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.