"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8431],{91338:function(e,i,n){var a=n(85893);n(67294);var t=n(12498),o=n(23100),r=n(41689),l=n(96118),s=n(14418),c=n(88911),d=n(33838),h=n(35063),m=n.n(h),u=n(11163),p=n(33360);let InnerStack=e=>{let{title:i,desc:n,icon:d,beta:h,badge:m,enableHover:u=!0,isActive:g=!1}=e,x=(0,t.ff)("primary","gray.50"),f=(0,t.ff)("gray.100","gray.700");return(0,a.jsxs)(o.xu,{px:5,py:7,shadow:"md",bgColor:g?f:"transparent",borderWidth:"1px",borderRadius:"sm",_hover:u?{background:f}:{},h:"full",position:"relative",children:[m&&(0,a.jsx)(r.C,{position:"absolute",right:6,colorScheme:m.colorScheme,children:m.text}),(0,a.jsxs)(l.K,{alignItems:"center",spacing:{base:"3",md:"6"},direction:{base:"column",md:"row"},width:"full",height:"full",children:[(0,a.jsx)(o.xu,{fontSize:"8xl",lineHeight:0,children:d}),(0,a.jsxs)(l.K,{spacing:"1",children:[(0,a.jsxs)(s.X,{textAlign:{base:"center",md:"left"},fontSize:"xl",children:[i," ",h&&(0,a.jsx)(p.Z,{})]}),(0,a.jsx)(c.x,{color:x,pt:4,children:n})]})]})]})};i.Z=e=>{let{link:i,...n}=e,t=(0,u.useRouter)();if(!i)return(0,a.jsx)(o.xu,{children:(0,a.jsx)(InnerStack,{...n,enableHover:!1})});{let e=t.pathname===i;return(0,a.jsx)(m(),{href:i,passHref:!0,legacyBehavior:!0,children:(0,a.jsx)(d.r,{borderRadius:"sm",children:(0,a.jsx)(InnerStack,{...n,isActive:e})})})}}},82784:function(e,i,n){n.d(i,{Z:function(){return signup_SignupModalForm}});var a=n(85893),t=n(67294),o=n(93194),r=n(34151),l=n(65291),s=n(789),c=n(37368),d=n(47516),h=n(50535),m=n(10191),u=n(23438),p=n(56880),g=n(14418),x=n(88911),f=n(23100),j=n(70654),b=n(96177),C=n(96118),v=n(28129),y=n(89056),N=n(41753),I=n(18691),S=n(41052),w=n(90634),z=n(78133),O=n(24804),k=n(96272),T=n(9053);let getFieldErrorNames=e=>{let transformObjectToDotNotation=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return Object.keys(e).forEach(a=>{let t=e[a];if(!t)return;let o=i?"".concat(i,".").concat(a):a;"object"==typeof t?transformObjectToDotNotation(t,o,n):n.push(o)}),n};return transformObjectToDotNotation(e)},ScrollToFormikFieldError=e=>{let{submitCount:i,isValid:n,errors:a}=e;return(0,t.useEffect)(()=>{if(n)return;let e=getFieldErrorNames(a);if(e.length<=0)return;let i=document.querySelector("input[name='".concat(e[0],"']"));i&&i.scrollIntoView({behavior:"smooth",block:"center"})},[i]),null};var F=n(82175),_=n(74231);let W=(0,t.createContext)(void 0);var q=n(12498),R=n(57386),E=n(33838),L=n(56877),signup_StepsFooter=e=>{let{children:i}=e,n=(0,q.ff)("gray.600","gray.400");return(0,a.jsxs)(R.m,{flexDirection:{base:"column-reverse",sm:"row"},justifyContent:"space-between",children:[(0,a.jsxs)(E.r,{fontSize:"sm",fontWeight:"normal",textColor:n,href:"mailto:support@oneswitchboard.com",mt:{base:2,sm:0},children:[(0,a.jsx)(L.J,{as:d.CUu,pb:.5})," Email support@oneswitchboard.com for help"]}),(0,a.jsx)(f.xu,{children:i})]})},Y=n(204),signup_StepsHeader=e=>{let{steps:i,currentStepId:n}=e,o=(0,t.useMemo)(()=>i.filter(e=>!e.skipHeader),[i]),r=o.map(e=>{var t;let o="gray.200",r=e.icon,l="gray.600",s=e.id===n;return(s&&(o="cyan.100",l="primary"),e.id<n&&(o="green.50",l="green.500",r=d.hXj),null===(t=i.find(e=>e.id===n))||void 0===t?void 0:t.skipHeader)?null:(0,a.jsxs)(Y.k,{flexDirection:"row",mr:12,mb:6,display:{base:s?"flex":"none",sm:"flex"},children:[(0,a.jsx)(Y.k,{borderRadius:"50%",width:"48px",height:"48px",bgColor:o,justifyContent:"center",alignItems:"center",children:(0,a.jsx)(L.J,{as:r,color:l,w:"32px",h:"32px"})}),(0,a.jsxs)(Y.k,{flexDirection:"column",pl:4,children:[(0,a.jsxs)(x.x,{fontSize:"md",fontWeight:"semibold",children:["Step ",e.id]}),(0,a.jsx)(x.x,{fontSize:"sm",fontWeight:"normal",children:e.heading})]})]},e.id)});return(0,a.jsx)(Y.k,{dir:"row",children:r})};let getValidationSchema=e=>{let i=_.Ry().shape({firstName:_.Z_().trim().required("You must enter a first name."),lastName:_.Z_().trim().required("You must enter a last name."),phoneNumber:_.Z_().trim().required("You must enter a phone number.")}),{organizationType:n}=e;if("Other"===n||"501c3/4"===n){let e=_.Ry().shape({organizationName:_.Z_().trim().required("You must enter an organization name."),organizationWebsite:_.Z_().trim().required("You must enter a website URL.")});return i.concat(e)}if("Consulting Firm"===n){let e=_.Ry().shape({firmName:_.Z_().trim().required("You must enter the name of your consulting firm."),firmWebsite:_.Z_().trim().required("You must enter a website URL."),onBehalfOf:_.Z_().oneOf(["campaign","501c3/4","other","no"]).required("You must select an option."),campaignName:_.Z_().when("onBehalfOf",{is:"campaign",then:_.Z_().trim().required("You must enter a campaign name.")}),campaignLevel:_.Z_().when("onBehalfOf",{is:"campaign",then:_.Z_().trim().required("You must select a campaign level.")}),affiliation:_.Z_().when("onBehalfOf",{is:"campaign",then:_.Z_().oneOf(["Democratic","Non-Partisan"]).required("You must select the campaign's affiliation.")}),organizationName:_.Z_().when("onBehalfOf",{is:e=>"other"===e||"501c3/4"===e,then:_.Z_().trim().required("You must enter an organization name.")}),organizationWebsite:_.Z_().when("onBehalfOf",{is:e=>"other"===e||"501c3/4"===e,then:_.Z_().trim().required("You must enter an organization URL.")})});return i.concat(e)}if("Congressional Communications"===n){let e=_.Ry().shape({officialsFirstName:_.Z_().trim().required("You must enter the elected official's first name."),officialsLastName:_.Z_().trim().required("You must enter the elected official's last name."),officialsOfficeLevel:_.Z_().oneOf(["U.S. Senate","U.S. House","Statewide","State Legislative","County","Municipal","Other"]).required("You must select the elected official's office level."),officialsWebsite:_.Z_().trim().required("You must enter the elected official's website URL."),affiliation:_.Z_().oneOf(["Democratic","Non-Partisan"]).required("You must select the elected official's affiliation.")});return i.concat(e)}if("Campaign/Committee"===n){let e=_.Ry().shape({campaignName:_.Z_().trim().required("You must enter the campaign name."),campaignLevel:_.Z_().oneOf(["U.S. Senate","U.S. House","Statewide","State Legislative","County","Municipal","Other"]).required("You must select the campaign level."),affiliation:_.Z_().oneOf(["Democratic","Non-Partisan"]).required("You must select the campaign affiliation.")});return i.concat(e)}return i};var Z=n(15058);let AccountPreferencesStep_getValidationSchema=e=>{let i=_.Ry().shape({pointOfContact:_.Z_().oneOf(["me","other"]).required("You must select a point of contact."),pointOfContactEmail:_.Z_().when("pointOfContact",{is:"other",then:_.Z_().trim().required("You must enter the point of contact's email.")})});return e.toolTypes.includes("textMessage")&&(i=i.concat(_.Ry().shape({billingContact:_.IX().of(_.Z_()).required("You must select at least one billing contact option.").min(1,"You must select at least one billing contact option."),billingContactEmails:_.Z_().when("billingContact",{is:e=>e&&e.includes("other"),then:_.Z_().trim().required("You must enter the billing point of contact's email(s).")}),expectedCapacity:_.Z_().trim().required("You must enter an expected capacity.")}))),i};var P=n(60378);let B=_.Ry().shape({userEmail:_.Z_().email("You must enter a valid email.").required("You must enter a valid email."),organizationType:_.Z_().oneOf(["Campaign/Committee","Congressional Communications","Consulting Firm","501c3/4","Other"]).required("You must select an organization type."),toolTypes:_.IX().of(_.Z_()).required("You must select at least one tool type.").min(1,"You must select at least one tool type.")});var D=n(63750);let A=[{id:0,heading:null,icon:null,skipHeader:!0,StepContent:()=>{let{steps:e,currentStep:i,onFormSectionSubmit:n,isSubmitting:o,initialData:r}=(0,t.useContext)(W),l=(0,F.TA)({initialValues:{userEmail:(null==r?void 0:r.userEmail)||"",organizationType:(null==r?void 0:r.organizationType)||"",toolTypes:(null==r?void 0:r.toolTypes)||[]},onSubmit:e=>{n("initialData",e)},validationSchema:B,enableReinitialize:!0});return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(h.h,{as:"form",onSubmit:l.handleSubmit,maxW:"56.25rem",children:[(0,a.jsx)(ScrollToFormikFieldError,{submitCount:l.submitCount,errors:l.errors,isValid:l.isValid}),(0,a.jsx)(m.x,{fontSize:"xl",children:"Request a New Switchboard Organization"}),(0,a.jsx)(u.o,{}),(0,a.jsxs)(p.f,{children:[(0,a.jsxs)(x.x,{fontSize:"md",mb:6,children:[(0,a.jsx)(x.x,{as:"span",fontWeight:"bold",children:"NOTE:"})," ","To request a log in for an existing Switchboard account, please email your account admin."]}),(0,a.jsx)(signup_StepsHeader,{steps:e,currentStepId:i.id}),(0,a.jsxs)(f.xu,{children:[(0,a.jsxs)(j.NI,{width:{base:"100%",sm:"50%"},mb:6,isInvalid:l.errors.userEmail&&l.touched.userEmail,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"userEmail",children:"Your Email"}),(0,a.jsx)(v.I,{name:"userEmail",type:"email",value:l.values.userEmail,placeholder:"you@email.com",onChange:l.handleChange}),(0,a.jsx)(y.J1,{children:l.errors.userEmail})]}),(0,a.jsxs)(j.NI,{width:{base:"100%",sm:"100%"},mb:6,isInvalid:l.errors.organizationType&&l.touched.organizationType,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"organizationType",children:"Organization Type"}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:2,children:"Request one account per organization. For example, if you are a consulting firm with multiple clients, put your client's organization name and website in this form, not your firm's name."}),(0,a.jsxs)(I.P,{name:"organizationType",defaultValue:l.values.organizationType,placeholder:"Select an Organization Type",onChange:l.handleChange,width:{base:"100%",sm:"50%"},children:[(0,a.jsx)("option",{children:"Campaign/Committee"}),(0,a.jsx)("option",{children:"Congressional Communications"}),(0,a.jsx)("option",{children:"Consulting Firm"}),(0,a.jsx)("option",{children:"501c3/4"}),(0,a.jsx)("option",{children:"Other"})]}),(0,a.jsx)(y.J1,{children:l.errors.organizationType})]}),(0,a.jsxs)(j.NI,{as:"fieldset",isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"toolTypes",children:"What tools are you interested in?"}),(0,a.jsx)(P.c,{defaultValue:l.values.toolTypes,children:(0,a.jsxs)(w.g,{align:"flex-start",children:[(0,a.jsx)(Z.X,{name:"toolTypes",value:"textMessage",onChange:l.handleChange,isChecked:l.values.toolTypes.includes("textMessage"),isRequired:!1,children:"Text Messaging"}),(0,a.jsx)(Z.X,{name:"toolTypes",value:"email",onChange:l.handleChange,isChecked:l.values.toolTypes.includes("email"),isRequired:!1,children:"Email"}),(0,a.jsx)(Z.X,{name:"toolTypes",value:"forms",onChange:l.handleChange,isChecked:l.values.toolTypes.includes("forms"),isRequired:!1,children:"Forms"}),(0,a.jsx)(Z.X,{name:"toolTypes",value:"shortlinks",onChange:l.handleChange,isChecked:l.values.toolTypes.includes("shortlinks"),isRequired:!1,children:"Shortlinks"}),"Congressional Communications"!==l.values.organizationType&&(0,a.jsx)(Z.X,{name:"toolTypes",value:"fundraisingReporting",onChange:l.handleChange,isChecked:l.values.toolTypes.includes("fundraisingReporting"),isRequired:!1,children:"Fundraising Analytics"}),(0,a.jsx)(Z.X,{name:"toolTypes",value:"meta",onChange:l.handleChange,isChecked:l.values.toolTypes.includes("meta"),isRequired:!1,children:"Meta Pixel Advertising Optimization"})]})}),l.errors.toolTypes&&l.touched.toolTypes&&(0,a.jsx)(x.x,{color:"red",children:l.errors.toolTypes})]})]})]}),(0,a.jsx)(signup_StepsFooter,{children:(0,a.jsx)(k.z,{variant:"primary",type:"submit",isLoading:o,rightIcon:(0,a.jsx)(d.OEZ,{}),children:"Next"})})]})})}},{id:1,heading:"About You",icon:d.EDj,StepContent:()=>{let{steps:e,currentStep:i,onFormSectionSubmit:n,initialData:o,onBackClick:r,aboutYou:l}=(0,t.useContext)(W),s=(0,t.useMemo)(()=>getValidationSchema(o),[o]),c=(0,F.TA)({initialValues:{firstName:(null==l?void 0:l.firstName)||"",lastName:(null==l?void 0:l.lastName)||"",phoneNumber:(null==l?void 0:l.phoneNumber)||"",jobTitle:(null==l?void 0:l.jobTitle)||"",organizationName:(null==l?void 0:l.organizationName)||"",organizationWebsite:(null==l?void 0:l.organizationWebsite)||"",aboutOrganization:(null==l?void 0:l.aboutOrganization)||"",officialsFirstName:(null==l?void 0:l.officialsFirstName)||"",officialsLastName:(null==l?void 0:l.officialsLastName)||"",officialsWebsite:(null==l?void 0:l.officialsWebsite)||"",officialsOfficeLevel:(null==l?void 0:l.officialsOfficeLevel)||"",affiliation:(null==l?void 0:l.affiliation)||"",aboutCampaign:(null==l?void 0:l.aboutCampaign)||"",campaignName:(null==l?void 0:l.campaignName)||"",campaignWebsite:(null==l?void 0:l.campaignWebsite)||"",campaignLevel:(null==l?void 0:l.campaignLevel)||"",firmName:(null==l?void 0:l.firmName)||"",firmWebsite:(null==l?void 0:l.firmWebsite)||"",onBehalfOf:(null==l?void 0:l.onBehalfOf)||"",aboutFirm:(null==l?void 0:l.aboutFirm)||""},onSubmit:(e,i)=>{let{resetForm:a}=i;n("aboutYou",e)},validationSchema:s}),{organizationType:_}=o,{onBehalfOf:q}=c.values,R=(0,t.useRef)(null);return(0,t.useEffect)(()=>{var e;null===(e=R.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[c.values.onBehalfOf]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(h.h,{as:"form",onSubmit:c.handleSubmit,maxW:"56.25rem",children:[(0,a.jsx)(ScrollToFormikFieldError,{submitCount:c.submitCount,errors:c.errors,isValid:c.isValid}),(0,a.jsx)(m.x,{fontSize:"xl",children:"Request a New Switchboard Organization"}),(0,a.jsx)(u.o,{}),(0,a.jsxs)(p.f,{children:[(0,a.jsxs)(T.Z,{mb:6,children:[(0,a.jsx)(g.X,{as:"h5",fontSize:"lg",mb:4,children:"Thanks, we'll be in touch in one business day (and usually sooner)!"}),(0,a.jsxs)(x.x,{children:["If you can provide more information by submitting the form below, we can get you set up even faster!"," "]})]}),(0,a.jsx)(signup_StepsHeader,{steps:e,currentStepId:i.id}),(0,a.jsxs)(f.xu,{children:[(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"About you"}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.firstName&&c.touched.firstName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"firstName",children:"First Name"}),(0,a.jsx)(v.I,{type:"text",name:"firstName",placeholder:"Your first name",value:c.values.firstName,onChange:c.handleChange}),(0,a.jsx)(y.J1,{children:c.errors.firstName})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.lastName&&c.touched.lastName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"lastName",children:"Last Name"}),(0,a.jsx)(v.I,{type:"text",name:"lastName",placeholder:"Your last name",value:c.values.lastName,onChange:c.handleChange}),(0,a.jsx)(y.J1,{children:c.errors.lastName})]})]}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.phoneNumber&&c.touched.phoneNumber,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"phoneNumber",children:"Phone Number"}),(0,a.jsx)(v.I,{type:"text",name:"phoneNumber",value:c.values.phoneNumber,onChange:c.handleChange,placeholder:"(___) ___-____"}),(0,a.jsx)(y.J1,{children:c.errors.phoneNumber})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.jobTitle&&c.touched.jobTitle,children:[(0,a.jsx)(b.l,{htmlFor:"jobTitle",children:"Job Title"}),(0,a.jsx)(v.I,{type:"text",name:"jobTitle",value:c.values.jobTitle,onChange:c.handleChange,placeholder:"Your job title"}),(0,a.jsx)(y.J1,{children:c.errors.jobTitle})]})]})]}),("Other"===_||"501c3/4"===_)&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsxs)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:["About your ","501c3/4"===_?"501c3/4":"organization"]}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.organizationName&&c.touched.organizationName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"organizationName",children:"Organization Name"}),(0,a.jsx)(v.I,{type:"text",name:"organizationName",onChange:c.handleChange,placeholder:"Name of your ".concat("501c3/4"===_?"501c3/4":"organization")}),(0,a.jsx)(y.J1,{children:c.errors.organizationName})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.organizationWebsite&&c.touched.organizationWebsite,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"organizationWebsite",children:"Website"}),(0,a.jsx)(v.I,{type:"text",name:"organizationWebsite",onChange:c.handleChange,placeholder:"https://website.com"}),(0,a.jsx)(y.J1,{children:c.errors.organizationWebsite})]})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsxs)(b.l,{htmlFor:"aboutOrganization",children:["Tell us about your ","501c3/4"===_?"501c3/4":"organization"]}),(0,a.jsx)(N.g,{name:"aboutOrganization",placeholder:"Optional description",onChange:c.handleChange})]})]}),"Congressional Communications"===_&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"About the elected official"}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.officialsFirstName&&c.touched.officialsFirstName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"officialsFirstName",children:"First name"}),(0,a.jsx)(v.I,{type:"text",name:"officialsFirstName",onChange:c.handleChange,value:c.values.officialsFirstName,placeholder:"Principal's first name"}),(0,a.jsx)(y.J1,{children:c.errors.officialsFirstName})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.officialsLastName&&c.touched.officialsLastName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"officialsLastName",children:"Last name"}),(0,a.jsx)(v.I,{type:"text",name:"officialsLastName",onChange:c.handleChange,value:c.values.officialsLastName,placeholder:"Principal's last name"}),(0,a.jsx)(y.J1,{children:c.errors.officialsLastName})]})]}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.officialsOfficeLevel&&c.touched.officialsOfficeLevel,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"officialsOfficeLevel",children:"Office Level"}),(0,a.jsxs)(I.P,{name:"officialsOfficeLevel",placeholder:"Select...",defaultValue:c.values.officialsOfficeLevel,onChange:c.handleChange,children:[(0,a.jsx)("option",{children:"U.S. Senate"}),(0,a.jsx)("option",{children:"U.S. House"}),(0,a.jsx)("option",{children:"Statewide"}),(0,a.jsx)("option",{children:"State Legislative"}),(0,a.jsx)("option",{children:"County"}),(0,a.jsx)("option",{children:"Municipal"}),(0,a.jsx)("option",{children:"Other"})]}),(0,a.jsx)(y.J1,{children:c.errors.officialsOfficeLevel})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.officialsWebsite&&c.touched.officialsWebsite,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"officialsWebsite",children:"Website"}),(0,a.jsx)(v.I,{type:"text",name:"officialsWebsite",onChange:c.handleChange,value:c.values.officialsWebsite,placeholder:"https://website.com"}),(0,a.jsx)(y.J1,{children:c.errors.officialsWebsite})]})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.affiliation&&c.touched.affiliation,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"affiliation",children:"Political affiliation"}),(0,a.jsx)(S.E,{defaultValue:c.values.affiliation,children:(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[(0,a.jsx)(z.Y,{name:"affiliation",value:"Democratic",onChange:c.handleChange,isChecked:"Democratic"===c.values.affiliation,children:"Democratic"}),(0,a.jsx)(z.Y,{name:"affiliation",value:"Non-Partisan",mb:2,onChange:c.handleChange,isChecked:"Non-Partisan"===c.values.affiliation,children:"Non-Partisan"})]})}),(0,a.jsx)(y.J1,{children:c.errors.affiliation})]})]}),"Campaign/Committee"===_&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Campaign/Committee details"}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.campaignName&&c.touched.campaignName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"campaignName",children:"Campaign/Committee Name"}),(0,a.jsx)(v.I,{type:"text",name:"campaignName",onChange:c.handleChange,value:c.values.campaignName,placeholder:"Campaign/Committee"}),(0,a.jsx)(y.J1,{children:c.errors.campaignName})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsx)(b.l,{htmlFor:"campaignWebsite",children:"Website"}),(0,a.jsx)(v.I,{type:"text",name:"campaignWebsite",onChange:c.handleChange,value:c.values.campaignWebsite,placeholder:"https://website.com"})]})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsx)(b.l,{htmlFor:"aboutCampaign",children:"Tell us about your campaign/committee"}),(0,a.jsx)(N.g,{name:"aboutCampaign",placeholder:"Optional description",value:c.values.aboutCampaign,onChange:c.handleChange})]}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.campaignLevel&&c.touched.campaignLevel,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"campaignLevel",children:"Office Level"}),(0,a.jsxs)(I.P,{name:"campaignLevel",placeholder:"Select...",defaultValue:c.values.campaignLevel,onChange:c.handleChange,children:[(0,a.jsx)("option",{children:"U.S. Senate"}),(0,a.jsx)("option",{children:"U.S. House"}),(0,a.jsx)("option",{children:"Statewide"}),(0,a.jsx)("option",{children:"State Legislative"}),(0,a.jsx)("option",{children:"County"}),(0,a.jsx)("option",{children:"Municipal"}),(0,a.jsx)("option",{children:"Other"})]}),(0,a.jsx)(y.J1,{children:c.errors.campaignLevel})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.affiliation&&c.touched.affiliation,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"affiliation",children:"Political affiliation"}),(0,a.jsx)(S.E,{defaultValue:c.values.affiliation,children:(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[(0,a.jsx)(z.Y,{name:"affiliation",value:"Democratic",onChange:c.handleChange,isChecked:"Democratic"===c.values.affiliation,children:"Democratic"}),(0,a.jsx)(z.Y,{name:"affiliation",value:"Non-Partisan",onChange:c.handleChange,isChecked:"Non-Partisan"===c.values.affiliation,children:"Non-Partisan"})]})}),(0,a.jsx)(y.J1,{children:c.errors.affiliation})]})]})]}),"Consulting Firm"===_&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"About your firm"}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.firmName&&c.touched.firmName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"firmName",children:"Name of Consulting Firm"}),(0,a.jsx)(v.I,{type:"text",name:"firmName",onChange:c.handleChange,value:c.values.firmName,placeholder:"Firm name"}),(0,a.jsx)(y.J1,{children:c.errors.firmName})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.firmWebsite&&c.touched.firmWebsite,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"firmWebsite",children:"Website"}),(0,a.jsx)(v.I,{type:"text",name:"firmWebsite",onChange:c.handleChange,value:c.values.firmWebsite,placeholder:"https://website.com"}),(0,a.jsx)(y.J1,{children:c.errors.firmWebsite})]})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsx)(b.l,{htmlFor:"aboutFirm",children:"Tell us about your consulting firm"}),(0,a.jsx)(N.g,{name:"aboutFirm",placeholder:"Optional description",value:c.values.aboutFirm,onChange:c.handleChange})]}),(0,a.jsxs)(j.NI,{mb:6,isInvalid:c.errors.onBehalfOf&&c.touched.onBehalfOf,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"onBehalfOf",children:"Are you setting this account up on behalf of another organization or campaign?"}),(0,a.jsx)(S.E,{defaultValue:c.values.onBehalfOf,children:(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[(0,a.jsx)(z.Y,{name:"onBehalfOf",value:"campaign",onChange:c.handleChange,isChecked:"campaign"===c.values.onBehalfOf,children:"Yes, a campaign"}),(0,a.jsx)(z.Y,{name:"onBehalfOf",value:"501c3/4",onChange:c.handleChange,isChecked:"501c3/4"===c.values.onBehalfOf,children:"Yes, a 501c3/501c4"}),(0,a.jsx)(z.Y,{name:"onBehalfOf",value:"other",onChange:c.handleChange,isChecked:"other"===c.values.onBehalfOf,children:"Yes, other"}),(0,a.jsx)(z.Y,{name:"onBehalfOf",value:"no",onChange:c.handleChange,isChecked:"no"===c.values.onBehalfOf,children:"No"})]})}),(0,a.jsx)(y.J1,{children:c.errors.onBehalfOf})]})]}),"campaign"===q&&(0,a.jsxs)(j.NI,{ref:R,as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Campaign/Committee details"}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.campaignName&&c.touched.campaignName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"campaignName",children:"Campaign Name"}),(0,a.jsx)(v.I,{type:"text",name:"campaignName",onChange:c.handleChange,value:c.values.campaignName,placeholder:"Campaign/Committee"}),(0,a.jsx)(y.J1,{children:c.errors.campaignName})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsx)(b.l,{htmlFor:"campaignWebsite",children:"Website"}),(0,a.jsx)(v.I,{type:"text",name:"campaignWebsite",onChange:c.handleChange,value:c.values.campaignWebsite,placeholder:"https://website.com"})]})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsx)(b.l,{htmlFor:"aboutCampaign",children:"Tell us about the campaign"}),(0,a.jsx)(N.g,{name:"aboutCampaign",placeholder:"Optional description",value:c.values.aboutCampaign,onChange:c.handleChange})]}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.campaignLevel&&c.touched.campaignLevel,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"campaignLevel",children:"Office Level"}),(0,a.jsxs)(I.P,{name:"campaignLevel",placeholder:"Select...",defaultValue:c.values.campaignLevel,onChange:c.handleChange,children:[(0,a.jsx)("option",{children:"U.S. Senate"}),(0,a.jsx)("option",{children:"U.S. House"}),(0,a.jsx)("option",{children:"Statewide"}),(0,a.jsx)("option",{children:"State Legislative"}),(0,a.jsx)("option",{children:"County"}),(0,a.jsx)("option",{children:"Municipal"}),(0,a.jsx)("option",{children:"Other"})]}),(0,a.jsx)(y.J1,{children:c.errors.campaignLevel})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.affiliation&&c.touched.affiliation,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"affiliation",children:"Political affiliation"}),(0,a.jsx)(S.E,{defaultValue:c.values.affiliation,children:(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[(0,a.jsx)(z.Y,{name:"affiliation",value:"Democratic",mb:2,onChange:c.handleChange,isChecked:"Democratic"===c.values.affiliation,children:"Democratic"}),(0,a.jsx)(z.Y,{name:"affiliation",value:"Non-Partisan",mb:2,onChange:c.handleChange,isChecked:"Non-Partisan"===c.values.affiliation,children:"Non-Partisan"})]})}),(0,a.jsx)(y.J1,{children:c.errors.affiliation})]})]})]}),("501c3/4"===q||"other"===q)&&(0,a.jsxs)(j.NI,{ref:R,as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsxs)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:["About the ","501c3/4"===q?"501c3/4":"organization"]}),(0,a.jsxs)(C.K,{spacing:6,mb:8,direction:{base:"column",sm:"row"},children:[(0,a.jsxs)(j.NI,{isInvalid:c.errors.organizationName&&c.touched.organizationName,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"organizationName",children:"Organization Name"}),(0,a.jsx)(v.I,{type:"text",name:"organizationName",onChange:c.handleChange,value:c.values.organizationName,placeholder:"Name of the ".concat("501c3/4"===q?"501c3/4":"organization")}),(0,a.jsx)(y.J1,{children:c.errors.organizationName})]}),(0,a.jsxs)(j.NI,{isInvalid:c.errors.organizationWebsite&&c.touched.organizationWebsite,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"organizationWebsite",children:"Website"}),(0,a.jsx)(v.I,{type:"text",name:"organizationWebsite",onChange:c.handleChange,value:c.values.organizationWebsite,placeholder:"https://website.com"}),(0,a.jsx)(y.J1,{children:c.errors.organizationWebsite})]})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsxs)(b.l,{htmlFor:"aboutOrganization",children:["Tell us about the ","501c3/4"===q?"501c3/4":"organization"]}),(0,a.jsx)(N.g,{name:"aboutOrganization",placeholder:"Optional description",value:c.values.aboutOrganization,onChange:c.handleChange})]})]})]})]})]}),(0,a.jsx)(signup_StepsFooter,{children:(0,a.jsxs)(O.U,{children:[(0,a.jsx)(k.z,{variant:"solid",colorScheme:"gray",onClick:r,leftIcon:(0,a.jsx)(d.u_m,{}),children:"Back"}),(0,a.jsx)(k.z,{variant:"primary",type:"submit",rightIcon:(0,a.jsx)(d.OEZ,{}),children:"Next"})]})})]})})}},{id:2,heading:"Tool Preferences",icon:d.DQ0,StepContent:()=>{var e;let{steps:i,currentStep:n,onFormSectionSubmit:o,initialData:r,onBackClick:l,toolPreferences:s,aboutYou:c}=(0,t.useContext)(W),g=[c.firmWebsite,c.campaignWebsite,c.officialsWebsite,c.organizationWebsite].filter(e=>e),getValidationSchema=e=>{let i=_.Ry().shape({shortlinkUrls:_.Z_().test("reused-url","Shortlink should be different than website",(e,i)=>!e||!e.split(",").some(e=>g.includes(e.trim()))),actBlueEntityId:_.Z_().matches(/^\d+$/,{message:"ActBlue Entity IDs are numbers.",excludeEmptyString:!0})}),{toolTypes:n}=e;return n.includes("textMessage")&&(i=i.concat(_.Ry().shape({areaCodes:_.Z_().trim().required("You must enter area code options.")}))),n.includes("shortlinks")&&(i=i.concat(_.Ry().shape({shortlinkUrls:_.Z_().trim().required("You must enter shortlink URL options.")}))),n.includes("meta")&&(i=i.concat(_.Ry().shape({metaOptimization:_.IX().of(_.Z_()).required("You must select at least one meta optimization feature.").min(1,"You must select at least one meta optimization feature.")}))),i},C=(0,t.useMemo)(()=>getValidationSchema(r),[r]),N=(0,F.TA)({initialValues:{areaCodes:(null==s?void 0:s.areaCodes)||"",emailDomain:(null==s?void 0:s.emailDomain)||"",integrations:(null==s?void 0:s.integrations)||[],otherIntegrations:(null==s?void 0:s.otherIntegrations)||"",actBlueEntityId:(null==s?void 0:s.actBlueEntityId)||"",shortlinkUrls:(null==s?void 0:s.shortlinkUrls)||"",metaOptimization:(null==s?void 0:s.metaOptimization)||[]},onSubmit:e=>{o("toolPreferences",e)},validationSchema:C}),{toolTypes:I}=r,S=I.includes("textMessage"),z=I.includes("email"),T=I.includes("shortlinks"),q=I.includes("fundraisingReporting"),R="Congressional Communications"===r.organizationType,L=I.includes("meta");return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(h.h,{as:"form",onSubmit:N.handleSubmit,maxW:"56.25rem",children:[(0,a.jsx)(ScrollToFormikFieldError,{submitCount:N.submitCount,errors:N.errors,isValid:N.isValid}),(0,a.jsx)(m.x,{fontSize:"xl",children:"Request a New Switchboard Organization"}),(0,a.jsx)(u.o,{}),(0,a.jsxs)(p.f,{children:[(0,a.jsx)(signup_StepsHeader,{steps:i,currentStepId:n.id}),(0,a.jsxs)(f.xu,{children:[S&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,mb:10,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Area code preferences"}),(0,a.jsxs)(j.NI,{mb:3,isInvalid:N.errors.areaCodes&&N.touched.areaCodes,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"areaCodes",children:"Please provide 2-3 area code options just in case your first choice is not available."}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:4,children:"If you don't care or want a pool of numbers (either national or state specific), please indicate below:"}),(0,a.jsx)(v.I,{type:"text",name:"areaCodes",placeholder:"123, 456, 789",value:N.values.areaCodes,onChange:N.handleChange}),(0,a.jsx)(y.J1,{children:N.errors.areaCodes})]})]}),z&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,mb:10,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Email Setup"}),(0,a.jsxs)(j.NI,{mb:3,children:[(0,a.jsx)(b.l,{htmlFor:"emailDomain",children:"Please provide the domain you will email from."}),(0,a.jsxs)(j.Q6,{lineHeight:"20px",mb:4,children:["Let us know the domain you plan to send email from (",(0,a.jsx)(x.x,{variant:"muted",as:"span",textDecor:"underline",children:"name@domain.com"})," ","- the part after the @ sign). This should be a domain you own or have access to the DNS records for (not @gmail.com). We will send over DNS records for you to configure."]}),(0,a.jsx)(v.I,{type:"text",name:"emailDomain",placeholder:"example.com",value:N.values.emailDomain,onChange:N.handleChange}),(0,a.jsx)(y.J1,{children:N.errors.emailDomain})]})]}),(S||q)&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Integration preferences"}),S&&(0,a.jsxs)(j.NI,{mb:10,children:[(0,a.jsx)(b.l,{children:"Do you want to integrate with any of the below platforms?"}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:2,children:'If you don\'t see an option that you want, please let us know in the "other" box - we are always looking for feedback on how we can better integrate with other platforms'}),(0,a.jsxs)(j.Q6,{lineHeight:"20px",mb:4,children:["Not sure what you need?"," ",(0,a.jsx)(E.r,{isExternal:!0,fontWeight:"medium",textDecoration:"underline",href:"https://switchboard.notion.site/Switchboard-Wiki-f48fe4dcac0e4fe9aa43c31505a56ec0",children:"Check out our help documents."})]}),(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[!R&&(0,a.jsx)(Z.X,{name:"integrations",value:"actBlue",onChange:N.handleChange,isChecked:N.values.integrations.includes("actBlue"),children:"ActBlue"}),(0,a.jsx)(Z.X,{name:"integrations",value:"ngp",onChange:N.handleChange,isChecked:N.values.integrations.includes("ngp"),children:"NGP"}),(0,a.jsx)(Z.X,{name:"integrations",value:"voteBuilder",onChange:N.handleChange,isChecked:N.values.integrations.includes("voteBuilder"),children:"VoteBuilder"}),(0,a.jsx)(Z.X,{name:"integrations",value:"none",onChange:N.handleChange,isChecked:N.values.integrations.includes("none"),children:"No integrations needed"}),(0,a.jsx)(Z.X,{name:"integrations",value:"other",onChange:N.handleChange,isChecked:N.values.integrations.includes("other"),children:"Other..."}),N.values.integrations.includes("other")&&(0,a.jsx)(v.I,{type:"text",name:"otherIntegrations",placeholder:"Other integrations",width:"180px",value:N.values.otherIntegrations,onChange:N.handleChange})]})]}),!R&&(0,a.jsxs)(j.NI,{mb:10,isInvalid:!!N.errors.actBlueEntityId,children:[(0,a.jsx)(b.l,{children:"Share your ActBlue entity ID, or we'll find it for you later."}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:2,children:"Switchboard SMS can generate text lists from your ActBlue donation data. Text donors who contributed certain amounts, on certain dates, or from certain forms, and add other filters in just a few clicks within Switchboard."}),(0,a.jsxs)(j.Q6,{lineHeight:"20px",mb:4,children:["As a free added bonus, we can also"," ",(0,a.jsx)(E.r,{isExternal:!0,fontWeight:"medium",textDecoration:"underline",href:"https://oneswitchboard.com/welcome/fundraising_reporting",children:"generate automatically updating fundraising reports"})," ","for your entire ActBlue operation."]}),(0,a.jsx)(v.I,{type:"text",name:"actBlueEntityId",width:"50%",placeholder:"Entity ID",value:N.values.actBlueEntityId,onChange:N.handleChange}),(0,a.jsx)(y.J1,{children:N.errors.actBlueEntityId})]})]}),(S||T)&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,mb:10,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Shortlink preferences"}),(0,a.jsxs)(j.NI,{isInvalid:N.errors.shortlinkUrls&&N.touched.shortlinkUrls,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"shortlinkUrls",children:"Please provide 2-3 URL options in order of preference to ensure we can get one that you want."}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:2,children:"Please stick to normal domain endings like .us, .com or .org. This URL should be different from your organization's website."}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:4,children:"e.g. alexis4mayor.com is my website so my shortlink preference could be a4dc.us"}),(0,a.jsx)(v.I,{type:"text",name:"shortlinkUrls",placeholder:"a4dc.us, voteme.com, savebees.org",value:N.values.shortlinkUrls,onChange:N.handleChange}),(0,a.jsx)(y.J1,{children:N.errors.shortlinkUrls})]})]}),L&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Meta ad optimization"}),(0,a.jsxs)(j.NI,{isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"metaOptimization",children:"Connect to Meta"}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:4,children:"We can help you share donation information back to Meta (Facebook) to help optimize your digital advertising programs. Sending data via the Pixel is a current best practice, but sending complete donation data via the Conversions API vastly increases the data Meta has to work with when optimizing your ads. We can help you with either or both, for free."}),(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[(0,a.jsx)(Z.X,{name:"metaOptimization",value:"helpWithPixel",onChange:e=>{if(!e.target.checked){let e=N.values.metaOptimization.indexOf("helpWithConversionsApi");e>-1&&N.values.metaOptimization.splice(e,1)}N.handleChange(e)},isChecked:N.values.metaOptimization.includes("helpWithPixel"),isRequired:!1,children:"Help me set up the Meta Pixel after signup."}),(0,a.jsx)(Z.X,{name:"metaOptimization",value:"helpWithConversionsApi",onChange:N.handleChange,isChecked:N.values.metaOptimization.includes("helpWithConversionsApi")&&N.values.metaOptimization.includes("helpWithPixel"),isRequired:!1,isDisabled:!N.values.metaOptimization.includes("helpWithPixel"),children:"Help me set up the Meta Conversions API after signup."})]}),(null===(e=N.errors.metaOptimization)||void 0===e?void 0:e.length)>0&&!!N.touched.metaOptimization&&(0,a.jsx)(x.x,{color:"red",children:N.errors.metaOptimization})]})]})]})]}),(0,a.jsx)(signup_StepsFooter,{children:(0,a.jsxs)(O.U,{children:[(0,a.jsx)(k.z,{variant:"solid",colorScheme:"gray",onClick:l,leftIcon:(0,a.jsx)(d.u_m,{}),children:"Back"}),(0,a.jsx)(k.z,{variant:"primary",type:"submit",rightIcon:(0,a.jsx)(d.OEZ,{}),children:"Next"})]})})]})})}},{id:3,heading:"Account Preferences",icon:d.MBj,StepContent:()=>{var e;let{steps:i,currentStep:n,onFormSectionSubmit:o,initialData:r,isSubmitting:l,onBackClick:s}=(0,t.useContext)(W),c=(0,t.useMemo)(()=>AccountPreferencesStep_getValidationSchema(r),[r]),g=(0,F.TA)({initialValues:{teamAdmins:"",pointOfContact:"",pointOfContactEmail:"",billingContact:[],billingContactEmails:"",expectedCapacity:""},onSubmit:(e,i)=>{let{resetForm:n}=i;o("accountPreferences",e)},validationSchema:c}),{toolTypes:C}=r,N=C.includes("textMessage");return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(h.h,{as:"form",onSubmit:g.handleSubmit,maxW:"56.25rem",children:[(0,a.jsx)(ScrollToFormikFieldError,{submitCount:g.submitCount,errors:g.errors,isValid:g.isValid}),(0,a.jsx)(m.x,{fontSize:"xl",children:"Request a New Switchboard Organization"}),(0,a.jsx)(u.o,{}),(0,a.jsxs)(p.f,{children:[(0,a.jsx)(signup_StepsHeader,{steps:i,currentStepId:n.id}),(0,a.jsxs)(f.xu,{children:[(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,mb:10,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Team preferences"}),(0,a.jsxs)(j.NI,{mb:10,isInvalid:(g.errors.pointOfContact||g.errors.pointOfContactEmail)&&g.touched.pointOfContact,isRequired:!0,children:[(0,a.jsx)(b.l,{children:"Primary point of contact"}),(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[(0,a.jsx)(z.Y,{name:"pointOfContact",value:"me",onChange:g.handleChange,isChecked:"me"===g.values.pointOfContact,children:"Me (the person filling out this form)"}),(0,a.jsx)(z.Y,{name:"pointOfContact",value:"other",onChange:g.handleChange,isChecked:"other"===g.values.pointOfContact,children:"Other..."}),"other"===g.values.pointOfContact&&(0,a.jsx)(v.I,{type:"email",width:"250px",name:"pointOfContactEmail",placeholder:"them@email.com",onChange:g.handleChange}),(0,a.jsx)(y.J1,{children:g.errors.pointOfContact}),(0,a.jsx)(y.J1,{children:g.errors.pointOfContactEmail})]})]}),(0,a.jsxs)(j.NI,{children:[(0,a.jsx)(b.l,{htmlFor:"teamAdmins",children:"Who else needs to be added as an admin to the account?"}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:4,children:"As an owner of the Switchboard account you can edit permissions and add more folks to the account later."}),(0,a.jsx)(v.I,{type:"email",multiple:!0,name:"teamAdmins",placeholder:"person1@email.com, person2@email.com",onChange:g.handleChange})]})]}),N&&(0,a.jsxs)(j.NI,{as:"fieldset",borderTop:"1px",borderTopColor:"gray.200",pt:3,mb:10,children:[(0,a.jsx)(b.l,{as:"legend",pr:2,textColor:"gray.600",fontSize:"sm",children:"Billing"}),(0,a.jsxs)(j.NI,{isRequired:!0,mb:10,children:[(0,a.jsx)(b.l,{htmlFor:"billingContact",children:"Billing Contact"}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:4,children:"Please include everyone who should receive the invoice each month, including yourself. This can be multiple emails."}),(0,a.jsxs)(w.g,{spacing:2,align:"left",children:[(0,a.jsx)(Z.X,{name:"billingContact",value:"sameAsAdmin",onChange:g.handleChange,isChecked:g.values.billingContact.includes("sameAsAdmin"),isRequired:!1,children:"Contact all admins listed above"}),(0,a.jsx)(Z.X,{name:"billingContact",value:"other",onChange:g.handleChange,isChecked:g.values.billingContact.includes("other"),isRequired:!1,children:"Add additional"}),g.values.billingContact.includes("other")&&(0,a.jsx)(v.I,{type:"email",multiple:!0,width:"250px",name:"billingContactEmails",placeholder:"them@email.com",onChange:g.handleChange})]}),(null===(e=g.errors.billingContact)||void 0===e?void 0:e.length)>0&&!!g.touched.billingContact&&(0,a.jsx)(x.x,{color:"red",children:g.errors.billingContact}),g.errors.billingContactEmails&&!!g.touched.billingContact&&(0,a.jsx)(x.x,{color:"red",children:g.errors.billingContactEmails})]}),(0,a.jsxs)(j.NI,{isInvalid:g.errors.expectedCapacity&&g.touched.expectedCapacity,isRequired:!0,children:[(0,a.jsx)(b.l,{htmlFor:"expectedCapacity",children:"What is your expected texting volume?"}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:2,children:"This can just be an estimate to give us a better understanding of how we help your program succeed!"}),(0,a.jsx)(j.Q6,{lineHeight:"20px",mb:4,children:"e.g. 10k/day, 3 rounds of 50k over 2 months, etc."}),(0,a.jsx)(v.I,{type:"text",name:"expectedCapacity",placeholder:"10k/day",onChange:g.handleChange}),(0,a.jsx)(y.J1,{children:g.errors.expectedCapacity})]})]})]})]}),(0,a.jsx)(signup_StepsFooter,{children:(0,a.jsxs)(O.U,{children:[(0,a.jsx)(k.z,{variant:"solid",colorScheme:"gray",onClick:s,leftIcon:(0,a.jsx)(d.u_m,{}),children:"Back"}),(0,a.jsx)(k.z,{variant:"primary",type:"submit",leftIcon:(0,a.jsx)(d.hXj,{}),isLoading:l,children:"Finish & Submit"})]})})]})})}},{id:4,heading:null,icon:null,skipHeader:!0,StepContent:()=>{let{onModalClose:e,initialData:i,aboutYou:n}=(0,t.useContext)(W),o=(0,q.ff)("primary","white");return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(h.h,{maxW:"56.25rem",children:[(0,a.jsx)(m.x,{fontSize:"xl",children:"Request a New Switchboard Organization"}),(0,a.jsx)(u.o,{}),(0,a.jsx)(p.f,{color:o,children:(0,a.jsxs)(w.g,{alignItems:"center",justifyContent:"center",direction:"column",textAlign:"center",children:[(0,a.jsx)(x.x,{children:(0,a.jsx)(L.J,{as:D.N9r,color:"green.500",width:"45px",height:"45px"})}),(0,a.jsxs)(x.x,{fontSize:"md",fontWeight:"bold",children:["Thanks for your interest in Switchboard, ",(null==n?void 0:n.firstName)||"friend","!"]}),(0,a.jsxs)(x.x,{children:["Confirmation sent to ",i.userEmail,"."]}),(0,a.jsx)(x.x,{children:"We'll contact you in 1 business day or less."})]})}),(0,a.jsx)(signup_StepsFooter,{children:(0,a.jsx)(k.z,{variant:"primary",type:"button",onClick:e,children:"Close"})})]})})}}];var signup_SignupModalForm=e=>{let{onClose:i,isOpen:n,csrfToken:d}=e,[h,m]=(0,t.useState)(0),[u,p]=(0,t.useState)({}),[g,x]=(0,t.useState)(!1),[f,j]=(0,t.useState)(null),b=(0,o.p)(),C=A.find(e=>e.id===h),handleInitialFormSubmit=async e=>{x(!0),f?(0,c.U0)(e,f,d).then(async()=>{m(h+1)}).catch(e=>b((0,s.SR)(e))).finally(()=>{x(!1)}):(0,c.o2)(e,d).then(e=>{j(e.url),m(h+1),x(!1)}).catch(e=>{handleClose(),x(!1),b((0,s.SR)("Error submitting signup data. Please contact us at support@oneswitchboard.com if the issue persists."))})},handleFinalFormSubmit=async e=>{x(!0),(0,c.U0)(e,f,d).then(async()=>{m(h+1)}).catch(e=>b((0,s.SR)(e))).finally(()=>{x(!1)})},handleClose=()=>{m(0),p({}),j(null),i()},v={currentStep:C,onFormSectionSubmit:(e,i)=>{let n={...u,[e]:i};if(p(n),0===h){handleInitialFormSubmit(n);return}if(3===h){handleFinalFormSubmit(n);return}m(h+1)},steps:A,initialData:null==u?void 0:u.initialData,aboutYou:null==u?void 0:u.aboutYou,toolPreferences:null==u?void 0:u.toolPreferences,isSubmitting:g,onBackClick:()=>{m(h-1)},onModalClose:handleClose};return(0,a.jsxs)(r.u_,{variant:"shadowFooter",onClose:handleClose,closeOnOverlayClick:!1,isOpen:n,size:"xl",children:[(0,a.jsx)(l.Z,{}),(0,a.jsx)(W.Provider,{value:v,children:(0,a.jsx)(C.StepContent,{})})]})}},22055:function(e,i,n){n.d(i,{Z:function(){return public_TestimonialsGallery}});var a=n(82729),t=n(85893);n(67294);var o=n(23100),r=n(12498),l=n(56877),s=n(81941),c=n(5434);let TestimonialCard=e=>{let{org:i,author:n,body:a,logo:d,...h}=e,m=(0,r.ff)("gray.500","gray.100");return(0,t.jsxs)(o.xu,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"280px",width:"full",maxWidth:"100vw",p:10,...h,children:[(0,t.jsxs)(o.xu,{position:"relative",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",flexGrow:1,p:1,pb:5,width:"full",children:[(0,t.jsx)(o.xu,{position:"absolute",top:"-6rem",left:"-5rem",children:(0,t.jsx)(l.J,{as:c.SEL,fontSize:"12rem",opacity:"0.075",color:m,transform:"rotate(180deg)"})}),(0,t.jsx)(o.xu,{lineHeight:"8",fontSize:"1.035em",fontWeight:"600",flex:7,fontStyle:"italic",zIndex:2,pb:2,opacity:.95,children:a}),(0,t.jsx)(o.xu,{flex:2,p:3,width:"full",height:"full",display:{base:"none",md:"flex"},justifyContent:"center",alignItems:"center",zIndex:2,children:!!d&&(0,t.jsx)(s.E,{src:d,maxHeight:"140px",maxWidth:"140px",borderRadius:"sm",overflow:"hidden",alt:"Logo"})})]}),(0,t.jsxs)(o.xu,{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",children:[(0,t.jsx)(o.xu,{flex:2,display:{base:"flex",md:"none"},justifyContent:"center",alignItems:"center",zIndex:2,children:!!d&&(0,t.jsx)(s.E,{src:d,maxHeight:"90px",maxWidth:"90px",borderRadius:"sm",overflow:"hidden",py:3,pr:3,alt:"Logo"})}),(0,t.jsxs)(o.xu,{display:"flex",flexDirection:"column",justifyContent:"space-between",py:1,flexGrow:1,fontWeight:"600",fontSize:"lg",children:[(0,t.jsx)(o.xu,{children:n}),(0,t.jsx)(o.xu,{opacity:.5,children:i})]})]})]})};var d=n(79165),h=n(67677);function _templateObject(){let e=(0,a._)(["\n  .splide__pagination__page.is-active {\n    background: #ccc;\n    background-color: #ccc;\n  }\n"]);return _templateObject=function(){return e},e}n(90207);let m=d.Z.div(_templateObject());var public_TestimonialsGallery=e=>{let{testimonials:i}=e;return(0,t.jsx)(o.xu,{as:m,maxWidth:"100vw",py:5,children:(0,t.jsx)(h.tv,{"aria-label":"Testimonials",options:{rewind:!0,lazyLoad:!0},style:{alignItems:"center",justifyContent:"center"},children:i.map((e,i)=>(0,t.jsx)(h.jw,{children:(0,t.jsx)(o.xu,{px:{base:"2rem",md:"5rem"},height:"full",display:"flex",justifyContent:"center",alignItems:"center",children:(0,t.jsx)(TestimonialCard,{...e})})},"testimonial_".concat(i)))})})}},9053:function(e,i,n){var a=n(85893),t=n(12498),o=n(23100);i.Z=e=>{let{children:i,...n}=e,r=(0,t.ff)("gray.100","gray.700");return(0,a.jsx)(o.xu,{background:r,borderLeftWidth:"6px",borderLeftColor:"blue.600",px:10,py:6,width:"100%",...n,children:i})}},93387:function(e,i,n){n.d(i,{p:function(){return a}});let a=[{body:"Switchboard is user-friendly and reliable, and has allowed us to build our texting program so that we can bring in thousands of extra dollars each month. I'd highly recommend it for any size campaign.",author:"Katie Bartizal",org:"Katie Porter for Congress",logo:"/katie_porter_logo_transparent.png"},{body:"Switchboard is the grassroots texting tool we didn’t know how badly we needed. It has made communicating with our campaign's supporters so much easier and more effective that what used to be a full-day project now takes us under an hour (and with far less risk of errors). Not only is the Switchboard team fundamentally driven by user feedback, they’re also impressively quick to roll out new features and improvements. I can’t wait to try whatever tool Switchboard builds next!",author:"Amy Tarczynski",org:"Andy Kim for Congress",logo:"/AndyKim_logo_transparent.png"},{body:"Switchboard has been a seamless, easy-to-use backbone of digital fundraising for over 30 down-ballot campaigns. The team's responsiveness to feedback and consistent innovation make them an admirable force for good in the Democratic campaign technology space. Races will be decided because of Switchboard's standout features.",author:"Neil Goodman",org:"Goodman Campaigns",logo:"/goodman_bluelogo_transparent.png"},{body:"Switchboard is the best tool I have used for SMS on campaigns! It is user friendly, efficient, effective, and there are constantly new updates to make the process even better. The team at Switchboard is the great. They are quick, helpful, and a great team to work with on something so important as texting. I have used their platform on multiple campaigns and recommend it to everyone!",author:"Emily Byrn",org:"Climate Action Campaign"},{body:"Switchboard has helped our clients up and down the ballot raise money online and communicate effectively. Their software is user-friendly, intuitive, and highly effective. The Switchboard team is incredibly helpful, responsive, and supportive. I absolutely love the software and absolutely love working with this team!",author:"Martin Page",org:"MDW",logo:"/mdw_logo.png"}]}}]);