x-essential-lib 0.9.7 → 0.9.9
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/nameHelper.d.ts +2 -2
- package/dist/{i18n-en.b4pdkbnt.js → i18n-en.opwoswgc.js} +1 -1
- package/dist/{i18n-zhHans.jx2nrjh0.js → i18n-zhHans.e8snb93i.js} +1 -1
- package/dist/index.js +267 -263
- package/dist/vendor.evicfx58.js +231 -0
- package/package.json +3 -1
- package/dist/vendor.waod39c6.js +0 -182
package/dist/index.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var d=document.createElement("style");d.id="x-essential-lib",d.appendChild(document.createTextNode('.fade-leave-active[data-v-83c3cd1d]{transition:opacity .5s ease}.fade-leave-to[data-v-83c3cd1d]{opacity:0}.x-cont[data-v-83c3cd1d]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-83c3cd1d]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-83c3cd1d]{transform-origin:20px 20px;animation:lds-spinner-83c3cd1d 1.2s linear infinite}.lds-spinner div[data-v-83c3cd1d]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-83c3cd1d]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-83c3cd1d]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-83c3cd1d]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-83c3cd1d]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-83c3cd1d]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-83c3cd1d]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-83c3cd1d]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-83c3cd1d]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-83c3cd1d]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-83c3cd1d]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-83c3cd1d{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-b482df18]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(d)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import { computed as j, provide as U, inject as K, ref as p, watchEffect as ne, onMounted as W, onBeforeUnmount as N, onBeforeMount as
|
|
2
|
+
import { computed as j, provide as U, inject as K, ref as p, watchEffect as ne, onMounted as W, onBeforeUnmount as N, onBeforeMount as De, defineComponent as $, watch as J, resolveComponent as m, createBlock as A, openBlock as C, withKeys as F, unref as E, withModifiers as M, isRef as X, withCtx as v, createVNode as y, createTextVNode as B, toDisplayString as S, Transition as Ve, createElementBlock as ee, createCommentVNode as te, normalizeStyle as se, createElementVNode as w, Fragment as je, renderList as Ce, useTemplateRef as pe } from "vue";
|
|
3
3
|
import { useI18n as z } from "vue-i18n";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import
|
|
7
|
-
import { a as
|
|
4
|
+
import { useTheme as _e, useDisplay as Oe } from "vuetify";
|
|
5
|
+
import { useRouter as de, useRoute as qe } from "vue-router";
|
|
6
|
+
import Se from "axios";
|
|
7
|
+
import { a as T, m as Re, u as Le, t as re } from "./vendor.evicfx58.js";
|
|
8
8
|
function Te() {
|
|
9
|
-
const e =
|
|
9
|
+
const e = _e(), t = j(() => e.global.current.value.colors.primary), a = j(() => e.global.current.value.colors.secondary), o = j(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), l = j(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = j(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), u = j(() => e.current.value.dark ? "#303030" : "#f6f6f6"), n = j(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
10
|
return {
|
|
11
11
|
primaryColor: t,
|
|
12
12
|
secondaryColor: a,
|
|
13
13
|
backgroundColor0: o,
|
|
14
14
|
backgroundColor1: l,
|
|
15
|
-
backgroundColor2:
|
|
15
|
+
backgroundColor2: r,
|
|
16
16
|
highlightColor: u,
|
|
17
|
-
borderColor:
|
|
17
|
+
borderColor: n
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const t =
|
|
20
|
+
function Vt(e) {
|
|
21
|
+
const t = Se.create({
|
|
22
22
|
timeout: 6e3
|
|
23
23
|
});
|
|
24
24
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
25
|
-
(a) =>
|
|
25
|
+
(a) => Ae(a),
|
|
26
26
|
(a) => {
|
|
27
|
-
|
|
27
|
+
Be(a, e.onError);
|
|
28
28
|
}
|
|
29
29
|
), t.interceptors.response.use(
|
|
30
|
-
(a) =>
|
|
30
|
+
(a) => Ie(a),
|
|
31
31
|
(a) => Me(a, e.onError)
|
|
32
32
|
), t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const t =
|
|
34
|
+
function Ae(e) {
|
|
35
|
+
const t = T.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 Be(e, t) {
|
|
39
39
|
console.error(e), t("request timeout");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ie(e) {
|
|
42
42
|
return e.data;
|
|
43
43
|
}
|
|
44
44
|
function Me(e, t) {
|
|
@@ -49,17 +49,17 @@ function Me(e, t) {
|
|
|
49
49
|
})), Promise.reject(e);
|
|
50
50
|
}
|
|
51
51
|
function $e() {
|
|
52
|
-
|
|
52
|
+
T.remove("accessToken"), T.remove("refreshToken"), T.remove("userId"), T.remove("userName"), T.remove("phone"), T.remove("activeOrg"), de().replace({ path: "/passport/login" });
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const jt = (function() {
|
|
55
55
|
return window.globalObjects || (window.globalObjects = {
|
|
56
56
|
router: null,
|
|
57
57
|
i18n: null
|
|
58
58
|
}, console.log("globalObjects created")), window.globalObjects;
|
|
59
59
|
})(), c = (function() {
|
|
60
|
-
return window.eventBus || (window.eventBus =
|
|
60
|
+
return window.eventBus || (window.eventBus = Re(), console.log("eventBus created")), window.eventBus;
|
|
61
61
|
})();
|
|
62
|
-
async function
|
|
62
|
+
async function Ct(e) {
|
|
63
63
|
return new Promise((t) => {
|
|
64
64
|
setTimeout(t, e);
|
|
65
65
|
});
|
|
@@ -67,74 +67,74 @@ async function jt(e) {
|
|
|
67
67
|
async function H(e, t, a) {
|
|
68
68
|
const o = Date.now();
|
|
69
69
|
return new Promise((l) => {
|
|
70
|
-
const
|
|
71
|
-
e() ? l(!0) : t && Date.now() - o > t ? l(!1) : setTimeout(
|
|
70
|
+
const r = async () => {
|
|
71
|
+
e() ? l(!0) : t && Date.now() - o > t ? l(!1) : setTimeout(r, a ?? 30);
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
r();
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ee(e, t) {
|
|
77
77
|
const a = document.getElementById("single-spa-application:" + e);
|
|
78
78
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
79
79
|
a.classList.add("app-reset");
|
|
80
80
|
}, 50));
|
|
81
81
|
}
|
|
82
|
-
let
|
|
82
|
+
let ue = Date.now();
|
|
83
83
|
function ae() {
|
|
84
84
|
const e = Date.now();
|
|
85
|
-
return e -
|
|
85
|
+
return e - ue > 500 ? (ue = e, !0) : !1;
|
|
86
86
|
}
|
|
87
|
-
let
|
|
87
|
+
let Ue = 0;
|
|
88
88
|
function oe() {
|
|
89
|
-
return ++
|
|
89
|
+
return ++Ue;
|
|
90
90
|
}
|
|
91
|
-
async function
|
|
91
|
+
async function Ot(e) {
|
|
92
92
|
if (!ae())
|
|
93
93
|
return;
|
|
94
94
|
let t = !1, a;
|
|
95
|
-
const o = (
|
|
96
|
-
a =
|
|
95
|
+
const o = (r) => {
|
|
96
|
+
a = r, t = !0;
|
|
97
97
|
}, l = oe();
|
|
98
98
|
return c.on("confirmDlgResult" + l, o), c.emit("confirmDlg", { ...e, seq: l }), await H(() => t), c.off("confirmDlgResult" + l, o), a;
|
|
99
99
|
}
|
|
100
|
-
async function
|
|
100
|
+
async function qt(e) {
|
|
101
101
|
if (!ae())
|
|
102
102
|
return;
|
|
103
103
|
let t = !1, a;
|
|
104
|
-
const o = (
|
|
105
|
-
a =
|
|
104
|
+
const o = (r) => {
|
|
105
|
+
a = r, t = !0;
|
|
106
106
|
}, l = oe();
|
|
107
107
|
return c.on("numberDlgResult" + l, o), c.emit("numberDlg", { ...e, seq: l }), await H(() => t), c.off("numberDlgResult" + l, o), a;
|
|
108
108
|
}
|
|
109
|
-
async function
|
|
109
|
+
async function St(e) {
|
|
110
110
|
if (!ae())
|
|
111
111
|
return;
|
|
112
112
|
let t = !1, a;
|
|
113
|
-
const o = (
|
|
114
|
-
a =
|
|
113
|
+
const o = (r) => {
|
|
114
|
+
a = r, t = !0;
|
|
115
115
|
}, l = oe();
|
|
116
116
|
return c.on("promptDlgResult" + l, o), c.emit("promptDlg", { ...e, seq: l }), await H(() => t), c.off("promptDlgResult" + l, o), a;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Rt(e) {
|
|
119
119
|
c.emit("waitDlg", { text: e });
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Lt() {
|
|
122
122
|
c.emit("closeWaitDlg");
|
|
123
123
|
}
|
|
124
124
|
function Tt(e, t) {
|
|
125
125
|
c.emit("message", { type: "error", text: e, timeout: t });
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function At(e, t) {
|
|
128
128
|
c.emit("message", { type: "info", text: e, timeout: t });
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Bt(e, t) {
|
|
131
131
|
c.emit("message", { type: "success", text: e, timeout: t });
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function It(e, t) {
|
|
134
134
|
c.emit("message", { type: "warning", text: e, timeout: t });
|
|
135
135
|
}
|
|
136
|
-
var
|
|
137
|
-
function
|
|
136
|
+
var Ke = /* @__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))(Ke || {});
|
|
137
|
+
function ce(e, t) {
|
|
138
138
|
if (!e)
|
|
139
139
|
return !1;
|
|
140
140
|
let a = e;
|
|
@@ -147,33 +147,27 @@ function ue(e, t) {
|
|
|
147
147
|
return !1;
|
|
148
148
|
}), Object.keys(a).length <= 0);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Ne(e, t, a) {
|
|
151
151
|
const o = e[t];
|
|
152
|
-
return o ? a ? !(!
|
|
153
|
-
}
|
|
154
|
-
const de = "essentialDark", ie = "essentialLocale", fe = "essentialPermissionObjects", ge = "essentialPermissionChecksum", ve = "essentialLastAppPath", me = "essentialViews";
|
|
155
|
-
function Ne(e) {
|
|
156
|
-
U(de, e);
|
|
157
|
-
}
|
|
158
|
-
function Mt() {
|
|
159
|
-
return K(de);
|
|
152
|
+
return o ? a ? !(!ce(o.includes, a) || ce(o.excludes, a)) : !0 : !1;
|
|
160
153
|
}
|
|
154
|
+
const ie = "essentialDark", fe = "essentialLocale", ge = "essentialPermissionObjects", ve = "essentialPermissionChecksum", me = "essentialLastAppPath", be = "essentialViews";
|
|
161
155
|
function We(e) {
|
|
162
156
|
U(ie, e);
|
|
163
157
|
}
|
|
164
|
-
function
|
|
158
|
+
function Mt() {
|
|
165
159
|
return K(ie);
|
|
166
160
|
}
|
|
167
161
|
function Xe(e) {
|
|
168
162
|
U(fe, e);
|
|
169
163
|
}
|
|
170
|
-
function
|
|
164
|
+
function $t() {
|
|
171
165
|
return K(fe);
|
|
172
166
|
}
|
|
173
|
-
function
|
|
167
|
+
function ze(e) {
|
|
174
168
|
U(ge, e);
|
|
175
169
|
}
|
|
176
|
-
function
|
|
170
|
+
function He() {
|
|
177
171
|
return K(ge);
|
|
178
172
|
}
|
|
179
173
|
function Fe(e) {
|
|
@@ -185,10 +179,16 @@ function Et() {
|
|
|
185
179
|
function Ge(e) {
|
|
186
180
|
U(me, e);
|
|
187
181
|
}
|
|
188
|
-
function
|
|
182
|
+
function Ut() {
|
|
189
183
|
return K(me);
|
|
190
184
|
}
|
|
191
|
-
|
|
185
|
+
function Je(e) {
|
|
186
|
+
U(be, e);
|
|
187
|
+
}
|
|
188
|
+
function Qe() {
|
|
189
|
+
return K(be);
|
|
190
|
+
}
|
|
191
|
+
const Ye = [
|
|
192
192
|
{
|
|
193
193
|
app: "x-passport-mf",
|
|
194
194
|
path: "/passport/login",
|
|
@@ -302,16 +302,16 @@ const Qe = [
|
|
|
302
302
|
function G(e) {
|
|
303
303
|
let t, a = 0;
|
|
304
304
|
const o = e.split("/").filter((l) => l.trim() !== "");
|
|
305
|
-
return
|
|
306
|
-
const
|
|
305
|
+
return Ye.forEach((l) => {
|
|
306
|
+
const r = l.path.split("/").filter((n) => n.trim() !== "");
|
|
307
307
|
let u = 0;
|
|
308
|
-
for (let
|
|
308
|
+
for (let n = 0; n < o.length && !(n >= r.length || o[n] !== r[n]); n++)
|
|
309
309
|
u++;
|
|
310
310
|
u > 0 && u > a && (t = l, a = u);
|
|
311
311
|
}), t;
|
|
312
312
|
}
|
|
313
313
|
const P = p("");
|
|
314
|
-
function
|
|
314
|
+
function L(e, t, a) {
|
|
315
315
|
t === "/" && (t = a);
|
|
316
316
|
const o = G(e), l = G(t);
|
|
317
317
|
if (!o) {
|
|
@@ -320,92 +320,92 @@ function T(e, t, a) {
|
|
|
320
320
|
}
|
|
321
321
|
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !l)
|
|
322
322
|
return;
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
function Ye() {
|
|
327
|
-
return !!I.get("accessToken");
|
|
323
|
+
const r = o.app === l.app, u = o.path === l.path, n = o.level >= l.level;
|
|
324
|
+
r ? u ? P.value = "" : P.value = n ? "inner-left" : "inner-right" : (P.value = "", Ee(o.app, n));
|
|
328
325
|
}
|
|
329
326
|
function Ze() {
|
|
330
|
-
return !!
|
|
327
|
+
return !!T.get("accessToken");
|
|
331
328
|
}
|
|
332
|
-
function
|
|
333
|
-
|
|
329
|
+
function Pe() {
|
|
330
|
+
return !!T.get("activeOrg");
|
|
331
|
+
}
|
|
332
|
+
function Kt(e, t, a, o) {
|
|
333
|
+
const l = Ze(), r = Pe(), u = G(e.path);
|
|
334
334
|
if (!u) {
|
|
335
335
|
console.assert(!1), a();
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
338
|
if (u.requiredState === "auth")
|
|
339
339
|
if (l)
|
|
340
|
-
if (
|
|
341
|
-
const
|
|
342
|
-
|
|
340
|
+
if (r) {
|
|
341
|
+
const n = "/main";
|
|
342
|
+
L(n, t.path, o), a({ path: n });
|
|
343
343
|
} else
|
|
344
|
-
|
|
344
|
+
L(e.path, t.path, o), a();
|
|
345
345
|
else {
|
|
346
|
-
const
|
|
347
|
-
|
|
346
|
+
const n = "/passport/login";
|
|
347
|
+
L(n, t.path, o), a({ path: n });
|
|
348
348
|
}
|
|
349
349
|
else if (u.requiredState === "org")
|
|
350
350
|
if (l)
|
|
351
|
-
if (
|
|
352
|
-
|
|
351
|
+
if (r)
|
|
352
|
+
L(e.path, t.path, o), a();
|
|
353
353
|
else {
|
|
354
|
-
const
|
|
355
|
-
|
|
354
|
+
const n = "/org/joinOrCreate";
|
|
355
|
+
L(n, t.path, o), a({ path: n });
|
|
356
356
|
}
|
|
357
357
|
else {
|
|
358
|
-
const
|
|
359
|
-
|
|
358
|
+
const n = "/passport/login";
|
|
359
|
+
L(n, t.path, o), a({ path: n });
|
|
360
360
|
}
|
|
361
361
|
else if (l)
|
|
362
|
-
if (
|
|
363
|
-
const
|
|
364
|
-
|
|
362
|
+
if (r) {
|
|
363
|
+
const n = "/main";
|
|
364
|
+
L(n, t.path, o), a({ path: n });
|
|
365
365
|
} else {
|
|
366
|
-
const
|
|
367
|
-
|
|
366
|
+
const n = "/org/joinOrCreate";
|
|
367
|
+
L(n, t.path, o), a({ path: n });
|
|
368
368
|
}
|
|
369
369
|
else
|
|
370
|
-
|
|
370
|
+
L(e.path, t.path, o), a();
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function et(e) {
|
|
373
373
|
return e.value.length <= 0;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Nt(e) {
|
|
376
376
|
if (e.value.length > 0)
|
|
377
377
|
return e.value[e.value.length - 1];
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function ye(e, t) {
|
|
380
380
|
return !!e.value.find((a) => a === t);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function tt(e, t) {
|
|
383
383
|
const a = e.value.findIndex((o) => o === t);
|
|
384
384
|
a >= 0 && e.value.splice(a, 1), e.value.push(t);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function at(e, t) {
|
|
387
387
|
const a = e.value.findIndex((o) => o === t);
|
|
388
388
|
a >= 0 && e.value.splice(a, 1);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ot(e) {
|
|
391
391
|
console.assert(e.value.length > 0), e.value.pop();
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function Wt(e) {
|
|
394
394
|
e.value = [];
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
const u =
|
|
396
|
+
function Xt(e, t, a, o, l, r) {
|
|
397
|
+
const u = qe(), n = de(), _ = Le(), s = p(!1);
|
|
398
398
|
ne(() => {
|
|
399
399
|
let f = !1;
|
|
400
400
|
typeof e.value == "boolean" ? f = e.value : f = _.value, s.value = f;
|
|
401
|
-
}),
|
|
402
|
-
const g =
|
|
401
|
+
}), We(s), Xe(t), ze(a), Fe(o), Ge(l), Je(r);
|
|
402
|
+
const g = _e();
|
|
403
403
|
ne(() => {
|
|
404
404
|
g.change(s.value ? "dark" : "light");
|
|
405
405
|
});
|
|
406
|
-
const
|
|
407
|
-
if (!
|
|
408
|
-
|
|
406
|
+
const O = () => {
|
|
407
|
+
if (!et(r)) {
|
|
408
|
+
ye(r, "waitDlg") || ot(r);
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
411
|
const f = G(u.path);
|
|
@@ -418,14 +418,14 @@ function Wt(e, t, a, o, l, n) {
|
|
|
418
418
|
},
|
|
419
419
|
() => {
|
|
420
420
|
}
|
|
421
|
-
) :
|
|
421
|
+
) : n.back();
|
|
422
422
|
}, k = (f) => {
|
|
423
423
|
if (f.key === "Escape") {
|
|
424
|
-
|
|
424
|
+
O();
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
427
|
}, x = () => {
|
|
428
|
-
|
|
428
|
+
O();
|
|
429
429
|
};
|
|
430
430
|
W(() => {
|
|
431
431
|
window.addEventListener("keydown", k), c.on("backbutton", x);
|
|
@@ -434,7 +434,7 @@ function Wt(e, t, a, o, l, n) {
|
|
|
434
434
|
});
|
|
435
435
|
const i = (f) => {
|
|
436
436
|
e.value = f;
|
|
437
|
-
},
|
|
437
|
+
}, V = (f) => {
|
|
438
438
|
t.value = f;
|
|
439
439
|
}, h = (f) => {
|
|
440
440
|
const R = f;
|
|
@@ -442,30 +442,34 @@ function Wt(e, t, a, o, l, n) {
|
|
|
442
442
|
}, d = (f) => {
|
|
443
443
|
l.value = f;
|
|
444
444
|
};
|
|
445
|
-
|
|
446
|
-
c.on("updateDark", i), c.on("updateLocale",
|
|
445
|
+
De(() => {
|
|
446
|
+
c.on("updateDark", i), c.on("updateLocale", V), c.on("updatePermission", h), c.on("updateLastAppPath", d), c.emit("syncGlobalState");
|
|
447
447
|
}), N(() => {
|
|
448
|
-
c.off("updateDark", i), c.off("updateLocale",
|
|
448
|
+
c.off("updateDark", i), c.off("updateLocale", V), c.off("updatePermission", h), c.off("updateLastAppPath", d);
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function zt() {
|
|
452
452
|
const { locale: e, t } = z();
|
|
453
453
|
return {
|
|
454
|
-
nameOfVerbObject: (
|
|
455
|
-
|
|
456
|
-
const
|
|
457
|
-
for (const s of
|
|
458
|
-
|
|
459
|
-
let _ =
|
|
454
|
+
nameOfVerbObject: (r, u) => e.value === "en" ? `${t(r)} ${t(u)}` : `${t(r)}${t(u)}`,
|
|
455
|
+
nameOfObjects: (r, u) => {
|
|
456
|
+
const n = [];
|
|
457
|
+
for (const s of r)
|
|
458
|
+
n.push(t(s));
|
|
459
|
+
let _ = n.join(" / ");
|
|
460
460
|
return u && (_ += ` <${u}>`), _;
|
|
461
461
|
},
|
|
462
|
-
|
|
462
|
+
nameOfAsk: (r, u, n) => e.value === "en" ? t("dlg.common.ask", {
|
|
463
|
+
verb: re(t(r)),
|
|
464
|
+
object: re(t(u)),
|
|
465
|
+
name: n
|
|
466
|
+
}) : t("dlg.common.ask", { verb: t(r), object: t(u), name: n })
|
|
463
467
|
};
|
|
464
468
|
}
|
|
465
|
-
function
|
|
466
|
-
const e =
|
|
469
|
+
function Ht() {
|
|
470
|
+
const e = He();
|
|
467
471
|
function t(a, o) {
|
|
468
|
-
return
|
|
472
|
+
return Ne(
|
|
469
473
|
e.value,
|
|
470
474
|
a,
|
|
471
475
|
o ?? ""
|
|
@@ -473,8 +477,8 @@ function zt() {
|
|
|
473
477
|
}
|
|
474
478
|
return { verifyPermission: t };
|
|
475
479
|
}
|
|
476
|
-
function
|
|
477
|
-
const e = j(() => !!window.cordova), t =
|
|
480
|
+
function Ft() {
|
|
481
|
+
const e = j(() => !!window.cordova), t = Oe(), a = j(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px"), o = j(() => t.xs.value);
|
|
478
482
|
function l() {
|
|
479
483
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
480
484
|
navigator.userAgent
|
|
@@ -483,15 +487,15 @@ function Ht() {
|
|
|
483
487
|
return { sysBarAvail: e, compactWidth: a, isCurvedScreen: o, isMobile: l };
|
|
484
488
|
}
|
|
485
489
|
function Q(e, t) {
|
|
486
|
-
const a =
|
|
490
|
+
const a = Qe(), o = j({
|
|
487
491
|
get() {
|
|
488
|
-
return
|
|
492
|
+
return ye(a, e);
|
|
489
493
|
},
|
|
490
|
-
set(
|
|
491
|
-
|
|
494
|
+
set(r) {
|
|
495
|
+
r ? tt(a, e) : at(a, e);
|
|
492
496
|
}
|
|
493
|
-
}), l = (
|
|
494
|
-
t?.(
|
|
497
|
+
}), l = (r) => {
|
|
498
|
+
t?.(r), o.value = !0;
|
|
495
499
|
};
|
|
496
500
|
return W(() => {
|
|
497
501
|
c.on(e, l);
|
|
@@ -499,35 +503,35 @@ function Q(e, t) {
|
|
|
499
503
|
c.off(e, l);
|
|
500
504
|
}), { open: o };
|
|
501
505
|
}
|
|
502
|
-
const
|
|
506
|
+
const lt = /* @__PURE__ */ $({
|
|
503
507
|
__name: "index",
|
|
504
508
|
setup(e) {
|
|
505
|
-
const { t } = z(), a = p(""), o = p(""), l = p(""),
|
|
509
|
+
const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""), u = p(""), n = p(""), _ = p("");
|
|
506
510
|
let s = 0, g = !1;
|
|
507
|
-
const
|
|
508
|
-
a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text,
|
|
509
|
-
}, { open: k } = Q("confirmDlg",
|
|
511
|
+
const O = (i) => {
|
|
512
|
+
a.value = i.title, o.value = i.subtitle ?? "", l.value = i.text, r.value = i.cancel?.color ?? "primary", u.value = i.cancel?.text ?? t("dlg.common.cancel"), n.value = i.confirm?.color ?? "primary", _.value = i.confirm?.text ?? t("dlg.common.confirm"), s = i.seq, g = !1, k.value = !0;
|
|
513
|
+
}, { open: k } = Q("confirmDlg", O), x = () => {
|
|
510
514
|
k.value = !1, g || (c.emit("confirmDlgResult" + s, !0), g = !0);
|
|
511
515
|
};
|
|
512
516
|
return J(k, (i) => {
|
|
513
517
|
!i && !g && (c.emit("confirmDlgResult" + s, !1), g = !0);
|
|
514
|
-
}), (i,
|
|
518
|
+
}), (i, V) => {
|
|
515
519
|
const h = m("v-card-text"), d = m("v-btn"), f = m("v-card-actions"), R = m("v-card"), b = m("v-dialog");
|
|
516
|
-
return
|
|
520
|
+
return C(), A(b, {
|
|
517
521
|
modelValue: E(k),
|
|
518
|
-
"onUpdate:modelValue":
|
|
522
|
+
"onUpdate:modelValue": V[1] || (V[1] = (D) => X(k) ? k.value = D : null),
|
|
519
523
|
attach: "",
|
|
520
524
|
"max-width": "600px",
|
|
521
525
|
transition: "dialog-top-transition",
|
|
522
526
|
onKeydown: [
|
|
523
|
-
F(
|
|
524
|
-
|
|
527
|
+
F(M(x, ["stop", "prevent"]), ["enter"]),
|
|
528
|
+
V[2] || (V[2] = F(M((D) => k.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
525
529
|
]
|
|
526
530
|
}, {
|
|
527
531
|
default: v(() => [
|
|
528
532
|
y(R, {
|
|
529
|
-
|
|
530
|
-
|
|
533
|
+
subtitle: o.value,
|
|
534
|
+
title: a.value
|
|
531
535
|
}, {
|
|
532
536
|
default: v(() => [
|
|
533
537
|
y(h, null, {
|
|
@@ -539,9 +543,9 @@ const ot = /* @__PURE__ */ A({
|
|
|
539
543
|
y(f, { class: "d-flex justify-end" }, {
|
|
540
544
|
default: v(() => [
|
|
541
545
|
y(d, {
|
|
542
|
-
color:
|
|
546
|
+
color: r.value,
|
|
543
547
|
variant: "text",
|
|
544
|
-
onClick:
|
|
548
|
+
onClick: V[0] || (V[0] = (D) => k.value = !1)
|
|
545
549
|
}, {
|
|
546
550
|
default: v(() => [
|
|
547
551
|
B(S(u.value), 1)
|
|
@@ -549,7 +553,7 @@ const ot = /* @__PURE__ */ A({
|
|
|
549
553
|
_: 1
|
|
550
554
|
}, 8, ["color"]),
|
|
551
555
|
y(d, {
|
|
552
|
-
color:
|
|
556
|
+
color: n.value,
|
|
553
557
|
variant: "text",
|
|
554
558
|
onClick: x
|
|
555
559
|
}, {
|
|
@@ -563,13 +567,13 @@ const ot = /* @__PURE__ */ A({
|
|
|
563
567
|
})
|
|
564
568
|
]),
|
|
565
569
|
_: 1
|
|
566
|
-
}, 8, ["
|
|
570
|
+
}, 8, ["subtitle", "title"])
|
|
567
571
|
]),
|
|
568
572
|
_: 1
|
|
569
573
|
}, 8, ["modelValue", "onKeydown"]);
|
|
570
574
|
};
|
|
571
575
|
}
|
|
572
|
-
}),
|
|
576
|
+
}), nt = /* @__PURE__ */ $({
|
|
573
577
|
__name: "index",
|
|
574
578
|
props: {
|
|
575
579
|
open: { type: Boolean, default: !0 },
|
|
@@ -581,13 +585,13 @@ const ot = /* @__PURE__ */ A({
|
|
|
581
585
|
zIndex: e.zIndex
|
|
582
586
|
}));
|
|
583
587
|
let o = 0;
|
|
584
|
-
return (l,
|
|
588
|
+
return (l, r) => (C(), A(Ve, { name: "fade" }, {
|
|
585
589
|
default: v(() => [
|
|
586
|
-
e.open ? (
|
|
590
|
+
e.open ? (C(), ee("div", {
|
|
587
591
|
key: X(o) ? ++o.value : ++o,
|
|
588
592
|
class: "x-cont",
|
|
589
|
-
style:
|
|
590
|
-
}, [...
|
|
593
|
+
style: se(a.value)
|
|
594
|
+
}, [...r[0] || (r[0] = [
|
|
591
595
|
w("div", { class: "lds-spinner" }, [
|
|
592
596
|
w("div"),
|
|
593
597
|
w("div"),
|
|
@@ -612,7 +616,7 @@ const ot = /* @__PURE__ */ A({
|
|
|
612
616
|
for (const [o, l] of t)
|
|
613
617
|
a[o] = l;
|
|
614
618
|
return a;
|
|
615
|
-
},
|
|
619
|
+
}, rt = /* @__PURE__ */ le(nt, [["__scopeId", "data-v-83c3cd1d"]]), ut = /* @__PURE__ */ $({
|
|
616
620
|
__name: "item",
|
|
617
621
|
props: {
|
|
618
622
|
id: {},
|
|
@@ -638,40 +642,40 @@ const ot = /* @__PURE__ */ A({
|
|
|
638
642
|
default:
|
|
639
643
|
return "";
|
|
640
644
|
}
|
|
641
|
-
}), l = p(!0),
|
|
645
|
+
}), l = p(!0), r = t;
|
|
642
646
|
return W(() => {
|
|
643
647
|
setTimeout(() => {
|
|
644
|
-
|
|
648
|
+
r("timeout", e.id);
|
|
645
649
|
}, e.timeout);
|
|
646
650
|
}), J(l, (u) => {
|
|
647
|
-
u ||
|
|
648
|
-
}), (u,
|
|
651
|
+
u || r("timeout", e.id);
|
|
652
|
+
}), (u, n) => {
|
|
649
653
|
const _ = m("v-icon"), s = m("v-sheet");
|
|
650
|
-
return
|
|
654
|
+
return C(), A(s, {
|
|
651
655
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
652
656
|
color: e.type,
|
|
653
657
|
elevation: 1
|
|
654
658
|
}, {
|
|
655
659
|
default: v(() => [
|
|
656
|
-
o.value ? (
|
|
660
|
+
o.value ? (C(), A(_, {
|
|
657
661
|
key: 0,
|
|
658
662
|
class: "mx-1",
|
|
659
663
|
icon: o.value
|
|
660
664
|
}, null, 8, ["icon"])) : te("", !0),
|
|
661
665
|
w("div", {
|
|
662
|
-
style:
|
|
666
|
+
style: se(a.value)
|
|
663
667
|
}, S(e.text), 5),
|
|
664
668
|
y(_, {
|
|
665
669
|
class: "mx-1",
|
|
666
670
|
icon: "mdi-close",
|
|
667
|
-
onClick:
|
|
671
|
+
onClick: n[0] || (n[0] = (g) => r("timeout", e.id))
|
|
668
672
|
})
|
|
669
673
|
]),
|
|
670
674
|
_: 1
|
|
671
675
|
}, 8, ["color"]);
|
|
672
676
|
};
|
|
673
677
|
}
|
|
674
|
-
}),
|
|
678
|
+
}), ct = /* @__PURE__ */ le(ut, [["__scopeId", "data-v-f1f60167"]]), st = /* @__PURE__ */ $({
|
|
675
679
|
__name: "index",
|
|
676
680
|
setup(e) {
|
|
677
681
|
const t = p([]);
|
|
@@ -680,26 +684,26 @@ const ot = /* @__PURE__ */ A({
|
|
|
680
684
|
}), N(() => {
|
|
681
685
|
c.off("message", a);
|
|
682
686
|
});
|
|
683
|
-
const a = (
|
|
684
|
-
const { type: _, text: s, timeout: g } =
|
|
685
|
-
|
|
686
|
-
}, o = (
|
|
687
|
-
u(
|
|
687
|
+
const a = (n) => {
|
|
688
|
+
const { type: _, text: s, timeout: g } = n;
|
|
689
|
+
r(_, s, g);
|
|
690
|
+
}, o = (n) => {
|
|
691
|
+
u(n);
|
|
688
692
|
};
|
|
689
693
|
let l = 0;
|
|
690
|
-
const
|
|
694
|
+
const r = (n, _, s) => {
|
|
691
695
|
const g = l++;
|
|
692
|
-
t.value.push({ id: g, type:
|
|
693
|
-
}, u = (
|
|
694
|
-
const _ = t.value.findIndex((s) => s.id ===
|
|
696
|
+
t.value.push({ id: g, type: n, text: _, timeout: s });
|
|
697
|
+
}, u = (n) => {
|
|
698
|
+
const _ = t.value.findIndex((s) => s.id === n);
|
|
695
699
|
_ >= 0 && t.value.splice(_, 1);
|
|
696
700
|
};
|
|
697
|
-
return (
|
|
701
|
+
return (n, _) => (C(), ee("div", {
|
|
698
702
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
699
|
-
onClick: _[0] || (_[0] =
|
|
703
|
+
onClick: _[0] || (_[0] = M(() => {
|
|
700
704
|
}, ["stop"]))
|
|
701
705
|
}, [
|
|
702
|
-
(
|
|
706
|
+
(C(!0), ee(je, null, Ce(t.value, (s) => (C(), A(ct, {
|
|
703
707
|
id: s.id,
|
|
704
708
|
key: s.id,
|
|
705
709
|
text: s.text,
|
|
@@ -709,27 +713,27 @@ const ot = /* @__PURE__ */ A({
|
|
|
709
713
|
}, null, 8, ["id", "text", "timeout", "type"]))), 128))
|
|
710
714
|
]));
|
|
711
715
|
}
|
|
712
|
-
}),
|
|
716
|
+
}), pt = /* @__PURE__ */ le(st, [["__scopeId", "data-v-b482df18"]]), _t = /* @__PURE__ */ $({
|
|
713
717
|
__name: "index",
|
|
714
718
|
setup(e) {
|
|
715
|
-
const { t } = z(), a = p(""), o = p(""), l = p(0),
|
|
719
|
+
const { t } = z(), a = p(""), o = p(""), l = p(0), r = p(), u = p(-1 / 0), n = p(1 / 0), _ = p(1);
|
|
716
720
|
let s = 0, g = !1;
|
|
717
|
-
const
|
|
718
|
-
a.value = h.title, o.value = h.subtitle ?? "", l.value = h.value,
|
|
719
|
-
}, { open: x } = Q("numberDlg", k), i = p(!1),
|
|
721
|
+
const O = pe("target"), k = async (h) => {
|
|
722
|
+
a.value = h.title, o.value = h.subtitle ?? "", l.value = h.value, r.value = h.precision, u.value = h.min, n.value = h.max, _.value = h.step, s = h.seq, g = !1, x.value = !0, await H(() => !!O.value), O.value.focus();
|
|
723
|
+
}, { open: x } = Q("numberDlg", k), i = p(!1), V = () => {
|
|
720
724
|
x.value = !1, g || (c.emit(`numberDlgResult${s}`, l.value), g = !0);
|
|
721
725
|
};
|
|
722
726
|
return J(x, (h) => {
|
|
723
727
|
!h && !g && (c.emit(`numberDlgResult${s}`, void 0), g = !0);
|
|
724
728
|
}), (h, d) => {
|
|
725
729
|
const f = m("v-number-input"), R = m("v-btn"), b = m("v-card-actions"), D = m("v-form"), Y = m("v-card"), Z = m("v-dialog");
|
|
726
|
-
return
|
|
730
|
+
return C(), A(Z, {
|
|
727
731
|
modelValue: E(x),
|
|
728
732
|
"onUpdate:modelValue": d[3] || (d[3] = (q) => X(x) ? x.value = q : null),
|
|
729
733
|
attach: "",
|
|
730
734
|
"max-width": "600px",
|
|
731
735
|
transition: "dialog-top-transition",
|
|
732
|
-
onKeydown: d[4] || (d[4] = F(
|
|
736
|
+
onKeydown: d[4] || (d[4] = F(M((q) => x.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
733
737
|
}, {
|
|
734
738
|
default: v(() => [
|
|
735
739
|
y(Y, { title: a.value }, {
|
|
@@ -738,18 +742,18 @@ const ot = /* @__PURE__ */ A({
|
|
|
738
742
|
modelValue: i.value,
|
|
739
743
|
"onUpdate:modelValue": d[2] || (d[2] = (q) => i.value = q),
|
|
740
744
|
class: "mx-3",
|
|
741
|
-
onSubmit:
|
|
745
|
+
onSubmit: M(V, ["prevent"])
|
|
742
746
|
}, {
|
|
743
747
|
default: v(() => [
|
|
744
748
|
y(f, {
|
|
745
749
|
ref_key: "target",
|
|
746
|
-
ref:
|
|
750
|
+
ref: O,
|
|
747
751
|
modelValue: l.value,
|
|
748
752
|
"onUpdate:modelValue": d[0] || (d[0] = (q) => l.value = q),
|
|
749
753
|
"control-variant": "stacked",
|
|
750
|
-
max:
|
|
754
|
+
max: n.value,
|
|
751
755
|
min: u.value,
|
|
752
|
-
precision:
|
|
756
|
+
precision: r.value,
|
|
753
757
|
step: _.value
|
|
754
758
|
}, null, 8, ["modelValue", "max", "min", "precision", "step"]),
|
|
755
759
|
y(b, { class: "d-flex justify-end" }, {
|
|
@@ -789,59 +793,59 @@ const ot = /* @__PURE__ */ A({
|
|
|
789
793
|
}, 8, ["modelValue"]);
|
|
790
794
|
};
|
|
791
795
|
}
|
|
792
|
-
}),
|
|
796
|
+
}), dt = /* @__PURE__ */ $({
|
|
793
797
|
__name: "index",
|
|
794
798
|
setup(e) {
|
|
795
|
-
const { t } = z(), a = p(""), o = p(""), l = p(""),
|
|
799
|
+
const { t } = z(), a = p(""), o = p(""), l = p(""), r = p(""), u = p(""), n = p(), _ = p(""), s = p(""), g = p(""), O = p(""), k = p("");
|
|
796
800
|
let x = 0, i = !1;
|
|
797
|
-
const
|
|
798
|
-
a.value = b.title, o.value = b.subtitle ?? "", l.value = b.text,
|
|
801
|
+
const V = pe("target"), h = async (b) => {
|
|
802
|
+
a.value = b.title, o.value = b.subtitle ?? "", l.value = b.text, r.value = b.label, u.value = b.placeholder, n.value = b.rules, _.value = b.value, s.value = b.cancel?.color ?? "primary", g.value = b.cancel?.text ?? t("dlg.common.cancel"), O.value = b.confirm?.color ?? "primary", k.value = b.confirm?.text ?? t("dlg.common.confirm"), x = b.seq, i = !1, d.value = !0, await H(() => !!V.value), V.value.focus();
|
|
799
803
|
}, { open: d } = Q("promptDlg", h), f = p(!1), R = () => {
|
|
800
804
|
d.value = !1, i || (c.emit("promptDlgResult" + x, _.value ?? ""), i = !0);
|
|
801
805
|
};
|
|
802
806
|
return J(d, (b) => {
|
|
803
807
|
!b && !i && (c.emit("promptDlgResult" + x, void 0), i = !0);
|
|
804
808
|
}), (b, D) => {
|
|
805
|
-
const Y = m("v-card-text"), Z = m("v-text-field"), q = m("v-btn"),
|
|
806
|
-
return
|
|
809
|
+
const Y = m("v-card-text"), Z = m("v-text-field"), q = m("v-btn"), xe = m("v-card-actions"), he = m("v-form"), we = m("v-card"), ke = m("v-dialog");
|
|
810
|
+
return C(), A(ke, {
|
|
807
811
|
modelValue: E(d),
|
|
808
|
-
"onUpdate:modelValue": D[3] || (D[3] = (
|
|
812
|
+
"onUpdate:modelValue": D[3] || (D[3] = (I) => X(d) ? d.value = I : null),
|
|
809
813
|
attach: "",
|
|
810
814
|
"max-width": "600px",
|
|
811
815
|
transition: "dialog-top-transition",
|
|
812
|
-
onKeydown: D[4] || (D[4] = F(
|
|
816
|
+
onKeydown: D[4] || (D[4] = F(M((I) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
813
817
|
}, {
|
|
814
818
|
default: v(() => [
|
|
815
|
-
y(
|
|
819
|
+
y(we, { title: a.value }, {
|
|
816
820
|
default: v(() => [
|
|
817
|
-
l.value ? (
|
|
821
|
+
l.value ? (C(), A(Y, { key: 0 }, {
|
|
818
822
|
default: v(() => [
|
|
819
823
|
B(S(l.value), 1)
|
|
820
824
|
]),
|
|
821
825
|
_: 1
|
|
822
826
|
})) : te("", !0),
|
|
823
|
-
y(
|
|
827
|
+
y(he, {
|
|
824
828
|
modelValue: f.value,
|
|
825
|
-
"onUpdate:modelValue": D[2] || (D[2] = (
|
|
829
|
+
"onUpdate:modelValue": D[2] || (D[2] = (I) => f.value = I),
|
|
826
830
|
class: "mx-3",
|
|
827
|
-
onSubmit:
|
|
831
|
+
onSubmit: M(R, ["prevent"])
|
|
828
832
|
}, {
|
|
829
833
|
default: v(() => [
|
|
830
834
|
y(Z, {
|
|
831
835
|
ref_key: "target",
|
|
832
|
-
ref:
|
|
836
|
+
ref: V,
|
|
833
837
|
modelValue: _.value,
|
|
834
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
835
|
-
label:
|
|
838
|
+
"onUpdate:modelValue": D[0] || (D[0] = (I) => _.value = I),
|
|
839
|
+
label: r.value,
|
|
836
840
|
placeholder: u.value,
|
|
837
|
-
rules:
|
|
841
|
+
rules: n.value
|
|
838
842
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
839
|
-
y(
|
|
843
|
+
y(xe, { class: "d-flex justify-end" }, {
|
|
840
844
|
default: v(() => [
|
|
841
845
|
y(q, {
|
|
842
846
|
color: s.value,
|
|
843
847
|
variant: "text",
|
|
844
|
-
onClick: D[1] || (D[1] = (
|
|
848
|
+
onClick: D[1] || (D[1] = (I) => d.value = !1)
|
|
845
849
|
}, {
|
|
846
850
|
default: v(() => [
|
|
847
851
|
B(S(g.value), 1)
|
|
@@ -849,7 +853,7 @@ const ot = /* @__PURE__ */ A({
|
|
|
849
853
|
_: 1
|
|
850
854
|
}, 8, ["color"]),
|
|
851
855
|
y(q, {
|
|
852
|
-
color:
|
|
856
|
+
color: O.value,
|
|
853
857
|
disabled: !f.value,
|
|
854
858
|
type: "submit",
|
|
855
859
|
variant: "text"
|
|
@@ -873,39 +877,39 @@ const ot = /* @__PURE__ */ A({
|
|
|
873
877
|
}, 8, ["modelValue"]);
|
|
874
878
|
};
|
|
875
879
|
}
|
|
876
|
-
}),
|
|
880
|
+
}), it = { class: "ma-auto" }, ft = { class: "w-100 h-100 d-flex align-center justify-center" }, gt = { class: "text-body-1" }, vt = /* @__PURE__ */ $({
|
|
877
881
|
__name: "index",
|
|
878
882
|
setup(e) {
|
|
879
883
|
const { t } = z(), a = p(""), o = (u) => {
|
|
880
|
-
const
|
|
881
|
-
a.value =
|
|
884
|
+
const n = u;
|
|
885
|
+
a.value = n.text ?? t("dlg.common.responding"), r.value = !0;
|
|
882
886
|
}, l = () => {
|
|
883
|
-
|
|
884
|
-
}, { open:
|
|
887
|
+
r.value = !1;
|
|
888
|
+
}, { open: r } = Q("waitDlg", o);
|
|
885
889
|
return W(() => {
|
|
886
890
|
c.on("closeWaitDlg", l);
|
|
887
891
|
}), N(() => {
|
|
888
892
|
c.off("closeWaitDlg", l);
|
|
889
|
-
}), (u,
|
|
893
|
+
}), (u, n) => {
|
|
890
894
|
const _ = m("v-card"), s = m("v-dialog");
|
|
891
|
-
return
|
|
892
|
-
modelValue: E(
|
|
893
|
-
"onUpdate:modelValue":
|
|
895
|
+
return C(), A(s, {
|
|
896
|
+
modelValue: E(r),
|
|
897
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => X(r) ? r.value = g : null),
|
|
894
898
|
attach: "",
|
|
895
899
|
fullscreen: "",
|
|
896
900
|
"no-click-animation": "",
|
|
897
901
|
persistent: ""
|
|
898
902
|
}, {
|
|
899
903
|
default: v(() => [
|
|
900
|
-
w("div",
|
|
904
|
+
w("div", it, [
|
|
901
905
|
y(_, {
|
|
902
906
|
height: "80px",
|
|
903
907
|
loading: "",
|
|
904
908
|
width: "300px"
|
|
905
909
|
}, {
|
|
906
910
|
default: v(() => [
|
|
907
|
-
w("div",
|
|
908
|
-
w("span",
|
|
911
|
+
w("div", ft, [
|
|
912
|
+
w("span", gt, S(a.value), 1)
|
|
909
913
|
])
|
|
910
914
|
]),
|
|
911
915
|
_: 1
|
|
@@ -916,65 +920,65 @@ const ot = /* @__PURE__ */ A({
|
|
|
916
920
|
}, 8, ["modelValue"]);
|
|
917
921
|
};
|
|
918
922
|
}
|
|
919
|
-
}),
|
|
920
|
-
e.component("XConfirmDlg",
|
|
921
|
-
},
|
|
923
|
+
}), mt = (e) => {
|
|
924
|
+
e.component("XConfirmDlg", lt), e.component("XLoading", rt), e.component("XMessage", pt), e.component("XNumberDlg", _t), e.component("XPromptDlg", dt), e.component("XWaitDlg", vt);
|
|
925
|
+
}, bt = (e, t, a) => {
|
|
922
926
|
const o = e[t];
|
|
923
|
-
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((l,
|
|
924
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
927
|
+
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((l, r) => {
|
|
928
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : ""))));
|
|
925
929
|
});
|
|
926
930
|
};
|
|
927
|
-
async function
|
|
928
|
-
return (await
|
|
931
|
+
async function Gt(e) {
|
|
932
|
+
return (await bt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.opwoswgc.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.e8snb93i.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
929
933
|
}
|
|
930
|
-
const
|
|
934
|
+
const Jt = { install: mt };
|
|
931
935
|
export {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
936
|
+
Ke as Permission,
|
|
937
|
+
tt as addView,
|
|
938
|
+
Ee as appAppear,
|
|
939
|
+
Wt as clearViews,
|
|
940
|
+
Lt as closeWaitDlg,
|
|
941
|
+
Vt as createAxios,
|
|
942
|
+
Jt as default,
|
|
943
|
+
at as delView,
|
|
940
944
|
c as eventBus,
|
|
941
|
-
|
|
942
|
-
|
|
945
|
+
jt as globalObjects,
|
|
946
|
+
ye as hasView,
|
|
943
947
|
Mt as injectDark,
|
|
944
|
-
|
|
948
|
+
Ut as injectLastAppPath,
|
|
945
949
|
$t as injectLocale,
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
950
|
+
Et as injectPermissionChecksum,
|
|
951
|
+
He as injectPermissionObjects,
|
|
952
|
+
Qe as injectViews,
|
|
953
|
+
et as isEmpty,
|
|
954
|
+
ce as isExist,
|
|
955
|
+
Nt as lastView,
|
|
956
|
+
Gt as loadLocaleMessageEssential,
|
|
953
957
|
G as matchRouteMeta,
|
|
954
958
|
Tt as messageError,
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
959
|
+
At as messageInfo,
|
|
960
|
+
Bt as messageSuccess,
|
|
961
|
+
It as messageWarning,
|
|
962
|
+
Kt as onBeforeEach,
|
|
963
|
+
Ot as openConfirmDlg,
|
|
964
|
+
qt as openNumberDlg,
|
|
965
|
+
St as openPromptDlg,
|
|
966
|
+
Rt as openWaitDlg,
|
|
967
|
+
ot as popView,
|
|
968
|
+
We as provideDark,
|
|
969
|
+
Ge as provideLastAppPath,
|
|
970
|
+
Xe as provideLocale,
|
|
971
|
+
Fe as providePermissionChecksum,
|
|
972
|
+
ze as providePermissionObjects,
|
|
973
|
+
Je as provideViews,
|
|
970
974
|
P as routeTransName,
|
|
971
975
|
Te as useColor,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
+
Xt as useMicroApp,
|
|
977
|
+
zt as useNameHelper,
|
|
978
|
+
Ht as usePermission,
|
|
979
|
+
Ft as useSystem,
|
|
976
980
|
Q as useViewStack,
|
|
977
|
-
|
|
978
|
-
|
|
981
|
+
Ne as verifyPermission,
|
|
982
|
+
Ct as waitMs,
|
|
979
983
|
H as waitUtil
|
|
980
984
|
};
|