utxo22-web/_app/pages/program.svelte-427f5562.js

2 řádky
9.5 KiB
JavaScript

import{S as he,i as de,s as ve,e as m,k as B,t as j,c as g,a as b,d as _,m as x,h as z,b as E,g as T,G as d,E as N,w as K,x as Q,y as U,j as O,q as $,o as y,B as X,p as C,H as M,I as pe,n as H,l as ee}from"../chunks/index-a2ca1b26.js";import{b as me}from"../chunks/stores-bfd230c4.js";import{A as _e}from"../chunks/Avatar-689fb15c.js";import"../chunks/index-ed9d6cc1.js";function ge(c){let t,a,s,r,i=c[0].title+"",n;return{c(){t=m("div"),a=m("div"),s=B(),r=m("div"),n=j(i),this.h()},l(e){t=g(e,"DIV",{class:!0});var l=b(t);a=g(l,"DIV",{class:!0}),b(a).forEach(_),s=x(l),r=g(l,"DIV",{class:!0});var o=b(r);n=z(o,i),o.forEach(_),l.forEach(_),this.h()},h(){E(a,"class","w-1 rounded-l-sm "+c[0].style),E(r,"class","px-1.5 py-0.5 rounded-r-sm bg-gray-100 uppercase"),E(t,"class","text-xs flex h-5")},m(e,l){T(e,t,l),d(t,a),d(t,s),d(t,r),d(r,n)},p:N,i:N,o:N,d(e){e&&_(t)}}}function be(c,t,a){let{event:s={}}=t;const i={panel:{title:"Panelov\xE1 debata",style:"bg-custom-red text-white"},talk:{title:"P\u0159edn\xE1\u0161ka",style:"bg-custom-green text-white"},workshop:{title:"Workshop",style:"bg-custom-blue text-white"},other:{title:"Ostatn\xED",style:"bg-custom-yellow"}}[s.type];return c.$$set=n=>{"event"in n&&a(1,s=n.event)},[i,s]}class ke extends he{constructor(t){super();de(this,t,be,ge,ve,{event:1})}}function te(c,t,a){const s=c.slice();return s[4]=t[a],s}function le(c,t,a){const s=c.slice();return s[7]=t[a],s}function re(c,t,a){const s=c.slice();return s[10]=t[a],s}function ne(c,t,a){const s=c.slice();return s[10]=t[a],s}function ae(c){let t,a,s=c[1](c[4].speakers),r=[];for(let n=0;n<s.length;n+=1)r[n]=se(ne(c,s,n));const i=n=>y(r[n],1,1,()=>{r[n]=null});return{c(){t=m("div");for(let n=0;n<r.length;n+=1)r[n].c();this.h()},l(n){t=g(n,"DIV",{class:!0});var e=b(t);for(let l=0;l<r.length;l+=1)r[l].l(e);e.forEach(_),this.h()},h(){E(t,"class","mt-1 mb-2 flex flex-wrap gap-2")},m(n,e){T(n,t,e);for(let l=0;l<r.length;l+=1)r[l].m(t,null);a=!0},p(n,e){if(e&3){s=n[1](n[4].speakers);let l;for(l=0;l<s.length;l+=1){const o=ne(n,s,l);r[l]?(r[l].p(o,e),$(r[l],1)):(r[l]=se(o),r[l].c(),$(r[l],1),r[l].m(t,null))}for(H(),l=s.length;l<r.length;l+=1)i(l);C()}},i(n){if(!a){for(let e=0;e<s.length;e+=1)$(r[e]);a=!0}},o(n){r=r.filter(Boolean);for(let e=0;e<r.length;e+=1)y(r[e]);a=!1},d(n){n&&_(t),M(r,n)}}}function se(c){let t,a,s,r,i=c[10].name+"",n,e,l;return a=new _e({props:{speaker:c[10],size:"extra-small"}}),{c(){t=m("div"),K(a.$$.fragment),s=B(),r=m("div"),n=j(i),e=B(),this.h()},l(o){t=g(o,"DIV",{class:!0});var v=b(t);Q(a.$$.fragment,v),s=x(v),r=g(v,"DIV",{class:!0});var u=b(r);n=z(u,i),u.forEach(_),e=x(v),v.forEach(_),this.h()},h(){E(r,"class","m-auto"),E(t,"class","flex gap-1.5")},m(o,v){T(o,t,v),U(a,t,null),d(t,s),d(t,r),d(r,n),d(t,e),l=!0},p(o,v){const u={};v&1&&(u.speaker=o[10]),a.$set(u),(!l||v&1)&&i!==(i=o[10].name+"")&&O(n,i)},i(o){l||($(a.$$.fragment,o),l=!0)},o(o){y(a.$$.fragment,o),l=!1},d(o){o&&_(t),X(a)}}}function oe(c){let t,a,s,r=c[3](c[4]),i=[];for(let e=0;e<r.length;e+=1)i[e]=ce(le(c,r,e));const n=e=>y(i[e],1,1,()=>{i[e]=null});return{c(){t=m("div"),a=m("div");for(let e=0;e<i.length;e+=1)i[e].c();this.h()},l(e){t=g(e,"DIV",{class:!0});var l=b(t);a=g(l,"DIV",{class:!0,cellpadding:!0});var o=b(a);for(let v=0;v<i.length;v+=1)i[v].l(o);o.forEach(_),l.forEach(_),this.h()},h(){E(a,"class","flex flex-wrap gap-2"),E(a,"cellpadding","5"),E(t,"class","p-2 mt-2 w-auto")},m(e,l){T(e,t,l),d(t,a);for(let o=0;o<i.length;o+=1)i[o].m(a,null);s=!0},p(e,l){if(l&11){r=e[3](e[4]);let o;for(o=0;o<r.length;o+=1){const v=le(e,r,o);i[o]?(i[o].p(v,l),$(i[o],1)):(i[o]=ce(v),i[o].c(),$(i[o],1),i[o].m(a,null))}for(H(),o=r.length;o<i.length;o+=1)n(o);C()}},i(e){if(!s){for(let l=0;l<r.length;l+=1)$(i[l]);s=!0}},o(e){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)y(i[l]);s=!1},d(e){e&&_(t),M(i,e)}}}function $e(c){let t,a,s=c[1](c[7].speakers),r=[];for(let n=0;n<s.length;n+=1)r[n]=ie(re(c,s,n));const i=n=>y(r[n],1,1,()=>{r[n]=null});return{c(){for(let n=0;n<r.length;n+=1)r[n].c();t=ee()},l(n){for(let e=0;e<r.length;e+=1)r[e].l(n);t=ee()},m(n,e){for(let l=0;l<r.length;l+=1)r[l].m(n,e);T(n,t,e),a=!0},p(n,e){if(e&11){s=n[1](n[7].speakers);let l;for(l=0;l<s.length;l+=1){const o=re(n,s,l);r[l]?(r[l].p(o,e),$(r[l],1)):(r[l]=ie(o),r[l].c(),$(r[l],1),r[l].m(t.parentNode,t))}for(H(),l=s.length;l<r.length;l+=1)i(l);C()}},i(n){if(!a){for(let e=0;e<s.length;e+=1)$(r[e]);a=!0}},o(n){r=r.filter(Boolean);for(let e=0;e<r.length;e+=1)y(r[e]);a=!1},d(n){M(r,n),n&&_(t)}}}function Ee(c){let t,a;return{c(){t=m("div"),a=j("TBA")},l(s){t=g(s,"DIV",{});var r=b(t);a=z(r,"TBA"),r.forEach(_)},m(s,r){T(s,t,r),d(t,a)},p:N,i:N,o:N,d(s){s&&_(t)}}}function ie(c){let t,a,s,r=c[10].name+"",i,n;return a=new _e({props:{speaker:c[10],size:"micro"}}),{c(){t=m("div"),K(a.$$.fragment),s=m("div"),i=j(r),this.h()},l(e){t=g(e,"DIV",{class:!0});var l=b(t);Q(a.$$.fragment,l),s=g(l,"DIV",{});var o=b(s);i=z(o,r),o.forEach(_),l.forEach(_),this.h()},h(){E(t,"class","flex gap-1")},m(e,l){T(e,t,l),U(a,t,null),d(t,s),d(s,i),n=!0},p(e,l){const o={};l&1&&(o.speaker=e[10]),a.$set(o),(!n||l&1)&&r!==(r=e[10].name+"")&&O(i,r)},i(e){n||($(a.$$.fragment,e),n=!0)},o(e){y(a.$$.fragment,e),n=!1},d(e){e&&_(t),X(a)}}}function ce(c){let t,a,s=c[7].name+"",r,i,n,e,l,o,v;const u=[Ee,$e],P=[];function p(h,f){return h[7].speakers.length===0?0:1}return e=p(c),l=P[e]=u[e](c),{c(){t=m("div"),a=m("div"),r=j(s),i=B(),n=m("div"),l.c(),o=B(),this.h()},l(h){t=g(h,"DIV",{class:!0});var f=b(t);a=g(f,"DIV",{class:!0});var w=b(a);r=z(w,s),w.forEach(_),i=x(f),n=g(f,"DIV",{class:!0});var A=b(n);l.l(A),A.forEach(_),o=x(f),f.forEach(_),this.h()},h(){E(a,"class","font-bold"),E(n,"class","mt-1"),E(t,"class","mb-2 border rounded-md py-1.5 px-2.5 bg-gray-100 text-sm")},m(h,f){T(h,t,f),d(t,a),d(a,r),d(t,i),d(t,n),P[e].m(n,null),d(t,o),v=!0},p(h,f){(!v||f&1)&&s!==(s=h[7].name+"")&&O(r,s);let w=e;e=p(h),e===w?P[e].p(h,f):(H(),y(P[w],1,1,()=>{P[w]=null}),C(),l=P[e],l?l.p(h,f):(l=P[e]=u[e](h),l.c()),$(l,1),l.m(n,null))},i(h){v||($(l),v=!0)},o(h){y(l),v=!1},d(h){h&&_(t),P[e].d()}}}function fe(c){let t,a,s=c[4].name+"",r,i,n,e,l,o,v,u,P=c[2](c[4].track)+"",p,h,f,w=c[4].duration+"",A,S,R,W=c[3](c[4]).length>0,L,q,D=c[4].speakers&&c[4].speakers.length>0&&ae(c);o=new ke({props:{event:c[4]}});let V=W&&oe(c);return{c(){t=m("div"),a=m("div"),r=j(s),i=B(),D&&D.c(),n=B(),e=m("div"),l=m("div"),K(o.$$.fragment),v=B(),u=m("div"),p=j(P),h=B(),f=m("div"),A=j(w),S=j("m"),R=B(),V&&V.c(),L=B(),this.h()},l(k){t=g(k,"DIV",{class:!0});var I=b(t);a=g(I,"DIV",{class:!0});var G=b(a);r=z(G,s),G.forEach(_),i=x(I),D&&D.l(I),n=x(I),e=g(I,"DIV",{class:!0});var J=b(e);l=g(J,"DIV",{});var Y=b(l);Q(o.$$.fragment,Y),Y.forEach(_),v=x(J),u=g(J,"DIV",{class:!0});var Z=b(u);p=z(Z,P),Z.forEach(_),h=x(J),f=g(J,"DIV",{class:!0});var F=b(f);A=z(F,w),S=z(F,"m"),F.forEach(_),J.forEach(_),R=x(I),V&&V.l(I),L=x(I),I.forEach(_),this.h()},h(){E(a,"class","text-lg font-semibold"),E(u,"class","text-sm my-auto"),E(f,"class","text-xs my-auto"),E(e,"class","mt-2 text-sm flex flex-wrap gap-2"),E(t,"class","mb-4 border px-3 py-2 rounded")},m(k,I){T(k,t,I),d(t,a),d(a,r),d(t,i),D&&D.m(t,null),d(t,n),d(t,e),d(e,l),U(o,l,null),d(e,v),d(e,u),d(u,p),d(e,h),d(e,f),d(f,A),d(f,S),d(t,R),V&&V.m(t,null),d(t,L),q=!0},p(k,I){(!q||I&1)&&s!==(s=k[4].name+"")&&O(r,s),k[4].speakers&&k[4].speakers.length>0?D?(D.p(k,I),I&1&&$(D,1)):(D=ae(k),D.c(),$(D,1),D.m(t,n)):D&&(H(),y(D,1,1,()=>{D=null}),C());const G={};I&1&&(G.event=k[4]),o.$set(G),(!q||I&1)&&P!==(P=k[2](k[4].track)+"")&&O(p,P),(!q||I&1)&&w!==(w=k[4].duration+"")&&O(A,w),I&1&&(W=k[3](k[4]).length>0),W?V?(V.p(k,I),I&1&&$(V,1)):(V=oe(k),V.c(),$(V,1),V.m(t,L)):V&&(H(),y(V,1,1,()=>{V=null}),C())},i(k){q||($(D),$(o.$$.fragment,k),$(V),q=!0)},o(k){y(D),y(o.$$.fragment,k),y(V),q=!1},d(k){k&&_(t),D&&D.d(),X(o),V&&V.d()}}}function Ie(c){let t,a,s,r,i,n,e,l,o,v=c[0].spec.events.filter(ue),u=[];for(let p=0;p<v.length;p+=1)u[p]=fe(te(c,v,p));const P=p=>y(u[p],1,1,()=>{u[p]=null});return{c(){t=m("section"),a=m("h1"),s=j("Program"),r=B(),i=m("div"),n=j("Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna par t\xFDdn\u016F p\u0159ed konferenc\xED."),e=B(),l=m("div");for(let p=0;p<u.length;p+=1)u[p].c();this.h()},l(p){t=g(p,"SECTION",{class:!0});var h=b(t);a=g(h,"H1",{class:!0});var f=b(a);s=z(f,"Program"),f.forEach(_),r=x(h),i=g(h,"DIV",{class:!0});var w=b(i);n=z(w,"Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna par t\xFDdn\u016F p\u0159ed konferenc\xED."),w.forEach(_),e=x(h),l=g(h,"DIV",{class:!0});var A=b(l);for(let S=0;S<u.length;S+=1)u[S].l(A);A.forEach(_),h.forEach(_),this.h()},h(){E(a,"class","uppercase text-2xl font-bold"),E(i,"class","mt-2 text-sm"),E(l,"class","mt-6 ml-2"),E(t,"class","relative mx-auto py-10 px-6 max-w-6xl mb-10 text-blue-web")},m(p,h){T(p,t,h),d(t,a),d(a,s),d(t,r),d(t,i),d(i,n),d(t,e),d(t,l);for(let f=0;f<u.length;f+=1)u[f].m(l,null);o=!0},p(p,[h]){if(h&15){v=p[0].spec.events.filter(ue);let f;for(f=0;f<v.length;f+=1){const w=te(p,v,f);u[f]?(u[f].p(w,h),$(u[f],1)):(u[f]=fe(w),u[f].c(),$(u[f],1),u[f].m(l,null))}for(H(),f=v.length;f<u.length;f+=1)P(f);C()}},i(p){if(!o){for(let h=0;h<v.length;h+=1)$(u[h]);o=!0}},o(p){u=u.filter(Boolean);for(let h=0;h<u.length;h+=1)y(u[h]);o=!1},d(p){p&&_(t),M(u,p)}}}const ue=c=>!c.parent;function De(c,t,a){let s;pe(c,me,e=>a(0,s=e));function r(e){if(!!e)return e.map(l=>s.spec.speakers.find(o=>o.id===l))}function i(e){const l=s.spec.tracks.find(o=>o.id===e);return l.shortname||l.name}function n(e){return s.spec.events.filter(l=>l.parent===e.id)}return[s,r,i,n]}class Be extends he{constructor(t){super();de(this,t,De,Ie,ve,{})}}export{Be as default};