\n\n\n\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Report.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Report.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Report.vue?vue&type=template&id=77541f16&\"\nimport script from \"./Report.vue?vue&type=script&lang=js&\"\nexport * from \"./Report.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Report.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export const formatNumber = (num) =>\n num.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1,\");\n\nexport const toNumber = (str = \"\") => Number(str.replace(/[^0-9.-]+/g, \"\"));\n","var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar download = createCommonjsModule(function (module, exports) {\n//download.js v4.2, by dandavis; 2008-2016. [MIT] see http://danml.com/download.html for tests/usage\n// v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime\n// v2 added named files via a[download], msSaveBlob, IE (10+) support, and window.URL support for larger+faster saves than dataURLs\n// v3 added dataURL and Blob Input, bind-toggle arity, and legacy dataURL fallback was improved with force-download mime and base64 support. 3.1 improved safari handling.\n// v4 adds AMD/UMD, commonJS, and plain browser support\n// v4.1 adds url download capability via solo URL argument (same domain/CORS only)\n// v4.2 adds semantic variable names, long (over 2MB) dataURL support, and hidden by default temp anchors\n// https://github.com/rndme/download\n\n(function (root, factory) {\n\t{\n\t\t// Node. Does not work with strict CommonJS, but\n\t\t// only CommonJS-like environments that support module.exports,\n\t\t// like Node.\n\t\tmodule.exports = factory();\n\t}\n}(commonjsGlobal, function () {\n\n\treturn function download(data, strFileName, strMimeType) {\n\n\t\tvar self = window, // this script is only for browsers anyway...\n\t\t\tdefaultMime = \"application/octet-stream\", // this default mime also triggers iframe downloads\n\t\t\tmimeType = strMimeType || defaultMime,\n\t\t\tpayload = data,\n\t\t\turl = !strFileName && !strMimeType && payload,\n\t\t\tanchor = document.createElement(\"a\"),\n\t\t\ttoString = function(a){return String(a);},\n\t\t\tmyBlob = (self.Blob || self.MozBlob || self.WebKitBlob || toString),\n\t\t\tfileName = strFileName || \"download\",\n\t\t\tblob,\n\t\t\treader;\n\t\t\tmyBlob= myBlob.call ? myBlob.bind(self) : Blob ;\n\t \n\t\tif(String(this)===\"true\"){ //reverse arguments, allowing download.bind(true, \"text/xml\", \"export.xml\") to act as a callback\n\t\t\tpayload=[payload, mimeType];\n\t\t\tmimeType=payload[0];\n\t\t\tpayload=payload[1];\n\t\t}\n\n\n\t\tif(url && url.length< 2048){ // if no filename and no mime, assume a url was passed as the only argument\n\t\t\tfileName = url.split(\"/\").pop().split(\"?\")[0];\n\t\t\tanchor.href = url; // assign href prop to temp anchor\n\t\t \tif(anchor.href.indexOf(url) !== -1){ // if the browser determines that it's a potentially valid url path:\n \t\tvar ajax=new XMLHttpRequest();\n \t\tajax.open( \"GET\", url, true);\n \t\tajax.responseType = 'blob';\n \t\tajax.onload= function(e){ \n\t\t\t\t download(e.target.response, fileName, defaultMime);\n\t\t\t\t};\n \t\tsetTimeout(function(){ ajax.send();}, 0); // allows setting custom ajax headers using the return:\n\t\t\t return ajax;\n\t\t\t} // end if valid url?\n\t\t} // end if url?\n\n\n\t\t//go ahead and download dataURLs right away\n\t\tif(/^data:([\\w+-]+\\/[\\w+.-]+)?[,;]/.test(payload)){\n\t\t\n\t\t\tif(payload.length > (1024*1024*1.999) && myBlob !== toString ){\n\t\t\t\tpayload=dataUrlToBlob(payload);\n\t\t\t\tmimeType=payload.type || defaultMime;\n\t\t\t}else {\t\t\t\n\t\t\t\treturn navigator.msSaveBlob ? // IE10 can't do a[download], only Blobs:\n\t\t\t\t\tnavigator.msSaveBlob(dataUrlToBlob(payload), fileName) :\n\t\t\t\t\tsaver(payload) ; // everyone else can save dataURLs un-processed\n\t\t\t}\n\t\t\t\n\t\t}else {//not data url, is it a string with special needs?\n\t\t\tif(/([\\x80-\\xff])/.test(payload)){\t\t\t \n\t\t\t\tvar i=0, tempUiArr= new Uint8Array(payload.length), mx=tempUiArr.length;\n\t\t\t\tfor(i;i null,\n },\n // this prop is used to fix the problem with other components that use the\n // variable fields, like vee-validate. exportFields works exactly like fields\n exportFields: {\n type: Object,\n default: () => null,\n },\n // Use as fallback when the row has no field values\n defaultValue: {\n type: String,\n required: false,\n default: \"\",\n },\n // Title(s) for the data, could be a string or an array of strings (multiple titles)\n header: {\n default: null,\n },\n // Footer(s) for the data, could be a string or an array of strings (multiple footers)\n footer: {\n default: null,\n },\n // filename to export\n name: {\n type: String,\n default: \"data.xls\",\n },\n fetch: {\n type: Function,\n },\n meta: {\n type: Array,\n default: () => [],\n },\n worksheet: {\n type: String,\n default: \"Sheet1\",\n },\n //event before generate was called\n beforeGenerate: {\n type: Function,\n },\n //event before download pops up\n beforeFinish: {\n type: Function,\n },\n // Determine if CSV Data should be escaped\n escapeCsv: {\n type: Boolean,\n default: true,\n },\n // long number stringify\n stringifyLongNum: {\n type: Boolean,\n default: false,\n },\n },\n computed: {\n // unique identifier\n idName() {\n var now = new Date().getTime();\n return \"export_\" + now;\n },\n\n downloadFields() {\n if (this.fields) return this.fields;\n\n if (this.exportFields) return this.exportFields;\n },\n },\n methods: {\n async generate() {\n if (typeof this.beforeGenerate === \"function\") {\n await this.beforeGenerate();\n }\n let data = this.data;\n if (typeof this.fetch === \"function\" || !data) data = await this.fetch();\n\n if (!data || !data.length) {\n return;\n }\n\n let json = this.getProcessedJson(data, this.downloadFields);\n if (this.type === \"html\") {\n // this is mainly for testing\n return this.export(\n this.jsonToXLS(json),\n this.name.replace(\".xls\", \".html\"),\n \"text/html\"\n );\n } else if (this.type === \"csv\") {\n return this.export(\n this.jsonToCSV(json),\n this.name.replace(\".xls\", \".csv\"),\n \"application/csv\"\n );\n }\n return this.export(\n this.jsonToXLS(json),\n this.name,\n \"application/vnd.ms-excel\"\n );\n },\n /*\n\t\tUse downloadjs to generate the download link\n\t\t*/\n export: async function (data, filename, mime) {\n let blob = this.base64ToBlob(data, mime);\n if (typeof this.beforeFinish === \"function\") await this.beforeFinish();\n download(blob, filename, mime);\n },\n /*\n\t\tjsonToXLS\n\t\t---------------\n\t\tTransform json data into an xml document with MS Excel format, sadly\n\t\tit shows a prompt when it opens, that is a default behavior for\n\t\tMicrosoft office and cannot be avoided. It's recommended to use CSV format instead.\n\t\t*/\n jsonToXLS(data) {\n let xlsTemp =\n '
${table}
';\n let xlsData = \"\";\n const colspan = Object.keys(data[0]).length;\n let _self = this;\n\n //Header\n const header = this.header || this.$attrs.title;\n if (header) {\n xlsData += this.parseExtraData(\n header,\n '