(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8892,e=>{"use strict";var t=e.i(62265);function a(e){return e?`https://adventuras-web-images.s3.eu-central-1.amazonaws.com/${e}`:""}async function i({file:e,folder:a}){let l=await (0,t.fetchAuthSession)(),r=l.tokens?.idToken?.toString();if(!r)throw Error("Nie si prihlásená alebo chýba Cognito token.");let s=await fetch("https://zvybu4lg8f.execute-api.eu-central-1.amazonaws.com/uploads/presign",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({fileName:e.name,contentType:e.type||"application/octet-stream",folder:a})});if(!s.ok)throw Error(await s.text()||"Nepodarilo sa získať upload URL.");let{uploadUrl:n,key:o,fileUrl:c}=await s.json(),d=await fetch(n,{method:"PUT",headers:{"Content-Type":e.type||"application/octet-stream"},body:e});if(console.log(d),!d.ok)throw Error(await d.text()||"Nepodarilo sa nahrať súbor do S3.");return{uploadUrl:n,key:o,fileUrl:c}}e.s(["getS3ImageUrl",0,a,"getSchoolNatureImageUrl",0,function(e,t=""){return e?e.startsWith("/")||e.startsWith("http")?e:a(e):t},"uploadToS3",0,i])},61911,e=>{"use strict";let t=(0,e.i(75254).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["Users",0,t],61911)},83086,e=>{"use strict";let t=(0,e.i(75254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],83086)},18310,53339,e=>{"use strict";var t=e.i(75254);let a=(0,t.default)("mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]);e.s(["Mountain",0,a],18310);let i=(0,t.default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",0,i],53339)},9912,e=>{"use strict";let t=(0,e.i(75254).default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);e.s(["Rocket",0,t],9912)},72520,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],72520)},95468,e=>{"use strict";let t=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,t],95468)},14764,e=>{"use strict";let t=(0,e.i(75254).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],14764)},50861,e=>{"use strict";var t=e.i(71645),a=e.i(43476),i=(0,t.forwardRef)(({as:e="div",...t},i)=>(0,a.jsx)(e,{...t,ref:i}));let l="onloadTurnstileCallback",r={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},s="unloaded",n,o=new Promise((e,t)=>{n={resolve:e,reject:t},"ready"===s&&e(void 0)}),c=(e=l)=>("unloaded"===s&&(s="loading",window[e]=()=>{n.resolve(),s="ready",delete window[e]}),o),d=(0,t.forwardRef)((e,n)=>{let{scriptOptions:o,options:d={},siteKey:m,onWidgetLoad:u,onSuccess:p,onExpire:h,onError:x,onBeforeInteractive:f,onAfterInteractive:b,onUnsupported:v,onTimeout:g,onLoadScript:y,id:k,style:j,as:w="div",injectScript:N=!0,rerenderOnCallbackChange:z=!1,...M}=e,C=d.size,A=(0,t.useCallback)(()=>void 0===C?{}:"execute"===d.execution?r.invisible:"interaction-only"===d.appearance?r.interactionOnly:r[C],[d.execution,C,d.appearance]),[S,L]=(0,t.useState)(A()),T=(0,t.useRef)(null),[U,E]=(0,t.useState)(!1),I=(0,t.useRef)(void 0),D=(0,t.useRef)(!1),P=k||"cf-turnstile",V=(0,t.useRef)({onSuccess:p,onError:x,onExpire:h,onBeforeInteractive:f,onAfterInteractive:b,onUnsupported:v,onTimeout:g});(0,t.useEffect)(()=>{z||(V.current={onSuccess:p,onError:x,onExpire:h,onBeforeInteractive:f,onAfterInteractive:b,onUnsupported:v,onTimeout:g})});let R=o?.id||"cf-turnstile-script",O=function(e="cf-turnstile-script"){let[a,i]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let t=()=>{document.getElementById(e)&&i(!0)},a=new MutationObserver(t);return a.observe(document,{childList:!0,subtree:!0}),t(),()=>{a.disconnect()}},[e]),a}(R),_=o?.onLoadCallbackName||"onloadTurnstileCallback",$=d.appearance||"always",H=(0,t.useMemo)(()=>({sitekey:m,action:d.action,cData:d.cData,theme:d.theme||"auto",language:d.language||"auto",tabindex:d.tabIndex,"response-field":d.responseField,"response-field-name":d.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(C),retry:d.retry||"auto","retry-interval":d.retryInterval||8e3,"refresh-expired":d.refreshExpired||"auto","refresh-timeout":d.refreshTimeout||"auto",execution:d.execution||"render",appearance:d.appearance||"always","feedback-enabled":d.feedbackEnabled??!0,callback:e=>{D.current=!0,z?p?.(e):V.current.onSuccess?.(e)},"error-callback":z?x:(...e)=>V.current.onError?.(...e),"expired-callback":z?h:(...e)=>V.current.onExpire?.(...e),"before-interactive-callback":z?f:(...e)=>V.current.onBeforeInteractive?.(...e),"after-interactive-callback":z?b:(...e)=>V.current.onAfterInteractive?.(...e),"unsupported-callback":z?v:(...e)=>V.current.onUnsupported?.(...e),"timeout-callback":z?g:(...e)=>V.current.onTimeout?.(...e)}),[d.action,d.appearance,d.cData,d.execution,d.language,d.refreshExpired,d.responseField,d.responseFieldName,d.retry,d.retryInterval,d.tabIndex,d.theme,d.feedbackEnabled,d.refreshTimeout,m,C,z,z?p:null,z?x:null,z?h:null,z?f:null,z?b:null,z?v:null,z?g:null]),B=(0,t.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,t.useEffect)(function(){N&&!U&&(c(_),(({render:e="explicit",onLoadCallbackName:t=l,scriptOptions:{nonce:a="",defer:i=!0,async:r=!0,id:s="",appendTo:n,onError:o,crossOrigin:c=""}={}})=>{let d=s||"cf-turnstile-script";if(document.getElementById(d))return;let m=document.createElement("script");m.id=d,m.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${m.src}"]`)||(m.defer=!!i,m.async=!!r,a&&(m.nonce=a),c&&(m.crossOrigin=c),o&&(m.onerror=o,delete window[t]),("body"===n?document.body:document.getElementsByTagName("head")[0]).appendChild(m))})({onLoadCallbackName:_,scriptOptions:{...o,id:R}}))},[N,U,o,R,_]),(0,t.useEffect)(function(){"ready"!==s&&c(_).then(()=>E(!0)).catch(console.error)},[_]),(0,t.useEffect)(function(){if(!T.current||!U)return;let e=!1;return(async()=>{e||!T.current||(I.current=window.turnstile.render(T.current,H),I.current&&u?.(I.current))})(),()=>{e=!0,I.current&&(window.turnstile.remove(I.current),D.current=!1)}},[P,U,H]),(0,t.useImperativeHandle)(n,()=>{let{turnstile:e}=window;return{getResponse:()=>e?.getResponse&&I.current&&B()?e.getResponse(I.current):void console.warn("Turnstile has not been loaded"),getResponsePromise:async(e=3e4,t=100)=>new Promise((a,i)=>{let l,r=async()=>{if(D.current&&window.turnstile&&I.current)try{let e=window.turnstile.getResponse(I.current);return l&&clearTimeout(l),e?a(e):i(Error("No response received"))}catch(e){return l&&clearTimeout(l),console.warn("Failed to get response",e),i(Error("Failed to get response"))}l||=setTimeout(()=>{l&&clearTimeout(l),i(Error("Timeout"))},e),await new Promise(e=>setTimeout(e,t)),await r()};r()}),reset(){if(!e?.reset||!I.current||!B())return void console.warn("Turnstile has not been loaded");"execute"===d.execution&&L(r.invisible);try{D.current=!1,e.reset(I.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${I.current}`,e)}},remove(){e?.remove&&I.current&&B()?(L(r.invisible),D.current=!1,e.remove(I.current),I.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!T.current||!B()||I.current)return void console.warn("Turnstile has not been loaded or container not found");let t=e.render(T.current,H);return I.current=t,I.current&&u?.(I.current),"execute"!==d.execution&&L(C?r[C]:{}),t},execute(){"execute"!==d.execution?console.warn('Execution mode is not set to "execute"'):e?.execute&&T.current&&I.current&&B()?(e.execute(T.current),L(C?r[C]:{})):console.warn("Turnstile has not been loaded or container not found")},isExpired:()=>e?.isExpired&&I.current&&B()?e.isExpired(I.current):(console.warn("Turnstile has not been loaded"),!1)}},[I,d.execution,C,H,T,B,U,u]),(0,t.useEffect)(()=>{if(U||!O)return;if(window.turnstile)return void E(!0);let e=setInterval(()=>{window.turnstile&&(E(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[U,O]),(0,t.useEffect)(()=>{L(A())},[d.execution,C,$]),(0,t.useEffect)(()=>{O&&"function"==typeof y&&y()},[O]),(0,a.jsx)(i,{ref:T,as:w,id:P,style:{...S,...j},...M})});d.displayName="Turnstile",e.s(["Turnstile",0,d])},31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],31278)},1107,e=>{"use strict";let t=(0,e.i(75254).default)("trees",[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16H5a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"1l6gj6"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]]);e.s(["Trees",0,t],1107)},42009,e=>{"use strict";let t=(0,e.i(75254).default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);e.s(["Award",0,t],42009)},58377,e=>{"use strict";let t=(0,e.i(75254).default)("flame",[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]]);e.s(["Flame",0,t],58377)},97960,e=>{"use strict";let t=(0,e.i(75254).default)("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);e.s(["Smile",0,t],97960)},70273,e=>{"use strict";let t=(0,e.i(75254).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],70273)},50160,e=>{"use strict";let t=(0,e.i(75254).default)("tent",[["path",{d:"M3.5 21 14 3",key:"1szst5"}],["path",{d:"M20.5 21 10 3",key:"1310c3"}],["path",{d:"M15.5 21 12 15l-3.5 6",key:"1ddtfw"}],["path",{d:"M2 21h20",key:"1nyx9w"}]]);e.s(["Tent",0,t],50160)},64030,e=>{"use strict";let t=(0,e.i(75254).default)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]);e.s(["Trophy",0,t],64030)},32095,e=>{"use strict";let t=(0,e.i(75254).default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["GraduationCap",0,t],32095)},73375,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],73375)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],63059)},68553,30699,30731,e=>{"use strict";var t=e.i(75254);let a=(0,t.default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);e.s(["Camera",0,a],68553);let i=(0,t.default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);e.s(["Gift",0,i],30699);let l=(0,t.default)("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]);e.s(["PartyPopper",0,l],30731)},41240,e=>{"use strict";let t=(0,e.i(75254).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"}]]);e.s(["Lightbulb",0,t],41240)},78583,e=>{"use strict";let t=(0,e.i(75254).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["FileText",0,t],78583)},52570,e=>{"use strict";let t=e.i(37793).baseApi.injectEndpoints({endpoints:e=>({getJoinUs:e.query({query:()=>"/join-us",providesTags:[{type:"JoinUs",id:"DETAIL"}]}),updateJoinUs:e.mutation({query:e=>({url:"/join-us",method:"PUT",body:e}),invalidatesTags:[{type:"JoinUs",id:"DETAIL"}]}),createJoinUsApplication:e.mutation({query:e=>({url:"/applications",method:"POST",body:e})}),getJoinUsApplications:e.query({query:()=>"/applications"}),updateJoinUsApplicationStatus:e.mutation({query:({id:e,status:t})=>({url:`/applications/${e}`,method:"PUT",body:{status:t}}),async onQueryStarted({id:e,status:a},{dispatch:i,queryFulfilled:l}){try{let{data:r}=await l;i(t.util.updateQueryData("getJoinUsApplications",void 0,t=>{let i=t.find(t=>t.id===e);i&&(i.status=a,i.updatedAt=r?.updatedAt??i.updatedAt)}))}catch{}}}),deleteJoinUsApplication:e.mutation({query:e=>({url:`/applications/${e}`,method:"DELETE"}),async onQueryStarted(e,{dispatch:a,queryFulfilled:i}){try{await i,a(t.util.updateQueryData("getJoinUsApplications",void 0,t=>t.filter(t=>t.id!==e)))}catch{}}})}),overrideExisting:!1}),{useGetJoinUsQuery:a,useLazyGetJoinUsQuery:i,useUpdateJoinUsMutation:l,useCreateJoinUsApplicationMutation:r,useGetJoinUsApplicationsQuery:s,useLazyGetJoinUsApplicationsQuery:n,useUpdateJoinUsApplicationStatusMutation:o,useDeleteJoinUsApplicationMutation:c}=t;e.s(["useCreateJoinUsApplicationMutation",0,r,"useDeleteJoinUsApplicationMutation",0,c,"useGetJoinUsQuery",0,a,"useLazyGetJoinUsApplicationsQuery",0,n,"useLazyGetJoinUsQuery",0,i,"useUpdateJoinUsApplicationStatusMutation",0,o,"useUpdateJoinUsMutation",0,l])},69074,e=>{"use strict";let t=(0,e.i(75254).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,t],69074)},78716,e=>{"use strict";let t=(0,e.i(75254).default)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["Video",0,t],78716)},55040,97250,e=>{"use strict";var t=e.i(42009),a=e.i(75254);let i=(0,a.default)("briefcase-medical",[["path",{d:"M12 11v4",key:"a6ujw6"}],["path",{d:"M14 13h-4",key:"1pl8zg"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M18 6v14",key:"1mu4gy"}],["path",{d:"M6 6v14",key:"1s15cj"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);var l=e.i(68553);let r=(0,a.default)("cloud-sun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]),s=(0,a.default)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]]);var n=e.i(58377),o=e.i(30699);let c=(0,a.default)("hammer",[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]]),d=(0,a.default)("handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]),m=(0,a.default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]);var u=e.i(41240);let p=(0,a.default)("megaphone",[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]]);var h=e.i(18310),x=e.i(53339),f=e.i(30731),b=e.i(9912),v=e.i(97960),g=e.i(83086),y=e.i(70273);let k=(0,a.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,k],97250);var j=e.i(50160),w=e.i(1107),N=e.i(64030),z=e.i(61911);let M={tent:{label:"Stan",icon:j.Tent},sun:{label:"Slnko",icon:k},trees:{label:"Stromy",icon:w.Trees},"party-popper":{label:"Párty",icon:f.PartyPopper},compass:{label:"Kompas",icon:s},users:{label:"Ľudia",icon:z.Users},trophy:{label:"Pohár",icon:N.Trophy},mountain:{label:"Hory",icon:h.Mountain},sparkles:{label:"Iskričky",icon:g.Sparkles},heart:{label:"Srdce",icon:m},"cloud-sun":{label:"Slnko a mraky",icon:r},smile:{label:"Úsmev",icon:v.Smile},megaphone:{label:"Megafón",icon:p},"briefcase-medical":{label:"Lekárnička",icon:i},hammer:{label:"Kladivo",icon:c},star:{label:"Hviezda",icon:y.Star},flame:{label:"Oheň",icon:n.Flame},gift:{label:"Darček",icon:o.Gift},music:{label:"Hudba",icon:x.Music},camera:{label:"Fotoaparát",icon:l.Camera},rocket:{label:"Raketa",icon:b.Rocket},handshake:{label:"Podanie ruky",icon:d},lightbulb:{label:"Nápad",icon:u.Lightbulb},award:{label:"Ocenenie",icon:t.Award}},C={yellow:{label:"Žltá",className:"bg-[#f7d66c]",swatch:"#f7d66c"},pink:{label:"Ružová",className:"bg-[#ffd6e0]",swatch:"#ffd6e0"},green:{label:"Zelená",className:"bg-[#c8e58a]",swatch:"#c8e58a"},mint:{label:"Mätová",className:"bg-[#bfe9e1]",swatch:"#bfe9e1"},lavender:{label:"Fialová",className:"bg-[#d9d2f5]",swatch:"#d9d2f5"},peach:{label:"Broskyňová",className:"bg-[#ffe2b8]",swatch:"#ffe2b8"}};e.s(["JOIN_US_COLORS",0,C,"JOIN_US_ICONS",0,M,"getJoinUsColorClass",0,function(e){return e&&C[e]?.className||C.yellow.className},"getJoinUsIcon",0,function(e){return e&&M[e]?.icon||M.sparkles.icon}],55040)},18233,e=>{"use strict";let t={hero:{titleHighlight:"Pridaj sa",titleRest:"k nám",lead:"Toto nie je iba letná brigáda.",text:"Tábory. Školy v prírode. Víkendovky. Eventy. A partia, ku ktorej sa budeš chcieť vracať.",ctaLabel:"Chcem sa pridať",image:"camps/next-level/gallery/1778077051618-IMG_4744-2.jpg",imageAlt:"Tím Adventuras na tábore",tags:["Zážitky","Ľudia","Rast","Partia","Adventuras"]},offerings:{title:"S nami to letom nekončí",aside:"Adventuras nie sú len letné tábory. Počas celého roka pripravujeme programy pre deti, školy, rodiny aj firmy. A práve preto hľadáme ľudí, ktorí sa k nám môžu pridať nielen počas letných prázdnin.",items:[{title:"Letné pobytové tábory",text:"Týždeň plný hier, programu, výletov, večerných aktivít a nezabudnuteľnej táborovej atmosféry.",icon:"tent",color:"yellow",image:"camps/next-level/gallery/1778077051618-IMG_4744-2.jpg"},{title:"Denné tábory",text:"Chceš animovať, ale nechceš byť celý týždeň mimo domu? Denné tábory môžu byť presne pre teba.",icon:"sun",color:"pink",image:"camps/adventuracik-kosice/gallery/1778077260028-IMG_5663.jpg"},{title:"Školy v prírode",text:"Počas školského roka vyrážame so školskými kolektívmi na niekoľkodňové pobyty plné hier, súťaží, animácií a večerného programu.",icon:"trees",color:"green",image:"camps/art-camp/gallery/1777215501732-IMG_1383.jpg"},{title:"Eventy a akcie",text:"Detské, firemné podujatia a ďalšie eventy, na ktorých vytvárame program pre deti aj dospelých.",icon:"party-popper",color:"mint",image:"camps/next-level/gallery/1778077082965-IMG_6230-2.jpg"},{title:"Víkendovky",text:"Pár dní, intenzívny program a poriadna dávka táborovej atmosféry. Ideálne aj vtedy, keď počas týždňa študuješ alebo pracuješ.",icon:"compass",color:"lavender",image:"camps/expedicia-omega/gallery/1777824380950-52495e2a-265b-422d-a553-38abfc0e7567.jpg"}]},banner:{title:"Jedna partia. Kopec možností. Celý rok.",text:"Nemusíš si vybrať iba jednu možnosť. Začni tam, kde sa cítiš najlepšie, získaj skúsenosti a postupne môžeš skúsiť ďalšie akcie."},why:{title:"Prečo ísť do toho?",items:[{title:"Noví ľudia",text:"Spoznáš skvelú partiu z celého Slovenska.",icon:"users",color:"yellow"},{title:"Skúsenosti",text:"Rozvoj, komunikácia, vedenie tímu, riešenie situácií.",icon:"trophy",color:"green"},{title:"Zážitky",text:"Každý turnus je iný. Nuda medzi pracovné povinnosti nepatrí.",icon:"mountain",color:"mint"},{title:"Osobný rozvoj",text:"Získaš sebavedomie, nové zručnosti a priateľstvá na celý život.",icon:"sparkles",color:"pink"},{title:"Zmysel",text:"Budeš vytvárať deťom leto, na ktoré budú spomínať.",icon:"heart",color:"lavender"},{title:"Odmena",text:"Finančná odmena + ubytovanie a strava.",icon:"cloud-sun",color:"peach"}]},teamVideo:{collageImages:["camps/expedicia-omega/gallery/1777823719817-IMG_5916.jpg","camps/next-level/gallery/1778077051474-IMG_5054.jpg","camps/art-camp/gallery/1778077198440-IMG_6255.jpg"],collageBadge:"Toto bude tvoja partia",title:"Tábor treba zažiť.",videoEmbedUrl:"",videoDuration:"",videoPoster:"camps/art-camp/gallery/1778077234148-IMG_6126.jpg",fallbackLinkLabel:"Pozri si naše tábory"},roles:{title:"Vyber si svoje miesto v tíme",aside:"Nehľadáme dokonalých animátorov. Hľadáme ľudí, ktorí majú energiu, zodpovednosť a chuť vytvárať deťom dobré leto.",items:[{title:"Animátor / vedúci oddielu",text:"Budeš človekom, ktorý je deťom počas tábora najbližšie. Hry, súťaže, výlety, motivácia a kopec zábavy.",cta:"Chcem byť animátor",icon:"smile",color:"yellow",image:"camps/adventuracik-kosice/gallery/1778077271273-IMG_6065.jpg"},{title:"Hlavný vedúci",text:"Máš už skúsenosti a trúfaš si viesť nielen deti, ale aj celý animačný tím? Koordinuješ program a dohliadaš na priebeh tábora.",cta:"Chcem viesť tím",icon:"megaphone",color:"green",image:"camps/adventuracik-kosice/gallery/1778077309649-IMG_6525.jpg"},{title:"Zdravotník",text:"Ak máš zdravotnícku kvalifikáciu a zároveň ti je blízka táborová atmosféra, radi ťa privítame medzi nami.",cta:"Chcem byť zdravotník",icon:"briefcase-medical",color:"pink",image:"camps/adventuracik-kosice/gallery/1778077442137-IMG_5274.jpg"},{title:"Technická a organizačná podpora",text:"Nie každý hrdina behá s deťmi po lese. Hľadáme aj ľudí, ktorí pomáhajú zabezpečiť technický a organizačný chod pobytov.",cta:"Chcem pomáhať",icon:"hammer",color:"mint",image:"camps/game-on/gallery/1777825287374-IMG_5869.jpg"}]},testimonials:{title:"Čo o tom hovoria naši ľudia?",items:[{name:"Lucia",role:"animátorka",text:"Prišla som na jeden turnus a zostala som päť rokov. Adventuras je pre mňa komunita ľudí, ktorí spolu robia niečo zmysluplné."},{name:"Martin",role:"hlavný vedúci",text:"Naučil som sa viac, ako som čakal. Tábor ma naučil komunikovať, riešiť situácie a byť zodpovednejší. A hlavne – stretol som ľudí, ktorí sú dnes moji najlepší kamaráti."},{name:"Petra",role:"animátorka",text:"Nikdy som nebola animátorka a zo začiatku som sa bála. Dnes viem, že to bolo najlepšie rozhodnutie. Adventuras je viac než práca – je to komunita."}]},finalCta:{title:"Už 15 rokov tvoríme zážitky.",subtitle:"Teraz môžeš byť ich súčasťou aj ty.",ctaLabel:"Áno, chcem sa pridať",note:"Možno prídeš na jeden turnus. Možno sa vrátiš na ďalší. A možno práve ty budeš človekom, ktorý bude pripravovať novú generáciu animátorov.",image:"camps/adventuracik-kosice/gallery/1778077286350-IMG_3422.jpg"}};function a(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function i(e,t){return"string"==typeof e?e:t}function l(e){return a(e)?e:{}}function r(e,t,i){return Array.isArray(e)?e.filter(a).map(i):t}e.s(["getApplicationRoleOptions",0,function(e){return[...e.roles.items.map(e=>e.title).filter(Boolean),"Ešte neviem – chcem sa poradiť"]},"normalizeJoinUs",0,function(e){var s,n;let o=a(e)?e:{},c=structuredClone(t),d=l(o.hero),m=l(o.offerings),u=l(o.banner),p=l(o.why),h=l(o.teamVideo),x=l(o.roles),f=l(o.testimonials),b=l(o.finalCta),v=Array.isArray(h.collageImages)?h.collageImages:[];return{hero:{titleHighlight:i(d.titleHighlight,c.hero.titleHighlight),titleRest:i(d.titleRest,c.hero.titleRest),lead:i(d.lead,c.hero.lead),text:i(d.text,c.hero.text),ctaLabel:i(d.ctaLabel,c.hero.ctaLabel),image:i(d.image,c.hero.image),imageAlt:i(d.imageAlt,c.hero.imageAlt),tags:(s=d.tags,n=c.hero.tags,Array.isArray(s)?s.filter(e=>"string"==typeof e):n)},offerings:{title:i(m.title,c.offerings.title),aside:i(m.aside,c.offerings.aside),items:r(m.items,c.offerings.items,e=>({title:i(e.title,""),text:i(e.text,""),icon:i(e.icon,"sparkles"),color:i(e.color,"yellow"),image:i(e.image,"")}))},banner:{title:i(u.title,c.banner.title),text:i(u.text,c.banner.text)},why:{title:i(p.title,c.why.title),items:r(p.items,c.why.items,e=>({title:i(e.title,""),text:i(e.text,""),icon:i(e.icon,"sparkles"),color:i(e.color,"yellow")}))},teamVideo:{collageImages:c.teamVideo.collageImages.map((e,t)=>i(v[t],e)),collageBadge:i(h.collageBadge,c.teamVideo.collageBadge),title:i(h.title,c.teamVideo.title),videoEmbedUrl:i(h.videoEmbedUrl,c.teamVideo.videoEmbedUrl),videoDuration:i(h.videoDuration,c.teamVideo.videoDuration),videoPoster:i(h.videoPoster,c.teamVideo.videoPoster),fallbackLinkLabel:i(h.fallbackLinkLabel,c.teamVideo.fallbackLinkLabel)},roles:{title:i(x.title,c.roles.title),aside:i(x.aside,c.roles.aside),items:r(x.items,c.roles.items,e=>({title:i(e.title,""),text:i(e.text,""),cta:i(e.cta,""),icon:i(e.icon,"sparkles"),color:i(e.color,"yellow"),image:i(e.image,"")}))},testimonials:{title:i(f.title,c.testimonials.title),items:r(f.items,c.testimonials.items,e=>({name:i(e.name,""),role:i(e.role,""),text:i(e.text,"")}))},finalCta:{title:i(b.title,c.finalCta.title),subtitle:i(b.subtitle,c.finalCta.subtitle),ctaLabel:i(b.ctaLabel,c.finalCta.ctaLabel),note:i(b.note,c.finalCta.note),image:i(b.image,c.finalCta.image)},createdAt:"string"==typeof o.createdAt?o.createdAt:void 0,updatedAt:"string"==typeof o.updatedAt?o.updatedAt:void 0}},"prepareJoinUsForSave",0,function(e){let t=e=>e.trim();return{hero:{...e.hero,titleHighlight:t(e.hero.titleHighlight),titleRest:t(e.hero.titleRest),lead:t(e.hero.lead),text:t(e.hero.text),ctaLabel:t(e.hero.ctaLabel),imageAlt:t(e.hero.imageAlt),tags:e.hero.tags.map(t).filter(Boolean)},offerings:{title:t(e.offerings.title),aside:t(e.offerings.aside),items:e.offerings.items.map(e=>({...e,title:t(e.title),text:t(e.text)})).filter(e=>e.title)},banner:{title:t(e.banner.title),text:t(e.banner.text)},why:{title:t(e.why.title),items:e.why.items.map(e=>({...e,title:t(e.title),text:t(e.text)})).filter(e=>e.title)},teamVideo:{...e.teamVideo,collageBadge:t(e.teamVideo.collageBadge),title:t(e.teamVideo.title),videoEmbedUrl:t(e.teamVideo.videoEmbedUrl),videoDuration:t(e.teamVideo.videoDuration),fallbackLinkLabel:t(e.teamVideo.fallbackLinkLabel)},roles:{title:t(e.roles.title),aside:t(e.roles.aside),items:e.roles.items.map(e=>({...e,title:t(e.title),text:t(e.text),cta:t(e.cta)})).filter(e=>e.title)},testimonials:{title:t(e.testimonials.title),items:e.testimonials.items.map(e=>({name:t(e.name),role:t(e.role),text:t(e.text)})).filter(e=>e.name&&e.text)},finalCta:{...e.finalCta,title:t(e.finalCta.title),subtitle:t(e.finalCta.subtitle),ctaLabel:t(e.finalCta.ctaLabel),note:t(e.finalCta.note)}}}])},62426,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(31278),l=e.i(52570);e.i(47167);var r=e.i(95468),s=e.i(78583),n=e.i(14764),o=e.i(69074),c=e.i(78716),d=e.i(37727),m=e.i(50861),u=e.i(53262);let p={cv:{maxBytes:5242880,extensions:["pdf","doc","docx"],accept:".pdf,.doc,.docx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",allowedLabel:"PDF, DOC alebo DOCX",maxLabel:"5 MB"},video:{maxBytes:0x12c00000,extensions:["mp4","mov","m4v","webm","3gp"],accept:"video/*,.mp4,.mov,.m4v,.webm,.3gp",allowedLabel:"video (MP4, MOV, WEBM…)",maxLabel:"300 MB"}},h={pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",mp4:"video/mp4",mov:"video/quicktime",m4v:"video/x-m4v",webm:"video/webm","3gp":"video/3gpp"};function x(e){let t=e.lastIndexOf(".");return -1===t?"":e.slice(t+1).toLowerCase()}function f(e){return e<1048576?`${Math.max(1,Math.round(e/1024))} kB`:`${(e/1048576).toFixed(1).replace(".",",")} MB`}async function b({file:e,kind:t,onProgress:a}){let i=e.type||h[x(e.name)]||"application/octet-stream",l=await fetch("https://zvybu4lg8f.execute-api.eu-central-1.amazonaws.com/uploads/presign-application",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:t,fileName:e.name,contentType:i,size:e.size})});if(!l.ok)throw Error("Nepodarilo sa pripraviť nahrávanie súboru. Skús to prosím znova.");let{uploadUrl:r,key:s}=await l.json();return await new Promise((t,l)=>{let s=new XMLHttpRequest;s.open("PUT",r),s.setRequestHeader("Content-Type",i),s.upload.onprogress=e=>{e.lengthComputable&&a?.(e.loaded/e.total)},s.onload=()=>{s.status>=200&&s.status<300?t():l(Error("Nepodarilo sa nahrať súbor. Skús to prosím znova."))},s.onerror=()=>l(Error("Nahrávanie súboru zlyhalo. Skontroluj pripojenie a skús to znova.")),s.onabort=()=>l(Error("Nahrávanie bolo prerušené.")),s.send(e)}),s}let v="w-full rounded-2xl border border-zinc-200 bg-[#fbfdfb] px-4 py-3 text-zinc-900 outline-none transition placeholder:text-zinc-400 focus:border-[#d93b68]/50 focus:ring-4 focus:ring-[#d93b68]/10",g="mb-1.5 block text-sm font-medium text-zinc-700";function y({id:e,label:a,hint:i,accept:l,file:r,icon:s,disabled:n,error:c,onSelect:m,onRemove:u}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{id:`${e}-label`,className:g,children:a}),r?(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-2xl border border-zinc-200 bg-[#fbfdfb] px-4 py-3",children:[(0,t.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-[#ffd6e0] text-zinc-800",children:(0,t.jsx)(s,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-zinc-900",children:r.name}),(0,t.jsx)("p",{className:"text-xs text-zinc-500",children:f(r.size)})]}),(0,t.jsx)("button",{type:"button",onClick:u,disabled:n,"aria-label":`Odstr\xe1niť s\xfabor ${r.name}`,className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-zinc-100 text-zinc-600 transition hover:bg-zinc-200 disabled:cursor-not-allowed disabled:opacity-50",children:(0,t.jsx)(d.X,{className:"h-4 w-4"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("input",{id:e,type:"file",accept:l,disabled:n,"aria-labelledby":`${e}-label`,className:"peer sr-only",onChange:e=>{let t=e.target.files?.[0];e.target.value="",t&&m(t)}}),(0,t.jsxs)("label",{htmlFor:e,className:"flex cursor-pointer items-center gap-3 rounded-2xl border-2 border-dashed border-zinc-300 bg-[#fbfdfb] px-4 py-4 text-sm text-zinc-600 transition hover:border-[#d93b68]/50 hover:bg-[#fff5f8] peer-focus-visible:border-[#d93b68]/60 peer-focus-visible:ring-4 peer-focus-visible:ring-[#d93b68]/10",children:[(0,t.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-white text-[#d93b68] shadow-sm ring-1 ring-zinc-200",children:(0,t.jsx)(o.Upload,{className:"h-5 w-5"})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"block font-semibold text-[#d93b68]",children:"Vybrať súbor"}),(0,t.jsx)("span",{className:"block text-xs text-zinc-500",children:i})]})]})]}),c]})}function k({initialRole:e,roleOptions:i,onDone:o}){let[d,h]=(0,a.useState)({firstName:"",lastName:"",email:"",phone:"",role:e,birthDate:"",about:""}),[j,w]=(0,a.useState)(null),[N,z]=(0,a.useState)(null),[M,C]=(0,a.useState)({cv:"",video:""}),[A,S]=(0,a.useState)({}),[L,T]=(0,a.useState)(!1),[U,E]=(0,a.useState)(!1),[I,D]=(0,a.useState)(null),[P,V]=(0,a.useState)(""),[R,O]=(0,a.useState)(null),_=(0,a.useRef)(null),$=(0,a.useRef)(void 0),H=(0,a.useRef)({}),B=(0,a.useMemo)(()=>{var e;let t,a,i;return a=String((e=new Date((t=new Date).getFullYear()-18,t.getMonth(),t.getDate())).getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0"),`${e.getFullYear()}-${a}-${i}`},[]),[J]=(0,l.useCreateJoinUsApplicationMutation)(),F=(0,a.useMemo)(()=>({firstName:d.firstName.trim()?"":"Zadaj meno.",lastName:d.lastName.trim()?"":"Zadaj priezvisko.",email:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d.email.trim())?"":"Zadaj platný e-mail.",phone:d.phone.trim()?"":"Zadaj telefónne číslo.",role:d.role?"":"Vyber, čo ťa zaujíma.",birthDate:function(e){if(!e)return"Zadaj dátum narodenia.";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return"Zadaj platný dátum narodenia.";let[a,i,l]=t.slice(1).map(Number),r=new Date(a,i-1,l);if(a<1900||r.getFullYear()!==a||r.getMonth()!==i-1||r.getDate()!==l)return"Zadaj platný dátum narodenia.";let s=new Date;return r>s?"Dátum narodenia nemôže byť v budúcnosti.":new Date(a+18,i-1,l)>s?"Do tímu sa môžeš pridať od 18 rokov.":""}(d.birthDate),cv:M.cv||(j?"":"Nahraj svoje CV."),video:M.video}),[d,j,M]),q=Object.values(F).every(e=>!e),G=e=>{let{name:t,value:a}=e.target;h(e=>({...e,[t]:a})),V("")},Z=e=>{let{name:t}=e.target;S(e=>({...e,[t]:!0}))},K=(e,t)=>{let a,i,l=(a=p[e],i=x(t.name),"video"===e&&t.type.startsWith("video/")||a.extensions.includes(i)?0===t.size?"Súbor je prázdny.":t.size>a.maxBytes?`S\xfabor je pr\xedliš veľk\xfd (${f(t.size)}). Maximum je ${a.maxLabel}.`:"":`Nepodporovan\xfd form\xe1t. Nahraj ${a.allowedLabel}.`);C(t=>({...t,[e]:l})),S(t=>({...t,[e]:!0})),("cv"===e?w:z)(l?null:t),V("")},W=e=>{("cv"===e?w:z)(null),C(t=>({...t,[e]:""})),S(t=>({...t,[e]:"cv"===e}))},Q=async(e,t,a)=>{let i=H.current[e];if(i&&i.file===t)return i.key;let l=-1;D({label:a,percent:0});let r=await b({file:t,kind:e,onProgress:e=>{let t=Math.round(100*e);t!==l&&(l=t,D({label:a,percent:t}))}});return H.current[e]={file:t,key:r},r},X=async(e=15e3)=>{let t=Date.now();for(;!_.current&&Date.now()-tsetTimeout(e,300));return _.current},Y=async e=>{if((e.preventDefault(),!U)&&(S({firstName:!0,lastName:!0,email:!0,phone:!0,role:!0,birthDate:!0,cv:!0,video:!0}),V(""),q&&j)){if(!_.current)return void V("Potvrď prosím, že nie si robot.");E(!0);try{let e=await Q("cv",j,"Nahrávam CV"),t=N?await Q("video",N,"Nahrávam video"):"";D(null);let a=await X();if(!a)return void V("Overenie, že nie si robot, vypršalo. Potvrď ho prosím znova a odošli prihlášku.");try{await J({firstName:d.firstName.trim(),lastName:d.lastName.trim(),email:d.email.trim(),phone:d.phone.trim(),position:d.role,dateOfBirth:d.birthDate,about:d.about.trim(),cvKey:e,videoKey:t,captchaToken:a}).unwrap()}catch(e){throw _.current=null,O(null),$.current?.reset(),e}T(!0),(0,u.pushDataLayerEvent)({event:"generate_lead",form_name:"pridaj-sa-k-nam"})}catch(e){V(function(e){if(e instanceof Error&&e.message)return e.message;if("object"==typeof e&&null!==e&&"data"in e&&"object"==typeof e.data){let t=e.data;if(t?.message)return t.message}return"Nepodarilo sa odoslať prihlášku. Skúste to prosím znova."}(e))}finally{D(null),E(!1)}}};if(L)return(0,t.jsxs)("div",{className:"px-6 py-10 text-center sm:px-10",children:[(0,t.jsx)("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-full bg-emerald-50 text-emerald-600 ring-1 ring-emerald-100",children:(0,t.jsx)(r.CheckCircle2,{className:"h-8 w-8"})}),(0,t.jsx)("h3",{className:"mt-6 text-2xl font-bold tracking-tight text-zinc-900",children:"Ďakujeme, tešíme sa na teba!"}),(0,t.jsx)("p",{className:"mt-3 text-base leading-7 text-zinc-600",children:"Tvoja prihláška bola odoslaná. Ozveme sa ti čo najskôr a prejdeme si spolu ďalšie kroky."}),(0,t.jsx)("button",{type:"button",onClick:o,className:"mt-8 inline-flex items-center justify-center rounded-2xl bg-[#d93b68] px-6 py-3 font-semibold text-white transition hover:opacity-90",children:"Zavrieť"})]});let ee=e=>A[e]&&F[e]?(0,t.jsx)("p",{className:"mt-1.5 text-sm text-rose-600",children:F[e]}):null;return(0,t.jsxs)("form",{className:"space-y-5 px-6 py-8 sm:px-8",onSubmit:Y,noValidate:!0,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.22em] text-[#d93b68]",children:"Prihláška"}),(0,t.jsx)("h2",{className:"mt-2 text-2xl font-black tracking-tight text-zinc-900 sm:text-3xl",children:"Chcem sa pridať"}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-zinc-600",children:"Vyplň krátku prihlášku, prilož CV a my sa ti ozveme."})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"join-firstName",className:g,children:"Meno"}),(0,t.jsx)("input",{id:"join-firstName",name:"firstName",type:"text",autoComplete:"given-name",value:d.firstName,onChange:G,onBlur:Z,className:v}),ee("firstName")]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"join-lastName",className:g,children:"Priezvisko"}),(0,t.jsx)("input",{id:"join-lastName",name:"lastName",type:"text",autoComplete:"family-name",value:d.lastName,onChange:G,onBlur:Z,className:v}),ee("lastName")]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"join-email",className:g,children:"E-mail"}),(0,t.jsx)("input",{id:"join-email",name:"email",type:"email",autoComplete:"email",value:d.email,onChange:G,onBlur:Z,placeholder:"tvoj@email.sk",className:v}),ee("email")]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"join-phone",className:g,children:"Telefón"}),(0,t.jsx)("input",{id:"join-phone",name:"phone",type:"tel",autoComplete:"tel",value:d.phone,onChange:G,onBlur:Z,placeholder:"+421 ...",className:v}),ee("phone")]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"join-birthDate",className:g,children:"Dátum narodenia"}),(0,t.jsx)("input",{id:"join-birthDate",name:"birthDate",type:"date",autoComplete:"bday",min:"1900-01-01",max:B,value:d.birthDate,onChange:G,onBlur:Z,className:v}),A.birthDate&&F.birthDate?(0,t.jsx)("p",{className:"mt-1.5 text-sm text-rose-600",children:F.birthDate}):(0,t.jsxs)("p",{className:"mt-1.5 text-xs text-zinc-500",children:["Pridať sa môžeš od ",18," rokov."]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"join-role",className:g,children:"Čo ťa zaujíma"}),(0,t.jsxs)("select",{id:"join-role",name:"role",value:d.role,onChange:G,onBlur:Z,className:v,children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Vyber pozíciu"}),i.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),ee("role")]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:"join-about",className:g,children:["Povedz nám niečo o sebe ",(0,t.jsx)("span",{className:"text-zinc-400",children:"(nepovinné)"})]}),(0,t.jsx)("textarea",{id:"join-about",name:"about",rows:4,value:d.about,onChange:G,placeholder:"Skúsenosti, škola či práca, prečo chceš do tábora…",className:v})]}),(0,t.jsx)(y,{id:"join-cv",label:(0,t.jsxs)(t.Fragment,{children:["Životopis (CV) ",(0,t.jsx)("span",{className:"text-[#d93b68]",children:"*"})]}),hint:`${p.cv.allowedLabel}, max. ${p.cv.maxLabel}`,accept:p.cv.accept,icon:s.FileText,file:j,disabled:U,error:ee("cv"),onSelect:e=>K("cv",e),onRemove:()=>W("cv")}),(0,t.jsxs)("div",{className:"space-y-3 rounded-3xl border border-zinc-100 bg-[#fffaf0] p-4 sm:p-5",children:[(0,t.jsxs)("div",{className:"text-sm leading-6 text-zinc-700",children:[(0,t.jsxs)("p",{className:"font-semibold text-zinc-900",children:["Video o sebe"," ",(0,t.jsx)("span",{className:"font-normal text-zinc-400",children:"(nepovinné)"})]}),(0,t.jsx)("p",{className:"mt-1",children:"Natoč krátke video (cca 2 minúty) a povedz nám:"}),(0,t.jsxs)("ul",{className:"mt-2 list-disc space-y-1 pl-5",children:[(0,t.jsx)("li",{children:"krátko sa predstav – kto si?"}),(0,t.jsx)("li",{children:"aké máš skúsenosti s deťmi (alebo niečo podobné)?"}),(0,t.jsx)("li",{children:"bol si už na letnom tábore?"}),(0,t.jsx)("li",{children:"prečo by si chcel animovať?"}),(0,t.jsx)("li",{children:"akú aktivitu by si vedel viesť? (tanec, plávanie, šikovné ruky, šport, nerf… alebo niečo úplne iné)"})]}),(0,t.jsxs)("p",{className:"mt-3",children:["Video nemusí byť formálne. Ukáž, kto naozaj si, buď sám sebou – zaujíma nás tvoj ",(0,t.jsx)("span",{className:"font-semibold",children:"vibe"}),"."]})]}),(0,t.jsx)(y,{id:"join-video",label:"Nahrať video",hint:`Napr. MP4 alebo MOV z mobilu, max. ${p.video.maxLabel}`,accept:p.video.accept,icon:c.Video,file:N,disabled:U,error:ee("video"),onSelect:e=>K("video",e),onRemove:()=>W("video")})]}),(0,t.jsxs)("div",{className:"space-y-3 pt-1",children:[I?(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:"rounded-2xl border border-zinc-200 bg-zinc-50 p-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-sm font-medium text-zinc-700",children:[(0,t.jsxs)("span",{children:[I.label,"…"]}),(0,t.jsxs)("span",{children:[I.percent," %"]})]}),(0,t.jsx)("div",{className:"mt-2 h-2 overflow-hidden rounded-full bg-zinc-200",children:(0,t.jsx)("div",{className:"h-full rounded-full bg-[#d93b68] transition-[width] duration-200",style:{width:`${I.percent}%`}})}),(0,t.jsx)("p",{className:"mt-2 text-xs text-zinc-500",children:"Nezatváraj toto okno, kým sa súbor nenahrá."})]}):null,(0,t.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsx)(m.Turnstile,{ref:$,siteKey:"0x4AAAAAADIgUicmiF2ZZch-",options:{theme:"light"},onSuccess:e=>{_.current=e,O(e),V("")},onExpire:()=>{_.current=null,O(null)},onError:()=>{_.current=null,O(null),V("Captcha overenie zlyhalo. Skús to prosím znova.")}}),(0,t.jsxs)("button",{type:"submit",disabled:U||!R,className:"inline-flex items-center justify-center gap-2 rounded-2xl bg-[#d93b68] px-6 py-3 font-semibold text-white transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",children:[(0,t.jsx)(n.Send,{className:"h-4 w-4"}),U?"Odosielam...":"Odoslať prihlášku"]})]}),P?(0,t.jsx)("div",{className:"text-sm font-medium text-rose-600",children:P}):null,(0,t.jsx)("p",{className:"text-xs leading-6 text-zinc-500",children:"Odoslaním prihlášky súhlasíš so spracovaním údajov vrátane CV a videa za účelom kontaktovania ohľadom spolupráce."})]})]})}function j({open:e,initialRole:i,roleOptions:l,onClose:r}){let s=(0,a.useRef)(null);(0,a.useEffect)(()=>{let t=s.current;t&&(e&&!t.open&&t.showModal(),!e&&t.open&&t.close())},[e]);let n=()=>s.current?.close();return(0,t.jsxs)("dialog",{ref:s,onClose:r,onClick:e=>{e.target===s.current&&n()},"aria-label":"Prihláška do tímu Adventuras",className:"m-auto max-h-[92vh] w-[calc(100%-2rem)] max-w-xl overflow-y-auto rounded-[28px] border border-zinc-200 bg-white p-0 text-zinc-800 shadow-[0_30px_80px_rgba(0,0,0,0.25)] backdrop:bg-black/50 backdrop:backdrop-blur-sm",children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Zavrieť",className:"absolute right-4 top-4 z-10 flex h-9 w-9 items-center justify-center rounded-full bg-zinc-100 text-zinc-600 transition hover:bg-zinc-200",children:(0,t.jsx)(d.X,{className:"h-4 w-4"})}),e?(0,t.jsx)(k,{initialRole:i,roleOptions:l,onDone:n}):null]})}var w=e.i(18310),N=e.i(1107);function z({content:e}){return(0,t.jsx)("section",{className:"mx-auto max-w-6xl px-4 pt-14 md:px-6 md:pt-20",children:(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-[32px] border border-[#f7d98b] bg-[linear-gradient(135deg,#fff7db_0%,#ffe08a_100%)] px-6 py-10 text-center shadow-[0_18px_40px_rgba(217,59,104,0.08)] md:px-12 md:py-14",children:[(0,t.jsx)(N.Trees,{"aria-hidden":!0,className:"absolute -left-4 bottom-0 hidden h-32 w-32 text-[#b7791f]/25 md:block",strokeWidth:1.25}),(0,t.jsx)(w.Mountain,{"aria-hidden":!0,className:"absolute -right-4 bottom-0 hidden h-36 w-36 text-[#b7791f]/25 md:block",strokeWidth:1.25}),(0,t.jsx)("h2",{className:"relative text-3xl font-black leading-tight tracking-tight text-zinc-900 sm:text-4xl lg:text-5xl",children:e.title}),e.text?(0,t.jsx)("p",{className:"relative mx-auto mt-4 max-w-2xl text-base leading-7 text-zinc-700 md:text-lg md:leading-8",children:e.text}):null]})})}var M=e.i(57688),C=e.i(72520),A=e.i(8892);function S({content:e,onApply:a}){let i=(0,A.getSchoolNatureImageUrl)(e.image);return(0,t.jsx)("section",{className:"mx-auto max-w-6xl px-4 pt-16 md:px-6 md:pt-24",children:(0,t.jsxs)("div",{className:"soft-card relative overflow-hidden rounded-[32px] bg-zinc-800",children:[i?(0,t.jsx)(M.default,{src:i,alt:"",fill:!0,unoptimized:!0,className:"object-cover",sizes:"100vw"}):null,(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/80 via-black/55 to-black/25"}),(0,t.jsxs)("div",{className:"relative z-10 grid gap-8 px-6 py-12 text-white md:grid-cols-[1.4fr_0.8fr] md:items-center md:px-12 md:py-16",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-4xl font-black leading-[1.02] tracking-tight md:text-6xl",children:e.title}),e.subtitle?(0,t.jsx)("p",{className:"mt-4 text-lg font-semibold text-white/90 md:text-xl",children:e.subtitle}):null,e.ctaLabel?(0,t.jsxs)("button",{type:"button",onClick:a,className:"mt-8 inline-flex h-12 items-center justify-center gap-2 rounded-2xl bg-[#d93b68] px-7 font-semibold text-white shadow-lg transition hover:opacity-90 active:scale-[0.98]",children:[e.ctaLabel,(0,t.jsx)(C.ArrowRight,{className:"h-4 w-4"})]}):null]}),e.note?(0,t.jsx)("p",{className:"rounded-[24px] border border-white/30 bg-white/15 p-6 text-sm leading-7 text-white backdrop-blur-md md:-rotate-1",children:e.note}):null]})]})})}function L({content:e,onApply:a}){let i=(0,A.getSchoolNatureImageUrl)(e.image);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-[520px] md:min-h-[600px]",children:[i?(0,t.jsx)(M.default,{src:i,alt:e.imageAlt,fill:!0,unoptimized:!0,className:"object-cover",priority:!0}):(0,t.jsx)("div",{className:"absolute inset-0 bg-zinc-800"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-black/75 via-black/40 to-black/5"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent"}),(0,t.jsxs)("div",{className:"relative z-10 flex min-h-[520px] flex-col justify-between gap-10 px-6 py-8 text-white md:min-h-[600px] md:px-12 md:py-12",children:[(0,t.jsxs)("div",{className:"max-w-2xl md:mt-10",children:[(0,t.jsxs)("h1",{className:"text-5xl font-black leading-[0.98] tracking-tight drop-shadow-[0_4px_18px_rgba(0,0,0,0.5)] sm:text-6xl md:text-7xl",children:[e.titleHighlight?(0,t.jsx)("span",{className:"inline-block -rotate-1 rounded-2xl bg-[#f7d66c] px-4 py-1 text-zinc-900 shadow-lg",children:e.titleHighlight}):null,e.titleHighlight&&e.titleRest?(0,t.jsx)("br",{}):null,e.titleRest?(0,t.jsx)("span",{className:"mt-2 inline-block",children:e.titleRest}):null]}),e.lead?(0,t.jsx)("p",{className:"mt-7 max-w-xl text-xl font-extrabold leading-8 md:text-2xl md:leading-9",children:e.lead}):null,e.text?(0,t.jsx)("p",{className:"mt-3 max-w-xl text-base leading-7 text-white/90 md:text-lg md:leading-8",children:e.text}):null,e.ctaLabel?(0,t.jsxs)("button",{type:"button",onClick:a,className:"mt-8 inline-flex h-12 items-center justify-center gap-2 rounded-2xl bg-[#d93b68] px-7 font-semibold text-white shadow-lg transition hover:opacity-90 active:scale-[0.98]",children:[e.ctaLabel,(0,t.jsx)(C.ArrowRight,{className:"h-4 w-4"})]}):null]}),e.tags.length>0?(0,t.jsx)("ul",{className:"flex flex-wrap gap-2.5 md:justify-end",children:e.tags.map((e,a)=>(0,t.jsx)("li",{className:"rounded-full border border-white/40 bg-white/15 px-4 py-2 text-sm font-semibold text-white backdrop-blur-md",children:e},`${e}-${a}`))}):null]})]})})})}var T=e.i(55040);function U(e,t=4,a=3){if(e<=t)return Math.max(e,a);let i=[];for(let e=t;e>=a;e-=1)i.push(e);let l=i.find(t=>e%t==0);if(l)return l;let r=i.find(t=>e%t>=t/2);return r||i.reduce((t,a)=>e%a>e%t?a:t,i[0])}function E({title:e,aside:a,id:i}){return(0,t.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:items-end md:justify-between md:gap-12",children:[(0,t.jsx)("h2",{id:i,className:"max-w-2xl text-balance text-3xl font-black leading-[1.05] tracking-tight text-zinc-900 sm:text-4xl lg:text-5xl",children:e}),a?(0,t.jsx)("p",{className:"max-w-md text-base leading-7 text-zinc-600 md:pb-1",children:a}):null]})}function I({content:e}){let a=U(e.items.length);return(0,t.jsxs)("section",{className:"mx-auto max-w-6xl px-4 pt-16 md:px-6 md:pt-24",children:[(0,t.jsx)(E,{title:e.title,aside:e.aside}),(0,t.jsx)("div",{className:"balanced-grid mt-10",style:{"--cols":a},children:e.items.map(({title:e,text:a,icon:i,color:l,image:r},s)=>{let n=(0,T.getJoinUsIcon)(i),o=(0,A.getSchoolNatureImageUrl)(r);return(0,t.jsxs)("article",{className:"soft-card group flex flex-col overflow-hidden rounded-[28px] border border-zinc-100 bg-white transition hover:-translate-y-1",children:[(0,t.jsx)("div",{className:"relative h-44 overflow-hidden bg-zinc-100 sm:h-52",children:o?(0,t.jsx)(M.default,{src:o,alt:e,fill:!0,unoptimized:!0,className:"object-cover transition duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"}):null}),(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col px-5 pb-6 pt-9",children:[(0,t.jsx)("span",{className:`absolute -top-6 left-5 flex h-12 w-12 items-center justify-center rounded-2xl text-zinc-800 shadow-md ring-4 ring-white ${(0,T.getJoinUsColorClass)(l)}`,children:(0,t.jsx)(n,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"text-lg font-extrabold leading-snug text-zinc-900",children:e}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-zinc-600",children:a})]})]},`${e}-${s}`)})})]})}function D({content:e,onApply:a}){let i=U(e.items.length);return(0,t.jsxs)("section",{id:"pozicie",className:"mx-auto max-w-6xl scroll-mt-24 px-4 pt-16 md:px-6 md:pt-24",children:[(0,t.jsx)(E,{title:e.title,aside:e.aside}),(0,t.jsx)("div",{className:"balanced-grid mt-10",style:{"--cols":i},children:e.items.map((e,i)=>{let l=(0,T.getJoinUsIcon)(e.icon),r=(0,A.getSchoolNatureImageUrl)(e.image);return(0,t.jsxs)("article",{className:"soft-card group flex flex-col overflow-hidden rounded-[28px] border border-zinc-100 bg-white transition hover:-translate-y-1",children:[(0,t.jsxs)("div",{className:"relative h-52 overflow-hidden bg-zinc-100",children:[r?(0,t.jsx)(M.default,{src:r,alt:e.title,fill:!0,unoptimized:!0,className:"object-cover transition duration-500 group-hover:scale-105",sizes:"(max-width: 640px) 100vw, (max-width: 1280px) 50vw, 25vw"}):null,(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/35 via-transparent to-transparent"})]}),(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col px-6 pb-6 pt-9",children:[(0,t.jsx)("span",{className:`absolute -top-6 left-6 flex h-12 w-12 items-center justify-center rounded-2xl text-zinc-800 shadow-md ring-4 ring-white ${(0,T.getJoinUsColorClass)(e.color)}`,children:(0,t.jsx)(l,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"text-xl font-extrabold leading-snug text-zinc-900",children:e.title}),(0,t.jsx)("p",{className:"mt-3 text-sm leading-6 text-zinc-600",children:e.text}),(0,t.jsx)("div",{className:"mt-auto pt-6",children:(0,t.jsxs)("button",{type:"button",onClick:()=>a(e.title),className:"inline-flex w-full items-center justify-center gap-2 rounded-xl bg-[#d93b68] px-4 py-3 text-sm font-semibold text-white shadow-md transition hover:opacity-90 active:scale-[0.98]",children:[e.cta||"Chcem sa pridať",(0,t.jsx)(C.ArrowRight,{className:"h-4 w-4"})]})})]})]},`${e.title}-${i}`)})})]})}var P=e.i(75254);let V=(0,P.default)("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]);var R=e.i(32095);let O=(0,P.default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);var _=e.i(97250);let $=[{title:"Prihlásiš sa",text:"Vyplníš krátku online prihlášku a povieš nám o sebe.",icon:s.FileText,color:"bg-[#f7d66c]"},{title:"Spoznáme sa",text:"Ozveme sa ti a prejdeme si spolu možnosti spolupráce.",icon:O,color:"bg-[#c8e58a]"},{title:"Pripravíme ťa",text:"Dostaneš potrebné informácie a absolvuješ školenie.",icon:R.GraduationCap,color:"bg-[#bfe9e1]"},{title:"Vyberieš si akcie",text:"Podľa možností si vyberieš tábory, školy v prírode, eventy alebo víkendovky, ktoré ti vyhovujú.",icon:V,color:"bg-[#ffd6e0]"},{title:"Ideš do toho",text:"Prídeš na prvú akciu a začne sa leto, ktoré môže trvať aj celý rok.",icon:_.Sun,color:"bg-[#d9d2f5]"}];function H(){return(0,t.jsx)("section",{className:"mx-auto max-w-6xl px-4 pt-16 md:px-6 md:pt-24",children:(0,t.jsxs)("div",{className:"rounded-[32px] bg-[linear-gradient(180deg,#fff7df_0%,#fffdf8_100%)] px-5 py-10 shadow-[0_14px_45px_rgba(15,23,42,0.06)] sm:px-8 md:py-12 lg:px-10",children:[(0,t.jsx)(E,{title:"Ako to funguje?"}),(0,t.jsx)("ol",{className:"mt-12 grid gap-10 sm:grid-cols-2 lg:grid-cols-5 lg:gap-4",children:$.map(({title:e,text:a,icon:i,color:l},r)=>(0,t.jsxs)("li",{className:"relative flex flex-col items-center text-center",children:[r<$.length-1?(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute left-[calc(50%+48px)] top-8 hidden h-0 w-[calc(100%-96px)] border-t-2 border-dashed border-zinc-300 lg:block"}):null,(0,t.jsxs)("span",{className:`relative flex h-16 w-16 items-center justify-center rounded-3xl text-zinc-800 shadow-md ${l}`,children:[(0,t.jsx)(i,{className:"h-8 w-8"}),(0,t.jsx)("span",{className:"absolute -right-2 -top-2 flex h-7 w-7 items-center justify-center rounded-full bg-[#d93b68] text-xs font-bold text-white ring-4 ring-[#fffaf0]",children:r+1})]}),(0,t.jsx)("h3",{className:"mt-5 text-lg font-extrabold text-zinc-900",children:e}),(0,t.jsx)("p",{className:"mt-2 max-w-[230px] text-sm leading-6 text-zinc-600",children:a})]},e))})]})})}var B=e.i(22016);let J=(0,P.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);function F({content:e}){let i,[l,r]=(0,a.useState)(!1),[s,n,o]=[0,1,2].map(t=>(0,A.getSchoolNatureImageUrl)(e.collageImages[t])),c=(0,A.getSchoolNatureImageUrl)(e.videoPoster),d=(i=e.videoEmbedUrl.trim()).startsWith("https://")?i:"",m=!!d;return(0,t.jsx)("section",{className:"mx-auto max-w-6xl px-4 pt-16 md:px-6 md:pt-24",children:(0,t.jsxs)("div",{className:"grid gap-5 lg:grid-cols-[1.05fr_1fr]",children:[(0,t.jsxs)("div",{className:"relative grid min-h-[340px] grid-cols-[1.4fr_1fr] grid-rows-2 gap-3 md:min-h-[460px]",children:[(0,t.jsxs)("div",{className:"soft-card relative row-span-2 overflow-hidden rounded-[28px] bg-zinc-100",children:[s?(0,t.jsx)(M.default,{src:s,alt:"Animátori Adventuras",fill:!0,unoptimized:!0,className:"object-cover",sizes:"(max-width: 1024px) 60vw, 33vw"}):null,(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-transparent to-transparent"}),e.collageBadge?(0,t.jsx)("span",{className:"absolute bottom-4 left-4 right-4 inline-block w-fit -rotate-1 rounded-2xl bg-[#f7d66c] px-4 py-2 text-base font-black text-zinc-900 shadow-lg md:text-lg",children:e.collageBadge}):null]}),(0,t.jsx)("div",{className:"soft-card relative overflow-hidden rounded-[28px] bg-zinc-100",children:n?(0,t.jsx)(M.default,{src:n,alt:"Dobrá nálada v tíme",fill:!0,unoptimized:!0,className:"object-cover",sizes:"(max-width: 1024px) 40vw, 20vw"}):null}),(0,t.jsx)("div",{className:"soft-card relative overflow-hidden rounded-[28px] bg-zinc-100",children:o?(0,t.jsx)(M.default,{src:o,alt:"Animátorky na tábore",fill:!0,unoptimized:!0,className:"object-cover",sizes:"(max-width: 1024px) 40vw, 20vw"}):null})]}),(0,t.jsxs)("div",{className:"soft-card flex flex-col justify-center rounded-[32px] bg-[#23433b] p-6 text-white sm:p-8 md:p-10",children:[(0,t.jsx)("h2",{className:"text-3xl font-black leading-tight tracking-tight sm:text-4xl lg:text-5xl",children:e.title}),(0,t.jsx)("div",{className:"relative mt-6 aspect-video w-full overflow-hidden rounded-[24px] bg-black/30 shadow-[0_14px_40px_rgba(0,0,0,0.35)] ring-1 ring-white/20",children:m&&l?(0,t.jsx)("iframe",{src:`${d}${d.includes("?")?"&":"?"}autoplay=1`,title:"Adventuras – ako vyzerá tábor",allow:"autoplay; encrypted-media; picture-in-picture",allowFullScreen:!0,className:"absolute inset-0 h-full w-full"}):(0,t.jsxs)(t.Fragment,{children:[c?(0,t.jsx)(M.default,{src:c,alt:"Ukážka z tábora Adventuras",fill:!0,unoptimized:!0,className:"object-cover",sizes:"(max-width: 1024px) 100vw, 40vw"}):null,m?(0,t.jsx)("button",{type:"button",onClick:()=>r(!0),"aria-label":"Prehrať video",className:"absolute inset-0 flex items-center justify-center bg-black/25 transition hover:bg-black/35",children:(0,t.jsx)("span",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-[#d93b68] text-white shadow-lg transition hover:scale-105",children:(0,t.jsx)(J,{className:"ml-1 h-7 w-7 fill-current"})})}):null]})}),m?(0,t.jsxs)("p",{className:"mt-4 text-base font-bold text-[#f7d66c]",children:["Pozri si naše video",e.videoDuration?` (${e.videoDuration})`:""]}):e.fallbackLinkLabel?(0,t.jsxs)(B.default,{href:"/tabory?type=pobytovy",className:"mt-5 inline-flex items-center gap-2 self-start text-base font-bold text-[#f7d66c] transition hover:text-white",prefetch:!1,children:[e.fallbackLinkLabel,(0,t.jsx)(C.ArrowRight,{className:"h-4 w-4"})]}):null]})]})})}let q=(0,P.default)("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);var G=e.i(62329);function Z({content:e}){return 0===e.items.length?null:(0,t.jsx)("div",{className:"mx-auto max-w-6xl px-4 pt-4 md:px-6 md:pt-8",children:(0,t.jsx)(G.default,{id:"vyjadrenia",title:e.title,minHeightClass:"min-h-[300px]",maxNumOfElements:3,children:e.items.map((e,a)=>(0,t.jsxs)("article",{className:"soft-card flex min-h-[270px] w-full flex-col rounded-[28px] border border-zinc-100 bg-white p-6",children:[(0,t.jsx)("span",{className:"flex h-11 w-11 items-center justify-center rounded-2xl bg-[#ffd6e0] text-[#d93b68]",children:(0,t.jsx)(q,{className:"h-5 w-5 fill-current"})}),(0,t.jsx)("p",{className:"mt-4 text-[15px] leading-7 text-zinc-700",children:e.text}),(0,t.jsxs)("div",{className:"mt-auto flex items-center gap-3 pt-5",children:[(0,t.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-[#f7d66c] text-lg font-extrabold text-zinc-900",children:e.name.trim().charAt(0).toUpperCase()}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-bold leading-tight text-zinc-900",children:e.name}),(0,t.jsx)("p",{className:"text-sm text-zinc-500",children:e.role})]})]})]},`${e.name}-${a}`))})})}function K({content:e}){let a=U(e.items.length);return(0,t.jsxs)("section",{className:"mx-auto max-w-6xl px-4 pt-16 md:px-6 md:pt-24",children:[(0,t.jsx)(E,{title:e.title}),(0,t.jsx)("div",{className:"balanced-grid mt-10",style:{"--cols":a},children:e.items.map(({title:e,text:a,icon:i,color:l},r)=>{let s=(0,T.getJoinUsIcon)(i);return(0,t.jsxs)("article",{className:`${(0,T.getJoinUsColorClass)(l)} soft-card rounded-3xl p-5 transition hover:-translate-y-1`,children:[(0,t.jsx)("span",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-white/75 text-zinc-800",children:(0,t.jsx)(s,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"mt-4 text-lg font-extrabold text-zinc-900",children:e}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-zinc-700",children:a})]},`${e}-${r}`)})})]})}var W=e.i(18233);e.s(["JoinUsPageClient",0,function(){let{data:e,isLoading:r}=(0,l.useGetJoinUsQuery)(),[s,n]=(0,a.useState)(!1),[o,c]=(0,a.useState)(""),d=(0,a.useMemo)(()=>(0,W.normalizeJoinUs)(e),[e]),m=(0,a.useMemo)(()=>(0,W.getApplicationRoleOptions)(d),[d]),u=(e="")=>{c(e),n(!0)};return r?(0,t.jsx)("main",{className:"flex min-h-[70vh] items-center justify-center bg-white px-4",children:(0,t.jsx)(i.Loader2,{className:"h-8 w-8 animate-spin text-teal-700"})}):(0,t.jsxs)("main",{className:"overflow-x-clip bg-white pb-16 text-zinc-800",children:[(0,t.jsx)(L,{content:d.hero,onApply:()=>u()}),(0,t.jsx)(I,{content:d.offerings}),(0,t.jsx)(z,{content:d.banner}),(0,t.jsx)(K,{content:d.why}),(0,t.jsx)(F,{content:d.teamVideo}),(0,t.jsx)(D,{content:d.roles,onApply:u}),(0,t.jsx)(H,{}),(0,t.jsx)(Z,{content:d.testimonials}),(0,t.jsx)(S,{content:d.finalCta,onApply:()=>u()}),(0,t.jsx)(j,{open:s,initialRole:o,roleOptions:m,onClose:()=>n(!1)})]})}],62426)}]);