utxo22-web/_app/pages/__layout.svelte-dd439847.js

12 řádky
22 KiB
JavaScript
Surový Normální zobrazení Historie

import{S as xe,i as Ve,s as $e,k as $,l as ae,m as y,g as x,e as f,c as u,a as v,d as n,b as i,J as o,K as at,t as A,h as S,E as te,L as oe,M as le,j as it,q as U,w as Ee,x as we,y as Ie,o as K,B as De,n as ye,p as Ae,N as he,O as rt,P as ot,Q as nt,R as ct,v as ft,T as ut,U as dt}from"../chunks/index-695b5929.js";import{p as ze}from"../chunks/stores-67278648.js";import{b as Ne,u as ht,a as ke,l as vt}from"../chunks/stores-f2dd11ab.js";import{a as mt}from"../chunks/api-d836b53a.js";import{l as pt,a as _t}from"../chunks/orders-73872056.js";import"../chunks/index-57c7a2a5.js";function Xe(c,t,a){const l=c.slice();return l[3]=t[a],l}function Fe(c,t,a){const l=c.slice();return l[3]=t[a],l}function qe(c){let t,a,l=c[0]==="small"&&Be(c),e=c[0]==="normal"&&Re(c);return{c(){l&&l.c(),t=$(),e&&e.c(),a=ae()},l(r){l&&l.l(r),t=y(r),e&&e.l(r),a=ae()},m(r,s){l&&l.m(r,s),x(r,t,s),e&&e.m(r,s),x(r,a,s)},p(r,s){r[0]==="small"?l?l.p(r,s):(l=Be(r),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null),r[0]==="normal"?e?e.p(r,s):(e=Re(r),e.c(),e.m(a.parentNode,a)):e&&(e.d(1),e=null)},d(r){l&&l.d(r),r&&n(t),e&&e.d(r),r&&n(a)}}}function Be(c){let t,a=c[2],l=[];for(let e=0;e<a.length;e+=1)l[e]=Je(Fe(c,a,e));return{c(){t=f("div");for(let e=0;e<l.length;e+=1)l[e].c();this.h()},l(e){t=u(e,"DIV",{class:!0});var r=v(t);for(let s=0;s<l.length;s+=1)l[s].l(r);r.forEach(n),this.h()},h(){i(t,"class","flex block space-x-2 m-auto w-full justify-end")},m(e,r){x(e,t,r);for(let s=0;s<l.length;s+=1)l[s].m(t,null)},p(e,r){if(r&6){a=e[2];let s;for(s=0;s<a.length;s+=1){const d=Fe(e,a,s);l[s]?l[s].p(d,r):(l[s]=Je(d),l[s].c(),l[s].m(t,null))}for(;s<l.length;s+=1)l[s].d(1);l.length=a.length}},d(e){e&&n(t),at(l,e)}}}function Je(c){let t,a,l,e;return{c(){t=f("a"),a=f("i"),l=$(),this.h()},l(r){t=u(r,"A",{href:!0,class:!0,target:!0});var s=v(t);a=u(s,"I",{class:!0}),v(a).forEach(n),l=y(s),s.forEach(n),this.h()},h(){i(a,"class",c[3].ico),i(t,"href",e=c[1].links[c[3].link]),i(t,"class","w-6 h-6 bg-white rounded-full hover:bg-utxo-gradient hover:text-white"),i(t,"target","_blank")},m(r,s){x(r,t,s),o(t,a),o(t,l)},p(r,s){s&2&&e!==(e=r[1].links[r[3].link])&&i(t,"href",e)},d(r){r&&n(t)}}}function Re(c){let t,a,l=c[2],e=[];for(let r=0;r<l.length;r+=1)e[r]=Ce(Xe(c,l,r));return{c(){t=f("div"),a=f("div");for(let r=0;r<e.length;r+=1)e[r].c();this.h()},l(r){t=u(r,"DIV",{class:!0});var s=v(t);a=u(s,"DIV",{class:!0});var d=v(a);for(let h=0;h<e.length;h+=1)e[h].l(d);d.forEach(n),s.forEach(n),this.h()},h(){i(a,"class","sm:flex flex-wrap gap-3 justify-end"),i(t,"class","w-auto")},m(r,s){x(r,t,s),o(t,a);for(let d=0;d<e.length;d+=1)e[d].m(a,null)},p(r,s){if(s&6){l=r[2];let d;for(d=0;d<l.length;d+=1){const h=Xe(r,l,d);e[d]?e[d].p(h,s):(e[d]=Ce(h),e[d].c(),e[d].m(a,null))}for(;d<e.length;d+=1)e[d].d(1);e.length=l.length}},d(r){r&&n(t),at(e,r)}}}function Ce(c){let t,a,l,e=c[3].name+"",r,s,d;return{c(){t=f("div"),a=f("a"),l=f("i"),r=A(e),d=$(),this.h()},l(h){t=u(h,"DIV",{class:!0});var _=v(t);a=u(_,"A",{href:!0,class:!0,target:!0});var g=v(a);l=u(g,"I",{class:!0}),v(l).forEach(n),r=S(g,e),g.forEach(n),d=y(_),_.forEach(n),this.h()},h(){i(l,"class",c[3].ico+" mr-2 my-auto"),i(a,"href",s=c[1].links[c[3].link]),i(a,"class","block flex"),i(a,"target","_blank"),i(t,"class","mr-4 sm:mr-0 inline-block sm:block hover:text-red-500")},m(h,_){x(h,t,_),o(t,a),o(a,l),o(a,r),o(t,d)},p(h,_){_&2&&s!==(s=h[1].links[h[3].link])&&i(a,"href",s)},d(h){h&&n(t)}}}function bt(c){let t,a=c[1]&&qe(c);return{c(){a&&a.c(),t=ae()},l(l){a&&a.l(l),t=ae()},m(l,e){a&&a.m(l,e),x(l,t,e)},p(l,[e]){l[1]?a?a.p(l,e):(a=qe(l),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i:te,o:te,d(l){a&&a.d(l),l&&n(t)}}}function gt(c,t,a){let l;oe(c,Ne,s=>a(1,l=s));let{size:e="small"}=t;const r=[{link:"twitter",ico:"fa-brands fa-twitter",name:"Twitter"},{link:"instagram",ico:"fab fa-instagram",name:"Instagram"},{link:"fbevent",ico:"fab fa-facebook",name:"Facebook"},{link:"substack",ico:"fa-solid fa-envelope",name:"Newsletter"},{link:"discord",ico:"fab fa-discord",name:"Discord"},{link:"telegram",ico:"fab fa-telegram",name:"Telegram"}];return c.$$set=s=>{"si
`),b=f("a"),I=A("UTXO Foundation, z.s."),F=$(),P=f("div"),q=f("a"),L=f("span"),B=A("v"),re=A(et),se=A(`
| powered by
`),H=f("a"),M=f("img"),ce=A(" Svelte"),fe=A(`
| grafick\xFD n\xE1vrh
`),Q=f("a"),W=f("img"),this.h()},l(J){t=u(J,"DIV",{class:!0});var Y=v(t);a=u(Y,"DIV",{class:!0});var ne=v(a);l=u(ne,"DIV",{class:!0});var Z=v(l);e=u(Z,"DIV",{});var pe=v(e);r=u(pe,"A",{href:!0});var ue=v(r);s=u(ue,"IMG",{src:!0,alt:!0,class:!0}),ue.forEach(n),pe.forEach(n),h=y(Z),_=u(Z,"DIV",{class:!0});var _e=v(_);g=S(_e,"4.-5. \u010Derven 2022 @ Gabriel Loci, Praha"),_e.forEach(n),p=y(Z),m=u(Z,"DIV",{class:!0});var Pe=v(m);k=S(Pe,"Otev\u0159en\xE1 komunitn\xED kryptom\u011Bnov\xE1 konference"),Pe.forEach(n),N=y(Z),G=u(Z,"DIV",{class:!0});var Te=v(G);V=u(Te,"A",{href:!0,class:!0,target:!0});var Se=v(V);R=u(Se,"I",{class:!0}),v(R).forEach(n),ee=S(Se,"\xA0 Dokumentace"),Se.forEach(n),Te.forEach(n),Z.forEach(n),j=y(ne),C=u(ne,"DIV",{class:!0});var Le=v(C);we(X.$$.fragment,Le),Le.forEach(n),ne.forEach(n),z=y(Y),D=u(Y,"DIV",{class:!0});var be=v(D);w=u(be,"DIV",{class:!0});var ge=v(w);E=u(ge,"I",{class:!0}),v(E).forEach(n),O=S(ge,` S l\xE1skou organizuje
`),b=u(ge,"A",{href:!0,class:!0,target:!0});var Me=v(b);I=S(Me,"UTXO Foundation, z.s."),Me.forEach(n),ge.forEach(n),F=y(be),P=u(be,"DIV",{});var de=v(P);q=u(de,"A",{href:!0,target:!0});var Ge=v(q);L=u(Ge,"SPAN",{class:!0});var Oe=v(L);B=S(Oe,"v"),re=S(Oe,et),Oe.forEach(n),Ge.forEach(n),se=S(de,`
| powered by
`),H=u(de,"A",{href:!0,class:!0,target:!0});var je=v(H);M=u(je,"IMG",{src:!0,class:!0,alt:!0}),ce=S(je," Svelte"),je.forEach(n),fe=S(de,`
| grafick\xFD n\xE1vrh
`),Q=u(de,"A",{href:!0,target:!0});var Ue=v(Q);W=u(Ue,"IMG",{src:!0,class:!0,alt:!0}),Ue.forEach(n),de.forEach(n),be.forEach(n),Y.forEach(n),this.h()},h(){he(s.src,d="/img/logo-white.svg")||i(s,"src",d),i(s,"alt","UTXO.22"),i(s,"class","w-32"),i(r,"href","/"),i(_,"class","mt-4 font-semibold"),i(m,"class","mt-2 font-thin"),i(R,"class","fas fa-book"),i(V,"href",T=c[0].links.docs),i(V,"class","hover:text-red-500"),i(V,"target","_blank"),i(G,"class","mt-4"),i(l,"class","flex-1"),i(C,"class","sm:mt-0 mt-6 sm:w-1/3 mr-2"),i(a,"class","relative mx-auto px-6 pt-10 pb-2 sm:pb-6 max-w-6xl sm:flex pr-4"),i(E,"class","fas fa-heart text-red-500"),i(b,"href","https://utxo.foundation"),i(b,"class","underline hover:no-underline"),i(b,"target","_blank"),i(w,"class","flex-1 mt-2 mb-2"),i(L,"class","font-bold"),i(q,"href","https://github.com/utxo-foundation/utxo22-web"),i(q,"target","_blank"),he(M.src,ve="/img/svelte-logo.svg")||i(M,"src",ve),i(M,"class","w-5 inline"),i(M,"alt","Svelte"),i(H,"href","https://svelte.dev/"),i(H,"class","font-bold"),i(H,"target","_blank"),he(W.src,me="/img/pen-production-logo.svg")||i(W,"src",me),i(W,"class","w-28 inline-block pb-2 ml-1"),i(W,"alt","Pen&Production"),i(Q,"href","https://www.ppmedia.cz/"),i(Q,"target","_blank"),i(D,"class","relative mx-auto px-6 pt-10 pb-6 max-w-6xl text-xs opacity-50 sm:flex"),i(t,"class","bg-blue-web-bg text-white print:hidden")},m(J,Y){x(J,t,Y),o(t,a),o(a,l),o(l,e),o(e,r),o(r,s),o(l,h),o(l,_),o(_,g),o(l,p),o(l,m),o(m,k),o(l,N),o(l,G),o(G,V),o(V,R),o(V,ee),o(a,j),o(a,C),Ie(X,C,null),o(t,z),o(t,D),o(D,w),o(w,E),o(w,O),o(w,b),o(b,I),o(D,F),o(D,P),o(P,q),o(q,L),o(L,B),o(L,re),o(P,se),o(P,H),o(H,M),o(H,ce),o(P,fe),o(P,Q),o(Q,W),ie=!0},p(J,Y){(!ie||Y&1&&T!==(T=J[0].links.docs))&&i(V,"href",T)},i(J){ie||(U(X.$$.fragment,J),ie=!0)},o(J){K(X.$$.fragment,J),ie=!1},d(J){J&&n(t),De(X)}}}function yt(c){let t=c[0]&&!["/kiosk"].includes(c[1].url.pathname),a,l,e=t&&tt(c);return{c(){e&&e.c(),a=ae()},l(r){e&&e.l(r),a=ae()},m(r,s){e&&e.m(r,s),x(r,a,s),l=!0},p(r,[s]){s&3&&(t=r[0]&&!["/kiosk"].includes(r[1].url.pathname)),t?e?(e.p(r,s),s&3&&U(e,1)):(e=tt(r),e.c(),U(e,1),e.m(a.parentNode,a)):e&&(ye(),K(e,1,1,()=>{e=null}),Ae())},i(r){l||(U(e),l=!0)},o(r){K(e),l=!1},d(r){e&&e.d(r),r&&n(a)}}}function At(c,t,a){let l,e;return oe(c,Ne,r=>a(0,l=r)),oe(c,ze,r=>a(1,e=r)),[l,e]}class St extends xe{constructor(t){super();Ve(this,t,At,yt,$e,{})}}function lt(c){let t,a,l,e,r,s,d,h;l=new $t({});const _=c[2].default,g=dt(_,c,c[1],null);return d=new St({}),{c(){t=f("div"),a=f("div"),Ee(l.$$.fragment),e=$(),r=f("main"),g&&g.c(),s=$(),Ee(d.$$.fragment),this.h()},l(p){t=u(p,"DIV",{class:!0});var m=v(t);a=u(m,"DIV",{class:!0});var k=v(a);we(l.$$.fragment,k),e=y(k),r=u(k,"MAIN",{});var N=v(r);g&&g.l(N),N.forEach(n),k.forEach(n),s=y(m),we(d.$$.fragment,m),m.forEach(n),this.h()},h(){i(a,"class","inset-0 bg-white"),i(t,"class","layout min-h-screen bg-gray-900 print:bg-white")},m(p,m){x(p,t,m),o(t,a),Ie(l,a,null),o(a,e),o(a,r),g&&g.m(r,null),o(t,s),Ie(d,t,null),h=!0},p(p,m){g&&g.p&&(!h||m&2)&&ot(g,_,p,p[1],h?ct(_,p[1],m,null):nt(p[1]),null)},i(p){h||(U(l.$$.fragment,p),U(g,p),U(d.$$.fragment,p),h=!0)},o(p){K(l.$$.fragment,p),K(g,p),K(d.$$.fragment,p),h=!1},d(p){p&&n(t),De(l),g&&g.d(p),De(d)}}}function Ot(c){let t,a,l=c[0]&&lt(c);return{c(){l&&l.c(),t=ae()},l(e){l&&l.l(e),t=ae()},m(e,r){l&&l.m(e,r),x(e,t,r),a=!0},p(e,[r]){e[0]?l?(l.p(e,r),r&1&&U(l,1)):(l=lt(e),l.c(),U(l,1),l.m(t.parentNode,t)):l&&(ye(),K(l,1,1,()=>{l=null}),Ae())},i(e){a||(U(l),a=!0)},o(e){K(l),a=!1},d(e){l&&l.d(e),e&&n(t)}}}function jt(c,t,a){let l,e,r;oe(c,ze,m=>a(7,l=m)),oe(c,ke,m=>a(8,e=m)),oe(c,Ne,m=>a(0,r=m));let{$$slots:s={},$$scope:d}=t,h=null,_=0;async function g(){try{await pt(),await _t(e)}catch{return _>5?(console.log("Too much retries, shutdown.."),null):(console.log(`API cannot be accessed .. retrying [#${_}] ..`),_=_+1,setTimeout(()=>g(),250),null)}return _=0,!0}async function p(){return mt.loadBundle(l.url.hostname==="localhost"),await g(),!0}return ft(async()=>{p(),h=setInterval(()=>{p()},60*2e3);const m=localStorage.getItem("us