"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5936,2501],{81881:function(e,n,t){var a=t(85893);t(67294);var s=function(e){var n=e.touched,t=e.message;return n?t?(0,a.jsx)("div",{className:"invalid-feedback",children:t}):(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("div",{className:"invalid-feedback",children:"\xa0"})};n.Z=s},39677:function(e,n,t){t.d(n,{Z:function(){return c}});var a=t(7297),s=t(85893),i=t(82580),r=t(31157);function o(){var e=(0,a.Z)(["\n  display: inline;\n\n  & label {\n    margin-left: 0.5rem;\n  }\n"]);return o=function(){return e},e}var l=r.ZP.div.withConfig({componentId:"sc-ebc1544d-0"})(o());function c(e){var n=e.id,t=e.label;return(0,s.jsxs)(l,{children:[(0,s.jsx)(i.gN,{name:n,type:"checkbox"}),t&&(0,s.jsx)("label",{htmlFor:n,children:t})]})}},5012:function(e,n,t){var a=t(85893);t(67294);var s=t(76627),i=t.n(s),r=t(81881),o=t(98231),l=function(e){var n=e.id,t=e.label,s=e.values,l=e.touched,c=e.errors,u=e.handleChange,d=e.handleBlur,m=e.placeholder,h=e.type,p=e.tests,f=e.cols,v=e.rows,x=e.maxLength,g=e.mask,b=e.info,y=p&&p.find(function(e){return"required"===e.OPTIONS.name}),j=""!==s[n]&&void 0!==s[n],N=void 0!==c[n],_=l[n],C=_&&N?"is-invalid":null,Z=b?"input-wrap has-info":"input-wrap";return"tel"===h?(0,a.jsxs)("div",{className:Z,children:[(0,a.jsxs)("label",{htmlFor:n,className:"float ".concat(j&&"is-raised"),children:[(0,a.jsxs)("span",{className:"label-text ".concat(N&&j?"is-invalid":""),children:[t," ",y&&"*"]}),(0,a.jsx)(i(),{type:h||"text",className:["form-control",C].join(" "),name:n,id:n,onChange:u,onBlur:d,placeholder:m,value:s[n],mask:"999-999-9999",maskChar:null,pattern:"^[2-9]\\d{2}-\\d{3}-\\d{4}$"}),(0,a.jsx)(r.Z,{touched:_,message:c[n]})]}),b&&(0,a.jsx)("div",{className:"tooltip-container",children:(0,a.jsx)(o.Z,{text:b})})]}):"textarea"===h?(0,a.jsxs)("div",{className:Z,children:[(0,a.jsxs)("label",{htmlFor:n,className:"float ".concat(j&&"is-raised"),children:[(0,a.jsxs)("span",{className:"label-text ".concat(N&&j?"is-invalid":""),children:[t," ",y&&"*"]}),(0,a.jsx)("textarea",{className:["form-control",C].join(" "),name:n,id:n,cols:f,rows:v,onChange:u,onBlur:d,placeholder:m,value:s[n]}),(0,a.jsx)(r.Z,{touched:_,message:c[n]})]}),b&&(0,a.jsx)("div",{className:"tooltip-container",children:(0,a.jsx)(o.Z,{text:b})})]}):(0,a.jsxs)("div",{className:Z,children:[(0,a.jsxs)("label",{htmlFor:n,className:"float ".concat(j&&"is-raised"),children:[(0,a.jsxs)("span",{className:"label-text ".concat(N&&j?"is-invalid":""),children:[t," ",y&&"*"]}),(0,a.jsx)(i(),{type:h||"text",className:["form-control",C].join(" "),name:n,id:n,onChange:u,onBlur:d,placeholder:m,value:s[n],maxLength:x,mask:g||null}),(0,a.jsx)(r.Z,{touched:_,message:c[n]})]}),b&&(0,a.jsx)("div",{className:"tooltip-container",children:(0,a.jsx)(o.Z,{text:b})})]})};n.Z=l},94155:function(e,n,t){var a=t(85893);t(67294);var s=t(45697),i=t.n(s),r=t(82580),o=t(81881),l=t(98231),c=function(e){var n=e.id,t=e.label,s=e.touched,i=e.errors,c=e.handleBlur,u=e.tests,d=e.options,m=e.values,h=e.info,p=e.addNoneOption,f=u.find(function(e){return"required"===e.OPTIONS.name}),v=""!==m[n]&&void 0!==m[n],x=void 0!==i[n],g=s[n],b=g&&x?"is-invalid":null,y=h?"input-wrap has-info":"input-wrap";return t?(0,a.jsxs)("div",{className:y,children:[(0,a.jsxs)("label",{htmlFor:n,className:"float ".concat(v&&"is-raised"),children:[(0,a.jsxs)("span",{className:"label-text ".concat(x&&v?"is-invalid":""),children:[t," ",f&&"*"]}),(0,a.jsxs)(r.gN,{as:"select",name:n,id:n,onBlur:c,className:["form-control",b].join(" "),children:[(0,a.jsx)("option",{value:"",disabled:!0}),p&&(0,a.jsx)("option",{value:"None",children:"--None--"}),d&&d.map(function(e){return(0,a.jsx)("option",{value:e.value,children:e.label},e.label)})]}),(0,a.jsx)(o.Z,{touched:g,message:i[n]})]}),h&&(0,a.jsx)("div",{className:"tooltip-container",children:(0,a.jsx)(l.Z,{text:h})})]}):(0,a.jsxs)("div",{className:y,children:[(0,a.jsxs)(r.gN,{as:"select",name:n,onBlur:c,className:["form-control",b].join(" "),children:[(0,a.jsx)("option",{vlaue:"",disabled:!0}),d&&d.map(function(e){return(0,a.jsx)("option",{value:e.value,children:e.label},e.label)})]}),(0,a.jsx)(o.Z,{touched:g,message:i[n]}),h&&(0,a.jsx)("div",{className:"tooltip-container",children:(0,a.jsx)(l.Z,{text:h})})]})};c.propTypes={id:i().string,label:i().string,touched:i().oneOfType([i().array,i().object]),errors:i().oneOfType([i().array,i().object]),handleBlur:i().func,tests:i().array,options:i().array,addNoneOption:i().bool,values:i().oneOfType([i().array,i().object]),info:i().string},c.defaultProps={id:"",label:"",touched:[],errors:[],handleBlur:function(){},tests:[],options:[],addNoneOption:!1,values:[]},n.Z=c},4488:function(e,n,t){t.d(n,{Z:function(){return l}});var a=t(85893);t(67294);var s=t(7297),i=t(31157);function r(){var e=(0,s.Z)(["\n  margin-bottom: 1rem;\n  background: #fff6f6;\n  width: 100%;\n  border: 1px solid ",";\n  border-radius: 0.2rem;\n  p {\n    color: ",";\n    margin: 0;\n    font-size: 0.75rem;\n    font-weight: 700;\n    padding: 0.8rem 1.5rem 0.8rem 1.5rem;\n    text-align: left;\n  }\n\n  .notice-heading {\n    color: #9c4240;\n    display: block;\n    font-size: 1.125rem;\n    font-weight: 500;\n  }\n\n  .notice-subheading {\n    color: #9c4240;\n    display: block;\n    font-size: 1rem;\n    font-weight: 400;\n    line-height: 1.35;\n    white-space: nowrap;\n\n    a {\n      color: #9c4240;\n      text-decoration: underline;\n    }\n  }\n"]);return r=function(){return e},e}var o=i.ZP.div.withConfig({componentId:"sc-e6e05d8d-0"})(r(),function(e){return e.theme.border},function(e){return e.theme.color}),l=function(e){var n=e.type,t=e.message,s={background:"#dcedf6",border:"#c1def0",color:"#3d708d"};return"warning"===n&&(s.background="white",s.border="#ee9800",s.color="#ee9800"),"error"===n&&(s.background="#f8d7da",s.border="#f5c6cb",s.color="#721c24"),(0,a.jsx)(o,{theme:s,children:(0,a.jsx)(a.Fragment,{children:"string"==typeof t&&(0,a.jsx)("p",{className:"message",children:t})})})}},62501:function(e,n,t){t.r(n);var a=t(85893);t(67294),t(36808),t(34155);var s=function(e){return e.shareASaleHash,e.transType,e.xtype,(0,a.jsx)(a.Fragment,{})};n.default=s},38785:function(e,n,t){t.d(n,{Z:function(){return d}});var a=t(85893);t(67294);var s=t(92814),i=t(51436),r=t(7297),o=t(31157);function l(){var e=(0,r.Z)(["\n  background: #fff;\n  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);\n  height: 0;\n  left: 0;\n  position: fixed;\n  opacity: 0;\n  overflow: auto;\n  pointer-events: none;\n  top: 100%;\n  transition: top 0.25s cubic-bezier(0.57, 0.06, 0, 1.06);\n  width: 100%;\n  z-index: 98;\n\n  &.active {\n    min-height: 100vh;\n    opacity: 1;\n    pointer-events: auto;\n    top: 0;\n  }\n\n  .children-wrapper {\n    padding: 3.5rem 0 6rem;\n    text-align: center;\n\n    "," {\n      padding-top: 60px;\n    }\n\n    .back-btn {\n      background: transparent;\n      border: none;\n      font-size: 1rem;\n      height: 1.5rem;\n      line-height: 1;\n      margin: 0;\n      padding: 0;\n      position: absolute;\n      left: 20px;\n      top: 60px;\n      width: 1.5rem;\n      z-index: 98;\n\n      "," {\n        left: 50px;\n        top: 70px;\n      }\n    }\n\n    .close-btn {\n      background: transparent;\n      border: none;\n      font-size: 1rem;\n      height: 1.5rem;\n      line-height: 1;\n      margin: 0;\n      padding: 0;\n      position: absolute;\n      right: 20px;\n      top: 60px;\n      width: 1.5rem;\n      z-index: 98;\n\n      "," {\n        right: 50px;\n        top: 70px;\n      }\n    }\n  }\n"]);return l=function(){return e},e}var c=o.ZP.div.withConfig({componentId:"sc-500b38b5-0"})(l(),function(e){return e.theme.media.md},function(e){return e.theme.media.lg},function(e){return e.theme.media.lg}),u=t(70472),d=function(e){var n=e.active,t=e.children,r=e.close,o=e.hideCloseButton,l=e.onBack,d=void 0!==l&&l,m=e.customClass;return(0,a.jsx)(c,{className:"".concat(void 0===m?"":m," ").concat(n&&"active"),children:(0,a.jsxs)("div",{className:"children-wrapper",children:[d&&(0,a.jsx)(u.Q,{className:"back-btn",src:"/static/images/icons/scheduler/back-new.svg?type=svg",onClick:d}),!(void 0!==o&&o)&&(0,a.jsx)("button",{type:"button",className:"close-btn",onClick:r,children:(0,a.jsx)(s.G,{icon:i.NBC,color:"#333"})}),t]})})}},985:function(e,n,t){var a=t(7297),s=t(31157);function i(){var e=(0,a.Z)(["\n  font-size: 14px;\n  text-align: center;\n\n  "," {\n    font-size: 16px;\n  }\n  \n  a {\n    color: #000;\n    text-decoration: underline;\n  }\n\n  .tos-description {\n    display: inline;\n    color: #000;\n    font-family: Poppins;\n    font-style: normal;\n    font-weight: 400;\n    line-height: 20px;\n    font-size: 12px;\n\n    "," {\n      font-size: 16px;\n      line-height: 30px;\n    }\n  }\n"]);return i=function(){return e},e}var r=s.ZP.div.withConfig({componentId:"sc-53f58569-0"})(i(),function(e){return e.theme.media.lg},function(e){return e.theme.media.lg});n.Z=r},36942:function(e,n,t){t.r(n),t.d(n,{default:function(){return ex}});var a=t(47568),s=t(26042),i=t(69396),r=t(97582),o=t(85893),l=t(67294),c=t(27484),u=t.n(c),d=t(36808),m=t.n(d),h=t(70178),p=t.n(h),f=t(29387),v=t.n(f),x=t(28734),g=t.n(x),b=t(78862),y=t(51394),j=t(44195),N=t(11163),_=t(9669),C=t.n(_),Z=t(82580),S=t(41609),w=t.n(S),k=t(50259),T=t(53209),F=t(11269),E=t(90961),A=t.n(E),B=t(985),P=t(39677),I=t(14343);function z(e){var n=e.id,t=e.text,a=e.tosText;return(0,o.jsxs)(B.Z,{children:[(0,o.jsx)(I.Z,{text:a||t,customClass:"tos-description"}),"\xa0",(0,o.jsx)(P.Z,{id:n})]})}var D=t(31838),O=t(54352),M=t(5012),L=t(94155),q=t(4488),H=t(92814),Y=t(51436),R=t(70472),W=t(7297),J=t(31157);function G(){var e=(0,W.Z)(["\n  background: #fff;\n  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);\n  height: 0;\n  min-height: 100vh;\n  left: 0;\n  position: absolute;\n  top: 0;\n  opacity: 1;\n  overflow: auto;\n  width: 100%;\n  z-index: 98;\n\n  .consultation {\n    position: initial !important;\n    "," {\n      height: auto !important;\n    }\n  }\n\n  .children-wrapper {\n    padding: 3.5rem 0 6rem;\n    text-align: center;\n    display: block;\n    height: 100%;\n\n    "," {\n      padding-top: 70px;\n      display: flex;\n      flex-direction: row;\n      justify-content: center;\n    }\n\n    .back-btn {\n      background: transparent;\n      border: none;\n      font-size: 1rem;\n      height: 1.5rem;\n      line-height: 1;\n      margin: 0;\n      padding: 0;\n      position: absolute;\n      left: 0.8rem;\n      top: 5rem;\n      width: 1.5rem;\n      z-index: 98;\n\n      "," {\n        position: relative;\n        left: 2.5rem;\n        top: 1.5rem;\n      }\n    }\n\n    .close-btn {\n      background: transparent;\n      border: none;\n      font-size: 1rem;\n      height: 1.5rem;\n      line-height: 1;\n      margin: 0;\n      padding: 0;\n      position: absolute;\n      right: 0.8rem;\n      top: 4.8rem;\n      width: 1.5rem;\n      z-index: 98;\n      "," {\n        position: relative;\n        right: 1rem;\n        top: 1.2rem;\n      }\n    }\n  }\n  .general-title-shedule {\n    margin: 1.3rem;\n    font-size: 16px;\n    text-align: center;\n    font-family: 'Poppins';\n    color: #1e2b2e;\n    line-height: 24px;\n    "," {\n      font-size: 22px;\n    }\n  }\n  svg {\n    height: 1em;\n  }\n\n  &.thanks-component {\n    .close-btn {\n      top: 5.7rem;\n      "," {\n        top: 2.2rem;\n        right: 5rem;\n      }\n      "," {\n        right: 14rem;\n        top: 2.2rem;\n      }\n    }\n  }\n"]);return G=function(){return e},e}var Q=J.ZP.div.withConfig({componentId:"sc-d71175a0-0"})(G(),function(e){return e.theme.media.lg},function(e){return e.theme.media.sm},function(e){return e.theme.media.sm},function(e){return e.theme.media.sm},function(e){return e.theme.media.md},function(e){return e.theme.media.sm},function(e){return e.theme.media.md}),V=function(e){var n=e.children,t=e.close,a=e.hideCloseButton,s=e.onBack,i=void 0!==s&&s,r=e.customClass;return(0,o.jsx)(Q,{className:"slide-up ".concat(void 0===r?"":r," "),children:(0,o.jsxs)("div",{className:"children-wrapper",children:[i&&(0,o.jsx)(R.Q,{className:"back-btn",src:"/static/images/icons/scheduler/back-new.svg?type=svg",onClick:i}),n,!(void 0!==a&&a)&&(0,o.jsx)("button",{type:"button",className:"close-btn",onClick:t,children:(0,o.jsx)(H.G,{icon:Y.NBC,color:"#333"})})]})})},U=t(61783),$=t(70321),K=/^(\([0-9]{3}\) |[0-9]{3}-)[0-9]{3}-[0-9]{4}$/,X=/^(?!\s*$|\s).*$/,ee=function(e){var n=e.appointment,t=e.account,i=void 0===t?null:t,c=e.buttonText,d=void 0===c?"Confirm My Appointment":c,m=e.close,h=e.reset,p=e.stage,f=e.submit,v=(e.title,e.submitError),x=e.onBack,g=e.localizationFields,b=void 0===g?O.Z.en:g,y=(e.AdditionalQuestions,e.hideCloseButton),j=e.schedulerFormHeader,_=e.schedulerFormDescription,S=void 0===_?"":_,E=e.schedulerLoaderHeader,B=(e.schedulerLoaderCopy,e.customClass),P=e.tosText,H=e.showIndustry,Y=void 0===H||H,R=(0,l.useState)({}),W=R[0],J=R[1],G=(0,l.useState)(!1),Q=G[0],ee=G[1],en=(0,l.useState)(null),et=en[0],ea=en[1],es=(0,l.useState)(null),ei=es[0],er=es[1],eo=(0,l.useState)(null),el=eo[0],ec=eo[1],eu=(0,l.useState)(null),ed=eu[0],em=eu[1],eh=(0,l.useState)(!1),ep=eh[0],ef=eh[1],ev=(0,l.useState)(""),ex=ev[0],eg=ev[1],eb=(0,l.useState)(""),ey=eb[0],ej=eb[1],eN=(0,l.useState)({}),e_=eN[0],eC=eN[1],eZ=(0,N.useRouter)(),eS=(0,k.xX)().executeRecaptcha,ew={first_name:T.Z_().min(1,"Must have at least one character").required("Please enter your first name"),last_name:T.Z_().min(1,"Must have at least one character").max(255,"Must be shorter than 255 characters").required("Please enter your last name"),email:T.Z_().email("Please enter a valid email address").required("Please enter your email address"),phone:T.Z_().matches(K,"Please enter a valid phone number").required("Please enter your phone number"),business_name:T.Z_().min(1,"Must have at least one character").matches(X,"Cannot be blank or begin with a space").required("Please enter your business name")};if(Y&&(ew.industry=T.Z_().required("Please select an option")),(0,l.useEffect)(function(){eC({first_name:i?null==i?void 0:i.first_name:"",last_name:i?null==i?void 0:i.last_name:"",email:i?null==i?void 0:i.email:"",phone:i?null==i?void 0:i.phone:"",business_name:i?null==i?void 0:i.business_name:"",industry:i?null==i?void 0:i.industry:"",sms_opt_in:!i||(null==i?void 0:i.sms_opt_in)})},[]),"undefined"!=typeof sessionStorage&&sessionStorage.getItem("VWO_variation")){var ek=JSON.parse(localStorage.getItem("query"))||{};ek.utm_content="vwo_v1",localStorage.setItem("query",JSON.stringify(ek))}var eT,eF=T.Ry().shape((0,s.Z)({},ew,{})),eE=(eT=(0,a.Z)(function(){var e;return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,C().get(D.uK.websiteConfig)];case 1:return J(e.sent().data.picklist_options),[2]}})}),function(){return eT.apply(this,arguments)});(0,l.useEffect)(function(){var e;ej(null==eZ?void 0:null===(e=eZ.query)||void 0===e?void 0:e.slug)},[]);var eA=(0,l.useRef)(!1);(0,l.useEffect)(function(){return eA.current=!0,function(){eA.current=!1}},[]),(0,l.useEffect)(function(){eE()},[]),(0,l.useEffect)(function(){var e=JSON.parse(sessionStorage.getItem("scheduleFormData")),n=JSON.parse(sessionStorage.getItem("scheduleFormContext"));e&&n&&eI(e,n)},[]),(0,l.useEffect)(function(){h&&ee(!1)},[h]);var eB,eP=(0,l.useCallback)((0,a.Z)(function(){var e,n,t,a;return(0,r.__generator)(this,function(s){switch(s.label){case 0:if(eS)return[3,1];return[2];case 1:return s.trys.push([1,4,,5]),[4,eS("yourAction")];case 2:return e=s.sent(),[4,A()(e)];case 3:return(null==(t=null==(n=s.sent())?void 0:n.data.data)?void 0:t.score)>=.7?ef(!0):eg("There was an issue in verifying the user. Please refresh, and try again"),[3,5];case 4:return a=s.sent(),console.error("Error verifying ReCaptcha:",a),eg("There was an issue in verifying the user. Please refresh, and try again"),[3,5];case 5:return[2,function(){ef(!1),eg("")}]}})}),[eS]);(0,l.useEffect)(function(){"affiliate-partners-v2"===ey&&eP()},[eP]);var eI=(eB=(0,a.Z)(function(e,n){return(0,r.__generator)(this,function(t){switch(t.label){case 0:return ee(!0),sessionStorage.setItem("scheduleFormData",JSON.stringify(e)),sessionStorage.setItem("scheduleFormContext",JSON.stringify(n)),[4,f(e,n,!0)];case 1:return t.sent(),eA.current&&ee(!1),[2]}})}),function(e,n){return eB.apply(this,arguments)});return(0,l.useEffect)(function(){eE()},[]),(0,l.useEffect)(function(){em(u()(new Date).format("z"));var e,t=new Date(0);t.setUTCMilliseconds(n.selectedTime);var a=t.getHours(),s=t.getMinutes();return ec(30===s?String(F.Z[String(a)+String(s)]):String(F.Z[String(a)])),ea(t.getMonth()+1),er(t.getDate()),function(){em(null)}},[]),(0,o.jsx)(V,{hideCloseButton:void 0!==y&&y,active:"form"===p,close:m,onBack:x,customClass:void 0===B?"":B,children:(0,o.jsx)($.U,{"data-cy":"scheduler-additional-fields",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-12 col-md-12",children:(0,o.jsxs)("section",{className:"questions",children:[(0,o.jsx)("h3",{className:Q?"general-title-shedule hidden":"general-title-shedule",children:(0,o.jsx)(I.Z,{text:void 0===j?"":j,customClass:"general-title-shedule"})}),Q&&(0,o.jsx)(I.Z,{text:void 0===E?"":E,customClass:"scheduler-loader-header"}),(0,o.jsx)("div",{className:"form-wrap",children:(0,o.jsx)(U.cc,{children:function(e,t){var s;return(0,o.jsx)(Z.J9,{enableReinitialize:!0,validateOnMount:!0,initialValues:e_,validationSchema:eF,onSubmit:(s=(0,a.Z)(function(n,a){var s;return(0,r.__generator)(this,function(i){return s=a.setSubmitting,eI(n,e,t),s(!0),[2]})}),function(e,n){return s.apply(this,arguments)}),children:function(e){var t=e.values,a=e.errors,s=e.touched,i=e.handleChange,r=e.handleBlur,l=e.handleSubmit,c=e.isSubmitting;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Z.l0,{onSubmit:l,className:Q?"is-loading":"",children:[(0,o.jsxs)("div",{className:"form-background",children:[n&&(0,o.jsx)("div",{className:"schedule-time",children:"Scheduled for ".concat(et,"/").concat(ei," at ").concat(el," ").concat(ed)}),(0,o.jsx)(M.Z,{id:"first_name",label:b.nameField,values:t,touched:s,errors:a,handleChange:i,handleBlur:r,tests:eF.fields.first_name.tests}),(0,o.jsx)(M.Z,{id:"last_name",label:b.lastnameField,values:t,touched:s,errors:a,handleChange:i,handleBlur:r,tests:eF.fields.last_name.tests}),(0,o.jsx)(M.Z,{id:"email",label:b.emailField,type:"email",values:t,touched:s,errors:a,handleChange:i,handleBlur:r,tests:eF.fields.email.tests,info:"We’ll send the appointment confirmation to your inbox."}),(0,o.jsx)(M.Z,{id:"phone",label:b.phoneField,values:t,touched:s,errors:a,handleChange:i,handleBlur:r,type:"tel",tests:eF.fields.phone.tests,info:"A small business specialist will call you at the date and time you selected."}),(0,o.jsx)(M.Z,{id:"business_name",label:b.businessNameField,values:t,touched:s,errors:a,handleChange:i,handleBlur:r,tests:eF.fields.business_name.tests,info:"Input the name of your business. If you don’t have a business, please put ‘none’."}),Y&&(0,o.jsx)(L.Z,{id:"industry",label:b.industry,touched:s,errors:a,handleChange:i,handleBlur:r,values:t,options:W.industry,addNoneOption:!0,tests:eF.fields.industry.tests,info:"Select the industry that best describes your business. If you don't see an industry that matches your business, select 'other'."}),v||ex?(0,o.jsx)(q.Z,{type:"error",message:v||ex}):null]}),(0,o.jsxs)("div",{children:["affiliate-partners-v2"===ey&&(0,o.jsx)("button",{type:"submit",label:"",className:"btn btn-submit btn-block ".concat(!c&&w()(a)&&ep?"btn-blue":"btn-disabled"),disabled:!ep,children:d}),"affiliate-partners-v2"!==ey&&(0,o.jsx)("button",{type:"submit",label:"",className:"btn btn-submit btn-block ".concat(c||!w()(a)?"btn-disabled":"btn-blue"),children:d})]}),(0,o.jsx)("div",{className:"terms-text",children:(0,o.jsx)(z,{id:"sms_opt_in",text:S,buttonText:d,tosText:P})})]}),Q&&(0,o.jsxs)("div",{className:"loading-message",children:[(0,o.jsx)("h4",{children:"Just a moment…"}),(0,o.jsxs)("p",{children:["We're scheduling your appointment...",(0,o.jsx)("br",{}),(0,o.jsx)("strong",{children:"Please keep this window open."})]})]})]})}})}})})]})})})})})})},en=function(e){var n,t=(0,N.useRouter)();return(null==t?void 0:null===(n=t.query)||void 0===n?void 0:n.slug)==="affiliate-partners-v2"?(0,o.jsx)(k.pm,{reCaptchaKey:"6LcmBHomAAAAAO-mZB7DF-z9VikUDj4VKVtHodLk",children:(0,o.jsx)(ee,(0,s.Z)({},e))}):(0,o.jsx)(ee,(0,s.Z)({},e))},et=t(10229),ea=t(79661),es=t(16228),ei=t(62501),er=t(43315),eo=t(25940);u().extend(p()),u().extend(v()),u().extend(g());var el=function(e){var n=e.appointment,t=e.schedulerConfirmationCopy,s=(e.schedulerAvatar,e.schedulerDescription,e.schedulerStars,e.active),i=e.close,c=e.customClass,d=(0,l.useState)(!1),m=d[0],h=d[1];(0,ea.ac)("(max-width: 992px)");var p=u().tz.guess();return(0,l.useEffect)(function(){(null==window?void 0:window.fbq)&&window.fbq("track","Lightbox Appointment Scheduled")},[]),(0,l.useEffect)(function(){var e;(e=(0,a.Z)(function(){var e;return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,(0,es.Z)()];case 1:return h(e.sent()),[2]}})}),function(){return e.apply(this,arguments)})(),setTimeout((0,a.Z)(function(){return(0,r.__generator)(this,function(e){return(0,er.Z)(),[2]})}),4e3)},[]),(0,o.jsx)(V,{active:s,close:i,className:"thanks-component ".concat(void 0===c?"":c),children:(0,o.jsx)(eo.U,{className:"scheduler-thank-you",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row",children:(0,o.jsxs)("div",{className:"col-12 col-md-12",children:[m?(0,o.jsx)(ei.default,{shareASaleHash:m,transType:"lead"}):"",(0,o.jsx)(I.Z,{text:void 0===t?"":t,customClass:"confirmation-copy"}),(0,o.jsx)("div",{className:"row appointment-details",children:(0,o.jsxs)("div",{className:"",children:[(0,o.jsxs)("div",{className:"date",children:[(0,o.jsx)(R.Q,{className:"svg-container",src:"/static/images/icons/scheduler/calendar-white-3.svg?type=svg"}),n&&(0,o.jsx)("h3",{children:u()(n.selectedDate).format("dddd, MMM DD, YYYY")})]}),(0,o.jsxs)("div",{className:"time",children:[(0,o.jsx)(R.Q,{className:"svg-container",src:"/static/images/icons/scheduler/clock-white-3.svg?type=svg"}),n&&(0,o.jsx)("h3",{children:u()(n.selectedTime).format("hh:mm A")})]}),(0,o.jsxs)("div",{className:"timezone",children:[(0,o.jsx)(R.Q,{className:"svg-container",src:"/static/images/icons/scheduler/globe-white-3.svg?type=svg"}),(0,o.jsx)("h3",{children:p})]})]})})]})})})})})},ec=t(61608),eu=t.n(ec),ed=t(86174),em=t(7454),eh=function(e){var n=e.close,t=e.handleNextStep,a=e.stage,s=e.campaign,i=e.data,r=e.submitting,l=e.PaidCampaign,c=e.EntityCampaign,u=e.localizationStrings,d=void 0===u?O.Z.en:u,m=e.setCurrentStep,h=e.setIsLoading,p=e.customClass,f=void 0!==p&&p,v=e.NumDaysOverride,x=(e.isTaxServicesLLC,e.errorMessage),g=void 0===x?null:x,b=e.EForm,y=e.schedulerHeader,N=e.schedulerAvatar,_=void 0===N?null:N,C=e.schedulerDescription,Z=e.schedulerStars,S=e.setSchedulerErrorMessage,w=e.active,k=(0,ea.ac)("(max-width: 992px)");l=(0,j.Z)(l);var T,F,E,A,B=!1;return i&&(B=i.is_stimulus),(0,o.jsx)(V,{active:w,close:n,customClass:f,children:(0,o.jsxs)(em.m,{className:f,children:[(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row justify-content-center",children:(0,o.jsx)("div",{className:"col-12 col-md-10",children:(0,o.jsx)(I.Z,{text:void 0===y?"":y,customClass:"general-title-shedule"})})})}),g?(0,o.jsxs)("div",{className:"error-message",children:[(0,o.jsx)("img",{src:"/icons/danger.png",alt:"danger icon",width:"50px",height:"50px"})," ",g]}):"",(0,o.jsx)("div",{children:(0,o.jsx)(ed.Z,{close:n,handleNextStep:t,mode:"slideup",PaidCampaign:l,EntityCampaign:void 0!==c&&c,isStimulus:B?"1":"0",stage:a,campaign:s,submitting:r,appointmentText:d.appointmentText,confirmText:d.confirmText,setCurrentStep:void 0!==m&&m,setIsLoading:void 0!==h&&h,NumDaysOverride:void 0===v?null:v,EForm:void 0!==b&&b,setSchedulerErrorMessage:void 0===S?null:S})}),(0,o.jsx)("div",{className:"container",children:(0,o.jsxs)("div",{className:"scheduler-testimonial-content-stack col-12",children:[(0,o.jsx)(eu(),{src:null==_?void 0:_.url,width:500,height:500,className:"scheduler-avatar"}),(0,o.jsx)("div",{className:"text-container",children:(T=void 0===Z?null:Z,F=void 0===C?"":C,E=null==T?void 0:T.tags[0],A=F.replace("1-800Accountant",'<span class="nowrap">1-800Accountant</span>'),"hide-all"===E?(0,o.jsx)(I.Z,{text:A,customClass:"scheduler-description"}):(0,o.jsxs)(o.Fragment,{children:[k&&(0,o.jsx)(eu(),{src:null==T?void 0:T.url,width:500,height:500,className:"scheduler-stars"}),(0,o.jsx)(I.Z,{text:A,customClass:"scheduler-description",customAllowedTags:["strong","p","span"]}),!k&&(0,o.jsx)(eu(),{src:null==T?void 0:T.url,width:500,height:500,className:"scheduler-stars"})]}))})]})})]})})};function ep(){var e=(0,W.Z)(["\n  padding: 0;\n\n  .sub-message {\n    text-align: center;\n  }\n\n  .slide-up.consultation,\n  .slide-up.join-now {\n    position: initial !important;\n    height: auto !important;\n  }\n"]);return ep=function(){return e},e}var ef=J.ZP.div.withConfig({componentId:"sc-5429ef77-0"})(ep()),ev=t(19293);u().extend(p()),u().extend(v()),u().extend(g());var ex=function(e){var n=e.account,t=e.data,c=e.callBack,d=e.onSuccess,h=e.update,p=void 0!==h&&h,f=e.onClose,v=(e.restartOnClose,e.PaidCampaign),x=e.phoneNumber,g=void 0===x?"18002226868":x,_=e.AdditionalQuestions,C=e.onDateSelect,Z=e.customSubmitting,S=e.EntityCampaign,w=void 0!==S&&S,k=e.language,T=void 0===k?"en":k,F=e.setCurrentStep,E=void 0!==F&&F,A=e.setIsLoading,B=e.customClass,P=void 0!==B&&B,I=e.NumDaysOverride,z=e.AssignOwner,D=void 0!==z&&z,M=e.doElite,L=void 0!==M&&M,q=e.isTaxServicesLLC,H=e.EForm,Y=void 0!==H&&H,R=e.hideCloseButton,W=void 0!==R&&R,J=e.schedulerCopy,G=void 0!==J&&J,Q=e.active,V=t.scheduler,U=t.form;t.thank_you;var $=(0,j.Z)(v),K=(0,l.useState)(null),X=K[0],ee=K[1],ea=(0,l.useState)(null),es=ea[0],ei=ea[1],er=(0,l.useState)(ev.f),eo=er[0],ec=er[1],eu=(0,l.useState)(null),ed=eu[0],em=eu[1],ep=(0,l.useState)("scheduler"),ex=ep[0],eg=ep[1],eb=(0,l.useState)(!1),ey=eb[0],ej=eb[1],eN=(0,l.useState)(),e_=eN[0],eC=eN[1],eZ=(0,l.useState)(O.Z.en),eS=eZ[0],ew=eZ[1],ek=(0,l.useState)(null);ek[0],ek[1];var eT=(0,N.useRouter)(),eF=null==eT?void 0:eT.asPath,eE=!(eF.includes("join-now-v2")||eF.includes("tax-services-business-v2"));(0,l.useEffect)(function(){var e=u().tz.guess();eC(e)},[]),(0,l.useEffect)(function(){"es"===T&&ew(O.Z.es)},[T]),(0,l.useEffect)(function(){E&&ed&&eP()},[ed]),(0,l.useEffect)(function(){E&&(0,a.Z)(function(){var e;return(0,r.__generator)(this,function(n){return e=m().get("ContactID"),ec({leadID:e}),[2]})})()},[]),(0,l.useEffect)(function(){if(p){var e=m().get("ContactID"),n=m().get("LeadID");ec({leadID:n,contactID:e})}},[]);var eA,eB=function(){f&&f()},eP=(eA=(0,a.Z)(function(e,n){var t,a,s,i,o=arguments;return(0,r.__generator)(this,function(n){switch(n.label){case 0:return t=!(o.length>2)||void 0===o[2]||o[2],ej(!0),ee(null),ei(""),a=!!E,s=(0,y.default)(),[4,(0,b.CX)(ed,$,e,g,e_,eo,ec,ee,p,w,T,D,a,L,Y,t,eF)];case 1:return i=n.sent(),d?d():(c&&c({response:i,formData:e,leadValues:s,selectedAppointment:ed}),ej(!1),eg("thanks")),[2]}})}),function(e,n){return eA.apply(this,arguments)});(0,l.useEffect)(function(){ed&&!E&&eg("form")},[ed]);var eI=function(e){E?(0,a.Z)(function(){return(0,r.__generator)(this,function(n){return em(e),[2]})})():em(e)};return(0,o.jsx)(ev.z.Provider,{value:(0,i.Z)((0,s.Z)({},eo),{set:ec}),children:(0,o.jsxs)(ef,{"data-cy":"universal-scheduler",children:["scheduler"===ex&&(0,o.jsx)(eh,{active:!0,handleNextStep:C||eI,stage:ex,data:V,formData:U,close:eB,submitting:ey||Z,PaidCampaign:$,EntityCampaign:w,localizationStrings:eS,setCurrentStep:E,setIsLoading:void 0!==A&&A,customClass:P,NumDaysOverride:void 0===I?null:I,isTaxServicesLLC:q,EForm:Y,errorMessage:es,schedulerHeader:null==G?void 0:G.scheduler_header,schedulerAvatar:null==G?void 0:G.scheduler_avatar,schedulerDescription:null==G?void 0:G.scheduler_description,schedulerStars:null==G?void 0:G.scheduler_stars,setSchedulerErrorMessage:ei}),"form"===ex&&(0,o.jsx)(en,{appointment:ed,onBack:function(){return eg("scheduler")},account:void 0===n?null:n,campaign:U.service_type,close:eB,stage:ex,submit:eP,submitError:X,data:V,AdditionalQuestions:_,localizationFields:eS,title:eS.schedulerTitle,tosText:eS.tosText,buttonText:eS.schedulerButtonText,hideCloseButton:W,schedulerFormHeader:null==G?void 0:G.scheduler_form_header,schedulerFormDescription:null==G?void 0:G.scheduler_form_description,schedulerLoaderHeader:null==G?void 0:G.loader_header,schedulerLoaderCopy:null==G?void 0:G.loader_copy,customClass:P,showIndustry:eE}),"existing-customer"===ex&&(0,o.jsx)(et.Z,{onBack:function(){return eg("scheduler")},close:eB,hideCloseButton:W,submit:eP,stage:ex,customClass:P}),"thanks"===ex&&(0,o.jsx)(el,{active:void 0===Q||Q,appointment:ed,close:eB,localizationStrings:eS,schedulerConfirmationCopy:null==G?void 0:G.scheduler_confirmation_copy,schedulerAvatar:null==G?void 0:G.scheduler_avatar,schedulerDescription:null==G?void 0:G.scheduler_description,schedulerStars:null==G?void 0:G.scheduler_stars,customClass:P})]})})}},54352:function(e,n,t){var a,s=t(14924),i={en:{lang:"en",schedulerTitle:"Great! Please provide your contact info and confirm below.",schedulerButtonText:"Confirm My Appointment",tosText:'By clicking "Confirm My Appointment" you agree to our <a target="blank" href="/terms-of-services">Terms of Service</a> and <a target="blank" href="/privacy-policy">Privacy Policy</a>. This includes permission to communicate with you about your appointments via phone, email, or SMS. <br><br>If you prefer to opt-out of SMS communications you may uncheck this box',thankyouTitle:"Confirm My Appointment",apppointmentConfirmationText:"Your appointment is scheduled and confirmed. We'll also send a confirmation email with this info for your convenience.",waitText:"We're scheduling your appointment...",nameField:"First Name",lastnameField:"Last Name",emailField:"Email",phoneField:"Phone",businessNameField:"Business Name",industry:"Industry",areasNeedingHelp:"What can we help you with?",expected1stYearRevenue:"Expected Annual Revenue",ctaButton:"Schedule My Free Call",headerStartFree:"Start for Free",meetingWith:"Meeting with",alreadyHasAccount:"Already have an account?",appointmentText:"Appointment",confirmText:"Confirm",scheduler:{title:"Accounting for Everything",sub_title:"Nationwide tax and accounting services for small businesses, provided by local CPAs.",additional_copy:"Choose the best time, provide some basic info, and we’ll give you a call.",accountant_details:{image:{url:"/images/Susan_Young_color.png",alt:"Susan Young headshot"},name:"Susan Young",job_title:"1-800Accountant Specialist"},paid_campaign:!0,is_stimulus:!1},form:{lead_source:"1-800Accountant",lead_type:"Join Now",title:"Great! We need a little more information to schedule your appointment.",service_type:"Accounting",button_text:"Confirm my Appointment"},thank_you:{title:"Talk To You Soon!",sub_title:"Your appointment is scheduled and confirmed. We'll also send a confirmation email with this info for your convenience.",calendar_event_title:"Accounting Consultation",calendar_event_description:""}},es:(a={lang:"es",schedulerTitle:"\xa1Genial! Necesitamos un poco mas de informaci\xf3n para confirmar su cita.",schedulerButtonText:"Reservar mi Reuni\xf3n",tosText:'Al hacer clic en "Reservar mi Reuni\xf3n" confirma que ha le\xeddo y acepta nuestros <a target=\'"\'blank" href="/terms-of-services">T\xe9rminos de Servicio</a>. Esto incluye el permiso para comunicarnos con usted acerca de nuestros servicios. Si prefiere optar por no recibir comunicaciones por mensaje de texto, puede desmarcar esta casilla',thankyouTitle:"\xa1Hablamos Pronto!",apppointmentConfirmationText:"Su cita esta programada y confirmada. Tambien le enviaremos un correo electr\xf3nico de confirmaci\xf3n con esta informaci\xf3n para su conveniencia.",waitText:"Estamos esperando tu reuni\xf3n...",nameField:"We're scheduling your appointment..."},(0,s.Z)(a,"nameField","Nombre"),(0,s.Z)(a,"lastnameField","Apellido"),(0,s.Z)(a,"emailField","Correo electr\xf3nico"),(0,s.Z)(a,"phoneField","Tel\xe9fono"),(0,s.Z)(a,"businessNameField","Nombre del negocio"),(0,s.Z)(a,"industry","Industria"),(0,s.Z)(a,"areasNeedingHelp","\xbfEn qu\xe9 podemos ayudarte?"),(0,s.Z)(a,"expected1stYearRevenue","Ingreso estimado anualmente"),(0,s.Z)(a,"ctaButton","Programar Mi Llamada Gratuita"),(0,s.Z)(a,"headerStartFree","Empiece Gratis"),(0,s.Z)(a,"meetingWith","Cita con"),(0,s.Z)(a,"alreadyHasAccount","\xbfYa ten\xe9s cuenta?"),(0,s.Z)(a,"appointmentText","Cita"),(0,s.Z)(a,"confirmText","Confirmar"),(0,s.Z)(a,"scheduler",{title:"Contabilidad para todo",sub_title:"Servicios de impuestos y contabilidad a nivel nacional para peque\xf1as empresas, proporcionado por contadores locales",additional_copy:"Elija el mejor momento, proporcione informaci\xf3n b\xe1sica y te llamaremos",accountant_details:{image:{url:"/images/Susan_Young_color.png",alt:"Susan Young headshot"},name:"Susan Young",job_title:"Especialista de 1-800Accountant"},paid_campaign:!0,is_stimulus:!1}),(0,s.Z)(a,"form",{lead_source:"1-800Accountant",lead_type:"Join Now",title:"\xa1Genial! Necesitamos un poco mas de informaci\xf3n para confirmar su cita.",service_type:"Contabilidad",button_text:"Confirmar mi cita"}),(0,s.Z)(a,"thank_you",{title:"\xa1Hablamos Pronto!",sub_title:"Su cita esta programada y confirmada. Tambien le enviaremos un correo electr\xf3nico de confirmacion con esta informacion para su conveniencia.",calendar_event_title:"Consultor\xeda contable",calendar_event_description:""}),a)};n.Z=i},16228:function(e,n,t){var a,s=t(47568),i=t(97582),r=(a=(0,s.Z)(function(){return(0,i.__generator)(this,function(e){return[2,!1]})}),function(){return a.apply(this,arguments)});n.Z=r},43315:function(e,n,t){var a,s=t(47568),i=t(97582);t(9669),t(36808);var r=(a=(0,s.Z)(function(){var e;return(0,i.__generator)(this,function(e){switch(e.label){case 0:return[2,!1];case 1:return[2,e.sent()]}})}),function(){return a.apply(this,arguments)});n.Z=r},90961:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0});var a,s=t(60932).Z,i=t(32401).Z,r=t(9669),o=(a=s(function(e){var n;return i(this,function(t){try{return n=r({method:"POST",url:"/api/backend/webapi/v2/verify",data:{captchaValue:e}}),[2,n]}catch(a){return console.error("Error validating recaptcha:",a),[2,!1]}return[2]})}),function(e){return a.apply(this,arguments)});e.exports=o}}]);