1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2619],{23369:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BuyItNowContent:()=>D,TicketRegistrationContent:()=>C,__N_SSG:()=>M,default:()=>I});var n=i(26514),c=i(47977),r=i.n(c),s=i(75834),o=i(87699),a=i(57496),l=i(89110),d=i(4580),u=i(87078),m=i(99518),h=i(57355),v=i(94178),y=i(70096),k=i(48745),g=i(61525),x=i(77786),f=i(50812),b=i(46225),j=i(22914),p=i(88919),w=i(37809),T=i(1175),F=i(41652),_=i(23215),P=i(88420),B=i(78440),L=i(87636),z=i(17347);let S=e=>Math.max(...e.entries.map(e=>e.section).map(e=>e.totalPrice))*e.entries[0].numberOfTickets;var M=!0;let C=e=>{var t;let{event:i,order:c,artistName:o,artistThemeColor:a,artistSlug:v}=e,{t:y}=(0,g.Bd)(["ticketing","forms"]),{formatDate:x}=(0,p.l)(),{trackEvent:f}=(0,F.$)(),[b,j]=(0,s.useState)(!1),P={totalTickets:e=>y("ticketing:num_tickets",{count:e}),priceSummary:y("ticketing:priceSummary"),sectionPriceEach:e=>y("ticketing:sectionPriceSummaryItem",{name:e.name,price:(0,k.vv)(e.totalPrice,i.currency,i.locale)}),sectionPriceTotal:e=>"".concat((0,k.vv)(e,i.currency,i.locale)),feesBreakdown:e=>{let t;if(c.entries.length>1){let i=c.entries.map(t=>{var i;let n=null==(i=e.sections)?void 0:i.find(e=>e.id===t.section.id);return null==n?void 0:n.basePrice}).filter(e=>void 0!==e);t=i.length>0?Math.max(...i):void 0}else{var i,n;t=null==(n=e.sections)||null==(i=n.find(e=>{var t,i,n;return e.id===(null==(n=c.entries)||null==(i=n[0])||null==(t=i.section)?void 0:t.id)}))?void 0:i.basePrice}let r=T.m.getDisplayServiceFee({serviceFeeType:e.serviceFeeType,serviceFee:e.serviceFee,serviceFeePercentage:e.serviceFeePercentage},t),s=c.entries.length>1?"feesBreakdownMax":"feesBreakdown";return e.facilityFee?y("ticketing:".concat(s),{serviceFee:(0,k.vv)(r,e.currency,e.locale),facilityFee:(0,k.vv)(e.facilityFee,e.currency,e.locale)}):y("ticketing:feesBreakdownWithoutFacilityFee",{serviceFee:(0,k.vv)(r,e.currency,e.locale)})},totalPreAuth:y("ticketing:totalPreAuth",{amount:(0,k.vv)(S(c),i.currency,i.locale)}),totalDescription:y("ticketing:totalDescription"),getTickets:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:20},children:[(0,n.jsx)("div",{style:{flex:1,paddingRight:20,fontSize:37},children:"\uD83D\uDC4D"}),(0,n.jsx)("div",{style:{flex:7},children:(0,n.jsxs)(g.x6,{i18nKey:"ticketing:successOutcome",children:[(0,n.jsx)("b",{children:"If you get tickets"})," your payment will be debited from your account. Any remaining pre-authorised money will be returned to you."]})})]}),doNotGetTickets:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:20},children:[(0,n.jsx)("div",{style:{flex:1,paddingRight:20,fontSize:37},children:"\uD83D\uDC4E"}),(0,n.jsx)("div",{style:{flex:7},children:(0,n.jsxs)(g.x6,{i18nKey:"ticketing:dontGetTickets",children:[(0,n.jsx)("b",{children:"If you donât get tickets"})," your pre-authorised payment will be returned to your account in full within 24 hours of the ticket registration window closing."]})})]}),extraText:"ed-sheeran"==v?y("ticketing:donationText"):void 0},B=null==(t=c.entries[0])?void 0:t.numberOfTickets;return(0,n.jsxs)(l.t,{children:[(0,n.jsx)(d.X,{size:"L"}),(0,n.jsx)(_.Tl,{testId:c.id,title:"".concat(B,"x ").concat(y("ticketing:ticketsFor",{count:B})," ").concat(x(i.date,"iii d LLL"),", ").concat((0,k.fU)(i.time)),colorTheme:_.uV.light,subtitle:b?y("ticketing:hidePriceBreakdown"):y("ticketing:showPriceBreakdown"),closeButtonLabel:"".concat(y("ticketing:hidePriceBreakdown")," button"),openButtonLabel:"".concat(y("ticketing:showPriceBreakdown")," button"),isOpen:b,onClick:()=>{j(!b)},expanded:b,getButtonAccessibilityLabel:()=>b?"".concat(y("ticketing:hidePriceBreakdown")," button"):"".concat(y("ticketing:showPriceBreakdown")," button"),openByDefault:!1,children:(()=>{let e={...i,serviceFee:i.effectiveServiceFee||0};return(0,n.jsx)(u.xi,{event:e,eventTime:(0,k.fU)(i.time),date:{day:x(i.date,"iii"),dayDate:x(i.date,"d"),month:x(i.date,"LLL")},entry:{numberOfTickets:B,sectionIDs:c.entries.map(e=>{let{section:t}=e;return t.id})},getText:P,colorTheme:u.UG.light})})()}),(0,n.jsx)(d.X,{size:"L"}),(0,n.jsx)(m.E,{bold:!0,size:h.s.XS,children:y("drawAnnouncement",{artistName:o,date:x(new Date(i.draw.endsAt),"EEEE do MMMM YYY")}
1)}),(0,n.jsx)(d.X,{size:"M"}),(0,n.jsx)("div",{className:r().dynamic([["2c3b0e7ac65477c9",[h.Kz.M,h.Kz.M]]])+" row",children:(0,n.jsx)(m.E,{size:h.s.XS,children:(0,n.jsxs)(g.x6,{i18nKey:"ticketing:eventTerms",children:["The purchaser must attend this event. Read full",(0,n.jsx)(w._,{href:"/tickets/event/".concat(i.id,"/terms?new=1"),themeColor:a,target:"_blank",onClick:()=>{f("payment-terms-and-conditions-clicked")},children:"T&C's"})]})})}),(0,n.jsx)(d.X,{size:"M"}),(0,n.jsx)(r(),{id:"2c3b0e7ac65477c9",dynamic:[h.Kz.M,h.Kz.M],children:".row.__jsx-style-dynamic-selector{display:flex;align-items:center}.icon.__jsx-style-dynamic-selector{margin-right:".concat(h.Kz.M,"px}.row.__jsx-style-dynamic-selector a{text-decoration:none}.terms-emoji.__jsx-style-dynamic-selector{margin-right:").concat(h.Kz.M,"px}")})]})},D=e=>{let{event:t,order:i,artistColor:c,artistSlug:o}=e,{t:a}=(0,g.Bd)(["ticketing","forms"]),{formatDate:v}=(0,p.l)(),{trackEvent:y}=(0,F.$)(),[x,f]=(0,s.useState)(!1),b={totalTickets:e=>a("ticketing:num_tickets",{count:e}),priceSummary:a("ticketing:priceSummary"),sectionPriceEach:e=>a("ticketing:sectionPriceSummaryItem",{name:e.name,price:(0,k.vv)(e.totalPrice,t.currency,t.locale)}),sectionPriceTotal:e=>"".concat((0,k.vv)(e,t.currency,t.locale)),feesBreakdown:e=>{var t;let n=null==(t=e.sections)?void 0:t.find(e=>e.id===i.entries[0].section.id),c=T.m.getDisplayServiceFee({serviceFeeType:e.serviceFeeType,serviceFee:e.serviceFee,serviceFeePercentage:e.serviceFeePercentage},null==n?void 0:n.basePrice);return e.facilityFee?a("ticketing:feesBreakdown",{serviceFee:(0,k.vv)(c,e.currency,e.locale),facilityFee:(0,k.vv)(e.facilityFee,e.currency,e.locale)}):a("ticketing:feesBreakdownWithoutFacilityFee",{serviceFee:(0,k.vv)(c,e.currency,e.locale)})},totalPreAuth:a("ticketing:totalBuyNow",{amount:(0,k.vv)(S(i),t.currency,t.locale)}),extraText:"ed-sheeran"==o?a("ticketing:donationText"):void 0};return(0,n.jsxs)(l.t,{children:[(0,n.jsx)(d.X,{size:"L"}),(0,n.jsx)(m.H2,{bold:!0,size:h.s.XS,children:a("ticketing:ballotSummaryTitle")}),(0,n.jsx)(d.X,{size:"S"}),(0,n.jsx)(_.Tl,{testId:i.id,title:"".concat(i.entries[0].numberOfTickets,"x ").concat(a("ticketing:ticketsFor",{count:i.entries[0].numberOfTickets})," ").concat(v(t.date,"iii d LLL"),", ").concat((0,k.fU)(t.time)),colorTheme:_.uV.light,subtitle:x?a("ticketing:hidePriceBreakdown"):a("ticketing:showPriceBreakdown"),closeButtonLabel:"".concat(a("ticketing:hidePriceBreakdown")," button"),openButtonLabel:"".concat(a("ticketing:showPriceBreakdown")," button"),isOpen:x,onClick:()=>{f(!x)},expanded:x,getButtonAccessibilityLabel:()=>x?"".concat(a("ticketing:hidePriceBreakdown")," button"):"".concat(a("ticketing:showPriceBreakdown")," button"),openByDefault:!1,children:(()=>{let e={...t,serviceFee:t.effectiveServiceFee||0};return(0,n.jsx)(u.xi,{event:e,date:{day:v(t.date,"iii"),dayDate:v(t.date,"d"),month:v(t.date,"LLL")},entry:{numberOfTickets:i.entries[0].numberOfTickets,sectionIDs:i.entries.map(e=>{let{section:t}=e;return t.id})},getText:b,colorTheme:u.UG.light})})()}),(0,n.jsx)(d.X,{size:"L"}),(0,n.jsx)("div",{className:r().dynamic([["2c3b0e7ac65477c9",[h.Kz.M,h.Kz.M]]])+" row",children:(0,n.jsx)(m.E,{size:h.s.XS,children:(0,n.jsxs)(g.x6,{i18nKey:"ticketing:eventTerms",children:["The purchaser must attend this event. Read full",(0,n.jsx)(w._,{href:"/tickets/event/".concat(t.id,"/terms?new=1"),themeColor:c,target:"_blank",onClick:()=>{y("payment-terms-and-conditions-clicked")},children:"T&C's"})]})})}),(0,n.jsx)(r(),{id:"2c3b0e7ac65477c9",dynamic:[h.Kz.M,h.Kz.M],children:".row.__jsx-style-dynamic-selector{display:flex;align-items:center}.icon.__jsx-style-dynamic-selector{margin-right:".concat(h.Kz.M,"px}.row.__jsx-style-dynamic-selector a{text-decoration:none}.terms-emoji.__jsx-style-dynamic-selector{margin-right:").concat(h.Kz.M,"px}")})]})},I=e=>{let{artist:t,event:i}=e,c=(0,b.useRouter)(),[u,g]=(0,s.useState)(!1),p=(0,s.useRef)(!1),w=(0,x.p)("order"),[T,{data:F}]=(0,f._l)(y.Q3);if((0,s.useEffect)(()=>{w&&T({variables:{id:w}})},[w]),(0,s.useEffect)(()=>{if(!p.current&&u&&(null==F?void 0:F.order)&&(null==t?void 0:t.slug)){p.current=!0;let e=F.order,i=e.entries.reduce((e,t)=>
1e+t.section.totalPrice*t.numberOfTickets,0),n=e.entries.reduce((e,t)=>e+t.numberOfTickets,0);(0,z.u4)(z.qY.CHECKOUT_STARTED,{artist:t.slug,product_type:"ticket",cart_total:i,item_count:n})}},[u,null==F?void 0:F.order,null==t?void 0:t.slug]),(0,v.R)({nextHrefPathname:(0,k.Z$)(),cb:()=>{g(!0)},artistSlug:null==t?void 0:t.slug}),c.isFallback)return(0,n.jsx)(m.E,{children:"Loading..."});if(!t||!(null==i?void 0:i.tour))return(0,n.jsx)(j.default,{});let _=i.draw.type===B.N3M.buy_now,S=_?o.Yf:o.vt;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(S,{artist:t,tour:i.tour,activeBreadcrumbLinkIndex:2,showFooter:u,eventId:i.id,contentLoaded:u&&!!(null==F?void 0:F.order),faqKeys:_?["myCardDoesntWorkBuyNow","whatIfICantGo","howAreMyTicketsDelivered","cantFindWHatYouAreLookingFor"]:["whatDoesPreAuthMean","myCardDoesntWork","whatIfICantGo","howWillIFindOutAboutTickets","howAreMyTicketsDelivered","cantFindWHatYouAreLookingFor"],navHasArtistLogo:!0,artistLogoImageUrl:t.logoUrl,navLogoHref:"/",className:"jsx-2196970db4d6cb4a",children:(0,n.jsx)(a.fI,{children:(0,n.jsx)(l.t,{children:(null==F?void 0:F.order)&&(0,n.jsxs)(n.Fragment,{children:[_?(0,n.jsx)(D,{event:i,order:F.order,artistColor:t.themeColour,artistSlug:t.slug}):(0,n.jsx)(C,{event:i,order:F.order,artistThemeColor:t.themeColour||"",artistName:t.name,artistSlug:t.slug}),(0,n.jsx)(d.X,{size:"L"}),(0,n.jsx)(P.n,{orderId:w,order:null==F?void 0:F.order,artist:t,event:i}),(0,n.jsx)(d.X,{size:"M"}),(0,n.jsx)("div",{className:"jsx-2196970db4d6cb4a stripe-badge-container",children:(0,n.jsx)(L.A,{fillColor:h.Jy.black})})]})})})}),(0,n.jsx)(r(),{id:"2196970db4d6cb4a",children:".stripe-badge-container.jsx-2196970db4d6cb4a{display:flex;justify-content:center}"})]})}},83428:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pass/[slug]/tickets/event/[id]/payment",function(){return i(23369)}])}},e=>{e.O(0,[8245,8413,4681,3033,4369,6318,264,5949,7699,5148,4631,8302,9554,747,9568,636,6593,8792],()=>e(e.s=83428)),_N_E=e.O()}]);
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.