utxo22-web/_app/chunks/Event-ab546c43.js

4 řádky
15 KiB
JavaScript

import{S as Me,i as je,s as Ce,e as E,t as $,k as j,c as D,a as w,h as A,m as C,d,b as m,g as B,J as c,j as G,E as le,q as V,w as te,x as ie,y as re,o as S,B as ae,n as P,p as Q,K as ne,N as Ne,L as he,l as _e}from"./index-9987666b.js";import{A as Oe}from"./Avatar-646b3763.js";import{S as qe,L as Ze}from"./Link-57e97f60.js";import{E as ye}from"./EventTypeLabel-ca431df3.js";import{f as se}from"./utils-93c6c1d6.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=E("div"),t=$(a),l=j(),i=$(r),s=$("-"),o=$(f),g=$(" ("),u=$(h),_=$(")"),this.h()},l(v){e=D(v,"DIV",{class:!0});var k=w(e);t=A(k,a),l=C(k),i=A(k,r),s=A(k,"-"),o=A(k,f),g=A(k," ("),u=A(k,h),_=A(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")+"")&&G(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=new Date(l.period.start),f=new Date(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,Ce,{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[13]=e[a],t}function pe(n,e,a){const t=n.slice();return t[16]=e[a],t}function ge(n,e,a){const t=n.slice();return t[19]=e[a],t}function ke(n,e,a){const t=n.slice();return t[16]=e[a],t}function be(n){let e,a,t=n[7](n[0].speakers),l=[];for(let i=0;i<t.length;i+=1)l[i]=De(ke(n,t,i));const r=i=>S(l[i],1,1,()=>{l[i]=null});return{c(){e=E("div");for(let i=0;i<l.length;i+=1)l[i].c();this.h()},l(i){e=D(i,"DIV",{class:!0});var s=w(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&129){t=i[7](i[0].speakers);let f;for(f=0;f<t.length;f+=1){const o=ke(i,t,f);l[f]?(l[f].p(o,s),V(l[f],1)):(l[f]=De(o),l[f].c(),V(l[f],1),l[f].m(e,null))}for(P(),f=t.length;f<l.length;f+=1)r(f);Q()}},i(i){if(!a){for(let s=0;s<t.length;s+=1)V(l[s]);a=!0}},o(i){l=l.filter(Boolean);for(let s=0;s<l.length;s+=1)S(l[s]);a=!1},d(i){i&&d(e),ne(l,i)}}}function Ee(n){let e,a=n[16].nickname+"",t,l;return{c(){e=$("\xA0("),t=$(a),l=$(")")},l(r){e=A(r,"\xA0("),t=A(r,a),l=A(r,")")},m(r,i){B(r,e,i),B(r,t,i),B(r,l,i)},p(r,i){i&1&&a!==(a=r[16].nickname+"")&&G(t,a)},d(r){r&&d(e),r&&d(t),r&&d(l)}}}function De(n){let e,a,t,l,r,i=n[16].name+"",s,f,o,g;a=new Oe({props:{speaker:n[16],size:"extra-small"}});let h=n[16].nickname&&Ee(n);return{c(){e=E("div"),te(a.$$.fragment),t=j(),l=E("div"),r=E("a"),s=$(i),h&&h.c(),o=j(),this.h()},l(u){e=D(u,"DIV",{class:!0});var _=w(e);ie(a.$$.fragment,_),t=C(_),l=D(_,"DIV",{class:!0});var v=w(l);r=D(v,"A",{href:!0});var k=w(r);s=A(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[16].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={};_&1&&(v.speaker=u[16]),a.$set(v),(!g||_&1)&&i!==(i=u[16].name+"")&&G(s,i),u[16].nickname?h?h.p(u,_):(h=Ee(u),h.c(),h.m(r,null)):h&&(h.d(1),h=null),(!g||_&1&&f!==(f="/lide?id="+u[16].id))&&m(r,"href",f)},i(u){g||(V(a.$$.fragment,u),g=!0)},o(u){S(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[2],event:n[0],bundle:n[1]}}),{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&4&&(r.item=t[2]),l&1&&(r.event=t[0]),l&2&&(r.bundle=t[1]),e.$set(r)},i(t){a||(V(e.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),a=!1},d(t){ae(e,t)}}}function Ie(n){let e,a,t;return{c(){e=E("div"),a=$(n[4]),t=$("m"),this.h()},l(l){e=D(l,"DIV",{class:!0});var r=w(e);a=A(r,n[4]),t=A(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&16&&G(a,l[4])},d(l){l&&d(e)}}}function Ve(n){let e,a,t=n[8](n[0].track)+"",l,r;return{c(){e=E("div"),a=E("a"),l=$(t),this.h()},l(i){e=D(i,"DIV",{class:!0});var s=w(e);a=D(s,"A",{href:!0});var f=w(a);l=A(f,t),f.forEach(d),s.forEach(d),this.h()},h(){m(a,"href",r="/program?track="+n[0].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&1&&t!==(t=i[8](i[0].track)+"")&&G(l,t),s&1&&r!==(r="/program?track="+i[0].track)&&m(a,"href",r)},d(i){i&&d(e)}}}function $e(n){let e,a=n[0].tags,t=[];for(let l=0;l<a.length;l+=1)t[l]=Ae(ge(n,a,l));return{c(){e=E("div");for(let l=0;l<t.length;l+=1)t[l].c();this.h()},l(l){e=D(l,"DIV",{class:!0});var r=w(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&1){a=l[0].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]=Ae(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 Ae(n){let e,a,t,l=n[19]+"",r,i;return{c(){e=E("div"),a=E("a"),t=$("#"),r=$(l),this.h()},l(s){e=D(s,"DIV",{});var f=w(e);a=D(f,"A",{href:!0});var o=w(a);t=A(o,"#"),r=A(o,l),o.forEach(d),f.forEach(d),this.h()},h(){m(a,"href",i="/program?tag="+n[19])},m(s,f){B(s,e,f),c(e,a),c(a,t),c(a,r)},p(s,f){f&1&&l!==(l=s[19]+"")&&G(r,l),f&1&&i!==(i="/program?tag="+s[19])&&m(a,"href",i)},d(s){s&&d(e)}}}function Se(n){let e,a,t,l;a=new qe({props:{source:n[3].md,renderers:n[6]}});let r=n[3].stripped&&Be(n);return{c(){e=E("div"),te(a.$$.fragment),t=j(),r&&r.c(),this.h()},l(i){e=D(i,"DIV",{class:!0});var s=w(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&8&&(f.source=i[3].md),a.$set(f),i[3].stripped?r?r.p(i,s):(r=Be(i),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},i(i){l||(V(a.$$.fragment,i),l=!0)},o(i){S(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=E("div"),a=$("("),t=E("a"),l=$("Zobrazit cel\xFD popis"),i=$(")"),this.h()},l(s){e=D(s,"DIV",{class:!0});var f=w(e);a=A(f,"("),t=D(f,"A",{href:!0});var o=w(t);l=A(o,"Zobrazit cel\xFD popis"),o.forEach(d),i=A(f,")"),f.forEach(d),this.h()},h(){m(t,"href",r="/udalosti?id="+n[0].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&1&&r!==(r="/udalosti?id="+s[0].id)&&m(t,"href",r)},d(s){s&&d(e)}}}function Te(n){let e,a,t,l=n[9](n[0]),r=[];for(let s=0;s<l.length;s+=1)r[s]=Le(me(n,l,s));const i=s=>S(r[s],1,1,()=>{r[s]=null});return{c(){e=E("div"),a=E("div");for(let s=0;s<r.length;s+=1)r[s].c();this.h()},l(s){e=D(s,"DIV",{class:!0});var f=w(e);a=D(f,"DIV",{class:!0,cellpadding:!0});var o=w(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&673){l=s[9](s[0]);let o;for(o=0;o<l.length;o+=1){const g=me(s,l,o);r[o]?(r[o].p(g,f),V(r[o],1)):(r[o]=Le(g),r[o].c(),V(r[o],1),r[o].m(a,null))}for(P(),o=l.length;o<r.length;o+=1)i(o);Q()}},i(s){if(!t){for(let f=0;f<l.length;f+=1)V(r[f]);t=!0}},o(s){r=r.filter(Boolean);for(let f=0;f<r.length;f+=1)S(r[f]);t=!1},d(s){s&&d(e),ne(r,s)}}}function Pe(n){let e,a,t=n[7](n[13].speakers),l=[];for(let i=0;i<t.length;i+=1)l[i]=He(pe(n,t,i));const r=i=>S(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&641){t=i[7](i[13].speakers);let f;for(f=0;f<t.length;f+=1){const o=pe(i,t,f);l[f]?(l[f].p(o,s),V(l[f],1)):(l[f]=He(o),l[f].c(),V(l[f],1),l[f].m(e.parentNode,e))}for(P(),f=t.length;f<l.length;f+=1)r(f);Q()}},i(i){if(!a){for(let s=0;s<t.length;s+=1)V(l[s]);a=!0}},o(i){l=l.filter(Boolean);for(let s=0;s<l.length;s+=1)S(l[s]);a=!1},d(i){ne(l,i),i&&d(e)}}}function Qe(n){let e,a;return{c(){e=E("div"),a=$("TBA")},l(t){e=D(t,"DIV",{});var l=w(e);a=A(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[16].nickname+"",t,l;return{c(){e=$("\xA0("),t=$(a),l=$(")")},l(r){e=A(r,"\xA0("),t=A(r,a),l=A(r,")")},m(r,i){B(r,e,i),B(r,t,i),B(r,l,i)},p(r,i){i&1&&a!==(a=r[16].nickname+"")&&G(t,a)},d(r){r&&d(e),r&&d(t),r&&d(l)}}}function He(n){let e,a,t,l,r,i=n[16].name+"",s,f,o,g;a=new Oe({props:{speaker:n[16],size:"micro"}});let h=n[16].nickname&&ze(n);return{c(){e=E("div"),te(a.$$.fragment),t=j(),l=E("div"),r=E("a"),s=$(i),h&&h.c(),o=j(),this.h()},l(u){e=D(u,"DIV",{class:!0});var _=w(e);ie(a.$$.fragment,_),t=C(_),l=D(_,"DIV",{});var v=w(l);r=D(v,"A",{href:!0});var k=w(r);s=A(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[16].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={};_&1&&(v.speaker=u[16]),a.$set(v),(!g||_&1)&&i!==(i=u[16].name+"")&&G(s,i),u[16].nickname?h?h.p(u,_):(h=ze(u),h.c(),h.m(r,null)):h&&(h.d(1),h=null),(!g||_&1&&f!==(f="/lide?id="+u[16].id))&&m(r,"href",f)},i(u){g||(V(a.$$.fragment,u),g=!0)},o(u){S(a.$$.fragment,u),g=!1},d(u){u&&d(e),ae(a),h&&h.d()}}}function Le(n){let e,a,t,l=n[13].name+"",r,i,s,f,o,g,h,u,_,v,k,b,F,K;function X(){return n[12](n[13])}const U=[Qe,Pe],J=[];function W(y,T){return y[13].speakers.length===0?0:1}return u=W(n),_=J[u]=U[u](n),{c(){e=E("div"),a=E("div"),t=E("a"),r=$(l),s=j(),f=E("i"),g=j(),h=E("div"),_.c(),v=j(),this.h()},l(y){e=D(y,"DIV",{class:!0});var T=w(e);a=D(T,"DIV",{class:!0});var N=w(a);t=D(N,"A",{href:!0});var Y=w(t);r=A(Y,l),Y.forEach(d),s=C(N),f=D(N,"I",{class:!0}),w(f).forEach(d),N.forEach(d),g=C(T),h=D(T,"DIV",{class:!0});var x=w(h);_.l(x),x.forEach(d),v=C(T),T.forEach(d),this.h()},h(){m(t,"href",i="/udalosti?id="+n[13].id),m(f,"class",o="fa-star "+(n[5].favoriteEvents.includes(n[13].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[5].favoriteEvents.includes(n[13].id)?"bg-yellow-100":"bg-gray-100"))},m(y,T){B(y,e,T),c(e,a),c(a,t),c(t,r),c(a,s),c(a,f),c(e,g),c(e,h),J[u].m(h,null),c(e,v),b=!0,F||(K=Ne(f,"click",X),F=!0)},p(y,T){n=y,(!b||T&1)&&l!==(l=n[13].name+"")&&G(r,l),(!b||T&1&&i!==(i="/udalosti?id="+n[13].id))&&m(t,"href",i),(!b||T&33&&o!==(o="fa-star "+(n[5].favoriteEvents.includes(n[13].id)?"fa-solid":"fa-regular")+" cursor-pointer"))&&m(f,"class",o);let N=u;u=W(n),u===N?J[u].p(n,T):(P(),S(J[N],1,1,()=>{J[N]=null}),Q(),_=J[u],_?_.p(n,T):(_=J[u]=U[u](n),_.c()),V(_,1),_.m(h,null)),(!b||T&33&&k!==(k="border rounded py-1.5 px-2.5 text-sm transition-all "+(n[5].favoriteEvents.includes(n[13].id)?"bg-yellow-100":"bg-gray-100")))&&m(e,"class",k)},i(y){b||(V(_),b=!0)},o(y){S(_),b=!1},d(y){y&&d(e),J[u].d(),F=!1,K()}}}function Ue(n){let e,a,t,l,r,i,s,f=n[0].name+"",o,g,h,u,_,v,k,b,F,K,X,U,J,W,y=n[9](n[0]).length>0,T,N,Y,x,z=n[0].speakers&&n[0].speakers.length>0&&be(n);b=new ye({props:{event:n[0]}});let H=n[2]&&we(n),O=n[4]&&Ie(n),q=n[0].track&&Ve(n),Z=n[0].tags&&$e(n),L=n[0].description&&Se(n),M=y&&Te(n);return{c(){e=E("div"),a=E("div"),t=E("i"),r=j(),i=E("div"),s=E("a"),o=$(f),h=j(),z&&z.c(),u=j(),_=E("div"),v=E("div"),k=E("div"),te(b.$$.fragment),F=j(),H&&H.c(),K=j(),O&&O.c(),X=j(),q&&q.c(),U=j(),Z&&Z.c(),J=j(),L&&L.c(),W=j(),M&&M.c(),this.h()},l(p){e=D(p,"DIV",{class:!0});var I=w(e);a=D(I,"DIV",{class:!0});var ee=w(a);t=D(ee,"I",{class:!0}),w(t).forEach(d),ee.forEach(d),r=C(I),i=D(I,"DIV",{class:!0});var oe=w(i);s=D(oe,"A",{href:!0});var ue=w(s);o=A(ue,f),ue.forEach(d),oe.forEach(d),h=C(I),z&&z.l(I),u=C(I),_=D(I,"DIV",{class:!0});var ce=w(_);v=D(ce,"DIV",{class:!0});var R=w(v);k=D(R,"DIV",{class:!0});var de=w(k);ie(b.$$.fragment,de),de.forEach(d),F=C(R),H&&H.l(R),K=C(R),O&&O.l(R),X=C(R),q&&q.l(R),U=C(R),Z&&Z.l(R),R.forEach(d),ce.forEach(d),J=C(I),L&&L.l(I),W=C(I),M&&M.l(I),I.forEach(d),this.h()},h(){m(t,"class",l="fa-star "+(n[5].favoriteEvents.includes(n[0].id)?"fa-solid":"fa-regular")+" cursor-pointer"),m(a,"class","float-right"),m(s,"href",g="/udalosti?id="+n[0].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[5].favoriteEvents.includes(n[0].id)?"bg-yellow-100":""))},m(p,I){B(p,e,I),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(b,k,null),c(v,F),H&&H.m(v,null),c(v,K),O&&O.m(v,null),c(v,X),q&&q.m(v,null),c(v,U),Z&&Z.m(v,null),c(e,J),L&&L.m(e,null),c(e,W),M&&M.m(e,null),N=!0,Y||(x=Ne(t,"click",n[11]),Y=!0)},p(p,[I]){(!N||I&33&&l!==(l="fa-star "+(p[5].favoriteEvents.includes(p[0].id)?"fa-solid":"fa-regular")+" cursor-pointer"))&&m(t,"class",l),(!N||I&1)&&f!==(f=p[0].name+"")&&G(o,f),(!N||I&1&&g!==(g="/udalosti?id="+p[0].id))&&m(s,"href",g),p[0].speakers&&p[0].speakers.length>0?z?(z.p(p,I),I&1&&V(z,1)):(z=be(p),z.c(),V(z,1),z.m(e,u)):z&&(P(),S(z,1,1,()=>{z=null}),Q());const ee={};I&1&&(ee.event=p[0]),b.$set(ee),p[2]?H?(H.p(p,I),I&4&&V(H,1)):(H=we(p),H.c(),V(H,1),H.m(v,K)):H&&(P(),S(H,1,1,()=>{H=null}),Q()),p[4]?O?O.p(p,I):(O=Ie(p),O.c(),O.m(v,X)):O&&(O.d(1),O=null),p[0].track?q?q.p(p,I):(q=Ve(p),q.c(),q.m(v,U)):q&&(q.d(1),q=null),p[0].tags?Z?Z.p(p,I):(Z=$e(p),Z.c(),Z.m(v,null)):Z&&(Z.d(1),Z=null),p[0].description?L?(L.p(p,I),I&1&&V(L,1)):(L=Se(p),L.c(),V(L,1),L.m(e,W)):L&&(P(),S(L,1,1,()=>{L=null}),Q()),I&1&&(y=p[9](p[0]).length>0),y?M?(M.p(p,I),I&1&&V(M,1)):(M=Te(p),M.c(),V(M,1),M.m(e,null)):M&&(P(),S(M,1,1,()=>{M=null}),Q()),(!N||I&33&&T!==(T="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(p[5].favoriteEvents.includes(p[0].id)?"bg-yellow-100":"")))&&m(e,"class",T)},i(p){N||(V(z),V(b.$$.fragment,p),V(H),V(L),V(M),N=!0)},o(p){S(z),S(b.$$.fragment,p),S(H),S(L),S(M),N=!1},d(p){p&&d(e),z&&z.d(),ae(b),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,b=>a(1,s=b)),he(n,fe,b=>a(5,f=b));let{event:o}=e;const g={link:Ze};function h(b){if(!!b)return b.map(F=>s.spec.speakers.find(K=>K.id===F))}function u(b){const F=s.spec.tracks.find(K=>K.id===b);return F.shortname||F.name}function _(b){return s.spec.events.filter(F=>F.parent===b.id)}const v=()=>ve(t.id,fe),k=b=>ve(b.id,fe);return n.$$set=b=>{"event"in b&&a(10,o=b.event)},n.$$.update=()=>{n.$$.dirty&1024&&a(0,t=o),n.$$.dirty&3&&a(4,l=Ge(t,s)),n.$$.dirty&1&&a(3,r=We(t)),n.$$.dirty&3&&a(2,i=s?s.spec.schedule.find(b=>b.event===t.id):null)},[t,s,i,r,l,f,g,h,u,_,o,v,k]}class rl extends Me{constructor(e){super();je(this,e,Xe,Ue,Ce,{event:10})}}export{rl as E,Re as a,ve as b,Ge as c};