import{S as Te,i as Le,s as Oe,P as qe,e as E,c as I,a as D,d as u,b as g,g as b,L as Be,M as Me,N as ze,q as $,o as A,t as q,k as P,w as le,l as de,h as B,m as T,x as te,F as v,y as se,J as Ce,j as G,G as ue,B as ie,p as X,U as Fe,H as oe,n as Z}from"../chunks/index-acdcee87.js";import{p as Re}from"../chunks/stores-8e71abee.js";import{g as Xe}from"../chunks/navigation-0e6511d1.js";import{b as Ze,c as pe}from"../chunks/stores-77ce6fd0.js";import{c as Ge,E as Je,a as He,b as Ke}from"../chunks/Event-d9a33723.js";import{A as Qe}from"../chunks/Avatar-1e11dff9.js";import{S as We,L as Ye}from"../chunks/Link-3573ed9f.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-f786a58f.js";function ye(a){let t,i;const r=a[1].default,e=qe(r,a,a[0],null);return{c(){t=E("p"),e&&e.c(),this.h()},l(s){t=I(s,"P",{class:!0});var l=D(t);e&&e.l(l),l.forEach(u),this.h()},h(){g(t,"class","mb-2")},m(s,l){b(s,t,l),e&&e.m(t,null),i=!0},p(s,[l]){e&&e.p&&(!i||l&1)&&Be(e,r,s,s[0],i?ze(r,s[0],l,null):Me(s[0]),null)},i(s){i||($(e,s),i=!0)},o(s){A(e,s),i=!1},d(s){s&&u(t),e&&e.d(s)}}}function xe(a,t,i){let{$$slots:r={},$$scope:e}=t;return a.$$set=s=>{"$$scope"in s&&i(0,e=s.$$scope)},[e,r]}class el extends Te{constructor(t){super();Le(this,t,xe,ye,Oe,{})}}function ve(a,t,i){const r=a.slice();return r[13]=t[i],r}function ke(a,t,i){const r=a.slice();return r[16]=t[i],r}function be(a,t,i){const r=a.slice();return r[19]=t[i],r}function ge(a){let t,i,r,e,s,l,f,o,k,N,h,w,c,_,m,p,z,C=a[4].favoriteEvents.includes(a[0].id),J,R,ee=a[0].name+"",re,ae,K,Q,W,Y,y,ne,ce;o=new Je({props:{event:a[0],size:"big"}});let L=a[3]&&$e(a),O=a[0].track&&Ee(a),H=a[0].tags&&Ie(a),M=C&&we(),V=a[0].speakers&&a[0].speakers.length>0&&Ve(a),S=a[0].description&&je(a),U=a[0].parent&&Ae(a),j=a[2].length&&Ne(a);return{c(){t=E("div"),i=E("a"),r=E("i"),e=q("\xA0Zp\u011Bt"),s=P(),l=E("div"),f=E("div"),le(o.$$.fragment),k=P(),L&&L.c(),N=P(),O&&O.c(),h=P(),H&&H.c(),w=P(),c=E("div"),_=E("div"),m=E("i"),z=P(),M&&M.c(),J=P(),R=E("h1"),re=q(ee),ae=P(),V&&V.c(),K=P(),S&&S.c(),Q=P(),U&&U.c(),W=P(),j&&j.c(),Y=de(),this.h()},l(n){t=I(n,"DIV",{class:!0});var d=D(t);i=I(d,"A",{href:!0});var x=D(i);r=I(x,"I",{class:!0}),D(r).forEach(u),e=B(x,"\xA0Zp\u011Bt"),x.forEach(u),d.forEach(u),s=T(n),l=I(n,"DIV",{class:!0});var F=D(l);f=I(F,"DIV",{});var _e=D(f);te(o.$$.fragment,_e),_e.forEach(u),k=T(F),L&&L.l(F),N=T(F),O&&O.l(F),h=T(F),H&&H.l(F),F.forEach(u),w=T(n),c=I(n,"DIV",{class:!0});var me=D(c);_=I(me,"DIV",{class:!0});var fe=D(_);m=I(fe,"I",{class:!0}),D(m).forEach(u),z=T(fe),M&&M.l(fe),fe.forEach(u),me.forEach(u),J=T(n),R=I(n,"H1",{class:!0});var he=D(R);re=B(he,ee),he.forEach(u),ae=T(n),V&&V.l(n),K=T(n),S&&S.l(n),Q=T(n),U&&U.l(n),W=T(n),j&&j.l(n),Y=de(),this.h()},h(){g(r,"class","fa-solid fa-arrow-left"),g(i,"href","javascript:history.back()"),g(t,"class","mb-6 uppercase text-gray-500"),g(l,"class","mb-6 flex flex-wrap gap-4"),g(m,"class",p="fa-star "+(a[4].favoriteEvents.includes(a[0].id)?"fa-solid":"fa-regular")),g(_,"class","cursor-pointer"),g(c,"class","float-right"),g(R,"class","text-2xl font-bold")},m(n,d){b(n,t,d),v(t,i),v(i,r),v(i,e),b(n,s,d),b(n,l,d),v(l,f),se(o,f,null),v(l,k),L&&L.m(l,null),v(l,N),O&&O.m(l,null),v(l,h),H&&H.m(l,null),b(n,w,d),b(n,c,d),v(c,_),v(_,m),v(_,z),M&&M.m(_,null),b(n,J,d),b(n,R,d),v(R,re),b(n,ae,d),V&&V.m(n,d),b(n,K,d),S&&S.m(n,d),b(n,Q,d),U&&U.m(n,d),b(n,W,d),j&&j.m(n,d),b(n,Y,d),y=!0,ne||(ce=Ce(_,"click",a[10]),ne=!0)},p(n,d){const x={};d&1&&(x.event=n[0]),o.$set(x),n[3]?L?L.p(n,d):(L=$e(n),L.c(),L.m(l,N)):L&&(L.d(1),L=null),n[0].track?O?O.p(n,d):(O=Ee(n),O.c(),O.m(l,h)):O&&(O.d(1),O=null),n[0].tags?H?H.p(n,d):(H=Ie(n),H.c(),H.m(l,null)):H&&(H.d(1),H=null),(!y||d&17&&p!==(p="fa-star "+(n[4].favoriteEvents.includes(n[0].id)?"fa-solid":"fa-regular")))&&g(m,"class",p),d&17&&(C=n[4].favoriteEvents.includes(n[0].id)),C?M||(M=we(),M.c(),M.m(_,null)):M&&(M.d(1),M=null),(!y||d&1)&&ee!==(ee=n[0].name+"")&&G(re,ee),n[0].speakers&&n[0].speakers.length>0?V?(V.p(n,d),d&1&&$(V,1)):(V=Ve(n),V.c(),$(V,1),V.m(K.parentNode,K)):V&&(Z(),A(V,1,1,()=>{V=null}),X()),n[0].description?S?(S.p(n,d),d&1&&$(S,1)):(S=je(n),S.c(),$(S,1),S.m(Q.parentNode,Q)):S&&(Z(),A(S,1,1,()=>{S=null}),X()),n[0].parent?U?(U.p(n,d),d&1&&$(U,1)):(U=Ae(n),U.c(),$(U,1),U.m(W.parentNode,W)):U&&(Z(),A(U,1,1,()=>{U=null}),X()),n[2].length?j?(j.p(n,d),d&4&&$(j,1)):(j=Ne(n),j.c(),$(j,1),j.m(Y.parentNode,Y)):j&&(Z(),A(j,1,1,()=>{j=null}),X())},i(n){y||($(o.$$.fragment,n),$(V),$(S),$(U),$(j),y=!0)},o(n){A(o.$$.fragment,n),A(V),A(S),A(U),A(j),y=!1},d(n){n&&u(t),n&&u(s),n&&u(l),ie(o),L&&L.d(),O&&O.d(),H&&H.d(),n&&u(w),n&&u(c),M&&M.d(),n&&u(J),n&&u(R),n&&u(ae),V&&V.d(n),n&&u(K),S&&S.d(n),n&&u(Q),U&&U.d(n),n&&u(W),j&&j.d(n),n&&u(Y),ne=!1,ce()}}}function $e(a){let t,i,r;return{c(){t=E("div"),i=q(a[3]),r=q("m"),this.h()},l(e){t=I(e,"DIV",{class:!0});var s=D(t);i=B(s,a[3]),r=B(s,"m"),s.forEach(u),this.h()},h(){g(t,"class","text-sm my-auto")},m(e,s){b(e,t,s),v(t,i),v(t,r)},p(e,s){s&8&&G(i,e[3])},d(e){e&&u(t)}}}function Ee(a){let t,i,r=a[7](a[0].track)+"",e,s;return{c(){t=E("div"),i=E("a"),e=q(r),this.h()},l(l){t=I(l,"DIV",{class:!0});var f=D(t);i=I(f,"A",{href:!0});var o=D(i);e=B(o,r),o.forEach(u),f.forEach(u),this.h()},h(){g(i,"href",s="/program?track="+a[0].track),g(t,"class","text-md my-auto")},m(l,f){b(l,t,f),v(t,i),v(i,e)},p(l,f){f&1&&r!==(r=l[7](l[0].track)+"")&&G(e,r),f&1&&s!==(s="/program?track="+l[0].track)&&g(i,"href",s)},d(l){l&&u(t)}}}function Ie(a){let t,i=a[0].tags,r=[];for(let e=0;eA(e[l],1,1,()=>{e[l]=null});return{c(){t=E("div");for(let l=0;lA(h[c],1,1,()=>{h[c]=null});return{c(){t=E("div"),i=E("h2"),r=q("Obsahuje ud\xE1losti ("),s=q(e),l=q(")"),f=P(),o=E("div");for(let c=0;c{s=null}),X())},i(l){e||($(s),e=!0)},o(l){A(s),e=!1},d(l){l&&u(i),l&&u(r),s&&s.d()}}}const _l=!0;function tl(a,t,i){let r,e,s,l,f,o,k;oe(a,Ze,p=>i(1,f=p)),oe(a,Re,p=>i(9,o=p)),oe(a,pe,p=>i(4,k=p));const N={link:Ye,paragraph:el};function h(p){const C=new URLSearchParams(p).get("id");return f.spec.events.find(J=>J.id===C)||Xe("/"),C}function w(p){if(!!p)return p.map(z=>f.spec.speakers.find(C=>C.id===z))}function c(p){const z=f.spec.tracks.find(C=>C.id===p);return z.shortname||z.name}const _=()=>Ke(e.id,pe),m=p=>p.id===e.parent;return a.$$.update=()=>{a.$$.dirty&512&&i(8,r=h(o.url.search)),a.$$.dirty&258&&i(0,e=f?f.spec.events.find(p=>p.id===r):null),a.$$.dirty&3&&i(3,s=e?Ge(e,f):null),a.$$.dirty&3&&i(2,l=f.spec.events.filter(p=>p.parent===e.id))},[e,f,l,s,k,N,w,c,r,o,_,m]}class ml extends Te{constructor(t){super();Le(this,t,tl,ll,Oe,{})}}export{ml as default,_l as prerender};