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