text: (this["webpackJsonp@coreui/coreui-free-react-admin-template"]=this["webpackJsonp@coreui/coreui-free-react-admin-template"]||[]).push([[11],{649:function(e,t,c){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c<t;c++)n[c]=e[c];return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var c=[],n=!0,r=!1,a=void 0;try{for(var l,s=e[Symbol.iterator]();!(n=(l=s.next()).done)&&(c.push(l.value),!t||c.length!==t);n=!0);}catch(i){r=!0,a=i}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"===typeof e)return n(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}c.d(t,"a",(function(){return r}))},722:function(e,t,c){"use strict";c.r(t);var n=c(649),r=c(1),a=c(646),l=c(645),s=c(648),i=c(22);t.default=function(){var e=Object(r.useState)(""),t=Object(n.a)(e,2),c=t[0],j=t[1],o=Object(r.useState)(""),u=Object(n.a)(o,2),b=u[0],m=u[1],d=Object(r.useState)(""),h=Object(n.a)(d,2),O=h[0],x=h[1],p=Object(r.useState)(""),f=Object(n.a)(p,2),y=f[0],g=f[1],C=Object(r.useState)(""),v=Object(n.a)(C,2),A=v[0],N=v[1],S=Object(r.useState)(""),w=Object(n.a)(S,2),D=w[0],k=w[1];return Object(i.jsx)(a.k,{children:Object(i.jsx)(a.G,{className:"justify-content-center",children:Object(i.jsx)(a.j,{md:"9",lg:"7",xl:"6",children:Object(i.jsx)(a.f,{className:"mx-4",children:Object(i.jsx)(a.g,{className:"p-4",children:Object(i.jsxs)(a.s,{children:[Object(i.jsx)("h1",{children:"Add a new emplyee"}),Object(i.jsx)("p",{className:"text-muted",children:"Create new employee"}),Object(i.jsxs)(a.A,{className:"mb-3",children:[Object(i.jsx)(a.C,{children:Object(i.jsx)(a.D,{children:Object(i.jsx)(l.a,{name:"cil-user"})})}),Object(i.jsx)(a.y,{type:"text",placeholder:"Fisrt Name",autoComplete:"first_name",onChange:function(e){j(e.target.value)}})]}),Object(i.jsxs)(a.A,{className:"mb-3",children:[Object(i.jsx)(a.C,{children:Object(i.jsx)(a.D,{children:Object(i.jsx)(l.a,{name:"cil-user"})})}),Object(i.jsx)(a.y,{type:"text",placeholder:"Familly Name",autoComplete:"familly_name",onChange:function(e){m(e.target.value)}})]}),Object(i.jsxs)(a.A,{className:"mb-3",children:[Object(i.jsx)(a.C,{children:Object(i.jsx)(a.D,{children:"@\xa0"})}),Object(i.jsx)(a.y,{type:"text",placeholder:"Email",autoComplete:"email",onChange:function(e){x(e.target.value)}})]}),Object(i.jsxs)(a.A,{className:"mb-3",children:[Object(i.jsx)(a.C,{children:Object(i.jsx)(a.D,{children:"R\xa0\xa0"})}),Object(i.jsx)(a.y,{type:"text",placeholder:"Role",autoComplete:"role",onChange:function(e){N(e.target.value)}})]}),Object(i.jsxs)(a.A,{className:"mb-3",children:[Object(i.jsx)(a.C,{children:Object(i.jsx)(a.D,{children:Object(i.jsx)(l.a,{name:"cil-phone"})})}),Object(i.jsx)(a.y,{type:"number",placeholder:"Phone",autoComplete:"phone",onChange:function(e){g(e.target.value)}})]}),Object(i.jsx)(a.t,{col:!0,children:Object(i.jsxs)(a.j,{xs:"12",md:"9",children:[Object(i.jsx)("small",{className:"text-muted",children:"Upload Image"}),Object(i.jsx)(a.z,{id:"file-input",name:"file-input",onChange:function(e){k(e.target.files[0])}})]})}),Object(i.jsx)(a.e,{color:"success",block:!0,onClick:function(e){e.preventDefault(),Object(s.addEmployee)(b,c,O,y,A,D)},children:"Create new employee"})]})})})})})})}}}]);
  //# sourceMappingURL=11.aac71b8a.chunk.js.map