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