utxo22-web/_app/pages/udalosti.svelte-d50bc60e.js

2 řádky
5.5 KiB
JavaScript

import{S as le,i as se,s as ae,e as w,w as X,k as L,t as P,c as I,a as D,x as j,d as m,m as T,h as R,b as E,g as S,F as b,y as F,j as C,q as k,o as V,B as G,p as H,G as re,R as ne,H as W,n as M}from"../chunks/index-e45cd9d1.js";import{p as ie}from"../chunks/stores-f185dc56.js";import{g as oe}from"../chunks/navigation-0e6511d1.js";import{b as fe}from"../chunks/stores-adaa4006.js";import{E as ue}from"../chunks/EventTypeLabel-daf6a539.js";import{A as ce,S as me,L as de}from"../chunks/Avatar-c9bb01c8.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-c650cd5f.js";function Y(n,t,o){const s=n.slice();return s[8]=t[o],s}function Z(n){let t,o,s,a,l,e=n[4](n[1].track)+"",f,i,v,g=n[1].duration+"",u,d,h,$,A=n[1].name+"",z,B,y,U,q;s=new ue({props:{event:n[1],size:"big"}});let p=n[1].speakers&&n[1].speakers.length>0&&x(n),_=n[1].description&&te(n);return{c(){t=w("div"),o=w("div"),X(s.$$.fragment),a=L(),l=w("div"),f=P(e),i=L(),v=w("div"),u=P(g),d=P("m"),h=L(),$=w("h1"),z=P(A),B=L(),p&&p.c(),y=L(),U=w("div"),_&&_.c(),this.h()},l(r){t=I(r,"DIV",{class:!0});var c=D(t);o=I(c,"DIV",{});var O=D(o);j(s.$$.fragment,O),O.forEach(m),a=T(c),l=I(c,"DIV",{class:!0});var J=D(l);f=R(J,e),J.forEach(m),i=T(c),v=I(c,"DIV",{class:!0});var N=D(v);u=R(N,g),d=R(N,"m"),N.forEach(m),c.forEach(m),h=T(r),$=I(r,"H1",{class:!0});var K=D($);z=R(K,A),K.forEach(m),B=T(r),p&&p.l(r),y=T(r),U=I(r,"DIV",{class:!0});var Q=D(U);_&&_.l(Q),Q.forEach(m),this.h()},h(){E(l,"class","text-md my-auto"),E(v,"class","text-sm my-auto"),E(t,"class","mb-6 flex flex-wrap gap-4"),E($,"class","text-2xl font-bold"),E(U,"class","mt-8")},m(r,c){S(r,t,c),b(t,o),F(s,o,null),b(t,a),b(t,l),b(l,f),b(t,i),b(t,v),b(v,u),b(v,d),S(r,h,c),S(r,$,c),b($,z),S(r,B,c),p&&p.m(r,c),S(r,y,c),S(r,U,c),_&&_.m(U,null),q=!0},p(r,c){const O={};c&2&&(O.event=r[1]),s.$set(O),(!q||c&2)&&e!==(e=r[4](r[1].track)+"")&&C(f,e),(!q||c&2)&&g!==(g=r[1].duration+"")&&C(u,g),(!q||c&2)&&A!==(A=r[1].name+"")&&C(z,A),r[1].speakers&&r[1].speakers.length>0?p?(p.p(r,c),c&2&&k(p,1)):(p=x(r),p.c(),k(p,1),p.m(y.parentNode,y)):p&&(M(),V(p,1,1,()=>{p=null}),H()),r[1].description?_?(_.p(r,c),c&2&&k(_,1)):(_=te(r),_.c(),k(_,1),_.m(U,null)):_&&(M(),V(_,1,1,()=>{_=null}),H())},i(r){q||(k(s.$$.fragment,r),k(p),k(_),q=!0)},o(r){V(s.$$.fragment,r),V(p),V(_),q=!1},d(r){r&&m(t),G(s),r&&m(h),r&&m($),r&&m(B),p&&p.d(r),r&&m(y),r&&m(U),_&&_.d()}}}function x(n){let t,o,s=n[3](n[1].speakers),a=[];for(let e=0;e<s.length;e+=1)a[e]=ee(Y(n,s,e));const l=e=>V(a[e],1,1,()=>{a[e]=null});return{c(){t=w("div");for(let e=0;e<a.length;e+=1)a[e].c();this.h()},l(e){t=I(e,"DIV",{class:!0});var f=D(t);for(let i=0;i<a.length;i+=1)a[i].l(f);f.forEach(m),this.h()},h(){E(t,"class","mt-4 mb-2 flex flex-wrap gap-4")},m(e,f){S(e,t,f);for(let i=0;i<a.length;i+=1)a[i].m(t,null);o=!0},p(e,f){if(f&10){s=e[3](e[1].speakers);let i;for(i=0;i<s.length;i+=1){const v=Y(e,s,i);a[i]?(a[i].p(v,f),k(a[i],1)):(a[i]=ee(v),a[i].c(),k(a[i],1),a[i].m(t,null))}for(M(),i=s.length;i<a.length;i+=1)l(i);H()}},i(e){if(!o){for(let f=0;f<s.length;f+=1)k(a[f]);o=!0}},o(e){a=a.filter(Boolean);for(let f=0;f<a.length;f+=1)V(a[f]);o=!1},d(e){e&&m(t),re(a,e)}}}function ee(n){let t,o,s,a,l,e=n[8].name+"",f,i,v,g;return o=new ce({props:{speaker:n[8],size:"semi-small"}}),{c(){t=w("div"),X(o.$$.fragment),s=L(),a=w("div"),l=w("a"),f=P(e),v=L(),this.h()},l(u){t=I(u,"DIV",{class:!0});var d=D(t);j(o.$$.fragment,d),s=T(d),a=I(d,"DIV",{class:!0});var h=D(a);l=I(h,"A",{href:!0,class:!0});var $=D(l);f=R($,e),$.forEach(m),h.forEach(m),v=T(d),d.forEach(m),this.h()},h(){E(l,"href",i="/lide?id="+n[8].id),E(l,"class","text-xl"),E(a,"class","m-auto"),E(t,"class","flex gap-2")},m(u,d){S(u,t,d),F(o,t,null),b(t,s),b(t,a),b(a,l),b(l,f),b(t,v),g=!0},p(u,d){const h={};d&2&&(h.speaker=u[8]),o.$set(h),(!g||d&2)&&e!==(e=u[8].name+"")&&C(f,e),(!g||d&2&&i!==(i="/lide?id="+u[8].id))&&E(l,"href",i)},i(u){g||(k(o.$$.fragment,u),g=!0)},o(u){V(o.$$.fragment,u),g=!1},d(u){u&&m(t),G(o)}}}function te(n){let t,o;return t=new me({props:{source:n[1].description,renderers:n[2]}}),{c(){X(t.$$.fragment)},l(s){j(t.$$.fragment,s)},m(s,a){F(t,s,a),o=!0},p(s,a){const l={};a&2&&(l.source=s[1].description),t.$set(l)},i(s){o||(k(t.$$.fragment,s),o=!0)},o(s){V(t.$$.fragment,s),o=!1},d(s){G(t,s)}}}function pe(n){let t,o,s,a;document.title=t=(n[1]?n[1].name:"")+" | Ud\xE1losti | "+(n[0]?n[0].name:"UTXO.22");let l=n[0]&&n[1]&&Z(n);return{c(){o=L(),s=w("section"),l&&l.c(),this.h()},l(e){ne('[data-svelte="svelte-1eaumes"]',document.head).forEach(m),o=T(e),s=I(e,"SECTION",{class:!0});var i=D(s);l&&l.l(i),i.forEach(m),this.h()},h(){E(s,"class","relative mx-auto py-6 sm:py-10 px-6 max-w-6xl text-blue-web")},m(e,f){S(e,o,f),S(e,s,f),l&&l.m(s,null),a=!0},p(e,[f]){(!a||f&3)&&t!==(t=(e[1]?e[1].name:"")+" | Ud\xE1losti | "+(e[0]?e[0].name:"UTXO.22"))&&(document.title=t),e[0]&&e[1]?l?(l.p(e,f),f&3&&k(l,1)):(l=Z(e),l.c(),k(l,1),l.m(s,null)):l&&(M(),V(l,1,1,()=>{l=null}),H())},i(e){a||(k(l),a=!0)},o(e){V(l),a=!1},d(e){e&&m(o),e&&m(s),l&&l.d()}}}const Ie=!0;function _e(n,t,o){let s,a,l,e;W(n,fe,u=>o(0,l=u)),W(n,ie,u=>o(6,e=u));const f={link:de};function i(u){const h=new URLSearchParams(u).get("id");return l.spec.events.find($=>$.id===h)||oe("/"),h}function v(u){if(!!u)return u.map(d=>l.spec.speakers.find(h=>h.id===d))}function g(u){const d=l.spec.tracks.find(h=>h.id===u);return d.shortname||d.name}return n.$$.update=()=>{n.$$.dirty&64&&o(5,s=i(e.url.search)),n.$$.dirty&33&&o(1,a=l?l.spec.events.find(u=>u.id===s):null)},[l,a,f,v,g,s,e]}class De extends le{constructor(t){super();se(this,t,_e,pe,ae,{})}}export{De as default,Ie as prerender};