x-essential-lib 0.8.14 → 0.8.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +400 -411
- package/dist/vendor.detlzgps.js +198 -0
- package/package.json +19 -20
- package/dist/vendor.i6w3s9o3.js +0 -204
package/dist/index.js
CHANGED
|
@@ -1,186 +1,185 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import { computed as b, provide as B, inject as I, ref as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { useRouter as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.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;inset: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-f1f60167]{width:600px}@media (max-width: 600px){.x-item[data-v-f1f60167]{width:calc(100vw - 16px)}}.x-cont[data-v-c6a59757]{position:fixed;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 { computed as b, provide as B, inject as I, ref as i, watchEffect as ee, onMounted as $, onBeforeUnmount as E, onBeforeMount as be, defineComponent as A, watch as H, resolveComponent as m, createBlock as O, openBlock as D, withKeys as z, unref as F, withModifiers as U, isRef as W, withCtx as v, createVNode as x, createTextVNode as L, toDisplayString as S, Transition as xe, createElementBlock as N, createCommentVNode as G, normalizeStyle as oe, createElementVNode as g, Fragment as ke, renderList as De, useTemplateRef as Ce } from "vue";
|
|
3
|
+
import { useI18n as J } from "vue-i18n";
|
|
4
|
+
import { useTheme as re, useDisplay as qe } from "vuetify";
|
|
5
|
+
import { useRouter as le, useRoute as je } from "vue-router";
|
|
6
6
|
import Ve from "axios";
|
|
7
|
-
import { a as M, m as Se, u as Oe
|
|
8
|
-
function
|
|
9
|
-
const e =
|
|
7
|
+
import { a as M, m as Se, u as Oe } from "./vendor.detlzgps.js";
|
|
8
|
+
function Re() {
|
|
9
|
+
const e = re(), t = b(() => e.global.current.value.colors.primary), a = b(() => e.global.current.value.colors.secondary), o = b(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = b(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = b(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), u = b(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = b(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
10
|
return {
|
|
11
11
|
primaryColor: t,
|
|
12
12
|
secondaryColor: a,
|
|
13
13
|
backgroundColor0: o,
|
|
14
|
-
backgroundColor1:
|
|
14
|
+
backgroundColor1: l,
|
|
15
15
|
backgroundColor2: n,
|
|
16
|
-
highlightColor:
|
|
17
|
-
borderColor:
|
|
16
|
+
highlightColor: u,
|
|
17
|
+
borderColor: r
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function xt(e) {
|
|
21
21
|
const t = Ve.create({
|
|
22
22
|
timeout: 6e3
|
|
23
23
|
});
|
|
24
24
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
25
|
-
(a) =>
|
|
25
|
+
(a) => Te(a),
|
|
26
26
|
(a) => {
|
|
27
|
-
|
|
27
|
+
Le(a, e.onError);
|
|
28
28
|
}
|
|
29
29
|
), t.interceptors.response.use(
|
|
30
|
-
(a) =>
|
|
31
|
-
(a) =>
|
|
30
|
+
(a) => Me(a),
|
|
31
|
+
(a) => Be(a, e.onError)
|
|
32
32
|
), t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Te(e) {
|
|
35
35
|
const t = M.get("accessToken") ?? "";
|
|
36
36
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Le(e, t) {
|
|
39
39
|
console.error(e), t("request timeout");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Me(e) {
|
|
42
42
|
return e.data;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
var r, n;
|
|
44
|
+
function Be(e, t) {
|
|
46
45
|
const o = e.response;
|
|
47
|
-
return o && (o.status === 401 &&
|
|
46
|
+
return o && (o.status === 401 && Ie(), o.data?.message ? t(o.data?.message) : t({
|
|
48
47
|
code: o.status,
|
|
49
48
|
message: o.statusText
|
|
50
49
|
})), Promise.reject(e);
|
|
51
50
|
}
|
|
52
|
-
function
|
|
53
|
-
M.remove("accessToken"), M.remove("refreshToken"), M.remove("activeOrg"),
|
|
51
|
+
function Ie() {
|
|
52
|
+
M.remove("accessToken"), M.remove("refreshToken"), M.remove("activeOrg"), le().replace({ path: "/passport/login" });
|
|
54
53
|
}
|
|
55
|
-
const
|
|
54
|
+
const kt = function() {
|
|
56
55
|
return window.globalObjects || (window.globalObjects = {
|
|
57
56
|
router: null,
|
|
58
57
|
i18n: null
|
|
59
58
|
}), window.globalObjects;
|
|
60
|
-
}(),
|
|
59
|
+
}(), c = function() {
|
|
61
60
|
return window.eventBus || (window.eventBus = Se()), window.eventBus;
|
|
62
61
|
}();
|
|
63
|
-
async function
|
|
62
|
+
async function Dt(e) {
|
|
64
63
|
return new Promise((t) => {
|
|
65
64
|
setTimeout(t, e);
|
|
66
65
|
});
|
|
67
66
|
}
|
|
68
|
-
async function
|
|
67
|
+
async function Q(e, t, a) {
|
|
69
68
|
const o = Date.now();
|
|
70
|
-
return new Promise((
|
|
69
|
+
return new Promise((l) => {
|
|
71
70
|
const n = async () => {
|
|
72
|
-
e() ?
|
|
71
|
+
e() ? l(!0) : t && Date.now() - o > t ? l(!1) : setTimeout(n, a ?? 30);
|
|
73
72
|
};
|
|
74
73
|
n();
|
|
75
74
|
});
|
|
76
75
|
}
|
|
77
|
-
function
|
|
76
|
+
function Ae(e, t) {
|
|
78
77
|
const a = document.getElementById("single-spa-application:" + e);
|
|
79
78
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
80
79
|
a.classList.add("app-reset");
|
|
81
80
|
}, 50));
|
|
82
81
|
}
|
|
83
|
-
let
|
|
84
|
-
function
|
|
82
|
+
let te = Date.now();
|
|
83
|
+
function ne() {
|
|
85
84
|
const e = Date.now();
|
|
86
|
-
return e -
|
|
85
|
+
return e - te > 500 ? (te = e, !0) : !1;
|
|
87
86
|
}
|
|
88
|
-
let
|
|
89
|
-
function
|
|
90
|
-
return ++
|
|
87
|
+
let Ee = 0;
|
|
88
|
+
function ce() {
|
|
89
|
+
return ++Ee;
|
|
91
90
|
}
|
|
92
|
-
async function
|
|
93
|
-
if (!
|
|
91
|
+
async function Ct(e) {
|
|
92
|
+
if (!ne())
|
|
94
93
|
return;
|
|
95
94
|
let t = !1, a;
|
|
96
95
|
const o = (n) => {
|
|
97
96
|
a = n, t = !0;
|
|
98
|
-
},
|
|
99
|
-
return
|
|
97
|
+
}, l = ce();
|
|
98
|
+
return c.on("confirmDlgResult" + l, o), c.emit("confirmDlg", { ...e, seq: l }), await Q(() => t), c.off("confirmDlgResult" + l, o), a;
|
|
100
99
|
}
|
|
101
|
-
async function
|
|
102
|
-
if (!
|
|
100
|
+
async function qt(e) {
|
|
101
|
+
if (!ne())
|
|
103
102
|
return;
|
|
104
103
|
let t = !1, a;
|
|
105
104
|
const o = (n) => {
|
|
106
105
|
a = n, t = !0;
|
|
107
|
-
},
|
|
108
|
-
return
|
|
106
|
+
}, l = ce();
|
|
107
|
+
return c.on("promptDlgResult" + l, o), c.emit("promptDlg", { ...e, seq: l }), await Q(() => t), c.off("promptDlgResult" + l, o), a;
|
|
109
108
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
109
|
+
function jt(e) {
|
|
110
|
+
c.emit("openWaitDlg", { text: e });
|
|
112
111
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
112
|
+
function Vt() {
|
|
113
|
+
c.emit("closeWaitDlg");
|
|
115
114
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
115
|
+
function St(e, t) {
|
|
116
|
+
c.emit("message", { type: "error", text: e, timeout: t });
|
|
118
117
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
118
|
+
function Ot(e, t) {
|
|
119
|
+
c.emit("message", { type: "info", text: e, timeout: t });
|
|
121
120
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
function Rt(e, t) {
|
|
122
|
+
c.emit("message", { type: "success", text: e, timeout: t });
|
|
124
123
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
124
|
+
function Tt(e, t) {
|
|
125
|
+
c.emit("message", { type: "warning", text: e, timeout: t });
|
|
127
126
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
127
|
+
var Ue = /* @__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))(Ue || {});
|
|
128
|
+
function ae(e, t) {
|
|
130
129
|
if (!e)
|
|
131
130
|
return !1;
|
|
132
131
|
let a = e;
|
|
133
|
-
return Object.keys(a).length <= 0 || (t.split("/").forEach((
|
|
132
|
+
return Object.keys(a).length <= 0 || (t.split("/").forEach((l) => {
|
|
134
133
|
if (Object.keys(a).length <= 0)
|
|
135
134
|
return !0;
|
|
136
|
-
if (a[
|
|
137
|
-
a = a[
|
|
135
|
+
if (a[l])
|
|
136
|
+
a = a[l];
|
|
138
137
|
else
|
|
139
138
|
return !1;
|
|
140
139
|
}), Object.keys(a).length <= 0);
|
|
141
140
|
}
|
|
142
|
-
function
|
|
141
|
+
function $e(e, t, a) {
|
|
143
142
|
const o = e[t];
|
|
144
|
-
return o ? a ? !(!
|
|
143
|
+
return o ? a ? !(!ae(o.includes, a) || ae(o.excludes, a)) : !0 : !1;
|
|
145
144
|
}
|
|
146
|
-
const
|
|
147
|
-
function
|
|
148
|
-
B(
|
|
145
|
+
const ue = "essentialDark", pe = "essentialLocale", se = "essentialPermissionObjects", _e = "essentialPermissionChecksum", de = "essentialLastAppPath", ie = "essentialViews";
|
|
146
|
+
function Ke(e) {
|
|
147
|
+
B(ue, e);
|
|
149
148
|
}
|
|
150
|
-
function
|
|
151
|
-
return I(
|
|
149
|
+
function Lt() {
|
|
150
|
+
return I(ue);
|
|
152
151
|
}
|
|
153
|
-
function
|
|
154
|
-
B(
|
|
152
|
+
function We(e) {
|
|
153
|
+
B(pe, e);
|
|
155
154
|
}
|
|
156
|
-
function
|
|
157
|
-
return I(
|
|
155
|
+
function Mt() {
|
|
156
|
+
return I(pe);
|
|
158
157
|
}
|
|
159
|
-
function
|
|
160
|
-
B(
|
|
158
|
+
function Xe(e) {
|
|
159
|
+
B(se, e);
|
|
161
160
|
}
|
|
162
|
-
function
|
|
163
|
-
return I(
|
|
161
|
+
function ze() {
|
|
162
|
+
return I(se);
|
|
164
163
|
}
|
|
165
|
-
function
|
|
166
|
-
B(
|
|
164
|
+
function Ne(e) {
|
|
165
|
+
B(_e, e);
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
return I(
|
|
167
|
+
function Bt() {
|
|
168
|
+
return I(_e);
|
|
170
169
|
}
|
|
171
|
-
function
|
|
172
|
-
B(
|
|
170
|
+
function He(e) {
|
|
171
|
+
B(de, e);
|
|
173
172
|
}
|
|
174
|
-
function
|
|
175
|
-
return I(
|
|
173
|
+
function It() {
|
|
174
|
+
return I(de);
|
|
176
175
|
}
|
|
177
|
-
function
|
|
178
|
-
B(
|
|
176
|
+
function Fe(e) {
|
|
177
|
+
B(ie, e);
|
|
179
178
|
}
|
|
180
|
-
function
|
|
181
|
-
return I(
|
|
179
|
+
function Ge() {
|
|
180
|
+
return I(ie);
|
|
182
181
|
}
|
|
183
|
-
const
|
|
182
|
+
const Je = [
|
|
184
183
|
{
|
|
185
184
|
app: "x-passport-mf",
|
|
186
185
|
path: "/passport/login",
|
|
@@ -288,160 +287,159 @@ const et = [
|
|
|
288
287
|
mainActive: 2
|
|
289
288
|
}
|
|
290
289
|
];
|
|
291
|
-
function
|
|
290
|
+
function K(e) {
|
|
292
291
|
let t, a = 0;
|
|
293
|
-
const o = e.split("/").filter((
|
|
294
|
-
return
|
|
295
|
-
const n =
|
|
296
|
-
let
|
|
297
|
-
for (let
|
|
298
|
-
|
|
299
|
-
|
|
292
|
+
const o = e.split("/").filter((l) => l.trim() !== "");
|
|
293
|
+
return Je.forEach((l) => {
|
|
294
|
+
const n = l.path.split("/").filter((r) => r.trim() !== "");
|
|
295
|
+
let u = 0;
|
|
296
|
+
for (let r = 0; r < o.length && !(r >= n.length || o[r] !== n[r]); r++)
|
|
297
|
+
u++;
|
|
298
|
+
u > 0 && u > a && (t = l, a = u);
|
|
300
299
|
}), t;
|
|
301
300
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
301
|
+
const X = i("");
|
|
302
|
+
function j(e, t, a) {
|
|
304
303
|
t === "/" && (t = a);
|
|
305
|
-
const o =
|
|
304
|
+
const o = K(e), l = K(t);
|
|
306
305
|
if (!o) {
|
|
307
306
|
console.assert(!1);
|
|
308
307
|
return;
|
|
309
308
|
}
|
|
310
|
-
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !
|
|
309
|
+
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !l)
|
|
311
310
|
return;
|
|
312
|
-
const n = o.app ===
|
|
313
|
-
n ?
|
|
311
|
+
const n = o.app === l.app, u = o.path === l.path, r = o.level >= l.level;
|
|
312
|
+
n ? u ? X.value = "" : X.value = r ? "inner-left" : "inner-right" : (X.value = "", Ae(o.app, r));
|
|
314
313
|
}
|
|
315
|
-
function
|
|
314
|
+
function Qe() {
|
|
316
315
|
return !!M.get("accessToken");
|
|
317
316
|
}
|
|
318
|
-
function
|
|
317
|
+
function Ye() {
|
|
319
318
|
return !!M.get("activeOrg");
|
|
320
319
|
}
|
|
321
|
-
function
|
|
322
|
-
const
|
|
323
|
-
if (!
|
|
320
|
+
function At(e, t, a, o) {
|
|
321
|
+
const l = Qe(), n = Ye(), u = K(e.path);
|
|
322
|
+
if (!u) {
|
|
324
323
|
console.assert(!1), a();
|
|
325
324
|
return;
|
|
326
325
|
}
|
|
327
|
-
if (
|
|
328
|
-
if (
|
|
326
|
+
if (u.requiredState === "auth")
|
|
327
|
+
if (l)
|
|
329
328
|
if (n) {
|
|
330
|
-
const
|
|
331
|
-
|
|
329
|
+
const r = "/main";
|
|
330
|
+
j(r, t.path, o), a({ path: r });
|
|
332
331
|
} else
|
|
333
|
-
|
|
332
|
+
j(e.path, t.path, o), a();
|
|
334
333
|
else {
|
|
335
|
-
const
|
|
336
|
-
|
|
334
|
+
const r = "/passport/login";
|
|
335
|
+
j(r, t.path, o), a({ path: r });
|
|
337
336
|
}
|
|
338
|
-
else if (
|
|
339
|
-
if (
|
|
337
|
+
else if (u.requiredState === "org")
|
|
338
|
+
if (l)
|
|
340
339
|
if (n)
|
|
341
|
-
|
|
340
|
+
j(e.path, t.path, o), a();
|
|
342
341
|
else {
|
|
343
|
-
const
|
|
344
|
-
|
|
342
|
+
const r = "/org/joinOrCreate";
|
|
343
|
+
j(r, t.path, o), a({ path: r });
|
|
345
344
|
}
|
|
346
345
|
else {
|
|
347
|
-
const
|
|
348
|
-
|
|
346
|
+
const r = "/passport/login";
|
|
347
|
+
j(r, t.path, o), a({ path: r });
|
|
349
348
|
}
|
|
350
|
-
else if (
|
|
349
|
+
else if (l)
|
|
351
350
|
if (n) {
|
|
352
|
-
const
|
|
353
|
-
|
|
351
|
+
const r = "/main";
|
|
352
|
+
j(r, t.path, o), a({ path: r });
|
|
354
353
|
} else {
|
|
355
|
-
const
|
|
356
|
-
|
|
354
|
+
const r = "/org/joinOrCreate";
|
|
355
|
+
j(r, t.path, o), a({ path: r });
|
|
357
356
|
}
|
|
358
357
|
else
|
|
359
|
-
|
|
358
|
+
j(e.path, t.path, o), a();
|
|
360
359
|
}
|
|
361
|
-
function
|
|
360
|
+
function Ze(e) {
|
|
362
361
|
return e.value.length <= 0;
|
|
363
362
|
}
|
|
364
|
-
function
|
|
363
|
+
function Et(e) {
|
|
365
364
|
if (e.value.length > 0)
|
|
366
365
|
return e.value[e.value.length - 1];
|
|
367
366
|
}
|
|
368
|
-
function
|
|
367
|
+
function fe(e, t) {
|
|
369
368
|
return !!e.value.find((a) => a === t);
|
|
370
369
|
}
|
|
371
|
-
function
|
|
370
|
+
function Pe(e, t) {
|
|
372
371
|
const a = e.value.findIndex((o) => o === t);
|
|
373
372
|
a >= 0 && e.value.splice(a, 1), e.value.push(t);
|
|
374
373
|
}
|
|
375
|
-
function
|
|
374
|
+
function et(e, t) {
|
|
376
375
|
const a = e.value.findIndex((o) => o === t);
|
|
377
376
|
a >= 0 && e.value.splice(a, 1);
|
|
378
377
|
}
|
|
379
|
-
function
|
|
378
|
+
function tt(e) {
|
|
380
379
|
console.assert(e.value.length > 0), e.value.pop();
|
|
381
380
|
}
|
|
382
|
-
function
|
|
381
|
+
function Ut(e) {
|
|
383
382
|
e.value = [];
|
|
384
383
|
}
|
|
385
|
-
function
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
let
|
|
389
|
-
typeof e.value == "boolean" ?
|
|
390
|
-
}),
|
|
391
|
-
const w =
|
|
392
|
-
|
|
384
|
+
function $t(e, t, a, o, l, n) {
|
|
385
|
+
const u = je(), r = le(), _ = Oe(), p = i(!1);
|
|
386
|
+
ee(() => {
|
|
387
|
+
let f = !1;
|
|
388
|
+
typeof e.value == "boolean" ? f = e.value : f = _.value, p.value = f;
|
|
389
|
+
}), Ke(p), We(t), Xe(a), Ne(o), He(l), Fe(n);
|
|
390
|
+
const w = re();
|
|
391
|
+
ee(() => {
|
|
393
392
|
w.global.name.value = p.value ? "dark" : "light";
|
|
394
393
|
});
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
me(n, "waitDlg") || nt(n);
|
|
394
|
+
const h = () => {
|
|
395
|
+
if (!Ze(n)) {
|
|
396
|
+
fe(n, "waitDlg") || tt(n);
|
|
399
397
|
return;
|
|
400
398
|
}
|
|
401
|
-
const
|
|
402
|
-
if (!
|
|
399
|
+
const f = K(u.path);
|
|
400
|
+
if (!f) {
|
|
403
401
|
console.assert(!1);
|
|
404
402
|
return;
|
|
405
403
|
}
|
|
406
|
-
|
|
404
|
+
f.level === 0 ? navigator?.Backbutton?.goHome(
|
|
407
405
|
() => {
|
|
408
406
|
},
|
|
409
407
|
() => {
|
|
410
408
|
}
|
|
411
|
-
) :
|
|
412
|
-
},
|
|
413
|
-
if (
|
|
414
|
-
|
|
409
|
+
) : r.back();
|
|
410
|
+
}, C = (f) => {
|
|
411
|
+
if (f.key === "Escape") {
|
|
412
|
+
h();
|
|
415
413
|
return;
|
|
416
414
|
}
|
|
417
|
-
},
|
|
418
|
-
|
|
415
|
+
}, k = () => {
|
|
416
|
+
h();
|
|
419
417
|
};
|
|
420
|
-
|
|
421
|
-
window.addEventListener("keydown",
|
|
422
|
-
}),
|
|
423
|
-
window.removeEventListener("keydown",
|
|
418
|
+
$(() => {
|
|
419
|
+
window.addEventListener("keydown", C), c.on("backbutton", k);
|
|
420
|
+
}), E(() => {
|
|
421
|
+
window.removeEventListener("keydown", C), c.off("backbutton", k);
|
|
424
422
|
});
|
|
425
|
-
const d = (
|
|
426
|
-
e.value =
|
|
427
|
-
},
|
|
428
|
-
t.value =
|
|
429
|
-
},
|
|
430
|
-
const
|
|
431
|
-
a.value =
|
|
432
|
-
},
|
|
433
|
-
|
|
423
|
+
const d = (f) => {
|
|
424
|
+
e.value = f;
|
|
425
|
+
}, T = (f) => {
|
|
426
|
+
t.value = f;
|
|
427
|
+
}, y = (f) => {
|
|
428
|
+
const q = f;
|
|
429
|
+
a.value = q[0], o.value = q[1];
|
|
430
|
+
}, V = (f) => {
|
|
431
|
+
l.value = f;
|
|
434
432
|
};
|
|
435
433
|
be(() => {
|
|
436
|
-
|
|
437
|
-
}),
|
|
438
|
-
|
|
434
|
+
c.on("updateDark", d), c.on("updateLocale", T), c.on("updatePermission", y), c.on("updateLastAppPath", V), c.emit("syncGlobalState");
|
|
435
|
+
}), E(() => {
|
|
436
|
+
c.off("updateDark", d), c.off("updateLocale", T), c.off("updatePermission", y), c.off("updateLastAppPath", V);
|
|
439
437
|
});
|
|
440
438
|
}
|
|
441
|
-
function
|
|
442
|
-
const e =
|
|
439
|
+
function Kt() {
|
|
440
|
+
const e = ze();
|
|
443
441
|
function t(a, o) {
|
|
444
|
-
return
|
|
442
|
+
return $e(
|
|
445
443
|
e.value,
|
|
446
444
|
a,
|
|
447
445
|
o ?? ""
|
|
@@ -449,7 +447,7 @@ function Ht() {
|
|
|
449
447
|
}
|
|
450
448
|
return { verifyPermission: t };
|
|
451
449
|
}
|
|
452
|
-
function
|
|
450
|
+
function Wt() {
|
|
453
451
|
const e = b(() => !!window.cordova), t = qe(), a = b(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
454
452
|
function o() {
|
|
455
453
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
@@ -458,78 +456,77 @@ function Ft() {
|
|
|
458
456
|
}
|
|
459
457
|
return { sysBarAvail: e, compactWidth: a, isMobile: o };
|
|
460
458
|
}
|
|
461
|
-
function
|
|
462
|
-
const a =
|
|
459
|
+
function Y(e, t) {
|
|
460
|
+
const a = Ge(), o = b({
|
|
463
461
|
get() {
|
|
464
|
-
return
|
|
462
|
+
return fe(a, e);
|
|
465
463
|
},
|
|
466
464
|
set(n) {
|
|
467
|
-
n ?
|
|
465
|
+
n ? Pe(a, e) : et(a, e);
|
|
468
466
|
}
|
|
469
|
-
}),
|
|
470
|
-
t
|
|
467
|
+
}), l = (n) => {
|
|
468
|
+
t?.(n), o.value = !0;
|
|
471
469
|
};
|
|
472
|
-
return
|
|
473
|
-
|
|
474
|
-
}),
|
|
475
|
-
|
|
470
|
+
return $(() => {
|
|
471
|
+
c.on(e, l);
|
|
472
|
+
}), E(() => {
|
|
473
|
+
c.off(e, l);
|
|
476
474
|
}), { open: o };
|
|
477
475
|
}
|
|
478
|
-
const
|
|
476
|
+
const at = /* @__PURE__ */ A({
|
|
479
477
|
__name: "index",
|
|
480
478
|
setup(e) {
|
|
481
|
-
const { t } =
|
|
479
|
+
const { t } = J(), a = i(""), o = i(""), l = i(""), n = i(""), u = i(""), r = i("");
|
|
482
480
|
let _ = 0, p = !1;
|
|
483
|
-
const w = (
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
y.value = !1, p || (u.emit("confirmDlgResult" + _, !0), p = !0);
|
|
481
|
+
const w = (k) => {
|
|
482
|
+
const d = k;
|
|
483
|
+
a.value = d.title, o.value = d.text, l.value = d.cancel?.color ?? "primary", n.value = d.cancel?.text ?? t("dlg.common.cancel"), u.value = d.confirm?.color ?? "primary", r.value = d.confirm?.text ?? t("dlg.common.confirm"), _ = d.seq, p = !1, h.value = !0;
|
|
484
|
+
}, { open: h } = Y("confirmDlg", w), C = () => {
|
|
485
|
+
h.value = !1, p || (c.emit("confirmDlgResult" + _, !0), p = !0);
|
|
489
486
|
};
|
|
490
|
-
return
|
|
491
|
-
!
|
|
492
|
-
}), (
|
|
493
|
-
const
|
|
494
|
-
return
|
|
495
|
-
modelValue:
|
|
496
|
-
"onUpdate:modelValue": d[1] || (d[1] = (s) =>
|
|
487
|
+
return H(h, (k) => {
|
|
488
|
+
!k && !p && (c.emit("confirmDlgResult" + _, !1), p = !0);
|
|
489
|
+
}), (k, d) => {
|
|
490
|
+
const T = m("v-card-text"), y = m("v-btn"), V = m("v-card-actions"), f = m("v-card"), q = m("v-dialog");
|
|
491
|
+
return D(), O(q, {
|
|
492
|
+
modelValue: F(h),
|
|
493
|
+
"onUpdate:modelValue": d[1] || (d[1] = (s) => W(h) ? h.value = s : null),
|
|
497
494
|
transition: "dialog-top-transition",
|
|
498
495
|
"max-width": "600px",
|
|
499
496
|
attach: "",
|
|
500
497
|
onKeydown: [
|
|
501
|
-
d[2] || (d[2] =
|
|
502
|
-
|
|
498
|
+
d[2] || (d[2] = z(U((s) => h.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
499
|
+
z(U(C, ["stop", "prevent"]), ["enter"])
|
|
503
500
|
]
|
|
504
501
|
}, {
|
|
505
|
-
default:
|
|
506
|
-
x(
|
|
507
|
-
default:
|
|
508
|
-
x(
|
|
509
|
-
default:
|
|
510
|
-
L(
|
|
502
|
+
default: v(() => [
|
|
503
|
+
x(f, { title: a.value }, {
|
|
504
|
+
default: v(() => [
|
|
505
|
+
x(T, null, {
|
|
506
|
+
default: v(() => [
|
|
507
|
+
L(S(o.value), 1)
|
|
511
508
|
]),
|
|
512
509
|
_: 1
|
|
513
510
|
}),
|
|
514
|
-
x(
|
|
515
|
-
default:
|
|
516
|
-
x(
|
|
517
|
-
color:
|
|
511
|
+
x(V, { class: "d-flex justify-end" }, {
|
|
512
|
+
default: v(() => [
|
|
513
|
+
x(y, {
|
|
514
|
+
color: l.value,
|
|
518
515
|
variant: "text",
|
|
519
|
-
onClick: d[0] || (d[0] = (s) =>
|
|
516
|
+
onClick: d[0] || (d[0] = (s) => h.value = !1)
|
|
520
517
|
}, {
|
|
521
|
-
default:
|
|
522
|
-
L(
|
|
518
|
+
default: v(() => [
|
|
519
|
+
L(S(n.value), 1)
|
|
523
520
|
]),
|
|
524
521
|
_: 1
|
|
525
522
|
}, 8, ["color"]),
|
|
526
|
-
x(
|
|
527
|
-
color:
|
|
523
|
+
x(y, {
|
|
524
|
+
color: u.value,
|
|
528
525
|
variant: "text",
|
|
529
|
-
onClick:
|
|
526
|
+
onClick: C
|
|
530
527
|
}, {
|
|
531
|
-
default:
|
|
532
|
-
L(
|
|
528
|
+
default: v(() => [
|
|
529
|
+
L(S(r.value), 1)
|
|
533
530
|
]),
|
|
534
531
|
_: 1
|
|
535
532
|
}, 8, ["color"])
|
|
@@ -544,50 +541,50 @@ const ut = /* @__PURE__ */ A({
|
|
|
544
541
|
}, 8, ["modelValue", "onKeydown"]);
|
|
545
542
|
};
|
|
546
543
|
}
|
|
547
|
-
}),
|
|
544
|
+
}), ot = /* @__PURE__ */ A({
|
|
548
545
|
__name: "index",
|
|
549
546
|
props: {
|
|
550
547
|
open: { type: Boolean, default: !0 },
|
|
551
548
|
zIndex: { default: 1 }
|
|
552
549
|
},
|
|
553
550
|
setup(e) {
|
|
554
|
-
const { backgroundColor2: t } =
|
|
551
|
+
const { backgroundColor2: t } = Re(), a = b(() => ({
|
|
555
552
|
background: t.value,
|
|
556
553
|
zIndex: e.zIndex
|
|
557
554
|
}));
|
|
558
555
|
let o = 0;
|
|
559
|
-
return (
|
|
560
|
-
default:
|
|
561
|
-
|
|
562
|
-
key:
|
|
556
|
+
return (l, n) => (D(), O(xe, { name: "fade" }, {
|
|
557
|
+
default: v(() => [
|
|
558
|
+
l.open ? (D(), N("div", {
|
|
559
|
+
key: W(o) ? ++o.value : ++o,
|
|
563
560
|
class: "x-cont",
|
|
564
|
-
style:
|
|
561
|
+
style: oe(a.value)
|
|
565
562
|
}, n[0] || (n[0] = [
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
563
|
+
g("div", { class: "lds-spinner" }, [
|
|
564
|
+
g("div"),
|
|
565
|
+
g("div"),
|
|
566
|
+
g("div"),
|
|
567
|
+
g("div"),
|
|
568
|
+
g("div"),
|
|
569
|
+
g("div"),
|
|
570
|
+
g("div"),
|
|
571
|
+
g("div"),
|
|
572
|
+
g("div"),
|
|
573
|
+
g("div"),
|
|
574
|
+
g("div"),
|
|
575
|
+
g("div")
|
|
579
576
|
], -1)
|
|
580
|
-
]), 4)) :
|
|
577
|
+
]), 4)) : G("", !0)
|
|
581
578
|
]),
|
|
582
579
|
_: 1
|
|
583
580
|
}));
|
|
584
581
|
}
|
|
585
|
-
}),
|
|
582
|
+
}), Z = (e, t) => {
|
|
586
583
|
const a = e.__vccOpts || e;
|
|
587
|
-
for (const [o,
|
|
588
|
-
a[o] =
|
|
584
|
+
for (const [o, l] of t)
|
|
585
|
+
a[o] = l;
|
|
589
586
|
return a;
|
|
590
|
-
},
|
|
587
|
+
}, rt = /* @__PURE__ */ Z(ot, [["__scopeId", "data-v-0c686889"]]), lt = /* @__PURE__ */ A({
|
|
591
588
|
__name: "item",
|
|
592
589
|
props: {
|
|
593
590
|
id: {},
|
|
@@ -603,78 +600,78 @@ const ut = /* @__PURE__ */ A({
|
|
|
603
600
|
})), o = b(() => {
|
|
604
601
|
switch (e.type) {
|
|
605
602
|
case "success":
|
|
606
|
-
return
|
|
603
|
+
return "mdi-check-circle";
|
|
607
604
|
case "info":
|
|
608
|
-
return
|
|
605
|
+
return "mdi-information";
|
|
609
606
|
case "error":
|
|
610
|
-
return
|
|
607
|
+
return "mdi-close-circle";
|
|
611
608
|
case "warning":
|
|
612
|
-
return
|
|
609
|
+
return "mdi-alert-circle";
|
|
613
610
|
default:
|
|
614
611
|
return "";
|
|
615
612
|
}
|
|
616
|
-
}),
|
|
617
|
-
return
|
|
613
|
+
}), l = i(!0), n = t;
|
|
614
|
+
return $(() => {
|
|
618
615
|
setTimeout(() => {
|
|
619
616
|
n("timeout", e.id);
|
|
620
617
|
}, e.timeout);
|
|
621
|
-
}),
|
|
622
|
-
|
|
623
|
-
}), (
|
|
624
|
-
const _ =
|
|
625
|
-
return
|
|
618
|
+
}), H(l, (u) => {
|
|
619
|
+
u || n("timeout", e.id);
|
|
620
|
+
}), (u, r) => {
|
|
621
|
+
const _ = m("v-icon"), p = m("v-sheet");
|
|
622
|
+
return D(), O(p, {
|
|
626
623
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
627
|
-
color:
|
|
624
|
+
color: u.type,
|
|
628
625
|
elevation: 1
|
|
629
626
|
}, {
|
|
630
|
-
default:
|
|
631
|
-
o.value ? (
|
|
627
|
+
default: v(() => [
|
|
628
|
+
o.value ? (D(), O(_, {
|
|
632
629
|
key: 0,
|
|
633
630
|
class: "mx-1",
|
|
634
631
|
icon: o.value
|
|
635
|
-
}, null, 8, ["icon"])) :
|
|
636
|
-
|
|
637
|
-
style:
|
|
638
|
-
},
|
|
632
|
+
}, null, 8, ["icon"])) : G("", !0),
|
|
633
|
+
g("div", {
|
|
634
|
+
style: oe(a.value)
|
|
635
|
+
}, S(u.text), 5),
|
|
639
636
|
x(_, {
|
|
640
637
|
class: "mx-1",
|
|
641
|
-
icon:
|
|
642
|
-
onClick:
|
|
643
|
-
}
|
|
638
|
+
icon: "mdi-close",
|
|
639
|
+
onClick: r[0] || (r[0] = (w) => n("timeout", u.id))
|
|
640
|
+
})
|
|
644
641
|
]),
|
|
645
642
|
_: 1
|
|
646
643
|
}, 8, ["color"]);
|
|
647
644
|
};
|
|
648
645
|
}
|
|
649
|
-
}),
|
|
646
|
+
}), nt = /* @__PURE__ */ Z(lt, [["__scopeId", "data-v-f1f60167"]]), ct = /* @__PURE__ */ A({
|
|
650
647
|
__name: "index",
|
|
651
648
|
setup(e) {
|
|
652
|
-
const t =
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}),
|
|
656
|
-
|
|
649
|
+
const t = i([]);
|
|
650
|
+
$(() => {
|
|
651
|
+
c.on("message", a);
|
|
652
|
+
}), E(() => {
|
|
653
|
+
c.off("message", a);
|
|
657
654
|
});
|
|
658
|
-
const a = (
|
|
659
|
-
const { type: _, text: p, timeout: w } =
|
|
655
|
+
const a = (r) => {
|
|
656
|
+
const { type: _, text: p, timeout: w } = r;
|
|
660
657
|
n(_, p, w);
|
|
661
|
-
}, o = (
|
|
662
|
-
|
|
658
|
+
}, o = (r) => {
|
|
659
|
+
u(r);
|
|
663
660
|
};
|
|
664
|
-
let
|
|
665
|
-
const n = (
|
|
666
|
-
const w =
|
|
667
|
-
t.value.push({ id: w, type:
|
|
668
|
-
},
|
|
669
|
-
const _ = t.value.findIndex((p) => p.id ===
|
|
661
|
+
let l = 0;
|
|
662
|
+
const n = (r, _, p) => {
|
|
663
|
+
const w = l++;
|
|
664
|
+
t.value.push({ id: w, type: r, text: _, timeout: p });
|
|
665
|
+
}, u = (r) => {
|
|
666
|
+
const _ = t.value.findIndex((p) => p.id === r);
|
|
670
667
|
_ >= 0 && t.value.splice(_, 1);
|
|
671
668
|
};
|
|
672
|
-
return (
|
|
669
|
+
return (r, _) => (D(), N("div", {
|
|
673
670
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
674
|
-
onClick: _[0] || (_[0] =
|
|
671
|
+
onClick: _[0] || (_[0] = U(() => {
|
|
675
672
|
}, ["stop"]))
|
|
676
673
|
}, [
|
|
677
|
-
(
|
|
674
|
+
(D(!0), N(ke, null, De(t.value, (p) => (D(), O(nt, {
|
|
678
675
|
id: p.id,
|
|
679
676
|
key: p.id,
|
|
680
677
|
type: p.type,
|
|
@@ -684,75 +681,74 @@ const ut = /* @__PURE__ */ A({
|
|
|
684
681
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
685
682
|
]));
|
|
686
683
|
}
|
|
687
|
-
}),
|
|
684
|
+
}), ut = /* @__PURE__ */ Z(ct, [["__scopeId", "data-v-c6a59757"]]), pt = /* @__PURE__ */ A({
|
|
688
685
|
__name: "index",
|
|
689
686
|
setup(e) {
|
|
690
|
-
const { t } =
|
|
691
|
-
let
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
g.value = !1, d || (u.emit("promptDlgResult" + C, l.value ?? ""), d = !0);
|
|
687
|
+
const { t } = J(), a = i(""), o = i(""), l = i(""), n = i(""), u = i(), r = i(""), _ = i(""), p = i(""), w = i(""), h = i(""), C = Ce("target");
|
|
688
|
+
let k = 0, d = !1;
|
|
689
|
+
const T = async (q) => {
|
|
690
|
+
const s = q;
|
|
691
|
+
a.value = s.title, o.value = s.text, l.value = s.label, n.value = s.placeholder, u.value = s.rules, r.value = s.value, _.value = s.cancel?.color ?? "primary", p.value = s.cancel?.text ?? t("dlg.common.cancel"), w.value = s.confirm?.color ?? "primary", h.value = s.confirm?.text ?? t("dlg.common.confirm"), k = s.seq, d = !1, y.value = !0, await Q(() => !!C.value), C.value.focus();
|
|
692
|
+
}, { open: y } = Y("promptDlg", T), V = i(!1), f = () => {
|
|
693
|
+
y.value = !1, d || (c.emit("promptDlgResult" + k, r.value ?? ""), d = !0);
|
|
698
694
|
};
|
|
699
|
-
return
|
|
700
|
-
!
|
|
701
|
-
}), (
|
|
702
|
-
const
|
|
703
|
-
return
|
|
704
|
-
modelValue:
|
|
705
|
-
"onUpdate:modelValue": s[3] || (s[3] = (
|
|
695
|
+
return H(y, (q) => {
|
|
696
|
+
!q && !d && (c.emit("promptDlgResult" + k, void 0), d = !0);
|
|
697
|
+
}), (q, s) => {
|
|
698
|
+
const ge = m("v-card-text"), ve = m("v-text-field"), P = m("v-btn"), me = m("v-card-actions"), he = m("v-form"), ye = m("v-card"), we = m("v-dialog");
|
|
699
|
+
return D(), O(we, {
|
|
700
|
+
modelValue: F(y),
|
|
701
|
+
"onUpdate:modelValue": s[3] || (s[3] = (R) => W(y) ? y.value = R : null),
|
|
706
702
|
transition: "dialog-top-transition",
|
|
707
703
|
"max-width": "600px",
|
|
708
704
|
attach: "",
|
|
709
|
-
onKeydown: s[4] || (s[4] =
|
|
705
|
+
onKeydown: s[4] || (s[4] = z(U((R) => y.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
710
706
|
}, {
|
|
711
|
-
default:
|
|
707
|
+
default: v(() => [
|
|
712
708
|
x(ye, { title: a.value }, {
|
|
713
|
-
default:
|
|
714
|
-
o.value ? (
|
|
715
|
-
default:
|
|
716
|
-
L(
|
|
709
|
+
default: v(() => [
|
|
710
|
+
o.value ? (D(), O(ge, { key: 0 }, {
|
|
711
|
+
default: v(() => [
|
|
712
|
+
L(S(o.value), 1)
|
|
717
713
|
]),
|
|
718
714
|
_: 1
|
|
719
|
-
})) :
|
|
715
|
+
})) : G("", !0),
|
|
720
716
|
x(he, {
|
|
721
|
-
modelValue:
|
|
722
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
717
|
+
modelValue: V.value,
|
|
718
|
+
"onUpdate:modelValue": s[2] || (s[2] = (R) => V.value = R),
|
|
723
719
|
class: "mx-3",
|
|
724
|
-
onSubmit:
|
|
720
|
+
onSubmit: U(f, ["prevent"])
|
|
725
721
|
}, {
|
|
726
|
-
default:
|
|
727
|
-
x(
|
|
722
|
+
default: v(() => [
|
|
723
|
+
x(ve, {
|
|
728
724
|
ref_key: "target",
|
|
729
|
-
ref:
|
|
730
|
-
modelValue:
|
|
731
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
732
|
-
label:
|
|
725
|
+
ref: C,
|
|
726
|
+
modelValue: r.value,
|
|
727
|
+
"onUpdate:modelValue": s[0] || (s[0] = (R) => r.value = R),
|
|
728
|
+
label: l.value,
|
|
733
729
|
placeholder: n.value,
|
|
734
|
-
rules:
|
|
730
|
+
rules: u.value
|
|
735
731
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
736
|
-
x(
|
|
737
|
-
default:
|
|
738
|
-
x(
|
|
732
|
+
x(me, { class: "d-flex justify-end" }, {
|
|
733
|
+
default: v(() => [
|
|
734
|
+
x(P, {
|
|
739
735
|
variant: "text",
|
|
740
736
|
color: _.value,
|
|
741
|
-
onClick: s[1] || (s[1] = (
|
|
737
|
+
onClick: s[1] || (s[1] = (R) => y.value = !1)
|
|
742
738
|
}, {
|
|
743
|
-
default:
|
|
744
|
-
L(
|
|
739
|
+
default: v(() => [
|
|
740
|
+
L(S(p.value), 1)
|
|
745
741
|
]),
|
|
746
742
|
_: 1
|
|
747
743
|
}, 8, ["color"]),
|
|
748
|
-
x(
|
|
749
|
-
disabled: !
|
|
744
|
+
x(P, {
|
|
745
|
+
disabled: !V.value,
|
|
750
746
|
variant: "text",
|
|
751
747
|
color: w.value,
|
|
752
748
|
type: "submit"
|
|
753
749
|
}, {
|
|
754
|
-
default:
|
|
755
|
-
L(
|
|
750
|
+
default: v(() => [
|
|
751
|
+
L(S(h.value), 1)
|
|
756
752
|
]),
|
|
757
753
|
_: 1
|
|
758
754
|
}, 8, ["disabled", "color"])
|
|
@@ -770,39 +766,39 @@ const ut = /* @__PURE__ */ A({
|
|
|
770
766
|
}, 8, ["modelValue"]);
|
|
771
767
|
};
|
|
772
768
|
}
|
|
773
|
-
}),
|
|
769
|
+
}), st = { class: "mx-auto my-auto" }, _t = { class: "w-100 h-100 d-flex align-center justify-center" }, dt = { class: "text-body-1" }, it = /* @__PURE__ */ A({
|
|
774
770
|
__name: "index",
|
|
775
771
|
setup(e) {
|
|
776
|
-
const { t } =
|
|
777
|
-
const
|
|
778
|
-
a.value =
|
|
779
|
-
},
|
|
772
|
+
const { t } = J(), a = i(""), o = (u) => {
|
|
773
|
+
const r = u;
|
|
774
|
+
a.value = r.text ?? t("dlg.common.waiting"), n.value = !0;
|
|
775
|
+
}, l = () => {
|
|
780
776
|
n.value = !1;
|
|
781
|
-
}, { open: n } =
|
|
782
|
-
return
|
|
783
|
-
|
|
784
|
-
}),
|
|
785
|
-
|
|
786
|
-
}), (
|
|
787
|
-
const _ =
|
|
788
|
-
return
|
|
789
|
-
modelValue:
|
|
790
|
-
"onUpdate:modelValue":
|
|
777
|
+
}, { open: n } = Y("waitDlg", o);
|
|
778
|
+
return $(() => {
|
|
779
|
+
c.on("closeWaitDlg", l);
|
|
780
|
+
}), E(() => {
|
|
781
|
+
c.off("closeWaitDlg", l);
|
|
782
|
+
}), (u, r) => {
|
|
783
|
+
const _ = m("v-card"), p = m("v-dialog");
|
|
784
|
+
return D(), O(p, {
|
|
785
|
+
modelValue: F(n),
|
|
786
|
+
"onUpdate:modelValue": r[0] || (r[0] = (w) => W(n) ? n.value = w : null),
|
|
791
787
|
persistent: "",
|
|
792
788
|
"no-click-animation": "",
|
|
793
789
|
fullscreen: "",
|
|
794
790
|
attach: ""
|
|
795
791
|
}, {
|
|
796
|
-
default:
|
|
797
|
-
|
|
792
|
+
default: v(() => [
|
|
793
|
+
g("div", st, [
|
|
798
794
|
x(_, {
|
|
799
795
|
width: "300px",
|
|
800
796
|
height: "80px",
|
|
801
797
|
loading: ""
|
|
802
798
|
}, {
|
|
803
|
-
default:
|
|
804
|
-
|
|
805
|
-
|
|
799
|
+
default: v(() => [
|
|
800
|
+
g("div", _t, [
|
|
801
|
+
g("span", dt, S(a.value), 1)
|
|
806
802
|
])
|
|
807
803
|
]),
|
|
808
804
|
_: 1
|
|
@@ -813,70 +809,63 @@ const ut = /* @__PURE__ */ A({
|
|
|
813
809
|
}, 8, ["modelValue"]);
|
|
814
810
|
};
|
|
815
811
|
}
|
|
816
|
-
}),
|
|
817
|
-
e.component("XConfirmDlg",
|
|
818
|
-
},
|
|
812
|
+
}), ft = (e) => {
|
|
813
|
+
e.component("XConfirmDlg", at), e.component("XLoading", rt), e.component("XMessage", ut), e.component("XPromptDlg", pt), e.component("XWaitDlg", it);
|
|
814
|
+
}, gt = (e, t, a) => {
|
|
819
815
|
const o = e[t];
|
|
820
|
-
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((
|
|
821
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
822
|
-
n.bind(
|
|
823
|
-
null,
|
|
824
|
-
new Error(
|
|
825
|
-
"Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : "")
|
|
826
|
-
)
|
|
827
|
-
)
|
|
828
|
-
);
|
|
816
|
+
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((l, n) => {
|
|
817
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : ""))));
|
|
829
818
|
});
|
|
830
819
|
};
|
|
831
|
-
async function
|
|
832
|
-
return (await
|
|
820
|
+
async function Xt(e) {
|
|
821
|
+
return (await gt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.g2u6ybqk.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
833
822
|
}
|
|
834
|
-
const
|
|
823
|
+
const zt = { install: ft };
|
|
835
824
|
export {
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
825
|
+
Ue as Permission,
|
|
826
|
+
Pe as addView,
|
|
827
|
+
Ae as appAppear,
|
|
828
|
+
Ut as clearViews,
|
|
829
|
+
Vt as closeWaitDlg,
|
|
830
|
+
xt as createAxios,
|
|
831
|
+
zt as default,
|
|
832
|
+
et as delView,
|
|
833
|
+
c as eventBus,
|
|
834
|
+
kt as globalObjects,
|
|
835
|
+
fe as hasView,
|
|
836
|
+
Lt as injectDark,
|
|
837
|
+
It as injectLastAppPath,
|
|
838
|
+
Mt as injectLocale,
|
|
839
|
+
Bt as injectPermissionChecksum,
|
|
840
|
+
ze as injectPermissionObjects,
|
|
841
|
+
Ge as injectViews,
|
|
842
|
+
Ze as isEmpty,
|
|
843
|
+
ae as isExist,
|
|
844
|
+
Et as lastView,
|
|
845
|
+
Xt as loadLocaleMessageEssential,
|
|
846
|
+
K as matchRouteMeta,
|
|
847
|
+
St as messageError,
|
|
848
|
+
Ot as messageInfo,
|
|
849
|
+
Rt as messageSuccess,
|
|
850
|
+
Tt as messageWarning,
|
|
851
|
+
At as onBeforeEach,
|
|
852
|
+
Ct as openConfirmDlg,
|
|
853
|
+
qt as openPromptDlg,
|
|
854
|
+
jt as openWaitDlg,
|
|
855
|
+
tt as popView,
|
|
856
|
+
Ke as provideDark,
|
|
857
|
+
He as provideLastAppPath,
|
|
858
|
+
We as provideLocale,
|
|
859
|
+
Ne as providePermissionChecksum,
|
|
860
|
+
Xe as providePermissionObjects,
|
|
861
|
+
Fe as provideViews,
|
|
862
|
+
X as routeTransName,
|
|
863
|
+
Re as useColor,
|
|
864
|
+
$t as useMicroApp,
|
|
865
|
+
Kt as usePermission,
|
|
866
|
+
Wt as useSystem,
|
|
867
|
+
Y as useViewStack,
|
|
868
|
+
$e as verifyPermission,
|
|
869
|
+
Dt as waitMs,
|
|
870
|
+
Q as waitUtil
|
|
882
871
|
};
|