1import{a as M}from"./chunk-YQSUIE7Q.js";import{c as T,e as f,g as B,h as k,l as be,m as O,p as D,s as L,v as G,w as R,x as we,y as V}from"./chunk-2R4AZB5W.js";import{a as ve}from"./chunk-HT2STO7B.js";import{i as J}from"./chunk-JCPUWVFC.js";import{b as Q}from"./chunk-MCQML6YT.js";import{a as v,b as ge}from"./chunk-XNXLFDZX.js";import"./chunk-KELMSLCR.js";import{a as $}from"./chunk-N6W3AF2G.js";import"./chunk-IENL4UJA.js";import{b as j,d as E,e as A}from"./chunk-JLWCQ6UT.js";import{H as U,V as F,W as K}from"./chunk-P4C42LQP.js";import"./chunk-RZZCZ2VH.js";import{k as fe,l as he,m as P,w as I}from"./chunk-Z7IUSDSQ.js";import{Fa as u,Je as o,Kd as w,Ke as a,Le as h,Pe as me,Ra as N,Vf as m,Wf as C,Xf as p,eg as de,ff as y,fg as ce,gg as pe,hf as x,ic as ne,ig as _,kb as re,kf as oe,lb as ie,lg as ue,mg as ae,pe as c,qe as le,re as q,vg as s,wg as l,zc as n}from"./chunk-SRTQBDBP.js";import{a as W}from"./chunk-EJD3L6HM.js";import{g as H}from"./chunk-T7NDVU76.js";var z=H(W());var Fe=i=>({disabled:i}),Ee=i=>({"captcha-error":i}),Ae=()=>({standalone:!0});function Me(i,b){if(i&1&&(o(0,"div",29)(1,"div",15),m(2),a(),h(3,"img",30),a()),i&2){let e=x();n(2),p(" 00:",e.timeLeft," ")}}function Te(i,b){if(i&1&&(o(0,"div",40),m(1),a()),i&2){let e=b.$implicit;le("transform","rotate("+(e==null?null:e.rotate)+"deg)"),n(),p(" ",e==null?null:e.value," ")}}function Be(i,b){i&1&&(o(0,"div",41),h(1,"img",42),o(2,"div"),m(3),s(4,"translate"),a()()),i&2&&(n(3),p(" ",l(4,1,"captchaError")," "))}function ke(i,b){if(i&1){let e=me();o(0,"div",31)(1,"div",32)(2,"div",33),m(3),s(4,"translate"),a(),o(5,"input",34),pe("ngModelChange",function(t){re(e);let d=x();return ce(d.userCaptchaInput,t)||(d.userCaptchaInput=t),ie(t)}),a()(),o(6,"div",35)(7,"div",36),w(8,Te,2,3,"div",37),a(),o(9,"button",38),y("click",function(){re(e);let t=x();return ie(t.generateCaptcha())}),m(10),s(11,"translate"),a()(),w(12,Be,5,3,"div",39),a()}if(i&2){let e=x();n(),c("ngClass",ae(11,Ee,e.showCaptchaError)),n(2),p(" ",l(4,7,"Type the letters shown")," "),n(2),de("ngModel",e.userCaptchaInput),c("ngModelOptions",ue(13,Ae)),n(3),c("ngForOf",e.captchaNumbers),n(2),p(" ",l(11,9,"changePhoto")," "),n(2),c("ngIf",e.showCaptchaError)}}function Oe(i,b){i&1&&(o(0,"div"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"newPasswordRequired")," "))}function De(i,b){if(i&1&&(o(0,"div",43),h(1,"img",42),w(2,Oe,3,3,"div",44),a()),i&2){let e,r=x();n(2),c("ngIf",(e=r.newPasswordForm.get("newPassword"))==null||e.errors==null?null:e.errors.required)}}function Le(i,b){i&1&&(o(0,"div",14),h(1,"img",42),o(2,"div"),m(3),s(4,"translate"),a()()),i&2&&(n(3),p(" ",l(4,1,"confirmPasswordRequired")," "))}function Re(i,b){i&1&&(o(0,"div",14),h(1,"img",42),o(2,"div"),m(3),s(4,"translate"),a()()),i&2&&(n(3),p(" ",l(4,1,"passwordsDoNotMatch")," "))}function Ve(i,b){if(i&1&&(o(0,"div",45),w(1,Le,5,3,"div",46)(2,Re,5,3,"div",46),a()),i&2){let e,r,t=x();n(),c("ngIf",(e=t.newPasswordForm.get("confirmPassword"))==null||e.errors==null?null:e.errors.required),n(),c("ngIf",((r=t.newPasswordForm.get("confirmPassword"))==null?null:r.value)!==((r=t.newPasswordForm.get("newPassword"))==null?null:r.value))}}var xe=(()=>{class i{constructor(){this.fb=u(R),this.router=u(F),this.authService=u(M),this.localStorageService=u(ge),this.translate=u(j),this.langService=u($),this.route=u(U),this.timeLeft=60,this.resendCodeButton=!1,this.captchaNumbers=[],this.wrongCaptchaNumber=!1,this.resendCodeSuccess=!1,this.error=null,this.failedAttempts=0,this.showCaptcha=!1,this.userCaptchaInput="",this.showCaptchaError=!1,this.showPassword=!1,this.showConfirmPassword=!1,this.route.queryParams.subscribe(e=>{this.userPhoneNumber=e.mobileNumber,this.userPhoneNumber||(this.userPhoneNumber=this.localStorageService.phoneNumber)}),this.createForm(),this.generateCaptcha()}ngOnInit(){this.langService.getIsLangArHandler().subscribe(e=>this.isArabic=e),this.timer=this.setTimer(),setTimeout(()=>{let e=document.querySelector(".verifyForm");this.inputElements=e?.querySelectorAll(".verfiy-input"),this.inputElements&&(this.inputElements.forEach((r,t)=>{r.addEventListener("keydown",d=>{d.keyCode===8&&d.target.value===""&&this.inputElements[Math.max(0,t-1)].focus()}),r.addEventListener("input",d=>{let[g,...S]=d.target.value;d.target.value=g??"";let te=t===this.inputElements.length-1;g!==void 0&&!te&&(this.inputElements[t+1].focus(),this.inputElements[t+1].value=S.join(""),this.inputElements[t+1].dispatchEvent(new Event("input")))})}),this.inputElements[0].focus())},0)}createForm(){this.newPasswordForm=this.fb.group({newPassword:[null,f.required],confirmPassword:[null,f.required],input1:["",[f.required,f.pattern("[0-9]")]],input2:["",[f.required,f.pattern("[0-9]")]],input3:["",[f.required,f.pattern("[0-9]")]],input4:["",[f.required,f.pattern("[0-9]")]],input5:["",[f.required,f.pattern("[0-9]")]],input6:["",[f.required,f.pattern("[0-9]")]]})}onSubmit(){if(this.newPasswordForm.valid){let e=this.newPasswordForm.get("newPassword")?.value,r=this.newPasswordForm.get("confirmPassword")?.value;if(e!==r){this.newPasswordForm.get("confirmPassword")?.setErrors({passwordMismatch:!0});return}let t=Object.values(this.newPasswordForm.value).slice(2).join("");if(this.showCaptcha&&this.userCaptchaInput.split("").reverse().join("")!==this.captcha){this.showCaptchaError=!0;return}this.showCaptchaError=!1;let d={password:e,confirmPassword:r,code:t,phoneNumber:this.userPhoneNumber};this.authService.resetPassword(d?.phoneNumber,d?.password,d?.confirmPassword,d?.code).subscribe({next:g=>{z.default.fire({icon:"success",title:this.isArabic?"\u0646\u062C\u0627\u062D":"Success",text:this.isArabic?"\u062A\u0645 \u062A\u063A\u064A\u064A\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0628\u0646\u062C\u0627\u062D":"Password reset successfully",confirmButtonText:this.isArabic?"\u0645\u0648\u0627\u0641\u0642":"Okay"}).then(()=>{this.router.navigate(["/auth/login"])})},error:g=>{this.failedAttempts++,this.failedAttempts>=2&&(this.showCaptcha=!0);let S=g.error.message||(this.isArabic?"\u062D\u062F\u062B \u062E\u0637\u0623 \u0645\u0627":"Something went wrong");this.newPasswordForm.setErrors({serverError:S}
1),this.newPasswordForm.reset(),this.inputElements.forEach(te=>{te.value=null}),z.default.fire({title:this.isArabic?"\u062E\u0637\u0623":"Error",icon:"error",text:S,confirmButtonText:this.isArabic?"\u0645\u0648\u0627\u0641\u0642":"Okay"})}})}else Object.keys(this.newPasswordForm.controls).forEach(e=>{let r=this.newPasswordForm.get(e);r?.invalid&&r.markAsTouched()})}resendCode(){this.resendCodeSuccess=!1,this.error=null,this.newPasswordForm.reset(),this.failedAttempts=0,this.showCaptcha=!0,this.authService.resendCode(this.userPhoneNumber).subscribe({next:e=>{if(!e.data.success&&e.data.message){this.error=e.data.message;return}z.default.fire({confirmButtonText:this.translate.currentLang==="ar"?"\u0645\u0648\u0627\u0641\u0642":"Okay",icon:"success",title:this.isArabic?"\u0646\u062C\u0627\u062D":"Success",text:e.data}),this.inputElements.forEach(r=>{r.value=null}),this.timeLeft=59,this.error="",this.resendCodeButton=!1,this.clear(),this.setTimer()},error:e=>{z.default.fire({icon:"error",title:"Oops...",text:e.error.message,confirmButtonText:this.isArabic?"\u0645\u0648\u0627\u0641\u0642":"Okay"})}})}setTimer(){this.intervalId&&clearInterval(this.intervalId),this.intervalId=setInterval(()=>{this.timeLeft>0?this.timeLeft--:(this.resendCodeButton=!0,this.clear())},1e3)}generateCaptcha(){this.captchaNumbers=[];let e=5;for(let r=0;r<e;r++){let t=Math.floor(Math.random()*10);this.captchaNumbers.push({value:t.toString(),rotate:Math.floor(Math.random()*30)-15})}this.captcha=this.captchaNumbers.map(r=>r.value).reverse().join("")}clear(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}ngOnDestroy(){this.clear()}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=N({type:i,selectors:[["app-new-password"]],standalone:!0,features:[_],decls:43,vars:31,consts:[[1,"container"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],[1,"col-12","col-md-8"],[1,"d-flex","flex-column","justify-content-center","align-items-center","text-center","gap-1","mb-2","mt-32"],[1,"fs-32","f-w-bold","text-023D59","mb-2"],[1,"d-flex","flex-column","gap-3","verifyForm",3,"formGroup"],[1,"d-flex","justify-content-center","verify-code-inputs","gap-2"],["type","tel","maxlength","1","formControlName","input1","placeholder","_","autocomplete","off",1,"form-control","verfiy-input","f-w-medium"],["type","tel","maxlength","1","formControlName","input2","placeholder","_","autocomplete","off",1,"form-control","verfiy-input","f-w-medium"],["type","tel","maxlength","1","formControlName","input3","placeholder","_","autocomplete","off",1,"form-control","verfiy-input","f-w-medium"],["type","tel","maxlength","1","formControlName","input4","placeholder","_","autocomplete","off",1,"form-control","verfiy-input","f-w-medium"],["type","tel","maxlength","1","formControlName","input5","placeholder","_","autocomplete","off",1,"form-control","verfiy-input","f-w-medium"],["type","tel","maxlength","1","formControlName","input6","placeholder","_","autocomplete","off",1,"form-control","verfiy-input","f-w-medium"],[1,"d-flex","align-items-center","justify-content-center","gap-2","mt-3"],[1,"d-flex","align-items-center","gap-2"],[1,"fs-16","f-w-regular","text-023D59"],[1,"fs-16","f-w-bold","cursor-p","text-E5154F","resendBtn",3,"click","ngClass"],["class","fs-16 f-w-regular d-flex align-items-center gap-2",4,"ngIf"],["class","row row-cols-2",4,"ngIf"],[1,"d-flex","flex-column","gap-2"],[1,"form-group","position-relative"],["id","newPassword","formControlName","newPassword",1,"form-control","inputPlaceholder",3,"type","placeholder"],["src","assets/images/dynamic/auth/icons/password-icon.svg","alt","",1,"inputPlaceholderIcon"],["alt","",1,"showPassIcon",3,"click","src"],["class","error-message fs-14 f-w-regular d-flex align-items-center gap-2 mt-2",4,"ngIf"],["id","confirmPassword","formControlName","confirmPassword",1,"form-control","inputPlaceholder",3,"type","placeholder"],["class","error-message fs-14 f-w-regular d-flex gap-2 mt-2 flex-column",4,"ngIf"],[1,"d-flex","justify-content-center","mt-4"],["type","submit",1,"main-button","fs-16","f-w-bold","w-50",3,"click","disabled"],[1,"fs-16","f-w-regular","d-flex","align-items-center","gap-2"],["src","assets/images/icons/dynamic/timer.svg","alt",""],[1,"row","row-cols-2"],[1,"form-group","captcha-input-container","h-100",3,"ngClass"],[1,"fs-12","f-w-regular","mb-1","text-B2B4C7"],["type","text","placeholder","------",1,"form-control","captcha-input",3,"ngModelChange","ngModel","ngModelOptions"],[1,"d-flex","flex-column","gap-1"],[1,"captcha-container","d-flex","justify-content-center","align-items-center","gap-3","w-100"],["class","fs-32",3,"transform",4,"ngFor","ngForOf"],[1,"captcha-button","fs-16","f-w-regular",3,"click"],["class","error-message fs-14 f-w-regular mt-1 d-flex align-items-center gap-2 w-100",4,"ngIf"],[1,"fs-32"],[1,"error-message","fs-14","f-w-regular","mt-1","d-flex","align-items-center","gap-2","w-100"],["src","assets/images/icons/dynamic/error-info-icon.svg","alt",""],[1,"error-message","fs-14","f-w-regular","d-flex","align-items-center","gap-2","mt-2"],[4,"ngIf"],[1,"error-message","fs-14","f-w-regular","d-flex","gap-2","mt-2","flex-column"],["class","d-flex align-items-center gap-2",4,"ngIf"]],template:function(r,t){if(r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),m(5),s(6,"translate"),a()(),o(7,"form",5)(8,"div",6),h(9,"input",7)(10,"input",8)(11,"input",9)(12,"input",10)(13,"input",11)(14,"input",12),a(),o(15,"div",13)(16,"div",14)(17,"div",15),m(18),s(19,"translate"),a(),o(20,"div",16),y("click",function(){return t.timeLeft<=0?t.resendCode():null}),m(21),s(22,"translate"),a()(),w(23,Me,4,1,"div",17),a(),w(24,ke,13,14,"div",18),o(25,"div",19)(26,"div",20),h(27,"input",21),s(28,"translate"),h(29,"img",22),o(30,"img",23),y("click",function(){return t.showPassword=!t.showPassword}),a()(),w(31,De,3,1,"div",24),a(),o(32,"div",19)(33,"div",20),h(34,"input",25),s(35,"translate"),h(36,"img",22),o(37,"img",23),y("click",function(){return t.showConfirmPassword=!t.showConfirmPassword}),a()(),w(38,Ve,3,2,"div",26),a(),o(39,"div",27)(40,"button",28),y("click",function(){return t.onSubmit()}),m(41),s(42,"translate"),a()()()()()()),r&2){let d,g,S;n(5),p(" ",l(6,17,"createNewPassword")," "),n(2),c("formGroup",t.newPasswordForm),n(11),p(" ",l(19,19,"didNotReceiveCode")," "),n(2),c("ngClass",ae(29,Fe,t.timeLeft>0)),n(),p(" ",l(22,21,"sendItAgain")," "),n(2),c("ngIf",!t.resendCodeButton),n(),c("ngIf",t.showCaptcha),n(3),oe("placeholder",l(28,23,"newPassword")),c("type",t.showPassword?"text":"password"),n(3),c("src",t.showPassword?"assets/images/dynamic/auth/hide-password.svg":"assets/images/dynamic/auth/show-password.svg",ne),n(),c("ngIf",((d=t.newPasswordForm.get("newPassword"))==null?null:d.invalid)&&
1((d=t.newPasswordForm.get("newPassword"))==null?null:d.touched)),n(3),oe("placeholder",l(35,25,"confirmPassword")),c("type",t.showConfirmPassword?"text":"password"),n(3),c("src",t.showConfirmPassword?"assets/images/dynamic/auth/hide-password.svg":"assets/images/dynamic/auth/show-password.svg",ne),n(),c("ngIf",(((g=t.newPasswordForm.get("confirmPassword"))==null?null:g.invalid)||((g=t.newPasswordForm.get("confirmPassword"))==null?null:g.value)!==((g=t.newPasswordForm.get("newPassword"))==null?null:g.value))&&((g=t.newPasswordForm.get("confirmPassword"))==null?null:g.touched)),n(2),c("disabled",t.newPasswordForm.invalid||((S=t.newPasswordForm.get("confirmPassword"))==null?null:S.value)!==((S=t.newPasswordForm.get("newPassword"))==null?null:S.value)),n(),p(" ",l(42,27,"create")," ")}},dependencies:[V,O,T,B,k,G,D,L,I,fe,he,P,A,E,we,be],styles:['.container-fluid[_ngcontent-%COMP%]{padding-bottom:160px}.form-container[_ngcontent-%COMP%]{margin:0 auto;padding:48px;border-radius:16px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:#ffffff80}.error-message[_ngcontent-%COMP%]{color:#d1395d}.verfiy-input[_ngcontent-%COMP%]{text-align:center;border-color:#b7b7b7;color:#023d59!important;width:60px!important;height:55px!important;font-size:28px!important} html:lang(ar) .verify-code-inputs{flex-direction:row-reverse} html:lang(en) .verify-code-inputs{flex-direction:row}.resend-button[_ngcontent-%COMP%]{border:0;background:transparent;width:fit-content;padding:0;cursor:pointer}.resend-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.captcha-container[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;background:url("./media/point_background-JNRJQMG6.jpg");width:auto;border-radius:8px;padding:16px;color:#2e4374!important;background-position:center;background-repeat:no-repeat;background-size:cover;font-weight:900}.captcha-button[_ngcontent-%COMP%]{padding:0;border:0;background-color:transparent;text-decoration:underline;text-align:start;color:#e5154f!important}.captcha-input-container[_ngcontent-%COMP%]{border:1px solid #DDDDDD;background-color:#f8f8f8;padding:8px 29px;border-radius:16px}.captcha-input-container[_ngcontent-%COMP%] .captcha-input[_ngcontent-%COMP%]{height:auto!important;padding:0!important;border:0!important;background-color:transparent!important;width:100%!important}.captcha-error[_ngcontent-%COMP%]{border:1px solid #d1395d!important}.resendBtn.disabled[_ngcontent-%COMP%]{opacity:.5;cursor:not-allowed}']})}}return i})();var se=H(W());function Ue(i,b){i&1&&(o(0,"div"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"mobileNumberRequired")," "))}function qe(i,b){i&1&&(o(0,"div"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"InvalidPhoneNumberFormat")," "))}function je(i,b){if(i&1&&(o(0,"div",16),h(1,"img",17),w(2,Ue,3,3,"div",18)(3,qe,3,3,"div",18),a()),i&2){let e,r,t=x();n(2),c("ngIf",(e=t.forgetPasswordForm.get("mobileNumber"))==null||e.errors==null?null:e.errors.required),n(),c("ngIf",((r=t.forgetPasswordForm.get("mobileNumber"))==null||r.errors==null?null:r.errors.minlength)||((r=t.forgetPasswordForm.get("mobileNumber"))==null||r.errors==null?null:r.errors.maxlength)||((r=t.forgetPasswordForm.get("mobileNumber"))==null||r.errors==null?null:r.errors.pattern))}}var Ce=(()=>{class i{constructor(){this.langService=u($),this.fb=u(R),this.router=u(F),this.authService=u(M),this.createForm()}ngOnInit(){this.langService.getIsLangArHandler().subscribe(e=>{this.isArabic=e})}createForm(){this.forgetPasswordForm=this.fb.group({mobileNumber:["",[f.required,f.minLength(10),f.maxLength(10),f.pattern(/^(05)\d{8}$/)]]})}onSubmit(){Object.keys(this.forgetPasswordForm.controls).forEach(e=>{let r=this.forgetPasswordForm.get(e);r&&r.markAsTouched()}),!this.forgetPasswordForm.invalid&&this.forgetPasswordForm.valid&&this.authService.forgotPassword(this.forgetPasswordForm.get("mobileNumber")?.value).subscribe(e=>{se.default.fire({icon:"success",title:this.isArabic?"\u0646\u062C\u0627\u062D":"Success",text:e.data,confirmButtonText:this.isArabic?"\u0645\u0648\u0627\u0641\u0642":"Okay"}),this.router.navigate(["/auth/new-password"],{queryParams:{mobileNumber:this.forgetPasswordForm.get("mobileNumber")?.value}})},e=>{se.default.fire({icon:"error",title:"Oops...",text:e.error.message,confirmButtonText:this.isArabic?"\u0645\u0648\u0627\u0641\u0642":"Okay"})})}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=N({type:i,selectors:[["app-forget-password"]],standalone:!0,features:[_],decls:24,vars:14,consts:[[1,"container"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],[1,"form-container","col-8"],[1,"d-flex","align-items-center","justify-content-center"],["src","assets/images/dynamic/navbar/tph-logo.svg","alt",""],[1,"d-flex","flex-column","justify-content-center","align-items-center","text-center","gap-1","mb-2","mt-32"],[1,"fs-32","f-w-bold","text-023D59"],[1,"fs-16","f-w-light","text-023D59","mt-2"],[3,"formGroup"],[1,"d-flex","flex-column","gap-3","mt-3"],[1,"form-group","position-relative"],["id","mobileNumber","formControlName","mobileNumber","type","text","maxlength","10",1,"form-control","inputPlaceholder",3,"placeholder"],["src","assets/images/dynamic/auth/icons/mobile-number-icon.svg","alt","",1,"inputPlaceholderIcon"],["class","error-message fs-14 f-w-regular d-flex align-items-center gap-2 mt-2",4,"ngIf"],[1,"d-flex","justify-content-center","align-items-center","w-100","mt-32"],["type","submit",1,"main-button","fs-16","f-w-bold",3,"click"],[1,"error-message","fs-14","f-w-regular","d-flex","align-items-center","gap-2","mt-2"],["src","assets/images/icons/dynamic/error-info-icon.svg","alt",""],[4,"ngIf"]],template:function(r,t){if(r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),h(4,"img",4),a(),o(5,"div",5)(6,"div",6),m(7),s(8,"translate"),a(),o(9,"div",7),m(10),s(11,"translate"),a()(),o(12,"form",8)(13,"div",9)(14,"div")(15,"div",10),h(16,"input",11),s(17,"translate"),h(18,"img",12),a(),w(19,je,4,2,"div",13),a()(),o(20,"div",14)(21,"button",15),y("click",function(){return t.onSubmit()}),m(22),s(23,"translate"),a()()()()()()),r&2){let d;n(7),p(" ",l(8,6,"forgetPassword")," "),n(3),p(" ",l(11,8,"forgetPasswordNote")," "),n(2),c("formGroup",t.forgetPasswordForm),n(4),c("placeholder",l(17,10,"mobileNumber")),n(3),c("ngIf",((d=t.forgetPasswordForm.get("mobileNumber"))==null?null:d.invalid)&&
1((d=t.forgetPasswordForm.get("mobileNumber"))==null?null:d.touched)),n(3),p(" ",l(23,12,"sendCode")," ")}},dependencies:[V,O,T,B,k,G,D,L,I,P,A,E]})}}return i})();var Se=H(W());function Ge(i,b){i&1&&(o(0,"small"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"mobileNumberRequired")," "))}function He(i,b){i&1&&(o(0,"small"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"mobileNumberMustStartWith05AndBe10Digits")," "))}function We(i,b){if(i&1&&(o(0,"div",19),h(1,"img",20),w(2,Ge,3,3,"small",21)(3,He,3,3,"small",21),a()),i&2){let e=x();n(2),c("ngIf",e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.required),n(),c("ngIf",(e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.pattern)||(e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.minLength)||(e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.maxLength))}}var ye=(()=>{class i{constructor(){this.sharedService=u(J),this.fb=u(R),this.authService=u(M),this.userService=u(Q),this.router=u(F),this.activatedRoute=u(U),this.translate=u(j),this.isSubmitting=!1,this.sharedService.setActiveComponent("login")}ngOnInit(){this.createForm(),this.returnUrl=this.activatedRoute.snapshot.queryParamMap.get("returnUrl")}createForm(){this.loginForm=this.fb.group({mobileNumber:["",[f.required,f.pattern(/^05\d{8}$/),f.minLength(10),f.maxLength(10)]]})}onSubmit(){if(this.loginForm.valid){this.isSubmitting=!0;let e=this.loginForm.value.mobileNumber.trim();this.authService.login(e,e).subscribe({next:r=>{if(!r.data.user.phoneNumberConfirmed||r.data.twoFactorAuthEnabled){localStorage.setItem(v.verifyPhoneNumber,e),localStorage.removeItem(v.phoneNumberConfirmed),localStorage.removeItem(v.twoFactorAuthEnabled),localStorage.setItem(v.user,JSON.stringify(r.data.user)),localStorage.setItem(v.phoneNumberConfirmed,JSON.stringify(r.data.user.phoneNumberConfirmed)),localStorage.setItem(v.twoFactorAuthEnabled,JSON.stringify(r.data.twoFactorAuthEnabled));let t=this.activatedRoute.snapshot.queryParamMap.get("extra"),d=null;if(t)try{d=JSON.parse(decodeURIComponent(t))}catch(g){console.error("Error parsing extra:",g)}this.router.navigate(["/auth/verify-code"],{queryParams:{returnUrl:this.returnUrl,extra:t},state:{returnUrl:this.returnUrl,extra:d?JSON.stringify(d):null,phoneNumber:e,password:e,userId:r.data.user.id,phoneConfirmed:r.data.user.phoneNumberConfirmed,twoFactorAuthEnabled:r.data.twoFactorAuthEnabled,userData:r.data.user}})}else{this.userService.setUserToken(r.data.token),this.userService.setUserData(r.data.user),localStorage.setItem(v.phoneNumberConfirmed,JSON.stringify(r.data.user.phoneNumberConfirmed)),localStorage.setItem(v.twoFactorAuthEnabled,JSON.stringify(r.data.twoFactorAuthEnabled)),this.returnUrl=this.activatedRoute.snapshot.queryParamMap.get("returnUrl");let t=this.activatedRoute.snapshot.queryParamMap.get("extra"),d=this.returnUrl?decodeURIComponent(this.returnUrl):"/";if(this.returnUrl&&t)try{let S=JSON.parse(decodeURIComponent(t)).queryParams;this.router.navigate([d],{queryParams:S});return}catch(g){console.error("Error parsing extra data:",g),this.router.navigate([d]);return}this.router.navigate(["/"])}this.isSubmitting=!1},error:r=>{this.isSubmitting=!1,Se.default.fire({icon:"error",title:r.error?.message||"Login Failed",text:r.error?.message||"An error occurred during login",confirmButtonText:this.translate.currentLang==="ar"?"\u062D\u0633\u0646\u0627":"Okay"})},complete:()=>{}})}else this.loginForm.markAllAsTouched()}get mobileNumber(){return this.loginForm.get("mobileNumber")}get showMobileError(){return this.mobileNumber?.invalid&&(this.mobileNumber?.dirty||this.mobileNumber?.touched)||!1}ngOnDestroy(){this.sharedService.setActiveComponent("")}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=N({type:i,selectors:[["app-login-phone"]],standalone:!0,features:[_],decls:48,vars:41,consts:[[1,"container"],[1,"d-flex","flex-column","align-items-center","col-12","mt-4","mb-5"],[1,"auth-title","col-10"],[1,"d-flex","flex-column","align-items-start","mt-28","col-8"],[1,"fs-16","f-w-bold"],[1,"fs-16","f-w-regular"],[1,"col-8",3,"ngSubmit","formGroup"],[1,"form-group","d-flex","align-items-center"],["for","mobileNumber",1,"col-3","fs-16","f-w-regular","text-777777"],[1,"w-100"],["id","mobileNumber","type","text","formControlName","mobileNumber",1,"form-control","w-100",3,"placeholder"],[1,"d-flex","align-items-center"],["class","invali
1d-feedback d-flex align-items-center gap-2",4,"ngIf"],[1,"d-flex","align-items-center","mt-3"],["for","",1,"col-3"],["type","submit",1,"btn","main-button","w-100",3,"disabled"],[1,"d-flex","align-items-center","justify-content-center","gap-2","mt-20"],[1,"fs-16","f-w-regular","text-2A2A2A"],["routerLink","/auth/register",1,"fs-16","f-w-regular","text-B51A04","c-pointer"],[1,"invalid-feedback","d-flex","align-items-center","gap-2"],["src","assets/images/dynamic/auth/icons/error-icon.svg","alt",""],[4,"ngIf"]],template:function(r,t){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),m(3),s(4,"translate"),a(),o(5,"div",3)(6,"div",4),m(7),s(8,"translate"),a(),o(9,"ul")(10,"li",5),m(11),s(12,"translate"),a(),o(13,"li",5),m(14),s(15,"translate"),a(),o(16,"li",5),m(17),s(18,"translate"),a(),o(19,"li",5),m(20),s(21,"translate"),a(),o(22,"li",5),m(23),s(24,"translate"),a()()(),o(25,"form",6),y("ngSubmit",function(){return t.onSubmit()}),o(26,"div",7)(27,"label",8),m(28),s(29,"translate"),a(),o(30,"div",9),h(31,"input",10),s(32,"translate"),a()(),o(33,"div",11),h(34,"label",8),w(35,We,4,2,"div",12),a(),o(36,"div",13),h(37,"label",14),o(38,"button",15),m(39),s(40,"translate"),a()()(),o(41,"div",16)(42,"span",17),m(43),s(44,"translate"),a(),o(45,"span",18),m(46),s(47,"translate"),a()()()()),r&2&&(n(3),C(l(4,17,"login")),n(4),p("",l(8,19,"loginInstruction")," :"),n(4),p(" ",l(12,21,"personalAccountAndInfo")," "),n(3),C(l(15,23,"yourContracts")),n(3),C(l(18,25,"trackVisits")),n(3),C(l(21,27,"manageRequests")),n(3),C(l(24,29,"contactSupport")),n(2),c("formGroup",t.loginForm),n(3),C(l(29,31,"mobileNumber")),n(3),q("is-invalid",t.showMobileError),c("placeholder",l(32,33,"mobileNumber")),n(4),c("ngIf",t.showMobileError),n(3),c("disabled",t.loginForm.invalid),n(),p(" ",l(40,35,"login")," "),n(4),C(l(44,37,"doNotHaveAccount")),n(3),p(" ",l(47,39,"createNewAccount")," "))},dependencies:[V,O,T,B,k,D,L,I,P,A,E,K],styles:[".auth-title[_ngcontent-%COMP%]{text-align:center;padding:8px;border-radius:24px;color:#fff;background-color:#b51a04;cursor:pointer}.c-pointer[_ngcontent-%COMP%]{cursor:pointer}.invalid-feedback[_ngcontent-%COMP%]{background-color:#ffc4c3;border-radius:24px;padding:8px;color:#951a1f;margin-top:9px!important;padding-inline-start:14px}"]})}}return i})();var Ne=H(W());function ze(i,b){i&1&&(o(0,"small"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"mobileNumberRequired")," "))}function Ke(i,b){i&1&&(o(0,"small"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"mobileNumberMustStartWith05AndBe10Digits")," "))}function $e(i,b){if(i&1&&(o(0,"div",15),h(1,"img",16),w(2,ze,3,3,"small",17)(3,Ke,3,3,"small",17),a()),i&2){let e=x();n(2),c("ngIf",e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.required),n(),c("ngIf",(e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.pattern)||(e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.minLength)||(e.mobileNumber==null||e.mobileNumber.errors==null?null:e.mobileNumber.errors.maxLength))}}var _e=(()=>{class i{constructor(){this.sharedService=u(J),this.fb=u(R),this.authService=u(M),this.router=u(F),this.activeRoute=u(U),this.isArabic=!1,this.returnUrl="/",this.sharedService.setActiveComponent("register"),this.returnUrl=this.activeRoute.snapshot.queryParams.returnUrl||"/"}ngOnInit(){this.initForm()}initForm(){this.registerForm=this.fb.group({mobileNumber:["",[f.required,f.pattern(/^05\d{8}$/),f.minLength(10),f.maxLength(10)]]})}
1onSubmit(){if(this.registerForm.invalid){this.registerForm.markAllAsTouched();return}let e=this.registerForm.value.mobileNumber,r={userName:e,mobileNumber:e,firstName:"",middleName:"",lastName:"",email:"",password:"",confirmPassword:"",rememberMe:!1};this.authService.register(r).subscribe({next:t=>{localStorage.removeItem(v.phoneNumberConfirmed),localStorage.removeItem(v.twoFactorAuthEnabled),localStorage.setItem(v.user,JSON.stringify(t.data)),localStorage.setItem(v.verifyPhoneNumber,e);let d=this.activeRoute.snapshot.queryParamMap.get("extra"),g=null;if(d)try{g=JSON.parse(decodeURIComponent(d))}catch(S){console.error("Error parsing extra:",S)}this.router.navigate(["/auth/verify-code"],{queryParams:{returnUrl:this.returnUrl,extra:g?JSON.stringify(g):null,phoneNumber:e},queryParamsHandling:"merge",state:{phoneNumber:e,password:null,userId:t.data.userId,userData:t.data}})},error:t=>{Ne.default.fire({title:this.isArabic?"\u062E\u0637\u0623":"Error",icon:"error",text:t.error?.message||(this.isArabic?"\u062D\u062F\u062B \u062E\u0637\u0623 \u0645\u0627":"Something went wrong"),confirmButtonText:this.isArabic?"\u0645\u0648\u0627\u0641\u0642":"Okay",confirmButtonColor:"#3085d6"})}})}get mobileNumber(){return this.registerForm.get("mobileNumber")}get showMobileError(){return!!(this.mobileNumber?.invalid&&(this.mobileNumber?.dirty||this.mobileNumber?.touched))}ngOnDestroy(){this.sharedService.setActiveComponent("")}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=N({type:i,selectors:[["app-register-phone"]],standalone:!0,features:[_],decls:25,vars:20,consts:[[1,"container"],[1,"d-flex","flex-column","align-items-center","col-12","mt-4","mb-5"],[1,"auth-title","col-10"],[1,"col-8","mt-28",3,"ngSubmit","formGroup"],[1,"form-group","d-flex","align-items-center"],["for","mobileNumber",1,"col-3","fs-16","f-w-regular","text-777777"],[1,"w-100"],["id","mobileNumber","type","text","formControlName","mobileNumber",1,"form-control","w-100",3,"placeholder"],[1,"d-flex","align-items-center"],["class","invalid-feedback d-flex align-items-center gap-2",4,"ngIf"],[1,"d-flex","align-items-center","mt-3"],["for","",1,"col-3"],["type","submit",1,"btn","main-button","w-100",3,"disabled"],[1,"d-flex","align-items-center","justify-content-center","gap-2","mt-20"],["routerLink","/auth/login",1,"fs-16","f-w-regular","text-B51A04","c-pointer"],[1,"invalid-feedback","d-flex","align-items-center","gap-2"],["src","assets/images/dynamic/auth/icons/error-icon.svg","alt",""],[4,"ngIf"]],template:function(r,t){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),m(3),s(4,"translate"),a(),o(5,"form",3),y("ngSubmit",function(){return t.onSubmit()}),o(6,"div",4)(7,"label",5),m(8),s(9,"translate"),a(),o(10,"div",6),h(11,"input",7),s(12,"translate"),a()(),o(13,"div",8),h(14,"label",5),w(15,$e,4,2,"div",9),a(),o(16,"div",10),h(17,"label",11),o(18,"button",12),m(19),s(20,"translate"),a()()(),o(21,"div",13)(22,"span",14),m(23),s(24,"translate"),a()()()()),r&2&&(n(3),C(l(4,10,"register")),n(2),c("formGroup",t.registerForm),n(3),C(l(9,12,"mobileNumber")),n(3),q("is-invalid",t.showMobileError),c("placeholder",l(12,14,"mobileNumber")),n(4),c("ngIf",t.showMobileError),n(3),c("disabled",t.registerForm.invali
1d),n(),p(" ",l(20,16,"register")," "),n(4),C(l(24,18,"alreadyHaveAccount")))},dependencies:[V,O,T,B,k,D,L,I,P,A,E,K],styles:[".auth-title[_ngcontent-%COMP%]{text-align:center;padding:8px;border-radius:24px;color:#fff;background-color:#b51a04;cursor:pointer}.c-pointer[_ngcontent-%COMP%]{cursor:pointer}.invalid-feedback[_ngcontent-%COMP%]{background-color:#ffc4c3;border-radius:24px;padding:8px;color:#951a1f;margin-top:9px!important;padding-inline-start:14px}"]})}}return i})();var Pe=H(W());function Qe(i,b){i&1&&(o(0,"small"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"verificationCodeRequired")," "))}function Xe(i,b){i&1&&(o(0,"small"),m(1),s(2,"translate"),a()),i&2&&(n(),p(" ",l(2,1,"verificationCodeMustBe6Digits")," "))}function Ye(i,b){if(i&1&&(o(0,"small"),m(1),a()),i&2){let e=x(2);n(),p(" ",e.error," ")}}function Ze(i,b){if(i&1&&(o(0,"div",24),h(1,"img",25),w(2,Qe,3,3,"small",16)(3,Xe,3,3,"small",16)(4,Ye,2,1,"small",16),a()),i&2){let e=x();n(2),c("ngIf",e.verificationCode==null||e.verificationCode.errors==null?null:e.verificationCode.errors.required),n(),c("ngIf",(e.verificationCode==null||e.verificationCode.errors==null?null:e.verificationCode.errors.pattern)||(e.verificationCode==null||e.verificationCode.errors==null?null:e.verificationCode.errors.minLength)||(e.verificationCode==null||e.verificationCode.errors==null?null:e.verificationCode.errors.maxLength)),n(),c("ngIf",e.error)}}function et(i,b){i&1&&(o(0,"span"),m(1),s(2,"translate"),a()),i&2&&(n(),C(l(2,1,"verifyFromMobile")))}function tt(i,b){i&1&&(o(0,"span"),m(1),s(2,"translate"),a()),i&2&&(n(),p("",l(2,1,"verifying"),"..."))}var Ie=(()=>{class i{constructor(){this.sharedService=u(J),this.fb=u(R),this.router=u(F),this.activeRoute=u(U),this.authService=u(M),this.userService=u(Q),this.translate=u(j),this.profileService=u(ve),this.timeLeft=60,this.resendCodeButton=!1,this.error=null,this.submitted=!1,this.sharedService.setActiveComponent("mobileNumberVerification")}ngOnInit(){this.getRouterData(),this.initForm(),this.startTimer()}initForm(){this.verifyForm=this.fb.group({verificationCode:["",[f.required,f.pattern(/^\d{6}$/),f.minLength(6),f.maxLength(6)]]})}getRouterData(){let e=window.history.state;e&&(e.returnUrl||e.phoneNumber||e.userData)?(this.password=e.password,this.userId=e.userId,this.userPhoneNumber=e.phoneNumber,this.returnUrl=e.returnUrl,this.phoneConfirmed=e.phoneConfirmed,this.twoFactorAuthEnabled=e.twoFactorAuthEnabled,this.userData=e.userData,this.saveToLocalStorage()):this.loadFromLocalStorage()}saveToLocalStorage(){let e={password:this.password,userId:this.userId,userPhoneNumber:this.userPhoneNumber,returnUrl:this.returnUrl,phoneConfirmed:this.phoneConfirmed,twoFactorAuthEnabled:this.twoFactorAuthEnabled,userData:this.userData};localStorage.setItem(v.registerVerifyData,JSON.stringify(e))}loadFromLocalStorage(){let e=localStorage.getItem(v.registerVerifyData);if(e)try{let r=JSON.parse(e);this.password=r.password,this.userId=r.userId,this.userPhoneNumber=r.userPhoneNumber,this.returnUrl=r.returnUrl,this.phoneConfirmed=r.phoneConfirmed,this.twoFactorAuthEnabled=r.twoFactorAuthEnabled,this.userData=r.userData}catch(r){console.error("Error parsing localStorage data:",r),this.clearLocalStorage()}else{let r=localStorage.getItem(v.user),t=localStorage.getItem(v.phoneNumberConfirmed),d=localStorage.getItem(v.twoFactorAuthEnabled),g=localStorage.getItem(v.verifyPhoneNumber);if(r)try{this.userData=JSON.parse(r),this.userPhoneNumber=g||this.userData?.phoneNumber,this.userId=this.userData?.id||this.userData?.userId,this.password=this.userPhoneNumber,this.phoneConfirmed=t?JSON.parse(t):!1,this.twoFactorAuthEnabled=d?JSON.parse(d):!1}catch(S){console.error("Error parsing fallback localStorage data:",S)}}}clearLocalStorage(){localStorage.removeItem(v.registerVerifyData)}onSubmit(){if(!this.verifyForm.valid){this.verifyForm.markAllAsTouched();return}let e=this.verifyForm.value.verificationCode;if(this.submitted=!0,this.error=null,!this.userData){let t=localStorage.getItem(v.user);t&&(this.userData=JSON.parse(t))}if(this.phoneConfirmed===void 0||this.phoneConfirmed===null){let t=localStorage.getItem(v.phoneNumberConfirmed);this.phoneConfirmed=t?JSON.parse(t):!1}if(this.twoFactorAuthEnabled===void 0||this.twoFactorAuthEnabled===null){let t=localStorage.getItem(v.twoFactorAuthEnabled);this.twoFactorAuthEnabled=t?JSON.parse(t):!1}let r;if(this.userData&&!this.twoFactorAuthEnabled?r=this.authService.VerifyCode(this.userData.phoneNumber||this.userPhoneNumber,this.password,Number(e),this.userData.id||this.userId):this.userData&&this.twoFactorAuthEnabled&&(r=this.authService.VerifySignInCode(this.userData.phoneNumber||this.userPhoneNumber,this.password,Number(e),this.userData.id||this.userId)),!r){this.error="Invalid user data or authentication state",this.submitted=!1,console.error("No verification observable created");return}r.subscribe({next:t=>{this.userService.setUserToken(t.data.token),this.userService.setUserData(t.data.user);let d=t.data?.user?.crmUserId;if(!d){console.error("No crmUserId found in response, proceeding with navigation"),this.navigateAfterVerification();return}this.profileService.isProfileCompleted(d).subscribe({next:g=>
1{if(!g){this.clearLocalStorage(),this.router.navigate(["/CompleteProfile"]);return}this.navigateAfterVerification()},error:g=>{console.error("Error checking profile completion:",g),this.navigateAfterVerification()}})},error:t=>{console.error("Verification error:",t),this.error=t?.error?.message||"Verification failed",this.verifyForm.reset(),this.submitted=!1}})}onResendCode(){this.error=null,this.verifyForm.reset();let e=this.userPhoneNumber||this.userData?.phoneNumber;if(!e){this.error="Phone number not found";return}let r;this.twoFactorAuthEnabled?r=this.authService.sendConfirmationCode(e):r=this.authService.resendCode(e),r.subscribe({next:t=>{if(!t.data.success&&t.data.message){this.error=t.data.message;return}Pe.default.fire({title:t.data,icon:"success",confirmButtonText:this.translate.currentLang==="ar"?"\u0645\u0648\u0627\u0641\u0642":"Okay"}),this.timeLeft=60,this.error=null,this.resendCodeButton=!1,this.startTimer()},error:t=>{this.error=t.error?.message||"Failed to resend code"}})}startTimer(){this.clearTimer(),this.timer=setInterval(()=>{this.timeLeft>0?this.timeLeft--:(this.resendCodeButton=!0,this.clearTimer())},1e3)}clearTimer(){this.timer&&clearInterval(this.timer)}get verificationCode(){return this.verifyForm.get("verificationCode")}get showCodeError(){return this.verificationCode?.invalid&&(this.verificationCode?.dirty||this.verificationCode?.touched)||!1}ngOnDestroy(){this.sharedService.setActiveComponent(""),this.clearTimer()}navigateAfterVerification(){this.returnUrl=this.activeRoute.snapshot.queryParamMap.get("returnUrl");let e=this.activeRoute.snapshot.queryParamMap.get("extra"),r=this.returnUrl?decodeURIComponent(this.returnUrl):"/";if(this.returnUrl&&e)try{let d=JSON.parse(decodeURIComponent(e)).queryParams;this.router.navigate([r],{queryParams:d});return}catch(t){console.error("Error parsing extra data:",t),this.router.navigate([r]);return}this.clearLocalStorage(),this.router.navigate(["/"])}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=N({type:i,selectors:[["app-verify-code-phone"]],standalone:!0,features:[_],decls:39,vars:28,consts:[[1,"container"],[1,"d-flex","flex-column","align-items-center","col-12","mt-4","mb-5"],[1,"auth-title","col-10"],[1,"d-flex","align-items-center","justify-content-center","mt-28","col-8","gap-2"],[1,"fs-16","f-w-regular","text-center"],[1,"fs-16","f-w-regular","text-B51A04"],[1,"col-8","mt-28",3,"ngSubmit","formGroup"],[1,"form-group","d-flex","align-items-center"],["for","verificationCode",1,"col-3","fs-16","f-w-regular","text-777777"],[1,"w-100"],["id","verificationCode","type","text","formControlName","verificationCode","maxlength","6",1,"form-control","w-100",3,"placeholder"],[1,"d-flex","align-items-center"],["class","invalid-feedback d-flex align-items-center gap-2",4,"ngIf"],[1,"d-flex","align-items-center","mt-3"],["for","",1,"col-3"],["type","submit",1,"btn","main-button","w-100",3,"disabled"],[4,"ngIf"],[1,"d-flex","align-items-center","justify-content-center","gap-2","mt-20"],[1,"fs-16","f-w-regular"],[1,"d-flex","align-items-center","gap-1"],[1,"fs-16","f-w-bold","text-B51A04"],[1,"fs-16","f-w-bold","text-B51A04",2,"direction","ltr","display","inline-block"],["src","assets/images/dynamic/auth/icons/timer.svg","alt",""],[1,"fs-16","f-w-regular","text-B51A04","c-pointer","btn","main-button","d-flex","algin-items-center","justify-content-center",3,"click","disabled"],[1,"invalid-feedback","d-flex","align-items-center","gap-2"],["src","assets/images/dynamic/auth/icons/error-icon.svg","alt",""]],template:function(r,t){r&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),m(3),s(4,"translate"),a(),o(5,"div",3)(6,"div",4),m(7),s(8,"translate"),a(),o(9,"div",5),m(10),a()(),o(11,"form",6),y("ngSubmit",function(){return t.onSubmit()}),o(12,"div",7),h(13,"label",8),o(14,"div",9),h(15,"input",10),s(16,"translate"),a()(),o(17,"div",11),h(18,"label",8),w(19,Ze,5,3,"div",12),a(),o(20,"div",13),h(21,"label",14),o(22,"button",15),w(23,et,3,3,"span",16)(24,tt,3,3,"span",16),a()()(),o(25,"div",17)(26,"span",18),m(27),s(28,"translate"),a(),o(29,"div",19)(30,"span",20),m(31),s(32,"translate"),a(),o(33,"span",21),m(34),a(),h(35,"img",22),a(),o(36,"button",23),y("click",function(){return t.onResendCode()}),m(37),s(38,"translate"),a()()()()),r&2&&(n(3),p(" ",l(4,16,"mobileNumberVerification")," "),n(4),p(" ",l(8,18,"enterVerificationCode")," "),n(3),p(" ",t.userPhoneNumber," "),n(),c("formGroup",t.verifyForm),n(4),q("is-invalid",t.showCodeError||t.error),c("placeholder",l(16,20,"enterVerificationCodeTitle")),n(4),c("ngIf",t.showCodeError||t.error),n(3),c("disabled",t.verifyForm.invali
1d||t.submitted),n(),c("ngIf",!t.submitted),n(),c("ngIf",t.submitted),n(3),C(l(28,22,"didNotReceiveCode")),n(4),C(l(32,24,"resendAgainAfter")),n(3),p(" 00 : ",t.timeLeft," "),n(2),c("disabled",t.timeLeft>0),n(),p(" ",l(38,26,"resendCode")," "))},dependencies:[V,O,T,B,k,G,D,L,I,P,A,E],styles:[".auth-title[_ngcontent-%COMP%]{text-align:center;padding:8px;border-radius:24px;color:#fff;background-color:#b51a04;cursor:pointer}.c-pointer[_ngcontent-%COMP%]{cursor:pointer}.invalid-feedback[_ngcontent-%COMP%]{background-color:#ffc4c3;border-radius:24px;padding:8px;color:#951a1f;margin-top:9px!important;padding-inline-start:14px}"]})}}return i})();var cr=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",component:ye},{path:"register",component:_e},{path:"verify-code",component:Ie},{path:"forget-password",component:Ce},{path:"new-password",component:xe}];export{cr as routes};
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.