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