1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[312],{1674:function(e,s,a){"use strict";a.r(s);var r=a(5893),t=a(809),n=a.n(t),l=a(2447),c=a(7294),i=a(1664),m=a(1163),d=a(2283),u=a(9665),x=a(9501),o=a(1677),h=a(590),p=a(3455);s.default=function(){(0,m.useRouter)();var e=(0,o.a)(),s=(e.currentUser,e.signin),a=(e.signInWithGithub,(0,c.useState)(!0)),t=(a[0],a[1]),f=(0,c.useState)(null),N=f[0],L=f[1],j=x.Ry().shape({email:x.Z_().email((0,h.Z)("GLOBAL","EMAIL_VALID")).required((0,h.Z)("GLOBAL","EMAIL_REQUIRED")),password:x.Z_().required((0,h.Z)("GLOBAL","PASSWORD_REQUIRED")).matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/,(0,h.Z)("GLOBAL","PASSWORD_MATCH"))}),_=(0,d.cI)({resolver:(0,u.S)(j),mode:"onChange"}),b=_.register,w=_.handleSubmit,A=(_.control,_.errors),O=function(){var e=(0,l.Z)(n().mark((function e(a){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(!0),e.prev=1,e.next=4,s(a.email,a.password).then((function(){t(!1)}));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),L(e.t0.message);case 9:t(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(s){return e.apply(this,arguments)}}();return(0,r.jsxs)("div",{className:"max-w-screen-xl py-12 mx-auto md:flex",children:[(0,r.jsxs)("div",{className:"mb-12 md:w-1/3 md:mr-24 md:mb-0 md:mt-6",children:[(0,r.jsx)("h1",{className:"mb-4 text-2xl",children:(0,h.Z)("GLOBAL","SIGN_IN")}),(0,r.jsxs)("form",{onSubmit:w(O),className:"mb-6",children:[(0,r.jsxs)("div",{className:"flex flex-col mb-3",children:[(0,r.jsx)("label",{htmlFor:"email",className:"mb-2 ",children:(0,h.Z)("GLOBAL","EMAIL")}),(0,r.jsx)("input",{id:"email",ype:"text",name:"email",className:"input",ref:b}),(0,r.jsx)("p",{className:"input-error",children:A.email&&A.email.message})]}),(0,r.jsxs)("div",{className:"flex flex-col mb-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("label",{htmlFor:"password",className:"mb-2 ",children:(0,h.Z)("GLOBAL","PASSWORD")}),(0,r.jsx)("div",{className:"text-xs text-right",children:(0,r.jsx)(i.default,{href:"/forgot-password",children:(0,r.jsx)("a",{className:"text-teal-700 underline",children:(0,h.Z)("GLOBAL","PASSWORD_FORGOT")})})})]}),(0,r.jsx)("input",{id:"password",type:"password",name:"password",className:"input",ref:b}),(0,r.jsx)("p",{className:"input-error",children:A.password&&A.password.message})]}),(0,r.jsx)("button",{type:"submit",className:"w-full btn btn-teal",children:(0,h.Z)("GLOBAL","SIGN_IN")}),N?(0,r.jsx)("p",{className:"p-3 mt-6 text-lg text-center text-red-500 bg-red-100 rounded-md",children:N}):null]}),(0,r.jsx)("div",{className:"flex flex-col space-y-4",children:(0,r.jsxs)("div",{className:"text-xs text-center",children:[(0,h.Z)("GLOBAL","ACCOUNT_SIGN_UP")," ",(0,r.jsx)(i.default,{href:"/account-select",children:(0,r.jsx)("a",{className:"text-teal-700 underline",children:(0,h.Z)("GLOBAL","HERE")})})]})})]}),(0,r.jsx)(p.Z,{className:"md:w-2/3"})]})}},4805:function(e,s,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return a(1674)}])}},function(e){e.O(0,[473,267,774,888,179],(function(){return s=4805,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.