"use strict";const e=require("vue"),i=require("./base-iCmnU-fv.js"),p=require("./Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js"),f={class:"loadScreen-container"},h={class:"loadScreen-main"},y={key:0,class:"loadScreen-text"},C=e.defineComponent({name:"ClLoadScreen",__name:"Index",setup(v,{expose:d}){const c=e.ref(null),o=e.reactive({text:""});let n=null;const s=()=>document.querySelector("body"),a=()=>document.querySelector("body>.panel-loadScreen"),l=()=>{const t=a();return!i.CommonBase.isUndefined(t)},_=()=>{l()?n&&(clearTimeout(n),n=null):s().appendChild(c.value)},u=t=>{l()&&(n=setTimeout(()=>{const r=a();r&&s().removeChild(r)},t))},m=t=>{_(),o.text=i.CommonBase.isEmpty(t)?"":t};return d({show:t=>{m(t||"")},hide:(t=0)=>{u(t)}}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:c,class:"panel-loadScreen"},[e.createElementVNode("div",f,[e.createElementVNode("div",h,[o.text.length>0?(e.openBlock(),e.createElementBlock("span",y,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",null,[e.createVNode(p._sfc_main)])])])],512))}});exports._sfc_main=C;
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js.map
