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