1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([["src_app_pages_reset-password_reset-password_module_ts"],{35305(J,h,r){r.d(h,{ResetPasswordPageModule:()=>z});var g=r(79748),i=r(496),d=r(23123),_=r(46264),v=r(20948),p=r(14876),f=r(45312),w=r(38299);const m=(0,r(14070).F3)("AppLauncher",{web:()=>r.e("node_modules_capacitor_app-launcher_dist_esm_web_js").then(r.bind(r,31715)).then(t=>new t.AppLauncherWeb)});var e=r(36124),c=r(66563),x=r(50698),M=r(29659),P=r(61811),b=r(385);const C=t=>({readle:t});function O(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.languageService.label.txt_forgot_password_cta)}}function k(t,s){1&t&&e.nrm(0,"ion-spinner",11)}function S(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"p"),e.EFF(2),e.k0s(),e.j41(3,"div",6)(4,"ion-item",7)(5,"ion-input",8),e.mxI("ngModelChange",function(o){c.eBV(n);const l=e.XpG();return e.DH7(l.inputEmail,o)||(l.inputEmail=o),c.Njj(o)}),e.k0s()()(),e.j41(6,"button",9),e.bIt("click",function(){c.eBV(n);const o=e.XpG();return c.Njj(o.sendLink())}),e.DNE(7,O,2,1,"span",3)(8,k,1,0,"ion-spinner",10),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(2),e.JRh(n.languageService.label.txt_forgot_password_text),e.R7$(3),e.R50("ngModel",n.inputEmail),e.Y8G("placeholder",n.languageService.label.txt_register_placeholder_email),e.BMQ("aria-label",n.languageService.label.txt_register_placeholder_email),e.R7$(2),e.Y8G("ngIf",!n.isPending),e.R7$(),e.Y8G("ngIf",n.isPending)}}function G(t,s){if(1&t&&(e.j41(0,"div",12),e.nrm(1,"ion-icon",13),e.j41(2,"h1"),e.EFF(3),e.k0s(),e.nrm(4,"p",14)(5,"p",14),e.k0s()),2&t){const n=e.XpG();e.R7$(3),e.JRh(n.languageService.label.txt_forgot_password_success_title),e.R7$(),e.Y8G("innerHTML",n.languageService.label.txt_forgot_password_succes_text,e.npT),e.R7$(),e.Y8G("innerHTML",n.languageService.label.txt_forgot_password_succes_note,e.npT)}}function $(t,s){1&t&&(e.j41(0,"div"),e.nrm(1,"ion-icon",22),e.k0s())}function j(t,s){1&t&&(e.j41(0,"div"),e.nrm(1,"ion-icon",23),e.k0s())}function E(t,s){if(1&t&&(e.j41(0,"div",24),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.languageService.label.txt_reset_password_title_repeat_error," ")}}function F(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.languageService.label.txt_reset_password_cta)}}function T(t,s){1&t&&e.nrm(0,"ion-spinner",11)}function y(t,s){if(1&t&&(e.j41(0,"p",25),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.languageService.label.txt_reset_password_error_readle)}}function I(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",15)(1,"h4"),e.EFF(2),e.k0s(),e.j41(3,"p"),e.EFF(4),e.k0s(),e.j41(5,"form",16)(6,"div",6)(7,"ion-item",17),e.nrm(8,"ion-input",18),e.DNE(9,$,2,0,"div",3)(10,j,2,0,"div",3),e.k0s(),e.j41(11,"ion-item",7),e.nrm(12,"ion-input",19),e.k0s()(),e.DNE(13,E,2,1,"div",20),e.k0s(),e.j41(14,"button",9),e.bIt("click",function(){c.eBV(n);const o=e.XpG();return c.Njj(o.resetPassword())}),e.DNE(15,F,2,1,"span",3)(16,T,1,0,"ion-spinner",10),e.k0s(),e.DNE(17,y,2,1,"p",21),e.k0s()}if(2&t){const n=e.XpG();e.R7$(2),e.JRh(n.languageService.label.txt_reset_password_title),e.R7$(2),e.SpI(" ",n.languageService.label.txt_reset_password_text," "),e.R7$(),e.Y8G("formGroup",n.passwordForm),e.R7$(3),e.Y8G("placeholder",n.languageService.label.txt_reset_password_placeholder_new),e.BMQ("aria-label",n.languageService.label.txt_reset_password_placeholder_new),e.R7$(),e.Y8G("ngIf",(null==n.password?null:n.password.touched)&&(null==n.password?null:n.password.valid)),e.R7$(),e.Y8G("ngIf",(null==n.password?null:n.password.touched)&&!(null!=n.password&&n.password.valid)),e.R7$(2),e.Y8G("placeholder",n.languageService.label.txt_reset_password_placeholder_repeat),e.BMQ("aria-label",n.languageService.label.txt_reset_password_placeholder_repeat),e.R7$(),e.Y8G("ngIf",n.isRepeatPasswordError),e.R7$(2),e.Y8G("ngIf",!n.isResetPending),e.R7$(),e.Y8G("ngIf",n.isResetPending),e.R7$(),e.Y8G("ngIf",n.isResetError)}}function Y(t,s){if(1&t&&(e.j41(0,"div",12),e.nrm(1,"ion-icon",13),e.j41(2,"h1"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.JRh(n.languageService.label.txt_reset_password_success_title),e.R7$(2),e.JRh(n.languageService.label.txt_reset_password_success_text)}}const X=[{path:"",component:(()=>{var t;class s{constructor(a,o,l,D,B,U){this.http=a,this.route=o,this.languageService=l,this.platform=D,this.navCtrl=B,this.formBuilder=U,this.isShowNewPassword=!1,this.isPending=!1,this.isSuccess=!1,this.isError=!1,this.isReset=!1,this.isResetPending=!1,this.isResetSuccess=!1,this.isResetError=!1,this.isRepeatPasswordError=!1,this.resetToken="",this.isReadle=!1,this.passwordForm=this.formBuilder.group({password:["",[i.k0.required,i.k0.minLength(8),i.k0.pattern(/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[\W])([a-zA-Z0-9\W]+)/)]],passwordRepeat:["",[]]},{validators:s.passwordMatchValidator}),this.route.queryParams.subscribe(u=>{void 0!==u.token&&(this.resetToken=u.token,this.isPending=!1,this.isSuccess=!1,this.isReset=!0,this.isResetPending=!1),u.readle&&(this.isReadle=!0)})}get password(){return this.passwordForm.get("password")}get passwordRepeat(){return this.passwordForm.get("passwordRepeat")}static passwordMatchValidator(a){const o=a.get("password"),l=a.get("passwordRepeat");return o.value!==l.value?{passwordMismatch:!0}:null}ionViewDidEnter(){w.gT.setCurrentScreen({screenName:"screen_reset_password"})}sendLink(){this.isPending=!0,this.http.post("".concat(f.c.api,"/user/forgot-password"),{email:this.inputEmail,userLanguage:this.languageService.target}).subscribe({next:()=>{(0,p.O)(500).subscribe(()=>{this.isPending=!1,this.isSuccess=!0})},error:()=>{(0,p.O)(500).subscribe(()=>{this.isPending=!1,this.isSuccess=!0})}})}resetPassword(){const a=this.password.value;
1a===this.passwordRepeat.value?this.passwordForm.invalid||(this.isResetPending=!0,this.http.post("".concat(f.c.api,"/user/reset-password"),{resetToken:this.resetToken,password:a}).subscribe({next:()=>{(0,p.O)(500).subscribe(()=>{this.isResetPending=!1,this.isReset=!1,this.isResetSuccess=!0,this.isResetError=!1})},error:l=>{(0,p.O)(2e3).subscribe(()=>{this.isPending=!1,this.isSuccess=!1,this.isReset=!0,this.isResetPending=!1,this.isResetError=!0}),console.log(l)}})):this.isRepeatPasswordError=!0}launchMailApp(){this.platform.is("ios")?m.openUrl({url:"com.apple.mobilemail://"}):this.platform.is("android")&&m.openUrl({url:"com.google.android.gm"})}goToLogin(){this.navCtrl.back()}}return(t=s).\u0275fac=function(a){return new(a||t)(e.rXU(x.Qq),e.rXU(M.nX),e.rXU(v.g),e.rXU(P.OD),e.rXU(P.q9),e.rXU(i.ze))},t.\u0275cmp=e.VBU({type:t,selectors:[["reset-password"]],standalone:!1,decls:7,vars:10,consts:[[3,"title","back","titleLeft"],["scroll-y","true",2,"position","relative"],[1,"container",3,"ngClass"],[4,"ngIf"],["class","wrapper-success",4,"ngIf"],["class","wrapper-reset",4,"ngIf"],[1,"control-item"],["lines","none"],["type","text",3,"ngModelChange","ngModel","placeholder"],[3,"click"],["name","crescent",4,"ngIf"],["name","crescent"],[1,"wrapper-success"],["name","checkmark-circle-outline"],[3,"innerHTML"],[1,"wrapper-reset"],[3,"formGroup"],["lines","none",2,"margin-bottom","10px"],["type","password","formControlName","password",3,"placeholder"],["type","password","formControlName","passwordRepeat",3,"placeholder"],["class","error","style","margin-bottom: 10px",4,"ngIf"],["class","error",4,"ngIf"],["name","checkmark-circle",1,"input-icon-valid",2,"margin-left","10px"],["name","close-circle",1,"input-icon-invalid",2,"margin-left","10px"],[1,"error",2,"margin-bottom","10px"],[1,"error"]],template:function(a,o){1&a&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"div",2),e.DNE(3,S,9,6,"div",3)(4,G,6,3,"div",4)(5,I,18,13,"div",5)(6,Y,6,2,"div",4),e.k0s()()),2&a&&(e.Y8G("title",o.languageService.label.txt_forgot_password_title)("back",!0)("titleLeft",!0),e.R7$(2),e.Y8G("ngClass",e.eq3(8,C,o.isReadle)),e.R7$(),e.Y8G("ngIf",!o.isReset&&!o.isSuccess&&!o.isResetSuccess),e.R7$(),e.Y8G("ngIf",o.isSuccess),e.R7$(),e.Y8G("ngIf",o.isReset),e.R7$(),e.Y8G("ngIf",o.isResetSuccess))},dependencies:[g.YU,g.bT,i.qT,i.BC,i.cb,i.vS,d.W9,d.iq,d.$w,d.uz,d.w2,d.Gw,b.l,i.j4,i.JD],styles:["ion-content[_ngcontent-%COMP%]{--background: var(--story-background-main)}.container[_ngcontent-%COMP%]{padding:20px;max-width:400px;margin:0 auto;display:flex;flex-direction:column;height:100%}.container[_ngcontent-%COMP%] .control-item[_ngcontent-%COMP%]{padding-bottom:12px;position:relative}.container[_ngcontent-%COMP%] .control-item[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{--background: var(--login-modal-input-background);color:var(--login-modal-input-font-color);box-shadow:0 0 3px rgba(0,0,0,.082);border-radius:12px}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;color:#666;font-size:16px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#fff;background-color:var(--ion-color-primary);font-family:var(--font-bold);border-radius:12px;padding:12px;text-align:center;margin:0 auto;width:100%;font-size:16px;min-height:40px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--ion-color-primary-darker);transition:all .3s}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] ion-spinner[_ngcontent-%COMP%]{height:14px;transform:scale(1.6);color:#fff}.container[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%]{text-align:center}.container[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:70px;color:var(--ion-color-primary);margin-bottom:30px}.container[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:26px;font-family:var(--font-bold);text-align:center;margin-top:unset}.container[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;color:var(--ion-color-primary);background-color:var(--ion-color-primary-light-hover);text-align:center;justify-content:center}.container[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{font-size:16px;color:var(--ion-color-primary);margin-left:10px;transform:scale(1.2);margin-bottom:unset}.container[_ngcontent-%COMP%] .wrapper-reset[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{font-family:var(--font-bold)}.container[_ngcontent-%COMP%] .wrapper-reset[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:left}.container.readle[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#12a686}.container.readle[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#17a589}.container.readle[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%] ion-icon[_ngcontent-%COMP%]{color:#12a686}.container.readle[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:rgba(18,166,134,.227)}.container.readle[_ngcontent-%COMP%] .wrapper-success[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:rgba(18,166,134,.318)}.input-icon-valid[_ngcontent-%COMP%]{color:var(--ion-color-primary);font-size:22px;margin-top:6px}.input-icon-invalid[_ngcontent-%COMP%]{color:#ef4444;font-size:22px;margin-top:6px}.error[_ngcontent-%COMP%]{font-size:12px;color:red}"]}),s})()}];let N=(()=>{var t;class s{}return(t=s).\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=c.G2t({imports:[_.iI.forChild(X),_.iI]}),s})();var L=r(55553);let z=(()=>{var t;class s{}return(t=s).\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=c.G2t({imports:[g.MD,i.YN,d.bv,N,L.h,i.X1]}),s})()}}]); 2//# sourceMappingURL=src_app_pages_reset-password_reset-password_module_ts.0999e4fcf7e46604.js.map
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.