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