1import{u as f,r as d,b as j,j as t,N as b}from"./index-s4AWfwfl.js";import{L as o,g as c,S as y,b as v,a as N,c as E,d as w}from"./SEOHead-B78vuQKS.js";import{a as k,b as _}from"./useEvents-CxvywYI6.js";import{u as C}from"./useBrandContent-fpIj2Nkh.js";import{a as S}from"./brandImages-4ijDuayY.js";import{H as I,Q as L,I as B,D,C as P,G as F,S as H,F as T}from"./FooterCTA-BdM9ZQq1.js";import{m as x}from"./client-BtMPji0m.js";import{E as V}from"./external-link-DmesWtEn.js";import"./index-l0KnzE-2.js";import"./useQuery-bobGdLxk.js";import"./brandPhotoFolders-Czad84dy.js";import"./imageUtils-DN2Qg4kP.js";import"./badge-DS7doUDO.js";import"./zap-034kkdr0.js";import"./arrow-left-BExkCfDb.js";import"./map-pin-DTj0p4SW.js";import"./tag-B2-XTA6G.js";import"./format--YuNkvsf.js";import"./clock-_wN08HCh.js";import"./circle-check-big-Bz34wUVv.js";import"./star-B3gBBOfb.js";import"./chevron-down-DZBOcSk1.js";import"./sparkles-LdEWeNgA.js";import"./party-popper-fhqsfH2E.js";import"./car-AVxtXJl0.js";import"./map-COFny0cg.js";import"./gift-i8oVsKPW.js";import"./chevron-left-Qd0GMIiB.js";import"./chevron-right-rpoNuLFk.js";function pe(){const{id:l}=f(),{data:e,isLoading:p}=k(l||""),{data:a}=_(l||""),{getBrand:h,isLoading:u}=C(),m=d.useMemo(()=>e?S(e.brand):[],[e==null?void 0:e.brand]);if(d.useEffect(()=>{e&&j("ViewContent",{content_name:e.title,content_category:e.brand,content_ids:[e.id],content_type:"product",city:e.city,state:e.state,value:e.sale_price??e.price,currency:"USD"})},[e==null?void 0:e.id]),p||u)return t.jsx(o,{children:t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin mx-auto mb-3"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading event..."})]})})});if(!e)return t.jsx(o,{children:t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsxs("div",{className:"text-center",children:[t.jsx("h1",{className:"text-3xl font-black mb-2",children:"Event Not Found"}),t.jsx("p",{className:"text-muted-foreground",children:"This event doesn't exist or has been removed."})]})})});const s=h(e.brand),r=s==null?void 0:s.colors.primary,i=!!a&&(a.sections.length>0||a.gallery_images.length>0);if(e&&s){const n=c(e);return t.jsx(b,{to:n,replace:!0})}const g=[{name:"Brands",path:"/brands"},{name:(s==null?void 0:s.name)||e.brand,path:`/brands/${e.brand}`},{name:e.city,path:c(e)}];return t.jsxs(o,{children:[t.jsx(y,{title:v(e,s),description:N(e,s),canonicalPath:c(e),ogImage:e.hero_image||void 0,schemas:[E(e,s),w([{name:"Home",path:"/"},...g])]}),t.jsx(I,{event:e,brand:s,content:a,brandColor:r}),t.jsx("section",{className:"py-10 md:py-16 bg-background overflow-x-clip",children:t.jsxs("div",{className:"container mx-auto px-4 max-w-6xl overflow-hidden",children:[t.jsx("div",{className:"mb-10 md:mb-16",children:t.jsx(L,{event:e,brand:s,brandColor:r})}),t.jsxs("div",{className:"grid lg:grid-cols-3 gap-10",children:[t.jsxs("div",{className:"lg:col-span-2 min-w-0 space-y-10 md:space-y-14",children:[t.jsxs(x.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-3xl font-black tracking-tight mb-4",children:"The Experience"}),t.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:e.short_description||(s==null?void 0:s.description)})]}),t.jsx(B,{sections:i?a.sections:[],brandColor:r,brand:e.brand,event:e}),i&&t.jsx(D,{sections:a.sections,brandColor:r,brandSecondary:s==null?void 0:s.colors.secondary,brand:e.brand}),i&&t.jsx(P,{sections:a.sections,brandColor:r}),m.length>0&&t.jsx(F,{images:m,brandColor:r}),!i&&s&&t.jsxs(x.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[t.jsx("h2",{className:"text-3xl font-black tracking-tight mb-4",children:"What to Expect"}),t.jsx("ul",{className:"space-y-3",children:s.tips.map(n=>t.jsxs("li",{className:"flex items-center gap-3 text-muted-foreground",children:[t.jsx("span",{className:"h-2 w-2 rounded-full flex-shrink-0",style:{backgroundColor:r}}),n]},n))})]}),e.location_detail_url&&t.jsxs("a",{href:e.location_detail_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-sm text-muted-foreground
1/60 hover:text-muted-foreground transition-colors",children:["View original brand page ",t.jsx(V,{className:"ml-1.5 h-3.5 w-3.5"})]})]}),t.jsx("div",{className:"min-w-0",children:t.jsx(H,{event:e,brand:s,content:a,brandColor:r})})]})]})}),t.jsx(T,{event:e,brand:s,brandColor:r})]})}export{pe as default};
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.