1import{c as Q,d as dt,f as pt,g as mt,i as Ue,j as Re,k as We}from"./chunk-DBGWUXKM.js";import{a as lt,b as st}from"./chunk-MTFB74BY.js";import{B as Z,D as Y,H as ct,K as Le,L as K,a as H,j as N,k as rt,l as ae,p as z,r as m,u as j,v as q,w as G,x as w,y as Fe,z as re}from"./chunk-TC6KNNL6.js";import{a as J}from"./chunk-LLJJPCSQ.js";import{d as ot,e as at,f as Ce}from"./chunk-47MDE64R.js";import{V as ie,W as oe}from"./chunk-6JTBRR7O.js";import{f as ue,k as _e,ka as Te,ra as it,ua as Ae}from"./chunk-PWAFRBF6.js";import{a as E}from"./chunk-CAJH3YAX.js";import{e as De}from"./chunk-BO35WQS6.js";import{a as D}from"./chunk-A4GUMIHM.js";import{i as Ve,j as nt,q as Ie,r as L,t as Ee,w as U}from"./chunk-WJC4Z27V.js";import{d as Be,e as R,g as W}from"./chunk-FZHIU2PC.js";import{$c as ye,Ba as ee,Cb as I,Db as te,Fc as C,Hc as p,Ib as n,Kc as ge,Nb as P,Oa as u,Pa as _,Qc as B,Rc as d,Sc as g,Tc as x,U as k,Ub as F,Uc as ne,Wb as et,Zb as b,Zc as Se,_c as xe,a as Xe,bd as tt,cd as V,dd as A,ic as f,id as a,jd as c,kc as me,kd as ke,lc as T,mc as v,oc as S,pc as Oe,ra as y,rc as be,s as se,sc as we,tc as l,uc as s,vc as M,wa as Pe,zc as O}from"./chunk-FD5XSWSL.js";var fe=class o{constructor(i,e,t){this.http=i;this.eventEmitterService=e;this.translateService=t}svgIconList=E;forgotPassword(i,e){return this.http.post("/forgotpassword",{username:i,option:e}).pipe(y(t=>{this.eventEmitterService.triggerSwalAlertToast.emit({messages:t.message,customClass:"custom-toast"})}))}recaptcha(i,e){return this.http.post("/recaptcha",{response:i,username:e})}forgotUsername(i){return this.http.post("/forgotusername",{email:i,option:"email"}).pipe(y(e=>{let t=`<div class="msg-email-icon">${this.svgIconList.emailIcon}</div> 2 <div class="content"> 3 <ul> 4 <li> 5 <h3 class="verification-title">${this.translateService.instant("EMAIL SENT")}</h3> 6 </li> 7 <li>${this.translateService.instant("We've sent your username to")} 8 </li> 9 <li class="email-text">${i}</li> 10 <br> 11 </div>`;this.eventEmitterService.triggerSwalAlertDialog.emit({messages:t,customClass:"custom-dialog-email-sent"})}))}forgotUsernameSms(i,e){return this.http.post("/forgotusername",{phone_number:i,country_code:e.toUpperCase(),option:"sms"}).pipe(y(t=>{this.eventEmitterService.triggerSwalAlertToast.emit({messages:t.message,customClass:"custom-toast"})}))}static \u0275fac=function(e){return new(e||o)(ee(De),ee(D),ee(Be))};static \u0275prov=Pe({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ot=o=>({"is-invalid":o});function bt(o,i){if(o&1){let e=O();l(0,"div",11)(1,"div",12),M(2,"span",13),a(3,"safeHtml"),l(4,"span",14),d(5),a(6,"translate"),a(7,"uppercase"),s()(),l(8,"div",15)(9,"button",16),C("click",function(){u(e);let r=p();return _(r.onCloseDialog())}),d(10,"\xD7"),s()()(),M(11,"mat-divider")}if(o&2){let e=p();n(2),f("innerHTML",c(3,2,e.svgIconList.forgotPasswordIcon),I),n(3),g(c(7,6,c(6,4,"Forgot Password")))}}var He=class o{constructor(i,e,t,r,h,X){this.dialogRef=i;this.authHttpService=e;this.eventEmitterService=t;this.matDialog=r;this.forgotCredentialsHttpService=h;this.router=X;this.initForm()}svgIconList=E;mode="dialog";form;recaptchaToken;recaptchaScriptURL=`https://www.google.com/recaptcha/api.js?render=${_e.recaptcha.siteKey}`;recaptchaScript={loaded:null,error:null};selectedOption=0;options={0:"email",1:"sms"};loading=!1;afterViewInit=!1;ngOnInit(){this.loadRecaptchaScript()}ngAfterViewInit(){setTimeout(()=>{this.afterViewInit=!0})}ngOnDestroy(){document.querySelector(`script[src="${this.recaptchaScriptURL}"]`)?.remove(),document.querySelector(".grecaptcha-badge").parentElement?.remove()}toLowerCase(i){this.form.get(i).setValue(this.form.get(i).value.toLowerCase())}onSubmit(){let i=()=>{this.forgotCredentialsHttpService.recaptcha(this.recaptchaToken,this.form.value.username).pipe(y(t=>{this.forgotCredentialsHttpService.forgotPassword(this.form.value.username,this.options[this.selectedOption]).pipe(y(r=>{this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,this.onCloseDialog(),this.router.navigate(["home"])}),k(r=>{throw this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,r})).subscribe()}),k(t=>{throw this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,t})).subscribe()};if(this.form.valid)if(this.eventEmitterService.fullScreenLoader.emit("increase"),this.loading=!0,this.recaptchaScript.loaded&&!this.recaptchaScript.error)this.recaptchaToken!=null?i():grecaptcha.ready(()=>{grecaptcha.execute(_e.recaptcha.siteKey,{action:"ForgotPassword"}).then(t=>{this.recaptchaToken=t,i()})});else{this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1;var e=` 12 <div class="msg-icon">${this.svgIconList.dangerIcon}</div> 13 <div class="content">Failed captcha</div> 14 `;this.eventEmitterService.triggerSwalAlertDialog.emit({messages:e,customClass:"error-custom-pop-up"})}}onSignup(){this.onCloseDialog(),this.matDialog.open(ce)}onCloseDialog(){this.dialogRef?.close()}initForm(){this.form=new G({username:new w(null,[m.pattern("(^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]+$)|([a-zA-Z])"),m.required,m.minLength(6),m.maxLength(16)])})}loadRecaptchaScript(){try{let i=document.createElement("script");i.src=this.recaptchaScriptURL,i.addEventListener("load",e=>{console.debug("Recaptcha Script loaded successfully"),this.recaptchaScript.loaded=!0,this.recaptchaScript.error=!1}),i.addEventListener("error",e=>{console.debug("Recaptcha Script loaded with error"),this.recaptchaScript.loaded=!0,this.recaptchaScript.error=!0}),document.body.appendChild(i)}catch(i){console.debug("Recaptcha Script fail to load : "+i),this.recaptchaScript.loaded=!1,this.recaptchaScript.error=!0}}static \u0275fac=function(e){return new(e||o)(P(N,8),P(Ce),P(D),P(ae),P(fe),P(ue))};static \u0275cmp=F({type:o,selectors:[["app-forgot-password-dialog"]],inputs:{mode:"mode"},decls:32,vars:41,consts:[["dialog",""],["username",""],[1,"form",3,"formGroup"],[1,"custom-mat-tab-group",3,"selectedIndexChange"],[3,"label"],[1,"input-container","username"],["type","text","inputmode","text","tabindex","1","formControlName","username","autocomplete","username","appAutoFocus","",1,"form-control",3,"keyup"],[3,"onClick","fontSize","disabled","loading","extraClass"],[1,"w-100"],[1,"new-user","text-center"],[1,"btn-link",3,"click"],[1,"title"],[1,"left","my-2"],[1,"forgot-password-icon",3,"innerHTML"],[1,"title-text"],[1,"right"],[3,"click"]],template:function(e,t){if(e&1){let r=O();l(0,"div",null,0),b(2,bt,12,8),l(3,"form",2)(4,"mat-tab-group",3),C("selectedIndexChange",function(X){return u(r),_(t.selectedOption=X)}),l(5,"mat-tab",4),a(6,"translate"),a(7,"titlecase"),l(8,"p"),d(9),a(10,"translate"),s()(),l(11,"mat-tab",4),a(12,"translate"),a(13,"uppercase"),l(14,"p"),d(15),a(16,"translate"),s()()(),l(17,"div",5)(18,"label"),d(19),a(20,"translate"),a(21,"uppercase"),s(),l(22,"input",6,1),C("keyup",function(){return u(r),_(t.toLowerCase("username"))}),s()(),l(24,"app-submit-button",7),C("onClick",function(){return u(r),_(t.onSubmit())}),s(),l(25,"div",8)(26,"p",9),d(27),a(28,"translate"),l(29,"a",10),C("click",function(){return u(r),_(t.onSignup())}),d(30),a(31,"translate"),s()()()()()}if(e&2){let r=B(1);T("--dialogWidth:"+(t.afterViewInit?r.offsetWidth:0)+"px;"),v(t.mode=="dialog"?"dialog-mode":"page-mode"),n(2),S(t.mode=="dialog"?2:-1),n(),f("formGroup",t.form),n(2),ge("label",c(7,21,c(6,19,"
14Email"))),n(4),g(c(10,23,"Enter your username below and we'll email you a link to create a new password.")),n(2),ge("label",c(13,27,c(12,25,"SMS"))),n(4),g(c(16,29,"Enter your username below and we'll text you a link to create a new password.")),n(4),g(c(21,33,c(20,31,"Username"))),n(3),v(V(39,Ot,t.form.get("username").touched&&t.form.get("username").invalid)),n(2),f("fontSize","calc(var(--dialogWidth)* 0.032)")("disabled",t.form.invalid)("loading",t.loading)("extraClass","mb-3"),n(3),x("",c(28,35,"Not registered yet?")," "),n(3),g(c(31,37,"Register Now"))}},dependencies:[oe,ie,H,W,R,U,L,Ie,K,re,z,j,q,Z,Y,J,Q,We,Ue,Re],styles:["[_nghost-%COMP%] .forgot-password-icon svg{fill:var(--mainColor1);width:calc(var(--dialogWidth) * .1)}[_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container{border:0!important}[_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab .mdc-tab__text-label, [_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab--active:hover .mdc-tab__text-label{font-family:Poppins Medium;color:var(--mainColor3);font-size:calc(var(--dialogWidth) * .035)}[_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab .mdc-tab-indicator .mdc-tab-indicator__content--underline, [_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab--active:hover .mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:var(--mainColor1)!important}[_nghost-%COMP%] mat-tab-group .mat-mdc-tab-body-wrapper p{margin:5% 0;font-family:Poppins;font-size:calc(var(--dialogWidth) * .03)}.dialog-mode[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%]{color:var(--mainColor3);background:var(--mainColor36)!important;border-radius:10px!important;width:calc(var(--mainWidth) * .35);min-width:430px;padding:calc(var(--dialogWidth) * .05)}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:start;width:85%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .forgot-password-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .forgot-password-icon[_ngcontent-%COMP%]{margin-right:5%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .05);font-weight:500}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;width:15%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:unset;background:transparent;color:var(--mainColor3);font-size:calc(var(--dialogWidth) * .08);padding:0}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus-visible, .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus-visible{outline:unset}.dialog-mode[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{border-top-color:3px solid var(--mainColor35);color:var(--mainColor35);border-top-width:calc(var(--dialogWidth) * .008);border-radius:10px;margin-bottom:0!important}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-bottom:5%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Poppins;font-size:calc(var(--dialogWidth) * .03);width:100%;margin-bottom:3%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .invali
14d-feedback[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .invalid-feedback[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .03);padding:0 1%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;aspect-ratio:1/1;height:2.6rem;position:absolute;right:1.2rem}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%]{transform:scale(1);transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%]{transform:scale(0);transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:var(--mainColor38)!important;color:var(--mainColor3);width:-webkit-fill-available;width:100%;height:-webkit-fill-available;height:100%;align-items:center;display:flex;justify-content:center;position:absolute}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-username[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-username[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .032)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-username[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-username[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;color:var(--mainColor1);transition:color .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-username[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-username[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--mainColor21)}"]})};var Ct=o=>({"is-invalid":o}),xt=o=>({selected:o});function yt(o,i){if(o&1){let e=O();l(0,"div",12)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),s(),l(5,"input",21),C("keyup",function(){u(e);let r=p();return _(r.toLowerCase("email"))}),s()()}if(o&2){let e=p();n(2),g(c(4,5,c(3,3,"Email"))),n(3),v(V(7,Ct,e.form.get("email").touched&&e.form.get("email").invalid))}}function kt(o,i){if(o&1){let e=O();l(0,"li",31),C("click",function(){let r=u(e).$implicit,h=p(2);return _(h.onSelectCountry(r.key))}),M(1,"img",26),s()}if(o&2){let e=i.$implicit,t=p(2);v(V(3,xt,t.form.get("country_code").value==e.key)),n(),f("src","/assets/flags/"+e.key+".png",te)}}function Vt(o,i){if(o&1&&(l(0,"div",13)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),s(),l(5,"div",22)(6,"div",23,1)(8,"button",24)(9,"div",25),M(10,"img",26),s()(),l(11,"ul",27),b(12,kt,2,5,"li",28),a(13,"keyvalue"),s()(),l(14,"div",15),M(15,"input",29),l(16,"span",30),d(17),a(18,"translate"),s()()()()),o&2){let e=B(7),t=p();
14n(2),g(c(4,10,c(3,8,"Phone Number"))),n(4),T("--btnGroupWidth:"+e.offsetWidth+"px"),n(4),f("src","/assets/flags/"+t.form.get("country_code").value+".png",te),n(2),f("ngForOf",ke(13,12,t.countries,t.returnZero)),n(3),v(V(17,Ct,t.form.get("phone_number").touched&&t.form.get("phone_number").invalid)),n(2),g(c(18,15,"Please enter a valid phone number."))}}var $e=class o{constructor(i,e,t,r,h,X,Mt){this.dialogRef=i;this.eventEmitterService=e;this.matDialog=t;this.forgotCredentialsHttpService=r;this.staticDataService=h;this.domainService=X;this.router=Mt;this.countries=this.staticDataService.getCountries(),this.mobileNumberRegex=this.staticDataService.getMobileNumberRegex(this.domainService.getCountryCode()),this.initForm()}svgIconList=E;form;loading=!1;selectedOption=0;countries;mobileNumberRegex;afterViewInit=!1;ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.afterViewInit=!0})}toLowerCase(i){this.form.get(i).setValue(this.form.get(i).value.toLowerCase())}onTabChange(i){this.selectedOption=i,i===0?(this.form.get("email").setValidators([m.required,m.pattern("[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$")]),this.form.get("phone_number").clearValidators()):(this.form.get("phone_number").setValidators([m.pattern(this.mobileNumberRegex),m.required]),this.form.get("email").clearValidators()),this.form.get("email").reset(),this.form.get("phone_number").reset(),this.form.get("email").updateValueAndValidity(),this.form.get("phone_number").updateValueAndValidity()}onSelectCountry(i){this.mobileNumberRegex=this.staticDataService.getMobileNumberRegex(i),this.form.get("phone_number").setValidators([m.pattern(this.mobileNumberRegex),m.required]),this.form.patchValue({country_code:i,phone_number:null}),this.form.get("phone_number").updateValueAndValidity()}returnZero(){return 0}onSubmit(){this.form.valid&&(this.eventEmitterService.fullScreenLoader.emit("increase"),this.loading=!0,(this.selectedOption===0?this.forgotCredentialsHttpService.forgotUsername(this.form.value.email):this.forgotCredentialsHttpService.forgotUsernameSms(this.form.value.phone_number,this.form.value.country_code)).pipe(y(e=>{this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,this.onCloseDialog(),this.router.navigate(["home"])}),k(e=>{throw this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,e})).subscribe())}onSignup(){this.onCloseDialog(),this.matDialog.open(ce)}onLogin(){this.onCloseDialog(),this.matDialog.open(Me)}onCloseDialog(){this.dialogRef?.close()}initForm(){this.form=new G({email:new w(null,[m.required,m.pattern("[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$")]),country_code:new w(this.domainService.getCountryCode()),phone_number:new w(null)})}static \u0275fac=function(e){return new(e||o)(P(N,8),P(D),P(ae),P(fe),P(Te),P(Ae),P(ue))};static \u0275cmp=F({type:o,selectors:[["app-forgot-username"]],decls:46,vars:47,consts:[["dialog",""],["btnGroup",""],[1,"dialog-mode"],[1,"title"],[1,"left","my-2"],[1,"forgot-username-icon",3,"innerHTML"],[1,"title-text"],[1,"right"],[3,"click"],[1,"form",3,"formGroup"],[1,"custom-mat-tab-group",3,"selectedIndexChange"],[3,"label"],[1,"input-container","username"],[1,"input-container","phone-number"],[3,"onClick","fontSize","disabled","loading","extraClass"],[1,"w-100"],[1,"new-user","text-center"],[1,"text-center","mb-2"],["type","button",1,"btn","sign-up-btn",3,"click"],[1,"back-to-login","text-center"],[1,"btn-link",3,"click"],["type","text","inputmode","text","tabindex","1","formControlName","email","autocomplete","email","appAutoFocus","",1,"form-control",3,"keyup"],[1,"d-flex","w-100"],[1,"btn-group","me-1"],["type","button","data-bs-toggle","dropdown",1,"btn","btn-secondary","dropdown-toggle","form-control"],[1,"selected-content","p-2"],[3,"src"],[1,"dropdown-menu"],["class","p-2",3,"class","click",4,"ngFor","ngForOf"],["type","text","inputmode","tel","tabindex","1","formControlName","phone_number","autocomplete","tel",1,"form-control"],[1,"invalid-feedback"],[1,"p-2",3,"click"]],template:function(e,t){if(e&1){let r=O();l(0,"div",2,0)(2,"div",3)(3,"div",4),M(4,"span",5),a(5,"safeHtml"),l(6,"span",6),d(7),a(8,"translate"),a(9,"uppercase"),s()(),l(10,"div",7)(11,"button",8),C("click",function(){return u(r),_(t.onCloseDialog())}),d(12,"\xD7"),s()()(),M(13,"mat-divider"),l(14,"form",9)(15,"mat-tab-group",10),C("selectedIndexChange",function(X){return u(r),_(t.onTabChange(X))}),l(16,"mat-tab",11),a(17,"translate"),a(18,"titlecase"),l(19,"p"),d(20),a(21,"translate"),s()(),l(22,"mat-tab",11),a(23,"translate"),a(24,"uppercase"),l(25,"p"),d(26),a(27,"translate"),s()()(),b(28,yt,6,9,"div",12)(29,Vt,19,19,"div",13),l(30,"app-submit-button",14),C("onClick",function(){return u(r),_(t.onSubmit())}),s(),l(31,"div",15)(32,"p",16),d(33),a(34,"translate"),s(),l(35,"div",17)(36,"button",18),C("click",function(){return u(r),_(t.onSignup())}),d(37),a(38,"translate"),a(39,"uppercase"),s()(),l(40,"p",19),d(41),a(42,"translate"),l(43,"a",20),C("click",function(){return u(r),_(t.onLogin())}),d(44),a(45,"translate"),s()()()()()}if(e&2){let r=B(1);T("--dialogWidth:"+(t.afterViewInit?r.offsetWidth:0)+"px;"),n(4),f("innerHTML",c(5,19,t.svgIconList.forgotPasswordIcon),I),n(3),g(c(9,23,c(8,21,"Forgot Username"))),n(7),f("formGroup",t.form),n(2),ge("label",c(18,27,c(17,25,"Email"))),n(4),g(c(21,29,"Enter your email address below and we'll email you a link to create a new password.")),n(2),ge("label",c(24,33,c(23,31,"SMS"))),n(4),g(c(27,35,"Please enter your mobile number below. You will receive a SMS to create a new password on your mobile device.")),n(2),S(t.selectedOption===0?28:-1),n(),S(t.selectedOption===1?29:-1),n(),f("fontSize","calc(var(--dialogWidth)* 0.032)")("disabled",t.form.invali
14d)("loading",t.loading)("extraClass","mb-3"),n(3),g(c(34,37,"Do not have an account yet?")),n(4),g(c(39,41,c(38,39,"Sign Up"))),n(4),x("",c(42,43,"Back to")," "),n(3),g(c(45,45,"Login"))}},dependencies:[oe,ie,We,Ue,Re,H,W,R,U,Ve,L,Ie,Ee,K,re,z,j,q,Z,Y,J,Q],styles:['[_nghost-%COMP%] .forgot-username-icon svg{fill:var(--mainColor1);width:calc(var(--dialogWidth) * .1)}[_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container{border:0!important}[_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab .mdc-tab__text-label, [_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab--active:hover .mdc-tab__text-label{font-family:Poppins Medium;color:var(--mainColor3);font-size:calc(var(--dialogWidth) * .035)}[_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab .mdc-tab-indicator .mdc-tab-indicator__content--underline, [_nghost-%COMP%] mat-tab-group mat-tab-header .mat-mdc-tab-label-container .mdc-tab--active:hover .mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:var(--mainColor1)!important}[_nghost-%COMP%] mat-tab-group .mat-mdc-tab-body-wrapper p{margin:5% 0;font-family:Poppins;font-size:calc(var(--dialogWidth) * .03)}.dialog-mode[_ngcontent-%COMP%]{color:var(--mainColor3);background:var(--mainColor36)!important;border-radius:10px!important;width:calc(var(--mainWidth) * .35);min-width:430px;padding:calc(var(--dialogWidth) * .05)}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:start;width:85%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .forgot-username-icon[_ngcontent-%COMP%]{margin-right:5%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .05);font-weight:500}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;width:15%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:unset;background:transparent;color:var(--mainColor3);font-size:calc(var(--dialogWidth) * .08);padding:0}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus-visible{outline:unset}.dialog-mode[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{border-top-color:3px solid var(--mainColor35);color:var(--mainColor35);border-top-width:calc(var(--dialogWidth) * .008);border-radius:10px}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-bottom:5%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Poppins;font-size:calc(var(--dialogWidth) * .03);width:100%;margin-bottom:3%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .invali
14d-feedback[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .03);padding:0 1%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center;aspect-ratio:1/1;height:2.6rem;position:absolute;right:1.2rem}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%]{transform:scale(1);transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%]{transform:scale(0);transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:var(--mainColor38)!important;color:var(--mainColor3);width:-webkit-fill-available;width:100%;height:-webkit-fill-available;height:100%;align-items:center;display:flex;justify-content:center;position:absolute}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.phone-number[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{width:var(--btnGroupWidth);padding:0}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.phone-number[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{transition:unset;-webkit-transition:unset}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.phone-number[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background:var(--mainColor27)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.phone-number[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{height:3rem;display:flex;align-items:center;justify-content:center}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.phone-number[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:-webkit-fill-available;height:100%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .032);margin-bottom:3%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .sign-up-btn[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .032);border-radius:calc(var(--mainWidth) / 15 * .1);height:calc(var(--mainWidth) / 15 * .5);aspect-ratio:2.5/1;transition:background .2s linear,color .2s linear;-webkit-transition:background .2s linear,color .2s linear;background:var(--mainColor8);color:var(--mainColor10)!important;border:none;z-index:0;position:relative}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .sign-up-btn[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;opacity:0;transition:opacity .2s linear;z-index:-1;background:var(--mainColor9);box-shadow:0 2px 10px var(--mainColor9);border-radius:calc(var(--mainWidth) / 15 * .1)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .sign-up-btn[_ngcontent-%COMP%]:not(:disabled):hover:after{opacity:1}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .sign-up-btn[_ngcontent-%COMP%]:focus, .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .sign-up-btn[_ngcontent-%COMP%]:focus-visible{outline:unset}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .back-to-login[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .032);margin-top:3%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .back-to-login[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;color:var(--mainColor1);transition:color .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .back-to-login[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--mainColor21)}']})};var Ge=class o{constructor(i,e,t){this.http=i;this.eventEmitterService=e;this.aesService=t}requestOtp(i){return this.http.post("/account/unlock/otp/request",{username:i}).pipe(y(e=>{if(e.data?.otp_already_sent){let t=Array.isArray(e.message)?e.message.join("<br>"):e.message;this.eventEmitterService.triggerSwalAlertDialog.emit({messages:`<div class="msg-icon">${E.dangerIcon}</div><div class="content">${t}</div>`,customClass:"error-custom-pop-up"})}else this.eventEmitterService.triggerSwalAlertToast.emit({messages:e.message,customClass:"custom-toast"})}))}verifyOtp(i,e){return this.http.post("/account/unlock/otp/verify",{username:i,otp:e})}resetPassword(i,e,t){return this.http.post("/account/unlock/reset-password",{unlock_token:i,password:this.aesService.encryptWithReqSignKey(e),password_confirmation:this.aesService.encryptWithReqSignKey(t)})}static \u0275fac=function(e){return new(e||o)(ee(De),ee(D),ee(at))};static \u0275prov=Pe({token:o,factory:o.\u0275fac,providedIn:"root"})};function Et(o,i){if(o&1){let e=O();l(0,"div",3),M(1,"span",4),a(2,"safeHtml"),l(3,"h2",5),d(4),a(5,"translate"),s(),l(6,"p",6),d(7),a(8,"translate"),s(),l(9,"p",6),d(10),a(11,"translate"),s()(),l(12,"app-submit-button",7),C("onClick",function(){u(e);let r=p();return _(r.startVerify())}),s(),l(13,"button",8),C("click",function(){u(e);let r=p();return _(r.backToLogin())}),d(14),a(15,"translate"),s()}if(o&2){let e=p();n(),f("innerHTML",c(2,7,e.svgIconList.lockIcon),I),n(3),g(c(5,9,"ACCOUNT TEMPORARILY SUSPENDED")),n(3),g(c(8,11,"Your account has been temporarily suspended due to multiple failed login attempts.")),n(3),g(c(11,13,"To protect your account, please verify your identity via OTP sent to your registered mobile number.")),n(2),f("name","VERIFY VIA OTP")("loading",e.requestOtpLoading),n(2),x("\u2190 ",c(15,15,"Back to Login"),"")}}function Dt(o,i){o&1&&(l(0,"span",12),M(1,"i",15),s())}function Bt(o,i){if(o&1&&(l(0,"span",12),d(1),a(2,"translate"),s()),o&2){let e=p(2);n(),ne("",c(2,2,"Resend OTP in")," ",e.resendCountdownText,"")}}function Tt(o,i){if(o&1){let e=O();l(0,"a",16),C("click",function(){u(e);let r=p(2);return _(r.resendOtp())}),d(1),a(2,"translate"),s()}o&2&&(n(),g(c(2,1,"Resend OTP")))}function At(o,i){if(o&1){let e=O();l(0,"div",3),M(1,"span",4),a(2,"safeHtml"),l(3,"h2",5),d(4),a(5,"translate"),s(),l(6,"p",6),d(7),a(8,"translate"),s()(),l(9,"div",9)(10,"label"),d(11),a(12,"translate"),a(13,"uppercase"),s(),l(14,"input",10),ye("ngModelChange",function(r){u(e);let h=p();return xe(h.otpValue,r)||(h.otpValue=r),_(r)}),s(),l(15,"p",11),d(16),a(17,"translate"),b(18,Dt,2,0,"span",12)(19,Bt,3,4,"span",12)(20,Tt,3,3,"a",13),s()(),l(21,"app-submit-button",14),C("onClick",function(){u(e);let r=p();return _(r.verifyOtp())}),s(),l(22,"button",8),C("click",function(){u(e);let r=p();return _(r.backToLogin())}),d(23),a(24,"translate"),s()}if(o&2){let e=p();n(),f("innerHTML",c(2,11,e.svgIconList.lockIcon),I),n(3),g(c(5,13,"OTP VERIFICATION")),n(3),g(c(8,15,"Enter the 6-digit code sent to your registered mobile number.")),n(4),g(c(13,19,c(12,17,"OTP"))),n(3),Se("ngModel",e.otpValue),n(2),x(" ",c(17,21,"Didn't receive the OTP?")," "),n(2),S(e.requestOtpLoading?18:e.resendCountdown>0?19:20),n(3),f("name","VERIFY")("disabled",e.otpValue==null||e.otpValue==null||(e.otpValue+"").length<6)("loading",e.verifyOtpLoading),n(2),x("\u2190 ",c(24,23,"Back to Login"),"")}}function Ft(o,i){o&1&&(l(0,"span",24),d(1),a(2,"translate"),s()),o&2&&(n(),g(c(2,1,"Passwords do not match.")))}function Lt(o,i){if(o&1){let e=O();l(0,"div",3),M(1,"span",4),a(2,"safeHtml"),l(3,"h2",5),d(4),a(5,"translate"),s(),l(6,"p",6),d(7),a(8,"translate"),s()(),l(9,"div",17)(10,"div",9)(11,"label"),d(12),a(13,"translate"),a(14,"uppercase"),s(),l(15,"div",18),M(16,"input",19),l(17,"div",20),C("click",function(){u(e);let r=p();return _(r.toggleNewPassword())}),M(18,"i",21)(19,"i",22),s()()(),l(20,"div",9)(21,"label"),d(22),a(23,"translate"),a(24,"uppercase"),s(),l(25,"div",18),M(26,"input",23),l(27,"div",20),C("click",function(){u(e);let r=p();return _(r.toggleConfirmPassword())}),M(28,"i",21)(29,"i",22),s()(),b(30,Ft,3,3,"span",24),s(),l(31,"app-submit-button",14),C("onClick",function(){u(e);let r=p();return _(r.submitReset())}),s()()}if(o&2){let e=p();n(),f("innerHTML",c(2,20,e.svgIconList.lockIcon),I),n(3),g(c(5,22,"SET NEW PASSWORD")),n(3),g(c(8,24,"Please set a new password for your account.")),n(2),f("formGroup",e.resetForm),n(3),g(c(14,28,c(13,26,"New Password"))),n(4),f("type",e.newPasswordType),n(2),v(e.showNewPassword?"hide-icon":"show-icon"),n(),v(e.showNewPassword?"show-icon":"hide-icon"),n(3),g(c(24,32,c(23,30,"Confirm Password"))),n(4),f("type",e.confirmPasswordType),n(2),v(e.showConfirmPassword?"hide-icon":"show-icon"),n(),v(e.showConfirmPassword?"show-icon":"hide-icon"),n(),S(e.passwordMismatch?3
140:-1),n(),f("name","SUBMIT")("disabled",e.resetForm.invalid||e.passwordMismatch)("loading",e.resetLoading)}}function Ut(o,i){if(o&1){let e=O();l(0,"div",3),M(1,"span",25),a(2,"safeHtml"),l(3,"h2",5),d(4),a(5,"translate"),s(),l(6,"p",6),d(7),a(8,"translate"),s(),l(9,"p",6),d(10),a(11,"translate"),s()(),l(12,"app-submit-button",26),C("onClick",function(){u(e);let r=p();return _(r.backToLogin())}),s()}if(o&2){let e=p();n(),f("innerHTML",c(2,5,e.svgIconList.greenTickIcon),I),n(3),g(c(5,7,"PASSWORD RESET SUCCESSFUL")),n(3),g(c(8,9,"Your password has been reset successfully.")),n(3),g(c(11,11,"Please log in with your new password.")),n(2),f("name","BACK TO LOGIN")}}var Ze=class o{constructor(i,e,t,r){this.dialogRef=i;this.data=e;this.accountUnlockHttpService=t;this.eventEmitterService=r}svgIconList=E;step="info";requestOtpLoading=!1;verifyOtpLoading=!1;resetLoading=!1;otpValue;unlockToken="";defaultResendInterval=60;resendCountdown=0;countdownTimer=null;newPasswordType="password";showNewPassword=!1;confirmPasswordType="password";showConfirmPassword=!1;resetForm=new G({password:new w(null,[m.required,m.minLength(6)]),password_confirmation:new w(null,[m.required,m.minLength(6)])});get passwordMismatch(){let{password:i,password_confirmation:e}=this.resetForm.value;return!!i&&!!e&&i!==e}toggleNewPassword(){this.showNewPassword=!this.showNewPassword,this.newPasswordType=this.showNewPassword?"text":"password"}toggleConfirmPassword(){this.showConfirmPassword=!this.showConfirmPassword,this.confirmPasswordType=this.showConfirmPassword?"text":"password"}get resendCountdownText(){let i=Math.floor(this.resendCountdown/60),e=this.resendCountdown%60;return`${i.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`}startResendCountdown(i){this.clearCountdown(),this.resendCountdown=i>0?i:this.defaultResendInterval,this.countdownTimer=setInterval(()=>{this.resendCountdown-=1,this.resendCountdown<=0&&this.clearCountdown()},1e3)}clearCountdown(){this.countdownTimer&&(clearInterval(this.countdownTimer),this.countdownTimer=null)}ngOnDestroy(){this.clearCountdown()}startVerify(){this.requestOtpLoading=!0,this.accountUnlockHttpService.requestOtp(this.data.username).pipe(y(i=>{this.requestOtpLoading=!1,this.step="otp",this.startResendCountdown(+i.data?.otp_request_interval||this.defaultResendInterval)}),k(()=>(this.requestOtpLoading=!1,se))).subscribe()}resendOtp(){this.resendCountdown>0||this.requestOtpLoading||(this.requestOtpLoading=!0,this.accountUnlockHttpService.requestOtp(this.data.username).pipe(y(i=>{this.requestOtpLoading=!1,this.startResendCountdown(+i.data?.otp_request_interval||this.defaultResendInterval)}),k(()=>(this.requestOtpLoading=!1,se))).subscribe())}verifyOtp(){this.otpValue==null||this.otpValue==null||(this.otpValue+"").length<6||(this.verifyOtpLoading=!0,this.accountUnlockHttpService.verifyOtp(this.data.username,this.otpValue).pipe(y(i=>{this.verifyOtpLoading=!1;let e=i.data?.unlock_token;if(!e){this.eventEmitterService.triggerSwalAlertToast.emit({messages:["Verification failed. Please try again."],customClass:"custom-toast"});return}this.unlockToken=e,this.step="reset"}),k(()=>(this.verifyOtpLoading=!1,se))).subscribe())}
14submitReset(){if(this.resetForm.invalid||this.passwordMismatch||this.resetLoading)return;let{password:i,password_confirmation:e}=this.resetForm.value;this.resetLoading=!0,this.accountUnlockHttpService.resetPassword(this.unlockToken,i,e).pipe(y(()=>{this.resetLoading=!1,this.step="done"}),k(()=>(this.resetLoading=!1,se))).subscribe()}backToLogin(){this.dialogRef.close(this.step==="done")}static \u0275fac=function(e){return new(e||o)(P(N),P(rt),P(Ge),P(D))};static \u0275cmp=F({type:o,selectors:[["app-account-unlock-dialog"]],decls:8,vars:3,consts:[["dialog",""],[1,"dialog-mode","account-unlock"],["type","button","aria-label","Close",1,"close-btn",3,"click"],[1,"hero"],[1,"icon-badge",3,"innerHTML"],[1,"au-title"],[1,"au-desc"],[3,"onClick","name","loading"],["type","button",1,"link-button",3,"click"],[1,"input-container"],["type","text","inputmode","numeric","maxlength","6","tabindex","1","appAutoFocus","",1,"form-control",3,"ngModelChange","ngModel"],[1,"resend-hint"],[1,"resend-timer"],[1,"resend-link"],[3,"onClick","name","disabled","loading"],[1,"fa-solid","fa-spinner","fa-spin"],[1,"resend-link",3,"click"],[3,"formGroup"],[1,"password-row"],["tabindex","1","appAutoFocus","","formControlName","password",1,"form-control",3,"type"],[1,"reveal-icon",3,"click"],[1,"fa-solid","fa-eye-slash"],[1,"fa-solid","fa-eye"],["tabindex","2","formControlName","password_confirmation",1,"form-control",3,"type"],[1,"error-text"],[1,"icon-badge","success",3,"innerHTML"],[3,"onClick","name"]],template:function(e,t){if(e&1){let r=O();l(0,"div",1,0)(2,"button",2),C("click",function(){return u(r),_(t.backToLogin())}),d(3,"\xD7"),s(),b(4,Et,16,17)(5,At,25,25)(6,Lt,32,34)(7,Ut,13,13),s()}if(e&2){let r,h=B(1);T("--dialogWidth:"+h.offsetWidth+"px;"),n(4),S((r=t.step)==="info"?4:r==="otp"?5:r==="reset"?6:r==="done"?7:-1)}},dependencies:[U,L,K,z,j,q,ct,Z,Y,Le,Fe,W,R,J,Q,H],styles:["[_nghost-%COMP%] .icon-badge svg{width:calc(var(--dialogWidth) * .13);height:calc(var(--dialogWidth) * .13);fill:#f0464b}[_nghost-%COMP%] .icon-badge.success svg{width:calc(var(--dialogWidth) * .14);height:calc(var(--dialogWidth) * .14);
14fill:#2ecc71}.dialog-mode[_ngcontent-%COMP%]{position:relative;color:var(--mainColor3);background:var(--mainColor36)!important;border-radius:14px!important;width:calc(var(--mainWidth) * .32);min-width:420px;padding:calc(var(--dialogWidth) * .07) calc(var(--dialogWidth) * .06) calc(var(--dialogWidth) * .06);text-align:center}.dialog-mode[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:calc(var(--dialogWidth) * .035);right:calc(var(--dialogWidth) * .04);border:0;background:transparent;color:var(--mainColor3);opacity:.6;font-size:calc(var(--dialogWidth) * .06);line-height:1;cursor:pointer;transition:opacity .15s ease}.dialog-mode[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{opacity:1}.dialog-mode[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:focus-visible{outline:unset}.dialog-mode[_ngcontent-%COMP%] .hero[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.dialog-mode[_ngcontent-%COMP%] .hero[_ngcontent-%COMP%] .icon-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:calc(var(--dialogWidth) * .24);height:calc(var(--dialogWidth) * .24);margin:calc(var(--dialogWidth) * .02) 0 calc(var(--dialogWidth) * .045);border-radius:50%;background:#f0464b1f}.dialog-mode[_ngcontent-%COMP%] .hero[_ngcontent-%COMP%] .icon-badge.success[_ngcontent-%COMP%]{background:#2ecc711f}.dialog-mode[_ngcontent-%COMP%] .hero[_ngcontent-%COMP%] .au-title[_ngcontent-%COMP%]{margin:0 0 calc(var(--dialogWidth) * .035);font-family:Poppins,sans-serif;font-weight:600;font-size:calc(var(--dialogWidth) * .05);letter-spacing:.02em;line-height:1.3}.dialog-mode[_ngcontent-%COMP%] .hero[_ngcontent-%COMP%] .au-desc[_ngcontent-%COMP%]{margin:0 0 calc(var(--dialogWidth) * .02);max-width:90%;font-family:Poppins Light,sans-serif;font-size:calc(var(--dialogWidth) * .03);line-height:1.55;opacity:.85}.dialog-mode[_ngcontent-%COMP%] app-submit-button[_ngcontent-%COMP%]{display:block;margin-top:calc(var(--dialogWidth) * .05)}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{text-align:left;margin-top:calc(var(--dialogWidth) * .045)}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:calc(var(--dialogWidth) * .02);font-family:Poppins;font-size:calc(var(--dialogWidth) * .03)}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .otp-row[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .password-row[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .password-row[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{flex:1;padding-right:2.5rem}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .password-row[_ngcontent-%COMP%] .reveal-icon[_ngcontent-%COMP%]{position:absolute;right:.85rem;cursor:pointer;color:var(--mainColor3);opacity:.7}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .password-row[_ngcontent-%COMP%] .reveal-icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%]{display:inline-block}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .password-row[_ngcontent-%COMP%] .reveal-icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%]{display:none}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .resend-hint[_ngcontent-%COMP%]{margin-top:calc(var(--dialogWidth) * .025);font-family:Poppins Light;font-size:calc(var(--dialogWidth) * .028);opacity:.85}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .resend-hint[_ngcontent-%COMP%] .resend-link[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .resend-hint[_ngcontent-%COMP%] .resend-timer[_ngcontent-%COMP%]{margin-left:.35rem;color:var(--mainColor1);font-weight:600}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .resend-hint[_ngcontent-%COMP%] .resend-link[_ngcontent-%COMP%]{cursor:pointer}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .error-text[_ngcontent-%COMP%]{display:block;margin-top:calc(var(--dialogWidth) * .015);font-size:calc(var(--dialogWidth) * .028);color:#f0464b}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button, .dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.dialog-mode[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .request-otp-button[_ngcontent-%COMP%]{position:absolute;right:var(--bs-border-width);background:var(--mainColor11);min-height:2.85rem;height:calc(var(--mainWidth) * .038);border:0;border-radius:0 var(--bs-border-radius) var(--bs-border-radius) 0;font-size:calc(var(--mainWidth) * .01);font-family:Poppins;color:var(--mainColor13);aspect-ratio:3/1}.dialog-mode[_ngcontent-%COMP%] .link-button[_ngcontent-%COMP%]{display:block;margin:calc(var(--dialogWidth) * .04) auto 0;background:transparent;border:none;cursor:pointer;color:var(--mainColor3);
14opacity:.75;font-family:Poppins;font-size:calc(var(--dialogWidth) * .032);transition:opacity .15s ease}.dialog-mode[_ngcontent-%COMP%] .link-button[_ngcontent-%COMP%]:hover{opacity:1}"]})};var ft=o=>({"is-invalid":o}),Rt=o=>({"d-block":o});function Wt(o,i){if(o&1){let e=O();l(0,"div",14)(1,"div",15),M(2,"span",16),a(3,"safeHtml"),l(4,"span",17),d(5),a(6,"translate"),a(7,"uppercase"),s()(),l(8,"div",18)(9,"button",19),C("click",function(){u(e);let r=p();return _(r.onCloseDialog())}),d(10,"\xD7"),s()()(),M(11,"mat-divider")}if(o&2){let e=p();n(2),f("innerHTML",c(3,2,e.svgIconList.loginIcon),I),n(3),g(c(7,6,c(6,4,"Login")))}}function Ht(o,i){if(o&1){let e=O();l(0,"div",13)(1,"p",20),d(2),a(3,"translate"),l(4,"a",21),C("click",function(){u(e);let r=p();return _(r.onForgotPassword())}),d(5),a(6,"translate"),s(),d(7),a(8,"translate"),l(9,"a",21),C("click",function(){u(e);let r=p();return _(r.onForgotUsername())}),d(10),a(11,"translate"),s(),d(12,"?"),s(),l(13,"p",22),d(14),a(15,"translate"),l(16,"a",21),C("click",function(){u(e);let r=p();return _(r.onSignUp())}),d(17),a(18,"translate"),s()()()}o&2&&(n(2),x("",c(3,6,"Forgot")," "),n(3),x(" ",c(6,8,"Password"),""),n(2),x(" ",c(8,10,"or")," "),n(3),x(" ",c(11,12,"Username"),""),n(4),x("",c(15,14,"New User?")," "),n(3),x("",c(18,16,"Sign Up"),"?"))}function Nt(o,i){if(o&1){let e=O();l(0,"div",13)(1,"p",23),d(2),a(3,"translate"),l(4,"a",21),C("click",function(){u(e);let r=p();return _(r.onForgotPassword())}),d(5),a(6,"translate"),s(),d(7),a(8,"translate"),l(9,"a",21),C("click",function(){u(e);let r=p();return _(r.onForgotUsername())}),d(10),a(11,"translate"),s(),d(12,"?"),s()(),M(13,"mat-divider"),l(14,"div",24)(15,"p",25),d(16),a(17,"translate"),s(),l(18,"button",26),C("click",function(){u(e);let r=p();return _(r.onSignUp())}),d(19),a(20,"translate"),a(21,"uppercase"),s()()}o&2&&(n(2),x("",c(3,6,"Forgot")," "),n(3),x(" ",c(6,8,"Password"),""),n(2),x(" ",c(8,10,"or")," "),n(3),x(" ",c(11,12,"Username"),""),n(6),g(c(17,14,"Not registered yet?")),n(3),g(c(21,18,c(20,16,"Sign Up"))))}var Me=class o{constructor(i,e,t,r){this.dialogRef=i;this.authHttpService=e;this.matDialog=t;this.eventEmitterService=r;this.initForm()}mode="dialog";svgIconList=E;form;passwordType="password";showPassowrd=!1;loading=!1;afterViewInit=!1;ngAfterViewInit(){setTimeout(()=>{this.afterViewInit=!0})}toLowerCase(i){this.form.get(i).setValue(this.form.get(i).value?.toLowerCase())}onShowOrHidePassword(){this.showPassowrd=!this.showPassowrd,this.showPassowrd?this.passwordType="text":this.passwordType="password"}onLogin(){if(this.form.markAllAsTouched(),this.form.valid){this.eventEmitterService.fullScreenLoader.emit("increase"),this.loading=!0;let{username:i,password:e}=this.form.value;this.authHttpService.login(i,e).pipe(y(t=>{this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,this.onCloseDialog(!0)}),k(t=>{if(this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,t?.status===423&&t?.error?.data?.account_status==="temporarily_suspended")return this.onCloseDialog(),this.matDialog.open(Ze,{data:{username:i},panelClass:"account-unlock-dialog-panel"}).afterClosed().subscribe(()=>{this.matDialog.open(o)}),se;throw t})).subscribe()}}onForgotPassword(){this.onCloseDialog(),this.matDialog.open(He)}onForgotUsername(){this.onCloseDialog(),this.matDialog.open($e)}onSignUp(){this.onCloseDialog(),this.matDialog.open(ce)}onCloseDialog(i=!1){this.dialogRef?.close(i)}initForm(){this.form=new G({username:new w(null,[m.required,m.minLength(6),m.maxLength(16)]),password:new w(null,[m.required,m.minLength(6)])})}static \u0275fac=function(e){return new(e||o)(P(N,8),P(Ce),P(ae),P(D))};static \u0275cmp=F({type:o,selectors:[["app-login-dialog"]],inputs:{mode:"mode"},decls:27,vars:42,consts:[["dialog",""],["username",""],[1,"form",3,"formGroup"],[1,"input-container","username"],["type","text","inputmode","text","tabindex","1","formControlName","username","autocomplete","username","appAutoFocus","",1,"form-control",3,"keyup"],[1,"input-container","password"],[1,"d-flex","align-items-center"],["inputmode","text","tabindex","2","formControlName","password","autocomplete","new-password",1,"form-control",3,"type"],[1,"icon",3,"click"],[1,"fa-solid","fa-eye-slash"],[1,"fa-solid","fa-eye"],[1,"invalid-feedback"],[3,"onClick","name","fontSize","disabled","loading","extraClass"],[1,"w-100","d-flex"],[1,"title"],[1,"left","my-2"],[1,"login-icon",3,"innerHTML"],[1,"title-text"],[1,"right"],[3,"click"],[1,"forgot-password","w-50","text-start"],[1,"btn-link",3,"click"],[1,"new-user","w-50","text-end"],[1,"forgot-password","w-100","text-start","m-0"],[1,"w-100","d-flex","flex-column","mt-4","justify-conten-center","align-items-center"],[1,"not-registered-yet","w-100","text-center"],[1,"btn","btn-signup",3,"click"]],template:function(e,t){if(e&1){let r=O();l(0,"div",null,0),b(2,Wt,12,8),l(3,"form",2)(4,"div",3)(5,"label"),d(6),a(7,"translate"),a(8,"uppercase"),s(),l(9,"input",4,1),C("keyup",function(){return u(r),_(t.toLowerCase("username"))}),s()(),l(11,"div",5)(12,"label"),d(13),a(14,"translate"),a(15,"uppercase"),s(),l(16,"div",6),M(17,"input",7),l(18,"div",8),C("click",function(){return u(r),_(t.onShowOrHidePassword())}),M(19,"i",9)(20,"i",10),s()(),l(21,"span",11),d(22),a(23,"translate"),s()(),l(24,"app-submit-button",12),C("onClick",function(){return u(r),_(t.onLogin())}),s(),b(25,Ht,19,18,"div",13)(26,Nt,22,20),s()()}if(e&2){let r,h=B(1);T("--dialogWidth:"+(t.afterViewInit?h.offsetWidth:0)+"px;"),v(t.mode=="dialog"?"dialog-mode":"page-mode"),n(2),S(t.mode=="dialog"?2:-1),n(),f("formGroup",t.form),n(3),g(c(8,28,c(7,26,"Username"))),n(3),v(V(36,ft,t.form.get("username").touched&&t.form.get("username").invalid)),n(4),g(c(15,32,c(14,30,"Password"))),n(4),v(V(38,ft,t.form.get("password").touched&&t.form.get("password").invalid)),f("type",t.passwordType),n(2),v(t.showPassowrd?"hide-icon":"show-icon"),n(),v(t.showPassowrd?"show-icon":"hide-icon"),n(),v(V(40,Rt,((r=t.form.get("password").value)==null?null:r.length)>0&&t.form.get("password").touched&&t.form.get("password").invalid)),n(),g(c(23,34,"At least 6 characters")),n(2),f("name","Login")("fontSize","calc(var(--dialogWidth)* 0.032)")("disabled",t.form.invali
14d)("loading",t.loading)("extraClass","mb-3"),n(),S(t.mode=="dialog"?25:26)}},dependencies:[oe,ie,H,W,R,U,L,K,re,z,j,q,Z,Y,J,Q],styles:["[_nghost-%COMP%] .login-icon svg{fill:var(--mainColor1);width:calc(var(--dialogWidth) * .1)}.dialog-mode[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%]{color:var(--mainColor3);background:var(--mainColor36)!important;border-radius:10px!important;width:calc(var(--mainWidth) * .35);min-width:430px;padding:calc(var(--dialogWidth) * .05)}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:start;width:85%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .login-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .login-icon[_ngcontent-%COMP%]{margin-right:5%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .05);font-weight:500}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;width:15%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:unset;background:transparent;color:var(--mainColor3);font-size:calc(var(--dialogWidth) * .08);padding:0}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus-visible, .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus-visible{outline:unset}.dialog-mode[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{border-top-color:3px solid var(--mainColor35);color:var(--mainColor35);border-top-width:calc(var(--dialogWidth) * .008);border-radius:10px}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-bottom:5%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-family:Poppins;font-size:calc(var(--dialogWidth) * .03)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:100%;margin-bottom:3%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .invali
14d-feedback[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .invalid-feedback[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .03);padding:0 1%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:none}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input.is-invalid[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input.is-invalid[_ngcontent-%COMP%]{background-image:unset!important}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{flex:none;align-items:center;display:flex;justify-content:center;aspect-ratio:1/1;min-height:3rem;height:calc(var(--mainWidth) * .04);margin-left:calc(-6% - 1.5rem)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%]{transform:scale(1);transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%]{transform:scale(0);visibility:hidden;transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:var(--mainColor38)!important;color:var(--mainColor3);align-items:center;display:flex;justify-content:center;position:absolute}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .032)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;color:var(--mainColor1);transition:color .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .new-user[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--mainColor21)}.page-mode[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .not-registered-yet[_ngcontent-%COMP%]{font-family:Poppins Light;font-size:calc(var(--dialogWidth) * .03)}.page-mode[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .not-registered-yet[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;color:var(--mainColor1);transition:color .2s ease}.page-mode[_ngcontent-%COMP%] .forgot-password[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .page-mode[_ngcontent-%COMP%] .not-registered-yet[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--mainColor21)}.page-mode[_ngcontent-%COMP%] .btn-signup[_ngcontent-%COMP%]{border-radius:5px;aspect-ratio:2.5/1;font-size:calc(var(--dialogWidth) * .03);background:none;color:var(--mainColor3)!important;border:.225vh solid var(--mainColor14);width:30%}.page-mode[_ngcontent-%COMP%] .btn-signup[_ngcontent-%COMP%]:hover{background:var(--mainColor14)}"]})};var Ye=class o{_isFocus=!1;constructor(){}get isFocus(){return this._isFocus}onFocus(){this._isFocus=!0}onBlur(){this._isFocus=!1}static \u0275fac=function(e){return new(e||o)};static \u0275dir=et({type:o,selectors:[["","appDetectFocus",""]],hostVars:2,hostBindings:function(e,t){e&1&&C("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()}),e&2&&me("is-focus",t.isFocus)},exportAs:["detectFocus"]})};var le=(o,i)=>({"is-valid":o,"is-invalid":i}),Je=(o,i)=>({"is-invalid":o,"is-valid":i}),ht=o=>({"d-block":o}),zt=o=>({selected:o}),jt=o=>({"is-valid":o}),qt=()=>({standalone:!0});function $t(o,i){if(o&1){let e=O();l(0,"div",35)(1,"div",36),M(2,"span",37),a(3,"safeHtml"),l(4,"span",38),d(5),a(6,"translate"),a(7,"uppercase"),s()(),l(8,"div",39)(9,"button",40),C("click",function(){u(e);let r=p();return _(r.onCloseDialog())}),d(10,"\xD7"),s()()(),M(11,"mat-divider")}if(o&2){let e=p();n(2),f("innerHTML",c(3,2,e.svgIconList.registerIcon),I),n(3),g(c(7,6,c(6,4,"Registration")))}}function Gt(o,i){o&1&&(l(0,"span",18),d(1),a(2,"translate"),s()),o&2&&(n(),g(c(2,1,"Username is already taken")))}function Zt(o,i){o&1&&M(0,"i",43)}
14function Yt(o,i){o&1&&M(0,"i",43)}function Kt(o,i){o&1&&M(0,"i",43)}function Jt(o,i){if(o&1&&(l(0,"div",41)(1,"p")(2,"span"),d(3),a(4,"translate"),s(),b(5,Zt,1,0,"i",42),s(),l(6,"p")(7,"span"),d(8),a(9,"translate"),s(),b(10,Yt,1,0,"i",42),s(),l(11,"p")(12,"span"),d(13),a(14,"translate"),s(),b(15,Kt,1,0,"i",42),s()()),o&2){let e=p();n(),v(e.usernameFormatValidation.validLength?"valid-feedback":"invalid-feedback"),n(2),g(c(4,12,"Between 6 and 16 characters")),n(2),f("ngIf",e.usernameFormatValidation.validLength),n(),v(e.usernameFormatValidation.noSpecial?"valid-feedback":"invalid-feedback"),n(2),g(c(9,14,"No special characters allowed")),n(2),f("ngIf",e.usernameFormatValidation.noSpecial),n(),v(e.usernameFormatValidation.validMix?"valid-feedback":"invalid-feedback"),n(2),g(c(14,16,"Use letters and numbers, or letters only")),n(2),f("ngIf",e.usernameFormatValidation.validMix)}}function Qt(o,i){if(o&1){let e=O();l(0,"li",44),C("click",function(){let r=u(e).$implicit,h=p();return _(h.onSelectCountry(r.key))}),M(1,"img",13),s()}if(o&2){let e=i.$implicit,t=p();v(V(3,zt,t.form.get("country_code").value==e.key)),n(),f("src","/assets/flags/"+e.key+".png",te)}}function Xt(o,i){if(o&1){let e=O();l(0,"div",19)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),a(5,"translate"),a(6,"uppercase"),s(),l(7,"input",45),C("change",function(){u(e);let r=p();return _(r.toLowerCase("email"))})("keyup",function(){u(e);let r=p();return _(r.onServerSideEmailValidation())}),s()()}if(o&2){let e=p();n(2),ne("",c(4,6,c(3,4,"Email"))," (",c(6,10,c(5,8,"Optional")),")"),n(5),v(A(12,le,e.form.get("email").dirty&&e.isEmailValid!=null&&e.isEmailValid,e.form.get("email").dirty&&e.isEmailValid!=null&&!e.isEmailValid))}}function en(o,i){o&1&&(l(0,"span",48),d(1),a(2,"translate"),s()),o&2&&(n(),g(c(2,1,"Referral code can only contain letters and numbers")))}function tn(o,i){if(o&1){let e=O();l(0,"div",46)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),a(5,"translate"),a(6,"uppercase"),s(),l(7,"input",47),C("input",function(r){u(e);let h=p();return _(h.onReferralInput(r))}),s(),b(8,en,3,3,"span",48),s()}if(o&2){let e,t=p();n(2),ne(" ",c(4,8,c(3,6,"Referral"))," (",c(6,12,c(5,10,"Optional")),")"),n(5),v(A(14,le,t.form.get("ref").touched&&t.form.get("ref").valid&&((e
14=t.form.get("ref").value)==null?null:e.length)>0,t.form.get("ref").touched&&t.form.get("ref").invalid||t.form.get("ref").dirty&&t.form.get("ref").hasError("pattern"))),f("readonly",t.refReadonly),n(),S(t.form.get("ref").dirty&&t.form.get("ref").hasError("pattern")?8:-1)}}function nn(o,i){o&1&&(l(0,"span",48),d(1),a(2,"translate"),s()),o&2&&(n(),g(c(2,1,"Your name can only contain English letters and the symbols . and /")))}function on(o,i){if(o&1&&(l(0,"div",49)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),s(),M(5,"input",54),s()),o&2){let e=p(4);n(2),g(c(4,5,c(3,3,"BSB Code"))),n(3),v(A(7,le,e.form.get("bsb_code").touched&&e.form.get("bsb_code").valid,e.form.get("bsb_code").touched&&e.form.get("bsb_code").invalid))}}function an(o,i){if(o&1&&(l(0,"div",49)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),s(),M(5,"input",52),b(6,nn,3,3,"span",48),s(),l(7,"div",49)(8,"label"),d(9),a(10,"translate"),a(11,"uppercase"),a(12,"translate"),a(13,"uppercase"),s(),M(14,"input",53),s(),b(15,on,6,10,"div",49)),o&2){let e=p(3);n(2),g(c(4,10,c(3,8,"Account Name"))),n(3),v(A(20,le,e.form.get("account_name").touched&&e.form.get("account_name").valid,e.form.get("account_name").touched&&e.form.get("account_name").invalid||e.form.get("account_name").dirty&&e.form.get("account_name").hasError("pattern"))),n(),S(e.form.get("account_name").dirty&&e.form.get("account_name").hasError("pattern")?6:-1),n(3),g(e.selectedBankPayidText&&e.selectedBankPayidText!=null?c(11,14,c(10,12,e.selectedBankPayidText)):c(13,18,c(12,16,"Account Number"))),n(5),v(A(23,le,e.form.get("account_number").touched&&e.form.get("account_number").valid,e.form.get("account_number").touched&&e.form.get("account_number").invalid)),n(),S(e.form.get("country_code").value=="au"&&e.showbsbfield?15:-1)}}function rn(o,i){if(o&1){let e=O();l(0,"div",49)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),a(5,"translate"),a(6,"uppercase"),s(),l(7,"div",50)(8,"angular2-multiselect",51),ye("ngModelChange",function(r){u(e);let h=p(2);return xe(h.selectedBank,r)||(h.selectedBank=r),_(r)}),C("onSelect",function(){u(e);let r=p(2);return _(r.onSelectIdnBank(r.selectedBank[0].id,r.selectedBank[0].code))})("onDeSelect",function(){u(e);let r=p(2);return _(r.onSelectIdnBank())})("onDeSelectAll",function(){u(e);let r=p(2);return _(r.onSelectIdnBank())})("onClose",function(){u(e);let r=p(2);return _(r.isIdnBankTouched=!0)}),s()()(),b(9,an,16,26)}if(o&2){let e=p(2);n(2),ne("",c(4,11,c(3,9,"Bank"))," (",c(6,15,c(5,13,"Optional")),")"),n(5),v(V(17,jt,e.isIdnBankTouched&&e.selectedBank.length>0)),n(),f("data",e.idnBank),Se("ngModel",e.selectedBank),f("settings",e.idnBankDropdownSettings)("ngModelOptions",tt(19,qt)),n(),S(e.selectedBank.length>0?9:-1)}}function cn(o,i){if(o&1){let e=O();l(0,"button",59),C("click",function(){let r=u(e).$implicit,h=p(3);return _(h.onSelectWalletType(r.id))}),d(1),s()}if(o&2){let e=i.$implicit,t=p(3);me("selected",e.id===t.selectedBankType),n(),g(e.name)}}function ln(o,i){if(o&1){let e=O();l(0,"button",61),C("click",function(){let r=u(e).$implicit,h=p(4);return _(h.onSelectIdnBank(r.id,r.code))}),M(1,"img",13),s()}if(o&2){let e=i.$implicit,t=p(4);me("selected",e.id===(t.selectedBank[0]==null?null:t.selectedBank[0].id)),n(),f("src","/assets/signup-page/"+e.code.toLowerCase()+".png",te)}}function sn(o,i){if(o&1&&be(0,ln,2,3,"button",60,Oe),o&2){let e=p(3);we(e.filteredIDRBanks)}}function dn(o,i){if(o&1){let e=O();l(0,"button",61),C("click",function(){let r=u(e).$implicit,h=p(4);return _(h.onSelectIdnBank(r.id,r.code))}),M(1,"img",13),s()}if(o&2){let e=i.$implicit,t=p(4);me("selected",e.id===(t.selectedBank[0]==null?null:t.selectedBank[0].id)),n(),f("src","/assets/signup-page/"+e.code.toLowerCase()+".png",te)}}function pn(o,i){if(o&1&&be(0,dn,2,3,"button",60,Oe),o&2){let e=p(3);we(e.filteredIDREWallets)}}function mn(o,i){o&1&&(l(0,"span",48),d(1),a(2,"translate"),s()),o&2&&(n(),g(c(2,1,"Your name can only contain English letters and the symbols . and /")))}function gn(o,i){o&1&&(l(0,"mat-hint",62),d(1),a(2,"translate"),s(),l(3,"mat-hint",63),d(4),a(5,"translate"),s()),o&2&&(n(),x(" ",c(2,2,"Please enter your e-wallet number, starting with 0.")," "),n(3),x(" ",c(5,4,"Example")," : 08213456789 "))}function un(o,i){if(o&1&&(l(0,"div",49)(1,"h6",55)(2,"b"),d(3),a(4,"translate"),a(5,"uppercase"),s()(),l(6,"div",49)(7,"label"),d(8),a(9,"translate"),a(10,"uppercase"),s(),l(11,"div",56),be(12,cn,2,3,"button",57,Oe),s()(),l(14,"div",49)(15,"label"),d(16),a(17,"translate"),a(18,"uppercase"),s(),l(19,"div",58),b(20,sn,2,0)(21,pn,2,0),s()()(),l(22,"div",49)(23,"label"),d(24),a(25,"translate"),a(26,"uppercase"),s(),M(27,"input",52),b(28,mn,3,3,"span",48),s(),l(29,"div",49)(30,"label"),d(31),a(32,"translate"),a(33,"uppercase"),a(34,"translate"),a(35,"uppercase"),s(),M(36,"input",53),b(37,gn,6,6),s()),o&2){let e,t,r=p(2);n(3),g(c(5,14,c(4,12,"Banking Info"))),n(5),g(c(10,18,c(9,16,"Wallet Type"))),n(4),we(r.walletType),n(4),g(c(18,22,c(17,20,r.selectedBankType==1?"Bank":"E-Wallet"))),n(4),S(r.selectedBankType===1?20:r.selectedBankType===3?21:-1),n(4),g(c(26,26,c(25,24,"Account Name"))),n(3),v(A(36,le,r.form.get("account_name").touched&&r.form.get("account_name").valid&&((e
14=r.form.get("account_name").value)==null?null:e.length)>0,r.form.get("account_name").touched&&r.form.get("account_name").invalid||r.form.get("account_name").dirty&&r.form.get("account_name").hasError("pattern"))),n(),S(r.form.get("account_name").dirty&&r.form.get("account_name").hasError("pattern")?28:-1),n(3),g(r.selectedBankPayidText&&r.selectedBankPayidText!=null?c(33,30,c(32,28,r.selectedBankPayidText)):c(35,34,c(34,32,"Account Number"))),n(5),v(A(39,le,r.form.get("account_number").touched&&r.form.get("account_number").valid&&((t=r.form.get("account_number").value)==null?null:t.length)>0,r.form.get("account_number").touched&&r.form.get("account_number").invalid)),n(),S(r.selectedBankType===3?37:-1)}}function _n(o,i){if(o&1&&b(0,rn,10,20)(1,un,38,42),o&2){let e=p();S(e.form.get("country_code").value=="au"?0:e.form.get("country_code").value=="id"?1:-1)}}function Cn(o,i){if(o&1&&(l(0,"div",64)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),a(5,"translate"),a(6,"uppercase"),s(),M(7,"input",65),s()),o&2){let e=p();n(2),ne(" ",c(4,5,c(3,3,"Agent"))," (",c(6,9,c(5,7,"Optional")),")"),n(5),f("readonly",e.agent!=null)}}function fn(o,i){if(o&1&&(l(0,"div",66)(1,"label"),d(2),a(3,"translate"),a(4,"uppercase"),a(5,"translate"),a(6,"uppercase"),s(),M(7,"input",67),s()),o&2){let e=p();n(2),ne(" ",c(4,5,c(3,3,"Affiliate"))," (",c(6,9,c(5,7,"Optional")),")"),n(5),f("readonly",e.aff!=null)}}function hn(o,i){if(o&1){let e=O();l(0,"p",33),d(1),a(2,"translate"),l(3,"a",68),C("click",function(){u(e);let r=p();return _(r.onLogin())}),d(4),a(5,"translate"),s()()}o&2&&(n(),x("",c(2,2,"Existing Member?")," "),n(3),x(" ",c(5,4,"Login Now"),""))}function Mn(o,i){if(o&1){let e=O();l(0,"div",34)(1,"p",33),d(2),a(3,"translate"),s(),l(4,"button",69),C("click",function(){u(e);let r=p();return _(r.onLogin())}),d(5),a(6,"translate"),s()()}o&2&&(n(2),g(c(3,2,"Existing Member?")),n(3),x(" ",c(6,4,"Login Now"),""))}var ce=class o{constructor(i,e,t,r,h,X,Mt,vn,Pn,On,bn){this.dialogRef=i;this.staticDataService=e;this.domainService=t;this.clarityService=r;this.authHttpService=h;this.matDialog=X;this.eventEmitterService=Mt;this.router=vn;this.memberHttpService=Pn;this.bankHttpService=On;this.translateService=bn;this.countries=this.staticDataService.getCountries(),this.mobileNumberRegex=this.staticDataService.getMobileNumberRegex(this.domainService.getCountryCode());
14let pe=new URLSearchParams(this.domainService.getMarketingParams());if(pe.get("ref")!=null){let Qe=this.sanitizeReferral(pe.get("ref"));this.ref=Qe.length>0?Qe:null}else pe.get("agent")!=null?this.agent=pe.get("agent"):pe.get("aff")!=null&&(this.aff=pe.get("aff"));this.initForm(),this.applyReferralPrefillState()}mode="dialog";svgIconList=E;form;countries;isUsernameFormatValid=null;usernameFormatValidation={validLength:null,noSpecial:null,validMix:null};isUsernameFormatCheckerRun=!1;isUsernameExist=null;recaptchaToken;recaptchaScriptURL=`https://www.google.com/recaptcha/api.js?render=${_e.recaptcha.siteKey}`;recaptchaScript={loaded:null,error:null};mobileNumberRegex;passwordType="password";confirmPasswordType="password";showPassowrd=!1;showConfirmPassword=!1;isPasswordMatched=!1;showEmailField=!1;isEmailValid=null;validateEmailTimeout;idnBank=[];showIdnBank=!1;idnBankDropdownSettings={};selectedBank=[];isIdnBankTouched=!1;ref=null;refReadonly=!1;agent=null;aff=null;loading=!1;afterViewInit=!1;showbsbfield=!1;selectedBankPayidText;selectedBankType=1;walletType=[{id:1,name:"Bank"},{id:3,name:"E-Wallet"}];filteredIDRBanks=[];filteredIDREWallets=[];idrBankToShow=["BCA","BMRI","BNI","BRI","CIMBN"];idrEWalletToShow=["DANA","OVO","GPAY","LINKA"];ngOnInit(){this.clarityService.event("registration_started"),this.loadRecaptchaScript(),this.idnBankDropdownSettings={enableSearchFilter:!0,singleSelection:!0,text:this.translateService.instant("Please Select"),primaryKey:"id",labelKey:"name",autoPosition:!1,position:"bottom",showCheckbox:!1,disabled:!1,tagToBody:!1,classes:"custom-angular3-multiselect signup-custom"}}ngAfterViewInit(){setTimeout(()=>{this.afterViewInit=!0})}ngAfterContentInit(){$(document).on("click",".tnc-link",()=>{this.dialogRef?.close(),this.router.navigateByUrl(`/${this.domainService.getLocale()}/info-center/terms-and-conditions`)})}ngOnDestroy(){document.querySelector(`script[src="${this.recaptchaScriptURL}"]`)?.remove(),document.querySelector(".grecaptcha-badge").parentElement?.remove(),$(document).off("click",".tnc-link")}returnZero(){return 0}toLowerCase(i){this.form.get(i).setValue(this.form.get(i).value.toLowerCase())}onCheckUsernameFormat(){let i=this.form.get("username").value;i.length>0?(this.isUsernameFormatCheckerRun=!0,this.usernameFormatValidation={validLength:i.length>=6&&i.length<=16,noSpecial:i.length>0&&!/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(i),validMix:i.length>0&&(/[a-zA-Z]/.test(i)||/[0-9]/.test(i)&&/[a-zA-Z]/.test(i))}):(this.isUsernameFormatCheckerRun=!1,this.usernameFormatValidation={validLength:null,noSpecial:null,validMix:null}),this.isUsernameFormatValid=this.usernameFormatValidation.validLength&&this.usernameFormatValidation.noSpecial&&this.usernameFormatValidation.validMix}onServerSideUsernameValidation(){let i=this.form.get("username").value,e=()=>{this.loading=!0,this.authHttpService.validate({response:this.recaptchaToken,username:i}).pipe(k(t=>{throw this.loading=!1,t})).subscribe(t=>{this.isUsernameExist=t==1,this.loading=!1})};i?.length>0&&this.isUsernameFormatValid?this.recaptchaScript.loaded&&!this.recaptchaScript.error&&(this.recaptchaToken!=null?e():grecaptcha.ready(()=>{grecaptcha.execute(_e.recaptcha.siteKey,{action:"ValidateUsername"}).then(t=>{this.recaptchaToken=t,e()})})):this.isUsernameExist=!1}onSelectCountry(i){this.mobileNumberRegex=this.staticDataService.getMobileNumberRegex(i),this.form.controls.phone_number.setValidators([m.pattern(this.mobileNumberRegex),m.required]),this.form.patchValue({country_code:i,phone_number:null}),this.onCountryCodeUpdate()}onShowOrHidePassword(i){switch(i){case"password":this.showPassowrd=!this.showPassowrd,this.showPassowrd?this.passwordType="text":this.passwordType="password";break;case"confirm-password":this.showConfirmPassword=!this.showConfirmPassword,this.showConfirmPassword?this.confirmPasswordType="text":this.confirmPasswordType="password";break}}checkPassword(){this.form.get("password").value==this.form.get("confirm_password").value?this.isPasswordMatched=!0:this.isPasswordMatched=!1}onJoin(){if(this.form.markAllAsTouched(),this.form.valid&&this.isPasswordMatched&&!this.isUsernameExist){this.eventEmitterService.fullScreenLoader.emit("increase"),this.loading=!0;let i=Xe({},this.form.value);this.authHttpService.register(i).pipe(y(e=>{this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,this.onCloseDialog()}),k(e=>{throw this.eventEmitterService.fullScreenLoader.emit("decrease"),this.loading=!1,e})).subscribe()}}onLogin(){this.onCloseDialog(),this.matDialog.open(Me)}onCloseDialog(){this.dialogRef?.close()}onServerSideEmailValidation(){clearTimeout(this.validateEmailTimeout),this.validateEmailTimeout=setTimeout(()=>{let i=this.form.get("email").value;i!=null&&i.length>0?this.memberHttpService.validateEmail(i).pipe(y(e=>{this.isEmailValid=!0}),k(e=>{throw this.isEmailValid=!1,e})).subscribe():this.isEmailValid=null},500)}onSelectIdnBank(i,e){if(this.isIdnBankTouched=!0,i!=null){this.form.patchValue({bank_id:i});let t=this.form.get("country_code").value;this.selectedBank[0]=this.idnBank.find(r=>r.id===i&&r.code===e),t=="au"&&(this.form.get("account_name").setValidators([m.required,m.pattern(/^[a-zA-Z\s./]+$/)]),this.form.get("account_name").updateV
14alueAndValidity(),this.form.get("account_number").setValidators([m.required,m.pattern(/^[0-9]+$/)]),this.form.get("account_number").updateValueAndValidity(),e==="PAYIDMOB"||e==="PAYIDEMAIL"||e==="PAYIDABN"?(this.showbsbfield=!1,this.form.get("bsb_code").clearValidators(),this.form.get("bsb_code").markAsUntouched(),this.form.get("bsb_code").updateValueAndValidity(),e==="PAYIDEMAIL"?(this.form.get("account_number").setValidators([m.required,m.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)]),this.form.get("account_number").updateValueAndValidity(),this.selectedBankPayidText=this.translateService.instant("Email Address")):e==="PAYIDMOB"?(this.form.get("account_number").setValidators([m.required,m.pattern(/^(\+61|61|0)4\d{8}$/)]),this.form.get("account_number").updateValueAndValidity(),this.selectedBankPayidText=this.translateService.instant("Phone Number")):(this.form.get("account_number").setValidators([m.required,m.pattern(/^(?:\d{11}|\d{9})$/)]),this.form.get("account_number").updateValueAndValidity(),this.selectedBankPayidText=this.translateService.instant("Business Number")+" (ABN / ACN)")):(this.selectedBankPayidText=null,this.showbsbfield=!0,this.form.get("bsb_code").setValidators([m.required,m.pattern(/^\d{6}$/)]),this.form.get("bsb_code").updateValueAndValidity()))}else this.form.patchValue({bank_id:null,account_name:null,account_number:null}),this.form.get("account_name").clearValidators(),this.form.get("account_name").markAsUntouched(),this.form.get("account_name").updateValueAndValidity(),this.form.get("account_number").clearValidators(),this.form.get("account_number").markAsUntouched(),this.form.get("account_number").updateValueAndValidity(),this.form.get("bsb_code").clearValidators(),this.form.get("bsb_code").markAsUntouched(),this.form.get("bsb_code").updateValueAndValidity(),this.form.get("bank_id").clearValidators(),this.form.get("bank_id").markAsUntouched(),this.form.get("bank_id").updateValueAndValidity(),this.form.get("bank_type").clearValidators(),this.form.get("bank_type").markAsUntouched(),this.form.get("bank_type").updateValueAndValidity()}onSelectWalletType(i){this.selectedBankType=i,this.form.patchValue({bank_id:null,account_name:null,account_number:null,bsb_code:null,bank_type:i}),this.selectedBank=[],this.isIdnBankTouched=!1,this.form.get("country_code").value.toLowerCase()=="id"&&(this.form.get("account_name").setValidators([m.required,m.pattern(/^[a-zA-Z\s./]+$/)]),this.form.get("account_name").markAsUntouched(),this.form.get("account_name").updateValueAndValidity(),i==1?(this.form.get("account_number").setValidators([m.required,m.pattern(/^[0-9]+$/)]),this.form.get("account_number").markAsUntouched(),this.form.get("account_number").updateValueAndValidity()):i==3&&(this.form.get("account_number").setValidators([m.required,m.pattern(/^0[0-9]+$/)]),this.form.get("account_number").markAsUntouched(),this.form.get("account_number").updateValueAndValidity()))}onReferralInput(i){let e=i.target,t=this.sanitizeReferral(e.value);t!==e.value&&(e.value=t,this.form.get("ref").setValue(t))}sanitizeReferral(i){return i.replace(/[^a-zA-Z0-9]/g,"")}applyReferralPrefillState(){this.refReadonly=this.ref!=null&&this.form.get("ref").valid}initForm(){this.form=new G({username:new w(null,[m.pattern("(^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]+$)|([a-zA-Z])"),m.required,m.minLength(6),m.maxLength(16)]),country_code:new w(this.domainService.getCountryCode()),phone_number:new w(null,[m.pattern(this.mobileNumberRegex),m.required]),password:new w(null,[m.required,m.minLength(6)]),confirm_password:new w(null,[m.required]),ref:new w(this.ref,[m.pattern(/^[a-zA-Z0-9]*$/)]),aff:new w(this.aff),agent:new w(this.agent),email:new w(null),bank_id:new w(null),account_name:new w(null,[m.pattern(/^[a-zA-Z\s./]+$/)]),account_number:new w(null,[m.pattern(/^[0-9]+$/)]),bsb_code:new w(null,[m.pattern(/^\d{6}$/)]),bank_type:new w(null)}),this.onCountryCodeUpdate()}loadRecaptchaScript(){try{let i=document.createElement("script");i.src=this.recaptchaScriptURL,i.addEventListener("load",e=>{console.debug("Recaptcha Script loaded successfully"),this.recaptchaScript.loaded=!0,this.recaptchaScript.error=!1}),i.addEventListener("error",e=>{console.debug("Recaptcha Script loaded with error"),this.recaptchaScript.loaded=!0,this.recaptchaScript.error=!0}),document.body.appendChild(i)}catch(i){console.debug("Recaptcha Script fail to load : "+i),this.recaptchaScript.loaded=!1,this.recaptchaScript.error=!0}}getIdnBank(){let i=this.form.get("country_code").value=="id"?null:1;this.bankHttpService.getIdnBank(i,this.form.get("country_code").value).pipe(y(e=>{this.idnBank=e,this.filteredIDRBanks=this.idnBank.filter(t=>t.bank_type===1&&this.idrBankToShow.includes(t.code)),this.filteredIDREWallets=this.idnBank.filter(t=>t.bank_type===3&&this.idrEWalletToShow.includes(t.code))})).subscribe()}onCountryCodeUpdate(){let i=this.form.get("country_code").value;i=="id"?(this.showIdnBank=!0,this.showEmailField=!1,this.getIdnBank(),this.isIdnBankTouched=!1,this.form.patchValue({bank_id:null,account_name:null,account_number:null,bank_type:1}),this.selectedBank=[],this.form.get("bank_id").setValidators([m.required]),this.form.get("bank_id").markAsUntouched(),this.form.get("bank_id").updateV
14alueAndValidity(),this.form.get("bank_type").setValidators([m.required]),this.form.get("bank_type").markAsUntouched(),this.form.get("bank_type").updateValueAndValidity(),this.form.get("account_name").setValidators([m.required,m.pattern(/^[a-zA-Z\s./]+$/)]),this.form.get("account_name").markAsUntouched(),this.form.get("account_name").updateValueAndValidity(),this.form.get("account_number").setValidators([m.required,m.pattern(/^[0-9]+$/)]),this.form.get("account_number").markAsUntouched(),this.form.get("account_number").updateValueAndValidity(),this.form.get("bsb_code").clearValidators(),this.form.get("bsb_code").markAsUntouched(),this.form.get("bsb_code").updateValueAndValidity()):i=="au"?(this.showEmailField=!0,this.showIdnBank=!0,this.getIdnBank(),this.isIdnBankTouched=!1,this.form.get("email").markAsPristine(),this.form.get("email").updateValueAndValidity(),this.form.patchValue({email:null,bank_id:null,account_name:null,account_number:null,bsb_code:null,bank_type:null}),this.form.get("bank_id").clearValidators(),this.form.get("bank_id").markAsUntouched(),this.form.get("bank_id").updateValueAndValidity(),this.form.get("bank_type").clearValidators(),this.form.get("bank_type").markAsUntouched(),this.form.get("bank_type").updateValueAndValidity(),this.form.get("account_name").setValidators([m.pattern(/^[a-zA-Z\s./]+$/)]),this.form.get("account_name").markAsUntouched(),this.form.get("account_name").updateValueAndValidity(),this.form.get("account_number").setValidators([m.pattern(/^[0-9]+$/)]),this.form.get("account_number").markAsUntouched(),this.form.get("account_number").updateValueAndValidity()):(this.showEmailField=!1,this.showIdnBank=!1,this.form.patchValue({bank_id:null,account_name:null,account_number:null,email:null,bank_type:null}),this.form.get("bank_id").clearValidators(),this.form.get("bank_id").markAsUntouched(),this.form.get("bank_id").updateValueAndValidity(),this.form.get("bank_type").clearValidators(),this.form.get("bank_type").markAsUntouched(),this.form.get("bank_type").updateValueAndValidity(),this.form.get("account_name").clearValidators(),this.form.get("account_name").markAsUntouched(),this.form.get("account_name").updateValueAndValidity(),this.form.get("account_number").clearValidators(),this.form.get("account_number").markAsUntouched(),this.form.get("account_number").updateValueAndValidity(),this.form.get("bsb_code").clearValidators(),this.form.get("bsb_code").markAsUntouched(),this.form.get("bsb_code").updateValueAndValidity())}static \u0275fac=function(e){return new(e||o)(P(N,8),P(Te),P(Ae),P(ot),P(Ce),P(ae),P(D),P(ue),P(it),P(mt),P(Be))};static \u0275cmp=F({type:o,selectors:[["app-signup-dialog"]],inputs:{mode:"mode"},decls:68,vars:96,consts:[["dialog",""],["username","detectFocus"],["btnGroup",""],[1,"form",3,"formGroup"],[1,"input-container","username"],["type","text","inputmode","text","tabindex","1","formControlName","username","autocomplete","username","appDetectFocus","","appAutoFocus","",1,"form-control",3,"change","focusout"],["class","invalid-feedback",4,"ngIf"],["class","format-checker",4,"ngIf"],[1,"input-container","phone-number"],[1,"d-flex","w-100"],[1,"btn-group","me-1"],["type","button","data-bs-toggle","dropdown",1,"btn","btn-secondary","dropdown-toggle","form-control"],[1,"selected-content","p-2"],[3,"src"],[1,"dropdown-menu"],["class","p-2",3,"class","click",4,"ngFor","ngForOf"],[1,"w-100"],["type","text","inputmode","tel","tabindex","2","formControlName","phone_number","autocomplete","tel",1,"form-control"],[1,"invalid-feedback"],[1,"input-container","email"],[1,"input-container","password"],[1,"d-flex","align-items-center","position-relative"],["inputmode","text","tabindex","4","formControlName","password","autocomplete","new-password",1,"form-control",3,"keyup","type"],[1,"icon",3,"click"],[1,"fa-solid","fa-eye-slash"],[1,"fa-solid","fa-eye"],[1,"input-container","confirm-password"],["inputmode","text","tabindex","5","formControlName","confirm_password","autocomplete","new-password",1,"form-control",3,"keyup","type"],["class","input-container referral",4,"ngIf"],["class","input-container agent",4,"ngIf"],["class","input-container affiliate",4,"ngIf"],[1,"tnc",3,"innerHTML"],[3,"onClick","name","fontSize","disabled","loading","extraClass"],[1,"existing-member"],[1,"w-100","d-flex","flex-column","my-3","justify-conten-center","align-items-center"],[1,"title"],[1,"left","my-2"],[1,"register-icon",3,"innerHTML"],[1,"title-text"],[1,"right"],[3,"click"],[1,"format-checker"],["class","fa-solid fa-check",4,"ngIf"],[1,"fa-solid","fa-check"],[1,"p-2",3,"click"],["type","email","inputmode","text","tabindex","3","formControlName","email","autocomplete","email",1,"form-control",3,"change","keyup"],[1,"input-container","referral"],["type","text","inputmode","text","tabindex","8","formControlName","ref",1,"form-control",3,"input","readonly"],[1,"invalid-feedback","d-block"],[1,"input-container"],[1,"form-control","signup-custom"],[3,"ngModelChange","onSelect","onDeSelect","onDeSelectAll","onClose","data","ngModel","settings","ngModelOptions"],["type","text","inputmode","text","tabindex","6","formControlName","account_name",1,"form-control"],["type","text","inputmode","text","tabindex","7","formControlName","account_number",1,"form-control"],["type","text","inputmode","text","tabindex","11","formControlName","bsb_code",1,"form-control"],[1,"mb-4"],[1,"d-flex","align-items-center","justify-content-start"],[1,"wallet-type",3,"selected"],[1,"bank-list"],[1,"wallet-type",3,"click"],[1,"bank-btn","animate__animated","animate__fadeIn",3,"selected"],[1,"bank-btn","animate__animated","animate__fadeIn",3,"click"],[1,"hint-text"],[1,"hint-text","my-0"],[1,"input-container","agent"],["type","text","inputmode","text","readonly","","tabindex","9","formControlName","agent",1,"form-control",3,"readonly"],[1,"input-container","affiliate"],["type","text","inputmode","text","readonly","","tabindex","10","formControlName","aff",1,"form-control",3,"readonly"],[1,"btn-signup",3,"click"],[1,"btn","btn-signup",3,"click"]],template:function(e,t){if(e&1){let r=O();l(0,"div",null,0),b(2,$t,12,8),l(3,"form",3)(4,"div",4)(5,"label"),d(6),a(7,"translate"),a(8,"uppercase"),s(),l(9,"input",5,1),C("change",function(){return u(r),t.toLowerCase("username"),t.onCheckUsernameFormat(),_(t.isUsernameExist=null)})("focusout",function(){return u(r),_(t.onServerSideUsernameValidation())}),s(),b(11,Gt,3,3,"span",6)(12,Jt,16,18,"div",7),s(),l(13,"div",8)(14,"label"),d(15),a(16,"translate"),a(17,"uppercase"),s(),l(18,"div",9)(19,"div",10,2)(21,"button",11)(22,"div",12),M(23,"img",13),s()(),l(24,"ul",14),b(25,Qt,2,5,"li",15),a(26,"keyvalue"),s()(),l(27,"div",16),M(28,"input",17),l(29,"span",18),d(30),a(31,"translate"),s()()()(),b(32,Xt,8,15,"div",19),l(33,"div",20)(34,"label"),d(35),a(36,"translate"),a(37,"uppercase"),s(),l(38,"div",21)(39,"input",22),C("keyup",function(){return u(r),_(t.checkPassword())}),s(),l(40,"div",23),C("click",function(){return u(r),_(t.onShowOrHidePassword("password"))}),M(41,"i",24)(42,"i",25),s()(),l(43,"span",18),d(44),a(45,"translate"),s()(),l(46,"div",26)(47,"label"),d(48),a(49,"translate"),a(50,"uppercase"),s(),l(51,"div",21)(52,"input",27),C("keyup",function(){return u(r),_(t.checkPassword())}),s(),l(53,"div",23),C("click",function(){return u(r),_(t.onShowOrHidePassword("confirm-password"))}),M(54,"i",24)(55,"i",25),s()(),l(56,"span",18),d(57),a(58,"translate"),s()(),b(59,tn,9,17,"div",28)(60,_n,2,1)(61,Cn,8,11,"div",29)(62,fn,8,11,"div",30),M(63,"p",31),a(64,"translate"),l(65,"app-submit-button",32),C("onClick",function(){return u(r),_(t.onJoin())}),s(),b(66,hn,6,6,"p",33)(67,Mn,7,6,"div",34),s()()}if(e&2){let r=B(1),h=B(10),X=B(20);T("--dialogWidth:"+(t.afterViewInit?r.offsetWidth:0)+"px;"),v(t.mode=="dialog"?"dialog-mode":"page-mode"),n(2),S(t.mode=="dialog"?2:-1),n(),f("formGroup",t.form),n(3),g(c(8,55,c(7,53,"Username"))),n(3),v(A(80,le,t.isUsernameFormatValid!=null&&t.isUsernameFormatValid&&t.isUsernameExist!=null&&!t.isUsernameExist,t.isUsernameFormatValid!=null&&!t.isUsernameFormatValid||t.isUsernameExist!=null&&t.isUsernameExist||t.form.get("username").touched&&t.form.get("username").invalid)),n(2),f("ngIf",t.isUsernameExist),n(),f("ngIf",t.isUsernameFormatCheckerRun&&!t.isUsernameExist&&!t.isUsernameFormatValid),n(3),g(c(17,59,c(16,57,"Phone Number"))),n(4),T("--btnGroupWidth:"
14+(t.afterViewInit?X.offsetWidth:0)+"px"),n(4),f("src","/assets/flags/"+t.form.get("country_code").value+".png",te),n(2),f("ngForOf",ke(26,61,t.countries,t.returnZero)),n(3),v(A(83,Je,t.form.get("phone_number").touched&&t.form.get("phone_number").invalid,t.form.get("phone_number").touched&&t.form.get("phone_number").valid)),n(2),g(c(31,64,"Please enter a valid phone number.")),n(2),S(t.showEmailField?32:-1),n(3),g(c(37,68,c(36,66,"Password"))),n(4),v(A(86,Je,t.form.get("password").touched&&t.form.get("password").invalid,t.form.get("password").touched&&t.form.get("password").valid)),f("type",t.passwordType),n(2),v(t.showPassowrd?"hide-icon":"show-icon"),n(),v(t.showPassowrd?"show-icon":"hide-icon"),n(),v(V(89,ht,t.form.get("password").touched&&t.form.get("password").invalid)),n(),g(c(45,70,"At least 6 characters")),n(4),g(c(50,74,c(49,72,"Confirm Password"))),n(4),v(A(91,Je,t.form.get("confirm_password").touched&&t.form.get("password").value!=t.form.get("confirm_password").value,t.form.get("confirm_password").touched&&t.form.get("password").value==t.form.get("confirm_password").value)),f("type",t.confirmPasswordType),n(2),v(t.showConfirmPassword?"hide-icon":"show-icon"),n(),v(t.showConfirmPassword?"show-icon":"hide-icon"),n(),v(V(94,ht,t.form.get("confirm_password").touched&&t.form.get("password").value!=t.form.get("confirm_password").value)),n(),g(c(58,76,"Passwords do not match")),n(2),f("ngIf",t.agent==null&&t.aff==null),n(),S(t.showIdnBank?60:-1),n(),f("ngIf",t.ref==null&&t.aff==null&&(t.ref!=null||t.agent!=null||t.aff!=null)),n(),f("ngIf",t.ref==null&&t.agent==null&&(t.ref!=null||t.agent!=null||t.aff!=null)),n(),f("innerHTML",c(64,78,"By clicking Join, I confirm that I am at least 18 years of age and that I accept the <a class='tnc-link'>Terms & Conditions</a>."),I),n(2),f("name","Join")("fontSize","calc(var(--dialogWidth)* 0.032)")("disabled",t.form.invalid||t.isUsernameExist||h.isFocus||!t.isPasswordMatched||t.showEmailField&&t.isEmailValid!=null&&!t.isEmailValid)("loading",t.loading)("extraClass","mb-3"),n(),S(t.mode=="dialog"?66:67)}},dependencies:[oe,ie,H,W,R,U,Ve,nt,L,Ee,K,re,z,j,q,Z,Y,J,Ye,Q,st,lt,Le,Fe,pt,dt],styles:["[_nghost-%COMP%] .register-icon svg{fill:var(--mainColor1);width:calc(var(--dialogWidth) * .1)}[_nghost-%COMP%] .tnc a{cursor:pointer;color:var(--mainColor1);transition:color .2s ease}[_nghost-%COMP%] .tnc a:hover{color:var(--mainColor21)}.dialog-mode[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%]{color:var(--mainColor3);background:var(--mainColor36)!important;border-radius:10px!important;width:calc(var(--mainWidth) * .35);min-width:430px;padding:calc(var(--dialogWidth) * .05);overflow-y:auto}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:start;width:85%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .register-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .register-icon[_ngcontent-%COMP%]{margin-right:5%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .05);font-weight:500}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end;width:15%}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:unset;background:transparent;color:var(--mainColor3);font-size:calc(var(--dialogWidth) * .08);padding:0}.dialog-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus-visible, .page-mode[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus-visible{outline:unset}.dialog-mode[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{border-top-color:3px solid var(--mainColor35);color:var(--mainColor35);border-top-width:calc(var(--dialogWidth) * .008);border-radius:10px}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-bottom:5%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Poppins;font-size:calc(var(--dialogWidth) * .03);width:100%;margin-bottom:3%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .invali
14d-feedback[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .invalid-feedback[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .03);padding:0 1%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .format-checker[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .format-checker[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;display:flex;align-items:center;justify-content:space-between;padding:0 1%;font-size:calc(var(--dialogWidth) * .03)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%]{width:var(--btnGroupWidth);padding:0}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{transition:unset;-webkit-transition:unset}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{background:var(--mainColor27)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{height:3rem;display:flex;align-items:center;justify-content:center}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .btn-group[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:-webkit-fill-available;height:100%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:none}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input.is-invalid[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] input.is-invalid[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] input.is-invalid[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] input.is-invalid[_ngcontent-%COMP%]{background-image:unset!important}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{flex:none;align-items:center;display:flex;justify-content:center;aspect-ratio:1/1;right:1%;position:absolute;background:var(--mainColor38)!important;height:85%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .show-icon[_ngcontent-%COMP%]{transform:scale(1);transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .hide-icon[_ngcontent-%COMP%]{transform:scale(0);visibility:hidden;transition:transform .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container.confirm-password[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{background:var(--mainColor38)!important;color:var(--mainColor3);align-items:center;display:flex;justify-content:center;position:absolute}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .wallet-type[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .wallet-type[_ngcontent-%COMP%]{width:calc(var(--dialogWidth) * .35);aspect-ratio:4/1;cursor:pointer;background:var(--mainColor38)!important;border:0;border-radius:var(--bs-border-radius);color:var(--mainColor3);font-family:Poppins;font-size:calc(var(--dialogWidth) * .03);transition:background .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .wallet-type[_ngcontent-%COMP%]:not(:first-child), .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .wallet-type[_ngcontent-%COMP%]:not(:first-child){margin-left:3%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .wallet-type.selected[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .wallet-type.selected[_ngcontent-%COMP%]{background:var(--mainColor27)!important}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%] .bank-btn[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%] .bank-btn[_ngcontent-%COMP%]{border:3px solid transparent;border-radius:var(--bs-border-radius);padding:0;overflow:hidden;aspect-ratio:2.5/1;transition:border .2s ease;background:var(--mainColor38);display:flex;align-items:center;justify-content:center}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%] .bank-btn.selected[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%] .bank-btn.selected[_ngcontent-%COMP%]{border:3px solid var(--mainColor27)}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%] .bank-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .bank-list[_ngcontent-%COMP%] .bank-btn[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;object-fit:cover}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .hint-text[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .hint-text[_ngcontent-%COMP%]{color:var(--mainColor1);font-size:calc(var(--dialogWidth) * .028);font-family:Poppins Light;display:block;line-height:normal;margin-top:2%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .tnc[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .tnc[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .032);padding:0 1%}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .existing-member[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .existing-member[_ngcontent-%COMP%]{font-size:calc(var(--dialogWidth) * .032);padding:0 1%;text-align:center}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .existing-member[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .existing-member[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{cursor:pointer;color:var(--mainColor1);transition:color .2s ease}.dialog-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .existing-member[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .page-mode[_ngcontent-%COMP%] .form[_ngcontent-%COMP%] .existing-member[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--mainColor21)}.page-mode[_ngcontent-%COMP%]{width:calc(var(--mainWidth) * .35)!important;min-width:unset!important}.page-mode[_ngcontent-%COMP%] .btn-signup[_ngcontent-%COMP%]{border-radius:5px;aspect-ratio:2.5/1;font-size:calc(var(--dialogWidth) * .03);background:none;color:var(--mainColor3)!important;border:.225vh solid var(--mainColor14);width:30%}.page-mode[_ngcontent-%COMP%] .btn-signup[_ngcontent-%COMP%]:hover{background:var(--mainColor14)}"]})};export{ce as a,He as b,Me as c};
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.