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/composables/system.d.ts +1 -1
- package/dist/{en-biuxtbqr.js → en-iuzmkt0n.js} +2 -4
- package/dist/i18n/locales/en/dlg.d.ts +1 -3
- package/dist/i18n/locales/en/index.d.ts +1 -3
- package/dist/i18n/locales/zhHans/dlg.d.ts +1 -3
- package/dist/i18n/locales/zhHans/index.d.ts +1 -3
- package/dist/index.js +420 -421
- package/dist/utils/dialog.d.ts +1 -1
- package/dist/{zhHans-oyixjtq6.js → zhHans-m6y1by9n.js} +2 -4
- package/package.json +1 -1
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-
|
|
2
|
-
import { ref as
|
|
3
|
-
import {
|
|
4
|
-
import { defineStore as
|
|
5
|
-
import
|
|
6
|
-
import { useRouter as
|
|
7
|
-
|
|
8
|
-
|
|
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:
|
|
12
|
-
permissionObjects:
|
|
12
|
+
locale: t,
|
|
13
|
+
permissionObjects: a,
|
|
13
14
|
permissionChecksum: n,
|
|
14
15
|
lastAppPath: o
|
|
15
16
|
};
|
|
16
|
-
}),
|
|
17
|
-
const e =
|
|
18
|
-
function
|
|
17
|
+
}), W = oe("viewMgr", () => {
|
|
18
|
+
const e = d([]);
|
|
19
|
+
function t() {
|
|
19
20
|
return e.value.length <= 0;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
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((
|
|
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
|
|
34
|
-
|
|
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:
|
|
45
|
-
lastView:
|
|
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
|
|
55
|
-
for (var
|
|
56
|
-
var
|
|
57
|
-
for (var n in
|
|
58
|
-
e[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
|
|
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
|
|
74
|
-
function
|
|
74
|
+
function J(e, t) {
|
|
75
|
+
function a(o, r, l) {
|
|
75
76
|
if (!(typeof document > "u")) {
|
|
76
|
-
l =
|
|
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("="),
|
|
87
|
+
var u = r[c].split("="), p = u.slice(1).join("=");
|
|
87
88
|
try {
|
|
88
|
-
var
|
|
89
|
-
if (l[
|
|
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:
|
|
100
|
+
set: a,
|
|
100
101
|
get: n,
|
|
101
102
|
remove: function(o, r) {
|
|
102
|
-
|
|
103
|
+
a(
|
|
103
104
|
o,
|
|
104
105
|
"",
|
|
105
|
-
|
|
106
|
+
F({}, r, {
|
|
106
107
|
expires: -1
|
|
107
108
|
})
|
|
108
109
|
);
|
|
109
110
|
},
|
|
110
111
|
withAttributes: function(o) {
|
|
111
|
-
return
|
|
112
|
+
return J(this.converter, F({}, this.attributes, o));
|
|
112
113
|
},
|
|
113
114
|
withConverter: function(o) {
|
|
114
|
-
return
|
|
115
|
+
return J(F({}, this.converter, o), this.attributes);
|
|
115
116
|
}
|
|
116
117
|
},
|
|
117
118
|
{
|
|
118
|
-
attributes: { value: Object.freeze(
|
|
119
|
+
attributes: { value: Object.freeze(t) },
|
|
119
120
|
converter: { value: Object.freeze(e) }
|
|
120
121
|
}
|
|
121
122
|
);
|
|
122
123
|
}
|
|
123
|
-
var
|
|
124
|
-
function
|
|
125
|
-
const
|
|
124
|
+
var E = J(Ve, { path: "/" });
|
|
125
|
+
function vt(e) {
|
|
126
|
+
const t = be.create({
|
|
126
127
|
timeout: 6e3
|
|
127
128
|
});
|
|
128
|
-
return
|
|
129
|
-
(
|
|
130
|
-
(
|
|
131
|
-
|
|
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
|
-
),
|
|
134
|
-
(
|
|
135
|
-
(
|
|
136
|
-
),
|
|
134
|
+
), t.interceptors.response.use(
|
|
135
|
+
(a) => Me(a),
|
|
136
|
+
(a) => Re(a, e.onError)
|
|
137
|
+
), t;
|
|
137
138
|
}
|
|
138
|
-
function
|
|
139
|
-
const
|
|
140
|
-
return e.headers.Authorization = "Basic " +
|
|
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
|
|
143
|
-
console.error(e),
|
|
143
|
+
function qe(e, t) {
|
|
144
|
+
console.error(e), t("request timeout");
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
+
function Me(e) {
|
|
146
147
|
return e.data;
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
+
function Re(e, t) {
|
|
149
150
|
var o;
|
|
150
|
-
const
|
|
151
|
-
if (!
|
|
151
|
+
const a = e.response;
|
|
152
|
+
if (!a)
|
|
152
153
|
return Promise.reject(e);
|
|
153
|
-
|
|
154
|
-
let n = (o =
|
|
154
|
+
a.status === 401 && Ae();
|
|
155
|
+
let n = (o = a.data) == null ? void 0 : o.message;
|
|
155
156
|
return n || (n = {
|
|
156
|
-
code:
|
|
157
|
-
message:
|
|
158
|
-
}),
|
|
159
|
-
}
|
|
160
|
-
function
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
function
|
|
164
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(
|
|
165
|
-
var n = e.get(
|
|
166
|
-
n ? n.push(
|
|
167
|
-
}, off: function(
|
|
168
|
-
var n = e.get(
|
|
169
|
-
n && (
|
|
170
|
-
}, emit: function(
|
|
171
|
-
var n = e.get(
|
|
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(
|
|
174
|
+
o(a);
|
|
174
175
|
}), (n = e.get("*")) && n.slice().map(function(o) {
|
|
175
|
-
o(
|
|
176
|
+
o(t, a);
|
|
176
177
|
});
|
|
177
178
|
} };
|
|
178
179
|
}
|
|
179
|
-
const
|
|
180
|
-
return window.eventBus || (window.eventBus =
|
|
180
|
+
const s = function() {
|
|
181
|
+
return window.eventBus || (window.eventBus = Oe()), window.eventBus;
|
|
181
182
|
}();
|
|
182
|
-
async function
|
|
183
|
-
return new Promise((
|
|
184
|
-
setTimeout(
|
|
183
|
+
async function mt(e) {
|
|
184
|
+
return new Promise((t) => {
|
|
185
|
+
setTimeout(t, e);
|
|
185
186
|
});
|
|
186
187
|
}
|
|
187
|
-
async function P(e,
|
|
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) :
|
|
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
|
|
197
|
+
function Ie(e, t) {
|
|
197
198
|
var o;
|
|
198
|
-
const
|
|
199
|
-
n && (n.remove("app-left", "app-right", "app-reset"),
|
|
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
|
|
204
|
-
function
|
|
204
|
+
let te = Date.now();
|
|
205
|
+
function le() {
|
|
205
206
|
const e = Date.now();
|
|
206
|
-
return e -
|
|
207
|
+
return e - te > 500 ? (te = e, !0) : !1;
|
|
207
208
|
}
|
|
208
|
-
let
|
|
209
|
-
function
|
|
210
|
-
return ++
|
|
209
|
+
let je = 0;
|
|
210
|
+
function re() {
|
|
211
|
+
return ++je;
|
|
211
212
|
}
|
|
212
|
-
async function
|
|
213
|
-
if (!
|
|
213
|
+
async function ht(e) {
|
|
214
|
+
if (!le())
|
|
214
215
|
return;
|
|
215
|
-
let
|
|
216
|
+
let t = !1, a;
|
|
216
217
|
const n = (r) => {
|
|
217
|
-
|
|
218
|
-
}, o =
|
|
219
|
-
return
|
|
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
|
|
222
|
-
if (!
|
|
222
|
+
async function wt(e) {
|
|
223
|
+
if (!le())
|
|
223
224
|
return;
|
|
224
|
-
let
|
|
225
|
+
let t = !1, a;
|
|
225
226
|
const n = (r) => {
|
|
226
|
-
|
|
227
|
-
}, o =
|
|
228
|
-
return
|
|
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
|
|
231
|
-
|
|
231
|
+
function xt(e) {
|
|
232
|
+
s.emit("openWaitDlg", { text: e });
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
234
|
+
function yt() {
|
|
235
|
+
s.emit("closeWaitDlg");
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
237
|
+
function kt(e, t) {
|
|
238
|
+
s.emit("message", { type: "error", text: e, timeout: t });
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
-
|
|
240
|
+
function bt(e, t) {
|
|
241
|
+
s.emit("message", { type: "info", text: e, timeout: t });
|
|
241
242
|
}
|
|
242
|
-
function Dt(e,
|
|
243
|
-
|
|
243
|
+
function Dt(e, t) {
|
|
244
|
+
s.emit("message", { type: "success", text: e, timeout: t });
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
246
|
+
function Ct(e, t) {
|
|
247
|
+
s.emit("message", { type: "warning", text: e, timeout: t });
|
|
247
248
|
}
|
|
248
|
-
var
|
|
249
|
-
function
|
|
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
|
|
253
|
-
return Object.keys(
|
|
254
|
-
if (Object.keys(
|
|
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 (
|
|
257
|
-
|
|
257
|
+
if (a[o])
|
|
258
|
+
a = a[o];
|
|
258
259
|
else
|
|
259
260
|
return !1;
|
|
260
|
-
}), Object.keys(
|
|
261
|
+
}), Object.keys(a).length <= 0);
|
|
261
262
|
}
|
|
262
|
-
const
|
|
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
|
|
371
|
-
let
|
|
371
|
+
function H(e) {
|
|
372
|
+
let t, a = 0;
|
|
372
373
|
const n = e.split("/").filter((o) => o.trim() !== "");
|
|
373
|
-
return
|
|
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 >
|
|
379
|
-
}),
|
|
380
|
-
}
|
|
381
|
-
const
|
|
382
|
-
function C(e,
|
|
383
|
-
const
|
|
384
|
-
|
|
385
|
-
const n =
|
|
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~~~~ ${
|
|
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 ?
|
|
394
|
+
r ? l ? Q.value = "" : Q.value = c ? "inner-left" : "inner-right" : (Q.value = "", Ie(n.app, c));
|
|
394
395
|
}
|
|
395
|
-
function
|
|
396
|
-
return !!
|
|
396
|
+
function Ue() {
|
|
397
|
+
return !!E.get("accessToken");
|
|
397
398
|
}
|
|
398
|
-
function
|
|
399
|
-
return !!
|
|
399
|
+
function Be() {
|
|
400
|
+
return !!E.get("activeOrg");
|
|
400
401
|
}
|
|
401
|
-
function Vt(e,
|
|
402
|
-
const n =
|
|
402
|
+
function Vt(e, t, a) {
|
|
403
|
+
const n = Ue(), o = Be(), r = H(e.path);
|
|
403
404
|
if (!r) {
|
|
404
|
-
console.assert(!1),
|
|
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,
|
|
412
|
+
C(l, t.path), a({ path: l });
|
|
412
413
|
} else
|
|
413
|
-
C(e.path,
|
|
414
|
+
C(e.path, t.path), a();
|
|
414
415
|
else {
|
|
415
416
|
const l = "/passport/login";
|
|
416
|
-
C(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,
|
|
422
|
+
C(e.path, t.path), a();
|
|
422
423
|
else {
|
|
423
424
|
const l = "/org/joinOrCreate";
|
|
424
|
-
C(l,
|
|
425
|
+
C(l, t.path), a({ path: l });
|
|
425
426
|
}
|
|
426
427
|
else {
|
|
427
428
|
const l = "/passport/login";
|
|
428
|
-
C(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,
|
|
434
|
+
C(l, t.path), a({ path: l });
|
|
434
435
|
} else {
|
|
435
436
|
const l = "/org/joinOrCreate";
|
|
436
|
-
C(l,
|
|
437
|
+
C(l, t.path), a({ path: l });
|
|
437
438
|
}
|
|
438
439
|
else
|
|
439
|
-
C(e.path,
|
|
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
|
|
442
|
+
const Le = /* @__PURE__ */ U({
|
|
459
443
|
__name: "index",
|
|
460
444
|
setup(e) {
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
var
|
|
472
|
-
|
|
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
|
-
|
|
480
|
-
}),
|
|
481
|
-
|
|
459
|
+
s.on("confirmDlg", _);
|
|
460
|
+
}), I(() => {
|
|
461
|
+
s.off("confirmDlg", _);
|
|
482
462
|
});
|
|
483
|
-
const
|
|
484
|
-
|
|
463
|
+
const q = () => {
|
|
464
|
+
n.value = !1, x || (s.emit("confirmDlgResult" + i, !0), x = !0);
|
|
485
465
|
};
|
|
486
|
-
return
|
|
487
|
-
!
|
|
488
|
-
}), (
|
|
489
|
-
const
|
|
490
|
-
return
|
|
491
|
-
modelValue:
|
|
492
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
495
|
-
|
|
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
|
-
|
|
481
|
+
b(f, { title: o.value }, {
|
|
502
482
|
default: w(() => [
|
|
503
|
-
|
|
483
|
+
b(D, null, {
|
|
504
484
|
default: w(() => [
|
|
505
|
-
|
|
485
|
+
j(O(r.value), 1)
|
|
506
486
|
]),
|
|
507
487
|
_: 1
|
|
508
488
|
}),
|
|
509
|
-
|
|
489
|
+
b(A, { class: "d-flex justify-end" }, {
|
|
510
490
|
default: w(() => [
|
|
511
|
-
|
|
512
|
-
onClick:
|
|
513
|
-
color:
|
|
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
|
-
|
|
497
|
+
j(O(c.value), 1)
|
|
518
498
|
]),
|
|
519
499
|
_: 1
|
|
520
500
|
}, 8, ["color"]),
|
|
521
|
-
|
|
522
|
-
onClick:
|
|
523
|
-
color:
|
|
501
|
+
b(M, {
|
|
502
|
+
onClick: q,
|
|
503
|
+
color: u.value,
|
|
524
504
|
variant: "text"
|
|
525
505
|
}, {
|
|
526
506
|
default: w(() => [
|
|
527
|
-
|
|
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
|
-
}),
|
|
543
|
-
/* @__PURE__ */
|
|
544
|
-
/* @__PURE__ */
|
|
545
|
-
/* @__PURE__ */
|
|
546
|
-
/* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
/* @__PURE__ */
|
|
549
|
-
/* @__PURE__ */
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
/* @__PURE__ */
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
], -1)),
|
|
556
|
-
|
|
557
|
-
],
|
|
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
|
|
567
|
-
background:
|
|
568
|
-
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) => (
|
|
550
|
+
return (o, r) => (V(), X("div", {
|
|
571
551
|
class: "x-cont",
|
|
572
|
-
style:
|
|
573
|
-
},
|
|
552
|
+
style: de(n.value)
|
|
553
|
+
}, ze, 4));
|
|
574
554
|
}
|
|
575
|
-
}),
|
|
576
|
-
const
|
|
577
|
-
for (const [n, o] of
|
|
578
|
-
|
|
579
|
-
return
|
|
580
|
-
},
|
|
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:
|
|
590
|
-
const
|
|
569
|
+
setup(e, { emit: t }) {
|
|
570
|
+
const a = e, n = d(!0), o = t;
|
|
591
571
|
return S(() => {
|
|
592
572
|
setTimeout(() => {
|
|
593
|
-
o("timeout",
|
|
594
|
-
},
|
|
595
|
-
}),
|
|
596
|
-
r || o("timeout",
|
|
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
|
|
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
|
-
}),
|
|
593
|
+
}), Ne = /* @__PURE__ */ U({
|
|
614
594
|
__name: "index",
|
|
615
595
|
setup(e) {
|
|
616
|
-
const
|
|
596
|
+
const t = fe({ items: [] });
|
|
617
597
|
S(() => {
|
|
618
|
-
|
|
619
|
-
}),
|
|
620
|
-
|
|
598
|
+
s.on("message", a);
|
|
599
|
+
}), I(() => {
|
|
600
|
+
s.off("message", a);
|
|
621
601
|
});
|
|
622
|
-
const
|
|
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,
|
|
629
|
-
const
|
|
630
|
-
|
|
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 =
|
|
633
|
-
u >= 0 &&
|
|
612
|
+
const u = t.items.findIndex((p) => p.id === c);
|
|
613
|
+
u >= 0 && t.items.splice(u, 1);
|
|
634
614
|
};
|
|
635
|
-
return (c, u) => (
|
|
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
|
-
(
|
|
620
|
+
(V(!0), X(ge, null, ve(t.items, (p) => (V(), T(He, {
|
|
641
621
|
onTimeout: n,
|
|
642
|
-
id:
|
|
643
|
-
type:
|
|
644
|
-
text:
|
|
645
|
-
timeout:
|
|
646
|
-
key:
|
|
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
|
-
}),
|
|
630
|
+
}), Ge = /* @__PURE__ */ ce(Ne, [["__scopeId", "data-v-8c2268ea"]]), Qe = /* @__PURE__ */ U({
|
|
651
631
|
__name: "index",
|
|
652
632
|
setup(e) {
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
var
|
|
664
|
-
|
|
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
|
-
|
|
673
|
-
}),
|
|
674
|
-
|
|
647
|
+
s.on("promptDlg", M);
|
|
648
|
+
}), I(() => {
|
|
649
|
+
s.off("promptDlg", M);
|
|
675
650
|
});
|
|
676
|
-
const
|
|
677
|
-
|
|
651
|
+
const A = () => {
|
|
652
|
+
n.value = !1, D || (s.emit("promptDlgResult" + y, p.value ?? ""), D = !0);
|
|
678
653
|
};
|
|
679
|
-
return
|
|
680
|
-
!
|
|
681
|
-
}), (
|
|
682
|
-
const
|
|
683
|
-
return
|
|
684
|
-
modelValue:
|
|
685
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
688
|
-
|
|
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
|
-
|
|
669
|
+
b(se, { title: o.value }, {
|
|
695
670
|
default: w(() => [
|
|
696
|
-
|
|
671
|
+
r.value ? (V(), T(R, { key: 0 }, {
|
|
697
672
|
default: w(() => [
|
|
698
|
-
|
|
673
|
+
j(O(r.value), 1)
|
|
699
674
|
]),
|
|
700
675
|
_: 1
|
|
701
|
-
})) :
|
|
702
|
-
|
|
676
|
+
})) : me("", !0),
|
|
677
|
+
b(z, { class: "mx-3" }, {
|
|
703
678
|
default: w(() => [
|
|
704
|
-
|
|
705
|
-
modelValue:
|
|
706
|
-
"onUpdate:modelValue":
|
|
707
|
-
label:
|
|
708
|
-
placeholder:
|
|
709
|
-
rules:
|
|
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:
|
|
686
|
+
ref: g
|
|
712
687
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"])
|
|
713
688
|
]),
|
|
714
689
|
_: 1
|
|
715
690
|
}),
|
|
716
|
-
|
|
691
|
+
b(ue, { class: "d-flex justify-end" }, {
|
|
717
692
|
default: w(() => [
|
|
718
|
-
|
|
719
|
-
onClick:
|
|
720
|
-
color:
|
|
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
|
-
|
|
699
|
+
j(O(x.value), 1)
|
|
725
700
|
]),
|
|
726
701
|
_: 1
|
|
727
702
|
}, 8, ["color"]),
|
|
728
|
-
|
|
729
|
-
onClick:
|
|
730
|
-
color:
|
|
703
|
+
b(ee, {
|
|
704
|
+
onClick: A,
|
|
705
|
+
color: _.value,
|
|
731
706
|
variant: "text"
|
|
732
707
|
}, {
|
|
733
708
|
default: w(() => [
|
|
734
|
-
|
|
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
|
-
}),
|
|
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
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
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
|
-
|
|
759
|
-
}),
|
|
760
|
-
|
|
761
|
-
}), (
|
|
762
|
-
const
|
|
763
|
-
return
|
|
764
|
-
modelValue:
|
|
765
|
-
"onUpdate:modelValue":
|
|
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
|
-
|
|
772
|
-
|
|
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
|
-
|
|
779
|
-
|
|
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
|
-
}),
|
|
791
|
-
e.component("x-confirm-dlg",
|
|
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
|
|
794
|
-
const e = Z(),
|
|
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:
|
|
797
|
-
secondaryColor:
|
|
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
|
|
806
|
-
return
|
|
787
|
+
function et(e) {
|
|
788
|
+
return he() ? (we(e), !0) : !1;
|
|
807
789
|
}
|
|
808
|
-
function
|
|
809
|
-
return typeof e == "function" ? e() :
|
|
790
|
+
function tt(e) {
|
|
791
|
+
return typeof e == "function" ? e() : xe(e);
|
|
810
792
|
}
|
|
811
|
-
const
|
|
793
|
+
const at = typeof window < "u" && typeof document < "u";
|
|
812
794
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
813
|
-
const
|
|
814
|
-
function
|
|
815
|
-
const e =
|
|
816
|
-
return
|
|
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
|
-
},
|
|
800
|
+
}, t), e;
|
|
819
801
|
}
|
|
820
|
-
function
|
|
821
|
-
const
|
|
822
|
-
return
|
|
802
|
+
function lt(e) {
|
|
803
|
+
const t = nt();
|
|
804
|
+
return m(() => (t.value, !!e()));
|
|
823
805
|
}
|
|
824
|
-
function
|
|
825
|
-
const { window:
|
|
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 =
|
|
828
|
-
r.value =
|
|
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 =
|
|
832
|
-
n.value && (c(), o =
|
|
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
|
|
816
|
+
return et(() => {
|
|
835
817
|
u(), c(), o = void 0;
|
|
836
818
|
}), r;
|
|
837
819
|
}
|
|
838
|
-
function
|
|
839
|
-
return
|
|
820
|
+
function ct(e) {
|
|
821
|
+
return rt("(prefers-color-scheme: dark)", e);
|
|
840
822
|
}
|
|
841
|
-
function
|
|
842
|
-
const e =
|
|
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
|
|
846
|
-
const e =
|
|
847
|
-
|
|
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
|
-
|
|
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
|
|
842
|
+
var q;
|
|
861
843
|
if (!r.isEmpty()) {
|
|
862
844
|
r.hasView("waitDlg") || r.popView();
|
|
863
845
|
return;
|
|
864
846
|
}
|
|
865
|
-
const _ =
|
|
866
|
-
(_ == null ? void 0 : _.level) === 0 ? (
|
|
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
|
-
) :
|
|
853
|
+
) : t.back();
|
|
872
854
|
};
|
|
873
855
|
S(() => {
|
|
874
|
-
window.addEventListener("keydown", l),
|
|
875
|
-
}),
|
|
876
|
-
window.removeEventListener("keydown", l),
|
|
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
|
-
},
|
|
862
|
+
}, p = (_) => {
|
|
881
863
|
o.locale = _;
|
|
882
|
-
},
|
|
864
|
+
}, i = (_) => {
|
|
883
865
|
o.permissionObjects = _[0], o.permissionChecksum = _[1];
|
|
884
|
-
},
|
|
866
|
+
}, x = (_) => {
|
|
885
867
|
o.lastAppPath = _;
|
|
886
868
|
};
|
|
887
869
|
S(() => {
|
|
888
|
-
|
|
889
|
-
}),
|
|
890
|
-
|
|
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
|
|
894
|
-
const e =
|
|
895
|
-
function a
|
|
896
|
-
const o = e.permissionObjects[
|
|
897
|
-
return o ? n ? !(!
|
|
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:
|
|
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
|
|
902
|
-
const n = e[
|
|
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: " +
|
|
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
|
|
908
|
-
return (await
|
|
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
|
|
909
|
+
const Ot = { install: Pe };
|
|
911
910
|
export {
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
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
|
-
|
|
923
|
+
Ct as messageWarning,
|
|
925
924
|
Vt as onBeforeEach,
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
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
|
};
|