1import{e as w,u as z,r as n,a as P,l as S,j as e,ai as m,aW as u,J as x,aY as L,b5 as M,P as p,aI as h,z as E,s as O}from"./index-Cbf19BJ2.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const A=w("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),o="https://caswyrmvzhzcecoabwfw.supabase.co/storage/v1/object/public/event-images",l=[{src:`${o}/o2-arena-1.jpg`,alt:"Lucie a Bára na pódiu O2 areny pÅed zaplnÄným hlediÅ¡tÄm"},{src:`${o}/o2-arena-2.jpg`,alt:"Pohled z pódia O2 areny na publikum"},{src:`${o}/o2-arena-3.jpg`,alt:"ZaplnÄná O2 arena bÄhem show Jsme ZloÄinožrouti"}];function _(a){const t=a.kapacita??0,r=a.prodano??0;return a.status!==4&&t>0&&r<t&&r/t>.7}function $(a){const t=a.kapacita??0,r=a.prodano??0;return a.status!==4&&t>0&&r>=t}const B={1:"Již brzy",2:"PÅedprodej pro Äleny",3:"V prodeji",4:"Vyprodáno"};function R(a){switch(a){case 2:case 3:return"bg-primary/10 text-primary border-primary/20";case 4:return"bg-muted text-muted-foreground border-border";default:return"bg-secondary text-secondary-foreground border-border"}}function J(){z("Živé akce","Opravdové zloÄiny naživo â živá vystoupenÃ, tour a setkánà s fanouÅ¡ky.");const[a,t]=n.useState([]),[r,f]=n.useState(!0),g=P(),{user:d,profile:j,isLoading:y,isProfileLoading:b}=S(),v=!y&&(!d||!b),N=s=>{if(s.status===2){if(!d)return"/prihlaseni";if(!E(j))return"/clenstvi"}return`/akce/${s.fr_url}`},k=s=>i=>{s.status!==2||v||(i.preventDefault(),g(`/akce/${s.fr_url}`))};return n.useEffect(()=>{async function s(){const{data:i,error:c}=await O.from("oz1_akce_public").select("nazev, mesto, misto, datum, status, fr_url, kapacita, prodano").order("datum",{ascending:!0});c?console.error("Failed to load events:",c):t(i??[]),f(!1)}s()},[]),e.jsxs("div",{className:"container max-w-5xl py-10 md:py-16 space-y-12",children:[r?e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsx(m,{className:"h-28 w-full rounded-xl"}),e.jsx(m,{className:"h-28 w-full rounded-xl"})]}):a.length===0?e.jsxs("div",{className:"flex items-center gap-3 bg-muted/40 border border-border rounded-xl px-5 py-4",children:[e.jsx(u,{className:"h-5 w-5 text-muted-foreground shrink-0"}),e.jsxs("p",{className:"text-muted-foreground text-sm",children:[e.jsx("span",{className:"font-medium text-foreground",children:"MomentálnÄ nejsou v prodeji žádné vstupenky."})," ","Jakmile vyhlásÃme novou akci, dozvÃÅ¡ se to jako prvnà pÅes naÅ¡e sociálnà sÃtÄ a newsletter."]})]}):e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl font-semibold",children:"Aktuálnà akce"}),e.jsx("img",{src:`${o}/blackout-2026.webp`,alt:"BLACKOUT Tour 2026 â Bára KrÄmová a Lucie Bechynková",className:"w-full rounded-xl border border-border object-cover",loading:"lazy"}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:a.filter(s=>s.fr_url).map(s=>e.jsxs(x,{to:N(s),onClick:k(s),className:"bg-card border border-border rounded-xl p-5 flex flex-col gap-3 hover:border-primary/30 transition-colors",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(L,{className:"h-4 w-4 shrink-0"}),e.jsx("span",{className:"text-sm",children:s.mesto??"Neuvedeno"})]}),e.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${R(s.status)}`,children:s.status?B[s.status]??`Status ${s.status}`:"Neuvedeno"})]}),$(s)?e.jsx("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold bg-muted text-muted-foreground border border-border w-fit",children:"Vyprodáno"}):_(s)&&e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold bg-destructive/10 text-destructive border border-destructive/20 w-fit",children:[e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-destructive opacity-75"}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-destructive"})]}),"Poslednà mÃsta"]}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold leading-snug text-primary",children:s.nazev??"Akce bez názvu"}),s.datum&&e.jsxs("p",{className:"text-sm text-white mt-1 flex items-center gap-1.5",children:[e.jsx(u,{className:"h-3.5 w-3.5"}),M(s.datum,"d. M. yyyy HH:mm")]}),s.misto&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-1 flex items-center gap-1.5",children:[e.jsx(A,{className:"h-3.5 w-3.5"}),s.misto]})]})]},s.fr_url))})]}),e.jsx("section",{className:"bg-card border border-border rounded-2xl p-6 md:p-8",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(p,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h2",{className:"text-lg md:text-xl font-semibold mb-1",children:"PÅipomeÅ si naÅ¡e živá vystoupenà ze záznamu"}),e.jsxs("p",{className:"text-muted-foreground text-sm",children:["Série ",e.jsx("strong",{className:"text-foreground",children:"Replay"})," obsahuje záznamy z naÅ¡ich akcà â podÃvej se, jak to vypadá naživo."]})]}),e.jsxs(x,{to:"/epizody/replay",className:"inline-flex items-center gap-2 bg-primary text-primary-foreground px-5 py-2.5 rounded-lg font-medium text-sm hover:bg-primary/90 transition-colors shrink-0",children:["Série Replay",e.
6jsx(h,{className:"h-4 w-4"})]})]})}),e.jsxs("section",{className:"space-y-6",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("p",{className:"text-primary font-medium text-sm uppercase tracking-widest",children:"24. listopadu 2024"}),e.jsx("h2",{className:"text-2xl md:text-3xl font-display font-bold",children:"Jsme ZloÄinožrouti â O2 arena"}),e.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto text-sm",children:"SpoleÄnÄ jsme zaplnili pražskou O2 arenu a dokázali jste, že jsme nejlepšà komunita u nás."})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 md:gap-4",children:[e.jsx("div",{className:"md:row-span-2 overflow-hidden rounded-xl",children:e.jsx("img",{src:l[0].src,alt:l[0].alt,className:"w-full h-full object-cover aspect-[4/3] md:aspect-auto",loading:"lazy"})}),e.jsx("div",{className:"overflow-hidden rounded-xl",children:e.jsx("img",{src:l[1].src,alt:l[1].alt,className:"w-full h-full object-cover aspect-video",loading:"lazy"})}),e.jsx("div",{className:"overflow-hidden rounded-xl",children:e.jsx("img",{src:l[2].src,alt:l[2].alt,className:"w-full h-full object-cover aspect-video",loading:"lazy"})})]}),e.jsx("div",{className:"text-center",children:e.jsxs("a",{href:"https://www.opravdovezlociny.cz/epizoda/jsme-zlocinozrouti-o2-arena",className:"inline-flex items-center gap-2 text-primary hover:text-primary/80 font-medium transition-colors",children:[e.jsx(p,{className:"h-4 w-4"}),"PodÃvej se na záznam z O2 areny",e.jsx(h,{className:"h-4 w-4"})]})})]})]})}export{J as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.