x-essential-lib 0.5.44 → 0.5.45
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 +221 -216
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
|
|
2
|
+
import { ref as f, watch as N, computed as i, onMounted as S, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as R, createBlock as E, unref as L, isRef as G, withKeys as F, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as j, createElementBlock as J, 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
3
|
import { useTheme as H, useLocale as Q, useDisplay as ke } from "vuetify";
|
|
4
4
|
import { defineStore as le } from "pinia";
|
|
5
5
|
import be from "axios";
|
|
6
|
-
import { useRouter as
|
|
6
|
+
import { useRouter as re, useRoute as Ce } from "vue-router";
|
|
7
7
|
const Y = le(
|
|
8
8
|
"global",
|
|
9
9
|
() => {
|
|
10
|
-
const e = H(), a =
|
|
10
|
+
const e = H(), a = f(), t = f("en"), l = f({}), o = f(""), n = f("");
|
|
11
11
|
return N(
|
|
12
12
|
a,
|
|
13
13
|
() => {
|
|
@@ -21,7 +21,7 @@ const Y = le(
|
|
|
21
21
|
locale: t,
|
|
22
22
|
permissionObjects: l,
|
|
23
23
|
permissionChecksum: o,
|
|
24
|
-
lastAppPath:
|
|
24
|
+
lastAppPath: n
|
|
25
25
|
};
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -36,8 +36,8 @@ const Y = le(
|
|
|
36
36
|
}
|
|
37
37
|
]
|
|
38
38
|
}
|
|
39
|
-
),
|
|
40
|
-
const e =
|
|
39
|
+
), ne = le("viewMgr", () => {
|
|
40
|
+
const e = f([]);
|
|
41
41
|
function a() {
|
|
42
42
|
return e.value.length <= 0;
|
|
43
43
|
}
|
|
@@ -52,11 +52,11 @@ const Y = le(
|
|
|
52
52
|
function o(p) {
|
|
53
53
|
e.value.push(p);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function n(p) {
|
|
56
56
|
const _ = e.value.findIndex((v) => v === p);
|
|
57
57
|
_ !== -1 && e.value.splice(_, e.value.length - _);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function r() {
|
|
60
60
|
console.assert(e.value.length > 0), e.value.pop();
|
|
61
61
|
}
|
|
62
62
|
function c() {
|
|
@@ -68,13 +68,13 @@ const Y = le(
|
|
|
68
68
|
lastView: t,
|
|
69
69
|
hasView: l,
|
|
70
70
|
addView: o,
|
|
71
|
-
delView:
|
|
72
|
-
popView:
|
|
71
|
+
delView: n,
|
|
72
|
+
popView: r,
|
|
73
73
|
clearViews: c
|
|
74
74
|
};
|
|
75
75
|
});
|
|
76
76
|
/*! js-cookie v3.0.5 | MIT */
|
|
77
|
-
function
|
|
77
|
+
function z(e) {
|
|
78
78
|
for (var a = 1; a < arguments.length; a++) {
|
|
79
79
|
var t = arguments[a];
|
|
80
80
|
for (var l in t)
|
|
@@ -94,47 +94,47 @@ var De = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
function X(e, a) {
|
|
97
|
-
function t(o,
|
|
97
|
+
function t(o, n, r) {
|
|
98
98
|
if (!(typeof document > "u")) {
|
|
99
|
-
|
|
99
|
+
r = z({}, a, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
100
100
|
var c = "";
|
|
101
|
-
for (var p in
|
|
102
|
-
|
|
103
|
-
return document.cookie = o + "=" + e.write(
|
|
101
|
+
for (var p in r)
|
|
102
|
+
r[p] && (c += "; " + p, r[p] !== !0 && (c += "=" + r[p].split(";")[0]));
|
|
103
|
+
return document.cookie = o + "=" + e.write(n, o) + c;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
function l(o) {
|
|
107
107
|
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
108
|
-
for (var
|
|
109
|
-
var p =
|
|
108
|
+
for (var n = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < n.length; c++) {
|
|
109
|
+
var p = n[c].split("="), _ = p.slice(1).join("=");
|
|
110
110
|
try {
|
|
111
111
|
var v = decodeURIComponent(p[0]);
|
|
112
|
-
if (
|
|
112
|
+
if (r[v] = e.read(_, v), o === v)
|
|
113
113
|
break;
|
|
114
114
|
} catch {
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
return o ?
|
|
117
|
+
return o ? r[o] : r;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
return Object.create(
|
|
121
121
|
{
|
|
122
122
|
set: t,
|
|
123
123
|
get: l,
|
|
124
|
-
remove: function(o,
|
|
124
|
+
remove: function(o, n) {
|
|
125
125
|
t(
|
|
126
126
|
o,
|
|
127
127
|
"",
|
|
128
|
-
|
|
128
|
+
z({}, n, {
|
|
129
129
|
expires: -1
|
|
130
130
|
})
|
|
131
131
|
);
|
|
132
132
|
},
|
|
133
133
|
withAttributes: function(o) {
|
|
134
|
-
return X(this.converter,
|
|
134
|
+
return X(this.converter, z({}, this.attributes, o));
|
|
135
135
|
},
|
|
136
136
|
withConverter: function(o) {
|
|
137
|
-
return X(
|
|
137
|
+
return X(z({}, this.converter, o), this.attributes);
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
{
|
|
@@ -143,7 +143,7 @@ function X(e, a) {
|
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
|
-
var
|
|
146
|
+
var B = X(De, { path: "/" });
|
|
147
147
|
function lt(e) {
|
|
148
148
|
const a = be.create({
|
|
149
149
|
timeout: 6e3
|
|
@@ -151,39 +151,39 @@ function lt(e) {
|
|
|
151
151
|
return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
|
|
152
152
|
(t) => Se(t),
|
|
153
153
|
(t) => {
|
|
154
|
-
|
|
154
|
+
Re(t, e.onError);
|
|
155
155
|
}
|
|
156
156
|
), a.interceptors.response.use(
|
|
157
|
-
(t) =>
|
|
158
|
-
(t) =>
|
|
157
|
+
(t) => Ve(t),
|
|
158
|
+
(t) => qe(t, e.onError)
|
|
159
159
|
), a;
|
|
160
160
|
}
|
|
161
161
|
function Se(e) {
|
|
162
|
-
const a =
|
|
162
|
+
const a = B.get("accessToken") ?? "";
|
|
163
163
|
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Re(e, a) {
|
|
166
166
|
console.error(e), a("request timeout");
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Ve(e) {
|
|
169
169
|
return e.data;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function qe(e, a) {
|
|
172
172
|
var o;
|
|
173
173
|
const t = e.response;
|
|
174
174
|
if (!t)
|
|
175
175
|
return Promise.reject(e);
|
|
176
|
-
t.status === 401 &&
|
|
176
|
+
t.status === 401 && Oe();
|
|
177
177
|
let l = (o = t.data) == null ? void 0 : o.message;
|
|
178
178
|
return l || (l = {
|
|
179
179
|
code: t.status,
|
|
180
180
|
message: t.statusText
|
|
181
181
|
}), a(l), Promise.reject(e);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
|
|
183
|
+
function Oe() {
|
|
184
|
+
B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"), re().replace({ path: "/passport/login" });
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Te(e) {
|
|
187
187
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
188
188
|
var l = e.get(a);
|
|
189
189
|
l ? l.push(t) : e.set(a, [t]);
|
|
@@ -200,9 +200,9 @@ function je(e) {
|
|
|
200
200
|
} };
|
|
201
201
|
}
|
|
202
202
|
const s = function() {
|
|
203
|
-
return window.eventBus || (window.eventBus =
|
|
203
|
+
return window.eventBus || (window.eventBus = Te()), window.eventBus;
|
|
204
204
|
}();
|
|
205
|
-
async function
|
|
205
|
+
async function rt(e) {
|
|
206
206
|
return new Promise((a) => {
|
|
207
207
|
setTimeout(a, e);
|
|
208
208
|
});
|
|
@@ -210,13 +210,13 @@ async function nt(e) {
|
|
|
210
210
|
async function Z(e, a, t) {
|
|
211
211
|
const l = Date.now();
|
|
212
212
|
return new Promise((o) => {
|
|
213
|
-
const
|
|
214
|
-
e() ? o(!0) : a && Date.now() - l > a ? o(!1) : setTimeout(
|
|
213
|
+
const n = async () => {
|
|
214
|
+
e() ? o(!0) : a && Date.now() - l > a ? o(!1) : setTimeout(n, t ?? 30);
|
|
215
215
|
};
|
|
216
|
-
|
|
216
|
+
n();
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function je(e, a) {
|
|
220
220
|
var o;
|
|
221
221
|
const t = "single-spa-application:" + e, l = (o = document.getElementById(t)) == null ? void 0 : o.classList;
|
|
222
222
|
l && (l.remove("app-left", "app-right", "app-reset"), a ? l.add("app-left") : l.add("app-right"), setTimeout(() => {
|
|
@@ -228,16 +228,16 @@ function ce() {
|
|
|
228
228
|
const e = Date.now();
|
|
229
229
|
return e - te > 500 ? (te = e, !0) : !1;
|
|
230
230
|
}
|
|
231
|
-
let
|
|
231
|
+
let Ae = 0;
|
|
232
232
|
function ue() {
|
|
233
|
-
return ++
|
|
233
|
+
return ++Ae;
|
|
234
234
|
}
|
|
235
|
-
async function
|
|
235
|
+
async function nt(e) {
|
|
236
236
|
if (!ce())
|
|
237
237
|
return;
|
|
238
238
|
let a = !1, t;
|
|
239
|
-
const l = (
|
|
240
|
-
t =
|
|
239
|
+
const l = (n) => {
|
|
240
|
+
t = n, a = !0;
|
|
241
241
|
}, o = ue();
|
|
242
242
|
return s.on("confirmDlgResult" + o, l), s.emit("confirmDlg", { ...e, seq: o }), await Z(() => a), s.off("confirmDlgResult" + o, l), t;
|
|
243
243
|
}
|
|
@@ -245,8 +245,8 @@ async function ct(e) {
|
|
|
245
245
|
if (!ce())
|
|
246
246
|
return;
|
|
247
247
|
let a = !1, t;
|
|
248
|
-
const l = (
|
|
249
|
-
t =
|
|
248
|
+
const l = (n) => {
|
|
249
|
+
t = n, a = !0;
|
|
250
250
|
}, o = ue();
|
|
251
251
|
return s.on("promptDlgResult" + o, l), s.emit("promptDlg", { ...e, seq: o }), await Z(() => a), s.off("promptDlgResult" + o, l), t;
|
|
252
252
|
}
|
|
@@ -265,10 +265,10 @@ function _t(e, a) {
|
|
|
265
265
|
function dt(e, a) {
|
|
266
266
|
s.emit("message", { type: "success", text: e, timeout: a });
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function ft(e, a) {
|
|
269
269
|
s.emit("message", { type: "warning", text: e, timeout: a });
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var Ie = /* @__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))(Ie || {});
|
|
272
272
|
function ae(e, a) {
|
|
273
273
|
if (!e)
|
|
274
274
|
return !1;
|
|
@@ -282,7 +282,7 @@ function ae(e, a) {
|
|
|
282
282
|
return !1;
|
|
283
283
|
}), Object.keys(t).length <= 0);
|
|
284
284
|
}
|
|
285
|
-
const
|
|
285
|
+
const Be = [
|
|
286
286
|
{
|
|
287
287
|
app: "x-passport-mf",
|
|
288
288
|
path: "/passport/login",
|
|
@@ -390,127 +390,132 @@ const Re = [
|
|
|
390
390
|
mainActive: 2
|
|
391
391
|
}
|
|
392
392
|
];
|
|
393
|
-
function
|
|
393
|
+
function W(e) {
|
|
394
394
|
let a, t = 0;
|
|
395
395
|
const l = e.split("/").filter((o) => o.trim() !== "");
|
|
396
|
-
return
|
|
397
|
-
const
|
|
398
|
-
let
|
|
399
|
-
for (let c = 0; c < l.length && !(c >=
|
|
400
|
-
|
|
401
|
-
|
|
396
|
+
return Be.forEach((o) => {
|
|
397
|
+
const n = o.path.split("/").filter((c) => c.trim() !== "");
|
|
398
|
+
let r = 0;
|
|
399
|
+
for (let c = 0; c < l.length && !(c >= n.length || l[c] !== n[c]); c++)
|
|
400
|
+
r++;
|
|
401
|
+
r > 0 && r >= t && (a = o, t = r);
|
|
402
402
|
}), a;
|
|
403
403
|
}
|
|
404
|
-
const oe =
|
|
404
|
+
const oe = f("");
|
|
405
405
|
function D(e, a) {
|
|
406
406
|
const t = Y();
|
|
407
407
|
a === "/" && (a = t.lastAppPath);
|
|
408
|
-
const l =
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
408
|
+
const l = W(e), o = W(a);
|
|
409
|
+
if (!l) {
|
|
410
|
+
console.assert(!1, "invalid to route meta");
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
if (console.info(`~~~~route~~~~ ${a} -> ${e}`), !o)
|
|
414
|
+
return;
|
|
415
|
+
const n = l.app === o.app, r = l.path === o.path, c = l.level >= l.level;
|
|
416
|
+
n ? r ? oe.value = "" : oe.value = c ? "inner-left" : "inner-right" : je(l.app, c), t.lastAppPath = "";
|
|
412
417
|
}
|
|
413
418
|
function Ee() {
|
|
414
|
-
return !!
|
|
419
|
+
return !!B.get("accessToken");
|
|
415
420
|
}
|
|
416
|
-
function
|
|
417
|
-
return !!
|
|
421
|
+
function Me() {
|
|
422
|
+
return !!B.get("activeOrg");
|
|
418
423
|
}
|
|
419
|
-
function
|
|
420
|
-
const l = Ee(), o =
|
|
421
|
-
if (!
|
|
424
|
+
function it(e, a, t) {
|
|
425
|
+
const l = Ee(), o = Me(), n = W(e.path);
|
|
426
|
+
if (!n) {
|
|
422
427
|
t();
|
|
423
428
|
return;
|
|
424
429
|
}
|
|
425
|
-
if (
|
|
430
|
+
if (n.requiredState === "auth")
|
|
426
431
|
if (l)
|
|
427
432
|
if (o) {
|
|
428
|
-
const
|
|
429
|
-
D(
|
|
433
|
+
const r = "/main";
|
|
434
|
+
D(r, a.path), t({ path: r });
|
|
430
435
|
} else
|
|
431
436
|
D(e.path, a.path), t();
|
|
432
437
|
else {
|
|
433
|
-
const
|
|
434
|
-
D(
|
|
438
|
+
const r = "/passport/login";
|
|
439
|
+
D(r, a.path), t({ path: r });
|
|
435
440
|
}
|
|
436
|
-
else if (
|
|
441
|
+
else if (n.requiredState === "org")
|
|
437
442
|
if (l)
|
|
438
443
|
if (o)
|
|
439
444
|
D(e.path, a.path), t();
|
|
440
445
|
else {
|
|
441
|
-
const
|
|
442
|
-
D(
|
|
446
|
+
const r = "/org/joinOrCreate";
|
|
447
|
+
D(r, a.path), t({ path: r });
|
|
443
448
|
}
|
|
444
449
|
else {
|
|
445
|
-
const
|
|
446
|
-
D(
|
|
450
|
+
const r = "/passport/login";
|
|
451
|
+
D(r, a.path), t({ path: r });
|
|
447
452
|
}
|
|
448
453
|
else if (l)
|
|
449
454
|
if (o) {
|
|
450
|
-
const
|
|
451
|
-
D(
|
|
455
|
+
const r = "/main";
|
|
456
|
+
D(r, a.path), t({ path: r });
|
|
452
457
|
} else {
|
|
453
|
-
const
|
|
454
|
-
D(
|
|
458
|
+
const r = "/org/joinOrCreate";
|
|
459
|
+
D(r, a.path), t({ path: r });
|
|
455
460
|
}
|
|
456
461
|
else
|
|
457
462
|
D(e.path, a.path), t();
|
|
458
463
|
}
|
|
459
464
|
function P(e, a) {
|
|
460
|
-
const t =
|
|
465
|
+
const t = ne(), l = i({
|
|
461
466
|
get() {
|
|
462
467
|
return t.hasView(e);
|
|
463
468
|
},
|
|
464
|
-
set(
|
|
465
|
-
|
|
469
|
+
set(n) {
|
|
470
|
+
n ? t.addView(e) : t.delView(e);
|
|
466
471
|
}
|
|
467
|
-
}), o = (
|
|
468
|
-
a == null || a(
|
|
472
|
+
}), o = (n) => {
|
|
473
|
+
a == null || a(n), l.value = !0;
|
|
469
474
|
};
|
|
470
475
|
return S(() => {
|
|
471
476
|
s.on(e, o);
|
|
472
|
-
}),
|
|
477
|
+
}), O(() => {
|
|
473
478
|
s.off(e, o);
|
|
474
479
|
}), { open: l };
|
|
475
480
|
}
|
|
476
|
-
const
|
|
481
|
+
const Ue = /* @__PURE__ */ M({
|
|
477
482
|
__name: "index",
|
|
478
483
|
setup(e) {
|
|
479
|
-
const a = Q(), { open: t } = P("confirmDlg"), l =
|
|
484
|
+
const a = Q(), { open: t } = P("confirmDlg"), l = f(""), o = f(""), n = f(), r = f(), c = i(() => {
|
|
480
485
|
var u;
|
|
481
|
-
return ((u =
|
|
482
|
-
}), p =
|
|
486
|
+
return ((u = n.value) == null ? void 0 : u.color) ?? "primary";
|
|
487
|
+
}), p = i(() => {
|
|
483
488
|
var u;
|
|
484
|
-
return ((u =
|
|
485
|
-
}), _ =
|
|
489
|
+
return ((u = n.value) == null ? void 0 : u.text) ?? a.t("cancel");
|
|
490
|
+
}), _ = i(() => {
|
|
486
491
|
var u;
|
|
487
|
-
return ((u =
|
|
488
|
-
}), v =
|
|
492
|
+
return ((u = r.value) == null ? void 0 : u.color) ?? "primary";
|
|
493
|
+
}), v = i(() => {
|
|
489
494
|
var u;
|
|
490
|
-
return ((u =
|
|
495
|
+
return ((u = r.value) == null ? void 0 : u.text) ?? a.t("confirm");
|
|
491
496
|
});
|
|
492
497
|
let y = 0, C = !1;
|
|
493
|
-
const
|
|
494
|
-
l.value = u.title, o.value = u.text,
|
|
498
|
+
const T = (u) => {
|
|
499
|
+
l.value = u.title, o.value = u.text, n.value = u.cancel, r.value = u.confirm, y = u.seq, C = !1, t.value = !0;
|
|
495
500
|
};
|
|
496
501
|
S(() => {
|
|
497
|
-
s.on("confirmDlg",
|
|
498
|
-
}),
|
|
499
|
-
s.off("confirmDlg",
|
|
502
|
+
s.on("confirmDlg", T);
|
|
503
|
+
}), O(() => {
|
|
504
|
+
s.off("confirmDlg", T);
|
|
500
505
|
});
|
|
501
|
-
const
|
|
506
|
+
const A = () => {
|
|
502
507
|
t.value = !1, C || (s.emit("confirmDlgResult" + y, !0), C = !0);
|
|
503
508
|
};
|
|
504
509
|
return N(t, (u) => {
|
|
505
510
|
!u && !C && (s.emit("confirmDlgResult" + y, !1), C = !0);
|
|
506
511
|
}), (u, g) => {
|
|
507
|
-
const b = h("v-card-text"),
|
|
508
|
-
return
|
|
509
|
-
modelValue:
|
|
510
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
512
|
+
const b = h("v-card-text"), V = h("v-btn"), q = h("v-card-actions"), d = h("v-card"), x = h("v-dialog");
|
|
513
|
+
return R(), E(x, {
|
|
514
|
+
modelValue: L(t),
|
|
515
|
+
"onUpdate:modelValue": g[1] || (g[1] = (U) => G(t) ? t.value = U : null),
|
|
511
516
|
onKeydown: [
|
|
512
|
-
g[2] || (g[2] =
|
|
513
|
-
|
|
517
|
+
g[2] || (g[2] = F(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
518
|
+
F(K(A, ["stop", "prevent"]), ["enter"])
|
|
514
519
|
],
|
|
515
520
|
transition: "dialog-top-transition",
|
|
516
521
|
"max-width": "600px"
|
|
@@ -520,29 +525,29 @@ const $e = /* @__PURE__ */ U({
|
|
|
520
525
|
default: w(() => [
|
|
521
526
|
k(b, null, {
|
|
522
527
|
default: w(() => [
|
|
523
|
-
|
|
528
|
+
I(j(o.value), 1)
|
|
524
529
|
]),
|
|
525
530
|
_: 1
|
|
526
531
|
}),
|
|
527
|
-
k(
|
|
532
|
+
k(q, { class: "d-flex justify-end" }, {
|
|
528
533
|
default: w(() => [
|
|
529
|
-
k(
|
|
530
|
-
onClick: g[0] || (g[0] = (
|
|
534
|
+
k(V, {
|
|
535
|
+
onClick: g[0] || (g[0] = (U) => t.value = !1),
|
|
531
536
|
color: c.value,
|
|
532
537
|
variant: "text"
|
|
533
538
|
}, {
|
|
534
539
|
default: w(() => [
|
|
535
|
-
|
|
540
|
+
I(j(p.value), 1)
|
|
536
541
|
]),
|
|
537
542
|
_: 1
|
|
538
543
|
}, 8, ["color"]),
|
|
539
|
-
k(
|
|
540
|
-
onClick:
|
|
544
|
+
k(V, {
|
|
545
|
+
onClick: A,
|
|
541
546
|
color: _.value,
|
|
542
547
|
variant: "text"
|
|
543
548
|
}, {
|
|
544
549
|
default: w(() => [
|
|
545
|
-
|
|
550
|
+
I(j(v.value), 1)
|
|
546
551
|
]),
|
|
547
552
|
_: 1
|
|
548
553
|
}, 8, ["color"])
|
|
@@ -557,7 +562,7 @@ const $e = /* @__PURE__ */ U({
|
|
|
557
562
|
}, 8, ["modelValue", "onKeydown"]);
|
|
558
563
|
};
|
|
559
564
|
}
|
|
560
|
-
}),
|
|
565
|
+
}), $e = (e) => (ve("data-v-f4ad116e"), e = e(), me(), e), Ke = /* @__PURE__ */ $e(() => /* @__PURE__ */ m("div", { class: "lds-spinner" }, [
|
|
561
566
|
/* @__PURE__ */ m("div"),
|
|
562
567
|
/* @__PURE__ */ m("div"),
|
|
563
568
|
/* @__PURE__ */ m("div"),
|
|
@@ -570,9 +575,9 @@ const $e = /* @__PURE__ */ U({
|
|
|
570
575
|
/* @__PURE__ */ m("div"),
|
|
571
576
|
/* @__PURE__ */ m("div"),
|
|
572
577
|
/* @__PURE__ */ m("div")
|
|
573
|
-
], -1)),
|
|
574
|
-
|
|
575
|
-
],
|
|
578
|
+
], -1)), We = [
|
|
579
|
+
Ke
|
|
580
|
+
], ze = /* @__PURE__ */ M({
|
|
576
581
|
__name: "index",
|
|
577
582
|
props: {
|
|
578
583
|
zIndex: {
|
|
@@ -581,21 +586,21 @@ const $e = /* @__PURE__ */ U({
|
|
|
581
586
|
}
|
|
582
587
|
},
|
|
583
588
|
setup(e) {
|
|
584
|
-
const a = H(), t = e, l =
|
|
589
|
+
const a = H(), t = e, l = i(() => ({
|
|
585
590
|
background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
586
591
|
zIndex: t.zIndex
|
|
587
592
|
}));
|
|
588
|
-
return (o,
|
|
593
|
+
return (o, n) => (R(), J("div", {
|
|
589
594
|
class: "x-cont",
|
|
590
595
|
style: ge(l.value)
|
|
591
|
-
},
|
|
596
|
+
}, We, 4));
|
|
592
597
|
}
|
|
593
598
|
}), pe = (e, a) => {
|
|
594
599
|
const t = e.__vccOpts || e;
|
|
595
600
|
for (const [l, o] of a)
|
|
596
601
|
t[l] = o;
|
|
597
602
|
return t;
|
|
598
|
-
},
|
|
603
|
+
}, Le = /* @__PURE__ */ pe(ze, [["__scopeId", "data-v-f4ad116e"]]), Fe = /* @__PURE__ */ M({
|
|
599
604
|
__name: "item",
|
|
600
605
|
props: {
|
|
601
606
|
id: {},
|
|
@@ -605,57 +610,57 @@ const $e = /* @__PURE__ */ U({
|
|
|
605
610
|
},
|
|
606
611
|
emits: ["timeout"],
|
|
607
612
|
setup(e, { emit: a }) {
|
|
608
|
-
const t = e, l =
|
|
613
|
+
const t = e, l = f(!0), o = a;
|
|
609
614
|
return S(() => {
|
|
610
615
|
setTimeout(() => {
|
|
611
616
|
o("timeout", t.id);
|
|
612
617
|
}, t.timeout);
|
|
613
|
-
}), N(l, (
|
|
614
|
-
|
|
615
|
-
}), (
|
|
618
|
+
}), N(l, (n) => {
|
|
619
|
+
n || o("timeout", t.id);
|
|
620
|
+
}), (n, r) => {
|
|
616
621
|
const c = h("v-alert");
|
|
617
|
-
return
|
|
622
|
+
return R(), E(c, {
|
|
618
623
|
modelValue: l.value,
|
|
619
|
-
"onUpdate:modelValue":
|
|
624
|
+
"onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p),
|
|
620
625
|
class: "mt-2",
|
|
621
626
|
"max-width": "90%",
|
|
622
627
|
width: "500px",
|
|
623
628
|
elevation: "1",
|
|
624
629
|
density: "compact",
|
|
625
630
|
closable: "",
|
|
626
|
-
type:
|
|
627
|
-
text:
|
|
631
|
+
type: n.type,
|
|
632
|
+
text: n.text
|
|
628
633
|
}, null, 8, ["modelValue", "type", "text"]);
|
|
629
634
|
};
|
|
630
635
|
}
|
|
631
|
-
}), Ne = /* @__PURE__ */
|
|
636
|
+
}), Ne = /* @__PURE__ */ M({
|
|
632
637
|
__name: "index",
|
|
633
638
|
setup(e) {
|
|
634
639
|
const a = he({ items: [] });
|
|
635
640
|
S(() => {
|
|
636
641
|
s.on("message", t);
|
|
637
|
-
}),
|
|
642
|
+
}), O(() => {
|
|
638
643
|
s.off("message", t);
|
|
639
644
|
});
|
|
640
645
|
const t = (c) => {
|
|
641
|
-
|
|
646
|
+
n(c.type, c.text, c.timeout);
|
|
642
647
|
}, l = (c) => {
|
|
643
|
-
|
|
648
|
+
r(c);
|
|
644
649
|
};
|
|
645
650
|
let o = 0;
|
|
646
|
-
const
|
|
651
|
+
const n = (c, p, _) => {
|
|
647
652
|
const v = o++;
|
|
648
653
|
a.items.push({ id: v, type: c, text: p, timeout: _ });
|
|
649
|
-
},
|
|
654
|
+
}, r = (c) => {
|
|
650
655
|
const p = a.items.findIndex((_) => _.id === c);
|
|
651
656
|
p >= 0 && a.items.splice(p, 1);
|
|
652
657
|
};
|
|
653
|
-
return (c, p) => (
|
|
654
|
-
onClick: p[0] || (p[0] =
|
|
658
|
+
return (c, p) => (R(), J("div", {
|
|
659
|
+
onClick: p[0] || (p[0] = K(() => {
|
|
655
660
|
}, ["stop"])),
|
|
656
661
|
class: "x-cont d-flex flex-column-reverse align-center"
|
|
657
662
|
}, [
|
|
658
|
-
(
|
|
663
|
+
(R(!0), J(we, null, xe(a.items, (_) => (R(), E(Fe, {
|
|
659
664
|
onTimeout: l,
|
|
660
665
|
id: _.id,
|
|
661
666
|
type: _.type,
|
|
@@ -665,55 +670,55 @@ const $e = /* @__PURE__ */ U({
|
|
|
665
670
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
666
671
|
]));
|
|
667
672
|
}
|
|
668
|
-
}), He = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-8c2268ea"]]), Je = /* @__PURE__ */
|
|
673
|
+
}), He = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-8c2268ea"]]), Je = /* @__PURE__ */ M({
|
|
669
674
|
__name: "index",
|
|
670
675
|
setup(e) {
|
|
671
|
-
const a = Q(), { open: t } = P("promptDlg"), l =
|
|
676
|
+
const a = Q(), { open: t } = P("promptDlg"), l = f(""), o = f(""), n = f(), r = f(), c = f(), p = f(""), _ = f(), v = f(), y = i(() => {
|
|
672
677
|
var d;
|
|
673
678
|
return ((d = _.value) == null ? void 0 : d.color) ?? "primary";
|
|
674
|
-
}), C =
|
|
679
|
+
}), C = i(() => {
|
|
675
680
|
var d;
|
|
676
681
|
return ((d = _.value) == null ? void 0 : d.text) ?? a.t("cancel");
|
|
677
|
-
}),
|
|
682
|
+
}), T = i(() => {
|
|
678
683
|
var d;
|
|
679
684
|
return ((d = v.value) == null ? void 0 : d.color) ?? "primary";
|
|
680
|
-
}),
|
|
685
|
+
}), A = i(() => {
|
|
681
686
|
var d;
|
|
682
687
|
return ((d = v.value) == null ? void 0 : d.text) ?? a.t("confirm");
|
|
683
|
-
}), u =
|
|
688
|
+
}), u = f();
|
|
684
689
|
let g = 0, b = !1;
|
|
685
|
-
const
|
|
690
|
+
const V = async (d) => {
|
|
686
691
|
var x;
|
|
687
|
-
l.value = d.title, o.value = d.text,
|
|
692
|
+
l.value = d.title, o.value = d.text, n.value = d.label, r.value = d.placeholder, c.value = d.rules, p.value = d.value, _.value = d.cancel, v.value = d.confirm, g = d.seq, b = !1, t.value = !0, await Z(() => u.value !== void 0, 1e3), (x = u.value) == null || x.focus();
|
|
688
693
|
};
|
|
689
694
|
S(() => {
|
|
690
|
-
s.on("promptDlg",
|
|
691
|
-
}),
|
|
692
|
-
s.off("promptDlg",
|
|
695
|
+
s.on("promptDlg", V);
|
|
696
|
+
}), O(() => {
|
|
697
|
+
s.off("promptDlg", V);
|
|
693
698
|
});
|
|
694
|
-
const
|
|
699
|
+
const q = () => {
|
|
695
700
|
t.value = !1, b || (s.emit("promptDlgResult" + g, p.value ?? ""), b = !0);
|
|
696
701
|
};
|
|
697
702
|
return N(t, (d) => {
|
|
698
703
|
!d && !b && (s.emit("promptDlgResult" + g, void 0), b = !0);
|
|
699
704
|
}), (d, x) => {
|
|
700
|
-
const
|
|
701
|
-
return
|
|
702
|
-
modelValue:
|
|
703
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
705
|
+
const U = h("v-card-text"), se = h("v-text-field"), _e = h("v-form"), ee = h("v-btn"), de = h("v-card-actions"), fe = h("v-card"), ie = h("v-dialog");
|
|
706
|
+
return R(), E(ie, {
|
|
707
|
+
modelValue: L(t),
|
|
708
|
+
"onUpdate:modelValue": x[2] || (x[2] = ($) => G(t) ? t.value = $ : null),
|
|
704
709
|
onKeydown: [
|
|
705
|
-
x[3] || (x[3] =
|
|
706
|
-
|
|
710
|
+
x[3] || (x[3] = F(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
711
|
+
F(K(q, ["stop", "prevent"]), ["enter"])
|
|
707
712
|
],
|
|
708
713
|
transition: "dialog-top-transition",
|
|
709
714
|
"max-width": "600px"
|
|
710
715
|
}, {
|
|
711
716
|
default: w(() => [
|
|
712
|
-
k(
|
|
717
|
+
k(fe, { title: l.value }, {
|
|
713
718
|
default: w(() => [
|
|
714
|
-
o.value ? (
|
|
719
|
+
o.value ? (R(), E(U, { key: 0 }, {
|
|
715
720
|
default: w(() => [
|
|
716
|
-
|
|
721
|
+
I(j(o.value), 1)
|
|
717
722
|
]),
|
|
718
723
|
_: 1
|
|
719
724
|
})) : ye("", !0),
|
|
@@ -721,9 +726,9 @@ const $e = /* @__PURE__ */ U({
|
|
|
721
726
|
default: w(() => [
|
|
722
727
|
k(se, {
|
|
723
728
|
modelValue: p.value,
|
|
724
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
725
|
-
label:
|
|
726
|
-
placeholder:
|
|
729
|
+
"onUpdate:modelValue": x[0] || (x[0] = ($) => p.value = $),
|
|
730
|
+
label: n.value,
|
|
731
|
+
placeholder: r.value,
|
|
727
732
|
rules: c.value,
|
|
728
733
|
ref_key: "target",
|
|
729
734
|
ref: u
|
|
@@ -734,22 +739,22 @@ const $e = /* @__PURE__ */ U({
|
|
|
734
739
|
k(de, { class: "d-flex justify-end" }, {
|
|
735
740
|
default: w(() => [
|
|
736
741
|
k(ee, {
|
|
737
|
-
onClick: x[1] || (x[1] = (
|
|
742
|
+
onClick: x[1] || (x[1] = ($) => t.value = !1),
|
|
738
743
|
color: y.value,
|
|
739
744
|
variant: "text"
|
|
740
745
|
}, {
|
|
741
746
|
default: w(() => [
|
|
742
|
-
|
|
747
|
+
I(j(C.value), 1)
|
|
743
748
|
]),
|
|
744
749
|
_: 1
|
|
745
750
|
}, 8, ["color"]),
|
|
746
751
|
k(ee, {
|
|
747
|
-
onClick:
|
|
748
|
-
color:
|
|
752
|
+
onClick: q,
|
|
753
|
+
color: T.value,
|
|
749
754
|
variant: "text"
|
|
750
755
|
}, {
|
|
751
756
|
default: w(() => [
|
|
752
|
-
|
|
757
|
+
I(j(A.value), 1)
|
|
753
758
|
]),
|
|
754
759
|
_: 1
|
|
755
760
|
}, 8, ["color"])
|
|
@@ -764,7 +769,7 @@ const $e = /* @__PURE__ */ U({
|
|
|
764
769
|
}, 8, ["modelValue", "onKeydown"]);
|
|
765
770
|
};
|
|
766
771
|
}
|
|
767
|
-
}), Xe = { class: "mx-auto my-auto" }, Ge = { class: "d-flex align-center justify-center w-100 h-100" }, Qe = /* @__PURE__ */
|
|
772
|
+
}), Xe = { class: "mx-auto my-auto" }, Ge = { class: "d-flex align-center justify-center w-100 h-100" }, Qe = /* @__PURE__ */ M({
|
|
768
773
|
__name: "index",
|
|
769
774
|
setup(e) {
|
|
770
775
|
const a = Q(), { open: t } = P("waitDlg"), l = () => {
|
|
@@ -774,13 +779,13 @@ const $e = /* @__PURE__ */ U({
|
|
|
774
779
|
};
|
|
775
780
|
return S(() => {
|
|
776
781
|
s.on("openWaitDlg", l), s.on("closeWaitDlg", o);
|
|
777
|
-
}),
|
|
782
|
+
}), O(() => {
|
|
778
783
|
s.off("openWaitDlg", l), s.off("closeWaitDlg", o);
|
|
779
|
-
}), (
|
|
784
|
+
}), (n, r) => {
|
|
780
785
|
const c = h("v-card"), p = h("v-dialog");
|
|
781
|
-
return
|
|
782
|
-
modelValue:
|
|
783
|
-
"onUpdate:modelValue":
|
|
786
|
+
return R(), E(p, {
|
|
787
|
+
modelValue: L(t),
|
|
788
|
+
"onUpdate:modelValue": r[0] || (r[0] = (_) => G(t) ? t.value = _ : null),
|
|
784
789
|
persistent: "",
|
|
785
790
|
"no-click-animation": "",
|
|
786
791
|
fullscreen: ""
|
|
@@ -794,7 +799,7 @@ const $e = /* @__PURE__ */ U({
|
|
|
794
799
|
}, {
|
|
795
800
|
default: w(() => [
|
|
796
801
|
m("div", Ge, [
|
|
797
|
-
m("span", null,
|
|
802
|
+
m("span", null, j(L(a).t("waitingResponse")), 1)
|
|
798
803
|
])
|
|
799
804
|
]),
|
|
800
805
|
_: 1
|
|
@@ -806,17 +811,17 @@ const $e = /* @__PURE__ */ U({
|
|
|
806
811
|
};
|
|
807
812
|
}
|
|
808
813
|
}), Ye = (e) => {
|
|
809
|
-
e.component("x-confirm-dlg",
|
|
814
|
+
e.component("x-confirm-dlg", Ue), e.component("x-loading", Le), e.component("x-message", He), e.component("x-prompt-dlg", Je), e.component("x-wait-dlg", Qe);
|
|
810
815
|
};
|
|
811
816
|
function gt() {
|
|
812
|
-
const e = H(), a =
|
|
817
|
+
const e = H(), a = i(() => e.global.current.value.colors.primary), t = i(() => e.global.current.value.colors.secondary), l = i(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = i(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = i(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), r = i(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = i(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
813
818
|
return {
|
|
814
819
|
primaryColor: a,
|
|
815
820
|
secondaryColor: t,
|
|
816
821
|
backgroundColor0: l,
|
|
817
822
|
backgroundColor1: o,
|
|
818
|
-
backgroundColor2:
|
|
819
|
-
highlightColor:
|
|
823
|
+
backgroundColor2: n,
|
|
824
|
+
highlightColor: r,
|
|
820
825
|
borderColor: c
|
|
821
826
|
};
|
|
822
827
|
}
|
|
@@ -824,19 +829,19 @@ function Ze(e, a) {
|
|
|
824
829
|
return e.post("pullPermission", a);
|
|
825
830
|
}
|
|
826
831
|
function vt(e, a) {
|
|
827
|
-
const t = Ce(), l =
|
|
828
|
-
let
|
|
832
|
+
const t = Ce(), l = re(), o = Y(), n = ne();
|
|
833
|
+
let r = !0;
|
|
829
834
|
const c = () => {
|
|
830
|
-
|
|
835
|
+
r = !1;
|
|
831
836
|
}, p = () => {
|
|
832
|
-
|
|
837
|
+
r = !0;
|
|
833
838
|
}, _ = () => {
|
|
834
839
|
var g;
|
|
835
|
-
if (!
|
|
836
|
-
|
|
840
|
+
if (!n.isEmpty()) {
|
|
841
|
+
n.hasView("waitDlg") || n.popView();
|
|
837
842
|
return;
|
|
838
843
|
}
|
|
839
|
-
const u =
|
|
844
|
+
const u = W(t.path);
|
|
840
845
|
(u == null ? void 0 : u.level) === 0 ? (g = navigator == null ? void 0 : navigator.Backbutton) == null || g.goHome(
|
|
841
846
|
() => {
|
|
842
847
|
},
|
|
@@ -846,7 +851,7 @@ function vt(e, a) {
|
|
|
846
851
|
};
|
|
847
852
|
S(() => {
|
|
848
853
|
s.on("pause", c), s.on("resume", p), s.on("backbutton", _);
|
|
849
|
-
}),
|
|
854
|
+
}), O(() => {
|
|
850
855
|
s.off("pause", c), s.off("resume", p), s.off("backbutton", _);
|
|
851
856
|
});
|
|
852
857
|
const v = (u) => {
|
|
@@ -865,14 +870,14 @@ function vt(e, a) {
|
|
|
865
870
|
};
|
|
866
871
|
S(() => {
|
|
867
872
|
window.addEventListener("keydown", v);
|
|
868
|
-
}),
|
|
873
|
+
}), O(() => {
|
|
869
874
|
window.removeEventListener("keydown", v);
|
|
870
875
|
});
|
|
871
876
|
let y;
|
|
872
877
|
const C = async () => {
|
|
873
|
-
if (!
|
|
878
|
+
if (!r)
|
|
874
879
|
return;
|
|
875
|
-
const u =
|
|
880
|
+
const u = W(t.path);
|
|
876
881
|
if (!(!u || u.requiredState !== "org"))
|
|
877
882
|
try {
|
|
878
883
|
const { update: g, permissions: b } = await Ze(a, {
|
|
@@ -880,28 +885,28 @@ function vt(e, a) {
|
|
|
880
885
|
});
|
|
881
886
|
if (!g)
|
|
882
887
|
return;
|
|
883
|
-
const
|
|
884
|
-
for (const
|
|
885
|
-
if (
|
|
888
|
+
const V = {};
|
|
889
|
+
for (const q in b) {
|
|
890
|
+
if (q === "checksum")
|
|
886
891
|
continue;
|
|
887
|
-
const d = b[
|
|
888
|
-
q
|
|
892
|
+
const d = b[q];
|
|
893
|
+
V[q] = JSON.parse(d);
|
|
889
894
|
}
|
|
890
|
-
o.permissionObjects =
|
|
895
|
+
o.permissionObjects = V, o.permissionChecksum = b.checksum ?? "";
|
|
891
896
|
} catch (g) {
|
|
892
897
|
console.error(g);
|
|
893
898
|
}
|
|
894
|
-
},
|
|
899
|
+
}, T = async (u) => {
|
|
895
900
|
u && await C(), clearTimeout(y), y = setTimeout(async () => {
|
|
896
|
-
await C(), y &&
|
|
901
|
+
await C(), y && T();
|
|
897
902
|
}, 3e3);
|
|
898
|
-
},
|
|
903
|
+
}, A = () => {
|
|
899
904
|
clearTimeout(y), y = void 0;
|
|
900
905
|
};
|
|
901
906
|
S(() => {
|
|
902
|
-
a &&
|
|
903
|
-
}),
|
|
904
|
-
|
|
907
|
+
a && T(!0);
|
|
908
|
+
}), O(() => {
|
|
909
|
+
A();
|
|
905
910
|
});
|
|
906
911
|
}
|
|
907
912
|
function mt() {
|
|
@@ -913,25 +918,25 @@ function mt() {
|
|
|
913
918
|
return { verifyPermission: a };
|
|
914
919
|
}
|
|
915
920
|
function ht() {
|
|
916
|
-
const e = H(), a = ke(), t =
|
|
921
|
+
const e = H(), a = ke(), t = i(() => e.current.value.dark), l = i(() => !!window.cordova), o = i(() => a.width.value <= 1280 ? a.width.value + "px" : a.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
917
922
|
return { dark: t, sysBarAvail: l, compactWidth: o };
|
|
918
923
|
}
|
|
919
924
|
const wt = { install: Ye };
|
|
920
925
|
export {
|
|
921
|
-
|
|
922
|
-
|
|
926
|
+
Ie as Permission,
|
|
927
|
+
je as appAppear,
|
|
923
928
|
pt as closeWaitDlg,
|
|
924
929
|
lt as createAxios,
|
|
925
930
|
wt as default,
|
|
926
931
|
s as eventBus,
|
|
927
932
|
ae as isExist,
|
|
928
|
-
|
|
933
|
+
W as matchRouteMeta,
|
|
929
934
|
st as messageError,
|
|
930
935
|
_t as messageInfo,
|
|
931
936
|
dt as messageSuccess,
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
937
|
+
ft as messageWarning,
|
|
938
|
+
it as onBeforeEach,
|
|
939
|
+
nt as openConfirmDlg,
|
|
935
940
|
ct as openPromptDlg,
|
|
936
941
|
ut as openWaitDlg,
|
|
937
942
|
oe as routeTransName,
|
|
@@ -940,8 +945,8 @@ export {
|
|
|
940
945
|
vt as useMicroApp,
|
|
941
946
|
mt as usePermission,
|
|
942
947
|
ht as useSystem,
|
|
943
|
-
|
|
948
|
+
ne as useViewMgrStore,
|
|
944
949
|
P as useViewStack,
|
|
945
|
-
|
|
950
|
+
rt as waitMs,
|
|
946
951
|
Z as waitUtil
|
|
947
952
|
};
|