PageSourceSearch

https://my.videojet.com/chunk-LCFFZP65.js

js videojet.com collected 2026-10-03 21:38:16 UTC 66,565 bytes, 1 lines download raw bytes

1import{A as U,F as Le,Ha as Ze,I as se,K as ue,R as T,S as j,T as C,U as q,V as z,Wa as K,X as W,Y as Z,Z as $,_ as be,_a as $e,ba as Se,bb as V,ca as H,cb as A,da as k,db as He,fa as qe,hb as oe,kb as Ee,m as Oe,ma as Y,pa as J,r as Ue,ra as ze,sa as We,vb as Ye,y as R,ya as _e,z as je}from"./chunk-2BM7GTJT.js";import{Bb as g,Db as f,Ib as x,Ic as d,Jb as n,Jc as m,Kb as s,Lb as h,R as me,Sb as O,Ua as a,V as Ae,W as xe,Wb as I,Xb as S,bb as c,da as B,e as ke,ea as M,hc as X,ib as N,ic as pe,jb as ye,kc as o,la as De,lc as b,mc as u,ob as Ge,pa as Ce,qc as re,rc as ae,sc as ne,tc as F,yc as ce}from"./chunk-CZQR6XQ3.js";import{a as Ne,b as Ve,c as Re}from"./chunk-EQDQRRRY.js";var we=()=>({minWidth:"50px",width:"100%"});function ot(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Email address is required"),s())}function lt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Please enter a valid email address"),s())}function dt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Invalid email format (e.g., [email protected])"),s())}function mt(r,v){if(r&1&&(n(0,"div",9),g(1,ot,3,0,"div"),g(2,lt,3,0,"div"),g(3,dt,3,0,"div"),s()),r&2){let e,t,i,l=S();a(),f((e=l.registerForm.get("email"))!=null&&e.hasError("required")?1:-1),a(),f((t=l.registerForm.get("email"))!=null&&t.hasError("email")?2:-1),a(),f((i=l.registerForm.get("email"))!=null&&i.hasError("pattern")?3:-1)}}function pt(r,v){if(r&1){let e=O();n(0,"div",9),h(1,"i",38),o(2),d(3,"transloco"),n(4,"a",39),I("click",function(){B(e);let i=S();return M(i.login())}),o(5," login "),s(),o(6),d(7,"transloco"),n(8,"a",40),o(9),d(10,"transloco"),s(),o(11,". "),s()}r&2&&(a(2),u("",m(3,3,"auth.RegisterEmailError")," "),a(4),u(" ",m(7,5,"or")," "),a(3),u(" ",m(10,7,"auth.ResetPassword")," "))}function ct(r,v){if(r&1){let e=O();n(0,"div",9),h(1,"i",38),n(2,"a",41),I("click",function(){B(e);let i=S();return M(i.onValidateEmailClick())}),o(3),d(4,"transloco"),s(),o(5),d(6,"transloco"),s()}r&2&&(a(3),u(" ",m(4,2,"auth.clickHere")," "),a(2),u(" ",m(6,4,"auth.RegisterEmailError2")," "))}function ut(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"First name is required"),s())}function ht(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"First name must be at least 2 characters"),s())}function gt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"First name cannot exceed 50 characters"),s())}function ft(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Only letters, spaces, hyphens and apostrophes allowed"),s())}function vt(r,v){if(r&1&&(n(0,"div",13),g(1,ut,3,0,"div"),g(2,ht,3,0,"div"),g(3,gt,3,0,"div"),g(4,ft,3,0,"div"),s()),r&2){let e,t,i,l,p=S();a(),f((e=p.registerForm.get("firstName"))!=null&&e.hasError("required")?1:-1),a(),f((t=p.registerForm.get("firstName"))!=null&&t.hasError("minlength")?2:-1),a(),f((i=
1p.registerForm.get("firstName"))!=null&&i.hasError("maxlength")?3:-1),a(),f((l=p.registerForm.get("firstName"))!=null&&l.hasError("pattern")?4:-1)}}function xt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Last name is required"),s())}function Ct(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Last name must be at least 2 characters"),s())}function yt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Last name cannot exceed 50 characters"),s())}function bt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Only letters, spaces, hyphens and apostrophes allowed"),s())}function St(r,v){if(r&1&&(n(0,"div",13),g(1,xt,3,0,"div"),g(2,Ct,3,0,"div"),g(3,yt,3,0,"div"),g(4,bt,3,0,"div"),s()),r&2){let e,t,i,l,p=S();a(),f((e=p.registerForm.get("lastName"))!=null&&e.hasError("required")?1:-1),a(),f((t=p.registerForm.get("lastName"))!=null&&t.hasError("minlength")?2:-1),a(),f((i=p.registerForm.get("lastName"))!=null&&i.hasError("maxlength")?3:-1),a(),f((l=p.registerForm.get("lastName"))!=null&&l.hasError("pattern")?4:-1)}}function _t(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Please select an industry"),s())}function Et(r,v){if(r&1&&(n(0,"div",13),g(1,_t,3,0,"div"),s()),r&2){let e,t=S(2);a(),f((e=t.registerForm.get("industry"))!=null&&e.hasError("required")?1:-1)}}function wt(r,v){r&1&&(n(0,"div",46)(1,"small",47),o(2),d(3,"transloco"),s(),n(4,"strong",48),o(5),d(6,"transloco"),s(),n(7,"span",47),o(8),d(9,"transloco"),s(),n(10,"strong",48),o(11),d(12,"transloco"),s(),n(13,"span",47),o(14,","),s(),n(15,"small",47),o(16),d(17,"transloco"),s(),n(18,"strong",48),o(19),d(20,"transloco"),s()()),r&2&&(a(2),b(m(3,6,"user.SelectIndustry")),a(3),b(m(6,8,"user.OEM")),a(3),b(m(9,10,"user.or")),a(3),b(m(12,12,"user.PharmaAndMedical")),a(5),b(m(17,14,"apps.RequestAccess")),a(3),b(m(20,16,"user.OEMCommPortal")))}function Pt(r,v){if(r&1){let e=O();n(0,"div",10)(1,"div",5)(2,"label",42),o(3),d(4,"transloco"),n(5,"span",7),o(6,"*"),s()(),n(7,"p-select",43),d(8,"transloco"),ne("ngModelChange",function(i){B(e);let l=S();return ae(l.selectedIndustry,i)||(l.selectedIndustry=i),M(i)}),I("onChange",function(){let i;B(e);let l=S();return l.showInfoBox(),M((i=l.registerForm.get("industry"))==null?null:i.markAsTouched())}),s(),g(9,Et,2,1,"div",13),n(10,"p-toast",44),Ge(11,wt,21,18,"ng-template",45),s()()()}if(r&2){let e,t,i,l=S();a(3),u(" ",m(4,13,"user.Industry")),a(4),pe(ce(17,we)),X("ng-invalid",((e=l.registerForm.get("industry"))==null?null:e.invalid)&&((e=l.registerForm.get("industry"))==null?null:e.touched))("ng-touched",(t=l.registerForm.get("industry"))==null?null:t.touched),x("placeholder",F(m(8,15,"user.Industry")))("options",l.IndustryList),re("ngModel",l.selectedIndustry),a(2),f((i=l.registerForm.get("industry"))!=null&&i.invalid&&((i=l.registerForm.get("industry"))!=null&&i.touched)?9:-1),a(),x("life",5e3)}}function It(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Company name is required"),s())}function Ft(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Company name must be at least 2 characters"),s())}function Tt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Company name cannot exceed 100 characters"),s())}function Nt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Invalid company name format"),s())}function Vt(r,v){if(r&1&&(n(0,"div",13),g(1,It,3,0,"div"),g(2,Ft,3,0,"div"),g(3,Tt,3,0,"div"),g(4,Nt,3,0,"div"),s()),r&2){let e,t,i,l,p=S();a(),f((e=p.registerForm.get("company"))!=null&&e.hasError("required")?1:-1),a(),f((t=p.registerForm.get("company"))!=null&&t.hasError("minlength")?2:-1),a(),f((i=
1p.registerForm.get("company"))!=null&&i.hasError("maxlength")?3:-1),a(),f((l=p.registerForm.get("company"))!=null&&l.hasError("pattern")?4:-1)}}function Lt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Please select a country"),s())}function Bt(r,v){if(r&1&&(n(0,"div",13),g(1,Lt,3,0,"div"),s()),r&2){let e,t=S();a(),f((e=t.registerForm.get("country"))!=null&&e.hasError("required")?1:-1)}}function Mt(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Please select a state"),s())}function Rt(r,v){if(r&1&&(n(0,"div",13),g(1,Mt,3,0,"div"),s()),r&2){let e,t=S(2);a(),f((e=t.registerForm.get("state"))!=null&&e.hasError("required")?1:-1)}}function kt(r,v){if(r&1){let e=O();n(0,"div",10)(1,"div",5)(2,"label",49),o(3),d(4,"transloco"),n(5,"span",7),o(6,"*"),s()(),n(7,"p-select",50),d(8,"transloco"),I("onChange",function(){let i;B(e);let l=S();return M((i=l.registerForm.get("state"))==null?null:i.markAsTouched())}),s(),g(9,Rt,2,1,"div",13),s()()}if(r&2){let e,t,i,l=S();a(3),u(" ",m(4,12,"user.State")),a(4),pe(ce(16,we)),X("ng-invalid",((e=l.registerForm.get("state"))==null?null:e.invalid)&&((e=l.registerForm.get("state"))==null?null:e.touched))("ng-touched",(t=l.registerForm.get("state"))==null?null:t.touched),x("placeholder",F(m(8,14,"user.State")))("filter",!0)("options",l.statesData),a(2),f((i=l.registerForm.get("state"))!=null&&i.invalid&&((i=l.registerForm.get("state"))!=null&&i.touched)?9:-1)}}function At(r,v){r&1&&(n(0,"div"),h(1,"i",37),o(2,"Please select a language"),s())}function Dt(r,v){if(r&1&&(n(0,"div",13),g(1,At,3,0,"div"),s()),r&2){let e,t=S();a(),f((e=t.registerForm.get("language"))!=null&&e.hasError("required")?1:-1)}}var te=(()=>{class r{constructor(e,t,i,l,p,y,_,E){this.fb=e,this.authService=t,this.route=i,this.router=l,this.translocoService=p,this.messageService=y,this.commonService=_,this.http=E,this.isLoading=!1,this.countryData=[],this.statesData=[],this.selectedCountry=null,this.visible=!1,this.formData={},this.isFormValid=!1,this.userData=null,this.userId="",this.registeredData=[],this.showStateField=!1,this.hideIndustryField=!0,this.hideJobTitle=!0,this.SalutationList=[],this.IndustryList=[],this.languageOptions=[],this.languageCatalog=[],this.userGuid="",this.registerForm=this.fb.group({email:["",[C.required,C.email,C.pattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$")]],firstName:["",[C.required,C.minLength(2),C.maxLength(50),C.pattern("^[a-zA-Z\\s'-]+$")]],lastName:["",[C.required,C.minLength(2),C.maxLength(50),C.pattern("^[a-zA-Z\\s'-]+$")]],industry:["",C.required],company:["",[C.required,C.minLength(2),C.maxLength(100),C.pattern("^[a-zA-Z0-9\\s\\.,&'-]+$")]],country:["",C.required],language:[""],state:[""],agreeByTelephone:[!1],agreeByEmail:[!1]}),this.registerForm.get("email")?.valueChanges.subscribe(P=>{this.checkUserExists(P)}),this.registerForm.get("language")?.valueChanges.subscribe(P=>{this.languageCode=P,this.GetCountriesLangId(P)}),this.SalutationList=[{value:"",label:this.translocoService.translate("shared.Select")},{value:"Mr",label:this.translocoService.translate("user.Mr")},{value:"Mrs",label:this.translocoService.translate("user.Mrs")},{value:"Miss",label:this.translocoService.translate("user.Ms")},{value:"Dr",label:this.translocoService.translate("user.Dr")}],this.IndustryList=[{value:"",label:this.translocoService.translate("shared.Select")},{value:"End User",label:this.translocoService.translate("user.EndUser")},{value:"Pharma and Medical",label:this.translocoService.translate("user.PharmaAndMedical")},{value:"OEM",label:this.translocoService.translate("user.OEM")},{value:"Videojet Distributor",label:this.translocoService.translate("user.VideojetDistributor")},{value:"Other",label:this.translocoService.translate("user.Other")}]}ngOnInit(){this.languageChange(),this.loadLanguages(),this.route.url.subscribe(e=>{this.activeuserGuid=e.length>=2?e[2].path:void 0}),this.getCountries(),this.setCountryByParm(),this.GetCountriesLangId()}GetCountriesLangId(e){let t=e||this.registerForm.get("language")?.value||localStorage.getItem("languageCode")||"en";this.commonService.GetCountriesLangId(t).subscribe(i=>{this.languageCode=i.id})}loadLanguages(){let e=this.registerForm.get("country")?.value||this.selectedCountry;this.http.get("/assets/i18n/language.json").subscribe({next:t=>{this.languageCatalog=t?.languages??[],this.updateLanguageOptions(e)},error:()=>{this.languageCatalog=[],this.languageOptions=[],this.registerForm.get("language")?.setValue("")}})}languageChange(){this.translocoService.langChanges$.subscribe(()=>{this.SalutationList=[{value:"",label:this.translocoService.translate("shared.Select")},{value:"Mr",label:this.translocoService.translate("user.Mr")},{value:"Mrs",label:this.translocoService.translate("user.Mrs")},{value:"Miss",label:this.translocoService.translate("user.Ms")},{value:"Dr",label:this.translocoService.translate("user.Dr")}],this.IndustryList=[{value:"",label:this.translocoService.translate("shared.Select")},{value:"End User",label:this.translocoService.translate("user.EndUser")},{value:"Pharma and Medical",label:this.translocoService.translate("user.PharmaAndMedical")},{value:"OEM",label:this.translocoService.translate("user.OEM")},{value:"Videojet Distributor",label:this.translocoService.translate("user.VideojetDistributor")},{value:"Other",label:this.translocoService.translate("user.Other")}]})}login(){this.authService.login()}setCountryByParm(){this.route.url.subscribe(e=>{let t=e.length>
1=2?e[1].path:"",i=this.route.snapshot.queryParams.Id;t==="shop-us"?(this.selectedCountry=240,this.registerForm.controls.country.disable(),this.getStates(this.selectedCountry),this.showStateField=!0,this.registerForm.get("state")?.setValidators([C.required]),this.hideIndustryField=!1,this.toggleIndustryValidator(!1)):t==="shop-ca"?(this.selectedCountry=44,this.registerForm.controls.country.disable(),this.hideIndustryField=!1,this.toggleIndustryValidator(!1),this.hideStateField()):t==="salesforce"?(this.registerForm.get("email")?.disable(),this.registerForm.get("industry")?.disable(),this.registerForm.get("company")?.disable(),this.getUserData()):t==="oem"?(this.registerForm.get("email")?.disable(),this.registerForm.get("industry")?.disable(),this.registerForm.get("company")?.disable(),this.getLanguages(),this.getUserData(),this.getDataByGroup()):t==="oem-portal"?(this.selectedIndustry="OEM",this.registerForm.controls.industry?.patchValue(this.selectedIndustry),this.registerForm.get("industry")?.disable(),this.getLanguages()):this.showStateField=!1})}checkUserExists(e){this.route.url.subscribe(t=>{let i=t.length>=2?t[1].path:"";if(i==="salesforce"||i==="oem"){this.registerForm.get("email")?.setErrors(null);return}if(e!=null&&e.trim()!==""&&this.registerForm.get("email")?.valid){let l={email:e};this.authService.isExistUser(l).subscribe({next:p=>{let y=p.isExisted,_=p?.error,E=this.registerForm.get("email");if(this.userGuid=p?.userGuid||"",y===!0)_==="user_existed_not_registered"?E?.setErrors({userExistedNotRegistered:!0}):_==="user_existed"?E?.setErrors({userExisted:!0}):E?.setErrors({userExisted:!0});else if(y===!1){this.userGuid="";let L=E?.errors;if(L){let P=L,{userExisted:D,userExistedNotRegistered:w}=P,G=Re(P,["userExisted","userExistedNotRegistered"]);Object.keys(G).length>0?E?.setErrors(G):E?.setErrors(null)}}},error:p=>{console.error("Error checking user existence:",p)}})}})}onValidateEmailClick(){let e=this.registerForm.get("email")?.value;this.authService.setEmail(e);let t={userGuid:this.userGuid};this.authService.ResendEmail(t).subscribe({next:()=>{this.router.navigate(["/auth/validate",this.userGuid])},error:()=>{}})}getUserData(){this.isLoading=!0;let e={userGuid:this.activeuserGuid};this.authService.loadUserData(e).pipe(me(()=>{})).subscribe({next:t=>{t&&!t.error&&t.user?(this.userData=t.user,this.selectedCountry=this.userData.countryId,this.patchFormWithData(),this.selectedCountry===240?(this.getStates(this.selectedCountry),this.showStateField=!0,this.registerForm.get("state")?.setValidators([C.required]),this.registerForm.get("email")?.disable(),this.registerForm.get("industry")?.disable(),this.registerForm.get("company")?.disable()):(this.hideStateField(),this.onCountryChange(),this.getDataByGroupname(),this.registerForm.get("email")?.disable(),this.registerForm.get("industry")?.disable(),this.registerForm.get("company")?.disable())):this.isLoading=!1},error:()=>{this.isLoading=!1}})}updateLanguageOptions(e){if(!e||!this.languageCatalog.length||!this.countryData.length){this.languageOptions=[],this.registerForm.get("language")?.setValue("");return}let t=this.countryData.find(w=>w.countryId===e||w.id===e||Number(w.countryId)===Number(e));if(!t){this.languageOptions=[],this.registerForm.get("language")?.setValue("");return}let i=String(t.countryId??e),l=(t.isoCountryCode??t.isoCode??"").toUpperCase(),p=this.languageCatalog.filter(w=>{let G=String(w.countryDbId??""),ie=(w.isoCountryCode??"").toUpperCase();return G===i||!!l&&ie===l}),y=this.languageCatalog.find(w=>w.LanguageCode?.toLowerCase()==="en"),_=new Map;p.forEach(w=>{_.set(w.LanguageCode,Ve(Ne({},w),{label:w.LanguageName,value:w.LanguageCode}))}),y&&_.set(y.LanguageCode,Ve(Ne({},y),{label:y.LanguageName,value:y.LanguageCode})),this.languageOptions=Array.from(_.values());let E=this.registerForm.get("language")?.value,P=this.languageOptions.some(w=>w.value===E),L=y?.LanguageCode,D=P?E:L&&_.has(L)?L:this.languageOptions[0]?.value??"";this.registerForm.get("language")?.setValue(D),this.languageCode=D,this.GetCountriesLangId(D)}patchFormWithData(){this.registerForm.patchValue({email:this.userData.email,firstName:this.userData.firstName,lastName:this.userData.lastName,industry:this.userData.industry,company:this.userData.companyName,country:this.userData.countryId,state:this.userData.stateId,language:this.userData.languageCode??this.registerForm.get("language")?.value}),this.updateLanguageOptions(this.userData.countryId)}getDataByGroupname(){let e="salesforce";this.isLoading=!0,this.authService.loadRegisteredData(e).pipe(me(()=>{})).subscribe({next:t=>{t&&(this.registeredData=t),this.isLoading=!1},error:t=>{this.isLoading=!1}})}getDataByGroup(){this.isLoading=!0,this.authService.loadRegisteredData("oem").pi
1pe(me(()=>{})).subscribe({next:t=>{t&&(this.registeredData=t),this.isLoading=!1},error:t=>{this.isLoading=!1}})}onSubmit(){let e=this.route.snapshot.url[1]?.path;this.isLoading=!0,e=="salesforce"||e=="oem"?this.updateSalesforceData():this.registerData()}registerData(){if(this.registerForm.valid){let e=this.route.snapshot.url[1]?.path,t=this.registerForm.getRawValue(),i=this.showStateField?this.registerForm.value.state:null,l={CompanyName:t.company,ConfirmEmail:t.email,ContactNumberCountryId:t.country,CountryId:t.country,StateId:i,Industry:t.industry,Email:t.email,FirstName:t.firstName,IsAgreedContactByEmail:t.agreeByEmail,IsAgreedContactByPhone:t.agreeByTelephone,LanguageId:this.languageCode||1,LastName:t.lastName};e=="shop-us"?l.RegistrationSource="shop-us":e=="shop-ca"?l.RegistrationSource="shop-ca":l.Industry=t.industry,e=="shop-us"?(l.phoneType="landline",l.RegistrationSource="shop-us"):e=="shop-ca"&&(l.phoneType="landline",l.RegistrationSource="shop-ca"),this.authService.registerUser(l).subscribe({next:p=>{let y=this.registerForm.get("email")?.getRawValue(),_=Object.entries(p).find(([P,L])=>P==="userGUID"),E=_?_[1]:null;this.router.navigate(["validate/"+E],{relativeTo:this.route.parent}),this.authService.setEmail(y),this.messageService.add({severity:"success",summary:"",detail:this.translocoService.translate("shared.UserCreatedSuccess"),life:5e3}),this.isLoading=!1},error:p=>{this.messageService.add({severity:"error",summary:"Error",detail:this.translocoService.translate("shared.FailedUserCreation"),life:5e3})}})}else this.registerForm.markAllAsTouched()}updateSalesforceData(){if(this.registerForm.valid){let e=this.route.snapshot.url[1]?.path,t=this.registerForm.getRawValue(),i=this.showStateField?this.registerForm.get("state")?.getRawValue():null,l={CompanyName:t.company,ConfirmEmail:t.email,ContactNumberCountryId:t.country,CountryId:t.country,Email:t.email,FirstName:t.firstName,Industry:t.industry,IsAgreedContactByEmail:t.agreeByEmail,IsAgreedContactByPhone:t.agreeByTelephone,LanguageId:this.languageCode||1,LastName:t.lastName,StateId:i,MiddleName:null,RegGroupName:this.userData.regGroupName,Id:this.userData.Id,CreatedOn:this.userData.createdOn};(e=="oem"||e=="salesforce")&&(l.RegistrationSource="Salesforce"),this.authService.registerUser(l).subscribe({next:p=>{let y=this.registerForm.get("email")?.getRawValue(),_=Object.entries(p).find(([P,L])=>P==="userGUID"),E=_?_[1]:null;this.router.navigate(["validate/"+E],{relativeTo:this.route.parent}),this.messageService.add({severity:"success",summary:"",detail:this.translocoService.translate("shared.UserCreatedSuccess"),life:5e3}),this.authService.setEmail(y),this.isLoading=!1},error:p=>{this.messageService.add({severity:"error",summary:"Error",detail:this.translocoService.translate("shared.FailedUserCreation"),life:5e3})}})}else this.registerForm.markAllAsTouched()}onCountryChange(){let e=this.registerForm.get("country")?.value,t=this.route.snapshot.url[2]?.path,i=this.registerForm.get("state");e==240&&t!=="shop-ca"?(this.getStates(e),this.showStateField=!0,i?.setValidators([C.required])):(this.statesData=[],i?.clearValidators(),i?.reset(),this.showStateField=!1),i?.updateValueAndValidity(),this.updateLanguageOptions(this.selectedCountry)}toggleIndustryValidator(e){let t=this.registerForm.get("industry");t&&(e?(t.setValidators([C.required]),t.enable()):(t.clearValidators(),t.reset(),t.disable()),t.updateValueAndValidity())}getFieldError(e){let t=this.registerForm.get(e);
1if(t?.invalid&&(t.dirty||t.touched)){if(t.hasError("required"))return`${e} is required`;if(t.hasError("email"))return"Invalid email format";if(t.hasError("pattern")){if(e==="email")return"Please enter a valid email address";if(e==="firstName"||e==="lastName")return"Only letters, spaces, hyphens and apostrophes allowed";if(e==="company")return"Invalid company name format"}if(t.hasError("minlength"))return`Minimum ${t.getError("minlength").requiredLength} characters required`;if(t.hasError("maxlength"))return`Maximum ${t.getError("maxlength").requiredLength} characters allowed`}return""}shouldShowError(e){let t=this.registerForm.get(e);return!!(t?.invalid&&(t.dirty||t.touched))}getCountries(){this.isLoading=!0,this.authService.getCountries(this.selectedCountry).pipe(me(()=>{})).subscribe({next:e=>{if(e){this.countryData=e;let t=this.registerForm.get("country")?.value||this.selectedCountry;this.updateLanguageOptions(t)}this.isLoading=!1},error:e=>{this.isLoading=!1}})}getStates(e){this.authService.getStates(e).subscribe({next:t=>{t&&(this.statesData=t)},error:t=>{}})}getLanguages(){this.authService.getLanguages().subscribe(e=>{this.languages=e})}hideStateField(){this.showStateField=!1,this.registerForm.get("state")?.clearValidators(),this.registerForm.get("state")?.updateValueAndValidity()}showInfoBox(){this.selectedIndustry==="OEM"||this.selectedIndustry==="Pharma and Medical"?this.messageService.add({severity:"info",summary:"Info",detail:this.translocoService.translate("shared.MessageContent"),key:"t1"}):this.messageService.clear()}static{this.\u0275fac=function(t){return new(t||r)(c(H),c(T),c(R),c(U),c(V),c(k),c(oe),c(Ue))}}static{this.\u0275cmp=N({type:r,selectors:[["app-register-profile"]],standalone:!1,decls:103,vars:104,consts:[[1,"mx-auto","grid","grid-cols-12","max-w-(--breakpoint-2xl)","px-3","sm:px-4","md:px-6","lg:px-8","py-4","sm:py-5","md:py-6"],[1,"col-span-12","lg:col-span-10","lg:col-start-2","xl:col-span-8","xl:col-start-3"],[1,"gap-4","sm:gap-5","md:gap-6",3,"ngSubmit","formGroup"],[1,"grid","grid-cols-1","md:grid-cols-12","gap-3","sm:gap-4","pb-3","sm:pb-4"],[1,"col-span-12"],[1,"flex","flex-col","gap-1","sm:gap-1.5"],["for","formEmail",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],[1,"text-red-500","ml-1"],["pInputText","","type","email","formControlName","email","id","formEmail","name","email","placeholder","[email protected]",1,"text-xs","sm:text-sm","md:text-base",3,"ngModelChange","ngModel"],[1,"text-red-500","text-xs","sm:text-sm","mt-1"],[1,"md:col-span-6","col-span-12"],["for","firstName",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],["pInputText","","formControlName","firstName","type","text","id","firstName",1,"capitalize","text-xs","sm:text-sm","md:text-base",3,"placeholder"],[1,"text-red-500","text-xs","mt-1"],["for","lastName",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],["pInputText","","formControlName","lastName","type","text","id","lastName",1,"capitalize","text-xs","sm:text-sm","md:text-base",3,"placeholder"],["for","company",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],["pInputText","","type","text","formControlName","company","id","company",1,"capitalize","text-xs","sm:text-sm","md:text-base",3,"placeholder"],["for","country",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],["formControlName","country","filterBy","countryName","optionLabel","countryName","optionValue","id",3,"ngModelChange","onChange","filter","options","placeholder","ngModel"],["for","language",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],["formControlName","language","optionLabel","label","optionValue","LanguageCode",3,"onChange","options","placeholder"],[1,"grid","grid-cols-1","gap-3","sm:gap-4","pb-3","sm:pb-4"],[1,"flex","items-center","gap-2","sm:gap-2.5"],["formControlName","agreeByTelephone","value","0",3,"binary"],["for","agreeByTelephone",1,"text-xs","sm:text-sm","md:text-base"],["formControlName","agreeByEmail","value","0",3,"binary"],["for","agreeByEmail",1,"text-xs","
1sm:text-sm","md:text-base"],[1,"text-center"],[1,"text-xs","sm:text-sm","md:text-base"],["href","https://global.videojet.com/wp-content/uploads/dam/pdf/NA%20-%20English/privacy-policy/Videojet-online-terms-of-use-us.pdf","target","_blank",1,"text-blue-600","hover:underline"],["href","/pages/privacy-notice","target","_blank",1,"text-blue-600","hover:underline"],[1,"flex","flex-col","sm:flex-row","justify-center","gap-3","sm:gap-4","py-4","sm:py-5","md:py-6","pt-3","sm:pt-4"],[1,"text-center","sm:text-end","w-full","sm:w-auto"],["type","reset",1,"btn-reset"],[1,"text-center","sm:text-start","w-full","sm:w-auto"],["type","submit","styleClass","w-full sm:w-auto",1,"next",3,"disabled"],[1,"pi","pi-exclamation-circle","mr-1"],[1,"pi","pi-info-circle","mr-1"],[1,"text-blue-600","underline","cursor-pointer",3,"click"],["href","/auth/reset-password-email",1,"text-blue-600","underline"],["href","javascript:void(0)",1,"text-blue-600","underline",3,"click"],["for","industry",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],["formControlName","industry","optionLabel","label","optionValue","value",3,"ngModelChange","onChange","options","placeholder","ngModel"],["key","t1","position","bottom-center",3,"life"],["pTemplate","message"],[1,"flex","flex-wrap","items-center","gap-x-1","w-full","text-gray-900","dark:text-white","text-xs","sm:text-sm","py-3","sm:py-4"],[1,"inline","text-[10px]","sm:text-xs"],[1,"text-[#0c7ca9]","text-[10px]","sm:text-xs","font-semibold","inline"],["for","state",1,"font-semibold","text-xs","sm:text-sm","md:text-base","inline-flex","items-center"],["formControlName","state","filterBy","stateName","optionLabel","stateName","optionValue","id",3,"onChange","filter","options","placeholder"]],template:function(t,i){if(t&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"form",2),I("ngSubmit",function(){return i.onSubmit()}),n(4,"div",3)(5,"div",4)(6,"div",5)(7,"label",6),o(8),d(9,"transloco"),n(10,"span",7),o(11,"*"),s()(),n(12,"input",8),ne("ngModelChange",function(p){return ae(i.formData.email,p)||(i.formData.email=p),p}),s(),g(13,mt,4,3,"div",9),g(14,pt,12,9,"div",9)(15,ct,7,6,"div",9),s()()(),n(16,"div",3)(17,"div",10)(18,"div",5)(19,"label",11),o(20),d(21,"transloco"),n(22,"span",7),o(23,"*"),s()(),h(24,"input",12),d(25,"transloco"),g(26,vt,5,4,"div",13),s()(),n(27,"div",10)(28,"div",5)(29,"label",14),o(30),d(31,"transloco"),n(32,"span",7),o(33,"*"),s()(),h(34,"input",15),d(35,"transloco"),g(36,St,5,4,"div",13),s()()(),n(37,"div",3),g(38,Pt,12,18,"div",10),n(39,"div",10)(40,"div",5)(41,"label",16),o(42),d(43,"transloco"),n(44,"span",7),o(45,"*"),s()(),h(46,"input",17),d(47,"transloco"),g(48,Vt,5,4,"div",13),s()()(),n(49,"div",3)(50,"div",10)(51,"div",5)(52,"label",18),o(53),d(54,"transloco"),n(55,"span",7),o(56,"*"),s()(),n(57,"p-select",19),d(58,"transloco"),ne("ngModelChange",function(p){return ae(i.selectedCountry,p)||(i.selectedCountry=p),p}),I("onChange",function(){let p;return i.onCountryChange(),(p=i.registerForm.get("country"))==null?null:p.markAsTouched()}),s(),g(59,Bt,2,1,"div",13),s()(),g(60,kt,10,17,"div",10),n(61,"div",10)(62,"div",5)(63,"label",20),o(64),d(65,"transloco"),n(66,"span",7),o(67,"*"),s()(),n(68,"p-select",21),d(69,"transloco"),I("onChange",function(){let p;return i.onCountryChange(),(p=i.registerForm.get("language"))==null?null:p.markAsTouched()}),s(),g(70,Dt,2,1,"div",13),s()()(),n(71,"div",22)(72,"div",23),h(73,"p-checkbox",24),n(74,"label",25),o(75),d(76,"transloco"),s()(),n(77,"div",23),h(78,"p-checkbox",26),n(79,"label",27),o(80),d(81,"transloco"),s()(),n(82,"div",28)(83,"p",29),o(84),d(85,"transloco"),n(86,"a",30),o(87),d(88,"transloco"),s(),o(89),d(90,"transloco"),n(91,"a",31),o(92),d(93,"transloco"),s()()()(),n(94,"div",32)(95,"div",33)(96,"p-button",34),o(97),d(98,"transloco"),s()(),n(99,"div",35)(100,"p-button",36),o(101),d(102,"transloco"),s()()()()()()()),t&2){let l,p,y,_,E,P,L,D,w,G,ie,Be,ge,fe,Me,ve;a(3),x("formGroup",i.registerForm),a(5),u(" ",m(9,64,"user.EmailAddress")),a(4),X("ng-invalid",((l=i.registerForm.get("email"))==null?null:l.invalid)&&
1((l=i.registerForm.get("email"))==null?null:l.touched))("ng-dirty",(p=i.registerForm.get("email"))==null?null:p.dirty),re("ngModel",i.formData.email),a(),f((y=i.registerForm.get("email"))!=null&&y.invalid&&((y=i.registerForm.get("email"))!=null&&y.dirty||(y=i.registerForm.get("email"))!=null&&y.touched)?13:-1),a(),f((_=i.registerForm.get("email"))!=null&&_.hasError("userExisted")?14:(_=i.registerForm.get("email"))!=null&&_.hasError("userExistedNotRegistered")?15:-1),a(6),u(" ",m(21,66,"user.FirstName")),a(4),X("ng-invalid",((E=i.registerForm.get("firstName"))==null?null:E.invalid)&&((E=i.registerForm.get("firstName"))==null?null:E.touched)),x("placeholder",F(m(25,68,"user.FirstName"))),a(2),f((P=i.registerForm.get("firstName"))!=null&&P.invalid&&((P=i.registerForm.get("firstName"))!=null&&P.dirty||(P=i.registerForm.get("firstName"))!=null&&P.touched)?26:-1),a(4),u(" ",m(31,70,"user.LastName")),a(4),X("ng-invalid",((L=i.registerForm.get("lastName"))==null?null:L.invalid)&&((L=i.registerForm.get("lastName"))==null?null:L.touched)),x("placeholder",F(m(35,72,"user.LastName"))),a(2),f((D=i.registerForm.get("lastName"))!=null&&D.invalid&&((D=i.registerForm.get("lastName"))!=null&&D.dirty||(D=i.registerForm.get("lastName"))!=null&&D.touched)?36:-1),a(2),f(i.hideIndustryField?38:-1),a(4),u(" ",m(43,74,"user.Company")),a(4),X("ng-invalid",((w=i.registerForm.get("company"))==null?null:w.invalid)&&((w=i.registerForm.get("company"))==null?null:w.touched)),x("placeholder",F(m(47,76,"user.Company"))),a(2),f((G=i.registerForm.get("company"))!=null&&G.invalid&&((G=i.registerForm.get("company"))!=null&&G.dirty||(G=i.registerForm.get("company"))!=null&&G.touched)?48:-1),a(5),u(" ",m(54,78,"user.Country")),a(4),pe(ce(102,we)),X("ng-invalid",((ie=i.registerForm.get("country"))==null?null:ie.invalid)&&((ie=i.registerForm.get("country"))==null?null:ie.touched))("ng-touched",(Be=i.registerForm.get("country"))==null?null:Be.touched),x("placeholder",F(m(58,80,"user.Country")))("filter",!0)("options",i.countryData),re("ngModel",i.selectedCountry),a(2),f((ge=i.registerForm.get("country"))!=null&&ge.invalid&&((ge=i.registerForm.get("country"))!=null&&ge.touched)?59:-1),a(),f(i.showStateField?60:-1),a(4),u(" ",m(65,82,"user.MyProfileLanguage")),a(4),pe(ce(103,we)),X("ng-invalid",((fe=i.registerForm.get("language"))==null?null:fe.invalid)&&((fe=i.registerForm.get("language"))==null?null:fe.touched))("ng-touched",(Me=i.registerForm.get("language"))==null?null:Me.touched),x("placeholder",F(m(69,84,"user.MyProfileLanguage")))("options",i.languageOptions),a(2),f((ve=i.registerForm.get("language"))!=null&&ve.invalid&&((ve=i.registerForm.get("language"))!=null&&ve.touched)?70:-1),a(3),x("binary",!0),a(2),u(" ",m(76,86,"user.MyProfileText2")," "),a(3),x("binary",!0),a(2),u(" ",m(81,88,"user.MyProfileText3")," "),a(4),u(" ",m(85,90,"auth.ReadAndAcceptTerms")," "),a(3),u(" ",m(88,92,"shared.Terms")," "),a(2),u(" ",m(90,94,"And")," "),a(3),u(" ",m(93,96,"shared.PrivacyPolicy")," "),a(5),u(" ",m(98,98,"shared.Reset")," "),a(3),x("disabled",!i.registerForm.valid||!i.selectedCountry),a(),u(" ",m(102,100,"shared.Next")," ")}},dependencies:[W,j,q,z,$,Z,qe,J,ze,Y,We,K,A],styles:[`[_nghost-%COMP%]     .p-dropdown{background:#fff;border:1px solid #d1d5db!important;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s!important;border-radius:6px!important;box-shadow:none;font-weight:600;font-size:1rem}[_nghost-%COMP%]     placeholder{background:transparent;border:0 none;color:#8695ba}[_nghost-%COMP%]     .p-dropdown .p-dropdown-label:focus{color:#222}input.ng-invalid.ng-touched[_ngcontent-%COMP%], input.ng-invalid.ng-dirty[_ngcontent-%COMP%]{border-color:#ef4444!important;background-color:#fef2f2!important}input.ng-valid.ng-touched[_ngcontent-%COMP%], input.ng-valid.ng-dirty[_ngcontent-%COMP%]{border-color:#10b981!important}[_nghost-%COMP%]     .p-dropdown.ng-invalid.ng-touched .p-dropdown-trigger, [_nghost-%COMP%]     .p-dropdown.ng-invalid.ng-dirty .p-dropdown-trigger{border-color:#ef4444!important}[_nghost-%COMP%]     .p-dropdown.ng-valid.ng-touched .p-dropdown-trigger, [_nghost-%COMP%]     .p-dropdown.ng-valid.ng-dirty .p-dropdown-trigger{border-color:#10b981!important}[_nghost-%COMP%]     p-select.ng-invalid.ng-touched .p-select, [_nghost-%COMP%]     p-select.ng-invalid.ng-touched .p-select-label{border-color:#ef4444!important;background-color:#fef2f2!important}[_nghost-%COMP%]     p-select.ng-valid.ng-touched .p-select, [_nghost-%COMP%]     p-select.ng-valid.ng-touched .p-select-label{border-color:#10b981!important}.text-red-500[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;animation:_ngcontent-%COMP%_slideDown .3s ease-out}@keyframes _ngcontent-%COMP%_slideDown{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}input[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]     .p-dropdown:focus{outline:2px solid #3b82f6;outline-offset:2px;box-shadow:0 0 0 3px #3b82f61a}input.ng-valid.ng-touched[_ngcontent-%COMP%]:not([type=checkbox]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;background-size:1.25rem;padding-right:2.5rem}`]})}}return r})();function Ot(r,v){if(r&1&&(n(0,"div",5)(1,"p-message",20),o(2),s()()),r&2){let e,t,i=S();a(),x("severity",(e=i.messageSignal())==null?null:e.severity),a(),u(" ",(t=i.messageSignal())==null?null:t.message," ")}}function Ut(r,v){if(r&1){let e=O();n(0,"div",16),o(1),d(2,"transloco"),n(3,"a",21),I("click",function(){B(e);let i=S();return M(i.onResendEmail())}),o(4),d(5,"transloco"),s(),o(6),d(7,"transloco"),s()}r&2&&(a(),u(" ",m(2,3,"auth.Please")," "),a(3),u(" ",m(5,5,"auth.clickHere")," "),a(2),u(" ",m(7,7,"auth.RegisterEmailError2")," "))}var Ke=(()=>
1{class r{constructor(e,t,i,l,p,y){this.fb=e,this.authService=t,this.route=i,this.translocoService=l,this.messageService=p,this.router=y,this.email=null,this.emailResent=!1,this.userGuid="",this.messageSignal=Ce({}),this.messageInfoFlag=!1,this.emailForm=this.fb.group({email:["",[C.required,C.pattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$")]]}),this.userGuid=this.authService.getUserGuid()||""}ngOnInit(){this.userGuid=this.route.snapshot.paramMap.get("guid"),this.email=this.authService.getEmail(),this.emailForm.get("email")?.valueChanges.subscribe(e=>{this.checkUserExists(e)}),setTimeout(()=>{this.successMessage()},1e3)}successMessage(){if(this.userGuid){let e=`${this.translocoService.translate("auth.EmailSentText")} ${this.email}  ${this.translocoService.translate("auth.ConfirmationLink")}.`;this.messageSignal.set({message:e,severity:"success"})}else this.messageSignal.set({message:this.translocoService.translate("auth.ErrorEmailVerify"),severity:"error"})}onResendEmail(){let e={userGuid:this.userGuid};this.userGuid&&this.authService.ResendEmail(e).subscribe({next:t=>{this.messageSignal.set({message:this.translocoService.translate("auth.ResendEmailSuccess"),severity:"success",key:"t1"})},error:t=>{this.messageSignal.set({message:this.translocoService.translate("auth.ResendEmailError"),severity:"error",key:"t1"})},complete(){}})}changeAndResendEmail(){let e=this.emailForm.get("email")?.value,t={userGuid:this.userGuid,email:e};this.authService.ChangeAndResendEmail(t).subscribe(()=>{this.messageSignal.set({message:this.translocoService.translate("auth.EmailChangedSuccess"),severity:"success"})},i=>{i.error&&i.error.error?this.messageSignal.set({message:i.error.error,severity:"error"}):this.messageSignal.set({message:this.translocoService.translate("auth.EmailChangedError"),severity:"error"})})}checkUserExists(e){if(e!=null&&e.trim()!==""&&this.emailForm.get("email")?.valid){let t=this.route.snapshot.url[2]?.path,i={email:e};this.authService.isExistUser(i).subscribe({next:l=>{let p=l.isExisted,y=this.emailForm.get("email");p?y?.setErrors({userExisted:!0}):y?.setErrors(null)},error:l=>{}})}}onSubmit(){if(this.emailForm.valid&&this.userGuid){let e=this.emailForm.get("email")?.value;this.changeAndResendEmail(),this.emailForm.reset()}}static{this.\u0275fac=function(t){return new(t||r)(c(H),c(T),c(R),c(V),c(k),c(U))}}static{this.\u0275cmp=N({type:r,selectors:[["app-validate-email"]],standalone:!1,decls:33,vars:27,consts:[["key","t1"],[1,"@container","mx-auto"],[1,"mx-auto","max-w-(--breakpoint-2xl)","px-5","py-2"],[1,"flex","justify-center"],[1,"w-full","px-3","text-center","sm:px-4","md:w-10/12","lg:w-8/12","xl:w-6/12"],[1,"flex","justify-center","py-3","sm:py-4"],[1,"w-full"],[1,"mb-3","text-lg","font-semibold","text-blue-200","sm:mb-4","sm:text-xl","md:text-2xl","lg:text-3xl"],[1,"mb-4","w-full","sm:mb-5","md:mb-6"],[1,"text-xs","sm:text-sm","md:text-base"],[1,"cursor-pointer","text-blue-600","transition-colors","duration-200","hover:text-blue-400","hover:underline",3,"click"],[3,"ngSubmit","formGroup"],[1,"py-2","text-left","sm:py-3"],[1,"flex","flex-col","gap-1.5","sm:gap-2"],["for","formEmail",1,"text-xs","font-bold","sm:text-sm","md:text-base"],["pInputText","","type","email","formControlName","email","id","formEmail","name","email","required","",1,"w-full","rounded-md","border","border-gray-300","p-2","text-xs","sm:p-2.5","sm:text-sm","md:p-3","md:text-base",3,"placeholder","pattern"],[1,"text-xs","text-red-600","sm:text-sm"],[1,"flex","justify-center","py-3","sm:py-4","md:py-5"],[1,"flex","w-full","flex-col","gap-3","sm:gap-4"],["type","submit","styleClass","w-full text-sm sm:text-base md:text-lg",3,"disabled"],["styleClass","px-3 sm:px-4 py-3 sm:py-4 text-xs sm:text-sm md:text-base",3,"severity"],[1,"text-blue-600","hover:underline",3,"click"]],template:function(t,i){if(t&1&&(h(0,"p-toast",0),n(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),g(5,Ot,3,2,"div",5),n(6,"div",6)(7,"div",7),o(8),d(9,"transloco"),s()(),n(10,"div",8)(11,"p",9),o(12),d(13,"transloco"),n(14,"a",10),I("click",function(){return i.onResendEmail()}),o(15),d(16,"transloco"),s(),o(17),d(18,"transloco"),s()(),n(19,"form",11),I("ngSubmit",function(){return i.onSubmit()}),n(20,"div",12)(21,"div",13)(22,"label",14),o(23),d(24,"transloco"),s(),h(25,"input",15),d(26,"transloco"),g(27,Ut,8,9,"div",16),s()(),n(28,"div",17)(29,"div",18)(30,"p-button",19),o(31),d(32,"transloco"),s()()()()()()()()),t&2){let l,p;a(5),f((l=i.messageSignal())!=null&&l.message?5:-1),a(3),u(" ",m(9,13,"auth.DontSeeEmailFromUs")," "),a(4),u(" ",m(13,15,"auth.SpamCheck")," "),a(3),u(" ",m(16,17,"auth.ResendEmail")," "),a(2),u(", ",m(18,19,"auth.ChangeEmail")," "),a(2),x("formGroup",i.emailForm),a(4),u(" ",m(24,21,"user.EmailAddress")," "),a(2),x("placeholder",F(m(26,23,"user.EmailAddress")))("pattern","^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$"),a(2),f((p=i.emailForm.get("email"))!=null&&p.hasError("userExisted")?27:-1),a(3),x("disabled",i.emailForm.invali
1d),a(),u(" ",m(32,25,"auth.EmailButton")," ")}},dependencies:[W,j,q,z,be,Se,$,Z,J,Y,_e,K,A],encapsulation:2})}}return r})();var Xe=(()=>{class r{constructor(e,t,i,l,p,y,_){this.authService=e,this.messageService=t,this.fb=i,this.router=l,this.route=p,this.translocoService=y,this.oauthService=_,this.isLowerCaseUpperCaseValid=!1,this.isNumbersSymbolsValid=!1,this.isEightCharacterValid=!1,this.isNotContainPartsOfNameValid=!1,this.isSameAsConfirmPasswordValid=!1,this.userGuid="",this.reason="",this.isLoading=!1,this.disablePasswordForm=!0,this.email="",this.firstName="",this.lastName="",this.setPasswordForm=this.fb.group({password:["",C.required],confirm_password:["",C.required]})}ngOnInit(){this.route.paramMap.subscribe(e=>{this.userGuid=e.get("uId")||"",this.getUserInitials()}),this.userGuid=this.route.snapshot.paramMap.get("uId"),this.appUrl=ue.baseUrl}ngAfterViewInit(){let e=document.getElementById("password"),t=document.getElementById("confirm_password");e.addEventListener("input",()=>{this.validatePassword(e.value),this.updateConfirmPasswordValidation(t.value)}),t.addEventListener("input",()=>{this.updateConfirmPasswordValidation(t.value)})}validatePassword(e){if(this.isLowerCaseUpperCaseValid=!1,this.isNumbersSymbolsValid=!1,this.isEightCharacterValid=!1,this.isNotContainPartsOfNameValid=!1,!e){this.updateListItem("lowerCaseUpperCase",!1),this.updateListItem("numbersSymbols",!1),this.updateListItem("eightCharacter",!1),this.updateListItem("notContainPartsOfName",!1);return}this.isLowerCaseUpperCaseValid=/[a-z]/.test(e)&&/[A-Z]/.test(e),this.isNumbersSymbolsValid=/\d/.test(e)||/[!@#$%^&*(),.?":{}|<>]/.test(e),this.isEightCharacterValid=e.length>=15;let t=this.firstName&&e.toLowerCase().includes(this.firstName.toLowerCase()),i=this.lastName&&e.toLowerCase().includes(this.lastName.toLowerCase());this.isNotContainPartsOfNameValid=!(t||i),this.updateListItem("lowerCaseUpperCase",this.isLowerCaseUpperCaseValid),this.updateListItem("numbersSymbols",this.isNumbersSymbolsValid),this.updateListItem("eightCharacter",this.isEightCharacterValid),this.updateListItem("notContainPartsOfName",this.isNotContainPartsOfNameValid)}enableSubmit(){this.isLowerCaseUpperCaseValid&&this.isNumbersSymbolsValid&&this.isEightCharacterValid&&this.isNotContainPartsOfNameValid&&this.isSameAsConfirmPasswordValid&&(this.disablePasswordForm=!1)}updateListItem(e,t){let i=document.getElementById(e);i&&(t?(i.innerHTML='<span class="check">&#10004;</span>'+(i.textContent?i.textContent.substring(1):""),i.classList.remove("cross"),i.classList.add("check")):(i.innerHTML='<span class="cross">&#10006;</span>'+(i.textContent?i.textContent.substring(1):""),i.classList.remove("check"),i.classList.add("cross"))),this.enableSubmit()}getUserInitials(){this.authService.getUserInitials(this.userGuid).subscribe({next:e=>{this.userGuid=e.user.userGUID||"",this.firstName=e.user.firstName||"",this.lastName=e.user.lastName||"",this.reason=e.user.reason||""},error:e=>{}})}updateConfirmPasswordValidation(e){let t=document.getElementById("password"),i=document.getElementById("confirm_password");t&&i&&(t.value===""&&e===""?this.isSameAsConfirmPasswordValid=!1:this.isSameAsConfirmPasswordValid=t.value===i.value,this.updateListItem("confirmPasswordMatch",this.isSameAsConfirmPasswordValid))}onSubmit(){if(this.setPasswordForm.valid){this.isLoading=!0;let e=this.setPasswordForm.get("password")?.value;this.userGuid=this.route.snapshot.paramMap.get("uId");let t={userGuid:this.userGuid,password:e};this.authService.CompleteNewuserRegistration(t).subscribe({next:()=>{this.isLoading=!1,this.messageService.add({severity:"success",summary:"",key:"t1",detail:this.translocoService.translate("shared.UserCreatedSuccess"),life:5e3}),setTimeout(()=>{this.authService.login()},2e3)},error:i=>{this.messageService.add({severity:"error",summary:"Error",key:"t1",detail:this.translocoService.translate("auth.ErrorSetPasword"),life:5e3})}})}}static{this.\u0275fac=function(t){return new(t||r)(c(T),c(k),c(H),c(U),c(R),c(V),c(se))}}static{this.\u0275cmp=N({type:r,selectors:[["app-create-password"]],inputs:{email:"email",firstName:"firstName",lastName:"lastName"},standalone:!1,decls:73,vars:46,consts:[[1,"min-h-screen","bg-gray-50","dark:bg-gray-900","py-6","sm:py-8","md:py-12"],[1,"max-w-2xl","mx-auto","px-4","sm:px-6","lg:px-8"],[1,"mb-6"],["key","t1"],[1,"bg-white","dark:bg-gray-800","rounded-xl","shadow-md","border","border-gray-200","dark:border-gray-700","overflow-hidden"],[1,"px-6","sm:px-8","py-6","sm:py-8","border-b","border-gray-200","dark:border-gray-700"],[1,"text-xl","sm:text-2xl","md:text-2xl","font-semibold","text-gray-900","dark:text-gray-100","text-center","mb-2"],[1,"text-xs","
1sm:text-sm","text-gray-600","dark:text-gray-400","text-center","leading-relaxed"],[1,"px-6","sm:px-8","py-8","sm:py-10"],[3,"ngSubmit","formGroup"],["for","password",1,"block","text-xs","sm:text-sm","md:text-base","font-semibold","mb-1","sm:mb-1.5"],[1,"text-red-500","ml-1"],["pInputText","","type","password","formControlName","password","id","password",1,"w-full","text-xs","sm:text-sm","md:text-base",3,"placeholder"],["for","confirm_password",1,"block","text-xs","sm:text-sm","md:text-base","font-semibold","mb-1","sm:mb-1.5"],["pInputText","","type","password","formControlName","confirm_password","id","confirm_password",1,"w-full","text-xs","sm:text-sm","md:text-base",3,"placeholder"],[1,"bg-gray-50","dark:bg-gray-700","rounded-lg","p-5","sm:p-6","mt-6"],[1,"text-base","sm:text-lg","font-bold","text-gray-900","dark:text-gray-100","mb-4"],["id","errors-list"],["id","lowerCaseUpperCase",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300","mb-3","last:mb-0"],[1,"shrink-0","w-5","h-5","flex","items-center","justify-center","rounded-full","bg-red-100","dark:bg-red-900","text-red-600","dark:text-red-400","text-xs"],["id","numbersSymbols",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300","mb-3","last:mb-0"],["id","eightCharacter",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300","mb-3","last:mb-0"],["id","notContainPartsOfName",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300","mb-3","last:mb-0"],["id","confirmPasswordMatch",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300"],[1,"pt-4"],["type","submit","styleClass","w-full",1,"w-full",3,"disabled"],[1,"text-sm","sm:text-base","font-semibold"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),h(3,"p-toast",3),s(),n(4,"div",4)(5,"div",5)(6,"h3",6),o(7),d(8,"transloco"),s(),n(9,"p",7),o(10),d(11,"transloco"),h(12,"br"),o(13),d(14,"transloco"),s()(),n(15,"div",8)(16,"form",9),I("ngSubmit",function(){return i.onSubmit()}),n(17,"div",2)(18,"label",10),o(19),d(20,"transloco"),n(21,"span",11),o(22,"*"),s()(),h(23,"input",12),d(24,"transloco"),s(),n(25,"div",2)(26,"label",13),o(27),d(28,"transloco"),n(29,"span",11),o(30,"*"),s()(),h(31,"input",14),d(32,"transloco"),s(),n(33,"div",15)(34,"h5",16),o(35),d(36,"transloco"),s(),n(37,"ul",17)(38,"li",18)(39,"span",19),o(40,"\u2715"),s(),n(41,"span"),o(42),d(43,"transloco"),s()(),n(44,"li",20)(45,"span",19),o(46,"\u2715"),s(),n(47,"span"),o(48),d(49,"transloco"),s()(),n(50,"li",21)(51,"span",19),o(52,"\u2715"),s(),n(53,"span"),o(54),d(55,"transloco"),s()(),n(56,"li",22)(57,"span",19),o(58,"\u2715"),s(),n(59,"span"),o(60),d(61,"transloco"),s()(),n(62,"li",23)(63,"span",19),o(64,"\u2715"),s(),n(65,"span"),o(66),d(67,"transloco"),s()()()(),n(68,"div",24)(69,"p-button",25)(70,"span",26),o(71),d(72,"transloco"),s()()()()()()()()),t&2&&(a(7),u(" ",m(8,18,"auth.CreateYourPassword")," "),a(3),u(" ",m(11,20,"auth.NewPwdConfirmation")),a(3),u(" ",m(14,22,"auth.NewPwdCriteria")," "),a(3),x("formGroup",i.setPasswordForm),a(3),u(" ",m(20,24,"auth.PasswordText")," "),a(4),x("placeholder",F(m(24,26,"auth.PasswordText"))),a(4),u(" ",m(28,28,"auth.ConfirmPasswordText")," "),a(4),x("placeholder",F(m(32,30,"auth.ConfirmPasswordText"))),a(4),u(" ",m(36,32,"auth.ResetPasswordYour")," "),a(7),b(m(43,34,"auth.ResetPasswordErrorListRule1")),a(6),b(m(49,36,"auth.ResetPasswordErrorListRule2")),a(6),b(m(55,38,"auth.ResetPasswordErrorListRule3")),a(6),b(m(61,40,"auth.ResetPasswordErrorListRule4")),a(6),b(m(67,42,"auth.ResetPasswordErrorListRule5")),a(3),x("disabled",i.disablePasswordForm),a(2),b(m(72,44,"auth.SetPassword")))},dependencies:[W,j,q,z,$,Z,J,Y,K,A],styles:[".errors-list[_ngcontent-%COMP%]{list-style-type:none;color:red}.cross[_ngcontent-%COMP%]{color:red}.check[_ngcontent-%COMP%]{color:green}"]})}}return r})();function jt(r,v){if(r&1&&(n(0,"div",3)(1,"p-message",4),o(2),s()()),r&2){let e,t,i=S();a(),x("severity",(e=i.messageSignal())==null?null:e.severity),a(),u(" ",(t=i.messageSignal())==null?null:t.message," ")}}var et=(()=>
1{class r{constructor(e,t,i,l,p){this.router=e,this.route=t,this.authService=i,this.messageService=l,this.translocoService=p,this.userGuid="",this.code="",this.isLoading=!1,this.email="",this.ref=null,this.completed=new De,this.messageSignal=Ce({}),this.messageInfoFlag=!1}ngOnInit(){this.route.paramMap.subscribe(e=>{this.userGuid=e.get("uId")||"",this.code=e.get("aCode")||"",this.verifyEmail()}),this.isLoading=!0}verifyEmail(){this.isLoading=!0;let e={UserGuid:this.userGuid,Code:this.code};this.authService.verifyUserEmail(e).subscribe({next:t=>{this.isLoading=!1,t?.success?(this.messageInfoFlag=!0,this.messageSignal.set({message:this.translocoService.translate("auth.EmailVerifySucessMsg"),severity:"success"}),setTimeout(()=>{this.router.navigate(["set-password",this.userGuid],{relativeTo:this.route.parent})},2e3)):(this.messageInfoFlag=!0,this.messageSignal.set({message:this.translocoService.translate("auth.ErrorEmailVerify"),severity:"error"}))}})}static{this.\u0275fac=function(t){return new(t||r)(c(U),c(R),c(T),c(k),c(V))}}static{this.\u0275cmp=N({type:r,selectors:[["app-account-security"]],outputs:{completed:"completed"},standalone:!1,decls:4,vars:1,consts:[[1,"mx-auto","grid","max-w-(--breakpoint-2xl)","grid-cols-12","px-3","py-4","sm:px-4","sm:py-5","md:px-6","md:py-6","lg:px-8"],[1,"col-span-12","lg:col-span-10","lg:col-start-2","xl:col-span-8","xl:col-start-3"],[1,"flex","w-full","items-center","justify-center"],[1,"flex","w-full","justify-center"],["styleClass","text-center px-3 sm:px-4 py-3 sm:py-4 text-xs sm:text-sm md:text-base",3,"severity"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),g(3,jt,3,2,"div",3),s()()()),t&2&&(a(3),f(i.messageInfoFlag?3:-1))},dependencies:[_e],encapsulation:2})}}return r})();function zt(r,v){r&1&&h(0,"app-navigation-btn")}function Wt(r,v){if(r&1){let e=O();n(0,"div",11)(1,"p"),o(2),d(3,"transloco"),s()(),n(4,"form",12),I("ngSubmit",function(){B(e);let i=S();return M(i.onSubmit())}),n(5,"div",13)(6,"div",14)(7,"div",15)(8,"label",16),o(9),d(10,"transloco"),s(),h(11,"input",17),d(12,"transloco"),s()()(),n(13,"div",18)(14,"p-button",19),o(15),d(16,"transloco"),s()()()}if(r&2){let e=S();a(2),b(m(3,7,"auth.ResetPasswordTextInstruction")),a(2),x("formGroup",e.emailForm),a(5),b(m(10,9,"user.EmailAddress")),a(2),x("placeholder",F(m(12,11,"user.EmailAddress"))),a(3),x("disabled",e.emailForm.invali
1d),a(),u(" ",m(16,13,"shared.Submit")," ")}}var tt=(()=>{class r{constructor(e,t,i,l,p){this.translocoService=e,this.fb=t,this.authService=i,this.messageService=l,this.commonService=p,this.email=null,this.emailSent=!1,this.showForm=!0,this.emailForm=this.fb.group({email:["",[C.required,C.pattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$")]]})}ngOnInit(){}onSubmit(){this.emailForm.valid&&(this.sendEmail(),this.emailForm.reset())}sendEmail(){this.messageService.clear();let t={email:this.emailForm.get("email")?.value};this.authService.requestNewPassword(t).subscribe(i=>{i.success?(this.showForm=!1,this.messageService.add({severity:"success",key:"t1",detail:this.translocoService.translate("auth.ResetPasswordInstruction")})):this.messageService.add({severity:"error",key:"t1",detail:i.error})},i=>{i.error&&i.error.error&&this.messageService.add({severity:"error",key:"t1",detail:i.error})})}static{this.\u0275fac=function(t){return new(t||r)(c(V),c(H),c(T),c(k),c(oe))}}static{this.\u0275cmp=N({type:r,selectors:[["app-reset-password-validate-email"]],standalone:!1,decls:19,vars:9,consts:[[1,"@container","mx-auto"],[1,"mx-auto","max-w-(--breakpoint-2xl)","px-5","py-2"],[1,"w-full"],[1,"max-w-7xl","mx-auto","px-4"],[1,"mt-12","mb-2","text-center"],[1,"text-blue-200","text-xl","font-semibold"],[1,"max-w-2xl","mx-auto","text-center","pb-3"],[1,"grid","grid-cols-12","gap-4"],[1,"col-span-12","md:col-span-6","md:col-start-4"],["key","t1",3,"life"],[1,"col-span-12","md:col-span-8","md:col-start-3"],[1,"pt-20","text-center"],[1,"regForm","mt-4",3,"ngSubmit","formGroup"],[1,"py-2"],[1,"w-full","md:w-2/3","lg:w-1/2","mx-auto","text-start"],[1,"flex","flex-col","gap-1"],["for","formEmail",1,"font-bold"],["pInputText","","type","email","formControlName","email","id","formEmail","name","email","pattern","^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$","required","",1,"p-inputtext","w-full","border","rounded-md","px-3","py-2",3,"placeholder"],[1,"py-2","text-center"],["type","submit",1,"btn","btn-primary",3,"disabled"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),o(6),d(7,"transloco"),s()(),n(8,"div",6)(9,"p"),o(10),d(11,"transloco"),s()()()(),n(12,"div",3)(13,"div",7)(14,"div",8),h(15,"p-toast",9),g(16,zt,1,0,"app-navigation-btn"),s(),n(17,"div",10),g(18,Wt,17,15),s()()()()()),t&2&&(a(6),b(m(7,5,"auth.ResetPasswordTitle")),a(4),b(m(11,7,"auth.ResetPassword")),a(5),x("life",5e3),a(),f(i.showForm?-1:16),a(2),f(i.showForm?18:-1))},dependencies:[W,j,q,z,be,Se,$,Z,J,Y,K,Ee,A],encapsulation:2})}}return r})();function Zt(r,v){if(r&1){let e=O();n(0,"div",4)(1,"div",6)(2,"h3",7),o(3),d(4,"transloco"),s(),n(5,"p",8),o(6),d(7,"transloco"),s()(),n(8,"div",9)(9,"form",10),I("ngSubmit",function(){B(e);let i=S();return M(i.onSubmit())}),n(10,"div")(11,"label",11),o(12),d(13,"transloco"),n(14,"span",12),o(15,"*"),s()(),h(16,"input",13),d(17,"transloco"),s(),n(18,"div")(19,"label",14),o(20),d(21,"transloco"),n(22,"span",12),o(23,"*"),s()(),h(24,"input",15),d(25,"transloco"),s(),n(26,"div",16)(27,"h5",17),o(28),d(29,"transloco"),s(),n(30,"ul",18)(31,"li",19)(32,"span",20),o(33,"\u2715"),s(),n(34,"span"),o(35),d(36,"transloco"),s()(),n(37,"li",21)(38,"span",20),o(39,"\u2715"),s(),n(40,"span"),o(41),d(42,"transloco"),s()(),n(43,"li",22)(44,"span",20),o(45,"\u2715"),s(),n(46,"span"),o(47),d(48,"transloco"),s()(),n(49,"li",23)(50,"span",20),o(51,"\u2715"),s(),n(52,"span"),o(53),d(54,"transloco"),s()(),n(55,"li",24)(56,"span",20),o(57,"\u2715"),s(),n(58,"span"),o(59),d(60,"transloco"),s()()()(),n(61,"div",25)(62,"p-button",26)(63,"span",27),o(64),d(65,"transloco"),s()()()()()()}if(r&2){let e=S();a(3),u(" ",m(4,17,"auth.ResetPasswordTitle")," "),a(3),u(" ",m(7,19,"auth.ResetPassword")," "),a(3),x("formGroup",e.resetPasswordForm),a(3),u(" ",m(13,21,"auth.PasswordText")," "),a(4),x("placeholder",F(m(17,23,"auth.PasswordText"))),a(4),u(" ",m(21,25,"auth.ConfirmPasswordText")," "),a(4),x("placeholder",F(m(25,27,"auth.ConfirmPasswordText"))),a(4),u(" ",m(29,29,"auth.ResetPasswordYour")," "),a(7),b(m(36,31,"auth.ResetPasswordErrorListRule1")),a(6),b(m(42,33,"auth.ResetPasswordErrorListRule2")),a(6),b(m(48,35,"auth.ResetPasswordErrorListRule3")),a(6),b(m(54,37,"auth.ResetPasswordErrorListRule4")),a(6),b(m(60,39,"auth.ResetPasswordErrorListRule5")),a(3),x("disabled",e.disablePasswordForm),a(2),b(m(65,41,"auth.SetPassword"))}}
1function $t(r,v){r&1&&(n(0,"div",5),h(1,"app-navigation-btn"),s())}var it=(()=>{class r{constructor(e,t,i,l,p,y,_,E){this.translocoService=e,this.fb=t,this.authService=i,this.messageService=l,this.router=p,this.route=y,this.commonService=_,this.oauthService=E,this.aCode="",this.isMFAAgreed=!1,this.phoneTypeList=[],this.isLoading=!1,this.countryData=[],this.phoneData=[],this.selectedCountry=null,this.minutes=0,this.seconds=0,this.showButtonBlock=!1,this.showChangePassword=!0,this.isLowerCaseUpperCaseValid=!1,this.isNumbersSymbolsValid=!1,this.isEightCharacterValid=!1,this.isNotContainPartsOfNameValid=!1,this.isSameAsConfirmPasswordValid=!1,this.userGuid="",this.disablePasswordForm=!0,this.email="",this.firstName="",this.lastName="",this.resetPasswordForm=this.fb.group({password:["",C.required],confirm_password:["",C.required]})}ngOnInit(){this.appUrl=ue.baseUrl,this.vjLoginURL=ue.vjLoginURL,this.resetPasswordForm.get("password")?.valueChanges.subscribe(e=>{this.validatePassword(e),this.updateConfirmPasswordValidation(this.resetPasswordForm.get("confirm_password")?.value||"")}),this.resetPasswordForm.get("confirm_password")?.valueChanges.subscribe(e=>{this.updateConfirmPasswordValidation(e)})}ngAfterViewInit(){this.route.paramMap.subscribe(e=>{this.aCode=e.get("aCode")||"",this.getUserInitials()})}login(){this.authService.login()}getUserInitials(){let e={code:this.aCode};this.authService.resetNewPassword(e).subscribe({next:t=>{t.success?(this.mobileNumber=t.user.fullMobileNumber,this.phoneType=t.user.phoneType,this.isMFAAgreed=t.user.isMFAAgreed,this.userGuid=t.user.userGUID,this.firstName=t.user.firstName||"",this.lastName=t.user.lastName||""):this.messageService.add({severity:"error",key:"t1",detail:t.errors[0]})}})}startTimer(e){let t=setInterval(()=>{e--,e<=0?clearInterval(t):(this.minutes=Math.floor(e/60),this.seconds=e%60)},1e3)}validatePassword(e){this.isLowerCaseUpperCaseValid=/[a-z]/.test(e)&&/[A-Z]/.test(e),this.isNumbersSymbolsValid=/\d/.test(e)||/[!@#$%^&*(),.?":{}|<>]/.test(e),this.isEightCharacterValid=e.length>=15;let t=this.firstName&&e.toLowerCase().includes(this.firstName.toLowerCase()),i=this.lastName&&e.toLowerCase().includes(this.lastName.toLowerCase());this.isNotContainPartsOfNameValid=!(t||i),this.updateListItem("lowerCaseUpperCase",this.isLowerCaseUpperCaseValid),this.updateListItem("numbersSymbols",this.isNumbersSymbolsValid),this.updateListItem("eightCharacter",this.isEightCharacterValid),this.updateListItem("notContainPartsOfName",this.isNotContainPartsOfNameValid),this.enableSubmit()}updateConfirmPasswordValidation(e){let t=this.resetPasswordForm.get("password")?.value||"";this.isSameAsConfirmPasswordValid=t===e,this.updateListItem("confirmPasswordMatch",this.isSameAsConfirmPasswordValid),this.enableSubmit()}updateListItem(e,t){let i=document.getElementById(e);i&&(t?(i.classList.remove("cross"),i.classList.add("check"),i.querySelector("span").textContent="\u2714"):(i.classList.remove("check"),i.classList.add("cross"),i.querySelector("span").textContent="\u2716"))}enableSubmit(){this.disablePasswordForm=!(this.isLowerCaseUpperCaseValid&&this.isNumbersSymbolsValid&&this.isEightCharacterValid&&this.isNotContainPartsOfNameValid&&this.isSameAsConfirmPasswordValid)}onSubmit(){this.messageService.clear();let e={userGuid:this.userGuid,password:this.resetPasswordForm.get("password")?.value};this.authService.resetUserPassword(e).subscribe({next:t=>{t.success?(this.messageService.add({severity:"success",key:"t1",detail:this.translocoService.translate("auth.ResetPasswordSuccessfully")}),this.showChangePassword=!1,this.showButtonBlock=!0):(this.messageService.add({severity:"error",key:"t1",detail:this.translocoService.translate("auth.ErrorInResetPasswordPage")}),this.showButtonBlock=!0)},error:t=>{this.messageService.add({severity:"error",key:"t1",detail:t}),this.showButtonBlock=!0}})}static{this.\u0275fac=function(t){return new(t||r)(c(V),c(H),c(T),c(k),c(U),c(R),c(oe),c(se))}}static{this.\u0275cmp=N({type:r,selectors:[["app-reset-password"]],inputs:{email:"email",firstName:"firstName",lastName:"lastName"},standalone:!1,decls:6,vars:3,consts:[[1,"min-h-screen","bg-gray-50","dark:bg-gray-900","py-6","sm:py-8","md:py-12"],[1,"max-w-2xl","mx-auto","px-4","sm:px-6","lg:px-8"],[1,"mb-6"],["key","t1",3,"life"],[1,"bg-white","dark:bg-gray-800","rounded-xl","shadow-md","border","border-gray-200","dark:border-gray-700","overflow-hidden"],[1,"mt-6"],[1,"px-6","sm:px-8","py-6","sm:py-8","border-b","border-gray-200","dark:border-gray-700"],[1,"text-xl","sm:text-2xl","md:text-2xl","font-semibold","text-gray-900","dark:text-gray-100","text-center","mb-2"],[1,"text-xs","
1sm:text-sm","text-gray-600","dark:text-gray-400","text-center","leading-relaxed"],[1,"px-6","sm:px-8","py-8","sm:py-10"],[1,"space-y-6",3,"ngSubmit","formGroup"],["for","password",1,"block","text-xs","sm:text-sm","md:text-base","font-semibold","mb-1","sm:mb-1.5"],[1,"text-red-500","ml-1"],["pInputText","","type","password","formControlName","password","id","password",1,"w-full","text-xs","sm:text-sm","md:text-base",3,"placeholder"],["for","confirm_password",1,"block","text-xs","sm:text-sm","md:text-base","font-semibold","mb-1","sm:mb-1.5"],["pInputText","","type","password","formControlName","confirm_password","id","confirm_password",1,"w-full","text-xs","sm:text-sm","md:text-base",3,"placeholder"],[1,"bg-gray-50","dark:bg-gray-700","rounded-lg","p-5","sm:p-6","mt-6"],[1,"text-base","sm:text-lg","font-bold","text-gray-900","dark:text-gray-100","mb-4"],["id","errors-list",1,"space-y-3"],["id","lowerCaseUpperCase",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300"],[1,"shrink-0","w-5","h-5","flex","items-center","justify-center","rounded-full","bg-red-100","dark:bg-red-900","text-red-600","dark:text-red-400","text-xs"],["id","numbersSymbols",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300"],["id","eightCharacter",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300"],["id","notContainPartsOfName",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300"],["id","confirmPasswordMatch",1,"flex","items-start","gap-3","text-sm","sm:text-base","text-gray-700","dark:text-gray-300"],[1,"pt-4"],["type","submit","styleClass","w-full",1,"w-full",3,"disabled"],[1,"text-sm","sm:text-base","font-semibold"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),h(3,"p-toast",3),s(),g(4,Zt,66,43,"div",4),g(5,$t,2,0,"div",5),s()()),t&2&&(a(3),x("life",5e3),a(),f(i.showChangePassword?4:-1),a(),f(i.showButtonBlock?5:-1))},dependencies:[W,j,q,z,$,Z,J,Y,K,Ee,A],styles:[".errors-list[_ngcontent-%COMP%]{list-style-type:none;color:red}.cross[_ngcontent-%COMP%]{color:red}.check[_ngcontent-%COMP%]{color:green}"]})}}return r})();var rt=(()=>{class r{constructor(){this.activeStep=new ke(0),this.currentactivestep$=this.activeStep.asObservable()}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=Ae({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var at=(()=>{class r{constructor(e,t){this.translocoService=e,this.regService=t,this.currentStep=0,this.items=[],this.item=[{label:"My Videojet",routerLink:"/user/dashboard"},{label:"User Registration"}]}ngOnInit(){this.regService.currentactivestep$.subscribe(e=>{this.currentStep=e}),this.setTranslatedItems(),this.languageChange(),console.log("RegisterProfile Active Lang:",this.translocoService.getActiveLang()),console.log(this.translocoService.translate("user.MyProfileText2"))}setTranslatedItems(){this.items=[{label:this.translocoService.translate("user.MyProfileDetails"),routerLink:"signup"},{label:this.translocoService.translate("shared.ValidateEmailBreadcrumb"),routerLink:"validate"},{label:this.translocoService.translate("auth.ProgressStep3Text"),routerLink:"set-security"},{label:this.translocoService.translate("shared.SetPasswordBreadcrumb"),routerLink:"set-password"}]}languageChange(){this.translocoService.langChanges$.subscribe(()=>{this.setTranslatedItems()})}onStepChange(e){this.currentStep=e.index}onActiveIndexChange(e){this.currentStep=e}static{this.\u0275fac=function(t){return new(t||r)(c(V),c(rt))}}static{this.\u0275cmp=N({type:r,selectors:[["app-registration"]],standalone:!1,decls:8,vars:6,consts:[[1,"@container","mx-auto","py-3"],[1,"mx-auto","max-w-(--breakpoint-2xl)","px-5","py-2"],[1,"text-center","text-blue-200","text-2xl","font-semibold","py-8"],[1,"stepsCustom","mx-auto","py-5","overflow-x-auto","md:overflow-visible"],[1,"min-w-[300px]","md:min-w-0",3,"activeIndexChange","onStepChange","model","readonly","activeIndex"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div",2),o(3),d(4,"transloco"),s(),n(5,"div",3)(6,"p-steps",4),ne("activeIndexChange",function(p){return ae(i.currentStep,p)||(i.currentStep=p),p}),I("onStepChange",function(p){return i.onStepChange(p)}),s()()()(),h(7,"router-outlet")),t&2&&(a(3),b(m(4,4,"auth.RegisterTitle")),a(3),x("model",i.items)("readonly",!0),re("activeIndex",i.currentStep))},dependencies:[Ze,je,A],encapsulation:2})}}return r})();var nt=(()=>
1{class r{constructor(e,t,i,l){this.oauthService=e,this.authService=t,this.appsService=i,this.route=l,this.refTargetUrl=""}ngOnInit(){if(this.refTargetUrl=this.route.snapshot.queryParams.refTargetURL,this.refTargetUrl)localStorage.setItem("refTargetURL",this.refTargetUrl),this.authService.universalLogin(this.refTargetUrl);else{let e=localStorage.getItem("refTargetURL");e?this.authService.universalLogin(e):this.authService.login()}}logout(){this.oauthService.logOut(),localStorage.removeItem("appointmentTimeZone"),this.appsService.clearSelectedSite()}static{this.\u0275fac=function(t){return new(t||r)(c(se),c(T),c($e),c(R))}}static{this.\u0275cmp=N({type:r,selectors:[["app-login"]],standalone:!1,decls:0,vars:0,template:function(t,i){},encapsulation:2})}}return r})();var Yt=[{path:"",redirectTo:"signup",pathMatch:"full"},{path:"login",component:nt},{path:"",component:at,children:[{path:"signup",component:te,data:{title:"User Registration",breadcrumb:"shared.UserRegistrationBreadcrumb"}},{component:te,path:"signup/shop-us",data:{title:"User Registration Shop Us",breadcrumb:"shared.UserRegistrationShopUsBreadcrumb"}},{component:te,path:"signup/shop-ca",data:{title:"User Registration Shop Ca",breadcrumb:"shared.UserRegistrationShopCABreadcrumb"}},{component:te,path:"signup/salesforce/:guid",data:{title:"User Registration Salesforce",breadcrumb:"shared.UserRegistrationSalesforceBreadcrumb"}},{component:te,path:"signup/oem/:guid",data:{title:"User Registration OEM",breadcrumb:"shared.UserRegistrationOEMBreadcrumb"}},{component:te,path:"signup/oem-portal",data:{title:"User Registration OEM",breadcrumb:"shared.UserRegistrationOEMBreadcrumb"}},{path:"validate/:guid",component:Ke,data:{title:"User Validate Email",breadcrumb:"shared.ValidateEmailBreadcrumb"}},{path:"set-password/:uId",component:Xe,data:{title:"User Set Password",breadcrumb:"shared.SetPasswordBreadcrumb"}},{path:"set-security/:uId/:aCode",component:et,data:{title:"User Multi Factor Authentication",breadcrumb:"shared.UserAuthenticationBreadcrumb"}}]},{path:"reset-password-email",component:tt,data:{title:"user Reset password",breadcrumb:"shared.ResetPasswordBreadcrumb"}},{path:"reset-password/:aCode",component:it,data:{title:"user Reset password",breadcrumb:"shared.ResetPasswordBreadcrumb"}}],st=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275mod=ye({type:r})}static{this.\u0275inj=xe({imports:[Le.forChild(Yt),Le]})}}return r})();var pr=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275mod=ye({type:r})}static{this.\u0275inj=xe({imports:[Oe,Ye,st,He]})}}return r})();export{pr as AuthModule};

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.