utxo22-web/_app/chunks/Event-23b1e7be.js

4 řádky
16 KiB
JavaScript

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