"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9544],{32937:function(e,t,n){n.d(t,{n:function(){return l}});var r=n(25640),i=n(91166),o=n(39981),c=n(85893),l=function(e){var t,n,l,s,a,u=e.event,d=(0,i.o8)().hasFeature;return(0,c.jsxs)(r.xu,{display:{_:"flex",md:"none"},position:"absolute",bottom:"16px",left:"16px",zIndex:2,maxW:"calc(100% - 32px)",flexDir:"column",children:[(0,c.jsx)(r.xv,{fontSize:6,lineHeight:"medium",fontWeight:"heavy",color:"white",mb:"1/2",ellipsis:!0,children:u.title}),(0,c.jsx)(r.kC,{mr:{_:2,md:4},flexDir:"column",minW:{_:"80px",md:"auto"},children:(0,c.jsx)(r.xv,{fontSize:1,lineHeight:"normal",mb:"1/4",color:"white",children:(0,o.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,c.jsxs)(r.xv,{fontSize:1,lineHeight:"normal",color:"white",children:[null===(l=u.venue)||void 0===l?void 0:l.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 Be}});var r=n(59499),i=n(67294),o=n(25640),c=n(40901),l=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,i=void 0===r?"/":r,l=e.tourId;return e.isSinglePage?null:(0,d.jsx)(o.rU,{to:l?"/tours/".concat(l):i,children:(0,d.jsxs)(o.kC,{alignItems:"center",opacity:"inherit",children:[(0,d.jsx)(c.JO,{icon:"chevron-left",fontSize:5,color:"N500"}),(0,d.jsx)(o.xv,{color:"N500",fontWeight:"extraBold",fontSize:3,lineHeight:"medium",ml:"3/4",children:n})]})})}var p=n(4730),f=n(24292),x=["children"];function j(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 g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(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)(o.xu,g(g({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 w(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 P(e){var t=e.children,n=(0,p.Z)(e,O);return(0,d.jsx)(o.xu,w(w({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,i=e.children,c="string"===typeof r;return(0,d.jsxs)(o.kC,{style:{gap:"32px"},flexDirection:"column",padding:4,children:[t?(0,d.jsx)(o.xv,{color:"N800",fontSize:6,fontWeight:"extraBold",textAlign:"center",children:t}):null,i,c?(0,d.jsx)(o.xv,{color:"N700",fontWeight:"regular",fontSize:2,textAlign:"center",children:r}):null,c?null:r]})}function E(e){var t=e.image,n=e.imageAlt,r=e.children,i=(0,p.Z)(e,C);return(0,d.jsxs)(o.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({},i),{},{children:r}))]})}function T(e){return(0,d.jsx)(P,S(S({},(0,f.e)(e)),{},{children:(0,d.jsx)(E,S({},(0,f.C)(e)))}))}var I=n(1979),z=n(53321),N=n(19818),Z=n(77495),_=n(29506),A=n(28872),R=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=e.event,l=r.endDate,s=r.startDate,u=r.accessibility,v=r.venue,p=(0,a.o8)(),f=(p.organization,p.hasFeature),x=(0,i.useState)(!1),j=x[0],g=x[1],h=f("eventCalendarHomepage");return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(N.P.Provider,{value:{size:24,weight:"light"},children:(0,d.jsxs)(o.kC,{flexDirection:"column",justifyContent:"space-between",style:{gap:"16px"},children:[(0,d.jsxs)(o.kC,{children:[(0,d.jsx)(c.JO,{icon:(0,d.jsx)(Z.Z,{}),color:"N800"}),(0,d.jsxs)(o.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,as:o.kC,children:[(0,R.hk)(s,l,{format:"basicLong",showStartTime:!f("hideEventTime"),timeZone:null===v||void 0===v?void 0:v.timezone,locale:null===v||void 0===v?void 0:v.locale}),h&&(0,d.jsx)(F.G,{children:(0,d.jsx)(o.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:"More dates"})})]})]}),(0,d.jsxs)(o.rU,{display:"flex",target:"_blank",href:"https://www.google.com/maps/search/?api=1&query=".concat(null===v||void 0===v||null===(t=v.location)||void 0===t?void 0:t.lat,",").concat(null===v||void 0===v||null===(n=v.location)||void 0===n?void 0:n.lng),children:[(0,d.jsx)(c.JO,{icon:(0,d.jsx)(_.Z,{}),color:"N800"}),(0,d.jsx)(o.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:(0,z.Z)(v)})]}),u&&(0,d.jsxs)(o.kC,{children:[(0,d.jsx)(c.JO,{icon:(0,d.jsx)(A.Z,{}),color:"N800"}),(0,d.jsx)(o.tg,{onClick:function(){return g(!0)},color:"N800",children:(0,d.jsx)(o.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:"Accessibility Info"})})]})]})}),(0,d.jsx)(c.K5,{isOpen:j,setIsOpen:function(){return g(!1)},title:"Accessibility",richText:null===r||void 0===r?void 0:r.accessibility})]})}function U(e){var t=e.event,n=t.descriptionImage,r=t.description,i=(0,I.Z)(r);return(0,d.jsxs)(o.xu,{mt:5,children:[(0,d.jsx)(c.kq,{value:r,mb:3}),n&&(0,d.jsx)(b.ZP,{image:n,alt:i})]})}function H(e){var t=(0,a.o8)().organization,n=e.event,r=n.termsAndConditions,i=n.id;return(null!==r&&void 0!==r?r:t.termsAndConditions)?(0,d.jsx)(o.tg,{color:"N800",to:"/events/".concat(i,"/terms-and-conditions"),mt:5,children:(0,d.jsx)(o.xv,{variant:"regular",children:"Terms & Conditions"})}):null}function K(e){return(0,d.jsxs)(o.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 o=G().stringify(n),c="/events/".concat(e,"/reservation"),l=o?"".concat(c,"?").concat(o):c;(0,i.useEffect)((function(){t.prefetch(l)}),[e]);return{navigate:function(){t.push(l)},url:l}}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)(),i=(0,$.H)(),o=i.competition,c=(0,$.J)(),l=!!r.query.slug,s=(null===t||void 0===t?void 0:t.isActive)&&l||(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 c&&o?{state:o.competitionType===X.yPA.Registration?"registration-competition":"onsale-competition",event:e,competition:te(o)}: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 ie(e){return ce(e)||se(e)?e.competition:void 0}function oe(e){return"registration"===e.state}function ce(e){return"registration-competition"===e.state}function le(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,i=e.pageContext,c=Y(i.event.id),l=c.navigate,s=c.url,u=(0,a.o8)().organization,v=null===(t=ie(i))||void 0===t?void 0:t.id,p=(0,ae.Z)({forwardToNest:!0,eventId:i.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(i)),n)}),f="Register";"c8f276b9-87d5-42c8-ba3f-102089545cde"===u.id&&(f="Join the club");return le(i)||se(i)?(0,d.jsx)(o.KM,{width:"100%",to:s,onClick:p((function(){return l()}),ue.Fv.BUTTON_PRIMARY,(0,r.Z)({},ue.UD.BUTTON_LABEL,"Buy tickets")),children:(0,d.jsx)(o.xv,{fontSize:3,children:"Buy tickets"})}):oe(i)||ce(i)?(0,d.jsx)(o.KM,{width:"100%",to:"/events/".concat(i.event.id,"/registration"),onClick:p(void 0,"register-button"),children:(0,d.jsx)(o.xv,{fontSize:3,children:f})}):null}var ve=n(50029),pe=n(87794),fe=n.n(pe),xe=n(53436),je=n(48649);function ge(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?ge(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(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,i=(0,a.o8)().organization,c=function(e){var t=(0,a.o8)().organization,n=(0,q.useRouter)(),r=!!n.query.cartRecovery,i=function(){var i=(0,ve.Z)(fe().mark((function i(o){var c,l,s,a,u,d,v;return fe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(s=document.getElementById(o),a=null===(c=s.value)||void 0===c?void 0:c.trim()){i.next=4;break}return i.abrupt("return");case 4:return i.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,je.SZ)({orgId:null===t||void 0===t?void 0:t.id}).validateReleasePasswordOrRelease({eventId:e,password:a}));case 1:case"end":return n.stop()}}),n)}))));case 6:if(u=i.sent,d=u.data,v=u.error,null!==d&&void 0!==d&&d.validateReleasePasswordOrRelease){i.next=12;break}return(0,xe.CF)("Invalid access code","error"),i.abrupt("return");case 12:if(!v){i.next=15;break}return(0,xe.CF)("Failed to find access code","error"),i.abrupt("return");case 15:n.push({pathname:"/".concat(e,"/releases/").concat(encodeURIComponent(null===d||void 0===d?void 0:d.validateReleasePasswordOrRelease.slug)),query:he({code:null!==d&&void 0!==d&&null!==(l=d.validateReleasePasswordOrRelease)&&void 0!==l&&l.password?void 0:a},r?{cartRecovery:"true"}:{})});case 16:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}();return i}(n);return me(r)?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(o.kC,{justifyContent:"center",children:(0,d.jsx)(o.oi,{name:"reservationInput",id:"reservationInput",width:"100%",placeholder:"45339f71-c0bb-41a9-b642-7d30f1321a84"===(null===i||void 0===i?void 0:i.id)?"Club/School/Sponsor Code":"Enter access code"})}),(0,d.jsx)(o.kC,{mt:2,justifyContent:"center",children:(0,d.jsx)(o.kq,{fontSize:3,boxShadow:"button",onClick:function(){c("reservationInput")},width:"100%",children:"45339f71-c0bb-41a9-b642-7d30f1321a84"===(null===i||void 0===i?void 0:i.id)?"Club/School/Sponsor Code":"Access tickets"})})]}):null}var Oe,ye=n(71383),we=n(59016),Pe=n(41664),Ce=n.n(Pe);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,i=e.image,c=e.link;return(0,d.jsx)(P,Se(Se({},(0,f.e)(e)),{},{children:(0,d.jsx)(Ce(),{href:c,children:(0,d.jsxs)(o.kC,{flexDirection:["column","column","row"],cursor:"pointer",backgroundColor:"white",children:[i&&(0,d.jsx)(o.xu,{p:{xs:4},pr:{xs:0},flex:[1,1,"0 0 335px"],children:(0,d.jsx)(b.ZP,{image:i,alt:"string"===typeof t?t:"",style:{objectFit:"cover",height:"100%",width:"100%"},borderRadius:{xs:"sm"}})}),(0,d.jsxs)(o.kC,{style:{gap:"16px"},flex:1,background:"white",flexDirection:"column",padding:4,children:[t&&(0,d.jsx)(o.xv,{color:"N800",fontSize:4,fontWeight:"extraBold",children:t}),(0,d.jsx)(o.xv,{fontSize:3,children:n}),r>0&&(0,d.jsx)(o.xv,{color:"N700",fontWeight:"extraBold",fontSize:3,children:"".concat(r," to give away")})]})]})})}))}var Ee=(0,we.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"]))),Te=(0,we.ZP)(o.xu).withConfig({displayName:"CompetitionDetails___StyledBox",componentId:"sc-187z5ep-0"})({scrollPaddingTop:"64px"});function Ie(e){var t=e.eventId,n=e.competition,r=(0,i.useState)(),l=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)(Ee,{}),(0,d.jsxs)(Te,{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)(o.xu,{maxWidth:h,mx:"auto",children:[a||v?(0,d.jsxs)(o.xu,{mb:7,children:[a?(0,d.jsx)(o.xv,{color:"N800",fontSize:6,fontWeight:"extraBold",mb:v?3:0,children:a}):null,v?(0,d.jsx)(o.xv,{color:"N700",fontSize:3,children:v}):null]}):null,p&&0!==p.length?(0,d.jsxs)(o.xu,{mb:f?8:0,children:[(0,d.jsx)(o.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)(o.xu,{children:(0,d.jsx)(o.tg,{onClick:function(){return s("terms")},children:(0,d.jsx)(o.xv,{color:"N700",fontWeight:"regular",fontSize:4,ml:1,children:"Competition Terms & Conditions"})})}):null]}),(0,d.jsx)(c.K5,{isOpen:"terms"===l,setIsOpen:function(){return s(void 0)},title:"Competition Terms & Conditions",richText:f})]})]})}function ze(e){var t,n,r,i=(0,R.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}),c="Competition closes ".concat(i);return(0,d.jsxs)(o.kC,{flexDirection:"column",style:{gap:"12px"},children:[(0,d.jsx)(o.xv,{color:"N700",fontWeight:"regular",fontSize:2,textAlign:"center",children:c}),(0,d.jsx)(o.xu,{textAlign:"center",children:(0,d.jsx)(o.tg,{href:"#competition-details",color:"N800",fontSize:3,fontWeight:"regular",children:"More info"})})]})}var Ne=function(e){var t,n,r,i,l,s=e.pageContext,p=e.event,f=e.isSinglePage,x=p.title,j=p.logo,g=p.backgroundImage,h=p.backgroundImageFullPage,b=p.season,O=p.enableReleaseCodes,y=(0,a.o8)(),w=y.organization,P=y.hasFeature,C=me(O),D=P("eventCalendarHomepage");return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(c._z,{backgroundImage:g,backgroundImageFullPage:h,bannerImage:j,titleText:x,footer:(0,d.jsx)(c.$_,{}),children:[!D&&(0,d.jsx)(v,{isSinglePage:f,tourId:w.landingPage===u.fyD.Tours&&b?b.id:null}),(0,d.jsx)(m,{mt:4,mb:6,children:(0,d.jsx)(o.xv,{as:"h1",color:"N800",fontWeight:"extraBold",fontSize:9,lineHeight:"56px",children:x})}),(0,d.jsx)(m,{mb:[8,5],children:(0,d.jsxs)(o.kC,{justifyContent:"space-between",style:{gap:"65px"},children:[(0,d.jsxs)(o.xu,{flex:2,minWidth:0,children:[(0,d.jsx)(o.iz,{mb:5}),(0,d.jsx)(L,{event:p}),(0,d.jsx)(o.iz,{my:[5,4]}),(0,d.jsx)(K,{event:p})]}),(0,d.jsxs)(o.xu,{flex:"0 0 370px",children:[oe(s)?(0,d.jsx)(T,{title:"Register to get notified when tickets are available!",children:(0,d.jsx)(de,{pageContext:s})}):null,ce(s)||se(s)?(0,d.jsx)(T,{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===(i=s.competition)||void 0===i?void 0:i.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,le(s)?(0,d.jsx)(T,{title:"Secure your tickets today!",children:(0,d.jsx)(de,{pageContext:s})}):null,C&&(0,d.jsx)(T,{title:"Have an access code?",mt:4,children:(0,d.jsx)(o.xu,{children:(0,d.jsx)(be,{event:p})})})]})]})}),se(s)||ce(s)?(0,d.jsx)(Ie,{competition:s.competition,eventId:null===(l=s.event)||void 0===l?void 0:l.id}):null]})})},Ze=function(e){var t,n,r,i,c,l=e.pageContext,s=l.event,a=s.title,u=s.logo,v=ce(l)||se(l);return(0,d.jsx)(o.kC,{flexDir:"column",px:2,pb:5,overflowY:"auto",flex:"1",children:(0,d.jsxs)(o.xu,{flex:"1",children:[(0,d.jsx)(o.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)(T,{mt:5,title:null===(t=l.competition)||void 0===t?void 0:t.title,image:null===(n=l.competition)||void 0===n||null===(r=n.prizes)||void 0===r?void 0:r[0].image,imageAlt:null===(i=l.competition)||void 0===i?void 0:i.title,footer:(0,d.jsx)(ze,{competition:l.competition,venue:null===s||void 0===s?void 0:s.venue})}):null,!v&&(0,d.jsx)(o.iz,{my:4}),(0,d.jsx)(K,{event:s,mb:5}),v?(0,d.jsx)(Ie,{competition:l.competition,eventId:null===(c=l.event)||void 0===c?void 0:c.id}):null]})})},_e=n(30007);function Ae(e){var t=e.isOpen,n=e.onClose,r=e.event;return(0,d.jsx)(c.u_,{isOpen:t,onClose:n,children:(0,d.jsxs)(o.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)(o.kC,{alignItems:"center",flexDirection:"row-reverse",justifyContent:"space-between",children:(0,d.jsx)(o.F6,{onClick:n,children:(0,d.jsx)(c.JO,{icon:"close",fontSize:6})})}),(0,d.jsxs)(o.kC,{mt:3,mb:7,flexDir:"column",flex:"1",justifyContent:"center",children:[(0,d.jsx)(o.xv,{fontWeight:"extraBold",fontSize:6,color:"N800",textAlign:"center",mb:4,children:"Have an access code?"}),(0,d.jsx)(be,{event:r})]})]})})}var Re=n(23986),Fe=n(55186),We=n(24154),Be=function(e){var t,n,u,v,p,f,x=e.event,j=e.release,g=(0,_e.p)(x.id),h=g.activeCompetitions,m=g.isLoading,b=ne(x,j,h),O=(0,i.useState)(),y=O[0],w=O[1],P=(0,a.dD)(),C=(0,i.useContext)(l.rC),D=C.isSinglePage,S=C.organization,k=me(x.enableReleaseCodes),E=null===(t=ie(b))||void 0===t?void 0:t.id,T=k?"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,Re.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,i.useEffect)((function(){var e,t,n;null===(e=window)||void 0===e||null===(t=e.Converge)||void 0===t||null===(n=t.track)||void 0===n||n.viewProduct({productIdentifier:null===x||void 0===x?void 0:x.id,productName:null===x||void 0===x?void 0:x.title})}),[]),(0,d.jsxs)(c.qb,{loading:m,error:!1,children:[P&&(0,d.jsxs)(o.xu,{d:{_:"flex",md:"none"},flexDirection:"column",flex:1,pt:D?15:0,children:[!D&&(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===S||void 0===S?void 0:S.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)(o.xu,{display:"flex",flex:1,"flex-direction":"column",position:"relative",width:"100%",maxWidth:"100vw",pt:D?0:6,paddingBottom:T,children:(0,d.jsx)(Ze,{pageContext:b})}),(0,d.jsxs)(o.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}),k&&(0,d.jsx)(o.F6,{onClick:function(){return w("releaseCodes")},children:(0,d.jsx)(o.xv,{fontWeight:"extraBold",fontSize:3,color:"N800",my:"6/4",children:"Have an access code?"})})]})]}),!P&&(0,d.jsx)(o.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:D})})}),(0,d.jsx)(Ae,{isOpen:"releaseCodes"===y,onClose:function(){return w(void 0)},event:x})]})}},30007:function(e,t,n){n.d(t,{i:function(){return a},p:function(){return s}});var r=n(59499),i=n(39138),o=n(17703);function c(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){var t,n=(0,o.a)(e?i.Lx0:null,{eventId:e});return l({activeCompetitions:null===(t=n.data)||void 0===t?void 0:t.activeCompetitions},n)}function a(e,t){var n,r=(0,o.a)(t?i.Eou:null,{input:{eventId:t,competitionType:e}});return l({activeCompetition:null===(n=r.data)||void 0===n?void 0:n.activeCompetitionByType},r)}},53321:function(e,t,n){function r(e){return null!==e&&void 0!==e}function i(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).join(", "))}n.d(t,{Z:function(){return i}})},53218:function(e,t,n){n.d(t,{G:function(){return l}});var r=n(25640),i=n(67294),o=n(4108),c=n(85893);function l(e){var t=e.children,n=(0,i.useState)(!1),l=n[0],s=n[1];return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(o.Z,{isOpen:l,onClose:function(){return s(!1)}}),(0,c.jsx)(r.tg,{onClick:function(){return s(!0)},color:"N800",children:t})]})}},1979:function(e,t,n){var r=n(67294),i=n(99141);t.Z=function(e){return(0,r.useMemo)((function(){var t;return e&&null!==(t=(0,i.vA)({description:e})[0])&&void 0!==t?t:""}),[e])}},99141:function(e,t,n){n.d(t,{N:function(){return o},vA:function(){return i}});var r=function e(t){var n,r,i;return null!==t&&void 0!==t&&null!==(n=t.type)&&void 0!==n&&n.includes("-list")?null===t||void 0===t||null===(i=t.children)||void 0===i?void 0:i.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)||""}))},i=function(e){return e.description?(JSON.parse(e.description)||[]).flatMap(r).filter(Boolean):""},o=function(e){var t=i(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),i=n(64251),o=n(91166),c=n(43482),l=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,o.o8)(),n=t.organization,a=e.forwardToNest,d=e.eventId,v=e.attributes,p=e.pageName;return function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(f){var x,j="click",g=(0,c.Z)(),h=p?"".concat(p,".").concat(t):t;i.g.getTracer(l.or).startSpan(j,{attributes:u(u((x={},(0,r.Z)(x,s.UD.FLICKET_USER_INTERACTION_TYPE,j),(0,r.Z)(x,s.UD.FLICKET_USER_INTERACTION_NAME,h),(0,r.Z)(x,s.UD.FLICKET_SESSION_ID,g),(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),o)}).end(),null===e||void 0===e||e(f)}}}}}]);
//# sourceMappingURL=9544-d4a06753488a95d2.js.map