download.js
1 lines
| 1 | !function(e,n,o,t,r){var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},i="function"==typeof d[t]&&d[t],u=i.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(n,o){if(!u[n]){if(!e[n]){var r="function"==typeof d[t]&&d[t];if(!o&&r)return r(n,!0);if(i)return i(n,!0);if(c&&"string"==typeof n)return c(n);var l=new Error("Cannot find module '"+n+"'");throw l.code="MODULE_NOT_FOUND",l}p.resolve=function(o){var t=e[n][1][o];return null!=t?t:o},p.cache={};var a=u[n]=new f.Module(n);e[n][0].call(a.exports,p,a,a.exports,this)}return u[n].exports;function p(e){var n=p.resolve(e);return!1===n?{}:f(n)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=u,f.parent=i,f.register=function(n,o){e[n]=[function(e,n){n.exports=o},{}]},Object.defineProperty(f,"root",{get:function(){return d[t]}}),d[t]=f;for(var l=0;l<n.length;l++)f(n[l]);if(o){var a=f(o);"object"==typeof exports&&"undefined"!=typeof module?module.exports=a:"function"==typeof define&&define.amd&&define((function(){return a}))}}({ce5U5:[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)}}},{}]},["ce5U5"],"ce5U5","parcelRequirec571"); |