1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2136],{45326:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/join-team",function(){return r(6464)}])},6464:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return v}});var i=r(52322),t=r(5632),a=r(55351),n=r(63955),l=r(59669),o=r(23543),d=r(13892),c=r(10602),h=r(8400),u=r(78339),m=r(65669),x=r(19233),j=r(25703),p=r(49372),w=r(92139);var v=function(){const e=(0,t.useRouter)(),{err:s,token:r}=e.query,{register:v,watch:f}=(0,n.cI)({defaultValues:{confirmPassword:"",password:""}}),b=f("password"),g=f("confirmPassword"),y=(null===b||void 0===b?void 0:b.length)>=12&&b===g;return(0,i.jsxs)("div",{className:"AuthPage",children:[(0,i.jsx)(a.PB,{title:"Join Team - HyperDX"}),(0,i.jsx)("div",{className:"d-flex align-items-center justify-content-center min-vh-100 p-4",children:(0,i.jsx)("div",{children:(0,i.jsxs)("div",{style:{width:400},children:[(0,i.jsxs)(l.K,{align:"center",gap:"xs",mb:"md",children:[(0,i.jsx)(j.Z,{}),(0,i.jsx)("h2",{className:"mb-3 fs-5 text-slate-200",children:"Join team"})]}),(0,i.jsxs)(o.X,{p:34,shadow:"md",radius:"md",children:[(0,i.jsx)(d.z,{component:"a",radius:"xl","data-test-id":"google-auth-btn",href:"".concat(x.oE,"/login/google?state=").concat(r),variant:"default",color:"gray",size:"md",fullWidth:!0,leftSection:(0,i.jsx)(w._8,{}),children:"Register with Google"}),(0,i.jsx)(c.i,{label:"Or continue with email",labelPosition:"center",color:"dark.3",my:"lg"}),(0,i.jsx)("form",{className:"text-start",action:"".concat(x.oE,"/team/setup/").concat(r),method:"POST",children:(0,i.jsxs)(l.K,{children:[(0,i.jsx)(h.W,{label:"Password",placeholder:"Password",size:"md",required:!0,withAsterisk:!1,leftSection:(0,i.jsx)("i",{className:"bi bi-lock-fill"}),...v("password")}),(0,i.jsx)(u.U,{in:!!b,children:(0,i.jsx)(m.P,{color:"gray.7",withCloseButton:!1,mt:"xs",children:(0,i.jsx)(p.g,{password:b})})}),(0,i.jsx)(h.W,{label:(0,i.jsx)(p.S,{handler:()=>b===g,password:b,children:"Confirm Password"}),size:"md",required:!0,withAsterisk:!1,leftSection:(0,i.jsx)("i",{className:"bi bi-lock-fill"}),placeholder:"Confirm Password",...v("confirmPassword")}),null!=s&&(0,i.jsx)(m.P,{withCloseButton:!1,withBorder:!0,color:"red","data-test-id":"auth-error-msg",children:"invalid"===s?"Password is invalid":"Unknown error occurred, please try again later."}),(0,i.jsx)(d.z,{variant:"light",type:"submit",size:"md","data-test-id":"submit",disabled:!y,children:"Setup a password"})]})})]})]})})})]})}},49372:function(e,s,r){"use strict";r.d(s,{S:function(){return h},g:function(){return c}});var i=r(52322),t=r(2784);const a=e=>e.length>=12,n=e=>/[A-Z]+/.test(e),l=e=>/[a-z]+/.test(e),o=e=>/\d+/.test(e),d=e=>/\W+/.test(e),c=e=>{const s=e.password;return(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{children:(0,i.jsx)(h,{handler:a,password:s,children:"minimum 12 characters"})}),(0,i.jsx)("div",{children:(0,i.jsx)(h,{handler:n,password:s,children:"at least 1 uppercase"})}),(0,i.jsx)("div",{children:(0,i.jsx)(h,{handler:l,password:s,children:"at least 1 lowercase"})}),(0,i.jsx)("div",{children:(0,i.jsx)(h,{handler:o,password:s,children:"at least 1 number"})}),(0,i.jsx)("div",{children:(0,i.jsx)(h,{handler:d,password:s,children:"at least 1 special character"})})]})},h=e=>{let{handler:s,password:r,children:a}=e,n="";var l;"string"===typeof r?n=r:n=null!==(l=r.password)&&void 0!==l?l:"";const o=0===n.length,d=(0,t.useMemo)((()=>s(n)),[s,n]);return o?(0,i.jsx)("span",{children:a}):(0,i.jsxs)("span",{className:d?"text-success":"text-danger",children:[d?(0,i.jsx)(u,{}):(0,i.jsx)(m,{})," ",a]})},u=()=>(0,i.jsx)("i",{className:"bi bi-check2"}),m=()=>(0,i.jsx)("i",{className:"bi bi-x"})},10602:function(e,s,r){"use strict";r.d(s,{i:function(){return x}});var i=r(52322),t=(r(2784),r(32825)),a=r(79346),n=r(57614),l=r(57285),o=r(34032),d=r(90809),c=r(21774),h={root:"m_3eebeb36",label:"m_9e365f20"};const u={orientation:"horizontal"},m=(0,a.Z)(((e,{color:s,variant:r,size:i})=>({root:{"--divider-color":s?(0,n.p)(s,e):void 0,"--divider-border-style":r,"--divider-size":(0,t.ap)(i,"divider-size")}}))),x=(0,c.d)(((e,s)=>{const r=(0,l.w)("Divider",u,e),{classNames:t,className:a,style:n,styles:c,unstyled:x,vars:j,color:p,orientation:w,label:v,labelPosition:f,mod:b,...g}=r,y=(0,o.y)({name:"Divider",classes:h,props:r,className:a,style:n,classNames:t,styles:c,unstyled:x,vars:j,varsResolver:m});return(0,i.jsx)(d.x,{ref:s,mod:[{orientation:w,"with-label":!!v},b],...y("root"),...g,role:"separator",children:v&&(0,i.jsx)(d.x,{component:"span",mod:{position:f},...y("label"),children:v})})}));x.classes=h,x.displayName="@mantine/core/Divider"}}
1,function(e){e.O(0,[3327,5351,8079,734,9774,2888,179],(function(){return s=45326,e(e.s=s);var s}));var s=e.O();_N_E=s}]); 2//#
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.