smarteye-e-components 0.0.81 → 0.0.83
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/smarteye-e-components.js +9 -9
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +1467 -1423
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/recursion-device-group/index.vue.d.ts +11 -4
- package/lib/components/recursion-device-group/utils.d.ts +1 -0
- package/lib/config/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { h as
|
|
1
|
+
import { h as tt, getCurrentInstance as St, effectScope as ts, inject as ke, onMounted as Ve, onUnmounted as rt, ref as M, computed as F, watch as Le, Fragment as de, isRef as ns, createVNode as Q, Text as os, defineComponent as Z, openBlock as C, createElementBlock as P, normalizeClass as xe, renderSlot as J, createElementVNode as O, toDisplayString as j, createCommentVNode as ue, normalizeStyle as pe, renderList as Ee, nextTick as ss, resolveComponent as me, withDirectives as zn, withCtx as te, createBlock as Ne, vShow as Hn, provide as rs, reactive as be, createTextVNode as Ct, unref as ae, Teleport as jn, toRaw as He } from "vue";
|
|
2
2
|
/*!
|
|
3
3
|
* shared v9.2.2
|
|
4
4
|
* (c) 2022 kazuya kawaguchi
|
|
5
5
|
* Released under the MIT License.
|
|
6
6
|
*/
|
|
7
7
|
const he = typeof window < "u";
|
|
8
|
-
let ie,
|
|
8
|
+
let ie, Se;
|
|
9
9
|
if (process.env.NODE_ENV !== "production") {
|
|
10
10
|
const e = he && window.performance;
|
|
11
|
-
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (ie = (t) => e.mark(t),
|
|
11
|
+
e && e.mark && e.measure && e.clearMarks && e.clearMeasures && (ie = (t) => e.mark(t), Se = (t, n, o) => {
|
|
12
12
|
e.measure(t, n, o), e.clearMarks(n), e.clearMarks(o);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const as = /\{([0-9a-zA-Z]+)\}/g;
|
|
16
16
|
function Dt(e, ...t) {
|
|
17
|
-
return t.length === 1 &&
|
|
17
|
+
return t.length === 1 && V(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(as, (n, o) => t.hasOwnProperty(o) ? t[o] : "");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const ls = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ve = (e) => ls ? Symbol(e) : e, is = (e, t, n) => cs({ l: e, k: t, s: n }), cs = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), X = (e) => typeof e == "number" && isFinite(e), us = (e) => $t(e) === "[object Date]", nt = (e) => $t(e) === "[object RegExp]", at = (e) => k(e) && Object.keys(e).length === 0;
|
|
20
|
+
function Ue(e, t) {
|
|
21
21
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
22
22
|
}
|
|
23
23
|
const ne = Object.assign;
|
|
@@ -26,12 +26,12 @@ const At = () => Wt || (Wt = typeof globalThis < "u" ? globalThis : typeof self
|
|
|
26
26
|
function Bt(e) {
|
|
27
27
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const ds = Object.prototype.hasOwnProperty;
|
|
30
30
|
function Pt(e, t) {
|
|
31
|
-
return
|
|
31
|
+
return ds.call(e, t);
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
33
|
+
const W = Array.isArray, Y = (e) => typeof e == "function", b = (e) => typeof e == "string", H = (e) => typeof e == "boolean", V = (e) => e !== null && typeof e == "object", Wn = Object.prototype.toString, $t = (e) => Wn.call(e), k = (e) => $t(e) === "[object Object]", fs = (e) => e == null ? "" : W(e) || k(e) && e.toString === Wn ? JSON.stringify(e, null, 2) : String(e), Kt = 2;
|
|
34
|
+
function _s(e, t = 0, n = e.length) {
|
|
35
35
|
const o = e.split(/\r?\n/);
|
|
36
36
|
let s = 0;
|
|
37
37
|
const a = [];
|
|
@@ -44,12 +44,12 @@ function fs(e, t = 0, n = e.length) {
|
|
|
44
44
|
a.push(`${i}${" ".repeat(3 - String(i).length)}| ${o[l]}`);
|
|
45
45
|
const c = o[l].length;
|
|
46
46
|
if (l === r) {
|
|
47
|
-
const
|
|
48
|
-
a.push(" | " + " ".repeat(
|
|
47
|
+
const _ = t - (s - c) + 1, d = Math.max(1, n > s ? c - _ : n - t);
|
|
48
|
+
a.push(" | " + " ".repeat(_) + "^".repeat(d));
|
|
49
49
|
} else if (l > r) {
|
|
50
50
|
if (n > s) {
|
|
51
|
-
const
|
|
52
|
-
a.push(" | " + "^".repeat(
|
|
51
|
+
const _ = Math.max(Math.min(n - s, c), 1);
|
|
52
|
+
a.push(" | " + "^".repeat(_));
|
|
53
53
|
}
|
|
54
54
|
s += c + 1;
|
|
55
55
|
}
|
|
@@ -59,7 +59,7 @@ function fs(e, t = 0, n = e.length) {
|
|
|
59
59
|
return a.join(`
|
|
60
60
|
`);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Bn() {
|
|
63
63
|
const e = /* @__PURE__ */ new Map();
|
|
64
64
|
return {
|
|
65
65
|
events: e,
|
|
@@ -81,7 +81,7 @@ function Wn() {
|
|
|
81
81
|
* (c) 2022 kazuya kawaguchi
|
|
82
82
|
* Released under the MIT License.
|
|
83
83
|
*/
|
|
84
|
-
const
|
|
84
|
+
const q = {
|
|
85
85
|
EXPECTED_TOKEN: 1,
|
|
86
86
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
87
87
|
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
@@ -97,24 +97,24 @@ const Q = {
|
|
|
97
97
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
98
98
|
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
99
99
|
__EXTEND_POINT__: 15
|
|
100
|
-
},
|
|
101
|
-
[
|
|
102
|
-
[
|
|
103
|
-
[
|
|
104
|
-
[
|
|
105
|
-
[
|
|
106
|
-
[
|
|
107
|
-
[
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[
|
|
111
|
-
[
|
|
112
|
-
[
|
|
113
|
-
[
|
|
114
|
-
[
|
|
100
|
+
}, ms = {
|
|
101
|
+
[q.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
102
|
+
[q.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
103
|
+
[q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
104
|
+
[q.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
105
|
+
[q.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
106
|
+
[q.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
107
|
+
[q.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
108
|
+
[q.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
109
|
+
[q.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
110
|
+
[q.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
111
|
+
[q.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
112
|
+
[q.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
113
|
+
[q.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
114
|
+
[q.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
115
115
|
};
|
|
116
|
-
function
|
|
117
|
-
const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ? Dt((s ||
|
|
116
|
+
function Kn(e, t, n = {}) {
|
|
117
|
+
const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ? Dt((s || ms)[e] || "", ...a || []) : e, l = new SyntaxError(String(r));
|
|
118
118
|
return l.code = e, t && (l.location = t), l.domain = o, l;
|
|
119
119
|
}
|
|
120
120
|
/*!
|
|
@@ -122,7 +122,7 @@ function Bn(e, t, n = {}) {
|
|
|
122
122
|
* (c) 2022 kazuya kawaguchi
|
|
123
123
|
* Released under the MIT License.
|
|
124
124
|
*/
|
|
125
|
-
const
|
|
125
|
+
const Yn = {
|
|
126
126
|
I18nInit: "i18n:init",
|
|
127
127
|
FunctionTranslate: "function:translate"
|
|
128
128
|
};
|
|
@@ -131,25 +131,25 @@ const Kn = {
|
|
|
131
131
|
* (c) 2022 kazuya kawaguchi
|
|
132
132
|
* Released under the MIT License.
|
|
133
133
|
*/
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const Oe = [];
|
|
135
|
+
Oe[0] = {
|
|
136
136
|
w: [0],
|
|
137
137
|
i: [3, 0],
|
|
138
138
|
["["]: [4],
|
|
139
139
|
o: [7]
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
Oe[1] = {
|
|
142
142
|
w: [1],
|
|
143
143
|
["."]: [2],
|
|
144
144
|
["["]: [4],
|
|
145
145
|
o: [7]
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
Oe[2] = {
|
|
148
148
|
w: [2],
|
|
149
149
|
i: [3, 0],
|
|
150
150
|
[0]: [3, 0]
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
Oe[3] = {
|
|
153
153
|
i: [3, 0],
|
|
154
154
|
[0]: [3, 0],
|
|
155
155
|
w: [1, 1],
|
|
@@ -157,7 +157,7 @@ Le[3] = {
|
|
|
157
157
|
["["]: [4, 1],
|
|
158
158
|
o: [7, 1]
|
|
159
159
|
};
|
|
160
|
-
|
|
160
|
+
Oe[4] = {
|
|
161
161
|
["'"]: [5, 0],
|
|
162
162
|
['"']: [6, 0],
|
|
163
163
|
["["]: [
|
|
@@ -168,25 +168,25 @@ Le[4] = {
|
|
|
168
168
|
o: 8,
|
|
169
169
|
l: [4, 0]
|
|
170
170
|
};
|
|
171
|
-
|
|
171
|
+
Oe[5] = {
|
|
172
172
|
["'"]: [4, 0],
|
|
173
173
|
o: 8,
|
|
174
174
|
l: [5, 0]
|
|
175
175
|
};
|
|
176
|
-
|
|
176
|
+
Oe[6] = {
|
|
177
177
|
['"']: [4, 0],
|
|
178
178
|
o: 8,
|
|
179
179
|
l: [6, 0]
|
|
180
180
|
};
|
|
181
|
-
const
|
|
182
|
-
function ps(e) {
|
|
183
|
-
return ms.test(e);
|
|
184
|
-
}
|
|
181
|
+
const ps = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
185
182
|
function gs(e) {
|
|
183
|
+
return ps.test(e);
|
|
184
|
+
}
|
|
185
|
+
function hs(e) {
|
|
186
186
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
187
187
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function vs(e) {
|
|
190
190
|
if (e == null)
|
|
191
191
|
return "o";
|
|
192
192
|
switch (e.charCodeAt(0)) {
|
|
@@ -211,13 +211,13 @@ function hs(e) {
|
|
|
211
211
|
}
|
|
212
212
|
return "i";
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function ys(e) {
|
|
215
215
|
const t = e.trim();
|
|
216
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
216
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : gs(t) ? hs(t) : "*" + t;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ws(e) {
|
|
219
219
|
const t = [];
|
|
220
|
-
let n = -1, o = 0, s = 0, a, r, l, i, c,
|
|
220
|
+
let n = -1, o = 0, s = 0, a, r, l, i, c, _, d;
|
|
221
221
|
const u = [];
|
|
222
222
|
u[0] = () => {
|
|
223
223
|
r === void 0 ? r = l : r += l;
|
|
@@ -229,19 +229,19 @@ function ys(e) {
|
|
|
229
229
|
if (s > 0)
|
|
230
230
|
s--, o = 4, u[0]();
|
|
231
231
|
else {
|
|
232
|
-
if (s = 0, r === void 0 || (r =
|
|
232
|
+
if (s = 0, r === void 0 || (r = ys(r), r === !1))
|
|
233
233
|
return !1;
|
|
234
234
|
u[1]();
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
|
-
function
|
|
238
|
-
const
|
|
239
|
-
if (o === 5 &&
|
|
240
|
-
return n++, l = "\\" +
|
|
237
|
+
function m() {
|
|
238
|
+
const E = e[n + 1];
|
|
239
|
+
if (o === 5 && E === "'" || o === 6 && E === '"')
|
|
240
|
+
return n++, l = "\\" + E, u[0](), !0;
|
|
241
241
|
}
|
|
242
242
|
for (; o !== null; )
|
|
243
|
-
if (n++, a = e[n], !(a === "\\" &&
|
|
244
|
-
if (i =
|
|
243
|
+
if (n++, a = e[n], !(a === "\\" && m())) {
|
|
244
|
+
if (i = vs(a), d = Oe[o], c = d[i] || d.l || 8, c === 8 || (o = c[0], c[1] !== void 0 && (_ = u[c[1]], _ && (l = a, _() === !1))))
|
|
245
245
|
return;
|
|
246
246
|
if (o === 7)
|
|
247
247
|
return t;
|
|
@@ -249,13 +249,13 @@ function ys(e) {
|
|
|
249
249
|
}
|
|
250
250
|
const Yt = /* @__PURE__ */ new Map();
|
|
251
251
|
function Es(e, t) {
|
|
252
|
-
return
|
|
252
|
+
return V(e) ? e[t] : null;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
if (!
|
|
254
|
+
function Ls(e, t) {
|
|
255
|
+
if (!V(e))
|
|
256
256
|
return null;
|
|
257
257
|
let n = Yt.get(t);
|
|
258
|
-
if (n || (n =
|
|
258
|
+
if (n || (n = ws(t), n && Yt.set(t, n)), !n)
|
|
259
259
|
return null;
|
|
260
260
|
const o = n.length;
|
|
261
261
|
let s = e, a = 0;
|
|
@@ -267,58 +267,58 @@ function ws(e, t) {
|
|
|
267
267
|
}
|
|
268
268
|
return s;
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const bs = (e) => e, Os = (e) => "", Is = "text", Ts = (e) => e.length === 0 ? "" : e.join(""), Ns = fs;
|
|
271
271
|
function Xt(e, t) {
|
|
272
272
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
const t =
|
|
276
|
-
return e.named && (
|
|
274
|
+
function Ss(e) {
|
|
275
|
+
const t = X(e.pluralIndex) ? e.pluralIndex : -1;
|
|
276
|
+
return e.named && (X(e.named.count) || X(e.named.n)) ? X(e.named.count) ? e.named.count : X(e.named.n) ? e.named.n : t : t;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Cs(e, t) {
|
|
279
279
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
const t = e.locale, n =
|
|
283
|
-
|
|
284
|
-
const c = (
|
|
285
|
-
function
|
|
286
|
-
const
|
|
287
|
-
return
|
|
281
|
+
function Ds(e = {}) {
|
|
282
|
+
const t = e.locale, n = Ss(e), o = V(e.pluralRules) && b(t) && Y(e.pluralRules[t]) ? e.pluralRules[t] : Xt, s = V(e.pluralRules) && b(t) && Y(e.pluralRules[t]) ? Xt : void 0, a = (h) => h[o(n, h.length, s)], r = e.list || [], l = (h) => r[h], i = e.named || {};
|
|
283
|
+
X(e.pluralIndex) && Cs(n, i);
|
|
284
|
+
const c = (h) => i[h];
|
|
285
|
+
function _(h) {
|
|
286
|
+
const w = Y(e.messages) ? e.messages(h) : V(e.messages) ? e.messages[h] : !1;
|
|
287
|
+
return w || (e.parent ? e.parent.message(h) : Os);
|
|
288
288
|
}
|
|
289
|
-
const d = (
|
|
289
|
+
const d = (h) => e.modifiers ? e.modifiers[h] : bs, u = k(e.processor) && Y(e.processor.normalize) ? e.processor.normalize : Ts, m = k(e.processor) && Y(e.processor.interpolate) ? e.processor.interpolate : Ns, E = k(e.processor) && b(e.processor.type) ? e.processor.type : Is, y = {
|
|
290
290
|
list: l,
|
|
291
291
|
named: c,
|
|
292
292
|
plural: a,
|
|
293
|
-
linked: (
|
|
294
|
-
const [
|
|
295
|
-
let v = "text",
|
|
296
|
-
|
|
297
|
-
let
|
|
298
|
-
return v === "vnode" &&
|
|
293
|
+
linked: (h, ...w) => {
|
|
294
|
+
const [A, D] = w;
|
|
295
|
+
let v = "text", p = "";
|
|
296
|
+
w.length === 1 ? V(A) ? (p = A.modifier || p, v = A.type || v) : b(A) && (p = A || p) : w.length === 2 && (b(A) && (p = A || p), b(D) && (v = D || v));
|
|
297
|
+
let T = _(h)(y);
|
|
298
|
+
return v === "vnode" && W(T) && p && (T = T[0]), p ? d(p)(T, v) : T;
|
|
299
299
|
},
|
|
300
|
-
message:
|
|
301
|
-
type:
|
|
302
|
-
interpolate:
|
|
300
|
+
message: _,
|
|
301
|
+
type: E,
|
|
302
|
+
interpolate: m,
|
|
303
303
|
normalize: u
|
|
304
304
|
};
|
|
305
|
-
return
|
|
305
|
+
return y;
|
|
306
306
|
}
|
|
307
|
-
let
|
|
308
|
-
function
|
|
309
|
-
|
|
307
|
+
let Ke = null;
|
|
308
|
+
function As(e) {
|
|
309
|
+
Ke = e;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
311
|
+
function Ps(e, t, n) {
|
|
312
|
+
Ke && Ke.emit(Yn.I18nInit, {
|
|
313
313
|
timestamp: Date.now(),
|
|
314
314
|
i18n: e,
|
|
315
315
|
version: t,
|
|
316
316
|
meta: n
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
const
|
|
320
|
-
function
|
|
321
|
-
return (t) =>
|
|
319
|
+
const $s = /* @__PURE__ */ Ms(Yn.FunctionTranslate);
|
|
320
|
+
function Ms(e) {
|
|
321
|
+
return (t) => Ke && Ke.emit(e, t);
|
|
322
322
|
}
|
|
323
323
|
const le = {
|
|
324
324
|
NOT_FOUND_KEY: 1,
|
|
@@ -328,7 +328,7 @@ const le = {
|
|
|
328
328
|
CANNOT_FORMAT_DATE: 5,
|
|
329
329
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
330
330
|
__EXTEND_POINT__: 7
|
|
331
|
-
},
|
|
331
|
+
}, ks = {
|
|
332
332
|
[le.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
333
333
|
[le.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
334
334
|
[le.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -336,84 +336,84 @@ const le = {
|
|
|
336
336
|
[le.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
337
337
|
[le.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
|
|
338
338
|
};
|
|
339
|
-
function
|
|
340
|
-
return Dt(
|
|
339
|
+
function Fe(e, ...t) {
|
|
340
|
+
return Dt(ks[e], ...t);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Rs(e, t, n) {
|
|
343
343
|
return [.../* @__PURE__ */ new Set([
|
|
344
344
|
n,
|
|
345
|
-
...
|
|
345
|
+
...W(t) ? t : V(t) ? Object.keys(t) : b(t) ? [t] : [n]
|
|
346
346
|
])];
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Xn(e, t, n) {
|
|
349
349
|
const o = b(n) ? n : Mt, s = e;
|
|
350
350
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
351
351
|
let a = s.__localeChainCache.get(o);
|
|
352
352
|
if (!a) {
|
|
353
353
|
a = [];
|
|
354
354
|
let r = [n];
|
|
355
|
-
for (;
|
|
355
|
+
for (; W(r); )
|
|
356
356
|
r = Jt(a, r, t);
|
|
357
|
-
const l =
|
|
358
|
-
r = b(l) ? [l] : l,
|
|
357
|
+
const l = W(t) || !k(t) ? t : t.default ? t.default : null;
|
|
358
|
+
r = b(l) ? [l] : l, W(r) && Jt(a, r, !1), s.__localeChainCache.set(o, a);
|
|
359
359
|
}
|
|
360
360
|
return a;
|
|
361
361
|
}
|
|
362
362
|
function Jt(e, t, n) {
|
|
363
363
|
let o = !0;
|
|
364
|
-
for (let s = 0; s < t.length &&
|
|
364
|
+
for (let s = 0; s < t.length && H(o); s++) {
|
|
365
365
|
const a = t[s];
|
|
366
|
-
b(a) && (o =
|
|
366
|
+
b(a) && (o = xs(e, t[s], n));
|
|
367
367
|
}
|
|
368
368
|
return o;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function xs(e, t, n) {
|
|
371
371
|
let o;
|
|
372
372
|
const s = t.split("-");
|
|
373
373
|
do {
|
|
374
374
|
const a = s.join("-");
|
|
375
|
-
o =
|
|
375
|
+
o = Fs(e, a, n), s.splice(-1, 1);
|
|
376
376
|
} while (s.length && o === !0);
|
|
377
377
|
return o;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Fs(e, t, n) {
|
|
380
380
|
let o = !1;
|
|
381
381
|
if (!e.includes(t) && (o = !0, t)) {
|
|
382
382
|
o = t[t.length - 1] !== "!";
|
|
383
383
|
const s = t.replace(/!/g, "");
|
|
384
|
-
e.push(s), (
|
|
384
|
+
e.push(s), (W(n) || k(n)) && n[s] && (o = n[s]);
|
|
385
385
|
}
|
|
386
386
|
return o;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const Vs = "9.2.2", lt = -1, Mt = "en-US", ot = "", Qt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
389
|
+
function Us() {
|
|
390
390
|
return {
|
|
391
|
-
upper: (e, t) => t === "text" && b(e) ? e.toUpperCase() : t === "vnode" &&
|
|
392
|
-
lower: (e, t) => t === "text" && b(e) ? e.toLowerCase() : t === "vnode" &&
|
|
393
|
-
capitalize: (e, t) => t === "text" && b(e) ? Qt(e) : t === "vnode" &&
|
|
391
|
+
upper: (e, t) => t === "text" && b(e) ? e.toUpperCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
392
|
+
lower: (e, t) => t === "text" && b(e) ? e.toLowerCase() : t === "vnode" && V(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
393
|
+
capitalize: (e, t) => t === "text" && b(e) ? Qt(e) : t === "vnode" && V(e) && "__v_isVNode" in e ? Qt(e.children) : e
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
let
|
|
397
|
-
function Gs(e) {
|
|
398
|
-
Xn = e;
|
|
399
|
-
}
|
|
400
|
-
let Jn;
|
|
396
|
+
let Gs, Jn;
|
|
401
397
|
function zs(e) {
|
|
402
398
|
Jn = e;
|
|
403
399
|
}
|
|
404
|
-
let Qn
|
|
405
|
-
|
|
400
|
+
let Qn;
|
|
401
|
+
function Hs(e) {
|
|
406
402
|
Qn = e;
|
|
407
|
-
}
|
|
403
|
+
}
|
|
408
404
|
let qn = null;
|
|
409
|
-
const
|
|
405
|
+
const qt = (e) => {
|
|
410
406
|
qn = e;
|
|
411
407
|
}, js = () => qn;
|
|
408
|
+
let Zn = null;
|
|
409
|
+
const Zt = (e) => {
|
|
410
|
+
Zn = e;
|
|
411
|
+
}, Ws = () => Zn;
|
|
412
412
|
let en = 0;
|
|
413
|
-
function
|
|
414
|
-
const t = b(e.version) ? e.version :
|
|
413
|
+
function Bs(e = {}) {
|
|
414
|
+
const t = b(e.version) ? e.version : Vs, n = b(e.locale) ? e.locale : Mt, o = W(e.fallbackLocale) || k(e.fallbackLocale) || b(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = k(e.messages) ? e.messages : { [n]: {} }, a = k(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, r = k(e.numberFormats) ? e.numberFormats : { [n]: {} }, l = ne({}, e.modifiers || {}, Us()), i = e.pluralRules || {}, c = Y(e.missing) ? e.missing : null, _ = H(e.missingWarn) || nt(e.missingWarn) ? e.missingWarn : !0, d = H(e.fallbackWarn) || nt(e.fallbackWarn) ? e.fallbackWarn : !0, u = !!e.fallbackFormat, m = !!e.unresolving, E = Y(e.postTranslation) ? e.postTranslation : null, L = k(e.processor) ? e.processor : null, y = H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, h = !!e.escapeParameter, w = Y(e.messageCompiler) ? e.messageCompiler : Gs, A = Y(e.messageResolver) ? e.messageResolver : Jn || Es, D = Y(e.localeFallbacker) ? e.localeFallbacker : Qn || Rs, v = V(e.fallbackContext) ? e.fallbackContext : void 0, p = Y(e.onWarn) ? e.onWarn : Ue, T = e, N = V(T.__datetimeFormatters) ? T.__datetimeFormatters : /* @__PURE__ */ new Map(), R = V(T.__numberFormatters) ? T.__numberFormatters : /* @__PURE__ */ new Map(), G = V(T.__meta) ? T.__meta : {};
|
|
415
415
|
en++;
|
|
416
|
-
const
|
|
416
|
+
const K = {
|
|
417
417
|
version: t,
|
|
418
418
|
cid: en,
|
|
419
419
|
locale: n,
|
|
@@ -422,27 +422,27 @@ function Ws(e = {}) {
|
|
|
422
422
|
modifiers: l,
|
|
423
423
|
pluralRules: i,
|
|
424
424
|
missing: c,
|
|
425
|
-
missingWarn:
|
|
425
|
+
missingWarn: _,
|
|
426
426
|
fallbackWarn: d,
|
|
427
427
|
fallbackFormat: u,
|
|
428
|
-
unresolving:
|
|
429
|
-
postTranslation:
|
|
430
|
-
processor:
|
|
431
|
-
warnHtmlMessage:
|
|
432
|
-
escapeParameter:
|
|
433
|
-
messageCompiler:
|
|
434
|
-
messageResolver:
|
|
435
|
-
localeFallbacker:
|
|
428
|
+
unresolving: m,
|
|
429
|
+
postTranslation: E,
|
|
430
|
+
processor: L,
|
|
431
|
+
warnHtmlMessage: y,
|
|
432
|
+
escapeParameter: h,
|
|
433
|
+
messageCompiler: w,
|
|
434
|
+
messageResolver: A,
|
|
435
|
+
localeFallbacker: D,
|
|
436
436
|
fallbackContext: v,
|
|
437
|
-
onWarn:
|
|
438
|
-
__meta:
|
|
437
|
+
onWarn: p,
|
|
438
|
+
__meta: G
|
|
439
439
|
};
|
|
440
|
-
return
|
|
440
|
+
return K.datetimeFormats = a, K.numberFormats = r, K.__datetimeFormatters = N, K.__numberFormatters = R, process.env.NODE_ENV !== "production" && (K.__v_emitter = T.__v_emitter != null ? T.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ps(K, t, G), K;
|
|
441
441
|
}
|
|
442
442
|
function it(e, t) {
|
|
443
443
|
return e instanceof RegExp ? e.test(t) : e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function eo(e, t) {
|
|
446
446
|
return e instanceof RegExp ? e.test(t) : e;
|
|
447
447
|
}
|
|
448
448
|
function kt(e, t, n, o, s) {
|
|
@@ -460,109 +460,109 @@ function kt(e, t, n, o, s) {
|
|
|
460
460
|
const l = a(e, n, t, s);
|
|
461
461
|
return b(l) ? l : t;
|
|
462
462
|
} else
|
|
463
|
-
return process.env.NODE_ENV !== "production" &&
|
|
463
|
+
return process.env.NODE_ENV !== "production" && eo(o, t) && r(Fe(le.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function ze(e, t, n) {
|
|
466
466
|
const o = e;
|
|
467
467
|
o.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
468
468
|
}
|
|
469
|
-
let
|
|
470
|
-
const _t = () => ++
|
|
471
|
-
INVALID_ARGUMENT:
|
|
469
|
+
let to = q.__EXTEND_POINT__;
|
|
470
|
+
const _t = () => ++to, we = {
|
|
471
|
+
INVALID_ARGUMENT: to,
|
|
472
472
|
INVALID_DATE_ARGUMENT: _t(),
|
|
473
473
|
INVALID_ISO_DATE_ARGUMENT: _t(),
|
|
474
474
|
__EXTEND_POINT__: _t()
|
|
475
475
|
};
|
|
476
|
-
function
|
|
477
|
-
return
|
|
478
|
-
}
|
|
479
|
-
const
|
|
480
|
-
[
|
|
481
|
-
[
|
|
482
|
-
[
|
|
483
|
-
}, tn = () => "",
|
|
476
|
+
function Re(e) {
|
|
477
|
+
return Kn(e, null, process.env.NODE_ENV !== "production" ? { messages: Ks } : void 0);
|
|
478
|
+
}
|
|
479
|
+
const Ks = {
|
|
480
|
+
[we.INVALID_ARGUMENT]: "Invalid arguments",
|
|
481
|
+
[we.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
482
|
+
[we.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
483
|
+
}, tn = () => "", ge = (e) => Y(e);
|
|
484
484
|
function nn(e, ...t) {
|
|
485
|
-
const { fallbackFormat: n, postTranslation: o, unresolving: s, messageCompiler: a, fallbackLocale: r, messages: l } = e, [i, c] = gt(...t),
|
|
486
|
-
u &&
|
|
487
|
-
let [
|
|
485
|
+
const { fallbackFormat: n, postTranslation: o, unresolving: s, messageCompiler: a, fallbackLocale: r, messages: l } = e, [i, c] = gt(...t), _ = H(c.missingWarn) ? c.missingWarn : e.missingWarn, d = H(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, u = H(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, m = !!c.resolvedMessage, E = b(c.default) || H(c.default) ? H(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", L = n || E !== "", y = b(c.locale) ? c.locale : e.locale;
|
|
486
|
+
u && Ys(c);
|
|
487
|
+
let [h, w, A] = m ? [
|
|
488
488
|
i,
|
|
489
|
-
|
|
490
|
-
l[
|
|
491
|
-
] :
|
|
492
|
-
if (!
|
|
489
|
+
y,
|
|
490
|
+
l[y] || {}
|
|
491
|
+
] : no(e, i, y, r, d, _), D = h, v = i;
|
|
492
|
+
if (!m && !(b(D) || ge(D)) && L && (D = E, v = D), !m && (!(b(D) || ge(D)) || !b(w)))
|
|
493
493
|
return s ? lt : i;
|
|
494
|
-
if (process.env.NODE_ENV !== "production" && b(
|
|
495
|
-
return
|
|
496
|
-
let
|
|
497
|
-
const
|
|
498
|
-
|
|
499
|
-
},
|
|
500
|
-
if (
|
|
501
|
-
return
|
|
502
|
-
const
|
|
494
|
+
if (process.env.NODE_ENV !== "production" && b(D) && e.messageCompiler == null)
|
|
495
|
+
return Ue(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`), i;
|
|
496
|
+
let p = !1;
|
|
497
|
+
const T = () => {
|
|
498
|
+
p = !0;
|
|
499
|
+
}, N = ge(D) ? D : oo(e, i, w, D, v, T);
|
|
500
|
+
if (p)
|
|
501
|
+
return D;
|
|
502
|
+
const R = Qs(e, w, A, c), G = Ds(R), K = Xs(e, N, G), ye = o ? o(K, i) : K;
|
|
503
503
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
504
504
|
const I = {
|
|
505
505
|
timestamp: Date.now(),
|
|
506
|
-
key: b(i) ? i :
|
|
507
|
-
locale:
|
|
508
|
-
format: b(
|
|
509
|
-
message:
|
|
506
|
+
key: b(i) ? i : ge(D) ? D.key : "",
|
|
507
|
+
locale: w || (ge(D) ? D.locale : ""),
|
|
508
|
+
format: b(D) ? D : ge(D) ? D.source : "",
|
|
509
|
+
message: ye
|
|
510
510
|
};
|
|
511
|
-
I.meta = ne({}, e.__meta,
|
|
511
|
+
I.meta = ne({}, e.__meta, js() || {}), $s(I);
|
|
512
512
|
}
|
|
513
|
-
return
|
|
513
|
+
return ye;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
|
|
515
|
+
function Ys(e) {
|
|
516
|
+
W(e.list) ? e.list = e.list.map((t) => b(t) ? Bt(t) : t) : V(e.named) && Object.keys(e.named).forEach((t) => {
|
|
517
517
|
b(e.named[t]) && (e.named[t] = Bt(e.named[t]));
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
const { messages: r, onWarn: l, messageResolver: i, localeFallbacker: c } = e,
|
|
522
|
-
let d = {}, u,
|
|
523
|
-
const
|
|
524
|
-
for (let
|
|
525
|
-
if (u =
|
|
520
|
+
function no(e, t, n, o, s, a) {
|
|
521
|
+
const { messages: r, onWarn: l, messageResolver: i, localeFallbacker: c } = e, _ = c(e, o, n);
|
|
522
|
+
let d = {}, u, m = null, E = n, L = null;
|
|
523
|
+
const y = "translate";
|
|
524
|
+
for (let h = 0; h < _.length; h++) {
|
|
525
|
+
if (u = L = _[h], process.env.NODE_ENV !== "production" && n !== u && it(s, t) && l(Fe(le.FALLBACK_TO_TRANSLATE, {
|
|
526
526
|
key: t,
|
|
527
527
|
target: u
|
|
528
528
|
})), process.env.NODE_ENV !== "production" && n !== u) {
|
|
529
|
-
const
|
|
530
|
-
|
|
531
|
-
type:
|
|
529
|
+
const p = e.__v_emitter;
|
|
530
|
+
p && p.emit("fallback", {
|
|
531
|
+
type: y,
|
|
532
532
|
key: t,
|
|
533
|
-
from:
|
|
534
|
-
to:
|
|
535
|
-
groupId: `${
|
|
533
|
+
from: E,
|
|
534
|
+
to: L,
|
|
535
|
+
groupId: `${y}:${t}`
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
d = r[u] || {};
|
|
539
|
-
let
|
|
540
|
-
if (process.env.NODE_ENV !== "production" && he && (
|
|
541
|
-
const
|
|
542
|
-
|
|
539
|
+
let w = null, A, D;
|
|
540
|
+
if (process.env.NODE_ENV !== "production" && he && (w = window.performance.now(), A = "intlify-message-resolve-start", D = "intlify-message-resolve-end", ie && ie(A)), (m = i(d, t)) === null && (m = d[t]), process.env.NODE_ENV !== "production" && he) {
|
|
541
|
+
const p = window.performance.now(), T = e.__v_emitter;
|
|
542
|
+
T && w && m && T.emit("message-resolve", {
|
|
543
543
|
type: "message-resolve",
|
|
544
544
|
key: t,
|
|
545
|
-
message:
|
|
546
|
-
time:
|
|
547
|
-
groupId: `${
|
|
548
|
-
}),
|
|
545
|
+
message: m,
|
|
546
|
+
time: p - w,
|
|
547
|
+
groupId: `${y}:${t}`
|
|
548
|
+
}), A && D && ie && Se && (ie(D), Se("intlify message resolve", A, D));
|
|
549
549
|
}
|
|
550
|
-
if (b(
|
|
550
|
+
if (b(m) || Y(m))
|
|
551
551
|
break;
|
|
552
552
|
const v = kt(
|
|
553
553
|
e,
|
|
554
554
|
t,
|
|
555
555
|
u,
|
|
556
556
|
a,
|
|
557
|
-
|
|
557
|
+
y
|
|
558
558
|
);
|
|
559
|
-
v !== t && (
|
|
559
|
+
v !== t && (m = v), E = L;
|
|
560
560
|
}
|
|
561
|
-
return [
|
|
561
|
+
return [m, u, d];
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function oo(e, t, n, o, s, a) {
|
|
564
564
|
const { messageCompiler: r, warnHtmlMessage: l } = e;
|
|
565
|
-
if (
|
|
565
|
+
if (ge(o)) {
|
|
566
566
|
const u = o;
|
|
567
567
|
return u.locale = u.locale || n, u.key = u.key || t, u;
|
|
568
568
|
}
|
|
@@ -570,21 +570,21 @@ function no(e, t, n, o, s, a) {
|
|
|
570
570
|
const u = () => o;
|
|
571
571
|
return u.locale = n, u.key = t, u;
|
|
572
572
|
}
|
|
573
|
-
let i = null, c,
|
|
574
|
-
process.env.NODE_ENV !== "production" && he && (i = window.performance.now(), c = "intlify-message-compilation-start",
|
|
575
|
-
const d = r(o,
|
|
573
|
+
let i = null, c, _;
|
|
574
|
+
process.env.NODE_ENV !== "production" && he && (i = window.performance.now(), c = "intlify-message-compilation-start", _ = "intlify-message-compilation-end", ie && ie(c));
|
|
575
|
+
const d = r(o, Js(e, n, s, o, l, a));
|
|
576
576
|
if (process.env.NODE_ENV !== "production" && he) {
|
|
577
|
-
const u = window.performance.now(),
|
|
578
|
-
|
|
577
|
+
const u = window.performance.now(), m = e.__v_emitter;
|
|
578
|
+
m && i && m.emit("message-compilation", {
|
|
579
579
|
type: "message-compilation",
|
|
580
580
|
message: o,
|
|
581
581
|
time: u - i,
|
|
582
582
|
groupId: `translate:${t}`
|
|
583
|
-
}), c &&
|
|
583
|
+
}), c && _ && ie && Se && (ie(_), Se("intlify message compilation", c, _));
|
|
584
584
|
}
|
|
585
585
|
return d.locale = n, d.key = t, d.source = o, d;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Xs(e, t, n) {
|
|
588
588
|
let o = null, s, a;
|
|
589
589
|
process.env.NODE_ENV !== "production" && he && (o = window.performance.now(), s = "intlify-message-evaluation-start", a = "intlify-message-evaluation-end", ie && ie(s));
|
|
590
590
|
const r = t(n);
|
|
@@ -595,23 +595,23 @@ function Ys(e, t, n) {
|
|
|
595
595
|
value: r,
|
|
596
596
|
time: l - o,
|
|
597
597
|
groupId: `translate:${t.key}`
|
|
598
|
-
}), s && a && ie &&
|
|
598
|
+
}), s && a && ie && Se && (ie(a), Se("intlify message evaluation", s, a));
|
|
599
599
|
}
|
|
600
600
|
return r;
|
|
601
601
|
}
|
|
602
602
|
function gt(...e) {
|
|
603
603
|
const [t, n, o] = e, s = {};
|
|
604
|
-
if (!b(t) && !
|
|
605
|
-
throw
|
|
606
|
-
const a =
|
|
607
|
-
return
|
|
604
|
+
if (!b(t) && !X(t) && !ge(t))
|
|
605
|
+
throw Re(we.INVALID_ARGUMENT);
|
|
606
|
+
const a = X(t) ? String(t) : (ge(t), t);
|
|
607
|
+
return X(n) ? s.plural = n : b(n) ? s.default = n : k(n) && !at(n) ? s.named = n : W(n) && (s.list = n), X(o) ? s.plural = o : b(o) ? s.default = o : k(o) && ne(s, o), [a, s];
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Js(e, t, n, o, s, a) {
|
|
610
610
|
return {
|
|
611
611
|
warnHtmlMessage: s,
|
|
612
612
|
onError: (r) => {
|
|
613
613
|
if (a && a(r), process.env.NODE_ENV !== "production") {
|
|
614
|
-
const l = `Message compilation error: ${r.message}`, i = r.location &&
|
|
614
|
+
const l = `Message compilation error: ${r.message}`, i = r.location && _s(o, r.location.start.offset, r.location.end.offset), c = e.__v_emitter;
|
|
615
615
|
c && c.emit("compile-error", {
|
|
616
616
|
message: o,
|
|
617
617
|
error: r.message,
|
|
@@ -623,75 +623,75 @@ ${i}` : l);
|
|
|
623
623
|
} else
|
|
624
624
|
throw r;
|
|
625
625
|
},
|
|
626
|
-
onCacheKey: (r) =>
|
|
626
|
+
onCacheKey: (r) => is(t, n, r)
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
const { modifiers: s, pluralRules: a, messageResolver: r, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext:
|
|
629
|
+
function Qs(e, t, n, o) {
|
|
630
|
+
const { modifiers: s, pluralRules: a, messageResolver: r, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: _ } = e, u = {
|
|
631
631
|
locale: t,
|
|
632
632
|
modifiers: s,
|
|
633
633
|
pluralRules: a,
|
|
634
|
-
messages: (
|
|
635
|
-
let
|
|
636
|
-
if (
|
|
637
|
-
const [, ,
|
|
638
|
-
|
|
634
|
+
messages: (m) => {
|
|
635
|
+
let E = r(n, m);
|
|
636
|
+
if (E == null && _) {
|
|
637
|
+
const [, , L] = no(_, m, t, l, i, c);
|
|
638
|
+
E = r(L, m);
|
|
639
639
|
}
|
|
640
|
-
if (b(
|
|
641
|
-
let
|
|
642
|
-
const
|
|
643
|
-
|
|
640
|
+
if (b(E)) {
|
|
641
|
+
let L = !1;
|
|
642
|
+
const h = oo(e, m, t, E, m, () => {
|
|
643
|
+
L = !0;
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return L ? tn : h;
|
|
646
646
|
} else
|
|
647
|
-
return
|
|
647
|
+
return ge(E) ? E : tn;
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
return e.processor && (u.processor = e.processor), o.list && (u.list = o.list), o.named && (u.named = o.named),
|
|
650
|
+
return e.processor && (u.processor = e.processor), o.list && (u.list = o.list), o.named && (u.named = o.named), X(o.plural) && (u.pluralIndex = o.plural), u;
|
|
651
651
|
}
|
|
652
|
-
const on = typeof Intl < "u",
|
|
652
|
+
const on = typeof Intl < "u", so = {
|
|
653
653
|
dateTimeFormat: on && typeof Intl.DateTimeFormat < "u",
|
|
654
654
|
numberFormat: on && typeof Intl.NumberFormat < "u"
|
|
655
655
|
};
|
|
656
656
|
function sn(e, ...t) {
|
|
657
657
|
const { datetimeFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __datetimeFormatters: l } = e;
|
|
658
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
659
|
-
return a(
|
|
660
|
-
const [i, c,
|
|
658
|
+
if (process.env.NODE_ENV !== "production" && !so.dateTimeFormat)
|
|
659
|
+
return a(Fe(le.CANNOT_FORMAT_DATE)), ot;
|
|
660
|
+
const [i, c, _, d] = ht(...t), u = H(_.missingWarn) ? _.missingWarn : e.missingWarn, m = H(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = !!_.part, L = b(_.locale) ? _.locale : e.locale, y = r(
|
|
661
661
|
e,
|
|
662
662
|
s,
|
|
663
|
-
|
|
663
|
+
L
|
|
664
664
|
);
|
|
665
665
|
if (!b(i) || i === "")
|
|
666
|
-
return new Intl.DateTimeFormat(
|
|
667
|
-
let
|
|
668
|
-
const
|
|
669
|
-
for (let
|
|
670
|
-
if (
|
|
666
|
+
return new Intl.DateTimeFormat(L, d).format(c);
|
|
667
|
+
let h = {}, w, A = null, D = L, v = null;
|
|
668
|
+
const p = "datetime format";
|
|
669
|
+
for (let R = 0; R < y.length; R++) {
|
|
670
|
+
if (w = v = y[R], process.env.NODE_ENV !== "production" && L !== w && it(m, i) && a(Fe(le.FALLBACK_TO_DATE_FORMAT, {
|
|
671
671
|
key: i,
|
|
672
|
-
target:
|
|
673
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
type:
|
|
672
|
+
target: w
|
|
673
|
+
})), process.env.NODE_ENV !== "production" && L !== w) {
|
|
674
|
+
const G = e.__v_emitter;
|
|
675
|
+
G && G.emit("fallback", {
|
|
676
|
+
type: p,
|
|
677
677
|
key: i,
|
|
678
|
-
from:
|
|
678
|
+
from: D,
|
|
679
679
|
to: v,
|
|
680
|
-
groupId: `${
|
|
680
|
+
groupId: `${p}:${i}`
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
|
-
if (
|
|
683
|
+
if (h = n[w] || {}, A = h[i], k(A))
|
|
684
684
|
break;
|
|
685
|
-
kt(e, i,
|
|
685
|
+
kt(e, i, w, u, p), D = v;
|
|
686
686
|
}
|
|
687
|
-
if (!k(
|
|
687
|
+
if (!k(A) || !b(w))
|
|
688
688
|
return o ? lt : i;
|
|
689
|
-
let
|
|
690
|
-
at(d) || (
|
|
691
|
-
let
|
|
692
|
-
return
|
|
689
|
+
let T = `${w}__${i}`;
|
|
690
|
+
at(d) || (T = `${T}__${JSON.stringify(d)}`);
|
|
691
|
+
let N = l.get(T);
|
|
692
|
+
return N || (N = new Intl.DateTimeFormat(w, ne({}, A, d)), l.set(T, N)), E ? N.formatToParts(c) : N.format(c);
|
|
693
693
|
}
|
|
694
|
-
const
|
|
694
|
+
const ro = [
|
|
695
695
|
"localeMatcher",
|
|
696
696
|
"weekday",
|
|
697
697
|
"era",
|
|
@@ -719,24 +719,24 @@ function ht(...e) {
|
|
|
719
719
|
if (b(t)) {
|
|
720
720
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
721
721
|
if (!i)
|
|
722
|
-
throw
|
|
722
|
+
throw Re(we.INVALID_ISO_DATE_ARGUMENT);
|
|
723
723
|
const c = i[3] ? i[3].trim().startsWith("T") ? `${i[1].trim()}${i[3].trim()}` : `${i[1].trim()}T${i[3].trim()}` : i[1].trim();
|
|
724
724
|
l = new Date(c);
|
|
725
725
|
try {
|
|
726
726
|
l.toISOString();
|
|
727
727
|
} catch {
|
|
728
|
-
throw
|
|
728
|
+
throw Re(we.INVALID_ISO_DATE_ARGUMENT);
|
|
729
729
|
}
|
|
730
|
-
} else if (
|
|
730
|
+
} else if (us(t)) {
|
|
731
731
|
if (isNaN(t.getTime()))
|
|
732
|
-
throw
|
|
732
|
+
throw Re(we.INVALID_DATE_ARGUMENT);
|
|
733
733
|
l = t;
|
|
734
|
-
} else if (
|
|
734
|
+
} else if (X(t))
|
|
735
735
|
l = t;
|
|
736
736
|
else
|
|
737
|
-
throw
|
|
737
|
+
throw Re(we.INVALID_ARGUMENT);
|
|
738
738
|
return b(n) ? a.key = n : k(n) && Object.keys(n).forEach((i) => {
|
|
739
|
-
|
|
739
|
+
ro.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
740
740
|
}), b(o) ? a.locale = o : k(o) && (r = o), k(s) && (r = s), [a.key || "", l, a, r];
|
|
741
741
|
}
|
|
742
742
|
function rn(e, t, n) {
|
|
@@ -748,43 +748,43 @@ function rn(e, t, n) {
|
|
|
748
748
|
}
|
|
749
749
|
function an(e, ...t) {
|
|
750
750
|
const { numberFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __numberFormatters: l } = e;
|
|
751
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
752
|
-
return a(
|
|
753
|
-
const [i, c,
|
|
751
|
+
if (process.env.NODE_ENV !== "production" && !so.numberFormat)
|
|
752
|
+
return a(Fe(le.CANNOT_FORMAT_NUMBER)), ot;
|
|
753
|
+
const [i, c, _, d] = vt(...t), u = H(_.missingWarn) ? _.missingWarn : e.missingWarn, m = H(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = !!_.part, L = b(_.locale) ? _.locale : e.locale, y = r(
|
|
754
754
|
e,
|
|
755
755
|
s,
|
|
756
|
-
|
|
756
|
+
L
|
|
757
757
|
);
|
|
758
758
|
if (!b(i) || i === "")
|
|
759
|
-
return new Intl.NumberFormat(
|
|
760
|
-
let
|
|
761
|
-
const
|
|
762
|
-
for (let
|
|
763
|
-
if (
|
|
759
|
+
return new Intl.NumberFormat(L, d).format(c);
|
|
760
|
+
let h = {}, w, A = null, D = L, v = null;
|
|
761
|
+
const p = "number format";
|
|
762
|
+
for (let R = 0; R < y.length; R++) {
|
|
763
|
+
if (w = v = y[R], process.env.NODE_ENV !== "production" && L !== w && it(m, i) && a(Fe(le.FALLBACK_TO_NUMBER_FORMAT, {
|
|
764
764
|
key: i,
|
|
765
|
-
target:
|
|
766
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
type:
|
|
765
|
+
target: w
|
|
766
|
+
})), process.env.NODE_ENV !== "production" && L !== w) {
|
|
767
|
+
const G = e.__v_emitter;
|
|
768
|
+
G && G.emit("fallback", {
|
|
769
|
+
type: p,
|
|
770
770
|
key: i,
|
|
771
|
-
from:
|
|
771
|
+
from: D,
|
|
772
772
|
to: v,
|
|
773
|
-
groupId: `${
|
|
773
|
+
groupId: `${p}:${i}`
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
if (
|
|
776
|
+
if (h = n[w] || {}, A = h[i], k(A))
|
|
777
777
|
break;
|
|
778
|
-
kt(e, i,
|
|
778
|
+
kt(e, i, w, u, p), D = v;
|
|
779
779
|
}
|
|
780
|
-
if (!k(
|
|
780
|
+
if (!k(A) || !b(w))
|
|
781
781
|
return o ? lt : i;
|
|
782
|
-
let
|
|
783
|
-
at(d) || (
|
|
784
|
-
let
|
|
785
|
-
return
|
|
782
|
+
let T = `${w}__${i}`;
|
|
783
|
+
at(d) || (T = `${T}__${JSON.stringify(d)}`);
|
|
784
|
+
let N = l.get(T);
|
|
785
|
+
return N || (N = new Intl.NumberFormat(w, ne({}, A, d)), l.set(T, N)), E ? N.formatToParts(c) : N.format(c);
|
|
786
786
|
}
|
|
787
|
-
const
|
|
787
|
+
const ao = [
|
|
788
788
|
"localeMatcher",
|
|
789
789
|
"style",
|
|
790
790
|
"currency",
|
|
@@ -809,11 +809,11 @@ const ro = [
|
|
|
809
809
|
function vt(...e) {
|
|
810
810
|
const [t, n, o, s] = e, a = {};
|
|
811
811
|
let r = {};
|
|
812
|
-
if (!
|
|
813
|
-
throw
|
|
812
|
+
if (!X(t))
|
|
813
|
+
throw Re(we.INVALID_ARGUMENT);
|
|
814
814
|
const l = t;
|
|
815
815
|
return b(n) ? a.key = n : k(n) && Object.keys(n).forEach((i) => {
|
|
816
|
-
|
|
816
|
+
ao.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
817
817
|
}), b(o) ? a.locale = o : k(o) && (r = o), k(s) && (r = s), [a.key || "", l, a, r];
|
|
818
818
|
}
|
|
819
819
|
function ln(e, t, n) {
|
|
@@ -824,22 +824,22 @@ function ln(e, t, n) {
|
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
826
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (At().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
827
|
-
function
|
|
828
|
-
return
|
|
827
|
+
function qs() {
|
|
828
|
+
return lo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function lo() {
|
|
831
831
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
832
832
|
}
|
|
833
|
-
const
|
|
834
|
-
let
|
|
835
|
-
function
|
|
833
|
+
const Zs = typeof Proxy == "function", er = "devtools-plugin:setup", tr = "plugin:settings:set";
|
|
834
|
+
let $e, yt;
|
|
835
|
+
function nr() {
|
|
836
836
|
var e;
|
|
837
|
-
return
|
|
837
|
+
return $e !== void 0 || (typeof window < "u" && window.performance ? ($e = !0, yt = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? ($e = !0, yt = global.perf_hooks.performance) : $e = !1), $e;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function or() {
|
|
840
|
+
return nr() ? yt.now() : Date.now();
|
|
841
841
|
}
|
|
842
|
-
class
|
|
842
|
+
class sr {
|
|
843
843
|
constructor(t, n) {
|
|
844
844
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
845
845
|
const o = {};
|
|
@@ -867,9 +867,9 @@ class or {
|
|
|
867
867
|
a = r;
|
|
868
868
|
},
|
|
869
869
|
now() {
|
|
870
|
-
return
|
|
870
|
+
return or();
|
|
871
871
|
}
|
|
872
|
-
}, n && n.on(
|
|
872
|
+
}, n && n.on(tr, (r, l) => {
|
|
873
873
|
r === this.plugin.id && this.fallbacks.setSettings(l);
|
|
874
874
|
}), this.proxiedOn = new Proxy({}, {
|
|
875
875
|
get: (r, l) => this.target ? this.target.on[l] : (...i) => {
|
|
@@ -901,12 +901,12 @@ class or {
|
|
|
901
901
|
n.resolve(await this.target[n.method](...n.args));
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
const n = e, o =
|
|
904
|
+
function rr(e, t) {
|
|
905
|
+
const n = e, o = lo(), s = qs(), a = Zs && n.enableEarlyProxy;
|
|
906
906
|
if (s && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
907
|
-
s.emit(
|
|
907
|
+
s.emit(er, e, t);
|
|
908
908
|
else {
|
|
909
|
-
const r = a ? new
|
|
909
|
+
const r = a ? new sr(n, s) : null;
|
|
910
910
|
(o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
911
911
|
pluginDescriptor: n,
|
|
912
912
|
setupFn: t,
|
|
@@ -923,9 +923,9 @@ const mt = {
|
|
|
923
923
|
["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
|
|
924
924
|
["vue-i18n-resource-inspector"]: "I18n Resources",
|
|
925
925
|
["vue-i18n-timeline"]: "Vue I18n"
|
|
926
|
-
}, rr = {
|
|
927
|
-
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
928
926
|
}, ar = {
|
|
927
|
+
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
928
|
+
}, lr = {
|
|
929
929
|
["vue-i18n-timeline"]: 16764185
|
|
930
930
|
};
|
|
931
931
|
/*!
|
|
@@ -933,35 +933,35 @@ const mt = {
|
|
|
933
933
|
* (c) 2022 kazuya kawaguchi
|
|
934
934
|
* Released under the MIT License.
|
|
935
935
|
*/
|
|
936
|
-
const
|
|
937
|
-
function
|
|
936
|
+
const ir = "9.2.2";
|
|
937
|
+
function cr() {
|
|
938
938
|
let e = !1;
|
|
939
939
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (At().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
|
940
940
|
}
|
|
941
|
-
let
|
|
942
|
-
const
|
|
943
|
-
FALLBACK_TO_ROOT:
|
|
944
|
-
NOT_SUPPORTED_PRESERVE:
|
|
945
|
-
NOT_SUPPORTED_FORMATTER:
|
|
946
|
-
NOT_SUPPORTED_PRESERVE_DIRECTIVE:
|
|
947
|
-
NOT_SUPPORTED_GET_CHOICE_INDEX:
|
|
948
|
-
COMPONENT_NAME_LEGACY_COMPATIBLE:
|
|
949
|
-
NOT_FOUND_PARENT_SCOPE:
|
|
950
|
-
},
|
|
951
|
-
[
|
|
952
|
-
[
|
|
953
|
-
[
|
|
954
|
-
[
|
|
955
|
-
[
|
|
956
|
-
[
|
|
957
|
-
[
|
|
941
|
+
let io = le.__EXTEND_POINT__;
|
|
942
|
+
const Me = () => ++io, _e = {
|
|
943
|
+
FALLBACK_TO_ROOT: io,
|
|
944
|
+
NOT_SUPPORTED_PRESERVE: Me(),
|
|
945
|
+
NOT_SUPPORTED_FORMATTER: Me(),
|
|
946
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: Me(),
|
|
947
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: Me(),
|
|
948
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: Me(),
|
|
949
|
+
NOT_FOUND_PARENT_SCOPE: Me()
|
|
950
|
+
}, ur = {
|
|
951
|
+
[_e.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
952
|
+
[_e.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
953
|
+
[_e.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
|
954
|
+
[_e.NOT_SUPPORTED_PRESERVE_DIRECTIVE]: "Not supported 'preserveDirectiveContent'.",
|
|
955
|
+
[_e.NOT_SUPPORTED_GET_CHOICE_INDEX]: "Not supported 'getChoiceIndex'.",
|
|
956
|
+
[_e.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
|
957
|
+
[_e.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
|
|
958
958
|
};
|
|
959
959
|
function ct(e, ...t) {
|
|
960
|
-
return Dt(
|
|
960
|
+
return Dt(ur[e], ...t);
|
|
961
961
|
}
|
|
962
|
-
let
|
|
963
|
-
const re = () => ++
|
|
964
|
-
UNEXPECTED_RETURN_TYPE:
|
|
962
|
+
let co = q.__EXTEND_POINT__;
|
|
963
|
+
const re = () => ++co, U = {
|
|
964
|
+
UNEXPECTED_RETURN_TYPE: co,
|
|
965
965
|
INVALID_ARGUMENT: re(),
|
|
966
966
|
MUST_BE_CALL_SETUP_TOP: re(),
|
|
967
967
|
NOT_INSLALLED: re(),
|
|
@@ -978,68 +978,68 @@ const re = () => ++io, F = {
|
|
|
978
978
|
__EXTEND_POINT__: re()
|
|
979
979
|
};
|
|
980
980
|
function ce(e, ...t) {
|
|
981
|
-
return
|
|
982
|
-
}
|
|
983
|
-
const
|
|
984
|
-
[
|
|
985
|
-
[
|
|
986
|
-
[
|
|
987
|
-
[
|
|
988
|
-
[
|
|
989
|
-
[
|
|
990
|
-
[
|
|
991
|
-
[
|
|
992
|
-
[
|
|
993
|
-
[
|
|
994
|
-
[
|
|
995
|
-
[
|
|
996
|
-
[
|
|
997
|
-
[
|
|
998
|
-
},
|
|
981
|
+
return Kn(e, null, process.env.NODE_ENV !== "production" ? { messages: dr, args: t } : void 0);
|
|
982
|
+
}
|
|
983
|
+
const dr = {
|
|
984
|
+
[U.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
985
|
+
[U.INVALID_ARGUMENT]: "Invalid argument",
|
|
986
|
+
[U.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
987
|
+
[U.NOT_INSLALLED]: "Need to install with `app.use` function",
|
|
988
|
+
[U.UNEXPECTED_ERROR]: "Unexpected error",
|
|
989
|
+
[U.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
|
990
|
+
[U.REQUIRED_VALUE]: "Required in value: {0}",
|
|
991
|
+
[U.INVALID_VALUE]: "Invalid value",
|
|
992
|
+
[U.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
993
|
+
[U.NOT_INSLALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
994
|
+
[U.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
995
|
+
[U.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
996
|
+
[U.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",
|
|
997
|
+
[U.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
998
|
+
}, wt = /* @__PURE__ */ ve("__transrateVNode"), Et = /* @__PURE__ */ ve("__datetimeParts"), Lt = /* @__PURE__ */ ve("__numberParts"), Ye = /* @__PURE__ */ ve("__enableEmitter"), bt = /* @__PURE__ */ ve("__disableEmitter"), fr = ve("__setPluralRules");
|
|
999
999
|
ve("__intlifyMeta");
|
|
1000
|
-
const
|
|
1000
|
+
const _r = /* @__PURE__ */ ve("__injectWithOption");
|
|
1001
1001
|
function Ot(e) {
|
|
1002
|
-
if (!
|
|
1002
|
+
if (!V(e))
|
|
1003
1003
|
return e;
|
|
1004
1004
|
for (const t in e)
|
|
1005
1005
|
if (!!Pt(e, t))
|
|
1006
1006
|
if (!t.includes("."))
|
|
1007
|
-
|
|
1007
|
+
V(e[t]) && Ot(e[t]);
|
|
1008
1008
|
else {
|
|
1009
1009
|
const n = t.split("."), o = n.length - 1;
|
|
1010
1010
|
let s = e;
|
|
1011
1011
|
for (let a = 0; a < o; a++)
|
|
1012
1012
|
n[a] in s || (s[n[a]] = {}), s = s[n[a]];
|
|
1013
|
-
s[n[o]] = e[t], delete e[t],
|
|
1013
|
+
s[n[o]] = e[t], delete e[t], V(s[n[o]]) && Ot(s[n[o]]);
|
|
1014
1014
|
}
|
|
1015
1015
|
return e;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const { messages: n, __i18n: o, messageResolver: s, flatJson: a } = t, r = k(n) ? n :
|
|
1019
|
-
if (
|
|
1017
|
+
function uo(e, t) {
|
|
1018
|
+
const { messages: n, __i18n: o, messageResolver: s, flatJson: a } = t, r = k(n) ? n : W(o) ? {} : { [e]: {} };
|
|
1019
|
+
if (W(o) && o.forEach((l) => {
|
|
1020
1020
|
if ("locale" in l && "resource" in l) {
|
|
1021
1021
|
const { locale: i, resource: c } = l;
|
|
1022
|
-
i ? (r[i] = r[i] || {},
|
|
1022
|
+
i ? (r[i] = r[i] || {}, We(c, r[i])) : We(c, r);
|
|
1023
1023
|
} else
|
|
1024
|
-
b(l) &&
|
|
1024
|
+
b(l) && We(JSON.parse(l), r);
|
|
1025
1025
|
}), s == null && a)
|
|
1026
1026
|
for (const l in r)
|
|
1027
1027
|
Pt(r, l) && Ot(r[l]);
|
|
1028
1028
|
return r;
|
|
1029
1029
|
}
|
|
1030
|
-
const
|
|
1031
|
-
function
|
|
1032
|
-
if (
|
|
1033
|
-
throw ce(
|
|
1030
|
+
const qe = (e) => !V(e) || W(e);
|
|
1031
|
+
function We(e, t) {
|
|
1032
|
+
if (qe(e) || qe(t))
|
|
1033
|
+
throw ce(U.INVALID_VALUE);
|
|
1034
1034
|
for (const n in e)
|
|
1035
|
-
Pt(e, n) && (
|
|
1035
|
+
Pt(e, n) && (qe(e[n]) || qe(t[n]) ? t[n] = e[n] : We(e[n], t[n]));
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function fo(e) {
|
|
1038
1038
|
return e.type;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
let o =
|
|
1042
|
-
"__i18nGlobal" in n && (o =
|
|
1040
|
+
function mr(e, t, n) {
|
|
1041
|
+
let o = V(t.messages) ? t.messages : {};
|
|
1042
|
+
"__i18nGlobal" in n && (o = uo(e.locale.value, {
|
|
1043
1043
|
messages: o,
|
|
1044
1044
|
__i18n: n.__i18nGlobal
|
|
1045
1045
|
}));
|
|
@@ -1048,13 +1048,13 @@ function _r(e, t, n) {
|
|
|
1048
1048
|
e.mergeLocaleMessage(a, o[a]);
|
|
1049
1049
|
});
|
|
1050
1050
|
{
|
|
1051
|
-
if (
|
|
1051
|
+
if (V(t.datetimeFormats)) {
|
|
1052
1052
|
const a = Object.keys(t.datetimeFormats);
|
|
1053
1053
|
a.length && a.forEach((r) => {
|
|
1054
1054
|
e.mergeDateTimeFormat(r, t.datetimeFormats[r]);
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
|
-
if (
|
|
1057
|
+
if (V(t.numberFormats)) {
|
|
1058
1058
|
const a = Object.keys(t.numberFormats);
|
|
1059
1059
|
a.length && a.forEach((r) => {
|
|
1060
1060
|
e.mergeNumberFormat(r, t.numberFormats[r]);
|
|
@@ -1063,54 +1063,54 @@ function _r(e, t, n) {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
function cn(e) {
|
|
1066
|
-
return
|
|
1066
|
+
return Q(os, null, e, 0);
|
|
1067
1067
|
}
|
|
1068
1068
|
const un = "__INTLIFY_META__";
|
|
1069
1069
|
let dn = 0;
|
|
1070
1070
|
function fn(e) {
|
|
1071
1071
|
return (t, n, o, s) => e(n, o, St() || void 0, s);
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1073
|
+
const pr = () => {
|
|
1074
1074
|
const e = St();
|
|
1075
1075
|
let t = null;
|
|
1076
|
-
return e && (t =
|
|
1076
|
+
return e && (t = fo(e)[un]) ? { [un]: t } : null;
|
|
1077
1077
|
};
|
|
1078
|
-
function
|
|
1078
|
+
function _o(e = {}, t) {
|
|
1079
1079
|
const { __root: n } = e, o = n === void 0;
|
|
1080
|
-
let s =
|
|
1080
|
+
let s = H(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1081
1081
|
const a = M(
|
|
1082
1082
|
n && s ? n.locale.value : b(e.locale) ? e.locale : Mt
|
|
1083
1083
|
), r = M(
|
|
1084
|
-
n && s ? n.fallbackLocale.value : b(e.fallbackLocale) ||
|
|
1085
|
-
), l = M(
|
|
1086
|
-
let
|
|
1087
|
-
const
|
|
1088
|
-
let
|
|
1084
|
+
n && s ? n.fallbackLocale.value : b(e.fallbackLocale) || W(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1085
|
+
), l = M(uo(a.value, e)), i = M(k(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = M(k(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1086
|
+
let _ = n ? n.missingWarn : H(e.missingWarn) || nt(e.missingWarn) ? e.missingWarn : !0, d = n ? n.fallbackWarn : H(e.fallbackWarn) || nt(e.fallbackWarn) ? e.fallbackWarn : !0, u = n ? n.fallbackRoot : H(e.fallbackRoot) ? e.fallbackRoot : !0, m = !!e.fallbackFormat, E = Y(e.missing) ? e.missing : null, L = Y(e.missing) ? fn(e.missing) : null, y = Y(e.postTranslation) ? e.postTranslation : null, h = n ? n.warnHtmlMessage : H(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, w = !!e.escapeParameter;
|
|
1087
|
+
const A = n ? n.modifiers : k(e.modifiers) ? e.modifiers : {};
|
|
1088
|
+
let D = e.pluralRules || n && n.pluralRules, v;
|
|
1089
1089
|
v = (() => {
|
|
1090
1090
|
o && Zt(null);
|
|
1091
|
-
const
|
|
1092
|
-
version:
|
|
1091
|
+
const f = {
|
|
1092
|
+
version: ir,
|
|
1093
1093
|
locale: a.value,
|
|
1094
1094
|
fallbackLocale: r.value,
|
|
1095
1095
|
messages: l.value,
|
|
1096
|
-
modifiers:
|
|
1097
|
-
pluralRules:
|
|
1098
|
-
missing:
|
|
1099
|
-
missingWarn:
|
|
1096
|
+
modifiers: A,
|
|
1097
|
+
pluralRules: D,
|
|
1098
|
+
missing: L === null ? void 0 : L,
|
|
1099
|
+
missingWarn: _,
|
|
1100
1100
|
fallbackWarn: d,
|
|
1101
|
-
fallbackFormat:
|
|
1101
|
+
fallbackFormat: m,
|
|
1102
1102
|
unresolving: !0,
|
|
1103
|
-
postTranslation:
|
|
1104
|
-
warnHtmlMessage:
|
|
1105
|
-
escapeParameter:
|
|
1103
|
+
postTranslation: y === null ? void 0 : y,
|
|
1104
|
+
warnHtmlMessage: h,
|
|
1105
|
+
escapeParameter: w,
|
|
1106
1106
|
messageResolver: e.messageResolver,
|
|
1107
1107
|
__meta: { framework: "vue" }
|
|
1108
1108
|
};
|
|
1109
|
-
|
|
1110
|
-
const
|
|
1111
|
-
return o && Zt(
|
|
1112
|
-
})(),
|
|
1113
|
-
function
|
|
1109
|
+
f.datetimeFormats = i.value, f.numberFormats = c.value, f.__datetimeFormatters = k(v) ? v.__datetimeFormatters : void 0, f.__numberFormatters = k(v) ? v.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (f.__v_emitter = k(v) ? v.__v_emitter : void 0);
|
|
1110
|
+
const g = Bs(f);
|
|
1111
|
+
return o && Zt(g), g;
|
|
1112
|
+
})(), ze(v, a.value, r.value);
|
|
1113
|
+
function T() {
|
|
1114
1114
|
return [
|
|
1115
1115
|
a.value,
|
|
1116
1116
|
r.value,
|
|
@@ -1119,255 +1119,255 @@ function fo(e = {}, t) {
|
|
|
1119
1119
|
c.value
|
|
1120
1120
|
];
|
|
1121
1121
|
}
|
|
1122
|
-
const
|
|
1122
|
+
const N = F({
|
|
1123
1123
|
get: () => a.value,
|
|
1124
|
-
set: (
|
|
1125
|
-
a.value =
|
|
1124
|
+
set: (f) => {
|
|
1125
|
+
a.value = f, v.locale = a.value;
|
|
1126
1126
|
}
|
|
1127
|
-
}),
|
|
1127
|
+
}), R = F({
|
|
1128
1128
|
get: () => r.value,
|
|
1129
|
-
set: (
|
|
1130
|
-
r.value =
|
|
1129
|
+
set: (f) => {
|
|
1130
|
+
r.value = f, v.fallbackLocale = r.value, ze(v, a.value, f);
|
|
1131
1131
|
}
|
|
1132
|
-
}),
|
|
1132
|
+
}), G = F(() => l.value), K = /* @__PURE__ */ F(() => i.value), ye = /* @__PURE__ */ F(() => c.value);
|
|
1133
1133
|
function I() {
|
|
1134
|
-
return
|
|
1134
|
+
return Y(y) ? y : null;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1137
|
-
|
|
1136
|
+
function $(f) {
|
|
1137
|
+
y = f, v.postTranslation = f;
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return
|
|
1139
|
+
function x() {
|
|
1140
|
+
return E;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
|
|
1142
|
+
function z(f) {
|
|
1143
|
+
f !== null && (L = fn(f)), E = f, v.missing = L;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return
|
|
1145
|
+
function Ie(f, g) {
|
|
1146
|
+
return f !== "translate" || !g.resolvedMessage;
|
|
1147
1147
|
}
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1150
|
-
let
|
|
1148
|
+
const fe = (f, g, se, ee, ft, Qe) => {
|
|
1149
|
+
T();
|
|
1150
|
+
let Pe;
|
|
1151
1151
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1152
1152
|
try {
|
|
1153
|
-
qt(
|
|
1153
|
+
qt(pr()), o || (v.fallbackContext = n ? Ws() : void 0), Pe = f(v);
|
|
1154
1154
|
} finally {
|
|
1155
1155
|
qt(null), o || (v.fallbackContext = void 0);
|
|
1156
1156
|
}
|
|
1157
1157
|
else
|
|
1158
|
-
|
|
1159
|
-
if (
|
|
1160
|
-
const [
|
|
1161
|
-
if (process.env.NODE_ENV !== "production" && n && b(
|
|
1162
|
-
key:
|
|
1158
|
+
Pe = f(v);
|
|
1159
|
+
if (X(Pe) && Pe === lt) {
|
|
1160
|
+
const [Te, es] = g();
|
|
1161
|
+
if (process.env.NODE_ENV !== "production" && n && b(Te) && Ie(se, es) && (u && (it(d, Te) || eo(_, Te)) && Ue(ct(_e.FALLBACK_TO_ROOT, {
|
|
1162
|
+
key: Te,
|
|
1163
1163
|
type: se
|
|
1164
1164
|
})), process.env.NODE_ENV !== "production")) {
|
|
1165
1165
|
const { __v_emitter: jt } = v;
|
|
1166
1166
|
jt && u && jt.emit("fallback", {
|
|
1167
1167
|
type: se,
|
|
1168
|
-
key:
|
|
1168
|
+
key: Te,
|
|
1169
1169
|
to: "global",
|
|
1170
|
-
groupId: `${se}:${
|
|
1170
|
+
groupId: `${se}:${Te}`
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
return n && u ? ee(n) : ft(
|
|
1173
|
+
return n && u ? ee(n) : ft(Te);
|
|
1174
1174
|
} else {
|
|
1175
|
-
if (
|
|
1176
|
-
return
|
|
1177
|
-
throw ce(
|
|
1175
|
+
if (Qe(Pe))
|
|
1176
|
+
return Pe;
|
|
1177
|
+
throw ce(U.UNEXPECTED_RETURN_TYPE);
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
function
|
|
1181
|
-
return
|
|
1180
|
+
function Ge(...f) {
|
|
1181
|
+
return fe((g) => Reflect.apply(nn, null, [g, ...f]), () => gt(...f), "translate", (g) => Reflect.apply(g.t, g, [...f]), (g) => g, (g) => b(g));
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
const [
|
|
1185
|
-
if (ee && !
|
|
1186
|
-
throw ce(
|
|
1187
|
-
return
|
|
1183
|
+
function Xe(...f) {
|
|
1184
|
+
const [g, se, ee] = f;
|
|
1185
|
+
if (ee && !V(ee))
|
|
1186
|
+
throw ce(U.INVALID_ARGUMENT);
|
|
1187
|
+
return Ge(g, se, ne({ resolvedMessage: !0 }, ee || {}));
|
|
1188
1188
|
}
|
|
1189
|
-
function dt(...
|
|
1190
|
-
return
|
|
1189
|
+
function dt(...f) {
|
|
1190
|
+
return fe((g) => Reflect.apply(sn, null, [g, ...f]), () => ht(...f), "datetime format", (g) => Reflect.apply(g.d, g, [...f]), () => ot, (g) => b(g));
|
|
1191
1191
|
}
|
|
1192
|
-
function Gt(...
|
|
1193
|
-
return
|
|
1192
|
+
function Gt(...f) {
|
|
1193
|
+
return fe((g) => Reflect.apply(an, null, [g, ...f]), () => vt(...f), "number format", (g) => Reflect.apply(g.n, g, [...f]), () => ot, (g) => b(g));
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return
|
|
1195
|
+
function Je(f) {
|
|
1196
|
+
return f.map((g) => b(g) || X(g) || H(g) ? cn(String(g)) : g);
|
|
1197
1197
|
}
|
|
1198
|
-
const
|
|
1199
|
-
normalize:
|
|
1200
|
-
interpolate: (
|
|
1198
|
+
const Fo = {
|
|
1199
|
+
normalize: Je,
|
|
1200
|
+
interpolate: (f) => f,
|
|
1201
1201
|
type: "vnode"
|
|
1202
1202
|
};
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1205
|
-
(
|
|
1203
|
+
function Vo(...f) {
|
|
1204
|
+
return fe(
|
|
1205
|
+
(g) => {
|
|
1206
1206
|
let se;
|
|
1207
|
-
const ee =
|
|
1207
|
+
const ee = g;
|
|
1208
1208
|
try {
|
|
1209
|
-
ee.processor =
|
|
1209
|
+
ee.processor = Fo, se = Reflect.apply(nn, null, [ee, ...f]);
|
|
1210
1210
|
} finally {
|
|
1211
1211
|
ee.processor = null;
|
|
1212
1212
|
}
|
|
1213
1213
|
return se;
|
|
1214
1214
|
},
|
|
1215
|
-
() => gt(...
|
|
1215
|
+
() => gt(...f),
|
|
1216
1216
|
"translate",
|
|
1217
|
-
(
|
|
1218
|
-
(
|
|
1219
|
-
(
|
|
1217
|
+
(g) => g[wt](...f),
|
|
1218
|
+
(g) => [cn(g)],
|
|
1219
|
+
(g) => W(g)
|
|
1220
1220
|
);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1224
|
-
(
|
|
1225
|
-
() => vt(...
|
|
1222
|
+
function Uo(...f) {
|
|
1223
|
+
return fe(
|
|
1224
|
+
(g) => Reflect.apply(an, null, [g, ...f]),
|
|
1225
|
+
() => vt(...f),
|
|
1226
1226
|
"number format",
|
|
1227
|
-
(
|
|
1227
|
+
(g) => g[Lt](...f),
|
|
1228
1228
|
() => [],
|
|
1229
|
-
(
|
|
1229
|
+
(g) => b(g) || W(g)
|
|
1230
1230
|
);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1234
|
-
(
|
|
1235
|
-
() => ht(...
|
|
1232
|
+
function Go(...f) {
|
|
1233
|
+
return fe(
|
|
1234
|
+
(g) => Reflect.apply(sn, null, [g, ...f]),
|
|
1235
|
+
() => ht(...f),
|
|
1236
1236
|
"datetime format",
|
|
1237
|
-
(
|
|
1237
|
+
(g) => g[Et](...f),
|
|
1238
1238
|
() => [],
|
|
1239
|
-
(
|
|
1239
|
+
(g) => b(g) || W(g)
|
|
1240
1240
|
);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1242
|
+
function zo(f) {
|
|
1243
|
+
D = f, v.pluralRules = D;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
const se = b(
|
|
1247
|
-
return v.messageResolver(ee,
|
|
1245
|
+
function Ho(f, g) {
|
|
1246
|
+
const se = b(g) ? g : a.value, ee = Ht(se);
|
|
1247
|
+
return v.messageResolver(ee, f) !== null;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1250
|
-
let
|
|
1251
|
-
const se =
|
|
1249
|
+
function jo(f) {
|
|
1250
|
+
let g = null;
|
|
1251
|
+
const se = Xn(v, r.value, a.value);
|
|
1252
1252
|
for (let ee = 0; ee < se.length; ee++) {
|
|
1253
|
-
const ft = l.value[se[ee]] || {},
|
|
1254
|
-
if (
|
|
1255
|
-
|
|
1253
|
+
const ft = l.value[se[ee]] || {}, Qe = v.messageResolver(ft, f);
|
|
1254
|
+
if (Qe != null) {
|
|
1255
|
+
g = Qe;
|
|
1256
1256
|
break;
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
return
|
|
1259
|
+
return g;
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1262
|
-
const
|
|
1263
|
-
return
|
|
1261
|
+
function Wo(f) {
|
|
1262
|
+
const g = jo(f);
|
|
1263
|
+
return g != null ? g : n ? n.tm(f) || {} : {};
|
|
1264
1264
|
}
|
|
1265
|
-
function Ht(
|
|
1266
|
-
return l.value[
|
|
1265
|
+
function Ht(f) {
|
|
1266
|
+
return l.value[f] || {};
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1269
|
-
l.value[
|
|
1268
|
+
function Bo(f, g) {
|
|
1269
|
+
l.value[f] = g, v.messages = l.value;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1272
|
-
l.value[
|
|
1271
|
+
function Ko(f, g) {
|
|
1272
|
+
l.value[f] = l.value[f] || {}, We(g, l.value[f]), v.messages = l.value;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return i.value[
|
|
1274
|
+
function Yo(f) {
|
|
1275
|
+
return i.value[f] || {};
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
i.value[
|
|
1277
|
+
function Xo(f, g) {
|
|
1278
|
+
i.value[f] = g, v.datetimeFormats = i.value, rn(v, f, g);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
i.value[
|
|
1280
|
+
function Jo(f, g) {
|
|
1281
|
+
i.value[f] = ne(i.value[f] || {}, g), v.datetimeFormats = i.value, rn(v, f, g);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return c.value[
|
|
1283
|
+
function Qo(f) {
|
|
1284
|
+
return c.value[f] || {};
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
c.value[
|
|
1286
|
+
function qo(f, g) {
|
|
1287
|
+
c.value[f] = g, v.numberFormats = c.value, ln(v, f, g);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
c.value[
|
|
1289
|
+
function Zo(f, g) {
|
|
1290
|
+
c.value[f] = ne(c.value[f] || {}, g), v.numberFormats = c.value, ln(v, f, g);
|
|
1291
1291
|
}
|
|
1292
|
-
dn++, n && he && (
|
|
1293
|
-
s && (a.value =
|
|
1294
|
-
}),
|
|
1295
|
-
s && (r.value =
|
|
1292
|
+
dn++, n && he && (Le(n.locale, (f) => {
|
|
1293
|
+
s && (a.value = f, v.locale = f, ze(v, a.value, r.value));
|
|
1294
|
+
}), Le(n.fallbackLocale, (f) => {
|
|
1295
|
+
s && (r.value = f, v.fallbackLocale = f, ze(v, a.value, r.value));
|
|
1296
1296
|
}));
|
|
1297
|
-
const
|
|
1297
|
+
const B = {
|
|
1298
1298
|
id: dn,
|
|
1299
|
-
locale:
|
|
1300
|
-
fallbackLocale:
|
|
1299
|
+
locale: N,
|
|
1300
|
+
fallbackLocale: R,
|
|
1301
1301
|
get inheritLocale() {
|
|
1302
1302
|
return s;
|
|
1303
1303
|
},
|
|
1304
|
-
set inheritLocale(
|
|
1305
|
-
s =
|
|
1304
|
+
set inheritLocale(f) {
|
|
1305
|
+
s = f, f && n && (a.value = n.locale.value, r.value = n.fallbackLocale.value, ze(v, a.value, r.value));
|
|
1306
1306
|
},
|
|
1307
1307
|
get availableLocales() {
|
|
1308
1308
|
return Object.keys(l.value).sort();
|
|
1309
1309
|
},
|
|
1310
|
-
messages:
|
|
1310
|
+
messages: G,
|
|
1311
1311
|
get modifiers() {
|
|
1312
|
-
return
|
|
1312
|
+
return A;
|
|
1313
1313
|
},
|
|
1314
1314
|
get pluralRules() {
|
|
1315
|
-
return
|
|
1315
|
+
return D || {};
|
|
1316
1316
|
},
|
|
1317
1317
|
get isGlobal() {
|
|
1318
1318
|
return o;
|
|
1319
1319
|
},
|
|
1320
1320
|
get missingWarn() {
|
|
1321
|
-
return
|
|
1321
|
+
return _;
|
|
1322
1322
|
},
|
|
1323
|
-
set missingWarn(
|
|
1324
|
-
|
|
1323
|
+
set missingWarn(f) {
|
|
1324
|
+
_ = f, v.missingWarn = _;
|
|
1325
1325
|
},
|
|
1326
1326
|
get fallbackWarn() {
|
|
1327
1327
|
return d;
|
|
1328
1328
|
},
|
|
1329
|
-
set fallbackWarn(
|
|
1330
|
-
d =
|
|
1329
|
+
set fallbackWarn(f) {
|
|
1330
|
+
d = f, v.fallbackWarn = d;
|
|
1331
1331
|
},
|
|
1332
1332
|
get fallbackRoot() {
|
|
1333
1333
|
return u;
|
|
1334
1334
|
},
|
|
1335
|
-
set fallbackRoot(
|
|
1336
|
-
u =
|
|
1335
|
+
set fallbackRoot(f) {
|
|
1336
|
+
u = f;
|
|
1337
1337
|
},
|
|
1338
1338
|
get fallbackFormat() {
|
|
1339
|
-
return
|
|
1339
|
+
return m;
|
|
1340
1340
|
},
|
|
1341
|
-
set fallbackFormat(
|
|
1342
|
-
|
|
1341
|
+
set fallbackFormat(f) {
|
|
1342
|
+
m = f, v.fallbackFormat = m;
|
|
1343
1343
|
},
|
|
1344
1344
|
get warnHtmlMessage() {
|
|
1345
|
-
return
|
|
1345
|
+
return h;
|
|
1346
1346
|
},
|
|
1347
|
-
set warnHtmlMessage(
|
|
1348
|
-
|
|
1347
|
+
set warnHtmlMessage(f) {
|
|
1348
|
+
h = f, v.warnHtmlMessage = f;
|
|
1349
1349
|
},
|
|
1350
1350
|
get escapeParameter() {
|
|
1351
|
-
return
|
|
1351
|
+
return w;
|
|
1352
1352
|
},
|
|
1353
|
-
set escapeParameter(
|
|
1354
|
-
|
|
1353
|
+
set escapeParameter(f) {
|
|
1354
|
+
w = f, v.escapeParameter = f;
|
|
1355
1355
|
},
|
|
1356
|
-
t:
|
|
1356
|
+
t: Ge,
|
|
1357
1357
|
getLocaleMessage: Ht,
|
|
1358
|
-
setLocaleMessage:
|
|
1359
|
-
mergeLocaleMessage:
|
|
1358
|
+
setLocaleMessage: Bo,
|
|
1359
|
+
mergeLocaleMessage: Ko,
|
|
1360
1360
|
getPostTranslationHandler: I,
|
|
1361
|
-
setPostTranslationHandler:
|
|
1362
|
-
getMissingHandler:
|
|
1363
|
-
setMissingHandler:
|
|
1364
|
-
[
|
|
1361
|
+
setPostTranslationHandler: $,
|
|
1362
|
+
getMissingHandler: x,
|
|
1363
|
+
setMissingHandler: z,
|
|
1364
|
+
[fr]: zo
|
|
1365
1365
|
};
|
|
1366
|
-
return
|
|
1367
|
-
v.__v_emitter =
|
|
1368
|
-
},
|
|
1366
|
+
return B.datetimeFormats = K, B.numberFormats = ye, B.rt = Xe, B.te = Ho, B.tm = Wo, B.d = dt, B.n = Gt, B.getDateTimeFormat = Yo, B.setDateTimeFormat = Xo, B.mergeDateTimeFormat = Jo, B.getNumberFormat = Qo, B.setNumberFormat = qo, B.mergeNumberFormat = Zo, B[_r] = e.__injectWithOption, B[wt] = Vo, B[Et] = Go, B[Lt] = Uo, process.env.NODE_ENV !== "production" && (B[Ye] = (f) => {
|
|
1367
|
+
v.__v_emitter = f;
|
|
1368
|
+
}, B[bt] = () => {
|
|
1369
1369
|
v.__v_emitter = void 0;
|
|
1370
|
-
}),
|
|
1370
|
+
}), B;
|
|
1371
1371
|
}
|
|
1372
1372
|
const Rt = {
|
|
1373
1373
|
tag: {
|
|
@@ -1385,17 +1385,17 @@ const Rt = {
|
|
|
1385
1385
|
type: Object
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
function
|
|
1388
|
+
function gr({ slots: e }, t) {
|
|
1389
1389
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((o, s) => o = [
|
|
1390
1390
|
...o,
|
|
1391
|
-
...
|
|
1391
|
+
...W(s.children) ? s.children : [s]
|
|
1392
1392
|
], []) : t.reduce((n, o) => {
|
|
1393
1393
|
const s = e[o];
|
|
1394
1394
|
return s && (n[o] = s()), n;
|
|
1395
1395
|
}, {});
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1397
|
+
function mo(e) {
|
|
1398
|
+
return de;
|
|
1399
1399
|
}
|
|
1400
1400
|
const pt = {
|
|
1401
1401
|
name: "i18n-t",
|
|
@@ -1406,7 +1406,7 @@ const pt = {
|
|
|
1406
1406
|
},
|
|
1407
1407
|
plural: {
|
|
1408
1408
|
type: [Number, String],
|
|
1409
|
-
validator: (e) =>
|
|
1409
|
+
validator: (e) => X(e) || !isNaN(e)
|
|
1410
1410
|
}
|
|
1411
1411
|
}, Rt),
|
|
1412
1412
|
setup(e, t) {
|
|
@@ -1417,28 +1417,28 @@ const pt = {
|
|
|
1417
1417
|
return () => {
|
|
1418
1418
|
const a = Object.keys(n).filter((d) => d !== "_"), r = {};
|
|
1419
1419
|
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = b(e.plural) ? +e.plural : e.plural);
|
|
1420
|
-
const l =
|
|
1421
|
-
return
|
|
1420
|
+
const l = gr(t, a), i = s[wt](e.keypath, l, r), c = ne({}, o), _ = b(e.tag) || V(e.tag) ? e.tag : mo();
|
|
1421
|
+
return tt(_, c, i);
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
|
-
function
|
|
1426
|
-
return
|
|
1425
|
+
function hr(e) {
|
|
1426
|
+
return W(e) && !b(e[0]);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function po(e, t, n, o) {
|
|
1429
1429
|
const { slots: s, attrs: a } = t;
|
|
1430
1430
|
return () => {
|
|
1431
1431
|
const r = { part: !0 };
|
|
1432
1432
|
let l = {};
|
|
1433
|
-
e.locale && (r.locale = e.locale), b(e.format) ? r.key = e.format :
|
|
1433
|
+
e.locale && (r.locale = e.locale), b(e.format) ? r.key = e.format : V(e.format) && (b(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((u, m) => n.includes(m) ? ne({}, u, { [m]: e.format[m] }) : u, {}));
|
|
1434
1434
|
const i = o(e.value, r, l);
|
|
1435
1435
|
let c = [r.key];
|
|
1436
|
-
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1436
|
+
W(i) ? c = i.map((u, m) => {
|
|
1437
|
+
const E = s[u.type], L = E ? E({ [u.type]: u.value, index: m, parts: i }) : [u.value];
|
|
1438
|
+
return hr(L) && (L[0].key = `${u.type}-${m}`), L;
|
|
1439
1439
|
}) : b(i) && (c = [i]);
|
|
1440
|
-
const
|
|
1441
|
-
return
|
|
1440
|
+
const _ = ne({}, a), d = b(e.tag) || V(e.tag) ? e.tag : mo();
|
|
1441
|
+
return tt(d, _, c);
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
1444
|
const _n = {
|
|
@@ -1454,7 +1454,7 @@ const _n = {
|
|
|
1454
1454
|
}, Rt),
|
|
1455
1455
|
setup(e, t) {
|
|
1456
1456
|
const n = e.i18n || Ft({ useScope: "parent", __useComponent: !0 });
|
|
1457
|
-
return
|
|
1457
|
+
return po(e, t, ao, (...o) => n[Lt](...o));
|
|
1458
1458
|
}
|
|
1459
1459
|
}, mn = {
|
|
1460
1460
|
name: "i18n-d",
|
|
@@ -1469,10 +1469,10 @@ const _n = {
|
|
|
1469
1469
|
}, Rt),
|
|
1470
1470
|
setup(e, t) {
|
|
1471
1471
|
const n = e.i18n || Ft({ useScope: "parent", __useComponent: !0 });
|
|
1472
|
-
return
|
|
1472
|
+
return po(e, t, ro, (...o) => n[Et](...o));
|
|
1473
1473
|
}
|
|
1474
1474
|
};
|
|
1475
|
-
function
|
|
1475
|
+
function vr(e, t) {
|
|
1476
1476
|
const n = e;
|
|
1477
1477
|
if (e.mode === "composition")
|
|
1478
1478
|
return n.__getInstance(t) || e.global;
|
|
@@ -1481,23 +1481,23 @@ function hr(e, t) {
|
|
|
1481
1481
|
return o != null ? o.__composer : e.global.__composer;
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function yr(e) {
|
|
1485
1485
|
const t = (r) => {
|
|
1486
1486
|
const { instance: l, modifiers: i, value: c } = r;
|
|
1487
1487
|
if (!l || !l.$)
|
|
1488
|
-
throw ce(
|
|
1489
|
-
const
|
|
1490
|
-
process.env.NODE_ENV !== "production" && i.preserve &&
|
|
1488
|
+
throw ce(U.UNEXPECTED_ERROR);
|
|
1489
|
+
const _ = vr(e, l.$);
|
|
1490
|
+
process.env.NODE_ENV !== "production" && i.preserve && Ue(ct(_e.NOT_SUPPORTED_PRESERVE));
|
|
1491
1491
|
const d = pn(c);
|
|
1492
1492
|
return [
|
|
1493
|
-
Reflect.apply(
|
|
1494
|
-
|
|
1493
|
+
Reflect.apply(_.t, _, [...gn(d)]),
|
|
1494
|
+
_
|
|
1495
1495
|
];
|
|
1496
1496
|
};
|
|
1497
1497
|
return {
|
|
1498
1498
|
created: (r, l) => {
|
|
1499
1499
|
const [i, c] = t(l);
|
|
1500
|
-
he && e.global === c && (r.__i18nWatcher =
|
|
1500
|
+
he && e.global === c && (r.__i18nWatcher = Le(c.locale, () => {
|
|
1501
1501
|
l.instance && l.instance.$forceUpdate();
|
|
1502
1502
|
})), r.__composer = c, r.textContent = i;
|
|
1503
1503
|
},
|
|
@@ -1523,66 +1523,66 @@ function pn(e) {
|
|
|
1523
1523
|
return { path: e };
|
|
1524
1524
|
if (k(e)) {
|
|
1525
1525
|
if (!("path" in e))
|
|
1526
|
-
throw ce(
|
|
1526
|
+
throw ce(U.REQUIRED_VALUE, "path");
|
|
1527
1527
|
return e;
|
|
1528
1528
|
} else
|
|
1529
|
-
throw ce(
|
|
1529
|
+
throw ce(U.INVALID_VALUE);
|
|
1530
1530
|
}
|
|
1531
1531
|
function gn(e) {
|
|
1532
1532
|
const { path: t, locale: n, args: o, choice: s, plural: a } = e, r = {}, l = o || {};
|
|
1533
|
-
return b(n) && (r.locale = n),
|
|
1533
|
+
return b(n) && (r.locale = n), X(s) && (r.plural = s), X(a) && (r.plural = a), [t, l, r];
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
const o = k(n[0]) ? n[0] : {}, s = !!o.useI18nComponentName, a =
|
|
1537
|
-
process.env.NODE_ENV !== "production" && a && s &&
|
|
1535
|
+
function wr(e, t, ...n) {
|
|
1536
|
+
const o = k(n[0]) ? n[0] : {}, s = !!o.useI18nComponentName, a = H(o.globalInstall) ? o.globalInstall : !0;
|
|
1537
|
+
process.env.NODE_ENV !== "production" && a && s && Ue(ct(_e.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
1538
1538
|
name: pt.name
|
|
1539
|
-
})), a && (e.component(s ? "i18n" : pt.name, pt), e.component(_n.name, _n), e.component(mn.name, mn)), e.directive("t",
|
|
1539
|
+
})), a && (e.component(s ? "i18n" : pt.name, pt), e.component(_n.name, _n), e.component(mn.name, mn)), e.directive("t", yr(t));
|
|
1540
1540
|
}
|
|
1541
|
-
const
|
|
1541
|
+
const go = "vue-i18n: composer properties";
|
|
1542
1542
|
let It;
|
|
1543
1543
|
async function Er(e, t) {
|
|
1544
1544
|
return new Promise((n, o) => {
|
|
1545
1545
|
try {
|
|
1546
|
-
|
|
1546
|
+
rr({
|
|
1547
1547
|
id: "vue-devtools-plugin-vue-i18n",
|
|
1548
1548
|
label: mt["vue-devtools-plugin-vue-i18n"],
|
|
1549
1549
|
packageName: "vue-i18n",
|
|
1550
1550
|
homepage: "https://vue-i18n.intlify.dev",
|
|
1551
1551
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
1552
|
-
componentStateTypes: [
|
|
1552
|
+
componentStateTypes: [go],
|
|
1553
1553
|
app: e
|
|
1554
1554
|
}, (s) => {
|
|
1555
1555
|
It = s, s.on.visitComponentTree(({ componentInstance: r, treeNode: l }) => {
|
|
1556
|
-
|
|
1556
|
+
Lr(r, l, t);
|
|
1557
1557
|
}), s.on.inspectComponent(({ componentInstance: r, instanceData: l }) => {
|
|
1558
1558
|
r.vnode.el && r.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer && hn(l, r.vnode.el.__VUE_I18N__) : hn(l, r.vnode.el.__VUE_I18N__));
|
|
1559
1559
|
}), s.addInspector({
|
|
1560
1560
|
id: "vue-i18n-resource-inspector",
|
|
1561
1561
|
label: mt["vue-i18n-resource-inspector"],
|
|
1562
1562
|
icon: "language",
|
|
1563
|
-
treeFilterPlaceholder:
|
|
1563
|
+
treeFilterPlaceholder: ar["vue-i18n-resource-inspector"]
|
|
1564
1564
|
}), s.on.getInspectorTree((r) => {
|
|
1565
|
-
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" &&
|
|
1565
|
+
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Nr(r, t);
|
|
1566
1566
|
});
|
|
1567
1567
|
const a = /* @__PURE__ */ new Map();
|
|
1568
1568
|
s.on.getInspectorState(async (r) => {
|
|
1569
1569
|
if (r.app === e && r.inspectorId === "vue-i18n-resource-inspector")
|
|
1570
|
-
if (s.unhighlightElement(),
|
|
1570
|
+
if (s.unhighlightElement(), Cr(r, t), r.nodeId === "global") {
|
|
1571
1571
|
if (!a.has(r.app)) {
|
|
1572
1572
|
const [l] = await s.getComponentInstances(r.app);
|
|
1573
1573
|
a.set(r.app, l);
|
|
1574
1574
|
}
|
|
1575
1575
|
s.highlightElement(a.get(r.app));
|
|
1576
1576
|
} else {
|
|
1577
|
-
const l =
|
|
1577
|
+
const l = Sr(r.nodeId, t);
|
|
1578
1578
|
l && s.highlightElement(l);
|
|
1579
1579
|
}
|
|
1580
1580
|
}), s.on.editInspectorState((r) => {
|
|
1581
|
-
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" &&
|
|
1581
|
+
r.app === e && r.inspectorId === "vue-i18n-resource-inspector" && Ar(r, t);
|
|
1582
1582
|
}), s.addTimelineLayer({
|
|
1583
1583
|
id: "vue-i18n-timeline",
|
|
1584
1584
|
label: mt["vue-i18n-timeline"],
|
|
1585
|
-
color:
|
|
1585
|
+
color: lr["vue-i18n-timeline"]
|
|
1586
1586
|
}), n(!0);
|
|
1587
1587
|
});
|
|
1588
1588
|
} catch (s) {
|
|
@@ -1590,14 +1590,14 @@ async function Er(e, t) {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function ho(e) {
|
|
1594
1594
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function Lr(e, t, n) {
|
|
1597
1597
|
const o = n.mode === "composition" ? n.global : n.global.__composer;
|
|
1598
1598
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== o) {
|
|
1599
1599
|
const s = {
|
|
1600
|
-
label: `i18n (${
|
|
1600
|
+
label: `i18n (${ho(e)} Scope)`,
|
|
1601
1601
|
textColor: 0,
|
|
1602
1602
|
backgroundColor: 16764185
|
|
1603
1603
|
};
|
|
@@ -1605,7 +1605,7 @@ function wr(e, t, n) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
1607
|
function hn(e, t) {
|
|
1608
|
-
const n =
|
|
1608
|
+
const n = go;
|
|
1609
1609
|
e.state.push({
|
|
1610
1610
|
type: n,
|
|
1611
1611
|
key: "locale",
|
|
@@ -1647,23 +1647,23 @@ function xt(e) {
|
|
|
1647
1647
|
const t = {};
|
|
1648
1648
|
return Object.keys(e).forEach((n) => {
|
|
1649
1649
|
const o = e[n];
|
|
1650
|
-
|
|
1650
|
+
Y(o) && "source" in o ? t[n] = Tr(o) : V(o) ? t[n] = xt(o) : t[n] = o;
|
|
1651
1651
|
}), t;
|
|
1652
1652
|
}
|
|
1653
|
-
const
|
|
1653
|
+
const br = {
|
|
1654
1654
|
"<": "<",
|
|
1655
1655
|
">": ">",
|
|
1656
1656
|
'"': """,
|
|
1657
1657
|
"&": "&"
|
|
1658
1658
|
};
|
|
1659
|
-
function br(e) {
|
|
1660
|
-
return e.replace(/[<>"&]/g, Or);
|
|
1661
|
-
}
|
|
1662
1659
|
function Or(e) {
|
|
1663
|
-
return
|
|
1660
|
+
return e.replace(/[<>"&]/g, Ir);
|
|
1664
1661
|
}
|
|
1665
1662
|
function Ir(e) {
|
|
1666
|
-
|
|
1663
|
+
return br[e] || e;
|
|
1664
|
+
}
|
|
1665
|
+
function Tr(e) {
|
|
1666
|
+
const t = e.source ? `("${Or(e.source)}")` : "(?)";
|
|
1667
1667
|
return {
|
|
1668
1668
|
_custom: {
|
|
1669
1669
|
type: "function",
|
|
@@ -1671,7 +1671,7 @@ function Ir(e) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Nr(e, t) {
|
|
1675
1675
|
e.rootNodes.push({
|
|
1676
1676
|
id: "global",
|
|
1677
1677
|
label: "Global Scope"
|
|
@@ -1681,11 +1681,11 @@ function Tr(e, t) {
|
|
|
1681
1681
|
const a = t.mode === "composition" ? s : s.__composer;
|
|
1682
1682
|
n !== a && e.rootNodes.push({
|
|
1683
1683
|
id: a.id.toString(),
|
|
1684
|
-
label: `${
|
|
1684
|
+
label: `${ho(o)} Scope`
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Sr(e, t) {
|
|
1689
1689
|
let n = null;
|
|
1690
1690
|
if (e !== "global") {
|
|
1691
1691
|
for (const [o, s] of t.__instances.entries())
|
|
@@ -1696,7 +1696,7 @@ function Nr(e, t) {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
return n;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function vo(e, t) {
|
|
1700
1700
|
if (e === "global")
|
|
1701
1701
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
1702
1702
|
{
|
|
@@ -1704,11 +1704,11 @@ function ho(e, t) {
|
|
|
1704
1704
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1708
|
-
const n =
|
|
1709
|
-
return n && (e.state =
|
|
1707
|
+
function Cr(e, t) {
|
|
1708
|
+
const n = vo(e.nodeId, t);
|
|
1709
|
+
return n && (e.state = Dr(n)), null;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Dr(e) {
|
|
1712
1712
|
const t = {}, n = "Locale related info", o = [
|
|
1713
1713
|
{
|
|
1714
1714
|
type: n,
|
|
@@ -1783,23 +1783,23 @@ function Tt(e, t) {
|
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
const n =
|
|
1786
|
+
function Ar(e, t) {
|
|
1787
|
+
const n = vo(e.nodeId, t);
|
|
1788
1788
|
if (n) {
|
|
1789
1789
|
const [o] = e.path;
|
|
1790
|
-
o === "locale" && b(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (b(e.state.value) ||
|
|
1790
|
+
o === "locale" && b(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (b(e.state.value) || W(e.state.value) || V(e.state.value)) ? n.fallbackLocale.value = e.state.value : o === "inheritLocale" && H(e.state.value) && (n.inheritLocale = e.state.value);
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
const
|
|
1794
|
-
function
|
|
1795
|
-
const n =
|
|
1793
|
+
const Pr = /* @__PURE__ */ ve("global-vue-i18n");
|
|
1794
|
+
function $r(e = {}, t) {
|
|
1795
|
+
const n = H(e.globalInjection) ? e.globalInjection : !0, o = !0, s = /* @__PURE__ */ new Map(), [a, r] = Mr(e), l = ve(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
1796
1796
|
function i(d) {
|
|
1797
1797
|
return s.get(d) || null;
|
|
1798
1798
|
}
|
|
1799
1799
|
function c(d, u) {
|
|
1800
1800
|
s.set(d, u);
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function _(d) {
|
|
1803
1803
|
s.delete(d);
|
|
1804
1804
|
}
|
|
1805
1805
|
{
|
|
@@ -1810,20 +1810,20 @@ function Pr(e = {}, t) {
|
|
|
1810
1810
|
get allowComposition() {
|
|
1811
1811
|
return o;
|
|
1812
1812
|
},
|
|
1813
|
-
async install(u, ...
|
|
1814
|
-
process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = d), u.__VUE_I18N_SYMBOL__ = l, u.provide(u.__VUE_I18N_SYMBOL__, d), n &&
|
|
1815
|
-
const
|
|
1813
|
+
async install(u, ...m) {
|
|
1814
|
+
process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = d), u.__VUE_I18N_SYMBOL__ = l, u.provide(u.__VUE_I18N_SYMBOL__, d), n && zr(u, d.global), wr(u, d, ...m);
|
|
1815
|
+
const E = u.unmount;
|
|
1816
1816
|
if (u.unmount = () => {
|
|
1817
|
-
d.dispose(),
|
|
1817
|
+
d.dispose(), E();
|
|
1818
1818
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
1819
1819
|
if (!await Er(u, d))
|
|
1820
|
-
throw ce(
|
|
1821
|
-
const
|
|
1820
|
+
throw ce(U.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
1821
|
+
const y = Bn();
|
|
1822
1822
|
{
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1823
|
+
const h = r;
|
|
1824
|
+
h[Ye] && h[Ye](y);
|
|
1825
1825
|
}
|
|
1826
|
-
|
|
1826
|
+
y.on("*", Tt);
|
|
1827
1827
|
}
|
|
1828
1828
|
},
|
|
1829
1829
|
get global() {
|
|
@@ -1835,7 +1835,7 @@ function Pr(e = {}, t) {
|
|
|
1835
1835
|
__instances: s,
|
|
1836
1836
|
__getInstance: i,
|
|
1837
1837
|
__setInstance: c,
|
|
1838
|
-
__deleteInstance:
|
|
1838
|
+
__deleteInstance: _
|
|
1839
1839
|
};
|
|
1840
1840
|
return d;
|
|
1841
1841
|
}
|
|
@@ -1843,48 +1843,48 @@ function Pr(e = {}, t) {
|
|
|
1843
1843
|
function Ft(e = {}) {
|
|
1844
1844
|
const t = St();
|
|
1845
1845
|
if (t == null)
|
|
1846
|
-
throw ce(
|
|
1846
|
+
throw ce(U.MUST_BE_CALL_SETUP_TOP);
|
|
1847
1847
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
1848
|
-
throw ce(
|
|
1849
|
-
const n =
|
|
1848
|
+
throw ce(U.NOT_INSLALLED);
|
|
1849
|
+
const n = kr(t), o = xr(n), s = fo(t), a = Rr(e, s);
|
|
1850
1850
|
if (a === "global")
|
|
1851
|
-
return
|
|
1851
|
+
return mr(o, e, s), o;
|
|
1852
1852
|
if (a === "parent") {
|
|
1853
|
-
let i =
|
|
1854
|
-
return i == null && (process.env.NODE_ENV !== "production" &&
|
|
1853
|
+
let i = Fr(n, t, e.__useComponent);
|
|
1854
|
+
return i == null && (process.env.NODE_ENV !== "production" && Ue(ct(_e.NOT_FOUND_PARENT_SCOPE)), i = o), i;
|
|
1855
1855
|
}
|
|
1856
1856
|
const r = n;
|
|
1857
1857
|
let l = r.__getInstance(t);
|
|
1858
1858
|
if (l == null) {
|
|
1859
1859
|
const i = ne({}, e);
|
|
1860
|
-
"__i18n" in s && (i.__i18n = s.__i18n), o && (i.__root = o), l =
|
|
1860
|
+
"__i18n" in s && (i.__i18n = s.__i18n), o && (i.__root = o), l = _o(i), Vr(r, t, l), r.__setInstance(t, l);
|
|
1861
1861
|
}
|
|
1862
1862
|
return l;
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1865
|
-
const o =
|
|
1864
|
+
function Mr(e, t, n) {
|
|
1865
|
+
const o = ts();
|
|
1866
1866
|
{
|
|
1867
|
-
const s = o.run(() =>
|
|
1867
|
+
const s = o.run(() => _o(e));
|
|
1868
1868
|
if (s == null)
|
|
1869
|
-
throw ce(
|
|
1869
|
+
throw ce(U.UNEXPECTED_ERROR);
|
|
1870
1870
|
return [o, s];
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function kr(e) {
|
|
1874
1874
|
{
|
|
1875
|
-
const t =
|
|
1875
|
+
const t = ke(e.isCE ? Pr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1876
1876
|
if (!t)
|
|
1877
|
-
throw ce(e.isCE ?
|
|
1877
|
+
throw ce(e.isCE ? U.NOT_INSLALLED_WITH_PROVIDE : U.UNEXPECTED_ERROR);
|
|
1878
1878
|
return t;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function Rr(e, t) {
|
|
1882
1882
|
return at(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function xr(e) {
|
|
1885
1885
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function Fr(e, t, n = !1) {
|
|
1888
1888
|
let o = null;
|
|
1889
1889
|
const s = t.root;
|
|
1890
1890
|
let a = t.parent;
|
|
@@ -1896,13 +1896,13 @@ function xr(e, t, n = !1) {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
return o;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Vr(e, t, n) {
|
|
1900
1900
|
let o = null;
|
|
1901
|
-
|
|
1901
|
+
Ve(() => {
|
|
1902
1902
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
1903
|
-
t.vnode.el.__VUE_I18N__ = n, o =
|
|
1903
|
+
t.vnode.el.__VUE_I18N__ = n, o = Bn();
|
|
1904
1904
|
const s = n;
|
|
1905
|
-
s[
|
|
1905
|
+
s[Ye] && s[Ye](o), o.on("*", Tt);
|
|
1906
1906
|
}
|
|
1907
1907
|
}, t), rt(() => {
|
|
1908
1908
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
@@ -1913,18 +1913,18 @@ function Fr(e, t, n) {
|
|
|
1913
1913
|
e.__deleteInstance(t);
|
|
1914
1914
|
}, t);
|
|
1915
1915
|
}
|
|
1916
|
-
const
|
|
1916
|
+
const Ur = [
|
|
1917
1917
|
"locale",
|
|
1918
1918
|
"fallbackLocale",
|
|
1919
1919
|
"availableLocales"
|
|
1920
|
-
],
|
|
1921
|
-
function
|
|
1920
|
+
], Gr = ["t", "rt", "d", "n", "tm"];
|
|
1921
|
+
function zr(e, t) {
|
|
1922
1922
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1923
|
-
|
|
1923
|
+
Ur.forEach((o) => {
|
|
1924
1924
|
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1925
1925
|
if (!s)
|
|
1926
|
-
throw ce(
|
|
1927
|
-
const a =
|
|
1926
|
+
throw ce(U.UNEXPECTED_ERROR);
|
|
1927
|
+
const a = ns(s.value) ? {
|
|
1928
1928
|
get() {
|
|
1929
1929
|
return s.value.value;
|
|
1930
1930
|
},
|
|
@@ -1937,22 +1937,22 @@ function Gr(e, t) {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
1939
|
Object.defineProperty(n, o, a);
|
|
1940
|
-
}), e.config.globalProperties.$i18n = n,
|
|
1940
|
+
}), e.config.globalProperties.$i18n = n, Gr.forEach((o) => {
|
|
1941
1941
|
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1942
1942
|
if (!s || !s.value)
|
|
1943
|
-
throw ce(
|
|
1943
|
+
throw ce(U.UNEXPECTED_ERROR);
|
|
1944
1944
|
Object.defineProperty(e.config.globalProperties, `$${o}`, s);
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1947
|
+
zs(Ls);
|
|
1948
|
+
Hs(Xn);
|
|
1949
|
+
cr();
|
|
1950
1950
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1951
1951
|
const e = At();
|
|
1952
|
-
e.__INTLIFY__ = !0,
|
|
1952
|
+
e.__INTLIFY__ = !0, As(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
1953
1953
|
}
|
|
1954
1954
|
process.env.NODE_ENV;
|
|
1955
|
-
const
|
|
1955
|
+
const Hr = {
|
|
1956
1956
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
1957
1957
|
const { normalize: t } = e;
|
|
1958
1958
|
return t(["\u53EA\u663E\u793A\u5728\u7EBF\u7EC8\u7AEF"]);
|
|
@@ -1985,7 +1985,7 @@ const zr = {
|
|
|
1985
1985
|
const { normalize: t } = e;
|
|
1986
1986
|
return t(["\u5217\u6570"]);
|
|
1987
1987
|
}
|
|
1988
|
-
},
|
|
1988
|
+
}, jr = {
|
|
1989
1989
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
1990
1990
|
const { normalize: t } = e;
|
|
1991
1991
|
return t(["Online Only"]);
|
|
@@ -2019,52 +2019,52 @@ const zr = {
|
|
|
2019
2019
|
return t(["Number of columns"]);
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
|
-
var
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2025
|
-
|
|
2022
|
+
var yo = /* @__PURE__ */ ((e) => (e.zh = "zh", e.en = "en", e))(yo || {});
|
|
2023
|
+
let Be;
|
|
2024
|
+
function Wr(e) {
|
|
2025
|
+
Be && Be.dispose(), Be = $r({
|
|
2026
2026
|
locale: e,
|
|
2027
2027
|
messages: {
|
|
2028
|
-
zh:
|
|
2029
|
-
en:
|
|
2028
|
+
zh: Hr,
|
|
2029
|
+
en: jr
|
|
2030
2030
|
},
|
|
2031
2031
|
fallbackLocale: "en",
|
|
2032
2032
|
silentTranslationWarn: !0,
|
|
2033
2033
|
silentFallbackWarn: !0
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2037
|
-
|
|
2036
|
+
function Br(e) {
|
|
2037
|
+
Wr(e), Be.global.locale = e;
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2040
|
-
return
|
|
2041
|
-
}
|
|
2042
|
-
var yo = /* @__PURE__ */ ((e) => (e.UserFirst = "UserFirst", e.PUFirst = "PUFirst", e))(yo || {}), Eo = /* @__PURE__ */ ((e) => (e.BACKGROUND_WHITE = "white", e.BACKGROUND_DRAK = "drak", e))(Eo || {});
|
|
2043
|
-
const wo = M(
|
|
2044
|
-
"white"
|
|
2045
|
-
);
|
|
2046
|
-
function Xi(e) {
|
|
2047
|
-
wo.value = e;
|
|
2048
|
-
}
|
|
2049
|
-
function Br() {
|
|
2050
|
-
return wo;
|
|
2039
|
+
function Ce(e) {
|
|
2040
|
+
return Be.global.t(e);
|
|
2051
2041
|
}
|
|
2042
|
+
var wo = /* @__PURE__ */ ((e) => (e.UserFirst = "UserFirst", e.PUFirst = "PUFirst", e))(wo || {}), Eo = /* @__PURE__ */ ((e) => (e.BACKGROUND_WHITE = "white", e.BACKGROUND_DRAK = "drak", e.BACKGROUND_DARK = "dark", e))(Eo || {});
|
|
2052
2043
|
const Lo = M(
|
|
2053
|
-
"
|
|
2044
|
+
"white"
|
|
2054
2045
|
);
|
|
2055
|
-
function
|
|
2046
|
+
function qi(e) {
|
|
2056
2047
|
Lo.value = e;
|
|
2057
2048
|
}
|
|
2058
|
-
function
|
|
2049
|
+
function Kr() {
|
|
2059
2050
|
return Lo;
|
|
2060
2051
|
}
|
|
2061
|
-
const bo = M(
|
|
2062
|
-
|
|
2052
|
+
const bo = M(
|
|
2053
|
+
"UserFirst"
|
|
2054
|
+
);
|
|
2055
|
+
function Yr(e) {
|
|
2063
2056
|
bo.value = e;
|
|
2064
2057
|
}
|
|
2065
2058
|
function Xr() {
|
|
2066
2059
|
return bo;
|
|
2067
2060
|
}
|
|
2061
|
+
const Oo = M(!1);
|
|
2062
|
+
function Zi(e) {
|
|
2063
|
+
Oo.value = e;
|
|
2064
|
+
}
|
|
2065
|
+
function Jr() {
|
|
2066
|
+
return Oo;
|
|
2067
|
+
}
|
|
2068
2068
|
var vn;
|
|
2069
2069
|
((e) => {
|
|
2070
2070
|
((n) => {
|
|
@@ -2148,7 +2148,7 @@ var vn;
|
|
|
2148
2148
|
n.AccessSession = o;
|
|
2149
2149
|
})(e.Utils || (e.Utils = {}));
|
|
2150
2150
|
})(vn || (vn = {}));
|
|
2151
|
-
var
|
|
2151
|
+
var S;
|
|
2152
2152
|
((e) => {
|
|
2153
2153
|
e.zeroLayout = {
|
|
2154
2154
|
name: "0",
|
|
@@ -2159,21 +2159,21 @@ var N;
|
|
|
2159
2159
|
function t(n, o, s) {
|
|
2160
2160
|
if (s) {
|
|
2161
2161
|
let r = n * o;
|
|
2162
|
-
return s.forEach(([l, i, c,
|
|
2163
|
-
r -= (
|
|
2162
|
+
return s.forEach(([l, i, c, _]) => {
|
|
2163
|
+
r -= (_ - i) * (c - l) - 1;
|
|
2164
2164
|
}), {
|
|
2165
2165
|
count: r,
|
|
2166
2166
|
row: n,
|
|
2167
2167
|
col: o,
|
|
2168
2168
|
name: `${r < 10 ? `0${r}` : r}`,
|
|
2169
|
-
areas: s.map(([l, i, c,
|
|
2169
|
+
areas: s.map(([l, i, c, _]) => ({
|
|
2170
2170
|
leftTop: {
|
|
2171
2171
|
col: l,
|
|
2172
2172
|
row: i
|
|
2173
2173
|
},
|
|
2174
2174
|
rightBottom: {
|
|
2175
2175
|
col: c,
|
|
2176
|
-
row:
|
|
2176
|
+
row: _
|
|
2177
2177
|
}
|
|
2178
2178
|
}))
|
|
2179
2179
|
};
|
|
@@ -2226,62 +2226,71 @@ var N;
|
|
|
2226
2226
|
}
|
|
2227
2227
|
n.getTestLayout = s;
|
|
2228
2228
|
})(e.Test || (e.Test = {}));
|
|
2229
|
-
})(
|
|
2230
|
-
const
|
|
2229
|
+
})(S || (S = {}));
|
|
2230
|
+
const Io = String.prototype.includes, To = function(e, t) {
|
|
2231
2231
|
const n = this.toLocaleLowerCase(), o = e.toLocaleLowerCase();
|
|
2232
|
-
String.prototype.includes =
|
|
2232
|
+
String.prototype.includes = Io;
|
|
2233
2233
|
const s = n.includes(o, t);
|
|
2234
|
-
return String.prototype.includes =
|
|
2234
|
+
return String.prototype.includes = To, s;
|
|
2235
2235
|
};
|
|
2236
2236
|
function st(e) {
|
|
2237
|
-
String.prototype.includes =
|
|
2237
|
+
String.prototype.includes = To;
|
|
2238
2238
|
const t = e();
|
|
2239
|
-
return String.prototype.includes =
|
|
2239
|
+
return String.prototype.includes = Io, t;
|
|
2240
2240
|
}
|
|
2241
|
-
const
|
|
2241
|
+
const Qr = Z({
|
|
2242
2242
|
props: {
|
|
2243
2243
|
countInfo: Object,
|
|
2244
2244
|
controlParams: Object
|
|
2245
2245
|
},
|
|
2246
2246
|
setup(e) {
|
|
2247
|
-
function t(a, r) {
|
|
2247
|
+
function t(a, r, l = []) {
|
|
2248
|
+
const i = [...l, { name: r.name }];
|
|
2248
2249
|
if (r) {
|
|
2249
|
-
let
|
|
2250
|
-
return r.items.forEach((
|
|
2251
|
-
|
|
2252
|
-
}), a(r) +
|
|
2250
|
+
let c = 0;
|
|
2251
|
+
return r.items.forEach((_) => {
|
|
2252
|
+
c += t(a, _, i);
|
|
2253
|
+
}), a(r, i) + c;
|
|
2253
2254
|
}
|
|
2254
2255
|
return 0;
|
|
2255
2256
|
}
|
|
2256
|
-
const n =
|
|
2257
|
-
var
|
|
2257
|
+
const n = F(() => t((a, r) => {
|
|
2258
|
+
var l, i;
|
|
2258
2259
|
if (a.devices) {
|
|
2259
|
-
let
|
|
2260
|
-
const
|
|
2261
|
-
|
|
2262
|
-
() =>
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2260
|
+
let c = (l = a.devices) == null ? void 0 : l.filter((d) => d.online);
|
|
2261
|
+
const _ = (i = e.controlParams) == null ? void 0 : i.searchStr;
|
|
2262
|
+
if (_) {
|
|
2263
|
+
const d = !!r.find((u) => u.name.indexOf(_) >= 0);
|
|
2264
|
+
c = c.filter((u) => st(
|
|
2265
|
+
() => {
|
|
2266
|
+
var m;
|
|
2267
|
+
return d || u.name.includes(_) || ((m = u.user) == null ? void 0 : m.includes(_)) || u.id.includes(_);
|
|
2268
|
+
}
|
|
2269
|
+
));
|
|
2270
|
+
}
|
|
2271
|
+
return c.length;
|
|
2267
2272
|
}
|
|
2268
2273
|
return 0;
|
|
2269
|
-
}, e.countInfo)), o =
|
|
2270
|
-
var
|
|
2274
|
+
}, e.countInfo)), o = F(() => t((a, r) => {
|
|
2275
|
+
var l;
|
|
2271
2276
|
if (a.devices) {
|
|
2272
|
-
let
|
|
2273
|
-
const
|
|
2274
|
-
|
|
2275
|
-
() =>
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2277
|
+
let i = a.devices;
|
|
2278
|
+
const c = (l = e.controlParams) == null ? void 0 : l.searchStr;
|
|
2279
|
+
if (c) {
|
|
2280
|
+
const _ = !!r.find((d) => d.name.indexOf(c) >= 0);
|
|
2281
|
+
i = i.filter((d) => st(
|
|
2282
|
+
() => {
|
|
2283
|
+
var u;
|
|
2284
|
+
return _ || d.name.includes(c) || ((u = d.user) == null ? void 0 : u.includes(c)) || d.id.includes(c);
|
|
2285
|
+
}
|
|
2286
|
+
));
|
|
2287
|
+
}
|
|
2288
|
+
return i.length;
|
|
2280
2289
|
}
|
|
2281
2290
|
return a.totalCount;
|
|
2282
2291
|
}, e.countInfo));
|
|
2283
2292
|
return {
|
|
2284
|
-
theme:
|
|
2293
|
+
theme: ke("theme"),
|
|
2285
2294
|
totalCount: o,
|
|
2286
2295
|
onlineCount: n
|
|
2287
2296
|
};
|
|
@@ -2292,36 +2301,36 @@ const oe = (e, t) => {
|
|
|
2292
2301
|
for (const [o, s] of t)
|
|
2293
2302
|
n[o] = s;
|
|
2294
2303
|
return n;
|
|
2295
|
-
},
|
|
2296
|
-
function
|
|
2304
|
+
}, qr = { class: "count-show" }, Zr = { class: "count-show-online" }, ea = { key: 0 };
|
|
2305
|
+
function ta(e, t, n, o, s, a) {
|
|
2297
2306
|
var r;
|
|
2298
|
-
return
|
|
2299
|
-
class:
|
|
2307
|
+
return C(), P("div", {
|
|
2308
|
+
class: xe(`root ${e.theme}`)
|
|
2300
2309
|
}, [
|
|
2301
|
-
|
|
2310
|
+
J(e.$slots, "default", {
|
|
2302
2311
|
total: e.totalCount,
|
|
2303
2312
|
online: e.onlineCount
|
|
2304
2313
|
}, void 0, !0),
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
(r = e.controlParams) != null && r.onlyShowOnline ?
|
|
2314
|
+
O("span", qr, [
|
|
2315
|
+
O("span", Zr, j(e.onlineCount), 1),
|
|
2316
|
+
(r = e.controlParams) != null && r.onlyShowOnline ? ue("", !0) : (C(), P("span", ea, "/" + j(e.totalCount), 1))
|
|
2308
2317
|
])
|
|
2309
2318
|
], 2);
|
|
2310
2319
|
}
|
|
2311
|
-
const
|
|
2320
|
+
const No = /* @__PURE__ */ oe(Qr, [["render", ta], ["__scopeId", "data-v-c7e943f1"]]), So = Object.freeze(
|
|
2312
2321
|
{
|
|
2313
2322
|
left: 0,
|
|
2314
2323
|
top: 0,
|
|
2315
2324
|
width: 16,
|
|
2316
2325
|
height: 16
|
|
2317
2326
|
}
|
|
2318
|
-
),
|
|
2327
|
+
), Co = Object.freeze({
|
|
2319
2328
|
rotate: 0,
|
|
2320
2329
|
vFlip: !1,
|
|
2321
2330
|
hFlip: !1
|
|
2322
2331
|
}), Vt = Object.freeze({
|
|
2323
|
-
...
|
|
2324
|
-
...
|
|
2332
|
+
...So,
|
|
2333
|
+
...Co
|
|
2325
2334
|
});
|
|
2326
2335
|
Object.freeze({
|
|
2327
2336
|
...Vt,
|
|
@@ -2329,28 +2338,28 @@ Object.freeze({
|
|
|
2329
2338
|
hidden: !1
|
|
2330
2339
|
});
|
|
2331
2340
|
({
|
|
2332
|
-
...
|
|
2341
|
+
...So
|
|
2333
2342
|
});
|
|
2334
|
-
const
|
|
2343
|
+
const Do = Object.freeze({
|
|
2335
2344
|
width: null,
|
|
2336
2345
|
height: null
|
|
2337
|
-
}),
|
|
2338
|
-
...
|
|
2339
|
-
...
|
|
2346
|
+
}), Ao = Object.freeze({
|
|
2347
|
+
...Do,
|
|
2348
|
+
...Co
|
|
2340
2349
|
});
|
|
2341
|
-
function
|
|
2350
|
+
function na(e, t) {
|
|
2342
2351
|
const n = {
|
|
2343
2352
|
...e
|
|
2344
2353
|
};
|
|
2345
2354
|
for (const o in t) {
|
|
2346
2355
|
const s = t[o], a = typeof s;
|
|
2347
|
-
o in
|
|
2356
|
+
o in Do ? (s === null || s && (a === "string" || a === "number")) && (n[o] = s) : a === typeof n[o] && (n[o] = o === "rotate" ? s % 4 : s);
|
|
2348
2357
|
}
|
|
2349
2358
|
return n;
|
|
2350
2359
|
}
|
|
2351
|
-
const
|
|
2352
|
-
function
|
|
2353
|
-
t.split(
|
|
2360
|
+
const oa = /[\s,]+/;
|
|
2361
|
+
function sa(e, t) {
|
|
2362
|
+
t.split(oa).forEach((n) => {
|
|
2354
2363
|
switch (n.trim()) {
|
|
2355
2364
|
case "horizontal":
|
|
2356
2365
|
e.hFlip = !0;
|
|
@@ -2361,7 +2370,7 @@ function oa(e, t) {
|
|
|
2361
2370
|
}
|
|
2362
2371
|
});
|
|
2363
2372
|
}
|
|
2364
|
-
function
|
|
2373
|
+
function ra(e, t = 0) {
|
|
2365
2374
|
const n = e.replace(/^-?[0-9.]*/, "");
|
|
2366
2375
|
function o(s) {
|
|
2367
2376
|
for (; s < 0; )
|
|
@@ -2387,7 +2396,7 @@ function sa(e, t = 0) {
|
|
|
2387
2396
|
}
|
|
2388
2397
|
return t;
|
|
2389
2398
|
}
|
|
2390
|
-
const
|
|
2399
|
+
const aa = /(-?[0-9.]*[0-9]+[0-9.]*)/g, la = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2391
2400
|
function yn(e, t, n) {
|
|
2392
2401
|
if (t === 1)
|
|
2393
2402
|
return e;
|
|
@@ -2395,11 +2404,11 @@ function yn(e, t, n) {
|
|
|
2395
2404
|
return Math.ceil(e * t * n) / n;
|
|
2396
2405
|
if (typeof e != "string")
|
|
2397
2406
|
return e;
|
|
2398
|
-
const o = e.split(
|
|
2407
|
+
const o = e.split(aa);
|
|
2399
2408
|
if (o === null || !o.length)
|
|
2400
2409
|
return e;
|
|
2401
2410
|
const s = [];
|
|
2402
|
-
let a = o.shift(), r =
|
|
2411
|
+
let a = o.shift(), r = la.test(a);
|
|
2403
2412
|
for (; ; ) {
|
|
2404
2413
|
if (r) {
|
|
2405
2414
|
const l = parseFloat(a);
|
|
@@ -2411,12 +2420,12 @@ function yn(e, t, n) {
|
|
|
2411
2420
|
r = !r;
|
|
2412
2421
|
}
|
|
2413
2422
|
}
|
|
2414
|
-
function
|
|
2423
|
+
function ia(e, t) {
|
|
2415
2424
|
const n = {
|
|
2416
2425
|
...Vt,
|
|
2417
2426
|
...e
|
|
2418
2427
|
}, o = {
|
|
2419
|
-
...
|
|
2428
|
+
...Ao,
|
|
2420
2429
|
...t
|
|
2421
2430
|
}, s = {
|
|
2422
2431
|
left: n.left,
|
|
@@ -2425,114 +2434,114 @@ function la(e, t) {
|
|
|
2425
2434
|
height: n.height
|
|
2426
2435
|
};
|
|
2427
2436
|
let a = n.body;
|
|
2428
|
-
[n, o].forEach((
|
|
2429
|
-
const
|
|
2430
|
-
let
|
|
2431
|
-
|
|
2437
|
+
[n, o].forEach((m) => {
|
|
2438
|
+
const E = [], L = m.hFlip, y = m.vFlip;
|
|
2439
|
+
let h = m.rotate;
|
|
2440
|
+
L ? y ? h += 2 : (E.push(
|
|
2432
2441
|
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
2433
|
-
),
|
|
2442
|
+
), E.push("scale(-1 1)"), s.top = s.left = 0) : y && (E.push(
|
|
2434
2443
|
"translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
|
|
2435
|
-
),
|
|
2436
|
-
let
|
|
2437
|
-
switch (
|
|
2444
|
+
), E.push("scale(1 -1)"), s.top = s.left = 0);
|
|
2445
|
+
let w;
|
|
2446
|
+
switch (h < 0 && (h -= Math.floor(h / 4) * 4), h = h % 4, h) {
|
|
2438
2447
|
case 1:
|
|
2439
|
-
|
|
2440
|
-
"rotate(90 " +
|
|
2448
|
+
w = s.height / 2 + s.top, E.unshift(
|
|
2449
|
+
"rotate(90 " + w.toString() + " " + w.toString() + ")"
|
|
2441
2450
|
);
|
|
2442
2451
|
break;
|
|
2443
2452
|
case 2:
|
|
2444
|
-
|
|
2453
|
+
E.unshift(
|
|
2445
2454
|
"rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"
|
|
2446
2455
|
);
|
|
2447
2456
|
break;
|
|
2448
2457
|
case 3:
|
|
2449
|
-
|
|
2450
|
-
"rotate(-90 " +
|
|
2458
|
+
w = s.width / 2 + s.left, E.unshift(
|
|
2459
|
+
"rotate(-90 " + w.toString() + " " + w.toString() + ")"
|
|
2451
2460
|
);
|
|
2452
2461
|
break;
|
|
2453
2462
|
}
|
|
2454
|
-
|
|
2463
|
+
h % 2 === 1 && (s.left !== s.top && (w = s.left, s.left = s.top, s.top = w), s.width !== s.height && (w = s.width, s.width = s.height, s.height = w)), E.length && (a = '<g transform="' + E.join(" ") + '">' + a + "</g>");
|
|
2455
2464
|
});
|
|
2456
2465
|
const r = o.width, l = o.height, i = s.width, c = s.height;
|
|
2457
|
-
let
|
|
2458
|
-
return r === null ? (d = l === null ? "1em" : l === "auto" ? c : l,
|
|
2466
|
+
let _, d;
|
|
2467
|
+
return r === null ? (d = l === null ? "1em" : l === "auto" ? c : l, _ = yn(d, i / c)) : (_ = r === "auto" ? i : r, d = l === null ? yn(_, c / i) : l === "auto" ? c : l), {
|
|
2459
2468
|
attributes: {
|
|
2460
|
-
width:
|
|
2469
|
+
width: _.toString(),
|
|
2461
2470
|
height: d.toString(),
|
|
2462
2471
|
viewBox: s.left.toString() + " " + s.top.toString() + " " + i.toString() + " " + c.toString()
|
|
2463
2472
|
},
|
|
2464
2473
|
body: a
|
|
2465
2474
|
};
|
|
2466
2475
|
}
|
|
2467
|
-
const
|
|
2468
|
-
let
|
|
2469
|
-
function
|
|
2476
|
+
const ca = /\sid="(\S+)"/g, ua = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
2477
|
+
let da = 0;
|
|
2478
|
+
function fa(e, t = ua) {
|
|
2470
2479
|
const n = [];
|
|
2471
2480
|
let o;
|
|
2472
|
-
for (; o =
|
|
2481
|
+
for (; o = ca.exec(e); )
|
|
2473
2482
|
n.push(o[1]);
|
|
2474
2483
|
return n.length && n.forEach((s) => {
|
|
2475
|
-
const a = typeof t == "function" ? t(s) : t + (
|
|
2484
|
+
const a = typeof t == "function" ? t(s) : t + (da++).toString(), r = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2476
2485
|
e = e.replace(
|
|
2477
2486
|
new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
|
|
2478
2487
|
"$1" + a + "$3"
|
|
2479
2488
|
);
|
|
2480
2489
|
}), e;
|
|
2481
2490
|
}
|
|
2482
|
-
function
|
|
2491
|
+
function _a(e, t) {
|
|
2483
2492
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2484
2493
|
for (const o in t)
|
|
2485
2494
|
n += " " + o + '="' + t[o] + '"';
|
|
2486
2495
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
2487
2496
|
}
|
|
2488
|
-
function
|
|
2497
|
+
function ma(e) {
|
|
2489
2498
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2490
2499
|
}
|
|
2491
|
-
function
|
|
2492
|
-
return 'url("data:image/svg+xml,' +
|
|
2500
|
+
function pa(e) {
|
|
2501
|
+
return 'url("data:image/svg+xml,' + ma(e) + '")';
|
|
2493
2502
|
}
|
|
2494
|
-
const
|
|
2495
|
-
...
|
|
2503
|
+
const wn = {
|
|
2504
|
+
...Ao,
|
|
2496
2505
|
inline: !1
|
|
2497
|
-
},
|
|
2506
|
+
}, ga = {
|
|
2498
2507
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2499
2508
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2500
2509
|
"aria-hidden": !0,
|
|
2501
2510
|
role: "img"
|
|
2502
|
-
},
|
|
2511
|
+
}, ha = {
|
|
2503
2512
|
display: "inline-block"
|
|
2504
2513
|
}, Nt = {
|
|
2505
2514
|
backgroundColor: "currentColor"
|
|
2506
|
-
},
|
|
2515
|
+
}, Po = {
|
|
2507
2516
|
backgroundColor: "transparent"
|
|
2508
|
-
},
|
|
2517
|
+
}, En = {
|
|
2509
2518
|
Image: "var(--svg)",
|
|
2510
2519
|
Repeat: "no-repeat",
|
|
2511
2520
|
Size: "100% 100%"
|
|
2512
2521
|
}, Ln = {
|
|
2513
2522
|
webkitMask: Nt,
|
|
2514
2523
|
mask: Nt,
|
|
2515
|
-
background:
|
|
2524
|
+
background: Po
|
|
2516
2525
|
};
|
|
2517
2526
|
for (const e in Ln) {
|
|
2518
2527
|
const t = Ln[e];
|
|
2519
|
-
for (const n in
|
|
2520
|
-
t[e + n] =
|
|
2528
|
+
for (const n in En)
|
|
2529
|
+
t[e + n] = En[n];
|
|
2521
2530
|
}
|
|
2522
|
-
const
|
|
2531
|
+
const et = {};
|
|
2523
2532
|
["horizontal", "vertical"].forEach((e) => {
|
|
2524
2533
|
const t = e.slice(0, 1) + "Flip";
|
|
2525
|
-
|
|
2534
|
+
et[e + "-flip"] = t, et[e.slice(0, 1) + "-flip"] = t, et[e + "Flip"] = t;
|
|
2526
2535
|
});
|
|
2527
2536
|
function bn(e) {
|
|
2528
2537
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2529
2538
|
}
|
|
2530
|
-
const
|
|
2531
|
-
const n =
|
|
2532
|
-
for (let
|
|
2533
|
-
const
|
|
2534
|
-
if (
|
|
2535
|
-
switch (
|
|
2539
|
+
const va = (e, t) => {
|
|
2540
|
+
const n = na(wn, t), o = { ...ga }, s = t.mode || "svg", a = {}, r = t.style, l = typeof r == "object" && !(r instanceof Array) ? r : {};
|
|
2541
|
+
for (let L in t) {
|
|
2542
|
+
const y = t[L];
|
|
2543
|
+
if (y !== void 0)
|
|
2544
|
+
switch (L) {
|
|
2536
2545
|
case "icon":
|
|
2537
2546
|
case "style":
|
|
2538
2547
|
case "onLoad":
|
|
@@ -2541,72 +2550,72 @@ const ha = (e, t) => {
|
|
|
2541
2550
|
case "inline":
|
|
2542
2551
|
case "hFlip":
|
|
2543
2552
|
case "vFlip":
|
|
2544
|
-
n[
|
|
2553
|
+
n[L] = y === !0 || y === "true" || y === 1;
|
|
2545
2554
|
break;
|
|
2546
2555
|
case "flip":
|
|
2547
|
-
typeof
|
|
2556
|
+
typeof y == "string" && sa(n, y);
|
|
2548
2557
|
break;
|
|
2549
2558
|
case "color":
|
|
2550
|
-
a.color =
|
|
2559
|
+
a.color = y;
|
|
2551
2560
|
break;
|
|
2552
2561
|
case "rotate":
|
|
2553
|
-
typeof
|
|
2562
|
+
typeof y == "string" ? n[L] = ra(y) : typeof y == "number" && (n[L] = y);
|
|
2554
2563
|
break;
|
|
2555
2564
|
case "ariaHidden":
|
|
2556
2565
|
case "aria-hidden":
|
|
2557
|
-
|
|
2566
|
+
y !== !0 && y !== "true" && delete o["aria-hidden"];
|
|
2558
2567
|
break;
|
|
2559
2568
|
default: {
|
|
2560
|
-
const
|
|
2561
|
-
|
|
2569
|
+
const h = et[L];
|
|
2570
|
+
h ? (y === !0 || y === "true" || y === 1) && (n[h] = !0) : wn[L] === void 0 && (o[L] = y);
|
|
2562
2571
|
}
|
|
2563
2572
|
}
|
|
2564
2573
|
}
|
|
2565
|
-
const i =
|
|
2574
|
+
const i = ia(e, n), c = i.attributes;
|
|
2566
2575
|
if (n.inline && (a.verticalAlign = "-0.125em"), s === "svg") {
|
|
2567
2576
|
o.style = {
|
|
2568
2577
|
...a,
|
|
2569
2578
|
...l
|
|
2570
2579
|
}, Object.assign(o, c);
|
|
2571
|
-
let
|
|
2572
|
-
return typeof
|
|
2580
|
+
let L = 0, y = t.id;
|
|
2581
|
+
return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = fa(i.body, y ? () => y + "ID" + L++ : "iconifyVue"), tt("svg", o);
|
|
2573
2582
|
}
|
|
2574
|
-
const { body:
|
|
2583
|
+
const { body: _, width: d, height: u } = e, m = s === "mask" || (s === "bg" ? !1 : _.indexOf("currentColor") !== -1), E = _a(_, {
|
|
2575
2584
|
...c,
|
|
2576
2585
|
width: d + "",
|
|
2577
2586
|
height: u + ""
|
|
2578
2587
|
});
|
|
2579
2588
|
return o.style = {
|
|
2580
2589
|
...a,
|
|
2581
|
-
"--svg":
|
|
2590
|
+
"--svg": pa(E),
|
|
2582
2591
|
width: bn(c.width),
|
|
2583
2592
|
height: bn(c.height),
|
|
2584
|
-
...
|
|
2585
|
-
...
|
|
2593
|
+
...ha,
|
|
2594
|
+
...m ? Nt : Po,
|
|
2586
2595
|
...l
|
|
2587
|
-
},
|
|
2588
|
-
},
|
|
2589
|
-
function
|
|
2590
|
-
|
|
2596
|
+
}, tt("span", o);
|
|
2597
|
+
}, $o = /* @__PURE__ */ Object.create(null);
|
|
2598
|
+
function Ae(e, t) {
|
|
2599
|
+
$o[e] = t;
|
|
2591
2600
|
}
|
|
2592
|
-
const ut =
|
|
2601
|
+
const ut = Z({
|
|
2593
2602
|
inheritAttrs: !1,
|
|
2594
2603
|
render() {
|
|
2595
|
-
const e = this.$attrs, t = e.icon, n = typeof t == "string" ?
|
|
2596
|
-
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2604
|
+
const e = this.$attrs, t = e.icon, n = typeof t == "string" ? $o[t] : typeof t == "object" ? t : null;
|
|
2605
|
+
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : va({
|
|
2597
2606
|
...Vt,
|
|
2598
2607
|
...n
|
|
2599
2608
|
}, e);
|
|
2600
2609
|
}
|
|
2601
2610
|
});
|
|
2602
|
-
var
|
|
2611
|
+
var ya = Object.defineProperty, wa = Object.defineProperties, Ea = Object.getOwnPropertyDescriptors, On = Object.getOwnPropertySymbols, La = Object.prototype.hasOwnProperty, ba = Object.prototype.propertyIsEnumerable, In = (e, t, n) => t in e ? ya(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Tn = (e, t) => {
|
|
2603
2612
|
for (var n in t || (t = {}))
|
|
2604
|
-
|
|
2613
|
+
La.call(t, n) && In(e, n, t[n]);
|
|
2605
2614
|
if (On)
|
|
2606
2615
|
for (var n of On(t))
|
|
2607
|
-
|
|
2616
|
+
ba.call(t, n) && In(e, n, t[n]);
|
|
2608
2617
|
return e;
|
|
2609
|
-
},
|
|
2618
|
+
}, Oa = (e, t) => wa(e, Ea(t)), Ia = (e, t, n) => new Promise((o, s) => {
|
|
2610
2619
|
var a = (i) => {
|
|
2611
2620
|
try {
|
|
2612
2621
|
l(n.next(i));
|
|
@@ -2622,7 +2631,7 @@ var va = Object.defineProperty, ya = Object.defineProperties, Ea = Object.getOwn
|
|
|
2622
2631
|
}, l = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, r);
|
|
2623
2632
|
l((n = n.apply(e, t)).next());
|
|
2624
2633
|
});
|
|
2625
|
-
const
|
|
2634
|
+
const Ta = {
|
|
2626
2635
|
name: "VirtualList",
|
|
2627
2636
|
props: {
|
|
2628
2637
|
listData: {
|
|
@@ -2640,25 +2649,25 @@ const Ia = {
|
|
|
2640
2649
|
},
|
|
2641
2650
|
setup(e) {
|
|
2642
2651
|
const t = {
|
|
2643
|
-
screenHeight:
|
|
2652
|
+
screenHeight: F(() => parseInt(e.devicePanelHeight.replace("px", ""))),
|
|
2644
2653
|
startOffset: M(0),
|
|
2645
2654
|
start: M(0),
|
|
2646
2655
|
end: M(0),
|
|
2647
2656
|
activeResetScrollOffset() {
|
|
2648
2657
|
}
|
|
2649
2658
|
}, n = M(), o = {
|
|
2650
|
-
listHeight:
|
|
2651
|
-
visibleCount:
|
|
2652
|
-
getTransform:
|
|
2653
|
-
visibleData:
|
|
2659
|
+
listHeight: F(() => e.listData.length * e.itemSize),
|
|
2660
|
+
visibleCount: F(() => Math.ceil(t.screenHeight.value / e.itemSize)),
|
|
2661
|
+
getTransform: F(() => `translate3d(0,${t.startOffset.value}px,0)`),
|
|
2662
|
+
visibleData: F(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
|
|
2654
2663
|
};
|
|
2655
|
-
return Tn(
|
|
2664
|
+
return Tn(Oa(Tn({}, o), {
|
|
2656
2665
|
virList: n
|
|
2657
2666
|
}), t);
|
|
2658
2667
|
},
|
|
2659
2668
|
mounted() {
|
|
2660
2669
|
setTimeout(() => {
|
|
2661
|
-
|
|
2670
|
+
Le(() => this.listData.length, () => Ia(this, null, function* () {
|
|
2662
2671
|
yield this.$nextTick(), this.init();
|
|
2663
2672
|
}), { immediate: !0 });
|
|
2664
2673
|
}, 100);
|
|
@@ -2682,41 +2691,41 @@ const Ia = {
|
|
|
2682
2691
|
}
|
|
2683
2692
|
}
|
|
2684
2693
|
};
|
|
2685
|
-
function
|
|
2686
|
-
return
|
|
2694
|
+
function Na(e, t, n, o, s, a) {
|
|
2695
|
+
return C(), P("div", {
|
|
2687
2696
|
ref: "virList",
|
|
2688
2697
|
class: "infinite-list-container",
|
|
2689
2698
|
onScroll: t[0] || (t[0] = () => a.scrollEvent())
|
|
2690
2699
|
}, [
|
|
2691
|
-
|
|
2700
|
+
O("div", {
|
|
2692
2701
|
class: "infinite-list-phantom",
|
|
2693
|
-
style:
|
|
2702
|
+
style: pe({ height: e.listHeight + "px" })
|
|
2694
2703
|
}, null, 4),
|
|
2695
|
-
|
|
2704
|
+
O("div", {
|
|
2696
2705
|
class: "infinite-list",
|
|
2697
|
-
style:
|
|
2706
|
+
style: pe({ transform: e.getTransform })
|
|
2698
2707
|
}, [
|
|
2699
|
-
(
|
|
2708
|
+
(C(!0), P(de, null, Ee(e.visibleData, (r) => (C(), P("div", {
|
|
2700
2709
|
ref_for: !0,
|
|
2701
2710
|
ref: "items",
|
|
2702
2711
|
class: "infinite-list-item",
|
|
2703
2712
|
key: r.id,
|
|
2704
|
-
style:
|
|
2713
|
+
style: pe({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
|
|
2705
2714
|
}, [
|
|
2706
|
-
|
|
2715
|
+
J(e.$slots, "default", { data: r }, void 0, !0)
|
|
2707
2716
|
], 4))), 128))
|
|
2708
2717
|
], 4)
|
|
2709
2718
|
], 544);
|
|
2710
2719
|
}
|
|
2711
|
-
const
|
|
2712
|
-
var
|
|
2720
|
+
const Sa = /* @__PURE__ */ oe(Ta, [["render", Na], ["__scopeId", "data-v-f3099cfa"]]);
|
|
2721
|
+
var Ca = Object.defineProperty, Da = Object.defineProperties, Aa = Object.getOwnPropertyDescriptors, Nn = Object.getOwnPropertySymbols, Pa = Object.prototype.hasOwnProperty, $a = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? Ca(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ma = (e, t) => {
|
|
2713
2722
|
for (var n in t || (t = {}))
|
|
2714
|
-
|
|
2723
|
+
Pa.call(t, n) && Sn(e, n, t[n]);
|
|
2715
2724
|
if (Nn)
|
|
2716
2725
|
for (var n of Nn(t))
|
|
2717
|
-
|
|
2726
|
+
$a.call(t, n) && Sn(e, n, t[n]);
|
|
2718
2727
|
return e;
|
|
2719
|
-
},
|
|
2728
|
+
}, ka = (e, t) => Da(e, Aa(t)), Ra = (e, t, n) => new Promise((o, s) => {
|
|
2720
2729
|
var a = (i) => {
|
|
2721
2730
|
try {
|
|
2722
2731
|
l(n.next(i));
|
|
@@ -2732,211 +2741,237 @@ var Sa = Object.defineProperty, Ca = Object.defineProperties, Da = Object.getOwn
|
|
|
2732
2741
|
}, l = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, r);
|
|
2733
2742
|
l((n = n.apply(e, t)).next());
|
|
2734
2743
|
});
|
|
2735
|
-
const
|
|
2744
|
+
const xa = Z({
|
|
2736
2745
|
components: {
|
|
2737
|
-
VirtualList:
|
|
2738
|
-
CountShow:
|
|
2746
|
+
VirtualList: Sa,
|
|
2747
|
+
CountShow: No,
|
|
2739
2748
|
Icon: ut
|
|
2740
2749
|
},
|
|
2741
2750
|
name: "group-show",
|
|
2742
2751
|
props: {
|
|
2743
2752
|
deviceGroup: Object,
|
|
2753
|
+
deviceGroups: Object,
|
|
2744
2754
|
controlParams: Object,
|
|
2745
2755
|
uiParams: Object
|
|
2746
2756
|
},
|
|
2747
2757
|
setup(e, t) {
|
|
2748
|
-
const n =
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2758
|
+
const n = Xr(), o = Jr(), s = M(), a = ke("theme"), r = F(() => {
|
|
2759
|
+
if (e.controlParams.searchStr) {
|
|
2760
|
+
const p = e.deviceGroups || [e.deviceGroup];
|
|
2761
|
+
if (p == null ? void 0 : p.find((N) => N.name.includes(e.controlParams.searchStr)))
|
|
2762
|
+
return !0;
|
|
2763
|
+
}
|
|
2764
|
+
return !1;
|
|
2765
|
+
}), l = {
|
|
2766
|
+
filterDevice(p) {
|
|
2767
|
+
var T;
|
|
2768
|
+
let N = !0;
|
|
2769
|
+
N = st(() => {
|
|
2770
|
+
var G, K, ye, I;
|
|
2771
|
+
return (G = e.controlParams) != null && G.searchStr ? r.value || p.name.includes((K = e.controlParams) == null ? void 0 : K.searchStr) || p.id.includes((ye = e.controlParams) == null ? void 0 : ye.searchStr) || typeof p.user == "string" && p.user.includes((I = e.controlParams) == null ? void 0 : I.searchStr) : N;
|
|
2755
2772
|
});
|
|
2756
|
-
let
|
|
2757
|
-
return (
|
|
2773
|
+
let R = !0;
|
|
2774
|
+
return (T = e.controlParams) != null && T.onlyShowOnline && (R = p.online), N && R;
|
|
2758
2775
|
},
|
|
2759
|
-
deviceText(
|
|
2760
|
-
const
|
|
2761
|
-
return
|
|
2776
|
+
deviceText(p) {
|
|
2777
|
+
const T = `${o.value ? "" : `[${p.id}] `}`;
|
|
2778
|
+
return p.user ? n.value == wo.PUFirst ? p.name.length > 0 ? `${p.name} ${T}[${p.user}]` : ` ${T}[${p.user}]` : p.name.length > 0 ? `${p.user} ${T}[${p.name}]` : `${p.user} ${T}[]` : p.name.length > 0 ? `${p.name} ${T}` : ` ${T}`;
|
|
2762
2779
|
},
|
|
2763
|
-
groupText(
|
|
2764
|
-
if (
|
|
2765
|
-
return
|
|
2780
|
+
groupText(p) {
|
|
2781
|
+
if (p)
|
|
2782
|
+
return p.name.length > 0 ? p.name : p.id;
|
|
2766
2783
|
}
|
|
2767
|
-
},
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2784
|
+
}, i = ke(
|
|
2785
|
+
"IsNotShowGroupHead"
|
|
2786
|
+
), c = ke("getDevicePanelEle"), _ = ke("IsOnlyShowGroup"), d = {
|
|
2787
|
+
filteredDevices: F(() => {
|
|
2788
|
+
var p;
|
|
2789
|
+
const T = (p = e.deviceGroup) == null ? void 0 : p.devices, N = T && T.filter((G) => l.filterDevice(G)) || [];
|
|
2790
|
+
return N.filter((G) => G.online).concat(N.filter((G) => !G.online));
|
|
2772
2791
|
})
|
|
2773
|
-
},
|
|
2774
|
-
function
|
|
2792
|
+
}, u = M(), m = M("0px");
|
|
2793
|
+
function E(p, T) {
|
|
2775
2794
|
return st(() => {
|
|
2776
|
-
if (
|
|
2795
|
+
if (T.length == 0)
|
|
2777
2796
|
return !0;
|
|
2778
|
-
let
|
|
2779
|
-
if ((
|
|
2780
|
-
(
|
|
2781
|
-
)) != null), !
|
|
2782
|
-
for (let
|
|
2783
|
-
if (
|
|
2797
|
+
let N = !1;
|
|
2798
|
+
if ((p == null ? void 0 : p.name.indexOf(T)) >= 0 && (N = !0), N || (N = (p == null ? void 0 : p.devices.find(
|
|
2799
|
+
(R) => R.name.includes(T) || R.id.includes(T) || R.user && R.user.includes(T)
|
|
2800
|
+
)) != null), !N) {
|
|
2801
|
+
for (let R = 0; R < p.items.length; R++)
|
|
2802
|
+
if (E(p.items[R], T))
|
|
2784
2803
|
return !0;
|
|
2785
2804
|
}
|
|
2786
|
-
return
|
|
2805
|
+
return r.value ? !0 : N;
|
|
2787
2806
|
});
|
|
2788
2807
|
}
|
|
2789
|
-
const
|
|
2808
|
+
const L = F(() => {
|
|
2790
2809
|
if (e.controlParams) {
|
|
2791
|
-
const
|
|
2810
|
+
const p = e.controlParams.searchStr;
|
|
2792
2811
|
if (e.deviceGroup)
|
|
2793
|
-
return
|
|
2812
|
+
return E(e.deviceGroup, p);
|
|
2794
2813
|
}
|
|
2795
2814
|
return !1;
|
|
2796
|
-
}),
|
|
2797
|
-
function
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2815
|
+
}), y = M(!1), h = M(!1);
|
|
2816
|
+
function w() {
|
|
2817
|
+
var p, T;
|
|
2818
|
+
const N = c().clientHeight - ((p = u.value) != null && p.offsetTop ? ((T = u.value) == null ? void 0 : T.offsetTop) - c().scrollTop : 0), R = d.filteredDevices.value.length * 40;
|
|
2819
|
+
m.value = d.filteredDevices.value.length > 10 ? `${Math.max(Math.min(R, N), 400)}px` : `${d.filteredDevices.value.length * 40}px`;
|
|
2820
|
+
}
|
|
2821
|
+
Le(() => d.filteredDevices.value.length, () => {
|
|
2822
|
+
w();
|
|
2823
|
+
});
|
|
2824
|
+
function A() {
|
|
2825
|
+
return Ra(this, null, function* () {
|
|
2826
|
+
h.value || (h.value = !0, y.value ? (m.value = "0px;", d.filteredDevices.value.length && !_.value && (yield new Promise((p) => setTimeout(p, 300)))) : m.value = "0px", y.value = !y.value, h.value = !1, y.value && ss(() => {
|
|
2827
|
+
w();
|
|
2803
2828
|
}));
|
|
2804
2829
|
});
|
|
2805
2830
|
}
|
|
2806
|
-
function
|
|
2807
|
-
var
|
|
2808
|
-
(
|
|
2831
|
+
function D() {
|
|
2832
|
+
var p;
|
|
2833
|
+
(p = e.uiParams) != null && p.dbclickExpandsDisable || A();
|
|
2809
2834
|
}
|
|
2810
|
-
return Ma(
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2835
|
+
return ka(Ma({
|
|
2836
|
+
isGroupInSearchStrSide: r,
|
|
2837
|
+
getGroups: (p) => {
|
|
2838
|
+
const T = e.deviceGroups || [e.deviceGroup], N = [];
|
|
2839
|
+
return N.push(...T, p), N;
|
|
2840
|
+
},
|
|
2841
|
+
isNotShowGroupHead: i,
|
|
2842
|
+
onShowGroup: _,
|
|
2843
|
+
onShowClick: A,
|
|
2844
|
+
refDeviceShowDiv: u,
|
|
2845
|
+
OnHeadDbClick: D,
|
|
2846
|
+
innerUtils: l
|
|
2847
|
+
}, d), {
|
|
2816
2848
|
devicePanelHeight: m,
|
|
2817
|
-
showGroup:
|
|
2818
|
-
bShow:
|
|
2849
|
+
showGroup: L,
|
|
2850
|
+
bShow: y,
|
|
2819
2851
|
theme: a,
|
|
2820
2852
|
countRef: s
|
|
2821
2853
|
});
|
|
2822
2854
|
}
|
|
2823
2855
|
});
|
|
2824
|
-
const
|
|
2856
|
+
const Fa = {
|
|
2825
2857
|
key: 0,
|
|
2826
2858
|
class: "head-op"
|
|
2827
|
-
},
|
|
2859
|
+
}, Va = {
|
|
2828
2860
|
key: 1,
|
|
2829
2861
|
style: { display: "inline-block", width: "25px" }
|
|
2830
|
-
},
|
|
2831
|
-
key:
|
|
2862
|
+
}, Ua = {
|
|
2863
|
+
key: 1,
|
|
2832
2864
|
class: "group-head-count"
|
|
2833
|
-
},
|
|
2865
|
+
}, Ga = ["title"], za = { class: "group-slot" }, Ha = {
|
|
2834
2866
|
key: 0,
|
|
2835
2867
|
style: { "margin-left": "26px" }
|
|
2836
|
-
},
|
|
2837
|
-
function
|
|
2868
|
+
}, ja = ["title"], Wa = { class: "device-slot" };
|
|
2869
|
+
function Ba(e, t, n, o, s, a) {
|
|
2838
2870
|
var r, l, i;
|
|
2839
|
-
const c =
|
|
2840
|
-
return e.showGroup ?
|
|
2871
|
+
const c = me("Icon"), _ = me("CountShow"), d = me("group-show"), u = me("VirtualList");
|
|
2872
|
+
return e.showGroup ? zn((C(), P("div", {
|
|
2841
2873
|
key: 0,
|
|
2842
|
-
class:
|
|
2874
|
+
class: xe("group " + e.theme)
|
|
2843
2875
|
}, [
|
|
2844
|
-
|
|
2876
|
+
Q(_, {
|
|
2845
2877
|
countInfo: e.deviceGroup,
|
|
2846
2878
|
controlParams: e.controlParams,
|
|
2847
2879
|
ref: "countRef"
|
|
2848
2880
|
}, {
|
|
2849
|
-
default: te(({ online:
|
|
2850
|
-
var
|
|
2881
|
+
default: te(({ online: m, total: E }) => {
|
|
2882
|
+
var L, y;
|
|
2851
2883
|
return [
|
|
2852
|
-
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (
|
|
2853
|
-
|
|
2884
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 && !(e.onShowGroup && e.deviceGroup.items.length == 0) ? (C(), P("span", Fa, [
|
|
2885
|
+
Q(c, {
|
|
2854
2886
|
icon: e.bShow ? "minus" : "plus",
|
|
2855
2887
|
width: "20",
|
|
2856
2888
|
onClick: e.onShowClick,
|
|
2857
2889
|
class: "handle-ls-svg"
|
|
2858
2890
|
}, null, 8, ["icon", "onClick"])
|
|
2859
|
-
])) : (
|
|
2860
|
-
|
|
2891
|
+
])) : (C(), P("span", Va)),
|
|
2892
|
+
O("span", {
|
|
2861
2893
|
class: "group-head-db-click",
|
|
2862
|
-
onDblclick: t[0] || (t[0] = (...
|
|
2894
|
+
onDblclick: t[0] || (t[0] = (...h) => e.OnHeadDbClick && e.OnHeadDbClick(...h))
|
|
2863
2895
|
}, [
|
|
2864
|
-
|
|
2896
|
+
e.isNotShowGroupHead ? ue("", !0) : (C(), Ne(c, {
|
|
2897
|
+
key: 0,
|
|
2865
2898
|
icon: e.bShow ? "group" : "group-closed",
|
|
2866
2899
|
width: "24",
|
|
2867
2900
|
class: "group-avatar"
|
|
2868
|
-
}, null, 8, ["icon"]),
|
|
2869
|
-
e.bShow
|
|
2870
|
-
|
|
2871
|
-
|
|
2901
|
+
}, null, 8, ["icon"])),
|
|
2902
|
+
!e.bShow && !e.isNotShowGroupHead ? (C(), P("span", Ua, j((L = e.deviceGroup) == null ? void 0 : L.items.length), 1)) : ue("", !0),
|
|
2903
|
+
J(e.$slots, "groupHead", { group: e.deviceGroup }, void 0, !0),
|
|
2904
|
+
O("span", {
|
|
2872
2905
|
class: "group-name",
|
|
2873
|
-
title: (
|
|
2874
|
-
},
|
|
2906
|
+
title: (y = e.deviceGroup) == null ? void 0 : y.name
|
|
2907
|
+
}, j(e.innerUtils.groupText(e.deviceGroup)), 9, Ga)
|
|
2875
2908
|
], 32),
|
|
2876
|
-
|
|
2877
|
-
|
|
2909
|
+
O("div", za, [
|
|
2910
|
+
J(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
|
|
2878
2911
|
])
|
|
2879
2912
|
];
|
|
2880
2913
|
}),
|
|
2881
2914
|
_: 3
|
|
2882
2915
|
}, 8, ["countInfo", "controlParams"]),
|
|
2883
|
-
e.bShow ? (
|
|
2884
|
-
(
|
|
2885
|
-
key:
|
|
2886
|
-
deviceGroup:
|
|
2916
|
+
e.bShow ? (C(), P("div", Ha, [
|
|
2917
|
+
(C(!0), P(de, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (m, E) => (C(), Ne(d, {
|
|
2918
|
+
key: m.id,
|
|
2919
|
+
deviceGroup: m,
|
|
2920
|
+
deviceGroups: e.getGroups(m),
|
|
2887
2921
|
"ui-params": e.uiParams,
|
|
2888
2922
|
controlParams: e.controlParams
|
|
2889
2923
|
}, {
|
|
2890
|
-
groupHead: te(({ group:
|
|
2891
|
-
|
|
2924
|
+
groupHead: te(({ group: L }) => [
|
|
2925
|
+
J(e.$slots, "groupHead", { group: L }, void 0, !0)
|
|
2892
2926
|
]),
|
|
2893
|
-
group: te(({ group:
|
|
2894
|
-
|
|
2927
|
+
group: te(({ group: L }) => [
|
|
2928
|
+
J(e.$slots, "group", { group: L }, void 0, !0)
|
|
2895
2929
|
]),
|
|
2896
|
-
deviceHead: te(({ device:
|
|
2897
|
-
|
|
2898
|
-
device:
|
|
2899
|
-
group:
|
|
2930
|
+
deviceHead: te(({ device: L, group: y }) => [
|
|
2931
|
+
J(e.$slots, "deviceHead", {
|
|
2932
|
+
device: L,
|
|
2933
|
+
group: y
|
|
2900
2934
|
}, void 0, !0)
|
|
2901
2935
|
]),
|
|
2902
|
-
device: te(({ device:
|
|
2903
|
-
|
|
2904
|
-
device:
|
|
2905
|
-
group:
|
|
2936
|
+
device: te(({ device: L, group: y }) => [
|
|
2937
|
+
J(e.$slots, "device", {
|
|
2938
|
+
device: L,
|
|
2939
|
+
group: y
|
|
2906
2940
|
}, void 0, !0)
|
|
2907
2941
|
]),
|
|
2908
2942
|
_: 2
|
|
2909
|
-
}, 1032, ["deviceGroup", "ui-params", "controlParams"]))), 128)),
|
|
2910
|
-
|
|
2943
|
+
}, 1032, ["deviceGroup", "deviceGroups", "ui-params", "controlParams"]))), 128)),
|
|
2944
|
+
e.onShowGroup ? ue("", !0) : (C(), P("div", {
|
|
2945
|
+
key: 0,
|
|
2911
2946
|
class: "device-show-div",
|
|
2912
|
-
style:
|
|
2947
|
+
style: pe(`height: ${e.devicePanelHeight}`),
|
|
2913
2948
|
ref: "refDeviceShowDiv"
|
|
2914
2949
|
}, [
|
|
2915
|
-
|
|
2950
|
+
Q(u, {
|
|
2916
2951
|
"list-data": e.filteredDevices,
|
|
2917
2952
|
"item-size": 40,
|
|
2918
2953
|
"device-panel-height": e.devicePanelHeight
|
|
2919
2954
|
}, {
|
|
2920
|
-
default: te(({ data:
|
|
2921
|
-
|
|
2922
|
-
class:
|
|
2955
|
+
default: te(({ data: m }) => [
|
|
2956
|
+
O("div", {
|
|
2957
|
+
class: xe(m.online && "online-device")
|
|
2923
2958
|
}, [
|
|
2924
|
-
|
|
2959
|
+
Q(c, {
|
|
2925
2960
|
icon: "user",
|
|
2926
2961
|
width: "16",
|
|
2927
2962
|
class: "device-avatar"
|
|
2928
2963
|
}),
|
|
2929
|
-
|
|
2930
|
-
device:
|
|
2964
|
+
J(e.$slots, "deviceHead", {
|
|
2965
|
+
device: m,
|
|
2931
2966
|
group: e.deviceGroup
|
|
2932
2967
|
}, void 0, !0),
|
|
2933
|
-
|
|
2934
|
-
title: e.innerUtils.deviceText(
|
|
2968
|
+
O("span", {
|
|
2969
|
+
title: e.innerUtils.deviceText(m),
|
|
2935
2970
|
class: "device-name"
|
|
2936
|
-
},
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
device:
|
|
2971
|
+
}, j(e.innerUtils.deviceText(m)), 9, ja),
|
|
2972
|
+
O("div", Wa, [
|
|
2973
|
+
J(e.$slots, "device", {
|
|
2974
|
+
device: m,
|
|
2940
2975
|
group: e.deviceGroup
|
|
2941
2976
|
}, void 0, !0)
|
|
2942
2977
|
])
|
|
@@ -2944,47 +2979,51 @@ function Wa(e, t, n, o, s, a) {
|
|
|
2944
2979
|
]),
|
|
2945
2980
|
_: 3
|
|
2946
2981
|
}, 8, ["list-data", "device-panel-height"])
|
|
2947
|
-
], 4)
|
|
2948
|
-
])) :
|
|
2982
|
+
], 4))
|
|
2983
|
+
])) : ue("", !0)
|
|
2949
2984
|
], 2)), [
|
|
2950
|
-
[
|
|
2951
|
-
]) :
|
|
2985
|
+
[Hn, !((l = e.controlParams) != null && l.onlyShowOnline) || ((i = e.countRef) == null ? void 0 : i.onlineCount)]
|
|
2986
|
+
]) : ue("", !0);
|
|
2952
2987
|
}
|
|
2953
|
-
const
|
|
2988
|
+
const Ka = /* @__PURE__ */ oe(xa, [["render", Ba], ["__scopeId", "data-v-233fdf12"]]), Ya = {
|
|
2954
2989
|
width: 1024,
|
|
2955
2990
|
height: 1024,
|
|
2956
2991
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
2957
|
-
},
|
|
2992
|
+
}, Xa = {
|
|
2958
2993
|
width: 1024,
|
|
2959
2994
|
height: 1024,
|
|
2960
2995
|
body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
|
|
2961
|
-
},
|
|
2996
|
+
}, Ja = {
|
|
2962
2997
|
width: 1024,
|
|
2963
2998
|
height: 1024,
|
|
2964
2999
|
body: '<path fill="currentColor" d="M128 192v640h768V320H485.76L357.504 192H128zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32z"/>'
|
|
2965
|
-
},
|
|
3000
|
+
}, Qa = {
|
|
2966
3001
|
width: 1024,
|
|
2967
3002
|
height: 1024,
|
|
2968
3003
|
body: '<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'
|
|
2969
|
-
},
|
|
3004
|
+
}, qa = {
|
|
2970
3005
|
width: 1024,
|
|
2971
3006
|
height: 1024,
|
|
2972
3007
|
body: '<path fill="currentColor" d="M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"/>'
|
|
2973
|
-
},
|
|
3008
|
+
}, Za = {
|
|
2974
3009
|
width: 1024,
|
|
2975
3010
|
height: 1024,
|
|
2976
3011
|
body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
|
|
2977
3012
|
};
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
3013
|
+
let Cn = 1;
|
|
3014
|
+
function el() {
|
|
3015
|
+
return Cn++, `device-online-ele-${Cn}`;
|
|
3016
|
+
}
|
|
3017
|
+
Ae("right", Ya);
|
|
3018
|
+
Ae("group", Xa);
|
|
3019
|
+
Ae("group-closed", Ja);
|
|
3020
|
+
Ae("user", Qa);
|
|
3021
|
+
Ae("plus", qa);
|
|
3022
|
+
Ae("minus", Za);
|
|
3023
|
+
const tl = Z({
|
|
2985
3024
|
components: {
|
|
2986
|
-
CountShow:
|
|
2987
|
-
GroupShow:
|
|
3025
|
+
CountShow: No,
|
|
3026
|
+
GroupShow: Ka
|
|
2988
3027
|
},
|
|
2989
3028
|
props: {
|
|
2990
3029
|
deviceGroup: Object,
|
|
@@ -2993,7 +3032,9 @@ const Za = q({
|
|
|
2993
3032
|
default: ""
|
|
2994
3033
|
},
|
|
2995
3034
|
locale: String,
|
|
2996
|
-
uiControl: Object
|
|
3035
|
+
uiControl: Object,
|
|
3036
|
+
isOnlyShowGroup: Boolean,
|
|
3037
|
+
notShowGroupHead: Boolean
|
|
2997
3038
|
},
|
|
2998
3039
|
methods: {
|
|
2999
3040
|
onCheckBoxChange(e) {
|
|
@@ -3010,83 +3051,86 @@ const Za = q({
|
|
|
3010
3051
|
},
|
|
3011
3052
|
provide() {
|
|
3012
3053
|
return {
|
|
3054
|
+
IsNotShowGroupHead: F(() => this.notShowGroupHead),
|
|
3055
|
+
IsOnlyShowGroup: F(() => this.isOnlyShowGroup),
|
|
3013
3056
|
getDevicePanelEle: () => this.refDevicePanel
|
|
3014
3057
|
};
|
|
3015
3058
|
},
|
|
3016
3059
|
setup(e) {
|
|
3017
|
-
const t =
|
|
3018
|
-
|
|
3060
|
+
const t = Kr(), n = F(() => e.theme ? e.theme == "drak" ? "dark" : e.theme : t.value == Eo.BACKGROUND_WHITE ? "" : "dark");
|
|
3061
|
+
rs("theme", n);
|
|
3019
3062
|
const o = M({
|
|
3020
3063
|
onlyShowOnline: !1,
|
|
3021
3064
|
searchStr: ""
|
|
3022
3065
|
});
|
|
3023
|
-
|
|
3066
|
+
Le(
|
|
3024
3067
|
() => o.value.onlyShowOnline,
|
|
3025
3068
|
() => {
|
|
3026
|
-
var
|
|
3027
|
-
s.value && ((
|
|
3069
|
+
var i;
|
|
3070
|
+
s.value && ((i = s.value) == null ? void 0 : i.checked) != o.value.onlyShowOnline && (s.value.checked = o.value.onlyShowOnline);
|
|
3028
3071
|
}
|
|
3029
3072
|
);
|
|
3030
|
-
const s = M(), a = M();
|
|
3073
|
+
const s = M(), a = M(), r = M();
|
|
3031
3074
|
return {
|
|
3032
|
-
|
|
3075
|
+
onlineOnlyId: el(),
|
|
3076
|
+
refDevicePanel: r,
|
|
3033
3077
|
theme: n,
|
|
3034
|
-
i18nT:
|
|
3078
|
+
i18nT: Ce,
|
|
3035
3079
|
inputShowOnlineOnly: s,
|
|
3036
3080
|
inputSearchRef: a,
|
|
3037
3081
|
controlParams: o
|
|
3038
3082
|
};
|
|
3039
3083
|
}
|
|
3040
3084
|
});
|
|
3041
|
-
const
|
|
3085
|
+
const nl = { class: "search-panel" }, ol = ["id"], sl = ["for"], rl = {
|
|
3042
3086
|
class: "device-panel",
|
|
3043
3087
|
ref: "refDevicePanel"
|
|
3044
3088
|
};
|
|
3045
|
-
function
|
|
3089
|
+
function al(e, t, n, o, s, a) {
|
|
3046
3090
|
var r;
|
|
3047
|
-
const l =
|
|
3048
|
-
return
|
|
3049
|
-
class:
|
|
3091
|
+
const l = me("CountShow"), i = me("group-show");
|
|
3092
|
+
return C(), P("div", {
|
|
3093
|
+
class: xe(`device-group-list ${e.theme}`)
|
|
3050
3094
|
}, [
|
|
3051
|
-
|
|
3052
|
-
|
|
3095
|
+
O("div", nl, [
|
|
3096
|
+
Q(l, {
|
|
3053
3097
|
countInfo: e.deviceGroup,
|
|
3054
3098
|
"control-params": e.controlParams
|
|
3055
3099
|
}, {
|
|
3056
3100
|
default: te(() => [
|
|
3057
|
-
|
|
3101
|
+
O("input", {
|
|
3058
3102
|
type: "checkbox",
|
|
3059
|
-
id:
|
|
3103
|
+
id: e.onlineOnlyId,
|
|
3060
3104
|
value: "onlineShow",
|
|
3061
3105
|
onChange: t[0] || (t[0] = () => e.onCheckBoxChange()),
|
|
3062
3106
|
ref: "inputShowOnlineOnly"
|
|
3063
|
-
}, null,
|
|
3064
|
-
|
|
3107
|
+
}, null, 40, ol),
|
|
3108
|
+
O("label", { for: e.onlineOnlyId }, j(e.i18nT("zhi-xian-shi-zai-xian-she-bei")), 9, sl)
|
|
3065
3109
|
]),
|
|
3066
3110
|
_: 1
|
|
3067
3111
|
}, 8, ["countInfo", "control-params"])
|
|
3068
3112
|
]),
|
|
3069
|
-
|
|
3070
|
-
(
|
|
3113
|
+
O("div", rl, [
|
|
3114
|
+
(C(!0), P(de, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (c, _) => (C(), Ne(i, {
|
|
3071
3115
|
controlParams: e.controlParams,
|
|
3072
3116
|
key: c.id,
|
|
3073
3117
|
"ui-params": e.uiControl,
|
|
3074
3118
|
deviceGroup: c
|
|
3075
3119
|
}, {
|
|
3076
3120
|
groupHead: te(({ group: d }) => [
|
|
3077
|
-
|
|
3121
|
+
J(e.$slots, "groupHead", { group: d }, void 0, !0)
|
|
3078
3122
|
]),
|
|
3079
3123
|
group: te(({ group: d }) => [
|
|
3080
|
-
|
|
3124
|
+
J(e.$slots, "group", { group: d }, void 0, !0)
|
|
3081
3125
|
]),
|
|
3082
3126
|
deviceHead: te(({ device: d, group: u }) => [
|
|
3083
|
-
|
|
3127
|
+
J(e.$slots, "deviceHead", {
|
|
3084
3128
|
device: d,
|
|
3085
3129
|
group: u
|
|
3086
3130
|
}, void 0, !0)
|
|
3087
3131
|
]),
|
|
3088
3132
|
device: te(({ device: d, group: u }) => [
|
|
3089
|
-
|
|
3133
|
+
J(e.$slots, "device", {
|
|
3090
3134
|
device: d,
|
|
3091
3135
|
group: u
|
|
3092
3136
|
}, void 0, !0)
|
|
@@ -3096,31 +3140,31 @@ function ol(e, t, n, o, s, a) {
|
|
|
3096
3140
|
], 512)
|
|
3097
3141
|
], 2);
|
|
3098
3142
|
}
|
|
3099
|
-
const
|
|
3100
|
-
var
|
|
3143
|
+
const ll = /* @__PURE__ */ oe(tl, [["render", al], ["__scopeId", "data-v-797af418"]]);
|
|
3144
|
+
var il = Object.defineProperty, cl = Object.defineProperties, ul = Object.getOwnPropertyDescriptors, Dn = Object.getOwnPropertySymbols, dl = Object.prototype.hasOwnProperty, fl = Object.prototype.propertyIsEnumerable, An = (e, t, n) => t in e ? il(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Mo = (e, t) => {
|
|
3101
3145
|
for (var n in t || (t = {}))
|
|
3102
|
-
|
|
3103
|
-
if (
|
|
3104
|
-
for (var n of
|
|
3105
|
-
|
|
3146
|
+
dl.call(t, n) && An(e, n, t[n]);
|
|
3147
|
+
if (Dn)
|
|
3148
|
+
for (var n of Dn(t))
|
|
3149
|
+
fl.call(t, n) && An(e, n, t[n]);
|
|
3106
3150
|
return e;
|
|
3107
|
-
},
|
|
3108
|
-
const
|
|
3109
|
-
function
|
|
3151
|
+
}, _l = (e, t) => cl(e, ul(t));
|
|
3152
|
+
const je = 6, Pn = je * 2;
|
|
3153
|
+
function ml(e, t) {
|
|
3110
3154
|
return e.map(
|
|
3111
3155
|
({
|
|
3112
3156
|
leftTop: { col: n, row: o },
|
|
3113
3157
|
rightBottom: { col: s, row: a }
|
|
3114
|
-
}) => `<line x1="${n * t.col +
|
|
3158
|
+
}) => `<line x1="${n * t.col + je}" y1="${o * t.row + je}" x2="${s * t.col + je}" y2="${a * t.row + je}" stroke="black" stroke-width="5"/>`
|
|
3115
3159
|
).join(" ");
|
|
3116
3160
|
}
|
|
3117
|
-
function
|
|
3161
|
+
function pl(e, t, n) {
|
|
3118
3162
|
return n.findIndex((o) => e >= o.leftTop.row && e < o.rightBottom.row && t >= o.leftTop.col && t < o.rightBottom.col) >= 0;
|
|
3119
3163
|
}
|
|
3120
|
-
function
|
|
3164
|
+
function gl(e, t, n) {
|
|
3121
3165
|
n.forEach((o) => {
|
|
3122
|
-
const s =
|
|
3123
|
-
id:
|
|
3166
|
+
const s = _l(Mo({}, o.leftTop), {
|
|
3167
|
+
id: ko(o.leftTop),
|
|
3124
3168
|
layout: {
|
|
3125
3169
|
left: 100 / t.col * o.leftTop.col,
|
|
3126
3170
|
top: 100 / t.row * o.leftTop.row,
|
|
@@ -3133,11 +3177,11 @@ function _l(e, t, n) {
|
|
|
3133
3177
|
e.push(s);
|
|
3134
3178
|
});
|
|
3135
3179
|
}
|
|
3136
|
-
function
|
|
3180
|
+
function ko(e) {
|
|
3137
3181
|
return `${e.row}-${e.col}`;
|
|
3138
3182
|
}
|
|
3139
|
-
const
|
|
3140
|
-
function
|
|
3183
|
+
const $n = "ComponentsDefaultLayoutKeyAF84566", Mn = "ComponentsCustomLayoutsKeyAF84566";
|
|
3184
|
+
function hl(e) {
|
|
3141
3185
|
const t = [], n = [];
|
|
3142
3186
|
for (let o = 0; o < e.points.length / 2; o++)
|
|
3143
3187
|
n.push(e.points.slice(o * 2, o * 2 + 2));
|
|
@@ -3161,27 +3205,27 @@ function ml(e) {
|
|
|
3161
3205
|
}
|
|
3162
3206
|
return t;
|
|
3163
3207
|
}
|
|
3164
|
-
const
|
|
3208
|
+
const De = {
|
|
3165
3209
|
TransLayoutToFrams(e) {
|
|
3166
3210
|
const t = [];
|
|
3167
3211
|
e.area && t.push(e.area), e.areas && t.push(...e.areas);
|
|
3168
3212
|
const n = [];
|
|
3169
3213
|
for (let o = 0; o < e.row; o++)
|
|
3170
3214
|
for (let s = 0; s < e.col; s++) {
|
|
3171
|
-
if (
|
|
3215
|
+
if (pl(o, s, t))
|
|
3172
3216
|
continue;
|
|
3173
|
-
const a =
|
|
3217
|
+
const a = Mo({
|
|
3174
3218
|
layout: {
|
|
3175
3219
|
left: 100 / e.col * s,
|
|
3176
3220
|
top: 100 / e.row * o,
|
|
3177
3221
|
width: 100 / e.col,
|
|
3178
3222
|
height: 100 / e.row
|
|
3179
3223
|
},
|
|
3180
|
-
id:
|
|
3224
|
+
id: ko({ row: o, col: s })
|
|
3181
3225
|
}, { row: o, col: s, w: 1, h: 1 });
|
|
3182
3226
|
n.push(a);
|
|
3183
3227
|
}
|
|
3184
|
-
return
|
|
3228
|
+
return gl(n, e, t), n;
|
|
3185
3229
|
},
|
|
3186
3230
|
TransLayoutToSVG(e, t) {
|
|
3187
3231
|
const n = [];
|
|
@@ -3199,28 +3243,28 @@ const Se = {
|
|
|
3199
3243
|
});
|
|
3200
3244
|
n.forEach(
|
|
3201
3245
|
({
|
|
3202
|
-
leftTop: { row: c, col:
|
|
3246
|
+
leftTop: { row: c, col: _ },
|
|
3203
3247
|
rightBottom: { row: d, col: u }
|
|
3204
3248
|
}) => {
|
|
3205
|
-
for (let
|
|
3206
|
-
o[
|
|
3207
|
-
for (let
|
|
3208
|
-
s[
|
|
3249
|
+
for (let m = c + 1; m < d; m++)
|
|
3250
|
+
o[m].points.push(_, u);
|
|
3251
|
+
for (let m = _ + 1; m < u; m++)
|
|
3252
|
+
s[m].points.push(c, d);
|
|
3209
3253
|
}
|
|
3210
3254
|
);
|
|
3211
3255
|
const a = o.concat(...s), r = [];
|
|
3212
3256
|
a.forEach((c) => {
|
|
3213
|
-
c.points = c.points.sort(), r.push(...
|
|
3257
|
+
c.points = c.points.sort(), r.push(...hl(c));
|
|
3214
3258
|
});
|
|
3215
3259
|
const l = {
|
|
3216
3260
|
row: t.height / e.row,
|
|
3217
3261
|
col: t.width / e.col
|
|
3218
|
-
}, i =
|
|
3219
|
-
return `<svg viewBox='0 0 ${t.width +
|
|
3262
|
+
}, i = ml(r, l);
|
|
3263
|
+
return `<svg viewBox='0 0 ${t.width + Pn} ${t.height + Pn} ' width="100%" height="100%"> ${i} </svg>`;
|
|
3220
3264
|
},
|
|
3221
3265
|
StorageDefaultLayout: {
|
|
3222
3266
|
get() {
|
|
3223
|
-
const e = localStorage.getItem(
|
|
3267
|
+
const e = localStorage.getItem($n);
|
|
3224
3268
|
if (e != null)
|
|
3225
3269
|
try {
|
|
3226
3270
|
return JSON.parse(e);
|
|
@@ -3229,12 +3273,12 @@ const Se = {
|
|
|
3229
3273
|
}
|
|
3230
3274
|
},
|
|
3231
3275
|
set(e) {
|
|
3232
|
-
localStorage.setItem(
|
|
3276
|
+
localStorage.setItem($n, JSON.stringify(e));
|
|
3233
3277
|
}
|
|
3234
3278
|
},
|
|
3235
3279
|
CustomLayouts: {
|
|
3236
3280
|
get() {
|
|
3237
|
-
const e = localStorage.getItem(
|
|
3281
|
+
const e = localStorage.getItem(Mn);
|
|
3238
3282
|
if (e == null)
|
|
3239
3283
|
return [];
|
|
3240
3284
|
try {
|
|
@@ -3244,10 +3288,10 @@ const Se = {
|
|
|
3244
3288
|
}
|
|
3245
3289
|
},
|
|
3246
3290
|
set(e) {
|
|
3247
|
-
localStorage.setItem(
|
|
3291
|
+
localStorage.setItem(Mn, JSON.stringify(e));
|
|
3248
3292
|
}
|
|
3249
3293
|
}
|
|
3250
|
-
},
|
|
3294
|
+
}, vl = Z({
|
|
3251
3295
|
emits: {
|
|
3252
3296
|
onselect(e, t) {
|
|
3253
3297
|
return !0;
|
|
@@ -3262,16 +3306,16 @@ const Se = {
|
|
|
3262
3306
|
}
|
|
3263
3307
|
},
|
|
3264
3308
|
setup(e) {
|
|
3265
|
-
const t =
|
|
3309
|
+
const t = F(() => {
|
|
3266
3310
|
var o;
|
|
3267
3311
|
return e.layouts ? (o = e.layouts) == null ? void 0 : o.map((s) => ({
|
|
3268
|
-
svg:
|
|
3312
|
+
svg: De.TransLayoutToSVG(s, { width: 100, height: 100 }),
|
|
3269
3313
|
layout: s,
|
|
3270
3314
|
select: JSON.stringify(s) == JSON.stringify(e.defaultLayout)
|
|
3271
3315
|
})) : [];
|
|
3272
3316
|
});
|
|
3273
3317
|
return {
|
|
3274
|
-
layoutInfos:
|
|
3318
|
+
layoutInfos: be(t.value)
|
|
3275
3319
|
};
|
|
3276
3320
|
},
|
|
3277
3321
|
mounted() {
|
|
@@ -3306,33 +3350,33 @@ const Se = {
|
|
|
3306
3350
|
}
|
|
3307
3351
|
}
|
|
3308
3352
|
});
|
|
3309
|
-
const
|
|
3310
|
-
function
|
|
3311
|
-
return
|
|
3312
|
-
(
|
|
3313
|
-
class:
|
|
3353
|
+
const yl = ["onClick"], wl = { style: { position: "relative", display: "inline-block", margin: "10px" } }, El = ["innerHTML"], Ll = { style: { "vertical-align": "middle" } };
|
|
3354
|
+
function bl(e, t, n, o, s, a) {
|
|
3355
|
+
return C(), P("div", null, [
|
|
3356
|
+
(C(!0), P(de, null, Ee(e.layoutInfos, (r) => (C(), P("div", {
|
|
3357
|
+
class: xe(e.getClassLayout(r)),
|
|
3314
3358
|
onClick: (l) => e.selectClick(r)
|
|
3315
3359
|
}, [
|
|
3316
|
-
|
|
3317
|
-
|
|
3360
|
+
O("div", wl, [
|
|
3361
|
+
O("div", {
|
|
3318
3362
|
innerHTML: r.svg,
|
|
3319
3363
|
class: "svg-style"
|
|
3320
|
-
}, null, 8,
|
|
3321
|
-
|
|
3364
|
+
}, null, 8, El),
|
|
3365
|
+
O("span", Ll, j(r.layout.name), 1)
|
|
3322
3366
|
])
|
|
3323
|
-
], 10,
|
|
3367
|
+
], 10, yl))), 256))
|
|
3324
3368
|
]);
|
|
3325
3369
|
}
|
|
3326
|
-
const
|
|
3370
|
+
const Ro = /* @__PURE__ */ oe(vl, [["render", bl], ["__scopeId", "data-v-75abecd2"]]), Ol = Z({
|
|
3327
3371
|
props: {
|
|
3328
3372
|
layout: {
|
|
3329
3373
|
type: Object
|
|
3330
3374
|
}
|
|
3331
3375
|
},
|
|
3332
3376
|
setup(e) {
|
|
3333
|
-
const t =
|
|
3377
|
+
const t = F(() => e.layout ? De.TransLayoutToFrams(e.layout).sort((o, s) => o.row == s.row ? o.col - s.col : o.row - s.row) : []);
|
|
3334
3378
|
return {
|
|
3335
|
-
areas:
|
|
3379
|
+
areas: F(() => t.value.map((o) => ({
|
|
3336
3380
|
id: o.id,
|
|
3337
3381
|
row: o.row,
|
|
3338
3382
|
col: o.col,
|
|
@@ -3343,19 +3387,19 @@ const ko = /* @__PURE__ */ oe(pl, [["render", El], ["__scopeId", "data-v-75abecd
|
|
|
3343
3387
|
};
|
|
3344
3388
|
}
|
|
3345
3389
|
});
|
|
3346
|
-
const
|
|
3347
|
-
function
|
|
3348
|
-
return
|
|
3349
|
-
(
|
|
3390
|
+
const Il = { style: { position: "relative", height: "100%", width: "100%" } };
|
|
3391
|
+
function Tl(e, t, n, o, s, a) {
|
|
3392
|
+
return C(), P("div", Il, [
|
|
3393
|
+
(C(!0), P(de, null, Ee(e.frameRef, ({ layout: r, id: l, row: i, col: c, w: _, h: d }, u) => (C(), P("div", {
|
|
3350
3394
|
class: "play-area",
|
|
3351
3395
|
key: u,
|
|
3352
|
-
style:
|
|
3396
|
+
style: pe(`position: absolute; top: calc(${r.top}%); left: calc(${r.left}%); width: calc(${r.width}%); height: calc(${r.height}%);`)
|
|
3353
3397
|
}, [
|
|
3354
|
-
|
|
3398
|
+
J(e.$slots, "default", {
|
|
3355
3399
|
id: l,
|
|
3356
3400
|
row: i,
|
|
3357
3401
|
col: c,
|
|
3358
|
-
w:
|
|
3402
|
+
w: _,
|
|
3359
3403
|
h: d,
|
|
3360
3404
|
index: u,
|
|
3361
3405
|
areas: e.areas
|
|
@@ -3363,13 +3407,13 @@ function bl(e, t, n, o, s, a) {
|
|
|
3363
3407
|
], 4))), 128))
|
|
3364
3408
|
]);
|
|
3365
3409
|
}
|
|
3366
|
-
const Ut = /* @__PURE__ */ oe(
|
|
3410
|
+
const Ut = /* @__PURE__ */ oe(Ol, [["render", Tl], ["__scopeId", "data-v-e6baa31a"]]), Nl = {
|
|
3367
3411
|
width: 1024,
|
|
3368
3412
|
height: 1024,
|
|
3369
3413
|
body: '<path fill="currentColor" d="M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504L738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512L828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496L285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512L195.2 285.696a64 64 0 0 1 0-90.496z"/>'
|
|
3370
3414
|
};
|
|
3371
|
-
|
|
3372
|
-
const
|
|
3415
|
+
Ae("close", Nl);
|
|
3416
|
+
const Sl = Z({
|
|
3373
3417
|
components: {
|
|
3374
3418
|
VideoAreaLayoutShow: Ut,
|
|
3375
3419
|
Icon: ut
|
|
@@ -3377,7 +3421,7 @@ const Il = q({
|
|
|
3377
3421
|
setup() {
|
|
3378
3422
|
const e = M(3), t = M(3), n = M(
|
|
3379
3423
|
[]
|
|
3380
|
-
), o =
|
|
3424
|
+
), o = F(() => S.genLayout(e.value, t.value, n.value)), s = M({}), a = M([]);
|
|
3381
3425
|
return {
|
|
3382
3426
|
areas: n,
|
|
3383
3427
|
row: e,
|
|
@@ -3485,83 +3529,83 @@ const Il = q({
|
|
|
3485
3529
|
}
|
|
3486
3530
|
}
|
|
3487
3531
|
});
|
|
3488
|
-
const
|
|
3489
|
-
function
|
|
3490
|
-
const r =
|
|
3491
|
-
return
|
|
3492
|
-
|
|
3532
|
+
const Cl = { style: { height: "calc(100% - 80px)", width: "calc(100%)", position: "relative" } }, Dl = ["onMouseenter", "onMousedown"], Al = { style: { "font-size": "32px" } }, Pl = { style: { display: "inline-block", width: "40px", "text-align": "center" } }, $l = { style: { display: "inline-block", width: "calc(100% - 40px)", "text-align": "right", "vertical-align": "middle" } }, Ml = ["onClick"];
|
|
3533
|
+
function kl(e, t, n, o, s, a) {
|
|
3534
|
+
const r = me("Icon"), l = me("VideoAreaLayoutShow");
|
|
3535
|
+
return C(), P("div", Cl, [
|
|
3536
|
+
Q(l, { layout: e.layout }, {
|
|
3493
3537
|
default: te((i) => [
|
|
3494
|
-
|
|
3495
|
-
class:
|
|
3538
|
+
O("div", {
|
|
3539
|
+
class: xe(e.genClass(i)),
|
|
3496
3540
|
onMouseenter: (c) => e.onMouseOver(c, i),
|
|
3497
3541
|
onMousedown: (c) => e.onMouseDown(i),
|
|
3498
3542
|
style: { "user-select": "none" }
|
|
3499
3543
|
}, [
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3544
|
+
O("div", Al, [
|
|
3545
|
+
O("div", Pl, j(i.index + 1), 1),
|
|
3546
|
+
O("div", $l, [
|
|
3547
|
+
O("span", {
|
|
3504
3548
|
onClick: (c) => e.onDelLayout(i)
|
|
3505
3549
|
}, [
|
|
3506
|
-
i.w > 1 || i.h > 1 ? (
|
|
3550
|
+
i.w > 1 || i.h > 1 ? (C(), Ne(r, {
|
|
3507
3551
|
key: 0,
|
|
3508
3552
|
icon: "close",
|
|
3509
3553
|
class: "close-btn"
|
|
3510
|
-
})) :
|
|
3511
|
-
], 8,
|
|
3554
|
+
})) : ue("", !0)
|
|
3555
|
+
], 8, Ml)
|
|
3512
3556
|
])
|
|
3513
3557
|
])
|
|
3514
|
-
], 42,
|
|
3558
|
+
], 42, Dl)
|
|
3515
3559
|
]),
|
|
3516
3560
|
_: 1
|
|
3517
3561
|
}, 8, ["layout"])
|
|
3518
3562
|
]);
|
|
3519
3563
|
}
|
|
3520
|
-
const
|
|
3564
|
+
const Rl = /* @__PURE__ */ oe(Sl, [["render", kl], ["__scopeId", "data-v-c3d9b21a"]]), xl = Z({
|
|
3521
3565
|
components: {
|
|
3522
3566
|
Icon: ut,
|
|
3523
|
-
LayoutShow:
|
|
3524
|
-
CustomLayoutGen:
|
|
3567
|
+
LayoutShow: Ro,
|
|
3568
|
+
CustomLayoutGen: Rl
|
|
3525
3569
|
},
|
|
3526
3570
|
setup() {
|
|
3527
3571
|
return {
|
|
3528
3572
|
layout: M(
|
|
3529
|
-
|
|
3573
|
+
De.CustomLayouts.get()
|
|
3530
3574
|
),
|
|
3531
|
-
i18nT:
|
|
3575
|
+
i18nT: Ce
|
|
3532
3576
|
};
|
|
3533
3577
|
}
|
|
3534
3578
|
});
|
|
3535
|
-
const
|
|
3536
|
-
function
|
|
3537
|
-
const r =
|
|
3538
|
-
return
|
|
3539
|
-
|
|
3540
|
-
Ct(
|
|
3541
|
-
|
|
3542
|
-
|
|
3579
|
+
const Fl = { style: { "margin-left": "10px", "margin-top": "10px" } }, Vl = { class: "plus-custom-layout" }, Ul = /* @__PURE__ */ Ct("\u6DFB\u52A0\u5E03\u5C40 "), Gl = { style: { "margin-top": "10px" } }, zl = { style: { height: "300px" } };
|
|
3580
|
+
function Hl(e, t, n, o, s, a) {
|
|
3581
|
+
const r = me("Icon"), l = me("CustomLayoutGen");
|
|
3582
|
+
return C(), P("div", Fl, [
|
|
3583
|
+
O("span", null, [
|
|
3584
|
+
Ct(j(e.i18nT("zi-ding-yi-bu-ju")) + "\uFF1A ", 1),
|
|
3585
|
+
O("span", Vl, [
|
|
3586
|
+
Q(r, {
|
|
3543
3587
|
icon: "plus",
|
|
3544
3588
|
style: { "vertical-align": "text-top" }
|
|
3545
3589
|
}),
|
|
3546
|
-
|
|
3590
|
+
Ul
|
|
3547
3591
|
])
|
|
3548
3592
|
]),
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3593
|
+
O("div", Gl, [
|
|
3594
|
+
O("div", zl, [
|
|
3595
|
+
Q(l)
|
|
3552
3596
|
])
|
|
3553
3597
|
])
|
|
3554
3598
|
]);
|
|
3555
3599
|
}
|
|
3556
|
-
const
|
|
3600
|
+
const jl = /* @__PURE__ */ oe(xl, [["render", Hl], ["__scopeId", "data-v-f8b51862"]]), Wl = Z({
|
|
3557
3601
|
emits: {
|
|
3558
3602
|
LayoutChange(e, t, n) {
|
|
3559
3603
|
return !0;
|
|
3560
3604
|
}
|
|
3561
3605
|
},
|
|
3562
3606
|
components: {
|
|
3563
|
-
UseCustomLayoutSelector:
|
|
3564
|
-
LayoutShow:
|
|
3607
|
+
UseCustomLayoutSelector: jl,
|
|
3608
|
+
LayoutShow: Ro,
|
|
3565
3609
|
Icon: ut
|
|
3566
3610
|
},
|
|
3567
3611
|
props: {
|
|
@@ -3570,39 +3614,39 @@ const Gl = /* @__PURE__ */ oe(Ml, [["render", Ul], ["__scopeId", "data-v-f8b5186
|
|
|
3570
3614
|
}
|
|
3571
3615
|
},
|
|
3572
3616
|
setup(e, t) {
|
|
3573
|
-
const n = e.layouts, o =
|
|
3617
|
+
const n = e.layouts, o = be(
|
|
3574
3618
|
n && n.length > 0 ? n : [
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3619
|
+
S.Test.genLayout(1, 1),
|
|
3620
|
+
S.Test.genLayout(1, 2),
|
|
3621
|
+
S.Test.genLayout(2, 2),
|
|
3622
|
+
S.Test.genLayout(2, 3),
|
|
3623
|
+
S.genLayout(3, 3, [
|
|
3580
3624
|
[0, 0, 2, 2],
|
|
3581
3625
|
[2, 0, 3, 2]
|
|
3582
3626
|
]),
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3627
|
+
S.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3628
|
+
S.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3629
|
+
S.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3630
|
+
S.Test.genLayout(3, 3),
|
|
3631
|
+
S.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3632
|
+
S.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3633
|
+
S.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3634
|
+
S.Test.genLayout(4, 4),
|
|
3635
|
+
S.Test.genLayout(5, 5),
|
|
3636
|
+
S.Test.genLayout(6, 6),
|
|
3637
|
+
S.genLayout(8, 8, [
|
|
3594
3638
|
[0, 0, 3, 3],
|
|
3595
3639
|
[3, 0, 5, 2],
|
|
3596
3640
|
[5, 0, 7, 2]
|
|
3597
3641
|
])
|
|
3598
3642
|
]
|
|
3599
3643
|
);
|
|
3600
|
-
|
|
3644
|
+
Le(
|
|
3601
3645
|
() => e.layouts,
|
|
3602
3646
|
() => {
|
|
3603
3647
|
if (e.layouts && e.layouts.length > 0) {
|
|
3604
|
-
const
|
|
3605
|
-
o.splice(0, o.length, ...
|
|
3648
|
+
const h = e.layouts;
|
|
3649
|
+
o.splice(0, o.length, ...h);
|
|
3606
3650
|
}
|
|
3607
3651
|
},
|
|
3608
3652
|
{
|
|
@@ -3610,47 +3654,47 @@ const Gl = /* @__PURE__ */ oe(Ml, [["render", Ul], ["__scopeId", "data-v-f8b5186
|
|
|
3610
3654
|
}
|
|
3611
3655
|
);
|
|
3612
3656
|
const s = M();
|
|
3613
|
-
let a =
|
|
3657
|
+
let a = De.StorageDefaultLayout.get();
|
|
3614
3658
|
function r() {
|
|
3615
3659
|
return a ? o.findIndex(
|
|
3616
|
-
(
|
|
3660
|
+
(h) => JSON.stringify(h) == JSON.stringify(a)
|
|
3617
3661
|
) >= 0 : !1;
|
|
3618
3662
|
}
|
|
3619
3663
|
const l = r() ? a : o[2];
|
|
3620
|
-
function i(
|
|
3664
|
+
function i(h, w) {
|
|
3621
3665
|
return t.emit(
|
|
3622
3666
|
"LayoutChange",
|
|
3623
|
-
JSON.stringify(
|
|
3624
|
-
|
|
3667
|
+
JSON.stringify(h.layout),
|
|
3668
|
+
h,
|
|
3625
3669
|
() => {
|
|
3626
|
-
u.value &&
|
|
3670
|
+
u.value && m();
|
|
3627
3671
|
}
|
|
3628
|
-
),
|
|
3672
|
+
), h.cancel || (d.value = w), !h.cancel;
|
|
3629
3673
|
}
|
|
3630
3674
|
let c = !0;
|
|
3631
|
-
const
|
|
3632
|
-
JSON.stringify(a) != JSON.stringify(
|
|
3633
|
-
}, d = M(""), u = M(!1),
|
|
3634
|
-
u.value = !u.value, u.value ? window.addEventListener("click",
|
|
3635
|
-
},
|
|
3636
|
-
u.value &&
|
|
3675
|
+
const _ = function(h, w) {
|
|
3676
|
+
JSON.stringify(a) != JSON.stringify(h) && i(h, w) && c && (a = h.layout, De.StorageDefaultLayout.set(h.layout)), d.value.length == 0 && i(h, w);
|
|
3677
|
+
}, d = M(""), u = M(!1), m = () => {
|
|
3678
|
+
u.value = !u.value, u.value ? window.addEventListener("click", E) : window.removeEventListener("click", E);
|
|
3679
|
+
}, E = (h) => {
|
|
3680
|
+
u.value && h.composedPath().findIndex(({ className: A }) => A == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", E));
|
|
3637
3681
|
};
|
|
3638
3682
|
return {
|
|
3639
|
-
i18nT:
|
|
3640
|
-
selectClassicalLayout: (
|
|
3641
|
-
var
|
|
3642
|
-
|
|
3643
|
-
const v = o.find((
|
|
3644
|
-
v && ((
|
|
3683
|
+
i18nT: Ce,
|
|
3684
|
+
selectClassicalLayout: (h, w, A) => {
|
|
3685
|
+
var D;
|
|
3686
|
+
A || (c = !1);
|
|
3687
|
+
const v = o.find((p) => p.row == h && p.col == w && typeof p.area > "u" && typeof p.areas > "u");
|
|
3688
|
+
v && ((D = s.value) == null || D.SelectLayoutById(JSON.stringify(v))), A = !0;
|
|
3645
3689
|
},
|
|
3646
|
-
selectLoyoutById: (
|
|
3647
|
-
var
|
|
3648
|
-
|
|
3690
|
+
selectLoyoutById: (h, w) => {
|
|
3691
|
+
var A;
|
|
3692
|
+
w || (c = !1), (A = s.value) == null || A.SelectLayoutById(h), w = !0;
|
|
3649
3693
|
},
|
|
3650
3694
|
refLayoutShow: s,
|
|
3651
|
-
clickShowSelectPanel:
|
|
3695
|
+
clickShowSelectPanel: m,
|
|
3652
3696
|
showSelectPanel: u,
|
|
3653
|
-
onselect:
|
|
3697
|
+
onselect: _,
|
|
3654
3698
|
svgSelect: d,
|
|
3655
3699
|
layout: o,
|
|
3656
3700
|
defaultLayout: l
|
|
@@ -3658,27 +3702,27 @@ const Gl = /* @__PURE__ */ oe(Ml, [["render", Ul], ["__scopeId", "data-v-f8b5186
|
|
|
3658
3702
|
},
|
|
3659
3703
|
expose: ["selectLoyoutById", "selectClassicalLayout"]
|
|
3660
3704
|
});
|
|
3661
|
-
const
|
|
3662
|
-
function
|
|
3663
|
-
const r =
|
|
3664
|
-
return
|
|
3665
|
-
|
|
3705
|
+
const Bl = { class: "layout-switcher" }, Kl = ["innerHTML"], Yl = { class: "switch-panel" }, Xl = { style: { "margin-left": "10px" } }, Jl = { style: { "margin-left": "10px", padding: "10px" } }, Ql = { style: { "margin-left": "10px" } };
|
|
3706
|
+
function ql(e, t, n, o, s, a) {
|
|
3707
|
+
const r = me("LayoutShow");
|
|
3708
|
+
return C(), P("div", Bl, [
|
|
3709
|
+
O("div", {
|
|
3666
3710
|
onClick: t[0] || (t[0] = (...l) => e.clickShowSelectPanel && e.clickShowSelectPanel(...l)),
|
|
3667
3711
|
class: "switch-switcher"
|
|
3668
3712
|
}, [
|
|
3669
|
-
|
|
3713
|
+
O("div", {
|
|
3670
3714
|
innerHTML: e.svgSelect,
|
|
3671
3715
|
style: { height: "32px", display: "inline-block", "vertical-align": "middle", width: "32px" }
|
|
3672
|
-
}, null, 8,
|
|
3716
|
+
}, null, 8, Kl)
|
|
3673
3717
|
]),
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3718
|
+
zn(O("div", Yl, [
|
|
3719
|
+
O("div", Xl, [
|
|
3720
|
+
O("span", null, j(e.i18nT("qing-xuan-ze-bu-ju-yang-shi")), 1)
|
|
3677
3721
|
]),
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3722
|
+
O("div", Jl, [
|
|
3723
|
+
O("div", Ql, [
|
|
3724
|
+
O("span", null, j(e.i18nT("biao-zhun-bu-ju")) + "\uFF1A", 1),
|
|
3725
|
+
Q(r, {
|
|
3682
3726
|
ref: "refLayoutShow",
|
|
3683
3727
|
layouts: e.layout,
|
|
3684
3728
|
defaultLayout: e.defaultLayout,
|
|
@@ -3687,14 +3731,14 @@ function Xl(e, t, n, o, s, a) {
|
|
|
3687
3731
|
])
|
|
3688
3732
|
])
|
|
3689
3733
|
], 512), [
|
|
3690
|
-
[
|
|
3734
|
+
[Hn, e.showSelectPanel]
|
|
3691
3735
|
])
|
|
3692
3736
|
]);
|
|
3693
3737
|
}
|
|
3694
|
-
const
|
|
3738
|
+
const Zl = /* @__PURE__ */ oe(Wl, [["render", ql], ["__scopeId", "data-v-1b358304"]]), ei = {
|
|
3695
3739
|
key: 0,
|
|
3696
3740
|
class: "layout-display"
|
|
3697
|
-
},
|
|
3741
|
+
}, ti = ["innerHTML"], ni = { style: { display: "inline-block", height: "32px", width: "32px", "line-height": "32px", "vertical-align": "top" } }, oi = /* @__PURE__ */ Z({
|
|
3698
3742
|
__name: "layoutDisplay",
|
|
3699
3743
|
props: {
|
|
3700
3744
|
layout: {
|
|
@@ -3709,62 +3753,62 @@ const Jl = /* @__PURE__ */ oe(zl, [["render", Xl], ["__scopeId", "data-v-1b35830
|
|
|
3709
3753
|
function n(s) {
|
|
3710
3754
|
return s < 10 ? `0${s}` : s;
|
|
3711
3755
|
}
|
|
3712
|
-
const o =
|
|
3756
|
+
const o = F(() => {
|
|
3713
3757
|
if (t.layout) {
|
|
3714
3758
|
const s = t.layout;
|
|
3715
3759
|
return {
|
|
3716
3760
|
layout: s,
|
|
3717
|
-
svg:
|
|
3718
|
-
frams:
|
|
3761
|
+
svg: De.TransLayoutToSVG(s, { width: 100, height: 100 }),
|
|
3762
|
+
frams: De.TransLayoutToFrams(s)
|
|
3719
3763
|
};
|
|
3720
3764
|
}
|
|
3721
3765
|
});
|
|
3722
3766
|
return (s, a) => {
|
|
3723
3767
|
var r;
|
|
3724
|
-
return ae(o) ? (
|
|
3725
|
-
|
|
3768
|
+
return ae(o) ? (C(), P("div", ei, [
|
|
3769
|
+
O("span", {
|
|
3726
3770
|
innerHTML: (r = ae(o)) == null ? void 0 : r.svg,
|
|
3727
3771
|
style: { display: "inline-block", height: "32px", width: "32px", "line-height": "32px", "background-color": "rgb(201, 201, 201)" }
|
|
3728
|
-
}, null, 8,
|
|
3729
|
-
|
|
3730
|
-
])) :
|
|
3772
|
+
}, null, 8, ti),
|
|
3773
|
+
O("span", ni, j(n(ae(o).frams.length)), 1)
|
|
3774
|
+
])) : ue("", !0);
|
|
3731
3775
|
};
|
|
3732
3776
|
}
|
|
3733
3777
|
});
|
|
3734
|
-
const
|
|
3735
|
-
var
|
|
3778
|
+
const xo = /* @__PURE__ */ oe(oi, [["__scopeId", "data-v-0cfd31aa"]]);
|
|
3779
|
+
var si = Object.defineProperty, ri = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, kn = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, ii = Object.prototype.propertyIsEnumerable, Rn = (e, t, n) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ci = (e, t) => {
|
|
3736
3780
|
for (var n in t || (t = {}))
|
|
3737
|
-
|
|
3738
|
-
if (
|
|
3739
|
-
for (var n of
|
|
3740
|
-
|
|
3781
|
+
li.call(t, n) && Rn(e, n, t[n]);
|
|
3782
|
+
if (kn)
|
|
3783
|
+
for (var n of kn(t))
|
|
3784
|
+
ii.call(t, n) && Rn(e, n, t[n]);
|
|
3741
3785
|
return e;
|
|
3742
|
-
},
|
|
3743
|
-
const
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3786
|
+
}, ui = (e, t) => ri(e, ai(t));
|
|
3787
|
+
const Ze = [
|
|
3788
|
+
S.Test.genLayout(1, 1),
|
|
3789
|
+
S.Test.genLayout(1, 2),
|
|
3790
|
+
S.Test.genLayout(2, 2),
|
|
3791
|
+
S.Test.genLayout(2, 3),
|
|
3792
|
+
S.genLayout(3, 3, [
|
|
3749
3793
|
[0, 0, 2, 2],
|
|
3750
3794
|
[2, 0, 3, 2]
|
|
3751
3795
|
]),
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3796
|
+
S.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3797
|
+
S.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3798
|
+
S.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3799
|
+
S.Test.genLayout(3, 3),
|
|
3800
|
+
S.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3801
|
+
S.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3802
|
+
S.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3803
|
+
S.Test.genLayout(4, 4),
|
|
3804
|
+
S.Test.genLayout(5, 5),
|
|
3805
|
+
S.Test.genLayout(6, 6),
|
|
3806
|
+
S.genLayout(8, 8, [
|
|
3763
3807
|
[0, 0, 3, 3],
|
|
3764
3808
|
[3, 0, 5, 2],
|
|
3765
3809
|
[5, 0, 7, 2]
|
|
3766
3810
|
])
|
|
3767
|
-
],
|
|
3811
|
+
], di = /* @__PURE__ */ Z({
|
|
3768
3812
|
__name: "preLayout",
|
|
3769
3813
|
props: {
|
|
3770
3814
|
zIndexModal: {
|
|
@@ -3772,11 +3816,11 @@ const qe = [
|
|
|
3772
3816
|
}
|
|
3773
3817
|
},
|
|
3774
3818
|
setup(e) {
|
|
3775
|
-
const t = e, n = M(!1), o =
|
|
3819
|
+
const t = e, n = M(!1), o = be({
|
|
3776
3820
|
top: "",
|
|
3777
3821
|
left: ""
|
|
3778
3822
|
});
|
|
3779
|
-
|
|
3823
|
+
Ve(() => {
|
|
3780
3824
|
});
|
|
3781
3825
|
let s;
|
|
3782
3826
|
function a(d) {
|
|
@@ -3790,63 +3834,63 @@ const qe = [
|
|
|
3790
3834
|
window.document.addEventListener("click", r);
|
|
3791
3835
|
}, 50);
|
|
3792
3836
|
}
|
|
3793
|
-
const i =
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3837
|
+
const i = be([
|
|
3838
|
+
S.Test.genLayout(1, 1),
|
|
3839
|
+
S.Test.genLayout(1, 2),
|
|
3840
|
+
S.Test.genLayout(2, 2),
|
|
3841
|
+
S.Test.genLayout(2, 3),
|
|
3842
|
+
S.genLayout(3, 3, [
|
|
3799
3843
|
[0, 0, 2, 2],
|
|
3800
3844
|
[2, 0, 3, 2]
|
|
3801
3845
|
]),
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3846
|
+
S.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3847
|
+
S.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3848
|
+
S.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3849
|
+
S.Test.genLayout(3, 3),
|
|
3850
|
+
S.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3851
|
+
S.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3852
|
+
S.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3853
|
+
S.Test.genLayout(4, 4),
|
|
3854
|
+
S.Test.genLayout(5, 5),
|
|
3855
|
+
S.Test.genLayout(6, 6),
|
|
3856
|
+
S.genLayout(8, 8, [
|
|
3813
3857
|
[0, 0, 3, 3],
|
|
3814
3858
|
[3, 0, 5, 2],
|
|
3815
3859
|
[5, 0, 7, 2]
|
|
3816
3860
|
])
|
|
3817
|
-
]), c =
|
|
3861
|
+
]), c = F(() => i.map((d) => ({
|
|
3818
3862
|
layout: d
|
|
3819
|
-
}))),
|
|
3863
|
+
}))), _ = document.body;
|
|
3820
3864
|
return rt(() => {
|
|
3821
3865
|
window.document.removeEventListener("click", r);
|
|
3822
|
-
}), (d, u) => (
|
|
3823
|
-
(
|
|
3824
|
-
n.value ? (
|
|
3866
|
+
}), (d, u) => (C(), P(de, null, [
|
|
3867
|
+
(C(), Ne(jn, { to: ae(_) }, [
|
|
3868
|
+
n.value ? (C(), P("div", {
|
|
3825
3869
|
key: 0,
|
|
3826
|
-
style:
|
|
3827
|
-
onClick: u[0] || (u[0] = (
|
|
3870
|
+
style: pe([{ width: "330px", position: "absolute", "background-color": "white", "padding-left": "25px", border: "1px solid", "padding-top": "20px", "padding-bottom": "20px", "border-radius": "5px" }, ui(ci({}, o), { zIndex: t.zIndexModal })]),
|
|
3871
|
+
onClick: u[0] || (u[0] = (m) => m.stopPropagation())
|
|
3828
3872
|
}, [
|
|
3829
|
-
(
|
|
3830
|
-
key:
|
|
3873
|
+
(C(!0), P(de, null, Ee(ae(c), (m, E) => (C(), P("span", {
|
|
3874
|
+
key: E,
|
|
3831
3875
|
class: "layout-panel-item-container",
|
|
3832
3876
|
style: { border: "1px solid" }
|
|
3833
3877
|
}, [
|
|
3834
|
-
|
|
3835
|
-
layout:
|
|
3836
|
-
onClick: (
|
|
3878
|
+
Q(xo, {
|
|
3879
|
+
layout: m.layout,
|
|
3880
|
+
onClick: (L) => a(m.layout)
|
|
3837
3881
|
}, null, 8, ["layout", "onClick"])
|
|
3838
3882
|
]))), 128))
|
|
3839
|
-
], 4)) :
|
|
3883
|
+
], 4)) : ue("", !0)
|
|
3840
3884
|
], 8, ["to"])),
|
|
3841
|
-
|
|
3885
|
+
J(d.$slots, "default", { addPreSetLayout: l }, void 0, !0)
|
|
3842
3886
|
], 64));
|
|
3843
3887
|
}
|
|
3844
3888
|
});
|
|
3845
|
-
const
|
|
3889
|
+
const fi = /* @__PURE__ */ oe(di, [["__scopeId", "data-v-954fc7ec"]]), _i = {
|
|
3846
3890
|
key: 0,
|
|
3847
3891
|
style: { position: "relative" },
|
|
3848
3892
|
class: "layout-container"
|
|
3849
|
-
},
|
|
3893
|
+
}, mi = { key: 1 }, pi = /* @__PURE__ */ Z({
|
|
3850
3894
|
__name: "layoutSelector",
|
|
3851
3895
|
props: {
|
|
3852
3896
|
row: {
|
|
@@ -3885,55 +3929,55 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-954fc7ec"]]), ui = {
|
|
|
3885
3929
|
function c() {
|
|
3886
3930
|
l.value = void 0;
|
|
3887
3931
|
}
|
|
3888
|
-
function
|
|
3932
|
+
function _(d) {
|
|
3889
3933
|
n("addPreset", d, i, { row: o.row, col: o.col });
|
|
3890
3934
|
}
|
|
3891
|
-
return
|
|
3892
|
-
o.layout ? o.layout ==
|
|
3893
|
-
}),
|
|
3935
|
+
return Ve(() => {
|
|
3936
|
+
o.layout ? o.layout == S.zeroLayout ? l.value = void 0 : l.value = o.layout : typeof o.index == "number" && o.index < Ze.length && (l.value = Ze[o.index]);
|
|
3937
|
+
}), Le(
|
|
3894
3938
|
() => o.index,
|
|
3895
3939
|
() => {
|
|
3896
|
-
typeof o.index == "number" && (o.index <
|
|
3940
|
+
typeof o.index == "number" && (o.index < Ze.length ? l.value = Ze[o.index] : l.value = void 0);
|
|
3897
3941
|
}
|
|
3898
3942
|
), t({
|
|
3899
3943
|
getLayout() {
|
|
3900
|
-
if (
|
|
3944
|
+
if (He(l.value))
|
|
3901
3945
|
return {
|
|
3902
|
-
layout:
|
|
3946
|
+
layout: He(l.value),
|
|
3903
3947
|
locatoin: {
|
|
3904
|
-
col:
|
|
3905
|
-
row:
|
|
3948
|
+
col: He(o.col),
|
|
3949
|
+
row: He(o.row)
|
|
3906
3950
|
}
|
|
3907
3951
|
};
|
|
3908
3952
|
}
|
|
3909
|
-
}), (d, u) => l.value ? (
|
|
3910
|
-
|
|
3911
|
-
|
|
3953
|
+
}), (d, u) => l.value ? (C(), P("div", _i, [
|
|
3954
|
+
Q(xo, { layout: l.value }, null, 8, ["layout"]),
|
|
3955
|
+
O("div", {
|
|
3912
3956
|
class: "close-btn",
|
|
3913
|
-
onClick: u[0] || (u[0] = (
|
|
3957
|
+
onClick: u[0] || (u[0] = (m) => c())
|
|
3914
3958
|
}, [
|
|
3915
|
-
|
|
3959
|
+
O("span", {
|
|
3916
3960
|
innerHTML: s,
|
|
3917
3961
|
class: "close-svg"
|
|
3918
3962
|
})
|
|
3919
3963
|
])
|
|
3920
|
-
])) : (
|
|
3921
|
-
|
|
3922
|
-
|
|
3964
|
+
])) : (C(), P("div", mi, [
|
|
3965
|
+
O("div", null, [
|
|
3966
|
+
O("div", {
|
|
3923
3967
|
class: "options",
|
|
3924
3968
|
style: { "margin-bottom": "1px", "line-height": "18px", height: "18px" },
|
|
3925
|
-
onClick: u[1] || (u[1] = (
|
|
3926
|
-
},
|
|
3927
|
-
|
|
3969
|
+
onClick: u[1] || (u[1] = (m) => _(m))
|
|
3970
|
+
}, j(ae(Ce)("yu-she")), 1),
|
|
3971
|
+
O("div", {
|
|
3928
3972
|
class: "options",
|
|
3929
|
-
onClick: u[2] || (u[2] = (
|
|
3973
|
+
onClick: u[2] || (u[2] = (m) => r(m)),
|
|
3930
3974
|
style: { "line-height": "19px", height: "19px" }
|
|
3931
|
-
},
|
|
3975
|
+
}, j(ae(Ce)("zi-ding-yi")), 1)
|
|
3932
3976
|
])
|
|
3933
3977
|
]));
|
|
3934
3978
|
}
|
|
3935
3979
|
});
|
|
3936
|
-
const
|
|
3980
|
+
const gi = /* @__PURE__ */ oe(pi, [["__scopeId", "data-v-d1d54937"]]), hi = { style: { height: "100%", width: "100%", "min-width": "522px", position: "relative", padding: "5px", border: "1px solid", "border-radius": "5px", "background-color": "white" } }, vi = { style: { height: "40px" } }, yi = { style: { display: "inline-block", width: "180px", "margin-left": "30px" } }, wi = { style: { display: "inline-block", width: "40px" } }, Ei = { style: { display: "inline-block", width: "20px" } }, Li = { style: { display: "inline-block", width: "180px" } }, bi = { style: { display: "inline-block", width: "40px" } }, Oi = { style: { display: "inline-block", width: "20px" } }, Ii = { style: { height: "calc(100% - 60px)", width: "calc(100% - 60px)", "margin-left": "30px", position: "relative" } }, Ti = ["onMousemove", "onMousedown"], Ni = { style: { "text-align": "center", color: "white", "font-size": "48px", "margin-left": "20px", "margin-top": "20px" } }, Si = ["onClick"], Ci = /* @__PURE__ */ Z({
|
|
3937
3981
|
__name: "index",
|
|
3938
3982
|
props: {
|
|
3939
3983
|
row: {
|
|
@@ -3956,10 +4000,10 @@ const _i = /* @__PURE__ */ oe(fi, [["__scopeId", "data-v-d1d54937"]]), mi = { st
|
|
|
3956
4000
|
setup(e, { expose: t, emit: n }) {
|
|
3957
4001
|
const o = e, s = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="black" d="M24 2.4L21.6 0L12 9.6L2.4 0L0 2.4L9.6 12L0 21.6L2.4 24l9.6-9.6l9.6 9.6l2.4-2.4l-9.6-9.6z"/></svg>', a = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 1200 1200"><path fill="#539d65" d="m1004.237 99.152l-611.44 611.441l-198.305-198.305L0 706.779l198.305 198.306l195.762 195.763L588.56 906.355L1200 294.916z"/></svg>';
|
|
3958
4002
|
function r(I) {
|
|
3959
|
-
|
|
4003
|
+
E.splice(I, 1), T();
|
|
3960
4004
|
}
|
|
3961
4005
|
function l() {
|
|
3962
|
-
n("ApplyLayoutCustom",
|
|
4006
|
+
n("ApplyLayoutCustom", K());
|
|
3963
4007
|
}
|
|
3964
4008
|
function i() {
|
|
3965
4009
|
var I;
|
|
@@ -3967,202 +4011,202 @@ const _i = /* @__PURE__ */ oe(fi, [["__scopeId", "data-v-d1d54937"]]), mi = { st
|
|
|
3967
4011
|
}
|
|
3968
4012
|
function c() {
|
|
3969
4013
|
var I;
|
|
3970
|
-
o.row > 2 &&
|
|
4014
|
+
o.row > 2 && m.value.row < o.row && ((I = o.updataLayoutInfo) == null || I.call(o, o.row - 1, o.col));
|
|
3971
4015
|
}
|
|
3972
|
-
function
|
|
4016
|
+
function _() {
|
|
3973
4017
|
var I;
|
|
3974
4018
|
o.col && ((I = o.updataLayoutInfo) == null || I.call(o, o.row, o.col + 1));
|
|
3975
4019
|
}
|
|
3976
4020
|
function d() {
|
|
3977
4021
|
var I;
|
|
3978
|
-
o.col > 2 &&
|
|
4022
|
+
o.col > 2 && m.value.col < o.col && ((I = o.updataLayoutInfo) == null || I.call(o, o.row, o.col - 1));
|
|
3979
4023
|
}
|
|
3980
|
-
const u =
|
|
3981
|
-
col: Math.max(...
|
|
3982
|
-
row: Math.max(...
|
|
3983
|
-
})),
|
|
3984
|
-
function
|
|
3985
|
-
return E
|
|
4024
|
+
const u = F(() => S.genLayout(o.row, o.col)), m = F(() => ({
|
|
4025
|
+
col: Math.max(...E.map((I) => I.area.colsMax)),
|
|
4026
|
+
row: Math.max(...E.map((I) => I.area.rowsMax))
|
|
4027
|
+
})), E = be(new Array()), L = ["green", "red", "blue"];
|
|
4028
|
+
function y() {
|
|
4029
|
+
return L[E.length % L.length];
|
|
3986
4030
|
}
|
|
3987
|
-
const
|
|
3988
|
-
if (
|
|
4031
|
+
const h = 0.125, w = F(() => {
|
|
4032
|
+
if (N.first && N.last) {
|
|
3989
4033
|
const I = {
|
|
3990
|
-
colsMin: Math.min(
|
|
3991
|
-
colsMax: Math.max(
|
|
3992
|
-
rowsMin: Math.min(
|
|
3993
|
-
rowsMax: Math.max(
|
|
3994
|
-
},
|
|
4034
|
+
colsMin: Math.min(N.first.colsMin, N.last.colsMin),
|
|
4035
|
+
colsMax: Math.max(N.first.colsMax, N.last.colsMax),
|
|
4036
|
+
rowsMin: Math.min(N.first.rowsMin, N.last.rowsMin),
|
|
4037
|
+
rowsMax: Math.max(N.first.rowsMax, N.last.rowsMax)
|
|
4038
|
+
}, $ = y();
|
|
3995
4039
|
return {
|
|
3996
4040
|
infoGetter() {
|
|
3997
|
-
const
|
|
4041
|
+
const z = (I.colsMax - I.colsMin) / u.value.col * 100, Ie = (I.rowsMax - I.rowsMin) / u.value.row * 100, fe = z / 100 * u.value.col, Ge = Ie / 100 * u.value.row;
|
|
3998
4042
|
return {
|
|
3999
4043
|
style: {
|
|
4000
|
-
left: `calc(${(I.colsMin +
|
|
4001
|
-
top: `calc(${(I.rowsMin +
|
|
4002
|
-
width: `calc(${
|
|
4003
|
-
height: `calc(${
|
|
4004
|
-
backgroundColor:
|
|
4044
|
+
left: `calc(${(I.colsMin + h) / u.value.col * 100}%)`,
|
|
4045
|
+
top: `calc(${(I.rowsMin + h) / u.value.row * 100}% `,
|
|
4046
|
+
width: `calc(${z - h * 2 / u.value.col * 100}% )`,
|
|
4047
|
+
height: `calc(${Ie - h * 2 / u.value.row * 100}%)`,
|
|
4048
|
+
backgroundColor: $
|
|
4005
4049
|
},
|
|
4006
|
-
areaCount:
|
|
4050
|
+
areaCount: fe * Ge
|
|
4007
4051
|
};
|
|
4008
4052
|
},
|
|
4009
4053
|
area: I
|
|
4010
4054
|
};
|
|
4011
4055
|
}
|
|
4012
4056
|
});
|
|
4013
|
-
function
|
|
4014
|
-
const [
|
|
4015
|
-
return Array.from({ length:
|
|
4016
|
-
const dt = `${
|
|
4017
|
-
Array.from({ length:
|
|
4018
|
-
const zt = `${
|
|
4019
|
-
|
|
4057
|
+
function A(I) {
|
|
4058
|
+
const [$, x] = [I.colsMin, I.colsMax], [z, Ie] = [I.rowsMin, I.rowsMax], fe = [];
|
|
4059
|
+
return Array.from({ length: x - $ }).map((Ge, Xe) => {
|
|
4060
|
+
const dt = `${Xe + $}-${Xe + $ + 1}`;
|
|
4061
|
+
Array.from({ length: Ie - z }).map((Gt, Je) => {
|
|
4062
|
+
const zt = `${Je + z}-${Je + z + 1}`;
|
|
4063
|
+
fe.push(`${dt}|${zt}`);
|
|
4020
4064
|
});
|
|
4021
|
-
}),
|
|
4065
|
+
}), fe;
|
|
4022
4066
|
}
|
|
4023
|
-
function
|
|
4024
|
-
return
|
|
4067
|
+
function D(I, $) {
|
|
4068
|
+
return A(I).findIndex((x) => A($).findIndex((z) => x == z) >= 0) >= 0;
|
|
4025
4069
|
}
|
|
4026
|
-
function v(I,
|
|
4027
|
-
const
|
|
4028
|
-
colsMin: Math.min(I.colsMin,
|
|
4029
|
-
colsMax: Math.max(I.colsMax,
|
|
4030
|
-
rowsMin: Math.min(I.rowsMin,
|
|
4031
|
-
rowsMax: Math.max(I.rowsMax,
|
|
4070
|
+
function v(I, $) {
|
|
4071
|
+
const x = {
|
|
4072
|
+
colsMin: Math.min(I.colsMin, $.colsMin),
|
|
4073
|
+
colsMax: Math.max(I.colsMax, $.colsMax),
|
|
4074
|
+
rowsMin: Math.min(I.rowsMin, $.rowsMin),
|
|
4075
|
+
rowsMax: Math.max(I.rowsMax, $.rowsMax)
|
|
4032
4076
|
};
|
|
4033
|
-
return
|
|
4077
|
+
return E.findIndex((z) => D(x, z.area)) >= 0;
|
|
4034
4078
|
}
|
|
4035
|
-
function
|
|
4036
|
-
const
|
|
4079
|
+
function p(I) {
|
|
4080
|
+
const $ = {
|
|
4037
4081
|
colsMin: I.col,
|
|
4038
4082
|
colsMax: I.col + I.w,
|
|
4039
4083
|
rowsMin: I.row,
|
|
4040
4084
|
rowsMax: I.row + I.h
|
|
4041
4085
|
};
|
|
4042
|
-
!
|
|
4043
|
-
(
|
|
4044
|
-
var
|
|
4045
|
-
return ((
|
|
4086
|
+
!N.first && v($, $) || (N.first || (N.first = $), !v(N.first, $) && (N.last && Object.keys($).findIndex(
|
|
4087
|
+
(x) => {
|
|
4088
|
+
var z;
|
|
4089
|
+
return ((z = N.last) == null ? void 0 : z[x]) != $[x];
|
|
4046
4090
|
}
|
|
4047
|
-
) < 0 || (
|
|
4091
|
+
) < 0 || (N.last = $)));
|
|
4048
4092
|
}
|
|
4049
|
-
function
|
|
4050
|
-
|
|
4093
|
+
function T() {
|
|
4094
|
+
N.first = void 0, N.last = void 0;
|
|
4051
4095
|
}
|
|
4052
|
-
const
|
|
4053
|
-
function
|
|
4054
|
-
I.buttons &&
|
|
4096
|
+
const N = be({});
|
|
4097
|
+
function R(I, $) {
|
|
4098
|
+
I.buttons && p($);
|
|
4055
4099
|
}
|
|
4056
|
-
function
|
|
4057
|
-
if (
|
|
4058
|
-
const I =
|
|
4100
|
+
function G() {
|
|
4101
|
+
if (w.value) {
|
|
4102
|
+
const I = w.value;
|
|
4059
4103
|
if (I && I.infoGetter().areaCount > 1) {
|
|
4060
|
-
|
|
4061
|
-
const
|
|
4062
|
-
|
|
4104
|
+
E.push(I);
|
|
4105
|
+
const $ = E.sort((x, z) => (x.area.rowsMin - z.area.rowsMin) * 1e3 + x.area.colsMin - z.area.colsMin);
|
|
4106
|
+
E.splice(0, E.length, ...$);
|
|
4063
4107
|
}
|
|
4064
|
-
|
|
4108
|
+
T();
|
|
4065
4109
|
}
|
|
4066
4110
|
}
|
|
4067
|
-
|
|
4068
|
-
window.document.addEventListener("mouseup",
|
|
4111
|
+
Ve(() => {
|
|
4112
|
+
window.document.addEventListener("mouseup", G);
|
|
4069
4113
|
}), rt(() => {
|
|
4070
|
-
window.document.removeEventListener("mouseup",
|
|
4114
|
+
window.document.removeEventListener("mouseup", G);
|
|
4071
4115
|
});
|
|
4072
|
-
function
|
|
4073
|
-
const I =
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4116
|
+
function K() {
|
|
4117
|
+
const I = E.map((x) => [
|
|
4118
|
+
x.area.colsMin,
|
|
4119
|
+
x.area.rowsMin,
|
|
4120
|
+
x.area.colsMax,
|
|
4121
|
+
x.area.rowsMax
|
|
4078
4122
|
]);
|
|
4079
|
-
return
|
|
4123
|
+
return S.genLayout(
|
|
4080
4124
|
u.value.row,
|
|
4081
4125
|
u.value.col,
|
|
4082
4126
|
I
|
|
4083
4127
|
);
|
|
4084
4128
|
}
|
|
4085
|
-
const
|
|
4129
|
+
const ye = F(() => K().count);
|
|
4086
4130
|
return t({
|
|
4087
|
-
getLayout:
|
|
4088
|
-
}), (I,
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
onClick:
|
|
4131
|
+
getLayout: K
|
|
4132
|
+
}), (I, $) => (C(), P("div", hi, [
|
|
4133
|
+
O("div", vi, [
|
|
4134
|
+
O("div", yi, [
|
|
4135
|
+
O("span", wi, j(ae(Ce)("hang-shu")), 1),
|
|
4136
|
+
O("span", Ei, j(o.row), 1),
|
|
4137
|
+
O("button", {
|
|
4138
|
+
onClick: $[0] || ($[0] = (x) => i()),
|
|
4095
4139
|
style: { cursor: "pointer" }
|
|
4096
4140
|
}, "+"),
|
|
4097
|
-
|
|
4141
|
+
O("button", {
|
|
4098
4142
|
style: { "margin-left": "2px", cursor: "pointer" },
|
|
4099
|
-
onClick:
|
|
4143
|
+
onClick: $[1] || ($[1] = (x) => c())
|
|
4100
4144
|
}, " - ")
|
|
4101
4145
|
]),
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
onClick:
|
|
4146
|
+
O("div", Li, [
|
|
4147
|
+
O("span", bi, j(ae(Ce)("lie-shu")), 1),
|
|
4148
|
+
O("span", Oi, j(o.col), 1),
|
|
4149
|
+
O("button", {
|
|
4150
|
+
onClick: $[2] || ($[2] = (x) => _()),
|
|
4107
4151
|
style: { cursor: "pointer" }
|
|
4108
4152
|
}, "+"),
|
|
4109
|
-
|
|
4110
|
-
onClick:
|
|
4153
|
+
O("button", {
|
|
4154
|
+
onClick: $[3] || ($[3] = (x) => d()),
|
|
4111
4155
|
style: { "margin-left": "2px", cursor: "pointer" }
|
|
4112
4156
|
}, " - ")
|
|
4113
4157
|
]),
|
|
4114
|
-
Ct(" " +
|
|
4115
|
-
|
|
4158
|
+
Ct(" " + j(ae(ye)) + " ", 1),
|
|
4159
|
+
O("button", {
|
|
4116
4160
|
style: { cursor: "pointer", "margin-left": "20px" },
|
|
4117
|
-
onClick:
|
|
4161
|
+
onClick: $[4] || ($[4] = (x) => l())
|
|
4118
4162
|
}, [
|
|
4119
|
-
|
|
4163
|
+
O("span", { innerHTML: a })
|
|
4120
4164
|
])
|
|
4121
4165
|
]),
|
|
4122
|
-
|
|
4123
|
-
|
|
4166
|
+
O("div", Ii, [
|
|
4167
|
+
Q(Ut, {
|
|
4124
4168
|
layout: ae(u),
|
|
4125
4169
|
class: "area-layout"
|
|
4126
4170
|
}, {
|
|
4127
|
-
default: te((
|
|
4128
|
-
|
|
4171
|
+
default: te((x) => [
|
|
4172
|
+
O("div", {
|
|
4129
4173
|
class: "area-item",
|
|
4130
|
-
onMousemove: (
|
|
4131
|
-
onMousedown: (
|
|
4132
|
-
},
|
|
4174
|
+
onMousemove: (z) => R(z, x),
|
|
4175
|
+
onMousedown: (z) => R(z, x)
|
|
4176
|
+
}, j(x.id), 41, Ti)
|
|
4133
4177
|
]),
|
|
4134
4178
|
_: 1
|
|
4135
4179
|
}, 8, ["layout"]),
|
|
4136
|
-
ae(
|
|
4180
|
+
ae(w) ? (C(), P("div", {
|
|
4137
4181
|
key: 0,
|
|
4138
|
-
style:
|
|
4182
|
+
style: pe(ae(w).infoGetter().style),
|
|
4139
4183
|
class: "current-area"
|
|
4140
|
-
}, null, 4)) :
|
|
4141
|
-
(
|
|
4142
|
-
style:
|
|
4184
|
+
}, null, 4)) : ue("", !0),
|
|
4185
|
+
(C(!0), P(de, null, Ee(E, (x, z) => (C(), P("div", {
|
|
4186
|
+
style: pe([x.infoGetter().style, {}]),
|
|
4143
4187
|
class: "current-area"
|
|
4144
4188
|
}, [
|
|
4145
|
-
|
|
4146
|
-
|
|
4189
|
+
O("span", Ni, j(z + 1), 1),
|
|
4190
|
+
O("span", {
|
|
4147
4191
|
class: "close-svg",
|
|
4148
4192
|
innerHTML: s,
|
|
4149
|
-
onClick: (
|
|
4150
|
-
}, null, 8,
|
|
4193
|
+
onClick: (Ie) => r(z)
|
|
4194
|
+
}, null, 8, Si)
|
|
4151
4195
|
], 4))), 256))
|
|
4152
4196
|
])
|
|
4153
4197
|
]));
|
|
4154
4198
|
}
|
|
4155
4199
|
});
|
|
4156
|
-
const
|
|
4157
|
-
var
|
|
4200
|
+
const Di = /* @__PURE__ */ oe(Ci, [["__scopeId", "data-v-27292e2e"]]);
|
|
4201
|
+
var Ai = Object.defineProperty, Pi = Object.defineProperties, $i = Object.getOwnPropertyDescriptors, xn = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Fn = (e, t, n) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ri = (e, t) => {
|
|
4158
4202
|
for (var n in t || (t = {}))
|
|
4159
|
-
|
|
4160
|
-
if (
|
|
4161
|
-
for (var n of
|
|
4162
|
-
|
|
4203
|
+
Mi.call(t, n) && Fn(e, n, t[n]);
|
|
4204
|
+
if (xn)
|
|
4205
|
+
for (var n of xn(t))
|
|
4206
|
+
ki.call(t, n) && Fn(e, n, t[n]);
|
|
4163
4207
|
return e;
|
|
4164
|
-
},
|
|
4165
|
-
const
|
|
4208
|
+
}, xi = (e, t) => Pi(e, $i(t));
|
|
4209
|
+
const Fi = /* @__PURE__ */ Z({
|
|
4166
4210
|
__name: "layout-custom-editor",
|
|
4167
4211
|
props: {
|
|
4168
4212
|
zIndexModal: {
|
|
@@ -4171,13 +4215,13 @@ const ki = /* @__PURE__ */ q({
|
|
|
4171
4215
|
},
|
|
4172
4216
|
setup(e) {
|
|
4173
4217
|
const t = e, n = M();
|
|
4174
|
-
function o(u,
|
|
4175
|
-
a.row = u, a.col =
|
|
4218
|
+
function o(u, m) {
|
|
4219
|
+
a.row = u, a.col = m;
|
|
4176
4220
|
}
|
|
4177
4221
|
function s(u) {
|
|
4178
4222
|
r == null || r(u), d.value = !1;
|
|
4179
4223
|
}
|
|
4180
|
-
const a =
|
|
4224
|
+
const a = be({
|
|
4181
4225
|
row: 5,
|
|
4182
4226
|
col: 4
|
|
4183
4227
|
});
|
|
@@ -4185,60 +4229,60 @@ const ki = /* @__PURE__ */ q({
|
|
|
4185
4229
|
function l() {
|
|
4186
4230
|
d.value = !1, window.document.removeEventListener("click", l);
|
|
4187
4231
|
}
|
|
4188
|
-
const i =
|
|
4232
|
+
const i = F(() => c.value ? {
|
|
4189
4233
|
position: "absolute",
|
|
4190
4234
|
top: `${c.value.y * 0 + 80}px`,
|
|
4191
4235
|
left: `${c.value.x * 0 + 40}px`,
|
|
4192
4236
|
height: `${a.row * 50 + 60}px`,
|
|
4193
4237
|
width: `${a.col * 80 + 60}px`
|
|
4194
4238
|
} : {}), c = M();
|
|
4195
|
-
function
|
|
4196
|
-
window.document.removeEventListener("click", l), r =
|
|
4239
|
+
function _(u, m) {
|
|
4240
|
+
window.document.removeEventListener("click", l), r = m, c.value = u, d.value = !0, setTimeout(() => {
|
|
4197
4241
|
window.document.addEventListener("click", l);
|
|
4198
4242
|
}, 50);
|
|
4199
4243
|
}
|
|
4200
4244
|
const d = M(!1);
|
|
4201
|
-
return
|
|
4245
|
+
return Ve(() => {
|
|
4202
4246
|
n.value = document.body;
|
|
4203
4247
|
}), rt(() => {
|
|
4204
4248
|
window.document.removeEventListener("click", l);
|
|
4205
|
-
}), (u,
|
|
4206
|
-
n.value ? (
|
|
4249
|
+
}), (u, m) => (C(), P(de, null, [
|
|
4250
|
+
n.value ? (C(), Ne(jn, {
|
|
4207
4251
|
key: 0,
|
|
4208
4252
|
to: n.value
|
|
4209
4253
|
}, [
|
|
4210
|
-
d.value ? (
|
|
4254
|
+
d.value ? (C(), P("div", {
|
|
4211
4255
|
key: 0,
|
|
4212
|
-
style:
|
|
4213
|
-
onClick:
|
|
4256
|
+
style: pe([{ "background-color": "white" }, xi(Ri({}, ae(i)), { zIndex: t.zIndexModal })]),
|
|
4257
|
+
onClick: m[0] || (m[0] = (E) => E.stopPropagation())
|
|
4214
4258
|
}, [
|
|
4215
|
-
|
|
4259
|
+
Q(Di, {
|
|
4216
4260
|
row: a.row,
|
|
4217
4261
|
col: a.col,
|
|
4218
4262
|
updataLayoutInfo: o,
|
|
4219
4263
|
onApplyLayoutCustom: s
|
|
4220
4264
|
}, null, 8, ["row", "col"])
|
|
4221
|
-
], 4)) :
|
|
4222
|
-
], 8, ["to"])) :
|
|
4223
|
-
|
|
4265
|
+
], 4)) : ue("", !0)
|
|
4266
|
+
], 8, ["to"])) : ue("", !0),
|
|
4267
|
+
J(u.$slots, "default", { addCustomLayoutGen: _ })
|
|
4224
4268
|
], 64));
|
|
4225
4269
|
}
|
|
4226
4270
|
});
|
|
4227
|
-
var
|
|
4271
|
+
var Vi = Object.defineProperty, Vn = Object.getOwnPropertySymbols, Ui = Object.prototype.hasOwnProperty, Gi = Object.prototype.propertyIsEnumerable, Un = (e, t, n) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zi = (e, t) => {
|
|
4228
4272
|
for (var n in t || (t = {}))
|
|
4229
|
-
|
|
4230
|
-
if (
|
|
4231
|
-
for (var n of
|
|
4232
|
-
|
|
4273
|
+
Ui.call(t, n) && Un(e, n, t[n]);
|
|
4274
|
+
if (Vn)
|
|
4275
|
+
for (var n of Vn(t))
|
|
4276
|
+
Gi.call(t, n) && Un(e, n, t[n]);
|
|
4233
4277
|
return e;
|
|
4234
4278
|
};
|
|
4235
|
-
const
|
|
4279
|
+
const Hi = {
|
|
4236
4280
|
class: "dash-border",
|
|
4237
4281
|
style: {
|
|
4238
4282
|
width: "78px",
|
|
4239
4283
|
height: "48px"
|
|
4240
4284
|
}
|
|
4241
|
-
},
|
|
4285
|
+
}, ji = { style: { width: "100%", height: "40px" } }, Wi = { class: "add-row-panel" }, Bi = /* @__PURE__ */ Z({
|
|
4242
4286
|
__name: "layoutGen",
|
|
4243
4287
|
props: {
|
|
4244
4288
|
savedLayout: {
|
|
@@ -4249,7 +4293,7 @@ const Ui = {
|
|
|
4249
4293
|
}
|
|
4250
4294
|
},
|
|
4251
4295
|
setup(e, { expose: t }) {
|
|
4252
|
-
const n = e, o =
|
|
4296
|
+
const n = e, o = be({
|
|
4253
4297
|
row: 4,
|
|
4254
4298
|
col: 4
|
|
4255
4299
|
});
|
|
@@ -4263,61 +4307,61 @@ const Ui = {
|
|
|
4263
4307
|
t({
|
|
4264
4308
|
getLayouts() {
|
|
4265
4309
|
return {
|
|
4266
|
-
layouts: r.value.map((
|
|
4267
|
-
meta:
|
|
4310
|
+
layouts: r.value.map((_) => _.getLayout()).filter((_) => !!_),
|
|
4311
|
+
meta: zi({}, He(o))
|
|
4268
4312
|
};
|
|
4269
4313
|
}
|
|
4270
4314
|
});
|
|
4271
4315
|
function l(i, c) {
|
|
4272
|
-
var
|
|
4273
|
-
const d = (
|
|
4316
|
+
var _;
|
|
4317
|
+
const d = (_ = n.savedLayout) == null ? void 0 : _.layouts.find(
|
|
4274
4318
|
(u) => u.locatoin.col == c && u.locatoin.row == i
|
|
4275
4319
|
);
|
|
4276
4320
|
if (d != null && d.layout)
|
|
4277
4321
|
return d == null ? void 0 : d.layout;
|
|
4278
4322
|
if (n.savedLayout)
|
|
4279
|
-
return
|
|
4323
|
+
return S.zeroLayout;
|
|
4280
4324
|
}
|
|
4281
|
-
return
|
|
4325
|
+
return Ve(() => {
|
|
4282
4326
|
n.savedLayout && (o.row = n.savedLayout.meta.row, o.col = n.savedLayout.meta.col);
|
|
4283
|
-
}), (i, c) => (
|
|
4327
|
+
}), (i, c) => (C(), Ne(Fi, {
|
|
4284
4328
|
zIndexModal: n.zIndexModal
|
|
4285
4329
|
}, {
|
|
4286
|
-
default: te(({ addCustomLayoutGen:
|
|
4287
|
-
|
|
4330
|
+
default: te(({ addCustomLayoutGen: _ }) => [
|
|
4331
|
+
Q(fi, {
|
|
4288
4332
|
zIndexModal: n.zIndexModal
|
|
4289
4333
|
}, {
|
|
4290
4334
|
default: te(({ addPreSetLayout: d }) => [
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
style:
|
|
4335
|
+
O("div", null, [
|
|
4336
|
+
O("div", {
|
|
4337
|
+
style: pe([{ display: "inline-block", "vertical-align": "top" }, { width: `${80 * o.col}px` }])
|
|
4294
4338
|
}, [
|
|
4295
|
-
(
|
|
4296
|
-
style:
|
|
4339
|
+
(C(!0), P(de, null, Ee(Array.from({ length: o.row }), (u, m) => (C(), P("div", {
|
|
4340
|
+
style: pe({ width: `${80 * o.col}px` })
|
|
4297
4341
|
}, [
|
|
4298
|
-
(
|
|
4299
|
-
|
|
4300
|
-
|
|
4342
|
+
(C(!0), P(de, null, Ee(Array.from({ length: o.col }), (E, L) => (C(), P("div", Hi, [
|
|
4343
|
+
O("div", ji, [
|
|
4344
|
+
Q(gi, {
|
|
4301
4345
|
ref_for: !0,
|
|
4302
4346
|
ref_key: "layoutSelectorRefs",
|
|
4303
4347
|
ref: r,
|
|
4304
|
-
row:
|
|
4305
|
-
col:
|
|
4306
|
-
index: o.col *
|
|
4348
|
+
row: m,
|
|
4349
|
+
col: L,
|
|
4350
|
+
index: o.col * m + L,
|
|
4307
4351
|
onAddPreset: d,
|
|
4308
|
-
onAddCustom:
|
|
4309
|
-
layout: l(
|
|
4352
|
+
onAddCustom: _,
|
|
4353
|
+
layout: l(m, L)
|
|
4310
4354
|
}, null, 8, ["row", "col", "index", "onAddPreset", "onAddCustom", "layout"])
|
|
4311
4355
|
])
|
|
4312
4356
|
]))), 256))
|
|
4313
4357
|
], 4))), 256)),
|
|
4314
|
-
|
|
4315
|
-
|
|
4358
|
+
O("div", Wi, [
|
|
4359
|
+
O("div", {
|
|
4316
4360
|
onClick: c[0] || (c[0] = (u) => a()),
|
|
4317
4361
|
style: { display: "inline-block", width: "calc(50% - 5px)" },
|
|
4318
4362
|
class: "add-row-panel-remove"
|
|
4319
4363
|
}, " - "),
|
|
4320
|
-
|
|
4364
|
+
O("div", {
|
|
4321
4365
|
onClick: c[1] || (c[1] = (u) => s()),
|
|
4322
4366
|
style: { display: "inline-block", width: "calc(50% - 5px)" },
|
|
4323
4367
|
class: "add-row-panel-add"
|
|
@@ -4333,7 +4377,7 @@ const Ui = {
|
|
|
4333
4377
|
}, 8, ["zIndexModal"]));
|
|
4334
4378
|
}
|
|
4335
4379
|
});
|
|
4336
|
-
const
|
|
4380
|
+
const Ki = /* @__PURE__ */ oe(Bi, [["__scopeId", "data-v-c71da28e"]]), Yi = { style: { "background-color": "white" } }, Xi = /* @__PURE__ */ Z({
|
|
4337
4381
|
__name: "index",
|
|
4338
4382
|
props: {
|
|
4339
4383
|
savedLayout: {
|
|
@@ -4350,8 +4394,8 @@ const ji = /* @__PURE__ */ oe(Hi, [["__scopeId", "data-v-c71da28e"]]), Wi = { st
|
|
|
4350
4394
|
var o;
|
|
4351
4395
|
return (o = n.value) == null ? void 0 : o.getLayouts();
|
|
4352
4396
|
}
|
|
4353
|
-
}), (o, s) => (
|
|
4354
|
-
|
|
4397
|
+
}), (o, s) => (C(), P("div", Yi, [
|
|
4398
|
+
Q(Ki, {
|
|
4355
4399
|
ref_key: "refLayoutGen",
|
|
4356
4400
|
ref: n,
|
|
4357
4401
|
savedLayout: e.savedLayout,
|
|
@@ -4360,33 +4404,33 @@ const ji = /* @__PURE__ */ oe(Hi, [["__scopeId", "data-v-c71da28e"]]), Wi = { st
|
|
|
4360
4404
|
]));
|
|
4361
4405
|
}
|
|
4362
4406
|
});
|
|
4363
|
-
const
|
|
4364
|
-
RecursionDeviceGroup:
|
|
4407
|
+
const Ji = /* @__PURE__ */ oe(Xi, [["__scopeId", "data-v-a049e2ea"]]), Gn = {
|
|
4408
|
+
RecursionDeviceGroup: ll,
|
|
4365
4409
|
VideoAreasLayoutShow: Ut,
|
|
4366
|
-
MultiVideoAreaLayoutSwitch:
|
|
4367
|
-
VideoAreasLayoutCustom:
|
|
4368
|
-
},
|
|
4410
|
+
MultiVideoAreaLayoutSwitch: Zl,
|
|
4411
|
+
VideoAreasLayoutCustom: Ji
|
|
4412
|
+
}, ec = {
|
|
4369
4413
|
install(e, t) {
|
|
4370
|
-
|
|
4371
|
-
t && typeof t.locale < "u" ? t.locale :
|
|
4372
|
-
), t.deviceListDisplayStyle &&
|
|
4373
|
-
for (const n in
|
|
4374
|
-
const o =
|
|
4414
|
+
Br(
|
|
4415
|
+
t && typeof t.locale < "u" ? t.locale : yo.en
|
|
4416
|
+
), t.deviceListDisplayStyle && Yr(t.deviceListDisplayStyle);
|
|
4417
|
+
for (const n in Gn) {
|
|
4418
|
+
const o = Gn[n];
|
|
4375
4419
|
e.component(n, o);
|
|
4376
4420
|
}
|
|
4377
4421
|
}
|
|
4378
4422
|
};
|
|
4379
4423
|
export {
|
|
4380
|
-
|
|
4424
|
+
wo as DeviceListNameDisplayStyle,
|
|
4381
4425
|
Eo as DeviceListTheme,
|
|
4382
|
-
|
|
4383
|
-
|
|
4426
|
+
Kr as GetGlobalDeviceListTheme,
|
|
4427
|
+
Jr as GetIsHideDeviceIdInDeviceDisplay,
|
|
4384
4428
|
vn as RecursionDeviceGroup,
|
|
4385
4429
|
vn as RecursionDeviceGroupModel,
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4430
|
+
Yr as SetDeviceListNameDisplayStyle,
|
|
4431
|
+
qi as SetGlobalDeviceListTheme,
|
|
4432
|
+
Zi as SetIsHideDeviceIdInDeviceDisplay,
|
|
4433
|
+
S as VideoAreaLayout,
|
|
4434
|
+
ec as default
|
|
4391
4435
|
};
|
|
4392
4436
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|