x-essential-lib 0.7.4 → 0.7.6

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,42 +1,67 @@
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-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{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(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { computed as y, ref as _, provide as ve, inject as me, getCurrentScope as he, onScopeDispose as we, unref as W, watchEffect as ye, getCurrentInstance as xe, onMounted as R, watch as F, onBeforeUnmount as B, defineComponent as O, resolveComponent as h, openBlock as C, createBlock as q, isRef as J, withKeys as X, withModifiers as U, withCtx as w, createVNode as k, createTextVNode as j, toDisplayString as A, createElementBlock as N, normalizeStyle as ne, createElementVNode as v, createCommentVNode as le, Fragment as be, renderList as ke, useTemplateRef as Ce } from "vue";
3
- import { useI18n as Y } from "vue-i18n";
4
- import { useTheme as P, useDisplay as Le } from "vuetify";
5
- import { useRouter as ce, useRoute as De } from "vue-router";
6
- import { defineStore as Se } from "pinia";
7
- import Ae from "axios";
8
- function Dt() {
9
- const e = P(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), r = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), n = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
2
+ import { computed as y, getCurrentScope as xe, onScopeDispose as ke, unref as $, ref as f, watchEffect as be, getCurrentInstance as Ce, onMounted as O, provide as I, inject as T, watch as N, onBeforeUnmount as W, onBeforeMount as Le, defineComponent as E, resolveComponent as h, openBlock as C, createBlock as R, isRef as Y, withKeys as F, withModifiers as H, withCtx as w, createVNode as k, createTextVNode as q, toDisplayString as j, createElementBlock as Q, normalizeStyle as le, createElementVNode as m, createCommentVNode as ce, Fragment as De, renderList as Ae, useTemplateRef as Me } from "vue";
3
+ import { useI18n as P } from "vue-i18n";
4
+ import { useTheme as ee, useDisplay as Se } from "vuetify";
5
+ import { useRouter as ue, useRoute as je } from "vue-router";
6
+ import Re from "axios";
7
+ function Bt() {
8
+ const e = ee(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), n = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
10
9
  return {
11
10
  primaryColor: t,
12
11
  secondaryColor: a,
13
- backgroundColor0: r,
12
+ backgroundColor0: n,
14
13
  backgroundColor1: o,
15
14
  backgroundColor2: l,
16
- highlightColor: n,
15
+ highlightColor: r,
17
16
  borderColor: c
18
17
  };
19
18
  }
20
- const Z = Se("global", () => {
21
- const e = _(), t = _("en"), a = _({}), r = _(""), o = _("");
22
- return {
23
- dark: e,
24
- locale: t,
25
- permissionObjects: a,
26
- permissionChecksum: r,
27
- lastAppPath: o
28
- };
29
- });
19
+ function qe(e) {
20
+ return xe() ? (ke(e), !0) : !1;
21
+ }
22
+ function Ve(e) {
23
+ return typeof e == "function" ? e() : $(e);
24
+ }
25
+ const Oe = typeof window < "u" && typeof document < "u";
26
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
27
+ const Ie = Oe ? window : void 0;
28
+ function Te() {
29
+ const e = f(!1), t = Ce();
30
+ return t && O(() => {
31
+ e.value = !0;
32
+ }, t), e;
33
+ }
34
+ function Ee(e) {
35
+ const t = Te();
36
+ return y(() => (t.value, !!e()));
37
+ }
38
+ function Be(e, t = {}) {
39
+ const { window: a = Ie } = t, n = Ee(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
40
+ let o;
41
+ const l = f(!1), r = (s) => {
42
+ l.value = s.matches;
43
+ }, c = () => {
44
+ o && ("removeEventListener" in o ? o.removeEventListener("change", r) : o.removeListener(r));
45
+ }, u = be(() => {
46
+ n.value && (c(), o = a.matchMedia(Ve(e)), "addEventListener" in o ? o.addEventListener("change", r) : o.addListener(r), l.value = o.matches);
47
+ });
48
+ return qe(() => {
49
+ u(), c(), o = void 0;
50
+ }), l;
51
+ }
52
+ function Ue(e) {
53
+ return Be("(prefers-color-scheme: dark)", e);
54
+ }
30
55
  /*! js-cookie v3.0.5 | MIT */
31
- function z(e) {
56
+ function X(e) {
32
57
  for (var t = 1; t < arguments.length; t++) {
33
58
  var a = arguments[t];
34
- for (var r in a)
35
- e[r] = a[r];
59
+ for (var n in a)
60
+ e[n] = a[n];
36
61
  }
37
62
  return e;
38
63
  }
39
- var Me = {
64
+ var We = {
40
65
  read: function(e) {
41
66
  return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
42
67
  },
@@ -47,48 +72,48 @@ var Me = {
47
72
  );
48
73
  }
49
74
  };
50
- function Q(e, t) {
51
- function a(o, l, n) {
75
+ function J(e, t) {
76
+ function a(o, l, r) {
52
77
  if (!(typeof document > "u")) {
53
- n = z({}, t, n), typeof n.expires == "number" && (n.expires = new Date(Date.now() + n.expires * 864e5)), n.expires && (n.expires = n.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
78
+ r = X({}, t, 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);
54
79
  var c = "";
55
- for (var u in n)
56
- n[u] && (c += "; " + u, n[u] !== !0 && (c += "=" + n[u].split(";")[0]));
80
+ for (var u in r)
81
+ r[u] && (c += "; " + u, r[u] !== !0 && (c += "=" + r[u].split(";")[0]));
57
82
  return document.cookie = o + "=" + e.write(l, o) + c;
58
83
  }
59
84
  }
60
- function r(o) {
85
+ function n(o) {
61
86
  if (!(typeof document > "u" || arguments.length && !o)) {
62
- for (var l = document.cookie ? document.cookie.split("; ") : [], n = {}, c = 0; c < l.length; c++) {
87
+ for (var l = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < l.length; c++) {
63
88
  var u = l[c].split("="), s = u.slice(1).join("=");
64
89
  try {
65
90
  var g = decodeURIComponent(u[0]);
66
- if (n[g] = e.read(s, g), o === g)
91
+ if (r[g] = e.read(s, g), o === g)
67
92
  break;
68
93
  } catch {
69
94
  }
70
95
  }
71
- return o ? n[o] : n;
96
+ return o ? r[o] : r;
72
97
  }
73
98
  }
74
99
  return Object.create(
75
100
  {
76
101
  set: a,
77
- get: r,
102
+ get: n,
78
103
  remove: function(o, l) {
79
104
  a(
80
105
  o,
81
106
  "",
82
- z({}, l, {
107
+ X({}, l, {
83
108
  expires: -1
84
109
  })
85
110
  );
86
111
  },
87
112
  withAttributes: function(o) {
88
- return Q(this.converter, z({}, this.attributes, o));
113
+ return J(this.converter, X({}, this.attributes, o));
89
114
  },
90
115
  withConverter: function(o) {
91
- return Q(z({}, this.converter, o), this.attributes);
116
+ return J(X({}, this.converter, o), this.attributes);
92
117
  }
93
118
  },
94
119
  {
@@ -97,127 +122,127 @@ function Q(e, t) {
97
122
  }
98
123
  );
99
124
  }
100
- var I = Q(Me, { path: "/" });
101
- function St(e) {
102
- const t = Ae.create({
125
+ var V = J(We, { path: "/" });
126
+ function Ut(e) {
127
+ const t = Re.create({
103
128
  timeout: 6e3
104
129
  });
105
130
  return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
106
- (a) => Re(a),
131
+ (a) => He(a),
107
132
  (a) => {
108
- qe(a, e.onError);
133
+ $e(a, e.onError);
109
134
  }
110
135
  ), t.interceptors.response.use(
111
- (a) => Ve(a),
112
- (a) => je(a, e.onError)
136
+ (a) => Ke(a),
137
+ (a) => ze(a, e.onError)
113
138
  ), t;
114
139
  }
115
- function Re(e) {
116
- const t = I.get("accessToken") ?? "";
140
+ function He(e) {
141
+ const t = V.get("accessToken") ?? "";
117
142
  return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
118
143
  }
119
- function qe(e, t) {
144
+ function $e(e, t) {
120
145
  console.error(e), t("request timeout");
121
146
  }
122
- function Ve(e) {
147
+ function Ke(e) {
123
148
  return e.data;
124
149
  }
125
- function je(e, t) {
150
+ function ze(e, t) {
126
151
  var o, l;
127
- const r = e.response;
128
- return r && (r.status === 401 && Ie(), (o = r.data) != null && o.message ? t((l = r.data) == null ? void 0 : l.message) : t({
129
- code: r.status,
130
- message: r.statusText
152
+ const n = e.response;
153
+ return n && (n.status === 401 && Xe(), (o = n.data) != null && o.message ? t((l = n.data) == null ? void 0 : l.message) : t({
154
+ code: n.status,
155
+ message: n.statusText
131
156
  })), Promise.reject(e);
132
157
  }
133
- function Ie() {
134
- I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), ce().replace({ path: "/passport/login" });
158
+ function Xe() {
159
+ V.remove("accessToken"), V.remove("refreshToken"), V.remove("activeOrg"), ue().replace({ path: "/passport/login" });
135
160
  }
136
- function Oe(e) {
161
+ function Fe(e) {
137
162
  return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
138
- var r = e.get(t);
139
- r ? r.push(a) : e.set(t, [a]);
163
+ var n = e.get(t);
164
+ n ? n.push(a) : e.set(t, [a]);
140
165
  }, off: function(t, a) {
141
- var r = e.get(t);
142
- r && (a ? r.splice(r.indexOf(a) >>> 0, 1) : e.set(t, []));
166
+ var n = e.get(t);
167
+ n && (a ? n.splice(n.indexOf(a) >>> 0, 1) : e.set(t, []));
143
168
  }, emit: function(t, a) {
144
- var r = e.get(t);
145
- r && r.slice().map(function(o) {
169
+ var n = e.get(t);
170
+ n && n.slice().map(function(o) {
146
171
  o(a);
147
- }), (r = e.get("*")) && r.slice().map(function(o) {
172
+ }), (n = e.get("*")) && n.slice().map(function(o) {
148
173
  o(t, a);
149
174
  });
150
175
  } };
151
176
  }
152
177
  const p = function() {
153
- return window.eventBus || (window.eventBus = Oe()), window.eventBus;
178
+ return window.eventBus || (window.eventBus = Fe()), window.eventBus;
154
179
  }();
155
- async function At(e) {
180
+ async function Wt(e) {
156
181
  return new Promise((t) => {
157
182
  setTimeout(t, e);
158
183
  });
159
184
  }
160
- async function ee(e, t, a) {
161
- const r = Date.now();
185
+ async function te(e, t, a) {
186
+ const n = Date.now();
162
187
  return new Promise((o) => {
163
188
  const l = async () => {
164
- e() ? o(!0) : t && Date.now() - r > t ? o(!1) : setTimeout(l, a ?? 30);
189
+ e() ? o(!0) : t && Date.now() - n > t ? o(!1) : setTimeout(l, a ?? 30);
165
190
  };
166
191
  l();
167
192
  });
168
193
  }
169
- function Te(e, t) {
194
+ function Ze(e, t) {
170
195
  const a = document.getElementById("single-spa-application:" + e);
171
196
  a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
172
197
  a.classList.add("app-reset");
173
198
  }, 50));
174
199
  }
175
- let oe = Date.now();
176
- function ue() {
200
+ let ne = Date.now();
201
+ function pe() {
177
202
  const e = Date.now();
178
- return e - oe > 500 ? (oe = e, !0) : !1;
203
+ return e - ne > 500 ? (ne = e, !0) : !1;
179
204
  }
180
- let Ee = 0;
181
- function pe() {
182
- return ++Ee;
205
+ let Ne = 0;
206
+ function se() {
207
+ return ++Ne;
183
208
  }
184
- async function Mt(e) {
185
- if (!ue())
209
+ async function Ht(e) {
210
+ if (!pe())
186
211
  return;
187
212
  let t = !1, a;
188
- const r = (l) => {
213
+ const n = (l) => {
189
214
  a = l, t = !0;
190
- }, o = pe();
191
- return p.on("confirmDlgResult" + o, r), p.emit("confirmDlg", { ...e, seq: o }), await ee(() => t), p.off("confirmDlgResult" + o, r), a;
215
+ }, o = se();
216
+ return p.on("confirmDlgResult" + o, n), p.emit("confirmDlg", { ...e, seq: o }), await te(() => t), p.off("confirmDlgResult" + o, n), a;
192
217
  }
193
- async function Rt(e) {
194
- if (!ue())
218
+ async function $t(e) {
219
+ if (!pe())
195
220
  return;
196
221
  let t = !1, a;
197
- const r = (l) => {
222
+ const n = (l) => {
198
223
  a = l, t = !0;
199
- }, o = pe();
200
- return p.on("promptDlgResult" + o, r), p.emit("promptDlg", { ...e, seq: o }), await ee(() => t), p.off("promptDlgResult" + o, r), a;
224
+ }, o = se();
225
+ return p.on("promptDlgResult" + o, n), p.emit("promptDlg", { ...e, seq: o }), await te(() => t), p.off("promptDlgResult" + o, n), a;
201
226
  }
202
- function qt(e) {
227
+ function Kt(e) {
203
228
  p.emit("openWaitDlg", { text: e });
204
229
  }
205
- function Vt() {
230
+ function zt() {
206
231
  p.emit("closeWaitDlg");
207
232
  }
208
- function jt(e, t) {
233
+ function Xt(e, t) {
209
234
  p.emit("message", { type: "error", text: e, timeout: t });
210
235
  }
211
- function It(e, t) {
236
+ function Ft(e, t) {
212
237
  p.emit("message", { type: "info", text: e, timeout: t });
213
238
  }
214
- function Ot(e, t) {
239
+ function Zt(e, t) {
215
240
  p.emit("message", { type: "success", text: e, timeout: t });
216
241
  }
217
- function Tt(e, t) {
242
+ function Nt(e, t) {
218
243
  p.emit("message", { type: "warning", text: e, timeout: t });
219
244
  }
220
- 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_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.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))(Be || {});
245
+ 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.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))(Ge || {});
221
246
  function re(e, t) {
222
247
  if (!e)
223
248
  return !1;
@@ -231,14 +256,44 @@ function re(e, t) {
231
256
  return !1;
232
257
  }), Object.keys(a).length <= 0);
233
258
  }
234
- const se = "essentialViews";
235
- function Et(e) {
236
- ve(se, e);
259
+ const _e = "essentialDark", ie = "essentialLocale", de = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
260
+ function Qe(e) {
261
+ I(_e, e);
262
+ }
263
+ function Je() {
264
+ return T(_e);
265
+ }
266
+ function Ye(e) {
267
+ I(ie, e);
268
+ }
269
+ function Gt() {
270
+ return T(ie);
271
+ }
272
+ function Pe(e) {
273
+ I(de, e);
274
+ }
275
+ function et() {
276
+ return T(de);
237
277
  }
238
- function _e() {
239
- return me(se);
278
+ function tt(e) {
279
+ I(fe, e);
240
280
  }
241
- const Ue = [
281
+ function Qt() {
282
+ return T(fe);
283
+ }
284
+ function at(e) {
285
+ I(ge, e);
286
+ }
287
+ function ot() {
288
+ return T(ge);
289
+ }
290
+ function nt(e) {
291
+ I(ve, e);
292
+ }
293
+ function rt() {
294
+ return T(ve);
295
+ }
296
+ const lt = [
242
297
  {
243
298
  app: "x-passport-mf",
244
299
  path: "/passport/login",
@@ -346,268 +401,234 @@ const Ue = [
346
401
  mainActive: 2
347
402
  }
348
403
  ];
349
- function K(e) {
404
+ function Z(e) {
350
405
  let t, a = 0;
351
- const r = e.split("/").filter((o) => o.trim() !== "");
352
- return Ue.forEach((o) => {
406
+ const n = e.split("/").filter((o) => o.trim() !== "");
407
+ return lt.forEach((o) => {
353
408
  const l = o.path.split("/").filter((c) => c.trim() !== "");
354
- let n = 0;
355
- for (let c = 0; c < r.length && !(c >= l.length || r[c] !== l[c]); c++)
356
- n++;
357
- n > 0 && n > a && (t = o, a = n);
409
+ let r = 0;
410
+ for (let c = 0; c < n.length && !(c >= l.length || n[c] !== l[c]); c++)
411
+ r++;
412
+ r > 0 && r > a && (t = o, a = r);
358
413
  }), t;
359
414
  }
360
- const G = _("");
361
- function D(e, t) {
362
- const a = Z();
363
- t === "/" && (t = a.lastAppPath);
364
- const r = K(e), o = K(t);
365
- if (!r) {
415
+ const G = f("");
416
+ function M(e, t) {
417
+ const a = ot();
418
+ t === "/" && (t = a.value);
419
+ const n = Z(e), o = Z(t);
420
+ if (!n) {
366
421
  console.assert(!1);
367
422
  return;
368
423
  }
369
424
  if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !o)
370
425
  return;
371
- const l = r.app === o.app, n = r.path === o.path, c = r.level >= o.level;
372
- l ? n ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", Te(r.app, c));
426
+ const l = n.app === o.app, r = n.path === o.path, c = n.level >= o.level;
427
+ l ? r ? G.value = "" : G.value = c ? "inner-left" : "inner-right" : (G.value = "", Ze(n.app, c));
373
428
  }
374
- function We() {
375
- return !!I.get("accessToken");
429
+ function ct() {
430
+ return !!V.get("accessToken");
376
431
  }
377
- function He() {
378
- return !!I.get("activeOrg");
432
+ function ut() {
433
+ return !!V.get("activeOrg");
379
434
  }
380
- function Bt(e, t, a) {
381
- const r = We(), o = He(), l = K(e.path);
435
+ function Jt(e, t, a) {
436
+ const n = ct(), o = ut(), l = Z(e.path);
382
437
  if (!l) {
383
438
  console.assert(!1), a();
384
439
  return;
385
440
  }
386
441
  if (l.requiredState === "auth")
387
- if (r)
442
+ if (n)
388
443
  if (o) {
389
- const n = "/main";
390
- D(n, t.path), a({ path: n });
444
+ const r = "/main";
445
+ M(r, t.path), a({ path: r });
391
446
  } else
392
- D(e.path, t.path), a();
447
+ M(e.path, t.path), a();
393
448
  else {
394
- const n = "/passport/login";
395
- D(n, t.path), a({ path: n });
449
+ const r = "/passport/login";
450
+ M(r, t.path), a({ path: r });
396
451
  }
397
452
  else if (l.requiredState === "org")
398
- if (r)
453
+ if (n)
399
454
  if (o)
400
- D(e.path, t.path), a();
455
+ M(e.path, t.path), a();
401
456
  else {
402
- const n = "/org/joinOrCreate";
403
- D(n, t.path), a({ path: n });
457
+ const r = "/org/joinOrCreate";
458
+ M(r, t.path), a({ path: r });
404
459
  }
405
460
  else {
406
- const n = "/passport/login";
407
- D(n, t.path), a({ path: n });
461
+ const r = "/passport/login";
462
+ M(r, t.path), a({ path: r });
408
463
  }
409
- else if (r)
464
+ else if (n)
410
465
  if (o) {
411
- const n = "/main";
412
- D(n, t.path), a({ path: n });
466
+ const r = "/main";
467
+ M(r, t.path), a({ path: r });
413
468
  } else {
414
- const n = "/org/joinOrCreate";
415
- D(n, t.path), a({ path: n });
469
+ const r = "/org/joinOrCreate";
470
+ M(r, t.path), a({ path: r });
416
471
  }
417
472
  else
418
- D(e.path, t.path), a();
473
+ M(e.path, t.path), a();
419
474
  }
420
- function $e(e) {
475
+ function pt(e) {
421
476
  return e.value.length <= 0;
422
477
  }
423
- function Ut(e) {
478
+ function Yt(e) {
424
479
  return e.value.at(-1);
425
480
  }
426
- function de(e, t) {
481
+ function me(e, t) {
427
482
  return !!e.value.find((a) => a === t);
428
483
  }
429
- function ze(e, t) {
430
- const a = e.value.findIndex((r) => r === t);
484
+ function st(e, t) {
485
+ const a = e.value.findIndex((n) => n === t);
431
486
  a >= 0 && e.value.splice(a, 1), e.value.push(t);
432
487
  }
433
- function Xe(e, t) {
434
- const a = e.value.findIndex((r) => r === t);
488
+ function _t(e, t) {
489
+ const a = e.value.findIndex((n) => n === t);
435
490
  a >= 0 && e.value.splice(a, 1);
436
491
  }
437
- function Ke(e) {
492
+ function it(e) {
438
493
  console.assert(e.value.length > 0), e.value.pop();
439
494
  }
440
- function Wt(e) {
495
+ function Pt(e) {
441
496
  e.value = [];
442
497
  }
443
- function Fe(e) {
444
- return he() ? (we(e), !0) : !1;
445
- }
446
- function Ze(e) {
447
- return typeof e == "function" ? e() : W(e);
448
- }
449
- const Ge = typeof window < "u" && typeof document < "u";
450
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
451
- const Ne = Ge ? window : void 0;
452
- function Qe() {
453
- const e = _(!1), t = xe();
454
- return t && R(() => {
455
- e.value = !0;
456
- }, t), e;
457
- }
458
- function Je(e) {
459
- const t = Qe();
460
- return y(() => (t.value, !!e()));
461
- }
462
- function Ye(e, t = {}) {
463
- const { window: a = Ne } = t, r = Je(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
464
- let o;
465
- const l = _(!1), n = (s) => {
466
- l.value = s.matches;
467
- }, c = () => {
468
- o && ("removeEventListener" in o ? o.removeEventListener("change", n) : o.removeListener(n));
469
- }, u = ye(() => {
470
- r.value && (c(), o = a.matchMedia(Ze(e)), "addEventListener" in o ? o.addEventListener("change", n) : o.addListener(n), l.value = o.matches);
471
- });
472
- return Fe(() => {
473
- u(), c(), o = void 0;
474
- }), l;
475
- }
476
- function Pe(e) {
477
- return Ye("(prefers-color-scheme: dark)", e);
478
- }
479
- function et() {
480
- const e = Le(), t = Z(), a = Pe(), r = y(() => typeof t.dark == "boolean" ? t.dark : a.value), o = y(() => !!window.cordova), l = y(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
481
- return { dark: r, sysBarAvail: o, compactWidth: l };
482
- }
483
- function Ht() {
484
- const e = De(), t = ce(), a = P(), { dark: r } = et(), o = Z(), l = _e();
485
- F(
486
- r,
487
- (d) => {
488
- a.global.name.value = d ? "dark" : "light";
498
+ function dt() {
499
+ const e = Je(), t = Ue(), a = y(() => typeof e.value == "boolean" ? e.value : t.value), n = y(() => !!window.cordova), o = Se(), l = y(() => o.width.value <= 1280 ? o.width.value + "px" : o.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
500
+ return { finalDark: a, sysBarAvail: n, compactWidth: l };
501
+ }
502
+ function ea(e, t, a, n, o, l) {
503
+ const r = je(), c = ue();
504
+ Qe(e), Ye(t), Pe(a), tt(n), at(o), nt(l);
505
+ const u = ee(), { finalDark: s } = dt();
506
+ N(
507
+ s,
508
+ (_) => {
509
+ u.global.name.value = _ ? "dark" : "light";
489
510
  },
490
511
  { immediate: !0 }
491
512
  );
492
- const n = (d) => {
493
- if (d.key === "Escape") {
494
- c();
513
+ const g = (_) => {
514
+ if (_.key === "Escape") {
515
+ v();
495
516
  return;
496
517
  }
497
- }, c = () => {
518
+ }, v = () => {
498
519
  var x;
499
- if (!$e(l)) {
500
- de(l, "waitDlg") || Ke(l);
520
+ if (!pt(l)) {
521
+ me(l, "waitDlg") || it(l);
501
522
  return;
502
523
  }
503
- const d = K(e.path);
504
- (d == null ? void 0 : d.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
524
+ const _ = Z(r.path);
525
+ (_ == null ? void 0 : _.level) === 0 ? (x = navigator == null ? void 0 : navigator.Backbutton) == null || x.goHome(
505
526
  () => {
506
527
  },
507
528
  () => {
508
529
  }
509
- ) : t.back();
530
+ ) : c.back();
510
531
  };
511
- R(() => {
512
- window.addEventListener("keydown", n), p.on("backbutton", c);
513
- }), B(() => {
514
- window.removeEventListener("keydown", n), p.off("backbutton", c);
532
+ O(() => {
533
+ window.addEventListener("keydown", g), p.on("backbutton", v);
534
+ }), W(() => {
535
+ window.removeEventListener("keydown", g), p.off("backbutton", v);
515
536
  });
516
- const u = (d) => {
517
- o.dark = d;
518
- }, s = (d) => {
519
- o.locale = d;
520
- }, g = (d) => {
521
- const x = d;
522
- o.permissionObjects = x[0], o.permissionChecksum = x[1];
523
- }, m = (d) => {
524
- o.lastAppPath = d;
537
+ const L = (_) => {
538
+ e.value = _;
539
+ }, b = (_) => {
540
+ t.value = _;
541
+ }, i = (_) => {
542
+ const x = _;
543
+ a.value = x[0], n.value = x[1];
544
+ }, D = (_) => {
545
+ o.value = _;
525
546
  };
526
- R(() => {
527
- p.on("updateDark", u), p.on("updateLocale", s), p.on("updatePermission", g), p.on("updateLastAppPath", m), p.emit("syncGlobalState");
528
- }), B(() => {
529
- p.off("updateDark", u), p.off("updateLocale", s), p.off("updatePermission", g), p.off("updateLastAppPath", m);
547
+ Le(() => {
548
+ p.on("updateDark", L), p.on("updateLocale", b), p.on("updatePermission", i), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
549
+ }), W(() => {
550
+ p.off("updateDark", L), p.off("updateLocale", b), p.off("updatePermission", i), p.off("updateLastAppPath", D);
530
551
  });
531
552
  }
532
- function $t() {
533
- const e = Z();
534
- function t(a, r) {
535
- const o = e.permissionObjects[a];
536
- return o ? r ? !(!re(o.includes, r) || re(o.excludes, r)) : !0 : !1;
553
+ function ta() {
554
+ const e = et();
555
+ function t(a, n) {
556
+ const o = e.value[a];
557
+ return o ? n ? !(!re(o.includes, n) || re(o.excludes, n)) : !0 : !1;
537
558
  }
538
559
  return { verifyPermission: t };
539
560
  }
540
- function te(e, t) {
541
- const a = _e(), r = y({
561
+ function ae(e, t) {
562
+ const a = rt(), n = y({
542
563
  get() {
543
- return de(a, e);
564
+ return me(a, e);
544
565
  },
545
566
  set(l) {
546
- l ? ze(a, e) : Xe(a, e);
567
+ l ? st(a, e) : _t(a, e);
547
568
  }
548
569
  }), o = (l) => {
549
- t == null || t(l), r.value = !0;
570
+ t == null || t(l), n.value = !0;
550
571
  };
551
- return R(() => {
572
+ return O(() => {
552
573
  p.on(e, o);
553
- }), B(() => {
574
+ }), W(() => {
554
575
  p.off(e, o);
555
- }), { open: r };
576
+ }), { open: n };
556
577
  }
557
- const tt = /* @__PURE__ */ O({
578
+ const ft = /* @__PURE__ */ E({
558
579
  __name: "index",
559
580
  setup(e) {
560
- const { t } = Y(), a = _(""), r = _(""), o = _(""), l = _(""), n = _(""), c = _("");
581
+ const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(""), c = f("");
561
582
  let u = 0, s = !1;
562
- const g = (x) => {
563
- var V, b, M, L;
564
- const f = x;
565
- a.value = f.title, r.value = f.text, o.value = ((V = f.cancel) == null ? void 0 : V.color) ?? "primary", l.value = ((b = f.cancel) == null ? void 0 : b.text) ?? t("dlg.common.cancel"), n.value = ((M = f.confirm) == null ? void 0 : M.color) ?? "primary", c.value = ((L = f.confirm) == null ? void 0 : L.text) ?? t("dlg.common.confirm"), u = f.seq, s = !1, m.value = !0;
566
- }, { open: m } = te("confirmDlg", g), d = () => {
567
- m.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
583
+ const g = (b) => {
584
+ var D, _, x, A;
585
+ const i = b;
586
+ a.value = i.title, n.value = i.text, o.value = ((D = i.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((_ = i.cancel) == null ? void 0 : _.text) ?? t("dlg.common.cancel"), r.value = ((x = i.confirm) == null ? void 0 : x.color) ?? "primary", c.value = ((A = i.confirm) == null ? void 0 : A.text) ?? t("dlg.common.confirm"), u = i.seq, s = !1, v.value = !0;
587
+ }, { open: v } = ae("confirmDlg", g), L = () => {
588
+ v.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
568
589
  };
569
- return F(m, (x) => {
570
- !x && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
571
- }), (x, f) => {
572
- const V = h("v-card-text"), b = h("v-btn"), M = h("v-card-actions"), L = h("v-card"), i = h("v-dialog");
573
- return C(), q(i, {
574
- modelValue: W(m),
575
- "onUpdate:modelValue": f[1] || (f[1] = (S) => J(m) ? m.value = S : null),
590
+ return N(v, (b) => {
591
+ !b && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
592
+ }), (b, i) => {
593
+ const D = h("v-card-text"), _ = h("v-btn"), x = h("v-card-actions"), A = h("v-card"), d = h("v-dialog");
594
+ return C(), R(d, {
595
+ modelValue: $(v),
596
+ "onUpdate:modelValue": i[1] || (i[1] = (S) => Y(v) ? v.value = S : null),
576
597
  transition: "dialog-top-transition",
577
598
  "max-width": "600px",
578
599
  onKeydown: [
579
- f[2] || (f[2] = X(U((S) => m.value = !1, ["stop", "prevent"]), ["esc"])),
580
- X(U(d, ["stop", "prevent"]), ["enter"])
600
+ i[2] || (i[2] = F(H((S) => v.value = !1, ["stop", "prevent"]), ["esc"])),
601
+ F(H(L, ["stop", "prevent"]), ["enter"])
581
602
  ]
582
603
  }, {
583
604
  default: w(() => [
584
- k(L, { title: a.value }, {
605
+ k(A, { title: a.value }, {
585
606
  default: w(() => [
586
- k(V, null, {
607
+ k(D, null, {
587
608
  default: w(() => [
588
- j(A(r.value), 1)
609
+ q(j(n.value), 1)
589
610
  ]),
590
611
  _: 1
591
612
  }),
592
- k(M, { class: "d-flex justify-end" }, {
613
+ k(x, { class: "d-flex justify-end" }, {
593
614
  default: w(() => [
594
- k(b, {
615
+ k(_, {
595
616
  color: o.value,
596
617
  variant: "text",
597
- onClick: f[0] || (f[0] = (S) => m.value = !1)
618
+ onClick: i[0] || (i[0] = (S) => v.value = !1)
598
619
  }, {
599
620
  default: w(() => [
600
- j(A(l.value), 1)
621
+ q(j(l.value), 1)
601
622
  ]),
602
623
  _: 1
603
624
  }, 8, ["color"]),
604
- k(b, {
605
- color: n.value,
625
+ k(_, {
626
+ color: r.value,
606
627
  variant: "text",
607
- onClick: d
628
+ onClick: L
608
629
  }, {
609
630
  default: w(() => [
610
- j(A(c.value), 1)
631
+ q(j(c.value), 1)
611
632
  ]),
612
633
  _: 1
613
634
  }, 8, ["color"])
@@ -622,44 +643,44 @@ const tt = /* @__PURE__ */ O({
622
643
  }, 8, ["modelValue", "onKeydown"]);
623
644
  };
624
645
  }
625
- }), at = /* @__PURE__ */ O({
646
+ }), gt = /* @__PURE__ */ E({
626
647
  __name: "index",
627
648
  props: {
628
649
  zIndex: { default: 1 }
629
650
  },
630
651
  setup(e) {
631
- const t = P(), a = e, r = y(() => ({
652
+ const t = ee(), a = e, n = y(() => ({
632
653
  background: t.current.value.dark ? "#1e1e1e" : "#ffffff",
633
654
  zIndex: a.zIndex
634
655
  }));
635
- return (o, l) => (C(), N("div", {
656
+ return (o, l) => (C(), Q("div", {
636
657
  class: "x-cont",
637
- style: ne(r.value)
658
+ style: le(n.value)
638
659
  }, l[0] || (l[0] = [
639
- v("div", { class: "lds-spinner" }, [
640
- v("div"),
641
- v("div"),
642
- v("div"),
643
- v("div"),
644
- v("div"),
645
- v("div"),
646
- v("div"),
647
- v("div"),
648
- v("div"),
649
- v("div"),
650
- v("div"),
651
- v("div")
660
+ m("div", { class: "lds-spinner" }, [
661
+ m("div"),
662
+ m("div"),
663
+ m("div"),
664
+ m("div"),
665
+ m("div"),
666
+ m("div"),
667
+ m("div"),
668
+ m("div"),
669
+ m("div"),
670
+ m("div"),
671
+ m("div"),
672
+ m("div")
652
673
  ], -1)
653
674
  ]), 4));
654
675
  }
655
- }), ae = (e, t) => {
676
+ }), oe = (e, t) => {
656
677
  const a = e.__vccOpts || e;
657
- for (const [r, o] of t)
658
- a[r] = o;
678
+ for (const [n, o] of t)
679
+ a[n] = o;
659
680
  return a;
660
- }, ot = /* @__PURE__ */ ae(at, [["__scopeId", "data-v-7ab74c70"]]);
661
- var rt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", nt = "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", lt = "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", ct = "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", ut = "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";
662
- const pt = /* @__PURE__ */ O({
681
+ }, vt = /* @__PURE__ */ oe(gt, [["__scopeId", "data-v-7ab74c70"]]);
682
+ var mt = "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", ht = "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", wt = "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", yt = "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", xt = "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";
683
+ const kt = /* @__PURE__ */ E({
663
684
  __name: "item",
664
685
  props: {
665
686
  id: {},
@@ -669,161 +690,161 @@ const pt = /* @__PURE__ */ O({
669
690
  },
670
691
  emits: ["timeout"],
671
692
  setup(e, { emit: t }) {
672
- const a = e, r = y(() => ({
693
+ const a = e, n = y(() => ({
673
694
  width: "calc(100% - 64px)",
674
695
  overflowWrap: "break-word"
675
696
  })), o = y(() => {
676
697
  switch (a.type) {
677
698
  case "success":
678
- return nt;
699
+ return ht;
679
700
  case "info":
680
- return ut;
701
+ return xt;
681
702
  case "error":
682
- return ct;
703
+ return yt;
683
704
  case "warning":
684
- return rt;
705
+ return mt;
685
706
  default:
686
707
  return "";
687
708
  }
688
- }), l = _(!0), n = t;
689
- return R(() => {
709
+ }), l = f(!0), r = t;
710
+ return O(() => {
690
711
  setTimeout(() => {
691
- n("timeout", a.id);
712
+ r("timeout", a.id);
692
713
  }, a.timeout);
693
- }), F(l, (c) => {
694
- c || n("timeout", a.id);
714
+ }), N(l, (c) => {
715
+ c || r("timeout", a.id);
695
716
  }), (c, u) => {
696
717
  const s = h("v-icon"), g = h("v-sheet");
697
- return C(), q(g, {
718
+ return C(), R(g, {
698
719
  class: "x-item d-flex align-center py-2 mb-2",
699
720
  color: a.type,
700
721
  elevation: 1
701
722
  }, {
702
723
  default: w(() => [
703
- o.value ? (C(), q(s, {
724
+ o.value ? (C(), R(s, {
704
725
  key: 0,
705
726
  class: "mx-1",
706
727
  icon: o.value
707
- }, null, 8, ["icon"])) : le("", !0),
708
- v("div", {
709
- style: ne(r.value)
710
- }, A(a.text), 5),
728
+ }, null, 8, ["icon"])) : ce("", !0),
729
+ m("div", {
730
+ style: le(n.value)
731
+ }, j(a.text), 5),
711
732
  k(s, {
712
733
  class: "mx-1",
713
- icon: W(lt),
714
- onClick: u[0] || (u[0] = (m) => n("timeout", a.id))
734
+ icon: $(wt),
735
+ onClick: u[0] || (u[0] = (v) => r("timeout", a.id))
715
736
  }, null, 8, ["icon"])
716
737
  ]),
717
738
  _: 1
718
739
  }, 8, ["color"]);
719
740
  };
720
741
  }
721
- }), st = /* @__PURE__ */ ae(pt, [["__scopeId", "data-v-d5cfe252"]]), _t = /* @__PURE__ */ O({
742
+ }), bt = /* @__PURE__ */ oe(kt, [["__scopeId", "data-v-d5cfe252"]]), Ct = /* @__PURE__ */ E({
722
743
  __name: "index",
723
744
  setup(e) {
724
- const t = _([]);
725
- R(() => {
745
+ const t = f([]);
746
+ O(() => {
726
747
  p.on("message", a);
727
- }), B(() => {
748
+ }), W(() => {
728
749
  p.off("message", a);
729
750
  });
730
751
  const a = (c) => {
731
752
  const { type: u, text: s, timeout: g } = c;
732
753
  l(u, s, g);
733
- }, r = (c) => {
734
- n(c);
754
+ }, n = (c) => {
755
+ r(c);
735
756
  };
736
757
  let o = 0;
737
758
  const l = (c, u, s) => {
738
759
  const g = o++;
739
760
  t.value.push({ id: g, type: c, text: u, timeout: s });
740
- }, n = (c) => {
761
+ }, r = (c) => {
741
762
  const u = t.value.findIndex((s) => s.id === c);
742
763
  u >= 0 && t.value.splice(u, 1);
743
764
  };
744
- return (c, u) => (C(), N("div", {
765
+ return (c, u) => (C(), Q("div", {
745
766
  class: "x-cont d-flex flex-column-reverse align-center",
746
- onClick: u[0] || (u[0] = U(() => {
767
+ onClick: u[0] || (u[0] = H(() => {
747
768
  }, ["stop"]))
748
769
  }, [
749
- (C(!0), N(be, null, ke(t.value, (s) => (C(), q(st, {
770
+ (C(!0), Q(De, null, Ae(t.value, (s) => (C(), R(bt, {
750
771
  id: s.id,
751
772
  key: s.id,
752
773
  type: s.type,
753
774
  text: s.text,
754
775
  timeout: s.timeout,
755
- onTimeout: r
776
+ onTimeout: n
756
777
  }, null, 8, ["id", "type", "text", "timeout"]))), 128))
757
778
  ]));
758
779
  }
759
- }), dt = /* @__PURE__ */ ae(_t, [["__scopeId", "data-v-8fd5d800"]]), it = /* @__PURE__ */ O({
780
+ }), Lt = /* @__PURE__ */ oe(Ct, [["__scopeId", "data-v-8fd5d800"]]), Dt = /* @__PURE__ */ E({
760
781
  __name: "index",
761
782
  setup(e) {
762
- const { t } = Y(), a = _(""), r = _(""), o = _(""), l = _(""), n = _(), c = _(""), u = _(""), s = _(""), g = _(""), m = _(""), d = Ce("target");
763
- let x = 0, f = !1;
764
- const V = async (L) => {
765
- var S, H, $, T;
766
- const i = L;
767
- a.value = i.title, r.value = i.text, o.value = i.label, l.value = i.placeholder, n.value = i.rules, c.value = i.value, u.value = ((S = i.cancel) == null ? void 0 : S.color) ?? "primary", s.value = ((H = i.cancel) == null ? void 0 : H.text) ?? t("dlg.common.cancel"), g.value = (($ = i.confirm) == null ? void 0 : $.color) ?? "primary", m.value = ((T = i.confirm) == null ? void 0 : T.text) ?? t("dlg.common.confirm"), x = i.seq, f = !1, b.value = !0, await ee(() => !!d.value), d.value.focus();
768
- }, { open: b } = te("promptDlg", V), M = () => {
769
- b.value = !1, f || (p.emit("promptDlgResult" + x, c.value ?? ""), f = !0);
783
+ const { t } = P(), a = f(""), n = f(""), o = f(""), l = f(""), r = f(), c = f(""), u = f(""), s = f(""), g = f(""), v = f(""), L = Me("target");
784
+ let b = 0, i = !1;
785
+ const D = async (A) => {
786
+ var S, K, z, B;
787
+ const d = A;
788
+ a.value = d.title, n.value = d.text, o.value = d.label, l.value = d.placeholder, r.value = d.rules, c.value = d.value, u.value = ((S = d.cancel) == null ? void 0 : S.color) ?? "primary", s.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 = ((B = d.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), b = d.seq, i = !1, _.value = !0, await te(() => !!L.value), L.value.focus();
789
+ }, { open: _ } = ae("promptDlg", D), x = () => {
790
+ _.value = !1, i || (p.emit("promptDlgResult" + b, c.value ?? ""), i = !0);
770
791
  };
771
- return F(b, (L) => {
772
- !L && !f && (p.emit("promptDlgResult" + x, void 0), f = !0);
773
- }), (L, i) => {
774
- const S = h("v-card-text"), H = h("v-text-field"), $ = h("v-form"), T = h("v-btn"), ie = h("v-card-actions"), fe = h("v-card"), ge = h("v-dialog");
775
- return C(), q(ge, {
776
- modelValue: W(b),
777
- "onUpdate:modelValue": i[2] || (i[2] = (E) => J(b) ? b.value = E : null),
792
+ return N(_, (A) => {
793
+ !A && !i && (p.emit("promptDlgResult" + b, void 0), i = !0);
794
+ }), (A, d) => {
795
+ const S = h("v-card-text"), K = h("v-text-field"), z = h("v-form"), B = h("v-btn"), he = h("v-card-actions"), we = h("v-card"), ye = h("v-dialog");
796
+ return C(), R(ye, {
797
+ modelValue: $(_),
798
+ "onUpdate:modelValue": d[2] || (d[2] = (U) => Y(_) ? _.value = U : null),
778
799
  transition: "dialog-top-transition",
779
800
  "max-width": "600px",
780
801
  onKeydown: [
781
- i[3] || (i[3] = X(U((E) => b.value = !1, ["stop", "prevent"]), ["esc"])),
782
- X(U(M, ["stop", "prevent"]), ["enter"])
802
+ d[3] || (d[3] = F(H((U) => _.value = !1, ["stop", "prevent"]), ["esc"])),
803
+ F(H(x, ["stop", "prevent"]), ["enter"])
783
804
  ]
784
805
  }, {
785
806
  default: w(() => [
786
- k(fe, { title: a.value }, {
807
+ k(we, { title: a.value }, {
787
808
  default: w(() => [
788
- r.value ? (C(), q(S, { key: 0 }, {
809
+ n.value ? (C(), R(S, { key: 0 }, {
789
810
  default: w(() => [
790
- j(A(r.value), 1)
811
+ q(j(n.value), 1)
791
812
  ]),
792
813
  _: 1
793
- })) : le("", !0),
794
- k($, { class: "mx-3" }, {
814
+ })) : ce("", !0),
815
+ k(z, { class: "mx-3" }, {
795
816
  default: w(() => [
796
- k(H, {
817
+ k(K, {
797
818
  ref_key: "target",
798
- ref: d,
819
+ ref: L,
799
820
  modelValue: c.value,
800
- "onUpdate:modelValue": i[0] || (i[0] = (E) => c.value = E),
821
+ "onUpdate:modelValue": d[0] || (d[0] = (U) => c.value = U),
801
822
  label: o.value,
802
823
  placeholder: l.value,
803
- rules: n.value
824
+ rules: r.value
804
825
  }, null, 8, ["modelValue", "label", "placeholder", "rules"])
805
826
  ]),
806
827
  _: 1
807
828
  }),
808
- k(ie, { class: "d-flex justify-end" }, {
829
+ k(he, { class: "d-flex justify-end" }, {
809
830
  default: w(() => [
810
- k(T, {
831
+ k(B, {
811
832
  color: u.value,
812
833
  variant: "text",
813
- onClick: i[1] || (i[1] = (E) => b.value = !1)
834
+ onClick: d[1] || (d[1] = (U) => _.value = !1)
814
835
  }, {
815
836
  default: w(() => [
816
- j(A(s.value), 1)
837
+ q(j(s.value), 1)
817
838
  ]),
818
839
  _: 1
819
840
  }, 8, ["color"]),
820
- k(T, {
841
+ k(B, {
821
842
  color: g.value,
822
843
  variant: "text",
823
- onClick: M
844
+ onClick: x
824
845
  }, {
825
846
  default: w(() => [
826
- j(A(m.value), 1)
847
+ q(j(v.value), 1)
827
848
  ]),
828
849
  _: 1
829
850
  }, 8, ["color"])
@@ -838,38 +859,38 @@ const pt = /* @__PURE__ */ O({
838
859
  }, 8, ["modelValue", "onKeydown"]);
839
860
  };
840
861
  }
841
- }), ft = { class: "mx-auto my-auto" }, gt = { class: "w-100 h-100 d-flex align-center justify-center" }, vt = { class: "text-body-1" }, mt = /* @__PURE__ */ O({
862
+ }), At = { class: "mx-auto my-auto" }, Mt = { class: "w-100 h-100 d-flex align-center justify-center" }, St = { class: "text-body-1" }, jt = /* @__PURE__ */ E({
842
863
  __name: "index",
843
864
  setup(e) {
844
- const { t } = Y(), a = _(""), r = (n) => {
845
- const c = n;
865
+ const { t } = P(), a = f(""), n = (r) => {
866
+ const c = r;
846
867
  a.value = c.text ?? t("dlg.common.waiting"), l.value = !0;
847
868
  }, o = () => {
848
869
  l.value = !1;
849
- }, { open: l } = te("waitDlg", r);
850
- return R(() => {
870
+ }, { open: l } = ae("waitDlg", n);
871
+ return O(() => {
851
872
  p.on("closeWaitDlg", o);
852
- }), B(() => {
873
+ }), W(() => {
853
874
  p.off("closeWaitDlg", o);
854
- }), (n, c) => {
875
+ }), (r, c) => {
855
876
  const u = h("v-card"), s = h("v-dialog");
856
- return C(), q(s, {
857
- modelValue: W(l),
858
- "onUpdate:modelValue": c[0] || (c[0] = (g) => J(l) ? l.value = g : null),
877
+ return C(), R(s, {
878
+ modelValue: $(l),
879
+ "onUpdate:modelValue": c[0] || (c[0] = (g) => Y(l) ? l.value = g : null),
859
880
  persistent: "",
860
881
  "no-click-animation": "",
861
882
  fullscreen: ""
862
883
  }, {
863
884
  default: w(() => [
864
- v("div", ft, [
885
+ m("div", At, [
865
886
  k(u, {
866
887
  width: "300px",
867
888
  height: "80px",
868
889
  loading: ""
869
890
  }, {
870
891
  default: w(() => [
871
- v("div", gt, [
872
- v("span", vt, A(a.value), 1)
892
+ m("div", Mt, [
893
+ m("span", St, j(a.value), 1)
873
894
  ])
874
895
  ]),
875
896
  _: 1
@@ -880,11 +901,11 @@ const pt = /* @__PURE__ */ O({
880
901
  }, 8, ["modelValue"]);
881
902
  };
882
903
  }
883
- }), ht = (e) => {
884
- e.component("XConfirmDlg", tt), e.component("XLoading", ot), e.component("XMessage", dt), e.component("XPromptDlg", it), e.component("XWaitDlg", mt);
885
- }, wt = (e, t, a) => {
886
- const r = e[t];
887
- return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((o, l) => {
904
+ }), Rt = (e) => {
905
+ e.component("XConfirmDlg", ft), e.component("XLoading", vt), e.component("XMessage", Lt), e.component("XPromptDlg", Dt), e.component("XWaitDlg", jt);
906
+ }, qt = (e, t, a) => {
907
+ const n = e[t];
908
+ return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, l) => {
888
909
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
889
910
  l.bind(
890
911
  null,
@@ -895,44 +916,53 @@ const pt = /* @__PURE__ */ O({
895
916
  );
896
917
  });
897
918
  };
898
- async function zt(e) {
899
- return (await wt(/* @__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;
919
+ async function aa(e) {
920
+ 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;
900
921
  }
901
- const Xt = { install: ht };
922
+ const oa = { install: Rt };
902
923
  export {
903
- Be as Permission,
904
- ze as addView,
905
- Te as appAppear,
906
- Wt as clearViews,
907
- Vt as closeWaitDlg,
908
- St as createAxios,
909
- Xt as default,
910
- Xe as delView,
924
+ Ge as Permission,
925
+ st as addView,
926
+ Ze as appAppear,
927
+ Pt as clearViews,
928
+ zt as closeWaitDlg,
929
+ Ut as createAxios,
930
+ oa as default,
931
+ _t as delView,
911
932
  p as eventBus,
912
- de as hasView,
913
- _e as injectViews,
914
- $e as isEmpty,
933
+ me as hasView,
934
+ Je as injectDark,
935
+ ot as injectLastAppPath,
936
+ Gt as injectLocale,
937
+ Qt as injectPermissionChecksum,
938
+ et as injectPermissionObjects,
939
+ rt as injectViews,
940
+ pt as isEmpty,
915
941
  re as isExist,
916
- Ut as lastView,
917
- zt as loadLocaleMessageEssential,
918
- K as matchRouteMeta,
919
- jt as messageError,
920
- It as messageInfo,
921
- Ot as messageSuccess,
922
- Tt as messageWarning,
923
- Bt as onBeforeEach,
924
- Mt as openConfirmDlg,
925
- Rt as openPromptDlg,
926
- qt as openWaitDlg,
927
- Ke as popView,
928
- Et as provideViews,
942
+ Yt as lastView,
943
+ aa as loadLocaleMessageEssential,
944
+ Z as matchRouteMeta,
945
+ Xt as messageError,
946
+ Ft as messageInfo,
947
+ Zt as messageSuccess,
948
+ Nt as messageWarning,
949
+ Jt as onBeforeEach,
950
+ Ht as openConfirmDlg,
951
+ $t as openPromptDlg,
952
+ Kt as openWaitDlg,
953
+ it as popView,
954
+ Qe as provideDark,
955
+ at as provideLastAppPath,
956
+ Ye as provideLocale,
957
+ tt as providePermissionChecksum,
958
+ Pe as providePermissionObjects,
959
+ nt as provideViews,
929
960
  G as routeTransName,
930
- Dt as useColor,
931
- Z as useGlobalStore,
932
- Ht as useMicroApp,
933
- $t as usePermission,
934
- et as useSystem,
935
- te as useViewStack,
936
- At as waitMs,
937
- ee as waitUtil
961
+ Bt as useColor,
962
+ ea as useMicroApp,
963
+ ta as usePermission,
964
+ dt as useSystem,
965
+ ae as useViewStack,
966
+ Wt as waitMs,
967
+ te as waitUtil
938
968
  };