2023-08-01 19:56:41 +07:00
|
|
|
import{S as t,i as o,a as n,b as e,s as r,p as s,n as a,g as i,q as m,o as c,e as l,v as p,c as u,d as g,t as d,u as f,f as h,w as b,x as j}from"./index-db20528a.js";import{w as x}from"./index-720c0a59.js";import{loadLocaleContent as v,getData as w}from"../../../../../../../../../js/libraries/serverTools.js";import{addMarkersEntries as y,translate as k}from"../../../../../../../../../js/libraries/mapTools.js";import{addGroupPinContent as z}from"../../../../../../../../../js/mapFuncs.js";import"../../../../../../../../../js/components/map-component.js";function N(t,o,n){const e=t.slice();return e[12]=o[n][0],e[3]=o[n][1],e}function O(t,o,n){const e=t.slice();return e[15]=o[n],e}function T(t){let o,n,r,s,a,m,c,x,v,w,y,k,z,O,T,D,R,S,q,A,C=t[1].groups+"",F=t[1].p1+"",H=t[1].subheading1+"",J=t[1]["map-prompt"]+"",K=Object.entries(t[0]),L=[];for(let o=0;o<K.length;o+=1)L[o]=E(N(t,K,o));return{c(){o=l("div"),n=l("div"),r=l("h1"),s=p(C),a=u(),m=l("img"),x=u(),v=l("p"),w=p(F),y=u(),k=l("h3"),z=p(H),O=u(),T=l("map-component"),R=u(),S=l("p"),q=p(J),A=u();for(let t=0;t<L.length;t+=1)L[t].c();g(m,"id","groups-img"),d(m.src,c="/img/common/groups.svg")||g(m,"src","/img/common/groups.svg"),g(m,"alt","groups"),g(v,"class","description"),f(T,"id","map"),f(T,"callback",D=t[10]),g(S,"id","add-prompt"),g(n,"id","text-container"),g(o,"id","container")},m(t,i){e(t,o,i),h(o,n),h(n,r),h(r,s),h(n,a),h(n,m),h(n,x),h(n,v),h(v,w),h(n,y),h(n,k),h(k,z),h(n,O),h(n,T),h(n,R),h(n,S),h(S,q),h(n,A);for(let t=0;t<L.length;t+=1)L[t].m(n,null)},p(t,o){if(2&o&&C!==(C=t[1].groups+"")&&b(s,C),2&o&&F!==(F=t[1].p1+"")&&b(w,F),2&o&&H!==(H=t[1].subheading1+"")&&b(z,H),2&o&&D!==(D=t[10])&&f(T,"callback",D),2&o&&J!==(J=t[1]["map-prompt"]+"")&&b(q,J),771&o){let e;for(K=Object.entries(t[0]),e=0;e<K.length;e+=1){const r=N(t,K,e);L[e]?L[e].p(r,o):(L[e]=E(r),L[e].c(),L[e].m(n,null))}for(;e<L.length;e+=1)L[e].d(1);L.length=K.length}},d(t){t&&i(o),j(L,t)}}}function D(t){let o,n,r,s,a,m,c,d,f,j,x,v,w,y,k,z,N,O,T,D,E=t[1].location+"",R=t[9](t[15])+"",S=t[1].members+"",q=t[15].members+"",A=t[1].contact+"",C=t[15].contact+"";return{c(){o=l("div"),n=l("p"),r=l("b"),s=p(E),a=p(": "),m=p(R),c=u(),d=l("p"),f=l("b"),j=p(S),x=p(": "),v=p(q),w=u(),y=l("p"),k=l("b"),z=p(A),N=p(": "),O=l("a"),T=p(C),g(O,"href",D=t[15].contact),g(O,"target",";_blank;"),g(O,"rel","noreferrer"),g(o,"class","location-info")},m(t,i){e(t,o,i),h(o,n),h(n,r),h(r,s),h(r,a),h(n,m),h(o,c),h(o,d),h(d,f),h(f,j),h(f,x),h(d,v),h(o,w),h(o,y),h(y,k),h(k,z),h(k,N),h(y,O),h(O,T)},p(t,o){2&o&&E!==(E=t[1].location+"")&&b(s,E),1&o&&R!==(R=t[9](t[15])+"")&&b(m,R),2&o&&S!==(S=t[1].members+"")&&b(j,S),1&o&&q!==(q=t[15].members+"")&&b(v,q),2&o&&A!==(A=t[1].contact+"")&&b(z,A),1&o&&C!==(C=t[15].contact+"")&&b(T,C),1&o&&D!==(D=t[15].contact)&&g(O,"href",D)},d(t){t&&i(o)}}}function E(t){let o,n,r,s,a,m=t[8](t[12])+"",c=t[3],d=[];for(let o=0;o<c.length;o+=1)d[o]=D(O(t,c,o));return{c(){o=l("h4"),n=p(m),r=u(),s=l("div");for(let t=0;t<d.length;t+=1)d[t].c();a=u(),g(o,"class","country-name"),g(s,"class","country-block")},m(t,i){e(t,o,i),h(o,n),e(t,r,i),e(t,s,i);for(let t=0;t<d.length;t+=1)d[t].m(s,null);h(s,a)},p(t,o){if(1&o&&m!==(m=t[8](t[12])+"")&&b(n,m),515&o){let n;for(c=t[3],n=0;n<c.length;n+=1){const e=O(t,c,n);d[n]?d[n].p(e,o):(d[n]=D(e),d[n].c(),d[n].m(s,a))}for(;n<d.length;n+=1)d[n].d(1);d.length=c.length}},d(t){t&&i(o),t&&i(r),t&&i(s),j(d,t)}}}function R(t){let o,n=3==t[2]&&T(t);return{c(){n&&n.c(),o=s()},m(t,r){n&&n.m(t,r),e(t,o,r)},p(t,e){3==t[2]?n?n.p(t,e):(n=T(t),n.c(),n.m(o.parentNode,o)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&i(o)}}}function S(t){let o,n=t[2],m=R(t);return{c(){m.c(),o=s(),this.c=a},m(t,n){m.m(t,n),e(t,o,n)},p(t,[e]){4&e&&r(n,n=t[2])?(m.d(1),m=R(t),m.c(),m.m(o.parentNode,o)):m.p(t,e)},i:a,o:a,d(t){t&&i(o),m.d(t)}}}function q(t,o,n){let e,r,s=x(0);m(t,s,(t=>n(2,r=t)));let a,i,l=x({});m(t,l,(t=>n(1,e=t)));let p=v(l,"groups-component",s);v(l,"countries",s);function u(t,o,n){let e=t([22,0],2);y(a,i,e,o,n,z,"green")}w("/assets/groups.json",(t=>{n(3,a=JSON.parse(t)),n(0,i={});for(let t of a){let o=t.country;null
|