x-essential-lib 0.5.19 → 0.5.20

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 +262 -254
  2. package/package.json +1 -1
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 i, computed as g, onMounted as V, onBeforeUnmount as I, defineComponent as T, watch as X, resolveComponent as m, openBlock as b, createBlock as j, unref as z, isRef as G, withKeys as F, withModifiers as U, withCtx as h, createVNode as y, createTextVNode as q, toDisplayString as S, createElementBlock as N, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as v, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
3
- import { useLocale as J, useTheme as K, useDisplay as be } from "vuetify";
4
- import { defineStore as le } from "pinia";
5
- import Ce from "axios";
6
- import { useRouter as re, useRoute as De } from "vue-router";
2
+ import { ref as f, computed as i, onMounted as O, onBeforeUnmount as B, defineComponent as E, watch as K, resolveComponent as h, openBlock as S, createBlock as T, unref as z, isRef as G, withKeys as F, withModifiers as $, withCtx as w, createVNode as x, createTextVNode as j, toDisplayString as q, createElementBlock as H, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as m, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
3
+ import { useLocale as J, useTheme as N, useDisplay as be } from "vuetify";
4
+ import { defineStore as le, storeToRefs as Ce } from "pinia";
5
+ import De from "axios";
6
+ import { useRouter as re, useRoute as Se } from "vue-router";
7
7
  const ne = le(
8
8
  "global",
9
9
  () => {
10
- const e = i(), a = i("en"), t = i({}), l = i("");
10
+ const e = f(), a = f("en"), t = f({}), l = f("");
11
11
  return {
12
12
  dark: e,
13
13
  locale: a,
@@ -24,7 +24,7 @@ const ne = le(
24
24
  ]
25
25
  }
26
26
  ), ce = le("viewMgr", () => {
27
- const e = i([]);
27
+ const e = f([]);
28
28
  function a() {
29
29
  return e.value.length <= 0;
30
30
  }
@@ -40,7 +40,7 @@ const ne = le(
40
40
  e.value.push(u);
41
41
  }
42
42
  function n(u) {
43
- const s = e.value.findIndex((_) => _ === u);
43
+ const s = e.value.findIndex((v) => v === u);
44
44
  s !== -1 && e.value.splice(s, e.value.length - s);
45
45
  }
46
46
  function r() {
@@ -69,7 +69,7 @@ function L(e) {
69
69
  }
70
70
  return e;
71
71
  }
72
- var Se = {
72
+ var Ve = {
73
73
  read: function(e) {
74
74
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
75
75
  },
@@ -80,7 +80,7 @@ var Se = {
80
80
  );
81
81
  }
82
82
  };
83
- function H(e, a) {
83
+ function X(e, a) {
84
84
  function t(o, n, r) {
85
85
  if (!(typeof document > "u")) {
86
86
  r = L({}, 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);
@@ -95,8 +95,8 @@ function H(e, a) {
95
95
  for (var n = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < n.length; c++) {
96
96
  var u = n[c].split("="), s = u.slice(1).join("=");
97
97
  try {
98
- var _ = decodeURIComponent(u[0]);
99
- if (r[_] = e.read(s, _), o === _)
98
+ var v = decodeURIComponent(u[0]);
99
+ if (r[v] = e.read(s, v), o === v)
100
100
  break;
101
101
  } catch {
102
102
  }
@@ -118,10 +118,10 @@ function H(e, a) {
118
118
  );
119
119
  },
120
120
  withAttributes: function(o) {
121
- return H(this.converter, L({}, this.attributes, o));
121
+ return X(this.converter, L({}, this.attributes, o));
122
122
  },
123
123
  withConverter: function(o) {
124
- return H(L({}, this.converter, o), this.attributes);
124
+ return X(L({}, this.converter, o), this.attributes);
125
125
  }
126
126
  },
127
127
  {
@@ -130,47 +130,47 @@ function H(e, a) {
130
130
  }
131
131
  );
132
132
  }
133
- var O = H(Se, { path: "/" });
134
- function ot(e) {
135
- const a = Ce.create({
133
+ var I = X(Ve, { path: "/" });
134
+ function lt(e) {
135
+ const a = De.create({
136
136
  timeout: 6e3
137
137
  });
138
138
  return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
139
- (t) => Ve(t),
139
+ (t) => Re(t),
140
140
  (t) => {
141
- Re(t, e.onError);
141
+ qe(t, e.onError);
142
142
  }
143
143
  ), a.interceptors.response.use(
144
- (t) => qe(t),
145
- (t) => Oe(t, e.onError)
144
+ (t) => Oe(t),
145
+ (t) => je(t, e.onError)
146
146
  ), a;
147
147
  }
148
- function Ve(e) {
149
- const a = O.get("accessToken") ?? "";
148
+ function Re(e) {
149
+ const a = I.get("accessToken") ?? "";
150
150
  return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
151
151
  }
152
- function Re(e, a) {
152
+ function qe(e, a) {
153
153
  console.error(e), a("request timeout");
154
154
  }
155
- function qe(e) {
155
+ function Oe(e) {
156
156
  return e.data;
157
157
  }
158
- function Oe(e, a) {
158
+ function je(e, a) {
159
159
  var o;
160
160
  const t = e.response;
161
161
  if (!t)
162
162
  return Promise.reject(e);
163
- t.status === 401 && je();
163
+ t.status === 401 && Ie();
164
164
  let l = (o = t.data) == null ? void 0 : o.message;
165
165
  return l || (l = {
166
166
  code: t.status,
167
167
  message: t.statusText
168
168
  }), a(l), Promise.reject(e);
169
169
  }
170
- function je() {
171
- O.remove("accessToken"), O.remove("refreshToken"), O.remove("activeOrg"), re().replace({ path: "/passport/login" });
170
+ function Ie() {
171
+ I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), re().replace({ path: "/passport/login" });
172
172
  }
173
- function Ie(e) {
173
+ function Te(e) {
174
174
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
175
175
  var l = e.get(a);
176
176
  l ? l.push(t) : e.set(a, [t]);
@@ -187,9 +187,9 @@ function Ie(e) {
187
187
  } };
188
188
  }
189
189
  const p = function() {
190
- return window.eventBus || (window.eventBus = Ie()), window.eventBus;
190
+ return window.eventBus || (window.eventBus = Te()), window.eventBus;
191
191
  }();
192
- async function lt(e) {
192
+ async function rt(e) {
193
193
  return new Promise((a) => {
194
194
  setTimeout(a, e);
195
195
  });
@@ -203,7 +203,7 @@ async function Q(e, a, t) {
203
203
  n();
204
204
  });
205
205
  }
206
- function rt(e) {
206
+ function nt(e) {
207
207
  var l, o;
208
208
  if (!window.appAppear) {
209
209
  window.appAppear = !0;
@@ -219,11 +219,11 @@ function ue() {
219
219
  const e = Date.now();
220
220
  return e - ee > 500 ? (ee = e, !0) : !1;
221
221
  }
222
- let Te = 0;
222
+ let Be = 0;
223
223
  function pe() {
224
- return ++Te;
224
+ return ++Be;
225
225
  }
226
- async function nt(e) {
226
+ async function ct(e) {
227
227
  if (!ue())
228
228
  return;
229
229
  let a = !1, t;
@@ -232,7 +232,7 @@ async function nt(e) {
232
232
  }, o = pe();
233
233
  return p.on("confirmDlgResult" + o, l), p.emit("confirmDlg", { ...e, seq: o }), await Q(() => a), p.off("confirmDlgResult" + o, l), t;
234
234
  }
235
- async function ct(e) {
235
+ async function ut(e) {
236
236
  if (!ue())
237
237
  return;
238
238
  let a = !1, t;
@@ -241,25 +241,25 @@ async function ct(e) {
241
241
  }, o = pe();
242
242
  return p.on("promptDlgResult" + o, l), p.emit("promptDlg", { ...e, seq: o }), await Q(() => a), p.off("promptDlgResult" + o, l), t;
243
243
  }
244
- function ut() {
244
+ function pt() {
245
245
  p.emit("openWaitDlg");
246
246
  }
247
- function pt() {
247
+ function st() {
248
248
  p.emit("closeWaitDlg");
249
249
  }
250
- function st(e, a) {
250
+ function _t(e, a) {
251
251
  p.emit("message", { type: "error", text: e, timeout: a });
252
252
  }
253
- function _t(e, a) {
253
+ function dt(e, a) {
254
254
  p.emit("message", { type: "info", text: e, timeout: a });
255
255
  }
256
- function dt(e, a) {
256
+ function ft(e, a) {
257
257
  p.emit("message", { type: "success", text: e, timeout: a });
258
258
  }
259
- function ft(e, a) {
259
+ function it(e, a) {
260
260
  p.emit("message", { type: "warning", text: e, timeout: a });
261
261
  }
262
- 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 || {});
262
+ var Ee = /* @__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))(Ee || {});
263
263
  function te(e, a) {
264
264
  if (!e)
265
265
  return !1;
@@ -273,7 +273,7 @@ function te(e, a) {
273
273
  return !1;
274
274
  }), Object.keys(t).length <= 0);
275
275
  }
276
- const Ee = [
276
+ const Ae = [
277
277
  { path: "/passport/login", level: 0 },
278
278
  { path: "/passport/loginAccount", level: 1 },
279
279
  { path: "/passport/register", level: 1 },
@@ -295,7 +295,7 @@ const Ee = [
295
295
  function Y(e) {
296
296
  let a, t = 0;
297
297
  const l = e.split("/").filter((o) => o.trim() !== "");
298
- return Ee.forEach((o) => {
298
+ return Ae.forEach((o) => {
299
299
  const n = o.path.split("/").filter((c) => c.trim() !== "");
300
300
  let r = 0;
301
301
  for (let c = 0; c < l.length && !(c >= n.length || l[c] !== n[c]); c++)
@@ -312,21 +312,21 @@ function ae(e) {
312
312
  const t = e.split("/");
313
313
  return console.assert(t.length >= 2), { app: t[1], path: a.path, level: a.level };
314
314
  }
315
- const oe = i("");
316
- function k(e, a) {
315
+ const oe = f("");
316
+ function D(e, a) {
317
317
  const t = ae(e), l = ae(a), o = t.app === l.app, n = t.path === l.path, r = t.level >= l.level;
318
318
  console.info(
319
319
  `~~~~before route change~~~~ ${l.path} -> ${t.path} inner=${o} forward=${r}`
320
320
  ), o ? n ? oe.value = "" : oe.value = r ? "inner-left" : "inner-right" : window.routeExtras = { forward: r };
321
321
  }
322
- function Ae() {
323
- return !!O.get("accessToken");
324
- }
325
322
  function Ue() {
326
- return !!O.get("activeOrg");
323
+ return !!I.get("accessToken");
327
324
  }
328
- function it(e, a, t) {
329
- const l = Ae(), o = Ue(), n = Y(e.path);
325
+ function Me() {
326
+ return !!I.get("activeOrg");
327
+ }
328
+ function gt(e, a, t) {
329
+ const l = Ue(), o = Me(), n = Y(e.path);
330
330
  if (!n) {
331
331
  t();
332
332
  return;
@@ -335,38 +335,38 @@ function it(e, a, t) {
335
335
  if (l)
336
336
  if (o) {
337
337
  const r = "/main";
338
- k(r, a.path), t({ path: r });
338
+ D(r, a.path), t({ path: r });
339
339
  } else
340
- k(e.path, a.path), t();
340
+ D(e.path, a.path), t();
341
341
  else {
342
342
  const r = "/passport/login";
343
- k(r, a.path), t({ path: r });
343
+ D(r, a.path), t({ path: r });
344
344
  }
345
345
  else if (n.requiredState === "org")
346
346
  if (l)
347
347
  if (o)
348
- k(e.path, a.path), t();
348
+ D(e.path, a.path), t();
349
349
  else {
350
350
  const r = "/org/joinOrCreate";
351
- k(r, a.path), t({ path: r });
351
+ D(r, a.path), t({ path: r });
352
352
  }
353
353
  else {
354
354
  const r = "/passport/login";
355
- k(r, a.path), t({ path: r });
355
+ D(r, a.path), t({ path: r });
356
356
  }
357
357
  else if (l)
358
358
  if (o) {
359
359
  const r = "/main";
360
- k(r, a.path), t({ path: r });
360
+ D(r, a.path), t({ path: r });
361
361
  } else {
362
362
  const r = "/org/joinOrCreate";
363
- k(r, a.path), t({ path: r });
363
+ D(r, a.path), t({ path: r });
364
364
  }
365
365
  else
366
- k(e.path, a.path), t();
366
+ D(e.path, a.path), t();
367
367
  }
368
368
  function Z(e, a) {
369
- const t = ce(), l = g({
369
+ const t = ce(), l = i({
370
370
  get() {
371
371
  return t.hasView(e);
372
372
  },
@@ -376,82 +376,82 @@ function Z(e, a) {
376
376
  }), o = (n) => {
377
377
  a == null || a(n), l.value = !0;
378
378
  };
379
- return V(() => {
379
+ return O(() => {
380
380
  p.on(e, o);
381
- }), I(() => {
381
+ }), B(() => {
382
382
  p.off(e, o);
383
383
  }), { open: l };
384
384
  }
385
- const Me = /* @__PURE__ */ T({
385
+ const $e = /* @__PURE__ */ E({
386
386
  __name: "index",
387
387
  setup(e) {
388
- const a = J(), { open: t } = Z("confirmDlg"), l = i(""), o = i(""), n = i(), r = i(), c = g(() => {
389
- var f;
390
- return ((f = n.value) == null ? void 0 : f.color) ?? "primary";
391
- }), u = g(() => {
392
- var f;
393
- return ((f = n.value) == null ? void 0 : f.text) ?? a.t("cancel");
394
- }), s = g(() => {
395
- var f;
396
- return ((f = r.value) == null ? void 0 : f.color) ?? "primary";
397
- }), _ = g(() => {
398
- var f;
399
- return ((f = r.value) == null ? void 0 : f.text) ?? a.t("confirm");
388
+ const a = J(), { open: t } = Z("confirmDlg"), l = f(""), o = f(""), n = f(), r = f(), c = i(() => {
389
+ var d;
390
+ return ((d = n.value) == null ? void 0 : d.color) ?? "primary";
391
+ }), u = i(() => {
392
+ var d;
393
+ return ((d = n.value) == null ? void 0 : d.text) ?? a.t("cancel");
394
+ }), s = i(() => {
395
+ var d;
396
+ return ((d = r.value) == null ? void 0 : d.color) ?? "primary";
397
+ }), v = i(() => {
398
+ var d;
399
+ return ((d = r.value) == null ? void 0 : d.text) ?? a.t("confirm");
400
400
  });
401
- let R = 0, C = !1;
402
- const M = (f) => {
403
- l.value = f.title, o.value = f.text, n.value = f.cancel, r.value = f.confirm, R = f.seq, C = !1, t.value = !0;
401
+ let C = 0, k = !1;
402
+ const V = (d) => {
403
+ l.value = d.title, o.value = d.text, n.value = d.cancel, r.value = d.confirm, C = d.seq, k = !1, t.value = !0;
404
404
  };
405
- V(() => {
406
- p.on("confirmDlg", M);
407
- }), I(() => {
408
- p.off("confirmDlg", M);
405
+ O(() => {
406
+ p.on("confirmDlg", V);
407
+ }), B(() => {
408
+ p.off("confirmDlg", V);
409
409
  });
410
- const $ = () => {
411
- t.value = !1, C || (p.emit("confirmDlgResult" + R, !0), C = !0);
410
+ const g = () => {
411
+ t.value = !1, k || (p.emit("confirmDlgResult" + C, !0), k = !0);
412
412
  };
413
- return X(t, (f) => {
414
- !f && !C && (p.emit("confirmDlgResult" + R, !1), C = !0);
415
- }), (f, x) => {
416
- const D = m("v-card-text"), B = m("v-btn"), W = m("v-card-actions"), d = m("v-card"), w = m("v-dialog");
417
- return b(), j(w, {
413
+ return K(t, (d) => {
414
+ !d && !k && (p.emit("confirmDlgResult" + C, !1), k = !0);
415
+ }), (d, b) => {
416
+ const R = h("v-card-text"), A = h("v-btn"), W = h("v-card-actions"), _ = h("v-card"), y = h("v-dialog");
417
+ return S(), T(y, {
418
418
  modelValue: z(t),
419
- "onUpdate:modelValue": x[1] || (x[1] = (E) => G(t) ? t.value = E : null),
419
+ "onUpdate:modelValue": b[1] || (b[1] = (U) => G(t) ? t.value = U : null),
420
420
  onKeydown: [
421
- x[2] || (x[2] = F(U((E) => t.value = !1, ["stop", "prevent"]), ["esc"])),
422
- F(U($, ["stop", "prevent"]), ["enter"])
421
+ b[2] || (b[2] = F($((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
422
+ F($(g, ["stop", "prevent"]), ["enter"])
423
423
  ],
424
424
  transition: "dialog-top-transition",
425
425
  "max-width": "600px"
426
426
  }, {
427
- default: h(() => [
428
- y(d, { title: l.value }, {
429
- default: h(() => [
430
- y(D, null, {
431
- default: h(() => [
432
- q(S(o.value), 1)
427
+ default: w(() => [
428
+ x(_, { title: l.value }, {
429
+ default: w(() => [
430
+ x(R, null, {
431
+ default: w(() => [
432
+ j(q(o.value), 1)
433
433
  ]),
434
434
  _: 1
435
435
  }),
436
- y(W, { class: "d-flex justify-end" }, {
437
- default: h(() => [
438
- y(B, {
439
- onClick: x[0] || (x[0] = (E) => t.value = !1),
436
+ x(W, { class: "d-flex justify-end" }, {
437
+ default: w(() => [
438
+ x(A, {
439
+ onClick: b[0] || (b[0] = (U) => t.value = !1),
440
440
  color: c.value,
441
441
  variant: "text"
442
442
  }, {
443
- default: h(() => [
444
- q(S(u.value), 1)
443
+ default: w(() => [
444
+ j(q(u.value), 1)
445
445
  ]),
446
446
  _: 1
447
447
  }, 8, ["color"]),
448
- y(B, {
449
- onClick: $,
448
+ x(A, {
449
+ onClick: g,
450
450
  color: s.value,
451
451
  variant: "text"
452
452
  }, {
453
- default: h(() => [
454
- q(S(_.value), 1)
453
+ default: w(() => [
454
+ j(q(v.value), 1)
455
455
  ]),
456
456
  _: 1
457
457
  }, 8, ["color"])
@@ -466,22 +466,22 @@ const Me = /* @__PURE__ */ T({
466
466
  }, 8, ["modelValue", "onKeydown"]);
467
467
  };
468
468
  }
469
- }), $e = (e) => (me("data-v-f4ad116e"), e = e(), he(), e), We = /* @__PURE__ */ $e(() => /* @__PURE__ */ v("div", { class: "lds-spinner" }, [
470
- /* @__PURE__ */ v("div"),
471
- /* @__PURE__ */ v("div"),
472
- /* @__PURE__ */ v("div"),
473
- /* @__PURE__ */ v("div"),
474
- /* @__PURE__ */ v("div"),
475
- /* @__PURE__ */ v("div"),
476
- /* @__PURE__ */ v("div"),
477
- /* @__PURE__ */ v("div"),
478
- /* @__PURE__ */ v("div"),
479
- /* @__PURE__ */ v("div"),
480
- /* @__PURE__ */ v("div"),
481
- /* @__PURE__ */ v("div")
482
- ], -1)), Le = [
483
- We
484
- ], ze = /* @__PURE__ */ T({
469
+ }), We = (e) => (me("data-v-f4ad116e"), e = e(), he(), e), Le = /* @__PURE__ */ We(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
470
+ /* @__PURE__ */ m("div"),
471
+ /* @__PURE__ */ m("div"),
472
+ /* @__PURE__ */ m("div"),
473
+ /* @__PURE__ */ m("div"),
474
+ /* @__PURE__ */ m("div"),
475
+ /* @__PURE__ */ m("div"),
476
+ /* @__PURE__ */ m("div"),
477
+ /* @__PURE__ */ m("div"),
478
+ /* @__PURE__ */ m("div"),
479
+ /* @__PURE__ */ m("div"),
480
+ /* @__PURE__ */ m("div"),
481
+ /* @__PURE__ */ m("div")
482
+ ], -1)), ze = [
483
+ Le
484
+ ], Fe = /* @__PURE__ */ E({
485
485
  __name: "index",
486
486
  props: {
487
487
  zIndex: {
@@ -490,21 +490,21 @@ const Me = /* @__PURE__ */ T({
490
490
  }
491
491
  },
492
492
  setup(e) {
493
- const a = K(), t = e, l = g(() => ({
493
+ const a = N(), t = e, l = i(() => ({
494
494
  background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
495
495
  zIndex: t.zIndex
496
496
  }));
497
- return (o, n) => (b(), N("div", {
497
+ return (o, n) => (S(), H("div", {
498
498
  class: "x-cont",
499
499
  style: ve(l.value)
500
- }, Le, 4));
500
+ }, ze, 4));
501
501
  }
502
502
  }), se = (e, a) => {
503
503
  const t = e.__vccOpts || e;
504
504
  for (const [l, o] of a)
505
505
  t[l] = o;
506
506
  return t;
507
- }, Fe = /* @__PURE__ */ se(ze, [["__scopeId", "data-v-f4ad116e"]]), Ke = /* @__PURE__ */ T({
507
+ }, Ke = /* @__PURE__ */ se(Fe, [["__scopeId", "data-v-f4ad116e"]]), Ne = /* @__PURE__ */ E({
508
508
  __name: "item",
509
509
  props: {
510
510
  id: {},
@@ -514,16 +514,16 @@ const Me = /* @__PURE__ */ T({
514
514
  },
515
515
  emits: ["timeout"],
516
516
  setup(e, { emit: a }) {
517
- const t = e, l = i(!0), o = a;
518
- return V(() => {
517
+ const t = e, l = f(!0), o = a;
518
+ return O(() => {
519
519
  setTimeout(() => {
520
520
  o("timeout", t.id);
521
521
  }, t.timeout);
522
- }), X(l, (n) => {
522
+ }), K(l, (n) => {
523
523
  n || o("timeout", t.id);
524
524
  }), (n, r) => {
525
- const c = m("v-alert");
526
- return b(), j(c, {
525
+ const c = h("v-alert");
526
+ return S(), T(c, {
527
527
  modelValue: l.value,
528
528
  "onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
529
529
  class: "mt-2",
@@ -537,13 +537,13 @@ const Me = /* @__PURE__ */ T({
537
537
  }, null, 8, ["modelValue", "type", "text"]);
538
538
  };
539
539
  }
540
- }), Ne = /* @__PURE__ */ T({
540
+ }), He = /* @__PURE__ */ E({
541
541
  __name: "index",
542
542
  setup(e) {
543
543
  const a = we({ items: [] });
544
- V(() => {
544
+ O(() => {
545
545
  p.on("message", t);
546
- }), I(() => {
546
+ }), B(() => {
547
547
  p.off("message", t);
548
548
  });
549
549
  const t = (c) => {
@@ -553,18 +553,18 @@ const Me = /* @__PURE__ */ T({
553
553
  };
554
554
  let o = 0;
555
555
  const n = (c, u, s) => {
556
- const _ = o++;
557
- a.items.push({ id: _, type: c, text: u, timeout: s });
556
+ const v = o++;
557
+ a.items.push({ id: v, type: c, text: u, timeout: s });
558
558
  }, r = (c) => {
559
559
  const u = a.items.findIndex((s) => s.id === c);
560
560
  u >= 0 && a.items.splice(u, 1);
561
561
  };
562
- return (c, u) => (b(), N("div", {
563
- onClick: u[0] || (u[0] = U(() => {
562
+ return (c, u) => (S(), H("div", {
563
+ onClick: u[0] || (u[0] = $(() => {
564
564
  }, ["stop"])),
565
565
  class: "x-cont d-flex flex-column-reverse align-center"
566
566
  }, [
567
- (b(!0), N(ye, null, xe(a.items, (s) => (b(), j(Ke, {
567
+ (S(!0), H(ye, null, xe(a.items, (s) => (S(), T(Ne, {
568
568
  onTimeout: l,
569
569
  id: s.id,
570
570
  type: s.type,
@@ -574,91 +574,91 @@ const Me = /* @__PURE__ */ T({
574
574
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
575
575
  ]));
576
576
  }
577
- }), He = /* @__PURE__ */ se(Ne, [["__scopeId", "data-v-8c2268ea"]]), Xe = /* @__PURE__ */ T({
577
+ }), Xe = /* @__PURE__ */ se(He, [["__scopeId", "data-v-8c2268ea"]]), Ge = /* @__PURE__ */ E({
578
578
  __name: "index",
579
579
  setup(e) {
580
- const a = J(), { open: t } = Z("promptDlg"), l = i(""), o = i(""), n = i(), r = i(), c = i(), u = i(""), s = i(), _ = i(), R = g(() => {
581
- var d;
582
- return ((d = s.value) == null ? void 0 : d.color) ?? "primary";
583
- }), C = g(() => {
584
- var d;
585
- return ((d = s.value) == null ? void 0 : d.text) ?? a.t("cancel");
586
- }), M = g(() => {
587
- var d;
588
- return ((d = _.value) == null ? void 0 : d.color) ?? "primary";
589
- }), $ = g(() => {
590
- var d;
591
- return ((d = _.value) == null ? void 0 : d.text) ?? a.t("confirm");
592
- }), f = i();
593
- let x = 0, D = !1;
594
- const B = async (d) => {
595
- var w;
596
- l.value = d.title, o.value = d.text, n.value = d.label, r.value = d.placeholder, c.value = d.rules, u.value = d.value, s.value = d.cancel, _.value = d.confirm, x = d.seq, D = !1, t.value = !0, await Q(() => f.value !== void 0, 1e3), (w = f.value) == null || w.focus();
580
+ const a = J(), { open: t } = Z("promptDlg"), l = f(""), o = f(""), n = f(), r = f(), c = f(), u = f(""), s = f(), v = f(), C = i(() => {
581
+ var _;
582
+ return ((_ = s.value) == null ? void 0 : _.color) ?? "primary";
583
+ }), k = i(() => {
584
+ var _;
585
+ return ((_ = s.value) == null ? void 0 : _.text) ?? a.t("cancel");
586
+ }), V = i(() => {
587
+ var _;
588
+ return ((_ = v.value) == null ? void 0 : _.color) ?? "primary";
589
+ }), g = i(() => {
590
+ var _;
591
+ return ((_ = v.value) == null ? void 0 : _.text) ?? a.t("confirm");
592
+ }), d = f();
593
+ let b = 0, R = !1;
594
+ const A = async (_) => {
595
+ var y;
596
+ l.value = _.title, o.value = _.text, n.value = _.label, r.value = _.placeholder, c.value = _.rules, u.value = _.value, s.value = _.cancel, v.value = _.confirm, b = _.seq, R = !1, t.value = !0, await Q(() => d.value !== void 0, 1e3), (y = d.value) == null || y.focus();
597
597
  };
598
- V(() => {
599
- p.on("promptDlg", B);
600
- }), I(() => {
601
- p.off("promptDlg", B);
598
+ O(() => {
599
+ p.on("promptDlg", A);
600
+ }), B(() => {
601
+ p.off("promptDlg", A);
602
602
  });
603
603
  const W = () => {
604
- t.value = !1, D || (p.emit("promptDlgResult" + x, u.value ?? ""), D = !0);
604
+ t.value = !1, R || (p.emit("promptDlgResult" + b, u.value ?? ""), R = !0);
605
605
  };
606
- return X(t, (d) => {
607
- !d && !D && (p.emit("promptDlgResult" + x, void 0), D = !0);
608
- }), (d, w) => {
609
- const E = m("v-card-text"), _e = m("v-text-field"), de = m("v-form"), P = m("v-btn"), fe = m("v-card-actions"), ie = m("v-card"), ge = m("v-dialog");
610
- return b(), j(ge, {
606
+ return K(t, (_) => {
607
+ !_ && !R && (p.emit("promptDlgResult" + b, void 0), R = !0);
608
+ }), (_, y) => {
609
+ const U = h("v-card-text"), _e = h("v-text-field"), de = h("v-form"), P = h("v-btn"), fe = h("v-card-actions"), ie = h("v-card"), ge = h("v-dialog");
610
+ return S(), T(ge, {
611
611
  modelValue: z(t),
612
- "onUpdate:modelValue": w[2] || (w[2] = (A) => G(t) ? t.value = A : null),
612
+ "onUpdate:modelValue": y[2] || (y[2] = (M) => G(t) ? t.value = M : null),
613
613
  onKeydown: [
614
- w[3] || (w[3] = F(U((A) => t.value = !1, ["stop", "prevent"]), ["esc"])),
615
- F(U(W, ["stop", "prevent"]), ["enter"])
614
+ y[3] || (y[3] = F($((M) => t.value = !1, ["stop", "prevent"]), ["esc"])),
615
+ F($(W, ["stop", "prevent"]), ["enter"])
616
616
  ],
617
617
  transition: "dialog-top-transition",
618
618
  "max-width": "600px"
619
619
  }, {
620
- default: h(() => [
621
- y(ie, { title: l.value }, {
622
- default: h(() => [
623
- o.value ? (b(), j(E, { key: 0 }, {
624
- default: h(() => [
625
- q(S(o.value), 1)
620
+ default: w(() => [
621
+ x(ie, { title: l.value }, {
622
+ default: w(() => [
623
+ o.value ? (S(), T(U, { key: 0 }, {
624
+ default: w(() => [
625
+ j(q(o.value), 1)
626
626
  ]),
627
627
  _: 1
628
628
  })) : ke("", !0),
629
- y(de, { class: "mx-3" }, {
630
- default: h(() => [
631
- y(_e, {
629
+ x(de, { class: "mx-3" }, {
630
+ default: w(() => [
631
+ x(_e, {
632
632
  modelValue: u.value,
633
- "onUpdate:modelValue": w[0] || (w[0] = (A) => u.value = A),
633
+ "onUpdate:modelValue": y[0] || (y[0] = (M) => u.value = M),
634
634
  label: n.value,
635
635
  placeholder: r.value,
636
636
  rules: c.value,
637
637
  ref_key: "target",
638
- ref: f
638
+ ref: d
639
639
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
640
640
  ]),
641
641
  _: 1
642
642
  }),
643
- y(fe, { class: "d-flex justify-end" }, {
644
- default: h(() => [
645
- y(P, {
646
- onClick: w[1] || (w[1] = (A) => t.value = !1),
647
- color: R.value,
643
+ x(fe, { class: "d-flex justify-end" }, {
644
+ default: w(() => [
645
+ x(P, {
646
+ onClick: y[1] || (y[1] = (M) => t.value = !1),
647
+ color: C.value,
648
648
  variant: "text"
649
649
  }, {
650
- default: h(() => [
651
- q(S(C.value), 1)
650
+ default: w(() => [
651
+ j(q(k.value), 1)
652
652
  ]),
653
653
  _: 1
654
654
  }, 8, ["color"]),
655
- y(P, {
655
+ x(P, {
656
656
  onClick: W,
657
- color: M.value,
657
+ color: V.value,
658
658
  variant: "text"
659
659
  }, {
660
- default: h(() => [
661
- q(S($.value), 1)
660
+ default: w(() => [
661
+ j(q(g.value), 1)
662
662
  ]),
663
663
  _: 1
664
664
  }, 8, ["color"])
@@ -673,7 +673,7 @@ const Me = /* @__PURE__ */ T({
673
673
  }, 8, ["modelValue", "onKeydown"]);
674
674
  };
675
675
  }
676
- }), Ge = { class: "mx-auto my-auto" }, Je = { class: "d-flex align-center justify-center w-100 h-100" }, Qe = /* @__PURE__ */ T({
676
+ }), Je = { class: "mx-auto my-auto" }, Qe = { class: "d-flex align-center justify-center w-100 h-100" }, Ye = /* @__PURE__ */ E({
677
677
  __name: "index",
678
678
  setup(e) {
679
679
  const a = J(), { open: t } = Z("waitDlg"), l = () => {
@@ -681,29 +681,29 @@ const Me = /* @__PURE__ */ T({
681
681
  }, o = () => {
682
682
  t.value = !1;
683
683
  };
684
- return V(() => {
684
+ return O(() => {
685
685
  p.on("openWaitDlg", l), p.on("closeWaitDlg", o);
686
- }), I(() => {
686
+ }), B(() => {
687
687
  p.off("openWaitDlg", l), p.off("closeWaitDlg", o);
688
688
  }), (n, r) => {
689
- const c = m("v-card"), u = m("v-dialog");
690
- return b(), j(u, {
689
+ const c = h("v-card"), u = h("v-dialog");
690
+ return S(), T(u, {
691
691
  modelValue: z(t),
692
692
  "onUpdate:modelValue": r[0] || (r[0] = (s) => G(t) ? t.value = s : null),
693
693
  persistent: "",
694
694
  "no-click-animation": "",
695
695
  fullscreen: ""
696
696
  }, {
697
- default: h(() => [
698
- v("div", Ge, [
699
- y(c, {
697
+ default: w(() => [
698
+ m("div", Je, [
699
+ x(c, {
700
700
  width: "300px",
701
701
  height: "80px",
702
702
  loading: ""
703
703
  }, {
704
- default: h(() => [
705
- v("div", Je, [
706
- v("span", null, S(z(a).t("waitingResponse")), 1)
704
+ default: w(() => [
705
+ m("div", Qe, [
706
+ m("span", null, q(z(a).t("waitingResponse")), 1)
707
707
  ])
708
708
  ]),
709
709
  _: 1
@@ -714,11 +714,11 @@ const Me = /* @__PURE__ */ T({
714
714
  }, 8, ["modelValue"]);
715
715
  };
716
716
  }
717
- }), Ye = (e) => {
718
- e.component("x-confirm-dlg", Me), e.component("x-loading", Fe), e.component("x-message", He), e.component("x-prompt-dlg", Xe), e.component("x-wait-dlg", Qe);
717
+ }), Ze = (e) => {
718
+ e.component("x-confirm-dlg", $e), e.component("x-loading", Ke), e.component("x-message", Xe), e.component("x-prompt-dlg", Ge), e.component("x-wait-dlg", Ye);
719
719
  };
720
- function gt() {
721
- const e = K(), a = g(() => e.global.current.value.colors.primary), t = g(() => e.global.current.value.colors.secondary), l = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
720
+ function vt() {
721
+ const e = N(), 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");
722
722
  return {
723
723
  primaryColor: a,
724
724
  secondaryColor: t,
@@ -729,33 +729,41 @@ function gt() {
729
729
  borderColor: c
730
730
  };
731
731
  }
732
- function vt() {
733
- const e = De(), a = re(), t = K(), l = ne(), o = ce(), n = (_) => {
734
- l.dark = _, t.global.name.value = l.dark ? "dark" : "light";
735
- }, r = (_) => {
736
- l.locale = _;
737
- }, c = (_) => {
738
- l.permissionObjects = _.permissionObjects, l.permissionChecksum = _.permissionChecksum;
739
- }, u = () => {
740
- if (!o.isEmpty()) {
741
- o.hasView("waitDlg") || o.popView();
732
+ function mt() {
733
+ const e = Se(), a = re(), t = N(), l = ne(), { dark: o, locale: n, permissionObjects: r, permissionChecksum: c } = Ce(l), u = ce();
734
+ K(
735
+ o,
736
+ () => {
737
+ t.global.name.value = l.dark ? "dark" : "light";
738
+ },
739
+ { immediate: !0 }
740
+ );
741
+ const s = (g) => {
742
+ o.value = g;
743
+ }, v = (g) => {
744
+ n.value = g;
745
+ }, C = (g) => {
746
+ r.value = g.permissionObjects, c.value = g.permissionChecksum;
747
+ }, k = () => {
748
+ if (!u.isEmpty()) {
749
+ u.hasView("waitDlg") || u.popView();
742
750
  return;
743
751
  }
744
- const _ = Y(e.path);
745
- (_ == null ? void 0 : _.level) === 0 || a.back();
746
- }, s = (_) => {
747
- if (_.key === "Escape") {
748
- u();
752
+ const g = Y(e.path);
753
+ (g == null ? void 0 : g.level) === 0 || a.back();
754
+ }, V = (g) => {
755
+ if (g.key === "Escape") {
756
+ k();
749
757
  return;
750
758
  }
751
759
  };
752
- V(() => {
753
- p.on("darkchange", n), p.on("localechange", r), p.on("permissionchange", c), p.on("backbutton", u), window.addEventListener("keydown", s);
754
- }), I(() => {
755
- p.off("darkchange", n), p.off("localechange", r), p.off("permissionchange", c), p.off("backbutton", u), window.removeEventListener("keydown", s);
760
+ O(() => {
761
+ p.on("darkchange", s), p.on("localechange", v), p.on("permissionchange", C), p.on("backbutton", k), window.addEventListener("keydown", V);
762
+ }), B(() => {
763
+ p.off("darkchange", s), p.off("localechange", v), p.off("permissionchange", C), p.off("backbutton", k), window.removeEventListener("keydown", V);
756
764
  });
757
765
  }
758
- function mt() {
766
+ function ht() {
759
767
  const e = ne();
760
768
  function a(t, l) {
761
769
  const o = e.permissionObjects[t];
@@ -763,36 +771,36 @@ function mt() {
763
771
  }
764
772
  return { verifyPermission: a };
765
773
  }
766
- function ht() {
767
- const e = K(), a = be(), t = g(() => e.current.value.dark), l = g(() => !!window.cordova), o = g(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
774
+ function wt() {
775
+ const e = N(), a = be(), 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");
768
776
  return { dark: t, sysBarAvail: l, compactWidth: o };
769
777
  }
770
- const wt = { install: Ye };
778
+ const yt = { install: Ze };
771
779
  export {
772
- Be as Permission,
773
- rt as appAppear,
774
- pt as closeWaitDlg,
775
- ot as createAxios,
776
- wt as default,
780
+ Ee as Permission,
781
+ nt as appAppear,
782
+ st as closeWaitDlg,
783
+ lt as createAxios,
784
+ yt as default,
777
785
  p as eventBus,
778
786
  te as isExist,
779
787
  Y as matchRouteMeta,
780
- st as messageError,
781
- _t as messageInfo,
782
- dt as messageSuccess,
783
- ft as messageWarning,
784
- it as onBeforeEach,
785
- nt as openConfirmDlg,
786
- ct as openPromptDlg,
787
- ut as openWaitDlg,
788
+ _t as messageError,
789
+ dt as messageInfo,
790
+ ft as messageSuccess,
791
+ it as messageWarning,
792
+ gt as onBeforeEach,
793
+ ct as openConfirmDlg,
794
+ ut as openPromptDlg,
795
+ pt as openWaitDlg,
788
796
  oe as routeTransName,
789
- gt as useColor,
797
+ vt as useColor,
790
798
  ne as useGlobalStore,
791
- vt as useMicroApp,
792
- mt as usePermission,
793
- ht as useSystem,
799
+ mt as useMicroApp,
800
+ ht as usePermission,
801
+ wt as useSystem,
794
802
  ce as useViewMgrStore,
795
803
  Z as useViewStack,
796
- lt as waitMs,
804
+ rt as waitMs,
797
805
  Q as waitUtil
798
806
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
3
  "private": false,
4
- "version": "0.5.19",
4
+ "version": "0.5.20",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",