PageSourceSearch

https://naiya.ng/chunk-CCBJUKWT.js

js naiya.ng collected 2026-09-25 14:26:52 UTC 17,603 bytes, 1 lines download raw bytes

1import{b as v}from"./chunk-BHCDY3LZ.js";import{a as F}from"./chunk-ESERVLUD.js";import{a as z,b as S,d as E,g as f,h as Q}from"./chunk-CJQW5T6H.js";import{a as y}from"./chunk-JUR7AXAK.js";import"./chunk-P2JTKKFM.js";import{b as h}from"./chunk-NMUJVAUH.js";import{a as b,b as k}from"./chunk-7YOJ6LVA.js";import"./chunk-XOHOQGQY.js";import"./chunk-EHT7JLMA.js";import{c as x,e as w}from"./chunk-ZYKAYA2V.js";import{q as O}from"./chunk-YPPESSFD.js";import{$a as g,Kb as l,Lb as n,Mb as e,Nb as p,Nc as _,Y as r,Yb as C,db as d,eb as u,lc as o,na as s,ob as M}from"./chunk-CZ2XFELG.js";var I=(()=>{class c{constructor(){this.authService=r(h),this.route=r(x),this.router=r(w),this.notification=r(b),this.msg=r(k),this.authenticationService=r(h),this.resetPasswordModel=s({password:"",confirmPassword:""}),this.resetPasswordForm=z(this.resetPasswordModel,t=>{f(t.password,{message:"Password is required"}),f(t.confirmPassword,{message:"Confirm password is required"}),E(t.confirmPassword,({value:a,valueOf:i})=>{if(a()!==i(t.password))return{kind:"mismatch",message:"Passwords do not match"}})}),this.checkPassword=_(()=>{let t=this.resetPasswordModel().password,a=this.resetPasswordModel().confirmPassword;return t!==""&&a!==""&&t===a}),this.passwordVisible=s(!1),this.confirmPasswordVisible=s(!1),this.isLoading=s(!1),this.$refreshToken=v(this.authenticationService.refreshToken),this.route.queryParams.subscribe(t=>{this.email=t.email,this.token=t.token}),this.$refreshToken?.subscribe(t=>{this.refreshToken=t}),this.route.paramMap.subscribe(t=>{this.longUrl=t.get("id")})}resetPassword(){this.longUrl?this.authenticationService.getUrl(this.longUrl).subscribe({next:t=>{let a=t.data,i=new URLSearchParams(a),P=i.get("token"),m=i.get("email");this.token=P,this.email=m,this.executeResetPassword()},error:t=>{this.notification.error("Error","Invalid or expired reset link")}}):this.email&&this.token?this.executeResetPassword():this.notification.error("Error","Reset information missing. Please use the link from your email.")}executeResetPassword(){if(!this.checkPassword()){this.notification.error("Password not match","Make sure you confirm password matches password before updating");return}S(this.resetPasswordForm,async()=>{let t={email:this.email,newPassword:this.resetPasswordModel().password,refreshToken:this.token};return new Promise(a=>{this.isLoading.set(!0),this.authenticationService.resetPassword(t).subscribe({next:()=>{this.isLoading.set(!1),this.notification.success("Password changed","Your password has been changed successfully"),this.resetPasswordForm().reset(),this.router.navigate(["/login"]),a()},error:i=>{this.isLoading.set(!1),this.notification.error("failure","Failed to update new password"),this.resetPasswordForm().reset(),a()}})})})}static{this.\u0275fac=function(a){return new(a||c)}}static{this.\u0275cmp=M({type:c,selectors:[["app-reset-password"]],decls:43,vars:4,consts:[[1,"auth-page-container"],[1,"auth-main"],[1,"auth-glass-card"],[1,"auth-marketing-panel"],[1,"marketing-title"],[1,"marketing-text"],[1,"marketing-badges"],[1,"material-symbols-outlined","icon-badge"],[1,"marketing-download"],[1,"download-label"],["href","https://play.google.com/store/apps/details?id=com.naiya.naiya_mobile_app&hl=en","target","_blank",1,"play-store-link"],["ngSrc","assets/logo/google-play-image.png","alt","Get it on Google Play","width","135","height","40","priority",""],[1,"auth-form-panel"],[1,"form-title"],[1,"form-subtitle"],[1,"auth-form",3,"submit"],[1,"form-group"],["for","password",1,"form-label"],["type","password","size","large","id","password","placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",1,"auth-input-group",3,"formField"],["for","confirmPassword",1,"form-label"],["type","password","size","large","id","confirmPassword","placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",1,"auth-input-group",3,"formField"],["type","primary","nativeType","submit","size","large",1,"btn-auth-submit",3,"block","loading"],[1,"material-symbols-outlined","btn-arrow"],[1,"auth-footer-text"],["routerLink","/login",1,"auth-link-highlight"]],template:function(a,i){a&1&&(n(0,"div",0)(1,"main",1)(2,"div",2)(3,"div",3)(4,"h1",4),o(5,"Reset Your Password"),e(),n(6,"p",5),o(7,"Choose a strong, secure password to protect your account. Make sure it is at least 8 characters long and unique to Naiya."),e(),n(8,"div",6)(9,"span",7),o(10,"lock"),e(),n(11,"span",7),o(12,"password"),e(),n(13,"span",7),o(14,"shield"),e()(),n(15,"div",8)(16,"p",9),o(17,"Get the App"),e(),n(18,"a",10),p(19,"img",11),e()()(),n(20,"div",12)(21,"h2",13),o(22,"Set New Password"),e(),n(23,"p",14),o(24,"Enter your new secure password below"),e(),n(25,"form",15),C("submit",function(m){return i.resetPassword(),m.preventDefault()}),n(26,"div",16)(27,"label",17),o(28,"New Password"),e(),p(29,"app-input",18),d(),e(),n(30,"div",16)(31,"label",19),o(32,"Confirm Password"),e(),p(33,"app-input",20),d(),e(),n(34,"app-button",21)(35,"span"),o(36,"Reset Password"),e(),n(37,"span",22),o(38,"arrow_forward"),e()()(),n(39,"p",23),o(40," Want to try logging in again? "),n(41,"a",24),o(42,"Login"),e()()()()()()),a&2&&(g(29),l("formField",i.resetPasswordForm.password),u(),g(4),l("formField",i.resetPasswordForm.confirmPassword),u(),g(),l("block",!0)("loading",i.isLoading()))},dependencies:[Q,F,y,O],styles:["[_nghost-%COMP%]{display:block;margin-inline:-40px;margin-top:-30px}@media(max-width:500px){[_nghost-%COMP%]{margin-inline:-10px;margin-top:0}}.auth-page-container[_ngcontent-%COMP%]{min-height:100vh;width:100%;display:flex;flex-direction:column;position:relative;overflow:hidden;box-sizing:border-box;font-family:Quicksand,sans-serif}.auth-page-container[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}.auth-page-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif}.auth-page-container[_ngcontent-%COMP%]   .auth-header[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;width:100%;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;max-width:1280px;margin:0 auto}.auth-page-container[_ngcontent-%COMP%]   .auth-header[_ngcontent-%COMP%]   .brand-logo[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:24px;font-weight:700;color:#f90047;cursor:pointer;letter-spacing:-.5px;-webkit-user-select:none;user-select:none}.auth-page-container[_ngcontent-%COMP%]   .auth-main[_ngcontent-%COMP%]{flex-grow:1;display:flex;align-items:center;justify-content:center;position:relative;z-index:10;padding:6.5rem 1.5rem 4.5rem}.auth-page-container[_ngcontent-%COMP%]   .auth-glass-card[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.08);border-radius:16px;width:100%;max-width:960px;display:flex;overflow:hidden;min-height:560px;transition:all .3s ease}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-glass-card[_ngcontent-%COMP%]{flex-direction:column;max-width:440px;min-height:auto}}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]{width:50%;border-right:1px solid rgba(0,0,0,.08);padding:3.5rem 3rem;display:flex;flex-direction:column;justify-content:center}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]{display:none}}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-title[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:28px;font-weight:700;line-height:1.35;color:#1b1c1c;margin:0 0 1.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-text[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:15px;line-height:1.6;color:#5f5e5e;margin:0 0 2.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-badges[_ngcontent-%COMP%]{display:flex;gap:1.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-badges[_ngcontent-%COMP%]   .icon-badge[_ngcontent-%COMP%]{font-size:22px;color:#f90047;padding:.75rem;border-radius:50%;width:46px;height:46px;
1display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.16,1,.3,1);border:1px solid rgba(249,0,71,.08)}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-badges[_ngcontent-%COMP%]   .icon-badge[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 6px 16px -4px #f9004726}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-download[_ngcontent-%COMP%]{margin-top:2.5rem;display:flex;flex-direction:column;gap:.5rem}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-download[_ngcontent-%COMP%]   .download-label[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:13px;font-weight:600;color:#8c8c8c;margin:0;text-transform:uppercase;letter-spacing:.05em}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-download[_ngcontent-%COMP%]   .play-store-link[_ngcontent-%COMP%]{display:inline-block;transition:transform .2s ease,opacity .2s ease;line-height:0;align-self:flex-start}.auth-page-container[_ngcontent-%COMP%]   .auth-marketing-panel[_ngcontent-%COMP%]   .marketing-download[_ngcontent-%COMP%]   .play-store-link[_ngcontent-%COMP%]:hover{transform:scale(1.05);opacity:.9}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]{width:50%;padding:3.5rem;display:flex;flex-direction:column;justify-content:center}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]{width:100%;padding:3rem 2rem}}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .form-title[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:24px;font-weight:700;color:#1b1c1c;margin:0 0 .25rem;letter-spacing:-.3px}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .form-subtitle[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:14px;color:#5f5e5e;margin:0 0 2rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]{margin-bottom:1.5rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]   .btn-social-google[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;padding:.75rem 1rem;border:1.5px solid rgba(0,0,0,.08);border-radius:8px;background:transparent;cursor:pointer;font-family:Quicksand,sans-serif;font-size:14px;font-weight:600;color:#1c1b1b;transition:all .2s cubic-bezier(.16,1,.3,1)}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]   .btn-social-google[_ngcontent-%COMP%]:hover{border-color:#f9004733;box-shadow:0 4px 12px #00000008;transform:translateY(-.5px)}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .social-login-container[_ngcontent-%COMP%]   .btn-social-google[_ngcontent-%COMP%]   .google-svg[_ngcontent-%COMP%]{width:18px;height:18px}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-divider[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:1.75rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-divider[_ngcontent-%COMP%]   .divider-line[_ngcontent-%COMP%]{flex-grow:1;height:1px;background:#00000014}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-divider[_ngcontent-%COMP%]   .divider-text[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.05em;color:#5f5e5e}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.25rem}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.4rem;width:100%}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-weight:600;font-size:13px;color:#1b1c1c}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input-group[_ngcontent-%COMP%]{width:100%!important}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%], .auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input-group[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%]{cursor:pointer;color:#5f5e5e;font-size:16px;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%]:hover, .auth-
1page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-input-group[_ngcontent-%COMP%]   .pwd-toggle-icon[_ngcontent-%COMP%]:hover{color:#f90047}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .auth-error-msg[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:12px;color:#ba1a1a;margin-top:.15rem;display:inline-block}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .btn-auth-submit[_ngcontent-%COMP%]{margin-top:.5rem;width:100%!important}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-form[_ngcontent-%COMP%]   .btn-auth-submit[_ngcontent-%COMP%]   .btn-arrow[_ngcontent-%COMP%]{font-size:18px;line-height:1}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-footer-text[_ngcontent-%COMP%]{text-align:center;font-family:Quicksand,sans-serif;font-size:14px;color:#5f5e5e;margin:1.75rem 0 0}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-footer-text[_ngcontent-%COMP%]   .auth-link-highlight[_ngcontent-%COMP%]{color:#f90047;font-weight:600;text-decoration:none;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-footer-text[_ngcontent-%COMP%]   .auth-link-highlight[_ngcontent-%COMP%]:hover{color:#d6003b;text-decoration:underline}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-link-sm[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:12px;color:#f90047;font-weight:500;text-decoration:none;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-form-panel[_ngcontent-%COMP%]   .auth-link-sm[_ngcontent-%COMP%]:hover{color:#d6003b;text-decoration:underline}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]{width:100%;max-width:1280px;margin:auto auto 0;padding:2rem;display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(0,0,0,.05);position:relative;z-index:10;flex-wrap:wrap;gap:1rem}@media(max-width:768px){.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]{flex-direction:column;text-align:center;padding:1.5rem}}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-logo[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-weight:700;font-size:18px;color:#5f5e5e;letter-spacing:-.3px}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]{display:flex;gap:1.5rem}@media(max-width:480px){.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]{flex-direction:column;gap:.75rem}}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]   .footer-link[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:13px;color:#5f5e5e;text-decoration:none;transition:color .2s}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-links[_ngcontent-%COMP%]   .footer-link[_ngcontent-%COMP%]:hover{color:#f90047;text-decoration:underline}.auth-page-container[_ngcontent-%COMP%]   .auth-footer[_ngcontent-%COMP%]   .footer-copyright[_ngcontent-%COMP%]{font-family:Quicksand,sans-serif;font-size:12px;color:#8c8c8c}"]})}}return c})();export{I as ResetPasswordComponent};

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.