2023-07-13 18:32:49 +07:00
|
|
|
import{S as t,i as n,a as e,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 g,g as p,h as d,j as h,l as f,m as u,p as b}from"./index-4348483d.js";import{w as x}from"./index-71440b21.js";import{loadLocaleContent as y}from"../../../../../../../../../js/libraries/serverTools.js";import{partnersByCountry as w}from"../../../../../../../../../js/partners.js";import"../../../../../../../../../js/components/map-component.js";function j(t,n,e){const o=t.slice();return o[4]=n[e][0],o[5]=n[e][1],o}function v(t,n,e){const o=t.slice();return o[8]=n[e],o}function k(t){let n,e,i,r,a,s,l,x,y,v,k,z,E,N,O=t[1].heading+"",R=t[1].p1+"",T=t[1].subheading1+"",A=Object.entries(w),C=[];for(let n=0;n<A.length;n+=1)C[n]=D(j(t,A,n));return{c(){n=c("div"),e=c("div"),i=c("h1"),r=g(O),a=p(),s=c("img"),x=p(),y=c("p"),v=g(R),k=p(),z=c("h3"),E=g(T),N=p();for(let t=0;t<C.length;t+=1)C[t].c();d(s,"id","hands-img"),h(s.src,l="/img/common/handshake.svg")||d(s,"src","/img/common/handshake.svg"),d(s,"alt","hands"),d(e,"id","text-container"),d(n,"id","container")},m(t,m){o(t,n,m),f(n,e),f(e,i),f(i,r),f(e,a),f(e,s),f(e,x),f(e,y),f(y,v),f(e,k),f(e,z),f(z,E),f(e,N);for(let t=0;t<C.length;t+=1)C[t].m(e,null)},p(t,n){if(2&n&&O!==(O=t[1].heading+"")&&u(r,O),2&n&&R!==(R=t[1].p1+"")&&u(v,R),2&n&&T!==(T=t[1].subheading1+"")&&u(E,T),2&n){let o;for(A=Object.entries(w),o=0;o<A.length;o+=1){const i=j(t,A,o);C[o]?C[o].p(i,n):(C[o]=D(i),C[o].c(),C[o].m(e,null))}for(;o<C.length;o+=1)C[o].d(1);C.length=A.length}},d(t){t&&m(n),b(C,t)}}}function z(t){let n,e,i,r,a,s,l,h,b,x,y,w,j,v,k,z,D,E,N,O,R,T,A,C,H,L,M,S,_,q,B,F,G,I,J,K,P,Q,U,V,W=t[1].name+"",X=t[8].name+"",Y=t[1].type+"",Z=t[1][t[8].type]+"",$=t[1].location+"",tt=t[1][t[8].location[0][0]]+(""==t[8].location[0][1]?"":", "+t[1][t[8].location[0][1]]),nt=t[1].link+"",et=t[8].link+"",ot=t[1].description+"",it=t[1][t[8].description]+"";return{c(){n=c("div"),e=c("div"),i=c("picture"),r=c("source"),a=p(),s=c("source"),l=p(),h=c("img"),b=p(),x=c("div"),y=c("p"),w=c("b"),j=g(W),v=g(": "),k=g(X),z=p(),D=c("p"),E=c("b"),N=g(Y),O=g(": "),R=g(Z),T=p(),A=c("p"),C=c("b"),H=g($),L=g(": "),M=g(tt),S=p(),_=c("p"),q=c("b"),B=g(nt),F=g(": "),G=c("a"),I=g(et),J=p(),K=c("p"),P=c("b"),Q=g(ot),U=g(": "),V=g(it),d(r,"srcset","/img/partners/"+t[8].logo+".webp"),d(s,"srcset","/img/partners/"+t[8].logo+".jpg"),d(h,"class","partner-logo"),d(h,"alt","logo"),d(G,"href",t[8].link),d(G,"target",";_blank;"),d(G,"rel","noreferrer"),d(e,"class","img-general-info"),d(n,"class","location-info")},m(t,m){o(t,n,m),f(n,e),f(e,i),f(i,r),f(i,a),f(i,s),f(i,l),f(i,h),f(e,b),f(e,x),f(x,y),f(y,w),f(w,j),f(w,v),f(y,k),f(x,z),f(x,D),f(D,E),f(E,N),f(E,O),f(D,R),f(x,T),f(x,A),f(A,C),f(C,H),f(C,L),f(A,M),f(x,S),f(x,_),f(_,q),f(q,B),f(q,F),f(_,G),f(G,I),f(n,J),f(n,K),f(K,P),f(P,Q),f(P,U),f(K,V)},p(t,n){2&n&&W!==(W=t[1].name+"")&&u(j,W),2&n&&Y!==(Y=t[1].type+"")&&u(N,Y),2&n&&Z!==(Z=t[1][t[8].type]+"")&&u(R,Z),2&n&&$!==($=t[1].location+"")&&u(H,$),2&n&&tt!==(tt=t[1][t[8].location[0][0]]+(""==t[8].location[0][1]?"":", "+t[1][t[8].location[0][1]]))&&u(M,tt),2&n&&nt!==(nt=t[1].link+"")&&u(B,nt),2&n&&ot!==(ot=t[1].description+"")&&u(Q,ot),2&n&&it!==(it=t[1][t[8].description]+"")&&u(V,it)},d(t){t&&m(n)}}}function D(t){let n,e,i,r,a,s=t[1][t[4]]+"",l=t[5],h=[];for(let n=0;n<l.length;n+=1)h[n]=z(v(t,l,n));return{c(){n=c("h4"),e=g(s),i=p(),r=c("div");for(let t=0;t<h.length;t+=1)h[t].c();a=p(),d(n,"class","country-name"),d(r,"class","country-block")},m(t,m){o(t,n,m),f(n,e),o(t,i,m),o(t,r,m);for(let t=0;t<h.length;t+=1)h[t].m(r,null);f(r,a)},p(t,n){if(2&n&&s!==(s=t[1][t[4]]+"")&&u(e,s),2&n){let e;for(l=t[5],e=0;e<l.length;e+=1){const o=v(t,l,e);h[e]?h[e].p(o,n):(h[e]=z(o),h[e].c(),h[e].m(r,a))}for(;e<h.length;e+=1)h[e].d(1);h.length=l.length}},d(t){t&&m(n),t&&m(i),t&&m(r),b(h,t)}}}function E(t){let n,e=2==t[0]&&k(t);return{c(){e&&e.c(),n=r()},m(t,i){e&&e.m(t,i),o(t,n,i)},p(t,o){2==t[0]?e?e.p(t,o):(e=k(t),e.c(),e.m(n.parentNode,n)):e&&(e.d(1),e=null)},d(t){e&&e.d(t),t&&m(n)}}}function N(t){let n,e=t[0],s=E(t);return{c(){s.c(),n=r(),this.c=a},m(t,e){s.m(t,e),o(t,n,e)},p(t,[o])
|