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

2 řádky
11 KiB
JavaScript
Surový Normální zobrazení Historie

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