{"version":3,"file":"file-download-42578694.js","sources":["../../../frontend-v2/node_modules/js-file-download/file-download.js"],"sourcesContent":["module.exports = function(data, filename, mime, bom) {\n var blobData = (typeof bom !== 'undefined') ? [bom, data] : [data]\n var blob = new Blob(blobData, {type: mime || 'application/octet-stream'});\n if (typeof window.navigator.msSaveBlob !== 'undefined') {\n // IE workaround for \"HTML7007: One or more blob URLs were\n // revoked by closing the blob for which they were created.\n // These URLs will no longer resolve as the data backing\n // the URL has been freed.\"\n window.navigator.msSaveBlob(blob, filename);\n }\n else {\n var blobURL = (window.URL && window.URL.createObjectURL) ? window.URL.createObjectURL(blob) : window.webkitURL.createObjectURL(blob);\n var tempLink = document.createElement('a');\n tempLink.style.display = 'none';\n tempLink.href = blobURL;\n tempLink.setAttribute('download', filename);\n\n // Safari thinks _blank anchor are pop ups. We only want to set _blank\n // target if the browser does not support the HTML5 download attribute.\n // This allows you to download files in desktop safari if pop up blocking\n // is enabled.\n if (typeof tempLink.download === 'undefined') {\n tempLink.setAttribute('target', '_blank');\n }\n\n document.body.appendChild(tempLink);\n tempLink.click();\n\n // Fixes \"webkit blob resource error 1\"\n setTimeout(function() {\n document.body.removeChild(tempLink);\n window.URL.revokeObjectURL(blobURL);\n }, 200)\n }\n}\n"],"names":["fileDownload","data","filename","mime","bom","blobData","blob","blobURL","tempLink"],"mappings":"6CAAAA,EAAiB,SAASC,EAAMC,EAAUC,EAAMC,EAAK,CACjD,IAAIC,EAAY,OAAOD,EAAQ,IAAe,CAACA,EAAKH,CAAI,EAAI,CAACA,CAAI,EAC7DK,EAAO,IAAI,KAAKD,EAAU,CAAC,KAAMF,GAAQ,0BAA0B,CAAC,EACxE,GAAI,OAAO,OAAO,UAAU,WAAe,IAKvC,OAAO,UAAU,WAAWG,EAAMJ,CAAQ,MAEzC,CACD,IAAIK,EAAW,OAAO,KAAO,OAAO,IAAI,gBAAmB,OAAO,IAAI,gBAAgBD,CAAI,EAAI,OAAO,UAAU,gBAAgBA,CAAI,EAC/HE,EAAW,SAAS,cAAc,GAAG,EACzCA,EAAS,MAAM,QAAU,OACzBA,EAAS,KAAOD,EAChBC,EAAS,aAAa,WAAYN,CAAQ,EAMtC,OAAOM,EAAS,SAAa,KAC7BA,EAAS,aAAa,SAAU,QAAQ,EAG5C,SAAS,KAAK,YAAYA,CAAQ,EAClCA,EAAS,MAAK,EAGd,WAAW,UAAW,CAClB,SAAS,KAAK,YAAYA,CAAQ,EAClC,OAAO,IAAI,gBAAgBD,CAAO,CACrC,EAAE,GAAG,CACT,CACL","x_google_ignoreList":[0]}