1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="13b8953f-9972-455c-bd5b-95beec215d5d",e._sentryDebugIdIdentifier="sentry-dbid-13b8953f-9972-455c-bd5b-95beec215d5d")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5907],{78657:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/registration",function(){return a(62721)}])},6595:function(e,t,a){"use strict";a.d(t,{V:function(){return i}});var r=a(1588),n=a(34867);function i(e){return(0,n.ZP)("MuiDivider",e)}let o=(0,r.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=o},88641:function(e,t,a){"use strict";a.d(t,{f:function(){return i}});var r=a(1588),n=a(34867);function i(e){return(0,n.ZP)("MuiListItemIcon",e)}let o=(0,r.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.Z=o},60991:function(e,t,a){"use strict";a.d(t,{Z:function(){return k}});var r=a(63366),n=a(87462),i=a(67294),o=a(90512),s=a(94780),l=a(40580),c=a(51363),d=a(18885),u=a(84796),p=a(67781),m=a(90650),f=a(76645),h=a(35075),x=a(6595),g=a(88641),v=a(40713),b=a(1588),y=a(34867);function Z(e){return(0,y.ZP)("MuiMenuItem",e)}let w=(0,b.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var j=a(85893);let _=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],C=e=>{let{disabled:t,dense:a,divider:r,disableGutters:i,selected:o,classes:l}=e,c=(0,s.Z)({root:["root",a&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Z,l);return(0,n.Z)({},l,c)},N=(0,c.ZP)(m.Z,{shouldForwardProp:e=>(0,d.Z)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.dense&&t.dense,a.divider&&t.divider,!a.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!a.disableGutters&&{paddingLeft:16,paddingRight:16},a.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(w.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(w.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(w.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(w.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(w.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(x.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(x.Z.inset)]:{marginLeft:52},["& .".concat(v.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.Z.inset)]:{paddingLeft:36},["& .".concat(g.Z.root)]:{minWidth:36}},!a.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},a.dense&&(0,n.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(g.Z.root," svg")]:{fontSize:"1.25rem"}}))});var k=i.forwardRef(function(e,t){let a;let s=(0,u.i)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:c="li",dense:d=!1,divider:m=!1,disableGutters:x=!1,focusVisibleClassName:g,role:v="menuitem",tabIndex:b,className:y}=s,Z=(0,r.Z)(s,_),w=i.useContext(p.Z),k=i.useMemo(()=>({dense:d||w.dense||!1,disableGutters:x}),[w.dense,d,x]),I=i.useRef(null);(0,f.Z)(()=>{l&&I.current&&I.current.focus()},[l]);let S=(0,n.Z)({},s,{dense:k.dense,divider:m,disableGutters:x}),O=C(s),M=(0,h.Z)(I,t);return s.disabled||(a=void 0!==b?b:-1),(0,j.jsx)(p.Z.Provider,{value:k,children:(0,j.jsx)(N,(0,n.Z)({ref:M,role:v,tabIndex:a,component:c,focusVisibleClassName:(0,o.Z)(O.focusVisible,g),className:(0,o.Z)(O.root,y)},Z,{ownerState:S,classes:O}))})})},41905:function(e,t,a){"use strict";a.d(t,{C:function(){return f}});var r=a(85893),n=a(87209),i=a(81445),o=a(31179),s=a(60991),l=a(43393),c=a(93552),d=a(49360);a(67294);var u=a(72199),p=a(28013);let m=(0,d.Z)(e=>({coloredHelperText:{"&:not(.Mui-error)":{color:e.palette.text.secondary,opacity:.38}}}),{name:"TWTextField"}),f=e=>{let{options:t,state:a,handleInputChange:d,label:f,name:h,error:x,helperText:g,tooltip:v,disabled:b=!1,...y}=e,Z=m();return(0,r.jsxs)(n.Z,{fullWidth:!0,className:y.className||"",children:[(0,r.jsx)(i.Z,{id:"tw-select-".concat(h),children:f}),(0,r.jsx)(o.Z,{labelId:"tw-select-".concat(h),name:h,value:a,label:f,className:"text-left",error:x,disabled:b,onChange:d,variant:"outlined",sx:{"& .MuiOutlinedInput-notchedOutline":{borderWidth:"2px"},"&:hover .MuiOutlinedInput-notchedOutline":{borderWidth:"2px"}},children:t.map(e=>(0,r.jsx)(s.Z,{value:e.value,children:e.label},e.value))}),v&&(0,r.jsx)(p.a,{title:v,children:(0,r.jsx)(l.Z,{sx:{position:"absolute",top:"50%",right:"-30px",transform:"translateY(-100%)"},children:(0,r.jsx)(u.Z,{})})}),(0,r.jsx)(c.Z,{className:Z.coloredHelperText,error:x,children:g})]})}},62721:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return M},default:function(){return T}});var r=a(85893),n=a(73606),i=a(87066),o=a(11163),s=a(67294),l=a(43393),c=a(29204),d=a(25675),u=a.n(d),p=a(67421),m=a(56227),f=a(81501),h=a(13503),x=a(74740),g=a(13302),v=a(32812),b=a(3648),y=a(10092),Z=a(26124),w=a(60499),j=a(28504),_=a(9726),C=a(84310),N=a(41905);let k=e=>{let{state:t,handleInputChange:a}=e,{t:n}=(0,j.$G)("registration",{keyPrefix:"component.verification.input_hear_source"});return(0,r.jsx)(N.C,{state:t,handleInputChange:a,name:"hearSource",label:n("label"),helperText:"",error:!1,options:[{label:"Social Media",value:"social_media"},{label:"Website",value:"website"}],color:"primary"})},I=e=>{let{registrationInfo:t,changeEmailHandler:a}=e,{t:n}=(0,j.$G)("registration",{keyPrefix:"component.verification"}
1),[d,u]=(0,s.useState)(""),[p,m]=(0,s.useState)(!1),[f,x]=(0,s.useState)(!1),[N,I]=(0,s.useState)(0),[S,O]=(0,s.useState)(!1),[M,T]=(0,s.useState)(null),P=(0,o.useRouter)(),{showSnackbar:E}=(0,h.D)();return(0,s.useEffect)(()=>{S&&!M&&(I(59),T(setInterval(()=>{I(e=>e-1)},1e3))),0===N&&M&&(clearInterval(M),O(!1),m(!1),T(null))},[S,N]),(0,r.jsx)(g.Z,{open:!0,fullWidth:!0,maxWidth:"lg",PaperProps:{sx:{borderRadius:"15px"}},children:(0,r.jsxs)(l.Z,{className:"flex w-full flex-row",children:[(0,r.jsxs)(l.Z,{className:"hidden w-0 flex-col justify-center gap-8 text-white md:flex md:w-1/2",sx:{backgroundImage:"url(/assets/images/hp/registration-bg.png)",backgroundSize:"cover",backgroundPosition:"center"},children:[(0,r.jsx)(v.Z,{variant:"h1",className:"px-16 text-center",children:n("banner_text")}),(0,r.jsx)(l.Z,{component:"img",sx:{height:86},alt:"Logo",src:"https://www.hatchedby.ai/bottom_logo_w.svg"})]}),(0,r.jsxs)(l.Z,{className:"w-full md:w-1/2",children:[(0,r.jsxs)(b.Z,{sx:{padding:0,"&:first-of-type":{paddingTop:0}},children:[(0,r.jsx)(l.Z,{className:"pt-8 text-center",children:(0,r.jsxs)(v.Z,{variant:"DeskH2",children:[" ",n("title")]})}),(0,r.jsx)(l.Z,{children:(0,r.jsx)(y.Z,{"aria-label":"close",onClick:()=>{P.push("/")},sx:{position:"absolute",right:8,top:8,color:"system.black",backgroundColor:"system.white",borderRadius:"9999px"},children:(0,r.jsx)(_.Z,{})})})]}),(0,r.jsx)(Z.Z,{sx:{padding:"0 0","&:first-of-type":{paddingTop:"1rem"},height:"23.25em"},children:(0,r.jsx)(l.Z,{className:"mx-8 mt-4 flex flex-col items-center gap-10 sm:mx-8",children:(0,r.jsxs)(l.Z,{className:"flex w-full max-w-[22em] flex-col gap-8",children:[(0,r.jsx)(v.Z,{className:"text-center",children:(0,r.jsx)(j.cC,{i18nKey:"instructions_text",t:n,values:{email:t.email}})}),(0,r.jsxs)(l.Z,{className:"flex flex-col gap-10 sm:mx-6",children:[(0,r.jsx)(k,{state:d||"",handleInputChange:e=>{u(e.target.value)}}),(0,r.jsx)(l.Z,{className:"text-center",children:(0,r.jsx)(C.Z,{className:"w-full sm:w-auto",disabled:p||f,onClick:async()=>{x(!0);try{let e=await i.default.post("/api/registration/email_confirmation/",{email:t.email});e.data.sent&&!e.data.verified?E("success",n("message.email_confirmation_resent_success")):e.data.verified&&E("info",n("message.email_already_verified"))}catch(t){if(t instanceof Error){if(t instanceof c.d7){var e,a,r,o;E("error",n("error.".concat(null===(a=t.response)||void 0===a?void 0:null===(e=a.data)||void 0===e?void 0:e.error),{defaultValue:null===(o=t.response)||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.error}))}else E("error",n("error.unknown_error"))}}finally{x(!1),m(!0),O(!0)}},loading:f,children:S?"".concat(n("buttons.resend")," (").concat(N,")"):n("buttons.resend")})})]})]})})}),(0,r.jsxs)(w.Z,{className:"flex-col gap-6 sm:flex-row",sx:{justifyContent:"space-between",margin:"20px"},children:[(0,r.jsx)(C.Z,{className:"w-full sm:w-auto",variant:"outlined",onClick:()=>a(),children:n("buttons.change_email")}),(0,r.jsx)(C.Z,{sx:{marginLeft:"0px !important"},className:"w-full sm:w-auto",onClick:()=>{P.push("/")},children:n("buttons.close")})]})]})]})})},S=()=>{let[e,t]=(0,s.useState)({firstName:"",lastName:"",agreeTermAndPolicy:!1,companyName:"",email:"",password:"",passwordAgain:"",industry:"",companySize:""}),a=(0,o.useRouter)(),[n,d]=(0,s.useState)(!1),{showSnackbar:g}=(0,h.D)(),{t:v}=(0,p.$G)("registration"),b=async e=>{try{await i.default.post("/api/users/",e),d(!0)}catch(e){if(e instanceof Error){var t,a;e instanceof c.d7?(0,m.Z)(null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.error,v,g,()=>{var t,a,r,n;g("error",v("component.error.".concat(null===(a=e.response)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.error),{defaultValue:null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.error}))}):g("error",v("component.error.unknown_error"))}}};return(0,r.jsxs)(l.Z,{className:"flex h-screen flex-col justify-between",children:[(0,r.jsx)(l.Z,{className:"fixed h-screen w-screen overflow-hidden bg-black",children:(0,r.jsx)(u(),{alt:"Mountains",src:f.Z,placeholder:"blur",quality:100,fill:!0,sizes:"100vw",style:{objectFit:"cover"}})}),(0,r.jsxs)(l.Z,{className:"z-10 flex grow items-center justify-center text-white",children:[!n&&(0,r.jsx)(x.ZP,{open:!0,onClose:(e,t)=>{"closeButtonClick"===t&&a.push("/")},onFinish:async e=>{t(e),await b(e)},editing:!1,initialState:e}),n&&(0,r.jsx)(I,{registrationInfo:e,changeEmailHandler:()=>{d(!1),t({})}})]})]})};var O=a(96232),M=!0,T=()=>
1{let e=(0,o.useRouter)(),[t,a]=(0,s.useState)(!1),{user:l,isLoading:c}=(0,n.aF)();(0,s.useEffect)(()=>{!c&&l&&e.push("/dashboard/").then()},[c,e,l]);let d=async()=>{try{return(await i.default.get("/api/registration/")).data.open}catch(e){return O.k.error(e),!1}};return(0,s.useEffect)(()=>{d().then(t=>{a(t),t||e.push("/")})},[]),t&&(0,r.jsx)(S,{})}}},function(e){e.O(0,[243,5675,2204,3252,2888,9774,179],function(){return e(e.s=78657)}),_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.