download.js
1 lines
| 1 | !function(e,n,o,t,i){var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},d="function"==typeof r[t]&&r[t],f=d.cache||{},u="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function l(n,o){if(!f[n]){if(!e[n]){var i="function"==typeof r[t]&&r[t];if(!o&&i)return i(n,!0);if(d)return d(n,!0);if(u&&"string"==typeof n)return u(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(o){var t=e[n][1][o];return null!=t?t:o},p.cache={};var a=f[n]=new l.Module(n);e[n][0].call(a.exports,p,a,a.exports,this)}return f[n].exports;function p(e){var n=p.resolve(e);return!1===n?{}:l(n)}}l.isParcelRequire=!0,l.Module=function(e){this.id=e,this.bundle=l,this.exports={}},l.modules=e,l.cache=f,l.parent=d,l.register=function(n,o){e[n]=[function(e,n){n.exports=o},{}]},Object.defineProperty(l,"root",{get:function(){return r[t]}}),r[t]=l;for(var c=0;c<n.length;c++)l(n[c]);if(o){var a=l(o);"object"==typeof exports&&"undefined"!=typeof module?module.exports=a:"function"==typeof define&&define.amd&&define((function(){return a}))}}({filEL:[function(e,n,o){n.exports={downloadCSV:function(e,n){var o=new Blob([n],{type:"text/csv"}),t=window.document.createElement("a");t.href=window.URL.createObjectURL(o),t.download=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)},downloadJSON:function(e,n){var o=new Blob([n],{type:"application/json"}),t=window.document.createElement("a");t.href=window.URL.createObjectURL(o),t.download=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}}},{}]},["filEL"],"filEL","parcelRequirec571"); |