import{S as fe,i as ue,s as ce,e as g,t as R,k as U,w as K,c as E,a as w,d as c,h as j,m as y,x as Q,b,g as V,F as v,y as W,j as X,q as $,o as S,B as Y,p as Z,G as me,R as pe,H as se,n as F}from"../chunks/index-e45cd9d1.js";import{p as de}from"../chunks/stores-f185dc56.js";import{g as _e}from"../chunks/navigation-0e6511d1.js";import{b as ve}from"../chunks/stores-adaa4006.js";import{E as he}from"../chunks/EventTypeLabel-5efb0eba.js";import{A as ke,S as be,L as $e}from"../chunks/Avatar-f71fd69a.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-c650cd5f.js";function ae(n,s,o){const r=n.slice();return r[8]=s[o],r}function re(n){let s,o,r,t,l,e,f,i,I,k,u=n[4](n[1].track)+"",m,h,D,z=n[1].duration+"",C,G,H,L,B=n[1].name+"",M,N,q,A,T;i=new he({props:{event:n[1],size:"big"}});let d=n[1].speakers&&n[1].speakers.length>0&&ie(n),_=n[1].description&&oe(n);return{c(){s=g("div"),o=g("a"),r=g("i"),t=R("\xA0Zp\u011Bt"),l=U(),e=g("div"),f=g("div"),K(i.$$.fragment),I=U(),k=g("div"),m=R(u),h=U(),D=g("div"),C=R(z),G=R("m"),H=U(),L=g("h1"),M=R(B),N=U(),d&&d.c(),q=U(),A=g("div"),_&&_.c(),this.h()},l(a){s=E(a,"DIV",{class:!0});var p=w(s);o=E(p,"A",{href:!0});var O=w(o);r=E(O,"I",{class:!0}),w(r).forEach(c),t=j(O,"\xA0Zp\u011Bt"),O.forEach(c),p.forEach(c),l=y(a),e=E(a,"DIV",{class:!0});var P=w(e);f=E(P,"DIV",{});var x=w(f);Q(i.$$.fragment,x),x.forEach(c),I=y(P),k=E(P,"DIV",{class:!0});var ee=w(k);m=j(ee,u),ee.forEach(c),h=y(P),D=E(P,"DIV",{class:!0});var J=w(D);C=j(J,z),G=j(J,"m"),J.forEach(c),P.forEach(c),H=y(a),L=E(a,"H1",{class:!0});var te=w(L);M=j(te,B),te.forEach(c),N=y(a),d&&d.l(a),q=y(a),A=E(a,"DIV",{class:!0});var le=w(A);_&&_.l(le),le.forEach(c),this.h()},h(){b(r,"class","fa-solid fa-arrow-left"),b(o,"href","javascript:history.back()"),b(s,"class","mb-6 uppercase text-gray-500"),b(k,"class","text-md my-auto"),b(D,"class","text-sm my-auto"),b(e,"class","mb-6 flex flex-wrap gap-4"),b(L,"class","text-2xl font-bold"),b(A,"class","mt-8")},m(a,p){V(a,s,p),v(s,o),v(o,r),v(o,t),V(a,l,p),V(a,e,p),v(e,f),W(i,f,null),v(e,I),v(e,k),v(k,m),v(e,h),v(e,D),v(D,C),v(D,G),V(a,H,p),V(a,L,p),v(L,M),V(a,N,p),d&&d.m(a,p),V(a,q,p),V(a,A,p),_&&_.m(A,null),T=!0},p(a,p){const O={};p&2&&(O.event=a[1]),i.$set(O),(!T||p&2)&&u!==(u=a[4](a[1].track)+"")&&X(m,u),(!T||p&2)&&z!==(z=a[1].duration+"")&&X(C,z),(!T||p&2)&&B!==(B=a[1].name+"")&&X(M,B),a[1].speakers&&a[1].speakers.length>0?d?(d.p(a,p),p&2&&$(d,1)):(d=ie(a),d.c(),$(d,1),d.m(q.parentNode,q)):d&&(F(),S(d,1,1,()=>{d=null}),Z()),a[1].description?_?(_.p(a,p),p&2&&$(_,1)):(_=oe(a),_.c(),$(_,1),_.m(A,null)):_&&(F(),S(_,1,1,()=>{_=null}),Z())},i(a){T||($(i.$$.fragment,a),$(d),$(_),T=!0)},o(a){S(i.$$.fragment,a),S(d),S(_),T=!1},d(a){a&&c(s),a&&c(l),a&&c(e),Y(i),a&&c(H),a&&c(L),a&&c(N),d&&d.d(a),a&&c(q),a&&c(A),_&&_.d()}}}function ie(n){let s,o,r=n[3](n[1].speakers),t=[];for(let e=0;eS(t[e],1,1,()=>{t[e]=null});return{c(){s=g("div");for(let e=0;e{l=null}),Z())},i(e){t||($(l),t=!0)},o(e){S(l),t=!1},d(e){e&&c(o),e&&c(r),l&&l.d()}}}const Le=!0;function Ee(n,s,o){let r,t,l,e;se(n,ve,u=>o(0,l=u)),se(n,de,u=>o(6,e=u));const f={link:$e};function i(u){const h=new URLSearchParams(u).get("id");return l.spec.events.find(D=>D.id===h)||_e("/"),h}function I(u){if(!!u)return u.map(m=>l.spec.speakers.find(h=>h.id===m))}function k(u){const m=l.spec.tracks.find(h=>h.id===u);return m.shortname||m.name}return n.$$.update=()=>{n.$$.dirty&64&&o(5,r=i(e.url.search)),n.$$.dirty&33&&o(1,t=l?l.spec.events.find(u=>u.id===r):null)},[l,t,f,I,k,r,e]}class Te extends fe{constructor(s){super();ue(this,s,Ee,ge,ce,{})}}export{Te as default,Le as prerender};