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),this.h()},l(u){a=k(u,"DIV",{class:!0});var i=$(a);r=V(i,"Web: "),e=k(i,"A",{href:!0,target:!0,class:!0});var c=$(e);t=V(c,l),c.forEach(h),i.forEach(h),this.h()},h(){p(e,"href",o=s[0].web.url),p(e,"target","_blank"),p(e,"class","font-bold"),p(a,"class","mt-2")},m(u,i){T(u,a,i),f(a,r),f(a,e),f(e,t)},p(u,i){i&1&&l!==(l=(u[0].web.name||u[0].web.url.replace(/^https?:\/\//,""))+"")&&H(t,l),i&1&&o!==(o=u[0].web.url)&&p(e,"href",o)},d(u){u&&h(a)}}}function _e(s){let a,r,e=s[1]&&le(s);return{c(){a=w("section"),e&&e.c(),this.h()},l(l){a=k(l,"SECTION",{class:!0});var t=$(a);e&&e.l(t),t.forEach(h),this.h()},h(){p(a,"class","relative mx-auto py-10 px-6 max-w-6xl mb-10 text-blue-web")},m(l,t){T(l,a,t),e&&e.m(a,null),r=!0},p(l,[t]){l[1]?e?(e.p(l,t),t&2&&E(e,1)):(e=le(l),e.c(),E(e,1),e.m(a,null)):e&&(Y(),S(e,1,1,()=>{e=null}),X())},i(l){r||(E(e),r=!0)},o(l){S(e),r=!1},d(l){l&&h(a),e&&e.d()}}}const Ee=!0;function oe(s){const a=s.toUpperCase().split("").map(r=>127397+r.charCodeAt());return String.fromCodePoint(...a)}function ve(s,a,r){let e,l,t;ae(s,pe,i=>r(1,l=i)),ae(s,he,i=>r(3,t=i));function o(i){const c=l.spec.tracks.find(D=>D.id===i);return c.shortname||c.name}const u=i=>o(i);return s.$$.update=()=>{s.$$.dirty&10&&r(0,e=l?l.spec.speakers.find(i=>i.id===t.params.id):null)},[e,l,o,t,u]}class De extends ce{constructor(a){super();ue(this,a,ve,_e,me,{})}}export{De as default,Ee as prerender};