import{S as x,i as ee,s as te,e as E,w as W,k as B,t as C,l as R,c as D,a as I,x as X,d as h,m as S,h as H,b as k,g as w,F as v,y as Y,j,q as b,o as V,B as Z,p as G,G as le,H as U,n as L}from"../../chunks/index-05c131b6.js";import{A as ae}from"../../chunks/Avatar-644d9cdd.js";import{p as se}from"../../chunks/stores-48f7905d.js";import{b as re}from"../../chunks/stores-0a1fbb24.js";import{E as ne}from"../../chunks/EventTypeLabel-a320bc18.js";import"../../chunks/index-77580868.js";function J(o,l,n){const t=o.slice();return t[5]=l[n],t}function K(o){let l,n,t,e,i,s=o[3](o[1].track)+"",f,a,m,_=o[1].duration+"",p,d,g,$,q=o[1].name+"",N,T,A,y;t=new ne({props:{event:o[1],size:"big"}});let u=o[1].speakers&&o[1].speakers.length>0&&P(o);return{c(){l=E("div"),n=E("div"),W(t.$$.fragment),e=B(),i=E("div"),f=C(s),a=B(),m=E("div"),p=C(_),d=C("m"),g=B(),$=E("h1"),N=C(q),T=B(),u&&u.c(),A=R(),this.h()},l(r){l=D(r,"DIV",{class:!0});var c=I(l);n=D(c,"DIV",{});var z=I(n);X(t.$$.fragment,z),z.forEach(h),e=S(c),i=D(c,"DIV",{class:!0});var M=I(i);f=H(M,s),M.forEach(h),a=S(c),m=D(c,"DIV",{class:!0});var F=I(m);p=H(F,_),d=H(F,"m"),F.forEach(h),c.forEach(h),g=S(r),$=D(r,"H1",{class:!0});var O=I($);N=H(O,q),O.forEach(h),T=S(r),u&&u.l(r),A=R(),this.h()},h(){k(i,"class","text-md my-auto"),k(m,"class","text-sm my-auto"),k(l,"class","mb-6 flex flex-wrap gap-4"),k($,"class","text-2xl font-bold")},m(r,c){w(r,l,c),v(l,n),Y(t,n,null),v(l,e),v(l,i),v(i,f),v(l,a),v(l,m),v(m,p),v(m,d),w(r,g,c),w(r,$,c),v($,N),w(r,T,c),u&&u.m(r,c),w(r,A,c),y=!0},p(r,c){const z={};c&2&&(z.event=r[1]),t.$set(z),(!y||c&2)&&s!==(s=r[3](r[1].track)+"")&&j(f,s),(!y||c&2)&&_!==(_=r[1].duration+"")&&j(p,_),(!y||c&2)&&q!==(q=r[1].name+"")&&j(N,q),r[1].speakers&&r[1].speakers.length>0?u?(u.p(r,c),c&2&&b(u,1)):(u=P(r),u.c(),b(u,1),u.m(A.parentNode,A)):u&&(L(),V(u,1,1,()=>{u=null}),G())},i(r){y||(b(t.$$.fragment,r),b(u),y=!0)},o(r){V(t.$$.fragment,r),V(u),y=!1},d(r){r&&h(l),Z(t),r&&h(g),r&&h($),r&&h(T),u&&u.d(r),r&&h(A)}}}function P(o){let l,n,t=o[2](o[1].speakers),e=[];for(let s=0;sV(e[s],1,1,()=>{e[s]=null});return{c(){l=E("div");for(let s=0;s{t=null}),G())},i(e){n||(b(t),n=!0)},o(e){V(t),n=!1},d(e){e&&h(l),t&&t.d()}}}const _e=!0;function oe(o,l,n){let t,e,i;U(o,re,a=>n(0,e=a)),U(o,se,a=>n(4,i=a));function s(a){if(!!a)return a.map(m=>e.spec.speakers.find(_=>_.id===m))}function f(a){const m=e.spec.tracks.find(_=>_.id===a);return m.shortname||m.name}return o.$$.update=()=>{o.$$.dirty&17&&n(1,t=e?e.spec.events.find(a=>a.id===i.params.id):null)},[e,t,s,f,i]}class de extends x{constructor(l){super();ee(this,l,oe,ie,te,{})}}export{de as default,_e as prerender};