(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.Index={},o.Vue))})(this,function(o,e){"use strict";const m={key:0,class:"mask"},u={class:"loader"},_={class:"loading-2"},l=((s,a)=>{const c=s.__vccOpts||s;for(const[t,n]of a)c[t]=n;return c})(e.defineComponent({__name:"LoadingMask",props:{text:{type:[String,Number],default:""},maskVisable:{type:Boolean,default:!1},onDestroy:{type:Function,default:()=>{}}},setup(s,{expose:a}){const c=e.ref(""),t=e.ref(!1),n=s,{onDestroy:p}=n;e.watch(()=>n.text,(d,r)=>{c.value=d},{immediate:!0}),e.watch(()=>n.maskVisable,(d,r)=>{t.value=d},{immediate:!0});const f=()=>{t.value=!0},i=()=>{t.value=!1},y=d=>{c.value=d};return e.onUnmounted(()=>{p()}),a({show:f,close:i,setText:y}),(d,r)=>e.unref(t)?(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",u,[r[0]||(r[0]=e.createElementVNode("div",{class:"loading-1"},null,-1)),e.createElementVNode("div",_,e.toDisplayString(e.unref(c)),1)])])):e.createCommentVNode("",!0)}}),[["__scopeId","data-v-2730f429"]]),g=s=>{const a=document.createElement("div"),c={...s,onDestroy:()=>{e.render(null,a)}},t=e.createVNode(l,c);e.render(t,a),document.body.appendChild(a);const n=t.component;return{vnode:t,vm:n,handler:{close:()=>{n.exposed.close()},show:()=>{n.exposed.show()},setText:i=>{n.exposed.setText(i)}},props:t.component.props}},k=s=>g(s).handler,x=l,h=k;o.LoadingMask=x,o.LoadingMaskIns=h,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});