"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9544],{32937:function(e,t,n){n.d(t,{n:function(){return c}});var r=n(25640),o=n(91166),i=n(39981),l=n(85893),c=function(e){var t,n,c,s,a,u=e.event,d=(0,o.o8)().hasFeature;return(0,l.jsxs)(r.xu,{display:{_:"flex",md:"none"},position:"absolute",bottom:"16px",left:"16px",zIndex:2,maxW:"calc(100% - 32px)",flexDir:"column",children:[(0,l.jsx)(r.xv,{fontSize:6,lineHeight:"medium",fontWeight:"heavy",color:"white",mb:"1/2",ellipsis:!0,children:u.title}),(0,l.jsx)(r.kC,{mr:{_:2,md:4},flexDir:"column",minW:{_:"80px",md:"auto"},children:(0,l.jsx)(r.xv,{fontSize:1,lineHeight:"normal",mb:"1/4",color:"white",children:(0,i.hk)(null===u||void 0===u?void 0:u.startDate,null===u||void 0===u?void 0:u.endDate,{format:"basicLong",showStartTime:!d("hideEventTime"),timeZone:null===u||void 0===u||null===(t=u.venue)||void 0===t?void 0:t.timezone,locale:null===u||void 0===u||null===(n=u.venue)||void 0===n?void 0:n.locale})})}),(0,l.jsxs)(r.xv,{fontSize:1,lineHeight:"normal",color:"white",children:[null===(c=u.venue)||void 0===c?void 0:c.name,", ",null===(s=u.venue)||void 0===s||null===(a=s.address)||void 0===a?void 0:a.city]})]})}},12899:function(e,t,n){n.d(t,{F:function(){return Le}});var r=n(59499),o=n(67294),i=n(25640),l=n(40901),c=n(48380),s=n(42860),a=n(91166),u=n(28050),d=n(85893);function v(e){var t=e.backToLinkText,n=void 0===t?"Back to Events":t,r=e.backToLink,o=void 0===r?"/":r,c=e.tourId;return e.isSinglePage?null:(0,d.jsx)(i.rU,{to:c?"/tours/".concat(c):o,children:(0,d.jsxs)(i.kC,{alignItems:"center",opacity:"inherit",children:[(0,d.jsx)(l.JO,{icon:"chevron-left",fontSize:5,color:"N500"}),(0,d.jsx)(i.xv,{color:"N500",fontWeight:"extraBold",fontSize:3,lineHeight:"medium",ml:"3/4",children:n})]})})}var p=n(4730),f=n(24292),x=["children"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h="960px";function m(e){var t=e.children,n=(0,p.Z)(e,x);return(0,d.jsx)(i.xu,j(j({mx:"auto",maxW:h,as:"section"},(0,f.e)(n)),{},{children:t}))}var b=n(82156),O=["children"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e){var t=e.children,n=(0,p.Z)(e,O);return(0,d.jsx)(i.xu,P(P({borderRadius:"sm",boxShadow:"container",overflow:"hidden"},(0,f.e)(n)),{},{children:t}))}var C=["image","imageAlt","children"];function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e){var t=e.title,n=e.footer,r=void 0===n?null:n,o=e.children,l="string"===typeof r;return(0,d.jsxs)(i.kC,{style:{gap:"32px"},flexDirection:"column",padding:4,children:[t?(0,d.jsx)(i.xv,{color:"N800",fontSize:6,fontWeight:"extraBold",textAlign:"center",children:t}):null,o,l?(0,d.jsx)(i.xv,{color:"N700",fontWeight:"regular",fontSize:2,textAlign:"center",children:r}):null,l?null:r]})}function I(e){var t=e.image,n=e.imageAlt,r=e.children,o=(0,p.Z)(e,C);return(0,d.jsxs)(i.xu,{children:[e.image?(0,d.jsx)(b.ZP,{image:t,alt:null!==n&&void 0!==n?n:""}):null,(0,d.jsx)(k,S(S({},o),{},{children:r}))]})}function E(e){return(0,d.jsx)(w,S(S({},(0,f.e)(e)),{},{children:(0,d.jsx)(I,S({},(0,f.C)(e)))}))}var T=n(1979),z=n(85173),N=n(19818),Z=n(77495),_=n(29506),R=n(28872),A=n(39981),F=n(53218);function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e){var t,n,r,c=e.event,s=c.endDate,u=c.startDate,v=c.accessibility,p=c.venue,f=(0,a.o8)(),x=(f.organization,f.hasFeature),g=(0,o.useState)(!1),j=g[0],h=g[1],m=x("eventCalendarHomepage");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(N.P.Provider,{value:{size:24,weight:"light"},children:(0,d.jsxs)(i.kC,{flexDirection:"column",justifyContent:"space-between",style:{gap:"16px"},children:[(0,d.jsxs)(i.kC,{children:[(0,d.jsx)(l.JO,{icon:(0,d.jsx)(Z.Z,{}),color:"N800"}),(0,d.jsxs)(i.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,as:i.kC,children:[(0,A.hk)(u,s,{format:"basicLong",showStartTime:c.showStartTime,timeZone:null===p||void 0===p?void 0:p.timezone,locale:null===p||void 0===p?void 0:p.locale,doorsOpen:null===(t=c.dates)||void 0===t?void 0:t[0].doorsOpen,seating:null===p||void 0===p?void 0:p.seating}),m&&(0,d.jsx)(F.G,{children:(0,d.jsx)(i.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:"More dates"})})]})]}),(0,d.jsxs)(i.rU,{display:"flex",target:"_blank",href:"https://www.google.com/maps/search/?api=1&query=".concat(null===p||void 0===p||null===(n=p.location)||void 0===n?void 0:n.lat,",").concat(null===p||void 0===p||null===(r=p.location)||void 0===r?void 0:r.lng),children:[(0,d.jsx)(l.JO,{icon:(0,d.jsx)(_.Z,{}),color:"N800"}),(0,d.jsx)(i.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:(0,z.Z)(p)})]}),v&&(0,d.jsxs)(i.kC,{children:[(0,d.jsx)(l.JO,{icon:(0,d.jsx)(R.Z,{}),color:"N800"}),(0,d.jsx)(i.tg,{onClick:function(){return h(!0)},color:"N800",children:(0,d.jsx)(i.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:"Accessibility Info"})})]})]})}),(0,d.jsx)(l.K5,{isOpen:j,setIsOpen:function(){return h(!1)},title:"Accessibility",richText:null===c||void 0===c?void 0:c.accessibility})]})}function U(e){var t=e.event,n=t.descriptionImage,r=t.description,o=(0,T.Z)(r);return(0,d.jsxs)(i.xu,{mt:5,children:[(0,d.jsx)(l.kq,{value:r,mb:3}),n&&(0,d.jsx)(b.ZP,{image:n,alt:o})]})}function H(e){var t=(0,a.o8)().organization,n=e.event,r=n.termsAndConditions,o=n.id;return(null!==r&&void 0!==r?r:t.termsAndConditions)?(0,d.jsx)(i.tg,{color:"N800",to:"/events/".concat(o,"/terms-and-conditions"),mt:5,children:(0,d.jsx)(i.xv,{variant:"regular",children:"Terms & Conditions"})}):null}function K(e){return(0,d.jsxs)(i.xu,B(B({},(0,f.e)(e)),{},{children:[(0,d.jsx)(U,B({},e)),(0,d.jsx)(H,B({},e))]}))}var q=n(11163),M=n.n(q),J=n(80129),G=n.n(J);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){var t=(0,q.useRouter)(),n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t.query);delete n.eventId;var i=G().stringify(n),l="/events/".concat(e,"/reservation"),c=i?"".concat(l,"?").concat(i):l;(0,o.useEffect)((function(){t.prefetch(c)}),[e]);return{navigate:function(){t.push(c)},url:c}}var X=n(39138),$=n(26322);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e){return ee(ee({},e),{},{prizes:e.prizes.sort((function(e,t){return e.prizeOrder-t.prizeOrder}))})}var ne=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=(0,q.useRouter)(),o=(0,$.H)(),i=o.competition,l=(0,$.J)(),c=!!r.query.slug,s=(null===t||void 0===t?void 0:t.isActive)&&c||(null===e||void 0===e?void 0:e.hasPublicRelease),a=n.find((function(e){return e.competitionType===X.yPA.Onsale})),u=!!a,d=e.isWaitlistAvailable,v=n.find((function(e){return e.competitionType===X.yPA.Registration})),p=!!v;return l&&i?{state:i.competitionType===X.yPA.Registration?"registration-competition":"onsale-competition",event:e,competition:te(i)}:s&&!u?{state:"onsale",event:e}:s&&u?{state:"onsale-competition",event:e,competition:te(a)}:d&&!p?{state:"registration",event:e}:d&&p?{state:"registration-competition",event:e,competition:te(v)}:{state:"info",event:e}};function re(e){return["registration","registration-competition"].includes(e.state)?"registration":["onsale","onsale-competition"].includes(e.state)?"onsale":"info"===e.state?"info":"unknown"}function oe(e){return le(e)||se(e)?e.competition:void 0}function ie(e){return"registration"===e.state}function le(e){return"registration-competition"===e.state}function ce(e){return"onsale"===e.state}function se(e){return"onsale-competition"===e.state}var ae=n(2896),ue=n(99881);function de(e){var t,n,o=e.pageContext,l=Y(o.event.id),c=l.navigate,s=l.url,u=(0,a.o8)().organization,v=null===(t=oe(o))||void 0===t?void 0:t.id,p=(0,ae.Z)({forwardToNest:!0,eventId:o.event.id,pageName:"event-details-page",attributes:(n={},(0,r.Z)(n,ue.UD.FLICKET_COMPETITION_ID,v),(0,r.Z)(n,ue.UD.FLICKET_EVENT_PHASE,re(o)),n)}),f="Register";"c8f276b9-87d5-42c8-ba3f-102089545cde"===u.id&&(f="Join the club");return ce(o)||se(o)?(0,d.jsx)(i.KM,{width:"100%",to:s,onClick:p((function(){return c()}),ue.Fv.BUTTON_PRIMARY,(0,r.Z)({},ue.UD.BUTTON_LABEL,"Buy tickets")),children:(0,d.jsx)(i.xv,{fontSize:3,children:"Buy tickets"})}):ie(o)||le(o)?(0,d.jsx)(i.KM,{width:"100%",to:"/events/".concat(o.event.id,"/registration"),onClick:p(void 0,"register-button"),children:(0,d.jsx)(i.xv,{fontSize:3,children:f})}):null}var ve=n(50029),pe=n(87794),fe=n.n(pe),xe=n(28712),ge=n(48649);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e){return!!!(0,q.useRouter)().query.slug&&e}function be(e){var t=e.event,n=t.id,r=t.enableReleaseCodes,o=(0,a.o8)().organization,l=function(e){var t=(0,a.o8)().organization,n=(0,q.useRouter)(),r=!!n.query.cartRecovery,o=function(){var o=(0,ve.Z)(fe().mark((function o(i){var l,c,s,a,u,d,v,p,f;return fe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=document.getElementById(i),u=null===(l=a.value)||void 0===l?void 0:l.trim()){o.next=4;break}return o.abrupt("return");case 4:return o.next=6,(0,xe.N4)((0,ve.Z)(fe().mark((function n(){return fe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,ge.SZ)({orgId:null===t||void 0===t?void 0:t.id}).validateReleasePasswordOrRelease({eventId:e,password:u}));case 1:case"end":return n.stop()}}),n)}))));case 6:if(d=o.sent,v=d.data,p=d.error,null!==v&&void 0!==v&&v.validateReleasePasswordOrRelease){o.next=12;break}return(0,xe.CF)("Invalid access code","error"),o.abrupt("return");case 12:if(!p){o.next=15;break}return(0,xe.CF)("Failed to find access code","error"),o.abrupt("return");case 15:null!==v&&void 0!==v&&null!==(c=v.validateReleasePasswordOrRelease)&&void 0!==c&&c.releasePasswordId&&sessionStorage.setItem("releasePasswordId",null===v||void 0===v||null===(f=v.validateReleasePasswordOrRelease)||void 0===f?void 0:f.releasePasswordId),n.push({pathname:"/".concat(e,"/releases/").concat(encodeURIComponent(null===v||void 0===v?void 0:v.validateReleasePasswordOrRelease.slug)),query:he({code:null!==v&&void 0!==v&&null!==(s=v.validateReleasePasswordOrRelease)&&void 0!==s&&s.password?void 0:u},r?{cartRecovery:"true"}:{})});case 17:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}();return o}(n);return me(r)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.kC,{justifyContent:"center",children:(0,d.jsx)(i.oi,{name:"reservationInput",id:"reservationInput",width:"100%",placeholder:"45339f71-c0bb-41a9-b642-7d30f1321a84"===(null===o||void 0===o?void 0:o.id)?"Club/School/Sponsor Code":"Enter access code"})}),(0,d.jsx)(i.kC,{mt:2,justifyContent:"center",children:(0,d.jsx)(i.kq,{fontSize:3,boxShadow:"button",onClick:function(){l("reservationInput")},width:"100%",children:"45339f71-c0bb-41a9-b642-7d30f1321a84"===(null===o||void 0===o?void 0:o.id)?"Club/School/Sponsor Code":"Access tickets"})})]}):null}var Oe,ye=n(71383),Pe=n(59016),we=n(41664),Ce=n.n(we);function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ke(e){var t=e.title,n=e.description,r=e.quantity,o=e.image,l=e.link;return(0,d.jsx)(w,Se(Se({},(0,f.e)(e)),{},{children:(0,d.jsx)(Ce(),{href:l,children:(0,d.jsxs)(i.kC,{flexDirection:["column","column","row"],cursor:"pointer",backgroundColor:"white",children:[o&&(0,d.jsx)(i.xu,{p:{xs:4},pr:{xs:0},flex:[1,1,"0 0 335px"],children:(0,d.jsx)(b.ZP,{image:o,alt:"string"===typeof t?t:"",style:{objectFit:"cover",height:"100%",width:"100%"},borderRadius:{xs:"sm"}})}),(0,d.jsxs)(i.kC,{style:{gap:"16px"},flex:1,background:"white",flexDirection:"column",padding:4,children:[t&&(0,d.jsx)(i.xv,{color:"N800",fontSize:4,fontWeight:"extraBold",children:t}),(0,d.jsx)(i.xv,{fontSize:3,children:n}),r>0&&(0,d.jsx)(i.xv,{color:"N700",fontWeight:"extraBold",fontSize:3,children:"".concat(r," to give away")})]})]})})}))}var Ie=(0,Pe.vJ)(Oe||(Oe=(0,ye.Z)(["\n  html, body {\n    scroll-behavior: smooth;\n    scroll-margin-top: 64px;\n  }\n\n  /**\n   * Disable smooth scrolling when users have prefers-reduced-motion enabled\n   */\n  @media screen and (prefers-reduced-motion: reduce) {\n    html, body {\n      scroll-behavior: auto;\n    }\n  }\n"]))),Ee=(0,Pe.ZP)(i.xu).withConfig({displayName:"CompetitionDetails___StyledBox",componentId:"sc-187z5ep-0"})({scrollPaddingTop:"64px"});function Te(e){var t=e.eventId,n=e.competition,r=(0,o.useState)(),c=r[0],s=r[1];if(!n)return null;var a=n.title,v=n.description,p=n.prizes,f=n.termsAndConditions,x=n.competitionType===u.yPA.Registration?"/events/".concat(t,"/registration"):"/events/".concat(t,"/reservation");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ie,{}),(0,d.jsxs)(Ee,{as:"section",background:"#F9F9FB",pt:8,pb:6,my:0,mx:["-16px","-16px","-16px","-16px","-32px"],px:[2,2,2,4],id:"competition-details",children:[(0,d.jsxs)(i.xu,{maxWidth:h,mx:"auto",children:[a||v?(0,d.jsxs)(i.xu,{mb:7,children:[a?(0,d.jsx)(i.xv,{color:"N800",fontSize:6,fontWeight:"extraBold",mb:v?3:0,children:a}):null,v?(0,d.jsx)(i.xv,{color:"N700",fontSize:3,children:v}):null]}):null,p&&0!==p.length?(0,d.jsxs)(i.xu,{mb:f?8:0,children:[(0,d.jsx)(i.xv,{color:"N800",fontSize:6,fontWeight:"extraBold",mb:3,children:"Prizes up for grabs"}),p.sort((function(e,t){return e.prizeOrder-t.prizeOrder})).map((function(e,t){return(0,d.jsx)(ke,{title:e.title,image:e.image,quantity:e.quantity,description:e.description,mb:t===p.length-1?0:4,link:x},e.id)}))]}):null,f?(0,d.jsx)(i.xu,{children:(0,d.jsx)(i.tg,{onClick:function(){return s("terms")},children:(0,d.jsx)(i.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:"Competition Terms & Conditions"})})}):null]}),(0,d.jsx)(l.K5,{isOpen:"terms"===c,setIsOpen:function(){return s(void 0)},title:"Competition Terms & Conditions",richText:f})]})]})}function ze(e){var t,n,r,o=(0,A.vX)(null===(t=e.competition)||void 0===t?void 0:t.endDate,"datetime",{timeZone:null===(n=e.venue)||void 0===n?void 0:n.timezone,locale:null===(r=e.venue)||void 0===r?void 0:r.locale}),l="Competition closes ".concat(o);return(0,d.jsxs)(i.kC,{flexDirection:"column",style:{gap:"12px"},children:[(0,d.jsx)(i.xv,{color:"N700",fontWeight:"regular",fontSize:2,textAlign:"center",children:l}),(0,d.jsx)(i.xu,{textAlign:"center",children:(0,d.jsx)(i.tg,{href:"#competition-details",color:"N800",fontSize:3,fontWeight:"regular",children:"More info"})})]})}var Ne=function(e){var t,n,r,o,c,s=e.pageContext,p=e.event,f=e.isSinglePage,x=p.title,g=p.logo,j=p.backgroundImage,h=p.backgroundImageFullPage,b=p.season,O=p.enableReleaseCodes,y=(0,a.o8)(),P=y.organization,w=y.hasFeature,C=me(O),D=w("eventCalendarHomepage");return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(l._z,{backgroundImage:j,backgroundImageFullPage:h,bannerImage:g,titleText:x,footer:(0,d.jsx)(l.$_,{}),children:[!D&&(0,d.jsx)(v,{isSinglePage:f,tourId:P.landingPage===u.fyD.Tours&&b?b.id:null}),(0,d.jsx)(m,{mt:4,mb:6,children:(0,d.jsx)(i.xv,{as:"h1",color:"N800",fontWeight:"extraBold",fontSize:9,lineHeight:"56px",children:x})}),(0,d.jsx)(m,{mb:[8,5],children:(0,d.jsxs)(i.kC,{justifyContent:"space-between",style:{gap:"65px"},children:[(0,d.jsxs)(i.xu,{flex:2,minWidth:0,children:[(0,d.jsx)(i.iz,{mb:5}),(0,d.jsx)(L,{event:p}),(0,d.jsx)(i.iz,{my:[5,4]}),(0,d.jsx)(K,{event:p})]}),(0,d.jsxs)(i.xu,{flex:"0 0 370px",children:[ie(s)?(0,d.jsx)(E,{title:"Register to get notified when tickets are available!",children:(0,d.jsx)(de,{pageContext:s})}):null,le(s)||se(s)?(0,d.jsx)(E,{title:null===(t=s.competition)||void 0===t?void 0:t.title,image:null===(n=s.competition)||void 0===n||null===(r=n.prizes)||void 0===r?void 0:r[0].image,imageAlt:null===(o=s.competition)||void 0===o?void 0:o.title,footer:(0,d.jsx)(ze,{competition:s.competition,venue:null===p||void 0===p?void 0:p.venue}),children:(0,d.jsx)(de,{pageContext:s})}):null,ce(s)?(0,d.jsx)(E,{title:"Secure your tickets today!",children:(0,d.jsx)(de,{pageContext:s})}):null,C&&(0,d.jsx)(E,{title:"Have an access code?",mt:4,children:(0,d.jsx)(i.xu,{children:(0,d.jsx)(be,{event:p})})})]})]})}),se(s)||le(s)?(0,d.jsx)(Te,{competition:s.competition,eventId:null===(c=s.event)||void 0===c?void 0:c.id}):null]})})},Ze=function(e){var t,n,r,o,l,c=e.pageContext,s=c.event,a=s.title,u=s.logo,v=le(c)||se(c);return(0,d.jsx)(i.kC,{flexDir:"column",px:2,pb:5,overflowY:"auto",flex:"1",children:(0,d.jsxs)(i.xu,{flex:"1",children:[(0,d.jsx)(i.xu,{height:0,width:"100%",mt:4}),u&&(0,d.jsx)(b.ZP,{alt:a,mb:4,image:u}),(0,d.jsx)(L,{event:s}),v?(0,d.jsx)(E,{mt:5,title:null===(t=c.competition)||void 0===t?void 0:t.title,image:null===(n=c.competition)||void 0===n||null===(r=n.prizes)||void 0===r?void 0:r[0].image,imageAlt:null===(o=c.competition)||void 0===o?void 0:o.title,footer:(0,d.jsx)(ze,{competition:c.competition,venue:null===s||void 0===s?void 0:s.venue})}):null,!v&&(0,d.jsx)(i.iz,{my:4}),(0,d.jsx)(K,{event:s,mb:5}),v?(0,d.jsx)(Te,{competition:c.competition,eventId:null===(l=c.event)||void 0===l?void 0:l.id}):null]})})},_e=n(30007);function Re(e){var t=e.isOpen,n=e.onClose,r=e.event;return(0,d.jsx)(l.u_,{isOpen:t,onClose:n,children:(0,d.jsxs)(i.W2,{px:{_:0,md:2},minHeight:{_:"100%",md:"auto"},innerProps:{p:{_:2,md:4},minHeight:{_:"100%",md:"auto"},display:"flex",flexDirection:"column",flex:1,maxWidth:"800px"},children:[(0,d.jsx)(i.kC,{alignItems:"center",flexDirection:"row-reverse",justifyContent:"space-between",children:(0,d.jsx)(i.F6,{onClick:n,children:(0,d.jsx)(l.JO,{icon:"close",fontSize:6})})}),(0,d.jsxs)(i.kC,{mt:3,mb:7,flexDir:"column",flex:"1",justifyContent:"center",children:[(0,d.jsx)(i.xv,{fontWeight:"extraBold",fontSize:6,color:"N800",textAlign:"center",mb:4,children:"Have an access code?"}),(0,d.jsx)(be,{event:r})]})]})})}var Ae=n(23986),Fe=n(55186),We=n(24154),Be=n(11263),Le=function(e){var t,n,u,v,p,f,x=e.event,g=e.release,j=(0,_e.p)(x.id),h=j.activeCompetitions,m=j.isLoading,b=ne(x,g,h),O=(0,o.useState)(),y=O[0],P=O[1],w=(0,a.dD)(),C=(0,Be.W5)(),D=(0,o.useContext)(c.rC),S=D.isSinglePage,k=D.organization,I=me(x.enableReleaseCodes),E=null===(t=oe(b))||void 0===t?void 0:t.id,T=I?"110px":"70px";return(0,Fe.no)(!(null===x||void 0===x||!x.id),ue.q.EVENT_DETAILS_PAGE,null===x||void 0===x?void 0:x.id),(0,Ae.Z)(ue.q.EVENT_DETAILS_PAGE,{forwardToNest:!0,eventId:x.id,attributes:(n={},(0,r.Z)(n,ue.UD.FLICKET_EVENT_DETAILS_PAGE_STATE,b.state),(0,r.Z)(n,ue.UD.FLICKET_COMPETITION_ID,E),n)},!m),(0,o.useEffect)((function(){var e;sessionStorage.removeItem("accessCodeId"),null===C||void 0===C||null===(e=C.track)||void 0===e||e.viewProduct({productIdentifier:null===x||void 0===x?void 0:x.id,productName:null===x||void 0===x?void 0:x.title})}),[]),(0,d.jsxs)(l.qb,{loading:m,error:!1,children:[w&&(0,d.jsxs)(i.xu,{d:{_:"flex",md:"none"},flexDirection:"column",flex:1,pt:S?15:0,children:[!S&&(0,d.jsx)(We.Z,{type:"event",title:x.title,startDate:null===x||void 0===x?void 0:x.startDate,endDate:null===x||void 0===x?void 0:x.endDate,venue:null===x||void 0===x?void 0:x.venue,goBack:function(){M().push("/")},accessibility:null===x||void 0===x?void 0:x.accessibility,supportInfo:null===k||void 0===k?void 0:k.supportInfo,image:null===x||void 0===x?void 0:x.logo,description:null===x||void 0===x?void 0:x.description,coordinates:"".concat(null===x||void 0===x||null===(u=x.venue)||void 0===u||null===(v=u.location)||void 0===v?void 0:v.lat,",").concat(null===x||void 0===x||null===(p=x.venue)||void 0===p||null===(f=p.location)||void 0===f?void 0:f.lng)}),(0,d.jsx)(i.xu,{display:"flex",flex:1,"flex-direction":"column",position:"relative",width:"100%",maxWidth:"100vw",pt:S?0:6,paddingBottom:T,children:(0,d.jsx)(Ze,{pageContext:b})}),(0,d.jsxs)(i.kC,{height:T,flexDirection:"column",justifyContent:"center",position:"fixed",bottom:0,left:0,right:0,px:2,py:1,background:"white",borderTop:"1px solid",borderColor:"N200",children:[(0,d.jsx)(de,{pageContext:b}),I&&(0,d.jsx)(i.F6,{onClick:function(){return P("releaseCodes")},children:(0,d.jsx)(i.xv,{fontWeight:"extraBold",fontSize:3,color:"N800",my:"6/4",children:"Have an access code?"})})]})]}),!w&&(0,d.jsx)(i.xu,{d:{_:"none",md:"flex"},flexDirection:"column",flex:1,children:(0,d.jsx)(s.A,{layoutType:"main",children:(0,d.jsx)(Ne,{pageContext:b,event:x,isSinglePage:S})})}),(0,d.jsx)(Re,{isOpen:"releaseCodes"===y,onClose:function(){return P(void 0)},event:x})]})}},30007:function(e,t,n){n.d(t,{i:function(){return a},p:function(){return s}});var r=n(59499),o=n(39138),i=n(17703);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){var t,n=(0,i.a)(e?o.Lx0:null,{eventId:e});return c({activeCompetitions:null===(t=n.data)||void 0===t?void 0:t.activeCompetitions},n)}function a(e,t){var n,r=(0,i.a)(t?o.Eou:null,{input:{eventId:t,competitionType:e}});return c({activeCompetition:null===(n=r.data)||void 0===n?void 0:n.activeCompetitionByType},r)}},85173:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(66129);function o(e){var t,n;return"".concat([null===e||void 0===e?void 0:e.name,null!==e&&void 0!==e&&null!==(t=e.address)&&void 0!==t&&t.city?null===e||void 0===e||null===(n=e.address)||void 0===n?void 0:n.city:null].filter(r.j).join(", "))}},53218:function(e,t,n){n.d(t,{G:function(){return c}});var r=n(25640),o=n(67294),i=n(4108),l=n(85893);function c(e){var t=e.children,n=(0,o.useState)(!1),c=n[0],s=n[1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{isOpen:c,onClose:function(){return s(!1)}}),(0,l.jsx)(r.tg,{onClick:function(){return s(!0)},color:"N800",children:t})]})}},1979:function(e,t,n){var r=n(67294),o=n(99141);t.Z=function(e){return(0,r.useMemo)((function(){var t;return e&&null!==(t=(0,o.vA)({description:e})[0])&&void 0!==t?t:""}),[e])}},99141:function(e,t,n){n.d(t,{N:function(){return i},vA:function(){return o}});var r=function e(t){var n,r,o;return null!==t&&void 0!==t&&null!==(n=t.type)&&void 0!==n&&n.includes("-list")?null===t||void 0===t||null===(o=t.children)||void 0===o?void 0:o.flatMap((function(t){return e(t)})):null===t||void 0===t||null===(r=t.children)||void 0===r?void 0:r.flatMap((function(e){return(null===e||void 0===e?void 0:e.text)||""}))},o=function(e){return e.description?(JSON.parse(e.description)||[]).flatMap(r).filter(Boolean):""},i=function(e){var t=o(e);return"Buy official ".concat(e.title," tickets from Flicket. ").concat(t[0]||"",". ").concat(t[1]||"")}},2896:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(59499),o=n(64251),i=n(91166),l=n(43482),c=n(12016),s=n(99881);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.o8)(),n=t.organization,a=e.forwardToNest,d=e.eventId,v=e.attributes,p=e.pageName;return function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(f){var x,g="click",j=(0,l.Z)(),h=p?"".concat(p,".").concat(t):t;o.g.getTracer(c.or).startSpan(g,{attributes:u(u((x={},(0,r.Z)(x,s.UD.FLICKET_USER_INTERACTION_TYPE,g),(0,r.Z)(x,s.UD.FLICKET_USER_INTERACTION_NAME,h),(0,r.Z)(x,s.UD.FLICKET_SESSION_ID,j),(0,r.Z)(x,s.UD.FLICKET_EVENT_ID,d),(0,r.Z)(x,s.UD.FLICKET_ORG_ID,n.id),(0,r.Z)(x,s.UD.FLICKET_FORWARD_TO_NEST,a),(0,r.Z)(x,s.UD.FLICKET_TIMEZONE,(new window.Intl.DateTimeFormat).resolvedOptions().timeZone),(0,r.Z)(x,s.UD.HTTP_URL,window.location.href),x),v),i)}).end(),null===e||void 0===e||e(f)}}}}}]);
//# sourceMappingURL=9544-f40c8192c65721e0.js.map