1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7417],{8106:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});var a=r(14232);let i=e=>{let t,r=new Set,a=(e,a)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=a?a:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,s={setState:a,getState:i,getInitialState:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e))},n=t=e(a,i,s);return s},s=e=>{let t=(e=>e?i(e):i)(e),r=e=>(function(e,t=e=>e){let r=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>t(e.getState()),[e,t]),a.useCallback(()=>t(e.getInitialState()),[e,t]));return a.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},n=e=>e?s(e):s},17963:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(14232);let i=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:u="",children:d,iconNode:c,...m}=e;return(0,a.createElement)("svg",{ref:t,...n,width:i,height:i,stroke:r,strokeWidth:l?24*Number(o)/Number(i):o,className:s("lucide",u),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"},...m},[...c.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,n)=>{let{className:l,...u}=r;return(0,a.createElement)(o,{ref:n,iconNode:t,className:s("lucide-".concat(i(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...u})});return r.displayName=i(e),r}},20857:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signup",function(){return r(92452)}])},21926:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});var a=r(8106),i=r(26289);let s=async()=>{try{return await i.A.get("countries")}catch(e){throw e}},n=(0,a.v)(e=>({countries:[],fetchCountry:async()=>{try{let t=await s();e({countries:t.data.data})}catch(e){throw e}}}))},56118:(e,t,r)=>{"use strict";r.d(t,{A2:()=>s,HY:()=>o,Qo:()=>l,Yl:()=>u,ut:()=>i,zK:()=>n});var a=r(91408);let i=a.Ik({email:a.Yj().email("Must be a valid email").required("Email is required"),password:a.Yj().min(8,"Your password must be at least 8 characters long and include both letters and numbers.").required("Password is required")}).required();a.Ik({amount:a.Yj().required("amount is required")}).required(),a.Ik({interest:a.YO().of(a.Yj().required()).min(1,"Please select at least one interest").required("Interest is required")}).required();let s=a.Ik({image:a.gl().required("Image is required").test("fileType","Unsupported File Format",e=>!(e instanceof File)||["image/jpeg","image/png","image/gif"].includes(e.type)).test("fileSize","File Size is too large",e=>!(e instanceof File)||e.size<=5e6)}).required(),n=a.Ik({email:a.Yj().email("Must be a valid email").required("Email is required"),password:a.Yj().min(8,"Your password must be at least 8 characters long and include both letters and numbers.").required("Password is required"),country_id:a.ai().typeError("Country must be selected").required("Country is required")}).required(),o=a.Ik({first_name:a.Yj().required("First name is required"),last_name:a.Yj().required("Last name is required"),gender:a.Yj().required("Gender is required"),date_of_birth:a.Yj().required("Date of birth is required")}).required(),l=a.Ik({username:a.Yj().required("Username is required"),bio:a.Yj().required("Bio is required")}).required(),u=a.Ik().shape({name:a.Yj().required("Title is required"),interest_id:a.Yj().required("Category is required"),description:a.Yj().required("Description is required"),visiblity:a.Yj().required("Visibility is required"),type:a.Yj().required("Type is required"),image:a.gl().required("Image is required")})},61642:(e,t,r)=>{"use strict";r.d(t,{A$:()=>o,Ix:()=>u,RY:()=>d,YX:()=>n,er:()=>l,iD:()=>s,ri:()=>c,xw:()=>m});var a=r(26289),i=r(29454);let s=async e=>{try{return await a.A.post("auth/login",e)}catch(e){throw e}},n=async e=>{try{return await a.A.post("auth/register",e)}catch(e){throw e}},o=async e=>{try{return await a.A.post("auth/verify-email",e)}catch(e){throw e}},l=async e=>{try{return await a.A.post("auth/resend-email-verification",e)}catch(e){throw e}},u=async()=>{try{return await a.A.post("otp/send")}catch(e){throw e}},d=async e=>{try{return await a.A.post("otp/verify",e)}catch(e){throw e}},c=()=>{try{i.A.remove("token"),i.A.remove("rememberMe"),i.A.remove("token",{path:"/"}),i.A.remove("token",{path:"/",domain:window.location.hostname}),i.A.remove("rememberMe",{path:"/"}),i.A.remove("rememberMe",{path:"/",domain:window.location.hostname}),document.cookie.split(";
1").forEach(e=>{let t=e.indexOf("="),r=t>-1?e.substr(0,t).trim():e.trim();(r.includes("token")||r.includes("auth")||r.includes("user"))&&(i.A.remove(r),i.A.remove(r,{path:"/"}),i.A.remove(r,{path:"/",domain:window.location.hostname}))})}catch(e){throw console.error("Error clearing cookies:",e),e}},m=async e=>{try{return await a.A.post("auth/reset-password",e)}catch(e){throw e}}},92452:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var a=r(37876),i=r(14232),s=r(40760),n=r(88992),o=r(71090),l=r(59688),u=r(99461),d=r(48230),c=r.n(d),m=r(56118),p=r(61642),h=r(31657),y=r(18709),g=r(21926),x=r(89099),v=r(77328),w=r.n(v);function f(){let e={title:"Sign Up | Hivvy"},{fetchCountry:t,countries:r}=(0,g.B)(),[d,v]=(0,i.useState)(!1),f=(0,x.useRouter)(),{handleSubmit:j,formState:{isValid:b,errors:q},getValues:k,setValue:A,watch:N}=(0,n.mN)({resolver:(0,o.t)(m.zK),mode:"all",defaultValues:{email:"",password:"",country_id:0}}),_=N("email"),Y=N("password"),C=N("country_id"),E=async()=>{var e,t,r;let a=k();try{v(!0);let t=await (0,p.YX)(a);return(null==t?void 0:t.status)&&(l.oR.success("".concat(null==t||null==(e=t.data)?void 0:e.message)),f.replace("/auth/verify?email=".concat(a.email,"&type=signup"))),t}catch(e){l.oR.error("Uh oh! Something went wrong.",{description:null==e||null==(r=e.response)||null==(t=r.data)?void 0:t.message})}finally{v(!1)}};return(0,i.useEffect)(()=>{t()},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(w(),{children:[(0,a.jsx)("title",{children:null==e?void 0:e.title}),(0,a.jsx)("meta",{property:"og:title",content:null==e?void 0:e.title}),(0,a.jsx)("meta",{name:"keywords",content:"Hivvy, sign up, create account, account"}),(0,a.jsx)("meta",{property:"og:description",content:"Sign up on Hivvy account to explore, engage, and elevate your conversations."}),(0,a.jsx)("meta",{property:"og:image",content:"https://hivvy-backend.s3.eu-west-1.amazonaws.com/uploads/6a621de749f17.png"}),(0,a.jsx)("meta",{property:"og:image:width",content:"1200"}),(0,a.jsx)("meta",{property:"og:image:height",content:"630"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:url",content:"https://hivvy.app/signup"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:"Sign up on Hivvy account to explore, engage, and elevate your conversations."}),(0,a.jsx)("meta",{name:"twitter:description",content:"Sign up on Hivvy account to explore, engage, and elevate your conversations."}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://hivvy-backend.s3.eu-west-1.amazonaws.com/uploads/6a621de749f17.png"}),(0,a.jsx)("meta",{name:"description",content:"Sign up on Hivvy account to explore, engage, and elevate your conversations."})]}),(0,a.jsx)(h.A,{cardPosition:"topLeft",bgCardTitle:"Join others using Hivvy",hideBackButton:!0,bgImage:"https://hivvy-backend.s3.eu-west-1.amazonaws.com/uploads/6a624a0d34ef6.png",children:(0,a.jsx)("form",{className:" lg:h-fit h-full overflow-y-scroll mx-auto hide-scrollbar w-full",onSubmit:j(E),children:(0,a.jsxs)("div",{className:"flex flex-col gap-[24px]",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("h3",{className:"md:text-[48px] text-[20px] text-black font-semibold",children:["Letâs get you in! \uD83D\uDE80"," "]}),(0,a.jsxs)("p",{className:"text-[20px] text-[#9D9D9D]",children:["Kindly correct information so you wonât be left out!"," "]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[21px]",children:[(0,a.jsx)(y.default,{label:"Email Address",componentType:"input",required:!0,type:"text",value:_,onChange:e=>A("email",String(e),{shouldValidate:!0}),placeholder:"Enter your email adresss"}),q.email&&(0,a.jsx)("span",{className:"text-red-500 text-xs mt-1",children:q.email.message}),(0,a.jsx)(y.default,{label:"Country",componentType:"select",required:!0,value:C,onChange:e=>A("country_id",Number(e),{shouldValidate:!0}),options:r,displayKey:"name",valueKey:"id",placeholder:"Select your country..."}),q.country_id&&(0,a.jsx)("span",{className:"text-red-500 text-xs mt-1",children:q.country_id.message}),(0,a.jsx)(y.default,{label:"Password",componentType:"password",required:!0,type:"password",value:Y,onChange:e=>A("password",String(e),{shouldValidate:!0}),placeholder:"Enter Password"}),q.password&&(0,a.jsx)("span",{className:"text-red-500 text-xs mt-1",children:q.password.message})]}),(0,a.jsx)(s.A,{type:b?"submit":void 0,disabled:!b,style:"text-sm w-full border-bg-[#000000] border border-[#D0D5DD75] py-[16px] px-[27px] font-[450] rounded-[6px] ".concat(b?"bg-black dark:bg-[#000000] text-[#71E214]":"bg-[#DCDCDC] text-[#000]"),children:d?(0,a.jsx)(u.A,{}):"Sign Up"}),(0,a.jsxs)("div",{className:"text-[16px] font-medium leading-[145%] text-[#000000] flex gap-1 justify-center items-center",children:["Already have an account?",(0,a.jsx)(c(),{href:"/auth/login",className:"text-[#0077FF] !underline",children:"Login"})]}),(0,a.jsxs)("div",{className:"text-[16px] font-medium text-[#000000] flex gap-[21px] justify-center items-center",children:[(0,a.jsxs)(c(),{href:"/terms-of-service",className:"text-[#171717] !underline",children:["Terms & Conditions"," "]}),(0,a.jsxs)(c(),{href:"/our-privacy-policy",className:"text-[#171717] !underline",children:["Privacy Policy"," "]})]})]})})})]})}}},e=>{e.O(0,[9776,4587,6090,9075,2414,1128,2915,512,2725,8992,9759,8709,4008,636,6593,8792],()=>e(e.s=20857)),_N_E=e.O()}]);
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.