x-essential-lib 0.8.14 → 0.8.15
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 +212 -212
- package/dist/vendor.nd1vt2d2.js +198 -0
- package/package.json +1 -2
- package/dist/vendor.i6w3s9o3.js +0 -204
package/dist/index.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-
|
|
2
|
-
import { computed as b, provide as B, inject as I, ref as f, watchEffect as oe, onMounted as K, onBeforeUnmount as U, onBeforeMount as be, defineComponent as A, watch as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.id="x-essential-lib",t.appendChild(document.createTextNode('.fade-leave-active[data-v-0c686889]{transition:opacity .5s ease}.fade-leave-to[data-v-0c686889]{opacity:0}.x-cont[data-v-0c686889]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-0c686889]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-0c686889]{transform-origin:20px 20px;animation:lds-spinner-0c686889 1.2s linear infinite}.lds-spinner div[data-v-0c686889]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-0c686889]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-0c686889]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-0c686889]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-0c686889]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-0c686889]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-0c686889]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-0c686889]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-0c686889]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-0c686889]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-0c686889]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-0c686889]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-0c686889]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-0c686889{0%{opacity:1}to{opacity:0}}.x-item[data-v-f1f60167]{width:600px}@media (max-width: 600px){.x-item[data-v-f1f60167]{width:calc(100vw - 16px)}}.x-cont[data-v-c6a59757]{position:fixed;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { computed as b, provide as B, inject as I, ref as f, watchEffect as oe, onMounted as K, onBeforeUnmount as U, onBeforeMount as be, defineComponent as A, watch as Q, resolveComponent as h, createBlock as R, openBlock as q, withKeys as G, unref as Y, withModifiers as $, isRef as H, withCtx as m, createVNode as x, createTextVNode as L, toDisplayString as O, Transition as xe, createElementBlock as J, createCommentVNode as Z, normalizeStyle as ne, createElementVNode as v, Fragment as ke, renderList as De, useTemplateRef as Ce } from "vue";
|
|
3
3
|
import { useI18n as P } from "vue-i18n";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { useRouter as
|
|
4
|
+
import { useTheme as ce, useDisplay as qe } from "vuetify";
|
|
5
|
+
import { useRouter as ue, useRoute as je } from "vue-router";
|
|
6
6
|
import Ve from "axios";
|
|
7
|
-
import { a as M, m as Se, u as Oe
|
|
8
|
-
function
|
|
9
|
-
const e =
|
|
7
|
+
import { a as M, m as Se, u as Oe } from "./vendor.nd1vt2d2.js";
|
|
8
|
+
function Re() {
|
|
9
|
+
const e = ce(), t = b(() => e.global.current.value.colors.primary), a = b(() => e.global.current.value.colors.secondary), o = b(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), r = b(() => e.current.value.dark ? "#272727" : "#eeeeee"), n = b(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), u = b(() => e.current.value.dark ? "#303030" : "#f6f6f6"), l = b(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
10
10
|
return {
|
|
11
11
|
primaryColor: t,
|
|
12
12
|
secondaryColor: a,
|
|
13
13
|
backgroundColor0: o,
|
|
14
14
|
backgroundColor1: r,
|
|
15
15
|
backgroundColor2: n,
|
|
16
|
-
highlightColor:
|
|
16
|
+
highlightColor: u,
|
|
17
17
|
borderColor: l
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function xt(e) {
|
|
21
21
|
const t = Ve.create({
|
|
22
22
|
timeout: 6e3
|
|
23
23
|
});
|
|
24
24
|
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
25
|
-
(a) =>
|
|
25
|
+
(a) => Te(a),
|
|
26
26
|
(a) => {
|
|
27
|
-
|
|
27
|
+
Le(a, e.onError);
|
|
28
28
|
}
|
|
29
29
|
), t.interceptors.response.use(
|
|
30
|
-
(a) =>
|
|
31
|
-
(a) =>
|
|
30
|
+
(a) => Me(a),
|
|
31
|
+
(a) => Be(a, e.onError)
|
|
32
32
|
), t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Te(e) {
|
|
35
35
|
const t = M.get("accessToken") ?? "";
|
|
36
36
|
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Le(e, t) {
|
|
39
39
|
console.error(e), t("request timeout");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Me(e) {
|
|
42
42
|
return e.data;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Be(e, t) {
|
|
45
45
|
var r, n;
|
|
46
46
|
const o = e.response;
|
|
47
|
-
return o && (o.status === 401 &&
|
|
47
|
+
return o && (o.status === 401 && Ie(), (r = o.data) != null && r.message ? t((n = o.data) == null ? void 0 : n.message) : t({
|
|
48
48
|
code: o.status,
|
|
49
49
|
message: o.statusText
|
|
50
50
|
})), Promise.reject(e);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
M.remove("accessToken"), M.remove("refreshToken"), M.remove("activeOrg"),
|
|
52
|
+
function Ie() {
|
|
53
|
+
M.remove("accessToken"), M.remove("refreshToken"), M.remove("activeOrg"), ue().replace({ path: "/passport/login" });
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const kt = function() {
|
|
56
56
|
return window.globalObjects || (window.globalObjects = {
|
|
57
57
|
router: null,
|
|
58
58
|
i18n: null
|
|
59
59
|
}), window.globalObjects;
|
|
60
|
-
}(),
|
|
60
|
+
}(), c = function() {
|
|
61
61
|
return window.eventBus || (window.eventBus = Se()), window.eventBus;
|
|
62
62
|
}();
|
|
63
|
-
async function
|
|
63
|
+
async function Dt(e) {
|
|
64
64
|
return new Promise((t) => {
|
|
65
65
|
setTimeout(t, e);
|
|
66
66
|
});
|
|
@@ -74,7 +74,7 @@ async function ee(e, t, a) {
|
|
|
74
74
|
n();
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ae(e, t) {
|
|
78
78
|
const a = document.getElementById("single-spa-application:" + e);
|
|
79
79
|
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
80
80
|
a.classList.add("app-reset");
|
|
@@ -85,47 +85,47 @@ function pe() {
|
|
|
85
85
|
const e = Date.now();
|
|
86
86
|
return e - re > 500 ? (re = e, !0) : !1;
|
|
87
87
|
}
|
|
88
|
-
let
|
|
88
|
+
let Ee = 0;
|
|
89
89
|
function se() {
|
|
90
|
-
return ++
|
|
90
|
+
return ++Ee;
|
|
91
91
|
}
|
|
92
|
-
async function
|
|
92
|
+
async function Ct(e) {
|
|
93
93
|
if (!pe())
|
|
94
94
|
return;
|
|
95
95
|
let t = !1, a;
|
|
96
96
|
const o = (n) => {
|
|
97
97
|
a = n, t = !0;
|
|
98
98
|
}, r = se();
|
|
99
|
-
return
|
|
99
|
+
return c.on("confirmDlgResult" + r, o), c.emit("confirmDlg", { ...e, seq: r }), await ee(() => t), c.off("confirmDlgResult" + r, o), a;
|
|
100
100
|
}
|
|
101
|
-
async function
|
|
101
|
+
async function qt(e) {
|
|
102
102
|
if (!pe())
|
|
103
103
|
return;
|
|
104
104
|
let t = !1, a;
|
|
105
105
|
const o = (n) => {
|
|
106
106
|
a = n, t = !0;
|
|
107
107
|
}, r = se();
|
|
108
|
-
return
|
|
108
|
+
return c.on("promptDlgResult" + r, o), c.emit("promptDlg", { ...e, seq: r }), await ee(() => t), c.off("promptDlgResult" + r, o), a;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
110
|
+
function jt(e) {
|
|
111
|
+
c.emit("openWaitDlg", { text: e });
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function Vt() {
|
|
114
|
+
c.emit("closeWaitDlg");
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
|
|
116
|
+
function St(e, t) {
|
|
117
|
+
c.emit("message", { type: "error", text: e, timeout: t });
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Ot(e, t) {
|
|
120
|
+
c.emit("message", { type: "info", text: e, timeout: t });
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
|
|
122
|
+
function Rt(e, t) {
|
|
123
|
+
c.emit("message", { type: "success", text: e, timeout: t });
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Tt(e, t) {
|
|
126
|
+
c.emit("message", { type: "warning", text: e, timeout: t });
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.debug_flow = "debug_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role_group = "list_org_role_group", e.create_org_role_group = "create_org_role_group", e.delete_org_role_group = "delete_org_role_group", e.update_org_role_group = "update_org_role_group", e.arrange_org_role_group = "arrange_org_role_group", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_table = "filter_table", e))(Ue || {});
|
|
129
129
|
function le(e, t) {
|
|
130
130
|
if (!e)
|
|
131
131
|
return !1;
|
|
@@ -139,48 +139,48 @@ function le(e, t) {
|
|
|
139
139
|
return !1;
|
|
140
140
|
}), Object.keys(a).length <= 0);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function $e(e, t, a) {
|
|
143
143
|
const o = e[t];
|
|
144
144
|
return o ? a ? !(!le(o.includes, a) || le(o.excludes, a)) : !0 : !1;
|
|
145
145
|
}
|
|
146
146
|
const _e = "essentialDark", de = "essentialLocale", ie = "essentialPermissionObjects", fe = "essentialPermissionChecksum", ge = "essentialLastAppPath", ve = "essentialViews";
|
|
147
|
-
function
|
|
147
|
+
function Ke(e) {
|
|
148
148
|
B(_e, e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Lt() {
|
|
151
151
|
return I(_e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function We(e) {
|
|
154
154
|
B(de, e);
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function Mt() {
|
|
157
157
|
return I(de);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Xe(e) {
|
|
160
160
|
B(ie, e);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function ze() {
|
|
163
163
|
return I(ie);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Ne(e) {
|
|
166
166
|
B(fe, e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Bt() {
|
|
169
169
|
return I(fe);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function He(e) {
|
|
172
172
|
B(ge, e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function It() {
|
|
175
175
|
return I(ge);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Fe(e) {
|
|
178
178
|
B(ve, e);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Ge() {
|
|
181
181
|
return I(ve);
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const Je = [
|
|
184
184
|
{
|
|
185
185
|
app: "x-passport-mf",
|
|
186
186
|
path: "/passport/login",
|
|
@@ -291,15 +291,15 @@ const et = [
|
|
|
291
291
|
function N(e) {
|
|
292
292
|
let t, a = 0;
|
|
293
293
|
const o = e.split("/").filter((r) => r.trim() !== "");
|
|
294
|
-
return
|
|
294
|
+
return Je.forEach((r) => {
|
|
295
295
|
const n = r.path.split("/").filter((l) => l.trim() !== "");
|
|
296
|
-
let
|
|
296
|
+
let u = 0;
|
|
297
297
|
for (let l = 0; l < o.length && !(l >= n.length || o[l] !== n[l]); l++)
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
u++;
|
|
299
|
+
u > 0 && u > a && (t = r, a = u);
|
|
300
300
|
}), t;
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const F = f("");
|
|
303
303
|
function S(e, t, a) {
|
|
304
304
|
t === "/" && (t = a);
|
|
305
305
|
const o = N(e), r = N(t);
|
|
@@ -309,22 +309,22 @@ function S(e, t, a) {
|
|
|
309
309
|
}
|
|
310
310
|
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !r)
|
|
311
311
|
return;
|
|
312
|
-
const n = o.app === r.app,
|
|
313
|
-
n ?
|
|
312
|
+
const n = o.app === r.app, u = o.path === r.path, l = o.level >= r.level;
|
|
313
|
+
n ? u ? F.value = "" : F.value = l ? "inner-left" : "inner-right" : (F.value = "", Ae(o.app, l));
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function Qe() {
|
|
316
316
|
return !!M.get("accessToken");
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Ye() {
|
|
319
319
|
return !!M.get("activeOrg");
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
const r =
|
|
323
|
-
if (!
|
|
321
|
+
function At(e, t, a, o) {
|
|
322
|
+
const r = Qe(), n = Ye(), u = N(e.path);
|
|
323
|
+
if (!u) {
|
|
324
324
|
console.assert(!1), a();
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
|
-
if (
|
|
327
|
+
if (u.requiredState === "auth")
|
|
328
328
|
if (r)
|
|
329
329
|
if (n) {
|
|
330
330
|
const l = "/main";
|
|
@@ -335,7 +335,7 @@ function Wt(e, t, a, o) {
|
|
|
335
335
|
const l = "/passport/login";
|
|
336
336
|
S(l, t.path, o), a({ path: l });
|
|
337
337
|
}
|
|
338
|
-
else if (
|
|
338
|
+
else if (u.requiredState === "org")
|
|
339
339
|
if (r)
|
|
340
340
|
if (n)
|
|
341
341
|
S(e.path, t.path, o), a();
|
|
@@ -358,47 +358,47 @@ function Wt(e, t, a, o) {
|
|
|
358
358
|
else
|
|
359
359
|
S(e.path, t.path, o), a();
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ze(e) {
|
|
362
362
|
return e.value.length <= 0;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function Et(e) {
|
|
365
365
|
if (e.value.length > 0)
|
|
366
366
|
return e.value[e.value.length - 1];
|
|
367
367
|
}
|
|
368
368
|
function me(e, t) {
|
|
369
369
|
return !!e.value.find((a) => a === t);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Pe(e, t) {
|
|
372
372
|
const a = e.value.findIndex((o) => o === t);
|
|
373
373
|
a >= 0 && e.value.splice(a, 1), e.value.push(t);
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function et(e, t) {
|
|
376
376
|
const a = e.value.findIndex((o) => o === t);
|
|
377
377
|
a >= 0 && e.value.splice(a, 1);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function tt(e) {
|
|
380
380
|
console.assert(e.value.length > 0), e.value.pop();
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ut(e) {
|
|
383
383
|
e.value = [];
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
const
|
|
385
|
+
function $t(e, t, a, o, r, n) {
|
|
386
|
+
const u = je(), l = ue(), _ = Oe(), p = f(!1);
|
|
387
387
|
oe(() => {
|
|
388
388
|
let i = !1;
|
|
389
389
|
typeof e.value == "boolean" ? i = e.value : i = _.value, p.value = i;
|
|
390
|
-
}),
|
|
391
|
-
const w =
|
|
390
|
+
}), Ke(p), We(t), Xe(a), Ne(o), He(r), Fe(n);
|
|
391
|
+
const w = ce();
|
|
392
392
|
oe(() => {
|
|
393
393
|
w.global.name.value = p.value ? "dark" : "light";
|
|
394
394
|
});
|
|
395
395
|
const y = () => {
|
|
396
396
|
var k;
|
|
397
|
-
if (!
|
|
398
|
-
me(n, "waitDlg") ||
|
|
397
|
+
if (!Ze(n)) {
|
|
398
|
+
me(n, "waitDlg") || tt(n);
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
|
-
const i = N(
|
|
401
|
+
const i = N(u.path);
|
|
402
402
|
if (!i) {
|
|
403
403
|
console.assert(!1);
|
|
404
404
|
return;
|
|
@@ -414,13 +414,13 @@ function Nt(e, t, a, o, r, n) {
|
|
|
414
414
|
y();
|
|
415
415
|
return;
|
|
416
416
|
}
|
|
417
|
-
},
|
|
417
|
+
}, D = () => {
|
|
418
418
|
y();
|
|
419
419
|
};
|
|
420
420
|
K(() => {
|
|
421
|
-
window.addEventListener("keydown", j),
|
|
421
|
+
window.addEventListener("keydown", j), c.on("backbutton", D);
|
|
422
422
|
}), U(() => {
|
|
423
|
-
window.removeEventListener("keydown", j),
|
|
423
|
+
window.removeEventListener("keydown", j), c.off("backbutton", D);
|
|
424
424
|
});
|
|
425
425
|
const d = (i) => {
|
|
426
426
|
e.value = i;
|
|
@@ -429,19 +429,19 @@ function Nt(e, t, a, o, r, n) {
|
|
|
429
429
|
}, g = (i) => {
|
|
430
430
|
const k = i;
|
|
431
431
|
a.value = k[0], o.value = k[1];
|
|
432
|
-
},
|
|
432
|
+
}, C = (i) => {
|
|
433
433
|
r.value = i;
|
|
434
434
|
};
|
|
435
435
|
be(() => {
|
|
436
|
-
|
|
436
|
+
c.on("updateDark", d), c.on("updateLocale", V), c.on("updatePermission", g), c.on("updateLastAppPath", C), c.emit("syncGlobalState");
|
|
437
437
|
}), U(() => {
|
|
438
|
-
|
|
438
|
+
c.off("updateDark", d), c.off("updateLocale", V), c.off("updatePermission", g), c.off("updateLastAppPath", C);
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
const e =
|
|
441
|
+
function Kt() {
|
|
442
|
+
const e = ze();
|
|
443
443
|
function t(a, o) {
|
|
444
|
-
return
|
|
444
|
+
return $e(
|
|
445
445
|
e.value,
|
|
446
446
|
a,
|
|
447
447
|
o ?? ""
|
|
@@ -449,7 +449,7 @@ function Ht() {
|
|
|
449
449
|
}
|
|
450
450
|
return { verifyPermission: t };
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Wt() {
|
|
453
453
|
const e = b(() => !!window.cordova), t = qe(), a = b(() => t.width.value <= 1280 ? t.width.value + "px" : t.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
454
454
|
function o() {
|
|
455
455
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
@@ -459,47 +459,47 @@ function Ft() {
|
|
|
459
459
|
return { sysBarAvail: e, compactWidth: a, isMobile: o };
|
|
460
460
|
}
|
|
461
461
|
function te(e, t) {
|
|
462
|
-
const a =
|
|
462
|
+
const a = Ge(), o = b({
|
|
463
463
|
get() {
|
|
464
464
|
return me(a, e);
|
|
465
465
|
},
|
|
466
466
|
set(n) {
|
|
467
|
-
n ?
|
|
467
|
+
n ? Pe(a, e) : et(a, e);
|
|
468
468
|
}
|
|
469
469
|
}), r = (n) => {
|
|
470
470
|
t == null || t(n), o.value = !0;
|
|
471
471
|
};
|
|
472
472
|
return K(() => {
|
|
473
|
-
|
|
473
|
+
c.on(e, r);
|
|
474
474
|
}), U(() => {
|
|
475
|
-
|
|
475
|
+
c.off(e, r);
|
|
476
476
|
}), { open: o };
|
|
477
477
|
}
|
|
478
|
-
const
|
|
478
|
+
const at = /* @__PURE__ */ A({
|
|
479
479
|
__name: "index",
|
|
480
480
|
setup(e) {
|
|
481
|
-
const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""),
|
|
481
|
+
const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""), u = f(""), l = f("");
|
|
482
482
|
let _ = 0, p = !1;
|
|
483
|
-
const w = (
|
|
484
|
-
var V, g,
|
|
485
|
-
const d =
|
|
486
|
-
a.value = d.title, o.value = d.text, r.value = ((V = d.cancel) == null ? void 0 : V.color) ?? "primary", n.value = ((g = d.cancel) == null ? void 0 : g.text) ?? t("dlg.common.cancel"),
|
|
483
|
+
const w = (D) => {
|
|
484
|
+
var V, g, C, i;
|
|
485
|
+
const d = D;
|
|
486
|
+
a.value = d.title, o.value = d.text, r.value = ((V = d.cancel) == null ? void 0 : V.color) ?? "primary", n.value = ((g = d.cancel) == null ? void 0 : g.text) ?? t("dlg.common.cancel"), u.value = ((C = d.confirm) == null ? void 0 : C.color) ?? "primary", l.value = ((i = d.confirm) == null ? void 0 : i.text) ?? t("dlg.common.confirm"), _ = d.seq, p = !1, y.value = !0;
|
|
487
487
|
}, { open: y } = te("confirmDlg", w), j = () => {
|
|
488
|
-
y.value = !1, p || (
|
|
488
|
+
y.value = !1, p || (c.emit("confirmDlgResult" + _, !0), p = !0);
|
|
489
489
|
};
|
|
490
|
-
return
|
|
491
|
-
!
|
|
492
|
-
}), (
|
|
493
|
-
const V = h("v-card-text"), g = h("v-btn"),
|
|
490
|
+
return Q(y, (D) => {
|
|
491
|
+
!D && !p && (c.emit("confirmDlgResult" + _, !1), p = !0);
|
|
492
|
+
}), (D, d) => {
|
|
493
|
+
const V = h("v-card-text"), g = h("v-btn"), C = h("v-card-actions"), i = h("v-card"), k = h("v-dialog");
|
|
494
494
|
return q(), R(k, {
|
|
495
|
-
modelValue:
|
|
496
|
-
"onUpdate:modelValue": d[1] || (d[1] = (s) =>
|
|
495
|
+
modelValue: Y(y),
|
|
496
|
+
"onUpdate:modelValue": d[1] || (d[1] = (s) => H(y) ? y.value = s : null),
|
|
497
497
|
transition: "dialog-top-transition",
|
|
498
498
|
"max-width": "600px",
|
|
499
499
|
attach: "",
|
|
500
500
|
onKeydown: [
|
|
501
|
-
d[2] || (d[2] =
|
|
502
|
-
|
|
501
|
+
d[2] || (d[2] = G($((s) => y.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
502
|
+
G($(j, ["stop", "prevent"]), ["enter"])
|
|
503
503
|
]
|
|
504
504
|
}, {
|
|
505
505
|
default: m(() => [
|
|
@@ -511,7 +511,7 @@ const ut = /* @__PURE__ */ A({
|
|
|
511
511
|
]),
|
|
512
512
|
_: 1
|
|
513
513
|
}),
|
|
514
|
-
x(
|
|
514
|
+
x(C, { class: "d-flex justify-end" }, {
|
|
515
515
|
default: m(() => [
|
|
516
516
|
x(g, {
|
|
517
517
|
color: r.value,
|
|
@@ -524,7 +524,7 @@ const ut = /* @__PURE__ */ A({
|
|
|
524
524
|
_: 1
|
|
525
525
|
}, 8, ["color"]),
|
|
526
526
|
x(g, {
|
|
527
|
-
color:
|
|
527
|
+
color: u.value,
|
|
528
528
|
variant: "text",
|
|
529
529
|
onClick: j
|
|
530
530
|
}, {
|
|
@@ -544,22 +544,22 @@ const ut = /* @__PURE__ */ A({
|
|
|
544
544
|
}, 8, ["modelValue", "onKeydown"]);
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
|
-
}),
|
|
547
|
+
}), ot = /* @__PURE__ */ A({
|
|
548
548
|
__name: "index",
|
|
549
549
|
props: {
|
|
550
550
|
open: { type: Boolean, default: !0 },
|
|
551
551
|
zIndex: { default: 1 }
|
|
552
552
|
},
|
|
553
553
|
setup(e) {
|
|
554
|
-
const { backgroundColor2: t } =
|
|
554
|
+
const { backgroundColor2: t } = Re(), a = b(() => ({
|
|
555
555
|
background: t.value,
|
|
556
556
|
zIndex: e.zIndex
|
|
557
557
|
}));
|
|
558
558
|
let o = 0;
|
|
559
559
|
return (r, n) => (q(), R(xe, { name: "fade" }, {
|
|
560
560
|
default: m(() => [
|
|
561
|
-
r.open ? (q(),
|
|
562
|
-
key:
|
|
561
|
+
r.open ? (q(), J("div", {
|
|
562
|
+
key: H(o) ? ++o.value : ++o,
|
|
563
563
|
class: "x-cont",
|
|
564
564
|
style: ne(a.value)
|
|
565
565
|
}, n[0] || (n[0] = [
|
|
@@ -587,7 +587,7 @@ const ut = /* @__PURE__ */ A({
|
|
|
587
587
|
for (const [o, r] of t)
|
|
588
588
|
a[o] = r;
|
|
589
589
|
return a;
|
|
590
|
-
},
|
|
590
|
+
}, rt = /* @__PURE__ */ ae(ot, [["__scopeId", "data-v-0c686889"]]), lt = /* @__PURE__ */ A({
|
|
591
591
|
__name: "item",
|
|
592
592
|
props: {
|
|
593
593
|
id: {},
|
|
@@ -603,13 +603,13 @@ const ut = /* @__PURE__ */ A({
|
|
|
603
603
|
})), o = b(() => {
|
|
604
604
|
switch (e.type) {
|
|
605
605
|
case "success":
|
|
606
|
-
return
|
|
606
|
+
return "mdi-check-circle";
|
|
607
607
|
case "info":
|
|
608
|
-
return
|
|
608
|
+
return "mdi-information";
|
|
609
609
|
case "error":
|
|
610
|
-
return
|
|
610
|
+
return "mdi-close-circle";
|
|
611
611
|
case "warning":
|
|
612
|
-
return
|
|
612
|
+
return "mdi-alert-circle";
|
|
613
613
|
default:
|
|
614
614
|
return "";
|
|
615
615
|
}
|
|
@@ -618,13 +618,13 @@ const ut = /* @__PURE__ */ A({
|
|
|
618
618
|
setTimeout(() => {
|
|
619
619
|
n("timeout", e.id);
|
|
620
620
|
}, e.timeout);
|
|
621
|
-
}),
|
|
622
|
-
|
|
623
|
-
}), (
|
|
621
|
+
}), Q(r, (u) => {
|
|
622
|
+
u || n("timeout", e.id);
|
|
623
|
+
}), (u, l) => {
|
|
624
624
|
const _ = h("v-icon"), p = h("v-sheet");
|
|
625
625
|
return q(), R(p, {
|
|
626
626
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
627
|
-
color:
|
|
627
|
+
color: u.type,
|
|
628
628
|
elevation: 1
|
|
629
629
|
}, {
|
|
630
630
|
default: m(() => [
|
|
@@ -635,46 +635,46 @@ const ut = /* @__PURE__ */ A({
|
|
|
635
635
|
}, null, 8, ["icon"])) : Z("", !0),
|
|
636
636
|
v("div", {
|
|
637
637
|
style: ne(a.value)
|
|
638
|
-
}, O(
|
|
638
|
+
}, O(u.text), 5),
|
|
639
639
|
x(_, {
|
|
640
640
|
class: "mx-1",
|
|
641
|
-
icon:
|
|
642
|
-
onClick: l[0] || (l[0] = (w) => n("timeout",
|
|
643
|
-
}
|
|
641
|
+
icon: "mdi-close",
|
|
642
|
+
onClick: l[0] || (l[0] = (w) => n("timeout", u.id))
|
|
643
|
+
})
|
|
644
644
|
]),
|
|
645
645
|
_: 1
|
|
646
646
|
}, 8, ["color"]);
|
|
647
647
|
};
|
|
648
648
|
}
|
|
649
|
-
}),
|
|
649
|
+
}), nt = /* @__PURE__ */ ae(lt, [["__scopeId", "data-v-f1f60167"]]), ct = /* @__PURE__ */ A({
|
|
650
650
|
__name: "index",
|
|
651
651
|
setup(e) {
|
|
652
652
|
const t = f([]);
|
|
653
653
|
K(() => {
|
|
654
|
-
|
|
654
|
+
c.on("message", a);
|
|
655
655
|
}), U(() => {
|
|
656
|
-
|
|
656
|
+
c.off("message", a);
|
|
657
657
|
});
|
|
658
658
|
const a = (l) => {
|
|
659
659
|
const { type: _, text: p, timeout: w } = l;
|
|
660
660
|
n(_, p, w);
|
|
661
661
|
}, o = (l) => {
|
|
662
|
-
|
|
662
|
+
u(l);
|
|
663
663
|
};
|
|
664
664
|
let r = 0;
|
|
665
665
|
const n = (l, _, p) => {
|
|
666
666
|
const w = r++;
|
|
667
667
|
t.value.push({ id: w, type: l, text: _, timeout: p });
|
|
668
|
-
},
|
|
668
|
+
}, u = (l) => {
|
|
669
669
|
const _ = t.value.findIndex((p) => p.id === l);
|
|
670
670
|
_ >= 0 && t.value.splice(_, 1);
|
|
671
671
|
};
|
|
672
|
-
return (l, _) => (q(),
|
|
672
|
+
return (l, _) => (q(), J("div", {
|
|
673
673
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
674
674
|
onClick: _[0] || (_[0] = $(() => {
|
|
675
675
|
}, ["stop"]))
|
|
676
676
|
}, [
|
|
677
|
-
(q(!0),
|
|
677
|
+
(q(!0), J(ke, null, De(t.value, (p) => (q(), R(nt, {
|
|
678
678
|
id: p.id,
|
|
679
679
|
key: p.id,
|
|
680
680
|
type: p.type,
|
|
@@ -684,29 +684,29 @@ const ut = /* @__PURE__ */ A({
|
|
|
684
684
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
685
685
|
]));
|
|
686
686
|
}
|
|
687
|
-
}),
|
|
687
|
+
}), ut = /* @__PURE__ */ ae(ct, [["__scopeId", "data-v-c6a59757"]]), pt = /* @__PURE__ */ A({
|
|
688
688
|
__name: "index",
|
|
689
689
|
setup(e) {
|
|
690
|
-
const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""),
|
|
691
|
-
let
|
|
690
|
+
const { t } = P(), a = f(""), o = f(""), r = f(""), n = f(""), u = f(), l = f(""), _ = f(""), p = f(""), w = f(""), y = f(""), j = Ce("target");
|
|
691
|
+
let D = 0, d = !1;
|
|
692
692
|
const V = async (k) => {
|
|
693
693
|
var W, X, E, z;
|
|
694
694
|
const s = k;
|
|
695
|
-
a.value = s.title, o.value = s.text, r.value = s.label, n.value = s.placeholder,
|
|
696
|
-
}, { open: g } = te("promptDlg", V),
|
|
697
|
-
g.value = !1, d || (
|
|
695
|
+
a.value = s.title, o.value = s.text, r.value = s.label, n.value = s.placeholder, u.value = s.rules, l.value = s.value, _.value = ((W = s.cancel) == null ? void 0 : W.color) ?? "primary", p.value = ((X = s.cancel) == null ? void 0 : X.text) ?? t("dlg.common.cancel"), w.value = ((E = s.confirm) == null ? void 0 : E.color) ?? "primary", y.value = ((z = s.confirm) == null ? void 0 : z.text) ?? t("dlg.common.confirm"), D = s.seq, d = !1, g.value = !0, await ee(() => !!j.value), j.value.focus();
|
|
696
|
+
}, { open: g } = te("promptDlg", V), C = f(!1), i = () => {
|
|
697
|
+
g.value = !1, d || (c.emit("promptDlgResult" + D, l.value ?? ""), d = !0);
|
|
698
698
|
};
|
|
699
|
-
return
|
|
700
|
-
!k && !d && (
|
|
699
|
+
return Q(g, (k) => {
|
|
700
|
+
!k && !d && (c.emit("promptDlgResult" + D, void 0), d = !0);
|
|
701
701
|
}), (k, s) => {
|
|
702
702
|
const W = h("v-card-text"), X = h("v-text-field"), E = h("v-btn"), z = h("v-card-actions"), he = h("v-form"), ye = h("v-card"), we = h("v-dialog");
|
|
703
703
|
return q(), R(we, {
|
|
704
|
-
modelValue:
|
|
705
|
-
"onUpdate:modelValue": s[3] || (s[3] = (T) =>
|
|
704
|
+
modelValue: Y(g),
|
|
705
|
+
"onUpdate:modelValue": s[3] || (s[3] = (T) => H(g) ? g.value = T : null),
|
|
706
706
|
transition: "dialog-top-transition",
|
|
707
707
|
"max-width": "600px",
|
|
708
708
|
attach: "",
|
|
709
|
-
onKeydown: s[4] || (s[4] =
|
|
709
|
+
onKeydown: s[4] || (s[4] = G($((T) => g.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
710
710
|
}, {
|
|
711
711
|
default: m(() => [
|
|
712
712
|
x(ye, { title: a.value }, {
|
|
@@ -718,8 +718,8 @@ const ut = /* @__PURE__ */ A({
|
|
|
718
718
|
_: 1
|
|
719
719
|
})) : Z("", !0),
|
|
720
720
|
x(he, {
|
|
721
|
-
modelValue:
|
|
722
|
-
"onUpdate:modelValue": s[2] || (s[2] = (T) =>
|
|
721
|
+
modelValue: C.value,
|
|
722
|
+
"onUpdate:modelValue": s[2] || (s[2] = (T) => C.value = T),
|
|
723
723
|
class: "mx-3",
|
|
724
724
|
onSubmit: $(i, ["prevent"])
|
|
725
725
|
}, {
|
|
@@ -731,7 +731,7 @@ const ut = /* @__PURE__ */ A({
|
|
|
731
731
|
"onUpdate:modelValue": s[0] || (s[0] = (T) => l.value = T),
|
|
732
732
|
label: r.value,
|
|
733
733
|
placeholder: n.value,
|
|
734
|
-
rules:
|
|
734
|
+
rules: u.value
|
|
735
735
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
736
736
|
x(z, { class: "d-flex justify-end" }, {
|
|
737
737
|
default: m(() => [
|
|
@@ -746,7 +746,7 @@ const ut = /* @__PURE__ */ A({
|
|
|
746
746
|
_: 1
|
|
747
747
|
}, 8, ["color"]),
|
|
748
748
|
x(E, {
|
|
749
|
-
disabled: !
|
|
749
|
+
disabled: !C.value,
|
|
750
750
|
variant: "text",
|
|
751
751
|
color: w.value,
|
|
752
752
|
type: "submit"
|
|
@@ -770,39 +770,39 @@ const ut = /* @__PURE__ */ A({
|
|
|
770
770
|
}, 8, ["modelValue"]);
|
|
771
771
|
};
|
|
772
772
|
}
|
|
773
|
-
}),
|
|
773
|
+
}), st = { class: "mx-auto my-auto" }, _t = { class: "w-100 h-100 d-flex align-center justify-center" }, dt = { class: "text-body-1" }, it = /* @__PURE__ */ A({
|
|
774
774
|
__name: "index",
|
|
775
775
|
setup(e) {
|
|
776
|
-
const { t } = P(), a = f(""), o = (
|
|
777
|
-
const l =
|
|
776
|
+
const { t } = P(), a = f(""), o = (u) => {
|
|
777
|
+
const l = u;
|
|
778
778
|
a.value = l.text ?? t("dlg.common.waiting"), n.value = !0;
|
|
779
779
|
}, r = () => {
|
|
780
780
|
n.value = !1;
|
|
781
781
|
}, { open: n } = te("waitDlg", o);
|
|
782
782
|
return K(() => {
|
|
783
|
-
|
|
783
|
+
c.on("closeWaitDlg", r);
|
|
784
784
|
}), U(() => {
|
|
785
|
-
|
|
786
|
-
}), (
|
|
785
|
+
c.off("closeWaitDlg", r);
|
|
786
|
+
}), (u, l) => {
|
|
787
787
|
const _ = h("v-card"), p = h("v-dialog");
|
|
788
788
|
return q(), R(p, {
|
|
789
|
-
modelValue:
|
|
790
|
-
"onUpdate:modelValue": l[0] || (l[0] = (w) =>
|
|
789
|
+
modelValue: Y(n),
|
|
790
|
+
"onUpdate:modelValue": l[0] || (l[0] = (w) => H(n) ? n.value = w : null),
|
|
791
791
|
persistent: "",
|
|
792
792
|
"no-click-animation": "",
|
|
793
793
|
fullscreen: "",
|
|
794
794
|
attach: ""
|
|
795
795
|
}, {
|
|
796
796
|
default: m(() => [
|
|
797
|
-
v("div",
|
|
797
|
+
v("div", st, [
|
|
798
798
|
x(_, {
|
|
799
799
|
width: "300px",
|
|
800
800
|
height: "80px",
|
|
801
801
|
loading: ""
|
|
802
802
|
}, {
|
|
803
803
|
default: m(() => [
|
|
804
|
-
v("div",
|
|
805
|
-
v("span",
|
|
804
|
+
v("div", _t, [
|
|
805
|
+
v("span", dt, O(a.value), 1)
|
|
806
806
|
])
|
|
807
807
|
]),
|
|
808
808
|
_: 1
|
|
@@ -813,9 +813,9 @@ const ut = /* @__PURE__ */ A({
|
|
|
813
813
|
}, 8, ["modelValue"]);
|
|
814
814
|
};
|
|
815
815
|
}
|
|
816
|
-
}),
|
|
817
|
-
e.component("XConfirmDlg",
|
|
818
|
-
},
|
|
816
|
+
}), ft = (e) => {
|
|
817
|
+
e.component("XConfirmDlg", at), e.component("XLoading", rt), e.component("XMessage", ut), e.component("XPromptDlg", pt), e.component("XWaitDlg", it);
|
|
818
|
+
}, gt = (e, t, a) => {
|
|
819
819
|
const o = e[t];
|
|
820
820
|
return o ? typeof o == "function" ? o() : Promise.resolve(o) : new Promise((r, n) => {
|
|
821
821
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
@@ -828,55 +828,55 @@ const ut = /* @__PURE__ */ A({
|
|
|
828
828
|
);
|
|
829
829
|
});
|
|
830
830
|
};
|
|
831
|
-
async function
|
|
832
|
-
return (await
|
|
831
|
+
async function Xt(e) {
|
|
832
|
+
return (await gt(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.g2u6ybqk.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
833
833
|
}
|
|
834
|
-
const
|
|
834
|
+
const zt = { install: ft };
|
|
835
835
|
export {
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
836
|
+
Ue as Permission,
|
|
837
|
+
Pe as addView,
|
|
838
|
+
Ae as appAppear,
|
|
839
|
+
Ut as clearViews,
|
|
840
|
+
Vt as closeWaitDlg,
|
|
841
|
+
xt as createAxios,
|
|
842
|
+
zt as default,
|
|
843
|
+
et as delView,
|
|
844
|
+
c as eventBus,
|
|
845
|
+
kt as globalObjects,
|
|
846
846
|
me as hasView,
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
847
|
+
Lt as injectDark,
|
|
848
|
+
It as injectLastAppPath,
|
|
849
|
+
Mt as injectLocale,
|
|
850
|
+
Bt as injectPermissionChecksum,
|
|
851
|
+
ze as injectPermissionObjects,
|
|
852
|
+
Ge as injectViews,
|
|
853
|
+
Ze as isEmpty,
|
|
854
854
|
le as isExist,
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
Et as lastView,
|
|
856
|
+
Xt as loadLocaleMessageEssential,
|
|
857
857
|
N as matchRouteMeta,
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
858
|
+
St as messageError,
|
|
859
|
+
Ot as messageInfo,
|
|
860
|
+
Rt as messageSuccess,
|
|
861
|
+
Tt as messageWarning,
|
|
862
|
+
At as onBeforeEach,
|
|
863
|
+
Ct as openConfirmDlg,
|
|
864
|
+
qt as openPromptDlg,
|
|
865
|
+
jt as openWaitDlg,
|
|
866
|
+
tt as popView,
|
|
867
|
+
Ke as provideDark,
|
|
868
|
+
He as provideLastAppPath,
|
|
869
|
+
We as provideLocale,
|
|
870
|
+
Ne as providePermissionChecksum,
|
|
871
|
+
Xe as providePermissionObjects,
|
|
872
|
+
Fe as provideViews,
|
|
873
|
+
F as routeTransName,
|
|
874
|
+
Re as useColor,
|
|
875
|
+
$t as useMicroApp,
|
|
876
|
+
Kt as usePermission,
|
|
877
|
+
Wt as useSystem,
|
|
878
878
|
te as useViewStack,
|
|
879
|
-
|
|
880
|
-
|
|
879
|
+
$e as verifyPermission,
|
|
880
|
+
Dt as waitMs,
|
|
881
881
|
ee as waitUtil
|
|
882
882
|
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { getCurrentInstance as M, hasInjectionContext as x, inject as b, watch as k, getCurrentScope as E, onScopeDispose as I, shallowRef as g, watchEffect as O, toValue as d, computed as S, onMounted as R, unref as D } from "vue";
|
|
2
|
+
function U(e) {
|
|
3
|
+
return E() ? (I(e), !0) : !1;
|
|
4
|
+
}
|
|
5
|
+
const y = /* @__PURE__ */ new WeakMap(), A = (...e) => {
|
|
6
|
+
var n;
|
|
7
|
+
const t = e[0], o = (n = M()) == null ? void 0 : n.proxy;
|
|
8
|
+
if (o == null && !x())
|
|
9
|
+
throw new Error("injectLocal must be called in setup");
|
|
10
|
+
return o && y.has(o) && t in y.get(o) ? y.get(o)[t] : b(...e);
|
|
11
|
+
}, B = typeof window < "u" && typeof document < "u";
|
|
12
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
13
|
+
const F = Object.prototype.toString, L = (e) => F.call(e) === "[object Object]";
|
|
14
|
+
function j(e) {
|
|
15
|
+
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
16
|
+
}
|
|
17
|
+
function w(e) {
|
|
18
|
+
return Array.isArray(e) ? e : [e];
|
|
19
|
+
}
|
|
20
|
+
function z(e, n, t) {
|
|
21
|
+
return k(
|
|
22
|
+
e,
|
|
23
|
+
n,
|
|
24
|
+
{
|
|
25
|
+
...t,
|
|
26
|
+
immediate: !0
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
const W = B ? window : void 0;
|
|
31
|
+
function P(e) {
|
|
32
|
+
var n;
|
|
33
|
+
const t = d(e);
|
|
34
|
+
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
35
|
+
}
|
|
36
|
+
function T(...e) {
|
|
37
|
+
const n = [], t = () => {
|
|
38
|
+
n.forEach((i) => i()), n.length = 0;
|
|
39
|
+
}, o = (i, c, s, l) => (i.addEventListener(c, s, l), () => i.removeEventListener(c, s, l)), r = S(() => {
|
|
40
|
+
const i = w(d(e[0])).filter((c) => c != null);
|
|
41
|
+
return i.every((c) => typeof c != "string") ? i : void 0;
|
|
42
|
+
}), a = z(
|
|
43
|
+
() => {
|
|
44
|
+
var i, c;
|
|
45
|
+
return [
|
|
46
|
+
(c = (i = r.value) == null ? void 0 : i.map((s) => P(s))) != null ? c : [W].filter((s) => s != null),
|
|
47
|
+
w(d(r.value ? e[1] : e[0])),
|
|
48
|
+
w(D(r.value ? e[2] : e[1])),
|
|
49
|
+
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
50
|
+
d(r.value ? e[3] : e[2])
|
|
51
|
+
];
|
|
52
|
+
},
|
|
53
|
+
([i, c, s, l]) => {
|
|
54
|
+
if (t(), !(i != null && i.length) || !(c != null && c.length) || !(s != null && s.length))
|
|
55
|
+
return;
|
|
56
|
+
const h = L(l) ? { ...l } : l;
|
|
57
|
+
n.push(
|
|
58
|
+
...i.flatMap(
|
|
59
|
+
(p) => c.flatMap(
|
|
60
|
+
(v) => s.map((f) => o(p, v, f, h))
|
|
61
|
+
)
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
},
|
|
65
|
+
{ flush: "post" }
|
|
66
|
+
), u = () => {
|
|
67
|
+
a(), t();
|
|
68
|
+
};
|
|
69
|
+
return U(t), u;
|
|
70
|
+
}
|
|
71
|
+
function G() {
|
|
72
|
+
const e = g(!1), n = M();
|
|
73
|
+
return n && R(() => {
|
|
74
|
+
e.value = !0;
|
|
75
|
+
}, n), e;
|
|
76
|
+
}
|
|
77
|
+
function Q(e) {
|
|
78
|
+
const n = G();
|
|
79
|
+
return S(() => (n.value, !!e()));
|
|
80
|
+
}
|
|
81
|
+
const V = Symbol("vueuse-ssr-width");
|
|
82
|
+
function $() {
|
|
83
|
+
const e = x() ? A(V, null) : null;
|
|
84
|
+
return typeof e == "number" ? e : void 0;
|
|
85
|
+
}
|
|
86
|
+
function H(e, n = {}) {
|
|
87
|
+
const { window: t = W, ssrWidth: o = $() } = n, r = Q(() => t && "matchMedia" in t && typeof t.matchMedia == "function"), a = g(typeof o == "number"), u = g(), i = g(!1), c = (s) => {
|
|
88
|
+
i.value = s.matches;
|
|
89
|
+
};
|
|
90
|
+
return O(() => {
|
|
91
|
+
if (a.value) {
|
|
92
|
+
a.value = !r.value;
|
|
93
|
+
const s = d(e).split(",");
|
|
94
|
+
i.value = s.some((l) => {
|
|
95
|
+
const h = l.includes("not all"), p = l.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), v = l.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
96
|
+
let f = !!(p || v);
|
|
97
|
+
return p && f && (f = o >= j(p[1])), v && f && (f = o <= j(v[1])), h ? !f : f;
|
|
98
|
+
});
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
r.value && (u.value = t.matchMedia(d(e)), i.value = u.value.matches);
|
|
102
|
+
}), T(u, "change", c, { passive: !0 }), S(() => i.value);
|
|
103
|
+
}
|
|
104
|
+
function X(e) {
|
|
105
|
+
return H("(prefers-color-scheme: dark)", e);
|
|
106
|
+
}
|
|
107
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
108
|
+
function m(e) {
|
|
109
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
110
|
+
var t = arguments[n];
|
|
111
|
+
for (var o in t)
|
|
112
|
+
e[o] = t[o];
|
|
113
|
+
}
|
|
114
|
+
return e;
|
|
115
|
+
}
|
|
116
|
+
var J = {
|
|
117
|
+
read: function(e) {
|
|
118
|
+
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
119
|
+
},
|
|
120
|
+
write: function(e) {
|
|
121
|
+
return encodeURIComponent(e).replace(
|
|
122
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
123
|
+
decodeURIComponent
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
function C(e, n) {
|
|
128
|
+
function t(r, a, u) {
|
|
129
|
+
if (!(typeof document > "u")) {
|
|
130
|
+
u = m({}, n, u), typeof u.expires == "number" && (u.expires = new Date(Date.now() + u.expires * 864e5)), u.expires && (u.expires = u.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
131
|
+
var i = "";
|
|
132
|
+
for (var c in u)
|
|
133
|
+
u[c] && (i += "; " + c, u[c] !== !0 && (i += "=" + u[c].split(";")[0]));
|
|
134
|
+
return document.cookie = r + "=" + e.write(a, r) + i;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function o(r) {
|
|
138
|
+
if (!(typeof document > "u" || arguments.length && !r)) {
|
|
139
|
+
for (var a = document.cookie ? document.cookie.split("; ") : [], u = {}, i = 0; i < a.length; i++) {
|
|
140
|
+
var c = a[i].split("="), s = c.slice(1).join("=");
|
|
141
|
+
try {
|
|
142
|
+
var l = decodeURIComponent(c[0]);
|
|
143
|
+
if (u[l] = e.read(s, l), r === l)
|
|
144
|
+
break;
|
|
145
|
+
} catch {
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
return r ? u[r] : u;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return Object.create(
|
|
152
|
+
{
|
|
153
|
+
set: t,
|
|
154
|
+
get: o,
|
|
155
|
+
remove: function(r, a) {
|
|
156
|
+
t(
|
|
157
|
+
r,
|
|
158
|
+
"",
|
|
159
|
+
m({}, a, {
|
|
160
|
+
expires: -1
|
|
161
|
+
})
|
|
162
|
+
);
|
|
163
|
+
},
|
|
164
|
+
withAttributes: function(r) {
|
|
165
|
+
return C(this.converter, m({}, this.attributes, r));
|
|
166
|
+
},
|
|
167
|
+
withConverter: function(r) {
|
|
168
|
+
return C(m({}, this.converter, r), this.attributes);
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
attributes: { value: Object.freeze(n) },
|
|
173
|
+
converter: { value: Object.freeze(e) }
|
|
174
|
+
}
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
var Y = C(J, { path: "/" });
|
|
178
|
+
function Z(e) {
|
|
179
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
180
|
+
var o = e.get(n);
|
|
181
|
+
o ? o.push(t) : e.set(n, [t]);
|
|
182
|
+
}, off: function(n, t) {
|
|
183
|
+
var o = e.get(n);
|
|
184
|
+
o && (t ? o.splice(o.indexOf(t) >>> 0, 1) : e.set(n, []));
|
|
185
|
+
}, emit: function(n, t) {
|
|
186
|
+
var o = e.get(n);
|
|
187
|
+
o && o.slice().map(function(r) {
|
|
188
|
+
r(t);
|
|
189
|
+
}), (o = e.get("*")) && o.slice().map(function(r) {
|
|
190
|
+
r(n, t);
|
|
191
|
+
});
|
|
192
|
+
} };
|
|
193
|
+
}
|
|
194
|
+
export {
|
|
195
|
+
Y as a,
|
|
196
|
+
Z as m,
|
|
197
|
+
X as u
|
|
198
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-essential-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "^9.28.0",
|
|
36
|
-
"@mdi/js": "^7.4.47",
|
|
37
36
|
"@types/js-cookie": "^3.0.6",
|
|
38
37
|
"@types/node": "^24.0.1",
|
|
39
38
|
"@vitejs/plugin-vue": "^5.2.4",
|
package/dist/vendor.i6w3s9o3.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as S, hasInjectionContext as A, inject as x, watch as W, getCurrentScope as b, onScopeDispose as k, shallowRef as L, watchEffect as I, toValue as d, computed as y, onMounted as E, unref as H } from "vue";
|
|
2
|
-
function O(e) {
|
|
3
|
-
return b() ? (k(e), !0) : !1;
|
|
4
|
-
}
|
|
5
|
-
const C = /* @__PURE__ */ new WeakMap(), R = (...e) => {
|
|
6
|
-
var n;
|
|
7
|
-
const t = e[0], o = (n = S()) == null ? void 0 : n.proxy;
|
|
8
|
-
if (o == null && !A())
|
|
9
|
-
throw new Error("injectLocal must be called in setup");
|
|
10
|
-
return o && C.has(o) && t in C.get(o) ? C.get(o)[t] : x(...e);
|
|
11
|
-
}, D = typeof window < "u" && typeof document < "u";
|
|
12
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
13
|
-
const U = Object.prototype.toString, B = (e) => U.call(e) === "[object Object]";
|
|
14
|
-
function w(e) {
|
|
15
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
16
|
-
}
|
|
17
|
-
function M(e) {
|
|
18
|
-
return Array.isArray(e) ? e : [e];
|
|
19
|
-
}
|
|
20
|
-
function V(e, n, t) {
|
|
21
|
-
return W(
|
|
22
|
-
e,
|
|
23
|
-
n,
|
|
24
|
-
{
|
|
25
|
-
...t,
|
|
26
|
-
immediate: !0
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
const j = D ? window : void 0;
|
|
31
|
-
function F(e) {
|
|
32
|
-
var n;
|
|
33
|
-
const t = d(e);
|
|
34
|
-
return (n = t == null ? void 0 : t.$el) != null ? n : t;
|
|
35
|
-
}
|
|
36
|
-
function Z(...e) {
|
|
37
|
-
const n = [], t = () => {
|
|
38
|
-
n.forEach((i) => i()), n.length = 0;
|
|
39
|
-
}, o = (i, c, s, a) => (i.addEventListener(c, s, a), () => i.removeEventListener(c, s, a)), r = y(() => {
|
|
40
|
-
const i = M(d(e[0])).filter((c) => c != null);
|
|
41
|
-
return i.every((c) => typeof c != "string") ? i : void 0;
|
|
42
|
-
}), l = V(
|
|
43
|
-
() => {
|
|
44
|
-
var i, c;
|
|
45
|
-
return [
|
|
46
|
-
(c = (i = r.value) == null ? void 0 : i.map((s) => F(s))) != null ? c : [j].filter((s) => s != null),
|
|
47
|
-
M(d(r.value ? e[1] : e[0])),
|
|
48
|
-
M(H(r.value ? e[2] : e[1])),
|
|
49
|
-
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
50
|
-
d(r.value ? e[3] : e[2])
|
|
51
|
-
];
|
|
52
|
-
},
|
|
53
|
-
([i, c, s, a]) => {
|
|
54
|
-
if (t(), !(i != null && i.length) || !(c != null && c.length) || !(s != null && s.length))
|
|
55
|
-
return;
|
|
56
|
-
const m = B(a) ? { ...a } : a;
|
|
57
|
-
n.push(
|
|
58
|
-
...i.flatMap(
|
|
59
|
-
(p) => c.flatMap(
|
|
60
|
-
(v) => s.map((f) => o(p, v, f, m))
|
|
61
|
-
)
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
},
|
|
65
|
-
{ flush: "post" }
|
|
66
|
-
), u = () => {
|
|
67
|
-
l(), t();
|
|
68
|
-
};
|
|
69
|
-
return O(t), u;
|
|
70
|
-
}
|
|
71
|
-
function z() {
|
|
72
|
-
const e = L(!1), n = S();
|
|
73
|
-
return n && E(() => {
|
|
74
|
-
e.value = !0;
|
|
75
|
-
}, n), e;
|
|
76
|
-
}
|
|
77
|
-
function P(e) {
|
|
78
|
-
const n = z();
|
|
79
|
-
return y(() => (n.value, !!e()));
|
|
80
|
-
}
|
|
81
|
-
const T = Symbol("vueuse-ssr-width");
|
|
82
|
-
function G() {
|
|
83
|
-
const e = A() ? R(T, null) : null;
|
|
84
|
-
return typeof e == "number" ? e : void 0;
|
|
85
|
-
}
|
|
86
|
-
function Q(e, n = {}) {
|
|
87
|
-
const { window: t = j, ssrWidth: o = G() } = n, r = P(() => t && "matchMedia" in t && typeof t.matchMedia == "function"), l = L(typeof o == "number"), u = L(), i = L(!1), c = (s) => {
|
|
88
|
-
i.value = s.matches;
|
|
89
|
-
};
|
|
90
|
-
return I(() => {
|
|
91
|
-
if (l.value) {
|
|
92
|
-
l.value = !r.value;
|
|
93
|
-
const s = d(e).split(",");
|
|
94
|
-
i.value = s.some((a) => {
|
|
95
|
-
const m = a.includes("not all"), p = a.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), v = a.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
96
|
-
let f = !!(p || v);
|
|
97
|
-
return p && f && (f = o >= w(p[1])), v && f && (f = o <= w(v[1])), m ? !f : f;
|
|
98
|
-
});
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
r.value && (u.value = t.matchMedia(d(e)), i.value = u.value.matches);
|
|
102
|
-
}), Z(u, "change", c, { passive: !0 }), y(() => i.value);
|
|
103
|
-
}
|
|
104
|
-
function K(e) {
|
|
105
|
-
return Q("(prefers-color-scheme: dark)", e);
|
|
106
|
-
}
|
|
107
|
-
/*! js-cookie v3.0.5 | MIT */
|
|
108
|
-
function h(e) {
|
|
109
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
110
|
-
var t = arguments[n];
|
|
111
|
-
for (var o in t)
|
|
112
|
-
e[o] = t[o];
|
|
113
|
-
}
|
|
114
|
-
return e;
|
|
115
|
-
}
|
|
116
|
-
var $ = {
|
|
117
|
-
read: function(e) {
|
|
118
|
-
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
119
|
-
},
|
|
120
|
-
write: function(e) {
|
|
121
|
-
return encodeURIComponent(e).replace(
|
|
122
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
123
|
-
decodeURIComponent
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
function g(e, n) {
|
|
128
|
-
function t(r, l, u) {
|
|
129
|
-
if (!(typeof document > "u")) {
|
|
130
|
-
u = h({}, n, u), typeof u.expires == "number" && (u.expires = new Date(Date.now() + u.expires * 864e5)), u.expires && (u.expires = u.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
131
|
-
var i = "";
|
|
132
|
-
for (var c in u)
|
|
133
|
-
u[c] && (i += "; " + c, u[c] !== !0 && (i += "=" + u[c].split(";")[0]));
|
|
134
|
-
return document.cookie = r + "=" + e.write(l, r) + i;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
function o(r) {
|
|
138
|
-
if (!(typeof document > "u" || arguments.length && !r)) {
|
|
139
|
-
for (var l = document.cookie ? document.cookie.split("; ") : [], u = {}, i = 0; i < l.length; i++) {
|
|
140
|
-
var c = l[i].split("="), s = c.slice(1).join("=");
|
|
141
|
-
try {
|
|
142
|
-
var a = decodeURIComponent(c[0]);
|
|
143
|
-
if (u[a] = e.read(s, a), r === a)
|
|
144
|
-
break;
|
|
145
|
-
} catch {
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return r ? u[r] : u;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return Object.create(
|
|
152
|
-
{
|
|
153
|
-
set: t,
|
|
154
|
-
get: o,
|
|
155
|
-
remove: function(r, l) {
|
|
156
|
-
t(
|
|
157
|
-
r,
|
|
158
|
-
"",
|
|
159
|
-
h({}, l, {
|
|
160
|
-
expires: -1
|
|
161
|
-
})
|
|
162
|
-
);
|
|
163
|
-
},
|
|
164
|
-
withAttributes: function(r) {
|
|
165
|
-
return g(this.converter, h({}, this.attributes, r));
|
|
166
|
-
},
|
|
167
|
-
withConverter: function(r) {
|
|
168
|
-
return g(h({}, this.converter, r), this.attributes);
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
attributes: { value: Object.freeze(n) },
|
|
173
|
-
converter: { value: Object.freeze(e) }
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
var X = g($, { path: "/" });
|
|
178
|
-
function Y(e) {
|
|
179
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
180
|
-
var o = e.get(n);
|
|
181
|
-
o ? o.push(t) : e.set(n, [t]);
|
|
182
|
-
}, off: function(n, t) {
|
|
183
|
-
var o = e.get(n);
|
|
184
|
-
o && (t ? o.splice(o.indexOf(t) >>> 0, 1) : e.set(n, []));
|
|
185
|
-
}, emit: function(n, t) {
|
|
186
|
-
var o = e.get(n);
|
|
187
|
-
o && o.slice().map(function(r) {
|
|
188
|
-
r(t);
|
|
189
|
-
}), (o = e.get("*")) && o.slice().map(function(r) {
|
|
190
|
-
r(n, t);
|
|
191
|
-
});
|
|
192
|
-
} };
|
|
193
|
-
}
|
|
194
|
-
var N = "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", q = "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", _ = "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", ee = "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", ne = "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";
|
|
195
|
-
export {
|
|
196
|
-
X as a,
|
|
197
|
-
N as b,
|
|
198
|
-
ee as c,
|
|
199
|
-
ne as d,
|
|
200
|
-
q as e,
|
|
201
|
-
_ as f,
|
|
202
|
-
Y as m,
|
|
203
|
-
K as u
|
|
204
|
-
};
|