PageSourceSearch

https://business.cellc.co.za/935.e11a5f73ecc50025.js

js cellc.co.za collected 2026-09-24 09:48:05 UTC 105,512 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkraven_web=self.webpackChunkraven_web||[]).push([[935],{64935:(rn,I,c)=>{c.r(I),c.d(I,{AuthPagesModule:()=>on});var G=c(60379),_=c(9116),a=c(24006),C=c(12721),L=c(27207),H=c(38783),y=c(37873),O=c(6533),e=c(94650),D=c(11145),P=c(52642),T=c(76867),J=c(30914),M=c(33426),v=c(88939),R=c(74961),d=c(89383),x=c(36895),l=c(1576),Q=c(55829),g=c(73546),u=c(4859),N=c(97392),w=c(73162),p=c(59549),S=c(44144),Y=c(42184),$=c(80201);const W=["cdExpiry"],z=["cdResend"];function j(n,s){if(1&n&&e._UZ(0,"img",13),2&n){const t=e.oxw(3);e.Q6J("src",t.logoPath,e.LSH)}}function B(n,s){if(1&n&&(e.ynx(0),e.YNc(1,j,1,1,"img",10),e._UZ(2,"h1",11)(3,"h1",12),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.themeName)}}function K(n,s){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.getEmailErrorMessage(),"")}}function V(n,s){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(e.lcZ(2,1,t.errorMessage))}}function X(n,s){1&n&&e._UZ(0,"mat-progress-bar",22)}function ee(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"form",14),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.login(r.loginForm.value))}),e.TgZ(2,"mat-form-field")(3,"input",15),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.login(r.loginForm.value))}),e.ALo(4,"translate"),e.qZA(),e.YNc(5,K,2,1,"mat-error",6),e.qZA(),e.TgZ(6,"mat-form-field")(7,"input",16),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.login(r.loginForm.value))}),e.ALo(8,"translate"),e.qZA(),e.TgZ(9,"mat-icon",17),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.hidePassword=!r.hidePassword)}),e._uU(10),e.qZA()(),e.YNc(11,V,3,3,"mat-error",6),e.qZA(),e.TgZ(12,"div",18)(13,"a",19),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.forgotPassword())}),e._uU(14),e.ALo(15,"translate"),e.qZA()(),e.TgZ(16,"div",8)(17,"button",20),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.login(r.loginForm.value))}),e._uU(18),e.ALo(19,"translate"),e.qZA()(),e.YNc(20,X,1,0,"mat-progress-bar",21),e.BQk()}if(2&n){const t=e.oxw(2);let o;e.xp6(1),e.Q6J("formGroup",t.loginForm),e.xp6(2),e.s9C("placeholder",e.lcZ(4,13,"USER_NAME")),e.s9C("autocomplete",t.autocomplete),e.xp6(2),e.Q6J("ngIf",(null==(o=t.loginForm.get("email"))?null:o.touched)&&(null==(o=t.loginForm.get("email"))?null:o.invalid)),e.xp6(2),e.s9C("placeholder",e.lcZ(8,15,"PASSWORD")),e.s9C("autocomplete",t.autocomplete),e.Q6J("type",t.hidePassword?"password":"text"),e.xp6(3),e.hij(" ",t.hidePassword?"visibility_off":"visibility",""),e.xp6(1),e.Q6J("ngIf",""!==t.errorMessage),e.xp6(3),e.hij(" ",e.lcZ(15,17,"FORGOT_PASSWORD")," "),e.xp6(3),e.Q6J("disabled",!t.loginForm.valid||t.saving),e.xp6(1),e.hij(" ",e.lcZ(19,19,t.saving?t.loadingText:"SIGN_IN")," "),e.xp6(2),e.Q6J("ngIf",t.saving)}}
1function te(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",30,31),e.NdJ("expired",function(){e.CHM(t);const r=e.oxw(3);return e.KtG(r.expired=!0)}),e.qZA()()}if(2&n){const t=e.oxw(3);e.xp6(1),e.hij("",e.lcZ(2,2,"EXPIRES_IN")," "),e.xp6(2),e.Q6J("countdown",t.countdownConfig)}}function ne(n,s){1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"OTP_HAS_EXPIRED")," "))}const oe=function(){return{minutes:1}};function re(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"span",30,32),e.NdJ("expired",function(r){e.CHM(t);const i=e.oxw(3);return i.allowResend=r,e.KtG(i.resent2Fa=!1)}),e.qZA()}2&n&&e.Q6J("countdown",e.DdM(1,oe))}function se(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"br"),e.TgZ(2,"mat-error"),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.BQk()),2&n){const t=e.oxw(3);e.xp6(3),e.Oqu(e.lcZ(4,1,t.otpError||""))}}function ae(n,s){1&n&&e._UZ(0,"mat-progress-bar",33)}const ie=function(n){return{"forgot-password":n}};function ce(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"form",14),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.validate2FA())}),e.TgZ(2,"mat-form-field")(3,"mat-label"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e._UZ(6,"input",23),e.YNc(7,te,5,4,"mat-hint",6),e.YNc(8,ne,3,3,"mat-hint",6),e.qZA(),e.TgZ(9,"mat-hint",24),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.resend2FA())}),e._uU(10),e.ALo(11,"translate"),e.YNc(12,re,2,2,"span",25),e.qZA()(),e.YNc(13,se,5,3,"ng-container",6),e.TgZ(14,"div",26)(15,"div",27)(16,"button",28),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.validate2FA())}),e._uU(17),e.ALo(18,"translate"),e.qZA()(),e.YNc(19,ae,1,0,"mat-progress-bar",29),e.qZA(),e.BQk()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("formGroup",t.otpForm),e.xp6(3),e.Oqu(e.lcZ(5,14,"ENTER_OTP")),e.xp6(2),e.s9C("placeholder",t.get2FaPlaceholder()),e.s9C("autocomplete",t.autocomplete),e.s9C("maxlength",t.passwordPolicy.OTPLength),e.xp6(1),e.Q6J("ngIf",!t.expired),e.xp6(1),e.Q6J("ngIf",t.expired),e.xp6(1),e.Q6J("ngClass",e.VKq(20,ie,t.allowResend)),e.xp6(1),e.hij("",e.lcZ(11,16,t.resent2Fa?"OTP_RESENT":"DIDNT_GET_OTP")," "),e.xp6(2),e.Q6J("ngIf",t.resent2Fa),e.xp6(1),e.Q6J("ngIf",""!==t.otpError),e.xp6(3),e.Q6J("disabled",!t.otpForm.valid||t.saving||t.expired),e.xp6(1),e.hij(" ",e.lcZ(18,18,t.saving?t.loadingText:"CONFIRM_OTP")," "),e.xp6(2),e.Q6J("ngIf",t.saving)}}function le(n,s){1&n&&e._UZ(0,"mat-progress-bar",33)}const ge=function(){return["Name"]};function me(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"form",14),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.chooseTenant(r.tenantForm.value,r.loginForm.value))}),e.TgZ(2,"raven-filter",34),e.NdJ("onFiltered",function(r){e.CHM(t);const i=e.oxw(2);return e.KtG(i.applyCustomerFilter(r))}),e.ALo(3,"orderBy"),e.ALo(4,"translate"),e.qZA()(),e.TgZ(5,"div",26)(6,"div",27)(7,"button",28),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.chooseTenant(r.tenantForm.value,r.loginForm.value))}),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.YNc(10,le,1,0,"mat-progress-bar",29),e.qZA(),e.BQk()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("formGroup",t.tenantForm),e.xp6(1),e.s9C("placeholder",e.lcZ(4,12,"CHOOSE_CUSTOMER")),e.Q6J("isRequired",!0)("valuePrimitive",!1)("items",e.xi3(3,9,t.items,e.DdM(16,ge)))("panelClass","raven-filter-panel raven-customer-filter"),e.xp6(5),e.Q6J("disabled",!t.tenantForm.valid||t.saving),e.xp6(1),e.hij(" ",e.lcZ(9,14,t.saving?t.loadingText:"CHOOSE_CUSTOMER")," "),e.xp6(2),e.Q6J("ngIf",t.saving)}}function pe(n,s){if(1&n&&(e.TgZ(0,"tr")(1,"td")(2,"mat-icon",42),e._uU(3,"desktop_windows"),e.qZA(),e.TgZ(4,"span")(5,"b"),e._uU(6),e.qZA()(),e._UZ(7,"br")(8,"span",38)(9,"br"),e.TgZ(10,"span")(11,"b"),e._uU(12),e.ALo(13,"translate"),e.qZA(),e._uU(14),e.ALo(15,"translate"),e.ALo(16,"date"),e.qZA()()()),2&n){const t=s.$implicit,o=e.oxw(3);e.xp6(6),e.Oqu(t.IPAddress),e.xp6(2),e.Q6J("innerHTML",o.splitDeviceInfo(t),e.oJD),e.xp6(4),e.Oqu(e.lcZ(13,5,"SIGNED_IN")),e.xp6(2),e.AsE(" ",e.lcZ(15,7,"ON")," ",e.xi3(16,9,t.LoginTime,"mediumDate"),"")}}function _e(n,s){1&n&&e._UZ(0,"mat-progress-bar",22)}
1function de(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",35)(2,"h1"),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"p")(7,"b"),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"table",36),e.YNc(11,pe,17,12,"tr",37),e.qZA(),e.TgZ(12,"p"),e._uU(13),e.ALo(14,"translate"),e.qZA(),e._UZ(15,"p",38),e.ALo(16,"translate"),e.TgZ(17,"div",39)(18,"button",40),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.cancelLogin())}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"button",41),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.deleteActiveSessionAndCreateNewSession())}),e._uU(22),e.ALo(23,"translate"),e.qZA(),e.YNc(24,_e,1,0,"mat-progress-bar",21),e.qZA()(),e.BQk()}if(2&n){const t=e.oxw(2);e.xp6(3),e.lnq(" ",e.lcZ(4,11,"ACTIVE_SESSION")," ",e.lcZ(5,13,"FOR")," '",t.loginForm.get("email").value,"'"),e.xp6(5),e.Oqu(e.lcZ(9,15,"ACTIVE_SESSION_HEADER")),e.xp6(3),e.Q6J("ngForOf",t.activeSessions),e.xp6(2),e.Oqu(e.lcZ(14,17,"ACTIVE_SESSION_DISCLAIMER")),e.xp6(2),e.s9C("innerHTML",e.lcZ(16,19,"ACTIVE_SESSION_FOOTER"),e.oJD),e.xp6(4),e.Oqu(e.lcZ(20,21,"CANCEL_LOGIN")),e.xp6(2),e.Q6J("disabled",t.saving),e.xp6(1),e.Oqu(e.lcZ(23,23,"DELETE_SESSION_AND_LOGIN")),e.xp6(2),e.Q6J("ngIf",t.saving)}}function ue(n,s){if(1&n&&(e.TgZ(0,"mat-card",4)(1,"mat-card-content",5),e.YNc(2,B,4,1,"ng-container",6),e.YNc(3,ee,21,21,"ng-container",6),e.YNc(4,ce,20,22,"ng-container",6),e.YNc(5,me,11,17,"ng-container",6),e.YNc(6,de,25,25,"ng-container",6),e.TgZ(7,"div",7)(8,"div",8)(9,"span",9),e._uU(10),e.qZA()()()()()),2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",!t.showSessionList&&!t.deletingActiveSession),e.xp6(1),e.Q6J("ngIf",!(t.showTenantList||t.show2FA||t.showSessionList||t.deletingActiveSession)),e.xp6(1),e.Q6J("ngIf",t.show2FA&&!t.showTenantList&&!t.showSessionList&&!t.deletingActiveSession),e.xp6(1),e.Q6J("ngIf",t.showTenantList&&!t.showSessionList&&!t.deletingActiveSession),e.xp6(1),e.Q6J("ngIf",t.showSessionList||t.deletingActiveSession),e.xp6(4),e.AsE("v",t.version," Copyright \xa9 Adapt IT ",t.currentYear,"")}}let fe=(()=>{class n{constructor(t,o,r,i,m,h,f,b,A,q){this.settingsService=t,this.sessionHelper=o,this.formBuilder=r,this.router=i,this.authService=m,this._anylyticService=h,this._errorHandler=f,this._configService=b,this._featureFlags=A,this.translateService=q,this.tenants=new Array,this.isLoggedIn=!1,this.logoPath="",this.themeName="default",this.saving=!1,this.loaded=!1,this.loadingText="PLEASE_WAIT",this.loggedInUser=new y.T,this.errorMessage="",this.version="0.0.0",this.showTenantList=!1,this.showSessionList=!1,this.deletingActiveSession=!1,this.show2FA=!1,this.hidePassword=!0,this.items=[],this.countdownConfig={minutes:3},this.resent2Fa=!1,this.allowResend=!0,this.expired=!1,this.otpError="",this.autocomplete="off",this.themes=O.Z,this.activeSessions=new Array,this.version=b.appVersion,this.themeName=this.sessionHelper.GetThemeName(),this.user=this.sessionHelper.GetCurrentUser()}ngOnInit(){this.currentYear=(new Date).getFullYear(),this.loginForm=this.formBuilder.group({email:["",a.kI.compose([a.kI.required,a.kI.email])],password:["",a.kI.required]}),this.tenantForm=this.formBuilder.group({tenant:["",a.kI.required]}),this.otpForm=this.formBuilder.group({otpPin:["",a.kI.required]}),particlesJS.load("particles-js","../../../assets/js/particles/particles.json")}ngAfterViewInit(){this.sessionHelper.isLoggedIn()?this.authService.deleteActiveSessionAndLogout().finally(()=>{this.initialiseLogin()}):this.initialiseLogin()}initialiseLogin(){this.sessionHelper.ClearLogin(),this.getTheme(),this.getPasswordPolicy(),this.user=this.sessionHelper.GetCurrentUser()}getTheme(){this.authService.getTheme().then(t=>{const o=this.themes.find(r=>r.id===t);this.themeName=o.alias,this.setLogoPath(),this.sessionHelper.SetThemeName(this.themeName),setTimeout(()=>{this.loaded=!0},1e3)})}setLogoPath(){this.logoPath=`assets/images/themes/${this.themeName}/login-logo.png`}login(t){this.saving=!0,this.loggedInUser.UserEmail=this.loginForm.get("email")?.value,this.sessionHelper.SetCurrentUser(this.loggedInUser),this.authService.doLogin(t).then(r=>{this.doLogin()},r=>{this.errorMessage=this.sessionHelper.GetLoginResult(),"Your password has expired"==this.errorMessage?this.changePassword():this.checkActiveSessions(),this.saving=!1})}doLogin(t=!1){this.isLoggedIn=this.sessionHelper.isLoggedIn(),t||(this.tenantList=this.sessionHelper.GetCustomerList()),!this.passwordPolicy.Use2FA||this.show2FA||t?this.redirectLogin(t):this.setup2FA()}redirectLogin(t=!1){0===this.tenantList.length?this.errorMessage="You do not have access to any customers":t?this.checkActiveSessions()||(this._configService.productMode===C.U.CCSS?this.redirectToCcss():this._configService.productMode===C.U.Streamline?this.redirectToDashboard():console.log("Product Mode could not be identified")):1===this.tenantList.length?this.chooseTenant({tenant:{TenantAlternateID:this.tenantList[0].TenantAlternateID,CustomerAlternateID:this.tenantList[0].CustomerAlternateID}},{email:this.loginForm.get("email").value,password:this.loginForm.get("password").value}):(this.saving=!1,this.showTenantList=!0,this.items=this.tenantList.map(o=>({Id:o.TenantAlternateID,AlternateID:o.CustomerAlternateID,Name:o.ProductDeploymentName?decodeURIComponent(o.ProductDeploymentName.replace(/\+/g,"%20")):o.TenantName?decodeURIComponent(o.TenantName.replace(/\+/g,"%20")):decodeURIComponent(o.CustomerName.replace(/\+/g,"%20"))})))}setup2FA(){this.countdownConfig={minutes:this.passwordPolicy.OTPExpiryInMinutes},this.authService.GenerateOneTimePin(this.loginForm.get("email")?.value).then(t=>{t.IsSuccess?(this.saving=!1,this.show2FA=!0,setTimeout(()=>{this.cdExpiry.start()},1e3)):(this.errorMessage=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("LoginComponent-> chooseTenant-> ",t))})}
1resend2FA(){this.allowResend&&(this.allowResend=!1,this.saving=!0,this.authService.GenerateOneTimePin(this.loginForm.get("email")?.value).then(t=>{this.saving=!1,this.resent2Fa=!0,this.expired=!1,this.otpError="",this.otpForm.get("otpPin").setValue(""),setTimeout(()=>{this.cdExpiry.reset(),this.cdResend.reset()},1e3)}))}validate2FA(){this.otpError=null,this.saving=!0,this.authService.ValidateOneTimePin(this.loginForm.get("email")?.value,this.otpForm.get("otpPin")?.value).then(t=>{this.sessionHelper.SetIsOTPValidated(t.IsSuccess),t.IsSuccess?this.redirectLogin():(this.saving=!1,t.FriendlyErrorMessage.toLowerCase().indexOf("failed login attempts have been exceeded")>-1?(this.show2FA=!1,this.errorMessage=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("LoginComponent-> Validate2FA-> ",t)):(this.otpError=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("LoginComponent-> Validate2FA-> ",t)))})}getPasswordPolicy(){this.authService.GetPasswordPolicy().then(t=>{this.passwordPolicy=t.PasswordPolicy,this.sessionHelper.SetPasswordPolicy(this.passwordPolicy)},t=>{this.errorMessage="PASSWORD_POLICY_ERROR",this.saving=!1,this._errorHandler.writeErrorMessages("LoginComponent-> GetPasswordPolicy-> ",t)})}chooseTenant(t,o){this.saving=!0,this.authService.chooseCustomer(t.tenant,o.email,o.password).then(r=>{this.doLogin(!0),this.errorMessage=this.sessionHelper.GetLoginResult()},r=>{this.saving=!1,this.checkActiveSessions()||(this.errorMessage=this.sessionHelper.GetLoginResult(),this._errorHandler.writeErrorMessages("LoginComponent-> chooseTenant-> ",r))})}checkActiveSessions(){return this.activeSessions=this.sessionHelper.GetLoginSessions(),this.showSessionList=this.activeSessions.length>0,this.showSessionList}deleteActiveSessionAndCreateNewSession(){this.saving=!0,this.authService.deleteActiveSessionAndLogin().then(t=>{this.sessionHelper.SetLoginSessions([]),this.deletingActiveSession=!0,this.show2FA=!1,this.doLogin(!0),this.errorMessage=this.sessionHelper.GetLoginResult()},t=>{this.saving=!1,this.errorMessage=this.sessionHelper.GetLoginResult(),this._errorHandler.writeErrorMessages("LoginComponent-> chooseTenant-> ",t)})}cancelLogin(){this.sessionHelper.ClearLogin(),window.location.reload()}splitDeviceInfo(t){return`<b>${t.DeviceInfo.split("|")[0]}</b> ${this.translateService.instant("ON")} <b>${t.DeviceInfo.split("|")[1]}</b>`}applyCustomerFilter(t){this.tenantForm.get("tenant")?.setValue({TenantAlternateID:t.Id,CustomerAlternateID:t.AlternateID,TenantName:t.Name})}redirectToDashboard(){this.settingsService.GetProductSettings().then(t=>{if(t){var o=this.sessionHelper.GetCurrentUser();this._anylyticService.setUserData(o),this._featureFlags.changeUser(o),this.sessionHelper.SetProductSettings(t),this.router.navigate(["pages/landing"])}else this.errorMessage="Product settings not found. Please contact your administrator."}).catch(t=>{this.errorMessage="Product settings not found. Please contact your administrator.",this._errorHandler.writeErrorMessages("LoginComponent-> redirectToDashboard-> ",t)})}redirectToCcss(){this.settingsService.GetProductSettings().then(t=>{if(t){var o=this.sessionHelper.GetCurrentUser();o.MobilityAPNOnly=t.GeneralSettings.IsAPNModeOnly,o.MobilityAPNOnlyPlus=t.GeneralSettings.IsAPNPlusModeOnly,this.sessionHelper.SetCurrentUser(o),this._anylyticService.setUserData(o),this._featureFlags.changeUser(o),o.UserRole===H.qP.Subscriber?this.authService.IsManagerCheck().then(r=>{this.sessionHelper.SetCCSSIsManagerLoggedIn(r),this.router.navigate(["/pages/ccss/homedashboard"])}):this.router.navigate(["/pages/ccss/homedashboard"])}else this.errorMessage=this.sessionHelper.GetLoginResult()})}register(){this.router.navigate(["/auth/register"])}forgotPassword(){this.router.navigate(["/auth/forgot-password"])}changePassword(){this.router.navigate(["/auth/change-password"])}getEmailErrorMessage(){return this.loginForm.get("email")?.hasError("required")?"You must enter a value":this.loginForm.get("email")?.hasError("email")?"Not a valid email":""}get2FaPlaceholder(){let t="";for(let o=0;o<this.passwordPolicy.OTPLength;o++)t+="X";return t}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(D.g),e.Y36(P.b),e.Y36(a.QS),e.Y36(_.F0),e.Y36(T.$),e.Y36(J.y),e.Y36(M.q),e.Y36(v.E),e.Y36(R.a),e.Y36(d.sK))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bumblebee-login"]],viewQuery:function(t,o){if(1&t&&(e.Gf(W,5,L.P),e.Gf(z,5,L.P)),2&t){let r;e.iGM(r=e.CRH())&&(o.cdExpiry=r.first),e.iGM(r=e.CRH())&&(o.cdResend=r.first)}},decls:4,vars:1,consts:[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-primary-bg","bumblebee-login-container","auth-pages","bumblebee-particle-background"],["class","bumblebee-login-card","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxFlex.lt-sm","100","fxLayout.lt-sm","column",4,"ngIf"],["id","particles-js",2,"display","none"],[1,"particles-js-canvas-el",2,"width","100%","height","100%"],["fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxFlex.lt-sm","100","fxLayout.lt-sm","column",1,"bumblebee-login-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],[4,"ngIf"],["fxLayout","column","fxLayoutGap","18px","fxLayoutAlign","center"],["fxLayout","column","fxLayoutGap","16px","fxLayout.lt-md","column"],[1,"version"],["alt","","class","logo","width","250px",3,"src",4,"ngIf"],[1,"title"],[1,"welcome-title"],["alt","","width","250px",1,"logo",3,"src"],[3,"formGroup","ngSubmit"],["matInput","","formControlName","email","maxlength","256","type","email","name","email",3,"placeholder","autocomplete","keyup.enter"],["matInput","","type","password","name","password","formControlName","password","maxlength","256",3,"type","placeholder","autocomplete","keyup.enter"],["matSuffix","",3,"click"],[2,"display","block"],[1,"forgot-password",3,"click"],["mat-raised-button","","type","submit","fxFlex","100%","fxFlex.lt-md","100%","color","accent",3,"disabled","click"],["mode","indeterminate","class","login-progress-bar",4,"ngIf"],["mode","indeterminate",1,"login-progress-bar"],["matInput","","type","text","name","otp","formControlName","otpPin",3,"placeholder","autocomplete","maxlength"],[1,"otp",3,"ngClass","click"],[3,"countdown","expired",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px"],["fxLayout","row","fxLayoutGap","16px","fxLayout.lt-md","column"],["mat-raised-button","","type","submit","fxFlex","100%","fxFlex.lt-md","none","color","accent",3,"disabled","click"],["mode","indeterminate","class","customer-progress-bar",4,"ngIf"],[3,"countdown","expired"],["cdExpiry",""],["cdResend",""],["mode","indeterminate",1,"customer-progress-bar"],[3,"isRequired","valuePrimitive","
1items","panelClass","placeholder","onFiltered"],[2,"text-align","left"],["cellspacing","0",1,"full-width",2,"text-align","left"],[4,"ngFor","ngForOf"],[3,"innerHTML"],["fxLayout","column"],["mat-raised-button","",1,"default",3,"click"],["color","accent","mat-raised-button","",3,"disabled","click"],[1,"session-icon"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e.YNc(1,ue,11,7,"mat-card",1),e.qZA(),e.TgZ(2,"div",2),e._UZ(3,"canvas",3),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf",o.loaded))},dependencies:[x.mk,x.sg,x.O5,a._Y,a.Fj,a.JJ,a.JL,a.nD,a.sg,a.u,l.xw,l.SQ,l.Wh,l.yH,Q.oO,g.a8,g.dn,u.lW,N.Hw,w.pW,p.TO,p.KE,p.bx,p.hX,p.R9,S.Nt,Y.X,L.P,x.uU,d.X$,$.d],styles:[".bumblebee-login-container{justify-content:center;align-items:center;text-align:center;min-height:100vh}.bumblebee-login-container .logo{margin:auto!important}.bumblebee-login-container h1{text-align:center;font-size:25px;font-weight:900}.bumblebee-login-container .welcome-title{position:relative;top:-15px}.bumblebee-login-container .mat-raised-button{border:1px solid #bbb;box-shadow:none;margin-top:20px}.bumblebee-login-container .bumblebee-login-card{border:1px solid #ccc;box-shadow:none;padding:0;z-index:10}.bumblebee-login-container .bumblebee-login-card mat-card-title h1{margin-bottom:0}.bumblebee-login-container .bumblebee-login-card mat-card-content{min-height:350px;padding:48px;margin:0}.bumblebee-login-container .bumblebee-login-card mat-error{text-align:center;position:relative;top:-12px}.bumblebee-login-container .bumblebee-login-card mat-icon{font-size:16px;cursor:pointer}.bumblebee-login-container .bumblebee-login-card .mat-form-field{width:100%}.bumblebee-login-container .bumblebee-login-card .version{padding-top:10px;font-size:12px}.bumblebee-login-container .bumblebee-login-card .otp{top:0!important;float:left!important;font-size:12px!important}.bumblebee-login-container .bumblebee-login-card .forgot-password{text-align:right;float:right;font-weight:700;font-size:14px;position:relative;cursor:pointer;top:-6px}.bumblebee-login-container .bumblebee-login-card .forgot-password:hover{text-decoration:underline}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.bumblebee-login-container .bumblebee-login-card mat-card{margin-top:10%}}.bumblebee-login-container .change-password:hover,.bumblebee-login-container .forgot-password:hover{cursor:pointer}.bumblebee-login-container .angularmaterialapp-login-card__logo{height:40px}.bumblebee-login-container mat-icon{position:relative;top:5px}.bumblebee-login-container .login-progress-bar{height:5px!important}.bumblebee-login-container .customer-progress-bar{top:-20px;height:5px!important}.bumblebee-login-container .bumblebee-login-card__logo{height:40px}canvas{display:block;vertical-align:bottom}#particles-js{width:100%;height:100%;background-color:transparent;background-size:cover;background-position:50% 50%;background-repeat:no-repeat;position:absolute;z-index:3}.particles-js-canvas-el{position:fixed;top:0;z-index:-1}\n"],encapsulation:2}),n})();var xe=c(65412);let be=(()=>{class n{constructor(t,o,r){this.router=t,this.sessionHelper=o,this.dialogRef=r}ngOnInit(){this.sessionHelper.ClearLogin(),this.dialogRef.closeAll(),this.router.navigate(["/auth/login"])}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.F0),e.Y36(P.b),e.Y36(xe.uw))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-logout"]],decls:2,vars:0,template:function(t,o){1&t&&(e.TgZ(0,"p"),e._uU(1,"logout works!"),e.qZA())}}),n})();var E=c(17009);function Ce(n,s){if(1&n&&e._UZ(0,"img",7),2&n){const t=e.oxw();e.MGl("src","assets/images/themes/",t.themeName,"/login-logo.png",e.LSH)}}
1function Pe(n,s){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(e.lcZ(2,1,t.errorMessage))}}function we(n,s){1&n&&e._UZ(0,"mat-progress-bar",12)}function Ae(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"form",8),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.sendForgotPassword(r.forgotForm.value))}),e.TgZ(2,"mat-form-field")(3,"input",9),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.sendForgotPassword(r.forgotForm.value))}),e.qZA(),e.YNc(4,Pe,3,3,"mat-hint",5),e.qZA()(),e.TgZ(5,"button",10),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.sendForgotPassword(r.forgotForm.value))}),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.YNc(8,we,1,0,"mat-progress-bar",11),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("formGroup",t.forgotForm),e.xp6(2),e.s9C("autocomplete",t.autocomplete),e.xp6(1),e.Q6J("ngIf",""!==t.errorMessage),e.xp6(1),e.Q6J("disabled",!t.forgotForm.valid||t.saving),e.xp6(1),e.hij(" ",e.lcZ(7,6,"PASSWORD_RESET")," "),e.xp6(2),e.Q6J("ngIf",t.saving)}}function Te(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"SEND_RESET_LINK_MESSAGE"),""))}let Me=(()=>{class n{constructor(t,o,r,i,m,h,f){this.formBuilder=t,this.router=o,this.snackBar=r,this.authService=i,this.sessionHelper=m,this._errorHandler=h,this.translateService=f,this.errorMessage="",this.completed=!1,this.themeName="default",this.saving=!1,this.autocomplete="off",this.themes=O.Z}ngOnInit(){this.getTheme(),this.forgotForm=this.formBuilder.group({email:["",a.kI.required]})}getTheme(){const t=this.sessionHelper.GetThemeName();null!==t?this.themeName=t:this.authService.getTheme().then(o=>{const r=this.themes.find(i=>i.id===o);this.themeName=r.alias,this.sessionHelper.SetThemeName(this.themeName)})}sendForgotPassword(t){this.saving=!0,this.authService.RequestPasswordReset(t.email).then(o=>{this.saving=!1,this.completed=!0}).catch(o=>{this.errorMessage=o.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("ForogotPassword-> sendForgotPassword-> ",o),this.saving=!1})}goToLogin(){this.router.navigate(["/auth/login"])}openSnackBar(t,o){this.snackBar.open(t,o,{duration:2e3})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(a.QS),e.Y36(_.F0),e.Y36(E.ux),e.Y36(T.$),e.Y36(P.b),e.Y36(M.q),e.Y36(d.sK))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bumblebee-forgot-password"]],decls:16,vars:12,consts:[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none","fxLayoutAlign","center center",1,"raven-primary-bg","bumblebee-forgot-password-container","auth-pages","bumblebee-particle-background"],["fxLayout","column","fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-forgot-card","mat-elevation-z","bumblebee-text-align-center"],["fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","10px",1,"raven-accent-bg","forgot"],["alt","","class","logo","width","250px",3,"src",4,"ngIf"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","space-between none"],[4,"ngIf"],["mat-button","",1,"btnBackToLogin",3,"click"],["alt","","width","250px",1,"logo",3,"src"],[1,"bumblebee-forgot-card__item",3,"formGroup","ngSubmit"],["matInput","","formControlName","email","placeholder","Email Address",3,"autocomplete","keyup.enter"],["mat-raised-button","","type","submit","color","accent",1,"bumblebee-forgot-card__item",3,"disabled","click"],["mode","indeterminate","class","password-progress-bar",4,"ngIf"],["mode","indeterminate",1,"password-progress-bar"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-title",2),e.YNc(3,Ce,1,1,"img",3),e.TgZ(4,"h1"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"p"),e._uU(8),e.ALo(9,"translate"),e.qZA()(),e.TgZ(10,"mat-card-content",4),e.YNc(11,Ae,9,8,"ng-container",5),e.YNc(12,Te,4,3,"ng-container",5),e.TgZ(13,"a",6),e.NdJ("click",function(){return o.goToLogin()}),e._uU(14),e.ALo(15,"translate"),e.qZA()()()()),2&t&&(e.xp6(3),e.Q6J("ngIf",o.themeName),e.xp6(2),e.Oqu(e.lcZ(6,6,"FORGOT_PASSWORD_HEADER")),e.xp6(3),e.Oqu(e.l
1cZ(9,8,"FORGOT_PASSWORD_MESSAGE")),e.xp6(3),e.Q6J("ngIf",!o.completed),e.xp6(1),e.Q6J("ngIf",o.completed),e.xp6(2),e.hij(" ",e.lcZ(15,10,"BACK_TO_LOGIN")," "))},dependencies:[x.O5,a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u,l.xw,l.SQ,l.Wh,l.yH,g.a8,g.dn,g.n5,u.lW,u.zs,w.pW,p.KE,p.bx,S.Nt,d.X$],styles:[".bumblebee-forgot-password-container[_ngcontent-%COMP%]{min-height:100%}.bumblebee-forgot-card[_ngcontent-%COMP%]{padding:0;border:1px solid #ccc;border-radius:0;box-shadow:none}.bumblebee-forgot-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%], .bumblebee-forgot-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]{padding:48px}.bumblebee-forgot-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1rem}.bumblebee-forgot-card[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-forgot-card[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin:auto!important}.mat-form-field-hint-wrapper[_ngcontent-%COMP%]{text-align:center;display:block!important}.mat-hint[_ngcontent-%COMP%]{color:red}.mat-raised-button[_ngcontent-%COMP%]{border-radius:0;border:1px solid #bbb;box-shadow:none}.password-progress-bar[_ngcontent-%COMP%]{position:relative}"]}),n})();var Se=c(39646),U=c(85060);function Z(n){return s=>(0,U.PE)(s.value)?(0,Se.of)(null):new Promise((t,o)=>{let r=s.value||"";return r?!1===/[A-Z]+/g.test(r)&&n.ContainUppercase?t({passwordStrength:"Upper case character required"}):!1===/[a-z]+/g.test(r)&&n.ContainLowercase?t({passwordStrength:"Lower case character required"}):!1===/[0-9]+/g.test(r)&&n.ContainDigits?t({passwordStrength:"Numeric character required"}):!1===/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(r)&&n.ContainSpecial?t({passwordStrength:"Special character required"}):t(null):null})}var F=c(22134);function Oe(n,s){if(1&n&&e._UZ(0,"img",7),2&n){const t=e.oxw();e.MGl("src","assets/images/themes/",t.themeName,"/login-logo.png",e.LSH)}}function ve(n,s){1&n&&e._UZ(0,"mat-progress-bar",8)}function Ee(n,s){1&n&&(e.TgZ(0,"span",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"PASSWORD_VALIDATION_REQUIRED")," "))}function Ne(n,s){if(1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"MIN_LENGTH_MESSAGE").replace("{#}",t.passwordPolicy.MinLength),"")}}function Le(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_UPPERCASE_MESSAGE"),""))}function Ze(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_LOWERCASE_MESSAGE"),""))}function Fe(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_DIGITS_MESSAGE"),""))}function Ie(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_SPECIAL_MESSAGE"),""))}function ye(n,s){if(1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"PASSWORD_REUSE_MONTHS_MESSAGE").replace("{#}",t.passwordPolicy.PasswordReuseMonths),"")}}function Re(n,s){1&n&&(e.TgZ(0,"span",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"PASSWORD_VALIDATION_REQUIRED")," "))}function Ue(n,s){if(1&n&&(e.TgZ(0,"span",28),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,"PASSWORD_VALIDATION_LENGTH").replace("{#}",t.passwordPolicy.MinLength)," ")}}function ke(n,s){if(1&n&&(e.TgZ(0,"span",28),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.resetForm.get("password").errors.passwordStrength," ")}}function qe(n,s){if(1&n&&(e.TgZ(0,"div",27),e.YNc(1,Ue,3,3,"span",21),e.YNc(2,ke,2,1,"span",21),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.resetForm.get("password").errors.minlength),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("password").hasError("passwordStrength"))}}function Ge(n,s){1&n&&(e.TgZ(0,"span",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"CONFIRM_PASSWORD_VALIDATION_REQUIRED")))}
1function He(n,s){if(1&n&&(e.TgZ(0,"span",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(e.lcZ(2,1,"CONFIRM_PASSWORD_VALIDATION_LENGTH").replace("{#}",t.passwordPolicy.MinLength))}}function De(n,s){1&n&&(e.TgZ(0,"span",26),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"PASSWORD_CONFIRM_MISMATCH")))}function Je(n,s){if(1&n&&(e.TgZ(0,"mat-error",28),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function Qe(n,s){1&n&&e._UZ(0,"mat-progress-bar",29)}function Ye(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"form",9),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.changePassword())}),e.TgZ(2,"mat-form-field")(3,"input",10),e.NdJ("ngModelChange",function(r){e.CHM(t);const i=e.oxw();return e.KtG(i.user.UserEmail=r)}),e.qZA()(),e.TgZ(4,"mat-form-field"),e._UZ(5,"input",11),e.ALo(6,"translate"),e.TgZ(7,"mat-icon",12),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.hidePasswordOld=!r.hidePasswordOld)}),e._uU(8),e.qZA()(),e.YNc(9,Ee,3,3,"span",13),e.TgZ(10,"mat-form-field"),e._UZ(11,"input",14),e.ALo(12,"translate"),e.TgZ(13,"mat-icon",12),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.hidePasswordNew=!r.hidePasswordNew)}),e._uU(14),e.qZA()(),e.TgZ(15,"div",15)(16,"a",16),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"ul",17),e.YNc(20,Ne,3,3,"li",5),e.YNc(21,Le,3,3,"li",5),e.YNc(22,Ze,3,3,"li",5),e.YNc(23,Fe,3,3,"li",5),e.YNc(24,Ie,3,3,"li",5),e.YNc(25,ye,3,3,"li",5),e.qZA()(),e.YNc(26,Re,3,3,"span",18),e.YNc(27,qe,3,2,"div",19),e.TgZ(28,"mat-form-field")(29,"input",20),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.changePassword())}),e.ALo(30,"translate"),e.qZA(),e.TgZ(31,"mat-icon",12),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.hidePasswordNew2=!r.hidePasswordNew2)}),e._uU(32),e.qZA()(),e.YNc(33,Ge,3,3,"span",18),e.YNc(34,He,3,3,"span",18),e.YNc(35,De,3,3,"span",18),e.YNc(36,Je,2,1,"mat-error",21),e.qZA(),e.TgZ(37,"div",22)(38,"button",23),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.changePassword())}),e._uU(39),e.ALo(40,"translate"),e.qZA()(),e.YNc(41,Qe,1,0,"mat-progress-bar",24),e._UZ(42,"br"),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("formGroup",t.resetForm),e.xp6(2),e.Q6J("ngModel",t.user.UserEmail)("readonly",!0),e.xp6(2),e.s9C("placeholder",e.lcZ(6,32,"CONFIRM_OLD_PASSWORD")),e.s9C("autocomplete",t.autocomplete),e.Q6J("type",t.hidePasswordOld?"password":"text"),e.xp6(3),e.hij(" ",t.hidePasswordOld?"visibility_off":"visibility",""),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("oldPassword").touched&&t.resetForm.get("oldPassword").hasError("required")),e.xp6(2),e.s9C("placeholder",e.lcZ(12,34,"NEW_PASSWORD")),e.s9C("autocomplete",t.autocomplete),e.Q6J("type",t.hidePasswordNew?"password":"text"),e.xp6(3),e.hij(" ",t.hidePasswordNew?"visibility_off":"visibility",""),e.xp6(3),e.Oqu(e.lcZ(18,36,"VIEW_PASSWORD_POLICY")),e.xp6(3),e.Q6J("ngIf",t.passwordPolicy.MinLength>0),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainUppercase),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainLowercase),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainDigits),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainSpecial),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.PasswordReuseMonths>0),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("password").touched&&t.resetForm.get("password").hasError("required")),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("password").invalid&&(t.resetForm.get("password").touched||t.resetForm.get("password").dirty)),e.xp6(2),e.s9C("placeholder",e.lcZ(30,38,"CONFIRM_PASSWORD")),e.s9C("autocomplete",t.autocomplete),e.Q6J("type",t.hidePasswordNew2?"password":"text"),e.xp6(3),e.hij(" ",t.hidePasswordNew2?"visibility_off":"visibility",""),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("confirmPassword").touched&&t.resetForm.get("confirmPassword").hasError("required")),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("confirmPassword").touched&&t.resetForm.get("confirmPassword").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("confirmPassword").touched&&t.resetForm.get("confirmPassword").hasError("mismatchedPasswords")),e.xp6(1),e.Q6J("ngIf",""!==t.errorMessage),e.xp6(2),e.Q6J("disabled",!t.resetForm.valid||t.saving),e.xp6(1),e.hij(" ",e.lcZ(40,40,t.saving?t.loadingText:"SUBMIT")," "),e.xp6(2),e.Q6J("ngIf",t.saving)}}function $e(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span",30),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CHANGE_PASSWORD_SUCCESS"),""))}
1function We(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"a",31),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.backClicked())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"BACK")," "))}function ze(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"a",31),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.backToLogin())}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"BACK_TO_LOGIN")," "))}let je=(()=>{class n{constructor(t,o,r,i,m,h,f,b,A,q){this.sessionHelper=t,this.formBuilder=o,this.router=r,this.authService=i,this._configService=m,this.snackBar=h,this.translateService=f,this._location=b,this._errorHandler=A,this.tenants=new Array,this.isLoggedIn=!1,this.policyLoaded=!1,this.loading=!1,this.loginError="",this.themeName="default",this.saving=!1,this.loadingText="PLEASE_WAIT",this.loggedInUser=new y.T,this.errorMessage="",this.version="0.0.0",this.showTenantList=!1,this.hidePasswordOld=!0,this.hidePasswordNew=!0,this.hidePasswordNew2=!0,this.completed=!1,this.autocomplete="off",this.themes=O.Z,this.version=m.appVersion,this.themeName=this.sessionHelper.GetThemeName(),this.user=this.sessionHelper.GetCurrentUser()}ngOnInit(){this.user=this.sessionHelper.GetCurrentUser(),this.getPasswordPolicy()}getTheme(){const t=this.sessionHelper.GetThemeName();null!==t?this.themeName=t:this.authService.getTheme().then(o=>{const r=this.themes.find(i=>i.id===o);this.themeName=r.alias,this.sessionHelper.SetThemeName(this.themeName)})}getPasswordPolicy(){this.authService.GetPasswordPolicy().then(t=>{t.IsSuccess?(this.passwordPolicy=t.PasswordPolicy,this.setupForm()):(this.errorMessage=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("ChangePassword-> getPasswordPolicy-> ",t))})}setupForm(){this.resetForm=this.formBuilder.group({email:[""],oldPassword:["",a.kI.compose([a.kI.required])],password:[null,a.kI.compose([a.kI.required,a.kI.minLength(this.passwordPolicy?.MinLength||0)]),[Z(this.passwordPolicy)]],confirmPassword:["",a.kI.compose([a.kI.required])]},{validator:(0,F.zi)("password","confirmPassword")}),this.policyLoaded=!0}changePassword(){this.saving=!0,this.loading=!0,this.loginError="",this.authService.ChangePassword(this.resetForm.get("email").value,this.resetForm.get("oldPassword").value,this.resetForm.get("password").value,this.resetForm.get("confirmPassword").value,this.passwordPolicy.PasswordReuseMonths).then(o=>{o.IsSuccess?(this.sessionHelper.ClearLogin(),this.completed=!0,this.openSnackBar(this.translateService.instant("PASSWORD_RESET_SUCCESS"),this.translateService.instant("PASSWORD_RESET"))):(this.errorMessage=o.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("ChangePassword-> changePassword-> ",o)),this.saving=!1}
1).catch(o=>{this._errorHandler.writeErrorMessages("ChangePassword-> changePassword-> ",o),this.saving=!1})}backClicked(){this._location.back()}backToLogin(){this.router.navigate(["/auth/login"])}forgotPassword(){this.router.navigate(["/auth/forgot-password"])}openSnackBar(t,o){this.snackBar.open(t,o,{duration:2e3})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(P.b),e.Y36(a.QS),e.Y36(_.F0),e.Y36(T.$),e.Y36(v.E),e.Y36(E.ux),e.Y36(d.sK),e.Y36(x.Ye),e.Y36(M.q),e.Y36(a.QS))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-change-password"]],decls:13,vars:9,consts:[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-primary-bg","bumblebee-login-container","bumblebee-change-password-container","auth-pages","bumblebee-particle-background"],["fxFlex","100","fxFlex.md","30","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-login-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],["alt","","class","logo","width","250px",3,"src",4,"ngIf"],["mode","indeterminate",4,"ngIf"],[4,"ngIf"],["mat-button","","class","btnBackToLogin",3,"click",4,"ngIf"],["alt","","width","250px",1,"logo",3,"src"],["mode","indeterminate"],[3,"formGroup","ngSubmit"],["matInput","","formControlName","email",3,"ngModel","readonly","ngModelChange"],["matInput","","formControlName","oldPassword","type","password",3,"type","placeholder","autocomplete"],["matSuffix","",3,"click"],["class","help-block text-danger","style","position: relative;top: -18px;",4,"ngIf"],["matInput","","type"," password","formControlName","password",3,"type","placeholder","autocomplete"],[1,"tooltip"],[2,"font-size","10px"],[1,"tooltiptext"],["class","help-block text-danger new-password",4,"ngIf"],["class","errors",4,"ngIf"],["formControlName","confirmPassword","matInput","","type","password",3,"type","placeholder","autocomplete","keyup.enter"],["class","error-text",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px","fxLayout.lt-md","column"],["mat-raised-button","","type","submit","fxFlex","100%","fxFlex.lt-md","100%","color","accent",1,"bumblebee-forgot-card__item",3,"disabled","click"],["mode","indeterminate","class","login-progress-bar",4,"ngIf"],[1,"help-block","text-danger",2,"position","relative","top","-18px"],[1,"help-block","text-danger","new-password"],[1,"errors"],[1,"error-text"],["mode","indeterminate",1,"login-progress-bar"],[2,"padding-bottom","20px"],["mat-button","",1,"btnBackToLogin",3,"click"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2),e.YNc(3,Oe,1,1,"img",3),e._UZ(4,"br"),e.TgZ(5,"h1"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.YNc(8,ve,1,0,"mat-progress-bar",4),e.YNc(9,Ye,43,42,"ng-container",5),e.YNc(10,$e,4,3,"ng-container",5),e.YNc(11,We,3,3,"a",6),e.YNc(12,ze,3,3,"a",6),e.qZA()()()),2&t&&(e.xp6(3),e.Q6J("ngIf",o.themeName),e.xp6(3),e.Oqu(e.lcZ(7,7,"CHANGE_PASSWORD")),e.xp6(2),e.Q6J("ngIf",!o.policyLoaded),e.xp6(1),e.Q6J("ngIf",!o.completed&&o.policyLoaded),e.xp6(1),e.Q6J("ngIf",o.completed),e.xp6(1),e.Q6J("ngIf",!o.completed),e.xp6(1),e.Q6J("ngIf",o.completed))},dependencies:[x.O5,a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u,l.xw,l.SQ,l.Wh,l.yH,g.a8,g.dn,u.lW,u.zs,N.Hw,w.pW,p.TO,p.KE,p.R9,S.Nt,d.X$],styles:['.bumblebee-change-password-container[_ngcontent-%COMP%]{justify-content:center;align-items:center;text-align:center;min-height:100vh}.bumblebee-change-password-container[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin:auto!important}.bumblebee-change-password-container[_ngcontent-%COMP%]   .welcome-title[_ngcontent-%COMP%]{position:relative;top:-15px}.bumblebee-change-password-container[_ngcontent-%COMP%]   .mat-raised-button[_ngcontent-%COMP%]{border-radius:0;border:1px solid #bbb;box-shadow:none;margin-top:20px}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:0;box-shadow:none;padding:0}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:0}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{min-height:350px;padding:48px;margin:0}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{text-align:center}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .text-danger[_ngcontent-%COMP%]{color:red;float:right;font-size:12px}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .new-password[_ngcontent-%COMP%]{position:relative;top:-18px;text-align:right}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]{float:left;position:relative;font-size:12px;border:none;top:-23px}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:10px}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]{list-style-type:none}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]{width:238px!important;padding:4px 6px 4px 22px;visibility:hidden;width:120px;background-color:#000;color:#fff;text-align:left;border-radius:6px;position:absolute;z-index:1;top:-112px;left:110%}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{white-space:pre-line}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:transparent black transparent transparent}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]:hover   .tooltiptext[_ngcontent-%COMP%]{visibility:visible}.bumblebee-change-password-container[_ngcontent-%COMP%]   .mat-raised-button[disabled][_ngcontent-%COMP%]{border-radius:0}.bumblebee-change-password-container[_ngcontent-%COMP%]   .forgot-password[_ngcontent-%COMP%]:hover{cursor:pointer}.bumblebee-change-password-container[_ngcontent-%COMP%]   .angularmaterialapp-login-card__logo[_ngcontent-%COMP%]{height:40px}.bumblebee-change-password-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:relative;top:5px}.bumblebee-change-password-container[_ngcontent-%COMP%]   .progress-bar[_ng
1content-%COMP%]{top:-20px;height:12px!important}.bumblebee-change-password-container[_ngcontent-%COMP%]   .errors[_ngcontent-%COMP%]{position:relative;top:-18px;text-align:right;list-style-position:inside}.bumblebee-change-password-container[_ngcontent-%COMP%]   .bumblebee-login-card__logo[_ngcontent-%COMP%]{height:40px}']}),n})();class k{}function Be(n,s){if(1&n&&e._UZ(0,"img",8),2&n){const t=e.oxw();e.MGl("src","assets/images/themes/",t.themeName,"/login-logo.png",e.LSH)}}function Ke(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"PASSWORD_VALIDATION_REQUIRED")))}function Ve(n,s){if(1&n&&(e.TgZ(0,"span",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(e.lcZ(2,1,"PASSWORD_VALIDATION_LENGTH").replace("{#}",t.passwordPolicy.MinLength))}}function Xe(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"CONFIRM_PASSWORD_VALIDATION_REQUIRED")))}function et(n,s){if(1&n&&(e.TgZ(0,"span",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(e.lcZ(2,1,"CONFIRM_PASSWORD_VALIDATION_LENGTH").replace("{#}",t.passwordPolicy.MinLength))}}function tt(n,s){1&n&&(e.TgZ(0,"span",17),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"PASSWORD_CONFIRM_MISMATCH")))}function nt(n,s){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(t.errorMessage)}}function ot(n,s){1&n&&e._UZ(0,"mat-progress-bar",18)}function rt(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"form",9),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.resetPassword())}),e.TgZ(2,"mat-form-field")(3,"input",10),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.resetPassword())}),e.ALo(4,"translate"),e.qZA(),e.YNc(5,Ke,3,3,"span",6),e.YNc(6,Ve,3,3,"span",6),e.TgZ(7,"mat-icon",11),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.hidePassword=!r.hidePassword)}),e._uU(8),e.qZA()(),e.TgZ(9,"mat-form-field")(10,"input",12),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.resetPassword())}),e.ALo(11,"translate"),e.qZA(),e.YNc(12,Xe,3,3,"span",6),e.YNc(13,et,3,3,"span",6),e.YNc(14,tt,3,3,"span",6),e.TgZ(15,"mat-icon",11),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.hidePassword=!r.hidePassword)}),e._uU(16),e.qZA()(),e.YNc(17,nt,2,1,"mat-error",5),e.qZA(),e.TgZ(18,"div",13)(19,"div",14)(20,"button",15),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.resetPassword())}),e._uU(21),e.ALo(22,"translate"),e.qZA()(),e.YNc(23,ot,1,0,"mat-progress-bar",16),e.qZA(),e.BQk()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("formGroup",t.resetForm),e.xp6(2),e.s9C("placeholder",e.lcZ(4,18,"NEW_PASSWORD")),e.s9C("autocomplete",t.autocomplete),e.Q6J("type",t.hidePassword?"password":"text"),e.xp6(2),e.Q6J("ngIf",t.resetForm.get("password").touched&&t.resetForm.get("password").hasError("required")),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("password").touched&&t.resetForm.get("password").hasError("minlength")),e.xp6(2),e.hij(" ",t.hidePassword?"visibility_off":"visibility",""),e.xp6(2),e.s9C("placeholder",e.lcZ(11,20,"CONFIRM_NEW_PASSWORD")),e.s9C("autocomplete",t.autocomplete),e.Q6J("type",t.hidePassword?"password":"text"),e.xp6(2),e.Q6J("ngIf",t.resetForm.get("password_confirm").touched&&t.resetForm.get("password_confirm").hasError("required")),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("password_confirm").touched&&t.resetForm.get("password_confirm").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",t.resetForm.get("password_confirm").touched&&t.resetForm.get("password_confirm").hasError("mismatchedPasswords")),e.xp6(2),e.hij(" ",t.hidePassword?"visibility_off":"visibility",""),e.xp6(1),e.Q6J("ngIf",""!==t.errorMessage),e.xp6(3),e.Q6J("disabled",!t.resetForm.valid||t.saving),e.xp6(1),e.hij(" ",e.lcZ(22,22,t.saving?t.loadingText:"PASSWORD_RESET")," "),e.xp6(2),e.Q6J("ngIf",t.saving)}}function st(n,s){if(1&n&&(e.ynx(0),e.YNc(1,rt,24,24,"ng-container",5),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!t.completed)}}
1function at(n,s){if(1&n&&(e.TgZ(0,"span",17),e._uU(1),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.Oqu(t.loginError)}}function it(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"PASSWORD_RESET_SUCCESS"),""))}let ct=(()=>{class n{constructor(t,o,r,i,m,h,f,b){this.formBuilder=t,this.router=o,this.snackBar=r,this.authService=i,this.sessionHelper=m,this.translateService=h,this._errorHandler=f,this.route=b,this.themeName="default",this.tokenValid=!1,this.loading=!1,this.isLoggedIn=!1,this.loginError="",this.passwordPolicy=new k,this.completed=!1,this.errorMessage="",this.saving=!1,this.hidePassword=!0,this.loadingText="PLEASE_WAIT",this.autocomplete="off",this.themes=O.Z,this.setupForm()}ngOnInit(){this.getTheme(),this.route.queryParams.subscribe(t=>{this.inviteToken=t.token}),null==this.inviteToken||""===this.inviteToken?this.loginError=this.translateService.instant("PASSWORD_RESET_TOKEN_VALIDATION"):this.authService.validatePasswordResetToken(this.inviteToken).then(t=>{t.IsSuccess?(this.tokenValid=!0,this.getPasswordPolicy()):(this.tokenValid=!1,this.loginError=this.translateService.instant(t.FriendlyErrorMessage),this._errorHandler.writeErrorMessages("ResetPassword-> validatePasswordResetToken-> ",t))})}getPasswordPolicy(){this.authService.GetPasswordPolicy().then(t=>{t.IsSuccess?(this.passwordPolicy=t.PasswordPolicy,this.setupForm()):(this.errorMessage=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("ChangePassword-> getPasswordPolicy-> ",t))})}getTheme(){const t=this.sessionHelper.GetThemeName();null!==t?this.themeName=t:this.authService.getTheme().then(o=>{const r=this.themes.find(i=>i.id===o);this.themeName=r.alias,this.sessionHelper.SetThemeName(this.themeName)})}setupForm(){this.resetForm=this.formBuilder.group({password:["",a.kI.compose([a.kI.required,a.kI.minLength(this.passwordPolicy.MinLength||0)]),[Z(this.passwordPolicy)]],password_confirm:["",a.kI.compose([a.kI.required])]},{validator:(0,F.zi)("password","password_confirm")})}resetPassword(){this.loading=!0,this.loginError="",this.authService.ResetPassword(this.inviteToken,this.resetForm.get("password").value,this.resetForm.get("password_confirm").value,this.passwordPolicy.PasswordReuseMonths).then(o=>{o.IsSuccess?(this.completed=!0,this.openSnackBar(this.translateService.instant("PASSWORD_RESET_SUCCESS"),this.translateService.instant("PASSWORD_RESET"))):(this.errorMessage=o.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("ResetPassword-> ResetPassword-> ",o)),this.saving=!1}
1).catch(o=>{this._errorHandler.writeErrorMessages("ResetPassword-> ResetPassword-> ",o),this.saving=!1})}goToLogin(){this.router.navigate(["/auth/login"])}openSnackBar(t,o){this.snackBar.open(t,o,{duration:2e3})}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(a.QS),e.Y36(_.F0),e.Y36(E.ux),e.Y36(T.$),e.Y36(P.b),e.Y36(d.sK),e.Y36(M.q),e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bumblebee-reset-password"]],decls:16,vars:13,consts:[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-primary-bg","bumblebee-login-container","bumblebee-resetpassword-container","auth-pages","bumblebee-particle-background"],["fxFlex","100","fxFlex.md","30","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-login-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],["alt","","class","logo","width","250px",3,"src",4,"ngIf"],[1,"welcome-title"],[4,"ngIf"],["class","help-block text-danger",4,"ngIf"],["mat-button","",1,"btnBackToLogin",3,"click"],["alt","","width","250px",1,"logo",3,"src"],[3,"formGroup","ngSubmit"],["matInput","","type"," password","formControlName","password",3,"type","placeholder","autocomplete","keyup.enter"],["matSuffix","",3,"click"],["formControlName","password_confirm","matInput","","type","password",3,"type","placeholder","autocomplete","keyup.enter"],["fxLayout","column","fxLayoutGap","16px"],["fxLayout","row","fxLayoutGap","16px","fxLayout.lt-md","column"],["mat-raised-button","","type","submit","fxFlex","100%","fxFlex.lt-md","100%","color","accent",3,"disabled","click"],["mode","indeterminate","class","login-progress-bar",4,"ngIf"],[1,"help-block","text-danger"],["mode","indeterminate",1,"login-progress-bar"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2),e.YNc(3,Be,1,1,"img",3),e._UZ(4,"br"),e.TgZ(5,"h1",4),e._UZ(6,"br"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.YNc(9,st,2,1,"ng-container",5),e.ynx(10),e.YNc(11,at,2,1,"span",6),e.BQk(),e.YNc(12,it,4,3,"ng-container",5),e.TgZ(13,"a",7),e.NdJ("click",function(){return o.goToLogin()}),e._uU(14),e.ALo(15,"translate"),e.qZA()()()()),2&t&&(e.Jzz("background: url(assets/images/themes/",o.themeName,"/background.svg) repeat-x"),e.xp6(3),e.Q6J("ngIf",o.themeName),e.xp6(4),e.Oqu(e.lcZ(8,9,"PASSWORD_RESET")),e.xp6(2),e.Q6J("ngIf",""===o.loginError),e.xp6(2),e.Q6J("ngIf",""!==o.loginError),e.xp6(1),e.Q6J("ngIf",o.completed),e.xp6(2),e.hij(" ",e.lcZ(15,11,"BACK_TO_LOGIN")," "))},dependencies:[x.O5,a._Y,a.Fj,a.JJ,a.JL,a.sg,a.u,l.xw,l.SQ,l.Wh,l.yH,g.a8,g.dn,u.lW,u.zs,N.Hw,w.pW,p.TO,p.KE,p.R9,S.Nt,d.X$],styles:[".bumblebee-resetpassword-container{justify-content:center;align-items:center;text-align:center;min-height:100vh}.bumblebee-resetpassword-container .logo{margin:auto!important}.bumblebee-resetpassword-container .welcome-title{position:relative;top:-15px}.bumblebee-resetpassword-container h1{text-align:center;font-size:25px;color:gray;font-weight:900}.bumblebee-resetpassword-container .mat-raised-button{border-radius:0;border:1px solid #bbb;box-shadow:none;margin-top:20px}.bumblebee-resetpassword-container .bumblebee-login-card{border:1px solid #ccc;border-radius:0;box-shadow:none;padding:0}.bumblebee-resetpassword-container .bumblebee-login-card mat-card-title h1{margin-bottom:0}.bumblebee-resetpassword-container .bumblebee-login-card mat-card-content{min-height:350px;padding:48px;margin:0}.bumblebee-resetpassword-container .bumblebee-login-card mat-error{text-align:center}.bumblebee-resetpassword-container .bumblebee-login-card .mat-form-field{width:100%}.bumblebee-resetpassword-container .bumblebee-login-card .text-danger{color:red;text-align:center}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.bumblebee-resetpassword-container .bumblebee-login-card mat-card{margin-top:10%}}.bumblebee-resetpassword-container .mat-raised-button[disabled]{border-radius:0}.bumblebee-resetpassword-container .forgot-password{text-align:right;color:#e60000;text-transform:uppercase;font-weight:700;font-size:14px;position:relative;top:-6px}.bumblebee-resetpassword-container .forgot-password:hover{text-decoration:underline}.bumblebee-resetpassword-container .forgot-password:hover{cursor:pointer}.bumblebee-resetpassword-container .angularmaterialapp-login-card__logo{height:40px}.bumblebee-resetpassword-container mat-icon{position:relative;top:5px}.bumblebee-resetpassword-container .login-progress-bar{top:-20px;height:12px!important}.bumblebee-resetpassword-container .customer-progress-bar{top:-20px;height:5px!important}.bumblebee-resetpassword-container .bumblebee-login-card__logo{height:40px}\n"],encapsulation:2}),n})();
1function lt(n,s){if(1&n&&e._UZ(0,"img",5),2&n){const t=e.oxw();e.MGl("src","assets/images/themes/",t.themeName,"/login-logo.png",e.LSH)}}function gt(n,s){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"REGISTER_TITLE")))}function mt(n,s){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"REGISTER_ERROR")))}function pt(n,s){if(1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"MIN_LENGTH_MESSAGE").replace("{#}",t.passwordPolicy.MinLength),"")}}function _t(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_UPPERCASE_MESSAGE"),""))}function dt(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_LOWERCASE_MESSAGE"),""))}function ut(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_DIGITS_MESSAGE"),""))}function ht(n,s){1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"CONTAIN_SPECIAL_MESSAGE"),""))}function ft(n,s){if(1&n&&(e.TgZ(0,"li"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.hij("\u2022 ",e.lcZ(2,1,"PASSWORD_REUSE_MONTHS_MESSAGE").replace("{#}",t.passwordPolicy.PasswordReuseMonths),"")}}function xt(n,s){1&n&&(e.TgZ(0,"span",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"PASSWORD_VALIDATION_REQUIRED")," "))}function bt(n,s){if(1&n&&(e.TgZ(0,"span",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",e.lcZ(2,1,"PASSWORD_VALIDATION_LENGTH").replace("{#}",t.passwordPolicy.MinLength)," ")}}
1function Ct(n,s){if(1&n&&(e.TgZ(0,"span",30),e._uU(1),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.hij(" ",t.registerForm.get("password").errors.passwordStrength," ")}}function Pt(n,s){if(1&n&&(e.TgZ(0,"div",28),e.YNc(1,bt,3,3,"span",29),e.YNc(2,Ct,2,1,"span",29),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.registerForm.get("password").errors.minlength),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("password").hasError("passwordStrength"))}}function wt(n,s){1&n&&(e.TgZ(0,"span",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"CONFIRM_PASSWORD_VALIDATION_REQUIRED")))}function At(n,s){if(1&n&&(e.TgZ(0,"span",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(e.lcZ(2,1,"CONFIRM_PASSWORD_VALIDATION_LENGTH").replace("{#}",t.passwordPolicy.MinLength))}}function Tt(n,s){1&n&&(e.TgZ(0,"span",31),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"PASSWORD_CONFIRM_MISMATCH")))}function Mt(n,s){if(1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(t.errorMessage)}}function St(n,s){1&n&&e._UZ(0,"mat-progress-bar",32)}function Ot(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.YNc(1,gt,3,3,"h1",4),e.YNc(2,mt,3,3,"h1",4),e.TgZ(3,"p"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"form",6)(7,"div",7)(8,"mat-form-field",8)(9,"input",9),e.NdJ("ngModelChange",function(r){e.CHM(t);const i=e.oxw();return e.KtG(i.person.UserName=r)}),e.qZA()(),e.TgZ(10,"mat-form-field",8),e._UZ(11,"input",10),e.ALo(12,"translate"),e.qZA()(),e.TgZ(13,"div",7)(14,"mat-form-field",8)(15,"input",11),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.registerUser())}),e.ALo(16,"translate"),e.qZA()(),e.TgZ(17,"mat-form-field",8),e._UZ(18,"input",12),e.ALo(19,"translate"),e.qZA()(),e.TgZ(20,"div",13)(21,"mat-form-field"),e._UZ(22,"input",14),e.ALo(23,"translate"),e.TgZ(24,"mat-icon",15),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.hidePassword=!r.hidePassword)}),e._uU(25),e.qZA()(),e.TgZ(26,"div",16)(27,"a",17),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"ul",18),e.YNc(31,pt,3,3,"li",4),e.YNc(32,_t,3,3,"li",4),e.YNc(33,dt,3,3,"li",4),e.YNc(34,ut,3,3,"li",4),e.YNc(35,ht,3,3,"li",4),e.YNc(36,ft,3,3,"li",4),e.qZA()(),e.YNc(37,xt,3,3,"span",19),e.YNc(38,Pt,3,2,"div",20),e.TgZ(39,"mat-form-field")(40,"input",21),e.NdJ("keyup.enter",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.registerUser())}),e.ALo(41,"translate"),e.qZA(),e.TgZ(42,"mat-icon",15),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.hidePassword=!r.hidePassword)}),e._uU(43),e.qZA()(),e.YNc(44,wt,3,3,"span",22),e.YNc(45,At,3,3,"span",22),e.YNc(46,Tt,3,3,"span",22),e.qZA(),e.YNc(47,Mt,2,1,"mat-error",4),e.qZA(),e.TgZ(48,"div",23)(49,"div",24)(50,"button",25),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.registerUser())}),e._uU(51),e.ALo(52,"translate"),e.qZA()(),e.YNc(53,St,1,0,"mat-progress-bar",26),e.qZA(),e.BQk()}if(2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",""===t.errorMessage),e.xp6(1),e.Q6J("ngIf",""!==t.errorMessage),e.xp6(2),e.Oqu(e.lcZ(5,32,"REGISTER_SUB_TEXT")),e.xp6(2),e.Q6J("formGroup",t.registerForm),e.xp6(3),e.Q6J("ngModel",t.person.UserName)("readonly",!0),e.xp6(2),e.s9C("placeholder",e.lcZ(12,34,"CONTACT_NUMBER")),e.xp6(4),e.s9C("placeholder",e.lcZ(16,36,"FIRST_NAME")),e.xp6(3),e.s9C("placeholder",e.lcZ(19,38,"LAST_NAME")),e.xp6(4),e.s9C("placeholder",e.lcZ(23,40,"PASSWORD")),e.Q6J("type",t.hidePassword?"password":"text"),e.xp6(3),e.hij(" ",t.hidePassword?"visibility_off":"visibility",""),e.xp6(3),e.Oqu(e.lcZ(29,42,"VIEW_PASSWORD_POLICY")),e.xp6(3),e.Q6J("ngIf",t.passwordPolicy.MinLength>0),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainUppercase),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainLowercase),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainDigits),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.ContainSpecial),e.xp6(1),e.Q6J("ngIf",t.passwordPolicy.PasswordReuseMonths>0),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("password").touched&&t.registerForm.get("password").hasError("required")),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("password").invalid&&(t.registerForm.get("password").touched||t.registerForm.get("password").dirty)),e.xp6(2),e.s9C("placeholder",e.lcZ(41,44,"CONFIRM_PASSWORD")),e.s9C("autocomplete",t.autocomplete),e.Q6J("type",t.hidePassword?"password":"text"),e.xp6(3),e.hij(" ",t.hidePassword?"visibility_off":"visibility",""),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("confirmPassword").touched&&t.registerForm.get("confirmPassword").hasError("required")),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("confirmPassword").touched&&t.registerForm.get("confirmPassword").hasError("minlength")),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("confirmPassword").touched&&t.registerForm.get("confirmPassword").hasError("mismatchedPasswords")),e.xp6(1),e.Q6J("ngIf",""!==t.errorMessage),e.xp6(3),e.Q6J("disabled",!t.registerForm.valid||t.saving),e.xp6(1),e.hij(" ",e.lcZ(52,46,t.saving?t.loadingText:"REGISTER")," "),e.xp6(2),e.Q6J("ngIf",t.saving)}}
1function vt(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"h1"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"span",33),e._uU(5),e.ALo(6,"translate"),e.qZA(),e._UZ(7,"br"),e.TgZ(8,"a",34),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.goToLogin())}),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.BQk()}2&n&&(e.xp6(2),e.Oqu(e.lcZ(3,3,"REGISTERED_SUCCESS_TITLE")),e.xp6(3),e.hij(" ",e.lcZ(6,5,"REGISTERED_SUCCESS"),""),e.xp6(4),e.hij(" ",e.lcZ(10,7,"BACK_TO_LOGIN")," "))}let Et=(()=>{class n{constructor(t,o,r,i,m,h,f){this.formBuilder=t,this.router=o,this.authService=r,this.sessionHelper=i,this.translateService=m,this._errorHandler=h,this.route=f,this.person={},this.tokenValid=!1,this.errorMessage="",this.completed=!1,this.themeName="default",this.saving=!1,this.loading=!1,this.loginError="",this.hidePassword=!0,this.loadingText="PLEASE_WAIT",this.passwordPolicy=new k,this.autocomplete="off",this.themes=O.Z,this.setupForm(this.person),this.user=this.sessionHelper.GetCurrentUser()}ngOnInit(){this.getTheme(),this.user=this.sessionHelper.GetCurrentUser(),this.route.queryParams.subscribe(t=>{this.inviteToken=t.inviteQueryId}),null==this.inviteToken||""===this.inviteToken?this.loginError=this.translateService.instant("INVITE_TOKEN_VALIDATION"):this.authService.validateInviteToken(this.inviteToken).then(t=>{t.IsSuccess?(this.tokenValid=!0,this.person.Email=t.UserName,this.getPasswordPolicy()):(this.tokenValid=!1,this.loginError=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("RegisterUser-> validateInviteToken-> ",t))})}getPasswordPolicy(){this.authService.GetPasswordPolicy().then(t=>{t.IsSuccess?(this.passwordPolicy=t.PasswordPolicy,this.setupForm(this.person)):(this.errorMessage=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("ChangePassword-> getPasswordPolicy-> ",t))})}ngAfterViewInit(){this.getTheme()}getTheme(){const t=this.sessionHelper.GetThemeName();null!==t?this.themeName=t:this.authService.getTheme().then(o=>{const r=this.themes.find(i=>i.id===o);this.themeName=r.alias,this.sessionHelper.SetThemeName(this.themeName)})}setupForm(t){this.registerForm=this.formBuilder.group({firstName:[""!==t?t.FirstName:"",a.kI.compose([a.kI.required])],lastName:[""!==t?t.LastName:"",a.kI.compose([a.kI.required])],contactNumber:[""!==t?t.MobileNumber:""],email:[""!==t?t.Email:""],password:[null,a.kI.compose([a.kI.required,a.kI.minLength(this.passwordPolicy.MinLength||0)]),[Z(this.passwordPolicy)]],confirmPassword:["",a.kI.compose([a.kI.required])]},{validator:(0,F.zi)("password","confirmPassword")}),""!==t&&(this.registerForm.controls.firstName.markAsTouched(),this.registerForm.controls.lastName.markAsTouched(),this.registerForm.controls.contactNumber.markAsTouched(),this.registerForm.controls.email.markAsTouched())}registerUser(){const t={Email:this.registerForm.get("email").value,FirstName:this.registerForm.get("firstName").value,LastName:this.registerForm.get("lastName").value,MobileContactNumber:this.registerForm.get("contactNumber").value,InviteQueryId:this.inviteToken};this.saving=!0,this.loading=!0,this.loginError="",this.authService.RegisterLogin(t,this.inviteToken,this.registerForm.get("password").value).then(r=>{r.IsSuccess?this.completed=!0:(this.errorMessage=r.FriendlyErrorMessage,this.saving=!1,this._errorHandler.writeErrorMessages("RegisterUser-> RegisterLogin-> ",r))})}goToLogin(){this.router.navigate(["/auth/login"])}getEmailErrorMessage(){return this.registerForm.get("email").hasError("required")?"You must enter a value":this.registerForm.get("email").hasError("email")?"Not a valid email":""}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(a.QS),e.Y36(_.F0),e.Y36(T.$),e.Y36(P.b),e.Y36(d.sK),e.Y36(M.q),e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-register-user"]],decls:7,vars:3,consts:[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-primary-bg","bumblebee-login-container","bumblebee-register-user-container","auth-pages","bumblebee-particle-background"],["fxFlex","100","fxFlex.md","60","fxFlex.gt-md","40","fxLayout.lt-sm","column",1,"bumblebee-register-user-card"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],["alt","","class","logo","width","250px",3,"src",4,"ngIf"],[4,"ngIf"],["alt","","width","250px",1,"logo",3,"src"],[3,"formGroup"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","20px","fxLayoutGap.lt-md","0px",1,"input-row"],["fxFlex",""],["matInput","","formControlName","email",3,"ngModel","readonly","ngModelChange"],["matInput","","type","number","formControlName","contactNumber",3,"placeholder"],["matInput","","type","text","formControlName","firstName",3,"placeholder","keyup.enter"],["matInput","","type","text","formControlName","lastName",3,"placeholder"],["fxLayout","row","fxLayout.lt-md","column","fxLayoutGap","20px","fxLayoutGap.lt-md","0px",1,"input-row","credentials"],["matInput","","type","password","formControlName","password",3,"type","placeholder"],["matSuffix","",3,"click"],[1,"tooltip"],[2,"font-size","10px"],[1,"tooltiptext"],["class","help-block text-danger password-validation",4,"ngIf"],["class","errors",4,"ngIf"],["formControlName","confirmPassword","matInput","","type","password",3,"type","placeholder","autocomplete","keyup.enter"],["class","help-block text-danger confirm-password",4,"ngIf"],["fxLayout","column","fxLayoutGap","16px"],["fxLayout","row","fxLayoutGap","16px","fxLayout.lt-md","column"],["mat-raised-button","","type","submit","fxFlex","100%","fxFlex.lt-md","100%","color","accent",3,"disabled","click"],["mode","indeterminate","class","register-progress-bar",4,"ngIf"],[1,"help-block","text-danger","password-validation"],[1,"errors"],["class","error-text",4,"ngIf"],[1,"error-text"],[1,"help-block","text-danger","confirm-password"],["mode","indeterminate",1,"register-progress-bar"],[1,"registered-message",2,"padding-bottom","20px"],["mat-button","",1,"btnBackToLogin",3,"click"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2),e.YNc(3,lt,1,1,"img",3),e._UZ(4,"br"),e.YNc(5,Ot,54,48,"ng-container",4),e.YNc(6,vt,11,9,"ng-container",4),e.qZA()()()),2&t&&(e.xp6(3),e.Q6J("ngIf",o.themeName),e.xp6(2),e.Q6J("ngIf",!o.completed),e.xp6(1),e.Q6J("ngIf",o.completed))},dependencies:[x.O5,a._Y,a.Fj,a.wV,a.JJ,a.JL,a.sg,a.u,l.xw,l.SQ,l.Wh,l.yH,g.a8,g.dn,u.lW,u.zs,N.Hw,w.pW,p.TO,p.KE,p.R9,S.Nt,d.X$],styles:['.bumblebee-register-user-container[_ngcontent-%COMP%]{justify-content:center;align-items:center;text-align:center;min-height:100vh}.bumblebee-register-user-container[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{margin:auto!important}.bumblebee-register-user-container[_ngcontent-%COMP%]   .welcome-title[_ngcontent-%COMP%]{position:relative;top:-15px}.bumblebee-register-user-container[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{text-align:center;font-size:25px;color:gray;font-weight:900}.bumblebee-register-user-container[_ngcontent-%COMP%]   .mat-raised-button[_ngcontent-%COMP%]{border-radius:0;border:1px solid #bbb;box-shadow:none;margin-top:20px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]{border:1px solid #ccc;border-radius:0;box-shadow:none;padding:0}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{margin-bottom:0}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{min-height:350px;padding:48px;margin:0}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{text-align:center;position:relative;top:-12px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]   .text-danger[_ngcontent-%COMP%]{color:#e60000;font-size:12px;float:right}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]   .register-progress-bar[_ng
1content-%COMP%]{position:relative;top:-20px;height:5px!important}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-register-user-card[_ngcontent-%COMP%]   mat-card[_ngcontent-%COMP%]{margin-top:10%}}.bumblebee-register-user-container[_ngcontent-%COMP%]   .mat-raised-button[disabled][_ngcontent-%COMP%]{border-radius:0}.bumblebee-register-user-container[_ngcontent-%COMP%]   .forgot-password[_ngcontent-%COMP%]{text-align:right;color:#e60000;text-transform:uppercase;font-weight:700;font-size:14px;position:relative;top:-6px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .forgot-password[_ngcontent-%COMP%]:hover{text-decoration:underline}.bumblebee-register-user-container[_ngcontent-%COMP%]   .forgot-password[_ngcontent-%COMP%]:hover{cursor:pointer}.bumblebee-register-user-container[_ngcontent-%COMP%]   .angularmaterialapp-login-card__logo[_ngcontent-%COMP%]{height:40px}.bumblebee-register-user-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:relative;top:5px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .login-progress-bar[_ngcontent-%COMP%]{top:-20px;height:12px!important}.bumblebee-register-user-container[_ngcontent-%COMP%]   .customer-progress-bar[_ngcontent-%COMP%]{top:-20px;height:5px!important}.bumblebee-register-user-container[_ngcontent-%COMP%]   .errors[_ngcontent-%COMP%]{color:#e60000;font-size:12px;position:relative;top:-10px;text-align:right;float:right;list-style-position:inside;width:230px;margin-right:0!important}.bumblebee-register-user-container[_ngcontent-%COMP%]   .credentials[_ngcontent-%COMP%]{display:block!important}.bumblebee-register-user-container[_ngcontent-%COMP%]   .confirm-password[_ngcontent-%COMP%]{float:right;font-size:12px;position:relative;top:-20px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .password-validation[_ngcontent-%COMP%]{position:relative;top:-18px;text-align:right;margin-right:0!important}.bumblebee-register-user-container[_ngcontent-%COMP%]   .bumblebee-login-card__logo[_ngcontent-%COMP%]{height:40px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]{float:left;position:relative;font-size:12px;border:none;top:-23px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:10px}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]:hover{text-decoration:underline;cursor:pointer}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]{list-style-type:none}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]{width:238px!important;padding:4px 6px 4px 22px;visibility:hidden;width:120px;background-color:#000;color:#fff;text-align:left;border-radius:6px;position:absolute;z-index:1;top:-112px;left:110%}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{white-space:pre-line}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:transparent black transparent transparent}.bumblebee-register-user-container[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]:hover   .tooltiptext[_ngcontent-%COMP%]{visibility:visible}']}),n})(),Nt=(()=>{class n{constructor(t,o,r){this.formBuilder=t,this.router=o,this._configService=r}ngOnInit(){this.searchForm=this.formBuilder.group({search:["",a.kI.required]})}goHome(){this._configService.productMode===C.U.CCSS?this.router.navigate(["pages/ccss/homedashboard"]):this._configService.productMode===C.U.Streamline?this.router.navigate(["pages/landing"]):console.log("Product Mode could not be identified")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(a.QS),e.Y36(_.F0),e.Y36(v.E))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bumblebee-error-404"]],decls:14,vars:9,consts:function(){let s,t,o;return s=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,t=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,o=$localize` ${"\ufffd0\ufffd"}:INTERPOLATION: `,[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-accent-bg","bumblebee-error-404-container"],["fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-error-404","mat-elevation-z","bumblebee-text-align-center"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","space-between none"],["fxLayout","row","fxLayoutAlign","center center"],s,t,["mat-button","",3,"click"],o]},template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2)(3,"div")(4,"div",3)(5,"h1"),e.SDv(6,4),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"p"),e.SDv(9,5),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"a",6),e.NdJ("click",function(){return o.goHome()}),e.SDv(12,7),e.ALo(13,"translate"),e.qZA()()()()),2&t&&(e.xp6(7),e.pQV(e.lcZ(7,3,"PAGE_NOT_FOUND")),e.QtT(6),e.xp6(3),e.p
1QV(e.lcZ(10,5,"PAGE_NOT_FOUND_SORRY")),e.QtT(9),e.xp6(3),e.pQV(e.lcZ(13,7,"GO_HOME")),e.QtT(12))},dependencies:[l.xw,l.Wh,l.yH,g.a8,g.dn,u.zs,d.X$],styles:['.bumblebee-error-404-container[_ngcontent-%COMP%]{min-height:100%}.bumblebee-error-404[_ngcontent-%COMP%]{padding:0;position:relative;z-index:1;animation:bumblebee-error-404 1s forwards 1;animation-delay:.6s;transform:translateY(20px);opacity:0;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.bumblebee-error-404[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{min-height:350px;padding:48px;margin:0;position:relative;z-index:1}.bumblebee-error-404[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-error-404[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{cursor:pointer}.bumblebee-error-404[_ngcontent-%COMP%]:before{content:"404";display:block;position:absolute;font-size:50vw;transform:translate3d(-50%,-80px,0);left:50%;z-index:-1;top:-40%;font-weight:300;opacity:0;animation:bumblebee-error-404-text 1s forwards 1;animation-delay:1.2s}@keyframes bumblebee-error-404-text{0%{transform:translate3d(-50%,-80px,0);opacity:0}to{transform:translate3d(-50%,0,0);opacity:1}}@keyframes bumblebee-error-404{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}']}),n})(),Lt=(()=>{class n{constructor(t,o,r){this.formBuilder=t,this.router=o,this._configService=r}ngOnInit(){this.searchForm=this.formBuilder.group({search:["",a.kI.required]})}goHome(){this._configService.productMode===C.U.CCSS?this.router.navigate(["pages/ccss/homedashboard"]):this._configService.productMode===C.U.Streamline?this.router.navigate(["pages/landing"]):console.log("Product Mode could not be identified")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(a.QS),e.Y36(_.F0),e.Y36(v.E))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bumblebee-error-500"]],decls:14,vars:9,consts:function(){let s,t,o;return s=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,t=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,o=$localize` ${"\ufffd0\ufffd"}:INTERPOLATION: `,[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-accent-bg","bumblebee-error-500-container"],["fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-error-500","mat-elevation-z","bumblebee-text-align-center"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","space-between none"],["fxLayout","row","fxLayoutAlign","center center"],s,t,["mat-button","",3,"click"],o]},template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2)(3,"div")(4,"div",3)(5,"h1"),e.SDv(6,4),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"p"),e.SDv(9,5),e.ALo(10,"translate"),e.qZA()(),e.TgZ(11,"a",6),e.NdJ("click",function(){return o.goHome()}),e.SDv(12,7),e.ALo(13,"translate"),e.qZA()()()()),2&t&&(e.xp6(7),e.pQV(e.lcZ(7,3,"INTERNAL_SERVER_ERROR")),e.QtT(6),e.xp6(3),e.pQV(e.lcZ(10,5,"ERROR_SOMETHING_WENT_WRONG")),e.QtT(9),e.xp6(3),e.pQV(e.lcZ(13,7,"GO_HOME")),e.QtT(12))},dependencies:[l.xw,l.Wh,l.yH,g.a8,g.dn,u.zs,d.X$],styles:['.bumblebee-error-500-container[_ngcontent-%COMP%]{min-height:100%}.bumblebee-error-500[_ngcontent-%COMP%]{padding:0;position:relative;z-index:1;animation:bumblebee-error-500 1s forwards 1;animation-delay:.6s;transform:translateY(20px);opacity:0;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.bumblebee-error-500[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{min-height:350px;padding:48px;margin:0;position:relative;z-index:1}.bumblebee-error-500[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-error-500[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{cursor:pointer}.bumblebee-error-500[_ngcontent-%COMP%]:before{content:"500";display:block;position:absolute;font-size:45vw;transform:translate3d(-50%,-80px,0);left:50%;z-index:-1;top:-40%;font-weight:300;opacity:0;animation:bumblebee-error-500-text 1s forwards 1;animation-delay:1.2s}@keyframes bumblebee-error-500-text{0%{transform:translate3d(-50%,-80px,0);opacity:0}
1to{transform:translate3d(-50%,0,0);opacity:1}}@keyframes bumblebee-error-500{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}']}),n})();function Zt(n,s){if(1&n&&e._UZ(0,"img",9),2&n){const t=e.oxw(2);e.MGl("src","assets/images/themes/",t.themeName,"/login-logo.png",e.LSH)}}function Ft(n,s){1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"PASSWORD_CONFIRM_MISMATCH")," "))}function It(n,s){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Oqu(e.lcZ(2,1,t.errorMessage))}}function yt(n,s){if(1&n){const t=e.EpF();e.ynx(0),e.TgZ(1,"form",10),e.NdJ("ngSubmit",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.resetPassword(r.resetForm.value))}),e.TgZ(2,"mat-form-field"),e._UZ(3,"input",11),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-form-field"),e._UZ(6,"input",12),e.ALo(7,"translate"),e.YNc(8,Ft,3,3,"mat-hint",7),e.qZA()(),e.TgZ(9,"button",13),e.NdJ("click",function(){e.CHM(t);const r=e.oxw(2);return e.KtG(r.resetPassword(r.resetForm.value))}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.YNc(12,It,3,3,"mat-hint",7),e.BQk()}if(2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("formGroup",t.resetForm),e.xp6(2),e.s9C("placeholder",e.lcZ(4,7,"PASSWORD")),e.xp6(3),e.s9C("placeholder",e.lcZ(7,9,"CONFIRM_PASSWORD")),e.xp6(2),e.Q6J("ngIf",t.resetForm.hasError("mismatchedPasswords")),e.xp6(1),e.Q6J("disabled",!t.resetForm.valid),e.xp6(1),e.hij(" ",e.lcZ(11,11,"RESET_PASSWORD")," "),e.xp6(2),e.Q6J("ngIf",""!==t.errorMessage)}}function Rt(n,s){1&n&&(e.ynx(0),e.TgZ(1,"span"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.BQk()),2&n&&(e.xp6(2),e.Oqu(e.lcZ(3,1,"RESET_PASSWORD_SUCCESS")))}function Ut(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"mat-card",3)(1,"mat-card-title",4),e.YNc(2,Zt,1,1,"img",5),e.TgZ(3,"h1"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"p"),e._uU(7),e.ALo(8,"translate"),e.qZA()(),e.TgZ(9,"mat-card-content",6),e.YNc(10,yt,13,13,"ng-container",7),e.YNc(11,Rt,4,3,"ng-container",7),e.TgZ(12,"a",8),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.goToLogin())}),e._uU(13),e.ALo(14,"translate"),e.qZA()()()}if(2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.themeName),e.xp6(2),e.Oqu(e.lcZ(5,6,"PASSWORD_RESET")),e.xp6(3),e.Oqu(e.lcZ(8,8,t.currentState)),e.xp6(3),e.Q6J("ngIf",!t.completed),e.xp6(1),e.Q6J("ngIf",t.completed),e.xp6(2),e.hij(" ",e.lcZ(14,10,"BACK_TO_LOGIN")," ")}}
1function kt(n,s){if(1&n&&e._UZ(0,"img",9),2&n){const t=e.oxw(2);e.MGl("src","assets/images/themes/",t.themeName,"/login-logo.png",e.LSH)}}function qt(n,s){1&n&&e._UZ(0,"mat-progress-bar",26)}function Gt(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"FIELD_REQUIRED")," "))}function Ht(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"FIELD_REQUIRED")," "))}function Dt(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"INVALID_EMAIL")))}function Jt(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"FIELD_REQUIRED")," "))}function Qt(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"INVALID_PHONE")))}function Yt(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"FIELD_REQUIRED")," "))}function $t(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"FIELD_REQUIRED")," "))}function Wt(n,s){1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"PASSWORD_CONFIRM_MISMATCH")," "))}function zt(n,s){1&n&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n&&(e.xp6(1),e.hij("",e.lcZ(2,1,"FIELD_REQUIRED")," "))}function jt(n,s){if(1&n&&(e.TgZ(0,"mat-hint"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(1),e.Oqu(e.lcZ(2,1,t.errorMessage))}}function Bt(n,s){1&n&&e._UZ(0,"mat-progress-bar",26)}function Kt(n,s){if(1&n){const t=e.EpF();e.TgZ(0,"mat-card",14)(1,"mat-card-title",4),e.YNc(2,kt,1,1,"img",5),e.TgZ(3,"h1"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"p"),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.YNc(9,qt,1,0,"mat-progress-bar",15),e.qZA(),e.TgZ(10,"mat-card-content",6)(11,"form",16)(12,"div",17)(13,"mat-form-field",18),e._UZ(14,"input",19),e.ALo(15,"translate"),e.YNc(16,Gt,3,3,"mat-error",7),e.qZA(),e.TgZ(17,"mat-form-field",20),e._UZ(18,"input",21),e.ALo(19,"translate"),e.YNc(20,Ht,3,3,"mat-error",7),e.qZA()(),e.TgZ(21,"mat-form-field"),e._UZ(22,"input",22),e.YNc(23,Dt,3,3,"mat-error",7),e.YNc(24,Jt,3,3,"mat-error",7),e.qZA(),e.TgZ(25,"mat-form-field"),e._UZ(26,"input",23),e.YNc(27,Qt,3,3,"mat-error",7),e.YNc(28,Yt,3,3,"mat-error",7),e.qZA(),e.TgZ(29,"mat-form-field"),e._UZ(30,"input",24),e.YNc(31,$t,3,3,"mat-error",7),e.qZA(),e.TgZ(32,"mat-form-field"),e._UZ(33,"input",25),e.YNc(34,Wt,3,3,"mat-hint",7),e.YNc(35,zt,3,3,"mat-error",7),e.qZA()(),e._UZ(36,"br"),e.TgZ(37,"button",13),e.NdJ("click",function(){e.CHM(t);const r=e.oxw();return e.KtG(r.register())}),e._uU(38),e.ALo(39,"translate"),e.qZA(),e.YNc(40,jt,3,3,"mat-hint",7),e.YNc(41,Bt,1,0,"mat-progress-bar",15),e.qZA()()}if(2&n){const t=e.oxw();e.xp6(2),e.Q6J("ngIf",t.themeName),e.xp6(2),e.Oqu(e.lcZ(5,20,"REGISTRATION")),e.xp6(3),e.Oqu(e.lcZ(8,22,t.currentState)),e.xp6(2),e.Q6J("ngIf",t.validating),e.xp6(2),e.Q6J("formGroup",t.registerForm),e.xp6(3),e.s9C("placeholder",e.lcZ(15,24,"FIRST_NAME")),e.xp6(2),e.Q6J("ngIf",t.registerForm.get("first_name").hasError("required")),e.xp6(2),e.s9C("placeholder",e.lcZ(19,26,"LAST_NAME")),e.xp6(2),e.Q6J("ngIf",t.registerForm.get("last_name").hasError("required")),e.xp6(3),e.Q6J("ngIf",t.registerForm.get("email").hasError("pattern")),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("email").hasError("required")),e.xp6(3),e.Q6J("ngIf",t.registerForm.get("phone").hasError("invalidPhone")),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("phone").hasError("required")),e.xp6(3),e.Q6J("ngIf",t.registerForm.get("password").hasError("required")),e.xp6(3),e.Q6J("ngIf",t.registerForm.hasError("mismatchedPasswords")),e.xp6(1),e.Q6J("ngIf",t.registerForm.get("passwordConfirm").hasError("required")),e.xp6(2),e.Q6J("disabled",!t.registerForm.valid||t.validating||t.saving),e.xp6(1),e.hij(" ",e.lcZ(39,28,"REGISTER")," "),e.xp6(2),e.Q6J("ngIf",""!==t.errorMessage),e.xp6(1),e.Q6J("ngIf",t.saving)}}let Vt=(()=>{class n{constructor(t,o,r,i,m,h,f,b){this.snackBar=t,this.formBuilder=o,this.router=r,this.authService=i,this.sessionHelper=m,this.translateService=h,this._errorHandler=f,this.route=b,this.completed=!1,this.themeName="default",this.disabled=!0,this.saving=!1,this.errorMessage="",this.currentState="Checking password reset token...",this.validating=!1,this.route.queryParams.subscribe(A=>{this.mode=A.mode||"",this.token=A.token||"",this.lang=A.lang}),this.getTheme()}ngOnInit(){if(this.getTheme(),"resetPassword"===this.mode)this.validating=!0,this.resetForm=this.formBuilder.group({password:[{value:"",disabled:!0},a.kI.required],passwordConfirm:[{value:"",disabled:!0},a.kI.required]},{validator:this.matchingPasswordsValidator("password","passwordConfirm")}),null==this.token||""===this.token?this.errorMessage=this.translateService.instant("PASSWORD_RESET_TOKEN_VALIDATION"):this.authService.validatePasswordResetToken(this.token).then(o=>{o.IsSuccess?(this.currentState="Enter a new password.",this.resetForm.get("password").enable(),this.resetForm.get("passwordConfirm").enable(),this.getPasswordPolicy()):(this.errorMessage=this.translateService.instant(o.FriendlyErrorMessage),this._errorHandler.writeErrorMessages("AccountManagement-> validatePasswordResetToken-> ",o)),this.validating=!1}
1).catch(o=>{this._errorHandler.writeErrorMessages("AccountManagement-> validatePasswordResetToken-> ",o),this.validating=!1});else if("register"===this.mode){this.currentState="Checking invite token...",this.validating=!0;const o={first_name:[{value:"",disabled:!0},a.kI.required],last_name:[{value:"",disabled:!0},a.kI.required],email:[{value:"",disabled:!0},[a.kI.required,a.kI.pattern("^[a-z0-9]+(.[_a-z0-9]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,15})$")]],phone:[{value:"",disabled:!0},a.kI.compose([U.tH,a.kI.maxLength(30)])],password:[{value:"",disabled:!0},a.kI.required],passwordConfirm:[{value:"",disabled:!0},a.kI.required]};this.registerForm=this.formBuilder.group(o,{validator:this.matchingPasswordsValidator("password","passwordConfirm")}),null==this.token||""===this.token?this.errorMessage=this.translateService.instant("PASSWORD_RESET_TOKEN_VALIDATION"):this.authService.validateInviteToken(this.token).then(r=>{r.IsSuccess?(this.currentState="Enter a new password.",null!==r.UserRole&&""!==r.UserRole?(this.registerForm.get("first_name").setValue(r.FirstName),this.registerForm.get("last_name").setValue(r.LastName),this.registerForm.get("email").setValue(r.Email),this.registerForm.get("phone").setValue(r.MobileNumber),this.registerForm.get("first_name").enable(),this.registerForm.get("last_name").enable(),this.registerForm.get("password").enable(),this.registerForm.get("passwordConfirm").enable(),this.registerForm.get("phone").enable()):(this.errorMessage="Invite token has been revoked.",this._errorHandler.writeErrorMessages("AccountManagement-> validateInviteToken-> ",r))):(this.errorMessage=this.translateService.instant(r.FriendlyErrorMessage),this._errorHandler.writeErrorMessages("AccountManagement-> validateInviteToken-> ",r)),this.validating=!1}).catch(r=>{this._errorHandler.writeErrorMessages("AccountManagement-> validateInviteToken-> ",r),this.validating=!1})}else this.errorMessage="Invalid token supplied."}getTheme(){const t=this.sessionHelper.GetThemeName();null!==t?this.themeName=t:this.authService.getTheme().then(o=>{this.themeName=o,this.sessionHelper.SetThemeName(o)})}goToLogin(){this.router.navigate(["/auth/login"])}resetPassword(t){this.saving=!0,this.errorMessage="",this.authService.ResetPassword(this.token,t.password,t.passwordConfirm,this.passwordPolicy.PasswordReuseMonths).then(r=>{if(r.IsSuccess){this.completed=!0,this.openSnackBar(this.translateService.instant("PASSWORD_RESET_SUCCESS"),this.translateService.instant("CLOSE"));const i=this;setTimeout(function(){i.goToLogin()},500)}else this.errorMessage=this.translateService.instant(r.FriendlyErrorMessage),this._errorHandler.writeErrorMessages("AccountManagement-> resetPassword-> ",r)}).catch(r=>{this._errorHandler.writeErrorMessages("AccountManagement-> resetPassword-> ",r)})}register(){const t={FirstName:this.registerForm.get("first_name").value,LastName:this.registerForm.get("last_name").value,MobileNumber:this.registerForm.get("phone").value.trim(),Email:this.registerForm.get("email").value};this.saving=!0,this.errorMessage="",this.authService.RegisterLogin(t,this.token,this.registerForm.get("password").value).then(o=>{if(o.IsSuccess){this.openSnackBar(this.translateService.instant("REGISTER_SUCCESS"),"Close");const r=this;setTimeout(function(){r.goToLogin()},500)}else this.errorMessage=o.FriendlyErrorMessage,this.saving=!1,this._errorHandler.writeErrorMessages("AccountManagement-> RegisterLogin-> ",o)}).catch(o=>{this.validating=!1,this.saving=!1,this._errorHandler.writeErrorMessages("AccountManagement-> register-> ",o)})}openSnackBar(t,o){this.snackBar.open(t,o,{duration:2e3})}getPasswordPolicy(){this.authService.GetPasswordPolicy().then(t=>{t.IsSuccess?this.passwordPolicy=t.PasswordPolicy:(this.errorMessage=t.FriendlyErrorMessage,this._errorHandler.writeErrorMessages("ChangePassword-> getPasswordPolicy-> ",t))})}matchingPasswordsValidator(t,o){return r=>{const i=r.controls[t],m=r.controls[o];return i.value&&m.value&&i.value!==m.value?{mismatchedPasswords:!0}:null}}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(E.ux),e.Y36(a.QS),e.Y36(_.F0),e.Y36(T.$),e.Y36(P.b),e.Y36(d.sK),e.Y36(M.q),e.Y36(_.gz))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bumblebee-account-management"]],decls:3,vars:2,consts:[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-primary-bg","bumblebee-login-container","bumblebee-account-management-container","auth-pages","bumblebee-particle-background"],["class","bumblebee-forgot-card mat-elevation-z bumblebee-text-align-center","fxLayout","column","fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",4,"ngIf"],["class","bumblebee-register-card bumblebee-text-align-center mat-elevation-z","fxLayout","column","fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",4,"ngIf"],["fxLayout","column","fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-forgot-card","mat-elevation-z","bumblebee-text-align-center"],["fxLayout","column","fxLayoutAlign","center center","fxLayoutGap","10px",1,"raven-accent-bg","forgot"],["alt","","class","logo","width","250px",3,"src",4,"ngIf"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","center"],[4,"ngIf"],["mat-button","",3,"click"],["alt","","width","250px",1,"logo",3,"src"],[1,"bumblebee-forgot-card__item",3,"formGroup","ngSubmit"],["matInput","","type","password","formControlName","password",3,"placeholder"],["matInput","","type","password","formControlName","passwordConfirm",3,"placeholder"],["mat-raised-button","","type","submit","color","primary",1,"bumblebee-forgot-card__item",3,"disabled","click"],["fxLayout","column","fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-register-card","bumblebee-text-align-center","mat-elevation-z"],["mode","indeterminate",4,"ngIf"],[3,"formGroup"],["fxLayout","row","fxLayout.sm","column"],[1,"raven-remove-fixed-infix-width","bumblebee-first-name"],["matInput","","formControlName","first_name","required","",3,"placeholder"],[1,"raven-remove-fixed-infix-width"],["matInput","","formControlName","last_name","required","",3,"placeholder"],["matInput","","formControlName","email","type","email","placeholder","Email Address","required",""],["matInput","","formControlName","phone","type","phone","placeholder","Mobile Number","required",""],["matInput","","type","password","formControlName","password","placeholder","Password","required",""],["matInput","","type","password","formControlName","passwordConfirm","placeholder","Repeat Your Password","required",""],["mode","indeterminate"]],template:function(t,o){1&t&&(e.TgZ(0,"div",0),e.YNc(1,Ut,15,12,"mat-card",1),e.YNc(2,Kt,42,30,"mat-card",2),e.qZA()),2&t&&(e.xp6(1),e.Q6J("ngIf","resetPassword"===o.mode),e.xp6(1),e.Q6J("ngIf","register"===o.mode))},dependencies:[x.O5,a._Y,a.Fj,a.JJ,a.JL,a.Q7,a.sg,a.u,l.xw,l.SQ,l.Wh,l.yH,g.a8,g.dn,g.n5,u.lW,u.zs,w.pW,p.TO,p.KE,p.bx,S.Nt,d.X$],styles:[".bumblebee-account-management-container[_ngcontent-%COMP%]{min-height:100%}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-forgot-card[_ngcontent-%COMP%]{padding:0;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-forgot-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%], .bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-forgot-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]{padding:48px}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-forgot-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1rem}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-forgot-card[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-register-card[_ngcontent-%COMP%]{padding:0;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-register-card[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%], .bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-register-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]{padding:35px}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-register-card[_ngcontent-%COMP%]   mat-card-title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:1rem}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-register-card[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-register-logo[_ngcontent-%COMP%]{height:40px}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-card-actions[_ngcontent-%COMP%]{padding:16px}.bumblebee-account-management-container[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-account-management-container[_ngcontent-%COMP%]   .bumblebee-first-name[_ng
1content-%COMP%]{margin-right:16px}"]}),n})();var Xt=c(76517);function en(n,s){1&n&&e._UZ(0,"mat-progress-bar",7)}const tn=[{path:"login",component:fe,data:{title:"Login"}},{path:"logout",component:be,data:{title:"Logout"}},{path:"forgot-password",component:Me,data:{title:"Forgot Password"}},{path:"reset-password",component:ct,data:{title:"Reset Password"}},{path:"change-password",component:je,data:{title:"Change Password"}},{path:"register-user",component:Et,data:{title:"Register User"}},{path:"manage",component:Vt,data:{title:"Account Managemenet"}},{path:"404",component:Nt,data:{title:"Error 404"}},{path:"500",component:Lt,data:{title:"Error 500"}},{path:"maintenance",component:(()=>{class n{constructor(t,o,r){this.flagService=t,this.router=o,this.sessionService=r,this._subscription=this.flagService.flagChange.subscribe(i=>{const m=i["site-maintenance-mode"].current??i["site-maintenance-mode"];m||(this.sessionService.SetIsMaintenanceMode(m),this.router.navigate(["/pages/landing"]))})}ngOnDestroy(){this._subscription?.closed||this._subscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(R.a),e.Y36(_.F0),e.Y36(P.b))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-raven-maintenance"]],decls:11,vars:6,consts:function(){let s,t;return s=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,t=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-accent-bg","raven-maintenance-container"],["fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"raven-maintenance","mat-elevation-z","raven-text-align-center"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","space-between none"],["fxLayout","row","fxLayoutAlign","center center"],s,t]},template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2)(3,"div")(4,"div",3)(5,"h1"),e.SDv(6,4),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"p"),e.SDv(9,5),e.ALo(10,"translate"),e.qZA()()()()()),2&t&&(e.xp6(7),e.pQV(e.lcZ(7,2,"MAINTENANCE_MODE")),e.QtT(6),e.xp6(3),e.pQV(e.lcZ(10,4,"MAINTENANCE_BUSY_MESSAGE")),e.QtT(9))},dependencies:[l.xw,l.Wh,l.yH,g.a8,g.dn,d.X$],styles:['.raven-maintenance-container[_ngcontent-%COMP%]{min-height:100%}.raven-maintenance[_ngcontent-%COMP%]{padding:0;position:relative;z-index:1;animation:raven-maintenance 1s forwards 1;animation-delay:.6s;transform:translateY(20px);opacity:0;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.raven-maintenance[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{min-height:350px;padding:48px;margin:0;position:relative;z-index:1}.raven-maintenance[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.raven-maintenance[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{cursor:pointer}.raven-maintenance[_ngcontent-%COMP%]:before{content:"Maintenance";display:block;position:absolute;font-size:45vw;transform:translate3d(-50%,-80px,0);left:-25%;z-index:-1;top:-40%;font-weight:300;opacity:0;animation:raven-maintenance-text 1s forwards 1;animation-delay:1.2s}@keyframes raven-maintenance-text{0%{transform:translate3d(-50%,-80px,0);opacity:0}to{transform:translate3d(-50%,0,0);opacity:1}}@keyframes raven-maintenance{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}']}),n})(),data:{title:"Site Maintenance"}},{path:"sso/:token",component:(()=>{class n{constructor(t,o,r,i,m){this.route=t,this.router=o,this._configService=r,this.ssoService=i,this.snackBar=m,this.loading=!0}ngOnInit(){this.sub=this.route.params.subscribe(t=>{this.ssoToken=t.token,this.ssoToken?this.ssoService.validateSSOToken(this.ssoToken).then(o=>{this.goHome()}).catch(o=>{this.snackBar.open(o,"Close",{duration:1e4}).afterDismissed().subscribe(()=>{this.error=o})}).finally(()=>{this.loading=!1}):(this.snackBar.open("SSO Token is required","Close",{duration:1e4}),this.loading=!1)})}ngOnDestroy(){this.sub.unsubscribe()}goHome(){this._configService.productMode===C.U.CCSS?this.router.navigate(["pages/ccss/homedashboard"]):this._configService.productMode===C.U.Streamline?this.router.navigate(["pages/landing"]):console.log("Product Mode could not be identified")}}return n.\u0275fac=function(t){return new(t||n)(e.Y36(_.gz),e.Y36(_.F0),e.Y36(v.E),e.Y36(Xt.T),e.Y36(E.ux))},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-bumblebee-sso"]],decls:12,vars:7,consts:function(){let s,t;return s=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,t=$localize`${"\ufffd0\ufffd"}:INTERPOLATION:`,[["fxLayoutAlign","center center","fxLayoutAlign.lt-sm","none",1,"raven-primary-bg","bumblebee-sso-container","bumblebee-particle-background"],["fxFlex.lt-sm","100","fxFlex","50","fxFlex.md","40","fxFlex.gt-md","30","fxLayout.lt-sm","column",1,"bumblebee-sso","mat-elevation-z","bumblebee-text-align-center"],["fxFlex","auto","fxLayout","column","fxLayoutAlign","space-between none"],["fxLayout","row","fxLayoutAlign","center center"],s,t,["mode","indeterminate",4,"ngIf"],["mode","indeterminate"]]},template:function(t,o){1&t&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",2)(3,"div")(4,"div",3)(5,"h1"),e.SDv(6,4),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"p"),e.SDv(9,5),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,en,1,0,"mat-progress-bar",6),e.qZA()()()),2&t&&(e.xp6(7),e.pQV(e.lcZ(7,3,"SSO_TITLE")),e.QtT(6),e.xp6(3),e.p
1QV(o.error||e.lcZ(10,5,"SSO_DESCRIPTION")),e.QtT(9),e.xp6(1),e.Q6J("ngIf",o.loading))},dependencies:[x.O5,l.xw,l.Wh,l.yH,g.a8,g.dn,w.pW,d.X$],styles:['.bumblebee-sso-container[_ngcontent-%COMP%]{min-height:100%}.bumblebee-sso[_ngcontent-%COMP%]{padding:0;position:relative;z-index:1;animation:bumblebee-sso 1s forwards 1;animation-delay:.6s;transform:translateY(20px);opacity:0;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}.bumblebee-sso[_ngcontent-%COMP%]   mat-card-content[_ngcontent-%COMP%]{max-height:200px;padding:48px;margin:0;position:relative;z-index:1}.bumblebee-sso[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}.bumblebee-sso[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{cursor:pointer}.bumblebee-sso[_ngcontent-%COMP%]:before{content:"SSO";display:block;position:absolute;font-size:45vw;transform:translate3d(-50%,-80px,0);left:50%;z-index:-1;top:-40%;font-weight:300;opacity:0;animation:bumblebee-error-500-text 1s forwards 1;animation-delay:1.2s}@keyframes bumblebee-sso-text{0%{transform:translate3d(-50%,-80px,0);opacity:0}to{transform:translate3d(-50%,0,0);opacity:1}}@keyframes bumblebee-sso{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}']}),n})(),data:{title:"Single-Sign-On"}}];let nn=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[_.Bz.forChild(tn)]}),n})(),on=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.oAB({type:n}),n.\u0275inj=e.cJS({imports:[nn,G.m]}),n})()}}]);

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.