????
Current Path : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/ |
Current File : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/95.69f431d3.chunk.js |
(this["webpackJsonpgdt-qlcb"]=this["webpackJsonpgdt-qlcb"]||[]).push([[95,99,131],{1004:function(e,t,n){"use strict";var a=n(23),r=n(28),c=n(80),i=n(79),o=n(0),u=n.n(o),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(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(c.a)(n)),n.getTabIndex=n.getTabIndex.bind(Object(c.a)(n)),n}Object(i.a)(t,e);var n=t.prototype;return n.onClick=function(e){var t=this.props,n=t.disabled,a=t.header,r=t.divider,c=t.text;n||a||r||c?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))},n.getTabIndex=function(){var e=this.props,t=e.disabled,n=e.header,a=e.divider,r=e.text;return t||n||a||r?"-1":"0"},n.render=function(){var e=this.getTabIndex(),t=e>-1?"menuitem":void 0,n=Object(b.n)(this.props,["toggle"]),c=n.className,i=n.cssModule,o=n.divider,s=n.tag,l=n.header,d=n.active,h=n.text,p=Object(r.a)(n,["className","cssModule","divider","tag","header","active","text"]),m=Object(b.m)(f()(c,{disabled:p.disabled,"dropdown-item":!o&&!l&&!h,active:d,"dropdown-header":l,"dropdown-divider":o,"dropdown-item-text":h}),i);return"button"===s&&(l?s="h6":o?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:e,role:t,className:m,onClick:this.onClick}))},t}(u.a.Component);m.propTypes=p,m.defaultProps={tag:"button",toggle:!0},m.contextType=h.a,t.a=m},1035:function(e,t,n){"use strict";n.r(t);var a=n(5),r=n(1),c=n(0),i=n.n(c),o=n(7),u=n(689),s=n(810);function l(e){var t=e.tableRef,n=e.onRowAdd,c=e.onRowEdit,l=e.onRowDelete,d=e.CanboUuid,f=e.onOpenKiemNhiem;console.log("show",o.k);var h=i.a.useMemo((function(){return[{field:"Uuid",dataID:!0,hidden:!0},{field:"TenDonVi",title:"T\xean \u0111\u01a1n v\u1ecb"},Object(s.a)("Tungay","Th\u1eddi gian b\u1eaft \u0111\u1ea7u"),Object(s.a)("Denngay","Th\u1eddi gian k\u1ebft th\xfac"),{field:"CreatedDate",hidden:!0,defaultSort:"desc"},{field:"DocumentUuid",title:"V\u0103n b\u1ea3n",render:s.c}]}),[]);return Object(r.jsx)(u.a,Object(a.a)(Object(a.a)({pageSize:5,where:"CanboUuid eq ".concat(d),tableRef:t,title:"Qu\xe1 tr\xecnh c\xf4ng t\xe1c",url:"QLCB/CanBoQuaTrinhCongTacs",columns:h},o.k?{onAdd:{onClick:n},onEdit:{onClick:c},onDelete:{onClick:l}}:{}),{},{onActions:[Object(s.b)("Qu\xe1 tr\xecnh c\xf4ng t\xe1c"),{title:"Qu\u1ea3n l\xed qu\xe1 tr\xecnh ki\xeam nhi\u1ec7m",icon:"trending_up",tooltip:"Qu\u1ea3n l\xed qu\xe1 tr\xecnh ki\xeam nhi\u1ec7m",onClick:f}]}))}t.default=i.a.memo(l)},1036:function(e,t,n){"use strict";n.r(t);var a=n(5),r=n(1),c=n(0),i=n.n(c),o=n(756),u=n(760),s=n(901),l=n.n(s),d=n(746),f=n(752),h=n(743),b=n(751),p=n(761),m=n(767),O=n(745),v=n(635),j=n(759),g=n(758),y=function(e){switch(e){case"Tungay":return"Ng\xe0y b\u1eaft \u0111\u1ea7u!";case"Denngay":return"Ng\xe0y k\u1ebft th\xfac!";case"TenDonVi":return"T\xean \u0111\u01a1n v\u1ecb!";default:return"v\xe0o tr\u01b0\u1eddng n\xe0y!"}},C=function(e){var t=[e,Object(j.a)(e,y,"DocumentUuid")];return j.b.apply(void 0,t)};function x(e){var t=e.activeRow,n=(t=void 0===t?{}:t).row,s=t.flag,j=e.toggle,y=e.onSubmit,x=(n||{}).Uuid,D=Object(c.useCallback)((function(e,t){"function"===typeof y&&y(Object(a.a)(Object(a.a)({},e),{},{CanboUuid:o.a}),t)}),[y]),k=Object(u.a)({initialValues:n,validate:C,onSubmit:D,enableReinitialize:!0}),T=k.getFieldProps,w=k.handleSubmit,A=k.isSubmitting,N=k.status,S=(N=void 0===N?{}:N).isSuccess,U=N.isError,P=k.setFieldValue,E=k.resetForm;i.a.useEffect(E,[n,E]);return Object(r.jsx)(f.a,{isOpen:void 0!==n&&void 0===s,toggle:A?void 0:j,size:"lg",children:Object(r.jsxs)("form",{noValidate:!0,onSubmit:w,children:[Object(r.jsx)(h.a,{children:x?"Ch\u1ec9nh s\u1eeda qu\xe1 tr\xecnh c\xf4ng t\xe1c":"Th\xeam m\u1edbi qu\xe1 tr\xecnh c\xf4ng t\xe1c"}),Object(r.jsxs)(b.a,{children:[Object(r.jsx)("h3",{children:"Th\xf4ng tin qu\xe1 tr\xecnh c\xf4ng t\xe1c"}),S?Object(r.jsxs)(l.a,{color:"success",children:[Object(r.jsx)("i",{className:"fas fa-check-circle text-success mr-4"}),n?n.hasOwnProperty.call(n,"Uuid")?"Ch\u1ec9nh s\u1eeda ":"Th\xeam m\u1edbi ":"hihi"," qu\xe1 tr\xecnh c\xf4ng t\xe1c th\xe0nh c\xf4ng!"]}):U?Object(r.jsxs)(l.a,{color:"danger",children:[Object(r.jsx)("i",{className:"fas fa-exclamation-circle text-danger mr-4"}),'\u0110\xe3 x\u1ea3y ra l\u1ed7i! Vui l\xf2ng b\u1ea5m "Th\u1eed l\u1ea1i" \u0111\u1ec3 th\u1eed l\u1ea1i']}):Object(r.jsx)(d.a,{}),Object(r.jsxs)("div",{className:"row",children:[Object(r.jsx)(p.a,Object(a.a)({label:"Ng\xe0y b\u1eaft \u0111\u1ea7u c\xf4ng t\xe1c"},T("Tungay"))),Object(r.jsx)(p.a,Object(a.a)({label:"Ng\xe0y k\u1ebft th\xfac c\xf4ng t\xe1c"},T("Denngay"))),Object(r.jsx)(m.a,Object(a.a)({label:"T\xean \u0111\u01a1n v\u1ecb"},T("TenDonVi"))),Object(r.jsx)(g.a,{onChange:P,activeRow:n})]})]}),Object(r.jsxs)(O.a,{children:[Object(r.jsxs)("button",{type:"button",onClick:j,disabled:A,className:"mr-3 btn btn-danger",children:[Object(r.jsx)("i",{className:"fas fa-times mr-2"}),"\u0110\xf3ng"]}),Object(r.jsxs)("button",{type:"submit",disabled:A,className:"btn btn-primary",children:[A?Object(r.jsx)(v.a,{size:"sm",className:"mr-2"}):Object(r.jsx)("i",{className:"fas fa-".concat(U?"sync":"check"," mr-2")}),U?"Th\u1eed l\u1ea1i":"X\xe1c nh\u1eadn"]})]})]})})}t.default=i.a.memo(x)},668:function(e,t,n){"use strict";var a=n(35),r=n(5),c=n(10),i=n(11),o=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(e,t){var n=Object(u.a)(t,2),a=n[0],r=n[1];return void 0!==(null===r||void 0===r?void 0:r.Uuid)?e[a]=null===r||void 0===r?void 0:r.Uuid:e[a]=r,e},b=function(e){return Object.entries(e).reduce(h,{})},p=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){var i;return Object(c.a)(this,n),(i=t.call(this,"/QLCB"+e)).getAll=function(e){return i.SearchAllOdata(e)},i.add=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return i.InsertODATA(e,t)},i.edit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return i.UpdateODATA("(".concat(e,")"),t,n)},i.delete=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return i.DeleteADMINODATA("(".concat(e,")"),t)},i.addUpdate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return Promise.reject("nani");var c=void 0!==e.Uuid,o=Object(r.a)(Object(r.a)({},b(e)),{},{DocumentUuid:t});return c?i.edit(e.Uuid,Object(s.m)(o,[].concat(Object(a.a)(n),["tableData"]))):i.add(Object(s.m)(o,n)).catch((function(){return t?l.a.delete(t).then(Promise.reject):Promise.reject("Thi ra may chon cai chet")}))},i}return n}(d.a);t.a=p},669:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,"/DM",e)).getAll=function(e){return r.SearchAllOdata(e)},r.add=function(e){return r.InsertODATA(e)},r.edit=function(e,t){return r.UpdateODATA("(".concat(e,")"),t)},r.delete=function(e){return r.Delete("",e)},r}return n}(n(109).a)},671:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=n(686),u=n(7),s=n(63),l=n(220),d=n.n(l),f=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this,"/Documents")).downloadDoc=function(t){var n=t.Uuid,a=t.Subject;return e.GetAuthenADMINODATA("/Download?uuid=".concat(n),{responseType:"blob",noAlert:!0,noLoading:!0}).then((function(e){return d()(e,a)}))},e.getDocUrlByUuid=function(t){return u.i+u.d+e.prefix+e.path+"/Download?uuid=".concat(t)},e}return Object(r.a)(n,[{key:"addDocument",value:function(e){return this.add(e)}},{key:"uploadFileDocument",value:function(e,t){return this.upload(e,t)}},{key:"getByUuid",value:function(e){return this.getAll("(".concat(e,")"),{noAlert:!0,noLoading:!0})}},{key:"getBase64",value:function(e){var t=this.getDocUrlByUuid(e);return fetch(t,Object(s.g)("GET",null,!0)).then((function(e){return e.blob()})).then(URL.createObjectURL)}}]),n}(o.a);t.a=new f},676:function(e,t,n){"use strict";var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(a.a)(this,n),t.call(this,"/QLCB",e)}return n}(n(109).a);t.a=i},677:function(e,t){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);e.exports=function(){return n(a),a}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},678:function(e,t){for(var n=[],a=0;a<256;++a)n[a]=(a+256).toString(16).substr(1);e.exports=function(e,t){var a=t||0,r=n;return[r[e[a++]],r[e[a++]],r[e[a++]],r[e[a++]],"-",r[e[a++]],r[e[a++]],"-",r[e[a++]],r[e[a++]],"-",r[e[a++]],r[e[a++]],"-",r[e[a++]],r[e[a++]],r[e[a++]],r[e[a++]],r[e[a++]],r[e[a++]]].join("")}},679:function(e,t,n){"use strict";n.d(t,"i",(function(){return c})),n.d(t,"j",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"k",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return O})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return j})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return y}));n(99);var a=".",r="/",c=function(e){return e.filter((function(e){return e.dataID}))[0]},i=function(e){return c(e).field},o=function(e){return e&&e.includes(a)},u=function(e){return e&&e.includes(r)},s=function(e){return e.split(a).join(r)},l=function(e,t){return e?t.field:t},d=function(e,t,n){var a=c(t);return"".concat(e,"(").concat(n[a.field],")")},f=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=[],s=[],d=[],f=[],h="",b="";e.forEach((function(e,t){d.push(e.field)}));var p=[],m=[];d.forEach((function(e,t){p.includes(e)?m.push(t):p.push(e)})),m.forEach((function(t){e.splice(t,1)})),e.forEach((function(e,c){var o="";o=n?l(t,e).split(a).reverse().splice(1).reverse().join(","):l(t,e).split(a).reverse().splice(1).reverse().join(r);var d=l(t,e).split(a).splice(1).reverse().join(r);u(d)&&(d=d.split(r)[0]),0===c?(i.push(o),s.push(d),f[c]=o):i.some((function(e){return e===o}))?(f.forEach((function(e,t){e===o&&(h=t)})),s[h]!==d&&(s[h]=s[h]+","+d)):(i.push(o),f[c]=o,s[c]=d)}));var O=[];return s.forEach((function(e){O.push(e)})),s=O,i.forEach((function(e,t){if(0===t)if(u(e)){var n=e.split(r),a=s[t].split(r),i="",l="",d="",f="";n.forEach((function(e,t){d=t===n.length-1?d+")":"",f+=")",0===t?i=l=e+"("+d:(l=t===n.length-1?"$expand="+e+"($select="+a[0]+f:"$expand="+e+"("+d,i=i+""+l)})),b=i}else if(null!==c){var h="";c.map((function(e,t){if(o(e.field)){var n=e.field.split(".");h+=0===t?n[n.length-1]:h+","+n[n.length-1]}})),b=e+"($select="+s[t]+","+h+")"}else b=e+"($select="+s[t]+")";else if(u(e)){var p=e.split(r),m=s[t].split(r),O="",v="",j="",g="";p.forEach((function(e,t){j=t===p.length-1?j+")":"",g+=")",0===t?O=v=e+"("+j:(v=t===p.length-1?"$expand="+e+"($select="+m[0]+g:"$expand="+e+"("+j,O=O+""+v)})),b=b+","+O}else b=b+","+e+"($select="+s[t]+")"})),b},h=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t?"withColumns"===t?"".concat(e.reduce((function(e,t,a,r){var c=l(n,t),i="".concat(e),u=i.split(","),s=!0;if(o(c)){var d=c.split(".");-1===u.indexOf(t.dataRef[0])&&d.length<3&&(i+="".concat(void 0===t.dataRef?"":t.dataRef[0]+","))}else-1===u.indexOf(c)?i+="".concat(c):s=!1;return"".concat(i).concat(a===r.length-1||!0===o(c)?"":!0===s?",":"")}),"")):"":"".concat(e.filter((function(e){return o(e.field)})).reduce((function(e,t){return"".concat(e,",").concat(s(l(n,t)))}),"*"))},b=function(e,t){return"string"===e?"'".concat(t,"'"):"datetime"===e?"datetime'".concat(t,"'"):"".concat(t)},p=function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(!a)return"".concat(e," eq ").concat(b(t,n));var i=e.split(".")[0].split("/");if(i.length<3){if(o(e)){if(c){var u=e.split(".").join("/"),s="contains(".concat(u,",'").concat(n,"')")+r;return c.map((function(e){if(e.isSearch){var t=e.field.split(".").join("/");s+=" or contains(".concat(t,",'").concat(n,"')")+r}})),s}var l=e.split(".").join("/");return"contains(".concat(l,",'").concat(n,"')")}return r?"contains(".concat(e,",'").concat(n,"') ").concat(r):"contains(".concat(e,",'").concat(n,"')")}},m=function(e,t,n,a){if(e.filters&&e.filters.length>0){var r=e.filters.filter((function(e){return e.column.field&&e.column.type})).map((function(e){var t="";return t="".concat(n?o(e.column.field)?s(n):e.column.field:o(e.column.field)?e.column.dataRef[0]:e.column.field),p(t,e.column.type,e.value)}));return r&&r.join(" and ")}if(e.search&&e.search.length>=1){var c=t.filter((function(e){return e.searchable&&e.field&&e.type})).map((function(t){var n="".concat(o(t.field)?s(t.field):t.field);return"numeric"!==t.type||o(t.field)?p(n,t.type,e.search,!0,a?"and "+a:t.where):isNaN(Number(e.search))?void 0:p(n,t.type,e.search,!1)}));return c.map((function(e,t){void 0===e&&c.splice(t,1)})),c.forEach((function(e,t){"undefined"===typeof e&&c.splice(t,1)})),c&&c.join(" or ")}return""},O=function(e,t){return"$top=".concat(t,"&$skip=").concat(e*t,"&$count=true")},v=function(e,t){return"&$orderby=".concat(o(e)?s(e):e," ").concat(t)},j=function(e){var t=!(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,r=e.filter((function(e){return o(l(t,e))}));return 0===r.length?"":"&$expand=".concat(null!==a?f(r,t,n,a):f(r,t,n))},g=function(e){var t=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,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=h(e,t,n);if(a)return c?"&$select=".concat(c):"";if(null!==r){var i="";return r.map((function(e){return i+=",".concat(e.field)})),c?"&$select=".concat(c," ").concat(i):""}return c?"&$select=".concat(c):""},y=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"withColumns",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(null!==r){var o="".concat("&$filter="+r.field+" ne "+r.data),u="".concat(" and "+r.field+" ne "+r.data);return"".concat(j(e,n)).concat(g(e,a,n)).concat(t?"&$filter="+t+u:o)}return!1===c?void 0!==i?"".concat(j(e,n)).concat(g(e,a,n,c,i)).concat(t?"&$filter="+t:""):"".concat(j(e,n)).concat(g(e,a,n,c)).concat(t?"&$filter="+t:""):"".concat(j(e,n,c,i)).concat(t?"&$filter="+t:"")}},685:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,"",e)).getAll=function(e){return r.SearchAllOdata(e,{noAlert:"alert cc",noLoading:"loading cc"})},r.add=function(e){return r.InsertODATA(e)},r.edit=function(e,t){return r.UpdateODATA("(".concat(e,")"),t)},r.delete=function(e){return r.Delete("",e)},r.getAllUnlimited=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return r.getAll("".concat(e?"".concat(e,"&"):"?","$skip=").concat(t)).then((function(a){var c=a["@odata.nextLink"],i=a.value.concat(n);return c?r.getAllUnlimited(e,t+50,i):i}))},r}return n}(n(109).a)},686:function(e,t,n){"use strict";var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,"/SDoc",e)).getAll=function(e,t){return r.SearchAllOdata(e,t)},r.add=function(e){return r.InsertODATA(e)},r.upload=function(e,t){return r.UploadODataSdoc("/upload",!0,!1,t,e)},r.edit=function(e,t){return r.UpdateODATA("(".concat(e,")"),t)},r.delete=function(e){return r.DeleteADMINODATA("(".concat(e,")"),{noLoading:"loadCC",noAlert:"lertCC"})},r}return n}(n(109).a);t.a=i},689:function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var a=n(10),r=n(34),c=n(11),i=n(17),o=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))})),O={color:"#000",padding:"5px",fontSize:"13px",fontWeight:"bold",textAlign:"center",backgroundColor:"rgb(245, 247, 255)",borderLeft:"0.5px solid rgb(224, 224, 224)"},v={even:"#FFF",odd:"rgb(247, 248, 255)"},j={padding:"4px 4px 4px 6px !important",fontSize:"0.775rem",borderLeft:"0.5px solid rgba(224, 224, 224, 1)"},g=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"render",value:function(){var e=this.props,t=(e.components,e.onSelectionChange),n=e.options,a=e.addMoreRows,r=e.pageSize,c=e.search,i=e.CustumToolbar,u=e.CustumCell,s=e.SearchAdvanced,l=e.onRowClick,g=(e.dataCount,e.rowsPerPage,e.page,Object(f.a)(e,["components","onSelectionChange","options","addMoreRows","pageSize","search","CustumToolbar","CustumCell","SearchAdvanced","onRowClick","dataCount","rowsPerPage","page"]));return Object(o.jsx)(b,Object(d.a)(Object(d.a)({},g),{},{addMoreRows:a,localization:h,options:{selection:n,exportButton:!1,search:c,actionsColumnIndex:-1,pageSize:r,headerStyle:O,pageSizeOptions:[5,10,30,50],rowStyle:function(e,t,n){return{backgroundColor:t%2===0?v.even:v.odd}}},onSelectionChange:t,onRowClick:void 0===l?void 0:function(e,t){return l(e,t)},components:function(){var e={Toolbar:function(e){return Object(o.jsx)(p,Object(d.a)(Object(d.a)({},e),{},{SearchAdvanced:s}))},Cell:function(e){return Object(o.jsx)(m,Object(d.a)(Object(d.a)({},e),{},{style:j}))}};return i&&(e.Toolbar=i),u&&(e.Cell=u),e}()}))}}]),n}(s.a.Component);g.defaultProps={pageSize:10,search:!0};var y=n(679),C=n(218),x=n(99),D=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(r.a)(n,[{key:"render",value:function(){var e=this.props,t=e.tableRef,n=e.url,a=e.urlExt,r=e.title,c=e.columns,i=e.pageSize,u=e.detailPanel,s=e.addMoreRows,d=e.where,f=e.search,h=e.selectType,b=e.noOdata,p=e.onRefresh,m=e.onAdd,O=e.onEdit,v=e.onDelete,j=e.onActions,D=e.onRowClick,k=e.SearchAdvanced,T=e.CustumToolbar,w=e.CustumCell,A=e.render,N=e.components,S=e.options,U=e.onSelectionChange,P=e.fieldFilter,E=e.concatSeachColumn,B=e.whereConCatColumn,M=e.onActionFree,I=function(e){return c.filter((function(e){return y.a(e.field)&&e.dataRef})).map((function(e){return{column:e,field_split:e.field.split(".")}})).forEach((function(t){delete e[t.field_split[0]]}))},R=function(e){for(var t=c.filter((function(e){return e.dataCheck})),n=0;n<t.length;n++)if(y.a(t[n].field)&&t[n].dataRef){if(null===e[t[n].dataRef[0]]||void 0===e[t[n].dataRef[0]])return Object(x.g)("Vui l\xf2ng nh\u1eadp d\u1eef li\u1ec7u c\u1ed9t "+t[n].title),!1}else if(void 0===e[t[n].field]||null===e[t[n].field])return Object(x.g)("Vui l\xf2ng nh\u1eadp d\u1eef li\u1ec7u c\u1ed9t "+t[n].title),!1;return!0};return Object(o.jsx)(g,{onSelectionChange:U,options:S,addMoreRows:s,search:f,pageSize:i,title:r,columns:c,tableRef:t,SearchAdvanced:k,CustumToolbar:T,CustumCell:w,data:function(e){return n?Object(C.c)(function(e){var t=c.filter((function(e){return"asc"===e.sortMulti||"desc"===e.sortMulti})),a="".concat(n,"?").concat(y.f(e.page,e.pageSize));a+="".concat(y.d(c)).concat(y.g(c,h)),e.orderBy&&void 0!==e.orderBy&&e.orderDirection&&""!==e.orderDirection&&(0!==t.length?t.forEach((function(e,n,r){var c="";0!==n&&(c=e.field.split(".").join("/")),a+=0===n?y.e(e.field,""):n!==t.length-1?",".concat(c):",".concat(c," ").concat(e.sortMulti)})):a+=y.e(e.orderBy.field,e.orderDirection));var r=y.c(e,c,P,d);return a+=r?E?B?d?"&$filter=(".concat(r,") or ").concat(E,"'").concat(e.search,"') and ").concat(B," and ").concat(d):"&$filter=".concat(r," or ").concat(E," eq '").concat(e.search,"' and ").concat(B):d?"&$filter=(".concat(r,") or ").concat(E,"'").concat(e.search,"') and ").concat(d):"&$filter=".concat(r," or ").concat(E," eq '").concat(e.search,"'"):d?"&$filter=(".concat(r,") and ").concat(d):"&$filter=".concat(r):d?"&$filter="+d:""}(e),"GET",null,b).then((function(t){return{data:b?t:void 0===t.value?[]:t.value,page:e.page,totalCount:b?t.length:Number(t["@odata.count"])}})):Object(C.c)(function(e){return"".concat(a).concat(d?"?"+d:"&","skip=").concat(e.page*e.pageSize,"&take=").concat(e.pageSize)}(e),"GET",null,!1).then((function(t){return{data:void 0===t.value?[]:t.value,page:e.page,totalCount:Number(t.count)}}))},detailPanel:u,editable:function(){var e={};return m&&void 0===m.onClick&&(void 0===m.onRowAdd?e.onRowAdd=function(e){return new Promise((function(t,a){var r=y.i(c);r.type&&"numeric"!==r.type&&"int"!==r.type&&(e[y.j(c)]=Object(l.v4)()),I(e),m.defaultValues&&m.defaultValues.forEach((function(t){return e[t.field]=t.value})),R(e)?Object(C.c)("".concat(n),"POST",JSON.stringify(e)).then((function(e){return t(e)})).catch((function(e){return a(e)})):a()}))}:e.onRowAdd=function(e){return m.onRowAdd(e,(function(e){return R(e)}))}),O&&void 0===O.onClick&&(O.hidden&&(e.onUpdateHidden=function(e){return O.hidden(e)}),void 0===O.onRowUpdate?e.onRowUpdate=function(e,t){return new Promise((function(a,r){I(e),function(e){c.map((function(t){return{column:t.field,value:""===e[t.field]?null:e[t.field]}})).forEach((function(t){return e[t.column]=t.value,e}))}(e),R(e)?Object(C.c)(y.k(n,c,t),"PATCH",JSON.stringify(e)).then((function(e){return a(e)})).catch((function(e){r(e.value||e),Object(x.e)(e.value)})):r()}))}:e.onRowUpdate=function(e,t){return O.onRowUpdate(e,t,(function(e){return R(e)}))}),v&&void 0===v.onClick&&(v.hidden&&(e.onDeleteHidden=function(e){return v.hidden(e)}),void 0===v.onRowDelete?e.onRowDelete=function(e){return new Promise((function(t,a){return Object(C.c)(y.k(n,c,e),"DELETE").then((function(){v.messageSuccess?t(null,v.messageSuccess):t("X\xf3a d\u1eef li\u1ec7u th\xe0nh c\xf4ng !")})).catch((function(e){Object(x.e)("X\xf3a d\u1eef li\u1ec7u kh\xf4ng th\xe0nh c\xf4ng !"),v.messageError?a(e,v.messageError):a("X\xf3a d\u1eef li\u1ec7u th\u1ea5t b\u1ea1i !")}))}))}:e.onRowDelete=function(e){return v.onRowDelete(e)}),e}(),actions:function(){var e=[];return p?(p.icon="refresh",p.isRefresh=!0,p.tooltip="T\u1ea3i l\u1ea1i d\u1eef li\u1ec7u",p.isFreeAction=!0,e.push(p)):e.push({icon:"refresh",isRefresh:!0,tooltip:"T\u1ea3i l\u1ea1i d\u1eef li\u1ec7u",isFreeAction:!0,onClick:function(){return t.current&&t.current.onQueryChange()}}),j&&j.map((function(t){return e.push(t)})),m&&m.onClick&&(m.icon="add_box",m.tooltip="Th\xeam",m.isAdd=!0,m.isFreeAction=!0,e.push(m)),O&&O.onClick&&(O.icon="edit",O.tooltip="S\u1eeda",O.isEdit=!0,e.push(O)),v&&v.onClick&&(v.icon="delete",v.tooltip="X\xf3a",v.isDelete=!0,e.push(v)),e}(),onActionFree:M,render:A,components:N,onRowClick:void 0===D?void 0:function(e,t){return D(e,t)}})}}]),n}(s.a.Component);D.defaultProps={addMoreRows:!1,title:"",columns:[],pageSize:10,search:!0,tableRef:s.a.createRef()}},692:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this,"/DMPhongBans")).getAllUnlimited=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.getAll("".concat(t?"".concat(t,"&"):"?","$skip=").concat(n)).then((function(r){var c=r["@odata.nextLink"],i=r.value.concat(a);return c?e.getAllUnlimited(t,n+50,i):i}))},e}return Object(r.a)(n,[{key:"getFindById",value:function(e){return this.SearchAllOdata("/findById?id="+e+"&select=name%2Cuuid%2Cprefix")}},{key:"findByUuid",value:function(e){return this.SearchAllOdata("/findById?id=".concat(e,"&select=name,uuid,prefix"))}},{key:"getOptionsByDistrictUuid",value:function(e){return this.SearchAllOdata("/District?id=".concat(e,"&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);t.a=new o},693:function(e,t,n){"use strict";var a=n(14),r=n(0);t.a=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Object(r.useState)("idle"),c=Object(a.a)(n,2),i=c[0],o=c[1],u=Object(r.useState)(void 0),s=Object(a.a)(u,2),l=s[0],d=s[1],f=Object(r.useState)(void 0),h=Object(a.a)(f,2),b=h[0],p=h[1],m=Object(r.useRef)(!1),O=Object(r.useCallback)((function(){return o("pending"),p(null),e().then((function(e){m.current&&(d(e),o("success"))})).catch((function(e){m.current&&(p(e),o("error"))}))}),[e]);return Object(r.useEffect)((function(){t&&O()}),[O,t]),Object(r.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]),{execute:O,status:i,value:l,error:b,setValue:d,setStatus:o}}},694:function(e,t,n){"use strict";var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/DMChucVus")}return n}(n(669).a);t.a=new i},695:function(e,t,n){var a=n(697),r=n(698),c=r;c.v1=a,c.v4=r,e.exports=c},697:function(e,t,n){var a,r,c=n(677),i=n(678),o=0,u=0;e.exports=function(e,t,n){var s=t&&n||0,l=t||[],d=(e=e||{}).node||a,f=void 0!==e.clockseq?e.clockseq:r;if(null==d||null==f){var h=c();null==d&&(d=a=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==f&&(f=r=16383&(h[6]<<8|h[7]))}var b=void 0!==e.msecs?e.msecs:(new Date).getTime(),p=void 0!==e.nsecs?e.nsecs:u+1,m=b-o+(p-u)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||b>o)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=b,u=p,r=f;var O=(1e4*(268435455&(b+=122192928e5))+p)%4294967296;l[s++]=O>>>24&255,l[s++]=O>>>16&255,l[s++]=O>>>8&255,l[s++]=255&O;var v=b/4294967296*1e4&268435455;l[s++]=v>>>8&255,l[s++]=255&v,l[s++]=v>>>24&15|16,l[s++]=v>>>16&255,l[s++]=f>>>8|128,l[s++]=255&f;for(var j=0;j<6;++j)l[s+j]=d[j];return t||i(l)}},698:function(e,t,n){var a=n(677),r=n(678);e.exports=function(e,t,n){var c=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[c+o]=i[o];return t||r(i)}},701:function(e,t,n){"use strict";var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/QLCB/CanBos")}return n}(n(685).a);t.a=new i},705:function(e,t,n){"use strict";n.d(t,"c",(function(){return a.a})),n.d(t,"b",(function(){return r.a})),n.d(t,"a",(function(){return c.a})),n.d(t,"d",(function(){return s}));var a=n(692),r=n(694),c=n(701),i=n(10),o=n(11),u=n(17),s=new(function(e){Object(o.a)(n,e);var t=Object(u.a)(n);function n(){return Object(i.a)(this,n),t.call(this,"/DMPhuCaps")}return n}(n(669).a))},712:function(e,t,n){"use strict";n.d(t,"d",(function(){return a.a})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return l.a})),n.d(t,"n",(function(){return d.a})),n.d(t,"c",(function(){return f.a})),n.d(t,"b",(function(){return h.a})),n.d(t,"a",(function(){return b.a})),n.d(t,"g",(function(){return p})),n.d(t,"i",(function(){return O})),n.d(t,"m",(function(){return v})),n.d(t,"l",(function(){return g})),n.d(t,"h",(function(){return y})),n.d(t,"k",(function(){return C})),n.d(t,"j",(function(){return x})),n.d(t,"p",(function(){return D})),n.d(t,"o",(function(){return k}));n(729);var a=n(716),r=n(10),c=n(34),i=n(11),o=n(17),u=n(676),s=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/CanBoNgachBacs")}return Object(c.a)(n,[{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"getFindByCMND",value:function(e){return this.SearchAllOdata("?$filter=Thongtincanhan/Dinhdanhcanhan eq '".concat(e,"'"))}},{key:"getDataByIDCanBo",value:function(e){return this.SearchAllOdata("?$expand=DmB($select=Name,Heso),DmN($select=Name,Code)&$filter=CanboUuid eq ".concat(e,"&$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(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/CanBoPhuCaps")}return Object(c.a)(n,[{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"delete",value:function(e){return this.DeleteADMINODATA("(".concat(e,")"))}},{key:"getAllByUuidCanBo",value:function(e){return this.SearchAllOdata("?$expand=OrganizationPhucap&$filter=CanboUuid eq ".concat(e," and Status eq true"))}}]),n}(u.a)),m=n(668),O=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/CanBoThanNhans")}return n}(m.a)),v=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/Notifys")}return Object(c.a)(n,[{key:"getDataByID",value:function(e){return this.SearchAllOdata("(".concat(e,")"))}},{key:"getAll",value:function(){return this.SearchAllOdata("?$filter=Thoigian gt now()&$orderby=CreatedDate desc")}},{key:"updateViewed",value:function(e){return this.UpdateODATA("(".concat(e,")"),{IsView:!0})}},{key:"delete",value:function(e){return this.DeleteADMINODATA("(".concat(e,")"))}}]),n}(u.a)),j=n(109),g=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/Notifys")}return Object(c.a)(n,[{key:"updateNotify",value:function(){return this.GetAuthenADMIN("/UpdateNotify")}},{key:"checkedNotify",value:function(){return this.GetAuthenADMIN("/UpdateViewedNotify")}}]),n}(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"/Others",e)}return n}(j.a))),y=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/CanBoSangKiens")}return Object(c.a)(n,[{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"delete",value:function(e){return this.DeleteADMINODATA("(".concat(e,")"))}},{key:"getAllByUuidCanBo",value:function(e){return this.SearchAllOdata("?$expand=OrganizationPhucap&$filter=CanboUuid eq ".concat(e," and Status eq true"))}}]),n}(u.a)),C=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/DanhSachCanBos")}return Object(c.a)(n,[{key:"getAllData",value:function(){return this.SearchAllOdata("?$expand=Thongtincanhan($select=Hovatendem,Ten)&$select=Uuid")}}]),n}(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(r.a)(this,n),t.call(this,"/extends",e)}return n}(j.a))),x=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/CanBoTongGios")}return Object(c.a)(n,[{key:"getDatabyYear",value:function(e){return this.SearchAllOdata("$filter=Nam eq ".concat(e," and Status eq true"))}}]),n}(m.a)),D=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/TapTheTongGios")}return Object(c.a)(n,[{key:"getDataByPhong",value:function(e,t){return this.SearchAllOdata("?$filter=DmPbUuid eq ".concat(e," and Nam eq ").concat(t))}},{key:"getDataByCondition",value:function(e){return this.SearchAllOdata("?$filter=DmPbUuid eq ".concat(e.DmPbUuid," and Nam eq ").concat(e.Nam," and LoaiGioDay eq '").concat(e.LoaiGioDay,"'"))}}]),n}(m.a)),k=new(function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/TapThePLDGs")}return Object(c.a)(n,[{key:"getDataByPhong",value:function(e,t){return this.SearchAllOdata("?$filter=DmPbUuid eq ".concat(e," and Nam eq ").concat(t))}}]),n}(m.a))},714:function(e,t,n){"use strict";var a=n(5),r=n(10),c=n(99),i=n(809),o=n.n(i),u=Object(c.h)().mixin({cancelButtonColor:"#d33"});t.a=new function e(){var t=this;Object(r.a)(this,e),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(e,n){return function(a){"function"===typeof n&&n(a);var r=void 0!==e?o()(t.defaultSuccessSwal,"string"===typeof e?{title:e}:"object"===typeof e(a)?e(a):{title:e(a)}):t.defaultSuccessSwal;return u.isVisible()?u.update(r):u.fire(r)}},this.handleError=function(e){return function(n){var r=e.onError,c=(r=void 0===r?{}:r).getSwal,i=r.callback;"function"===typeof i&&i(n);return u.fire(Object(a.a)({preConfirm:function(){return t.didOpen(e,!0)}},"string"===typeof c?o()(t.defaultErrorSwal,{title:c}):"function"===typeof c?o()(t.defaultErrorSwal,c(n)):t.defaultErrorSwal))}},this.didOpen=function(e,n){var a=e.confirmSwal,r=e.pendingSwal,c=e.callAPIFn,i=e.onSuccess,s=(i=void 0===i?{}:i).getSwal,l=i.callback;if("function"!==typeof c)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(),c().then(t.handleSuccess(s,l)).catch(t.handleError(e)).finally(u.hideLoading)}},f=function(){return u.fire(void 0===r?d:"object"===typeof r?o()(d,r):"string"===typeof r?o()(d,{title:r}):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(e){if(e)return f()}};return a?n?f():u.fire(o()(h,"object"===typeof a?a:"string"===typeof a?{title:a}:{})):f()}}},716:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/CanBos")}return Object(r.a)(n,[{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"getFindByCMND",value:function(e){return this.SearchAllOdata("?$filter=Thongtincanhan/Dinhdanhcanhan eq '".concat(e,"'"))}},{key:"getDataByID",value:function(e){return this.SearchAllOdata("(".concat(e,")"))}},{key:"delete",value:function(e){return this.DeleteADMINODATA("(".concat(e,")"))}}]),n}(n(676).a);t.a=new o},724:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/CanBoPBCVs")}return Object(r.a)(n,[{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"getDataByIDCanBo",value:function(e){return this.SearchAllOdata("?&$filter=CanboUuid eq ".concat(e," and Status eq true&$orderby=Tungay desc"))}}]),n}(n(668).a);t.a=new o},725:function(e,t,n){"use strict";var a=n(5),r=n(10),c=n(34),i=n(11),o=n(17),u=n(14),s=n(668),l=n(39),d=n(756),f=function(e,t){var n=Object(u.a)(t,2),a=n[0],r=n[1];return r?(r.Uuid?e[a]=r.Uuid:e[a]=r,e):e},h=function(e){return Object.entries(e).reduce(f,{})},b=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){return Object(r.a)(this,n),t.call(this,"/CanBoBoiDuongNghiepVus")}return Object(c.a)(n,[{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"delete",value:function(e){return this.DeleteADMINODATA("(".concat(e,")"))}},{key:"addUpdate",value:function(e,t){return e?e.hasOwnProperty.call(e,"Uuid")?this.edit(e.Uuid,Object(l.m)(h(e),["tableData"])):this.add(Object(a.a)(Object(a.a)({},h(e)),{},{DocumentUuid:t,CanboUuid:d.a})):Promise.reject("nani")}},{key:"getDataByIDCanBo",value:function(e){return this.SearchAllOdata("?$expand=DmBdnv($select=Name,Code),DmCn($select=Name,Code),DmDl($select=Name,Code),DmTd($select=Name,Code),&$filter=CanboUuid eq ".concat(e))}}]),n}(s.a);t.a=new b},727:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/ThongTinCaNhans")}return Object(r.a)(n,[{key:"getFindByCMND",value:function(e){return this.SearchAllOdata("?$filter=dinhdanhcanhan eq '".concat(e,"'"))}},{key:"findByUuid",value:function(e){return this.SearchAllOdata("/findById?id=".concat(e,"&select=name,uuid,prefix"))}},{key:"getOptionsByDistrictUuid",value:function(e){return this.SearchAllOdata("/District?id=".concat(e,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(){return this.SearchAllOdata("?$select=name%2CUuid%2Ccode&count=true")}},{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"getDataByID",value:function(e){return this.SearchAllOdata("(".concat(e,")"))}}]),n}(n(676).a);t.a=new o},729:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/Organizations")}return Object(r.a)(n,[{key:"getAllData",value:function(){return this.getAll("?$select=name%2CUuid%2Ccode&count=true")}},{key:"addOrganization",value:function(e){return this.add(e)}},{key:"update",value:function(e,t){return this.edit(e,t)}}]),n}(n(668).a);t.a=new o},730:function(e,t,n){"use strict";var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/CanBoBietPhais")}return n}(n(668).a);t.a=new i},732:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/CanBoLoaiHopDongs")}return Object(r.a)(n,[{key:"add",value:function(e){return this.PostAuthenADMINODATA("",e)}},{key:"update",value:function(e,t){return this.UpdateODATA("(".concat(e,")"),t)}},{key:"getDataByIDCanBo",value:function(e){return this.SearchAllOdata("?$expand=DmLhd($select=Name,Code)&$filter=CanboUuid eq ".concat(e,"&$orderby=Tungay desc"))}}]),n}(n(668).a);t.a=new o},735:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/OrganizationDetails")}return Object(r.a)(n,[{key:"getFindById",value:function(e){return this.getAll("/findById?id="+e+"&select=name%2Cuuid%2Cprefix")}},{key:"findByUuid",value:function(e){return this.getAll("/findById?id=".concat(e,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(){return this.getAll("?$select=name%2CUuid%2Ccode&count=true")}},{key:"addOrganization",value:function(e){return this.add(e)}},{key:"update",value:function(e,t){return this.edit(e,t)}}]),n}(n(685).a);t.a=new o},736:function(e,t,n){"use strict";var a=n(10),r=n(34),c=n(11),i=n(17),o=function(e){Object(c.a)(n,e);var t=Object(i.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/OrganizationPhuCaps")}return Object(r.a)(n,[{key:"getFindById",value:function(e){return this.getAll("(".concat(e,")?$expand=DmPc"))}},{key:"findByUuid",value:function(e){return this.getAll("/findById?id=".concat(e,"&select=name,uuid,prefix"))}},{key:"getOptionsByDistrictUuid",value:function(e){return this.getAll("/District?id=".concat(e,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(e){return this.getAll("?$expand=DmPc($select=Name,Code)&$filter=OrganizationUuid eq ".concat(e," and Status eq true&$orderby=Giatri asc"))}},{key:"addOrganization",value:function(e){return this.add(e)}},{key:"update",value:function(e,t){return this.edit(e,t)}},{key:"delete",value:function(e){return this.DeleteADMINODATA("(".concat(e,")"))}}]),n}(n(668).a);t.a=new o},737:function(e,t,n){"use strict";var a=n(10),r=n(11),c=n(17),i=function(e){Object(r.a)(n,e);var t=Object(c.a)(n);function n(){return Object(a.a)(this,n),t.call(this,"/DocumentTypes")}return n}(n(686).a);t.a=new i},738:function(e,t,n){"use strict";var a=n(774),r=n.n(a);n.d(t,"a",(function(){return r.a}))},743:function(e,t,n){"use strict";var a=n(23),r=n(28),c=n(0),i=n.n(c),o=n(2),u=n.n(o),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(e){var t,n=e.className,c=e.cssModule,o=e.children,u=e.toggle,s=e.tag,f=e.wrapTag,h=e.closeAriaLabel,b=e.charCode,p=e.close,m=Object(r.a)(e,["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","charCode","close"]),O=Object(d.m)(l()(n,"modal-header"),c);if(!p&&u){var v="number"===typeof b?String.fromCharCode(b):b;t=i.a.createElement("button",{type:"button",onClick:u,className:Object(d.m)("close",c),"aria-label":h},i.a.createElement("span",{"aria-hidden":"true"},v))}return i.a.createElement(f,Object(a.a)({},m,{className:O}),i.a.createElement(s,{className:Object(d.m)("modal-title",c)},o),p||t)};h.propTypes=f,h.defaultProps={tag:"h5",wrapTag:"div",closeAriaLabel:"Close",charCode:215},t.a=h},745:function(e,t,n){"use strict";var a=n(23),r=n(28),c=n(0),i=n.n(c),o=n(2),u=n.n(o),s=n(16),l=n.n(s),d=n(8),f={tag:d.q,className:u.a.string,cssModule:u.a.object},h=function(e){var t=e.className,n=e.cssModule,c=e.tag,o=Object(r.a)(e,["className","cssModule","tag"]),u=Object(d.m)(l()(t,"modal-footer"),n);return i.a.createElement(c,Object(a.a)({},o,{className:u}))};h.propTypes=f,h.defaultProps={tag:"div"},t.a=h},746:function(e,t,n){"use strict";var a=n(5),r=n(1),c=n(0),i=n.n(c),o=n(793),u=function(e){return Object(r.jsxs)(o.a,Object(a.a)(Object(a.a)({color:"info"},e),{},{children:[Object(r.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(r.jsx)("span",{className:"mx-1 text-danger",children:"(*)"}),"l\xe0 b\u1eaft bu\u1ed9c! Vui l\xf2ng nh\u1eadp \u0111\u1ea7y \u0111\u1ee7."]}))};t.a=i.a.memo(u)},752:function(e,t,n){"use strict";var a=n(216),r=n(23),c=n(80),i=n(79),o=n(0),u=n.n(o),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},O=function(e){function t(){return e.apply(this,arguments)||this}Object(i.a)(t,e);var n=t.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},t}(u.a.Component);O.propTypes=m;var v=O,j=n(702);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(){}var x=l.a.shape(j.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"},w=function(e){function t(t){var n;return(n=e.call(this,t)||this)._element=null,n._originalBodyPadding=null,n.getFocusableChildren=n.getFocusableChildren.bind(Object(c.a)(n)),n.handleBackdropClick=n.handleBackdropClick.bind(Object(c.a)(n)),n.handleBackdropMouseDown=n.handleBackdropMouseDown.bind(Object(c.a)(n)),n.handleEscape=n.handleEscape.bind(Object(c.a)(n)),n.handleStaticBackdropAnimation=n.handleStaticBackdropAnimation.bind(Object(c.a)(n)),n.handleTab=n.handleTab.bind(Object(c.a)(n)),n.onOpened=n.onOpened.bind(Object(c.a)(n)),n.onClosed=n.onClosed.bind(Object(c.a)(n)),n.manageFocusAfterClose=n.manageFocusAfterClose.bind(Object(c.a)(n)),n.clearBackdropAnimationTimeout=n.clearBackdropAnimationTimeout.bind(Object(c.a)(n)),n.trapFocus=n.trapFocus.bind(Object(c.a)(n)),n.state={isOpen:!1,showStaticBackdropAnimation:!1},n}Object(i.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.props,t=e.isOpen,n=e.autoFocus,a=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),a&&a(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0},n.componentDidUpdate=function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.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(e){if(this._element&&(!this._dialog||this._dialog.parentNode!==e.target)&&!(this.modalIndex<t.openCount-1)){for(var n=this.getFocusableChildren(),a=0;a<n.length;a++)if(n[a]===e.target)return;n.length>0&&(e.preventDefault(),e.stopPropagation(),n[0].focus())}},n.onOpened=function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||C)(e,t)},n.onClosed=function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||C)(e),t&&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 e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e},n.handleBackdropClick=function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._dialog?this._dialog.parentNode:null;if(t&&e.target===t&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}},n.handleTab=function(e){if(9===e.which&&!(this.modalIndex<t.openCount-1)){var n=this.getFocusableChildren(),a=n.length;if(0!==a){for(var r=this.getFocusedChild(),c=0,i=0;i<a;i+=1)if(n[i]===r){c=i;break}e.shiftKey&&0===c?(e.preventDefault(),n[a-1].focus()):e.shiftKey||c!==a-1||(e.preventDefault(),n[0].focus())}}},n.handleBackdropMouseDown=function(e){this._mouseDownElement=e.target},n.handleEscape=function(e){this.props.isOpen&&e.keyCode===p.l.esc&&this.props.toggle&&(this.props.keyboard?(e.preventDefault(),e.stopPropagation(),this.props.toggle(e)):"static"===this.props.backdrop&&(e.preventDefault(),e.stopPropagation(),this.handleStaticBackdropAnimation()))},n.handleStaticBackdropAnimation=function(){var e=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout((function(){e.setState({showStaticBackdropAnimation:!1})}),100)},n.init=function(){try{this._triggeringElement=document.activeElement}catch(e){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===t.openCount&&(document.body.className=f()(document.body.className,Object(p.m)("modal-open",this.props.cssModule))),this.modalIndex=t.openCount,t.openCount+=1},n.destroy=function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()},n.manageFocusAfterClose=function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}},n.close=function(){if(t.openCount<=1){var e=Object(p.m)("modal-open",this.props.cssModule),n=new RegExp("(^| )"+e+"( |$)");document.body.className=document.body.className.replace(n," ").trim()}this.manageFocusAfterClose(),t.openCount=Math.max(0,t.openCount-1),Object(p.p)(this._originalBodyPadding)},n.renderModalDialog=function(){var e,t=this,n=Object(p.n)(this.props,k),a="modal-dialog";return u.a.createElement("div",Object(r.a)({},n,{className:Object(p.m)(f()(a,this.props.className,(e={},e["modal-"+this.props.size]=this.props.size,e["modal-dialog-centered"]=this.props.centered,e["modal-dialog-scrollable"]=this.props.scrollable,e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),u.a.createElement("div",{className:Object(p.m)(f()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))},n.render=function(){var e=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!e)){var t=!!this._element&&!this.state.isOpen&&!e;this._element.style.display=t?"none":"block";var n=this.props,a=n.wrapClassName,c=n.modalClassName,i=n.backdropClassName,o=n.cssModule,s=n.isOpen,l=n.backdrop,d=n.role,h=n.labelledBy,b=n.external,m=n.innerRef,O={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":h,role:d,tabIndex:"-1"},g=this.props.fade,C=y(y(y({},j.a.defaultProps),this.props.modalTransition),{},{baseClass:g?this.props.modalTransition.baseClass:"",timeout:g?this.props.modalTransition.timeout:0}),x=y(y(y({},j.a.defaultProps),this.props.backdropTransition),{},{baseClass:g?this.props.backdropTransition.baseClass:"",timeout:g?this.props.backdropTransition.timeout:0}),D=l&&(g?u.a.createElement(j.a,Object(r.a)({},x,{in:s&&!!l,cssModule:o,className:Object(p.m)(f()("modal-backdrop",i),o)})):u.a.createElement("div",{className:Object(p.m)(f()("modal-backdrop","show",i),o)}));return u.a.createElement(v,{node:this._element},u.a.createElement("div",{className:Object(p.m)(a)},u.a.createElement(j.a,Object(r.a)({},O,C,{in:s,onEntered:this.onOpened,onExited:this.onClosed,cssModule:o,className:Object(p.m)(f()("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),o),innerRef:m}),b,this.renderModalDialog()),D))}return null},n.clearBackdropAnimationTimeout=function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)},t}(u.a.Component);w.propTypes=D,w.defaultProps=T,w.openCount=0;t.a=w},756:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(10),r=n(15),c=n(18),i=n.n(c),o=n(36),u=n(5),s=n(7),l=n(57),d=n.n(l),f="GDTQLCB",h=function(e,t){return Object(u.a)({method:e,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))}:{})},t?{body:JSON.stringify(t)}:{})},b=function(e){switch(e){case"add":return"POST";case"update":return"PATCH";case"delete":return"DELETE";default:return"GET"}},p=function(){var e=Object(o.a)(i.a.mark((function e(t){var n,a,r,c,o,u,l,d,f;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.resType,a=void 0===n?"json":n,r=t.endpoint,c=t.method,o=void 0===c?"GET":c,u=t.body,l=h(o,u),e.next=4,fetch(s.i+r,l);case 4:if(d=e.sent,204!==(f=d.status)){e.next=8;break}return e.abrupt("return",Promise.resolve(d));case 8:if(!(f>=200&&f<=300)){e.next=12;break}return e.next=11,d[a]();case 11:return e.abrupt("return",e.sent);case 12:if(!(f>=400&&f<500)){e.next=14;break}return e.abrupt("return",Promise.reject(d));case 14:return e.abrupt("return",Promise.reject(d));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),m={mixin:function(e){return["add","update","delete","getAll"].reduce((function(t,n){return Object(u.a)(Object(u.a)({},t),{},Object(r.a)({},n,(function(t){return p(function(t,n){return{endpoint:"".concat(e),method:b(t),body:n}}(n,t))})))}),{})}},O=["GET","POST","PUT","PATCH","DELETE"],v=(O.reduce((function(e,t){return Object(u.a)(Object(u.a)({},e),{},Object(r.a)({},t.toLowerCase(),p))}),m),new function e(){var t=this;Object(a.a)(this,e),this.endpoint="",this.getEndpoint=function(e,t){switch(e){case"getById":case"update":case"delete":return"(".concat(t,")");case"add":case"getAll":return"";default:return"/"+e}},this.setService=function(e){t[e]=function(n,a){var r=b(e),c=t.endpoint+t.getEndpoint(e,n);return p("POST"===r?{method:r,endpoint:c,body:a||n}:{method:r,endpoint:c,body:a})}},this.mixin=function(n){var a=new e;return a.endpoint=t.endpoint+n,a};O.forEach((function(e){t[e.toLowerCase()]=p})),["add","update","delete","getAll","getById"].forEach(this.setService)}),j=O.reduce((function(e,t){return Object(u.a)(Object(u.a)({},e),{},Object(r.a)({},t.toLowerCase(),p))}),v).mixin("/odata"),g=(j.mixin("/QLCB"),j.mixin("/DM"),"c313f654-b02b-44d4-b443-0ef61d5f55a6")},758:function(e,t,n){"use strict";var a=n(14),r=n(110),c=n(1),i=n(0),o=n.n(i),u=n(139),s=n(671);function l(){var e=Object(r.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 e},e}var d=u.a.div(l());function f(e){var t=e.onChange,n=e.activeRow,r=e.children,o=Object(i.useState)(null),u=Object(a.a)(o,2),l=u[0],f=u[1],h=Object(i.useRef)({name:"tao la input file"}),b=Object(i.useState)(!1),p=Object(a.a)(b,2),m=p[0],O=p[1],v=Object(i.useState)(!1),j=Object(a.a)(v,2),g=j[0],y=j[1],C=Object(i.useCallback)((function(e){return e&&e.DocumentUuid?(O(!0),y(!1),s.a.getByUuid(e.DocumentUuid).then(f).catch((function(){return y(!0)})).finally((function(){return O(!1)}))):f(null)}),[]),x=function(){if(g)return C();"function"===typeof h.current.click&&h.current.click()},D=function(e){var n=Object(a.a)(e.target.files,1)[0];f(n),"function"===typeof t&&t("DocumentUuid",n)},k=function(){return m?"\u0110ang t\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m...":g?"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(i.useEffect)((function(){if(n)return C(n),function(){f(null)}}),[n,C]),r?Object(c.jsxs)(c.Fragment,{children:[r(k,x),Object(c.jsx)("input",{type:"file",ref:h,onChange:D,className:"d-none"})]}):Object(c.jsxs)("div",{className:"form-group col-md-6",children:[Object(c.jsx)("label",{children:"V\u0103n b\u1ea3n k\xe8m theo"}),Object(c.jsx)(d,{className:"form-control",onClick:x,children:Object(c.jsxs)("div",{className:"d-flex align-items-center",children:[Object(c.jsx)("p",{className:g?"text-danger":l?"":"text-muted",children:k()}),g?null:Object(c.jsx)("i",{className:"fas fa-file-upload ml-2 text-primary"})]})}),Object(c.jsx)("input",{type:"file",ref:h,onChange:D,className:"d-none"})]})}t.a=o.a.memo(f)},759:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return s}));var a=n(5),r=n(14),c=n(823),i=n(59),o=function(e,t){return"function"===typeof e?"Vui l\xf2ng nh\u1eadp ".concat(e(t)):"Vui l\xf2ng nh\u1eadp v\xe0o tr\u01b0\u1eddng n\xe0y"},u=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length,a=new Array(n>2?n-2:0),c=2;c<n;c++)a[c-2]=arguments[c];return Object.entries(e).reduce((function(e,n){var c=Object(r.a)(n,2),i=c[0];return c[1]||a.includes(i)||(e[i]=o(t,i)),e}),{})},s=function(e,t){var n=e||{},r=n.Tungay,o=n.Denngay;if(!r||!o)return t;var u=new Date(r),s=new Date(o);return Object(i.a)(u)&&Object(i.a)(s)?1!==Object(c.a)(u,s)?t:function(e){return Object(a.a)(Object(a.a)({},e),{},{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!"})}(t):t}},760:function(e,t,n){"use strict";var a=n(5),r=n(6),c=n(867),i=n(0);t.a=function(e){var t=Object(c.a)(e),n=t.getFieldProps,o=t.errors,u=t.touched,s=Object(r.a)(t,["getFieldProps","errors","touched"]),l=Object(i.useCallback)((function(e){return Object(a.a)(Object(a.a)({},n(e)),{},{errors:o,touched:u})}),[n,o,u]);return Object(a.a)({getFieldProps:l,errors:o,touched:u},s)}},761:function(e,t,n){"use strict";var a=n(5),r=n(6),c=n(1),i=n(0),o=n.n(i),u=n(112),s=n(738),l=o.a.memo((function(e){var t=e.required,n=void 0===t||t,i=e.label,o=e.errors,l=e.touched,d=e.onChange,f=e.className,h=void 0===f?"form-group col-md-6":f,b=Object(r.a)(e,["required","label","errors","touched","onChange","className"]),p=b.name,m=b.value,O=void 0===m?"":m,v=l[p]&&o.hasOwnProperty.call(o,p);return Object(c.jsxs)("div",{className:h,children:[Object(c.jsxs)("label",{htmlFor:p,children:[i,n?Object(c.jsx)("span",{className:"mx-1 text-danger",children:"(*)"}):null]}),Object(c.jsx)(u.a,Object(a.a)(Object(a.a)({},b),{},{value:O,onChange:function(e){d({target:{name:p,value:e}})},inputClassName:v?"is-invalid":""})),Object(c.jsx)(s.a,{children:o[p]})]})}));t.a=l},767:function(e,t,n){"use strict";var a=n(5),r=n(6),c=n(1),i=n(0),o=n.n(i),u=n(818),s=n.n(u),l=n(738),d=o.a.memo((function(e){var t=e.required,n=void 0===t||t,i=e.label,o=e.errors,u=e.touched,d=e.className,f=void 0===d?"col-md-6 form-group":d,h=Object(r.a)(e,["required","label","errors","touched","className"]),b=h.name,p=h.value,m=void 0===p?"":p,O=u[b]&&o.hasOwnProperty.call(o,b);return Object(c.jsxs)("div",{className:f,children:[Object(c.jsxs)("label",{htmlFor:b,children:[i,n?Object(c.jsx)("span",{className:"text-danger ml-1",children:"(*)"}):null]}),Object(c.jsx)(s.a,Object(a.a)(Object(a.a)({},h),{},{value:m,required:n,invalid:O})),Object(c.jsx)(l.a,{children:o[b]})]})}));t.a=d},771:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(18),r=n.n(a),c=n(14),i=n(36),o=n(671),u=n(705),s=n(737),l=function(e,t){var n;if(!e.DocumentUuid){var a=t.DocumentUuid;return null===a||void 0===a?void 0:a.hasOwnProperty.call(a,"Uuid")}return e.DocumentUuid.hasOwnProperty.call(e,"Uuid")&&(null===(n=e.DocumentUuid)||void 0===n?void 0:n.Uuid)!==t.DocumentUuid},d=function(){var e=Object(i.a)(r.a.mark((function e(t,n){var a,i,o,s,l,d;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=8;break}return e.next=3,u.a.getAll("?$expand=Thongtincanhan($select=Hovatendem,Ten)&$filter=Uuid eq ".concat(t));case 3:return a=e.sent,i=Object(c.a)(a.value,1),o=i[0],s=o.Thongtincanhan,l=s.Hovatendem,d=s.Ten,e.abrupt("return","".concat(l," ").concat(d));case 8:if(!n){e.next=10;break}return e.abrupt("return",n);case 10:return e.abrupt("return",Promise.reject());case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=Object(i.a)(r.a.mark((function e(t,n,a,i,u){var f,h,b,p,m,O,v,j,g,y,C,x;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i||u){e.next=2;break}return e.abrupt("return",Promise.reject("Expected CanboUuid but got shit."));case 2:if(a){e.next=4;break}return e.abrupt("return",Promise.reject("Nani???"));case 4:if(f=t.DocumentUuid,h=n.DocumentUuid,f||h){e.next=8;break}return e.abrupt("return",Promise.resolve(null));case 8:return e.next=10,s.a.getAll("?$filter=TypeCode eq '".concat(a,"'"));case 10:if(b=e.sent,p=void 0===(p=b.value)?[]:p,m=Object(c.a)(p,1),O=m[0],v=(O=void 0===O?{}:O).Uuid){e.next=18;break}return e.abrupt("return",Promise.reject("pornhub.com"));case 18:return e.next=20,d(i,u);case 20:if(j=e.sent,g={Subject:(null===f||void 0===f?void 0:f.name)||"V\u0103n b\u1ea3n \u0111\xednh k\xe8m",DocTypeUuid:v,OrganName:j},y=function(){return Promise.resolve(null)},C=function(e){var n=e.Uuid;return o.a.uploadFileDocument(n,t.DocumentUuid).then((function(){return n}))},x=function(){return h?o.a.delete(h).then(y):y()},"string"!==typeof f){e.next=27;break}return e.abrupt("return",Promise.resolve(f));case 27:if(f){e.next=29;break}return e.abrupt("return",y());case 29:if(!l(t,n)){e.next=33;break}if(f){e.next=32;break}return e.abrupt("return",x());case 32:return e.abrupt("return",x().then((function(){return o.a.add(g)})).then(C));case 33:return console.log("okokok",l(t,n)),e.abrupt("return",o.a.add(g).then(C));case 35:case"end":return e.stop()}}),e)})));return function(t,n,a,r,c){return e.apply(this,arguments)}}()},775:function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},781:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},782:function(e,t,n){"use strict";var a=n(5),r=n(14),c=n(6),i=n(1),o=n(0),u=n(120),s=n(738),l=function(e){var t=e.options,n=e.loadOptions,l=e.required,d=void 0===l||l,f=e.label,h=e.errors,b=e.touched,p=e.onChange,m=e.className,O=void 0===m?"col-md-6 form-group":m,v=e.placeholder,j=void 0===v?"Ch\u1ecdn ".concat(f):v,g=e.noOptionsMessage,y=void 0===g?function(){return"Kh\xf4ng c\xf3 ".concat(f)}:g,C=e.loadingMessage,x=void 0===C?function(){return"\u0110ang t\u1ea3i ".concat(f)}:C,D=(e.defaultOptions,e.getOptionValue),k=e.getOptionLabel,T=Object(c.a)(e,["options","loadOptions","required","label","errors","touched","onChange","className","placeholder","noOptionsMessage","loadingMessage","defaultOptions","getOptionValue","getOptionLabel"]),w=T.name,A=T.value,N=void 0===A?null:A,S=b[w]&&Object.prototype.hasOwnProperty.call(h,w),U=Object(o.useState)([]),P=Object(r.a)(U,2),E=P[0],B=P[1],M=Object(o.useState)(!1),I=Object(r.a)(M,2),R=I[0],$=I[1],_=Object(o.useCallback)((function(e,t){var n=t.name;p({target:{name:n,value:e}})}),[p]),q=Object(o.useMemo)((function(){return Object(a.a)({},S?{control:function(e){return Object(a.a)(Object(a.a)({},e),{},{borderColor:"#cd201f"})}}:{})}),[S]);Object(o.useEffect)((function(){return $(!0),Array.isArray(t)&&B(t),"function"===typeof n&&n().then((function(e){B(e),$(!1)})),function(){return B([])}}),[n,t,B]);var F=Object(o.useMemo)((function(){return null===E||void 0===E?void 0:E.find((function(e){return(D(N)||N)===D(e)}))}),[D,E,N]);return Object(i.jsxs)("div",{className:O,children:[Object(i.jsxs)("label",{htmlFor:w,children:[f,d?Object(i.jsx)("span",{className:"text-danger mx-1",children:"(*)"}):null]}),Object(i.jsx)(u.a,Object(a.a)(Object(a.a)({},T),{},{placeholder:j,noOptionsMessage:y,loadingMessage:x,styles:q,value:F,className:S?"is-invalid":"",inputId:w,id:w,isLoading:R,getOptionValue:D,getOptionLabel:k,options:E,onChange:_})),Object(i.jsx)(s.a,{children:h[w]})]})};l.defaultProps={getOptionValue:function(e){return null===e||void 0===e?void 0:e.Uuid},getOptionLabel:function(e){return null===e||void 0===e?void 0:e.Name},filterOption:function(e,t){var n,a=e.label;return!t||(n=t,a.toLocaleLowerCase("vi-VN").normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[\u0111]/g,"d").includes(n))}},t.a=Object(o.memo)(l)},794:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},810:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return p}));var a=n(5),r=n(1),c=n(59),i=n(643),o=n(740),u=n(831),s=(n(0),n(671)),l=n(714),d=n(99),f=function(e){return function(t){if(!t[e])return o.e;var n=new Date(t[e]);return Object(c.a)(n)?Object(i.a)(n,"dd/MM/yyyy"):o.e}},h=function(e,t){return{render:f(e),field:e,title:t,type:"date"}},b=function(e){return Object(r.jsx)(u.a,Object(a.a)({},e))},p=function(e){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(t,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(e," n\xe0y kh\xf4ng c\xf3 v\u0103n b\u1ea3n \u0111\xednh k\xe8m"),cancelButtonText:"\u0110\xf3ng",showConfirmButton:!1})}}}},818:function(e,t,n){"use strict";var a=n(699);t.__esModule=!0,t.default=void 0;var r=a(n(711)),c=a(n(721)),i=a(n(794)),o=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(e){function t(t){var n;return(n=e.call(this,t)||this).getRef=n.getRef.bind((0,i.default)(n)),n.focus=n.focus.bind((0,i.default)(n)),n}(0,o.default)(t,e);var n=t.prototype;return n.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},n.focus=function(){this.ref&&this.ref.focus()},n.render=function(){var e=this.props,t=e.className,n=e.cssModule,a=e.type,i=e.bsSize,o=e.valid,s=e.invalid,f=e.tag,h=e.addon,b=e.plaintext,p=e.innerRef,m=(0,c.default)(e,["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"]),O=["radio","checkbox"].indexOf(a)>-1,v=new RegExp("\\D","g"),j=f||("select"===a||"textarea"===a?a:"input"),g="form-control";b?(g+="-plaintext",j=f||"input"):"file"===a?g+="-file":"range"===a?g+="-range":O&&(g=h?null:"form-check-input"),m.size&&v.test(m.size)&&((0,d.warnOnce)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),i=m.size,delete m.size);var y=(0,d.mapToCssModules)((0,l.default)(t,s&&"is-invalid",o&&"is-valid",!!i&&"form-control-"+i,g),n);return("input"===j||f&&"function"===typeof f)&&(m.type=a),m.children&&!b&&"select"!==a&&"string"===typeof j&&"select"!==j&&((0,d.warnOnce)('Input with a type of "'+a+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete m.children),u.default.createElement(j,(0,r.default)({},m,{ref:p,className:y,"aria-invalid":s}))},t}(u.default.Component);h.propTypes=f,h.defaultProps={type:"text"};var b=h;t.default=b},831:function(e,t,n){"use strict";var a=n(14),r=n(110),c=n(1),i=n(0),o=n.n(i),u=n(139),s=n(671);function l(){var e=Object(r.a)(["\n cursor: pointer;\n"]);return l=function(){return e},e}var d=u.a.i(l());function f(e){var t=e.DocumentUuid,n=e.onGetDocSuccess,r=Object(i.useState)(void 0),u=Object(a.a)(r,2),l=u[0],f=u[1],h=Object(i.useState)(void 0),b=Object(a.a)(h,2),p=b[0],m=b[1],O=Object(i.useState)(void 0),v=Object(a.a)(O,2),j=v[0],g=v[1],y=Object(i.useRef)(!1),C=Object(i.useCallback)((function(){t&&(f(!0),m(!1),s.a.getByUuid(t).then((function(e){y.current&&(g(e),"function"===typeof n&&n(e))})).catch((function(){y.current&&m(!0)})).finally((function(){y.current&&f(!1)})))}),[t,n]);if(o.a.useEffect((function(){C()}),[C]),o.a.useEffect((function(){return y.current=!0,function(){y.current=!1}}),[]),l)return Object(c.jsx)("div",{children:"\u0110ang t\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m"});if(p)return Object(c.jsxs)("div",{children:["\u0110\xe3 x\u1ea3y ra l\u1ed7i! Vui l\xf2ng th\u1eed l\u1ea1i",Object(c.jsx)(d,{className:"fas fa-sync mx-3 text-primary fa-lg",onClick:C})]});if(!t)return Object(c.jsx)("div",{className:"text-muted",children:"Ch\u01b0a c\xf3 v\u0103n b\u1ea3n \u0111\xednh k\xe8m"});var x=(j||{}).Subject;return Object(c.jsx)("div",{children:x})}t.a=o.a.memo(f)},833:function(e,t,n){"use strict";var a=n(699);t.__esModule=!0,t.default=void 0;var r=a(n(711)),c=a(n(721)),i=a(n(781)),o=a(n(0)),u=a(n(2)),s=a(n(16)),l=n(749),d=n(710);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=h(h({},l.Transition.propTypes),{},{children:u.default.oneOfType([u.default.arrayOf(u.default.node),u.default.node]),tag:d.tagPropType,baseClass:u.default.string,baseClassActive:u.default.string,className:u.default.string,cssModule:u.default.object,innerRef:u.default.oneOfType([u.default.object,u.default.string,u.default.func])}),p=h(h({},l.Transition.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:d.TransitionTimeouts.Fade,appear:!0,enter:!0,exit:!0,in:!0});function m(e){var t=e.tag,n=e.baseClass,a=e.baseClassActive,i=e.className,u=e.cssModule,f=e.children,h=e.innerRef,b=(0,c.default)(e,["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"]),p=(0,d.pick)(b,d.TransitionPropTypeKeys),m=(0,d.omit)(b,d.TransitionPropTypeKeys);return o.default.createElement(l.Transition,p,(function(e){var c="entered"===e,l=(0,d.mapToCssModules)((0,s.default)(i,n,c&&a),u);return o.default.createElement(t,(0,r.default)({className:l},m,{ref:h}),f)}))}m.propTypes=b,m.defaultProps=p;var O=m;t.default=O},901:function(e,t,n){"use strict";var a=n(699);t.__esModule=!0,t.default=void 0;var r=a(n(711)),c=a(n(721)),i=a(n(781)),o=a(n(0)),u=a(n(2)),s=a(n(16)),l=n(710),d=a(n(833));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b={children:u.default.node,className:u.default.string,closeClassName:u.default.string,closeAriaLabel:u.default.string,cssModule:u.default.object,color:u.default.string,fade:u.default.bool,isOpen:u.default.bool,toggle:u.default.func,tag:l.tagPropType,transition:u.default.shape(d.default.propTypes),innerRef:u.default.oneOfType([u.default.object,u.default.string,u.default.func])},p={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:h(h({},d.default.defaultProps),{},{unmountOnExit:!0})};function m(e){var t=e.className,n=e.closeClassName,a=e.closeAriaLabel,i=e.cssModule,u=e.tag,f=e.color,b=e.isOpen,p=e.toggle,m=e.children,O=e.transition,v=e.fade,j=e.innerRef,g=(0,c.default)(e,["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"]),y=(0,l.mapToCssModules)((0,s.default)(t,"alert","alert-"+f,{"alert-dismissible":p}),i),C=(0,l.mapToCssModules)((0,s.default)("close",n),i),x=h(h(h({},d.default.defaultProps),O),{},{baseClass:v?O.baseClass:"",timeout:v?O.timeout:0});return o.default.createElement(d.default,(0,r.default)({},g,x,{tag:u,className:y,in:b,role:"alert",innerRef:j}),p?o.default.createElement("button",{type:"button",className:C,"aria-label":a,onClick:p},o.default.createElement("span",{"aria-hidden":"true"},"\xd7")):null,m)}m.propTypes=b,m.defaultProps=p;var O=m;t.default=O},932:function(e,t,n){"use strict";n.r(t);var a=n(35),r=n(6),c=n(14),i=n(5),o=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),O=n(745),v=n(714),j=n(59),g=n(752),y=n(743),C=n(751),x=n(712),D=n(39),k=n(692),T=n(694),w=n(7),A=function(e){return new Date(e).toISOString()},N="PHONG_BAN_CHUC_VU",S="KIEM_NHIEM";function U(e){var t=e.DocTypeUuid,n=e.CanboUuid,U=e.activeRow,P=e.toggle,E=U||{},B=E.row,M=E.flag,I=M===S?"Ki\xeam nhi\u1ec7m":"Ph\xf2ng ban ch\u1ee9c v\u1ee5",R=B||{},$=R.Tungay,_=R.Denngay,q=R.Uuid,F=s.a.useState(void 0),V=Object(c.a)(F,2),z=V[0],L=V[1];s.a.useEffect((function(){return L(void 0)}),[U]);var K=s.a.useCallback((function(){if(!n||!q||!$||!_)return Promise.resolve();if(!Object(j.a)(new Date($))||!Object(j.a)(new Date(_)))return Promise.reject();var e=function(e,t,n,a){var r=A(e),c=A(t);return"?$filter=CanboUuid eq ".concat(n," and Status eq true ")+"and Tungay ge ".concat(r," ")+"and Denngay le ".concat(c).concat(a?"&$expand=DmCv,DmPb":"")}($,_,n,M!==S);return M===S?x.a.getAll(e+" and IsKiemNhiem eq true and Status eq true&$expand=CanboPbcvs($orderby=CreatedDate desc)").then((function(e){var t=e.value,n=void 0===t?[]:t;if(0===n.length)return n;var o=n.map((function(e){var t=e.CanboPbcvs,n=Object(r.a)(e,["CanboPbcvs"]),o=Object(c.a)(t,1)[0],u=void 0===o?{}:o,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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Object(c.a)(e,2),a=t[0],r=(a=void 0===a?{}:a).value;r=void 0===r?[]:r;var o=Object(c.a)(r,1),u=o[0],s=void 0===u?null:u,l=t[1],f=(l=void 0===l?{}:l).value;f=void 0===f?[]:f;var h=Object(c.a)(f,1),b=h[0],p=void 0===b?null:b;return Object(i.a)(Object(i.a)({},n),{},{DmPb:s,DmCv:p,CanboPbcvUuid:d})}))}));return Promise.all(o).then((function(e){return{value:e}}))})):l.a.getAll(e)}),[n,q,$,_,M]),H=Object(u.useCallback)((function(){return K().then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.value;return t}))}),[K]),G=Object(p.a)(H),Q=G.execute,X=G.status,J=G.setValue,W=G.value,Y=void 0===W?[]:W,Z=function(e,c){return Object(d.a)(e,z,t,n).then(function(e){e.CreatedDate;var t=Object(r.a)(e,["CreatedDate"]);return function(e){var r="KIEM_NHIEM"===M,c=Object(i.a)(Object(i.a)({CanboUuid:n},t),r?{IsKiemNhiem:!0}:{}),o=[c,e,["DmPb","DmCv"].concat(Object(a.a)(r?["DmPbUuid","DmCvUuid","CanboPbcvUuid"]:[]))];return r?x.a.addUpdate.apply(x.a,o).then((function(t){var a=t.Uuid,r=void 0===a?c.Uuid:a,o=c.DmPbUuid,u=c.DmCvUuid,s=c.Tungay,d=c.Denngay,f=c.CanboPbcvUuid,h=Object(i.a)(Object(i.a)({Uuid:f,Tungay:s,Denngay:d},o?{DmPbUuid:o}:{}),u?{DmCvUuid:u}:{});return l.a.addUpdate(Object(i.a)({Uuid:f,CanboUuid:n,DocumentUuid:e,CanboBietphaiUuid:r},h)).then((function(){return{CanboBietphaiUuid:r,CanboUuid:n}}))})):l.a.addUpdate.apply(l.a,o)}}(e)).then(function(e,t){return function(n){n.Uuid,n.CanboUuid;var a=t.resetForm,r=t.setStatus;Q(),e.Uuid||a(),r({successMsg:"".concat(e.Uuid?"Ch\u1ec9nh s\u1eeda":"Th\xeam m\u1edbi"," ").concat(I," th\xe0nh c\xf4ng")}),setTimeout(r,2e3)}}(e,c)).catch(function(e,t){return function(){(0,t.setStatus)({errorMsg:"".concat(e.Uuid?"Ch\u1ec9nh s\u1eeda":"Th\xeam m\u1edbi"," ").concat(I," th\u1ea5t b\u1ea1i. Vui l\xf2ng th\u1eed l\u1ea1i")})}}(e,c))},ee=function(e){var t=e.Uuid;t&&v.a.didOpen({callAPIFn:function(){return function(e){return"KIEM_NHIEM"===M?x.a.delete(e):l.a.delete(e)}(t)},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 J((function(e){return e.filter((function(e){return e.Uuid!==t}))}))}}})},te=(B||{}).Canbo,ne=(te=void 0===te?{}:te).Thongtincanhan,ae=(ne=void 0===ne?{}:ne).Hovatendem,re=void 0===ae?"":ae,ce=ne.Ten,ie=void 0===ce?"":ce,oe="Qu\u1ea3n l\xed ".concat(I," c\u1ee7a c\xe1n b\u1ed9 ").concat(re," ").concat(ie," t\u1eeb ").concat(D.e.format($)," \u0111\u1ebfn ").concat(D.e.format(_));return Object(o.jsxs)(g.a,{isOpen:void 0!==B&&[N,S].includes(M),toggle:P,size:"lg",children:[Object(o.jsxs)(y.a,{className:"p-3",children:[z?z.Uuid?"Ch\u1ec9nh s\u1eeda ".concat(I):"Th\xeam m\u1edbi ".concat(I):"Danh s\xe1ch ".concat(I),z||!w.k?null:Object(o.jsxs)("button",{className:"btn btn-success ml-2",disabled:!$||!_,onClick:function(){return L(Object(i.a)({Tungay:"",Denngay:"",DocumentUuid:null,DmCvUuid:null,DmPbUuid:null},M===S?{DonViDen:""}:{}))},children:[Object(o.jsx)("i",{className:"fas fa-plus mr-3"}),"Th\xeam m\u1edbi"]})]}),Object(o.jsxs)(C.a,{children:[Object(o.jsx)("h3",{children:oe}),void 0!==z?Object(o.jsx)(b.default,{flag:M,row:B,onSubmit:Z,activeItem:z,onCancel:function(){return L(void 0)}}):"pending"===X?Object(o.jsxs)(f.Center156,{children:[Object(o.jsx)(m.a,{className:"mb-2"}),Object(o.jsxs)("p",{children:["\u0110ang t\u1ea3i danh s\xe1ch ",I]})]}):"error"===X?Object(o.jsxs)(f.Center156,{children:[Object(o.jsx)("p",{children:"\u0110\xe3 x\u1ea3y ra l\u1ed7i. Vui l\xf2ng th\u1eed l\u1ea1i"}),Object(o.jsx)("button",{className:"btn btn-primary",onClick:Q,children:"Th\u1eed l\u1ea1i"})]}):"success"===X?$&&_?0===Y.length?Object(o.jsxs)(f.Center156,{children:[Object(o.jsx)("i",{className:"fas fa-list-ul fa-2x mb-3 text-muted"}),Object(o.jsxs)("p",{className:"text-muted mb-0",children:["Qu\xe1 tr\xecnh c\xf4ng t\xe1c n\xe0y ch\u01b0a c\xf3 ",I,","]}),Object(o.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(o.jsx)("div",{className:"row mt-2",children:Y.map((function(e){return Object(i.a)(Object(i.a)({},e),{},{flag:M,onEdit:function(){return L(function(e){return Object(i.a)(Object(i.a)({},e),{},{DmCvUuid:e.DmCv,DmPbUuid:e.DmPb})}(e))},onDelete:function(){return ee(e)}})})).map(h.default)}):null:Object(o.jsx)(f.Center156,{children:Object(o.jsxs)("p",{children:["Vui l\xf2ng ch\u1ecdn th\u1eddi gian c\xf4ng t\xe1c \u0111\u1ec3 th\xeam c\xe1c ",I]})}):null]}),Object(o.jsx)(O.a,{children:Object(o.jsxs)("button",{className:"btn btn-danger",onClick:P,children:[Object(o.jsx)("i",{className:"fas fa-times mr-3"}),"\u0110\xf3ng"]})})]})}t.default=s.a.memo(U)},973:function(e,t,n){"use strict";n.r(t),n.d(t,"CursorPointer",(function(){return o})),n.d(t,"Center156",(function(){return u}));var a=n(110),r=n(139);function c(){var e=Object(a.a)(["\n justify-content: center;\n align-items: center;\n min-height: 156px;\n display: flex;\n flex-direction: column;\n"]);return c=function(){return e},e}function i(){var e=Object(a.a)(["\n cursor: pointer;\n"]);return i=function(){return e},e}var o=r.a.div(i()),u=r.a.div(c())},974:function(e,t,n){"use strict";n.r(t);var a=n(110),r=n(1),c=n(0),i=n.n(c),o=n(975),u=n(39),s=n(693),l=n(671),d=n(139);function f(){var e=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 e},e}var h="Kh\xf4ng c\xf3 th\xf4ng tin",b=d.a.div(f()),p=function(e){var t=e.DocumentUuid,n=i.a.useCallback((function(){return t?l.a.getByUuid(t):Promise.resolve()}),[t]),a=Object(s.a)(n),c=a.value,o=(c=void 0===c?{}:c).Subject,u=a.status;return"pending"===u?Object(r.jsx)("div",{className:"text-muted",children:"\u0110ang t\u1ea3i v\u0103n b\u1ea3n \u0111\xednh k\xe8m"}):"error"===u?Object(r.jsx)("div",{className:"text-danger",children:"Ch\u01b0a t\u1ea3i \u0111\u01b0\u1ee3c v\u0103n b\u1ea3n \u0111\xednh k\xe8m"}):"success"===u?o?Object(r.jsxs)(b,{children:[Object(r.jsx)("i",{className:"fas fa-file-word mr-2"}),o]}):Object(r.jsx)("div",{className:"text-muted",children:"Kh\xf4ng c\xf3 v\u0103n b\u1ea3n \u0111\xednh k\xe8m"}):null};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.DmCv,n=e.DmPb,a=e.Uuid,c=e.onEdit,i=e.onDelete,s=e.Tungay,l=e.Denngay,d=e.DonViDen,f=e.DocumentUuid,b=t||{},m=b.Name,O=void 0===m?h:m,v=n||{},j=v.Name,g=void 0===j?h:j;return Object(r.jsx)("div",{className:"col-md-6 mb-4",children:Object(r.jsxs)("div",{className:"d-flex border px-3 py-2 rounded bg-white",children:[Object(r.jsxs)("div",{className:"flex-grow-1",children:[Object(r.jsxs)("div",{children:["T\xean \u0111\u01a1n v\u1ecb: ",d]}),Object(r.jsxs)("div",{children:["Ch\u1ee9c v\u1ee5: ",O]}),Object(r.jsxs)("div",{children:["Ph\xf2ng ban: ",g]}),Object(r.jsxs)("div",{children:["Th\u1eddi gian: ",u.e.getTimeDuration(s,l)]}),Object(r.jsx)(p,{DocumentUuid:f})]}),Object(r.jsx)(o.default,{onEdit:c,DocumentUuid:f,onDelete:i})]})},a)}},975:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n(1),c=n(0),i=n.n(c),o=n(1027),u=n(1257),s=n(1244),l=n(1004),d=n(671),f=n(714);t.default=function(e){var t=i.a.useState(!1),n=Object(a.a)(t,2),c=n[0],h=n[1],b=e.onEdit,p=e.onDelete,m=e.DocumentUuid;return Object(r.jsxs)(o.a,{isOpen:c,toggle:function(){return h((function(e){return!e}))},children:[Object(r.jsx)(u.a,{className:"p-1",tag:"span","data-toggle":"dropdown","aria-expanded":c,children:Object(r.jsx)("i",{className:"fas fa-ellipsis-h",style:{cursor:"pointer"}})}),Object(r.jsxs)(s.a,{children:[Object(r.jsxs)(l.a,{onClick:b,children:[Object(r.jsx)("i",{className:"fas fa-pen mr-3 text-primary"}),"Ch\u1ec9nh s\u1eeda"]}),Object(r.jsxs)(l.a,{onClick:p,children:[Object(r.jsx)("i",{className:"fas fa-trash mr-3 text-danger"}),"X\xf3a"]}),m?Object(r.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(r.jsx)("i",{className:"fas fa-download mr-3"}),"T\u1ea3i v\u0103n b\u1ea3n"]}):null]})]})}},976:function(e,t,n){"use strict";n.r(t);var a=n(5),r=n(1),c=n(759),i=n(694),o=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),O=n(793),v=n(767),j=function(e){switch(e){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"}},g=function(e){return"Kh\xf4ng x\xe1c \u0111\u1ecbnh \u0111\u01b0\u1ee3c th\u1eddi gian ".concat(e," c\xf4ng t\xe1c/ki\xeam nhi\u1ec7m bi\u1ec7t ph\xe1i, vui l\xf2ng t\u1ea3i l\u1ea1i trang")},y=function(e){return e?"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(e){var t=e.value;return void 0===t?[]:t},D=function(){return i.a.getAll().then(x)},k=function(){return o.c.getAll().then(x)},T=function(e){var t=e.children;return"KIEM_NHIEM"===e.flag?Object(r.jsx)("div",{className:"w-100 px-3 mt-2 d-flex justify-content-end",children:t}):Object(r.jsx)("div",{className:"col-md-6",children:Object(r.jsx)("div",{className:"d-flex justify-content-end mt-4",children:t})})},w={getOptionLabel:function(e){return null===e||void 0===e?void 0:e.Name},getOptionValue:function(e){return null===e||void 0===e?void 0:e.Uuid}};t.default=function(e){var t=e.flag,n=e.row,i=e.activeItem,o=e.onCancel,x=e.onSubmit,A=n||{},N=A.Tungay,S=A.Denngay,U=Object(u.a)({initialValues:i,enableReinitialize:!0,onSubmit:x,validate:function(e,t,n){return function(n){var r=[],i=Object(c.b)(n,c.a.apply(void 0,[n,j,"DocumentUuid"].concat(r)));if(!n.Tungay||!n.Denngay)return i;if(!e)return Object(a.a)(Object(a.a)({},i),{},{Tungay:g("b\u1eaft \u0111\u1ea7u")});if(!t)return Object(a.a)(Object(a.a)({},i),{},{Denngay:g("k\u1ebft th\xfac")});var o=new Date(e),u=new Date(t),s=new Date(n.Tungay),l=new Date(n.Denngay);if(!Object(f.a)(o))return Object(a.a)(Object(a.a)({},i),{},{Tungay:C});if(!Object(f.a)(u))return Object(a.a)(Object(a.a)({},i),{},{Denngay:C});var d=-1!==Object(h.a)(s,o),b=-1!==Object(h.a)(u,l);return d?b?i:Object(a.a)(Object(a.a)({},i),{},{Denngay:y()}):Object(a.a)(Object(a.a)({},i),{},{Tungay:y(!0)})}}(N,S)}),P=U.handleSubmit,E=U.getFieldProps,B=U.setFieldValue,M=U.values,I=U.isSubmitting,R=U.status,$=(R=void 0===R?{}:R).errorMsg,_=R.successMsg;return Object(r.jsxs)("form",{onSubmit:P,noValidate:!0,children:[_?Object(r.jsxs)(O.a,{color:"success",children:[Object(r.jsx)("i",{className:"fas fa-check text-success mr-4"}),_]}):$?Object(r.jsxs)(O.a,{color:"danger",children:[Object(r.jsx)("i",{className:"fas fa-times text-danger mr-4"}),$]}):Object(r.jsx)(p.a,{}),Object(r.jsxs)("div",{className:"row",children:[Object(r.jsx)(s.a,Object(a.a)(Object(a.a)({},E("Tungay")),{},{label:"Th\u1eddi gian b\u1eaft \u0111\u1ea7u"})),Object(r.jsx)(s.a,Object(a.a)(Object(a.a)({},E("Denngay")),{},{label:"Th\u1eddi gian k\u1ebft th\xfac"})),"KIEM_NHIEM"===t?Object(r.jsx)(v.a,Object(a.a)({label:"T\xean \u0111\u01a1n v\u1ecb"},E("DonViDen"))):null,Object(r.jsx)(l.a,Object(a.a)(Object(a.a)({loadOptions:D,label:"Ch\u1ee9c v\u1ee5"},w),E("DmCvUuid"))),Object(r.jsx)(l.a,Object(a.a)(Object(a.a)({loadOptions:k,label:"Ph\xf2ng ban"},w),E("DmPbUuid"))),Object(r.jsx)(d.a,{activeRow:i,onChange:B}),Object(r.jsxs)(T,{flag:t,children:[Object(r.jsxs)("button",{className:"btn btn-primary mr-2",type:"submit",disabled:new b.c(M).isEqual(i),children:[I?Object(r.jsx)(m.a,{size:"sm",className:"mr-2"}):Object(r.jsx)("i",{className:"fas fa-check mr-3"}),"X\xe1c nh\u1eadn"]}),Object(r.jsxs)("button",{className:"btn btn-danger",type:"button",onClick:o,children:[Object(r.jsx)("i",{className:"fas fa-arrow-left mr-3"}),"Quay l\u1ea1i"]})]})]})]})}},987:function(e,t,n){"use strict";n.r(t);var a=n(5),r=n(18),c=n.n(r),i=n(36),o=n(14),u=n(1),s=n(0),l=n.n(s),d=n(39),f=n(1035),h=n(771),b=n(1036),p=n(10),m=n(11),O=n(17),v=new(function(e){Object(m.a)(n,e);var t=Object(O.a)(n);function n(){return Object(p.a)(this,n),t.call(this,"/CanBoQuaTrinhCongTacs")}return n}(n(668).a)),j=n(932),g=n(7),y=n(86),C=n.n(y),x=n(714),D=n(671),k=n(712),T=n(737),w={Tungay:"",Denngay:"",TenDonVi:""},A="PHONG_BAN_CHUC_VU",N=function(e){return new Date(e).toISOString()};t.default=function(e){var t=e.CanboUuid,n=e.DocTypeUuid,r=Object(s.useState)(),p=Object(o.a)(r,2),m=p[0],O=p[1],y=Object(s.useRef)({taoLaTable:!0}),S=Object(s.useCallback)((function(){return O(void 0)}),[]),U=Object(s.useCallback)((function(e,t){return O({row:t})}),[]),P=Object(s.useCallback)((function(){O({row:w})}),[]),E=Object(s.useRef)(),B=(m||{}).flag;l.a.useEffect((function(){E.current=null===m||void 0===m?void 0:m.row}),[m]),l.a.useEffect((function(){T.a.getAll().then(console.log)}),[]);var M=Object(s.useCallback)((function(){var e=y.current.onQueryChange;"function"===typeof e&&e()}),[]),I=Object(s.useCallback)((function(e,n){var a,r=n.Tungay,o=n.Denngay,u=N(r),s=N(o),l=n.DocumentUuid,d=n.Uuid;if(!d)return C.a.fire({icon:"warning",title:"Kh\xf4ng t\xecm th\u1ea5y Id c\u1ee7a qu\xe1 tr\xecnh c\xf4ng t\xe1c. Vui l\xf2ng th\u1eed l\u1ea1i!",showCancelButton:!1,showConfirmButton:!1});var f="?$filter=CanboUuid eq ".concat(t," ")+"and Status eq true "+"and Tungay ge ".concat(u," ")+"and Denngay le ".concat(s," ")+"and IsKiemNhiem eq true";x.a.didOpen({confirmSwal:{title:"B\u1ea1n c\xf3 ch\u1eafc mu\u1ed1n x\xf3a qu\xe1 tr\xecnh c\xf4ng t\xe1c?",text:"Thao t\xe1c n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c!"},pendingSwal:{title:"\u0110ang x\xf3a qu\xe1 tr\xecnh c\xf4ng t\xe1c"},callAPIFn:function(){var e=Object(i.a)(c.a.mark((function e(){var t,n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.delete(d);case 2:return e.next=4,l?D.a.delete(l):Promise.resolve();case 4:return e.next=6,k.a.getAll(f);case 6:return t=e.sent,n=t.value,e.next=10,Promise.all(n.length>0?n.map((function(e){var t=e.Uuid;return k.a.delete(t)})):[]);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onSuccess:{callback:null===(a=y.current)||void 0===a?void 0:a.onQueryChange,getSwal:function(){return"\u0110\xe3 x\xf3a qu\xe1 tr\xecnh c\xf4ng t\xe1c"}}})}),[t]),R=Object(s.useCallback)((function(e,r,c){var i=Object(d.m)(Object(a.a)(Object(a.a)({},e),{},{CanboUuid:t}),["Canbo","tableData"]),o=i.hasOwnProperty.call(i,"Uuid"),u=r.setSubmitting,s=r.setStatus,l=r.resetForm,f=function(){u(!1),o||l(),s({isSuccess:!0}),M(),"function"!==typeof c||o||c(),setTimeout((function(){return s({isSuccess:!1})}),2e3)},b=function(e){console.log("ee",e),u(!1),s({isError:!0})};return o?Object(h.a)(e,E.current,n,t).then((function(e){return v.edit(i.Uuid,Object(a.a)(Object(a.a)({},i),{},{DocumentUuid:e}))})).then(f).catch(b):Object(h.a)(e,E.current,n,t).then((function(e){return v.add(Object(a.a)(Object(a.a)({},i),{},{DocumentUuid:e}))})).then(f).catch(b)}),[M,t,n]),$=l.a.useCallback((function(e,t){O({row:t,flag:A})}),[]),_=l.a.useCallback((function(e,t){O({row:t,flag:"KIEM_NHIEM"})}),[]),q=l.a.useMemo((function(){return B===A?"VBPBCV":"VBKNBP"}),[B]);return Object(u.jsxs)(u.Fragment,{children:[Object(u.jsx)(f.default,Object(a.a)({tableRef:y,onOpenPhongBanChucVu:$,onOpenKiemNhiem:_,CanboUuid:t},g.k?{onRowEdit:U,onRowAdd:P,onRowDelete:I}:{})),Object(u.jsx)(b.default,{activeRow:m,onSubmit:R,toggle:S}),Object(u.jsx)(j.default,{activeRow:m,toggle:S,DocTypeUuid:q,CanboUuid:t})]})}}}]);