import { defineComponent as h, ref as y, reactive as C, openBlock as i, createElementBlock as d, createElementVNode as r, toDisplayString as S, createCommentVNode as x, createVNode as v } from "vue";
import { C as m } from "./base-PQGakkrl.js";
import { _ as E } from "./Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js";
const k = { class: "loadScreen-container" }, B = { class: "loadScreen-main" }, T = {
  key: 0,
  class: "loadScreen-text"
}, D = /* @__PURE__ */ h({
  name: "ClLoadScreen",
  __name: "Index",
  setup(g, { expose: _ }) {
    const c = y(null), o = C({
      text: ""
    });
    let t = null;
    const s = () => document.querySelector("body"), a = () => document.querySelector("body>.panel-loadScreen"), l = () => {
      const e = a();
      return !m.isUndefined(e);
    }, p = () => {
      l() ? t && (clearTimeout(t), t = null) : s().appendChild(c.value);
    }, u = (e) => {
      l() && (t = setTimeout(() => {
        const n = a();
        n && s().removeChild(n);
      }, e));
    }, f = (e) => {
      p(), o.text = m.isEmpty(e) ? "" : e;
    };
    return _({
      show: (e) => {
        f(e || "");
      },
      hide: (e = 0) => {
        u(e);
      }
    }), (e, n) => (i(), d("div", {
      ref_key: "refElTopParent",
      ref: c,
      class: "panel-loadScreen"
    }, [
      r("div", k, [
        r("div", B, [
          o.text.length > 0 ? (i(), d("span", T, S(o.text), 1)) : x("", !0),
          r("span", null, [
            v(E)
          ])
        ])
      ])
    ], 512));
  }
});
export {
  D as _
};
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js.map
