2023-07-10 18:09:25 +07:00
|
|
|
import{S as t,i as e,a as o,b as n,s as i,e as a,n as r,d as s,c,o as m,f as l,t as p,g,h as d,j as h,k as f,l as b,m as u,p as w}from"./index-4348483d.js";import{w as x}from"./index-71440b21.js";import{coops as v,addMarkersCoops as k}from"../../../../../../../../../js/coops.js";import{loadLocaleContent as j}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,e,o){const n=t.slice();return n[6]=e[o],n}function z(t){let e,o,i,a,r,c,m,x,k,j,z,E,O,R,T,_,A,C,H,L,M,N,S,q=t[0].heading+"",B=t[0].p1+"",F=t[0].p2+"",G=t[0].subheading1+"",I=t[0].subheading2+"",J=v,K=[];for(let e=0;e<J.length;e+=1)K[e]=D(y(t,J,e));return{c(){e=l("div"),o=l("div"),i=l("h1"),a=p(q),r=g(),c=l("img"),x=g(),k=l("p"),j=p(B),z=g(),E=l("p"),O=p(F),R=g(),T=l("h3"),_=p(G),A=g(),C=l("map-component"),L=g(),M=l("h4"),N=p(I),S=g();for(let t=0;t<K.length;t+=1)K[t].c();d(c,"id","coops-img"),h(c.src,m="/img/common/coops.svg")||d(c,"src","/img/common/coops.svg"),d(c,"alt","coops"),f(C,"id","map"),f(C,"callback",H=t[5]),d(o,"id","text-container"),d(e,"id","container")},m(t,s){n(t,e,s),b(e,o),b(o,i),b(i,a),b(o,r),b(o,c),b(o,x),b(o,k),b(k,j),b(o,z),b(o,E),b(E,O),b(o,R),b(o,T),b(T,_),b(o,A),b(o,C),b(o,L),b(o,M),b(M,N),b(o,S);for(let t=0;t<K.length;t+=1)K[t].m(o,null)},p(t,e){if(1&e&&q!==(q=t[0].heading+"")&&u(a,q),1&e&&B!==(B=t[0].p1+"")&&u(j,B),1&e&&F!==(F=t[0].p2+"")&&u(O,F),1&e&&G!==(G=t[0].subheading1+"")&&u(_,G),1&e&&H!==(H=t[5])&&f(C,"callback",H),1&e&&I!==(I=t[0].subheading2+"")&&u(N,I),1&e){let n;for(J=v,n=0;n<J.length;n+=1){const i=y(t,J,n);K[n]?K[n].p(i,e):(K[n]=D(i),K[n].c(),K[n].m(o,null))}for(;n<K.length;n+=1)K[n].d(1);K.length=J.length}},d(t){t&&s(e),w(K,t)}}}function D(t){let e,o,i,a,r,c,m,h,f,w,x,v,k,j,y,z,D,E,O,R,T,_,A,C,H,L,M,N,S,q,B,F,G,I,J,K,P,Q,U,V,W,X,Y,Z,$,tt,et,ot,nt,it,at,rt,st,ct,mt,lt,pt,gt,dt,ht,ft=t[0].name+"",bt=t[6].name+"",ut=t[0].location+"",wt=t[0][t[6].location[0]]+"",xt=t[0].market+"",vt=t[0][t[6].market]+"",kt=t[0].workers+"",jt=t[6].workers+"",yt=t[0].status+"",zt=t[0][t[6].status]+"",Dt=t[0].website+"",Et=t[6].website+"",Ot=t[0].contact+"",Rt=t[0][t[6].contact[1]]+"",Tt=t[0].description+"",_t=t[0][t[6].description]+"";return{c(){e=l("div"),o=l("div"),i=l("div"),a=l("p"),r=l("b"),c=p(ft),m=p(": "),h=p(bt),f=g(),w=l("p"),x=l("b"),v=p(ut),k=p(": "),j=p(wt),y=g(),z=l("p"),D=l("b"),E=p(xt),O=p(": "),R=p(vt),T=g(),_=l("p"),A=l("b"),C=p(kt),H=p(": "),L=p(jt),M=g(),N=l("p"),S=l("b"),q=p(yt),B=p(": "),F=p(zt),G=g(),I=l("p"),J=l("b"),K=p(Dt),P=p(": "),Q=l("a"),U=p(Et),V=g(),W=l("p"),X=l("b"),Y=p(Ot),Z=p(": "),$=l("a"),tt=p(Rt),et=g(),ot=l("picture"),nt=l("source"),it=g(),at=l("source"),rt=g(),st=l("img"),ct=g(),mt=l("p"),lt=l("b"),pt=p(Tt),gt=p(": "),dt=p(_t),ht=g(),d(Q,"href","https://www."+t[6].website),d(Q,"target","_blank"),d(Q,"rel","noreferrer"),d($,"href",t[6].contact[0]),d($,"target",";_blank;"),d($,"rel","noreferrer"),d(nt,"srcset","/img/coops/"+t[6].logo+".webp"),d(at,"srcset","/img/coops/"+t[6].logo+".png"),d(st,"class","coop-logo"),d(st,"alt","logo"),d(o,"class","img-general-info"),d(e,"class","location-info")},m(t,s){n(t,e,s),b(e,o),b(o,i),b(i,a),b(a,r),b(r,c),b(r,m),b(a,h),b(i,f),b(i,w),b(w,x),b(x,v),b(x,k),b(w,j),b(i,y),b(i,z),b(z,D),b(D,E),b(D,O),b(z,R),b(i,T),b(i,_),b(_,A),b(A,C),b(A,H),b(_,L),b(i,M),b(i,N),b(N,S),b(S,q),b(S,B),b(N,F),b(i,G),b(i,I),b(I,J),b(J,K),b(J,P),b(I,Q),b(Q,U),b(i,V),b(i,W),b(W,X),b(X,Y),b(X,Z),b(W,$),b($,tt),b(o,et),b(o,ot),b(ot,nt),b(ot,it),b(ot,at),b(ot,rt),b(ot,st),b(e,ct),b(e,mt),b(mt,lt),b(lt,pt),b(lt,gt),b(mt,dt),b(e,ht)},p(t,e){1&e&&ft!==(ft=t[0].name+"")&&u(c,ft),1&e&&ut!==(ut=t[0].location+"")&&u(v,ut),1&e&&wt!==(wt=t[0][t[6].location[0]]+"")&&u(j,wt),1&e&&xt!==(xt=t[0].market+"")&&u(E,xt),1&e&&vt!==(vt=t[0][t[6].market]+"")&&u(R,vt),1&e&&kt!==(kt=t[0].workers+"")&&u(C,kt),1&e&&yt!==(yt=t[0].status+"")&&u(q,yt),1&e&&zt!==(zt=t[0][t[6].status]+"")&&u(F,zt),1&e&&Dt!==(Dt=t[0].website+"")&&u(K,Dt),1&e&&Ot!==(Ot=t[0].contact+"")&&u(Y,Ot),1&e&&Rt!==(Rt=t[0][t[6].contact[1]]+"")&&u(tt,Rt),1&e&&Tt!==(Tt=t[0].desc
|