x-essential-lib 0.5.49 → 0.5.51

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.
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.x-cont[data-v-f4ad116e]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-f4ad116e]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-f4ad116e]{transform-origin:20px 20px;animation:lds-spinner-f4ad116e 1.2s linear infinite}.lds-spinner div[data-v-f4ad116e]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-f4ad116e]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f4ad116e]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f4ad116e]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f4ad116e]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f4ad116e]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f4ad116e]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f4ad116e]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f4ad116e]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f4ad116e]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f4ad116e]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f4ad116e{0%{opacity:1}to{opacity:0}}.x-cont[data-v-8c2268ea]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { ref as f, watch as N, computed as i, onMounted as S, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as R, createBlock as E, unref as L, isRef as G, withKeys as F, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as j, createElementBlock as J, normalizeStyle as ge, pushScopeId as ve, popScopeId as me, createElementVNode as m, reactive as he, Fragment as we, renderList as xe, createCommentVNode as ye } from "vue";
3
- import { useTheme as H, useLocale as Q, useDisplay as ke } from "vuetify";
2
+ import { ref as i, watch as N, computed as f, onMounted as S, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as R, createBlock as E, unref as z, isRef as Q, withKeys as F, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as A, createElementBlock as X, normalizeStyle as ge, pushScopeId as ve, popScopeId as me, createElementVNode as m, reactive as he, Fragment as we, renderList as xe, createCommentVNode as ye } from "vue";
3
+ import { useTheme as H, useLocale as Y, useDisplay as ke } from "vuetify";
4
4
  import { defineStore as le } from "pinia";
5
5
  import be from "axios";
