????
Current Path : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/ |
Current File : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/37.6933eb6c.chunk.js |
(this["webpackJsonpgdt-qlcb"]=this["webpackJsonpgdt-qlcb"]||[]).push([[37,75,121,131],{1004:function(t,e,n){"use strict";var a=n(23),i=n(28),r=n(80),o=n(79),c=n(0),u=n.n(c),s=n(2),l=n.n(s),d=n(16),f=n.n(d),h=n(880),b=n(8),p={children:l.a.node,active:l.a.bool,disabled:l.a.bool,divider:l.a.bool,tag:b.q,header:l.a.bool,onClick:l.a.func,className:l.a.string,cssModule:l.a.object,toggle:l.a.bool,text:l.a.bool},m=function(t){function e(e){var n;return(n=t.call(this,e)||this).onClick=n.onClick.bind(Object(r.a)(n)),n.getTabIndex=n.getTabIndex.bind(Object(r.a)(n)),n}Object(o.a)(e,t);var n=e.prototype;return n.onClick=function(t){var e=this.props,n=e.disabled,a=e.header,i=e.divider,r=e.text;n||a||i||r?t.preventDefault():(this.props.onClick&&this.props.onClick(t),this.props.toggle&&this.context.toggle(t))},n.getTabIndex=function(){var t=this.props,e=t.disabled,n=t.header,a=t.divider,i=t.text;return e||n||a||i?"-1":"0"},n.render=function(){var t=this.getTabIndex(),e=t>-1?"menuitem":void 0,n=Object(b.n)(this.props,["toggle"]),r=n.className,o=n.cssModule,c=n.divider,s=n.tag,l=n.header,d=n.active,h=n.text,p=Object(i.a)(n,["className","cssModule","divider","tag","header","active","text"]),m=Object(b.m)(f()(r,{disabled:p.disabled,"dropdown-item":!c&&!l&&!h,active:d,"dropdown-header":l,"dropdown-divider":c,"dropdown-item-text":h}),o);return"button"===s&&(l?s="h6":c?s="div":p.href?s="a":h&&(s="span")),u.a.createElement(s,Object(a.a)({type:"button"===s&&(p.onClick||this.props.toggle)?"button":void 0},p,{tabIndex:t,role:e,className:m,onClick:this.onClick}))},e}(u.a.Component);m.propTypes=p,m.defaultProps={tag:"button",toggle:!0},m.contextType=h.a,e.a=m},1006:function(t,e,n){"use strict";n.r(e);var a=n(14),i=n(35),r=n(5),o=n(6),c=n(1),u=n(689),s=n(0),l=n.n(s),d=n(810),f=n(46),h=n(7),b=function(t){var e=t.field,n=Object(o.a)(t,["field"]);return Object(r.a)({editable:"never",field:"Canbo.Thongtincanhan.".concat(e),dataRef:["CanboUuid"]},n)},p=[b({field:"Hovatendem",hidden:!0}),b({field:"Ten",render:function(t){var e=(t||{}).Canbo,n=(e=void 0===e?{}:e).Thongtincanhan,a=(n=void 0===n?{}:n).Hovatendem,i=n.Ten;return a||i?Object(c.jsxs)("div",{className:"d-flex justify-content-between",children:[Object(c.jsx)("div",{children:a}),Object(c.jsx)("div",{children:i})]}):Object(c.jsx)("div",{children:"Kh\xf4ng c\xf3 th\xf4ng tin"})},title:"H\u1ecd v\xe0 t\xean"})],m="Kh\xf4ng c\xf3 th\xf4ng tin",v=function(t){var e=t.CanboUuid,n=t.onOpenPhongBanChucVu,s=Object(o.a)(t,["CanboUuid","onOpenPhongBanChucVu"]),l=Object(f.h)().pathname.split("/"),b=l[l.length-1],v="danh-sach-trich-ngang"===b?5:10,O=[].concat(Object(i.a)(void 0===e?p:[]),[{field:"CreatedDate",hidden:!0,defaultSort:"desc"},{field:"CanboPbcvs.DmPb.Name",title:"Ph\xf2ng ban",dataRef:["DmPb"],render:function(t){var e=(Object(a.a)(t.CanboPbcvs,1)[0]||{}).DmPb,n=(e=void 0===e?{}:e).Name;return Object(c.jsx)("div",{className:n?"":"text-muted",children:n||m})}},{field:"CanboPbcvs.DmCv.Name",title:"Ch\u1ee9c v\u1ee5",dataRef:["DmCv"],render:function(t){var e=(Object(a.a)(t.CanboPbcvs,1)[0]||{}).DmCv,n=(e=void 0===e?{}:e).Name;return Object(c.jsx)("div",{className:n?"":"text-muted",children:n||m})}},{field:"CanboPbcvs.DmCv.Uuid",hidden:!0,dataRef:["DmCv"]},{field:"CanboPbcvs.DmPb.Uuid",hidden:!0,dataRef:["DmPb"]},{field:"IsKiemNhiem",hidden:!0},{field:"Uuid",dataID:!0,hidden:!0},{field:"DonViDen",title:"T\xean \u0111\u01a1n v\u1ecb",searchable:!0,type:"string"},Object(d.a)("Tungay","Th\u1eddi gian b\u1eaft \u0111\u1ea7u"),Object(d.a)("Denngay","Th\u1eddi gian k\u1ebft th\xfac"),{field:"DocumentUuid",title:"V\u0103n b\u1ea3n k\xe8m theo",render:d.c},{field:"Status",hidden:!0}]);return Object(c.jsx)(u.a,Object(r.a)(Object(r.a)({columns:O,pageSize:v,where:e?"CanboUuid eq ".concat(e," and Status eq true"):"Status eq true",title:"Qu\xe1 tr\xecnh ki\xeam nhi\u1ec7m bi\u1ec7t ph\xe1i",url:"QLCB/CanBoBietPhais"},s),{},{onActions:[Object(d.b)("Qu\xe1 tr\xecnh ki\xeam nhi\u1ec7m bi\u1ec7t ph\xe1i")].concat(Object(i.a)(n&&"danh-sach-kiem-nhiem"!==b&&h.k?[{title:"Qu\u1ea3n l\xed ph\xf2ng ban ch\u1ee9c v\u1ee5",icon:"list",tooltip:"Qu\u1ea3n l\xed ph\xf2ng ban ch\u1ee9c v\u1ee5",onClick:n}]:[]))}))};e.default=l.a.memo(v)},1146:function(t,e,n){"use strict";var a=n(5),i=n(6),r=n(1),o=n(0),c=n.n(o),u=n(817),s=n(1242),l=n(705),d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.Thongtincanhan,n=(e=void 0===e?{}:e).Hovatendem,a=e.Ten;return"".concat(n," ").concat(a)},f=function(t){return t},h=function(t){var e=t.inputValue;return"\u0110ang t\u1ea3i c\xe1c c\xe1n b\u1ed9 c\xf3 CMND tr\xf9ng v\u1edbi ".concat(e)},b=function(t){return l.a.getAll(function(t){return"?$expand=Thongtincanhan"+"&$filter=contains(Thongtincanhan/Dinhdanhcanhan, '".concat(t,"')")+"&$top=20"}(t)).then((function(t){return t.value}))};function p(t){var e=t.errors,n=t.touched,o=t.value,c=t.onChange,l=t.name,p=void 0===l?"Uuid":l,m=Object(i.a)(t,["errors","touched","value","onChange","name"]),v=e.Uuid&&n.Uuid;return Object(r.jsxs)("div",{className:"col-md-6",children:[Object(r.jsxs)("label",{children:["C\xe1n b\u1ed9",Object(r.jsx)("span",{className:"text-danger mx-1",children:"(*)"})]}),Object(r.jsx)(u.a,Object(a.a)(Object(a.a)({},m),{},{className:v?"is-invalid":"",id:p,inputId:p,name:p,onChange:function(t){c({target:{name:p,value:t}})},loadingMessage:h,noOptionsMessage:function(){return"Kh\xf4ng t\xecm th\u1ea5y c\xe1n b\u1ed9 ph\xf9 h\u1ee3p"},getOptionLabel:d,getOptionValue:f,placeholder:"Nh\u1eadp CMND \u0111\u1ec3 t\xecm ki\u1ebfm c\xe1n b\u1ed9",value:o,loadOptions:t.loadOptions||b})),v&&Object(r.jsx)(s.a,{children:e.Uuid})]})}e.a=c.a.memo(p)},1242:function(t,e,n){"use strict";var a=n(23),i=n(28),r=n(0),o=n.n(r),c=n(2),u=n.n(c),s=n(16),l=n.n(s),d=n(8),f={children:u.a.node,tag:d.q,className:u.a.string,cssModule:u.a.object,valid:u.a.bool,tooltip:u.a.bool},h={tag:"div",valid:void 0},b=function(t){var e=t.className,n=t.cssModule,r=t.valid,c=t.tooltip,u=t.tag,s=Object(i.a)(t,["className","cssModule","valid","tooltip","tag"]),f=c?"tooltip":"feedback",h=Object(d.m)(l()(e,r?"valid-"+f:"invalid-"+f),n);return o.a.createElement(u,Object(a.a)({},s,{className:h}))};b.propTypes=f,b.defaultProps=h,e.a=b},1595:function(t,e,n){"use strict";n.r(e);var a=n(5),i=n(14),r=n(1),o=n(0),c=n.n(o),u=n(1006),s=n(932),l=n(730),d=n(771),f=n(39),h=n(759),b=n(760),p=n(801),m=n(746),v=n(701),O=n(635),g=n(752),j=n(743),y=n(751),C=n(782),x=n(767),D=n(761),k=n(758),T=n(745),A=n(692),w=n(694),N=n(7),U=n(1146),S=function(t){switch(t){case"CanboUuid":return"C\xe1n b\u1ed9";case"Tungay":return"th\u1eddi gian b\u1eaft \u0111\u1ea7u";case"Denngay":return"th\u1eddi gian k\u1ebft th\xfac";case"DonViDen":return"\u0111\u01a1n v\u1ecb \u0111\u1ebfn";default:return"v\xe0o tr\u01b0\u1eddng n\xe0y"}},P=function(t){return Object(h.b)(t,Object(h.a)(t,S,"DocumentUuid","IsKiemNhiem","CanboPbcvUuid"))},E=function(t){return"".concat(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return"?$expand=".concat(t,"($select=").concat(n.join(","),")")}("Thongtincanhan","Hovatendem","Ten","Dinhdanhcanhan"))+"&$filter=contains(Thongtincanhan/Dinhdanhcanhan, '".concat(t,"') and Status eq true")+"&$top=10"},B=function(){return A.a.getAll("?$filter=Status eq true").then((function(t){return t.value}))},M=function(){return w.a.getAll("?$filter=Status eq true").then((function(t){return t.value}))};var I=function(t){var e=t.isKiemNhiem,n=t.activeRow,i=(n=void 0===n?{}:n).row,u=n.flag,s=t.toggle,l=t.onSubmit,d=void 0!==(null===i||void 0===i?void 0:i.Uuid),h=Object(b.a)({enableReinitialize:!0,initialValues:i,onSubmit:l,validate:P}),A=h.values,w=h.isSubmitting,S=h.handleSubmit,I=h.getFieldProps,$=h.setFieldValue,R=h.status,q=(R=void 0===R?{}:R).isSuccess,V=R.isError,_=h.resetForm,F=Object(o.useMemo)((function(){return q?Object(r.jsxs)(p.a,{color:"success",children:[d?"Ch\u1ec9nh s\u1eeda ":"Th\xeam m\u1edbi "," qu\xe1 tr\xecnh ",e?" ki\xeam nhi\u1ec7m":" bi\u1ec7t ph\xe1i"," th\xe0nh c\xf4ng!"]}):V?Object(r.jsx)(p.a,{color:"danger",children:"Th\u1ea5t b\u1ea1i. Vui l\xf2ng th\u1eed l\u1ea1i!"}):Object(r.jsx)(m.a,{})}),[V,q,d,e]);return c.a.useEffect(_,[i,_]),Object(r.jsx)(g.a,{isOpen:void 0!==i&&void 0===u,toggle:s,size:"lg",children:Object(r.jsxs)("form",{onSubmit:S,noValidate:!0,children:[Object(r.jsxs)(j.a,{children:[d?"Ch\u1ec9nh s\u1eeda":"Th\xeam m\u1edbi","qu\xe1 tr\xecnh ",e?" ki\xeam nhi\u1ec7m":" bi\u1ec7t ph\xe1i"]}),Object(r.jsxs)(y.a,{children:[F,Object(r.jsxs)("div",{className:"row",children:[d?null:Object(r.jsx)(U.a,Object(a.a)({name:"CanboUuid",loadOptions:function(t){return t?v.a.getAll(E(t)).then((function(t){return t.value})):Promise.resolve(null)}},I("CanboUuid"))),Object(r.jsx)(x.a,Object(a.a)({label:"\u0110\u01a1n v\u1ecb \u0111\u1ebfn"},I("DonViDen"))),Object(r.jsx)(D.a,Object(a.a)({label:"Th\u1eddi gian b\u1eaft \u0111\u1ea7u"},I("Tungay"))),Object(r.jsx)(D.a,Object(a.a)({label:"Th\u1eddi gian k\u1ebft th\xfac"},I("Denngay"))),Object(r.jsx)(C.a,Object(a.a)({loadOptions:B,label:"Ph\xf2ng ban"},I("DmPb"))),Object(r.jsx)(C.a,Object(a.a)({loadOptions:M,label:"Ch\u1ee9c v\u1ee5"},I("DmCv"))),Object(r.jsx)(k.a,{activeRow:i,onChange:$})]})]}),Object(r.jsxs)(T.a,{children:[Object(r.jsxs)("button",{className:"btn btn-danger",onClick:s,type:"button",children:[Object(r.jsx)("i",{className:"fas fa-times mr-3"}),"\u0110\xf3ng"]}),N.k?Object(r.jsxs)("button",{className:"btn btn-primary",disabled:w||new f.c(A).isEqual(i),type:"submit",children:[w?Object(r.jsx)(O.a,{size:"sm",className:"mr-3"}):V?Object(r.jsx)("i",{className:"fas fa-sync-mr-3"}):Object(r.jsx)("i",{className:"fas fa-check mr-3"}),V?"Th\u1eed l\u1ea1i":"X\xe1c nh\u1eadn"]}):null]})]})})},$=n(46),R=n(724),q=n(881);e.default=function(){var t=Object($.h)(),e=c.a.useMemo((function(){var e=t.pathname.split("/");return"danh-sach-kiem-nhiem"===e[e.length-1]}),[t]),n=c.a.useState(void 0),o=Object(i.a)(n,2),h=o[0],b=o[1],p=(h||{}).row,m=(p=void 0===p?{}:p).Canbo,v=(m=void 0===m?{}:m).Uuid,O=c.a.useRef({}),g=c.a.useMemo((function(){return{onClick:function(){return b({row:{Tungay:"",Denngay:"",CanboUuid:"",DonViDen:"",DmPb:null,DmCv:null}})}}}),[]),j=c.a.useMemo((function(){return{onClick:function(t,e){var n=e.CanboPbcvs;n=void 0===n?[]:n;var r=Object(i.a)(n,1)[0],o=(void 0===r?{}:r)||{},c=o.DmPb,u=void 0===c?null:c,s=o.DmCv,l=void 0===s?null:s,d=o.Uuid,h=Object(f.m)(Object(a.a)(Object(a.a)({},e),{},{CanboUuid:e.Canbo.Uuid,CanboBietphaiUuid:e.Uuid,CanboPbcvUuid:d,DmPb:u,DmCv:l}),["CanboPbcvs"]);b({row:h})}}}),[]),y=c.a.useMemo((function(){return{onClick:function(t,e){return Object(q.a)(l.a,e," ki\xeam nhi\u1ec7m",O.current.onQueryChange)}}}),[e]),C=c.a.useCallback((function(t,e){return b({row:e,flag:"PHONG_BAN_CHUC_VU"})}),[]),x=function(){b(void 0)},D=c.a.useMemo((function(){return e?"IsKiemNhiem eq true and Status eq true and Canbo/Status eq true":"(IsKiemNhiem eq false or IsKiemNhiem eq null) and Status eq true and Canbo/Status eq true"}),[e]);return Object(r.jsxs)("div",{children:[Object(r.jsx)(u.default,Object(a.a)({where:D,title:"Danh s\xe1ch c\xe1n b\u1ed9 ".concat(e?"ki\xeam nhi\u1ec7m":"bi\u1ec7t ph\xe1i"),tableRef:O,onOpenPhongBanChucVu:e?C:void 0},N.k?{onEdit:j,onAdd:g,onDelete:y}:{})),Object(r.jsx)(I,{toggle:x,isKiemNhiem:e,onSubmit:function(t,n,i){var r=t.Tungay,o=t.Denngay,c=t.CanboPbcvUuid,u=t.DmCv.Uuid,s=t.DmPb.Uuid,b=t.CanboUuid,p=n.setStatus,m=n.resetForm,g=Object(f.m)(t,["tableData","Canbo"]),j=t.hasOwnProperty.call(t,"Uuid");return Object(d.a)(t,h,"VBKNBP",v||t.CanboUuid.Uuid).then((function(n){return l.a.addUpdate(Object(a.a)({IsKiemNhiem:e,Uuid:t.CanboBietphaiUuid},g),n,["CanboBietphaiUuid","DmCv","DmPb","CanboPbcvUuid"]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(Object(a.a)({},t),{},{DocumentUuid:n})}))})).then((function(e){var n=e.DocumentUuid,a=e.Uuid,i=void 0===a?t.CanboBietphaiUuid:a;return R.a.addUpdate({CanboUuid:b,Uuid:c,CanboBietphaiUuid:i,DmCvUuid:u,DmPbUuid:s,Tungay:r,Denngay:o},n)})).then((function(){!function(){var t=O.current.onQueryChange;"function"===typeof t&&t()}(),j||m(),"function"===typeof i&&i(),p({isSuccess:!0});setTimeout((function(){return p({isSuccess:!1})}),2e3)})).catch((function(){return p({isError:!0})}))},activeRow:h}),e?Object(r.jsx)(s.default,{DocTypeUuid:"VBKNBP",CanboUuid:v,activeRow:h,toggle:x}):null]})}},668:function(t,e,n){"use strict";var a=n(35),i=n(5),r=n(10),o=n(11),c=n(17),u=n(14),s=n(39),l=n(671),d=n(685),f={noLoading:"\ud83d\ude02\ud83d\ude02\ud83d\ude02",noAlert:!0},h=function(t,e){var n=Object(u.a)(e,2),a=n[0],i=n[1];return void 0!==(null===i||void 0===i?void 0:i.Uuid)?t[a]=null===i||void 0===i?void 0:i.Uuid:t[a]=i,t},b=function(t){return Object.entries(t).reduce(h,{})},p=function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(t){var o;return Object(r.a)(this,n),(o=e.call(this,"/QLCB"+t)).getAll=function(t){return o.SearchAllOdata(t)},o.add=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return o.InsertODATA(t,e)},o.edit=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return o.UpdateODATA("(".concat(t,")"),e,n)},o.delete=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return o.DeleteADMINODATA("(".concat(t,")"),e)},o.addUpdate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!t)return Promise.reject("nani");var r=void 0!==t.Uuid,c=Object(i.a)(Object(i.a)({},b(t)),{},{DocumentUuid:e});return r?o.edit(t.Uuid,Object(s.m)(c,[].concat(Object(a.a)(n),["tableData"]))):o.add(Object(s.m)(c,n)).catch((function(){return e?l.a.delete(e).then(Promise.reject):Promise.reject("Thi ra may chon cai chet")}))},o}return n}(d.a);e.a=p},669:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(t){var i;return Object(a.a)(this,n),(i=e.call(this,"/DM",t)).getAll=function(t){return i.SearchAllOdata(t)},i.add=function(t){return i.InsertODATA(t)},i.edit=function(t,e){return i.UpdateODATA("(".concat(t,")"),e)},i.delete=function(t){return i.Delete("",t)},i}return n}(n(109).a)},671:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=n(686),u=n(7),s=n(63),l=n(220),d=n.n(l),f=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){var t;return Object(a.a)(this,n),(t=e.call(this,"/Documents")).downloadDoc=function(e){var n=e.Uuid,a=e.Subject;return t.GetAuthenADMINODATA("/Download?uuid=".concat(n),{responseType:"blob",noAlert:!0,noLoading:!0}).then((function(t){return d()(t,a)}))},t.getDocUrlByUuid=function(e){return u.i+u.d+t.prefix+t.path+"/Download?uuid=".concat(e)},t}return Object(i.a)(n,[{key:"addDocument",value:function(t){return this.add(t)}},{key:"uploadFileDocument",value:function(t,e){return this.upload(t,e)}},{key:"getByUuid",value:function(t){return this.getAll("(".concat(t,")"),{noAlert:!0,noLoading:!0})}},{key:"getBase64",value:function(t){var e=this.getDocUrlByUuid(t);return fetch(e,Object(s.g)("GET",null,!0)).then((function(t){return t.blob()})).then(URL.createObjectURL)}}]),n}(c.a);e.a=new f},676:function(t,e,n){"use strict";var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(t){return Object(a.a)(this,n),e.call(this,"/QLCB",t)}return n}(n(109).a);e.a=o},677:function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var a=new Uint8Array(16);t.exports=function(){return n(a),a}}else{var i=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0===(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}}},678:function(t,e){for(var n=[],a=0;a<256;++a)n[a]=(a+256).toString(16).substr(1);t.exports=function(t,e){var a=e||0,i=n;return[i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],"-",i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]],i[t[a++]]].join("")}},679:function(t,e,n){"use strict";n.d(e,"i",(function(){return r})),n.d(e,"j",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"k",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return m})),n.d(e,"f",(function(){return v})),n.d(e,"e",(function(){return O})),n.d(e,"d",(function(){return g})),n.d(e,"g",(function(){return j})),n.d(e,"h",(function(){return y}));n(99);var a=".",i="/",r=function(t){return t.filter((function(t){return t.dataID}))[0]},o=function(t){return r(t).field},c=function(t){return t&&t.includes(a)},u=function(t){return t&&t.includes(i)},s=function(t){return t.split(a).join(i)},l=function(t,e){return t?e.field:e},d=function(t,e,n){var a=r(e);return"".concat(t,"(").concat(n[a.field],")")},f=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=[],s=[],d=[],f=[],h="",b="";t.forEach((function(t,e){d.push(t.field)}));var p=[],m=[];d.forEach((function(t,e){p.includes(t)?m.push(e):p.push(t)})),m.forEach((function(e){t.splice(e,1)})),t.forEach((function(t,r){var c="";c=n?l(e,t).split(a).reverse().splice(1).reverse().join(","):l(e,t).split(a).reverse().splice(1).reverse().join(i);var d=l(e,t).split(a).splice(1).reverse().join(i);u(d)&&(d=d.split(i)[0]),0===r?(o.push(c),s.push(d),f[r]=c):o.some((function(t){return t===c}))?(f.forEach((function(t,e){t===c&&(h=e)})),s[h]!==d&&(s[h]=s[h]+","+d)):(o.push(c),f[r]=c,s[r]=d)}));var v=[];return s.forEach((function(t){v.push(t)})),s=v,o.forEach((function(t,e){if(0===e)if(u(t)){var n=t.split(i),a=s[e].split(i),o="",l="",d="",f="";n.forEach((function(t,e){d=e===n.length-1?d+")":"",f+=")",0===e?o=l=t+"("+d:(l=e===n.length-1?"$expand="+t+"($select="+a[0]+f:"$expand="+t+"("+d,o=o+""+l)})),b=o}else if(null!==r){var h="";r.map((function(t,e){if(c(t.field)){var n=t.field.split(".");h+=0===e?n[n.length-1]:h+","+n[n.length-1]}})),b=t+"($select="+s[e]+","+h+")"}else b=t+"($select="+s[e]+")";else if(u(t)){var p=t.split(i),m=s[e].split(i),v="",O="",g="",j="";p.forEach((function(t,e){g=e===p.length-1?g+")":"",j+=")",0===e?v=O=t+"("+g:(O=e===p.length-1?"$expand="+t+"($select="+m[0]+j:"$expand="+t+"("+g,v=v+""+O)})),b=b+","+v}else b=b+","+t+"($select="+s[e]+")"})),b},h=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return e?"withColumns"===e?"".concat(t.reduce((function(t,e,a,i){var r=l(n,e),o="".concat(t),u=o.split(","),s=!0;if(c(r)){var d=r.split(".");-1===u.indexOf(e.dataRef[0])&&d.length<3&&(o+="".concat(void 0===e.dataRef?"":e.dataRef[0]+","))}else-1===u.indexOf(r)?o+="".concat(r):s=!1;return"".concat(o).concat(a===i.length-1||!0===c(r)?"":!0===s?",":"")}),"")):"":"".concat(t.filter((function(t){return c(t.field)})).reduce((function(t,e){return"".concat(t,",").concat(s(l(n,e)))}),"*"))},b=function(t,e){return"string"===t?"'".concat(e,"'"):"datetime"===t?"datetime'".concat(e,"'"):"".concat(e)},p=function(t,e,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(!a)return"".concat(t," eq ").concat(b(e,n));var o=t.split(".")[0].split("/");if(o.length<3){if(c(t)){if(r){var u=t.split(".").join("/"),s="contains(".concat(u,",'").concat(n,"')")+i;return r.map((function(t){if(t.isSearch){var e=t.field.split(".").join("/");s+=" or contains(".concat(e,",'").concat(n,"')")+i}})),s}var l=t.split(".").join("/");return"contains(".concat(l,",'").concat(n,"')")}return i?"contains(".concat(t,",'").concat(n,"') ").concat(i):"contains(".concat(t,",'").concat(n,"')")}},m=function(t,e,n,a){if(t.filters&&t.filters.length>0){var i=t.filters.filter((function(t){return t.column.field&&t.column.type})).map((function(t){var e="";return e="".concat(n?c(t.column.field)?s(n):t.column.field:c(t.column.field)?t.column.dataRef[0]:t.column.field),p(e,t.column.type,t.value)}));return i&&i.join(" and ")}if(t.search&&t.search.length>=1){var r=e.filter((function(t){return t.searchable&&t.field&&t.type})).map((function(e){var n="".concat(c(e.field)?s(e.field):e.field);return"numeric"!==e.type||c(e.field)?p(n,e.type,t.search,!0,a?"and "+a:e.where):isNaN(Number(t.search))?void 0:p(n,e.type,t.search,!1)}));return r.map((function(t,e){void 0===t&&r.splice(e,1)})),r.forEach((function(t,e){"undefined"===typeof t&&r.splice(e,1)})),r&&r.join(" or ")}return""},v=function(t,e){return"$top=".concat(e,"&$skip=").concat(t*e,"&$count=true")},O=function(t,e){return"&$orderby=".concat(c(t)?s(t):t," ").concat(e)},g=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t.filter((function(t){return c(l(e,t))}));return 0===i.length?"":"&$expand=".concat(null!==a?f(i,e,n,a):f(i,e,n))},j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"withColumns",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=h(t,e,n);if(a)return r?"&$select=".concat(r):"";if(null!==i){var o="";return i.map((function(t){return o+=",".concat(t.field)})),r?"&$select=".concat(r," ").concat(o):""}return r?"&$select=".concat(r):""},y=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"withColumns",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(null!==i){var c="".concat("&$filter="+i.field+" ne "+i.data),u="".concat(" and "+i.field+" ne "+i.data);return"".concat(g(t,n)).concat(j(t,a,n)).concat(e?"&$filter="+e+u:c)}return!1===r?void 0!==o?"".concat(g(t,n)).concat(j(t,a,n,r,o)).concat(e?"&$filter="+e:""):"".concat(g(t,n)).concat(j(t,a,n,r)).concat(e?"&$filter="+e:""):"".concat(g(t,n,r,o)).concat(e?"&$filter="+e:"")}},685:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(t){var i;return Object(a.a)(this,n),(i=e.call(this,"",t)).getAll=function(t){return i.SearchAllOdata(t,{noAlert:"alert cc",noLoading:"loading cc"})},i.add=function(t){return i.InsertODATA(t)},i.edit=function(t,e){return i.UpdateODATA("(".concat(t,")"),e)},i.delete=function(t){return i.Delete("",t)},i.getAllUnlimited=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return i.getAll("".concat(t?"".concat(t,"&"):"?","$skip=").concat(e)).then((function(a){var r=a["@odata.nextLink"],o=a.value.concat(n);return r?i.getAllUnlimited(t,e+50,o):o}))},i}return n}(n(109).a)},686:function(t,e,n){"use strict";var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(t){var i;return Object(a.a)(this,n),(i=e.call(this,"/SDoc",t)).getAll=function(t,e){return i.SearchAllOdata(t,e)},i.add=function(t){return i.InsertODATA(t)},i.upload=function(t,e){return i.UploadODataSdoc("/upload",!0,!1,e,t)},i.edit=function(t,e){return i.UpdateODATA("(".concat(t,")"),e)},i.delete=function(t){return i.DeleteADMINODATA("(".concat(t,")"),{noLoading:"loadCC",noAlert:"lertCC"})},i}return n}(n(109).a);e.a=o},689:function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var a=n(10),i=n(34),r=n(11),o=n(17),c=n(1),u=n(0),s=n.n(u),l=n(695),d=n(5),f=n(6),h={body:{emptyDataSourceMessage:"Kh\xf4ng c\xf3 d\u1eef li\u1ec7u \u0111\u1ec3 hi\u1ec3n th\u1ecb",addTooltip:"Th\xeam",editTooltip:"S\u1eeda",deleteTooltip:"X\xf3a",editRow:{deleteText:"B\u1ea1n c\xf3 ch\u1eafc ch\u1eafn x\xf3a d\xf2ng n\xe0y kh\xf4ng?",cancelTooltip:"H\u1ee7y",saveTooltip:"L\u01b0u"}},toolbar:{exportTitle:"Xu\u1ea5t file",searchTooltip:"T\xecm ki\u1ebfm",showColumnsTitle:"Hi\u1ec7n c\u1ed9t",addRemoveColumns:"Th\xeam v\xe0 hi\u1ec3n th\u1ecb c\xe1c c\u1ed9t",searchPlaceholder:"T\xecm ki\u1ebfm"},pagination:{labelRowsPerPage:"S\u1ed1 d\xf2ng cho 1 trang",labelRowsSelect:"d\xf2ng",labelDisplayedRows:" {from}-{to} c\u1ee7a {count}",firstTooltip:"Trang \u0111\u1ea7u ti\xean",previousTooltip:"Trang tr\u01b0\u1edbc",nextTooltip:"Trang sau",lastTooltip:"Trang cu\u1ed1i c\xf9ng"},header:{actions:"Thao t\xe1c"}},b=s.a.lazy((function(){return Promise.all([n.e(0),n.e(3),n.e(4),n.e(6),n.e(88)]).then(n.bind(null,1576))})),p=s.a.lazy((function(){return Promise.all([n.e(0),n.e(4),n.e(38),n.e(119)]).then(n.bind(null,1256))})),m=s.a.lazy((function(){return n.e(140).then(n.bind(null,1250))})),v={color:"#000",padding:"5px",fontSize:"13px",fontWeight:"bold",textAlign:"center",backgroundColor:"rgb(245, 247, 255)",borderLeft:"0.5px solid rgb(224, 224, 224)"},O={even:"#FFF",odd:"rgb(247, 248, 255)"},g={padding:"4px 4px 4px 6px !important",fontSize:"0.775rem",borderLeft:"0.5px solid rgba(224, 224, 224, 1)"},j=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var t=this.props,e=(t.components,t.onSelectionChange),n=t.options,a=t.addMoreRows,i=t.pageSize,r=t.search,o=t.CustumToolbar,u=t.CustumCell,s=t.SearchAdvanced,l=t.onRowClick,j=(t.dataCount,t.rowsPerPage,t.page,Object(f.a)(t,["components","onSelectionChange","options","addMoreRows","pageSize","search","CustumToolbar","CustumCell","SearchAdvanced","onRowClick","dataCount","rowsPerPage","page"]));return Object(c.jsx)(b,Object(d.a)(Object(d.a)({},j),{},{addMoreRows:a,localization:h,options:{selection:n,exportButton:!1,search:r,actionsColumnIndex:-1,pageSize:i,headerStyle:v,pageSizeOptions:[5,10,30,50],rowStyle:function(t,e,n){return{backgroundColor:e%2===0?O.even:O.odd}}},onSelectionChange:e,onRowClick:void 0===l?void 0:function(t,e){return l(t,e)},components:function(){var t={Toolbar:function(t){return Object(c.jsx)(p,Object(d.a)(Object(d.a)({},t),{},{SearchAdvanced:s}))},Cell:function(t){return Object(c.jsx)(m,Object(d.a)(Object(d.a)({},t),{},{style:g}))}};return o&&(t.Toolbar=o),u&&(t.Cell=u),t}()}))}}]),n}(s.a.Component);j.defaultProps={pageSize:10,search:!0};var y=n(679),C=n(218),x=n(99),D=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var t=this.props,e=t.tableRef,n=t.url,a=t.urlExt,i=t.title,r=t.columns,o=t.pageSize,u=t.detailPanel,s=t.addMoreRows,d=t.where,f=t.search,h=t.selectType,b=t.noOdata,p=t.onRefresh,m=t.onAdd,v=t.onEdit,O=t.onDelete,g=t.onActions,D=t.onRowClick,k=t.SearchAdvanced,T=t.CustumToolbar,A=t.CustumCell,w=t.render,N=t.components,U=t.options,S=t.onSelectionChange,P=t.fieldFilter,E=t.concatSeachColumn,B=t.whereConCatColumn,M=t.onActionFree,I=function(t){return r.filter((function(t){return y.a(t.field)&&t.dataRef})).map((function(t){return{column:t,field_split:t.field.split(".")}})).forEach((function(e){delete t[e.field_split[0]]}))},$=function(t){for(var e=r.filter((function(t){return t.dataCheck})),n=0;n<e.length;n++)if(y.a(e[n].field)&&e[n].dataRef){if(null===t[e[n].dataRef[0]]||void 0===t[e[n].dataRef[0]])return Object(x.g)("Vui l\xf2ng nh\u1eadp d\u1eef li\u1ec7u c\u1ed9t "+e[n].title),!1}else if(void 0===t[e[n].field]||null===t[e[n].field])return Object(x.g)("Vui l\xf2ng nh\u1eadp d\u1eef li\u1ec7u c\u1ed9t "+e[n].title),!1;return!0};return Object(c.jsx)(j,{onSelectionChange:S,options:U,addMoreRows:s,search:f,pageSize:o,title:i,columns:r,tableRef:e,SearchAdvanced:k,CustumToolbar:T,CustumCell:A,data:function(t){return n?Object(C.c)(function(t){var e=r.filter((function(t){return"asc"===t.sortMulti||"desc"===t.sortMulti})),a="".concat(n,"?").concat(y.f(t.page,t.pageSize));a+="".concat(y.d(r)).concat(y.g(r,h)),t.orderBy&&void 0!==t.orderBy&&t.orderDirection&&""!==t.orderDirection&&(0!==e.length?e.forEach((function(t,n,i){var r="";0!==n&&(r=t.field.split(".").join("/")),a+=0===n?y.e(t.field,""):n!==e.length-1?",".concat(r):",".concat(r," ").concat(t.sortMulti)})):a+=y.e(t.orderBy.field,t.orderDirection));var i=y.c(t,r,P,d);return a+=i?E?B?d?"&$filter=(".concat(i,") or ").concat(E,"'").concat(t.search,"') and ").concat(B," and ").concat(d):"&$filter=".concat(i," or ").concat(E," eq '").concat(t.search,"' and ").concat(B):d?"&$filter=(".concat(i,") or ").concat(E,"'").concat(t.search,"') and ").concat(d):"&$filter=".concat(i," or ").concat(E," eq '").concat(t.search,"'"):d?"&$filter=(".concat(i,") and ").concat(d):"&$filter=".concat(i):d?"&$filter="+d:""}(t),"GET",null,b).then((function(e){return{data:b?e:void 0===e.value?[]:e.value,page:t.page,totalCount:b?e.length:Number(e["@odata.count"])}})):Object(C.c)(function(t){return"".concat(a).concat(d?"?"+d:"&","skip=").concat(t.page*t.pageSize,"&take=").concat(t.pageSize)}(t),"GET",null,!1).then((function(e){return{data:void 0===e.value?[]:e.value,page:t.page,totalCount:Number(e.count)}}))},detailPanel:u,editable:function(){var t={};return m&&void 0===m.onClick&&(void 0===m.onRowAdd?t.onRowAdd=function(t){return new Promise((function(e,a){var i=y.i(r);i.type&&"numeric"!==i.type&&"int"!==i.type&&(t[y.j(r)]=Object(l.v4)()),I(t),m.defaultValues&&m.defaultValues.forEach((function(e){return t[e.field]=e.value})),$(t)?Object(C.c)("".concat(n),"POST",JSON.stringify(t)).then((function(t){return e(t)})).catch((function(t){return a(t)})):a()}))}:t.onRowAdd=function(t){return m.onRowAdd(t,(function(t){return $(t)}))}),v&&void 0===v.onClick&&(v.hidden&&(t.onUpdateHidden=function(t){return v.hidden(t)}),void 0===v.onRowUpdate?t.onRowUpdate=function(t,e){return new Promise((function(a,i){I(t),function(t){r.map((function(e){return{column:e.field,value:""===t[e.field]?null:t[e.field]}})).forEach((function(e){return t[e.column]=e.value,t}))}(t),$(t)?Object(C.c)(y.k(n,r,e),"PATCH",JSON.stringify(t)).then((function(t){return a(t)})).catch((function(t){i(t.value||t),Object(x.e)(t.value)})):i()}))}:t.onRowUpdate=function(t,e){return v.onRowUpdate(t,e,(function(t){return $(t)}))}),O&&void 0===O.onClick&&(O.hidden&&(t.onDeleteHidden=function(t){return O.hidden(t)}),void 0===O.onRowDelete?t.onRowDelete=function(t){return new Promise((function(e,a){return Object(C.c)(y.k(n,r,t),"DELETE").then((function(){O.messageSuccess?e(null,O.messageSuccess):e("X\xf3a d\u1eef li\u1ec7u th\xe0nh c\xf4ng !")})).catch((function(t){Object(x.e)("X\xf3a d\u1eef li\u1ec7u kh\xf4ng th\xe0nh c\xf4ng !"),O.messageError?a(t,O.messageError):a("X\xf3a d\u1eef li\u1ec7u th\u1ea5t b\u1ea1i !")}))}))}:t.onRowDelete=function(t){return O.onRowDelete(t)}),t}(),actions:function(){var t=[];return p?(p.icon="refresh",p.isRefresh=!0,p.tooltip="T\u1ea3i l\u1ea1i d\u1eef li\u1ec7u",p.isFreeAction=!0,t.push(p)):t.push({icon:"refresh",isRefresh:!0,tooltip:"T\u1ea3i l\u1ea1i d\u1eef li\u1ec7u",isFreeAction:!0,onClick:function(){return e.current&&e.current.onQueryChange()}}),g&&g.map((function(e){return t.push(e)})),m&&m.onClick&&(m.icon="add_box",m.tooltip="Th\xeam",m.isAdd=!0,m.isFreeAction=!0,t.push(m)),v&&v.onClick&&(v.icon="edit",v.tooltip="S\u1eeda",v.isEdit=!0,t.push(v)),O&&O.onClick&&(O.icon="delete",O.tooltip="X\xf3a",O.isDelete=!0,t.push(O)),t}(),onActionFree:M,render:w,components:N,onRowClick:void 0===D?void 0:function(t,e){return D(t,e)}})}}]),n}(s.a.Component);D.defaultProps={addMoreRows:!1,title:"",columns:[],pageSize:10,search:!0,tableRef:s.a.createRef()}},692:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){var t;return Object(a.a)(this,n),(t=e.call(this,"/DMPhongBans")).getAllUnlimited=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t.getAll("".concat(e?"".concat(e,"&"):"?","$skip=").concat(n)).then((function(i){var r=i["@odata.nextLink"],o=i.value.concat(a);return r?t.getAllUnlimited(e,n+50,o):o}))},t}return Object(i.a)(n,[{key:"getFindById",value:function(t){return this.SearchAllOdata("/findById?id="+t+"&select=name%2Cuuid%2Cprefix")}},{key:"findByUuid",value:function(t){return this.SearchAllOdata("/findById?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getOptionsByDistrictUuid",value:function(t){return this.SearchAllOdata("/District?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(){return this.SearchAllOdata("?$filter=Status eq true &$select=name%2CUuid%2Ccode%2CDouutien&count=true")}}]),n}(n(669).a);e.a=new c},693:function(t,e,n){"use strict";var a=n(14),i=n(0);e.a=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object(i.useState)("idle"),r=Object(a.a)(n,2),o=r[0],c=r[1],u=Object(i.useState)(void 0),s=Object(a.a)(u,2),l=s[0],d=s[1],f=Object(i.useState)(void 0),h=Object(a.a)(f,2),b=h[0],p=h[1],m=Object(i.useRef)(!1),v=Object(i.useCallback)((function(){return c("pending"),p(null),t().then((function(t){m.current&&(d(t),c("success"))})).catch((function(t){m.current&&(p(t),c("error"))}))}),[t]);return Object(i.useEffect)((function(){e&&v()}),[v,e]),Object(i.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]),{execute:v,status:o,value:l,error:b,setValue:d,setStatus:c}}},694:function(t,e,n){"use strict";var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/DMChucVus")}return n}(n(669).a);e.a=new o},695:function(t,e,n){var a=n(697),i=n(698),r=i;r.v1=a,r.v4=i,t.exports=r},697:function(t,e,n){var a,i,r=n(677),o=n(678),c=0,u=0;t.exports=function(t,e,n){var s=e&&n||0,l=e||[],d=(t=t||{}).node||a,f=void 0!==t.clockseq?t.clockseq:i;if(null==d||null==f){var h=r();null==d&&(d=a=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==f&&(f=i=16383&(h[6]<<8|h[7]))}var b=void 0!==t.msecs?t.msecs:(new Date).getTime(),p=void 0!==t.nsecs?t.nsecs:u+1,m=b-c+(p-u)/1e4;if(m<0&&void 0===t.clockseq&&(f=f+1&16383),(m<0||b>c)&&void 0===t.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=b,u=p,i=f;var v=(1e4*(268435455&(b+=122192928e5))+p)%4294967296;l[s++]=v>>>24&255,l[s++]=v>>>16&255,l[s++]=v>>>8&255,l[s++]=255&v;var O=b/4294967296*1e4&268435455;l[s++]=O>>>8&255,l[s++]=255&O,l[s++]=O>>>24&15|16,l[s++]=O>>>16&255,l[s++]=f>>>8|128,l[s++]=255&f;for(var g=0;g<6;++g)l[s+g]=d[g];return e||o(l)}},698:function(t,e,n){var a=n(677),i=n(678);t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var c=0;c<16;++c)e[r+c]=o[c];return e||i(o)}},699:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},701:function(t,e,n){"use strict";var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/QLCB/CanBos")}return n}(n(685).a);e.a=new o},705:function(t,e,n){"use strict";n.d(e,"c",(function(){return a.a})),n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return r.a})),n.d(e,"d",(function(){return s}));var a=n(692),i=n(694),r=n(701),o=n(10),c=n(11),u=n(17),s=new(function(t){Object(c.a)(n,t);var e=Object(u.a)(n);function n(){return Object(o.a)(this,n),e.call(this,"/DMPhuCaps")}return n}(n(669).a))},710:function(t,e,n){"use strict";var a=n(699);e.__esModule=!0,e.getScrollbarWidth=o,e.setScrollbarWidth=c,e.isBodyOverflowing=u,e.getOriginalBodyPadding=function(){var t=window.getComputedStyle(document.body,null);return parseInt(t&&t.getPropertyValue("padding-right")||0,10)},e.conditionallyUpdateScrollbar=function(){var t=o(),e=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=e?parseInt(e.style.paddingRight||0,10):0;u()&&c(n+t)},e.setGlobalCssModule=function(t){i=t},e.mapToCssModules=function(t,e){void 0===t&&(t="");void 0===e&&(e=i);return e?t.split(" ").map((function(t){return e[t]||t})).join(" "):t},e.omit=function(t,e){var n={};return Object.keys(t).forEach((function(a){-1===e.indexOf(a)&&(n[a]=t[a])})),n},e.pick=function(t,e){var n,a=Array.isArray(e)?e:[e],i=a.length,r={};for(;i>0;)n=a[i-=1],r[n]=t[n];return r},e.warnOnce=l,e.deprecated=function(t,e){return function(n,a,i){null!==n[a]&&"undefined"!==typeof n[a]&&l('"'+a+'" property of "'+i+'" has been deprecated.\n'+e);for(var r=arguments.length,o=new Array(r>3?r-3:0),c=3;c<r;c++)o[c-3]=arguments[c];return t.apply(void 0,[n,a,i].concat(o))}},e.DOMElement=f,e.isReactRefObj=m,e.toNumber=function(t){var e=typeof t;if("number"===e)return t;if("symbol"===e||"object"===e&&"[object Symbol]"===v(t))return NaN;if(O(t)){var n="function"===typeof t.valueOf?t.valueOf():t;t=O(n)?""+n:n}if("string"!==e)return 0===t?t:+t;t=t.replace(/^\s+|\s+$/g,"");var a=/^0b[01]+$/i.test(t);return a||/^0o[0-7]+$/i.test(t)?parseInt(t.slice(2),a?2:8):/^[-+]0x[0-9a-f]+$/i.test(t)?NaN:+t},e.isObject=O,e.isFunction=g,e.findDOMElements=j,e.isArrayOrNodeList=y,e.getTarget=function(t,e){var n=j(t);return e?y(n)?n:null===n?[]:[n]:y(n)?n[0]:n},e.addMultipleEventListeners=function(t,e,n,a){var i=t;y(i)||(i=[i]);var r=n;"string"===typeof r&&(r=r.split(/\s+/));if(!y(i)||"function"!==typeof e||!Array.isArray(r))throw new Error("\n The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\n The second must be a function.\n The third is a string or an array of strings that represents DOM events\n ");return Array.prototype.forEach.call(r,(function(t){Array.prototype.forEach.call(i,(function(n){n.addEventListener(t,e,a)}))})),function(){Array.prototype.forEach.call(r,(function(t){Array.prototype.forEach.call(i,(function(n){n.removeEventListener(t,e,a)}))}))}},e.focusableElements=e.defaultToggleEvents=e.canUseDOM=e.PopperPlacements=e.keyCodes=e.TransitionStatuses=e.TransitionPropTypeKeys=e.TransitionTimeouts=e.tagPropType=e.targetPropType=void 0;var i,r=a(n(2));function o(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}function c(t){document.body.style.paddingRight=t>0?t+"px":null}function u(){return document.body.clientWidth<window.innerWidth}var s={};function l(t){s[t]||("undefined"!==typeof console&&console.error(t),s[t]=!0)}var d="object"===typeof window&&window.Element||function(){};function f(t,e,n){if(!(t[e]instanceof d))return new Error("Invalid prop `"+e+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var h=r.default.oneOfType([r.default.string,r.default.func,f,r.default.shape({current:r.default.any})]);e.targetPropType=h;var b=r.default.oneOfType([r.default.func,r.default.string,r.default.shape({$$typeof:r.default.symbol,render:r.default.func}),r.default.arrayOf(r.default.oneOfType([r.default.func,r.default.string,r.default.shape({$$typeof:r.default.symbol,render:r.default.func})]))]);e.tagPropType=b;e.TransitionTimeouts={Fade:150,Collapse:350,Modal:300,Carousel:600};e.TransitionPropTypeKeys=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"];e.TransitionStatuses={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"};e.keyCodes={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80};e.PopperPlacements=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var p=!("undefined"===typeof window||!window.document||!window.document.createElement);function m(t){return!(!t||"object"!==typeof t)&&"current"in t}function v(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function O(t){var e=typeof t;return null!=t&&("object"===e||"function"===e)}function g(t){if(!O(t))return!1;var e=v(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object Proxy]"===e}function j(t){if(m(t))return t.current;if(g(t))return t();if("string"===typeof t&&p){var e=document.querySelectorAll(t);if(e.length||(e=document.querySelectorAll("#"+t)),!e.length)throw new Error("The target '"+t+"' could not be identified in the dom, tip: check spelling");return e}return t}function y(t){return null!==t&&(Array.isArray(t)||p&&"number"===typeof t.length)}e.canUseDOM=p;e.defaultToggleEvents=["touchstart","click"];e.focusableElements=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])']},711:function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},n.apply(this,arguments)}t.exports=n},712:function(t,e,n){"use strict";n.d(e,"d",(function(){return a.a})),n.d(e,"f",(function(){return s})),n.d(e,"e",(function(){return l.a})),n.d(e,"n",(function(){return d.a})),n.d(e,"c",(function(){return f.a})),n.d(e,"b",(function(){return h.a})),n.d(e,"a",(function(){return b.a})),n.d(e,"g",(function(){return p})),n.d(e,"i",(function(){return v})),n.d(e,"m",(function(){return O})),n.d(e,"l",(function(){return j})),n.d(e,"h",(function(){return y})),n.d(e,"k",(function(){return C})),n.d(e,"j",(function(){return x})),n.d(e,"p",(function(){return D})),n.d(e,"o",(function(){return k}));n(729);var a=n(716),i=n(10),r=n(34),o=n(11),c=n(17),u=n(676),s=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/CanBoNgachBacs")}return Object(r.a)(n,[{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"getFindByCMND",value:function(t){return this.SearchAllOdata("?$filter=Thongtincanhan/Dinhdanhcanhan eq '".concat(t,"'"))}},{key:"getDataByIDCanBo",value:function(t){return this.SearchAllOdata("?$expand=DmB($select=Name,Heso),DmN($select=Name,Code)&$filter=CanboUuid eq ".concat(t,"&$orderby=Tungay desc"))}}]),n}(u.a)),l=n(732),d=n(736),f=n(724),h=(n(727),n(735),n(725)),b=n(730),p=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/CanBoPhuCaps")}return Object(r.a)(n,[{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"delete",value:function(t){return this.DeleteADMINODATA("(".concat(t,")"))}},{key:"getAllByUuidCanBo",value:function(t){return this.SearchAllOdata("?$expand=OrganizationPhucap&$filter=CanboUuid eq ".concat(t," and Status eq true"))}}]),n}(u.a)),m=n(668),v=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/CanBoThanNhans")}return n}(m.a)),O=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/Notifys")}return Object(r.a)(n,[{key:"getDataByID",value:function(t){return this.SearchAllOdata("(".concat(t,")"))}},{key:"getAll",value:function(){return this.SearchAllOdata("?$filter=Thoigian gt now()&$orderby=CreatedDate desc")}},{key:"updateViewed",value:function(t){return this.UpdateODATA("(".concat(t,")"),{IsView:!0})}},{key:"delete",value:function(t){return this.DeleteADMINODATA("(".concat(t,")"))}}]),n}(u.a)),g=n(109),j=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/Notifys")}return Object(r.a)(n,[{key:"updateNotify",value:function(){return this.GetAuthenADMIN("/UpdateNotify")}},{key:"checkedNotify",value:function(){return this.GetAuthenADMIN("/UpdateViewedNotify")}}]),n}(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(t){return Object(i.a)(this,n),e.call(this,"/Others",t)}return n}(g.a))),y=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/CanBoSangKiens")}return Object(r.a)(n,[{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"delete",value:function(t){return this.DeleteADMINODATA("(".concat(t,")"))}},{key:"getAllByUuidCanBo",value:function(t){return this.SearchAllOdata("?$expand=OrganizationPhucap&$filter=CanboUuid eq ".concat(t," and Status eq true"))}}]),n}(u.a)),C=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/DanhSachCanBos")}return Object(r.a)(n,[{key:"getAllData",value:function(){return this.SearchAllOdata("?$expand=Thongtincanhan($select=Hovatendem,Ten)&$select=Uuid")}}]),n}(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(t){return Object(i.a)(this,n),e.call(this,"/extends",t)}return n}(g.a))),x=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/CanBoTongGios")}return Object(r.a)(n,[{key:"getDatabyYear",value:function(t){return this.SearchAllOdata("$filter=Nam eq ".concat(t," and Status eq true"))}}]),n}(m.a)),D=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/TapTheTongGios")}return Object(r.a)(n,[{key:"getDataByPhong",value:function(t,e){return this.SearchAllOdata("?$filter=DmPbUuid eq ".concat(t," and Nam eq ").concat(e))}},{key:"getDataByCondition",value:function(t){return this.SearchAllOdata("?$filter=DmPbUuid eq ".concat(t.DmPbUuid," and Nam eq ").concat(t.Nam," and LoaiGioDay eq '").concat(t.LoaiGioDay,"'"))}}]),n}(m.a)),k=new(function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/TapThePLDGs")}return Object(r.a)(n,[{key:"getDataByPhong",value:function(t,e){return this.SearchAllOdata("?$filter=DmPbUuid eq ".concat(t," and Nam eq ").concat(e))}}]),n}(m.a))},714:function(t,e,n){"use strict";var a=n(5),i=n(10),r=n(99),o=n(809),c=n.n(o),u=Object(r.h)().mixin({cancelButtonColor:"#d33"});e.a=new function t(){var e=this;Object(i.a)(this,t),this.defaultErrorSwal={title:"\u0110\xe3 x\u1ea3y ra l\u1ed7i!",text:"Vui l\xf2ng th\u1eed l\u1ea1i",confirmButtonText:"Th\u1eed l\u1ea1i",cancelButtonText:"\u0110\xf3ng",icon:"error"},this.defaultSuccessSwal={icon:"success",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:"X\xe1c nh\u1eadn",allowOutsideClick:!0,title:"Th\xe0nh c\xf4ng",text:""},this.handleSuccess=function(t,n){return function(a){"function"===typeof n&&n(a);var i=void 0!==t?c()(e.defaultSuccessSwal,"string"===typeof t?{title:t}:"object"===typeof t(a)?t(a):{title:t(a)}):e.defaultSuccessSwal;return u.isVisible()?u.update(i):u.fire(i)}},this.handleError=function(t){return function(n){var i=t.onError,r=(i=void 0===i?{}:i).getSwal,o=i.callback;"function"===typeof o&&o(n);return u.fire(Object(a.a)({preConfirm:function(){return e.didOpen(t,!0)}},"string"===typeof r?c()(e.defaultErrorSwal,{title:r}):"function"===typeof r?c()(e.defaultErrorSwal,r(n)):e.defaultErrorSwal))}},this.didOpen=function(t,n){var a=t.confirmSwal,i=t.pendingSwal,r=t.callAPIFn,o=t.onSuccess,s=(o=void 0===o?{}:o).getSwal,l=o.callback;if("function"!==typeof r)throw new Error("WTF Man");var d={icon:"info",title:"\u0110ang x\u1eed l\xfd",showConfirmButton:!1,showCancelButton:!1,allowOutsideClick:!u.isLoading,didOpen:function(){u.showLoading(),r().then(e.handleSuccess(s,l)).catch(e.handleError(t)).finally(u.hideLoading)}},f=function(){return u.fire(void 0===i?d:"object"===typeof i?c()(d,i):"string"===typeof i?c()(d,{title:i}):d)},h={icon:"question",confirmButtonText:"X\xe1c nh\u1eadn",cancelButtonText:"H\u1ee7y",text:"Thao t\xe1c n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c!",preConfirm:function(t){if(t)return f()}};return a?n?f():u.fire(c()(h,"object"===typeof a?a:"string"===typeof a?{title:a}:{})):f()}}},716:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/CanBos")}return Object(i.a)(n,[{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"getFindByCMND",value:function(t){return this.SearchAllOdata("?$filter=Thongtincanhan/Dinhdanhcanhan eq '".concat(t,"'"))}},{key:"getDataByID",value:function(t){return this.SearchAllOdata("(".concat(t,")"))}},{key:"delete",value:function(t){return this.DeleteADMINODATA("(".concat(t,")"))}}]),n}(n(676).a);e.a=new c},721:function(t,e){t.exports=function(t,e){if(null==t)return{};var n,a,i={},r=Object.keys(t);for(a=0;a<r.length;a++)n=r[a],e.indexOf(n)>=0||(i[n]=t[n]);return i}},724:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/CanBoPBCVs")}return Object(i.a)(n,[{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"getDataByIDCanBo",value:function(t){return this.SearchAllOdata("?&$filter=CanboUuid eq ".concat(t," and Status eq true&$orderby=Tungay desc"))}}]),n}(n(668).a);e.a=new c},725:function(t,e,n){"use strict";var a=n(5),i=n(10),r=n(34),o=n(11),c=n(17),u=n(14),s=n(668),l=n(39),d=n(756),f=function(t,e){var n=Object(u.a)(e,2),a=n[0],i=n[1];return i?(i.Uuid?t[a]=i.Uuid:t[a]=i,t):t},h=function(t){return Object.entries(t).reduce(f,{})},b=function(t){Object(o.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.call(this,"/CanBoBoiDuongNghiepVus")}return Object(r.a)(n,[{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"delete",value:function(t){return this.DeleteADMINODATA("(".concat(t,")"))}},{key:"addUpdate",value:function(t,e){return t?t.hasOwnProperty.call(t,"Uuid")?this.edit(t.Uuid,Object(l.m)(h(t),["tableData"])):this.add(Object(a.a)(Object(a.a)({},h(t)),{},{DocumentUuid:e,CanboUuid:d.a})):Promise.reject("nani")}},{key:"getDataByIDCanBo",value:function(t){return this.SearchAllOdata("?$expand=DmBdnv($select=Name,Code),DmCn($select=Name,Code),DmDl($select=Name,Code),DmTd($select=Name,Code),&$filter=CanboUuid eq ".concat(t))}}]),n}(s.a);e.a=new b},727:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/ThongTinCaNhans")}return Object(i.a)(n,[{key:"getFindByCMND",value:function(t){return this.SearchAllOdata("?$filter=dinhdanhcanhan eq '".concat(t,"'"))}},{key:"findByUuid",value:function(t){return this.SearchAllOdata("/findById?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getOptionsByDistrictUuid",value:function(t){return this.SearchAllOdata("/District?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(){return this.SearchAllOdata("?$select=name%2CUuid%2Ccode&count=true")}},{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"getDataByID",value:function(t){return this.SearchAllOdata("(".concat(t,")"))}}]),n}(n(676).a);e.a=new c},729:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/Organizations")}return Object(i.a)(n,[{key:"getAllData",value:function(){return this.getAll("?$select=name%2CUuid%2Ccode&count=true")}},{key:"addOrganization",value:function(t){return this.add(t)}},{key:"update",value:function(t,e){return this.edit(t,e)}}]),n}(n(668).a);e.a=new c},730:function(t,e,n){"use strict";var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/CanBoBietPhais")}return n}(n(668).a);e.a=new o},732:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/CanBoLoaiHopDongs")}return Object(i.a)(n,[{key:"add",value:function(t){return this.PostAuthenADMINODATA("",t)}},{key:"update",value:function(t,e){return this.UpdateODATA("(".concat(t,")"),e)}},{key:"getDataByIDCanBo",value:function(t){return this.SearchAllOdata("?$expand=DmLhd($select=Name,Code)&$filter=CanboUuid eq ".concat(t,"&$orderby=Tungay desc"))}}]),n}(n(668).a);e.a=new c},735:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/OrganizationDetails")}return Object(i.a)(n,[{key:"getFindById",value:function(t){return this.getAll("/findById?id="+t+"&select=name%2Cuuid%2Cprefix")}},{key:"findByUuid",value:function(t){return this.getAll("/findById?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(){return this.getAll("?$select=name%2CUuid%2Ccode&count=true")}},{key:"addOrganization",value:function(t){return this.add(t)}},{key:"update",value:function(t,e){return this.edit(t,e)}}]),n}(n(685).a);e.a=new c},736:function(t,e,n){"use strict";var a=n(10),i=n(34),r=n(11),o=n(17),c=function(t){Object(r.a)(n,t);var e=Object(o.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/OrganizationPhuCaps")}return Object(i.a)(n,[{key:"getFindById",value:function(t){return this.getAll("(".concat(t,")?$expand=DmPc"))}},{key:"findByUuid",value:function(t){return this.getAll("/findById?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getOptionsByDistrictUuid",value:function(t){return this.getAll("/District?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(t){return this.getAll("?$expand=DmPc($select=Name,Code)&$filter=OrganizationUuid eq ".concat(t," and Status eq true&$orderby=Giatri asc"))}},{key:"addOrganization",value:function(t){return this.add(t)}},{key:"update",value:function(t,e){return this.edit(t,e)}},{key:"delete",value:function(t){return this.DeleteADMINODATA("(".concat(t,")"))}}]),n}(n(668).a);e.a=new c},737:function(t,e,n){"use strict";var a=n(10),i=n(11),r=n(17),o=function(t){Object(i.a)(n,t);var e=Object(r.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/DocumentTypes")}return n}(n(686).a);e.a=new o},738:function(t,e,n){"use strict";var a=n(774),i=n.n(a);n.d(e,"a",(function(){return i.a}))},740:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"e",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return u}));var a=["Qu\xe1 tr\xecnh bi\xean ch\u1ebf, h\u1ee3p \u0111\u1ed3ng","Qu\xe1 tr\xecnh c\xf4ng t\xe1c","Qu\xe1 tr\xecnh bi\u1ec7t ph\xe1i","Qu\xe1 tr\xecnh khen th\u01b0\u1edfng","Qu\xe1 tr\xecnh k\u1ef7 lu\u1eadt","Qu\xe1 tr\xecnh b\u1ed3i d\u01b0\u1ee1ng nghi\u1ec7p v\u1ee5","Nh\xe2n th\xe2n c\xe1n b\u1ed9","C\xe1n b\u1ed9 chuy\xean m\xf4n"],i="Kh\xf4ng c\xf3 th\xf4ng tin",r="QLCB/CanBoBoiDuongNghiepVus",o="QLCB/CanBoChuyenMons",c="QLCB/CanBoKhenThuongs",u="QLCB/CanBoKyLuats"},743:function(t,e,n){"use strict";var a=n(23),i=n(28),r=n(0),o=n.n(r),c=n(2),u=n.n(c),s=n(16),l=n.n(s),d=n(8),f={tag:d.q,wrapTag:d.q,toggle:u.a.func,className:u.a.string,cssModule:u.a.object,children:u.a.node,closeAriaLabel:u.a.string,charCode:u.a.oneOfType([u.a.string,u.a.number]),close:u.a.object},h=function(t){var e,n=t.className,r=t.cssModule,c=t.children,u=t.toggle,s=t.tag,f=t.wrapTag,h=t.closeAriaLabel,b=t.charCode,p=t.close,m=Object(i.a)(t,["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","charCode","close"]),v=Object(d.m)(l()(n,"modal-header"),r);if(!p&&u){var O="number"===typeof b?String.fromCharCode(b):b;e=o.a.createElement("button",{type:"button",onClick:u,className:Object(d.m)("close",r),"aria-label":h},o.a.createElement("span",{"aria-hidden":"true"},O))}return o.a.createElement(f,Object(a.a)({},m,{className:v}),o.a.createElement(s,{className:Object(d.m)("modal-title",r)},c),p||e)};h.propTypes=f,h.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close",charCode:215},e.a=h},745:function(t,e,n){"use strict";var a=n(23),i=n(28),r=n(0),o=n.n(r),c=n(2),u=n.n(c),s=n(16),l=n.n(s),d=n(8),f={tag:d.q,className:u.a.string,cssModule:u.a.object},h=function(t){var e=t.className,n=t.cssModule,r=t.tag,c=Object(i.a)(t,["className","cssModule","tag"]),u=Object(d.m)(l()(e,"modal-footer"),n);return o.a.createElement(r,Object(a.a)({},c,{className:u}))};h.propTypes=f,h.defaultProps={tag:"div"},e.a=h},746:function(t,e,n){"use strict";var a=n(5),i=n(1),r=n(0),o=n.n(r),c=n(793),u=function(t){return Object(i.jsxs)(c.a,Object(a.a)(Object(a.a)({color:"info"},t),{},{children:[Object(i.jsx)("i",{className:"fas fa-info-circle text-info mr-4 fa-lg"}),"L\u01b0u \xfd: C\xe1c tr\u01b0\u1eddng c\xf3 d\u1ea5u",Object(i.jsx)("span",{className:"mx-1 text-danger",children:"(*)"}),"l\xe0 b\u1eaft bu\u1ed9c! Vui l\xf2ng nh\u1eadp \u0111\u1ea7y \u0111\u1ee7."]}))};e.a=o.a.memo(u)},752:function(t,e,n){"use strict";var a=n(216),i=n(23),r=n(80),o=n(79),c=n(0),u=n.n(c),s=n(2),l=n.n(s),d=n(16),f=n.n(d),h=n(100),b=n.n(h),p=n(8),m={children:l.a.node.isRequired,node:l.a.any},v=function(t){function e(){return t.apply(this,arguments)||this}Object(o.a)(e,t);var n=e.prototype;return n.componentWillUnmount=function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null},n.render=function(){return p.f?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),b.a.createPortal(this.props.children,this.props.node||this.defaultNode)):null},e}(u.a.Component);v.propTypes=m;var O=v,g=n(702);function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){Object(a.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(){}var x=l.a.shape(g.a.propTypes),D={isOpen:l.a.bool,autoFocus:l.a.bool,centered:l.a.bool,scrollable:l.a.bool,size:l.a.string,toggle:l.a.func,keyboard:l.a.bool,role:l.a.string,labelledBy:l.a.string,backdrop:l.a.oneOfType([l.a.bool,l.a.oneOf(["static"])]),onEnter:l.a.func,onExit:l.a.func,onOpened:l.a.func,onClosed:l.a.func,children:l.a.node,className:l.a.string,wrapClassName:l.a.string,modalClassName:l.a.string,backdropClassName:l.a.string,contentClassName:l.a.string,external:l.a.node,fade:l.a.bool,cssModule:l.a.object,zIndex:l.a.oneOfType([l.a.number,l.a.string]),backdropTransition:x,modalTransition:x,innerRef:l.a.oneOfType([l.a.object,l.a.string,l.a.func]),unmountOnClose:l.a.bool,returnFocusAfterClose:l.a.bool,container:p.r},k=Object.keys(D),T={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:C,onClosed:C,modalTransition:{timeout:p.e.Modal},backdropTransition:{mountOnEnter:!0,timeout:p.e.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body"},A=function(t){function e(e){var n;return(n=t.call(this,e)||this)._element=null,n._originalBodyPadding=null,n.getFocusableChildren=n.getFocusableChildren.bind(Object(r.a)(n)),n.handleBackdropClick=n.handleBackdropClick.bind(Object(r.a)(n)),n.handleBackdropMouseDown=n.handleBackdropMouseDown.bind(Object(r.a)(n)),n.handleEscape=n.handleEscape.bind(Object(r.a)(n)),n.handleStaticBackdropAnimation=n.handleStaticBackdropAnimation.bind(Object(r.a)(n)),n.handleTab=n.handleTab.bind(Object(r.a)(n)),n.onOpened=n.onOpened.bind(Object(r.a)(n)),n.onClosed=n.onClosed.bind(Object(r.a)(n)),n.manageFocusAfterClose=n.manageFocusAfterClose.bind(Object(r.a)(n)),n.clearBackdropAnimationTimeout=n.clearBackdropAnimationTimeout.bind(Object(r.a)(n)),n.trapFocus=n.trapFocus.bind(Object(r.a)(n)),n.state={isOpen:!1,showStaticBackdropAnimation:!1},n}Object(o.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){var t=this.props,e=t.isOpen,n=t.autoFocus,a=t.onEnter;e&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),a&&a(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0},n.componentDidUpdate=function(t,e){if(this.props.isOpen&&!t.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!e.isOpen&&this.setFocus(),this._element&&t.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)},n.componentWillUnmount=function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1},n.trapFocus=function(t){if(this._element&&(!this._dialog||this._dialog.parentNode!==t.target)&&!(this.modalIndex<e.openCount-1)){for(var n=this.getFocusableChildren(),a=0;a<n.length;a++)if(n[a]===t.target)return;n.length>0&&(t.preventDefault(),t.stopPropagation(),n[0].focus())}},n.onOpened=function(t,e){this.props.onOpened(),(this.props.modalTransition.onEntered||C)(t,e)},n.onClosed=function(t){var e=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||C)(t),e&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})},n.setFocus=function(){this._dialog&&this._dialog.parentNode&&"function"===typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()},n.getFocusableChildren=function(){return this._element.querySelectorAll(p.h.join(", "))},n.getFocusedChild=function(){var t,e=this.getFocusableChildren();try{t=document.activeElement}catch(n){t=e[0]}return t},n.handleBackdropClick=function(t){if(t.target===this._mouseDownElement){t.stopPropagation();var e=this._dialog?this._dialog.parentNode:null;if(e&&t.target===e&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;e&&t.target===e&&this.props.toggle&&this.props.toggle(t)}},n.handleTab=function(t){if(9===t.which&&!(this.modalIndex<e.openCount-1)){var n=this.getFocusableChildren(),a=n.length;if(0!==a){for(var i=this.getFocusedChild(),r=0,o=0;o<a;o+=1)if(n[o]===i){r=o;break}t.shiftKey&&0===r?(t.preventDefault(),n[a-1].focus()):t.shiftKey||r!==a-1||(t.preventDefault(),n[0].focus())}}},n.handleBackdropMouseDown=function(t){this._mouseDownElement=t.target},n.handleEscape=function(t){this.props.isOpen&&t.keyCode===p.l.esc&&this.props.toggle&&(this.props.keyboard?(t.preventDefault(),t.stopPropagation(),this.props.toggle(t)):"static"===this.props.backdrop&&(t.preventDefault(),t.stopPropagation(),this.handleStaticBackdropAnimation()))},n.handleStaticBackdropAnimation=function(){var t=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout((function(){t.setState({showStaticBackdropAnimation:!1})}),100)},n.init=function(){try{this._triggeringElement=document.activeElement}catch(t){this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Object(p.j)(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Object(p.i)(),Object(p.g)(),0===e.openCount&&(document.body.className=f()(document.body.className,Object(p.m)("modal-open",this.props.cssModule))),this.modalIndex=e.openCount,e.openCount+=1},n.destroy=function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()},n.manageFocusAfterClose=function(){if(this._triggeringElement){var t=this.props.returnFocusAfterClose;this._triggeringElement.focus&&t&&this._triggeringElement.focus(),this._triggeringElement=null}},n.close=function(){if(e.openCount<=1){var t=Object(p.m)("modal-open",this.props.cssModule),n=new RegExp("(^| )"+t+"( |$)");document.body.className=document.body.className.replace(n," ").trim()}this.manageFocusAfterClose(),e.openCount=Math.max(0,e.openCount-1),Object(p.p)(this._originalBodyPadding)},n.renderModalDialog=function(){var t,e=this,n=Object(p.n)(this.props,k),a="modal-dialog";return u.a.createElement("div",Object(i.a)({},n,{className:Object(p.m)(f()(a,this.props.className,(t={},t["modal-"+this.props.size]=this.props.size,t["modal-dialog-centered"]=this.props.centered,t["modal-dialog-scrollable"]=this.props.scrollable,t)),this.props.cssModule),role:"document",ref:function(t){e._dialog=t}}),u.a.createElement("div",{className:Object(p.m)(f()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))},n.render=function(){var t=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!t)){var e=!!this._element&&!this.state.isOpen&&!t;this._element.style.display=e?"none":"block";var n=this.props,a=n.wrapClassName,r=n.modalClassName,o=n.backdropClassName,c=n.cssModule,s=n.isOpen,l=n.backdrop,d=n.role,h=n.labelledBy,b=n.external,m=n.innerRef,v={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":h,role:d,tabIndex:"-1"},j=this.props.fade,C=y(y(y({},g.a.defaultProps),this.props.modalTransition),{},{baseClass:j?this.props.modalTransition.baseClass:"",timeout:j?this.props.modalTransition.timeout:0}),x=y(y(y({},g.a.defaultProps),this.props.backdropTransition),{},{baseClass:j?this.props.backdropTransition.baseClass:"",timeout:j?this.props.backdropTransition.timeout:0}),D=l&&(j?u.a.createElement(g.a,Object(i.a)({},x,{in:s&&!!l,cssModule:c,className:Object(p.m)(f()("modal-backdrop",o),c)})):u.a.createElement("div",{className:Object(p.m)(f()("modal-backdrop","show",o),c)}));return u.a.createElement(O,{node:this._element},u.a.createElement("div",{className:Object(p.m)(a)},u.a.createElement(g.a,Object(i.a)({},v,C,{in:s,onEntered:this.onOpened,onExited:this.onClosed,cssModule:c,className:Object(p.m)(f()("modal",r,this.state.showStaticBackdropAnimation&&"modal-static"),c),innerRef:m}),b,this.renderModalDialog()),D))}return null},n.clearBackdropAnimationTimeout=function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)},e}(u.a.Component);A.propTypes=D,A.defaultProps=T,A.openCount=0;e.a=A},756:function(t,e,n){"use strict";n.d(e,"a",(function(){return j}));var a=n(10),i=n(15),r=n(18),o=n.n(r),c=n(36),u=n(5),s=n(7),l=n(57),d=n.n(l),f="GDTQLCB",h=function(t,e){return Object(u.a)({method:t,credentials:"same-origin",headers:Object(u.a)({"Content-Type":"application/json","X-Forwarded-For":d.a.get("IP_Client"),Accept:"application/json"},d.a.get(f)?{Authorization:"Bearer ".concat(d.a.get(f))}:{})},e?{body:JSON.stringify(e)}:{})},b=function(t){switch(t){case"add":return"POST";case"update":return"PATCH";case"delete":return"DELETE";default:return"GET"}},p=function(){var t=Object(c.a)(o.a.mark((function t(e){var n,a,i,r,c,u,l,d,f;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.resType,a=void 0===n?"json":n,i=e.endpoint,r=e.method,c=void 0===r?"GET":r,u=e.body,l=h(c,u),t.next=4,fetch(s.i+i,l);case 4:if(d=t.sent,204!==(f=d.status)){t.next=8;break}return t.abrupt("return",Promise.resolve(d));case 8:if(!(f>=200&&f<=300)){t.next=12;break}return t.next=11,d[a]();case 11:return t.abrupt("return",t.sent);case 12:if(!(f>=400&&f<500)){t.next=14;break}return t.abrupt("return",Promise.reject(d));case 14:return t.abrupt("return",Promise.reject(d));case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),m={mixin:function(t){return["add","update","delete","getAll"].reduce((function(e,n){return Object(u.a)(Object(u.a)({},e),{},Object(i.a)({},n,(function(e){return p(function(e,n){return{endpoint:"".concat(t),method:b(e),body:n}}(n,e))})))}),{})}},v=["GET","POST","PUT","PATCH","DELETE"],O=(v.reduce((function(t,e){return Object(u.a)(Object(u.a)({},t),{},Object(i.a)({},e.toLowerCase(),p))}),m),new function t(){var e=this;Object(a.a)(this,t),this.endpoint="",this.getEndpoint=function(t,e){switch(t){case"getById":case"update":case"delete":return"(".concat(e,")");case"add":case"getAll":return"";default:return"/"+t}},this.setService=function(t){e[t]=function(n,a){var i=b(t),r=e.endpoint+e.getEndpoint(t,n);return p("POST"===i?{method:i,endpoint:r,body:a||n}:{method:i,endpoint:r,body:a})}},this.mixin=function(n){var a=new t;return a.endpoint=e.endpoint+n,a};v.forEach((function(t){e[t.toLowerCase()]=p})),["add","update","delete","getAll","getById"].forEach(this.setService)}),g=v.reduce((function(t,e){return Object(u.a)(Object(u.a)({},t),{},Object(i.a)({},e.toLowerCase(),p))}),O).mixin("/odata"),j=(g.mixin("/QLCB"),g.mixin("/DM"),"c313f654-b02b-44d4-b443-0ef61d5f55a6")},758:function(t,e,n){"use strict";var a=n(14),i=n(110),r=n(1),o=n(0),c=n.n(o),u=n(139),s=n(671);function l(){var t=Object(i.a)(["\n cursor:pointer;\n p {\n margin-bottom: 0 !important;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n -webkit-box-orient: vertical;\n }\n"]);return l=function(){return t},t}var d=u.a.div(l());function f(t){var e=t.onChange,n=t.activeRow,i=t.children,c=Object(o.useState)(null),u=Object(a.a)(c,2),l=u[0],f=u[1],h=Object(o.useRef)({name:"tao la input file"}),b=Object(o.useState)(!1),p=Object(a.a)(b,2),m=p[0],v=p[1],O=Object(o.useState)(!1),g=Object(a.a)(O,2),j=g[0],y=g[1],C=Object(o.useCallback)((function(t){return t&&t.DocumentUuid?(v(!0),y(!1),s.a.getByUuid(t.DocumentUuid).then(f).catch((function(){return y(!0)})).finally((function(){return v(!1)}))):f(null)}),[]),x=function(){if(j)return C();"function"===typeof h.current.click&&h.current.click()},D=function(t){var n=Object(a.a)(t.target.files,1)[0];f(n),"function"===typeof e&&e("DocumentUuid",n)},k=function(){return m?"\u0110ang t\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m...":j?"Ch\u01b0a t\u1ea3i \u0111\u01b0\u1ee3c v\u0103n b\u1ea3n. Vui l\xf2ng th\u1eed l\u1ea1i":l?l.name?l.name:l.Subject:"Nh\u1ea5p \u0111\u1ec3 \u0111\u0103ng t\u1ea3i v\u0103n b\u1ea3n"};return Object(o.useEffect)((function(){if(n)return C(n),function(){f(null)}}),[n,C]),i?Object(r.jsxs)(r.Fragment,{children:[i(k,x),Object(r.jsx)("input",{type:"file",ref:h,onChange:D,className:"d-none"})]}):Object(r.jsxs)("div",{className:"form-group col-md-6",children:[Object(r.jsx)("label",{children:"V\u0103n b\u1ea3n k\xe8m theo"}),Object(r.jsx)(d,{className:"form-control",onClick:x,children:Object(r.jsxs)("div",{className:"d-flex align-items-center",children:[Object(r.jsx)("p",{className:j?"text-danger":l?"":"text-muted",children:k()}),j?null:Object(r.jsx)("i",{className:"fas fa-file-upload ml-2 text-primary"})]})}),Object(r.jsx)("input",{type:"file",ref:h,onChange:D,className:"d-none"})]})}e.a=c.a.memo(f)},759:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s}));var a=n(5),i=n(14),r=n(823),o=n(59),c=function(t,e){return"function"===typeof t?"Vui l\xf2ng nh\u1eadp ".concat(t(e)):"Vui l\xf2ng nh\u1eadp v\xe0o tr\u01b0\u1eddng n\xe0y"},u=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];return Object.entries(t).reduce((function(t,n){var r=Object(i.a)(n,2),o=r[0];return r[1]||a.includes(o)||(t[o]=c(e,o)),t}),{})},s=function(t,e){var n=t||{},i=n.Tungay,c=n.Denngay;if(!i||!c)return e;var u=new Date(i),s=new Date(c);return Object(o.a)(u)&&Object(o.a)(s)?1!==Object(r.a)(u,s)?e:function(t){return Object(a.a)(Object(a.a)({},t),{},{Tungay:"Ng\xe0y b\u1eaft \u0111\u1ea7u ph\u1ea3i nh\u1ecf h\u01a1n ng\xe0y k\u1ebft th\xfac!",Denngay:"Ng\xe0y k\u1ebft th\xfac ph\u1ea3i l\u1edbn h\u01a1n ng\xe0y b\u1eaft \u0111\u1ea7u!"})}(e):e}},760:function(t,e,n){"use strict";var a=n(5),i=n(6),r=n(867),o=n(0);e.a=function(t){var e=Object(r.a)(t),n=e.getFieldProps,c=e.errors,u=e.touched,s=Object(i.a)(e,["getFieldProps","errors","touched"]),l=Object(o.useCallback)((function(t){return Object(a.a)(Object(a.a)({},n(t)),{},{errors:c,touched:u})}),[n,c,u]);return Object(a.a)({getFieldProps:l,errors:c,touched:u},s)}},761:function(t,e,n){"use strict";var a=n(5),i=n(6),r=n(1),o=n(0),c=n.n(o),u=n(112),s=n(738),l=c.a.memo((function(t){var e=t.required,n=void 0===e||e,o=t.label,c=t.errors,l=t.touched,d=t.onChange,f=t.className,h=void 0===f?"form-group col-md-6":f,b=Object(i.a)(t,["required","label","errors","touched","onChange","className"]),p=b.name,m=b.value,v=void 0===m?"":m,O=l[p]&&c.hasOwnProperty.call(c,p);return Object(r.jsxs)("div",{className:h,children:[Object(r.jsxs)("label",{htmlFor:p,children:[o,n?Object(r.jsx)("span",{className:"mx-1 text-danger",children:"(*)"}):null]}),Object(r.jsx)(u.a,Object(a.a)(Object(a.a)({},b),{},{value:v,onChange:function(t){d({target:{name:p,value:t}})},inputClassName:O?"is-invalid":""})),Object(r.jsx)(s.a,{children:c[p]})]})}));e.a=l},767:function(t,e,n){"use strict";var a=n(5),i=n(6),r=n(1),o=n(0),c=n.n(o),u=n(818),s=n.n(u),l=n(738),d=c.a.memo((function(t){var e=t.required,n=void 0===e||e,o=t.label,c=t.errors,u=t.touched,d=t.className,f=void 0===d?"col-md-6 form-group":d,h=Object(i.a)(t,["required","label","errors","touched","className"]),b=h.name,p=h.value,m=void 0===p?"":p,v=u[b]&&c.hasOwnProperty.call(c,b);return Object(r.jsxs)("div",{className:f,children:[Object(r.jsxs)("label",{htmlFor:b,children:[o,n?Object(r.jsx)("span",{className:"text-danger ml-1",children:"(*)"}):null]}),Object(r.jsx)(s.a,Object(a.a)(Object(a.a)({},h),{},{value:m,required:n,invalid:v})),Object(r.jsx)(l.a,{children:c[b]})]})}));e.a=d},771:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var a=n(18),i=n.n(a),r=n(14),o=n(36),c=n(671),u=n(705),s=n(737),l=function(t,e){var n;if(!t.DocumentUuid){var a=e.DocumentUuid;return null===a||void 0===a?void 0:a.hasOwnProperty.call(a,"Uuid")}return t.DocumentUuid.hasOwnProperty.call(t,"Uuid")&&(null===(n=t.DocumentUuid)||void 0===n?void 0:n.Uuid)!==e.DocumentUuid},d=function(){var t=Object(o.a)(i.a.mark((function t(e,n){var a,o,c,s,l,d;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=8;break}return t.next=3,u.a.getAll("?$expand=Thongtincanhan($select=Hovatendem,Ten)&$filter=Uuid eq ".concat(e));case 3:return a=t.sent,o=Object(r.a)(a.value,1),c=o[0],s=c.Thongtincanhan,l=s.Hovatendem,d=s.Ten,t.abrupt("return","".concat(l," ").concat(d));case 8:if(!n){t.next=10;break}return t.abrupt("return",n);case 10:return t.abrupt("return",Promise.reject());case 11:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),f=function(){var t=Object(o.a)(i.a.mark((function t(e,n,a,o,u){var f,h,b,p,m,v,O,g,j,y,C,x;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o||u){t.next=2;break}return t.abrupt("return",Promise.reject("Expected CanboUuid but got shit."));case 2:if(a){t.next=4;break}return t.abrupt("return",Promise.reject("Nani???"));case 4:if(f=e.DocumentUuid,h=n.DocumentUuid,f||h){t.next=8;break}return t.abrupt("return",Promise.resolve(null));case 8:return t.next=10,s.a.getAll("?$filter=TypeCode eq '".concat(a,"'"));case 10:if(b=t.sent,p=void 0===(p=b.value)?[]:p,m=Object(r.a)(p,1),v=m[0],O=(v=void 0===v?{}:v).Uuid){t.next=18;break}return t.abrupt("return",Promise.reject("pornhub.com"));case 18:return t.next=20,d(o,u);case 20:if(g=t.sent,j={Subject:(null===f||void 0===f?void 0:f.name)||"V\u0103n b\u1ea3n \u0111\xednh k\xe8m",DocTypeUuid:O,OrganName:g},y=function(){return Promise.resolve(null)},C=function(t){var n=t.Uuid;return c.a.uploadFileDocument(n,e.DocumentUuid).then((function(){return n}))},x=function(){return h?c.a.delete(h).then(y):y()},"string"!==typeof f){t.next=27;break}return t.abrupt("return",Promise.resolve(f));case 27:if(f){t.next=29;break}return t.abrupt("return",y());case 29:if(!l(e,n)){t.next=33;break}if(f){t.next=32;break}return t.abrupt("return",x());case 32:return t.abrupt("return",x().then((function(){return c.a.add(j)})).then(C));case 33:return console.log("okokok",l(e,n)),t.abrupt("return",c.a.add(j).then(C));case 35:case"end":return t.stop()}}),t)})));return function(e,n,a,i,r){return t.apply(this,arguments)}}()},775:function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},782:function(t,e,n){"use strict";var a=n(5),i=n(14),r=n(6),o=n(1),c=n(0),u=n(120),s=n(738),l=function(t){var e=t.options,n=t.loadOptions,l=t.required,d=void 0===l||l,f=t.label,h=t.errors,b=t.touched,p=t.onChange,m=t.className,v=void 0===m?"col-md-6 form-group":m,O=t.placeholder,g=void 0===O?"Ch\u1ecdn ".concat(f):O,j=t.noOptionsMessage,y=void 0===j?function(){return"Kh\xf4ng c\xf3 ".concat(f)}:j,C=t.loadingMessage,x=void 0===C?function(){return"\u0110ang t\u1ea3i ".concat(f)}:C,D=(t.defaultOptions,t.getOptionValue),k=t.getOptionLabel,T=Object(r.a)(t,["options","loadOptions","required","label","errors","touched","onChange","className","placeholder","noOptionsMessage","loadingMessage","defaultOptions","getOptionValue","getOptionLabel"]),A=T.name,w=T.value,N=void 0===w?null:w,U=b[A]&&Object.prototype.hasOwnProperty.call(h,A),S=Object(c.useState)([]),P=Object(i.a)(S,2),E=P[0],B=P[1],M=Object(c.useState)(!1),I=Object(i.a)(M,2),$=I[0],R=I[1],q=Object(c.useCallback)((function(t,e){var n=e.name;p({target:{name:n,value:t}})}),[p]),V=Object(c.useMemo)((function(){return Object(a.a)({},U?{control:function(t){return Object(a.a)(Object(a.a)({},t),{},{borderColor:"#cd201f"})}}:{})}),[U]);Object(c.useEffect)((function(){return R(!0),Array.isArray(e)&&B(e),"function"===typeof n&&n().then((function(t){B(t),R(!1)})),function(){return B([])}}),[n,e,B]);var _=Object(c.useMemo)((function(){return null===E||void 0===E?void 0:E.find((function(t){return(D(N)||N)===D(t)}))}),[D,E,N]);return Object(o.jsxs)("div",{className:v,children:[Object(o.jsxs)("label",{htmlFor:A,children:[f,d?Object(o.jsx)("span",{className:"text-danger mx-1",children:"(*)"}):null]}),Object(o.jsx)(u.a,Object(a.a)(Object(a.a)({},T),{},{placeholder:g,noOptionsMessage:y,loadingMessage:x,styles:V,value:_,className:U?"is-invalid":"",inputId:A,id:A,isLoading:$,getOptionValue:D,getOptionLabel:k,options:E,onChange:q})),Object(o.jsx)(s.a,{children:h[A]})]})};l.defaultProps={getOptionValue:function(t){return null===t||void 0===t?void 0:t.Uuid},getOptionLabel:function(t){return null===t||void 0===t?void 0:t.Name},filterOption:function(t,e){var n,a=t.label;return!e||(n=e,a.toLocaleLowerCase("vi-VN").normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[\u0111]/g,"d").includes(n))}},e.a=Object(c.memo)(l)},794:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},801:function(t,e,n){"use strict";var a=n(1),i=n(793),r=(n(0),function(t){return"danger"===t?"exclamation":"check"});e.a=function(t){var e=t.children,n=t.color;return Object(a.jsxs)(i.a,{color:n,children:[Object(a.jsx)("i",{className:"fas fa-".concat(r(n),"-circle mr-4 text-").concat(n)}),e]})}},810:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return p}));var a=n(5),i=n(1),r=n(59),o=n(643),c=n(740),u=n(831),s=(n(0),n(671)),l=n(714),d=n(99),f=function(t){return function(e){if(!e[t])return c.e;var n=new Date(e[t]);return Object(r.a)(n)?Object(o.a)(n,"dd/MM/yyyy"):c.e}},h=function(t,e){return{render:f(t),field:t,title:e,type:"date"}},b=function(t){return Object(i.jsx)(u.a,Object(a.a)({},t))},p=function(t){return{title:"T\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m",icon:"download",tooltip:"T\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m",onClick:function(e,n){return n.DocumentUuid?l.a.didOpen({callAPIFn:function(){return s.a.getByUuid(n.DocumentUuid).then(s.a.downloadDoc)},pendingSwal:{title:"\u0110ang t\u1ea3i xu\u1ed1ng v\u0103n b\u1ea3n \u0111\xednh k\xe8m"},onSuccess:{getSwal:function(){return"V\u0103n b\u1ea3n \u0111\xe3 \u0111\u01b0\u1ee3c t\u1ea3i xu\u1ed1ng!"}}}):Object(d.h)().fire({title:"".concat(t," n\xe0y kh\xf4ng c\xf3 v\u0103n b\u1ea3n \u0111\xednh k\xe8m"),cancelButtonText:"\u0110\xf3ng",showConfirmButton:!1})}}}},817:function(t,e,n){"use strict";var a=n(6),i=n(4),r=(n(326),n(327),n(221),n(10)),o=n(34),c=(n(223),n(11)),u=n(58),s=n(38),l=n(0),d=n.n(l),f=(n(12),n(100),n(222),n(22)),h=n(111),b=(n(85),n(322),n(170),n(231));function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,a=Object(s.a)(t);if(e){var i=Object(s.a)(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return Object(u.a)(this,n)}}var m={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},v=function(t){var e,n;return n=e=function(e){Object(c.a)(u,e);var n=p(u);function u(t){var e;return Object(r.a)(this,u),(e=n.call(this)).select=void 0,e.lastRequest=void 0,e.mounted=!1,e.optionsCache={},e.handleInputChange=function(t,n){var a=e.props,i=a.cacheOptions,r=a.onInputChange,o=Object(f.g)(t,n,r);if(!o)return delete e.lastRequest,void e.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(i&&e.optionsCache[o])e.setState({inputValue:o,loadedInputValue:o,loadedOptions:e.optionsCache[o],isLoading:!1,passEmptyOptions:!1});else{var c=e.lastRequest={};e.setState({inputValue:o,isLoading:!0,passEmptyOptions:!e.state.loadedInputValue},(function(){e.loadOptions(o,(function(t){e.mounted&&(t&&(e.optionsCache[o]=t),c===e.lastRequest&&(delete e.lastRequest,e.setState({isLoading:!1,loadedInputValue:o,loadedOptions:t||[],passEmptyOptions:!1})))}))}))}return o},e.state={defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0,inputValue:"undefined"!==typeof t.inputValue?t.inputValue:"",isLoading:!0===t.defaultOptions,loadedOptions:[],passEmptyOptions:!1},e}return Object(o.a)(u,[{key:"componentDidMount",value:function(){var t=this;this.mounted=!0;var e=this.props.defaultOptions,n=this.state.inputValue;!0===e&&this.loadOptions(n,(function(e){if(t.mounted){var n=!!t.lastRequest;t.setState({defaultOptions:e||[],isLoading:n})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){t.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),t.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(t.defaultOptions)?t.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(t,e){var n=this.props.loadOptions;if(!n)return e();var a=n(t,e);a&&"function"===typeof a.then&&a.then(e,(function(){return e()}))}},{key:"render",value:function(){var e=this,n=this.props,r=(n.loadOptions,n.isLoading),o=Object(a.a)(n,["loadOptions","isLoading"]),c=this.state,u=c.defaultOptions,s=c.inputValue,l=c.isLoading,f=c.loadedInputValue,h=c.loadedOptions,b=c.passEmptyOptions?[]:s&&f?h:u||[];return d.a.createElement(t,Object(i.a)({},o,{ref:function(t){e.select=t},options:b,isLoading:l||r,onInputChange:this.handleInputChange}))}}]),u}(l.Component),e.defaultProps=m,n}(Object(b.a)(h.a));e.a=v},818:function(t,e,n){"use strict";var a=n(699);e.__esModule=!0,e.default=void 0;var i=a(n(711)),r=a(n(721)),o=a(n(794)),c=a(n(775)),u=a(n(0)),s=a(n(2)),l=a(n(16)),d=n(710),f={children:s.default.node,type:s.default.string,size:s.default.oneOfType([s.default.number,s.default.string]),bsSize:s.default.string,valid:s.default.bool,invalid:s.default.bool,tag:d.tagPropType,innerRef:s.default.oneOfType([s.default.object,s.default.func,s.default.string]),plaintext:s.default.bool,addon:s.default.bool,className:s.default.string,cssModule:s.default.object},h=function(t){function e(e){var n;return(n=t.call(this,e)||this).getRef=n.getRef.bind((0,o.default)(n)),n.focus=n.focus.bind((0,o.default)(n)),n}(0,c.default)(e,t);var n=e.prototype;return n.getRef=function(t){this.props.innerRef&&this.props.innerRef(t),this.ref=t},n.focus=function(){this.ref&&this.ref.focus()},n.render=function(){var t=this.props,e=t.className,n=t.cssModule,a=t.type,o=t.bsSize,c=t.valid,s=t.invalid,f=t.tag,h=t.addon,b=t.plaintext,p=t.innerRef,m=(0,r.default)(t,["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"]),v=["radio","checkbox"].indexOf(a)>-1,O=new RegExp("\\D","g"),g=f||("select"===a||"textarea"===a?a:"input"),j="form-control";b?(j+="-plaintext",g=f||"input"):"file"===a?j+="-file":"range"===a?j+="-range":v&&(j=h?null:"form-check-input"),m.size&&O.test(m.size)&&((0,d.warnOnce)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),o=m.size,delete m.size);var y=(0,d.mapToCssModules)((0,l.default)(e,s&&"is-invalid",c&&"is-valid",!!o&&"form-control-"+o,j),n);return("input"===g||f&&"function"===typeof f)&&(m.type=a),m.children&&!b&&"select"!==a&&"string"===typeof g&&"select"!==g&&((0,d.warnOnce)('Input with a type of "'+a+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete m.children),u.default.createElement(g,(0,i.default)({},m,{ref:p,className:y,"aria-invalid":s}))},e}(u.default.Component);h.propTypes=f,h.defaultProps={type:"text"};var b=h;e.default=b},831:function(t,e,n){"use strict";var a=n(14),i=n(110),r=n(1),o=n(0),c=n.n(o),u=n(139),s=n(671);function l(){var t=Object(i.a)(["\n cursor: pointer;\n"]);return l=function(){return t},t}var d=u.a.i(l());function f(t){var e=t.DocumentUuid,n=t.onGetDocSuccess,i=Object(o.useState)(void 0),u=Object(a.a)(i,2),l=u[0],f=u[1],h=Object(o.useState)(void 0),b=Object(a.a)(h,2),p=b[0],m=b[1],v=Object(o.useState)(void 0),O=Object(a.a)(v,2),g=O[0],j=O[1],y=Object(o.useRef)(!1),C=Object(o.useCallback)((function(){e&&(f(!0),m(!1),s.a.getByUuid(e).then((function(t){y.current&&(j(t),"function"===typeof n&&n(t))})).catch((function(){y.current&&m(!0)})).finally((function(){y.current&&f(!1)})))}),[e,n]);if(c.a.useEffect((function(){C()}),[C]),c.a.useEffect((function(){return y.current=!0,function(){y.current=!1}}),[]),l)return Object(r.jsx)("div",{children:"\u0110ang t\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m"});if(p)return Object(r.jsxs)("div",{children:["\u0110\xe3 x\u1ea3y ra l\u1ed7i! Vui l\xf2ng th\u1eed l\u1ea1i",Object(r.jsx)(d,{className:"fas fa-sync mx-3 text-primary fa-lg",onClick:C})]});if(!e)return Object(r.jsx)("div",{className:"text-muted",children:"Ch\u01b0a c\xf3 v\u0103n b\u1ea3n \u0111\xednh k\xe8m"});var x=(g||{}).Subject;return Object(r.jsx)("div",{children:x})}e.a=c.a.memo(f)},881:function(t,e,n){"use strict";var a=n(18),i=n.n(a),r=n(36),o=n(671),c=n(714),u=n(86),s=n.n(u),l=function(t){return t?Promise.all([o.a.delete(t)]).catch(Promise.resolve):Promise.resolve()},d=function(){var t=Object(r.a)(i.a.mark((function t(e,n,a){var r,o,u,d=arguments;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=d.length>3&&void 0!==d[3]?d[3]:function(){},o=n.DocumentUuid,u=n.Uuid){t.next=4;break}return t.abrupt("return",s.a.fire({icon:"warning",title:"Kh\xf4ng t\xecm th\u1ea5y Id c\u1ee7a ".concat(a,". Vui l\xf2ng th\u1eed l\u1ea1i!"),showCancelButton:!1,showConfirmButton:!1}));case 4:if("function"===typeof e.delete){t.next=6;break}return t.abrupt("return",s.a.fire({icon:"warning",title:"\u0110\xe3 x\u1ea3y ra l\u1ed7i. Vui l\xf2ng th\u1eed l\u1ea1i!",showCancelButton:!1,showConfirmButton:!1}));case 6:c.a.didOpen({confirmSwal:{title:"B\u1ea1n c\xf3 ch\u1eafc mu\u1ed1n x\xf3a ".concat(a,"?"),text:"Thao t\xe1c n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c!"},pendingSwal:{title:"\u0110ang x\xf3a ".concat(a)},callAPIFn:function(){return Promise.all([e.delete(u),l(o)])},onSuccess:{callback:r,getSwal:function(){return"\u0110\xe3 x\xf3a ".concat(a)}}});case 7:case"end":return t.stop()}}),t)})));return function(e,n,a){return t.apply(this,arguments)}}();e.a=d},932:function(t,e,n){"use strict";n.r(e);var a=n(35),i=n(6),r=n(14),o=n(5),c=n(1),u=n(0),s=n.n(u),l=n(724),d=n(771),f=n(973),h=n(974),b=n(976),p=n(693),m=n(635),v=n(745),O=n(714),g=n(59),j=n(752),y=n(743),C=n(751),x=n(712),D=n(39),k=n(692),T=n(694),A=n(7),w=function(t){return new Date(t).toISOString()},N="PHONG_BAN_CHUC_VU",U="KIEM_NHIEM";function S(t){var e=t.DocTypeUuid,n=t.CanboUuid,S=t.activeRow,P=t.toggle,E=S||{},B=E.row,M=E.flag,I=M===U?"Ki\xeam nhi\u1ec7m":"Ph\xf2ng ban ch\u1ee9c v\u1ee5",$=B||{},R=$.Tungay,q=$.Denngay,V=$.Uuid,_=s.a.useState(void 0),F=Object(r.a)(_,2),L=F[0],z=F[1];s.a.useEffect((function(){return z(void 0)}),[S]);var K=s.a.useCallback((function(){if(!n||!V||!R||!q)return Promise.resolve();if(!Object(g.a)(new Date(R))||!Object(g.a)(new Date(q)))return Promise.reject();var t=function(t,e,n,a){var i=w(t),r=w(e);return"?$filter=CanboUuid eq ".concat(n," and Status eq true ")+"and Tungay ge ".concat(i," ")+"and Denngay le ".concat(r).concat(a?"&$expand=DmCv,DmPb":"")}(R,q,n,M!==U);return M===U?x.a.getAll(t+" and IsKiemNhiem eq true and Status eq true&$expand=CanboPbcvs($orderby=CreatedDate desc)").then((function(t){var e=t.value,n=void 0===e?[]:e;if(0===n.length)return n;var c=n.map((function(t){var e=t.CanboPbcvs,n=Object(i.a)(t,["CanboPbcvs"]),c=Object(r.a)(e,1)[0],u=void 0===c?{}:c,s=u.DmPbUuid,l=u.DmCvUuid,d=u.Uuid;return Promise.all([].concat(Object(a.a)(s?[k.a.getAll("?$filter=Uuid eq ".concat(s))]:[Promise.resolve()]),Object(a.a)(l?[T.a.getAll("?$filter=Uuid eq ".concat(l))]:[Promise.resolve()]))).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Object(r.a)(t,2),a=e[0],i=(a=void 0===a?{}:a).value;i=void 0===i?[]:i;var c=Object(r.a)(i,1),u=c[0],s=void 0===u?null:u,l=e[1],f=(l=void 0===l?{}:l).value;f=void 0===f?[]:f;var h=Object(r.a)(f,1),b=h[0],p=void 0===b?null:b;return Object(o.a)(Object(o.a)({},n),{},{DmPb:s,DmCv:p,CanboPbcvUuid:d})}))}));return Promise.all(c).then((function(t){return{value:t}}))})):l.a.getAll(t)}),[n,V,R,q,M]),H=Object(u.useCallback)((function(){return K().then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.value;return e}))}),[K]),Q=Object(p.a)(H),G=Q.execute,X=Q.status,W=Q.setValue,J=Q.value,Y=void 0===J?[]:J,Z=function(t,r){return Object(d.a)(t,L,e,n).then(function(t){t.CreatedDate;var e=Object(i.a)(t,["CreatedDate"]);return function(t){var i="KIEM_NHIEM"===M,r=Object(o.a)(Object(o.a)({CanboUuid:n},e),i?{IsKiemNhiem:!0}:{}),c=[r,t,["DmPb","DmCv"].concat(Object(a.a)(i?["DmPbUuid","DmCvUuid","CanboPbcvUuid"]:[]))];return i?x.a.addUpdate.apply(x.a,c).then((function(e){var a=e.Uuid,i=void 0===a?r.Uuid:a,c=r.DmPbUuid,u=r.DmCvUuid,s=r.Tungay,d=r.Denngay,f=r.CanboPbcvUuid,h=Object(o.a)(Object(o.a)({Uuid:f,Tungay:s,Denngay:d},c?{DmPbUuid:c}:{}),u?{DmCvUuid:u}:{});return l.a.addUpdate(Object(o.a)({Uuid:f,CanboUuid:n,DocumentUuid:t,CanboBietphaiUuid:i},h)).then((function(){return{CanboBietphaiUuid:i,CanboUuid:n}}))})):l.a.addUpdate.apply(l.a,c)}}(t)).then(function(t,e){return function(n){n.Uuid,n.CanboUuid;var a=e.resetForm,i=e.setStatus;G(),t.Uuid||a(),i({successMsg:"".concat(t.Uuid?"Ch\u1ec9nh s\u1eeda":"Th\xeam m\u1edbi"," ").concat(I," th\xe0nh c\xf4ng")}),setTimeout(i,2e3)}}(t,r)).catch(function(t,e){return function(){(0,e.setStatus)({errorMsg:"".concat(t.Uuid?"Ch\u1ec9nh s\u1eeda":"Th\xeam m\u1edbi"," ").concat(I," th\u1ea5t b\u1ea1i. Vui l\xf2ng th\u1eed l\u1ea1i")})}}(t,r))},tt=function(t){var e=t.Uuid;e&&O.a.didOpen({callAPIFn:function(){return function(t){return"KIEM_NHIEM"===M?x.a.delete(t):l.a.delete(t)}(e)},confirmSwal:"B\u1ea1n c\xf3 ch\u1eafc mu\u1ed1n x\xf3a ".concat("KIEM_NHIEM"===M?" qu\xe1 tr\xecnh":""," ").concat(I," n\xe0y?"),pendingSwal:"\u0110ang x\xf3a ".concat("KIEM_NHIEM"===M?" qu\xe1 tr\xecnh":""," ").concat(I),onSuccess:{getSwal:function(){return"".concat("KIEM_NHIEM"===M?" Qu\xe1 tr\xecnh":""," ").concat(I," \u0111\xe3 \u0111\u01b0\u1ee3c x\xf3a")},callback:function(){return W((function(t){return t.filter((function(t){return t.Uuid!==e}))}))}}})},et=(B||{}).Canbo,nt=(et=void 0===et?{}:et).Thongtincanhan,at=(nt=void 0===nt?{}:nt).Hovatendem,it=void 0===at?"":at,rt=nt.Ten,ot=void 0===rt?"":rt,ct="Qu\u1ea3n l\xed ".concat(I," c\u1ee7a c\xe1n b\u1ed9 ").concat(it," ").concat(ot," t\u1eeb ").concat(D.e.format(R)," \u0111\u1ebfn ").concat(D.e.format(q));return Object(c.jsxs)(j.a,{isOpen:void 0!==B&&[N,U].includes(M),toggle:P,size:"lg",children:[Object(c.jsxs)(y.a,{className:"p-3",children:[L?L.Uuid?"Ch\u1ec9nh s\u1eeda ".concat(I):"Th\xeam m\u1edbi ".concat(I):"Danh s\xe1ch ".concat(I),L||!A.k?null:Object(c.jsxs)("button",{className:"btn btn-success ml-2",disabled:!R||!q,onClick:function(){return z(Object(o.a)({Tungay:"",Denngay:"",DocumentUuid:null,DmCvUuid:null,DmPbUuid:null},M===U?{DonViDen:""}:{}))},children:[Object(c.jsx)("i",{className:"fas fa-plus mr-3"}),"Th\xeam m\u1edbi"]})]}),Object(c.jsxs)(C.a,{children:[Object(c.jsx)("h3",{children:ct}),void 0!==L?Object(c.jsx)(b.default,{flag:M,row:B,onSubmit:Z,activeItem:L,onCancel:function(){return z(void 0)}}):"pending"===X?Object(c.jsxs)(f.Center156,{children:[Object(c.jsx)(m.a,{className:"mb-2"}),Object(c.jsxs)("p",{children:["\u0110ang t\u1ea3i danh s\xe1ch ",I]})]}):"error"===X?Object(c.jsxs)(f.Center156,{children:[Object(c.jsx)("p",{children:"\u0110\xe3 x\u1ea3y ra l\u1ed7i. Vui l\xf2ng th\u1eed l\u1ea1i"}),Object(c.jsx)("button",{className:"btn btn-primary",onClick:G,children:"Th\u1eed l\u1ea1i"})]}):"success"===X?R&&q?0===Y.length?Object(c.jsxs)(f.Center156,{children:[Object(c.jsx)("i",{className:"fas fa-list-ul fa-2x mb-3 text-muted"}),Object(c.jsxs)("p",{className:"text-muted mb-0",children:["Qu\xe1 tr\xecnh c\xf4ng t\xe1c n\xe0y ch\u01b0a c\xf3 ",I,","]}),Object(c.jsxs)("p",{className:"text-muted",children:['h\xe3y b\u1ea5m v\xe0o n\xfat "Th\xeam m\u1edbi" \u0111\u1ec3 th\xeam m\u1edbi ',I]})]}):Y.length>0?Object(c.jsx)("div",{className:"row mt-2",children:Y.map((function(t){return Object(o.a)(Object(o.a)({},t),{},{flag:M,onEdit:function(){return z(function(t){return Object(o.a)(Object(o.a)({},t),{},{DmCvUuid:t.DmCv,DmPbUuid:t.DmPb})}(t))},onDelete:function(){return tt(t)}})})).map(h.default)}):null:Object(c.jsx)(f.Center156,{children:Object(c.jsxs)("p",{children:["Vui l\xf2ng ch\u1ecdn th\u1eddi gian c\xf4ng t\xe1c \u0111\u1ec3 th\xeam c\xe1c ",I]})}):null]}),Object(c.jsx)(v.a,{children:Object(c.jsxs)("button",{className:"btn btn-danger",onClick:P,children:[Object(c.jsx)("i",{className:"fas fa-times mr-3"}),"\u0110\xf3ng"]})})]})}e.default=s.a.memo(S)},973:function(t,e,n){"use strict";n.r(e),n.d(e,"CursorPointer",(function(){return c})),n.d(e,"Center156",(function(){return u}));var a=n(110),i=n(139);function r(){var t=Object(a.a)(["\n justify-content: center;\n align-items: center;\n min-height: 156px;\n display: flex;\n flex-direction: column;\n"]);return r=function(){return t},t}function o(){var t=Object(a.a)(["\n cursor: pointer;\n"]);return o=function(){return t},t}var c=i.a.div(o()),u=i.a.div(r())},974:function(t,e,n){"use strict";n.r(e);var a=n(110),i=n(1),r=n(0),o=n.n(r),c=n(975),u=n(39),s=n(693),l=n(671),d=n(139);function f(){var t=Object(a.a)(["\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2; /* number of lines to show */\n -webkit-box-orient: vertical;\n"]);return f=function(){return t},t}var h="Kh\xf4ng c\xf3 th\xf4ng tin",b=d.a.div(f()),p=function(t){var e=t.DocumentUuid,n=o.a.useCallback((function(){return e?l.a.getByUuid(e):Promise.resolve()}),[e]),a=Object(s.a)(n),r=a.value,c=(r=void 0===r?{}:r).Subject,u=a.status;return"pending"===u?Object(i.jsx)("div",{className:"text-muted",children:"\u0110ang t\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m"}):"error"===u?Object(i.jsx)("div",{className:"text-danger",children:"Ch\u01b0a t\u1ea3i \u0111\u01b0\u1ee3c v\u0103n b\u1ea3n \u0111\xednh k\xe8m"}):"success"===u?c?Object(i.jsxs)(b,{children:[Object(i.jsx)("i",{className:"fas fa-file-word mr-2"}),c]}):Object(i.jsx)("div",{className:"text-muted",children:"Kh\xf4ng c\xf3 v\u0103n b\u1ea3n \u0111\xednh k\xe8m"}):null};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.DmCv,n=t.DmPb,a=t.Uuid,r=t.onEdit,o=t.onDelete,s=t.Tungay,l=t.Denngay,d=t.DonViDen,f=t.DocumentUuid,b=e||{},m=b.Name,v=void 0===m?h:m,O=n||{},g=O.Name,j=void 0===g?h:g;return Object(i.jsx)("div",{className:"col-md-6 mb-4",children:Object(i.jsxs)("div",{className:"d-flex border px-3 py-2 rounded bg-white",children:[Object(i.jsxs)("div",{className:"flex-grow-1",children:[Object(i.jsxs)("div",{children:["T\xean \u0111\u01a1n v\u1ecb: ",d]}),Object(i.jsxs)("div",{children:["Ch\u1ee9c v\u1ee5: ",v]}),Object(i.jsxs)("div",{children:["Ph\xf2ng ban: ",j]}),Object(i.jsxs)("div",{children:["Th\u1eddi gian: ",u.e.getTimeDuration(s,l)]}),Object(i.jsx)(p,{DocumentUuid:f})]}),Object(i.jsx)(c.default,{onEdit:r,DocumentUuid:f,onDelete:o})]})},a)}},975:function(t,e,n){"use strict";n.r(e);var a=n(14),i=n(1),r=n(0),o=n.n(r),c=n(1027),u=n(1257),s=n(1244),l=n(1004),d=n(671),f=n(714);e.default=function(t){var e=o.a.useState(!1),n=Object(a.a)(e,2),r=n[0],h=n[1],b=t.onEdit,p=t.onDelete,m=t.DocumentUuid;return Object(i.jsxs)(c.a,{isOpen:r,toggle:function(){return h((function(t){return!t}))},children:[Object(i.jsx)(u.a,{className:"p-1",tag:"span","data-toggle":"dropdown","aria-expanded":r,children:Object(i.jsx)("i",{className:"fas fa-ellipsis-h",style:{cursor:"pointer"}})}),Object(i.jsxs)(s.a,{children:[Object(i.jsxs)(l.a,{onClick:b,children:[Object(i.jsx)("i",{className:"fas fa-pen mr-3 text-primary"}),"Ch\u1ec9nh s\u1eeda"]}),Object(i.jsxs)(l.a,{onClick:p,children:[Object(i.jsx)("i",{className:"fas fa-trash mr-3 text-danger"}),"X\xf3a"]}),m?Object(i.jsxs)(l.a,{onClick:function(){m&&f.a.didOpen({callAPIFn:function(){return d.a.getByUuid(m).then(d.a.downloadDoc)},pendingSwal:{title:"\u0110ang t\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m"},onSuccess:{getSwal:function(){return"V\u0103n b\u1ea3n \u0111\xe3 \u0111\u01b0\u1ee3c t\u1ea3i xu\u1ed1ng"}}})},children:[Object(i.jsx)("i",{className:"fas fa-download mr-3"}),"T\u1ea3i v\u0103n b\u1ea3n"]}):null]})]})}},976:function(t,e,n){"use strict";n.r(e);var a=n(5),i=n(1),r=n(759),o=n(694),c=n(705),u=n(760),s=n(761),l=n(782),d=n(758),f=(n(0),n(59)),h=n(823),b=n(39),p=n(746),m=n(635),v=n(793),O=n(767),g=function(t){switch(t){case"DonViDen":return"T\xean \u0111\u01a1n v\u1ecb";case"Tungay":return"Th\u1eddi gian b\u1eaft \u0111\u1ea7u";case"Denngay":return"Th\u1eddi gian k\u1ebft th\xfac";case"DmCv":case"DmCvUuid":return"Ch\u1ee9c v\u1ee5";case"DmPb":case"DmPbUuid":return"Ph\xf2ng ban";default:return"v\xe0o tr\u01b0\u1eddng n\xe0y"}},j=function(t){return"Kh\xf4ng x\xe1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c th\u1eddi gian ".concat(t," c\xf4ng t\xe1c/ki\xeam nhi\u1ec7m bi\u1ec7t ph\xe1i, vui l\xf2ng t\u1ea3i l\u1ea1i trang")},y=function(t){return t?"Th\u1eddi gian b\u1eaft \u0111\u1ea7u ph\u1ea3i l\u1edbn h\u01a1n ho\u1eb7c b\u1eb1ng th\u1eddi gian b\u1eaft \u0111\u1ea7u c\u1ee7a qu\xe1 tr\xecnh c\xf4ng t\xe1c/ki\xeam nhi\u1ec7m bi\u1ec7t ph\xe1i":"Th\u1eddi gian k\u1ebft th\xfac ph\u1ea3i nh\u1ecf h\u01a1n ho\u1eb7c b\u1eb1ng th\u1eddi gian k\u1ebft th\xfac c\u1ee7a qu\xe1 tr\xecnh c\xf4ng t\xe1c/ki\xeam nhi\u1ec7m bi\u1ec7t ph\xe1i"},C="Th\u1eddi gian kh\xf4ng h\u1ee3p l\u1ec7",x=function(t){var e=t.value;return void 0===e?[]:e},D=function(){return o.a.getAll().then(x)},k=function(){return c.c.getAll().then(x)},T=function(t){var e=t.children;return"KIEM_NHIEM"===t.flag?Object(i.jsx)("div",{className:"w-100 px-3 mt-2 d-flex justify-content-end",children:e}):Object(i.jsx)("div",{className:"col-md-6",children:Object(i.jsx)("div",{className:"d-flex justify-content-end mt-4",children:e})})},A={getOptionLabel:function(t){return null===t||void 0===t?void 0:t.Name},getOptionValue:function(t){return null===t||void 0===t?void 0:t.Uuid}};e.default=function(t){var e=t.flag,n=t.row,o=t.activeItem,c=t.onCancel,x=t.onSubmit,w=n||{},N=w.Tungay,U=w.Denngay,S=Object(u.a)({initialValues:o,enableReinitialize:!0,onSubmit:x,validate:function(t,e,n){return function(n){var i=[],o=Object(r.b)(n,r.a.apply(void 0,[n,g,"DocumentUuid"].concat(i)));if(!n.Tungay||!n.Denngay)return o;if(!t)return Object(a.a)(Object(a.a)({},o),{},{Tungay:j("b\u1eaft \u0111\u1ea7u")});if(!e)return Object(a.a)(Object(a.a)({},o),{},{Denngay:j("k\u1ebft th\xfac")});var c=new Date(t),u=new Date(e),s=new Date(n.Tungay),l=new Date(n.Denngay);if(!Object(f.a)(c))return Object(a.a)(Object(a.a)({},o),{},{Tungay:C});if(!Object(f.a)(u))return Object(a.a)(Object(a.a)({},o),{},{Denngay:C});var d=-1!==Object(h.a)(s,c),b=-1!==Object(h.a)(u,l);return d?b?o:Object(a.a)(Object(a.a)({},o),{},{Denngay:y()}):Object(a.a)(Object(a.a)({},o),{},{Tungay:y(!0)})}}(N,U)}),P=S.handleSubmit,E=S.getFieldProps,B=S.setFieldValue,M=S.values,I=S.isSubmitting,$=S.status,R=($=void 0===$?{}:$).errorMsg,q=$.successMsg;return Object(i.jsxs)("form",{onSubmit:P,noValidate:!0,children:[q?Object(i.jsxs)(v.a,{color:"success",children:[Object(i.jsx)("i",{className:"fas fa-check text-success mr-4"}),q]}):R?Object(i.jsxs)(v.a,{color:"danger",children:[Object(i.jsx)("i",{className:"fas fa-times text-danger mr-4"}),R]}):Object(i.jsx)(p.a,{}),Object(i.jsxs)("div",{className:"row",children:[Object(i.jsx)(s.a,Object(a.a)(Object(a.a)({},E("Tungay")),{},{label:"Th\u1eddi gian b\u1eaft \u0111\u1ea7u"})),Object(i.jsx)(s.a,Object(a.a)(Object(a.a)({},E("Denngay")),{},{label:"Th\u1eddi gian k\u1ebft th\xfac"})),"KIEM_NHIEM"===e?Object(i.jsx)(O.a,Object(a.a)({label:"T\xean \u0111\u01a1n v\u1ecb"},E("DonViDen"))):null,Object(i.jsx)(l.a,Object(a.a)(Object(a.a)({loadOptions:D,label:"Ch\u1ee9c v\u1ee5"},A),E("DmCvUuid"))),Object(i.jsx)(l.a,Object(a.a)(Object(a.a)({loadOptions:k,label:"Ph\xf2ng ban"},A),E("DmPbUuid"))),Object(i.jsx)(d.a,{activeRow:o,onChange:B}),Object(i.jsxs)(T,{flag:e,children:[Object(i.jsxs)("button",{className:"btn btn-primary mr-2",type:"submit",disabled:new b.c(M).isEqual(o),children:[I?Object(i.jsx)(m.a,{size:"sm",className:"mr-2"}):Object(i.jsx)("i",{className:"fas fa-check mr-3"}),"X\xe1c nh\u1eadn"]}),Object(i.jsxs)("button",{className:"btn btn-danger",type:"button",onClick:c,children:[Object(i.jsx)("i",{className:"fas fa-arrow-left mr-3"}),"Quay l\u1ea1i"]})]})]})]})}}}]);