"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./Modal.js"),n=require("./confirm.js"),l=require("./destroyFns.js"),f=require("./useModal/index.js");function r(u){return n.default(n.withWarn(u))}t.default.useModal=f.default;t.default.info=function(e){return n.default(n.withInfo(e))};t.default.success=function(e){return n.default(n.withSuccess(e))};t.default.error=function(e){return n.default(n.withError(e))};t.default.warning=r;t.default.warn=r;t.default.confirm=function(e){return n.default(n.withConfirm(e))};t.default.addDestroyFn=u=>{l.default.push(u)};t.default.delDestroyFn=u=>{for(let e=l.default.length-1;e>=0;e--)l.default[e]===u&&l.default.splice(e,1)};t.default.destroyAll=function(){for(;l.default.length;){const e=l.default.pop();e&&e()}};t.default.install=function(u){return u.component(t.default.name,t.default),u};exports.default=t.default;
