1import{a as M}from"./chunk-RQD3E5L3.js";import{a as s}from"./chunk-KJQOHQ7R.js";import{a as w}from"./chunk-KP5DQ6NM.js";import{$e as F,EI as S,fb as b,u1 as v,vm as L,yZ as C}from"./chunk-ZP6S7BWO.js";import{Ba as r,Bc as f,Cc as d,Dc as y,Uc as _,ac as u,ba as p,f as U,fc as c,kb as g,la as m,yd as h,za as l}from"./chunk-LL4UPCF5.js";var P=U(b());var A="*",W=(()=>{class n extends M{constructor(){super(...arguments),this.parentApp=window.parent}ngOnInit(){super.ngOnInit(),this.store.select(S).pipe(r(()=>this.alive)).subscribe(t=>{this.parentApp.postMessage({name:s.FrequentFlyerLoaded,frequentFlyer:t},A)})}onLogin(t){this.jwtAuthenticationService.isAuthenticated().pipe(r(()=>this.alive),p(1),l(()=>this.jwtAuthenticationService.getValidAuthenticationUser().pipe(m()))).subscribe(o=>{let e=o===null?"":o.username;(0,P.isString)(e)&&e!==""&&(this.store.dispatch(new L("","","","","","","","","",e,!1,!1,!0)),this.parentApp.postMessage({name:s.SoarLoginSuccess,data:{username:e}},A))})}static{this.\u0275fac=(()=>{let t;return function(e){return(t||(t=g(n)))(e||n)}})()}static{this.\u0275cmp=u({type:n,selectors:[["app-simple-login-form"]],features:[h([w]),c],decls:1,vars:2,consts:[[3,"onLogin","forgotPassword","signUp","configuration","compactMode"]],template:function(o,e){o&1&&(d(0,"app-loyalty-login",0),_("onLogin",function(i){return e.onLogin(i)})("forgotPassword",function(i){return e.onForgotPassword(i)})("signUp",function(i){return e.onSignUp(i)}),y()),o&2&&f("configuration",e.configuration.loyaltyLoginConfiguration)("compactMode",!1)},dependencies:[v,C,F],encapsulation:2})}}return n})();export{W as SimpleLoginFormComponent};
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.