1import{a as se,b as Ie}from"./chunk-GHUDREOB.js";import{$m as Zt,Aa as yt,Ba as Qt,Ca as _e,Eu as ht,Fu as ie,Fw as pe,Gu as gt,Gw as be,Ha as S,Hj as Yt,Hu as ne,Iu as xt,Ja as M,Jt as y,Ju as oe,Kt as E,Ku as vt,Lj as we,Lu as re,Ma as Xt,Qa as U,Sa as X,Xv as ae,Ym as N,Yp as tt,Yv as Se,Zm as L,Zp as Pt,_l as q,_m as dt,am as ct,bb as Y,db as W,er as ft,fa as C,fr as te,ha as st,ia as D,iu as ut,ja as Ct,ju as ee,ka as z,la as Jt,na as ve,nm as Z,om as Et,pk as G,qa as Kt,qk as lt,ra as k,ta as it,za as mt}from"./chunk-YGEYZW7N.js";import{$b as V,Ea as It,Hc as b,Ic as R,Ja as I,Ka as pt,Kb as u,Mb as s,Md as $t,Nc as m,Ob as Wt,Oc as c,Pc as v,Qd as Q,Sa as B,Ta as T,Yb as n,Zb as o,_ as rt,_b as x,ac as j,cc as K,fc as F,hc as g,id as H,jb as w,kb as zt,pb as r,qb as h,uc as t,ud as A,va as Ot,vc as f,wc as et,za as at}from"./chunk-SKBIXBKI.js";import"./chunk-BLAF2TTW.js";import{a as Gt,b as qt,e as P}from"./chunk-ZOSK7UEV.js";var me,le=P(()=>{H();_e();yt();me=e=>{let i=It(Qt);return It(mt).moduleId$.next(null),i.setNavigation(null),i.setUserNavigation(null,"none"),e.data=qt(Gt({},e.data),{navigation:null}),!0}});function Pe(e,i){if(e&1&&(x(0,"p",7),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text",R(4,ye,a.whitelabel.help_phone,a.whitelabel.help_email)),w)}}function Be(e,i){if(e&1&&(x(0,"p",7),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text.only_email",b(4,Ee,a.whitelabel.help_email)),w)}}function Te(e,i){e&1&&(V(0),t(1),m(2,"translate"),j()),e&2&&(r(),f(c(2,1,"auth.reset_password")))}function Fe(e,i){e&1&&x(0,"mat-spinner",18),e&2&&s("diameter",19)}function Re(e,i){if(e&1){let a=K();n(0,"form",8),F("ngSubmit",function(){B(a);let p=g();return T(p.save(p.form))}),t(1,` 2 `),n(2,"div",9),t(3,` 3 `),n(4,"div",10),t(5,` 4 `),x(6,"app-mat-input",11),m(7,"asControl"),m(8,"translate"),t(9,` 5 `),o(),t(10,` 6 `),o(),t(11,` 7 8 `),n(12,"div",12),t(13,` 9 `),n(14,"button",13),t(15,` 10 `),u(16,Te,3,3,"ng-container",14),t(17,` 11 `),u(18,Fe,1,1,"mat-spinner",15),t(19,` 12 `),o(),t(20,` 13 `),o(),t(21,` 14 15 `),n(22,"div",9),t(23,` 16 `),n(24,"div",16),t(25,` 17 `),n(26,"a",17),t(27),m(28,"translate"),o(),t(29,` 18 `),o(),t(30,` 19 `),o(),t(31,` 20 `),o()}if(e&2){let a=g();s("formGroup",a.form),r(6),s("control",c(7,7,a.form.get("email")))("label",c(8,9,"auth.email")),r(8),s("disabled",a.loading),r(2),s("ngIf",!a.loading),r(2),s("ngIf",a.loading),r(9),f(c(28,11,"auth.login"))}}var ye,Ee,Rt,At=P(()=>{W();E();L();Ot();H();z();W();E();L();Q();lt();Zt();ct();Pt();it();Et();ye=(e,i)=>({phone:e,email:i}),Ee=e=>({email:e});Rt=(()=>{let i=class i{ngOnInit(){setTimeout(()=>this.buildForm(),100)}save(d){let{email:p}=d.value,l=p.toLowerCase();this.loading=!0,this.authService.requestResetPassword(l,this.whitelabel.id).pipe(rt(()=>this.loading=!1)).subscribe({next:()=>this.notificationService.success("auth.forgot_password.email_send"),error:_=>this.notificationService.error(_)})}buildForm(){this.form=this.fb.group({email:this.fb.control("",{validators:[S.required,S.email]})})}constructor(d,p,l,_){this.route=d,this.fb=p,this.authService=l,this.notificationService=_,this.loading=!1,this.whitelabel=this.route.snapshot.data.whitelabel}};i.\u0275fac=function(p){return new(p||i)(h(C),h(Y),h(y),h(N))},i.\u0275cmp=I({type:i,selectors:[["app-forgot-password"]],decls:31,vars:15,consts:[[1,"auth-container"],[1,"auth-info"],[1,"mb-4"],[1,"mt-5"],[3,"innerHtml",4,"ngIf"],[1,"auth-form"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"innerHtml"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col"],["type","email",3,"control","label"],[1,"actions"],["type","submit",1,"btn","btn-sm","btn-primary","float-right",3,"disabled"],[4,"ngIf"],["class","orange-spinner",3,"diameter",4,"ngIf"],[1,"col","d-flex","flex-column"],["routerLink","/auth/login","queryParamsHandling","preserve",1,"mr-auto","color-brand"],[1,"orange-spinner",3,"diameter"]],template:function(p,l){p&1&&(n(0,"div",0),t(1,` 21 `),n(2,"div",1),t(3,` 22 `),n(4,"h3",2),t(5),m(6,"translate"),o(),t(7,` 23 `),n(8,"p"),t(9),m(10,"translate"),o(),t(11,` 24 `),n(12,"h4",3),t(13),m(14,"translate"),o(),t(15,` 25 `),u(16,Pe,2,7,"p",4),t(17,` 26 `),u(18,Be,2,6,"p",4),t(19,` 27 `),o(),t(20,` 28 `),n(21,"div",5),t(22,` 29 `),n(23,"h3",2),t(24),m(25,"translate"),o(),t(26,` 30 `),u(27,Re,32,13,"form",6),t(28,` 31 `),o(),t(29,` 32`),o(),t(30,` 33`)),p&2&&(r(5),f(c(6,7,"auth.forgot_password.greeting.title")),r(4),f(c(10,9,"auth.forgot_password.greeting.text")),r(4),f(c(14,11,"auth.common.greeting.footer.title")),r(3),s("ngIf",l.whitelabel.help_phone),r(2),s("ngIf",!l.whitelabel.help_phone),r(6),f(c(25,13,"auth.forgot_password")),r(3),s("ngIf",l.form))},dependencies:[A,D,U,M,X,G,dt,q,tt,k,Z]});let e=i;return e})()});function bt(){let e=new Date,i=e.getDay(),a=e.getHours();return a>18?"auth.common.greeting.evening":a<10?"auth.common.greeting.morning":i===1?"auth.common.greeting.monday":i===5?"auth.common.greeting.friday":"auth.common.greeting.generic"}var kt=P(()=>{});function Le(e,i){if(e&1&&(x(0,"p",15),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text",R(4,Ae,a.whitelabel.help_phone,a.whitelabel.help_email)),w)}}
33function He(e,i){if(e&1&&(x(0,"p",15),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text.only_email",b(4,ke,a.whitelabel.help_email)),w)}}function Ve(e,i){if(e&1&&(n(0,"div",16),t(1),m(2,"translate"),o()),e&2){let a=g();r(),et(` 34 `,v(2,1,"invite.alert",b(4,Ne,a.whitelabel.platform_name)),` 35 `)}}function je(e,i){if(e&1&&(n(0,"div",17),t(1,` 36 `),n(2,"a",18),t(3),m(4,"translate"),o(),t(5,` 37 `),o()),e&2){let a=g();r(2),s("href",a.openInAppUrl,zt),r(),et(` 38 `,c(4,2,"auth.login.open_in_app"),` 39 `)}}function De(e,i){e&1&&(V(0),t(1),m(2,"translate"),j()),e&2&&(r(),f(c(2,1,"auth.login")))}function Me(e,i){e&1&&x(0,"mat-spinner",19),e&2&&s("diameter",19)}var Ae,ke,Ne,Nt,Lt=P(()=>{we();E();L();kt();H();ve();z();E();L();it();Q();W();lt();ct();Ae=(e,i)=>({phone:e,email:i}),ke=e=>({email:e}),Ne=e=>({company:e});Nt=(()=>{let i=class i{constructor(d,p,l,_,O){this.auth=d,this.route=p,this.authService=l,this.notificationService=_,this.translate=O,this.isInvitation=this.authService.navigateToLoginUrl?.startsWith("/invite"),this.twoFactorAuthenticationRequired=!1,this.userLocked=!1,this.greetingText=bt(),this.loading=!1,this.whitelabel=this.route.snapshot.data.whitelabel,this.auth.error$.pipe(Yt()).subscribe(J=>this.notificationService.error(J.message,J.name)),this.setLoginInAppButton()}get getRedirectUrl(){return this.route.snapshot.queryParams.backUrl}setLoginInAppButton(){let d=sessionStorage.getItem("fromResetPassword")==="true";sessionStorage.removeItem("fromResetPassword");let p=/Android|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i.test(navigator.userAgent);if(this.showOpenInApp=d&&p,this.showOpenInApp){let _=JSON.parse(localStorage.getItem("whitelabel")??"null")?.mobile_identifier;this.openInAppUrl=`${_}://`}}};i.\u0275fac=function(p){return new(p||i)(h(Jt),h(C),h(y),h(N),h(Kt))},i.\u0275cmp=I({type:i,selectors:[["app-login"]],decls:60,vars:29,consts:[[1,"auth-container"],[1,"auth-info"],[1,"mb-4"],[1,"mt-5"],[3,"innerHtml",4,"ngIf"],[1,"auth-form"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"actions","p-3"],["class","row mb-2",4,"ngIf"],[1,"row"],["data-cy","login_form-submit--button",1,"btn","btn-sm","w-100",3,"click","disabled"],[4,"ngIf"],["class","orange-spinner",3,"diameter",4,"ngIf"],["routerLink","/auth/register","queryParamsHandling","preserve",1,"mr-auto","color-brand","mt-2"],["routerLink","/auth/forgot-password","queryParamsHandling","preserve",1,"ml-auto","color-brand","mt-2"],[3,"innerHtml"],["role","alert",1,"alert","alert-success"],[1,"row","mb-2"],[1,"btn","btn-sm","btn-primary","w-100",3,"href"],[1,"orange-spinner",3,"diameter"]],template:function(p,l){p&1&&(n(0,"div",0),t(1,` 40 `),n(2,"div",1),t(3,` 41 `),n(4,"h3",2),t(5),m(6,"translate"),o(),t(7,` 42 `),n(8,"p"),t(9),m(10,"translate"),o(),t(11,` 43 `),n(12,"h4",3),t(13),m(14,"translate"),o(),t(15,` 44 `),u(16,Le,2,7,"p",4),t(17,` 45 `),u(18,He,2,6,"p",4),t(19,` 46 `),o(),t(20,` 47 `),n(21,"div",5),t(22,` 48 `),n(23,"h3",2),t(24),m(25,"translate"),o(),t(26,` 49 `),u(27,Ve,3,6,"div",6),t(28,` 50 `),n(29,"form"),t(30,` 51 `),n(31,"div",7),t(32,` 52 `),u(33,je,6,4,"div",8),t(34,` 53 `),n(35,"div",9),t(36,` 54 `),n(37,"button",10),F("click",function(){return l.auth.loginWithRedirect({appState:{backUrl:l.getRedirectUrl},authorizationParams:{ui_locales:l.translate.currentLang}})}),t(38,` 55 `),u(39,De,3,3,"ng-container",11),t(40,` 56 `),u(41,Me,1,1,"mat-spinner",12),t(42,` 57 `),o(),t(43,` 58 `),o(),t(44,` 59 `),n(45,"div",9),t(46,` 60 `),n(47,"a",13),t(48),m(49,"translate"),o(),t(50,` 61 `),n(51,"a",14),t(52),m(53,"translate"),o(),t(54,` 62 `),o(),t(55,` 63 `),o(),t(56,` 64 `),o(),t(57,` 65 `),o(),t(58,` 66`),o(),t(59,` 67`)),p&2&&(r(5),f(c(6,17,"auth.login.greeting.title")),r(4),f(c(10,19,l.greetingText)),r(4),f(c(14,21,"auth.common.greeting.footer.title")),r(3),s("ngIf",l.whitelabel.help_phone),r(2),s("ngIf",!l.whitelabel.help_phone),r(6),f(c(25,23,"auth.login")),r(3),s("ngIf",l.isInvitation),r(6),s("ngIf",l.showOpenInApp),r(4),Wt("btn-primary",!l.showOpenInApp)("btn-outline-primary",l.showOpenInApp),s("disabled",l.loading),r(2),s("ngIf",!l.loading),r(2),s("ngIf",l.loading),r(7),f(c(49,25,"auth.registration")),r(4),f(c(53,27,"auth.forgot_password")))},dependencies:[A,D,U,M,Xt,G,q,k]});let e=i;return e})()});function $e(e,i){if(e&1&&(x(0,"p",8),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text",R(4,Oe,a.whitelabel.help_phone,a.whitelabel.help_email)),w)}}function Je(e,i){if(e&1&&(x(0,"p",8),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text.only_email",b(4,ze,a.whitelabel.help_email)),w)}}function Ke(e,i){if(e&1&&(n(0,"div",9),t(1),m(2,"translate"),o()),e&2){let a=g();r(),et(` 68 `,v(2,1,"invite.alert",b(4,We,a.whitelabel.platform_name)),` 69 `)}}function Qe(e,i){if(e&1&&(x(0,"app-password-validator",24),m(1,"asControl")),e&2){let a=g(2);s("ctrl",c(1,1,a.form.get("password")))}}function Xe(e,i){e&1&&(V(0),t(1),m(2,"translate"),j()),e&2&&(r(),f(c(2,1,"auth.register")))}function Ye(e,i){e&1&&x(0,"mat-spinner",25),e&2&&s("diameter",19)}
69function Ze(e,i){e&1&&(n(0,"div",11),t(1,` 70 `),n(2,"div",26),t(3,` 71 `),n(4,"a",27),t(5),m(6,"translate"),o(),t(7,` 72 `),o(),t(8,` 73 `),o()),e&2&&(r(5),f(c(6,1,"auth.login")))}function ti(e,i){if(e&1){let a=K();n(0,"form",10),F("ngSubmit",function(){B(a);let p=g();return T(p.save(p.form))}),t(1,` 74 `),n(2,"div",11),t(3,` 75 `),n(4,"div",12),t(5,` 76 `),x(6,"app-mat-input",13),m(7,"asControl"),m(8,"translate"),t(9,` 77 `),o(),t(10,` 78 `),o(),t(11,` 79 80 `),n(12,"div",11),t(13,` 81 `),n(14,"div",12),t(15,` 82 `),x(16,"app-mat-input",14),m(17,"asControl"),m(18,"translate"),t(19,` 83 `),o(),t(20,` 84 `),o(),t(21,` 85 86 `),n(22,"div",11),t(23,` 87 `),n(24,"div",12),t(25,` 88 `),x(26,"app-mat-input",15),m(27,"asControl"),m(28,"translate"),t(29,` 89 `),o(),t(30,` 90 `),o(),t(31,` 91 92 `),n(32,"div",16),t(33,` 93 `),n(34,"div",11),t(35,` 94 `),n(36,"div",12),t(37,` 95 `),n(38,"app-mat-input-password",17),m(39,"asControl"),m(40,"translate"),F("focus",function(){B(a);let p=g();return T(p.onPasswordFocus())})("blur",function(){B(a);let p=g();return T(p.onPasswordBlur())}),o(),t(41,` 96 `),o(),t(42,` 97 `),o(),t(43,` 98 `),u(44,Qe,2,3,"app-password-validator",18),t(45,` 99 `),o(),t(46,` 100 101 `),n(47,"div",19),t(48,` 102 `),n(49,"button",20),t(50,` 103 `),u(51,Xe,3,3,"ng-container",21),t(52,` 104 `),u(53,Ye,1,1,"mat-spinner",22),t(54,` 105 `),o(),t(55,` 106 `),o(),t(56,` 107 108 `),u(57,Ze,9,3,"div",23),t(58,` 109 `),o()}if(e&2){let a=g();s("formGroup",a.form),r(6),s("control",c(7,14,a.form.get("name")))("label",c(8,16,"auth.name")),r(10),s("control",c(17,18,a.form.get("email")))("label",c(18,20,"auth.email")),r(10),s("control",c(27,22,a.form.get("phone")))("label",c(28,24,"auth.phone")),r(12),s("control",c(39,26,a.form.get("password")))("label",c(40,28,"auth.password")),r(6),s("ngIf",a.isPasswordFocused),r(5),s("disabled",a.loading||a.form.invalid),r(2),s("ngIf",!a.loading),r(2),s("ngIf",a.loading),r(4),s("ngIf",!a.iframeMode)}}var qe,Oe,ze,We,Ht,Vt=P(()=>{W();E();L();yt();ie();ne();oe();re();kt();H();z();W();E();yt();L();Q();lt();Zt();te();ct();ee();Pt();it();Et();qe=e=>({platform_name:e}),Oe=(e,i)=>({phone:e,email:i}),ze=e=>({email:e}),We=e=>({company:e});Ht=(()=>{let i=class i{ngOnInit(){setTimeout(()=>this.buildForm(),100)}onPasswordFocus(){this.isPasswordFocused=!0}onPasswordBlur(){this.isPasswordFocused=!1}save(d){let{name:p,email:l,phone:_,password:O}=d.value,J=l.toLowerCase();this.loading=!0,this.authService.register(p,J,O,_,this.isTrial,this.isFromAxa).subscribe(()=>{this.notificationService.success("auth.registration.success"),this.loading=!1,this.authService.redirectToLogin()},xe=>{this.loading=!1,this.notificationService.error(xe)})}buildForm(){this.form=this.fb.group({name:this.fb.control("",{validators:[S.required]}),email:this.fb.control("",{validators:[S.required,S.email]}),phone:this.fb.control("",{validators:[S.required]}),password:this.fb.control("",{validators:[S.required,S.minLength(8),S.maxLength(64),xt,ht,vt,gt]})})}constructor(d,p,l,_,O,J){this.route=d,this.fb=p,this.authService=l,this.sessionService=_,this.notificationService=O,this.router=J,this.iframeMode=this.route.snapshot.queryParams.iframeMode,this.isTrial=this.route.snapshot.queryParams.trial,this.isFromAxa=this.route.snapshot.queryParams.axa,this.isInvitation=this.authService.navigateToLoginUrl?.startsWith("/invite"),this.isPasswordFocused=!1,this.greetingText=bt(),this.loading=!1,this.whitelabel=this.route.snapshot.data.whitelabel}};i.\u0275fac=function(p){return new(p||i)(h(C),h(Y),h(y),h(mt),h(N),h(st))},i.\u0275cmp=I({type:i,selectors:[["app-registration"]],decls:33,vars:19,consts:[[1,"auth-container"],[1,"auth-info"],[1,"mb-4"],[1,"mt-5"],[3,"innerHtml",4,"ngIf"],[1,"auth-form"],["class","alert alert-success","role","alert",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"innerHtml"],["role","alert",1,"alert","alert-success"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col"],["data-cy","registration_form-name--input",3,"control","label"],["type","email","data-cy","registration_form-email--input",3,"control","label"],["data-cy","registration_form-phone--input",3,"control","label"],[1,"position-relative"],["data-cy","registration_form-password--input",3,"focus","blur","control","label"],[3,"ctrl",4,"ngIf"],[1,"actions"],["type","submit","data-cy","registration_form-save--button",1,"btn","btn-sm","btn-primary","float-right",3,"disabled"],[4,"ngIf"],["class","orange-spinner",3,"diameter",4,"ngIf"],["class","row",4,"ngIf"],[3,"ctrl"],[1,"orange-spinner",3,"diameter"],[1,"col","d-flex","flex-column"],["routerLink","/auth/login","queryParamsHandling","preserve",1,"mr-auto","color-brand"]],template:function(p,l){p&1&&(n(0,"div",0),t(1,` 110 `),n(2,"div",1),t(3,` 111 `),n(4,"h3",2),t(5),m(6,"translate"),o(),t(7,` 112 `),n(8,"p"),t(9),m(10,"translate"),o(),t(11,` 113 `),n(12,"h4",3),t(13),m(14,"translate"),o(),t(15,` 114 `),u(16,$e,2,7,"p",4),t(17,` 115 `),u(18,Je,2,6,"p",4),t(19,` 116 `),o(),t(20,` 117 `),n(21,"div",5),t(22,` 118 `),n(23,"h3",2),t(24),m(25,"translate"),o(),t(26,` 119 `),u(27,Ke,3,6,"div",6),t(28,` 120 `),u(29,ti,59,30,"form",7),t(30,` 121 `),o(),t(31,` 122`),o(),t(32,` 123`)),p&2&&(r(5),f(v(6,8,"auth.registration.greeting.title",b(17,qe,l.whitelabel.platform_name))),r(4),f(c(10,11,l.greetingText)),r(4),f(c(14,13,"auth.common.greeting.footer.title")),r(3),s("ngIf",l.whitelabel.help_phone),r(2),s("ngIf",!l.whitelabel.help_phone),r(6),f(c(25,15,"auth.registration")),r(3),s("ngIf",l.isInvitation),r(2),s("ngIf",l.form))},dependencies:[A,D,U,M,X,G,dt,ft,q,ut,tt,k,Z]});let e=i;return e})()});function ni(e,i){if(e&1&&(x(0,"p",7),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text",R(4,ei,a.whitelabel.help_phone,a.whitelabel.help_email)),w)}}function oi(e,i){if(e&1&&(x(0,"p",7),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text.only_email",b(4,ii,a.whitelabel.help_email)),w)}}function ri(e,i){if(e&1&&(x(0,"app-password-validator",19),m(1,"asControl")),e&2){let a=g(2);s("ctrl",c(1,1,a.form.get("password")))}}function ai(e,i){e&1&&(V(0),t(1),m(2,"translate"),j()),e&2&&(r(),f(c(2,1,"auth.reset_password.change_password")))}function pi(e,i){e&1&&x(0,"mat-spinner",20),e&2&&s("diameter",19)}function si(e,i){if(e&1){let a=K();n(0,"form",8),F("ngSubmit",function(){B(a);let p=g();return T(p.save(p.form))}),t(1,` 124 `),n(2,"div",9),t(3,` 125 `),n(4,"div",10),t(5,` 126 `),n(6,"div",11),t(7,` 127 `),n(8,"app-mat-input-password",12),m(9,"asControl"),m(10,"translate"),F("focus",function(){B(a);let p=g();return T(p.onPasswordFocus())})("blur",function(){B(a);let p=g();return T(p.onPasswordBlur())}),o(),t(11,` 128 `),o(),t(12,` 129 `),o(),t(13,` 130 `),u(14,ri,2,3,"app-password-validator",13),t(15,` 131 `),o(),t(16,` 132 133 `),n(17,"div",14),t(18,` 134 `),n(19,"a",15),t(20),m(21,"translate"),o(),t(22,` 135 `),n(23,"button",16),t(24,` 136 `),u(25,ai,3,3,"ng-container",17),t(26,` 137 `),u(27,pi,1,1,"mat-spinner",18),t(28,` 138 `),o(),t(29,` 139 `),o(),t(30,` 140 `),o()}if(e&2){let a=g();s("formGroup",a.form),r(8),s("control",c(9,8,a.form.get("password")))("label",c(10,10,"auth.password")),r(6),s("ngIf",a.isPasswordFocused),r(6),f(c(21,12,"auth.login")),r(3),s("disabled",a.loading||a.form.invali
140d),r(2),s("ngIf",!a.loading),r(2),s("ngIf",a.loading)}}var ei,ii,jt,Dt=P(()=>{W();E();L();Ot();ie();ne();oe();re();H();z();W();E();L();Q();lt();te();ct();ee();Pt();it();Et();ei=(e,i)=>({phone:e,email:i}),ii=e=>({email:e});jt=(()=>{let i=class i{constructor(d,p,l,_){this.route=d,this.fb=p,this.authService=l,this.notificationService=_,this.loading=!1,this.isPasswordFocused=!1,this.whitelabel=this.route.snapshot.data.whitelabel}ngOnInit(){setTimeout(()=>this.buildForm(),100)}onPasswordFocus(){this.isPasswordFocused=!0}onPasswordBlur(){this.isPasswordFocused=!1}save(d){let{password:p}=d.value,{email:l,token:_}=this.route.snapshot.queryParams;this.loading=!0,this.authService.resetPassword(p,l,_,this.whitelabel.id).pipe(rt(()=>this.loading=!1)).subscribe({next:()=>{this.notificationService.success("auth.reset_password.password_changed"),sessionStorage.setItem("fromResetPassword","true"),this.authService.redirectToLogin(!0)},error:O=>this.notificationService.error(O)})}buildForm(){this.form=this.fb.group({password:this.fb.control("",{validators:[S.required,S.minLength(8),S.maxLength(64),xt,ht,vt,gt]})})}};i.\u0275fac=function(p){return new(p||i)(h(C),h(Y),h(y),h(N))},i.\u0275cmp=I({type:i,selectors:[["app-reset-password"]],decls:31,vars:15,consts:[[1,"auth-container"],[1,"auth-info"],[1,"mb-4"],[1,"mt-5"],[3,"innerHtml",4,"ngIf"],[1,"auth-form"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"innerHtml"],[3,"ngSubmit","formGroup"],[1,"position-relative"],[1,"row"],[1,"col"],[3,"focus","blur","control","label"],["class","password-validator",3,"ctrl",4,"ngIf"],[1,"actions","d-flex","align-items-center","justify-content-between"],["routerLink","/auth/login"],["type","submit",1,"btn","btn-sm","btn-primary",3,"disabled"],[4,"ngIf"],["class","orange-spinner",3,"diameter",4,"ngIf"],[1,"password-validator",3,"ctrl"],[1,"orange-spinner",3,"diameter"]],template:function(p,l){p&1&&(n(0,"div",0),t(1,` 141 `),n(2,"div",1),t(3,` 142 `),n(4,"h3",2),t(5),m(6,"translate"),o(),t(7,` 143 `),n(8,"p"),t(9),m(10,"translate"),o(),t(11,` 144 `),n(12,"h4",3),t(13),m(14,"translate"),o(),t(15,` 145 `),u(16,ni,2,7,"p",4),t(17,` 146 `),u(18,oi,2,6,"p",4),t(19,` 147 `),o(),t(20,` 148 `),n(21,"div",5),t(22,` 149 `),n(23,"h3",2),t(24),m(25,"translate"),o(),t(26,` 150 `),u(27,si,31,14,"form",6),t(28,` 151 `),o(),t(29,` 152`),o(),t(30,` 153`)),p&2&&(r(5),f(c(6,7,"auth.reset_password.greeting.title")),r(4),f(c(10,9,"auth.reset_password.greeting.text")),r(4),f(c(14,11,"auth.common.greeting.footer.title")),r(3),s("ngIf",l.whitelabel.help_phone),r(2),s("ngIf",!l.whitelabel.help_phone),r(6),f(c(25,13,"auth.reset_password")),r(3),s("ngIf",l.form))},dependencies:[A,D,U,M,X,G,ft,q,ut,tt,k,Z],styles:["[_nghost-%COMP%] input{font-size:16px}[_nghost-%COMP%] .actions{margin-top:.5rem}@media (max-width: 1000px){[_nghost-%COMP%] .password-validator{top:150px!important;left:0!important}}"]});let e=i;return e})()});var fe,ue=P(()=>{E();H();z();E();fe=(()=>{let i=class i{ngOnInit(){this.setSession()}setSession(){let{token:d}=this.route.snapshot.queryParams;d&&this.authService.initSession(d).then(()=>this.router.navigate(["/"]))}constructor(d,p,l){this.router=d,this.route=p,this.authService=l}};i.\u0275fac=function(p){return new(p||i)(h(st),h(C),h(y))},i.\u0275cmp=I({type:i,selectors:[["app-sessions"]],decls:0,vars:0,template:function(p,l){},encapsulation:2});let e=i;return e})()});function ci(e,i){if(e&1&&(x(0,"p",6),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text",R(4,mi,a.whitelabel.help_phone,a.whitelabel.help_email)),w)}}function di(e,i){if(e&1&&(x(0,"p",6),m(1,"translate")),e&2){let a=g();s("innerHtml",v(1,1,"auth.common.greeting.footer.text.only_email",b(4,li,a.whitelabel.help_email)),w)}}var mi,li,Mt,Ut=P(()=>{E();L();H();z();E();L();Q();it();mi=(e,i)=>({phone:e,email:i}),li=e=>({email:e});Mt=(()=>{let i=class i{ngOnInit(){this.unlock()}unlock(){let{email:d,token:p}=this.route.snapshot.queryParams;this.authService.unlock(d,p).subscribe(()=>{this.notificationService.success("auth.unlock.account_unlocked"),this.authService.redirectToLogin(!0)},l=>{this.notificationService.error(l)})}constructor(d,p,l){this.route=d,this.authService=p,this.notificationService=l,this.whitelabel=this.route.
153snapshot.data.whitelabel}};i.\u0275fac=function(p){return new(p||i)(h(C),h(y),h(N))},i.\u0275cmp=I({type:i,selectors:[["app-unlock"]],decls:29,vars:14,consts:[[1,"auth-container"],[1,"auth-info"],[1,"mb-4"],[1,"mt-5"],[3,"innerHtml",4,"ngIf"],[1,"auth-form"],[3,"innerHtml"]],template:function(p,l){p&1&&(n(0,"div",0),t(1,` 154 `),n(2,"div",1),t(3,` 155 `),n(4,"h3",2),t(5),m(6,"translate"),o(),t(7,` 156 `),n(8,"p"),t(9),m(10,"translate"),o(),t(11,` 157 `),n(12,"h4",3),t(13),m(14,"translate"),o(),t(15,` 158 `),u(16,ci,2,7,"p",4),t(17,` 159 `),u(18,di,2,6,"p",4),t(19,` 160 `),o(),t(20,` 161 `),n(21,"div",5),t(22,` 162 `),n(23,"h3",2),t(24),m(25,"translate"),o(),t(26,` 163 `),o(),t(27,` 164`),o(),t(28,` 165`)),p&2&&(r(5),f(c(6,6,"auth.unlock.greeting.title")),r(4),f(c(10,8,"auth.unlock.greeting.text")),r(4),f(c(14,10,"auth.common.greeting.footer.title")),r(3),s("ngIf",l.whitelabel.help_phone),r(2),s("ngIf",!l.whitelabel.help_phone),r(6),f(c(25,12,"auth.unlock")))},dependencies:[A,k]});let e=i;return e})()});var fi,he,ge=P(()=>{z();Se();Ie();le();At();Lt();Vt();Dt();ue();Ut();H();fi=[{path:"",component:ae,canActivate:[me,se],children:[{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",component:Nt},{path:"register",component:Ht},{path:"forgot-password",component:Rt},{path:"reset-password",component:jt},{path:"unlock",component:Mt},{path:"sessions",component:fe}]}],he=(()=>{let i=class i{};i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=pt({type:i}),i.\u0275inj=at({imports:[Ct.forChild(fi),Ct]});let e=i;return e})()});var jn,ui=P(()=>{Q();be();ge();At();Lt();Vt();Dt();Ut();H();jn=(()=>{let i=class i{};i.\u0275fac=function(p){return new(p||i)},i.\u0275mod=pt({type:i}),i.\u0275inj=at({imports:[pe,$t,he]});let e=i;return e})()});ui();export{jn as AuthModule};
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.