(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59312,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(18566),i=e.i(10753),l=e.i(75254);let n=(0,l.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);function r({camp:e}){return(0,t.jsxs)("section",{className:"rounded-[32px] bg-white/80 p-6 md:p-10",children:[(0,t.jsxs)("div",{className:"mb-5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-amber-100 text-amber-500",children:(0,t.jsx)(n,{className:"h-6 w-6"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-3xl font-extrabold tracking-tight text-zinc-900",children:"O tábore"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Prečítajte si viac o tom, čo robí tento tábor výnimočným"})]})]}),(0,t.jsx)("div",{className:"whitespace-pre-line text-base leading-8 text-zinc-600",children:e.aboutDescription})]})}var d=e.i(57688),c=e.i(46897),o=e.i(37727),x=e.i(73375),m=e.i(63059),h=e.i(8892);function p({camp:e}){let a=e.locationImages??[],i=(0,s.useMemo)(()=>a.filter(Boolean).map(e=>(0,h.getS3ImageUrl)(e)),[a]),[l,n]=(0,s.useState)(0),[r,u]=(0,s.useState)(!1),b=i[l]??"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"rounded-[32px] bg-white/70 p-6 md:p-10",children:[(0,t.jsxs)("div",{className:"mb-5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-lime-100 text-lime-600",children:(0,t.jsx)(c.MapPin,{className:"h-6 w-6"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-3xl font-extrabold tracking-tight text-zinc-900",children:"Lokalita"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Objavte miesto, kde sa odohráva celé táborové dobrodružstvo"})]})]}),(0,t.jsxs)("div",{className:"grid gap-8 md:grid-cols-[1.05fr_0.95fr] md:items-start",children:[(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"whitespace-pre-line text-base leading-8 text-zinc-600",children:e.locationDescription})}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>b&&u(!0),className:"group relative block h-[320px] w-full overflow-hidden rounded-[28px] border border-white/60 bg-white shadow-sm",children:[b?(0,t.jsx)(d.default,{src:b,alt:`Lokalita ${l+1}`,fill:!0,unoptimized:!0,className:"object-cover transition duration-500 group-hover:scale-105"}):(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-zinc-100 text-sm font-medium text-zinc-500",children:"Fotky lokality budú doplnené"}),b?(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/55 to-transparent px-5 py-4 text-left text-white",children:(0,t.jsx)("p",{className:"text-sm font-semibold",children:"Pozrieť galériu lokality"})}):null]}),i.length>1?(0,t.jsx)("div",{className:"grid grid-cols-4 gap-3",children:i.map((e,s)=>{let a=s===l;return(0,t.jsx)("button",{type:"button",onClick:()=>n(s),className:`relative aspect-[1/0.8] overflow-hidden rounded-2xl border transition ${a?"border-zinc-900 ring-2 ring-zinc-900/10":"border-zinc-200 hover:border-zinc-400"}`,children:(0,t.jsx)(d.default,{src:e,alt:`N\xe1hľad ${s+1}`,fill:!0,unoptimized:!0,className:"object-cover"})},`${e}-${s}`)})}):null]})]})]}),r?(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 p-4",children:[(0,t.jsx)("button",{type:"button",onClick:()=>u(!1),className:"absolute right-4 top-4 inline-flex h-11 w-11 items-center justify-center rounded-full bg-white/10 text-white backdrop-blur transition hover:bg-white/20",children:(0,t.jsx)(o.X,{className:"h-5 w-5"})}),i.length>1?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:()=>{n(e=>0===e?i.length-1:e-1)},className:"absolute left-4 inline-flex h-12 w-12 items-center justify-center rounded-full bg-white/10 text-white backdrop-blur transition hover:bg-white/20",children:(0,t.jsx)(x.ChevronLeft,{className:"h-6 w-6"})}),(0,t.jsx)("button",{type:"button",onClick:()=>{n(e=>e===i.length-1?0:e+1)},className:"absolute right-4 inline-flex h-12 w-12 items-center justify-center rounded-full bg-white/10 text-white backdrop-blur transition hover:bg-white/20",children:(0,t.jsx)(m.ChevronRight,{className:"h-6 w-6"})})]}):null,(0,t.jsx)("div",{className:"relative h-[70vh] w-full max-w-5xl overflow-hidden rounded-[28px]",children:b?(0,t.jsx)(d.default,{src:b,alt:`Lokalita ${l+1}`,fill:!0,unoptimized:!0,className:"object-contain"}):null})]}):null]})}var u=e.i(89853),b=e.i(64659);function f({camp:e}){let[a,i]=(0,s.useState)(!1),l=!!e.programDescription?.trim(),n=e.programPoints.length>5,r=(0,s.useMemo)(()=>a?e.programPoints:e.programPoints.slice(0,5),[e.programPoints,a]);return(0,t.jsxs)("section",{id:"program",className:"rounded-[28px] bg-white/80 p-5 md:p-8",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-sky-100 text-sky-600",children:(0,t.jsx)(u.CalendarDays,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-zinc-900 md:text-3xl",children:"Program tábora"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Čo všetko deti počas tábora zažijú"})]})]}),(0,t.jsxs)("div",{className:l?"grid gap-6 lg:grid-cols-[1fr_0.8fr] lg:items-start":"grid gap-6",children:[l?(0,t.jsx)("div",{className:"rounded-[24px] bg-zinc-50 px-5 py-5",children:(0,t.jsx)("div",{className:"whitespace-pre-line text-sm leading-7 text-zinc-700 md:text-[15px]",children:e.programDescription})}):null,(0,t.jsxs)("div",{className:l?"mx-auto w-full max-w-[520px]":"w-full",children:[(0,t.jsx)("div",{className:l?"grid gap-3":"grid gap-3 md:grid-cols-2",children:r.map((e,s)=>(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-[18px] border border-zinc-200 bg-white px-4 py-3 shadow-sm",children:[(0,t.jsx)("div",{className:"mt-1 text-sky-600",children:(0,t.jsx)(m.ChevronRight,{className:"h-4 w-4"})}),(0,t.jsx)("p",{className:"text-sm font-medium leading-6 text-zinc-800",children:e})]},s))}),n?(0,t.jsx)("div",{className:"mt-4 flex justify-center",children:(0,t.jsxs)("button",{type:"button",onClick:()=>i(e=>!e),className:"inline-flex flex-col items-center gap-1 text-sm font-semibold text-sky-700 transition hover:text-sky-800",children:[(0,t.jsx)("span",{children:a?"Zobraziť menej":"Zobraziť viac"}),(0,t.jsx)(b.ChevronDown,{className:`h-4 w-4 transition-transform duration-200 ${a?"rotate-180":""}`})]})}):null]})]})]})}var g=e.i(22016);let j=(0,l.default)("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]),v=(0,l.default)("ticket-x",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9.5 14.5 5-5",key:"qviqfa"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]);function N(){return(0,t.jsxs)("div",{className:"rounded-[24px] border border-zinc-200 bg-white px-5 py-10 text-center shadow-sm",children:[(0,t.jsx)("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-zinc-100 text-zinc-500",children:(0,t.jsx)(v,{className:"h-8 w-8"})}),(0,t.jsx)("p",{className:"mt-5 text-sm font-bold uppercase tracking-[0.25em] text-zinc-500",children:"Vypredané"}),(0,t.jsx)("h3",{className:"mt-3 text-2xl font-extrabold text-zinc-900 md:text-3xl",children:"Bohužiaľ, tento tábor je vypredaný"}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-xl text-sm leading-6 text-zinc-600 md:text-base",children:"Aktuálne už nemáme voľné miesta. Pozrite si naše ďalšie tábory alebo sa vráťte neskôr, ak sa uvoľní kapacita."}),(0,t.jsx)(g.default,{href:"/tabory",className:"mt-6 inline-flex h-11 items-center justify-center rounded-xl px-5 text-sm font-semibold text-white transition hover:opacity-90",style:{backgroundColor:"#d93b68"},prefetch:!1,children:"Zobraziť ďalšie tábory"})]})}function w(e){return e?`${e.toFixed(0)} €`:"- €"}function y(e){return"soldout"===e.status||e.capacity<=0}function k(e){if(!e)return"";let t=e.split("-");if(3!==t.length)return"";let[s,a,i]=t.map(Number),l=new Date(s,a-1,i);return Number.isNaN(l.getTime())?"":new Intl.DateTimeFormat("sk-SK",{day:"numeric",month:"numeric",year:"numeric"}).format(l)}function z({camp:e}){let s=e.type?.toLowerCase()==="denny",a=0===e.terms.length||e.terms.every(e=>y(e)),i=[...e.terms].sort((e,t)=>new Date(e.dateFrom).getTime()-new Date(t.dateFrom).getTime());return(0,t.jsxs)("section",{id:"rezervacia",className:"rounded-[28px] bg-white/80 p-5 md:p-8",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-rose-100 text-rose-500",children:(0,t.jsx)(j,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-zinc-900 md:text-3xl",children:"Rezervácie"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Vyberte si aktuálny termín tábora"})]})]}),a?(0,t.jsx)(N,{}):(0,t.jsx)("div",{className:"grid gap-3",children:i.map(a=>{var i,l,n;let r,d,c,o=y(a),x=a.inDiscount&&a.discountPrice>0&&a.discountPrice{let a,i=(a=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()).includes("ubytovanie")?C:a.includes("strava")?T:a.includes("program")?D:a.includes("fotografie")||a.includes("videa")?M:a.includes("prekvapenie")?$:a.includes("personal")||a.includes("personál")?P.Users:_;return(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-[18px] border border-zinc-200 bg-white px-4 py-3 shadow-sm",children:[(0,t.jsx)("div",{className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-xl bg-emerald-50 text-emerald-700",children:(0,t.jsx)(i,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-bold text-zinc-900 md:text-[15px]",children:e}),s?(0,t.jsx)("p",{className:"mt-1 whitespace-pre-line text-sm leading-6 text-zinc-600",children:s}):null]})]},e)})})})]}):null}function V({imageSrc:e="/placeholderCamp.jpg",camp:s}){let a="/placeholderCamp.jpg"===e?e:(0,h.getS3ImageUrl)(e);return(0,t.jsx)("section",{className:"rounded-[32px] bg-white/70 p-6 md:p-10",children:(0,t.jsxs)("div",{className:"grid gap-8 md:grid-cols-[1.05fr_0.95fr] md:items-start",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-5 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-orange-100 text-orange-600",children:(0,t.jsx)(P.Users,{className:"h-6 w-6"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-3xl font-extrabold tracking-tight text-zinc-900",children:"Kamarátska zľava"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Príďte spolu a ušetrite na táborovom dobrodružstve"})]})]}),(0,t.jsxs)("p",{className:"mt-6 max-w-2xl text-base leading-7 text-zinc-700",children:["Tábor je ešte väčšia zábava, keď sa na dobrodružstvo vyberiete spolu. Pri prihlásení s kamarátom alebo súrodencom získa každý",(0,t.jsxs)("span",{className:"font-bold text-zinc-900",children:[" zľavu ",s.friendDiscount," € "]}),"z ceny tábora. Stačí túto informáciu",(0,t.jsx)("span",{className:"font-semibold text-zinc-900",children:" uviesť v prihláške "}),"a my sa postaráme o zvyšok."]}),(0,t.jsxs)("div",{className:"mt-6 grid gap-3 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"rounded-2xl border border-orange-100 bg-white px-4 py-4",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-zinc-900",children:"Platí pre"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-600",children:"kamarátov aj súrodencov, ktorí sa prihlásia na rovnaký tábor"})]}),(0,t.jsxs)("div",{className:"rounded-2xl border border-orange-100 bg-white px-4 py-4",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-zinc-900",children:"Ako ju získať"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-600",children:"uveďte túto informáciu priamo v prihláške"})]})]})]}),(0,t.jsx)("div",{className:"md:pt-10",children:(0,t.jsxs)("div",{className:"relative h-[320px] w-full overflow-hidden rounded-[28px] border border-white/60 bg-white shadow-sm",children:[(0,t.jsx)(d.default,{src:a,alt:"Kamaráti na tábore",fill:!0,unoptimized:"/placeholderCamp.jpg"!==a,className:"object-cover"}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/55 to-transparent px-5 py-4 text-white",children:(0,t.jsx)("p",{className:"text-sm font-semibold",children:"Zažite tábor spolu výhodnejšie"})})]})})]})})}var H=e.i(52571),I=e.i(81677),q=e.i(7233),A=e.i(27612);function L(e){if(!e)return"";let t=e.split("-");if(3!==t.length)return"";let[s,a,i]=t.map(Number),l=new Date(s,a-1,i);return Number.isNaN(l.getTime())?"":new Intl.DateTimeFormat("sk-SK",{day:"numeric",month:"numeric",year:"numeric"}).format(l)}function R(e){return e?`${e.toFixed(0)} €`:"- €"}function O({camp:e}){let a=(0,s.useMemo)(()=>e.terms.filter(e=>!("Vypredaný"===e.status||e.capacity<=0)),[e.terms]),[i,l]=(0,s.useState)(a[0]?.id??""),n=(0,s.useMemo)(()=>a.find(e=>e.id===i)??null,[a,i]),r=(0,s.useMemo)(()=>n?function(e,t){if(!e||!t)return[];let s=new Date(`${e}T00:00:00`),a=new Date(`${t}T00:00:00`);if(Number.isNaN(s.getTime())||Number.isNaN(a.getTime()))return[];let i=[],l=new Date(s);for(;l<=a;)i.push(function(e){let t=e.getFullYear(),s=`${e.getMonth()+1}`.padStart(2,"0"),a=`${e.getDate()}`.padStart(2,"0");return`${t}-${s}-${a}`}(l)),l.setDate(l.getDate()+1);return i}(n.dateFrom,n.dateTo):[],[n]),[d,c]=(0,s.useState)(r[0]?[r[0]]:[""]);if((0,s.useEffect)(()=>{!i&&a[0]?.id&&l(a[0].id)},[a,i]),(0,s.useEffect)(()=>{c(r[0]?[r[0]]:[""])},[r]),0===a.length)return null;let o=d.filter(Boolean),x=e.singleDayPrice??35,m=o.length*x,h=o.join(";"),p=i&&h?`/prihlaska?id=${e.id}&turnus=${i}&singleDayDates=${encodeURIComponent(h)}`:"#",b=[...e.terms].sort((e,t)=>new Date(e.dateFrom).getTime()-new Date(t.dateFrom).getTime());return(0,t.jsxs)("section",{className:"rounded-[28px] bg-white/80 p-5 md:p-8",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-amber-100 text-amber-600",children:(0,t.jsx)(I.SunMedium,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-zinc-900 md:text-3xl",children:"Rezervácia na konkrétne dni"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Dieťa môžete prihlásiť aj len na vybrané dni v rámci dostupného turnusu"})]})]}),(0,t.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[1fr_0.9fr] lg:items-start",children:[(0,t.jsx)("div",{className:"space-y-4",children:(0,t.jsxs)("div",{className:"rounded-[24px] bg-zinc-50 px-5 py-5 md:px-6 md:py-6",children:[(0,t.jsx)("p",{className:"text-sm leading-7 text-zinc-700 md:text-[15px]",children:"Táto možnosť je vhodná, ak nepotrebujete rezervovať celý turnus. Najskôr si vyberiete turnus a následne konkrétne dni, na ktoré sa chcete prihlásiť."}),(0,t.jsxs)("div",{className:"my-6 flex flex-col items-center justify-center text-center",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-zinc-500",children:"Cena za deň"}),(0,t.jsx)("p",{className:"mt-2 text-4xl font-extrabold tracking-tight text-zinc-900 md:text-5xl",children:R(x)})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-[18px] border border-amber-200 bg-amber-50 px-4 py-3",children:[(0,t.jsx)("div",{className:"mt-0.5 text-amber-600",children:(0,t.jsx)(H.Info,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-zinc-900",children:"Na túto rezerváciu sa neuplatňujú zľavy ani poukazy"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-6 text-zinc-600",children:"Nie je možné použiť rekreačný poukaz, zľavnenú cenu ani ďalšie zvýhodnenia určené pre celý turnus."})]})]})]})}),(0,t.jsx)("div",{className:"rounded-[24px] border border-zinc-200 bg-white px-5 py-5 shadow-sm",children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"mb-1.5 block text-[11px] font-semibold uppercase tracking-wide text-zinc-500",children:"Vyberte turnus"}),(0,t.jsx)("select",{value:i,onChange:e=>l(e.target.value),className:"h-11 w-full rounded-xl border border-zinc-200 bg-white px-3 text-sm font-semibold text-zinc-900 outline-none transition focus:border-zinc-400",children:b.map(e=>(0,t.jsxs)("option",{value:e.id,children:[e.title," (",L(e.dateFrom)," – ",L(e.dateTo),")"]},e.id))})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("label",{className:"mb-1.5 flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wide text-zinc-500",children:[(0,t.jsx)(u.CalendarDays,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:"Vyberte dni"})]}),d.map((e,s)=>{let a=r.filter(t=>t===e||!d.some((e,a)=>a!==s&&e===t));return(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("select",{value:e,onChange:e=>{var t;return t=e.target.value,void c(e=>{let a=[...e];return a[s]=t,a})},className:"h-11 w-full rounded-xl border border-zinc-200 bg-white px-3 text-sm font-semibold text-zinc-900 outline-none transition focus:border-zinc-400",children:a.map(e=>(0,t.jsx)("option",{value:e,children:L(e)},e))}),d.length>1&&(0,t.jsx)("button",{type:"button",onClick:()=>{c(e=>1===e.length?e:e.filter((e,t)=>t!==s))},className:"inline-flex h-11 w-11 items-center justify-center rounded-xl border border-zinc-200 text-zinc-600 transition hover:bg-zinc-50","aria-label":"Odstrániť deň",children:(0,t.jsx)(A.Trash2,{className:"h-4 w-4"})})]},`${s}-${e}`)}),d.length{let e=r.find(e=>!d.includes(e))??"";e&&c(t=>[...t,e])},className:"inline-flex items-center gap-2 text-sm font-semibold text-amber-700 transition hover:text-amber-800",children:[(0,t.jsx)(q.Plus,{className:"h-4 w-4"}),"Pridať ďalší deň"]})]}),(0,t.jsxs)("div",{className:"rounded-[18px] bg-zinc-50 px-4 py-3",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-zinc-500",children:"Vybraná rezervácia"}),(0,t.jsx)("p",{className:"mt-1 text-sm font-bold text-zinc-900",children:n?n.title:"—"}),(0,t.jsx)("div",{className:"mt-2 space-y-1",children:o.length>0?o.map((e,s)=>(0,t.jsx)("p",{className:"text-sm text-zinc-600",children:L(e)},`${e}-${s}`)):(0,t.jsx)("p",{className:"text-sm text-zinc-600",children:"Vyberte deň"})}),(0,t.jsxs)("div",{className:"mt-4 border-t border-zinc-200 pt-3",children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-zinc-500",children:"Výsledná suma"}),(0,t.jsx)("p",{className:"mt-1 text-base font-extrabold text-zinc-900",children:R(m)})]})]}),(0,t.jsx)(g.default,{href:p,className:"inline-flex h-11 w-full items-center justify-center rounded-xl px-4 text-sm font-semibold text-white transition hover:opacity-90",style:{backgroundColor:"#d93b68"},prefetch:!1,children:"Rezervovať dni"})]})})]})]})}var U=e.i(90545);function Z({camp:e}){let s=(0,h.getS3ImageUrl)(e.thumbnail),a=[e.priceFrom?{label:`Už od ${e.priceFrom} €`,className:"border-emerald-200 bg-emerald-50/90 text-emerald-700 shadow-[0_8px_24px_rgba(16,185,129,0.10)]"}:null,e.recommendedAge?{label:`Vek ${e.recommendedAge}`,className:"border-amber-200 bg-amber-50/90 text-amber-700 shadow-[0_8px_24px_rgba(245,158,11,0.10)]"}:null,{label:"Možnosť uplatniť rekreačný poukaz",className:"border-sky-200 bg-sky-50/90 text-sky-700 shadow-[0_8px_24px_rgba(14,165,233,0.10)]"}].filter(Boolean);return(0,t.jsx)("section",{className:"overflow-hidden rounded-[32px] border border-white/60 bg-white shadow-[0_20px_60px_rgba(15,23,42,0.10)]",children:(0,t.jsxs)("div",{className:"relative min-h-[420px] md:min-h-[520px]",children:[s?(0,t.jsx)(d.default,{src:s,alt:e.title,fill:!0,unoptimized:!0,className:"object-cover",priority:!0}):(0,t.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(135deg, #d93b6855 0%, #d93b68aa 100%)"}}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/60 via-black/28 to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-transparent to-transparent"}),(0,t.jsxs)("div",{className:"relative z-10 flex min-h-[420px] flex-col px-6 py-6 text-white md:min-h-[520px] md:px-12 md:py-10",children:[(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:"inline-flex w-fit items-center rounded-full bg-pink-100 px-3 py-1 text-xs font-semibold uppercase tracking-wide text-pink-700 ring-1 ring-pink-200",children:(0,U.getTypeLabel)(e.type)})}),(0,t.jsx)("div",{className:"mt-10 flex-1 md:mt-20",children:(0,t.jsxs)("div",{className:"max-w-3xl",children:[(0,t.jsx)("h1",{className:"text-4xl font-extrabold tracking-tight md:text-6xl",children:e.title}),e.shortDescription?(0,t.jsx)("p",{className:"mt-4 max-w-2xl text-sm leading-7 text-white/85 md:text-base",children:e.shortDescription}):null,a.length>0?(0,t.jsx)("div",{className:"mt-8 flex flex-wrap gap-3",children:a.map(e=>(0,t.jsx)("span",{className:`inline-flex items-center rounded-full border px-4 py-2 text-sm font-semibold backdrop-blur-md ${e.className}`,children:e.label},e.label))}):null]})}),(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap justify-start gap-3 md:justify-end",children:[(0,t.jsx)(g.default,{href:"#rezervacia",className:"inline-flex h-12 items-center justify-center rounded-2xl px-6 font-semibold text-white shadow-lg transition hover:opacity-90",style:{backgroundColor:"#d93b68"},prefetch:!1,children:"Rezervovať"}),(0,t.jsx)(g.default,{href:"#program",className:"inline-flex h-12 items-center justify-center rounded-2xl border border-white/35 bg-white/10 px-6 font-semibold text-white backdrop-blur transition hover:bg-white/20",prefetch:!1,children:"Pozrieť program"})]})]})]})})}function B(){return(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-rose-100 text-rose-500",children:(0,t.jsx)(M,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-zinc-900 md:text-3xl",children:"Galéria"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Pozrite si atmosféru tábora vo fotkách"})]})]})}function K({image:e,minHeightClassName:s,onClick:a}){return(0,t.jsx)("button",{type:"button",onClick:a,className:`group relative overflow-hidden bg-zinc-100 text-left ${s}`,children:(0,t.jsx)(d.default,{src:e.src,alt:e.alt,fill:!0,unoptimized:!0,className:"object-cover transition duration-300 group-hover:scale-[1.02]"})})}function E({images:e,onOpenImage:s}){let a=t=>{var s;return e[0===(s=e.length)?0:(t%s+s)%s]};return(0,t.jsx)("div",{className:"overflow-hidden rounded-[24px] border border-zinc-200 bg-white p-[3px] shadow-sm",children:(0,t.jsxs)("div",{className:"grid gap-[3px] bg-white md:grid-cols-[1.25fr_0.85fr_0.85fr]",children:[(0,t.jsxs)("div",{className:"grid gap-[3px]",children:[(0,t.jsx)(K,{image:a(0),onClick:()=>s(0),minHeightClassName:"min-h-[220px] md:min-h-[260px]"}),(0,t.jsx)(K,{image:a(1),onClick:()=>s(1),minHeightClassName:"min-h-[160px] md:min-h-[180px]"})]}),(0,t.jsxs)("div",{className:"grid gap-[3px]",children:[(0,t.jsx)(K,{image:a(2),onClick:()=>s(2),minHeightClassName:"min-h-[120px] md:min-h-[150px]"}),(0,t.jsx)(K,{image:a(3),onClick:()=>s(3),minHeightClassName:"min-h-[120px] md:min-h-[135px]"}),(0,t.jsx)(K,{image:a(4),onClick:()=>s(4),minHeightClassName:"min-h-[120px] md:min-h-[152px]"})]}),(0,t.jsxs)("div",{className:"grid gap-[3px]",children:[(0,t.jsx)(K,{image:a(5),onClick:()=>s(5),minHeightClassName:"min-h-[120px] md:min-h-[135px]"}),(0,t.jsx)(K,{image:a(6),onClick:()=>s(6),minHeightClassName:"min-h-[160px] md:min-h-[210px]"})]})]})})}function G({images:e,activeIndex:s,onSelect:a,campTitle:i}){return e.length<=1?null:(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-20 border-t border-white/10 bg-black/40 px-4 py-4 backdrop-blur",children:(0,t.jsx)("div",{className:"mx-auto flex max-w-6xl gap-3 overflow-x-auto",children:e.map((e,l)=>{let n=l===s;return(0,t.jsx)("button",{type:"button",onClick:()=>a(l),className:`relative h-16 w-24 shrink-0 overflow-hidden rounded-xl border transition ${n?"border-white ring-2 ring-white/30":"border-white/20 hover:border-white/50"}`,children:(0,t.jsx)(d.default,{src:e.src,alt:`${i} n\xe1hľad ${l+1}`,fill:!0,unoptimized:!0,className:"object-cover"})},`${e.src}-${l}`)})})})}function X({isOpen:e,images:s,activeIndex:a,campTitle:i,onClose:l,onPrev:n,onNext:r,onSelect:c}){return e?(0,t.jsxs)("div",{className:"fixed inset-0 z-50 bg-black/90",children:[(0,t.jsx)("button",{type:"button",onClick:l,className:"absolute right-4 top-4 z-20 inline-flex h-11 w-11 items-center justify-center rounded-full bg-white/10 text-white backdrop-blur transition hover:bg-white/20",children:(0,t.jsx)(o.X,{className:"h-5 w-5"})}),s.length>1?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:n,className:"absolute left-4 top-1/2 z-20 inline-flex h-11 w-11 -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white backdrop-blur transition hover:bg-white/20",children:(0,t.jsx)(x.ChevronLeft,{className:"h-5 w-5"})}),(0,t.jsx)("button",{type:"button",onClick:r,className:"absolute right-4 top-1/2 z-20 inline-flex h-11 w-11 -translate-y-1/2 items-center justify-center rounded-full bg-white/10 text-white backdrop-blur transition hover:bg-white/20",children:(0,t.jsx)(m.ChevronRight,{className:"h-5 w-5"})})]}):null,(0,t.jsx)("div",{className:"flex h-full w-full flex-col items-center justify-center px-4 pb-24 pt-16",children:(0,t.jsx)("div",{className:"relative h-full max-h-[75vh] w-full max-w-6xl overflow-hidden rounded-[24px]",children:(0,t.jsx)(d.default,{src:s[a].src,alt:`${i} gal\xe9ria ${a+1}`,fill:!0,unoptimized:!0,className:"object-contain"})})}),(0,t.jsx)(G,{images:s,activeIndex:a,onSelect:c,campTitle:i})]}):null}function Q({camp:e}){let[a,i]=(0,s.useState)(!1),[l,n]=(0,s.useState)(0),r=(0,s.useMemo)(()=>(e.gallery??[]).filter(Boolean).map((t,s)=>({src:(0,h.getS3ImageUrl)(t),alt:`${e.title} gal\xe9ria ${s+1}`})).filter(e=>!!e.src),[e]);return r.length?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"rounded-[28px] bg-white/80 p-5 md:p-8",children:[(0,t.jsx)(B,{}),(0,t.jsx)(E,{images:r,onOpenImage:e=>{n(e),i(!0)}})]}),(0,t.jsx)(X,{isOpen:a,images:r,activeIndex:l,campTitle:e.title,onClose:()=>i(!1),onPrev:()=>{n(e=>0===e?r.length-1:e-1)},onNext:()=>{n(e=>e===r.length-1?0:e+1)},onSelect:n})]}):null}var Y=e.i(81415);function J({camp:e}){var a;let[i,l]=(0,s.useState)(null),n=(a=e.faq)?Object.entries(a).filter(([e,t])=>"string"==typeof e&&e.trim()&&"string"==typeof t&&t.trim()).map(([e,t])=>({question:e,answer:t})):[];return n.length?(0,t.jsxs)("section",{className:"rounded-[28px] bg-white/80 p-5 md:p-8",children:[(0,t.jsxs)("div",{className:"mb-6 flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-teal-100 text-teal-700",children:(0,t.jsx)(Y.HelpCircle,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-2xl font-extrabold tracking-tight text-zinc-900 md:text-3xl",children:"Často kladené otázky"}),(0,t.jsx)("p",{className:"mt-0.5 text-sm text-zinc-500",children:"Všetko dôležité o tábore na jednom mieste"})]})]}),(0,t.jsx)("div",{className:"grid gap-3",children:n.map((e,s)=>{let a=i===s;return(0,t.jsxs)("article",{className:"overflow-hidden rounded-[20px] border border-zinc-200 bg-white shadow-sm",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{l(e=>e===s?null:s)},className:"flex w-full items-center justify-between gap-4 px-4 py-4 text-left transition hover:bg-zinc-50 md:px-5 md:py-4",children:[(0,t.jsx)("h3",{className:"text-base font-bold text-zinc-900 md:text-lg",children:e.question}),(0,t.jsx)("span",{className:`inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-zinc-100 text-zinc-600 transition ${a?"rotate-180":""}`,children:(0,t.jsx)(b.ChevronDown,{className:"h-4 w-4"})})]}),(0,t.jsx)("div",{className:`grid transition-all duration-300 ease-in-out ${a?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"border-t border-zinc-100 px-4 py-4 text-sm leading-7 text-zinc-600 md:px-5 md:text-[15px]",children:e.answer})})})]},`${e.question}-${s}`)})})]}):null}function W(){return(0,t.jsx)("section",{className:"rounded-[32px] border border-white/80 bg-white/85 p-6 text-center shadow-[0_20px_60px_rgba(15,23,42,0.08)] md:p-10",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-2xl flex-col items-center",children:[(0,t.jsx)("div",{className:"mb-5 flex h-16 w-16 items-center justify-center rounded-full bg-amber-100 text-3xl",children:"✨"}),(0,t.jsx)("p",{className:"text-sm font-bold uppercase tracking-[0.25em] text-amber-600",children:"Čoskoro"}),(0,t.jsx)("h2",{className:"mt-3 text-3xl font-extrabold text-zinc-900 md:text-4xl",children:"Tento tábor pripravujeme"}),(0,t.jsx)("p",{className:"mt-4 text-base leading-7 text-zinc-600 md:text-lg",children:"Detaily, termíny a prihlasovanie doplníme už čoskoro. Sledujte našu ponuku táborov a nové informácie pribudnú hneď po ich potvrdení."})]})})}e.s(["CampDetailLayout",0,function({campId:e}){let l=(0,a.useRouter)(),{data:n,isLoading:d,isFetching:c,isError:o}=(0,i.useGetCampByIdQuery)(e,{skip:!e});if((0,s.useEffect)(()=>{e&&(d||c||!o&&n)||l.replace("/404")},[e,d,c,o,n,l]),!e||d||c)return(0,t.jsx)("div",{className:"relative overflow-hidden bg-[radial-gradient(circle_at_top,_#d5eeeb,_#edf7f5_45%,_#f8fafc_100%)]",children:(0,t.jsx)("div",{className:"mx-auto flex min-h-screen w-full max-w-6xl items-center justify-center px-4 py-10",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-5 rounded-[32px] bg-white/75 px-10 py-10 shadow-[0_20px_60px_rgba(15,23,42,0.08)]",children:[(0,t.jsx)("div",{className:"h-14 w-14 animate-spin rounded-full border-4 border-zinc-200 border-t-emerald-600"}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-zinc-900 md:text-3xl",children:"Načítavam tábor"}),(0,t.jsx)("p",{className:"mt-2 text-sm text-zinc-500",children:"Prosím, chvíľku strpenia..."})]})]})})});if(o||!n)return null;let x=n.status?.trim().toLowerCase()==="planned",m=n.type?.toLowerCase()==="denny";return(0,t.jsx)("div",{className:"relative overflow-hidden bg-[radial-gradient(circle_at_top,_#d5eeeb,_#edf7f5_45%,_#f8fafc_100%)]",children:(0,t.jsxs)("div",{className:"mx-auto flex min-h-screen w-full max-w-6xl flex-col gap-8 px-4 py-6 md:px-6 md:py-10",children:[(0,t.jsx)(Z,{camp:n}),x?(0,t.jsx)(W,{}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r,{camp:n}),(0,t.jsx)(p,{camp:n}),(0,t.jsx)(f,{camp:n}),(0,t.jsx)(S,{camp:n}),(0,t.jsx)(Q,{camp:n}),n.isFriendDiscountEnabled?(0,t.jsx)(V,{camp:n}):null,(0,t.jsx)(z,{camp:n}),m?(0,t.jsx)(O,{camp:n}):null,(0,t.jsx)(J,{camp:n})]})]})})}],59312)}]);