1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4],{26031:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSG:()=>f,default:()=>T});var a=t(26514),i=t(75834),o=t(87699),n=t(99518),d=t(86688),r=t(66828),c=t(6837),s=t(46225),u=t(70096),k=t(87931),v=t(22914),w=t(12026),m=t(61525),p=t(40924),h=t(78440),g=t(49839),D=t(50812),C=t(84497),y=t(48745),I=t(52236),b=t(17347),f=!0;let T=e=>{var l,t,f;let{artist:T,tourSlug:x}=e,E=(0,s.useRouter)(),{t:_}=(0,m.Bd)(["ticketing"]),{addMessage:A}=(0,g.u)(),[S,L]=(0,i.useState)(!0),[N,B]=(0,i.useState)(!1),P=null==T?void 0:T.tour,U=null==P?void 0:P.activeDraws[0],j=!!U,M=(null==P?void 0:P.expiredDraws.length)!==0&&(null==P?void 0:P.expiredDraws.every(e=>(0,p.A)(new Date(e.endsAt)))),F=(null==U?void 0:U.type)===h.N3M.buy_now,H=(null==U?void 0:U.type)===h.N3M.claim,q=j&&U.locked,{dropToken:R}=E.query,{hasSession:O,sessionHydrationReady:W}=(0,C.w)(),[G,{data:Y,called:V,error:K}]=(0,D._l)(u.Pc,{variables:{code:R}}),{data:X,called:Q,loading:z}=(0,D.IT)(u.an,{variables:{drawId:(null==U?void 0:U.id)||0},fetchPolicy:"network-only",skip:!j||!O}),[J,{data:Z,called:$}]=(0,D.n_)(k.Lu,{variables:{code:R},refetchQueries:["FanLockedDrawCodes"]}),ee=!!(null==Y?void 0:Y.lockedDrawCode)&&String(Y.lockedDrawCode.artistId)===String(null==T?void 0:T.id)&&String(Y.lockedDrawCode.drawId)===String(null==U?void 0:U.id),el=!!(null==Y?void 0:Y.lockedDrawCode)&&!ee;(0,i.useEffect)(()=>{(null==T?void 0:T.slug)&&(0,b.u4)(b.qY.TICKET_LISTING_VIEWED,{artist:T.slug})},[null==T?void 0:T.slug]),(0,i.useEffect)(()=>{q&&R&&!V&&G()},[R,V]),(0,i.useEffect)(()=>{if(O&&Y&&!$){var e;(null==(e=Y.lockedDrawCode)?void 0:e.fanId)||!ee||J()}},[O,Y,$,J,ee]),(0,i.useEffect)(()=>{if(q){var e,l,t;let a=(null==Y?void 0:Y.lockedDrawCode)&&ee&&!Y.lockedDrawCode.fanId,i=W&&O&&Q&&!z&&!(null==X?void 0:X.me.lockedDrawCode)&&!R;W&&!O?E.push({pathname:"/tickets/".concat(x,"/sign-in"),query:{nextHref:"/tickets/".concat(x)}}):V&&el?E.push({pathname:"/tickets/".concat(x,"/invalid-token")}):V&&Y&&(null==(e=Y.lockedDrawCode)?void 0:e.deletedAt)?E.push({pathname:"/tickets/".concat(x,"/invalid-token"),query:{ticketClaimed:!0}}):ee&&(null==Y||null==(l=Y.lockedDrawCode)?void 0:l.fanId)===(null==X?void 0:X.me.id)||(null==Z?void 0:Z.claimLockedDrawCode.success)?N||(B(!0),(null==U?void 0:U.type)===h.N3M.claim?A({title:_("ticketing:claimEventTickets.accessUnlocked"),subTitle:_("ticketing:claimEventTickets.accessDescription"),timeout:8e3,emoji:"\uD83D\uDE4C",backgroundColor:(null==T?void 0:T.themeColour)||""}):A({title:_("ticketing:albumPreOrder.accessUnlocked"),subTitle:_("ticketing:albumPreOrder.selectDate"),timeout:8e3,emoji:"\uD83D\uDE4C",backgroundColor:(null==T?void 0:T.themeColour)||""})):i?(0,y.NA)(E,null==T?void 0:T.websiteUrl,(null==T?void 0:T.aaaEnabled)?"/aaa/home":"/",{notValid:"true"}):(O&&K&&!z&&!(null==X?void 0:X.me.lockedDrawCode)||V&&Y&&Q&&!z&&!(null==X?void 0:X.me.lockedDrawCode)&&!1===a||V&&Y&&(null==Y||null==(t=Y.lockedDrawCode)?void 0:t.fanId)!==(null==X?void 0:X.me.id)&&!1===a)&&!N&&E.push({pathname:(null==T?void 0:T.aaaEnabled)?"/aaa/home":"/",query:{notValid:!0}})}},[Y,K,Z,X,el,ee,W]);let et=null==U?void 0:U.events.filter(e=>!e.hidden).sort((e,l)=>{let t=(0,I.eo)(e.date,l.date);return 0===t?e.type===h.Bx4.vip&&l.type!==h.Bx4.vip?1:e.type!==h.Bx4.vip&&l.type===h.Bx4.vip?-1:0:t}),ea=U?"ticketing:meta.ballotDrawDescription":"ticketing:meta.waitlistDescription",ei=U?"ticketing:meta.ballotDrawTitle":"ticketing:meta.waitlistTitle";if(E.isFallback)return(0,a.jsx)(n.E,{children:"Loading..."});if(!P||!M&&!j||!T.multipleToursEnabled)return(0,a.jsx)(v.default,{});let eo=(null==U?void 0:U.type)===h.N3M.buy_now?o.Yf:(null==U?void 0:U.type)===h.N3M.claim?o.B2:o.vt,en=!!(null==X||null==(l=X.me)?void 0:l.lockedDrawCode)&&!X.me.lockedDrawCode.deletedAt,ed=!!(null==Y?void 0:Y.lockedDrawCode)&&ee&&!Y.lockedDrawCode.deletedAt&&null!=Y.lockedDrawCode.fanId&&(null==X||null==(t=X.me)?void 0:t.id)!=null&&Y.lockedDrawCode.fanId===X.me.id,er=!!(null==Z||null==(f=Z.claimLockedDrawCode)?void 0:f.success),ec=q&&O&&j&&!en&&!ed&&!er&&(z||!Q);return(0,a.jsxs)(a.Fragment,{children:[(null==U?void 0:U.passwordProtected)&&S&&(0,a.jsx)(r.u,{accessibilityDescribedBy:"explainer-body",accessibilityLabelledBy:"explainer-title",closeButtonLabel:"explainer modal close button",onClose:()=>L(!1),explainer1ImageUrl:P.explainer1ImageUrl,explainer2ImageUrl:P.explainer2ImageUrl,artist:T,drawId:U.id}),(0,a.jsx)(eo,{artist:T,tour:P,activeBreadcrumbLinkIndex:0,showBreadcrumbs:!!U,contentLoaded:!0,socialHeaderDescription:_(ea),socialHeaderTitle:_(ei,{artistName:T.name,tourName:P.title}),faqKeys:j?F?["whatAreEarlyReleaseTickets","canIBookAccessibleTickets","whyShouldISignUpToPlanet","howDoIResetMyPassword","cantFindWHatYouAreLookingFor"]:H?["whatIsPlanet","howDoIClaimMyTickets","howSecureAreMyTickets","resaleReturnsAndCancellations"]:["whatAreEarlyReleaseTickets","canIBookAccessibleTickets","howDoTicketDrawsWork","canIEnterTheDrawMoreThanOnce","howDoIIncreaseMyChances","whyShouldISignUpToPlanet","howDoIResetMyPassword","cantFindWHatYouAreLookingFor"]:["whatIfICantGo","canIBookAccessibleTickets","whyShouldISignUpGeneral"],navHasArtistLogo:!0,artistLogoImageUrl:T.logoUrl,navLogoHref:"/tickets/".concat(x),artistSlug:T.slug,children:ec?(0,a.jsx)(d.a,{loadingText:_("common:loadingEllipsis"),artistColor:T.themeColour}):j&&!q||j&&q&&(en||ed||er)?(0,a.jsx)(c.A,{events:et,artist:T,drawType:null==U?void 0:U.type,getEventPath:e=>"/tickets/".concat(x,"/event/").concat(e),getWaitlistPath:e=>"/join-waitlist/event/".concat(e)}):(0,a.jsx)(w.A,{artist:T})})]})}},79829:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/pass/[slug]/tickets/[tour]",function(){return t(26031)}])}},e=>{e.O(0,[8245,8413,4681,3033,4369,6318,1500,7699,5148,4631,8302,6953,7881,636,6593,8792],()=>e(e.s=79829)),_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.