x-essential-lib 0.8.0 → 0.8.2
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/permission.d.ts +1 -1
- package/dist/index.js +236 -230
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import { computed as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-c6a59757]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { computed as w, provide as T, inject as A, ref as v, getCurrentInstance as _e, hasInjectionContext as ie, watch as K, getCurrentScope as je, onScopeDispose as Re, shallowRef as ee, watchEffect as Ve, toValue as q, onMounted as E, unref as z, onBeforeUnmount as $, onBeforeMount as Ae, defineComponent as B, resolveComponent as x, createBlock as V, openBlock as L, withKeys as Z, withModifiers as H, isRef as Q, withCtx as y, createVNode as C, createTextVNode as O, toDisplayString as R, Transition as qe, createElementBlock as te, createCommentVNode as oe, normalizeStyle as de, createElementVNode as h, Fragment as Oe, renderList as Ie, useTemplateRef as Te } from "vue";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
|
-
import { useTheme as fe, useDisplay as
|
|
5
|
-
import { useRouter as ge, useRoute as
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
const e = fe(), t =
|
|
4
|
+
import { useTheme as fe, useDisplay as Ee } from "vuetify";
|
|
5
|
+
import { useRouter as ge, useRoute as Be } from "vue-router";
|
|
6
|
+
import We from "axios";
|
|
7
|
+
function Ue() {
|
|
8
|
+
const e = fe(), t = w(() => e.global.current.value.colors.primary), a = w(() => e.global.current.value.colors.secondary), o = w(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = w(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = w(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = w(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = w(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
9
9
|
return {
|
|
10
10
|
primaryColor: t,
|
|
11
11
|
secondaryColor: a,
|
|
@@ -25,7 +25,7 @@ function N(e) {
|
|
|
25
25
|
}
|
|
26
26
|
return e;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var $e = {
|
|
29
29
|
read: function(e) {
|
|
30
30
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
31
31
|
},
|
|
@@ -36,7 +36,7 @@ var Ue = {
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
function
|
|
39
|
+
function ae(e, t) {
|
|
40
40
|
function a(n, l, c) {
|
|
41
41
|
if (!(typeof document > "u")) {
|
|
42
42
|
c = N({}, t, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
@@ -74,10 +74,10 @@ function te(e, t) {
|
|
|
74
74
|
);
|
|
75
75
|
},
|
|
76
76
|
withAttributes: function(n) {
|
|
77
|
-
return
|
|
77
|
+
return ae(this.converter, N({}, this.attributes, n));
|
|
78
78
|
},
|
|
79
79
|
withConverter: function(n) {
|
|
80
|
-
return
|
|
80
|
+
return ae(N({}, this.converter, n), this.attributes);
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -86,43 +86,43 @@ function te(e, t) {
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
|
-
var I =
|
|
90
|
-
function
|
|
91
|
-
const t =
|
|
89
|
+
var I = ae($e, { path: "/" });
|
|
90
|
+
function Jt(e) {
|
|
91
|
+
const t = We.create({
|
|
92
92
|
timeout: 6e3
|
|
93
93
|
});
|
|
94
94
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
95
|
-
(a) =>
|
|
95
|
+
(a) => He(a),
|
|
96
96
|
(a) => {
|
|
97
|
-
|
|
97
|
+
Ke(a, e.onError);
|
|
98
98
|
}
|
|
99
99
|
), t.interceptors.response.use(
|
|
100
|
-
(a) =>
|
|
101
|
-
(a) =>
|
|
100
|
+
(a) => ze(a),
|
|
101
|
+
(a) => Fe(a, e.onError)
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function He(e) {
|
|
105
105
|
const t = I.get("accessToken") ?? "";
|
|
106
106
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function Ke(e, t) {
|
|
109
109
|
console.error(e), t("request timeout");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ze(e) {
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Fe(e, t) {
|
|
115
115
|
var n, l;
|
|
116
116
|
const o = e.response;
|
|
117
|
-
return o && (o.status === 401 &&
|
|
117
|
+
return o && (o.status === 401 && Xe(), (n = o.data) != null && n.message ? t((l = o.data) == null ? void 0 : l.message) : t({
|
|
118
118
|
code: o.status,
|
|
119
119
|
message: o.statusText
|
|
120
120
|
})), Promise.reject(e);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function Xe() {
|
|
123
123
|
I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), ge().replace({ path: "/passport/login" });
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Ne(e) {
|
|
126
126
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
|
|
127
127
|
var o = e.get(t);
|
|
128
128
|
o ? o.push(a) : e.set(t, [a]);
|
|
@@ -139,9 +139,9 @@ function Xe(e) {
|
|
|
139
139
|
} };
|
|
140
140
|
}
|
|
141
141
|
const p = function() {
|
|
142
|
-
return window.eventBus || (window.eventBus =
|
|
142
|
+
return window.eventBus || (window.eventBus = Ne()), window.eventBus;
|
|
143
143
|
}();
|
|
144
|
-
async function
|
|
144
|
+
async function Yt(e) {
|
|
145
145
|
return new Promise((t) => {
|
|
146
146
|
setTimeout(t, e);
|
|
147
147
|
});
|
|
@@ -155,7 +155,7 @@ async function re(e, t, a) {
|
|
|
155
155
|
l();
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ze(e, t) {
|
|
159
159
|
const a = document.getElementById("single-spa-application:" + e);
|
|
160
160
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
161
161
|
a.classList.add("app-reset");
|
|
@@ -166,11 +166,11 @@ function ve() {
|
|
|
166
166
|
const e = Date.now();
|
|
167
167
|
return e - ue > 500 ? (ue = e, !0) : !1;
|
|
168
168
|
}
|
|
169
|
-
let
|
|
169
|
+
let Ge = 0;
|
|
170
170
|
function me() {
|
|
171
|
-
return ++
|
|
171
|
+
return ++Ge;
|
|
172
172
|
}
|
|
173
|
-
async function
|
|
173
|
+
async function Pt(e) {
|
|
174
174
|
if (!ve())
|
|
175
175
|
return;
|
|
176
176
|
let t = !1, a;
|
|
@@ -179,7 +179,7 @@ async function Yt(e) {
|
|
|
179
179
|
}, n = me();
|
|
180
180
|
return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await re(() => t), p.off("confirmDlgResult" + n, o), a;
|
|
181
181
|
}
|
|
182
|
-
async function
|
|
182
|
+
async function ea(e) {
|
|
183
183
|
if (!ve())
|
|
184
184
|
return;
|
|
185
185
|
let t = !1, a;
|
|
@@ -188,25 +188,25 @@ async function Pt(e) {
|
|
|
188
188
|
}, n = me();
|
|
189
189
|
return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await re(() => t), p.off("promptDlgResult" + n, o), a;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function ta(e) {
|
|
192
192
|
p.emit("openWaitDlg", { text: e });
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function aa() {
|
|
195
195
|
p.emit("closeWaitDlg");
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function oa(e, t) {
|
|
198
198
|
p.emit("message", { type: "error", text: e, timeout: t });
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function na(e, t) {
|
|
201
201
|
p.emit("message", { type: "info", text: e, timeout: t });
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ra(e, t) {
|
|
204
204
|
p.emit("message", { type: "success", text: e, timeout: t });
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function la(e, t) {
|
|
207
207
|
p.emit("message", { type: "warning", text: e, timeout: t });
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Qe = /* @__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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_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.debug_flow = "debug_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_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_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_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_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_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", 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.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(Qe || {});
|
|
210
210
|
function se(e, t) {
|
|
211
211
|
if (!e)
|
|
212
212
|
return !1;
|
|
@@ -220,48 +220,48 @@ function se(e, t) {
|
|
|
220
220
|
return !1;
|
|
221
221
|
}), Object.keys(a).length <= 0);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Je(e, t, a) {
|
|
224
224
|
const o = e[t];
|
|
225
225
|
return o ? a ? !(!se(o.includes, a) || se(o.excludes, a)) : !0 : !1;
|
|
226
226
|
}
|
|
227
227
|
const he = "essentialDark", ye = "essentialLocale", we = "essentialPermissionObjects", xe = "essentialPermissionChecksum", be = "essentialLastAppPath", ke = "essentialViews";
|
|
228
|
-
function
|
|
228
|
+
function Ye(e) {
|
|
229
229
|
T(he, e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function ca() {
|
|
232
232
|
return A(he);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Pe(e) {
|
|
235
235
|
T(ye, e);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function ua() {
|
|
238
238
|
return A(ye);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function et(e) {
|
|
241
241
|
T(we, e);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function tt() {
|
|
244
244
|
return A(we);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function at(e) {
|
|
247
247
|
T(xe, e);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function sa() {
|
|
250
250
|
return A(xe);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function ot(e) {
|
|
253
253
|
T(be, e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function pa() {
|
|
256
256
|
return A(be);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function nt(e) {
|
|
259
259
|
T(ke, e);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function rt() {
|
|
262
262
|
return A(ke);
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const lt = [
|
|
265
265
|
{
|
|
266
266
|
app: "x-passport-mf",
|
|
267
267
|
path: "/passport/login",
|
|
@@ -372,7 +372,7 @@ const rt = [
|
|
|
372
372
|
function G(e) {
|
|
373
373
|
let t, a = 0;
|
|
374
374
|
const o = e.split("/").filter((n) => n.trim() !== "");
|
|
375
|
-
return
|
|
375
|
+
return lt.forEach((n) => {
|
|
376
376
|
const l = n.path.split("/").filter((r) => r.trim() !== "");
|
|
377
377
|
let c = 0;
|
|
378
378
|
for (let r = 0; r < o.length && !(r >= l.length || o[r] !== l[r]); r++)
|
|
@@ -380,7 +380,7 @@ function G(e) {
|
|
|
380
380
|
c > 0 && c > a && (t = n, a = c);
|
|
381
381
|
}), t;
|
|
382
382
|
}
|
|
383
|
-
const
|
|
383
|
+
const J = v("");
|
|
384
384
|
function M(e, t, a) {
|
|
385
385
|
t === "/" && (t = a);
|
|
386
386
|
const o = G(e), n = G(t);
|
|
@@ -391,16 +391,16 @@ function M(e, t, a) {
|
|
|
391
391
|
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !n)
|
|
392
392
|
return;
|
|
393
393
|
const l = o.app === n.app, c = o.path === n.path, r = o.level >= n.level;
|
|
394
|
-
l ? c ?
|
|
394
|
+
l ? c ? J.value = "" : J.value = r ? "inner-left" : "inner-right" : (J.value = "", Ze(o.app, r));
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function ct() {
|
|
397
397
|
return !!I.get("accessToken");
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function ut() {
|
|
400
400
|
return !!I.get("activeOrg");
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
const n =
|
|
402
|
+
function _a(e, t, a, o) {
|
|
403
|
+
const n = ct(), l = ut(), c = G(e.path);
|
|
404
404
|
if (!c) {
|
|
405
405
|
console.assert(!1), a();
|
|
406
406
|
return;
|
|
@@ -439,48 +439,48 @@ function pa(e, t, a, o) {
|
|
|
439
439
|
else
|
|
440
440
|
M(e.path, t.path, o), a();
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function st(e) {
|
|
443
443
|
return e.value.length <= 0;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function ia(e) {
|
|
446
446
|
return e.value.at(-1);
|
|
447
447
|
}
|
|
448
448
|
function Ce(e, t) {
|
|
449
449
|
return !!e.value.find((a) => a === t);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function pt(e, t) {
|
|
452
452
|
const a = e.value.findIndex((o) => o === t);
|
|
453
453
|
a >= 0 && e.value.splice(a, 1), e.value.push(t);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function _t(e, t) {
|
|
456
456
|
const a = e.value.findIndex((o) => o === t);
|
|
457
457
|
a >= 0 && e.value.splice(a, 1);
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function it(e) {
|
|
460
460
|
console.assert(e.value.length > 0), e.value.pop();
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function da(e) {
|
|
463
463
|
e.value = [];
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function dt(e) {
|
|
466
466
|
return je() ? (Re(e), !0) : !1;
|
|
467
467
|
}
|
|
468
|
-
const
|
|
468
|
+
const Y = /* @__PURE__ */ new WeakMap(), ft = (...e) => {
|
|
469
469
|
var t;
|
|
470
470
|
const a = e[0], o = (t = _e()) == null ? void 0 : t.proxy;
|
|
471
471
|
if (o == null && !ie())
|
|
472
472
|
throw new Error("injectLocal must be called in setup");
|
|
473
|
-
return o &&
|
|
474
|
-
},
|
|
473
|
+
return o && Y.has(o) && a in Y.get(o) ? Y.get(o)[a] : A(...e);
|
|
474
|
+
}, gt = typeof window < "u" && typeof document < "u";
|
|
475
475
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
476
|
-
const
|
|
476
|
+
const vt = Object.prototype.toString, mt = (e) => vt.call(e) === "[object Object]";
|
|
477
477
|
function pe(e) {
|
|
478
478
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
480
|
+
function P(e) {
|
|
481
481
|
return Array.isArray(e) ? e : [e];
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function ht(e, t, a) {
|
|
484
484
|
return K(
|
|
485
485
|
e,
|
|
486
486
|
t,
|
|
@@ -490,33 +490,33 @@ function mt(e, t, a) {
|
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
492
|
}
|
|
493
|
-
const Le =
|
|
494
|
-
function
|
|
493
|
+
const Le = gt ? window : void 0;
|
|
494
|
+
function yt(e) {
|
|
495
495
|
var t;
|
|
496
|
-
const a =
|
|
496
|
+
const a = q(e);
|
|
497
497
|
return (t = a == null ? void 0 : a.$el) != null ? t : a;
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function wt(...e) {
|
|
500
500
|
const t = [], a = () => {
|
|
501
501
|
t.forEach((r) => r()), t.length = 0;
|
|
502
|
-
}, o = (r, u, s, d) => (r.addEventListener(u, s, d), () => r.removeEventListener(u, s, d)), n =
|
|
503
|
-
const r =
|
|
502
|
+
}, o = (r, u, s, d) => (r.addEventListener(u, s, d), () => r.removeEventListener(u, s, d)), n = w(() => {
|
|
503
|
+
const r = P(q(e[0])).filter((u) => u != null);
|
|
504
504
|
return r.every((u) => typeof u != "string") ? r : void 0;
|
|
505
|
-
}), l =
|
|
505
|
+
}), l = ht(
|
|
506
506
|
() => {
|
|
507
507
|
var r, u;
|
|
508
508
|
return [
|
|
509
|
-
(u = (r = n.value) == null ? void 0 : r.map((s) =>
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
(u = (r = n.value) == null ? void 0 : r.map((s) => yt(s))) != null ? u : [Le].filter((s) => s != null),
|
|
510
|
+
P(q(n.value ? e[1] : e[0])),
|
|
511
|
+
P(z(n.value ? e[2] : e[1])),
|
|
512
512
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
513
|
-
|
|
513
|
+
q(n.value ? e[3] : e[2])
|
|
514
514
|
];
|
|
515
515
|
},
|
|
516
516
|
([r, u, s, d]) => {
|
|
517
517
|
if (a(), !(r != null && r.length) || !(u != null && u.length) || !(s != null && s.length))
|
|
518
518
|
return;
|
|
519
|
-
const g =
|
|
519
|
+
const g = mt(d) ? { ...d } : d;
|
|
520
520
|
t.push(
|
|
521
521
|
...r.flatMap(
|
|
522
522
|
(b) => u.flatMap(
|
|
@@ -529,31 +529,31 @@ function yt(...e) {
|
|
|
529
529
|
), c = () => {
|
|
530
530
|
l(), a();
|
|
531
531
|
};
|
|
532
|
-
return
|
|
532
|
+
return dt(a), c;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
const e =
|
|
534
|
+
function xt() {
|
|
535
|
+
const e = ee(!1), t = _e();
|
|
536
536
|
return t && E(() => {
|
|
537
537
|
e.value = !0;
|
|
538
538
|
}, t), e;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
541
|
-
const t =
|
|
542
|
-
return
|
|
540
|
+
function bt(e) {
|
|
541
|
+
const t = xt();
|
|
542
|
+
return w(() => (t.value, !!e()));
|
|
543
543
|
}
|
|
544
|
-
const
|
|
545
|
-
function
|
|
546
|
-
const e = ie() ?
|
|
544
|
+
const kt = Symbol("vueuse-ssr-width");
|
|
545
|
+
function Ct() {
|
|
546
|
+
const e = ie() ? ft(kt, null) : null;
|
|
547
547
|
return typeof e == "number" ? e : void 0;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
const { window: a = Le, ssrWidth: o =
|
|
549
|
+
function Lt(e, t = {}) {
|
|
550
|
+
const { window: a = Le, ssrWidth: o = Ct() } = t, n = bt(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = v(typeof o == "number"), c = ee(), r = ee(!1), u = (s) => {
|
|
551
551
|
r.value = s.matches;
|
|
552
552
|
};
|
|
553
553
|
return Ve(() => {
|
|
554
554
|
if (l.value) {
|
|
555
555
|
l.value = !n.value;
|
|
556
|
-
const s =
|
|
556
|
+
const s = q(e).split(",");
|
|
557
557
|
r.value = s.some((d) => {
|
|
558
558
|
const g = d.includes("not all"), b = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
559
559
|
let _ = !!(b || m);
|
|
@@ -561,16 +561,16 @@ function Ct(e, t = {}) {
|
|
|
561
561
|
});
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
|
-
n.value && (c.value = a.matchMedia(
|
|
565
|
-
}),
|
|
564
|
+
n.value && (c.value = a.matchMedia(q(e)), r.value = c.value.matches);
|
|
565
|
+
}), wt(c, "change", u, { passive: !0 }), w(() => r.value);
|
|
566
566
|
}
|
|
567
|
-
function
|
|
568
|
-
return
|
|
567
|
+
function Dt(e) {
|
|
568
|
+
return Lt("(prefers-color-scheme: dark)", e);
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
const c =
|
|
572
|
-
|
|
573
|
-
const u = fe(), s =
|
|
570
|
+
function fa(e, t, a, o, n, l) {
|
|
571
|
+
const c = Be(), r = ge();
|
|
572
|
+
Ye(e), Pe(t), et(a), at(o), ot(n), nt(l);
|
|
573
|
+
const u = fe(), s = Dt();
|
|
574
574
|
K(
|
|
575
575
|
e,
|
|
576
576
|
() => {
|
|
@@ -586,8 +586,8 @@ function da(e, t, a, o, n, l) {
|
|
|
586
586
|
}
|
|
587
587
|
}, g = () => {
|
|
588
588
|
var k;
|
|
589
|
-
if (!
|
|
590
|
-
Ce(l, "waitDlg") ||
|
|
589
|
+
if (!st(l)) {
|
|
590
|
+
Ce(l, "waitDlg") || it(l);
|
|
591
591
|
return;
|
|
592
592
|
}
|
|
593
593
|
const i = G(c.path);
|
|
@@ -619,28 +619,28 @@ function da(e, t, a, o, n, l) {
|
|
|
619
619
|
p.off("updateDark", b), p.off("updateLocale", m), p.off("updatePermission", _), p.off("updateLastAppPath", D);
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
const e =
|
|
622
|
+
function ga() {
|
|
623
|
+
const e = tt();
|
|
624
624
|
function t(a, o) {
|
|
625
|
-
return
|
|
625
|
+
return Je(
|
|
626
626
|
e.value,
|
|
627
627
|
a,
|
|
628
|
-
o
|
|
628
|
+
o ?? ""
|
|
629
629
|
);
|
|
630
630
|
}
|
|
631
631
|
return { verifyPermission: t };
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
const e =
|
|
633
|
+
function va() {
|
|
634
|
+
const e = w(() => !!window.cordova), t = Ee(), a = w(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
635
635
|
return { sysBarAvail: e, compactWidth: a };
|
|
636
636
|
}
|
|
637
637
|
function le(e, t) {
|
|
638
|
-
const a =
|
|
638
|
+
const a = rt(), o = w({
|
|
639
639
|
get() {
|
|
640
640
|
return Ce(a, e);
|
|
641
641
|
},
|
|
642
642
|
set(l) {
|
|
643
|
-
l ?
|
|
643
|
+
l ? pt(a, e) : _t(a, e);
|
|
644
644
|
}
|
|
645
645
|
}), n = (l) => {
|
|
646
646
|
t == null || t(l), o.value = !0;
|
|
@@ -651,7 +651,7 @@ function le(e, t) {
|
|
|
651
651
|
p.off(e, n);
|
|
652
652
|
}), { open: o };
|
|
653
653
|
}
|
|
654
|
-
const
|
|
654
|
+
const St = /* @__PURE__ */ B({
|
|
655
655
|
__name: "index",
|
|
656
656
|
setup(e) {
|
|
657
657
|
const { t } = ne(), a = v(""), o = v(""), n = v(""), l = v(""), c = v(""), r = v("");
|
|
@@ -666,10 +666,10 @@ const Dt = /* @__PURE__ */ B({
|
|
|
666
666
|
return K(g, (m) => {
|
|
667
667
|
!m && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
|
|
668
668
|
}), (m, _) => {
|
|
669
|
-
const D =
|
|
669
|
+
const D = x("v-card-text"), i = x("v-btn"), k = x("v-card-actions"), S = x("v-card"), f = x("v-dialog");
|
|
670
670
|
return L(), V(f, {
|
|
671
671
|
modelValue: z(g),
|
|
672
|
-
"onUpdate:modelValue": _[1] || (_[1] = (j) =>
|
|
672
|
+
"onUpdate:modelValue": _[1] || (_[1] = (j) => Q(g) ? g.value = j : null),
|
|
673
673
|
transition: "dialog-top-transition",
|
|
674
674
|
"max-width": "600px",
|
|
675
675
|
onKeydown: [
|
|
@@ -677,24 +677,24 @@ const Dt = /* @__PURE__ */ B({
|
|
|
677
677
|
Z(H(b, ["stop", "prevent"]), ["enter"])
|
|
678
678
|
]
|
|
679
679
|
}, {
|
|
680
|
-
default:
|
|
680
|
+
default: y(() => [
|
|
681
681
|
C(S, { title: a.value }, {
|
|
682
|
-
default:
|
|
682
|
+
default: y(() => [
|
|
683
683
|
C(D, null, {
|
|
684
|
-
default:
|
|
685
|
-
|
|
684
|
+
default: y(() => [
|
|
685
|
+
O(R(o.value), 1)
|
|
686
686
|
]),
|
|
687
687
|
_: 1
|
|
688
688
|
}),
|
|
689
689
|
C(k, { class: "d-flex justify-end" }, {
|
|
690
|
-
default:
|
|
690
|
+
default: y(() => [
|
|
691
691
|
C(i, {
|
|
692
692
|
color: n.value,
|
|
693
693
|
variant: "text",
|
|
694
694
|
onClick: _[0] || (_[0] = (j) => g.value = !1)
|
|
695
695
|
}, {
|
|
696
|
-
default:
|
|
697
|
-
|
|
696
|
+
default: y(() => [
|
|
697
|
+
O(R(l.value), 1)
|
|
698
698
|
]),
|
|
699
699
|
_: 1
|
|
700
700
|
}, 8, ["color"]),
|
|
@@ -703,8 +703,8 @@ const Dt = /* @__PURE__ */ B({
|
|
|
703
703
|
variant: "text",
|
|
704
704
|
onClick: b
|
|
705
705
|
}, {
|
|
706
|
-
default:
|
|
707
|
-
|
|
706
|
+
default: y(() => [
|
|
707
|
+
O(R(r.value), 1)
|
|
708
708
|
]),
|
|
709
709
|
_: 1
|
|
710
710
|
}, 8, ["color"])
|
|
@@ -719,46 +719,52 @@ const Dt = /* @__PURE__ */ B({
|
|
|
719
719
|
}, 8, ["modelValue", "onKeydown"]);
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
|
-
}),
|
|
722
|
+
}), Mt = /* @__PURE__ */ B({
|
|
723
723
|
__name: "index",
|
|
724
724
|
props: {
|
|
725
725
|
open: { type: Boolean, default: !0 },
|
|
726
726
|
zIndex: { default: 1 }
|
|
727
727
|
},
|
|
728
728
|
setup(e) {
|
|
729
|
-
const { backgroundColor2: t } =
|
|
729
|
+
const { backgroundColor2: t } = Ue(), a = w(() => ({
|
|
730
730
|
background: t.value,
|
|
731
731
|
zIndex: e.zIndex
|
|
732
732
|
}));
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
733
|
+
let o = 0;
|
|
734
|
+
return (n, l) => (L(), V(qe, { name: "fade" }, {
|
|
735
|
+
default: y(() => [
|
|
736
|
+
n.open ? (L(), te("div", {
|
|
737
|
+
key: Q(o) ? ++o.value : ++o,
|
|
738
|
+
class: "x-cont",
|
|
739
|
+
style: de(a.value)
|
|
740
|
+
}, l[0] || (l[0] = [
|
|
741
|
+
h("div", { class: "lds-spinner" }, [
|
|
742
|
+
h("div"),
|
|
743
|
+
h("div"),
|
|
744
|
+
h("div"),
|
|
745
|
+
h("div"),
|
|
746
|
+
h("div"),
|
|
747
|
+
h("div"),
|
|
748
|
+
h("div"),
|
|
749
|
+
h("div"),
|
|
750
|
+
h("div"),
|
|
751
|
+
h("div"),
|
|
752
|
+
h("div"),
|
|
753
|
+
h("div")
|
|
754
|
+
], -1)
|
|
755
|
+
]), 4)) : oe("", !0)
|
|
756
|
+
]),
|
|
757
|
+
_: 1
|
|
758
|
+
}));
|
|
753
759
|
}
|
|
754
760
|
}), ce = (e, t) => {
|
|
755
761
|
const a = e.__vccOpts || e;
|
|
756
762
|
for (const [o, n] of t)
|
|
757
763
|
a[o] = n;
|
|
758
764
|
return a;
|
|
759
|
-
},
|
|
760
|
-
var
|
|
761
|
-
const
|
|
765
|
+
}, jt = /* @__PURE__ */ ce(Mt, [["__scopeId", "data-v-0c686889"]]);
|
|
766
|
+
var Rt = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", Vt = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", At = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", qt = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", Ot = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
|
|
767
|
+
const It = /* @__PURE__ */ B({
|
|
762
768
|
__name: "item",
|
|
763
769
|
props: {
|
|
764
770
|
id: {},
|
|
@@ -768,19 +774,19 @@ const qt = /* @__PURE__ */ B({
|
|
|
768
774
|
},
|
|
769
775
|
emits: ["timeout"],
|
|
770
776
|
setup(e, { emit: t }) {
|
|
771
|
-
const a = e, o =
|
|
777
|
+
const a = e, o = w(() => ({
|
|
772
778
|
width: "calc(100% - 64px)",
|
|
773
779
|
overflowWrap: "break-word"
|
|
774
|
-
})), n =
|
|
780
|
+
})), n = w(() => {
|
|
775
781
|
switch (a.type) {
|
|
776
782
|
case "success":
|
|
777
|
-
return
|
|
783
|
+
return Vt;
|
|
778
784
|
case "info":
|
|
779
785
|
return Ot;
|
|
780
786
|
case "error":
|
|
781
|
-
return
|
|
787
|
+
return qt;
|
|
782
788
|
case "warning":
|
|
783
|
-
return
|
|
789
|
+
return Rt;
|
|
784
790
|
default:
|
|
785
791
|
return "";
|
|
786
792
|
}
|
|
@@ -792,13 +798,13 @@ const qt = /* @__PURE__ */ B({
|
|
|
792
798
|
}), K(l, (r) => {
|
|
793
799
|
r || c("timeout", a.id);
|
|
794
800
|
}), (r, u) => {
|
|
795
|
-
const s =
|
|
801
|
+
const s = x("v-icon"), d = x("v-sheet");
|
|
796
802
|
return L(), V(d, {
|
|
797
803
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
798
804
|
color: a.type,
|
|
799
805
|
elevation: 1
|
|
800
806
|
}, {
|
|
801
|
-
default:
|
|
807
|
+
default: y(() => [
|
|
802
808
|
n.value ? (L(), V(s, {
|
|
803
809
|
key: 0,
|
|
804
810
|
class: "mx-1",
|
|
@@ -809,7 +815,7 @@ const qt = /* @__PURE__ */ B({
|
|
|
809
815
|
}, R(a.text), 5),
|
|
810
816
|
C(s, {
|
|
811
817
|
class: "mx-1",
|
|
812
|
-
icon: z(
|
|
818
|
+
icon: z(At),
|
|
813
819
|
onClick: u[0] || (u[0] = (g) => c("timeout", a.id))
|
|
814
820
|
}, null, 8, ["icon"])
|
|
815
821
|
]),
|
|
@@ -817,7 +823,7 @@ const qt = /* @__PURE__ */ B({
|
|
|
817
823
|
}, 8, ["color"]);
|
|
818
824
|
};
|
|
819
825
|
}
|
|
820
|
-
}),
|
|
826
|
+
}), Tt = /* @__PURE__ */ ce(It, [["__scopeId", "data-v-d5cfe252"]]), Et = /* @__PURE__ */ B({
|
|
821
827
|
__name: "index",
|
|
822
828
|
setup(e) {
|
|
823
829
|
const t = v([]);
|
|
@@ -840,12 +846,12 @@ const qt = /* @__PURE__ */ B({
|
|
|
840
846
|
const u = t.value.findIndex((s) => s.id === r);
|
|
841
847
|
u >= 0 && t.value.splice(u, 1);
|
|
842
848
|
};
|
|
843
|
-
return (r, u) => (L(),
|
|
849
|
+
return (r, u) => (L(), te("div", {
|
|
844
850
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
845
851
|
onClick: u[0] || (u[0] = H(() => {
|
|
846
852
|
}, ["stop"]))
|
|
847
853
|
}, [
|
|
848
|
-
(L(!0),
|
|
854
|
+
(L(!0), te(Oe, null, Ie(t.value, (s) => (L(), V(Tt, {
|
|
849
855
|
id: s.id,
|
|
850
856
|
key: s.id,
|
|
851
857
|
type: s.type,
|
|
@@ -855,10 +861,10 @@ const qt = /* @__PURE__ */ B({
|
|
|
855
861
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
856
862
|
]));
|
|
857
863
|
}
|
|
858
|
-
}),
|
|
864
|
+
}), Bt = /* @__PURE__ */ ce(Et, [["__scopeId", "data-v-c6a59757"]]), Wt = /* @__PURE__ */ B({
|
|
859
865
|
__name: "index",
|
|
860
866
|
setup(e) {
|
|
861
|
-
const { t } = ne(), a = v(""), o = v(""), n = v(""), l = v(""), c = v(), r = v(""), u = v(""), s = v(""), d = v(""), g = v(""), b =
|
|
867
|
+
const { t } = ne(), a = v(""), o = v(""), n = v(""), l = v(""), c = v(), r = v(""), u = v(""), s = v(""), d = v(""), g = v(""), b = Te("target");
|
|
862
868
|
let m = 0, _ = !1;
|
|
863
869
|
const D = async (S) => {
|
|
864
870
|
var j, F, X, W;
|
|
@@ -870,10 +876,10 @@ const qt = /* @__PURE__ */ B({
|
|
|
870
876
|
return K(i, (S) => {
|
|
871
877
|
!S && !_ && (p.emit("promptDlgResult" + m, void 0), _ = !0);
|
|
872
878
|
}), (S, f) => {
|
|
873
|
-
const j =
|
|
879
|
+
const j = x("v-card-text"), F = x("v-text-field"), X = x("v-form"), W = x("v-btn"), De = x("v-card-actions"), Se = x("v-card"), Me = x("v-dialog");
|
|
874
880
|
return L(), V(Me, {
|
|
875
881
|
modelValue: z(i),
|
|
876
|
-
"onUpdate:modelValue": f[2] || (f[2] = (U) =>
|
|
882
|
+
"onUpdate:modelValue": f[2] || (f[2] = (U) => Q(i) ? i.value = U : null),
|
|
877
883
|
transition: "dialog-top-transition",
|
|
878
884
|
"max-width": "600px",
|
|
879
885
|
onKeydown: [
|
|
@@ -881,17 +887,17 @@ const qt = /* @__PURE__ */ B({
|
|
|
881
887
|
Z(H(k, ["stop", "prevent"]), ["enter"])
|
|
882
888
|
]
|
|
883
889
|
}, {
|
|
884
|
-
default:
|
|
890
|
+
default: y(() => [
|
|
885
891
|
C(Se, { title: a.value }, {
|
|
886
|
-
default:
|
|
892
|
+
default: y(() => [
|
|
887
893
|
o.value ? (L(), V(j, { key: 0 }, {
|
|
888
|
-
default:
|
|
889
|
-
|
|
894
|
+
default: y(() => [
|
|
895
|
+
O(R(o.value), 1)
|
|
890
896
|
]),
|
|
891
897
|
_: 1
|
|
892
898
|
})) : oe("", !0),
|
|
893
899
|
C(X, { class: "mx-3" }, {
|
|
894
|
-
default:
|
|
900
|
+
default: y(() => [
|
|
895
901
|
C(F, {
|
|
896
902
|
ref_key: "target",
|
|
897
903
|
ref: b,
|
|
@@ -905,14 +911,14 @@ const qt = /* @__PURE__ */ B({
|
|
|
905
911
|
_: 1
|
|
906
912
|
}),
|
|
907
913
|
C(De, { class: "d-flex justify-end" }, {
|
|
908
|
-
default:
|
|
914
|
+
default: y(() => [
|
|
909
915
|
C(W, {
|
|
910
916
|
color: u.value,
|
|
911
917
|
variant: "text",
|
|
912
918
|
onClick: f[1] || (f[1] = (U) => i.value = !1)
|
|
913
919
|
}, {
|
|
914
|
-
default:
|
|
915
|
-
|
|
920
|
+
default: y(() => [
|
|
921
|
+
O(R(s.value), 1)
|
|
916
922
|
]),
|
|
917
923
|
_: 1
|
|
918
924
|
}, 8, ["color"]),
|
|
@@ -921,8 +927,8 @@ const qt = /* @__PURE__ */ B({
|
|
|
921
927
|
variant: "text",
|
|
922
928
|
onClick: k
|
|
923
929
|
}, {
|
|
924
|
-
default:
|
|
925
|
-
|
|
930
|
+
default: y(() => [
|
|
931
|
+
O(R(g.value), 1)
|
|
926
932
|
]),
|
|
927
933
|
_: 1
|
|
928
934
|
}, 8, ["color"])
|
|
@@ -937,7 +943,7 @@ const qt = /* @__PURE__ */ B({
|
|
|
937
943
|
}, 8, ["modelValue", "onKeydown"]);
|
|
938
944
|
};
|
|
939
945
|
}
|
|
940
|
-
}),
|
|
946
|
+
}), Ut = { class: "mx-auto my-auto" }, $t = { class: "w-100 h-100 d-flex align-center justify-center" }, Ht = { class: "text-body-1" }, Kt = /* @__PURE__ */ B({
|
|
941
947
|
__name: "index",
|
|
942
948
|
setup(e) {
|
|
943
949
|
const { t } = ne(), a = v(""), o = (c) => {
|
|
@@ -951,24 +957,24 @@ const qt = /* @__PURE__ */ B({
|
|
|
951
957
|
}), $(() => {
|
|
952
958
|
p.off("closeWaitDlg", n);
|
|
953
959
|
}), (c, r) => {
|
|
954
|
-
const u =
|
|
960
|
+
const u = x("v-card"), s = x("v-dialog");
|
|
955
961
|
return L(), V(s, {
|
|
956
962
|
modelValue: z(l),
|
|
957
|
-
"onUpdate:modelValue": r[0] || (r[0] = (d) =>
|
|
963
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => Q(l) ? l.value = d : null),
|
|
958
964
|
persistent: "",
|
|
959
965
|
"no-click-animation": "",
|
|
960
966
|
fullscreen: ""
|
|
961
967
|
}, {
|
|
962
|
-
default:
|
|
963
|
-
h("div",
|
|
968
|
+
default: y(() => [
|
|
969
|
+
h("div", Ut, [
|
|
964
970
|
C(u, {
|
|
965
971
|
width: "300px",
|
|
966
972
|
height: "80px",
|
|
967
973
|
loading: ""
|
|
968
974
|
}, {
|
|
969
|
-
default:
|
|
970
|
-
h("div",
|
|
971
|
-
h("span",
|
|
975
|
+
default: y(() => [
|
|
976
|
+
h("div", $t, [
|
|
977
|
+
h("span", Ht, R(a.value), 1)
|
|
972
978
|
])
|
|
973
979
|
]),
|
|
974
980
|
_: 1
|
|
@@ -979,9 +985,9 @@ const qt = /* @__PURE__ */ B({
|
|
|
979
985
|
}, 8, ["modelValue"]);
|
|
980
986
|
};
|
|
981
987
|
}
|
|
982
|
-
}),
|
|
983
|
-
e.component("XConfirmDlg",
|
|
984
|
-
},
|
|
988
|
+
}), zt = (e) => {
|
|
989
|
+
e.component("XConfirmDlg", St), e.component("XLoading", jt), e.component("XMessage", Bt), e.component("XPromptDlg", Wt), e.component("XWaitDlg", Kt);
|
|
990
|
+
}, Ft = (e, t, a) => {
|
|
985
991
|
const o = e[t];
|
|
986
992
|
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
|
|
987
993
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -994,54 +1000,54 @@ const qt = /* @__PURE__ */ B({
|
|
|
994
1000
|
);
|
|
995
1001
|
});
|
|
996
1002
|
};
|
|
997
|
-
async function
|
|
998
|
-
return (await
|
|
1003
|
+
async function ma(e) {
|
|
1004
|
+
return (await Ft(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
999
1005
|
}
|
|
1000
|
-
const
|
|
1006
|
+
const ha = { install: zt };
|
|
1001
1007
|
export {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1008
|
+
Qe as Permission,
|
|
1009
|
+
pt as addView,
|
|
1010
|
+
Ze as appAppear,
|
|
1011
|
+
da as clearViews,
|
|
1012
|
+
aa as closeWaitDlg,
|
|
1013
|
+
Jt as createAxios,
|
|
1014
|
+
ha as default,
|
|
1015
|
+
_t as delView,
|
|
1010
1016
|
p as eventBus,
|
|
1011
1017
|
Ce as hasView,
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1018
|
+
ca as injectDark,
|
|
1019
|
+
pa as injectLastAppPath,
|
|
1020
|
+
ua as injectLocale,
|
|
1021
|
+
sa as injectPermissionChecksum,
|
|
1022
|
+
tt as injectPermissionObjects,
|
|
1023
|
+
rt as injectViews,
|
|
1024
|
+
st as isEmpty,
|
|
1019
1025
|
se as isExist,
|
|
1020
|
-
|
|
1021
|
-
|
|
1026
|
+
ia as lastView,
|
|
1027
|
+
ma as loadLocaleMessageEssential,
|
|
1022
1028
|
G as matchRouteMeta,
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1029
|
+
oa as messageError,
|
|
1030
|
+
na as messageInfo,
|
|
1031
|
+
ra as messageSuccess,
|
|
1032
|
+
la as messageWarning,
|
|
1033
|
+
_a as onBeforeEach,
|
|
1034
|
+
Pt as openConfirmDlg,
|
|
1035
|
+
ea as openPromptDlg,
|
|
1036
|
+
ta as openWaitDlg,
|
|
1037
|
+
it as popView,
|
|
1038
|
+
Ye as provideDark,
|
|
1039
|
+
ot as provideLastAppPath,
|
|
1040
|
+
Pe as provideLocale,
|
|
1041
|
+
at as providePermissionChecksum,
|
|
1042
|
+
et as providePermissionObjects,
|
|
1043
|
+
nt as provideViews,
|
|
1044
|
+
J as routeTransName,
|
|
1045
|
+
Ue as useColor,
|
|
1046
|
+
fa as useMicroApp,
|
|
1047
|
+
ga as usePermission,
|
|
1048
|
+
va as useSystem,
|
|
1043
1049
|
le as useViewStack,
|
|
1044
|
-
|
|
1045
|
-
|
|
1050
|
+
Je as verifyPermission,
|
|
1051
|
+
Yt as waitMs,
|
|
1046
1052
|
re as waitUtil
|
|
1047
1053
|
};
|