You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
628B

  1. var d=(a,l,t)=>new Promise((n,s)=>{var i=e=>{try{o(t.next(e))}catch(c){s(c)}},r=e=>{try{o(t.throw(e))}catch(c){s(c)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,r);o((t=t.apply(a,l)).next())});import{r as u}from"./index.948dee2d.js";function m(){const a=u(!1);return{exportLoading:a,exportData:(s,...i)=>d(this,[s,...i],function*(t,n=a){n.value=!0;try{const r=yield t(),o=URL.createObjectURL(r),e=document.createElement("a");e.download=r.filename,e.style.display="none",e.href=o,document.body.appendChild(e),e.click(),document.body.removeChild(e),window.URL.revokeObjectURL(o)}finally{n.value=!1}})}}export{m as u};