site-libsoc/Server/public/js/components/partners-component.js

2 lines
4.5 KiB
JavaScript
Raw Normal View History

import{g as t,S as e,i as n,a as i,b as o,s as r,e as a,n as s,d as m,c as l,o as c,f as g,t as p,h as d,j as h,k as f,m as u,p as b,q as x}from"./index-3cab5f92.js";import{w}from"./index-eafa799e.js";import{loadLocaleContent as j}from"../../../../../../js/libraries/serverTools.js";import{partners as y}from"../../../../../../js/partners.js";import"../../../../../../js/components/map-component.js";const{customElements:v}=t;function k(t,e,n){const i=t.slice();return i[4]=e[n],i}function z(t){let e,n,i,r,a,s,l,c,w,j,v,z,E,O,R,T,q,A=t[0].heading+"",C=t[0].p1+"",H=t[0].subheading1+"",L=t[0].subheading2+"",M=y,N=[];for(let e=0;e<M.length;e+=1)N[e]=D(k(t,M,e));return{c(){e=g("div"),n=g("div"),i=g("h1"),r=p(A),a=d(),s=g("img"),c=d(),w=g("p"),j=p(C),v=d(),z=g("h3"),E=p(H),O=d(),R=g("h4"),T=p(L),q=d();for(let t=0;t<N.length;t+=1)N[t].c();h(s,"id","hands-img"),f(s.src,l="/img/common/handshake.svg")||h(s,"src","/img/common/handshake.svg"),h(s,"alt","hands"),h(n,"id","text-container"),h(e,"id","container")},m(t,m){o(t,e,m),u(e,n),u(n,i),u(i,r),u(n,a),u(n,s),u(n,c),u(n,w),u(w,j),u(n,v),u(n,z),u(z,E),u(n,O),u(n,R),u(R,T),u(n,q);for(let t=0;t<N.length;t+=1)N[t].m(n,null)},p(t,e){if(1&e&&A!==(A=t[0].heading+"")&&b(r,A),1&e&&C!==(C=t[0].p1+"")&&b(j,C),1&e&&H!==(H=t[0].subheading1+"")&&b(E,H),1&e&&L!==(L=t[0].subheading2+"")&&b(T,L),1&e){let i;for(M=y,i=0;i<M.length;i+=1){const o=k(t,M,i);N[i]?N[i].p(o,e):(N[i]=D(o),N[i].c(),N[i].m(n,null))}for(;i<N.length;i+=1)N[i].d(1);N.length=M.length}},d(t){t&&m(e),x(N,t)}}}function D(t){let e,n,i,r,a,s,l,c,f,x,w,j,y,v,k,z,D,E,O,R,T,q,A,C,H,L,M,N,S,_,B,F,G,I,J,K=t[0].name+"",P=t[4].name+"",Q=t[0].type+"",U=t[0][t[4].type]+"",V=t[0].link+"",W=t[4].link+"",X=t[0].description+"",Y=t[0][t[4].description]+"";return{c(){e=g("div"),n=g("div"),i=g("picture"),r=g("source"),a=d(),s=g("source"),l=d(),c=g("img"),f=d(),x=g("div"),w=g("p"),j=g("b"),y=p(K),v=p(": "),k=p(P),z=d(),D=g("p"),E=g("b"),O=p(Q),R=p(": "),T=p(U),q=d(),A=g("p"),C=g("b"),H=p(V),L=p(": "),M=g("a"),N=p(W),S=d(),_=g("p"),B=g("b"),F=p(X),G=p(": "),I=p(Y),J=d(),h(r,"srcset","/img/partners/"+t[4].logo+".webp"),h(s,"srcset","/img/partners/"+t[4].logo+".jpg"),h(c,"class","partner-logo"),h(c,"alt","logo"),h(M,"href",t[4].link),h(M,"target",";_blank;"),h(M,"rel","noreferrer"),h(n,"class","img-general-info"),h(e,"class","location-info")},m(t,m){o(t,e,m),u(e,n),u(n,i),u(i,r),u(i,a),u(i,s),u(i,l),u(i,c),u(n,f),u(n,x),u(x,w),u(w,j),u(j,y),u(j,v),u(w,k),u(x,z),u(x,D),u(D,E),u(E,O),u(E,R),u(D,T),u(x,q),u(x,A),u(A,C),u(C,H),u(C,L),u(A,M),u(M,N),u(e,S),u(e,_),u(_,B),u(B,F),u(B,G),u(_,I),u(e,J)},p(t,e){1&e&&K!==(K=t[0].name+"")&&b(y,K),1&e&&Q!==(Q=t[0].type+"")&&b(O,Q),1&e&&U!==(U=t[0][t[4].type]+"")&&b(T,U),1&e&&V!==(V=t[0].link+"")&&b(H,V),1&e&&X!==(X=t[0].description+"")&&b(F,X),1&e&&Y!==(Y=t[0][t[4].description]+"")&&b(I,Y)},d(t){t&&m(e)}}}function E(t){let e,n=0!=Object.keys(t[0]).length,i=n&&z(t);return{c(){i&&i.c(),e=a(),this.c=s},m(t,n){i&&i.m(t,n),o(t,e,n)},p(t,[o]){1&o&&(n=0!=Object.keys(t[0]).length),n?i?i.p(t,o):(i=z(t),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:s,o:s,d(t){i&&i.d(t),t&&m(e)}}}function O(t,e,n){let i,o,r=w({});return l(t,r,(t=>n(0,i=t))),j(r,"partners-component",o),c((()=>{})),[i,o,r]}class R extends e{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';#hands-img{position:absolute;width:10.5rem;left:50%;transform:translate(-50%);z-index:0;opacity:0.2;margin-top:-2rem}#text-container>:nth-child(3){margin-top:6rem}.img-general-info{display:flex;align-content:center;width:100%;gap:1.5rem;align-items:center;margin-bottom:1rem}.img-general-info>:nth-child(2){flex:none}.partner-logo{position:relative;right:0;max-height:6rem;max-width:100%;border-radius:1rem}h4{margin-bottom:2rem}.location-info{position:relative;margin-bottom:2rem}.location-info p{margin-bottom:0}a{color:#DD1C1A}#text-container{max-width:calc(100vw - 4rem);margin:auto}h1{margin-bottom:1rem;font-size:2.2rem;text-align:center}h3{margin-bottom:2rem}#container{margin:auto;max-width:800px;margin-top:1rem;margin-bottom:4rem}#container>div>p{m