utxo22-web/_app/pages/lide/_id_.svelte-bc2a3dc7.js

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

import{S as ce,i as ue,s as me,e as w,w as Z,k as j,t as I,c as k,a as $,x as y,d as h,m as A,h as V,b as p,g as T,F as f,y as x,j as H,q as E,o as S,B as ee,p as X,H as ae,n as Y}from"../../chunks/index-24e5a832.js";import{A as de,S as fe}from"../../chunks/Avatar-d8aeac0d.js";import{p as he}from"../../chunks/stores-90033a58.js";import{b as pe}from"../../chunks/stores-13cf7036.js";import"../../chunks/index-3c937d7d.js";function le(s){let a,r,e,l,t,o,u,i,c,D=s[0].name+"",U,G,q=oe(s[0].country)+"",W,J,z,M,C,K,B=s[0].tracks.map(s[4]).join(", ")+"",N,L,O,P;e=new de({props:{speaker:s[0],size:"big"}});let m=s[0].bio&&re(s),d=s[0].orgs&&se(s),v=s[0].twitter&&ie(s),b=s[0].web&&s[0].web.url&&ne(s);return{c(){a=w("div"),r=w("div"),Z(e.$$.fragment),l=j(),t=w("div"),o=w("div"),u=I("P\u0159edn\xE1\u0161ej\xEDc\xED"),i=j(),c=w("h1"),U=I(D),G=j(),W=I(q),J=j(),m&&m.c(),z=j(),d&&d.c(),M=j(),C=w("div"),K=I("Sekce: "),N=I(B),L=j(),v&&v.c(),O=j(),b&&b.c(),this.h()},l(n){a=k(n,"DIV",{class:!0});var _=$(a);r=k(_,"DIV",{});var F=$(r);y(e.$$.fragment,F),F.forEach(h),l=A(_),t=k(_,"DIV",{class:!0});var g=$(t);o=k(g,"DIV",{class:!0});var te=$(o);u=V(te,"P\u0159edn\xE1\u0161ej\xEDc\xED"),te.forEach(h),i=A(g),c=k(g,"H1",{class:!0});var R=$(c);U=V(R,D),G=A(R),W=V(R,q),R.forEach(h),J=A(g),m&&m.l(g),z=A(g),d&&d.l(g),M=A(g),C=k(g,"DIV",{class:!0});var Q=$(C);K=V(Q,"Sekce: "),N=V(Q,B),Q.forEach(h),L=A(g),v&&v.l(g),O=A(g),b&&b.l(g),g.forEach(h),_.forEach(h),this.h()},h(){p(o,"class","mb-4 text-sm uppercase"),p(c,"class","uppercase text-2xl font-bold"),p(C,"class","mt-4"),p(t,"class","mt-4 sm:mt-0"),p(a,"class","sm:flex gap-10 mt-4")},m(n,_){T(n,a,_),f(a,r),x(e,r,null),f(a,l),f(a,t),f(t,o),f(o,u),f(t,i),f(t,c),f(c,U),f(c,G),f(c,W),f(t,J),m&&m.m(t,null),f(t,z),d&&d.m(t,null),f(t,M),f(t,C),f(C,K),f(C,N),f(t,L),v&&v.m(t,null),f(t,O),b&&b.m(t,null),P=!0},p(n,_){const F={};_&1&&(F.speaker=n[0]),e.$set(F),(!P||_&1)&&D!==(D=n[0].name+"")&&H(U,D),(!P||_&1)&&q!==(q=oe(n[0].country)+"")&&H(W,q),n[0].bio?m?(m.p(n,_),_&1&&E(m,1)):(m=re(n),m.c(),E(m,1),m.m(t,z)):m&&(Y(),S(m,1,1,()=>{m=null}),X()),n[0].orgs?d?(d.p(n,_),_&1&&E(d,1)):(d=se(n),d.c(),E(d,1),d.m(t,M)):d&&(Y(),S(d,1,1,()=>{d=null}),X()),(!P||_&1)&&B!==(B=n[0].tracks.map(n[4]).join(", ")+"")&&H(N,B),n[0].twitter?v?v.p(n,_):(v=ie(n),v.c(),v.m(t,O)):v&&(v.d(1),v=null),n[0].web&&n[0].web.url?b?b.p(n,_):(b=ne(n),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},i(n){P||(E(e.$$.fragment,n),E(m),E(d),P=!0)},o(n){S(e.$$.fragment,n),S(m),S(d),P=!1},d(n){n&&h(a),ee(e),m&&m.d(),d&&d.d(),v&&v.d(),b&&b.d()}}}function re(s){let a,r,e;return r=new fe({props:{source:s[0].bio}}),{c(){a=w("div"),Z(r.$$.fragment),this.h()},l(l){a=k(l,"DIV",{class:!0});var t=$(a);y(r.$$.fragment,t),t.forEach(h),this.h()},h(){p(a,"class","mt-4 text-blue-web italic")},m(l,t){T(l,a,t),x(r,a,null),e=!0},p(l,t){const o={};t&1&&(o.source=l[0].bio),r.$set(o)},i(l){e||(E(r.$$.fragment,l),e=!0)},o(l){S(r.$$.fragment,l),e=!1},d(l){l&&h(a),ee(r)}}}function se(s){let a,r,e;return r=new fe({props:{source:s[0].orgs}}),{c(){a=w("div"),Z(r.$$.fragment),this.h()},l(l){a=k(l,"DIV",{class:!0});var t=$(a);y(r.$$.fragment,t),t.forEach(h),this.h()},h(){p(a,"class","mt-2 text-blue-web links")},m(l,t){T(l,a,t),x(r,a,null),e=!0},p(l,t){const o={};t&1&&(o.source=l[0].orgs),r.$set(o)},i(l){e||(E(r.$$.fragment,l),e=!0)},o(l){S(r.$$.fragment,l),e=!1},d(l){l&&h(a),ee(r)}}}function ie(s){let a,r,e,l,t=s[0].twitter+"",o,u;return{c(){a=w("div"),r=I("Twitter: "),e=w("a"),l=I("@"),o=I(t),this.h()},l(i){a=k(i,"DIV",{class:!0});var c=$(a);r=V(c,"Twitter: "),e=k(c,"A",{href:!0,target:!0,class:!0});var D=$(e);l=V(D,"@"),o=V(D,t),D.forEach(h),c.forEach(h),this.h()},h(){p(e,"href",u="https://twitter.com/"+s[0].twitter),p(e,"target","_blank"),p(e,"class","font-bold"),p(a,"class","mt-2")},m(i,c){T(i,a,c),f(a,r),f(a,e),f(e,l),f(e,o)},p(i,c){c&1&&t!==(t=i[0].twitter+"")&&H(o,t),c&1&&u!==(u="https://twitter.com/"+i[0].twitter)&&p(e,"href",u)},d(i){i&&h(a)}}}function ne(s){let a,r,e,l=(s[0].web.name||s[0].web.url.replace(/^https?:\/\//,""))+"",t,o;return{c(){a=w("div"),r=I("Web: "),e=w("a"),t=I(l),thi