utxo22-web/_app/chunks/Event-40b7b6ad.js

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

import{S as ve,i as _e,s as pe,e as m,k as z,t as F,c as g,a as b,d as h,m as B,h as L,b as _,g as C,F as d,j as me,E as G,q as A,w as W,x as J,y as Q,o as j,B as U,n as X,p as Y,G as Z,K as ge,H as se,l as re}from"./index-e45cd9d1.js";import{A as be}from"./Avatar-f71fd69a.js";import{a as ie,b as ke}from"./stores-adaa4006.js";function Ee(r){let e,a,i,t,o,n=r[1].title+"",l,s,c;return{c(){e=m("div"),a=m("div"),t=z(),o=m("div"),l=F(n),this.h()},l(v){e=g(v,"DIV",{class:!0});var u=b(e);a=g(u,"DIV",{class:!0}),b(a).forEach(h),t=B(u),o=g(u,"DIV",{class:!0});var f=b(o);l=L(f,n),f.forEach(h),u.forEach(h),this.h()},h(){_(a,"class",i="w-1 rounded-l-sm "+r[1].style),_(o,"class",s=(r[0]==="big"?"px-2 py-0.5":"px-1.5 py-0.5")+" rounded-r-sm bg-gray-100 uppercase"),_(e,"class",c="flex "+(r[0]==="big"?"h-6 text-sm":"h-5 text-xs"))},m(v,u){C(v,e,u),d(e,a),d(e,t),d(e,o),d(o,l)},p(v,[u]){u&2&&i!==(i="w-1 rounded-l-sm "+v[1].style)&&_(a,"class",i),u&2&&n!==(n=v[1].title+"")&&me(l,n),u&1&&s!==(s=(v[0]==="big"?"px-2 py-0.5":"px-1.5 py-0.5")+" rounded-r-sm bg-gray-100 uppercase")&&_(o,"class",s),u&1&&c!==(c="flex "+(v[0]==="big"?"h-6 text-sm":"h-5 text-xs"))&&_(e,"class",c)},i:G,o:G,d(v){v&&h(e)}}}function ye(r,e,a){let i,{event:t={}}=e,{size:o=null}=e;const n={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"},lightning:{title:"Lightning talk",style:"bg-pink-400"}};return r.$$set=l=>{"event"in l&&a(2,t=l.event),"size"in l&&a(0,o=l.size)},r.$$.update=()=>{r.$$.dirty&4&&a(1,i=n[t.type])},[o,i,t]}class De extends ve{constructor(e){super();_e(this,e,ye,Ee,pe,{event:2,size:0})}}function Ie(r,e){if(!e)return 0;if(r.duration)return r.duration;const a=e.spec.events.filter(i=>i.parent===r.id);if(a.length>0){let i=a.reduce((t,o)=>t+(o.duration?o.duration:0),0);return i+=5*(a.length-1),i}}function ne(r,e,a){const i=r.slice();return i[9]=e[a],i}function oe(r,e,a){const i=r.slice();return i[12]=e[a],i}function fe(r,e,a){const i=r.slice();return i[12]=e[a],i}function we(r){let e,a,i=r[3](r[2].speakers),t=[];for(let n=0;n<i.length;n+=1)t[n]=ce(fe(r,i,n));const o=n=>j(t[n],1,1,()=>{t[n]=null});return{c(){e=m("div");for(let n=0;n<t.length;n+=1)t[n].c();this.h()},l(n){e=g(n,"DIV",{class:!0});var l=b(e);for(let s=0;s<t.length;s+=1)t[s].l(l);l.forEach(h),this.h()},h(){_(e,"class","mt-1 mb-2 flex flex-wrap gap-2")},m(n,l){C(n,e,l);for(let s=0;s<t.length;s+=1)t[s].m(e,null);a=!0},p(n,l){if(l&12){i=n[3](n[2].speakers);let s;for(s=0;s<i.length;s+=1){const c=fe(n,i,s);t[s]?(t[s].p(c,l),A(t[s],1)):(t[s]=ce(c),t[s].c(),A(t[s],1),t[s].m(e,null))}for(X(),s=i.length;s<t.length;s+=1)o(s);Y()}},i(n){if(!a){for(let l=0;l<i.length;l+=1)A(t[l]);a=!0}},o(n){t=t.filter(Boolean);for(let l=0;l<t.length;l+=1)j(t[l]);a=!1},d(n){n&&h(e),Z(t,n)}}}function ce(r){let e,a,i,t,o,n=r[12].name+"",l,s,c,v;return a=new be({props:{speaker:r[12],size:"extra-small"}}),{c(){e=m("div"),W(a.$$.fragment),i=z(),t=m("div"),o=m("a"),l=F(n),c=z(),this.h()},l(u){e=g(u,"DIV",{class:!0});var f=b(e);J(a.$$.fragment,f),i=B(f),t=g(f,"DIV",{class:!0});var p=b(t);o=g(p,"A",{href:!0});var k=b(o);l=L(k,n),k.forEach(h),p.forEach(h),c=B(f),f.forEach(h),this.h()},h(){_(o,"href",s="/lide?id="+r[12].id),_(t,"class","m-auto"),_(e,"class","flex gap-1.5")},m(u,f){C(u,e,f),Q(a,e,null),d(e,i),d(e,t),d(t,o),d(o,l),d(e,c),v=!0},p:G,i(u){v||(A(a.$$.fragment,u),v=!0)},o(u){j(a.$$.fragment,u),v=!1},d(u){u&&h(e),U(a)}}}function ue(r){let e,a,i;return{c(){e=m("div"),a=F(r[0]),i=F("m"),this.h()},l(t){e=g(t,"DIV",{class:!0});var o=b(e);a=L(o,r[0]),i=L(o,"m"),o.forEach(h),this.h()},h(){_(e,"class","text-xs my-auto")},m(t,o){C(t,e,o),d(e,a),d(e,i)},p(t,o){o&1&&me(a,t[0])},d(t){t&&h(e)}}}function Ve(r){let e,a,i,t=r[5](r[2]),o=[];for(let l=0;l<t.length;l+=1)o[l]=he(ne(r,t,l));const n=l=>j(o[l],1,1,()=>{o[l]=null});return{c(){e=m("div"),a=m("div");for(let l=0;l<o.length;l+=1)o[l].c();this.h()},l(l){e=g(l,"DIV",{class:!0});var s=b(e);a