????
Current Path : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/ |
Current File : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/7.dc9e46bb.chunk.js |
(this["webpackJsonpgdt-qlcb"]=this["webpackJsonpgdt-qlcb"]||[]).push([[7],{1037:function(t,e,n){"use strict";var r=n(35),o=n(5),i=n(1),a=n(1161),c=n(1155),l=n(1156),u=n(0),f=n.n(u),s=function(t){var e=t.children,n=t.excelData,u=void 0===n?{}:n,f=t.excelRef,s=u.fileName,d=void 0===s?"Tai xuong.xlsx":s,h=u.sheetName,b=void 0===h?"Bang tinh":h,p=u.title,v=void 0===p?"Bao cao":p,g=u.subtitle,y=u.header,m=u.columns,O=void 0===m?[]:m,j=u.data,w=void 0===j?[]:j,x=u.summaryRows,C=void 0===x?[]:x,A=u.renderArrayRowGroup,S=u.preventDefault,F=void 0!==S&&S,k=u.renderHeader,T=u.renderTitle,B=u.nationalMottoColspan;return Object(i.jsx)(a.c,{ref:f,hideElement:!0,filename:d,children:Object(i.jsxs)(a.d,{name:b,children:[T?T():Object(i.jsx)(c.a,{topLeft:[4,1],rows:[Object(l.a)(O.length,v.toUpperCase(),l.e)].concat(Object(r.a)(g?[Object(l.a)(O.length,g,l.c)]:[]))}),k?k():null,F?null:"function"===typeof A?A():Object(i.jsx)(a.b,Object(o.a)(Object(o.a)({topLeft:g?"A7":"A6"},y?{header:y}:{}),{},{columns:O.slice(),data:w})),Object(i.jsx)(c.a,{topLeft:[1,O.length-2],rows:Object(l.b)("C\u1ed9ng h\xf2a X\xe3 h\u1ed9i Ch\u1ee7 ngh\u0129a Vi\u1ec7t Nam",B)}),Object(i.jsx)(c.a,{topLeft:[2,O.length-2],rows:Object(l.b)("\u0110\u1ed9c l\u1eadp - T\u1ef1 do - H\u1ea1nh ph\xfac",B,{font:{underline:!0}})}),C?Object(i.jsx)(c.a,{topLeft:[w.length+1+(g?7:6),1],rows:C,style:l.d}):null,e]})})};e.a=f.a.memo(s)},1038:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(14),o=n(910);function i(t){if(!t)return"";if(--t<o.a.length)return o.a[t];var e=t%o.a.length;return"".concat(i(Math.floor(t/o.a.length))).concat(o.a[e])}function a(t){if("string"==typeof t)return t;if(Array.isArray(t)&&t.length>1){var e=Object(r.a)(t,4),n=e[0],o=e[1],a=e[2],c=e[3];return a&&c?i(o)+n+":"+i(a)+c:i(o)+n}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}},1039:function(t,e,n){"use strict";var r=n(14),o=n(0),i=n.n(o);e.a=function(){var t=i.a.useState(void 0),e=Object(r.a)(t,2),n=e[0],o=e[1],a=i.a.useRef({});return i.a.useEffect((function(){if(n){var t=a.current.exportExcel;"function"===typeof t&&t()}}),[n]),{excelRef:a,excelData:n,setExcelData:o}}},1155:function(t,e,n){"use strict";e.a=function(){return null}},1156:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return f}));var r=n(5),o={alignment:{horizontal:"center"}},i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return[{cells:[{style:Object(r.a)(Object(r.a)({},o),n),colspan:e,value:t}]}]},a=function(t,e,n){return{cells:[{colspan:t+1,value:e,style:n}]}},c=Object(r.a)({font:{size:16,bold:!0}},o),l=Object(r.a)(Object(r.a)({},o),{},{font:{size:12,italic:!0},height:100}),u={color:{argb:"#00aaaaaa"},style:"thin"},f={border:{top:u,left:u,bottom:u,right:u}}},1161:function(t,e,n){"use strict";n.d(e,"c",(function(){return k})),n.d(e,"d",(function(){return S})),n.d(e,"a",(function(){return T.a})),n.d(e,"b",(function(){return E}));var r=n(18),o=n.n(r),i=n(36),a=n(1),c=n(0),l=n.n(c),u=n(355),f=n(1154),s=n(220),d=n(14),h=n(6),b=n(809),p=n.n(b),v=n(910),g=n(1038),y=n(2),m=function(){return null};m.propTypes={min:n.n(y).a.number.isRequired};var O=m,j=n(99);function w(t,e){var n=e.tabColor,r=e.children;n&&(t.properties.tabColor=n),c.Children.forEach(r,(function(e){if(e){var n=e.props,r=n.topLeft,o=Object(h.a)(n,["topLeft"]);if(e.type===T.a)C(t,r,o);else if(e.type===E)!function(t,e,n){var r=n.columns,o=n.data,i=n.header,a=(n.totalRow,n.rowNum),c=n.headerStyle,l=n.cellStyle,u=n.onEndRow,f=t.getCell(Object(g.a)(e)).fullAddress,s=f.col,d=f.row;r="function"===typeof r?r():r,a&&r.unshift({name:"STT",render:function(t,e){return e+1},colStyle:{alignment:{horizontal:"center"}},width:5});i||(i=[{cells:r.filter((function(t){return!t.group})).map((function(t){return{value:t.name,style:p()({},t.cellStyle)}})),style:c}]);C(t,e,{rows:i,style:c});var h=r.filter((function(t){return t.group})).sort((function(t,e){return+t.group-+e.group})).map((function(t){return t.key})),b=A(t,[+d+i.length,+s],{keys:h,data:o,columns:r,style:l});u&&u(b-1)}(t,r,o);else if(e.type===O){var i=e.props,a=i.min,c=i.max,l=i.width,u=i.hidden,f=function(e){t.getColumn(e).hidden=u,u||(t.getColumn(e).width="number"===typeof l?l:10)};if(a)if(c)for(var s=a;s<=c;s++)f(s);else f(a);else Object(j.b)("C\u1ea7n ph\u1ea3i c\xf3 s\u1ed1 th\u1ee9 t\u1ef1 c\u1ed9t b\u1eaft \u0111\u1ea7u")}}}))}function x(t){return"[object Object]"===Object.prototype.toString.call(t)&&Object.prototype.hasOwnProperty.call(t,"value")?t.value:t||null}function C(t,e,n){var r=n.rows,o=n.style,i=t.getCell(Object(g.a)(e)).fullAddress,a=i.col,c=i.row,l="function"===typeof r?r():r;l&&l.forEach((function(e,n){e&&function(t,e,n){var r=Object(d.a)(e,2),o=r[0],i=r[1],a=void 0===i?1:i,c=n.cells,l=n.style,u=n.height;if(c){var f=t.getRow(o);c.forEach((function(e,n){var r=f.getCell(a+n);r.isMerged||(r.value=x(e),r.style=p()({},v.c,l,null===e||void 0===e?void 0:e.style),((null===e||void 0===e?void 0:e.colspan)>1||(null===e||void 0===e?void 0:e.rowspan)>1)&&t.mergeCells(o,a+n,o+((null===e||void 0===e?void 0:e.rowspan)-1||0),a+n+((null===e||void 0===e?void 0:e.colspan)-1||0)))})),u&&(t.getRow(o).height=u)}}(t,[c+n,a],{style:p()({},o,e.style),cells:e.cells||e,height:e.height})}))}function A(t,e,n){var r=n.keys,o=n.data,i=n.columns,a=n.style,c=null===r||void 0===r?void 0:r.shift(),l=i.find((function(t){return t.key===c})),u=t.getCell(Object(g.a)(e)).fullAddress,f=u.col,s=u.row;if(c&&l)for(var d=Array.from(new Set(o.map((function(t,e){return"undefined"!==typeof l.render?l.render(t,e):t[c]})))),h=function(){var e=y[b],n=t.getCell(s,+f,s,+f+i.filter((function(t){return!t.group})).length);n.value=e||null,n.style=p()({},v.c,a,{font:{bold:!0}}),t.mergeCells(n.address),s=A(t,[+s+1,+f],{keys:r,columns:i,data:o.filter((function(t){return t[c]===e}))})},b=0,y=d;b<y.length;b++)h();else i.filter((function(t){return!t.group})).forEach((function(e,n){(o="function"===typeof o?o():o).forEach((function(r,o){var i="undefined"!==typeof e.render?e.render(r,o):r[e.key];t.getCell(+s+o,+f+n).value=x(i),t.getCell(+s+o,+f+n).style=p()({},v.c,a,null===e||void 0===e?void 0:e.style,null===i||void 0===i?void 0:i.style)})),t.getColumn(+f+n).width="number"===typeof e.width?e.width:10})),s+=o.length;return s}var S=function(){return null},F=Object(c.forwardRef)((function(t,e){var n=t.hideElement,r=t.filename,l=t.element,u=t.children,d=Object(c.useCallback)(Object(i.a)(o.a.mark((function t(){var e,n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=new f.Workbook).creator="GDT QLCB",e.lastModifiedBy="GDT QLCB",e.created=new Date,e.modified=new Date,e.lastPrinted=new Date,c.Children.forEach(u,(function(t){w(e.addWorksheet(t.props.name),t.props)})),t.next=9,e.xlsx.writeBuffer();case 9:n=t.sent,Object(s.saveAs)(new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),r);case 11:case"end":return t.stop()}}),t)}))),[u,r]);return Object(c.useImperativeHandle)(e,(function(){return{exportExcel:d}}),[d]),n?null:Object(a.jsx)("span",{onClick:d,children:l})}));F.defaultProps={hideElement:!1,filename:"Download",element:Object(a.jsx)(u.a,{color:"primary",children:"T\u1ea3i Excel"})};var k=l.a.memo(F),T=n(1155),B=function(){return null};B.defaultProps={rowNum:!0,totalRow:!1,headerStyle:{alignment:{horizontal:"center"},font:{bold:!0},border:{top:{style:"thin",color:{argb:"FF808080"}},left:{style:"thin",color:{argb:"FF808080"}},bottom:{style:"thin",color:{argb:"FF808080"}},right:{style:"thin",color:{argb:"FF808080"}}}},cellStyle:{alignment:{wrapText:!1},border:{top:{style:"thin",color:{argb:"FF808080"}},left:{style:"thin",color:{argb:"FF808080"}},bottom:{style:"thin",color:{argb:"FF808080"}},right:{style:"thin",color:{argb:"FF808080"}}}}};var E=B},669:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),o=n(11),i=n(17),a=function(t){Object(o.a)(n,t);var e=Object(i.a)(n);function n(t){var o;return Object(r.a)(this,n),(o=e.call(this,"/DM",t)).getAll=function(t){return o.SearchAllOdata(t)},o.add=function(t){return o.InsertODATA(t)},o.edit=function(t,e){return o.UpdateODATA("(".concat(t,")"),e)},o.delete=function(t){return o.Delete("",t)},o}return n}(n(109).a)},685:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),o=n(11),i=n(17),a=function(t){Object(o.a)(n,t);var e=Object(i.a)(n);function n(t){var o;return Object(r.a)(this,n),(o=e.call(this,"",t)).getAll=function(t){return o.SearchAllOdata(t,{noAlert:"alert cc",noLoading:"loading cc"})},o.add=function(t){return o.InsertODATA(t)},o.edit=function(t,e){return o.UpdateODATA("(".concat(t,")"),e)},o.delete=function(t){return o.Delete("",t)},o.getAllUnlimited=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o.getAll("".concat(t?"".concat(t,"&"):"?","$skip=").concat(e)).then((function(r){var i=r["@odata.nextLink"],a=r.value.concat(n);return i?o.getAllUnlimited(t,e+50,a):a}))},o}return n}(n(109).a)},692:function(t,e,n){"use strict";var r=n(10),o=n(34),i=n(11),a=n(17),c=function(t){Object(i.a)(n,t);var e=Object(a.a)(n);function n(){var t;return Object(r.a)(this,n),(t=e.call(this,"/DMPhongBans")).getAllUnlimited=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t.getAll("".concat(e?"".concat(e,"&"):"?","$skip=").concat(n)).then((function(o){var i=o["@odata.nextLink"],a=o.value.concat(r);return i?t.getAllUnlimited(e,n+50,a):a}))},t}return Object(o.a)(n,[{key:"getFindById",value:function(t){return this.SearchAllOdata("/findById?id="+t+"&select=name%2Cuuid%2Cprefix")}},{key:"findByUuid",value:function(t){return this.SearchAllOdata("/findById?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getOptionsByDistrictUuid",value:function(t){return this.SearchAllOdata("/District?id=".concat(t,"&select=name,uuid,prefix"))}},{key:"getAllData",value:function(){return this.SearchAllOdata("?$filter=Status eq true &$select=name%2CUuid%2Ccode%2CDouutien&count=true")}}]),n}(n(669).a);e.a=new c},694:function(t,e,n){"use strict";var r=n(10),o=n(11),i=n(17),a=function(t){Object(o.a)(n,t);var e=Object(i.a)(n);function n(){return Object(r.a)(this,n),e.call(this,"/DMChucVus")}return n}(n(669).a);e.a=new a},701:function(t,e,n){"use strict";var r=n(10),o=n(11),i=n(17),a=function(t){Object(o.a)(n,t);var e=Object(i.a)(n);function n(){return Object(r.a)(this,n),e.call(this,"/QLCB/CanBos")}return n}(n(685).a);e.a=new a},705:function(t,e,n){"use strict";n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return o.a})),n.d(e,"a",(function(){return i.a})),n.d(e,"d",(function(){return u}));var r=n(692),o=n(694),i=n(701),a=n(10),c=n(11),l=n(17),u=new(function(t){Object(c.a)(n,t);var e=Object(l.a)(n);function n(){return Object(a.a)(this,n),e.call(this,"/DMPhuCaps")}return n}(n(669).a))},714:function(t,e,n){"use strict";var r=n(5),o=n(10),i=n(99),a=n(809),c=n.n(a),l=Object(i.h)().mixin({cancelButtonColor:"#d33"});e.a=new function t(){var e=this;Object(o.a)(this,t),this.defaultErrorSwal={title:"\u0110\xe3 x\u1ea3y ra l\u1ed7i!",text:"Vui l\xf2ng th\u1eed l\u1ea1i",confirmButtonText:"Th\u1eed l\u1ea1i",cancelButtonText:"\u0110\xf3ng",icon:"error"},this.defaultSuccessSwal={icon:"success",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:"X\xe1c nh\u1eadn",allowOutsideClick:!0,title:"Th\xe0nh c\xf4ng",text:""},this.handleSuccess=function(t,n){return function(r){"function"===typeof n&&n(r);var o=void 0!==t?c()(e.defaultSuccessSwal,"string"===typeof t?{title:t}:"object"===typeof t(r)?t(r):{title:t(r)}):e.defaultSuccessSwal;return l.isVisible()?l.update(o):l.fire(o)}},this.handleError=function(t){return function(n){var o=t.onError,i=(o=void 0===o?{}:o).getSwal,a=o.callback;"function"===typeof a&&a(n);return l.fire(Object(r.a)({preConfirm:function(){return e.didOpen(t,!0)}},"string"===typeof i?c()(e.defaultErrorSwal,{title:i}):"function"===typeof i?c()(e.defaultErrorSwal,i(n)):e.defaultErrorSwal))}},this.didOpen=function(t,n){var r=t.confirmSwal,o=t.pendingSwal,i=t.callAPIFn,a=t.onSuccess,u=(a=void 0===a?{}:a).getSwal,f=a.callback;if("function"!==typeof i)throw new Error("WTF Man");var s={icon:"info",title:"\u0110ang x\u1eed l\xfd",showConfirmButton:!1,showCancelButton:!1,allowOutsideClick:!l.isLoading,didOpen:function(){l.showLoading(),i().then(e.handleSuccess(u,f)).catch(e.handleError(t)).finally(l.hideLoading)}},d=function(){return l.fire(void 0===o?s:"object"===typeof o?c()(s,o):"string"===typeof o?c()(s,{title:o}):s)},h={icon:"question",confirmButtonText:"X\xe1c nh\u1eadn",cancelButtonText:"H\u1ee7y",text:"Thao t\xe1c n\xe0y kh\xf4ng th\u1ec3 ho\xe0n t\xe1c!",preConfirm:function(t){if(t)return d()}};return r?n?d():l.fire(c()(h,"object"===typeof r?r:"string"===typeof r?{title:r}:{})):d()}}},910:function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"a",(function(){return s}));var r=n(809),o=n.n(r),i=Array.of(" kh\xf4ng "," m\u1ed9t "," hai "," ba "," b\u1ed1n "," n\u0103m "," s\xe1u "," b\u1ea3y "," t\xe1m "," ch\xedn "),a=Array.of(""," ngh\xecn"," tri\u1ec7u"," t\u1ef7"," ngh\xecn t\u1ef7"," tri\u1ec7u t\u1ef7"),c={top:{style:"thin",color:{argb:"FF808080"}},left:{style:"thin",color:{argb:"FF808080"}},bottom:{style:"thin",color:{argb:"FF808080"}},right:{style:"thin",color:{argb:"FF808080"}}},l={numFmt:"#,##0",font:{name:"Times New Roman",family:4,size:12,color:{argb:"FF000000"}},alignment:{vertical:"middle",wrapText:!0},fill:{type:"pattern",pattern:"none"}},u={border:c},f=o()({},u,{font:{bold:!0},alignment:{horizontal:"center",wrapText:!0},border:c}),s="ABCDEFGHIJKLMNOPQRSTUVWXYZ"}}]);