1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7616],{91446:function(e,a,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/signup",function(){return r(48805)}])},47993:function(e,a,r){"use strict";r.d(a,{Ii:function(){return l},Wz:function(){return o},zx:function(){return c}});var n=r(85893),t=r(74931),s=r(67555),i=r.n(s);function o(e){var a=e.error,r=void 0===a?null:a,t=e.onChange,s=void 0===t?function(){}:t,i=e.value,o=void 0===i?null:i,l=e.placeHolder,c=void 0===l?"":l,d=e.label,u=void 0===d?"":d,m=e.name,h=void 0===m?"":m,p=e.type,b=void 0===p?"text":p,x=e.required,f=void 0===x||x;return(0,n.jsxs)("div",{className:"mb-5",children:[(0,n.jsxs)("label",{className:"block mb-1 text-gray-600 font-extralight",style:{fontSize:14.88,lineHeight:"1.25rem"},children:[u,f&&(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)("input",{className:"appearance-none block w-full p-3 leading-5 border rounded-md outline-none ".concat(r?"border-red-500":"focus:ring-2 focus:ring-brandyellow focus:ring-opacity-50"),type:b,value:o,required:f,placeholder:c,onChange:s,name:h})]})}function l(e){var a=e.error,r=void 0===a?null:a,t=e.onChange,s=void 0===t?function(){}:t,o=(e.value,e.placeHolder),l=void 0===o?"":o,c=e.label,d=void 0===c?"":c,u=e.required,m=void 0===u||u;return(0,n.jsxs)("div",{className:"mb-5",children:[(0,n.jsxs)("label",{className:"block mb-1 text-gray-600 font-extralight",style:{fontSize:14.88,lineHeight:"1.25rem"},children:[d,m&&(0,n.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,n.jsx)(i(),{inputStyle:{padding:"10px 14px 10px 58px",width:"100%",borderRadius:8,border:r?"1px solid #f56565":"1px solid #e2e8f0"},dropdownClass:"scrollbar",inputClass:"phone-input",specialLabel:"",country:"us",onChange:s,placeholder:l})]})}function c(e){var a=e.label,r=void 0===a?"Continue":a,s=e.type,i=void 0===s?"button":s,o=e.onClick,l=void 0===o?function(){}:o,c=e.isLoading,d=void 0!==c&&c;return(0,n.jsxs)("button",{className:"py-3 px-7 mb-5 mt-4 w-full flex ease-in-out duration-100 transition justify-center items-center text-base text-brandblack text-center leading-6 bg-brandyellow font-bold focus:ring-2 focus:ring-brandyellow focus:ring-opacity-50 rounded-md shadow-sm ".concat(d?"opacity-50 cursor-not-allowed":"hover:bg-yellow-400"),type:i,disabled:d,onClick:l,children:[d&&(0,n.jsx)(t.c0,{className:"w-20 h-20 mr-3"}),r]})}},17658:function(e,a,r){"use strict";r.d(a,{Z:function(){return c}});var n=r(85893),t=r(42746),s=r(19365),i=r(86204),o=r(28665),l=r(63801);function c(e){var a=e.children,r=e.title,c=e.subHeading,d=(0,t.useTranslations)("Signup.Layout"),u=[{icon:l.uSF,title:"Leads AI",render:(0,n.jsx)(n.Fragment,{children:d.rich("Features.LeadsAI",{bold:function(e){return(0,n.jsx)("b",{children:e})},providers:function(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:(0,n.jsx)(s.RU,{className:"inline-block ml-2",width:30,height:30})}),(0,n.jsx)("span",{children:(0,n.jsx)(s.up,{className:"inline-block ml-2",width:32,height:32})}),(0,n.jsx)("span",{children:(0,n.jsx)(s.So,{className:"inline-block ml-2",width:30,height:30})}),(0,n.jsx)("span",{children:(0,n.jsx)(s.MP,{className:"inline-block ml-2",width:27,height:27})}),(0,n.jsx)("span",{children:(0,n.jsx)(s.XY,{className:"inline-block mx-2 text-green-500",width:26,height:26})}),(0,n.jsx)("span",{children:(0,n.jsx)(i.bD1,{className:"inline-block mx-2",width:26,height:26,style:{color:"#B92B27"}})}),(0,n.jsx)("span",{children:(0,n.jsx)(s.V3,{className:"inline-block mx-2 text-red-500",width:28,height:28})})]})}})})},{icon:l.iUF,title:"Outreach AI",render:d.rich("Features.OutreachAI",{bold:function(e){return(0,n.jsx)("b",{children:e})}})},{icon:l.Que,title:"Schedule AI",render:d.rich("Features.ScheduleAI",{bold:function(e){return(0,n.jsx)("b",{children:e})}})},{icon:l.fS1,title:"News AI",render:d.rich("Features.NewsAI",{bold:function(e){return(0,n.jsx)("b",{children:e})}})}];return(0,n.jsx)("section",{className:"relative bg-white overflow-hidden",children:(0,n.jsxs)("div",{className:"relative flex flex-wrap min-h-screen items-center justify-center",children:[(0,n.jsx)("div",{className:"w-full md:w-1/2 p-8 min-h-screen flex flex-col justify-center items-center bg-gradient-to-r from-yellow-50 to-brandyellow",children:(0,n.jsx)("div",{className:"flex flex-wrap",children:(0,n.jsx)("div",{className:"w-full",children:(0,n.jsxs)("div",{className:"md:max-w-xl mx-auto",children:[(0,n.jsx)("h1",{className:"mb-12 text-2xl md:text-3xl font-bold flex items-center justify-start",children:(0,n.jsx)(o.Z,{})}),(0,n.jsx)("h2",{className:"mb-10 text-3xl lg:text-4xl font-bold",children:d("Title")}),(0,n.jsx)("h3",{className:"mb-24 text-2xl lg:text-3xl",children:d.rich("Subtitle",{bold:function(e){return(0,n.jsx)("b",{children:e})}})}),(0,n.jsx)("ul",{className:"",children:u.map((function(e){return(0,n.jsxs)("li",{className:"flex gap-3 items-start mb-4",children:[(0,n.jsx)(e.icon,{className:"w-6 h-6 text-brandblack"}),(0,n.jsx)("div",{className:"flex-1 font-medium leading-relaxed text-xl -mt-1",children:e.render})]},e.title)}))})]})})})}),(0,n.jsx)("div",{className:"w-full md:w-1/2 p-8",children:(0,n.jsxs)("div",{className:"max-w-md mx-auto",children:[(0,n.jsxs)("div",{className:"mb-6 text-left",children:[(0,n.jsx)("p",{className:"text-2xl text-gray-800 font-bold",children:r}),c&&(0,n.jsx)("p",{className:"mt-3 text-base text-gray-500 font-medium",children:c})]}),a]})})]})})}},48805:function(e,a,r){"use strict";r.r(a),r.d(a,{__N_SSP:function(){return L},default:function(){return V}});var n,t=r(47568),s=r(14924),i=r(26042),o=r(69396),l=r(29815),c=r(34051),d=r.n(c),u=r(85893),m=r(67294),h=r(47993),p=r(17658),b=r(66089),x=r.
1n(b),f=r(42746),g=r(63801),y=r(86204),v=r(63448);!function(e){e.Ads="ads",e.FromFriend="from_friend",e.SocialMedia="social_media",e.Search="search",e.AI="ai",e.Other="other"}(n||(n={}));v.VK("type",[v.Ry({type:v.i0(n.Ads)}),v.Ry({type:v.i0(n.FromFriend)}),v.Ry({type:v.i0(n.SocialMedia)}),v.Ry({type:v.i0(n.Search)}),v.Ry({type:v.i0(n.AI)}),v.Ry({type:v.i0(n.Other),value:v.Z_()})]);var j,w=[{type:n.Ads,messageKey:"Ads",adminLabel:"Ads"},{type:n.FromFriend,messageKey:"FromFriend",adminLabel:"From a friend"},{type:n.SocialMedia,messageKey:"SocialMedia",adminLabel:"Social media"},{type:n.Search,messageKey:"Search",adminLabel:"Search"},{type:n.AI,messageKey:"AI",adminLabel:"AI"},{type:n.Other,messageKey:"Other",adminLabel:"Other"}],N=((0,o.Z)((0,i.Z)({},w.reduce((function(e,a){return e[a.type]=a.adminLabel,e}),{})),(0,s.Z)({},"unanswered","Not answered")),j={},(0,s.Z)(j,n.Ads,{Icon:g.rIV,className:"bg-orange-100 text-orange-600"}),(0,s.Z)(j,n.FromFriend,{Icon:g.oyc,className:"bg-emerald-100 text-emerald-600"}),(0,s.Z)(j,n.SocialMedia,{Icon:y.Zf_,className:"bg-pink-100 text-pink-600"}),(0,s.Z)(j,n.Search,{Icon:g.W1M,className:"bg-sky-100 text-sky-600"}),(0,s.Z)(j,n.AI,{Icon:y.iNY,className:"bg-indigo-100 text-indigo-600"}),(0,s.Z)(j,n.Other,{Icon:g.T$Z,className:"bg-violet-100 text-violet-600"}),j);function A(e){var a=e.type,r=void 0===a?null:a,t=e.value,s=void 0===t?"":t,i=e.error,o=void 0===i?null:i,l=e.onChangeType,c=void 0===l?function(){}:l,d=e.onChangeValue,m=void 0===d?function(){}:d,h=e.required,p=void 0===h||h,b=(0,f.useTranslations)("Signup.Page.HeardAboutUs"),y=r===n.Other,v="heard-about-us-label";return(0,u.jsxs)("div",{className:"jsx-1e62f2a6801176c0 mb-5",children:[(0,u.jsxs)("label",{id:v,style:{fontSize:14.88,lineHeight:"1.25rem"},className:"jsx-1e62f2a6801176c0 block mb-2 text-gray-600 font-extralight",children:[b("Label"),p&&(0,u.jsx)("span",{className:"jsx-1e62f2a6801176c0 text-red-500",children:"*"})]}),(0,u.jsx)("div",{role:"radiogroup","aria-labelledby":v,className:"jsx-1e62f2a6801176c0 "+"grid grid-cols-2 sm:grid-cols-3 gap-2 rounded-xl ".concat(o?"border-red-400":"border-gray-200"),children:w.map((function(e){var a=N[e.type],n=a.Icon,t=a.className,s=r===e.type;return(0,u.jsxs)("button",{type:"button",role:"radio","aria-checked":s,onClick:function(){return c(e.type)},className:"jsx-1e62f2a6801176c0 "+"heard-card relative flex items-center gap-2.5 p-3 pr-7 text-left rounded-lg outline-none focus-visible:ring-2 focus-visible:ring-brandblack ".concat(s?"bg-brandyellow/40":"bg-gray-50 hover:bg-gray-100"),children:[(0,u.jsx)("span",{className:"jsx-1e62f2a6801176c0 "+"flex-none flex items-center justify-center h-8 w-8 rounded-md ".concat(t),children:(0,u.jsx)(n,{className:"jsx-1e62f2a6801176c0 h-4 w-4"})}),(0,u.jsx)("span",{className:"jsx-1e62f2a6801176c0 text-sm leading-tight text-gray-700",children:b("Options.".concat(e.messageKey))}),s&&(0,u.jsx)("span",{className:"jsx-1e62f2a6801176c0 heard-badge absolute top-1.5 right-1.5 flex items-center justify-center w-4 h-4 rounded-full bg-brandblack",children:(0,u.jsx)(g.nQG,{className:"w-2.5 h-2.5 text-brandyellow",strokeWidth:4})})]},e.type)}))}),(0,u.jsx)("div",{className:"jsx-1e62f2a6801176c0 "+"grid transition-all duration-200 ease-out ".concat(y?"grid-rows-[1fr] opacity-100 mt-2":"grid-rows-[0fr] opacity-0"),children:(0,u.jsx)("div",{className:"jsx-1e62f2a6801176c0 overflow-hidden",children:(0,u.jsx)("div",{className:"jsx-1e62f2a6801176c0 -m-1 p-1",children:(0,u.jsx)("input",{type:"text",name:"heardAboutUsValue",disabled:!y,placeholder:b("OtherPlaceholder"),value:s,onChange:function(e){return m(e.target.value)},className:"jsx-1e62f2a6801176c0 "+"appearance-none block w-full p-3 leading-5 rounded-md outline-none bg-gray-50 disabled:bg-gray-50 focus:bg-white focus:ring-2 focus:ring-brandyellow focus:ring-opacity-50 ".concat(o&&y&&!s?"ring-2 ring-red-400":"")})})})}),(0,u.jsx)(x(),{id:"1e62f2a6801176c0",children:".heard-card.jsx-1e62f2a6801176c0{-webkit-transition:background-color 120ms ease-out,box-shadow 120ms ease-out;-moz-transition:background-color 120ms ease-out,box-shadow 120ms ease-out;-o-transition:background-color 120ms ease-out,box-shadow 120ms ease-out;transition:background-color 120ms ease-out,box-shadow 120ms ease-out}.heard-badge.jsx-1e62f2a6801176c0{-webkit-animation:heard-badge-pop 220ms cubic-bezier(.34,1.56,.64,1);-moz-animation:heard-badge-pop 220ms cubic-bezier(.34,1.56,.64,1);-o-animation:heard-badge-pop 220ms cubic-bezier(.34,1.56,.64,1);animation:heard-badge-pop 220ms cubic-bezier(.34,1.56,.64,1)}@-webkit-keyframes heard-badge-pop{from{-webkit-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes heard-badge-pop{from{-moz-transform:scale(0);transform:scale(0)}to{-moz-transform:scale(1);transform:scale(1)}}@-o-keyframes heard-badge-pop{from{-o-transform:scale(0);transform:scale(0)}to{-o-transform:scale(1);transform:scale(1)}}@keyframes heard-badge-pop{from{-webkit-transform:scale(0);-moz-transform:scale(0);-o-transform:scale(0);transform:scale(0)}to{-webkit-transform:scale(1);-moz-transform:scale(1);-o-transform:scale(1);transform:scale(1)}}@media(prefers-reduced-motion:reduce){.heard-card.jsx-1e62f2a6801176c0,.heard-badge.jsx-1e62f2a6801176c0{-webkit-transition:none;-moz-transition:none;-o-transition:none;transition:none;-webkit-animation:none;-moz-animation:none;-o-animation:none;animation:none}}"})]})}var k=r(42705),Z=r.n(k),S=r(74931);function U(e){try{var a=e.split("@")[1];if(a&&!["gmail.com","yahoo.com","hotmail.com","outlook.com","aol.com","icloud.com","zoho.com","mail.com","protonmail.com"].includes(a.toLowerCase()))return a}catch(r){}return null}var C,T=r(11163),I=r(34853),z=r(2642),F=r(51575),q=r(41664),O=r.n(q),_=r(80129),E=r.n(_),L=(r(31838),!0);function V(){var e=function(e){w[e]&&N((0,o.Z)((0,i.Z)({},w),(0,s.Z)({},e,!1)))},a=(0,T.useRouter)(),r=(0,f.useTranslations)("Signup.Page"),l=(0,m.createRef)(),c=(0,m.useState)(!1),b=c[0],x=c[1],g=(0,m.useState)({name:"",email:"",ph
1one:"",phoneExt:"",businessStr:"","address.country":"","address.cca2":"",heardAboutUsType:null,heardAboutUsValue:""}),y=g[0],v=g[1],j=(0,m.useState)({name:!1,email:!1,phone:!1,heardAboutUsType:!1}),w=j[0],N=j[1];function k(){return k=(0,t.Z)(d().mark((function e(){var r,t,s,o,c,u,m,h;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=P.validate({name:y.name,email:y.email,phone:y.phone,phoneExt:y.phoneExt,heardAboutUsType:y.heardAboutUsType,heardAboutUsValue:y.heardAboutUsValue},{abortEarly:!1}).error)){e.next=5;break}t={},r.details.forEach((function(e){"phoneExt"===e.path[0]&&(e.path[0]="phone",e.message="Phone number country code is required"),"heardAboutUsValue"===e.path[0]&&(e.path[0]="heardAboutUsType"),t[e.path[0]]=e.message,S.ZP.error(e.message)})),N(t),e.next=35;break;case 5:return e.prev=5,x(!0),S.ZP.loading("Creating account...",{duration:1500}),(s=(0,i.Z)({},y)).heardAboutUs=s.heardAboutUsType?s.heardAboutUsType===n.Other?{type:n.Other,value:s.heardAboutUsValue.trim()}:{type:s.heardAboutUsType}:null,delete s.heardAboutUsType,delete s.heardAboutUsValue,o=s.name.trim().split(" "),s.firstName=o.shift(),s.lastName=o.join(" "),delete s.name,s.businessStr=U(s.email),e.next=19,l.current.executeAsync();case 19:c=e.sent,u=null;try{u=Rewardful.referral}catch(d){}return e.next=24,(0,z.ZP)({url:"auth/signup",method:"POST",data:{token:c,data:s,referral:u,redirect:a.query.redirect}});case 24:"signin"===e.sent.type?a.push("/email-sent?email=".concat(s.email)):"solo_yearly"===a.query.plan?a.push("/api/subscription/buy?plan=solo_yearly&firsttime=true&features=".concat(a.query.features||"FACEBOOK")):a.push("/dashboard/start-plan"),e.next=32;break;case 28:e.prev=28,e.t0=e.catch(5),S.ZP.error((null===e.t0||void 0===e.t0||null===(m=e.t0.response)||void 0===m||null===(h=m.data)||void 0===h?void 0:h.message)||"Error while signup",{duration:3e3});case 32:return e.prev=32,x(!1),e.finish(32);case 35:case"end":return e.stop()}}),e,null,[[5,28,32,35]])}))),k.apply(this,arguments)}(0,m.useEffect)((function(){a.query.email&&v((0,o.Z)((0,i.Z)({},y),{email:a.query.email}))}),[a.query.email]);var Z=(0,m.useMemo)((function(){var e=E().stringify({email:y.email||void 0,redirect:a.query.redirect||void 0});return"/signin?".concat(e)}),[y.email,a.query.redirect]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(F.Z,{title:r("SeoTitle"),description:r("SeoDescription"),canonical:"/signup"}),(0,u.jsxs)(p.Z,{title:r("Title"),children:[(0,u.jsx)(h.Wz,{label:r("InputName"),placeHolder:"Danish Soomro",error:w.name,name:"name",type:"text",value:y.name,onChange:function(a){e("name"),v((0,o.Z)((0,i.Z)({},y),{name:a.target.value}))}}),(0,u.jsx)(h.Wz,{label:r("InputEmail"),placeHolder:"[email protected]",error:w.email,name:"email",type:"email",value:y.email,onChange:function(a){var r;e("email"),v((0,o.Z)((0,i.Z)({},y),{email:(null===(r=a.target.value)||void 0===r?void 0:r.toLowerCase())||""}))}}),(0,u.jsx)(h.Ii,{label:r("InputPhone"),placeHolder:"Phone",error:w.phone,onChange:function(a,r,n,t){r.countryCode&&(e("phone"),v((0,o.Z)((0,i.Z)({},y),{phone:a.replace(r.dialCode,""),phoneExt:"+".concat(r.dialCode),"address.country":r.name,"address.cca2":r.countryCode.toUpperCase()})))}}),(0,u.jsx)(A,{required:!1,type:y.heardAboutUsType,value:y.heardAboutUsValue,error:w.heardAboutUsType,onChangeType:function(a){e("heardAboutUsType"),v((0,o.Z)((0,i.Z)({},y),{heardAboutUsType:a,heardAboutUsValue:a===n.Other?y.heardAboutUsValue:""}))},onChangeValue:function(a){e("heardAboutUsType"),v((0,o.Z)((0,i.Z)({},y),{heardAboutUsValue:a}))}}),(0,u.jsx)(h.zx,{label:r("ButtonText"),onClick:function(){return k.apply(this,arguments)},isLoading:b}),(0,u.jsx)("div",{className:"flex justify-center items-center w-full",children:(0,u.jsx)(O(),{href:Z,passHref:!0,prefetch:!1,children:(0,u.jsx)("a",{className:"text-base text-gray-500 hover:text-gray-600 hover:underline",children:r("AlreadyHaveAccount")})})})]}),(0,u.jsx)(I.Z,{ref:l,size:"invisible",sitekey:"6LeL4J8eAAAAAHQY1CjuqWXvARIiR5X-c4kFlNvE",onChange:function(){l.current.reset()}})]})}var P=Z().object({name:Z().string().required(),email:Z().string().email({tlds:{allow:!1}}).required(),phone:Z().string().required(),phoneExt:Z().string().required(),heardAboutUsType:(C=Z().string()).valid.apply(C,(0,l.Z)(Object.values(n))).allow(null).optional(),heardAboutUsValue:Z().when("heardAboutUsType",{is:n.Other,then:Z().string().trim().min(1).required().messages({"string.empty":"Tell us where you heard about us","any.required":"Tell us where you heard about us"}),otherwise:Z().string().allow("").optional()})})},24654:function(){}},function(e){e.O(0,[4396,1664,3801,7555,6302,3917,9036,9774,2888,179],(function(){return a=91446,e(e.s=a);var a}));var a=e.O();_N_E=a}]);
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.