x-essential-lib 0.7.19 → 0.8.0

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,11 +1,11 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-essential-lib",e.appendChild(document.createTextNode('.x-cont[data-v-4fee730c]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-4fee730c]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-4fee730c]{transform-origin:20px 20px;animation:lds-spinner-4fee730c 1.2s linear infinite}.lds-spinner div[data-v-4fee730c]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-4fee730c]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-4fee730c]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-4fee730c]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-4fee730c]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-4fee730c]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-4fee730c]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-4fee730c]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-4fee730c]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-4fee730c]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-4fee730c]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-4fee730c]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-4fee730c]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-4fee730c{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { computed as y, provide as O, inject as I, ref as f, getCurrentScope as xe, onScopeDispose as be, unref as H, watchEffect as ke, getCurrentInstance as Ce, onMounted as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as B, resolveComponent as h, openBlock as C, createBlock as q, isRef as Y, withKeys as F, withModifiers as $, withCtx as w, createVNode as b, createTextVNode as V, toDisplayString as R, createElementBlock as Q, normalizeStyle as le, createElementVNode as m, createCommentVNode as P, Fragment as De, renderList as Me, useTemplateRef as Se } from "vue";
3
- import { useI18n as ee } from "vue-i18n";
4
- import { useTheme as ce, useDisplay as je } from "vuetify";
5
- import { useRouter as ue, useRoute as Re } from "vue-router";
6
- import qe from "axios";
7
- function Ve() {
8
- const e = ce(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
2
+ import { computed as y, provide as T, inject as A, ref as v, getCurrentInstance as _e, hasInjectionContext as ie, watch as K, getCurrentScope as je, onScopeDispose as Re, shallowRef as P, watchEffect as Ve, toValue as O, onMounted as E, unref as z, onBeforeUnmount as $, onBeforeMount as Ae, defineComponent as B, resolveComponent as w, createBlock as V, openBlock as L, withKeys as Z, withModifiers as H, isRef as ae, withCtx as x, createVNode as C, createTextVNode as q, toDisplayString as R, createElementBlock as ee, createCommentVNode as oe, normalizeStyle as de, createElementVNode as h, Fragment as Oe, renderList as qe, useTemplateRef as Ie } from "vue";
3
+ import { useI18n as ne } from "vue-i18n";
4
+ import { useTheme as fe, useDisplay as Te } from "vuetify";
5
+ import { useRouter as ge, useRoute as Ee } from "vue-router";
6
+ import Be from "axios";
7
+ function We() {
8
+ const e = fe(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
9
9
  return {
10
10
  primaryColor: t,
11
11
  secondaryColor: a,
@@ -17,7 +17,7 @@ function Ve() {
17
17
  };
18
18
  }
19
19
  /*! js-cookie v3.0.5 | MIT */
20
- function X(e) {
20
+ function N(e) {
21
21
  for (var t = 1; t < arguments.length; t++) {
22
22
  var a = arguments[t];
23
23
  for (var o in a)
@@ -25,7 +25,7 @@ function X(e) {
25
25
  }
26
26
  return e;
27
27
  }
28
- var Ae = {
28
+ var Ue = {
29
29
  read: function(e) {
30
30
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
31
31
  },
@@ -36,10 +36,10 @@ var Ae = {
36
36
  );
37
37
  }
38
38
  };
39
- function J(e, t) {
39
+ function te(e, t) {
40
40
  function a(n, l, c) {
41
41
  if (!(typeof document > "u")) {
42
- c = X({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
42
+ c = N({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
43
43
  var r = "";
44
44
  for (var u in c)
45
45
  c[u] && (r += "; " + u, c[u] !== !0 && (r += "=" + c[u].split(";")[0]));
@@ -49,10 +49,10 @@ function J(e, t) {
49
49
  function o(n) {
50
50
  if (!(typeof document > "u" || arguments.length && !n)) {
51
51
  for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, r = 0; r < l.length; r++) {
52
- var u = l[r].split("="), _ = u.slice(1).join("=");
52
+ var u = l[r].split("="), s = u.slice(1).join("=");
53
53
  try {
54
- var g = decodeURIComponent(u[0]);
55
- if (c[g] = e.read(_, g), n === g)
54
+ var d = decodeURIComponent(u[0]);
55
+ if (c[d] = e.read(s, d), n === d)
56
56
  break;
57
57
  } catch {
58
58
  }
@@ -68,16 +68,16 @@ function J(e, t) {
68
68
  a(
69
69
  n,
70
70
  "",
71
- X({}, l, {
71
+ N({}, l, {
72
72
  expires: -1
73
73
  })
74
74
  );
75
75
  },
76
76
  withAttributes: function(n) {
77
- return J(this.converter, X({}, this.attributes, n));
77
+ return te(this.converter, N({}, this.attributes, n));
78
78
  },
79
79
  withConverter: function(n) {
80
- return J(X({}, this.converter, n), this.attributes);
80
+ return te(N({}, this.converter, n), this.attributes);
81
81
  }
82
82
  },
83
83
  {
@@ -86,43 +86,43 @@ function J(e, t) {
86
86
  }
87
87
  );
88
88
  }
89
- var A = J(Ae, { path: "/" });
90
- function Bt(e) {
91
- const t = qe.create({
89
+ var I = te(Ue, { path: "/" });
90
+ function Qt(e) {
91
+ const t = Be.create({
92
92
  timeout: 6e3
93
93
  });
94
94
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
95
- (a) => Oe(a),
95
+ (a) => $e(a),
96
96
  (a) => {
97
- Ie(a, e.onError);
97
+ He(a, e.onError);
98
98
  }
99
99
  ), t.interceptors.response.use(
100
- (a) => Te(a),
101
- (a) => Be(a, e.onError)
100
+ (a) => Ke(a),
101
+ (a) => ze(a, e.onError)
102
102
  ), t;
103
103
  }
104
- function Oe(e) {
105
- const t = A.get("accessToken") ?? "";
104
+ function $e(e) {
105
+ const t = I.get("accessToken") ?? "";
106
106
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
107
107
  }
108
- function Ie(e, t) {
108
+ function He(e, t) {
109
109
  console.error(e), t("request timeout");
110
110
  }
111
- function Te(e) {
111
+ function Ke(e) {
112
112
  return e.data;
113
113
  }
114
- function Be(e, t) {
114
+ function ze(e, t) {
115
115
  var n, l;
116
116
  const o = e.response;
117
- return o && (o.status === 401 && Ee(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
117
+ return o && (o.status === 401 && Fe(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
118
118
  code: o.status,
119
119
  message: o.statusText
120
120
  })), Promise.reject(e);
121
121
  }
122
- function Ee() {
123
- A.remove("accessToken"), A.remove("refreshToken"), A.remove("activeOrg"), ue().replace({ path: "/passport/login" });
122
+ function Fe() {
123
+ I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), ge().replace({ path: "/passport/login" });
124
124
  }
125
- function Ue(e) {
125
+ function Xe(e) {
126
126
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
127
127
  var o = e.get(t);
128
128
  o ? o.push(a) : e.set(t, [a]);
@@ -139,14 +139,14 @@ function Ue(e) {
139
139
  } };
140
140
  }
141
141
  const p = function() {
142
- return window.eventBus || (window.eventBus = Ue()), window.eventBus;
142
+ return window.eventBus || (window.eventBus = Xe()), window.eventBus;
143
143
  }();
144
- async function Et(e) {
144
+ async function Jt(e) {
145
145
  return new Promise((t) => {
146
146
  setTimeout(t, e);
147
147
  });
148
148
  }
149
- async function te(e, t, a) {
149
+ async function re(e, t, a) {
150
150
  const o = Date.now();
151
151
  return new Promise((n) => {
152
152
  const l = async () => {
@@ -155,59 +155,59 @@ async function te(e, t, a) {
155
155
  l();
156
156
  });
157
157
  }
158
- function We(e, t) {
158
+ function Ne(e, t) {
159
159
  const a = document.getElementById("single-spa-application:" + e);
160
160
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
161
161
  a.classList.add("app-reset");
162
162
  }, 50));
163
163
  }
164
- let ne = Date.now();
165
- function pe() {
164
+ let ue = Date.now();
165
+ function ve() {
166
166
  const e = Date.now();
167
- return e - ne > 500 ? (ne = e, !0) : !1;
167
+ return e - ue > 500 ? (ue = e, !0) : !1;
168
168
  }
169
- let $e = 0;
170
- function se() {
171
- return ++$e;
169
+ let Ze = 0;
170
+ function me() {
171
+ return ++Ze;
172
172
  }
173
- async function Ut(e) {
174
- if (!pe())
173
+ async function Yt(e) {
174
+ if (!ve())
175
175
  return;
176
176
  let t = !1, a;
177
177
  const o = (l) => {
178
178
  a = l, t = !0;
179
- }, n = se();
180
- return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await te(() => t), p.off("confirmDlgResult" + n, o), a;
179
+ }, n = me();
180
+ return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await re(() => t), p.off("confirmDlgResult" + n, o), a;
181
181
  }
182
- async function Wt(e) {
183
- if (!pe())
182
+ async function Pt(e) {
183
+ if (!ve())
184
184
  return;
185
185
  let t = !1, a;
186
186
  const o = (l) => {
187
187
  a = l, t = !0;
188
- }, n = se();
189
- return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await te(() => t), p.off("promptDlgResult" + n, o), a;
188
+ }, n = me();
189
+ return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await re(() => t), p.off("promptDlgResult" + n, o), a;
190
190
  }
191
- function $t(e) {
191
+ function ea(e) {
192
192
  p.emit("openWaitDlg", { text: e });
193
193
  }
194
- function Ht() {
194
+ function ta() {
195
195
  p.emit("closeWaitDlg");
196
196
  }
197
- function Kt(e, t) {
197
+ function aa(e, t) {
198
198
  p.emit("message", { type: "error", text: e, timeout: t });
199
199
  }
200
- function zt(e, t) {
200
+ function oa(e, t) {
201
201
  p.emit("message", { type: "info", text: e, timeout: t });
202
202
  }
203
- function Xt(e, t) {
203
+ function na(e, t) {
204
204
  p.emit("message", { type: "success", text: e, timeout: t });
205
205
  }
206
- function Ft(e, t) {
206
+ function ra(e, t) {
207
207
  p.emit("message", { type: "warning", text: e, timeout: t });
208
208
  }
209
- var He = /* @__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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_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.debug_flow = "debug_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_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_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_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_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_table = "filter_table", e))(He || {});
210
- function re(e, t) {
209
+ var Ge = /* @__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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_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.debug_flow = "debug_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_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_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_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_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_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", 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.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(Ge || {});
210
+ function se(e, t) {
211
211
  if (!e)
212
212
  return !1;
213
213
  let a = e;
@@ -220,48 +220,48 @@ function re(e, t) {
220
220
  return !1;
221
221
  }), Object.keys(a).length <= 0);
222
222
  }
223
- function Ke(e, t, a) {
223
+ function Qe(e, t, a) {
224
224
  const o = e[t];
225
- return o ? a ? !(!re(o.includes, a) || re(o.excludes, a)) : !0 : !1;
225
+ return o ? a ? !(!se(o.includes, a) || se(o.excludes, a)) : !0 : !1;
226
226
  }
227
- const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
228
- function ze(e) {
229
- O(_e, e);
227
+ const he = "essentialDark", ye = "essentialLocale", we = "essentialPermissionObjects", xe = "essentialPermissionChecksum", be = "essentialLastAppPath", ke = "essentialViews";
228
+ function Je(e) {
229
+ T(he, e);
230
230
  }
231
- function Zt() {
232
- return I(_e);
231
+ function la() {
232
+ return A(he);
233
233
  }
234
- function Xe(e) {
235
- O(ie, e);
234
+ function Ye(e) {
235
+ T(ye, e);
236
236
  }
237
- function Nt() {
238
- return I(ie);
237
+ function ca() {
238
+ return A(ye);
239
239
  }
240
- function Fe(e) {
241
- O(de, e);
240
+ function Pe(e) {
241
+ T(we, e);
242
242
  }
243
- function Ze() {
244
- return I(de);
243
+ function et() {
244
+ return A(we);
245
245
  }
246
- function Ne(e) {
247
- O(fe, e);
246
+ function tt(e) {
247
+ T(xe, e);
248
248
  }
249
- function Gt() {
250
- return I(fe);
249
+ function ua() {
250
+ return A(xe);
251
251
  }
252
- function Ge(e) {
253
- O(ge, e);
252
+ function at(e) {
253
+ T(be, e);
254
254
  }
255
- function Qt() {
256
- return I(ge);
255
+ function sa() {
256
+ return A(be);
257
257
  }
258
- function Qe(e) {
259
- O(ve, e);
258
+ function ot(e) {
259
+ T(ke, e);
260
260
  }
261
- function Je() {
262
- return I(ve);
261
+ function nt() {
262
+ return A(ke);
263
263
  }
264
- const Ye = [
264
+ const rt = [
265
265
  {
266
266
  app: "x-passport-mf",
267
267
  path: "/passport/login",
@@ -369,10 +369,10 @@ const Ye = [
369
369
  mainActive: 2
370
370
  }
371
371
  ];
372
- function Z(e) {
372
+ function G(e) {
373
373
  let t, a = 0;
374
374
  const o = e.split("/").filter((n) => n.trim() !== "");
375
- return Ye.forEach((n) => {
375
+ return rt.forEach((n) => {
376
376
  const l = n.path.split("/").filter((r) => r.trim() !== "");
377
377
  let c = 0;
378
378
  for (let r = 0; r < o.length && !(r >= l.length || o[r] !== l[r]); r++)
@@ -380,10 +380,10 @@ function Z(e) {
380
380
  c > 0 && c > a && (t = n, a = c);
381
381
  }), t;
382
382
  }
383
- const G = f("");
384
- function S(e, t, a) {
383
+ const Q = v("");
384
+ function M(e, t, a) {
385
385
  t === "/" && (t = a);
386
- const o = Z(e), n = Z(t);
386
+ const o = G(e), n = G(t);
387
387
  if (!o) {
388
388
  console.assert(!1);
389
389
  return;
@@ -391,16 +391,16 @@ function S(e, t, a) {
391
391
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !n)
392
392
  return;
393
393
  const l = o.app === n.app, c = o.path === n.path, r = o.level >= n.level;
394
- l ? c ? G.value = "" : G.value = r ? "inner-left" : "inner-right" : (G.value = "", We(o.app, r));
394
+ l ? c ? Q.value = "" : Q.value = r ? "inner-left" : "inner-right" : (Q.value = "", Ne(o.app, r));
395
395
  }
396
- function Pe() {
397
- return !!A.get("accessToken");
396
+ function lt() {
397
+ return !!I.get("accessToken");
398
398
  }
399
- function et() {
400
- return !!A.get("activeOrg");
399
+ function ct() {
400
+ return !!I.get("activeOrg");
401
401
  }
402
- function Jt(e, t, a, o) {
403
- const n = Pe(), l = et(), c = Z(e.path);
402
+ function pa(e, t, a, o) {
403
+ const n = lt(), l = ct(), c = G(e.path);
404
404
  if (!c) {
405
405
  console.assert(!1), a();
406
406
  return;
@@ -409,151 +409,220 @@ function Jt(e, t, a, o) {
409
409
  if (n)
410
410
  if (l) {
411
411
  const r = "/main";
412
- S(r, t.path, o), a({ path: r });
412
+ M(r, t.path, o), a({ path: r });
413
413
  } else
414
- S(e.path, t.path, o), a();
414
+ M(e.path, t.path, o), a();
415
415
  else {
416
416
  const r = "/passport/login";
417
- S(r, t.path, o), a({ path: r });
417
+ M(r, t.path, o), a({ path: r });
418
418
  }
419
419
  else if (c.requiredState === "org")
420
420
  if (n)
421
421
  if (l)
422
- S(e.path, t.path, o), a();
422
+ M(e.path, t.path, o), a();
423
423
  else {
424
424
  const r = "/org/joinOrCreate";
425
- S(r, t.path, o), a({ path: r });
425
+ M(r, t.path, o), a({ path: r });
426
426
  }
427
427
  else {
428
428
  const r = "/passport/login";
429
- S(r, t.path, o), a({ path: r });
429
+ M(r, t.path, o), a({ path: r });
430
430
  }
431
431
  else if (n)
432
432
  if (l) {
433
433
  const r = "/main";
434
- S(r, t.path, o), a({ path: r });
434
+ M(r, t.path, o), a({ path: r });
435
435
  } else {
436
436
  const r = "/org/joinOrCreate";
437
- S(r, t.path, o), a({ path: r });
437
+ M(r, t.path, o), a({ path: r });
438
438
  }
439
439
  else
440
- S(e.path, t.path, o), a();
440
+ M(e.path, t.path, o), a();
441
441
  }
442
- function tt(e) {
442
+ function ut(e) {
443
443
  return e.value.length <= 0;
444
444
  }
445
- function Yt(e) {
445
+ function _a(e) {
446
446
  return e.value.at(-1);
447
447
  }
448
- function me(e, t) {
448
+ function Ce(e, t) {
449
449
  return !!e.value.find((a) => a === t);
450
450
  }
451
- function at(e, t) {
451
+ function st(e, t) {
452
452
  const a = e.value.findIndex((o) => o === t);
453
453
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
454
454
  }
455
- function ot(e, t) {
455
+ function pt(e, t) {
456
456
  const a = e.value.findIndex((o) => o === t);
457
457
  a >= 0 && e.value.splice(a, 1);
458
458
  }
459
- function nt(e) {
459
+ function _t(e) {
460
460
  console.assert(e.value.length > 0), e.value.pop();
461
461
  }
462
- function Pt(e) {
462
+ function ia(e) {
463
463
  e.value = [];
464
464
  }
465
- function rt(e) {
466
- return xe() ? (be(e), !0) : !1;
467
- }
468
- function lt(e) {
469
- return typeof e == "function" ? e() : H(e);
465
+ function it(e) {
466
+ return je() ? (Re(e), !0) : !1;
470
467
  }
471
- const ct = typeof window < "u" && typeof document < "u";
468
+ const J = /* @__PURE__ */ new WeakMap(), dt = (...e) => {
469
+ var t;
470
+ const a = e[0], o = (t = _e()) == null ? void 0 : t.proxy;
471
+ if (o == null && !ie())
472
+ throw new Error("injectLocal must be called in setup");
473
+ return o && J.has(o) && a in J.get(o) ? J.get(o)[a] : A(...e);
474
+ }, ft = typeof window < "u" && typeof document < "u";
472
475
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
473
- const ut = ct ? window : void 0;
474
- function pt() {
475
- const e = f(!1), t = Ce();
476
- return t && T(() => {
476
+ const gt = Object.prototype.toString, vt = (e) => gt.call(e) === "[object Object]";
477
+ function pe(e) {
478
+ return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
479
+ }
480
+ function Y(e) {
481
+ return Array.isArray(e) ? e : [e];
482
+ }
483
+ function mt(e, t, a) {
484
+ return K(
485
+ e,
486
+ t,
487
+ {
488
+ ...a,
489
+ immediate: !0
490
+ }
491
+ );
492
+ }
493
+ const Le = ft ? window : void 0;
494
+ function ht(e) {
495
+ var t;
496
+ const a = O(e);
497
+ return (t = a == null ? void 0 : a.$el) != null ? t : a;
498
+ }
499
+ function yt(...e) {
500
+ const t = [], a = () => {
501
+ t.forEach((r) => r()), t.length = 0;
502
+ }, o = (r, u, s, d) => (r.addEventListener(u, s, d), () => r.removeEventListener(u, s, d)), n = y(() => {
503
+ const r = Y(O(e[0])).filter((u) => u != null);
504
+ return r.every((u) => typeof u != "string") ? r : void 0;
505
+ }), l = mt(
506
+ () => {
507
+ var r, u;
508
+ return [
509
+ (u = (r = n.value) == null ? void 0 : r.map((s) => ht(s))) != null ? u : [Le].filter((s) => s != null),
510
+ Y(O(n.value ? e[1] : e[0])),
511
+ Y(z(n.value ? e[2] : e[1])),
512
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
513
+ O(n.value ? e[3] : e[2])
514
+ ];
515
+ },
516
+ ([r, u, s, d]) => {
517
+ if (a(), !(r != null && r.length) || !(u != null && u.length) || !(s != null && s.length))
518
+ return;
519
+ const g = vt(d) ? { ...d } : d;
520
+ t.push(
521
+ ...r.flatMap(
522
+ (b) => u.flatMap(
523
+ (m) => s.map((_) => o(b, m, _, g))
524
+ )
525
+ )
526
+ );
527
+ },
528
+ { flush: "post" }
529
+ ), c = () => {
530
+ l(), a();
531
+ };
532
+ return it(a), c;
533
+ }
534
+ function wt() {
535
+ const e = P(!1), t = _e();
536
+ return t && E(() => {
477
537
  e.value = !0;
478
538
  }, t), e;
479
539
  }
480
- function st(e) {
481
- const t = pt();
540
+ function xt(e) {
541
+ const t = wt();
482
542
  return y(() => (t.value, !!e()));
483
543
  }
484
- function _t(e, t = {}) {
485
- const { window: a = ut } = t, o = st(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
486
- let n;
487
- const l = f(!1), c = (_) => {
488
- l.value = _.matches;
489
- }, r = () => {
490
- n && ("removeEventListener" in n ? n.removeEventListener("change", c) : n.removeListener(c));
491
- }, u = ke(() => {
492
- o.value && (r(), n = a.matchMedia(lt(e)), "addEventListener" in n ? n.addEventListener("change", c) : n.addListener(c), l.value = n.matches);
493
- });
494
- return rt(() => {
495
- u(), r(), n = void 0;
496
- }), l;
544
+ const bt = Symbol("vueuse-ssr-width");
545
+ function kt() {
546
+ const e = ie() ? dt(bt, null) : null;
547
+ return typeof e == "number" ? e : void 0;
497
548
  }
498
- function it(e) {
499
- return _t("(prefers-color-scheme: dark)", e);
549
+ function Ct(e, t = {}) {
550
+ const { window: a = Le, ssrWidth: o = kt() } = t, n = xt(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = v(typeof o == "number"), c = P(), r = P(!1), u = (s) => {
551
+ r.value = s.matches;
552
+ };
553
+ return Ve(() => {
554
+ if (l.value) {
555
+ l.value = !n.value;
556
+ const s = O(e).split(",");
557
+ r.value = s.some((d) => {
558
+ const g = d.includes("not all"), b = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
559
+ let _ = !!(b || m);
560
+ return b && _ && (_ = o >= pe(b[1])), m && _ && (_ = o <= pe(m[1])), g ? !_ : _;
561
+ });
562
+ return;
563
+ }
564
+ n.value && (c.value = a.matchMedia(O(e)), r.value = c.value.matches);
565
+ }), yt(c, "change", u, { passive: !0 }), y(() => r.value);
566
+ }
567
+ function Lt(e) {
568
+ return Ct("(prefers-color-scheme: dark)", e);
500
569
  }
501
- function ea(e, t, a, o, n, l) {
502
- const c = Re(), r = ue();
503
- ze(e), Xe(t), Fe(a), Ne(o), Ge(n), Qe(l);
504
- const u = ce(), _ = it();
505
- N(
570
+ function da(e, t, a, o, n, l) {
571
+ const c = Ee(), r = ge();
572
+ Je(e), Ye(t), Pe(a), tt(o), at(n), ot(l);
573
+ const u = fe(), s = Lt();
574
+ K(
506
575
  e,
507
576
  () => {
508
- let s = !1;
509
- typeof e.value == "boolean" ? s = e.value : s = _.value, u.global.name.value = s ? "dark" : "light";
577
+ let i = !1;
578
+ typeof e.value == "boolean" ? i = e.value : i = s.value, u.global.name.value = i ? "dark" : "light";
510
579
  },
511
580
  { immediate: !0 }
512
581
  );
513
- const g = (s) => {
514
- if (s.key === "Escape") {
515
- v();
582
+ const d = (i) => {
583
+ if (i.key === "Escape") {
584
+ g();
516
585
  return;
517
586
  }
518
- }, v = () => {
519
- var x;
520
- if (!tt(l)) {
521
- me(l, "waitDlg") || nt(l);
587
+ }, g = () => {
588
+ var k;
589
+ if (!ut(l)) {
590
+ Ce(l, "waitDlg") || _t(l);
522
591
  return;
523
592
  }
524
- const s = Z(c.path);
525
- (s == null ? void 0 : s.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
593
+ const i = G(c.path);
594
+ (i == null ? void 0 : i.level) === 0 ? (k = navigator == null ? void 0 : navigator.Backbutton) == null || k.goHome(
526
595
  () => {
527
596
  },
528
597
  () => {
529
598
  }
530
599
  ) : r.back();
531
600
  };
532
- T(() => {
533
- window.addEventListener("keydown", g), p.on("backbutton", v);
534
- }), W(() => {
535
- window.removeEventListener("keydown", g), p.off("backbutton", v);
601
+ E(() => {
602
+ window.addEventListener("keydown", d), p.on("backbutton", g);
603
+ }), $(() => {
604
+ window.removeEventListener("keydown", d), p.off("backbutton", g);
536
605
  });
537
- const L = (s) => {
538
- e.value = s;
539
- }, k = (s) => {
540
- t.value = s;
541
- }, i = (s) => {
542
- const x = s;
543
- a.value = x[0], o.value = x[1];
544
- }, D = (s) => {
545
- n.value = s;
606
+ const b = (i) => {
607
+ e.value = i;
608
+ }, m = (i) => {
609
+ t.value = i;
610
+ }, _ = (i) => {
611
+ const k = i;
612
+ a.value = k[0], o.value = k[1];
613
+ }, D = (i) => {
614
+ n.value = i;
546
615
  };
547
- Le(() => {
548
- p.on("updateDark", L), p.on("updateLocale", k), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
549
- }), W(() => {
550
- p.off("updateDark", L), p.off("updateLocale", k), p.off("updatePermission", i), p.off("updateLastAppPath", D);
616
+ Ae(() => {
617
+ p.on("updateDark", b), p.on("updateLocale", m), p.on("updatePermission", _), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
618
+ }), $(() => {
619
+ p.off("updateDark", b), p.off("updateLocale", m), p.off("updatePermission", _), p.off("updateLastAppPath", D);
551
620
  });
552
621
  }
553
- function ta() {
554
- const e = Ze();
622
+ function fa() {
623
+ const e = et();
555
624
  function t(a, o) {
556
- return Ke(
625
+ return Qe(
557
626
  e.value,
558
627
  a,
559
628
  o
@@ -561,81 +630,81 @@ function ta() {
561
630
  }
562
631
  return { verifyPermission: t };
563
632
  }
564
- function aa() {
565
- const e = y(() => !!window.cordova), t = je(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
633
+ function ga() {
634
+ const e = y(() => !!window.cordova), t = Te(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
566
635
  return { sysBarAvail: e, compactWidth: a };
567
636
  }
568
- function ae(e, t) {
569
- const a = Je(), o = y({
637
+ function le(e, t) {
638
+ const a = nt(), o = y({
570
639
  get() {
571
- return me(a, e);
640
+ return Ce(a, e);
572
641
  },
573
642
  set(l) {
574
- l ? at(a, e) : ot(a, e);
643
+ l ? st(a, e) : pt(a, e);
575
644
  }
576
645
  }), n = (l) => {
577
646
  t == null || t(l), o.value = !0;
578
647
  };
579
- return T(() => {
648
+ return E(() => {
580
649
  p.on(e, n);
581
- }), W(() => {
650
+ }), $(() => {
582
651
  p.off(e, n);
583
652
  }), { open: o };
584
653
  }
585
- const dt = /* @__PURE__ */ B({
654
+ const Dt = /* @__PURE__ */ B({
586
655
  __name: "index",
587
656
  setup(e) {
588
- const { t } = ee(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(""), r = f("");
589
- let u = 0, _ = !1;
590
- const g = (k) => {
591
- var D, s, x, M;
592
- const i = k;
593
- a.value = i.title, o.value = i.text, n.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((s = i.cancel) == null ? void 0 : s.text) ?? t("dlg.common.cancel"), c.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", r.value = ((M = i.confirm) == null ? void 0 : M.text) ?? t("dlg.common.confirm"), u = i.seq, _ = !1, v.value = !0;
594
- }, { open: v } = ae("confirmDlg", g), L = () => {
595
- v.value = !1, _ || (p.emit("confirmDlgResult" + u, !0), _ = !0);
657
+ const { t } = ne(), a = v(""), o = v(""), n = v(""), l = v(""), c = v(""), r = v("");
658
+ let u = 0, s = !1;
659
+ const d = (m) => {
660
+ var D, i, k, S;
661
+ const _ = m;
662
+ a.value = _.title, o.value = _.text, n.value = ((D = _.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((i = _.cancel) == null ? void 0 : i.text) ?? t("dlg.common.cancel"), c.value = ((k = _.confirm) == null ? void 0 : k.color) ?? "primary", r.value = ((S = _.confirm) == null ? void 0 : S.text) ?? t("dlg.common.confirm"), u = _.seq, s = !1, g.value = !0;
663
+ }, { open: g } = le("confirmDlg", d), b = () => {
664
+ g.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
596
665
  };
597
- return N(v, (k) => {
598
- !k && !_ && (p.emit("confirmDlgResult" + u, !1), _ = !0);
599
- }), (k, i) => {
600
- const D = h("v-card-text"), s = h("v-btn"), x = h("v-card-actions"), M = h("v-card"), d = h("v-dialog");
601
- return C(), q(d, {
602
- modelValue: H(v),
603
- "onUpdate:modelValue": i[1] || (i[1] = (j) => Y(v) ? v.value = j : null),
666
+ return K(g, (m) => {
667
+ !m && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
668
+ }), (m, _) => {
669
+ const D = w("v-card-text"), i = w("v-btn"), k = w("v-card-actions"), S = w("v-card"), f = w("v-dialog");
670
+ return L(), V(f, {
671
+ modelValue: z(g),
672
+ "onUpdate:modelValue": _[1] || (_[1] = (j) => ae(g) ? g.value = j : null),
604
673
  transition: "dialog-top-transition",
605
674
  "max-width": "600px",
606
675
  onKeydown: [
607
- i[2] || (i[2] = F($((j) => v.value = !1, ["stop", "prevent"]), ["esc"])),
608
- F($(L, ["stop", "prevent"]), ["enter"])
676
+ _[2] || (_[2] = Z(H((j) => g.value = !1, ["stop", "prevent"]), ["esc"])),
677
+ Z(H(b, ["stop", "prevent"]), ["enter"])
609
678
  ]
610
679
  }, {
611
- default: w(() => [
612
- b(M, { title: a.value }, {
613
- default: w(() => [
614
- b(D, null, {
615
- default: w(() => [
616
- V(R(o.value), 1)
680
+ default: x(() => [
681
+ C(S, { title: a.value }, {
682
+ default: x(() => [
683
+ C(D, null, {
684
+ default: x(() => [
685
+ q(R(o.value), 1)
617
686
  ]),
618
687
  _: 1
619
688
  }),
620
- b(x, { class: "d-flex justify-end" }, {
621
- default: w(() => [
622
- b(s, {
689
+ C(k, { class: "d-flex justify-end" }, {
690
+ default: x(() => [
691
+ C(i, {
623
692
  color: n.value,
624
693
  variant: "text",
625
- onClick: i[0] || (i[0] = (j) => v.value = !1)
694
+ onClick: _[0] || (_[0] = (j) => g.value = !1)
626
695
  }, {
627
- default: w(() => [
628
- V(R(l.value), 1)
696
+ default: x(() => [
697
+ q(R(l.value), 1)
629
698
  ]),
630
699
  _: 1
631
700
  }, 8, ["color"]),
632
- b(s, {
701
+ C(i, {
633
702
  color: c.value,
634
703
  variant: "text",
635
- onClick: L
704
+ onClick: b
636
705
  }, {
637
- default: w(() => [
638
- V(R(r.value), 1)
706
+ default: x(() => [
707
+ q(R(r.value), 1)
639
708
  ]),
640
709
  _: 1
641
710
  }, 8, ["color"])
@@ -650,46 +719,46 @@ const dt = /* @__PURE__ */ B({
650
719
  }, 8, ["modelValue", "onKeydown"]);
651
720
  };
652
721
  }
653
- }), ft = /* @__PURE__ */ B({
722
+ }), St = /* @__PURE__ */ B({
654
723
  __name: "index",
655
724
  props: {
656
725
  open: { type: Boolean, default: !0 },
657
726
  zIndex: { default: 1 }
658
727
  },
659
728
  setup(e) {
660
- const { backgroundColor2: t } = Ve(), a = y(() => ({
729
+ const { backgroundColor2: t } = We(), a = y(() => ({
661
730
  background: t.value,
662
731
  zIndex: e.zIndex
663
732
  }));
664
- return (o, n) => o.open ? (C(), Q("div", {
733
+ return (o, n) => o.open ? (L(), ee("div", {
665
734
  key: 0,
666
735
  class: "x-cont",
667
- style: le(a.value)
736
+ style: de(a.value)
668
737
  }, n[0] || (n[0] = [
669
- m("div", { class: "lds-spinner" }, [
670
- m("div"),
671
- m("div"),
672
- m("div"),
673
- m("div"),
674
- m("div"),
675
- m("div"),
676
- m("div"),
677
- m("div"),
678
- m("div"),
679
- m("div"),
680
- m("div"),
681
- m("div")
738
+ h("div", { class: "lds-spinner" }, [
739
+ h("div"),
740
+ h("div"),
741
+ h("div"),
742
+ h("div"),
743
+ h("div"),
744
+ h("div"),
745
+ h("div"),
746
+ h("div"),
747
+ h("div"),
748
+ h("div"),
749
+ h("div"),
750
+ h("div")
682
751
  ], -1)
683
- ]), 4)) : P("", !0);
752
+ ]), 4)) : oe("", !0);
684
753
  }
685
- }), oe = (e, t) => {
754
+ }), ce = (e, t) => {
686
755
  const a = e.__vccOpts || e;
687
756
  for (const [o, n] of t)
688
757
  a[o] = n;
689
758
  return a;
690
- }, gt = /* @__PURE__ */ oe(ft, [["__scopeId", "data-v-4fee730c"]]);
691
- var vt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", mt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", ht = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", wt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", yt = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
692
- const xt = /* @__PURE__ */ B({
759
+ }, Mt = /* @__PURE__ */ ce(St, [["__scopeId", "data-v-4fee730c"]]);
760
+ var jt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", Rt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", Vt = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", At = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", Ot = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
761
+ const qt = /* @__PURE__ */ B({
693
762
  __name: "item",
694
763
  props: {
695
764
  id: {},
@@ -705,129 +774,129 @@ const xt = /* @__PURE__ */ B({
705
774
  })), n = y(() => {
706
775
  switch (a.type) {
707
776
  case "success":
708
- return mt;
777
+ return Rt;
709
778
  case "info":
710
- return yt;
779
+ return Ot;
711
780
  case "error":
712
- return wt;
781
+ return At;
713
782
  case "warning":
714
- return vt;
783
+ return jt;
715
784
  default:
716
785
  return "";
717
786
  }
718
- }), l = f(!0), c = t;
719
- return T(() => {
787
+ }), l = v(!0), c = t;
788
+ return E(() => {
720
789
  setTimeout(() => {
721
790
  c("timeout", a.id);
722
791
  }, a.timeout);
723
- }), N(l, (r) => {
792
+ }), K(l, (r) => {
724
793
  r || c("timeout", a.id);
725
794
  }), (r, u) => {
726
- const _ = h("v-icon"), g = h("v-sheet");
727
- return C(), q(g, {
795
+ const s = w("v-icon"), d = w("v-sheet");
796
+ return L(), V(d, {
728
797
  class: "x-item d-flex align-center py-2 mb-2",
729
798
  color: a.type,
730
799
  elevation: 1
731
800
  }, {
732
- default: w(() => [
733
- n.value ? (C(), q(_, {
801
+ default: x(() => [
802
+ n.value ? (L(), V(s, {
734
803
  key: 0,
735
804
  class: "mx-1",
736
805
  icon: n.value
737
- }, null, 8, ["icon"])) : P("", !0),
738
- m("div", {
739
- style: le(o.value)
806
+ }, null, 8, ["icon"])) : oe("", !0),
807
+ h("div", {
808
+ style: de(o.value)
740
809
  }, R(a.text), 5),
741
- b(_, {
810
+ C(s, {
742
811
  class: "mx-1",
743
- icon: H(ht),
744
- onClick: u[0] || (u[0] = (v) => c("timeout", a.id))
812
+ icon: z(Vt),
813
+ onClick: u[0] || (u[0] = (g) => c("timeout", a.id))
745
814
  }, null, 8, ["icon"])
746
815
  ]),
747
816
  _: 1
748
817
  }, 8, ["color"]);
749
818
  };
750
819
  }
751
- }), bt = /* @__PURE__ */ oe(xt, [["__scopeId", "data-v-d5cfe252"]]), kt = /* @__PURE__ */ B({
820
+ }), It = /* @__PURE__ */ ce(qt, [["__scopeId", "data-v-d5cfe252"]]), Tt = /* @__PURE__ */ B({
752
821
  __name: "index",
753
822
  setup(e) {
754
- const t = f([]);
755
- T(() => {
823
+ const t = v([]);
824
+ E(() => {
756
825
  p.on("message", a);
757
- }), W(() => {
826
+ }), $(() => {
758
827
  p.off("message", a);
759
828
  });
760
829
  const a = (r) => {
761
- const { type: u, text: _, timeout: g } = r;
762
- l(u, _, g);
830
+ const { type: u, text: s, timeout: d } = r;
831
+ l(u, s, d);
763
832
  }, o = (r) => {
764
833
  c(r);
765
834
  };
766
835
  let n = 0;
767
- const l = (r, u, _) => {
768
- const g = n++;
769
- t.value.push({ id: g, type: r, text: u, timeout: _ });
836
+ const l = (r, u, s) => {
837
+ const d = n++;
838
+ t.value.push({ id: d, type: r, text: u, timeout: s });
770
839
  }, c = (r) => {
771
- const u = t.value.findIndex((_) => _.id === r);
840
+ const u = t.value.findIndex((s) => s.id === r);
772
841
  u >= 0 && t.value.splice(u, 1);
773
842
  };
774
- return (r, u) => (C(), Q("div", {
843
+ return (r, u) => (L(), ee("div", {
775
844
  class: "x-cont d-flex flex-column-reverse align-center",
776
- onClick: u[0] || (u[0] = $(() => {
845
+ onClick: u[0] || (u[0] = H(() => {
777
846
  }, ["stop"]))
778
847
  }, [
779
- (C(!0), Q(De, null, Me(t.value, (_) => (C(), q(bt, {
780
- id: _.id,
781
- key: _.id,
782
- type: _.type,
783
- text: _.text,
784
- timeout: _.timeout,
848
+ (L(!0), ee(Oe, null, qe(t.value, (s) => (L(), V(It, {
849
+ id: s.id,
850
+ key: s.id,
851
+ type: s.type,
852
+ text: s.text,
853
+ timeout: s.timeout,
785
854
  onTimeout: o
786
855
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
787
856
  ]));
788
857
  }
789
- }), Ct = /* @__PURE__ */ oe(kt, [["__scopeId", "data-v-8fd5d800"]]), Lt = /* @__PURE__ */ B({
858
+ }), Et = /* @__PURE__ */ ce(Tt, [["__scopeId", "data-v-8fd5d800"]]), Bt = /* @__PURE__ */ B({
790
859
  __name: "index",
791
860
  setup(e) {
792
- const { t } = ee(), a = f(""), o = f(""), n = f(""), l = f(""), c = f(), r = f(""), u = f(""), _ = f(""), g = f(""), v = f(""), L = Se("target");
793
- let k = 0, i = !1;
794
- const D = async (M) => {
795
- var j, K, z, E;
796
- const d = M;
797
- a.value = d.title, o.value = d.text, n.value = d.label, l.value = d.placeholder, c.value = d.rules, r.value = d.value, u.value = ((j = d.cancel) == null ? void 0 : j.color) ?? "primary", _.value = ((K = d.cancel) == null ? void 0 : K.text) ?? t("dlg.common.cancel"), g.value = ((z = d.confirm) == null ? void 0 : z.color) ?? "primary", v.value = ((E = d.confirm) == null ? void 0 : E.text) ?? t("dlg.common.confirm"), k = d.seq, i = !1, s.value = !0, await te(() => !!L.value), L.value.focus();
798
- }, { open: s } = ae("promptDlg", D), x = () => {
799
- s.value = !1, i || (p.emit("promptDlgResult" + k, r.value ?? ""), i = !0);
861
+ const { t } = ne(), a = v(""), o = v(""), n = v(""), l = v(""), c = v(), r = v(""), u = v(""), s = v(""), d = v(""), g = v(""), b = Ie("target");
862
+ let m = 0, _ = !1;
863
+ const D = async (S) => {
864
+ var j, F, X, W;
865
+ const f = S;
866
+ a.value = f.title, o.value = f.text, n.value = f.label, l.value = f.placeholder, c.value = f.rules, r.value = f.value, u.value = ((j = f.cancel) == null ? void 0 : j.color) ?? "primary", s.value = ((F = f.cancel) == null ? void 0 : F.text) ?? t("dlg.common.cancel"), d.value = ((X = f.confirm) == null ? void 0 : X.color) ?? "primary", g.value = ((W = f.confirm) == null ? void 0 : W.text) ?? t("dlg.common.confirm"), m = f.seq, _ = !1, i.value = !0, await re(() => !!b.value), b.value.focus();
867
+ }, { open: i } = le("promptDlg", D), k = () => {
868
+ i.value = !1, _ || (p.emit("promptDlgResult" + m, r.value ?? ""), _ = !0);
800
869
  };
801
- return N(s, (M) => {
802
- !M && !i && (p.emit("promptDlgResult" + k, void 0), i = !0);
803
- }), (M, d) => {
804
- const j = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), E = h("v-btn"), he = h("v-card-actions"), we = h("v-card"), ye = h("v-dialog");
805
- return C(), q(ye, {
806
- modelValue: H(s),
807
- "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(s) ? s.value = U : null),
870
+ return K(i, (S) => {
871
+ !S && !_ && (p.emit("promptDlgResult" + m, void 0), _ = !0);
872
+ }), (S, f) => {
873
+ const j = w("v-card-text"), F = w("v-text-field"), X = w("v-form"), W = w("v-btn"), De = w("v-card-actions"), Se = w("v-card"), Me = w("v-dialog");
874
+ return L(), V(Me, {
875
+ modelValue: z(i),
876
+ "onUpdate:modelValue": f[2] || (f[2] = (U) => ae(i) ? i.value = U : null),
808
877
  transition: "dialog-top-transition",
809
878
  "max-width": "600px",
810
879
  onKeydown: [
811
- d[3] || (d[3] = F($((U) => s.value = !1, ["stop", "prevent"]), ["esc"])),
812
- F($(x, ["stop", "prevent"]), ["enter"])
880
+ f[3] || (f[3] = Z(H((U) => i.value = !1, ["stop", "prevent"]), ["esc"])),
881
+ Z(H(k, ["stop", "prevent"]), ["enter"])
813
882
  ]
814
883
  }, {
815
- default: w(() => [
816
- b(we, { title: a.value }, {
817
- default: w(() => [
818
- o.value ? (C(), q(j, { key: 0 }, {
819
- default: w(() => [
820
- V(R(o.value), 1)
884
+ default: x(() => [
885
+ C(Se, { title: a.value }, {
886
+ default: x(() => [
887
+ o.value ? (L(), V(j, { key: 0 }, {
888
+ default: x(() => [
889
+ q(R(o.value), 1)
821
890
  ]),
822
891
  _: 1
823
- })) : P("", !0),
824
- b(z, { class: "mx-3" }, {
825
- default: w(() => [
826
- b(K, {
892
+ })) : oe("", !0),
893
+ C(X, { class: "mx-3" }, {
894
+ default: x(() => [
895
+ C(F, {
827
896
  ref_key: "target",
828
- ref: L,
897
+ ref: b,
829
898
  modelValue: r.value,
830
- "onUpdate:modelValue": d[0] || (d[0] = (U) => r.value = U),
899
+ "onUpdate:modelValue": f[0] || (f[0] = (U) => r.value = U),
831
900
  label: n.value,
832
901
  placeholder: l.value,
833
902
  rules: c.value
@@ -835,25 +904,25 @@ const xt = /* @__PURE__ */ B({
835
904
  ]),
836
905
  _: 1
837
906
  }),
838
- b(he, { class: "d-flex justify-end" }, {
839
- default: w(() => [
840
- b(E, {
907
+ C(De, { class: "d-flex justify-end" }, {
908
+ default: x(() => [
909
+ C(W, {
841
910
  color: u.value,
842
911
  variant: "text",
843
- onClick: d[1] || (d[1] = (U) => s.value = !1)
912
+ onClick: f[1] || (f[1] = (U) => i.value = !1)
844
913
  }, {
845
- default: w(() => [
846
- V(R(_.value), 1)
914
+ default: x(() => [
915
+ q(R(s.value), 1)
847
916
  ]),
848
917
  _: 1
849
918
  }, 8, ["color"]),
850
- b(E, {
851
- color: g.value,
919
+ C(W, {
920
+ color: d.value,
852
921
  variant: "text",
853
- onClick: x
922
+ onClick: k
854
923
  }, {
855
- default: w(() => [
856
- V(R(v.value), 1)
924
+ default: x(() => [
925
+ q(R(g.value), 1)
857
926
  ]),
858
927
  _: 1
859
928
  }, 8, ["color"])
@@ -868,38 +937,38 @@ const xt = /* @__PURE__ */ B({
868
937
  }, 8, ["modelValue", "onKeydown"]);
869
938
  };
870
939
  }
871
- }), Dt = { class: "mx-auto my-auto" }, Mt = { class: "w-100 h-100 d-flex align-center justify-center" }, St = { class: "text-body-1" }, jt = /* @__PURE__ */ B({
940
+ }), Wt = { class: "mx-auto my-auto" }, Ut = { class: "w-100 h-100 d-flex align-center justify-center" }, $t = { class: "text-body-1" }, Ht = /* @__PURE__ */ B({
872
941
  __name: "index",
873
942
  setup(e) {
874
- const { t } = ee(), a = f(""), o = (c) => {
943
+ const { t } = ne(), a = v(""), o = (c) => {
875
944
  const r = c;
876
945
  a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
877
946
  }, n = () => {
878
947
  l.value = !1;
879
- }, { open: l } = ae("waitDlg", o);
880
- return T(() => {
948
+ }, { open: l } = le("waitDlg", o);
949
+ return E(() => {
881
950
  p.on("closeWaitDlg", n);
882
- }), W(() => {
951
+ }), $(() => {
883
952
  p.off("closeWaitDlg", n);
884
953
  }), (c, r) => {
885
- const u = h("v-card"), _ = h("v-dialog");
886
- return C(), q(_, {
887
- modelValue: H(l),
888
- "onUpdate:modelValue": r[0] || (r[0] = (g) => Y(l) ? l.value = g : null),
954
+ const u = w("v-card"), s = w("v-dialog");
955
+ return L(), V(s, {
956
+ modelValue: z(l),
957
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => ae(l) ? l.value = d : null),
889
958
  persistent: "",
890
959
  "no-click-animation": "",
891
960
  fullscreen: ""
892
961
  }, {
893
- default: w(() => [
894
- m("div", Dt, [
895
- b(u, {
962
+ default: x(() => [
963
+ h("div", Wt, [
964
+ C(u, {
896
965
  width: "300px",
897
966
  height: "80px",
898
967
  loading: ""
899
968
  }, {
900
- default: w(() => [
901
- m("div", Mt, [
902
- m("span", St, R(a.value), 1)
969
+ default: x(() => [
970
+ h("div", Ut, [
971
+ h("span", $t, R(a.value), 1)
903
972
  ])
904
973
  ]),
905
974
  _: 1
@@ -910,9 +979,9 @@ const xt = /* @__PURE__ */ B({
910
979
  }, 8, ["modelValue"]);
911
980
  };
912
981
  }
913
- }), Rt = (e) => {
914
- e.component("XConfirmDlg", dt), e.component("XLoading", gt), e.component("XMessage", Ct), e.component("XPromptDlg", Lt), e.component("XWaitDlg", jt);
915
- }, qt = (e, t, a) => {
982
+ }), Kt = (e) => {
983
+ e.component("XConfirmDlg", Dt), e.component("XLoading", Mt), e.component("XMessage", Et), e.component("XPromptDlg", Bt), e.component("XWaitDlg", Ht);
984
+ }, zt = (e, t, a) => {
916
985
  const o = e[t];
917
986
  return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
918
987
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
@@ -925,54 +994,54 @@ const xt = /* @__PURE__ */ B({
925
994
  );
926
995
  });
927
996
  };
928
- async function oa(e) {
929
- return (await qt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
997
+ async function va(e) {
998
+ return (await zt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
930
999
  }
931
- const na = { install: Rt };
1000
+ const ma = { install: Kt };
932
1001
  export {
933
- He as Permission,
934
- at as addView,
935
- We as appAppear,
936
- Pt as clearViews,
937
- Ht as closeWaitDlg,
938
- Bt as createAxios,
939
- na as default,
940
- ot as delView,
1002
+ Ge as Permission,
1003
+ st as addView,
1004
+ Ne as appAppear,
1005
+ ia as clearViews,
1006
+ ta as closeWaitDlg,
1007
+ Qt as createAxios,
1008
+ ma as default,
1009
+ pt as delView,
941
1010
  p as eventBus,
942
- me as hasView,
943
- Zt as injectDark,
944
- Qt as injectLastAppPath,
945
- Nt as injectLocale,
946
- Gt as injectPermissionChecksum,
947
- Ze as injectPermissionObjects,
948
- Je as injectViews,
949
- tt as isEmpty,
950
- re as isExist,
951
- Yt as lastView,
952
- oa as loadLocaleMessageEssential,
953
- Z as matchRouteMeta,
954
- Kt as messageError,
955
- zt as messageInfo,
956
- Xt as messageSuccess,
957
- Ft as messageWarning,
958
- Jt as onBeforeEach,
959
- Ut as openConfirmDlg,
960
- Wt as openPromptDlg,
961
- $t as openWaitDlg,
962
- nt as popView,
963
- ze as provideDark,
964
- Ge as provideLastAppPath,
965
- Xe as provideLocale,
966
- Ne as providePermissionChecksum,
967
- Fe as providePermissionObjects,
968
- Qe as provideViews,
969
- G as routeTransName,
970
- Ve as useColor,
971
- ea as useMicroApp,
972
- ta as usePermission,
973
- aa as useSystem,
974
- ae as useViewStack,
975
- Ke as verifyPermission,
976
- Et as waitMs,
977
- te as waitUtil
1011
+ Ce as hasView,
1012
+ la as injectDark,
1013
+ sa as injectLastAppPath,
1014
+ ca as injectLocale,
1015
+ ua as injectPermissionChecksum,
1016
+ et as injectPermissionObjects,
1017
+ nt as injectViews,
1018
+ ut as isEmpty,
1019
+ se as isExist,
1020
+ _a as lastView,
1021
+ va as loadLocaleMessageEssential,
1022
+ G as matchRouteMeta,
1023
+ aa as messageError,
1024
+ oa as messageInfo,
1025
+ na as messageSuccess,
1026
+ ra as messageWarning,
1027
+ pa as onBeforeEach,
1028
+ Yt as openConfirmDlg,
1029
+ Pt as openPromptDlg,
1030
+ ea as openWaitDlg,
1031
+ _t as popView,
1032
+ Je as provideDark,
1033
+ at as provideLastAppPath,
1034
+ Ye as provideLocale,
1035
+ tt as providePermissionChecksum,
1036
+ Pe as providePermissionObjects,
1037
+ ot as provideViews,
1038
+ Q as routeTransName,
1039
+ We as useColor,
1040
+ da as useMicroApp,
1041
+ fa as usePermission,
1042
+ ga as useSystem,
1043
+ le as useViewStack,
1044
+ Qe as verifyPermission,
1045
+ Jt as waitMs,
1046
+ re as waitUtil
978
1047
  };