x-essential-lib 0.7.1 → 0.7.3

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