1(self.webpackChunknutrafol=self.webpackChunknutrafol||[]).push([[8783],{16971:function(e,a,t){"use strict";var s=t(73310),r=t(96540),i=t(95704),n=t(68769),o=t.n(n),l=t(17437);const d=(0,s.default)("div",{target:"e6e739o4"})({name:"ar5sm",styles:"position:fixed;z-index:15;background:#22202F;opacity:.5;left:0;top:0;width:100%;height:100%"}),u=(0,s.default)("div",{target:"e6e739o3"})("position:fixed;z-index:16;left:0;top:0;width:100%;height:100%;background:",i.default.color.white,";padding:",i.default.spacing.medium,";overflow:auto;@media (min-width: 768px){width:80%;height:auto;top:50%;left:50%;transform:translate(-50%, -50%);max-width:930px;padding:25px 75px 50px;border-radius:10px;box-shadow:0 2px 4px rgba(0,0,0,.5);}"),m=(0,s.default)("div",{target:"e6e739o2"})({name:"1bns1r9",styles:"text-align:right;@media (min-width: 768px){transform:translate(50px);}"}),p=(0,s.default)("div",{target:"e6e739o1"})("text-align:center;@media (min-width: 768px){padding:",i.default.spacing.xlarge," 0;}h5{font-size:22px;line-height:28px;font-family:",i.default.wild.font.dinamo.regular,";font-weight:",i.default.weight.book,";text-align:center;margin:0 auto ",i.default.spacing.small,";width:260px;@media (min-width: 768px){width:auto;font-family:",i.default.wild.font.grilli.book,";font-weight:",i.default.weight.light,";font-size:28px;line-height:36px;margin-bottom:",i.default.spacing.medium,";}}p{max-width:495px;margin-left:auto;margin-right:auto;&:not(.signature){font-size:16px;line-height:24px;font-family:",i.default.wild.font.dinamo.regular,";font-weight:",i.default.weight.book,";color:",i.default.wild.color.master.base.black,";margin-bottom:",i.default.spacing.small,";@media (min-width: 768px){font-size:20px;line-height:28px;margin-bottom:",i.default.spacing.medium,";}}&.signature{font-size:16px;line-height:24px;font-family:",i.default.wild.font.dinamo.bold,";font-weight:",i.default.weight.demi,";}}"),c=(0,s.default)("button",{target:"e6e739o0"})("");a.A=e=>{let a=e.hideModal,t=e.isSuccess,s=e.modalData;return(0,l.Y)(r.Fragment,null,(0,l.Y)(d,{onClick:()=>a(),"data-element":"ModalOverlay","data-component":"ProSignUpFormModal","data-source-file":"prosignupformmodal.js"}),(0,l.Y)(u,{id:"ProFormModal","data-element":"FormSubmitModal","data-source-file":"prosignupformmodal.js"},(0,l.Y)(m,{"data-element":"ModalHeader","data-source-file":"prosignupformmodal.js"},(0,l.Y)(c,{id:"CloseProFormModal",onClick:()=>a(),"data-element":"CloseWrapper","data-source-file":"prosignupformmodal.js"},(0,l.Y)(o(),{"data-element":"CloseIcon","data-source-file":"prosignupformmodal.js"}))),(0,l.Y)(p,{"data-element":"ModalBody","data-source-file":"prosignupformmodal.js"},(0,l.Y)("h5",null,t?s.success.heading:s.error.heading),(0,l.Y)("p",null,t?s.success.copy:s.error.copy),(0,l.Y)("p",{className:"signature",dangerouslySetInnerHTML:{__html:t?s.success.signature:s.error.signature}}))))}},27136:function(e,a,t){"use strict";var s=t(73310),r=t(96540),i=t(59639),n=t(7425),o=t(12664),l=t(83980),d=t(95704),u=t(48164),m=t(88463),p=t(23663),c=t(53274),h=t(11808),f=t(16971),g=t(17437);const Y=o.Ik().shape({firstName:o.Yj().required("This is a required field."),lastName:o.Yj().required("This is a required field."),businessName:o.Yj().required("This is a required field."),businessAddress:o.Yj().required("This is a required field."),businessEmail:o.Yj().email("Please enter a valid email address.").required("This is a required field."),businessPhone:o.Yj().required("This is a required field.").matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,"Please enter a valid phone number."),zipCode:o.Yj().required("This is a required field.").matches(/[0-9a-zA-Z]+/,"Please enter a valid zip code.").min(5,"Please enter a valid zip code."),referrer:o.Yj().required("This is a required field."),interests:o.Yj().required("This is a required field."),n_locations:o.Yj().required("This is a required field."),n_stylists:o.Yj().required("This is a required field.")}),b=(0,s.default)("div",{target:"e3v1eqk1"})("p{color:",d.default.wild.color.master.base.alt.alt,";}.req-astrick{color:",d.default.wild.color.master.functional.error,";}"),v=(0,s.default)("form",{target:"e3v1eqk0"})({name:"1yduydj",styles:".button-row button{display:block;width:100%;margin-left:auto;margin-right:auto;}"});a.A=e=>{let a=e.data;const t=(0,r.useState)(!1),s=t[0],o=t[1],d=(0,r.useState)(!1),C=d[0],x=d[1],y=(0,n.Wx)({initialValues:{firstName:"",lastName:"",businessName:"",businessAddress:"",businessEmail
1:"",businessPhone:"",specialty:"Salon",zipCode:"",referrer:"",interests:"",n_locations:"",n_stylists:""},validationSchema:Y,onSubmit:(e,a)=>{let t=a.resetForm;N(e,t)}});(0,r.useEffect)(()=>{l.default.trackActiveElement()},[]);const N=(e,t)=>{(0,h.identifyEvent)({business_name:e.businessName,business_address:e.businessAddress,email:e.businessEmail,first_name:e.firstName,interested_in:e.interests,referrer:e.referrer,last_name:e.lastName,phone:e.businessPhone,specialty:"Salon",n_locations:e.n_locations,n_stylists:e.n_stylists,zip:e.zipCode,lead_source:"website",lead_status:"new",event:a.event},{Salesforce:!0}),(0,h.segmentEvent)("Professional Partner Form Submitted",{business_name:e.businessName,business_address:e.businessAddress,email:e.businessEmail,first_name:e.firstName,interested_in:e.interests,referrer:e.referrer,last_name:e.lastName,phone:e.businessPhone,specialty:"Salon",n_locations:e.n_locations,n_stylists:e.n_stylists,zip:e.zipCode}),x(!0),l.default.onOpen({wrapper:"ProFormModal",closeEl:"CloseProFormModal"}),o(!0),t()};return(0,g.Y)(b,{"data-element":"Wrapper","data-component":"ProSignUpForm","data-source-file":"prosignupform.js"},(0,g.Y)(v,{onSubmit:y.handleSubmit,noValidate:!0,"data-element":"Form","data-component":"ProSignUpForm","data-source-file":"prosignupform.js"},(0,g.Y)("fieldset",{"data-component":"ProSignUpForm","data-source-file":"prosignupform.js"},(0,g.Y)(i.Flex,{flexWrap:"wrap",mx:-2,"data-element":"Flex","data-component":"ProSignUpForm","data-source-file":"prosignupform.js"},(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"First name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"firstName",type:"text",autoComplete:"first-name",value:y.values.firstName,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.firstName,touched:y.touched.firstName,padX:2,"data-element":"InputTextWild","data-component":"ProSignUpForm","data-source-file":"prosignupform.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Last name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"lastName",type:"text",autoComplete:"family-name",value:y.values.lastName,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.lastName,touched:y.touched.lastName,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Business name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessName",type:"text",autoComplete:"organization",value:y.values.businessName,onChange:y.handleChange,widths:"1",errors:y.errors.businessName,touched:y.touched.businessName,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Business address ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessAddress",type:"text",autoComplete:"address",value:y.values.businessAddress,onChange:y.handleChange,widths:"1",errors:y.errors.businessAddress,touched:y.touched.businessAddress,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Email address ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessEmail",type:"text",autoComplete:"email",value:y.values.businessEmail,onChange:y.handleChange,widths:"1",errors:y.errors.businessEmail,touched:y.touched.businessEmail,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Phone ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessPhone",type:"text",autoComplete:"tel",value:y.values.businessPhone,onChange:y.handleChange,widths:"1, null, 1/2",showOptional:!1,errors:y.errors.businessPhone,touched:y.touched.businessPhone,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Zip code ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"zipCode",type:"text",autoComplete:"postal-code",value:y.values.zipCode,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.zipCode,touched:y.touched.zipCode,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform.js"}),(0,g.Y)(m.H,{name:"n_stylists",visualName:(0,g.Y)(r.Fragment,null,"Number of stylists ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"n_stylists",value:y.values.n_stylists,onChange:y.handleChange,widths:"1",errors:y.errors.n_stylists,touched:y.touched.n_stylists,defaultVal:"Select an option",options:["1","2-5","6-10","11-20","Over 21 stylists"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform.js"}),(0,g.Y)(m.H,{name:"n_locations",visualName:(0,g.Y)(r.Fragment,null,"Number of locations ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"n_locations",value:y.values.n_locations,onChange:y.handleChange,widths:"1",errors:y.errors.n_locations,touched:y.touched.n_locations,defaultVal:"Select an option",options:["1","2-5","6-10","11-20","Over 21 locations"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform.js"}),(0,g.Y)(m.H,{name:"interests",visualName:(0,g.Y)(r.Fragment,null,"What are you interested in?"," ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"interests",value:y.values.interests,onChange:y.handleChange,widths:"1",errors:y.errors.interests,touched:y.touched.interests,defaultVal:"Select an option",className:"hi",options:["Becoming a wholesale partner","Joining GrowthPartner","Wholesale + GrowthPartner","Learning more about Nutrafol"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform.js"}),(0,g.Y)(m.H,{name:"referrer",visualName:(0,g.Y)(r.Fragment,null,"How did you hear about us?"," ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"referrer",value:y.values.referrer,onChange:y.handleChange,widths:"1",errors:y.errors.referrer,touched:y.touched.referrer,defaultVal:"Select an option",options:["Google/search engine","Social media post","Publication or magazine","Google, Facebook or Instagram ad","Other paid social media advertising","Email","TV","Recommended by friend or colleague","Other"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform.js"}),(0,g.Y)(i.Box,{width:1,className:"button-row",mb:"24px",px:2,"data-element":"Box","data-source-file":"prosignupform.js"},(0,g.Y)(p.v,{primary:!0,label:"Submit",type:"submit","data-element":"ButtonWild","data-source-file":"prosignupform.js"}))))),(0,g.Y)(c.TextElement,{text:(0,g.Y)(r.Fragment,null,"Fields marked with an ",(0,g.Y)("span",{className:"req-astrick"},"*")," are required."),element:"p",className:"body--small text-master-base-alt-default","data-element":"TextElement","data-source-file":"prosignupform.js"}),s&&(0,g.Y)(f.A,{hideModal:()=>(l.default.onClose(),void o(!1)),isSuccess:C,modalData:a}))}},58344:function(e,a,t){"use strict";var s=t(73310),r=t(96540),i=t(59639),n=t(7425),o=t(12664),l=t(83980),d=t(95704),u=t(48164),m=t(88463),p=t(23663),c=t(53274),h=t(11808),f=t(16971),g=t(17437);const Y=o.Ik().shape({firstName:o.Yj().required("This is a required field."),lastName:o.Yj().required("This is a required field."),businessName:o.Yj().required("This is a required field."),businessAddress:o.Yj().required("This is a required field."),businessEmail
1:o.Yj().email("Please enter a valid email address.").required("This is a required field."),businessPhone:o.Yj().required("This is a required field.").matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,"Please enter a valid phone number."),zipCode:o.Yj().required("This is a required field.").matches(/[0-9a-zA-Z]+/,"Please enter a valid zip code.").min(5,"Please enter a valid zip code."),referrer:o.Yj().required("This is a required field."),title:o.Yj().required("This is a required field."),interests:o.Yj().required("This is a required field."),specialty:o.Yj().required("This is a required field."),n_providers:o.Yj().required("This is a required field."),n_locations:o.Yj().required("This is a required field.")}),b=(0,s.default)("div",{target:"erot3ly1"})("p{color:",d.default.wild.color.master.base.alt.alt,";}.req-astrick{color:",d.default.wild.color.master.functional.error,";}"),v=(0,s.default)("form",{target:"erot3ly0"})({name:"1yduydj",styles:".button-row button{display:block;width:100%;margin-left:auto;margin-right:auto;}"});a.A=e=>{let a=e.data;const t=(0,r.useState)(!1),s=t[0],o=t[1],d=(0,r.useState)(!1),C=d[0],x=d[1],y=(0,n.Wx)({initialValues:{firstName:"",lastName:"",businessName:"",businessAddress:"",businessEmail:"",businessPhone:"",zipCode:"",referrer:"",title:"",interests:"",specialty:"",n_providers:"",n_locations:""},validationSchema:Y,onSubmit:(e,a)=>{let t=a.resetForm;N(e,t)}});(0,r.useEffect)(()=>{l.default.trackActiveElement()},[]);const N=(e,t)=>{const s={business_name:e.businessName,business_address:e.businessAddress,email:e.businessEmail,first_name:e.firstName,interested_in:e.interests,n_providers:e.n_providers,n_locations:e.n_locations,referrer:e.referrer,title:e.title,last_name:e.lastName,phone:e.businessPhone,specialty:e.specialty,zip:e.zipCode};(0,h.identifyEvent)(Object.assign({},s,{lead_source:"website",lead_status:"new",event:a.event}),{Salesforce:!0}),(0,h.segmentEvent)("Professional Partner Form Submitted",s),x(!0),l.default.onOpen({wrapper:"ProFormModal",closeEl:"CloseProFormModal"}),o(!0),t()};return(0,g.Y)(b,{"data-element":"Wrapper","data-component":"ProSignUpForm2","data-source-file":"prosignupform2.js"},(0,g.Y)(v,{onSubmit:y.handleSubmit,noValidate:!0,"data-element":"Form","data-component":"ProSignUpForm2","data-source-file":"prosignupform2.js"},(0,g.Y)("fieldset",{"data-component":"ProSignUpForm2","data-source-file":"prosignupform2.js"},(0,g.Y)(i.Flex,{flexWrap:"wrap",mx:-2,"data-element":"Flex","data-component":"ProSignUpForm2","data-source-file":"prosignupform2.js"},(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"First name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"firstName",type:"text",autoComplete:"first-name",value:y.values.firstName,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.firstName,touched:y.touched.firstName,padX:2,"data-element":"InputTextWild","data-component":"ProSignUpForm2","data-source-file":"prosignupform2.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Last name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"lastName",type:"text",autoComplete:"family-name",value:y.values.lastName,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.lastName,touched:y.touched.lastName,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Business name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessName",type:"text",autoComplete:"organization",value:y.values.businessName,onChange:y.handleChange,widths:"1",errors:y.errors.businessName,touched:y.touched.businessName,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Business address ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessAddress",type:"text",autoComplete:"address",value:y.values.businessAddress,onChange:y.handleChange,widths:"1",errors:y.errors.businessAddress,touched:y.touched.businessAddress,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Email address ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessEmail",type:"text",autoComplete:"email",value:y.values.businessEmail,onChange:y.handleChange,widths:"1",errors:y.errors.businessEmail,touched:y.touched.businessEmail,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Phone ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessPhone",type:"text",autoComplete:"tel",value:y.values.businessPhone,onChange:y.handleChange,widths:"1, null, 1/2",showOptional:!1,errors:y.errors.businessPhone,touched:y.touched.businessPhone,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Zip code ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"zipCode",type:"text",autoComplete:"postal-code",value:y.values.zipCode,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.zipCode,touched:y.touched.zipCode,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(m.H,{name:"n_providers",visualName:(0,g.Y)(r.Fragment,null,"Number of providers in your practice"," ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"n_providers",value:y.values.n_providers,onChange:y.handleChange,widths:"1",errors:y.errors.n_providers,touched:y.touched.n_providers,defaultVal:"Select an option",className:"hi",options:["1","2-5","6-10","Over 11 providers"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(m.H,{name:"n_locations",visualName:(0,g.Y)(r.Fragment,null,"Number of locations ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"n_locations",value:y.values.n_locations,onChange:y.handleChange,widths:"1",errors:y.errors.n_locations,touched:y.touched.n_locations,defaultVal:"Select an option",className:"hi",options:["1","2-5","6-10","11-20","Over 21 locations"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(m.H,{name:"specialty",visualName:(0,g.Y)(r.Fragment,null,"Specialty ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"specialty",value:y.values.specialty,onChange:y.handleChange,widths:"1",errors:y.errors.specialty,touched:y.touched.specialty,defaultVal:"Select an option",className:"hi",options:["Dermatology","Plastic Surgery","Medical Spa","OB/GYN","Naturopathic Medicine","Salon","Other"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(m.H,{name:"title",visualName:(0,g.Y)(r.Fragment,null,"Title ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"title",value:y.values.title,onChange:y.handleChange,widths:"1",errors:y.errors.title,touched:y.touched.title,defaultVal:"Select an option",options:["Physician","Medical Director","Nurse Practitioner","Physician Assistant","Esthetician","Resident","Other"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(m.H,{name:"interests",visualName:(0,g.Y)(r.Fragment,null,"What are you interested in?"," ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"interests",value:y.values.interests,onChange:y.handleChange,widths:"1",errors:y.errors.interests,touched:y.touched.interests,defaultVal:"Select an option",className:"hi",options:["Becoming a wholesale partner","Joining GrowthPartner","Wholesale + GrowthPartner","Learning more about Nutrafol"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(m.H,{name:"referrer",visualName:(0,g.Y)(r.Fragment,null,"How did you hear about us?"," ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"referrer",value:y.values.referrer,onChange:y.handleChange,widths:"1",errors:y.errors.referrer,touched:y.touched.referrer,defaultVal:"Select an option",options:["Google/search engine","Social media post","Publication or magazine","Google, Facebook or Instagram ad","Other paid social media advertising","Email","TV","Recommended by friend or colleague","Other"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform2.js"}),(0,g.Y)(i.Box,{width:1,className:"button-row",mb:"24px",px:2,"data-element":"Box","data-source-file":"prosignupform2.js"},(0,g.Y)(p.v,{primary:!0,label:"Submit",type:"submit","data-element":"ButtonWild","data-source-file":"prosignupform2.js"}))))),(0,g.Y)(c.TextElement,{text:(0,g.Y)(r.Fragment,null,"Fields marked with an ",(0,g.Y)("span",{className:"req-astrick"},"*")," are required."),element:"p",className:"body--small text-master-base-alt-default","data-element":"TextElement","data-source-file":"prosignupform2.js"}),s&&(0,g.Y)(f.A,{hideModal:()=>(l.default.onClose(),void o(!1)),isSuccess:C,modalData:a}))}},76607:function(e,a,t){"use strict";var s=t(73310),r=t(96540),i=t(59639),n=t(7425),o=t(12664),l=t(83980),d=t(95704),u=t(48164),m=t(88463),p=t(23663),c=t(53274),h=t(11808),f=t(16971),g=t(17437);const Y=o.Ik().shape({firstName:o.Yj().required("This is a required field."),lastName:o.Yj().required("This is a required field."),businessName:o.Yj().required("This is a required field."),businessAddress:o.Yj().required("This is a required field."),businessEmail
1:o.Yj().email("Please enter a valid email address.").required("This is a required field."),businessPhone:o.Yj().matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,"Please enter a valid phone number."),zipCode:o.Yj().required("This is a required field.").matches(/[0-9a-zA-Z]+/,"Please enter a valid zip code.").min(5,"Please enter a valid zip code."),referrer:o.Yj().required("This is a required field."),referrer_other:o.Yj(),interests:o.Yj().required("This is a required field.")}),b=(0,s.default)("div",{target:"e1ejnzsg1"})("p{color:",d.default.wild.color.master.base.alt.alt,";}.req-astrick{color:",d.default.wild.color.master.functional.error,";}"),v=(0,s.default)("form",{target:"e1ejnzsg0"})(".button-row button{display:block;width:100%;margin-left:auto;margin-right:auto;}input,select,label,.error input{background-color:",d.default.wild.color.master.base.secondary,";}label{top:14px;left:24px;padding-top:4px;font-size:12px!important;line-height:15.6px!important;@media (min-width: ",d.default.mediaqueries.medium,"){font-size:14px!important;line-height:19.6px!important;}}");a.A=e=>{let a=e.data;const t=(0,r.useState)(!1),s=t[0],o=t[1],d=(0,r.useState)(!1),C=d[0],x=d[1],y=(0,n.Wx)({initialValues:{firstName:"",lastName:"",businessName:"",businessAddress:"",businessEmail:"",businessPhone:"",zipCode:"",referrer:"",interests:""},validationSchema:Y,onSubmit:(e,a)=>{let t=a.resetForm;N(e,t)}});(0,r.useEffect)(()=>{l.default.trackActiveElement()},[]);const N=(e,t)=>{const s={business_name:e.businessName,business_address:e.businessAddress,email:e.businessEmail,first_name:e.firstName,interested_in:e.interests,referrer:e.referrer_other?e.referrer_other:e.referrer,last_name:e.lastName,n_providers:"",n_locations:"",phone:e.businessPhone,specialty:"",title:"",zip:e.zipCode};e.spa_speciality&&(s.spa_speciality=e.spa_speciality),e.doctor_name&&(s.doctor_name=e.doctor_name),(0,h.identifyEvent)(Object.assign({},s,{lead_source:"website",lead_status:"new",event:a.event}),{Salesforce:!0}),(0,h.segmentEvent)("Professional Partner Form Submitted",s),x(!0),l.default.onOpen({wrapper:"ProFormModal",closeEl:"CloseProFormModal"}),o(!0),t()};return(0,g.Y)(b,{"data-element":"Wrapper","data-component":"ProSignUpForm3","data-source-file":"prosignupform3.js"},(0,g.Y)(v,{onSubmit:y.handleSubmit,noValidate:!0,"data-element":"Form","data-component":"ProSignUpForm3","data-source-file":"prosignupform3.js"},(0,g.Y)("fieldset",{"data-component":"ProSignUpForm3","data-source-file":"prosignupform3.js"},(0,g.Y)(i.Flex,{flexWrap:"wrap",mx:-2,"data-element":"Flex","data-component":"ProSignUpForm3","data-source-file":"prosignupform3.js"},(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"First name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"firstName",type:"text",autoComplete:"first-name",value:y.values.firstName,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.firstName,touched:y.touched.firstName,padX:2,"data-element":"InputTextWild","data-component":"ProSignUpForm3","data-source-file":"prosignupform3.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Last name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"lastName",type:"text",autoComplete:"family-name",value:y.values.lastName,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.lastName,touched:y.touched.lastName,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Business name ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessName",type:"text",autoComplete:"organization",value:y.values.businessName,onChange:y.handleChange,widths:"1",errors:y.errors.businessName,touched:y.touched.businessName,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Business address ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessAddress",type:"text",autoComplete:"address",value:y.values.businessAddress,onChange:y.handleChange,widths:"1",errors:y.errors.businessAddress,touched:y.touched.businessAddress,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Email address ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"businessEmail",type:"text",autoComplete:"email",value:y.values.businessEmail,onChange:y.handleChange,widths:"1",errors:y.errors.businessEmail,touched:y.touched.businessEmail,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(u.Y,{name:"Business Phone",id:"businessPhone",type:"text",autoComplete:"tel",value:y.values.businessPhone,onChange:y.handleChange,widths:"1, null, 1/2",showOptional:!0,errors:y.errors.businessPhone,touched:y.touched.businessPhone,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(u.Y,{name:(0,g.Y)(r.Fragment,null,"Zip code ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"zipCode",type:"text",autoComplete:"postal-code",value:y.values.zipCode,onChange:y.handleChange,widths:"1, null, 1/2",errors:y.errors.zipCode,touched:y.touched.zipCode,padX:2,"data-element":"InputTextWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(m.H,{name:"interests",visualName:(0,g.Y)(r.Fragment,null,"What are you interested in?"," ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"interests",value:y.values.interests,onChange:y.handleChange,widths:"1",errors:y.errors.interests,touched:y.touched.interests,defaultVal:"Select an option",className:"hi",options:["Becoming a wholesale partner","Joining GrowthPartner","Wholesale + GrowthPartner","Learning more about Nutrafol"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(m.H,{name:"referrer",visualName:(0,g.Y)(r.Fragment,null,"How did you hear about us?"," ",(0,g.Y)("span",{className:"req-astrick"},"*")),id:"referrer",value:y.values.referrer,onChange:y.handleChange,widths:"1",errors:y.errors.referrer,touched:y.touched.referrer,defaultVal:"Select an option",className:"Other"===y.values.referrer?"hidden":"",options:["Google/search engine","Social media post","Publication or magazine","Google, Facebook or Instagram ad","Other paid social media advertising","Email","TV","Recommended by friend or colleague","Other"],padX:2,"data-element":"InputSelectWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(u.Y,{name:"referrer_other",visualName:"How did you hear about us?",id:"referrer_other",type:"text",value:y.values.referrer_other,onChange:y.handleChange,widths:"1",errors:y.errors.referrer_other,touched:y.touched.referrer_other,padX:2,className:"Other"===y.values.referrer?"":"hidden","data-element":"InputTextWild","data-source-file":"prosignupform3.js"}),(0,g.Y)(i.Box,{width:1,className:"button-row",mb:"24px",px:2,"data-element":"Box","data-source-file":"prosignupform3.js"},(0,g.Y)(p.v,{primary:!0,label:"Submit",type:"submit","data-element":"ButtonWild","data-source-file":"prosignupform3.js"}))))),(0,g.Y)(c.TextElement,{text:(0,g.Y)(r.Fragment,null,"Fields marked with an ",(0,g.Y)("span",{className:"req-astrick"},"*")," are required."),element:"p",className:"body--small text-master-base-alt-default","data-element":"TextElement","data-source-file":"prosignupform3.js"}),s&&(0,g.Y)(f.A,{hideModal:()=>(l.default.onClose(),void o(!1)),isSuccess:C,modalData:a}))}},97923:function(e,a,t){var s=t(96540);function r(e){return s.createElement("svg",e,[s.createElement("rect",{width:"242",height:"242",rx:"121",fill:"white",key:0}
1),s.createElement("g",{filter:"url(#filter0_ddd_13947_68410)",key:1},s.createElement("path",{d:"M94.5334 137.106L81.8091 147.735C81.3573 148.112 80.8063 148.354 80.2211 148.43C79.6358 148.507 79.0406 148.417 78.5055 148.169C77.9704 147.921 77.5175 147.527 77.2002 147.032C76.8829 146.538 76.7144 145.963 76.7144 145.377V84.2231C76.7144 83.4062 77.041 82.6227 77.6223 82.045C78.2037 81.4674 78.9922 81.1428 79.8144 81.1428H148.014C148.837 81.1428 149.625 81.4674 150.206 82.045C150.788 82.6227 151.114 83.4062 151.114 84.2231V133.508C151.114 134.325 150.788 135.109 150.206 135.687C149.625 136.264 148.837 136.589 148.014 136.589H95.9618L94.5334 137.106Z",fill:"white"})),s.createElement("path",{opacity:"0.8",d:"M106.933 148.62L94.209 159.249C93.7572 159.627 93.2062 159.868 92.621 159.945C92.0357 160.022 91.4405 159.931 90.9054 159.683C90.3703 159.436 89.9174 159.041 89.6001 158.547C89.2828 158.052 89.1143 157.478 89.1143 156.891V95.7376C89.1143 94.9206 89.4409 94.1371 90.0222 93.5594C90.6036 92.9818 91.3921 92.6572 92.2143 92.6572H160.414C161.236 92.6572 162.025 92.9818 162.606 93.5594C163.188 94.1371 163.514 94.9206 163.514 95.7376V145.023C163.514 145.84 163.188 146.623 162.606 147.201C162.025 147.779 161.236 148.103 160.414 148.103H108.362L106.933 148.62Z",stroke:"#008078",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",key:2}),s.createElement("path",{opacity:"0.8",d:"M113.914 113.914H138.714",stroke:"#008078",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",key:3}),s.createElement("path",{opacity:"0.8",d:"M113.914 127.2H138.714",stroke:"#008078",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round",key:4}),s.createElement("defs",{key:5},s.createElement("filter",{id:"filter0_ddd_13947_68410",x:"30.7144",y:"44.1428",width:"166.4",height:"166.314",f
1ilterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},[s.createElement("feFlood",{floodOpacity:"0",result:"BackgroundImageFix",key:0}),s.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha",key:1}),s.createElement("feOffset",{dy:"11",key:2}),s.createElement("feGaussianBlur",{stdDeviation:"7.5",key:3}),s.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.592157 0 0 0 0 0.556863 0 0 0 0.1 0",key:4}),s.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13947_68410",key:5}),s.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha",key:6}),s.createElement("feOffset",{dy:"9",key:7}),s.createElement("feGaussianBlur",{stdDeviation:"23",key:8}),s.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.592157 0 0 0 0 0.556863 0 0 0 0.1 0",key:9}),s.createElement("feBlend",{mode:"normal",in2:"effect1_dropShadow_13947_68410",result:"effect2_dropShadow_13947_68410",key:10}),s.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha",key:11}),s.createElement("feOffset",{dy:"24",key:12}),s.createElement("feGaussianBlur",{stdDeviation:"19",key:13}),s.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.591667 0 0 0 0 0.557663 0 0 0 0.1 0",key:14}),s.createElement("feBlend",{mode:"normal",in2:"effect2_dropShadow_13947_68410",result:"effect3_dropShadow_13947_68410",key:15}),s.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect3_dropShadow_13947_68410",result:"shape",key:16})]))])}r.defaultProps={width:"242",height:"242",viewBox:"0 0 242 242",fill:"none"},e.exports=r,r.default=r}}]);
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.