x-essential-lib 0.5.84 → 0.6.0

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