1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./agHjwGlS.js","./mapbox-gl.COKfqiMv.css"])))=>i.map(i=>d[i]); 2import{L as b,al as P,a5 as E,am as k,J as M,an as T,c as B,D as L,ao as x,_ as I,a as p,o as l,b as a,u as A,t as m,F as y,r as f,h as C,B as N,X as O,C as D,i as S,K as V}from"./CzRVWcLR.js";import"./agHjwGlS.js";const _="__nuxt_component";function H(){const t=k(),e=L(),{_fetchKeyBase:n}=t.proxy.$options;return x([n,e.path,e.query,e.matched.findIndex(o=>Object.values(o.components||{}).includes(t.type))])}async function $(t,e){const n=b(),{fetchKey:o}=k().proxy.$options,d=(typeof o=="function"?o(()=>""):o)||H(),{data:i,error:c}=await M(`options:asyncdata:${d}`,()=>e(n));if(c.value)throw T(c.value);if(i.value&&typeof i.value=="object"){const r=await t;for(const s in i.value)r[s]=B({get:()=>{var u;return(u=i.value)==null?void 0:u[s]},set(u){i.value||(i.value={}),i.value[s]=u}})}}const K=function(...e){const[n,o]=e,{setup:d}=n;return!d&&!n.asyncData&&!n.head?{[_]:!0,...n}:{[_]:!0,_fetchKeyBase:o,...n,setup(i,c){const r=b();let s={};if(d){const w=()=>Promise.resolve(d(i,c)).then(v=>v||{});P(r._id).set(r),s=w()}const u=[];return n.asyncData&&u.push($(s,n.asyncData)),n.head&&E(typeof n.head=="function"?()=>n.head(r):n.head),Promise.resolve(s).then(()=>Promise.all(u)).then(()=>s).finally(()=>{u.length=0})}}},g=t=>{if(t.substring(0,3)==="<p>"){let e=t.substring(3);return e=e.slice(0,-4),e}else return t},j=async()=>await S(()=>import("./agHjwGlS.js").then(t=>t.m),__vite__mapDeps([0,1]),import.meta.url);let h;const z=K({props:{content:{type:Object,required:!0}},data(){return{map:null,mbgl:null,allMarkers:[],currentCountry:-1,duration:800,markericon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgBbY3NDUVQEIXPzC3ksXqW+iFCBeiECogoiKVYCH24xyys5H6bmeT8CYz/MTdwUtsbkVjo736Pi1GSayoJN+DLzVZJVyOENSkEKcJECvIMSratdrqQ5j163X55J0Bl1vVNnNbW7nE2Pso9JoKKj6flAAAAAElFTkSuQmCC"}},computed:{...O(D,{ww:t=>t.window.width}),cities(){const t=[];return this.content.countries.forEach(e=>{e.country.cities.forEach(n=>{t.push(n)})}),t},paddingOptions(){return this.ww>1100?{top:50,bottom:50,left:250,right:50}:{top:30,bottom:200,left:30,right:30}},paddingOptionsGlobal(){return this.ww>1100?{top:50,bottom:50,left:250,right:50}:{top:30,bottom:30,left:30,right:30}},maxZoom(){return this.ww>780?5:4}},async mounted(){const t=V();h=(await j()).default,h.accessToken=t.public.mapboxToken,this.$nextTick(()=>{this.createMap()})},methods:{createMap(){this.map=new h.Map({container:"map",style:this.content.mapStyle,center:[-4.3,48.7],zoom:4,pitch:0,minZoom:2,maxZoom:20,interactive:!1,attributionControl:!1});const t=new Image;t.width=7,t.height=7,t.crossOrigin="use-credentials",t.onload=()=>{this.map.addImage("marker",t),this.map.isStyleLoaded()?this.$nextTick(()=>{this.setMarkers(),this.toMapCenter()}):this.map.once("styledata",()=>{this.setMarkers(),this.toMapCenter()})},t.src=this.markericon},setMarkers(){this.content.countries.forEach(t=>{const e=[];t.country.cities.forEach(o=>{const d={type:"Feature",geometry:{type:"Point",coordinates:[o.lng,o.lat]},maxzoom:14,minzoom:1};e.push(d)});const n={id:t.country.name,type:"symbol",source:{type:"geojson",data:{type:"FeatureCollection",features:e}},layout:{"icon-image":"marker","icon-allow-overlap":!0},paint:{"icon-opacity":1,"icon-color":"#e57e63","icon-opacity-transition":{duration:300}}};this.map.addLayer(n)})},easeOut(t){return 1+--t*t*t*t*t},toCountryCenter(t){const e=new h.LngLatBounds;this.content.countries[t].country.cities.forEach(n=>{e.extend([n.lng,n.lat])}),this.content.countries.forEach((n,o)=>{o!==t?this.map.setPaintProperty(n.country.name,"icon-opacity",0):this.map.setPaintProperty(n.country.name,"icon-opacity",1)}),this.map.fitBounds(e,{padding:this.paddingOptions,maxZoom:this.maxZoom,duration:this.duration,easing:this.easeOut})},toMapCenter(){const t=this.currentCountry,e=t===-1?0:this.duration,n=new h.LngLatBounds;this.cities.forEach(o=>{n.extend([o.lng,o.lat])}
2),t!==-1&&this.content.countries.forEach(o=>{this.map.setPaintProperty(o.country.name,"icon-opacity",1)}),this.map.fitBounds(n,{padding:this.paddingOptionsGlobal,maxZoom:3.5,duration:e,easing:this.easeOut})},onCountryClick(t){t===this.currentCountry?(this.toMapCenter(),this.currentCountry=-1):(this.toCountryCenter(t),this.currentCountry=t)},noPAround(t){if(t.substring(0,3)==="<p>"){let e=t.substring(3);return e=e.slice(0,-4),e}else return t}}},"$VaDz_uThFq"),F={class:"wrapper-map"},U={class:"wrapper-title"},R={class:"container"},X={class:"map-title"},Z=["innerHTML"],J={class:"number"},Q=["innerHTML"],Y={class:"number"},q=["innerHTML"],G=["href"],W={key:1},tt={class:"wrapper-countries"},et=["onClick"];function nt(t,e,n,o,d,i){return l(),p(y,null,[a("div",F,[a("div",U,[a("div",R,[a("h3",X,[a("span",{innerHTML:("noPAround"in t?t.noPAround:A(g))(t.content.firstPartText)},null,8,Z),a("span",J,"Â "+m(t.content.countries.length)+"Â ",1),a("span",{innerHTML:("noPAround"in t?t.noPAround:A(g))(t.content.middlePartText)},null,8,Q),a("span",Y,"Â "+m(t.cities.length)+"Â ",1),a("span",{innerHTML:("noPAround"in t?t.noPAround:A(g))(t.content.lastPartText)},null,8,q)])])]),e[0]||(e[0]=a("div",{id:"map",class:"map"},null,-1)),(l(!0),p(y,null,f(t.content.countries,(c,r)=>(l(),p("div",{key:r,class:C(["cities",{active:r===t.currentCountry}])},[a("div",null,[(l(!0),p(y,null,f(c.country.cities,(s,u)=>(l(),p("span",{key:s.name},[s.link?(l(),p("a",{key:0,target:"_blank",rel:"noopener noreferrer",href:s.link},m(s.name),9,G)):(l(),p("span",W,m(s.name),1)),N(" "+m(u!==c.country.cities.length-1?" - ":""),1)]))),128))])],2))),128))]),a("div",tt,[(l(!0),p(y,null,f(t.content.countries,(c,r)=>(l(),p("div",{key:c.country.name,class:C(["country",{active:r===t.currentCountry,unactive:r!==t.currentCountry&&t.currentCountry>-1}]),onClick:s=>t.onCountryClick(r)},m(c.country.name),11,et))),128))])],64)}const at=I(z,[["render",nt],["__scopeId","data-v-1031bdf3"]]);export{at 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.