1import{a as L}from"./chunk-KJQOHQ7R.js";import{a as ce}from"./chunk-P5WL6SSR.js";import{$e as O,AZ as re,BF as N,Bm as B,CF as W,EF as k,FF as z,Fm as U,GF as G,HI as Y,KI as Z,ME as j,MT as ae,RG as Q,V0 as se,VG as X,XQ as te,ZQ as ie,_F as J,bb as P,fb as ge,iG as K,j as I,jf as b,n as D,qh as q,t1 as le,uT as oe,vT as ne,xM as ee,zF as E}from"./chunk-DQVPEXLR.js";import{Bc as x,Cc as R,Dc as V,Ec as v,G as g,Gd as p,H as y,Hd as m,Mb as $,Mc as M,R as w,Ta as l,Ua as c,Uc as T,Wb as d,Wc as a,ac as A,f as me,uc as C,wc as _,yd as H}from"./chunk-LL4UPCF5.js";var r=me(ge());function de(n,u){if(n&1){let e=M();R(0,"app-loyalty-registration",2),T("createAccount",function(o){l(e);let i=a(),s=a(2);return c(s.createAccount(o,i))})("enterVerificationCode",function(o){l(e);let i=a(3);return c(i.enterVerificationCode(o))})("modalClosed",function(o){l(e);let i=a(3);return c(i.modalClosed(o))})("measureFormHeight",function(o){l(e);let i=a(3);return c(i.measureFormHeight(o))})("onComplianceOptionChanged",function(o){l(e);let i=a(3);return c(i.complianceOptionChanged(o))}),V()}if(n&2){let e=a(3);x("configuration",u)("cannotCloseLogin",!1)("state$",e.createAccountState$)("loading$",e.createAccountLoading$)("compliance$",e.compliance$)}}function Ce(n,u){if(n&1&&(C(0,de,1,5,"app-loyalty-registration",1),p(1,"async")),n&2){let e,t=a(2);_((e=m(1,1,t.simpleConfiguration$))?0:-1,e)}}function _e(n,u){if(n&1&&(C(0,Ce,2,3),p(1,"async")),n&2){let e,t=a();_((e=m(1,1,t.localeId$))?0:-1,e)}}var pe="*",Te=(()=>{class n{constructor(e,t,o){this.store=e,this.log=t,this.componentsConfigurationHelper=o,this.initialDataLoading$=y([this.store.select(E),this.store.select(N),this.store.select(te),this.store.select(z),this.store.select(G),this.store.select(ie),this.store.select(K)]).pipe(g(i=>!i.every(s=>!s))),this.communicationChannels=this.store.selectSignal(W),this.simpleConfiguration$=y([this.store.select(ne),this.store.select(oe),this.store.select(k),this.store.select(J),this.store.select(ae)]).pipe(w(([i,s,f,h,S])=>(0,r.isObject)(i)&&(0,r.isObject)(s)&&(0,r.isArray)(f)&&(0,r.isArray)(h)&&!(0,r.isEmpty)(S)),g(([i,s,f,h,S])=>{let F=new se(this.componentsConfigurationHelper);return F.loadConfigSettingsAndI18nMessages(i,s,f,S,"adult",h,this.componentsConfigurationHelper,this.log,this.communicationChannels()),F})),this.localeId$=this.store.select(Q).pipe(g(i=>(0,r.isString)(i?.code)?i?.code.toLowerCase():void 0)),this.createAccountState$=this.store.select(Z),this.createAccountLoading$=this.store.select(Y),this.compliance$=this.store.select(X)}createAccount(e,t){this.store.dispatch(new B(e.frequentFlyer,e.captchaResponse,t))}enterVerificationCode({username:e,password:t,pin:o}){this.store.dispatch(new U(e,t,o))}modalClosed(e){window.parent.postMessage({name:L.ContinueToLogin},pe)}measureFormHeight(e){window.parent.postMessage({name:L.MeasureRegisterFormHeight,height:e},pe)}complianceOptionChanged(e){this.store.dispatch(new j(e))}static{this.\u0275fac=function(t){return new(t||n)(d(q),d(P),d(b))}}static{this.\u0275cmp=A({type:n,selectors:[["app-simple-registration-form"]],features:[H([ce])],decls:4,vars:6,consts:[[3,"showSpinner"],[3,"configuration","username","cannotCloseLogin","state$","loading$","compliance$"],[3,"createAccount","enterVerificationCode","modalClosed","measureFormHeight","onComplianceOptionChanged","configuration","username","cannotCloseLogin","state$","loading$","compliance$"]],template:function(t,o){t&1&&(v(0,"app-loading-spinner",0),p(1,"async"),C(2,_e,2,3),p(3,"async")),t&2&&(x("showSpinner",m(1,2,o.initialDataLoading$)),$(2),_(m(3,4,o.initialDataLoading$)?-1:2))},dependencies:[le,ee,re,O,D,I],encapsulation:2,changeDetection:0})}}return n})();export{Te as SimpleRegistrationFormComponent};
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.