1try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`516d367e-7df7-4ec2-b434-5a9ef595fa05`,e._sentryDebugIdIdentifier=`sentry-dbid-516d367e-7df7-4ec2-b434-5a9ef595fa05`)}catch{}import{o as e}from"./chunk-DzYj8TJc.js";import{t}from"./react-Dw1lVNpL.js";import{t as n}from"./link-72NVTTDb.js";import{t as r}from"./jsx-runtime-Dvvuvk75.js";import{t as i}from"./useSuspenseQuery-ChuEKGtV.js";import{t as a}from"./useTranslation-CC9TPLqf.js";import{t as o}from"./button-CfrFMxIe.js";import{L as s}from"./md-BuK_mUvP.js";import{t as c}from"./useCurrentMarket-EAaAWlAf.js";import{u as l}from"./seo-DEBphSBJ.js";import{t as u}from"./segment-Pr0-jR_E.js";import{t as d}from"./hairline-39G4Z2x6.js";import{t as f}from"./useCachedUtmParams-CGc1N2F_.js";import{t as p}from"./useCurrentStore-Sv2Rg0TE.js";import{t as m}from"./proxy-BQAg6iLL.js";import{t as h}from"./market-DOihVogE.js";import{t as g}from"./useGeoDisplayName-BpeSte-A.js";import{t as _}from"./queryOverride-DxXuCQhb.js";import{t as v}from"./StoresOverviewSection-xAeHJQgP.js";import{a as y,i as b,n as x,o as S,r as C,t as w}from"./PrivateEventsRevampSections-B-YoPpkd.js";import{C as T,T as E,w as ee}from"./index-mkhJlqBh.js";var D=e(t()),O=r();function k(){let{privateEventDataGeo:e,privateEventDataNoMarket:t,marketStores:r,overviewStore:k,howToFindUsText:A,googleReviews:j,pageLevel:M}=T.useLoaderData(),N=e||t,{marketGroupUrl:P,marketUrl:F,market:I}=c(),{storeUrl:L,store:R,urlStore:z}=p(),B=g(),{i18n:V}=a(`meta`),{t:H}=a(`privateEvent`),U=R?.locationName??h(I?.newName??I?.name),W=z?z.locationName??z.name:B,G=h(I?.newName??I?.name),K=M===`root`?E(P,F):null,q=f(),[J,Y]=(0,D.useState)(!0),{data:X}=i({..._({id:`private-events-titles`,locale:V.contentfulLocale}),select:e=>e?.data?.find(e=>l(e?.marketList,I,F))}),Z=X,Q=N?.brochuresCollection?.items,te=ee(N,M);(0,D.useEffect)(()=>{F?u.partiesAndEvents.visitPage({market:F,store:L}):u.partiesAndEvents.visitPage({market:void 0,store:L})},[F,I,L,q.utm_campaign,q.utm_content,q.utm_source]);let $=()=>{u.partiesAndEvents.clickedPlanACustomEvent({market:F||void 0,store:L,call:`sticky footer`})};return(0,O.jsx)(`div`,{"data-theme":`dark`,className:`tailwind-scope font-(family-name:--font-gordita) w-full h-full`,children:(0,O.jsxs)(`div`,{className:`mb-8 **:data-[slot='sheet-overlay']:bg-red-400!`,children:[(0,O.jsx)(`div`,{className:`bg-surface-base h-18 lg:h-26`}),(0,O.jsxs)(`div`,{className:`h-full w-full max-w-284 mx-auto lg:overflow-x-hidden mb-12`,children:[N&&(0,O.jsx)(y,{privateEventData:N,marketName:M===`root`?void 0:W,onInquiryCtaVisibilityChange:Y,rememberedMarketAction:K&&G?(0,O.jsx)(`div`,{className:`flex justify-center mt-4 w-full`,children:(0,O.jsx)(o,{fullWidth:!0,color:`secondary`,variant:`tonal`,size:`medium`,asChild:!0,endIcon:(0,O.jsx)(s,{className:`w-6 h-6`}),children:(0,O.jsx)(n,{to:`/{-$marketGroup}/{-$market}/{-$store}/private-events`,params:K,children:H(`hero.continueWithMarket`,{marketName:G})})})}):void 0}),(0,O.jsx)(v,{store:k,stores:r,googleReview:j,howToFindUsText:A,selectLocationTo:`/{-$marketGroup}/{-$market}/{-$store}/private-events`,hideSecondaryCtas:!0,stickyPrimaryCta:!!k,suppressStickyPrimaryCta:!!(N&&J),primaryCta:k?(0,O.jsx)(o,{onClick:$,className:`text-wrap`,asChild:!0,children:(0,O.jsx)(n,{to:`/private-events/inquiry`,children:H(`hero.openFormButton`)})}):void 0}),N&&(0,O.jsxs)(`div`,{className:`flex flex-col gap-y-12 lg:gap-y-24 px-4`,children:[(0,O.jsx)(d,{className:`mt-4`,double:!0}),te.map((e,t)=>M!==`market`&&e===`featuredPackages`?(0,O.jsx)(b,{title:Z?.data?.featuredTitle,call:`private event`,packages:N.packagesCollection?.items??[]},`featured-packages-${t}`):e===`brochures`&&U&&Q&&Q.length>0?(0,O.jsx)(w,{title:Z?.data?.brochureTitle,brochures:Q},`brochures-${t}`):e===`explore`&&U?(0,O.jsx)(C,{title:Z?.data?.exploreTitle,privateEventData:N,marketName:U},`explore-${t}`):e===`whySandbox`?(0,O.jsx)(S,{title:Z?.data?.whySandboxTitle,privateEventData:N},`why-sandbox-${t}`):e===`occasion`?(0,O.jsx)(x,{title:Z?.data?.occasionTitle,events:N.eventsCollection?.items??[]},`occasion-${t}`):null)]})]}),!k&&!J&&(0,O.jsx)(m.div,{"data-testid":`sticky-primary-cta`,initial:{y:`100%`},animate:{y:`0%`},transition:{type:`spring`,stiffness:300,damping:30},className:`fixed bottom-0 inset-x-0 z-15 flex justify-center px-4 pb-[max(1rem,env(safe-area-inset-bottom))]`,children:(0,O.jsx)(o,{onClick:$,className:`text-wrap shadow-base`,asChild:!0,children:(0,O.jsx)(n,{to:`/private-events/inquiry`,children:H(`hero.openFormButton`)})})})]})})}export{k as component};
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.