utxo22-web/_app/chunks/Event-4db528b6.js

4 řádky
15 KiB
JavaScript

import{S as Me,i as je,s as ye,e as b,t as A,k as y,c as E,a as D,h as S,m as C,d,b as m,g as B,J as c,j as P,E as le,q as I,w as te,x as ie,y as re,o as $,B as ae,n as Q,p as U,K as ne,N as Ce,L as he,l as _e}from"./index-9987666b.js";import{A as Ne}from"./Avatar-646b3763.js";import{S as Oe,L as qe}from"./Link-57e97f60.js";import{E as Ze}from"./EventTypeLabel-ca431df3.js";import{f as se}from"./utils-a05be307.js";import{b as Fe,c as fe}from"./stores-af76d038.js";function Je(n){let e,a=se(n[1],"yyyy-MM-dd")==="2022-06-04"?"SO":"NE",t,l,r=se(n[1],"HH:mm")+"",i,s,f=se(n[2],"HH:mm")+"",o,g,h=(n[0]?n[0].name:"n/a")+"",u,_;return{c(){e=b("div"),t=A(a),l=y(),i=A(r),s=A("-"),o=A(f),g=A(" ("),u=A(h),_=A(")"),this.h()},l(v){e=E(v,"DIV",{class:!0});var k=D(e);t=S(k,a),l=C(k),i=S(k,r),s=S(k,"-"),o=S(k,f),g=S(k," ("),u=S(k,h),_=S(k,")"),k.forEach(d),this.h()},h(){m(e,"class","font-semibold")},m(v,k){B(v,e,k),c(e,t),c(e,l),c(e,i),c(e,s),c(e,o),c(e,g),c(e,u),c(e,_)},p(v,[k]){k&1&&h!==(h=(v[0]?v[0].name:"n/a")+"")&&P(u,h)},i:le,o:le,d(v){v&&d(e)}}}function Ke(n,e,a){let t,{item:l}=e,{e:r}=e,{bundle:i}=e;const s=typeof l.period.start=="string"?new Date(l.period.start):l.period.start,f=typeof l.period.end=="string"?new Date(l.period.end):l.period.end;return n.$$set=o=>{"item"in o&&a(3,l=o.item),"e"in o&&a(4,r=o.e),"bundle"in o&&a(5,i=o.bundle)},n.$$.update=()=>{n.$$.dirty&40&&a(0,t=i?i.spec.stages.find(o=>o.id===l.stage):null)},[t,s,f,l,r,i]}class Re extends Me{constructor(e){super();je(this,e,Ke,Je,ye,{item:3,e:4,bundle:5})}}function Ge(n,e){if(!e)return 0;if(n.duration)return n.duration;const a=e.spec.events.filter(t=>t.parent===n.id);if(a.length>0){let t=a.reduce((l,r)=>l+(r.duration?r.duration:0),0);return t+=5*(a.length-1),t}}function ve(n,e){e.update(a=>{const t=a.favoriteEvents;let l=null;return t.includes(n)?l=Object.assign({},a,{favoriteEvents:t.filter(r=>r!==n)}):(t.push(n),l=Object.assign(a,{favoriteEvents:t})),l})}function me(n,e,a){const t=n.slice();return t[14]=e[a],t}function pe(n,e,a){const t=n.slice();return t[17]=e[a],t}function ge(n,e,a){const t=n.slice();return t[20]=e[a],t}function ke(n,e,a){const t=n.slice();return t[17]=e[a],t}function be(n){let e,a,t=n[8](n[1].speakers),l=[];for(let i=0;i<t.length;i+=1)l[i]=De(ke(n,t,i));const r=i=>$(l[i],1,1,()=>{l[i]=null});return{c(){e=b("div");for(let i=0;i<l.length;i+=1)l[i].c();this.h()},l(i){e=E(i,"DIV",{class:!0});var s=D(e);for(let f=0;f<l.length;f+=1)l[f].l(s);s.forEach(d),this.h()},h(){m(e,"class","mt-1 mb-2 flex flex-wrap gap-2")},m(i,s){B(i,e,s);for(let f=0;f<l.length;f+=1)l[f].m(e,null);a=!0},p(i,s){if(s&258){t=i[8](i[1].speakers);let f;for(f=0;f<t.length;f+=1){const o=ke(i,t,f);l[f]?(l[f].p(o,s),I(l[f],1)):(l[f]=De(o),l[f].c(),I(l[f],1),l[f].m(e,null))}for(Q(),f=t.length;f<l.length;f+=1)r(f);U()}},i(i){if(!a){for(let s=0;s<t.length;s+=1)I(l[s]);a=!0}},o(i){l=l.filter(Boolean);for(let s=0;s<l.length;s+=1)$(l[s]);a=!1},d(i){i&&d(e),ne(l,i)}}}function Ee(n){let e,a=n[17].nickname+"",t,l;return{c(){e=A("\xA0("),t=A(a),l=A(")")},l(r){e=S(r,"\xA0("),t=S(r,a),l=S(r,")")},m(r,i){B(r,e,i),B(r,t,i),B(r,l,i)},p(r,i){i&2&&a!==(a=r[17].nickname+"")&&P(t,a)},d(r){r&&d(e),r&&d(t),r&&d(l)}}}function De(n){let e,a,t,l,r,i=n[17].name+"",s,f,o,g;a=new Ne({props:{speaker:n[17],size:"extra-small"}});let h=n[17].nickname&&Ee(n);return{c(){e=b("div"),te(a.$$.fragment),t=y(),l=b("div"),r=b("a"),s=A(i),h&&h.c(),o=y(),this.h()},l(u){e=E(u,"DIV",{class:!0});var _=D(e);ie(a.$$.fragment,_),t=C(_),l=E(_,"DIV",{class:!0});var v=D(l);r=E(v,"A",{href:!0});var k=D(r);s=S(k,i),h&&h.l(k),k.forEach(d),v.forEach(d),o=C(_),_.forEach(d),this.h()},h(){m(r,"href",f="/lide?id="+n[17].id),m(l,"class","m-auto"),m(e,"class","flex gap-1.5")},m(u,_){B(u,e,_),re(a,e,null),c(e,t),c(e,l),c(l,r),c(r,s),h&&h.m(r,null),c(e,o),g=!0},p(u,_){const v={};_&2&&(v.speaker=u[17]),a.$set(v),(!g||_&2)&&i!==(i=u[17].name+"")&&P(s,i),u[17].nickname?h?h.p(u,_):(h=Ee(u),h.c(),h.m(r,null)):h&&(h.d(1),h=null),(!g||_&2&&f!==(f="/lide?id="+u[17].id))&&m(r,"href",f)},i(u){g||(I(a.$$.fragment,u),g=!0)},o(u){$(a.$$.fragment,u),g=!1},d(u){u&&d(e),ae(a),h&&h.d()}}}function we(n){let e,a;return e=new Re({props:{item:n[3],e:n[1],bundle:n[2]}}),{c(){te(e.$$.fragment)},l(t){ie(e.$$.fragment,t)},m(t,l){re(e,t,l),a=!0},p(t,l){const r={};l&8&&(r.item=t[3]),l&2&&(r.e=t[1]),l&4&&(r.bundle=t[2]),e.$set(r)},i(t){a||(I(e.$$.fragment,t),a=!0)},o(t){$(e.$$.fragment,t),a=!1},d(t){ae(e,t)}}}function Ie(n){let e,a,t;return{c(){e=b("div"),a=A(n[5]),t=A("m"),this.h()},l(l){e=E(l,"DIV",{class:!0});var r=D(e);a=S(r,n[5]),t=S(r,"m"),r.forEach(d),this.h()},h(){m(e,"class","text-xs my-auto")},m(l,r){B(l,e,r),c(e,a),c(e,t)},p(l,r){r&32&&P(a,l[5])},d(l){l&&d(e)}}}function Ve(n){let e,a,t=n[9](n[1].track)+"",l,r;return{c(){e=b("div"),a=b("a"),l=A(t),this.h()},l(i){e=E(i,"DIV",{class:!0});var s=D(e);a=E(s,"A",{href:!0});var f=D(a);l=S(f,t),f.forEach(d),s.forEach(d),this.h()},h(){m(a,"href",r="/program?track="+n[1].track),m(e,"class","text-sm my-auto")},m(i,s){B(i,e,s),c(e,a),c(a,l)},p(i,s){s&2&&t!==(t=i[9](i[1].track)+"")&&P(l,t),s&2&&r!==(r="/program?track="+i[1].track)&&m(a,"href",r)},d(i){i&&d(e)}}}function Ae(n){let e,a=n[1].tags,t=[];for(let l=0;l<a.length;l+=1)t[l]=Se(ge(n,a,l));return{c(){e=b("div");for(let l=0;l<t.length;l+=1)t[l].c();this.h()},l(l){e=E(l,"DIV",{class:!0});var r=D(e);for(let i=0;i<t.length;i+=1)t[i].l(r);r.forEach(d),this.h()},h(){m(e,"class","flex flex-wrap text-xs gap-1 my-auto text-blue-web/60 whitespace-nowrap")},m(l,r){B(l,e,r);for(let i=0;i<t.length;i+=1)t[i].m(e,null)},p(l,r){if(r&2){a=l[1].tags;let i;for(i=0;i<a.length;i+=1){const s=ge(l,a,i);t[i]?t[i].p(s,r):(t[i]=Se(s),t[i].c(),t[i].m(e,null))}for(;i<t.length;i+=1)t[i].d(1);t.length=a.length}},d(l){l&&d(e),ne(t,l)}}}function Se(n){let e,a,t,l=n[20]+"",r,i;return{c(){e=b("div"),a=b("a"),t=A("#"),r=A(l),this.h()},l(s){e=E(s,"DIV",{});var f=D(e);a=E(f,"A",{href:!0});var o=D(a);t=S(o,"#"),r=S(o,l),o.forEach(d),f.forEach(d),this.h()},h(){m(a,"href",i="/program?tag="+n[20])},m(s,f){B(s,e,f),c(e,a),c(a,t),c(a,r)},p(s,f){f&2&&l!==(l=s[20]+"")&&P(r,l),f&2&&i!==(i="/program?tag="+s[20])&&m(a,"href",i)},d(s){s&&d(e)}}}function $e(n){let e,a,t,l;a=new Oe({props:{source:n[4].md,renderers:n[7]}});let r=n[4].stripped&&Be(n);return{c(){e=b("div"),te(a.$$.fragment),t=y(),r&&r.c(),this.h()},l(i){e=E(i,"DIV",{class:!0});var s=D(e);ie(a.$$.fragment,s),t=C(s),r&&r.l(s),s.forEach(d),this.h()},h(){m(e,"class","mt-2 overflow-hidden")},m(i,s){B(i,e,s),re(a,e,null),c(e,t),r&&r.m(e,null),l=!0},p(i,s){const f={};s&16&&(f.source=i[4].md),a.$set(f),i[4].stripped?r?r.p(i,s):(r=Be(i),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(i){l||(I(a.$$.fragment,i),l=!0)},o(i){$(a.$$.fragment,i),l=!1},d(i){i&&d(e),ae(a),r&&r.d()}}}function Be(n){let e,a,t,l,r,i;return{c(){e=b("div"),a=A("("),t=b("a"),l=A("Zobrazit cel\xFD popis"),i=A(")"),this.h()},l(s){e=E(s,"DIV",{class:!0});var f=D(e);a=S(f,"("),t=E(f,"A",{href:!0});var o=D(t);l=S(o,"Zobrazit cel\xFD popis"),o.forEach(d),i=S(f,")"),f.forEach(d),this.h()},h(){m(t,"href",r="/udalosti?id="+n[1].id),m(e,"class","text-sm text-blue-web/60")},m(s,f){B(s,e,f),c(e,a),c(e,t),c(t,l),c(e,i)},p(s,f){f&2&&r!==(r="/udalosti?id="+s[1].id)&&m(t,"href",r)},d(s){s&&d(e)}}}function Te(n){let e,a,t,l=n[10](n[1]),r=[];for(let s=0;s<l.length;s+=1)r[s]=Le(me(n,l,s));const i=s=>$(r[s],1,1,()=>{r[s]=null});return{c(){e=b("div"),a=b("div");for(let s=0;s<r.length;s+=1)r[s].c();this.h()},l(s){e=E(s,"DIV",{class:!0});var f=D(e);a=E(f,"DIV",{class:!0,cellpadding:!0});var o=D(a);for(let g=0;g<r.length;g+=1)r[g].l(o);o.forEach(d),f.forEach(d),this.h()},h(){m(a,"class","flex flex-wrap gap-2"),m(a,"cellpadding","5"),m(e,"class","mt-4 w-auto mb-2")},m(s,f){B(s,e,f),c(e,a);for(let o=0;o<r.length;o+=1)r[o].m(a,null);t=!0},p(s,f){if(f&1346){l=s[10](s[1]);let o;for(o=0;o<l.length;o+=1){const g=me(s,l,o);r[o]?(r[o].p(g,f),I(r[o],1)):(r[o]=Le(g),r[o].c(),I(r[o],1),r[o].m(a,null))}for(Q(),o=l.length;o<r.length;o+=1)i(o);U()}},i(s){if(!t){for(let f=0;f<l.length;f+=1)I(r[f]);t=!0}},o(s){r=r.filter(Boolean);for(let f=0;f<r.length;f+=1)$(r[f]);t=!1},d(s){s&&d(e),ne(r,s)}}}function Pe(n){let e,a,t=n[8](n[14].speakers),l=[];for(let i=0;i<t.length;i+=1)l[i]=He(pe(n,t,i));const r=i=>$(l[i],1,1,()=>{l[i]=null});return{c(){for(let i=0;i<l.length;i+=1)l[i].c();e=_e()},l(i){for(let s=0;s<l.length;s+=1)l[s].l(i);e=_e()},m(i,s){for(let f=0;f<l.length;f+=1)l[f].m(i,s);B(i,e,s),a=!0},p(i,s){if(s&1282){t=i[8](i[14].speakers);let f;for(f=0;f<t.length;f+=1){const o=pe(i,t,f);l[f]?(l[f].p(o,s),I(l[f],1)):(l[f]=He(o),l[f].c(),I(l[f],1),l[f].m(e.parentNode,e))}for(Q(),f=t.length;f<l.length;f+=1)r(f);U()}},i(i){if(!a){for(let s=0;s<t.length;s+=1)I(l[s]);a=!0}},o(i){l=l.filter(Boolean);for(let s=0;s<l.length;s+=1)$(l[s]);a=!1},d(i){ne(l,i),i&&d(e)}}}function Qe(n){let e,a;return{c(){e=b("div"),a=A("TBA")},l(t){e=E(t,"DIV",{});var l=D(e);a=S(l,"TBA"),l.forEach(d)},m(t,l){B(t,e,l),c(e,a)},p:le,i:le,o:le,d(t){t&&d(e)}}}function ze(n){let e,a=n[17].nickname+"",t,l;return{c(){e=A("\xA0("),t=A(a),l=A(")")},l(r){e=S(r,"\xA0("),t=S(r,a),l=S(r,")")},m(r,i){B(r,e,i),B(r,t,i),B(r,l,i)},p(r,i){i&2&&a!==(a=r[17].nickname+"")&&P(t,a)},d(r){r&&d(e),r&&d(t),r&&d(l)}}}function He(n){let e,a,t,l,r,i=n[17].name+"",s,f,o,g;a=new Ne({props:{speaker:n[17],size:"micro"}});let h=n[17].nickname&&ze(n);return{c(){e=b("div"),te(a.$$.fragment),t=y(),l=b("div"),r=b("a"),s=A(i),h&&h.c(),o=y(),this.h()},l(u){e=E(u,"DIV",{class:!0});var _=D(e);ie(a.$$.fragment,_),t=C(_),l=E(_,"DIV",{});var v=D(l);r=E(v,"A",{href:!0});var k=D(r);s=S(k,i),h&&h.l(k),k.forEach(d),v.forEach(d),o=C(_),_.forEach(d),this.h()},h(){m(r,"href",f="/lide?id="+n[17].id),m(e,"class","flex gap-1")},m(u,_){B(u,e,_),re(a,e,null),c(e,t),c(e,l),c(l,r),c(r,s),h&&h.m(r,null),c(e,o),g=!0},p(u,_){const v={};_&2&&(v.speaker=u[17]),a.$set(v),(!g||_&2)&&i!==(i=u[17].name+"")&&P(s,i),u[17].nickname?h?h.p(u,_):(h=ze(u),h.c(),h.m(r,null)):h&&(h.d(1),h=null),(!g||_&2&&f!==(f="/lide?id="+u[17].id))&&m(r,"href",f)},i(u){g||(I(a.$$.fragment,u),g=!0)},o(u){$(a.$$.fragment,u),g=!1},d(u){u&&d(e),ae(a),h&&h.d()}}}function Le(n){let e,a,t,l=n[14].name+"",r,i,s,f,o,g,h,u,_,v,k,j,V,J;function R(){return n[13](n[14])}const W=[Qe,Pe],K=[];function X(F,T){return F[14].speakers.length===0?0:1}return u=X(n),_=K[u]=W[u](n),{c(){e=b("div"),a=b("div"),t=b("a"),r=A(l),s=y(),f=b("i"),g=y(),h=b("div"),_.c(),v=y(),this.h()},l(F){e=E(F,"DIV",{class:!0});var T=D(e);a=E(T,"DIV",{class:!0});var N=D(a);t=E(N,"A",{href:!0});var Y=D(t);r=S(Y,l),Y.forEach(d),s=C(N),f=E(N,"I",{class:!0}),D(f).forEach(d),N.forEach(d),g=C(T),h=E(T,"DIV",{class:!0});var x=D(h);_.l(x),x.forEach(d),v=C(T),T.forEach(d),this.h()},h(){m(t,"href",i="/udalosti?id="+n[14].id),m(f,"class",o="fa-star "+(n[6].favoriteEvents.includes(n[14].id)?"fa-solid":"fa-regular")+" cursor-pointer"),m(a,"class","font-bold"),m(h,"class","mt-1"),m(e,"class",k="border rounded py-1.5 px-2.5 text-sm transition-all "+(n[6].favoriteEvents.includes(n[14].id)?"bg-yellow-100":"bg-gray-100"))},m(F,T){B(F,e,T),c(e,a),c(a,t),c(t,r),c(a,s),c(a,f),c(e,g),c(e,h),K[u].m(h,null),c(e,v),j=!0,V||(J=Ce(f,"click",R),V=!0)},p(F,T){n=F,(!j||T&2)&&l!==(l=n[14].name+"")&&P(r,l),(!j||T&2&&i!==(i="/udalosti?id="+n[14].id))&&m(t,"href",i),(!j||T&66&&o!==(o="fa-star "+(n[6].favoriteEvents.includes(n[14].id)?"fa-solid":"fa-regular")+" cursor-pointer"))&&m(f,"class",o);let N=u;u=X(n),u===N?K[u].p(n,T):(Q(),$(K[N],1,1,()=>{K[N]=null}),U(),_=K[u],_?_.p(n,T):(_=K[u]=W[u](n),_.c()),I(_,1),_.m(h,null)),(!j||T&66&&k!==(k="border rounded py-1.5 px-2.5 text-sm transition-all "+(n[6].favoriteEvents.includes(n[14].id)?"bg-yellow-100":"bg-gray-100")))&&m(e,"class",k)},i(F){j||(I(_),j=!0)},o(F){$(_),j=!1},d(F){F&&d(e),K[u].d(),V=!1,J()}}}function Ue(n){let e,a,t,l,r,i,s,f=n[1].name+"",o,g,h,u,_,v,k,j,V,J,R,W,K,X,F=n[10](n[1]).length>0,T,N,Y,x,z=n[1].speakers&&n[1].speakers.length>0&&be(n);j=new Ze({props:{event:n[1]}});let H=n[3]&&!n[0]&&we(n),O=n[5]&&Ie(n),q=n[1].track&&Ve(n),Z=n[1].tags&&Ae(n),L=n[1].description&&$e(n),M=F&&Te(n);return{c(){e=b("div"),a=b("div"),t=b("i"),r=y(),i=b("div"),s=b("a"),o=A(f),h=y(),z&&z.c(),u=y(),_=b("div"),v=b("div"),k=b("div"),te(j.$$.fragment),V=y(),H&&H.c(),J=y(),O&&O.c(),R=y(),q&&q.c(),W=y(),Z&&Z.c(),K=y(),L&&L.c(),X=y(),M&&M.c(),this.h()},l(p){e=E(p,"DIV",{class:!0});var w=D(e);a=E(w,"DIV",{class:!0});var ee=D(a);t=E(ee,"I",{class:!0}),D(t).forEach(d),ee.forEach(d),r=C(w),i=E(w,"DIV",{class:!0});var oe=D(i);s=E(oe,"A",{href:!0});var ue=D(s);o=S(ue,f),ue.forEach(d),oe.forEach(d),h=C(w),z&&z.l(w),u=C(w),_=E(w,"DIV",{class:!0});var ce=D(_);v=E(ce,"DIV",{class:!0});var G=D(v);k=E(G,"DIV",{class:!0});var de=D(k);ie(j.$$.fragment,de),de.forEach(d),V=C(G),H&&H.l(G),J=C(G),O&&O.l(G),R=C(G),q&&q.l(G),W=C(G),Z&&Z.l(G),G.forEach(d),ce.forEach(d),K=C(w),L&&L.l(w),X=C(w),M&&M.l(w),w.forEach(d),this.h()},h(){m(t,"class",l="fa-star "+(n[6].favoriteEvents.includes(n[1].id)?"fa-solid":"fa-regular")+" cursor-pointer"),m(a,"class","float-right"),m(s,"href",g="/udalosti?id="+n[1].id),m(i,"class","text-lg font-semibold"),m(k,"class","opacity-80"),m(v,"class","text-sm flex flex-wrap gap-3 flex-1"),m(_,"class",""),m(e,"class",T="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(n[6].favoriteEvents.includes(n[1].id)?"bg-yellow-100":""))},m(p,w){B(p,e,w),c(e,a),c(a,t),c(e,r),c(e,i),c(i,s),c(s,o),c(e,h),z&&z.m(e,null),c(e,u),c(e,_),c(_,v),c(v,k),re(j,k,null),c(v,V),H&&H.m(v,null),c(v,J),O&&O.m(v,null),c(v,R),q&&q.m(v,null),c(v,W),Z&&Z.m(v,null),c(e,K),L&&L.m(e,null),c(e,X),M&&M.m(e,null),N=!0,Y||(x=Ce(t,"click",n[12]),Y=!0)},p(p,[w]){(!N||w&66&&l!==(l="fa-star "+(p[6].favoriteEvents.includes(p[1].id)?"fa-solid":"fa-regular")+" cursor-pointer"))&&m(t,"class",l),(!N||w&2)&&f!==(f=p[1].name+"")&&P(o,f),(!N||w&2&&g!==(g="/udalosti?id="+p[1].id))&&m(s,"href",g),p[1].speakers&&p[1].speakers.length>0?z?(z.p(p,w),w&2&&I(z,1)):(z=be(p),z.c(),I(z,1),z.m(e,u)):z&&(Q(),$(z,1,1,()=>{z=null}),U());const ee={};w&2&&(ee.event=p[1]),j.$set(ee),p[3]&&!p[0]?H?(H.p(p,w),w&9&&I(H,1)):(H=we(p),H.c(),I(H,1),H.m(v,J)):H&&(Q(),$(H,1,1,()=>{H=null}),U()),p[5]?O?O.p(p,w):(O=Ie(p),O.c(),O.m(v,R)):O&&(O.d(1),O=null),p[1].track?q?q.p(p,w):(q=Ve(p),q.c(),q.m(v,W)):q&&(q.d(1),q=null),p[1].tags?Z?Z.p(p,w):(Z=Ae(p),Z.c(),Z.m(v,null)):Z&&(Z.d(1),Z=null),p[1].description?L?(L.p(p,w),w&2&&I(L,1)):(L=$e(p),L.c(),I(L,1),L.m(e,X)):L&&(Q(),$(L,1,1,()=>{L=null}),U()),w&2&&(F=p[10](p[1]).length>0),F?M?(M.p(p,w),w&2&&I(M,1)):(M=Te(p),M.c(),I(M,1),M.m(e,null)):M&&(Q(),$(M,1,1,()=>{M=null}),U()),(!N||w&66&&T!==(T="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(p[6].favoriteEvents.includes(p[1].id)?"bg-yellow-100":"")))&&m(e,"class",T)},i(p){N||(I(z),I(j.$$.fragment,p),I(H),I(L),I(M),N=!0)},o(p){$(z),$(j.$$.fragment,p),$(H),$(L),$(M),N=!1},d(p){p&&d(e),z&&z.d(),ae(j),H&&H.d(),O&&O.d(),q&&q.d(),Z&&Z.d(),L&&L.d(),M&&M.d(),Y=!1,x()}}}function We(n){if(!n.description)return{};const e=n.description.split(`
`),a=e.length>1;return{md:e[0],stripped:a}}function Xe(n,e,a){let t,l,r,i,s,f;he(n,Fe,V=>a(2,s=V)),he(n,fe,V=>a(6,f=V));let{event:o}=e,{hideDate:g=!1}=e;const h={link:qe};function u(V){if(!!V)return V.map(J=>s.spec.speakers.find(R=>R.id===J))}function _(V){const J=s.spec.tracks.find(R=>R.id===V);return J.shortname||J.name}function v(V){return s.spec.events.filter(J=>J.parent===V.id)}const k=()=>ve(t.id,fe),j=V=>ve(V.id,fe);return n.$$set=V=>{"event"in V&&a(11,o=V.event),"hideDate"in V&&a(0,g=V.hideDate)},n.$$.update=()=>{n.$$.dirty&2048&&a(1,t=o),n.$$.dirty&6&&a(5,l=Ge(t,s)),n.$$.dirty&2&&a(4,r=We(t)),n.$$.dirty&6&&a(3,i=s?s.spec.schedule.find(V=>V.event===t.id):null)},[g,t,s,i,r,l,f,h,u,_,v,o,k,j]}class rl extends Me{constructor(e){super();je(this,e,Xe,Ue,ye,{event:11,hideDate:0})}}export{rl as E,Re as a,ve as b,Ge as c};