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