1import{a as S}from"./chunk-62CNE45Y.js";import{b as C,d as M,e as x,g as P,i as O,j as h,t as w,x as k}from"./chunk-QMD7WUJN.js";import{b as _}from"./chunk-CLDP5V4Z.js";import"./chunk-ITP6HU6G.js";import"./chunk-HKOF574R.js";import"./chunk-RLFGIP2G.js";import{Eb as p,Ia as s,Ra as m,Rb as d,Wa as g,Wb as u,Xb as b,Yb as f,qb as a,rb as r,sb as c}from"./chunk-76DBLNU7.js";import{e as v}from"./chunk-EQDQRRRY.js";var o=v(S());var F=(()=>{class i{constructor(t){this.service=t,this.mobileno="",this.isSubmitting=!1}submitOTP(){let t=String(this.mobileno??"").trim();if(!t){o.default.fire({icon:"warning",title:"Mobile Number Required",text:"Please enter your mobile number.",confirmButtonText:"OK",confirmButtonColor:"#b68d40"});return}if(!/^\d{10}$/.test(t)){o.default.fire({icon:"warning",title:"Invalid Mobile Number",text:"Please enter a valid 10-digit mobile number.",confirmButtonText:"OK",confirmButtonColor:"#b68d40"});return}this.isSubmitting=!0,o.default.fire({title:"Please Wait",text:"We are processing your request...",allowOutsideClick:!1,allowEscapeKey:!1,showConfirmButton:!1,didOpen:()=>{o.default.showLoading()}}),this.service.resetpasssword("wp-json/wp/v2/users/lostpassword",{user_login:t}).subscribe({next:e=>{this.isSubmitting=!1;let n=e?.masked_email??e?.data?.masked_email??"";o.default.fire({icon:"success",title:"Reset Link Sent!",html:n?` 2 <p> 3 We've sent a password reset link to your 4 registered email address: 5 </p> 6 7 <strong style="font-size: 18px;"> 8 ${n} 9 </strong> 10 11 <p style="margin-top: 15px;"> 12 Please check your inbox and follow the link 13 to reset your password. 14 </p> 15 `:` 16 <p> 17 We've sent a password reset link to your 18 registered email address. 19 </p> 20 <p>Please check your inbox to continue.</p> 21 `,confirmButtonText:"OK",confirmButtonColor:"#b68d40"})},error:e=>{console.error("Forgot password error:",e),this.isSubmitting=!1;let n=e?.error?.message??"Please try again after some time.";o.default.fire({icon:"error",title:"Unable to Reset Password",text:n,confirmButtonText:"Try Again",confirmButtonColor:"#b68d40"})}})}static{this.\u0275fac=function(e){return new(e||i)(m(_))}}static{this.\u0275cmp=g({type:i,selectors:[["app-forgetpassword"]],decls:17,vars:1,consts:[[1,"login"],[1,"login_bg__img"],[1,"container"],[1,"row"],[1,"col-12","col-sm-12","col-xs-12","col-md-6","col-lg-6","col-xl-6"],[1,"form__container"],[1,"form-login-parent"],[1,"mb-3"],["for","exampleInputEmail1",1,"form-label"],["type","tel","inputmode","numeric","name","mobileno","id","exampleInputnumber1","aria-describedby","numberHelp","placeholder","Enter mobile number","maxlength","10",1,"form-control",3,"ngModelChange","ngModel"],[1,"col-sm-6","col-md-6","col-lg-6"],["type","button",1,"btn","btn-primary","login-btn",3,"click"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"form",6)(7,"div",7)(8,"label",8),d(9,"Mobile Number"),r(),a(10,"input",9),f("ngModelChange",function(l){return b(n.mobileno,l)||(n.mobileno=l),l}),r()(),a(11,"div",3)(12,"div",10)(13,"button",11),p("click",function(){return n.submitOTP()}),d(14," SUBMIT "),r()(),c(15,"div",10),r()()()(),c(16,"div",4),r()()()()),e&2&&(s(10),u("ngModel",n.mobileno))},dependencies:[k,h,C,M,x,w,O,P],styles:[".form-login-parent[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border-color:#d1ba50!important;border-radius:8px}.form-login-parent[_ngcontent-%COMP%] .login-btn[_ngcontent-%COMP%]{width:100%;border-radius:8px;background-color:#991e32;border-color:#991e32;color:#fff;text-transform:uppercase}.form-login-parent[_ngcontent-%COMP%] .otp-btn[_ngcontent-%COMP%]{width:100%;border-radius:8px;background-color:#b89230;border-color:#b89230;color:#fff;text-transform:uppercase}.form-login-parent[_ngcontent-%COMP%] .forget-pwd[_ngcontent-%COMP%]{text-align:right;margin-bottom:15px}.form-login-parent[_ngcontent-%COMP%] .forget-pwd[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#7a7a7a!important;font-weight:600;font-size:14px}.login_bread_crump[_ngcontent-%COMP%]{padding:30px 30px 30px 0;background:#9a1d2fdb;background-blend-mode:color-burn}.login_bread_crump[_ngcontent-%COMP%] .title__color[_ngcontent-%COMP%]{color:#fff}button[_ngcontent-%COMP%]:nth-child(3){text-transform:capitalize;margin-top:15px}button[_ngcontent-%COMP%]:nth-child(4){margin-top:15px;--background: #3b5998;color:#fff}button[_ngcontent-%COMP%]:nth-child(5){color:#000;margin-top:20px;--border-color: black;--border-width: thin}.login_btn[_ngcontent-%COMP%]{--ion-color-primary: #274e9a !important}.form__container[_ngcontent-%COMP%]{margin:9em auto;width:100%;background:#fff;padding:40px;border-radius:8px;border:1px solid #edb704}form[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%]{--background: #ffffff}.otp[_ngcontent-%COMP%]{margin-top:10px}.log-otp[_ngcontent-%COMP%]{background:#b89230;border-radius:5px}.signup[_ngcontent-%COMP%]{background:#9a1d2f;border-radius:5px}.otp[_ngcontent-%COMP%] ion-col[_ngcontent-%COMP%]{padding-left:0}
21.bread_crump[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .bread_crump[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}@media(max-width:380px){.form__container[_ngcontent-%COMP%]{padding:2em}}.form__container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-top:0;text-align:center;color:#991e32;margin-bottom:20px}.form__container[_ngcontent-%COMP%]{padding-top:35px}.login_bg__img[_ngcontent-%COMP%]{background:url(/imgs/login-page-img.a08dde7a7ce0ef75d4ab.jpg);background-position:center;background-repeat:no-repeat;background-size:cover;padding:150px 0}.login__form[_ngcontent-%COMP%]{display:none}"]})}}return i})();export{F as ForgetpasswordComponent};
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.