import{S as De,i as Ie,s as Ve,e as k,k as S,t as O,c as E,a as $,d as p,m as j,h as T,b as g,g as z,F as v,E as L,w as le,x as ae,y as se,K as ye,j as G,q as I,o as P,B as re,p as q,G as W,Q as Pe,H as fe,n as C,l as ue}from"../chunks/index-24e5a832.js";import{u as te,b as Se}from"../chunks/stores-13cf7036.js";import{A as we}from"../chunks/Avatar-d8aeac0d.js";import"../chunks/index-3c937d7d.js";function je(i){let e,r,n,t,f=i[0].title+"",s;return{c(){e=k("div"),r=k("div"),n=S(),t=k("div"),s=O(f),this.h()},l(a){e=E(a,"DIV",{class:!0});var l=$(e);r=E(l,"DIV",{class:!0}),$(r).forEach(p),n=j(l),t=E(l,"DIV",{class:!0});var o=$(t);s=T(o,f),o.forEach(p),l.forEach(p),this.h()},h(){g(r,"class","w-1 rounded-l-sm "+i[0].style),g(t,"class","px-1.5 py-0.5 rounded-r-sm bg-gray-100 uppercase"),g(e,"class","text-xs flex h-5")},m(a,l){z(a,e,l),v(e,r),v(e,n),v(e,t),v(t,s)},p:L,i:L,o:L,d(a){a&&p(e)}}}function Ae(i,e,r){let{event:n={}}=e;const f={panel:{title:"Panelov\xE1 debata",style:"bg-custom-red text-white"},talk:{title:"P\u0159edn\xE1\u0161ka",style:"bg-custom-green text-white"},workshop:{title:"Workshop",style:"bg-custom-blue text-white"},other:{title:"Ostatn\xED",style:"bg-custom-yellow"}}[n.type];return i.$$set=s=>{"event"in s&&r(1,n=s.event)},[f,n]}class Be extends De{constructor(e){super();Ie(this,e,Ae,je,Ve,{event:1})}}function de(i,e,r){const n=i.slice();return n[7]=e[r],n}function he(i,e,r){const n=i.slice();return n[10]=e[r],n}function ve(i,e,r){const n=i.slice();return n[13]=e[r],n}function _e(i,e,r){const n=i.slice();return n[13]=e[r],n}function pe(i){let e,r,n=i[2](i[7].speakers),t=[];for(let s=0;sP(t[s],1,1,()=>{t[s]=null});return{c(){e=k("div");for(let s=0;sP(f[a],1,1,()=>{f[a]=null});return{c(){e=k("div"),r=k("div");for(let a=0;aP(t[s],1,1,()=>{t[s]=null});return{c(){for(let s=0;s{c[_]=null}),q(),l=c[a],l?l.p(u,m):(l=c[a]=h[a](u),l.c()),I(l,1),l.m(s,null))},i(u){d||(I(l),d=!0)},o(u){P(l),d=!1},d(u){u&&p(e),c[a].d()}}}function Ee(i){let e,r,n,t,f,s,a,l=i[7].name+"",o,d,h,c,V,u,m,_,A=i[3](i[7].track)+"",N,F,B,K=i[7].duration+"",Q,X,Y,Z=i[4](i[7]).length>0,R,U,J,x,ne,w=i[7].speakers&&i[7].speakers.length>0&&pe(i);u=new Be({props:{event:i[7]}});let y=Z&&ge(i);return{c(){e=k("div"),r=k("div"),n=k("i"),s=S(),a=k("div"),o=O(l),d=S(),w&&w.c(),h=S(),c=k("div"),V=k("div"),le(u.$$.fragment),m=S(),_=k("div"),N=O(A),F=S(),B=k("div"),Q=O(K),X=O("m"),Y=S(),y&&y.c(),R=S(),this.h()},l(b){e=E(b,"DIV",{class:!0});var D=$(e);r=E(D,"DIV",{class:!0});var M=$(r);n=E(M,"I",{class:!0,"utxo-event-id":!0}),$(n).forEach(p),M.forEach(p),s=j(D),a=E(D,"DIV",{class:!0});var oe=$(a);o=T(oe,l),oe.forEach(p),d=j(D),w&&w.l(D),h=j(D),c=E(D,"DIV",{class:!0});var H=$(c);V=E(H,"DIV",{});var ie=$(V);ae(u.$$.fragment,ie),ie.forEach(p),m=j(H),_=E(H,"DIV",{class:!0});var ce=$(_);N=T(ce,A),ce.forEach(p),F=j(H),B=E(H,"DIV",{class:!0});var ee=$(B);Q=T(ee,K),X=T(ee,"m"),ee.forEach(p),H.forEach(p),Y=j(D),y&&y.l(D),R=j(D),D.forEach(p),this.h()},h(){g(n,"class",t="fa-star "+(i[0].favoriteEvents.includes(i[7].id)?"fa-solid":"fa-regular")+" cursor-pointer"),g(n,"utxo-event-id",f=i[7].id),g(r,"class","float-right"),g(a,"class","text-lg font-semibold"),g(_,"class","text-sm my-auto"),g(B,"class","text-xs my-auto"),g(c,"class","mt-2 text-sm flex flex-wrap gap-2"),g(e,"class",U="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(i[0].favoriteEvents.includes(i[7].id)?"bg-yellow-100":""))},m(b,D){z(b,e,D),v(e,r),v(r,n),v(e,s),v(e,a),v(a,o),v(e,d),w&&w.m(e,null),v(e,h),v(e,c),v(c,V),se(u,V,null),v(c,m),v(c,_),v(_,N),v(c,F),v(c,B),v(B,Q),v(B,X),v(e,Y),y&&y.m(e,null),v(e,R),J=!0,x||(ne=ye(n,"click",i[5]),x=!0)},p(b,D){(!J||D&3&&t!==(t="fa-star "+(b[0].favoriteEvents.includes(b[7].id)?"fa-solid":"fa-regular")+" cursor-pointer"))&&g(n,"class",t),(!J||D&2&&f!==(f=b[7].id))&&g(n,"utxo-event-id",f),(!J||D&2)&&l!==(l=b[7].name+"")&&G(o,l),b[7].speakers&&b[7].speakers.length>0?w?(w.p(b,D),D&2&&I(w,1)):(w=pe(b),w.c(),I(w,1),w.m(e,h)):w&&(C(),P(w,1,1,()=>{w=null}),q());const M={};D&2&&(M.event=b[7]),u.$set(M),(!J||D&2)&&A!==(A=b[3](b[7].track)+"")&&G(N,A),(!J||D&2)&&K!==(K=b[7].duration+"")&&G(Q,K),D&2&&(Z=b[4](b[7]).length>0),Z?y?(y.p(b,D),D&2&&I(y,1)):(y=ge(b),y.c(),I(y,1),y.m(e,R)):y&&(C(),P(y,1,1,()=>{y=null}),q()),(!J||D&3&&U!==(U="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(b[0].favoriteEvents.includes(b[7].id)?"bg-yellow-100":"")))&&g(e,"class",U)},i(b){J||(I(w),I(u.$$.fragment,b),I(y),J=!0)},o(b){P(w),P(u.$$.fragment,b),P(y),J=!1},d(b){b&&p(e),w&&w.d(),re(u),y&&y.d(),x=!1,ne()}}}function ze(i){let e,r,n,t,f,s,a,l,o,d,h=i[1].spec.events.filter($e),c=[];for(let u=0;uP(c[u],1,1,()=>{c[u]=null});return{c(){e=S(),r=k("section"),n=k("h1"),t=O("Program"),f=S(),s=k("div"),a=O("Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna par t\xFDdn\u016F p\u0159ed konferenc\xED."),l=S(),o=k("div");for(let u=0;u!i.parent;function Je(i,e,r){let n,t;fe(i,te,d=>r(0,n=d)),fe(i,Se,d=>r(1,t=d));const f=localStorage.getItem("userData");f&&te.set(JSON.parse(f));function s(d){if(!!d)return d.map(h=>t.spec.speakers.find(c=>c.id===h))}function a(d){const h=t.spec.tracks.find(c=>c.id===d);return h.shortname||h.name}function l(d){return t.spec.events.filter(h=>h.parent===d.id)}function o(d){const h=d.target.getAttribute("utxo-event-id");te.update(c=>{const V=c.favoriteEvents;let u=null;return V.includes(h)?u=Object.assign(n,{favoriteEvents:V.filter(m=>m!==h)}):(V.push(h),u=Object.assign(n,{favoriteEvents:V})),localStorage.setItem("userData",JSON.stringify(u)),u})}return[n,t,s,a,l,o]}class Le extends De{constructor(e){super();Ie(this,e,Je,ze,Ve,{})}}export{Le as default,He as prerender};