1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5556],{5556:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>f});var n=t(37876),s=t(14232),c=t(93921),o=t(5649),i=t(71788),a=t(95080),r=t(3058),u=t(19478),d=t(8343),h=t(76243),m=t.n(h);let v={FACEBOOK:"facebook",TWITTER:"twitter",LINKEDIN:"linkedin"},p=[v.FACEBOOK,v.TWITTER,v.LINKEDIN],f=(0,o.A)(e=>{var l,t;let{success_cta_title:o,link:h,isLastStep:f,isFirstStep:g,stepId:j,step:S,totalSteps:b,values:C,state:N,success_quiz:w,goToNext:_,goToPrev:k,title:y}=e,[A,E]=(0,s.useState)(!1),[T,I]=(0,s.useState)([]),M=s.useMemo(()=>(w||[]).map(e=>e.field_name).filter(e=>e),[w]),F=s.useMemo(()=>T.reduce((e,l)=>({...e,[l]:(e[l]||0)+1}),{}),[T]),D=s.useMemo(()=>{if(!A)return[];let e=Object.entries(F),l=Math.max(...e.map(e=>{let[l,t]=e;return t}));return e.filter(e=>{let[t,n]=e;return n===l}).map(e=>{let[l,t]=e;return l})},[A,F]),O=s.useMemo(()=>1===D.length?D[0]:null,[D]),R=s.useMemo(()=>(w||[]).find(e=>e.field_name===(null!==O?O:""))||null,[w,O]),z=S.inputs||[],B=s.useMemo(()=>z.every(e=>"quiz-answer"===e.type),[z]),L=s.useCallback(e=>{I(l=>{let t=l.slice();return t[j]=e,t}),f?E(!0):_()},[I,f,j,_,E]);return A&&w?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:m().Block,children:(0,n.jsxs)("div",{className:(0,a.A)(m().Success,(null==R?void 0:R.color)?"--color-".concat(null==R?void 0:R.color):null),children:[(null==R?void 0:R.title)?(0,n.jsx)("div",{className:(0,a.A)(m().SuccessContentTitle,m().Mobile),children:(0,u.X)(null==R?void 0:R.title)}):null,(0,n.jsx)("div",{className:"".concat(m().SuccessGraph),children:M.map(e=>{let l=F[e]/b,t=(e=>{let l=w.find(l=>l.field_name===e);return(null==l?void 0:l.color)||null})(e);return(0,n.jsx)("div",{className:(0,a.A)(m().SuccessGraphStick,t?"--color-".concat(t):null,{[m().SuccessGraphStickActive]:D.includes(e),[m().SuccessGraphStickNull]:0===l,[m().SuccessGraphStickSmall]:l<.15}),style:{"--height":"".concat(100*l,"%")},children:(0,n.jsxs)("div",{className:m().SuccessGraphStickBar,children:[(0,n.jsx)("span",{className:m().SuccessGraphStickCount,children:F[e]}),(0,n.jsxs)("span",{className:m().SuccessGraphStickLabel,children:[e,(0,n.jsx)("img",{src:"/icons/triangle-bottom-dark-blue.svg",alt:"",width:"17",height:"11"})]})]})},e)})}),(0,n.jsxs)("div",{className:(0,a.A)(m().SuccessContent,(null==R?void 0:R.color)?"--color-".concat(null==R?void 0:R.color):null),children:[(0,n.jsxs)("div",{children:[(null==R?void 0:R.title)?(0,n.jsx)("div",{className:(0,a.A)(m().SuccessContentTitle,m().Desktop),children:(0,u.X)(null==R?void 0:R.title)}):null,(null==R?void 0:R.content)?(0,n.jsx)("div",{className:m().SuccessContentText,children:(0,u.X)(null==R?void 0:R.content)}):null]}),(0,n.jsxs)("div",{children:[(null==R?void 0:R.base_line)?(0,n.jsx)("div",{className:m().SuccessContentBaseLine,children:(0,u.X)(null==R?void 0:R.base_line)}):null,(null==R?void 0:R.share_title)?(0,n.jsxs)("div",{className:m().SuccessContentShare,children:[(0,n.jsx)("div",{className:m().SuccessContentShareTitle,children:(0,u.X)(null==R?void 0:R.share_title)}),(0,n.jsx)("ul",{className:m().SuccessContentShareIcons,children:p.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)("a",{className:m().SuccessContentShareIcon,href:(e=>{let l="".concat(window.location.origin).concat(window.location.pathname),t=1===D.length?"result=".concat(D[0].toLowerCase()):"tie";if(e===v.TWITTER){let e="".concat(l,"?").concat(t);return"https://twitter.com/intent/tweet?text=".concat(encodeURIComponent("".concat((0,d.I)(R.share_message)," ").concat(e)))}let n="".concat(l,"?").concat(encodeURIComponent(t));return e===v.FACEBOOK?"https://www.facebook.com/sharer/sharer.php?display=page&u=".concat(n):e===v.LINKEDIN?"https://www.linkedin.com/shareArticle?url=".concat(n):""})(e),target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)("img",{src:"/icons/".concat(e,".svg"),alt:e})})},e))})]}):null]})]})]})}),(0,n.jsxs)("div",{className:m().Cta,children:[o?(0,n.jsx)("div",{className:m().CtaTitle,children:(0,u.X)(o)}):null,h?(0,n.jsx)(i.A,{link:h,className:"btn btn--block btn--green",children:null==(t=h[0])?void 0:t.t
1itle}):null]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:m().Block,children:[(0,n.jsxs)("div",{className:"".concat(m().Top),children:[(0,n.jsx)("h2",{className:"".concat(m().Title),children:y}),(0,n.jsxs)("div",{className:"".concat(m().TopRight),children:[(0,n.jsx)("span",{className:"".concat(m().Progress),children:S.title}),(0,n.jsx)(x,{isFirstStep:g,isLastStep:f,goToNext:_,goToPrev:k,previous:S.previous,next:S.next,loading:N.loading,allQuiz:B,values:C,previousDisabled:f,nextDisabled:f||!T[j]})]})]}),(0,n.jsxs)("div",{className:"".concat(m().Bottom),children:[(0,n.jsx)("p",{className:"".concat(m().QuestionTitle),children:S.content}),(0,n.jsx)("div",{className:(0,a.A)("".concat(m().FormBlock),{"many-inputs":z.length>1}),children:z.map(e=>{if(e=(0,r.A)(e))return(0,n.jsx)(c.A,{onChange:()=>{B&&L(e.name)},formValues:C,type:f?"submit":e.type,...e,name:"quiz-answer"===e.type?"quiz-step-".concat(j):void 0,value:"quiz-answer"===e.type?e.name:void 0},e._uid)})})]})]}),(0,n.jsxs)("div",{className:m().Cta,children:[o?(0,n.jsx)("div",{className:m().CtaTitle,children:(0,u.X)(o)}):null,h?(0,n.jsx)(i.A,{link:h,className:"btn btn--block btn--green",children:null==(l=h[0])?void 0:l.title}):null]})]})}),x=e=>{let{isLastStep:l,isFirstStep:t,goToNext:s,goToPrev:c,previousDisabled:o=!1,nextDisabled:i=!1}=e;return(0,n.jsxs)("div",{className:"".concat(m().Controls),children:[t?null:(0,n.jsx)("button",{disabled:o,type:"button",onClick:t?null:c,className:"".concat(m().Arrow," ").concat(t?m().Arrow__Disabled:""),children:(0,n.jsx)("img",{src:"/icons/chevron-icon.svg",alt:"",width:"16",height:"16"})}),(0,n.jsx)("button",{disabled:i,type:l?"submit":"button",onClick:l?null:s,className:"".concat(m().Arrow," ").concat(m().SecondArrow," ").concat(l?m().Arrow__Disabled:""),children:(0,n.jsx)("img",{src:"/icons/chevron-icon.svg",alt:"",width:"16",height:"16"})})]})}},5649:(e,l,t)=>{"use strict";t.d(l,{A:()=>S});var n=t(37876),s=t(41946),c=t.n(s),o=t(48449),i=t(14232),a=t(76709),r=t(20228),u=t(5389),d=t(95080),h=t(34619),m=t(64193),v=t(28852),p=t(12815),f=t(57743),x=t(46077),g=t(36928),j=t.n(g);let S=e=>i.forwardRef((l,t)=>{var s,g;let{isGuidesForm:S=!1,steps:C,setMainStep:N=null,className:w,action:_,onSubmit:k,isTrialForm:y=!1,method:A="post",locale:E,errorMessages:T,dataTest:I=null,zoominfoFormId:M=null,formId:F,error_messages:D=[],formNameForAnalytics:O=null,isGetStartedTDD:R=!1,validationOptions:z={},...B}=l,[L]=i.useState("form-step_".concat((0,o.Ak)())),G=(0,a.f)(),X=(0,i.useCallback)(e=>{if(!e)return[];if(R)if(G)return e.filter(e=>"LegacyOnly"!==e.enabledFor);else return e.filter(e=>"RevampOnly"!==e.enabledFor);return e},[G,R]),[K,{set:P}]=(0,r.Pj)(),Z=i.useRef(null),[q,V]=i.useState({}),[W,Q]=i.useState(null),[U,H]=i.useState(0),[J,Y]=i.useState(!1),$=(0,m.r)(),ee=i.useMemo(()=>C.reduce((e,l)=>e.concat(l.inputs),[]),[]),{actions:el,state:et,values:en}=(0,f.A)(Z,ee,k);(0,i.useEffect)(()=>{et.error&&Q(null)},[et]),(0,i.useEffect)(()=>{if((null==et?void 0:et.error)||S)return;let e=null==en?void 0:en.currentlySelectedCountry,l=null===p.hC||void 0===p.hC?void 0:(0,p.hC)(e);if(Q(null),l){var t;Q({type:"info",text:"".concat(null==h||null==(t=h.bronze_country_phone)?void 0:t[E]," ").concat(["en","en-gb","en-au"].includes(E)?e:"")})}},[en]);try{let[e,l]=(0,i.useState)(0),t=async()=>{var t;let n=null==(t=window)?void 0:t._zi_fc;if(!n)return null==e?void 0:(await new Promise(e=>{setTimeout(()=>{e(!0)},500)}),5===e)?void l(null):void l(e+1);n&&(n.onMatch=e=>{Object.entries(e).map(e=>{let[l,t]=e;if(null!=t){if("company-size"===l){let e=function(e){if(!e||"number"!=typeof e)return null;let l=(e,l,t)=>e>=l&&e<=t;return 0===e?null:l(e,0,10)?"1 to 10":l(e,11,25)?"11 to 25":l(e,26,50)?"26 to 50":l(e,51,250)?"51 to 250":l(e,251,500)?"251 to 500":e>500?"500+":void 0}(t);if(!e)return;el.set(l,e);return}el.set(l,t)}})})};i.useEffect(()=>{t()},[el,e,l])}catch(e){x.A.logError("Error injecting ZoomInfo behavior",e,"ZoomInfo")}i.useEffect(()=>{V({}),"function"==typeof N&&N({...C[U],id:U})},[U]);let es=i.useMemo(()=>(C[U]||{}).inputs||[],[U]),ec=i.useCallback(function(e,l){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,v.Ay)(en,X(e),E,T,t).then(e=>{c()(q,e)||V(e),e.hasError||"function"!=typeof l||l(en)})},[q,V,en,E,T,X]);i.useEffect(()=>{q.hasError?(0,v.Ay)(en,X(es),E,T,z).then(e=>{c()(q,e)||V(e),e.hasError||Y(!0)}):Y(!0)},[en,es,E,T,q,Y,X,z]);let eo=i.useCallback(e=>{x.A.logInfo("handleSubmit called within withFormSteps","GetStartedForm"),e.preventDefault(),U<C.length-1||(0,v.Ay)(en,X(ee),E,T,z).then(l=>{V(l),O&&(null==l?void 0:l.hasError)&&(null==l?void 0:l.richErrors)&&(0,u.r)(l,O,en,{step_index:U,step_name:(C[U]||{}).name}),l.hasError||el.send(e)})},[el.send,ee,en,E,T,O,U,C,X,z]),ei=i.useCallback(e=>{e&&e.preventDefault(),ec(es,()=>{H(e=>e+1<C.length?e+1:e)},z)},[H,C.length,ec,es,z]),ea=i.useCallback(e=>{e&&e.preventDefault(),H(e=>e>0?e-1:e)},[H]);i.useEffect(()=>{Y(!1),P(L,U)},[U]),i.useEffect(()=>{let e=K[L]||0;U!==e&&e>=0&&e<C.length&&ec((C[e]||{}).inputs||[],()=>H(e),z)},[K[L],H]);let er={...C[U]||{}};
1return 1===$&&(null==er||null==(g=er.inputs)||null==(s=g.find)?void 0:s.call(g,e=>(null==e?void 0:e.name)==="numberOfLicences"))&&(er.content=""),(0,n.jsxs)("form",{"data-zoominfo-category":M||"all-forms","data-zoominfo-subcategory":"multi-steps",className:w,method:A,action:_,onSubmit:eo,ref:Z,autoComplete:"on","data-test":I,children:[W?(0,n.jsxs)("div",{className:(0,d.A)(j().globalMessage,null===j()||void 0===j()?void 0:j()[null==W?void 0:W.type]),children:[(0,n.jsx)(b,{}),(0,n.jsx)("span",{children:null==W?void 0:W.text})]}):null,(0,n.jsx)(e,{...B,error_messages:D,locale:E,state:et,values:en,inputErrors:q,validate:ec,steps:C,stepId:U,totalSteps:C.length,step:er,setStep:H,goToNext:ei,goToPrev:ea,stepCleared:J,isLastStep:U===C.length-1,isFirstStep:0===U,set:el.set,form:Z,formId:F,ref:t,isTrialForm:y})]})}),b=()=>(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"})})},36928:e=>{e.exports={globalMessage:"withFormSteps_globalMessage__9hgyw",info:"withFormSteps_info__6KmXP",error:"withFormSteps_error__4AX57"}}}]);
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.