utxo22-web/_app/pages/udalosti.svelte-f4e3c3d7.js

2 řádky
7.6 KiB
JavaScript

import{S as de,i as ve,s as ke,e as D,t as L,k as y,w as Q,l as ae,c as V,a as S,d as h,h as T,m as A,x as W,b as U,g as I,F as k,y as Y,j as F,q as v,o as O,B as x,p as M,G as _e,R as be,H as ie,n as X}from"../chunks/index-e45cd9d1.js";import{p as ge}from"../chunks/stores-f185dc56.js";import{g as $e}from"../chunks/navigation-0e6511d1.js";import{b as Ee}from"../chunks/stores-adaa4006.js";import{c as we,E as Ie,a as De}from"../chunks/Event-ea7c2ae0.js";import{A as Ve,S as Se,L as Ue}from"../chunks/Avatar-f71fd69a.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-c650cd5f.js";function ne(f,t,a){const l=f.slice();return l[10]=t[a],l}function fe(f,t,a){const l=f.slice();return l[13]=t[a],l}function oe(f){let t,a,l,s,o,e,u,n,w,d,c=f[6](f[0].track)+"",b,i,p,m,j,q,H,Z=f[0].name+"",G,J,P,B,K,R,N;n=new Ie({props:{event:f[0],size:"big"}});let g=f[0].speakers&&f[0].speakers.length>0&&ue(f),$=f[0].description&&me(f),E=f[2].length&&pe(f);return{c(){t=D("div"),a=D("a"),l=D("i"),s=L("\xA0Zp\u011Bt"),o=y(),e=D("div"),u=D("div"),Q(n.$$.fragment),w=y(),d=D("div"),b=L(c),i=y(),p=D("div"),m=L(f[3]),j=L("m"),q=y(),H=D("h1"),G=L(Z),J=y(),g&&g.c(),P=y(),B=D("div"),$&&$.c(),K=y(),E&&E.c(),R=ae(),this.h()},l(r){t=V(r,"DIV",{class:!0});var _=S(t);a=V(_,"A",{href:!0});var z=S(a);l=V(z,"I",{class:!0}),S(l).forEach(h),s=T(z,"\xA0Zp\u011Bt"),z.forEach(h),_.forEach(h),o=A(r),e=V(r,"DIV",{class:!0});var C=S(e);u=V(C,"DIV",{});var te=S(u);W(n.$$.fragment,te),te.forEach(h),w=A(C),d=V(C,"DIV",{class:!0});var le=S(d);b=T(le,c),le.forEach(h),i=A(C),p=V(C,"DIV",{class:!0});var ee=S(p);m=T(ee,f[3]),j=T(ee,"m"),ee.forEach(h),C.forEach(h),q=A(r),H=V(r,"H1",{class:!0});var se=S(H);G=T(se,Z),se.forEach(h),J=A(r),g&&g.l(r),P=A(r),B=V(r,"DIV",{class:!0});var re=S(B);$&&$.l(re),re.forEach(h),K=A(r),E&&E.l(r),R=ae(),this.h()},h(){U(l,"class","fa-solid fa-arrow-left"),U(a,"href","javascript:history.back()"),U(t,"class","mb-6 uppercase text-gray-500"),U(d,"class","text-md my-auto"),U(p,"class","text-sm my-auto"),U(e,"class","mb-6 flex flex-wrap gap-4"),U(H,"class","text-2xl font-bold"),U(B,"class","mt-8")},m(r,_){I(r,t,_),k(t,a),k(a,l),k(a,s),I(r,o,_),I(r,e,_),k(e,u),Y(n,u,null),k(e,w),k(e,d),k(d,b),k(e,i),k(e,p),k(p,m),k(p,j),I(r,q,_),I(r,H,_),k(H,G),I(r,J,_),g&&g.m(r,_),I(r,P,_),I(r,B,_),$&&$.m(B,null),I(r,K,_),E&&E.m(r,_),I(r,R,_),N=!0},p(r,_){const z={};_&1&&(z.event=r[0]),n.$set(z),(!N||_&1)&&c!==(c=r[6](r[0].track)+"")&&F(b,c),(!N||_&8)&&F(m,r[3]),(!N||_&1)&&Z!==(Z=r[0].name+"")&&F(G,Z),r[0].speakers&&r[0].speakers.length>0?g?(g.p(r,_),_&1&&v(g,1)):(g=ue(r),g.c(),v(g,1),g.m(P.parentNode,P)):g&&(X(),O(g,1,1,()=>{g=null}),M()),r[0].description?$?($.p(r,_),_&1&&v($,1)):($=me(r),$.c(),v($,1),$.m(B,null)):$&&(X(),O($,1,1,()=>{$=null}),M()),r[2].length?E?(E.p(r,_),_&4&&v(E,1)):(E=pe(r),E.c(),v(E,1),E.m(R.parentNode,R)):E&&(X(),O(E,1,1,()=>{E=null}),M())},i(r){N||(v(n.$$.fragment,r),v(g),v($),v(E),N=!0)},o(r){O(n.$$.fragment,r),O(g),O($),O(E),N=!1},d(r){r&&h(t),r&&h(o),r&&h(e),x(n),r&&h(q),r&&h(H),r&&h(J),g&&g.d(r),r&&h(P),r&&h(B),$&&$.d(),r&&h(K),E&&E.d(r),r&&h(R)}}}function ue(f){let t,a,l=f[5](f[0].speakers),s=[];for(let e=0;e<l.length;e+=1)s[e]=ce(fe(f,l,e));const o=e=>O(s[e],1,1,()=>{s[e]=null});return{c(){t=D("div");for(let e=0;e<s.length;e+=1)s[e].c();this.h()},l(e){t=V(e,"DIV",{class:!0});var u=S(t);for(let n=0;n<s.length;n+=1)s[n].l(u);u.forEach(h),this.h()},h(){U(t,"class","mt-4 mb-2 flex flex-wrap gap-4")},m(e,u){I(e,t,u);for(let n=0;n<s.length;n+=1)s[n].m(t,null);a=!0},p(e,u){if(u&33){l=e[5](e[0].speakers);let n;for(n=0;n<l.length;n+=1){const w=fe(e,l,n);s[n]?(s[n].p(w,u),v(s[n],1)):(s[n]=ce(w),s[n].c(),v(s[n],1),s[n].m(t,null))}for(X(),n=l.length;n<s.length;n+=1)o(n);M()}},i(e){if(!a){for(let u=0;u<l.length;u+=1)v(s[u]);a=!0}},o(e){s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)O(s[u]);a=!1},d(e){e&&h(t),_e(s,e)}}}function ce(f){let t,a,l,s,o,e=f[13].name+"",u,n,w,d;return a=new Ve({props:{speaker:f[13],size:"semi-small"}}),{c(){t=D("div"),Q(a.$$.fragment),l=y(),s=D("div"),o=D("a"),u=L(e),w=y(),this.h()},l(c){t=V(c,"DIV",{class:!0});var b=S(t);W(a.$$.fragment,b),l=A(b),s=V(b,"DIV",{class:!0});var i=S(s);o=V(i,"A",{href:!0,class:!0});var p=S(o);u=T(p,e),p.forEach(h),i.forEach(h),w=A(b),b.forEach(h),this.h()},h(){U(o,"href",n="/lide?id="+f[13].id),U(o,"class","text-xl"),U(s,"class","m-auto"),U(t,"class","flex gap-2")},m(c,b){I(c,t,b),Y(a,t,null),k(t,l),k(t,s),k(s,o),k(o,u),k(t,w),d=!0},p(c,b){const i={};b&1&&(i.speaker=c[13]),a.$set(i),(!d||b&1)&&e!==(e=c[13].name+"")&&F(u,e),(!d||b&1&&n!==(n="/lide?id="+c[13].id))&&U(o,"href",n)},i(c){d||(v(a.$$.fragment,c),d=!0)},o(c){O(a.$$.fragment,c),d=!1},d(c){c&&h(t),x(a)}}}function me(f){let t,a;return t=new Se({props:{source:f[0].description,renderers:f[4]}}),{c(){Q(t.$$.fragment)},l(l){W(t.$$.fragment,l)},m(l,s){Y(t,l,s),a=!0},p(l,s){const o={};s&1&&(o.source=l[0].description),t.$set(o)},i(l){a||(v(t.$$.fragment,l),a=!0)},o(l){O(t.$$.fragment,l),a=!1},d(l){x(t,l)}}}function pe(f){let t,a,l,s=f[2].length+"",o,e,u,n,w,d=f[2],c=[];for(let i=0;i<d.length;i+=1)c[i]=he(ne(f,d,i));const b=i=>O(c[i],1,1,()=>{c[i]=null});return{c(){t=D("div"),a=D("h2"),l=L("Obsahuje ud\xE1losti ("),o=L(s),e=L(")"),u=y(),n=D("div");for(let i=0;i<c.length;i+=1)c[i].c();this.h()},l(i){t=V(i,"DIV",{});var p=S(t);a=V(p,"H2",{class:!0});var m=S(a);l=T(m,"Obsahuje ud\xE1losti ("),o=T(m,s),e=T(m,")"),m.forEach(h),p.forEach(h),u=A(i),n=V(i,"DIV",{});var j=S(n);for(let q=0;q<c.length;q+=1)c[q].l(j);j.forEach(h),this.h()},h(){U(a,"class","text uppercase mb-4")},m(i,p){I(i,t,p),k(t,a),k(a,l),k(a,o),k(a,e),I(i,u,p),I(i,n,p);for(let m=0;m<c.length;m+=1)c[m].m(n,null);w=!0},p(i,p){if((!w||p&4)&&s!==(s=i[2].length+"")&&F(o,s),p&4){d=i[2];let m;for(m=0;m<d.length;m+=1){const j=ne(i,d,m);c[m]?(c[m].p(j,p),v(c[m],1)):(c[m]=he(j),c[m].c(),v(c[m],1),c[m].m(n,null))}for(X(),m=d.length;m<c.length;m+=1)b(m);M()}},i(i){if(!w){for(let p=0;p<d.length;p+=1)v(c[p]);w=!0}},o(i){c=c.filter(Boolean);for(let p=0;p<c.length;p+=1)O(c[p]);w=!1},d(i){i&&h(t),i&&h(u),i&&h(n),_e(c,i)}}}function he(f){let t,a;return t=new De({props:{event:f[10]}}),{c(){Q(t.$$.fragment)},l(l){W(t.$$.fragment,l)},m(l,s){Y(t,l,s),a=!0},p(l,s){const o={};s&4&&(o.event=l[10]),t.$set(o)},i(l){a||(v(t.$$.fragment,l),a=!0)},o(l){O(t.$$.fragment,l),a=!1},d(l){x(t,l)}}}function Oe(f){let t,a,l,s;document.title=t=(f[0]?f[0].name:"")+" | Ud\xE1losti | "+(f[1]?f[1].name:"UTXO.22");let o=f[1]&&f[0]&&oe(f);return{c(){a=y(),l=D("section"),o&&o.c(),this.h()},l(e){be('[data-svelte="svelte-v4msem"]',document.head).forEach(h),a=A(e),l=V(e,"SECTION",{class:!0});var n=S(l);o&&o.l(n),n.forEach(h),this.h()},h(){U(l,"class","relative mx-auto py-6 sm:py-10 px-6 max-w-6xl text-blue-web")},m(e,u){I(e,a,u),I(e,l,u),o&&o.m(l,null),s=!0},p(e,[u]){(!s||u&3)&&t!==(t=(e[0]?e[0].name:"")+" | Ud\xE1losti | "+(e[1]?e[1].name:"UTXO.22"))&&(document.title=t),e[1]&&e[0]?o?(o.p(e,u),u&3&&v(o,1)):(o=oe(e),o.c(),v(o,1),o.m(l,null)):o&&(X(),O(o,1,1,()=>{o=null}),M())},i(e){s||(v(o),s=!0)},o(e){O(o),s=!1},d(e){e&&h(a),e&&h(l),o&&o.d()}}}const Pe=!0;function je(f,t,a){let l,s,o,e,u,n;ie(f,Ee,i=>a(1,u=i)),ie(f,ge,i=>a(8,n=i));const w={link:Ue};function d(i){const m=new URLSearchParams(i).get("id");return u.spec.events.find(j=>j.id===m)||$e("/"),m}function c(i){if(!!i)return i.map(p=>u.spec.speakers.find(m=>m.id===p))}function b(i){const p=u.spec.tracks.find(m=>m.id===i);return p.shortname||p.name}return f.$$.update=()=>{f.$$.dirty&256&&a(7,l=d(n.url.search)),f.$$.dirty&130&&a(0,s=u?u.spec.events.find(i=>i.id===l):null),f.$$.dirty&3&&a(3,o=s?we(s,u):null),f.$$.dirty&3&&a(2,e=u.spec.events.filter(i=>i.parent===s.id))},[s,u,e,o,w,c,b,l,n]}class Re extends de{constructor(t){super();ve(this,t,je,Oe,ke,{})}}export{Re as default,Pe as prerender};