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