x-essential-lib 0.8.4 → 0.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +268 -266
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-c6a59757]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { computed as w, provide as T, inject as A, ref as v, getCurrentInstance as _e, hasInjectionContext as ie, watch as K, getCurrentScope as je, onScopeDispose as Re, shallowRef as ee, watchEffect as Ve, toValue as q, onMounted as E, unref as z, onBeforeUnmount as $, onBeforeMount as Ae, defineComponent as B, resolveComponent as x, createBlock as V, openBlock as L, withKeys as Z, withModifiers as H, isRef as Q, withCtx as y, createVNode as C, createTextVNode as O, toDisplayString as R, Transition as qe, createElementBlock as te, createCommentVNode as oe, normalizeStyle as de, createElementVNode as h, Fragment as Oe, renderList as Ie, useTemplateRef as Te } from "vue";
2
+ import { computed as x, provide as T, inject as A, ref as g, getCurrentInstance as _e, hasInjectionContext as ie, watch as K, getCurrentScope as je, onScopeDispose as Re, shallowRef as ee, watchEffect as Ve, toValue as q, onMounted as B, unref as z, onBeforeUnmount as $, onBeforeMount as Ae, defineComponent as E, resolveComponent as b, createBlock as V, openBlock as D, withKeys as Z, withModifiers as H, isRef as Q, withCtx as w, createVNode as L, createTextVNode as O, toDisplayString as R, Transition as qe, createElementBlock as te, createCommentVNode as oe, normalizeStyle as de, createElementVNode as y, Fragment as Oe, renderList as Ie, useTemplateRef as Te } from "vue";
3
3
  import { useI18n as ne } from "vue-i18n";
4
- import { useTheme as fe, useDisplay as Ee } from "vuetify";
5
- import { useRouter as ge, useRoute as Be } from "vue-router";
4
+ import { useTheme as fe, useDisplay as Be } from "vuetify";
5
+ import { useRouter as ge, useRoute as Ee } from "vue-router";
6
6
  import We from "axios";
