1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,842213,e=>{"use strict";var t=e.i(389895);e.s(["ChevronIcon",0,e=>(0,t.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,t.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})])},711576,372778,e=>{"use strict";var t=e.i(684582),r=e.i(914261);e.s(["useEvent",0,function(e,s,a,l){let n=(0,t.useEffectEvent)(a),i=null==a;(0,r.useEffect)(()=>{if(i||!e.current)return;let t=e.current;return t.addEventListener(s,n,l),()=>{t.removeEventListener(s,n,l)}},[e,s,l,i])}],711576);var s=e.i(305949),a=e.i(827100);function l(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}e.s(["dispatchVirtualFocus",0,l,"moveVirtualFocus",0,function(e){var t,r,n;let i,o,c=(t=(0,s.getOwnerDocument)(e),(o=null==(i=(0,a.getActiveElement)(t))?void 0:i.getAttribute("aria-activedescendant"))&&t.getElementById(o)||i);c!==e&&(c&&(r=c,n=e,r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))),e&&l(e,c))}],372778)},231256,e=>{"use strict";let t=(0,e.i(473267).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],231256)},151827,e=>{"use strict";let t=(0,e.i(473267).default)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],151827)},79633,e=>{"use strict";let t=(0,e.i(473267).default)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);e.s(["default",0,t])},613757,e=>{"use strict";var t=e.i(79633);e.s(["HeartIcon",()=>t.default])},422948,e=>{"use strict";var t=e.i(412847);e.s(["Search",()=>t.default])},327503,e=>{"use strict";let t=(0,e.i(473267).default)("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);e.s(["Star",0,t],327503)},122063,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"io",{enumerable:!0,get:function(){return a}});let s=Promise.resolve(void 0);function a(){return s}s.status="fulfilled",s.value=void 0,("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},309652,(e,t,r)=>{let s;e.i(956209);{let t=e=>function(){throw Error("`".concat(e,"` is only available in a Server Component."))};s={unstable_cache:function(e){return"function"!=typeof e?e:function(){return e.apply(this,arguments)}},unstable_noStore:function(){},io:e.r(122063).io,updateTag:t("updateTag"),revalidateTag:t("revalidateTag"),revalidatePath:t("revalidatePath"),refresh:t("refresh"),cacheLife:t("cacheLife"),cacheTag:t("cacheTag")}}let a=!1,l=!1;s.unstable_cacheLife=function(){return a||(a=!0,console.error(Error("`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js."))),s.cacheLife.apply(this,arguments)},s.unstable_cacheTag=function(){return l||(l=!0,console.error(Error("`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js."))),s.cacheTag.apply(this,arguments)},t.exports=s,r.unstable_cache=s.unstable_cache,r.revalidatePath=s.revalidatePath,r.revalidateTag=s.revalidateTag,r.updateTag=s.updateTag,r.unstable_noStore=s.unstable_noStore,r.cacheLife=s.cacheLife,r.unstable_cacheLife=s.unstable_cacheLife,r.cacheTag=s.cacheTag,r.unstable_cacheTag=s.unstable_cacheTag,r.refresh=s.refresh,r.io=s.io},432258,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var s={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return d}};for(var a in s)Object.defineProperty(r,a,{enumerable:!0,get:s[a]});let l=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class n{disable(){throw l}getStore(){}run(){throw l}exit(){throw l}enterWith(){throw l}static bind(e){return e}}let i="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return i?new i:new n}function c(e){return i?i.bind(e):n.bind(e)}function d(){return i?i.snapshot():function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];return e(...r)}}},320564,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return s}});let s=(0,e.r(432258).createAsyncLocalStorage)()},788172,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return s.workAsyncStorageInstance}});let s=e.r(320564)},732941,(e,t,r)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return s}})},392412,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let s=e.r(348051);function a(e){let{reason:t,children:r}=e;if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}},399858,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let s=e.r(389895),a=e.r(914261),l=e.r(392412),n=e.r(602966);function i(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},r=(0,a.lazy)(()=>t.loader().then(i)),c=t.loading;function d(e){let i=c?(0,s.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,d=o?a.Suspense:a.Fragment,u=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(n.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(d,{...o?{fallback:i}:{},children:u})}return d.displayName="LoadableComponent",d}},615978,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let s=e.r(836437)._(e.r(399858));function a(e,t){var r;let a={};"function"==typeof e&&(a.loader=e);let l={...a,...t};return(0,s.default)({...l,modules:null==(r=l.loadableGenerated)?void 0:r.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},602966,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return o}});let s=e.r(389895),a=e.r(5464),l=e.r(788172),n=e.r(732941),i=e.r(85233);function o(e){let{moduleIds:t}=e;if("u">typeof window)return null;let r=l.workAsyncStorage.getStore();if(void 0===r)return null;let o=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files;o.push(...t)}}if(0===o.length)return null;let c=(0,i.getAssetTokenQuery)();return(0,s.jsx)(s.Fragment,{children:o.map(e=>{let t="".concat(r.assetPrefix,"/_next/").concat((0,n.encodeURIPath)(e)).concat(c);return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style",nonce:r.nonce},e):((0,a.preload)(t,{as:"script",fetchPriority:"low",nonce:r.nonce}),null)})})}},147287,e=>{e.v({body:"bottom-sheet-module-scss-module__ngzMmG__body",close:"bottom-sheet-module-scss-module__ngzMmG__close",header:"bottom-sheet-module-scss-module__ngzMmG__header",icon:"bottom-sheet-module-scss-module__ngzMmG__icon",left:"bottom-sheet-module-scss-module__ngzMmG__left",open:"bottom-sheet-module-scss-module__ngzMmG__open",overlay:"bottom-sheet-module-scss-module__ngzMmG__overlay",sheet:"bottom-sheet-module-scss-module__ngzMmG__sheet",title:"bottom-sheet-module-scss-module__ngzMmG__title",visible:"bottom-sheet-module-scss-module__ngzMmG__visible"})},282213,e=>{"use strict";var t=e.i(584283);
1e.s(["NotFoundSmile",()=>t.default])},116903,e=>{e.v({content:"card-module-scss-module__aWfHHG__content",image:"card-module-scss-module__aWfHHG__image",item:"card-module-scss-module__aWfHHG__item","span-3":"card-module-scss-module__aWfHHG__span-3","span-4":"card-module-scss-module__aWfHHG__span-4",title:"card-module-scss-module__aWfHHG__title"})},945850,e=>{e.v({"page-item":"pages-module-scss-module__rhgbuW__page-item","pages-container":"pages-module-scss-module__rhgbuW__pages-container","pages-slider-wrapper":"pages-module-scss-module__rhgbuW__pages-slider-wrapper"})},840790,983393,e=>{"use strict";var t=e.i(389895),r=e.i(815669),s=e.i(680147);e.i(716204);var a=e.i(282213),l=e.i(915662),n=e.i(578018),i=e.i(261585),o=e.i(914261),c=e.i(366628),d=e.i(61188),u=e.i(116903);function m(e){let{page:r,span:s="3"}=e,a=(0,o.useRef)(null);return(0,t.jsxs)("div",{className:"".concat(u.default.item," ").concat(u.default["span-".concat(s)]),children:[(0,t.jsx)("div",{className:"".concat(u.default.image," cursor-pointer"),onClick:()=>{var e;null==(e=a.current)||e.scrollIntoView({behavior:"smooth",block:"start"})},children:(0,t.jsx)(c.default,{src:r.image,alt:r.image,width:300,height:200,loading:"lazy"})}),(0,t.jsx)("div",{className:"".concat(u.default.title," scroll-mt-[80px]"),ref:a,children:(0,t.jsx)("h2",{title:r.title,children:r.title})}),(0,t.jsx)("div",{className:u.default.content,children:(0,d.default)(r.content)})]})}var p=e.i(945850);let h=e=>{let{className:r,style:s,onClick:a}=e;return(null==r?void 0:r.includes("slick-disabled"))?null:(0,t.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 right-[10px] z-10 flex cursor-pointer items-center justify-center w-10 h-10 bg-secondary rounded-full shadow-md border border-secondary/80 hover:bg-secondary/90",style:{...s,display:"flex"},onClick:a,children:(0,t.jsx)(i.ChevronRight,{className:"w-6 h-6 text-white"})})},f=e=>{let{className:r,style:s,onClick:a}=e;return(null==r?void 0:r.includes("slick-disabled"))?null:(0,t.jsx)("div",{className:"absolute top-1/2 -translate-y-1/2 left-[10px] z-10 flex cursor-pointer items-center justify-center w-10 h-10 bg-secondary rounded-full shadow-md border border-secondary/80 hover:bg-secondary/90",style:{...s,display:"flex"},onClick:a,children:(0,t.jsx)(n.ChevronLeft,{className:"w-6 h-6 text-white"})})};function x(e){let{pages:r,isSlider:a,span:n="3"}=e,{isTablet:i}=(0,s.useDeviceType)();if(a){let e={dots:!1,infinite:!1,speed:500,slidesToShow:i?2.2:1.2,slidesToScroll:1,arrows:!0,nextArrow:(0,t.jsx)(h,{}),prevArrow:(0,t.jsx)(f,{}),swipeToSlide:!0};return(0,t.jsx)("div",{className:p.default["pages-slider-wrapper"],children:(0,t.jsx)(l.default,{...e,children:null==r?void 0:r.map(e=>(0,t.jsx)("div",{className:p.default["page-item"],children:(0,t.jsx)(m,{page:e})},e.id))})})}return(0,t.jsx)("div",{className:p.default["pages-container"],children:null==r?void 0:r.map(e=>(0,t.jsx)(m,{page:e,span:n},e.id))})}e.s(["default",0,function(e){let{children:l,pages:n,className:i,isEmptyFeedback:o=!0}=e,c=(0,r.useTranslations)(),{isDesktop:d}=(0,s.useDeviceType)();return o||0!==n.length?(0,t.jsxs)("div",{className:i,children:[0===n.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-6 gap-4 text-center text-gray-500",children:[(0,t.jsx)(a.NotFoundSmile,{width:64,height:64}),(0,t.jsx)("span",{children:c("notFoundContent")})]}):(0,t.jsx)(x,{pages:n,isSlider:!d,span:"3"}),l?(0,t.jsx)("div",{className:"mt-8 px-4 lg:px-0",children:l}):null]}):null}],840790);var g=e.i(801098),b=e.i(151827),v=e.i(473267);let y=(0,v.default)("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]),j=(0,v.default)("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);var _=e.i(4468),w=e.i(463325),N=e.i(187255),k=e.i(381984),C=e.i(718028),E=e.i(938819),E=E,T=e.i(397954),P=e.i(369984),A=e.i(814955),M=e.i(846343),L=e.i(446602),S=e.i(737492),O=e.i(935424),B=e.i(744705);e.s(["default",0,function(e){let{className:s,gardenProduct:a,yslProduct:l,comb
1inedProduct:n}=e;(0,g.useLocale)();let i=(0,r.useTranslations)(),[d,u]=(0,o.useState)("none"),m=(0,C.useCurrencyFormatter)(),p=(0,k.default)(e=>e.calculatePrice),{getButtonProps:h}=function(){var e;let t,r=(0,g.useLocale)(),s=(0,B.useRouter)(),a=(0,P.useQueryClient)(),l=(0,M.useBookingStore)(e=>e.setProduct),n=(0,M.useBookingStore)(e=>e.setOption),i=(0,L.useBookingDrawerStore)(e=>e.setOpen),c=(e="(max-width: 1023px)",t=(0,o.useCallback)(t=>{let r=window.matchMedia(e);return r.addEventListener("change",t),()=>r.removeEventListener("change",t)},[e]),(0,o.useSyncExternalStore)(t,()=>window.matchMedia(e).matches,()=>!1)),[d,u]=(0,o.useState)(null),m=(0,o.useCallback)(async(e,t)=>{u(e);try{let t=await a.fetchQuery({queryKey:["product",e,r],queryFn:()=>(0,A.getProductData)({id:e},(0,S.getHost)(),{headers:{"Accept-Language":r}}),staleTime:3e5});if(!t)throw Error("Product ".concat(e," not found"));l(t);let s=(0,O.pickDefaultOption)(t.options,{optionRef:t.optionRef});s&&n(s),i(!0)}catch(e){s.push(t)}finally{u(null)}},[r,a,s,i,n,l]);return{getButtonProps:e=>{var t,s;let a=e?"/".concat(null!=(t=null==(s=e.link)?void 0:s[r])?t:""):"#";return e&&c?{isLoading:d===e.id,onPress:()=>{null===d&&m(e.id,a)}}:{as:B.Link,href:a}}}}(),f=[{id:"combined",top:"35%",left:"25%",bgClass:"bg-[#3B82F6]",textClass:"text-[#3B82F6]",borderTopClass:"border-t-[#3B82F6]",icon:e=>(0,t.jsx)(y,{size:20}),title:i.rich("majorelleCompare.markers.berberMuseum",{br:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("br",{className:"hidden md:block"}),e]})})},{id:"ysl",top:"18%",left:"75%",bgClass:"bg-[#B77E23]",textClass:"text-[#B77E23]",borderTopClass:"border-t-[#B77E23]",icon:e=>(0,t.jsx)(E.default,{width:24,height:24,fill:e?"#B77E23":"white"}),title:i.rich("majorelleCompare.markers.yslMuseum",{br:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("br",{className:"hidden md:block"}),e]})})},{id:"garden",top:"52%",left:"62%",bgClass:"bg-[#1C743A]",textClass:"text-[#1C743A]",borderTopClass:"border-t-[#1C743A]",icon:e=>(0,t.jsx)(j,{size:20}),title:i.rich("majorelleCompare.markers.garden",{br:e=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("br",{className:"hidden md:block"}),e]})})}],x=[{id:"garden",borderClass:"border-[#1C743A]",hoverBorderClass:"hover:border-[#1C743A]",buttonBg:"bg-[#1C743A]",buttonHoverBg:"hover:bg-[#14592B]",isPopular:!1,headerContent:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"bg-[#1C743A] w-8 h-8 md:w-12 md:h-12 rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm shrink-0",children:(0,t.jsx)(j,{size:20})}),(0,t.jsx)("h3",{className:"text-lg font-semibold",children:i("majorelleCompare.tickets.garden.title")})]}),features:[{text:i("majorelleCompare.features.garden"),active:!0},{text:i("majorelleCompare.features.ysl"),active:!1},{text:i("majorelleCompare.features.berber"),active:!1}]},{id:"ysl",borderClass:"border-[#B77E23]",hoverBorderClass:"hover:border-[#B77E23]",buttonBg:"bg-[#B77E23]",buttonHoverBg:"hover:bg-[#A06A1B]",isPopular:!1,headerContent:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"bg-[#B77E23] w-8 h-8 md:w-12 md:h-12 rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm shrink-0",children:(0,t.jsx)(E.default,{width:24,height:24,fill:"white"})}),(0,t.jsx)("h3",{className:"text-lg font-semibold",children:i("majorelleCompare.tickets.ysl.title")})]}),features:[{text:i("majorelleCompare.features.garden"),active:!1},{text:i("majorelleCompare.features.ysl"),active:!0},{text:i("majorelleCompare.features.berber"),active:!1}]},{id:"combined",borderClass:"border-[#3B82F6]",hoverBorderClass:"hover:border-[#3B82F6]",buttonBg:"bg-[#3B82F6]",buttonHoverBg:"hover:bg-[#2563EB]",isPopular:!0,headerContent:(0,t.jsx)("div",{className:"relative group flex items-center justify-center w-full h-8 md:h-12 cursor-pointer",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 relative z-0",children:[(0,t.jsxs)("div",{className:"relative w-[64px] md:w-[96px] h-8 md:h-12 flex-shrink-0 z-10",children:[(0,t.jsx)(N.Tooltip,{content:i("majorelleCompare.tooltips.garden"),placement:"top",children:(0,t.jsx)("div",{className:"bg-[#1C743A] w-8 h-8 md:w-12 md:h-12 rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm absolute left-0 transition-all duration-500 ease-out z-30",children:(0,t.jsx)(j,{size:20})})}),(0,t.jsx)(N.Tooltip,{content:i("majorelleCompare.tooltips.ysl"),placement:"top",children:(0,t.jsx)("div",{className:"bg-[#B77E23] w-8 h-8 md:w-12 md:h-12 rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm absolute left-4 md:left-6 transition-all duration-500 ease-out group-hover:translate-x-6 md:group-hover:translate-x-10 z-20",children:(0,t.jsx)(E.default,{width:24,height:24,fill:"white"})})}),(0,t.jsx)(N.Tooltip,{content:i("majorelleCompare.tooltips.berber"),placement:"top",children:(0,t.jsx)("div",{className:"bg-[#3B82F6] w-8 h-8 md:w-12 md:h-12 rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm absolute left-8 md:left-12 transition-all duration-500 ease-out group-hover:translate-x-12 md:group-hover:translate-x-20 z-10",children:(0,t.jsx)(y,{size:20})})})]}),(0,t.jsx)("div",{className:"transition-all duration-500 ease-out group-hover:blur-[2px] group-hover:opacity-40",children:(0,t.jsx)("h3",{className:"text-lg font-semibold whitespace-nowrap m-0",children:i("majorelleCompare.tickets.combined.title")})})]})}),features:[{text:i("majorelleCompare.features.garden"),active:!0},{text:i("majorelleCompare.features.ysl"),active:!0},{text:i("majorelleCompare.features.berber"),active:!0}]}];return(0,t.jsxs)("section",{className:s,children:[(0,t.jsxs)("div",{className:"grid grid-cols-12 relative z-10 text-foreground rounded-2xl shadow-[0_2px_20px_-5px_rgba(0,0,0,0.05)]",children:[(0,t.jsx)("div",{className:"col-span-12 lg:col-span-4 flex justify-center items-center bg-[#FAF8F5] lg:rounded-l-2xl relative transition-all duration-500",children:(0,t.jsxs)("div",{className:"relative h-[360px] md:h-[360px] lg:h-[480px] flex-shrink-0 aspect-[3/3] w-full mx-auto",children:[(0,t.jsx)(c.default,{src:"/img/majorelle-garden.webp",width:1024,height:1536,alt:"Majorelle Garden",className:"w-full h-full object-contain mix-blend-multiply px-6 relative z-0"}),f.map(e=>{let r=d===e.id||"combined"===d;return(0,t.jsxs)("div",{className:"absolute -translate-x-1/2 -translate-y-1/2 flex flex-col items-center z-10 cursor-pointer hover:scale-105 transition-transform group",style:{to
1p:e.top,left:e.left},onMouseEnter:()=>u(e.id),onMouseLeave:()=>u("none"),onClick:()=>{let t=document.getElementById("ticket-card-".concat(e.id));t&&t.scrollIntoView({behavior:"smooth",block:"center"})},children:[(0,t.jsxs)("div",{className:"px-2 py-1.5 md:px-3 md:py-2 rounded-xl shadow-[0_4px_10px_rgba(0,0,0,0.12)] flex flex-col md:flex-row items-center gap-2 transition-colors duration-300 ".concat(r?e.bgClass:"bg-white"),children:[(0,t.jsx)("div",{className:"w-8 h-8 md:w-10 md:h-10 rounded-full flex items-center justify-center border-2 border-white shadow-sm shrink-0 transition-colors duration-300 ".concat(r?"bg-white ".concat(e.textClass):"".concat(e.bgClass," text-white")),children:e.icon(r)}),(0,t.jsx)("div",{className:"text-[9px] md:text-[10px] font-bold leading-[1.2] text-center md:text-left whitespace-nowrap transition-colors duration-300 ".concat(r?"text-white":e.textClass),children:e.title})]}),(0,t.jsx)("div",{className:"w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[10px] drop-shadow-sm -mt-[1px] transition-colors duration-300 ".concat(r?e.borderTopClass:"border-t-white")})]},e.id)})]})}),(0,t.jsxs)("div",{className:"col-span-12 lg:col-span-8 flex flex-col gap-4 p-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-warning-400 font-medium",children:i("majorelleCompare.header.badge")}),(0,t.jsx)("h2",{className:"text-2xl md:text-3xl font-bold mt-2",children:i("majorelleCompare.header.title")}),(0,t.jsx)("span",{className:"text-gray-600",children:i("majorelleCompare.header.subtitle")})]}),(0,t.jsx)("div",{className:"grid grid-cols-12 gap-4",children:x.map(e=>{var r;let s="garden"===e.id?a:"ysl"===e.id?l:n,o=null==s||null==(r=s.pricing)?void 0:r.EUR,c=o&&o.specialPrice&&o.specialPrice!==o.price;return(0,t.jsx)("div",{id:"ticket-card-".concat(e.id),className:"col-span-12 lg:col-span-4",children:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 h-full bg-[#FAF8F5] rounded-2xl border-2 ".concat(d===e.id?e.borderClass:"border-transparent"," ").concat(e.hoverBorderClass," relative transition-all duration-500 p-4"),onMouseEnter:()=>u(e.id),onMouseLeave:()=>u("none"),children:[e.isPopular&&(0,t.jsx)("span",{className:"absolute -top-3 right-0 bg-secondary text-white px-2 py-1 rounded-lg text-xs",children:i("majorelleCompare.badges.mostPopular")}),e.headerContent,(0,t.jsx)("div",{className:"w-full bg-white rounded-xl p-4 flex-grow",children:(0,t.jsx)("ul",{className:"space-y-2 text-sm md:text-base text-gray-800",children:e.features.map((e,r)=>(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[e.active?(0,t.jsx)(b.Check,{className:"w-5 h-5 text-green-500 flex-shrink-0 mt-0.5",strokeWidth:3}):(0,t.jsx)(_.X,{className:"w-5 h-5 text-gray-400 flex-shrink-0 mt-0.5",strokeWidth:3}),(0,t.jsx)("span",{className:e.active?"":"text-gray-500",children:e.text})]},r))})}),(0,t.jsx)("div",{className:"flex flex-col items-center my-2",children:o?(0,t.jsxs)(t.Fragment,{children:[c?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"text-gray-400 line-through text-sm font-medium",children:m(p(o.price))}),(0,t.jsxs)("span",{className:"text-[10px] font-bold text-green-700 bg-green-100 px-2 py-0.5 rounded-full",children:["-",Math.round((o.price-o.specialPrice)/o.price*100),"%"]})]}):(0,t.jsx)("span",{className:"text-gray-400 text-sm font-medium",children:i("from")}),(0,t.jsx)("span",{className:"text-3xl font-extrabold text-gray-900",children:m(p(c?o.specialPrice:o.price))})]}):(0,t.jsx)("span",{className:"text-3xl font-extrabold text-gray-900",children:"-"})}),(0,t.jsx)(w.Button,{...h(s),size:"lg",className:"w-full text-white rounded-xl mt-auto ".concat(e.buttonBg," ").concat(e.buttonHoverBg),children:i("product.checkAvailability")})]})},e.id)})})]})]}),(0,t.jsx)(T.default,{lazy:!0})]})}],983393)},64829,e=>{"use strict";var t=e.i(389895),r=e.i(815669),s=e.i(737492);let a=[{id:1,title:"policy.title",description:"policy.description",label:"policy.label",icon:(0,t.jsxs)("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 14l2 2 2-2M10 14l2-2 2 2"})]})},{id:2,title:"support.title",description:"support.description",label:"support.label",icon:(0,t.jsx)("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.
1095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"})})},{id:3,title:"payment.title",description:"payment.description",label:"payment.label",icon:(0,t.jsx)("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75m-3-7.036A11.959 11.959 0 0 1 3.598 6 11.99 11.99 0 0 0 3 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285Z"})})},{id:4,title:"mobileTicket.title",description:"mobileTicket.description",label:"mobileTicket.label",icon:(0,t.jsx)("svg",{className:"h-5 w-5 sm:h-6 sm:w-6",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.8,stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"})})}];e.s(["default",0,function(e){let{className:l}=e,n=(0,s.getHost)(),i="cityzore";"https://majorelle-garden.com"===n?i="majorelle":"https://www.orsaymuseumtickets.net"===n?i="orsaymuseumtickets":"https://www.louvretickets.info"===n?i="louvretickets":"https://www.louvremuseumtickets.fr"===n?i="louvremuseumtickets":"https://cisternbasilica.com"===n?i="cisternbasilica":"https://hagia-sophia-ticket.com"===n&&(i="hagiasophiaticket");let o=(0,r.useTranslations)("index-page.trust.".concat(i));return(0,t.jsx)("div",{className:"w-full mt-6 lg:mt-24 py-4 ".concat(l||""),children:(0,t.jsx)("div",{className:"container mx-auto px-4 lg:px-6",children:(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-0",children:a.map((e,r)=>(0,t.jsxs)("div",{className:"group flex items-start gap-3.5 sm:gap-4 py-4 sm:py-6 px-3 sm:px-4 lg:px-6 ".concat(r<a.length-1?"border-b sm:border-b-0 border-gray-200/80":""," ").concat(r<2?"sm:border-b lg:border-b-0 border-gray-200/80":""," ").concat(r%2==0?"sm:border-r lg:border-r-0 border-gray-200/80":""),children:[(0,t.jsx)("div",{className:"flex-shrink-0 mt-0.5 flex h-10 w-10 lg:h-12 lg:w-12 items-center justify-center rounded-xl bg-primary/10 text-primary transition-colors duration-300 group-hover:bg-primary group-hover:text-white",children:e.icon}),(0,t.jsxs)("div",{className:"flex flex-col min-w-0",children:[(0,t.jsx)("h3",{className:"text-sm sm:text-base lg:text-lg font-semibold sm:font-medium text-foreground leading-tight",children:o(e.title)}),(0,t.jsx)("p",{className:"mt-1 text-xs sm:text-sm leading-relaxed text-gray-500",children:o(e.description)}),(0,t.jsx)("span",{className:"mt-1.5 sm:mt-2 text-[10px] sm:text-[11px] font-extrabold tracking-[0.12em] text-primary/90 inline-block uppercase",children:o(e.label)})]})]},e.id))})})})}])},355615,103432,397954,e=>{"use strict";e.i(215819),e.i(810028),e.i(216180),e.i(792075),e.i(610326),e.i(401164),e.i(889120);var t=e.i(389895);e.s(["FAQSchema",0,e=>{let{faqs:r=[]}=e;if(!r||0===r.length)return null;let s={"@context":"https://schema.org","@type":"FAQPage",mainEntity:r.map(e=>({"@type":"Question",name:(e.question||"").replace(/<[^>]*>/g,""),acceptedAnswer:{"@type":"Answer",text:(e.answer||"").replace(/<[^>]*>/g,"")}}))};return(0,t.jsx)("script",{id:"faq-schema",type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(s).replace(/</g,"\\u003c")}})}],103432),e.s([],355615);var r=e.i(914261),s=e.i(615978),a=e.i(815669),l=e.i(446602),n=e.i(5464),i=e.i(4468),o=e.i(147287);function c(e){let{open:s,onOpenChange:a,children:l,title:c,icon:d,offset:u=64}=e,[m,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{p(!0)},[]),(0,r.useEffect)(()=>{if(s&&m){let e=window.scrollY,t=window.location.pathname;return document.body.style.position="fixed",document.body.style.top="-".concat(e,"px"),document.body.style.left="0",document.body.style.right="0",document.body.style.overflow="hidden",()=>{document.body.style.position="",document.body.style.top="",document.body.style.left="",document.body.style.right="",document.body.style.overflow="",window.location.pathname===t&&window.scrollTo(0,e)}}},[s,m]);let h=(0,r.useCallback)(()=>{a(!1)},[a]);return((0,r.useEffect)(()=>
1{if(!s)return;let e=e=>{"Escape"===e.key&&h()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s,h]),m)?(0,n.createPortal)((0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"".concat(o.default.overlay," ").concat(s?o.default.visible:""),onClick:h,"aria-hidden":"true"}),(0,t.jsxs)("div",{className:"".concat(o.default.sheet," ").concat(s?o.default.open:""),style:{"--bottom-sheet-offset":"".concat(u,"px")},role:"dialog","aria-modal":"true",children:[(0,t.jsxs)("div",{className:o.default.header,children:[(0,t.jsxs)("div",{className:o.default.left,children:[d&&(0,t.jsx)("span",{className:o.default.icon,children:d}),c&&(0,t.jsx)("span",{className:o.default.title,children:c})]}),(0,t.jsx)("button",{className:o.default.close,onClick:h,"aria-label":"Close",children:(0,t.jsx)(i.X,{size:20})})]}),(0,t.jsx)("div",{className:o.default.body,children:l})]})]}),document.body):null}let d=(0,s.default)(()=>e.A(644588),{loadableGenerated:{modules:[974035]}});e.s(["default",0,function(e){let{lazy:s=!1}=e,n=(0,a.useTranslations)(),{open:i,setOpen:o}=(0,l.useBookingDrawerStore)(e=>e),[u,m]=(0,r.useState)(i);return(0,r.useEffect)(()=>{i&&m(!0)},[i]),(0,r.useEffect)(()=>()=>o(!1),[o]),(0,t.jsx)(c,{offset:0,open:i,onOpenChange:o,title:n("booking"),children:(!s||u)&&(0,t.jsx)(d,{})})}],397954)},198339,e=>{e.v({answer:"faq-accordion-module-scss-module__dDbW6W__answer",question:"faq-accordion-module-scss-module__dDbW6W__question",title:"faq-accordion-module-scss-module__dDbW6W__title"})},401164,163944,701796,e=>{"use strict";var t=e.i(389895),r=e.i(815669),s=e.i(685712),a=e.i(257982),l=e.i(463325),n=e.i(61188),i=e.i(744705);e.i(623451);var o=e.i(42634);e.s(["Plus",()=>o.default],163944);var o=o,c=e.i(744527);e.s(["Negative",()=>c.default],701796);var c=c,d=e.i(198339);let u=e=>{let{faqs:u,className:m="",limit:p=15,showTitle:h=!0,showMoreButton:f=!0}=e,x=(0,r.useTranslations)();if(!(null==u?void 0:u.length))return null;let g=u.length>p,b=u.slice(0,p);return(0,t.jsxs)("div",{className:m,children:[h&&(0,t.jsx)("span",{className:d.default.title,children:x("faqs")}),(0,t.jsx)(s.Accordion,{disableIndicatorAnimation:!0,keepContentMounted:!0,children:b.map(e=>(0,t.jsx)(a.AccordionItem,{"aria-label":e.question,title:(0,t.jsx)("div",{className:d.default.question,children:e.question}),indicator:e=>{let{isOpen:r}=e;return r?(0,t.jsx)(c.default,{className:"w-5 h-5"}):(0,t.jsx)(o.default,{className:"w-5 h-5"})},children:(0,t.jsx)("div",{className:d.default.answer,children:(0,n.default)(e.answer)})},e.id))}),f&&g&&(0,t.jsx)(l.Button,{as:i.Link,href:"/frequently-asked-questions",color:"primary",className:"mt-4",children:x("showMore")})]})};e.s(["FaqAccordion",0,u,"default",0,u],401164)},263013,e=>{e.v({active:"faq-category-view-module-scss-module__9tMbWa__active",answer:"faq-category-view-module-scss-module__9tMbWa__answer",box:"faq-category-view-module-scss-module__9tMbWa__box",categories:"faq-category-view-module-scss-module__9tMbWa__categories",category:"faq-category-view-module-scss-module__9tMbWa__category",content:"faq-category-view-module-scss-module__9tMbWa__content",count:"faq-category-view-module-scss-module__9tMbWa__count",description:"faq-category-view-module-scss-module__9tMbWa__description",list:"faq-category-view-module-scss-module__9tMbWa__list",question:"faq-category-view-module-scss-module__9tMbWa__question",questions:"faq-category-view-module-scss-module__9tMbWa__questions",search:"faq-category-view-module-scss-module__9tMbWa__search",title:"faq-category-view-module-scss-module__9tMbWa__title"})},889120,e=>{"use strict";var t=e.i(389895),r=e.i(914261),s=e.i(815669),a=e.i(152460),l=e.i(685712),n=e.i(257982),i=e.i(261585),o=e.i(422948),c=e.i(61188),d=e.i(263013);let u={"https://majorelle-garden.com":"majorelle","https://basilica-cistern-tickets.com":"basilicacisterntickets"},m=e=>{var m,p,h;let{faqs:f=[],host:x,className:g=""}=e,b=(0,s.useTranslations)(),v=null!=(m=u[x])?m:"cityzore",[y,j]=(0,r.useState)(""),_=!!y.trim(),w=(0,r.useMemo)(()=>{if(!_)return f;let e=y.toLowerCase();return f.filter(t=>{let r=t.question.toLowerCase().includes(e),s=t.answer.toLowerCase().includes(e);return r||s})},[f,y,_]),N=(0,r.useMemo)(()=>{let e=[],t=new Set;return f.forEach(r=>{var s;let a=null==(s=r.category)?void 0:s.id;null==a||t.has(a)||(t.add(a),e.push(r.category))}),e},[f]),k=null!=(p=null==(h=N[0])?void 0:h.id)?p:null,[C,E]=(0,r.useState)(k),T=null!=C?C:k;return(0,t.jsxs)("div",{className:"".concat(d.default.box," ").concat(g).trim(),children:[(0,t.jsx)("h1",{className:d.default.title,children:b("faqs")}),(0,t.jsx)("p",{className:d.default.description,children:b("faqsPageText.".concat(v))}),(0,t.jsxs)("div",{className:d.default.content,children:[(0,t.jsxs)("div",{className:d.default.categories,children:[(0,t.jsx)("div",{className:d.default.search,children:(0,t.jsx)(a.Input,{variant:"bordered",size:"lg",placeholder:b("search"),value:y,onValueChange:j,endContent:(0,t.jsx)(o.Search,{color:"#bbb"})})}),(0,t.jsx)("div",{className:d.default.list,children:N.length>0?N.map(e=>{let r;return(0,t.jsxs)("button",{className:"".concat(d.default.category," ").concat(T===e.id?d.default.active:""),onClick:()=>{E(e.id),_&&j("")},type:"button",children:[(0,t.jsx)("span",{children:e.name}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:d.default.count,children:(r=e.id,f.filter(e=>{var t;return(null==(t=e.category)?void 0:t.id)===r}).length)}),(0,t.jsx)(i.ChevronRight,{})]})]},e.id)}):null})]}),(0,t.jsx)("div",{className:d.default.questions,children:_?w.length>0?(0,t.jsx)(l.Accordion,{variant:"splitted",className:"w-full",keepContentMounted:!0,children:w.map(e=>(0,t.jsx)(n.AccordionItem,{"aria-label":e.question,title:(0,t.jsx)("div",{className:d.default.question,children:e.question}),children:(0,t.jsx)("div",{className:d.default.answer,children:(0,c.default)(e.answer)})},e.id))}):(0,t.jsx)("div",{className:"p-8 text-center text-gray-500",children:b("noResultsFound")}):(0,t.jsxs)(t.Fragment,{children:[N.map(e=>{let r=f.filter(t=>{var r;return(null==(r=t.category)?void 0:r.id)===e.id}),s=T===e.id;return(0,t.jsx)("div",{hidden:!s,className:s?void 0:"hidden","aria-hidden":!s,children:(0,t.jsx)(l.Accordion,{variant:"splitted",className:"w-full",keepContentMounted:!0,children:r.map(e=>(0,t.jsx)(n.AccordionItem,{"aria-label":e.question,title:(0,t.jsx)("div",{className:d.default.question,children:e.question}),children:(0,t.jsx)("div",{className:d.default.answer,children:(0,c.default)(e.answer)})},e.id))})},e.id)}),0===N.length&&f.length>0&&(0,t.jsx)(l.Accordion,{variant:"splitted",className:"w-full",keepContentMounted:!0,children:f.map(e=>(0,t.jsx)(n.AccordionItem,{"aria-label":e.question,title:(0,t.jsx)("div",{className:d.default.question,children:e.question}),children:(0,t.jsx)("div",{className:d.default.answer,children:(0,c.default)(e.answer)})},e.id))})]})})]})]})};e.s(["FaqCategoryView",0,m,"default",0,m])},814955,e=>{"use strict";var t=e.i(309652),r=e.i(216180),s=e.i(792075);let a=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;try{let l=(0,s.queryParams)(e);return(await (0,r.default)("/api/v1/builder/products?".concat(l),{method:"GET",...a},t)).data}catch(e){throw Error("".concat(e))}},l=async(e,t,a)=>{try{let l=(0,s.queryParams)((null==e?void 0:e.params)||{});return(await (0,r.default)("/api/v1/builder/product/".concat(e.id,"?").concat(l),{method:"GET",...a},t)).data}catch(e){if((null==e?void 0:e.status)===404)return null;throw Error("".concat(e))}};(0,t.unstable_cache)((e,t,r)=>l({id:e,params:{preview:void 0}},t,{headers:{"Accept-Language":r},next:{revalidate:0}}),["builder-product-detail"],{revalidate:60}),e.s(["getProductData",0,l,"getProductsData",0,a])},446602,e=>{"use strict";
1let t=(0,e.i(732082).create)()(e=>({open:!1,setOpen:t=>{e(()=>({open:t}))}}));e.s(["useBookingDrawerStore",0,t])},846343,935424,88809,e=>{"use strict";var t=e.i(732082);function r(e){var t;return!!e&&!!e.show&&(null!=(t=e.pricingModel)?t:"per_person")==="per_person"}function s(e){let t=null==e?void 0:e.participants;return!!t&&Object.values(t).some(e=>r(e))}e.s(["isOptionBookableOnline",0,s,"isParticipantBookable",0,r,"pickDefaultOption",0,function(e){let{exp:t,optionRef:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||!e.length)return null;let a=t=>t?e.find(e=>e.referenceCode===t):void 0,l=a(t);if(l)return l;let n=a(r);if(n&&s(n))return n;let i=e.find(e=>s(e));return i||(null!=n?n:e[0])}],935424);let a=["GENERAL","ADULT","EUR_ADULT","NON_EUR_ADULT","EU_CITIZEN","SENIOR","YOUTH","STUDENT","CHILD","EU_YOUTH","NON_EU_YOUTH","INFANT"];function l(e){let t=e.filter(e=>e.isShow);for(let e of a){let r=t.find(t=>t.type===e);if(r)return r}return t[0]}function n(e){let t=e=>{let t=a.indexOf(e);return t<0?a.length:t};return e.map((e,t)=>({participant:e,index:t})).sort((e,r)=>t(e.participant.type)-t(r.participant.type)||e.index-r.index).map(e=>{let{participant:t}=e;return t})}let i={ADULT:["GENERAL","ADULT","EUR_ADULT","NON_EUR_ADULT","EU_CITIZEN","NON_EEA_ADULT","EUROPEAN_ADULT_CITIZEN"],YOUTH:["YOUTH","EU_YOUTH","NON_EU_YOUTH","STUDENT","EUR_STUDENT","EU_CITIZEN_STUDENT"],SENIOR:["SENIOR"],CHILD:["CHILD","NON_EUR_CHILD"],INFANT:["INFANT"],REDUCED:["REDUCED_PRICE"]};function o(e,t,s){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e.length)return[];if(!t||!t.length)return e.map(e=>{let t=!s||r(s[e.type]);return{...e,isShow:t}});let n=new Set(t.map(e=>e.toLowerCase())),o=e.map(e=>{let t=(!s||r(s[e.type]))&&n.has(e.type.toLowerCase());return{...e,isShow:t}}),c=o.filter(e=>e.isShow);if(!c.length)return o;let d={};e.forEach(e=>{d[e.type]=0});let u=[];e.forEach(e=>{e.count<=0||(n.has(e.type.toLowerCase())?d[e.type]=(d[e.type]||0)+e.count:u.push({type:e.type,count:e.count}))}),u.forEach(e=>{let t=function(e,t){let r=t.filter(e=>e.isShow),s=r.find(t=>t.type===e);if(s)return s;let a=Object.keys(i).find(t=>i[t].includes(e));if(a)for(let e of i[a]){let t=r.find(t=>t.type===e);if(t)return t}}(e.type,c);t&&(d[t.type]=(d[t.type]||0)+e.count)});let m=e.some(e=>e.count>0),p=Object.values(d).reduce((e,t)=>e+t,0);if(!m&&0===p){let e=l(c);e&&(d[e.type]=Math.max(1,a||1))}return o.map(e=>({...e,count:d[e.type]||0}))}e.s(["adaptParticipantsToCategories",0,o,"pickPrimaryParticipant",0,l,"sortParticipantsByPriority",0,n],88809);let c=(0,t.create)()(e=>({time:null,times:null,date:null,participants:[],option:null,product:null,minPerson:1,maxPerson:99,droppedHour:null,setDroppedHour:t=>e(()=>({droppedHour:t})),setProduct:t=>e(e=>{var r;return(null==(r=e.product)?void 0:r.id)!==(null==t?void 0:t.id)?{product:t,time:null,times:null,date:null,option:null,participants:[],droppedHour:null}:{product:t}}),setOption:t=>e(e=>{var s;if((null==(s=e.option)?void 0:s.id)===(null==t?void 0:t.id))return{option:t};let a=n(((null==t?void 0:t.participants)?Object.keys(t.participants):[]).map(e=>{let s=r(t.participants[e]);return{type:e,age:"".concat(t.participants[e].minAge,"-").concat(t.participants[e].maxAge),count:0,isShow:s}})),i=l(a);return i&&(i.count=1),{option:t,participants:a,minPerson:1,maxPerson:99,date:null,time:null,times:null,droppedHour:null}}),setParticipantCount:(t,r)=>{e(e=>({participants:e.participants.map(e=>e.type===t?{...e,count:r}:e)}))},syncMinPerson:(t,r)=>e(e=>{let s=Math.max(1,t||1),a=r?Math.max(s,r):e.maxPerson||99,n=e.participants.reduce((e,t)=>e+t.count,0);if(n<s&&e.participants.length>0){let t=l(e.participants);if(t){let r=s-n;return{minPerson:s,maxPerson:a,participants:e.participants.map(e=>e.type===t.type?{...e,count:e.count+r}:e)}}}return{minPerson:s,maxPerson:a}}),applySlotCategories:t=>e(e=>{if(!e.option)return{};let r=e.option.participants,s=o(e.participants,t,r,e.minPerson||1);return s.length===e.participants.length&&s.every((t,r)=>{let s=e.participants[r];return s&&s.type===t.type&&s.count===t.count&&s.isShow===t.isShow})?{}:{participants:s}}),setDate:t=>e(()=>({date:t})),setTime:t=>e(()=>({time:t})),setTimes:t=>e(()=>({times:t})),clear:()=>e(()=>({time:null,times:null,date:null,participants:[],option:null,product:null,minPerson:1,maxPer
1son:99,droppedHour:null}))}));e.s(["bookingDateFormat",0,"DD/MM/YYYY","useBookingStore",0,c],846343)}]);
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.