utxo22-web/_app/pages/lide/_id_.svelte-620beeba.js

2 řádky
7.5 KiB
JavaScript

import{S as Te,i as Pe,s as Ue,e as w,w as re,k as C,t as D,c as $,a as E,x as se,d as m,m as T,h as I,b as p,g as P,F as u,y as ae,j as W,q as b,o as V,B as ne,p as J,H as ke,n as K,E as he,l as we,G as ze}from"../../chunks/index-24e5a832.js";import{A as Be,S as Ce}from"../../chunks/Avatar-91f17a3c.js";import{E as He}from"../../chunks/Event-b65db9e9.js";import{p as qe}from"../../chunks/stores-90033a58.js";import{b as Fe}from"../../chunks/stores-13cf7036.js";import"../../chunks/EventTypeLabel-482441d5.js";import"../../chunks/index-3c937d7d.js";function $e(n,t,s){const e=n.slice();return e[6]=t[s],e}function Ee(n){let t,s,e,l,r,a,f,i,c,S=n[0].name+"",F,ie,G=Ae(n[0].country)+"",L,oe,Q,X,q,fe,M=n[0].tracks.map(n[5]).join(", ")+"",Y,ce,Z,y,U,z,ue,O=n[2].length+"",x,me,_e,N,j,A,B;e=new Be({props:{speaker:n[0],size:"big"}});let d=n[0].bio&&De(n),h=n[0].orgs&&Ie(n),g=n[0].twitter&&Ve(n),k=n[0].web&&n[0].web.url&&Se(n);const pe=[We,Ne],H=[];function ve(o,_){return o[2].length>0?0:1}return j=ve(n),A=H[j]=pe[j](n),{c(){t=w("div"),s=w("div"),re(e.$$.fragment),l=C(),r=w("div"),a=w("div"),f=D("P\u0159edn\xE1\u0161ej\xEDc\xED"),i=C(),c=w("h1"),F=D(S),ie=C(),L=D(G),oe=C(),d&&d.c(),Q=C(),h&&h.c(),X=C(),q=w("div"),fe=D("Sekce: "),Y=D(M),ce=C(),g&&g.c(),Z=C(),k&&k.c(),y=C(),U=w("div"),z=w("h2"),ue=D("Ud\xE1losti ("),x=D(O),me=D(")"),_e=C(),N=w("div"),A.c(),this.h()},l(o){t=$(o,"DIV",{class:!0});var _=E(t);s=$(_,"DIV",{});var R=E(s);se(e.$$.fragment,R),R.forEach(m),l=T(_),r=$(_,"DIV",{class:!0});var v=E(r);a=$(v,"DIV",{class:!0});var be=E(a);f=I(be,"P\u0159edn\xE1\u0161ej\xEDc\xED"),be.forEach(m),i=T(v),c=$(v,"H1",{class:!0});var ee=E(c);F=I(ee,S),ie=T(ee),L=I(ee,G),ee.forEach(m),oe=T(v),d&&d.l(v),Q=T(v),h&&h.l(v),X=T(v),q=$(v,"DIV",{class:!0});var de=E(q);fe=I(de,"Sekce: "),Y=I(de,M),de.forEach(m),ce=T(v),g&&g.l(v),Z=T(v),k&&k.l(v),v.forEach(m),_.forEach(m),y=T(o),U=$(o,"DIV",{class:!0});var te=E(U);z=$(te,"H2",{class:!0});var le=E(z);ue=I(le,"Ud\xE1losti ("),x=I(le,O),me=I(le,")"),le.forEach(m),_e=T(te),N=$(te,"DIV",{});var ge=E(N);A.l(ge),ge.forEach(m),te.forEach(m),this.h()},h(){p(a,"class","mb-4 text-md uppercase"),p(c,"class","text-2xl font-bold"),p(q,"class","mt-4"),p(r,"class","mt-4 sm:mt-0"),p(t,"class","sm:flex gap-10 mt-4"),p(z,"class","uppercase mb-4 text-md"),p(U,"class","mt-6")},m(o,_){P(o,t,_),u(t,s),ae(e,s,null),u(t,l),u(t,r),u(r,a),u(a,f),u(r,i),u(r,c),u(c,F),u(c,ie),u(c,L),u(r,oe),d&&d.m(r,null),u(r,Q),h&&h.m(r,null),u(r,X),u(r,q),u(q,fe),u(q,Y),u(r,ce),g&&g.m(r,null),u(r,Z),k&&k.m(r,null),P(o,y,_),P(o,U,_),u(U,z),u(z,ue),u(z,x),u(z,me),u(U,_e),u(U,N),H[j].m(N,null),B=!0},p(o,_){const R={};_&1&&(R.speaker=o[0]),e.$set(R),(!B||_&1)&&S!==(S=o[0].name+"")&&W(F,S),(!B||_&1)&&G!==(G=Ae(o[0].country)+"")&&W(L,G),o[0].bio?d?(d.p(o,_),_&1&&b(d,1)):(d=De(o),d.c(),b(d,1),d.m(r,Q)):d&&(K(),V(d,1,1,()=>{d=null}),J()),o[0].orgs?h?(h.p(o,_),_&1&&b(h,1)):(h=Ie(o),h.c(),b(h,1),h.m(r,X)):h&&(K(),V(h,1,1,()=>{h=null}),J()),(!B||_&1)&&M!==(M=o[0].tracks.map(o[5]).join(", ")+"")&&W(Y,M),o[0].twitter?g?g.p(o,_):(g=Ve(o),g.c(),g.m(r,Z)):g&&(g.d(1),g=null),o[0].web&&o[0].web.url?k?k.p(o,_):(k=Se(o),k.c(),k.m(r,null)):k&&(k.d(1),k=null),(!B||_&4)&&O!==(O=o[2].length+"")&&W(x,O);let v=j;j=ve(o),j===v?H[j].p(o,_):(K(),V(H[v],1,1,()=>{H[v]=null}),J(),A=H[j],A?A.p(o,_):(A=H[j]=pe[j](o),A.c()),b(A,1),A.m(N,null))},i(o){B||(b(e.$$.fragment,o),b(d),b(h),b(A),B=!0)},o(o){V(e.$$.fragment,o),V(d),V(h),V(A),B=!1},d(o){o&&m(t),ne(e),d&&d.d(),h&&h.d(),g&&g.d(),k&&k.d(),o&&m(y),o&&m(U),H[j].d()}}}function De(n){let t,s,e;return s=new Ce({props:{source:n[0].bio}}),{c(){t=w("div"),re(s.$$.fragment),this.h()},l(l){t=$(l,"DIV",{class:!0});var r=E(t);se(s.$$.fragment,r),r.forEach(m),this.h()},h(){p(t,"class","mt-4 text-blue-web italic")},m(l,r){P(l,t,r),ae(s,t,null),e=!0},p(l,r){const a={};r&1&&(a.source=l[0].bio),s.$set(a)},i(l){e||(b(s.$$.fragment,l),e=!0)},o(l){V(s.$$.fragment,l),e=!1},d(l){l&&m(t),ne(s)}}}function Ie(n){let t,s,e;return s=new Ce({props:{source:n[0].orgs}}),{c(){t=w("div"),re(s.$$.fragment),this.h()},l(l){t=$(l,"DIV",{class:!0});var r=E(t);se(s.$$.fragment,r),r.forEach(m),this.h()},h(){p(t,"class","mt-2 text-blue-web links")},m(l,r){P(l,t,r),ae(s,t,null),e=!0},p(l,r){const a={};r&1&&(a.source=l[0].orgs),s.$set(a)},i(l){e||(b(s.$$.fragment,l),e=!0)},o(l){V(s.$$.fragment,l),e=!1},d(l){l&&m(t),ne(s)}}}function Ve(n){let t,s,e,l,r=n[0].twitter+"",a,f;return{c(){t=w("div"),s=D("Twitter: "),e=w("a"),l=D("@"),a=D(r),this.h()},l(i){t=$(i,"DIV",{class:!0});var c=E(t);s=I(c,"Twitter: "),e=$(c,"A",{href:!0,target:!0,class:!0});var S=E(e);l=I(S,"@"),a=I(S,r),S.forEach(m),c.forEach(m),this.h()},h(){p(e,"href",f="https://twitter.com/"+n[0].twitter),p(e,"target","_blank"),p(e,"class","font-bold"),p(t,"class","mt-2")},m(i,c){P(i,t,c),u(t,s),u(t,e),u(e,l),u(e,a)},p(i,c){c&1&&r!==(r=i[0].twitter+"")&&W(a,r),c&1&&f!==(f="https://twitter.com/"+i[0].twitter)&&p(e,"href",f)},d(i){i&&m(t)}}}function Se(n){let t,s,e,l=(n[0].web.name||n[0].web.url.replace(/^https?:\/\//,""))+"",r,a;return{c(){t=w("div"),s=D("Web: "),e=w("a"),r=D(l),this.h()},l(f){t=$(f,"DIV",{class:!0});var i=E(t);s=I(i,"Web: "),e=$(i,"A",{href:!0,target:!0,class:!0});var c=E(e);r=I(c,l),c.forEach(m),i.forEach(m),this.h()},h(){p(e,"href",a=n[0].web.url),p(e,"target","_blank"),p(e,"class","font-bold"),p(t,"class","mt-2")},m(f,i){P(f,t,i),u(t,s),u(t,e),u(e,r)},p(f,i){i&1&&l!==(l=(f[0].web.name||f[0].web.url.replace(/^https?:\/\//,""))+"")&&W(r,l),i&1&&a!==(a=f[0].web.url)&&p(e,"href",a)},d(f){f&&m(t)}}}function Ne(n){let t;return{c(){t=D("Tento \u010Dlov\u011Bk zat\xEDm nem\xE1 v programu \u017E\xE1dnou ud\xE1lost.")},l(s){t=I(s,"Tento \u010Dlov\u011Bk zat\xEDm nem\xE1 v programu \u017E\xE1dnou ud\xE1lost.")},m(s,e){P(s,t,e)},p:he,i:he,o:he,d(s){s&&m(t)}}}function We(n){let t,s,e=n[2],l=[];for(let a=0;a<e.length;a+=1)l[a]=je($e(n,e,a));const r=a=>V(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a<l.length;a+=1)l[a].c();t=we()},l(a){for(let f=0;f<l.length;f+=1)l[f].l(a);t=we()},m(a,f){for(let i=0;i<l.length;i+=1)l[i].m(a,f);P(a,t,f),s=!0},p(a,f){if(f&4){e=a[2];let i;for(i=0;i<e.length;i+=1){const c=$e(a,e,i);l[i]?(l[i].p(c,f),b(l[i],1)):(l[i]=je(c),l[i].c(),b(l[i],1),l[i].m(t.parentNode,t))}for(K(),i=e.length;i<l.length;i+=1)r(i);J()}},i(a){if(!s){for(let f=0;f<e.length;f+=1)b(l[f]);s=!0}},o(a){l=l.filter(Boolean);for(let f=0;f<l.length;f+=1)V(l[f]);s=!1},d(a){ze(l,a),a&&m(t)}}}function je(n){let t,s;return t=new He({props:{event:n[6]}}),{c(){re(t.$$.fragment)},l(e){se(t.$$.fragment,e)},m(e,l){ae(t,e,l),s=!0},p(e,l){const r={};l&4&&(r.event=e[6]),t.$set(r)},i(e){s||(b(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){ne(t,e)}}}function Ge(n){let t,s,e=n[1]&&Ee(n);return{c(){t=w("section"),e&&e.c(),this.h()},l(l){t=$(l,"SECTION",{class:!0});var r=E(t);e&&e.l(r),r.forEach(m),this.h()},h(){p(t,"class","relative mx-auto py-10 px-6 max-w-6xl mb-10 text-blue-web")},m(l,r){P(l,t,r),e&&e.m(t,null),s=!0},p(l,[r]){l[1]?e?(e.p(l,r),r&2&&b(e,1)):(e=Ee(l),e.c(),b(e,1),e.m(t,null)):e&&(K(),V(e,1,1,()=>{e=null}),J())},i(l){s||(b(e),s=!0)},o(l){V(e),s=!1},d(l){l&&m(t),e&&e.d()}}}const Ye=!0;function Ae(n){const t=n.toUpperCase().split("").map(s=>127397+s.charCodeAt());return String.fromCodePoint(...t)}function Me(n,t,s){let e,l,r,a;ke(n,Fe,c=>s(1,r=c)),ke(n,qe,c=>s(4,a=c));function f(c){const S=r.spec.tracks.find(F=>F.id===c);return S.shortname||S.name}const i=c=>f(c);return n.$$.update=()=>{n.$$.dirty&18&&s(0,e=r?r.spec.speakers.find(c=>c.id===a.params.id):null),n.$$.dirty&3&&s(2,l=r.spec.events.filter(c=>c.speakers&&c.speakers.includes(e.id)))},[e,r,l,f,a,i]}class Ze extends Te{constructor(t){super();Pe(this,t,Me,Ge,Ue,{})}}export{Ze as default,Ye as prerender};