????
Current Path : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/ |
Current File : C:/inetpub/vhost/quanlycanbo.gdtvietnam.com/www/static/js/45.94bb049e.chunk.js |
(this["webpackJsonpgdt-qlcb"]=this["webpackJsonpgdt-qlcb"]||[]).push([[45],{1038:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(14),a=n(910);function o(t){if(!t)return"";if(--t<a.a.length)return a.a[t];var e=t%a.a.length;return"".concat(o(Math.floor(t/a.a.length))).concat(a.a[e])}function l(t){if("string"==typeof t)return t;if(Array.isArray(t)&&t.length>1){var e=Object(r.a)(t,4),n=e[0],a=e[1],l=e[2],u=e[3];return l&&u?o(a)+n+":"+o(l)+u:o(a)+n}throw new Error("Sai \u0111\u1ecba ch\u1ec9 \xf4 Excel")}},1065:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(38);function a(t,e,n){return(a="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var a=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Object(r.a)(t)););return t}(t,e);if(a){var o=Object.getOwnPropertyDescriptor(a,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}},353:function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return z})),n.d(e,"IntegerToRoman",(function(){return _}));var r=n(18),a=n.n(r),o=n(5),l=n(35),u=n(36),c=n(910),i=n(10),s=n(34),f=n(1065),d=n(38),h=n(11),p=n(17),y=n(1154),v=n(220),b=n(14),g=n(872),w=n(873),m=n(809),O=n.n(m),j=n(1038),C=Object(w.a)("ws"),k=Object(w.a)("getCellValue"),A=Object(w.a)("renderRow"),T=Object(w.a)("renderGroup"),R=function(){function t(e){var n=this;return Object(i.a)(this,t),Object.defineProperty(this,C,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:function(t){return"[object Object]"===Object.prototype.toString.call(t)&&Object.prototype.hasOwnProperty.call(t,"value")?t.value:t||null}}),Object.defineProperty(this,A,{writable:!0,value:function(t,e){var r=Object(b.a)(t,2),a=r[0],o=r[1],l=void 0===o?1:o,u=e.cells,i=e.style,s=e.height;if(u){var f=Object(g.a)(n,C)[C].getRow(a);u.forEach((function(t,e){var r=f.getCell(l+e);r.isMerged||(r.value=Object(g.a)(n,k)[k](t),r.style=O()({},c.c,i,null===t||void 0===t?void 0:t.style),((null===t||void 0===t?void 0:t.colspan)>1||(null===t||void 0===t?void 0:t.rowspan)>1)&&Object(g.a)(n,C)[C].mergeCells(a,l+e,a+((null===t||void 0===t?void 0:t.rowspan)-1||0),l+e+((null===t||void 0===t?void 0:t.colspan)-1||0)))})),s&&(Object(g.a)(n,C)[C].getRow(a).height=s)}}}),Object.defineProperty(this,T,{writable:!0,value:function(t,e){var r=e.keys,a=e.data,o=e.columns,l=e.style,u=null===r||void 0===r?void 0:r.shift(),i=o.find((function(t){return t.key===u})),s=Object(g.a)(n,C)[C].getCell(Object(j.a)(t)).fullAddress,f=s.col,d=s.row;if(u&&i)for(var h=Array.from(new Set(a.map((function(t,e){return"undefined"!==typeof i.render?i.render(t,e):t[u]})))),p=function(){var t=v[y],e=Object(g.a)(n,C)[C].getCell(d,+f,d,+f+o.filter((function(t){return!t.group})).length);e.value=t||null,e.style=O()({},c.c,l,{font:{bold:!0}}),Object(g.a)(n,C)[C].mergeCells(e.address),d=Object(g.a)(n,T)[T]([+d+1,+f],{keys:r,columns:o,data:a.filter((function(e){return e[u]===t}))})},y=0,v=h;y<v.length;y++)p();else o.filter((function(t){return!t.group})).forEach((function(t,e){(a="function"===typeof a?a():a).forEach((function(r,a){var o="undefined"!==typeof t.render?t.render(r,a):r[t.key];Object(g.a)(n,C)[C].getCell(+d+a,+f+e).value=Object(g.a)(n,k)[k](o),Object(g.a)(n,C)[C].getCell(+d+a,+f+e).style=O()({},c.c,l,null===t||void 0===t?void 0:t.style,null===o||void 0===o?void 0:o.style)})),Object(g.a)(n,C)[C].getColumn(+f+e).width="number"===typeof t.width?t.width:10})),d+=a.length;return d}}),Object(g.a)(this,C)[C]=e,this}return Object(s.a)(t,[{key:"renderArrayRowGroup",value:function(t,e){var n=this,r=e.rows,a=e.style,o=Object(g.a)(this,C)[C].getCell(Object(j.a)(t)).fullAddress,l=o.col,u=o.row;("function"===typeof r?r():r).forEach((function(t,e){t&&Object(g.a)(n,A)[A]([u+e,l],{r:u+e,c:l,style:O()({},a,t.style),cells:t.cells||t,height:t.height})}))}},{key:"renderDataRowGroup",value:function(t,e){var n=e.columns,r=e.data,a=e.header,o=(e.totalRow,e.rowNum),l=e.headerStyle,u=e.cellStyle,c=e.onEndRow,i=Object(g.a)(this,C)[C].getCell(Object(j.a)(t)).fullAddress,s=i.col,f=i.row;n="function"===typeof n?n():n,o&&n.unshift({name:"STT",render:function(t,e){return e+1},colStyle:{alignment:{horizontal:"center"}},width:5}),a||(a=[{cells:n.filter((function(t){return!t.group})).map((function(t){return{value:t.name,style:O()({},t.cellStyle)}})),style:l}]),this.renderArrayRowGroup(t,{rows:a,style:l});var d=n.filter((function(t){return t.group})).sort((function(t,e){return+t.group-+e.group})).map((function(t){return t.key})),h=Object(g.a)(this,T)[T]([+f+a.length,+s],{keys:d,data:r,columns:n,style:u});c&&c(h-1)}},{key:"worksheet",get:function(){return Object(g.a)(this,C)[C]}}]),t}(),N=function(t){Object(h.a)(n,t);var e=Object(p.a)(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(s.a)(n,[{key:"download",value:function(){var t=Object(u.a)(a.a.mark((function t(e){var n;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.xlsx.writeBuffer();case 2:n=t.sent,Object(v.saveAs)(new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"addWorksheet",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Sheet1",e=arguments.length>1?arguments[1]:void 0;return new R(Object(f.a)(Object(d.a)(n.prototype),"addWorksheet",this).call(this,t,e))}},{key:"getWorksheet",value:function(t){return new R(Object(f.a)(Object(d.a)(n.prototype),"getWorksheet",this).call(this,t))}}],[{key:"create",value:function(){var t=new y.Workbook;return t.creator="GDT QLCB",t.lastModifiedBy="GDT QLCB",t.created=new Date,t.modified=new Date,t.lastPrinted=new Date,t}}]),n}(y.Workbook);function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return{style:{alignment:{horizontal:"center"}},rows:[[{value:"T\u1ec8NH \u1ee6Y B\xccNH \u0110\u1ecaNH",colspan:t}],[{value:"TR\u01af\u1edcNG CH\xcdNH TR\u1eca",colspan:t,style:{font:{bold:!0}}}]]}}function G(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return{style:{alignment:{horizontal:"center"},font:{bold:!0,underline:"single"}},rows:[[{value:"\u0110\u1ea2NG C\u1ed8NG S\u1ea2N VI\u1ec6T NAM",colspan:t}]]}}var X=n(42),D=n(91),S=n(237),F=n(59),E=n(238),P=n(33),x=/(\w)\1*|''|'(''|[^'])+('|$)|./g,M=/^'([^]*?)'?$/,B=/''/g,L=/[a-zA-Z]/;function V(t,e){Object(P.a)(2,arguments);var n=String(e),r=Object(X.a)(t);if(!Object(F.a)(r))throw new RangeError("Invalid time value");var a=Object(S.a)(r),o=Object(E.a)(r,a),l=n.match(x).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return W(t);var n=D.a[e];if(n)return n(o,t,null,{});if(e.match(L))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return l}function W(t){return t.match(M)[1].replace(B,"'")}function z(t,e){return H.apply(this,arguments)}function H(){return(H=Object(u.a)(a.a.mark((function t(e,n){var r,o,l,u,i,s,f,d,h,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.tuNam,o=e.denNam,l=e.isTapThe,u=e.headerKetQua,i=e.data,s=new N,f=s.addWorksheet("Thi \u0111ua - Khen th\u01b0\u1edfng"),d=o-r+4,f.renderArrayRowGroup([1,1],I(2)),f.renderArrayRowGroup([1,3],G(d-2)),f.renderArrayRowGroup([3,d-4],{style:{font:{italic:!0}},rows:[[{colspan:5,value:"B\xecnh \u0110\u1ecbnh, ".concat(V(new Date,"'ng\xe0y 'dd' th\xe1ng 'MM' n\u0103m 'yyyy"))}]]}),f.renderArrayRowGroup([4,1],{style:{font:{bold:!0},alignment:{horizontal:"center"}},rows:[[{value:"T\u1ed5ng h\u1ee3p Thi \u0111ua - Khen th\u01b0\u1edfng ".concat(r," - ").concat(o).toUpperCase(),colspan:d}],[{value:l?"T\u1eadp th\u1ec3":"C\xe1 nh\xe2n",colspan:d}]]}),h=Array.from(Array(o-r+1).keys()).map((function(t){return t+r})),f.renderArrayRowGroup([6,1],K({tuNam:r,denNam:o,isTapThe:l,headerKetQua:u})),p=i.map((function(t){return U(t,h)})).flat(),f.renderArrayRowGroup([8,1],{style:c.b,rows:p}),f.worksheet.getColumn(2).width=30,f.worksheet.getColumn(d).width=20,s.download(n);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function K(t){var e=t.tuNam,n=t.denNam,r=t.isTapThe,a=t.headerKetQua,o=function(t){return Array(n-e+1).fill(null).map((function(n,r){return{rowspan:t,value:"".concat(e+r)}}))};return{style:c.d,rows:[[{rowspan:2,value:"TT"},{rowspan:2,value:r?"\u0110\u01a1n v\u1ecb":"H\u1ecd v\xe0 t\xean"}].concat(Object(l.a)(a?[{colspan:n-e+1,value:"K\u1ebft qu\u1ea3"}].concat(Object(l.a)(Array(n-e).fill(null))):o(2)),[{rowspan:2,value:"D\u1ef1 ki\u1ebfn khen cao "+n}]),[null,null].concat(Object(l.a)(a?o(1):o(1).map((function(){return null}))),[null])]}}function Q(t,e){var n=t.name,r=t.details,a=t.stt,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=Array.from(new Set(r.map((function(t){return t.Uuid})))),c={font:{bold:o}};return u.map((function(t,o){return[0===o?{value:a,rowspan:u.length,style:c}:null,0===o?{value:n,rowspan:u.length,style:c}:null].concat(Object(l.a)(e.map((function(e){var n=r.find((function(n){return n.Uuid===t&&n.Nam===e}));return(null===n||void 0===n?void 0:n.Code)||null}))),[null])}))}function U(t,e){var n=t.name,r=t.stt,a=t.details,u=void 0===a?[]:a,c=t.children,i=void 0===c?[]:c;return 0===i.length&&u.length>0?Q(t,e,!0):i.length>0?Array.of.apply(Array,[Array.of(r,{value:n,colspan:e.length+(r?2:3),style:{font:{bold:!0}}}).filter((function(t){return t}))].concat(Object(l.a)(i.map((function(t,n){return Q(Object(o.a)(Object(o.a)({},t),{},{stt:n+1}),e)})).flat()))):[]}function _(t){if("number"!==typeof t)return"";for(var e=String(+t).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",a=3;a--;)r=(n[+e.pop()+10*a]||"")+r;return Array(+e.join("")+1).join("M")+r}},872:function(t,e,n){"use strict";function r(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}n.d(e,"a",(function(){return r}))},873:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=0;function a(t){return"__private_"+r+++"_"+t}},910:function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return i})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return f}));var r=n(809),a=n.n(r),o=Array.of(" kh\xf4ng "," m\u1ed9t "," hai "," ba "," b\u1ed1n "," n\u0103m "," s\xe1u "," b\u1ea3y "," t\xe1m "," ch\xedn "),l=Array.of(""," ngh\xecn"," tri\u1ec7u"," t\u1ef7"," ngh\xecn t\u1ef7"," tri\u1ec7u t\u1ef7"),u={top:{style:"thin",color:{argb:"FF808080"}},left:{style:"thin",color:{argb:"FF808080"}},bottom:{style:"thin",color:{argb:"FF808080"}},right:{style:"thin",color:{argb:"FF808080"}}},c={numFmt:"#,##0",font:{name:"Times New Roman",family:4,size:12,color:{argb:"FF000000"}},alignment:{vertical:"middle",wrapText:!0},fill:{type:"pattern",pattern:"none"}},i={border:u},s=a()({},i,{font:{bold:!0},alignment:{horizontal:"center",wrapText:!0},border:u}),f="ABCDEFGHIJKLMNOPQRSTUVWXYZ"}}]);