main.366f8b18.chunk.js 256 KB
Newer Older
letrongtri99 committed
1 2
(this.webpackJsonpadminvenus=this.webpackJsonpadminvenus||[]).push([[0],{19:function(e,t,a){"use strict";(function(e){a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return o})),a.d(t,"h",(function(){return s})),a.d(t,"f",(function(){return l})),a.d(t,"e",(function(){return d})),a.d(t,"g",(function(){return j})),a.d(t,"d",(function(){return b}));var n=a(14),c=a.n(n);a(155);e.langCode="vi";var i=function(e){return c()(e).locale("vi").format("YYYY-MM-DD")},r=function(e){return c()(e).locale("vi").format("DD/MM")},o=function(e){return c()(e).locale("vi").format("DD-MM-YYYY")},s=function(e){return c()(e).locale("vi").format("YYYY")},l=function(e){return c()(e).locale("vi").format("MM")},d=function(e){return c()(e).locale("vi").format("HH:mm")},j=function(e){return c()(e).locale("vi").format("MM/DD/YYYY")},b=function(e){return c()(e).locale("vi").format("DD/MM/YYYY")}}).call(this,a(145))},443:function(e,t,a){},466:function(e,t,a){},483:function(e,t,a){},484:function(e,t,a){},485:function(e,t,a){},681:function(e,t,a){"use strict";a.r(t);var n=a(1),c=a(0),i=a.n(c),r=a(34),o=a.n(r),s=(a(443),a(140)),l=a(120),d=a(7),j="SAVE_USER",b="UPDATE_MENU_OPENCHECKIN",u="UPDATE_MENU_DEPARTMENT",h="UPDATE_MENU_EMPLOYEE",O="UPDATE_MENU_SALARY",p="UPDATE_MENU_REPORT",m="UPDATE_MENU_OPENLETTER",x="ENQUEUE_SNACKBAR",g="CLOSE_SNACKBAR",f="REMOVE_SNACKBAR",v={user:{name:"Tdgiang",pass:"abc"},isSignedIn:!1,expiredTime:new Date,userInfo:{}};var y={openCheckIn:!1,openDepartment:!1,openEmployee:!1,openSalary:!1,openReport:!1,openLetter:!1};var C=a(142),w={notifications:[]},S=Object(l.c)({userReducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case j:return Object(d.a)(Object(d.a)({},t.data),{},{isSignedIn:!0});default:return e}},menuReducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:return Object(d.a)(Object(d.a)({},e),{},{openDepartment:t.data});case h:return Object(d.a)(Object(d.a)({},e),{},{openEmployee:t.data});case p:return Object(d.a)(Object(d.a)({},e),{},{openReport:t.data});case O:return Object(d.a)(Object(d.a)({},e),{},{openSalary:t.data});case b:return Object(d.a)(Object(d.a)({},e),{},{openCheckIn:t.data});case m:return Object(d.a)(Object(d.a)({},e),{},{openLetter:t.data});default:return e}},notiReducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case x:return Object(d.a)(Object(d.a)({},e),{},{notifications:[].concat(Object(C.a)(e.notifications),[Object(d.a)({key:t.key},t.notification)])});case g:return Object(d.a)(Object(d.a)({},e),{},{notifications:e.notifications.map((function(e){return t.dismissAll||e.key===t.key?Object(d.a)(Object(d.a)({},e),{},{dismissed:!0}):Object(d.a)({},e)}))});case f:return Object(d.a)(Object(d.a)({},e),{},{notifications:e.notifications.filter((function(e){return e.key!==t.key}))});default:return e}}}),k=a(41),T=a(55),D=a(10),I=a.n(D),N=a(15),E=a(8),A=a(107),R=a(757),P=a(759),L=a(412),W=a(683),H=a(765),z=a(177),M={API_TOKEN:"API_TOKEN",CAN_SHOW_RATING_DIALOG:"CAN_SHOW_RATING_DIALOG",LANG_CODE:"LANG_CODE",LANGUAGE:"LANGUAGE",CHANGE_ROLE:"@CHANGE_ROLE"};var B=a(766),F=a(767),_=a(143),K=a.n(_);function G(e,t){return V.apply(this,arguments)}function V(){return(V=Object(N.a)(I.a.mark((function e(t,a){var n,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=localStorage.getItem(M.API_TOKEN),c={method:"get",url:t,headers:{Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+n},params:Object(d.a)({},a),timeout:6e4},console.log("My request",c),e.next=5,K()(c).then((function(e){return e})).then((function(e){return e})).catch((function(e){return console.log(e.request),{message:"error",status:e.request.status}}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e,t){return Y.apply(this,arguments)}function Y(){return(Y=Object(N.a)(I.a.mark((function e(t,a){var n,c=arguments;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(c.length>2&&void 0!==c[2])||c[2],n={method:"post",url:t,headers:{Accept:"application/json","Content-Type":"application/json"},timeout:6e4,data:JSON.stringify(a)},console.log("post data mobile",n),e.next=5,K()(n).then((function(e){return e})).then((function(e){return e})).catch((function(e){return console.log(e.request),{message:"error",status:e.request.status}}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e,t){return X.apply(this,arguments)}function X(){return(X=Object(N.a)(I.a.mark((function e(t,a){var n,c,i=arguments;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return!(i.length>2&&void 0!==i[2])||i[2],n=localStorage.getItem(M.API_TOKEN),c={method:"post",url:t,headers:{Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer "+n},timeout:6e4,data:JSON.stringify(a)},console.log("post data mobile",c),e.next=6,K()(c).then((function(e){return e})).then((function(e){return e})).catch((function(e){return console.log(e.request),{message:"error",status:e.request.status}}));case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}K.a.defaults.timeout=1e4;var J=a(19),Q="http://apihrm.dcv.vn/venus-service",Z="http://hrm.api.dcv.vn/api/v1",$="http://hrm.japi.dcv.vn/venus-service",ee={LOGIN:"".concat("http://hrm.auth.dcv.vn/api/v1","/auth/login"),APPLICATION:"".concat(Q,"/employeeRequestService/getLst"),GETLISTEMPLOYEE:"".concat(Z,"/employee/getall"),GETLISTEMPLOYEEPAGING:"".concat(Z,"/employee/getallbypaging"),NEWEMPLOYEE:"".concat(Z,"/employee/save"),DELETEEMPLOYEE:"".concat(Z,"/employee/delete"),DETAILEMPLOYEE:"".concat(Z,"/employee/getbyid"),GETLISTDEPARTMENTPAGING:"".concat(Z,"/department/getallbypaging"),DELETEDEPARTMENT:"".concat(Z,"/department/delete"),NEWDEPARTMENT:"".concat(Z,"/department/save"),DETAILDEPARTMENT:"".concat(Z,"/department/getbyid"),GETLISTCHECKIN:"".concat(Z,"/checkIn/search"),GETLISTLETTERPAGING:"".concat(Z,"/complain/getcomplainbystatus"),AGREELETTER:"".concat($,"/complainService/hr"),GETDETAILLETTER:"".concat(Z,"/complain/getbyid"),DISAGREELETTER:"".concat($,"/complainService/notApprovalComplain"),GETTYPEHRREPORT:"".concat(Z,"/complain/typehrreport"),GETSTATUSHRREPORT:"".concat(Z,"/complain/statushrreport"),GETCHECKINEACHMONTH:"".concat(Z,"/checkin/yearlyreport"),GETLISTDAYOFFPAGING:"".concat(Z,"/holiday/getallbypaging"),CREATEDAYOFF:"".concat(Z,"/holiday/save"),DELETEDAYOFF:"".concat(Z,"/holiday/delete"),GETDAYOFF:"".concat(Z,"/holiday/getbyid"),CREATEWIFI:"".concat(Z,"/wifi/save"),DELETEWIFI:"".concat(Z,"/wifi/delete"),GETWIFI:"".concat(Z,"/wifi/getallbypaging"),GETWIFIDETAIL:"".concat(Z,"/wifi/getbyid"),CREATELOCATION:"".concat(Z,"/location/save"),DELETELOCATION:"".concat(Z,"/location/delete"),GETLOCATION:"".concat(Z,"/location/getallbypaging"),GETLOCATIONDETAIL:"".concat(Z,"/location/getbyid"),GETGENDERDEPARTMENT:"".concat(Z,"/employee/genderbydepartmentnopaging"),GETCHECKINBYDAY:"".concat(Z,"/checkin/searchbyday"),SEARCHCOMPLAIN:"".concat(Z,"/complain/searchhrweb")},te=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",U(ee.LOGIN,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ae=Object(A.a)((function(e){return{submit:{margin:e.spacing(3,0,2),width:"260px",backgroundColor:"#3C8DBC"},root:{paddingTop:10,paddingRight:20,paddingLeft:20},loginTitle:{fontSize:"22px",color:"#3C8DBC",marginBottom:"30px"},container:{flex:1,backgroundColor:"red"}}})),ne=Object(s.b)((function(e){return{user:e.userReducer}}),{saveUserToRedux:function(e){return{type:j,data:e}}})((function(e){function t(){var e=window;return{width:e.innerWidth,height:e.innerHeight}}var a=ae(),i=Object(T.g)(),r=Object(c.useState)({appcode:"Dcv",username:"",password:"",isCheck:1}),o=Object(E.a)(r,2),s=o[0],l=o[1],j=Object(c.useState)(""),b=Object(E.a)(j,2),u=b[0],h=b[1],O=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(""!==s.username&&""!==s.password){t.next=5;break}h(""),h("C\u1ea7n ph\u1ea3i \u0111i\u1ec1n \u0111\u1ea7y \u0111\u1ee7 email v\xe0 password"),t.next=9;break;case 5:return t.next=7,te(s);case 7:(a=t.sent).data&&0===a.data.errorCode?(h(""),e.saveUserToRedux(a.data.data),localStorage.setItem("user",JSON.stringify({name:a.data.data.fullName,empCode:a.data.data.code})),localStorage.setItem(M.API_TOKEN,a.data.data.accessToken),i.push("/home")):a.data&&1===a.data.errorCode&&(h(""),h("Sai email ho\u1eb7c m\u1eadt kh\u1ea9u"));case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),p=function(){var t=Object(N.a)(I.a.mark((function t(a){var n;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("Enter"!==a.key){t.next=10;break}if(""!==s.username&&""!==s.password){t.next=6;break}h(""),h("C\u1ea7n ph\u1ea3i \u0111i\u1ec1n \u0111\u1ea7y \u0111\u1ee7 email v\xe0 password"),t.next=10;break;case 6:return t.next=8,te(s);case 8:(n=t.sent).data&&0===n.data.errorCode?(h(""),e.saveUserToRedux(n.data.data),localStorage.setItem("user",JSON.stringify({name:n.data.data.fullName,empCode:n.data.data.code})),localStorage.setItem(M.API_TOKEN,n.data.data.accessToken),i.push("/home")):n.data&&1===n.data.errorCode&&(h(""),h("Sai email ho\u1eb7c m\u1eadt kh\u1ea9u"));case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),m=t().height,x=t().width;return Object(n.jsx)(R.a,{style:{height:m,backgroundImage:"url(https://images.pexels.com/photos/5905443/pexels-photo-5905443.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940)",backgroundRepeat:"no-repeat",width:x,backgroundSize:"cover"},container:!0,direction:"row",justify:"center",alignItems:"center",children:Object(n.jsx)(P.a,{className:a.root,children:Object(n.jsxs)(R.a,{container:!0,direction:"column",justify:"center",alignItems:"center",children:[Object(n.jsx)("b",{className:a.loginTitle,children:"\u0110\u0103ng nh\u1eadp v\xe0o h\u1ec7 th\u1ed1ng"}),Object(n.jsx)(L.a,{color:"primary",label:"T\xean \u0111\u0103ng nh\u1eadp",margin:"normal",InputProps:{startAdornment:Object(n.jsx)(W.a,{position:"start",children:Object(n.jsx)(B.a,{})})},value:s.username,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{username:e.target.value}))},onKeyDown:p}),Object(n.jsx)(L.a,{type:"password",color:"primary",name:"password",id:"password",autoComplete:"current-password",label:"M\u1eadt kh\u1ea9u",margin:"normal",InputProps:{startAdornment:Object(n.jsx)(W.a,{position:"start",children:Object(n.jsx)(F.a,{})})},value:s.password,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{password:e.target.value}))},onKeyDown:p}),Object(n.jsx)("div",{style:{height:20}}),Object(n.jsx)("div",{style:{width:"100%"},children:Object(n.jsx)(H.a,{style:{marginLeft:"16px",color:"red",fontSize:"13px"},children:u})}),Object(n.jsx)(z.a,{onClick:O,type:"submit",variant:"contained",color:"primary",className:a.submit,children:"\u0110\u0103ng nh\u1eadp"})]})})})})),ce=a(97),ie=a(132),re=a.n(ie),oe=a(164),se=a.n(oe),le=a(131),de=a.n(le),je=a(24),be=a(368),ue=a.n(be),he=a(370),Oe=a.n(he),pe=a(371),me=a.n(pe),xe=a(369),ge=a.n(xe),fe=a(30),ve=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETLISTLETTERPAGING,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.AGREELETTER,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ce=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETDETAILLETTER,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),we=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETTYPEHRREPORT,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Se=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETSTATUSHRREPORT,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ke=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.SEARCHCOMPLAIN,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Te=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.GETLISTDEPARTMENTPAGING,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),De=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.DELETEDEPARTMENT,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.NEWDEPARTMENT,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.DETAILDEPARTMENT,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ee=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G("http://10.10.0.17:9200/employee/_search",t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ae=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.NEWEMPLOYEE,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Re=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.DELETEEMPLOYEE,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pe=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.DETAILEMPLOYEE,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Le=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETGENDERDEPARTMENT,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),We=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.GETLISTCHECKIN,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),He=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETCHECKINEACHMONTH,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETCHECKINBYDAY,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Me=function(e){var t=Object(c.useState)(0),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(0),s=Object(E.a)(o,2),l=s[0],d=s[1],j=Object(c.useState)(0),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)({checkInEd:0,onTime:0,late:0,notCheckIn:0}),p=Object(E.a)(O,2),m=p[0],x=p[1],g=Object(fe.b)().enqueueSnackbar,f=Object(T.g)(),v=function(){var e=Object(N.a)(I.a.mark((function e(){var t,a,n,c,i,o;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([ve({pageIndex:1,pageSize:10,orderBy:"createdAt",directionSort:"DESC",complainStatus:1}),Te({pageIndex:1,pageSize:10,orderBy:"CreatedAt",directionSort:"DESC"}),Ee({}),ze({fromDate:Object(J.a)(new Date)})]);case 2:t=e.sent,a=Object(E.a)(t,4),n=a[0],c=a[1],i=a[2],o=a[3],n.data&&0==n.data.errorCode?(r(n.data.metaData.outRowsNumber),d(c.data.metaData.outRowsNumber),h(i.data.hits.total),x({checkInEd:o.data.data.checkInEd,onTime:o.data.data.onTime,late:o.data.data.late,notCheckIn:o.data.data.notCheckIn})):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){f.push("/")}),100)):g("Error!",{variant:"error"});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){v()}),[]),Object(n.jsxs)(R.a,{container:!0,children:[Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{item:!0,lg:4,md:6,sm:12,children:Object(n.jsxs)(P.a,{style:{backgroundColor:"#dd4b39",paddingTop:20,minWidth:200},children:[Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",i]}),Object(n.jsx)(ce.a,{variant:"p",style:{fontSize:"15px"},children:"\u0110\u01a1n t\u1eeb ch\u1edd x\u1eed l\xfd"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(de.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)"}})})]}),Object(n.jsx)(je.b,{to:"./letter",style:{textDecoration:"none"},children:Object(n.jsx)(z.a,{fullWidth:!0,style:{color:"white",backgroundColor:"#992600"},children:Object(n.jsx)(ce.a,{variant:"caption",children:"Th\xf4ng tin chi ti\u1ebft"})})})]})}),Object(n.jsx)(R.a,{item:!0,lg:4,md:6,sm:12,children:Object(n.jsxs)(P.a,{style:{backgroundColor:"#f39c12",paddingTop:20,minWidth:200},children:[Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",l]}),Object(n.jsx)(ce.a,{variant:"p",style:{fontSize:"15px"},children:"Ph\xf2ng ban"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(se.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)"}})})]}),Object(n.jsx)(je.b,{to:"./department/report",style:{textDecoration:"none"},children:Object(n.jsx)(z.a,{fullWidth:!0,style:{color:"white",backgroundColor:"#cc7a00"},children:Object(n.jsx)(ce.a,{variant:"caption",children:"Th\xf4ng tin chi ti\u1ebft"})})})]})}),Object(n.jsx)(R.a,{item:!0,lg:4,md:6,sm:12,children:Object(n.jsxs)(P.a,{style:{backgroundColor:"#00c0ef",paddingTop:20,minWidth:200},children:[Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",u]}),Object(n.jsx)(ce.a,{variant:"p",style:{fontSize:"15px"},children:"Nh\xe2n s\u1ef1"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(re.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)"}})})]}),Object(n.jsx)(je.b,{to:"./employee",style:{textDecoration:"none"},children:Object(n.jsx)(z.a,{fullWidth:!0,style:{color:"white",backgroundColor:"#3c8dbc"},children:Object(n.jsx)(ce.a,{variant:"caption",children:"Th\xf4ng tin chi ti\u1ebft"})})})]})})]}),Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,style:{marginTop:"5px"},children:[Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)("h1",{style:{textAlign:"left"},children:"H\xf4m nay"})}),Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{padding:20,minWidth:200},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",m.checkInEd]}),Object(n.jsx)(ce.a,{variant:"p",style:{color:"#868e96",fontSize:"15px"},children:"\u0110\xe3 checkin"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(ue.a,{style:{width:70,height:70,color:"#9CCC65"}})})]})})}),Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{padding:20,minWidth:200},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",m.onTime]}),Object(n.jsx)(ce.a,{variant:"p",style:{color:"#868e96",fontSize:"15px"},children:"\u0110\xfang gi\u1edd"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(ge.a,{style:{width:70,height:70,color:"#FF7043"}})})]})})}),Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{padding:20,minWidth:200},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",m.late]}),Object(n.jsx)(ce.a,{variant:"p",style:{color:"#868e96",fontSize:"15px"},children:"\u0110i mu\u1ed9n"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(Oe.a,{style:{width:70,height:70,color:"#42A5F5"}})})]})})}),Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{padding:20,minWidth:200},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",m.notCheckIn]}),Object(n.jsx)(ce.a,{variant:"p",style:{color:"#868e96",fontSize:"15px"},children:"Ch\u01b0a checkin"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(me.a,{style:{width:70,height:70,color:"#FF3B30"}})})]})})})]})]})},Be=a(60),Fe=a(61),_e=a(63),Ke=a(62),Ge=a(242),Ve=a(18),Ue=a(25),Ye=function(e){e.name;var t=e.color;return Object(n.jsx)("div",{style:{width:20,height:20,borderRadius:10,backgroundColor:t}})},qe=function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={targetItem:void 0,hover:void 0},n.changeTargetItem=function(e){return n.setState({targetItem:e})},n.changeHover=function(e){return n.setState({hover:e})},n}return Object(Fe.a)(a,[{key:"render",value:function(){var e=this.props,t=e.data,a=e.title,c=e.targetItem,i=e.hover;return Object(n.jsxs)(Ge.a,{style:{padding:10},children:[Object(n.jsx)(ce.a,{variant:"h5",children:a}),Object(n.jsxs)(Ve.c,{height:350,data:t,children:[Object(n.jsx)(Ue.k,{scheme:["#9CCC65","#FF7043","#42A5F5","red"]}),Object(n.jsx)(Ve.f,{valueField:"val",argumentField:"region",innerRadius:.6}),Object(n.jsx)(Ve.d,{markerComponent:Ye}),Object(n.jsx)(Ue.a,{}),Object(n.jsx)(Ue.g,{}),Object(n.jsx)(Ve.h,{targetItem:c,onTargetItemChange:this.changeTargetItem}),Object(n.jsx)(Ue.h,{hover:i,onHoverChange:this.changeHover})]})]})}}]),a}(c.PureComponent),Xe=a(36),Je=a(106),Qe=a(54),Ze=a(87),$e=a(3),et=a(52),tt=a(810),at=a(230),nt=a(13),ct=a(687),it=a(689),rt=a(688),ot=a(780),st=a(779),lt=a(781),dt=a(289),jt=a(378),bt=a.n(jt),ut=a(376),ht=a.n(ut),Ot=a(377),pt=a.n(Ot),mt=a(111),xt=a.n(mt),gt=a(185),ft=a.n(gt),vt=a(375),yt=a.n(vt),Ct=[{title:"Website Re-Design Plan",startDate:new Date(2018,5,25,9,35),endDate:new Date(2018,5,25,11,30),id:0,location:"Room 1"},{title:"Book Flights to San Fran for Sales Trip",startDate:new Date(2018,5,25,12,11),endDate:new Date(2018,5,25,13,0),id:1,location:"Room 1"},{title:"Install New Router in Dev Room",startDate:new Date(2018,5,25,14,30),endDate:new Date(2018,5,25,15,35),id:2,location:"Room 2"},{title:"Approve Personal Computer Upgrade Plan",startDate:new Date(2018,5,26,10,0),endDate:new Date(2018,5,26,11,0),id:3,location:"Room 2"},{title:"Final Budget Review",startDate:new Date(2018,5,26,12,0),endDate:new Date(2018,5,26,13,35),id:4,location:"Room 2"},{title:"New Brochures",startDate:new Date(2018,5,26,14,30),endDate:new Date(2018,5,26,15,45),id:5,location:"Room 2"},{title:"Install New Database",startDate:new Date(2018,5,27,9,45),endDate:new Date(2018,5,27,11,15),id:6,location:"Room 1"},{title:"Approve New Online Marketing Strategy",startDate:new Date(2018,5,27,12,0),endDate:new Date(2018,5,27,14,0),id:7,location:"Room 3"},{title:"Upgrade Personal Computers",startDate:new Date(2018,5,27,15,15),endDate:new Date(2018,5,27,16,30),id:8,location:"Room 3"},{title:"Customer Workshop",startDate:new Date(2018,5,28,11,0),endDate:new Date(2018,5,28,12,0),id:9,location:"Room 3"},{title:"Prepare 2015 Marketing Plan",startDate:new Date(2018,5,28,11,0),endDate:new Date(2018,5,28,13,30),id:10,location:"Room 1"},{title:"Brochure Design Review",startDate:new Date(2018,5,28,14,0),endDate:new Date(2018,5,28,15,30),id:11,location:"Room 2"},{title:"Create Icons for Website",startDate:new Date(2018,5,29,10,0),endDate:new Date(2018,5,29,11,30),id:12,location:"Room 2"},{title:"Upgrade Server Hardware",startDate:new Date(2018,5,29,14,30),endDate:new Date(2018,5,29,16,0),id:13,location:"Room 3"},{title:"Submit New Website Design",startDate:new Date(2018,5,29,16,30),endDate:new Date(2018,5,29,18,0),id:14,location:"Room 3"},{title:"Launch New Website",startDate:new Date(2018,5,29,12,20),endDate:new Date(2018,5,29,14,0),id:15,location:"Room 2"},{title:"Website Re-Design Plan",startDate:new Date(2018,6,2,9,30),endDate:new Date(2018,6,2,15,30),id:16,location:"Room 1"},{title:"Book Flights to San Fran for Sales Trip",startDate:new Date(2018,6,2,12,0),endDate:new Date(2018,6,2,13,0),id:17,location:"Room 3"},{title:"Install New Router in Dev Room",startDate:new Date(2018,6,2,14,30),endDate:new Date(2018,6,2,17,30),id:18,location:"Room 2"},{title:"Approve Personal Computer Upgrade Plan",startDate:new Date(2018,6,2,16,0),endDate:new Date(2018,6,3,9,0),id:19,location:"Room 2"},{title:"Final Budget Review",startDate:new Date(2018,6,3,10,15),endDate:new Date(2018,6,3,13,35),id:20,location:"Room 1"},{title:"New Brochures",startDate:new Date(2018,6,3,14,30),endDate:new Date(2018,6,3,15,45),id:21,location:"Room 3"},{title:"Install New Database",startDate:new Date(2018,6,3,15,45),endDate:new Date(2018,6,4,12,15),id:22,location:"Room 3"},{title:"Approve New Online Marketing Strategy",startDate:new Date(2018,6,4,12,35),endDate:new Date(2018,6,4,14,15),id:23,location:"Room 3"},{title:"Upgrade Personal Computers",startDate:new Date(2018,6,4,15,15),endDate:new Date(2018,6,4,20,30),id:24,location:"Room 2"},{title:"Customer Workshop",startDate:new Date(2018,6,5,6,0),endDate:new Date(2018,6,5,14,20),id:25,location:"Room 1"},{title:"Customer Workshop",startDate:new Date(2018,6,5,14,35),endDate:new Date(2018,6,5,16,20),id:26,location:"Room 1"},{title:"Customer Workshop 2",startDate:new Date(2018,6,5,10,0),endDate:new Date(2018,6,5,11,20),id:27,location:"Room 2"},{title:"Prepare 2015 Marketing Plan",startDate:new Date(2018,6,5,20,0),endDate:new Date(2018,6,6,13,30),id:28,location:"Room 3"},{title:"Brochure Design Review",startDate:new Date(2018,6,6,14,10),endDate:new Date(2018,6,6,15,30),id:29,location:"Room 3"},{title:"Create Icons for Website",startDate:new Date(2018,6,6,10,0),endDate:new Date(2018,6,7,14,30),id:30,location:"Room 1"},{title:"Upgrade Server Hardware",startDate:new Date(2018,6,3,9,30),endDate:new Date(2018,6,3,12,25),id:31,location:"Room 2"},{title:"Submit New Website Design",startDate:new Date(2018,6,3,12,30),endDate:new Date(2018,6,3,18,0),id:32,location:"Room 2"},{title:"Launch New Website",startDate:new Date(2018,6,3,12,20),endDate:new Date(2018,6,3,14,10),id:33,location:"Room 2"},{title:"Book Flights to San Fran for Sales Trip",startDate:new Date(2018,5,26,0,0),endDate:new Date(2018,5,27,0,0),id:34,location:"Room 1"},{title:"Customer Workshop",startDate:new Date(2018,5,29,10,0),endDate:new Date(2018,5,30,14,30),id:35,location:"Room 1"},{title:"Google AdWords Strategy",startDate:new Date(2018,6,3,0,0),endDate:new Date(2018,6,4,10,30),id:36,location:"Room 3"},{title:"Rollout of New Website and Marketing Brochures",startDate:new Date(2018,6,5,10,0),endDate:new Date(2018,6,9,14,30),id:37,location:"Room 3"},{title:"Update NDA Agreement",startDate:new Date(2018,6,1,10,0),endDate:new Date(2018,6,3,14,30),id:38,location:"Room 2"},{title:"Customer Workshop",startDate:new Date(2018,6,1),endDate:new Date(2018,6,2),allDay:!0,id:39,location:"Room 1"}],wt=function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={appointmentChanges:{}},n.getAppointmentData=function(){return n.props.appointmentData},n.getAppointmentChanges=function(){return n.state.appointmentChanges},n.changeAppointment=n.changeAppointment.bind(Object(Je.a)(n)),n.commitAppointment=n.commitAppointment.bind(Object(Je.a)(n)),n}return Object(Fe.a)(a,[{key:"changeAppointment",value:function(e){var t=e.field,a=e.changes,n=Object(d.a)(Object(d.a)({},this.getAppointmentChanges()),{},Object(Xe.a)({},t,a));this.setState({appointmentChanges:n})}},{key:"commitAppointment",value:function(e){var t=this.props.commitChanges,a=Object(d.a)(Object(d.a)({},this.getAppointmentData()),this.getAppointmentChanges());t("deleted"===e?Object(Xe.a)({},e,a.id):"changed"===e?Object(Xe.a)({},e,Object(Xe.a)({},a.id,a)):Object(Xe.a)({},e,a)),this.setState({appointmentChanges:{}})}},{key:"render",value:function(){var e=this,t=this.props,a=t.classes,c=t.visible,i=t.visibleChange,r=t.appointmentData,o=t.cancelAppointment,s=t.target,l=t.onHide,j=this.state.appointmentChanges,b=Object(d.a)(Object(d.a)({},r),j),u=void 0===r.id,h=u?function(){return e.commitAppointment("added")}:function(){return e.commitAppointment("changed")},O=function(t){return{variant:"outlined",onChange:function(a){var n=a.target;return e.changeAppointment({field:[t],changes:n.value})},value:b[t]||"",label:t[0].toUpperCase()+t.slice(1),className:a.textField}},p=function(t){return{className:a.picker,ampm:!1,value:b[t],onChange:function(a){return e.changeAppointment({field:[t],changes:a?a.toDate():new Date(b[t])})},inputVariant:"outlined",format:"DD/MM/YYYY HH:mm",onError:function(){return null}}};return Object(n.jsx)(Ze.b.Overlay,{visible:c,target:s,fullSize:!0,onHide:l,children:Object(n.jsxs)("div",{children:[Object(n.jsx)("div",{className:a.header,children:Object(n.jsx)(dt.a,{className:a.closeButton,onClick:function(){e.setState({appointmentChanges:{}}),i(),o()},children:Object(n.jsx)(xt.a,{color:"action"})})}),Object(n.jsxs)("div",{className:a.content,children:[Object(n.jsxs)("div",{className:a.wrapper,children:[Object(n.jsx)(yt.a,{className:a.icon,color:"action"}),Object(n.jsx)(L.a,Object(d.a)({},O("title")))]}),Object(n.jsxs)("div",{className:a.wrapper,children:[Object(n.jsx)(ft.a,{className:a.icon,color:"action"}),Object(n.jsxs)(et.a,{utils:at.a,children:[Object(n.jsx)(tt.a,Object(d.a)({label:"Start Date"},p("startDate"))),Object(n.jsx)(tt.a,Object(d.a)({label:"End Date"},p("endDate")))]})]}),Object(n.jsxs)("div",{className:a.wrapper,children:[Object(n.jsx)(ht.a,{className:a.icon,color:"action"}),Object(n.jsx)(L.a,Object(d.a)({},O("location")))]}),Object(n.jsxs)("div",{className:a.wrapper,children:[Object(n.jsx)(pt.a,{className:a.icon,color:"action"}),Object(n.jsx)(L.a,Object(d.a)(Object(d.a)({},O("notes")),{},{multiline:!0,rows:"6"}))]})]}),Object(n.jsxs)("div",{className:a.buttonGroup,children:[!u&&Object(n.jsx)(z.a,{variant:"outlined",color:"secondary",className:a.button,onClick:function(){i(),e.commitAppointment("deleted")},children:"Delete"}),Object(n.jsx)(z.a,{variant:"outlined",color:"primary",className:a.button,onClick:function(){i(),h()},children:u?"Create":"Save"})]})]})})}}]),a}(c.PureComponent),St=Object(nt.a)((function(e){return{container:{width:e.spacing(68),padding:0,paddingBottom:e.spacing(2)},content:{padding:e.spacing(2),paddingTop:0},header:{overflow:"hidden",paddingTop:e.spacing(.5)},closeButton:{float:"right"},buttonGroup:{display:"flex",justifyContent:"flex-end",padding:e.spacing(0,2)},button:{marginLeft:e.spacing(2)},picker:{marginRight:e.spacing(2),"&:last-child":{marginRight:0},width:"50%"},wrapper:{display:"flex",justifyContent:"space-between",padding:e.spacing(1,0)},icon:{margin:e.spacing(2,0),marginRight:e.spacing(2)},textField:{width:"100%"}}}),{name:"AppointmentFormContainer"})(wt),kt=function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={data:Ct,currentDate:"2018-06-27",confirmationVisible:!1,editingFormVisible:!1,deletedAppointmentId:void 0,editingAppointment:void 0,previousAppointment:void 0,addedAppointment:{},startDayHour:9,endDayHour:19,isNewAppointment:!1},n.toggleConfirmationVisible=n.toggleConfirmationVisible.bind(Object(Je.a)(n)),n.commitDeletedAppointment=n.commitDeletedAppointment.bind(Object(Je.a)(n)),n.toggleEditingFormVisibility=n.toggleEditingFormVisibility.bind(Object(Je.a)(n)),n.commitChanges=n.commitChanges.bind(Object(Je.a)(n)),n.onEditingAppointmentChange=n.onEditingAppointmentChange.bind(Object(Je.a)(n)),n.onAddedAppointmentChange=n.onAddedAppointmentChange.bind(Object(Je.a)(n)),n.appointmentForm=Object($e.m)(St,(function(){var e=n.state,t=e.editingFormVisible,a=e.editingAppointment,c=e.data,i=e.addedAppointment,r=e.isNewAppointment,o=e.previousAppointment;return{visible:t,appointmentData:c.filter((function(e){return a&&e.id===a.id}))[0]||i,commitChanges:n.commitChanges,visibleChange:n.toggleEditingFormVisibility,onEditingAppointmentChange:n.onEditingAppointmentChange,cancelAppointment:function(){r&&n.setState({editingAppointment:o,isNewAppointment:!1})}}})),n}return Object(Fe.a)(a,[{key:"componentDidUpdate",value:function(){this.appointmentForm.update()}},{key:"onEditingAppointmentChange",value:function(e){this.setState({editingAppointment:e})}},{key:"onAddedAppointmentChange",value:function(e){this.setState({addedAppointment:e});var t=this.state.editingAppointment;void 0!==t&&this.setState({previousAppointment:t}),this.setState({editingAppointment:void 0,isNewAppointment:!0})}},{key:"setDeletedAppointmentId",value:function(e){this.setState({deletedAppointmentId:e})}},{key:"toggleEditingFormVisibility",value:function(){var e=this.state.editingFormVisible;this.setState({editingFormVisible:!e})}},{key:"toggleConfirmationVisible",value:function(){var e=this.state.confirmationVisible;this.setState({confirmationVisible:!e})}},{key:"commitDeletedAppointment",value:function(){this.setState((function(e){var t=e.data,a=e.deletedAppointmentId;return{data:t.filter((function(e){return e.id!==a})),deletedAppointmentId:null}})),this.toggleConfirmationVisible()}},{key:"commitChanges",value:function(e){var t=this,a=e.added,n=e.changed,c=e.deleted;this.setState((function(e){var i=e.data;if(a){var r=i.length>0?i[i.length-1].id+1:0;i=[].concat(Object(C.a)(i),[Object(d.a)({id:r},a)])}return n&&(i=i.map((function(e){return n[e.id]?Object(d.a)(Object(d.a)({},e),n[e.id]):e}))),void 0!==c&&(t.setDeletedAppointmentId(c),t.toggleConfirmationVisible()),{data:i,addedAppointment:{}}}))}},{key:"render",value:function(){var e=this,t=this.state,a=t.currentDate,c=t.data,i=t.confirmationVisible,r=t.editingFormVisible,o=t.startDayHour,s=t.endDayHour,l=this.props.classes;return Object(n.jsxs)(Ge.a,{children:[Object(n.jsxs)(Ze.h,{data:c,height:660,children:[Object(n.jsx)(Qe.r,{currentDate:a}),Object(n.jsx)(Qe.k,{onCommitChanges:this.commitChanges,onEditingAppointmentChange:this.onEditingAppointmentChange,onAddedAppointmentChange:this.onAddedAppointmentChange}),Object(n.jsx)(Ze.k,{startDayHour:o,endDayHour:s}),Object(n.jsx)(Ze.g,{}),Object(n.jsx)(Ze.a,{}),Object(n.jsx)(Ze.f,{}),Object(n.jsx)(Ze.d,{}),Object(n.jsx)(Ze.c,{showOpenButton:!0,showCloseButton:!0,showDeleteButton:!0}),Object(n.jsx)(Ze.i,{}),Object(n.jsx)(Ze.j,{}),Object(n.jsx)(Ze.b,{overlayComponent:this.appointmentForm,visible:r,onVisibilityChange:this.toggleEditingFormVisibility}),Object(n.jsx)(Ze.e,{})]}),Object(n.jsxs)(ct.a,{open:i,onClose:this.cancelDelete,children:[Object(n.jsx)(st.a,{children:"Delete Appointment"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{children:"Are you sure you want to delete this appointment?"})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:this.toggleConfirmationVisible,color:"primary",variant:"outlined",children:"Cancel"}),Object(n.jsx)(z.a,{onClick:this.commitDeletedAppointment,color:"secondary",variant:"outlined",children:"Delete"})]})]}),Object(n.jsx)("div",{style:{height:50},children:Object(n.jsx)(lt.a,{color:"secondary",className:l.addButton,onClick:function(){e.setState({editingFormVisible:!0}),e.onEditingAppointmentChange(void 0),e.onAddedAppointmentChange({startDate:new Date(a).setHours(o),endDate:new Date(a).setHours(o+1)})},children:Object(n.jsx)(bt.a,{})})})]})}}]),a}(c.PureComponent),Tt=(Object(nt.a)((function(e){return{addButton:{width:50,height:50,position:"absolute",right:"30%"}}}),{name:"EditingDemo"})(kt),[{month:"12",population:35},{month:"11",population:30},{month:"10",population:36},{month:"9",population:35},{month:"8",population:35},{month:"7",population:38},{month:"6",population:34},{month:"5",population:33},{month:"4",population:31},{month:"3",population:28},{month:"2",population:33},{month:"1",population:38}]),Dt=function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={data:Tt},n}return Object(Fe.a)(a,[{key:"render",value:function(){var e=this.state.data;return Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(Ve.c,{height:500,data:e,rotated:!0,children:[Object(n.jsx)(Ve.a,{}),Object(n.jsx)(Ve.i,{max:7}),Object(n.jsx)(Ve.b,{valueField:"population",argumentField:"month"}),Object(n.jsx)(Ve.g,{text:"S\u1ed1 l\u01b0\u1ee3ng nh\xe2n s\u1ef1  (2021)"}),Object(n.jsx)(Ue.a,{})]})})}}]),a}(c.PureComponent),It=(new Date(2015,10,15),new Date(2015,11,17),new Date(2016,0,16),new Date(2016,1,21),new Date(2016,3,25),new Date(2016,4,29),new Date(2016,5,20),new Date(2016,7,5),new Date(2016,8,14),new Date(2016,9,30),new Date(2016,11,21),new Date(2017,0,8),new Date(2017,1,9),new Date(2017,2,9),new Date(2017,3,6),new Date(2017,4,4),new Date(2017,5,11),new Date(2017,6,19),new Date(2017,7,18),new Date(2017,8,19),new Date(2017,9,19),new Date(2017,10,14),new Date(2017,11,22),new Date(2018,0,23),new Date(2018,1,10),new Date(2018,2,6),new Date(2018,3,7),new Date(2018,4,9),new Date(2018,5,6),new Date(2018,6,18),[{month:1,validCheckIn:0,count_Dmvs:0,absent:32,pending:5},{month:2,validCheckIn:0,count_Dmvs:0,absent:33,pending:20},{month:3,validCheckIn:0,count_Dmvs:0,absent:30,pending:30},{month:4,validCheckIn:0,count_Dmvs:0,absent:34,pending:25},{month:5,validCheckIn:0,count_Dmvs:0,absent:32,pending:33},{month:6,validCheckIn:0,count_Dmvs:0,absent:48,pending:40},{month:7,validCheckIn:0,count_Dmvs:0,absent:41,pending:50},{month:8,validCheckIn:0,count_Dmvs:0,absent:45,pending:60},{month:9,validCheckIn:0,count_Dmvs:0,absent:44,pending:45},{month:10,validCheckIn:0,count_Dmvs:0,absent:44,pending:35},{month:11,validCheckIn:0,count_Dmvs:0,absent:44,pending:33},{month:12,validCheckIn:0,count_Dmvs:0,absent:44,pending:22}]),Nt=[{country:"USA",hydro:59.8,oil:937.6,gas:582,coal:564.3,nuclear:187.9},{country:"China",hydro:74.2,oil:308.6,gas:35.1,coal:956.9,nuclear:11.3},{country:"Russia",hydro:40,oil:128.5,gas:361.8,coal:105,nuclear:32.4},{country:"Japan",hydro:22.6,oil:241.5,gas:64.9,coal:120.8,nuclear:64.8},{country:"India",hydro:19,oil:119.3,gas:28.9,coal:204.8,nuclear:3.8},{country:"Germany",hydro:6.1,oil:123.6,gas:77.3,coal:85.7,nuclear:37.8}],Et=Object(nt.a)((function(){return{root:{display:"flex",margin:"auto",flexDirection:"row"}}}),{name:"LegendRoot"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Root,Object(d.a)(Object(d.a)({},a),{},{className:t.root}))})),At=Object(nt.a)((function(){return{label:{whiteSpace:"nowrap"}}}),{name:"LegendLabel"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Label,Object(d.a)({className:t.label},a))})),Rt=(c.PureComponent,a(782)),Pt=a(783),Lt=a(785),Wt=a(787),Ht=a(788),zt=a(784),Mt=a(786),Bt=Object(A.a)((function(e){return{paper:{padding:"6px 16px"},secondaryTail:{backgroundColor:e.palette.secondary.main}}})),Ft=function(){Bt();return Object(n.jsx)("div",{children:Object(n.jsxs)(Ge.a,{style:{padding:"10px",minHeight:"390px",maxHeight:"1000px"},children:[Object(n.jsx)("h2",{style:{margin:"0px"},children:"S\u1ef1 ki\u1ec7n"}),Object(n.jsx)("span",{children:"S\u1ef1 ki\u1ec7n g\u1ea7n \u0111\xe2y"}),Object(n.jsxs)(Rt.a,{align:"alternate",children:[Object(n.jsxs)(Pt.a,{children:[Object(n.jsx)(zt.a,{children:Object(n.jsx)(ce.a,{color:"textSecondary",children:"09:30 am"})}),Object(n.jsxs)(Lt.a,{children:[Object(n.jsx)(Mt.a,{}),Object(n.jsx)(Wt.a,{})]}),Object(n.jsx)(Ht.a,{children:Object(n.jsx)(ce.a,{children:"Eat"})})]}),Object(n.jsxs)(Pt.a,{children:[Object(n.jsx)(zt.a,{children:Object(n.jsx)(ce.a,{color:"textSecondary",children:"10:00 am"})}),Object(n.jsxs)(Lt.a,{children:[Object(n.jsx)(Mt.a,{}),Object(n.jsx)(Wt.a,{})]}),Object(n.jsx)(Ht.a,{children:Object(n.jsx)(ce.a,{children:"Code"})})]}),Object(n.jsxs)(Pt.a,{children:[Object(n.jsx)(zt.a,{children:Object(n.jsx)(ce.a,{color:"textSecondary",children:"12:00 am"})}),Object(n.jsxs)(Lt.a,{children:[Object(n.jsx)(Mt.a,{}),Object(n.jsx)(Wt.a,{})]}),Object(n.jsx)(Ht.a,{children:Object(n.jsx)(ce.a,{children:"Sleep"})})]}),Object(n.jsxs)(Pt.a,{children:[Object(n.jsx)(zt.a,{children:Object(n.jsx)(ce.a,{color:"textSecondary",children:"9:00 am"})}),Object(n.jsxs)(Lt.a,{children:[Object(n.jsx)(Mt.a,{}),Object(n.jsx)(Wt.a,{})]}),Object(n.jsx)(Ht.a,{children:Object(n.jsx)(ce.a,{children:"Repeat"})})]})]})]})})},_t=(new Date(2015,10,15),new Date(2015,11,17),new Date(2016,0,16),new Date(2016,1,21),new Date(2016,3,25),new Date(2016,4,29),new Date(2016,5,20),new Date(2016,7,5),new Date(2016,8,14),new Date(2016,9,30),new Date(2016,11,21),new Date(2017,0,8),new Date(2017,1,9),new Date(2017,2,9),new Date(2017,3,6),new Date(2017,4,4),new Date(2017,5,11),new Date(2017,6,19),new Date(2017,7,18),new Date(2017,8,19),new Date(2017,9,19),new Date(2017,10,14),new Date(2017,11,22),new Date(2018,0,23),new Date(2018,1,10),new Date(2018,2,6),new Date(2018,3,7),new Date(2018,4,9),new Date(2018,5,6),new Date(2018,6,18),[{department:"HR",male:36,female:38},{department:"KT",male:51,female:21},{department:"DS",male:30,female:35}]),Kt=[{state:"1",come:6.7,out:28.6},{state:"2",come:9.6,out:43},{state:"3",come:13.5,out:49},{state:"4",come:30,out:90.3},{state:"5",come:30,out:90.3},{state:"6",come:30,out:90.3},{state:"7",come:30,out:90.3},{state:"8",come:30,out:90.3},{state:"9",come:30,out:90.3},{state:"10",come:30,out:90.3},{state:"11",come:30,out:90.3},{state:"12",come:30,out:90.3}],Gt=Object(nt.a)((function(){return{root:{display:"flex",margin:"auto",flexDirection:"row"}}}),{name:"LegendRoot"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Root,Object(d.a)(Object(d.a)({},a),{},{className:t.root}))})),Vt=Object(nt.a)((function(){return{label:{whiteSpace:"nowrap"}}}),{name:"LegendLabel"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Label,Object(d.a)({className:t.label},a))})),Ut=function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={data:_t},n}return Object(Fe.a)(a,[{key:"render",value:function(){this.state.data;return Object(n.jsx)(Ge.a,{style:{width:450},children:Object(n.jsxs)(Ve.c,{data:this.props.data,children:[Object(n.jsx)(Ve.a,{}),Object(n.jsx)(Ve.i,{}),Object(n.jsx)(Ve.b,{name:"Nam",valueField:"male",argumentField:"department",color:"rgb(60, 141, 188)"}),Object(n.jsx)(Ve.b,{name:"N\u1eef",valueField:"female",argumentField:"department",color:"#F88DAD"}),Object(n.jsx)(Ue.a,{}),Object(n.jsx)(Ve.d,{position:"bottom",rootComponent:Gt,labelComponent:Vt}),Object(n.jsx)(Ve.g,{text:"Nh\xe2n s\u1ef1 ph\xf2ng ban"}),Object(n.jsx)(Ue.n,{})]})})}}]),a}(c.PureComponent),Yt=a(685),qt=a(769),Xt=a(116),Jt=a.n(Xt),Qt=a(811),Zt=a(812),$t=a(789),ea=a(790),ta=Object(A.a)((function(e){return{root:{width:"100%"},heading:{fontSize:e.typography.pxToRem(15),fontWeight:e.typography.fontWeightRegular}}})),aa=function(){var e=Object(c.useState)(!1),t=Object(E.a)(e,2),a=(t[0],t[1],Object(c.useState)(!1)),i=Object(E.a)(a,2),r=(i[0],i[1],Object(c.useState)(!1)),o=Object(E.a)(r,2),s=(o[0],o[1],ta());return Object(n.jsxs)(Ge.a,{style:{padding:10,minHeight:"390px",maxHeight:"1000px"},children:[Object(n.jsx)("h2",{style:{margin:"0px"},children:"Nh\u1eafc vi\u1ec7c"}),Object(n.jsx)("br",{}),Object(n.jsx)("div",{style:{display:"flex"},children:Object(n.jsxs)(Zt.a,{style:{boxShadow:"none"},children:[Object(n.jsxs)($t.a,{expandIcon:Object(n.jsx)(Jt.a,{}),"aria-controls":"panel1a-content",id:"panel1a-header",children:[Object(n.jsx)(ce.a,{className:s.heading,style:{paddingTop:"4px",paddingRight:"8px",fontWeight:"bold"},children:"1. Nh\xe2n vi\xean \u0111\xe3 h\u1ebft h\u1ea1n h\u1ee3p \u0111\u1ed3ng"}),Object(n.jsx)(Qt.a,{label:"2",color:"secondary"})]}),Object(n.jsx)(ea.a,{children:Object(n.jsxs)(ce.a,{children:[Object(n.jsx)(Yt.a,{children:Object(n.jsx)(qt.a,{primary:"L\xea Tr\u1ecdng Tr\xed",secondary:"02/01/2021"})}),Object(n.jsx)(Yt.a,{children:Object(n.jsx)(qt.a,{primary:"Tr\u1ea7n \u0110\u1ee9c Giang",secondary:"02/02/2021"})})]})})]})}),Object(n.jsx)("div",{style:{display:"flex"},children:Object(n.jsxs)(Zt.a,{style:{boxShadow:"none"},children:[Object(n.jsxs)($t.a,{expandIcon:Object(n.jsx)(Jt.a,{}),"aria-controls":"panel1a-content",id:"panel1a-header",children:[Object(n.jsx)(ce.a,{className:s.heading,style:{paddingTop:"4px",paddingRight:"8px",fontWeight:"bold"},children:"2. Nh\xe2n vi\xean s\u1eafp h\u1ebft h\u1ea1n h\u1ee3p \u0111\u1ed3ng"}),Object(n.jsx)(Qt.a,{label:"2",color:"secondary"})]}),Object(n.jsx)(ea.a,{children:Object(n.jsxs)(ce.a,{children:[Object(n.jsx)(Yt.a,{children:Object(n.jsx)(qt.a,{primary:"L\xea Tr\u1ecdng Tr\xed",secondary:"05/01/2021"})}),Object(n.jsx)(Yt.a,{children:Object(n.jsx)(qt.a,{primary:"Tr\u1ea7n \u0110\u1ee9c Giang",secondary:"08/02/2021"})})]})})]})}),Object(n.jsx)("div",{style:{display:"flex"},children:Object(n.jsxs)(Zt.a,{style:{boxShadow:"none"},children:[Object(n.jsxs)($t.a,{expandIcon:Object(n.jsx)(Jt.a,{}),"aria-controls":"panel1a-content",id:"panel1a-header",children:[Object(n.jsx)(ce.a,{className:s.heading,style:{paddingTop:"4px",paddingRight:"8px",fontWeight:"bold"},children:"3. Sinh nh\u1eadt"}),Object(n.jsx)(Qt.a,{label:"1",color:"secondary"})]}),Object(n.jsx)(ea.a,{children:Object(n.jsx)(ce.a,{children:Object(n.jsx)(Yt.a,{children:Object(n.jsx)(qt.a,{primary:"L\xea Tr\u1ecdng Tr\xed",secondary:"19/10"})})})})]})})]})},na=function(e){var t=Object(T.g)(),a=Object(fe.b)().enqueueSnackbar,i=Object(c.useState)([]),r=Object(E.a)(i,2),o=r[0],s=r[1],l=Object(c.useState)([]),d=Object(E.a)(l,2),j=d[0],b=d[1],u=Object(c.useState)([]),h=Object(E.a)(u,2),O=h[0],p=h[1],m=function(){var e=Object(N.a)(I.a.mark((function e(){var n,c,i,r,o,l;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Se({year:Object(J.h)(new Date),month:Object(J.f)(new Date)}),Le({depCode:"KT"}),Le({depCode:"HR"}),ze({fromDate:Object(J.a)(new Date)})]);case 2:n=e.sent,c=Object(E.a)(n,4),i=c[0],r=c[1],o=c[2],l=c[3],i.data&&0==i.data.errorCode?(b([{department:"KT",male:r.data.data.maleNumber,female:r.data.data.femaleNumber},{department:"HR",male:o.data.data.maleNumber,female:o.data.data.femaleNumber}]),s([{region:"Ch\u1edd x\u1eed l\xfd",val:i.data.data.pending},{region:"\u0110\xe3 x\u1eed l\xfd",val:i.data.data.processed},{region:"Ch\u1ea5p nh\u1eadn",val:i.data.data.approved},{region:"T\u1eeb ch\u1ed1i",val:i.data.data.rejected}]),p([{region:"\u0110\xe3 checkin",val:l.data.data.checkInEd},{region:"\u0110\xfang gi\u1edd",val:l.data.data.onTime},{region:"\u0110i mu\u1ed9n",val:l.data.data.late},{region:"Ch\u01b0a checkin",val:l.data.data.notCheckIn}])):403==i.status||401==i.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){t.push("/")}),100)):a("Error!",{variant:"error"});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(c.useEffect)((function(){m()}),[]),Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{xs:12,item:!0,children:Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{xs:12,sm:6,item:!0,children:Object(n.jsx)(qe,{data:o,color:"",title:"\u0110\u01a1n t\u1eeb"})}),Object(n.jsx)(R.a,{xs:12,sm:6,item:!0,children:Object(n.jsx)(qe,{data:O,color:"CheckIn",title:"Ch\u1ea5m c\xf4ng"})})]})}),Object(n.jsx)(R.a,{xs:12,item:!0,children:Object(n.jsxs)(R.a,{container:!0,xs:12,spacing:3,children:[Object(n.jsx)(R.a,{xs:12,sm:5,item:!0,children:Object(n.jsx)(Ut,{data:j})}),Object(n.jsx)(R.a,{xs:12,sm:7,item:!0,children:Object(n.jsx)(Dt,{})})]})}),Object(n.jsx)(R.a,{xs:12,sm:12,item:!0,children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{xs:8,sm:8,item:!0,children:Object(n.jsx)(aa,{})}),Object(n.jsx)(R.a,{xs:4,sm:4,item:!0,children:Object(n.jsx)(Ft,{})})]})})]})},ca=a(5),ia=a(47),ra=a(792),oa=a(793),sa=a(764),la=a(791),da=a(768),ja=a(794),ba=a(686),ua=a(795),ha=a(776),Oa=a(805),pa=a(386),ma=a.n(pa),xa=a(387),ga=a.n(xa),fa=a(382),va=a.n(fa),ya=a(388),Ca=a.n(ya),wa=a(389),Sa=a.n(wa),ka=a(384),Ta=a.n(ka),Da=a(385),Ia=a.n(Da),Na=a(173),Ea=a.n(Na);var Aa=a(383),Ra=a.n(Aa),Pa=a(813),La=a(692),Wa=a(381),Ha=a.n(Wa),za=a(380),Ma=a.n(za),Ba=a(379),Fa=a.n(Ba),_a=Object(A.a)((function(e){return{typography:{padding:e.spacing(2)}}}));function Ka(){_a();var e=i.a.useState(null),t=Object(E.a)(e,2),a=t[0],c=t[1],r=Object(T.g)(),o=Boolean(a),s=o?"simple-popover":void 0;return Object(n.jsxs)("div",{children:[Object(n.jsx)(z.a,{"aria-describedby":s,color:"primary",onClick:function(e){c(e.currentTarget)},children:Object(n.jsx)(Pa.a,{alt:"Remy Sharp",src:"/asset/avatar.jpg"})}),Object(n.jsx)(La.a,{id:s,open:o,anchorEl:a,onClose:function(){c(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:Object(n.jsxs)(sa.a,{component:"nav","aria-label":"main mailbox folders",children:[Object(n.jsxs)(Yt.a,{button:!0,children:[Object(n.jsx)(la.a,{children:Object(n.jsx)(Fa.a,{})}),Object(n.jsx)(qt.a,{primary:"\u0110\u1ed5i m\u1eadt kh\u1ea9u"})]}),Object(n.jsxs)(Yt.a,{button:!0,children:[Object(n.jsx)(la.a,{children:Object(n.jsx)(Ma.a,{})}),Object(n.jsx)(qt.a,{primary:"C\xe0i \u0111\u1eb7t"})]}),Object(n.jsxs)(Yt.a,{button:!0,onClick:function(){localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),r.push("/")},children:[Object(n.jsx)(la.a,{children:Object(n.jsx)(Ha.a,{})}),Object(n.jsx)(qt.a,{primary:"\u0110\u0103ng xu\u1ea5t",style:{color:"red"}})]})]})})]})}var Ga={main:"#3c8dbc"},Va=(a(466),240),Ua=Object(A.a)((function(e){return{root:{display:"flex"},drawer:Object(Xe.a)({},e.breakpoints.up("sm"),{width:Va,flexShrink:0}),appBar:Object(Xe.a)({},e.breakpoints.up("sm"),{width:"calc(100% - ".concat(Va,"px)"),marginLeft:Va}),menuButton:Object(Xe.a)({marginRight:e.spacing(2)},e.breakpoints.up("sm"),{display:"none"}),toolbar:e.mixins.toolbar,drawerPaper:{width:Va},content:{flexGrow:1,padding:e.spacing(3)},toolbarLogo:Object(d.a)(Object(d.a)({},e.mixins.toolbar),{},{backgroundColor:Ga.main,justifyContent:"center",alignItems:"center",paddingTop:8,position:"sticky"})}}));var Ya=Object(s.b)((function(e){return{user:e.userReducer,menuReducer:e.menuReducer}}),{updateMenuCheckIn:function(e){return{type:b,data:e}},updateMenuDepartment:function(e){return{type:u,data:e}},updateMenuEmployee:function(e){return{type:h,data:e}},updateMenuReport:function(e){return{type:p,data:e}},updateMenuSalary:function(e){return{type:O,data:e}},updateMenuLetter:function(e){return{type:m,data:e}}})((function(e){var t=e.window,a=Ua(),r=Object(ia.a)(),o=i.a.useState(!1),s=Object(E.a)(o,2),l=s[0],d=s[1],j=i.a.useState(!1),b=Object(E.a)(j,2),u=b[0],h=(b[1],Object(c.useState)("")),O=Object(E.a)(h,2),p=O[0],m=O[1],x=Object(T.h)(),g=e.menuReducer,f=g.openCheckIn,v=(g.openDepartment,g.openEmployee,g.openSalary,g.openReport),y=(g.openLetter,function(){d(!l)}),C=function(e,t,a){if(x.pathname==e||x.pathname==t||x.pathname==a)return"activeMenu"},w=function(e,t,a){if(x.pathname==e||x.pathname==t||x.pathname==a)return"activeHeadMenu"};Object(c.useEffect)((function(){var e=JSON.parse(localStorage.getItem("user"));m(e.name)}),[]);var S=Object(n.jsxs)("div",{children:[Object(n.jsx)(ra.a,{position:"fixed",className:a.toolbarLogo,children:Object(n.jsx)("img",{src:"/asset/logodcv.png",style:{width:100,display:"block"}})}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(sa.a,{children:[Object(n.jsxs)(je.b,{to:"/home",underline:"hover",style:{textDecoration:"none",color:"black"},children:[Object(n.jsxs)(Yt.a,{button:!0,className:C("/home"),children:[Object(n.jsx)(la.a,{className:C("/home"),children:Object(n.jsx)(va.a,{})}),Object(n.jsx)(qt.a,{primary:"Trang ch\u1ee7"})]}),Object(n.jsx)(oa.a,{})]}),Object(n.jsxs)(je.b,{to:"/letter",underline:"hover",style:{textDecoration:"none",color:"black"},children:[Object(n.jsxs)(Yt.a,{button:!0,className:C("/letter"),children:[Object(n.jsx)(la.a,{className:C("/letter"),children:Object(n.jsx)(de.a,{})}),Object(n.jsx)(qt.a,{primary:"\u0110\u01a1n t\u1eeb"})]}),Object(n.jsx)(oa.a,{})]}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(Yt.a,{button:!0,onClick:function(){return e.updateMenuCheckIn(!f)},className:w("/timekeeping/setup","/timekeeping"),children:[Object(n.jsx)(la.a,{className:w("/timekeeping/setup","/timekeeping"),children:Object(n.jsx)(Ra.a,{})}),Object(n.jsx)(qt.a,{primary:"Ch\u1ea5m c\xf4ng"}),f?Object(n.jsx)(Ea.a,{}):Object(n.jsx)(Jt.a,{})]}),Object(n.jsx)(da.a,{in:f,timeout:"Inbox",unmountOnExit:!0,children:Object(n.jsxs)(sa.a,{component:"div",disablePadding:!0,children:[Object(n.jsx)(oa.a,{}),Object(n.jsx)(je.b,{to:"/timekeeping/setup",underline:"hover",style:{textDecoration:"none",color:"black"},children:Object(n.jsxs)(Yt.a,{button:!0,className:C("/timekeeping/setup"),children:[Object(n.jsx)(la.a,{}),Object(n.jsx)(qt.a,{primary:"Thi\u1ebft l\u1eadp"})]})}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(je.b,{to:"/timekeeping",underline:"hover",style:{textDecoration:"none",color:"black"},children:Object(n.jsxs)(Yt.a,{button:!0,className:C("/timekeeping"),children:[Object(n.jsx)(la.a,{}),Object(n.jsx)(qt.a,{primary:"Danh s\xe1ch"})]})}),Object(n.jsx)(oa.a,{})]})}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(je.b,{to:"/department/report",underline:"hover",style:{textDecoration:"none",color:"black"},children:[Object(n.jsxs)(Yt.a,{button:!0,className:C("/department/report"),children:[Object(n.jsx)(la.a,{className:C("/department/report"),children:Object(n.jsx)(Ta.a,{})}),Object(n.jsx)(qt.a,{primary:"Ph\xf2ng ban"})]}),Object(n.jsx)(oa.a,{})]}),Object(n.jsxs)(je.b,{to:"/employee",underline:"hover",style:{textDecoration:"none",color:"black"},children:[Object(n.jsxs)(Yt.a,{button:!0,className:C("/employee","/employee/createemployee"),children:[Object(n.jsx)(la.a,{className:C("/employee","/employee/createemployee"),children:Object(n.jsx)(re.a,{})}),Object(n.jsx)(qt.a,{primary:"Nh\xe2n vi\xean"})]}),Object(n.jsx)(oa.a,{})]}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(Yt.a,{button:!0,onClick:function(){return e.updateMenuReport(!v)},className:w("/letterreport","/timekeeping/report","/reportemployee"),children:[Object(n.jsx)(la.a,{className:w("/letterreport","/timekeeping/report","/reportemployee"),children:Object(n.jsx)(Ia.a,{})}),Object(n.jsx)(qt.a,{primary:"B\xe1o c\xe1o",className:w("/letterreport","/timekeeping/report","/reportemployee")}),v?Object(n.jsx)(Ea.a,{}):Object(n.jsx)(Jt.a,{})]}),Object(n.jsx)(da.a,{in:v,timeout:"auto",unmountOnExit:!0,children:Object(n.jsxs)(sa.a,{component:"div",disablePadding:!0,children:[Object(n.jsx)(oa.a,{}),Object(n.jsx)(je.b,{to:"/letterreport",underline:"hover",style:{textDecoration:"none",color:"black"},children:Object(n.jsxs)(Yt.a,{button:!0,className:C("/letterreport"),children:[Object(n.jsx)(la.a,{}),Object(n.jsx)(qt.a,{primary:"B\xe1o c\xe1o \u0111\u01a1n t\u1eeb"})]})}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(je.b,{to:"/timekeeping/report",underline:"hover",style:{textDecoration:"none",color:"black"},children:Object(n.jsxs)(Yt.a,{button:!0,className:C("/timekeeping/report"),children:[Object(n.jsx)(la.a,{}),Object(n.jsx)(qt.a,{primary:"B\xe1o c\xe1o ch\u1ea5m c\xf4ng"})]})}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(je.b,{to:"/reportemployee",underline:"hover",style:{textDecoration:"none",color:"black"},children:Object(n.jsxs)(Yt.a,{button:!0,className:C("/reportemployee"),children:[Object(n.jsx)(la.a,{}),Object(n.jsx)(qt.a,{primary:"B\xe1o c\xe1o nh\xe2n vi\xean"})]})})]})}),Object(n.jsx)(oa.a,{})]})]}),k=void 0!==t?function(){return t().document.body}:void 0;return Object(n.jsxs)("div",{className:a.root,children:[Object(n.jsx)(ja.a,{}),Object(n.jsx)(ra.a,{position:"fixed",className:Object(ca.a)(a.appBar,Object(Xe.a)({},a.appBarShift,u)),style:{backgroundColor:"#3c8dbc"},children:Object(n.jsx)(ba.a,{children:Object(n.jsxs)("div",{style:{flex:1,display:"flex",justifyContent:"space-between",flexDirection:"row"},children:[Object(n.jsx)(dt.a,{color:"inherit","aria-label":"open drawer",edge:"start",onClick:y,className:a.menuButton,children:Object(n.jsx)(ma.a,{})}),Object(n.jsx)("div",{}),Object(n.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center"},children:[Object(n.jsx)(Yt.a,{button:!0,children:Object(n.jsx)(dt.a,{"aria-label":"delete",className:a.margin,size:"small",children:Object(n.jsx)(ua.a,{badgeContent:4,color:"error",children:Object(n.jsx)(ga.a,{fontSize:"small",style:{color:"white"}})})})}),Object(n.jsx)(Yt.a,{button:!0,children:Object(n.jsx)(dt.a,{"aria-label":"delete",className:a.margin,size:"small",children:Object(n.jsx)(ua.a,{badgeContent:2,color:"secondary",children:Object(n.jsx)(Ca.a,{fontSize:"small",style:{color:"white"}})})})}),Object(n.jsx)(Yt.a,{button:!0,children:Object(n.jsx)(dt.a,{"aria-label":"delete",className:a.margin,size:"small",children:Object(n.jsx)(ua.a,{badgeContent:0,color:"secondary",children:Object(n.jsx)(Sa.a,{fontSize:"small",style:{color:"white"}})})})}),Object(n.jsxs)(la.a,{style:{justifyContent:"center",alignItems:"center"},children:[Object(n.jsx)(Ka,{}),Object(n.jsx)("div",{children:Object(n.jsx)(ce.a,{style:{textAlign:"center",color:"white"},variant:"caption",noWrap:!0,children:p})})]})]})]})})}),Object(n.jsxs)("nav",{className:a.drawer,"aria-label":"mailbox folders",children:[Object(n.jsx)(Oa.a,{smUp:!0,implementation:"css",children:Object(n.jsx)(ha.a,{container:k,variant:"temporary",anchor:"rtl"===r.direction?"right":"left",open:l,onClose:y,classes:{paper:a.drawerPaper},ModalProps:{keepMounted:!0},children:S})}),Object(n.jsx)(Oa.a,{xsDown:!0,implementation:"css",children:Object(n.jsx)(ha.a,{classes:{paper:a.drawerPaper},variant:"permanent",open:!0,children:S})})]}),Object(n.jsxs)("main",{className:a.content,children:[Object(n.jsx)("div",{style:{height:50}}),e.children]})]})})),qa=function(e){return Object(n.jsx)(Ya,{children:Object(n.jsx)("div",{styles:{flexGrow:1,backgroundColor:"#f5f5f5"},children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,sm:12,children:Object(n.jsx)(Me,{})}),Object(n.jsx)(R.a,{item:!0,sm:12,children:Object(n.jsx)(na,{})})]})})})},Xa=Object(s.b)((function(e){return{user:e.userReducer}}),{})((function(e){return Object(n.jsx)(qa,{})})),Ja=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)},root:{"& > *":{margin:e.spacing(1),width:"25ch"}},button:{margin:e.spacing(1)}}})),Qa=function(e){var t=i.a.useState(""),a=Object(E.a)(t,2),r=(a[0],a[1],i.a.useState("")),o=Object(E.a)(r,2),s=(o[0],o[1],Object(c.useState)("")),l=Object(E.a)(s,2),d=l[0],j=l[1],b=Ja();return Object(n.jsx)("div",{children:Object(n.jsx)("form",{className:b.root,noValidate:!0,autoComplete:"off",style:{float:"right",marginRight:"15px"},children:Object(n.jsx)(L.a,{id:"standard-basic",label:"T\u1eeb kh\xf3a",value:d,onChange:function(t){j(t.target.value),setTimeout((function(){e.changeSearch(t.target.value),e.changePage(0)}),1e3)}})})})},Za=a(771),$a=a(772),en=a(773),tn=a(796),an=a(774),nn=a(770),cn=a(59),rn=a.n(cn),on=a(48),sn=a.n(on),ln=a(192),dn=a.n(ln),jn=a(803),bn=Object(A.a)({root:{width:"100%"},container:{maxHeight:500},tableHeader:{backgroundColor:"red"}}),un=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a);function hn(e){console.log("table",e.page);var t=bn(),a=i.a.useState(0),r=Object(E.a)(a,2),o=r[0],s=r[1],l=i.a.useState(5),d=Object(E.a)(l,2),j=(d[0],d[1],i.a.useState(!1)),b=Object(E.a)(j,2),u=b[0],h=b[1],O=i.a.useState(""),p=Object(E.a)(O,2),m=p[0],x=p[1],g=i.a.useState(e.page+1),f=Object(E.a)(g,2),v=f[0],y=f[1],C=Object(fe.b)().enqueueSnackbar,w=function(){h(!1)},S=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Re({id:m});case 2:(a=t.sent).data&&0==a.data.errorCode?(C("X\xf3a nh\xe2n vi\xean th\xe0nh c\xf4ng",{variant:"success"}),h(!1),1==e.rows.length&&(s(o-1),y(v-1),e.changePage(o)),e.changeStatusDelete(10*Math.random())):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){k.push("/")}),100)):C("L\u1ed7i",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),k=Object(T.g)();Object(c.useEffect)((function(){y(e.page+1)}),[e.page]);return Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsxs)(ct.a,{open:u,onClose:w,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(n.jsx)(st.a,{id:"alert-dialog-title"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{id:"alert-dialog-description",style:{fontWeight:"bold"},children:"B\u1ea1n c\xf3 th\u1ef1c s\u1ef1 mu\u1ed1n x\xf3a nh\xe2n vi\xean n\xe0y?"})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:w,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:S,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{color:"red",children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(un,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(un,{style:{width:120,textAlign:"center"},children:"Tr\u1ea1ng th\xe1i"}),Object(n.jsx)(un,{style:{minWidth:120,textAlign:"center"},children:"H\xe0nh \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{children:t.status?Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#00A65A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Ho\u1ea1t \u0111\u1ed9ng"})}):Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#FF8C1A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Ngh\u1ec9"})})}),Object(n.jsxs)(en.a,{children:[Object(n.jsx)(dt.a,{onClick:function(){k.push("/detailemployee/".concat(t.id))},"aria-label":"delete",size:"large",style:{color:"rgb(0, 166, 90)"},children:Object(n.jsx)(dn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{onClick:function(){return e=t.id,void k.push("/profile/".concat(e));var e},"aria-label":"delete",size:"large",style:{color:"#3C8DBC"},children:Object(n.jsx)(rn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{onClick:function(){return e=t.id,h(!0),void x(e);var e},"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(sn.a,{fontSize:"inherit"})})]})]},t.code)}))})]})}),Object(n.jsx)(R.a,{container:!0,justify:"center",style:{padding:10},children:Object(n.jsx)(jn.a,{count:Math.ceil(e.totalPage/10),color:"secondary",page:v,onChange:function(t,a){y(a),e.changePage(parseInt(a)-1)}})})]})}var On=[{id:"name",label:"H\u1ecd T\xean",minWidth:170},{id:"phone",label:"\u0110i\u1ec7n tho\u1ea1i",minWidth:170,align:"right",format:function(e){return e.toLocaleString("en-US")}},{id:"email",label:"Email",minWidth:170,align:"right",format:function(e){return e.toLocaleString("en-US")}},{id:"positon",label:"Ch\u1ee9c v\u1ee5",minWidth:170,align:"right",format:function(e){return e.toFixed(2)}},{id:"department",label:"Ph\xf2ng ban",minWidth:170,align:"center",format:function(e){return e.toFixed(2)}}],pn=function(e){var t=e.changeSearch,a=Object(c.useState)([]),i=Object(E.a)(a,2),r=i[0],o=i[1],s=Object(T.g)();return Object(c.useEffect)((function(){var t=[];e.list&&(e.list.forEach((function(e){var a,n,c,i,r,o,s;t.push((a=e._source.Id,n=e._source.FullName,c=e._source.Phone,i=e._source.Email,r=e._source.Description,o=e._source.DepartmentCode,s=e._source.WorkingStatus,{id:a,name:n,phone:c,email:i,positon:r,department:o,status:s}))})),o(t))}),[e.list]),Object(n.jsxs)(Ya,{children:[Object(n.jsxs)("div",{style:{display:"flex",width:"100%"},children:[Object(n.jsx)(ce.a,{variant:"h5",children:"Danh s\xe1ch nh\xe2n vi\xean"}),Object(n.jsx)(z.a,{style:{backgroundColor:"#3C8DBC",color:"white",marginLeft:"auto"},variant:"contained",onClick:function(){s.push("/employee/createemployee")},children:"Th\xeam m\u1edbi"})]}),Object(n.jsx)("br",{}),Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(R.a,{container:!0,spacing:1,children:[Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(Qa,{changeSearch:t,changePage:e.changePage})}),Object(n.jsx)(R.a,{xs:12,item:!0,spacing:1,children:Object(n.jsx)(hn,{rows:r,columns:On,changePage:e.changePage,changeRowPerPage:e.changeRowPerPage,totalPage:e.totalRows,changeStatusDelete:e.changeStatusDelete,page:e.page})})]})})]})},mn=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(0),s=Object(E.a)(o,2),l=s[0],d=s[1],j=Object(c.useState)(5),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(0),p=Object(E.a)(O,2),m=p[0],x=p[1],g=Object(c.useState)(0),f=Object(E.a)(g,2),v=f[0],y=f[1],C=Object(c.useState)(""),w=Object(E.a)(C,2),S=w[0],k=w[1],D=Object(fe.b)().enqueueSnackbar,A=Object(T.g)();Object(c.useEffect)((function(){R()}),[l,u,v,S]);var R=function(){var e=Object(N.a)(I.a.mark((function e(){var t,a;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=S&&""!=S&&void 0!=S){e.next=7;break}return e.next=3,Ee({from:10*l,size:10});case 3:(t=e.sent).data?(r(t.data.hits.hits),x(t.data.hits.total)):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){A.push("/")}),100)):D("Error!",{variant:"error"}),e.next=11;break;case 7:return e.next=9,Ee({from:10*l,size:10,q:S});case 9:(a=e.sent).data?(r(a.data.hits.hits),x(a.data.hits.total)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){A.push("/")}),100)):D("Error!",{variant:"error"});case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.jsx)(pn,{list:i,changePage:function(e){d(e)},changeRowPerPage:function(e){h(e)},totalRows:m,changeStatusDelete:function(e){y(e)},changeSearch:function(e){k(e)},page:l})},xn=a(801),gn=a(804),fn=a(777),vn=Object(A.a)({root:{width:"100%"},container:{maxHeight:500},tableHeader:{backgroundColor:"red"}}),yn=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a);function Cn(e){var t=vn(),a=Object(T.g)(),i=Object(c.useState)(0),r=Object(E.a)(i,2),o=r[0],s=r[1],l=Object(c.useState)(5),j=Object(E.a)(l,2),b=(j[0],j[1],Object(c.useState)(!1)),u=Object(E.a)(b,2),h=u[0],O=u[1],p=Object(c.useState)(!1),m=Object(E.a)(p,2),x=m[0],g=m[1],f=Object(c.useState)(""),v=Object(E.a)(f,2),y=v[0],C=v[1],w=Object(c.useState)(e.pageCurrent),S=Object(E.a)(w,2),k=S[0],D=S[1],A=Object(c.useState)({name:"",phone:"",leaderCode:"",id:"",description:"",code:"",companyCode:""}),P=Object(E.a)(A,2),W=P[0],H=P[1],B=Object(fe.b)().enqueueSnackbar,F=function(){var e=Object(N.a)(I.a.mark((function e(t){var n,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(t),e.next=3,Ne({id:t});case 3:(n=e.sent).data&&0===n.data.errorCode?(c=n.data.data,H(Object(d.a)(Object(d.a)({},W),{},{name:c.name,id:t,phone:c.phone,code:c.code,leaderCode:c.leaderCode,description:c.description,companyCode:c.companyCode})),g(!0)):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){a.push("/")}),1e3)):B("L\u1ed7i",{variant:"error"});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){g(!1)},K=function(){var t=Object(N.a)(I.a.mark((function t(){var n;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ie(W);case 2:(n=t.sent).data&&0===n.data.errorCode?(B("T\u1ea1o m\u1edbi th\xe0nh c\xf4ng",{variant:"success"}),g(!1),e.changeStatusUpdate(10*Math.random())):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){a.push("/")}),100)):B("L\u1ed7i",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),G=function(){O(!1)},V=function(){var t=Object(N.a)(I.a.mark((function t(){var n;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,De({id:y});case 2:(n=t.sent).data&&0==n.data.errorCode?(B("X\xf3a ph\xf2ng ban th\xe0nh c\xf4ng",{variant:"success"}),O(!1),1==e.rows.length&&(s(o-1),D(k-1),e.changePage(o)),e.changeStatusDelete(10*Math.random())):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){a.push("/")}),100)):B("L\u1ed7i",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(c.useEffect)((function(){D(e.pageCurrent)}),[e.pageCurrent]),Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsxs)(ct.a,{fullWidth:"true",maxWidth:"sm",open:x,onClose:_,"aria-labelledby":"max-width-dialog-title",children:[Object(n.jsx)(st.a,{id:"max-width-dialog-title",children:"Th\xf4ng tin ph\xf2ng ban"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{children:Object(n.jsxs)(R.a,{container:!0,spacing:1,children:[Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)(L.a,{label:"T\xean ph\xf2ng ban",value:W.name,fullWidth:!0,onChange:function(e){H(Object(d.a)(Object(d.a)({},W),{},{name:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)(L.a,{label:"Tr\u01b0\u1edfng ph\xf2ng",fullWidth:!0,value:W.leaderCode,onChange:function(e){H(Object(d.a)(Object(d.a)({},W),{},{leaderCode:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)(L.a,{label:"S\u1ed1 \u0111i\u1ec7n tho\u1ea1i",fullWidth:!0,value:W.phone,onChange:function(e){H(Object(d.a)(Object(d.a)({},W),{},{phone:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)(L.a,{label:"M\xf4 t\u1ea3",fullWidth:!0,value:W.description,onChange:function(e){H(Object(d.a)(Object(d.a)({},W),{},{description:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)(L.a,{label:"M\xe3 ph\xf2ng",fullWidth:!0,value:W.code,onChange:function(e){H(Object(d.a)(Object(d.a)({},W),{},{code:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)(L.a,{label:"M\xe3 c\xf4ng ty",fullWidth:!0,value:W.companyCode,onChange:function(e){H(Object(d.a)(Object(d.a)({},W),{},{companyCode:e.target.value}))}})})]})})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:_,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:K,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"C\u1eadp nh\u1eadt"})]})]}),Object(n.jsxs)(ct.a,{open:h,onClose:G,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(n.jsx)(st.a,{id:"alert-dialog-title"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{id:"alert-dialog-description",style:{fontWeight:"bold"},children:"B\u1ea1n c\xf3 th\u1ef1c s\u1ef1 mu\u1ed1n x\xf3a ph\xf2ng ban n\xe0y?"})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:G,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:V,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{color:"red",children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(yn,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(yn,{style:{width:120,textAlign:"center"},children:"Tr\u1ea1ng th\xe1i"}),Object(n.jsx)(yn,{style:{minWidth:120,textAlign:"center"},children:"H\xe0nh \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{children:0==t.isDeleted?Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#00A65A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Ho\u1ea1t \u0111\u1ed9ng"})}):Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#FF8C1A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Ngh\u1ec9"})})}),Object(n.jsxs)(en.a,{children:[Object(n.jsx)(dt.a,{onClick:function(){return F(t.id)},"aria-label":"delete",size:"large",style:{color:"#3C8DBC"},children:Object(n.jsx)(rn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{onClick:function(){return e=t.id,O(!0),void C(e);var e},"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(sn.a,{fontSize:"inherit"})})]})]},t.code)}))})]})}),Object(n.jsx)(R.a,{container:!0,justify:"center",style:{padding:10},children:Object(n.jsx)(jn.a,{count:Math.ceil(e.totalPage/10),color:"secondary",page:k,onChange:function(t,a){D(a),e.changePage(parseInt(a)-1)}})})]})}function wn(e){var t=e.closeCreateView,a=Object(fe.b)().enqueueSnackbar,i=Object(T.g)(),r=Object(c.useState)({name:"",leaderCode:"",phone:"",description:"",code:"",companyCode:""}),o=Object(E.a)(r,2),s=o[0],l=o[1],j=function(){var n=Object(N.a)(I.a.mark((function n(){var c;return I.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ie(s);case 2:(c=n.sent).data&&0===c.data.errorCode?(a("T\u1ea1o m\u1edbi th\xe0nh c\xf4ng",{variant:"success"}),e.changeStatusCreate(10*Math.random()),e.changePage(0),t()):403==c.status||401==c.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){i.push("/")}),100)):a("L\u1ed7i m\xe3 ph\xf2ng ban \u0111\xe3 t\u1ed3n t\u1ea1i ho\u1eb7c sai \u0111\u1ecbnh d\u1ea1ng",{variant:"error"});case 4:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return Object(n.jsx)("div",{children:Object(n.jsxs)(Ge.a,{elevation:3,style:{padding:20},children:[Object(n.jsx)(ce.a,{variant:"h6",gutterBottom:!0,children:"Th\xeam m\u01a1\u0301i pho\u0300ng ban"}),Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{required:!0,id:"leaderCode",name:"leaderCode",label:"T\xean pho\u0300ng ban",fullWidth:!0,autoComplete:"given-name",value:s.name,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{name:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{required:!0,id:"leader",name:"leader",label:"Tr\u01b0\u01a1\u0309ng pho\u0300ng",fullWidth:!0,autoComplete:"family-name",value:s.leaderCode,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{leaderCode:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{required:!0,id:"phone",name:"phone",label:"S\xf4\u0301 \u0111i\xea\u0323n thoa\u0323i",fullWidth:!0,autoComplete:"family-name",value:s.phone,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{phone:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"description",name:"description",label:"M\xf4 ta\u0309",fullWidth:!0,autoComplete:"shipping address-line1",value:s.description,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{description:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"description",name:"description",label:"M\xe3 ph\xf2ng",fullWidth:!0,autoComplete:"shipping address-line1",value:s.code,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{code:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"description",name:"description",label:"M\xe3 c\xf4ng ty",fullWidth:!0,autoComplete:"shipping address-line1",value:s.companyCode,onChange:function(e){l(Object(d.a)(Object(d.a)({},s),{},{companyCode:e.target.value}))}})})]}),Object(n.jsx)(R.a,{container:!0,xs:12,spacing:3,justify:"center",alignItems:"flex-end",style:{marginTop:20},direction:"column",children:Object(n.jsxs)(R.a,{item:!0,xs:12,sm:6,children:[Object(n.jsx)(z.a,{variant:"contained",color:"secondary",onClick:t,children:"Hu\u0309y"}),Object(n.jsx)(z.a,{onClick:j,variant:"contained",style:{backgroundColor:"green",marginLeft:30,color:"white"},children:"Ta\u0323o"})]})})]})})}var Sn=function(e){var t=Object(c.useState)(!1),a=Object(E.a)(t,2),i=a[0],r=a[1];return Object(n.jsx)("div",{children:i?Object(n.jsx)(wn,{changeStatusCreate:e.changeStatusCreate,changePage:e.changePage,closeCreateView:function(){r(!1)}}):Object(n.jsx)("div",{style:{flexGrow:1},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:6}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{padding:10},children:[Object(n.jsx)(ce.a,{variant:"h5"}),Object(n.jsx)(z.a,{onClick:function(){return r(!0)},style:{backgroundColor:"#3C8DBC",color:"white"},variant:"contained",children:"Th\xeam m\u1edbi"})]})})]})})})},kn=a(233),Tn=a.n(kn),Dn=a(806),In=a(800),Nn=new In.a,En=new In.a,An=function(e){return Nn.next({draggedNodeId:e})},Rn=function(){return Nn.next()},Pn=function(){return Nn.asObservable()},Ln=function(e){return En.next({selectedNodeId:e})},Wn=function(){return En.next()},Hn=function(){return En.asObservable()},zn=a(275),Mn=a.n(zn),Bn=a(281),Fn=(a(483),function e(t){var a=t.datasource,i=t.NodeTemplate,r=t.draggable,o=t.collapsible,s=t.multipleSelect,l=t.changeHierarchy,j=t.onClickNode,b=Object(c.useRef)(),u=Object(c.useState)(!1),h=Object(E.a)(u,2),O=h[0],p=h[1],m=Object(c.useState)(),x=Object(E.a)(m,2),g=x[0],f=x[1],v=Object(c.useState)(),y=Object(E.a)(v,2),w=y[0],S=y[1],k=Object(c.useState)(),T=Object(E.a)(k,2),D=T[0],I=T[1],N=Object(c.useState)(),A=Object(E.a)(N,2),R=A[0],P=A[1],L=Object(c.useState)(!1),W=Object(E.a)(L,2),H=W[0],z=W[1],M=Object(c.useState)(!1),B=Object(E.a)(M,2),F=B[0],_=B[1],K=["oc-node",O?"isChildrenCollapsed":"",H?"allowedDrop":"",F?"selected":""].filter((function(e){return e})).join(" ");Object(c.useEffect)((function(){var e=Pn().subscribe((function(e){z(!!e&&!document.querySelector("#"+e.draggedNodeId).closest("li").querySelector("#"+b.current.id))})),t=Hn().subscribe((function(e){e?s?e.selectedNodeId===a.id&&_(!0):_(e.selectedNodeId===a.id):_(!1)}));return function(){e.unsubscribe(),t.unsubscribe()}}),[s,a]);var G=function e(t){var a=t.parentNode.closest("li");if(a)if(a.firstChild.classList.contains("hidden"))t.classList.remove("isAncestorsCollapsed"),a.firstChild.classList.remove("hidden");else{var n,c=Array.from(t.parentNode.children).some((function(e){return e.classList.contains("hidden")}));c||V(t),(n=t.classList).add.apply(n,Object(C.a)(("isAncestorsCollapsed"+(c?"":" isSiblingsCollapsed")).split(" "))),a.firstChild.classList.add("hidden"),a.parentNode.closest("li")&&!a.parentNode.closest("li").firstChild.classList.contains("hidden")&&e(a)}},V=function(e){var t=e.previousSibling,a=Array.from(e.parentNode.children).some((function(e){return e.classList.contains("hidden")}));for(e.classList.toggle("isSiblingsCollapsed",!a);t;)a?t.classList.remove("hidden"):t.classList.add("hidden"),t=t.previousSibling;for(t=e.nextSibling;t;)a?t.classList.remove("hidden"):t.classList.add("hidden"),t=t.nextSibling;e.parentNode.closest("li").firstChild.classList.contains("hidden")&&G(e)},U=function(e){e.stopPropagation(),P(!R),S(!w),V(e.target.closest("li"))};return Object(n.jsxs)("li",{className:"oc-hierarchy",children:[Object(n.jsxs)("div",{ref:b,id:a.id,className:K,draggable:r?"true":void 0,onClick:function(e){j&&j(a),Ln(a.id)},onDragStart:function(e){var t,n=Object(d.a)({},a);delete n.relationship,e.dataTransfer.setData("text/plain",JSON.stringify(n)),t=b.current.id,An(t)},onDragOver:function(e){e.preventDefault()},onDragEnd:function(){Rn()},onDrop:function(e){e.currentTarget.classList.contains("allowedDrop")&&(Rn(),l(JSON.parse(e.dataTransfer.getData("text/plain")),e.currentTarget.id))},onMouseEnter:function(e){var t=e.target.closest("li"),a=t.parentNode.closest("li"),n=t&&a?a.firstChild.classList.contains("hidden"):void 0,c=Array.from(t.parentNode.children).some((function(e){return e.classList.contains("hidden")}));f(!n),S(!c),P(!c),I(!O)},onMouseLeave:function(){f(void 0),S(void 0),I(void 0),P(void 0)},children:[i?Object(n.jsx)(i,{nodeData:a}):Object(n.jsxs)(n.Fragment,{children:[Object(n.jsxs)("div",{className:"oc-heading",children:[a.relationship&&"1"===a.relationship.charAt(2)&&Object(n.jsx)("i",{className:"oci oci-leader oc-symbol"}),a.name]}),Object(n.jsx)("div",{className:"oc-content",children:a.title})]}),o&&a.relationship&&"1"===a.relationship.charAt(0)&&Object(n.jsx)("i",{className:"oc-edge verticalEdge topEdge oci ".concat(void 0===g?"":g?"oci-chevron-down":"oci-chevron-up"),onClick:function(e){e.stopPropagation(),f(!g),G(e.target.closest("li"))}}),o&&a.relationship&&"1"===a.relationship.charAt(1)&&Object(n.jsxs)(n.Fragment,{children:[Object(n.jsx)("i",{className:"oc-edge horizontalEdge rightEdge oci ".concat(void 0===w?"":w?"oci-chevron-left":"oci-chevron-right"),onClick:U}),Object(n.jsx)("i",{className:"oc-edge horizontalEdge leftEdge oci ".concat(void 0===R?"":R?"oci-chevron-right":"oci-chevron-left"),onClick:U})]}),o&&a.relationship&&"1"===a.relationship.charAt(2)&&Object(n.jsx)("i",{className:"oc-edge verticalEdge bottomEdge oci ".concat(void 0===D?"":D?"oci-chevron-up":"oci-chevron-down"),onClick:function(e){e.stopPropagation(),p(!O),I(!D)}})]}),a.children&&a.children.length>0&&Object(n.jsx)("ul",{className:O?"hidden":"",children:a.children.map((function(t){return Object(n.jsx)(e,{datasource:t,NodeTemplate:i,id:t.id,draggable:r,collapsible:o,multipleSelect:s,changeHierarchy:l,onClickNode:j},t.id)}))})]})});Fn.defaultProps={draggable:!1,collapsible:!0,multipleSelect:!1};var _n=Fn,Kn=(a(484),Object(c.forwardRef)((function(e,t){var a=e.datasource,i=e.pan,r=e.zoom,o=e.zoomoutLimit,s=e.zoominLimit,l=e.containerClass,j=e.chartClass,b=e.NodeTemplate,u=e.draggable,h=e.collapsible,O=e.multipleSelect,p=e.onClickNode,m=e.onClickChart,x=Object(c.useRef)(),g=Object(c.useRef)(),f=Object(c.useRef)(),v=Object(c.useState)(0),y=Object(E.a)(v,2),C=y[0],w=y[1],S=Object(c.useState)(0),k=Object(E.a)(S,2),T=k[0],D=k[1],A=Object(c.useState)(""),R=Object(E.a)(A,2),P=R[0],L=R[1],W=Object(c.useState)(!1),H=Object(E.a)(W,2),z=H[0],M=H[1],B=Object(c.useState)("default"),F=Object(E.a)(B,2),_=F[0],K=F[1],G=Object(c.useState)(!1),V=Object(E.a)(G,2),U=V[0],Y=V[1],q=Object(c.useState)(""),X=Object(E.a)(q,2),J=X[0],Q=X[1],Z=Object(c.useState)(""),$=Object(E.a)(Z,2),ee=$[0],te=$[1],ae=Object(c.useState)(a),ne=Object(E.a)(ae,2),ce=ne[0],ie=ne[1];Object(c.useEffect)((function(){ie(a)}),[a]);var re=new Tn.a(a,"id","children"),oe=function(){var e=Object(N.a)(I.a.mark((function e(t,a){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,re.removeNode(t.id);case 2:return e.next=4,re.addChildren(a,t);case 4:ie(Object(d.a)({},re.ds));case 5:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}();return Object(c.useImperativeHandle)(t,(function(){return{exportTo:function(e,t){e=e||"OrgChart",t=t||"png",Y(!0);var a=x.current.scrollLeft;x.current.scrollLeft=0;var n=x.current.scrollTop;x.current.scrollTop=0,Mn()(g.current,{width:g.current.clientWidth,height:g.current.clientHeight,onclone:function(e){e.querySelector(".orgchart").style.background="none",e.querySelector(".orgchart").style.transform=""}}).then((function(c){"pdf"===t.toLowerCase()?function(e,t){var a=Math.floor(e.width),n=Math.floor(e.height),c=a>n?new Bn.a({orientation:"landscape",unit:"px",format:[a,n]}):new Bn.a({orientation:"portrait",unit:"px",format:[n,a]});c.addImage(e.toDataURL("image/jpeg",1),"JPEG",0,0),c.save(t+".pdf")}(c,e):function(e,t){var a="WebkitAppearance"in document.documentElement.style,n=!!window.sidebar,c="Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&navigator.appVersion.indexOf("Edge")>-1;!a&&!n||c?window.navigator.msSaveBlob(e.msToBlob(),t+".png"):(Q(e.toDataURL()),te(t+".png"),f.current.click())}(c,e),Y(!1),x.current.scrollLeft=a,x.current.scrollTop=n}),(function(){Y(!1),x.current.scrollLeft=a,x.current.scrollTop=n}))},expandAllNodes:function(){g.current.querySelectorAll(".oc-node.hidden, .oc-hierarchy.hidden, .isSiblingsCollapsed, .isAncestorsCollapsed").forEach((function(e){e.classList.remove("hidden","isSiblingsCollapsed","isAncestorsCollapsed")}))}}})),Object(n.jsxs)("div",{ref:x,className:"orgchart-container "+l,onWheel:r?function(e){!function(e){var t=[],a=1;""===P?L("matrix("+e+", 0, 0, "+e+", 0, 0)"):(t=P.split(","),-1===P.indexOf("3d")?(a=Math.abs(window.parseFloat(t[3])*e))>o&&a<s&&(t[0]="matrix("+a,t[3]=a,L(t.join(","))):(a=Math.abs(window.parseFloat(t[5])*e))>o&&a<s&&(t[0]="matrix3d("+a,t[5]=a,L(t.join(","))))}(1+(e.deltaY>0?-.2:.2))}:void 0,onMouseUp:i&&z?function(){M(!1),K("default")}:void 0,children:[Object(n.jsx)("div",{ref:g,className:"orgchart "+j,style:{transform:P,cursor:_},onClick:function(e){e.target.closest(".oc-node")||(m&&m(),Wn())},onMouseDown:i?function(e){if(e.target.closest(".oc-node"))M(!1);else{M(!0),K("move");var t=0,a=0;if(""!==P){var n=P.split(",");-1===P.indexOf("3d")?(t=parseInt(n[4]),a=parseInt(n[5])):(t=parseInt(n[12]),a=parseInt(n[13]))}if(e.targetTouches){if(1===e.targetTouches.length)w(e.targetTouches[0].pageX-t),D(e.targetTouches[0].pageY-a);else if(e.targetTouches.length>1)return}else w(e.pageX-t),D(e.pageY-a)}}:void 0,onMouseMove:i&&z?function(e){var t=0,a=0;if(e.targetTouches){if(1===e.targetTouches.length)t=e.targetTouches[0].pageX-C,a=e.targetTouches[0].pageY-T;else if(e.targetTouches.length>1)return}else t=e.pageX-C,a=e.pageY-T;if(""===P)-1===P.indexOf("3d")?L("matrix(1,0,0,1,"+t+","+a+")"):L("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+t+", "+a+",0,1)");else{var n=P.split(",");-1===P.indexOf("3d")?(n[4]=t,n[5]=a+")"):(n[12]=t,n[13]=a),L(n.join(","))}}:void 0,children:Object(n.jsx)("ul",{children:Object(n.jsx)(_n,{datasource:function e(t,a){return t.relationship=a+(t.children&&t.children.length>0?1:0),t.children&&t.children.forEach((function(a){e(a,"1"+(t.children.length>1?1:0))})),t}(ce,"00"),NodeTemplate:b,draggable:u,collapsible:h,multipleSelect:O,changeHierarchy:oe,onClickNode:p})})}),Object(n.jsx)("a",{className:"oc-download-btn hidden",ref:f,href:J,download:ee,children:"\xa0"}),Object(n.jsx)("div",{className:"oc-mask ".concat(U?"":"hidden"),children:Object(n.jsx)("i",{className:"oci oci-spinner spinner"})})]})})));Kn.defaultProps={pan:!1,zoom:!1,zoomoutLimit:.5,zoominLimit:7,containerClass:"",chartClass:"",draggable:!1,collapsible:!0,multipleSelect:!1};var Gn=Kn,Vn=(a(485),a(234)),Un=a.n(Vn),Yn=function(e){var t=e.nodeData;return Object(n.jsxs)("div",{children:[Object(n.jsx)("div",{className:"position",style:{borderTop:"1px solid",borderTopLeftRadius:8,borderTopRightRadius:8,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},children:t.title}),Object(n.jsx)("div",{className:"fullname",children:t.name}),Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"center",alignItems:"center",className:"total",style:{borderTop:"1px solid",borderBottomLeftRadius:8,borderBottomRightRadius:8},children:[Object(n.jsx)(Un.a,{}),t.total]})]})},qn=function(){var e=Object(c.useRef)(),t=Object(c.useState)({id:"n1",name:"Tr\u1ea7n V\u0103n A",title:"Qu\u1ea3n l\xfd c\xf4ng ty",total:"4",children:[{id:"n2",name:"Nguy\u1ec5n V\u0103n B",title:"Ph\xf2ng nh\xe2n s\u1ef1",total:"0"},{id:"n3",name:"VanHongKong",title:"Ph\xf2ng k\u1ef9 thu\u1eadt",total:"3",children:[{id:"n4",name:"L\xea V\u0103n D",title:"\u0110\u1ed9i NodeJs",total:"0"},{id:"n5",name:"Tr\u1ea7n \u0110\u1ee9c Giang",title:"\u0110\u1ed9i ReactJs",total:"2",children:[{id:"n6",name:"T\xf9ng",title:"TTS",total:"0"},{id:"n7",name:"Tr\xed",title:"TTS",total:"0"}]},{id:"n8",name:"C\u01b0\u1eddng",title:"\u0110\u1ed9i Java",total:"0"}]},{id:"n9",name:"Messi",title:"Ph\xf2ng k\u1ebf to\xe1n",total:"0"},{id:"n10",name:"Bruno",title:"Ph\xf2ng Marketing",total:"1",children:[{id:"n11",name:"Degea",title:"\u0110\u1ed9i marketing",total:"0"}]}]}),a=Object(E.a)(t,2),i=a[0],r=a[1],o=new Tn.a(i,"id","children"),s=Object(c.useState)(new Set),l=Object(E.a)(s,2),j=l[0],b=l[1],u=Object(c.useState)(""),h=Object(E.a)(u,2),O=h[0],p=h[1],m=Object(c.useState)(""),x=Object(E.a)(m,2),g=x[0],f=x[1],v=Object(c.useState)(!1),y=Object(E.a)(v,2),w=y[0],S=y[1],k=function(){var e=Object(N.a)(I.a.mark((function e(){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(j),0==j.size){e.next=5;break}return e.next=4,o.updateNodes(Object(C.a)(j).map((function(e){return e.id})),{id:Object(Dn.a)(),name:O,title:g});case 4:r(Object(d.a)({},o.ds));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.jsxs)("div",{children:[Object(n.jsx)("div",{style:{height:20}}),Object(n.jsxs)(P.a,{children:[Object(n.jsx)("div",{style:{paddingBottom:20,paddingRight:20,paddingLeft:20,paddingTop:10},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:[Object(n.jsx)(L.a,{label:"T\xean",value:O,onChange:function(e){p(e.target.value)}}),Object(n.jsx)(L.a,{label:"Ph\xf2ng ban",value:g,onChange:function(e){f(e.target.value)}}),Object(n.jsx)("div",{style:{paddingTop:25},children:Object(n.jsx)(z.a,{variant:"contained",color:"primary",disabled:!w,onClick:k,style:{marginLeft:"auto",backgroundColor:Ga.main,color:"white"},children:"C\u1eadp nh\u1eadt"})})]})}),Object(n.jsx)(Gn,{chartClass:"myChart",NodeTemplate:Yn,ref:e,datasource:i,collapsible:!w,onClickNode:function(e){console.log(e),S(!0),p(e.name),f(e.title),b(new Set([e]))},onClickChart:function(){b(new Set)}})]})]})};function Xn(e){var t=e.children,a=e.value,c=e.index,i=Object(k.a)(e,["children","value","index"]);return Object(n.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==c,id:"full-width-tabpanel-".concat(c),"aria-labelledby":"full-width-tab-".concat(c)},i),{},{children:a===c&&Object(n.jsx)(xn.a,{p:3,children:Object(n.jsx)(ce.a,{children:t})})}))}function Jn(e){var t=e.children,a=e.value,c=e.index,i=Object(k.a)(e,["children","value","index"]);return Object(n.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==c,id:"full-width-tabpanel-".concat(c),"aria-labelledby":"full-width-tab-".concat(c)},i),{},{children:a===c&&Object(n.jsx)(ce.a,{children:t})}))}function Qn(e){return{id:"scrollable-prevent-tab-".concat(e),"aria-controls":"scrollable-prevent-tabpanel-".concat(e)}}var Zn=[{id:"name",label:"T\xean ph\xf2ng ban",minWidth:170},{id:"phone",label:"\u0110i\u1ec7n tho\u1ea1i",minWidth:170,align:"right"},{id:"leaderCode",label:"Tr\u01b0\u1eddng ph\xf2ng",minWidth:170,align:"right"},{id:"description",label:"M\xf4 t\u1ea3",minWidth:170,align:"right"},{id:"members",label:"Th\xe0nh vi\xean",minWidth:170,align:"right"}],$n=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(0),s=Object(E.a)(o,2),l=s[0],j=s[1];return Object(c.useEffect)((function(){var t=[];e.list.data&&(e.list.data.forEach((function(e){var a,n,c,i,r,o,s;t.push((a=e.id,n=e.name,c=e.phone,i=e.leaderCode,r=e.description,o=e.members,s=e.isDeleted,{id:a,name:n,phone:c,leaderCode:i,description:r,members:o,isDeleted:s}))})),r(t))}),[e.list]),Object(n.jsxs)(Ya,{children:[Object(n.jsx)(Ge.a,{square:!0,children:Object(n.jsxs)(gn.a,{value:l,onChange:function(e,t){j(t)},textColor:"primary",variant:"fullWidth","aria-label":"scrollable prevent tabs example",indicatorColor:"primary",children:[Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"Danh s\xe1ch ph\xf2ng ban","aria-label":"phone"},Qn(0))),Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"S\u01a1 \u0111\u1ed3","aria-label":"favorite"},Qn(1)))]})}),Object(n.jsx)(Jn,{value:l,index:1,style:{padding:"10px"},children:Object(n.jsx)(qn,{})}),Object(n.jsxs)(Xn,{value:l,index:0,style:{padding:"10px"},children:[Object(n.jsx)(Sn,{changeStatusCreate:e.changeStatusCreate,changePage:e.changePage}),Object(n.jsx)("br",{}),Object(n.jsx)(R.a,{container:!0,spacing:3,children:Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(Cn,{rows:i,columns:Zn,changePage:e.changePage,totalPage:e.totalRows,changeStatusDelete:e.changeStatusDelete,pageCurrent:e.pageCurrent,changeStatusUpdate:e.changeStatusUpdate})})})]})]})},ec=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(0),s=Object(E.a)(o,2),l=s[0],d=s[1],j=Object(c.useState)(0),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(5),p=Object(E.a)(O,2),m=p[0],x=(p[1],Object(c.useState)(0)),g=Object(E.a)(x,2),f=g[0],v=g[1],y=Object(c.useState)(0),C=Object(E.a)(y,2),w=C[0],S=C[1],k=Object(c.useState)(0),D=Object(E.a)(k,2),A=D[0],R=D[1],P=Object(c.useState)(0),L=Object(E.a)(P,2),W=L[0],H=L[1],z=Object(fe.b)().enqueueSnackbar,B=Object(T.g)();Object(c.useEffect)((function(){F()}),[l,m,w,A,W]);var F=function(){var e=Object(N.a)(I.a.mark((function e(){var t;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Te({pageIndex:l+1,pageSize:10,orderBy:"CreatedAt",directionSort:"DESC"});case 2:(t=e.sent).data&&0==t.data.errorCode?(r(t.data),v(t.data.metaData.outRowsNumber)):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){B.push("/")}),100)):z("Error!",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.jsx)($n,{list:i,changePage:function(e){d(e),h(e)},totalRows:f,changeStatusDelete:function(e){S(e)},changeStatusCreate:function(e){R(e)},changeStatusUpdate:function(e){H(e)},pageCurrent:u+1})},tc=a(814),ac=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a),nc=Object(A.a)({root:{width:"100%"},container:{maxHeight:500}});function cc(e){var t=nc(),a=i.a.useState(0),c=Object(E.a)(a,2),r=c[0],o=c[1],s=i.a.useState(10),l=Object(E.a)(s,2),d=l[0],j=l[1];return Object(n.jsxs)("div",{className:t.root,style:{padding:"10px"},children:[Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(ac,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(ac,{style:{width:120,textAlign:"center"},children:"Tr\u1ea1ng th\xe1i"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{children:t.status?Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#00A65A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Ho\u1ea1t \u0111\u1ed9ng"})}):Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#FF8C1A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Ngh\u1ec9"})})})]},t.code)}))})]})}),Object(n.jsx)(tc.a,{rowsPerPageOptions:[10,25,100],component:"div",count:e.rows.length,rowsPerPage:d,page:r,onChangePage:function(e,t){o(t)},onChangeRowsPerPage:function(e){j(+e.target.value),o(0)}})]})}var ic=a(762),rc=a(775),oc=[{value:"0",label:"K\u1ef9 thu\u1eadt"},{value:"1",label:"Nh\xe2n s\u1ef1"},{value:"2",label:"K\u1ebf to\xe1n"}],sc=[{value:"0",label:"Ho\u1ea1t \u0111\u1ed9ng"},{value:"1",label:"Ngh\u1ec9"}],lc=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)},root:{"& > *":{margin:e.spacing(1),width:"25ch"}},button:{margin:e.spacing(1)}}})),dc=function(e){var t=i.a.useState(""),a=Object(E.a)(t,2),c=a[0],r=a[1],o=i.a.useState(""),s=Object(E.a)(o,2),l=s[0],d=s[1],j=lc();return Object(n.jsxs)(R.a,{container:!0,justify:"space-around",alignItems:"center",children:[Object(n.jsx)(ic.a,{className:j.formControl,children:Object(n.jsx)(L.a,{select:!0,label:"Ph\xf2ng ban",value:c,onChange:function(e){r(e.target.value)},children:oc.map((function(e){return Object(n.jsx)(rc.a,{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)("form",{className:j.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"H\u1ecd T\xean"})}),Object(n.jsx)("form",{className:j.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"M\xe3 nh\xe2n vi\xean"})}),Object(n.jsx)(ic.a,{className:j.formControl,children:Object(n.jsx)(L.a,{select:!0,label:"Tr\u1ea1ng th\xe1i",value:l,onChange:function(e){d(e.target.value)},children:sc.map((function(e){return Object(n.jsx)(rc.a,{value:e.value,children:e.label},e.value)}))})})]})};function jc(e,t,a,n,c,i,r,o){return{ids:e,name:t,city:a,email:n,office:c,role:i,status:r,code:o}}var bc=[jc("001","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"ab"),jc("002","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",0,"cd"),jc("003","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"ef"),jc("003","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"kl"),jc("003","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"zz"),jc("003","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"uu"),jc("003","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"kk"),jc("003","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"nn"),jc("003","\u0110\u1ed7 Chung","C\xf4ng ty TNHH 365 Vi\u1ec7t Nam","chung.do@365.vn","Ban Giam \u0111\xf4c","Truong ch\u1ec9 huy",1,"uh")],uc=[{id:"ids",label:"ID",minWidth:50,align:"left"},{id:"name",label:"T\xean",minWidth:120,align:"left"},{id:"city",label:"C\xf4ng ty",minWidth:170,align:"left"},{id:"email",label:"Email",minWidth:170,align:"left"},{id:"office",label:"Ph\xf2ng ban",minWidth:100,align:"left"},{id:"role",label:"Ch\u1ee9c v\u1ee5",minWidth:90,align:"left"}],hc=function(e){return Object(n.jsxs)(Ya,{children:[Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:[Object(n.jsx)(ce.a,{variant:"h5",children:"B\xe1o c\xe1o nh\xe2n vi\xean"}),Object(n.jsxs)("div",{style:{marginBottom:5},children:[Object(n.jsx)(z.a,{variant:"contained",style:{marginRight:10,backgroundColor:"#00802b",color:"white"},children:"Excel"}),Object(n.jsx)(z.a,{variant:"contained",style:{marginRight:10,backgroundColor:"#dd4b39",color:"white"},children:"PDF"}),Object(n.jsx)(z.a,{variant:"contained",style:{backgroundColor:"#00c0ef",color:"white"},children:"Print"})]})]}),Object(n.jsx)(P.a,{elevation:2,style:{marginTop:20},children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(dc,{}),Object(n.jsx)(cc,{columns:uc,rows:bc})]})})]})},Oc=function(e){return Object(n.jsx)(hc,{})},pc=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)}}})),mc=function(e){pc();var t=i.a.useState({age:"",name:"hai"}),a=Object(E.a)(t,2);a[0],a[1];return Object(n.jsx)(R.a,{container:!0,spacing:3,children:Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(P.a,{children:Object(n.jsxs)(R.a,{style:{padding:20},xs:12,container:!0,spacing:3,children:[Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"T\xean: "}),Object(n.jsx)("span",{children:e.info.employeeName})]}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"Ph\xf2ng ban: "}),Object(n.jsx)("span",{children:e.info.departmentName})]}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"T\u1eeb ng\xe0y: "}),Object(n.jsx)("span",{children:e.info.fromDate})]}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"\u0110\u1ebfn ng\xe0y: "}),Object(n.jsx)("span",{children:e.info.toDate})]}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"C\xf4ng h\u1ee3p l\u1ec7: "}),Object(n.jsx)("span",{children:e.info.validCheckIn})]}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"\u0110i mu\u1ed9n v\u1ec1 s\u1edbm: "}),Object(n.jsx)("span",{children:e.info.count_Dmvs})]}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"V\u1eafng m\u1eb7t: "}),Object(n.jsx)("span",{children:e.info.absent})]}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)("b",{children:"Ch\u1edd x\u1eed l\xfd: "}),Object(n.jsx)("span",{children:e.info.pending})]})]})})})})},xc=a(165),gc=a.n(xc),fc=Object(A.a)({root:{width:"100%"},container:{maxHeight:440}}),vc=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a);function yc(e){var t=fc(),a=Object(c.useState)(1),i=Object(E.a)(a,2),r=i[0],o=i[1];return Object(n.jsxs)(Ge.a,{className:t.root,children:[Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(vc,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(vc,{style:{width:100,textAlign:"center"},children:"H\u01a1\u0323p l\xea\u0323"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{children:t.check?Object(n.jsx)("div",{style:{color:"green",textAlign:"center"},children:Object(n.jsx)(gc.a,{})}):Object(n.jsx)("div",{style:{color:"red",textAlign:"center"},children:Object(n.jsx)(xt.a,{})})})]},t.code)}))})]})}),Object(n.jsx)(R.a,{container:!0,justify:"center",style:{padding:10},children:Object(n.jsx)(jn.a,{count:Math.ceil(e.totalPage/10),color:"secondary",page:r,onChange:function(t,a){o(a),e.changePage(a)}})})]})}var Cc=a(45);function wc(e,t,a,n,c,i,r){var o="-",s="-";if(0==r){console.log(Math.floor(Math.round(c)/60));var l=Math.round(c)-60*Math.floor(Math.round(c)/60);Math.floor(Math.round(c)/60)>=0&&l>=0&&(o="0".concat(Math.floor(Math.round(c)/60),":").concat(l<10?"0".concat(l):l));var d=Math.round(i)-60*Math.floor(Math.round(i)/60);Math.floor(Math.round(i)/60)>=0&&d>=0&&(s="0".concat(Math.floor(Math.round(i)/60),":").concat(d<10?"0".concat(d):d))}return{date:e,status:t,checkin:a,checkout:n,dm:o,vs:s,check:r}}var Sc=[{id:"date",label:"Nga\u0300y",minWidth:120,align:"center",format:function(e){return e.toLocaleString("en-US")}},{id:"status",label:"Tra\u0323ng tha\u0301i",minWidth:120,align:"right",format:function(e){return e.toLocaleString("en-US")}},{id:"checkin",label:"B\u0103\u0301t \u0111\xe2\u0300u",minWidth:120,align:"right",format:function(e){return e.toFixed(2)}},{id:"checkout",label:"K\xea\u0301t thu\u0301c",minWidth:120,align:"right",format:function(e){return e.toFixed(2)}},{id:"dm",label:"\u0110i mu\xf4\u0323n",minWidth:100,align:"right",format:function(e){return e.toFixed(2)}},{id:"vs",label:"V\xea\u0300 s\u01a1\u0301m",minWidth:100,align:"right",format:function(e){return e.toFixed(2)}}],kc=function(e){var t=i.a.useState(Date.now()),a=Object(E.a)(t,2),r=(a[0],a[1],Object(c.useState)(1)),o=Object(E.a)(r,2),s=o[0],l=o[1],j=Object(c.useState)(0),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)([]),p=Object(E.a)(O,2),m=p[0],x=p[1],g=Object(T.g)(),f=Object(c.useState)({employeeName:"",departmentName:"",fromDate:"",toDate:"",validCheckIn:"",count_Dmvs:"",absent:"",pending:""}),v=Object(E.a)(f,2),y=v[0],C=v[1],w=Object(fe.b)().enqueueSnackbar,S=function(e){var t=Object(J.g)(e).split("/");return t[2]+"-"+t[0]+"-01"},k=function(e){var t=Object(J.g)(e).split("/");return t[2]+"-"+t[0]+"-"+t[1]},D=function(){var e=Object(N.a)(I.a.mark((function e(t){var a,n,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,We({fromDate:S(new Date),toDate:k(new Date),empCode:t,pagingItem:{pageSize:10,pageIndex:s}});case 2:(a=e.sent).data&&0===a.data.errorCode?(n=a.data.data,c=[],C(Object(d.a)(Object(d.a)({},y),{},{employeeName:n[0].employeeName,departmentName:n[0].departmentName,fromDate:Object(J.c)(n[0].fromDate),toDate:Object(J.c)(n[0].toDate),validCheckIn:n[0].validCheckIn,count_Dmvs:n[0].count_Dmvs,absent:n[0].absent,pending:n[0].pending})),n[0].checkInList.forEach((function(e){c.push(wc(Object(J.c)(e.startTime),e.trangThai,Object(J.e)(e.startTime),Object(J.e)(e.endTime),e.diMuonChenhLech,e.veSomChenhLech,e.hopLe))})),x(c),h(a.data.metaData.outRowsNumber)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){g.push("/")}),1e3)):w("L\u1ed7i",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=Object(T.i)().id;return Object(c.useEffect)((function(){D(A)}),[s]),Object(n.jsx)(Ya,{children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:Object(n.jsx)(ce.a,{variant:"h5",children:"Qu\u1ea3n l\xfd ch\u1ea5m c\xf4ng"})})}),Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(mc,{info:y})}),Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(yc,{rows:m,columns:Sc,totalPage:u,changePage:function(e){l(e)}})})]})})},Tc=function(e){return Object(n.jsx)(kc,{})},Dc=[{value:" ",label:"T\u1ea5t c\u1ea3"},{value:"KT",label:"K\u1ef9 thu\u1eadt"},{value:"HR",label:"Nh\xe2n s\u1ef1"}],Ic=[{value:0,label:"T\u1ea5t c\u1ea3"},{value:1,label:"Ch\u1ea5m c\xf4ng b\xf9"},{value:4,label:"Ngh\u1ec9 ph\xe9p"},{value:5,label:"Khi\u1ebfu n\u1ea1i"}],Nc=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)},root:{"& > *":{margin:e.spacing(1),width:"25ch"}},button:{margin:e.spacing(1)}}})),Ec=function(e){var t=Nc(),a=i.a.useState(""),r=Object(E.a)(a,2),o=r[0],s=r[1],l=i.a.useState(""),d=Object(E.a)(l,2),j=(d[0],d[1],i.a.useState("")),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(""),p=Object(E.a)(O,2),m=(p[0],p[1],Object(c.useState)("")),x=Object(E.a)(m,2),g=x[0],f=x[1],v=Object(c.useState)(""),y=Object(E.a)(v,2),C=y[0],w=y[1];return Object(n.jsx)("div",{children:Object(n.jsxs)(R.a,{style:{paddingLeft:20,paddingRight:20,paddingBottom:20,paddingTop:30},container:!0,spacing:3,alignContent:"center",justify:"space-around",children:[Object(n.jsx)("form",{className:t.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"M\xe3 nh\xe2n vi\xean",value:C,onChange:function(t){w(t.target.value),setTimeout((function(){e.changeEmpCode(t.target.value),e.changePage(0)}),500)}})}),Object(n.jsx)("form",{className:t.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"Email",value:g,onChange:function(t){f(t.target.value),setTimeout((function(){e.changeEmail(t.target.value),e.changePage(0)}),500)}})}),Object(n.jsx)(ic.a,{className:t.formControl,children:Object(n.jsx)(L.a,{select:!0,label:"Ph\xf2ng ban",value:o,onChange:function(t){s(t.target.value),e.changeDepCode(t.target.value),e.changePage(0)},SelectProps:{native:!0},children:Dc.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)(ic.a,{className:t.formControl,children:Object(n.jsx)(L.a,{select:!0,label:"Lo\u1ea1i \u0111\u01a1n",value:u,onChange:function(t){h(t.target.value),e.changeTypeComplain(t.target.value),e.changePage(0)},SelectProps:{native:!0},children:Ic.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})})]})})},Ac=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a),Rc=Object(A.a)({root:{width:"100%"},container:{maxHeight:500}});function Pc(e){var t=Rc(),a=Object(c.useState)(0),i=Object(E.a)(a,2),r=i[0],o=i[1],s=Object(c.useState)(10),l=Object(E.a)(s,2),j=(l[0],l[1],Object(c.useState)(e.pageCurrent)),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(!1),p=Object(E.a)(O,2),m=p[0],x=p[1],g=Object(c.useState)(!1),f=Object(E.a)(g,2),v=f[0],y=f[1],C=Object(c.useState)({complainId:"",type:0,employeeCode:"",statusCheckIn:0,hrComment:""}),w=Object(E.a)(C,2),S=w[0],k=w[1],D=Object(fe.b)().enqueueSnackbar,A=Object(T.g)(),P=function(){x(!1)},W=function(){var e=Object(N.a)(I.a.mark((function e(t){var a,n;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce({id:t});case 2:(a=e.sent).data&&0===a.data.errorCode?(n=a.data.data,k(Object(d.a)(Object(d.a)({},S),{},{complainId:n.id,type:0,hrComment:""})),x(!0)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){A.push("/")}),1e3)):D("L\u1ed7i",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(){var e=Object(N.a)(I.a.mark((function e(t){var a,n;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce({id:t});case 2:(a=e.sent).data&&0===a.data.errorCode?(n=a.data.data,k(Object(d.a)(Object(d.a)({},S),{},{complainId:n.id,type:1,hrComment:""})),y(!0)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){A.push("/")}),1e3)):D("L\u1ed7i",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(){y(!1)},F=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ye(S);case 2:(a=t.sent).data&&200===a.data.errorCode?(D("\u0110\u1ed3ng \xfd \u0111\u01a1n t\u1eeb th\xe0nh c\xf4ng",{variant:"success"}),1==e.rows.length&&(o(r-1),h(u-1),e.changePage(u-2)),e.changeStatusUpdate(10*Math.random()),x(!1)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){A.push("/")}),1e3)):D("L\u1ed7i",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),_=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ye(S);case 2:(a=t.sent).data&&200===a.data.errorCode?(D("T\u1eeb ch\u1ed1i \u0111\u01a1n t\u1eeb th\xe0nh c\xf4ng",{variant:"success"}),1==e.rows.length&&(o(r-1),h(u-1),e.changePage(u-2)),e.changeStatusUpdate(10*Math.random()),y(!1)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){A.push("/")}),1e3)):D("L\u1ed7i",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(c.useEffect)((function(){h(e.pageCurrent)}),[e.pageCurrent]),Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsxs)(ct.a,{fullWidth:"true",maxWidth:"sm",open:m,onClose:P,"aria-labelledby":"max-width-dialog-title",children:[Object(n.jsx)(st.a,{id:"max-width-dialog-title"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{children:"B\u1ea1n c\xf3 th\u1ef1c s\u1ef1 mu\u1ed1n ch\u1ea5p nh\u1eadn \u0111\u01a1n t\u1eeb n\xe0y?"})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{style:{backgroundColor:"#f50057",color:"white"},onClick:P,children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{style:{backgroundColor:"#3f51b5",color:"white"},onClick:F,autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsxs)(ct.a,{fullWidth:"true",maxWidth:"sm",open:v,onClose:B,"aria-labelledby":"max-width-dialog-title",children:[Object(n.jsx)(st.a,{id:"max-width-dialog-title"}),Object(n.jsx)(rt.a,{children:Object(n.jsxs)(ot.a,{children:["B\u1ea1n c\xf3 th\u1ef1c s\u1ef1 mu\u1ed1n t\u1eeb ch\u1ed1i \u0111\u01a1n t\u1eeb n\xe0y?",Object(n.jsx)("br",{}),Object(n.jsx)(L.a,{label:"L\xed do",style:{width:"85%"},value:S.hrComment,onChange:function(e){k(Object(d.a)(Object(d.a)({},S),{},{hrComment:e.target.value}))}})]})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:B,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,onClick:_,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(Ac,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(Ac,{style:{width:160,textAlign:"center"},children:"Tr\u1ea1ng th\xe1i"}),Object(n.jsx)(Ac,{style:{minWidth:150,textAlign:"center"},children:"H\xe0nh \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{children:1==t.status?Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#FF8C1A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:"Ch\u1edd x\u1eed l\xfd"})}):Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#00A65A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:"Kh\xf4ng x\xe1c \u0111\u1ecbnh"})})}),Object(n.jsxs)(en.a,{style:{textAlign:"center"},children:[Object(n.jsx)(dt.a,{onClick:function(){W(t.id)},"aria-label":"delete",size:"large",style:{color:"#3C8DBC"},children:Object(n.jsx)(gc.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{onClick:function(){H(t.id)},"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(xt.a,{fontSize:"inherit"})})]})]},t.code)}))})]})}),Object(n.jsx)(R.a,{container:!0,justify:"center",style:{padding:10},children:Object(n.jsx)(jn.a,{count:Math.ceil(e.totalPage/10),color:"secondary",page:u,onChange:function(t,a){h(a),e.changePage(parseInt(a)-1)}})})]})}var Lc=a(391),Wc=a.n(Lc),Hc=a(390),zc=a.n(Hc),Mc=a(392),Bc=a.n(Mc),Fc=a(393),_c=a.n(Fc),Kc=[{value:" ",label:"T\u1ea5t c\u1ea3"},{value:"KT",label:"K\u1ef9 thu\u1eadt"},{value:"HR",label:"Nh\xe2n s\u1ef1"}],Gc=[{value:0,label:"T\u1ea5t c\u1ea3"},{value:1,label:"Ch\u1ea5m c\xf4ng b\xf9"},{value:4,label:"Ngh\u1ec9 ph\xe9p"},{value:5,label:"Khi\u1ebfu n\u1ea1i"}],Vc=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)},root:{"& > *":{margin:e.spacing(1),width:"25ch"}},button:{margin:e.spacing(1)}}})),Uc=function(e){var t=Vc(),a=i.a.useState(""),r=Object(E.a)(a,2),o=r[0],s=r[1],l=i.a.useState(""),d=Object(E.a)(l,2),j=(d[0],d[1],i.a.useState("")),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(""),p=Object(E.a)(O,2),m=(p[0],p[1],Object(c.useState)("")),x=Object(E.a)(m,2),g=x[0],f=x[1],v=Object(c.useState)(""),y=Object(E.a)(v,2),C=y[0],w=y[1];return Object(n.jsx)("div",{children:Object(n.jsxs)(R.a,{style:{paddingLeft:20,paddingRight:20,paddingBottom:20,paddingTop:30},container:!0,spacing:3,alignContent:"center",justify:"space-around",children:[Object(n.jsx)("form",{className:t.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"M\xe3 nh\xe2n vi\xean",value:C,onChange:function(t){w(t.target.value),setTimeout((function(){e.changeEmpCode(t.target.value),e.onChangePageMove(0)}),500)}})}),Object(n.jsx)("form",{className:t.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"Email",value:g,onChange:function(t){f(t.target.value),setTimeout((function(){e.changeEmail(t.target.value),e.onChangePageMove(0)}),500)}})}),Object(n.jsx)(ic.a,{className:t.formControl,children:Object(n.jsx)(L.a,{select:!0,label:"Ph\xf2ng ban",value:o,onChange:function(t){s(t.target.value),e.changeDepCode(t.target.value),e.onChangePageMove(0)},SelectProps:{native:!0},children:Kc.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)(ic.a,{className:t.formControl,children:Object(n.jsx)(L.a,{select:!0,label:"Lo\u1ea1i \u0111\u01a1n",value:u,onChange:function(t){h(t.target.value),e.changeTypeComplain(t.target.value),e.onChangePageMove(0)},SelectProps:{native:!0},children:Gc.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})})]})})},Yc=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a),qc=Object(A.a)({root:{width:"100%"},container:{maxHeight:500}});function Xc(e){var t=qc(),a=Object(c.useState)(0),i=Object(E.a)(a,2),r=(i[0],i[1],Object(c.useState)(10)),o=Object(E.a)(r,2),s=(o[0],o[1],Object(c.useState)(e.pageCurrent)),l=Object(E.a)(s,2),d=l[0],j=l[1],b=Object(c.useState)(!1),u=Object(E.a)(b,2),h=(u[0],u[1],Object(c.useState)(!1)),O=Object(E.a)(h,2),p=(O[0],O[1],Object(c.useState)({complainId:"",type:0,employeeCode:"",statusCheckIn:0,hrComment:""})),m=Object(E.a)(p,2);m[0],m[1],Object(fe.b)().enqueueSnackbar,Object(T.g)();return Object(c.useEffect)((function(){j(e.pageCurrent)}),[e.pageCurrent]),Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(Yc,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(Yc,{style:{width:160,textAlign:"center"},children:"Tr\u1ea1ng th\xe1i"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{children:5==t.status?Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#00A65A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:"HR x\xe1c nh\u1eadn"})}):6==t.status?Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#FF8C1A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:"HR t\u1eeb ch\u1ed1i"})}):3==t.status?Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#00A65A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:"Leader x\xe1c nh\u1eadn"})}):Object(n.jsx)("div",{style:{padding:2,backgroundColor:"#FF8C1A",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:"Leader t\u1eeb ch\u1ed1i"})})})]},t.code)}))})]})}),Object(n.jsx)(R.a,{container:!0,justify:"center",style:{padding:10},children:Object(n.jsx)(jn.a,{count:Math.ceil(e.totalPage/10),color:"secondary",page:d,onChange:function(t,a){j(a),e.onChangePageMove(parseInt(a)-1)}})})]})}var Jc=[{id:"employeeCode",label:"M\xe3 nh\xe2n vi\xean",minWidth:40},{id:"email",label:"Email",minWidth:170,align:"left",format:function(e){return e.toLocaleString("en-US")}},{id:"type",label:"Lo\u1ea1i \u0111\u01a1n",minWidth:100,align:"center",format:function(e){return e.toLocaleString("en-US")}},{id:"date",label:"Th\u1eddi gian",minWidth:170,align:"center",format:function(e){return e.toFixed(2)}},{id:"reason",label:"L\xfd do",minWidth:350,align:"center",format:function(e){return e.toFixed(2)}}],Qc=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1];return Object(c.useEffect)((function(){var t=[];e.list.data&&(e.list.data.forEach((function(e){t.push(function(e,t,a,n,c,i,r,o,s){var l="";switch(n){case 4:n="Ngh\u1ec9 Ph\xe9p",l=Object(J.b)(c)+" - "+Object(J.b)(i);break;case 1:n="Ch\u1ea5m c\xf4ng b\xf9",l=Object(J.e)(c)+" - "+Object(J.e)(i)+" "+Object(J.b)(i);break;case 5:n="Khi\u1ebfu n\u1ea1i",l=Object(J.d)(s);break;default:n="Ngh\u1ec9",l=""}return{id:e,employeeCode:t,email:a,type:n,date:l,reason:r,status:o}}(e.id,e.employeeCode,e.companyEmail,e.type,e.fromDate,e.toDate,e.reason,e.status,e.createdAt))})),r(t))}),[e.list]),Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(R.a,{container:!0,direction:"row",children:[Object(n.jsx)(R.a,{xs:12,item:!0,children:Object(n.jsx)(Uc,{changeDepCode:e.changeDepCode,changeEmail:e.changeEmail,changeEmpCode:e.changeEmpCode,changeTypeComplain:e.changeTypeComplain,onChangePageMove:e.onChangePageMove})}),Object(n.jsx)(R.a,{xs:12,item:!0,children:Object(n.jsx)(Xc,{rows:i,columns:Jc,changePage:e.changePage,totalPage:e.totalRows,changeStatusUpdate:e.changeStatusUpdate,pageCurrent:e.pageCurrent,onChangePageMove:e.onChangePageMove})})]})})},Zc=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(0),s=Object(E.a)(o,2),l=s[0],d=s[1],j=Object(c.useState)(0),b=Object(E.a)(j,2),u=(b[0],b[1]),h=Object(c.useState)(0),O=Object(E.a)(h,2),p=O[0],m=O[1],x=Object(c.useState)(""),g=Object(E.a)(x,2),f=g[0],v=g[1],y=Object(c.useState)(""),C=Object(E.a)(y,2),w=C[0],S=C[1],k=Object(c.useState)(""),D=Object(E.a)(k,2),A=D[0],R=D[1],P=Object(c.useState)(0),L=Object(E.a)(P,2),W=L[0],H=L[1],z=Object(c.useState)(0),B=Object(E.a)(z,2),F=B[0],_=B[1],K=Object(fe.b)().enqueueSnackbar,G=Object(T.g)();Object(c.useEffect)((function(){V()}),[l,p,e.totalGet,e.onChangePageMove,f,w,A,W]);var V=function(){var t=Object(N.a)(I.a.mark((function t(){var a,n,c,i,o,s;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!=W){t.next=22;break}if("all"!==e.totalGet){t.next=8;break}return t.next=4,ke({depCode:f,empCode:A,empEmail:w,statusString:"3,4,5,6",pagingItem:{pageSize:10,pageIndex:e.pageMove+1}});case 4:(a=t.sent).data&&0==a.data.errorCode?(r(a.data),_(a.data.metaData.outRowsNumber)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){G.push("/")}),100)):K("Error!",{variant:"error"}),t.next=20;break;case 8:if("agree"!==e.totalGet){t.next=15;break}return t.next=11,ke({depCode:f,empCode:A,empEmail:w,statusString:"3,5",pagingItem:{pageSize:10,pageIndex:e.pageMove+1}});case 11:(n=t.sent).data&&0==n.data.errorCode?(r(n.data),_(n.data.metaData.outRowsNumber)):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){G.push("/")}),100)):K("Error!",{variant:"error"}),t.next=20;break;case 15:if("disagree"!==e.totalGet){t.next=20;break}return t.next=18,ke({depCode:f,empCode:A,empEmail:w,statusString:"4,6",pagingItem:{pageSize:10,pageIndex:e.pageMove+1}});case 18:(c=t.sent).data&&0==c.data.errorCode?(r(c.data),_(c.data.metaData.outRowsNumber)):403==c.status||401==c.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){G.push("/")}),100)):K("Error!",{variant:"error"});case 20:t.next=41;break;case 22:if("all"!==e.totalGet){t.next=29;break}return t.next=25,ke({depCode:f,empCode:A,type:parseInt(W),empEmail:w,statusString:"3,4,5,6",pagingItem:{pageSize:10,pageIndex:e.pageMove+1}});case 25:(i=t.sent).data&&0==i.data.errorCode?(r(i.data),_(i.data.metaData.outRowsNumber)):403==i.status||401==i.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){G.push("/")}),100)):K("Error!",{variant:"error"}),t.next=41;break;case 29:if("agree"!==e.totalGet){t.next=36;break}return t.next=32,ke({depCode:f,empCode:A,type:parseInt(W),empEmail:w,statusString:"3,5",pagingItem:{pageSize:10,pageIndex:e.pageMove+1}});case 32:(o=t.sent).data&&0==o.data.errorCode?(r(o.data),_(o.data.metaData.outRowsNumber)):403==o.status||401==o.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){G.push("/")}),100)):K("Error!",{variant:"error"}),t.next=41;break;case 36:if("disagree"!==e.totalGet){t.next=41;break}return t.next=39,ke({depCode:f,empCode:A,type:parseInt(W),empEmail:w,statusString:"4,6",pagingItem:{pageSize:10,pageIndex:e.pageMove+1}});case 39:(s=t.sent).data&&0==s.data.errorCode?(r(s.data),_(s.data.metaData.outRowsNumber)):403==s.status||401==s.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){G.push("/")}),100)):K("Error!",{variant:"error"});case 41:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(n.jsx)(Qc,{list:i,changePage:function(e){d(e),u(e)},totalRows:F,pageCurrent:e.pageMove+1,changeStatusUpdate:function(e){m(e)},onChangePageMove:e.onChangePageMove,changeDepCode:function(e){v(e)},changeEmail:function(e){S(e)},changeEmpCode:function(e){R(e)},changeTypeComplain:function(e){H(e)}})};var $c=[{id:"employeeCode",label:"M\xe3 nh\xe2n vi\xean",minWidth:80},{id:"email",label:"Email",minWidth:80,align:"right",format:function(e){return e.toLocaleString("en-US")}},{id:"type",label:"Lo\u1ea1i \u0111\u01a1n",minWidth:50,align:"left",format:function(e){return e.toLocaleString("en-US")}},{id:"date",label:"Th\u1eddi gian",minWidth:150,align:"center",format:function(e){return e.toFixed(2)}},{id:"reason",label:"L\xfd do",minWidth:240,align:"center",format:function(e){return e.toFixed(2)}}],ei=function(e){var t,a,i,r,o=Object(c.useState)([]),s=Object(E.a)(o,2),l=s[0],j=s[1],b=Object(c.useState)({showAll:0,showAllHandled:0,showAllHandledAgree:0,showAllHandledReject:0}),u=Object(E.a)(b,2),h=u[0],O=u[1],p=Object(c.useState)(""),m=Object(E.a)(p,2),x=m[0],g=m[1],f=Object(c.useState)(0),v=Object(E.a)(f,2),y=v[0],C=v[1];Object(c.useEffect)((function(){var t=[];e.list.data&&(e.list.data.forEach((function(e){t.push(function(e,t,a,n,c,i,r,o,s){var l="";switch(n){case 4:n="Ngh\u1ec9 Ph\xe9p",l=Object(J.b)(c)+" - "+Object(J.b)(i);break;case 1:n="Ch\u1ea5m c\xf4ng b\xf9",l=Object(J.e)(c)+" - "+Object(J.e)(i)+" "+Object(J.b)(i);break;case 5:n="Khi\u1ebfu n\u1ea1i",l=Object(J.d)(s);break;default:n="Ngh\u1ec9",l=""}return{id:e,employeeCode:t,email:a,type:n,date:l,reason:r,status:o}}(e.id,e.employeeCode,e.companyEmail,e.type,e.fromDate,e.toDate,e.reason,e.status,e.createdAt))})),j(t)),O(Object(d.a)(Object(d.a)({},h),{},{showAll:1}))}),[e.list]);var w=function(e){C(e)};return Object(n.jsxs)(Ya,{children:[Object(n.jsx)(ce.a,{variant:"h5",children:"Qu\u1ea3n l\xfd \u0111\u01a1n t\u1eeb ch\u1edd x\u1eed l\xfd"}),Object(n.jsx)("br",{}),Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:2,children:[Object(n.jsx)(R.a,(t={item:!0},Object(Xe.a)(t,"item",!0),Object(Xe.a)(t,"lg",3),Object(Xe.a)(t,"md",6),Object(Xe.a)(t,"sm",12),Object(Xe.a)(t,"children",Object(n.jsx)(P.a,{style:{backgroundColor:"#f39c12",paddingTop:20,minWidth:200},onClick:function(){O({showAllHandled:0,showAllHandledAgree:0,showAllHandledReject:0,showAll:1})},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsx)(ce.a,{variant:"h3",children:e.totalWait}),Object(n.jsx)(ce.a,{variant:"p",children:"Ch\u1edd x\u1eed l\xfd"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(zc.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)"}})})]})})),t)),Object(n.jsx)(R.a,(a={item:!0},Object(Xe.a)(a,"item",!0),Object(Xe.a)(a,"lg",3),Object(Xe.a)(a,"md",6),Object(Xe.a)(a,"sm",12),Object(Xe.a)(a,"children",Object(n.jsx)(P.a,{style:{backgroundColor:"#00c0ef",paddingTop:20,minWidth:200},onClick:function(){O({showAll:0,showAllHandledAgree:0,showAllHandledReject:0,showAllHandled:1}),g("all"),w(0)},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",e.totalHandled]}),Object(n.jsx)(ce.a,{variant:"p",children:"\u0110\xe3 x\u1eed l\xfd"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(Wc.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)"}})})]})})),a)),Object(n.jsx)(R.a,(i={item:!0},Object(Xe.a)(i,"item",!0),Object(Xe.a)(i,"lg",3),Object(Xe.a)(i,"md",6),Object(Xe.a)(i,"sm",12),Object(Xe.a)(i,"children",Object(n.jsx)(P.a,{style:{backgroundColor:"#00a65a",paddingTop:20,minWidth:200},onClick:function(){O({showAll:0,showAllHandled:0,showAllHandledReject:0,showAllHandledAgree:1}),g("agree"),w(0)},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",e.totalApproved]}),Object(n.jsx)(ce.a,{variant:"p",children:"Ch\u1ea5p nh\u1eadn"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(Bc.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)"}})})]})})),i)),Object(n.jsx)(R.a,(r={item:!0},Object(Xe.a)(r,"item",!0),Object(Xe.a)(r,"lg",3),Object(Xe.a)(r,"md",6),Object(Xe.a)(r,"sm",12),Object(Xe.a)(r,"children",Object(n.jsx)(P.a,{style:{backgroundColor:"#ef4f4f",paddingTop:20},onClick:function(){O({showAll:0,showAllHandled:0,showAllHandledAgree:0,showAllHandledReject:1}),g("disagree"),w(0)},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsxs)(ce.a,{variant:"h3",children:[" ",e.totalRejected]}),Object(n.jsx)(ce.a,{variant:"p",children:"T\u1eeb ch\u1ed1i"})]}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(_c.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)"}})})]})})),r))]}),Object(n.jsx)("br",{}),Object(n.jsx)("br",{}),Object(n.jsx)("br",{}),Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(R.a,{container:!0,direction:"row",children:[1==h.showAll?Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(Ec,{totalPageWaitHandled:e.totalRows,totalApproved:e.totalApproved,totalHandled:e.totalHandled,totalRejected:e.totalRejected,changeDepCode:e.changeDepCode,changePage:e.changePage,changeEmail:e.changeEmail,changeEmpCode:e.changeEmpCode,changeTypeComplain:e.changeTypeComplain})}):Object(n.jsx)("div",{}),Object(n.jsx)(R.a,{xs:12,item:!0,children:1==h.showAll?Object(n.jsx)(Pc,{rows:l,columns:$c,changePage:e.changePage,totalPage:e.totalRows,changeStatusUpdate:e.changeStatusUpdate,pageCurrent:e.pageCurrent}):1==h.showAllHandled||1==h.showAllHandledAgree||1==h.showAllHandledReject?Object(n.jsx)(Zc,{totalGet:x,pageMove:y,onChangePageMove:w}):Object(n.jsx)("div",{})})]})})]})},ti=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(0),s=Object(E.a)(o,2),l=s[0],d=s[1],j=Object(c.useState)(0),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(0),p=Object(E.a)(O,2),m=p[0],x=p[1],g=Object(c.useState)(0),f=Object(E.a)(g,2),v=f[0],y=f[1],C=Object(c.useState)(0),w=Object(E.a)(C,2),S=w[0],k=w[1],D=Object(c.useState)(0),A=Object(E.a)(D,2),R=A[0],P=A[1],L=Object(c.useState)(0),W=Object(E.a)(L,2),H=W[0],z=W[1],B=Object(c.useState)(0),F=Object(E.a)(B,2),_=F[0],K=F[1],G=Object(c.useState)(""),V=Object(E.a)(G,2),U=V[0],Y=V[1],q=Object(c.useState)(""),X=Object(E.a)(q,2),J=X[0],Q=X[1],Z=Object(c.useState)(""),$=Object(E.a)(Z,2),ee=$[0],te=$[1],ae=Object(c.useState)(0),ne=Object(E.a)(ae,2),ce=ne[0],ie=ne[1],re=Object(fe.b)().enqueueSnackbar,oe=Object(T.g)();Object(c.useEffect)((function(){se()}),[m]);var se=function(){var e=Object(N.a)(I.a.mark((function e(){var t,a,n,c,i,r;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([ke({depCode:U,empCode:ee,empEmail:J,statusString:"1",pagingItem:{pageSize:100,pageIndex:1}}),ke({depCode:U,empCode:ee,empEmail:J,statusString:"3,5",pagingItem:{pageSize:100,pageIndex:1}}),ke({depCode:U,empCode:ee,empEmail:J,statusString:"3,4,5,6",pagingItem:{pageSize:100,pageIndex:1}}),ke({depCode:U,empCode:ee,empEmail:J,statusString:"4,6",pagingItem:{pageSize:100,pageIndex:1}})]);case 2:t=e.sent,a=Object(E.a)(t,4),n=a[0],c=a[1],i=a[2],r=a[3],n.data&&0==n.data.errorCode?(k(n.data.metaData.outRowsNumber),P(c.data.metaData.outRowsNumber),z(i.data.metaData.outRowsNumber),K(r.data.metaData.outRowsNumber)):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){oe.push("/")}),100)):re("Error!",{variant:"error"});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(c.useEffect)((function(){le()}),[l,m,U,J,ee,ce]);var le=function(){var e=Object(N.a)(I.a.mark((function e(){var t,a,n,c,i,o;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=ce){e.next=12;break}return e.next=3,Promise.all([ke({depCode:U,empCode:ee,empEmail:J,statusString:"1",pagingItem:{pageSize:10,pageIndex:l+1}}),ke({depCode:U,empCode:ee,empEmail:J,statusString:"3,5",pagingItem:{pageSize:10,pageIndex:l+1}}),ke({depCode:U,empCode:ee,empEmail:J,statusString:"3,4,5,6",pagingItem:{pageSize:10,pageIndex:l+1}}),ke({depCode:U,empCode:ee,empEmail:J,statusString:"4,6",pagingItem:{pageSize:10,pageIndex:l+1}})]);case 3:t=e.sent,a=Object(E.a)(t,4),n=a[0],a[1],a[2],a[3],n.data&&0==n.data.errorCode?(r(n.data),y(n.data.metaData.outRowsNumber)):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){oe.push("/")}),100)):re("Error!",{variant:"error"}),e.next=21;break;case 12:return e.next=14,Promise.all([ke({depCode:U,empCode:ee,type:parseInt(ce),empEmail:J,statusString:"1",pagingItem:{pageSize:10,pageIndex:l+1}}),ke({depCode:U,empCode:ee,type:parseInt(ce),empEmail:J,statusString:"3,5",pagingItem:{pageSize:10,pageIndex:l+1}}),ke({depCode:U,empCode:ee,type:parseInt(ce),empEmail:J,statusString:"3,4,5,6",pagingItem:{pageSize:10,pageIndex:l+1}}),ke({depCode:U,empCode:ee,type:parseInt(ce),empEmail:J,statusString:"4,6",pagingItem:{pageSize:10,pageIndex:l+1}})]);case 14:c=e.sent,i=Object(E.a)(c,4),o=i[0],i[1],i[2],i[3],o.data&&0==o.data.errorCode?(r(o.data),y(o.data.metaData.outRowsNumber)):403==o.status||401==o.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){oe.push("/")}),100)):re("Error!",{variant:"error"});case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.jsx)(ei,{list:i,changePage:function(e){d(e),h(e)},totalRows:v,totalWait:S,totalApproved:R,totalHandled:H,totalRejected:_,pageCurrent:u+1,changeStatusUpdate:function(e){x(e)},changeDepCode:function(e){Y(e)},changeEmail:function(e){Q(e)},changeEmpCode:function(e){te(e)},changeTypeComplain:function(e){ie(e)}})},ai=a(394),ni=a.n(ai),ci=a(395),ii=a.n(ci),ri=Object(A.a)((function(e){return{container:{},paper:{padding:e.spacing(2),textAlign:"center",color:e.palette.text.secondary}}}));function oi(){var e=ri();return Object(n.jsx)("div",{className:e.container,children:Object(n.jsxs)(P.a,{style:{padding:"10px"},children:[Object(n.jsx)(R.a,{container:!0,direction:"column",justify:"flex-start",alignItems:"center",children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{padding:"5px"},children:[Object(n.jsx)("div",{children:"Read Mail"}),Object(n.jsxs)("div",{children:[Object(n.jsx)(ni.a,{style:{fontSize:"small"}}),Object(n.jsx)(ii.a,{style:{fontSize:"small"}})]})]})}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(R.a,{container:!0,direction:"column",justify:"space-between",alignItems:"center",style:{padding:"8px"},children:[Object(n.jsx)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:Object(n.jsx)("div",{children:"Message Subject Is Placed Here"})}),Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:[Object(n.jsx)("div",{style:{fontSize:"12px",color:"grey"},children:"From: help@example.com"}),Object(n.jsx)("div",{style:{fontSize:"12px",color:"grey"},children:"09 Dec,2020 3:00 PM"})]})]}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(R.a,{container:!0,direction:"column",justify:"flex-start",alignItems:"center",style:{padding:"6px"},children:Object(n.jsx)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"left",children:Object(n.jsxs)("div",{children:[Object(n.jsx)("p",{children:"Hello John,"}),Object(n.jsx)("p",{children:"Johnny Depp has applied directly to the court of appeal in a bid to overturn a high court ruling that he assaulted his ex-wife Amber Heard and put her in fear for her life."}),Object(n.jsx)("p",{children:"The Hollywood star sued The Sun\u2019s publisher for libel after a 2018 column by its executive editor Dan Wootton described him as a \u201cwife beater\u201d."}),Object(n.jsx)("p",{children:"The 57-year-old took legal action against the paper\u2019s parent company, News Group Newspapers (NGN), over the column, which referred to \u201coverwhelming evidence\u201d he attacked Heard, 34, during their relationship."}),Object(n.jsx)("p",{children:"In November, Mr Justice Nicol dismissed the claim, finding NGN had proved what was in the article was \u201csubstantially true\u201d."}),Object(n.jsx)("p",{children:"His solicitor Jenny Afia, from the Schillings law firm, had said the high court ruling was \u201cas perverse as it is bewildering\u201d, adding: \u201cThe judgment is so flawed that it would be ridiculous for Mr Depp not to appeal this decision.\u201d"})]})})}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(R.a,{container:!0,direction:"column",justify:"flex-start",style:{margin:"10px"},alignItems:"center",children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"flex-end",alignItems:"center",children:[Object(n.jsx)("div",{children:Object(n.jsx)(z.a,{style:{color:"white",backgroundColor:"red",marginRight:"20px"},children:"Reject"})}),Object(n.jsx)("div",{children:Object(n.jsx)(z.a,{style:{color:"white",backgroundColor:"green",marginRight:"10px"},children:"Accept"})})]})})]})})}var si=a(797),li=a(396),di=a.n(li),ji=a(284),bi=a.n(ji),ui=a(282),hi=a.n(ui),Oi=a(283),pi=a.n(Oi),mi=Object(A.a)((function(e){return{root:{width:"100%",maxWidth:360,backgroundColor:e.palette.background.paper},nested:{paddingLeft:e.spacing(4)}}}));function xi(){var e=mi(),t=i.a.useState(!1),a=Object(E.a)(t,2),c=a[0],r=a[1],o=Object(T.g)(),s=function(){o.push("/letter")};return Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(sa.a,{component:"nav","aria-labelledby":"nested-list-subheader",subheader:Object(n.jsx)(si.a,{component:"div",id:"nested-list-subheader",children:"Menu"}),className:e.root,children:[Object(n.jsx)(oa.a,{}),Object(n.jsxs)(Yt.a,{button:!0,onClick:function(){r(!c)},children:[Object(n.jsx)(la.a,{style:{color:"green"},children:Object(n.jsx)(di.a,{})}),Object(n.jsx)(qt.a,{primary:"\u0110\u01a1n ch\u01b0a x\u1eed l\xfd"}),Object(n.jsx)(Qt.a,{color:"secondary",size:"small",label:"5"}),c?Object(n.jsx)(Ea.a,{}):Object(n.jsx)(Jt.a,{})]}),Object(n.jsx)(da.a,{in:c,timeout:"auto",unmountOnExit:!0,children:Object(n.jsxs)(sa.a,{component:"div",disablePadding:!0,children:[Object(n.jsxs)(Yt.a,{button:!0,onClick:s,className:e.nested,children:[Object(n.jsx)(la.a,{style:{color:"#f39c12"},children:Object(n.jsx)(hi.a,{})}),Object(n.jsx)(qt.a,{primary:"Ngh\u1ec9 ph\xe9p"}),Object(n.jsx)(Qt.a,{color:"secondary",size:"small",label:"3"})]}),Object(n.jsxs)(Yt.a,{button:!0,onClick:s,className:e.nested,children:[Object(n.jsx)(la.a,{style:{color:"#00c0ef"},children:Object(n.jsx)(pi.a,{})}),Object(n.jsx)(qt.a,{primary:"Ch\u1ea5m c\xf4ng b\xf9"}),Object(n.jsx)(Qt.a,{color:"secondary",size:"small",label:"1"})]}),Object(n.jsxs)(Yt.a,{button:!0,onClick:s,className:e.nested,children:[Object(n.jsx)(la.a,{style:{color:"red"},children:Object(n.jsx)(bi.a,{})}),Object(n.jsx)(qt.a,{primary:"Khi\u1ebfu n\u1ea1i"}),Object(n.jsx)(Qt.a,{color:"secondary",size:"small",label:"1"})]})]})}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(Yt.a,{button:!0,onClick:s,children:[Object(n.jsx)(la.a,{style:{color:"#f39c12"},children:Object(n.jsx)(hi.a,{})}),Object(n.jsx)(qt.a,{primary:"\u0110\u01a1n xin ngh\u1ec9 ph\xe9p"})]}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(Yt.a,{button:!0,onClick:s,children:[Object(n.jsx)(la.a,{style:{color:"#00c0ef"},children:Object(n.jsx)(pi.a,{})}),Object(n.jsx)(qt.a,{primary:"\u0110\u01a1n ch\u1ea5m c\xf4ng b\xf9"})]}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(Yt.a,{button:!0,onClick:s,children:[Object(n.jsx)(la.a,{style:{color:"red"},children:Object(n.jsx)(bi.a,{})}),Object(n.jsx)(qt.a,{primary:"\u0110\u01a1n khi\u1ebfu n\u1ea1i"})]})]})})}function gi(){return Object(n.jsxs)(Ya,{children:[Object(n.jsx)("h2",{children:"Qu\u1ea3n l\xfd \u0111\u01a1n t\u1eeb"}),Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:3,children:Object(n.jsx)(xi,{})}),Object(n.jsx)(R.a,{item:!0,xs:9,children:Object(n.jsx)(oi,{})})]})]})}var fi=function(e){return Object(n.jsx)(gi,{})},vi=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a),yi=Object(A.a)({root:{width:"100%"},container:{maxHeight:500}});function Ci(e){var t=yi(),a=i.a.useState(0),c=Object(E.a)(a,2),r=c[0],o=c[1],s=i.a.useState(10),l=Object(E.a)(s,2),d=l[0],j=l[1],b=Object(T.g)(),u=i.a.useState(Date.now()),h=Object(E.a)(u,2);h[0],h[1];return Object(n.jsxs)("div",{className:t.root,style:{padding:"10px"},children:[Object(n.jsx)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center"}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(vi,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(vi,{style:{minWidth:150,textAlign:"center"},children:"H\xe0nh \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{style:{textAlign:"center"},children:Object(n.jsx)(z.a,{onClick:function(){return b.push("/salarydetail")},style:{padding:2,backgroundColor:"#00c0ef",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Chi ti\u1ebft"})})})]},t.code)}))})]})}),Object(n.jsx)(tc.a,{rowsPerPageOptions:[10,25,100],component:"div",count:e.rows.length,rowsPerPage:d,page:r,onChangePage:function(e,t){o(t)},onChangeRowsPerPage:function(e){j(+e.target.value),o(0)}})]})}var wi=a(798),Si=(a(486),[{value:"0",label:"K\u1ef9 thu\u1eadt"},{value:"1",label:"Nh\xe2n s\u1ef1"},{value:"2",label:"K\u1ebf to\xe1n"}]),ki=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)},root:{"& > *":{margin:e.spacing(1),width:"25ch"}},button:{margin:e.spacing(1)}}})),Ti=function(e){var t=i.a.useState(""),a=Object(E.a)(t,2),c=a[0],r=a[1],o=i.a.useState(""),s=Object(E.a)(o,2),l=(s[0],s[1],i.a.useState(Date.now())),d=Object(E.a)(l,2),j=d[0],b=d[1],u=function(e){b(e)},h=ki();return Object(n.jsxs)(R.a,{container:!0,justify:"space-around",alignItems:"center",children:[Object(n.jsx)(ic.a,{className:h.formControl,children:Object(n.jsx)(L.a,{select:!0,label:"Ph\xf2ng ban",value:c,onChange:function(e){r(e.target.value)},children:Si.map((function(e){return Object(n.jsx)(rc.a,{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)("form",{className:h.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"H\u1ecd T\xean"})}),Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20},views:["year","month"],disableToolbar:!0,variant:"inline",format:"MM/yyyy",margin:"normal",id:"date-picker-inline",value:j,onChange:u,KeyboardButtonProps:{"aria-label":"change date"}})}),Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20},views:["year","month"],disableToolbar:!0,variant:"inline",format:"MM/yyyy",margin:"normal",id:"date-picker-inline",value:j,onChange:u,KeyboardButtonProps:{"aria-label":"change date"}})})]})};function Di(e,t,a,n,c,i){return{name:e,office:t,role:a,salary_amount:n,salary_reduce:c,salary_real:i}}var Ii=[Di("Nguy\u1ec5n V\u0103n A","K\u1ef9 Thu\u1eadt","Nh\xe2n vi\xean","10000000","100000","9900000"),Di("Nguy\u1ec5n V\u0103n A","K\u1ef9 Thu\u1eadt","Nh\xe2n vi\xean","10000000","100000","9900000"),Di("Nguy\u1ec5n V\u0103n A","K\u1ef9 Thu\u1eadt","Nh\xe2n vi\xean","10000000","100000","9900000"),Di("Nguy\u1ec5n V\u0103n A","K\u1ef9 Thu\u1eadt","Nh\xe2n vi\xean","10000000","100000","9900000")],Ni=[{id:"name",label:"H\u1ecd t\xean",minWidth:150,align:"left"},{id:"office",label:"Ph\xf2ng ban",minWidth:120,align:"left"},{id:"role",label:"Ch\u1ee9c v\u1ee5",minWidth:130,align:"left"},{id:"salary_amount",label:"T\u1ed5ng thu nh\u1eadp",minWidth:140,align:"left"},{id:"salary_reduce",label:"T\u1ed5ng tr\u1eeb",minWidth:100,align:"left"},{id:"salary_real",label:"Th\u1ef1c l\u0129nh",minWidth:90,align:"left"}],Ei=function(e){var t=i.a.useState(Date.now()),a=Object(E.a)(t,2);a[0],a[1];return Object(n.jsxs)(Ya,{children:[Object(n.jsx)(ce.a,{variant:"h5",children:"Danh s\xe1ch l\u01b0\u01a1ng nh\xe2n vi\xean"}),Object(n.jsx)(P.a,{children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(Ti,{}),Object(n.jsx)(Ci,{columns:Ni,rows:Ii})]})})]})},Ai=function(e){return Object(n.jsx)(Ei,{})},Ri=(Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a),Object(A.a)({root:{width:"100%"},container:{maxHeight:1500}})),Pi=function(e){console.log(e);var t=Ri();return Object(n.jsxs)(Ge.a,{className:t.root,style:{padding:"10px"},children:[Object(n.jsx)("h3",{children:"B\u1ea3ng l\u01b0\u01a1ng th\xe1ng 11"}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",style:{border:"1px solid #d2c3c3"},children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[Object(n.jsx)(en.a,{style:{minWidth:150,borderRight:"1px solid #d2c3c3"}}),Object(n.jsx)(en.a,{style:{minWidth:150,borderRight:"1px solid #d2c3c3"}}),Object(n.jsx)(en.a,{style:{minWidth:150,borderRight:"1px solid #d2c3c3"}}),Object(n.jsx)(en.a,{style:{minWidth:100},children:"Ghi ch\xfa"})]})}),Object(n.jsxs)($a.a,{children:[Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(n.jsx)(en.a,{rowSpan:"6",align:"center",style:{borderRight:"1px solid #d2c3c3"},children:"Ng\xe0y c\xf4ng"}),Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"},children:e.rows[0].name}),Object(n.jsx)(en.a,{align:"right",style:{borderRight:"1px solid #d2c3c3"},children:e.rows[0].value}),Object(n.jsx)(en.a,{})]}),e.rows1.map((function(e){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"},children:e.name}),Object(n.jsx)(en.a,{align:"right",style:{borderRight:"1px solid #d2c3c3"},children:e.value}),Object(n.jsx)(en.a,{children:e.note})]})})),Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(n.jsx)(en.a,{rowSpan:"8",align:"center",style:{borderRight:"1px solid #d2c3c3"},children:"T\u1ed5ng ti\u1ec1n l\u01b0\u01a1ng"}),Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"},children:e.rows[1].name}),Object(n.jsx)(en.a,{align:"right",style:{borderRight:"1px solid #d2c3c3"},children:e.rows[1].value}),Object(n.jsx)(en.a,{children:e.rows[1].note})]}),e.rows2.map((function(e){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"},children:e.name}),Object(n.jsx)(en.a,{align:"right",style:{borderRight:"1px solid #d2c3c3"},children:e.value}),Object(n.jsx)(en.a,{children:e.note})]})})),Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(n.jsx)(en.a,{rowSpan:"6",align:"center",style:{borderRight:"1px solid #d2c3c3"},children:"C\xe1c kho\u1ea3n tr\u1eeb"}),Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"},children:e.rows[2].name}),Object(n.jsx)(en.a,{align:"right",style:{borderRight:"1px solid #d2c3c3"},children:e.rows[2].value}),Object(n.jsx)(en.a,{children:e.rows[2].note})]}),e.rows3.map((function(e){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"},children:e.name}),Object(n.jsx)(en.a,{align:"right",style:{borderRight:"1px solid #d2c3c3"},children:e.value}),Object(n.jsx)(en.a,{children:e.note})]})})),Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"}}),Object(n.jsx)(en.a,{style:{borderRight:"1px solid #d2c3c3"},children:"Th\u1ef1c l\u0129nh"}),Object(n.jsx)(en.a,{align:"right",style:{borderRight:"1px solid #d2c3c3"},children:"1000000"}),Object(n.jsx)(en.a,{})]})]})]})})]})},Li=[{month:"1",basic:5,efficient:8},{month:"2",basic:3,efficient:6},{month:"3",basic:2,efficient:3},{month:"4",basic:8,efficient:2},{month:"5",basic:8,efficient:2},{month:"6",basic:8,efficient:2},{month:"7",basic:8,efficient:2},{month:"8",basic:5,efficient:4},{month:"9",basic:8,efficient:2},{month:"10",basic:8,efficient:2},{month:"11",basic:2,efficient:9},{month:"12",basic:1,efficient:7}],Wi=Object(nt.a)((function(){return{root:{display:"flex",margin:"auto",flexDirection:"row"}}}),{name:"LegendRoot"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Root,Object(d.a)(Object(d.a)({},a),{},{className:t.root}))})),Hi=Object(nt.a)((function(){return{label:{whiteSpace:"nowrap"}}}),{name:"LegendLabel"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Label,Object(d.a)({className:t.label},a))})),zi=function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={data:Li},n}return Object(Fe.a)(a,[{key:"render",value:function(){var e=this.state.data;return Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(Ve.c,{data:e,hegiht:500,children:[Object(n.jsx)(Ve.a,{}),Object(n.jsx)(Ve.i,{max:2400}),Object(n.jsx)(Ve.b,{name:"L\u01b0\u01a1ng c\u01a1 b\u1ea3n",valueField:"basic",argumentField:"month"}),Object(n.jsx)(Ve.b,{name:"L\u01b0\u01a1ng hi\u1ec7u su\u1ea5t",valueField:"efficient",argumentField:"month"}),Object(n.jsx)(Ue.a,{}),Object(n.jsx)(Ve.d,{position:"bottom",rootComponent:Wi,labelComponent:Hi}),Object(n.jsx)(Ve.g,{text:"B\xe1o c\xe1o l\u01b0\u01a1ng  2020"}),Object(n.jsx)(Ue.n,{stacks:[{series:["L\u01b0\u01a1ng c\u01a1 b\u1ea3n","L\u01b0\u01a1ng hi\u1ec7u su\u1ea5t"]}]})]})})}}]),a}(c.PureComponent),Mi=function(e){return Object(n.jsx)(Ge.a,{style:{padding:15,height:150,marginTop:20},children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:3,children:Object(n.jsx)(Pa.a,{src:"/asset/avatar.jpg",style:{width:"120px",height:"120px"}})}),Object(n.jsx)(R.a,{item:!0,xs:9,children:Object(n.jsxs)("div",{style:{width:"100%",display:"flex",padding:"26px 0px"},children:[Object(n.jsxs)("div",{style:{width:"50%"},children:[Object(n.jsx)("b",{style:{marginBottom:"2px"},children:"M\xe3 nh\xe2n vi\xean: "}),Object(n.jsx)("span",{children:" 123456"}),Object(n.jsx)("br",{}),Object(n.jsx)("br",{}),Object(n.jsx)("b",{style:{marginBottom:"2px"},children:"H\u1ecd t\xean: "}),Object(n.jsx)("span",{children:" L\xea Tr\u1ecdng Tr\xed"})]}),Object(n.jsxs)("div",{style:{width:"50%"},children:[Object(n.jsx)("b",{style:{marginBottom:"2px"},children:"Ch\u1ee9c v\u1ee5: "}),Object(n.jsx)("span",{children:" Developer"}),Object(n.jsx)("br",{}),Object(n.jsx)("br",{}),Object(n.jsx)("b",{style:{marginBottom:"2px"},children:"Ph\xf2ng ban: "}),Object(n.jsx)("span",{children:" IT"})]})]})})]})})},Bi=[{name:"Ng\xe0y c\xf4ng chu\u1ea9n th\xe1ng",value:23,note:""},{name:"L\u01b0\u01a1ng c\u01a1 b\u1ea3n",value:0,note:"L\u01b0\u01a1ng \u0111\xf3ng  BHXH"},{name:"B\u1ea3o hi\u1ec3m",value:0,note:""}],Fi=[{name:"Ng\xe0y c\xf4ng th\u1ef1c t\u1ebf",value:22,note:""},{name:"Ng\xe0y c\xf4ng OT",value:"-",note:""},{name:"Ng\xe0y ngh\u1ec9 ph\xe9p",value:"-",note:""},{name:"Ng\xe0y L\u1ec5 t\u1ebft",value:"-",note:""},{name:"T\u1ed5ng l\u01b0\u01a1ng",value:1e6,note:""}],_i=[{name:"L\u01b0\u01a1ng hi\u1ec7u su\u1ea5t",value:1e6,note:""},{name:"L\u01b0\u01a1ng OT",value:0,note:""},{name:"L\u01b0\u01a1ng ngh\u1ec9 ph\xe9p",value:0,note:""},{name:"L\u01b0\u01a1ng L\u1ec5,T\u1ebft",value:0,note:"L\u01b0\u01a1ng \u0111\xf3ng  BHXH"},{name:"H\u1ed7 tr\u1ee3 onsite",value:0,note:""},{name:"C\xe1c kho\u1ea3n c\u1ed9ng l\u01b0\u01a1ng",value:0,note:"V\xe9 xe"},{name:"T\u1ed5ng thu nh\u1eadp",value:1e6,note:""}],Ki=[{name:"C\xf4ng \u0111o\xe0n",value:0,note:""},{name:"Thu\u1ebf TNCN",value:0,note:""},{name:"\u1ee8ng l\u01b0\u01a1ng",value:0,note:""},{name:"C\xe1c kho\u1ea3n tr\u1eeb l\u01b0\u01a1ng kh\xe1c",value:0,note:""},{name:"T\u1ed5ng kh\u1ea5u tr\u1eeb",value:0,note:""}],Gi=function(e){return Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(Mi,{})}),Object(n.jsx)(R.a,{item:!0,xs:5,children:Object(n.jsx)(zi,{})}),Object(n.jsx)(R.a,{item:!0,xs:7,children:Object(n.jsx)(Pi,{rows1:Fi,rows:Bi,rows2:_i,rows3:Ki})})]})},Vi=function(e){return Object(n.jsx)(Ya,{children:Object(n.jsx)(Gi,{})})},Ui=a(778),Yi=a(285),qi=a.n(Yi);function Xi(){var e=Object(fe.b)().enqueueSnackbar,t=Object(T.g)(),a=Object(c.useState)({fullName:"",id:"",description:"",departmentCode:""}),i=Object(E.a)(a,2),r=i[0],o=i[1],s=Object(T.i)().id,l=function(){var a=Object(N.a)(I.a.mark((function a(n){var c,i;return I.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Pe({id:n});case 2:(c=a.sent).data&&0===c.data.errorCode?(i=c.data.data,o(Object(d.a)(Object(d.a)({},r),{},{fullName:i.fullName,id:n,description:i.description,departmentCode:i.departmentCode}))):403==c.status||401==c.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){t.push("/")}),1e3)):e("L\u1ed7i",{variant:"error"});case 4:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}();return Object(c.useEffect)((function(){l(s)}),[]),Object(n.jsxs)(P.a,{children:[Object(n.jsx)("div",{style:{display:"block",backgroundColor:"#3c8dbc",height:"150px"},children:Object(n.jsxs)("div",{style:{position:"relative",bottom:"-70px"},children:[Object(n.jsx)(Pa.a,{style:{height:"150px",width:"150px",margin:"0 auto"},children:"TungNguyen"}),Object(n.jsx)("p",{style:{textAlign:"center",color:"dimgrey",fontSize:"15px"},children:r.fullName})]})}),Object(n.jsx)("div",{style:{height:"140px",backgroundColor:"white"}}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(R.a,{children:[Object(n.jsx)("div",{style:{textAlign:"center",backgroundColor:"#F5F7F7",fontSize:"15px"},children:r.description}),Object(n.jsx)(oa.a,{}),Object(n.jsx)("div",{style:{textAlign:"center",backgroundColor:"#F5F7F7",fontSize:"15px"},children:r.departmentCode})]}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:Object(n.jsxs)(Ui.a,{fullWidth:!0,variant:"contained",children:[Object(n.jsx)(z.a,{size:"small",style:{backgroundColor:"white"},startIcon:Object(n.jsx)(qi.a,{}),children:"T\u1ea3i h\u1ed3 s\u01a1"}),Object(n.jsx)(z.a,{size:"small",style:{backgroundColor:"white"},startIcon:Object(n.jsx)(qi.a,{}),children:"T\u1ea3i h\u1ee3p \u0111\u1ed3ng"})]})})]})}var Ji=a(401),Qi=a.n(Ji),Zi=a(400),$i=a.n(Zi),er=a(402),tr=a.n(er),ar=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a),nr=[{value:"0",label:"N\u1eef"},{value:"1",label:"Nam"}],cr=[{value:"0",label:"Ngh\u1ec9"},{value:"1",label:"Ho\u1ea1t \u0111\u1ed9ng"}],ir=[{value:"KT",label:"K\u0129 thu\u1eadt"},{value:"HR",label:"Nh\xe2n s\u1ef1"}];function rr(e){var t=e.children,a=e.value,c=e.index,i=Object(k.a)(e,["children","value","index"]);return Object(n.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==c,id:"full-width-tabpanel-".concat(c),"aria-labelledby":"full-width-tab-".concat(c)},i),{},{children:a===c&&Object(n.jsx)(xn.a,{p:3,children:Object(n.jsx)(ce.a,{children:t})})}))}function or(e){return{id:"scrollable-prevent-tab-".concat(e),"aria-controls":"scrollable-prevent-tabpanel-".concat(e)}}var sr=Object(A.a)((function(e){return{root:{flexGrow:1,width:"100%",backgroundColor:e.palette.background.paper},container:{maxHeight:500}}}));function lr(e){var t=sr(),a=Object(T.g)(),i=Object(fe.b)().enqueueSnackbar,r=Object(c.useState)(0),o=Object(E.a)(r,2),s=o[0],l=o[1],j=Object(c.useState)(!1),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(Date.now()),p=Object(E.a)(O,2),m=p[0],x=p[1],g=Object(c.useState)(""),f=Object(E.a)(g,2),v=(f[0],f[1],Object(c.useState)({fullName:"",id:"",cardId:"",code:"",gender:1,issueDate:"",incomeTaxCode:"",issuePlace:"",workingStatus:1,birthPlace:"",dateOfBirth:"",temporaryAddress:"",phone:"",email:"",bankAccount:"",socialInsuranceCode:"",socialInsurancePayroll:"",socialInsuranceStartDate:"",workDate:"",description:"",departmentCode:"",expire:"",contractCode:"",contractCodeReal:"",salaryTry:"",salaryReal:"",inOfficial:"",kindContract:""})),y=Object(E.a)(v,2),C=y[0],w=y[1],S=Object(T.i)().id,k=function(){var e=Object(N.a)(I.a.mark((function e(t){var n,c;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pe({id:t});case 2:(n=e.sent).data&&0===n.data.errorCode?(c=n.data.data,w(Object(d.a)(Object(d.a)({},C),{},{fullName:c.fullName,id:t,cardId:c.cardId,code:c.code,gender:c.gender,issueDate:Object(J.a)(c.issueDate),incomeTaxCode:c.incomeTaxCode,issuePlace:c.issuePlace,workingStatus:c.workingStatus,birthPlace:c.birthPlace,dateOfBirth:Object(J.a)(c.dateOfBirth),temporaryAddress:c.temporaryAddress,phone:c.phone,email:c.email,bankAccount:c.bankAccount,socialInsuranceCode:c.socialInsuranceCode,socialInsurancePayroll:c.socialInsurancePayroll,socialInsuranceStartDate:Object(J.a)(c.socialInsuranceStartDate),socialInsuranceEndDate:Object(J.a)(c.socialInsuranceEndDate),workDate:Object(J.a)(c.workDate),description:c.description,departmentCode:c.departmentCode}))):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){a.push("/")}),1e3)):i("L\u1ed7i",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(c.useEffect)((function(){k(S)}),[]);var D=function(){var e=Object(N.a)(I.a.mark((function e(){var t;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae(C);case 2:(t=e.sent).data&&0===t.data.errorCode?i("Ch\u1ec9nh s\u1eeda th\xe0nh c\xf4ng",{variant:"success"}):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){a.push("/")}),100)):i("L\u1ed7i",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=function(){h(!1)};return Object(n.jsxs)(P.a,{className:t.root,children:[Object(n.jsx)(Ge.a,{square:!0,children:Object(n.jsxs)(gn.a,{value:s,onChange:function(e,t){l(t)},textColor:"primary",variant:"fullWidth","aria-label":"scrollable prevent tabs example",children:[Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"Th\xf4ng tin c\u01a1 b\u1ea3n",icon:Object(n.jsx)(Un.a,{}),"aria-label":"phone"},or(0))),Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"Qu\xe1 tr\xecnh c\xf4ng t\xe1c",icon:Object(n.jsx)($i.a,{}),"aria-label":"favorite"},or(1))),Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"H\u1ee3p \u0111\u1ed3ng",icon:Object(n.jsx)(Qi.a,{}),"aria-label":"help"},or(3))),Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"BH & Thu\u1ebf TNCN",icon:Object(n.jsx)(tr.a,{}),"aria-label":"shopping"},or(4)))]})}),Object(n.jsxs)(rr,{value:s,index:0,style:{position:"relative",padding:"10px"},children:[Object(n.jsx)("p",{children:Object(n.jsx)("b",{children:"Th\xf4ng tin c\u01a1 b\u1ea3n"})}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(R.a,{container:!0,spacing:5,children:[Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-around",alignItems:"center",item:!0,xs:12,sm:6,children:[Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"T\xean nh\xe2n vi\xean"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.fullName,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{fullName:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Email"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.email,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{email:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"S\u1ed1 \u0111i\u1ec7n tho\u1ea1i"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.phone,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{phone:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"M\xe3 nh\xe2n vi\xean"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.code,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{code:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Gi\u1edbi t\xednh"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{select:!0,value:C.gender,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{gender:parseInt(e.target.value)}))},fullWidth:!0,children:nr.map((function(e){return Object(n.jsx)(rc.a,{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"M\xe3 s\u1ed1 thu\u1ebf c\xe1 nh\xe2n"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.incomeTaxCode,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{incomeTaxCode:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Sinh nh\u1eadt"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)("form",{className:t.container,noValidate:!0,children:Object(n.jsx)(L.a,{id:"date",type:"date",fullWidth:!0,InputLabelProps:{shrink:!0},value:C.dateOfBirth,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{dateOfBirth:e.target.value}))}})})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"M\xe3 s\u1ed1 b\u1ea3o hi\u1ec3m x\xe3 h\u1ed9i"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.socialInsuranceCode,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{socialInsuranceCode:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Th\u1eddi gian k\u1ebft th\xfac BHXH"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)("form",{className:t.container,noValidate:!0,children:Object(n.jsx)(L.a,{id:"date",type:"date",fullWidth:!0,InputLabelProps:{shrink:!0},value:C.socialInsuranceEndDate,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{socialInsuranceEndDate:e.target.value}))}})})})]}),Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",item:!0,xs:12,sm:6,children:[Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"S\u1ed1 CMND-TCC"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.cardId,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{cardId:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Ng\xe0y c\u1ea5p CMND-TCC"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)("form",{className:t.container,noValidate:!0,children:Object(n.jsx)(L.a,{id:"date",type:"date",value:C.issueDate,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{issueDate:e.target.value}))},fullWidth:!0,InputLabelProps:{shrink:!0}})})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Th\u1eddi gian b\u1eaft \u0111\u1ea7u BHXH"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)("form",{className:t.container,noValidate:!0,children:Object(n.jsx)(L.a,{id:"date",type:"date",value:C.socialInsuranceStartDate,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{socialInsuranceStartDate:e.target.value}))},fullWidth:!0,InputLabelProps:{shrink:!0}})})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"N\u01a1i c\u1ea5p CMND-TCC"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.issuePlace,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{issuePlace:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Tr\u1ea1ng th\xe1i"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{select:!0,value:C.workingStatus,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{workingStatus:parseInt(e.target.value)}))},fullWidth:!0,children:cr.map((function(e){return Object(n.jsx)(rc.a,{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Bi\xean ch\u1ebf \u0111\xf3ng BHXH"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.socialInsurancePayroll,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{socialInsurancePayroll:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"S\u1ed1 t\xe0i kho\u1ea3n"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.bankAccount,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{bankAccount:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Qu\xea qu\xe1n"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.birthPlace,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{birthPlace:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"H\u1ed9 kh\u1ea9u th\u01b0\u1eddng tr\xfa"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.temporaryAddress,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{temporaryAddress:e.target.value}))}})})]})]}),Object(n.jsx)("p",{children:Object(n.jsx)("b",{children:"Th\xf4ng tin c\xf4ng vi\u1ec7c"})}),Object(n.jsx)(oa.a,{}),Object(n.jsxs)(R.a,{container:!0,spacing:5,style:{marginBottom:"10px"},children:[Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-around",alignItems:"center",item:!0,xs:12,sm:6,children:[Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Ng\xe0y v\xe0o l\xe0m (th\u1eed vi\u1ec7c)"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)("form",{className:t.container,noValidate:!0,children:Object(n.jsx)(L.a,{id:"date",type:"date",value:C.workDate,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{workDate:e.target.value}))},fullWidth:!0,InputLabelProps:{shrink:!0}})})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"H\u1ea1n"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.expire,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{expire:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Ng\xe0y v\xe0o l\xe0m (ch\xednh th\u1ee9c)"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)("form",{className:t.container,noValidate:!0,children:Object(n.jsx)(L.a,{id:"date",type:"date",value:C.dateOfBirth,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{dateOfBirth:e.target.value}))},fullWidth:!0,InputLabelProps:{shrink:!0}})})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"L\u01b0\u01a1ng ch\xednh th\u1ee9c"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.salaryReal,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{salaryReal:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Ch\u1ee9c v\u1ee5"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.description,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{description:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Ng\xe0y ngh\u1ec9 vi\u1ec7c"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)("form",{className:t.container,noValidate:!0,children:Object(n.jsx)(L.a,{id:"date",type:"date",value:C.dateOfBirth,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{dateOfBirth:e.target.value}))},fullWidth:!0,InputLabelProps:{shrink:!0}})})})]}),Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",item:!0,xs:12,sm:6,children:[Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"S\u1ed1 h\u1ee3p \u0111\u1ed3ng th\u1eed vi\u1eb9c"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.contractCode,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{contractCode:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"L\u01b0\u01a1ng th\u1eed vi\u1ec7c"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.salaryTry,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{salaryTry:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"S\u1ed1 h\u1ee3p \u0111\u1ed3ng lao \u0111\u1ed9ng"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.contractCodeReal,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{contractCodeReal:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Lo\u1ea1i h\u1ee3p \u0111\u1ed3ng lao \u0111\u1ed9ng"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{value:C.kindContract,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{kindContract:e.target.value}))},fullWidth:!0})}),Object(n.jsx)(R.a,{item:!0,xs:6,children:Object(n.jsx)("p",{children:"Ph\xf2ng ban"})}),Object(n.jsx)(R.a,{item:!0,xs:6,style:{paddingRight:"30px"},children:Object(n.jsx)(L.a,{select:!0,value:C.departmentCode,onChange:function(e){w(Object(d.a)(Object(d.a)({},C),{},{departmentCode:e.target.value}))},SelectProps:{native:!0},style:{width:"100%"},children:ir.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})})]})]}),Object(n.jsx)(z.a,{variant:"contained",color:"primary",style:{position:"absolute",bottom:"0px",right:"50px",marginBottom:"12px"},onClick:D,children:"S\u1eeda"})]}),Object(n.jsxs)(rr,{value:s,index:1,children:[Object(n.jsxs)(ct.a,{fullWidth:"true",maxWidth:"sm",open:u,onClose:A,"aria-labelledby":"max-width-dialog-title",children:[Object(n.jsx)(st.a,{id:"max-width-dialog-title",children:"Th\xeam m\u1edbi ho\u1ea1t \u0111\u1ed9ng"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{children:Object(n.jsxs)(R.a,{container:!0,spacing:3,style:{padding:20},children:[Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"10px",fontSize:"16px"},children:"T\xean ho\u1ea1t \u0111\u1ed9ng"})}),Object(n.jsx)(R.a,{item:!0,xs:8,style:{paddingLeft:"33px"},children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"}})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"22px",fontSize:"16px"},children:"Ng\xe0y"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20,width:"98%"},disableToolbar:!0,variant:"inline",format:"dd/MM/yyyy",margin:"normal",id:"date-picker-inline",value:m,onChange:function(e){x(e)},KeyboardButtonProps:{"aria-label":"change date"}})})})]})})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:A,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:function(){},style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"Th\xeam m\u1edbi"})]})]}),Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",style:{padding:10},children:[Object(n.jsx)(ce.a,{variant:"h5"}),Object(n.jsx)(z.a,{style:{backgroundColor:"#3C8DBC",color:"white"},variant:"contained",onClick:function(){h(!0)},children:"Th\xeam m\u1edbi ho\u1ea1t \u0111\u1ed9ng"})]}),Object(n.jsx)("br",{}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsx)(nn.a,{children:e.columns.map((function(e){return Object(n.jsx)(ar,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)}))})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsx)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)}))})}))})]})})]}),Object(n.jsx)(rr,{value:s,index:2,children:"Item Three"}),Object(n.jsx)(rr,{value:s,index:3,children:"Item Four"})]})}function dr(e,t,a){return{stt:e,date:t,activities:a}}var jr=[{id:"stt",label:"STT",minWidth:10,align:"center"},{id:"date",label:"Ng\xe0y",minWidth:80,align:"center"},{id:"activities",label:"Ho\u1ea1t \u0111\u1ed9ng",minWidth:150,align:"center"}],br=[dr(1,"20/11/2020","V\xe0o c\xf4ng ty"),dr(2,"15/12/2020","K\xfd h\u1ee3p \u0111\u1ed3ng th\u1eed vi\u1ec7c"),dr(3,"30/12/2020","K\xfd h\u1ee3p \u0111\u1ed3ng ch\xednh th\u1ee9c")];function ur(){return Object(n.jsxs)(Ya,{children:[Object(n.jsx)("h2",{children:"Chi ti\u1ebft nh\xe2n vi\xean"}),Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:3,children:Object(n.jsx)(Xi,{})}),Object(n.jsx)(R.a,{item:!0,xs:9,children:Object(n.jsx)(lr,{columns:jr,rows:br})})]})]})}var hr=function(e){return Object(n.jsx)(ur,{})},Or=a(799),pr=a(170),mr=a.n(pr),xr=[{value:"0",label:"N\u1eef"},{value:"1",label:"Nam"}],gr=[{value:"KT",label:"K\u0129 thu\u1eadt"},{value:"HR",label:"Nh\xe2n s\u1ef1"}];function fr(e){var t=Object(c.useState)(""),a=Object(E.a)(t,2),r=(a[0],a[1],Object(c.useState)(!0)),o=Object(E.a)(r,2),s=o[0],l=o[1],j=Object(c.useState)(!1),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(fe.b)().enqueueSnackbar,p=Object(T.g)(),m=Object(c.useState)({fullName:"",gender:0,dateOfBirth:null,birthPlace:"",phone:"",email:"",room:"",description:"",cardId:"",issueDate:null,issuePlace:"",temporaryAddress:"",incomeTaxCode:"",socialInsuranceCode:"",socialInsurancePayroll:"",socialInsuranceStartDate:null,socialInsuranceEndDate:null,workingStatus:1,departmentCode:"",workDate:null,code:""}),x=Object(E.a)(m,2),g=x[0],f=x[1],v=function(){var e=Object(N.a)(I.a.mark((function e(){var t;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ae(g);case 2:(t=e.sent).data&&0===t.data.errorCode?(O("T\u1ea1o m\u1edbi th\xe0nh c\xf4ng",{variant:"success"}),setTimeout((function(){p.push("/employee")}),1e3)):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){p.push("/")}),1e3)):O("L\u1ed7i",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.jsxs)(i.a.Fragment,{children:[Object(n.jsx)(ce.a,{variant:"h5",children:"Th\xeam m\u01a1\u0301i nh\xe2n vi\xean"}),Object(n.jsxs)(Ge.a,{elevation:3,style:{padding:20,marginTop:20},children:[Object(n.jsxs)(Yt.a,{button:!0,onClick:function(){return l(!s)},children:[s?Object(n.jsx)(mr.a,{}):Object(n.jsx)(Or.a,{}),Object(n.jsx)(qt.a,{primary:"Th\xf4ng tin c\u01a1 b\u1ea3n"})]}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(da.a,{style:{padding:10},in:s,timeout:"auto",unmountOnExit:!0,children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{required:!0,id:"name",name:"name",label:"T\xean nh\xe2n vi\xean",fullWidth:!0,autoComplete:"given-name",value:g.fullName,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{fullName:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{select:!0,value:g.gender,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{gender:parseInt(e.target.value)}))},label:"Gi\u1edbi t\xednh",fullWidth:!0,children:xr.map((function(e){return Object(n.jsx)(rc.a,{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{id:"dateOfbirth",type:"date",name:"dateOfbirth",label:"Nga\u0300y sinh",fullWidth:!0,autoComplete:"given-name",InputLabelProps:{shrink:!0},value:g.dateOfBirth,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{dateOfBirth:e.target.value}))}})})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"S\xf4\u0301 CMTND",fullWidth:!0,autoComplete:"given-name",value:g.cardId,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{cardId:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",type:"date",label:"Nga\u0300y c\xe2\u0301p CMTND",fullWidth:!0,autoComplete:"given-name",InputLabelProps:{shrink:!0},value:g.issueDate,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{issueDate:e.target.value}))}})})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"N\u01a1i c\xe2\u0301p CMTND",fullWidth:!0,autoComplete:"given-name",value:g.issuePlace,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{issuePlace:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"address",name:"address",label:"Qu\xea qua\u0301n",fullWidth:!0,autoComplete:"shipping address-line2",value:g.birthPlace,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{birthPlace:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"H\u1ed9 kh\u1ea9u th\u01b0\u1eddng ch\xfa",fullWidth:!0,autoComplete:"given-name",value:g.temporaryAddress,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{temporaryAddress:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"phone",name:"phone",label:"S\xf4\u0301 \u0111i\xea\u0323n thoa\u0323i",fullWidth:!0,autoComplete:"family-name",value:g.phone,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{phone:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{required:!0,id:"email",name:"email",label:"Email",fullWidth:!0,autoComplete:"family-name",value:g.email,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{email:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"email",name:"email",label:"M\xe3 s\u1ed1 thu\u1ebf thu nh\u1eadp c\xe1 nh\xe2n",fullWidth:!0,autoComplete:"family-name",value:g.incomeTaxCode,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{incomeTaxCode:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"address",name:"address",label:"S\u1ed1 TKNH nh\u1eadn l\u01b0\u01a1ng",fullWidth:!0,autoComplete:"shipping address-line2",value:g.bankAccount,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{bankAccount:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"email",name:"email",label:"M\xe3 s\u1ed1 b\u1ea3o hi\u1ec3m x\xe3 h\u1ed9i",fullWidth:!0,autoComplete:"family-name",value:g.socialInsuranceCode,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{socialInsuranceCode:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"email",name:"email",label:"Bi\xean ch\u1ebf \u0111\xf3ng b\u1ea3o hi\u1ec3m x\xe3 h\u1ed9i",fullWidth:!0,autoComplete:"family-name",value:g.socialInsurancePayroll,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{socialInsurancePayroll:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{id:"startInsurance",name:"startInsurance",type:"date",label:"Th\u1eddi gian b\u1eaft \u0111\u1ea7u (BHXH)",fullWidth:!0,autoComplete:"given-name",InputLabelProps:{shrink:!0},value:g.socialInsuranceStartDate,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{socialInsuranceStartDate:e.target.value}))}})})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{id:"finishInsurance",name:"finishInsurance",type:"date",label:"Th\u1eddi gian k\u1ebft th\xfac (BHXH)",fullWidth:!0,autoComplete:"given-name",InputLabelProps:{shrink:!0},value:g.socialInsuranceEndDate,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{socialInsuranceEndDate:e.target.value}))}})})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{required:!0,id:"code",name:"code",label:"M\xe3 nh\xe2n vi\xean",fullWidth:!0,autoComplete:"given-name",value:g.code,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{code:e.target.value}))}})})})]})}),Object(n.jsxs)(Yt.a,{button:!0,onClick:function(){return h(!u)},children:[u?Object(n.jsx)(mr.a,{}):Object(n.jsx)(Or.a,{}),Object(n.jsx)(qt.a,{primary:"Th\xf4ng tin c\xf4ng vi\u1ec7c"})]}),Object(n.jsx)(oa.a,{}),Object(n.jsx)(da.a,{style:{padding:10},in:u,timeout:"auto",unmountOnExit:!0,children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",type:"date",label:"Ng\xe0y v\xe0o l\xe0m (th\u1eed vi\u1ec7c)",fullWidth:!0,autoComplete:"given-name",InputLabelProps:{shrink:!0}})})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"H\u1ea1n",fullWidth:!0,autoComplete:"given-name"})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"S\u1ed1 h\u1ee3p \u0111\u1ed3ng th\u1eed vi\u1ec7c",fullWidth:!0,autoComplete:"given-name"})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"L\u01b0\u01a1ng th\u1eed vi\u1ec7c",fullWidth:!0,autoComplete:"given-name"})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",type:"date",label:"Ng\xe0y v\xe0o l\xe0m (Ch\xednh th\u1ee9c)",fullWidth:!0,autoComplete:"given-name",InputLabelProps:{shrink:!0},value:g.workDate,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{workDate:e.target.value}))}})})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"S\u1ed1 h\u1ee3p \u0111\u1ed3ng lao \u0111\u1ed9ng",fullWidth:!0,autoComplete:"given-name"})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"L\u01b0\u01a1ng ch\xednh th\u1ee9c",fullWidth:!0,autoComplete:"given-name"})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"cmnd",name:"cmnd",label:"Lo\u1ea1i h\u1ee3p \u0111\u1ed3ng lao \u0111\u1ed9ng",fullWidth:!0,autoComplete:"given-name"})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{id:"postion",name:"postion",label:"Ch\u01b0\u0301c vu\u0323",fullWidth:!0,autoComplete:"family-name",value:g.description,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{description:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)(L.a,{select:!0,label:"Ph\xf2ng ban",value:g.departmentCode,onChange:function(e){f(Object(d.a)(Object(d.a)({},g),{},{departmentCode:e.target.value}))},SelectProps:{native:!0},style:{width:"100%"},children:gr.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)(R.a,{item:!0,xs:12,sm:6,children:Object(n.jsx)("form",{noValidate:!0,children:Object(n.jsx)(L.a,{id:"department",name:"department",type:"date",label:"Ng\xe0y ngh\u1ec9 vi\u1ec7c",fullWidth:!0,autoComplete:"family-name",InputLabelProps:{shrink:!0}})})})]})}),Object(n.jsx)(R.a,{container:!0,xs:12,spacing:3,justify:"center",alignItems:"flex-end",style:{marginTop:20},direction:"column",children:Object(n.jsxs)(R.a,{item:!0,xs:12,sm:6,children:[Object(n.jsx)(z.a,{variant:"contained",color:"secondary",onClick:function(){p.push("/employee")},children:"Hu\u0309y"}),Object(n.jsx)(z.a,{onClick:v,variant:"contained",style:{backgroundColor:"green",marginLeft:30,color:"white"},children:"Ta\u0323o"})]})})]})]})}var vr=function(e){return Object(n.jsx)(Ya,{children:Object(n.jsx)(fr,{})})},yr=function(){var e=Object(T.g)(),t=Object(c.useState)({fullName:"",id:"",cardId:"",code:"",gender:1,issueDate:"",incomeTaxCode:"",issuePlace:"",workingStatus:1,birthPlace:"",dateOfBirth:"",temporaryAddress:"",phone:"",email:"",bankAccount:"",socialInsuranceCode:"",socialInsurancePayroll:"",socialInsuranceStartDate:"",workDate:"",description:"",departmentCode:"",twFromDate:"",no:"",wfromDate:"",regimeTrain:""}),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(T.i)().id,s=Object(fe.b)().enqueueSnackbar,l=function(){var t=Object(N.a)(I.a.mark((function t(a){var n,c;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pe({id:a});case 2:(n=t.sent).data&&0===n.data.errorCode?(c=n.data.data,r(Object(d.a)(Object(d.a)({},i),{},{fullName:c.fullName,id:a,cardId:c.cardId,code:c.code,gender:c.gender,issueDate:Object(J.c)(c.issueDate),incomeTaxCode:c.incomeTaxCode,issuePlace:c.issuePlace,workingStatus:c.workingStatus,birthPlace:c.birthPlace,dateOfBirth:Object(J.c)(c.dateOfBirth),temporaryAddress:c.temporaryAddress,phone:c.phone,email:c.email,bankAccount:c.bankAccount,socialInsuranceCode:c.socialInsuranceCode,socialInsurancePayroll:c.socialInsurancePayroll,socialInsuranceStartDate:Object(J.c)(c.socialInsuranceStartDate),socialInsuranceEndDate:Object(J.c)(c.socialInsuranceEndDate),workDate:Object(J.c)(c.workDate),description:c.description,departmentCode:c.departmentCode,twFromDate:null!=c.myContract?Object(J.c)(c.myContract.twFromDate):"",no:null!=c.myContract?c.myContract.no:"",wfromDate:null!=c.myContract?Object(J.c)(c.myContract.wfromDate):"",regimeTrain:null!=c.myContract?c.myContract.regimeTrain:"",cancelDate:null!=c.myContract?Object(J.c)(c.myContract.cancelDate):""}))):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){e.push("/")}),1e3)):s("L\u1ed7i",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return Object(c.useEffect)((function(){l(o)}),[]),Object(n.jsxs)(Ge.a,{children:[Object(n.jsx)("div",{style:{textAlign:"center",fontSize:"25px",fontWeight:"bold"},children:"Th\xf4ng tin nh\xe2n vi\xean"}),Object(n.jsxs)(R.a,{container:!0,spacing:2,style:{padding:"10px"},children:[Object(n.jsx)(R.a,{item:!0,xs:12,style:{fontSize:"22px",fontWeight:"bold"},children:"1. Th\xf4ng tin c\u01a1 b\u1ea3n"}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["T\xean nh\xe2n vi\xean: ",i.fullName]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Gi\u1edbi t\xednh: ",1==i.gender?"Nam":"N\u1eef"]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Ng\xe0y sinh: ",i.dateOfBirth]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["S\u1ed1 CMTND: ",i.cardId]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Ng\xe0y c\u1ea5p CMTND: ",i.issueDate]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["N\u01a1i c\u1ea5p CMTND: ",i.issuePlace]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Qu\xea qu\xe1n: ",i.birthPlace]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["H\u1ed9 kh\u1ea9u th\u01b0\u1eddng ch\xfa: ",i.temporaryAddress]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["S\u1ed1 \u0111i\u1ec7n tho\u1ea1i: ",i.phone]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Email: ",i.email]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["M\xe3 s\u1ed1 thu\u1ebf c\xe1 nh\xe2n: ",i.incomeTaxCode]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["S\u1ed1 t\xe0i kho\u1ea3n: ",i.bankAccount]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["M\xe3 s\u1ed1 b\u1ea3o hi\u1ec3m x\xe3 h\u1ed9i: ",i.socialInsuranceCode]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Bi\xean ch\u1ebf \u0111\xf3ng b\u1ea3o hi\u1ec3m x\xe3 h\u1ed9i: ",i.socialInsurancePayroll]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Th\u1eddi gian b\u1eaft \u0111\u1ea7u( BHXH ): ",i.socialInsuranceStartDate]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Th\u1eddi gian k\u1ebft th\xfac( BHXH ): ",i.socialInsuranceEndDate]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["M\xe3 nh\xe2n vi\xean: ",i.code]}),Object(n.jsx)(R.a,{item:!0,xs:12,style:{fontSize:"22px",fontWeight:"bold"},children:"2. Th\xf4ng tin c\xf4ng vi\u1ec7c"}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Ng\xe0y v\xe0o l\xe0m(th\u1eed vi\u1ec7c): ",i.twFromDate]}),Object(n.jsx)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:"H\u1ea1n: Nam"}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["S\u1ed1 h\u1ee3p \u0111\u1ed3ng th\u1eed vi\u1ec7c: ",i.no]}),Object(n.jsx)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:"L\u01b0\u01a1ng th\u1eed vi\u1ec7c: 5 tri\u1ec7u"}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Ng\xe0y v\xe0o l\xe0m( ch\xednh th\u1ee9c ): ",i.wfromDate]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["S\u1ed1 h\u1ee3p \u0111\u1ed3ng lao \u0111\u1ed9ng: ",i.no]}),Object(n.jsx)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:"L\u01b0\u01a1ng ch\xednh th\u1ee9c: HN"}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Lo\u1ea1i h\u1ee3p \u0111\u1ed3ng lao \u0111\u1ed9ng: ",i.regimeTrain]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Ch\u1ee9c v\u1ee5: ",i.description]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Ph\xf2ng ban: ",i.departmentCode]}),Object(n.jsxs)(R.a,{item:!0,xs:4,style:{fontSize:"18px"},children:["Ng\xe0y ngh\u1ec9 vi\u1ec7c: ",i.cancelDate]})]})]})},Cr=function(){return Object(n.jsx)(Ya,{children:Object(n.jsx)(yr,{})})},wr=a(12),Sr=function(e){return{title:{marginLeft:e.spacing(2),marginBottom:0,marginRight:e.spacing(2)},item:{flexDirection:"row-reverse"},label:{textAlign:"right"}}},kr=Object(nt.a)(Sr)((function(e){e.classes;var t=Object(k.a)(e,["classes"]);return Object(n.jsx)("div",{children:Object(n.jsx)(Ve.d.Root,Object(d.a)({},t))})})),Tr=Object(nt.a)(Sr)((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Item,Object(d.a)(Object(d.a)({},a),{},{className:t.item}))})),Dr=Object(nt.a)(Sr)((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Label,Object(d.a)(Object(d.a)({},a),{},{className:t.label}))})),Ir=[{series:["Nh\xe2n vi\xean v\xe0o","Nh\xe2n vi\xean ra"]}],Nr=function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={data:Kt},n}return Object(Fe.a)(a,[{key:"render",value:function(){var e=this.state.data;return Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(Ve.c,{data:e,children:[Object(n.jsx)(Ue.c,{factory:wr.zb}),Object(n.jsx)(Ve.a,{}),Object(n.jsx)(Ve.i,{}),Object(n.jsx)(Ve.b,{valueField:"come",argumentField:"state",name:"V\xe0o c\xf4ng ty"}),Object(n.jsx)(Ve.b,{valueField:"out",argumentField:"state",name:"Ra c\xf4ng ty"}),Object(n.jsx)(Ue.n,{stacks:Ir}),Object(n.jsx)(Ve.d,{rootComponent:kr,itemComponent:Tr,labelComponent:Dr})]})})}}]),a}(c.PureComponent),Er=function(){var e=Object(c.useState)(Date.now()),t=Object(E.a)(e,2),a=t[0],i=t[1];return Object(n.jsxs)(Ge.a,{children:[Object(n.jsx)("div",{style:{textAlign:"center",fontSize:"30px",fontWeight:"bold"},children:"B\xe1o c\xe1o nh\xe2n vi\xean v\xe0o/ra"}),Object(n.jsx)("div",{style:{textAlign:"right"},children:Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20,width:"15%"},views:["year"],disableToolbar:!0,variant:"inline",format:"yyyy",margin:"normal",id:"date-picker-inline",value:a,onChange:function(e){console.log(Object(J.h)(e)),i(e)},KeyboardButtonProps:{"aria-label":"change date"}})})}),Object(n.jsx)(Nr,{})]})},Ar=function(){return Object(n.jsx)(Ya,{children:Object(n.jsx)(Er,{})})},Rr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.GETLISTDAYOFFPAGING,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.CREATEDAYOFF,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Lr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.DELETEDAYOFF,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Wr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETDAYOFF,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Hr=Object(A.a)({root:{width:"100%"},container:{maxHeight:1e3}}),zr=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a);function Mr(e){var t=Hr(),a=i.a.useState(0),r=Object(E.a)(a,2),o=(r[0],r[1],i.a.useState(10)),s=Object(E.a)(o,2),l=(s[0],s[1],Object(c.useState)(!1)),j=Object(E.a)(l,2),b=j[0],u=j[1],h=Object(c.useState)(!1),O=Object(E.a)(h,2),p=O[0],m=O[1],x=Object(c.useState)(""),g=Object(E.a)(x,2),f=g[0],v=g[1],y=Object(c.useState)({id:"",name:"",dayOff:""}),C=Object(E.a)(y,2),w=C[0],S=C[1],k=Object(fe.b)().enqueueSnackbar,D=Object(T.g)(),A=function(){u(!1)},P=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Lr({id:f});case 2:(a=t.sent).data&&0==a.data.errorCode?(k("X\xf3a th\xe0nh c\xf4ng",{variant:"success"}),u(!1),e.getDataAgain(10*Math.random())):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),W=function(){var e=Object(N.a)(I.a.mark((function e(t){var a;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(t),e.next=3,Wr({id:t});case 3:(a=e.sent).data&&0==a.data.errorCode?(S({id:t,name:a.data.data.name,dayOff:Object(J.a)(a.data.data.dayOff)}),m(!0)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(e){m(!1)},B=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Pr(w);case 2:(a=t.sent).data&&0==a.data.errorCode?(k("C\u1eadp nh\u1eadt th\xe0nh c\xf4ng",{variant:"success"}),m(!1),e.getDataAgain(10*Math.random())):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsxs)(ct.a,{open:b,onClose:A,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(n.jsx)(st.a,{id:"alert-dialog-title"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{id:"alert-dialog-description",style:{fontWeight:"bold"},children:"B\u1ea1n c\xf3 th\u1ef1c s\u1ef1 mu\u1ed1n x\xf3a ng\xe0y ngh\u1ec9 n\xe0y?"})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:A,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:P,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsxs)(ct.a,{open:p,onClose:H,"aria-labelledby":"form-dialog-title",children:[Object(n.jsx)(st.a,{id:"form-dialog-title",children:"Th\xf4ng tin ng\xe0y l\u1ec5"}),Object(n.jsxs)(rt.a,{style:{height:"150px"},children:[Object(n.jsx)(ot.a,{style:{width:"500px"}}),Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"3%",fontSize:"16px"},children:"T\xean ng\xe0y ngh\u1ec9"})}),Object(n.jsx)(R.a,{item:!0,xs:8,style:{paddingLeft:"33px"},children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:w.name,onChange:function(e){S(Object(d.a)(Object(d.a)({},w),{},{name:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"22px",fontSize:"16px"},children:"Ng\xe0y ngh\u1ec9"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20},disableToolbar:!0,variant:"inline",format:"dd/MM/yyyy",onChange:function(e){S(Object(d.a)(Object(d.a)({},w),{},{dayOff:e}))},margin:"normal",id:"date-picker-inline",value:w.dayOff,KeyboardButtonProps:{"aria-label":"change date"}})})})]})]}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:H,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:B,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(zr,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(zr,{style:{width:180,textAlign:"center"},children:"H\xe0nh \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsxs)(en.a,{style:{textAlign:"center"},children:[Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",style:{color:Ga.main},onClick:function(){W(t.id)},children:Object(n.jsx)(rn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{onClick:function(){!function(e){u(!0),v(e)}(t.id)},"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(sn.a,{fontSize:"inherit"})})]})]},t.code)}))})]})})]})}var Br=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.CREATEWIFI,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Fr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.DELETEWIFI,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_r=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.GETWIFI,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Kr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETWIFIDETAIL,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Gr=Object(A.a)({root:{width:"100%"},container:{maxHeight:1e3}}),Vr=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a);function Ur(e){var t=Gr(),a=i.a.useState(0),r=Object(E.a)(a,2),o=(r[0],r[1],i.a.useState(10)),s=Object(E.a)(o,2),l=(s[0],s[1],Object(c.useState)(!1)),j=Object(E.a)(l,2),b=j[0],u=j[1],h=Object(c.useState)(!1),O=Object(E.a)(h,2),p=O[0],m=O[1],x=Object(c.useState)(""),g=Object(E.a)(x,2),f=g[0],v=g[1],y=Object(c.useState)({id:"",name:"",ip:""}),C=Object(E.a)(y,2),w=C[0],S=C[1],k=Object(fe.b)().enqueueSnackbar,D=Object(T.g)(),A=function(){u(!1)},P=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Fr({id:f});case 2:(a=t.sent).data&&0==a.data.errorCode?(k("X\xf3a th\xe0nh c\xf4ng",{variant:"success"}),u(!1),e.getDataAgain(10*Math.random())):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),W=function(){var e=Object(N.a)(I.a.mark((function e(t){var a;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(t),e.next=3,Kr({id:t});case 3:(a=e.sent).data&&0==a.data.errorCode?(S({id:t,name:a.data.data.name,ip:a.data.data.ip}),m(!0)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(e){m(!1)},B=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Br(w);case 2:(a=t.sent).data&&0==a.data.errorCode?(k("C\u1eadp nh\u1eadt th\xe0nh c\xf4ng",{variant:"success"}),m(!1),e.getDataAgain(10*Math.random())):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsxs)(ct.a,{open:b,onClose:A,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(n.jsx)(st.a,{id:"alert-dialog-title"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{id:"alert-dialog-description",style:{fontWeight:"bold"},children:"B\u1ea1n c\xf3 th\u1ef1c s\u1ef1 mu\u1ed1n x\xf3a wifi n\xe0y?"})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:A,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:P,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsxs)(ct.a,{open:p,onClose:H,"aria-labelledby":"form-dialog-title",children:[Object(n.jsx)(st.a,{id:"form-dialog-title",children:"Th\xf4ng tin ng\xe0y l\u1ec5"}),Object(n.jsxs)(rt.a,{style:{height:"150px"},children:[Object(n.jsx)(ot.a,{style:{width:"500px"}}),Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"4%",fontSize:"16px"},children:"T\xean wifi"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:w.name,onChange:function(e){S(Object(d.a)(Object(d.a)({},w),{},{name:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"3%",fontSize:"16px"},children:"\u0110\u1ecba ch\u1ec9 IP"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:w.ip,onChange:function(e){S(Object(d.a)(Object(d.a)({},w),{},{ip:e.target.value}))}})})]})]}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:H,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:B,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(Vr,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(Vr,{style:{width:180,textAlign:"center"},children:"H\xe0nh \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsxs)(en.a,{style:{textAlign:"center"},children:[Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",style:{color:Ga.main},onClick:function(){W(t.id)},children:Object(n.jsx)(rn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{onClick:function(){!function(e){u(!0),v(e)}(t.id)},"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(sn.a,{fontSize:"inherit"})})]})]},t.code)}))})]})})]})}var Yr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.CREATELOCATION,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.DELETELOCATION,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Xr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",q(ee.GETLOCATION,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Jr=function(){var e=Object(N.a)(I.a.mark((function e(t){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",G(ee.GETLOCATIONDETAIL,t).then((function(e){return e})).catch((function(e){return e})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Qr=Object(A.a)({root:{width:"100%"},container:{maxHeight:1e3}}),Zr=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a);function $r(e){var t=Qr(),a=i.a.useState(0),r=Object(E.a)(a,2),o=(r[0],r[1],i.a.useState(10)),s=Object(E.a)(o,2),l=(s[0],s[1],Object(c.useState)(!1)),j=Object(E.a)(l,2),b=j[0],u=j[1],h=Object(c.useState)(!1),O=Object(E.a)(h,2),p=O[0],m=O[1],x=Object(c.useState)(""),g=Object(E.a)(x,2),f=g[0],v=g[1],y=Object(c.useState)({id:"",name:"",address:""}),C=Object(E.a)(y,2),w=C[0],S=C[1],k=Object(fe.b)().enqueueSnackbar,D=Object(T.g)(),A=function(){u(!1)},P=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qr({id:f});case 2:(a=t.sent).data&&0==a.data.errorCode?(k("X\xf3a th\xe0nh c\xf4ng",{variant:"success"}),u(!1),e.getDataAgain(10*Math.random())):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),W=function(){var e=Object(N.a)(I.a.mark((function e(t){var a;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return v(t),e.next=3,Jr({id:t});case 3:(a=e.sent).data&&0==a.data.errorCode?(S({id:t,name:a.data.data.name,address:a.data.data.address}),m(!0)):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),H=function(e){m(!1)},B=function(){var t=Object(N.a)(I.a.mark((function t(){var a;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Yr(w);case 2:(a=t.sent).data&&0==a.data.errorCode?(k("C\u1eadp nh\u1eadt th\xe0nh c\xf4ng",{variant:"success"}),m(!1),e.getDataAgain(10*Math.random())):403==a.status||401==a.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){D.push("/")}),100)):k("Error!",{variant:"error"});case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsxs)(ct.a,{open:b,onClose:A,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[Object(n.jsx)(st.a,{id:"alert-dialog-title"}),Object(n.jsx)(rt.a,{children:Object(n.jsx)(ot.a,{id:"alert-dialog-description",style:{fontWeight:"bold"},children:"B\u1ea1n c\xf3 th\u1ef1c s\u1ef1 mu\u1ed1n x\xf3a \u0111\u1ecba \u0111i\u1ec3m n\xe0y?"})}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:A,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:P,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsxs)(ct.a,{open:p,onClose:H,"aria-labelledby":"form-dialog-title",children:[Object(n.jsx)(st.a,{id:"form-dialog-title",children:"Th\xf4ng tin \u0111\u1ecba \u0111i\u1ec3m"}),Object(n.jsxs)(rt.a,{style:{height:"150px"},children:[Object(n.jsx)(ot.a,{style:{width:"500px"}}),Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"3%",fontSize:"16px"},children:"T\xean \u0111\u1ecba \u0111i\u1ec3m"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:w.name,onChange:function(e){S(Object(d.a)(Object(d.a)({},w),{},{name:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"3%",fontSize:"16px"},children:"\u0110\u1ecba ch\u1ec9"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:w.address,onChange:function(e){S(Object(d.a)(Object(d.a)({},w),{},{address:e.target.value}))}})})]})]}),Object(n.jsxs)(it.a,{children:[Object(n.jsx)(z.a,{onClick:H,style:{backgroundColor:"#f50057",color:"white"},children:"H\u1ee7y b\u1ecf"}),Object(n.jsx)(z.a,{onClick:B,style:{backgroundColor:"#3f51b5",color:"white"},autoFocus:!0,children:"\u0110\u1ed3ng \xfd"})]})]}),Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(Zr,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(Zr,{style:{width:180,textAlign:"center"},children:"H\xe0nh \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsxs)(en.a,{style:{textAlign:"center"},children:[Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",style:{color:Ga.main},onClick:function(){W(t.id)},children:Object(n.jsx)(rn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{onClick:function(){!function(e){u(!0),v(e)}(t.id)},"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(sn.a,{fontSize:"inherit"})})]})]},t.code)}))})]})})]})}var eo=a(411),to=a(287),ao=a(193),no=Object(to.a)(Object(to.b)({googleMapURL:"https://maps.googleapis.com/maps/api/js?key=AIzaSyCp8XT0JS6arhEBaxXa-wuvGPwKAeErv-s&v=3.exp&libraries=geometry,drawing,places",loadingElement:Object(n.jsx)("div",{style:{height:"100%"}}),containerElement:Object(n.jsx)("div",{style:{height:"600px"}}),mapElement:Object(n.jsx)("div",{style:{height:"100%"}})}),ao.withScriptjs,ao.withGoogleMap)((function(e){var t=Object(c.useState)(),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(),s=Object(E.a)(o,2),l=s[0],d=s[1];return Object(n.jsxs)("div",{style:{backgroundColor:"white",flex:1},children:[Object(n.jsx)(ao.GoogleMap,{onClick:function(e){var t={lat:e.latLng.lat(),lng:e.latLng.lng()};r(t)},defaultZoom:15,defaultCenter:{lat:20.9977344,lng:105.8045952},children:i?Object(n.jsx)(ao.Marker,{position:i}):null}),Object(n.jsx)(R.a,{container:!0,style:{height:450,paddingBottom:150},justify:"center",alignItems:"center",xs:12,children:Object(n.jsx)(R.a,{xs:4,children:Object(n.jsxs)(Ge.a,{elevation:2,style:{padding:20},children:[Object(n.jsxs)(ce.a,{variant:"h6",children:["Longtitude:",i?i.lng:""]}),Object(n.jsxs)(ce.a,{style:{marginTop:10},variant:"h6",children:["Latitude:",i?i.lat:""]}),Object(n.jsx)("div",{}),Object(n.jsx)(L.a,{style:{marginTop:20},id:"standard-basic",fullWidth:!0,label:"T\xean \u0111\u1ecba ch\u1ec9 ch\u1ea5m c\xf4ng",onChange:function(e){d(e.target.value)}}),Object(n.jsxs)(R.a,{container:!0,justify:"flex-end",alignItems:"center",direction:"row",style:{marginTop:20},children:[Object(n.jsx)(z.a,{variant:"contained",color:"primary",onClick:function(){return e.createLocationModal(l,i)},children:"T\u1ea1o"}),Object(n.jsx)(z.a,{style:{marginLeft:30},variant:"contained",color:"secondary",onClick:function(){return e.handleCloseLocation()},children:"H\u1ee7y"})]})]})})})]})})),co=function(e){return Object(n.jsx)(no,{createLocationModal:e.createLocationModal,handleCloseLocation:e.handleCloseLocation})},io=a(286),ro=a.n(io);var oo=function(){return{top:"".concat(50,"%"),left:"".concat(50,"%"),transform:"translate(-".concat(50,"%, -").concat(50,"%)"),display:"flex",outline:"none"}},so=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)},root:{"& > *":{margin:e.spacing(1),width:"25ch"}},button:{margin:e.spacing(1)},paper:{position:"absolute",width:500,backgroundColor:e.palette.background.paper,boxShadow:e.shadows[5],padding:e.spacing(2,4,3),border:"2px solid white"}}})),lo=[{id:"date",label:"T\xean ng\xe0y l\u1ec5",minWidth:120,align:"left"},{id:"dayoff",label:"Ng\xe0y ngh\u1ec9",minWidth:120,align:"left"}],jo=[{id:"name",label:"T\xean wifi",minWidth:120,align:"left"},{id:"ip",label:"IP Address",minWidth:120,align:"left"}],bo=[{id:"address",label:"\u0110\u1ecba ch\u1ec9",minWidth:120,align:"left"}];function uo(e){var t=e.children,a=e.value,c=e.index,i=Object(k.a)(e,["children","value","index"]);return Object(n.jsx)("div",Object(d.a)(Object(d.a)({role:"tabpanel",hidden:a!==c,id:"full-width-tabpanel-".concat(c),"aria-labelledby":"full-width-tab-".concat(c)},i),{},{children:a===c&&Object(n.jsx)(xn.a,{p:3,children:Object(n.jsx)(ce.a,{children:t})})}))}function ho(e){return{id:"scrollable-prevent-tab-".concat(e),"aria-controls":"scrollable-prevent-tabpanel-".concat(e)}}var Oo=function(){var e=so(),t=Object(c.useState)({year:""}),a=Object(E.a)(t,2),i=(a[0],a[1],Object(c.useState)(oo)),r=Object(E.a)(i,1)[0],o=Object(c.useState)(!1),s=Object(E.a)(o,2),l=s[0],j=s[1],b=Object(c.useState)(!1),u=Object(E.a)(b,2),h=u[0],O=u[1],p=Object(c.useState)(!1),m=Object(E.a)(p,2),x=m[0],g=m[1],f=Object(c.useState)(Date.now()),v=Object(E.a)(f,2),y=v[0],C=v[1],w=Object(c.useState)(0),S=Object(E.a)(w,2),k=S[0],D=S[1],A=Object(c.useState)(0),W=Object(E.a)(A,2),H=W[0],B=(W[1],Object(c.useState)(0)),F=Object(E.a)(B,2),_=(F[0],F[1],Object(c.useState)([])),K=Object(E.a)(_,2),G=K[0],V=K[1],U=Object(c.useState)([]),Y=Object(E.a)(U,2),q=Y[0],X=Y[1],Q=Object(c.useState)([]),Z=Object(E.a)(Q,2),$=Z[0],ee=Z[1],te=Object(c.useState)({name:""}),ae=Object(E.a)(te,2),ne=ae[0],ie=ae[1],re=Object(c.useState)({name:"",ip:""}),oe=Object(E.a)(re,2),se=oe[0],le=oe[1],de=Object(c.useState)({name:"",address:""}),je=Object(E.a)(de,2),be=(je[0],je[1]),ue=Object(c.useState)(0),he=Object(E.a)(ue,2),Oe=he[0],pe=he[1],me=Object(fe.b)().enqueueSnackbar,xe=Object(T.g)(),ge=function(e){pe(e)},ve=function(){j(!1)},ye=function(){O(!1)},Ce=function(){g(!1)},we=function(){var e=Object(N.a)(I.a.mark((function e(){var t;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pr({name:ne.name,dayOff:Object(J.a)(y)});case 2:(t=e.sent).data&&0==t.data.errorCode?(me("T\u1ea1o m\u1edbi th\xe0nh c\xf4ng",{variant:"success"}),j(!1),pe(10*Math.random())):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){xe.push("/")}),100)):me("Error!",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=Object(N.a)(I.a.mark((function e(){var t;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Br(se);case 2:(t=e.sent).data&&0==t.data.errorCode?(me("T\u1ea1o m\u1edbi th\xe0nh c\xf4ng",{variant:"success"}),O(!1),pe(10*Math.random())):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){xe.push("/")}),100)):me("Error!",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ke=function(){var e=Object(N.a)(I.a.mark((function e(t,a){var n;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!a){e.next=5;break}return e.next=3,Yr({address:t,longitude:a.lng+"",latitude:a.lat+""});case 3:(n=e.sent).data&&0==n.data.errorCode?(me("T\u1ea1o m\u1edbi th\xe0nh c\xf4ng",{variant:"success"}),g(!1),pe(10*Math.random())):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){xe.push("/")}),100)):me("Error!",{variant:"error"});case 5:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Te=function(){var e=Object(N.a)(I.a.mark((function e(){var t,a,n,c,i,r,o,s;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([Rr({pageIndex:H+1,pageSize:10,orderBy:"DayOff",directionSort:"ASC"}),_r({pageIndex:1,pageSize:10,orderBy:"CreatedAt",directionSort:"DESC"}),Xr({pageIndex:1,pageSize:10,orderBy:"CreatedAt",directionSort:"DESC"})]);case 2:t=e.sent,a=Object(E.a)(t,3),n=a[0],c=a[1],i=a[2],n.data&&0==n.data.errorCode?(r=[],n.data.data.forEach((function(e){var t,a,n;r.push((t=e.id,a=e.name,n=Object(J.b)(e.dayOff),{id:t,date:a,dayoff:n}))})),V(r),o=[],c.data.data.forEach((function(e){var t,a,n;o.push((t=e.id,a=e.name,n=e.ip,{id:t,name:a,ip:n}))})),X(o),s=[],i.data.data.forEach((function(e){var t,a,n;s.push((t=e.id,a=e.name,n=e.address,{id:t,name:a,address:n}))})),ee(s)):403==n.status||401==n.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){xe.push("/")}),100)):me("Error!",{variant:"error"});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(c.useEffect)((function(){Te()}),[H,Oe]);var De=Object(n.jsx)("div",{children:Object(n.jsx)("div",{style:r,className:e.paper,children:Object(n.jsxs)(R.a,{container:!0,spacing:3,style:{padding:20},children:[Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)("h2",{style:{marginTop:"0px"},children:"Th\xeam ng\xe0y l\u1ec5"})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"10px",fontSize:"16px"},children:"T\xean ng\xe0y ngh\u1ec9"})}),Object(n.jsx)(R.a,{item:!0,xs:8,style:{paddingLeft:"33px"},children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:ne.name,onChange:function(e){ie({name:e.target.value})}})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"22px",fontSize:"16px"},children:"Ng\xe0y ngh\u1ec9"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20},disableToolbar:!0,variant:"inline",format:"dd/MM/yyyy",margin:"normal",id:"date-picker-inline",value:y,onChange:function(e){C(e)},KeyboardButtonProps:{"aria-label":"change date"}})})}),Object(n.jsxs)(R.a,{item:!0,xs:12,style:{marginBottom:"-32px",textAlign:"right"},children:[Object(n.jsx)(z.a,{onClick:ve,style:{paddingTop:"5px",paddingBottom:"5px",backgroundColor:"red",color:"white",textAlign:"center",borderRadius:10,marginRight:"10px"},startIcon:Object(n.jsx)(sn.a,{}),children:Object(n.jsx)(ce.a,{variant:"caption",style:{fontSize:"16px"},children:"H\u1ee7y"})}),Object(n.jsx)(z.a,{style:{paddingTop:"5px",paddingBottom:"5px",backgroundColor:"rgb(60, 141, 188)",color:"white",textAlign:"center",borderRadius:10},startIcon:Object(n.jsx)(ro.a,{}),onClick:we,children:Object(n.jsx)(ce.a,{variant:"caption",style:{fontSize:"16px"},children:"T\u1ea1o"})})]})]})})}),Ie=Object(n.jsx)("div",{children:Object(n.jsx)("div",{style:r,className:e.paper,children:Object(n.jsxs)(R.a,{container:!0,spacing:3,style:{padding:20},children:[Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)("h2",{style:{marginTop:"0px"},children:"Th\xeam wifi"})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"10px",fontSize:"16px"},children:"T\xean wifi"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:se.name,onChange:function(e){le(Object(d.a)(Object(d.a)({},se),{},{name:e.target.value}))}})}),Object(n.jsx)(R.a,{item:!0,xs:4,children:Object(n.jsx)("div",{style:{paddingTop:"22px",fontSize:"16px"},children:"IP Address"})}),Object(n.jsx)(R.a,{item:!0,xs:8,children:Object(n.jsx)(L.a,{id:"standard-basic",style:{width:"95%"},value:se.ip,onChange:function(e){le(Object(d.a)(Object(d.a)({},se),{},{ip:e.target.value}))}})}),Object(n.jsxs)(R.a,{item:!0,xs:12,style:{marginBottom:"-32px",textAlign:"right"},children:[Object(n.jsx)(z.a,{onClick:ye,style:{paddingTop:"5px",paddingBottom:"5px",backgroundColor:"red",color:"white",textAlign:"center",borderRadius:10,marginRight:"10px"},startIcon:Object(n.jsx)(sn.a,{}),children:Object(n.jsx)(ce.a,{variant:"caption",style:{fontSize:"16px"},children:"H\u1ee7y"})}),Object(n.jsx)(z.a,{style:{paddingTop:"5px",paddingBottom:"5px",backgroundColor:"rgb(60, 141, 188)",color:"white",textAlign:"center",borderRadius:10},startIcon:Object(n.jsx)(ro.a,{}),onClick:Se,children:Object(n.jsx)(ce.a,{variant:"caption",style:{fontSize:"16px"},children:"T\u1ea1o"})})]})]})})}),Ne=Object(n.jsx)(co,{handleCloseLocation:Ce,createLocationModal:ke});return Object(n.jsxs)(Ya,{children:[Object(n.jsx)(Ge.a,{square:!0,children:Object(n.jsxs)(gn.a,{value:k,onChange:function(e,t){D(t)},textColor:"primary",variant:"fullWidth","aria-label":"scrollable prevent tabs example",indicatorColor:"primary",children:[Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"Ng\xe0y l\u1ec5","aria-label":"phone"},ho(0))),Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"Wifi","aria-label":"favorite"},ho(1))),Object(n.jsx)(fn.a,Object(d.a)({style:{fontSize:"15px"},label:"\u0110\u1ecba \u0111i\u1ec3m","aria-label":"help"},ho(3)))]})}),Object(n.jsx)(uo,{value:k,index:0,style:{padding:"10px"},children:Object(n.jsxs)(P.a,{children:[Object(n.jsx)(ce.a,{variant:"h5",style:{paddingLeft:"12px"},children:"Thi\u1ebft l\u1eadp ng\xe0y l\u1ec5"}),Object(n.jsxs)(R.a,{container:!0,spacing:3,style:{padding:20},children:[Object(n.jsx)(R.a,{item:!0,xs:8}),Object(n.jsx)(R.a,{item:!0,xs:4,style:{textAlign:"center"},children:Object(n.jsx)(z.a,{onClick:function(){ie({name:""}),C(Date.now()),j(!0)},variant:"contained",color:"primary",className:e.button,style:{backgroundColor:"rgb(60, 141, 188)",fontSize:"13px"},children:"Th\xeam ng\xe0y l\u1ec5"})}),Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(Mr,{columns:lo,rows:G,getDataAgain:ge})}),Object(n.jsx)(eo.a,{open:l,onClose:ve,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:De})]})]})}),Object(n.jsx)(uo,{value:k,index:1,style:{padding:"10px"},children:Object(n.jsxs)(P.a,{children:[Object(n.jsx)(ce.a,{variant:"h5",style:{paddingLeft:"12px"},children:"Thi\u1ebft l\u1eadp wifi"}),Object(n.jsxs)(R.a,{container:!0,spacing:3,style:{padding:20},children:[Object(n.jsx)(R.a,{item:!0,xs:8}),Object(n.jsx)(R.a,{item:!0,xs:4,style:{textAlign:"center"},children:Object(n.jsx)(z.a,{onClick:function(){le({name:"",ip:""}),O(!0)},variant:"contained",color:"primary",className:e.button,style:{backgroundColor:"rgb(60, 141, 188)",fontSize:"13px"},children:"Th\xeam wifi"})}),Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(Ur,{columns:jo,rows:q,getDataAgain:ge})}),Object(n.jsx)(eo.a,{open:h,onClose:ye,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Ie})]})]})}),Object(n.jsx)(uo,{value:k,index:2,style:{padding:"10px"},children:Object(n.jsxs)(P.a,{children:[Object(n.jsx)(ce.a,{variant:"h5",style:{paddingLeft:"12px"},children:"Thi\u1ebft l\u1eadp \u0111\u1ecba \u0111i\u1ec3m"}),Object(n.jsxs)(R.a,{container:!0,spacing:3,style:{padding:20},children:[Object(n.jsx)(R.a,{item:!0,xs:8}),Object(n.jsx)(R.a,{item:!0,xs:4,style:{textAlign:"center"},children:Object(n.jsx)(z.a,{onClick:function(){be({name:"",address:""}),g(!0)},variant:"contained",color:"primary",className:e.button,style:{backgroundColor:"rgb(60, 141, 188)",fontSize:"13px"},children:"Th\xeam \u0111\u1ecba \u0111i\u1ec3m"})}),Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)($r,{columns:bo,rows:$,getDataAgain:ge})}),Object(n.jsx)(eo.a,{open:x,onClose:Ce,"aria-labelledby":"simple-modal-title","aria-describedby":"simple-modal-description",children:Ne})]})]})})]})},po=function(e){return Object(n.jsx)(Oo,{})},mo=function(){return function(e){return e}},xo=Object(nt.a)((function(){return{root:{display:"flex",margin:"auto",flexDirection:"row"}}}),{name:"LegendRoot"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Root,Object(d.a)(Object(d.a)({},a),{},{className:t.root}))})),go=Object(nt.a)((function(e){return{label:{paddingTop:e.spacing(1),whiteSpace:"nowrap"}}}),{name:"LegendLabel"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Label,Object(d.a)({className:t.label},a))})),fo=Object(nt.a)((function(){return{item:{flexDirection:"column"}}}),{name:"LegendItem"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Item,Object(d.a)({className:t.item},a))})),vo=function(e){var t=e.text;return Object(n.jsx)(Ve.i.Label,Object(d.a)(Object(d.a)({},e),{},{text:"".concat(t)}))},yo=(Object(nt.a)({title:{whiteSpace:"pre"}})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.g.Text,Object(d.a)(Object(d.a)({},a),{},{className:t.title}))})),function(e){Object(_e.a)(a,e);var t=Object(Ke.a)(a);function a(e){var n;return Object(Be.a)(this,a),(n=t.call(this,e)).state={data:It},n}return Object(Fe.a)(a,[{key:"render",value:function(){this.state.data;var e=this.props.classes;return Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(Ve.c,{height:500,data:this.props.data,className:e.chart,children:[Object(n.jsx)(Ve.a,{tickFormat:mo}),Object(n.jsx)(Ve.i,{max:50,labelComponent:vo}),Object(n.jsx)(Ve.e,{name:"C\xf4ng h\u1ee3p l\u1ec7",valueField:"validCheckIn",argumentField:"month"}),Object(n.jsx)(Ve.e,{name:"\u0110i mu\u1ed9n v\u1ec1 s\u1edbm",valueField:"count_Dmvs",argumentField:"month"}),Object(n.jsx)(Ve.e,{name:"V\u1eafng m\u1eb7t",valueField:"absent",argumentField:"month"}),Object(n.jsx)(Ve.e,{name:"Ch\u1edd x\u1eed l\xfd",valueField:"pending",argumentField:"month"}),Object(n.jsx)(Ve.d,{position:"bottom",rootComponent:xo,itemComponent:fo,labelComponent:go}),Object(n.jsx)(Ue.a,{})]})})}}]),a}(c.PureComponent)),Co=Object(nt.a)((function(){return{chart:{paddingRight:"20px"},title:{whiteSpace:"pre"}}}),{name:"Demo"})(yo),wo=[{date:"1/12",leave:0,new:3},{date:"2/12",leave:0,new:2},{date:"3/12",leave:0,new:0},{date:"4/12",leave:0,new:0},{date:"5/12",leave:1,new:1},{date:"6/12",leave:2,new:2},{date:"7/12",leave:0,new:1}],So=Object(nt.a)((function(){return{root:{display:"flex",margin:"auto",flexDirection:"row"}}}),{name:"LegendRoot"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Root,Object(d.a)(Object(d.a)({},a),{},{className:t.root}))})),ko=Object(nt.a)((function(){return{label:{whiteSpace:"nowrap"}}}),{name:"LegendLabel"})((function(e){var t=e.classes,a=Object(k.a)(e,["classes"]);return Object(n.jsx)(Ve.d.Label,Object(d.a)({className:t.label},a))})),To=(c.PureComponent,[{value:" ",label:"T\u1ea5t c\u1ea3"},{value:"KT",label:"K\u1ef9 thu\u1eadt"},{value:"HR",label:"Nh\xe2n s\u1ef1"}]),Do=function(){var e=Object(A.a)((function(e){return{toolbar:{margin:"1% 0"},toolbar2:{padding:"20px"},icons:{fontSize:"40px"},gridBoxItem:{padding:"20px"},button:{marginTop:"2%"},title:{marginBottom:"2%"},textField:{width:"25ch"},formControl:{margin:e.spacing(1),minWidth:120}}}))(),t=Object(c.useState)(""),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)([]),s=Object(E.a)(o,2),l=s[0],d=s[1],j=Object(fe.b)().enqueueSnackbar,b=Object(T.g)(),u=function(e){r(e.target.value)},h=Object(c.useState)(Object(J.h)(Date.now())),O=Object(E.a)(h,2),p=O[0],m=O[1],x=function(e){m(Object(J.h)(e))},g=function(){var e=Object(N.a)(I.a.mark((function e(){var t,a;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,He({year:p,depCode:i});case 2:(t=e.sent).data&&0==t.data.errorCode?(a=[],t.data.data.forEach((function(e){a.push({month:e.month,validCheckIn:e.validCheckIn,count_Dmvs:e.count_Dmvs,absent:e.absent,pending:e.pending})})),d(a)):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){b.push("/")}),100)):j("Error!",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Object(c.useEffect)((function(){g()}),[p,i]);var f=function(){return Object(n.jsx)(Ge.a,{elevation:3,className:e.toolbar2,children:Object(n.jsxs)(R.a,{container:!0,children:[Object(n.jsx)(R.a,{className:e.title,item:!0,children:Object(n.jsx)(ce.a,{variant:"h6",children:"Xu\u1ea5t b\xe1o c\xe1o"})}),Object(n.jsxs)(R.a,{container:!0,item:!0,justify:"space-between",alignItems:"center",spacing:3,children:[Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(L.a,{select:!0,size:"medium",className:e.textField,label:"Lo\u1ea1i b\xe1o c\xe1o",variant:"outlined"})}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(L.a,{select:!0,size:"medium",className:e.textField,label:"Ch\u1ecdn ph\xf2ng",variant:"outlined"})}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(L.a,{select:!0,size:"medium",className:e.textField,label:"Ch\u1ecdn ban",variant:"outlined"})}),Object(n.jsx)(R.a,{item:!0,children:Object(n.jsxs)("form",{noValidate:!0,children:[Object(n.jsx)(L.a,{type:"date",defaultValue:"2020-12-01",label:"T\u1eeb ng\xe0y",InputLabelProps:{shrink:!0}}),Object(n.jsx)(L.a,{type:"date",defaultValue:"2020-12-31",label:"\u0110\u1ebfn ng\xe0y",InputLabelProps:{shrink:!0}})]})})]}),Object(n.jsx)(R.a,{className:e.button,container:!0,item:!0,justify:"flex-end",alignItems:"flex-end",children:Object(n.jsx)(z.a,{variant:"contained",size:"large",color:"primary",children:"Xu\u1ea5t b\xe1o c\xe1o"})})]})})},v=function(){return Object(n.jsxs)(Ge.a,{elevation:3,className:e.toolbar2,children:[Object(n.jsxs)("div",{children:[Object(n.jsx)("h1",{style:{textAlign:"center"},children:"B\xe1o c\xe1o ch\u1ea5m c\xf4ng"}),Object(n.jsxs)("div",{style:{textAlign:"right"},children:[Object(n.jsx)(ic.a,{className:e.formControl,style:{margin:"0px",minWidth:"160px"},children:Object(n.jsx)(L.a,{id:"outlined-select-currency-native",select:!0,label:"Ph\xf2ng ban",value:i,SelectProps:{native:!0},onChange:u,children:To.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})}),Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20,width:"15%"},views:["year"],disableToolbar:!0,variant:"inline",format:"yyyy",margin:"normal",id:"date-picker-inline",value:p,onChange:x,KeyboardButtonProps:{"aria-label":"change date"}})})]})]}),Object(n.jsx)("br",{}),Object(n.jsx)(Co,{data:l})]})};return Object(n.jsxs)(Ya,{children:[Object(n.jsx)(f,{}),Object(n.jsx)("br",{}),Object(n.jsx)(v,{})]})},Io=function(e){return Object(n.jsx)(Do,{})},No=function(e){return Object(n.jsx)(Ya,{children:Object(n.jsx)(qn,{})})},Eo=a(406),Ao=a.n(Eo),Ro=a(405),Po=a.n(Ro),Lo=a(407),Wo=a.n(Lo),Ho=a(276),zo=a.n(Ho),Mo=function(e){return Object(n.jsx)(R.a,{container:!0,style:{marginTop:20},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{backgroundColor:"#dd4b39",paddingTop:20},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(Po.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)",marginRight:"10px"}})}),Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsx)(ce.a,{variant:"h3",children:" 3"}),Object(n.jsx)(ce.a,{variant:"p",children:"H\xf4m nay"})]})]})})}),Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{backgroundColor:"#f39c12",paddingTop:20},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(Ao.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)",marginRight:"10px"}})}),Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsx)(ce.a,{variant:"h3",children:" 5"}),Object(n.jsx)(ce.a,{variant:"p",children:"Ng\xe0y mai"})]})]})})}),Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{backgroundColor:"#00c0ef",paddingTop:20},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(Wo.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)",marginRight:"10px"}})}),Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsx)(ce.a,{variant:"h3",children:" 8"}),Object(n.jsx)(ce.a,{variant:"p",children:"Tu\u1ea7n n\xe0y"})]})]})})}),Object(n.jsx)(R.a,{item:!0,lg:3,md:6,sm:12,children:Object(n.jsx)(P.a,{style:{backgroundColor:"#00a65a",paddingTop:20},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",alignItems:"center",style:{color:"white",paddingLeft:10,paddingRight:10},children:[Object(n.jsx)(R.a,{item:!0,children:Object(n.jsx)(zo.a,{style:{width:100,height:100,color:"rgba(0,0,0,0.15)",marginRight:"10px"}})}),Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsx)(ce.a,{variant:"h3",children:" 6"}),Object(n.jsx)(ce.a,{variant:"p",children:"T\u1ea1o b\u1edfi t\xf4i"})]})]})})})]})})},Bo=a(144),Fo=function(e){var t=Object(c.useState)(new Date),a=Object(E.a)(t,2),i=a[0],r=a[1];return Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:9,children:Object(n.jsx)(P.a,{children:Object(n.jsxs)("div",{style:{width:"100%",border:"1px solid rgb(210, 195, 195)",paddingBottom:"25px"},children:[Object(n.jsx)("div",{style:{borderBottom:"1px solid rgb(210, 195, 195)",padding:"7px"},children:"H\xf4m nay"}),Object(n.jsxs)(R.a,{container:!0,direction:"row",alignItems:"center",style:{padding:"8px",borderBottom:"1px solid #a99898;"},children:[Object(n.jsxs)(R.a,{item:!0,style:{marginRight:"10px"},children:[Object(n.jsx)("div",{style:{width:"150px",height:"50px",backgroundColor:"#e04545"}}),Object(n.jsx)("div",{style:{width:"150px",height:"50px",display:"flex",alignItems:"center"},children:Object(n.jsx)("span",{style:{margin:"0 auto",fontWeight:"bold",fontSize:"15px"},children:"10:30"})})]}),Object(n.jsxs)(R.a,{item:!0,style:{marginRight:"165px"},children:[Object(n.jsx)("b",{children:"H\u1ecdp tri\u1ec3n khai d\u1ef1 \xe1n m\u1edbi"}),Object(n.jsx)("br",{}),"T\u1ea1o b\u1edfi",Object(n.jsx)("span",{children:" doanpv"})," v\xe0o l\xfac",Object(n.jsx)("span",{children:" 09:30 15/12/2020"}),Object(n.jsx)("br",{}),"Ch\u1ee7 tr\xec",Object(n.jsx)("span",{children:" P.k\u1ef9 thu\u1eadt"})]}),Object(n.jsxs)(R.a,{item:!0,style:{marginRight:"95px"},children:[Object(n.jsx)("span",{children:"Tham gia"}),Object(n.jsx)("br",{}),Object(n.jsx)("h1",{style:{fontSize:"45px",margin:"0px"},children:"10"})]}),Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsx)("div",{style:{textAlign:"center",marginTop:"-8px"},children:"Quan tr\u1ecdng"}),Object(n.jsxs)("div",{style:{display:"flex",marginTop:"10px",marginBottom:"-13px"},children:[Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",style:{color:"green"},children:Object(n.jsx)(dn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",style:{color:"#3C8DBC"},children:Object(n.jsx)(rn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(sn.a,{fontSize:"inherit"})})]})]})]}),Object(n.jsxs)(R.a,{container:!0,direction:"row",alignItems:"center",style:{padding:"8px",borderBottom:"1px solid #a99898"},children:[Object(n.jsxs)(R.a,{item:!0,style:{marginRight:"10px"},children:[Object(n.jsx)("div",{style:{width:"150px",height:"50px",backgroundColor:"#e04545"}}),Object(n.jsx)("div",{style:{width:"150px",height:"50px",display:"flex",alignItems:"center"},children:Object(n.jsx)("span",{style:{margin:"0 auto",fontWeight:"bold",fontSize:"15px"},children:"10:30"})})]}),Object(n.jsxs)(R.a,{item:!0,style:{marginRight:"165px"},children:[Object(n.jsx)("b",{children:"H\u1ecdp tri\u1ec3n khai d\u1ef1 \xe1n m\u1edbi"}),Object(n.jsx)("br",{}),"T\u1ea1o b\u1edfi",Object(n.jsx)("span",{children:" doanpv"})," v\xe0o l\xfac",Object(n.jsx)("span",{children:" 09:30 15/12/2020"}),Object(n.jsx)("br",{}),"Ch\u1ee7 tr\xec",Object(n.jsx)("span",{children:" P.k\u1ef9 thu\u1eadt"})]}),Object(n.jsxs)(R.a,{item:!0,style:{marginRight:"95px"},children:[Object(n.jsx)("span",{children:"Tham gia"}),Object(n.jsx)("br",{}),Object(n.jsx)("h1",{style:{fontSize:"45px",margin:"0px"},children:"10"})]}),Object(n.jsxs)(R.a,{item:!0,children:[Object(n.jsx)("div",{style:{textAlign:"center",marginTop:"-8px"},children:"Quan tr\u1ecdng"}),Object(n.jsxs)("div",{style:{display:"flex",marginTop:"10px",marginBottom:"-13px"},children:[Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",style:{color:"green"},children:Object(n.jsx)(dn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",style:{color:"#3C8DBC"},children:Object(n.jsx)(rn.a,{fontSize:"inherit"})}),Object(n.jsx)(dt.a,{"aria-label":"delete",size:"large",color:"secondary",children:Object(n.jsx)(sn.a,{fontSize:"inherit"})})]})]})]})]})})}),Object(n.jsxs)(R.a,{item:!0,xs:3,children:[Object(n.jsx)(P.a,{children:Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(Bo.a,{date:i,onChange:function(e){r(e)}})})}),Object(n.jsx)("br",{}),Object(n.jsx)(P.a,{children:Object(n.jsxs)("div",{style:{width:"100%",border:"1px solid #a99898"},children:[Object(n.jsx)("div",{style:{borderBottom:"1px solid #a99898",width:"100%",padding:"5px"},children:"Th\xf4ng b\xe1o"}),Object(n.jsx)("div",{style:{padding:"5px"},children:"H\xf4m nay c\u1ea3 c\xf4ng ty li\xean hoan"})]})})]})]})},_o=function(){return Object(n.jsx)("div",{styles:{flexGrow:1},children:Object(n.jsxs)(R.a,{container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,sm:12,children:Object(n.jsx)(Mo,{})}),Object(n.jsx)(R.a,{item:!0,sm:12,children:Object(n.jsx)(Fo,{})})]})})},Ko=function(){return Object(n.jsx)(Ya,{children:Object(n.jsx)(_o,{})})},Go=function(e){var t,a=Object(fe.b)().enqueueSnackbar;return Object(n.jsx)(Ya,{children:Object(n.jsx)(z.a,{onClick:(t="success",function(){a("This is a success message is is a success message is is a success message!",{variant:t})}),children:"Show success snackbar"})})},Vo=[{value:" ",label:"T\u1ea5t c\u1ea3"},{value:"KT",label:"K\u1ef9 thu\u1eadt"},{value:"HR",label:"Nh\xe2n s\u1ef1"}],Uo=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120}}})),Yo=function(){var e=Object(T.g)(),t=Uo(),a=Object(c.useState)([]),r=Object(E.a)(a,2),o=r[0],s=r[1],l=Object(c.useState)([]),d=Object(E.a)(l,2),j=d[0],b=d[1],u=Object(c.useState)(""),h=Object(E.a)(u,2),O=h[0],p=h[1],m=Object(c.useState)(Object(J.f)(new Date)),x=Object(E.a)(m,2),g=x[0],f=x[1],v=Object(c.useState)(Object(J.h)(new Date)),y=Object(E.a)(v,2),C=y[0],w=y[1],S=Object(fe.b)().enqueueSnackbar,k=function(){var t=Object(N.a)(I.a.mark((function t(){var a,n,c,i;return I.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([we({depCode:O,year:C,month:g}),Se({depCode:O,year:C,month:g})]);case 2:a=t.sent,n=Object(E.a)(a,2),c=n[0],i=n[1],c.data&&0==c.data.errorCode?(s([{region:"Ch\u1ea5m c\xf4ng b\xf9",val:c.data.data.chamCongBu},{region:"Ngh\u1ec9 ph\xe9p",val:c.data.data.nghiPhep},{region:"Khi\u1ebfu n\u1ea1i",val:c.data.data.khieuNai}]),b([{region:"Ch\u1edd x\u1eed l\xfd",val:i.data.data.pending},{region:"\u0110\xe3 x\u1eed l\xfd",val:i.data.data.processed},{region:"Ch\u1ea5p nh\u1eadn",val:i.data.data.approved},{region:"T\u1eeb ch\u1ed1i",val:i.data.data.rejected}])):403==c.status||401==c.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){e.push("/")}),100)):S("Error!",{variant:"error"});case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();Object(c.useEffect)((function(){k()}),[O,g,C]);var D=i.a.useState(Date.now()),A=Object(E.a)(D,2),P=A[0],W=A[1];return Object(n.jsxs)(Ya,{children:[Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:0,children:[Object(n.jsx)(R.a,{xs:6,item:!0,children:Object(n.jsx)(Ge.a,{style:{fontSize:"23px",padding:"5px",paddingTop:"15px",paddingBottom:"15px",boxShadow:"none"},children:"Th\u1ed1ng k\xea c\xe1c lo\u1ea1i \u0111\u01a1n t\u1eeb v\xe0 tr\u1ea1ng th\xe1i"})}),Object(n.jsx)(R.a,{xs:6,item:!0,children:Object(n.jsx)(Ge.a,{style:{fontSize:"23px",padding:"5px",paddingTop:"15px",paddingBottom:"15px",boxShadow:"none"},children:Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{xs:6,item:!0,style:{paddingBottom:"0px",paddingTop:"0px",paddingLeft:"30px"},children:Object(n.jsx)(ic.a,{className:t.formControl,style:{margin:"0px",minWidth:"160px"},children:Object(n.jsx)(L.a,{id:"outlined-select-currency-native",select:!0,label:"Ph\xf2ng ban",value:O,SelectProps:{native:!0},onChange:function(e){p(e.target.value)},children:Vo.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})})}),Object(n.jsx)(R.a,{xs:6,item:!0,style:{paddingTop:"0px",paddingBottom:"0px"},children:Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20},views:["year","month"],disableToolbar:!0,variant:"inline",format:"MM/yyyy",margin:"normal",id:"date-picker-inline",value:P,onChange:function(e){W(e),f(Object(J.f)(e)),w(Object(J.h)(e))},KeyboardButtonProps:{"aria-label":"change date"}})})})]})})})]})}),Object(n.jsx)("br",{}),Object(n.jsx)(R.a,{container:!0,spacing:3,children:Object(n.jsx)(R.a,{xs:12,item:!0,children:Object(n.jsxs)(R.a,{container:!0,direction:"row",spacing:3,children:[Object(n.jsx)(R.a,{xs:12,sm:6,item:!0,children:Object(n.jsx)(qe,{data:o,title:"Lo\u1ea1i \u0111\u01a1n t\u1eeb"})}),Object(n.jsx)(R.a,{xs:12,sm:6,item:!0,children:Object(n.jsx)(qe,{data:j,title:"Tr\u1ea1ng th\xe1i"})})]})})})]})},qo=function(){return Object(n.jsx)(Yo,{})},Xo=Object(A.a)((function(e){return{formControl:{margin:e.spacing(1),minWidth:120},selectEmpty:{marginTop:e.spacing(2)},root:{"& > *":{margin:e.spacing(1),width:"25ch"}},button:{margin:e.spacing(1)}}})),Jo=[{value:" ",label:"T\u1ea5t c\u1ea3"},{value:"KT",label:"K\u1ef9 thu\u1eadt"},{value:"HR",label:"Nh\xe2n s\u1ef1"}],Qo=function(e){var t=Xo(),a=i.a.useState({room:"",name:""}),r=Object(E.a)(a,2),o=r[0],s=r[1],l=Object(c.useState)(""),j=Object(E.a)(l,2),b=j[0],u=j[1],h=i.a.useState(new Date(function(e){var t=Object(J.g)(e).split("/");return t[0]+"/01/"+t[2]}(new Date))),O=Object(E.a)(h,2),p=O[0],m=O[1],x=i.a.useState(Date.now()),g=Object(E.a)(x,2),f=g[0],v=g[1];return Object(n.jsxs)(R.a,{style:{padding:20},container:!0,spacing:3,children:[Object(n.jsx)(R.a,{item:!0,xs:3,children:Object(n.jsx)("form",{className:t.root,noValidate:!0,autoComplete:"off",children:Object(n.jsx)(L.a,{id:"standard-basic",label:"T\xean",onChange:function(t){s(Object(d.a)(Object(d.a)({},o),{},{name:t.target.value})),setTimeout((function(){e.changeEmpName(t.target.value),e.changePage(0)}),500)}})})}),Object(n.jsx)(R.a,{item:!0,xs:3,children:Object(n.jsx)(ic.a,{className:t.formControl,children:Object(n.jsx)(L.a,{id:"outlined-select-currency-native",select:!0,label:"Ph\xf2ng ban",value:b,SelectProps:{native:!0},onChange:function(t){u(t.target.value),e.changeDepCode(t.target.value),e.changePage(0)},children:Jo.map((function(e){return Object(n.jsx)("option",{value:e.value,children:e.label},e.value)}))})})}),Object(n.jsx)(R.a,{item:!0,xs:3,children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:[Object(n.jsx)("span",{style:{paddingTop:"15px",fontSize:"15px"},children:"T\u1eeb ng\xe0y"}),Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20,width:"70%",marginTop:"25px"},disableToolbar:!0,variant:"inline",format:"dd/MM/yyyy",margin:"normal",id:"date-picker-inline",value:p,onChange:function(t){m(t),e.changeFromTime(Object(J.a)(t)),e.changePage(0)},KeyboardButtonProps:{"aria-label":"change date"}})})]})}),Object(n.jsx)(R.a,{item:!0,xs:3,children:Object(n.jsxs)(R.a,{container:!0,direction:"row",justify:"space-between",alignItems:"center",children:[Object(n.jsx)("span",{style:{paddingTop:"15px",fontSize:"15px"},children:"\u0110\u1ebfn ng\xe0y"}),Object(n.jsx)(et.a,{utils:Cc.a,children:Object(n.jsx)(wi.a,{style:{paddingRight:10,paddingLeft:20,width:"70%",marginTop:"25px"},disableToolbar:!0,variant:"inline",format:"dd/MM/yyyy",margin:"normal",id:"date-picker-inline",value:f,onChange:function(t){v(t),e.changeToTime(Object(J.a)(t)),e.changePage(0)},KeyboardButtonProps:{"aria-label":"change date"}})})]})})]})},Zo=Object(nt.a)((function(e){return{head:{backgroundColor:"#e6e6e6"},body:{fontSize:16}}}))(en.a),$o=Object(A.a)({root:{width:"100%"},container:{maxHeight:800}});function es(e){var t=$o(),a=Object(T.g)(),i=Object(c.useState)(0),r=Object(E.a)(i,2),o=(r[0],r[1],Object(c.useState)(5)),s=Object(E.a)(o,2),l=(s[0],s[1],Object(c.useState)(e.pageCurrent)),d=Object(E.a)(l,2),j=d[0],b=d[1];return Object(c.useEffect)((function(){b(e.pageCurrent)}),[e.pageCurrent]),Object(n.jsxs)("div",{className:t.root,children:[Object(n.jsx)(tn.a,{className:t.container,children:Object(n.jsxs)(Za.a,{stickyHeader:!0,"aria-label":"sticky table",children:[Object(n.jsx)(an.a,{children:Object(n.jsxs)(nn.a,{children:[e.columns.map((function(e){return Object(n.jsx)(Zo,{align:e.align,style:{minWidth:e.minWidth},children:e.label},e.id)})),Object(n.jsx)(Zo,{style:{width:100,textAlign:"center"},children:"Ho\u1ea1t \u0111\u1ed9ng"})]})}),Object(n.jsx)($a.a,{children:e.rows.map((function(t){return Object(n.jsxs)(nn.a,{hover:!0,role:"checkbox",tabIndex:-1,children:[e.columns.map((function(e){var a=t[e.id];return Object(n.jsx)(en.a,{align:e.align,children:e.format&&"number"===typeof a?e.format(a):a},e.id)})),Object(n.jsx)(en.a,{children:Object(n.jsx)(z.a,{onClick:function(){return a.push("/timekeepingDetail/".concat(t.employeeCode))},style:{padding:2,backgroundColor:"#00c0ef",color:"white",textAlign:"center",borderRadius:10},children:Object(n.jsx)(ce.a,{variant:"caption",children:" Chi ti\u1ebft"})})})]},t.code)}))})]})}),Object(n.jsx)(R.a,{container:!0,justify:"center",style:{padding:10},children:Object(n.jsx)(jn.a,{count:Math.ceil(e.totalPage/10),color:"secondary",page:j,onChange:function(t,a){b(a),e.changePage(parseInt(a)-1)}})})]})}var ts=[{id:"employeeName",label:"T\xean",minWidth:80,align:"left"},{id:"departmentCode",label:"Ph\xf2ng ban",minWidth:100,align:"left"},{id:"fromDate",label:"T\u1eeb ng\xe0y",minWidth:60,align:"center"},{id:"toDate",label:"\u0110\u1ebfn ng\xe0y",minWidth:60,align:"center"},{id:"validCheckIn",label:"C\xf4ng h\u1ee3p l\u1ec7",minWidth:60,align:"center"},{id:"count_Dmvs",label:"\u0110i mu\xf4\u0323n v\u1ec1 s\u1edbm",minWidth:60,align:"center"},{id:"absent",label:"V\u1eafng m\u1eb7t",minWidth:60,align:"center"},{id:"pending",label:"Ch\u1edd x\u1eed l\xfd",minWidth:60,align:"center"}],as=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1];return Object(c.useEffect)((function(){var t=[];e.list.data&&(e.list.data.forEach((function(e){var a,n,c,i,r,o,s,l,d;t.push((a=e.employeeCode,n=e.employeeName,c=e.departmentCode,i=e.fromDate,r=e.toDate,o=e.validCheckIn,s=e.count_Dmvs,l=e.absent,d=e.pending,{employeeCode:a,employeeName:n,departmentCode:c,fromDate:Object(J.c)(i),toDate:Object(J.c)(r),validCheckIn:o,count_Dmvs:s,absent:l,pending:d}))})),r(t)),console.log(t)}),[e.list]),Object(n.jsx)(Ya,{children:Object(n.jsx)(Ge.a,{children:Object(n.jsxs)(R.a,{container:!0,children:[Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(Qo,{changeDateFrom:e.changeDateFrom,changeEmpName:e.changeEmpName,changePage:e.changePage,changeDepCode:e.changeDepCode,changeFromTime:e.changeFromTime,changeToTime:e.changeToTime})}),Object(n.jsx)(R.a,{item:!0,xs:12,children:Object(n.jsx)(es,{rows:i,columns:ts,changePage:e.changePage,totalPage:e.totalRows,pageCurrent:e.pageCurrent})})]})})})},ns=function(e){var t=Object(c.useState)([]),a=Object(E.a)(t,2),i=a[0],r=a[1],o=Object(c.useState)(0),s=Object(E.a)(o,2),l=s[0],d=s[1],j=Object(c.useState)(0),b=Object(E.a)(j,2),u=b[0],h=b[1],O=Object(c.useState)(5),p=Object(E.a)(O,2),m=(p[0],p[1],Object(c.useState)(0)),x=Object(E.a)(m,2),g=x[0],f=x[1],v=Object(fe.b)().enqueueSnackbar,y=Object(T.g)(),C=Object(c.useState)(function(e){var t=Object(J.g)(e).split("/");return t[2]+"-"+t[0]+"-01"}(new Date)),w=Object(E.a)(C,2),S=w[0],k=w[1],D=Object(c.useState)(function(e){var t=Object(J.g)(e).split("/");return t[2]+"-"+t[0]+"-"+t[1]}(new Date)),A=Object(E.a)(D,2),R=A[0],P=A[1],L=Object(c.useState)(""),W=Object(E.a)(L,2),H=W[0],z=W[1],B=Object(c.useState)(""),F=Object(E.a)(B,2),_=F[0],K=F[1];Object(c.useEffect)((function(){G()}),[l,H,_,S,R]);var G=function(){var e=Object(N.a)(I.a.mark((function e(){var t;return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,We({fromDate:S,toDate:R,empName:H,depCode:_,pagingItem:{pageSize:10,pageIndex:l+1}});case 2:(t=e.sent).data&&0==t.data.errorCode?(r(t.data),f(t.data.metaData.outRowsNumber)):403==t.status||401==t.status?(localStorage.removeItem(M.API_TOKEN),localStorage.removeItem("user"),setTimeout((function(){y.push("/")}),100)):v("Error!",{variant:"error"});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(n.jsx)(as,{list:i,changePage:function(e){d(e),h(e)},totalRows:g,pageCurrent:u+1,changeDateFrom:function(e){},changeEmpName:function(e){z(e)},changeDepCode:function(e){K(e)},changeFromTime:function(e){k(e)},changeToTime:function(e){P(e)}})},cs=function(e){Object(T.g)();function t(e){var t=e.children,a=Object(k.a)(e,["children"]),c=localStorage.getItem(M.API_TOKEN);return Object(n.jsx)(T.b,Object(d.a)(Object(d.a)({},a),{},{render:function(e){var a=e.location;return c?t:Object(n.jsx)(T.a,{to:{pathname:"/",state:{from:a}}})}}))}function a(e){var t=e.children,a=Object(k.a)(e,["children"]),c=localStorage.getItem(M.API_TOKEN);return Object(n.jsx)(T.b,Object(d.a)(Object(d.a)({},a),{},{render:function(e){var a=e.location;return c?Object(n.jsx)(T.a,{to:{pathname:"/home",state:{from:a}}}):t}}))}return Object(n.jsxs)(T.d,{children:[Object(n.jsx)(t,{path:"/salary/report",children:Object(n.jsx)(Go,{})}),Object(n.jsx)(t,{path:"/profile/:id",children:Object(n.jsx)(hr,{})}),Object(n.jsx)(t,{exact:!0,path:"/home",children:Object(n.jsx)(Xa,{})}),Object(n.jsx)(t,{path:"/department/create",children:Object(n.jsx)(wn,{})}),Object(n.jsx)(t,{path:"/department/struct",children:Object(n.jsx)(No,{})}),Object(n.jsx)(t,{path:"/department/report",children:Object(n.jsx)(ec,{})}),Object(n.jsx)(t,{path:"/employee/createemployee",children:Object(n.jsx)(vr,{})}),Object(n.jsx)(t,{path:"/employee",children:Object(n.jsx)(mn,{})}),Object(n.jsx)(t,{path:"/report",children:Object(n.jsx)(Oc,{})}),Object(n.jsx)(t,{path:"/letterhandled",children:Object(n.jsx)(Zc,{})}),Object(n.jsx)(t,{path:"/letterreport",children:Object(n.jsx)(qo,{})}),Object(n.jsx)(t,{path:"/detailemployee/:id",children:Object(n.jsx)(Cr,{})}),Object(n.jsx)(t,{path:"/reportemployee",children:Object(n.jsx)(Ar,{})}),Object(n.jsx)(t,{path:"/setup/location",children:Object(n.jsx)(co,{})}),Object(n.jsx)(t,{path:"/letter",children:Object(n.jsx)(ti,{})}),Object(n.jsx)(t,{path:"/timekeeping/report",children:Object(n.jsx)(Io,{})}),Object(n.jsx)(t,{path:"/timekeeping/setup",children:Object(n.jsx)(po,{})}),Object(n.jsx)(t,{path:"/timekeeping",children:Object(n.jsx)(ns,{})}),Object(n.jsx)(t,{path:"/timekeepingDetail/:id",children:Object(n.jsx)(Tc,{})}),Object(n.jsx)(t,{path:"/detailletter",children:Object(n.jsx)(fi,{})}),Object(n.jsx)(t,{path:"/salary",children:Object(n.jsx)(Ai,{})}),Object(n.jsx)(t,{path:"/salarydetail",children:Object(n.jsx)(Vi,{})}),Object(n.jsx)(t,{path:"/meeting",children:Object(n.jsx)(Ko,{})}),Object(n.jsx)(a,{path:"/",children:Object(n.jsx)(ne,{})})]})},is=a(408),rs=a(176),os=I.a.mark(ls),ss=I.a.mark(ds);function ls(e){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(rs.c)({type:"LOGIN",data:"asdsad"});case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),os,null,[[0,5]])}function ds(){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(rs.d)("UPDATE_INFOR",ls);case 2:case"end":return e.stop()}}),ss)}var js=I.a.mark(bs);function bs(){return I.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(rs.a)([Object(rs.b)(ds)]);case 2:case"end":return e.stop()}}),js)}var us=Object(is.a)(),hs=Object(l.e)(S,Object(l.a)(us));us.run(bs);var Os=function(){return Object(n.jsx)(s.a,{store:hs,children:Object(n.jsx)(cs,{})})},ps=function(e){e&&e instanceof Function&&a.e(5).then(a.bind(null,1186)).then((function(t){var a=t.getCLS,n=t.getFID,c=t.getFCP,i=t.getLCP,r=t.getTTFB;a(e),n(e),c(e),i(e),r(e)}))};o.a.render(Object(n.jsx)(i.a.StrictMode,{children:Object(n.jsx)(je.a,{children:Object(n.jsx)(fe.a,{anchorOrigin:{vertical:"top",horizontal:"center"},maxSnack:3,children:Object(n.jsx)(Os,{})})})}),document.getElementById("root")),ps()}},[[681,1,2]]]);
//# sourceMappingURL=main.366f8b18.chunk.js.map