x-essential-lib 0.6.3 → 0.6.5
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 +178 -179
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{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-d525e6f5]{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 d, defineComponent as T, computed as g, onMounted as V, onBeforeUnmount as I, watch as Z, resolveComponent as h, openBlock as D, createBlock as O, withKeys as F, withModifiers as W, withCtx as w, createVNode as b, createTextVNode as
|
|
2
|
+
import { ref as d, defineComponent as T, computed as g, onMounted as V, onBeforeUnmount as I, watch as Z, resolveComponent as h, openBlock as D, createBlock as O, withKeys as F, withModifiers as W, withCtx as w, createVNode as b, createTextVNode as E, toDisplayString as q, createElementBlock as Q, normalizeStyle as ne, pushScopeId as fe, popScopeId as ge, createElementVNode as v, createCommentVNode as le, unref as re, Fragment as ve, renderList as me, getCurrentScope as he, onScopeDispose as we, watchEffect as ye, getCurrentInstance as xe } from "vue";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
4
|
import { defineStore as ce } from "pinia";
|
|
5
5
|
import ke from "axios";
|
|
6
6
|
import { useRouter as ue, useRoute as be } from "vue-router";
|
|
7
7
|
import { useTheme as P, useDisplay as Ce } from "vuetify";
|
|
8
8
|
const G = ce("global", () => {
|
|
9
|
-
const e = d(),
|
|
9
|
+
const e = d(), a = d("en"), t = d({}), n = d(""), o = d("");
|
|
10
10
|
return {
|
|
11
11
|
dark: e,
|
|
12
|
-
locale:
|
|
13
|
-
permissionObjects:
|
|
12
|
+
locale: a,
|
|
13
|
+
permissionObjects: t,
|
|
14
14
|
permissionChecksum: n,
|
|
15
15
|
lastAppPath: o
|
|
16
16
|
};
|
|
17
17
|
}), $ = ce("viewMgr", () => {
|
|
18
18
|
const e = d([]);
|
|
19
|
-
function
|
|
19
|
+
function a() {
|
|
20
20
|
return e.value.length <= 0;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function t() {
|
|
23
23
|
const u = e.value.length;
|
|
24
24
|
if (u > 0)
|
|
25
25
|
return e.value[u - 1];
|
|
@@ -43,8 +43,8 @@ const G = ce("global", () => {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
views: e,
|
|
46
|
-
isEmpty:
|
|
47
|
-
lastView:
|
|
46
|
+
isEmpty: a,
|
|
47
|
+
lastView: t,
|
|
48
48
|
hasView: n,
|
|
49
49
|
addView: o,
|
|
50
50
|
delView: r,
|
|
@@ -54,10 +54,10 @@ const G = ce("global", () => {
|
|
|
54
54
|
});
|
|
55
55
|
/*! js-cookie v3.0.5 | MIT */
|
|
56
56
|
function X(e) {
|
|
57
|
-
for (var
|
|
58
|
-
var
|
|
59
|
-
for (var n in
|
|
60
|
-
e[n] =
|
|
57
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
58
|
+
var t = arguments[a];
|
|
59
|
+
for (var n in t)
|
|
60
|
+
e[n] = t[n];
|
|
61
61
|
}
|
|
62
62
|
return e;
|
|
63
63
|
}
|
|
@@ -72,10 +72,10 @@ var De = {
|
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
function J(e,
|
|
76
|
-
function
|
|
75
|
+
function J(e, a) {
|
|
76
|
+
function t(o, r, l) {
|
|
77
77
|
if (!(typeof document > "u")) {
|
|
78
|
-
l = X({},
|
|
78
|
+
l = X({}, a, l), typeof l.expires == "number" && (l.expires = new Date(Date.now() + l.expires * 864e5)), l.expires && (l.expires = l.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
79
79
|
var c = "";
|
|
80
80
|
for (var u in l)
|
|
81
81
|
l[u] && (c += "; " + u, l[u] !== !0 && (c += "=" + l[u].split(";")[0]));
|
|
@@ -98,10 +98,10 @@ function J(e, t) {
|
|
|
98
98
|
}
|
|
99
99
|
return Object.create(
|
|
100
100
|
{
|
|
101
|
-
set:
|
|
101
|
+
set: t,
|
|
102
102
|
get: n,
|
|
103
103
|
remove: function(o, r) {
|
|
104
|
-
|
|
104
|
+
t(
|
|
105
105
|
o,
|
|
106
106
|
"",
|
|
107
107
|
X({}, r, {
|
|
@@ -117,64 +117,64 @@ function J(e, t) {
|
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
attributes: { value: Object.freeze(
|
|
120
|
+
attributes: { value: Object.freeze(a) },
|
|
121
121
|
converter: { value: Object.freeze(e) }
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
-
var
|
|
125
|
+
var j = J(De, { path: "/" });
|
|
126
126
|
function xt(e) {
|
|
127
|
-
const
|
|
127
|
+
const a = ke.create({
|
|
128
128
|
timeout: 6e3
|
|
129
129
|
});
|
|
130
|
-
return
|
|
131
|
-
(
|
|
132
|
-
(
|
|
133
|
-
Ve(
|
|
130
|
+
return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
|
|
131
|
+
(t) => Le(t),
|
|
132
|
+
(t) => {
|
|
133
|
+
Ve(t, e.onError);
|
|
134
134
|
}
|
|
135
|
-
),
|
|
136
|
-
(
|
|
137
|
-
(
|
|
138
|
-
),
|
|
135
|
+
), a.interceptors.response.use(
|
|
136
|
+
(t) => Me(t),
|
|
137
|
+
(t) => Se(t, e.onError)
|
|
138
|
+
), a;
|
|
139
139
|
}
|
|
140
140
|
function Le(e) {
|
|
141
|
-
const
|
|
142
|
-
return e.headers.Authorization = "Basic " +
|
|
141
|
+
const a = j.get("accessToken") ?? "";
|
|
142
|
+
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
143
143
|
}
|
|
144
|
-
function Ve(e,
|
|
145
|
-
console.error(e),
|
|
144
|
+
function Ve(e, a) {
|
|
145
|
+
console.error(e), a("request timeout");
|
|
146
146
|
}
|
|
147
147
|
function Me(e) {
|
|
148
148
|
return e.data;
|
|
149
149
|
}
|
|
150
|
-
function Se(e,
|
|
150
|
+
function Se(e, a) {
|
|
151
151
|
var o;
|
|
152
|
-
const
|
|
153
|
-
if (!
|
|
152
|
+
const t = e.response;
|
|
153
|
+
if (!t)
|
|
154
154
|
return Promise.reject(e);
|
|
155
|
-
|
|
156
|
-
let n = (o =
|
|
155
|
+
t.status === 401 && Ae();
|
|
156
|
+
let n = (o = t.data) == null ? void 0 : o.message;
|
|
157
157
|
return n || (n = {
|
|
158
|
-
code:
|
|
159
|
-
message:
|
|
160
|
-
}),
|
|
158
|
+
code: t.status,
|
|
159
|
+
message: t.statusText
|
|
160
|
+
}), a(n), Promise.reject(e);
|
|
161
161
|
}
|
|
162
162
|
function Ae() {
|
|
163
|
-
|
|
163
|
+
j.remove("accessToken"), j.remove("refreshToken"), j.remove("activeOrg"), ue().replace({ path: "/passport/login" });
|
|
164
164
|
}
|
|
165
165
|
function qe(e) {
|
|
166
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(
|
|
167
|
-
var n = e.get(
|
|
168
|
-
n ? n.push(
|
|
169
|
-
}, off: function(
|
|
170
|
-
var n = e.get(
|
|
171
|
-
n && (
|
|
172
|
-
}, emit: function(
|
|
173
|
-
var n = e.get(
|
|
166
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
167
|
+
var n = e.get(a);
|
|
168
|
+
n ? n.push(t) : e.set(a, [t]);
|
|
169
|
+
}, off: function(a, t) {
|
|
170
|
+
var n = e.get(a);
|
|
171
|
+
n && (t ? n.splice(n.indexOf(t) >>> 0, 1) : e.set(a, []));
|
|
172
|
+
}, emit: function(a, t) {
|
|
173
|
+
var n = e.get(a);
|
|
174
174
|
n && n.slice().map(function(o) {
|
|
175
|
-
o(
|
|
175
|
+
o(t);
|
|
176
176
|
}), (n = e.get("*")) && n.slice().map(function(o) {
|
|
177
|
-
o(
|
|
177
|
+
o(a, t);
|
|
178
178
|
});
|
|
179
179
|
} };
|
|
180
180
|
}
|
|
@@ -182,24 +182,23 @@ const s = function() {
|
|
|
182
182
|
return window.eventBus || (window.eventBus = qe()), window.eventBus;
|
|
183
183
|
}();
|
|
184
184
|
async function kt(e) {
|
|
185
|
-
return new Promise((
|
|
186
|
-
setTimeout(
|
|
185
|
+
return new Promise((a) => {
|
|
186
|
+
setTimeout(a, e);
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
async function ee(e,
|
|
189
|
+
async function ee(e, a, t) {
|
|
190
190
|
const n = Date.now();
|
|
191
191
|
return new Promise((o) => {
|
|
192
192
|
const r = async () => {
|
|
193
|
-
e() ? o(!0) :
|
|
193
|
+
e() ? o(!0) : a && Date.now() - n > a ? o(!1) : setTimeout(r, t ?? 30);
|
|
194
194
|
};
|
|
195
195
|
r();
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function Re(e,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
n.add("app-reset");
|
|
198
|
+
function Re(e, a) {
|
|
199
|
+
const t = document.getElementById("single-spa-application:" + e);
|
|
200
|
+
t && (t.classList.remove("app-left", "app-right", "app-reset"), a ? t.classList.add("app-left") : t.classList.add("app-right"), setTimeout(() => {
|
|
201
|
+
t.classList.add("app-reset");
|
|
203
202
|
}, 50));
|
|
204
203
|
}
|
|
205
204
|
let ae = Date.now();
|
|
@@ -214,20 +213,20 @@ function pe() {
|
|
|
214
213
|
async function bt(e) {
|
|
215
214
|
if (!se())
|
|
216
215
|
return;
|
|
217
|
-
let
|
|
216
|
+
let a = !1, t;
|
|
218
217
|
const n = (r) => {
|
|
219
|
-
|
|
218
|
+
t = r, a = !0;
|
|
220
219
|
}, o = pe();
|
|
221
|
-
return s.on("confirmDlgResult" + o, n), s.emit("confirmDlg", { ...e, seq: o }), await ee(() =>
|
|
220
|
+
return s.on("confirmDlgResult" + o, n), s.emit("confirmDlg", { ...e, seq: o }), await ee(() => a), s.off("confirmDlgResult" + o, n), t;
|
|
222
221
|
}
|
|
223
222
|
async function Ct(e) {
|
|
224
223
|
if (!se())
|
|
225
224
|
return;
|
|
226
|
-
let
|
|
225
|
+
let a = !1, t;
|
|
227
226
|
const n = (r) => {
|
|
228
|
-
|
|
227
|
+
t = r, a = !0;
|
|
229
228
|
}, o = pe();
|
|
230
|
-
return s.on("promptDlgResult" + o, n), s.emit("promptDlg", { ...e, seq: o }), await ee(() =>
|
|
229
|
+
return s.on("promptDlgResult" + o, n), s.emit("promptDlg", { ...e, seq: o }), await ee(() => a), s.off("promptDlgResult" + o, n), t;
|
|
231
230
|
}
|
|
232
231
|
function Dt(e) {
|
|
233
232
|
s.emit("openWaitDlg", { text: e });
|
|
@@ -235,33 +234,33 @@ function Dt(e) {
|
|
|
235
234
|
function Lt() {
|
|
236
235
|
s.emit("closeWaitDlg");
|
|
237
236
|
}
|
|
238
|
-
function Vt(e,
|
|
239
|
-
s.emit("message", { type: "error", text: e, timeout:
|
|
237
|
+
function Vt(e, a) {
|
|
238
|
+
s.emit("message", { type: "error", text: e, timeout: a });
|
|
240
239
|
}
|
|
241
|
-
function Mt(e,
|
|
242
|
-
s.emit("message", { type: "info", text: e, timeout:
|
|
240
|
+
function Mt(e, a) {
|
|
241
|
+
s.emit("message", { type: "info", text: e, timeout: a });
|
|
243
242
|
}
|
|
244
|
-
function St(e,
|
|
245
|
-
s.emit("message", { type: "success", text: e, timeout:
|
|
243
|
+
function St(e, a) {
|
|
244
|
+
s.emit("message", { type: "success", text: e, timeout: a });
|
|
246
245
|
}
|
|
247
|
-
function At(e,
|
|
248
|
-
s.emit("message", { type: "warning", text: e, timeout:
|
|
246
|
+
function At(e, a) {
|
|
247
|
+
s.emit("message", { type: "warning", text: e, timeout: a });
|
|
249
248
|
}
|
|
250
249
|
var Oe = /* @__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))(Oe || {});
|
|
251
|
-
function oe(e,
|
|
250
|
+
function oe(e, a) {
|
|
252
251
|
if (!e)
|
|
253
252
|
return !1;
|
|
254
|
-
let
|
|
255
|
-
return Object.keys(
|
|
256
|
-
if (Object.keys(
|
|
253
|
+
let t = e;
|
|
254
|
+
return Object.keys(t).length <= 0 || (a.split("/").forEach((o) => {
|
|
255
|
+
if (Object.keys(t).length <= 0)
|
|
257
256
|
return !0;
|
|
258
|
-
if (
|
|
259
|
-
|
|
257
|
+
if (t[o])
|
|
258
|
+
t = t[o];
|
|
260
259
|
else
|
|
261
260
|
return !1;
|
|
262
|
-
}), Object.keys(
|
|
261
|
+
}), Object.keys(t).length <= 0);
|
|
263
262
|
}
|
|
264
|
-
const
|
|
263
|
+
const Ee = [
|
|
265
264
|
{
|
|
266
265
|
app: "x-passport-mf",
|
|
267
266
|
path: "/passport/login",
|
|
@@ -370,91 +369,91 @@ const je = [
|
|
|
370
369
|
}
|
|
371
370
|
];
|
|
372
371
|
function K(e) {
|
|
373
|
-
let
|
|
372
|
+
let a, t = 0;
|
|
374
373
|
const n = e.split("/").filter((o) => o.trim() !== "");
|
|
375
|
-
return
|
|
374
|
+
return Ee.forEach((o) => {
|
|
376
375
|
const r = o.path.split("/").filter((c) => c.trim() !== "");
|
|
377
376
|
let l = 0;
|
|
378
377
|
for (let c = 0; c < n.length && !(c >= r.length || n[c] !== r[c]); c++)
|
|
379
378
|
l++;
|
|
380
|
-
l > 0 && l >
|
|
381
|
-
}),
|
|
379
|
+
l > 0 && l > t && (a = o, t = l);
|
|
380
|
+
}), a;
|
|
382
381
|
}
|
|
383
382
|
const N = d("");
|
|
384
|
-
function L(e,
|
|
385
|
-
const
|
|
386
|
-
|
|
387
|
-
const n = K(e), o = K(
|
|
383
|
+
function L(e, a) {
|
|
384
|
+
const t = G();
|
|
385
|
+
a === "/" && (a = t.lastAppPath);
|
|
386
|
+
const n = K(e), o = K(a);
|
|
388
387
|
if (!n) {
|
|
389
388
|
console.assert(!1);
|
|
390
389
|
return;
|
|
391
390
|
}
|
|
392
|
-
if (console.info(`~~~~routeChange~~~~ ${
|
|
391
|
+
if (console.info(`~~~~routeChange~~~~ ${a} -> ${e}`), !o)
|
|
393
392
|
return;
|
|
394
393
|
const r = n.app === o.app, l = n.path === o.path, c = n.level >= o.level;
|
|
395
394
|
r ? l ? N.value = "" : N.value = c ? "inner-left" : "inner-right" : (N.value = "", Re(n.app, c));
|
|
396
395
|
}
|
|
397
|
-
function
|
|
398
|
-
return !!
|
|
396
|
+
function je() {
|
|
397
|
+
return !!j.get("accessToken");
|
|
399
398
|
}
|
|
400
399
|
function Te() {
|
|
401
|
-
return !!
|
|
400
|
+
return !!j.get("activeOrg");
|
|
402
401
|
}
|
|
403
|
-
function qt(e,
|
|
404
|
-
const n =
|
|
402
|
+
function qt(e, a, t) {
|
|
403
|
+
const n = je(), o = Te(), r = K(e.path);
|
|
405
404
|
if (!r) {
|
|
406
|
-
console.assert(!1),
|
|
405
|
+
console.assert(!1), t();
|
|
407
406
|
return;
|
|
408
407
|
}
|
|
409
408
|
if (r.requiredState === "auth")
|
|
410
409
|
if (n)
|
|
411
410
|
if (o) {
|
|
412
411
|
const l = "/main";
|
|
413
|
-
L(l,
|
|
412
|
+
L(l, a.path), t({ path: l });
|
|
414
413
|
} else
|
|
415
|
-
L(e.path,
|
|
414
|
+
L(e.path, a.path), t();
|
|
416
415
|
else {
|
|
417
416
|
const l = "/passport/login";
|
|
418
|
-
L(l,
|
|
417
|
+
L(l, a.path), t({ path: l });
|
|
419
418
|
}
|
|
420
419
|
else if (r.requiredState === "org")
|
|
421
420
|
if (n)
|
|
422
421
|
if (o)
|
|
423
|
-
L(e.path,
|
|
422
|
+
L(e.path, a.path), t();
|
|
424
423
|
else {
|
|
425
424
|
const l = "/org/joinOrCreate";
|
|
426
|
-
L(l,
|
|
425
|
+
L(l, a.path), t({ path: l });
|
|
427
426
|
}
|
|
428
427
|
else {
|
|
429
428
|
const l = "/passport/login";
|
|
430
|
-
L(l,
|
|
429
|
+
L(l, a.path), t({ path: l });
|
|
431
430
|
}
|
|
432
431
|
else if (n)
|
|
433
432
|
if (o) {
|
|
434
433
|
const l = "/main";
|
|
435
|
-
L(l,
|
|
434
|
+
L(l, a.path), t({ path: l });
|
|
436
435
|
} else {
|
|
437
436
|
const l = "/org/joinOrCreate";
|
|
438
|
-
L(l,
|
|
437
|
+
L(l, a.path), t({ path: l });
|
|
439
438
|
}
|
|
440
439
|
else
|
|
441
|
-
L(e.path,
|
|
440
|
+
L(e.path, a.path), t();
|
|
442
441
|
}
|
|
443
442
|
const Be = /* @__PURE__ */ T({
|
|
444
443
|
__name: "index",
|
|
445
444
|
setup(e) {
|
|
446
|
-
const { t } = Y(),
|
|
445
|
+
const { t: a } = Y(), t = $(), n = g({
|
|
447
446
|
get() {
|
|
448
|
-
return
|
|
447
|
+
return t.hasView("confirmDlg");
|
|
449
448
|
},
|
|
450
449
|
set(m) {
|
|
451
|
-
m ?
|
|
450
|
+
m ? t.addView("confirmDlg") : t.delView("confirmDlg");
|
|
452
451
|
}
|
|
453
452
|
}), o = d(""), r = d(""), l = d(""), c = d(""), u = d(""), p = d("");
|
|
454
453
|
let _ = 0, y = !1;
|
|
455
454
|
const i = (m) => {
|
|
456
455
|
var x, C, S, R;
|
|
457
|
-
o.value = m.title, r.value = m.text, l.value = ((x = m.cancel) == null ? void 0 : x.color) ?? "primary", c.value = ((C = m.cancel) == null ? void 0 : C.text) ??
|
|
456
|
+
o.value = m.title, r.value = m.text, l.value = ((x = m.cancel) == null ? void 0 : x.color) ?? "primary", c.value = ((C = m.cancel) == null ? void 0 : C.text) ?? a("dlg.common.cancel"), u.value = ((S = m.confirm) == null ? void 0 : S.color) ?? "primary", p.value = ((R = m.confirm) == null ? void 0 : R.text) ?? a("dlg.common.confirm"), _ = m.seq, y = !1, n.value = !0;
|
|
458
457
|
};
|
|
459
458
|
V(() => {
|
|
460
459
|
s.on("confirmDlg", i);
|
|
@@ -483,7 +482,7 @@ const Be = /* @__PURE__ */ T({
|
|
|
483
482
|
default: w(() => [
|
|
484
483
|
b(C, null, {
|
|
485
484
|
default: w(() => [
|
|
486
|
-
|
|
485
|
+
E(q(r.value), 1)
|
|
487
486
|
]),
|
|
488
487
|
_: 1
|
|
489
488
|
}),
|
|
@@ -495,7 +494,7 @@ const Be = /* @__PURE__ */ T({
|
|
|
495
494
|
onClick: x[0] || (x[0] = (A) => n.value = !1)
|
|
496
495
|
}, {
|
|
497
496
|
default: w(() => [
|
|
498
|
-
|
|
497
|
+
E(q(c.value), 1)
|
|
499
498
|
]),
|
|
500
499
|
_: 1
|
|
501
500
|
}, 8, ["color"]),
|
|
@@ -505,7 +504,7 @@ const Be = /* @__PURE__ */ T({
|
|
|
505
504
|
onClick: M
|
|
506
505
|
}, {
|
|
507
506
|
default: w(() => [
|
|
508
|
-
|
|
507
|
+
E(q(p.value), 1)
|
|
509
508
|
]),
|
|
510
509
|
_: 1
|
|
511
510
|
}, 8, ["color"])
|
|
@@ -541,20 +540,20 @@ const Be = /* @__PURE__ */ T({
|
|
|
541
540
|
zIndex: { default: 1 }
|
|
542
541
|
},
|
|
543
542
|
setup(e) {
|
|
544
|
-
const
|
|
545
|
-
background:
|
|
546
|
-
zIndex:
|
|
543
|
+
const a = P(), t = e, n = g(() => ({
|
|
544
|
+
background: a.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
545
|
+
zIndex: t.zIndex
|
|
547
546
|
}));
|
|
548
547
|
return (o, r) => (D(), Q("div", {
|
|
549
548
|
class: "x-cont",
|
|
550
549
|
style: ne(n.value)
|
|
551
550
|
}, $e, 4));
|
|
552
551
|
}
|
|
553
|
-
}), te = (e,
|
|
554
|
-
const
|
|
555
|
-
for (const [n, o] of
|
|
556
|
-
|
|
557
|
-
return
|
|
552
|
+
}), te = (e, a) => {
|
|
553
|
+
const t = e.__vccOpts || e;
|
|
554
|
+
for (const [n, o] of a)
|
|
555
|
+
t[n] = o;
|
|
556
|
+
return t;
|
|
558
557
|
}, ze = /* @__PURE__ */ te(He, [["__scopeId", "data-v-7ab74c70"]]);
|
|
559
558
|
var Xe = "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", Fe = "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", Ke = "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", Ze = "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", Ge = "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";
|
|
560
559
|
const Ne = /* @__PURE__ */ T({
|
|
@@ -566,12 +565,12 @@ const Ne = /* @__PURE__ */ T({
|
|
|
566
565
|
timeout: { default: 5e3 }
|
|
567
566
|
},
|
|
568
567
|
emits: ["timeout"],
|
|
569
|
-
setup(e, { emit:
|
|
570
|
-
const
|
|
568
|
+
setup(e, { emit: a }) {
|
|
569
|
+
const t = e, n = g(() => ({
|
|
571
570
|
width: "calc(100% - 64px)",
|
|
572
571
|
overflowWrap: "break-word"
|
|
573
572
|
})), o = g(() => {
|
|
574
|
-
switch (
|
|
573
|
+
switch (t.type) {
|
|
575
574
|
case "success":
|
|
576
575
|
return Fe;
|
|
577
576
|
case "info":
|
|
@@ -583,18 +582,18 @@ const Ne = /* @__PURE__ */ T({
|
|
|
583
582
|
default:
|
|
584
583
|
return "";
|
|
585
584
|
}
|
|
586
|
-
}), r = d(!0), l =
|
|
585
|
+
}), r = d(!0), l = a;
|
|
587
586
|
return V(() => {
|
|
588
587
|
setTimeout(() => {
|
|
589
|
-
l("timeout",
|
|
590
|
-
},
|
|
588
|
+
l("timeout", t.id);
|
|
589
|
+
}, t.timeout);
|
|
591
590
|
}), Z(r, (c) => {
|
|
592
|
-
c || l("timeout",
|
|
591
|
+
c || l("timeout", t.id);
|
|
593
592
|
}), (c, u) => {
|
|
594
593
|
const p = h("v-icon"), _ = h("v-sheet");
|
|
595
594
|
return D(), O(_, {
|
|
596
595
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
597
|
-
color:
|
|
596
|
+
color: t.type,
|
|
598
597
|
elevation: 1
|
|
599
598
|
}, {
|
|
600
599
|
default: w(() => [
|
|
@@ -605,11 +604,11 @@ const Ne = /* @__PURE__ */ T({
|
|
|
605
604
|
}, null, 8, ["icon"])) : le("", !0),
|
|
606
605
|
v("div", {
|
|
607
606
|
style: ne(n.value)
|
|
608
|
-
}, q(
|
|
607
|
+
}, q(t.text), 5),
|
|
609
608
|
b(p, {
|
|
610
609
|
class: "mx-1",
|
|
611
610
|
icon: re(Ke),
|
|
612
|
-
onClick: u[0] || (u[0] = (y) => l("timeout",
|
|
611
|
+
onClick: u[0] || (u[0] = (y) => l("timeout", t.id))
|
|
613
612
|
}, null, 8, ["icon"])
|
|
614
613
|
]),
|
|
615
614
|
_: 1
|
|
@@ -619,13 +618,13 @@ const Ne = /* @__PURE__ */ T({
|
|
|
619
618
|
}), Qe = /* @__PURE__ */ te(Ne, [["__scopeId", "data-v-d5cfe252"]]), Je = /* @__PURE__ */ T({
|
|
620
619
|
__name: "index",
|
|
621
620
|
setup(e) {
|
|
622
|
-
const
|
|
621
|
+
const a = d([]);
|
|
623
622
|
V(() => {
|
|
624
|
-
s.on("message",
|
|
623
|
+
s.on("message", t);
|
|
625
624
|
}), I(() => {
|
|
626
|
-
s.off("message",
|
|
625
|
+
s.off("message", t);
|
|
627
626
|
});
|
|
628
|
-
const
|
|
627
|
+
const t = (c) => {
|
|
629
628
|
r(c.type, c.text, c.timeout);
|
|
630
629
|
}, n = (c) => {
|
|
631
630
|
l(c);
|
|
@@ -633,17 +632,17 @@ const Ne = /* @__PURE__ */ T({
|
|
|
633
632
|
let o = 0;
|
|
634
633
|
const r = (c, u, p) => {
|
|
635
634
|
const _ = o++;
|
|
636
|
-
|
|
635
|
+
a.value.push({ id: _, type: c, text: u, timeout: p });
|
|
637
636
|
}, l = (c) => {
|
|
638
|
-
const u =
|
|
639
|
-
u >= 0 &&
|
|
637
|
+
const u = a.value.findIndex((p) => p.id === c);
|
|
638
|
+
u >= 0 && a.value.splice(u, 1);
|
|
640
639
|
};
|
|
641
640
|
return (c, u) => (D(), Q("div", {
|
|
642
641
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
643
642
|
onClick: u[0] || (u[0] = W(() => {
|
|
644
643
|
}, ["stop"]))
|
|
645
644
|
}, [
|
|
646
|
-
(D(!0), Q(ve, null, me(
|
|
645
|
+
(D(!0), Q(ve, null, me(a.value, (p) => (D(), O(Qe, {
|
|
647
646
|
id: p.id,
|
|
648
647
|
key: p.id,
|
|
649
648
|
type: p.type,
|
|
@@ -656,18 +655,18 @@ const Ne = /* @__PURE__ */ T({
|
|
|
656
655
|
}), Ye = /* @__PURE__ */ te(Je, [["__scopeId", "data-v-d525e6f5"]]), Pe = /* @__PURE__ */ T({
|
|
657
656
|
__name: "index",
|
|
658
657
|
setup(e) {
|
|
659
|
-
const { t } = Y(),
|
|
658
|
+
const { t: a } = Y(), t = $(), n = g({
|
|
660
659
|
get() {
|
|
661
|
-
return
|
|
660
|
+
return t.hasView("promptDlg");
|
|
662
661
|
},
|
|
663
662
|
set(f) {
|
|
664
|
-
f ?
|
|
663
|
+
f ? t.addView("promptDlg") : t.delView("promptDlg");
|
|
665
664
|
}
|
|
666
665
|
}), o = d(""), r = d(""), l = d(""), c = d(""), u = d(), p = d(""), _ = d(""), y = d(""), i = d(""), M = d(""), m = d();
|
|
667
666
|
let x = 0, C = !1;
|
|
668
667
|
const S = async (f) => {
|
|
669
668
|
var k, A, H, z, B;
|
|
670
|
-
o.value = f.title, r.value = f.text, l.value = f.label, c.value = f.placeholder, u.value = f.rules, p.value = f.value, _.value = ((k = f.cancel) == null ? void 0 : k.color) ?? "primary", y.value = ((A = f.cancel) == null ? void 0 : A.text) ??
|
|
669
|
+
o.value = f.title, r.value = f.text, l.value = f.label, c.value = f.placeholder, u.value = f.rules, p.value = f.value, _.value = ((k = f.cancel) == null ? void 0 : k.color) ?? "primary", y.value = ((A = f.cancel) == null ? void 0 : A.text) ?? a("dlg.common.cancel"), i.value = ((H = f.confirm) == null ? void 0 : H.color) ?? "primary", M.value = ((z = f.confirm) == null ? void 0 : z.text) ?? a("dlg.common.confirm"), x = f.seq, C = !1, n.value = !0, await ee(() => !!m.value, 1e3), (B = m.value) == null || B.focus();
|
|
671
670
|
};
|
|
672
671
|
V(() => {
|
|
673
672
|
s.on("promptDlg", S);
|
|
@@ -696,7 +695,7 @@ const Ne = /* @__PURE__ */ T({
|
|
|
696
695
|
default: w(() => [
|
|
697
696
|
r.value ? (D(), O(A, { key: 0 }, {
|
|
698
697
|
default: w(() => [
|
|
699
|
-
|
|
698
|
+
E(q(r.value), 1)
|
|
700
699
|
]),
|
|
701
700
|
_: 1
|
|
702
701
|
})) : le("", !0),
|
|
@@ -722,7 +721,7 @@ const Ne = /* @__PURE__ */ T({
|
|
|
722
721
|
onClick: k[1] || (k[1] = (U) => n.value = !1)
|
|
723
722
|
}, {
|
|
724
723
|
default: w(() => [
|
|
725
|
-
|
|
724
|
+
E(q(y.value), 1)
|
|
726
725
|
]),
|
|
727
726
|
_: 1
|
|
728
727
|
}, 8, ["color"]),
|
|
@@ -732,7 +731,7 @@ const Ne = /* @__PURE__ */ T({
|
|
|
732
731
|
onClick: R
|
|
733
732
|
}, {
|
|
734
733
|
default: w(() => [
|
|
735
|
-
|
|
734
|
+
E(q(M.value), 1)
|
|
736
735
|
]),
|
|
737
736
|
_: 1
|
|
738
737
|
}, 8, ["color"])
|
|
@@ -750,15 +749,15 @@ const Ne = /* @__PURE__ */ T({
|
|
|
750
749
|
}), et = { class: "mx-auto my-auto" }, tt = { class: "w-100 h-100 d-flex align-center justify-center" }, at = { class: "text-body-1" }, ot = /* @__PURE__ */ T({
|
|
751
750
|
__name: "index",
|
|
752
751
|
setup(e) {
|
|
753
|
-
const { t } = Y(),
|
|
752
|
+
const { t: a } = Y(), t = $(), n = g({
|
|
754
753
|
get() {
|
|
755
|
-
return
|
|
754
|
+
return t.hasView("waitDlg");
|
|
756
755
|
},
|
|
757
756
|
set(c) {
|
|
758
|
-
c ?
|
|
757
|
+
c ? t.addView("waitDlg") : t.delView("waitDlg");
|
|
759
758
|
}
|
|
760
759
|
}), o = d(""), r = (c) => {
|
|
761
|
-
o.value = c.text ??
|
|
760
|
+
o.value = c.text ?? a("dlg.common.waiting"), n.value = !0;
|
|
762
761
|
}, l = () => {
|
|
763
762
|
n.value = !1;
|
|
764
763
|
};
|
|
@@ -799,10 +798,10 @@ const Ne = /* @__PURE__ */ T({
|
|
|
799
798
|
e.component("XConfirmDlg", Be), e.component("XLoading", ze), e.component("XMessage", Ye), e.component("XPromptDlg", Pe), e.component("XWaitDlg", ot);
|
|
800
799
|
};
|
|
801
800
|
function Rt() {
|
|
802
|
-
const e = P(),
|
|
801
|
+
const e = P(), a = g(() => e.global.current.value.colors.primary), t = g(() => e.global.current.value.colors.secondary), n = g(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = g(() => e.current.value.dark ? "#272727" : "#eeeeee"), r = g(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), l = g(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = g(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
803
802
|
return {
|
|
804
|
-
primaryColor:
|
|
805
|
-
secondaryColor:
|
|
803
|
+
primaryColor: a,
|
|
804
|
+
secondaryColor: t,
|
|
806
805
|
backgroundColor0: n,
|
|
807
806
|
backgroundColor1: o,
|
|
808
807
|
backgroundColor2: r,
|
|
@@ -820,24 +819,24 @@ const ct = typeof window < "u" && typeof document < "u";
|
|
|
820
819
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
821
820
|
const ut = ct ? window : void 0;
|
|
822
821
|
function st() {
|
|
823
|
-
const e = d(!1),
|
|
824
|
-
return
|
|
822
|
+
const e = d(!1), a = xe();
|
|
823
|
+
return a && V(() => {
|
|
825
824
|
e.value = !0;
|
|
826
|
-
},
|
|
825
|
+
}, a), e;
|
|
827
826
|
}
|
|
828
827
|
function pt(e) {
|
|
829
|
-
const
|
|
830
|
-
return g(() => (
|
|
828
|
+
const a = st();
|
|
829
|
+
return g(() => (a.value, !!e()));
|
|
831
830
|
}
|
|
832
|
-
function dt(e,
|
|
833
|
-
const { window:
|
|
831
|
+
function dt(e, a = {}) {
|
|
832
|
+
const { window: t = ut } = a, n = pt(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
|
|
834
833
|
let o;
|
|
835
834
|
const r = d(!1), l = (p) => {
|
|
836
835
|
r.value = p.matches;
|
|
837
836
|
}, c = () => {
|
|
838
837
|
o && ("removeEventListener" in o ? o.removeEventListener("change", l) : o.removeListener(l));
|
|
839
838
|
}, u = ye(() => {
|
|
840
|
-
n.value && (c(), o =
|
|
839
|
+
n.value && (c(), o = t.matchMedia(rt(e)), "addEventListener" in o ? o.addEventListener("change", l) : o.addListener(l), r.value = o.matches);
|
|
841
840
|
});
|
|
842
841
|
return lt(() => {
|
|
843
842
|
u(), c(), o = void 0;
|
|
@@ -847,15 +846,15 @@ function _t(e) {
|
|
|
847
846
|
return dt("(prefers-color-scheme: dark)", e);
|
|
848
847
|
}
|
|
849
848
|
function it() {
|
|
850
|
-
const e = Ce(),
|
|
849
|
+
const e = Ce(), a = G(), t = _t(), n = g(() => typeof a.dark == "boolean" ? a.dark : t.value), o = g(() => !!window.cordova), r = g(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
851
850
|
return { dark: n, sysBarAvail: o, compactWidth: r };
|
|
852
851
|
}
|
|
853
852
|
function It() {
|
|
854
|
-
const e = be(),
|
|
853
|
+
const e = be(), a = ue(), t = P(), { dark: n } = it(), o = G(), r = $();
|
|
855
854
|
Z(
|
|
856
855
|
n,
|
|
857
856
|
(i) => {
|
|
858
|
-
|
|
857
|
+
t.global.name.value = i ? "dark" : "light";
|
|
859
858
|
},
|
|
860
859
|
{ immediate: !0 }
|
|
861
860
|
);
|
|
@@ -876,7 +875,7 @@ function It() {
|
|
|
876
875
|
},
|
|
877
876
|
() => {
|
|
878
877
|
}
|
|
879
|
-
) :
|
|
878
|
+
) : a.back();
|
|
880
879
|
};
|
|
881
880
|
V(() => {
|
|
882
881
|
window.addEventListener("keydown", l), s.on("backbutton", c);
|
|
@@ -900,22 +899,22 @@ function It() {
|
|
|
900
899
|
}
|
|
901
900
|
function Ot() {
|
|
902
901
|
const e = G();
|
|
903
|
-
function t
|
|
904
|
-
const o = e.permissionObjects[
|
|
902
|
+
function a(t, n) {
|
|
903
|
+
const o = e.permissionObjects[t];
|
|
905
904
|
return o ? n ? !(!oe(o.includes, n) || oe(o.excludes, n)) : !0 : !1;
|
|
906
905
|
}
|
|
907
|
-
return { verifyPermission:
|
|
906
|
+
return { verifyPermission: a };
|
|
908
907
|
}
|
|
909
|
-
function
|
|
910
|
-
const
|
|
908
|
+
function Et(e, a) {
|
|
909
|
+
const t = $(), n = g({
|
|
911
910
|
get() {
|
|
912
|
-
return
|
|
911
|
+
return t.hasView(e);
|
|
913
912
|
},
|
|
914
913
|
set(r) {
|
|
915
|
-
r ?
|
|
914
|
+
r ? t.addView(e) : t.delView(e);
|
|
916
915
|
}
|
|
917
916
|
}), o = (r) => {
|
|
918
|
-
|
|
917
|
+
a == null || a(r), n.value = !0;
|
|
919
918
|
};
|
|
920
919
|
return V(() => {
|
|
921
920
|
s.on(e, o);
|
|
@@ -923,20 +922,20 @@ function jt(e, t) {
|
|
|
923
922
|
s.off(e, o);
|
|
924
923
|
}), { open: n };
|
|
925
924
|
}
|
|
926
|
-
const ft = (e,
|
|
927
|
-
const n = e[
|
|
925
|
+
const ft = (e, a, t) => {
|
|
926
|
+
const n = e[a];
|
|
928
927
|
return n ? typeof n == "function" ? n() : Promise.resolve(n) : new Promise((o, r) => {
|
|
929
928
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
930
929
|
r.bind(
|
|
931
930
|
null,
|
|
932
931
|
new Error(
|
|
933
|
-
"Unknown variable dynamic import: " +
|
|
932
|
+
"Unknown variable dynamic import: " + a + (a.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
934
933
|
)
|
|
935
934
|
)
|
|
936
935
|
);
|
|
937
936
|
});
|
|
938
937
|
};
|
|
939
|
-
async function
|
|
938
|
+
async function jt(e) {
|
|
940
939
|
return (await ft(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
941
940
|
}
|
|
942
941
|
const Tt = { install: nt };
|
|
@@ -948,7 +947,7 @@ export {
|
|
|
948
947
|
Tt as default,
|
|
949
948
|
s as eventBus,
|
|
950
949
|
oe as isExist,
|
|
951
|
-
|
|
950
|
+
jt as loadLocaleMessageEssential,
|
|
952
951
|
K as matchRouteMeta,
|
|
953
952
|
Vt as messageError,
|
|
954
953
|
Mt as messageInfo,
|
|
@@ -965,7 +964,7 @@ export {
|
|
|
965
964
|
Ot as usePermission,
|
|
966
965
|
it as useSystem,
|
|
967
966
|
$ as useViewMgrStore,
|
|
968
|
-
|
|
967
|
+
Et as useViewStack,
|
|
969
968
|
kt as waitMs,
|
|
970
969
|
ee as waitUtil
|
|
971
970
|
};
|