PageSourceSearch

https://rootcausescalpanalysis.com/16-es2015.493a7815386d28844990.js

js rootcausescalpanalysis.com collected 2026-10-06 12:29:49 UTC 43,474 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{tSXo:function(t,e,i){"use strict";i.r(e),i.d(e,"OnboardingModule",(function(){return Dt}));var s=i("ofXK"),r=i("PCNd"),o=i("tyNb"),n=i("XNiG"),a=i("3N8a");class c extends a.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var l=i("IjjT");class u extends l.a{}const h=new u(c);var d=i("quSY"),m=i("7o/Q"),b=i("WMd4");class f extends m.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(f.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(b.a.createNext(t))}_error(t){this.scheduleMessage(b.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(b.a.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var g=i("9ppp"),v=i("Ylt2");class w extends n.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new T(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,r=i.length;let o;if(this.closed)throw new g.a;if(this.isStopped||this.hasError?o=d.a.EMPTY:(this.observers.push(t),o=new v.a(this,t)),s&&t.add(t=new f(t,s)),e)for(let n=0;n<r&&!t.closed;n++)t.next(i[n]);else for(let n=0;n<r&&!t.closed;n++)t.next(i[n].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||h).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,i=this._windowTime,s=this._events,r=s.length;let o=0;for(;o<r&&!(t-s[o].time<i);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&s.splice(0,o),s}}class T{constructor(t,e){this.time=t,this.value=e}}class S extends n.a{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(t){return this.hasError?(t.error(this.thrownError),d.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),d.a.EMPTY):super._subscribe(t)}next(t){this.hasCompleted||(this.value=t,this.hasNext=!0)}error(t){this.hasCompleted||super.error(t)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var y=i("fXoL");let I=(()=>{class t{constructor(t){this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new w(1),this.initialized=!1,this._initState=new S,t instanceof Promise?t.then(t=>{this.initialize(t)}):this.initialize(t)}get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}initialize(t){this.autoLogin=void 0!==t.autoLogin&&t.autoLogin,t.providers.forEach(t=>{this.providers.set(t.id,t.provider)}),Promise.all(Array.from(this.providers.values()).map(t=>t.initialize())).then(()=>{if(this.initialized=!0,this._initState.next(this.initialized),this._initState.complete(),this.autoLogin){const t=[];let e=!1;this.providers.forEach((i,s)=>{let r=i.getLoginStatus();t.push(r),r.then(t=>{t.provider=s,this._user=t,this._authState.next(t),e=!0}).catch(console.debug)}),Promise.all(t).catch(()=>{e||(this._user=null,this._authState.next(null))})}}).catch(console.error)}signIn(e,i){return new Promise((s,r)=>{if(this.initialized){let o=this.providers.get(e);o?o.signIn(i).then(t=>{t.provider=e,s(t),this._user=t,this._authState.next(t)}).catch(t=>{r(t)}):r(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else r(t.ERR_NOT_INITIALIZED)})}signOut(e=!1){return new Promise((i,s)=>{if(this.initialized)if(this._user){let r=this.providers.get(this._user.provider);r?r.signOut(e).then(()=>{i(),this._user=null,this._authState.next(null)}
1).catch(t=>{s(t)}):s(t.ERR_LOGIN_PROVIDER_NOT_FOUND)}else s(t.ERR_NOT_LOGGED_IN);else s(t.ERR_NOT_INITIALIZED)})}}return t.\u0275fac=function(e){return new(e||t)(y.bc("SocialAuthServiceConfig"))},t.\u0275prov=y.Jb({token:t,factory:t.\u0275fac}),t.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",t.ERR_NOT_LOGGED_IN="Not logged in",t.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",t})(),O=(()=>{class t{constructor(t){if(t)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}static initialize(e){return{ngModule:t,providers:[I,{provide:"SocialAuthServiceConfig",useValue:e}]}}}return t.\u0275mod=y.Lb({type:t}),t.\u0275inj=y.Kb({factory:function(e){return new(e||t)(y.bc(t,12))},providers:[I],imports:[[s.b]]}),t})();class N{}class x{constructor(){}loadScript(t,e,i,s=null){if("undefined"!=typeof document&&!document.getElementById(t)){let t=document.createElement("script");t.async=!0,t.src=e,t.onload=i,s||(s=document.head),s.appendChild(t)}}}let _=(()=>{class t extends x{constructor(t,e={scope:"email"}){super(),this.clientId=t,this.initOptions=e}initialize(){return new Promise((e,i)=>{this.loadScript(t.PROVIDER_ID,"https://apis.google.com/js/platform.js",()=>{gapi.load("auth2",()=>{this.auth2=gapi.auth2.init(Object.assign(Object.assign({},this.initOptions),{client_id:this.clientId})),this.auth2.then(()=>{e()}).catch(t=>{i(t)})})})})}getLoginStatus(){return new Promise((e,i)=>{if(this.auth2.isSignedIn.get()){let t=new N,i=this.auth2.currentUser.get().getBasicProfile(),s=this.auth2.currentUser.get().getAuthResponse(!0).access_token,r=this.auth2.currentUser.get().getAuthResponse(!0).id_token;t.id=i.getId(),t.name=i.getName(),t.email=i.getEmail(),t.photoUrl=i.getImageUrl(),t.firstName=i.getGivenName(),t.lastName=i.getFamilyName(),t.authToken=s,t.idToken=r,t.response=i,e(t)}else i("No user is currently logged in with "+t.PROVIDER_ID)})}signIn(t){const e=Object.assign(Object.assign({},this.initOptions),t);return new Promise((i,s)=>{(e&&e.offline_access?this.auth2.grantOfflineAccess(t):this.auth2.signIn(t)).then(t=>{let e=new N;if(t&&t.code)e.authorizationCode=t.code;else{let t=this.auth2.currentUser.get().getBasicProfile(),i=this.auth2.currentUser.get().getAuthResponse(!0).access_token,s=this.auth2.currentUser.get().getAuthResponse(!0).id_token;e.id=t.getId(),e.name=t.getName(),e.email=t.getEmail(),e.photoUrl=t.getImageUrl(),e.firstName=t.getGivenName(),e.lastName=t.getFamilyName(),e.authToken=i,e.idToken=s,e.response=t}i(e)},t=>{s(t)}).catch(t=>{s(t)})})}signOut(t){return new Promise((e,i)=>{let s;s=t?this.auth2.disconnect():this.auth2.signOut(),s.then(t=>{t?i(t):e()}).catch(t=>{i(t)})})}}return t.PROVIDER_ID="GOOGLE",t})(),C=(()=>{class t extends x{constructor(t,e={scope:"email,public_profile",locale:"en_US",fields:"name,email,picture,first_name,last_name",version:"v4.0"}){super(),this.clientId=t,this.initOptions=e}initialize(){return new Promise((e,i)=>{this.loadScript(t.PROVIDER_ID,`//connect.facebook.net/${this.initOptions.locale}/sdk.js`,()=>{FB.init({appId:this.clientId,autoLogAppEvents:!0,cookie:!0,xfbml:!0,version:this.initOptions.version}),e()})})}getLoginStatus(){return new Promise((e,i)=>{FB.getLoginStatus(s=>{if("connected"===s.status){let t=s.authResponse;FB.api("/me?fields="+this.initOptions.fields,i=>{let s=new N;s.id=i.id,s.name=i.name,s.email=i.email,s.photoUrl="https://graph.facebook.com/"+i.id+"/picture?type=normal",s.firstName=i.first_name,s.lastName=i.last_name,s.authToken=t.accessToken,s.response=i,e(s)})}else i("No user is currently logged in with "+t.PROVIDER_ID)})})}signIn(t){const e=Object.assign(Object.assign({},this.initOptions),t);return new Promise((t,i)=>{FB.login(s=>{if(s.authResponse){let i=s.authResponse;FB.api("/me?fields="+e.fields,e=>{let s=new N;s.id=e.id,s.name=e.name,s.email=e.email,s.photoUrl="https://graph.facebook.com/"+e.id+"/picture?type=normal",s.firstName=e.first_name,s.lastName=e.last_name,s.authToken=i.accessToken,s.response=e,t(s)})}else i("User cancelled login or did not fully authorize.")},e)})}signOut(){return new Promise((t,e)=>{FB.logout(e=>{t()})})}}return t.PROVIDER_ID="FACEBOOK",t})();var P=i("3Pt+"),k=i("5eHb"),E=i("7dP1"),R=i("OiFK");const z=["email"];function D(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Required field"),y.Sb())}function K(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Invalid email"),y.Sb())}function L(t,e){if(1&t&&(y.Tb(0,"div",43),y.Ic(1,D,2,0,"div",44),y.Ic(2,K,2,0,"div",44),y.Sb()),2&t){const t=y.hc();y.zb(1),y.oc("ngIf",t.formControls.email.errors.required),y.zb(1),y.oc("ngIf",t.formControls.email.errors.email)}}function M(t,e){if(1&t){const t=y.Ub();y.Tb(0,"i",45),y.fc("click",(function(){return y.Bc(t),y.hc().togglePasswordType()})),y.Sb()}}function q(t,e){if(1&t){const t=y.Ub();y.Tb(0,"i",46),y.fc("click",(function(){return y.Bc(t),y.hc().togglePasswordType()})),y.Sb()}}function U(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Required field"),y.Sb())}function B(t,e){if(1&t&&(y.Tb(0,"div",43),y.Ic(1,U,2,0,"div",44),y.Sb()),2&t){const t=y.hc();y.zb(1),y.oc("ngIf",t.formControls.password.errors.required)}}const j=function(t){return{"is-invalid":t}},G=function(){return{standalone:!0}};let F=(()=>{class t{constructor(t,e,i,s,r,o){this.formBuilder=t,this.toastr=e,this.authService=i,this.router=s,this.utils=r,this.socialService=o,this.passwordType=!1,this.loading=!1,this.submitted=!1,this.isRememberMe=!1}ngOnInit(){this.utils.getItem("currentUser")&&this.router.navigate(["/analysis"]),this.form=this.formBuilder.group({email:["",[P.w.required,P.w.email]],password:["",P.w.required]})}togglePasswordType(){this.passwordType=!this.passwordType}get formControls(){return this.form.controls}signInWithGoogle(){this.socialService.signIn(_.PROVIDER_ID).then(t=>{this.authService.socialMediaLogin({email:t.email,social_media_id:t.id}).subscribe(t=>{200!==t.status||t.error?this.toastr.error("",t.message):(this.toastr.success("",t.message),this.utils.setItem("currentUser",t.data),t.data.user.profile_status?this.router.navigate(["/analysis"]):this.router.navigate(["/profile"],{queryParams:{action:"edit"}})),this.loading=!1,this.submitted=!1},t=>{this.loading=!1,this.submitted=!1,this.toastr.error("","Something went wrong. Please try again. ")})},t=>{console.log(t)})}signInWithFB(){this.socialService.signIn(C.PROVIDER_ID).then(t=>{this.authService.socialMediaLogin({email:t.email,social_media_id:t.id}).subscribe(t=>{200!==t.status||t.error?this.toastr.error("",t.message):(this.toastr.success("",t.message),this.utils.setItem("currentUser",t.data),t.data.user.profile_status?this.router.navigate(["/analysis"]):this.router.navigate(["/profile"],{queryParams:{action:"edit"}})),this.loading=!1,this.submitted=!1},t=>{this.loading=!1,this.submitted=!1,this.toastr.error("","Something went wrong. Please try again. ")})},t=>{console.log(t)})}toggleRememberMe(t){this.isRememberMe=!!t.target.checked}onSubmit(){this.submitted=!0,this.form.valid&&(this.loading=!0,this.authService.login({email:this.formControls.email.value,password:this.formControls.password.value}).subscribe(t=>{200!==t.status||t.error?(this.toastr.error("",t.message),this.loading=!1,this.submitted=!1):(this.utils.setItem("currentUser",t.data),this.toastr.success("Success!",t.message),t.data.user.profile_status?this.router.navigate(["/analysis"]):this.router.navigate(["/profile"],{queryParams:{action:"edit"}}),this.isRememberMe?this.utils.setItem("rememberMeData",{isRememberMe:!0,email:this.formControls.email.value,password:this.formControls.password.value}):this.utils.getItem("rememberMeData")&&this.utils.removeItem("rememberMeData"),this.loading=!1,this.submitted=!1)},t=>{this.loading=!1,this.submitted=!1}))}}return t.\u0275fac=function(e){return new(e||t)(y.Nb(P.e),y.Nb(k.b),y.Nb(E.a),y.Nb(o.f),y.Nb(R.a),y.Nb(I))},t.\u0275cmp=y.Hb({type:t,selectors:[["app-login"]],viewQuery:function(t,e){var i;1&t&&y.Pc(z,!0),2&t&&y.xc(i=y.gc())&&(e.email=i.first)},decls:62,vars:16,consts:[[1,"page-onboarding","h-100"],[1,"row","no-gutters","image-container","image-container-login"],[1,"col-md-12","col-sm-12","p-0","m-0"],[1,"image-container-left","h-100"],[1,"card","login"],[1,"form-container"],[1,"form-area","mt-3","py-3"],[1,"sub-heading-2","text-center","mb-4","head1","fw-b","text-uppercase"],[1,"fz-30","text-center","mb-4","head2","letter-spacing-4","text-uppercase"],[1,"fw-l"],[1,"fw-r"],["autocomplete","off",3,"formGroup","ngSubmit"],[1,"form-group","mb-20"],["type","email","formControlName","email","placeholder","Your email",1,"form-control"],["class","invali
1d-feedback",4,"ngIf"],[1,"input-group","mb-3",3,"ngClass"],["placeholder","Your password","aria-describedby","basic-addon2","formControlName","password",1,"form-control","password",3,"type","ngClass"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text","rounded-0"],["class","ic md ic-eye-hide t-eye",3,"click",4,"ngIf"],["class","ic md ic-eye-show t-eye",3,"click",4,"ngIf"],[1,"form-group","mb-5","checkbox-forget","row","no-gutters"],[1,"col"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","isRememberMe",1,"custom-control-input",3,"ngModel","ngModelOptions","ngModelChange","change"],["for","isRememberMe",1,"isRememberMe","normal-text","fw-l","custom-control-label"],[1,"float-right"],["routerLink","/auth/forgot-password",1,"text-gray-cie","no-hover","text-uppercase","fw-m","forgot-password"],[1,"clearfix"],[1,"text-center","mt-3"],["type","submit",1,"btn","btn-primary","py-3","fw-b","btn-block","btn-login","text-uppercase",3,"disabled"],[1,"form-group","mx-auto","d-flex","align-items-center","my-4"],[1,"border-bottom","w-100","ml-2"],[1,"px-2","small","fw-m","sub-heading-1","text-dark"],[1,"border-bottom","w-100","mr-2"],[1,"form-group","mx-auto"],["href","javascript:void(0)",1,"btn","btn-primary","btn-block","py-2","btn-google",3,"click"],[1,"ic","ic-google","mr-2","float-left","sm"],[1,"fw-b","text-uppercase","mx-auto"],["href","javascript:void(0)",1,"btn","btn-primary","btn-block","py-2","btn-facebook",3,"click"],[1,"ic","ic-facebook","mr-2","float-left","sm"],[1,"text-center","w-100","mt-5"],["href","#","routerLink","/auth/signup",1,"text-dark","ml-1","fw-m","custom-letter-spacing-0","read-more"],[1,"invalid-feedback"],[4,"ngIf"],[1,"ic","md","ic-eye-hide","t-eye",3,"click"],[1,"ic","md","ic-eye-show","t-eye",3,"click"]],template:function(t,e){1&t&&(y.Tb(0,"div",0),y.Tb(1,"div",1),y.Tb(2,"div",2),y.Ob(3,"div",3),y.Sb(),y.Tb(4,"div",4),y.Tb(5,"div",5),y.Tb(6,"div",6),y.Tb(7,"h2",7),y.Kc(8,"Login"),y.Sb(),y.Tb(9,"h2",8),y.Tb(10,"span",9),y.Kc(11,"Hello, "),y.Sb(),y.Tb(12,"span",10),y.Kc(13,"Welcome!"),y.Sb(),y.Sb(),y.Tb(14,"form",11),y.fc("ngSubmit",(function(){return e.onSubmit()})),y.Tb(15,"div",12),y.Tb(16,"label"),y.Kc(17,"EMAIL"),y.Sb(),y.Ob(18,"input",13),y.Ic(19,L,3,2,"div",14),y.Sb(),y.Tb(20,"div",12),y.Tb(21,"label"),y.Kc(22,"PASSWORD"),y.Sb(),y.Tb(23,"div",15),y.Ob(24,"input",16),y.Tb(25,"div",17),y.Tb(26,"span",18),y.Ic(27,M,1,0,"i",19),y.Ic(28,q,1,0,"i",20),y.Sb(),y.Sb(),y.Sb(),y.Ic(29,B,2,1,"div",14),y.Sb(),y.Tb(30,"div",21),y.Tb(31,"div",22),y.Tb(32,"div",23),y.Tb(33,"input",24),y.fc("ngModelChange",(function(t){return e.isRememberMe=t}))("change",(function(t){return e.toggleRememberMe(t)})),y.Sb(),y.Tb(34,"label",25),y.Kc(35,"Keep me signed in"),y.Sb(),y.Sb(),y.Sb(),y.Tb(36,"div",26),y.Tb(37,"a",27),y.Kc(38," Forgot Password? "),y.Sb(),y.Sb(),y.Ob(39,"div",28),y.Sb(),y.Tb(40,"div",29),y.Tb(41,"button",30),y.Kc(42," Login "),y.Sb(),y.Sb(),y.Tb(43,"div",31),y.Ob(44,"div",32),y.Tb(45,"span",33),y.Kc(46,"OR"),y.Sb(),y.Ob(47,"div",34),y.Sb(),y.Tb(48,"div",35),y.Tb(49,"a",36),y.fc("click",(function(){return e.signInWithGoogle()})),y.Ob(50,"i",37),y.Tb(51,"span",38),y.Kc(52,"Login with Google"),y.Sb(),y.Sb(),y.Tb(53,"a",39),y.fc("click",(function(){return e.signInWithFB()})),y.Ob(54,"i",40),y.Tb(55,"span",38),y.Kc(56,"Login with Facebook"),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Tb(57,"div",41),y.Tb(58,"p",9),y.Kc(59," Don\u2019t have an account yet? "),y.Tb(60,"a",42),y.Kc(61,"Sign up now"),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb()),2&t&&(y.zb(14),y.oc("formGroup",e.form),y.zb(5),y.oc("ngIf",e.submitted&&e.formControls.email.errors),y.zb(4),y.oc("ngClass",y.tc(11,j,e.submitted&&e.formControls.password.errors)),y.zb(1),y.oc("type",e.passwordType?"text":"password")("ngClass",y.tc(13,j,e.submitted&&e.formControls.password.errors)),y.zb(3),y.oc("ngIf",!e.passwordType),y.zb(1),y.oc("ngIf",e.passwordType),y.zb(1),y.oc("ngIf",e.submitted&&e.formControls.password.errors),y.zb(4),y.oc("ngModel",e.isRememberMe)("ngModelOptions",y.sc(15,G)),y.zb(8),y.oc("disabled",e.form.invalid))}
1,directives:[P.y,P.p,P.j,P.b,P.o,P.h,s.m,s.k,P.a,P.q,o.h],styles:[""]}),t})();function A(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Required field"),y.Sb())}function V(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Invalid email"),y.Sb())}function W(t,e){if(1&t&&(y.Tb(0,"div",19),y.Ic(1,A,2,0,"div",20),y.Ic(2,V,2,0,"div",20),y.Sb()),2&t){const t=y.hc();y.zb(1),y.oc("ngIf",t.formControls.email.errors.required),y.zb(1),y.oc("ngIf",t.formControls.email.errors.email)}}const Y=function(){return["/auth/login"]};let H=(()=>{class t{constructor(t,e,i,s,r,o){this.formBuilder=t,this.route=e,this.router=i,this.authService=s,this.toastr=r,this.utils=o,this.loading=!1,this.submitted=!1}ngOnInit(){this.utils.getItem("currentUser")&&this.router.navigate(["/analysis"]),this.loggedUser=this.utils.getItem("user"),this.loggedUser&&this.router.navigate(["/"]),this.form=this.formBuilder.group({email:["",[P.w.required,,P.w.email]]}),this.currentYear=(new Date).getFullYear()}get formControls(){return this.form.controls}onSubmit(){if(this.submitted=!0,this.form.valid){this.loading=!0;const t={email:this.formControls.email.value};this.authService.forgotPassword(t).subscribe(e=>{200!==e.status||e.error?(this.toastr.error("",e.message),this.loading=!1,this.submitted=!1):(this.utils.setItem("userEmail",t.email),this.toastr.success("Success!",e.message),this.router.navigate(["/auth/verify-otp"],{queryParams:{action:"edit"}}),this.loading=!1,this.submitted=!1)},t=>{this.loading=!1,this.submitted=!1})}}}return t.\u0275fac=function(e){return new(e||t)(y.Nb(P.e),y.Nb(o.a),y.Nb(o.f),y.Nb(E.a),y.Nb(k.b),y.Nb(R.a))},t.\u0275cmp=y.Hb({type:t,selectors:[["app-forgot-password"]],decls:25,vars:5,consts:[[1,"page-onboarding","h-100"],[1,"image-container"],[1,"col-md-12","col-sm-12","p-0","m-0"],[1,"image-container-left","h-100"],[1,"card","forgot-password"],[1,"form-container"],[1,"form-area","mt-4","mb-4"],[1,"text-center","mb-3","head1","text-uppercase","sub-heading-2","fw-b"],[1,"text-center","fw-m","fz-16","mb-5","body-3"],["autocomplete","off",3,"formGroup","ngSubmit"],[1,"form-group","mb-5"],[1,"text-uppercase"],["type","email","formControlName","email","placeholder","Your email",1,"form-control"],["class","invalid-feedback",4,"ngIf"],[1,"d-flex","align-items-baseline","text-center","mt-4"],["type","submit",1,"py-3","btn","btn-primary","fw-b","btn-block","btn-login","text-uppercase",3,"disabled"],[1,"text-center","w-100","mt-5"],[1,"fw-l"],["href","#",1,"read-more","text-dark","ml-1","fw-m","custom-letter-spacing-0",3,"routerLink"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(t,e){1&t&&(y.Tb(0,"div",0),y.Tb(1,"div",1),y.Tb(2,"div",2),y.Ob(3,"div",3),y.Sb(),y.Tb(4,"div",4),y.Tb(5,"div",5),y.Tb(6,"div",6),y.Tb(7,"h2",7),y.Kc(8,"Forgot Password"),y.Sb(),y.Tb(9,"h2",8),y.Kc(10,"Please enter your email"),y.Sb(),y.Tb(11,"form",9),y.fc("ngSubmit",(function(){return e.onSubmit()})),y.Tb(12,"div",10),y.Tb(13,"label",11),y.Kc(14,"Email"),y.Sb(),y.Ob(15,"input",12),y.Ic(16,W,3,2,"div",13),y.Sb(),y.Tb(17,"div",14),y.Tb(18,"button",15),y.Kc(19," Continue "),y.Sb(),y.Sb(),y.Sb(),y.Tb(20,"div",16),y.Tb(21,"p",17),y.Kc(22," Don\u2019t have an account yet? "),y.Tb(23,"a",18),y.Kc(24," Login "),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb()),2&t&&(y.zb(11),y.oc("formGroup",e.form),y.zb(5),y.oc("ngIf",e.submitted&&e.formControls.email.errors),y.zb(2),y.oc("disabled",e.form.invalid),y.zb(5),y.oc("routerLink",y.sc(4,Y)))},directives:[P.y,P.p,P.j,P.b,P.o,P.h,s.m,o.h],styles:[""]}),t})();var Z=i("eEKJ");function J(t,e){if(1&t){const t=y.Ub();y.Tb(0,"i",23),y.fc("click",(function(){return y.Bc(t),y.hc().togglePasswordType()})),y.Sb()}}function X(t,e){if(1&t){const t=y.Ub();y.Tb(0,"i",24),y.fc("click",(function(){return y.Bc(t),y.hc().togglePasswordType()})),y.Sb()}}function Q(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Required field"),y.Sb())}function $(t,e){if(1&t&&(y.Tb(0,"div",25),y.Ic(1,Q,2,0,"div",26),y.Sb()),2&t){const t=y.hc();y.zb(1),y.oc("ngIf",t.formControls.newPassword.errors.required)}}function tt(t,e){if(1&t){const t=y.Ub();y.Tb(0,"i",23),y.fc("click",(function(){return y.Bc(t),y.hc().togglePasswordConfirmType()})),y.Sb()}}function et(t,e){if(1&t){const t=y.Ub();y.Tb(0,"i",24),y.fc("click",(function(){return y.Bc(t),y.hc().togglePasswordConfirmType()})),y.Sb()}}function it(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1," Required field "),y.Sb())}function st(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1," Password mismatch "),y.Sb())}function rt(t,e){if(1&t&&(y.Tb(0,"div",25),y.Ic(1,it,2,0,"div",26),y.Ic(2,st,2,0,"div",26),y.Sb()),2&t){const t=y.hc();y.zb(1),y.oc("ngIf",t.formControls.confirmNewPassword.errors.required),y.zb(1),y.oc("ngIf",t.formControls.confirmNewPassword.errors.MatchPassword)}}const ot=function(t){return{"is-invalid":t}};let nt=(()=>{class t{constructor(t,e,i,s,r,o,n){this.formBuilder=t,this.route=e,this.router=i,this.authService=s,this.toastr=r,this.utils=o,this.activatedRoute=n,this.passwordType=!1,this.passwordConfirmType=!1,this.loading=!1,this.submitted=!1}ngOnInit(){this.formType=this.activatedRoute.snapshot.queryParamMap.get("action"),void 0===this.formType&&this.router.navigate(["/"]),this.form=this.formBuilder.group({newPassword:["",P.w.required],confirmNewPassword:["",P.w.required]},{validator:this.matchPassword}),this.currentYear=(new Date).getFullYear()}matchPassword(t){if(t.get("newPassword").value===t.get("confirmNewPassword").value)return null;t.get("confirmNewPassword").setErrors({MatchPassword:!0})}get password(){return this.form.get("newPassword")}onSubmit(){if(this.submitted=!0,this.form.valid){const t={email:this.utils.getItem("userEmail"),temp_token:this.utils.getItem("tempToken"),confirm_password:this.form.controls.newPassword.value,password:this.form.controls.confirmNewPassword.value};this.loading=!0,"new"===this.formType?this.authService.resetPassword(t).subscribe(t=>{200!==t.status||t.error?this.toastr.error(t.message):(this.utils.setItem("currentUser",t.data),this.toastr.success(t.message),t.data.user.profile_status?this.router.navigate(["/analysis"]):this.router.navigate(["/profile"],{queryParams:{action:this.formType}})),this.loading=!1,this.submitted=!1},t=>{this.loading=!1,this.submitted=!1}):this.authService.updateForgotPassword(t).subscribe(t=>{200!==t.status||t.error?this.toastr.error(t.message):(this.toastr.success(t.message),this.router.navigate(["auth/login"])),this.loading=!1,this.submitted=!1},t=>{this.loading=!1,this.submitted=!1})}}togglePasswordType(){this.passwordType=!this.passwordType}togglePasswordConfirmType(){this.passwordConfirmType=!this.passwordConfirmType}toggleConfirmPasswordType(){this.passwordConfirmType=!this.passwordConfirmType}get formControls(){return this.form.controls}}return t.\u0275fac=function(e){return new(e||t)(y.Nb(P.e),y.Nb(o.a),y.Nb(o.f),y.Nb(E.a),y.Nb(k.b),y.Nb(R.a),y.Nb(o.a))},t.\u0275cmp=y.Hb({type:t,selectors:[["app-reset-password"]],decls:36,vars:23,consts:[[1,"page-onboarding","h-100"],[1,"image-container"],[1,"col-md-12","col-sm-12","p-0","m-0"],[1,"image-container-left","h-100"],[1,"card","reset-password","py-5"],[1,"form-container"],[1,"form-area","mb-5"],[1,"text-center","mb-3","head1","sub-heading-2","fw-b","text-uppercase"],[1,"mt-0","mb-5","text-center","body-3"],["autocomplete","off",3,"formGroup","ngSubmit"],[1,"form-group","mb-20"],[1,"text-uppercase"],[1,"input-group","mb-3",3,"ngClass"],["placeholder","Enter Password","aria-describedby","basic-addon2","formControlName","newPassword",1,"form-control","password",3,"type","ngClass"],[1,"input-group-append"],["id","basic-addon2",1,"input-group-text","rounded-0"],["class","ic md ic-eye-hide t-eye",3,"click",4,"ngIf"],["class","ic md ic-eye-show t-eye",3,"click",4,"ngIf"],[3,"password"],["class","invali
1d-feedback",4,"ngIf"],["placeholder","Enter Password","aria-describedby","basic-addon2","formControlName","confirmNewPassword",1,"form-control","password",3,"type","ngClass"],[1,"d-flex","align-items-baseline","text-center","mt-5"],["type","submit",1,"py-3","btn","btn-primary","btn-block","btn-login","fw-m","text-uppercase",3,"disabled"],[1,"ic","md","ic-eye-hide","t-eye",3,"click"],[1,"ic","md","ic-eye-show","t-eye",3,"click"],[1,"invalid-feedback"],[4,"ngIf"]],template:function(t,e){1&t&&(y.Tb(0,"div",0),y.Tb(1,"div",1),y.Tb(2,"div",2),y.Ob(3,"div",3),y.Sb(),y.Tb(4,"div",4),y.Tb(5,"div",5),y.Tb(6,"div",6),y.Tb(7,"h2",7),y.Kc(8,"Create New Password"),y.Sb(),y.Tb(9,"p",8),y.Kc(10," Password must be minimum 8 characters including one uppercase letter and alphnumeric characters "),y.Sb(),y.Tb(11,"form",9),y.fc("ngSubmit",(function(){return e.onSubmit()})),y.Tb(12,"div",10),y.Tb(13,"label",11),y.Kc(14,"New password"),y.Sb(),y.Tb(15,"div",12),y.Ob(16,"input",13),y.Tb(17,"div",14),y.Tb(18,"span",15),y.Ic(19,J,1,0,"i",16),y.Ic(20,X,1,0,"i",17),y.Sb(),y.Sb(),y.Sb(),y.Ob(21,"password-strength-meter",18),y.Ic(22,$,2,1,"div",19),y.Sb(),y.Tb(23,"div",10),y.Tb(24,"label",11),y.Kc(25,"Confirm New Password"),y.Sb(),y.Tb(26,"div",12),y.Ob(27,"input",20),y.Tb(28,"div",14),y.Tb(29,"span",15),y.Ic(30,tt,1,0,"i",16),y.Ic(31,et,1,0,"i",17),y.Sb(),y.Sb(),y.Sb(),y.Ic(32,rt,3,2,"div",19),y.Sb(),y.Tb(33,"div",21),y.Tb(34,"button",22),y.Kc(35," Continue "),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb()),2&t&&(y.zb(11),y.oc("formGroup",e.form),y.zb(4),y.oc("ngClass",y.tc(15,ot,e.submitted&&e.formControls.newPassword.errors)),y.zb(1),y.oc("type",e.passwordType?"text":"password")("ngClass",y.tc(17,ot,e.submitted&&e.formControls.newPassword.errors)),y.zb(3),y.oc("ngIf",!e.passwordType),y.zb(1),y.oc("ngIf",e.passwordType),y.zb(1),y.oc("password",e.formControls.newPassword.value),y.zb(1),y.oc("ngIf",e.submitted&&e.formControls.newPassword.errors),y.zb(4),y.oc("ngClass",y.tc(19,ot,e.submitted&&e.formControls.confirmNewPassword.errors)),y.zb(1),y.oc("type",e.passwordConfirmType?"text":"password")("ngClass",y.tc(21,ot,e.submitted&&e.formControls.confirmNewPassword.errors)),y.zb(3),y.oc("ngIf",!e.passwordConfirmType),y.zb(1),y.oc("ngIf",e.passwordConfirmType),y.zb(1),y.oc("ngIf",e.submitted&&e.formControls.confirmNewPassword.errors),y.zb(2),y.oc("disabled",e.form.invalid))},directives:[P.y,P.p,P.j,s.k,P.b,P.o,P.h,s.m,Z.a],styles:[""]}),t})();var at=i("tmjD");function ct(t,e){if(1&t&&(y.Rb(0),y.Ob(1,"span",2),y.Qb()),2&t){const t=y.hc();y.zb(1),y.oc("innerHTML",t.i.text,y.Cc)}}function lt(t,e){1&t&&y.Pb(0)}const ut=function(t){return{$implicit:t}};var ht=function(t){return t[t.ing=0]="ing",t[t.pause=1]="pause",t[t.stop=2]="stop",t[t.done=3]="done",t}({});let dt=(()=>{class t{constructor(t){this.ngZone=t,this.fns=[],this.commands=[],this.ing=!1}start(){!0!==this.ing&&(this.ing=!0,this.nextTime=+new Date,this.ngZone.runOutsideAngular(()=>{this.process()}))}process(){for(;this.commands.length;)this.commands.shift()();let t=+new Date-this.nextTime;const e=1+Math.floor(t/100);t=100-t%100,this.nextTime+=100*e;for(let i=0,s=this.fns.length;i<s;i+=2){let t=this.fns[i+1];if(0===t)this.fns[i](e);else{t+=2*e-1;const s=Math.floor(t/20);s>0&&this.fns[i](s),this.fns[i+1]=t%20+1}}this.ing&&setTimeout(()=>this.process(),t)}add(t,e){return this.commands.push(()=>{this.fns.push(t),this.fns.push(1e3===e?1:0),this.ing=!0}),this}remove(t){return this.commands.push(()=>{const e=this.fns.indexOf(t);-1!==e&&this.fns.splice(e,2),this.ing=this.fns.length>0}),this}}return t.\u0275fac=function(e){return new(e||t)(y.bc(y.z))},t.\u0275prov=y.Jb({token:t,factory:t.\u0275fac}),t})(),mt=(()=>{class t{constructor(t){this.locale=t,this.demand=!1,this.leftTime=0,this.format="HH:mm:ss",this.timezone="+0000",this.formatDate=({date:t,formatStr:e,timezone:i})=>Object(s.v)(new Date(t),e,this.locale,i||this.timezone||"+0000")}}return t.\u0275fac=function(e){return new(e||t)(y.bc(y.u))},t.\u0275prov=Object(y.Jb)({factory:function(){return new t(Object(y.bc)(y.u))},token:t,providedIn:"root"}),t})(),bt=(()=>{class t{constructor(t,e,i,s,r){this.locale=t,this.timer=e,this.defCog=i,this.cdr=s,this.ngZone=r,this.frequency=1e3,this._notify={},this.status=ht.ing,this.isDestroy=!1,this.i={},this.left=0,this.event=new y.n}begin(){this.status=ht.ing,this.callEvent("start")}
1restart(){this.status!==ht.stop&&this.destroy(),this.init(),this.callEvent("restart")}stop(){this.status!==ht.stop&&(this.status=ht.stop,this.destroy(),this.callEvent("stop"))}pause(){this.status!==ht.stop&&this.status!==ht.pause&&(this.status=ht.pause,this.callEvent("pause"))}resume(){this.status!==ht.stop&&this.status===ht.pause&&(this.status=ht.ing,this.callEvent("resume"))}callEvent(t){this.event.emit({action:t,left:this.left,status:this.status,text:this.i.text})}init(){const{locale:t,defCog:e}=this,i=this.config=Object.assign(Object.assign(Object.assign({},new mt(t)),e),this.config),s=this.frequency=~i.format.indexOf("S")?100:1e3;this.status=i.demand?ht.pause:ht.ing,this.getLeft();const r=this.reflow;this.reflow=(t=0,e=!1)=>r.apply(this,[t,e]),Array.isArray(i.notify)&&i.notify.forEach(t=>{if(t<1)throw new Error("The notify config must be a positive integer.");t*=1e3,this._notify[t-=t%s]=!0}),this.timer.add(this.reflow,s).start(),this.reflow(0,!0)}destroy(){return this.timer.remove(this.reflow),this}reflow(t=0,e=!1){if(this.isDestroy)return;const{status:i,config:s,_notify:r}=this;if(!e&&i!==ht.ing)return;let o=this.left=this.left-this.frequency*t;o<1&&(o=0),this.i={value:o,text:s.formatDate({date:o,formatStr:s.format,timezone:s.timezone})},"function"==typeof s.prettyText&&(this.i.text=s.prettyText(this.i.text)),this.cdr.detectChanges(),(0===s.notify||r[o])&&this.ngZone.run(()=>{this.callEvent("notify")}),0===o&&this.ngZone.run(()=>{this.status=ht.done,this.callEvent("done"),this.destroy()})}getLeft(){const{config:t,frequency:e}=this;let i=1e3*t.leftTime;const s=t.stopTime;!i&&s&&(i=s-(new Date).getTime()),this.left=i-i%e}ngOnInit(){this.init(),this.config.demand||this.begin()}ngOnDestroy(){this.isDestroy=!0,this.destroy()}ngOnChanges(t){t.config.firstChange||this.restart()}}return t.\u0275fac=function(e){return new(e||t)(y.Nb(y.u),y.Nb(dt),y.Nb(mt),y.Nb(y.h),y.Nb(y.z))},t.\u0275cmp=y.Hb({type:t,selectors:[["countdown"]],hostVars:2,hostBindings:function(t,e){2&t&&y.Eb("count-down",!0)},inputs:{config:"config",render:"render"},outputs:{event:"event"},features:[y.xb],decls:2,vars:5,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(y.Ic(0,ct,2,1,"ng-container",0),y.Ic(1,lt,1,0,"ng-container",1)),2&t&&(y.oc("ngIf",!e.render),y.zb(1),y.oc("ngTemplateOutlet",e.render)("ngTemplateOutletContext",y.tc(3,ut,e.i)))},directives:[s.m,s.o],encapsulation:2,changeDetection:0}),t})(),ft=(()=>{class t{}return t.\u0275mod=y.Lb({type:t}),t.\u0275inj=y.Kb({factory:function(e){return new(e||t)},providers:[dt],imports:[[s.b]]}),t})();const pt=["cd"];function gt(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Required field"),y.Sb())}function vt(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Invalid Otp"),y.Sb())}function wt(t,e){if(1&t&&(y.Tb(0,"div",20),y.Ic(1,gt,2,0,"div",21),y.Ic(2,vt,2,0,"div",21),y.Sb()),2&t){const t=y.hc();y.zb(1),y.oc("ngIf",t.formControls.otp.errors.required),y.zb(1),y.oc("ngIf",t.formControls.otp.errors.minlength)}}const Tt=function(){return{leftTime:60,format:"mm:ss"}};function St(t,e){if(1&t){const t=y.Ub();y.Rb(0),y.Tb(1,"countdown",22,23),y.fc("event",(function(e){return y.Bc(t),y.hc().handleEvent(e)})),y.Sb(),y.Qb()}2&t&&(y.zb(1),y.oc("config",y.sc(1,Tt)))}function yt(t,e){if(1&t){const t=y.Ub();y.Tb(0,"a",24),y.fc("click",(function(){return y.Bc(t),y.hc().onResendOtp()})),y.Kc(1,"Resend OTP"),y.Sb()}}let It=(()=>{class t{constructor(t,e,i,s,r,o,n){this.route=t,this.router=e,this.authService=i,this.toastr=s,this.utils=r,this.activatedRoute=o,this.formBuilder=n,this.loading=!1,this.submitted=!1,this.isError=!1,this.errMessage="",this.hideCountDown=!1}ngOnInit(){this.utils.getItem("currentUser")&&this.router.navigate(["/analysis"]),this.userEmail=this.utils.getItem("userEmail"),this.formType=this.activatedRoute.snapshot.queryParamMap.get("action"),console.log(this.formType),this.form=this.formBuilder.group({otp:["",[P.w.required,,P.w.minLength(6)]]}),this.startOtpTimer()}startOtpTimer(){var t;null===(t=this.countdown)||void 0===t||t.begin()}handleEvent(t){console.log(t),"done"===t.action&&(this.hideCountDown=!0)}get formControls(){return this.form.controls}onOtpChange(t){this.otpCode=t}onResendOtp(){const t={email:this.userEmail};"new"===this.formType&&this.authService.generateEmailOtp(t).subscribe(t=>{console.log(t),200!==t.status||t.error?this.toastr.error("",t.message):(this.toastr.success("",t.message),this.hideCountDown=!1,this.startOtpTimer())},t=>{this.toastr.error("","Something went wrong. Please try again. ")}),"edit"===this.formType&&this.authService.resendEmailOtp(t).subscribe(t=>{console.log(t),200!==t.status||t.error?this.toastr.error("",t.message):(this.hideCountDown=!1,this.startOtpTimer())},t=>{this.loading=!1,this.submitted=!1,this.toastr.error("","Something went wrong. Please try again. ")})}onSubmit(){this.submitted=!0,this.loading=!0,this.authService.verifyEmailOtp({otp:this.formControls.otp.value,email:this.userEmail}).subscribe(t=>{200!==t.status||t.error?this.toastr.error("",t.message):(this.utils.setItem("tempToken",t.data.temp_token),this.router.navigate(["/auth/new-password"],{queryParams:{action:this.formType}})),this.loading=!1},t=>{this.loading=!1,this.submitted=!1,this.toastr.error("","Something went wrong. Please try again. ")})}}return t.\u0275fac=function(e){return new(e||t)(y.Nb(o.a),y.Nb(o.f),y.Nb(E.a),y.Nb(k.b),y.Nb(R.a),y.Nb(o.a),y.Nb(P.e))},t.\u0275cmp=y.Hb({type:t,selectors:[["app-verify-otp"]],viewQuery:function(t,e){var i;1&t&&y.Pc(pt,!0),2&t&&y.xc(i=y.gc())&&(e.countdown=i.first)},decls:26,vars:5,consts:[[1,"page-onboarding","h-100"],[1,"image-container"],[1,"col-md-12","col-sm-12","p-0","m-0"],[1,"image-container-left","h-100"],[1,"card","verify-otp"],[1,"form-container"],[1,"form-area","mt-3","mb-5","py-3"],[1,"text-center","mb-4","head1","fw-b","sub-heading-2","text-uppercase"],[1,"mt-0","mb-5","text-center","body-3"],[3,"formGroup","ngSubmit"],[1,"form-group","mb-32"],[1,"text-uppercase"],["type","text","formControlName","otp","mask","000000","placeholder","ENTER SIX-DIGIT VERIFICATION CODE",1,"form-control"],["class","invali
1d-feedback",4,"ngIf"],[1,"d-flex","align-items-baseline","text-center","mt-5"],["type","submit",1,"py-3","btn","btn-primary","btn-block","btn-login","fw-b","text-uppercase",3,"disabled"],[1,"text-center","w-100","mt-5"],[1,"fw-l","mb-0"],[4,"ngIf","ngIfElse"],["resendOtp",""],[1,"invalid-feedback"],[4,"ngIf"],[3,"config","event"],["cd",""],["href","javascript:void(0)",1,"read-more","text-dark","ml-2","fw-m","custom-letter-spacing-0",3,"click"]],template:function(t,e){if(1&t&&(y.Tb(0,"div",0),y.Tb(1,"div",1),y.Tb(2,"div",2),y.Ob(3,"div",3),y.Sb(),y.Tb(4,"div",4),y.Tb(5,"div",5),y.Tb(6,"div",6),y.Tb(7,"h2",7),y.Kc(8,"FORGOT PASSWORD"),y.Sb(),y.Tb(9,"p",8),y.Kc(10,"ENTER SIX-DIGIT VERIFICATION CODE"),y.Sb(),y.Tb(11,"form",9),y.fc("ngSubmit",(function(){return e.onSubmit()})),y.Tb(12,"div",10),y.Tb(13,"label",11),y.Kc(14,"Enter CODE"),y.Sb(),y.Ob(15,"input",12),y.Ic(16,wt,3,2,"div",13),y.Sb(),y.Tb(17,"div",14),y.Tb(18,"button",15),y.Kc(19," Continue "),y.Sb(),y.Sb(),y.Sb(),y.Tb(20,"div",16),y.Tb(21,"p",17),y.Kc(22," Didn\u2019t receive a verification code? "),y.Sb(),y.Ic(23,St,3,2,"ng-container",18),y.Ic(24,yt,2,0,"ng-template",null,19,y.Jc),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb()),2&t){const t=y.yc(25);y.zb(11),y.oc("formGroup",e.form),y.zb(5),y.oc("ngIf",e.submitted&&e.formControls.otp.errors),y.zb(2),y.oc("disabled",e.form.invalid),y.zb(5),y.oc("ngIf",!e.hideCountDown)("ngIfElse",t)}},directives:[P.y,P.p,P.j,P.b,at.a,P.o,P.h,s.m,bt],styles:[""]}),t})();function Ot(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Required field"),y.Sb())}function Nt(t,e){1&t&&(y.Tb(0,"div"),y.Kc(1,"Invalid email"),y.Sb())}function xt(t,e){if(1&t&&(y.Tb(0,"div",30),y.Ic(1,Ot,2,0,"div",31),y.Ic(2,Nt,2,0,"div",31),y.Sb()),2&t){const t=y.hc();y.zb(1),y.oc("ngIf",t.formControls.email.errors.required),y.zb(1),y.oc("ngIf",t.formControls.email.errors.email)}}function _t(t,e){1&t&&y.Ob(0,"span",32)}const Ct=function(){return["/auth/login"]},Pt=[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",component:F},{path:"signup",component:(()=>{class t{constructor(t,e,i,s,r,o){this.formBuilder=t,this.toastr=e,this.authService=i,this.router=s,this.utils=r,this.socialService=o,this.loading=!1,this.submitted=!1}ngOnInit(){this.utils.getItem("currentUser")&&this.router.navigate(["/analysis"]),this.form=this.formBuilder.group({email:["",[P.w.required,P.w.email]]})}get formControls(){return this.form.controls}signInWithGoogle(){this.socialService.signIn(_.PROVIDER_ID).then(t=>{this.authService.socialMediaSignUp({fname:t.firstName?t.firstName:t.first_name,lname:t.lastName?t.lastName:t.last_name,email:t.email,social_media_type:"1",social_media_id:t.id}).subscribe(t=>{200!==t.status||t.error?this.toastr.error("",t.message):(this.toastr.success("",t.message),this.utils.setItem("currentUser",t.data),this.router.navigate(["/profile"],{queryParams:{action:"new"}})),this.loading=!1,this.submitted=!1},t=>{this.loading=!1,this.submitted=!1,this.toastr.error("","Something went wrong. Please try again. ")})},t=>{console.log(t)})}signInWithFB(){this.socialService.signIn(C.PROVIDER_ID).then(t=>{this.authService.socialMediaSignUp({fname:t.firstName?t.firstName:t.first_name,lname:t.lastName?t.lastName:t.last_name,email:t.email,social_media_type:"2",social_media_id:t.id}).subscribe(t=>{200!==t.status||t.error?this.toastr.error("",t.message):(this.toastr.success("",t.message),this.utils.setItem("currentUser",t.data),this.router.navigate(["/profile"],{queryParams:{action:"new"}})),this.loading=!1,this.submitted=!1},t=>{this.loading=!1,this.submitted=!1,this.toastr.error("","Something went wrong. Please try again. ")})},t=>{console.log(t)})}onSubmit(){if(this.submitted=!0,this.form.valid){this.loading=!0;const t={email:this.formControls.email.value};this.authService.generateEmailOtp(t).subscribe(e=>{200!==e.status||e.error?(this.toastr.error("",e.message),this.loading=!1,this.submitted=!1):(this.utils.setItem("userEmail",t.email),this.toastr.success("Success!",e.message),this.router.navigate(["/auth/verify-otp"],{queryParams:{action:"new"}}),this.loading=!1,this.submitted=!1)},t=>{this.loading=!1,this.submitted=!1})}}}return t.\u0275fac=function(e){return new(e||t)(y.Nb(P.e),y.Nb(k.b),y.Nb(E.a),y.Nb(o.f),y.Nb(R.a),y.Nb(I))},t.\u0275cmp=y.Hb({type:t,selectors:[["app-sign-up"]],decls:42,vars:6,consts:[[1,"page-onboarding","h-100"],[1,"image-container"],[1,"col-md-12","col-sm-12","p-0","m-0"],[1,"image-container-left","h-100"],[1,"card","signup"],[1,"form-container"],[1,"form-area","mt-3","py-3"],[1,"text-center","mb-4","head1","fw-b","sub-heading-2","text-uppercase"],[1,"fz-30","text-center","fw-l","mb-4","head2","text-uppercase","letter-spacing-4"],[1,"fw-r"],["autocomplete","off",3,"formGroup","ngSubmit"],[1,"form-group","mb-5"],[1,"text-uppercase"],["type","email","formControlName","email","placeholder","Your email",1,"form-control"],["class","invali
1d-feedback",4,"ngIf"],[1,"text-center"],["type","submit",1,"py-3","btn","btn-primary","btn-block","btn-login","text-uppercase",3,"disabled"],["class","spinner-border spinner-border-sm mr-1",4,"ngIf"],[1,"form-group","mx-auto","d-flex","align-items-center","my-4"],[1,"border-bottom","w-100","ml-2"],[1,"px-2","small","text-black","sub-heading-1","fw-m"],[1,"border-bottom","w-100","mr-2"],[1,"form-group","mx-auto"],["href","javascript:void(0)",1,"btn","btn-primary","btn-block","py-2","btn-google",3,"click"],[1,"ic","ic-google","mr-2","float-left","sm"],[1,"fw-b","text-uppercase","mx-auto"],["href","javascript:void(0)",1,"btn","btn-primary","btn-block","py-2","btn-facebook",3,"click"],[1,"ic","ic-facebook","mr-2","float-left","sm"],[1,"text-center","w-100","mt-5"],["href","#",1,"text-dark","read-more","ml-1","fw-m","custom-letter-spacing-0",3,"routerLink"],[1,"invalid-feedback"],[4,"ngIf"],[1,"spinner-border","spinner-border-sm","mr-1"]],template:function(t,e){1&t&&(y.Tb(0,"div",0),y.Tb(1,"div",1),y.Tb(2,"div",2),y.Ob(3,"div",3),y.Sb(),y.Tb(4,"div",4),y.Tb(5,"div",5),y.Tb(6,"div",6),y.Tb(7,"h2",7),y.Kc(8,"Sign Up"),y.Sb(),y.Tb(9,"h2",8),y.Kc(10,"Hello, "),y.Tb(11,"span",9),y.Kc(12,"Welcome!"),y.Sb(),y.Sb(),y.Tb(13,"form",10),y.fc("ngSubmit",(function(){return e.onSubmit()})),y.Tb(14,"div",11),y.Tb(15,"label",12),y.Kc(16,"Email*"),y.Sb(),y.Ob(17,"input",13),y.Ic(18,xt,3,2,"div",14),y.Sb(),y.Tb(19,"div",15),y.Tb(20,"button",16),y.Ic(21,_t,1,0,"span",17),y.Kc(22," Signup "),y.Sb(),y.Sb(),y.Tb(23,"div",18),y.Ob(24,"div",19),y.Tb(25,"span",20),y.Kc(26,"OR"),y.Sb(),y.Ob(27,"div",21),y.Sb(),y.Tb(28,"div",22),y.Tb(29,"a",23),y.fc("click",(function(){return e.signInWithGoogle()})),y.Ob(30,"i",24),y.Tb(31,"span",25),y.Kc(32,"Continue with Google"),y.Sb(),y.Sb(),y.Tb(33,"a",26),y.fc("click",(function(){return e.signInWithFB()})),y.Ob(34,"i",27),y.Tb(35,"span",25),y.Kc(36,"Continue with Facebook"),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Tb(37,"div",28),y.Tb(38,"p",9),y.Kc(39," Already have an account? "),y.Tb(40,"a",29),y.Kc(41,"Login now"),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb(),y.Sb()),2&t&&(y.zb(13),y.oc("formGroup",e.form),y.zb(5),y.oc("ngIf",e.submitted&&e.formControls.email.errors),y.zb(2),y.oc("disabled",e.form.invalid),y.zb(1),y.oc("ngIf",e.loading),y.zb(19),y.oc("routerLink",y.sc(5,Ct)))},directives:[P.y,P.p,P.j,P.b,P.o,P.h,s.m,o.h],styles:[""]}),t})()},{path:"forgot-password",component:H},{path:"new-password",component:nt},{path:"verify-otp",component:It}];let kt=(()=>{class t{}return t.\u0275mod=y.Lb({type:t}),t.\u0275inj=y.Kb({factory:function(e){return new(e||t)},imports:[[o.i.forChild(Pt)],o.i]}),t})(),Et=(()=>{class t{transform(t){return Object.keys(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=y.Mb({name:"keys",type:t,pure:!0}),t})(),Rt=(()=>{class t{}return t.\u0275mod=y.Lb({type:t}),t.\u0275inj=y.Kb({factory:function(e){return new(e||t)},providers:[Et],imports:[[s.b,P.k,P.t]]}),t})();var zt=i("AytR");let Dt=(()=>{class t{}return t.\u0275mod=y.Lb({type:t}),t.\u0275inj=y.Kb({factory:function(e){return new(e||t)},providers:[{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,providers:[{id:_.PROVIDER_ID,provider:new _(zt.a.googleLoginProvider)},{id:C.PROVIDER_ID,provider:new C(zt.a.facebookLoginProvider)}]}}],imports:[[s.b,r.a,kt,Rt,Z.b,O,ft]]}),t})()}}]);

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.