1import{a as I}from"./chunk-ZGMTKWIP.js";import{a as N,b as $}from"./chunk-QFAAOIYY.js";import{a as k}from"./chunk-UTND2TDH.js";import"./chunk-ZCUSGBI3.js";import"./chunk-FGLV5MMP.js";import{a as R}from"./chunk-RQMWZYNR.js";import{Aa as f,Ca as O,xa as a}from"./chunk-DJFEFJOO.js";import{d as P}from"./chunk-R7KFMJRS.js";import{F as D,p as E}from"./chunk-D7FIXK7G.js";import{Bb as s,Db as c,Ib as d,Jb as g,Jc as u,Kb as m,Lb as p,Sb as b,Va as r,Wb as T,Yb as i,aa as _,fa as y,ga as x,jb as w,kc as h,lc as M,mc as S,r as C}from"./chunk-F7QRDTC2.js";import"./chunk-YNC7RVHT.js";function L(t,o){t&1&&(g(0,"figure",0),p(1,"img",5),m()),t&2&&(r(),d("key",o))}function K(t,o){if(t&1&&p(0,"es-date-title",2),t&2){let e=i();d("date",e.date)("title",e.title||e.city)("description",e.venue)}}function z(t,o){if(t&1&&p(0,"es-matchup-details",3),t&2){let e=i();d("date",e.date)("eventTitle",e.title)("opposingTeam",e.opposingTeam)("homeTeam",e.homeTeam)}}function V(t,o){if(t&1){let e=b();g(0,"lib-registration-form",8),T("success",function(l){y(e);let v=i(3);return x(v.onSuccess(l))}),m()}if(t&2){let e=i(2),n=i();d("eventData",e)("submitLabel",n.submitLabel())("partnerId",e.artist.id)("registerSettings",e.artist.registerSettings)("registrationType",n.registrationType)("terms",e.terms)}}function F(t,o){if(t&1&&(g(0,"div",4)(1,"h1",6),h(2),m(),s(3,V,1,6,"lib-registration-form",7),m()),t&2){let e=i(),n=i();r(2),M(n.heading()),r(),c(e.artist.registerSettings?3:-1)}}function j(t,o){if(t&1&&p(0,"lib-fan-details",9),t&2){let e=i(3);d("fan",e.fan)}}function q(t,o){if(t&1&&(g(0,"h1",6),h(1),m(),s(2,j,1,1,"lib-fan-details",9)),t&2){let e=i(2);r(),S(" ",e.successMessage()," "),r(),c(e.fan?2:-1)}}function A(t,o){if(t&1&&(s(0,L,2,1,"figure",0),g(1,"div",1),s(2,K,1,3,"es-date-title",2)(3,z,1,4,"es-matchup-details",3),s(4,F,4,2,"div",4)(5,q,3,2),m()),t&2){let e,n,l=i();c((e=l.coverKey())?0:-1,e),r(2),c(o.artist.category==="MUSIC"?2:3),r(2),c((n=l.pageState)==="register"?4:n==="success"?5:-1)}}var ie=(()=>{class t{route=_(D);viewportScroller=_(E);registrationType=O.Online;pageState="register";fan;event=P(this.route.data.pipe(C(({eventRegistration:e})=>e)),{requireSync:!0});coverKey=u(()=>this.event()?.cover?.coverImageKey||this.event()?.artist.cover.coverImageKey);heading=u(()=>{let e=this.event();if(!e)return;switch(e.artist.category){case f.Music:default:switch(e.status){case a.Draft:return`${e.city}- pre-register now to access official ${e.artist.name} photos after the show.`;case a.Closed:return"This show has been closed. Enter your info below and we'll notify you if it re-opens.";default:return`Enter your info below to access official photos from ${e.artist.name} in ${e.city}.`}case f.Sports:switch(e.status){case a.Draft:return`${e.artist.name} fans- pre-register now to access exclusive products after the event.`;case a.Closed:return"This event has been closed. Enter your info below and we'll notify you if it re-opens.";default:return"Enter your info below to access access exclusive products from this event."}}});submitLabel=u(()=>{switch(this.event()?.status){case a.Draft:return"Pre-register";case a.Closed:return"Notify me";default:return"Submit"}});successMessage=u(()=>{let e=this.event(),n=this.fan;if(e)switch(e.artist.category){case f.Music:default:return e.status===a.Closed?`Thanks ${n?.firstName}, we'll notify you if this gallery re-opens.`:`Thanks ${n?.firstName}
1, we'll let you know when your photos are ready.`;case f.Sports:return e.status===a.Closed?`Thanks ${n?.firstName}, we'll notify you if this event re-opens.`:`Thanks ${n?.firstName}, we'll let you know when exclusive products from this event are available.`}});onSuccess(e){this.fan=e,this.pageState="success",this.viewportScroller.scrollToPosition([0,0])}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["es-event-registration"]],decls:1,vars:1,consts:[[1,"cover"],[1,"main"],[1,"date-title",3,"date","title","description"],[1,"matchup",3,"date","eventTitle","opposingTeam","homeTeam"],[1,"register"],["sizes","(min-width: 50rem) 62vw, 100vw","esImage","","alt","",1,"cover-parent",3,"key"],[1,"heading"],[1,"registration-form",3,"eventData","submitLabel","partnerId","registerSettings","registrationType","terms"],[1,"registration-form",3,"success","eventData","submitLabel","partnerId","registerSettings","registrationType","terms"],[1,"fan-details",3,"fan"]],template:function(n,l){if(n&1&&s(0,A,6,3),n&2){let v;c((v=l.event())?0:-1,v)}},dependencies:[R,I,k,N,$],styles:["[_nghost-%COMP%]{display:block;margin-bottom:1rem}figure[_ngcontent-%COMP%]{position:relative;overflow:hidden}.contain-parent[_ngcontent-%COMP%]{width:60%;margin:auto}.heading[_ngcontent-%COMP%]{font-size:var(--font-size-large);margin-block:2rem;font-variation-settings:var(--font-wide-semibold)}@media(width<=50rem){[_nghost-%COMP%]:has(.cover) figure[_ngcontent-%COMP%]{height:50vh}.main[_ngcontent-%COMP%]{position:relative;z-index:2;padding-inline:min(var(--container-margin),2rem);padding-top:min(var(--container-margin),2rem);background-color:var(--theme-bg);border-radius:1rem 1rem 0 0;margin-top:-1rem}.heading[_ngcontent-%COMP%]{margin-bottom:min(var(--container-margin),2rem)}}@media(width>50rem){.main[_ngcontent-%COMP%]{max-width:32rem;margin:auto;margin-inline:auto}[_nghost-%COMP%]:has(.cover){display:flex;gap:min(3rem,var(--container-margin))}[_nghost-%COMP%]:has(.cover) figure[_ngcontent-%COMP%]{flex:1 60%;margin-left:1rem;border-radius:.5rem;min-height:calc(var(--viewport-height) - var(--content-top) - 1rem)}[_nghost-%COMP%]:has(.cover) .main[_ngcontent-%COMP%]{max-width:26rem;flex:1 40%;margin:0 var(--container-margin) 0 0}.date-title[_ngcontent-%COMP%]{margin-top:1rem}.heading[_ngcontent-%COMP%]{margin:2rem 0}}"],changeDetection:0})}return t})();export{ie as EventRegistrationComponent};
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.