6
- import { useRouter as re, useRoute as Ce } from "vue-router";
7
- const Y = le(
6
+ import { useRouter as ne, useRoute as Ce } from "vue-router";
7
+ const Z = le(
8
8
  "global",
9
9
  () => {
10
- const e = H(), a = f(), t = f("en"), l = f({}), o = f(""), n = f("");
10
+ const e = H(), a = i(), t = i("en"), l = i({}), o = i(""), r = i("");
11
11
  return N(
12
12
  a,
13
13
  () => {
@@ -21,7 +21,7 @@ const Y = le(
21
21
  locale: t,
22
22
  permissionObjects: l,
23
23
  permissionChecksum: o,
24
- lastAppPath: n
24
+ lastAppPath: r
25
25
  };
26
26
  },
27
27
  {
@@ -36,8 +36,8 @@ const Y = le(
36
36
  }
37
37
  ]
38
38
  }
39
- ), ne = le("viewMgr", () => {
40
- const e = f([]);
39
+ ), re = le("viewMgr", () => {
40
+ const e = i([]);
41
41
  function a() {
42
42
  return e.value.length <= 0;
43
43
  }
@@ -52,11 +52,11 @@ const Y = le(
52
52
  function o(p) {
53
53
  e.value.push(p);
54
54
  }
55
- function n(p) {
55
+ function r(p) {
56
56
  const _ = e.value.findIndex((v) => v === p);
57
57
  _ !== -1 && e.value.splice(_, e.value.length - _);
58
58
  }
59
- function r() {
59
+ function n() {
60
60
  console.assert(e.value.length > 0), e.value.pop();
61
61
  }
62
62
  function c() {
@@ -68,13 +68,13 @@ const Y = le(
68
68
  lastView: t,
69
69
  hasView: l,
70
70
  addView: o,
71
- delView: n,
72
- popView: r,
71
+ delView: r,
72
+ popView: n,
73
73
  clearViews: c
74
74
  };
75
75
  });
76
76
  /*! js-cookie v3.0.5 | MIT */
77
- function z(e) {
77
+ function W(e) {
78
78
  for (var a = 1; a < arguments.length; a++) {
79
79
  var t = arguments[a];
80
80
  for (var l in t)
@@ -93,48 +93,48 @@ var De = {
93
93
  );
94
94
  }
95
95
  };
96
- function X(e, a) {
97
- function t(o, n, r) {
96
+ function G(e, a) {
97
+ function t(o, r, n) {
98
98
  if (!(typeof document > "u")) {
99
- r = z({}, a, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
99
+ n = W({}, a, n), typeof n.expires == "number" && (n.expires = new Date(Date.now() + n.expires * 864e5)), n.expires && (n.expires = n.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
100
100
  var c = "";
101
- for (var p in r)
102
- r[p] && (c += "; " + p, r[p] !== !0 && (c += "=" + r[p].split(";")[0]));
103
- return document.cookie = o + "=" + e.write(n, o) + c;
101
+ for (var p in n)
102
+ n[p] && (c += "; " + p, n[p] !== !0 && (c += "=" + n[p].split(";")[0]));
103
+ return document.cookie = o + "=" + e.write(r, o) + c;
104
104
  }
105
105
  }
106
106
  function l(o) {
107
107
  if (!(typeof document > "u" || arguments.length && !o)) {
108
- for (var n = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < n.length; c++) {
109
- var p = n[c].split("="), _ = p.slice(1).join("=");
108
+ for (var r = document.cookie ? document.cookie.split("; ") : [], n = {}, c = 0; c < r.length; c++) {
109
+ var p = r[c].split("="), _ = p.slice(1).join("=");
110
110
  try {
111
111
  var v = decodeURIComponent(p[0]);
112
- if (r[v] = e.read(_, v), o === v)
112
+ if (n[v] = e.read(_, v), o === v)
113
113
  break;
114
114
  } catch {
115
115
  }
116
116
  }
117
- return o ? r[o] : r;
117
+ return o ? n[o] : n;
118
118
  }
119
119
  }
120
120
  return Object.create(
121
121
  {
122
122
  set: t,
123
123
  get: l,
124
- remove: function(o, n) {
124
+ remove: function(o, r) {
125
125
  t(
126
126
  o,
127
127
  "",
128
- z({}, n, {
128
+ W({}, r, {
129
129
  expires: -1
130
130
  })
131
131
  );
132
132
  },
133
133
  withAttributes: function(o) {
134
- return X(this.converter, z({}, this.attributes, o));
134
+ return G(this.converter, W({}, this.attributes, o));
135
135
  },
136
136
  withConverter: function(o) {
137
- return X(z({}, this.converter, o), this.attributes);
137
+ return G(W({}, this.converter, o), this.attributes);
138
138
  }
139
139
  },
140
140
  {
@@ -143,8 +143,8 @@ function X(e, a) {
143
143
  }
144
144
  );
145
145
  }
146
- var B = X(De, { path: "/" });
147
- function lt(e) {
146
+ var B = G(De, { path: "/" });
147
+ function nt(e) {
148
148
  const a = be.create({
149
149
  timeout: 6e3
150
150
  });
@@ -181,7 +181,7 @@ function qe(e, a) {
181
181
  }), a(l), Promise.reject(e);
182
182
  }
183
183
  function Oe() {
184
- B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"), re().replace({ path: "/passport/login" });
184
+ B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"), ne().replace({ path: "/passport/login" });
185
185
  }
186
186
  function Te(e) {
187
187
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
@@ -207,69 +207,74 @@ async function rt(e) {
207
207
  setTimeout(a, e);
208
208
  });
209
209
  }
210
- async function Z(e, a, t) {
210
+ async function P(e, a, t) {
211
211
  const l = Date.now();
212
212
  return new Promise((o) => {
213
- const n = async () => {
214
- e() ? o(!0) : a && Date.now() - l > a ? o(!1) : setTimeout(n, t ?? 30);
213
+ const r = async () => {
214
+ e() ? o(!0) : a && Date.now() - l > a ? o(!1) : setTimeout(r, t ?? 30);
215
215
  };
216
- n();
216
+ r();
217
217
  });
218
218
  }
219
+ function Ae(e) {
220
+ var l;
221
+ const a = "single-spa-application:" + e, t = (l = document.getElementById(a)) == null ? void 0 : l.classList;
222
+ t && t.remove("app-left", "app-right");
223
+ }
219
224
  function je(e, a) {
220
225
  var o;
221
226
  const t = "single-spa-application:" + e, l = (o = document.getElementById(t)) == null ? void 0 : o.classList;
222
- l && (l.remove("app-left", "app-right", "app-reset"), a ? l.add("app-left") : l.add("app-right"), setTimeout(() => {
223
- l.add("app-reset");
224
- }, 1));
227
+ l && (l.remove("app-left", "app-right"), setTimeout(() => {
228
+ a ? l.add("app-left") : l.add("app-right");
229
+ }, 0));
225
230
  }
226
- let te = Date.now();
231
+ let ae = Date.now();
227
232
  function ce() {
228
233
  const e = Date.now();
229
- return e - te > 500 ? (te = e, !0) : !1;
234
+ return e - ae > 500 ? (ae = e, !0) : !1;
230
235
  }
231
- let Ae = 0;
236
+ let Ie = 0;
232
237
  function ue() {
233
- return ++Ae;
238
+ return ++Ie;
234
239
  }
235
- async function nt(e) {
240
+ async function ct(e) {
236
241
  if (!ce())
237
242
  return;
238
243
  let a = !1, t;
239
- const l = (n) => {
240
- t = n, a = !0;
244
+ const l = (r) => {
245
+ t = r, a = !0;
241
246
  }, o = ue();
242
- return s.on("confirmDlgResult" + o, l), s.emit("confirmDlg", { ...e, seq: o }), await Z(() => a), s.off("confirmDlgResult" + o, l), t;
247
+ return s.on("confirmDlgResult" + o, l), s.emit("confirmDlg", { ...e, seq: o }), await P(() => a), s.off("confirmDlgResult" + o, l), t;
243
248
  }
244
- async function ct(e) {
249
+ async function ut(e) {
245
250
  if (!ce())
246
251
  return;
247
252
  let a = !1, t;
248
- const l = (n) => {
249
- t = n, a = !0;
253
+ const l = (r) => {
254
+ t = r, a = !0;
250
255
  }, o = ue();
251
- return s.on("promptDlgResult" + o, l), s.emit("promptDlg", { ...e, seq: o }), await Z(() => a), s.off("promptDlgResult" + o, l), t;
256
+ return s.on("promptDlgResult" + o, l), s.emit("promptDlg", { ...e, seq: o }), await P(() => a), s.off("promptDlgResult" + o, l), t;
252
257
  }
253
- function ut() {
258
+ function pt() {
254
259
  s.emit("openWaitDlg");
255
260
  }
256
- function pt() {
261
+ function st() {
257
262
  s.emit("closeWaitDlg");
258
263
  }
259
- function st(e, a) {
264
+ function _t(e, a) {
260
265
  s.emit("message", { type: "error", text: e, timeout: a });
261
266
  }
262
- function _t(e, a) {
267
+ function dt(e, a) {
263
268
  s.emit("message", { type: "info", text: e, timeout: a });
264
269
  }
265
- function dt(e, a) {
270
+ function it(e, a) {
266
271
  s.emit("message", { type: "success", text: e, timeout: a });
267
272
  }
268
273
  function ft(e, a) {
269
274
  s.emit("message", { type: "warning", text: e, timeout: a });
270
275
  }
271
- var Ie = /* @__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))(Ie || {});
272
- function ae(e, a) {
276
+ var Be = /* @__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))(Be || {});
277
+ function oe(e, a) {
273
278
  if (!e)
274
279
  return !1;
275
280
  let t = e;
@@ -282,7 +287,7 @@ function ae(e, a) {
282
287
  return !1;
283
288
  }), Object.keys(t).length <= 0);
284
289
  }
285
- const Be = [
290
+ const Ee = [
286
291
  {
287
292
  app: "x-passport-mf",
288
293
  path: "/passport/login",
@@ -390,87 +395,87 @@ const Be = [
390
395
  mainActive: 2
391
396
  }
392
397
  ];
393
- function W(e) {
398
+ function L(e) {
394
399
  let a, t = 0;
395
400
  const l = e.split("/").filter((o) => o.trim() !== "");
396
- return Be.forEach((o) => {
397
- const n = o.path.split("/").filter((c) => c.trim() !== "");
398
- let r = 0;
399
- for (let c = 0; c < l.length && !(c >= n.length || l[c] !== n[c]); c++)
400
- r++;
401
- r > 0 && r >= t && (a = o, t = r);
401
+ return Ee.forEach((o) => {
402
+ const r = o.path.split("/").filter((c) => c.trim() !== "");
403
+ let n = 0;
404
+ for (let c = 0; c < l.length && !(c >= r.length || l[c] !== r[c]); c++)
405
+ n++;
406
+ n > 0 && n >= t && (a = o, t = n);
402
407
  }), a;
403
408
  }
404
- const oe = f("");
409
+ const J = i("");
405
410
  function D(e, a) {
406
- const t = Y();
411
+ const t = Z();
407
412
  a === "/" && (a = t.lastAppPath);
408
- const l = W(e), o = W(a);
413
+ const l = L(e), o = L(a);
409
414
  if (!l) {
410
415
  console.assert(!1, "invalid to route meta");
411
416
  return;
412
417
  }
413
418
  if (console.info(`~~~~routeChange~~~~ ${a} -> ${e}`), !o)
414
419
  return;
415
- const n = l.app === o.app, r = l.path === o.path, c = l.level >= o.level;
416
- n ? r ? oe.value = "" : oe.value = c ? "inner-left" : "inner-right" : je(l.app, c);
420
+ const r = l.app === o.app, n = l.path === o.path, c = l.level >= o.level;
421
+ r ? (n ? J.value = "" : J.value = c ? "inner-left" : "inner-right", Ae(l.app)) : (J.value = "", je(l.app, c));
417
422
  }
418
- function Ee() {
423
+ function Me() {
419
424
  return !!B.get("accessToken");
420
425
  }
421
- function Me() {
426
+ function Ue() {
422
427
  return !!B.get("activeOrg");
423
428
  }
424
- function it(e, a, t) {
425
- const l = Ee(), o = Me(), n = W(e.path);
426
- if (!n) {
429
+ function gt(e, a, t) {
430
+ const l = Me(), o = Ue(), r = L(e.path);
431
+ if (!r) {
427
432
  t();
428
433
  return;
429
434
  }
430
- if (n.requiredState === "auth")
435
+ if (r.requiredState === "auth")
431
436
  if (l)
432
437
  if (o) {
433
- const r = "/main";
434
- D(r, a.path), t({ path: r });
438
+ const n = "/main";
439
+ D(n, a.path), t({ path: n });
435
440
  } else
436
441
  D(e.path, a.path), t();
437
442
  else {
438
- const r = "/passport/login";
439
- D(r, a.path), t({ path: r });
443
+ const n = "/passport/login";
444
+ D(n, a.path), t({ path: n });
440
445
  }
441
- else if (n.requiredState === "org")
446
+ else if (r.requiredState === "org")
442
447
  if (l)
443
448
  if (o)
444
449
  D(e.path, a.path), t();
445
450
  else {
446
- const r = "/org/joinOrCreate";
447
- D(r, a.path), t({ path: r });
451
+ const n = "/org/joinOrCreate";
452
+ D(n, a.path), t({ path: n });
448
453
  }
449
454
  else {
450
- const r = "/passport/login";
451
- D(r, a.path), t({ path: r });
455
+ const n = "/passport/login";
456
+ D(n, a.path), t({ path: n });
452
457
  }
453
458
  else if (l)
454
459
  if (o) {
455
- const r = "/main";
456
- D(r, a.path), t({ path: r });
460
+ const n = "/main";
461
+ D(n, a.path), t({ path: n });
457
462
  } else {
458
- const r = "/org/joinOrCreate";
459
- D(r, a.path), t({ path: r });
463
+ const n = "/org/joinOrCreate";
464
+ D(n, a.path), t({ path: n });
460
465
  }
461
466
  else
462
467
  D(e.path, a.path), t();
463
468
  }
464
- function P(e, a) {
465
- const t = ne(), l = i({
469
+ function ee(e, a) {
470
+ const t = re(), l = f({
466
471
  get() {
467
472
  return t.hasView(e);
468
473
  },
469
- set(n) {
470
- n ? t.addView(e) : t.delView(e);
474
+ set(r) {
475
+ r ? t.addView(e) : t.delView(e);
471
476
  }
472
- }), o = (n) => {
473
- a == null || a(n), l.value = !0;
477
+ }), o = (r) => {
478
+ a == null || a(r), l.value = !0;
474
479
  };
475
480
  return S(() => {
476
481
  s.on(e, o);
@@ -478,32 +483,32 @@ function P(e, a) {
478
483
  s.off(e, o);
479
484
  }), { open: l };
480
485
  }
481
- const Ue = /* @__PURE__ */ M({
486
+ const $e = /* @__PURE__ */ M({
482
487
  __name: "index",
483
488
  setup(e) {
484
- const a = Q(), { open: t } = P("confirmDlg"), l = f(""), o = f(""), n = f(), r = f(), c = i(() => {
489
+ const a = Y(), { open: t } = ee("confirmDlg"), l = i(""), o = i(""), r = i(), n = i(), c = f(() => {
485
490
  var u;
486
- return ((u = n.value) == null ? void 0 : u.color) ?? "primary";
487
- }), p = i(() => {
491
+ return ((u = r.value) == null ? void 0 : u.color) ?? "primary";
492
+ }), p = f(() => {
488
493
  var u;
489
- return ((u = n.value) == null ? void 0 : u.text) ?? a.t("cancel");
490
- }), _ = i(() => {
494
+ return ((u = r.value) == null ? void 0 : u.text) ?? a.t("cancel");
495
+ }), _ = f(() => {
491
496
  var u;
492
- return ((u = r.value) == null ? void 0 : u.color) ?? "primary";
493
- }), v = i(() => {
497
+ return ((u = n.value) == null ? void 0 : u.color) ?? "primary";
498
+ }), v = f(() => {
494
499
  var u;
495
- return ((u = r.value) == null ? void 0 : u.text) ?? a.t("confirm");
500
+ return ((u = n.value) == null ? void 0 : u.text) ?? a.t("confirm");
496
501
  });
497
502
  let y = 0, C = !1;
498
503
  const T = (u) => {
499
- l.value = u.title, o.value = u.text, n.value = u.cancel, r.value = u.confirm, y = u.seq, C = !1, t.value = !0;
504
+ l.value = u.title, o.value = u.text, r.value = u.cancel, n.value = u.confirm, y = u.seq, C = !1, t.value = !0;
500
505
  };
501
506
  S(() => {
502
507
  s.on("confirmDlg", T);
503
508
  }), O(() => {
504
509
  s.off("confirmDlg", T);
505
510
  });
506
- const A = () => {
511
+ const j = () => {
507
512
  t.value = !1, C || (s.emit("confirmDlgResult" + y, !0), C = !0);
508
513
  };
509
514
  return N(t, (u) => {
@@ -511,11 +516,11 @@ const Ue = /* @__PURE__ */ M({
511
516
  }), (u, g) => {
512
517
  const b = h("v-card-text"), V = h("v-btn"), q = h("v-card-actions"), d = h("v-card"), x = h("v-dialog");
513
518
  return R(), E(x, {
514
- modelValue: L(t),
515
- "onUpdate:modelValue": g[1] || (g[1] = (U) => G(t) ? t.value = U : null),
519
+ modelValue: z(t),
520
+ "onUpdate:modelValue": g[1] || (g[1] = (U) => Q(t) ? t.value = U : null),
516
521
  onKeydown: [
517
522
  g[2] || (g[2] = F(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
518
- F(K(A, ["stop", "prevent"]), ["enter"])
523
+ F(K(j, ["stop", "prevent"]), ["enter"])
519
524
  ],
520
525
  transition: "dialog-top-transition",
521
526
  "max-width": "600px"
@@ -525,7 +530,7 @@ const Ue = /* @__PURE__ */ M({
525
530
  default: w(() => [
526
531
  k(b, null, {
527
532
  default: w(() => [
528
- I(j(o.value), 1)
533
+ I(A(o.value), 1)
529
534
  ]),
530
535
  _: 1
531
536
  }),
@@ -537,17 +542,17 @@ const Ue = /* @__PURE__ */ M({
537
542
  variant: "text"
538
543
  }, {
539
544
  default: w(() => [
540
- I(j(p.value), 1)
545
+ I(A(p.value), 1)
541
546
  ]),
542
547
  _: 1
543
548
  }, 8, ["color"]),
544
549
  k(V, {
545
- onClick: A,
550
+ onClick: j,
546
551
  color: _.value,
547
552
  variant: "text"
548
553
  }, {
549
554
  default: w(() => [
550
- I(j(v.value), 1)
555
+ I(A(v.value), 1)
551
556
  ]),
552
557
  _: 1
553
558
  }, 8, ["color"])
@@ -562,7 +567,7 @@ const Ue = /* @__PURE__ */ M({
562
567
  }, 8, ["modelValue", "onKeydown"]);
563
568
  };
564
569
  }
565
- }), $e = (e) => (ve("data-v-f4ad116e"), e = e(), me(), e), Ke = /* @__PURE__ */ $e(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
570
+ }), Ke = (e) => (ve("data-v-f4ad116e"), e = e(), me(), e), Le = /* @__PURE__ */ Ke(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
566
571
  /* @__PURE__ */ m("div"),
567
572
  /* @__PURE__ */ m("div"),
568
573
  /* @__PURE__ */ m("div"),
@@ -576,7 +581,7 @@ const Ue = /* @__PURE__ */ M({
576
581
  /* @__PURE__ */ m("div"),
577
582
  /* @__PURE__ */ m("div")
578
583
  ], -1)), We = [
579
- Ke
584
+ Le
580
585
  ], ze = /* @__PURE__ */ M({
581
586
  __name: "index",
582
587
  props: {
@@ -586,11 +591,11 @@ const Ue = /* @__PURE__ */ M({
586
591
  }
587
592
  },
588
593
  setup(e) {
589
- const a = H(), t = e, l = i(() => ({
594
+ const a = H(), t = e, l = f(() => ({
590
595
  background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
591
596
  zIndex: t.zIndex
592
597
  }));
593
- return (o, n) => (R(), J("div", {
598
+ return (o, r) => (R(), X("div", {
594
599
  class: "x-cont",
595
600
  style: ge(l.value)
596
601
  }, We, 4));
@@ -600,7 +605,7 @@ const Ue = /* @__PURE__ */ M({
600
605
  for (const [l, o] of a)
601
606
  t[l] = o;
602
607
  return t;
603
- }, Le = /* @__PURE__ */ pe(ze, [["__scopeId", "data-v-f4ad116e"]]), Fe = /* @__PURE__ */ M({
608
+ }, Fe = /* @__PURE__ */ pe(ze, [["__scopeId", "data-v-f4ad116e"]]), Ne = /* @__PURE__ */ M({
604
609
  __name: "item",
605
610
  props: {
606
611
  id: {},
@@ -610,30 +615,30 @@ const Ue = /* @__PURE__ */ M({
610
615
  },
611
616
  emits: ["timeout"],
612
617
  setup(e, { emit: a }) {
613
- const t = e, l = f(!0), o = a;
618
+ const t = e, l = i(!0), o = a;
614
619
  return S(() => {
615
620
  setTimeout(() => {
616
621
  o("timeout", t.id);
617
622
  }, t.timeout);
618
- }), N(l, (n) => {
619
- n || o("timeout", t.id);
620
- }), (n, r) => {
623
+ }), N(l, (r) => {
624
+ r || o("timeout", t.id);
625
+ }), (r, n) => {
621
626
  const c = h("v-alert");
622
627
  return R(), E(c, {
623
628
  modelValue: l.value,
624
- "onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p),
629
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => l.value = p),
625
630
  class: "mt-2",
626
631
  "max-width": "90%",
627
632
  width: "500px",
628
633
  elevation: "1",
629
634
  density: "compact",
630
635
  closable: "",
631
- type: n.type,
632
- text: n.text
636
+ type: r.type,
637
+ text: r.text
633
638
  }, null, 8, ["modelValue", "type", "text"]);
634
639
  };
635
640
  }
636
- }), Ne = /* @__PURE__ */ M({
641
+ }), He = /* @__PURE__ */ M({
637
642
  __name: "index",
638
643
  setup(e) {
639
644
  const a = he({ items: [] });
@@ -643,24 +648,24 @@ const Ue = /* @__PURE__ */ M({
643
648
  s.off("message", t);
644
649
  });
645
650
  const t = (c) => {
646
- n(c.type, c.text, c.timeout);
651
+ r(c.type, c.text, c.timeout);
647
652
  }, l = (c) => {
648
- r(c);
653
+ n(c);
649
654
  };
650
655
  let o = 0;
651
- const n = (c, p, _) => {
656
+ const r = (c, p, _) => {
652
657
  const v = o++;
653
658
  a.items.push({ id: v, type: c, text: p, timeout: _ });
654
- }, r = (c) => {
659
+ }, n = (c) => {
655
660
  const p = a.items.findIndex((_) => _.id === c);
656
661
  p >= 0 && a.items.splice(p, 1);
657
662
  };
658
- return (c, p) => (R(), J("div", {
663
+ return (c, p) => (R(), X("div", {
659
664
  onClick: p[0] || (p[0] = K(() => {
660
665
  }, ["stop"])),
661
666
  class: "x-cont d-flex flex-column-reverse align-center"
662
667
  }, [
663
- (R(!0), J(we, null, xe(a.items, (_) => (R(), E(Fe, {
668
+ (R(!0), X(we, null, xe(a.items, (_) => (R(), E(Ne, {
664
669
  onTimeout: l,
665
670
  id: _.id,
666
671
  type: _.type,
@@ -670,26 +675,26 @@ const Ue = /* @__PURE__ */ M({
670
675
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
671
676
  ]));
672
677
  }
673
- }), He = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-8c2268ea"]]), Je = /* @__PURE__ */ M({
678
+ }), Je = /* @__PURE__ */ pe(He, [["__scopeId", "data-v-8c2268ea"]]), Xe = /* @__PURE__ */ M({
674
679
  __name: "index",
675
680
  setup(e) {
676
- const a = Q(), { open: t } = P("promptDlg"), l = f(""), o = f(""), n = f(), r = f(), c = f(), p = f(""), _ = f(), v = f(), y = i(() => {
681
+ const a = Y(), { open: t } = ee("promptDlg"), l = i(""), o = i(""), r = i(), n = i(), c = i(), p = i(""), _ = i(), v = i(), y = f(() => {
677
682
  var d;
678
683
  return ((d = _.value) == null ? void 0 : d.color) ?? "primary";
679
- }), C = i(() => {
684
+ }), C = f(() => {
680
685
  var d;
681
686
  return ((d = _.value) == null ? void 0 : d.text) ?? a.t("cancel");
682
- }), T = i(() => {
687
+ }), T = f(() => {
683
688
  var d;
684
689
  return ((d = v.value) == null ? void 0 : d.color) ?? "primary";
685
- }), A = i(() => {
690
+ }), j = f(() => {
686
691
  var d;
687
692
  return ((d = v.value) == null ? void 0 : d.text) ?? a.t("confirm");
688
- }), u = f();
693
+ }), u = i();
689
694
  let g = 0, b = !1;
690
695
  const V = async (d) => {
691
696
  var x;
692
- l.value = d.title, o.value = d.text, n.value = d.label, r.value = d.placeholder, c.value = d.rules, p.value = d.value, _.value = d.cancel, v.value = d.confirm, g = d.seq, b = !1, t.value = !0, await Z(() => u.value !== void 0, 1e3), (x = u.value) == null || x.focus();
697
+ l.value = d.title, o.value = d.text, r.value = d.label, n.value = d.placeholder, c.value = d.rules, p.value = d.value, _.value = d.cancel, v.value = d.confirm, g = d.seq, b = !1, t.value = !0, await P(() => u.value !== void 0, 1e3), (x = u.value) == null || x.focus();
693
698
  };
694
699
  S(() => {
695
700
  s.on("promptDlg", V);
@@ -702,10 +707,10 @@ const Ue = /* @__PURE__ */ M({
702
707
  return N(t, (d) => {
703
708
  !d && !b && (s.emit("promptDlgResult" + g, void 0), b = !0);
704
709
  }), (d, x) => {
705
- const U = h("v-card-text"), se = h("v-text-field"), _e = h("v-form"), ee = h("v-btn"), de = h("v-card-actions"), fe = h("v-card"), ie = h("v-dialog");
706
- return R(), E(ie, {
707
- modelValue: L(t),
708
- "onUpdate:modelValue": x[2] || (x[2] = ($) => G(t) ? t.value = $ : null),
710
+ const U = h("v-card-text"), se = h("v-text-field"), _e = h("v-form"), te = h("v-btn"), de = h("v-card-actions"), ie = h("v-card"), fe = h("v-dialog");
711
+ return R(), E(fe, {
712
+ modelValue: z(t),
713
+ "onUpdate:modelValue": x[2] || (x[2] = ($) => Q(t) ? t.value = $ : null),
709
714
  onKeydown: [
710
715
  x[3] || (x[3] = F(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
711
716
  F(K(q, ["stop", "prevent"]), ["enter"])
@@ -714,11 +719,11 @@ const Ue = /* @__PURE__ */ M({
714
719
  "max-width": "600px"
715
720
  }, {
716
721
  default: w(() => [
717
- k(fe, { title: l.value }, {
722
+ k(ie, { title: l.value }, {
718
723
  default: w(() => [
719
724
  o.value ? (R(), E(U, { key: 0 }, {
720
725
  default: w(() => [
721
- I(j(o.value), 1)
726
+ I(A(o.value), 1)
722
727
  ]),
723
728
  _: 1
724
729
  })) : ye("", !0),
@@ -727,8 +732,8 @@ const Ue = /* @__PURE__ */ M({
727
732
  k(se, {
728
733
  modelValue: p.value,
729
734
  "onUpdate:modelValue": x[0] || (x[0] = ($) => p.value = $),
730
- label: n.value,
731
- placeholder: r.value,
735
+ label: r.value,
736
+ placeholder: n.value,
732
737
  rules: c.value,
733
738
  ref_key: "target",
734
739
  ref: u
@@ -738,23 +743,23 @@ const Ue = /* @__PURE__ */ M({
738
743
  }),
739
744
  k(de, { class: "d-flex justify-end" }, {
740
745
  default: w(() => [
741
- k(ee, {
746
+ k(te, {
742
747
  onClick: x[1] || (x[1] = ($) => t.value = !1),
743
748
  color: y.value,
744
749
  variant: "text"
745
750
  }, {
746
751
  default: w(() => [
747
- I(j(C.value), 1)
752
+ I(A(C.value), 1)
748
753
  ]),
749
754
  _: 1
750
755
  }, 8, ["color"]),
751
- k(ee, {
756
+ k(te, {
752
757
  onClick: q,
753
758
  color: T.value,
754
759
  variant: "text"
755
760
  }, {
756
761
  default: w(() => [
757
- I(j(A.value), 1)
762
+ I(A(j.value), 1)
758
763
  ]),
759
764
  _: 1
760
765
  }, 8, ["color"])
@@ -769,10 +774,10 @@ const Ue = /* @__PURE__ */ M({
769
774
  }, 8, ["modelValue", "onKeydown"]);
770
775
  };
771
776
  }
772
- }), Xe = { class: "mx-auto my-auto" }, Ge = { class: "d-flex align-center justify-center w-100 h-100" }, Qe = /* @__PURE__ */ M({
777
+ }), Ge = { class: "mx-auto my-auto" }, Qe = { class: "d-flex align-center justify-center w-100 h-100" }, Ye = /* @__PURE__ */ M({
773
778
  __name: "index",
774
779
  setup(e) {
775
- const a = Q(), { open: t } = P("waitDlg"), l = () => {
780
+ const a = Y(), { open: t } = ee("waitDlg"), l = () => {
776
781
  t.value = !0;
777
782
  }, o = () => {
778
783
  t.value = !1;
@@ -781,25 +786,25 @@ const Ue = /* @__PURE__ */ M({
781
786
  s.on("openWaitDlg", l), s.on("closeWaitDlg", o);
782
787
  }), O(() => {
783
788
  s.off("openWaitDlg", l), s.off("closeWaitDlg", o);
784
- }), (n, r) => {
789
+ }), (r, n) => {
785
790
  const c = h("v-card"), p = h("v-dialog");
786
791
  return R(), E(p, {
787
- modelValue: L(t),
788
- "onUpdate:modelValue": r[0] || (r[0] = (_) => G(t) ? t.value = _ : null),
792
+ modelValue: z(t),
793
+ "onUpdate:modelValue": n[0] || (n[0] = (_) => Q(t) ? t.value = _ : null),
789
794
  persistent: "",
790
795
  "no-click-animation": "",
791
796
  fullscreen: ""
792
797
  }, {
793
798
  default: w(() => [
794
- m("div", Xe, [
799
+ m("div", Ge, [
795
800
  k(c, {
796
801
  width: "300px",
797
802
  height: "80px",
798
803
  loading: ""
799
804
  }, {
800
805
  default: w(() => [
801
- m("div", Ge, [
802
- m("span", null, j(L(a).t("waitingResponse")), 1)
806
+ m("div", Qe, [
807
+ m("span", null, A(z(a).t("waitingResponse")), 1)
803
808
  ])
804
809
  ]),
805
810
  _: 1
@@ -810,38 +815,38 @@ const Ue = /* @__PURE__ */ M({
810
815
  }, 8, ["modelValue"]);
811
816
  };
812
817
  }
813
- }), Ye = (e) => {
814
- e.component("x-confirm-dlg", Ue), e.component("x-loading", Le), e.component("x-message", He), e.component("x-prompt-dlg", Je), e.component("x-wait-dlg", Qe);
818
+ }), Ze = (e) => {
819
+ e.component("x-confirm-dlg", $e), e.component("x-loading", Fe), e.component("x-message", Je), e.component("x-prompt-dlg", Xe), e.component("x-wait-dlg", Ye);
815
820
  };
816
- function gt() {
817
- const e = H(), a = i(() => e.global.current.value.colors.primary), t = i(() => e.global.current.value.colors.secondary), l = i(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = i(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = i(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = i(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = i(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
821
+ function vt() {
822
+ const e = H(), a = f(() => e.global.current.value.colors.primary), t = f(() => e.global.current.value.colors.secondary), l = f(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = f(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = f(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), n = f(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = f(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
818
823
  return {
819
824
  primaryColor: a,
820
825
  secondaryColor: t,
821
826
  backgroundColor0: l,
822
827
  backgroundColor1: o,
823
- backgroundColor2: n,
824
- highlightColor: r,
828
+ backgroundColor2: r,
829
+ highlightColor: n,
825
830
  borderColor: c
826
831
  };
827
832
  }
828
- function Ze(e, a) {
833
+ function Pe(e, a) {
829
834
  return e.post("pullPermission", a);
830
835
  }
831
- function vt(e, a) {
832
- const t = Ce(), l = re(), o = Y(), n = ne();
833
- let r = !0;
836
+ function mt(e, a) {
837
+ const t = Ce(), l = ne(), o = Z(), r = re();
838
+ let n = !0;
834
839
  const c = () => {
835
- r = !1;
840
+ n = !1;
836
841
  }, p = () => {
837
- r = !0;
842
+ n = !0;
838
843
  }, _ = () => {
839
844
  var g;
840
- if (!n.isEmpty()) {
841
- n.hasView("waitDlg") || n.popView();
845
+ if (!r.isEmpty()) {
846
+ r.hasView("waitDlg") || r.popView();
842
847
  return;
843
848
  }
844
- const u = W(t.path);
849
+ const u = L(t.path);
845
850
  (u == null ? void 0 : u.level) === 0 ? (g = navigator == null ? void 0 : navigator.Backbutton) == null || g.goHome(
846
851
  () => {
847
852
  },
@@ -875,12 +880,12 @@ function vt(e, a) {
875
880
  });
876
881
  let y;
877
882
  const C = async () => {
878
- if (!r)
883
+ if (!n)
879
884
  return;
880
- const u = W(t.path);
885
+ const u = L(t.path);
881
886
  if (!(!u || u.requiredState !== "org"))
882
887
  try {
883
- const { update: g, permissions: b } = await Ze(a, {
888
+ const { update: g, permissions: b } = await Pe(a, {
884
889
  checksum: o.permissionChecksum
885
890
  });
886
891
  if (!g)
@@ -900,53 +905,54 @@ function vt(e, a) {
900
905
  u && await C(), clearTimeout(y), y = setTimeout(async () => {
901
906
  await C(), y && T();
902
907
  }, 3e3);
903
- }, A = () => {
908
+ }, j = () => {
904
909
  clearTimeout(y), y = void 0;
905
910
  };
906
911
  S(() => {
907
912
  a && T(!0);
908
913
  }), O(() => {
909
- A();
914
+ j();
910
915
  });
911
916
  }
912
- function mt() {
913
- const e = Y();
917
+ function ht() {
918
+ const e = Z();
914
919
  function a(t, l) {
915
920
  const o = e.permissionObjects[t];
916
- return o ? l ? !(!ae(o.includes, l) || ae(o.excludes, l)) : !0 : !1;
921
+ return o ? l ? !(!oe(o.includes, l) || oe(o.excludes, l)) : !0 : !1;
917
922
  }
918
923
  return { verifyPermission: a };
919
924
  }
920
- function ht() {
921
- const e = H(), a = ke(), t = i(() => e.current.value.dark), l = i(() => !!window.cordova), o = i(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
925
+ function wt() {
926
+ const e = H(), a = ke(), t = f(() => e.current.value.dark), l = f(() => !!window.cordova), o = f(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
922
927
  return { dark: t, sysBarAvail: l, compactWidth: o };
923
928
  }
924
- const wt = { install: Ye };
929
+ const xt = { install: Ze };
925
930
  export {
926
- Ie as Permission,
931
+ Be as Permission,
927
932
  je as appAppear,
928
- pt as closeWaitDlg,
929
- lt as createAxios,
930
- wt as default,
933
+ Ae as clearAppAppear,
934
+ st as closeWaitDlg,
935
+ nt as createAxios,
936
+ xt as default,
931
937
  s as eventBus,
932
- ae as isExist,
933
- W as matchRouteMeta,
934
- st as messageError,
935
- _t as messageInfo,
936
- dt as messageSuccess,
938
+ oe as isExist,
939
+ L as matchRouteMeta,
940
+ _t as messageError,
941
+ dt as messageInfo,
942
+ it as messageSuccess,
937
943
  ft as messageWarning,
938
- it as onBeforeEach,
939
- nt as openConfirmDlg,
940
- ct as openPromptDlg,
941
- ut as openWaitDlg,
942
- oe as routeTransName,
943
- gt as useColor,
944
- Y as useGlobalStore,
945
- vt as useMicroApp,
946
- mt as usePermission,
947
- ht as useSystem,
948
- ne as useViewMgrStore,
949
- P as useViewStack,
944
+ gt as onBeforeEach,
945
+ ct as openConfirmDlg,
946
+ ut as openPromptDlg,
947
+ pt as openWaitDlg,
948
+ J as routeTransName,
949
+ vt as useColor,
950
+ Z as useGlobalStore,
951
+ mt as useMicroApp,
952
+ ht as usePermission,
953
+ wt as useSystem,
954
+ re as useViewMgrStore,
955
+ ee as useViewStack,
950
956
  rt as waitMs,
951
- Z as waitUtil
957
+ P as waitUtil
952
958
  };
@@ -2,4 +2,5 @@ import { Emitter, EventType } from 'mitt';
2
2
  export declare const eventBus: Emitter<Record<EventType, unknown>>;
3
3
  export declare function waitMs(ms: number): Promise<void>;
4
4
  export declare function waitUtil(conditionFunc: () => boolean, timeout?: number, interval?: number): Promise<boolean>;
5
+ export declare function clearAppAppear(name: string): void;
5
6
  export declare function appAppear(name: string, forward: boolean): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.5.49",
4
+ "version": "0.5.51",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",