(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{7572:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return a(31188)}])},37969:function(e,s,a){"use strict";a.d(s,{Z:function(){return w}});var n=a(63366),l=a(87462),r=a(67294),i=a(90512),t=a(58510),o=a(89262),d=a(59145),u=a(4529),c=a(1977),m=a(8027);function p(e){return(0,m.ZP)("MuiList",e)}(0,c.Z)("MuiList",["root","padding","dense","subheader"]);var h=a(85893);let f=["children","className","component","dense","disablePadding","subheader"],g=e=>{let{classes:s,disablePadding:a,dense:n,subheader:l}=e;return(0,t.Z)({root:["root",!a&&"padding",n&&"dense",l&&"subheader"]},p,s)},x=(0,o.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,s)=>{let{ownerState:a}=e;return[s.root,!a.disablePadding&&s.padding,a.dense&&s.dense,a.subheader&&s.subheader]}})(e=>{let{ownerState:s}=e;return(0,l.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!s.disablePadding&&{paddingTop:8,paddingBottom:8},s.subheader&&{paddingTop:0})});var w=r.forwardRef(function(e,s){let a=(0,d.Z)({props:e,name:"MuiList"}),{children:t,className:o,component:c="ul",dense:m=!1,disablePadding:p=!1,subheader:w}=a,Z=(0,n.Z)(a,f),j=r.useMemo(()=>({dense:m}),[m]),N=(0,l.Z)({},a,{component:c,dense:m,disablePadding:p}),P=g(N);return(0,h.jsx)(u.Z.Provider,{value:j,children:(0,h.jsxs)(x,(0,l.Z)({as:c,className:(0,i.Z)(P.root,o),ref:s,ownerState:N},Z,{children:[w,t]}))})})},4529:function(e,s,a){"use strict";let n=a(67294).createContext({});s.Z=n},31188:function(e,s,a){"use strict";a.r(s);var n=a(85893),l=a(67294),r=a(4466),i=a(41283),t=a.n(i),o=a(91444),d=a(53875),u=a(98163),c=a(11163),m=a(41664),p=a.n(m);s.default=e=>{let s=(0,c.useRouter)(),[a,i]=(0,l.useState)({email:"",full_name:"",password:"",confirm_password:""}),m=e=>{i({...a,[e.target.name]:e.target.value}),h.showMessages()},[h]=l.useState(new(t())({className:"errorMessage"}));return(0,n.jsx)(r.ZP,{className:"loginWrapper",children:(0,n.jsxs)(r.ZP,{className:"loginForm",children:[(0,n.jsx)("h2",{children:"Signup"}),(0,n.jsx)("p",{children:"Signup your account"}),(0,n.jsx)("form",{onSubmit:e=>{e.preventDefault(),h.allValid()?(i({email:"",full_name:"",password:"",confirm_password:""}),h.hideMessages(),o.Am.success("Registration Complete successfully!"),s.push("/login")):(h.showMessages(),o.Am.error("Empty field is not allowed!"))},children:(0,n.jsxs)(r.ZP,{container:!0,spacing:3,children:[(0,n.jsxs)(r.ZP,{item:!0,xs:12,children:[(0,n.jsx)(d.Z,{className:"inputOutline",fullWidth:!0,placeholder:"Full Name",value:a.full_name,variant:"outlined",name:"full_name",label:"Name",InputLabelProps:{shrink:!0},onBlur:e=>m(e),onChange:e=>m(e)}),h.message("full name",a.full_name,"required|alpha")]}),(0,n.jsxs)(r.ZP,{item:!0,xs:12,children:[(0,n.jsx)(d.Z,{className:"inputOutline",fullWidth:!0,placeholder:"E-mail",value:a.email,variant:"outlined",name:"email",label:"E-mail",InputLabelProps:{shrink:!0},onBlur:e=>m(e),onChange:e=>m(e)}),h.message("email",a.email,"required|email")]}),(0,n.jsxs)(r.ZP,{item:!0,xs:12,children:[(0,n.jsx)(d.Z,{className:"inputOutline",fullWidth:!0,placeholder:"Password",value:a.password,variant:"outlined",name:"password",label:"Password",InputLabelProps:{shrink:!0},onBlur:e=>m(e),onChange:e=>m(e)}),h.message("password",a.password,"required")]}),(0,n.jsxs)(r.ZP,{item:!0,xs:12,children:[(0,n.jsx)(d.Z,{className:"inputOutline",fullWidth:!0,placeholder:"Confirm Password",value:a.password,variant:"outlined",name:"confirm_password",label:"Confirm Password",InputLabelProps:{shrink:!0},onBlur:e=>m(e),onChange:e=>m(e)}),h.message("confirm password",a.confirm_password,"in:".concat(a.password))]}),(0,n.jsxs)(r.ZP,{item:!0,xs:12,children:[(0,n.jsx)(r.ZP,{className:"formFooter",children:(0,n.jsx)(u.Z,{fullWidth:!0,className:"cBtn cBtnLarge cBtnTheme",type:"submit",children:"Sign Up"})}),(0,n.jsxs)(r.ZP,{className:"loginWithSocial",children:[(0,n.jsx)(u.Z,{className:"facebook",children:(0,n.jsx)("i",{className:"fa fa-facebook"})}),(0,n.jsx)(u.Z,{className:"twitter",children:(0,n.jsx)("i",{className:"fa fa-twitter"})}),(0,n.jsx)(u.Z,{className:"linkedin",children:(0,n.jsx)("i",{className:"fa fa-linkedin"})})]}),(0,n.jsxs)("p",{className:"noteHelp",children:["Already have an account? ",(0,n.jsx)(p(),{href:"/login",children:"Return to Sign In"})]})]})]})})]})})}}},function(e){e.O(0,[38,6534,1664,5711,4466,1684,2888,9774,179],function(){return e(e.s=7572)}),_N_E=e.O()}]);