1import{a as ce}from"./chunk-2B4PZPZN.js";import{a as de}from"./chunk-KWN6T5HC.js";import{d as ie}from"./chunk-BFMH7T3E.js";import"./chunk-NMXLJAPC.js";import{a as ee,c as te,o as ne,p as re}from"./chunk-6S6LURBO.js";import"./chunk-IGXRGRWZ.js";import{G as le,b as pe}from"./chunk-P2UDG3AV.js";import"./chunk-7EFCMJYD.js";import"./chunk-SRWC3LRT.js";import"./chunk-O3KB7YMP.js";import{q as oe}from"./chunk-WZB7H4ID.js";import{j as ae,n as me,p as se}from"./chunk-YSNSPAAA.js";import"./chunk-5MXMV6ZB.js";import{a as M}from"./chunk-C3UEYEPN.js";import"./chunk-7MEN4UN3.js";import{h as W,i as D,k as N}from"./chunk-AQW5A5RC.js";import"./chunk-4Q6JLTWC.js";import"./chunk-LB2ZXEZZ.js";import"./chunk-FJWGKPZB.js";import"./chunk-PPMQE2JW.js";import{D as K,E as X,I as Y,J as $,c as G,e as l,h as J,i as B,k as U,n as b,p as Q,x as H,y as Z}from"./chunk-NSTW3LM3.js";import"./chunk-BE5FDCUJ.js";import"./chunk-PNTVRP3M.js";import{h as j}from"./chunk-JIYZLQLG.js";import{A,m as z}from"./chunk-EG3XDCAK.js";import{Ba as L,Eb as k,Fb as y,Gc as C,Ic as c,Kb as h,Mc as q,Nc as O,Oc as I,Xc as a,Yc as R,dd as x,ed as v,fd as S,ka as F,lc as p,mc as r,nb as s,nc as o,oc as V,ta as g,ua as u,xb as T,yb as f,yc as P}from"./chunk-DKOYUYQY.js";import"./chunk-ODN5LVDJ.js";var _e=["passwordField"],Ce=["eyeIcon"],xe=["hideEyeIcon"];function ve(n,d){n&1&&(r(0,"mat-error"),a(1," First name is "),r(2,"strong"),a(3,"required"),o()())}function Se(n,d){n&1&&(r(0,"mat-error"),a(1," First name is "),r(2,"strong"),a(3,"required"),o()())}function be(n,d){n&1&&(r(0,"mat-error"),a(1," First name should be maximum 15 characters long. "),o())}function Me(n,d){n&1&&(r(0,"mat-error"),a(1," Last name is "),r(2,"strong"),a(3,"required"),o()())}function we(n,d){n&1&&(r(0,"mat-error"),a(1," Last name is "),r(2,"strong"),a(3,"required"),o()())}function Fe(n,d){n&1&&(r(0,"mat-error"),a(1," Last name should be maximum 15 characters long. "),o())}function ye(n,d){n&1&&(r(0,"mat-error"),a(1," Email is "),r(2,"strong"),a(3,"required"),o()())}function Oe(n,d){n&1&&(r(0,"mat-error"),a(1," Enter email in proper format "),o())}function Ie(n,d){if(n&1&&(r(0,"div",9)(1,"mat-error"),a(2),o()()),n&2){let e=c(2);s(2),R(e.errorMessage)}}function Ee(n,d){if(n&1){let e=P();r(0,"div",7)(1,"form",8),C("submit",function(){g(e);let t=c();return u(t.signUp(t.sendOtpForm))}),r(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),a(5,"First Name"),o(),r(6,"input",11),S("ngModelChange",function(t){g(e);let m=c();return v(m.firstName,t)||(m.firstName=t),u(t)}),o(),h(7,ve,4,0,"mat-error",12)(8,Se,4,0,"mat-error",12)(9,be,2,0,"mat-error",12),o()(),r(10,"div",9)(11,"mat-form-field",10)(12,"mat-label"),a(13,"Last Name"),o(),r(14,"input",13),S("ngModelChange",function(t){g(e);let m=c();return v(m.lastName,t)||(m.lastName=t),u(t)}),o(),h(15,Me,4,0,"mat-error",12)(16,we,4,0,"mat-error",12)(17,Fe,2,0,"mat-error",12),o()(),r(18,"div",9)(19,"mat-form-field",10)(20,"mat-label"),a(21,"Email ID"),o(),r(22,"input",14),S("ngModelChange",function(t){g(e);let m=c();return v(m.emailId,t)||(m.emailId=t),u(t)}),o(),h(23,ye,4,0,"mat-error",12)(24,Oe,2,0,"mat-error",12),o()(),h(25,Ie,3,1,"div",15),r(26,"div",16)(27,"button",17),C("keyup.enter",function(){g(e);let t=c();return u(t.signUp(t.sendOtpForm))}),a(28,"Sign Up"),o()(),r(29,"div",18),a(30,"Already have an account? "),r(31,"a",19),a(32,"Log In"),o()()()()}if(n&2){let e=c();s(),p("formGroup",e.sendOtpForm),s(5),x("ngModel",e.firstName),s(),p("ngIf",e.sendOtpForm.get("firstnameFormControl").hasError("required")&&e.sendOtpForm.get("firstnameFormControl").touched),s(),p("ngIf",e.sendOtpForm.get("firstnameFormControl").hasError("minlength")&&!e.sendOtpForm.get("firstnameFormControl").hasError("required")&&e.sendOtpForm.get("firstnameFormControl").touched),s(),p("ngIf",e.sendOtpForm.get("firstnameFormControl").hasError("maxlength")&&!e.sendOtpForm.get("firstnameFormControl").hasError("required")&&e.sendOtpForm.get("firstnameFormControl").touched),s(5),x("ngModel",e.lastName),s(),p("ngIf",e.sendOtpForm.get("lastnameFormControl").hasError("required")&&e.sendOtpForm.get("lastnameFormControl").touched),s(),p("ngIf",e.sendOtpForm.get("lastnameFormControl").hasError("minlength")&&!e.sendOtpForm.get("lastnameFormControl").hasError("required")&&e.sendOtpForm.get("lastnameFormControl").touched),s(),p("ngIf",e.sendOtpForm.get("lastnameFormControl").hasError("maxlength")&&!e.sendOtpForm.get("lastnameFormControl").hasError("required")&&e.sendOtpForm.get("lastnameFormControl").touched),s(5),x("ngModel",e.emailId),s(),p("ngIf",e.sendOtpForm.get("emailFormControl").hasError("required")&&e.sendOtpForm.get("emailFormControl").touched),s(),p("ngIf",e.sendOtpForm.get("emailFormControl").hasError("email")&&!e.sendOtpForm.get("emailFormControl").hasError("required")&&e.sendOtpForm.get("emailFormControl").touched),s(),p("ngIf",e.errorMessage)}}function Pe(n,d){n&1&&(r(0,"mat-error"),a(1," OTP is "),r(2,"strong"),a(3,"required"),o()())}function Ne(n,d){n&1&&(r(0,"mat-error"),a(1," OTP should be minimum 4 characters long. "),o())}function Ue(n,d){n&1&&(r(0,"mat-error"),a(1," OTP should be maximum 6 characters long. "),o())}function Le(n,d){if(n&1){let e=P();r(0,"div",7)(1,"form",20),C("submit",function(){g(e);let t=c();return u(t.register(t.signUpForm))}),r(2,"div",9)(3,"mat-form-field")(4,"input",21),S("ngModelChange",function(t){g(e);let m=c();return v(m.otpCode,t)||(m.otpCode=t),u(t)}),o(),h(5,Pe,4,0,"mat-error",12)(6,Ne,2,0,"mat-error",12)(7,Ue,2,0,"mat-error",12),o()(),r(8,"div",9)(9,"button",22),C("keyup.enter",function(){g(e);let t=c();return u(t.register(t.signUpForm))}),a(10,"SIGN UP"),o()(),r(11,"div",23),a(12," Already have an account? "),r(13,"a",19),a(14,"Log In"),o()()()()}if(n&2){let e=c();s(),p("formGroup",e.signUpForm),s(3),x("ngModel",e.otpCode),s(),p("ngIf",e.signUpForm.get("otpFormControl").hasError("required")&&e.signUpForm.get("otpFormControl").touched),s(),p("ngIf",e.signUpForm.get("otpFormControl").hasError("minlength")&&!e.signUpForm.get("otpFormControl").hasError("required")&&e.signUpForm.get("otpFormControl").touched),s(),p("ngIf",e.signUpForm.get("otpFormControl").hasError("maxlength")&&!e.signUpForm.get("otpFormControl").hasError("required")&&e.signUpForm.get("otpFormControl").touched)}}var ue=(()=>{class n{constructor(e,i,t,m,_,w,E){this.headerService=e,this.signupService=i,this.http=t,this.router=m,this.renderer=_,this.authService=w,this.jsonLdService=E,this.IMAGE_URL=M.IMAGE_URL,this.firstName="",this.lastName="",this.emailId="",this.isdCode=91,this.mobileNumber="",this.otpCode="",this.signupModal=!0,this.registerModal=!1,this.errorMessage="",this.closableSU=!0,this.visibleSUChange=new L,this.matcher=new oe,this.authService.isAuthenticated()&&m.navigate(["/"]),this.createForm()}ngOnInit(){this.signInOtp=this.signupService.getOtp(),this.breadCrumSchema()}closeSU(){this.visibleSU=!1,this.visibleSUChange.emit(this.visibleSU),this.sendOtpForm.reset(),this.signUpForm.reset(),this.mobileNumber=void 0,this.errorMessage=""}signUp(e){e.valid&&this.signupService.signUpV2(this.firstName,this.lastName,this.emailId,this.headerService.ISDCode,this.headerService.isdCodeId,this.headerService.mobileNumber,this.signInOtp).subscribe(i=>{let t=JSON.stringify(i);
1if(JSON.parse(t).token){let m=JSON.parse(t).token,_=JSON.parse(t).mobileNumber;this.authService.setToken(m),this.mobileNumber="",this.otpCode="",this.registerModal=!1}this.signupModal=!1,this.registerModal=!1,this.router.navigate(["/"])},i=>{this.errorMessage=i.error.msg})}register(e){e.valid&&this.signupService.verifyV2(this.headerService.ISDCode,this.headerService.mobileNumber,this.otpCode).subscribe(i=>{let t=JSON.stringify(i);if(JSON.parse(t).token){let m=JSON.parse(t).token,_=JSON.parse(t).mobileNumber;this.authService.setToken(m),this.mobileNumber="",this.otpCode="",this.registerModal=!1,this.headerService.toggleSignupDialog()}},i=>{})}breadCrumSchema(){let i=this.router.url.split("/"),t=i.splice(1,i.length),_=(t[0].charAt(0).toUpperCase()+t[0].slice(1)).replace("-"," ").replace("-"," "),w=[{"@type":"ListItem",position:1,item:{"@id":`${M.DOMAIN_URL}`,name:"Home","@type":"Website"}},{"@type":"ListItem",position:2,item:{"@id":`${M.DOMAIN_URL}/${t[0]}`,name:_,"@type":"Webpage"}}];if(t.length>1){let he=(t[1].charAt(0).toUpperCase()+t[0].slice(1)).replace("-"," ").replace("-"," ");w.push({"@type":"ListItem",position:3,item:{"@id":`${M.DOMAIN_URL}${this.router.url}`,name:he,"@type":"Webpage"}})}let E={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:w};this.jsonLdService.set("signup",E)}createForm(){this.sendOtpForm=new U({firstnameFormControl:new b("",{validators:[l.required,l.pattern(/[A-Za-z]$/),l.minLength(1),l.maxLength(15)]}),lastnameFormControl:new b("",{validators:[l.required,l.pattern(/[A-Za-z]$/),l.minLength(1),l.maxLength(15)]}),emailFormControl:new b("",{validators:[l.required,l.email,l.pattern(/^[A-Za-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$/)]})}),this.signUpForm=new U({otpFormControl:new b("",{validators:[l.required,l.minLength(4),l.maxLength(6)]})})}static{this.\u0275fac=function(i){return new(i||n)(f(se),f(me),f(j),f(W),f(T),f(ae),f(de))}}static{this.\u0275cmp=k({type:n,selectors:[["vw-signup"]],viewQuery:function(i,t){if(i&1&&q(_e,5)(Ce,5)(xe,5),i&2){let m;O(m=I())&&(t.passwordField=m.first),O(m=I())&&(t.eyeIcon=m.first),O(m=I())&&(t.hideEyeIcon=m.first)}},inputs:{closableSU:"closableSU",visibleSU:"visibleSU"},outputs:{visibleSUChange:"visibleSUChange"},standalone:!1,decls:11,vars:2,consts:[[1,"sign-in-wrapper"],[1,"dialog"],[1,"dialog-body"],[1,"form"],[1,"form-header"],[1,"punchLine"],["class","form-body",4,"ngIf"],[1,"form-body"],["id","send-otp-create-account","name","send-otp-create-account",1,"send-otp-form",3,"submit","formGroup"],[1,"mat-form-field-div"],["appearance","outline"],["matInput","","type","text","formControlName","firstnameFormControl","minlength","1",3,"ngModelChange","ngModel"],[4,"ngIf"],["matInput","","type","text","formControlName","lastnameFormControl","minlength","1",3,"ngModelChange","ngModel"],["matInput","","type","email","formControlName","emailFormControl",3,"ngModelChange","ngModel"],["class","mat-form-field-div",4,"ngIf"],[1,"mat-form-field-div","signup-btn"],["type","submit",1,"vw-btn-primary","vw-full-width","vw-capitalize",3,"keyup.enter"],[1,"resendTxt"],["href","javascript:void(0);","routerLink","/login"],[1,"signup-form",3,"submit","formGroup"],["matInput","","placeholder","Enter OTP","formControlName","otpFormControl","minlength","4","maxlength","6",3,"ngModelChange","ngModel"],["mat-raised-button","","type","submit",1,"btn-yellow",3,"keyup.enter"],[1,"mat-form-field-div","text-center"]],template:function(i,t){i&1&&(r(0,"div",0),V(1,"vw-breadcrumb"),r(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h1"),a(8,"Create an account, & enjoy an unparalleled experience tailored just for you!"),o()()(),h(9,Ee,33,13,"div",6)(10,Le,15,5,"div",6),o()()()()),i&2&&(s(9),p("ngIf",t.signupModal),s(),p("ngIf",t.registerModal))},dependencies:[z,D,Q,G,J,B,K,X,Z,H,pe,ne,ee,te,ie],styles:[".sign-in-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:550px;justify-content:center;position:relative;z-index:1}.sign-in-wrapper[_ngcontent-%COMP%] vw-breadcrumb[_ngcontent-%COMP%]{position:absolute;left:50%;top:0;max-width:1280px;transform:translate(-50%);width:100%}@media screen and (max-width:767.98px){.sign-in-wrapper[_ngcontent-%COMP%]{padding:0 1rem}}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field{width:100%}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:20px!important}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field-appearance-outline .mat-form-field-infix{padding:8px 0 13px!important;border-top:8px solid transparent}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field-appearance-outline .mat-form-field-label{font-size:14px!important}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-should-float .mat-form-field-label{font-size:14px!important;line-height:20px!important}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field-appearance-outline.mat-form-field-should-float.mat-focused .mat-form-field-label{font-size:14px!important;line-height:20px!important}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field-appearance-outline.mat-form-field-should-float .mat-form-field-label{font-size:14px!important;line-height:20px!important}.sign-in-wrapper[_ngcontent-%COMP%] .mat-form-field-label-wrapper{top:-15px!important;padding-top:15px!important}.sign-in-wrapper[_ngcontent-%COMP%] .mat-input-element{font-size:14px!important}.dialog[_ngcontent-%COMP%]{margin:0 auto;min-height:200px;width:100%;max-width:400px;background-color:var(--brand-white);border-radius:10px;overflow:hidden;box-shadow:0 0 10px #00000040}@media screen and (max-width:767.98px){.dialog[_ngcontent-%COMP%]{max-width:100%}}.dialog-body[_ngcontent-%COMP%]{display:flex}.form[_ngcontent-%COMP%]{padding:30px 50px;position:relative}@media screen and (max-width:767.98px){.form[_ngcontent-%COMP%]{padding:30px 30px 50px}}.punchLine[_ngcontent-%COMP%]{text-align:center;width:100%;margin-bottom:30px}.punchLine[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:var(--secondary-black-color);font-size:18px;font-weight:700;margin-bottom:20px;line-height:23px}
1.punchLine[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:400;font-size:13px;line-height:18px;color:var(--brand-black-300)}.punchLine[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline}.punchLine[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--secondary-blue-text);text-decoration:underline}.mat-form-field-div[_ngcontent-%COMP%]{text-align:center;width:100%} .signup-backdrop{background-color:#0009}@media screen and (max-width:767.98px){ .signup-modal{margin-top:auto;max-width:100%!important}}.signup-btn[_ngcontent-%COMP%]{margin-top:13px}.signup-btn[_ngcontent-%COMP%] .vw-btn-primary[_ngcontent-%COMP%]{height:42px}.alertWishlistContent[_ngcontent-%COMP%]{text-align:center!important}.alertWishlistContent[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:200!important;font-size:1.75rem!important;line-height:2rem!important;color:var(--brand-black)}.welcomeBtn[_ngcontent-%COMP%]{border-radius:0!important;color:var(--brand-black);font-size:1.1rem;background:var(--secondary-yellow);position:relative;padding:.5rem 2.3rem;text-align:center!important;cursor:pointer;border:none!important;text-transform:uppercase;outline:none!important;font-weight:700}.welcomeBtn[_ngcontent-%COMP%]:hover{background-color:var(--brand-black)!important;color:var(--brand-white)!important}.otpMsg[_ngcontent-%COMP%]{font-size:14px;color:#469746;margin-top:10px;font-weight:600}.resendTxt[_ngcontent-%COMP%]{color:var(--brand-black-300);text-align:center;font-size:12px;font-weight:500;line-height:18px;margin-top:15px;width:100%}.resendTxt[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--brand-black);text-decoration:none}"]})}}return n})();var Te=[{path:"",component:ue,canActivate:[ce]}],fe=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=y({type:n})}static{this.\u0275inj=F({imports:[N.forChild(Te),N]})}}return n})();var ct=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=y({type:n})}static{this.\u0275inj=F({imports:[A,fe,Y,$,le,re]})}}return n})();export{ct as SignupModule};
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.