download.js
1 lines
| 1 | !function(e,o,t,r,n){var i="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},u="function"==typeof i[r]&&i[r],c=u.i||{},d=u.cache||{},l="u">typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(o,t){if(!d[o]){if(!e[o]){if(n[o])return n[o];var c="function"==typeof i[r]&&i[r];if(!t&&c)return c(o,!0);if(u)return u(o,!0);if(l&&"string"==typeof o)return l(o);var a=Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}s.resolve=function(t){var r=e[o][1][t];return null!=r?r:t},s.cache={};var p=d[o]=new f.Module(o);e[o][0].call(p.exports,s,p,p.exports,i)}return d[o].exports;function s(e){var o=s.resolve(e);if(!1===o)return{};if(Array.isArray(o)){var t={__esModule:!0};return o.forEach(function(e){var o=e[0],r=e[1],n=e[2]||e[0],i=f(r);"*"===o?Object.keys(i).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}):"*"===n?Object.defineProperty(t,o,{enumerable:!0,value:i}):Object.defineProperty(t,o,{enumerable:!0,get:function(){return"default"===n?i.__esModule?i.default:i:i[n]}})}),t}return f(o)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.require=l,this.exports={}},f.modules=e,f.cache=d,f.parent=u,f.distDir=void 0,f.publicUrl=void 0,f.devServer=void 0,f.i=c,f.register=function(o,t){e[o]=[function(e,o){o.exports=t},{}]},Object.defineProperty(f,"root",{get:function(){return i[r]}}),i[r]=f;for(var a=0;a<o.length;a++)f(o[a]);if(t){var p=f(t);"object"==typeof exports&&"u">typeof module?module.exports=p:"function"==typeof define&&define.amd&&define(function(){return p})}}({ce5U5:[function(e,o,t,r){o.exports={downloadCSV:function(e,o){let t=new Blob(["\uFEFF"+o],{type:"text/csv;charset=utf-8"}),r=window.document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)},downloadJSON:function(e,o){let t=new Blob([o],{type:"application/json"}),r=window.document.createElement("a");r.href=window.URL.createObjectURL(t),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}},{}]},["ce5U5"],"ce5U5","parcelRequirec571",{}); |