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