1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[86],{WGpr:function(e,t,n){"use strict";n.r(t);var r=n("nKUr"),s=n("vJKn"),c=n.n(s),a=n("rg98"),l=n("q1tI"),o=n("/MKj"),i=n("YFqc"),d=n.n(i),u=n("20a2"),b=n("xm5f"),j=n("nSkU");t.default=function(){var e=Object(l.useState)(""),t=e[0],n=e[1],s=Object(l.useState)(""),i=s[0],m=s[1],x=Object(l.useState)(),h=x[0],p=x[1],f=Object(o.b)(),O=Object(b.b)().t,v=Object(u.useRouter)(),N=function(){var e=Object(a.a)(c.a.mark((function e(n){var r,s;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.preventDefault(),e.next=3,f(Object(j.f)({login:t,password:i}));case 3:if(null===(r=e.sent)||void 0===r||!r.errors){e.next=7;break}return p(null===(s=r.errors)||void 0===s?void 0:s.login),e.abrupt("return");case 7:v.query.next?v.push(v.query.next):v.push("/");case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return Object(r.jsx)("div",{className:"container",children:Object(r.jsx)("div",{className:"row my-5",children:Object(r.jsx)("div",{className:"col-md-12",children:Object(r.jsxs)("div",{className:"col-12 col-md-6 m-auto border p-3",children:[Object(r.jsx)("h1",{className:"mb-5 text-center",children:O("Sign in")}),Object(r.jsxs)("form",{onSubmit:N,className:"col-12 col-md-8 m-auto",children:[Object(r.jsxs)("div",{className:"form-group",children:[Object(r.jsx)("label",{htmlFor:"login",className:"form-label",children:O("Email")}),Object(r.jsx)("input",{className:"form-control",type:"text",name:"login",value:t,onChange:function(e){return n(e.target.value)}})]}),Object(r.jsxs)("div",{className:"form-group",children:[Object(r.jsx)("label",{htmlFor:"password",className:"form-label",children:O("Password")}),Object(r.jsx)("input",{className:"form-control",type:"password",name:"password",value:i,onChange:function(e){return m(e.target.value)}})]}),h&&Object(r.jsx)("div",{className:"invalid-feedback d-block mb-3",children:h}),Object(r.jsx)("button",{type:"submit",className:"btn btn-lg btn-secondary w-100 my-4",children:O("Sign in")})]}),Object(r.jsxs)("div",{className:"text-center d-flex flex-column",children:[Object(r.jsx)(d.a,{href:"/register",children:Object(r.jsx)("a",{className:"text-secondary",children:O("You don't have an account yet? Sign up !")})}),Object(r.jsx)(d.a,{href:"/forgot-password",children:Object(r.jsx)("a",{className:"text-secondary",children:O("Forgotten password?")})})]})]})})})})}}}]);
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.