x-essential-lib 0.3.17 → 0.3.19

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 +251 -266
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.inner-left-enter-active,.inner-right-enter-active{transition:transform .35s ease}.inner-left-enter-from{transform:translate(-100%)}.inner-right-enter-from{transform:translate(100%)}.inner-left-enter-to,.inner-right-enter-to{transform:translate(0)}.x-cont[data-v-a8f3d91f]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-a8f3d91f]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-a8f3d91f]{transform-origin:20px 20px;animation:lds-spinner-a8f3d91f 1.2s linear infinite}.lds-spinner div[data-v-a8f3d91f]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-a8f3d91f]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-a8f3d91f]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-a8f3d91f]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-a8f3d91f]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-a8f3d91f]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-a8f3d91f]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-a8f3d91f]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-a8f3d91f]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-a8f3d91f]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-a8f3d91f]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-a8f3d91f{0%{opacity:1}to{opacity:0}}.x-cont[data-v-70ed4b89]{position:absolute;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 { VAlert as ve, VBtn as me, VCard as he, VCardActions as we, VCardText as ye, VCardTitle as xe, VDialog as ke, VForm as be, VTextField as Ce } from "vuetify/lib/components/index.mjs";
3
- import { ref as i, computed as f, onMounted as S, onBeforeUnmount as T, defineComponent as R, watch as W, resolveComponent as g, openBlock as C, createBlock as O, unref as N, isRef as J, withKeys as U, withModifiers as A, withCtx as v, createVNode as h, createTextVNode as V, toDisplayString as b, createElementBlock as F, normalizeStyle as Ve, pushScopeId as Se, popScopeId as De, createElementVNode as m, reactive as qe, Fragment as Te, renderList as Oe, createCommentVNode as Re } from "vue";
4
- import { useLocale as X, useTheme as H, useDisplay as je } from "vuetify/lib/framework.mjs";
5
- import { defineStore as le } from "pinia";
6
- import { useRouter as re, useRoute as Ie } from "vue-router";
7
- import Ee from "axios";
8
- const ne = le("viewMgr", () => {
2
+ import { VAlert as ge, VBtn as ve, VCard as me, VCardActions as he, VCardText as we, VCardTitle as ye, VDialog as xe, VForm as ke, VTextField as be } from "vuetify/lib/components/index.mjs";
3
+ import { ref as i, computed as f, onMounted as C, onBeforeUnmount as q, defineComponent as R, watch as W, resolveComponent as v, openBlock as b, createBlock as O, unref as N, isRef as F, withKeys as U, withModifiers as A, withCtx as m, createVNode as y, createTextVNode as T, toDisplayString as D, createElementBlock as z, normalizeStyle as Ce, pushScopeId as Ve, popScopeId as Se, createElementVNode as g, reactive as De, Fragment as qe, renderList as Te, createCommentVNode as Oe } from "vue";
4
+ import { useLocale as J, useTheme as H, useDisplay as Re } from "vuetify/lib/framework.mjs";
5
+ import { defineStore as oe } from "pinia";
6
+ import { useRouter as le, useRoute as je } from "vue-router";
7
+ import Ie from "axios";
8
+ const re = oe("viewMgr", () => {
9
9
  const e = i([]);
10
10
  function a() {
11
11
  return e.value.length <= 0;
@@ -22,7 +22,7 @@ const ne = le("viewMgr", () => {
22
22
  n(s), e.value.push(s);
23
23
  }
24
24
  function n(s) {
25
- const c = e.value.findIndex((y) => y === s);
25
+ const c = e.value.findIndex((w) => w === s);
26
26
  c !== -1 && e.value.splice(c, 1);
27
27
  }
28
28
  function r() {
@@ -33,7 +33,7 @@ const ne = le("viewMgr", () => {
33
33
  }
34
34
  return { isEmpty: a, lastView: t, hasView: o, addView: l, delView: n, popView: r, clearViews: u };
35
35
  });
36
- function $e(e) {
36
+ function Ee(e) {
37
37
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
38
38
  var o = e.get(a);
39
39
  o ? o.push(t) : e.set(a, [t]);
@@ -49,13 +49,13 @@ function $e(e) {
49
49
  });
50
50
  } };
51
51
  }
52
- const _ = $e();
53
- async function ft(e) {
52
+ const p = Ee();
53
+ async function dt(e) {
54
54
  return new Promise((a) => {
55
55
  setTimeout(a, e);
56
56
  });
57
57
  }
58
- async function G(e, a, t) {
58
+ async function X(e, a, t) {
59
59
  const o = Date.now();
60
60
  return new Promise((l) => {
61
61
  const n = async () => {
@@ -64,8 +64,8 @@ async function G(e, a, t) {
64
64
  n();
65
65
  });
66
66
  }
67
- function Q(e, a) {
68
- const t = ne(), o = f({
67
+ function G(e, a) {
68
+ const t = re(), o = f({
69
69
  get() {
70
70
  return t.hasView(e);
71
71
  },
@@ -75,16 +75,16 @@ function Q(e, a) {
75
75
  }), l = (n) => {
76
76
  a == null || a(n), o.value = !0;
77
77
  };
78
- return S(() => {
79
- _.on(e, l);
80
- }), T(() => {
81
- _.off(e, l);
78
+ return C(() => {
79
+ p.on(e, l);
80
+ }), q(() => {
81
+ p.off(e, l);
82
82
  }), { open: o };
83
83
  }
84
- const Ae = /* @__PURE__ */ R({
84
+ const $e = /* @__PURE__ */ R({
85
85
  __name: "index",
86
86
  setup(e) {
87
- const a = X(), { open: t } = Q("confirmDlg"), o = i(""), l = i(""), n = i(), r = i(), u = f(() => {
87
+ const a = J(), { open: t } = G("confirmDlg"), o = i(""), l = i(""), n = i(), r = i(), u = f(() => {
88
88
  var d;
89
89
  return ((d = n.value) == null ? void 0 : d.color) ?? "primary";
90
90
  }), s = f(() => {
@@ -93,29 +93,29 @@ const Ae = /* @__PURE__ */ R({
93
93
  }), c = f(() => {
94
94
  var d;
95
95
  return ((d = r.value) == null ? void 0 : d.color) ?? "primary";
96
- }), y = f(() => {
96
+ }), w = f(() => {
97
97
  var d;
98
98
  return ((d = r.value) == null ? void 0 : d.text) ?? a.t("confirm");
99
99
  });
100
- let j = 0, D = !1;
100
+ let j = 0, V = !1;
101
101
  const M = (d) => {
102
- o.value = d.title, l.value = d.text, n.value = d.cancel, r.value = d.confirm, j = d.seq, D = !1, t.value = !0;
102
+ o.value = d.title, l.value = d.text, n.value = d.cancel, r.value = d.confirm, j = d.seq, V = !1, t.value = !0;
103
103
  };
104
- S(() => {
105
- _.on("confirmDlg", M);
106
- }), T(() => {
107
- _.off("confirmDlg", M);
104
+ C(() => {
105
+ p.on("confirmDlg", M);
106
+ }), q(() => {
107
+ p.off("confirmDlg", M);
108
108
  });
109
109
  const B = () => {
110
- t.value = !1, D || (_.emit("confirmDlgResult" + j, !0), D = !0);
110
+ t.value = !1, V || (p.emit("confirmDlgResult" + j, !0), V = !0);
111
111
  };
112
112
  return W(t, (d) => {
113
- !d && !D && (_.emit("confirmDlgResult" + j, !1), D = !0);
113
+ !d && !V && (p.emit("confirmDlgResult" + j, !1), V = !0);
114
114
  }), (d, x) => {
115
- const q = g("v-card-title"), L = g("v-card-text"), I = g("v-btn"), p = g("v-card-actions"), w = g("v-card"), z = g("v-dialog");
116
- return C(), O(z, {
115
+ const S = v("v-card-text"), I = v("v-btn"), L = v("v-card-actions"), _ = v("v-card"), h = v("v-dialog");
116
+ return b(), O(h, {
117
117
  modelValue: N(t),
118
- "onUpdate:modelValue": x[1] || (x[1] = (E) => J(t) ? t.value = E : null),
118
+ "onUpdate:modelValue": x[1] || (x[1] = (E) => F(t) ? t.value = E : null),
119
119
  onKeydown: [
120
120
  x[2] || (x[2] = U(A((E) => t.value = !1, ["stop", "prevent"]), ["esc"])),
121
121
  U(A(B, ["stop", "prevent"]), ["enter"])
@@ -123,40 +123,34 @@ const Ae = /* @__PURE__ */ R({
123
123
  transition: "dialog-top-transition",
124
124
  "max-width": "600px"
125
125
  }, {
126
- default: v(() => [
127
- h(w, null, {
128
- default: v(() => [
129
- h(q, null, {
130
- default: v(() => [
131
- V(b(o.value), 1)
126
+ default: m(() => [
127
+ y(_, { title: o.value }, {
128
+ default: m(() => [
129
+ y(S, null, {
130
+ default: m(() => [
131
+ T(D(l.value), 1)
132
132
  ]),
133
133
  _: 1
134
134
  }),
135
- h(L, null, {
136
- default: v(() => [
137
- V(b(l.value), 1)
138
- ]),
139
- _: 1
140
- }),
141
- h(p, { class: "d-flex justify-end" }, {
142
- default: v(() => [
143
- h(I, {
135
+ y(L, { class: "d-flex justify-end" }, {
136
+ default: m(() => [
137
+ y(I, {
144
138
  onClick: x[0] || (x[0] = (E) => t.value = !1),
145
139
  color: u.value,
146
140
  variant: "text"
147
141
  }, {
148
- default: v(() => [
149
- V(b(s.value), 1)
142
+ default: m(() => [
143
+ T(D(s.value), 1)
150
144
  ]),
151
145
  _: 1
152
146
  }, 8, ["color"]),
153
- h(I, {
147
+ y(I, {
154
148
  onClick: B,
155
149
  color: c.value,
156
150
  variant: "text"
157
151
  }, {
158
- default: v(() => [
159
- V(b(y.value), 1)
152
+ default: m(() => [
153
+ T(D(w.value), 1)
160
154
  ]),
161
155
  _: 1
162
156
  }, 8, ["color"])
@@ -165,28 +159,28 @@ const Ae = /* @__PURE__ */ R({
165
159
  })
166
160
  ]),
167
161
  _: 1
168
- })
162
+ }, 8, ["title"])
169
163
  ]),
170
164
  _: 1
171
165
  }, 8, ["modelValue", "onKeydown"]);
172
166
  };
173
167
  }
174
- }), Me = (e) => (Se("data-v-a8f3d91f"), e = e(), De(), e), Be = /* @__PURE__ */ Me(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
175
- /* @__PURE__ */ m("div"),
176
- /* @__PURE__ */ m("div"),
177
- /* @__PURE__ */ m("div"),
178
- /* @__PURE__ */ m("div"),
179
- /* @__PURE__ */ m("div"),
180
- /* @__PURE__ */ m("div"),
181
- /* @__PURE__ */ m("div"),
182
- /* @__PURE__ */ m("div"),
183
- /* @__PURE__ */ m("div"),
184
- /* @__PURE__ */ m("div"),
185
- /* @__PURE__ */ m("div"),
186
- /* @__PURE__ */ m("div")
187
- ], -1)), Le = [
188
- Be
189
- ], Ke = /* @__PURE__ */ R({
168
+ }), Ae = (e) => (Ve("data-v-a8f3d91f"), e = e(), Se(), e), Me = /* @__PURE__ */ Ae(() => /* @__PURE__ */ g("div", { class: "lds-spinner" }, [
169
+ /* @__PURE__ */ g("div"),
170
+ /* @__PURE__ */ g("div"),
171
+ /* @__PURE__ */ g("div"),
172
+ /* @__PURE__ */ g("div"),
173
+ /* @__PURE__ */ g("div"),
174
+ /* @__PURE__ */ g("div"),
175
+ /* @__PURE__ */ g("div"),
176
+ /* @__PURE__ */ g("div"),
177
+ /* @__PURE__ */ g("div"),
178
+ /* @__PURE__ */ g("div"),
179
+ /* @__PURE__ */ g("div"),
180
+ /* @__PURE__ */ g("div")
181
+ ], -1)), Be = [
182
+ Me
183
+ ], Le = /* @__PURE__ */ R({
190
184
  __name: "index",
191
185
  props: {
192
186
  zIndex: {
@@ -199,17 +193,17 @@ const Ae = /* @__PURE__ */ R({
199
193
  background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
200
194
  zIndex: t.zIndex
201
195
  }));
202
- return (l, n) => (C(), F("div", {
196
+ return (l, n) => (b(), z("div", {
203
197
  class: "x-cont",
204
- style: Ve(o.value)
205
- }, Le, 4));
198
+ style: Ce(o.value)
199
+ }, Be, 4));
206
200
  }
207
- }), ce = (e, a) => {
201
+ }), ne = (e, a) => {
208
202
  const t = e.__vccOpts || e;
209
203
  for (const [o, l] of a)
210
204
  t[o] = l;
211
205
  return t;
212
- }, Ne = /* @__PURE__ */ ce(Ke, [["__scopeId", "data-v-a8f3d91f"]]), Ue = /* @__PURE__ */ R({
206
+ }, Ke = /* @__PURE__ */ ne(Le, [["__scopeId", "data-v-a8f3d91f"]]), Ne = /* @__PURE__ */ R({
213
207
  __name: "item",
214
208
  props: {
215
209
  id: {
@@ -249,15 +243,15 @@ const Ae = /* @__PURE__ */ R({
249
243
  }
250
244
  return r;
251
245
  });
252
- return S(() => {
246
+ return C(() => {
253
247
  setTimeout(() => {
254
248
  l("timeout", t.id);
255
249
  }, t.timeout);
256
250
  }), W(o, (r) => {
257
251
  r || l("timeout", t.id);
258
252
  }), (r, u) => {
259
- const s = g("v-alert");
260
- return C(), O(s, {
253
+ const s = v("v-alert");
254
+ return b(), O(s, {
261
255
  modelValue: o.value,
262
256
  "onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
263
257
  class: "mt-2",
@@ -272,14 +266,14 @@ const Ae = /* @__PURE__ */ R({
272
266
  }, null, 8, ["modelValue", "type", "icon", "text"]);
273
267
  };
274
268
  }
275
- }), We = /* @__PURE__ */ R({
269
+ }), Ue = /* @__PURE__ */ R({
276
270
  __name: "index",
277
271
  setup(e) {
278
- const a = qe({ items: [] });
279
- S(() => {
280
- _.on("message", t);
281
- }), T(() => {
282
- _.off("message", t);
272
+ const a = De({ items: [] });
273
+ C(() => {
274
+ p.on("message", t);
275
+ }), q(() => {
276
+ p.off("message", t);
283
277
  });
284
278
  const t = (u) => {
285
279
  n(u.type, u.text, u.timeout);
@@ -288,18 +282,18 @@ const Ae = /* @__PURE__ */ R({
288
282
  };
289
283
  let l = 0;
290
284
  const n = (u, s, c) => {
291
- const y = l++;
292
- a.items.push({ id: y, type: u, text: s, timeout: c });
285
+ const w = l++;
286
+ a.items.push({ id: w, type: u, text: s, timeout: c });
293
287
  }, r = (u) => {
294
288
  const s = a.items.findIndex((c) => c.id === u);
295
289
  s >= 0 && a.items.splice(s, 1);
296
290
  };
297
- return (u, s) => (C(), F("div", {
291
+ return (u, s) => (b(), z("div", {
298
292
  onClick: s[0] || (s[0] = A(() => {
299
293
  }, ["stop"])),
300
294
  class: "x-cont d-flex flex-column-reverse align-center"
301
295
  }, [
302
- (C(!0), F(Te, null, Oe(a.items, (c) => (C(), O(Ue, {
296
+ (b(!0), z(qe, null, Te(a.items, (c) => (b(), O(Ne, {
303
297
  onTimeout: o,
304
298
  id: c.id,
305
299
  type: c.type,
@@ -309,69 +303,63 @@ const Ae = /* @__PURE__ */ R({
309
303
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
310
304
  ]));
311
305
  }
312
- }), He = /* @__PURE__ */ ce(We, [["__scopeId", "data-v-70ed4b89"]]), ze = /* @__PURE__ */ R({
306
+ }), We = /* @__PURE__ */ ne(Ue, [["__scopeId", "data-v-70ed4b89"]]), He = /* @__PURE__ */ R({
313
307
  __name: "index",
314
308
  setup(e) {
315
- const a = X(), { open: t } = Q("promptDlg"), o = i(""), l = i(""), n = i(), r = i(), u = i(), s = i(""), c = i(), y = i(), j = f(() => {
316
- var p;
317
- return ((p = c.value) == null ? void 0 : p.color) ?? "primary";
318
- }), D = f(() => {
319
- var p;
320
- return ((p = c.value) == null ? void 0 : p.text) ?? a.t("cancel");
309
+ const a = J(), { open: t } = G("promptDlg"), o = i(""), l = i(""), n = i(), r = i(), u = i(), s = i(""), c = i(), w = i(), j = f(() => {
310
+ var _;
311
+ return ((_ = c.value) == null ? void 0 : _.color) ?? "primary";
312
+ }), V = f(() => {
313
+ var _;
314
+ return ((_ = c.value) == null ? void 0 : _.text) ?? a.t("cancel");
321
315
  }), M = f(() => {
322
- var p;
323
- return ((p = y.value) == null ? void 0 : p.color) ?? "primary";
316
+ var _;
317
+ return ((_ = w.value) == null ? void 0 : _.color) ?? "primary";
324
318
  }), B = f(() => {
325
- var p;
326
- return ((p = y.value) == null ? void 0 : p.text) ?? a.t("confirm");
319
+ var _;
320
+ return ((_ = w.value) == null ? void 0 : _.text) ?? a.t("confirm");
327
321
  }), d = i();
328
- let x = 0, q = !1;
329
- const L = async (p) => {
330
- var w;
331
- o.value = p.title, l.value = p.text, n.value = p.label, r.value = p.placeholder, u.value = p.rules, s.value = p.value, c.value = p.cancel, y.value = p.confirm, x = p.seq, q = !1, t.value = !0, await G(() => d.value !== void 0, 1e3), (w = d.value) == null || w.focus();
322
+ let x = 0, S = !1;
323
+ const I = async (_) => {
324
+ var h;
325
+ o.value = _.title, l.value = _.text, n.value = _.label, r.value = _.placeholder, u.value = _.rules, s.value = _.value, c.value = _.cancel, w.value = _.confirm, x = _.seq, S = !1, t.value = !0, await X(() => d.value !== void 0, 1e3), (h = d.value) == null || h.focus();
332
326
  };
333
- S(() => {
334
- _.on("promptDlg", L);
335
- }), T(() => {
336
- _.off("promptDlg", L);
327
+ C(() => {
328
+ p.on("promptDlg", I);
329
+ }), q(() => {
330
+ p.off("promptDlg", I);
337
331
  });
338
- const I = () => {
339
- t.value = !1, q || (_.emit("promptDlgResult" + x, s.value ?? ""), q = !0);
332
+ const L = () => {
333
+ t.value = !1, S || (p.emit("promptDlgResult" + x, s.value ?? ""), S = !0);
340
334
  };
341
- return W(t, (p) => {
342
- !p && !q && (_.emit("promptDlgResult" + x, void 0), q = !0);
343
- }), (p, w) => {
344
- const z = g("v-card-title"), E = g("v-card-text"), pe = g("v-text-field"), de = g("v-form"), P = g("v-btn"), fe = g("v-card-actions"), ie = g("v-card"), ge = g("v-dialog");
345
- return C(), O(ge, {
335
+ return W(t, (_) => {
336
+ !_ && !S && (p.emit("promptDlgResult" + x, void 0), S = !0);
337
+ }), (_, h) => {
338
+ const E = v("v-card-text"), pe = v("v-text-field"), _e = v("v-form"), Z = v("v-btn"), de = v("v-card-actions"), fe = v("v-card"), ie = v("v-dialog");
339
+ return b(), O(ie, {
346
340
  modelValue: N(t),
347
- "onUpdate:modelValue": w[2] || (w[2] = ($) => J(t) ? t.value = $ : null),
341
+ "onUpdate:modelValue": h[2] || (h[2] = ($) => F(t) ? t.value = $ : null),
348
342
  onKeydown: [
349
- w[3] || (w[3] = U(A(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
350
- U(A(I, ["stop", "prevent"]), ["enter"])
343
+ h[3] || (h[3] = U(A(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
344
+ U(A(L, ["stop", "prevent"]), ["enter"])
351
345
  ],
352
346
  transition: "dialog-top-transition",
353
347
  "max-width": "600px"
354
348
  }, {
355
- default: v(() => [
356
- h(ie, null, {
357
- default: v(() => [
358
- h(z, null, {
359
- default: v(() => [
360
- V(b(o.value), 1)
361
- ]),
362
- _: 1
363
- }),
364
- l.value ? (C(), O(E, { key: 0 }, {
365
- default: v(() => [
366
- V(b(l.value), 1)
349
+ default: m(() => [
350
+ y(fe, { title: o.value }, {
351
+ default: m(() => [
352
+ l.value ? (b(), O(E, { key: 0 }, {
353
+ default: m(() => [
354
+ T(D(l.value), 1)
367
355
  ]),
368
356
  _: 1
369
- })) : Re("", !0),
370
- h(de, { class: "mx-3" }, {
371
- default: v(() => [
372
- h(pe, {
357
+ })) : Oe("", !0),
358
+ y(_e, { class: "mx-3" }, {
359
+ default: m(() => [
360
+ y(pe, {
373
361
  modelValue: s.value,
374
- "onUpdate:modelValue": w[0] || (w[0] = ($) => s.value = $),
362
+ "onUpdate:modelValue": h[0] || (h[0] = ($) => s.value = $),
375
363
  label: n.value,
376
364
  placeholder: r.value,
377
365
  rules: u.value,
@@ -381,25 +369,25 @@ const Ae = /* @__PURE__ */ R({
381
369
  ]),
382
370
  _: 1
383
371
  }),
384
- h(fe, { class: "d-flex justify-end" }, {
385
- default: v(() => [
386
- h(P, {
387
- onClick: w[1] || (w[1] = ($) => t.value = !1),
372
+ y(de, { class: "d-flex justify-end" }, {
373
+ default: m(() => [
374
+ y(Z, {
375
+ onClick: h[1] || (h[1] = ($) => t.value = !1),
388
376
  color: j.value,
389
377
  variant: "text"
390
378
  }, {
391
- default: v(() => [
392
- V(b(D.value), 1)
379
+ default: m(() => [
380
+ T(D(V.value), 1)
393
381
  ]),
394
382
  _: 1
395
383
  }, 8, ["color"]),
396
- h(P, {
397
- onClick: I,
384
+ y(Z, {
385
+ onClick: L,
398
386
  color: M.value,
399
387
  variant: "text"
400
388
  }, {
401
- default: v(() => [
402
- V(b(B.value), 1)
389
+ default: m(() => [
390
+ T(D(B.value), 1)
403
391
  ]),
404
392
  _: 1
405
393
  }, 8, ["color"])
@@ -408,43 +396,43 @@ const Ae = /* @__PURE__ */ R({
408
396
  })
409
397
  ]),
410
398
  _: 1
411
- })
399
+ }, 8, ["title"])
412
400
  ]),
413
401
  _: 1
414
402
  }, 8, ["modelValue", "onKeydown"]);
415
403
  };
416
404
  }
417
- }), Fe = { class: "mx-auto my-auto" }, Je = { class: "d-flex align-center justify-center w-100 h-100" }, Xe = /* @__PURE__ */ R({
405
+ }), ze = { class: "mx-auto my-auto" }, Fe = { class: "d-flex align-center justify-center w-100 h-100" }, Je = /* @__PURE__ */ R({
418
406
  __name: "index",
419
407
  setup(e) {
420
- const a = X(), { open: t } = Q("waitDlg"), o = () => {
408
+ const a = J(), { open: t } = G("waitDlg"), o = () => {
421
409
  t.value = !0;
422
410
  }, l = () => {
423
411
  t.value = !1;
424
412
  };
425
- return S(() => {
426
- _.on("openWaitDlg", o), _.on("closeWaitDlg", l);
427
- }), T(() => {
428
- _.off("openWaitDlg", o), _.off("closeWaitDlg", l);
413
+ return C(() => {
414
+ p.on("openWaitDlg", o), p.on("closeWaitDlg", l);
415
+ }), q(() => {
416
+ p.off("openWaitDlg", o), p.off("closeWaitDlg", l);
429
417
  }), (n, r) => {
430
- const u = g("v-card"), s = g("v-dialog");
431
- return C(), O(s, {
418
+ const u = v("v-card"), s = v("v-dialog");
419
+ return b(), O(s, {
432
420
  modelValue: N(t),
433
- "onUpdate:modelValue": r[0] || (r[0] = (c) => J(t) ? t.value = c : null),
421
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => F(t) ? t.value = c : null),
434
422
  persistent: "",
435
423
  "no-click-animation": "",
436
424
  fullscreen: ""
437
425
  }, {
438
- default: v(() => [
439
- m("div", Fe, [
440
- h(u, {
426
+ default: m(() => [
427
+ g("div", ze, [
428
+ y(u, {
441
429
  width: "300px",
442
430
  height: "80px",
443
431
  loading: ""
444
432
  }, {
445
- default: v(() => [
446
- m("div", Je, [
447
- m("span", null, b(N(a).t("waitingResponse")), 1)
433
+ default: m(() => [
434
+ g("div", Fe, [
435
+ g("span", null, D(N(a).t("waitingResponse")), 1)
448
436
  ])
449
437
  ]),
450
438
  _: 1
@@ -455,10 +443,10 @@ const Ae = /* @__PURE__ */ R({
455
443
  }, 8, ["modelValue"]);
456
444
  };
457
445
  }
458
- }), Ge = (e) => {
459
- e.component("v-alert", ve), e.component("v-btn", me), e.component("v-card", he), e.component("v-card-actions", we), e.component("v-card-text", ye), e.component("v-card-title", xe), e.component("v-dialog", ke), e.component("v-form", be), e.component("v-text-field", Ce), e.component("x-confirm-dlg", Ae), e.component("x-loading", Ne), e.component("x-message", He), e.component("x-prompt-dlg", ze), e.component("x-wait-dlg", Xe);
446
+ }), Xe = (e) => {
447
+ e.component("v-alert", ge), e.component("v-btn", ve), e.component("v-card", me), e.component("v-card-actions", he), e.component("v-card-text", we), e.component("v-card-title", ye), e.component("v-dialog", xe), e.component("v-form", ke), e.component("v-text-field", be), e.component("x-confirm-dlg", $e), e.component("x-loading", Ke), e.component("x-message", We), e.component("x-prompt-dlg", He), e.component("x-wait-dlg", Je);
460
448
  };
461
- function it() {
449
+ function ft() {
462
450
  const e = H(), a = f(() => e.global.current.value.colors.primary), t = f(() => e.global.current.value.colors.secondary), o = f(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = f(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = f(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = f(() => e.current.value.dark ? "#303030" : "#f6f6f6"), u = f(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
463
451
  return {
464
452
  primaryColor: a,
@@ -470,7 +458,7 @@ function it() {
470
458
  borderColor: u
471
459
  };
472
460
  }
473
- const Y = le(
461
+ const Q = oe(
474
462
  "global",
475
463
  () => {
476
464
  const e = H(), a = i();
@@ -500,91 +488,91 @@ const Y = le(
500
488
  ]
501
489
  }
502
490
  ), K = require("js-cookie");
503
- function gt(e) {
504
- const a = Ee.create({
491
+ function it(e) {
492
+ const a = Ie.create({
505
493
  timeout: 6e3
506
494
  });
507
495
  return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
508
- (t) => Qe(t),
496
+ (t) => Ge(t),
509
497
  (t) => {
510
- Ye(t, e.onError);
498
+ Qe(t, e.onError);
511
499
  }
512
500
  ), a.interceptors.response.use(
513
- (t) => Ze(t),
514
- (t) => Pe(t, e.onError)
501
+ (t) => Ye(t),
502
+ (t) => Ze(t, e.onError)
515
503
  ), a;
516
504
  }
517
- function Qe(e) {
505
+ function Ge(e) {
518
506
  const a = K.get("accessToken") ?? "";
519
507
  return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
520
508
  }
521
- function Ye(e, a) {
509
+ function Qe(e, a) {
522
510
  console.error(e), a("request timeout");
523
511
  }
524
- function Ze(e) {
512
+ function Ye(e) {
525
513
  return e.data;
526
514
  }
527
- function Pe(e, a) {
515
+ function Ze(e, a) {
528
516
  var l;
529
517
  const t = e.response;
530
518
  if (!t)
531
519
  return Promise.reject(e);
532
- t.status === 401 && et();
520
+ t.status === 401 && Pe();
533
521
  let o = (l = t.data) == null ? void 0 : l.message;
534
522
  return o || (o = {
535
523
  code: t.status,
536
524
  message: t.statusText
537
525
  }), a(o), Promise.reject(e);
538
526
  }
539
- function et() {
540
- K.remove("accessToken"), K.remove("refreshToken"), K.remove("activeOrg"), re().replace({ path: "/passport/login" });
527
+ function Pe() {
528
+ K.remove("accessToken"), K.remove("refreshToken"), K.remove("activeOrg"), le().replace({ path: "/passport/login" });
541
529
  }
542
- let ee = Date.now();
543
- function ue() {
530
+ let P = Date.now();
531
+ function ce() {
544
532
  const e = Date.now();
545
- return e - ee > 500 ? (ee = e, !0) : !1;
533
+ return e - P > 500 ? (P = e, !0) : !1;
546
534
  }
547
- let tt = 0;
548
- function se() {
549
- return ++tt;
535
+ let et = 0;
536
+ function ue() {
537
+ return ++et;
550
538
  }
551
- async function vt(e) {
552
- if (!ue())
539
+ async function gt(e) {
540
+ if (!ce())
553
541
  return;
554
542
  let a = !1, t;
555
543
  const o = (n) => {
556
544
  t = n, a = !0;
557
- }, l = se();
558
- return _.on("confirmDlgResult" + l, o), _.emit("confirmDlg", { ...e, seq: l }), await G(() => a), _.off("confirmDlgResult" + l, o), t;
545
+ }, l = ue();
546
+ return p.on("confirmDlgResult" + l, o), p.emit("confirmDlg", { ...e, seq: l }), await X(() => a), p.off("confirmDlgResult" + l, o), t;
559
547
  }
560
- async function mt(e) {
561
- if (!ue())
548
+ async function vt(e) {
549
+ if (!ce())
562
550
  return;
563
551
  let a = !1, t;
564
552
  const o = (n) => {
565
553
  t = n, a = !0;
566
- }, l = se();
567
- return _.on("promptDlgResult" + l, o), _.emit("promptDlg", { ...e, seq: l }), await G(() => a), _.off("promptDlgResult" + l, o), t;
554
+ }, l = ue();
555
+ return p.on("promptDlgResult" + l, o), p.emit("promptDlg", { ...e, seq: l }), await X(() => a), p.off("promptDlgResult" + l, o), t;
556
+ }
557
+ function mt() {
558
+ p.emit("openWaitDlg");
568
559
  }
569
560
  function ht() {
570
- _.emit("openWaitDlg");
561
+ p.emit("closeWaitDlg");
571
562
  }
572
- function wt() {
573
- _.emit("closeWaitDlg");
563
+ function wt(e, a) {
564
+ p.emit("message", { type: "error", text: e, timeout: a });
574
565
  }
575
566
  function yt(e, a) {
576
- _.emit("message", { type: "error", text: e, timeout: a });
567
+ p.emit("message", { type: "info", text: e, timeout: a });
577
568
  }
578
569
  function xt(e, a) {
579
- _.emit("message", { type: "info", text: e, timeout: a });
570
+ p.emit("message", { type: "success", text: e, timeout: a });
580
571
  }
581
572
  function kt(e, a) {
582
- _.emit("message", { type: "success", text: e, timeout: a });
583
- }
584
- function bt(e, a) {
585
- _.emit("message", { type: "warning", text: e, timeout: a });
573
+ p.emit("message", { type: "warning", text: e, timeout: a });
586
574
  }
587
- function Ct(e) {
575
+ function bt(e) {
588
576
  var o, l;
589
577
  if (!window.appAppear) {
590
578
  window.appAppear = !0;
@@ -595,8 +583,8 @@ function Ct(e) {
595
583
  t.add("app-reset");
596
584
  }, 0));
597
585
  }
598
- var at = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_calc_space = "list_calc_space", e.get_calc_space = "get_calc_space", e.create_calc_space = "create_calc_space", e.delete_calc_space = "delete_calc_space", e.update_calc_space = "update_calc_space", e.arrange_calc_space = "arrange_calc_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_calc_layer = "open_calc_layer", e.list_db_space = "list_db_space", e.get_db_space = "get_db_space", e.create_db_space = "create_db_space", e.delete_db_space = "delete_db_space", e.update_db_space = "update_db_space", e.arrange_db_space = "arrange_db_space", e.list_model_group = "list_model_group", e.create_model_group = "create_model_group", e.delete_model_group = "delete_model_group", e.update_model_group = "update_model_group", e.arrange_model_group = "arrange_model_group", e.list_model = "list_model", e.get_model = "get_model", e.create_model = "create_model", e.delete_model = "delete_model", e.update_model = "update_model", e.get_model_data = "get_model_data", e.create_model_data = "create_model_data", e.delete_model_data = "delete_model_data", e.update_model_data = "update_model_data", e.get_graph = "get_graph", e.update_graph = "update_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_asset_space = "list_asset_space", e.get_asset_space = "get_asset_space", e.create_asset_space = "create_asset_space", e.delete_asset_space = "delete_asset_space", e.update_asset_space = "update_asset_space", e.arrange_asset_space = "arrange_asset_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_asset = "list_asset", e.get_asset = "get_asset", e.create_asset = "create_asset", e.delete_asset = "delete_asset", e.update_asset = "update_asset", e.move_asset = "move_asset", e.open_asset_layer = "open_asset_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_model = "filter_model", e))(at || {});
599
- function te(e, a) {
586
+ var tt = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_calc_space = "list_calc_space", e.get_calc_space = "get_calc_space", e.create_calc_space = "create_calc_space", e.delete_calc_space = "delete_calc_space", e.update_calc_space = "update_calc_space", e.arrange_calc_space = "arrange_calc_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_calc_layer = "open_calc_layer", e.list_db_space = "list_db_space", e.get_db_space = "get_db_space", e.create_db_space = "create_db_space", e.delete_db_space = "delete_db_space", e.update_db_space = "update_db_space", e.arrange_db_space = "arrange_db_space", e.list_model_group = "list_model_group", e.create_model_group = "create_model_group", e.delete_model_group = "delete_model_group", e.update_model_group = "update_model_group", e.arrange_model_group = "arrange_model_group", e.list_model = "list_model", e.get_model = "get_model", e.create_model = "create_model", e.delete_model = "delete_model", e.update_model = "update_model", e.get_model_data = "get_model_data", e.create_model_data = "create_model_data", e.delete_model_data = "delete_model_data", e.update_model_data = "update_model_data", e.get_graph = "get_graph", e.update_graph = "update_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_asset_space = "list_asset_space", e.get_asset_space = "get_asset_space", e.create_asset_space = "create_asset_space", e.delete_asset_space = "delete_asset_space", e.update_asset_space = "update_asset_space", e.arrange_asset_space = "arrange_asset_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_asset = "list_asset", e.get_asset = "get_asset", e.create_asset = "create_asset", e.delete_asset = "delete_asset", e.update_asset = "update_asset", e.move_asset = "move_asset", e.open_asset_layer = "open_asset_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_model = "filter_model", e))(tt || {});
587
+ function ee(e, a) {
600
588
  if (!e)
601
589
  return !1;
602
590
  let t = e;
@@ -609,7 +597,7 @@ function te(e, a) {
609
597
  return !1;
610
598
  }), Object.keys(t).length <= 0);
611
599
  }
612
- const _e = require("js-cookie"), ot = [
600
+ const se = require("js-cookie"), at = [
613
601
  { path: "/passport/login", level: 0 },
614
602
  { path: "/passport/loginAccount", level: 1 },
615
603
  { path: "/passport/register", level: 1 },
@@ -629,10 +617,10 @@ const _e = require("js-cookie"), ot = [
629
617
  { path: "/calc", level: 1, requiredState: "org" },
630
618
  { path: "/data", level: 1, requiredState: "org" }
631
619
  ];
632
- function Z(e) {
620
+ function Y(e) {
633
621
  let a, t = 0;
634
622
  const o = e.split("/");
635
- return ot.forEach((l) => {
623
+ return at.forEach((l) => {
636
624
  const n = l.path.split("/");
637
625
  let r = 0;
638
626
  for (let u = 0; u < o.length && !(u >= n.length || o[u] !== n[u]); u++)
@@ -640,30 +628,30 @@ function Z(e) {
640
628
  r >= t && (a = l, t = r);
641
629
  }), a;
642
630
  }
643
- function ae(e) {
631
+ function te(e) {
644
632
  if (e === "/")
645
633
  return { app: "", path: "/", level: -1 };
646
- const a = Z(e);
634
+ const a = Y(e);
647
635
  if (!a)
648
636
  return { app: "invalidApp", path: "/invalidApp/invalidRoute", level: -1 };
649
637
  const t = e.split("/");
650
638
  return console.assert(t.length >= 2), { app: t[1], path: a.path, level: a.level };
651
639
  }
652
- const oe = i("");
640
+ const ae = i("");
653
641
  function k(e, a) {
654
- const t = ae(e), o = ae(a), l = t.app === o.app, n = t.path === o.path, r = t.level >= o.level;
642
+ const t = te(e), o = te(a), l = t.app === o.app, n = t.path === o.path, r = t.level >= o.level;
655
643
  console.info(
656
644
  `~~~~before route change~~~~ ${o.path} -> ${t.path} inner=${l} forward=${r}`
657
- ), l ? n ? oe.value = "" : oe.value = r ? "inner-left" : "inner-right" : window.routeExtras = { forward: r };
645
+ ), l ? n ? ae.value = "" : ae.value = r ? "inner-left" : "inner-right" : window.routeExtras = { forward: r };
658
646
  }
659
- function lt() {
660
- return !!_e.get("accessToken");
647
+ function ot() {
648
+ return !!se.get("accessToken");
661
649
  }
662
- function rt() {
663
- return !!_e.get("activeOrg");
650
+ function lt() {
651
+ return !!se.get("activeOrg");
664
652
  }
665
- function Vt(e, a, t) {
666
- const o = lt(), l = rt(), n = Z(e.path);
653
+ function Ct(e, a, t) {
654
+ const o = ot(), l = lt(), n = Y(e.path);
667
655
  if (!n) {
668
656
  t();
669
657
  return;
@@ -702,8 +690,8 @@ function Vt(e, a, t) {
702
690
  else
703
691
  k(e.path, a.path), t();
704
692
  }
705
- function St(e) {
706
- const a = Ie(), t = re(), o = Y(), l = ne(), n = (c) => {
693
+ function Vt(e) {
694
+ const a = je(), t = le(), o = Q(), l = re(), n = (c) => {
707
695
  if (c.key === "Escape") {
708
696
  r();
709
697
  return;
@@ -717,13 +705,13 @@ function St(e) {
717
705
  return;
718
706
  }
719
707
  }, r = () => {
720
- var y;
708
+ var w;
721
709
  if (!l.isEmpty()) {
722
710
  l.hasView("waitDlg") || l.popView();
723
711
  return;
724
712
  }
725
- const c = Z(a.path);
726
- (c == null ? void 0 : c.level) === 0 ? (y = navigator == null ? void 0 : navigator.Backbutton) == null || y.goHome(
713
+ const c = Y(a.path);
714
+ (c == null ? void 0 : c.level) === 0 ? (w = navigator == null ? void 0 : navigator.Backbutton) == null || w.goHome(
727
715
  () => {
728
716
  },
729
717
  () => {
@@ -734,25 +722,25 @@ function St(e) {
734
722
  }, s = () => {
735
723
  o.locale === "en" ? o.locale = "zhHans" : o.locale = "en";
736
724
  };
737
- return S(() => {
725
+ return C(() => {
738
726
  window.addEventListener("keydown", n, !1);
739
- }), T(() => {
727
+ }), q(() => {
740
728
  window.removeEventListener("keydown", n, !1);
741
729
  }), {};
742
730
  }
743
- function Dt() {
744
- const e = Y();
731
+ function St() {
732
+ const e = Q();
745
733
  function a(t, o) {
746
734
  const l = e.permissionObjects[t];
747
- return l ? o ? !(!te(l.includes, o) || te(l.excludes, o)) : !0 : !1;
735
+ return l ? o ? !(!ee(l.includes, o) || ee(l.excludes, o)) : !0 : !1;
748
736
  }
749
737
  return { verifyPermission: a };
750
738
  }
751
- function nt(e, a) {
739
+ function rt(e, a) {
752
740
  return e.post("pullPermission", a);
753
741
  }
754
- function qt(e) {
755
- const a = Y();
742
+ function Dt(e) {
743
+ const a = Q();
756
744
  let t;
757
745
  const o = () => {
758
746
  clearTimeout(t), t = setTimeout(async () => {
@@ -760,7 +748,7 @@ function qt(e) {
760
748
  }, 3e3);
761
749
  }, l = async () => {
762
750
  try {
763
- const { update: n, permissions: r } = await nt(e, {
751
+ const { update: n, permissions: r } = await rt(e, {
764
752
  checksum: a.permissionChecksum
765
753
  });
766
754
  if (!n)
@@ -777,46 +765,43 @@ function qt(e) {
777
765
  console.error(n);
778
766
  }
779
767
  };
780
- return S(() => {
768
+ return C(() => {
781
769
  l(), o();
782
- }), T(() => {
770
+ }), q(() => {
783
771
  clearTimeout(t), t = void 0;
784
772
  }), {};
785
773
  }
786
- function Tt() {
787
- const e = H(), a = f(() => e.current.value.dark), t = f(() => !!window.cordova), o = f(() => {
788
- const { width: l } = je();
789
- return l.value <= 1280 ? l.value + "px" : l.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px";
790
- });
791
- return { dark: a, sysBarAvail: t, compactWidth: o };
774
+ function qt() {
775
+ const e = H(), a = Re(), t = f(() => e.current.value.dark), o = f(() => !!window.cordova), l = f(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
776
+ return { dark: t, sysBarAvail: o, compactWidth: l };
792
777
  }
793
- const Ot = { install: Ge };
778
+ const Tt = { install: Xe };
794
779
  export {
795
- at as Permission,
796
- Ct as appAppear,
797
- wt as closeWaitDlg,
798
- gt as createAxios,
799
- Ot as default,
800
- _ as eventBus,
801
- te as isExist,
802
- Z as matchRouteMeta,
803
- yt as messageError,
804
- xt as messageInfo,
805
- kt as messageSuccess,
806
- bt as messageWarning,
807
- Vt as onBeforeEach,
808
- vt as openConfirmDlg,
809
- mt as openPromptDlg,
810
- ht as openWaitDlg,
811
- oe as routeTransName,
812
- it as useColor,
813
- Y as useGlobalStore,
814
- St as useHotkey,
815
- Dt as usePermission,
816
- qt as usePullPermission,
817
- Tt as useSystem,
818
- ne as useViewMgrStore,
819
- Q as useViewStack,
820
- ft as waitMs,
821
- G as waitUtil
780
+ tt as Permission,
781
+ bt as appAppear,
782
+ ht as closeWaitDlg,
783
+ it as createAxios,
784
+ Tt as default,
785
+ p as eventBus,
786
+ ee as isExist,
787
+ Y as matchRouteMeta,
788
+ wt as messageError,
789
+ yt as messageInfo,
790
+ xt as messageSuccess,
791
+ kt as messageWarning,
792
+ Ct as onBeforeEach,
793
+ gt as openConfirmDlg,
794
+ vt as openPromptDlg,
795
+ mt as openWaitDlg,
796
+ ae as routeTransName,
797
+ ft as useColor,
798
+ Q as useGlobalStore,
799
+ Vt as useHotkey,
800
+ St as usePermission,
801
+ Dt as usePullPermission,
802
+ qt as useSystem,
803
+ re as useViewMgrStore,
804
+ G as useViewStack,
805
+ dt as waitMs,
806
+ X as waitUtil
822
807
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.3.17",
4
+ "version": "0.3.19",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",