utxo22-web/_app/pages/program.svelte-0d010971.js

2 řádky
11 KiB
JavaScript

import{S as De,i as Ie,s as Ve,e as k,k as S,t as O,c as E,a as $,d as p,m as j,h as T,b as g,g as z,F as v,E as L,w as le,x as ae,y as se,K as ye,j as G,q as I,o as P,B as re,p as q,G as W,Q as Pe,H as fe,n as C,l as ue}from"../chunks/index-24e5a832.js";import{u as te,b as Se}from"../chunks/stores-13cf7036.js";import{A as we}from"../chunks/Avatar-d8aeac0d.js";import"../chunks/index-3c937d7d.js";function je(i){let e,r,n,t,f=i[0].title+"",s;return{c(){e=k("div"),r=k("div"),n=S(),t=k("div"),s=O(f),this.h()},l(a){e=E(a,"DIV",{class:!0});var l=$(e);r=E(l,"DIV",{class:!0}),$(r).forEach(p),n=j(l),t=E(l,"DIV",{class:!0});var o=$(t);s=T(o,f),o.forEach(p),l.forEach(p),this.h()},h(){g(r,"class","w-1 rounded-l-sm "+i[0].style),g(t,"class","px-1.5 py-0.5 rounded-r-sm bg-gray-100 uppercase"),g(e,"class","text-xs flex h-5")},m(a,l){z(a,e,l),v(e,r),v(e,n),v(e,t),v(t,s)},p:L,i:L,o:L,d(a){a&&p(e)}}}function Ae(i,e,r){let{event:n={}}=e;const f={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"}}[n.type];return i.$$set=s=>{"event"in s&&r(1,n=s.event)},[f,n]}class Be extends De{constructor(e){super();Ie(this,e,Ae,je,Ve,{event:1})}}function de(i,e,r){const n=i.slice();return n[7]=e[r],n}function he(i,e,r){const n=i.slice();return n[10]=e[r],n}function ve(i,e,r){const n=i.slice();return n[13]=e[r],n}function _e(i,e,r){const n=i.slice();return n[13]=e[r],n}function pe(i){let e,r,n=i[2](i[7].speakers),t=[];for(let s=0;s<n.length;s+=1)t[s]=me(_e(i,n,s));const f=s=>P(t[s],1,1,()=>{t[s]=null});return{c(){e=k("div");for(let s=0;s<t.length;s+=1)t[s].c();this.h()},l(s){e=E(s,"DIV",{class:!0});var a=$(e);for(let l=0;l<t.length;l+=1)t[l].l(a);a.forEach(p),this.h()},h(){g(e,"class","mt-1 mb-2 flex flex-wrap gap-2")},m(s,a){z(s,e,a);for(let l=0;l<t.length;l+=1)t[l].m(e,null);r=!0},p(s,a){if(a&6){n=s[2](s[7].speakers);let l;for(l=0;l<n.length;l+=1){const o=_e(s,n,l);t[l]?(t[l].p(o,a),I(t[l],1)):(t[l]=me(o),t[l].c(),I(t[l],1),t[l].m(e,null))}for(C(),l=n.length;l<t.length;l+=1)f(l);q()}},i(s){if(!r){for(let a=0;a<n.length;a+=1)I(t[a]);r=!0}},o(s){t=t.filter(Boolean);for(let a=0;a<t.length;a+=1)P(t[a]);r=!1},d(s){s&&p(e),W(t,s)}}}function me(i){let e,r,n,t,f,s=i[13].name+"",a,l,o,d;return r=new we({props:{speaker:i[13],size:"extra-small"}}),{c(){e=k("div"),le(r.$$.fragment),n=S(),t=k("div"),f=k("a"),a=O(s),o=S(),this.h()},l(h){e=E(h,"DIV",{class:!0});var c=$(e);ae(r.$$.fragment,c),n=j(c),t=E(c,"DIV",{class:!0});var V=$(t);f=E(V,"A",{href:!0});var u=$(f);a=T(u,s),u.forEach(p),V.forEach(p),o=j(c),c.forEach(p),this.h()},h(){g(f,"href",l="/lide/"+i[13].id),g(t,"class","m-auto"),g(e,"class","flex gap-1.5")},m(h,c){z(h,e,c),se(r,e,null),v(e,n),v(e,t),v(t,f),v(f,a),v(e,o),d=!0},p(h,c){const V={};c&2&&(V.speaker=h[13]),r.$set(V),(!d||c&2)&&s!==(s=h[13].name+"")&&G(a,s),(!d||c&2&&l!==(l="/lide/"+h[13].id))&&g(f,"href",l)},i(h){d||(I(r.$$.fragment,h),d=!0)},o(h){P(r.$$.fragment,h),d=!1},d(h){h&&p(e),re(r)}}}function ge(i){let e,r,n,t=i[4](i[7]),f=[];for(let a=0;a<t.length;a+=1)f[a]=ke(he(i,t,a));const s=a=>P(f[a],1,1,()=>{f[a]=null});return{c(){e=k("div"),r=k("div");for(let a=0;a<f.length;a+=1)f[a].c();this.h()},l(a){e=E(a,"DIV",{class:!0});var l=$(e);r=E(l,"DIV",{class:!0,cellpadding:!0});var o=$(r);for(let d=0;d<f.length;d+=1)f[d].l(o);o.forEach(p),l.forEach(p),this.h()},h(){g(r,"class","flex flex-wrap gap-2"),g(r,"cellpadding","5"),g(e,"class","mt-4 w-auto mb-2")},m(a,l){z(a,e,l),v(e,r);for(let o=0;o<f.length;o+=1)f[o].m(r,null);n=!0},p(a,l){if(l&22){t=a[4](a[7]);let o;for(o=0;o<t.length;o+=1){const d=he(a,t,o);f[o]?(f[o].p(d,l),I(f[o],1)):(f[o]=ke(d),f[o].c(),I(f[o],1),f[o].m(r,null))}for(C(),o=t.length;o<f.length;o+=1)s(o);q()}},i(a){if(!n){for(let l=0;l<t.length;l+=1)I(f[l]);n=!0}},o(a){f=f.filter(Boolean);for(let l=0;l<f.length;l+=1)P(f[l]);n=!1},d(a){a&&p(e),W(f,a)}}}function Oe(i){let e,r,n=i[2](i[10].speakers),t=[];for(let s=0;s<n.length;s+=1)t[s]=be(ve(i,n,s));const f=s=>P(t[s],1,1,()=>{t[s]=null});return{c(){for(let s=0;s<t.length;s+=1)t[s].c();e=ue()},l(s){for(let a=0;a<t.length;a+=1)t[a].l(s);e=ue()},m(s,a){for(let l=0;l<t.length;l+=1)t[l].m(s,a);z(s,e,a),r=!0},p(s,a){if(a&22){n=s[2](s[10].speakers);let l;for(l=0;l<n.length;l+=1){const o=ve(s,n,l);t[l]?(t[l].p(o,a),I(t[l],1)):(t[l]=be(o),t[l].c(),I(t[l],1),t[l].m(e.parentNode,e))}for(C(),l=n.length;l<t.length;l+=1)f(l);q()}},i(s){if(!r){for(let a=0;a<n.length;a+=1)I(t[a]);r=!0}},o(s){t=t.filter(Boolean);for(let a=0;a<t.length;a+=1)P(t[a]);r=!1},d(s){W(t,s),s&&p(e)}}}function Te(i){let e,r;return{c(){e=k("div"),r=O("TBA")},l(n){e=E(n,"DIV",{});var t=$(e);r=T(t,"TBA"),t.forEach(p)},m(n,t){z(n,e,t),v(e,r)},p:L,i:L,o:L,d(n){n&&p(e)}}}function be(i){let e,r,n,t,f=i[13].name+"",s,a,l;return r=new we({props:{speaker:i[13],size:"micro"}}),{c(){e=k("div"),le(r.$$.fragment),n=k("div"),t=k("a"),s=O(f),this.h()},l(o){e=E(o,"DIV",{class:!0});var d=$(e);ae(r.$$.fragment,d),n=E(d,"DIV",{});var h=$(n);t=E(h,"A",{href:!0});var c=$(t);s=T(c,f),c.forEach(p),h.forEach(p),d.forEach(p),this.h()},h(){g(t,"href",a="/lide/"+i[13].id),g(e,"class","flex gap-1")},m(o,d){z(o,e,d),se(r,e,null),v(e,n),v(n,t),v(t,s),l=!0},p(o,d){const h={};d&2&&(h.speaker=o[13]),r.$set(h),(!l||d&2)&&f!==(f=o[13].name+"")&&G(s,f),(!l||d&2&&a!==(a="/lide/"+o[13].id))&&g(t,"href",a)},i(o){l||(I(r.$$.fragment,o),l=!0)},o(o){P(r.$$.fragment,o),l=!1},d(o){o&&p(e),re(r)}}}function ke(i){let e,r,n=i[10].name+"",t,f,s,a,l,o,d;const h=[Te,Oe],c=[];function V(u,m){return u[10].speakers.length===0?0:1}return a=V(i),l=c[a]=h[a](i),{c(){e=k("div"),r=k("div"),t=O(n),f=S(),s=k("div"),l.c(),o=S(),this.h()},l(u){e=E(u,"DIV",{class:!0});var m=$(e);r=E(m,"DIV",{class:!0});var _=$(r);t=T(_,n),_.forEach(p),f=j(m),s=E(m,"DIV",{class:!0});var A=$(s);l.l(A),A.forEach(p),o=j(m),m.forEach(p),this.h()},h(){g(r,"class","font-bold"),g(s,"class","mt-1"),g(e,"class","border rounded py-1.5 px-2.5 bg-gray-100 text-sm")},m(u,m){z(u,e,m),v(e,r),v(r,t),v(e,f),v(e,s),c[a].m(s,null),v(e,o),d=!0},p(u,m){(!d||m&2)&&n!==(n=u[10].name+"")&&G(t,n);let _=a;a=V(u),a===_?c[a].p(u,m):(C(),P(c[_],1,1,()=>{c[_]=null}),q(),l=c[a],l?l.p(u,m):(l=c[a]=h[a](u),l.c()),I(l,1),l.m(s,null))},i(u){d||(I(l),d=!0)},o(u){P(l),d=!1},d(u){u&&p(e),c[a].d()}}}function Ee(i){let e,r,n,t,f,s,a,l=i[7].name+"",o,d,h,c,V,u,m,_,A=i[3](i[7].track)+"",N,F,B,K=i[7].duration+"",Q,X,Y,Z=i[4](i[7]).length>0,R,U,J,x,ne,w=i[7].speakers&&i[7].speakers.length>0&&pe(i);u=new Be({props:{event:i[7]}});let y=Z&&ge(i);return{c(){e=k("div"),r=k("div"),n=k("i"),s=S(),a=k("div"),o=O(l),d=S(),w&&w.c(),h=S(),c=k("div"),V=k("div"),le(u.$$.fragment),m=S(),_=k("div"),N=O(A),F=S(),B=k("div"),Q=O(K),X=O("m"),Y=S(),y&&y.c(),R=S(),this.h()},l(b){e=E(b,"DIV",{class:!0});var D=$(e);r=E(D,"DIV",{class:!0});var M=$(r);n=E(M,"I",{class:!0,"utxo-event-id":!0}),$(n).forEach(p),M.forEach(p),s=j(D),a=E(D,"DIV",{class:!0});var oe=$(a);o=T(oe,l),oe.forEach(p),d=j(D),w&&w.l(D),h=j(D),c=E(D,"DIV",{class:!0});var H=$(c);V=E(H,"DIV",{});var ie=$(V);ae(u.$$.fragment,ie),ie.forEach(p),m=j(H),_=E(H,"DIV",{class:!0});var ce=$(_);N=T(ce,A),ce.forEach(p),F=j(H),B=E(H,"DIV",{class:!0});var ee=$(B);Q=T(ee,K),X=T(ee,"m"),ee.forEach(p),H.forEach(p),Y=j(D),y&&y.l(D),R=j(D),D.forEach(p),this.h()},h(){g(n,"class",t="fa-star "+(i[0].favoriteEvents.includes(i[7].id)?"fa-solid":"fa-regular")+" cursor-pointer"),g(n,"utxo-event-id",f=i[7].id),g(r,"class","float-right"),g(a,"class","text-lg font-semibold"),g(_,"class","text-sm my-auto"),g(B,"class","text-xs my-auto"),g(c,"class","mt-2 text-sm flex flex-wrap gap-2"),g(e,"class",U="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(i[0].favoriteEvents.includes(i[7].id)?"bg-yellow-100":""))},m(b,D){z(b,e,D),v(e,r),v(r,n),v(e,s),v(e,a),v(a,o),v(e,d),w&&w.m(e,null),v(e,h),v(e,c),v(c,V),se(u,V,null),v(c,m),v(c,_),v(_,N),v(c,F),v(c,B),v(B,Q),v(B,X),v(e,Y),y&&y.m(e,null),v(e,R),J=!0,x||(ne=ye(n,"click",i[5]),x=!0)},p(b,D){(!J||D&3&&t!==(t="fa-star "+(b[0].favoriteEvents.includes(b[7].id)?"fa-solid":"fa-regular")+" cursor-pointer"))&&g(n,"class",t),(!J||D&2&&f!==(f=b[7].id))&&g(n,"utxo-event-id",f),(!J||D&2)&&l!==(l=b[7].name+"")&&G(o,l),b[7].speakers&&b[7].speakers.length>0?w?(w.p(b,D),D&2&&I(w,1)):(w=pe(b),w.c(),I(w,1),w.m(e,h)):w&&(C(),P(w,1,1,()=>{w=null}),q());const M={};D&2&&(M.event=b[7]),u.$set(M),(!J||D&2)&&A!==(A=b[3](b[7].track)+"")&&G(N,A),(!J||D&2)&&K!==(K=b[7].duration+"")&&G(Q,K),D&2&&(Z=b[4](b[7]).length>0),Z?y?(y.p(b,D),D&2&&I(y,1)):(y=ge(b),y.c(),I(y,1),y.m(e,R)):y&&(C(),P(y,1,1,()=>{y=null}),q()),(!J||D&3&&U!==(U="transition-all mb-4 border px-3 py-2 rounded-md shadow "+(b[0].favoriteEvents.includes(b[7].id)?"bg-yellow-100":"")))&&g(e,"class",U)},i(b){J||(I(w),I(u.$$.fragment,b),I(y),J=!0)},o(b){P(w),P(u.$$.fragment,b),P(y),J=!1},d(b){b&&p(e),w&&w.d(),re(u),y&&y.d(),x=!1,ne()}}}function ze(i){let e,r,n,t,f,s,a,l,o,d,h=i[1].spec.events.filter($e),c=[];for(let u=0;u<h.length;u+=1)c[u]=Ee(de(i,h,u));const V=u=>P(c[u],1,1,()=>{c[u]=null});return{c(){e=S(),r=k("section"),n=k("h1"),t=O("Program"),f=S(),s=k("div"),a=O("Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna par t\xFDdn\u016F p\u0159ed konferenc\xED."),l=S(),o=k("div");for(let u=0;u<c.length;u+=1)c[u].c();this.h()},l(u){Pe('[data-svelte="svelte-124umcn"]',document.head).forEach(p),e=j(u),r=E(u,"SECTION",{class:!0});var _=$(r);n=E(_,"H1",{class:!0});var A=$(n);t=T(A,"Program"),A.forEach(p),f=j(_),s=E(_,"DIV",{class:!0});var N=$(s);a=T(N,"Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna par t\xFDdn\u016F p\u0159ed konferenc\xED."),N.forEach(p),l=j(_),o=E(_,"DIV",{class:!0});var F=$(o);for(let B=0;B<c.length;B+=1)c[B].l(F);F.forEach(p),_.forEach(p),this.h()},h(){document.title="Program | UTXO.22",g(n,"class","uppercase text-2xl font-bold"),g(s,"class","mt-2 text-sm"),g(o,"class","mt-6"),g(r,"class","relative mx-auto py-10 px-6 max-w-6xl mb-10 text-blue-web")},m(u,m){z(u,e,m),z(u,r,m),v(r,n),v(n,t),v(r,f),v(r,s),v(s,a),v(r,l),v(r,o);for(let _=0;_<c.length;_+=1)c[_].m(o,null);d=!0},p(u,[m]){if(m&63){h=u[1].spec.events.filter($e);let _;for(_=0;_<h.length;_+=1){const A=de(u,h,_);c[_]?(c[_].p(A,m),I(c[_],1)):(c[_]=Ee(A),c[_].c(),I(c[_],1),c[_].m(o,null))}for(C(),_=h.length;_<c.length;_+=1)V(_);q()}},i(u){if(!d){for(let m=0;m<h.length;m+=1)I(c[m]);d=!0}},o(u){c=c.filter(Boolean);for(let m=0;m<c.length;m+=1)P(c[m]);d=!1},d(u){u&&p(e),u&&p(r),W(c,u)}}}const He=!0,$e=i=>!i.parent;function Je(i,e,r){let n,t;fe(i,te,d=>r(0,n=d)),fe(i,Se,d=>r(1,t=d));const f=localStorage.getItem("userData");f&&te.set(JSON.parse(f));function s(d){if(!!d)return d.map(h=>t.spec.speakers.find(c=>c.id===h))}function a(d){const h=t.spec.tracks.find(c=>c.id===d);return h.shortname||h.name}function l(d){return t.spec.events.filter(h=>h.parent===d.id)}function o(d){const h=d.target.getAttribute("utxo-event-id");te.update(c=>{const V=c.favoriteEvents;let u=null;return V.includes(h)?u=Object.assign(n,{favoriteEvents:V.filter(m=>m!==h)}):(V.push(h),u=Object.assign(n,{favoriteEvents:V})),localStorage.setItem("userData",JSON.stringify(u)),u})}return[n,t,s,a,l,o]}class Le extends De{constructor(e){super();Ie(this,e,Je,ze,Ve,{})}}export{Le as default,He as prerender};