2023-07-20 04:57:20 +07:00
|
|
|
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;n<B.length;n+=1)F[n]=N(k(t,B,n));return{c(){n=l("div"),o=l("div"),m=l("h1"),r=p(M),a=u(),i=l("img"),x=u(),v=l("p"),y=p(S),z=u(),D=l("h3"),E=p(_),O=u(),R=l("map-component"),A=u(),C=l("p"),H=p(q),L=u();for(let t=0;t<F.length;t+=1)F[t].c();g(i,"id","commune-img"),d(i.src,s="/img/common/commune.svg")||g(i,"src","/img/common/commune.svg"),g(i,"alt","commune"),g(v,"class","description"),h(R,"id","map"),h(R,"callback",T=t[8]),g(C,"id","add-prompt"),g(o,"id","text-container"),g(n,"id","container")},m(t,c){e(t,n,c),f(n,o),f(o,m),f(m,r),f(o,a),f(o,i),f(o,x),f(o,v),f(v,y),f(o,z),f(o,D),f(D,E),f(o,O),f(o,R),f(o,A),f(o,C),f(C,H),f(o,L);for(let t=0;t<F.length;t+=1)F[t].m(o,null)},p(t,n){if(1&n&&M!==(M=t[0].communes+"")&&b(r,M),1&n&&S!==(S=t[0].p1+"")&&b(y,S),1&n&&_!==(_=t[0].subheading1+"")&&b(E,_),1&n&&T!==(T=t[8])&&h(R,"callback",T),1&n&&q!==(q=t[0]["map-prompt"]+"")&&b(H,q),193&n){let e;for(B=Object.entries(w),e=0;e<B.length;e+=1){const m=k(t,B,e);F[e]?F[e].p(m,n):(F[e]=N(m),F[e].c(),F[e].m(o,null))}for(;e<F.length;e+=1)F[e].d(1);F.length=B.length}},d(t){t&&c(n),j(F,t)}}}function E(t){let n,o,m,r,a,i,s,d,h,j,x,v,w,y,k,z,D,E,N,O,R,T,A,C,H,L=t[0].location+"",M=t[7](t[13])+"",S=t[0].status+"",_=t[0][t[13].status]+"",q=t[0].members+"",B=t[13].members+"",F=t[0].contact+"",G=t[0][t[13].contact[1]]+"";return{c(){n=l("div"),o=l("p"),m=l("b"),r=p(L),a=p(": "),i=p(M),s=u(),d=l("p"),h=l("b"),j=p(S),x=p(": "),v=p(_),w=u(),y=l("p"),k=l("b"),z=p(q),D=p(": "),E=p(B),N=u(),O=l("p"),R=l("b"),T=p(F),A=p(": "),C=l("a"),H=p(G),g(C,"href",t[13].contact[0]),g(C,"target",";_blank;"),g(C,"rel","noreferrer"),g(n,"class","location-info")},m(t,c){e(t,n,c),f(n,o),f(o,m),f(m,r),f(m,a),f(o,i),f(n,s),f(n,d),f(d,h),f(h,j),f(h,x),f(d,v),f(n,w),f(n,y),f(y,k),f(k,z),f(k,D),f(y,E),f(n,N),f(n,O),f(O,R),f(R,T),f(R,A),f(O,C),f(C,H)},p(t,n){1&n&&L!==(L=t[0].location+"")&&b(r,L),1&n&&S!==(S=t[0].status+"")&&b(j,S),1&n&&_!==(_=t[0][t[13].status]+"")&&b(v,_),1&n&&q!==(q=t[0].members+"")&&b(z,q),1&n&&F!==(F=t[0].contact+"")&&b(T,F),1&n&&G!==(G=t[0][t[13].contact[1]]+"")&&b(H,G)},d(t){t&&c(n)}}}function N(t){let n,o,m,r,a,i=t[6](t[9])+"",s=t[10],d=[];for(let n=0;n<s.length;n+=1)d[n]=E(z(t,s,n));return{c(){n=l("h4"),o=p(i),m=u(),r=l("div");for(let t=0;t<d.length;t+=1)d[t].c();a=u(),g(n,"class","country-name"),g(r,"class","country-block")},m(t,c){e(t,n,c),f(n,o),e(t,m,c),e(t,r,c);for(let t=0;t<d.length;t+=1)d[t].m(r,null);f(r,a)},p(t,n){if(129&n){let o;for(s=t[10],o=0;o<s.length;o+=1){const e=z(t,s,o);d[o]?d[o].p(e,n):(d[o]=E(e),d[o].c(),d[o].m(r,a))}for(;o<d.length;o+=1)d[o].d(1);d.length=s.length}},d(t){t&&c(n),t&&c(m),t&&c(r),j(d,t)}}}function O(t){let n,o=2==t[1]&&D(t);return{c(){o&&o.c(),n=r()},m(t,m){o&&o.m(t,m),e(t,n,m)},p(t,e){2==t[1]?o?o.p(t,e):(o=D(t),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(t){o&&o.d(t),t&&c(n)}}}function R(t){let n,o=t[1],i=O(t);return{c(){i.c(),n=r(),this.c=a},m(t,o){i.m(t,o),e(t,n,o)},p(t,[e]){2&e&&m(o,o=t[1])?(i.d(1),i=O(t),i.c(),i.m(n.parentNode,n)):i.p(t,e)},i:a,o:a,d(t){t&&c(n),i.d(t)}}}function T(t,n,o){let e,m,r=x(0);i(t,r,(t=>o(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
|