import { Modal as e } from "@aplus-frontend/antdv";
import { formatFileNameAndDownloadFile as a } from "@aplus-frontend/utils";
async function c(o) {
  const t = await o?.();
  return Object.prototype.toString.call(t?.data) !== "[object Blob]" || a(t).catch((r) => {
    e.error({
      title: r,
      centered: !0
    });
  }), t;
}
export {
  c as handleExportDownload
};
