1function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}function _get(e,t,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=_superPropBase(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(i):r.value}})(e,t,i||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var i,n=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{tSXo:function(e,t,i){"use strict";i.r(t),i.d(t,"OnboardingModule",(function(){return We}));var n,r,o=i("ofXK"),s=i("PCNd"),a=i("tyNb"),c=i("XNiG"),u=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;
1return _classCallCheck(this,i),(r=t.call(this,e,n)).scheduler=e,r.work=n,r}return _createClass(i,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(i.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(i.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==n&&n>0||null===n&&this.delay>0?_get(_getPrototypeOf(i.prototype),"requestAsyncId",this).call(this,e,t,n):e.flush(this)}}]),i}(i("3N8a").a),l=new(function(e){_inherits(i,e);var t=_createSuper(i);function i(){return _classCallCheck(this,i),t.apply(this,arguments)}return i}(i("IjjT").a))(u),f=i("quSY"),d=i("7o/Q"),b=i("WMd4"),m=function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,i),(r=t.call(this,e)).scheduler=n,r.delay=o,r}return _createClass(i,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(i.dispatch,this.delay,new h(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(b.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(b.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(b.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,i=e.destination;t.observe(i),this.unsubscribe()}}]),i}(d.a),h=function e(t,i){_classCallCheck(this,e),this.notification=t,this.destination=i},p=i("9ppp"),g=i("Ylt2"),v=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;
1return _classCallCheck(this,i),(e=t.call(this)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=n<1?1:n,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(i,[{key:"nextInfiniteTimeWindow",value:function(e){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new y(this._getNow(),e)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(i.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,i=this._infiniteTimeWindow,n=i?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;if(this.closed)throw new p.a;if(this.isStopped||this.hasError?t=f.a.EMPTY:(this.observers.push(e),t=new g.a(this,e)),r&&e.add(e=new m(e,r)),i)for(var s=0;s<o&&!e.closed;s++)e.next(n[s]);else for(var a=0;a<o&&!e.closed;a++)e.next(n[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||l).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,i=this._windowTime,n=this._events,r=n.length,o=0;o<r&&!(e-n[o].time<i);)o++;return r>t&&(o=Math.max(o,r-t)),o>0&&n.splice(0,o),n}}]),i}(c.a),y=function e(t,i){_classCallCheck(this,e),this.time=t,this.value=i},w=function(e){_inherits(i,e);var t=_createSuper(i);function i(){var e;return _classCallCheck(this,i),(e=t.apply(this,arguments)).value=null,e.hasNext=!1,e.hasCompleted=!1,e}return _createClass(i,[{key:"_subscribe",value:function(e){return this.hasError?(e.error(this.thrownError),f.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),f.a.EMPTY):_get(_getPrototypeOf(i.prototype),"_subscribe",this).call(this,e)}},{key:"next",value:function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)}},{key:"error",value:function(e){this.hasCompleted||_get(_getPrototypeOf(i.prototype),"error",this).call(this,e)}},{key:"complete",value:function(){this.hasCompleted=!0,this.hasNext&&_get(_getPrototypeOf(i.prototype),"next",this).call(this,this.value),_get(_getPrototypeOf(i.prototype),"complete",this).call(this)}}]),i}(c.a),T=i("fXoL"),S=((r=function(){function e(t){var i=this;_classCallCheck(this,e),this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new v(1),this.initialized=!1,this._initState=new w,t instanceof Promise?t.then((function(e){i.initialize(e)})):this.initialize(t)}return _createClass(e,[{key:"initialize",value:function(e){var t=this;this.autoLogin=void 0!==e.autoLogin&&e.autoLogin,e.providers.forEach((function(e){t.providers.set(e.id,e.provider)})),Promise.all(Array.from(this.providers.values()).map((function(e){return e.initialize()}))).then((function(){if(t.initialized=!0,t._initState.next(t.initialized),t._initState.complete(),t.autoLogin){var e=[],i=!1;t.providers.forEach((function(n,r){var o=n.getLoginStatus();e.push(o),o.then((function(e){e.provider=r,t._user=e,t._authState.next(e),i=!0}
1)).catch(console.debug)})),Promise.all(e).catch((function(){i||(t._user=null,t._authState.next(null))}))}})).catch(console.error)}},{key:"signIn",value:function(t,i){var n=this;return new Promise((function(r,o){if(n.initialized){var s=n.providers.get(t);s?s.signIn(i).then((function(e){e.provider=t,r(e),n._user=e,n._authState.next(e)})).catch((function(e){o(e)})):o(e.ERR_LOGIN_PROVIDER_NOT_FOUND)}else o(e.ERR_NOT_INITIALIZED)}))}},{key:"signOut",value:function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(n,r){if(t.initialized)if(t._user){var o=t.providers.get(t._user.provider);o?o.signOut(i).then((function(){n(),t._user=null,t._authState.next(null)})).catch((function(e){r(e)})):r(e.ERR_LOGIN_PROVIDER_NOT_FOUND)}else r(e.ERR_NOT_LOGGED_IN);else r(e.ERR_NOT_INITIALIZED)}))}},{key:"authState",get:function(){return this._authState.asObservable()}},{key:"initState",get:function(){return this._initState.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||r)(T.bc("SocialAuthServiceConfig"))},r.\u0275prov=T.Jb({token:r,factory:r.\u0275fac}),r.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",r.ERR_NOT_LOGGED_IN="Not logged in",r.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",r),_=((n=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}return _createClass(e,null,[{key:"initialize",value:function(t){return{ngModule:e,providers:[S,{provide:"SocialAuthServiceConfig",useValue:t}]}}}]),e}()).\u0275mod=T.Lb({type:n}),n.\u0275inj=T.Kb({factory:function(e){return new(e||n)(T.bc(n,12))},providers:[S],imports:[[o.b]]}),n),I=function e(){_classCallCheck(this,e)},k=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"loadScript",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if("undefined"!=typeof document&&!document.getElementById(e)){var r=document.createElement("script");r.async=!0,r.src=t,r.onload=i,n||(n=document.head),n.appendChild(r)}}}]),e}(),C=function(){var e=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scope:"email"};return _classCallCheck(this,i),(n=t.call(this)).clientId=e,n.initOptions=r,n}return _createClass(i,[{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){e.loadScript(i.PROVIDER_ID,"https://apis.google.com/js/platform.js",(function(){gapi.load("auth2",(function(){e.auth2=gapi.auth2.init(Object.assign(Object.assign({},e.initOptions),{client_id:e.clientId})),e.auth2.then((function(){t()})).catch((function(e){n(e)}))}))}))}))}},{key:"getLoginStatus",value:function(){var e=this;return new Promise((function(t,n){if(e.auth2.isSignedIn.get()){var r=new I,o=e.auth2.currentUser.get().getBasicProfile(),s=e.auth2.currentUser.get().getAuthResponse(!0).access_token,a=e.auth2.currentUser.get().getAuthResponse(!0).id_token;r.id=o.getId(),r.name=o.getName(),r.email=o.getEmail(),r.photoUrl=o.getImageUrl(),r.firstName=o.getGivenName(),r.lastName=o.getFamilyName(),r.authToken=s,r.idToken=a,r.response=o,t(r)}else n("No user is currently logged in with "+i.PROVIDER_ID)}))}},{key:"signIn",value:function(e){var t=this,i=Object.assign(Object.assign({},this.initOptions),e);return new Promise((function(n,r){(i&&i.offline_access?t.auth2.grantOfflineAccess(e):t.auth2.signIn(e)).then((function(e){var i=new I;if(e&&e.code)i.authorizationCode=e.code;else{var r=t.auth2.currentUser.get().getBasicProfile(),o=t.auth2.currentUser.get().getAuthResponse(!0).access_token,s=t.auth2.currentUser.get().getAuthResponse(!0).id_token;i.id=r.getId(),i.name=r.getName(),i.email=r.getEmail(),i.photoUrl=r.getImageUrl(),i.firstName=r.getGivenName(),i.lastName=r.getFamilyName(),i.authToken=o,i.idToken=s,i.response=r}n(i)}),(function(e){r(e)})).catch((function(e){r(e)}))}))}},{key:"signOut",value:function(e){var t=this;return new Promise((function(i,n){(e?t.auth2.disconnect():t.auth2.signOut()).then((function(e){e?n(e):i()})).catch((function(e){n(e)}))}))}}]),i}(k);return e.PROVIDER_ID="GOOGLE",e}(),O=function(){var e=function(e){_inherits(i,e);var t=_createSuper(i);function i(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scope:"email,public_profile",locale:"en_US",fields:"name,email,picture,first_name,last_name",version:"v4.0"};return _classCallCheck(this,i),(n=t.call(this)).clientId=e,n.initOptions=r,n}return _createClass(i,[{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){e.loadScript(i.PROVIDER_ID,"//connect.facebook.net/".concat(e.initOptions.locale,"/sdk.js"),(function(){FB.init({appId:e.clientId,autoLogAppEvents:!0,cookie
1:!0,xfbml:!0,version:e.initOptions.version}),t()}))}))}},{key:"getLoginStatus",value:function(){var e=this;return new Promise((function(t,n){FB.getLoginStatus((function(r){if("connected"===r.status){var o=r.authResponse;FB.api("/me?fields="+e.initOptions.fields,(function(e){var i=new I;i.id=e.id,i.name=e.name,i.email=e.email,i.photoUrl="https://graph.facebook.com/"+e.id+"/picture?type=normal",i.firstName=e.first_name,i.lastName=e.last_name,i.authToken=o.accessToken,i.response=e,t(i)}))}else n("No user is currently logged in with "+i.PROVIDER_ID)}))}))}},{key:"signIn",value:function(e){var t=Object.assign(Object.assign({},this.initOptions),e);return new Promise((function(e,i){FB.login((function(n){if(n.authResponse){var r=n.authResponse;FB.api("/me?fields="+t.fields,(function(t){var i=new I;i.id=t.id,i.name=t.name,i.email=t.email,i.photoUrl="https://graph.facebook.com/"+t.id+"/picture?type=normal",i.firstName=t.first_name,i.lastName=t.last_name,i.authToken=r.accessToken,i.response=t,e(i)}))}else i("User cancelled login or did not fully authorize.")}),t)}))}},{key:"signOut",value:function(){return new Promise((function(e,t){FB.logout((function(t){e()}))}))}}]),i}(k);return e.PROVIDER_ID="FACEBOOK",e}(),P=i("3Pt+"),N=i("5eHb"),x=i("7dP1"),R=i("OiFK"),E=["email"];function z(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Required field"),T.Sb())}function D(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Invalid email"),T.Sb())}function K(e,t){if(1&e&&(T.Tb(0,"div",43),T.Ic(1,z,2,0,"div",44),T.Ic(2,D,2,0,"div",44),T.Sb()),2&e){var i=T.hc();T.zb(1),T.oc("ngIf",i.formControls.email.errors.required),T.zb(1),T.oc("ngIf",i.formControls.email.errors.email)}}function L(e,t){if(1&e){var i=T.Ub();T.Tb(0,"i",45),T.fc("click",(function(){return T.Bc(i),T.hc().togglePasswordType()})),T.Sb()}}function M(e,t){if(1&e){var i=T.Ub();T.Tb(0,"i",46),T.fc("click",(function(){return T.Bc(i),T.hc().togglePasswordType()})),T.Sb()}}function j(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Required field"),T.Sb())}function q(e,t){if(1&e&&(T.Tb(0,"div",43),T.Ic(1,j,2,0,"div",44),T.Sb()),2&e){var i=T.hc();T.zb(1),T.oc("ngIf",i.formControls.password.errors.required)}}var U,B=function(e){return{"is-invalid":e}},G=function(){return{standalone:!0}},F=((U=function(){function e(t,i,n,r,o,s){_classCallCheck(this,e),this.formBuilder=t,this.toastr=i,this.authService=n,this.router=r,this.utils=o,this.socialService=s,this.passwordType=!1,this.loading=!1,this.submitted=!1,this.isRememberMe=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.utils.getItem("currentUser")&&this.router.navigate(["/analysis"]),this.form=this.formBuilder.group({email:["",[P.w.required,P.w.email]],password:["",P.w.required]})}},{key:"togglePasswordType",value:function(){this.passwordType=!this.passwordType}},{key:"signInWithGoogle",value:function(){var e=this;this.socialService.signIn(C.PROVIDER_ID).then((function(t){e.authService.socialMediaLogin({email:t.email,social_media_id:t.id}).subscribe((function(t){200!==t.status||t.error?e.toastr.error("",t.message):(e.toastr.success("",t.message),e.utils.setItem("currentUser",t.data),t.data.user.profile_status?e.router.navigate(["/analysis"]):e.router.navigate(["/profile"],{queryParams:{action:"edit"}})),e.loading=!1,e.submitted=!1}),(function(t){e.loading=!1,e.submitted=!1,e.toastr.error("","Something went wrong. Please try again. ")}))}),(function(e){console.log(e)}))}},{key:"signInWithFB",value:function(){var e=this;this.socialService.signIn(O.PROVIDER_ID).then((function(t){e.authService.socialMediaLogin({email:t.email,social_media_id:t.id}).subscribe((function(t){200!==t.status||t.error?e.toastr.error("",t.message):(e.toastr.success("",t.message),e.utils.setItem("currentUser",t.data),t.data.user.profile_status?e.router.navigate(["/analysis"]):e.router.navigate(["/profile"],{queryParams:{action:"edit"}})),e.loading=!1,e.submitted=!1}),(function(t){e.loading=!1,e.submitted=!1,e.toastr.error("","Something went wrong. Please try again. ")}))}),(function(e){console.log(e)}))}},{key:"toggleRememberMe",value:function(e){this.isRememberMe=!!e.target.checked}},{key:"onSubmit",value:function(){var e=this;this.submitted=!0,this.form.valid&&(this.loading=!0,this.authService.login({email:this.formControls.email.value,password:this.formControls.password.value}).subscribe((function(t){200!==t.status||t.error?(e.toastr.error("",t.message),e.loading=!1,e.submitted=!1):(e.utils.setItem("currentUser",t.data),e.toastr.success("Success!",t.message),t.data.user.profile_status?e.router.navigate(["/analysis"]):e.router.navigate(["/profile"],{queryParams:{action:"edit"}}),e.isRememberMe?e.utils.setItem("rememberMeData",{isRememberMe:!0,email:e.formControls.email.value,password:e.formControls.password.value}):e.utils.getItem("rememberMeData")&&e.utils.removeItem("rememberMeData"),e.loading=!1,e.submitted=!1)}),(function(t){e.loading=!1,e.submitted=!1})))}},{key:"formControls",get:function(){return this.form.controls}}]),e}()).\u0275fac=function(e){return new(e||U)(T.Nb(P.e),T.Nb(N.b),T.Nb(x.a),T.Nb(a.f),T.Nb(R.a),T.Nb(S))},U.\u0275cmp=T.Hb({type:U,selectors:[["app-login"]],viewQuery:function(e,t){var i;1&e&&T.Pc(E,!0),2&e&&T.xc(i=T.gc())&&(t.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(e,t){1&e&&(T.Tb(0,"div",0),T.Tb(1,"div",1),T.Tb(2,"div",2),T.Ob(3,"div",3),T.Sb(),T.Tb(4,"div",4),T.Tb(5,"div",5),T.Tb(6,"div",6),T.Tb(7,"h2",7),T.Kc(8,"Login"),T.Sb(),T.Tb(9,"h2",8),T.Tb(10,"span",9),T.Kc(11,"Hello, "),T.Sb(),T.Tb(12,"span",10),T.Kc(13,"Welcome!"),T.Sb(),T.Sb(),T.Tb(14,"form",11),T.fc("ngSubmit",(function(){return t.onSubmit()})),T.Tb(15,"div",12),T.Tb(16,"label"),T.Kc(17,"EMAIL"),T.Sb(),T.Ob(18,"input",13),T.Ic(19,K,3,2,"div",14),T.Sb(),T.Tb(20,"div",12),T.Tb(21,"label"),T.Kc(22,"PASSWORD"),T.Sb(),T.Tb(23,"div",15),T.Ob(24,"input",16),T.Tb(25,"div",17),T.Tb(26,"span",18),T.Ic(27,L,1,0,"i",19),T.Ic(28,M,1,0,"i",20),T.Sb(),T.Sb(),T.Sb(),T.Ic(29,q,2,1,"div",14),T.Sb(),T.Tb(30,"div",21),T.Tb(31,"div",22),T.Tb(32,"div",23),T.Tb(33,"input",24),T.fc("ngModelChange",(function(e){return t.isRememberMe=e}))("change",(function(e){return t.toggleRememberMe(e)})),T.Sb(),T.Tb(34,"label",25),T.Kc(35,"Keep me signed in"),T.Sb(),T.Sb(),T.Sb(),T.Tb(36,"div",26),T.Tb(37,"a",27),T.Kc(38," Forgot Password? "),T.Sb(),T.Sb(),T.Ob(39,"div",28),T.Sb(),T.Tb(40,"div",29),T.Tb(41,"button",30),T.Kc(42," Login "),T.Sb(),T.Sb(),T.Tb(43,"div",31),T.Ob(44,"div",32),T.Tb(45,"span",33),T.Kc(46,"OR"),T.Sb(),T.Ob(47,"div",34),T.Sb(),T.Tb(48,"div",35),T.Tb(49,"a",36),T.fc("click",(function(){return t.signInWithGoogle()})),T.Ob(50,"i",37),T.Tb(51,"span",38),T.Kc(52,"Login with Google"),T.Sb(),T.Sb(),T.Tb(53,"a",39),T.fc("click",(function(){return t.signInWithFB()})),T.Ob(54,"i",40),T.Tb(55,"span",38),T.Kc(56,"Login with Facebook"),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Tb(57,"div",41),T.Tb(58,"p",9),T.Kc(59," Don\u2019t have an account yet? "),T.Tb(60,"a",42),T.Kc(61,"Sign up now"),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb()),2&e&&(T.zb(14),T.oc("formGroup",t.form),T.zb(5),T.oc("ngIf",t.submitted&&t.formControls.email.errors),T.zb(4),T.oc("ngClass",T.tc(11,B,t.submitted&&t.formControls.password.errors)),T.zb(1),T.oc("type",t.passwordType?"text":"password")("ngClass",T.tc(13,B,t.submitted&&t.formControls.password.errors)),T.zb(3),T.oc("ngIf",!t.passwordType),T.zb(1),T.oc("ngIf",t.passwordType),T.zb(1),T.oc("ngIf",t.submitted&&t.formControls.password.errors),T.zb(4),T.oc("ngModel",t.isRememberMe)("ngModelOptions",T.sc(15,G)),T.zb(8),T.oc("disabled",t.form.invalid))},directives:[P.y,P.p,P.j,P.b,P.o,P.h,o.m,o.k,P.a,P.q,a.h],styles:[""]}),U);function A(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Required field"),T.Sb())}function V(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Invalid email"),T.Sb())}function W(e,t){if(1&e&&(T.Tb(0,"div",19),T.Ic(1,A,2,0,"div",20),T.Ic(2,V,2,0,"div",20),T.Sb()),2&e){var i=T.hc();T.zb(1),T.oc("ngIf",i.formControls.email.errors.required),T.zb(1),T.oc("ngIf",i.formControls.email.errors.email)}}var Y,H=function(){return["/auth/login"]},Z=((Y=function(){function e(t,i,n,r,o,s){_classCallCheck(this,e),this.formBuilder=t,this.route=i,this.router=n,this.authService=r,this.toastr=o,this.utils=s,this.loading=!1,this.submitted=!1}return _createClass(e,[{key:"ngOnInit",value:function(){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()}},{key:"onSubmit",value:function(){var e=this;if(this.submitted=!0,this.form.valid){this.loading=!0;var t={email:this.formControls.email.value};this.authService.forgotPassword(t).subscribe((function(i){200!==i.status||i.error?(e.toastr.error("",i.message),e.loading=!1,e.submitted=!1):(e.utils.setItem("userEmail",t.email),e.toastr.success("Success!",i.message),e.router.navigate(["/auth/verify-otp"],{queryParams:{action:"edit"}}),e.loading=!1,e.submitted=!1)}),(function(t){e.loading=!1,e.submitted=!1}))}}},{key:"formControls",get:function(){return this.form.controls}}]),e}()).\u0275fac=function(e){return new(e||Y)(T.Nb(P.e),T.Nb(a.a),T.Nb(a.f),T.Nb(x.a),T.Nb(N.b),T.Nb(R.a))},Y.\u0275cmp=T.Hb({type:Y,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","invali
1d-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(e,t){1&e&&(T.Tb(0,"div",0),T.Tb(1,"div",1),T.Tb(2,"div",2),T.Ob(3,"div",3),T.Sb(),T.Tb(4,"div",4),T.Tb(5,"div",5),T.Tb(6,"div",6),T.Tb(7,"h2",7),T.Kc(8,"Forgot Password"),T.Sb(),T.Tb(9,"h2",8),T.Kc(10,"Please enter your email"),T.Sb(),T.Tb(11,"form",9),T.fc("ngSubmit",(function(){return t.onSubmit()})),T.Tb(12,"div",10),T.Tb(13,"label",11),T.Kc(14,"Email"),T.Sb(),T.Ob(15,"input",12),T.Ic(16,W,3,2,"div",13),T.Sb(),T.Tb(17,"div",14),T.Tb(18,"button",15),T.Kc(19," Continue "),T.Sb(),T.Sb(),T.Sb(),T.Tb(20,"div",16),T.Tb(21,"p",17),T.Kc(22," Don\u2019t have an account yet? "),T.Tb(23,"a",18),T.Kc(24," Login "),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb()),2&e&&(T.zb(11),T.oc("formGroup",t.form),T.zb(5),T.oc("ngIf",t.submitted&&t.formControls.email.errors),T.zb(2),T.oc("disabled",t.form.invalid),T.zb(5),T.oc("routerLink",T.sc(4,H)))},directives:[P.y,P.p,P.j,P.b,P.o,P.h,o.m,a.h],styles:[""]}),Y),J=i("eEKJ");function X(e,t){if(1&e){var i=T.Ub();T.Tb(0,"i",23),T.fc("click",(function(){return T.Bc(i),T.hc().togglePasswordType()})),T.Sb()}}function Q(e,t){if(1&e){var i=T.Ub();T.Tb(0,"i",24),T.fc("click",(function(){return T.Bc(i),T.hc().togglePasswordType()})),T.Sb()}}function $(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Required field"),T.Sb())}function ee(e,t){if(1&e&&(T.Tb(0,"div",25),T.Ic(1,$,2,0,"div",26),T.Sb()),2&e){var i=T.hc();T.zb(1),T.oc("ngIf",i.formControls.newPassword.errors.required)}}function te(e,t){if(1&e){var i=T.Ub();T.Tb(0,"i",23),T.fc("click",(function(){return T.Bc(i),T.hc().togglePasswordConfirmType()})),T.Sb()}}function ie(e,t){if(1&e){var i=T.Ub();T.Tb(0,"i",24),T.fc("click",(function(){return T.Bc(i),T.hc().togglePasswordConfirmType()})),T.Sb()}}function ne(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1," Required field "),T.Sb())}function re(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1," Password mismatch "),T.Sb())}function oe(e,t){if(1&e&&(T.Tb(0,"div",25),T.Ic(1,ne,2,0,"div",26),T.Ic(2,re,2,0,"div",26),T.Sb()),2&e){var i=T.hc();T.zb(1),T.oc("ngIf",i.formControls.confirmNewPassword.errors.required),T.zb(1),T.oc("ngIf",i.formControls.confirmNewPassword.errors.MatchPassword)}}var se,ae=function(e){return{"is-invalid":e}},ce=((se=function(){function e(t,i,n,r,o,s,a){_classCallCheck(this,e),this.formBuilder=t,this.route=i,this.router=n,this.authService=r,this.toastr=o,this.utils=s,this.activatedRoute=a,this.passwordType=!1,this.passwordConfirmType=!1,this.loading=!1,this.submitted=!1}return _createClass(e,[{key:"ngOnInit",value:function(){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()}},{key:"matchPassword",value:function(e){if(e.get("newPassword").value===e.get("confirmNewPassword").value)return null;e.get("confirmNewPassword").setErrors({MatchPassword:!0})}},{key:"onSubmit",value:function(){var e=this;if(this.submitted=!0,this.form.valid){var 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((function(t){200!==t.status||t.error?e.toastr.error(t.message):(e.utils.setItem("currentUser",t.data),e.toastr.success(t.message),t.data.user.profile_status?e.router.navigate(["/analysis"]):e.router.navigate(["/profile"],{queryParams:{action:e.formType}})),e.loading=!1,e.submitted=!1}),(function(t){e.loading=!1,e.submitted=!1})):this.authService.updateForgotPassword(t).subscribe((function(t){200!==t.status||t.error?e.toastr.error(t.message):(e.toastr.success(t.message),e.router.navigate(["auth/login"])),e.loading=!1,e.submitted=!1}),(function(t){e.loading=!1,e.submitted=!1}))}}},{key:"togglePasswordType",value:function(){this.passwordType=!this.passwordType}},{key:"togglePasswordConfirmType",value:function(){this.passwordConfirmType=!this.passwordConfirmType}},{key:"toggleConfirmPasswordType",value:function(){this.passwordConfirmType=!this.passwordConfirmType}},{key:"password",get:function(){return this.form.get("newPassword")}},{key:"formControls",get:function(){return this.form.controls}}]),e}()).\u0275fac=function(e){return new(e||se)(T.Nb(P.e),T.Nb(a.a),T.Nb(a.f),T.Nb(x.a),T.Nb(N.b),T.Nb(R.a),T.Nb(a.a))},se.\u0275cmp=T.Hb({type:se,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(e,t){1&e&&(T.Tb(0,"div",0),T.Tb(1,"div",1),T.Tb(2,"div",2),T.Ob(3,"div",3),T.Sb(),T.Tb(4,"div",4),T.Tb(5,"div",5),T.Tb(6,"div",6),T.Tb(7,"h2",7),T.Kc(8,"Create New Password"),T.Sb(),T.Tb(9,"p",8),T.Kc(10," Password must be minimum 8 characters including one uppercase letter and alphnumeric characters "),T.Sb(),T.Tb(11,"form",9),T.fc("ngSubmit",(function(){return t.onSubmit()})),T.Tb(12,"div",10),T.Tb(13,"label",11),T.Kc(14,"New password"),T.Sb(),T.Tb(15,"div",12),T.Ob(16,"input",13),T.Tb(17,"div",14),T.Tb(18,"span",15),T.Ic(19,X,1,0,"i",16),T.Ic(20,Q,1,0,"i",17),T.Sb(),T.Sb(),T.Sb(),T.Ob(21,"password-strength-meter",18),T.Ic(22,ee,2,1,"div",19),T.Sb(),T.Tb(23,"div",10),T.Tb(24,"label",11),T.Kc(25,"Confirm New Password"),T.Sb(),T.Tb(26,"div",12),T.Ob(27,"input",20),T.Tb(28,"div",14),T.Tb(29,"span",15),T.Ic(30,te,1,0,"i",16),T.Ic(31,ie,1,0,"i",17),T.Sb(),T.Sb(),T.Sb(),T.Ic(32,oe,3,2,"div",19),T.Sb(),T.Tb(33,"div",21),T.Tb(34,"button",22),T.Kc(35," Continue "),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb()),2&e&&(T.zb(11),T.oc("formGroup",t.form),T.zb(4),T.oc("ngClass",T.tc(15,ae,t.submitted&&t.formControls.newPassword.errors)),T.zb(1),T.oc("type",t.passwordType?"text":"password")("ngClass",T.tc(17,ae,t.submitted&&t.formControls.newPassword.errors)),T.zb(3),T.oc("ngIf",!t.passwordType),T.zb(1),T.oc("ngIf",t.passwordType),T.zb(1),T.oc("password",t.formControls.newPassword.value),T.zb(1),T.oc("ngIf",t.submitted&&t.formControls.newPassword.errors),T.zb(4),T.oc("ngClass",T.tc(19,ae,t.submitted&&t.formControls.confirmNewPassword.errors)),T.zb(1),T.oc("type",t.passwordConfirmType?"text":"password")("ngClass",T.tc(21,ae,t.submitted&&t.formControls.confirmNewPassword.errors)),T.zb(3),T.oc("ngIf",!t.passwordConfirmType),T.zb(1),T.oc("ngIf",t.passwordConfirmType),T.zb(1),T.oc("ngIf",t.submitted&&t.formControls.confirmNewPassword.errors),T.zb(2),T.oc("disabled",t.form.invalid))},directives:[P.y,P.p,P.j,o.k,P.b,P.o,P.h,o.m,J.a],styles:[""]}),se),ue=i("tmjD");function le(e,t){if(1&e&&(T.Rb(0),T.Ob(1,"span",2),T.Qb()),2&e){var i=T.hc();T.zb(1),T.oc("innerHTML",i.i.text,T.Cc)}}function fe(e,t){1&e&&T.Pb(0)}var de,be,me,he,pe=function(e){return{$implicit:e}},ge=function(e){return e[e.ing=0]="ing",e[e.pause=1]="pause",e[e.stop=2]="stop",e[e.done=3]="done",e}({}),ve=((he=function(){function e(t){_classCallCheck(this,e),this.ngZone=t,this.fns=[],this.commands=[],this.ing=!1}return _createClass(e,[{key:"start",value:function(){var e=this;!0!==this.ing&&(this.ing=!0,this.nextTime=+new Date,this.ngZone.runOutsideAngular((function(){e.process()})))}},{key:"process",value:function(){for(var e=this;this.commands.length;)this.commands.shift()();var t=+new Date-this.nextTime,i=1+Math.floor(t/100);t=100-t%100,this.nextTime+=100*i;for(var n=0,r=this.fns.length;n<r;n+=2){var o=this.fns[n+1];if(0===o)this.fns[n](i);else{o+=2*i-1;var s=Math.floor(o/20);s>0&&this.fns[n](s),this.fns[n+1]=o%20+1}}this.ing&&setTimeout((function(){return e.process()}),t)}},{key:"add",value:function(e,t){var i=this;return this.commands.push((function(){i.fns.push(e),i.fns.push(1e3===t?1:0),i.ing=!0})),this}},{key:"remove",value:function(e){var t=this;return this.commands.push((function(){var i=t.fns.indexOf(e);-1!==i&&t.fns.splice(i,2),t.ing=t.fns.length>0})),this}}]),e}()).\u0275fac=function(e){return new(e||he)(T.bc(T.z))},he.\u0275prov=T.Jb({token:he,factory:he.\u0275fac}),he),ye=((me=function e(t){var i=this;_classCallCheck(this,e),this.locale=t,this.demand=!1,this.leftTime=0,this.format="HH:mm:ss",this.timezone="+0000",this.formatDate=function(e){var t=e.date,n=e.formatStr,r=e.timezone;return Object(o.v)(new Date(t),n,i.locale,r||i.timezone||"+0000")}}).\u0275fac=function(e){return new(e||me)(T.bc(T.u))},me.\u0275prov=Object(T.Jb)({factory:function(){return new me(Object(T.bc)(T.u))},token:me,providedIn:"root"}),me),we=((be=function(){function e(t,i,n,r,o){_classCallCheck(this,e),this.locale=t,this.timer=i,this.defCog=n,this.cdr=r,this.ngZone=o,this.frequency=1e3,this._notify={},this.status=ge.ing,this.isDestroy=!1,this.i={},this.left=0,this.event=new T.n}return _createClass(e,[{key:"begin",value:function(){this.status=ge.ing,this.callEvent("start")}},{key:"restart",value:function(){this.status!==ge.stop&&this.destroy(),this.init(),this.callEvent("restart")}},{key:"stop",value:function(){this.status!==ge.stop&&(this.status=ge.stop,this.destroy(),this.callEvent("stop"))}},{key:"pause",value:function(){this.status!==ge.stop&&this.status!==ge.pause&&(this.status=ge.pause,this.callEvent("pause"))}},{key:"resume",value:function(){this.status!==ge.stop&&this.status===ge.pause&&(this.status=ge.ing,this.callEvent("resume"))}},{key:"callEvent",value:function(e){this.event.emit({action:e,left:this.left,status:this.status,text:this.i.text})}},{key:"init",value:function(){var e=this,t=this.locale,i=this.defCog,n=this.config=Object.assign(Object.assign(Object.assign({},new ye(t)),i),this.config),r=this.frequency=~n.format.indexOf("S")?100:1e3;this.status=n.demand?ge.pause:ge.ing,this.getLeft();var o=this.reflow;this.reflow=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.apply(e,[t,i])}
1,Array.isArray(n.notify)&&n.notify.forEach((function(t){if(t<1)throw new Error("The notify config must be a positive integer.");t*=1e3,e._notify[t-=t%r]=!0})),this.timer.add(this.reflow,r).start(),this.reflow(0,!0)}},{key:"destroy",value:function(){return this.timer.remove(this.reflow),this}},{key:"reflow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isDestroy){var n=this.status,r=this.config,o=this._notify;if(i||n===ge.ing){var s=this.left=this.left-this.frequency*t;s<1&&(s=0),this.i={value:s,text:r.formatDate({date:s,formatStr:r.format,timezone:r.timezone})},"function"==typeof r.prettyText&&(this.i.text=r.prettyText(this.i.text)),this.cdr.detectChanges(),(0===r.notify||o[s])&&this.ngZone.run((function(){e.callEvent("notify")})),0===s&&this.ngZone.run((function(){e.status=ge.done,e.callEvent("done"),e.destroy()}))}}}},{key:"getLeft",value:function(){var e=this.config,t=this.frequency,i=1e3*e.leftTime,n=e.stopTime;!i&&n&&(i=n-(new Date).getTime()),this.left=i-i%t}},{key:"ngOnInit",value:function(){this.init(),this.config.demand||this.begin()}},{key:"ngOnDestroy",value:function(){this.isDestroy=!0,this.destroy()}},{key:"ngOnChanges",value:function(e){e.config.firstChange||this.restart()}}]),e}()).\u0275fac=function(e){return new(e||be)(T.Nb(T.u),T.Nb(ve),T.Nb(ye),T.Nb(T.h),T.Nb(T.z))},be.\u0275cmp=T.Hb({type:be,selectors:[["countdown"]],hostVars:2,hostBindings:function(e,t){2&e&&T.Eb("count-down",!0)},inputs:{config:"config",render:"render"},outputs:{event:"event"},features:[T.xb],decls:2,vars:5,consts:[[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,t){1&e&&(T.Ic(0,le,2,1,"ng-container",0),T.Ic(1,fe,1,0,"ng-container",1)),2&e&&(T.oc("ngIf",!t.render),T.zb(1),T.oc("ngTemplateOutlet",t.render)("ngTemplateOutletContext",T.tc(3,pe,t.i)))},directives:[o.m,o.o],encapsulation:2,changeDetection:0}),be),Te=((de=function e(){_classCallCheck(this,e)}).\u0275mod=T.Lb({type:de}),de.\u0275inj=T.Kb({factory:function(e){return new(e||de)},providers:[ve],imports:[[o.b]]}),de),Se=["cd"];function _e(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Required field"),T.Sb())}function Ie(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Invalid Otp"),T.Sb())}function ke(e,t){if(1&e&&(T.Tb(0,"div",20),T.Ic(1,_e,2,0,"div",21),T.Ic(2,Ie,2,0,"div",21),T.Sb()),2&e){var i=T.hc();T.zb(1),T.oc("ngIf",i.formControls.otp.errors.required),T.zb(1),T.oc("ngIf",i.formControls.otp.errors.minlength)}}var Ce=function(){return{leftTime:60,format:"mm:ss"}};function Oe(e,t){if(1&e){var i=T.Ub();T.Rb(0),T.Tb(1,"countdown",22,23),T.fc("event",(function(e){return T.Bc(i),T.hc().handleEvent(e)})),T.Sb(),T.Qb()}2&e&&(T.zb(1),T.oc("config",T.sc(1,Ce)))}function Pe(e,t){if(1&e){var i=T.Ub();T.Tb(0,"a",24),T.fc("click",(function(){return T.Bc(i),T.hc().onResendOtp()})),T.Kc(1,"Resend OTP"),T.Sb()}}var Ne,xe=((Ne=function(){function e(t,i,n,r,o,s,a){_classCallCheck(this,e),this.route=t,this.router=i,this.authService=n,this.toastr=r,this.utils=o,this.activatedRoute=s,this.formBuilder=a,this.loading=!1,this.submitted=!1,this.isError=!1,this.errMessage="",this.hideCountDown=!1}return _createClass(e,[{key:"ngOnInit",value:function(){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()}},{key:"startOtpTimer",value:function(){var e;null===(e=this.countdown)||void 0===e||e.begin()}},{key:"handleEvent",value:function(e){console.log(e),"done"===e.action&&(this.hideCountDown=!0)}},{key:"onOtpChange",value:function(e){this.otpCode=e}},{key:"onResendOtp",value:function(){var e=this,t={email:this.userEmail};"new"===this.formType&&this.authService.generateEmailOtp(t).subscribe((function(t){console.log(t),200!==t.status||t.error?e.toastr.error("",t.message):(e.toastr.success("",t.message),e.hideCountDown=!1,e.startOtpTimer())}),(function(t){e.toastr.error("","Something went wrong. Please try again. ")})),"edit"===this.formType&&this.authService.resendEmailOtp(t).subscribe((function(t){console.log(t),200!==t.status||t.error?e.toastr.error("",t.message):(e.hideCountDown=!1,e.startOtpTimer())}),(function(t){e.loading=!1,e.submitted=!1,e.toastr.error("","Something went wrong. Please try again. ")}))}},{key:"onSubmit",value:function(){var e=this;this.submitted=!0,this.loading=!0,this.authService.verifyEmailOtp({otp:this.formControls.otp.value,email:this.userEmail}).subscribe((function(t){200!==t.status||t.error?e.toastr.error("",t.message):(e.utils.setItem("tempToken",t.data.temp_token),e.router.navigate(["/auth/new-password"],{queryParams:{action:e.formType}})),e.loading=!1}),(function(t){e.loading=!1,e.submitted=!1,e.toastr.error("","Something went wrong. Please try again. ")}))}},{key:"formControls",get:function(){return this.form.controls}}]),e}()).\u0275fac=function(e){return new(e||Ne)(T.Nb(a.a),T.Nb(a.f),T.Nb(x.a),T.Nb(N.b),T.Nb(R.a),T.Nb(a.a),T.Nb(P.e))},Ne.\u0275cmp=T.Hb({type:Ne,selectors:[["app-verify-otp"]],viewQuery:function(e,t){var i;1&e&&T.Pc(Se,!0),2&e&&T.xc(i=T.gc())&&(t.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(e,t){if(1&e&&(T.Tb(0,"div",0),T.Tb(1,"div",1),T.Tb(2,"div",2),T.Ob(3,"div",3),T.Sb(),T.Tb(4,"div",4),T.Tb(5,"div",5),T.Tb(6,"div",6),T.Tb(7,"h2",7),T.Kc(8,"FORGOT PASSWORD"),T.Sb(),T.Tb(9,"p",8),T.Kc(10,"ENTER SIX-DIGIT VERIFICATION CODE"),T.Sb(),T.Tb(11,"form",9),T.fc("ngSubmit",(function(){return t.onSubmit()})),T.Tb(12,"div",10),T.Tb(13,"label",11),T.Kc(14,"Enter CODE"),T.Sb(),T.Ob(15,"input",12),T.Ic(16,ke,3,2,"div",13),T.Sb(),T.Tb(17,"div",14),T.Tb(18,"button",15),T.Kc(19," Continue "),T.Sb(),T.Sb(),T.Sb(),T.Tb(20,"div",16),T.Tb(21,"p",17),T.Kc(22," Didn\u2019t receive a verification code? "),T.Sb(),T.Ic(23,Oe,3,2,"ng-container",18),T.Ic(24,Pe,2,0,"ng-template",null,19,T.Jc),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb()),2&e){var i=T.yc(25);T.zb(11),T.oc("formGroup",t.form),T.zb(5),T.oc("ngIf",t.submitted&&t.formControls.otp.errors),T.zb(2),T.oc("disabled",t.form.invalid),T.zb(5),T.oc("ngIf",!t.hideCountDown)("ngIfElse",i)}},directives:[P.y,P.p,P.j,P.b,ue.a,P.o,P.h,o.m,we],styles:[""]}),Ne);function Re(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Required field"),T.Sb())}function Ee(e,t){1&e&&(T.Tb(0,"div"),T.Kc(1,"Invalid email"),T.Sb())}function ze(e,t){if(1&e&&(T.Tb(0,"div",30),T.Ic(1,Re,2,0,"div",31),T.Ic(2,Ee,2,0,"div",31),T.Sb()),2&e){var i=T.hc();T.zb(1),T.oc("ngIf",i.formControls.email.errors.required),T.zb(1),T.oc("ngIf",i.formControls.email.errors.email)}}function De(e,t){1&e&&T.Ob(0,"span",32)}var Ke,Le,Me,je,qe,Ue=function(){return["/auth/login"]},Be=[{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",component:F},{path:"signup",component:(Ke=function(){function e(t,i,n,r,o,s){_classCallCheck(this,e),this.formBuilder=t,this.toastr=i,this.authService=n,this.router=r,this.utils=o,this.socialService=s,this.loading=!1,this.submitted=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.utils.getItem("currentUser")&&this.router.navigate(["/analysis"]),this.form=this.formBuilder.group({email:["",[P.w.required,P.w.email]]})}},{key:"signInWithGoogle",value:function(){var e=this;this.socialService.signIn(C.PROVIDER_ID).then((function(t){e.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((function(t){200!==t.status||t.error?e.toastr.error("",t.message):(e.toastr.success("",t.message),e.utils.setItem("currentUser",t.data),e.router.navigate(["/profile"],{queryParams:{action:"new"}})),e.loading=!1,e.submitted=!1}),(function(t){e.loading=!1,e.submitted=!1,e.toastr.error("","Something went wrong. Please try again. ")}))}),(function(e){console.log(e)}))}},{key:"signInWithFB",value:function(){var e=this;this.socialService.signIn(O.PROVIDER_ID).then((function(t){e.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((function(t){200!==t.status||t.error?e.toastr.error("",t.message):(e.toastr.success("",t.message),e.utils.setItem("currentUser",t.data),e.router.navigate(["/profile"],{queryParams:{action:"new"}})),e.loading=!1,e.submitted=!1}),(function(t){e.loading=!1,e.submitted=!1,e.toastr.error("","Something went wrong. Please try again. ")}))}),(function(e){console.log(e)}))}},{key:"onSubmit",value:function(){var e=this;if(this.submitted=!0,this.form.valid){this.loading=!0;var t={email:this.formControls.email.value};this.authService.generateEmailOtp(t).subscribe((function(i){200!==i.status||i.error?(e.toastr.error("",i.message),e.loading=!1,e.submitted=!1):(e.utils.setItem("userEmail",t.email),e.toastr.success("Success!",i.message),e.router.navigate(["/auth/verify-otp"],{queryParams:{action:"new"}}),e.loading=!1,e.submitted=!1)}),(function(t){e.loading=!1,e.submitted=!1}))}}},{key:"formControls",get:function(){return this.form.controls}}]),e}(),Ke.\u0275fac=function(e){return new(e||Ke)(T.Nb(P.e),T.Nb(N.b),T.Nb(x.a),T.Nb(a.f),T.Nb(R.a),T.Nb(S))},Ke.\u0275cmp=T.Hb({type:Ke,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(e,t){1&e&&(T.Tb(0,"div",0),T.Tb(1,"div",1),T.Tb(2,"div",2),T.Ob(3,"div",3),T.Sb(),T.Tb(4,"div",4),T.Tb(5,"div",5),T.Tb(6,"div",6),T.Tb(7,"h2",7),T.Kc(8,"Sign Up"),T.Sb(),T.Tb(9,"h2",8),T.Kc(10,"Hello, "),T.Tb(11,"span",9),T.Kc(12,"Welcome!"),T.Sb(),T.Sb(),T.Tb(13,"form",10),T.fc("ngSubmit",(function(){return t.onSubmit()})),T.Tb(14,"div",11),T.Tb(15,"label",12),T.Kc(16,"Email*"),T.Sb(),T.Ob(17,"input",13),T.Ic(18,ze,3,2,"div",14),T.Sb(),T.Tb(19,"div",15),T.Tb(20,"button",16),T.Ic(21,De,1,0,"span",17),T.Kc(22," Signup "),T.Sb(),T.Sb(),T.Tb(23,"div",18),T.Ob(24,"div",19),T.Tb(25,"span",20),T.Kc(26,"OR"),T.Sb(),T.Ob(27,"div",21),T.Sb(),T.Tb(28,"div",22),T.Tb(29,"a",23),T.fc("click",(function(){return t.signInWithGoogle()})),T.Ob(30,"i",24),T.Tb(31,"span",25),T.Kc(32,"Continue with Google"),T.Sb(),T.Sb(),T.Tb(33,"a",26),T.fc("click",(function(){return t.signInWithFB()})),T.Ob(34,"i",27),T.Tb(35,"span",25),T.Kc(36,"Continue with Facebook"),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Tb(37,"div",28),T.Tb(38,"p",9),T.Kc(39," Already have an account? "),T.Tb(40,"a",29),T.Kc(41,"Login now"),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb(),T.Sb()),2&e&&(T.zb(13),T.oc("formGroup",t.form),T.zb(5),T.oc("ngIf",t.submitted&&t.formControls.email.errors),T.zb(2),T.oc("disabled",t.form.invalid),T.zb(1),T.oc("ngIf",t.loading),T.zb(19),T.oc("routerLink",T.sc(5,Ue)))},directives:[P.y,P.p,P.j,P.b,P.o,P.h,o.m,a.h],styles:[""]}),Ke)},{path:"forgot-password",component:Z},{path:"new-password",component:ce},{path:"verify-otp",component:xe}],Ge=((je=function e(){_classCallCheck(this,e)}).\u0275mod=T.Lb({type:je}),je.\u0275inj=T.Kb({factory:function(e){return new(e||je)},imports:[[a.i.forChild(Be)],a.i]}),je),Fe=((Me=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e){return Object.keys(e)}}]),e}()).\u0275fac=function(e){return new(e||Me)},Me.\u0275pipe=T.Mb({name:"keys",type:Me,pure:!0}),Me),Ae=((Le=function e(){_classCallCheck(this,e)}).\u0275mod=T.Lb({type:Le}),Le.\u0275inj=T.Kb({factory:function(e){return new(e||Le)},providers:[Fe],imports:[[o.b,P.k,P.t]]}),Le),Ve=i("AytR"),We=((qe=function e(){_classCallCheck(this,e)}).\u0275mod=T.Lb({type:qe}),qe.\u0275inj=T.Kb({factory:function(e){return new(e||qe)},providers:[{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,providers:[{id:C.PROVIDER_ID,provider:new C(Ve.a.googleLoginProvider)},{id:O.PROVIDER_ID,provider:new O(Ve.a.facebookLoginProvider)}]}}],imports:[[o.b,s.a,Ge,Ae,J.b,_,Te]]}),qe)}}]);
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.