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