(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17302,e=>{"use strict";var t=e.i(43476),s=e.i(71645),i=e.i(31278),a=e.i(20209);let n=(0,e.i(75254).default)("backpack",[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]]);var l=e.i(77757);function r({icon:e,title:s,subtitle:i,iconClassName:a}){return(0,t.jsxs)("div",{className:"mb-8 flex items-start gap-4",children:[(0,t.jsx)("span",{className:`flex h-12 w-12 shrink-0 items-center justify-center rounded-2xl shadow-sm ${a}`,children:(0,t.jsx)(e,{className:"h-6 w-6"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-3xl font-black tracking-tight text-zinc-900 sm:text-4xl",children:s}),(0,t.jsx)("p",{className:"mt-1.5 text-sm leading-6 text-zinc-500",children:i})]})]})}let o=["bg-lime-600 text-white","bg-orange-500 text-white","bg-sky-500 text-white","bg-lime-700 text-white","bg-rose-500 text-white","bg-indigo-500 text-white"];function c({aboutDescription:e,whyChooseUs:s}){let i=Object.entries(s??{}).filter(([e])=>e.trim());return(0,t.jsx)("section",{className:"px-4 py-5 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl rounded-[32px] bg-white px-5 py-8 shadow-[0_14px_45px_rgba(15,23,42,0.06)] sm:px-8 lg:px-10",children:[(0,t.jsx)(r,{icon:n,title:"O škole v prírode",subtitle:"Škola v prírode, ktorá spája pohyb, zážitky, spoluprácu a dobrú atmosféru.",iconClassName:"bg-orange-50 text-orange-500"}),(0,t.jsx)("p",{className:"text-sm leading-7 text-zinc-600",children:e}),i.length>0?(0,t.jsx)("div",{className:"mt-8 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:i.map(([e,s],i)=>{let a=(0,l.getWhyChooseUsIcon)(e),n=o[i%o.length];return(0,t.jsxs)("article",{className:"rounded-[22px] border border-zinc-100 bg-white px-5 py-6 text-center shadow-[0_12px_35px_rgba(15,23,42,0.07)] transition hover:-translate-y-1 hover:shadow-[0_18px_45px_rgba(15,23,42,0.11)]",children:[(0,t.jsx)("div",{className:`mx-auto flex h-12 w-12 items-center justify-center rounded-full shadow-sm ${n}`,children:(0,t.jsx)(a,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"mt-5 text-base font-black leading-tight text-zinc-900",children:e}),s?(0,t.jsx)("p",{className:"mt-3 text-xs leading-5 text-zinc-500",children:s}):null]},e)})}):null]})})}var d=e.i(83086),m=e.i(67337);let x=[{color:"bg-orange-500",softColor:"bg-orange-50"},{color:"bg-sky-500",softColor:"bg-sky-50"},{color:"bg-teal-500",softColor:"bg-teal-50"},{color:"bg-amber-500",softColor:"bg-amber-50"},{color:"bg-indigo-500",softColor:"bg-indigo-50"},{color:"bg-rose-500",softColor:"bg-rose-50"}];function h({services:e}){let s=e.filter(e=>e.title.trim()||e.description.trim());return 0===s.length?null:(0,t.jsx)("section",{id:"doplnkove-sluzby",className:"px-4 py-5 sm:px-6 lg:px-8",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl overflow-hidden rounded-[32px] bg-white shadow-[0_14px_45px_rgba(15,23,42,0.06)]",children:(0,t.jsxs)("div",{className:"px-5 py-8 sm:px-8 lg:px-10",children:[(0,t.jsx)(r,{icon:d.Sparkles,title:"Doplnkové služby",subtitle:"Program vieme obohatiť o ďalšie zážitky. Vyberte si, čo pridáme k vašej škole v prírode.",iconClassName:"bg-amber-50 text-amber-500"}),(0,t.jsx)("div",{className:"grid gap-3",children:s.map((e,s)=>{let i=x[s%x.length],a=(0,m.getServiceIcon)(e.icon),n=Number(e.priceValue)>0?`${e.priceValue} €${e.pricePerChild?" / žiak":""}`:"Na vyžiadanie";return(0,t.jsxs)("article",{className:`flex flex-col gap-3 rounded-[20px] border border-zinc-100 ${i.softColor} p-4 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md sm:flex-row sm:items-center sm:gap-5 sm:rounded-[24px] sm:p-5`,children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center sm:gap-5",children:[(0,t.jsx)("span",{className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl ${i.color} text-white shadow-sm sm:h-12 sm:w-12`,children:(0,t.jsx)(a,{className:"h-5 w-5 sm:h-6 sm:w-6"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"break-words text-base font-black leading-snug text-zinc-900",children:e.title||"Doplnková služba"}),e.description?(0,t.jsx)("p",{className:"mt-1 break-words text-sm leading-6 text-zinc-600 sm:mt-0.5",children:e.description}):null]})]}),(0,t.jsx)("div",{className:"inline-flex shrink-0 items-center self-end whitespace-nowrap rounded-full bg-white px-3.5 py-1.5 text-sm font-black text-zinc-900 shadow-sm ring-1 ring-zinc-100 sm:self-auto sm:px-4 sm:py-2",children:n})]},e.id||`${e.title}-${s}`)})})]})})})}var u=e.i(21557),p=e.i(64659),g=e.i(52571),b=e.i(7233),f=e.i(37727);function v(e,t){let s=Number(e.priceValue)||0;return e.pricePerChild?s*t:s}function j(e){return`${e.toLocaleString("sk-SK")}\u00A0€`}function N({priceTiers:e,additionalServices:i=[]}){let[a,n]=(0,s.useState)(30),[l,o]=(0,s.useState)([]),[c,x]=(0,s.useState)(!1),h=(0,s.useMemo)(()=>{var t;return t=a,Object.entries(e).map(([e,t])=>({upperBound:Number(e),pricePerChild:Number(t)})).filter(e=>Number.isFinite(e.upperBound)&&Number.isFinite(e.pricePerChild)).sort((e,t)=>e.upperBound-t.upperBound).find(e=>t<=e.upperBound)??null},[a,e]),k=(0,s.useMemo)(()=>i.filter(e=>e.title.trim()),[i]),w=h?.pricePerChild??0,y=a*w,z=(0,s.useMemo)(()=>k.filter(e=>l.includes(e.id)),[k,l]),C=(0,s.useMemo)(()=>k.filter(e=>!l.includes(e.id)),[k,l]),_=(0,s.useMemo)(()=>z.reduce((e,t)=>e+v(t,a),0),[z,a]);return(0,t.jsx)("section",{id:"kalkulacka",className:"px-4 py-5 sm:px-6 lg:px-8",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl rounded-[32px] bg-white shadow-[0_14px_45px_rgba(15,23,42,0.06)]",children:(0,t.jsxs)("div",{className:"px-5 py-8 sm:px-8 lg:px-10",children:[(0,t.jsx)(r,{icon:u.Calculator,title:"Kalkulačka ceny",subtitle:"Zadajte počet detí, vyberte doplnkové služby a zistite orientačnú cenu.",iconClassName:"bg-sky-50 text-sky-600"}),(0,t.jsxs)("div",{className:"grid gap-5 lg:grid-cols-[0.9fr_1.1fr] lg:items-start",children:[(0,t.jsxs)("div",{className:"rounded-[26px] bg-[#F7FBFA] p-5 text-left shadow-sm ring-1 ring-zinc-100",children:[(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-black text-zinc-800",children:"Počet žiakov"}),(0,t.jsx)("input",{type:"number",min:1,value:a,onChange:e=>n(Number(e.target.value)),className:"h-14 rounded-2xl border border-zinc-200 bg-white px-4 text-lg font-black text-zinc-900 outline-none transition focus:border-sky-500 focus:ring-4 focus:ring-sky-50"})]}),(0,t.jsxs)("p",{className:"mt-3 flex items-start gap-2 text-xs leading-5 text-zinc-500",children:[(0,t.jsx)(g.Info,{className:"mt-0.5 h-4 w-4 shrink-0 text-sky-600"}),"Cena sa vypočíta podľa cenovej hranice nastavenej v systéme."]}),k.length>0?(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsxs)("p",{className:"mb-2 flex items-center gap-2 text-sm font-black text-zinc-800",children:[(0,t.jsx)(d.Sparkles,{className:"h-4 w-4 text-amber-500"}),"Doplnkové služby"]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),disabled:!C.length,className:"flex h-14 w-full items-center justify-between gap-2 rounded-2xl border border-zinc-200 bg-white px-5 text-sm font-medium text-zinc-800 outline-none transition hover:border-zinc-300 focus:border-zinc-400 disabled:cursor-not-allowed disabled:bg-zinc-100 disabled:text-zinc-400",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(b.Plus,{className:"h-4 w-4 text-zinc-400"}),C.length?"Pridať doplnkovú službu":"Všetky služby sú pridané"]}),(0,t.jsx)(p.ChevronDown,{className:`h-4 w-4 text-zinc-400 transition ${c?"rotate-180":""}`})]}),c&&C.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-hidden":!0,tabIndex:-1,onClick:()=>x(!1),className:"fixed inset-0 z-10 cursor-default"}),(0,t.jsx)("div",{className:"absolute left-0 right-0 z-20 mt-2 max-h-72 overflow-auto rounded-2xl border border-zinc-200 bg-white p-2 shadow-[0_18px_50px_rgba(15,23,42,0.16)]",children:C.map(e=>{let s=(0,m.getServiceIcon)(e.icon),i=v(e,a),n=Number(e.priceValue)>0?`${e.priceValue} €${e.pricePerChild?" / žiak":""}`:null;return(0,t.jsxs)("button",{type:"button",onClick:()=>{var t;(t=e.id)&&o(e=>e.includes(t)?e:[...e,t]),x(!1)},className:"flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition hover:bg-zinc-50",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-amber-50 text-amber-500",children:(0,t.jsx)(s,{className:"h-4 w-4"})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block font-medium text-zinc-800",children:e.title}),n?(0,t.jsx)("span",{className:"block text-xs font-semibold text-zinc-400",children:n}):null]}),(0,t.jsx)("span",{className:"shrink-0 text-sm font-black text-zinc-700",children:i>0?`+ ${j(i)}`:"Na vyžiadanie"})]},e.id)})})]}):null]}),z.length>0?(0,t.jsx)("div",{className:"mt-3 grid gap-2",children:z.map(e=>{let s=(0,m.getServiceIcon)(e.icon),i=v(e,a);return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border-2 border-sky-500 bg-white px-4 py-3 text-sm ring-2 ring-sky-50",children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-xl bg-amber-50 text-amber-500",children:(0,t.jsx)(s,{className:"h-4 w-4"})}),(0,t.jsx)("span",{className:"min-w-0 flex-1 font-black text-zinc-900",children:e.title}),(0,t.jsx)("span",{className:"shrink-0 text-sm font-black text-zinc-700",children:i>0?`+ ${j(i)}`:"Na vyžiadanie"}),(0,t.jsx)("button",{type:"button",onClick:()=>{var t;return t=e.id,void o(e=>e.filter(e=>e!==t))},className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-xl border border-zinc-200 text-zinc-500 transition hover:bg-zinc-50 hover:text-zinc-700","aria-label":`Odobrať ${e.title}`,children:(0,t.jsx)(f.X,{className:"h-4 w-4"})})]},e.id)})}):(0,t.jsx)("p",{className:"mt-2 text-xs font-medium text-zinc-500",children:"Zatiaľ nie je pridaná žiadna doplnková služba."})]}):null]}),(0,t.jsxs)("div",{className:"rounded-[28px] bg-[#F7FBFA] p-6 text-center shadow-sm ring-1 ring-zinc-100",children:[(0,t.jsxs)("p",{className:"text-sm font-black text-zinc-500",children:["Orientačná cena"," ",(0,t.jsx)("span",{className:"font-semibold",children:"(ubytovanie + animačný program)"})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-end justify-center gap-2",children:[h?(0,t.jsx)("span",{className:"pb-2 text-lg font-black text-zinc-700",children:"od"}):null,(0,t.jsx)("span",{className:"text-5xl font-black text-sky-600",children:h?w:"—"}),h?(0,t.jsx)("span",{className:"pb-2 text-lg font-black text-zinc-700",children:"€ / žiak"}):null]}),(0,t.jsxs)("div",{className:"mt-5 rounded-2xl bg-white p-4 text-left shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 text-sm",children:[(0,t.jsxs)("span",{className:"min-w-0 font-semibold text-zinc-600",children:["Ubytovanie + animačný program",(0,t.jsxs)("span",{className:"block whitespace-nowrap text-xs font-medium text-zinc-400",children:[a," × ",h?w:0," €"]})]}),(0,t.jsx)("span",{className:"shrink-0 whitespace-nowrap font-black text-zinc-800",children:h?j(y):"—"})]}),z.map(e=>{let s=v(e,a);return(0,t.jsxs)("div",{className:"mt-2 flex items-start justify-between gap-3 text-sm",children:[(0,t.jsxs)("span",{className:"min-w-0 font-semibold text-zinc-500",children:[e.title,e.pricePerChild&&Number(e.priceValue)>0?(0,t.jsxs)("span",{className:"block whitespace-nowrap text-xs font-medium text-zinc-400",children:[a," × ",e.priceValue," €"]}):null]}),(0,t.jsx)("span",{className:"shrink-0 whitespace-nowrap font-black text-zinc-700",children:s>0?`+ ${j(s)}`:"Na vyžiadanie"})]},e.id)}),(0,t.jsx)("div",{className:"my-3 h-px bg-zinc-100"}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-sm font-black text-zinc-700",children:"Cena spolu"}),(0,t.jsx)("span",{className:"shrink-0 whitespace-nowrap text-3xl font-black text-sky-600",children:h?j(y+_):"—"})]})]}),(0,t.jsx)("p",{className:"mt-3 text-xs font-semibold text-zinc-400",children:"Orientačná cena. Finálnu ponuku pripravíme na mieru."})]})]})]})})})}var k=e.i(95468),w=e.i(63488),y=e.i(14764),z=e.i(53262),C=e.i(8892),_=e.i(57688);let $="h-14 rounded-2xl border border-zinc-200 bg-white px-5 text-sm font-medium text-zinc-800 outline-none transition placeholder:text-zinc-500 focus:border-indigo-500 focus:ring-4 focus:ring-indigo-50",S="__other_location__";function I({addLabel:e,allSelectedLabel:i,emptyText:a,options:n,selectedIds:l,onAdd:r,onRemove:o}){let[c,d]=(0,s.useState)(!1),m=n.filter(e=>!l.includes(e.id)),x=n.filter(e=>l.includes(e.id));return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),disabled:!m.length,className:"flex h-14 w-full items-center justify-between gap-2 rounded-2xl border border-zinc-200 bg-white px-5 text-sm font-medium text-zinc-800 outline-none transition hover:border-zinc-300 focus:border-indigo-500 focus:ring-4 focus:ring-indigo-50 disabled:cursor-not-allowed disabled:bg-zinc-100 disabled:text-zinc-400",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(b.Plus,{className:"h-4 w-4 text-zinc-400"}),m.length?e:i]}),(0,t.jsx)(p.ChevronDown,{className:`h-4 w-4 text-zinc-400 transition ${c?"rotate-180":""}`})]}),c&&m.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-hidden":!0,tabIndex:-1,onClick:()=>d(!1),className:"fixed inset-0 z-10 cursor-default"}),(0,t.jsx)("div",{className:"absolute left-0 right-0 z-20 mt-2 max-h-64 overflow-auto rounded-2xl border border-zinc-200 bg-white p-2 shadow-[0_18px_50px_rgba(15,23,42,0.16)]",children:m.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>{r(e.id),d(!1)},className:"flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition hover:bg-zinc-50",children:[(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block font-medium text-zinc-800",children:e.title}),e.subtitle?(0,t.jsx)("span",{className:"block text-xs font-semibold text-zinc-400",children:e.subtitle}):null]}),(0,t.jsx)(b.Plus,{className:"h-4 w-4 shrink-0 text-zinc-400"})]},e.id))})]}):null]}),(0,t.jsx)("div",{className:"mt-3 min-h-[2.5rem]",children:x.length>0?(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-zinc-200 bg-white py-1.5 pl-3.5 pr-2 text-xs font-black text-zinc-700 shadow-sm",children:[e.title,(0,t.jsx)("button",{type:"button",onClick:()=>o(e.id),"aria-label":`Odobrať ${e.title}`,className:"inline-flex h-5 w-5 items-center justify-center rounded-full text-zinc-400 transition hover:bg-zinc-100 hover:text-zinc-700",children:(0,t.jsx)(f.X,{className:"h-3.5 w-3.5"})})]},e.id))}):(0,t.jsx)("p",{className:"text-xs font-medium text-zinc-500",children:a})})]})}function P({locations:e,services:i=[],useMockSubmit:n=!1,contactGalleryImages:l}){let[o,{isLoading:c}]=(0,a.useCreateSchoolNatureInquiryMutation)(),[d,m]=(0,s.useState)({schoolName:"",street:"",city:"",postalCode:"",ico:"",estimatedStudents:"",educatorCount:"",grade:"",childrenAge:"",preferredTerm:"",title:"",firstName:"",lastName:"",email:"",phone:"",text:""}),[x,h]=(0,s.useState)([]),[u,p]=(0,s.useState)([]),[g,b]=(0,s.useState)(""),[f,v]=(0,s.useState)(""),[j,N]=(0,s.useState)(!1),M=(0,s.useMemo)(()=>(l??[]).filter(e=>e?.trim()).map(e=>(0,C.getSchoolNatureImageUrl)(e)),[l]),F=(0,s.useMemo)(()=>[...e.filter(e=>e.name?.trim()).map(e=>({id:e.id,title:e.name})),{id:S,title:"Chcem iné",subtitle:"Ak vám ponúkané lokality nevyhovujú"}],[e]),V=(0,s.useMemo)(()=>i.filter(e=>e.title?.trim()).map(e=>({id:e.id,title:e.title,subtitle:Number(e.priceValue)>0?`${e.priceValue} €${e.pricePerChild?" / žiak":""}`:void 0})),[i]);function L(e,t){m(s=>({...s,[e]:t}))}async function O(e){e.preventDefault(),b(""),v("");let t=e=>{let t=Number.parseInt(e,10);return Number.isFinite(t)?t:void 0},s={schoolName:d.schoolName,street:d.street,city:d.city,postalCode:d.postalCode,ico:d.ico||void 0,estimatedStudents:t(d.estimatedStudents),educatorCount:t(d.educatorCount),grade:d.grade||void 0,childrenAge:d.childrenAge||void 0,preferredTerm:d.preferredTerm||void 0,title:d.title||void 0,firstName:d.firstName,lastName:d.lastName,email:d.email,phone:d.phone,locationIds:x.filter(e=>e!==S),serviceIds:u,text:[x.includes(S)?"Lokalita: Chcem inú lokalitu (ponúkané lokality nevyhovujú).":"",d.text.trim()].filter(Boolean).join("\n\n")||void 0};try{n?(console.log("Mock school nature inquiry:",s),b("Mock režim: formulár sa neodoslal na backend, ale dáta sú pripravené.")):(await o(s).unwrap(),(0,z.pushDataLayerEvent)({event:"form_submit",form_name:"skola-v-prirode"}),b("Ďakujeme, vašu správu sme prijali. Čoskoro sa vám ozveme.")),m({schoolName:"",street:"",city:"",postalCode:"",ico:"",estimatedStudents:"",educatorCount:"",grade:"",childrenAge:"",preferredTerm:"",title:"",firstName:"",lastName:"",email:"",phone:"",text:""}),h([]),p([]),N(!0)}catch{v("Správu sa nepodarilo odoslať. Skúste to prosím znova alebo nás kontaktujte telefonicky.")}}return(0,t.jsx)("section",{id:"kontakt",className:"scroll-mt-20 px-4 pb-10 pt-5 sm:px-6 lg:px-8",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl overflow-hidden rounded-[32px] bg-white shadow-[0_14px_45px_rgba(15,23,42,0.06)]",children:j?(0,t.jsxs)("div",{className:"flex flex-col items-center px-5 py-16 text-center sm:px-8 lg:px-10",children:[(0,t.jsx)("span",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-indigo-50 text-indigo-500",children:(0,t.jsx)(k.CheckCircle2,{className:"h-8 w-8"})}),(0,t.jsx)("h3",{className:"mt-6 text-2xl font-black text-zinc-900",children:"Ďakujeme za váš dopyt!"}),(0,t.jsx)("p",{className:"mt-3 max-w-md text-sm leading-7 text-zinc-600",children:"Vašu žiadosť sme prijali. Čoskoro sa vám ozveme s cenovou ponukou na mieru. Ak by ste medzitým potrebovali čokoľvek doplniť, pokojne nás kontaktujte telefonicky."}),(0,t.jsx)("button",{type:"button",onClick:()=>{N(!1),b("")},className:"mt-8 inline-flex items-center justify-center gap-2 rounded-2xl border border-zinc-200 bg-white px-6 py-3 text-sm font-black text-zinc-700 transition hover:bg-zinc-50",children:"Odoslať ďalší dopyt"})]}):(0,t.jsxs)("div",{className:"grid gap-8 px-5 py-8 sm:px-8 lg:grid-cols-[0.8fr_1.2fr] lg:px-10",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(r,{icon:w.Mail,title:"Máte záujem ?",subtitle:"Nezáväzný dopyt. Vyplňte základné údaje o škole a pobyte, následne sa vám ozveme s cenovou ponukou. K ničomu vás to nezaväzuje.",iconClassName:"bg-indigo-50 text-indigo-500"}),M.length>1?(0,t.jsx)("div",{className:"grid flex-1 auto-rows-[130px] grid-cols-2 gap-3 sm:auto-rows-[150px]",children:M.slice(0,5).map((e,s)=>(0,t.jsxs)("div",{className:`relative overflow-hidden rounded-[22px] bg-gradient-to-br from-rose-50 via-white to-orange-50 shadow-sm ${0===s?"col-span-2 row-span-2":""}`,children:[(0,t.jsx)(_.default,{src:e,alt:`Škola v pr\xedrode – fotka ${s+1}`,fill:!0,unoptimized:!0,className:"object-cover transition duration-300 hover:scale-105"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/15 via-transparent to-transparent"})]},`${e}-${s}`))}):(0,t.jsxs)("div",{className:"relative min-h-[320px] flex-1 overflow-hidden rounded-[28px] bg-gradient-to-br from-rose-50 via-white to-orange-50",children:[M[0]?(0,t.jsx)(_.default,{src:M[0],alt:"Máte záujem o školu v prírode?",fill:!0,unoptimized:!0,className:"object-cover"}):null,(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/25 via-transparent to-transparent"})]})]}),(0,t.jsxs)("form",{onSubmit:O,className:"rounded-[28px] bg-[#F3F5F4] p-5 shadow-sm ring-1 ring-zinc-100 sm:p-7",children:[(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsx)("p",{className:"text-xs font-bold uppercase tracking-wide text-zinc-400",children:"Údaje o škole"}),(0,t.jsx)("input",{required:!0,placeholder:"Názov školy *",value:d.schoolName,onChange:e=>L("schoolName",e.target.value),className:$}),(0,t.jsx)("input",{required:!0,placeholder:"Ulica a číslo *",value:d.street,onChange:e=>L("street",e.target.value),className:$}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)("input",{required:!0,placeholder:"Obec *",value:d.city,onChange:e=>L("city",e.target.value),className:$}),(0,t.jsx)("input",{required:!0,placeholder:"PSČ *",value:d.postalCode,onChange:e=>L("postalCode",e.target.value),className:$})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)("input",{placeholder:"IČO",value:d.ico,onChange:e=>L("ico",e.target.value),className:$}),(0,t.jsx)("div",{className:"hidden sm:block"})]}),(0,t.jsx)("div",{className:"my-3 h-px bg-zinc-200"}),(0,t.jsx)("p",{className:"text-xs font-bold uppercase tracking-wide text-zinc-400",children:"Detaily pobytu"}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)("input",{required:!0,type:"number",min:"1",inputMode:"numeric",placeholder:"Predpokladaný počet žiakov *",value:d.estimatedStudents,onChange:e=>L("estimatedStudents",e.target.value),className:$}),(0,t.jsx)("input",{required:!0,type:"number",min:"1",inputMode:"numeric",placeholder:"Počet pedagógov *",value:d.educatorCount,onChange:e=>L("educatorCount",e.target.value),className:$})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)("input",{required:!0,placeholder:"Ročník (napr. 3. – 4. ročník) *",value:d.grade,onChange:e=>L("grade",e.target.value),className:$}),(0,t.jsx)("input",{required:!0,placeholder:"Vek detí (napr. 8 – 10 rokov) *",value:d.childrenAge,onChange:e=>L("childrenAge",e.target.value),className:$})]}),(0,t.jsx)("input",{required:!0,placeholder:"Preferovaný termín (napr. jún 2026) *",value:d.preferredTerm,onChange:e=>L("preferredTerm",e.target.value),className:$}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold text-zinc-500",children:"Lokalita / lokality, o ktoré máte záujem *"}),(0,t.jsx)(I,{addLabel:"Pridať lokalitu",allSelectedLabel:"Všetky lokality sú vybraté",emptyText:"Vyberte jednu alebo viac lokalít, o ktoré máte záujem.",options:F,selectedIds:x,onAdd:function(e){h(t=>t.includes(e)?t:[...t,e])},onRemove:function(e){h(t=>t.filter(t=>t!==e))}})]}),V.length>0?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold text-zinc-500",children:"Doplnkové služby, o ktoré máte záujem"}),(0,t.jsx)(I,{addLabel:"Pridať doplnkovú službu",allSelectedLabel:"Všetky služby sú vybraté",emptyText:"Nepovinné – vyberte služby, o ktoré máte záujem.",options:V,selectedIds:u,onAdd:function(e){p(t=>t.includes(e)?t:[...t,e])},onRemove:function(e){p(t=>t.filter(t=>t!==e))}})]}):null,(0,t.jsx)("div",{className:"my-3 h-px bg-zinc-200"}),(0,t.jsx)("p",{className:"text-xs font-bold uppercase tracking-wide text-zinc-400",children:"Kontaktné údaje"}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)("input",{placeholder:"Titul",value:d.title,onChange:e=>L("title",e.target.value),className:$}),(0,t.jsx)("div",{className:"hidden sm:block"})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)("input",{required:!0,placeholder:"Meno *",value:d.firstName,onChange:e=>L("firstName",e.target.value),className:$}),(0,t.jsx)("input",{required:!0,placeholder:"Priezvisko *",value:d.lastName,onChange:e=>L("lastName",e.target.value),className:$})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsx)("input",{required:!0,type:"email",placeholder:"E-mail *",value:d.email,onChange:e=>L("email",e.target.value),className:$}),(0,t.jsxs)("div",{className:"flex h-14 overflow-hidden rounded-2xl border border-zinc-200 bg-white transition focus-within:border-indigo-500 focus-within:ring-4 focus-within:ring-indigo-50",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 border-r border-zinc-100 px-4 text-sm font-semibold text-zinc-700",children:[(0,t.jsx)("span",{children:"🇸🇰"}),(0,t.jsx)("span",{children:"+421"})]}),(0,t.jsx)("input",{required:!0,placeholder:"Kontaktný telefón",value:d.phone,onChange:e=>L("phone",e.target.value),className:"min-w-0 flex-1 bg-transparent px-4 text-sm font-medium text-zinc-800 outline-none placeholder:text-zinc-500"})]})]}),(0,t.jsx)("textarea",{rows:4,value:d.text,onChange:e=>L("text",e.target.value),placeholder:"Poznámka",className:"min-h-[96px] resize-none rounded-2xl border border-zinc-200 bg-white px-5 py-4 text-sm font-medium text-zinc-800 outline-none transition placeholder:text-zinc-500 focus:border-indigo-500 focus:ring-4 focus:ring-indigo-50"})]}),g?(0,t.jsx)("div",{className:"mt-4 rounded-2xl bg-indigo-50 p-4 text-sm font-bold text-indigo-700",children:g}):null,f?(0,t.jsx)("div",{className:"mt-4 rounded-2xl bg-red-50 p-4 text-sm font-bold text-red-700",children:f}):null,(0,t.jsx)("div",{className:"mt-6 flex justify-end",children:(0,t.jsxs)("button",{type:"submit",disabled:c,className:"inline-flex w-full items-center justify-center gap-2 rounded-2xl bg-[#d93b68] px-6 py-4 text-sm font-black text-white shadow-lg shadow-pink-500/20 transition hover:bg-[#c9365f] disabled:cursor-not-allowed disabled:opacity-60 sm:w-auto",children:[(0,t.jsx)(y.Send,{className:"h-4 w-4"}),c?"Odosielam...":"Kontaktovať nás"]})})]})]})})})}var M=e.i(22016);function F({schoolNature:e}){var s;let i=(s=e.heroImage)?s.startsWith("/")||s.startsWith("http")?s:(0,C.getS3ImageUrl)(s):"";return(0,t.jsx)("section",{className:"px-4 pt-6 sm:px-6 lg:px-8",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl 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:[i?(0,t.jsx)(_.default,{src:i,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/65 via-black/35 to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/55 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",{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.subtitle?(0,t.jsx)("p",{className:"mt-4 text-lg font-bold leading-8 text-white md:text-xl",children:e.subtitle}):null,e.description?(0,t.jsx)("p",{className:"mt-4 max-w-2xl text-sm leading-7 text-white/85 md:text-base",children:e.description}):null,(0,t.jsx)("div",{className:"mt-8 flex flex-wrap gap-3",children:[{label:"Program na mieru",className:"border-emerald-200 bg-emerald-50/90 text-emerald-700 shadow-[0_8px_24px_rgba(16,185,129,0.10)]"},{label:"Overené lokality",className:"border-amber-200 bg-amber-50/90 text-amber-700 shadow-[0_8px_24px_rgba(245,158,11,0.10)]"},{label:"Orientačná kalkulácia ceny",className:"border-sky-200 bg-sky-50/90 text-sky-700 shadow-[0_8px_24px_rgba(14,165,233,0.10)]"}].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))})]})}),(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap justify-start gap-3 md:justify-end",children:[(0,t.jsxs)(M.default,{href:"#kalkulacka",className:"inline-flex h-12 items-center justify-center gap-2 rounded-2xl px-6 font-semibold text-white shadow-lg transition hover:opacity-90",style:{backgroundColor:"#d93b68"},prefetch:!1,children:[(0,t.jsx)(u.Calculator,{className:"h-4 w-4"}),"Vypočítať cenu"]}),(0,t.jsx)(M.default,{href:"#kontakt",className:"inline-flex h-12 items-center justify-center rounded-2xl border border-[#d93b68] bg-white/10 px-6 font-semibold text-white backdrop-blur transition hover:bg-[#d93b68]",prefetch:!1,children:"Kontaktovať nás"})]})]})]})})})}var V=e.i(30699),L=e.i(56792);let O=[{color:"bg-orange-500",softColor:"bg-orange-50"},{color:"bg-sky-500",softColor:"bg-sky-50"},{color:"bg-teal-500",softColor:"bg-teal-50"},{color:"bg-amber-500",softColor:"bg-amber-50"},{color:"bg-indigo-500",softColor:"bg-indigo-50"},{color:"bg-rose-500",softColor:"bg-rose-50"}];function A({includedItems:e,includedItemsImage:s}){let i=Object.entries(e),a=function(e,t=""){return e?e.startsWith("/")||e.startsWith("http")?e:(0,C.getS3ImageUrl)(e):t}(s,"/images/school-nature/campfire.png");return(0,t.jsx)("section",{className:"px-4 py-5 sm:px-6 lg:px-8",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl overflow-hidden rounded-[32px] bg-white shadow-[0_14px_45px_rgba(15,23,42,0.06)]",children:(0,t.jsxs)("div",{className:"grid gap-8 px-5 py-8 sm:px-8 lg:grid-cols-[1fr_0.75fr] lg:px-10",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(r,{icon:V.Gift,title:"Čo je v cene programu",subtitle:"Obsah programu nastavíme podľa potrieb školy a možností vybranej lokality.",iconClassName:"bg-rose-50 text-rose-500"}),i.length>0?(0,t.jsx)("div",{className:"grid gap-3",children:i.map(([e,s],i)=>{let a=O[i%O.length],n=(0,L.getIncludedIcon)(e);return(0,t.jsxs)("article",{className:`flex gap-4 rounded-2xl border border-zinc-100 ${a.softColor} p-4 shadow-sm transition hover:-translate-y-0.5 hover:shadow-md`,children:[(0,t.jsx)("span",{className:`flex h-11 w-11 shrink-0 items-center justify-center rounded-2xl ${a.color} text-white`,children:(0,t.jsx)(n,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm font-black text-zinc-900",children:e}),(0,t.jsx)("p",{className:"mt-1 text-xs leading-5 text-zinc-600",children:s})]})]},e)})}):(0,t.jsx)("div",{className:"rounded-2xl border border-dashed border-zinc-300 bg-zinc-50 p-5 text-sm text-zinc-500",children:"Položky v cene programu zatiaľ nie sú nastavené."}),(0,t.jsxs)("div",{className:"mt-6 rounded-2xl border border-sky-100 bg-sky-50 p-4 text-sm leading-7 text-zinc-600",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-2 font-black text-sky-700",children:[(0,t.jsx)(k.CheckCircle2,{className:"h-5 w-5"}),"Program vždy prispôsobíme veku detí a možnostiam zariadenia."]}),(0,t.jsx)("p",{children:"V prípade záujmu vieme pripraviť tematický program, večerné hry, súťaže, tvorivé dielne aj záverečné vyhodnotenie."})]})]}),(0,t.jsxs)("div",{className:"relative min-h-[280px] overflow-hidden rounded-[28px] bg-gradient-to-br from-sky-50 via-white to-orange-50",children:[a?(0,t.jsx)(_.default,{src:a,alt:"Čo je v cene programu",fill:!0,unoptimized:!0,className:"object-cover"}):null,(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 via-transparent to-transparent"})]})]})})})}var D=e.i(46897),E=e.i(63059);function T({location:e,isSelected:s,onSelect:i}){return(0,t.jsxs)("button",{type:"button",onClick:i,className:`group flex w-full items-center gap-4 rounded-[22px] border bg-white p-4 text-left shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-[0_16px_35px_rgba(15,23,42,0.10)] sm:min-w-[230px] sm:w-auto ${s?"border-lime-300 bg-lime-50 ring-4 ring-lime-50":"border-zinc-100 hover:border-lime-200"}`,children:[(0,t.jsxs)("div",{className:"relative h-16 w-16 shrink-0 overflow-hidden rounded-2xl bg-gradient-to-br from-lime-100 via-white to-sky-100 shadow-inner",children:[e.imageUrl?(0,t.jsx)("img",{src:(0,C.getSchoolNatureImageUrl)(e.imageUrl),alt:e.name,className:"h-full w-full object-cover transition duration-500 group-hover:scale-110"}):null,(0,t.jsx)("div",{className:"absolute inset-0 ring-1 ring-inset ring-black/5"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:`line-clamp-1 text-base font-black transition ${s?"text-lime-800":"text-zinc-900"}`,children:e.name}),e.region?(0,t.jsx)("div",{className:"mt-1.5 flex items-center gap-1.5 text-xs font-semibold text-zinc-500",children:(0,t.jsx)("span",{className:"truncate",children:e.region})}):null]}),(0,t.jsx)("div",{className:`hidden h-9 w-9 shrink-0 items-center justify-center rounded-full transition sm:flex ${s?"bg-lime-600 text-white":"bg-zinc-100 text-zinc-400 group-hover:bg-lime-50 group-hover:text-lime-700"}`,children:(0,t.jsx)(E.ChevronRight,{className:`h-4 w-4 transition ${s?"rotate-90":""}`})})]})}var R=e.i(73375);function U({location:e}){let i=(0,s.useMemo)(()=>[e.imageUrl,...e.galleryImages??[]].filter(Boolean).map(e=>(0,C.getSchoolNatureImageUrl)(e)),[e]),[a,n]=(0,s.useState)(0),[l,r]=(0,s.useState)(!1),o=i[a]??"";return(0,s.useEffect)(()=>{n(0),r(!1)},[e.id]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o&&r(!0),className:"group relative block h-[320px] w-full overflow-hidden rounded-[28px] border border-white/70 bg-white shadow-sm",children:[o?(0,t.jsx)(_.default,{src:o,alt:`${e.name} ${a+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é"}),o?(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/60 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.slice(0,4).map((e,s)=>{let l=s===a,o=3===s&&i.length>4,c=i.length-4+1;return(0,t.jsxs)("button",{type:"button",onClick:()=>{n(s),o&&r(!0)},"aria-label":o?`Zobraziť všetky fotky (${i.length})`:`N\xe1hľad ${s+1}`,className:`group/thumb relative aspect-[1/0.8] overflow-hidden rounded-2xl border transition duration-300 hover:z-10 hover:-translate-y-0.5 hover:scale-105 hover:border-lime-500 hover:shadow-[0_8px_18px_rgba(15,23,42,0.2)] hover:ring-2 hover:ring-lime-400/30 ${l&&!o?"border-zinc-900 ring-2 ring-zinc-900/10":"border-zinc-200"}`,children:[(0,t.jsx)(_.default,{src:e,alt:`N\xe1hľad ${s+1}`,fill:!0,unoptimized:!0,className:"object-cover transition duration-500 group-hover/thumb:scale-110"}),o?(0,t.jsxs)("span",{className:"absolute inset-0 flex flex-col items-center justify-center gap-0.5 bg-black/55 text-white transition duration-300 group-hover/thumb:bg-black/30",children:[(0,t.jsx)(E.ChevronRight,{className:"h-5 w-5"}),(0,t.jsxs)("span",{className:"text-xs font-black",children:["+",c]})]}):null]},`${e}-${s}`)})}):null]}),l?(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:()=>r(!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)(f.X,{className:"h-5 w-5"})}),i.length>1?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button",onClick:function(){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)(R.ChevronLeft,{className:"h-6 w-6"})}),(0,t.jsx)("button",{type:"button",onClick:function(){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)(E.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:o?(0,t.jsx)(_.default,{src:o,alt:`${e.name} ${a+1}`,fill:!0,unoptimized:!0,className:"object-contain"}):null})]}):null]})}function q({locations:e}){let[i,a]=(0,s.useState)(e[0]?.id??""),[n,l]=(0,s.useState)(""),o=e.find(e=>e.id===i)??e[0],c=!!o&&n===o.id,d=!!o?.description?.trim()||!!o?.features?.length;return(0,t.jsx)("section",{className:"px-4 py-5 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl rounded-[32px] bg-white p-5 shadow-[0_14px_45px_rgba(15,23,42,0.06)] sm:p-8",children:[(0,t.jsx)(r,{icon:D.MapPin,title:"Lokality",subtitle:"Vyberte si lokalitu, o ktorú máte záujem. Detail sa zobrazí po kliknutí.",iconClassName:"bg-lime-50 text-lime-600"}),e.length>0?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-7 flex flex-col gap-3 sm:-mx-1 sm:flex-row sm:gap-4 sm:overflow-x-auto sm:px-1 sm:pb-3",children:e.map(e=>(0,t.jsx)(T,{location:e,isSelected:e.id===i,onSelect:()=>a(e.id)},e.id))}),o?(0,t.jsx)("article",{className:"overflow-hidden rounded-[30px] border border-zinc-100 bg-[#F7FBFA]",children:(0,t.jsxs)("div",{className:"grid gap-8 p-5 sm:p-7 lg:grid-cols-[1fr_0.95fr] lg:items-start lg:p-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-3xl font-black tracking-tight text-zinc-900 sm:text-4xl",children:o.name}),o.region?(0,t.jsxs)("div",{className:"mt-3 inline-flex items-center gap-2 rounded-full bg-lime-50 px-3 py-1.5 text-xs font-bold text-lime-700",children:[(0,t.jsx)(D.MapPin,{className:"h-3.5 w-3.5"}),o.region]}):null,(0,t.jsx)("p",{className:"mt-5 text-sm font-semibold leading-7 text-zinc-700",children:o.shortDescription}),d?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>l(c?"":o.id),"aria-expanded":c,className:"mt-4 inline-flex items-center gap-2 rounded-full bg-white px-4 py-2 text-sm font-black text-lime-700 shadow-sm ring-1 ring-zinc-100 transition hover:bg-lime-50",children:[c?"Menej info":"Viac info",(0,t.jsx)(p.ChevronDown,{className:`h-4 w-4 transition ${c?"rotate-180":""}`})]}),c?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mt-4 text-sm leading-7 text-zinc-600",children:o.description}),o.features?.length?(0,t.jsx)("div",{className:"mt-6 grid gap-3 sm:grid-cols-2",children:o.features.map(e=>(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-2xl bg-white p-3 text-sm font-semibold text-zinc-700 shadow-sm",children:[(0,t.jsx)("span",{className:"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-lime-100 text-lime-700",children:(0,t.jsx)(k.CheckCircle2,{className:"h-4 w-4"})}),(0,t.jsx)("span",{className:"leading-6",children:e})]},e))}):null]}):null]}):null]}),(0,t.jsx)(U,{location:o})]})}):null]}):(0,t.jsxs)("div",{className:"rounded-[28px] border border-dashed border-zinc-300 bg-zinc-50 p-8 text-center",children:[(0,t.jsx)("p",{className:"font-semibold text-zinc-700",children:"Zatiaľ nie sú pridané žiadne lokality."}),(0,t.jsx)("p",{className:"mt-2 text-sm text-zinc-500",children:"Po pridaní lokalít v administrácii sa zobrazia na stránke."})]})]})})}var B=e.i(76516);let K=[{dot:"bg-orange-500",soft:"bg-orange-50",ring:"ring-orange-100"},{dot:"bg-sky-500",soft:"bg-sky-50",ring:"ring-sky-100"},{dot:"bg-teal-500",soft:"bg-teal-50",ring:"ring-teal-100"},{dot:"bg-amber-500",soft:"bg-amber-50",ring:"ring-amber-100"},{dot:"bg-indigo-500",soft:"bg-indigo-50",ring:"ring-indigo-100"},{dot:"bg-rose-500",soft:"bg-rose-50",ring:"ring-rose-100"}],W="#f43f5e";function G({step:e,index:i,onCardRef:a}){let n=K[i%K.length],{ref:l,isVisible:r}=function(){let e=(0,s.useRef)(null),[t,i]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let t=e.current;if(!t)return;if("u"{e.isIntersecting&&(i(!0),s.disconnect())},{threshold:.2});return s.observe(t),()=>s.disconnect()},[]),{ref:e,isVisible:t}}(),o=i%2==1;return(0,t.jsx)("li",{ref:l,className:`mb-9 transition-opacity duration-700 last:mb-0 md:mb-[88px] md:grid md:grid-cols-2 md:last:mb-0 motion-reduce:transition-none ${r?"opacity-100":"opacity-0"}`,children:(0,t.jsx)("div",{ref:e=>a(i,e),className:`group md:px-3 ${o?"md:col-start-2":"md:col-start-1"}`,children:(0,t.jsxs)("div",{className:`flex gap-3 rounded-[22px] ${n.soft} p-4 shadow-[0_8px_22px_rgba(15,23,42,0.08)] ring-1 ring-black/[0.04] transition duration-700 ease-out hover:-translate-y-1 hover:shadow-[0_14px_30px_rgba(15,23,42,0.14)] motion-reduce:transition-none sm:p-5 ${r?"translate-x-0 translate-y-0":o?"translate-y-6 md:translate-x-8 md:translate-y-0":"translate-y-6 md:-translate-x-8 md:translate-y-0"}`,children:[(0,t.jsx)("span",{className:`flex h-7 w-7 shrink-0 items-center justify-center rounded-full ${n.dot} text-xs font-black text-white shadow-sm ring-4 ${n.ring} transition duration-300 group-hover:scale-110 group-hover:-rotate-6`,children:i+1}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[e.title?(0,t.jsx)("h3",{className:"text-base font-black leading-6 text-zinc-900",children:e.title}):null,(0,t.jsx)("p",{className:`whitespace-pre-line text-[13px] leading-6 text-zinc-600 ${e.title?"mt-1":""}`,children:e.content})]})]})})})}function Z({programDescription:e,programSections:i}){let a=(i??[]).filter(e=>e.title?.trim()||e.content?.trim()),n=a.length>0?a:e?.trim()?[{content:e}]:[],l=(0,s.useId)(),o=(0,s.useRef)(null),c=(0,s.useRef)(null),d=(0,s.useRef)([]),[m,x]=(0,s.useState)(null),[h,u]=(0,s.useState)({value:0,length:0,x:0,y:0}),p=(0,s.useCallback)((e,t)=>{d.current[e]=t},[]),g=(0,s.useCallback)(()=>{let e=o.current,t=c.current;if(!e||!t)return;let s=t.getTotalLength();if(!s)return;let i=e.getBoundingClientRect(),a=Math.min(1,Math.max(0,(.65*window.innerHeight-i.top)/Math.max(i.height,1))),n=t.getPointAtLength(s*a);u({value:a,length:s,x:n.x,y:n.y})},[]),b=(0,s.useCallback)(()=>{let e,t=o.current;if(!t||n.length<2)return void x(null);let s=t.getBoundingClientRect(),i=[],a=window.matchMedia("(min-width: 768px)").matches;for(let e=0;e{e.push({x:t.x,y:t.y});let a=i[s+1];if(!a)return;let n=a.x-t.x,l=a.top-t.bottom;e.push({x:t.x+.12*n,y:t.bottom+.2*l}),e.push({x:t.x+.4*n,y:t.bottom+.8*l}),e.push({x:t.x+.7*n,y:t.bottom+.25*l}),e.push({x:t.x+.95*n,y:t.bottom+.85*l})}),function(e){if(e.length<2)return"";let t=`M ${e[0].x} ${e[0].y}`;for(let s=0;s{let e=o.current;if(!e)return;let t=new ResizeObserver(()=>b());t.observe(e);let s=()=>requestAnimationFrame(g);return window.addEventListener("scroll",s,{passive:!0}),window.addEventListener("resize",s),()=>{t.disconnect(),window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[b,g]);let f=h.length,v=f*h.value;return(0,t.jsx)("section",{id:"program",className:"px-4 py-5 sm:px-6 lg:px-8",children:(0,t.jsx)("div",{className:"mx-auto max-w-6xl overflow-hidden rounded-[32px] bg-white shadow-[0_14px_45px_rgba(15,23,42,0.06)]",children:(0,t.jsxs)("div",{className:"px-5 py-8 sm:px-8 lg:px-10",children:[(0,t.jsx)(r,{icon:B.ScrollText,title:"Program školy v prírode",subtitle:"Program nie je pevný zoznam bodov. Prispôsobíme ho veku detí, počasiu, lokalite aj cieľu školy.",iconClassName:"bg-teal-50 text-teal-600"}),n.length>0?(0,t.jsxs)("div",{ref:o,className:"relative",children:[m?(0,t.jsxs)("svg",{"aria-hidden":!0,width:m.width,height:m.height,viewBox:`0 0 ${m.width} ${m.height}`,className:"pointer-events-none absolute left-0 top-0",children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("mask",{id:l,maskUnits:"userSpaceOnUse",children:[(0,t.jsx)("rect",{width:m.width,height:m.height,fill:"black"}),(0,t.jsx)("path",{d:m.d,fill:"none",stroke:"white",strokeWidth:"8",strokeLinecap:"round",strokeDasharray:`${v} ${f+1}`})]})}),(0,t.jsx)("path",{d:m.d,fill:"none",stroke:"#e4e4e7",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"2 10"}),(0,t.jsx)("path",{ref:c,d:m.d,fill:"none",stroke:W,strokeWidth:"3.5",strokeLinecap:"round",strokeDasharray:"10 9",mask:`url(#${l})`}),h.value>0&&h.value<1?(0,t.jsx)("circle",{cx:h.x,cy:h.y,r:"6",fill:"white",stroke:W,strokeWidth:"3"}):null]}):null,(0,t.jsx)("ol",{className:"relative z-10 list-none",children:n.map((e,s)=>(0,t.jsx)(G,{step:e,index:s,onCardRef:p},`program-step-${s}`))})]}):null]})})})}let X="bg-[#DEF1EF]";e.s(["SchoolsInNaturePageClient",0,function(){var e;let{data:n,isLoading:l,isError:r,refetch:o}=(0,a.useGetSchoolNatureQuery)(void 0,{skip:!1});if(e=!!n,(0,s.useEffect)(()=>{if(!e)return;let t=decodeURIComponent(window.location.hash.slice(1));if(!t)return;let s=document.getElementById(t);if(!s)return;let i=!1,a=()=>{i||s.scrollIntoView({block:"start"})};a();let n=()=>{i=!0},l=["wheel","touchmove","keydown","mousedown"];l.forEach(e=>window.addEventListener(e,n,{passive:!0,once:!0}));let r=[150,400,900,1800].map(e=>window.setTimeout(a,e));return()=>{i=!0,r.forEach(window.clearTimeout),l.forEach(e=>window.removeEventListener(e,n))}},[e]),l)return(0,t.jsx)("main",{className:`flex min-h-[70vh] items-center justify-center px-4 ${X}`,children:(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)(i.Loader2,{className:"h-8 w-8 animate-spin text-teal-700"}),(0,t.jsx)("p",{className:"mt-4 text-sm font-semibold text-zinc-600",children:"Načítavam školy v prírode..."})]})});if(r||!n)return(0,t.jsx)("main",{className:`flex min-h-[70vh] items-center justify-center px-4 ${X}`,children:(0,t.jsxs)("div",{className:"max-w-md rounded-[28px] border border-red-100 bg-white p-8 text-center shadow-sm",children:[(0,t.jsx)("h1",{className:"text-2xl font-black text-zinc-900",children:"Nepodarilo sa načítať stránku"}),(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-zinc-600",children:"Skúste to prosím znova alebo nás kontaktujte telefonicky."}),(0,t.jsx)("button",{type:"button",onClick:()=>o(),className:"mt-6 rounded-2xl bg-teal-700 px-5 py-3 text-sm font-bold text-white transition hover:bg-teal-800",children:"Skúsiť znova"})]})});if(!n)return null;let d=n.locations.filter(e=>e.isActive);return(0,t.jsxs)("main",{className:`min-h-screen text-zinc-900 ${X}`,children:[(0,t.jsx)(F,{schoolNature:n}),(0,t.jsx)(c,{aboutDescription:n.aboutDescription,whyChooseUs:n.whyChooseUs??{}}),(0,t.jsx)(q,{locations:d}),(0,t.jsx)(Z,{programDescription:n.programDescription,programImage:n.programImage,programSections:n.programSections}),(0,t.jsx)(A,{includedItems:n.includedItems,includedItemsImage:n.includedItemsImage}),(0,t.jsx)(h,{services:n.additionalServices??[]}),(0,t.jsx)(N,{priceTiers:n.priceTiers,additionalServices:n.additionalServices??[]}),(0,t.jsx)(P,{locations:d,services:n.additionalServices??[],useMockSubmit:!1,contactGalleryImages:n.contactGalleryImages})]})}],17302)}]);