PageSourceSearch

https://www.progold.eu/chunk-WQIIOZKF.js

js progold.eu collected 2026-10-09 21:52:41 UTC 146,726 bytes, 20 lines download raw bytes

1import{a as Ae}from"./chunk-3OGXCAV2.js";import{a as at}from"./chunk-6UMFXTLI.js";import{a as W}from"./chunk-WG7JFK7H.js";import{c as ni}from"./chunk-ZDRPI3JU.js";import{a as Zt}from"./chunk-AVB27TRK.js";import{a as Le}from"./chunk-FPHPRB3P.js";import{b as w}from"./chunk-6VKQ4C4B.js";import{G as we,H as Oe,J as Se,K as Ie,L as ei,M as ti,N as rt,O as ii,S as st,Sb as si,T as lt,U as oi,V as ri,W as ai,f as Xt,g as zt,h as Jt,i as Qt,j as Fe,l as _,m as K,n as Z,o as ce,u as k,z as Ne}from"./chunk-2EGU7YKH.js";import"./chunk-XXJ5KP6J.js";import"./chunk-CAQC7JX5.js";import"./chunk-OQSEJWXG.js";import"./chunk-LB2SIPUX.js";import"./chunk-YU5IEYKE.js";import"./chunk-TNG3WTDY.js";import"./chunk-DBPN64ZI.js";import"./chunk-PXIE55XG.js";import"./chunk-76J53O4D.js";import"./chunk-7IEHGNLB.js";import{e as B,f as q}from"./chunk-P5CCJ2SN.js";import"./chunk-NEQO7ITA.js";import"./chunk-ILIGNJRC.js";import{b as Ct}from"./chunk-J5ZO4Z7X.js";import{a as Kt}from"./chunk-C2LYL6UN.js";import{g as ot,i as kt,k as $t}from"./chunk-FM5MQBX4.js";import"./chunk-KJ2DTZTE.js";import"./chunk-3RKFVFMW.js";import"./chunk-6LRNCJRQ.js";import"./chunk-BYUXZABT.js";import{k as tt,r as qt}from"./chunk-CSKO464Y.js";import{z as Q}from"./chunk-RFZ65DFT.js";import{m as Bt,q as Ze}from"./chunk-ZAELU3GP.js";import{e as et}from"./chunk-KCBWTIVH.js";import{b as be}from"./chunk-Q7LOV5U2.js";import"./chunk-GSJIPMUW.js";import"./chunk-2D6KGTZB.js";import{f as nt}from"./chunk-ZS7OWNSY.js";import"./chunk-DIZWDXBB.js";import{E as jt,Q as j,U as it,_ as ue}from"./chunk-Q4MTVQC2.js";import"./chunk-RRAYDVNW.js";import{Fc as Vt,Id as Ut,Ja as Gt,Nd as ze,Pd as Ht,Wd as Je,Yd as Qe,a as ee,c as Lt,dd as oe,fd as C,hd as re,id as ae,ld as g,ne as V,od as se,oe as ve,pd as Wt,pe as x,qe as de,rd as le,sd as pe,td as Pe,uc as St,yd as me}from"./chunk-WGWIBZ2L.js";import{$ as ft,$b as f,$c as ct,Cc as Ot,D as U,Fa as y,Fc as R,Ga as N,Gb as z,Gc as It,Ib as m,Ja as je,La as Be,
1N as At,Ob as D,Oc as b,Pc as F,Pd as Dt,Q as Te,Ra as Pt,Ta as qe,Tb as r,Tc as De,Ub as a,Vb as h,Wb as fe,X as Tt,Xb as _e,Z as G,Zb as L,ac as S,ad as Ke,ca as _t,cb as ke,dc as J,dd as Rt,f as Ge,fb as ne,g as Nt,gd as Xe,gf as Yt,hb as i,ic as vt,jc as bt,kc as Ft,lb as Me,ma as ye,md as xt,pc as d,qa as We,qc as c,rc as T,sc as wt,tb as I,td as Mt,ua as H,ub as $e,va as Ue,w as Ve,xa as He,ya as E,zb as v}from"./chunk-6LP6WHZQ.js";import{a as ie,b as Ee}from"./chunk-5KTCK5IS.js";var Ce=(()=>{class n{#e=E(et);sendRegistrationOpenedGAEvent(){this.#e.pushTag({event:q.RegistrationStep,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationStart,eventLabel:"Cash customer registration start",registration_information:{stepNumber:"1",stepNameDescription:"cash customer registration start User info"}})}sendSuccessRegistrationGAEvent(){this.#e.pushTag({event:q.RegistrationStep,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationCompletedFirstStep,eventLabel:"Cash customer registration start",registration_information:{stepNumber:"1",stepNameDescription:"cash customer registration User info"}})}sendCreateAccountAttemptGAEvent(){this.#e.pushTag({event:q.RegistrationAttempt,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationAttempt,eventLabel:"click"})}sendRegistrationReviewGAEvent(){this.#e.pushTag({event:q.RegistrationStep,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationReview,eventLabel:"Cash customer review",registration_information:{stepNumber:"4",stepNameDescription:"cash customer registration review"}})}sendRegistrationCompanyInfoGAEvent(){this.#e.pushTag({event:q.RegistrationStep,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationSubmitCompanyInfo,eventLabel:"Cash customer company info",registration_information:{stepNumber:"3",stepNameDescription:"cash customer registration company info"}})}sendRegistrationCompletedGAEvent(){this.#e.pushTag({event:q.RegistrationStep,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationCompleted,eventLabel:"Cash customer registration completed"})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Di=["captchaRef"],gt=n=>({"ng-invalid ng-dirty":n});function Li(n,A){n&1&&(r(0,"h6",33),d(1),b(2,"transloco"),a()),n&2&&(i(),c(F(2,1,"VALIDATION.ERRORS.PASSWORD.PICK_PASSWORD")))}function Yi(n,A){n&1&&(h(0,"p-divider"),r(1,"p",34),d(2),b(3,"transloco"),a(),r(4,"ul",35)(5,"li"),d(6),b(7,"transloco"),a(),r(8,"li"),d(9),b(10,"transloco"),a(),r(11,"li"),d(12),b(13,"transloco"),a(),r(14,"li"),d(15),b(16,"transloco"),a(),r(17,"li"),d(18),b(19,"transloco"),a()()),n&2&&(i(2),c(F(3,6,"VALIDATION.ERRORS.PASSWORD.SUGGESTIONS")),i(4),c(F(7,8,"VALIDATION.ERRORS.PASSWORD.LOWER_CASE")),i(3),c(F(10,10,"VALIDATION.ERRORS.PASSWORD.UPPER_CASE")),i(3),c(F(13,12,"VALIDATION.ERRORS.PASSWORD.NUMBER")),i(3),c(F(16,14,"VALIDATION.ERRORS.PASSWORD.MIN_CHARACTERS")),i(3),c(F(19,16,"VALIDATION.ERRORS.PASSWORD.SPECIAL_CHARACTER")))}function Gi(n,A){n&1&&(r(0,"h6",33),d(1),b(2,"transloco"),a()),n&2&&(i(),c(F(2,1,"VALIDATION.ERRORS.PASSWORD.PICK_PASSWORD")))}function Vi(n,A){n&1&&(h(0,"p-divider"),r(1,"p",34),d(2),b(3,"transloco"),a(),r(4,"ul",35)(5,"li"),d(6),b(7,"transloco"),a(),r(8,"li"),d(9),b(10,"transloco"),a(),r(11,"li"),d(12),b(13,"transloco"),a(),r(14,"li"),d(15),b(16,"transloco"),a(),r(17,"li"),d(18),b(19,"transloco"),a()()),n&2&&(i(2),c(F(3,6,"VALIDATION.ERRORS.PASSWORD.SUGGESTIONS")),i(4),c(F(7,8,"VALIDATION.ERRORS.PASSWORD.LOWER_CASE")),i(3),c(F(10,10,"VALIDATION.ERRORS.PASSWORD.UPPER_CASE")),i(3),c(F(13,12,"VALIDATION.ERRORS.PASSWORD.NUMBER")),i(3),c(F(16,14,"VALIDATION.ERRORS.PASSWORD.MIN_CHARACTERS")),i(3),c(F(19,16,"VALIDATION.ERRORS.PASSWORD.SPECIAL_CHARACTER")))}function Wi(n,A){if(n&1){let e=L();fe(0),r(1,"div",5)(2,"h1",6),d(3),a(),r(4,"div",7)(5,"div",8),d(6),a(),r(7,"div",9),d(8),r(9,"p-button",10),f("onClick",function(o){y(e);let u=S();return N(u.confirmNavigationForMobileDevice(o,u.registrationURL()))}),d(10),a()(),r(11,"div",11),d(12),r(13,"p-button",12),f("click",function(o){y(e);let u=S();return N(u.confirmNavigationForMobileDevice(o,u.signOutUrl()))}),d(14),a()(),r(15,"div",13)(16,"span",14),d(17,"*"),a(),d(18),b(19,"transloco"),a()(),r(20,"p-card",15)(21,"p-fluid")(22,"form",16)(23,"ppg-input-group",17)(24,"input",18),f("blur",function(){y(e);let o=S();return N(o.userDetailsformWrapper.onControlBlur("firstName"))})("valueChange",function(o){y(e);let u=S();return N(u.userDetailsformWrapper.onControlChangeValue("firstName",o))}),a()(),r(25,"div",19)(26,"ppg-input-group",20)(27,"input",21),f("blur",function(){y(e);let o=S();return N(o.userDetailsformWrapper.onControlBlur("lastName"))})("valueChange",function(o){y(e);let u=S();return N(u.userDetailsformWrapper.onControlChangeValue("lastName",o))}),a()()(),r(28,"div",22),h(29,"app-phone-number-input",23),a(),r(30,"div",24),h(31,"ppg-site-language-select-field",25),a(),r(32,"div",19)(33,"ppg-input-group",26)(34,"input",27),f("blur",function(){y(e);let o=S();return N(o.userDetailsformWrapper.onControlBlur("email"))})("valueChange",function(o){y(e);let u=S();return N(u.userDetailsformWrapper.onControlChangeValue("email",o))}),a()()()()()(),r(35,"p-card",28)(36,"form",16)(37,"ppg-input-group",29)(38,"p-password",30),b(39,"transloco"),b(40,"transloco"),b(41,"transloco"),b(42,"transloco"),v(43,Li,3,3,"ng-template",null,0,De)(45,Yi,20,18,"ng-template",null,1,De),a()(),r(47,"ppg-input-group",31)(48,"p-password",32),b(49,"transloco"),b(50,"transloco"),b(51,"transloco"),b(52,"transloco"),v(53,Gi,3,3,"ng-template",null,0,De)(55,Vi,20,18,"ng-template",null,1,De),a()()()()(),_e()}if(n&2){let e=A.$implicit,t=S();i(3),T(" ",e("CREATE_USER_ACCOUNT_TITLE")," "),i(3),T(" ",e("CREATE_USER_ACCOUNT_DESCRIPTION")," "),i(2),T(" ",e("NEED_TO_LINK_EXISTING_ACCOUNT")," "),i(),m("link",!0),i(),c(e("LINK_ACCOUNT")),i(2),T(" ",e("ALREADY_HAVE_ACCOUNT")," "),i(),m("link",!0),i(),c(e("SIGN_IN")),i(4),T(" ",F(19,61,"CASH_CUSTOMER.REQUIRED_FIELDS")," "),i(2),m("header",e("USER_DETAILS")),i(2),m("formGroup",t.userDetailsForm),i(),m("label",e("FIRST_NAME"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(79,gt,t.userDetailsformWrapper.isControlInvalid("firstName")))("maxLength",t.FieldRestrictions.FirstNameMaxLength)("ppgValidator",t.userDetailsformWrapper.getFormControlBy("firstName"))("fieldType",t.ERROR_FIELD_TYPE.FirstName),i(2),m("label",e("LAST_NAME"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(81,gt,t.userDetailsformWrapper.isControlInvalid("lastName")))("maxLength",t.FieldRestrictions.LastNameMaxLength)("ppgValidator",t.userDetailsformWrapper.getFormControlBy("lastName"))("fieldType",t.ERROR_FIELD_TYPE.LastName),i(2),m("formGroup",t.userDetailsForm)("label",e("PHONE_NUMBER"))("phoneControl","phoneNumber"),i(2),m("formGroup",t.userDetailsForm)("label",e("LANGUAGE")),i(2),m("label",e("EMAIL"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(83,gt,t.userDetailsformWrapper.isControlInvalid("email")))("maxLength",t.FieldRestrictions.EmailMaxLength)("ppgValidator",t.userDetailsformWrapper.getFormControlBy("email"))("fieldType",t.ERROR_FIELD_TYPE.Email),i(),m("header",e("PASSWORD_SECTION.TITLE")),i(),m("formGroup",t.userPasswordForm),i(),m("label",e("PASSWORD_SECTION.PASSWORD_FIELD_LABEL"))("required",!0)("displaySuffix",!0),i(),m("promptLabel",F(39,63,"VALIDATION.ERRORS.PASSWORD.ENTER_PASSWORD"))("weakLabel",F(40,65,"VALIDATION.ERRORS.PASSWORD.WEAK"))("mediumLabel",F(41,67,"VALIDATION.ERRORS.PASSWORD.MEDIUM"))("strongLabel",F(42,69,"VALIDATION.ERRORS.PASSWORD.STRONG"))("maxLength",t.FieldRestrictions.PasswordMaxLength)("toggleMask",!0)("ppgValidator",t.userPasswordFormWrapper.getFormControlBy("password"))("fieldType",t.ERROR_FIELD_TYPE.Password),i(9),m("label",e("PASSWORD_SECTION.RETYPE_PASSWORD_FIELD_LABEL"))("required",!0)("displaySuffix",!0),i(),m("promptLabel",F(49,71,"VALIDATION.ERRORS.PASSWORD.ENTER_PASSWORD"))("weakLabel",F(50,73,"VALIDATION.ERRORS.PASSWORD.WEAK"))("mediumLabel",F(51,75,"VALIDATION.ERRORS.PASSWORD.MEDIUM"))("strongLabel",F(52,77,"VALIDATION.ERRORS.PASSWORD.STRONG"))("maxLength",t.FieldRestrictions.PasswordMaxLength)("toggleMask",!0)("ppgValidator",t.userPasswordFormWrapper.getFormControlBy("repeatPassword"))("fieldType",t.ERROR_FIELD_TYPE.Password)}}function Ui(n,A){if(n&1){let e=L();r(0,"re-captcha",36,2),f("resolved",function(o){y(e);let u=S();return N(u.recaptchaService.recaptchaResolved(o))}),a()}if(n&2){let e=S();m("siteKey",e.recaptchaService.recaptchaSiteKey)}}var di=(()=>{class n{unloadNotification(e){e.returnValue=this.doesFormContainUserData()||""}#e;#t;#n;#a;#o;#i;#r;#s;constructor(){this.registrationURL=ct(()=>this.#s.getPathByAppRouteFeatureModule(St.Registration)),this.ERROR_FIELD_TYPE=Fe,this.recaptchaService=E(Ae),this.#e=E(me),this.#t=E(W),this.#n=E(we),this.#a=E(Pt),this.#o=E(Bt),this.#i=E(ve),this.#r=E(Ce),this.#s=E(Vt),this.defaultCountryCode=$t.DEFAULT_COUNTRY_CODE,this.signOutUrl=ct(()=>`${this.#s.getPathByAppRouteFeatureModule(St.Authentication)}/${Gt.SIGNOUT}`);let e=this.#t.state.createCashCustomerModel||{};this.userDetailsForm=this.#e.group({firstName:new g(e.firstName||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.FirstNameMinLength),C.maxLength(_.FirstNameMaxLength)],nonNullable:!0,updateOn:"blur"}),lastName:new g(e.lastName||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.LastNameMinLength),C.maxLength(_.LastNameMaxLength)],nonNullable:!0,updateOn:"blur"}),phoneNumber:new g(e.phoneNumber||"",{nonNullable:!0,updateOn:"blur"}),country:new g(e.country||"",{validators:[C.required],updateOn:"change"}),language:new g(e.language||"",{validators:[C.required],nonNullable:!0,updateOn:"change"}),email:new g(e.email||"",{validators:[C.required,w.email(),w.forbidUsingPPGEmail(),C.minLength(_.EmailMinLength),C.maxLength(_.EmailMaxLength)],nonNullable:!0,updateOn:"blur"})});let t=E(Ze).minDigitLengthValidator;Ke(()=>this.userDetailsForm.controls.phoneNumber.setValidators([C.required,Le.customPhone(),t()])),this.userPasswordForm=this.#e.group({password:new g("",{validators:[C.required,Zt.passwordRequirements()],nonNullable:!0,updateOn:"change"}),repeatPassword:new g("",{validators:[w.confirmPasswordMatchPassword()],nonNullable:!0,updateOn:"change"})},{validators:[w.PasswordFieldsMatch("password","repeatPassword")],updateOn:"change"}),this.userDetailsformWrapper=new ce(this.userDetailsForm),this.userPasswordFormWrapper=new ce(this.userPasswordForm)}ngOnInit(){this.#r.sendRegistrationOpenedGAEvent(),this.userDetailsformWrapper.getFormControlBy("country").setValue(this.defaultCountryCode)}get FieldRestrictions(){return _}moveNextAllowed(){return Z(this.userDetailsForm,!0),Z(this.userPasswordForm,!0,!0),this.isFormValid()?(this.recaptchaService.recaptchaToken||this.captchaRef.execute(),this.submit().pipe(U(e=>[K.Created,K.BadRequest].includes(e.data.generateAndSendSecurityCodeToEmail.statusCode)))):(this.scrollToFirstInvalidInput(),Ve(!1))}scrollToFirstInvalidInput(){this.#a.nativeElement.querySelector(".ng-invalid")?.scrollIntoView()}isFormValid(){return this.userDetailsForm.valid&&this.userPasswordForm.valid}doesFormContainUserData(){let e=["firstName","lastName","phoneNumber","email"],t=["password","repeatPassword"];return e.some(o=>this.userDetailsForm.controls[o].value)||t.some(o=>this.userPasswordForm.controls[o].value)||this.userDetailsForm.controls.language.value!=="en-US"}submit(){this.updateRegistrationState();let{firstName:e,lastName:t,email:o,language:u}=this.userDetailsForm.value;return this.recaptchaService.recaptchaToken$.pipe(ye(O=>(this.#r.sendSuccessRegistrationGAEvent(),this.#n.generateAndSendSecurityCodeToEmail(O,{firstName:e,lastName:t,email:o,language:u}))),G(1),We(O=>{let{statusCode:Y}=O.data.generateAndSendSecurityCodeToEmail;Y===K.NotFound&&this.userDetailsForm.get("email").setErrors({"user-with-email-already-exists":!0,"email-already-exists-login-suggestion":!0}),this.#t.setState({intermediateState:{isCodeGenerationLimitExceeded:Y===K.BadRequest}})}))}confirmNavigationForMobileDevice(e,t){e.preventDefault();let o=this.userDetailsForm.dirty,u=this.#o.isMobileDevice();if(!o||!u){window.location.href=t;return}let O=this.#i.translate("SHARED.DISCARD_CHANGES_MESSAGE.TITLE");confirm(O)&&(window.location.href=t)}updateRegistrationState(){this.#t.setState({createCashCustomerModel:Ee(ie({},this.userDetailsForm.value),{password:this.userPasswordForm.get("password").value})})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-create-user-account-step"]],viewQuery:function(t,o){if(t&1&&vt(Di,5),t&2){let u;
1bt(u=Ft())&&(o.captchaRef=u.first)}},hostBindings:function(t,o){t&1&&f("beforeunload",function(O){return o.unloadNotification(O)},!1,ne)},standalone:!1,decls:2,vars:2,consts:[["header",""],["footer",""],["captchaRef","reCaptcha"],[4,"transloco","translocoRead"],["size","invisible",3,"siteKey"],[1,"flex","justify-content-center","flex-column"],["data-test-id","createAccountStep1.headerCreateYourUserAccount",1,"my-4","p-0","u-break-word"],[1,"line-height-normal"],["data-test-id","createAccountStep1.stepDescription"],["data-test-id","createAccountStep1.needToLinkExistingAccount",1,"pt-3"],["styleClass","p-0 font-size-s-3 align-items-end line-height-normal","data-test-id","createAccountStep1.linkAccount",3,"onClick","link"],["data-test-id","createAccountStep1.alreadyHavePpgAccount",1,"pt-2"],["styleClass","p-0 font-size-s-3 align-items-end line-height-normal","data-test-id","createAccountStep1.signIn",3,"click","link"],["data-test-id","createAccountStep1.requiredFields",1,"pt-5","pb-4"],[1,"required"],["styleClass","ppg-form-card","data-test-id","createAccountStep1.userDetailsCardWithTitle",3,"header"],[3,"formGroup"],["labelFor","firstName","data-test-id","createAccountStep1.labelFirstName",3,"label","required","displaySuffix"],["type","text","pInputText","","data-test-id","createAccountStep1.firstNameInput","formControlName","firstName","name","firstName","id","firstName","required","true",3,"blur","valueChange","ngClass","maxLength","ppgValidator","fieldType"],[1,"mt-4"],["labelFor","lastName","data-test-id","createAccountStep1.labelLastName",3,"label","required","displaySuffix"],["type","text","pInputText","","data-test-id","createAccountStep1.lastNameInput","formControlName","lastName","name","lastName","id","lastName","required","true",3,"blur","valueChange","ngClass","maxLength","ppgValidator","fieldType"],["data-test-id","createAccountStep1.labelPhone",1,"mt-4"],["data-test-id","createAccountStep1.phoneInput","ngDefaultControl","","styleModifier","w-full",3,"formGroup","label","phoneControl"],["data-test-id","createAccountStep1.labelLanguge",1,"mt-4"],["data-test-id","createAccountStep1.userDetailsLanguageDropdown","ngDefaultControl","","formControlName","language","styleModifier","w-full",3,"formGroup","label"],["labelFor","email","data-test-id","createAccountStep1.labelEmail",3,"label","required","displaySuffix"],["type","text","pInputText","","data-test-id","createAccountStep1.emailInput","formControlName","email","name","email","id","email","required","true",3,"blur","valueChange","ngClass","maxLength","ppgValidator","fieldType"],["styleClass","ppg-form-card","data-test-id","createAccountStep1.passwordSectionCardWithTitle",1,"mt-4",3,"header"],["labelFor","pswd-field",3,"label","required","displaySuffix"],["inputId","pswd-field","data-test-id","createAccountStep1.inputYourPassword","formControlName","password",1,"w-full","mb-3","block",3,"promptLabel","weakLabel","mediumLabel","strongLabel","maxLength","toggleMask","ppgValidator","fieldType"],["labelFor","confirm-pswd-field",3,"label","required","displaySuffix"],["inputId","confirm-pswd-field","data-test-id","createAccountStep1.inputConfirmYourPassword","formControlName","repeatPassword",1,"w-full","block",3,"promptLabel","weakLabel","mediumLabel","strongLabel","maxLength","toggleMask","ppgValidator","fieldType"],[1,"p-0"],[1,"mt-2"],[1,"pl-2","ml-2","mt-0","list-disc","line-height-3"],["size","invisible",3,"resolved","siteKey"]],template:function(t,o){t&1&&v(0,Wi,57,85,"ng-container",3)(1,Ui,2,1,"re-captcha",4),t&2&&(m("translocoRead","CASH_CUSTOMER.CREATE_USER_ACCOUNT_STEP"),i(),D(!o.recaptchaService.recaptchaToken&&o.recaptchaService.recaptchaSiteKey?1:-1))},dependencies:[Xe,se,oe,re,ae,Pe,le,pe,Oe,x,Ie,ei,j,ue,Q,ti,qt,rt,Se,zt,de],styles:[`::-ms-reveal{display:none}ul li::marker{font-size:var(--font-size-s-2)}input::-webkit-credentials-auto-fill-button{width:0!important;display:none!important}
2`],encapsulation:2})}}return n})();function mt(n){return n.replace(/([A-Z])/g,"_$1").toUpperCase()}var P=(function(n){return n.WhoAreYou="whoAreYou",n.WhatYouPainting="whatYouPainting",n.ProjectType="projectType",n})(P||{});var $=(function(n){return n[n.HaveAnEINAndWillProvideIt=1]="HaveAnEINAndWillProvideIt",n[n.PreferNotToProvideEIN=2]="PreferNotToProvideEIN",n[n.DoNotHaveAnEIN=3]="DoNotHaveAnEIN",n})($||{});var s=(function(n){return n.GeneralConstractor="GENERAL_CONTRACTOR",n.Painter="PAINTER",n.SNPContractor="SNP_CONTRACTOR",n.PropertyManagement="PROPERTY_MANAGEMENT",n.Architect="ARCHITECT",n.Designer="DESIGNER",n.Other="OTHER",n})(s||{}),l=(function(n){return n.AmusementEntertainmentLocations="AMUSEMENT_ENTERTAINMENT_LOCATIONS",n.EducationalFacilities="EDUCATIONAL_FACILITIES",n.GovernmentFacilities="GOVERNMENT_FACILITIES",n.HealthcareSeniorLivingFacilities="HEALTHCARE_SENIOR_LIVING_FACILITIES",n.Hospital
2ityFacilities="HOSPITALITY_FACILITIES",n.MultiFamilyResidences="MULTI_FAMILY_RESIDENCES",n.SingleFamilyResidences="SINGLE_FAMILY_RESIDENCES",n.IndustrialFacilities="INDUSTRIAL_FACILITIES",n.RetailOffices="RETAIL_OFFICES",n.ManufacturingSurfaces="MANUFACTURING_SURFACES",n.CivilInfrastructure="CIVIL_INFRASTRUCTURE",n.MarineSturctures="MARINE_STURCTURES",n.Other="OTHER",n})(l||{}),p=(function(n){return n.NewConstruction="NEW_CONSTRUCTION",n.Maintenance="MAINTENANCE",n.Bids="BIDS",n.RenovationRehab="RENOVATION_REHAB",n.NewHomeConstruction="NEW_HOME_CONSTRUCTION",n.ResidentialRepaint="RESIDENTIAL_REPAINT",n.NewConstructionNonBuilder="NEW_CONSTRUCTION_NON_BUILDER",n.NewConstructionBuilder="NEW_CONSTRUCTION_BUILDER",n})(p||{}),ui=[{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSAENEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSAEMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCAENEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCAEMNT"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCAENEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCAEMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPAENEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPAEMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STAENEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STAEMNT"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"CFAENEW"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"CFAEMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACAENEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACAEMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCAENEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCAEMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"AE",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"AEAENEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"AE",whatYouPainting:l.AmusementEntertainmentLocations,SegmentCode2:"AE",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"AEAEMNT"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSEDNEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSEDMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCEDNEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCEDMNT"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCEDNEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCEDMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPEDNEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPEDMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STEDNEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STEDMNT"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"CFEDNEW"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"CFEDMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACEDNEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACEDMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCEDNEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCEDMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"ED",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"EDEDNEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"ED",whatYouPainting:l.EducationalFacilities,SegmentCode2:"ED",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"EDEDMNT"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSGVNEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSGVMNT"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"RSGVBID"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCG
2VNEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCGVMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"GCGVBID"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCGVNEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCGVMNT"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"LCGVBID"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPGVNEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPGVMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"SPGVBID"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STGVNEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STGVMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"STGVBID"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACGVNEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACGVMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"ACGVBID"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCGVNEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCGVMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"DCGVBID"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"GV",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GVGVNEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"GV",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GVGVMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"GV",whatYouPainting:l.GovernmentFacilities,SegmentCode2:"GV",projectType:p.Bids,SegmentCode3:"BID",FullSegment:"GVGVBID"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSHCNEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSHCMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCHCNEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCHCMNT"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCHCNEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCHCMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPHCNEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPHCMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STHCNEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STHCMNT"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"CFHCNEW"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"CFHCMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACHCNEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACHCMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCHCNEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCHCMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"HC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"HCHCNEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"HC",whatYouPainting:l.HealthcareSeniorLivingFacilities,SegmentCode2:"HC",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"HCHCMNT"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.Hospital
2ityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSHONEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSHOMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCHONEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCHOMNT"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCHONEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCHOMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPHONEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPHOMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STHONEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STHOMNT"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"CFHONEW"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"CFHOMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACHONEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACHOMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCHONEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCHOMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"HO",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"HOHONEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"HO",whatYouPainting:l.HospitalityFacilities,SegmentCode2:"HO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"HOHOMNT"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSMFNEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSMFMNT"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"RSMFRHB"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCMFNEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCMFMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"GCMFRHB"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCMFNEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCMFMNT"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"LCMFRHB"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPMFNEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPMFMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"SPMFRHB"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STMFNEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STMFMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"STMFRHB"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"CFMFNEW"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"CFMFMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACMFNEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACMFMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"ACMFRHB"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCMFNEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCMFMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"DCMFRHB"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"MF",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"MFMFNEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"MF",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"MFMFMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"MF",whatYouPainting:l.MultiFamilyResidences,SegmentCode2:"MF",projectType:p.RenovationRehab,SegmentCode3:"RHB",FullSegment:"MFMFRHB"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"RSNHC"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"RSRSPTR"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"GCNHC"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"GCRSPTR"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"LCNHC"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"LCRSPTR"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"SPNHC"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"SPRSPTR"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"STNHC"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"STRSPTR"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"CFNHC"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"CFRSPTR"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"ACNHC"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"ACRSPTR"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewHomeConstruction,SegmentCode3:"C",FullSegment:"DCNHC"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"RS",projectType:p.ResidentialRepaint,SegmentCode3:"PTR",FullSegment:"DCRSPTR"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"NH",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"CO",projectType:p.NewConstructionNonBuilder,SegmentCode3:"NS",FullSegment:"NHCONS"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"NH",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"NH",projectType:p.NewConstructionBuilder,SegmentCode3:"CON",FullSegment:"NHNHCON"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"RE",whatYouPainting:l.SingleFamilyResidences,SegmentCode2:"SP",projectType:p.Maintenance,SegmentCode3:"PTR",FullSegment:"RESPTR"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSPFNEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSPFMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCPFNEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCPFMNT"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCPFNEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCPFMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPPFNEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPPFMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STPFNEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STPFMNT"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"CFPFNEW"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"CFPFMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACPFNEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACPFMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCPFNEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCPFMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"PF",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"PFPFNEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"PF",whatYouPainting:l.IndustrialFacilities,SegmentCode2:"PF",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"PFPFMNT"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RSRONEW"},{PaintersNumber:"< 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"RS",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"RSROMNT"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"GCRONEW"},{PaintersNumber:">= 25",whoAreYou:s.GeneralConstractor,SegmentCode1:"GC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"GCROMNT"},{PaintersNumber:"< 25",whoAreYou:s.Pain
2ter,SegmentCode1:"LC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"LCRONEW"},{PaintersNumber:"< 25",whoAreYou:s.Painter,SegmentCode1:"LC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"LCROMNT"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"SPRONEW"},{PaintersNumber:">= 25",whoAreYou:s.Painter,SegmentCode1:"SP",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"SPROMNT"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"STRONEW"},{PaintersNumber:null,whoAreYou:s.SNPContractor,SegmentCode1:"ST",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"STROMNT"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"CFRONEW"},{PaintersNumber:null,whoAreYou:s.PropertyManagement,SegmentCode1:"CF",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"CFROMNT"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"ACRONEW"},{PaintersNumber:null,whoAreYou:s.Architect,SegmentCode1:"AC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ACROMNT"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"DCRONEW"},{PaintersNumber:null,whoAreYou:s.Designer,SegmentCode1:"DC",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"DCROMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"RO",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.NewConstruction,SegmentCode3:"NEW",FullSegment:"RORONEW"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"RO",whatYouPainting:l.RetailOffices,SegmentCode2:"RO",projectType:p.Maintenance,SegmentCode3:"MNT",FullSegment:"ROROMNT"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"OT",whatYouPainting:l.Other,SegmentCode2:"HER",projectType:null,SegmentCode3:"",FullSegment:"OTHER"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"MF",whatYouPainting:l.ManufacturingSurfaces,SegmentCode2:"JSTF",projectType:null,SegmentCode3:"",FullSegment:"MFJSTF"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"CI",whatYouPainting:l.CivilInfrastructure,SegmentCode2:"VIL",projectType:null,SegmentCode3:"",FullSegment:"CIVIL"},{PaintersNumber:null,whoAreYou:s.Other,SegmentCode1:"MA",whatYouPainting:l.MarineSturctures,SegmentCode2:"RINE",projectType:null,SegmentCode3:"",FullSegment:"MARINE"}];var ci=(()=>{class n extends Je{constructor(){super(...arguments),this.document=Qe`
3    query ($marketId: Int!) {
4      industrySegments(marketId: $marketId) {
5        segment
6      }
7    }
8  `}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=je(n)))(o||n)}})()}static{this.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Re=(()=>{class n{constructor(e){this.businessSegmentQuery=e,this.whoAreYouCachedOptions=[],this.segments$=new Nt([]),this.mergedSegments=[],this.segmentsLoaded$=this.segments$.asObservable().pipe(U(t=>t?.length>0)),this.getMergedSegments().pipe(G(1)).subscribe(t=>{this.mergedSegments=t,this.cacheWhoAreYouOptions(),this.segments$.next(t)})}getIdrBusinessSegments(){return this.businessSegmentQuery.fetch({variables:{marketId:100},fetchPolicy:"cache-first",context:{clientName:"anonymous"}}).pipe(U(e=>e.data.industrySegments))}getMergedSegments(){return this.getIdrBusinessSegments().pipe(U(e=>
8{let t=o=>e.find(u=>u.segment===o.FullSegment);return ui.filter(t)}))}get WhoAreYouOptions(){return this.whoAreYouCachedOptions}getSegmentsFor(e,t,o,u){return this.mergedSegments.filter(O=>{let Y=isNaN(e)||e===null||e<0||O.PaintersNumber===null||new Function("return "+e.toString()+O.PaintersNumber);Y instanceof Function&&(Y=Y());let he=!t||O.whoAreYou===t,dt=!o||O.whatYouPainting===o,ut=!u||O.projectType===u;return Y&&he&&dt&&ut})}getSegmentOptionsFor(e,t,o,u,O){return t?t===P.ProjectType?[]:this.getOptionsForChange(t,e,o,u,O).map(he=>he[this.getNextOptionType(t)]).filter((he,dt,ut)=>ut.indexOf(he)===dt):this.whoAreYouCachedOptions}getNextOptionType(e){if(e===P.WhoAreYou)return P.WhatYouPainting;if(e===P.WhatYouPainting)return P.ProjectType}getResetSubOptions(e){return e===P.WhoAreYou?{whatYouPainting:[],projectType:[]}:e===P.WhatYouPainting?{projectType:[]}:{}}getSegmentDetails(e){return this.mergedSegments.find(t=>t.FullSegment===e)}getAllSegmentOptionsFor(e,t,o){return!t||!o||!e?{whoAreYou:this.whoAreYouCachedOptions,whatYouPainting:[],projectType:[]}:{whoAreYou:this.whoAreYouCachedOptions,whatYouPainting:this.getSegmentOptionsFor(e,P.WhoAreYou,t),projectType:this.getSegmentOptionsFor(e,P.WhatYouPainting,t,o)}}getOptionsForChange(e,t,o,u,O){return this.getSegmentsFor(t,o,[P.WhatYouPainting,P.ProjectType].includes(e)?u:void 0,e===P.ProjectType?O:void 0)}cacheWhoAreYouOptions(){this.whoAreYouCachedOptions=this.mergedSegments.map(e=>e.whoAreYou).filter((e,t,o)=>o.indexOf(e)===t)}static{this.\u0275fac=function(t){return new(t||n)(He(ci))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac})}}return n})();var Ki=(n,A)=>({termsOfUseUrl:n,privacyPolicyUrl:A});function Xi(n,A){if(n&1&&(r(0,"ppg-input-group",32),h(1,"p-select",64),a()),n&2){let e=S().$implicit,t=S();m("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.PROJECT_TYPE.LABEL"))("required",!0)("displaySuffix",!0),i(),m("disabled",!0)("editable",!1)("options",t.segmentOptions.projectType),z("data-test-id",t.BUSINESS_SEGMENT_OPTION_NAME.ProjectType)}}function zi(n,A){if(n&1&&(r(0,"div",38)(1,"ppg-input-group",65),h(2,"input",66,0),a()()),n&2){let e=S().$implicit,t=S();i(),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EIN"))("required",!0)("displaySuffix",!0),i(),m("disabled",!0)("required",t.isEinFieldEnabled())("mask",t.MASKS.EIN)("showMaskTyped",!0)}}function Ji(n,A){if(n&1&&(r(0,"p-card",57)(1,"form",6),h(2,"ppg-country-dropdown",67),r(3,"ppg-input-group",68),h(4,"input",69),a(),r(5,"ppg-input-group",70),h(6,"input",71),a(),r(7,"ppg-input-group",72),h(8,"input",73),a(),h(9,"ppg-state-dropdown",74),r(10,"ppg-input-group",75),h(11,"input",76),a(),r(12,"ppg-input-group",77),h(13,"input",78),a(),r(14,"div",11),h(15,"app-phone-number-input",79),a()()()),n&2){let e=S().$implicit,t=S();m("header",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.TITLE")),i(),m("formGroup",t.shipingAddressForm),i(),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.COUNTRY"))("disabled",!0)("countryGroup",t.shipingAddressForm)("countryControl","shippingCountry")("clearable",!1)("required",!0)("isAnonymous",!0),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.SHIPPING_ADDRESS_LINE_ONE"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("required",!1)("label",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.SHIPPING_ADDRESS_LINE_TWO"))("displaySuffix",!0),i(),m("disabled",!0)("required",!1),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.CITY"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("stateGroup",t.shipingAddressForm)("stateControl","shippingState")("clearable",!1)("required",!0)("disabled",!0)("isAnonymous",!0),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.POST_CODE"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("required",!1)("label",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.EMAIL"))("displaySuffix",!0),i(),m("disabled",!0)("required",!1),i(2),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.SHIPPING_ADDRESS_SECTION.PHONE_NUMBER"))("formGroup",t.shipingAddressForm)("phoneControl","shippingPhoneNumber")("required",!1)}}function Qi(n,A){n&1&&(r(0,"div",63)(1,"small",80),d(2),b(3,"transloco"),a()()),n&2&&(i(2),c(F(3,1,"VALIDATION.ERRORS.PPG.REQUIRED")))}function Zi(n,A){if(n&1&&(fe(0),r(1,"div",2)(2,"h1",3),d(3),a(),r(4,"div",4),d(5),a(),r(6,"p-card",5)(7,"form",6)(8,"ppg-input-group",7),h(9,"input",8),a(),r(10,"ppg-input-group",9),h(11,"input",10),a(),r(12,"div",11),h(13,"app-phone-number-input",12),a(),r(14,"div",13),h(15,"app-language-select-field",14),a(),r(16,"ppg-input-group",15),h(17,"input",16),a()()(),r(18,"p-card",17)(19,"form",6)(20,"ppg-input-group",18),h(21,"input",19),a(),r(22,"div",11),h(23,"app-phone-number-input",20),a(),r(24,"ppg-input-group",21),h(25,"input",22),a(),r(26,"ppg-input-group",23),h(27,"input",24),a(),r(28,"form",6)(29,"div",25)(30,"ppg-input-group",26),h(31,"p-select",27),a(),r(32,"p-button",28),d(33),a()(),r(34,"div",25)(35,"ppg-input-group",29),h(36,"p-select",30),a(),r(37,"p-button",31),d(38),a()(),v(39,Xi,2,7,"ppg-input-group",32),a(),r(40,"ppg-input-group",33),h(41,"p-select",34),a(),r(42,"div",35)(43,"p",36),d(44),a(),r(45,"p-button",37),d(46),a()(),v(47,zi,4,7,"div",38),r(48,"div",39),h(49,"p-checkbox",40),r(50,"div",41)(51,"label",42),d(52),a(),r(53,"p-button",43),d(54),a()()()()(),r(55,"p-card",44)(56,"form",6),h(57,"ppg-country-dropdown",45),r(58,"ppg-input-group",46),h(59,"input",47),a(),r(60,"ppg-input-group",48),h(61,"input",49),a(),r(62,"ppg-input-group",50),h(63,"input",51),a(),h(64,"ppg-state-dropdown",52),r(65,"ppg-input-group",53),h(66,"input",54),a(),h(67,"p-checkbox",55),r(68,"label",56),d(69),a()()(),v(70,Ji,16,41,"p-card",57),r(71,"p-card",58)(72,"form",6)(73,"div",59),h(74,"p-checkbox",60),r(75,"label",61),h(76,"div",62),a()(),v(77,Qi,4,3,"div",63),a()()(),_e()),n&2){let e=A.$implicit,t=S();i(3),T(" ",e("REVIEW_AND_SUBMIT_STEP.REVIEW_SUBMIT_TITLE")," "),i(2),T(" ",e("REVIEW_AND_SUBMIT_STEP.REVIEW_SUBMIT_DESCRIPTION")," "),i(),m("header",e("CREATE_USER_ACCOUNT_STEP.USER_DETAILS")),i(),m("formGroup",t.userDetailsForm),i(),m("label",e("CREATE_USER_ACCOUNT_STEP.FIRST_NAME"))("displaySuffix",!0)("required",!0),i(),m("disabled",!0),i(),m("label",e("CREATE_USER_ACCOUNT_STEP.LAST_NAME"))("displaySuffix",!0)("required",!0),i(),m("disabled",!0),i(2),m("label",e("CREATE_USER_ACCOUNT_STEP.PHONE_NUMBER"))("formGroup",t.userDetailsForm)("phoneControl","phoneNumber"),i(2),m("formGroup",t.userDetailsForm)("label",e("CREATE_USER_ACCOUNT_STEP.LANGUAGE"))("disabled",!0)("isAnonymous",!0),i(),m("label",e("CREATE_USER_ACCOUNT_STEP.EMAIL"))("displaySuffix",!0)("required",!0),i(),m("disabled",!0),i(),m("header",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.TITLE")),i(),m("formGroup",t.companyDetailsForm),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.COMPANY_NAME"))("displaySuffix",!0),i(),m("disabled",!0),i(2),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.PHONE_NUMBER"))("formGroup",t.companyDetailsForm)("phoneControl","companyPhone"),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EMAIL"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.NUMBER_OF_PAINTERS"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("formGroup",t.segmentSelectionForm),i(2),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.WHO_ARE_YOU.LABEL"))("required",!0)("displaySuffix",!0),i(),m("disabled",!0)("editable",!1)("options",t.segmentOptions.whoAreYou),z("data-test-id",t.BUSINESS_SEGMENT_OPTION_NAME.WhoAreYou),i(),m("link",!0),i(),T(" ",e("SETUP_COMPANY_ACCOUNT_STEP.TOOLTIP.JOB_DESCRIPTIONS.TITLE")," "),i(2),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.WHAT_YOU_PAINTING.LABEL"))("required",!0)("displaySuffix",!0),i(),m("disabled",!0)("editable",!1)("options",t.segmentOptions.whatYouPainting),z("data-test-id",t.BUSINESS_SEGMENT_OPTION_NAME.WhatYouPainting),i(),m("link",!0),i(),T(" ",e("SETUP_COMPANY_ACCOUNT_STEP.TOOLTIP.PROJECT_DESCRIPTIONS.TITLE")," "),i(),D(t.segmentOptions.projectType!=null&&t.segmentOptions.projectType.length?39:-1),i(),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.DO_YOU_HAVE_EIN"))("required",!0)("displaySuffix",!0),i(),m("disabled",!0)("editable",!1)("options",t.EINOptions),i(3),T(" ",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EIN_EXPLANATION")," "),i(),m("link",!0),i(),T(" ",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EIN_BENEFITS")," "),i(),D(t.isEinFieldEnabled()?47:-1),i(2),m("disabled",!0)("inputId","reviewIsInterestedInApplicationForCredit")("binary",!0),i(3),c(e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.INTERESTED_IN_OPENING_A_LINE_OF_CREDIT")),i(),m("link",!0),i(),T(" ",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.LEARN_MORE")," "),i(),m("header",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_ADDRESS_SECTION.TITLE")),i(),m("formGroup",t.companyAddressForm),i(),m("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_ADDRESS_SECTION.COUNTRY"))("styleModifier","no-box-sha
8dow-on-focus mt-4")("disabled",!0)("countryGroup",t.companyAddressForm)("countryControl","companyCountry")("clearable",!1)("required",!0)("isAnonymous",!0),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_ADDRESS_SECTION.ADDRESS_LINE_ONE"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("required",!1)("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_ADDRESS_SECTION.ADDRESS_LINE_TWO"))("displaySuffix",!0),i(),m("disabled",!0)("required",!1),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_ADDRESS_SECTION.CITY"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("stateGroup",t.companyAddressForm)("stateControl","companyState")("clearable",!1)("required",!0)("disabled",!0)("isAnonymous",!0),i(),m("required",!0)("label",e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_ADDRESS_SECTION.POST_CODE"))("displaySuffix",!0),i(),m("disabled",!0),i(),m("disabled",!0)("binary",!0),i(2),c(e("SETUP_COMPANY_ACCOUNT_STEP.COMPANY_ADDRESS_SECTION.SHIP_TO_DIFFERENT_ADDRESS")),i(),D(t.companyAddressForm.get("shipMyOrdersToDifferentAddress").value?70:-1),i(),m("header",e("REVIEW_AND_SUBMIT_STEP.TITLE")),i(),m("formGroup",t.termsReadsAndAcceptedForm),i(2),m("required",!0)("binary",!0),i(2),m("innerHtml",e("REVIEW_AND_SUBMIT_STEP.TERMS_AND_PRIVACY_POLICY",It(119,Ki,t.termsOfUseUrl,t.privacyPolicyUrl)),ke),i(),D(!t.moveNextAllowed()&&t.termsReadsAndAcceptedForm.get("termsReadsAndAccepted").dirty?77:-1)}}var Si=(()=>{class n{unloadNotification(e){e.returnValue=!0}#e;#t;#n;#a;#o;#i;#r;#s;constructor(){this.#e=E(me),this.#t=E(we),this.#n=E(ni),this.#a=E(ve),this.#o=E(Be),this.#i=E(tt),this.#r=E(W),this.businessSegmentService=E(Re),this.#s=E(Ce),this.triggerMoveNext=new Ge,this.EINOptions=[],this.BUSINESS_SEGMENT_OPTION_NAME=P,this.MASKS=at,this.EINAvailabilityValue=$,this.privacyPolicyUrl=Ct.US["en-US"].FOOTER.LINKS[0].url,this.termsOfUseUrl=Ct.US["en-US"].FOOTER.LINKS[1].url,this.segmentOptions={whoAreYou:[],whatYouPainting:[],projectType:[]},this.#r.state$.pipe(ee(this.#o)).subscribe(e=>{this.registrationState=e.createCashCustomerModel||{}}),this.userDetailsForm=this.#e.group({firstName:new g({value:this.registrationState.firstName||"",disabled:!0}),lastName:new g({value:this.registrationState.lastName||"",disabled:!0}),phoneNumber:new g({value:this.registrationState.phoneNumber||"",disabled:!0}),country:new g({value:this.registrationState.country||"",disabled:!0}),language:new g({value:this.registrationState.language||"",disabled:!0}),email:new g({value:this.registrationState.email||"",disabled:!0})}),this.companyDetailsForm=this.#e.group({companyName:new g({value:this.registrationState.companyName||"",disabled:!0}),companyPhone:new g({value:this.registrationState.companyPhone||"",disabled:!0}),companyEmail:new g({value:this.registrationState.companyEmail||"",disabled:!0}),numberOfPainters:new g({value:this.registrationState.numberOfPainters||null,disabled:!0}),einSelectedOption:new g({value:this.registrationState.einSelectedOption?.toString()||"",disabled:!0}),ein:new g({value:this.registrationState.ein||"",disabled:!0}),isInterestedInApplicationForCredit:new g(this.registrationState.isInterestedInApplicationForCredit||null)}),this.segmentSelectionForm=this.#e.group({[P.WhoAreYou]:new g({value:"",disabled:!0},{validators:[C.required],nonNullable:!0,updateOn:"blur"}),[P.WhatYouPainting]:new g({value:"",disabled:!0},{validators:[C.required],nonNullable:!0,updateOn:"blur"}),[P.ProjectType]:new g({value:"",disabled:!0},{})}),this.businessSegmentService.segmentsLoaded$.pipe(Te(e=>e),G(1)).subscribe(()=>this.initSegmentOptionsFor(this.registrationState.companySegment)),this.companyAddressForm=this.#e.group({companyCountry:new g({value:this.registrationState.companyCountry||"US",disabled:!0}),companyState:new g({value:this.registrationState.companyState||"",disabled:!0}),companyCity:new g({value:this.registrationState.companyCity||"",disabled:!0}),companyPostCode:new g({value:this.registrationState.companyPostCode||"",disabled:!0}),companyAddressLine1:new g({value:this.registrationState.companyAddressLine1||"",disabled:!0}),companyAddressLine2:new g({value:this.registrationState.companyAddressLine2||"",disabled:!0}),shipMyOrdersToDifferentAddress:new g(this.registrationState.shipMyOrdersToDifferentAddress||!1)}),this.shipingAddressForm=this.#e.group({shippingCountry:new g({value:this.registrationState.shippingCountry||"US",disabled:!0}),shippingState:new g({value:this.registrationState.shippingState||"",disabled:!0}),shippingCity:new g({value:this.registrationState.shippingCity||"",disabled:!0}
8),shippingPostCode:new g({value:this.registrationState.shippingPostCode||"",disabled:!0}),shippingAddressLine1:new g({value:this.registrationState.shippingAddressLine1||"",disabled:!0}),shippingAddressLine2:new g({value:this.registrationState.shippingAddressLine2||"",disabled:!0},{}),shippingEmail:new g({value:this.registrationState.shippingEmail||"",disabled:!0}),shippingPhoneNumber:new g({value:this.registrationState.shippingPhoneNumber||"",disabled:!0})}),this.termsReadsAndAcceptedForm=this.#e.group({termsReadsAndAccepted:new g(!1,{validators:[C.requiredTrue]})}),this.#a.langChanges$.pipe(ye(()=>this.#a.selectTranslate("")),ee(this.#o)).subscribe(()=>{this.updateEINOptions()})}finishLastStep(){if(Z(this.termsReadsAndAcceptedForm,!0,!0),!this.moveNextAllowed())return;let e=this.#i.open(ii,{header:V("NOTIFICATION.SPINNER.CREATING_ACCOUNT_TITLE"),width:Ne.Medium,closable:!1});this.#s.sendCreateAccountAttemptGAEvent(),this.termsReadsAndAcceptedForm.get("termsReadsAndAccepted").value&&this.#t.getSMANByHomeStore(+this.registrationState.homeStoreNumber).pipe(G(1),ye(t=>(this.#r.setState({createCashCustomerModel:Ee(ie({},this.registrationState),{salesRepSMAN:t.smanByHomeStore})}),this.#n.createCashCustomer(this.registrationState))),_t(()=>e.close())).subscribe(t=>{this.registrationCompleted={customerName:this.registrationState.companyName,PPGAcountNumber:t.data.createCashCustomer,userFirstName:this.registrationState.firstName,userLastName:this.registrationState.lastName,userEmail:this.registrationState.email},this.#s.sendRegistrationReviewGAEvent(),this.#r.setState({createCashCustomerModel:this.registrationState,cashCustomerRegistrationCompletedModel:this.registrationCompleted})})}isEinFieldEnabled(){return this.companyDetailsForm.controls.einSelectedOption?.value===$.HaveAnEINAndWillProvideIt.toString()}moveNextAllowed(){return!!this.termsReadsAndAcceptedForm.get("termsReadsAndAccepted").value}initSegmentOptionsFor(e){let t=this.businessSegmentService.getSegmentDetails(e);t&&(this.segmentOptions={whoAreYou:this.mapValuesToTranslatedSelectOptions(P.WhoAreYou,[t.whoAreYou]),whatYouPainting:this.mapValuesToTranslatedSelectOptions(P.WhatYouPainting,[t.whatYouPainting]),projectType:this.mapValuesToTranslatedSelectOptions(P.ProjectType,[t.projectType])},this.segmentSelectionForm.controls.whoAreYou.setValue(t.whoAreYou),this.segmentSelectionForm.controls.whatYouPainting.setValue(t.whatYouPainting),this.segmentSelectionForm.controls.projectType.setValue(t.projectType))}updateEINOptions(){let e="CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EIN_DROPDOWN_OPTIONS";this.EINOptions=[{label:V(`${e}.HAVE`),value:$.HaveAnEINAndWillProvideIt.toString()},{label:V(`${e}.NOT_TO_PROVIDE`),value:$.PreferNotToProvideEIN.toString()},{label:V(`${e}.DONT_HAVE`),value:$.DoNotHaveAnEIN.toString()}]}mapValuesToTranslatedSelectOptions(e,t){return t?.length?t.filter(o=>o).map(o=>({label:this.translateSegmentOptionLabel(e,o),value:o})):[]}translateSegmentOptionLabel(e,t){let u=`CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.${mt(e)}.OPTIONS`;return V(`${u}.${t}`)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-review-submit-step"]],hostBindings:function(t,o){t&1&&f("beforeunload",function(O){return o.unloadNotification(O)},!1,ne)},outputs:{triggerMoveNext:"triggerMoveNext"},standalone:!1,decls:1,vars:1,consts:[["textField",""],[4,"transloco","translocoRead"],["appDisableTabNavigationForInputs","",1,"flex","justify-content-center","flex-column","gap-4","align-items-start"],["data-test-id","reviewSubmitStep4.reviewSubmitTitle",1,"pb-0","mb-0","pt-2"],["data-test-id","reviewSubmitStep4.reviewSubmitDescription"],["styleClass","ppg-form-card","data-test-id","reviewSubmitStep4.userDetailsCardWithTitle",3,"header"],[3,"formGroup"],["data-test-id","reviewSubmitStep4.firstNameGroupWithLabel","labelFor","firstName",3,"label","displaySuffix","required"],["data-test-id","reviewSubmitStep4.firstName","type","text","pInputText","","formControlName","firstName","name","firstName","id","firstName","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.lastNameGroupWithLabel","styleModifier","mt-4","labelFor","lastName",3,"label","displaySuffix","required"],["data-test-id","reviewSubmitStep4.lastName","type","text","pInputText","","formControlName","lastName","name","lastName","
8id","lastName","value","",1,"w-full",3,"disabled"],[1,"mt-4"],["data-test-id","reviewSubmitStep4.phoneNumber","ngDefaultControl","","styleModifier","no-box-shadow-on-focus pointer-events-none w-full",3,"label","formGroup","phoneControl"],["data-test-id","reviewSubmitStep4.labelLanguge",1,"mt-4"],["data-test-id","reviewSubmitStep4.userDetailsLanguageDropdown","ngDefaultControl","","formControlName","language","countryControlName","country","styleModifier","w-full",3,"formGroup","label","disabled","isAnonymous"],["data-test-id","reviewSubmitStep4.emailGroupWithLabel","styleModifier","mt-4","labelFor","email",3,"label","displaySuffix","required"],["data-test-id","reviewSubmitStep4.email","type","email","pInputText","","formControlName","email","name","email","id","email","value","",1,"w-full",3,"disabled"],["styleClass","ppg-form-card","data-test-id","reviewSubmitStep4.companyDetailsCardWithTitle",3,"header"],["data-test-id","reviewSubmitStep4.companyNameGroupWithLabel","styleModifier","mt-4","labelFor","companyName",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.companyNameField","type","text","pInputText","","formControlName","companyName","name","companyName","id","companyName","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.companyPhoneField","ngDefaultControl","","styleModifier","no-box-shadow-on-focus pointer-events-none w-full input-field",3,"label","formGroup","phoneControl"],["data-test-id","reviewSubmitStep4.companyEmailGroupWithLabel","styleModifier","mt-4","labelFor","companyEmail",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.companyEmailField","type","email","pInputText","","formControlName","companyEmail","name","companyEmail","id","companyEmail","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.numberOfPaintersGroupWithLabel","styleModifier","mt-4","labelFor","numberOfPainters",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.numberOfPaintersField","type","number","pInputText","","formControlName","numberOfPainters","name","numberOfPainters","id","numberOfPainters","value","",1,"w-full","pointer-events-none",3,"disabled"],[1,"mb-0","mt-4"],["data-test-id","reviewSubmitStep4.whoAreYouGroupWithLabel","styleModifier","mt-4","labelFor","whoAreYouControl",3,"label","required","displaySuffix"],["styleClass","w-full","id","whoAreYou","inputId","whoAreYouControl","name","whoAreYou","optionValue","value","optionLabel","label","formControlName","whoAreYou",3,"disabled","editable","options"],["data-test-id","reviewSubmitStep4.jobDescriptionsButton","styleClass","font-size-s-2 p-0 pointer-events-none opacity-60",3,"link"],["data-test-id","reviewSubmitStep4.whatAreYouPaintingGroupWithLabel","styleModifier","mt-4","labelFor","whatYouPainting",3,"label","required","displaySuffix"],["inputId","whatYouPainting","styleClass","w-full","name","whatYouPainting","optionValue","value","optionLabel","label","formControlName","whatYouPainting",3,"disabled","editable","options"],["styleClass","font-size-s-2 p-0 pointer-events-none opacity-60","data-test-id","reviewSubmitStep4.projectDescriptionsButton",3,"link"],["data-test-id","reviewSubmitStep4.projectTypeGroupWithLabel","labelFor","projectTypeControl","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","reviewSubmitStep4.doYouHaveEinGroupWithLabel","labelFor","einControl","styleModifier","mt-4",3,"label","required","displaySuffix"],["styleClass","w-full","data-test-id","reviewSubmitStep4.einSelectedOption","id","ein","inputId","einControl","name","ein","optionValue","value","optionLabel","label","formControlName","einSelectedOption",3,"disabled","editable","options"],[1,"font-size-s-2"],["data-test-id","reviewSubmitStep4.einExplanation",1,"m-0","font-size-s-2","pointer-events-none"],["data-test-id","reviewSubmitStep4.einBenefitsLink","styleClass","p-0 font-size-s-2 pointer-events-none opacity-60",3,"link"],[1,"mt-3"],[1,"flex","flex-row","pt-4","align-items-start"],["data-test-id","reviewSubmitStep4.isInterestedInApplicationForCreditCheckbox","formControlName","isInterestedInApplicationForCredit","name","isInterestedInApplicationForCredit",1,"pointer-events-none","opacity-60",3,"disabled","inputId","binary"],[1,"pl-2"],["for","reviewIsInterestedInApplicationForCredit","data-test-id","reviewSubmitStep4.isInterestedInApplicationForCreditText",1,"pointer-events-none"],["data-test-id","reviewSubmitStep4.isInterestedInApplicationForCreditLink","styleClass","p-0 pointer-events-none opacity-60",3,"link"],["styleClass","ppg-form-card","data-test-id","reviewSubmitStep4.companyAddressCardWithTitle",3,"header"],["data-test-id","reviewSubmitStep4.companyCountryDropdown","i
8d","companyCountry",3,"label","styleModifier","disabled","countryGroup","countryControl","clearable","required","isAnonymous"],["data-test-id","reviewSubmitStep4.companyAddressLine1GroupWithLabel","styleModifier","mt-4","labelFor","companyAddressLine1",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.companyAddressLine1Field","type","text","pInputText","","formControlName","companyAddressLine1","name","companyAddressLine1","id","companyAddressLine1","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.companyAddressLine2GroupWithLabel","styleModifier","mt-4","labelFor","companyAddressLine2",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.companyAddressLine2Field","type","text","pInputText","","formControlName","companyAddressLine2","name","companyAddressLine2","id","companyAddressLine2","value","",1,"w-full",3,"disabled","required"],["data-test-id","reviewSubmitStep4.companyCityGroupWithLabel","styleModifier","mt-4","labelFor","companyCity",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.companyCityField","type","text","pInputText","","formControlName","companyCity","name","companyCity","id","companyCity","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.companyStateDropdown","id","companyState","styleModifier","mt-4",3,"stateGroup","stateControl","clearable","required","disabled","isAnonymous"],["data-test-id","reviewSubmitStep4.companyPostCodeGroupWithLabel","styleModifier","mt-4","labelFor","companyPostCode",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.companyPostCodeField","type","text","pInputText","","formControlName","companyPostCode","name","companyPostCode","id","companyPostCode","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.shipMyOrdersToDifferentAddressCheckbox","formControlName","shipMyOrdersToDifferentAddress","id","shipMyOrdersToDifferentAddress","type","checkbox","name","shipMyOrdersToDifferentAddress","inputId","shipMyOrdersToDifferentAddressInput",1,"w-full","mt-4","pointer-events-none","opacity-60",3,"disabled","binary"],["for","shipMyOrdersToDifferentAddressInput"],["styleClass","ppg-form-card","data-test-id","reviewSubmitStep4.shippingAddressCardWithTitle",3,"header"],["styleClass","ppg-form-card","data-test-id","reviewSubmitStep4.reviewAndSubmitCardWithTitle",3,"header"],[1,"flex","flex-row","align-items-start"],["data-test-id","reviewSubmitStep4.termsReadsAndAccepted","formControlName","termsReadsAndAccepted","inputId","termsReadsAndAccepted","type","checkbox","name","termsReadsAndAccepted",1,"mr-2",3,"required","binary"],["data-test-id","reviewSubmitStep4.termsReadsAndAcceptedLabel","for","termsReadsAndAccepted","aria-label","Terms and conditions"],[3,"innerHtml"],["data-test-id","reviewSubmitStep4.termsReadsAndRequiredError"],["styleClass","w-full","id","projectType","inputId","projectTypeControl","name","ProjectType","optionValue","value","optionLabel","label","formControlName","projectType",3,"disabled","editable","options"],["data-test-id","reviewSubmitStep4.einGroupWithLabel","labelFor","ein","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","reviewSubmitStep4.einInputField","type","text","formControlName","ein","name","ein","id","ein","pInputText","","placeHolderCharacter","_",1,"w-full",3,"disabled","value","required","mask","showMaskTyped"],["data-test-id","reviewSubmitStep4.shippingCountryDropdown","id","shipingAddressCountry","styleModifier","no-box-shadow-on-focus mt-4",3,"label","disabled","countryGroup","countryControl","clearable","required","isAnonymous"],["data-test-id","reviewSubmitStep4.shippingAddressLine1GroupWithLabel","styleModifier","mt-4","labelFor","shippingAddressLine1",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.shippingAddressLine1Field","type","text","pInputText","","formControlName","shippingAddressLine1","name","shippingAddressLine1","id","shippingAddressLine1","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.shippingAddressLine2GroupWithLabel","styleModifier","mt-4","labelFor","shippingAddressLine2",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.shippingAddressLine2Field","type","text","formControlName","shippingAddressLine2","pInputText","","name","shippingAddressLine2","id","shippingAddressLine2","value","",1,"w-full",3,"disabled","required"],["data-test-id","reviewSubmitStep4.shippingCityGroupWithLabel","styleModifier","mt-4","labelFor","shippingCity",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.shippingCityField","type","text","pInputText","","formControlName","shippingCity","name","shippingCity","id","shippingCity","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.shippingStateDropdown","i
8d","shippingState","styleModifier","mt-4",3,"stateGroup","stateControl","clearable","required","disabled","isAnonymous"],["data-test-id","reviewSubmitStep4.shippingPostCodeGroupWithLabel","styleModifier","mt-4","labelFor","shippingPostCode",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.shippingPostCodeField","type","text","pInputText","","formControlName","shippingPostCode","name","shippingPostCode","id","shippingPostCode","value","",1,"w-full",3,"disabled"],["data-test-id","reviewSubmitStep4.shippingEmailGroupWithLabel","styleModifier","mt-4","labelFor","shippingEmail",3,"required","label","displaySuffix"],["data-test-id","reviewSubmitStep4.shippingEmailField","type","email","formControlName","shippingEmail","name","shippingEmail","pInputText","","id","shippingEmail","value","",1,"w-full",3,"disabled","required"],["data-test-id","reviewSubmitStep4.shippingPhoneNumberField","ngDefaultControl","","styleModifier","w-full pointer-events-none",3,"label","formGroup","phoneControl","required"],[1,"flex"]],template:function(t,o){t&1&&v(0,Zi,78,122,"ng-container",1),t&2&&m("translocoRead","CASH_CUSTOMER")},dependencies:[se,oe,Wt,re,ae,Pe,le,pe,x,st,lt,Ie,oi,ri,j,it,ue,nt,Q,Se,ot,de],encapsulation:2})}}return n})();function en(n,A){if(n&1){let e=L();r(0,"div")(1,"div"),d(2),a(),r(3,"h4"),d(4),a(),r(5,"ul",1)(6,"li"),d(7),a(),r(8,"li"),d(9),a(),r(10,"li"),d(11),a(),r(12,"li"),d(13),a(),r(14,"li"),d(15),a()(),r(16,"div",2)(17,"p-button",3),f("click",function(){let o=y(e).$implicit,u=S();return N(u.goToDocumentsForCredit(o("URL")))}),a()()()}if(n&2){let e=A.$implicit;i(2),c(e("DESCRIPTION")),i(2),c(e("APPLY_DESCRIPTION")),i(3),c(e("OPTION_1")),i(2),c(e("OPTION_2")),i(2),c(e("OPTION_3")),i(2),c(e("OPTION_4")),i(2),c(e("OPTION_5")),i(2),J("label",e("BUTTON"))}}var Ci=(()=>{class n{goToDocumentsForCredit(e){window.open(e,"_blank")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-documents-for-credit-modal"]],standalone:!1,decls:1,vars:1,consts:[[4,"transloco","translocoRead"],[1,"px-4","pb-5","mt-1","list-disc"],[1,"flex","justify-content-end"],["type","button","icon","pi pi-external-link","iconPos","right",3,"click","label"]],template:function(t,o){t&1&&v(0,en,18,8,"div",0),t&2&&m("translocoRead","CASH_CUSTOMER.DOCUMENTS_FOR_CREDIT")},dependencies:[x,j],encapsulation:2})}}return n})();function tn(n,A){if(n&1&&(r(0,"div")(1,"div"),d(2),a(),r(3,"ul",1)(4,"li"),d(5),a(),r(6,"li"),d(7),a()()()),n&2){let e=A.$implicit;i(2),c(e("DESCRIPTION")),i(3),c(e("OPTION_1")),i(2),c(e("OPTION_2"))}}var gi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-ein-benefits-modal"]],standalone:!1,decls:1,vars:1,consts:[[4,"transloco","translocoRead"],[1,"px-4","mt-1","list-disc"]],template:function(t,o){t&1&&v(0,tn,8,3,"div",0),t&2&&m("translocoRead","CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EIN_BENEFITS_MODAL")},dependencies:[x],encapsulation:2})}}return n})();function nn(n,A){if(n&1&&(r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),d(4),a(),r(5,"div"),d(6),a()(),r(7,"div",3)(8,"div",4),d(9),a(),r(10,"div"),d(11),a()(),r(12,"div",3)(13,"div",4),d(14),a(),r(15,"div"),d(16),a()(),r(17,"div",3)(18,"div",4),d(19),a(),r(20,"div"),d(21),a()()(),r(22,"div",2)(23,"div",3)(24,"div",4),d(25),a(),r(26,"div"),d(27),a()(),r(28,"div",3)(29,"div",4),d(30),a(),r(31,"div"),d(32),a()(),r(33,"div",3)(34,"div",4),d(35),a(),r(36,"div"),d(37),a()(),r(38,"div",3)(39,"div",4),d(40),a(),r(41,"div"),d(42),a()()()()),n&2){let e=A.$implicit;i(4),c(e("GC")),i(2),c(e("GC_TEXT")),i(3),c(e("PAINTER")),i(2),c(e("PAINTER_TEXT")),i(3),c(e("SNPC")),i(2),c(e("SNPC_TEXT")),i(3),c(e("PM")),i(2),c(e("PM_TEXT")),i(4),c(e("ARCHITECT")),i(2),c(e("ARCHITECT_TEXT")),i(3),c(e("SPECIFIER")),i(2),c(e("SPECIFIER_TEXT")),i(3),c(e("DESIGNER")),i(2),c(e("DESIGNER_TEXT")),i(3),c(e("OTHER")),i(2),c(e("OTHER_TEXT"))}}var hi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-job-descriptions-modal"]],standalone:!1,decls:1,vars:1,consts:[["class","grid gap-2 md:gap-0 mt-0",4,"transloco","translocoRead"],[1,"grid","gap-2","md:gap-0","mt-0"],[1,"col-12","md:col","flex","flex-column","gap-3","pt-0"],[1,"line-height-normal"],[1,"mb-1"]],template:function(t,o){t&1&&v(0,nn,43,16,"div",0),t&2&&m("translocoRead","CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.TOOLTIP.JOB_DESCRIPTIONS")},dependencies:[x],encapsulation:2,changeDetection:0})}}return n})();function on(n,A){if(n&1&&(r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),d(4),a(),r(5,"div"),d(6),a()(),r(7,"div",3)(8,"div",4),d(9),a(),r(10,"div"),d(11),a()(),r(12,"div",3)(13,"div",4),d(14),a(),r(15,"div"),d(16),a()(),r(17,"div",3)(18,"div",4),d(19),a(),r(20,"div"),d(21),a()(),r(22,"div",3)(23,"div",4),d(24),a(),r(25,"div"),d(26),a()(),r(27,"div",3)(28,"div",4),d(29),a(),r(30,"div"),d(31),a()(),r(32,"div",3)(33,"div",4),d(34),a(),r(35,"div"),d(36),a()()(),r(37,"div",5)(38,"div",3)(39,"div",4),d(40),a(),r(41,"div"),d(42),a()(),r(43,"div",3)(44,"div",4),d(45),a(),r(46,"div"),d(47),a()(),r(48,"div",3)(49,"div",4),d(50),a(),r(51,"div"),d(52),a()(),r(53,"div",3)(54,"div",4),d(55),a(),r(56,"div"),d(57),a()(),r(58,"div",3)(59,"div",4),d(60),a(),r(61,"div"),d(62),a()(),r(63,"div",3)(64,"div",4),d(65),a(),r(66,"div"),d(67),a()()()()),n&2){let e=A.$implicit;i(4),c(e("AEL")),i(2),c(e("AEL_TEXT")),i(3),c(e("EF")),i(2),c(e("EF_TEXT")),i(3),c(e("GF")),i(2),c(e("GF_TEXT")),i(3),c(e("HSLF")),i(2),c(e("HSLF_TEXT")),i(3),c(e("HF")),i(2),c(e("HF_TEXT")),i(3),c(e("MFR")),i(2),c(e("MFR_TEXT")),i(3),c(e("SFR")),i(2),c(e("SFR_TEXT")),i(4),c(e("IPF")),i(2),c(e("IPF_TEXT")),i(3),c(e("RSO")),i(2),c(e("RSO_TEXT")),i(3),c(e("MIS")),i(2),c(e("MIS_TEXT")),i(3),c(e("CI")),i(2),c(e("CI_TEXT")),i(3),c(e("MS")),i(2),c(e("MS_TEXT")),i(3),c(e("OTHER")),i(2),c(e("OTHER_TEXT"))}}var Ei=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-project-description-modal"]],standalone:!1,decls:1,vars:1,consts:[["class","grid gap-2 md:gap-0 mt-0",4,"transloco","translocoRead"],[1,"grid","gap-2","md:gap-0","mt-0"],[1,"col-12","md:col","flex","flex-column","gap-3","pt-0"],[1,"line-height-normal"],[1,"mb-1"],[1,"col-12","md:col","column-container"]],template:function(t,o){t&1&&v(0,on,68,26,"div",0),t&2&&m("translocoRead","CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.TOOLTIP.PROJECT_DESCRIPTIONS")},dependencies:[x],encapsulation:2,changeDetection:0})}}return n})();function yi(n,A,e,t,o){let u=e||0,O=t||u,Y=`${n.slice(0,u)}${A}${n.slice(O)}`,he=o||Y.length;return Y.slice(0,he)}function Ni(n,A,e){let t=Number(n);return!isNaN(t)&&Number.isInteger(t)&&(!e||t>=e)&&(!A||t<=A)}var Ai=(()=>{class n extends Je{constructor(){super(...arguments),this.document=Qe`
9    query ($request: StoresByAddressRequestInput!) {
10      storeByAddress(request: $request) {
11        key
12        email
13        sapId
14        distance
15        phoneNumber
16        countryCode
17        isDefaultStore
18      }
19    }
20  `}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=je(n)))(o||n)}})()}static{this.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ti=(()=>
20{class n{constructor(e){this.storesByAddressQuery=e}getStoresByAddress(e){return this.storesByAddressQuery.fetch({variables:{request:{address:e,page:0,pageSize:1}},context:{clientName:"anonymous"}}).pipe(U(t=>t.data))}static{this.\u0275fac=function(t){return new(t||n)(He(Ai))}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var te=n=>({"ng-invalid ng-dirty":n}),an=n=>({"pt-3":n}),fi=n=>[n],_i=n=>({flex:n});function sn(n,A){if(n&1){let e=L();r(0,"div",41)(1,"ppg-input-group",45)(2,"p-select",46),f("onChange",function(o){y(e);let u=S(3);return u.segmentSelectionForm.get(u.BUSINESS_SEGMENT_OPTION_NAME.WhatYouPainting).setValue(o==null?null:o.value),N(u.refreshSegmentOptions(u.BUSINESS_SEGMENT_OPTION_NAME.WhatYouPainting))}),a()(),r(3,"p-button",47),f("onClick",function(o){y(e);let u=S(3);return o.preventDefault(),N(u.openProjectDescriptionsModal())}),d(4),a()()}if(n&2){let e=S(2).$implicit,t=S();i(),m("label",e("COMPANY_DETAILS_SECTION.WHAT_YOU_PAINTING.LABEL"))("required",!0)("displaySuffix",!0),i(),m("editable",!1)("showClear",!1)("options",t.segmentOptions.whatYouPainting)("ppgValidator",t.segmentSelectionFormWrapper.getFormControlBy("whatYouPainting"))("fieldType",t.ERROR_FIELD_TYPE.Select)("showClear",!1),z("data-test-id",t.BUSINESS_SEGMENT_OPTION_NAME.WhatYouPainting),i(),m("link",!0)("ngClass",R(13,_i,t.segmentSelectionFormWrapper.isControlInvalid("whatYouPainting"))),i(),T(" ",e("TOOLTIP.PROJECT_DESCRIPTIONS.TITLE")," ")}}function ln(n,A){if(n&1){let e=L();r(0,"div",41)(1,"ppg-input-group",48)(2,"p-select",49),f("onChange",function(o){y(e);let u=S(3);return u.segmentSelectionForm.get(u.BUSINESS_SEGMENT_OPTION_NAME.ProjectType).setValue(o==null?null:o.value),N(u.refreshSegmentOptions(u.BUSINESS_SEGMENT_OPTION_NAME.ProjectType))}),a()(),r(3,"p",50),d(4," Final Segment: "),r(5,"span",51),d(6),a()()()}if(n&2){let e=S(2).$implicit,t=S();i(),m("label",e("COMPANY_DETAILS_SECTION.PROJECT_TYPE.LABEL"))("required",!0)("displaySuffix",!0),i(),m("editable",!1)("showClear",!1)("options",t.segmentOptions.projectType)("ppgValidator",t.segmentSelectionFormWrapper.getFormControlBy("projectType"))("fieldType",t.ERROR_FIELD_TYPE.Select)("showClear",!1),z("data-test-id",t.BUSINESS_SEGMENT_OPTION_NAME.ProjectType),i(4),c(t.finalSegment||"")}}function pn(n,A){if(n&1){let e=L();r(0,"form",8)(1,"div",41)(2,"ppg-input-group",42)(3,"p-select",43),f("onChange",function(o){y(e);let u=S(2);return u.segmentSelectionForm.get(u.BUSINESS_SEGMENT_OPTION_NAME.WhoAreYou).setValue(o==null?null:o.value),N(u.refreshSegmentOptions(u.BUSINESS_SEGMENT_OPTION_NAME.WhoAreYou))}),a()(),r(4,"p-button",44),f("onClick",function(o){y(e);let u=S(2);return o.preventDefault(),N(u.openJobDescriptionsModal())}),d(5),a()(),v(6,sn,5,15,"div",41)(7,ln,7,11,"div",41),a()}if(n&2){let e=S().$implicit,t=S();m("formGroup",t.segmentSelectionForm),i(2),m("label",e("COMPANY_DETAILS_SECTION.WHO_ARE_YOU.LABEL"))("required",!0)("displaySuffix",!0),i(),m("editable",!1)("showClear",!1)("options",t.segmentOptions.whoAreYou)("ppgValidator",t.segmentSelectionFormWrapper.getFormControlBy("whoAreYou"))("fieldType",t.ERROR_FIELD_TYPE.Select)("showClear",!1),z("data-test-id",t.BUSINESS_SEGMENT_OPTION_NAME.WhoAreYou),i(),m("link",!0)("ngClass",R(16,_i,t.segmentSelectionFormWrapper.isControlInvalid("whoAreYou"))),i(),T(" ",e("TOOLTIP.JOB_DESCRIPTIONS.TITLE")," "),i(),D(t.segmentOptions.whatYouPainting!=null&&t.segmentOptions.whatYouPainting.length?6:-1),i(),D(t.segmentOptions.projectType!=null&&t.segmentOptions.projectType.length?7:-1)}}function mn(n,A){if(n&1&&(r(0,"div",22)(1,"ppg-input-group",52),h(2,"input",53,0),a()()),n&2){let e=S().$implicit,t=S();i(),m("label",e("COMPANY_DETAILS_SECTION.EIN"))("required",!0)("displaySuffix",!0),i(),m("ppgValidator",t.companyDetailsFormWrapper.getFormControlBy("ein"))("fieldType",t.ERROR_FIELD_TYPE.EIN)("required",t.isEinFieldEnabled())("mask",t.MASKS.EIN)("showMaskTyped",!0)}}function dn(n,A){if(n&1){let e=L();r(0,"p-card",40)(1,"form",8),h(2,"ppg-country-dropdown",54),r(3,"ppg-input-group",55)(4,"input",56),f("blur",function(){y(e);let o=S(2);return N(o.shippingAddressFormWrapper.onControlBlur("shippingAddressLine1"))})("valueChange",function(o){y(e);let u=S(2);return N(u.shippingAddressFormWrapper.onControlChangeValue("shippingAddressLine1",o))}),a()(),r(5,"ppg-input-group",57),h(6,"input",58),a(),r(7,"ppg-input-group",59)(8,"input",60),f("blur",function(){y(e);let o=S(2);return N(o.shippingAddressFormWrapper.onControlBlur("shippingCity"))})("valueChange",function(o){y(e);let u=S(2);return N(u.shippingAddressFormWrapper.onControlChangeValue("shippingCity",o))}),a()(),h(9,"ppg-state-dropdown",61),r(10,"ppg-input-group",62)(11,"input",63),f("blur",function(){y(e);let o=S(2);return N(o.shippingAddressFormWrapper.onControlBlur("shippingPostCo
20de"))})("valueChange",function(o){y(e);let u=S(2);return N(u.shippingAddressFormWrapper.onControlChangeValue("shippingPostCode",o))}),a()(),r(12,"ppg-input-group",64)(13,"input",65),f("blur",function(){y(e);let o=S(2);return N(o.shippingAddressFormWrapper.onControlBlur("shippingEmail"))})("valueChange",function(o){y(e);let u=S(2);return N(u.shippingAddressFormWrapper.onControlChangeValue("shippingEmail",o))}),a()(),r(14,"div",11),h(15,"app-phone-number-input",66),a()()()}if(n&2){let e=S().$implicit,t=S();m("header",e("SHIPPING_ADDRESS_SECTION.TITLE")),i(),m("formGroup",t.shipingAddressForm),i(),m("label",e("SHIPPING_ADDRESS_SECTION.COUNTRY"))("disabled",!1)("countryGroup",t.shipingAddressForm)("countryControl","shippingCountry")("countryCodesFilter",R(55,fi,t.COUNTRY_CODE.US))("clearable",!1)("required",!0)("isAnonymous",!0),i(),m("label",e("SHIPPING_ADDRESS_SECTION.SHIPPING_ADDRESS_LINE_ONE"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(57,te,t.shippingAddressFormWrapper.isControlInvalid("shippingAddressLine1")))("required",!0)("maxLength",t.FieldRestrictions.LineMaxLength)("ppgValidator",t.shippingAddressFormWrapper.getFormControlBy("shippingAddressLine1"))("fieldType",t.ERROR_FIELD_TYPE.AddressLine),i(),m("label",e("SHIPPING_ADDRESS_SECTION.SHIPPING_ADDRESS_LINE_TWO"))("required",!1)("displaySuffix",!0),i(),m("required",!1)("maxLength",t.FieldRestrictions.LineMaxLength),i(),m("label",e("SHIPPING_ADDRESS_SECTION.CITY"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(59,te,t.shippingAddressFormWrapper.isControlInvalid("shippingCity")))("required",!0)("maxLength",t.FieldRestrictions.CityMaxLength)("ppgValidator",t.shippingAddressFormWrapper.getFormControlBy("shippingCity"))("fieldType",t.ERROR_FIELD_TYPE.City),i(),m("stateGroup",t.shipingAddressForm)("stateControl","shippingState")("clearable",!1)("required",!0)("isAnonymous",!0),i(),m("label",e("SHIPPING_ADDRESS_SECTION.POST_CODE"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(61,te,t.shippingAddressFormWrapper.isControlInvalid("shippingPostCode")))("required",!0)("maxLength",t.FieldRestrictions.PostCodeMaxLength)("ppgValidator",t.shippingAddressFormWrapper.getFormControlBy("shippingPostCode"))("fieldType",t.ERROR_FIELD_TYPE.PostCode),i(),m("label",e("SHIPPING_ADDRESS_SECTION.EMAIL"))("required",!1)("displaySuffix",!0),i(),m("required",!1)("maxLength",t.FieldRestrictions.EmailMaxLength)("ppgValidator",t.shippingAddressFormWrapper.getFormControlBy("shippingEmail"))("fieldType",t.ERROR_FIELD_TYPE.Email),i(2),m("label",e("SHIPPING_ADDRESS_SECTION.PHONE_NUMBER"))("formGroup",t.shipingAddressForm)("phoneControl","shippingPhoneNumber")("required",!1)}}function un(n,A){if(n&1){let e=L();fe(0),r(1,"div",2)(2,"h1",3),d(3),a(),r(4,"div",4)(5,"div"),d(6),a(),r(7,"div",5)(8,"span",6),d(9,"*"),a(),d(10),b(11,"transloco"),a()(),r(12,"p-card",7)(13,"form",8)(14,"ppg-input-group",9)(15,"input",10),f("blur",function(){y(e);let o=S();return N(o.companyDetailsFormWrapper.onControlBlur("companyName"))})("valueChange",function(o){y(e);let u=S();return N(u.companyDetailsFormWrapper.onControlChangeValue("companyName",o))}),a()(),r(16,"div",11),h(17,"app-phone-number-input",12),a(),r(18,"ppg-input-group",13)(19,"input",14),f("blur",function(){y(e);let o=S();return N(o.companyDetailsFormWrapper.onControlBlur("companyEmail"))})("valueChange",function(o){y(e);let u=S();return N(u.companyDetailsFormWrapper.onControlChangeValue("companyEmail",o))}),a()(),r(20,"ppg-input-group",15)(21,"input",16),f("beforeinput",function(o){y(e);let u=S();return N(u.onPaintersInput(o))})("blur",function(){y(e);let o=S();return N(o.companyDetailsFormWrapper.onControlBlur("numberOfPainters"))})("valueChange",function(o){y(e);let u=S();return N(u.companyDetailsFormWrapper.onControlChangeValue("numberOfPainters",o))}),a()(),v(22,pn,8,18,"form",8),r(23,"ppg-input-group",17)(24,"p-select",18),f("onChange",function(o){y(e);let u=S();return u.companyDetailsFormWrapper.onControlChangeValue("einSelectedOption",o==null?null:o.value),N(u.companyDetailsForm.get("einSelectedOption").setValue(o==null?null:o.value))})("blur",function(){y(e);let o=S();return N(o.companyDetailsFormWrapper.onControlBlur("einSelectedOption"))}),a()(),r(25,"div",19)(26,"p",20),d(27),a(),r(28,"p-button",21),f("onClick",function(){y(e);let o=S();return N(o.openEINBenefitsModal())}),d(29),a()(),v(30,mn,4,8,"div",22),r(31,"div",23),h(32,"p-checkbox",24),r(33,"label",25),d(34),r(35,"p-button",26),f("onClick",function(o){y(e);let u=S();return o.preventDefault(),N(u.openDocumentsForCreditModal())}),d(36),a()()()()(),r(37,"p-card",27)(38,"form",8),h(39,"ppg-country-dropdown",28),r(40,"ppg-input-group",29)(41,"input",30),f("blur",function(){y(e);let o=S();return N(o.companyAddressFormWrapper.onControlBlur("companyAddressLine1"))})("valueChange",function(o){y(e);let u=S();return N(u.companyAddressFormWrapper.onControlChangeValue("companyAddressLine1",o))}),a()(),r(42,"ppg-input-group",31),h(43,"input",32),a(),r(44,"ppg-input-group",33)(45,"input",34),f("blur",function(){y(e);let o=S();return N(o.companyAddressFormWrapper.onControlBlur("companyCity"))})("valueChange",function(o){y(e);let u=S();return N(u.companyAddressFormWrapper.onControlChangeValue("companyCity",o))}),a()(),h(46,"ppg-state-dropdown",35),r(47,"ppg-input-group",36)(48,"input",37),f("blur",function(){y(e);let o=S();return N(o.companyAddressFormWrapper.onControlBlur("companyPostCode"))})("valueChange",function(o){y(e);let u=S();return N(u.companyAddressFormWrapper.onControlChangeValue("companyPostCode",o))}),a()(),h(49,"p-checkbox",38),r(50,"label",39),d(51),a()()(),v(52,dn,16,63,"p-card",40),a(),_e()}if(n&2){let e,t=A.$implicit,o=S();i(3),T(" ",t("SETUP_COMPANY_ACCOUNT_TITLE")," "),i(3),T(" ",t("SETUP_COMPANY_ACCOUNT_DESCRIPTION")," "),i(4),T(" ",F(11,95,"CASH_CUSTOMER.REQUIRED_FIELDS")," "),i(2),m("header",t("COMPANY_DETAILS_SECTION.TITLE")),i(),m("formGroup",o.companyDetailsForm),i(),m("label",t("COMPANY_DETAILS_SECTION.COMPANY_NAME"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(97,te,o.companyDetailsFormWrapper.isControlInvalid("companyName")))("maxLength",o.FieldRestrictions.CompanyNameMaxLength)("ppgValidator",o.companyDetailsFormWrapper.getFormControlBy("companyName"))("fieldType",o.ERROR_FIELD_TYPE.CompanyName),i(2),m("label",t("COMPANY_DETAILS_SECTION.PHONE_NUMBER"))("formGroup",o.companyDetailsForm)("phoneControl","companyPhone"),i(),m("label",t("COMPANY_DETAILS_SECTION.EMAIL"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(99,te,o.companyDetailsFormWrapper.isControlInvalid("companyEmail")))("maxLength",o.FieldRestrictions.EmailMaxLength)("ppgValidator",o.companyDetailsFormWrapper.getFormControlBy("companyEmail"))("fieldType",o.ERROR_FIELD_TYPE.Email),i(),m("label",t("COMPANY_DETAILS_SECTION.NUMBER_OF_PAINTERS"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(101,te,o.companyDetailsFormWrapper.isControlInvalid("numberOfPainters")))("maxLength",o.FieldRestrictions.NumberOfPaintersMaxLength)("ppgValidator",o.companyDetailsFormWrapper.getFormControlBy("numberOfPainters"))("fieldType",o.ERROR_FIELD_TYPE.NumberOfPainters),i(),D((e=o.companyDetailsFormWrapper.getFormControlBy("numberOfPainters"))!=null&&e.value?22:-1),i(),m("label",t("COMPANY_DETAILS_SECTION.DO_YOU_HAVE_EIN"))("required",!0)("displaySuffix",!0),i(),m("editable",!1)("showClear",!1)("options",o.EINOptions)("ppgValidator",o.companyDetailsFormWrapper.getFormControlBy("einSelectedOption"))("fieldType",o.ERROR_FIELD_TYPE.Select)("showClear",!1),i(),m("ngClass",R(103,an,o.companyDetailsFormWrapper.isControlInvalid("einSelectedOption"))),i(2),T(" ",t("COMPANY_DETAILS_SECTION.EIN_EXPLANATION")," "),i(),m("link",!0),i(),T(" ",t("COMPANY_DETAILS_SECTION.EIN_BENEFITS")," "),i(),D(o.c
20ompanyDetailsFormWrapper.getFormControlBy("einSelectedOption").value===o.EINAvailabilityValue.HaveAnEINAndWillProvideIt?30:-1),i(2),m("binary",!0),i(2),T(" ",t("COMPANY_DETAILS_SECTION.INTERESTED_IN_OPENING_A_LINE_OF_CREDIT")," "),i(),m("link",!0),i(),T(" ",t("COMPANY_DETAILS_SECTION.LEARN_MORE")," "),i(),m("header",t("COMPANY_ADDRESS_SECTION.TITLE")),i(),m("formGroup",o.companyAddressForm),i(),m("label",t("COMPANY_ADDRESS_SECTION.COUNTRY"))("disabled",!1)("countryGroup",o.companyAddressForm)("countryControl","companyCountry")("clearable",!1)("countryCodesFilter",R(105,fi,o.COUNTRY_CODE.US))("required",!0)("isAnonymous",!0),i(),m("label",t("COMPANY_ADDRESS_SECTION.ADDRESS_LINE_ONE"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(107,te,o.companyAddressFormWrapper.isControlInvalid("companyAddressLine1")))("required",!0)("maxLength",o.FieldRestrictions.LineMaxLength)("ppgValidator",o.companyAddressFormWrapper.getFormControlBy("companyAddressLine1"))("fieldType",o.ERROR_FIELD_TYPE.AddressLine),i(),m("label",t("COMPANY_ADDRESS_SECTION.ADDRESS_LINE_TWO"))("required",!1)("displaySuffix",!0),i(),m("required",!1)("maxLength",o.FieldRestrictions.LineMaxLength),i(),m("label",t("COMPANY_ADDRESS_SECTION.CITY"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(109,te,o.companyAddressFormWrapper.isControlInvalid("companyCity")))("required",!0)("maxLength",o.FieldRestrictions.CityMaxLength)("ppgValidator",o.companyAddressFormWrapper.getFormControlBy("companyCity"))("fieldType",o.ERROR_FIELD_TYPE.City),i(),m("stateGroup",o.companyAddressForm)("stateControl","companyState")("clearable",!1)("required",!0)("isAnonymous",!0),i(),m("label",t("COMPANY_ADDRESS_SECTION.POST_CODE"))("required",!0)("displaySuffix",!0),i(),m("ngClass",R(111,te,o.companyAddressFormWrapper.isControlInvalid("companyPostCode")))("required",!0)("maxLength",o.FieldRestrictions.PostCodeMaxLength)("ppgValidator",o.companyAddressFormWrapper.getFormControlBy("companyPostCode"))("fieldType",o.ERROR_FIELD_TYPE.PostCode),i(),m("binary",!0),i(2),c(t("COMPANY_ADDRESS_SECTION.SHIP_TO_DIFFERENT_ADDRESS")),i(),D(o.c
20ompanyAddressFormWrapper.getFormControlBy("shipMyOrdersToDifferentAddress").value?52:-1)}}var Pi=(()=>{class n{unloadNotification(e){e.returnValue=!0}#e;#t;#n;#a;#o;#i;#r;constructor(){this.#e=E(Ti),this.#t=E(me),this.#n=E(W),this.#a=E(ve),this.#o=E(tt),this.#i=E(Be),this.#r=E(Ce),this.businessSegmentService=E(Re),this.ERROR_FIELD_TYPE=Fe,this.BUSINESS_SEGMENT_OPTION_NAME=P,this.COUNTRY_CODE=kt,this.EINAvailabilityValue=$,this.MASKS=at,this.EIN_VALIDATORS=[C.required,C.minLength(9),C.maxLength(9)],this.EINOptions=[],this.segmentOptions={whoAreYou:[],whatYouPainting:[],projectType:[]};let e=this.#n.state.createCashCustomerModel||{};this.companyDetailsForm=this.#t.group({companyName:new g(e.companyName||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.CompanyNameMinLength),C.maxLength(_.CompanyNameMaxLength)],nonNullable:!0,updateOn:"blur"}),companyPhone:new g(e.companyPhone||e.phoneNumber||"",{nonNullable:!0,updateOn:"blur"}),companyEmail:new g(e.companyEmail||e.email||"",{validators:[C.required,w.email(),w.forbidUsingPPGEmail(),C.minLength(_.EmailMinLength),C.maxLength(_.EmailMaxLength)],nonNullable:!0,updateOn:"blur"}),numberOfPainters:new g(e.numberOfPainters||null,{validators:[C.required,w.onlyNumbers(),C.min(_.NumberOfPaintersMinValue),C.max(_.NumberOfPaintersMaxValue),C.minLength(_.NumberOfPaintersMinLength),C.maxLength(_.NumberOfPaintersMaxLength)],nonNullable:!0}),einSelectedOption:new g(e.einSelectedOption||null,{validators:[C.required],nonNullable:!0,updateOn:"blur"}),ein:new g(e.ein||"",{validators:e.ein?[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.EinMinLength),C.maxLength(_.EinMaxLength)]:[],nonNullable:!0,updateOn:"blur"}),isInterestedInApplicationForCredit:new g(e.isInterestedInApplicationForCredit||!1,{})}),this.segmentSelectionForm=this.#t.group({[P.WhoAreYou]:new g("",{validators:[C.required],nonNullable:!0,updateOn:"blur"}),[P.WhatYouPainting]:new g("",{validators:[C.required],nonNullable:!0,updateOn:"blur"}),[P.ProjectType]:new g("",{validators:[o=>!o.value&&this.segmentOptions?.projectType?.length>0?{required:!0}:null]})}),this.companyAddressForm=this.#t.group({companyCountry:new g(e.companyCountry||"US",{validators:[C.required],updateOn:"change"}),companyState:new g(e.companyState||"",{validators:[C.required,w.notOnlyWhiteSpaces()],updateOn:"change"}),companyCity:new g(e.companyCity||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.CityMinLength),C.maxLength(_.CityMaxLength)],updateOn:"blur"}),companyPostCode:new g(e.companyPostCode||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.PostCodeMinLength),C.maxLength(_.PostCodeMaxLength)],updateOn:"blur"}),companyAddressLine1:new g(e.companyAddressLine1||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.LineMinLength),C.maxLength(_.LineMaxLength)],updateOn:"blur"}),companyAddressLine2:new g(e.companyAddressLine2||"",{validators:[C.maxLength(_.LineMaxLength)],updateOn:"blur"}),shipMyOrdersToDifferentAddress:new g(e.shipMyOrdersToDifferentAddress||!1,{})}),this.shipingAddressForm=this.#t.group({shippingCountry:new g(e.shippingCountry||"US",{validators:[C.required],updateOn:"change"}),shippingState:new g(e.shippingState||"",{validators:[C.required,w.notOnlyWhiteSpaces()],updateOn:"change"}),shippingCity:new g(e.shippingCity||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.CityMinLength),C.maxLength(_.CityMaxLength)],updateOn:"blur"}),shippingPostCode:new g(e.shippingPostCode||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.PostCodeMinLength),C.maxLength(_.PostCodeMaxLength)],updateOn:"blur"}),shippingAddressLine1:new g(e.shippingAddressLine1||"",{validators:[C.required,w.notOnlyWhiteSpaces(),C.minLength(_.LineMinLength),C.maxLength(_.LineMaxLength)],updateOn:"blur"}),shippingAddressLine2:new g(e.shippingAddressLine2||"",{validators:[C.maxLength(_.LineMaxLength)],updateOn:"blur"}),shippingEmail:new g(e.shippingEmail||"",{validators:[w.email(),w.forbidUsingPPGEmail(),C.minLength(_.EmailMinLength),C.maxLength(_.EmailMaxLength)],updateOn:"blur"}),shippingPhoneNumber:new g(e.shippingPhoneNumber||"",{updateOn:"blur"})});let t=E(Ze).minDigitLengthValidator;Ke(()=>{let o=t();this.companyDetailsForm.controls.companyPhone.setValidators([C.required,Le.customPhone(),o]),this.shipingAddressForm.controls.shippingPhoneNumber.setValidators([Le.customPhone(),o])}),this.companyDetailsFormWrapper=new ce(this.companyDetailsForm),this.segmentSelectionFormWrapper=new ce(this.segmentSelectionForm),this.companyAddressFormWrapper=new ce(this.companyAddressForm),this.shippingAddressFormWrapper=new ce(this.shipingAddressForm)}ngOnInit(){this.#a.langChanges$.pipe(ye(()=>this.#a.selectTranslate("")),ee(this.#i)).subscribe(()=>{this.updateEINOptions(),this.updateSegmentOptions()}),this.companyDetailsFormWrapper.getFormControlBy("einSelectedOption").valueChanges.pipe(ee(this.#i)).subscribe(o=>{if(o===this.EINAvailabilityValue.HaveAnEINAndWillProvideIt){this.companyDetailsForm.controls.ein.setValidators(this.EIN_VALIDATORS),this.companyDetailsForm.controls.ein.updateV
20alueAndValidity();return}this.companyDetailsForm.controls.ein.removeValidators(this.EIN_VALIDATORS),this.companyDetailsForm.controls.ein.setValue("")}),this.companyDetailsFormWrapper.getFormControlBy("numberOfPainters").valueChanges.pipe(ft(),Tt(500),ee(this.#i)).subscribe(()=>{this.refreshSegmentOptions()}),this.companyAddressFormWrapper.getFormControlBy("companyPostCode").setValidators([C.required,w.notOnlyWhiteSpaces(),w.postcodeForCountry(this.companyAddressFormWrapper.getFormControlBy("companyCountry"))]),this.companyAddressFormWrapper.getFormControlBy("companyCountry").valueChanges.pipe(ee(this.#i)).subscribe(()=>{this.companyAddressFormWrapper.getFormControlBy("companyPostCode").updateValueAndValidity()}),this.shippingAddressFormWrapper.getFormControlBy("shippingPostCode").setValidators([C.required,w.notOnlyWhiteSpaces(),w.postcodeForCountry(this.shippingAddressFormWrapper.getFormControlBy("shippingCountry"))]),this.shippingAddressFormWrapper.getFormControlBy("shippingCountry").valueChanges.pipe(ee(this.#i)).subscribe(()=>{this.shippingAddressFormWrapper.getFormControlBy("shippingPostCode").updateValueAndValidity()});let{numberOfPainters:e,companySegment:t}=this.#n.state?.createCashCustomerModel??{};this.businessSegmentService.segmentsLoaded$.pipe(Te(o=>o),G(1)).subscribe(()=>t?this.initSegmentOptionsFor(t,e):this.refreshSegmentOptions())}get FieldRestrictions(){return _}refreshSegmentOptions(e){if(!this.businessSegmentService.mergedSegments?.length||(this.updateSegmentState(e),e===P.ProjectType))return;let t=this.businessSegmentService.getSegmentOptionsFor(this.companyDetailsForm.controls.numberOfPainters.value,e,this.segmentSelectionForm.controls.whoAreYou.value,this.segmentSelectionForm.controls.whatYouPainting.value,this.segmentSelectionForm.controls.projectType.value);if(e===P.WhatYouPainting&&t?.length<2){this.updateSegmentState(P.ProjectType),this.segmentOptions.projectType=[];return}let o=this.businessSegmentService.getNextOptionType(e)||P.WhoAreYou;this.segmentOptions=Ee(ie(ie({},this.segmentOptions),this.businessSegmentService.getResetSubOptions(o)),{[o]:this.mapValuesToTranslatedSelectOptions(o,t||[])})}updateSegmentState(e){if(e===P.ProjectType){if(this.finalSegment=this.businessSegmentService.getSegmentsFor(this.companyDetailsForm.controls.numberOfPainters.value,this.segmentSelectionForm.controls.whoAreYou.value,this.segmentSelectionForm.controls.whatYouPainting.value,this.segmentSelectionForm.controls.projectType.value)?.[0]?.FullSegment,!this.finalSegment)throw new Error("Final segment was not defined ");return}this.finalSegment="",this.segmentSelectionForm.controls.projectType.reset("",{onlySelf:!0,emitEvent:!1}),(e===P.WhoAreYou||!e)&&this.segmentSelectionForm.controls.whatYouPainting.reset("",{onlySelf:!0,emitEvent:!1}),e||this.segmentSelectionForm.controls.whoAreYou.reset("",{onlySelf:!0,emitEvent:!1})}updateEINOptions(){let e="CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EIN_DROPDOWN_OPTIONS";this.EINOptions=[{label:V(`${e}.HAVE`),value:$.HaveAnEINAndWillProvideIt},{label:V(`${e}.NOT_TO_PROVIDE`),value:$.PreferNotToProvideEIN},{label:V(`${e}.DONT_HAVE`),value:$.DoNotHaveAnEIN}]}openEINBenefitsModal(){this.#o.open(gi,{header:V("CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.EIN_BENEFITS_MODAL.TITLE"),width:Ne.Medium,dismissableMask:!0,closable:!0})}openJobDescriptionsModal(){this.#o.open(hi,{header:V("CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.TOOLTIP.JOB_DESCRIPTIONS.MODAL_TITLE"),width:Ne.Large,dismissableMask:!0,closable:!0})}openProjectDescriptionsModal(){this.#o.open(Ei,{header:V("CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.TOOLTIP.PROJECT_DESCRIPTIONS.MODAL_TITLE"),width:Ne.Large,dismissableMask:!0,closable:!0})}openDocumentsForCreditModal(){this.#o.open(Ci,{header:V("CASH_CUSTOMER.DOCUMENTS_FOR_CREDIT.TITLE"),width:Ne.Medium,dismissableMask:!0,closable:!0})}onPaintersInput(e){if(e.data===null)return;let t=yi(e.target.value,e.data,e.target.selectionStart,e.target.selectionEnd,_.NumberOfPaintersMaxLength);Ni(t,_.NumberOfPaintersMaxValue,_.NumberOfPaintersMinValue)||e.preventDefault()}isEinFieldEnabled(){return this.companyDetailsFormWrapper.getFormControlBy("einSelectedOption").value?.value===this.EINAvailabilityValue.HaveAnEINAndWillProvideIt.toString()}initSegmentOptionsFor(e,t){let o=this.businessSegmentService.getSegmentDetails(e);if(!o)return;let u=this.businessSegmentService.getAllSegmentOptionsFor(t,o.whoAreYou,o.whatYouPainting);this.segmentOptions={whoAreYou:this.mapValuesToTranslatedSelectOptions(P.WhoAreYou,u.whoAreYou),whatYouPainting:this.mapValuesToTranslatedSelectOptions(P.WhatYouPainting,u.whatYouPainting),projectType:this.mapValuesToTranslatedSelectOptions(P.ProjectType,u.projectType)},this.segmentSelectionForm.controls.whoAreYou.setValue(o.whoAreYou),this.segmentSelectionForm.controls.whatYouPainting.setValue(o.whatYouPainting),this.segmentSelectionForm.controls.projectType.setValue(o.projectType),this.finalSegment=e}constructDeliveryAddress(e){let t=this.shipingAddressForm.value,o=this.companyAddressForm.value;return e===!0?`${t.shippingState} ${t.shippingAddressLine1} ${t.shippingAddressLine2} ${t.shippingCity}
20 ${t.shippingPostCode}`:`${o.companyState} ${o.companyAddressLine1} ${o.companyAddressLine2} ${o.companyCity} ${o.companyPostCode}`}moveNextAllowed(){Z(this.companyDetailsForm,!0,!0),Z(this.segmentSelectionForm,!0,!0),Z(this.companyAddressForm,!0,!0);let e=this.companyAddressForm.get("shipMyOrdersToDifferentAddress").value;return e&&Z(this.shipingAddressForm,!0,!0),!this.companyDetailsForm.valid||!this.segmentSelectionForm.valid||!this.companyAddressForm.valid||e&&!this.shipingAddressForm.valid?Ve(!1):(this.updateRegistrationState(),this.#e.getStoresByAddress(this.constructDeliveryAddress(this.companyAddressForm.get("shipMyOrdersToDifferentAddress").value)).pipe(U(t=>t.storeByAddress?(this.homeStoreData={homeStoreNumber:t.storeByAddress.sapId,homeStoreKey:t.storeByAddress.key,salesRepEmail:t.storeByAddress.email,homeStoreDistance:t.storeByAddress.distance,homeStorePhoneNumber:t.storeByAddress.phoneNumber,homeStoreCountryCode:t.storeByAddress.countryCode,isDefaultStore:t.storeByAddress.isDefaultStore},this.#r.sendRegistrationCompanyInfoGAEvent(),!0):!1),We(()=>this.updateRegistrationState())))}mapValuesToTranslatedSelectOptions(e,t){return t?.length?t.filter(o=>o).map(o=>({label:this.translateSegmentOptionLabel(e,o),value:o})):[]}updateSegmentOptions(){Object.keys(this.segmentOptions).forEach(t=>{this.segmentOptions[t]=this.segmentOptions[t].map(o=>Ee(ie({},o),{label:this.translateSegmentOptionLabel(t,o.value)}))})}translateSegmentOptionLabel(e,t){let u=`CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.COMPANY_DETAILS_SECTION.${mt(e)}.OPTIONS`;return V(`${u}.${t}`)}updateRegistrationState(){this.companyDetailsForm.controls.einSelectedOption.setValue(this.companyDetailsForm.controls.einSelectedOption?.value);let e=Object.assign(this.#n.state?.createCashCustomerModel||{},this.companyDetailsForm.value,this.companyAddressForm.value,this.shipingAddressForm.value,this.homeStoreData,{companySegment:this.finalSegment});this.#n.setState({createCashCustomerModel:e})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-setup-company-account-step"]],hostBindings:function(t,o){t&1&&f("beforeunload",function(O){return o.unloadNotification(O)},!1,ne)},standalone:!1,decls:1,vars:1,consts:[["textField",""],[4,"transloco","translocoRead"],[1,"flex","justify-content-center","flex-column","gap-4"],["data-test-id","setupCompanyAccountStep3.setupCompanyAccountTitle",1,"pb-0","mb-0","pt-2"],["data-test-id","setupCompanyAccountStep3.setupCompanyAccountDescription",1,"line-height-normal"],[1,"pt-5","pb-0"],[1,"required"],["styleClass","ppg-form-card","data-test-id","setupCompanyAccountStep3.companyDetailsCardWithTitle",3,"header"],[3,"formGroup"],["data-test-id","setupCompanyAccountStep3.companyNameGroupWithLabel","labelFor","companyName",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.companyNameField","type","text","pInputText","","formControlName","companyName","name","companyName","id","companyName","value","","required","true",1,"w-full",3,"blur","valueChange","ngClass","maxLength","ppgValidator","fieldType"],[1,"mt-4"],["data-test-id","setupCompanyAccountStep3.companyPhoneField","ngDefaultControl","","styleModifier","w-full",3,"label","formGroup","phoneControl"],["data-test-id","setupCompanyAccountStep3.companyEmailGroupWithLabel","labelFor","companyEmail","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.companyEmailField","type","email","formControlName","companyEmail","name","companyEmail","id","companyEmail","pInputText","","value","","required","true",1,"w-full",3,"blur","valueChange","ngClass","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.numberOfPaintersGroupWithLabel","labelFor","numberOfPainters","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.numberOfPaintersField","formControlName","numberOfPainters","name","numberOfPainters","id","numberOfPainters","pInputText","","value","","required","true",1,"w-full",3,"beforeinput","blur","valueChange","ngClass","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.doYouHaveEinGroupWithLabel","labelFor","einControl","styleModifier","mt-4",3,"label","required","displaySuffix"],["styleClass","w-full","data-test-id","setupCompanyAccountStep3.einSelectedOption","id","ein","inputId","einControl","name","ein","optionValue","value","o
20ptionLabel","label","formControlName","einSelectedOption",3,"onChange","blur","editable","showClear","options","ppgValidator","fieldType"],[1,"font-size-s-2",3,"ngClass"],["data-test-id","setupCompanyAccountStep3.einExplanation",1,"m-0","font-size-s-2"],["data-test-id","setupCompanyAccountStep3.einBenefitsLink","styleClass","font-size-s-2 p-0",3,"onClick","link"],[1,"mt-3"],[1,"flex","flex-row","pt-4","align-items-start"],["data-test-id","setupCompanyAccountStep3.isInterestedInApplicationForCreditCheckbox","formControlName","isInterestedInApplicationForCredit","inputId","setupIsInterestedInApplicationForCredit","name","isInterestedInApplicationForCredit",3,"binary"],["for","setupIsInterestedInApplicationForCredit","data-test-id","setupCompanyAccountStep3.isInterestedInApplicationForCreditText",1,"pl-2"],["data-test-id","setupCompanyAccountStep3.isInterestedInApplicationForCreditLink","styleClass","p-0",3,"onClick","link"],["styleClass","ppg-form-card","data-test-id","setupCompanyAccountStep3.companyAddressCardWithTitle",3,"header"],["data-test-id","setupCompanyAccountStep3.companyCountryDropdown","id","companyCountry",3,"label","disabled","countryGroup","countryControl","clearable","countryCodesFilter","required","isAnonymous"],["data-test-id","setupCompanyAccountStep3.companyAddressLine1GroupWithLabel","labelFor","companyAddressLine1","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.companyAddressLine1Field","type","text","formControlName","companyAddressLine1","name","companyAddressLine1","id","companyAddressLine1","pInputText","","value","","required","true",1,"w-full",3,"blur","valueChange","ngClass","required","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.companyAddressLine2GroupWithLabel","labelFor","companyAddressLine2","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.companyAddressLine2Field","type","text","formControlName","companyAddressLine2","pInputText","","name","companyAddressLine2","id","companyAddressLine2","value","",1,"w-full",3,"required","maxLength"],["data-test-id","setupCompanyAccountStep3.companyCityGroupWithLabel","labelFor","companyCity","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.companyCityField","type","text","formControlName","companyCity","name","companyCity","id","companyCity","value","","pInputText","",1,"w-full",3,"blur","valueChange","ngClass","required","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.companyStateDropdown","id","companyState","styleModifier","pt-4",1,"state-dropdown",3,"stateGroup","stateControl","clearable","required","isAnonymous"],["data-test-id","setupCompanyAccountStep3.companyPostCodeGroupWithLabel","labelFor","companyPostCode","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.companyPostCodeField","type","text","formControlName","companyPostCode","name","companyPostCode","id","companyPostCode","value","","pInputText","",1,"w-full",3,"blur","valueChange","ngClass","required","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.shipMyOrdersToDifferentAddressCheckbox","formControlName","shipMyOrdersToDifferentAddress","id","shipMyOrdersToDifferentAddress","type","checkbox","name","shipMyOrdersToDifferentAddress","inputId","shipMyOrdersToDifferentAddressInput",1,"w-full","mt-3",3,"binary"],["for","shipMyOrdersToDifferentAddressInput"],["styleClass","ppg-form-card","data-test-id","setupCompanyAccountStep3.shippingAddressCardWithTitle",3,"header"],[1,"mb-0","mt-4"],["data-test-id","setupCompanyAccountStep3.whoAreYouGroupWithLabel","labelFor","whoAreYouControl","styleModifier","mt-4",3,"label","required","displaySuffix"],["styleClass","w-full","id","whoAreYou","inputId","whoAreYouControl","name","whoAreYou","optionValue","value","optionLabel","label","formControlName","whoAreYou",3,"onChange","editable","showClear","options","ppgValidator","fieldType"],["styleClass","font-size-s-2 p-0","data-test-id","setupCompanyAccountStep3.jobDescriptionsButton",3,"onClick","link","ngClass"],["data-test-id","setupCompanyAccountStep3.whatAreYouPaintingGroupWithLabel","labelFor","whatYouPainting","styleModifier","mt-4",3,"label","required","displaySuffix"],["inputId","whatYouPainting","styleClass","w-full","name","whatYouPainting","o
20ptionValue","value","optionLabel","label","formControlName","whatYouPainting",3,"onChange","editable","showClear","options","ppgValidator","fieldType"],["styleClass","font-size-s-2 p-0","data-test-id","setupCompanyAccountStep3.projectDescriptionsButton",3,"onClick","link","ngClass"],["data-test-id","setupCompanyAccountStep3.projectTypeGroupWithLabel","labelFor","projectTypeControl","styleModifier","mt-4",3,"label","required","displaySuffix"],["styleClass","w-full","id","projectType","inputId","projectTypeControl","name","ProjectType","optionValue","value","optionLabel","label","formControlName","projectType",3,"onChange","editable","showClear","options","ppgValidator","fieldType"],[2,"display","none"],["id","cashCustomerFinalSegment"],["data-test-id","setupCompanyAccountStep3.einGroupWithLabel","labelFor","ein","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.einInputField","type","text","formControlName","ein","name","ein","id","ein","pInputText","","placeHolderCharacter","_",1,"w-full",3,"value","ppgValidator","fieldType","required","mask","showMaskTyped"],["data-test-id","setupCompanyAccountStep3.shippingCountryDropdown","id","shipingAddressCountry",3,"label","disabled","countryGroup","countryControl","countryCodesFilter","clearable","required","isAnonymous"],["data-test-id","setupCompanyAccountStep3.shippingAddressLine1GroupWithLabel","labelFor","shippingAddressLine1","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.shippingAddressLine1Field","type","text","formControlName","shippingAddressLine1","name","shippingAddressLine1","id","shippingAddressLine1","value","","pInputText","",1,"w-full",3,"blur","valueChange","ngClass","required","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.shippingAddressLine2GroupWithLabel","labelFor","shippingAddressLine2","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.shippingAddressLine2Field","type","text","formControlName","shippingAddressLine2","name","shippingAddressLine2","pInputText","","id","shippingAddressLine2","value","",1,"w-full",3,"required","maxLength"],["data-test-id","setupCompanyAccountStep3.shippingCityGroupWithLabel","labelFor","shippingCity","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.shippingCityField","type","text","formControlName","shippingCity","name","shippingCity","id","shippingCity","pInputText","","value","",1,"w-full",3,"blur","valueChange","ngClass","required","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.shippingStateDropdown","id","shippingState","styleModifier","mt-4",1,"state-dropdown",3,"stateGroup","stateControl","clearable","required","isAnonymous"],["data-test-id","setupCompanyAccountStep3.shippingPostCodeGroupWithLabel","labelFor","shippingPostCode","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.shippingPostCodeField","type","text","formControlName","shippingPostCode","name","shippingPostCode","id","shippingPostCode","pInputText","","value","",1,"w-full",3,"blur","valueChange","ngClass","required","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.shippingEmailGroupWithLabel","labelFor","shippingEmail","styleModifier","mt-4",3,"label","required","displaySuffix"],["data-test-id","setupCompanyAccountStep3.shippingEmailField","type","email","formControlName","shippingEmail","name","shippingEmail","id","shippingEmail","pInputText","","value","",1,"w-full",3,"blur","valueChange","required","maxLength","ppgValidator","fieldType"],["data-test-id","setupCompanyAccountStep3.shippingPhoneNumberField","ngDefaultControl","","styleModifier","no-box-shadow-on-focus input-field input-label-error w-full",3,"label","formGroup","phoneControl","required"]],template:function(t,o){t&1&&v(0,un,53,113,"ng-container",1),t&2&&m("translocoRead","CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP")},dependencies:[Xe,se,oe,re,ae,Pe,le,pe,Oe,x,st,lt,Ie,j,it,ue,nt,Q,Se,ot,de],styles:["[_nghost-%COMP%]     .state-dropdown .validation-errors{display:none}"]})}}return n})();function cn(n,A){if(n&1){let e=L();r(0,"p-card",20)(1,"div",21),d(2),a(),r(3,"h4",22),d(4),a(),r(5,"ul",23)(6,"li",24),d(7),a(),r(8,"li",25),d(9),a(),r(10,"li",26),d(11),a(),r(12,"li",27),d(13),a(),r(14,"li",28),d(15),a()(),r(16,"p-button",29),f("click",function(){let o=y(e).$implicit,u=S(2);return N(u.goToCreditApp(o("URL")))}),a()()}if(n&2){let e=A.$implicit;m("header",e("TITLE")),i(2),T(" ",e("DESCRIPTION")," "),i(2),T(" ",e("APPLY_DESCRIPTION")," "),i(3),c(e("OPTION_1")),i(2),c(e("OPTION_2")),i(2),c(e("OPTION_3")),i(2),c(e("OPTION_4")),i(2),c(e("OPTION_5")),i(),J("label",e("BUTTON")),m("outlined",!0)}}function Sn(n,A){if(n&1){let e=L();r(0,"div",2)(1,"h1",3),h(2,"i",4),d(3),a(),r(4,"div",5),d(5),a(),r(6,"p-card",6)(7,"div",7),d(8),a(),r(9,"h3",8),d(10),a(),r(11,"label",9),d(12),a(),r(13,"div",10),d(14),a(),r(15,"label",11),d(16),a(),r(17,"div",12),d(18),a(),r(19,"h3",13),d(20),a(),r(21,"label",14),d(22),a(),r(23,"div",15),d(24),a(),r(25,"label",16),d(26),a(),r(27,"div",17),d(28),a(),r(29,"p-button",18),f("click",function(){y(e);let o=S();return N(o.goToSignIn())}),a()(),v(30,cn,17,10,"p-card",19),a()}if(n&2){let e=A.$implicit,t=S();i(3),T(" ",e("TITLE")," "),i(2),c(e("DESCRIPTION")),i(),m("header",e("ACCOUNT_DETAILS_CARD")),i(2),T(" ",e("ACCOUNT_DETAILS_DESCRIPTION")," "),i(2),T(" ",e("COMPANY_ACCOUNT_CARD")," "),i(2),T(" ",e("MAIN_ACCOUNT_NAME")," "),i(2),T(" ",t.registrationCompletedState.customerName," "),i(2),T(" ",e("MAIN_ACCOUNT_NUMBER")," "),i(2),T(" ",t.registrationCompletedState.PPGAcountNumber," "),i(2),T(" ",e("USER_ACCOUNT_CARD")," "),i(2),T(" ",e("NAME")," "),i(2),wt(" ",t.registrationCompletedState.userFirstName," ",t.registrationCompletedState.userLastName," "),i(2),T(" ",e("EMAIL")," "),i(2),T(" ",t.registrationCompletedState.userEmail," "),i(),J("label",e("GO_TO_SIGNIN_BUTTON_LABEL")),i(),m("translocoRead","CASH_CUSTOMER.DOCUMENTS_FOR_CREDIT")}}var vi=(()=>{class n{#e=E(W);#t=E(Ce);#n=E(ze);constructor(){this.#t.sendRegistrationCompletedGAEvent(),this.registrationCompletedState=this.#e.state.cashCustomerRegistrationCompletedModel||{}}goToSignIn(){this.#n.logOut()}goToCreditApp(e){window.open(e,"_blank")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-success-registration-screen"]],standalone:!1,decls:2,vars:1,consts:[[1,"flex","flex-row","justify-content-center","pt-3","pb-2","mb-6"],["class","form-container flex flex-column justify-content-center gap-4",4,"transloco","translocoRead"],[1,"form-container","flex","flex-column","justify-content-center","gap-4"],["data-test-id","createAccountSuccess.pageTitle",1,"page-title","p-0","mb-0"],[1,"pi","pi-check-circle","text-green-700"],["data-test-id","createAccountSuccess.pageDescription"],["styleClass","ppg-form-card","data-test-id","createAccountSuccess.accountDetailsCard",3,"header"],["data-test-id","createAccountSuccess.accountDetailsDescription"],["data-test-id","createAccountSuccess.companyAccountTitle",1,"mt-4","mb-3","p-0"],["data-test-id","createAccountSuccess.companyAccountNameLabel"],["data-test-id","createAccountSuccess.companyAccountName",1,"font-bold","mb-2"],["data-test-id","createAccountSuccess.companyAccountNumberLabel"],["data-test-id","createAccountSuccess.companyAccountNumber",1,"font-bold"],["data-test-id","createAccountSuccess.userAccountTitle",1,"mt-4","mb-3","p-0"],["data-test-id","createAccountSuccess.userAccountNameLabel"],["data-test-id","createAccountSuccess.userAccountName",1,"font-bold","mb-2"],["data-test-id","createAccountSuccess.userAccountEmailLabel"],["data-test-id","createAccountSuccess.userAccountEmail",1,"font-bold"],["type","button","size","large","styleClass","w-full mt-4 font-bold","icon","pi pi-arrow-right","iconPos","right","data-test-id","createAccountSuccess.buttonGoToSignIn",3,"click","label"],["styleClass","ppg-form-card","data-test-id","createAccountSuccess.creditDetailsCard",3,"header",4,"transloco","translocoRead"],["styleClass","ppg-form-card","data-test-id","createAccountSuccess.creditDetailsCard",3,"header"],["data-test-id","createAccountSuccess.creditDetailsDescription"],["data-test-id","createAccountSuccess.applyCreditTitle",1,"mt-4","mb-3","p-0"],[1,"line-height-normal","pl-4","list-disc"],["data-test-id","createAccountSuccess.applyCreditOtp1"],["data-test-id","createAccountSuccess.applyCreditOtp2"],["data-test-id","createAccountSuccess.applyCreditOtp3"],["data-test-id","createAccountSuccess.applyCreditOtp4"],["data-test-id","createAccountSuccess.applyCreditOtp5"],["type","button","size","large","styleClass","w-full mt-4 font-bold","icon","pi pi-arrow-up-right","iconPos","right","data-test-id","createAccountSuccess.buttonGoToCreditApp",3,"click","outlined","label"]],template:function(t,o){t&1&&(r(0,"div",0),v(1,Sn,31,17,"div",1),a()),t&2&&(i(),m("translocoRead","CASH_CUSTOMER.SUCCESS_REGIST
20ERED_SCREEN"))},dependencies:[x,j,Q],styles:[".page-title[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:inherit}"]})}}return n})();var X=(function(n){return n.Default="default",n.Loading="loading",n.Success="success",n.Error="error",n.AllAttemptsUsed="all-attempts-used",n})(X||{});var xe=(function(n){return n.TooManyAttempts="too-many-attempts",n.NotCorrect="not-correct",n})(xe||{});var bi=(()=>{class n{#e=E(et);sendSubmitClickedGAEvent(){this.#e.pushTag({event:q.CustomEvent,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationSubmitSecurityCode,eventLabel:"click"})}sendVerifyEmailGAEvent(){this.#e.pushTag({event:q.RegistrationStep,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationVerifyEmail,eventLabel:"Cash customer verify email",registration_information:{stepNumber:"2",stepNameDescription:"cash customer registration verify email"}})}sendResendCodeGAEvent(){this.#e.pushTag({event:q.CustomEvent,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationResendCode,eventLabel:"Cash customer email me a new code"})}sendEmptySecurityCodeGAEvent(){this.sendSecurityCodeGAEvent("empty sec code","A security code is required.","empty sec code")}sendInvalidSecurityCodeGAEvent(){this.sendSecurityCodeGAEvent("invalid sec code","The code you have inputted is not correct.","invalid sec code")}sendSecurityCodeGAEvent(e,t,o){this.#e.pushTag({event:q.RegistrationStepError,eventCategory:B.Account,eventAction:k.CashCustomerRegistrationEmptyCode,eventLabel:e,registration_information:{stepNumber:"2",stepNameDescription:"cash customer registration verify email",errorCode:t,errorName:o}})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=H({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var gn=n=>({url:n});function hn(n,A){if(n&1&&(r(0,"p-message",13),d(1),a()),n&2){let e=S().$implicit;i(),T(" ",e("SENDING_NEW_CODE_MESSAGE")," ")}}function En(n,A){if(n&1&&(r(0,"p-message",14),d(1),a()),n&2){let e=S().$implicit;i(),c(e("SENT_CHECK_YOUR_INBOX_MESSAGE"))}}function yn(n,A){if(n&1&&(r(0,"p-message",15),d(1),a()),n&2){let e=S().$implicit;i(),c(e("FAILED_PLEASE_TRY_AGAIN_FAILED_MESSAGE"))}}function Nn(n,A){if(n&1&&(r(0,"p-message",16),h(1,"span",17),a()),n&2){let e=S().$implicit,t=S();i(),m("innerHTML",e("ALL_ATTEMPTS_USED_MESSAGE",R(1,gn,t.contactUsUrl())),ke)}}function An(n,A){if(n&1){let e=L();r(0,"div")(1,"h1",1),d(2),a(),r(3,"p",2),d(4),a(),r(5,"p",3)(6,"span",4),d(7,"*"),a(),d(8),b(9,"transloco"),a(),r(10,"p-card",5)(11,"p",6),d(12),r(13,"strong",7),d(14),a()(),r(15,"form",8)(16,"p-fluid")(17,"ppg-input-group",9)(18,"input",10),f("valueChange",function(o){y(e);let u=S();return N(u.securityCodeField.setValue(o))}),a()()(),r(19,"p-button",11),f("click",function(){y(e);let o=S();return N(o.submit())}),a(),r(20,"p-button",12),f("click",function(){y(e);let o=S();return N(o.resendCode())}),a(),r(21,"div"),v(22,hn,2,1,"p-message",13)(23,En,2,1,"p-message",14)(24,yn,2,1,"p-message",15)(25,Nn,2,3,"p-message",16),a()()()()}if(n&2){let e,t=A.$implicit,o=S();i(2),c(t("VERIFY_EMAIL_TITLE")),i(2),T(" ",t("VERIFY_EMAIL_DESCRIPTION")," "),i(4),c(F(9,18,"VALIDATION.ERRORS.REQUIRED")),i(2),J("header",t("TITLE")),i(2),T(" ",t("DESCRIPTION"),""),i(2),c(o.currentEmail()),i(),m("formGroup",o.securityCodeForm),i(2),J("label",t("CODE_INPUT_LABEL")),m("required",!0)("displaySuffix",!0),i(),m("ppgValidator",o.securityCodeField)("fieldType",o.ERROR_FIELD_TYPE.SecurityCode),i(),J("label",t("SUBMIT_BUTTON_LABEL")),i(),J("label",t("EMAIL_ME_NEW_CODE_BUTTON_LABEL")),m("disabled",o.resendCodeStatus()===o.RESEND_CODE_STATUS.AllAttemptsUsed)("text",!0),z("aria-label",t("EMAIL_ME_NEW_CODE_BUTTON_LABEL")),i(2),D((e=o.resendCodeStatus())===o.RESEND_CODE_STATUS.Loading?22:e===o.RESEND_CODE_STATUS.Success?23:e===o.RESEND_CODE_STATUS.Error?24:e===o.RESEND_CODE_STATUS.AllAttemptsUsed?25:-1)}}var Fi=(()=>{class n{unloadNotification(e){e.returnValue=!0}#e;#t;#n;#a;#o;#i;#r;#s;#l;constructor(){this.#e=E(me),this.#t=E(W),this.#n=E(Ae),this.#a=E(we),this.#o=E(be),this.#i=E(bi),this.triggerMoveNext=new Ge,this.contactUsUrl=Lt(this.#o.contactUsUrl$),this.#r=qe(this.#t.state?.createCashCustomerModel?.email),this.currentEmail=this.#r.asReadonly(),this.#s=qe(!1),this.#l=qe(this.#t.state?.intermediateState?.isCodeGenerationLimitExceeded?X.AllAttemptsUsed:X.Default),this.resendCodeStatus=this.#l.asReadonly(),this.ERROR_FIELD_TYPE=Fe,this.RESEND_CODE_STATUS=X,this.securityCodeField=new g("",[C.required,w.notOnlyWhiteSpaces()]),this.securityCodeForm=this.#e.group({securityCode:this.securityCodeField})}moveNextAllowed(){return this.#s()?(this.securityCodeField.setErrors({[xe.TooManyAttempts]:!0}
20),!1):(this.securityCodeField.updateValueAndValidity(),this.securityCodeField.valid)}submit(){this.securityCodeField.markAsDirty(),this.#i.sendSubmitClickedGAEvent();let e=+this.securityCodeField.value;if(!this.moveNextAllowed()){this.#i.sendEmptySecurityCodeGAEvent();return}if(this.securityCodeField.value.length!==6||isNaN(e))return this.#i.sendInvalidSecurityCodeGAEvent(),this.securityCodeField.setErrors({[xe.NotCorrect]:!0});this.#a.validateSecurityCode(e,this.#r()).pipe(G(1)).subscribe(t=>{switch(t.data.validateSecurityCode.statusCode){case K.Ok:return this.#i.sendVerifyEmailGAEvent(),this.triggerMoveNext.next(!0);case K.Forbidden:return this.#s.set(!0),this.securityCodeField.setErrors({[xe.TooManyAttempts]:!0});case K.BadRequest:default:return this.#i.sendInvalidSecurityCodeGAEvent(),this.securityCodeField.setErrors({[xe.NotCorrect]:!0})}})}resendCode(){if(this.#i.sendResendCodeGAEvent(),this.#l()===X.AllAttemptsUsed)return;this.#s.set(!1),this.#l.set(X.Loading);let{firstName:e,lastName:t,email:o,language:u}=this.#t.state.createCashCustomerModel;this.#a.generateAndSendSecurityCodeToEmail(this.#n.recaptchaToken,{firstName:e,lastName:t,email:o,language:u}).pipe(G(1)).subscribe(O=>{let{statusCode:Y}=O.data.generateAndSendSecurityCodeToEmail;Y===K.Created?this.#l.set(X.Success):this.#l.set(X.Error),At(3e3).pipe(G(1)).subscribe(()=>{Y===K.BadRequest&&O.error?.message?.includes("Too many requests")?this.#l.set(X.AllAttemptsUsed):this.#l.set(X.Default)})})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-verify-email-step"]],hostBindings:function(t,o){t&1&&f("beforeunload",function(O){return o.unloadNotification(O)},!1,ne)},outputs:{triggerMoveNext:"triggerMoveNext"},standalone:!1,decls:1,vars:1,consts:[[4,"transloco","translocoRead"],["data-test-id","verifyEmailStep2.verifyEmailTitle",1,"my-4","p-0"],["data-test-id","verifyEmailStep2.verifyEmailDescription",1,"p-0","mt-0","mb-5"],[1,"p-0","mt-0","mb-4"],[1,"required"],["styleClass","ppg-form-card","data-test-id","verifyEmailStep2.securityCodeCardWithTitle",3,"header"],["data-test-id","verifyEmailStep2.securityCodeDescription",1,"mb-4","mt-0","p-0"],[1,"u-break-all"],[3,"formGroup"],["data-test-id","verifyEmailStep2.securityCodeGroupWithLabel","labelFor","securityCode",3,"label","required","displaySuffix"],["type","text","pInputText","","data-test-id","verifyEmailStep2.inputSecurityCode","id","securityCode","name","securityCode","formControlName","securityCode",3,"valueChange","ppgValidator","fieldType"],["id","submit","data-test-id","verifyEmailStep2.buttonSubmit","name","submit","type","submit","styleClass","w-full mt-4 font-bold",3,"click","label"],["id","resend","data-test-id","verifyEmailStep2.buttonResend","type","button","aria-hidden","false","styleClass","w-full mt-3 font-bold","icon","pi pi-envelope","iconPos","left",3,"click","disabled","text","label"],["data-test-id","verifyEmailStep2.messageSengingNewCode","severity","info","icon","pi pi-clock","styleClass","w-full mt-2 inline-flex justify-content-start align-items-center border-none"],["data-test-id","verifyEmailStep2.messageSentCheckYourInbox","severity","success","icon","pi pi-check","styleClass","w-full mt-2 inline-flex justify-content-start align-items-center border-none"],["data-test-id","verifyEmailStep2.messageFailedTryAgain","severity","error","icon","pi pi-times-circle","styleClass","w-full mt-2 inline-flex justify-content-start align-items-center border-none"],["data-test-id","verifyEmailStep2.messageAllAttemptsUsed","severity","error","icon","pi pi-times-circle","styleClass","w-full mt-2 inline-flex justify-content-start align-items-center border-none"],[3,"innerHTML"]],template:function(t,o){t&1&&v(0,An,26,20,"div",0),t&2&&m("translocoRead","CASH_CUSTOMER.VERIFY_EMAIL_ADDRESS")},dependencies:[se,oe,re,ae,le,pe,Oe,x,j,ue,Q,jt,rt,Se,de],encapsulation:2})}}return n})();var wi=[{icon:"account-circle-outline",header:"CASH_CUSTOMER.CREATE_USER_ACCOUNT_STEP.CREATE_USER_ACCOUNT_TITLE",description:"CASH_CUSTOMER.CREATE_USER_ACCOUNT_STEP.CREATE_USER_ACCOUNT_DESCRIPTION",stepName:"CASH_CUSTOMER.STEP_NAMES.CREATE_USER_ACCOUNT",component:di,showStepCancel:!1,showStepBack:!1,showStepNext:!0,useRecaptcha:!1,fullWidthContent:!1},{iconSource:"assets/images/verify_email.svg",header:"CASH_CUSTOMER.VERIFY_EMAIL_ADDRESS.VERIFY_EMAIL_TITLE",description:"CASH_CUSTOMER.VERIFY_EMAIL_ADDRESS.VERIFY_EMAIL_DESCRIPTION",stepName:"CASH_CUSTOMER.STEP_NAMES.VERIFY_EMAIL",component:Fi,showStepCancel:!1,showStepNext:!1,showStepBack:!0,useRecaptcha:!1,fullWidthContent:!1},{icon:"domain",header:"CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.SETUP_COMPANY_ACCOUNT_TITLE",description:"CASH_CUSTOMER.SETUP_COMPANY_ACCOUNT_STEP.SETUP_COMPANY_ACCOUNT_DESCRIPTION",stepName:"CASH_CUSTOMER.STEP_NAMES.SETUP_COMPANY_ACCOUNT",component:Pi,showStepCancel:!1,showStepBack:!1,showStepNext:!0,useRecaptcha:!1,fullWidthContent:!1},{iconSource:"assets/images/checklist-small.svg",header:"CASH_CUSTOMER.REVIEW_AND_SUBMIT_STEP.REVIEW_SUBMIT_TITLE",description:"CASH_CUSTOMER.REVIEW_AND_SUBMIT_STEP.REVIEW_SUBMIT_DESCRIPTION",stepName:"CASH_CUSTOMER.STEP_NAMES.REVIEW_SUBMIT",lastStepButtonLabel:"CASH_CUSTOMER.REVIEW_AND_SUBMIT_STEP.SUBMIT_BUTTON_LABEL",component:Si,showStepCancel:!1,showStepNext:!0,showStepBack:!0,useRecaptcha:!1,fullWidthContent:!1}];function Tn(n,A){if(n&1&&h(0,"ppg-progress-stepper",0),n&2){let e=S();m("steps",e.steps)("labelHeader","CASH_CUSTOMER.STEPS_HEADER")("labelCancel","CASH_CUSTOMER.CANCEL")("labelBack","CASH_CUSTOMER.STEPPER_BUTTONS.BACK")("labelNext","CASH_CUSTOMER.STEPPER_BUTTONS.NEXT")}}function fn(n,A){n&1&&h(0,"app-success-registration-screen")}
20var Oi=(()=>{class n{constructor(e){this.stateService=e,this.steps=wi,this.cashCustomerRegistrationInProgress$=this.stateService.state$.pipe(U(t=>!t?.cashCustomerRegistrationCompletedModel?.PPGAcountNumber))}static{this.\u0275fac=function(t){return new(t||n)(Me(W))}}static{this.\u0275cmp=I({type:n,selectors:[["app-create-cash-customer-form"]],standalone:!1,features:[Ot([{provide:W,useFactory:()=>new W},{provide:Ae,useFactory:e=>new Ae(e),deps:[be]}])],decls:4,vars:3,consts:[["isFixedToTop","true",3,"steps","labelHeader","labelCancel","labelBack","labelNext"]],template:function(t,o){t&1&&(r(0,"div"),v(1,Tn,1,5,"ppg-progress-stepper",0),b(2,"async"),v(3,fn,1,0,"app-success-registration-screen"),a()),t&2&&(i(),D(F(2,1,o.cashCustomerRegistrationInProgress$)?1:3))},dependencies:[ai,vi,xt],encapsulation:2})}}return n})();var Ii=(()=>{class n{#e;constructor(e,t){this.configurationService=e,this.metaTagService=t,this.metaTagDescription="Create an account with PPG Paints to simplify your paint-buying process. Fill out the form to get started!",this.#e=E(ze),this.configurationService.cashCustomerFeatureFlag$.pipe(G(1),Te(o=>!o)).subscribe(()=>this.#e.logOut()),this.metaTagService.addTags([{name:"description",content:this.metaTagDescription}])}static{this.\u0275fac=function(t){return new(t||n)(Me(be),Me(Dt))}}static{this.\u0275cmp=I({type:n,selectors:[["app-create-cash-customer"]],standalone:!1,decls:1,vars:0,template:function(t,o){t&1&&h(0,"app-create-cash-customer-form")},dependencies:[Oi],encapsulation:2})}}return n})();var Pn=[{path:"",component:Ii,canActivate:[Ht]}],Ri=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=$e({type:n})}static{this.\u0275inj=Ue({imports:[Yt.forChild(Ut(Pn))]})}}return n})();var xi=()=>({onBeforeLoad(n){let{navigator:A}=E(Rt).defaultView,e=A.language||Kt.en_US;return n.searchParams.set("hl",e),{url:n}}});var Fs=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=$e({type:n})}static{this.\u0275inj=Ue({providers:[Re,{provide:Xt,useFactory:xi}],imports:[Mt,si,Ri,Jt,Qt]})}}return n})();export{Fs as CreateCashCustomerModule};

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.