2023-07-04 01:27:18 +07:00
|
|
|
import{S as t,i as o,a as e,b as n,s as r,e as a,n as i,d as s,c as m,o as c,f as l,t as p,g,h,j as u,k as d,l as f,m as b,p as x}from"./index-ce8c147b.js";import{w as j}from"./index-f2dbf8ff.js";import{groups as v,addMarkersGroups as w}from"../../../../../../../../../js/groups.js";import{loadLocaleContent as k}from"../../../../../../../../../js/libraries/serverTools.js";import"../../../../../../../../../js/components/map-component.js";function y(t,o,e){const n=t.slice();return n[6]=o[e],n}function z(t){let o,e,r,a,i,m,c,j,w,k,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 o=0;o<J.length;o+=1)K[o]=D(y(t,J,o));return{c(){o=l("div"),e=l("div"),r=l("h1"),a=p(q),i=g(),m=l("img"),j=g(),w=l("p"),k=p(B),z=g(),E=l("p"),O=p(F),R=g(),T=l("h3"),A=p(G),C=g(),H=l("map-component"),M=g(),N=l("h4"),S=p(I),_=g();for(let t=0;t<K.length;t+=1)K[t].c();h(m,"id","groups-img"),u(m.src,c="/img/common/groups.svg")||h(m,"src","/img/common/groups.svg"),h(m,"alt","groups"),d(H,"id","map"),d(H,"callback",L=t[5]),h(e,"id","text-container"),h(o,"id","container")},m(t,s){n(t,o,s),f(o,e),f(e,r),f(r,a),f(e,i),f(e,m),f(e,j),f(e,w),f(w,k),f(e,z),f(e,E),f(E,O),f(e,R),f(e,T),f(T,A),f(e,C),f(e,H),f(e,M),f(e,N),f(N,S),f(e,_);for(let t=0;t<K.length;t+=1)K[t].m(e,null)},p(t,o){if(1&o&&q!==(q=t[0].heading+"")&&b(a,q),1&o&&B!==(B=t[0].p1+"")&&b(k,B),1&o&&F!==(F=t[0].p2+"")&&b(O,F),1&o&&G!==(G=t[0].subheading1+"")&&b(A,G),1&o&&L!==(L=t[5])&&d(H,"callback",L),1&o&&I!==(I=t[0].subheading2+"")&&b(S,I),9&o){let n;for(J=v,n=0;n<J.length;n+=1){const r=y(t,J,n);K[n]?K[n].p(r,o):(K[n]=D(r),K[n].c(),K[n].m(e,null))}for(;n<K.length;n+=1)K[n].d(1);K.length=J.length}},d(t){t&&s(o),x(K,t)}}}function D(t){let o,e,r,a,i,m,c,u,d,x,j,v,w,k,y,z,D,E,O,R,T=t[0].location+"",A=t[6].location[0][t[3]]+"",C=t[0].members+"",H=t[6].members+"",L=t[0].contact+"",M=t[6].contact[1][t[3]]+"";return{c(){o=l("div"),e=l("p"),r=l("b"),a=p(T),i=p(": "),m=p(A),c=g(),u=l("p"),d=l("b"),x=p(C),j=p(": "),v=p(H),w=g(),k=l("p"),y=l("b"),z=p(L),D=p(": "),E=l("a"),O=p(M),R=g(),h(E,"href",t[6].contact[0]),h(E,"target",";_blank;"),h(E,"rel","noreferrer"),h(o,"class","location-info")},m(t,s){n(t,o,s),f(o,e),f(e,r),f(r,a),f(r,i),f(e,m),f(o,c),f(o,u),f(u,d),f(d,x),f(d,j),f(u,v),f(o,w),f(o,k),f(k,y),f(y,z),f(y,D),f(k,E),f(E,O),f(o,R)},p(t,o){1&o&&T!==(T=t[0].location+"")&&b(a,T),1&o&&C!==(C=t[0].members+"")&&b(x,C),1&o&&L!==(L=t[0].contact+"")&&b(z,L)},d(t){t&&s(o)}}}function E(t){let o,e=0!=Object.keys(t[0]).length,r=e&&z(t);return{c(){r&&r.c(),o=a(),this.c=i},m(t,e){r&&r.m(t,e),n(t,o,e)},p(t,[n]){1&n&&(e=0!=Object.keys(t[0]).length),e?r?r.p(t,n):(r=z(t),r.c(),r.m(o.parentNode,o)):r&&(r.d(1),r=null)},i:i,o:i,d(t){r&&r.d(t),t&&s(o)}}}function O(t,o,e){let n,r,a=j({});m(t,a,(t=>e(0,n=t)));let i=k(a,"groups-component",r);function s(t,o,e){let n=t([51.505,-.09],3);w(n,o,e)}c((()=>{}));return[n,r,a,i,s,t=>s(t,n,i)]}class R extends t{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#groups-img{position:absolute;width:14rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2}#text-container>:nth-child(3){margin-top:8rem}h4{margin-bottom:2rem}.location-info{margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#map{--height:30rem;--width:100%;--margin-bottom:3rem}#text-container{position:relative;max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:1rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{margin-bottom:1rem}#container p{text-align:justify}</style>",o(this,{target:this.shadowRoot,props:e(this.attributes),customElement:!0},O,E,r,{},null),t&&t.target&&n(t.target,this,t.anchor)}}customElements.define("groups-component",R);export{R as default};
|