PageSourceSearch

https://tickets.hockenheimring.de/web3/assets/B5ockBhx.js

js hockenheimring.de collected 2026-10-02 10:09:20 UTC 69,418 bytes, 5 lines download raw bytes

1import{a as e,t}from"./CNC7AqOf.js";import{B as n,H as r,J as i,N as a,V as o,_ as s,a as c,c as l,f as u,l as d,m as f,q as p,r as m,t as h,y as g}from"./C5vpfdwm.js";import{A as _,Bn as v,In as y,It as b,K as x,Kn as S,Ln as ee,Lt as C,Nn as w,Pt as T,R as E,T as te,Vt as ne,bn as D,et as O,jn as re,kn as k,tt as A,wn as j}from"./DKDa9YM2.js";import{l as ie}from"./wFfqhUgw2.js";import{n as M,t as ae}from"./C5KgTtL52.js";import{t as N}from"./DW3OcRNq2.js";import{a as oe,l as se}from"./jHVO_sp_2.js";import{J as ce,p as le,s as P}from"./BDIca4GA2.js";import{n as F,t as I}from"./DTbR38vj2.js";import{x as L}from"./IGt-hQ4R2.js";import{i as ue,r as de,t as fe}from"./BM5CP2Zy.js";import{c as R,l as z,s as pe,u as me}from"./_x28aXEo.js";import{t as he}from"./NCpowcsI.js";import{a as ge,n as _e,o as ve,s as ye,t as B}from"./CBJUcFzp.js";import{t as be}from"./CQCRFSbp.js";import{a as V,i as xe,n as Se,o as Ce,r as we,t as Te}from"./ClroMBXj.js";import{c as Ee,n as De,t as Oe}from"./B4SjrSKR.js";import{n as ke}from"./BKi41dk0.js";import{S as Ae,a as je,l as Me,p as Ne,s as Pe,t as Fe}from"./CXeVQBR0.js";import{t as H}from"./DhxsNx-p.js";import{c as U,f as Ie,i as W,n as Le,o as Re,p as ze,r as Be,s as Ve,t as He}from"./CfaYPDlB.js";import{n as Ue,t as We}from"./C0r93t68.js";import{n as Ge,t as Ke}from"./B-t2pfWw.js";import{t as G}from"./BHPjIxf6.js";import{r as K}from"./BhkEIeUi2.js";var qe=L(`circle-user-round`,[[`path`,{d:`M18 20a6 6 0 0 0-12 0`,key:`1qehca`}],[`circle`,{cx:`12`,cy:`10`,r:`4`,key:`1h16sb`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Je=L(`clock-8`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`polyline`,{points:`12 6 12 12 8 14`,key:`tmc9b4`}]]);function Ye(e,t,n){let r=Me(e,n?.in);return r.setTime(r.getTime()+t*Ne),r}var q=e(M(),1);function Xe(e,t=new Date){if(!e.useTimeSlots||!e.timeSlots?.length)return[];let n=new g(e.start,e.timezone);return e.timeSlots.map(({startTime:t})=>new Date(g.tz(e.timezone,n.getFullYear(),n.getMonth(),n.getDate(),t.hour,t.minute))).filter(e=>e.getTime()>t.getTime()).sort((e,t)=>e.getTime()-t.getTime())}var J=ae();function Ze(e,t){let[n,r]=e.split(`-`).map(Number),i=new g(n,r-1,15,t);return{monthStart:Ie(i).toISOString(),monthEnd:ze(i).toISOString()}}var Y=e=>{let t=(0,q.useMemo)(()=>A(),[]),n=le(),{t:r}=N([`event`]),{event:i}=e,a=i.timezone||e.seller.localeSettings?.timezone,[o,c]=P(`eventId`,{history:`replace`}),l=s({tz:a}),u=l.getTimezoneOffset(),[d,f]=(0,q.useState)(void 0),[p,m]=(0,q.useState)(``),[h,_]=(0,q.useState)(void 0),[v,b]=(0,q.useState)(void 0),x=(0,q.useRef)(!1),ee=(0,q.useRef)(i._id),C=(0,q.useRef)(null),w=(0,q.useRef)(o),T=(0,q.useRef)(o);ee.current!==i._id&&(ee.current=i._id,f(void 0),m(``),_(void 0),b(void 0),x.current=!1,C.current=null,w.current=o,T.current=o);let E=(0,q.useRef)(e.onRecurrenceSelected);E.current=e.onRecurrenceSelected;let te=ce(e=>{E.current(e)}),ne=o!==C.current&&o!==T.current;T.current=o,ne&&(w.current=o,x.current=!1,f(void 0),m(``),_(void 0),b(void 0));let D=S({queryKey:[`recurrentEventInit`,e.seller._id,e.event._id,e.underShopId,w.current],queryFn:async()=>{let n=w.current;if(n){let r=await t.events.getPublicListing(n,{underShopId:e.underShopId});if(r.ok&&new Date(r.value.end)>new Date)return r.value}let r=new g(new Date,a);return(await t.events.getPublicListings({sellerId:e.seller._id,rootId:e.event._id,underShopId:e.underShopId,endMin:r.toISOString(),top:1}))[0]??null},staleTime:1/0}),O=(0,q.useMemo)(()=>{if(!D.data)return;let e=l.getTimezoneOffset({at:D.data.start});return Ye(new Date(D.data.start),e)},[D.data,l]);(0,q.useEffect)(()=>{O&&!v&&b(H(O,`yyyy-MM`))},[O,v]);let re=(0,q.useCallback)(n=>({queryKey:[`recurrentEvents`,e.seller._id,e.event._id,e.underShopId,n],queryFn:async()=>{let{monthStart:r,monthEnd:i}=Ze(n,a);return t.events.getPublicListings({sellerId:e.seller._id,rootId:e.event._id,underShopId:e.underShopId,endMin:r,startMax:i})},staleTime:1/0}),[e.seller._id,e.event._id,e.underShopId,a,t]),k=S({...re(v??``),enabled:!!v}),j=k.data;(0,q.useEffect)(()=>{if(!v)return;let e=Ie(new Date),t=new Date(v+`-15`);[-2,-1,1,2].map(e=>Pe(t,e)).filter(t=>t>
1=e).forEach(e=>{let t=H(e,`yyyy-MM`);n.prefetchQuery(re(t))})},[v,n,re]),(0,q.useEffect)(()=>{if(!D.data||x.current||!j)return;let e=j.find(e=>e._id===D.data._id);if(e){let t=l.getTimezoneOffset({at:e.start}),n=Ye(new Date(e.start),t),r=H(n,`yyyy-MM-dd`),i=j.filter(e=>{let t=l.getTimezoneOffset({at:e.start});return H(Ye(new Date(e.start),t),`yyyy-MM-dd`)===r});f(n),_(i),e.saleStatus===z.onSale&&(m(e._id),te(e)),x.current=!0}},[D.data,j,l,o,te]);let ie=(0,q.useCallback)(e=>{b(H(e,`yyyy-MM`))},[]),M=(0,q.useCallback)(()=>{D.error?D.refetch():k.refetch()},[D,k]);return D.isLoading?(0,J.jsx)(`div`,{className:`mt-8 flex justify-center items-center`,children:(0,J.jsx)(y,{className:`size-6 animate-spin`})}):D.error?(0,J.jsx)(`div`,{className:`mt-3 mb-1 px-4 flex flex-col items-center gap-4`,children:(0,J.jsxs)(`div`,{role:`alert`,className:`flex w-full items-center justify-center gap-2 text-sm text-destructive bg-destructive/10 rounded-md px-3 py-2`,children:[(0,J.jsx)(`span`,{children:r(`failedToLoadDates`)}),(0,J.jsx)(`button`,{type:`button`,onClick:M,className:`underline hover:no-underline font-medium cursor-pointer`,children:r(`retryFetchingDates`)})]})}):O?(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(`div`,{className:`flex flex-col space-y-0`,children:[(0,J.jsx)(`div`,{className:`p-4`,children:(0,J.jsx)(et,{selectedItem:p,selectedDate:d,defaultMonth:O,viewedMonth:v,event:i,events:j??[],timezone:a,isLoading:k.isLoading,isFetchingMore:k.isFetching&&!k.isLoading,fetchError:!!k.error,onRetry:M,onItemClick:(t,n,r)=>{m(t),e.onRecurrenceSelected(n);let i=r?.id??null;C.current=i,c(i)},onSelectedDateChange:(e,t)=>
1{f(e),_(t)},eventsForSelectedDate:h,onMonthChange:ie},H(O,`yyyy-MM`))}),u!==0&&(0,J.jsx)(`div`,{className:`mt-4 px-4 text-xs w-full text-center text-muted-foreground`,children:r(`timeZoneNotice`)})]})}):(0,J.jsx)(`p`,{className:`text-sm mt-3 mb-1 flex justify-center items-center text-muted-foreground`,children:r(`noDatesFound`)})};Y.LoadingSpinner=function(){return(0,J.jsx)(`div`,{className:`mt-8 flex justify-center items-center`,children:(0,J.jsx)(y,{className:`size-6 animate-spin`})})};function X(e){return H(e,`yyyy-MM-dd`)}function Qe(e,t){let n=t.get(X(e));if(!n?.length)return;if(n.every(e=>!e.availabilityIndicator))return n.some(e=>e.saleStatus===z.onSale)?R.green:void 0;let r=n.filter(e=>e.saleStatus===z.onSale);if(r.length)return r.some(e=>e.availabilityIndicator===R.green)?R.green:r.some(e=>e.availabilityIndicator===R.yellow)?R.yellow:R.red}var $e=(0,q.forwardRef)(function({day:e,eventsByDay:t,modifiers:n,...r},i){let{t:a}=N(`common`),o=(0,q.useRef)(null),s=t.has(X(e.date)),c=Qe(e.date,t),l=`aria-desc_`+X(e.date);return(0,q.useEffect)(()=>{n.focused&&o.current?.focus()},[n.focused]),(0,J.jsxs)(`button`,{ref:e=>{o.current=e,typeof i==`function`?i(e):i&&(i.current=e)},...r,"data-date":X(e.date),className:K(r.className,`flex flex-col gap-1`),"aria-describedby":l,children:[(0,J.jsx)(`span`,{className:K(!s&&!n.selected&&`text-light`),children:e.date.getDate()}),(0,J.jsx)(`span`,{className:K(`rounded-full size-2`,{"ring-1 ring-white":!!c&&n.focused,"bg-[#47b174]":c===R.green,"bg-[#fec043]":c===R.yellow,"bg-[#f05238]":c===R.red})}),(0,J.jsx)(`span`,{id:l,className:`sr-only`,children:c==null?a(`availabilityIndicator.noTicketsAvailable`):c===R.green?a(`availabilityIndicator.ticketsAvailable`):c===R.yellow?a(`availabilityIndicator.fewTicketsAvailable`):a(`availabilityIndicator.almostSoldOut`)})]})});function et({events:e,selectedItem:t,event:n,onItemClick:r,...i}){let{t:o}=N([`event`]),c=s({tz:n.timezone}),l=(0,q.useMemo)(()=>je(new g(new Date,i.timezone)),[i.timezone]),u=(0,q.useMemo)(()=>{let t=new Map;return e.forEach(e=>{let n=c.getTimezoneOffset({at:e.start}),r=X(Ye(e.start,n));t.has(r)||t.set(r,[]),t.get(r).push(e)}),t},[e,c]),d=i.selectedDate,f=(0,q.useCallback)(e=>{if(!e||d&&a(e,d))return;let t=H(e,`yyyy-MM`);if(i.viewedMonth&&t!==i.viewedMonth)return;let n=u.get(X(e)),o=n?.find(e=>e.saleStatus===z.onSale),s=n?.find(e=>new Date(e.end)>new Date),c=s?{id:s._id}:null;r?.(o?._id??``,o,c),i.onSelectedDateChange?.(e,n)},[d,u,r,i.viewedMonth]),p=d&&(i.eventsForSelectedDate??u.get(X(d))),m=(0,q.useMemo)(()=>function(e){return(0,J.jsx)($e,{...e,eventsByDay:u})},[u]);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-4 relative`,children:[(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(He,{mode:`single`,startMonth:l,defaultMonth:i.defaultMonth,disabled:{before:l},selected:d,onSelect:f,onMonthChange:i.onMonthChange,components:{DayButton:m},fixedWeeks:!1,className:`w-full max-w-[400px] md:max-w-full mx-auto`,classNames:{[W.Month]:`flex flex-col gap-4 w-full`,[W.Weekdays]:`flex mb-2 justify-between`,[W.Weekday]:`text-muted-foreground flex-1 font-normal text-xs text-center`,[W.Week]:`flex w-full justify-between`,[W.Day]:`relative p-0 text-center text-sm focus-within:relative focus-within:z-20 flex-1 aspect-square`,[W.DayButton]:K(`inline-flex items-center justify-center text-sm font-medium transition-colors cursor-pointer rounded-md`,`w-full h-full p-0`,`disabled:cursor-not-allowed disabled:hover:bg-transparent`),[W.PreviousMonthButton]:K(`size-10 cursor-pointer bg-transparent p-0`,`absolute left-0 top-0`,`inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors`,`bg-foreground
1/5`,`disabled:pointer-events-none disabled:opacity-50`,`aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed`,`after:absolute after:inset-[-2px] after:content-['']`),[W.NextMonthButton]:K(`size-10 cursor-pointer bg-transparent p-0`,`absolute right-0 top-0`,`inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors`,`bg-foreground/5`,`disabled:pointer-events-none disabled:opacity-50`,`aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-disabled:cursor-not-allowed`,`after:absolute after:inset-[-2px] after:content-['']`),[Be.selected]:`bg-foreground/5 dark:bg-foreground/10 text-foreground rounded-md`,[Le.today]:``}}),(0,J.jsx)(`div`,{role:`status`,"aria-live":`polite`,className:`sr-only`,children:(i.isLoading||i.isFetchingMore)&&(0,J.jsx)(`span`,{children:o(`loadingMoreDates`)})}),i.isLoading&&(0,J.jsx)(`div`,{"aria-hidden":!0,className:`absolute top-10 left-0 w-full h-[calc(100%-40px)] flex justify-center items-center bg-background/50`,children:(0,J.jsx)(y,{className:`size-6 animate-spin`})})]}),i.fetchError&&(0,J.jsxs)(`div`,{role:`alert`,className:`flex items-center justify-center gap-2 text-sm text-destructive bg-destructive/10 rounded-md px-3 py-2`,children:[(0,J.jsx)(`span`,{children:o(`failedToLoadDates`)}),(0,J.jsx)(`button`,{type:`button`,onClick:i.onRetry,className:`underline hover:no-underline font-medium cursor-pointer`,children:o(`retryFetchingDates`)})]}),d&&(0,J.jsxs)(`div`,{className:`w-full max-w-[400px] md:max-w-full mx-auto`,children:[(0,J.jsx)(`p`,{className:`text-sm font-medium text-muted-foreground mb-2`,children:c.format(`date-weekday-long`,d)}),p&&p.length>0?(0,J.jsx)(nt,{events:p,selectedItem:t,rootEvent:n,onItemClick:r},X(d)):(0,J.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:o(`noDatesFound`)})]})]})}function tt(e){return e?e.scrollHeight>e.clientHeight&&getComputedStyle(e).overflowY!==`visible`?e:tt(e.parentElement):null}function nt({events:e,selectedItem:t,rootEvent:n,onItemClick:r}){let{t:a}=N([`event`]),o=(0,q.useRef)(null),[s,c]=(0,q.useState)(!1),l=(0,q.useCallback)(()=>{let e=tt(o.current);e&&c(e.scrollHeight>e.clientHeight+e.scrollTop+40)},[]);return(0,q.useEffect)(()=>{let e=tt(o.current);if(!e)return;let t=requestAnimationFrame(l);return e.addEventListener(`scroll`,l),window.addEventListener(`resize`,l),()=>{cancelAnimationFrame(t),e.removeEventListener(`scroll`,l),window.removeEventListener(`resize`,l)}},[l,e]),(0,J.jsxs)(`div`,{ref:o,className:`relative w-full max-w-[400px] md:max-w-full mx-auto`,children:[(0,J.jsx)(Ve,{className:`flex flex-col gap-2`,value:t,onValueChange:t=>{let n=e.find(e=>e._id===t);if(n){let e=new Date(n.end)>new Date?{id:n._id}:null;r?.(t,n,e)}},children:e.map(e=>(0,J.jsx)(rt,{event:e,rootEvent:n},e._id))}),s&&(0,J.jsxs)(`button`,{type:`button`,onClick:()=>{tt(o.current)?.scrollBy({top:150,behavior:`smooth`})},className:`sticky bottom-0 left-1/2 -translate-x-1/2 mt-2 bg-blue-500 text-white text-xs font-medium px-3 py-1 rounded-full flex items-center gap-1 shadow-md hover:bg-blue-600 transition-colors mx-auto`,children:[a(`moreTimes`),(0,J.jsx)(i,{className:`size-3`})]})]})}var rt=e=>{let{t,i18n:n}=N([`event`]),r=s({tz:e.event.timezone}),i=Xe(e.event),a=i[0]??new Date(e.event.start),o=r.format(`time`,a),c=i.length>1?t(`event:fromTime`,{time:o}):o,l=e.event.saleStatus!==z.onSale;return(0,J.jsxs)(Re,{value:e.event._id,disabled:l,className:K(`group flex items-center justify-between min-h-11 gap-4 px-4 py-2 rounded-md text-left text-sm font-medium`,`data-[state=checked]:bg-foreground
1/5 dark:data-[state=checked]:bg-foreground/10 data-[state=checked]:text-foreground`,l?`cursor-default opacity-70`:`cursor-pointer`),children:[(0,J.jsx)(`span`,{children:c}),(0,J.jsxs)(`span`,{className:`flex flex-col items-end gap-1`,children:[e.event.saleStatus===z.onSale&&(0,J.jsxs)(J.Fragment,{children:[!e.event.styleOptions?.hideStartingPrice&&(0,J.jsxs)(`span`,{children:[t(`from`),` `,x(n.language,e.event.startingPrice,e.event.currency)]}),e.event.availabilityIndicator&&(0,J.jsx)(pe,{indicator:e.event.availabilityIndicator})]}),e.event.saleStatus===z.soldOut&&(0,J.jsx)(`span`,{children:t(`saleStatus.soldOut`)}),e.event.saleStatus===z.past&&(0,J.jsx)(`span`,{children:t(`saleStatus.past`)}),e.event.saleStatus===z.planned&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`span`,{children:t(`saleStatus.planned`)}),e.rootEvent.showCountdown&&(0,J.jsx)(V,{until:new Date(e.event.sellStart),style:`short`})]})]})]})};function it({videoId:e,title:t,className:n}){let{t:i}=N([`page`]),[a,o]=(0,q.useState)(!1),{ref:s,inView:c}=r({threshold:0,triggerOnce:!0}),l=Ee(e=>e.hasAccepted(Oe.MARKETING)),u=Ee(e=>e.writeConsent),{showCookieSettings:d}=ke(),f=t||i(`event.video.title`),p=`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`,m=`https://www.youtube-nocookie.com/embed/${e}?rel=0&modestbranding=1&iv_load_policy=3&color=white&playsinline=1&autoplay=1`,h=()=>{o(!0)};return l?(0,J.jsxs)(`div`,{ref:s,className:F(`relative w-full aspect-video rounded-lg overflow-hidden bg-gray-100`,n),children:[!a&&c&&
1(0,J.jsxs)(`button`,{onClick:h,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),h())},className:`absolute inset-0 w-full h-full group cursor-pointer border-0 p-0 bg-transparent`,"aria-label":i(`event.video.playVideo`,{title:f}),type:`button`,children:[(0,J.jsx)(`img`,{src:p,alt:``,className:`absolute inset-0 w-full h-full object-cover`,loading:`lazy`,onLoad:t=>{let n=t.target;n.naturalWidth<=120&&n.src.includes(`maxresdefault`)&&(n.src=`https://i.ytimg.com/vi/${e}/hqdefault.jpg`)}}),(0,J.jsx)(`div`,{className:`absolute inset-0 bg-black/20 transition-opacity group-hover:bg-black/30`}),(0,J.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,J.jsx)(`div`,{className:`w-16 h-16 md:w-20 md:h-20 bg-red-600 rounded-full flex items-center justify-center transition-all group-hover:bg-red-700 group-hover:scale-110 group-focus:bg-red-700 group-focus:scale-110 shadow-lg`,children:(0,J.jsx)(`svg`,{className:`w-8 h-8 md:w-10 md:h-10 text-white ml-1`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,J.jsx)(`path`,{d:`M8 5v14l11-7z`})})})}),(0,J.jsx)(`div`,{className:`absolute bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-black/60 to-transparent`,children:(0,J.jsx)(`span`,{className:`text-white text-sm font-medium drop-shadow-md`,children:f})})]}),!c&&(0,J.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center bg-gray-200`,children:(0,J.jsx)(`div`,{className:`w-16 h-16 rounded-full bg-gray-300 flex items-center justify-center`,children:(0,J.jsx)(`svg`,{className:`w-8 h-8 text-gray-500`,viewBox:`0 0 24 24`,fill:`currentColor`,"aria-hidden":`true`,children:(0,J.jsx)(`path`,{d:`M8 5v14l11-7z`})})})}),a&&(0,J.jsx)(`iframe`,{src:m,title:f,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerPolicy:`strict-origin-when-cross-origin`,allowFullScreen:!0,className:`absolute inset-0 w-full h-full border-0`,sandbox:`allow-scripts allow-same-origin`})]}):(0,J.jsxs)(`div`,{className:F(`relative w-full aspect-video rounded-lg overflow-hidden bg-gradient-to-br from-gray-50 to-gray-100 dark:from-gray-900 dark:to-gray-800`,n),children:[(0,J.jsx)(`div`,{className:`absolute inset-0 opacity-[0.015] pointer-events-none`,style:{backgroundImage:`
2              radial-gradient(circle at 20% 50%, transparent 0%, rgba(0, 0, 0, 0.1) 100%),
3              radial-gradient(circle at 80% 80%, transparent 0%, rgba(0, 0, 0, 0.1) 100%),
4              radial-gradient(circle at 40% 20%, transparent 0%, rgba(0, 0, 0, 0.1) 100%)
5            `,backgroundSize:`200px 200px, 300px 300px, 250px 250px`,backgroundPosition:`0 0, 50px 50px, 100px 25px`}}),(0,J.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center p-8`,children:(0,J.jsxs)(`div`,{className:`flex flex-col items-center gap-4 text-center max-w-sm`,children:[(0,J.jsxs)(`div`,{className:`space-y-2`,children:[(0,J.jsx)(`p`,{className:`text-sm font-medium text-default`,children:i(`event.video.cookiesTitle`)}),(0,J.jsx)(`p`,{className:`text-xs text-subtle`,children:i(`event.video.cookiesDescription`)})]}),(0,J.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-2 mt-2`,children:[(0,J.jsx)(j,{variant:`default`,size:`sm`,onClick:()=>{u(De)},children:i(`event.video.acceptAllCookies`)}),(0,J.jsx)(j,{variant:`ghost`,size:`sm`,onClick:()=>d(),children:i(`event.video.preferences`)})]})]})})]})}function Z(e){let{ref:t,inView:n}=r({threshold:0,rootMargin:`200px 0px`,triggerOnce:!0});return(0,J.jsxs)(`div`,{ref:t,className:e.className,children:[!n&&(e.fallback??null),n&&e.children]})}var at=8,ot=6,st=4;function Q({item:e,onClick:t,showMoreOverlay:n,remainingCount:r,className:i}){let{t:a}=N([`common`]);return(0,J.jsxs)(`button`,{onClick:t,className:F(`relative rounded-lg overflow-hidden aspect-square cursor-pointer hover:opacity-90  transition-opacity flex-1 min-w-0`,i),children:[(0,J.jsx)(o,{src:e.image,width:400,alt:e.title||e.description||e.copyright||``,sizes:`(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 20vw`,className:`w-full h-full object-cover`,objectFit:`cover`,loading:`lazy`}),n&&r&&r>0&&(0,J.jsx)(`div`,{className:`absolute inset-0 bg-black/60 flex items-center justify-center`,children:(0,J.jsx)(`span`,{className:`text-white text-xl font-semibold`,children:a(`common:gallery.plusXMore`,{count:r})})})]},e._id)}var ct=({gallery:e,onClickOnThumbnail:t,maxThumbnails:n})=>{if(!e||e.length===0)return null;let r=e.length,i=n===void 0?at:Math.min(n,at),a=e.slice(0,i),o=a.length,s=r>i,c=r-i,l=e.slice(0,ot),u=l.length,d=r>ot,f=r-ot,p=()=>(0,J.jsx)(`div`,{className:`grid grid-cols-2 gap-2 md:hidden`,children:l.map((e,n)=>(0,J.jsx)(Q,{item:e,onClick:()=>t(n),showMoreOverlay:d&&n===u-1,remainingCount:f},e._id))});if(o<=st)return(0,J.jsxs)(J.Fragment,{children:[p(),(0,J.jsx)(`div`,{className:`hidden md:flex gap-4 ${o===1?`max-w-[50%]`:``}`,children:a.map((e,n)=>(0,J.jsx)(Q,{item:e,onClick:()=>t(n),showMoreOverlay:s&&n===o-1,remainingCount:c},e._id))})]});let m=Math.floor(o/2),h=a.slice(0,m),g=a.slice(m);return(0,J.jsxs)(J.Fragment,{children:[p(),(0,J.jsxs)(`div`,{className:`hidden md:flex flex-col gap-4`,children:[(0,J.jsx)(`div`,{className:`flex gap-4`,children:h.map((e,n)=>(0,J.jsx)(Q,{item:e,onClick:()=>t(n)},e._id))}),(0,J.jsx)(`div`,{className:`flex gap-4`,children:g.map((e,n)=>{let r=m+n,i=r===o-1;return(0,J.jsx)(Q,{item:e,onClick:()=>t(r),showMoreOverlay:s&&i,remainingCount:c},e._id)})})]})]})};function lt({title:e,gallery:t,onClickOnThumbnail:n}){let r=(0,q.useId)(),{t:i}=N([`page`]);return!t||t.length===0?null:(0,J.jsxs)(`section`,{"aria-labelledby":r,className:`flex flex-col gap-4`,children:[(0,J.jsx)(`h2`,{id:r,className:`text-2xl font-semibold text-tight font-heading`,children:e||i(`page:event.gallery`)}),(0,J.jsx)(Z,{fallback:(0,J.jsx)(`div`,{className:F({"md:aspect-[828/414]":t.length==1,"md:aspect-[828/406]":t.length==2||t.length>=8,"md:aspect-[828/265]":t.length==3,"md:aspect-[828/195]":t.length==4,"md:aspect-[828/687]":t.length==5,"md:aspect-[828/547]":t.length==6,"md:aspect-[828/476]":t.length==7,"max-md:min-h-[214px]":t.length<=2,"max-md:min-h-[418px]":t.length>2&&t.length<=4,"max-md:min-h-[632px]":t.length>4&&t.length<=6})}),children:(0,J.jsx)(ct,{gallery:t,onClickOnThumbnail:n})})]})}function ut({seating:e,isSideBySide:t=!1}){let{t:n}=N([`page`]),{bodyBgMode:r}=D();return!e?.active||e?.bestAvailableSeatingConfiguration?.enabled&&e?.bestAvailableSeatingConfiguration?.enforced?null:(0,J.jsx)(`img`,{src:Ae(I.SEATING_URL()+`/api/seatmap/${e.seatMapId}/svg?theme=${r===`light`?`light`:`dark`}
5&imageRasterResolution=300&hideSeatsInSection=true&revisionId=${e.revisionId}&excludeHiddenLayers=true`,{width:1200,height:750,objectFit:`contain`,backgroundColor:`transparent`}),alt:n(`page:event.seatingMapAlt`),className:F(`w-full h-full object-contain`,t?`rounded-b-lg md:rounded-b-none md:rounded-r-lg`:`rounded-lg`)})}function dt({location:e,signedStaticMapUrl:t,isSideBySide:n=!1}){let{t:r}=N([`page`]);return t?(0,J.jsxs)(`a`,{href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(`${e.locationName}, ${e.locationStreet}, ${U(e)}`)}`,target:`_blank`,rel:`noopener noreferrer nofollow`,className:F(`block overflow-hidden`,n?`rounded-t-lg md:rounded-t-none md:rounded-l-lg`:`rounded-lg`),children:[(0,J.jsx)(`img`,{src:t,alt:r(`page:event.locationMapAlt`,{locationName:e.locationName}),className:F(`w-full h-full object-cover shrink-0`),loading:`lazy`}),(0,J.jsx)(`span`,{className:`sr-only`,children:r(`page:event.openInGoogleMaps`,{locationName:e.locationName})})]}):null}function ft({location:e,signedStaticMapUrl:t,seating:n,showLocationMap:r,showSeatmap:i}){let a=i&&n?.active&&!(n?.bestAvailableSeatingConfiguration?.enabled&&n?.bestAvailableSeatingConfiguration?.enforced),o=r&&!!t;if(!o&&!a)return null;let s=a&&o;return(0,J.jsxs)(`div`,{className:F(`grid grid-cols-1`,{"md:grid-cols-2":s,"divide-y md:divide-x md:divide-y-0":s}),children:[o&&(0,J.jsx)(dt,{location:e,signedStaticMapUrl:t,isSideBySide:s}),a&&(0,J.jsx)(ut,{seating:n,isSideBySide:s})]})}function pt({title:e,location:t,signedStaticMapUrl:n,seating:r,showLocationMap:i=!0,showSeatmap:a=!0}){let o=(0,q.useId)(),{t:s}=N([`page`,`common`]),c=a&&r?.active&&!(r?.bestAvailableSeatingConfiguration?.enabled&&r?.bestAvailableSeatingConfiguration?.enforced),l=i&&!!n;if(!l&&!c)return null;let u=e||s(`page:event.location`),d=`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(`${t.locationName}, ${t.locationStreet}, ${U(t)}`)}`;return(0,J.jsxs)(`section`,{"aria-labelledby":o,className:`flex flex-col gap-4 `,children:[(0,J.jsx)(`h2`,{id:o,className:`text-2xl font-semibold text-tight font-heading`,children:u}),(0,J.jsxs)(`div`,{className:`flex gap-4 flex-col lg:flex-col`,children:[l&&(0,J.jsx)(`div`,{className:`flex-shrink-0`,children:(0,J.jsxs)(`a`,{href:d,target:`_blank`,rel:`noopener noreferrer`,className:`flex-shrink-0 flex flex-col gap-4 hover:underline rounded-md`,children:[(0,J.jsxs)(`address`,{className:`not-italic`,children:[(0,J.jsxs)(`span`,{className:`font-medium inline-flex items-center gap-1`,children:[t.locationName,(0,J.jsx)(ee,{className:`size-4`})]}),(0,J.jsxs)(`div`,{className:`flex flex-col text-light`,children:[(0,J.jsx)(`span`,{children:t.locationStreet}),(0,J.jsx)(`span`,{children:U(t)})]})]}),(0,J.jsx)(`span`,{className:`sr-only`,children:s(`common:newTabHint`)})]})}),(0,J.jsx)(Z,{fallback:(0,J.jsx)(`div`,{className:`aspect-640/256`}),children:(0,J.jsx)(`div`,{className:`rounded-lg border`,children:(0,J.jsx)(ft,{location:t,signedStaticMapUrl:n,seating:r,showLocationMap:i,showSeatmap:a})})})]})]})}function mt({title:e,content:t}){let n=(0,q.useId)(),{t:r}=N([`page`]),[i,a]=(0,q.useState)(!1),[o,s]=(0,q.useState)(t.length>1600),c=(0,q.useRef)(null);return(0,q.useEffect)(()=>{let e=c.current;if(!e||i)return;let t=()=>{s(e.scrollHeight>e.clientHeight)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[t,i]),(0,J.jsxs)(`section`,{"aria-labelledby":e?n:void 0,className:`flex flex-col gap-4`,children:[e&&(0,J.jsx)(`h2`,{id:n,className:`text-2xl font-semibold text-tight font-heading`,children:e}),(0,J.jsxs)(`div`,{className:`relative`,children:[(0,J.jsx)(`div`,{ref:c,className:F(`text-md text-light overflow-y-clip transition-[max-height] duration-300 py-2 -my-2`,{"max-h-[18lh]":!i}),children:(0,J.jsx)(Ke,{text:t})}),o&&!i&&(0,J.jsx)(`div`,{className:`absolute -bottom-2 left-0 right-0 h-32 bg-gradient-to-t from-background to-transparent`})]}),(o||i)&&(0,J.jsx)(`div`,{className:`align-center flex justify-center`,children:(0,J.jsx)(j,{onClick:()=>a(!i),className:F(`relative ml-auto mr-auto`,{"-mt-3":!i}),size:`sm`,children:r(i?`page:event.showLess`:`page:event.readMore`)})})]})}function ht({title:e,videoId:t,eventName:n}){let r=(0,q.useId)(),{t:i}=N([`page`]);return(0,J.jsxs)(`section`,{"aria-labelledby":r,className:`flex flex-col gap-4`,children:[(0,J.jsx)(`h2`,{id:r,className:`text-2xl font-semibold text-tight font-heading`,children:e||i(`page:event.video.title`)}),(0,J.jsx)(Z,{fallback:(0,J.jsx)(`div`,{className:`aspect-video rounded-lg bg-gray-200`}),children:(0,J.jsx)(it,{videoId:t,title:n})})]})}var gt=`text-lg md:text-xl lg:text-2xl`;function _t({component:e}){return(0,J.jsx)(G.Root,{children:(0,J.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,J.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,J.jsx)(`h2`,{className:`text-2xl font-semibold text-tight font-heading`,children:e.title}),(0,J.jsx)(G.Navigation,{})]}),(0,J.jsx)(G.Carousel,{children:(0,J.jsx)(G.Slides,{children:e.items.map((e,t)=>(0,J.jsx)(G.Slide,{item:e,titleClassName:gt},t))})})]})})}function vt({component:e}){return(0,J.jsx)(B.Root,{columns:e.columns,children:(0,J.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,J.jsx)(`h2`,{className:`text-2xl font-semibold text-tight font-heading`,children:e.title}),(0,J.jsx)(B.Grid,{children:e.items.map((e,t)=>(0,J.jsx)(B.Item,{linkTarget:e,backgroundImage:e.backgroundImage,icon:e.icon??void 0,title:e.title},t))})]})})}function yt({component:e}){let t=(0,q.useId)();return(0,J.jsxs)(`section`,{"aria-labelledby":t,className:`flex flex-col gap-4`,children:[(0,J.jsx)(`h2`,{id:t,className:`text-2xl font-semibold text-tight font-heading`,children:e.title}),(0,J.jsx)(`div`,{className:`text-md`,children:(0,J.jsx)(_e.List,{items:e.items})})]})}function bt({component:e,mapContext:t,galleryContext:n,videoContext:r}){if(e.type===`promo_slider`)return(0,J.jsx)(_t,{component:e});if(e.type===`promo_grid`)return(0,J.jsx)(vt,{component:e});if(e.type===`faq`)return(0,J.jsx)(yt,{component:e});if(e.type===`map`)return(0,J.jsx)(pt,{title:e.title,showLocationMap:e.showLocationMap!==!1,showSeatmap:e.showSeatmap!==!1,...t});if(e.type===`text`)return e.content?(0,J.jsx)(mt,{title:e.title,content:e.content}):null;if(e.type===`gallery`){let t=e.items?.length?e.items:n.gallery;return t?.length?(0,J.jsx)(lt,{title:e.title,gallery:t,onClickOnThumbnail:n.onClickOnThumbnail}):null}return e.type===`video`&&e.youtubeId?(0,J.jsx)(ht,{title:e.title,videoId:e.youtubeId,eventName:r.eventName}):null}function xt({components:e,mapContext:t,galleryContext:n,videoContext:r}){return!e||e.length===0?null:(0,J.jsx)(J.Fragment,{children:e.map(e=>(0,J.jsx)(bt,{component:e,mapContext:t,galleryContext:n,videoContext:r},e._id))})}var St=(0,q.createContext)(null);function Ct(){let e=(0,q.useContext)(St);if(!e)throw Error(`EventPrimaryAction compound components must be used within EventPrimaryAction`);return e}function $(e){let{event:t,shop:n,availability:r,isLoading:i,hasShops:a,children:o}=e,s=O(e=>e.customer),{t:c}=N([`event`]),l=t.customTextConfig?.buyTicketsCTA||c(`buyTickets`),u=(()=>
5{if(i)return{type:`loading`};if(n.accountSettings?.enforceAuthentication===`PREVENT_CHECKOUT`&&s.status!==`authenticated`)return{type:`unauthenticated`};if(a&&!n.shopId)return{type:`button`};switch(n.saleStatus){case z.onSale:return r?.checkout.reason===`UNAUTHENTICATED`?{type:`unauthenticated`}:r?.checkout.reason===`NOT_IN_SEGMENT`?{type:`notInSegment`}:r?.checkout.reason===`EVENT_CUSTOMER_LIMIT_REACHED`||r?.checkout.reason===`EVENT_SERIES_CUSTOMER_LIMIT_REACHED`?{type:`quotaExceeded`}:r?.checkout.allowed?{type:`button`}:{type:`none`};case z.soldOut:return{type:`soldOut`};case z.past:return{type:`past`};case z.planned:return{type:`planned`,showCountdown:t.showCountdown??!1,sellStart:n.sellStart};default:return{type:`none`}}})(),d=u.type===`button`||u.type===`unauthenticated`||u.type===`soldOut`,f={...e,state:u,buttonText:l,hasButton:d};return o?(0,J.jsx)(St.Provider,{value:f,children:o}):(0,J.jsx)(St.Provider,{value:f,children:(0,J.jsxs)(`div`,{children:[(0,J.jsx)(wt,{}),(0,J.jsx)(Tt,{})]})})}function wt(){let{state:e}=Ct(),{t}=N([`common`]);switch(e.type){case`loading`:return(0,J.jsx)(`div`,{className:`flex justify-center py-3`,children:(0,J.jsx)(y,{className:`w-6 h-6 animate-spin text-light`})});case`unauthenticated`:return(0,J.jsx)(`div`,{className:`rounded-md bg-gray-25 p-4`,children:(0,J.jsxs)(`div`,{className:`flex`,children:[(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(qe,{className:`size-5 text-light`})}),(0,J.jsx)(`div`,{className:`ml-3`,children:(0,J.jsx)(`p`,{className:`text-sm text-pretty font-medium`,children:t(`loginRequired`)})})]})});case`soldOut`:return(0,J.jsx)(`div`,{className:`rounded-md bg-gray-25 p-4`,children:(0,J.jsxs)(`div`,{className:`flex`,children:[(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(p,{className:`size-5 text-light`})}),(0,J.jsxs)(`div`,{className:`ml-3`,children:[(0,J.jsx)(`p`,{className:`text-sm text-pretty font-medium`,children:t(`soldOut`)}),(0,J.jsx)(`div`,{className:`mt-2 text-pretty text-sm text-light`,children:(0,J.jsx)(`p`,{children:t(`soldOutDescription`)})})]})]})});case`past`:return(0,J.jsx)(`div`,{className:`rounded-md bg-gray-25 p-4`,children:(0,J.jsxs)(`div`,{className:`flex`,children:[(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(he,{className:`size-5 text-light`})}),(0,J.jsx)(`div`,{className:`ml-3`,children:(0,J.jsx)(`p`,{className:`text-sm text-pretty font-medium`,children:t(`eventPast`)})})]})});case`planned`:return(0,J.jsxs)(`div`,{className:`rounded-md bg-gray-25 p-4`,children:[(0,J.jsxs)(`div`,{className:`flex`,children:[(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(Je,{className:`size-5 text-light`})}),(0,J.jsx)(`div`,{className:`ml-3`,children:(0,J.jsx)(`p`,{className:`text-sm text-pretty font-medium`,children:t(`salesStartingSoon`)})})]}),e.showCountdown&&(0,J.jsx)(`div`,{className:`mt-2 text-pretty text-sm text-light`,children:(0,J.jsx)(V,{until:new Date(e.sellStart),onDone:()=>window.location.reload()})})]});case`notInSegment`:return(0,J.jsx)(`div`,{className:`rounded-md bg-gray-25 p-4`,children:(0,J.jsxs)(`div`,{className:`flex`,children:[(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(Je,{className:`size-5 text-light`})}),(0,J.jsx)(`div`,{className:`ml-3`,children:(0,J.jsx)(`p`,{className:`text-sm text-pretty font-medium`,children:t(`notInSegment`)})})]})});case`quotaExceeded`:return(0,J.jsx)(`div`,{className:`rounded-md bg-gray-25 p-4`,children:(0,J.jsxs)(`div`,{className:`flex`,children:[(0,J.jsx)(`div`,{className:`shrink-0`,children:(0,J.jsx)(p,{className:`size-5 text-light`})}),(0,J.jsx)(`div`,{className:`ml-3`,children:(0,J.jsx)(`p`,{className:`text-sm text-pretty font-medium`,children:t(`quotaExceeded`)})})]})});case`button`:case`none`:return null;default:return null}}function Tt(){let{state:e,buttonText:t,isDisabled:n,onBuyTicketsClick:r,event:i,seller:a,shop:o}=Ct(),{t:s}=N([`common`]),c=se();switch(e.type){case`button`:return(0,J.jsx)(j,{size:`xl`,className:`w-full`,variant:`primary`,disabled:n,onClick:r,children:t});case`unauthenticated`:return(0,J.jsx)(j,{size:`xl`,asChild:!0,className:`w-full`,variant:`primary`,children:(0,J.jsx)(k,{to:v.login(c.pathname+c.search,c.pathname+c.search),children:s(`login`)})});case`soldOut`:return(0,J.jsx)(xe,{event:{saleStatus:o.saleStatus,sellerId:a._id,soldOutFallback:i.soldOutFallback}});case`planned`:case`loading`:case`past`:case`notInSegment`:case`quotaExceeded`:case`none`:return null;default:return null}}function Et({children:e}){let{hasButton:t}=Ct();return t?(0,J.jsx)(J.Fragment,{children:e}):null}$.Info=wt,$.Button=Tt,$.IfButton=Et;
5var Dt=t((e=>{e.__esModule=!0,e.SteeringPositionValue=e.RsvpResponseType=e.ReturnFeesEnumeration=e.RestrictedDiet=e.ReservationStatusType=e.RefundTypeEnumeration=e.ProductReturnEnumeration=e.PhysicalExam=e.PhysicalActivityCategory=e.PaymentStatusType=e.OrderStatus=e.OfferItemCondition=e.NonprofitType=e.MusicReleaseFormatType=e.MusicAlbumReleaseType=e.MusicAlbumProductionType=e.MerchantReturnEnumeration=e.MedicineSystem=e.MedicalTrialDesign=e.MedicalStudyStatus=e.MedicalSpecialty=e.MedicalProcedureType=e.MedicalObservationalStudyDesign=e.MedicalImagingTechnique=e.MedicalEvidenceLevel=e.MedicalDevicePurpose=e.MedicalAudience=e.MediaManipulationRatingEnumeration=e.MapCategoryType=e.LegalValueLevel=e.LegalForceStatus=e.ItemListOrderType=e.ItemAvailability=e.InfectiousAgentClass=e.HealthAspectEnumeration=e.GovernmentBenefitsType=e.GenderType=e.GameServerStatus=e.GamePlayMode=e.EventStatusType=e.EventAttendanceModeEnumeration=e.DrugPrescriptionStatus=e.DrugPregnancyCategory=e.DrugCostCategory=e.DriveWheelConfigurationValue=e.DigitalDocumentPermissionType=e.DeliveryMethod=e.DayOfWeek=e.ContactPointOption=e.CarUsageType=e.BookFormatType=e.BoardingPolicyType=e.Audience=e.ActionStatusType=e.Boolean=void 0,e.Boolean={False:`http://schema.org/False`,True:`http://schema.org/True`},e.ActionStatusType={ActiveActionStatus:`http://schema.org/ActiveActionStatus`,CompletedActionStatus:`http://schema.org/CompletedActionStatus`,FailedActionStatus:`http://schema.org/FailedActionStatus`,PotentialActionStatus:`http://schema.org/PotentialActionStatus`},e.Audience={Researcher:`http://schema.org/Researcher`},e.BoardingPolicyType={GroupBoardingPolicy:`http://schema.org/GroupBoardingPolicy`,ZoneBoardingPolicy:`http://schema.org/ZoneBoardingPolicy`},e.BookFormatType={AudiobookFormat:`http://schema.org/AudiobookFormat`,EBook:`http://schema.org/EBook`,GraphicNovel:`http://schema.org/GraphicNovel`,Hardcover:`http://schema.org/Hardcover`,Paperback:`http://schema.org/Paperback`},e.CarUsageType={DrivingSchoolVehicleUsage:`http://schema.org/DrivingSchoolVehicleUsage`,RentalVehicleUsage:`http://schema.org/RentalVehicleUsage`,TaxiVehicleUsage:`http://schema.org/TaxiVehicleUsage`},e.ContactPointOption={HearingImpairedSupported:`http://schema.org/HearingImpairedSupported`,TollFree:`http://schema.org/TollFree`},e.DayOfWeek={Friday:`http://schema.org/Friday`,Monday:`http://schema.org/Monday`,PublicHolidays:`http://schema.org/PublicHolidays`,Saturday:`http://schema.org/Saturday`,Sunday:`http://schema.org/Sunday`,Thursday:`http://schema.org/Thursday`,Tuesday:`http://schema.org/Tuesday`,Wednesday:`http://schema.org/Wednesday`},e.DeliveryMethod={OnSitePickup:`http://schema.org/OnSitePickup`},e.DigitalDocumentPermissionType={CommentPermission:`http://schema.org/CommentPermission`,ReadPermission:`http://schema.org/ReadPermission`,WritePermission:`http://schema.org/WritePermission`},e.DriveWheelConfigurationValue={AllWheelDriveConfiguration:`http://schema.org/AllWheelDriveConfiguration`,FourWheelDriveConfiguration:`http://schema.org/FourWheelDriveConfiguration`,FrontWheelDriveConfiguration:`http://schema.org/FrontWheelDriveConfiguration`,RearWheelDriveConfiguration:`http://schema.org/RearWheelDriveConfiguration`},e.DrugCostCategory={ReimbursementCap:`http://schema.org/ReimbursementCap`,Retail:`http://schema.org/Retail`,Wholesale:`http://schema.org/Wholesale`},e.DrugPregnancyCategory={FDAcategoryA:`http://schema.org/FDAcategoryA`,FDAcategoryB:`http://schema.org/FDAcategoryB`,FDAcategoryC:`http://schema.org/FDAcategoryC`,FDAcategoryD:`http://schema.org/FDAcategoryD`,FDAcategoryX:`http://schema.org/FDAcategoryX`,FDAnotEvaluated:`http://schema.org/FDAnotEvaluated`},e.DrugPrescriptionStatus={OTC:`http://schema.org/OTC`,PrescriptionOnly:`http://schema.org/PrescriptionOnly`},e.EventAttendanceModeEnumeration={MixedEventAttendanceMode:`http://schema.org/MixedEventAttendanceMode`,OfflineEventAttendanceMode:`http://schema.org/OfflineEventAttendanceMode`,OnlineEventAttendanceMode:`http://schema.org/OnlineEventAttendanceMode`},e.EventStatusType={EventCancelled:`http://schema.org/EventCancelled`,EventMovedOnline:`http://schema.org/EventMovedOnline`,EventPostponed:`http://schema.org/EventPostponed`,EventRescheduled:`http://schema.org/EventRescheduled`,EventScheduled:`http://schema.org/EventScheduled`},e.GamePlayMode={CoOp:`http://schema.org/CoOp`,MultiPlayer:`http://schema.org/MultiPlayer`,SinglePlayer:`http://schema.org/SinglePlayer`},e.GameServerStatus={OfflinePermanently:`http://schema.org/OfflinePermanently`,OfflineTemporarily:`http://schema.org/OfflineTemporarily`,Online:`http://schema.org/Online`,OnlineFull:`http://schema.org/OnlineFull`},e.GenderType={Female:`http://schema.org/Female`,Male:`http://schema.org/Male`},e.GovernmentBenefitsType={BasicIncome:`http://schema.org/BasicIncome`,BusinessSupport:`http://schema.org/BusinessSupport`,DisabilitySupport:`http://schema.org/DisabilitySupport`,HealthCare:`http://schema.org/
5HealthCare`,OneTimePayments:`http://schema.org/OneTimePayments`,PaidLeave:`http://schema.org/PaidLeave`,ParentalSupport:`http://schema.org/ParentalSupport`,UnemploymentSupport:`http://schema.org/UnemploymentSupport`},e.HealthAspectEnumeration={BenefitsHealthAspect:`http://schema.org/BenefitsHealthAspect`,CausesHealthAspect:`http://schema.org/CausesHealthAspect`,ContagiousnessHealthAspect:`http://schema.org/ContagiousnessHealthAspect`,HowOrWhereHealthAspect:`http://schema.org/HowOrWhereHealthAspect`,LivingWithHealthAspect:`http://schema.org/LivingWithHealthAspect`,MayTreatHealthAspect:`http://schema.org/MayTreatHealthAspect`,MisconceptionsHealthAspect:`http://schema.org/MisconceptionsHealthAspect`,OverviewHealthAspect:`http://schema.org/OverviewHealthAspect`,PatientExperienceHealthAspect:`http://schema.org/PatientExperienceHealthAspect`,PreventionHealthAspect:`http://schema.org/PreventionHealthAspect`,PrognosisHealthAspect:`http://schema.org/PrognosisHealthAspect`,RelatedTopicsHealthAspect:`http://schema.org/RelatedTopicsHealthAspect`,RisksOrComplicationsHealthAspect:`http://schema.org/RisksOrComplicationsHealthAspect`,ScreeningHealthAspect:`http://schema.org/ScreeningHealthAspect`,SeeDoctorHealthAspect:`http://schema.org/SeeDoctorHealthAspect`,SelfCareHealthAspect:`http://schema.org/SelfCareHealthAspect`,SideEffectsHealthAspect:`http://schema.org/SideEffectsHealthAspect`,StagesHealthAspect:`http://schema.org/StagesHealthAspect`,SymptomsHealthAspect:`http://schema.org/SymptomsHealthAspect`,TreatmentsHealthAspect:`http://schema.org/TreatmentsHealthAspect`,TypesHealthAspect:`http://schema.org/TypesHealthAspect`,UsageOrScheduleHealthAspect:`http://schema.org/UsageOrScheduleHealthAspect`},e.InfectiousAgentClass={Bacteria:`http://schema.org/Bacteria`,Fungus:`http://schema.org/Fungus`,MulticellularParasite:`http://schema.org/MulticellularParasite`,Prion:`http://schema.org/Prion`,Protozoa:`http://schema.org/Protozoa`,Virus:`http://schema.org/Virus`},e.ItemAvailability={Discontinued:`http://schema.org/Discontinued`,InStock:`http://schema.org/InStock`,InStoreOnly:`http://schema.org/InStoreOnly`,LimitedAvailability:`http://schema.org/LimitedAvailability`,OnlineOnly:`http://schema.org/OnlineOnly`,OutOfStock:`http://schema.org/OutOfStock`,PreOrder:`http://schema.org/PreOrder`,PreSale:`http://schema.org/PreSale`,SoldOut:`http://schema.org/SoldOut`},e.ItemListOrderType={ItemListOrderAscending:`http://schema.org/ItemListOrderAscending`,ItemListOrderDe
5scending:`http://schema.org/ItemListOrderDescending`,ItemListUnordered:`http://schema.org/ItemListUnordered`},e.LegalForceStatus={InForce:`http://schema.org/InForce`,NotInForce:`http://schema.org/NotInForce`,PartiallyInForce:`http://schema.org/PartiallyInForce`},e.LegalValueLevel={AuthoritativeLegalValue:`http://schema.org/AuthoritativeLegalValue`,DefinitiveLegalValue:`http://schema.org/DefinitiveLegalValue`,OfficialLegalValue:`http://schema.org/OfficialLegalValue`,UnofficialLegalValue:`http://schema.org/UnofficialLegalValue`},e.MapCategoryType={ParkingMap:`http://schema.org/ParkingMap`,SeatingMap:`http://schema.org/SeatingMap`,TransitMap:`http://schema.org/TransitMap`,VenueMap:`http://schema.org/VenueMap`},e.MediaManipulationRatingEnumeration={AuthenticContent:`http://schema.org/AuthenticContent`,MissingContext:`http://schema.org/MissingContext`},e.MedicalAudience={Clinician:`http://schema.org/Clinician`,MedicalResearcher:`http://schema.org/MedicalResearcher`},e.MedicalDevicePurpose={Diagnostic:`http://schema.org/Diagnostic`,Therapeutic:`http://schema.org/Therapeutic`},e.MedicalEvidenceLevel={EvidenceLevelA:`http://schema.org/EvidenceLevelA`,EvidenceLevelB:`http://schema.org/EvidenceLevelB`,EvidenceLevelC:`http://schema.org/EvidenceLevelC`},e.MedicalImagingTechnique={CT:`http://schema.org/CT`,MRI:`http://schema.org/MRI`,PET:`http://schema.org/PET`,Radiography:`http://schema.org/Radiography`,Ultrasound:`http://schema.org/Ultrasound`,XRay:`http://schema.org/XRay`},e.MedicalObservationalStudyDesign={CaseSeries:`http://schema.org/CaseSeries`,CohortStudy:`http://schema.org/CohortStudy`,CrossSectional:`http://schema.org/CrossSectional`,Longitudinal:`http://schema.org/Longitudinal`,Observational:`http://schema.org/Observational`,Registry:`http://schema.org/Registry`},e.MedicalProcedureType={NoninvasiveProcedure:`http://schema.org/NoninvasiveProcedure`,PercutaneousProcedure:`http://schema.org/PercutaneousProcedure`},e.MedicalSpecialty={Anesthesia:`http://schema.org/Anesthesia`,Cardiovascular:`http://schema.org/Cardiovascular`,CommunityHealth:`http://schema.org/CommunityHealth`,Dentistry:`http://schema.org/Dentistry`,Dermatologic:`http://schema.org/Dermatologic`,Dermatology:`http://schema.org/Dermatology`,DietNutrition:`http://schema.org/DietNutrition`,Emergency:`http://schema.org/Emergency`,Endocrine:`http://schema.org/Endocrine`,Gastroenterologic:`http://schema.org/Gastroenterologic`,Genetic:`http://schema.org/Genetic`,Geriatric:`http://schema.org/Geriatric`,Gynecologic:`http://schema.org/Gynecologic`,Hematologic:`http://schema.org/Hematologic`,Infectious:`http://schema.org/Infectious`,LaboratoryScience:`http://schema.org/LaboratoryScience`,Midwifery:`http://schema.org/Midwifery`,Musculoskeletal:`http://schema.org/Musculoskeletal`,Neurologic:`http://schema.org/Neurologic`,Nursing:`http://schema.org/Nursing`,Obstetric:`http://schema.org/Obstetric`,Oncologic:`http://schema.org/Oncologic`,Optometric:`http://schema.org/Optometric`,Otolaryngologic:`http://schema.org/Otolaryngologic`,Pathology:`http://schema.org/Pathology`,Pediatric:`http://schema.org/Pediatric`,PharmacySpecialty:`http://schema.org/PharmacySpecialty`,Physiotherapy:`http://schema.org/Physiotherapy`,PlasticSurgery:`http://schema.org/PlasticSurgery`,Podiatric:`http://schema.org/Podiatric`,PrimaryCare:`http://schema.org/PrimaryCare`,Psychiatric:`http://schema.org/Psychiatric`,PublicHealth:`http://schema.org/PublicHealth`,Pulmonary:`http://schema.org/Pulmonary`,Radiography:`http://schema.org/Radiography`,Renal:`http://schema.org/Renal`,RespiratoryTherapy:`http://schema.org/RespiratoryTherapy`,Rheumatologic:`http://schema.org/Rheumatologic`,SpeechPathology:`http://schema.org/SpeechPathology`,Surgical:`http://schema.org/Surgical`,Toxicologic:`http://schema.org/Toxicologic`,Urologic:`http://schema.org/Urologic`},e.MedicalStudyStatus={ActiveNotRecruiting:`http://schema.org/ActiveNotRecruiting`,Completed:`http://schema.org/Completed`,EnrollingByInvitation:`http://schema.org/EnrollingByInvitation`,NotYetRecruiting:`http://schema.org/NotYetRecruiting`,Recruiting:`http://schema.org/Recruiting`,ResultsAvailable:`http://schema.org/ResultsAvailable`,ResultsNotAvailable:`http://schema.org/ResultsNotAvailable`,Suspended:`http://schema.org/Suspended`,Terminated:`http://schema.org/Terminated`,Withdrawn:`http://schema.org/Withdrawn`},e.MedicalTrialDesign={DoubleBlindedTrial:`http://schema.org/DoubleBlindedTrial`,InternationalTrial:`http://schema.org/InternationalTrial`,MultiCenterTrial:`http://schema.org/MultiCenterTrial`,OpenTri
5al:`http://schema.org/OpenTrial`,PlaceboControlledTrial:`http://schema.org/PlaceboControlledTrial`,RandomizedTrial:`http://schema.org/RandomizedTrial`,SingleBlindedTrial:`http://schema.org/SingleBlindedTrial`,SingleCenterTrial:`http://schema.org/SingleCenterTrial`,TripleBlindedTrial:`http://schema.org/TripleBlindedTrial`},e.MedicineSystem={Ayurvedic:`http://schema.org/Ayurvedic`,Chiropractic:`http://schema.org/Chiropractic`,Homeopathic:`http://schema.org/Homeopathic`,Osteopathic:`http://schema.org/Osteopathic`,TraditionalChinese:`http://schema.org/TraditionalChinese`,WesternConventional:`http://schema.org/WesternConventional`},e.MerchantReturnEnumeration={MerchantReturnFiniteReturnWindow:`http://schema.org/MerchantReturnFiniteReturnWindow`,MerchantReturnNotPermitted:`http://schema.org/MerchantReturnNotPermitted`,MerchantReturnUnlimitedWindow:`http://schema.org/MerchantReturnUnlimitedWindow`,MerchantReturnUnspecified:`http://schema.org/MerchantReturnUnspecified`},e.MusicAlbumProductionType={CompilationAlbum:`http://schema.org/CompilationAlbum`,DemoAlbum:`http://schema.org/DemoAlbum`,DJMixAlbum:`http://schema.org/DJMixAlbum`,LiveAlbum:`http://schema.org/LiveAlbum`,MixtapeAlbum:`http://schema.org/MixtapeAlbum`,RemixAlbum:`http://schema.org/RemixAlbum`,SoundtrackAlbum:`http://schema.org/SoundtrackAlbum`,SpokenWordAlbum:`http://schema.org/SpokenWordAlbum`,StudioAlbum:`http://schema.org/StudioAlbum`},e.MusicAlbumReleaseType={AlbumRelease:`http://schema.org/AlbumRelease`,BroadcastRelease:`http://schema.org/BroadcastRelease`,EPRelease:`http://schema.org/EPRelease`,SingleRelease:`http://schema.org/SingleRelease`},e.MusicReleaseFormatType={CassetteFormat:`http://schema.org/CassetteFormat`,CDFormat:`http://schema.org/CDFormat`,DigitalAudioTapeFormat:`http://schema.org/DigitalAudioTapeFormat`,DigitalFormat:`http://schema.org/DigitalFormat`,DVDFormat:`http://schema.org/DVDFormat`,LaserDiscFormat:`http://schema.org/LaserDiscFormat`,VinylFormat:`http://schema.org/VinylFormat`},e.NonprofitType={CharitableIncorporatedOrganization:`http://schema.org/CharitableIncorporatedOrganization`,LimitedByGuaranteeCharity:`http://schema.org/LimitedByGuaranteeCharity`,Nonprofit501a:`http://schema.org/Nonprofit501a`,Nonprofit501c1:`http://schema.org/Nonprofit501c1`,Nonprofit501c10:`http://schema.org/Nonprofit501c10`,Nonprofit501c11:`http://schema.org/Nonprofit501c11`,Nonprofit501c12:`http://schema.org/Nonprofit501c12`,Nonprofit501c13:`http://schema.org/Nonprofit501c13`,Nonprofit501c14:`http://schema.org/Nonprofit501c14`,Nonprofit501c15:`http://schema.org/Nonprofit501c15`,Nonprofit501c16:`http://schema.org/Nonprofit501c16`,Nonprofit501c17:`http://schema.org/Nonprofit501c17`,Nonprofit501c18:`http://schema.org/Nonprofit501c18`,Nonprofit501c19:`http://schema.org/Nonprofit501c19`,Nonprofit501c2:`http://schema.org/Nonprofit501c2`,Nonprofit501c20:`http://schema.org/Nonprofit501c20`,Nonprofit501c21:`http://schema.org/Nonprofit501c21`,Nonprofit501c22:`http://schema.org/Nonprofit501c22`,Nonprofit501c23:`http://schema.org/Nonprofit501c23`,Nonprofit501c24:`http://schema.org/Nonprofit501c24`,Nonprofit501c25:`http://schema.org/Nonprofit501c25`,Nonprofit501c26:`http://schema.org/Nonprofit501c26`,Nonprofit501c27:`http://schema.org/Nonprofit501c27`,Nonprofit501c28:`http://schema.org/Nonprofit501c28`,Nonprofit501c3:`http://schema.org/Nonprofit501c3`,Nonprofit501c4:`http://schema.org/Nonprofit501c4`,Nonprofit501c5:`http://schema.org/Nonprofit501c5`,Nonprofit501c6:`http://schema.org/Nonprofit501c6`,Nonprofit501c7:`http://schema.org/Nonprofit501c7`,Nonprofit501c8:`http://schema.org/Nonprofit501c8`,Nonprofit501c9:`http://schema.org/Nonprofit501c9`,Nonprofit501d:`http://schema.org/Nonprofit501d`,Nonprofit501e:`http://schema.org/Nonprofit501e`,Nonprofit501f:`http://schema.org/Nonprofit501f`,Nonprofit501k:`http://schema.org/Nonprofit501k`,Nonprofit501n:`http://schema.org/Nonprofit501n`,Nonprofit501q:`http://schema.org/Nonprofit501q`,Nonprofit527:`http://schema.org/Nonprofit527`,NonprofitANBI:`http://schema.org/NonprofitANBI`,NonprofitSBBI:`http://schema.org/NonprofitSBBI`,UKTrust:`http://schema.org/UKTrust`,UnincorporatedAssociationCharity:`http://schema.org/UnincorporatedAssociationCharity`},e.OfferItemCondition={DamagedCondition:`http://schema.org/DamagedCondition`,NewCondition:`http://schema.org/NewCondition`,RefurbishedCondition:`http://schema.org/RefurbishedCondition`,UsedCondition:`http://schema.org/UsedCondition`},e.OrderStatus={OrderCancelled:`http://schema.org/OrderCancelled`,OrderDelivered:`http://schema.org/OrderDelivered`,OrderInTransit:`http://schema.org/OrderInTransit`,OrderPaymentDue:`http://schema.org/OrderPaymentDue`,OrderPickupAvailable:`http://schema.org/OrderPickupAvailable`,OrderProblem:`http://schema.org/OrderProblem`,OrderProcessing:`http://schema.org/OrderProcessing`,OrderReturned:`http://schema.org/OrderReturned`},e.PaymentStatusType={PaymentAutomaticallyApplied:`http://schema.org/PaymentAutomaticallyApplied`,PaymentComplete:`http://schema.org/PaymentComplete`,PaymentDeclined:`http://schema.org/PaymentDeclined`,PaymentDue:`http://schema.org/PaymentDue`,PaymentPastDue:`http://schema.org/PaymentPastDue`},e.PhysicalActivityCategory={AerobicActivity:`http://schema.org/AerobicActivity`,AnaerobicActivity:`http://schema.org/AnaerobicActivity`,Balance:`http://schema.org/Balance`,Flexibility:`http://schema.org/Flexibility`,LeisureTimeActivity:`http://schema.org/LeisureTimeActivity`,OccupationalActivity:`http://schema.org/OccupationalActivity`,StrengthTraining:`http://schema.org/StrengthTraining`},e.PhysicalExam={Abdomen:`http://schema.org/Abdomen`,Appearance:`http://schema.org/Appearance`,CardiovascularExam:`http://schema.org/CardiovascularExam`,Ear:`http://schema.org/Ear`,Eye:`http://schema.org/Eye`,Genitourinary:`http://schema.org/Genitourinary`,Head:`http://schema.org/
5Head`,Lung:`http://schema.org/Lung`,MusculoskeletalExam:`http://schema.org/MusculoskeletalExam`,Neck:`http://schema.org/Neck`,Neuro:`http://schema.org/Neuro`,Nose:`http://schema.org/Nose`,Skin:`http://schema.org/Skin`,Throat:`http://schema.org/Throat`},e.ProductReturnEnumeration={ProductReturnFiniteReturnWindow:`http://schema.org/ProductReturnFiniteReturnWindow`,ProductReturnNotPermitted:`http://schema.org/ProductReturnNotPermitted`,ProductReturnUnlimitedWindow:`http://schema.org/ProductReturnUnlimitedWindow`,ProductReturnUnspecified:`http://schema.org/ProductReturnUnspecified`},e.RefundTypeEnumeration={ExchangeRefund:`http://schema.org/ExchangeRefund`,FullRefund:`http://schema.org/FullRefund`,StoreCreditRefund:`http://schema.org/StoreCreditRefund`},e.ReservationStatusType={ReservationCancelled:`http://schema.org/ReservationCancelled`,ReservationConfirmed:`http://schema.org/ReservationConfirmed`,ReservationHold:`http://schema.org/ReservationHold`,ReservationPending:`http://schema.org/ReservationPending`},e.RestrictedDiet={DiabeticDiet:`http://schema.org/DiabeticDiet`,GlutenFreeDiet:`http://schema.org/GlutenFreeDiet`,HalalDiet:`http://schema.org/HalalDiet`,HinduDiet:`http://schema.org/HinduDiet`,KosherDiet:`http://schema.org/KosherDiet`,LowCalorieDiet:`http://schema.org/LowCalorieDiet`,LowFatDiet:`http://schema.org/LowFatDiet`,LowLactoseDiet:`http://schema.org/LowLactoseDiet`,LowSaltDiet:`http://schema.org/LowSaltDiet`,VeganDiet:`http://schema.org/VeganDiet`,VegetarianDiet:`http://schema.org/VegetarianDiet`},e.ReturnFeesEnumeration={OriginalShippingFees:`http://schema.org/OriginalShippingFees`,RestockingFees:`http://schema.org/RestockingFees`,ReturnShippingFees:`http://schema.org/ReturnShippingFees`},e.RsvpResponseType={RsvpResponseMaybe:`http://schema.org/RsvpResponseMaybe`,RsvpResponseNo:`http://schema.org/RsvpResponseNo`,RsvpResponseYes:`http://schema.org/RsvpResponseYes`},e.SteeringPositionValue={LeftHandDriving:`http://schema.org/LeftHandDriving`,RightHandDriving:`http://schema.org/RightHandDriving`}})),Ot=Ue();Dt();function kt({event:e,shop:t}){let{seller:n,domainCtx:r}=w();if(e.eventType===_.root)return null;let i=`https://${r.host}/event/${e.url??e._id}`,a=(E(e.components??[]).find(e=>e.slot===te.event_page_main_content)?.components??[]).find(e=>e.type===`text`),o=Ge.asPlainString(a?.content??e.description),s=(0,Ot.jsonLdScriptProps)({"@context":`https://schema.org`,"@type":`Event`,location:{"@type":`Place`,address:{"@type":`PostalAddress`,addressLocality:e.location.locationCity,addressRegion:e.location.locationCity,postalCode:e.location.locationPostal,streetAddress:e.location.locationStreet,addressCountry:e.location.locationCountry},...e.location.geoCode&&{geo:{"@type":`GeoCoordinates`,latitude:e.location.geoCode.lat,longitude:e.location.geoCode.lng}},name:e.location.locationName},name:e.name,offers:{"@type":`Offer`,price:t.startingPrice,priceCurrency:n.currency,url:i,validFrom:t.sellStart,availability:`http://schema.org/OnlineOnly`},description:o,eventAttendanceMode:`https://schema.org/OfflineEventAttendanceMode`,eventStatus:`https://schema.org/EventScheduled`,organizer:{"@type":`Organization`,name:n.name,url:`https://${r?.host}`},image:e.image,url:i,startDate:e.start,endDate:e.end});return(0,J.jsx)(`script`,{dangerouslySetInnerHTML:s.dangerouslySetInnerHTML,type:s.type})}function At(e,t){let{i18n:n}=N(),r=O(e=>e.customer);return S({queryKey:[`available-shops`,e],initialData:[],enabled:r.status===`authenticated`&&(t?.enabled??!0),queryFn:async()=>{let t=await A().customers.getUnderShopsForEvent({eventId:e,locale:n.language});return t.ok?t.value.shops:[]}})}function jt(e,t){let n=O(e=>e.customer.status!==`pending`);return S({queryKey:[`event-availability`,e,t,O(e=>e.token)],enabled:n,queryFn:async()=>{let n=await A().events.getAvailabilities(e,t);if(!n.ok)throw n.error;return n.value}})}var Mt=e=>{let{i18n:t}=N([`page`]),{seller:n}=w();return S({queryKey:[`recommendations`,e._id],queryFn:()=>{let r=A(),i=e.upsellSettings?.crossSells?.eventIds??[];return i.length>0?r.events.getPublicListings({sellerId:n._id,eventIds:i,locale:t.language,endMin:je(new Date)}):r.events.getRecommendations(e._id,t.language)}})},Nt=({children:e,condition:t=()=>q.Children.toArray(e).filter(e=>!!e).length>0,...n})=>t()?(0,J.jsx)(`div`,{...n,children:e}):null;function Pt(){let[e,t]=(0,q.useState)(!1);return(0,q.useEffect)(()=>{t(!0)},[]),e}var Ft=e=>{let{t}=N([`page`]),{data:n=[]}=Mt(e.event);return n.length===0?null:(0,J.jsxs)(`section`,{"aria-labelledby":`recommendations-heading`,children:[(0,J.jsx)(`h2`,{id:`recommendations-heading`,className:`text-2xl font-semibold text-tight font-heading`,children:t(`page:event.otherEvents`)}),(0,J.jsx)(`ul`,{role:`list`,className:`list-none grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 py-4 md:auto-rows-auto`,children:n.map(e=>(0,J.jsx)(`li`,{className:`flex`,children:(0,J.jsx)(fe,{event:e})},e._id))})]})};function It(e){let{t}=N([`page`]);return(0,J.jsx)(T,{open:!0,onOpenChange:()=>e.onCancel(),children:(0,J.jsxs)(b,{children:[(0,J.jsx)(ne,{children:t(`page:event.shopSelect.title`)}),(0,J.jsx)(C,{children:t(`page:event.shopSelect.description`)}),(0,J.jsx)(`div`,{children:(0,J.jsx)(`div`,{className:`flex flex-col divide-y`,children:e.shops.map(t=>(0,J.jsx)(`div`,{className:`flex flex-col`,children:(0,J.jsxs)(j,{variant:`ghost`,className:`justify-start h-auto py-3 -mx-3`,onClick:()=>e.onSelect(t),children:[(0,J.jsx)(`span`,{className:`font-medium whitespace-normal`,children:t.name}),(0,J.jsx)(me,{className:`ms-auto`})]})}))})})]})})}function Lt(){let[e,t]=(0,q.useState)(null);return(0,q.useEffect)(()=>{let e=()=>{t(null)};return window.addEventListener(`pageshow`,e),()=>window.removeEventListener(`pageshow`,e)},[]),{transition:e,start:({x:e,y:n})=>{t({x:e,y:n,active:!1}),requestAnimationFrame(()=>{t({x:e,y:n,active:!0})})}}}function Rt({loaderData:{event:e,shop:t,signedStaticMapUrl:r},params:{slug:i}}){let{seller:a,config:{menu:s}}=w(),{t:p,i18n:g}=N([`page`,`event`,`common`]),y=D(),b=jt(e._id,t.shopId),S=Lt(),C=S.transition,T=At(e._id,{enabled:!t.shopId}),ne=O(e=>
5e.customer).status===`pending`,k=ie(),A=re(),[M,ae]=(0,q.useState)(void 0),oe=n(),se=Pt(),le=ce(n=>{n.length===1&&!t.shopId&&A(v.event(e,n[0]._id))});(0,q.useEffect)(()=>{le(T.data)},[T.data,le]);let P=Se(),I=E(e.components??[]).find(e=>e.slot===te.event_page_main_content)?.components??[],L=I.find(e=>e.type===`gallery`),fe=L?.items?.length?L.items:e.gallery,R=()=>!e.styleOptions.hideStartingPrice&&e.eventType!=_.root&&t.saleStatus!==z.soldOut,pe=()=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`flex flex-col-reverse md:flex-row gap-3 md:gap-6 md:items-center mb-1`,children:[(0,J.jsx)(`div`,{children:(0,J.jsx)(`h1`,{className:F(`font-bold tracking-tight font-heading text-default`,e.styleOptions.headerStyle===`video`?`text-5xl md:text-6xl lg:text-7xl`:`text-3xl md:text-4xl lg:text-5xl`),children:e.name})}),e.styleOptions.headerStyle==`1vs1`&&e.styleOptions.brandTwo&&(0,J.jsxs)(`div`,{className:`flex flex-row gap-2 shrink-0`,children:[e.styleOptions.brandOne&&(0,J.jsx)(o,{src:e.styleOptions.brandOne,height:48,objectFit:`contain`,backgroundColor:`transparent`,className:`h-12 object-contain shrink-0`,loading:`eager`,alt:``}),e.styleOptions.brandTwo&&(0,J.jsx)(o,{src:e.styleOptions.brandTwo,height:48,objectFit:`contain`,backgroundColor:`transparent`,className:`h-12 object-contain shrink-0`,loading:`eager`,alt:``})]})]}),e.slogan&&(0,J.jsx)(`span`,{className:`text-lg tracking-tight text-balance text-light`,children:e.slogan})]}),me=()=>e.styleOptions.headerStyle==`video`&&e.styleOptions.video?(0,J.jsxs)(`div`,{className:`h-[450px] md:h-[520px] lg:h-[640px] w-full relative mb-0 dark select-none`,children:[(0,J.jsx)(ye,{videoUrl:e.styleOptions.video,className:`w-full h-full object-cover`,width:1920,aspect:[16,7],duration:ge}),(0,J.jsx)(`div`,{className:`absolute inset-0 bg-black/20 z-10`}),(0,J.jsx)(`div`,{className:`absolute w-full top-0 h-24 bg-gradient-to-b from-black/80 to-transparent pointer-events-none z-10`}),(0,J.jsx)(`div`,{className:`absolute w-full bottom-0 h-24 bg-gradient-to-t from-black/80 to-transparent pointer-events-none z-10`}),(0,J.jsx)(`div`,{className:`absolute inset-0 z-20 flex items-end pb-8 md:pb-12`,children:(0,J.jsx)(`div`,{className:`container`,children:pe()})})]}):(0,J.jsxs)(`div`,{className:`relative z-10`,children:[e.styleOptions.headerStyle===`video_gallery`&&e.styleOptions.video?(0,J.jsx)(`div`,{className:`absolute inset-0 overflow-hidden`,children:(0,J.jsx)(ye,{videoUrl:e.styleOptions.video,className:`w-full h-full object-cover aspect-1210/450 blur-2xl brightness-75 scale-125`,width:100,aspect:[16,9],duration:ge})}):(0,J.jsx)(o,{src:e.image,width:121,height:45,blur:10,objectFit:`cover`,className:`aspect-1210/450 object-cover w-full h-full absolute inset-0`,alt:``,crossOrigin:`anonymous`}),(0,J.jsx)(`div`,{className:`absolute inset-0 pointer-events-none overflow-hidden`,children:(0,J.jsx)(`div`,{className:`absolute -top-4 -left-4 -right-12 -mx-4 h-36 bg-gradient-to-b from-black/70 blur-2xl to-transparent `})}),(0,J.jsx)(`div`,{className:`bg-gradient-to-b from-transparent via-background/0 to-background -bottom-1 w-full h-[calc(100%+var(--spacing))] absolute z-0`}),(0,J.jsx)(`div`,{className:`relative container pt-[calc(var(--header-height)+calc(var(--spacing)*1))] md:pt-[calc(var(--header-height)+calc(var(--spacing)*4))] mx-auto`,children:(0,J.jsx)(`div`,{className:`flex flex-col space-y-8 lg:space-y-12`,children:(0,J.jsxs)(`div`,{className:F(``,{"grid gap-4 grid-cols-1 md:grid-cols-[16fr_9fr]":e.styleOptions.headerStyle==`video_gallery`}),children:[(0,J.jsx)(`div`,{className:`rounded-lg md:rounded-xl overflow-hidden shadow-xl`,children:e.styleOptions.headerStyle==`video_gallery`&&e.styleOptions.video?(0,J.jsx)(ye,{videoUrl:e.styleOptions.video,className:`w-full h-full aspect-video object-cover`,width:800,aspect:[16,9],duration:ge}):(0,J.jsx)(o,{src:e.image,width:1345,height:500,objectFit:`cover`,className:`aspect-1210/450 object-cover w-full`,alt:``,crossOrigin:`anonymous`})}),e.styleOptions.headerStyle==`video_gallery`&&(0,J.jsx)(`div`,{className:`grid-cols-2 gap-4 hidden md:grid`,children:Array.from({length:4}).map((t,n)=>{let r=e.gallery?.[n],i=n===3,a=(e.gallery?.length??0)>4;return r?(0,J.jsx)(Q,{onClick:()=>P.selectImage(n),item:r,showMoreOverlay:i&&a,remainingCount:e.gallery.length-4,className:`rounded-lg md:rounded-xl`},r._id):(0,J.jsx)(`div`,{className:`bg-gray-200/30 backdrop-blur-md rounded-lg md:rounded-xl aspect-square`},n)})})]})})})]}),he=e.styleOptions.headerStyle===`video`&&!!e.styleOptions.video||e.styleOptions.headerStyle===`video_gallery`&&!!e.styleOptions.video||!!e.image,_e=()=>{let{showStartDate:n,showEndDate:r}=f(e),i=n||r;return(0,J.jsxs)(J.Fragment,{children:[e.eventType!=_.root&&i&&(0,J.jsxs)(`div`,{className:`flex flex-row gap-2 items-center text-sm`,children:[(0,J.jsx)(ue,{className:`flex-shrink-0 w-10 h-10 bg-gray-25 p-2 rounded text-light`}),(0,J.jsx)(u,{event:e})]}),!e.styleOptions.hideLocationAddress&&(0,J.jsxs)(`a`,{href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(`${e.location.locationName}, ${e.location.locationStreet}, ${U(e.location)}`)}`,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex flex-row gap-2 text-sm rounded-md`,children:[(0,J.jsx)(de,{className:`flex-shrink-0 w-10 h-10 bg-gray-25 p-2 rounded text-light`}),(0,J.jsxs)(`address`,{className:`not-italic`,children:[(0,J.jsxs)(`span`,{className:`font-medium inline-flex items-center gap-1`,children:[e.location.locationName,(0,J.jsx)(ee,{className:`size-3`})]}),(0,J.jsx)(`div`,{className:`flex flex-col lg:flex-row text-light`,children:(0,J.jsxs)(`span`,{children:[e.location.locationStreet,`,\xA0`,U(e.location)]})})]}),(0,J.jsx)(`span`,{className:`sr-only`,children:p(`common:newTabHint`)})]}),R()&&(0,J.jsxs)(`div`,{className:`flex flex-row gap-2 items-center`,children:[(0,J.jsx)(Ce,{className:`flex-shrink-0 w-10 h-10 bg-gray-25 p-2 rounded text-light`}),(0,J.jsxs)(`dl`,{className:`m-0`,children:[(0,J.jsx)(`dt`,{className:`text-sm text-light`,children:p(`event:ticketsFrom`)}),(0,J.jsx)(`dd`,{className:`text-sm font-medium m-0`,children:x(g.language,t.startingPrice,a.currency)})]})]})]})},B=async n=>
5{let r=n.currentTarget.getBoundingClientRect(),i=r.left+r.width/2,a=r.top+r.height/2,o=t.shopId;if(T.data.length>0&&!o){let e=await k(e=>(0,J.jsx)(It,{shops:T.data,onCancel:()=>e.resolve(null),onSelect:t=>e.resolve(t)}));if(!e)return;o=e._id}S.start({x:i,y:a});let s=M??e,c=s.customSettings?.useAlphaCheckout?v.alphaCheckout(s._id,o):v.checkout(s._id,o);setTimeout(()=>{A(c)},0)},V=!I.some(e=>e.type===`text`),xe=e.customTextConfig?.buyTicketsCTA||p(`event:buyTickets`);return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)($,{event:e,seller:a,shop:t,availability:b.data,isLoading:b.isLoading||ne||T.isLoading,onBuyTicketsClick:e=>B(e),hasShops:T.data.length>0,isDisabled:e.eventType===_.root&&!M,children:[(0,J.jsx)(Fe,{fallbackPageTitle:e.name,meta:{title:e.seoSettings?.title,description:e.seoSettings?.description||e.slogan,ogImage:e.image,noIndex:e.seoSettings?.noIndex}}),(0,J.jsx)(Te,{withForceRefresh:!0}),e.eventType!==_.root&&(0,J.jsx)(kt,{event:e,shop:t}),(0,J.jsx)(We,{components:I}),(0,J.jsx)(be,{seller:a,transparent:he,menu:s}),(0,J.jsxs)(`main`,{id:`main-content`,className:`flex flex-col z-0`,children:[me(),(0,J.jsxs)(`div`,{className:`container mx-auto mt-4 md:mt-8 pb-8 md:pb-12`,children:[(0,J.jsxs)(`div`,{className:`flex flex-col gap-6 md:flex-row md:gap-9`,children:[(0,J.jsxs)(`div`,{className:`pt-0 flex w-full flex-col space-y-8 md:space-y-12 lg:space-y-16 min-w-0`,children:[(0,J.jsxs)(`div`,{className:F(`flex flex-col gap-6 md:gap-8`,{"md:hidden":e.styleOptions?.headerStyle===`video`&&!t.ticketShopHeaderText&&!V}),children:[e.styleOptions?.headerStyle!=`video`&&(0,J.jsx)(`div`,{children:pe()}),(0,J.jsx)(`div`,{className:`md:hidden`,children:(0,J.jsxs)(`div`,{className:`flex flex-col space-y-6`,children:[(0,J.jsx)($.Info,{}),(0,J.jsx)(`div`,{className:`flex flex-col space-y-4`,children:_e()})]})}),(0,J.jsxs)(Nt,{className:`flex flex-col`,children:[t.ticketShopHeaderText&&(0,J.jsx)(`div`,{className:`text-light rounded-md p-4 bg-gray-25 mb-6 md:mb-8`,children:(0,J.jsx)(Ke,{text:t.ticketShopHeaderText})}),V&&(0,J.jsx)(mt,{content:e.description})]})]}),!I.some(e=>e.type===`video`)&&e.video?.youtubeID&&(0,J.jsxs)(`section`,{"aria-labelledby":`video-heading`,className:`flex flex-col space-y-4`,children:[(0,J.jsx)(`h2`,{id:`video-heading`,className:`text-2xl font-semibold text-tight font-heading`,children:p(`page:event.video.title`)}),(0,J.jsx)(Z,{fallback:(0,J.jsx)(`div`,{className:`aspect-video rounded-lg bg-gray-200`}),children:(0,J.jsx)(it,{videoId:e.video.youtubeID,title:e.name})})]}),I.length>0&&(0,J.jsx)(xt,{components:I,mapContext:{location:e.location,signedStaticMapUrl:r,seating:e.seating},galleryContext:{gallery:fe??[],onClickOnThumbnail:P.selectImage},videoContext:{eventName:e.name}}),!I.some(e=>e.type===`gallery`)&&e.gallery&&e.gallery.length>0&&(0,J.jsx)(lt,{gallery:e.gallery,onClickOnThumbnail:P.selectImage}),!e.styleOptions.hideLocationMap&&!I.some(e=>e.type===`map`)&&(0,J.jsx)(pt,{location:e.location,signedStaticMapUrl:r,seating:e.seating})]}),(0,J.jsx)(`div`,{className:`min-w-100vw md:min-w-[45%] lg:min-w-[35.5%] xl:min-w-[480px] sticky max-sm:hidden`,children:(0,J.jsx)(`div`,{className:`sticky top-[calc(var(--header-offset)+calc(var(--spacing)*4))] z-10 `+y.bodyBgMode,children:(0,J.jsxs)(`section`,{id:`ticket-purchase`,"aria-labelledby":`ticket-purchase-heading`,className:`hidden md:flex flex-col bg-surface dark:bg-gray-25 w-full shadow-lg rounded-lg overflow-hidden border border-foreground
5/10`,children:[e.eventType!==_.root&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`h2`,{id:`ticket-purchase-heading`,className:`mt-0 mx-0 text-subtle px-4 py-3 flex flex-col text-sm font-medium rounded-t-lg`,children:xe}),(0,J.jsx)(`div`,{className:`relative overflow-hidden`,children:(0,J.jsxs)(`div`,{className:`relative flex flex-col space-y-4 mt-4 px-4 pb-4`,children:[_e(),(0,J.jsxs)(`div`,{className:`mt-2 flex flex-col space-y-4`,children:[(0,J.jsx)($.Info,{}),(0,J.jsx)($.Button,{})]})]})})]}),e.eventType===_.root&&!oe&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(`h2`,{id:`ticket-purchase-heading`,className:`mt-0 mx-0 bg-gray-25 text-subtle px-4 py-3 flex flex-col text-sm font-medium rounded-t-lg`,children:p(`event:selectDate`)}),(0,J.jsxs)(J.Fragment,{children:[se?(0,J.jsx)(Y,{event:e,selectedRecurrence:M,seller:a,onRecurrenceSelected:e=>ae(e)}):(0,J.jsx)(Y.LoadingSpinner,{}),(0,J.jsx)(`div`,{className:`p-4 pt-0 mt-2`,children:(0,J.jsx)($.Button,{})})]})]})]})})})]}),e.showOtherEvents&&(0,J.jsx)(Z,{className:`mt-8 md:mt-12 lg:mt-16`,children:(0,J.jsx)(Ft,{event:e})})]})]}),(0,J.jsx)($.IfButton,{children:(0,J.jsxs)(`section`,{"aria-label":xe,className:`bg-surface h-20 shadow-[0_0_16px] shadow-black/20 left-0 right-0 border-t rounded-t-md fixed bottom-0 w-full md:hidden flex items-center z-fixed p-4`,children:[R()&&(0,J.jsx)(`div`,{className:`flex flex-1 flex-row gap-2 items-center`,children:(0,J.jsxs)(`dl`,{className:`m-0`,children:[(0,J.jsx)(`dt`,{className:`text-sm text-light`,children:p(`event:ticketsFrom`)}),(0,J.jsx)(`dd`,{className:`text-md font-medium m-0`,children:x(g.language,t.startingPrice,a.currency)})]})}),(0,J.jsx)(`div`,{className:`flex-1`,children:e.eventType===_.root?(0,J.jsxs)(h,{children:[(0,J.jsx)(d,{asChild:!0,children:(0,J.jsx)(j,{size:`xl`,className:`w-full`,variant:`primary`,children:p(`event:selectDate`)})}),(0,J.jsxs)(m,{className:`h-[85svh]`,children:[(0,J.jsx)(l,{className:`sr-only`,children:p(`event:selectDate`)}),(0,J.jsx)(c,{className:`sr-only`,children:p(`event:selectDate`)}),(0,J.jsx)(`div`,{className:`mt-4 flex-1 overflow-y-auto`,children:se?(0,J.jsx)(Y,{event:e,selectedRecurrence:M,seller:a,onRecurrenceSelected:e=>ae(e)}):(0,J.jsx)(Y.LoadingSpinner,{})}),(0,J.jsx)(`div`,{className:`p-4 pt-0 mt-2`,children:(0,J.jsx)($.Button,{})})]})]}):(0,J.jsx)($.Button,{})})]})}),(0,J.jsx)(ve,{}),(0,J.jsx)(we,{gallery:fe,selectedIndex:P.selectedIndex??0,open:P.isOpen,onClose:P.close,onSelect:P.selectImage}),C&&(0,J.jsxs)(`div`,{className:`fixed inset-0 z-[9999] pointer-events-none flex flex-col`,style:{clipPath:C.active?`circle(150vmax at `+C.x+`px `+C.y+`px)`:`circle(0px at `+C.x+`px `+C.y+`px)`,transition:`clip-path 400ms ease-out`},children:[(0,J.jsx)(`div`,{className:`bg-header h-[68px] shrink-0`}),(0,J.jsx)(`div`,{className:`bg-header h-4 shrink-0`}),(0,J.jsx)(`div`,{className:`bg-surface rounded-t-lg -mt-4 flex-1`})]})]})})}var zt=oe(function(e){return(0,J.jsx)(Rt,{...e},e.loaderData.event._id)});export{zt 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.