1"use strict";(self.webpackChunkpremium_transfer=self.webpackChunkpremium_transfer||[]).push([[659],{1659:(Oe,L,a)=>{a.r(L),a.d(L,{CompanyModule:()=>$e});var _=a(177),f=a(1583),s=a(9417),P=a(6726),Y=a(605),t=a(7705),I=a(99),F=a(2102),b=a(2798),j=a(6600),G=a(9631),R=a(9213),N=a(5788),$=a(5298);const B=["ngOtpInput"];function X(e,r){1&e&&(t.j41(0,"li")(1,"a"),t.EFF(2,"SIGN UP FOR OUR OPERATOR "),t.k0s()())}function A(e,r){1&e&&(t.j41(0,"li")(1,"a"),t.EFF(2,"SIGN UP FOR OUR COMPANY "),t.k0s()())}function V(e,r){1&e&&(t.j41(0,"h1",32),t.EFF(1,"Company Sign Up"),t.k0s())}function U(e,r){1&e&&(t.j41(0,"h1",32),t.EFF(1,"Operator Sign Up"),t.k0s())}function M(e,r){1&e&&(t.j41(0,"h1",32),t.EFF(1,"Verify Your No."),t.k0s())}function q(e,r){if(1&e&&(t.j41(0,"p",33),t.EFF(1,"Please enter the 4-digit code sent to you at "),t.nrm(2,"br"),t.j41(3,"span",34),t.EFF(4),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.Lme("+(",n.varPhoneCode,") ",n.varPhone,"")}}function K(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the businessname. "),t.k0s())}function W(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,K,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("business_name"))||null==i.errors?null:i.errors.required)}}function J(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the company registration number. "),t.k0s())}function z(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,J,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("company_registration_number"))||null==i.errors?null:i.errors.required)}}function Z(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter an email address. "),t.k0s())}function Q(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter an email address. "),t.k0s())}function H(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,Z,2,0,"div",63),t.DNE(2,Q,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i,o;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("company_email"))||null==i.errors?null:i.errors.required),t.R7$(1),t.Y8G("ngIf",null==(o=n.SignupForm.get("company_email"))||null==o.errors?null:o.errors.company_email)}}function tt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the first name. "),t.k0s())}function et(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,tt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("firstName"))||null==i.errors?null:i.errors.required)}}function nt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the last name. "),t.k0s())}function it(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,nt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("lastName"))||null==i.errors?null:i.errors.required)}}function ot(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter an email address. "),t.k0s())}function rt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter an email address. "),t.k0s())}function st(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,ot,2,0,"div",63),t.DNE(2,rt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i,o;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("email"))||null==i.errors?null:i.errors.required),t.R7$(1),t.Y8G("ngIf",null==(o=n.SignupForm.get("email"))||null==o.errors?null:o.errors.email)}}function at(e,r){if(1&e&&(t.qex(0),t.nrm(1,"img",66),t.EFF(2),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(1),t.Mz_("alt","",n.name," flag"),t.Y8G("src","assets/country-squared/"+(null==n||null==n.iso?null:n.iso.toLowerCase())+".svg",t.B4B),t.R7$(1),t.SpI(" +",n.country_code," ")}}function lt(e,r){if(1&e&&(t.qex(0),t.DNE(1,at,3,3,"ng-container",9),t.bVm()),2&e){const n=r.$implicit,i=t.XpG(3);let o;t.R7$(1),t.Y8G("ngIf",n.iso===(null==(o=i.SignupForm.get("countryCode"))?null:o.value))}}function ut(e,r){if(1&e&&(t.qex(0),t.DNE(1,lt,2,1,"ng-container",65),t.bVm()),2&e){const n=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",n.filteredCountryList)}}function mt(e,r){if(1&e&&(t.j41(0,"mat-option",67),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n.iso),t.R7$(1),t.Lme(" +",n.country_code," ",n.name," ")}}function ct(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter a Phone number. "),t.k0s())}function pt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter a valid Phone no. "),t.k0s())}function dt(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,ct,2,0,"div",63),t.DNE(2,pt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i,o;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("phone"))||null==i.errors?null:i.errors.required),t.R7$(1),t.Y8G("ngIf",null==(o=n.SignupForm.get("phone"))||null==o.errors?null:o.errors.invalidPhoneNumber)}}function gt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the VAT. "),t.k0s())}function ft(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,gt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(3);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("vat"))||null==i.errors?null:i.errors.required)}}function _t(e,r){if(1&e&&(t.j41(0,"div",37)(1,"mat-form-field",38)(2,"mat-label"),t.EFF(3,"VAT"),t.k0s(),t.nrm(4,"input",68),t.k0s(),t.DNE(5,ft,2,1,"div",40),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(5),t.Y8G("ngIf",n.submittedSignup&&(null==(i=n.SignupForm.get("vat"))?null:i.errors))}}function vt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the VAT. "),t.k0s())}function ht(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,vt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(3);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("vat"))||null==i.errors?null:i.errors.required)}}function Ft(e,r){if(1&e&&(t.j41(0,"div",42)(1,"mat-form-field",38)(2,"mat-label"),t.EFF(3,"VAT"),t.k0s(),t.nrm(4,"input",68),t.k0s(),t.DNE(5,ht,2,1,"div",40),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(5),t.Y8G("ngIf",n.submittedSignup&&(null==(i=n.SignupForm.get("vat"))?null:i.errors))}}function Ct(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the operator license number. "),t.k0s())}function bt(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,Ct,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(3);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("operator_license_number"))||null==i.errors?null:i.errors.required)}}function kt(e,r){if(1&e&&(t.j41(0,"div",37)(1,"mat-form-field",38)(2,"mat-label"),t.EFF(3,"Operator License Number"),t.k0s(),t.nrm(4,"input",69),t.k0s(),t.DNE(5,bt,2,1,"div",40),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(5),t.Y8G("ngIf",n.submittedSignup&&(null==(i=n.SignupForm.get("operator_license_number"))?null:i.errors))}}function yt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the address line 1. "),t.k0s())}function St(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,yt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("address_line_1"))||null==i.errors?null:i.errors.required)}}function Et(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the address line 2. "),t.k0s())}function xt(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,Et,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("address_line_2"))||null==i.errors?null:i.errors.required)}}function Tt(e,r){if(1&e&&(t.j41(0,"mat-option",67),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n.name),t.R7$(1),t.SpI(" ",n.name," ")}}function It(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the billing country. "),t.k0s())}function jt(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,It,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("country"))||null==i.errors?null:i.errors.required)}}function Gt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the County. "),t.k0s())}function Rt(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,Gt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("state"))||null==i.errors?null:i.errors.required)}}function Nt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the city. "),t.k0s())}function $t(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,Nt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("city"))||null==i.errors?null:i.errors.required)}}function wt(e,r){1&e&&(t.j41(0,"div",64),t.EFF(1," Please enter the ZIP code. "),t.k0s())}function Lt(e,r){if(1&e&&(t.j41(0,"div",62),t.DNE(1,wt,2,0,"div",63),t.k0s()),2&e){const n=t.XpG(2);let i;t.R7$(1),t.Y8G("ngIf",null==(i=n.SignupForm.get("postcode"))||null==i.errors?null:i.errors.required)}}function Pt(e,r){if(1&e&&(t.j41(0,"div",35)(1,"div",36)(2,"div",37)(3,"mat-form-field",38)(4,"mat-label"),t.EFF(5,"Business N
1ame"),t.k0s(),t.nrm(6,"input",39),t.k0s(),t.DNE(7,W,2,1,"div",40),t.k0s(),t.j41(8,"div",37)(9,"mat-form-field",38)(10,"mat-label"),t.EFF(11,"Company Registeration Number"),t.k0s(),t.nrm(12,"input",41),t.k0s(),t.DNE(13,z,2,1,"div",40),t.k0s()(),t.j41(14,"div",36)(15,"div",42)(16,"mat-form-field",38)(17,"mat-label"),t.EFF(18,"Company Email Address"),t.k0s(),t.nrm(19,"input",43),t.j41(20,"mat-icon",44),t.EFF(21,"email"),t.k0s()(),t.DNE(22,H,3,2,"div",40),t.k0s()(),t.j41(23,"div",36)(24,"div",37)(25,"mat-form-field",38)(26,"mat-label"),t.EFF(27,"Authorized Person First Name"),t.k0s(),t.nrm(28,"input",45),t.k0s(),t.DNE(29,et,2,1,"div",40),t.k0s(),t.j41(30,"div",37)(31,"mat-form-field",38)(32,"mat-label"),t.EFF(33,"Authorized Person Last Name"),t.k0s(),t.nrm(34,"input",46),t.k0s(),t.DNE(35,it,2,1,"div",40),t.k0s()(),t.j41(36,"div",36)(37,"div",42)(38,"mat-form-field",38)(39,"mat-label"),t.EFF(40,"Authorized Person Email Address"),t.k0s(),t.nrm(41,"input",47),t.j41(42,"mat-icon",44),t.EFF(43,"email"),t.k0s()(),t.DNE(44,st,3,2,"div",40),t.k0s()(),t.j41(45,"div",36)(46,"div",42)(47,"div",48)(48,"mat-form-field",38)(49,"mat-label"),t.EFF(50," Authorized Person Phone No."),t.k0s(),t.nrm(51,"input",49),t.j41(52,"mat-select",50)(53,"mat-select-trigger"),t.DNE(54,ut,2,1,"ng-container",9),t.k0s(),t.j41(55,"mat-option"),t.nrm(56,"ngx-mat-select-search",51),t.k0s(),t.DNE(57,mt,2,3,"mat-option",52),t.k0s(),t.j41(58,"mat-icon",44),t.EFF(59,"phone"),t.k0s()()(),t.DNE(60,dt,3,2,"div",40),t.k0s(),t.DNE(61,_t,6,1,"div",53),t.DNE(62,Ft,6,1,"div",54),t.DNE(63,kt,6,1,"div",53),t.j41(64,"div",42)(65,"mat-form-field",38)(66,"mat-label"),t.EFF(67,"Address Line 1"),t.k0s(),t.nrm(68,"input",55),t.k0s(),t.DNE(69,St,2,1,"div",40),t.k0s(),t.j41(70,"div",42)(71,"mat-form-field",38)(72,"mat-label"),t.EFF(73,"Address Line 2"),t.k0s(),t.nrm(74,"input",56),t.k0s(),t.DNE(75,xt,2,1,"div",40),t.k0s(),t.j41(76,"div",57)(77,"mat-form-field",38)(78,"mat-label"),t.EFF(79,"Country"),t.k0s(),t.j41(80,"mat-select",58)(81,"mat-option"),t.nrm(82,"ngx-mat-select-search",51),t.k0s(),t.DNE(83,Tt,2,2,"mat-option",52),t.k0s()(),t.DNE(84,jt,2,1,"div",40),t.k0s(),t.j41(85,"div",57)(86,"mat-form-field",38)(87,"mat-label"),t.EFF(88,"County"),t.k0s(),t.nrm(89,"input",59),t.k0s(),t.DNE(90,Rt,2,1,"div",40),t.k0s(),t.j41(91,"div",57)(92,"mat-form-field",38)(93,"mat-label"),t.EFF(94,"Town or city"),t.k0s(),t.nrm(95,"input",60),t.k0s(),t.DNE(96,$t,2,1,"div",40),t.k0s(),t.j41(97,"div",57)(98,"mat-form-field",38)(99,"mat-label"),t.EFF(100,"PostCode/ZipCode"),t.k0s(),t.nrm(101,"input",61),t.k0s(),t.DNE(102,Lt,2,1,"div",40),t.k0s()()()),2&e){const n=t.XpG();let i,o,m,u,l,g,h,k,y,S,E,x,T;t.R7$(7),t.Y8G("ngIf",n.submittedSignup&&(null==(i=n.SignupForm.get("business_name"))?null:i.errors)),t.R7$(6),t.Y8G("ngIf",n.submittedSignup&&(null==(o=n.SignupForm.get("company_registration_number"))?null:o.errors)),t.R7$(9),t.Y8G("ngIf",n.submittedSignup&&(null==(m=n.SignupForm.get("company_email"))?null:m.errors)),t.R7$(7),t.Y8G("ngIf",n.submittedSignup&&(null==(u=n.SignupForm.get("firstName"))?null:u.errors)),t.R7$(6),t.Y8G("ngIf",n.submittedSignup&&(null==(l=n.SignupForm.get("lastName"))?null:l.errors)),t.R7$(9),t.Y8G("ngIf",n.submittedSignup&&(null==(g=n.SignupForm.get("email"))?null:g.errors)),t.R7$(10),t.Y8G("ngIf",n.filteredCountryList&&n.filteredCountryList.length),t.R7$(2),t.Y8G("formControl",n.searchFormControl),t.R7$(1),t.Y8G("ngForOf",n.filteredCountryList),t.R7$(3),t.Y8G("ngIf",n.submittedSignup&&(null==(h=n.SignupForm.get("phone"))?null:h.errors)),t.R7$(1),t.Y8G("ngIf",n.isOperator),t.R7$(1),t.Y8G("ngIf",!n.isOperator),t.R7$(1),t.Y8G("ngIf",n.isOperator),t.R7$(6),t.Y8G("ngIf",n.submittedSignup&&(null==(k=n.SignupForm.get("address_line_1"))?null:k.errors)),t.R7$(6),t.Y8G("ngIf",n.submittedSignup&&(null==(y=n.SignupForm.get("address_line_2"))?null:y.errors)),t.R7$(7),t.Y8G("formControl",n.searchFormControl),t.R7$(1),t.Y8G("ngForOf",n.filteredCountryList),t.R7$(1),t.Y8G("ngIf",n.submittedSignup&&(null==(S=n.SignupForm.get("country"))?null:S.errors)),t.R7$(6),t.Y8G("ngIf",n.submittedSignup&&(null==(E=n.SignupForm.get("state"))?null:E.errors)),t.R7$(6),t.Y8G("ngIf",n.submittedSignup&&(null==(x=n.SignupForm.get("city"))?null:x.errors)),t.R7$(6),t.Y8G("ngIf",n.submittedSignup&&(null==(T=n.SignupForm.get("postcode"))?null:T.errors))}}function Yt(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",70)(1,"div",48)(2,"ng-otp-input",71,72),t.bIt("onInputChange",function(o){t.eBV(n);const m=t.XpG();return t.Njj(m.onOtpChange(o))}),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(2),t.Y8G("config",n.otpInputConfig)}}function Dt(e,r){1&e&&(t.j41(0,"span"),t.EFF(1,"Resend code in "),t.k0s())}function Ot(e,r){if(1&e&&(t.j41(0,"div",76),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(1),t.Lme(" ",n.minutes,":",t.i5U(2,2,n.seconds,"2.0")," ")}}function Bt(e,r){if(1&e){const n=t.RV6();t.j41(0,"span",77),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.onSubmit())}),t.EFF(1,"Resend OTP"),t.k0s()}}function Xt(e,r){if(1&e&&(t.j41(0,"div",73),t.DNE(1,Dt,2,0,"span",9),t.DNE(2,Ot,3,5,"div",74),t.DNE(3,Bt,2,0,"span",75),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("ngIf",!n.showResendButton),t.R7$(1),t.Y8G("ngIf",!n.showResendButton),t.R7$(1),t.Y8G("ngIf",n.showResendButton)}}function At(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",78)(1,"button",79),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.onSubmit())}),t.j41(2,"span"),t.EFF(3,"Register"),t.nrm(4,"i",80),t.k0s()()()}}function Vt(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",81)(1,"button",82),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.verifyOTP())}),t.j41(2,"span"),t.EFF(3,"Verify & Proceed"),t.nrm(4,"i",80),t.k0s()()()}}function Ut(e,r){1&e&&(t.j41(0,"p",85),t.EFF(1," Already have an account? "),t.j41(2,"a",86),t.EFF(3,"Login Here"),t.k0s()())}function Mt(e,r){1&e&&(t.j41(0,"p",85),t.EFF(1," Already have an account? "),t.j41(2,"a",87),t.EFF(3,"Login Here"),t.k0s()())}function qt(e,r){if(1&e&&(t.j41(0,"div",83),t.DNE(1,Ut,4,0,"p",84),t.DNE(2,Mt,4,0,"p",84),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("ngIf",!n.isOperator),t.R7$(1),t.Y8G("ngIf",n.isOperator)}}const v_fire=(...e)=>{const r="string"==typeof e?.[0]?{title:e[0],text:e[1],icon:e[2]}
1:e?.[0]||{},n=r?.text||r?.html||r?.title||"Something went wrong.";if(r?.showCancelButton){const i=window.confirm(n);return Promise.resolve({isConfirmed:i,isDismissed:!i,dismiss:i?void 0:"cancel"})}return window.alert(n),Promise.resolve({isConfirmed:!0,isDismissed:!1,dismiss:void 0})};let D=(()=>{class e{constructor(n,i,o){this.formBuilder=n,this.accountService=i,this.router=o,this.submittedSignup=!1,this.countryList=[],this.veriFyLoginTab=!1,this.otpInputConfig={length:4,placeholder:"",class:"otp-input",autofocus:!0},this.showResendButton=!1,this.loginTab=!0,this.minutes=2,this.seconds=0,this.filteredCountryList=[],this.searchFormControl=new s.MJ,this.isOperator=!1}ngOnInit(){this.searchFormControl.valueChanges.subscribe(n=>{this.filterCountries(n)}),this.getCountries(),this.SignupForm=this.formBuilder.group({business_name:["",s.k0.required],company_registration_number:["",s.k0.required],company_email:["",s.k0.required],firstName:["",s.k0.required],lastName:["",s.k0.required],countryCode:["GB",[s.k0.required]],phone:["",[s.k0.required]],otp:[""],email:["",[s.k0.required,s.k0.email]],operator_license_number:[""],vat:["",s.k0.required],address_line_1:["",s.k0.required],address_line_2:[""],city:["",s.k0.required],state:["",s.k0.required],country:["",s.k0.required],postcode:["",s.k0.required],is_operator:[0]},{validators:(0,P.V)()}),this.router.url.includes("operator")?(this.isOperator=!0,this.SignupForm.get("operator_license_number")?.setValidators([s.k0.required]),this.SignupForm.get("operator_license_number")?.updateValueAndValidity()):(this.isOperator=!1,this.SignupForm.get("operator_license_number")?.removeValidators([s.k0.required]),this.SignupForm.get("operator_license_number")?.updateValueAndValidity())}filterCountries(n){n=n?.toLowerCase(),this.filteredCountryList=this.countryList.filter(i=>i.country_code==+n||i.iso.includes(n)||i?.name?.toLowerCase().startsWith(n))}getCountries(){this.accountService.getCountries().subscribe({next:n=>{1==n.status&&(this.countryList=n.data.countries,this.filteredCountryList=this.countryList.sort((i,o)=>i.id!==o.id?i.id-o.id:new Date(i.id).getTime()-new Date(o.id).getTime()))}})}onOtpChange(n){this.otp=n}onSubmit(){if(this.submittedSignup=!0,this.SignupForm.invalid)return;const n=this.countryList.find(p=>p.iso===this.SignupForm.value.countryCode);n&&(this.varPhoneCode=n.country_code),this.varPhone=this.SignupForm.value.phone;const De=this.SignupForm.value.operator_license_number;let C;C={business_name:this.SignupForm.value.business_name,company_registration_number:this.SignupForm.value.company_registration_number,company_email:this.SignupForm.value.company_email,vat:this.SignupForm.value.vat,address_line_1:this.SignupForm.value.address_line_1,address_line_2:this.SignupForm.value.address_line_2,city:this.SignupForm.value.city,state:this.SignupForm.value.state,country:this.SignupForm.value.country,postcode:this.SignupForm.value.postcode,first_name:this.SignupForm.value.firstName,email:this.SignupForm.value.email,last_name:this.SignupForm.value.lastName,phone_code:`+${n.country_code}`,phone:this.SignupForm.value.phone,password:this.SignupForm.value.password,password_confirmation:this.SignupForm.value.confirmPassword},C=this.isOperator?{...C,operator_license_number:De,is_operator:1}:{...C,is_operator:0},this.accountService.companyRegister(C).subscribe({next:p=>{if(!0===p.status)v_fire({title:"Registered Successfully!",text:"Please log in and complete card verification to activate your Pay as You Go account.",icon:"success",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"}),this.router.navigateByUrl("/");else if(!1===p.status){const w=this.extractErrors(p.errors);v_fire({title:"Error!",html:w,icon:"error",confirmButtonColor:"#C79637",confirmButtonText:"OK!"})}},error:p=>{if(p.error&&p.error.errors){const w=this.extractErrors(p.error.errors);v_fire({title:"Error!",html:w,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}else v_fire(p.error&&p.error.message?{title:"Error!",text:p.error.message,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"}:{title:"Error!",text:"An unexpected error occurred. Please try again later.",icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}})}verifyOTP(){const i=`+${this.countryList.find(l=>l.iso===this.SignupForm.value.countryCode).country_code}`;this.accountService.companyverifyOTP({phone_code:i,phone:this.SignupForm.value.phone,otp:this.otp}).subscribe({next:l=>{1==l.status&&(this.veriFyLoginTab=!1,localStorage.setItem("premium_transfers_company_token",l.data.token),localStorage.setItem("premium_user_t
1ype","company"),localStorage.removeItem("premium_transfers_company_token"),localStorage.removeItem("premium_transfers_company_data"),this.accountService.getCompanyToken()&&this.accountService.getCompanyProfileInfo().subscribe({next:h=>{this.accountService.updateProfileData(h)}}),this.router.navigateByUrl("company/dashboard/profile").then(()=>{location.reload()}))},error:l=>{if(l.error&&l.error.errors){const g=this.extractErrors(l.error.errors);v_fire({title:"Error!",html:g,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}else v_fire(l.error&&l.error.message?{title:"Error!",text:l.error.message,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"}:{title:"Error!",text:"An unexpected error occurred. Please try again later.",icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}})}startTimer(){const n=(0,Y.Y)(1e3);this.timerSubscription=n.subscribe(()=>{this.seconds>0?this.seconds--:this.minutes>0&&0===this.seconds?(this.minutes--,this.seconds=59):(this.showResendButton=!0,this.timerSubscription.unsubscribe())})}resendOtp(){this.showResendButton=!1,this.minutes=2,this.seconds=0,this.startTimer()}onCountdownComplete(){this.showResendButton=!0;const n=Math.floor(Date.now()/1e3);this.endTime=n+30}extractErrors(n){let i="";for(const[m,u]of Object.entries(n))Array.isArray(u)?i+=`<span> ${u}</span><br>`:i+=`<span> ${String(u)}</span><br>`;return i.trim()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(s.ok),t.rXU(I.D),t.rXU(f.Ix))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-signup"]],viewQuery:function(i,o){if(1&i&&t.GBs(B,5),2&i){let m;t.mGM(m=t.lsd())&&(o.ngOtpInput=m.first)}},decls:57,vars:13,consts:[[1,"wrapper"],[1,"inner-banner"],[1,"inner-banner-img","booking-banner-img"],["src","assets/images/driver-login-banner.jpg","alt","inner-banner"],[1,"inner-banner-cnt"],[1,"container"],[1,"row"],[1,"col-lg-9","text-center","text-lg-start"],[1,"breadcrumb","justify-content-center","justify-content-lg-start"],[4,"ngIf"],[1,"inner-banner-txt"],[1,"booking-wrapper"],[1,"row","flex-row-reverse"],[1,"col-12","col-lg-6"],[1,"SignUpTabArea"],["class","gq-modal-title mb-3",4,"ngIf"],["class","text-center my-3",4,"ngIf"],[1,"gq-modal-content"],[1,"SignUpTabContent"],[3,"formGroup"],["class","loginArea",4,"ngIf"],["class","loginArea OTPput-wrapper",4,"ngIf"],["class","formBelowArea w-100 text-center formBelowAreaOTP",4,"ngIf"],[1,"gq-modal-footer"],["class","btn-group w-100",4,"ngIf"],["class","btn-group w-100 justify-content-center my-3",4,"ngIf"],["class","modal-bottom",4,"ngIf"],[1,"col-12","col-lg-6","text-center","text-lg-start"],[1,"booking-right-section","driver-reg-segment"],[1,"sub-heading"],[1,"driver-reslog-seg-listleft"],[1,"listwrap"],[1,"gq-modal-title","mb-3"],[1,"text-center","my-3"],[1,"linkcustomorg"],[1,"loginArea"],[1,"row","gx-3"],[1,"col-lg-6"],["appearance","outline"],["matInput","","formControlName","business_name"],["class","text-danger errr-msg-area",4,"ngIf"],["matInput","","formControlName","company_registration_number"],[1,"col-lg-12"],["matInput","","formControlName","company_email","type","email",1,"emailfieldcs"],["matSuffix",""],["matInput","","formControlName","firstName"],["matInput","","formControlName","lastName"],["matInput","","formControlName","email","type","email",1,"emailfieldcs"],[1,"countrycode-phn"],["matInput","","formControlName","phone"],["formControlName","countryCode",1,"newPhoneclass"],["placeholderL
1abel","Search","noEntriesFoundLabel","No entries found",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["class","col-lg-6",4,"ngIf"],["class","col-lg-12",4,"ngIf"],["matInput","","formControlName","address_line_1"],["matInput","","formControlName","address_line_2"],[1,"col-12","col-sm-6"],["formControlName","country"],["matInput","","formControlName","state"],["matInput","","formControlName","city"],["matInput","","formControlName","postcode"],[1,"text-danger","errr-msg-area"],["class","errr-msg-txt",4,"ngIf"],[1,"errr-msg-txt"],[4,"ngFor","ngForOf"],["width","15","height","20",2,"vertical-align","middle",3,"src","alt"],[3,"value"],["matInput","","formControlName","vat"],["matInput","","formControlName","operator_license_number"],[1,"loginArea","OTPput-wrapper"],[3,"config","onInputChange"],["ngOtpInput",""],[1,"formBelowArea","w-100","text-center","formBelowAreaOTP"],["class","otp backtimercs ps-1",4,"ngIf"],["class","linkcustomorg2",3,"click",4,"ngIf"],[1,"otp","backtimercs","ps-1"],[1,"linkcustomorg2",3,"click"],[1,"btn-group","w-100"],["type","submit",1,"common-button-2","hover-filled-slide-down","w-100",3,"click"],[1,"fa-solid","fa-arrow-right"],[1,"btn-group","w-100","justify-content-center","my-3"],["type","submit",1,"common-button-2","hover-filled-slide-down","w-100","mt-2","verfy-buttom-otp",3,"click"],[1,"modal-bottom"],["class","createAccount",4,"ngIf"],[1,"createAccount"],["routerLink","/company/signIn"],["routerLink","/company/operator/signIn"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"ul"),t.DNE(10,X,3,0,"li",9),t.DNE(11,A,3,0,"li",9),t.k0s()(),t.j41(12,"div",10)(13,"h1"),t.EFF(14,"Elevate Your Career"),t.k0s(),t.j41(15,"h4"),t.EFF(16,"With Premium Transfer's Elite Chauffeur Team"),t.k0s()()()()()()()(),t.j41(17,"section",11)(18,"div",5)(19,"div",12)(20,"div",13)(21,"div",14),t.DNE(22,V,2,0,"h1",15),t.DNE(23,U,2,0,"h1",15),t.DNE(24,M,2,0,"h1",15),t.DNE(25,q,5,2,"p",16),t.j41(26,"div",17)(27,"div",18)(28,"form",19),t.DNE(29,Pt,103,21,"div",20),t.DNE(30,Yt,4,1,"div",21),t.k0s(),t.DNE(31,Xt,4,3,"div",22),t.k0s()(),t.j41(32,"div",23),t.DNE(33,At,5,0,"div",24),t.DNE(34,Vt,5,0,"div",25),t.DNE(35,qt,3,2,"div",26),t.k0s()()(),t.j41(36,"div",27)(37,"div",28)(38,"div",29)(39,"p")(40,"span"),t.EFF(41,"Join Premium Transfer:"),t.k0s(),t.nrm(42,"br"),t.EFF(43," Where Excellence Meets the Road "),t.k0s()(),t.j41(44,"div",30)(45,"div",31)(46,"h6"),t.EFF(47," Competitive Compensation "),t.k0s(),t.EFF(48," Enjoy top-tier earnings with additional bonuses for exceptional service. "),t.k0s(),t.j41(49,"div",31)(50,"h6"),t.EFF(51," Professional Growth "),t.k0s(),t.EFF(52," Access continuous training and development to advance your driving skills and career. "),t.k0s(),t.j41(53,"div",31)(54,"h6"),t.EFF(55," Prestigious Clients "),t.k0s(),t.EFF(56," Serve high-profile clients and be part of a team known for its excellence and reliability. "),t.k0s()()()()()()()),2&i&&(t.R7$(10),t.Y8G("ngIf",o.isOperator),t.R7$(1),t.Y8G("ngIf",!o.isOperator),t.R7$(11),t.Y8G("ngIf",!o.veriFyLoginTab&&!o.isOperator),t.R7$(1),t.Y8G("ngIf",!o.veriFyLoginTab&&o.isOperator),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(3),t.Y8G("formGroup",o.SignupForm),t.R7$(1),t.Y8G("ngIf",!o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(2),t.Y8G("ngIf",!o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",!o.veriFyLoginTab))},dependencies:[_.Sq,_.bT,f.Wk,F.rl,F.nJ,F.yw,b.VO,b.$2,j.wT,G.fg,R.An,s.qT,s.me,s.BC,s.cb,s.l_,s.j4,s.JD,N.gj,$.U9,_.QX]})}return e})(),Kt=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-layout"]],decls:1,vars:0,template:function(i,o){1&i&&t.nrm(0,"router-outlet")},dependencies:[f.n3]})}return e})();var d=a(415);const Wt=["ngOtpInput"];function Jt(e,r){1&e&&(t.j41(0,"li")(1,"a"),t.EFF(2,"SIGN UP AS OPERATOR"),t.k0s()())}function zt(e,r){1&e&&(t.j41(0,"li")(1,"a"),t.EFF(2,"SIGN UP AS COMPANY"),t.k0s()())}function Zt(e,r){1&e&&(t.j41(0,"h1",32),t.EFF(1,"Company Sign In"),t.k0s())}function Qt(e,r){1&e&&(t.j41(0,"h1",32),t.EFF(1,"Operator Sign In"),t.k0s())}function Ht(e,r){1&e&&(t.j41(0,"h1",32),t.EFF(1,"Verify Your No."),t.k0s())}function te(e,r){if(1&e&&(t.j41(0,"p",33),t.EFF(1,"Please enter the 4-digit code sent to you at "),t.nrm(2,"br"),t.j41(3,"span",34),t.EFF(4),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.Lme("+(",n.varPhoneCode,") ",n.varPhone,"")}}function ee(e,r){if(1&e&&(t.qex(0),t.nrm(1,"img",45),t.EFF(2),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(1),t.Mz_("alt","",n.name," flag"),t.Y8G("src","assets/country-squared/"+(null==n||null==n.iso?null:n.iso.toLowerCase())+".svg",t.B4B),t.R7$(1),t.SpI(" +",n.country_code," ")}}function ne(e,r){if(1&e&&(t.qex(0),t.DNE(1,ee,3,3,"ng-container",9),t.bVm()),2&e){const n=r.$implicit,i=t.XpG(3);let o;t.R7$(1),t.Y8G("ngIf",n.iso===(null==(o=i.loginForm.get("countryCode"))?null:o.value))}}function ie(e,r){if(1&e&&(t.qex(0),t.DNE(1,ne,2,1,"ng-container",44),t.bVm()),2&e){const n=t.XpG(2);t.R7$(1),t.Y8G("ngForOf",n.filteredCountryList)}}function oe(e,r){if(1&e&&(t.j41(0,"mat-option",46),t.EFF(1),t.k0s()),2&e){const n=r.$implicit;t.Y8G("value",n.iso),t.R7$(1),t.Lme(" +",n.country_code," ",n.name," ")}}function re(e,r){1&e&&(t.j41(0,"div",49),t.EFF(1," Please enter a Phone number. "),t.k0s())}function se(e,r){1&e&&(t.j41(0,"div",49),t.EFF(1," Please enter a valid Phone no. "),t.k0s())}function ae(e,r){if(1&e&&(t.j41(0,"div",47),t.DNE(1,re,2,0,"div",48),t.DNE(2,se,2,0,"div",48),t.k0s()),2&e){const n=t.XpG(2);let i,o;t.R7$(1),t.Y8G("ngIf",null==(i=n.loginForm.get("phone"))||null==i.errors?null:i.errors.required),t.R7$(1),t.Y8G("ngIf",null==(o=n.loginForm.get("phone"))||null==o.errors?null:o.errors.invalidPhoneNumber)}}function le(e,r){if(1&e&&(t.j41(0,"div",35)(1,"div",36)(2,"mat-form-field",37)(3,"mat-label"),t.EFF(4,"Phone No."),t.k0s(),t.nrm(5,"input",38),t.j41(6,"mat-select",39)(7,"mat-select-trigger"),t.DNE(8,ie,2,1,"ng-container",9),t.k0s(),t.j41(9,"mat-option"),t.nrm(10,"ngx-mat-select-search",40),t.k0s(),t.DNE(11,oe,2,3,"mat-option",41),t.k0s(),t.j41(12,"mat-icon",42),t.EFF(13,"phone"),t.k0s()()(),t.DNE(14,ae,3,2,"div",43),t.k0s()),2&e){const n=t.XpG();let i;t.R7$(8),t.Y8G("ngIf",n.filteredCountryList&&n.filteredCountryList.length),t.R7$(2),t.Y8G("formControl",n.searchFormControl),t.R7$(1),t.Y8G("ngForOf",n.filteredCountryList),t.R7$(3),t.Y8G("ngIf",n.submitted&&(null==(i=n.loginForm.get("phone"))?null:i.errors))}}function ue(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",50)(1,"div",36)(2,"ng-otp-input",51,52),t.bIt("onInputChange",function(o){t.eBV(n);const m=t.XpG();return t.Njj(m.onOtpChange(o))}),t.k0s()()()}if(2&e){const n=t.XpG();t.R7$(2),t.Y8G("config",n.otpInputConfig)}}function me(e,r){1&e&&(t.j41(0,"span"),t.EFF(1,"Resend code in "),t.k0s())}function ce(e,r){if(1&e&&(t.j41(0,"div",56),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(1),t.Lme(" ",n.minutes,":",t.i5U(2,2,n.seconds,"2.0")," ")}}function pe(e,r){if(1&e){const n=t.RV6();t.j41(0,"span",57),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.onLoginSubmit())}),t.EFF(1,"Resend OTP"),t.k0s()}}function de(e,r){if(1&e&&(t.j41(0,"div",53),t.DNE(1,me,2,0,"span",9),t.DNE(2,ce,3,5,"div",54),t.DNE(3,pe,2,0,"span",55),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("ngIf",!n.showResendButton),t.R7$(1),t.Y8G("ngIf",!n.showResendButton),t.R7$(1),t.Y8G("ngIf",n.showResendButton)}}function ge(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",58)(1,"button",59),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.onLoginSubmit())}),t.j41(2,"span"),t.EFF(3,"Get Verification Code"),t.nrm(4,"i",60),t.k0s()()()}}function fe(e,r){if(1&e){const n=t.RV6();t.j41(0,"div",61)(1,"button",62),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.verifyOTP())}),t.j41(2,"span"),t.EFF(3,"Verify & Proceed"),t.nrm(4,"i",60),t.k0s()()()}}function _e(e,r){1&e&&(t.j41(0,"p",65),t.EFF(1," Don't have an account? "),t.j41(2,"a",66),t.EFF(3,"Create New"),t.k0s()())}function ve(e,r){1&e&&(t.j41(0,"p",65),t.EFF(1," Don't have an account? "),t.j41(2,"a",67),t.EFF(3,"Create New"),t.k0s()())}function he(e,r){if(1&e&&(t.j41(0,"div",63),t.DNE(1,_e,4,0,"p",64),t.DNE(2,ve,4,0,"p",64),t.k0s()),2&e){const n=t.XpG();t.R7$(1),t.Y8G("ngIf",!n.isOperator),t.R7$(1),t.Y8G("ngIf",n.isOperator)}}let O=(()=>{class e{constructor(n,i,o){this.formBuilder=n,this.accountService=i,this.router=o,this.searchFormControl=new s.MJ,this.submitted=!1,this.veriFyLoginTab=!1,this.countryList=[],this.otpInputConfig={length:4,placeholder:"",class:"otp-in
1put",autofocus:!0},this.showResendButton=!1,this.loginTab=!0,this.minutes=2,this.seconds=0,this.filteredCountryList=[],this.isOperator=!1}ngOnInit(){this.isOperator=!!this.router.url.includes("operator"),this.searchFormControl.valueChanges.subscribe(n=>{this.filterCountries(n)}),this.getCountries(),this.loginForm=this.formBuilder.group({countryCode:["GB",[s.k0.required]],phone:["",[s.k0.required]],otp:[""]},{validators:(0,P.V)()})}filterCountries(n){n=n?.toLowerCase(),this.filteredCountryList=this.countryList.filter(i=>i.country_code==+n||i.iso.includes(n)||i?.name?.toLowerCase().startsWith(n))}getCountries(){this.accountService.getCountries().subscribe({next:n=>{1==n.status&&(this.countryList=n.data.countries,this.filteredCountryList=this.countryList.sort((i,o)=>i.id!==o.id?i.id-o.id:new Date(i.id).getTime()-new Date(o.id).getTime()))}})}onOtpChange(n){this.otp=n}onLoginSubmit(){if(this.loginTab){if(this.submitted=!0,this.loginForm.invalid)return;const n=this.loginForm.value.phone,i=this.countryList.find(u=>u.iso===this.loginForm.value.countryCode);i&&(this.varPhoneCode=i.country_code);const o=`+${this.varPhoneCode}`;this.varPhone=this.loginForm.value.phone,this.accountService.companyloginOTP({phone_code:o,phone:n}).subscribe({next:u=>{if(!0===u.status)this.veriFyLoginTab=!0,this.showResendButton=!1,this.resendOtp();else if(!1===u.status){const l=this.extractErrors(u.errors);d.F.fire({title:"Error!",html:l,icon:"error",confirmButtonColor:"#C79637",confirmButtonText:"ok!"})}},error:u=>{if(u.error&&u.error.errors){const l=this.extractErrors(u.error.errors);d.F.fire({title:"Error!",html:l,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}else d.F.fire(u.error&&u.error.message?{title:"Error!",text:u.error.message,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"}:{title:"Error!",text:"An unexpected error occurred. Please try again later.",icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}})}}verifyOTP(){const i=`+${this.countryList.find(l=>l.iso===this.loginForm.value.countryCode).country_code}`;this.accountService.companyverifyOTP({phone_code:i,phone:this.loginForm.value.phone,otp:this.otp}).subscribe({next:l=>{1==l.status&&(this.veriFyLoginTab=!1,localStorage.removeItem("premium_transfers_user_token"),localStorage.removeItem("premium_transfers_user_data"),localStorage.removeItem("premium_transfers_driver_token"),localStorage.removeItem("premium_transfers_driver_data"),localStorage.setItem("premium_transfers_company_token",l.data.token),localStorage.setItem("premium_user_type","company"),this.accountService.persistCompanyAccountState(l.data),this.accountService.getCompanyToken()&&this.accountService.getCompanyProfileInfo(!0).subscribe({next:()=>{const h=this.accountService.companyRequiresCardSetup()?"/payment":"/";this.router.navigateByUrl(h).then(()=>{location.reload()})}}))},error:l=>{if(l.error&&l.error.errors){const g=this.extractErrors(l.error.errors);d.F.fire({title:"Error!",html:g,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}else d.F.fire(l.error&&l.error.message?{title:"Error!",text:l.error.message,icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"}:{title:"Error!",text:"An unexpected error occurred. Please try again later.",icon:"error",confirmButtonColor:"#C79637 ",confirmButtonText:"OK!"})}})}startTimer(){const n=(0,Y.Y)(1e3);this.timerSubscription=n.subscribe(()=>{this.seconds>0?this.seconds--:this.minutes>0&&0===this.seconds?(this.minutes--,this.seconds=59):(this.showResendButton=!0,this.timerSubscription.unsubscribe())})}resendOtp(){this.showResendButton=!1,this.minutes=2,this.seconds=0,this.startTimer()}onCountdownComplete(){this.showResendButton=!0;const n=Math.floor(Date.now()/1e3);this.endTime=n+30}extractErrors(n){let i="";for(const[m,u]of Object.entries(n))Array.isArray(u)?i+=`<span> ${u}</span><br>`:i+=`<span> ${String(u)}</span><br>`;return i.trim()}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(s.ok),t.rXU(I.D),t.rXU(f.Ix))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-login"]],viewQuery:function(i,o){if(1&i&&t.GBs(Wt,5),2&i){let m;t.mGM(m=t.lsd())&&(o.ngOtpInput=m.first)}},decls:57,vars:13,consts:[[1,"wrapper"],[1,"inner-banner"],[1,"inner-banner-img","booking-banner-img"],["src","assets/images/driver-login-banner.jpg","alt","inner-banner"],[1,"inner-banner-cnt"],[1,"container"],[1,"row"],[1,"col-lg-9","text-center","text-lg-start"],[1,"breadcrumb","justify-content-center","justify-content-lg-start"],[4,"ngIf"],[1,"inner-banner-txt"],[1,"booking-wrapper"],[1,"row","flex-row-reverse"],[1,"col-12","col-lg-6"],[1,"logInTabArea"],["class","gq-modal-title mb-3",4,"ngIf"],[1,"gq-modal-content"],["class","text-center my-3",4,"ngIf"],[1,"LoginTabContent"],[3,"formGroup"],["class","loginArea",4,"ngIf"],["class","loginArea OTPput-wrapper",4,"ngIf"],["class","formBelowArea w-100 text-center formBelowAreaOTP",4,"ngIf"],[1,"gq-modal-footer"],["class","btn-group w-100",4,"ngIf"],["class","btn-group w-100 justify-content-center my-3",4,"ngIf"],["class","modal-bottom",4,"ngIf"],[1,"col-12","col-lg-6","text-center","text-lg-start"],[1,"booking-right-section","driver-reg-segment"],[1,"sub-heading"],[1,"driver-reslog-seg-listleft"],[1,"listwrap"],[1,"gq-modal-title","mb-3"],[1,"text-center","my-3"],[1,"linkcustomorg"],[1,"loginArea"],[1,"countrycode-phn"],["appearance","outline"],["matInput","","formControlName","phone"],["formControlName","countryCode",1,"newPhoneclass"],["placeholderL
1abel","Search","noEntriesFoundLabel","No entries found",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["matSuffix",""],["class","text-danger errr-msg-area",4,"ngIf"],[4,"ngFor","ngForOf"],["width","15","height","20",2,"vertical-align","middle",3,"src","alt"],[3,"value"],[1,"text-danger","errr-msg-area"],["class","errr-msg-txt",4,"ngIf"],[1,"errr-msg-txt"],[1,"loginArea","OTPput-wrapper"],[3,"config","onInputChange"],["ngOtpInput",""],[1,"formBelowArea","w-100","text-center","formBelowAreaOTP"],["class","otp backtimercs ps-1",4,"ngIf"],["class","linkcustomorg2",3,"click",4,"ngIf"],[1,"otp","backtimercs","ps-1"],[1,"linkcustomorg2",3,"click"],[1,"btn-group","w-100"],["type","submit",1,"common-button-2","hover-filled-slide-down","w-100",3,"click"],[1,"fa-solid","fa-arrow-right"],[1,"btn-group","w-100","justify-content-center","my-3"],["type","submit",1,"common-button-2","hover-filled-slide-down","w-100","mt-2","verfy-buttom-otp",3,"click"],[1,"modal-bottom"],["class","createAccount",4,"ngIf"],[1,"createAccount"],["routerLink","/company/signUp"],["routerLink","/company/operator/signUp"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"ul"),t.DNE(10,Jt,3,0,"li",9),t.DNE(11,zt,3,0,"li",9),t.k0s()(),t.j41(12,"div",10)(13,"h1"),t.EFF(14,"Elevate Your Career"),t.k0s(),t.j41(15,"h4"),t.EFF(16,"With Premium Transfer's Elite Chauffeur Team"),t.k0s()()()()()()()(),t.j41(17,"section",11)(18,"div",5)(19,"div",12)(20,"div",13)(21,"div",14),t.DNE(22,Zt,2,0,"h1",15),t.DNE(23,Qt,2,0,"h1",15),t.DNE(24,Ht,2,0,"h1",15),t.j41(25,"div",16),t.DNE(26,te,5,2,"p",17),t.j41(27,"div",18)(28,"form",19),t.DNE(29,le,15,4,"div",20),t.DNE(30,ue,4,1,"div",21),t.k0s(),t.DNE(31,de,4,3,"div",22),t.k0s()(),t.j41(32,"div",23),t.DNE(33,ge,5,0,"div",24),t.DNE(34,fe,5,0,"div",25),t.DNE(35,he,3,2,"div",26),t.k0s()()(),t.j41(36,"div",27)(37,"div",28)(38,"div",29)(39,"p")(40,"span"),t.EFF(41,"Join Premium Transfer:"),t.k0s(),t.nrm(42,"br"),t.EFF(43," Where Excellence Meets the Road "),t.k0s()(),t.j41(44,"div",30)(45,"div",31)(46,"h6"),t.EFF(47," Competitive Compensation "),t.k0s(),t.EFF(48," Enjoy top-tier earnings with additional bonuses for exceptional service. "),t.k0s(),t.j41(49,"div",31)(50,"h6"),t.EFF(51," Professional Growth "),t.k0s(),t.EFF(52," Access continuous training and development to advance your driving skills and career. "),t.k0s(),t.j41(53,"div",31)(54,"h6"),t.EFF(55," Prestigious Clients "),t.k0s(),t.EFF(56," Serve high-profile clients and be part of a team known for its excellence and reliability. "),t.k0s()()()()()()()),2&i&&(t.R7$(10),t.Y8G("ngIf",o.isOperator),t.R7$(1),t.Y8G("ngIf",!o.isOperator),t.R7$(11),t.Y8G("ngIf",!o.veriFyLoginTab&&!o.isOperator),t.R7$(1),t.Y8G("ngIf",!o.veriFyLoginTab&&o.isOperator),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(2),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(2),t.Y8G("formGroup",o.loginForm),t.R7$(1),t.Y8G("ngIf",!o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(2),t.Y8G("ngIf",!o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",o.veriFyLoginTab),t.R7$(1),t.Y8G("ngIf",!o.veriFyLoginTab))},dependencies:[_.Sq,_.bT,f.Wk,F.rl,F.nJ,F.yw,b.VO,b.$2,j.wT,G.fg,R.An,s.qT,s.me,s.BC,s.cb,s.l_,s.j4,s.JD,N.gj,$.U9,_.QX]})}return e})(),Fe=(()=>{class e{constructor(n,i,o,m){this.formBuilder=n,this.route=i,this.router=o,this.accountService=m,this.submitted=!1,this.token="",this.email=""}ngOnInit(){this.token=this.route.snapshot.queryParamMap.get("token")||"",this.email=this.route.snapshot.queryParamMap.get("email")||"",this.form=this.formBuilder.group({password:["",[s.k0.required,s.k0.minLength(8)]],password_confirmation:["",[s.k0.required]]})}onSubmit(){this.submitted=!0,this.token&&this.email?this.form.invalid||this.accountService.setCompanyPassword({email:this.email,token:this.token,password:this.form.value.password,password_confirmation:this.form.value.password_confirmation}).subscribe({next:n=>{!0===n.status?d.F.fire({icon:"success",title:"Password set",text:n.message,confirmButtonColor:"#C79637"}).then(()=>this.router.navigateByUrl("/company/signIn")):d.F.fire({icon:"error",title:"Unable to set password",text:n.message||"Please request a new link.",confirmButtonColor:"#C79637"})},error:n=>{d.F.fire({icon:"error",title:"Unable to set password",text:n?.error?.message||"This link is invali
1d or has expired.",confirmButtonColor:"#C79637"})}}):d.F.fire({icon:"error",title:"Unable to set password",text:"This password setup link is missing a token or email. Please use the link from your email, or request a new one.",confirmButtonColor:"#C79637"})}static#t=this.\u0275fac=function(i){return new(i||e)(t.rXU(s.ok),t.rXU(f.nX),t.rXU(f.Ix),t.rXU(I.D))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["app-set-password"]],decls:30,vars:1,consts:[[1,"wrapper"],[1,"inner-banner"],[1,"inner-banner-img","booking-banner-img"],["src","assets/images/driver-login-banner.jpg","alt","inner-banner"],[1,"inner-banner-cnt"],[1,"container"],[1,"row"],[1,"col-lg-9"],[1,"inner-banner-txt"],[1,"booking-wrapper"],[1,"col-12","col-lg-6"],[1,"gq-modal-title","mb-3"],[3,"formGroup","ngSubmit"],[1,"mb-3"],["type","password","formControlName","password",1,"form-control"],["type","password","formControlName","password_confirmation",1,"form-control"],["type","submit",1,"btn","btn-primary"]],template:function(i,o){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h1"),t.EFF(10,"Set your password"),t.k0s(),t.j41(11,"h4"),t.EFF(12,"Complete your corporate account setup"),t.k0s()()()()()()()(),t.j41(13,"section",9)(14,"div",5)(15,"div",6)(16,"div",10)(17,"h1",11),t.EFF(18,"Set Password"),t.k0s(),t.j41(19,"form",12),t.bIt("ngSubmit",function(){return o.onSubmit()}),t.j41(20,"div",13)(21,"label"),t.EFF(22,"New password"),t.k0s(),t.nrm(23,"input",14),t.k0s(),t.j41(24,"div",13)(25,"label"),t.EFF(26,"Confirm password"),t.k0s(),t.nrm(27,"input",15),t.k0s(),t.j41(28,"button",16),t.EFF(29,"Save password"),t.k0s()()()()()()),2&i&&(t.R7$(19),t.Y8G("formGroup",o.form))},dependencies:[s.qT,s.me,s.BC,s.cb,s.j4,s.JD],styles:["[_nghost-%COMP%]{display:block}"]})}return e})();var c=a(7438);const be=[{path:"",component:Kt,children:[{path:"signIn",component:O,canActivate:[c.b$,c.kZ,c.OX]},{path:"sign-up",component:D,canActivate:[c.b$,c.kZ,c.OX]},{path:"set-password",component:Fe},{path:"signUp",redirectTo:"sign-up"},{path:"operator/signIn",component:O,canActivate:[c.b$,c.kZ,c.OX]},{path:"operator/sign-up",component:D,canActivate:[c.b$,c.kZ,c.OX]},{path:"operator/signUp",redirectTo:"operator/sign-up"},{path:"dashboard",loadChildren:()=>Promise.all([a.e(486),a.e(322),a.e(344)]).then(a.bind(a,4344)).then(e=>e.DashboardModule),canActivate:[c.px,c.kZ,c.b$]}]}];let ke=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[f.iI.forChild(be),f.iI]})}return e})();var ye=a(9529),Se=a(1161),Ee=a(5911),xe=a(8834),Te=a(9115),Ie=a(5951),je=a(5084),Ge=a(6013),Re=a(882),Ne=a(7768);let $e=(()=>{class e{static#t=this.\u0275fac=function(i){return new(i||e)};static#e=this.\u0275mod=t.$C({type:e});static#n=this.\u0275inj=t.G2t({imports:[_.MD,ke,je.X6,j.WX,b.Ve,G.fS,R.m_,xe.Hl,Ee.s5,Te.Cn,ye.bU,_.MD,s.YN,s.X1,N.Ph,Ne.uY,Re.vg,Ge.aP,Ie.Wk,$.An,Se.MY]})}return e})()}}]);
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.