text: (this["webpackJsonpgoit-react-hw-08-phonebook"]=this["webpackJsonpgoit-react-hw-08-phonebook"]||[]).push([[6],{178:function(e,t,a){e.exports={form:"Form_form__2dhb5",formRegistr:"Form_formRegistr__3pCgb"}},189:function(e,t,a){"use strict";var r=a(181);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(a(190)),i=a(3),n=(0,o.default)((0,i.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");t.default=n},248:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return m}));var r=a(28),o=a(0),i=a(18),n=a(29),s=a(249),d=a(172),l=a(189),c=a.n(l),u=a(178),p=a.n(u),b=a(3);function m(){var e=Object(i.b)(),t=Object(o.useState)(""),a=Object(r.a)(t,2),l=a[0],u=a[1],m=Object(o.useState)(""),f=Object(r.a)(m,2),h=f[0],j=f[1],g=function(e){var t=e.target,a=t.name,r=t.value;switch(a){case"email":return u(r);case"password":return j(r);default:return}};return Object(b.jsxs)("div",{children:[Object(b.jsx)("h1",{children:"Log in"}),Object(b.jsxs)("form",{className:p.a.formRegistr,onSubmit:function(t){t.preventDefault(),e(n.a.logIn({email:l,password:h})),u(""),j("")},children:[Object(b.jsx)(s.a,{style:{width:"300px",padding:"8px",display:"block",marginTop:"20px",marginBottom:"20px",borderRadius:8},required:!0,id:"outlined-email",label:"Email",color:"primary",fullWidth:!0,type:"email",name:"email",value:l,onChange:g,pattern:"^([a-z0-9_-]+\\.)*[a-z0-9_-]+@[a-z0-9_-]+(\\.[a-z0-9_-]+)*\\.[a-z]{2,6}$"}),Object(b.jsx)(s.a,{style:{width:"300px",padding:"8px",display:"block",marginTop:"20px",marginBottom:"20px",borderRadius:8},required:!0,id:"outlined-password",label:"Password",color:"primary",fullWidth:!0,type:"password",name:"password",value:h,onChange:g}),Object(b.jsx)(d.a,{variant:"contained",endIcon:Object(b.jsx)(c.a,{}),type:"submit",children:"Log in"})]})]})}}}]);
  //# sourceMappingURL=6.f4df548e.chunk.js.map