x-essential-lib 0.7.19 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.id="x-essential-lib",e.appendChild(document.createTextNode('.x-cont[data-v-4fee730c]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-4fee730c]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-4fee730c]{transform-origin:20px 20px;animation:lds-spinner-4fee730c 1.2s linear infinite}.lds-spinner div[data-v-4fee730c]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-4fee730c]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-4fee730c]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-4fee730c]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-4fee730c]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-4fee730c]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-4fee730c]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-4fee730c]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-4fee730c]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-4fee730c]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-4fee730c]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-4fee730c]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-4fee730c]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-4fee730c{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-8fd5d800]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { computed as y, provide as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import
|
|
7
|
-
function
|
|
8
|
-
const e =
|
|
2
|
+
import { computed as y, 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 P, watchEffect as Ve, toValue as O, onMounted as E, unref as z, onBeforeUnmount as $, onBeforeMount as Ae, defineComponent as B, resolveComponent as w, createBlock as V, openBlock as L, withKeys as Z, withModifiers as H, isRef as ae, withCtx as x, createVNode as C, createTextVNode as q, toDisplayString as R, createElementBlock as ee, createCommentVNode as oe, normalizeStyle as de, createElementVNode as h, Fragment as Oe, renderList as qe, useTemplateRef as Ie } from "vue";
|
|
3
|
+
import { useI18n as ne } from "vue-i18n";
|
|
4
|
+
import { useTheme as fe, useDisplay as Te } from "vuetify";
|
|
5
|
+
import { useRouter as ge, useRoute as Ee } from "vue-router";
|
|
6
|
+
import Be from "axios";
|
|
7
|
+
function We() {
|
|
8
|
+
const e = fe(), t = y(() => e.global.current.value.colors.primary), a = y(() => e.global.current.value.colors.secondary), o = y(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), n = y(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = y(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), c = y(() => e.current.value.dark ? "#303030" : "#f6f6f6"), r = y(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
9
9
|
return {
|
|
10
10
|
primaryColor: t,
|
|
11
11
|
secondaryColor: a,
|
|
@@ -17,7 +17,7 @@ function Ve() {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
/*! js-cookie v3.0.5 | MIT */
|
|
20
|
-
function
|
|
20
|
+
function N(e) {
|
|
21
21
|
for (var t = 1; t < arguments.length; t++) {
|
|
22
22
|
var a = arguments[t];
|
|
23
23
|
for (var o in a)
|
|
@@ -25,7 +25,7 @@ function X(e) {
|
|
|
25
25
|
}
|
|
26
26
|
return e;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var Ue = {
|
|
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,10 +36,10 @@ var Ae = {
|
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
function
|
|
39
|
+
function te(e, t) {
|
|
40
40
|
function a(n, l, c) {
|
|
41
41
|
if (!(typeof document > "u")) {
|
|
42
|
-
c =
|
|
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);
|
|
43
43
|
var r = "";
|
|
44
44
|
for (var u in c)
|
|
45
45
|
c[u] && (r += "; " + u, c[u] !== !0 && (r += "=" + c[u].split(";")[0]));
|
|
@@ -49,10 +49,10 @@ function J(e, t) {
|
|
|
49
49
|
function o(n) {
|
|
50
50
|
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
51
51
|
for (var l = document.cookie ? document.cookie.split("; ") : [], c = {}, r = 0; r < l.length; r++) {
|
|
52
|
-
var u = l[r].split("="),
|
|
52
|
+
var u = l[r].split("="), s = u.slice(1).join("=");
|
|
53
53
|
try {
|
|
54
|
-
var
|
|
55
|
-
if (c[
|
|
54
|
+
var d = decodeURIComponent(u[0]);
|
|
55
|
+
if (c[d] = e.read(s, d), n === d)
|
|
56
56
|
break;
|
|
57
57
|
} catch {
|
|
58
58
|
}
|
|
@@ -68,16 +68,16 @@ function J(e, t) {
|
|
|
68
68
|
a(
|
|
69
69
|
n,
|
|
70
70
|
"",
|
|
71
|
-
|
|
71
|
+
N({}, l, {
|
|
72
72
|
expires: -1
|
|
73
73
|
})
|
|
74
74
|
);
|
|
75
75
|
},
|
|
76
76
|
withAttributes: function(n) {
|
|
77
|
-
return
|
|
77
|
+
return te(this.converter, N({}, this.attributes, n));
|
|
78
78
|
},
|
|
79
79
|
withConverter: function(n) {
|
|
80
|
-
return
|
|
80
|
+
return te(N({}, this.converter, n), this.attributes);
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
{
|
|
@@ -86,43 +86,43 @@ function J(e, t) {
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
91
|
-
const t =
|
|
89
|
+
var I = te(Ue, { path: "/" });
|
|
90
|
+
function Qt(e) {
|
|
91
|
+
const t = Be.create({
|
|
92
92
|
timeout: 6e3
|
|
93
93
|
});
|
|
94
94
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
95
|
-
(a) =>
|
|
95
|
+
(a) => $e(a),
|
|
96
96
|
(a) => {
|
|
97
|
-
|
|
97
|
+
He(a, e.onError);
|
|
98
98
|
}
|
|
99
99
|
), t.interceptors.response.use(
|
|
100
|
-
(a) =>
|
|
101
|
-
(a) =>
|
|
100
|
+
(a) => Ke(a),
|
|
101
|
+
(a) => ze(a, e.onError)
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
const t =
|
|
104
|
+
function $e(e) {
|
|
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 He(e, t) {
|
|
109
109
|
console.error(e), t("request timeout");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Ke(e) {
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function ze(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 && Fe(), (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
|
|
123
|
-
|
|
122
|
+
function Fe() {
|
|
123
|
+
I.remove("accessToken"), I.remove("refreshToken"), I.remove("activeOrg"), ge().replace({ path: "/passport/login" });
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Xe(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,14 +139,14 @@ function Ue(e) {
|
|
|
139
139
|
} };
|
|
140
140
|
}
|
|
141
141
|
const p = function() {
|
|
142
|
-
return window.eventBus || (window.eventBus =
|
|
142
|
+
return window.eventBus || (window.eventBus = Xe()), window.eventBus;
|
|
143
143
|
}();
|
|
144
|
-
async function
|
|
144
|
+
async function Jt(e) {
|
|
145
145
|
return new Promise((t) => {
|
|
146
146
|
setTimeout(t, e);
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
async function
|
|
149
|
+
async function re(e, t, a) {
|
|
150
150
|
const o = Date.now();
|
|
151
151
|
return new Promise((n) => {
|
|
152
152
|
const l = async () => {
|
|
@@ -155,59 +155,59 @@ async function te(e, t, a) {
|
|
|
155
155
|
l();
|
|
156
156
|
});
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Ne(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");
|
|
162
162
|
}, 50));
|
|
163
163
|
}
|
|
164
|
-
let
|
|
165
|
-
function
|
|
164
|
+
let ue = Date.now();
|
|
165
|
+
function ve() {
|
|
166
166
|
const e = Date.now();
|
|
167
|
-
return e -
|
|
167
|
+
return e - ue > 500 ? (ue = e, !0) : !1;
|
|
168
168
|
}
|
|
169
|
-
let
|
|
170
|
-
function
|
|
171
|
-
return
|
|
169
|
+
let Ze = 0;
|
|
170
|
+
function me() {
|
|
171
|
+
return ++Ze;
|
|
172
172
|
}
|
|
173
|
-
async function
|
|
174
|
-
if (!
|
|
173
|
+
async function Yt(e) {
|
|
174
|
+
if (!ve())
|
|
175
175
|
return;
|
|
176
176
|
let t = !1, a;
|
|
177
177
|
const o = (l) => {
|
|
178
178
|
a = l, t = !0;
|
|
179
|
-
}, n =
|
|
180
|
-
return p.on("confirmDlgResult" + n, o), p.emit("confirmDlg", { ...e, seq: n }), await
|
|
179
|
+
}, n = me();
|
|
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
|
|
183
|
-
if (!
|
|
182
|
+
async function Pt(e) {
|
|
183
|
+
if (!ve())
|
|
184
184
|
return;
|
|
185
185
|
let t = !1, a;
|
|
186
186
|
const o = (l) => {
|
|
187
187
|
a = l, t = !0;
|
|
188
|
-
}, n =
|
|
189
|
-
return p.on("promptDlgResult" + n, o), p.emit("promptDlg", { ...e, seq: n }), await
|
|
188
|
+
}, n = me();
|
|
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 ea(e) {
|
|
192
192
|
p.emit("openWaitDlg", { text: e });
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function ta() {
|
|
195
195
|
p.emit("closeWaitDlg");
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function aa(e, t) {
|
|
198
198
|
p.emit("message", { type: "error", text: e, timeout: t });
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function oa(e, t) {
|
|
201
201
|
p.emit("message", { type: "info", text: e, timeout: t });
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function na(e, t) {
|
|
204
204
|
p.emit("message", { type: "success", text: e, timeout: t });
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function ra(e, t) {
|
|
207
207
|
p.emit("message", { type: "warning", text: e, timeout: t });
|
|
208
208
|
}
|
|
209
|
-
var
|
|
210
|
-
function
|
|
209
|
+
var Ge = /* @__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))(Ge || {});
|
|
210
|
+
function se(e, t) {
|
|
211
211
|
if (!e)
|
|
212
212
|
return !1;
|
|
213
213
|
let a = e;
|
|
@@ -220,48 +220,48 @@ function re(e, t) {
|
|
|
220
220
|
return !1;
|
|
221
221
|
}), Object.keys(a).length <= 0);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Qe(e, t, a) {
|
|
224
224
|
const o = e[t];
|
|
225
|
-
return o ? a ? !(!
|
|
225
|
+
return o ? a ? !(!se(o.includes, a) || se(o.excludes, a)) : !0 : !1;
|
|
226
226
|
}
|
|
227
|
-
const
|
|
228
|
-
function
|
|
229
|
-
|
|
227
|
+
const he = "essentialDark", ye = "essentialLocale", we = "essentialPermissionObjects", xe = "essentialPermissionChecksum", be = "essentialLastAppPath", ke = "essentialViews";
|
|
228
|
+
function Je(e) {
|
|
229
|
+
T(he, e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
return
|
|
231
|
+
function la() {
|
|
232
|
+
return A(he);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
234
|
+
function Ye(e) {
|
|
235
|
+
T(ye, e);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
return
|
|
237
|
+
function ca() {
|
|
238
|
+
return A(ye);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
|
|
240
|
+
function Pe(e) {
|
|
241
|
+
T(we, e);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
return
|
|
243
|
+
function et() {
|
|
244
|
+
return A(we);
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
246
|
+
function tt(e) {
|
|
247
|
+
T(xe, e);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
return
|
|
249
|
+
function ua() {
|
|
250
|
+
return A(xe);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
|
|
252
|
+
function at(e) {
|
|
253
|
+
T(be, e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
return
|
|
255
|
+
function sa() {
|
|
256
|
+
return A(be);
|
|
257
257
|
}
|
|
258
|
-
function
|
|
259
|
-
|
|
258
|
+
function ot(e) {
|
|
259
|
+
T(ke, e);
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
return
|
|
261
|
+
function nt() {
|
|
262
|
+
return A(ke);
|
|
263
263
|
}
|
|
264
|
-
const
|
|
264
|
+
const rt = [
|
|
265
265
|
{
|
|
266
266
|
app: "x-passport-mf",
|
|
267
267
|
path: "/passport/login",
|
|
@@ -369,10 +369,10 @@ const Ye = [
|
|
|
369
369
|
mainActive: 2
|
|
370
370
|
}
|
|
371
371
|
];
|
|
372
|
-
function
|
|
372
|
+
function G(e) {
|
|
373
373
|
let t, a = 0;
|
|
374
374
|
const o = e.split("/").filter((n) => n.trim() !== "");
|
|
375
|
-
return
|
|
375
|
+
return rt.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,10 +380,10 @@ function Z(e) {
|
|
|
380
380
|
c > 0 && c > a && (t = n, a = c);
|
|
381
381
|
}), t;
|
|
382
382
|
}
|
|
383
|
-
const
|
|
384
|
-
function
|
|
383
|
+
const Q = v("");
|
|
384
|
+
function M(e, t, a) {
|
|
385
385
|
t === "/" && (t = a);
|
|
386
|
-
const o =
|
|
386
|
+
const o = G(e), n = G(t);
|
|
387
387
|
if (!o) {
|
|
388
388
|
console.assert(!1);
|
|
389
389
|
return;
|
|
@@ -391,16 +391,16 @@ function S(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 ? Q.value = "" : Q.value = r ? "inner-left" : "inner-right" : (Q.value = "", Ne(o.app, r));
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
return !!
|
|
396
|
+
function lt() {
|
|
397
|
+
return !!I.get("accessToken");
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
return !!
|
|
399
|
+
function ct() {
|
|
400
|
+
return !!I.get("activeOrg");
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
const n =
|
|
402
|
+
function pa(e, t, a, o) {
|
|
403
|
+
const n = lt(), l = ct(), c = G(e.path);
|
|
404
404
|
if (!c) {
|
|
405
405
|
console.assert(!1), a();
|
|
406
406
|
return;
|
|
@@ -409,151 +409,220 @@ function Jt(e, t, a, o) {
|
|
|
409
409
|
if (n)
|
|
410
410
|
if (l) {
|
|
411
411
|
const r = "/main";
|
|
412
|
-
|
|
412
|
+
M(r, t.path, o), a({ path: r });
|
|
413
413
|
} else
|
|
414
|
-
|
|
414
|
+
M(e.path, t.path, o), a();
|
|
415
415
|
else {
|
|
416
416
|
const r = "/passport/login";
|
|
417
|
-
|
|
417
|
+
M(r, t.path, o), a({ path: r });
|
|
418
418
|
}
|
|
419
419
|
else if (c.requiredState === "org")
|
|
420
420
|
if (n)
|
|
421
421
|
if (l)
|
|
422
|
-
|
|
422
|
+
M(e.path, t.path, o), a();
|
|
423
423
|
else {
|
|
424
424
|
const r = "/org/joinOrCreate";
|
|
425
|
-
|
|
425
|
+
M(r, t.path, o), a({ path: r });
|
|
426
426
|
}
|
|
427
427
|
else {
|
|
428
428
|
const r = "/passport/login";
|
|
429
|
-
|
|
429
|
+
M(r, t.path, o), a({ path: r });
|
|
430
430
|
}
|
|
431
431
|
else if (n)
|
|
432
432
|
if (l) {
|
|
433
433
|
const r = "/main";
|
|
434
|
-
|
|
434
|
+
M(r, t.path, o), a({ path: r });
|
|
435
435
|
} else {
|
|
436
436
|
const r = "/org/joinOrCreate";
|
|
437
|
-
|
|
437
|
+
M(r, t.path, o), a({ path: r });
|
|
438
438
|
}
|
|
439
439
|
else
|
|
440
|
-
|
|
440
|
+
M(e.path, t.path, o), a();
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function ut(e) {
|
|
443
443
|
return e.value.length <= 0;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function _a(e) {
|
|
446
446
|
return e.value.at(-1);
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Ce(e, t) {
|
|
449
449
|
return !!e.value.find((a) => a === t);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function st(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 pt(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 _t(e) {
|
|
460
460
|
console.assert(e.value.length > 0), e.value.pop();
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function ia(e) {
|
|
463
463
|
e.value = [];
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
return
|
|
467
|
-
}
|
|
468
|
-
function lt(e) {
|
|
469
|
-
return typeof e == "function" ? e() : H(e);
|
|
465
|
+
function it(e) {
|
|
466
|
+
return je() ? (Re(e), !0) : !1;
|
|
470
467
|
}
|
|
471
|
-
const
|
|
468
|
+
const J = /* @__PURE__ */ new WeakMap(), dt = (...e) => {
|
|
469
|
+
var t;
|
|
470
|
+
const a = e[0], o = (t = _e()) == null ? void 0 : t.proxy;
|
|
471
|
+
if (o == null && !ie())
|
|
472
|
+
throw new Error("injectLocal must be called in setup");
|
|
473
|
+
return o && J.has(o) && a in J.get(o) ? J.get(o)[a] : A(...e);
|
|
474
|
+
}, ft = typeof window < "u" && typeof document < "u";
|
|
472
475
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
473
|
-
const
|
|
474
|
-
function
|
|
475
|
-
|
|
476
|
-
|
|
476
|
+
const gt = Object.prototype.toString, vt = (e) => gt.call(e) === "[object Object]";
|
|
477
|
+
function pe(e) {
|
|
478
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
479
|
+
}
|
|
480
|
+
function Y(e) {
|
|
481
|
+
return Array.isArray(e) ? e : [e];
|
|
482
|
+
}
|
|
483
|
+
function mt(e, t, a) {
|
|
484
|
+
return K(
|
|
485
|
+
e,
|
|
486
|
+
t,
|
|
487
|
+
{
|
|
488
|
+
...a,
|
|
489
|
+
immediate: !0
|
|
490
|
+
}
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
const Le = ft ? window : void 0;
|
|
494
|
+
function ht(e) {
|
|
495
|
+
var t;
|
|
496
|
+
const a = O(e);
|
|
497
|
+
return (t = a == null ? void 0 : a.$el) != null ? t : a;
|
|
498
|
+
}
|
|
499
|
+
function yt(...e) {
|
|
500
|
+
const t = [], a = () => {
|
|
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 = y(() => {
|
|
503
|
+
const r = Y(O(e[0])).filter((u) => u != null);
|
|
504
|
+
return r.every((u) => typeof u != "string") ? r : void 0;
|
|
505
|
+
}), l = mt(
|
|
506
|
+
() => {
|
|
507
|
+
var r, u;
|
|
508
|
+
return [
|
|
509
|
+
(u = (r = n.value) == null ? void 0 : r.map((s) => ht(s))) != null ? u : [Le].filter((s) => s != null),
|
|
510
|
+
Y(O(n.value ? e[1] : e[0])),
|
|
511
|
+
Y(z(n.value ? e[2] : e[1])),
|
|
512
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
513
|
+
O(n.value ? e[3] : e[2])
|
|
514
|
+
];
|
|
515
|
+
},
|
|
516
|
+
([r, u, s, d]) => {
|
|
517
|
+
if (a(), !(r != null && r.length) || !(u != null && u.length) || !(s != null && s.length))
|
|
518
|
+
return;
|
|
519
|
+
const g = vt(d) ? { ...d } : d;
|
|
520
|
+
t.push(
|
|
521
|
+
...r.flatMap(
|
|
522
|
+
(b) => u.flatMap(
|
|
523
|
+
(m) => s.map((_) => o(b, m, _, g))
|
|
524
|
+
)
|
|
525
|
+
)
|
|
526
|
+
);
|
|
527
|
+
},
|
|
528
|
+
{ flush: "post" }
|
|
529
|
+
), c = () => {
|
|
530
|
+
l(), a();
|
|
531
|
+
};
|
|
532
|
+
return it(a), c;
|
|
533
|
+
}
|
|
534
|
+
function wt() {
|
|
535
|
+
const e = P(!1), t = _e();
|
|
536
|
+
return t && E(() => {
|
|
477
537
|
e.value = !0;
|
|
478
538
|
}, t), e;
|
|
479
539
|
}
|
|
480
|
-
function
|
|
481
|
-
const t =
|
|
540
|
+
function xt(e) {
|
|
541
|
+
const t = wt();
|
|
482
542
|
return y(() => (t.value, !!e()));
|
|
483
543
|
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
l.value = _.matches;
|
|
489
|
-
}, r = () => {
|
|
490
|
-
n && ("removeEventListener" in n ? n.removeEventListener("change", c) : n.removeListener(c));
|
|
491
|
-
}, u = ke(() => {
|
|
492
|
-
o.value && (r(), n = a.matchMedia(lt(e)), "addEventListener" in n ? n.addEventListener("change", c) : n.addListener(c), l.value = n.matches);
|
|
493
|
-
});
|
|
494
|
-
return rt(() => {
|
|
495
|
-
u(), r(), n = void 0;
|
|
496
|
-
}), l;
|
|
544
|
+
const bt = Symbol("vueuse-ssr-width");
|
|
545
|
+
function kt() {
|
|
546
|
+
const e = ie() ? dt(bt, null) : null;
|
|
547
|
+
return typeof e == "number" ? e : void 0;
|
|
497
548
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
549
|
+
function Ct(e, t = {}) {
|
|
550
|
+
const { window: a = Le, ssrWidth: o = kt() } = t, n = xt(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), l = v(typeof o == "number"), c = P(), r = P(!1), u = (s) => {
|
|
551
|
+
r.value = s.matches;
|
|
552
|
+
};
|
|
553
|
+
return Ve(() => {
|
|
554
|
+
if (l.value) {
|
|
555
|
+
l.value = !n.value;
|
|
556
|
+
const s = O(e).split(",");
|
|
557
|
+
r.value = s.some((d) => {
|
|
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
|
+
let _ = !!(b || m);
|
|
560
|
+
return b && _ && (_ = o >= pe(b[1])), m && _ && (_ = o <= pe(m[1])), g ? !_ : _;
|
|
561
|
+
});
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
n.value && (c.value = a.matchMedia(O(e)), r.value = c.value.matches);
|
|
565
|
+
}), yt(c, "change", u, { passive: !0 }), y(() => r.value);
|
|
566
|
+
}
|
|
567
|
+
function Lt(e) {
|
|
568
|
+
return Ct("(prefers-color-scheme: dark)", e);
|
|
500
569
|
}
|
|
501
|
-
function
|
|
502
|
-
const c =
|
|
503
|
-
|
|
504
|
-
const u =
|
|
505
|
-
|
|
570
|
+
function da(e, t, a, o, n, l) {
|
|
571
|
+
const c = Ee(), r = ge();
|
|
572
|
+
Je(e), Ye(t), Pe(a), tt(o), at(n), ot(l);
|
|
573
|
+
const u = fe(), s = Lt();
|
|
574
|
+
K(
|
|
506
575
|
e,
|
|
507
576
|
() => {
|
|
508
|
-
let
|
|
509
|
-
typeof e.value == "boolean" ?
|
|
577
|
+
let i = !1;
|
|
578
|
+
typeof e.value == "boolean" ? i = e.value : i = s.value, u.global.name.value = i ? "dark" : "light";
|
|
510
579
|
},
|
|
511
580
|
{ immediate: !0 }
|
|
512
581
|
);
|
|
513
|
-
const
|
|
514
|
-
if (
|
|
515
|
-
|
|
582
|
+
const d = (i) => {
|
|
583
|
+
if (i.key === "Escape") {
|
|
584
|
+
g();
|
|
516
585
|
return;
|
|
517
586
|
}
|
|
518
|
-
},
|
|
519
|
-
var
|
|
520
|
-
if (!
|
|
521
|
-
|
|
587
|
+
}, g = () => {
|
|
588
|
+
var k;
|
|
589
|
+
if (!ut(l)) {
|
|
590
|
+
Ce(l, "waitDlg") || _t(l);
|
|
522
591
|
return;
|
|
523
592
|
}
|
|
524
|
-
const
|
|
525
|
-
(
|
|
593
|
+
const i = G(c.path);
|
|
594
|
+
(i == null ? void 0 : i.level) === 0 ? (k = navigator == null ? void 0 : navigator.Backbutton) == null || k.goHome(
|
|
526
595
|
() => {
|
|
527
596
|
},
|
|
528
597
|
() => {
|
|
529
598
|
}
|
|
530
599
|
) : r.back();
|
|
531
600
|
};
|
|
532
|
-
|
|
533
|
-
window.addEventListener("keydown",
|
|
534
|
-
}),
|
|
535
|
-
window.removeEventListener("keydown",
|
|
601
|
+
E(() => {
|
|
602
|
+
window.addEventListener("keydown", d), p.on("backbutton", g);
|
|
603
|
+
}), $(() => {
|
|
604
|
+
window.removeEventListener("keydown", d), p.off("backbutton", g);
|
|
536
605
|
});
|
|
537
|
-
const
|
|
538
|
-
e.value =
|
|
539
|
-
},
|
|
540
|
-
t.value =
|
|
541
|
-
},
|
|
542
|
-
const
|
|
543
|
-
a.value =
|
|
544
|
-
}, D = (
|
|
545
|
-
n.value =
|
|
606
|
+
const b = (i) => {
|
|
607
|
+
e.value = i;
|
|
608
|
+
}, m = (i) => {
|
|
609
|
+
t.value = i;
|
|
610
|
+
}, _ = (i) => {
|
|
611
|
+
const k = i;
|
|
612
|
+
a.value = k[0], o.value = k[1];
|
|
613
|
+
}, D = (i) => {
|
|
614
|
+
n.value = i;
|
|
546
615
|
};
|
|
547
|
-
|
|
548
|
-
p.on("updateDark",
|
|
549
|
-
}),
|
|
550
|
-
p.off("updateDark",
|
|
616
|
+
Ae(() => {
|
|
617
|
+
p.on("updateDark", b), p.on("updateLocale", m), p.on("updatePermission", _), p.on("updateLastAppPath", D), p.emit("syncGlobalState");
|
|
618
|
+
}), $(() => {
|
|
619
|
+
p.off("updateDark", b), p.off("updateLocale", m), p.off("updatePermission", _), p.off("updateLastAppPath", D);
|
|
551
620
|
});
|
|
552
621
|
}
|
|
553
|
-
function
|
|
554
|
-
const e =
|
|
622
|
+
function fa() {
|
|
623
|
+
const e = et();
|
|
555
624
|
function t(a, o) {
|
|
556
|
-
return
|
|
625
|
+
return Qe(
|
|
557
626
|
e.value,
|
|
558
627
|
a,
|
|
559
628
|
o
|
|
@@ -561,81 +630,81 @@ function ta() {
|
|
|
561
630
|
}
|
|
562
631
|
return { verifyPermission: t };
|
|
563
632
|
}
|
|
564
|
-
function
|
|
565
|
-
const e = y(() => !!window.cordova), t =
|
|
633
|
+
function ga() {
|
|
634
|
+
const e = y(() => !!window.cordova), t = Te(), a = y(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
566
635
|
return { sysBarAvail: e, compactWidth: a };
|
|
567
636
|
}
|
|
568
|
-
function
|
|
569
|
-
const a =
|
|
637
|
+
function le(e, t) {
|
|
638
|
+
const a = nt(), o = y({
|
|
570
639
|
get() {
|
|
571
|
-
return
|
|
640
|
+
return Ce(a, e);
|
|
572
641
|
},
|
|
573
642
|
set(l) {
|
|
574
|
-
l ?
|
|
643
|
+
l ? st(a, e) : pt(a, e);
|
|
575
644
|
}
|
|
576
645
|
}), n = (l) => {
|
|
577
646
|
t == null || t(l), o.value = !0;
|
|
578
647
|
};
|
|
579
|
-
return
|
|
648
|
+
return E(() => {
|
|
580
649
|
p.on(e, n);
|
|
581
|
-
}),
|
|
650
|
+
}), $(() => {
|
|
582
651
|
p.off(e, n);
|
|
583
652
|
}), { open: o };
|
|
584
653
|
}
|
|
585
|
-
const
|
|
654
|
+
const Dt = /* @__PURE__ */ B({
|
|
586
655
|
__name: "index",
|
|
587
656
|
setup(e) {
|
|
588
|
-
const { t } =
|
|
589
|
-
let u = 0,
|
|
590
|
-
const
|
|
591
|
-
var D,
|
|
592
|
-
const
|
|
593
|
-
a.value =
|
|
594
|
-
}, { open:
|
|
595
|
-
|
|
657
|
+
const { t } = ne(), a = v(""), o = v(""), n = v(""), l = v(""), c = v(""), r = v("");
|
|
658
|
+
let u = 0, s = !1;
|
|
659
|
+
const d = (m) => {
|
|
660
|
+
var D, i, k, S;
|
|
661
|
+
const _ = m;
|
|
662
|
+
a.value = _.title, o.value = _.text, n.value = ((D = _.cancel) == null ? void 0 : D.color) ?? "primary", l.value = ((i = _.cancel) == null ? void 0 : i.text) ?? t("dlg.common.cancel"), c.value = ((k = _.confirm) == null ? void 0 : k.color) ?? "primary", r.value = ((S = _.confirm) == null ? void 0 : S.text) ?? t("dlg.common.confirm"), u = _.seq, s = !1, g.value = !0;
|
|
663
|
+
}, { open: g } = le("confirmDlg", d), b = () => {
|
|
664
|
+
g.value = !1, s || (p.emit("confirmDlgResult" + u, !0), s = !0);
|
|
596
665
|
};
|
|
597
|
-
return
|
|
598
|
-
!
|
|
599
|
-
}), (
|
|
600
|
-
const D =
|
|
601
|
-
return
|
|
602
|
-
modelValue:
|
|
603
|
-
"onUpdate:modelValue":
|
|
666
|
+
return K(g, (m) => {
|
|
667
|
+
!m && !s && (p.emit("confirmDlgResult" + u, !1), s = !0);
|
|
668
|
+
}), (m, _) => {
|
|
669
|
+
const D = w("v-card-text"), i = w("v-btn"), k = w("v-card-actions"), S = w("v-card"), f = w("v-dialog");
|
|
670
|
+
return L(), V(f, {
|
|
671
|
+
modelValue: z(g),
|
|
672
|
+
"onUpdate:modelValue": _[1] || (_[1] = (j) => ae(g) ? g.value = j : null),
|
|
604
673
|
transition: "dialog-top-transition",
|
|
605
674
|
"max-width": "600px",
|
|
606
675
|
onKeydown: [
|
|
607
|
-
|
|
608
|
-
|
|
676
|
+
_[2] || (_[2] = Z(H((j) => g.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
677
|
+
Z(H(b, ["stop", "prevent"]), ["enter"])
|
|
609
678
|
]
|
|
610
679
|
}, {
|
|
611
|
-
default:
|
|
612
|
-
|
|
613
|
-
default:
|
|
614
|
-
|
|
615
|
-
default:
|
|
616
|
-
|
|
680
|
+
default: x(() => [
|
|
681
|
+
C(S, { title: a.value }, {
|
|
682
|
+
default: x(() => [
|
|
683
|
+
C(D, null, {
|
|
684
|
+
default: x(() => [
|
|
685
|
+
q(R(o.value), 1)
|
|
617
686
|
]),
|
|
618
687
|
_: 1
|
|
619
688
|
}),
|
|
620
|
-
|
|
621
|
-
default:
|
|
622
|
-
|
|
689
|
+
C(k, { class: "d-flex justify-end" }, {
|
|
690
|
+
default: x(() => [
|
|
691
|
+
C(i, {
|
|
623
692
|
color: n.value,
|
|
624
693
|
variant: "text",
|
|
625
|
-
onClick:
|
|
694
|
+
onClick: _[0] || (_[0] = (j) => g.value = !1)
|
|
626
695
|
}, {
|
|
627
|
-
default:
|
|
628
|
-
|
|
696
|
+
default: x(() => [
|
|
697
|
+
q(R(l.value), 1)
|
|
629
698
|
]),
|
|
630
699
|
_: 1
|
|
631
700
|
}, 8, ["color"]),
|
|
632
|
-
|
|
701
|
+
C(i, {
|
|
633
702
|
color: c.value,
|
|
634
703
|
variant: "text",
|
|
635
|
-
onClick:
|
|
704
|
+
onClick: b
|
|
636
705
|
}, {
|
|
637
|
-
default:
|
|
638
|
-
|
|
706
|
+
default: x(() => [
|
|
707
|
+
q(R(r.value), 1)
|
|
639
708
|
]),
|
|
640
709
|
_: 1
|
|
641
710
|
}, 8, ["color"])
|
|
@@ -650,46 +719,46 @@ const dt = /* @__PURE__ */ B({
|
|
|
650
719
|
}, 8, ["modelValue", "onKeydown"]);
|
|
651
720
|
};
|
|
652
721
|
}
|
|
653
|
-
}),
|
|
722
|
+
}), St = /* @__PURE__ */ B({
|
|
654
723
|
__name: "index",
|
|
655
724
|
props: {
|
|
656
725
|
open: { type: Boolean, default: !0 },
|
|
657
726
|
zIndex: { default: 1 }
|
|
658
727
|
},
|
|
659
728
|
setup(e) {
|
|
660
|
-
const { backgroundColor2: t } =
|
|
729
|
+
const { backgroundColor2: t } = We(), a = y(() => ({
|
|
661
730
|
background: t.value,
|
|
662
731
|
zIndex: e.zIndex
|
|
663
732
|
}));
|
|
664
|
-
return (o, n) => o.open ? (
|
|
733
|
+
return (o, n) => o.open ? (L(), ee("div", {
|
|
665
734
|
key: 0,
|
|
666
735
|
class: "x-cont",
|
|
667
|
-
style:
|
|
736
|
+
style: de(a.value)
|
|
668
737
|
}, n[0] || (n[0] = [
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
738
|
+
h("div", { class: "lds-spinner" }, [
|
|
739
|
+
h("div"),
|
|
740
|
+
h("div"),
|
|
741
|
+
h("div"),
|
|
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")
|
|
682
751
|
], -1)
|
|
683
|
-
]), 4)) :
|
|
752
|
+
]), 4)) : oe("", !0);
|
|
684
753
|
}
|
|
685
|
-
}),
|
|
754
|
+
}), ce = (e, t) => {
|
|
686
755
|
const a = e.__vccOpts || e;
|
|
687
756
|
for (const [o, n] of t)
|
|
688
757
|
a[o] = n;
|
|
689
758
|
return a;
|
|
690
|
-
},
|
|
691
|
-
var
|
|
692
|
-
const
|
|
759
|
+
}, Mt = /* @__PURE__ */ ce(St, [["__scopeId", "data-v-4fee730c"]]);
|
|
760
|
+
var jt = "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", Rt = "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", Vt = "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", At = "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";
|
|
761
|
+
const qt = /* @__PURE__ */ B({
|
|
693
762
|
__name: "item",
|
|
694
763
|
props: {
|
|
695
764
|
id: {},
|
|
@@ -705,129 +774,129 @@ const xt = /* @__PURE__ */ B({
|
|
|
705
774
|
})), n = y(() => {
|
|
706
775
|
switch (a.type) {
|
|
707
776
|
case "success":
|
|
708
|
-
return
|
|
777
|
+
return Rt;
|
|
709
778
|
case "info":
|
|
710
|
-
return
|
|
779
|
+
return Ot;
|
|
711
780
|
case "error":
|
|
712
|
-
return
|
|
781
|
+
return At;
|
|
713
782
|
case "warning":
|
|
714
|
-
return
|
|
783
|
+
return jt;
|
|
715
784
|
default:
|
|
716
785
|
return "";
|
|
717
786
|
}
|
|
718
|
-
}), l =
|
|
719
|
-
return
|
|
787
|
+
}), l = v(!0), c = t;
|
|
788
|
+
return E(() => {
|
|
720
789
|
setTimeout(() => {
|
|
721
790
|
c("timeout", a.id);
|
|
722
791
|
}, a.timeout);
|
|
723
|
-
}),
|
|
792
|
+
}), K(l, (r) => {
|
|
724
793
|
r || c("timeout", a.id);
|
|
725
794
|
}), (r, u) => {
|
|
726
|
-
const
|
|
727
|
-
return
|
|
795
|
+
const s = w("v-icon"), d = w("v-sheet");
|
|
796
|
+
return L(), V(d, {
|
|
728
797
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
729
798
|
color: a.type,
|
|
730
799
|
elevation: 1
|
|
731
800
|
}, {
|
|
732
|
-
default:
|
|
733
|
-
n.value ? (
|
|
801
|
+
default: x(() => [
|
|
802
|
+
n.value ? (L(), V(s, {
|
|
734
803
|
key: 0,
|
|
735
804
|
class: "mx-1",
|
|
736
805
|
icon: n.value
|
|
737
|
-
}, null, 8, ["icon"])) :
|
|
738
|
-
|
|
739
|
-
style:
|
|
806
|
+
}, null, 8, ["icon"])) : oe("", !0),
|
|
807
|
+
h("div", {
|
|
808
|
+
style: de(o.value)
|
|
740
809
|
}, R(a.text), 5),
|
|
741
|
-
|
|
810
|
+
C(s, {
|
|
742
811
|
class: "mx-1",
|
|
743
|
-
icon:
|
|
744
|
-
onClick: u[0] || (u[0] = (
|
|
812
|
+
icon: z(Vt),
|
|
813
|
+
onClick: u[0] || (u[0] = (g) => c("timeout", a.id))
|
|
745
814
|
}, null, 8, ["icon"])
|
|
746
815
|
]),
|
|
747
816
|
_: 1
|
|
748
817
|
}, 8, ["color"]);
|
|
749
818
|
};
|
|
750
819
|
}
|
|
751
|
-
}),
|
|
820
|
+
}), It = /* @__PURE__ */ ce(qt, [["__scopeId", "data-v-d5cfe252"]]), Tt = /* @__PURE__ */ B({
|
|
752
821
|
__name: "index",
|
|
753
822
|
setup(e) {
|
|
754
|
-
const t =
|
|
755
|
-
|
|
823
|
+
const t = v([]);
|
|
824
|
+
E(() => {
|
|
756
825
|
p.on("message", a);
|
|
757
|
-
}),
|
|
826
|
+
}), $(() => {
|
|
758
827
|
p.off("message", a);
|
|
759
828
|
});
|
|
760
829
|
const a = (r) => {
|
|
761
|
-
const { type: u, text:
|
|
762
|
-
l(u,
|
|
830
|
+
const { type: u, text: s, timeout: d } = r;
|
|
831
|
+
l(u, s, d);
|
|
763
832
|
}, o = (r) => {
|
|
764
833
|
c(r);
|
|
765
834
|
};
|
|
766
835
|
let n = 0;
|
|
767
|
-
const l = (r, u,
|
|
768
|
-
const
|
|
769
|
-
t.value.push({ id:
|
|
836
|
+
const l = (r, u, s) => {
|
|
837
|
+
const d = n++;
|
|
838
|
+
t.value.push({ id: d, type: r, text: u, timeout: s });
|
|
770
839
|
}, c = (r) => {
|
|
771
|
-
const u = t.value.findIndex((
|
|
840
|
+
const u = t.value.findIndex((s) => s.id === r);
|
|
772
841
|
u >= 0 && t.value.splice(u, 1);
|
|
773
842
|
};
|
|
774
|
-
return (r, u) => (
|
|
843
|
+
return (r, u) => (L(), ee("div", {
|
|
775
844
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
776
|
-
onClick: u[0] || (u[0] =
|
|
845
|
+
onClick: u[0] || (u[0] = H(() => {
|
|
777
846
|
}, ["stop"]))
|
|
778
847
|
}, [
|
|
779
|
-
(
|
|
780
|
-
id:
|
|
781
|
-
key:
|
|
782
|
-
type:
|
|
783
|
-
text:
|
|
784
|
-
timeout:
|
|
848
|
+
(L(!0), ee(Oe, null, qe(t.value, (s) => (L(), V(It, {
|
|
849
|
+
id: s.id,
|
|
850
|
+
key: s.id,
|
|
851
|
+
type: s.type,
|
|
852
|
+
text: s.text,
|
|
853
|
+
timeout: s.timeout,
|
|
785
854
|
onTimeout: o
|
|
786
855
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
787
856
|
]));
|
|
788
857
|
}
|
|
789
|
-
}),
|
|
858
|
+
}), Et = /* @__PURE__ */ ce(Tt, [["__scopeId", "data-v-8fd5d800"]]), Bt = /* @__PURE__ */ B({
|
|
790
859
|
__name: "index",
|
|
791
860
|
setup(e) {
|
|
792
|
-
const { t } =
|
|
793
|
-
let
|
|
794
|
-
const D = async (
|
|
795
|
-
var j,
|
|
796
|
-
const
|
|
797
|
-
a.value =
|
|
798
|
-
}, { open:
|
|
799
|
-
|
|
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 = Ie("target");
|
|
862
|
+
let m = 0, _ = !1;
|
|
863
|
+
const D = async (S) => {
|
|
864
|
+
var j, F, X, W;
|
|
865
|
+
const f = S;
|
|
866
|
+
a.value = f.title, o.value = f.text, n.value = f.label, l.value = f.placeholder, c.value = f.rules, r.value = f.value, u.value = ((j = f.cancel) == null ? void 0 : j.color) ?? "primary", s.value = ((F = f.cancel) == null ? void 0 : F.text) ?? t("dlg.common.cancel"), d.value = ((X = f.confirm) == null ? void 0 : X.color) ?? "primary", g.value = ((W = f.confirm) == null ? void 0 : W.text) ?? t("dlg.common.confirm"), m = f.seq, _ = !1, i.value = !0, await re(() => !!b.value), b.value.focus();
|
|
867
|
+
}, { open: i } = le("promptDlg", D), k = () => {
|
|
868
|
+
i.value = !1, _ || (p.emit("promptDlgResult" + m, r.value ?? ""), _ = !0);
|
|
800
869
|
};
|
|
801
|
-
return
|
|
802
|
-
!
|
|
803
|
-
}), (
|
|
804
|
-
const j =
|
|
805
|
-
return
|
|
806
|
-
modelValue:
|
|
807
|
-
"onUpdate:modelValue":
|
|
870
|
+
return K(i, (S) => {
|
|
871
|
+
!S && !_ && (p.emit("promptDlgResult" + m, void 0), _ = !0);
|
|
872
|
+
}), (S, f) => {
|
|
873
|
+
const j = w("v-card-text"), F = w("v-text-field"), X = w("v-form"), W = w("v-btn"), De = w("v-card-actions"), Se = w("v-card"), Me = w("v-dialog");
|
|
874
|
+
return L(), V(Me, {
|
|
875
|
+
modelValue: z(i),
|
|
876
|
+
"onUpdate:modelValue": f[2] || (f[2] = (U) => ae(i) ? i.value = U : null),
|
|
808
877
|
transition: "dialog-top-transition",
|
|
809
878
|
"max-width": "600px",
|
|
810
879
|
onKeydown: [
|
|
811
|
-
|
|
812
|
-
|
|
880
|
+
f[3] || (f[3] = Z(H((U) => i.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
881
|
+
Z(H(k, ["stop", "prevent"]), ["enter"])
|
|
813
882
|
]
|
|
814
883
|
}, {
|
|
815
|
-
default:
|
|
816
|
-
|
|
817
|
-
default:
|
|
818
|
-
o.value ? (
|
|
819
|
-
default:
|
|
820
|
-
|
|
884
|
+
default: x(() => [
|
|
885
|
+
C(Se, { title: a.value }, {
|
|
886
|
+
default: x(() => [
|
|
887
|
+
o.value ? (L(), V(j, { key: 0 }, {
|
|
888
|
+
default: x(() => [
|
|
889
|
+
q(R(o.value), 1)
|
|
821
890
|
]),
|
|
822
891
|
_: 1
|
|
823
|
-
})) :
|
|
824
|
-
|
|
825
|
-
default:
|
|
826
|
-
|
|
892
|
+
})) : oe("", !0),
|
|
893
|
+
C(X, { class: "mx-3" }, {
|
|
894
|
+
default: x(() => [
|
|
895
|
+
C(F, {
|
|
827
896
|
ref_key: "target",
|
|
828
|
-
ref:
|
|
897
|
+
ref: b,
|
|
829
898
|
modelValue: r.value,
|
|
830
|
-
"onUpdate:modelValue":
|
|
899
|
+
"onUpdate:modelValue": f[0] || (f[0] = (U) => r.value = U),
|
|
831
900
|
label: n.value,
|
|
832
901
|
placeholder: l.value,
|
|
833
902
|
rules: c.value
|
|
@@ -835,25 +904,25 @@ const xt = /* @__PURE__ */ B({
|
|
|
835
904
|
]),
|
|
836
905
|
_: 1
|
|
837
906
|
}),
|
|
838
|
-
|
|
839
|
-
default:
|
|
840
|
-
|
|
907
|
+
C(De, { class: "d-flex justify-end" }, {
|
|
908
|
+
default: x(() => [
|
|
909
|
+
C(W, {
|
|
841
910
|
color: u.value,
|
|
842
911
|
variant: "text",
|
|
843
|
-
onClick:
|
|
912
|
+
onClick: f[1] || (f[1] = (U) => i.value = !1)
|
|
844
913
|
}, {
|
|
845
|
-
default:
|
|
846
|
-
|
|
914
|
+
default: x(() => [
|
|
915
|
+
q(R(s.value), 1)
|
|
847
916
|
]),
|
|
848
917
|
_: 1
|
|
849
918
|
}, 8, ["color"]),
|
|
850
|
-
|
|
851
|
-
color:
|
|
919
|
+
C(W, {
|
|
920
|
+
color: d.value,
|
|
852
921
|
variant: "text",
|
|
853
|
-
onClick:
|
|
922
|
+
onClick: k
|
|
854
923
|
}, {
|
|
855
|
-
default:
|
|
856
|
-
|
|
924
|
+
default: x(() => [
|
|
925
|
+
q(R(g.value), 1)
|
|
857
926
|
]),
|
|
858
927
|
_: 1
|
|
859
928
|
}, 8, ["color"])
|
|
@@ -868,38 +937,38 @@ const xt = /* @__PURE__ */ B({
|
|
|
868
937
|
}, 8, ["modelValue", "onKeydown"]);
|
|
869
938
|
};
|
|
870
939
|
}
|
|
871
|
-
}),
|
|
940
|
+
}), Wt = { class: "mx-auto my-auto" }, Ut = { class: "w-100 h-100 d-flex align-center justify-center" }, $t = { class: "text-body-1" }, Ht = /* @__PURE__ */ B({
|
|
872
941
|
__name: "index",
|
|
873
942
|
setup(e) {
|
|
874
|
-
const { t } =
|
|
943
|
+
const { t } = ne(), a = v(""), o = (c) => {
|
|
875
944
|
const r = c;
|
|
876
945
|
a.value = r.text ?? t("dlg.common.waiting"), l.value = !0;
|
|
877
946
|
}, n = () => {
|
|
878
947
|
l.value = !1;
|
|
879
|
-
}, { open: l } =
|
|
880
|
-
return
|
|
948
|
+
}, { open: l } = le("waitDlg", o);
|
|
949
|
+
return E(() => {
|
|
881
950
|
p.on("closeWaitDlg", n);
|
|
882
|
-
}),
|
|
951
|
+
}), $(() => {
|
|
883
952
|
p.off("closeWaitDlg", n);
|
|
884
953
|
}), (c, r) => {
|
|
885
|
-
const u =
|
|
886
|
-
return
|
|
887
|
-
modelValue:
|
|
888
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
954
|
+
const u = w("v-card"), s = w("v-dialog");
|
|
955
|
+
return L(), V(s, {
|
|
956
|
+
modelValue: z(l),
|
|
957
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => ae(l) ? l.value = d : null),
|
|
889
958
|
persistent: "",
|
|
890
959
|
"no-click-animation": "",
|
|
891
960
|
fullscreen: ""
|
|
892
961
|
}, {
|
|
893
|
-
default:
|
|
894
|
-
|
|
895
|
-
|
|
962
|
+
default: x(() => [
|
|
963
|
+
h("div", Wt, [
|
|
964
|
+
C(u, {
|
|
896
965
|
width: "300px",
|
|
897
966
|
height: "80px",
|
|
898
967
|
loading: ""
|
|
899
968
|
}, {
|
|
900
|
-
default:
|
|
901
|
-
|
|
902
|
-
|
|
969
|
+
default: x(() => [
|
|
970
|
+
h("div", Ut, [
|
|
971
|
+
h("span", $t, R(a.value), 1)
|
|
903
972
|
])
|
|
904
973
|
]),
|
|
905
974
|
_: 1
|
|
@@ -910,9 +979,9 @@ const xt = /* @__PURE__ */ B({
|
|
|
910
979
|
}, 8, ["modelValue"]);
|
|
911
980
|
};
|
|
912
981
|
}
|
|
913
|
-
}),
|
|
914
|
-
e.component("XConfirmDlg",
|
|
915
|
-
},
|
|
982
|
+
}), Kt = (e) => {
|
|
983
|
+
e.component("XConfirmDlg", Dt), e.component("XLoading", Mt), e.component("XMessage", Et), e.component("XPromptDlg", Bt), e.component("XWaitDlg", Ht);
|
|
984
|
+
}, zt = (e, t, a) => {
|
|
916
985
|
const o = e[t];
|
|
917
986
|
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((n, l) => {
|
|
918
987
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -925,54 +994,54 @@ const xt = /* @__PURE__ */ B({
|
|
|
925
994
|
);
|
|
926
995
|
});
|
|
927
996
|
};
|
|
928
|
-
async function
|
|
929
|
-
return (await
|
|
997
|
+
async function va(e) {
|
|
998
|
+
return (await zt(/* @__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;
|
|
930
999
|
}
|
|
931
|
-
const
|
|
1000
|
+
const ma = { install: Kt };
|
|
932
1001
|
export {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
1002
|
+
Ge as Permission,
|
|
1003
|
+
st as addView,
|
|
1004
|
+
Ne as appAppear,
|
|
1005
|
+
ia as clearViews,
|
|
1006
|
+
ta as closeWaitDlg,
|
|
1007
|
+
Qt as createAxios,
|
|
1008
|
+
ma as default,
|
|
1009
|
+
pt as delView,
|
|
941
1010
|
p as eventBus,
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
1011
|
+
Ce as hasView,
|
|
1012
|
+
la as injectDark,
|
|
1013
|
+
sa as injectLastAppPath,
|
|
1014
|
+
ca as injectLocale,
|
|
1015
|
+
ua as injectPermissionChecksum,
|
|
1016
|
+
et as injectPermissionObjects,
|
|
1017
|
+
nt as injectViews,
|
|
1018
|
+
ut as isEmpty,
|
|
1019
|
+
se as isExist,
|
|
1020
|
+
_a as lastView,
|
|
1021
|
+
va as loadLocaleMessageEssential,
|
|
1022
|
+
G as matchRouteMeta,
|
|
1023
|
+
aa as messageError,
|
|
1024
|
+
oa as messageInfo,
|
|
1025
|
+
na as messageSuccess,
|
|
1026
|
+
ra as messageWarning,
|
|
1027
|
+
pa as onBeforeEach,
|
|
1028
|
+
Yt as openConfirmDlg,
|
|
1029
|
+
Pt as openPromptDlg,
|
|
1030
|
+
ea as openWaitDlg,
|
|
1031
|
+
_t as popView,
|
|
1032
|
+
Je as provideDark,
|
|
1033
|
+
at as provideLastAppPath,
|
|
1034
|
+
Ye as provideLocale,
|
|
1035
|
+
tt as providePermissionChecksum,
|
|
1036
|
+
Pe as providePermissionObjects,
|
|
1037
|
+
ot as provideViews,
|
|
1038
|
+
Q as routeTransName,
|
|
1039
|
+
We as useColor,
|
|
1040
|
+
da as useMicroApp,
|
|
1041
|
+
fa as usePermission,
|
|
1042
|
+
ga as useSystem,
|
|
1043
|
+
le as useViewStack,
|
|
1044
|
+
Qe as verifyPermission,
|
|
1045
|
+
Jt as waitMs,
|
|
1046
|
+
re as waitUtil
|
|
978
1047
|
};
|