utxo22-web/_app/pages/__layout.svelte-76597a7c.js

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

import{S as xe,i as Ve,s as ye,k as y,l as le,m as $,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 ie,M as oe,j as it,q as U,w as Ee,x as we,y as Ie,o as Z,B as De,n as $e,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 je}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-715af8fb.js";import{l as pt,a as _t}from"../chunks/orders-58039286.js";import"../chunks/index-57c7a2a5.js";function Fe(c,t,a){const l=c.slice();return l[3]=t[a],l}function Xe(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=y(),e&&e.c(),a=le()},l(r){l&&l.l(r),t=$(r),e&&e.l(r),a=le()},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(Xe(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=Xe(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=y(),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=$(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(Fe(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=Fe(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=y(),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=$(_),_.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=le()},l(l){a&&a.l(l),t=le()},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;ie(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."),X=y(),T=f("div"),q=f("a"),L=f("span"),B=A("v"),ae=A(et),re=A(`
| powered by
`),H=f("a"),G=f("img"),ce=A(" Svelte"),fe=A(`
| grafick\xFD n\xE1vrh
`),K=f("a"),Q=f("img"),this.h()},l(J){t=u(J,"DIV",{class:!0});var W=v(t);a=u(W,"DIV",{class:!0});var ne=v(a);l=u(ne,"DIV",{class:!0});var Y=v(l);e=u(Y,"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),_=u(Y,"DIV",{class:!0});var _e=v(_);g=S(_e,"4.-5. \u010Derven 2022 @ Gabriel Loci, Praha"),_e.forEach(n),p=$(Y),m=u(Y,"DIV",{class:!0});var Te=v(m);k=S(Te,"Otev\u0159en\xE1 komunitn\xED kryptom\u011Bnov\xE1 konference"),Te.forEach(n),N=$(Y),M=u(Y,"DIV",{class:!0});var Pe=v(M);V=u(Pe,"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),Pe.forEach(n),Y.forEach(n),O=$(ne),C=u(ne,"DIV",{class:!0});var Le=v(C);we(F.$$.fragment,Le),Le.forEach(n),ne.forEach(n),j=$(W),D=u(W,"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),z=S(ge,` S l\xE1skou organizuje
`),b=u(ge,"A",{href:!0,class:!0,target:!0});var Ge=v(b);I=S(Ge,"UTXO Foundation, z.s."),Ge.forEach(n),ge.forEach(n),X=$(be),T=u(be,"DIV",{});var de=v(T);q=u(de,"A",{href:!0,target:!0});var Me=v(q);L=u(Me,"SPAN",{class:!0});var ze=v(L);B=S(ze,"v"),ae=S(ze,et),ze.forEach(n),Me.forEach(n),re=S(de,`
| powered by
`),H=u(de,"A",{href:!0,class:!0,target:!0});var Oe=v(H);G=u(Oe,"IMG",{src:!0,class:!0,alt:!0}),ce=S(Oe," Svelte"),Oe.forEach(n),fe=S(de,`
| grafick\xFD n\xE1vrh
`),K=u(de,"A",{href:!0,target:!0});var Ue=v(K);Q=u(Ue,"IMG",{src:!0,class:!0,alt:!0}),Ue.forEach(n),de.forEach(n),be.forEach(n),W.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",P=c[0].links.docs),i(V,"class","hover:text-red-500"),i(V,"target","_blank"),i(M,"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(G.src,ve="/img/svelte-logo.svg")||i(G,"src",ve),i(G,"class","w-5 inline"),i(G,"alt","Svelte"),i(H,"href","https://svelte.dev/"),i(H,"class","font-bold"),i(H,"target","_blank"),he(Q.src,me="/img/pen-production-logo.svg")||i(Q,"src",me),i(Q,"class","w-28 inline-block pb-2 ml-1"),i(Q,"alt","Pen&Production"),i(K,"href","https://www.ppmedia.cz/"),i(K,"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,W){x(J,t,W),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,M),o(M,V),o(V,R),o(V,ee),o(a,O),o(a,C),Ie(F,C,null),o(t,j),o(t,D),o(D,w),o(w,E),o(w,z),o(w,b),o(b,I),o(D,X),o(D,T),o(T,q),o(q,L),o(L,B),o(L,ae),o(T,re),o(T,H),o(H,G),o(H,ce),o(T,fe),o(T,K),o(K,Q),se=!0},p(J,W){(!se||W&1&&P!==(P=J[0].links.docs))&&i(V,"href",P)},i(J){se||(U(F.$$.fragment,J),se=!0)},o(J){Z(F.$$.fragment,J),se=!1},d(J){J&&n(t),De(F)}}}function $t(c){let t=c[0]&&!["/kiosk","/tv-screen"].includes(c[1].url.pathname),a,l,e=t&&tt(c);return{c(){e&&e.c(),a=le()},l(r){e&&e.l(r),a=le()},m(r,s){e&&e.m(r,s),x(r,a,s),l=!0},p(r,[s]){s&3&&(t=r[0]&&!["/kiosk","/tv-screen"].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&&($e(),Z(e,1,1,()=>{e=null}),Ae())},i(r){l||(U(e),l=!0)},o(r){Z(e),l=!1},d(r){e&&e.d(r),r&&n(a)}}}function At(c,t,a){let l,e;return ie(c,Ne,r=>a(0,l=r)),ie(c,je,r=>a(1,e=r)),[l,e]}class St extends xe{constructor(t){super();Ve(this,t,At,$t,ye,{})}}function lt(c){let t,a,l,e,r,s,d,h;l=new yt({});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=y(),r=f("main"),g&&g.c(),s=y(),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=$(k),r=u(k,"MAIN",{});var N=v(r);g&&g.l(N),N.forEach(n),k.forEach(n),s=$(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){Z(l.$$.fragment,p),Z(g,p),Z(d.$$.fragment,p),h=!1},d(p){p&&n(t),De(l),g&&g.d(p),De(d)}}}function zt(c){let t,a,l=c[0]&&lt(c);return{c(){l&&l.c(),t=le()},l(e){l&&l.l(e),t=le()},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&&($e(),Z(l,1,1,()=>{l=null}),Ae())},i(e){a||(U(l),a=!0)},o(e){Z(l),a=!1},d(e){l&&l.d(e),e&&n(t)}}}function Ot(c,t,a){let l,e,r;ie(c,je,m=>a(7,l=m)),ie(c,ke,m=>a(8,e=m)),ie(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