import{S as Me,i as Re,s as Ue,k as A,e as I,t as E,R as Ge,d as c,m as N,c as y,a as w,h as g,b as T,g as z,F as o,o as F,p as ue,q as L,H as We,v as Xe,n as ce,E as oe,j as W,w as Ce,x as Be,y as Pe,B as qe,G as de,J as Fe,l as he}from"../chunks/index-b6ec56f3.js";import{b as Ye}from"../chunks/stores-9ca2ce08.js";import{A as Je}from"../chunks/Avatar-16a27348.js";import{a as Ke}from"../chunks/api-2f9ec61a.js";import{f as Qe}from"../chunks/index-921d3fdd.js";import"../chunks/index-eca4c666.js";function Ie(i,l,t){const e=i.slice();return e[15]=l[t],e}function ye(i,l,t){const e=i.slice();return e[18]=l[t],e}function Te(i,l,t){const e=i.slice();return e[21]=l[t],e}function Ze(i){let l,t;return{c(){l=I("div"),t=E("Na\u010D\xEDt\xE1m ..")},l(e){l=y(e,"DIV",{});var n=w(l);t=g(n,"Na\u010D\xEDt\xE1m .."),n.forEach(c)},m(e,n){z(e,l,n),o(l,t)},p:oe,i:oe,o:oe,d(e){e&&c(l)}}}function xe(i){let l,t,e=i[0].length+"",n,a,s=i[0].filter(je).length+"",_,r,f=i[0].length+"",m,p,$,h,k,u,D=i[0].length+"",v,V,q,M,G,X,j,R,Y,U,B,C,H,K,x,Q,ae,ee,re,pe,fe,le,P=i[1]&&we(i),se=Object.keys(i[4]),J=[];for(let d=0;dF(S[d],1,1,()=>{S[d]=null});return{c(){l=I("div"),t=E("Celkem: "),n=E(e),a=E(", vyzvednuto: "),_=E(s),r=E("/"),m=E(f),p=A(),P&&P.c(),$=A(),h=I("div"),k=I("h2"),u=E("Seznam v\u0161ech speci\xE1ln\xEDch vstupenek ("),v=E(D),V=E(")"),q=A(),M=I("div");for(let d=0;d{P=null}),ue()),(!le||O&1)&&D!==(D=d[0].length+"")&&W(v,D),O&52){se=Object.keys(d[4]);let b;for(b=0;bF(p[h],1,1,()=>{p[h]=null});return{c(){l=I("div"),t=I("h2"),e=E("P\u0159edn\xE1\u0161ej\xEDc\xED bez k\xF3du ("),a=E(n),s=E(")"),_=A(),r=I("div");for(let h=0;h{e=null}),ue())},i(n){t||(L(e),t=!0)},o(n){F(e),t=!1},d(n){e&&e.d(n),n&&c(l)}}}function nl(i){let l,t,e,n,a,s,_,r,f,m,p;document.title=l="Speci\xE1ln\xED vstupenky | "+(i[3]?i[3].name:"UTXO.22");const $=[xe,Ze],h=[];function k(u,D){return u[0]?0:1}return _=k(i),r=h[_]=$[_](i),{c(){t=A(),e=I("section"),n=I("h1"),a=E("Speci\xE1ln\xED vstupenky"),s=A(),r.c(),f=A(),m=I("section"),this.h()},l(u){Ge('[data-svelte="svelte-jebagi"]',document.head).forEach(c),t=N(u),e=y(u,"SECTION",{class:!0});var v=w(e);n=y(v,"H1",{class:!0});var V=w(n);a=g(V,"Speci\xE1ln\xED vstupenky"),V.forEach(c),s=N(v),r.l(v),v.forEach(c),f=N(u),m=y(u,"SECTION",{class:!0}),w(m).forEach(c),this.h()},h(){T(n,"class","uppercase text-2xl font-bold"),T(e,"class","relative mx-auto py-6 sm:py-10 px-6 max-w-6xl text-blue-web"),T(m,"class","h-20")},m(u,D){z(u,t,D),z(u,e,D),o(e,n),o(n,a),o(e,s),h[_].m(e,null),z(u,f,D),z(u,m,D),p=!0},p(u,[D]){(!p||D&8)&&l!==(l="Speci\xE1ln\xED vstupenky | "+(u[3]?u[3].name:"UTXO.22"))&&(document.title=l);let v=_;_=k(u),_===v?h[_].p(u,D):(ce(),F(h[v],1,1,()=>{h[v]=null}),ue(),r=h[_],r?r.p(u,D):(r=h[_]=$[_](u),r.c()),L(r,1),r.m(e,null))},i(u){p||(L(r),p=!0)},o(u){F(r),p=!1},d(u){u&&c(t),u&&c(e),h[_].d(),u&&c(f),u&&c(m)}}}const _l=!0,je=i=>i.claimed;function al(i,l,t){let e;We(i,Ye,v=>t(3,e=v));let n=null,a=null,s="all";const _={all:{title:"V\u0161e"},organizator:{title:"Organiz\xE1tor"},speaker:{title:"P\u0159edn\xE1\u0161ej\xEDc\xED"},partner:{title:"Partner"},staff:{title:"Obsluha"},host:{title:"Host"}};function r(v="all"){if(!n)return null;if(v==="all")return n.length;const V=n.filter(q=>q.type===v);return V?V.length:null}async function f(){t(0,n=await Ke.apiCall("claims")),t(1,a=h())}function m(v){return Qe(new Date(v),"d.M HH:mm")}function p(v){const q={speaker:{col:"speakers",url:"/lide?id="},partner:{col:"partners",suffix:"partner"}}[v.type];if(!q)return null;const M=e.spec[q.col].find(G=>G.id===v.id);return M?{title:M.name,url:q.url?q.url+v.id:null,col:q.col,suffix:q.suffix}:"not exists!"}function $(v){for(const V of v)V.linkInfo=p(V.link);return v}function h(){if(!n)return null;const v=[];return e.spec.speakers.forEach(V=>{n.find(q=>q.link.type==="speaker"&&q.link.id===V.id)||v.push(V)}),v}Xe(()=>{f()});const k=[[]];function u(){s=this.__value,t(2,s)}return[n,a,s,e,_,r,m,$,u,k,(v,V)=>V.id===v.link.id]}class hl extends Me{constructor(l){super();Re(this,l,al,nl,Ue,{})}}export{hl as default,_l as prerender};