2 lines
3.9 KiB
JavaScript
2 lines
3.9 KiB
JavaScript
import{g as t,S as e,i as o,a as r,b as a,s as i,e as n,n as s,d as m,c,f,t as l,h as d,j as g,w as h,m as p,r as u,p as b}from"./index-3cab5f92.js";import{w}from"./index-eafa799e.js";import{loadLocaleContent as v}from"../../../../../../js/libraries/serverTools.js";const{customElements:y}=t;function k(t){let e,o,r,i,n,s,c,w,v,y,k,x,j,L,_,z,B,C,T,U,A,H,M=t[0].contactUs+"",R=t[0].inviteLink+"",D=t[0].inviteLink+"";return{c(){e=f("footer"),o=f("div"),r=f("div"),i=f("div"),n=f("h2"),s=l(M),c=d(),w=f("p"),v=l("WhatsApp: "),y=f("a"),k=l(R),x=d(),j=f("p"),L=l("Discord: "),_=f("a"),z=l(D),B=d(),C=f("button"),C.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" width="42.545" height="72.601" viewBox="0 0 42.545 72.601"><g id="Group_268" data-name="Group 268" transform="translate(-6.177 -2.399)"><rect id="Rectangle_146" data-name="Rectangle 146" width="11" height="51" rx="5.5" transform="translate(22 24)" fill="#cb1816"></rect><path id="Path_1145" data-name="Path 1145" d="M23.814,4.021a5,5,0,0,1,7.372,0l16.134,17.6c2.94,3.207,1.046,10.4-3.686,8.379S28.02,14.081,28.391,13.524,16.544,27.976,11.366,30,4.741,24.828,7.68,21.621Z" fill="#DD1C1A"></path></g></svg>',T=d(),U=f("p"),U.innerHTML='Licensed under a Creative Commons <a href="https://creativecommons.org/licenses/by/4.0/legalcode " target="_blank" rel="noreferrer">CC BY 4.0 license.</a>',g(y,"href","https://chat.whatsapp.com/BhnmUNljUxJ2AjeHUwyTKh"),g(y,"target","_blank"),g(y,"rel","noreferrer"),h(y,"margin-left","0.5rem"),g(_,"href","https://discord.gg/xAPZmyr8B6"),g(_,"target","_blank"),g(_,"rel","noreferrer"),h(_,"margin-left","1.8rem"),g(i,"id","contact-us-container"),g(r,"id","footer-grid-content-container"),g(r,"class","logged"),g(C,"id","footer-up"),g(C,"aria-label","go up"),g(U,"id","footer-copyright"),g(o,"id","footer-content-container")},m(m,f){a(m,e,f),p(e,o),p(o,r),p(r,i),p(i,n),p(n,s),p(i,c),p(i,w),p(w,v),p(w,y),p(y,k),p(i,x),p(i,j),p(j,L),p(j,_),p(_,z),p(o,B),p(o,C),p(o,T),p(o,U),A||(H=u(C,"click",t[3]),A=!0)},p(t,e){1&e&&M!==(M=t[0].contactUs+"")&&b(s,M),1&e&&R!==(R=t[0].inviteLink+"")&&b(k,R),1&e&&D!==(D=t[0].inviteLink+"")&&b(z,D)},d(t){t&&m(e),A=!1,H()}}}function x(t){let e,o=0!=Object.keys(t[0]).length,r=o&&k(t);return{c(){r&&r.c(),e=n(),this.c=s},m(t,o){r&&r.m(t,o),a(t,e,o)},p(t,[a]){1&a&&(o=0!=Object.keys(t[0]).length),o?r?r.p(t,a):(r=k(t),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},i:s,o:s,d(t){r&&r.d(t),t&&m(e)}}}function j(t,e,o){let r,a,i=w({});c(t,i,(t=>o(0,r=t))),v(i,"footer-component",a);return[r,a,i,()=>{location.href="#"}]}class L extends e{constructor(t){super(),this.shadowRoot.innerHTML="<style>@import '/css/common.css';footer{position:relative;bottom:0;width:100%;height:auto;background:#5B6970;border-top:#cb1816 solid 0.5rem}footer p,footer a{font-family:var(--sans-serif)}#footer-content-container{position:relative;margin:auto;padding-top:2rem;max-width:116rem;width:97vw}#footer-grid-content-container{display:grid;margin-left:2rem;margin-right:2rem;margin-bottom:1rem}.logged{grid-template-columns:auto auto 2rem}footer h2{color:#ffffff;font-size:1.3rem;margin-bottom:0.5rem}#footer-copyright{position:relative;margin:auto;width:100%;bottom:0rem;height:3rem;top:0rem;margin-bottom:0;font-size:1rem;text-align:center}#footer-copyright *{font-size:1rem}footer a{font-size:1.1rem;color:#ffffff}footer p{display:block;font-size:1.1rem;color:#d8d8d8;font-family:var(--sans-serif,sans-serif);margin-bottom:0.5rem}#contact-us-container{width:16rem}#footer-up{position:absolute;width:4.8rem;height:4.8rem;border-radius:3.4rem;top:4rem;right:2rem;background:#ffffff}#footer-up svg{width:40%;height:auto}@media only screen and (max-width: 1170px){.logged{grid-template-rows:auto auto auto;grid-template-columns:auto;row-gap:2rem}#footer-copyright{height:1rem;top:-2rem}}</style>",o(this,{target:this.shadowRoot,props:r(this.attributes),customElement:!0},j,x,i,{},null),t&&t.target&&a(t.target,this,t.anchor)}}y.define("footer-component",L);export{L as default};
|