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