1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[715],{8553:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/account",function(){return l(3054)}])},3054:function(e,s,l){"use strict";l.r(s),l.d(s,{default:function(){return w}});var n=l(5893),a=l(6684),r=l(4641),i=l(654),t=l(8129),d=l(5059),o=l(1639),c=l(3179),u=l(2504),h=l(5432),m=(0,d.G)(function(e,s){var l;let a=(0,o.mq)("FormLabel",e),r=(0,c.Lr)(e),{className:t,children:d,requiredIndicator:m=(0,n.jsx)(x,{}),optionalIndicator:j=null,...f}=r,p=(0,i.NJ)(),v=null!=(l=null==p?void 0:p.getLabelProps(f,s))?l:{ref:s,...f};return(0,n.jsxs)(u.m.label,{...v,className:(0,h.cx)("chakra-form__label",r.className),__css:{display:"block",textAlign:"start",...a},children:[d,(null==p?void 0:p.isRequired)?m:j]})});m.displayName="FormLabel";var x=(0,d.G)(function(e,s){let l=(0,i.NJ)(),a=(0,i.e)();if(!(null==l?void 0:l.isRequired))return null;let r=(0,h.cx)("chakra-form__required-indicator",e.className);return(0,n.jsx)(u.m.span,{...null==l?void 0:l.getRequiredIndicatorProps(e,s),__css:a.requiredIndicator,className:r})});x.displayName="RequiredIndicator";var j=l(9056),f=l(8911),p=l(8691),v=l(9222),N=l(7294),g=l(7536);function _(){let e=(0,N.useMemo)(()=>({firstName:"",lastName:"",displayName:"",email:"",password:"",confirmPassword:"",region:"Select Region"}),[]),s=(0,g.cI)({mode:"onSubmit",defaultValues:{...e}}),{handleSubmit:l,reset:d,control:o,watch:c,formState:{isSubmitSuccessful:u}}=s,h=c("password");(0,N.useEffect)(()=>{d({...e},{keepIsValid:!0})},[u,d,e]);let x=e=>{console.log(JSON.stringify(e))};return(0,n.jsx)(a.K,{width:"100%",alignItems:"center",children:(0,n.jsx)(a.K,{width:{base:"80%",md:"75%",lg:"50%"},children:(0,n.jsx)(g.RV,{...s,children:(0,n.jsxs)("form",{onSubmit:e=>{l(x)(e)},onKeyDown:e=>{"Enter"==e.key&&l(x)(e)},children:[(0,n.jsxs)(r.U,{padding:"10px",children:[(0,n.jsx)(g.Qr,{name:"firstName",control:o,rules:{validate:e=>0!=e.length||"Please enter a first name"},render:e=>{let{field:{onChange:s,value:l},fieldState:{error:a}}=e;return(0,n.jsxs)(i.NI,{isInvalid:!!a,children:[(0,n.jsx)(t.I,{id:"firstName",variant:"flushed",placeholder:"First name",value:l,onChange:s}),(0,n.jsx)(m,{htmlFor:"firstName",children:"First Name"}),(0,n.jsx)(j.J1,{children:(0,n.jsx)(f.x,{children:a?a.message:""})})]})}}),(0,n.jsx)(g.Qr,{name:"lastName",control:o,rules:{validate:e=>0!=e.length||"Please enter a last name"},render:e=>{let{field:{onChange:s,value:l},fieldState:{error:a}}=e;return(0,n.jsxs)(i.NI,{isInvalid:!!a,children:[(0,n.jsx)(t.I,{id:"lastName",variant:"flushed",placeholder:"Last Name",value:l,onChange:s}),(0,n.jsx)(m,{htmlFor:"lastName",children:"Last Name"}),(0,n.jsx)(j.J1,{children:(0,n.jsx)(f.x,{children:a?a.message:""})})]})}})]}),(0,n.jsxs)(a.K,{padding:"10px",children:[(0,n.jsx)(g.Qr,{control:o,name:"displayName",rules:{validate:async e=>0!==e.length||"Please enter a display name"},render:e=>{let{field:{onChange:s,value:l},fieldState:{error:a}}=e;return(0,n.jsxs)(i.NI,{isInvalid:!!a,children:[(0,n.jsx)(t.I,{id:"display",variant:"flushed",placeholder:"Display Name",value:l,onChange:s}),(0,n.jsx)(m,{htmlFor:"display",children:"Display Name"}),(0,n.jsx)(j.J1,{children:a&&(0,n.jsx)(f.x,{children:a.message})})]})}}),(0,n.jsx)(g.Qr,{control:o,name:"email",rules:{validate:async e=>0==e.length?"Please provide an email":void 0},render:e=>{let{field:{onChange:s,value:l},fieldState:{error:a}}=e;return(0,n.jsxs)(i.NI,{isInvalid:!!a,children:[(0,n.jsx)(t.I,{id:"email",variant:"flushed",placeholder:"Email Address",value:l,onChange:s,type:"email"}),(0,n.jsx)(m,{htmlFor:"email",children:"Email Address"}),(0,n.jsx)(j.J1,{children:a&&(0,n.jsx)(f.x,{children:a.message})})]})}}),(0,n.jsxs)(r.U,{children:[(0,n.jsx)(g.Qr,{control:o,name:"password",rules:{validate:e=>e.length<8?"Password must be at least 8 characters long":/[A-Z]/.test(e)?/[0-9]/.test(e)?/[!@#$%^&*]/.test(e)?void 0:"Password must contain at least one special character":"Password must contain at least one numeric digit":"Password must contain at least one uppercase letter"},render:e=>{let{field:{onChange:s,value:l},fieldState:{error:a}}=e;return(0,n.jsxs)(i.NI,{isInvalid:!!a,children:[(0,n.jsx)(t.I,{id:"password",variant:"flushed",placeholder:"Password",value:l,onCh
1ange:s,type:"password"}),(0,n.jsx)(m,{htmlFor:"password",children:"Password"}),(0,n.jsx)(j.J1,{children:a&&(0,n.jsx)(f.x,{children:a.message})})]})}}),(0,n.jsx)(g.Qr,{control:o,name:"confirm password",rules:{validate:e=>h===e||"Passwords do not match"},render:e=>{let{field:{onChange:s,value:l},fieldState:{error:a}}=e;return(0,n.jsxs)(i.NI,{isInvalid:!!a,children:[(0,n.jsx)(t.I,{id:"confirmPassword",variant:"flushed",placeholder:"Confirm Password",value:l,onChange:s,type:"password"}),(0,n.jsx)(m,{htmlFor:"confirmPassword",children:"Confirm Password"}),(0,n.jsx)(j.J1,{children:a&&(0,n.jsx)(f.x,{children:a.message})})]})}})]}),(0,n.jsx)(g.Qr,{control:o,name:"region",rules:{validate:e=>0!=e.length||"Please select a region"},render:e=>{let{field:{onChange:s,value:l},fieldState:{error:a}}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.P,{value:l,onChange:s,children:[(0,n.jsx)("option",{value:"",children:"Select Region"}),(0,n.jsx)("option",{value:"AF",children:"AF"}),(0,n.jsx)("option",{value:"AS",children:"AS"}),(0,n.jsx)("option",{value:"AN",children:"AN"}),(0,n.jsx)("option",{value:"EU",children:"EU"}),(0,n.jsx)("option",{value:"NA",children:"NA"}),(0,n.jsx)("option",{value:"OC",children:"OC"}),(0,n.jsx)("option",{value:"SA",children:"SA"})]}),(0,n.jsx)(j.J1,{children:a&&(0,n.jsx)(f.x,{children:a.message})})]})}})]}),(0,n.jsx)(v.z,{type:"submit",children:"Log in"})]})})})})}function w(){return(0,n.jsx)(_,{})}},8129:function(e,s,l){"use strict";l.d(s,{I:function(){return c}});var n=l(4939),a=l(5059),r=l(1639),i=l(3179),t=l(2504),d=l(5432),o=l(5893),c=(0,a.G)(function(e,s){let{htmlSize:l,...a}=e,c=(0,r.jC)("Input",a),u=(0,i.Lr)(a),h=(0,n.Y)(u),m=(0,d.cx)("chakra-input",e.className);return(0,o.jsx)(t.m.input,{size:l,...h,__css:c.field,ref:s,className:m})});c.displayName="Input",c.id="Input"},8691:function(e,s,l){"use strict";l.d(s,{P:function(){return h}});var n=l(5432),a=l(5059),r=l(2504),i=l(5893),t=(0,a.G)(function(e,s){let{children:l,placeholder:a,className:t,...d}=e;return(0,i.jsxs)(r.m.select,{...d,ref:s,className:(0,n.cx)("chakra-select",t),children:[a&&(0,i.jsx)("option",{value:"",children:a}),l]})});t.displayName="SelectField";var d=l(4939),o=l(1639),c=l(3179),u=l(7294),h=(0,a.G)((e,s)=>{var l;let a=(0,o.jC)("Select",e),{rootProps:u,placeholder:h,icon:m,color:x,height:f,h:p,minH:v,minHeight:N,iconColor:g,iconSize:_,...w}=(0,c.Lr)(e),[I,y]=function(e,s){let l={},n={};for(let[a,r]of Object.entries(e))s.includes(a)?l[a]=r:n[a]=r;return[l,n]}(w,c.oE),P=(0,d.Y)(y),S={paddingEnd:"2rem",...a.field,_focus:{zIndex:"unset",...null==(l=a.field)?void 0:l._focus}};return(0,i.jsxs)(r.m.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:x},...I,...u,children:[(0,i.jsx)(t,{ref:s,height:null!=p?p:f,minH:null!=v?v:N,placeholder:h,...P,__css:S,children:e.children}),(0,i.jsx)(j,{"data-disabled":(0,n.PB)(P.disabled),...(g||x)&&{color:g||x},__css:a.icon,..._&&{fontSize:_},children:m})]})});h.displayName="Select";var m=e=>(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),x=(0,r.m)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),j=e=>{let{children:s=(0,i.jsx)(m,{}),...l}=e,n=(0,u.cloneElement)(s,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,i.jsx)(x,{...l,className:"chakra-select__icon-wrapper",children:(0,u.isValidElement)(s)?n:null})};j.displayName="SelectIcon"}},function(e){e.O(0,[127,774,888,179],function(){return e(e.s=8553)}),_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.