1"use strict";(self.webpackChunkdb_regio_bayern=self.webpackChunkdb_regio_bayern||[]).push([[952],{3952:function(e,l,n){n.r(l),n.d(l,{default:function(){return c}});var a=n(1425),t=n(9966),i=n(3195),s=n(8168),u=n(7758);const r={class:"map-linked-destinations"},d={key:0,class:"map-linked-destinations__details"},o=["innerHTML"],p=["innerHTML"];var c={__name:"v-map-linked-destinations",props:{markers:{type:String,default:"[]"}},setup(e){const{t:l}=(0,t.s9)(),n=e,c=(0,a.KR)(null),k=(0,a.KR)(),v=(0,a.KR)(null);let m=null,f=null,_=[];const b=e=>{const l=_[e.feature.properties.index];l&&(v.value=l,k.value.open())},y=()=>{v.value?.url&&(document.location.href=v.value.url)};return(0,a.sV)(()=>{_=JSON.parse(n.markers||"[]"),m=(0,u.pI)(c.value),f=(0,u.qq)(_.map(e=>({id:e.id,label:"",coordinates:e.coordinates}))),_.length&&m.fitBounds(f.getBounds(),{padding:100,duration:0,maxZoom:12}),(0,u.us)(m,()=>{f.addTo(m),f.on("click",b)})}),(0,a.hi)(()=>{f?.off("click",b),f?.remove(),m?.remove()}),(e,n)=>((0,a.uX)(),(0,a.CE)(a.FK,null,[(0,a.Lk)("div",r,[(0,a.Lk)("div",{ref_key:"mapContainer",ref:c,class:"map-linked-destinations__map"},null,512)]),((0,a.uX)(),(0,a.Wv)(a.Im,{to:"body"},[(0,a.bF)(i.A,{ref_key:"modalRef",ref:k,headline:v.value?v.value.title:"",size:"md"},{default:(0,a.k6)(()=>[v.value?((0,a.uX)(),(0,a.CE)("div",d,[v.value.text?((0,a.uX)(),(0,a.CE)("div",{key:0,class:"map-linked-destinations__text",innerHTML:v.value.text},null,8,o)):(0,a.Q3)("",!0),v.value.address?((0,a.uX)(),(0,a.CE)("p",{key:1,class:"map-linked-destinations__address",innerHTML:v.value.address},null,8,p)):(0,a.Q3)("",!0),v.value.url?((0,a.uX)(),(0,a.Wv)(s.A,{key:2,type:"primary",label:(0,a.R1)(l)("button.label.learn-more"),"icon-after":"arrow-right","full-size":"",onButtonClick:y},null,8,["label"])):(0,a.Q3)("",!0)])):(0,a.Q3)("",!0)]),_:1},8,["headline"])]))],64))}}}}]);
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.