x-essential-lib 0.5.83 → 0.5.85

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