1import{j as s}from"./@wbk/hooks-FtCTMeyH.js";import{e as b,r as g}from"./vendor-Cc9w-i99.js";import{u as w}from"./@wbk/analytics-B-_ZPhJq.js";import{a$ as j,b5 as y,b6 as N,aS as _,b7 as C,aU as v,b8 as P,b9 as E,aW as L,aX as S,a3 as T}from"./@wbk/contentful-C-wfS48z.js";import{F as k,E as A,J as R,e as F,S as J,d as M}from"./index-DZ2Htu0z.js";import{p as $}from"./@wbk/svg-Bua7FxzL.js";import{u as D}from"./react-i18next-Dxy0wzdl.js";import{p as I}from"./events-BYPJoZJl.js";import"./@wbk/logger-DfNVpG3P.js";import"./@wbk/ui-DZdD23Ta.js";import"./@wbk/config-DuwrGB8a.js";import"./react-hook-form-D_m77UuM.js";import"./@wbk/auth-Djoddyo0.js";import"./@wbk/queue-8-09eRJS.js";import"./@wbk/api-DFKMxA3e.js";import"./@wbk/currency-BxlCDaIM.js";import"./@wbk/ticketing-Og7zkUfp.js";import"./@wbk/payment-cL5x8D1N.js";import"./@wbk/flights-Cjxxns74.js";import"./@wbk/hotels-CFdSoV_6.js";import"./@smc/ads-C1pDiBF5.js";import"./i18next-http-backend-C2uFdLra.js";import"./i18next-Ce0fiPMx.js";import"./i18next-browser-languagedetector-Bv2FoO1s.js";import"./react-helmet-BcOPeyN0.js";import"./@wbk/auction-CsNezADS.js";const W=({event:t})=>{var r,l,c,n,i,d;const{t:o}=D("event");return s.jsxs(s.Fragment,{children:[t.description&&s.jsxs("div",{className:"space-y-2 border-white/20","data-testid":"event-description",children:[s.jsx("h2",{className:"text-xl",children:o("event:about")}),s.jsx(j,{text:t.description,btnProps:{"aria-label":`Read More About ${t.title}`},markdown:typeof t.description=="string"})]}),t.specialPromotion&&s.jsx("div",{className:"space-y-4 border-b border-white/20 pb-6",children:s.jsx(y,{text:t.specialPromotion})}),((l=(r=t.contentListCollection)==null?void 0:r.items)==null?void 0:l.length)&&s.jsx("div",{className:"space-y-8 border-b border-white/20 pb-6",children:(n=(c=t.contentListCollection)==null?void 0:c.items)==null?void 0:n.map(e=>{var a,m;return s.jsxs("div",{className:"space-y-2",children:[e.title&&s.jsx("h2",{className:"text-xl",children:e.title}),s.jsx("ul",{className:"space-y-1",children:(m=(a=e.qaListCollection)==null?void 0:a.items)==null?void 0:m.map((p,x)=>s.jsxs("li",{className:"flex items-start gap-2",children:[s.jsx($,{className:"text-success mt-0.5 h-5 w-5 shrink-0"}),s.jsx("p",{children:p.title})]},x))})]},e.id)})}),t.richTerms&&s.jsxs("div",{className:"space-y-4 border-b border-white/20 pt-6",children:[s.jsx("h2",{className:"text-xl",children:o("common:nav.terms_and_conditions")}),s.jsx(j,{text:t.richTerms,btnProps:{"aria-label":"Read More About Terms"}})]}),!!((d=(i=t==null?void 0:t.sponsorsCollection)==null?void 0:i.items)!=null&&d.length)&&s.jsx("div",{className:"space-y-4 border-t border-white/20 py-6",children:s.jsx(N,{sponsors:t.sponsorsCollection})})]})},xs=()=>{var p,x,u,h,f;const{slug:t,lang:o,countryCode:r,cityCode:l,category:c}=b(),{whereWithFilters:n}=_({slug:t,countryCode:r,cityCode:l,category:c}),{data:i,isLoading:d}=C({lang:o,limit:1,where:n}),e=i==null?void 0:i.data,a=i==null?void 0:i.rateLimited,{viewItemEvent:m}=w();return g.useEffect(()=>{e&&m({event:I(e)})},[e]),d?s.jsx(k,{}):!e||a?s.jsx(A,{isRateLimit:a}):s.jsxs(s.Fragment,{children:[s.jsx(R,{data:F(e,o)}),s.jsx(J,{title:((p=e.seo)==null?void 0:p.title)||e.title,description:(x=e.seo)==null?void 0:x.description,image:((h=(u=e.seo)==null?void 0:u.image)==null?void 0:h.url)||e.image11.url,canonical:M(e,o)}),s.jsx(v,{event:e}),s.jsxs("section",{className:"container flex flex-col-reverse gap-6 py-8 lg:flex-row",children:[s.jsxs("div",{className:"grow space-y-4",children:[s.jsxs("div",{className:"border-body-level-1 flex flex-col flex-wrap gap-6 rounded-xl border p-4 sm:flex-row sm:gap-4 [&>div]:sm:basis-60",children:[s.jsx(P,{schedule:e.schedule,className:"grow"}),s.jsx(E,{location:e.location,isOnline:e.isStreamingEvent,className:"grow"})]}),s.jsx(W,{event:e})]}),s.jsx("aside",{className:"mx-auto w-full shrink-0 grow space-y-6 lg:max-w-md",children:s.jsx(L,{event:e})})]}),s.jsx(S,{id:(f=e.location)!=null&&f.countryCode?`webook_event_spotlight_${e.location.countryCode}`:void 0}),s.jsx(T,{})]})};export{xs 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.