(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{4722:function(e,a,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return l(2767)}])},4585:function(e,a,l){"use strict";l.d(a,{g:function(){return n}});var t=l(5893);function n(e){let{title:a,subtitle:l,children:n}=e;return(0,t.jsx)("main",{className:"flex min-h-full overflow-hidden bg-gray-950 pt-16  sm:py-28",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-2xl flex-col px-4  sm:px-6 ",children:[(0,t.jsxs)("div",{className:"mt-12sm:mt-16 relative",children:[(0,t.jsx)("h1",{className:"text-center text-2xl font-medium tracking-tight text-gray-100",children:a}),l&&(0,t.jsx)("p",{className:"mt-3 text-center text-lg text-gray-400",children:l})]}),(0,t.jsx)("div",{className:"-mx-4 mt-10 flex-auto bg-white px-4 py-10 shadow-2xl shadow-gray-900/10 sm:mx-0 sm:flex-none sm:rounded-lg sm:p-12",children:n})]})})}},5131:function(e,a,l){"use strict";l.d(a,{B:function(){return v}});var t=l(5893),n=l(3067),r=l(6010),s=l(7294),o=l(2985);l(5516);let i="block w-full appearance-none rounded-lg border border-gray-200 bg-white py-[calc(theme(spacing.2)-1px)] px-[calc(theme(spacing.3)-1px)] text-gray-900 placeholder:text-gray-400 focus:border-tooltribe-500 focus:outline-none focus:ring-tooltribe-500 sm:text-sm";function c(e){let{id:a,children:l}=e;return(0,t.jsx)("label",{htmlFor:a,className:"mb-2 block text-sm font-semibold text-gray-900",children:l})}function u(e){let{id:a,label:l,type:n="text",className:r,...s}=e;return(0,t.jsxs)("div",{className:r,children:[l&&(0,t.jsx)(c,{id:a,children:l}),(0,t.jsx)("input",{id:a,type:n,...s,className:i})]})}function d(e){let{id:a,label:l,className:n,showOther:o=!1,children:u,onChange:d=e=>{},...m}=e,[p,x]=(0,s.useState)(!1);return(0,t.jsxs)("div",{className:n,children:[l&&(0,t.jsx)(c,{id:a,children:l}),(0,t.jsxs)("select",{id:a,...m,className:(0,r.Z)(i,"pr-8"),onChange:e=>{x("other"===e.target.value),d(e)},children:[(0,t.jsx)("option",{disabled:!0,value:"",children:"-- select an option --"}),u,o&&(0,t.jsx)("option",{value:"other",children:"Other"})]}),p&&(0,t.jsx)("input",{type:"text",placeholder:"Please specify",className:(0,r.Z)(i,"mt-2 w-full"),onChange:d})]})}let m=(0,s.forwardRef)((e,a)=>(0,t.jsx)("input",{ref:a,keyboardType:"phone-pad",autoComplete:"tel",...e,className:(0,r.Z)("block w-full appearance-none rounded-lg border border-none bg-white px-[calc(theme(spacing.3)-1px)] py-[calc(theme(spacing.2)-1px)] text-gray-900 ring-transparent placeholder:text-gray-400 focus:ring-transparent sm:text-sm")}));function p(e){let{id:a,label:l,className:n,...s}=e;return(0,t.jsxs)("div",{className:n,children:[l&&(0,t.jsx)(c,{id:a,children:l}),(0,t.jsx)(o.ZP,{id:a,type:"tel",defaultCountry:"US",...s,className:(0,r.Z)(i),inputComponent:m})]})}var x=l(7145),h=JSON.parse('[{"value":"recommended","label":"Referral"},{"value":"search","label":"Search (Google, Bing, etc.)"},{"value":"ad","label":"Google Ad"},{"value":"social","label":"Social (Facebook, Twitter, etc.)"},{"value":"email","label":"Email"},{"value":"capterra","label":"Capterra"},{"value":"g2","label":"G2"},{"value":"softwareadvice","label":"Software Advice"},{"value":"getapp","label":"GetApp"}]'),g=l(2515);let f=(0,g.eI)("https://liumzmagzqxtwcoqhphp.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImxpdW16bWFnenF4dHdjb3FocGhwIiwicm9sZSI6ImFub24iLCJpYXQiOjE2NjcyNDk1MDQsImV4cCI6MTk4MjgyNTUwNH0.I3rBCbsM7coCSkHeNYab7AWCwSiX5711YQGXNS66EI8");var b=l(1664),y=l.n(b);let v=e=>{let{onSuccess:a}=e,[l,r]=(0,s.useState)(""),[i,c]=(0,s.useState)(""),[m,g]=(0,s.useState)(""),[b,v]=(0,s.useState)(""),[N,j]=(0,s.useState)(""),[w,C]=(0,s.useState)(""),[S,I]=(0,s.useState)("");(0,s.useEffect)(()=>{S&&setTimeout(()=>{I("")},5e3)},[S]);let _=(0,s.useCallback)(async e=>{if(e.preventDefault(),!m||!l||!i||!b||!N){I("All fields are required");return}if(!(0,o.yf)(m)){I("Mobile phone number is invalid");return}let{error:t}=await f.rpc("create_organization",{name:l,phone_number:m,email:i,org_name:b,company_size:N,referral_source:w});if(t){'duplicate key value violates unique constraint "organizations_domain_key"'===t.message?I("An organization already exists using this email domain. Please sign in to the existing organization(using this email domain) or contact support@tooltribe.com if you need help."):I(t.message);return}let{orgValue:n}=x.find(e=>N===e.value);gtag("event","conversion",{currency:"USD",value:n,send_to:"AW-11285676310/aNu5CNzGp7wZEJaCt4Uq"}),a(i)},[l,i,m,b,N,a]);return(0,t.jsxs)("form",{onSubmit:_,children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-y-6",children:[(0,t.jsx)(u,{className:"col-span-full",label:"Name",id:"name",name:"name",type:"text",autoComplete:"name",required:!0,onChange:e=>r(e.target.value),value:l}),(0,t.jsx)(u,{className:"col-span-full",label:"Work email address",id:"email",name:"email",type:"email",autoComplete:"email",required:!0,onChange:e=>c(e.target.value),value:i}),(0,t.jsx)(p,{className:"col-span-full",label:"Mobile phone number",id:"phone",name:"phone",type:"tel",autoComplete:"tel",required:!0,addInternationalOption:!1,countries:["US","CA","MX","AU"],onChange:g,value:m}),(0,t.jsx)(u,{className:"col-span-full",label:"Organization Name",id:"orgName",name:"orgName",type:"text",autoComplete:"organization",required:!0,onChange:e=>v(e.target.value),value:b}),(0,t.jsx)(d,{className:"col-span-full",label:"Company Size",id:"companySize",name:"companySize",required:!0,onChange:e=>j(e.target.value),value:N,children:x.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,t.jsx)(d,{className:"col-span-full",label:"How did you hear about us?",id:"referral_source",name:"referral_source",onChange:e=>C(e.target.value),defaultValue:"",showOther:!0,children:h.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,t.jsx)(n.z,{type:"submit",color:"tooltribe",className:"mt-8 w-full",children:"Get started today"}),S&&(0,t.jsx)("p",{className:"mt-4 text-center text-sm text-red-600",children:S}),(0,t.jsxs)("p",{className:"mt-4 text-center text-sm text-gray-600",children:["By clicking “Get started today”, you agree to our"," ",(0,t.jsx)(y(),{href:"/terms-and-conditions",className:"text-tooltribe-700",children:"terms of service"})," ","and"," ",(0,t.jsx)(y(),{href:"/privacy-policy",className:"text-tooltribe-700",children:"privacy policy"}),"."]})]})}},2767:function(e,a,l){"use strict";l.r(a),l.d(a,{default:function(){return c}});var t=l(5893),n=l(4585),r=l(5131),s=l(2962),o=l(1664),i=l.n(o);function c(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.PB,{title:"Sign Up - TOOLTRIBE",description:"Sign up for a TOOLTRIBE account"}),(0,t.jsx)(n.g,{title:"Sign up for TOOLTRIBE",subtitle:(0,t.jsxs)(t.Fragment,{children:["Already registered?"," ",(0,t.jsx)(i(),{href:"https://admin.tooltribe.com/",className:"text-tooltribe-600",children:"Sign in"})," ","to your account."]}),children:(0,t.jsx)(r.B,{onSuccess:()=>{window.location.href="/download-tooltribe-pro"}})})]})}},7145:function(e){"use strict";e.exports=JSON.parse('[{"value":"Under 5 employees","label":"Under 5 employees","leadValue":0,"orgValue":0},{"value":"5-50 employees","label":"5-50 employees","leadValue":10,"orgValue":10},{"value":"50-200 employees","label":"50-200 employees","leadValue":20,"orgValue":20},{"value":"200-500 employees","label":"200-500 employees","leadValue":30,"orgValue":30},{"value":"Over 500 employees","label":"Over 500 employees","leadValue":40,"orgValue":40}]')}},function(e){e.O(0,[725,774,888,179],function(){return e(e.s=4722)}),_N_E=e.O()}]);