import{S as De,i as Ie,s as Ve,e as E,k as S,t as A,c as $,a as D,d as _,m as j,h as T,b,g as z,G as h,E as x,w as le,x as se,y as ae,P as ye,j as F,q as I,o as y,B as re,p as q,H as W,Q as Pe,I as fe,n as C,l as ue}from"../chunks/index-a2ca1b26.js";import{u as te,b as Se}from"../chunks/stores-0b5bd192.js";import{A as we}from"../chunks/Avatar-e3de332c.js";import"../chunks/index-ed9d6cc1.js";function je(i){let e,r,n,s,c=i[0].title+"",a;return{c(){e=E("div"),r=E("div"),n=S(),s=E("div"),a=A(c),this.h()},l(t){e=$(t,"DIV",{class:!0});var l=D(e);r=$(l,"DIV",{class:!0}),D(r).forEach(_),n=j(l),s=$(l,"DIV",{class:!0});var o=D(s);a=T(o,c),o.forEach(_),l.forEach(_),this.h()},h(){b(r,"class","w-1 rounded-l-sm "+i[0].style),b(s,"class","px-1.5 py-0.5 rounded-r-sm bg-gray-100 uppercase"),b(e,"class","text-xs flex h-5")},m(t,l){z(t,e,l),h(e,r),h(e,n),h(e,s),h(s,a)},p:x,i:x,o:x,d(t){t&&_(e)}}}function Be(i,e,r){let{event:n={}}=e;const c={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=a=>{"event"in a&&r(1,n=a.event)},[c,n]}class Oe extends De{constructor(e){super();Ie(this,e,Be,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),s=[];for(let a=0;ay(s[a],1,1,()=>{s[a]=null});return{c(){e=E("div");for(let a=0;ay(c[t],1,1,()=>{c[t]=null});return{c(){e=E("div"),r=E("div");for(let t=0;ty(s[a],1,1,()=>{s[a]=null});return{c(){for(let a=0;a{u[v]=null}),q(),l=u[t],l?l.p(f,p):(l=u[t]=m[t](f),l.c()),I(l,1),l.m(a,null))},i(f){d||(I(l),d=!0)},o(f){y(l),d=!1},d(f){f&&_(e),u[t].d()}}}function Ee(i){let e,r,n,s,c,a,t,l=i[7].name+"",o,d,m,u,P,f,p,v,B=i[3](i[7].track)+"",N,H,O,G=i[7].duration+"",Q,X,K,Y=i[4](i[7]).length>0,R,U,J,Z,ne,V=i[7].speakers&&i[7].speakers.length>0&&pe(i);f=new Oe({props:{event:i[7]}});let w=Y&&ge(i);return{c(){e=E("div"),r=E("div"),n=E("i"),a=S(),t=E("div"),o=A(l),d=S(),V&&V.c(),m=S(),u=E("div"),P=E("div"),le(f.$$.fragment),p=S(),v=E("div"),N=A(B),H=S(),O=E("div"),Q=A(G),X=A("m"),K=S(),w&&w.c(),R=S(),this.h()},l(g){e=$(g,"DIV",{class:!0});var k=D(e);r=$(k,"DIV",{class:!0});var M=D(r);n=$(M,"I",{class:!0,"utxo-event-id":!0}),D(n).forEach(_),M.forEach(_),a=j(k),t=$(k,"DIV",{class:!0});var oe=D(t);o=T(oe,l),oe.forEach(_),d=j(k),V&&V.l(k),m=j(k),u=$(k,"DIV",{class:!0});var L=D(u);P=$(L,"DIV",{});var ie=D(P);se(f.$$.fragment,ie),ie.forEach(_),p=j(L),v=$(L,"DIV",{class:!0});var ce=D(v);N=T(ce,B),ce.forEach(_),H=j(L),O=$(L,"DIV",{class:!0});var ee=D(O);Q=T(ee,G),X=T(ee,"m"),ee.forEach(_),L.forEach(_),K=j(k),w&&w.l(k),R=j(k),k.forEach(_),this.h()},h(){b(n,"class",s="fa-star "+(i[0].favoriteEvents.includes(i[7].id)?"fa-solid":"fa-regular")+" cursor-pointer"),b(n,"utxo-event-id",c=i[7].id),b(r,"class","float-right"),b(t,"class","text-lg font-semibold"),b(v,"class","text-sm my-auto"),b(O,"class","text-xs my-auto"),b(u,"class","mt-2 text-sm flex flex-wrap gap-2"),b(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(g,k){z(g,e,k),h(e,r),h(r,n),h(e,a),h(e,t),h(t,o),h(e,d),V&&V.m(e,null),h(e,m),h(e,u),h(u,P),ae(f,P,null),h(u,p),h(u,v),h(v,N),h(u,H),h(u,O),h(O,Q),h(O,X),h(e,K),w&&w.m(e,null),h(e,R),J=!0,Z||(ne=ye(n,"click",i[5]),Z=!0)},p(g,k){(!J||k&3&&s!==(s="fa-star "+(g[0].favoriteEvents.includes(g[7].id)?"fa-solid":"fa-regular")+" cursor-pointer"))&&b(n,"class",s),(!J||k&2&&c!==(c=g[7].id))&&b(n,"utxo-event-id",c),(!J||k&2)&&l!==(l=g[7].name+"")&&F(o,l),g[7].speakers&&g[7].speakers.length>0?V?(V.p(g,k),k&2&&I(V,1)):(V=pe(g),V.c(),I(V,1),V.m(e,m)):V&&(C(),y(V,1,1,()=>{V=null}),q());const M={};k&2&&(M.event=g[7]),f.$set(M),(!J||k&2)&&B!==(B=g[3](g[7].track)+"")&&F(N,B),(!J||k&2)&&G!==(G=g[7].duration+"")&&F(Q,G),k&2&&(Y=g[4](g[7]).length>0),Y?w?(w.p(g,k),k&2&&I(w,1)):(w=ge(g),w.c(),I(w,1),w.m(e,R)):w&&(C(),y(w,1,1,()=>{w=null}),q()),(!J||k&3&&U!==(U="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(g[0].favoriteEvents.includes(g[7].id)?"bg-yellow-100":"")))&&b(e,"class",U)},i(g){J||(I(V),I(f.$$.fragment,g),I(w),J=!0)},o(g){y(V),y(f.$$.fragment,g),y(w),J=!1},d(g){g&&_(e),V&&V.d(),re(f),w&&w.d(),Z=!1,ne()}}}function ze(i){let e,r,n,s,c,a,t,l,o,d,m=i[1].spec.events.filter($e),u=[];for(let f=0;fy(u[f],1,1,()=>{u[f]=null});return{c(){e=S(),r=E("section"),n=E("h1"),s=A("Program"),c=S(),a=E("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=S(),o=E("div");for(let f=0;f!i.parent;function Je(i,e,r){let n,s;fe(i,te,d=>r(0,n=d)),fe(i,Se,d=>r(1,s=d));const c=localStorage.getItem("userData");c&&te.set(JSON.parse(c));function a(d){if(!!d)return d.map(m=>s.spec.speakers.find(u=>u.id===m))}function t(d){const m=s.spec.tracks.find(u=>u.id===d);return m.shortname||m.name}function l(d){return s.spec.events.filter(m=>m.parent===d.id)}function o(d){const m=d.target.getAttribute("utxo-event-id");te.update(u=>{const P=u.favoriteEvents;let f=null;return P.includes(m)?f=Object.assign(n,{favoriteEvents:P.filter(p=>p!==m)}):(P.push(m),f=Object.assign(n,{favoriteEvents:P})),localStorage.setItem("userData",JSON.stringify(f)),f})}return[n,s,a,t,l,o]}class xe extends De{constructor(e){super();Ie(this,e,Je,ze,Ve,{})}}export{xe as default,Le as prerender};