7
7
  function Ue() {
8
- const e = fe(), t = w(() => e.global.current.value.colors.primary), a = w(() => e.global.current.value.colors.secondary), o = w(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), r = w(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = w(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = w(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = w(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
8
+ const e = fe(), t = x(() => e.global.current.value.colors.primary), a = x(() => e.global.current.value.colors.secondary), o = x(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = x(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = x(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = x(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = x(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
9
9
  return {
10
10
  primaryColor: t,
11
11
  secondaryColor: a,
12
12
  backgroundColor0: o,
13
- backgroundColor1: r,
13
+ backgroundColor1: n,
14
14
  backgroundColor2: l,
15
15
  highlightColor: c,
16
- borderColor: n
16
+ borderColor: r
17
17
  };
18
18
  }
19
19
  /*! js-cookie v3.0.5 | MIT */
@@ -37,47 +37,47 @@ var $e = {
37
37
  }
38
38
  };
39
39
  function ae(e, t) {
40
- function a(r, l, c) {
40
+ function a(n, l, c) {
41
41
  if (!(typeof document > "u")) {
42
- c = N({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
43
- var n = "";
42
+ c = N({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
43
+ var r = "";
44
44
  for (var u in c)
45
- c[u] && (n += "; " + u, c[u] !== !0 && (n += "=" + c[u].split(";")[0]));
46
- return document.cookie = r + "=" + e.write(l, r) + n;
45
+ c[u] && (r += "; " + u, c[u] !== !0 && (r += "=" + c[u].split(";")[0]));
46
+ return document.cookie = n + "=" + e.write(l, n) + r;
47
47
  }
48
48
  }
49
- function o(r) {
50
- if (!(typeof document > "u" || arguments.length && !r)) {
51
- for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, n = 0; n < l.length; n++) {
52
- var u = l[n].split("="), s = u.slice(1).join("=");
49
+ function o(n) {
50
+ if (!(typeof document > "u" || arguments.length && !n)) {
51
+ for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, r = 0; r < l.length; r++) {
52
+ var u = l[r].split("="), s = u.slice(1).join("=");
53
53
  try {
54
- var d = decodeURIComponent(u[0]);
55
- if (c[d] = e.read(s, d), r === d)
54
+ var i = decodeURIComponent(u[0]);
55
+ if (c[i] = e.read(s, i), n === i)
56
56
  break;
57
57
  } catch {
58
58
  }
59
59
  }
60
- return r ? c[r] : c;
60
+ return n ? c[n] : c;
61
61
  }
62
62
  }
63
63
  return Object.create(
64
64
  {
65
65
  set: a,
66
66
  get: o,
67
- remove: function(r, l) {
67
+ remove: function(n, l) {
68
68
  a(
69
- r,
69
+ n,
70
70
  "",
71
71
  N({}, l, {
72
72
  expires: -1
73
73
  })
74
74
  );
75
75
  },
76
- withAttributes: function(r) {
77
- return ae(this.converter, N({}, this.attributes, r));
76
+ withAttributes: function(n) {
77
+ return ae(this.converter, N({}, this.attributes, n));
78
78
  },
79
- withConverter: function(r) {
80
- return ae(N({}, this.converter, r), this.attributes);
79
+ withConverter: function(n) {
80
+ return ae(N({}, this.converter, n), this.attributes);
81
81
  }
82
82
  },
83
83
  {
@@ -112,9 +112,9 @@ function ze(e) {
112
112
  return e.data;
113
113
  }
114
114
  function Fe(e, t) {
115
- var r, l;
115
+ var n, l;
116
116
  const o = e.response;
117
- return o && (o.status === 401 && Xe(), (r = o.data) != null && r.message ? t((l = o.data) == null ? void 0 : l.message) : t({
117
+ return o && (o.status === 401 && Xe(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
118
118
  code: o.status,
119
119
  message: o.statusText
120
120
  })), Promise.reject(e);
@@ -131,10 +131,10 @@ function Ne(e) {
131
131
  o && (a ? o.splice(o.indexOf(a) >>> 0, 1) : e.set(t, []));
132
132
  }, emit: function(t, a) {
133
133
  var o = e.get(t);
134
- o && o.slice().map(function(r) {
135
- r(a);
136
- }), (o = e.get("*")) && o.slice().map(function(r) {
137
- r(t, a);
134
+ o && o.slice().map(function(n) {
135
+ n(a);
136
+ }), (o = e.get("*")) && o.slice().map(function(n) {
137
+ n(t, a);
138
138
  });
139
139
  } };
140
140
  }
@@ -148,9 +148,9 @@ async function Yt(e) {
148
148
  }
149
149
  async function re(e, t, a) {
150
150
  const o = Date.now();
151
- return new Promise((r) => {
151
+ return new Promise((n) => {
152
152
  const l = async () => {
153
- e() ? r(!0) : t && Date.now() - o > t ? r(!1) : setTimeout(l, a ?? 30);
153
+ e() ? n(!0) : t && Date.now() - o > t ? n(!1) : setTimeout(l, a ?? 30);
154
154
  };
155
155
  l();
156
156
  });
@@ -176,8 +176,8 @@ async function Pt(e) {
176
176
  let t = !1, a;
177
177
  const o = (l) => {
178
178
  a = l, t = !0;
179
- }, r = me();
180
- return p.on("confirmDlgResult" + r, o), p.emit("confirmDlg", { ...e, seq: r }), await re(() => t), p.off("confirmDlgResult" + r, o), a;
179
+ }, n = me();
180
+ return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await re(() => t), p.off("confirmDlgResult" + n, o), a;
181
181
  }
182
182
  async function ea(e) {
183
183
  if (!ve())
@@ -185,8 +185,8 @@ async function ea(e) {
185
185
  let t = !1, a;
186
186
  const o = (l) => {
187
187
  a = l, t = !0;
188
- }, r = me();
189
- return p.on("promptDlgResult" + r, o), p.emit("promptDlg", { ...e, seq: r }), await re(() => t), p.off("promptDlgResult" + r, o), a;
188
+ }, n = me();
189
+ return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await re(() => t), p.off("promptDlgResult" + n, o), a;
190
190
  }
191
191
  function ta(e) {
192
192
  p.emit("openWaitDlg", { text: e });
@@ -211,11 +211,11 @@ function se(e, t) {
211
211
  if (!e)
212
212
  return !1;
213
213
  let a = e;
214
- return Object.keys(a).length <= 0 || (t.split("/").forEach((r) => {
214
+ return Object.keys(a).length <= 0 || (t.split("/").forEach((n) => {
215
215
  if (Object.keys(a).length <= 0)
216
216
  return !0;
217
- if (a[r])
218
- a = a[r];
217
+ if (a[n])
218
+ a = a[n];
219
219
  else
220
220
  return !1;
221
221
  }), Object.keys(a).length <= 0);
@@ -371,27 +371,27 @@ const lt = [
371
371
  ];
372
372
  function G(e) {
373
373
  let t, a = 0;
374
- const o = e.split("/").filter((r) => r.trim() !== "");
375
- return lt.forEach((r) => {
376
- const l = r.path.split("/").filter((n) => n.trim() !== "");
374
+ const o = e.split("/").filter((n) => n.trim() !== "");
375
+ return lt.forEach((n) => {
376
+ const l = n.path.split("/").filter((r) => r.trim() !== "");
377
377
  let c = 0;
378
- for (let n = 0; n < o.length && !(n >= l.length || o[n] !== l[n]); n++)
378
+ for (let r = 0; r < o.length && !(r >= l.length || o[r] !== l[r]); r++)
379
379
  c++;
380
- c > 0 && c > a && (t = r, a = c);
380
+ c > 0 && c > a && (t = n, a = c);
381
381
  }), t;
382
382
  }
383
- const J = v("");
383
+ const J = g("");
384
384
  function S(e, t, a) {
385
385
  t === "/" && (t = a);
386
- const o = G(e), r = G(t);
386
+ const o = G(e), n = G(t);
387
387
  if (!o) {
388
388
  console.assert(!1);
389
389
  return;
390
390
  }
391
- if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !r)
391
+ if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !n)
392
392
  return;
393
- const l = o.app === r.app, c = o.path === r.path, n = o.level >= r.level;
394
- l ? c ? J.value = "" : J.value = n ? "inner-left" : "inner-right" : (J.value = "", Ze(o.app, n));
393
+ const l = o.app === n.app, c = o.path === n.path, r = o.level >= n.level;
394
+ l ? c ? J.value = "" : J.value = r ? "inner-left" : "inner-right" : (J.value = "", Ze(o.app, r));
395
395
  }
396
396
  function ct() {
397
397
  return !!I.get("accessToken");
@@ -400,41 +400,41 @@ function ut() {
400
400
  return !!I.get("activeOrg");
401
401
  }
402
402
  function _a(e, t, a, o) {
403
- const r = ct(), l = ut(), c = G(e.path);
403
+ const n = ct(), l = ut(), c = G(e.path);
404
404
  if (!c) {
405
405
  console.assert(!1), a();
406
406
  return;
407
407
  }
408
408
  if (c.requiredState === "auth")
409
- if (r)
409
+ if (n)
410
410
  if (l) {
411
- const n = "/main";
412
- S(n, t.path, o), a({ path: n });
411
+ const r = "/main";
412
+ S(r, t.path, o), a({ path: r });
413
413
  } else
414
414
  S(e.path, t.path, o), a();
415
415
  else {
416
- const n = "/passport/login";
417
- S(n, t.path, o), a({ path: n });
416
+ const r = "/passport/login";
417
+ S(r, t.path, o), a({ path: r });
418
418
  }
419
419
  else if (c.requiredState === "org")
420
- if (r)
420
+ if (n)
421
421
  if (l)
422
422
  S(e.path, t.path, o), a();
423
423
  else {
424
- const n = "/org/joinOrCreate";
425
- S(n, t.path, o), a({ path: n });
424
+ const r = "/org/joinOrCreate";
425
+ S(r, t.path, o), a({ path: r });
426
426
  }
427
427
  else {
428
- const n = "/passport/login";
429
- S(n, t.path, o), a({ path: n });
428
+ const r = "/passport/login";
429
+ S(r, t.path, o), a({ path: r });
430
430
  }
431
- else if (r)
431
+ else if (n)
432
432
  if (l) {
433
- const n = "/main";
434
- S(n, t.path, o), a({ path: n });
433
+ const r = "/main";
434
+ S(r, t.path, o), a({ path: r });
435
435
  } else {
436
- const n = "/org/joinOrCreate";
437
- S(n, t.path, o), a({ path: n });
436
+ const r = "/org/joinOrCreate";
437
+ S(r, t.path, o), a({ path: r });
438
438
  }
439
439
  else
440
440
  S(e.path, t.path, o), a();
@@ -498,29 +498,29 @@ function yt(e) {
498
498
  }
499
499
  function wt(...e) {
500
500
  const t = [], a = () => {
501
- t.forEach((n) => n()), t.length = 0;
502
- }, o = (n, u, s, d) => (n.addEventListener(u, s, d), () => n.removeEventListener(u, s, d)), r = w(() => {
503
- const n = P(q(e[0])).filter((u) => u != null);
504
- return n.every((u) => typeof u != "string") ? n : void 0;
501
+ t.forEach((r) => r()), t.length = 0;
502
+ }, o = (r, u, s, i) => (r.addEventListener(u, s, i), () => r.removeEventListener(u, s, i)), n = x(() => {
503
+ const r = P(q(e[0])).filter((u) => u != null);
504
+ return r.every((u) => typeof u != "string") ? r : void 0;
505
505
  }), l = ht(
506
506
  () => {
507
- var n, u;
507
+ var r, u;
508
508
  return [
509
- (u = (n = r.value) == null ? void 0 : n.map((s) => yt(s))) != null ? u : [Le].filter((s) => s != null),
510
- P(q(r.value ? e[1] : e[0])),
511
- P(z(r.value ? e[2] : e[1])),
509
+ (u = (r = n.value) == null ? void 0 : r.map((s) => yt(s))) != null ? u : [Le].filter((s) => s != null),
510
+ P(q(n.value ? e[1] : e[0])),
511
+ P(z(n.value ? e[2] : e[1])),
512
512
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
513
- q(r.value ? e[3] : e[2])
513
+ q(n.value ? e[3] : e[2])
514
514
  ];
515
515
  },
516
- ([n, u, s, d]) => {
517
- if (a(), !(n != null && n.length) || !(u != null && u.length) || !(s != null && s.length))
516
+ ([r, u, s, i]) => {
517
+ if (a(), !(r != null && r.length) || !(u != null && u.length) || !(s != null && s.length))
518
518
  return;
519
- const g = mt(d) ? { ...d } : d;
519
+ const v = mt(i) ? { ...i } : i;
520
520
  t.push(
521
- ...n.flatMap(
522
- (b) => u.flatMap(
523
- (m) => s.map((_) => o(b, m, _, g))
521
+ ...r.flatMap(
522
+ (k) => u.flatMap(
523
+ (m) => s.map((_) => o(k, m, _, v))
524
524
  )
525
525
  )
526
526
  );
@@ -533,13 +533,13 @@ function wt(...e) {
533
533
  }
534
534
  function xt() {
535
535
  const e = ee(!1), t = _e();
536
- return t && E(() => {
536
+ return t && B(() => {
537
537
  e.value = !0;
538
538
  }, t), e;
539
539
  }
540
540
  function bt(e) {
541
541
  const t = xt();
542
- return w(() => (t.value, !!e()));
542
+ return x(() => (t.value, !!e()));
543
543
  }
544
544
  const kt = Symbol("vueuse-ssr-width");
545
545
  function Ct() {
@@ -547,80 +547,82 @@ function Ct() {
547
547
  return typeof e == "number" ? e : void 0;
548
548
  }
549
549
  function Lt(e, t = {}) {
550
- const { window: a = Le, ssrWidth: o = Ct() } = t, r = bt(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = v(typeof o == "number"), c = ee(), n = ee(!1), u = (s) => {
551
- n.value = s.matches;
550
+ const { window: a = Le, ssrWidth: o = Ct() } = t, n = bt(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = g(typeof o == "number"), c = ee(), r = ee(!1), u = (s) => {
551
+ r.value = s.matches;
552
552
  };
553
553
  return Ve(() => {
554
554
  if (l.value) {
555
- l.value = !r.value;
555
+ l.value = !n.value;
556
556
  const s = q(e).split(",");
557
- n.value = s.some((d) => {
558
- const g = d.includes("not all"), b = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
559
- let _ = !!(b || m);
560
- return b && _ && (_ = o >= pe(b[1])), m && _ && (_ = o <= pe(m[1])), g ? !_ : _;
557
+ r.value = s.some((i) => {
558
+ const v = i.includes("not all"), k = i.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = i.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
559
+ let _ = !!(k || m);
560
+ return k && _ && (_ = o >= pe(k[1])), m && _ && (_ = o <= pe(m[1])), v ? !_ : _;
561
561
  });
562
562
  return;
563
563
  }
564
- r.value && (c.value = a.matchMedia(q(e)), n.value = c.value.matches);
565
- }), wt(c, "change", u, { passive: !0 }), w(() => n.value);
564
+ n.value && (c.value = a.matchMedia(q(e)), r.value = c.value.matches);
565
+ }), wt(c, "change", u, { passive: !0 }), x(() => r.value);
566
566
  }
567
567
  function Dt(e) {
568
568
  return Lt("(prefers-color-scheme: dark)", e);
569
569
  }
570
- function fa(e, t, a, o, r, l) {
571
- const c = Be(), n = ge();
572
- Ye(e), Pe(t), et(a), at(o), ot(r), nt(l);
570
+ function fa(e, t, a, o, n, l) {
571
+ const c = Ee(), r = ge();
572
+ Ye(e), Pe(t), et(a), at(o), ot(n), nt(l);
573
573
  const u = fe(), s = Dt();
574
574
  K(
575
575
  e,
576
576
  () => {
577
- let i = !1;
578
- typeof e.value == "boolean" ? i = e.value : i = s.value, u.global.name.value = i ? "dark" : "light";
577
+ let d = !1;
578
+ typeof e.value == "boolean" ? d = e.value : d = s.value, u.global.name.value = d ? "dark" : "light";
579
579
  },
580
580
  { immediate: !0 }
581
581
  );
582
- const d = (i) => {
583
- if (i.key === "Escape") {
584
- g();
585
- return;
586
- }
587
- }, g = () => {
588
- var k;
582
+ const i = () => {
583
+ var C;
589
584
  if (!st(l)) {
590
585
  Ce(l, "waitDlg") || it(l);
591
586
  return;
592
587
  }
593
- const i = G(c.path);
594
- if (!i) {
588
+ const d = G(c.path);
589
+ if (!d) {
595
590
  console.assert(!1);
596
591
  return;
597
592
  }
598
- i.level === 0 ? (k = navigator == null ? void 0 : navigator.Backbutton) == null || k.goHome(
593
+ d.level === 0 ? (C = navigator == null ? void 0 : navigator.Backbutton) == null || C.goHome(
599
594
  () => {
600
595
  },
601
596
  () => {
602
597
  }
603
- ) : i.level === 1 ? n.replace({ path: "/main" }) : n.back();
598
+ ) : r.back();
599
+ }, v = (d) => {
600
+ if (d.key === "Escape") {
601
+ i();
602
+ return;
603
+ }
604
+ }, k = () => {
605
+ i();
604
606
  };
605
- E(() => {
606
- window.addEventListener("keydown", d), p.on("backbutton", g);
607
+ B(() => {
608
+ window.addEventListener("keydown", v), p.on("backbutton", k);
607
609
  }), $(() => {
608
- window.removeEventListener("keydown", d), p.off("backbutton", g);
610
+ window.removeEventListener("keydown", v), p.off("backbutton", k);
609
611
  });
610
- const b = (i) => {
611
- e.value = i;
612
- }, m = (i) => {
613
- t.value = i;
614
- }, _ = (i) => {
615
- const k = i;
616
- a.value = k[0], o.value = k[1];
617
- }, D = (i) => {
618
- r.value = i;
612
+ const m = (d) => {
613
+ e.value = d;
614
+ }, _ = (d) => {
615
+ t.value = d;
616
+ }, M = (d) => {
617
+ const C = d;
618
+ a.value = C[0], o.value = C[1];
619
+ }, h = (d) => {
620
+ n.value = d;
619
621
  };
620
622
  Ae(() => {
621
- p.on("updateDark", b), p.on("updateLocale", m), p.on("updatePermission", _), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
623
+ p.on("updateDark", m), p.on("updateLocale", _), p.on("updatePermission", M), p.on("updateLastAppPath", h), p.emit("syncGlobalState");
622
624
  }), $(() => {
623
- p.off("updateDark", b), p.off("updateLocale", m), p.off("updatePermission", _), p.off("updateLastAppPath", D);
625
+ p.off("updateDark", m), p.off("updateLocale", _), p.off("updatePermission", M), p.off("updateLastAppPath", h);
624
626
  });
625
627
  }
626
628
  function ga() {
@@ -635,81 +637,81 @@ function ga() {
635
637
  return { verifyPermission: t };
636
638
  }
637
639
  function va() {
638
- const e = w(() => !!window.cordova), t = Ee(), a = w(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
640
+ const e = x(() => !!window.cordova), t = Be(), a = x(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
639
641
  return { sysBarAvail: e, compactWidth: a };
640
642
  }
641
643
  function le(e, t) {
642
- const a = rt(), o = w({
644
+ const a = rt(), o = x({
643
645
  get() {
644
646
  return Ce(a, e);
645
647
  },
646
648
  set(l) {
647
649
  l ? pt(a, e) : _t(a, e);
648
650
  }
649
- }), r = (l) => {
651
+ }), n = (l) => {
650
652
  t == null || t(l), o.value = !0;
651
653
  };
652
- return E(() => {
653
- p.on(e, r);
654
+ return B(() => {
655
+ p.on(e, n);
654
656
  }), $(() => {
655
- p.off(e, r);
657
+ p.off(e, n);
656
658
  }), { open: o };
657
659
  }
658
- const Mt = /* @__PURE__ */ B({
660
+ const Mt = /* @__PURE__ */ E({
659
661
  __name: "index",
660
662
  setup(e) {
661
- const { t } = ne(), a = v(""), o = v(""), r = v(""), l = v(""), c = v(""), n = v("");
663
+ const { t } = ne(), a = g(""), o = g(""), n = g(""), l = g(""), c = g(""), r = g("");
662
664
  let u = 0, s = !1;
663
- const d = (m) => {
664
- var D, i, k, M;
665
+ const i = (m) => {
666
+ var M, h, d, C;
665
667
  const _ = m;
666
- a.value = _.title, o.value = _.text, r.value = ((D = _.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((i = _.cancel) == null ? void 0 : i.text) ?? t("dlg.common.cancel"), c.value = ((k = _.confirm) == null ? void 0 : k.color) ?? "primary", n.value = ((M = _.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = _.seq, s = !1, g.value = !0;
667
- }, { open: g } = le("confirmDlg", d), b = () => {
668
- g.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
668
+ a.value = _.title, o.value = _.text, n.value = ((M = _.cancel) == null ? void 0 : M.color) ?? "primary", l.value = ((h = _.cancel) == null ? void 0 : h.text) ?? t("dlg.common.cancel"), c.value = ((d = _.confirm) == null ? void 0 : d.color) ?? "primary", r.value = ((C = _.confirm) == null ? void 0 : C.text) ?? t("dlg.common.confirm"), u = _.seq, s = !1, v.value = !0;
669
+ }, { open: v } = le("confirmDlg", i), k = () => {
670
+ v.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
669
671
  };
670
- return K(g, (m) => {
672
+ return K(v, (m) => {
671
673
  !m && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
672
674
  }), (m, _) => {
673
- const D = x("v-card-text"), i = x("v-btn"), k = x("v-card-actions"), M = x("v-card"), f = x("v-dialog");
674
- return L(), V(f, {
675
- modelValue: z(g),
676
- "onUpdate:modelValue": _[1] || (_[1] = (j) => Q(g) ? g.value = j : null),
675
+ const M = b("v-card-text"), h = b("v-btn"), d = b("v-card-actions"), C = b("v-card"), f = b("v-dialog");
676
+ return D(), V(f, {
677
+ modelValue: z(v),
678
+ "onUpdate:modelValue": _[1] || (_[1] = (j) => Q(v) ? v.value = j : null),
677
679
  transition: "dialog-top-transition",
678
680
  "max-width": "600px",
679
681
  attach: "",
680
682
  onKeydown: [
681
- _[2] || (_[2] = Z(H((j) => g.value = !1, ["stop", "prevent"]), ["esc"])),
682
- Z(H(b, ["stop", "prevent"]), ["enter"])
683
+ _[2] || (_[2] = Z(H((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
684
+ Z(H(k, ["stop", "prevent"]), ["enter"])
683
685
  ]
684
686
  }, {
685
- default: y(() => [
686
- C(M, { title: a.value }, {
687
- default: y(() => [
688
- C(D, null, {
689
- default: y(() => [
687
+ default: w(() => [
688
+ L(C, { title: a.value }, {
689
+ default: w(() => [
690
+ L(M, null, {
691
+ default: w(() => [
690
692
  O(R(o.value), 1)
691
693
  ]),
692
694
  _: 1
693
695
  }),
694
- C(k, { class: "d-flex justify-end" }, {
695
- default: y(() => [
696
- C(i, {
697
- color: r.value,
696
+ L(d, { class: "d-flex justify-end" }, {
697
+ default: w(() => [
698
+ L(h, {
699
+ color: n.value,
698
700
  variant: "text",
699
- onClick: _[0] || (_[0] = (j) => g.value = !1)
701
+ onClick: _[0] || (_[0] = (j) => v.value = !1)
700
702
  }, {
701
- default: y(() => [
703
+ default: w(() => [
702
704
  O(R(l.value), 1)
703
705
  ]),
704
706
  _: 1
705
707
  }, 8, ["color"]),
706
- C(i, {
708
+ L(h, {
707
709
  color: c.value,
708
710
  variant: "text",
709
- onClick: b
711
+ onClick: k
710
712
  }, {
711
- default: y(() => [
712
- O(R(n.value), 1)
713
+ default: w(() => [
714
+ O(R(r.value), 1)
713
715
  ]),
714
716
  _: 1
715
717
  }, 8, ["color"])
@@ -724,38 +726,38 @@ const Mt = /* @__PURE__ */ B({
724
726
  }, 8, ["modelValue", "onKeydown"]);
725
727
  };
726
728
  }
727
- }), St = /* @__PURE__ */ B({
729
+ }), St = /* @__PURE__ */ E({
728
730
  __name: "index",
729
731
  props: {
730
732
  open: { type: Boolean, default: !0 },
731
733
  zIndex: { default: 1 }
732
734
  },
733
735
  setup(e) {
734
- const { backgroundColor2: t } = Ue(), a = w(() => ({
736
+ const { backgroundColor2: t } = Ue(), a = x(() => ({
735
737
  background: t.value,
736
738
  zIndex: e.zIndex
737
739
  }));
738
740
  let o = 0;
739
- return (r, l) => (L(), V(qe, { name: "fade" }, {
740
- default: y(() => [
741
- r.open ? (L(), te("div", {
741
+ return (n, l) => (D(), V(qe, { name: "fade" }, {
742
+ default: w(() => [
743
+ n.open ? (D(), te("div", {
742
744
  key: Q(o) ? ++o.value : ++o,
743
745
  class: "x-cont",
744
746
  style: de(a.value)
745
747
  }, l[0] || (l[0] = [
746
- h("div", { class: "lds-spinner" }, [
747
- h("div"),
748
- h("div"),
749
- h("div"),
750
- h("div"),
751
- h("div"),
752
- h("div"),
753
- h("div"),
754
- h("div"),
755
- h("div"),
756
- h("div"),
757
- h("div"),
758
- h("div")
748
+ y("div", { class: "lds-spinner" }, [
749
+ y("div"),
750
+ y("div"),
751
+ y("div"),
752
+ y("div"),
753
+ y("div"),
754
+ y("div"),
755
+ y("div"),
756
+ y("div"),
757
+ y("div"),
758
+ y("div"),
759
+ y("div"),
760
+ y("div")
759
761
  ], -1)
760
762
  ]), 4)) : oe("", !0)
761
763
  ]),
@@ -764,12 +766,12 @@ const Mt = /* @__PURE__ */ B({
764
766
  }
765
767
  }), ce = (e, t) => {
766
768
  const a = e.__vccOpts || e;
767
- for (const [o, r] of t)
768
- a[o] = r;
769
+ for (const [o, n] of t)
770
+ a[o] = n;
769
771
  return a;
770
772
  }, jt = /* @__PURE__ */ ce(St, [["__scopeId", "data-v-0c686889"]]);
771
773
  var Rt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", Vt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", At = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", qt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", Ot = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
772
- const It = /* @__PURE__ */ B({
774
+ const It = /* @__PURE__ */ E({
773
775
  __name: "item",
774
776
  props: {
775
777
  id: {},
@@ -779,10 +781,10 @@ const It = /* @__PURE__ */ B({
779
781
  },
780
782
  emits: ["timeout"],
781
783
  setup(e, { emit: t }) {
782
- const a = e, o = w(() => ({
784
+ const a = e, o = x(() => ({
783
785
  width: "calc(100% - 64px)",
784
786
  overflowWrap: "break-word"
785
- })), r = w(() => {
787
+ })), n = x(() => {
786
788
  switch (a.type) {
787
789
  case "success":
788
790
  return Vt;
@@ -795,68 +797,68 @@ const It = /* @__PURE__ */ B({
795
797
  default:
796
798
  return "";
797
799
  }
798
- }), l = v(!0), c = t;
799
- return E(() => {
800
+ }), l = g(!0), c = t;
801
+ return B(() => {
800
802
  setTimeout(() => {
801
803
  c("timeout", a.id);
802
804
  }, a.timeout);
803
- }), K(l, (n) => {
804
- n || c("timeout", a.id);
805
- }), (n, u) => {
806
- const s = x("v-icon"), d = x("v-sheet");
807
- return L(), V(d, {
805
+ }), K(l, (r) => {
806
+ r || c("timeout", a.id);
807
+ }), (r, u) => {
808
+ const s = b("v-icon"), i = b("v-sheet");
809
+ return D(), V(i, {
808
810
  class: "x-item d-flex align-center py-2 mb-2",
809
811
  color: a.type,
810
812
  elevation: 1
811
813
  }, {
812
- default: y(() => [
813
- r.value ? (L(), V(s, {
814
+ default: w(() => [
815
+ n.value ? (D(), V(s, {
814
816
  key: 0,
815
817
  class: "mx-1",
816
- icon: r.value
818
+ icon: n.value
817
819
  }, null, 8, ["icon"])) : oe("", !0),
818
- h("div", {
820
+ y("div", {
819
821
  style: de(o.value)
820
822
  }, R(a.text), 5),
821
- C(s, {
823
+ L(s, {
822
824
  class: "mx-1",
823
825
  icon: z(At),
824
- onClick: u[0] || (u[0] = (g) => c("timeout", a.id))
826
+ onClick: u[0] || (u[0] = (v) => c("timeout", a.id))
825
827
  }, null, 8, ["icon"])
826
828
  ]),
827
829
  _: 1
828
830
  }, 8, ["color"]);
829
831
  };
830
832
  }
831
- }), Tt = /* @__PURE__ */ ce(It, [["__scopeId", "data-v-d5cfe252"]]), Et = /* @__PURE__ */ B({
833
+ }), Tt = /* @__PURE__ */ ce(It, [["__scopeId", "data-v-d5cfe252"]]), Bt = /* @__PURE__ */ E({
832
834
  __name: "index",
833
835
  setup(e) {
834
- const t = v([]);
835
- E(() => {
836
+ const t = g([]);
837
+ B(() => {
836
838
  p.on("message", a);
837
839
  }), $(() => {
838
840
  p.off("message", a);
839
841
  });
840
- const a = (n) => {
841
- const { type: u, text: s, timeout: d } = n;
842
- l(u, s, d);
843
- }, o = (n) => {
844
- c(n);
842
+ const a = (r) => {
843
+ const { type: u, text: s, timeout: i } = r;
844
+ l(u, s, i);
845
+ }, o = (r) => {
846
+ c(r);
845
847
  };
846
- let r = 0;
847
- const l = (n, u, s) => {
848
- const d = r++;
849
- t.value.push({ id: d, type: n, text: u, timeout: s });
850
- }, c = (n) => {
851
- const u = t.value.findIndex((s) => s.id === n);
848
+ let n = 0;
849
+ const l = (r, u, s) => {
850
+ const i = n++;
851
+ t.value.push({ id: i, type: r, text: u, timeout: s });
852
+ }, c = (r) => {
853
+ const u = t.value.findIndex((s) => s.id === r);
852
854
  u >= 0 && t.value.splice(u, 1);
853
855
  };
854
- return (n, u) => (L(), te("div", {
856
+ return (r, u) => (D(), te("div", {
855
857
  class: "x-cont d-flex flex-column-reverse align-center",
856
858
  onClick: u[0] || (u[0] = H(() => {
857
859
  }, ["stop"]))
858
860
  }, [
859
- (L(!0), te(Oe, null, Ie(t.value, (s) => (L(), V(Tt, {
861
+ (D(!0), te(Oe, null, Ie(t.value, (s) => (D(), V(Tt, {
860
862
  id: s.id,
861
863
  key: s.id,
862
864
  type: s.type,
@@ -866,75 +868,75 @@ const It = /* @__PURE__ */ B({
866
868
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
867
869
  ]));
868
870
  }
869
- }), Bt = /* @__PURE__ */ ce(Et, [["__scopeId", "data-v-c6a59757"]]), Wt = /* @__PURE__ */ B({
871
+ }), Et = /* @__PURE__ */ ce(Bt, [["__scopeId", "data-v-c6a59757"]]), Wt = /* @__PURE__ */ E({
870
872
  __name: "index",
871
873
  setup(e) {
872
- const { t } = ne(), a = v(""), o = v(""), r = v(""), l = v(""), c = v(), n = v(""), u = v(""), s = v(""), d = v(""), g = v(""), b = Te("target");
874
+ const { t } = ne(), a = g(""), o = g(""), n = g(""), l = g(""), c = g(), r = g(""), u = g(""), s = g(""), i = g(""), v = g(""), k = Te("target");
873
875
  let m = 0, _ = !1;
874
- const D = async (M) => {
876
+ const M = async (C) => {
875
877
  var j, F, X, W;
876
- const f = M;
877
- a.value = f.title, o.value = f.text, r.value = f.label, l.value = f.placeholder, c.value = f.rules, n.value = f.value, u.value = ((j = f.cancel) == null ? void 0 : j.color) ?? "primary", s.value = ((F = f.cancel) == null ? void 0 : F.text) ?? t("dlg.common.cancel"), d.value = ((X = f.confirm) == null ? void 0 : X.color) ?? "primary", g.value = ((W = f.confirm) == null ? void 0 : W.text) ?? t("dlg.common.confirm"), m = f.seq, _ = !1, i.value = !0, await re(() => !!b.value), b.value.focus();
878
- }, { open: i } = le("promptDlg", D), k = () => {
879
- i.value = !1, _ || (p.emit("promptDlgResult" + m, n.value ?? ""), _ = !0);
878
+ const f = C;
879
+ a.value = f.title, o.value = f.text, n.value = f.label, l.value = f.placeholder, c.value = f.rules, r.value = f.value, u.value = ((j = f.cancel) == null ? void 0 : j.color) ?? "primary", s.value = ((F = f.cancel) == null ? void 0 : F.text) ?? t("dlg.common.cancel"), i.value = ((X = f.confirm) == null ? void 0 : X.color) ?? "primary", v.value = ((W = f.confirm) == null ? void 0 : W.text) ?? t("dlg.common.confirm"), m = f.seq, _ = !1, h.value = !0, await re(() => !!k.value), k.value.focus();
880
+ }, { open: h } = le("promptDlg", M), d = () => {
881
+ h.value = !1, _ || (p.emit("promptDlgResult" + m, r.value ?? ""), _ = !0);
880
882
  };
881
- return K(i, (M) => {
882
- !M && !_ && (p.emit("promptDlgResult" + m, void 0), _ = !0);
883
- }), (M, f) => {
884
- const j = x("v-card-text"), F = x("v-text-field"), X = x("v-form"), W = x("v-btn"), De = x("v-card-actions"), Me = x("v-card"), Se = x("v-dialog");
885
- return L(), V(Se, {
886
- modelValue: z(i),
887
- "onUpdate:modelValue": f[2] || (f[2] = (U) => Q(i) ? i.value = U : null),
883
+ return K(h, (C) => {
884
+ !C && !_ && (p.emit("promptDlgResult" + m, void 0), _ = !0);
885
+ }), (C, f) => {
886
+ const j = b("v-card-text"), F = b("v-text-field"), X = b("v-form"), W = b("v-btn"), De = b("v-card-actions"), Me = b("v-card"), Se = b("v-dialog");
887
+ return D(), V(Se, {
888
+ modelValue: z(h),
889
+ "onUpdate:modelValue": f[2] || (f[2] = (U) => Q(h) ? h.value = U : null),
888
890
  transition: "dialog-top-transition",
889
891
  "max-width": "600px",
890
892
  attach: "",
891
893
  onKeydown: [
892
- f[3] || (f[3] = Z(H((U) => i.value = !1, ["stop", "prevent"]), ["esc"])),
893
- Z(H(k, ["stop", "prevent"]), ["enter"])
894
+ f[3] || (f[3] = Z(H((U) => h.value = !1, ["stop", "prevent"]), ["esc"])),
895
+ Z(H(d, ["stop", "prevent"]), ["enter"])
894
896
  ]
895
897
  }, {
896
- default: y(() => [
897
- C(Me, { title: a.value }, {
898
- default: y(() => [
899
- o.value ? (L(), V(j, { key: 0 }, {
900
- default: y(() => [
898
+ default: w(() => [
899
+ L(Me, { title: a.value }, {
900
+ default: w(() => [
901
+ o.value ? (D(), V(j, { key: 0 }, {
902
+ default: w(() => [
901
903
  O(R(o.value), 1)
902
904
  ]),
903
905
  _: 1
904
906
  })) : oe("", !0),
905
- C(X, { class: "mx-3" }, {
906
- default: y(() => [
907
- C(F, {
907
+ L(X, { class: "mx-3" }, {
908
+ default: w(() => [
909
+ L(F, {
908
910
  ref_key: "target",
909
- ref: b,
910
- modelValue: n.value,
911
- "onUpdate:modelValue": f[0] || (f[0] = (U) => n.value = U),
912
- label: r.value,
911
+ ref: k,
912
+ modelValue: r.value,
913
+ "onUpdate:modelValue": f[0] || (f[0] = (U) => r.value = U),
914
+ label: n.value,
913
915
  placeholder: l.value,
914
916
  rules: c.value
915
917
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
916
918
  ]),
917
919
  _: 1
918
920
  }),
919
- C(De, { class: "d-flex justify-end" }, {
920
- default: y(() => [
921
- C(W, {
921
+ L(De, { class: "d-flex justify-end" }, {
922
+ default: w(() => [
923
+ L(W, {
922
924
  color: u.value,
923
925
  variant: "text",
924
- onClick: f[1] || (f[1] = (U) => i.value = !1)
926
+ onClick: f[1] || (f[1] = (U) => h.value = !1)
925
927
  }, {
926
- default: y(() => [
928
+ default: w(() => [
927
929
  O(R(s.value), 1)
928
930
  ]),
929
931
  _: 1
930
932
  }, 8, ["color"]),
931
- C(W, {
932
- color: d.value,
933
+ L(W, {
934
+ color: i.value,
933
935
  variant: "text",
934
- onClick: k
936
+ onClick: d
935
937
  }, {
936
- default: y(() => [
937
- O(R(g.value), 1)
938
+ default: w(() => [
939
+ O(R(v.value), 1)
938
940
  ]),
939
941
  _: 1
940
942
  }, 8, ["color"])
@@ -949,39 +951,39 @@ const It = /* @__PURE__ */ B({
949
951
  }, 8, ["modelValue", "onKeydown"]);
950
952
  };
951
953
  }
952
- }), Ut = { class: "mx-auto my-auto" }, $t = { class: "w-100 h-100 d-flex align-center justify-center" }, Ht = { class: "text-body-1" }, Kt = /* @__PURE__ */ B({
954
+ }), Ut = { class: "mx-auto my-auto" }, $t = { class: "w-100 h-100 d-flex align-center justify-center" }, Ht = { class: "text-body-1" }, Kt = /* @__PURE__ */ E({
953
955
  __name: "index",
954
956
  setup(e) {
955
- const { t } = ne(), a = v(""), o = (c) => {
956
- const n = c;
957
- a.value = n.text ?? t("dlg.common.waiting"), l.value = !0;
958
- }, r = () => {
957
+ const { t } = ne(), a = g(""), o = (c) => {
958
+ const r = c;
959
+ a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
960
+ }, n = () => {
959
961
  l.value = !1;
960
962
  }, { open: l } = le("waitDlg", o);
961
- return E(() => {
962
- p.on("closeWaitDlg", r);
963
+ return B(() => {
964
+ p.on("closeWaitDlg", n);
963
965
  }), $(() => {
964
- p.off("closeWaitDlg", r);
965
- }), (c, n) => {
966
- const u = x("v-card"), s = x("v-dialog");
967
- return L(), V(s, {
966
+ p.off("closeWaitDlg", n);
967
+ }), (c, r) => {
968
+ const u = b("v-card"), s = b("v-dialog");
969
+ return D(), V(s, {
968
970
  modelValue: z(l),
969
- "onUpdate:modelValue": n[0] || (n[0] = (d) => Q(l) ? l.value = d : null),
971
+ "onUpdate:modelValue": r[0] || (r[0] = (i) => Q(l) ? l.value = i : null),
970
972
  persistent: "",
971
973
  "no-click-animation": "",
972
974
  fullscreen: "",
973
975
  attach: ""
974
976
  }, {
975
- default: y(() => [
976
- h("div", Ut, [
977
- C(u, {
977
+ default: w(() => [
978
+ y("div", Ut, [
979
+ L(u, {
978
980
  width: "300px",
979
981
  height: "80px",
980
982
  loading: ""
981
983
  }, {
982
- default: y(() => [
983
- h("div", $t, [
984
- h("span", Ht, R(a.value), 1)
984
+ default: w(() => [
985
+ y("div", $t, [
986
+ y("span", Ht, R(a.value), 1)
985
987
  ])
986
988
  ]),
987
989
  _: 1
@@ -993,10 +995,10 @@ const It = /* @__PURE__ */ B({
993
995
  };
994
996
  }
995
997
  }), zt = (e) => {
996
- e.component("XConfirmDlg", Mt), e.component("XLoading", jt), e.component("XMessage", Bt), e.component("XPromptDlg", Wt), e.component("XWaitDlg", Kt);
998
+ e.component("XConfirmDlg", Mt), e.component("XLoading", jt), e.component("XMessage", Et), e.component("XPromptDlg", Wt), e.component("XWaitDlg", Kt);
997
999
  }, Ft = (e, t, a) => {
998
1000
  const o = e[t];
999
- return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((r, l) => {
1001
+ return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
1000
1002
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
1001
1003
  l.bind(
1002
1004
  null,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.8.4",
4
+ "version": "0.8.5",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",