import{S as t,i as n,a as o,b as e,s as m,e as r,n as a,d as c,c as i,o as s,f as l,t as p,g as u,h as g,j as d,k as h,l as f,m as b,p as j}from"./index-4348483d.js";import{w as x}from"./index-71440b21.js";import{addMarkersCommunes as v,communesByCountry as w}from"../../../../../../../../../js/communes.js";import{loadLocaleContent as y}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function k(t,n,o){const e=t.slice();return e[9]=n[o][0],e[10]=n[o][1],e}function z(t,n,o){const e=t.slice();return e[13]=n[o],e}function D(t){let n,o,m,r,a,i,s,x,v,y,z,D,E,O,R,T,A,C,H,L,M=t[0].communes+"",S=t[0].p1+"",_=t[0].subheading1+"",q=t[0]["map-prompt"]+"",B=Object.entries(w),F=[];for(let n=0;no(1,m=t)));let a=x({});i(t,a,(t=>o(0,e=t))),y(a,"countries",r);let c=y(a,"communes-component",r);function l(t,n,o){let e=t([22,0],2);v(e,n,o)}s((()=>{}));return[e,m,r,a,c,l,function(t){return"en"==c?t:e[t]},function(t){return t.location[0].map((t=>"en"==c?t:e[t])).join(", ")},t=>l(t,e,c)]}class A extends t{constructor(t){super(),this.shadowRoot.innerHTML="",n(this,{target:this.shadowRoot,props:o(this.attributes),customElement:!0},T,R,m,{},null),t&&t.target&&e(t.target,this,t.anchor)}}customElements.define("communes-component",A);export{A as default};