1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[332],{1260:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(7876),n=a(5062),l=a.n(n),r=a(4232),i=a(8819),o=a(2937),c=a(6489);let d=e=>{let{content:t=null,onClose:a}=e;return((0,r.useEffect)(()=>{t&&"function"==typeof window.renderLucideIcons&&window.renderLucideIcons()},[t]),t)?(0,s.jsx)("div",{className:"fixed inset-0 z-50 bg-gray-900/75 flex items-center justify-center p-4",role:"dialog","aria-modal":"true",children:(0,s.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl w-full max-w-3xl max-h-[85vh] flex flex-col",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center p-5 md:p-6 border-b bg-gray-50 rounded-t-2xl",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-indigo-100 text-indigo-600",children:(0,s.jsx)(c.A,{name:"info",className:"h-5 w-5"})}),(0,s.jsx)("h3",{className:"text-xl md:text-2xl font-bold text-gray-900 leading-tight",children:(0,s.jsx)(o.A,{contentKey:"modal.".concat(t.key,".title"),fallback:t.title,as:"span"})})]}),(0,s.jsx)("button",{type:"button","aria-label":"Fermer la fen\xeatre",className:"p-2 rounded-full hover:bg-gray-200 text-gray-500 hover:text-gray-700",onClick:a,children:(0,s.jsx)(c.A,{name:"x",className:"h-5 w-5"})})]}),(0,s.jsx)(i.A,{contentKey:"modal.".concat(t.key,".html"),fallback:t.html,className:"overflow-y-auto p-6 text-sm"}),(0,s.jsx)("div",{className:"p-4 md:p-5 bg-gray-50 border-t flex justify-end",children:(0,s.jsxs)("button",{type:"button",className:"inline-flex items-center gap-2 bg-indigo-600 text-white font-semibold py-2 px-5 rounded-lg hover:bg-indigo-700 transition-colors",onClick:a,children:[(0,s.jsx)(c.A,{name:"check",className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Fermer"})]})})]})}):null};d.propTypes={content:l().shape({key:l().string.isRequired,title:l().string.isRequired,html:l().string.isRequired}),onClose:l().func.isRequired};let m=d},2022:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(7876),n=a(4232),l=a(8230),r=a.n(l),i=a(9845),o=a(5811);let c=e=>{let{isVisible:t,onClose:a}=e,{track:l}=(0,i.A)(),c=o.a.active&&t;if((0,n.useEffect)(()=>{c&&l("je_promo_modal_shown")},[c,l]),!c)return null;let{editionLabel:d,eventDateLabels:m,promoTagline:u}=o.a,x=e=>{l("je_promo_modal_dismiss",{via:e}),a()};return(0,s.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"promo-modal-title",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:()=>x("overlay"),children:(0,s.jsxs)("div",{className:"promo-enter relative bg-white rounded-2xl shadow-xl w-full max-w-md p-8",onClick:e=>e.stopPropagation(),children:[(0,s.jsx)("button",{type:"button","aria-label":"Fermer la fen\xeatre",className:"absolute top-4 right-4 p-1.5 rounded-full text-gray-400 hover:text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-indigo-400 transition-colors",onClick:()=>x("fermer"),children:(0,s.jsx)("span",{"aria-hidden":"true",children:"â"})}),(0,s.jsxs)("span",{className:"mb-4 inline-block rounded-full bg-indigo-500/20 px-3 py-1 text-xs font-semibold uppercase tracking-widest text-indigo-700 ring-1 ring-indigo-400/30",children:[d," \xb7 ",m.dayMonthYear]}),(0,s.jsx)("h2",{id:"promo-modal-title",className:"mt-4 mb-3 text-2xl font-extrabold text-gray-900 leading-tight",children:"Une seule journ\xe9e de luge en illimit\xe9"}),(0,s.jsxs)("p",{className:"mb-3 text-base text-gray-600 leading-relaxed",children:["Le ",m.weekdayDayMonth,", encha\xeenez les descentes sans compter sur la piste du Ma\xefdo. Une offre exclusive â ",(0,s.jsx)("strong",{children:u})]}),(0,s.jsx)("p",{className:"mb-6 text-sm text-gray-400",children:"R\xe9servation en ligne, billet re\xe7u par email."}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,s.jsxs)(r(),{href:"/journee-illimitee",className:"flex-1 rounded-lg bg-indigo-600 px-5 py-3 text-center font-bold text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-400 focus:ring-offset-2 transition-colors",onClick:()=>{l("je_promo_modal_cta_click"),a()},children:["J'en profite ",(0,s.jsx)("span",{"aria-hidden":"true",children:"â"})]}),(0,s.jsx)("button",{type:"button",onClick:()=>x("pas_maintenant"),className:"flex-1 rounded-lg px-5 py-3 text-center text-sm text-gray-500 hover:text-gray-700 focus:outline-none focus:ring-2 focus:ring-indigo-400",children:"Pas maintenant"})]})]})})}},2427:(e,t,a)=>{"use strict";a.d(t,{A:()=>i,I:()=>r});var s=a(4232),n=a(5811);let l="promo_modal_dismissed",r="promo_modal_seen_page",i=()=>
1{let[e,t]=(0,s.useState)(!1),a=(0,s.useCallback)(()=>{sessionStorage.setItem(l,"1"),t(!1)},[]);return(0,s.useEffect)(()=>{let e;if(sessionStorage.getItem(l))return;let a=window.localStorage.getItem(r);if(a&&a===n.a.eventDate||window.location.pathname.includes("/journee-illimitee")||document.referrer.includes("/journee-illimitee"))return;let s=!1;function i(){s||(s=!0,clearTimeout(e),window.removeEventListener("scroll",o),t(!0))}function o(){window.scrollY>=600&&i()}return e=setTimeout(i,3e3),window.addEventListener("scroll",o,{passive:!0}),()=>{clearTimeout(e),window.removeEventListener("scroll",o)}},[]),(0,s.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&a()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,a]),{isVisible:e,dismiss:a}}},2936:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(8768)}])},3414:(e,t,a)=>{"use strict";a.d(t,{nG:()=>o,vV:()=>i,w_:()=>c});var s=a(6422);let n={STANDARD:"standard",VACATION_METROPOLE:"vacation_metropole",VACATION_REUNION:"vacation_reunion"},l=e=>Array.isArray(e)?e.filter(e=>"string"==typeof(null==e?void 0:e.start)&&"string"==typeof(null==e?void 0:e.end)):[],r=e=>{let[t,a,s]=e.split("-").map(Number);return new Date(t,a-1,s).getDay()},i=e=>{let{date:t,activityId:a,globalActivityId:s,eventsForDate:i,overrides:o,rules:c}=e,d=(e,t,n)=>{for(let l of s&&s!==a?[a,s]:[a]){let a=e.find(e=>n(e)===l&&t(e));if(a)return a}return null},m=d(o,e=>e.date===t&&null==e.holiday_name,e=>e.activity_id);if(m){let e=l(m.time_slots);return{isOpen:!m.is_closed,timeSlots:m.is_closed?[]:e,source:"manual_override",effectivePeriod:n.STANDARD}}let u=i.find(e=>"holiday"===e.type&&!!e.name);if(null==u?void 0:u.name){let e=d(o,e=>e.holiday_name===u.name,e=>e.activity_id);if(e){let t=l(e.time_slots);return{isOpen:!e.is_closed,timeSlots:e.is_closed?[]:t,source:"holiday_rule",effectivePeriod:n.STANDARD}}}let x=(e=>e.some(e=>"vacation_reunion"===e.type)?n.VACATION_REUNION:e.some(e=>"vacation_metropole"===e.type)?n.VACATION_METROPOLE:n.STANDARD)(i),p=r(t),g=d(c,e=>e.period_key===x&&e.day_of_week===p,e=>e.activity_id);if(g){let e=l(g.time_slots),t=x===n.VACATION_REUNION?"vacation_reunion":x===n.VACATION_METROPOLE?"vacation_metropole":"standard";return{isOpen:!g.is_closed,timeSlots:g.is_closed?[]:e,source:t,effectivePeriod:x}}return{isOpen:!1,timeSlots:[],source:"standard",effectivePeriod:x}},o=async e=>{let{startDate:t,days:a=7,activitySlug:n="parc-global"}=e,l=((e,t)=>{let[a,s,n]=e.split("-").map(Number),l=[];for(let e=0;e<t;e+=1){let t=new Date(a,s-1,n);t.setDate(t.getDate()+e);let r=t.getFullYear(),i=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0");l.push("".concat(r,"-").concat(i,"-").concat(o))}return l})(t,a),o=[...new Set(l.map(r))],c=(0,s.c)(),{data:d,error:m}=await c.from("activities").select("id, slug, is_global, is_temporarily_closed").in("slug",[n,"parc-global"]);if(m)throw m;let u=(null==d?void 0:d.find(e=>e.slug===n))||null,x=(null==d?void 0:d.find(e=>e.is_global))||null;if(!u&&!x)throw Error("Aucune activit\xe9 configur\xe9e pour calculer les horaires.");let p=(null==x?void 0:x.id)||(null==u?void 0:u.id),g=(null==u?void 0:u.id)||p,h="activity_id.eq.".concat(g,",activity_id.eq.").concat(p),[b,f,y]=await Promise.all([c.from("calendar_events").select("date, type, name").in("date",l),c.from("schedule_overrides").select("activity_id, date, holiday_name, is_closed, time_slots").or(h),c.from("schedule_rules").select("activity_id, period_key, day_of_week, is_closed, time_slots").in("day_of_week",o).or(h)]);if(b.error)throw b.error;if(f.error)throw f.error;if(y.error)throw y.error;let j=b.data||[],v=f.data||[],w=y.data||[],N=!!(null==u?void 0:u.is_temporarily_closed),k=new Map;for(let e of l){let t=j.filter(t=>t.date===e);k.set(e,{...i({date:e,activityId:g,globalActivityId:p,eventsForDate:t,overrides:v,rules:w}),isTemporarilyClosed:N})}return k},c=async e=>{let{date:t,activitySlug:a="parc-global"}=e,s=(await o({startDate:t,days:1,activitySlug:a})).get(t);if(!s)throw Error("R\xe9solution non disponible pour cette date.");return s}},5811:(e,t,a)=>{"use strict";a.d(t,{a:()=>n});let s="2026-07-18",n={active:!1,editionLabel:"Troisi\xe8me \xe9dition",eventDate:s,eventDateLabels:function(e){let t=new Date("".concat(e,"T00:00:00Z")),a=e=>new Intl.DateTimeFormat("fr-FR",{timeZone:"UTC",...e}).format(t),s=e=>e.charAt(0).toUpperCase()+e.slice(1),n=a({weekday:"long"}),l=a({day:"numeric",month:"long"}),r=a({day:"numeric",month:"long",year:"numeric"}),i=a({month:"long",year:"numeric"}),o="".concat(n," ").concat(r);return{iso:e,weekday:n,dayMonth:l,dayMonthYear:r,weekdayDayMonth:"".concat(n," ").concat(l),monthYear:i,monthYearCapitalized:s(i),full:o,fullCapitalized:s(o)}}(s),promoTagline:"Troisi\xe8me \xe9dition, places limit\xe9es.",b
1illetwebTicketId:null,facebookPageUrl:"https://www.facebook.com/ParcDeLaLuge/",showcasePostUrl:"https://www.facebook.com/ParcDeLaLuge/posts/pfbid035YJupUZawNK1WQP7pgonFqaw7c7M9omha1PWBGEskQWRa75osvj1MCvqUm3C3doql",testimonials:{sourceLabel:"Commentaire Facebook \xb7 Mai 2026",items:[{initials:"GI",author:"Ginah I.",gradient:"from-amber-400 to-amber-600",quote:"Tr\xe8s bien, merci beaucoup car les enfants bien amus\xe9, bien \xe9clat\xe9 comme il faut, chacun ont fait plus de 20 tours ils ont bien aimer car il fesait bon et sa allait vite. On as h\xe2te pour une 2e \xe9dition illimit\xe9 merci c'\xe9tait g\xe9niale"},{initials:"ED",author:"Elodiie D.",gradient:"from-indigo-500 to-indigo-700",quote:"Superbe journ\xe9e ! On a fait 13 tours.. de 10h \xe0 15h. Le temps \xe9tait id\xe9al. Le temps d'attente \xe9tait tr\xe8s raisonnable. Les enfants ont ador\xe9s. Merci"}]},partnerOffer:{active:!1,eventDate:s,eyebrow:"Bon plan partenaire",headline:"-10 % \xe0 La Marmite des Tamarins ce dimanche",conditions:"Sur pr\xe9sentation du bracelet Luge Illimit\xe9e. R\xe9servation de table avant 11h.",reservationPhone:"0262 96 35 61",reservationPhoneHref:"tel:+262262963561"}}},6097:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(4232);let n=()=>{let e=(()=>{let e="0x4AAAAAACA84C8MQVe-u2WR";return e||""})(),t=!!(e&&1),a=!e,n=(0,s.useRef)(null),l=(0,s.useRef)(null),[r,i]=(0,s.useState)({ready:!t,hasError:!1,message:"",token:""});(0,s.useEffect)(()=>{a&&"undefined"!=typeof console&&console.error("[Turnstile] Turnstile activ\xe9 mais la cl\xe9 site ou la cl\xe9 secr\xe8te manque. Le widget est d\xe9sactiv\xe9 et la soumission est bloqu\xe9e.")},[a]),(0,s.useEffect)(()=>{if(a||!t||!n.current)return;let s=()=>{i(e=>({...e,ready:!0,hasError:!1})),(()=>{var t;if(window.turnstile&&n.current){l.current&&(null==(t=window.turnstile)?void 0:t.remove)&&(window.turnstile.remove(l.current),l.current=null);try{l.current=window.turnstile.render(n.current,{sitekey:e,theme:"light",callback:e=>{i({ready:!0,hasError:!1,message:"",token:null!=e?e:""})},"error-callback":()=>{i({ready:!1,hasError:!0,message:"Le service anti-spam est temporairement indisponible. Merci de nous contacter via les coordonn\xe9es ci-dessous.",token:""})},"expired-callback":()=>{var e;l.current&&(null==(e=window.turnstile)?void 0:e.reset)&&window.turnstile.reset(l.current),i(e=>({...e,ready:!0,token:""}))}})}catch(e){i({ready:!1,hasError:!0,message:"Impossible de charger Cloudflare Turnstile pour le moment. Merci de nous contacter via les coordonn\xe9es ci-dessous.",token:""})}}})()},r=()=>{i({ready:!1,hasError:!0,message:"Le service anti-spam est indisponible. Nous mettons tout en Åuvre pour le r\xe9tablir rapidement.",token:""})};return window.addEventListener("turnstile-load",s),window.addEventListener("turnstile-error",r),window.__turnstileReady&&s(),()=>{var e;window.removeEventListener("turnstile-load",s),window.removeEventListener("turnstile-error",r),l.current&&(null==(e=window.turnstile)?void 0:e.remove)&&window.turnstile.remove(l.current)}},[a,t,e]);let o=a||!!t&&!r.token,c=t&&!r.hasError&&!a&&(!r.ready||!r.token);return{isTurnstileEnabled:!0,isTurnstileMisconfigured:a,shouldRenderTurnstile:t,turnstileContainerRef:n,turnstileState:r,isFormLocked:o,showLoadingNotice:c,refreshTurnstileToken:()=>{var e;t&&(i(e=>({...e,token:"",hasError:!1})),l.current&&(null==(e=window.turnstile)?void 0:e.reset)&&window.turnstile.reset(l.current))}}}},8768:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>B});var s=a(7876),n=a(7328),l=a.n(n),r=a(4232),i=a(5062),o=a.n(i),c=a(546);function d(e){let{href:t,children:a,className:n="",target:l,rel:i}=e,o=(0,c.B1)(),d=!!(null==o?void 0:o.isAdmin),m=!!(null==o?void 0:o.isEditMode),u=(0,r.useCallback)(e=>{d&&m&&e.preventDefault()},[d,m]);return(0,s.jsx)("a",{href:t,target:l,rel:i,className:n,onClick:u,"aria-disabled":d&&m,children:a})}d.propTypes={href:o().string.isRequired,children:o().node.isRequired,className:o().string,target:o().string,rel:o().string};var m=a(2937),u=a(6489);let x=e=>{let{isOpen:t,onClose:a,schedule:n,title:l,showActivitiesHint:i=!1,closureNotice:o=!1}=e;return((0,r.useEffect)(()=>
1{if(!t)return;let e=e=>{"Escape"===e.key&&a()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,a]),t)?(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-gray-900/70 p-4",role:"dialog","aria-modal":"true",onClick:a,children:(0,s.jsxs)("div",{className:"w-full max-w-lg rounded-2xl bg-white shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b bg-gray-50 px-5 py-4",children:[(0,s.jsx)("h3",{className:"text-lg font-bold text-gray-900",children:l}),(0,s.jsx)("button",{type:"button","aria-label":"Fermer la fen\xeatre",className:"rounded-full p-2 text-gray-500 hover:bg-gray-200 hover:text-gray-700",onClick:a,children:(0,s.jsx)(u.A,{name:"x",className:"h-5 w-5"})})]}),(0,s.jsx)("div",{className:"px-5 py-4 text-sm text-gray-700",children:o?(0,s.jsxs)("p",{children:["Activit\xe9 temporairement ferm\xe9e."," ","Suivez notre"," ",(0,s.jsx)("a",{href:"https://www.facebook.com/ParcDeLaLuge",target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-indigo-600 underline hover:text-indigo-700",children:"page Facebook"})," ","pour \xeatre inform\xe9 de la r\xe9ouverture."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("ul",{className:"space-y-2",children:n.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-center justify-between gap-4",children:[(0,s.jsx)("span",{className:0===t?"font-semibold text-gray-900":"text-gray-700",children:e.dayLabel}),(0,s.jsx)("span",{className:"text-right",children:((e,t)=>t&&e.length?e.map(e=>(e=>"".concat(e.start.replace(":","h")," - ").concat(e.end.replace(":","h")))(e)).join(" ⢠"):"Ferm\xe9")(e.timeSlots,e.isOpen)})]},e.date))}),i?(0,s.jsx)("a",{href:"#activites",onClick:a,className:"mt-4 inline-flex items-center justify-center rounded-md bg-indigo-600 px-3 py-2 text-xs font-semibold text-white transition hover:bg-indigo-700",children:"Voir les horaires d\xe9taill\xe9s par activit\xe9 ci-dessous â"}):null]})}),(0,s.jsx)("div",{className:"flex justify-end border-t bg-gray-50 px-5 py-4",children:(0,s.jsxs)("button",{type:"button",className:"inline-flex items-center gap-2 rounded-lg bg-indigo-600 px-4 py-2 text-sm font-semibold text-white transition hover:bg-indigo-700",onClick:a,children:[(0,s.jsx)(u.A,{name:"check",className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Fermer"})]})})]})}):null};x.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired,schedule:o().arrayOf(o().shape({date:o().string.isRequired,dayLabel:o().string.isRequired,timeSlots:o().arrayOf(o().shape({start:o().string.isRequired,end:o().string.isRequired})).isRequired,isOpen:o().bool.isRequired})).isRequired,title:o().string.isRequired,showActivitiesHint:o().bool,closureNotice:o().bool};var p=a(3414);let g="Horaires indisponibles",h=e=>new Intl.DateTimeFormat("fr-FR",{timeZone:"Indian/Reunion",year:"numeric",month:"2-digit",day:"2-digit",weekday:"long",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(e).reduce((e,t)=>("literal"!==t.type&&(e[t.type]=t.value),e),{year:"",month:"",day:"",weekday:"",hour:"",minute:""}),b=e=>
1{let[t,a]=e.split(":").map(Number);return 60*t+a},f=e=>e.replace(":","h"),y={green:{text:"text-emerald-700",bg:"bg-emerald-100",dot:"bg-emerald-500"},red:{text:"text-rose-700",bg:"bg-rose-100",dot:"bg-rose-500"},orange:{text:"text-amber-700",bg:"bg-amber-100",dot:"bg-amber-500"},gray:{text:"text-gray-600",bg:"bg-gray-200",dot:"bg-gray-400"}},j=e=>{let{slug:t,mode:a="simple",size:n="default"}=e,{state:l,label:i,color:o,schedule:c,isLoading:d,isClosedIndefinitely:m}=(e=>{let[t,a]=(0,r.useState)([]),[s,n]=(0,r.useState)(""),[l,i]=(0,r.useState)(!0),[o,c]=(0,r.useState)(()=>new Date);(0,r.useEffect)(()=>{let e=setInterval(()=>{c(new Date)},6e4);return()=>clearInterval(e)},[]),(0,r.useEffect)(()=>{if(!e)return void i(!1);let t=!0;return i(!0),(async()=>{try{let s=new Date,l=Array.from({length:7},(e,t)=>{let a=new Date(s.getTime()+24*t*36e5);return(e=>{let t=h(e);return{date:"".concat(t.year,"-").concat(t.month,"-").concat(t.day),dayLabel:t.weekday}})(a)}),r=await (0,p.nG)({startDate:l[0].date,days:l.length,activitySlug:e||"parc-global"});if(!t)return;let i=l.map(e=>{let t=r.get(e.date),a=!!(null==t?void 0:t.isOpen);return{date:e.date,dayLabel:e.dayLabel,timeSlots:(null==t?void 0:t.timeSlots)||[],isOpen:a,isClosedIndefinitely:!!(null==t?void 0:t.isTemporarilyClosed),closureReason:a?null:(null==t?void 0:t.source)==="manual_override"?"override":"rule"}});a(i),n("")}catch(e){console.error("[useBusinessHours] fetch failed",e),t&&(a([]),n(g))}finally{t&&i(!1)}})(),()=>{t=!1}},[e]);let d=(0,r.useMemo)(()=>!e||l?{state:"loading",label:"Chargement des horairesâ¦",color:"gray"}:s?{state:"error",label:g,color:"gray"}:t.some(e=>e.isClosedIndefinitely)?{state:"closed-temporarily",label:"Ferm\xe9 temporairement",color:"orange"}:((e,t)=>{if(!e.length)return{state:"closed",label:g,color:"red"};let a=h(t),s=b("".concat(a.hour,":").concat(a.minute)),n=e[0],l=[...n.timeSlots||[]].sort((e,t)=>b(e.start)-b(t.start));if(n.isOpen&&0===l.length)return{state:"open",label:"Ouvert",color:"green"};let r=l.find(e=>{let t=b(e.start),a=b(e.end);return s>=t&&s<a});if(r)return{state:"open",label:"Ouvert ⢠Ferme \xe0 ".concat(f(r.end)),color:"green"};let i=l.find(e=>b(e.start)>s);if(i)return{state:"waiting",label:"Ferm\xe9 ⢠Ouvre \xe0 ".concat(f(i.start)),color:"orange"};let o=((e,t)=>{for(let s=t;s<e.length;s+=1){let t=e[s];if(null==t?void 0:t.isOpen){var a;let e=null==(a=t.timeSlots)?void 0:a[0];return{dayIndex:s,time:(null==e?void 0:e.start)||null}}}return null})(e,1);if(o){var c;let{dayIndex:t,time:a}=o,s=(null==(c=e[t])?void 0:c.dayLabel)||"",n=a?" \xe0 ".concat(f(a)):"";return{state:"closed",label:"Ferm\xe9 ⢠Ouvre ".concat(1===t?"demain":s).concat(n),color:"red"}}return e.some(e=>"override"===e.closureReason)?{state:"closed-temporarily",label:"Ferm\xe9 temporairement",color:"orange"}:{state:"closed",label:g,color:"red"}})(t,o),[e,s,l,o,t]);return{state:d.state,label:d.label,color:d.color,schedule:e?t:[],isLoading:l,isClosedIndefinitely:t.some(e=>e.isClosedIndefinitely)}})(t),u="detailed"===a,[j,v]=(0,r.useState)(!1),w=y[o]||y.gray,N="compact"===n?"px-3 py-1.5 text-xs font-semibold":"px-4 py-2 text-sm font-semibold",k="compact"===n?"text-center":"",A=(0,r.useMemo)(()=>c.map(e=>({...e,dayLabel:e.dayLabel.charAt(0).toUpperCase()+e.dayLabel.slice(1)})),[c]),_=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"h-2 w-2 rounded-full ".concat(w.dot),"aria-hidden":"true"}),(0,s.jsx)("span",{children:i})]});return(0,s.jsxs)("div",{className:"inline-flex flex-col items-start gap-2",children:[u?(0,s.jsx)("button",{type:"button",onClick:()=>v(!0),"aria-label":"Voir les horaires",className:"inline-flex items-center gap-2 rounded-full shadow-sm transition ".concat(N," ").concat(k," ").concat(w.bg," ").concat(w.text),children:_}):(0,s.jsx)("span",{className:"inline-flex items-center gap-2 rounded-full ".concat(N," ").concat(k," ").concat(w.bg," ").concat(w.text),children:_}),"error"!==l||d?null:(0,s.jsx)("p",{className:"text-xs text-gray-500",children:i}),u?(0,s.jsx)(x,{isOpen:j,onClose:()=>v(!1),schedule:A,title:"parc-global"===t?"Horaires du parc":"Horaires de lâactivit\xe9",showActivitiesHint:"parc-global"===t,closureNotice:m}):null]})};var v=a(118);let w=e=>{let{onOpenModal:t}=e;return(0,s.jsx)("section",{id:"activites",className:"py-20 bg-gray-100",children:(0,s.jsxs)("div",{className:"container mx-auto px-6",children:[(0,s.jsx)("h2",{className:"text-4xl font-extrabold text-center text-gray-800 mb
1-16",children:(0,s.jsx)(m.A,{contentKey:"activities.title",fallback:"Nos Activit\xe9s Incontournables",as:"span"})}),(0,s.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-10",children:v.F$.map((e,a)=>(0,s.jsxs)("article",{className:"bg-white rounded-lg shadow-xl overflow-hidden flex flex-col",children:[(0,s.jsx)("div",{role:"img","aria-label":e.ariaLabel,className:"w-full h-48",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:"cover",backgroundPosition:e.imagePosition||"center"}}),(0,s.jsxs)("div",{className:"p-6 flex flex-col flex-grow",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-x-4 gap-y-2 mb-3",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold",children:(0,s.jsx)(m.A,{contentKey:"activities.".concat(a,".title"),fallback:e.title,as:"span"})}),e.tag?(0,s.jsx)("span",{className:"flex-shrink-0 whitespace-nowrap mt-1 text-xs font-semibold bg-gray-200 text-gray-700 px-3 py-1 rounded-full",children:(0,s.jsx)(m.A,{contentKey:"activities.".concat(a,".tag"),fallback:e.tag,as:"span"})}):null]}),(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(j,{slug:e.slug,mode:"detailed",size:"compact"})}),(0,s.jsx)("p",{className:"text-gray-600 mb-4 flex-grow",children:(0,s.jsx)(m.A,{contentKey:"activities.".concat(a,".description"),fallback:e.description,as:"span",multiline:!0})}),(0,s.jsx)("ul",{className:"text-gray-700 space-y-2 mb-4",children:e.highlights.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(u.A,{name:e.icon,className:"mt-1 h-5 w-5 flex-shrink-0 ".concat(e.iconClass||"text-green-500")}),(0,s.jsx)("span",{children:N(e.text,a,t)})]},t))}),e.modalKey?(0,s.jsx)("button",{type:"button",className:"mt-auto w-full bg-indigo-100 text-indigo-700 font-semibold py-2 px-4 rounded-lg hover:bg-indigo-200 transition-colors",onClick:()=>t(e.modalKey),children:(0,s.jsx)(m.A,{contentKey:"activities.".concat(a,".cta"),fallback:"Conditions & D\xe9tails",as:"span"})}):null]})]},e.title))})]})})},N=(e,t,a)=>"string"==typeof e?(0,s.jsx)(m.A,{contentKey:"activities.".concat(t,".highlight.").concat(a),fallback:e,as:"span"}):(0,r.isValidElement)(e)&&"a"===e.type?(0,s.jsx)(d,{href:e.props.href,className:e.props.className,children:e.props.children}):(0,s.jsx)(s.Fragment,{children:e});w.propTypes={onOpenModal:o().func.isRequired};let k=e=>{let{channels:t}=e;return(0,s.jsx)("div",{className:"grid gap-4 md:grid-cols-3 text-center text-sm sm:text-base mb-12",children:t.map((e,t)=>(0,s.jsxs)("p",{className:"bg-white rounded-lg shadow-sm p-4",children:[(0,s.jsx)("span",{className:"block text-gray-500 text-xs uppercase tracking-wide",children:(0,s.jsx)(m.A,{contentKey:"contact.phone.".concat(t,".label"),fallback:e.label,as:"span"})}),(0,s.jsx)(d,{href:"tel:".concat(e.number),className:"text-indigo-600 font-semibold text-lg",children:(0,s.jsx)(m.A,{contentKey:"contact.phone.".concat(t,".number"),fallback:e.number,as:"span"})})]},e.label))})};k.propTypes={channels:o().arrayOf(o().shape({label:o().string.isRequired,number:o().string.isRequired}).isRequired).isRequired};var A=a(8819),_=a(9099);let L=async e=>{let t=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let e=Error((await t.text()).trim()||"Le service de contact est momentan\xe9ment indisponible. Merci de r\xe9essayer ult\xe9rieurement.");throw e.status=t.status,e}},E="Le service de contact est momentan\xe9ment indisponible. Merci de r\xe9essayer ult\xe9rieurement.";var K=a(6097);let C="La protection anti-spam est temporairement indisponible suite \xe0 une configuration incompl\xe8te. Merci de nous contacter via les coordonn\xe9es ci-dessous.",S=e=>{let{email:t,phone:a}=e,{handleSubmit:n,isSubmitting:l,errorMessage:i}=(()=>{let e=(0,_.useRouter)(),[t,a]=(0,r.useState)({isSubmitting:!1,errorMessage:""});return{handleSubmit:(0,r.useCallback)(async function(s){var n,l,r,i,o,c,d,m,u,x,p,g;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(s.preventDefault(),t.isSubmitting)return{success:!1,shouldRefreshTurnstile:!1};a({isSubmitting:!0,errorMessage:""});let b=!0===h.isTurnstileDisabled,f=!0===h.isTurnstileMisconfigured,y=!1,j=new FormData(s.currentTarget),v={full_name:null!=(d=null==(n=j.get("nom"))?void 0:n.toString().trim())?d:"",email:null!=(m=null==(l=j.get("email"))?void 0:l.toString().trim())?m:"",phone:(null==(r=j.get("telephone"))?void 0:r.toString().trim())||null,subject:null!=(u=null==(i=j.get("sujet"))?void 0:i.toString().trim())?u:"",message:null!=(x=null==(o=j.get("message"))?void 0:o.toString().trim())?x:"",rgpd_consent:!!j.get("rgpd"),source:"homepage-contact-form",turnstile_token:null!=(p=h.turnstileToken)?p:"",honeypot:null!=(g=null==(c=j.get("company"))?void 0:c.toString().trim())?g:""};if(!v.rgpd_consent)return a({isSubmitting:!1,errorMessage:"Merci de cocher la case de consentement pour nous autoriser \xe0 traiter votre demande."}),{success:!1,shouldRefreshTurnstile:!1};if(f)return a({isSubmitting:!1,errorMessage:h.turnstileConfigErrorMessage||"La protection anti-spam est temporairement indisponible suite \xe0 une configuration incompl\xe8te. Merci de nous contacter directement."}),{success:!1,shouldRefreshTurnstile:!1};if(!v.turnstile_token&&!b)return a({isSubmitting:!1,errorMessage:"Merci de valider le contr\xf4le anti-spam avant d'envoyer votre message."}),{success:!1,shouldRefreshTurnstile:!1};try{return y=!b,await L(v),await e.push("/merci"),a({isSubmitting:!1,errorMessage:""}),{success:!0,shouldRefreshTurnstile:y}}catch(e){return a({isSubmitting:!1,errorMessage:(e=>{if(e instanceof Error){let t="number"==typeof e.status?e.status:void 0;return!t||t>=500?E:e.message}return E})(e)}),{success:!1,shouldRefreshTurnstile:y}}},[e,t.isSubmitting]),isSubmitting:t.isSubmitting,errorMessage:t.errorMessage}})(),{isTurnstileEnabled:o,isTurnstileMisconfigured:c,shouldRenderTurnstile:u,turnstileContainerRef:x,turnstileState:p,isFormLocked:g,showLoadingNotice:h,refreshTurnstileToken:b}=(0,K.A)(),f=(0,r.useRef)(null),y=(0,s.jsxs)("span",{children:["Merci de nous \xe9crire \xe0"," ",(0,s.jsx)(d,{href:"mailto:".concat(t),className:"font-semibold underline",children:t})," ","ou de nous appeler au"," ",(0,s.jsx)(d,{href:"tel:".concat(a),className:"font-semibold underline",children:a}),"."]}),j=g||l;(0,r.useEffect)(()=>
1{if(i&&f.current){var e,t;f.current.scrollIntoView({behavior:"smooth",block:"start"}),null==(e=(t=f.current).focus)||e.call(t)}},[i]);let v=async e=>{let t=await n(e,{turnstileToken:p.token,isTurnstileDisabled:!o,isTurnstileMisconfigured:c,turnstileConfigErrorMessage:C});(null==t?void 0:t.shouldRefreshTurnstile)&&b()};return(0,s.jsxs)("form",{className:"bg-white p-8 md:p-12 rounded-lg shadow-xl",onSubmit:v,noValidate:!0,children:[(0,s.jsx)("input",{type:"text",name:"company",className:"hidden",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),(0,s.jsx)("div",{className:"mb-8 rounded-lg border-2 border-amber-300 bg-amber-50 p-4",children:(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)("svg",{className:"h-6 w-6 flex-shrink-0 text-amber-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-bold text-amber-800",children:(0,s.jsx)(m.A,{contentKey:"contact.form.quote.title",fallback:"Demandes de devis",as:"span"})}),(0,s.jsx)(A.A,{contentKey:"contact.form.quote.body_html",fallback:"Ce formulaire est r\xe9serv\xe9 aux <strong>questions g\xe9n\xe9rales</strong>. Les demandes de devis (groupes, CE, \xe9coles) ne seront pas trait\xe9es via ce formulaire.",className:"mt-1 text-sm text-amber-700"}),(0,s.jsxs)(d,{href:"/#devis",className:"mt-3 inline-flex items-center gap-2 rounded-md bg-amber-600 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-amber-700",children:[(0,s.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),(0,s.jsx)(m.A,{contentKey:"contact.form.quote.cta",fallback:"Formulaire de demande de devis",as:"span"})]})]})]})}),i?(0,s.jsx)("p",{className:"mb-6 text-sm text-amber-700 bg-amber-100 border border-amber-200 rounded-lg p-4",role:"alert",ref:f,tabIndex:-1,"data-testid":"contact-error-banner",children:i}):null,(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-6 mb-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"nom",className:"block text-gray-700 font-semibold mb-2",children:(0,s.jsx)(m.A,{contentKey:"contact.form.label.name",fallback:"Nom *",as:"span"})}),(0,s.jsx)("input",{type:"text",id:"nom",name:"nom",className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",required:!0})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"block text-gray-700 font-semibold mb-2",children:(0,s.jsx)(m.A,{contentKey:"contact.form.label.email",fallback:"Email *",as:"span"})}),(0,s.jsx)("input",{type:"email",id:"email",name:"email",className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",required:!0})]})]}),(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("label",{htmlFor:"telephone",className:"block text-gray-700 font-semibold mb-2",children:(0,s.jsx)(m.A,{contentKey:"contact.form.label.phone",fallback:"T\xe9l\xe9phone (facultatif)",as:"span"})}),(0,s.jsx)("input",{type:"tel",id:"telephone",name:"telephone",className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500"})]}),(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("label",{htmlFor:"sujet",className:"block text-gray-700 font-semibold mb-2",children:(0,s.jsx)(m.A,{contentKey:"contact.form.label.subject",fallback:"Sujet *",as:"span"})}),(0,s.jsx)("input",{type:"text",id:"sujet",name:"sujet",className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",required:!0})]}),(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("label",{htmlFor:"message",className:"block text-gray-700 font-semibold mb-2",children:(0,s.jsx)(m.A,{contentKey:"contact.form.label.message",fallback:"Message *",as:"span"})}),(0,s.jsx)("textarea",{id:"message",name:"message",rows:5,className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",required:!0})]}),(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsxs)("label",{className:"flex items-start gap-2 text-gray-600",children:[(0,s.jsx)("input",{type:"checkbox",name:"not_devis",className:"mt-1 border-gray-300",required:!0}),(0,s.jsx)("span",{className:"text-sm",children:(0,s.jsx)(m.A,{contentKey:"contact.form.not_devis",fallback:"En cochant cette case, je confirme que ma demande n'est PAS une demande de devis (tarif groupe, CE, \xe9cole, privatisation).",as:"span"})})]})}),(0,s.jsx)("div",{className:"mb-6",children:(0,s.jsxs)("label",{className:"flex items-start gap-2 text-gray-600",children:[(0,s.jsx)("input",{type:"checkbox",name:"rgpd",className:"mt-1 border-gray-300",required:!0}),(0,s.jsx)("span",{children:(0,s.jsx)(m.A,{contentKey:"contact.form.rgpd",fallback:"En cochant cette case, j'accepte que mes informations soient utilis\xe9es pour r\xe9pondre \xe0 ma demande de contact. J'accepte que ces informations soient trait\xe9es dans Supabase (h\xe9berg\xe9 en Union Europ\xe9enne) et transmises \xe0 l'\xe9quipe du Parc via Google Worksp
1ace pour permettre le traitement de ma demande.",as:"span",multiline:!0})})]})}),u?(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("div",{ref:x,className:"min-h-[80px]"}),h?(0,s.jsx)("p",{className:"mt-3 text-sm text-gray-600",role:"status",children:(0,s.jsx)(m.A,{contentKey:"contact.form.turnstile.loading",fallback:"Initialisation de la protection anti-spam en cours...",as:"span"})}):null,p.hasError?(0,s.jsxs)("p",{className:"mt-3 text-sm text-amber-700 bg-amber-100 border border-amber-200 rounded-lg p-3",role:"alert",children:[p.message," ",y]}):null]}):c?(0,s.jsxs)("p",{className:"mb-6 text-sm text-amber-700 bg-amber-100 border border-amber-200 rounded-lg p-4",role:"alert","data-testid":"contact-error-banner",children:[(0,s.jsx)(m.A,{contentKey:"contact.form.turnstile.misconfigured",fallback:C,as:"span",multiline:!0})," ",y]}):o?(0,s.jsxs)("p",{className:"mb-6 text-sm text-amber-700 bg-amber-100 border border-amber-200 rounded-lg p-4",role:"status",children:[(0,s.jsx)(m.A,{contentKey:"contact.form.turnstile.unavailable",fallback:"La protection anti-spam est momentan\xe9ment indisponible.",as:"span"})," ",y]}):(0,s.jsxs)("p",{className:"mb-6 text-sm text-amber-700 bg-amber-100 border border-amber-200 rounded-lg p-4",role:"status",children:[(0,s.jsx)(m.A,{contentKey:"contact.form.turnstile.disabled",fallback:"La protection anti-spam est momentan\xe9ment d\xe9sactiv\xe9e pendant lâincident en cours. Un contr\xf4le silencieux (champ cach\xe9 + limitation de fr\xe9quence) reste appliqu\xe9 c\xf4t\xe9 serveur.",as:"span",multiline:!0})," ",y]}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"submit",className:"w-full bg-indigo-600 text-white font-bold py-3 px-8 rounded-lg shadow-lg transition-transform transform ".concat(j?"opacity-60 cursor-not-allowed":"hover:bg-indigo-700 hover:scale-105"),"aria-disabled":j,disabled:j,children:l?"Envoi en cours...":"Envoyer le message"})})]})};S.propTypes={email:o().string.isRequired,phone:o().string.isRequired};let T=()=>(0,s.jsx)("section",{id:"contact",className:"py-20 bg-gray-50",children:(0,s.jsx)("div",{className:"container mx-auto px-6",children:(0,s.jsxs)("div",{className:"max-w-3xl mx-auto",children:[(0,s.jsx)("h2",{className:"text-4xl font-extrabold text-center text-gray-800 mb-4",children:(0,s.jsx)(m.A,{contentKey:"contact.title",fallback:"Contactez-nous",as:"span"})}),(0,s.jsx)("p",{className:"text-xl text-center text-gray-600 mb-6",children:(0,s.jsx)(m.A,{contentKey:"contact.intro",fallback:v.lJ,as:"span",multiline:!0})}),(0,s.jsx)(k,{channels:v.ql}),(0,s.jsx)(S,{email:v.dX.email,phone:v.dX.phone})]})})});var q=a(1260);let R=()=>{let[e,t]=(0,r.useState)(null);return(0,s.jsx)("section",{id:"faq",className:"py-20 bg-white",children:(0,s.jsxs)("div",{className:"container mx-auto px-6 max-w-3xl",children:[(0,s.jsx)("h2",{className:"text-4xl font-extrabold text-center text-gray-800 mb-16",children:(0,s.jsx)(m.A,{contentKey:"faq.title",fallback:"Questions fr\xe9quentes (FAQ)",as:"span"})}),(0,s.jsx)("div",{className:"space-y-4",children:v.Pf.map((a,n)=>{let l=e===n;return(0,s.jsxs)("article",{className:"bg-gray-50 rounded-lg shadow-sm",children:[(0,s.jsxs)("button",{type:"button",className:"w-full text-left p-6 flex items-center justify-between","aria-expanded":l,onClick:()=>t(l?null:n),children:[(0,s.jsx)("span",{className:"font-semibold text-lg text-gray-800",children:(0,s.jsx)(m.A,{contentKey:"faq.".concat(n,".question"),fallback:a.question,as:"span"})}),(0,s.jsx)(u.A,{name:"chevron-down",className:"transition-transform text-indigo-500 h-5 w-5 ".concat(l?"rotate-180":"")})]}),l?(0,s.jsx)("p",{className:"px-6 pb-6 text-gray-600",children:(0,s.jsx)(m.A,{contentKey:"faq.".concat(n,".answer"),fallback:a.answer,as:"span",multiline:!0})}):null]},a.question)})})]})})},M=()=>{let[e,t]=(0,r.useState)(!1),a=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(e){var t;null==(t=a.current)||t.focus()}},[e]),(0,s.jsx)("section",{id:"devis",className:"py-20 bg-white",children:(0,s.jsxs)("div",{className:"container mx-auto px-6",children:[(0,s.jsx)("h2",{className:"text-4xl font-extrabold text-center text-gray-800 mb
1-4",children:(0,s.jsx)(m.A,{contentKey:"group.title",fallback:v.fd.title,as:"span"})}),(0,s.jsx)(A.A,{contentKey:"group.description_html",fallback:v.fd.descriptionLines.join("<br />"),className:"text-xl text-center text-gray-600 mb-12"}),(0,s.jsx)("div",{className:"max-w-4xl mx-auto rounded-lg shadow-xl overflow-hidden",children:e?(0,s.jsx)("iframe",{ref:a,src:v.zG,title:"Formulaire de demande de devis",width:"100%",className:"h-[80vh]",frameBorder:"0",marginWidth:"0",marginHeight:"0",children:"Chargementâ¦"}):(0,s.jsxs)("div",{className:"flex flex-col items-center gap-4 p-8 text-center bg-gray-50",children:[(0,s.jsx)("p",{className:"text-gray-700",children:"Le formulaire de demande de devis est fourni par Google (Google Forms). Rien n'est charg\xe9 depuis Google avant votre clic."}),(0,s.jsx)("button",{type:"button",onClick:()=>t(!0),className:"bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-6 rounded-lg shadow transition",children:"Afficher le formulaire (service fourni par Google)"}),(0,s.jsx)(d,{href:"/politique-de-confidentialite",className:"text-sm text-indigo-700 underline",children:"En savoir plus : politique de confidentialit\xe9"})]})})]})})},O=()=>(0,s.jsxs)("section",{id:"accueil",className:"relative h-[80vh] min-h-[500px] flex items-center justify-center text-white text-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-cover bg-top md:bg-center md:bg-fixed",style:{backgroundImage:"url('img/hero-luge-1920.webp')"}}),(0,s.jsx)("div",{className:"absolute inset-0 bg-gray-800 opacity-60"}),(0,s.jsxs)("div",{className:"relative z-10 p-6",children:[(0,s.jsx)("h1",{className:"text-5xl md:text-7xl font-extrabold mb-4 drop-shadow-lg",children:(0,s.jsx)(m.A,{contentKey:"hero.title",fallback:v.ap.title,as:"span"})}),(0,s.jsx)("p",{className:"text-xl md:text-2xl mb-8 drop-shadow-md",children:(0,s.jsx)(m.A,{contentKey:"hero.subtitle",fallback:v.ap.subtitle,as:"span"})}),(0,s.jsx)("div",{className:"mb-8 flex justify-center",children:(0,s.jsx)(j,{slug:"parc-global",mode:"detailed"})}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4",children:[(0,s.jsx)(d,{href:v.ap.primaryCta.href,className:"bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-lg shadow-lg transition-transform transform hover:scale-105",children:(0,s.jsx)(m.A,{contentKey:"hero.primary_cta",fallback:v.ap.primaryCta.label,as:"span"})}),(0,s.jsx)(d,{href:v.ap.secondaryCta.href,className:"bg-white hover:bg-gray-100 text-gray-800 font-bold py-3 px-8 rounded-lg shadow-lg transition-transform transform hover:scale-105",children:(0,s.jsx)(m.A,{contentKey:"hero.secondary_cta",fallback:v.ap.secondaryCta.label,as:"span"})})]})]})]}),D=e=>{let{onOpenModal:t}=e;return(0,s.jsx)("section",{className:"py-20 bg-gray-100 border-t-2 border-indigo-100",children:(0,s.jsxs)("div",{className:"container mx-auto px-6",children:[(0,s.jsx)("h2",{className:"text-4xl font-extrabold text-center text-gray-800 mb-4",children:(0,s.jsx)(m.A,{contentKey:"tibolide.title",fallback:v.yE.title,as:"span"})}),(0,s.jsx)("p",{className:"text-xl text-center text-gray-600 mb-12",children:(0,s.jsx)(m.A,{contentKey:"tibolide.intro",fallback:v.yE.intro,as:"span",multiline:!0})}),(0,s.jsx)("div",{className:"mb-12 flex justify-center",children:(0,s.jsx)(j,{slug:"tibolide",mode:"detailed",size:"compact"})}),(0,s.jsx)("div",{className:"grid md:grid-cols-3 gap-10",children:v.g1.map((e,t)=>(0,s.jsxs)("article",{className:"bg-white rounded-lg shadow-xl overflow-hidden flex flex-col",children:[(0,s.jsx)("div",{role:"img","aria-label":e.ariaLabel,className:"w-full h-48",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:"cover",backgroundPosition:e.imagePosition||"center"}}),(0,s.jsxs)("div",{className:"p-6 text-center flex flex-col flex-grow",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold mb-2",children:(0,s.jsx)(m.A,{contentKey:"tibolide.vehicle.".concat(t,".title"),fallback:e.title,as:"span"})}),(0,s.jsx)("p",{className:"text-gray-600 flex-grow",children:(0,s.jsx)(m.A,{contentKey:"tibolide.vehicle.".concat(t,".description"),fallback:e.description,as:"span",multiline:!0})})]})]},e.title))}),(0,s.jsxs)("div",{className:"mt-12 text-center max-w-4xl mx-auto w-full",children:[(0,s.jsx)("h3",{className:"text-3xl font-extrabold text-gray-800 mb
1-4",children:(0,s.jsx)(m.A,{contentKey:"tibolide.pricing.title",fallback:v.yE.pricingTitle,as:"span"})}),(0,s.jsx)("p",{className:"text-gray-600 mb-6",children:(0,s.jsx)(m.A,{contentKey:"tibolide.pricing.subtitle",fallback:v.yE.pricingSubtitle,as:"span",multiline:!0})}),(0,s.jsx)("div",{className:"flex justify-center mb-8",children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-2 bg-indigo-100 text-indigo-800 text-sm font-bold px-4 py-2 rounded-full shadow-sm border border-indigo-200",children:[(0,s.jsx)(u.A,{name:"timer",className:"h-4 w-4"}),(0,s.jsx)(m.A,{contentKey:"tibolide.duration",fallback:v.yE.durationLabel,as:"span"})]})}),(0,s.jsx)("div",{className:"grid md:grid-cols-3 gap-6",children:v.ig.map((e,t)=>(0,s.jsxs)("div",{className:"relative rounded-xl p-6 flex flex-col items-center border-2 ".concat("highlight"===e.variant?"bg-indigo-50 border-indigo-600 shadow-xl":"bg-white border-indigo-200 shadow-lg"),children:[e.badge?(0,s.jsx)("span",{className:"absolute top-0 right-0 -mt-3 -mr-3 bg-indigo-600 text-white text-xs font-bold py-1 px-3 rounded-full shadow-md transform rotate-3",children:(0,s.jsx)(m.A,{contentKey:"tibolide.card.".concat(t,".badge"),fallback:e.badge,as:"span"})}):null,(0,s.jsx)("div",{className:"text-indigo-600 mb-3",children:(0,s.jsx)(u.A,{name:e.icon,className:"h-8 w-8"})}),(0,s.jsx)("p",{className:"text-2xl font-bold text-gray-800 mb-4",children:(0,s.jsx)(m.A,{contentKey:"tibolide.card.".concat(t,".title"),fallback:e.title,as:"span"})}),(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center space-y-1",children:[(0,s.jsx)("p",{className:"text-4xl font-extrabold text-indigo-600",children:(0,s.jsx)(m.A,{contentKey:"tibolide.card.".concat(t,".price"),fallback:e.price,as:"span"})}),(0,s.jsx)("p",{className:"text-sm font-semibold text-gray-700",children:"/ enfant"})]}),(0,s.jsx)("p",{className:"text-lg font-semibold mt-4 ".concat("highlight"===e.variant?"text-gray-800":"text-gray-500"),children:(0,s.jsx)(m.A,{contentKey:"tibolide.card.".concat(t,".total"),fallback:e.total,as:"span"})})]},e.title))})]}),(0,s.jsx)("div",{className:"text-center mt-10",children:(0,s.jsx)("button",{type:"button",className:"bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-8 rounded-lg shadow-lg transition-transform transform hover:scale-105",onClick:()=>t("tibolide"),children:(0,s.jsx)(m.A,{contentKey:"tibolide.cta",fallback:v.yE.ctaLabel,as:"span"})})})]})})};D.propTypes={onOpenModal:o().func.isRequired};let I=()=>(0,s.jsx)("section",{id:"sur-place",className:"py-20 bg-white",children:(0,s.jsxs)("div",{className:"container mx-auto px-6",children:[(0,s.jsx)("h2",{className:"text-4xl font-extrabold text-center text-gray-800 mb-16",children:(0,s.jsx)(m.A,{contentKey:"onsite.title",fallback:"Se restaurer & D\xe9couvrir",as:"span"})}),(0,s.jsx)("div",{className:"grid md:grid-cols-3 gap-10",children:v.ch.map((e,t)=>(0,s.jsxs)("article",{className:"bg-white rounded-lg shadow-xl overflow-hidden flex flex-col",children:[(0,s.jsx)("div",{role:"img","aria-label":e.ariaLabel,className:"w-full h-48",style:{backgroundImage:"url('".concat(e.image,"')"),backgroundSize:"cover",backgroundPosition:e.imagePosition||"center"}}),(0,s.jsxs)("div",{className:"p-6 flex flex-col flex-grow",children:[(0,s.jsxs)("div",{className:"flex flex-wrap justify-between items-start gap-x-4 gap-y-2 mb-3",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold",children:(0,s.jsx)(m.A,{contentKey:"onsite.".concat(t,".title"),fallback:e.title,as:"span"})}),(0,s.jsx)("span",{className:"flex-shrink-0 whitespace-nowrap mt-1 text-xs font-semibold bg-gray-200 text-gray-700 px-3 py-1 rounded-full",children:(0,s.jsx)(m.A,{contentKey:"onsite.".concat(t,".tag"),fallback:e.tag,as:"span"})})]}),(0,s.jsx)("p",{className:"text-gray-600 flex-grow",children:(0,s.jsx)(m.A,{contentKey:"onsite.".concat(t,".description"),fallback:e.description,as:"span",multiline:!0})}),e.phone?(0,s.jsx)("div",{className:"mt-4 pt-4 border-t border-gray-100",children:(0,s.jsxs)(d,{href:"tel:".concat(e.phone.replace(/\s/g,"")),className:"inline-flex items-center gap-2 text-indigo-600 font-bold hover:text-indigo-800 transition-colors",children:[(0,s.jsx)(u.A,{name:"phone",className:"h-4 w-4"}),(0,s.jsx)("span",{children:(0,s.jsx)(m.A,{contentKey:"onsite.".concat(t,".phone"),fallback:"R\xe9server au ".concat(e.phone),as:"span"})})]})}):null]})]},e.title))})]})}),P={map:(0,s.jsx)("svg",{className:"h-6 w-6 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"})}),navigation:(0,s.jsxs)("svg",{className:"h-6 w-6 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"2"})]}),pin:(0,s.jsxs)("svg",{className:"h-6 w-6 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]})},F=()=>((0,r.useEffect)(()=>{let e,t=()=>{let a=document.getElementById("map");if(!a||"true"===a.dataset.initialized)return;if(void 0===window.L){e=window.setTimeout(t,200);return}a.dataset.initialized="true";let s=window.L.map("map",{scrollWheelZoom:!1,dragging:!0}
1).setView([-21.054205,55.357328],14);window.L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'© <a href="https://www.openstreetmap.org/copyright">OSM</a> contributors'}).addTo(s),window.L.marker([-21.054205,55.357474]).addTo(s).bindPopup("Parc de la Luge du Ma\xefdo").openPopup()};return t(),()=>{e&&clearTimeout(e)}},[]),(0,s.jsx)("section",{id:"planifier",className:"py-20 bg-gray-100",children:(0,s.jsxs)("div",{className:"container mx-auto px-6",children:[(0,s.jsx)("h2",{className:"text-4xl font-extrabold text-center text-gray-800 mb-16",children:(0,s.jsx)(m.A,{contentKey:"plan.title",fallback:"Planifier votre visite",as:"span"})}),(0,s.jsxs)("div",{className:"grid lg:grid-cols-3 gap-10",children:[(0,s.jsxs)("div",{className:"lg:col-span-2 bg-white p-8 rounded-lg shadow-lg",children:[(0,s.jsxs)("div",{className:"mb-8",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.title",fallback:"Horaires dâouverture",as:"span"})}),(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h4",{className:"text-lg font-bold text-gray-900 flex items-center gap-2",children:[(0,s.jsx)(m.A,{contentKey:"plan.schedule.vacations.title",fallback:"Vacances scolaires",as:"span"}),(0,s.jsx)("span",{className:"text-xs font-normal text-gray-500 bg-gray-100 px-2 py-1 rounded-full",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.vacations.badge",fallback:"Zone R\xe9union",as:"span"})})]}),(0,s.jsx)("p",{className:"text-green-700 font-medium mt-1 text-lg",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.vacations.hours",fallback:"Ouvert tous les jours, de 9h30 \xe0 17h00.",as:"span"})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-lg font-bold text-gray-900 mb-2",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.off.title",fallback:"Hors vacances scolaires",as:"span"})}),(0,s.jsxs)("div",{className:"pl-4 border-l-4 border-green-600",children:[(0,s.jsxs)("p",{className:"text-gray-800",children:[(0,s.jsx)("span",{className:"font-bold",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.off.open_label",fallback:"Ouvert :",as:"span"})})," ",(0,s.jsx)(m.A,{contentKey:"plan.schedule.off.open_days",fallback:"Mercredi, Samedi & Dimanche",as:"span"})]}),(0,s.jsx)("p",{className:"text-gray-600 text-sm",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.off.open_hours",fallback:"9h30 - 17h00",as:"span"})})]}),(0,s.jsx)("div",{className:"pl-4 border-l-4 border-gray-300 mt-3",children:(0,s.jsxs)("p",{className:"text-gray-500",children:[(0,s.jsx)("span",{className:"font-semibold",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.off.closed_label",fallback:"Ferm\xe9 :",as:"span"})})," ",(0,s.jsx)(m.A,{contentKey:"plan.schedule.off.closed_days",fallback:"Lundi, Mardi, Jeudi, Vendredi",as:"span"})]})})]}),(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-6 pt-6 border-t border-gray-100",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h5",{className:"font-bold text-gray-800 text-sm uppercase tracking-wide mb-1",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.holidays.title",fallback:"Jours F\xe9ri\xe9s",as:"span"})}),(0,s.jsx)(A.A,{contentKey:"plan.schedule.holidays.detail",fallback:"Ouvert aux horaires habituels.<br /><span class='text-red-600 font-medium'>Ferm\xe9 le 25 D\xe9c. et 1er Janv.</span>",className:"text-sm text-gray-600 leading-snug"})]}),(0,s.jsxs)("div",{className:"md:col-span-2 bg-gray-50 p-3 rounded-lg",children:[(0,s.jsx)("h5",{className:"font-bold text-gray-800 text-sm inline mr-2",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.pause.title",fallback:"â¹ï¸ Pause M\xe9ri
1dienne :",as:"span"})}),(0,s.jsx)("span",{className:"text-sm text-gray-600",children:(0,s.jsx)(m.A,{contentKey:"plan.schedule.pause.detail",fallback:v.Af,as:"span"})})]})]})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:(0,s.jsx)(m.A,{contentKey:"plan.tips.title",fallback:"Conseils pratiques",as:"span"})}),(0,s.jsx)("ul",{className:"space-y-2 text-gray-700 list-disc list-inside",children:v.y8.map((e,t)=>(0,s.jsx)("li",{children:(0,s.jsx)(A.A,{contentKey:"plan.tip.".concat(t),fallback:e,as:"span",className:"inline"})},t))})]})]}),(0,s.jsxs)("div",{className:"bg-white p-8 rounded-lg shadow-lg",children:[(0,s.jsx)("h3",{className:"text-2xl font-bold text-gray-800 mb-4",children:(0,s.jsx)(m.A,{contentKey:"plan.find.title",fallback:"Nous Trouver",as:"span"})}),(0,s.jsx)("div",{id:"map",className:"relative z-0 w-full h-[240px] rounded-lg mb-4 bg-gray-100"}),(0,s.jsx)("p",{className:"text-gray-700 mb-6",children:(0,s.jsx)(m.A,{contentKey:"plan.address",fallback:v.dX.address,as:"span",multiline:!0})}),(0,s.jsx)("div",{className:"flex flex-col gap-3",children:v.ph.map((e,t)=>(0,s.jsxs)(d,{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"w-full text-left bg-gray-50 hover:bg-gray-100 shadow rounded-lg p-4 flex items-center gap-3 font-semibold text-gray-800 transition-colors",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"flex-shrink-0",children:P[e.icon]||null}),(0,s.jsx)("span",{children:(0,s.jsx)(m.A,{contentKey:"plan.link.".concat(t),fallback:e.label,as:"span"})})]},e.href))})]})]})]})})),V=()=>{let[e,t]=(0,r.useState)(null),a=e?{key:e,...v.kB[e]}:null;return(0,s.jsxs)("div",{className:"scroll-smooth bg-gray-100 text-gray-900",children:[(0,s.jsx)(O,{}),(0,s.jsx)(w,{onOpenModal:t}),(0,s.jsx)(D,{onOpenModal:t}),(0,s.jsx)(I,{}),(0,s.jsx)(F,{}),(0,s.jsx)(M,{}),(0,s.jsx)(T,{}),(0,s.jsx)(R,{}),(0,s.jsx)(q.A,{content:a,onClose:()=>t(null)})]})};var z=a(2022),U=a(2427);let B=()=>{let{isVisible:e,dismiss:t}=(0,U.A)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:"Parc de la Luge du Ma\xefdo - Aventure \xe0 la R\xe9union"}),(0,s.jsx)("meta",{name:"description",content:"Parc de la Luge du Ma\xefdo : luge d'\xe9t\xe9, trottinettes \xe9lectriques tout terrain, bateaux t\xe9l\xe9guid\xe9s, Ti'Bolide et autres activit\xe9s en famille dans les Hauts de La R\xe9union."}),(0,s.jsx)("link",{rel:"icon",href:"/img/favicon.ico"})]}),(0,s.jsx)(V,{}),(0,s.jsx)(z.A,{isVisible:e,onClose:t})]})}},9845:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(4232),n=a(3164);function l(){return{track:(0,s.useCallback)((e,t)=>{(0,n.u4)(e,t)},[])}}}},e=>{e.O(0,[779,636,593,792],()=>e(e.s=2936)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.