1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2859],{5649:(e,t,r)=>{"use strict";r.d(t,{A:()=>E});var n=r(37876),o=r(41946),l=r.n(o),s=r(48449),a=r(14232),i=r(76709),u=r(20228),c=r(5389),d=r(95080),m=r(34619),f=r(64193),p=r(28852),h=r(12815),_=r(57743),g=r(46077),v=r(36928),b=r.n(v);let E=e=>a.forwardRef((t,r)=>{var o,v;let{isGuidesForm:E=!1,steps:x,setMainStep:y=null,className:S,action:A,onSubmit:N,isTrialForm:j=!1,method:w="post",locale:k,errorMessages:F,dataTest:M=null,zoominfoFormId:O=null,formId:R,error_messages:I=[],formNameForAnalytics:P=null,isGetStartedTDD:T=!1,validationOptions:D={},...L}=t,[B]=a.useState("form-step_".concat((0,s.Ak)())),V=(0,i.f)(),X=(0,a.useCallback)(e=>{if(!e)return[];if(T)if(V)return e.filter(e=>"LegacyOnly"!==e.enabledFor);else return e.filter(e=>"RevampOnly"!==e.enabledFor);return e},[V,T]),[q,{set:Z}]=(0,u.Pj)(),z=a.useRef(null),[U,Y]=a.useState({}),[G,H]=a.useState(null),[K,J]=a.useState(0),[Q,W]=a.useState(!1),$=(0,f.r)(),ee=a.useMemo(()=>x.reduce((e,t)=>e.concat(t.inputs),[]),[]),{actions:et,state:er,values:en}=(0,_.A)(z,ee,N);(0,a.useEffect)(()=>{er.error&&H(null)},[er]),(0,a.useEffect)(()=>{if((null==er?void 0:er.error)||E)return;let e=null==en?void 0:en.currentlySelectedCountry,t=null===h.hC||void 0===h.hC?void 0:(0,h.hC)(e);if(H(null),t){var r;H({type:"info",text:"".concat(null==m||null==(r=m.bronze_country_phone)?void 0:r[k]," ").concat(["en","en-gb","en-au"].includes(k)?e:"")})}},[en]);try{let[e,t]=(0,a.useState)(0),r=async()=>{var r;let n=null==(r=window)?void 0:r._zi_fc;if(!n)return null==e?void 0:(await new Promise(e=>{setTimeout(()=>{e(!0)},500)}),5===e)?void t(null):void t(e+1);n&&(n.onMatch=e=>{Object.entries(e).map(e=>{let[t,r]=e;if(null!=r){if("company-size"===t){let e=function(e){if(!e||"number"!=typeof e)return null;let t=(e,t,r)=>e>=t&&e<=r;return 0===e?null:t(e,0,10)?"1 to 10":t(e,11,25)?"11 to 25":t(e,26,50)?"26 to 50":t(e,51,250)?"51 to 250":t(e,251,500)?"251 to 500":e>500?"500+":void 0}(r);if(!e)return;et.set(t,e);return}et.set(t,r)}})})};a.useEffect(()=>{r()},[et,e,t])}catch(e){g.A.logError("Error injecting ZoomInfo behavior",e,"ZoomInfo")}a.useEffect(()=>{Y({}),"function"==typeof y&&y({...x[K],id:K})},[K]);let eo=a.useMemo(()=>(x[K]||{}).inputs||[],[K]),el=a.useCallback(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,p.Ay)(en,X(e),k,F,r).then(e=>{l()(U,e)||Y(e),e.hasError||"function"!=typeof t||t(en)})},[U,Y,en,k,F,X]);a.useEffect(()=>{U.hasError?(0,p.Ay)(en,X(eo),k,F,D).then(e=>{l()(U,e)||Y(e),e.hasError||W(!0)}):W(!0)},[en,eo,k,F,U,W,X,D]);let es=a.useCallback(e=>{g.A.logInfo("handleSubmit called within withFormSteps","GetStartedForm"),e.preventDefault(),K<x.length-1||(0,p.Ay)(en,X(ee),k,F,D).then(t=>{Y(t),P&&(null==t?void 0:t.hasError)&&(null==t?void 0:t.richErrors)&&(0,c.r)(t,P,en,{step_index:K,step_name:(x[K]||{}).name}),t.hasError||et.send(e)})},[et.send,ee,en,k,F,P,K,x,X,D]),ea=a.useCallback(e=>{e&&e.preventDefault(),el(eo,()=>{J(e=>e+1<x.length?e+1:e)},D)},[J,x.length,el,eo,D]),ei=a.useCallback(e=>{e&&e.preventDefault(),J(e=>e>0?e-1:e)},[J]);a.useEffect(()=>{W(!1),Z(B,K)},[K]),a.useEffect(()=>{let e=q[B]||0;K!==e&&e>=0&&e<x.length&&el((x[e]||{}).inputs||[],()=>J(e),D)},[q[B],J]);let eu={...x[K]||{}};return 1===$&&(null==eu||null==(v=eu.inputs)||null==(o=v.find)?void 0:o.call(v,e=>(null==e?void 0:e.name)==="numberOfLicences"))&&(eu.content=""),(0,n.jsxs)("form",{"data-zoominfo-category":O||"all-forms","data-zoominfo-subcategory":"multi-steps",className:S,method:w,action:A,onSubmit:es,ref:z,autoComplete:"on","data-test":M,children:[G?(0,n.jsxs)("div",{className:(0,d.A)(b().globalMessage,null===b()||void 0===b()?void 0:b()[null==G?void 0:G.type]),children:[(0,n.jsx)(C,{}),(0,n.jsx)("span",{children:null==G?void 0:G.text})]}):null,(0,n.jsx)(e,{...L,error_messages:I,locale:k,state:er,values:en,inputErrors:U,validate:el,steps:x,stepId:K,totalSteps:x.length,step:eu,setStep:J,goToNext:ea,goToPrev:ei,stepCleared:Q,isLastStep:K===x.length-1,isFirstStep:0===K,set:et.set,form:z,formId:R,ref:r,isTrialForm:j})]})}),C=()=>(0,n.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.06691 4.7743C7.06691 4.17677 7.55131 3.69237 8.14884 3.69237C8.74638 3.69237 9.23077 4.17677 9.23077 4.7743C9.23077 5.37184 8.74638 5.85624 8.14884 5.85624C7.55131 5.85624 7.06691 5.37184 7.06691 4.7743ZM7.06691 7.98002C7.06691 7.38249 7.55131 6.89809 8.14884 6.89809C8.74638 6.89809 9.23077 7.38249 9.23077 7.98002V11.2258C9.23077 11.8234 8.74638 12.3077 8.14884 12.3077C7.55131 12.3077 7.06691 11.8234 7.06691 11.2258V7.98002Z",fill:"white"})})},34447:e=>{e.exports={ErrorBlock:"ErrorBlock_ErrorBlock__y8t3l"}},36928:e=>{e.exports={globalMessage:"withFormSteps_globalMessage__9hgyw",info:"withFormSteps_info__6KmXP",error:"withFormSteps_error__4AX57"}},69036:(e,t,r)=>{"use strict";r.d(t,{YT:()=>s,l1:()=>o});let n="fraudAttempts";function o(){if(s())return;let e=l();window.sessionStorage.setItem(n,e+1)}function l(){return parseInt(window.sessionStorage.getItem(n))||0}function s(){return l()>=3}},70287:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(14232);let o=(e,t)=>{let{emailErrorMessage:r=!1}=t;return n.useMemo(()=>({hasError:e.hasError||"string"==typeof r,errors:{...e.errors||{},..."string"==typeof r?{email:r}:{}},richErrors:{...e.richErrors||{},..."string"==typeof r?{email:{code:"custom",message:r}}:{}}}),[e,r])}},74246:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(37876),o=r(14232),l=r(34447),s=r.n(l);let a=e=>{let t=e.inputErrors,r=o.useMemo(()=>t&&t.hasError&&t.richErrors?Object.entries(t.richErrors).filter(e=>{let[t,r]=e;return r&&(null==r?void 0:r.code)!=="empty"}):[],[t]);return r.length>0&&(0,n.jsx)("div",{className:s().ErrorBlock,children:r.map((e,t)=>{let[r,o]=e;return(0,n.jsx)("p",{children:o.message},t)})})}},75240:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>I});var n=r(37876),o=r(38248),l=r(14232),s=r(24280),a=r(74246),i=r(93921),u=r(5649),c=r(20228),d=r(55793),m=r(43359),f=r(8162),p=r(25895),h=r(53858),_=r(96906),g=r(86772),v=r(95080),b=r(27238),E=r(52116),C=r(70287),x=r(3058),y=r(69036),S=r(91228),A=r(71461),N=r(2659),j=r(9662),w=r(46077),k=r(47717),F=r(52147),M=r.n(F);let O={Canada:"na","United States":"na","United Kingdom":"uk",Australia:"au",France:"fr",Germany:"de",Spain:"es"},R=(0,u.A)(e=>{let{isLastStep:t,stepId:r,step:o,title:u,state:h,content:_,values:g,inputErrors:b,theme:E,submit:S,goToNext:N,footer:j,error:w}=e,k=o.inputs||[],F=k.length%2==0&&k.filter(e=>"country"===e.type).length%2!=0,O=(null==h?void 0:h.error)||{},R=(0,C.A)(b,{emailErrorMessage:O}),I=(0,y.YT)(),[P]=(0,c.Pj)();l.useEffect(()=>{(0,f.Sd)({event:f.qM.FORMS_INTERACTIONS,step_index:r,step_name:(0,p.Ix)(k,t),form_name:p.fA.EARLY_ACCESS,form_initiator:(0,f.ed)(P.navHistory),interaction_type:p.PV.FORM_COMPLETION}),d.A.trackEvent(m.u.FORM_STEP_COMPLETED.name,m.u.FORM_STEP_COMPLETED.mapProperties({form_name:p.fA.EARLY_ACCESS,step_name:(0,p.Ix)(k,t),step_index:r,interaction_type:p.PV.FORM_COMPLETION,form_initiator:(0,f.ed)(P.navHistory),email:(0,A.getEmail)(g)}))},[r]);let T="dark"===E?"btn btn--white":"btn white btn--purple";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{inputErrors:R,values:g,formName:"SMB Voice Form"}),(0,n.jsx)("h1",{className:"t3 bold mb4 center",children:u}),_&&(0,n.jsx)("div",{className:"mb4",children:(0,n.jsx)("p",{className:"center",children:(0,s.XX)(_)})}),(0,n.jsx)("div",{className:(0,v.A)("".concat(M().FormBlock," ").concat(F?"half-country-input":""," grid-flex mb1 theme-").concat(E),{"many-inputs":k.length>1}),children:k.map(e=>{if(e=(0,x.A)(e))return(0,n.jsx)(n.Fragment,{children:"content"===e.type?(0,n.jsx)("p",{className:M().NextText,children:e.label},e._uid):(0,n.jsx)(i.A,{value:g[e.name],formValues:g,error:(b.errors||{})[e.name],...e},e._uid)})})}),(0,n.jsxs)("div",{className:"mb3",children:[(0,n.jsx)("button",{disabled:I||t&&!1===g["term-of-use"],type:"submit",onClick:t?null:N,className:(0,v.A)("".concat(T," btn--block btn--desktop-block").concat(h.loading?" loading":""),{[M().ForceDisabled]:I}),"data-test":t?"hero-form-submit":"hero-form-next-step-button",children:t?S:o.next}),h.error&&(0,n.jsx)("p",{className:"red",children:w})]}),j&&(0,n.jsx)("div",{className:"x-small-txt ".concat(M().Footer),children:(0,s.XX)(j)})]})}),I=e=>{let{content:t={},theme:r,formStyle:a=M().Form,files:i,locale:u}=e,d=t.marketo_form_id,m=(0,j.l)(t),v=t.steps||[],C=(null==t?void 0:t.static_hidden_fields)||[],x=t.redirect||{},[y,F]=l.useState(!1),[I]=(0,c.Pj)(),P=l.useCallback(e=>new Promise(async(t,r)=>{var n;let l,s={event:f.qM.FORMS_INTERACTIONS,step_index:v.length,step_name:p.ux.FORM_SUBMISSION,form_name:p.fA.EARLY_ACCESS,form_initiator:(0,f.ed)(I.navHistory),interaction_type:p.PV.FORM_SUBMISSION},a=await (0,E.V)(e,u),c=C.reduce((e,t)=>(e[t.name]=t.value,e),{}),x="".concat(e.interest,"-").concat(O[e.country]||"na"),y=(0,A.Oe)(e),j=(0,S.Z)(),M={...c,Email:(0,A.getEmail)(e),FirstName:(0,k.rh)((0,A.O4)(e)),LastName:(0,k.rh)((0,A.w5)(e)),Company:(0,k.rh)((0,A.Zg)(e)),Country:e.country,Phone:y,GA_User_ID__c:(0,g.oc)(),commentCapture:e.interest,hiddenWCName:x,inferredLanguage:u,gDPRDoubleOptInRequested:a,gDPRNoOptInRequired:!a,GDPROptIn__c:!!e.marketing,gclid:(0,h.A)(),...await (0,_.lQ)((0,A.getEmail)(e)),Cookie_Consent__c:(0,b.Jb)().join(","),hubspotutk:(0,o.getCookie)("hubspotutk"),pageName:null==(n=document)?void 0:n.title,...j};w.A.logInfo("Addon Request form submitted","TrendsRequestForm",{formId:d,data:e,locale:u});try{let e=i.find(e=>e.filename.includes(x));e&&function(e,t){let r=document.createElement("a");r.download=t,r.href=e,r.target="_blank",document.body.appendChild(r),r.click(),document.body.removeChild(r)}(e.filename,e.trendsDocName+".pdf"),l=await (0,N.submitForm)(d,m,M,{dataLayerEvent:s}),F(!0),t(l)}catch(t){return w.A.logError("Error Submit SMB Trends Form",t,"TrendsRequestForm",{formId:d,data:e,locale:u}),r()}}),[d,u,x]);return y?(0,n.jsx)("div",{className:a,children:(0,n.jsx)("h1",{className:"mt4 mb4 t3 bold center",children:(0,s.XX)(t.success_screen)})}):(0,n.jsx)(R,{className:a,action:"",theme:r,steps:v,title:t.title,content:t.content,footer
1:t.footer,submit:t.submit,success:t.success,error:t.error,onSubmit:P,locale:u,dataTest:"smb-voice-form"})}}}]);
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.