smarteye-e-components 0.0.74 → 0.0.76
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 +8 -8
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +858 -822
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/multi-video-area-layout-switch/index.vue.d.ts +15 -5
- package/lib/components/multi-video-area-layout-switch/utils/index.d.ts +1 -1
- package/lib/components/recursion-device-group/index.vue.d.ts +2 -1
- package/lib/config/index.d.ts +6 -0
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { h as
|
|
1
|
+
import { h as Ze, getCurrentInstance as Nt, effectScope as Zo, inject as St, onMounted as xe, onUnmounted as ot, ref as k, computed as U, watch as Ie, Fragment as ue, isRef as es, createVNode as B, Text as ts, defineComponent as Q, openBlock as N, createElementBlock as A, normalizeClass as ke, renderSlot as Y, createElementVNode as b, toDisplayString as j, createCommentVNode as pe, normalizeStyle as _e, renderList as Ee, resolveComponent as fe, withDirectives as Vn, withCtx as te, createBlock as Fe, vShow as Un, provide as ns, reactive as we, createTextVNode as Gn, unref as le, Teleport as zn, toRaw as ze } 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 ge = typeof window < "u";
|
|
8
|
-
let ie,
|
|
8
|
+
let ie, Te;
|
|
9
9
|
if (process.env.NODE_ENV !== "production") {
|
|
10
10
|
const e = ge && 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), Te = (t, n, o) => {
|
|
12
12
|
e.measure(t, n, o), e.clearMarks(n), e.clearMarks(o);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return t.length === 1 &&
|
|
15
|
+
const os = /\{([0-9a-zA-Z]+)\}/g;
|
|
16
|
+
function Ct(e, ...t) {
|
|
17
|
+
return t.length === 1 && x(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(os, (n, o) => t.hasOwnProperty(o) ? t[o] : "");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const ss = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", he = (e) => ss ? Symbol(e) : e, rs = (e, t, n) => as({ l: e, k: t, s: n }), as = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), K = (e) => typeof e == "number" && isFinite(e), ls = (e) => Pt(e) === "[object Date]", et = (e) => Pt(e) === "[object RegExp]", st = (e) => M(e) && Object.keys(e).length === 0;
|
|
20
|
+
function Ve(e, t) {
|
|
21
21
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
22
22
|
}
|
|
23
23
|
const ne = Object.assign;
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
function
|
|
24
|
+
let Ht;
|
|
25
|
+
const At = () => Ht || (Ht = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
26
|
+
function jt(e) {
|
|
27
27
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
28
28
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
return
|
|
29
|
+
const is = Object.prototype.hasOwnProperty;
|
|
30
|
+
function Dt(e, t) {
|
|
31
|
+
return is.call(e, t);
|
|
32
32
|
}
|
|
33
|
-
const z = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", G = (e) => typeof e == "boolean",
|
|
34
|
-
function
|
|
33
|
+
const z = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", G = (e) => typeof e == "boolean", x = (e) => e !== null && typeof e == "object", Hn = Object.prototype.toString, Pt = (e) => Hn.call(e), M = (e) => Pt(e) === "[object Object]", cs = (e) => e == null ? "" : z(e) || M(e) && e.toString === Hn ? JSON.stringify(e, null, 2) : String(e), Wt = 2;
|
|
34
|
+
function us(e, t = 0, n = e.length) {
|
|
35
35
|
const o = e.split(/\r?\n/);
|
|
36
36
|
let s = 0;
|
|
37
37
|
const a = [];
|
|
38
38
|
for (let r = 0; r < o.length; r++)
|
|
39
39
|
if (s += o[r].length + 1, s >= t) {
|
|
40
|
-
for (let l = r -
|
|
40
|
+
for (let l = r - Wt; l <= r + Wt || n > s; l++) {
|
|
41
41
|
if (l < 0 || l >= o.length)
|
|
42
42
|
continue;
|
|
43
43
|
const i = l + 1;
|
|
@@ -97,7 +97,7 @@ const J = {
|
|
|
97
97
|
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
98
98
|
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
99
99
|
__EXTEND_POINT__: 15
|
|
100
|
-
},
|
|
100
|
+
}, ds = {
|
|
101
101
|
[J.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
102
102
|
[J.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
103
103
|
[J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
@@ -114,7 +114,7 @@ const J = {
|
|
|
114
114
|
[J.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
115
115
|
};
|
|
116
116
|
function Wn(e, t, n = {}) {
|
|
117
|
-
const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ?
|
|
117
|
+
const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ? Ct((s || ds)[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
|
/*!
|
|
@@ -131,25 +131,25 @@ const Bn = {
|
|
|
131
131
|
* (c) 2022 kazuya kawaguchi
|
|
132
132
|
* Released under the MIT License.
|
|
133
133
|
*/
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const be = [];
|
|
135
|
+
be[0] = {
|
|
136
136
|
w: [0],
|
|
137
137
|
i: [3, 0],
|
|
138
138
|
["["]: [4],
|
|
139
139
|
o: [7]
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
be[1] = {
|
|
142
142
|
w: [1],
|
|
143
143
|
["."]: [2],
|
|
144
144
|
["["]: [4],
|
|
145
145
|
o: [7]
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
be[2] = {
|
|
148
148
|
w: [2],
|
|
149
149
|
i: [3, 0],
|
|
150
150
|
[0]: [3, 0]
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
be[3] = {
|
|
153
153
|
i: [3, 0],
|
|
154
154
|
[0]: [3, 0],
|
|
155
155
|
w: [1, 1],
|
|
@@ -157,7 +157,7 @@ we[3] = {
|
|
|
157
157
|
["["]: [4, 1],
|
|
158
158
|
o: [7, 1]
|
|
159
159
|
};
|
|
160
|
-
|
|
160
|
+
be[4] = {
|
|
161
161
|
["'"]: [5, 0],
|
|
162
162
|
['"']: [6, 0],
|
|
163
163
|
["["]: [
|
|
@@ -168,25 +168,25 @@ we[4] = {
|
|
|
168
168
|
o: 8,
|
|
169
169
|
l: [4, 0]
|
|
170
170
|
};
|
|
171
|
-
|
|
171
|
+
be[5] = {
|
|
172
172
|
["'"]: [4, 0],
|
|
173
173
|
o: 8,
|
|
174
174
|
l: [5, 0]
|
|
175
175
|
};
|
|
176
|
-
|
|
176
|
+
be[6] = {
|
|
177
177
|
['"']: [4, 0],
|
|
178
178
|
o: 8,
|
|
179
179
|
l: [6, 0]
|
|
180
180
|
};
|
|
181
|
-
const
|
|
182
|
-
function
|
|
183
|
-
return
|
|
181
|
+
const fs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
182
|
+
function _s(e) {
|
|
183
|
+
return fs.test(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ms(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 ps(e) {
|
|
190
190
|
if (e == null)
|
|
191
191
|
return "o";
|
|
192
192
|
switch (e.charCodeAt(0)) {
|
|
@@ -211,11 +211,11 @@ function _s(e) {
|
|
|
211
211
|
}
|
|
212
212
|
return "i";
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function gs(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 : _s(t) ? ms(t) : "*" + t;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function hs(e) {
|
|
219
219
|
const t = [];
|
|
220
220
|
let n = -1, o = 0, s = 0, a, r, l, i, c, m, f;
|
|
221
221
|
const u = [];
|
|
@@ -229,7 +229,7 @@ function ps(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 = gs(r), r === !1))
|
|
233
233
|
return !1;
|
|
234
234
|
u[1]();
|
|
235
235
|
}
|
|
@@ -241,21 +241,21 @@ function ps(e) {
|
|
|
241
241
|
}
|
|
242
242
|
for (; o !== null; )
|
|
243
243
|
if (n++, a = e[n], !(a === "\\" && d())) {
|
|
244
|
-
if (i =
|
|
244
|
+
if (i = ps(a), f = be[o], c = f[i] || f.l || 8, c === 8 || (o = c[0], c[1] !== void 0 && (m = u[c[1]], m && (l = a, m() === !1))))
|
|
245
245
|
return;
|
|
246
246
|
if (o === 7)
|
|
247
247
|
return t;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
const
|
|
251
|
-
function
|
|
252
|
-
return
|
|
250
|
+
const Bt = /* @__PURE__ */ new Map();
|
|
251
|
+
function vs(e, t) {
|
|
252
|
+
return x(e) ? e[t] : null;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
if (!
|
|
254
|
+
function ys(e, t) {
|
|
255
|
+
if (!x(e))
|
|
256
256
|
return null;
|
|
257
|
-
let n =
|
|
258
|
-
if (n || (n =
|
|
257
|
+
let n = Bt.get(t);
|
|
258
|
+
if (n || (n = hs(t), n && Bt.set(t, n)), !n)
|
|
259
259
|
return null;
|
|
260
260
|
const o = n.length;
|
|
261
261
|
let s = e, a = 0;
|
|
@@ -267,33 +267,33 @@ function hs(e, t) {
|
|
|
267
267
|
}
|
|
268
268
|
return s;
|
|
269
269
|
}
|
|
270
|
-
const
|
|
271
|
-
function
|
|
270
|
+
const Es = (e) => e, ws = (e) => "", bs = "text", Ls = (e) => e.length === 0 ? "" : e.join(""), Os = cs;
|
|
271
|
+
function Kt(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 Is(e) {
|
|
275
|
+
const t = K(e.pluralIndex) ? e.pluralIndex : -1;
|
|
276
|
+
return e.named && (K(e.named.count) || K(e.named.n)) ? K(e.named.count) ? e.named.count : K(e.named.n) ? e.named.n : t : t;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Ts(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
|
-
|
|
281
|
+
function Ns(e = {}) {
|
|
282
|
+
const t = e.locale, n = Is(e), o = x(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Kt, s = x(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? Kt : void 0, a = (g) => g[o(n, g.length, s)], r = e.list || [], l = (g) => r[g], i = e.named || {};
|
|
283
|
+
K(e.pluralIndex) && Ts(n, i);
|
|
284
284
|
const c = (g) => i[g];
|
|
285
285
|
function m(g) {
|
|
286
|
-
const w = W(e.messages) ? e.messages(g) :
|
|
287
|
-
return w || (e.parent ? e.parent.message(g) :
|
|
286
|
+
const w = W(e.messages) ? e.messages(g) : x(e.messages) ? e.messages[g] : !1;
|
|
287
|
+
return w || (e.parent ? e.parent.message(g) : ws);
|
|
288
288
|
}
|
|
289
|
-
const f = (g) => e.modifiers ? e.modifiers[g] :
|
|
289
|
+
const f = (g) => e.modifiers ? e.modifiers[g] : Es, u = M(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ls, d = M(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Os, p = M(e.processor) && L(e.processor.type) ? e.processor.type : bs, y = {
|
|
290
290
|
list: l,
|
|
291
291
|
named: c,
|
|
292
292
|
plural: a,
|
|
293
293
|
linked: (g, ...w) => {
|
|
294
294
|
const [S, T] = w;
|
|
295
295
|
let E = "text", P = "";
|
|
296
|
-
w.length === 1 ?
|
|
296
|
+
w.length === 1 ? x(S) ? (P = S.modifier || P, E = S.type || E) : L(S) && (P = S || P) : w.length === 2 && (L(S) && (P = S || P), L(T) && (E = T || E));
|
|
297
297
|
let $ = m(g)(y);
|
|
298
298
|
return E === "vnode" && z($) && P && ($ = $[0]), P ? f(P)($, E) : $;
|
|
299
299
|
},
|
|
@@ -304,21 +304,21 @@ function Is(e = {}) {
|
|
|
304
304
|
};
|
|
305
305
|
return y;
|
|
306
306
|
}
|
|
307
|
-
let
|
|
308
|
-
function
|
|
309
|
-
|
|
307
|
+
let Be = null;
|
|
308
|
+
function Ss(e) {
|
|
309
|
+
Be = e;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
|
|
311
|
+
function Cs(e, t, n) {
|
|
312
|
+
Be && Be.emit(Bn.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 As = /* @__PURE__ */ Ds(Bn.FunctionTranslate);
|
|
320
|
+
function Ds(e) {
|
|
321
|
+
return (t) => Be && Be.emit(e, t);
|
|
322
322
|
}
|
|
323
323
|
const ae = {
|
|
324
324
|
NOT_FOUND_KEY: 1,
|
|
@@ -328,7 +328,7 @@ const ae = {
|
|
|
328
328
|
CANNOT_FORMAT_DATE: 5,
|
|
329
329
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
330
330
|
__EXTEND_POINT__: 7
|
|
331
|
-
},
|
|
331
|
+
}, Ps = {
|
|
332
332
|
[ae.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
333
333
|
[ae.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
334
334
|
[ae.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -336,17 +336,17 @@ const ae = {
|
|
|
336
336
|
[ae.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
337
337
|
[ae.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
|
|
338
338
|
};
|
|
339
|
-
function
|
|
340
|
-
return
|
|
339
|
+
function Re(e, ...t) {
|
|
340
|
+
return Ct(Ps[e], ...t);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function $s(e, t, n) {
|
|
343
343
|
return [.../* @__PURE__ */ new Set([
|
|
344
344
|
n,
|
|
345
|
-
...z(t) ? t :
|
|
345
|
+
...z(t) ? t : x(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
346
346
|
])];
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
const o = L(n) ? n :
|
|
348
|
+
function Kn(e, t, n) {
|
|
349
|
+
const o = L(n) ? n : $t, s = e;
|
|
350
350
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
351
351
|
let a = s.__localeChainCache.get(o);
|
|
352
352
|
if (!a) {
|
|
@@ -363,20 +363,20 @@ function Yt(e, t, n) {
|
|
|
363
363
|
let o = !0;
|
|
364
364
|
for (let s = 0; s < t.length && G(o); s++) {
|
|
365
365
|
const a = t[s];
|
|
366
|
-
L(a) && (o =
|
|
366
|
+
L(a) && (o = Ms(e, t[s], n));
|
|
367
367
|
}
|
|
368
368
|
return o;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ms(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 = ks(e, a, n), s.splice(-1, 1);
|
|
376
376
|
} while (s.length && o === !0);
|
|
377
377
|
return o;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function ks(e, t, n) {
|
|
380
380
|
let o = !1;
|
|
381
381
|
if (!e.includes(t) && (o = !0, t)) {
|
|
382
382
|
o = t[t.length - 1] !== "!";
|
|
@@ -385,37 +385,37 @@ function $s(e, t, n) {
|
|
|
385
385
|
}
|
|
386
386
|
return o;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const Rs = "9.2.2", rt = -1, $t = "en-US", tt = "", Xt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
389
|
+
function xs() {
|
|
390
390
|
return {
|
|
391
|
-
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" &&
|
|
392
|
-
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" &&
|
|
393
|
-
capitalize: (e, t) => t === "text" && L(e) ?
|
|
391
|
+
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
392
|
+
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && x(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
393
|
+
capitalize: (e, t) => t === "text" && L(e) ? Xt(e) : t === "vnode" && x(e) && "__v_isVNode" in e ? Xt(e.children) : e
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
let
|
|
397
|
-
function
|
|
398
|
-
|
|
396
|
+
let Fs, Yn;
|
|
397
|
+
function Vs(e) {
|
|
398
|
+
Yn = e;
|
|
399
399
|
}
|
|
400
400
|
let Xn;
|
|
401
|
-
function
|
|
401
|
+
function Us(e) {
|
|
402
402
|
Xn = e;
|
|
403
403
|
}
|
|
404
404
|
let Jn = null;
|
|
405
|
-
const
|
|
405
|
+
const Jt = (e) => {
|
|
406
406
|
Jn = e;
|
|
407
|
-
},
|
|
407
|
+
}, Gs = () => Jn;
|
|
408
408
|
let Qn = null;
|
|
409
|
-
const
|
|
409
|
+
const Qt = (e) => {
|
|
410
410
|
Qn = e;
|
|
411
|
-
},
|
|
412
|
-
let
|
|
413
|
-
function
|
|
414
|
-
const t = L(e.version) ? e.version :
|
|
415
|
-
|
|
411
|
+
}, zs = () => Qn;
|
|
412
|
+
let qt = 0;
|
|
413
|
+
function Hs(e = {}) {
|
|
414
|
+
const t = L(e.version) ? e.version : Rs, n = L(e.locale) ? e.locale : $t, o = z(e.fallbackLocale) || M(e.fallbackLocale) || L(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = M(e.messages) ? e.messages : { [n]: {} }, a = M(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, r = M(e.numberFormats) ? e.numberFormats : { [n]: {} }, l = ne({}, e.modifiers || {}, xs()), i = e.pluralRules || {}, c = W(e.missing) ? e.missing : null, m = G(e.missingWarn) || et(e.missingWarn) ? e.missingWarn : !0, f = G(e.fallbackWarn) || et(e.fallbackWarn) ? e.fallbackWarn : !0, u = !!e.fallbackFormat, d = !!e.unresolving, p = W(e.postTranslation) ? e.postTranslation : null, v = M(e.processor) ? e.processor : null, y = G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, g = !!e.escapeParameter, w = W(e.messageCompiler) ? e.messageCompiler : Fs, S = W(e.messageResolver) ? e.messageResolver : Yn || vs, T = W(e.localeFallbacker) ? e.localeFallbacker : Xn || $s, E = x(e.fallbackContext) ? e.fallbackContext : void 0, P = W(e.onWarn) ? e.onWarn : Ve, $ = e, D = x($.__datetimeFormatters) ? $.__datetimeFormatters : /* @__PURE__ */ new Map(), X = x($.__numberFormatters) ? $.__numberFormatters : /* @__PURE__ */ new Map(), q = x($.__meta) ? $.__meta : {};
|
|
415
|
+
qt++;
|
|
416
416
|
const Z = {
|
|
417
417
|
version: t,
|
|
418
|
-
cid:
|
|
418
|
+
cid: qt,
|
|
419
419
|
locale: n,
|
|
420
420
|
fallbackLocale: o,
|
|
421
421
|
messages: s,
|
|
@@ -437,7 +437,7 @@ function Gs(e = {}) {
|
|
|
437
437
|
onWarn: P,
|
|
438
438
|
__meta: q
|
|
439
439
|
};
|
|
440
|
-
return Z.datetimeFormats = a, Z.numberFormats = r, Z.__datetimeFormatters = D, Z.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Z.__v_emitter = $.__v_emitter != null ? $.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
440
|
+
return Z.datetimeFormats = a, Z.numberFormats = r, Z.__datetimeFormatters = D, Z.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Z.__v_emitter = $.__v_emitter != null ? $.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Cs(Z, t, q), Z;
|
|
441
441
|
}
|
|
442
442
|
function at(e, t) {
|
|
443
443
|
return e instanceof RegExp ? e.test(t) : e;
|
|
@@ -445,7 +445,7 @@ function at(e, t) {
|
|
|
445
445
|
function qn(e, t) {
|
|
446
446
|
return e instanceof RegExp ? e.test(t) : e;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Mt(e, t, n, o, s) {
|
|
449
449
|
const { missing: a, onWarn: r } = e;
|
|
450
450
|
if (process.env.NODE_ENV !== "production") {
|
|
451
451
|
const l = e.__v_emitter;
|
|
@@ -460,9 +460,9 @@ function $t(e, t, n, o, s) {
|
|
|
460
460
|
const l = a(e, n, t, s);
|
|
461
461
|
return L(l) ? l : t;
|
|
462
462
|
} else
|
|
463
|
-
return process.env.NODE_ENV !== "production" && qn(o, t) && r(
|
|
463
|
+
return process.env.NODE_ENV !== "production" && qn(o, t) && r(Re(ae.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Ge(e, t, n) {
|
|
466
466
|
const o = e;
|
|
467
467
|
o.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
468
468
|
}
|
|
@@ -473,17 +473,17 @@ const ft = () => ++Zn, ye = {
|
|
|
473
473
|
INVALID_ISO_DATE_ARGUMENT: ft(),
|
|
474
474
|
__EXTEND_POINT__: ft()
|
|
475
475
|
};
|
|
476
|
-
function
|
|
477
|
-
return Wn(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
476
|
+
function Me(e) {
|
|
477
|
+
return Wn(e, null, process.env.NODE_ENV !== "production" ? { messages: js } : void 0);
|
|
478
478
|
}
|
|
479
|
-
const
|
|
479
|
+
const js = {
|
|
480
480
|
[ye.INVALID_ARGUMENT]: "Invalid arguments",
|
|
481
481
|
[ye.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
482
482
|
[ye.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
483
|
-
},
|
|
484
|
-
function
|
|
483
|
+
}, Zt = () => "", me = (e) => W(e);
|
|
484
|
+
function en(e, ...t) {
|
|
485
485
|
const { fallbackFormat: n, postTranslation: o, unresolving: s, messageCompiler: a, fallbackLocale: r, messages: l } = e, [i, c] = pt(...t), m = G(c.missingWarn) ? c.missingWarn : e.missingWarn, f = G(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, u = G(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, d = !!c.resolvedMessage, p = L(c.default) || G(c.default) ? G(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", v = n || p !== "", y = L(c.locale) ? c.locale : e.locale;
|
|
486
|
-
u &&
|
|
486
|
+
u && Ws(c);
|
|
487
487
|
let [g, w, S] = d ? [
|
|
488
488
|
i,
|
|
489
489
|
y,
|
|
@@ -492,14 +492,14 @@ function Zt(e, ...t) {
|
|
|
492
492
|
if (!d && !(L(T) || me(T)) && v && (T = p, E = T), !d && (!(L(T) || me(T)) || !L(w)))
|
|
493
493
|
return s ? rt : i;
|
|
494
494
|
if (process.env.NODE_ENV !== "production" && L(T) && e.messageCompiler == null)
|
|
495
|
-
return
|
|
495
|
+
return Ve(`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
496
|
let P = !1;
|
|
497
497
|
const $ = () => {
|
|
498
498
|
P = !0;
|
|
499
499
|
}, D = me(T) ? T : to(e, i, w, T, E, $);
|
|
500
500
|
if (P)
|
|
501
501
|
return T;
|
|
502
|
-
const X =
|
|
502
|
+
const X = Ys(e, w, S, c), q = Ns(X), Z = Bs(e, D, q), O = o ? o(Z, i) : Z;
|
|
503
503
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
504
504
|
const C = {
|
|
505
505
|
timestamp: Date.now(),
|
|
@@ -508,13 +508,13 @@ function Zt(e, ...t) {
|
|
|
508
508
|
format: L(T) ? T : me(T) ? T.source : "",
|
|
509
509
|
message: O
|
|
510
510
|
};
|
|
511
|
-
C.meta = ne({}, e.__meta,
|
|
511
|
+
C.meta = ne({}, e.__meta, Gs() || {}), As(C);
|
|
512
512
|
}
|
|
513
513
|
return O;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
z(e.list) ? e.list = e.list.map((t) => L(t) ?
|
|
517
|
-
L(e.named[t]) && (e.named[t] =
|
|
515
|
+
function Ws(e) {
|
|
516
|
+
z(e.list) ? e.list = e.list.map((t) => L(t) ? jt(t) : t) : x(e.named) && Object.keys(e.named).forEach((t) => {
|
|
517
|
+
L(e.named[t]) && (e.named[t] = jt(e.named[t]));
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
520
|
function eo(e, t, n, o, s, a) {
|
|
@@ -522,7 +522,7 @@ function eo(e, t, n, o, s, a) {
|
|
|
522
522
|
let f = {}, u, d = null, p = n, v = null;
|
|
523
523
|
const y = "translate";
|
|
524
524
|
for (let g = 0; g < m.length; g++) {
|
|
525
|
-
if (u = v = m[g], process.env.NODE_ENV !== "production" && n !== u && at(s, t) && l(
|
|
525
|
+
if (u = v = m[g], process.env.NODE_ENV !== "production" && n !== u && at(s, t) && l(Re(ae.FALLBACK_TO_TRANSLATE, {
|
|
526
526
|
key: t,
|
|
527
527
|
target: u
|
|
528
528
|
})), process.env.NODE_ENV !== "production" && n !== u) {
|
|
@@ -545,11 +545,11 @@ function eo(e, t, n, o, s, a) {
|
|
|
545
545
|
message: d,
|
|
546
546
|
time: P - w,
|
|
547
547
|
groupId: `${y}:${t}`
|
|
548
|
-
}), S && T && ie &&
|
|
548
|
+
}), S && T && ie && Te && (ie(T), Te("intlify message resolve", S, T));
|
|
549
549
|
}
|
|
550
550
|
if (L(d) || W(d))
|
|
551
551
|
break;
|
|
552
|
-
const E =
|
|
552
|
+
const E = Mt(
|
|
553
553
|
e,
|
|
554
554
|
t,
|
|
555
555
|
u,
|
|
@@ -572,7 +572,7 @@ function to(e, t, n, o, s, a) {
|
|
|
572
572
|
}
|
|
573
573
|
let i = null, c, m;
|
|
574
574
|
process.env.NODE_ENV !== "production" && ge && (i = window.performance.now(), c = "intlify-message-compilation-start", m = "intlify-message-compilation-end", ie && ie(c));
|
|
575
|
-
const f = r(o,
|
|
575
|
+
const f = r(o, Ks(e, n, s, o, l, a));
|
|
576
576
|
if (process.env.NODE_ENV !== "production" && ge) {
|
|
577
577
|
const u = window.performance.now(), d = e.__v_emitter;
|
|
578
578
|
d && i && d.emit("message-compilation", {
|
|
@@ -580,11 +580,11 @@ function to(e, t, n, o, s, a) {
|
|
|
580
580
|
message: o,
|
|
581
581
|
time: u - i,
|
|
582
582
|
groupId: `translate:${t}`
|
|
583
|
-
}), c && m && ie &&
|
|
583
|
+
}), c && m && ie && Te && (ie(m), Te("intlify message compilation", c, m));
|
|
584
584
|
}
|
|
585
585
|
return f.locale = n, f.key = t, f.source = o, f;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Bs(e, t, n) {
|
|
588
588
|
let o = null, s, a;
|
|
589
589
|
process.env.NODE_ENV !== "production" && ge && (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 js(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 && Te && (ie(a), Te("intlify message evaluation", s, a));
|
|
599
599
|
}
|
|
600
600
|
return r;
|
|
601
601
|
}
|
|
602
602
|
function pt(...e) {
|
|
603
603
|
const [t, n, o] = e, s = {};
|
|
604
|
-
if (!L(t) && !
|
|
605
|
-
throw
|
|
606
|
-
const a =
|
|
607
|
-
return
|
|
604
|
+
if (!L(t) && !K(t) && !me(t))
|
|
605
|
+
throw Me(ye.INVALID_ARGUMENT);
|
|
606
|
+
const a = K(t) ? String(t) : (me(t), t);
|
|
607
|
+
return K(n) ? s.plural = n : L(n) ? s.default = n : M(n) && !st(n) ? s.named = n : z(n) && (s.list = n), K(o) ? s.plural = o : L(o) ? s.default = o : M(o) && ne(s, o), [a, s];
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Ks(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 && us(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,10 +623,10 @@ ${i}` : l);
|
|
|
623
623
|
} else
|
|
624
624
|
throw r;
|
|
625
625
|
},
|
|
626
|
-
onCacheKey: (r) =>
|
|
626
|
+
onCacheKey: (r) => rs(t, n, r)
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Ys(e, t, n, o) {
|
|
630
630
|
const { modifiers: s, pluralRules: a, messageResolver: r, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: m } = e, u = {
|
|
631
631
|
locale: t,
|
|
632
632
|
modifiers: s,
|
|
@@ -642,21 +642,21 @@ function Bs(e, t, n, o) {
|
|
|
642
642
|
const g = to(e, d, t, p, d, () => {
|
|
643
643
|
v = !0;
|
|
644
644
|
});
|
|
645
|
-
return v ?
|
|
645
|
+
return v ? Zt : g;
|
|
646
646
|
} else
|
|
647
|
-
return me(p) ? p :
|
|
647
|
+
return me(p) ? p : Zt;
|
|
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), K(o.plural) && (u.pluralIndex = o.plural), u;
|
|
651
651
|
}
|
|
652
|
-
const
|
|
653
|
-
dateTimeFormat:
|
|
654
|
-
numberFormat:
|
|
652
|
+
const tn = typeof Intl < "u", no = {
|
|
653
|
+
dateTimeFormat: tn && typeof Intl.DateTimeFormat < "u",
|
|
654
|
+
numberFormat: tn && typeof Intl.NumberFormat < "u"
|
|
655
655
|
};
|
|
656
|
-
function
|
|
656
|
+
function nn(e, ...t) {
|
|
657
657
|
const { datetimeFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __datetimeFormatters: l } = e;
|
|
658
658
|
if (process.env.NODE_ENV !== "production" && !no.dateTimeFormat)
|
|
659
|
-
return a(
|
|
659
|
+
return a(Re(ae.CANNOT_FORMAT_DATE)), tt;
|
|
660
660
|
const [i, c, m, f] = gt(...t), u = G(m.missingWarn) ? m.missingWarn : e.missingWarn, d = G(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, p = !!m.part, v = L(m.locale) ? m.locale : e.locale, y = r(
|
|
661
661
|
e,
|
|
662
662
|
s,
|
|
@@ -667,7 +667,7 @@ function tn(e, ...t) {
|
|
|
667
667
|
let g = {}, w, S = null, T = v, E = null;
|
|
668
668
|
const P = "datetime format";
|
|
669
669
|
for (let X = 0; X < y.length; X++) {
|
|
670
|
-
if (w = E = y[X], process.env.NODE_ENV !== "production" && v !== w && at(d, i) && a(
|
|
670
|
+
if (w = E = y[X], process.env.NODE_ENV !== "production" && v !== w && at(d, i) && a(Re(ae.FALLBACK_TO_DATE_FORMAT, {
|
|
671
671
|
key: i,
|
|
672
672
|
target: w
|
|
673
673
|
})), process.env.NODE_ENV !== "production" && v !== w) {
|
|
@@ -682,7 +682,7 @@ function tn(e, ...t) {
|
|
|
682
682
|
}
|
|
683
683
|
if (g = n[w] || {}, S = g[i], M(S))
|
|
684
684
|
break;
|
|
685
|
-
|
|
685
|
+
Mt(e, i, w, u, P), T = E;
|
|
686
686
|
}
|
|
687
687
|
if (!M(S) || !L(w))
|
|
688
688
|
return o ? rt : i;
|
|
@@ -719,37 +719,37 @@ function gt(...e) {
|
|
|
719
719
|
if (L(t)) {
|
|
720
720
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
721
721
|
if (!i)
|
|
722
|
-
throw
|
|
722
|
+
throw Me(ye.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 Me(ye.INVALID_ISO_DATE_ARGUMENT);
|
|
729
729
|
}
|
|
730
|
-
} else if (
|
|
730
|
+
} else if (ls(t)) {
|
|
731
731
|
if (isNaN(t.getTime()))
|
|
732
|
-
throw
|
|
732
|
+
throw Me(ye.INVALID_DATE_ARGUMENT);
|
|
733
733
|
l = t;
|
|
734
|
-
} else if (
|
|
734
|
+
} else if (K(t))
|
|
735
735
|
l = t;
|
|
736
736
|
else
|
|
737
|
-
throw
|
|
737
|
+
throw Me(ye.INVALID_ARGUMENT);
|
|
738
738
|
return L(n) ? a.key = n : M(n) && Object.keys(n).forEach((i) => {
|
|
739
739
|
oo.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
740
740
|
}), L(o) ? a.locale = o : M(o) && (r = o), M(s) && (r = s), [a.key || "", l, a, r];
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function on(e, t, n) {
|
|
743
743
|
const o = e;
|
|
744
744
|
for (const s in n) {
|
|
745
745
|
const a = `${t}__${s}`;
|
|
746
746
|
!o.__datetimeFormatters.has(a) || o.__datetimeFormatters.delete(a);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function sn(e, ...t) {
|
|
750
750
|
const { numberFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __numberFormatters: l } = e;
|
|
751
751
|
if (process.env.NODE_ENV !== "production" && !no.numberFormat)
|
|
752
|
-
return a(
|
|
752
|
+
return a(Re(ae.CANNOT_FORMAT_NUMBER)), tt;
|
|
753
753
|
const [i, c, m, f] = ht(...t), u = G(m.missingWarn) ? m.missingWarn : e.missingWarn, d = G(m.fallbackWarn) ? m.fallbackWarn : e.fallbackWarn, p = !!m.part, v = L(m.locale) ? m.locale : e.locale, y = r(
|
|
754
754
|
e,
|
|
755
755
|
s,
|
|
@@ -760,7 +760,7 @@ function on(e, ...t) {
|
|
|
760
760
|
let g = {}, w, S = null, T = v, E = null;
|
|
761
761
|
const P = "number format";
|
|
762
762
|
for (let X = 0; X < y.length; X++) {
|
|
763
|
-
if (w = E = y[X], process.env.NODE_ENV !== "production" && v !== w && at(d, i) && a(
|
|
763
|
+
if (w = E = y[X], process.env.NODE_ENV !== "production" && v !== w && at(d, i) && a(Re(ae.FALLBACK_TO_NUMBER_FORMAT, {
|
|
764
764
|
key: i,
|
|
765
765
|
target: w
|
|
766
766
|
})), process.env.NODE_ENV !== "production" && v !== w) {
|
|
@@ -775,7 +775,7 @@ function on(e, ...t) {
|
|
|
775
775
|
}
|
|
776
776
|
if (g = n[w] || {}, S = g[i], M(S))
|
|
777
777
|
break;
|
|
778
|
-
|
|
778
|
+
Mt(e, i, w, u, P), T = E;
|
|
779
779
|
}
|
|
780
780
|
if (!M(S) || !L(w))
|
|
781
781
|
return o ? rt : i;
|
|
@@ -809,37 +809,37 @@ const so = [
|
|
|
809
809
|
function ht(...e) {
|
|
810
810
|
const [t, n, o, s] = e, a = {};
|
|
811
811
|
let r = {};
|
|
812
|
-
if (!
|
|
813
|
-
throw
|
|
812
|
+
if (!K(t))
|
|
813
|
+
throw Me(ye.INVALID_ARGUMENT);
|
|
814
814
|
const l = t;
|
|
815
815
|
return L(n) ? a.key = n : M(n) && Object.keys(n).forEach((i) => {
|
|
816
816
|
so.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
817
817
|
}), L(o) ? a.locale = o : M(o) && (r = o), M(s) && (r = s), [a.key || "", l, a, r];
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function rn(e, t, n) {
|
|
820
820
|
const o = e;
|
|
821
821
|
for (const s in n) {
|
|
822
822
|
const a = `${t}__${s}`;
|
|
823
823
|
!o.__numberFormatters.has(a) || o.__numberFormatters.delete(a);
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
827
|
-
function
|
|
826
|
+
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (At().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
827
|
+
function Xs() {
|
|
828
828
|
return ro().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
829
829
|
}
|
|
830
830
|
function ro() {
|
|
831
831
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
832
832
|
}
|
|
833
|
-
const
|
|
834
|
-
let
|
|
835
|
-
function
|
|
833
|
+
const Js = typeof Proxy == "function", Qs = "devtools-plugin:setup", qs = "plugin:settings:set";
|
|
834
|
+
let Pe, vt;
|
|
835
|
+
function Zs() {
|
|
836
836
|
var e;
|
|
837
|
-
return
|
|
837
|
+
return Pe !== void 0 || (typeof window < "u" && window.performance ? (Pe = !0, vt = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (Pe = !0, vt = global.perf_hooks.performance) : Pe = !1), Pe;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function er() {
|
|
840
|
+
return Zs() ? vt.now() : Date.now();
|
|
841
841
|
}
|
|
842
|
-
class
|
|
842
|
+
class tr {
|
|
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 Zs {
|
|
|
867
867
|
a = r;
|
|
868
868
|
},
|
|
869
869
|
now() {
|
|
870
|
-
return
|
|
870
|
+
return er();
|
|
871
871
|
}
|
|
872
|
-
}, n && n.on(
|
|
872
|
+
}, n && n.on(qs, (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 Zs {
|
|
|
901
901
|
n.resolve(await this.target[n.method](...n.args));
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
const n = e, o = ro(), s =
|
|
904
|
+
function nr(e, t) {
|
|
905
|
+
const n = e, o = ro(), s = Xs(), a = Js && n.enableEarlyProxy;
|
|
906
906
|
if (s && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
907
|
-
s.emit(
|
|
907
|
+
s.emit(Qs, e, t);
|
|
908
908
|
else {
|
|
909
|
-
const r = a ? new
|
|
909
|
+
const r = a ? new tr(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 _t = {
|
|
|
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
|
-
},
|
|
926
|
+
}, or = {
|
|
927
927
|
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
928
|
-
},
|
|
928
|
+
}, sr = {
|
|
929
929
|
["vue-i18n-timeline"]: 16764185
|
|
930
930
|
};
|
|
931
931
|
/*!
|
|
@@ -933,21 +933,21 @@ const _t = {
|
|
|
933
933
|
* (c) 2022 kazuya kawaguchi
|
|
934
934
|
* Released under the MIT License.
|
|
935
935
|
*/
|
|
936
|
-
const
|
|
937
|
-
function
|
|
936
|
+
const rr = "9.2.2";
|
|
937
|
+
function ar() {
|
|
938
938
|
let e = !1;
|
|
939
|
-
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (
|
|
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
941
|
let ao = ae.__EXTEND_POINT__;
|
|
942
|
-
const
|
|
942
|
+
const $e = () => ++ao, de = {
|
|
943
943
|
FALLBACK_TO_ROOT: ao,
|
|
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
|
-
},
|
|
944
|
+
NOT_SUPPORTED_PRESERVE: $e(),
|
|
945
|
+
NOT_SUPPORTED_FORMATTER: $e(),
|
|
946
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: $e(),
|
|
947
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: $e(),
|
|
948
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: $e(),
|
|
949
|
+
NOT_FOUND_PARENT_SCOPE: $e()
|
|
950
|
+
}, lr = {
|
|
951
951
|
[de.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
952
952
|
[de.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
953
953
|
[de.NOT_SUPPORTED_FORMATTER]: "Not supported 'formatter'.",
|
|
@@ -957,7 +957,7 @@ const Pe = () => ++ao, de = {
|
|
|
957
957
|
[de.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
|
|
958
958
|
};
|
|
959
959
|
function lt(e, ...t) {
|
|
960
|
-
return
|
|
960
|
+
return Ct(lr[e], ...t);
|
|
961
961
|
}
|
|
962
962
|
let lo = J.__EXTEND_POINT__;
|
|
963
963
|
const re = () => ++lo, F = {
|
|
@@ -978,9 +978,9 @@ const re = () => ++lo, F = {
|
|
|
978
978
|
__EXTEND_POINT__: re()
|
|
979
979
|
};
|
|
980
980
|
function ce(e, ...t) {
|
|
981
|
-
return Wn(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
981
|
+
return Wn(e, null, process.env.NODE_ENV !== "production" ? { messages: ir, args: t } : void 0);
|
|
982
982
|
}
|
|
983
|
-
const
|
|
983
|
+
const ir = {
|
|
984
984
|
[F.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
985
985
|
[F.INVALID_ARGUMENT]: "Invalid argument",
|
|
986
986
|
[F.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -995,22 +995,22 @@ const ar = {
|
|
|
995
995
|
[F.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
996
996
|
[F.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
997
|
[F.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
|
-
}, yt = /* @__PURE__ */ he("__transrateVNode"), Et = /* @__PURE__ */ he("__datetimeParts"), wt = /* @__PURE__ */ he("__numberParts"),
|
|
998
|
+
}, yt = /* @__PURE__ */ he("__transrateVNode"), Et = /* @__PURE__ */ he("__datetimeParts"), wt = /* @__PURE__ */ he("__numberParts"), Ke = /* @__PURE__ */ he("__enableEmitter"), bt = /* @__PURE__ */ he("__disableEmitter"), cr = he("__setPluralRules");
|
|
999
999
|
he("__intlifyMeta");
|
|
1000
|
-
const
|
|
1000
|
+
const ur = /* @__PURE__ */ he("__injectWithOption");
|
|
1001
1001
|
function Lt(e) {
|
|
1002
|
-
if (!
|
|
1002
|
+
if (!x(e))
|
|
1003
1003
|
return e;
|
|
1004
1004
|
for (const t in e)
|
|
1005
|
-
if (!!
|
|
1005
|
+
if (!!Dt(e, t))
|
|
1006
1006
|
if (!t.includes("."))
|
|
1007
|
-
|
|
1007
|
+
x(e[t]) && Lt(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], x(s[n[o]]) && Lt(s[n[o]]);
|
|
1014
1014
|
}
|
|
1015
1015
|
return e;
|
|
1016
1016
|
}
|
|
@@ -1019,26 +1019,26 @@ function io(e, t) {
|
|
|
1019
1019
|
if (z(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] || {}, je(c, r[i])) : je(c, r);
|
|
1023
1023
|
} else
|
|
1024
|
-
L(l) &&
|
|
1024
|
+
L(l) && je(JSON.parse(l), r);
|
|
1025
1025
|
}), s == null && a)
|
|
1026
1026
|
for (const l in r)
|
|
1027
|
-
|
|
1027
|
+
Dt(r, l) && Lt(r[l]);
|
|
1028
1028
|
return r;
|
|
1029
1029
|
}
|
|
1030
|
-
const
|
|
1031
|
-
function
|
|
1032
|
-
if (
|
|
1030
|
+
const Je = (e) => !x(e) || z(e);
|
|
1031
|
+
function je(e, t) {
|
|
1032
|
+
if (Je(e) || Je(t))
|
|
1033
1033
|
throw ce(F.INVALID_VALUE);
|
|
1034
1034
|
for (const n in e)
|
|
1035
|
-
|
|
1035
|
+
Dt(e, n) && (Je(e[n]) || Je(t[n]) ? t[n] = e[n] : je(e[n], t[n]));
|
|
1036
1036
|
}
|
|
1037
1037
|
function co(e) {
|
|
1038
1038
|
return e.type;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
let o =
|
|
1040
|
+
function dr(e, t, n) {
|
|
1041
|
+
let o = x(t.messages) ? t.messages : {};
|
|
1042
1042
|
"__i18nGlobal" in n && (o = io(e.locale.value, {
|
|
1043
1043
|
messages: o,
|
|
1044
1044
|
__i18n: n.__i18nGlobal
|
|
@@ -1048,13 +1048,13 @@ function cr(e, t, n) {
|
|
|
1048
1048
|
e.mergeLocaleMessage(a, o[a]);
|
|
1049
1049
|
});
|
|
1050
1050
|
{
|
|
1051
|
-
if (
|
|
1051
|
+
if (x(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 (x(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]);
|
|
@@ -1062,34 +1062,34 @@ function cr(e, t, n) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
return B(
|
|
1065
|
+
function an(e) {
|
|
1066
|
+
return B(ts, null, e, 0);
|
|
1067
1067
|
}
|
|
1068
|
-
const
|
|
1069
|
-
let
|
|
1070
|
-
function
|
|
1068
|
+
const ln = "__INTLIFY_META__";
|
|
1069
|
+
let cn = 0;
|
|
1070
|
+
function un(e) {
|
|
1071
1071
|
return (t, n, o, s) => e(n, o, Nt() || void 0, s);
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1073
|
+
const fr = () => {
|
|
1074
1074
|
const e = Nt();
|
|
1075
1075
|
let t = null;
|
|
1076
|
-
return e && (t = co(e)[
|
|
1076
|
+
return e && (t = co(e)[ln]) ? { [ln]: t } : null;
|
|
1077
1077
|
};
|
|
1078
1078
|
function uo(e = {}, t) {
|
|
1079
1079
|
const { __root: n } = e, o = n === void 0;
|
|
1080
1080
|
let s = G(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1081
1081
|
const a = k(
|
|
1082
|
-
n && s ? n.locale.value : L(e.locale) ? e.locale :
|
|
1082
|
+
n && s ? n.locale.value : L(e.locale) ? e.locale : $t
|
|
1083
1083
|
), r = k(
|
|
1084
1084
|
n && s ? n.fallbackLocale.value : L(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1085
1085
|
), l = k(io(a.value, e)), i = k(M(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = k(M(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1086
|
-
let m = n ? n.missingWarn : G(e.missingWarn) || et(e.missingWarn) ? e.missingWarn : !0, f = n ? n.fallbackWarn : G(e.fallbackWarn) || et(e.fallbackWarn) ? e.fallbackWarn : !0, u = n ? n.fallbackRoot : G(e.fallbackRoot) ? e.fallbackRoot : !0, d = !!e.fallbackFormat, p = W(e.missing) ? e.missing : null, v = W(e.missing) ?
|
|
1086
|
+
let m = n ? n.missingWarn : G(e.missingWarn) || et(e.missingWarn) ? e.missingWarn : !0, f = n ? n.fallbackWarn : G(e.fallbackWarn) || et(e.fallbackWarn) ? e.fallbackWarn : !0, u = n ? n.fallbackRoot : G(e.fallbackRoot) ? e.fallbackRoot : !0, d = !!e.fallbackFormat, p = W(e.missing) ? e.missing : null, v = W(e.missing) ? un(e.missing) : null, y = W(e.postTranslation) ? e.postTranslation : null, g = n ? n.warnHtmlMessage : G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, w = !!e.escapeParameter;
|
|
1087
1087
|
const S = n ? n.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
1088
1088
|
let T = e.pluralRules || n && n.pluralRules, E;
|
|
1089
1089
|
E = (() => {
|
|
1090
|
-
o &&
|
|
1090
|
+
o && Qt(null);
|
|
1091
1091
|
const _ = {
|
|
1092
|
-
version:
|
|
1092
|
+
version: rr,
|
|
1093
1093
|
locale: a.value,
|
|
1094
1094
|
fallbackLocale: r.value,
|
|
1095
1095
|
messages: l.value,
|
|
@@ -1107,9 +1107,9 @@ function uo(e = {}, t) {
|
|
|
1107
1107
|
__meta: { framework: "vue" }
|
|
1108
1108
|
};
|
|
1109
1109
|
_.datetimeFormats = i.value, _.numberFormats = c.value, _.__datetimeFormatters = M(E) ? E.__datetimeFormatters : void 0, _.__numberFormatters = M(E) ? E.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = M(E) ? E.__v_emitter : void 0);
|
|
1110
|
-
const h =
|
|
1111
|
-
return o &&
|
|
1112
|
-
})(),
|
|
1110
|
+
const h = Hs(_);
|
|
1111
|
+
return o && Qt(h), h;
|
|
1112
|
+
})(), Ge(E, a.value, r.value);
|
|
1113
1113
|
function $() {
|
|
1114
1114
|
return [
|
|
1115
1115
|
a.value,
|
|
@@ -1127,86 +1127,86 @@ function uo(e = {}, t) {
|
|
|
1127
1127
|
}), X = U({
|
|
1128
1128
|
get: () => r.value,
|
|
1129
1129
|
set: (_) => {
|
|
1130
|
-
r.value = _, E.fallbackLocale = r.value,
|
|
1130
|
+
r.value = _, E.fallbackLocale = r.value, Ge(E, a.value, _);
|
|
1131
1131
|
}
|
|
1132
1132
|
}), q = U(() => l.value), Z = /* @__PURE__ */ U(() => i.value), O = /* @__PURE__ */ U(() => c.value);
|
|
1133
1133
|
function C() {
|
|
1134
1134
|
return W(y) ? y : null;
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function R(_) {
|
|
1137
1137
|
y = _, E.postTranslation = _;
|
|
1138
1138
|
}
|
|
1139
1139
|
function V() {
|
|
1140
1140
|
return p;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
_ !== null && (v =
|
|
1142
|
+
function Le(_) {
|
|
1143
|
+
_ !== null && (v = un(_)), p = _, E.missing = v;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function Ae(_, h) {
|
|
1146
1146
|
return _ !== "translate" || !h.resolvedMessage;
|
|
1147
1147
|
}
|
|
1148
|
-
const ve = (_, h, se, ee, dt,
|
|
1148
|
+
const ve = (_, h, se, ee, dt, Xe) => {
|
|
1149
1149
|
$();
|
|
1150
|
-
let
|
|
1150
|
+
let De;
|
|
1151
1151
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1152
1152
|
try {
|
|
1153
|
-
|
|
1153
|
+
Jt(fr()), o || (E.fallbackContext = n ? zs() : void 0), De = _(E);
|
|
1154
1154
|
} finally {
|
|
1155
|
-
|
|
1155
|
+
Jt(null), o || (E.fallbackContext = void 0);
|
|
1156
1156
|
}
|
|
1157
1157
|
else
|
|
1158
|
-
|
|
1159
|
-
if (
|
|
1160
|
-
const [
|
|
1161
|
-
if (process.env.NODE_ENV !== "production" && n && L(
|
|
1162
|
-
key:
|
|
1158
|
+
De = _(E);
|
|
1159
|
+
if (K(De) && De === rt) {
|
|
1160
|
+
const [Oe, qo] = h();
|
|
1161
|
+
if (process.env.NODE_ENV !== "production" && n && L(Oe) && Ae(se, qo) && (u && (at(f, Oe) || qn(m, Oe)) && Ve(lt(de.FALLBACK_TO_ROOT, {
|
|
1162
|
+
key: Oe,
|
|
1163
1163
|
type: se
|
|
1164
1164
|
})), process.env.NODE_ENV !== "production")) {
|
|
1165
|
-
const { __v_emitter:
|
|
1166
|
-
|
|
1165
|
+
const { __v_emitter: zt } = E;
|
|
1166
|
+
zt && u && zt.emit("fallback", {
|
|
1167
1167
|
type: se,
|
|
1168
|
-
key:
|
|
1168
|
+
key: Oe,
|
|
1169
1169
|
to: "global",
|
|
1170
|
-
groupId: `${se}:${
|
|
1170
|
+
groupId: `${se}:${Oe}`
|
|
1171
1171
|
});
|
|
1172
1172
|
}
|
|
1173
|
-
return n && u ? ee(n) : dt(
|
|
1173
|
+
return n && u ? ee(n) : dt(Oe);
|
|
1174
1174
|
} else {
|
|
1175
|
-
if (
|
|
1176
|
-
return
|
|
1175
|
+
if (Xe(De))
|
|
1176
|
+
return De;
|
|
1177
1177
|
throw ce(F.UNEXPECTED_RETURN_TYPE);
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
function
|
|
1181
|
-
return ve((h) => Reflect.apply(
|
|
1180
|
+
function Ue(..._) {
|
|
1181
|
+
return ve((h) => Reflect.apply(en, null, [h, ..._]), () => pt(..._), "translate", (h) => Reflect.apply(h.t, h, [..._]), (h) => h, (h) => L(h));
|
|
1182
1182
|
}
|
|
1183
1183
|
function ct(..._) {
|
|
1184
1184
|
const [h, se, ee] = _;
|
|
1185
|
-
if (ee && !
|
|
1185
|
+
if (ee && !x(ee))
|
|
1186
1186
|
throw ce(F.INVALID_ARGUMENT);
|
|
1187
|
-
return
|
|
1187
|
+
return Ue(h, se, ne({ resolvedMessage: !0 }, ee || {}));
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return ve((h) => Reflect.apply(
|
|
1189
|
+
function Ut(..._) {
|
|
1190
|
+
return ve((h) => Reflect.apply(nn, null, [h, ..._]), () => gt(..._), "datetime format", (h) => Reflect.apply(h.d, h, [..._]), () => tt, (h) => L(h));
|
|
1191
1191
|
}
|
|
1192
1192
|
function Ye(..._) {
|
|
1193
|
-
return ve((h) => Reflect.apply(
|
|
1193
|
+
return ve((h) => Reflect.apply(sn, null, [h, ..._]), () => ht(..._), "number format", (h) => Reflect.apply(h.n, h, [..._]), () => tt, (h) => L(h));
|
|
1194
1194
|
}
|
|
1195
1195
|
function ut(_) {
|
|
1196
|
-
return _.map((h) => L(h) ||
|
|
1196
|
+
return _.map((h) => L(h) || K(h) || G(h) ? an(String(h)) : h);
|
|
1197
1197
|
}
|
|
1198
|
-
const
|
|
1198
|
+
const Ro = {
|
|
1199
1199
|
normalize: ut,
|
|
1200
1200
|
interpolate: (_) => _,
|
|
1201
1201
|
type: "vnode"
|
|
1202
1202
|
};
|
|
1203
|
-
function
|
|
1203
|
+
function xo(..._) {
|
|
1204
1204
|
return ve(
|
|
1205
1205
|
(h) => {
|
|
1206
1206
|
let se;
|
|
1207
1207
|
const ee = h;
|
|
1208
1208
|
try {
|
|
1209
|
-
ee.processor =
|
|
1209
|
+
ee.processor = Ro, se = Reflect.apply(en, null, [ee, ..._]);
|
|
1210
1210
|
} finally {
|
|
1211
1211
|
ee.processor = null;
|
|
1212
1212
|
}
|
|
@@ -1215,13 +1215,13 @@ function uo(e = {}, t) {
|
|
|
1215
1215
|
() => pt(..._),
|
|
1216
1216
|
"translate",
|
|
1217
1217
|
(h) => h[yt](..._),
|
|
1218
|
-
(h) => [
|
|
1218
|
+
(h) => [an(h)],
|
|
1219
1219
|
(h) => z(h)
|
|
1220
1220
|
);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Fo(..._) {
|
|
1223
1223
|
return ve(
|
|
1224
|
-
(h) => Reflect.apply(
|
|
1224
|
+
(h) => Reflect.apply(sn, null, [h, ..._]),
|
|
1225
1225
|
() => ht(..._),
|
|
1226
1226
|
"number format",
|
|
1227
1227
|
(h) => h[wt](..._),
|
|
@@ -1229,9 +1229,9 @@ function uo(e = {}, t) {
|
|
|
1229
1229
|
(h) => L(h) || z(h)
|
|
1230
1230
|
);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Vo(..._) {
|
|
1233
1233
|
return ve(
|
|
1234
|
-
(h) => Reflect.apply(
|
|
1234
|
+
(h) => Reflect.apply(nn, null, [h, ..._]),
|
|
1235
1235
|
() => gt(..._),
|
|
1236
1236
|
"datetime format",
|
|
1237
1237
|
(h) => h[Et](..._),
|
|
@@ -1239,70 +1239,70 @@ function uo(e = {}, t) {
|
|
|
1239
1239
|
(h) => L(h) || z(h)
|
|
1240
1240
|
);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Uo(_) {
|
|
1243
1243
|
T = _, E.pluralRules = T;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
const se = L(h) ? h : a.value, ee =
|
|
1245
|
+
function Go(_, h) {
|
|
1246
|
+
const se = L(h) ? h : a.value, ee = Gt(se);
|
|
1247
1247
|
return E.messageResolver(ee, _) !== null;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function zo(_) {
|
|
1250
1250
|
let h = null;
|
|
1251
|
-
const se =
|
|
1251
|
+
const se = Kn(E, r.value, a.value);
|
|
1252
1252
|
for (let ee = 0; ee < se.length; ee++) {
|
|
1253
|
-
const dt = l.value[se[ee]] || {},
|
|
1254
|
-
if (
|
|
1255
|
-
h =
|
|
1253
|
+
const dt = l.value[se[ee]] || {}, Xe = E.messageResolver(dt, _);
|
|
1254
|
+
if (Xe != null) {
|
|
1255
|
+
h = Xe;
|
|
1256
1256
|
break;
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
return h;
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1262
|
-
const h =
|
|
1261
|
+
function Ho(_) {
|
|
1262
|
+
const h = zo(_);
|
|
1263
1263
|
return h != null ? h : n ? n.tm(_) || {} : {};
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function Gt(_) {
|
|
1266
1266
|
return l.value[_] || {};
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function jo(_, h) {
|
|
1269
1269
|
l.value[_] = h, E.messages = l.value;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1272
|
-
l.value[_] = l.value[_] || {},
|
|
1271
|
+
function Wo(_, h) {
|
|
1272
|
+
l.value[_] = l.value[_] || {}, je(h, l.value[_]), E.messages = l.value;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Bo(_) {
|
|
1275
1275
|
return i.value[_] || {};
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
i.value[_] = h, E.datetimeFormats = i.value,
|
|
1277
|
+
function Ko(_, h) {
|
|
1278
|
+
i.value[_] = h, E.datetimeFormats = i.value, on(E, _, h);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
i.value[_] = ne(i.value[_] || {}, h), E.datetimeFormats = i.value,
|
|
1280
|
+
function Yo(_, h) {
|
|
1281
|
+
i.value[_] = ne(i.value[_] || {}, h), E.datetimeFormats = i.value, on(E, _, h);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Xo(_) {
|
|
1284
1284
|
return c.value[_] || {};
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
c.value[_] = h, E.numberFormats = c.value,
|
|
1286
|
+
function Jo(_, h) {
|
|
1287
|
+
c.value[_] = h, E.numberFormats = c.value, rn(E, _, h);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
c.value[_] = ne(c.value[_] || {}, h), E.numberFormats = c.value,
|
|
1289
|
+
function Qo(_, h) {
|
|
1290
|
+
c.value[_] = ne(c.value[_] || {}, h), E.numberFormats = c.value, rn(E, _, h);
|
|
1291
1291
|
}
|
|
1292
|
-
|
|
1293
|
-
s && (a.value = _, E.locale = _,
|
|
1294
|
-
}),
|
|
1295
|
-
s && (r.value = _, E.fallbackLocale = _,
|
|
1292
|
+
cn++, n && ge && (Ie(n.locale, (_) => {
|
|
1293
|
+
s && (a.value = _, E.locale = _, Ge(E, a.value, r.value));
|
|
1294
|
+
}), Ie(n.fallbackLocale, (_) => {
|
|
1295
|
+
s && (r.value = _, E.fallbackLocale = _, Ge(E, a.value, r.value));
|
|
1296
1296
|
}));
|
|
1297
1297
|
const H = {
|
|
1298
|
-
id:
|
|
1298
|
+
id: cn,
|
|
1299
1299
|
locale: D,
|
|
1300
1300
|
fallbackLocale: X,
|
|
1301
1301
|
get inheritLocale() {
|
|
1302
1302
|
return s;
|
|
1303
1303
|
},
|
|
1304
1304
|
set inheritLocale(_) {
|
|
1305
|
-
s = _, _ && n && (a.value = n.locale.value, r.value = n.fallbackLocale.value,
|
|
1305
|
+
s = _, _ && n && (a.value = n.locale.value, r.value = n.fallbackLocale.value, Ge(E, a.value, r.value));
|
|
1306
1306
|
},
|
|
1307
1307
|
get availableLocales() {
|
|
1308
1308
|
return Object.keys(l.value).sort();
|
|
@@ -1353,23 +1353,23 @@ function uo(e = {}, t) {
|
|
|
1353
1353
|
set escapeParameter(_) {
|
|
1354
1354
|
w = _, E.escapeParameter = _;
|
|
1355
1355
|
},
|
|
1356
|
-
t:
|
|
1357
|
-
getLocaleMessage:
|
|
1358
|
-
setLocaleMessage:
|
|
1359
|
-
mergeLocaleMessage:
|
|
1356
|
+
t: Ue,
|
|
1357
|
+
getLocaleMessage: Gt,
|
|
1358
|
+
setLocaleMessage: jo,
|
|
1359
|
+
mergeLocaleMessage: Wo,
|
|
1360
1360
|
getPostTranslationHandler: C,
|
|
1361
|
-
setPostTranslationHandler:
|
|
1361
|
+
setPostTranslationHandler: R,
|
|
1362
1362
|
getMissingHandler: V,
|
|
1363
|
-
setMissingHandler:
|
|
1364
|
-
[
|
|
1363
|
+
setMissingHandler: Le,
|
|
1364
|
+
[cr]: Uo
|
|
1365
1365
|
};
|
|
1366
|
-
return H.datetimeFormats = Z, H.numberFormats = O, H.rt = ct, H.te =
|
|
1366
|
+
return H.datetimeFormats = Z, H.numberFormats = O, H.rt = ct, H.te = Go, H.tm = Ho, H.d = Ut, H.n = Ye, H.getDateTimeFormat = Bo, H.setDateTimeFormat = Ko, H.mergeDateTimeFormat = Yo, H.getNumberFormat = Xo, H.setNumberFormat = Jo, H.mergeNumberFormat = Qo, H[ur] = e.__injectWithOption, H[yt] = xo, H[Et] = Vo, H[wt] = Fo, process.env.NODE_ENV !== "production" && (H[Ke] = (_) => {
|
|
1367
1367
|
E.__v_emitter = _;
|
|
1368
1368
|
}, H[bt] = () => {
|
|
1369
1369
|
E.__v_emitter = void 0;
|
|
1370
1370
|
}), H;
|
|
1371
1371
|
}
|
|
1372
|
-
const
|
|
1372
|
+
const kt = {
|
|
1373
1373
|
tag: {
|
|
1374
1374
|
type: [String, Object]
|
|
1375
1375
|
},
|
|
@@ -1385,7 +1385,7 @@ const Mt = {
|
|
|
1385
1385
|
type: Object
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
function
|
|
1388
|
+
function _r({ 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
|
...z(s.children) ? s.children : [s]
|
|
@@ -1406,9 +1406,9 @@ const mt = {
|
|
|
1406
1406
|
},
|
|
1407
1407
|
plural: {
|
|
1408
1408
|
type: [Number, String],
|
|
1409
|
-
validator: (e) =>
|
|
1409
|
+
validator: (e) => K(e) || !isNaN(e)
|
|
1410
1410
|
}
|
|
1411
|
-
},
|
|
1411
|
+
}, kt),
|
|
1412
1412
|
setup(e, t) {
|
|
1413
1413
|
const { slots: n, attrs: o } = t, s = e.i18n || xt({
|
|
1414
1414
|
useScope: e.scope,
|
|
@@ -1417,12 +1417,12 @@ const mt = {
|
|
|
1417
1417
|
return () => {
|
|
1418
1418
|
const a = Object.keys(n).filter((f) => f !== "_"), r = {};
|
|
1419
1419
|
e.locale && (r.locale = e.locale), e.plural !== void 0 && (r.plural = L(e.plural) ? +e.plural : e.plural);
|
|
1420
|
-
const l =
|
|
1421
|
-
return
|
|
1420
|
+
const l = _r(t, a), i = s[yt](e.keypath, l, r), c = ne({}, o), m = L(e.tag) || x(e.tag) ? e.tag : fo();
|
|
1421
|
+
return Ze(m, c, i);
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
|
-
function
|
|
1425
|
+
function mr(e) {
|
|
1426
1426
|
return z(e) && !L(e[0]);
|
|
1427
1427
|
}
|
|
1428
1428
|
function _o(e, t, n, o) {
|
|
@@ -1430,18 +1430,18 @@ function _o(e, t, n, o) {
|
|
|
1430
1430
|
return () => {
|
|
1431
1431
|
const r = { part: !0 };
|
|
1432
1432
|
let l = {};
|
|
1433
|
-
e.locale && (r.locale = e.locale), L(e.format) ? r.key = e.format :
|
|
1433
|
+
e.locale && (r.locale = e.locale), L(e.format) ? r.key = e.format : x(e.format) && (L(e.format.key) && (r.key = e.format.key), l = Object.keys(e.format).reduce((u, d) => n.includes(d) ? ne({}, u, { [d]: e.format[d] }) : u, {}));
|
|
1434
1434
|
const i = o(e.value, r, l);
|
|
1435
1435
|
let c = [r.key];
|
|
1436
1436
|
z(i) ? c = i.map((u, d) => {
|
|
1437
1437
|
const p = s[u.type], v = p ? p({ [u.type]: u.value, index: d, parts: i }) : [u.value];
|
|
1438
|
-
return
|
|
1438
|
+
return mr(v) && (v[0].key = `${u.type}-${d}`), v;
|
|
1439
1439
|
}) : L(i) && (c = [i]);
|
|
1440
|
-
const m = ne({}, a), f = L(e.tag) ||
|
|
1441
|
-
return
|
|
1440
|
+
const m = ne({}, a), f = L(e.tag) || x(e.tag) ? e.tag : fo();
|
|
1441
|
+
return Ze(f, m, c);
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
const
|
|
1444
|
+
const dn = {
|
|
1445
1445
|
name: "i18n-n",
|
|
1446
1446
|
props: ne({
|
|
1447
1447
|
value: {
|
|
@@ -1451,12 +1451,12 @@ const un = {
|
|
|
1451
1451
|
format: {
|
|
1452
1452
|
type: [String, Object]
|
|
1453
1453
|
}
|
|
1454
|
-
},
|
|
1454
|
+
}, kt),
|
|
1455
1455
|
setup(e, t) {
|
|
1456
1456
|
const n = e.i18n || xt({ useScope: "parent", __useComponent: !0 });
|
|
1457
1457
|
return _o(e, t, so, (...o) => n[wt](...o));
|
|
1458
1458
|
}
|
|
1459
|
-
},
|
|
1459
|
+
}, fn = {
|
|
1460
1460
|
name: "i18n-d",
|
|
1461
1461
|
props: ne({
|
|
1462
1462
|
value: {
|
|
@@ -1466,13 +1466,13 @@ const un = {
|
|
|
1466
1466
|
format: {
|
|
1467
1467
|
type: [String, Object]
|
|
1468
1468
|
}
|
|
1469
|
-
},
|
|
1469
|
+
}, kt),
|
|
1470
1470
|
setup(e, t) {
|
|
1471
1471
|
const n = e.i18n || xt({ useScope: "parent", __useComponent: !0 });
|
|
1472
1472
|
return _o(e, t, oo, (...o) => n[Et](...o));
|
|
1473
1473
|
}
|
|
1474
1474
|
};
|
|
1475
|
-
function
|
|
1475
|
+
function pr(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 _r(e, t) {
|
|
|
1481
1481
|
return o != null ? o.__composer : e.global.__composer;
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function gr(e) {
|
|
1485
1485
|
const t = (r) => {
|
|
1486
1486
|
const { instance: l, modifiers: i, value: c } = r;
|
|
1487
1487
|
if (!l || !l.$)
|
|
1488
1488
|
throw ce(F.UNEXPECTED_ERROR);
|
|
1489
|
-
const m =
|
|
1490
|
-
process.env.NODE_ENV !== "production" && i.preserve &&
|
|
1491
|
-
const f =
|
|
1489
|
+
const m = pr(e, l.$);
|
|
1490
|
+
process.env.NODE_ENV !== "production" && i.preserve && Ve(lt(de.NOT_SUPPORTED_PRESERVE));
|
|
1491
|
+
const f = _n(c);
|
|
1492
1492
|
return [
|
|
1493
|
-
Reflect.apply(m.t, m, [...
|
|
1493
|
+
Reflect.apply(m.t, m, [...mn(f)]),
|
|
1494
1494
|
m
|
|
1495
1495
|
];
|
|
1496
1496
|
};
|
|
1497
1497
|
return {
|
|
1498
1498
|
created: (r, l) => {
|
|
1499
1499
|
const [i, c] = t(l);
|
|
1500
|
-
ge && e.global === c && (r.__i18nWatcher =
|
|
1500
|
+
ge && e.global === c && (r.__i18nWatcher = Ie(c.locale, () => {
|
|
1501
1501
|
l.instance && l.instance.$forceUpdate();
|
|
1502
1502
|
})), r.__composer = c, r.textContent = i;
|
|
1503
1503
|
},
|
|
@@ -1506,9 +1506,9 @@ function mr(e) {
|
|
|
1506
1506
|
},
|
|
1507
1507
|
beforeUpdate: (r, { value: l }) => {
|
|
1508
1508
|
if (r.__composer) {
|
|
1509
|
-
const i = r.__composer, c =
|
|
1509
|
+
const i = r.__composer, c = _n(l);
|
|
1510
1510
|
r.textContent = Reflect.apply(i.t, i, [
|
|
1511
|
-
...
|
|
1511
|
+
...mn(c)
|
|
1512
1512
|
]);
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
@@ -1518,7 +1518,7 @@ function mr(e) {
|
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function _n(e) {
|
|
1522
1522
|
if (L(e))
|
|
1523
1523
|
return { path: e };
|
|
1524
1524
|
if (M(e)) {
|
|
@@ -1528,22 +1528,22 @@ function fn(e) {
|
|
|
1528
1528
|
} else
|
|
1529
1529
|
throw ce(F.INVALID_VALUE);
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function mn(e) {
|
|
1532
1532
|
const { path: t, locale: n, args: o, choice: s, plural: a } = e, r = {}, l = o || {};
|
|
1533
|
-
return L(n) && (r.locale = n),
|
|
1533
|
+
return L(n) && (r.locale = n), K(s) && (r.plural = s), K(a) && (r.plural = a), [t, l, r];
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function hr(e, t, ...n) {
|
|
1536
1536
|
const o = M(n[0]) ? n[0] : {}, s = !!o.useI18nComponentName, a = G(o.globalInstall) ? o.globalInstall : !0;
|
|
1537
|
-
process.env.NODE_ENV !== "production" && a && s &&
|
|
1537
|
+
process.env.NODE_ENV !== "production" && a && s && Ve(lt(de.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
1538
1538
|
name: mt.name
|
|
1539
|
-
})), a && (e.component(s ? "i18n" : mt.name, mt), e.component(
|
|
1539
|
+
})), a && (e.component(s ? "i18n" : mt.name, mt), e.component(dn.name, dn), e.component(fn.name, fn)), e.directive("t", gr(t));
|
|
1540
1540
|
}
|
|
1541
1541
|
const mo = "vue-i18n: composer properties";
|
|
1542
1542
|
let Ot;
|
|
1543
|
-
async function
|
|
1543
|
+
async function vr(e, t) {
|
|
1544
1544
|
return new Promise((n, o) => {
|
|
1545
1545
|
try {
|
|
1546
|
-
|
|
1546
|
+
nr({
|
|
1547
1547
|
id: "vue-devtools-plugin-vue-i18n",
|
|
1548
1548
|
label: _t["vue-devtools-plugin-vue-i18n"],
|
|
1549
1549
|
packageName: "vue-i18n",
|
|
@@ -1553,36 +1553,36 @@ async function gr(e, t) {
|
|
|
1553
1553
|
app: e
|
|
1554
1554
|
}, (s) => {
|
|
1555
1555
|
Ot = s, s.on.visitComponentTree(({ componentInstance: r, treeNode: l }) => {
|
|
1556
|
-
|
|
1556
|
+
yr(r, l, t);
|
|
1557
1557
|
}), s.on.inspectComponent(({ componentInstance: r, instanceData: l }) => {
|
|
1558
|
-
r.vnode.el && r.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer &&
|
|
1558
|
+
r.vnode.el && r.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer && pn(l, r.vnode.el.__VUE_I18N__) : pn(l, r.vnode.el.__VUE_I18N__));
|
|
1559
1559
|
}), s.addInspector({
|
|
1560
1560
|
id: "vue-i18n-resource-inspector",
|
|
1561
1561
|
label: _t["vue-i18n-resource-inspector"],
|
|
1562
1562
|
icon: "language",
|
|
1563
|
-
treeFilterPlaceholder:
|
|
1563
|
+
treeFilterPlaceholder: or["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" && Or(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(), Tr(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 = Ir(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" && Sr(r, t);
|
|
1582
1582
|
}), s.addTimelineLayer({
|
|
1583
1583
|
id: "vue-i18n-timeline",
|
|
1584
1584
|
label: _t["vue-i18n-timeline"],
|
|
1585
|
-
color:
|
|
1585
|
+
color: sr["vue-i18n-timeline"]
|
|
1586
1586
|
}), n(!0);
|
|
1587
1587
|
});
|
|
1588
1588
|
} catch (s) {
|
|
@@ -1593,7 +1593,7 @@ async function gr(e, t) {
|
|
|
1593
1593
|
function po(e) {
|
|
1594
1594
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function yr(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 = {
|
|
@@ -1604,7 +1604,7 @@ function hr(e, t, n) {
|
|
|
1604
1604
|
t.tags.push(s);
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function pn(e, t) {
|
|
1608
1608
|
const n = mo;
|
|
1609
1609
|
e.state.push({
|
|
1610
1610
|
type: n,
|
|
@@ -1630,7 +1630,7 @@ function mn(e, t) {
|
|
|
1630
1630
|
type: n,
|
|
1631
1631
|
key: "messages",
|
|
1632
1632
|
editable: !1,
|
|
1633
|
-
value:
|
|
1633
|
+
value: Rt(t.messages.value)
|
|
1634
1634
|
}), e.state.push({
|
|
1635
1635
|
type: n,
|
|
1636
1636
|
key: "datetimeFormats",
|
|
@@ -1643,27 +1643,27 @@ function mn(e, t) {
|
|
|
1643
1643
|
value: t.numberFormats.value
|
|
1644
1644
|
});
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function Rt(e) {
|
|
1647
1647
|
const t = {};
|
|
1648
1648
|
return Object.keys(e).forEach((n) => {
|
|
1649
1649
|
const o = e[n];
|
|
1650
|
-
W(o) && "source" in o ? t[n] =
|
|
1650
|
+
W(o) && "source" in o ? t[n] = Lr(o) : x(o) ? t[n] = Rt(o) : t[n] = o;
|
|
1651
1651
|
}), t;
|
|
1652
1652
|
}
|
|
1653
|
-
const
|
|
1653
|
+
const Er = {
|
|
1654
1654
|
"<": "<",
|
|
1655
1655
|
">": ">",
|
|
1656
1656
|
'"': """,
|
|
1657
1657
|
"&": "&"
|
|
1658
1658
|
};
|
|
1659
|
-
function
|
|
1660
|
-
return e.replace(/[<>"&]/g,
|
|
1659
|
+
function wr(e) {
|
|
1660
|
+
return e.replace(/[<>"&]/g, br);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
return
|
|
1662
|
+
function br(e) {
|
|
1663
|
+
return Er[e] || e;
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1666
|
-
const t = e.source ? `("${
|
|
1665
|
+
function Lr(e) {
|
|
1666
|
+
const t = e.source ? `("${wr(e.source)}")` : "(?)";
|
|
1667
1667
|
return {
|
|
1668
1668
|
_custom: {
|
|
1669
1669
|
type: "function",
|
|
@@ -1671,7 +1671,7 @@ function wr(e) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function Or(e, t) {
|
|
1675
1675
|
e.rootNodes.push({
|
|
1676
1676
|
id: "global",
|
|
1677
1677
|
label: "Global Scope"
|
|
@@ -1685,7 +1685,7 @@ function br(e, t) {
|
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Ir(e, t) {
|
|
1689
1689
|
let n = null;
|
|
1690
1690
|
if (e !== "global") {
|
|
1691
1691
|
for (const [o, s] of t.__instances.entries())
|
|
@@ -1704,11 +1704,11 @@ function go(e, t) {
|
|
|
1704
1704
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1707
|
+
function Tr(e, t) {
|
|
1708
1708
|
const n = go(e.nodeId, t);
|
|
1709
|
-
return n && (e.state =
|
|
1709
|
+
return n && (e.state = Nr(n)), null;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Nr(e) {
|
|
1712
1712
|
const t = {}, n = "Locale related info", o = [
|
|
1713
1713
|
{
|
|
1714
1714
|
type: n,
|
|
@@ -1741,7 +1741,7 @@ function Ir(e) {
|
|
|
1741
1741
|
type: s,
|
|
1742
1742
|
key: "messages",
|
|
1743
1743
|
editable: !1,
|
|
1744
|
-
value:
|
|
1744
|
+
value: Rt(e.messages.value)
|
|
1745
1745
|
}
|
|
1746
1746
|
];
|
|
1747
1747
|
t[s] = a;
|
|
@@ -1783,16 +1783,16 @@ function It(e, t) {
|
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Sr(e, t) {
|
|
1787
1787
|
const n = go(e.nodeId, t);
|
|
1788
1788
|
if (n) {
|
|
1789
1789
|
const [o] = e.path;
|
|
1790
|
-
o === "locale" && L(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (L(e.state.value) || z(e.state.value) ||
|
|
1790
|
+
o === "locale" && L(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (L(e.state.value) || z(e.state.value) || x(e.state.value)) ? n.fallbackLocale.value = e.state.value : o === "inheritLocale" && G(e.state.value) && (n.inheritLocale = e.state.value);
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
|
-
const
|
|
1794
|
-
function
|
|
1795
|
-
const n = G(e.globalInjection) ? e.globalInjection : !0, o = !0, s = /* @__PURE__ */ new Map(), [a, r] =
|
|
1793
|
+
const Cr = /* @__PURE__ */ he("global-vue-i18n");
|
|
1794
|
+
function Ar(e = {}, t) {
|
|
1795
|
+
const n = G(e.globalInjection) ? e.globalInjection : !0, o = !0, s = /* @__PURE__ */ new Map(), [a, r] = Dr(e), l = he(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
1796
1796
|
function i(f) {
|
|
1797
1797
|
return s.get(f) || null;
|
|
1798
1798
|
}
|
|
@@ -1811,17 +1811,17 @@ function Sr(e = {}, t) {
|
|
|
1811
1811
|
return o;
|
|
1812
1812
|
},
|
|
1813
1813
|
async install(u, ...d) {
|
|
1814
|
-
process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = l, u.provide(u.__VUE_I18N_SYMBOL__, f), n &&
|
|
1814
|
+
process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = l, u.provide(u.__VUE_I18N_SYMBOL__, f), n && Vr(u, f.global), hr(u, f, ...d);
|
|
1815
1815
|
const p = u.unmount;
|
|
1816
1816
|
if (u.unmount = () => {
|
|
1817
1817
|
f.dispose(), p();
|
|
1818
1818
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
1819
|
-
if (!await
|
|
1819
|
+
if (!await vr(u, f))
|
|
1820
1820
|
throw ce(F.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
1821
1821
|
const y = jn();
|
|
1822
1822
|
{
|
|
1823
1823
|
const g = r;
|
|
1824
|
-
g[
|
|
1824
|
+
g[Ke] && g[Ke](y);
|
|
1825
1825
|
}
|
|
1826
1826
|
y.on("*", It);
|
|
1827
1827
|
}
|
|
@@ -1846,23 +1846,23 @@ function xt(e = {}) {
|
|
|
1846
1846
|
throw ce(F.MUST_BE_CALL_SETUP_TOP);
|
|
1847
1847
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
1848
1848
|
throw ce(F.NOT_INSLALLED);
|
|
1849
|
-
const n =
|
|
1849
|
+
const n = Pr(t), o = Mr(n), s = co(t), a = $r(e, s);
|
|
1850
1850
|
if (a === "global")
|
|
1851
|
-
return
|
|
1851
|
+
return dr(o, e, s), o;
|
|
1852
1852
|
if (a === "parent") {
|
|
1853
|
-
let i =
|
|
1854
|
-
return i == null && (process.env.NODE_ENV !== "production" &&
|
|
1853
|
+
let i = kr(n, t, e.__useComponent);
|
|
1854
|
+
return i == null && (process.env.NODE_ENV !== "production" && Ve(lt(de.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 = uo(i),
|
|
1860
|
+
"__i18n" in s && (i.__i18n = s.__i18n), o && (i.__root = o), l = uo(i), Rr(r, t, l), r.__setInstance(t, l);
|
|
1861
1861
|
}
|
|
1862
1862
|
return l;
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1865
|
-
const o =
|
|
1864
|
+
function Dr(e, t, n) {
|
|
1865
|
+
const o = Zo();
|
|
1866
1866
|
{
|
|
1867
1867
|
const s = o.run(() => uo(e));
|
|
1868
1868
|
if (s == null)
|
|
@@ -1870,21 +1870,21 @@ function Cr(e, t, n) {
|
|
|
1870
1870
|
return [o, s];
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function Pr(e) {
|
|
1874
1874
|
{
|
|
1875
|
-
const t =
|
|
1875
|
+
const t = St(e.isCE ? Cr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1876
1876
|
if (!t)
|
|
1877
1877
|
throw ce(e.isCE ? F.NOT_INSLALLED_WITH_PROVIDE : F.UNEXPECTED_ERROR);
|
|
1878
1878
|
return t;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function $r(e, t) {
|
|
1882
1882
|
return st(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function Mr(e) {
|
|
1885
1885
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function kr(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 $r(e, t, n = !1) {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
return o;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Rr(e, t, n) {
|
|
1900
1900
|
let o = null;
|
|
1901
1901
|
xe(() => {
|
|
1902
1902
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
1903
1903
|
t.vnode.el.__VUE_I18N__ = n, o = jn();
|
|
1904
1904
|
const s = n;
|
|
1905
|
-
s[
|
|
1905
|
+
s[Ke] && s[Ke](o), o.on("*", It);
|
|
1906
1906
|
}
|
|
1907
1907
|
}, t), ot(() => {
|
|
1908
1908
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
@@ -1913,18 +1913,18 @@ function Mr(e, t, n) {
|
|
|
1913
1913
|
e.__deleteInstance(t);
|
|
1914
1914
|
}, t);
|
|
1915
1915
|
}
|
|
1916
|
-
const
|
|
1916
|
+
const xr = [
|
|
1917
1917
|
"locale",
|
|
1918
1918
|
"fallbackLocale",
|
|
1919
1919
|
"availableLocales"
|
|
1920
|
-
],
|
|
1921
|
-
function
|
|
1920
|
+
], Fr = ["t", "rt", "d", "n", "tm"];
|
|
1921
|
+
function Vr(e, t) {
|
|
1922
1922
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1923
|
-
|
|
1923
|
+
xr.forEach((o) => {
|
|
1924
1924
|
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1925
1925
|
if (!s)
|
|
1926
1926
|
throw ce(F.UNEXPECTED_ERROR);
|
|
1927
|
-
const a =
|
|
1927
|
+
const a = es(s.value) ? {
|
|
1928
1928
|
get() {
|
|
1929
1929
|
return s.value.value;
|
|
1930
1930
|
},
|
|
@@ -1937,22 +1937,22 @@ function Rr(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, Fr.forEach((o) => {
|
|
1941
1941
|
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1942
1942
|
if (!s || !s.value)
|
|
1943
1943
|
throw ce(F.UNEXPECTED_ERROR);
|
|
1944
1944
|
Object.defineProperty(e.config.globalProperties, `$${o}`, s);
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1947
|
+
Vs(ys);
|
|
1948
|
+
Us(Kn);
|
|
1949
|
+
ar();
|
|
1950
1950
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1951
|
-
const e =
|
|
1952
|
-
e.__INTLIFY__ = !0,
|
|
1951
|
+
const e = At();
|
|
1952
|
+
e.__INTLIFY__ = !0, Ss(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
1953
1953
|
}
|
|
1954
1954
|
process.env.NODE_ENV;
|
|
1955
|
-
const
|
|
1955
|
+
const Ur = {
|
|
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\u8BBE\u5907"]);
|
|
@@ -1985,10 +1985,10 @@ const Fr = {
|
|
|
1985
1985
|
const { normalize: t } = e;
|
|
1986
1986
|
return t(["\u5217\u6570"]);
|
|
1987
1987
|
}
|
|
1988
|
-
},
|
|
1988
|
+
}, Gr = {
|
|
1989
1989
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
1990
1990
|
const { normalize: t } = e;
|
|
1991
|
-
return t(["
|
|
1991
|
+
return t(["Online Only"]);
|
|
1992
1992
|
},
|
|
1993
1993
|
"qing-xuan-ze-bu-ju-yang-shi": (e) => {
|
|
1994
1994
|
const { normalize: t } = e;
|
|
@@ -2020,43 +2020,52 @@ const Fr = {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
2022
|
var ho = /* @__PURE__ */ ((e) => (e.zh = "zh", e.en = "en", e))(ho || {});
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2025
|
-
|
|
2023
|
+
let We;
|
|
2024
|
+
function zr(e) {
|
|
2025
|
+
We && We.dispose(), We = Ar({
|
|
2026
2026
|
locale: e,
|
|
2027
2027
|
messages: {
|
|
2028
|
-
zh:
|
|
2029
|
-
en:
|
|
2028
|
+
zh: Ur,
|
|
2029
|
+
en: Gr
|
|
2030
2030
|
},
|
|
2031
2031
|
fallbackLocale: "en",
|
|
2032
2032
|
silentTranslationWarn: !0,
|
|
2033
2033
|
silentFallbackWarn: !0
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2037
|
-
|
|
2036
|
+
function Hr(e) {
|
|
2037
|
+
zr(e), We.global.locale = e;
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2040
|
-
return
|
|
2039
|
+
function Ne(e) {
|
|
2040
|
+
return We.global.t(e);
|
|
2041
2041
|
}
|
|
2042
|
-
var vo = /* @__PURE__ */ ((e) => (e.UserFirst = "UserFirst", e.PUFirst = "PUFirst", e))(vo || {});
|
|
2043
|
-
const
|
|
2044
|
-
"
|
|
2042
|
+
var vo = /* @__PURE__ */ ((e) => (e.UserFirst = "UserFirst", e.PUFirst = "PUFirst", e))(vo || {}), yo = /* @__PURE__ */ ((e) => (e.BACKGROUND_WHITE = "white", e.BACKGROUND_DRAK = "drak", e))(yo || {});
|
|
2043
|
+
const Eo = k(
|
|
2044
|
+
"white"
|
|
2045
2045
|
);
|
|
2046
|
-
function
|
|
2047
|
-
yo.value = e;
|
|
2048
|
-
}
|
|
2049
|
-
function Hr() {
|
|
2050
|
-
return yo;
|
|
2051
|
-
}
|
|
2052
|
-
const Eo = k(!1);
|
|
2053
|
-
function Bi(e) {
|
|
2046
|
+
function Ki(e) {
|
|
2054
2047
|
Eo.value = e;
|
|
2055
2048
|
}
|
|
2056
2049
|
function jr() {
|
|
2057
2050
|
return Eo;
|
|
2058
2051
|
}
|
|
2059
|
-
|
|
2052
|
+
const wo = k(
|
|
2053
|
+
"UserFirst"
|
|
2054
|
+
);
|
|
2055
|
+
function Wr(e) {
|
|
2056
|
+
wo.value = e;
|
|
2057
|
+
}
|
|
2058
|
+
function Br() {
|
|
2059
|
+
return wo;
|
|
2060
|
+
}
|
|
2061
|
+
const bo = k(!1);
|
|
2062
|
+
function Yi(e) {
|
|
2063
|
+
bo.value = e;
|
|
2064
|
+
}
|
|
2065
|
+
function Kr() {
|
|
2066
|
+
return bo;
|
|
2067
|
+
}
|
|
2068
|
+
var gn;
|
|
2060
2069
|
((e) => {
|
|
2061
2070
|
((n) => {
|
|
2062
2071
|
function o(r, l) {
|
|
@@ -2136,7 +2145,7 @@ var pn;
|
|
|
2136
2145
|
}
|
|
2137
2146
|
n.AccessSession = o;
|
|
2138
2147
|
})(e.Utils || (e.Utils = {}));
|
|
2139
|
-
})(
|
|
2148
|
+
})(gn || (gn = {}));
|
|
2140
2149
|
var I;
|
|
2141
2150
|
((e) => {
|
|
2142
2151
|
e.zeroLayout = {
|
|
@@ -2216,57 +2225,62 @@ var I;
|
|
|
2216
2225
|
n.getTestLayout = s;
|
|
2217
2226
|
})(e.Test || (e.Test = {}));
|
|
2218
2227
|
})(I || (I = {}));
|
|
2219
|
-
const
|
|
2228
|
+
const Lo = String.prototype.includes, Oo = function(e, t) {
|
|
2220
2229
|
const n = this.toLocaleLowerCase(), o = e.toLocaleLowerCase();
|
|
2221
|
-
String.prototype.includes =
|
|
2230
|
+
String.prototype.includes = Lo;
|
|
2222
2231
|
const s = n.includes(o, t);
|
|
2223
|
-
return String.prototype.includes =
|
|
2232
|
+
return String.prototype.includes = Oo, s;
|
|
2224
2233
|
};
|
|
2225
2234
|
function nt(e) {
|
|
2226
|
-
String.prototype.includes =
|
|
2235
|
+
String.prototype.includes = Oo;
|
|
2227
2236
|
const t = e();
|
|
2228
|
-
return String.prototype.includes =
|
|
2237
|
+
return String.prototype.includes = Lo, t;
|
|
2229
2238
|
}
|
|
2230
|
-
const
|
|
2239
|
+
const Yr = Q({
|
|
2231
2240
|
props: {
|
|
2232
2241
|
countInfo: Object,
|
|
2233
2242
|
controlParams: Object
|
|
2234
2243
|
},
|
|
2235
2244
|
setup(e) {
|
|
2236
|
-
function t(
|
|
2237
|
-
if (
|
|
2238
|
-
let
|
|
2239
|
-
return
|
|
2240
|
-
|
|
2241
|
-
}),
|
|
2245
|
+
function t(a, r) {
|
|
2246
|
+
if (r) {
|
|
2247
|
+
let l = 0;
|
|
2248
|
+
return r.items.forEach((i) => {
|
|
2249
|
+
l += t(a, i);
|
|
2250
|
+
}), a(r) + l;
|
|
2242
2251
|
}
|
|
2243
2252
|
return 0;
|
|
2244
2253
|
}
|
|
2245
|
-
const n = U(() => t((
|
|
2246
|
-
var
|
|
2247
|
-
if (
|
|
2248
|
-
let
|
|
2249
|
-
const
|
|
2250
|
-
return
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
+
const n = U(() => t((a) => {
|
|
2255
|
+
var r, l;
|
|
2256
|
+
if (a.devices) {
|
|
2257
|
+
let i = (r = a.devices) == null ? void 0 : r.filter((m) => m.online);
|
|
2258
|
+
const c = (l = e.controlParams) == null ? void 0 : l.searchStr;
|
|
2259
|
+
return c && (i = i.filter((m) => nt(
|
|
2260
|
+
() => {
|
|
2261
|
+
var f;
|
|
2262
|
+
return m.name.includes(c) || ((f = m.user) == null ? void 0 : f.includes(c)) || m.id.includes(c);
|
|
2263
|
+
}
|
|
2264
|
+
))), i.length;
|
|
2254
2265
|
}
|
|
2255
2266
|
return 0;
|
|
2267
|
+
}, e.countInfo)), o = U(() => t((a) => {
|
|
2268
|
+
var r;
|
|
2269
|
+
if (a.devices) {
|
|
2270
|
+
let l = a.devices;
|
|
2271
|
+
const i = (r = e.controlParams) == null ? void 0 : r.searchStr;
|
|
2272
|
+
return i && (l = l.filter((c) => nt(
|
|
2273
|
+
() => {
|
|
2274
|
+
var m;
|
|
2275
|
+
return c.name.includes(i) || ((m = c.user) == null ? void 0 : m.includes(i)) || c.id.includes(i);
|
|
2276
|
+
}
|
|
2277
|
+
))), l.length;
|
|
2278
|
+
}
|
|
2279
|
+
return a.totalCount;
|
|
2256
2280
|
}, e.countInfo));
|
|
2257
2281
|
return {
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
if (s.devices) {
|
|
2261
|
-
let r = s.devices;
|
|
2262
|
-
const l = (a = e.controlParams) == null ? void 0 : a.searchStr;
|
|
2263
|
-
return l && (r = r.filter((i) => nt(() => {
|
|
2264
|
-
var c;
|
|
2265
|
-
return i.name.includes(l) || ((c = i.user) == null ? void 0 : c.includes(l)) || i.id.includes(l);
|
|
2266
|
-
}))), r.length;
|
|
2267
|
-
}
|
|
2268
|
-
return s.totalCount;
|
|
2269
|
-
}, e.countInfo)),
|
|
2282
|
+
theme: St("theme"),
|
|
2283
|
+
totalCount: o,
|
|
2270
2284
|
onlineCount: n
|
|
2271
2285
|
};
|
|
2272
2286
|
}
|
|
@@ -2276,63 +2290,65 @@ const oe = (e, t) => {
|
|
|
2276
2290
|
for (const [o, s] of t)
|
|
2277
2291
|
n[o] = s;
|
|
2278
2292
|
return n;
|
|
2279
|
-
},
|
|
2280
|
-
function
|
|
2293
|
+
}, Xr = { class: "count-show" }, Jr = { class: "count-show-online" }, Qr = { key: 0 };
|
|
2294
|
+
function qr(e, t, n, o, s, a) {
|
|
2281
2295
|
var r;
|
|
2282
|
-
return N(), A("div",
|
|
2283
|
-
|
|
2296
|
+
return N(), A("div", {
|
|
2297
|
+
class: ke(`root ${e.theme}`)
|
|
2298
|
+
}, [
|
|
2299
|
+
Y(e.$slots, "default", {
|
|
2284
2300
|
total: e.totalCount,
|
|
2285
2301
|
online: e.onlineCount
|
|
2286
2302
|
}, void 0, !0),
|
|
2287
|
-
b("span",
|
|
2288
|
-
b("span",
|
|
2289
|
-
(r = e.controlParams) != null && r.onlyShowOnline ? pe("", !0) : (N(), A("span",
|
|
2303
|
+
b("span", Xr, [
|
|
2304
|
+
b("span", Jr, j(e.onlineCount), 1),
|
|
2305
|
+
(r = e.controlParams) != null && r.onlyShowOnline ? pe("", !0) : (N(), A("span", Qr, "/" + j(e.totalCount), 1))
|
|
2290
2306
|
])
|
|
2291
|
-
]);
|
|
2307
|
+
], 2);
|
|
2292
2308
|
}
|
|
2293
|
-
const
|
|
2309
|
+
const Io = /* @__PURE__ */ oe(Yr, [["render", qr], ["__scopeId", "data-v-378b853b"]]), To = Object.freeze(
|
|
2294
2310
|
{
|
|
2295
2311
|
left: 0,
|
|
2296
2312
|
top: 0,
|
|
2297
2313
|
width: 16,
|
|
2298
2314
|
height: 16
|
|
2299
2315
|
}
|
|
2300
|
-
),
|
|
2316
|
+
), No = Object.freeze({
|
|
2301
2317
|
rotate: 0,
|
|
2302
2318
|
vFlip: !1,
|
|
2303
2319
|
hFlip: !1
|
|
2304
|
-
}),
|
|
2305
|
-
...
|
|
2306
|
-
...
|
|
2320
|
+
}), Ft = Object.freeze({
|
|
2321
|
+
...To,
|
|
2322
|
+
...No
|
|
2307
2323
|
});
|
|
2308
2324
|
Object.freeze({
|
|
2309
|
-
...
|
|
2325
|
+
...Ft,
|
|
2310
2326
|
body: "",
|
|
2311
2327
|
hidden: !1
|
|
2312
2328
|
});
|
|
2313
2329
|
({
|
|
2314
|
-
...
|
|
2330
|
+
...To
|
|
2315
2331
|
});
|
|
2316
|
-
const
|
|
2332
|
+
const So = Object.freeze({
|
|
2317
2333
|
width: null,
|
|
2318
2334
|
height: null
|
|
2319
|
-
}),
|
|
2320
|
-
...
|
|
2321
|
-
...
|
|
2335
|
+
}), Co = Object.freeze({
|
|
2336
|
+
...So,
|
|
2337
|
+
...No
|
|
2322
2338
|
});
|
|
2323
|
-
function
|
|
2339
|
+
function Zr(e, t) {
|
|
2324
2340
|
const n = {
|
|
2325
2341
|
...e
|
|
2326
2342
|
};
|
|
2327
2343
|
for (const o in t) {
|
|
2328
2344
|
const s = t[o], a = typeof s;
|
|
2329
|
-
o in
|
|
2345
|
+
o in So ? (s === null || s && (a === "string" || a === "number")) && (n[o] = s) : a === typeof n[o] && (n[o] = o === "rotate" ? s % 4 : s);
|
|
2330
2346
|
}
|
|
2331
2347
|
return n;
|
|
2332
2348
|
}
|
|
2333
|
-
const
|
|
2334
|
-
function
|
|
2335
|
-
t.split(
|
|
2349
|
+
const ea = /[\s,]+/;
|
|
2350
|
+
function ta(e, t) {
|
|
2351
|
+
t.split(ea).forEach((n) => {
|
|
2336
2352
|
switch (n.trim()) {
|
|
2337
2353
|
case "horizontal":
|
|
2338
2354
|
e.hFlip = !0;
|
|
@@ -2343,7 +2359,7 @@ function Zr(e, t) {
|
|
|
2343
2359
|
}
|
|
2344
2360
|
});
|
|
2345
2361
|
}
|
|
2346
|
-
function
|
|
2362
|
+
function na(e, t = 0) {
|
|
2347
2363
|
const n = e.replace(/^-?[0-9.]*/, "");
|
|
2348
2364
|
function o(s) {
|
|
2349
2365
|
for (; s < 0; )
|
|
@@ -2369,19 +2385,19 @@ function ea(e, t = 0) {
|
|
|
2369
2385
|
}
|
|
2370
2386
|
return t;
|
|
2371
2387
|
}
|
|
2372
|
-
const
|
|
2373
|
-
function
|
|
2388
|
+
const oa = /(-?[0-9.]*[0-9]+[0-9.]*)/g, sa = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2389
|
+
function hn(e, t, n) {
|
|
2374
2390
|
if (t === 1)
|
|
2375
2391
|
return e;
|
|
2376
2392
|
if (n = n || 100, typeof e == "number")
|
|
2377
2393
|
return Math.ceil(e * t * n) / n;
|
|
2378
2394
|
if (typeof e != "string")
|
|
2379
2395
|
return e;
|
|
2380
|
-
const o = e.split(
|
|
2396
|
+
const o = e.split(oa);
|
|
2381
2397
|
if (o === null || !o.length)
|
|
2382
2398
|
return e;
|
|
2383
2399
|
const s = [];
|
|
2384
|
-
let a = o.shift(), r =
|
|
2400
|
+
let a = o.shift(), r = sa.test(a);
|
|
2385
2401
|
for (; ; ) {
|
|
2386
2402
|
if (r) {
|
|
2387
2403
|
const l = parseFloat(a);
|
|
@@ -2393,12 +2409,12 @@ function gn(e, t, n) {
|
|
|
2393
2409
|
r = !r;
|
|
2394
2410
|
}
|
|
2395
2411
|
}
|
|
2396
|
-
function
|
|
2412
|
+
function ra(e, t) {
|
|
2397
2413
|
const n = {
|
|
2398
|
-
...
|
|
2414
|
+
...Ft,
|
|
2399
2415
|
...e
|
|
2400
2416
|
}, o = {
|
|
2401
|
-
...
|
|
2417
|
+
...Co,
|
|
2402
2418
|
...t
|
|
2403
2419
|
}, s = {
|
|
2404
2420
|
left: n.left,
|
|
@@ -2437,7 +2453,7 @@ function oa(e, t) {
|
|
|
2437
2453
|
});
|
|
2438
2454
|
const r = o.width, l = o.height, i = s.width, c = s.height;
|
|
2439
2455
|
let m, f;
|
|
2440
|
-
return r === null ? (f = l === null ? "1em" : l === "auto" ? c : l, m =
|
|
2456
|
+
return r === null ? (f = l === null ? "1em" : l === "auto" ? c : l, m = hn(f, i / c)) : (m = r === "auto" ? i : r, f = l === null ? hn(m, c / i) : l === "auto" ? c : l), {
|
|
2441
2457
|
attributes: {
|
|
2442
2458
|
width: m.toString(),
|
|
2443
2459
|
height: f.toString(),
|
|
@@ -2446,71 +2462,71 @@ function oa(e, t) {
|
|
|
2446
2462
|
body: a
|
|
2447
2463
|
};
|
|
2448
2464
|
}
|
|
2449
|
-
const
|
|
2450
|
-
let
|
|
2451
|
-
function
|
|
2465
|
+
const aa = /\sid="(\S+)"/g, la = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
2466
|
+
let ia = 0;
|
|
2467
|
+
function ca(e, t = la) {
|
|
2452
2468
|
const n = [];
|
|
2453
2469
|
let o;
|
|
2454
|
-
for (; o =
|
|
2470
|
+
for (; o = aa.exec(e); )
|
|
2455
2471
|
n.push(o[1]);
|
|
2456
2472
|
return n.length && n.forEach((s) => {
|
|
2457
|
-
const a = typeof t == "function" ? t(s) : t + (
|
|
2473
|
+
const a = typeof t == "function" ? t(s) : t + (ia++).toString(), r = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2458
2474
|
e = e.replace(
|
|
2459
2475
|
new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
|
|
2460
2476
|
"$1" + a + "$3"
|
|
2461
2477
|
);
|
|
2462
2478
|
}), e;
|
|
2463
2479
|
}
|
|
2464
|
-
function
|
|
2480
|
+
function ua(e, t) {
|
|
2465
2481
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2466
2482
|
for (const o in t)
|
|
2467
2483
|
n += " " + o + '="' + t[o] + '"';
|
|
2468
2484
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
2469
2485
|
}
|
|
2470
|
-
function
|
|
2486
|
+
function da(e) {
|
|
2471
2487
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2472
2488
|
}
|
|
2473
|
-
function
|
|
2474
|
-
return 'url("data:image/svg+xml,' +
|
|
2489
|
+
function fa(e) {
|
|
2490
|
+
return 'url("data:image/svg+xml,' + da(e) + '")';
|
|
2475
2491
|
}
|
|
2476
|
-
const
|
|
2477
|
-
...
|
|
2492
|
+
const vn = {
|
|
2493
|
+
...Co,
|
|
2478
2494
|
inline: !1
|
|
2479
|
-
},
|
|
2495
|
+
}, _a = {
|
|
2480
2496
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2481
2497
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2482
2498
|
"aria-hidden": !0,
|
|
2483
2499
|
role: "img"
|
|
2484
|
-
},
|
|
2500
|
+
}, ma = {
|
|
2485
2501
|
display: "inline-block"
|
|
2486
2502
|
}, Tt = {
|
|
2487
2503
|
backgroundColor: "currentColor"
|
|
2488
|
-
},
|
|
2504
|
+
}, Ao = {
|
|
2489
2505
|
backgroundColor: "transparent"
|
|
2490
|
-
},
|
|
2506
|
+
}, yn = {
|
|
2491
2507
|
Image: "var(--svg)",
|
|
2492
2508
|
Repeat: "no-repeat",
|
|
2493
2509
|
Size: "100% 100%"
|
|
2494
|
-
},
|
|
2510
|
+
}, En = {
|
|
2495
2511
|
webkitMask: Tt,
|
|
2496
2512
|
mask: Tt,
|
|
2497
|
-
background:
|
|
2513
|
+
background: Ao
|
|
2498
2514
|
};
|
|
2499
|
-
for (const e in
|
|
2500
|
-
const t =
|
|
2501
|
-
for (const n in
|
|
2502
|
-
t[e + n] =
|
|
2515
|
+
for (const e in En) {
|
|
2516
|
+
const t = En[e];
|
|
2517
|
+
for (const n in yn)
|
|
2518
|
+
t[e + n] = yn[n];
|
|
2503
2519
|
}
|
|
2504
|
-
const
|
|
2520
|
+
const qe = {};
|
|
2505
2521
|
["horizontal", "vertical"].forEach((e) => {
|
|
2506
2522
|
const t = e.slice(0, 1) + "Flip";
|
|
2507
|
-
|
|
2523
|
+
qe[e + "-flip"] = t, qe[e.slice(0, 1) + "-flip"] = t, qe[e + "Flip"] = t;
|
|
2508
2524
|
});
|
|
2509
|
-
function
|
|
2525
|
+
function wn(e) {
|
|
2510
2526
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2511
2527
|
}
|
|
2512
|
-
const
|
|
2513
|
-
const n =
|
|
2528
|
+
const pa = (e, t) => {
|
|
2529
|
+
const n = Zr(vn, t), o = { ..._a }, s = t.mode || "svg", a = {}, r = t.style, l = typeof r == "object" && !(r instanceof Array) ? r : {};
|
|
2514
2530
|
for (let v in t) {
|
|
2515
2531
|
const y = t[v];
|
|
2516
2532
|
if (y !== void 0)
|
|
@@ -2526,69 +2542,69 @@ const _a = (e, t) => {
|
|
|
2526
2542
|
n[v] = y === !0 || y === "true" || y === 1;
|
|
2527
2543
|
break;
|
|
2528
2544
|
case "flip":
|
|
2529
|
-
typeof y == "string" &&
|
|
2545
|
+
typeof y == "string" && ta(n, y);
|
|
2530
2546
|
break;
|
|
2531
2547
|
case "color":
|
|
2532
2548
|
a.color = y;
|
|
2533
2549
|
break;
|
|
2534
2550
|
case "rotate":
|
|
2535
|
-
typeof y == "string" ? n[v] =
|
|
2551
|
+
typeof y == "string" ? n[v] = na(y) : typeof y == "number" && (n[v] = y);
|
|
2536
2552
|
break;
|
|
2537
2553
|
case "ariaHidden":
|
|
2538
2554
|
case "aria-hidden":
|
|
2539
2555
|
y !== !0 && y !== "true" && delete o["aria-hidden"];
|
|
2540
2556
|
break;
|
|
2541
2557
|
default: {
|
|
2542
|
-
const g =
|
|
2543
|
-
g ? (y === !0 || y === "true" || y === 1) && (n[g] = !0) :
|
|
2558
|
+
const g = qe[v];
|
|
2559
|
+
g ? (y === !0 || y === "true" || y === 1) && (n[g] = !0) : vn[v] === void 0 && (o[v] = y);
|
|
2544
2560
|
}
|
|
2545
2561
|
}
|
|
2546
2562
|
}
|
|
2547
|
-
const i =
|
|
2563
|
+
const i = ra(e, n), c = i.attributes;
|
|
2548
2564
|
if (n.inline && (a.verticalAlign = "-0.125em"), s === "svg") {
|
|
2549
2565
|
o.style = {
|
|
2550
2566
|
...a,
|
|
2551
2567
|
...l
|
|
2552
2568
|
}, Object.assign(o, c);
|
|
2553
2569
|
let v = 0, y = t.id;
|
|
2554
|
-
return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML =
|
|
2570
|
+
return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = ca(i.body, y ? () => y + "ID" + v++ : "iconifyVue"), Ze("svg", o);
|
|
2555
2571
|
}
|
|
2556
|
-
const { body: m, width: f, height: u } = e, d = s === "mask" || (s === "bg" ? !1 : m.indexOf("currentColor") !== -1), p =
|
|
2572
|
+
const { body: m, width: f, height: u } = e, d = s === "mask" || (s === "bg" ? !1 : m.indexOf("currentColor") !== -1), p = ua(m, {
|
|
2557
2573
|
...c,
|
|
2558
2574
|
width: f + "",
|
|
2559
2575
|
height: u + ""
|
|
2560
2576
|
});
|
|
2561
2577
|
return o.style = {
|
|
2562
2578
|
...a,
|
|
2563
|
-
"--svg":
|
|
2564
|
-
width:
|
|
2565
|
-
height:
|
|
2566
|
-
...
|
|
2567
|
-
...d ? Tt :
|
|
2579
|
+
"--svg": fa(p),
|
|
2580
|
+
width: wn(c.width),
|
|
2581
|
+
height: wn(c.height),
|
|
2582
|
+
...ma,
|
|
2583
|
+
...d ? Tt : Ao,
|
|
2568
2584
|
...l
|
|
2569
|
-
},
|
|
2570
|
-
},
|
|
2571
|
-
function
|
|
2572
|
-
|
|
2585
|
+
}, Ze("span", o);
|
|
2586
|
+
}, Do = /* @__PURE__ */ Object.create(null);
|
|
2587
|
+
function Ce(e, t) {
|
|
2588
|
+
Do[e] = t;
|
|
2573
2589
|
}
|
|
2574
2590
|
const it = Q({
|
|
2575
2591
|
inheritAttrs: !1,
|
|
2576
2592
|
render() {
|
|
2577
|
-
const e = this.$attrs, t = e.icon, n = typeof t == "string" ?
|
|
2578
|
-
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2579
|
-
...
|
|
2593
|
+
const e = this.$attrs, t = e.icon, n = typeof t == "string" ? Do[t] : typeof t == "object" ? t : null;
|
|
2594
|
+
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : pa({
|
|
2595
|
+
...Ft,
|
|
2580
2596
|
...n
|
|
2581
2597
|
}, e);
|
|
2582
2598
|
}
|
|
2583
2599
|
});
|
|
2584
|
-
var
|
|
2600
|
+
var ga = Object.defineProperty, ha = Object.defineProperties, va = Object.getOwnPropertyDescriptors, bn = Object.getOwnPropertySymbols, ya = Object.prototype.hasOwnProperty, Ea = Object.prototype.propertyIsEnumerable, Ln = (e, t, n) => t in e ? ga(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, On = (e, t) => {
|
|
2585
2601
|
for (var n in t || (t = {}))
|
|
2586
|
-
|
|
2587
|
-
if (
|
|
2588
|
-
for (var n of
|
|
2589
|
-
|
|
2602
|
+
ya.call(t, n) && Ln(e, n, t[n]);
|
|
2603
|
+
if (bn)
|
|
2604
|
+
for (var n of bn(t))
|
|
2605
|
+
Ea.call(t, n) && Ln(e, n, t[n]);
|
|
2590
2606
|
return e;
|
|
2591
|
-
},
|
|
2607
|
+
}, wa = (e, t) => ha(e, va(t)), ba = (e, t, n) => new Promise((o, s) => {
|
|
2592
2608
|
var a = (i) => {
|
|
2593
2609
|
try {
|
|
2594
2610
|
l(n.next(i));
|
|
@@ -2604,7 +2620,7 @@ var ma = Object.defineProperty, pa = Object.defineProperties, ga = Object.getOwn
|
|
|
2604
2620
|
}, l = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, r);
|
|
2605
2621
|
l((n = n.apply(e, t)).next());
|
|
2606
2622
|
});
|
|
2607
|
-
const
|
|
2623
|
+
const La = {
|
|
2608
2624
|
name: "VirtualList",
|
|
2609
2625
|
props: {
|
|
2610
2626
|
listData: {
|
|
@@ -2628,12 +2644,12 @@ const wa = {
|
|
|
2628
2644
|
getTransform: U(() => `translate3d(0,${t.startOffset.value}px,0)`),
|
|
2629
2645
|
visibleData: U(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
|
|
2630
2646
|
};
|
|
2631
|
-
return
|
|
2647
|
+
return On(wa(On({}, o), {
|
|
2632
2648
|
virList: n
|
|
2633
2649
|
}), t);
|
|
2634
2650
|
},
|
|
2635
2651
|
mounted() {
|
|
2636
|
-
this.init(),
|
|
2652
|
+
this.init(), Ie(() => this.listData.length, () => ba(this, null, function* () {
|
|
2637
2653
|
yield this.$nextTick(), this.init();
|
|
2638
2654
|
}));
|
|
2639
2655
|
},
|
|
@@ -2649,7 +2665,7 @@ const wa = {
|
|
|
2649
2665
|
}
|
|
2650
2666
|
}
|
|
2651
2667
|
};
|
|
2652
|
-
function
|
|
2668
|
+
function Oa(e, t, n, o, s, a) {
|
|
2653
2669
|
return N(), A("div", {
|
|
2654
2670
|
ref: "virList",
|
|
2655
2671
|
class: "infinite-list-container",
|
|
@@ -2670,24 +2686,24 @@ function ba(e, t, n, o, s, a) {
|
|
|
2670
2686
|
key: r.id,
|
|
2671
2687
|
style: _e({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
|
|
2672
2688
|
}, [
|
|
2673
|
-
|
|
2689
|
+
Y(e.$slots, "default", { data: r }, void 0, !0)
|
|
2674
2690
|
], 4))), 128))
|
|
2675
2691
|
], 4)
|
|
2676
2692
|
], 544);
|
|
2677
2693
|
}
|
|
2678
|
-
const
|
|
2679
|
-
var
|
|
2694
|
+
const Ia = /* @__PURE__ */ oe(La, [["render", Oa], ["__scopeId", "data-v-12d2a294"]]);
|
|
2695
|
+
var Ta = Object.defineProperty, Na = Object.defineProperties, Sa = Object.getOwnPropertyDescriptors, In = Object.getOwnPropertySymbols, Ca = Object.prototype.hasOwnProperty, Aa = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? Ta(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Da = (e, t) => {
|
|
2680
2696
|
for (var n in t || (t = {}))
|
|
2681
|
-
|
|
2682
|
-
if (
|
|
2683
|
-
for (var n of
|
|
2684
|
-
|
|
2697
|
+
Ca.call(t, n) && Tn(e, n, t[n]);
|
|
2698
|
+
if (In)
|
|
2699
|
+
for (var n of In(t))
|
|
2700
|
+
Aa.call(t, n) && Tn(e, n, t[n]);
|
|
2685
2701
|
return e;
|
|
2686
|
-
},
|
|
2687
|
-
const
|
|
2702
|
+
}, Pa = (e, t) => Na(e, Sa(t));
|
|
2703
|
+
const $a = Q({
|
|
2688
2704
|
components: {
|
|
2689
|
-
VirtualList:
|
|
2690
|
-
CountShow:
|
|
2705
|
+
VirtualList: Ia,
|
|
2706
|
+
CountShow: Io,
|
|
2691
2707
|
Icon: it
|
|
2692
2708
|
},
|
|
2693
2709
|
name: "group-show",
|
|
@@ -2697,7 +2713,7 @@ const Da = Q({
|
|
|
2697
2713
|
uiParams: Object
|
|
2698
2714
|
},
|
|
2699
2715
|
setup(e, t) {
|
|
2700
|
-
const n =
|
|
2716
|
+
const n = Br(), o = Kr(), s = k(), a = St("theme"), r = {
|
|
2701
2717
|
filterDevice(d) {
|
|
2702
2718
|
var p;
|
|
2703
2719
|
let v = !0;
|
|
@@ -2728,7 +2744,9 @@ const Da = Q({
|
|
|
2728
2744
|
if (p.length == 0)
|
|
2729
2745
|
return !0;
|
|
2730
2746
|
let v = !1;
|
|
2731
|
-
if ((d == null ? void 0 : d.name.indexOf(p)) > 0 && (v = !0), v || (v = (d == null ? void 0 : d.devices.find(
|
|
2747
|
+
if ((d == null ? void 0 : d.name.indexOf(p)) > 0 && (v = !0), v || (v = (d == null ? void 0 : d.devices.find(
|
|
2748
|
+
(y) => y.name.includes(p) || y.id.includes(p) || y.user && y.user.includes(p)
|
|
2749
|
+
)) != null), !v) {
|
|
2732
2750
|
for (let y = 0; y < d.items.length; y++)
|
|
2733
2751
|
if (c(d.items[y], p))
|
|
2734
2752
|
return !0;
|
|
@@ -2748,7 +2766,7 @@ const Da = Q({
|
|
|
2748
2766
|
var d;
|
|
2749
2767
|
(d = e.uiParams) != null && d.dbclickExpandsDisable || (f.value = !f.value);
|
|
2750
2768
|
}
|
|
2751
|
-
return
|
|
2769
|
+
return Pa(Da({
|
|
2752
2770
|
OnHeadDbClick: u,
|
|
2753
2771
|
innerUtils: r
|
|
2754
2772
|
}, l), {
|
|
@@ -2760,25 +2778,25 @@ const Da = Q({
|
|
|
2760
2778
|
});
|
|
2761
2779
|
}
|
|
2762
2780
|
});
|
|
2763
|
-
const
|
|
2781
|
+
const Ma = {
|
|
2764
2782
|
key: 0,
|
|
2765
2783
|
class: "head-op"
|
|
2766
|
-
},
|
|
2784
|
+
}, ka = {
|
|
2767
2785
|
key: 1,
|
|
2768
2786
|
style: { display: "inline-block", width: "25px" }
|
|
2769
|
-
},
|
|
2787
|
+
}, Ra = {
|
|
2770
2788
|
key: 0,
|
|
2771
2789
|
class: "group-head-count"
|
|
2772
|
-
},
|
|
2790
|
+
}, xa = ["title"], Fa = { class: "group-slot" }, Va = {
|
|
2773
2791
|
key: 0,
|
|
2774
2792
|
style: { "margin-left": "26px" }
|
|
2775
|
-
},
|
|
2776
|
-
function
|
|
2793
|
+
}, Ua = ["title"], Ga = { class: "device-slot" };
|
|
2794
|
+
function za(e, t, n, o, s, a) {
|
|
2777
2795
|
var r, l, i;
|
|
2778
2796
|
const c = fe("Icon"), m = fe("CountShow"), f = fe("group-show"), u = fe("VirtualList");
|
|
2779
2797
|
return e.showGroup ? Vn((N(), A("div", {
|
|
2780
2798
|
key: 0,
|
|
2781
|
-
class:
|
|
2799
|
+
class: ke("group " + e.theme)
|
|
2782
2800
|
}, [
|
|
2783
2801
|
B(m, {
|
|
2784
2802
|
countInfo: e.deviceGroup,
|
|
@@ -2788,14 +2806,14 @@ function Ua(e, t, n, o, s, a) {
|
|
|
2788
2806
|
default: te(({ online: d, total: p }) => {
|
|
2789
2807
|
var v, y;
|
|
2790
2808
|
return [
|
|
2791
|
-
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (N(), A("span",
|
|
2809
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (N(), A("span", Ma, [
|
|
2792
2810
|
B(c, {
|
|
2793
2811
|
icon: e.bShow ? "minus" : "plus",
|
|
2794
2812
|
width: "20",
|
|
2795
2813
|
onClick: t[0] || (t[0] = (g) => e.bShow = !e.bShow),
|
|
2796
2814
|
class: "handle-ls-svg"
|
|
2797
2815
|
}, null, 8, ["icon"])
|
|
2798
|
-
])) : (N(), A("span",
|
|
2816
|
+
])) : (N(), A("span", ka)),
|
|
2799
2817
|
b("span", {
|
|
2800
2818
|
class: "group-head-db-click",
|
|
2801
2819
|
onDblclick: t[1] || (t[1] = (...g) => e.OnHeadDbClick && e.OnHeadDbClick(...g))
|
|
@@ -2805,41 +2823,41 @@ function Ua(e, t, n, o, s, a) {
|
|
|
2805
2823
|
width: "24",
|
|
2806
2824
|
class: "group-avatar"
|
|
2807
2825
|
}, null, 8, ["icon"]),
|
|
2808
|
-
e.bShow ? pe("", !0) : (N(), A("span",
|
|
2809
|
-
|
|
2826
|
+
e.bShow ? pe("", !0) : (N(), A("span", Ra, j((v = e.deviceGroup) == null ? void 0 : v.items.length), 1)),
|
|
2827
|
+
Y(e.$slots, "groupHead", { group: e.deviceGroup }, void 0, !0),
|
|
2810
2828
|
b("span", {
|
|
2811
2829
|
class: "group-name",
|
|
2812
2830
|
title: (y = e.deviceGroup) == null ? void 0 : y.name
|
|
2813
|
-
}, j(e.innerUtils.groupText(e.deviceGroup)), 9,
|
|
2831
|
+
}, j(e.innerUtils.groupText(e.deviceGroup)), 9, xa)
|
|
2814
2832
|
], 32),
|
|
2815
|
-
b("div",
|
|
2816
|
-
|
|
2833
|
+
b("div", Fa, [
|
|
2834
|
+
Y(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
|
|
2817
2835
|
])
|
|
2818
2836
|
];
|
|
2819
2837
|
}),
|
|
2820
2838
|
_: 3
|
|
2821
2839
|
}, 8, ["countInfo", "controlParams"]),
|
|
2822
|
-
e.bShow ? (N(), A("div",
|
|
2823
|
-
(N(!0), A(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (d, p) => (N(),
|
|
2840
|
+
e.bShow ? (N(), A("div", Va, [
|
|
2841
|
+
(N(!0), A(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (d, p) => (N(), Fe(f, {
|
|
2824
2842
|
key: p,
|
|
2825
2843
|
deviceGroup: d,
|
|
2826
2844
|
"ui-params": e.uiParams,
|
|
2827
2845
|
controlParams: e.controlParams
|
|
2828
2846
|
}, {
|
|
2829
2847
|
groupHead: te(({ group: v }) => [
|
|
2830
|
-
|
|
2848
|
+
Y(e.$slots, "groupHead", { group: v }, void 0, !0)
|
|
2831
2849
|
]),
|
|
2832
2850
|
group: te(({ group: v }) => [
|
|
2833
|
-
|
|
2851
|
+
Y(e.$slots, "group", { group: v }, void 0, !0)
|
|
2834
2852
|
]),
|
|
2835
2853
|
deviceHead: te(({ device: v, group: y }) => [
|
|
2836
|
-
|
|
2854
|
+
Y(e.$slots, "deviceHead", {
|
|
2837
2855
|
device: v,
|
|
2838
2856
|
group: y
|
|
2839
2857
|
}, void 0, !0)
|
|
2840
2858
|
]),
|
|
2841
2859
|
device: te(({ device: v, group: y }) => [
|
|
2842
|
-
|
|
2860
|
+
Y(e.$slots, "device", {
|
|
2843
2861
|
device: v,
|
|
2844
2862
|
group: y
|
|
2845
2863
|
}, void 0, !0)
|
|
@@ -2856,23 +2874,23 @@ function Ua(e, t, n, o, s, a) {
|
|
|
2856
2874
|
}, {
|
|
2857
2875
|
default: te(({ data: d }) => [
|
|
2858
2876
|
b("div", {
|
|
2859
|
-
class:
|
|
2877
|
+
class: ke(d.online && "online-device")
|
|
2860
2878
|
}, [
|
|
2861
2879
|
B(c, {
|
|
2862
2880
|
icon: "user",
|
|
2863
2881
|
width: "16",
|
|
2864
2882
|
class: "device-avatar"
|
|
2865
2883
|
}),
|
|
2866
|
-
|
|
2884
|
+
Y(e.$slots, "deviceHead", {
|
|
2867
2885
|
device: d,
|
|
2868
2886
|
group: e.deviceGroup
|
|
2869
2887
|
}, void 0, !0),
|
|
2870
2888
|
b("span", {
|
|
2871
2889
|
title: e.innerUtils.deviceText(d),
|
|
2872
2890
|
class: "device-name"
|
|
2873
|
-
}, j(e.innerUtils.deviceText(d)), 9,
|
|
2874
|
-
b("div",
|
|
2875
|
-
|
|
2891
|
+
}, j(e.innerUtils.deviceText(d)), 9, Ua),
|
|
2892
|
+
b("div", Ga, [
|
|
2893
|
+
Y(e.$slots, "device", {
|
|
2876
2894
|
device: d,
|
|
2877
2895
|
group: e.deviceGroup
|
|
2878
2896
|
}, void 0, !0)
|
|
@@ -2887,41 +2905,41 @@ function Ua(e, t, n, o, s, a) {
|
|
|
2887
2905
|
[Un, !((l = e.controlParams) != null && l.onlyShowOnline) || ((i = e.countRef) == null ? void 0 : i.onlineCount)]
|
|
2888
2906
|
]) : pe("", !0);
|
|
2889
2907
|
}
|
|
2890
|
-
const
|
|
2908
|
+
const Ha = /* @__PURE__ */ oe($a, [["render", za], ["__scopeId", "data-v-fe6756c5"]]), ja = {
|
|
2891
2909
|
width: 1024,
|
|
2892
2910
|
height: 1024,
|
|
2893
2911
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
2894
|
-
},
|
|
2912
|
+
}, Wa = {
|
|
2895
2913
|
width: 1024,
|
|
2896
2914
|
height: 1024,
|
|
2897
2915
|
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"/>'
|
|
2898
|
-
},
|
|
2916
|
+
}, Ba = {
|
|
2899
2917
|
width: 1024,
|
|
2900
2918
|
height: 1024,
|
|
2901
2919
|
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"/>'
|
|
2902
|
-
},
|
|
2920
|
+
}, Ka = {
|
|
2903
2921
|
width: 1024,
|
|
2904
2922
|
height: 1024,
|
|
2905
2923
|
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"/>'
|
|
2906
|
-
},
|
|
2924
|
+
}, Ya = {
|
|
2907
2925
|
width: 1024,
|
|
2908
2926
|
height: 1024,
|
|
2909
2927
|
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"/>'
|
|
2910
|
-
},
|
|
2928
|
+
}, Xa = {
|
|
2911
2929
|
width: 1024,
|
|
2912
2930
|
height: 1024,
|
|
2913
2931
|
body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
|
|
2914
2932
|
};
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
const
|
|
2933
|
+
Ce("right", ja);
|
|
2934
|
+
Ce("group", Wa);
|
|
2935
|
+
Ce("group-closed", Ba);
|
|
2936
|
+
Ce("user", Ka);
|
|
2937
|
+
Ce("plus", Ya);
|
|
2938
|
+
Ce("minus", Xa);
|
|
2939
|
+
const Ja = Q({
|
|
2922
2940
|
components: {
|
|
2923
|
-
CountShow:
|
|
2924
|
-
GroupShow:
|
|
2941
|
+
CountShow: Io,
|
|
2942
|
+
GroupShow: Ha
|
|
2925
2943
|
},
|
|
2926
2944
|
props: {
|
|
2927
2945
|
deviceGroup: Object,
|
|
@@ -2946,25 +2964,37 @@ const Ka = Q({
|
|
|
2946
2964
|
}
|
|
2947
2965
|
},
|
|
2948
2966
|
setup(e) {
|
|
2949
|
-
|
|
2950
|
-
|
|
2967
|
+
const t = jr(), n = U(() => t.value == yo.BACKGROUND_WHITE ? "" : "dark");
|
|
2968
|
+
ns("theme", n);
|
|
2969
|
+
const o = k({
|
|
2951
2970
|
onlyShowOnline: !1,
|
|
2952
2971
|
searchStr: ""
|
|
2953
|
-
})
|
|
2972
|
+
});
|
|
2973
|
+
Ie(
|
|
2974
|
+
() => o.value.onlyShowOnline,
|
|
2975
|
+
() => {
|
|
2976
|
+
var r;
|
|
2977
|
+
s.value && ((r = s.value) == null ? void 0 : r.checked) != o.value.onlyShowOnline && (s.value.checked = o.value.onlyShowOnline);
|
|
2978
|
+
}
|
|
2979
|
+
);
|
|
2980
|
+
const s = k(), a = k();
|
|
2954
2981
|
return {
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2982
|
+
theme: n,
|
|
2983
|
+
i18nT: Ne,
|
|
2984
|
+
inputShowOnlineOnly: s,
|
|
2985
|
+
inputSearchRef: a,
|
|
2986
|
+
controlParams: o
|
|
2959
2987
|
};
|
|
2960
2988
|
}
|
|
2961
2989
|
});
|
|
2962
|
-
const
|
|
2963
|
-
function
|
|
2990
|
+
const Qa = { class: "search-panel" }, qa = { for: "onlineShow" }, Za = { class: "device-panel" };
|
|
2991
|
+
function el(e, t, n, o, s, a) {
|
|
2964
2992
|
var r;
|
|
2965
2993
|
const l = fe("CountShow"), i = fe("group-show");
|
|
2966
|
-
return N(), A("div",
|
|
2967
|
-
|
|
2994
|
+
return N(), A("div", {
|
|
2995
|
+
class: ke(`device-group-list ${e.theme}`)
|
|
2996
|
+
}, [
|
|
2997
|
+
b("div", Qa, [
|
|
2968
2998
|
B(l, {
|
|
2969
2999
|
countInfo: e.deviceGroup,
|
|
2970
3000
|
"control-params": e.controlParams
|
|
@@ -2977,32 +3007,32 @@ function Za(e, t, n, o, s, a) {
|
|
|
2977
3007
|
onChange: t[0] || (t[0] = () => e.onCheckBoxChange()),
|
|
2978
3008
|
ref: "inputShowOnlineOnly"
|
|
2979
3009
|
}, null, 544),
|
|
2980
|
-
b("label",
|
|
3010
|
+
b("label", qa, j(e.i18nT("zhi-xian-shi-zai-xian-she-bei")), 1)
|
|
2981
3011
|
]),
|
|
2982
3012
|
_: 1
|
|
2983
3013
|
}, 8, ["countInfo", "control-params"])
|
|
2984
3014
|
]),
|
|
2985
|
-
b("div",
|
|
2986
|
-
(N(!0), A(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (c, m) => (N(),
|
|
3015
|
+
b("div", Za, [
|
|
3016
|
+
(N(!0), A(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (c, m) => (N(), Fe(i, {
|
|
2987
3017
|
controlParams: e.controlParams,
|
|
2988
3018
|
key: m,
|
|
2989
3019
|
"ui-params": e.uiControl,
|
|
2990
3020
|
deviceGroup: c
|
|
2991
3021
|
}, {
|
|
2992
3022
|
groupHead: te(({ group: f }) => [
|
|
2993
|
-
|
|
3023
|
+
Y(e.$slots, "groupHead", { group: f }, void 0, !0)
|
|
2994
3024
|
]),
|
|
2995
3025
|
group: te(({ group: f }) => [
|
|
2996
|
-
|
|
3026
|
+
Y(e.$slots, "group", { group: f }, void 0, !0)
|
|
2997
3027
|
]),
|
|
2998
3028
|
deviceHead: te(({ device: f, group: u }) => [
|
|
2999
|
-
|
|
3029
|
+
Y(e.$slots, "deviceHead", {
|
|
3000
3030
|
device: f,
|
|
3001
3031
|
group: u
|
|
3002
3032
|
}, void 0, !0)
|
|
3003
3033
|
]),
|
|
3004
3034
|
device: te(({ device: f, group: u }) => [
|
|
3005
|
-
|
|
3035
|
+
Y(e.$slots, "device", {
|
|
3006
3036
|
device: f,
|
|
3007
3037
|
group: u
|
|
3008
3038
|
}, void 0, !0)
|
|
@@ -3010,33 +3040,33 @@ function Za(e, t, n, o, s, a) {
|
|
|
3010
3040
|
_: 2
|
|
3011
3041
|
}, 1032, ["controlParams", "ui-params", "deviceGroup"]))), 128))
|
|
3012
3042
|
])
|
|
3013
|
-
]);
|
|
3043
|
+
], 2);
|
|
3014
3044
|
}
|
|
3015
|
-
const
|
|
3016
|
-
var
|
|
3045
|
+
const tl = /* @__PURE__ */ oe(Ja, [["render", el], ["__scopeId", "data-v-6ea43472"]]);
|
|
3046
|
+
var nl = Object.defineProperty, ol = Object.defineProperties, sl = Object.getOwnPropertyDescriptors, Nn = Object.getOwnPropertySymbols, rl = Object.prototype.hasOwnProperty, al = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? nl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Po = (e, t) => {
|
|
3017
3047
|
for (var n in t || (t = {}))
|
|
3018
|
-
|
|
3019
|
-
if (
|
|
3020
|
-
for (var n of
|
|
3021
|
-
|
|
3048
|
+
rl.call(t, n) && Sn(e, n, t[n]);
|
|
3049
|
+
if (Nn)
|
|
3050
|
+
for (var n of Nn(t))
|
|
3051
|
+
al.call(t, n) && Sn(e, n, t[n]);
|
|
3022
3052
|
return e;
|
|
3023
|
-
},
|
|
3024
|
-
const
|
|
3025
|
-
function
|
|
3053
|
+
}, ll = (e, t) => ol(e, sl(t));
|
|
3054
|
+
const He = 6, Cn = He * 2;
|
|
3055
|
+
function il(e, t) {
|
|
3026
3056
|
return e.map(
|
|
3027
3057
|
({
|
|
3028
3058
|
leftTop: { col: n, row: o },
|
|
3029
3059
|
rightBottom: { col: s, row: a }
|
|
3030
|
-
}) => `<line x1="${n * t.col +
|
|
3060
|
+
}) => `<line x1="${n * t.col + He}" y1="${o * t.row + He}" x2="${s * t.col + He}" y2="${a * t.row + He}" stroke="black" stroke-width="5"/>`
|
|
3031
3061
|
).join(" ");
|
|
3032
3062
|
}
|
|
3033
|
-
function
|
|
3063
|
+
function cl(e, t, n) {
|
|
3034
3064
|
return n.findIndex((o) => e >= o.leftTop.row && e < o.rightBottom.row && t >= o.leftTop.col && t < o.rightBottom.col) >= 0;
|
|
3035
3065
|
}
|
|
3036
|
-
function
|
|
3066
|
+
function ul(e, t, n) {
|
|
3037
3067
|
n.forEach((o) => {
|
|
3038
|
-
const s =
|
|
3039
|
-
id:
|
|
3068
|
+
const s = ll(Po({}, o.leftTop), {
|
|
3069
|
+
id: $o(o.leftTop),
|
|
3040
3070
|
layout: {
|
|
3041
3071
|
left: 100 / t.col * o.leftTop.col,
|
|
3042
3072
|
top: 100 / t.row * o.leftTop.row,
|
|
@@ -3049,11 +3079,11 @@ function cl(e, t, n) {
|
|
|
3049
3079
|
e.push(s);
|
|
3050
3080
|
});
|
|
3051
3081
|
}
|
|
3052
|
-
function
|
|
3082
|
+
function $o(e) {
|
|
3053
3083
|
return `${e.row}-${e.col}`;
|
|
3054
3084
|
}
|
|
3055
|
-
const
|
|
3056
|
-
function
|
|
3085
|
+
const An = "ComponentsDefaultLayoutKeyAF84566", Dn = "ComponentsCustomLayoutsKeyAF84566";
|
|
3086
|
+
function dl(e) {
|
|
3057
3087
|
const t = [], n = [];
|
|
3058
3088
|
for (let o = 0; o < e.points.length / 2; o++)
|
|
3059
3089
|
n.push(e.points.slice(o * 2, o * 2 + 2));
|
|
@@ -3077,27 +3107,27 @@ function ul(e) {
|
|
|
3077
3107
|
}
|
|
3078
3108
|
return t;
|
|
3079
3109
|
}
|
|
3080
|
-
const
|
|
3110
|
+
const Se = {
|
|
3081
3111
|
TransLayoutToFrams(e) {
|
|
3082
3112
|
const t = [];
|
|
3083
3113
|
e.area && t.push(e.area), e.areas && t.push(...e.areas);
|
|
3084
3114
|
const n = [];
|
|
3085
3115
|
for (let o = 0; o < e.row; o++)
|
|
3086
3116
|
for (let s = 0; s < e.col; s++) {
|
|
3087
|
-
if (
|
|
3117
|
+
if (cl(o, s, t))
|
|
3088
3118
|
continue;
|
|
3089
|
-
const a =
|
|
3119
|
+
const a = Po({
|
|
3090
3120
|
layout: {
|
|
3091
3121
|
left: 100 / e.col * s,
|
|
3092
3122
|
top: 100 / e.row * o,
|
|
3093
3123
|
width: 100 / e.col,
|
|
3094
3124
|
height: 100 / e.row
|
|
3095
3125
|
},
|
|
3096
|
-
id:
|
|
3126
|
+
id: $o({ row: o, col: s })
|
|
3097
3127
|
}, { row: o, col: s, w: 1, h: 1 });
|
|
3098
3128
|
n.push(a);
|
|
3099
3129
|
}
|
|
3100
|
-
return
|
|
3130
|
+
return ul(n, e, t), n;
|
|
3101
3131
|
},
|
|
3102
3132
|
TransLayoutToSVG(e, t) {
|
|
3103
3133
|
const n = [];
|
|
@@ -3126,32 +3156,31 @@ const Ne = {
|
|
|
3126
3156
|
);
|
|
3127
3157
|
const a = o.concat(...s), r = [];
|
|
3128
3158
|
a.forEach((c) => {
|
|
3129
|
-
c.points = c.points.sort(), r.push(...
|
|
3159
|
+
c.points = c.points.sort(), r.push(...dl(c));
|
|
3130
3160
|
});
|
|
3131
3161
|
const l = {
|
|
3132
3162
|
row: t.height / e.row,
|
|
3133
3163
|
col: t.width / e.col
|
|
3134
|
-
}, i =
|
|
3135
|
-
return `<svg viewBox='0 0 ${t.width +
|
|
3164
|
+
}, i = il(r, l);
|
|
3165
|
+
return `<svg viewBox='0 0 ${t.width + Cn} ${t.height + Cn} ' width="100%" height="100%"> ${i} </svg>`;
|
|
3136
3166
|
},
|
|
3137
3167
|
StorageDefaultLayout: {
|
|
3138
3168
|
get() {
|
|
3139
|
-
const e = localStorage.getItem(
|
|
3140
|
-
if (e
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
}
|
|
3169
|
+
const e = localStorage.getItem(An);
|
|
3170
|
+
if (e != null)
|
|
3171
|
+
try {
|
|
3172
|
+
return JSON.parse(e);
|
|
3173
|
+
} catch {
|
|
3174
|
+
return;
|
|
3175
|
+
}
|
|
3147
3176
|
},
|
|
3148
3177
|
set(e) {
|
|
3149
|
-
localStorage.setItem(
|
|
3178
|
+
localStorage.setItem(An, JSON.stringify(e));
|
|
3150
3179
|
}
|
|
3151
3180
|
},
|
|
3152
3181
|
CustomLayouts: {
|
|
3153
3182
|
get() {
|
|
3154
|
-
const e = localStorage.getItem(
|
|
3183
|
+
const e = localStorage.getItem(Dn);
|
|
3155
3184
|
if (e == null)
|
|
3156
3185
|
return [];
|
|
3157
3186
|
try {
|
|
@@ -3161,10 +3190,10 @@ const Ne = {
|
|
|
3161
3190
|
}
|
|
3162
3191
|
},
|
|
3163
3192
|
set(e) {
|
|
3164
|
-
localStorage.setItem(
|
|
3193
|
+
localStorage.setItem(Dn, JSON.stringify(e));
|
|
3165
3194
|
}
|
|
3166
3195
|
}
|
|
3167
|
-
},
|
|
3196
|
+
}, fl = Q({
|
|
3168
3197
|
emits: {
|
|
3169
3198
|
onselect(e, t) {
|
|
3170
3199
|
return !0;
|
|
@@ -3179,15 +3208,16 @@ const Ne = {
|
|
|
3179
3208
|
}
|
|
3180
3209
|
},
|
|
3181
3210
|
setup(e) {
|
|
3211
|
+
const t = U(() => {
|
|
3212
|
+
var o;
|
|
3213
|
+
return e.layouts ? (o = e.layouts) == null ? void 0 : o.map((s) => ({
|
|
3214
|
+
svg: Se.TransLayoutToSVG(s, { width: 100, height: 100 }),
|
|
3215
|
+
layout: s,
|
|
3216
|
+
select: JSON.stringify(s) == JSON.stringify(e.defaultLayout)
|
|
3217
|
+
})) : [];
|
|
3218
|
+
});
|
|
3182
3219
|
return {
|
|
3183
|
-
layoutInfos:
|
|
3184
|
-
var n;
|
|
3185
|
-
return e.layouts ? (n = e.layouts) == null ? void 0 : n.map((o) => ({
|
|
3186
|
-
svg: Ne.TransLayoutToSVG(o, { width: 100, height: 100 }),
|
|
3187
|
-
layout: o,
|
|
3188
|
-
select: JSON.stringify(o) == JSON.stringify(e.defaultLayout)
|
|
3189
|
-
})) : [];
|
|
3190
|
-
})
|
|
3220
|
+
layoutInfos: we(t.value)
|
|
3191
3221
|
};
|
|
3192
3222
|
},
|
|
3193
3223
|
mounted() {
|
|
@@ -3213,37 +3243,40 @@ const Ne = {
|
|
|
3213
3243
|
cancel: !1
|
|
3214
3244
|
};
|
|
3215
3245
|
this.$emit("onselect", t, e.svg), t.cancel || (this.layoutInfos.forEach((n) => {
|
|
3216
|
-
n.select = !1;
|
|
3246
|
+
n.select && (n.select = !1);
|
|
3217
3247
|
}), e.select = !0);
|
|
3218
3248
|
}
|
|
3249
|
+
},
|
|
3250
|
+
getClassLayout(e) {
|
|
3251
|
+
return e.select ? "layout-item layout-item-select" : "layout-item";
|
|
3219
3252
|
}
|
|
3220
3253
|
}
|
|
3221
3254
|
});
|
|
3222
|
-
const
|
|
3223
|
-
function
|
|
3255
|
+
const _l = ["onClick"], ml = { style: { position: "relative", display: "inline-block", margin: "10px" } }, pl = ["innerHTML"], gl = { style: { "vertical-align": "middle" } };
|
|
3256
|
+
function hl(e, t, n, o, s, a) {
|
|
3224
3257
|
return N(), A("div", null, [
|
|
3225
3258
|
(N(!0), A(ue, null, Ee(e.layoutInfos, (r) => (N(), A("div", {
|
|
3226
|
-
class:
|
|
3259
|
+
class: ke(e.getClassLayout(r)),
|
|
3227
3260
|
onClick: (l) => e.selectClick(r)
|
|
3228
3261
|
}, [
|
|
3229
|
-
b("div",
|
|
3262
|
+
b("div", ml, [
|
|
3230
3263
|
b("div", {
|
|
3231
3264
|
innerHTML: r.svg,
|
|
3232
3265
|
class: "svg-style"
|
|
3233
|
-
}, null, 8,
|
|
3234
|
-
b("span",
|
|
3266
|
+
}, null, 8, pl),
|
|
3267
|
+
b("span", gl, j(r.layout.name), 1)
|
|
3235
3268
|
])
|
|
3236
|
-
], 10,
|
|
3269
|
+
], 10, _l))), 256))
|
|
3237
3270
|
]);
|
|
3238
3271
|
}
|
|
3239
|
-
const
|
|
3272
|
+
const Mo = /* @__PURE__ */ oe(fl, [["render", hl], ["__scopeId", "data-v-75abecd2"]]), vl = Q({
|
|
3240
3273
|
props: {
|
|
3241
3274
|
layout: {
|
|
3242
3275
|
type: Object
|
|
3243
3276
|
}
|
|
3244
3277
|
},
|
|
3245
3278
|
setup(e) {
|
|
3246
|
-
const t = U(() => e.layout ?
|
|
3279
|
+
const t = U(() => e.layout ? Se.TransLayoutToFrams(e.layout).sort((o, s) => o.row == s.row ? o.col - s.col : o.row - s.row) : []);
|
|
3247
3280
|
return {
|
|
3248
3281
|
areas: U(() => t.value.map((o) => ({
|
|
3249
3282
|
id: o.id,
|
|
@@ -3256,15 +3289,15 @@ const Po = /* @__PURE__ */ oe(dl, [["render", gl], ["__scopeId", "data-v-2a8e459
|
|
|
3256
3289
|
};
|
|
3257
3290
|
}
|
|
3258
3291
|
});
|
|
3259
|
-
const
|
|
3260
|
-
function
|
|
3261
|
-
return N(), A("div",
|
|
3292
|
+
const yl = { style: { position: "relative", height: "100%", width: "100%" } };
|
|
3293
|
+
function El(e, t, n, o, s, a) {
|
|
3294
|
+
return N(), A("div", yl, [
|
|
3262
3295
|
(N(!0), A(ue, null, Ee(e.frameRef, ({ layout: r, id: l, row: i, col: c, w: m, h: f }, u) => (N(), A("div", {
|
|
3263
3296
|
class: "play-area",
|
|
3264
3297
|
key: u,
|
|
3265
3298
|
style: _e(`position: absolute; top: calc(${r.top}%); left: calc(${r.left}%); width: calc(${r.width}%); height: calc(${r.height}%);`)
|
|
3266
3299
|
}, [
|
|
3267
|
-
|
|
3300
|
+
Y(e.$slots, "default", {
|
|
3268
3301
|
id: l,
|
|
3269
3302
|
row: i,
|
|
3270
3303
|
col: c,
|
|
@@ -3276,15 +3309,15 @@ function yl(e, t, n, o, s, a) {
|
|
|
3276
3309
|
], 4))), 128))
|
|
3277
3310
|
]);
|
|
3278
3311
|
}
|
|
3279
|
-
const
|
|
3312
|
+
const Vt = /* @__PURE__ */ oe(vl, [["render", El], ["__scopeId", "data-v-e6baa31a"]]), wl = {
|
|
3280
3313
|
width: 1024,
|
|
3281
3314
|
height: 1024,
|
|
3282
3315
|
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"/>'
|
|
3283
3316
|
};
|
|
3284
|
-
|
|
3285
|
-
const
|
|
3317
|
+
Ce("close", wl);
|
|
3318
|
+
const bl = Q({
|
|
3286
3319
|
components: {
|
|
3287
|
-
VideoAreaLayoutShow:
|
|
3320
|
+
VideoAreaLayoutShow: Vt,
|
|
3288
3321
|
Icon: it
|
|
3289
3322
|
},
|
|
3290
3323
|
setup() {
|
|
@@ -3398,83 +3431,83 @@ const wl = Q({
|
|
|
3398
3431
|
}
|
|
3399
3432
|
}
|
|
3400
3433
|
});
|
|
3401
|
-
const
|
|
3402
|
-
function
|
|
3434
|
+
const Ll = { style: { height: "calc(100% - 80px)", width: "calc(100%)", position: "relative" } }, Ol = ["onMouseenter", "onMousedown"], Il = { style: { "font-size": "32px" } }, Tl = { style: { display: "inline-block", width: "40px", "text-align": "center" } }, Nl = { style: { display: "inline-block", width: "calc(100% - 40px)", "text-align": "right", "vertical-align": "middle" } }, Sl = ["onClick"];
|
|
3435
|
+
function Cl(e, t, n, o, s, a) {
|
|
3403
3436
|
const r = fe("Icon"), l = fe("VideoAreaLayoutShow");
|
|
3404
|
-
return N(), A("div",
|
|
3437
|
+
return N(), A("div", Ll, [
|
|
3405
3438
|
B(l, { layout: e.layout }, {
|
|
3406
3439
|
default: te((i) => [
|
|
3407
3440
|
b("div", {
|
|
3408
|
-
class:
|
|
3441
|
+
class: ke(e.genClass(i)),
|
|
3409
3442
|
onMouseenter: (c) => e.onMouseOver(c, i),
|
|
3410
3443
|
onMousedown: (c) => e.onMouseDown(i),
|
|
3411
3444
|
style: { "user-select": "none" }
|
|
3412
3445
|
}, [
|
|
3413
|
-
b("div",
|
|
3414
|
-
b("div",
|
|
3415
|
-
b("div",
|
|
3446
|
+
b("div", Il, [
|
|
3447
|
+
b("div", Tl, j(i.index + 1), 1),
|
|
3448
|
+
b("div", Nl, [
|
|
3416
3449
|
b("span", {
|
|
3417
3450
|
onClick: (c) => e.onDelLayout(i)
|
|
3418
3451
|
}, [
|
|
3419
|
-
i.w > 1 || i.h > 1 ? (N(),
|
|
3452
|
+
i.w > 1 || i.h > 1 ? (N(), Fe(r, {
|
|
3420
3453
|
key: 0,
|
|
3421
3454
|
icon: "close",
|
|
3422
3455
|
class: "close-btn"
|
|
3423
3456
|
})) : pe("", !0)
|
|
3424
|
-
], 8,
|
|
3457
|
+
], 8, Sl)
|
|
3425
3458
|
])
|
|
3426
3459
|
])
|
|
3427
|
-
], 42,
|
|
3460
|
+
], 42, Ol)
|
|
3428
3461
|
]),
|
|
3429
3462
|
_: 1
|
|
3430
3463
|
}, 8, ["layout"])
|
|
3431
3464
|
]);
|
|
3432
3465
|
}
|
|
3433
|
-
const
|
|
3466
|
+
const Al = /* @__PURE__ */ oe(bl, [["render", Cl], ["__scopeId", "data-v-c3d9b21a"]]), Dl = Q({
|
|
3434
3467
|
components: {
|
|
3435
3468
|
Icon: it,
|
|
3436
|
-
LayoutShow:
|
|
3437
|
-
CustomLayoutGen:
|
|
3469
|
+
LayoutShow: Mo,
|
|
3470
|
+
CustomLayoutGen: Al
|
|
3438
3471
|
},
|
|
3439
3472
|
setup() {
|
|
3440
3473
|
return {
|
|
3441
3474
|
layout: k(
|
|
3442
|
-
|
|
3475
|
+
Se.CustomLayouts.get()
|
|
3443
3476
|
),
|
|
3444
|
-
i18nT:
|
|
3477
|
+
i18nT: Ne
|
|
3445
3478
|
};
|
|
3446
3479
|
}
|
|
3447
3480
|
});
|
|
3448
|
-
const
|
|
3481
|
+
const Pl = { style: { "margin-left": "10px", "margin-top": "10px" } }, $l = { class: "plus-custom-layout" }, Ml = /* @__PURE__ */ Gn("\u6DFB\u52A0\u5E03\u5C40 "), kl = { style: { "margin-top": "10px" } }, Rl = { style: { height: "300px" } };
|
|
3449
3482
|
function xl(e, t, n, o, s, a) {
|
|
3450
3483
|
const r = fe("Icon"), l = fe("CustomLayoutGen");
|
|
3451
|
-
return N(), A("div",
|
|
3484
|
+
return N(), A("div", Pl, [
|
|
3452
3485
|
b("span", null, [
|
|
3453
3486
|
Gn(j(e.i18nT("zi-ding-yi-bu-ju")) + "\uFF1A ", 1),
|
|
3454
|
-
b("span",
|
|
3487
|
+
b("span", $l, [
|
|
3455
3488
|
B(r, {
|
|
3456
3489
|
icon: "plus",
|
|
3457
3490
|
style: { "vertical-align": "text-top" }
|
|
3458
3491
|
}),
|
|
3459
|
-
|
|
3492
|
+
Ml
|
|
3460
3493
|
])
|
|
3461
3494
|
]),
|
|
3462
|
-
b("div",
|
|
3463
|
-
b("div",
|
|
3495
|
+
b("div", kl, [
|
|
3496
|
+
b("div", Rl, [
|
|
3464
3497
|
B(l)
|
|
3465
3498
|
])
|
|
3466
3499
|
])
|
|
3467
3500
|
]);
|
|
3468
3501
|
}
|
|
3469
|
-
const
|
|
3502
|
+
const Fl = /* @__PURE__ */ oe(Dl, [["render", xl], ["__scopeId", "data-v-f8b51862"]]), Vl = Q({
|
|
3470
3503
|
emits: {
|
|
3471
3504
|
LayoutChange(e, t, n) {
|
|
3472
3505
|
return !0;
|
|
3473
3506
|
}
|
|
3474
3507
|
},
|
|
3475
3508
|
components: {
|
|
3476
|
-
UseCustomLayoutSelector:
|
|
3477
|
-
LayoutShow:
|
|
3509
|
+
UseCustomLayoutSelector: Fl,
|
|
3510
|
+
LayoutShow: Mo,
|
|
3478
3511
|
Icon: it
|
|
3479
3512
|
},
|
|
3480
3513
|
props: {
|
|
@@ -3483,7 +3516,7 @@ const Rl = /* @__PURE__ */ oe(Al, [["render", xl], ["__scopeId", "data-v-f8b5186
|
|
|
3483
3516
|
}
|
|
3484
3517
|
},
|
|
3485
3518
|
setup(e, t) {
|
|
3486
|
-
const n = e.layouts, o =
|
|
3519
|
+
const n = e.layouts, o = we(
|
|
3487
3520
|
n && n.length > 0 ? n : [
|
|
3488
3521
|
I.Test.genLayout(1, 1),
|
|
3489
3522
|
I.Test.genLayout(1, 2),
|
|
@@ -3510,7 +3543,7 @@ const Rl = /* @__PURE__ */ oe(Al, [["render", xl], ["__scopeId", "data-v-f8b5186
|
|
|
3510
3543
|
])
|
|
3511
3544
|
]
|
|
3512
3545
|
);
|
|
3513
|
-
|
|
3546
|
+
Ie(
|
|
3514
3547
|
() => e.layouts,
|
|
3515
3548
|
() => {
|
|
3516
3549
|
if (e.layouts && e.layouts.length > 0) {
|
|
@@ -3523,7 +3556,7 @@ const Rl = /* @__PURE__ */ oe(Al, [["render", xl], ["__scopeId", "data-v-f8b5186
|
|
|
3523
3556
|
}
|
|
3524
3557
|
);
|
|
3525
3558
|
const s = k();
|
|
3526
|
-
let a =
|
|
3559
|
+
let a = Se.StorageDefaultLayout.get();
|
|
3527
3560
|
function r() {
|
|
3528
3561
|
return a ? o.findIndex(
|
|
3529
3562
|
(g) => JSON.stringify(g) == JSON.stringify(a)
|
|
@@ -3542,14 +3575,14 @@ const Rl = /* @__PURE__ */ oe(Al, [["render", xl], ["__scopeId", "data-v-f8b5186
|
|
|
3542
3575
|
}
|
|
3543
3576
|
let c = !0;
|
|
3544
3577
|
const m = function(g, w) {
|
|
3545
|
-
JSON.stringify(a) != JSON.stringify(g) && i(g, w) && c && (a = g.layout,
|
|
3578
|
+
JSON.stringify(a) != JSON.stringify(g) && i(g, w) && c && (a = g.layout, Se.StorageDefaultLayout.set(g.layout)), f.value.length == 0 && i(g, w);
|
|
3546
3579
|
}, f = k(""), u = k(!1), d = () => {
|
|
3547
3580
|
u.value = !u.value, u.value ? window.addEventListener("click", p) : window.removeEventListener("click", p);
|
|
3548
3581
|
}, p = (g) => {
|
|
3549
3582
|
u.value && g.composedPath().findIndex(({ className: S }) => S == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", p));
|
|
3550
3583
|
};
|
|
3551
3584
|
return {
|
|
3552
|
-
i18nT:
|
|
3585
|
+
i18nT: Ne,
|
|
3553
3586
|
selectClassicalLayout: (g, w, S) => {
|
|
3554
3587
|
var T;
|
|
3555
3588
|
S || (c = !1);
|
|
@@ -3571,10 +3604,10 @@ const Rl = /* @__PURE__ */ oe(Al, [["render", xl], ["__scopeId", "data-v-f8b5186
|
|
|
3571
3604
|
},
|
|
3572
3605
|
expose: ["selectLoyoutById", "selectClassicalLayout"]
|
|
3573
3606
|
});
|
|
3574
|
-
const
|
|
3575
|
-
function
|
|
3607
|
+
const Ul = { class: "layout-switcher" }, Gl = ["innerHTML"], zl = { class: "switch-panel" }, Hl = { style: { "margin-left": "10px" } }, jl = { style: { "margin-left": "10px", padding: "10px" } }, Wl = { style: { "margin-left": "10px" } };
|
|
3608
|
+
function Bl(e, t, n, o, s, a) {
|
|
3576
3609
|
const r = fe("LayoutShow");
|
|
3577
|
-
return N(), A("div",
|
|
3610
|
+
return N(), A("div", Ul, [
|
|
3578
3611
|
b("div", {
|
|
3579
3612
|
onClick: t[0] || (t[0] = (...l) => e.clickShowSelectPanel && e.clickShowSelectPanel(...l)),
|
|
3580
3613
|
class: "switch-switcher"
|
|
@@ -3582,14 +3615,14 @@ function Wl(e, t, n, o, s, a) {
|
|
|
3582
3615
|
b("div", {
|
|
3583
3616
|
innerHTML: e.svgSelect,
|
|
3584
3617
|
style: { height: "32px", display: "inline-block", "vertical-align": "middle", width: "32px" }
|
|
3585
|
-
}, null, 8,
|
|
3618
|
+
}, null, 8, Gl)
|
|
3586
3619
|
]),
|
|
3587
|
-
Vn(b("div",
|
|
3588
|
-
b("div",
|
|
3620
|
+
Vn(b("div", zl, [
|
|
3621
|
+
b("div", Hl, [
|
|
3589
3622
|
b("span", null, j(e.i18nT("qing-xuan-ze-bu-ju-yang-shi")), 1)
|
|
3590
3623
|
]),
|
|
3591
|
-
b("div",
|
|
3592
|
-
b("div",
|
|
3624
|
+
b("div", jl, [
|
|
3625
|
+
b("div", Wl, [
|
|
3593
3626
|
b("span", null, j(e.i18nT("biao-zhun-bu-ju")) + "\uFF1A", 1),
|
|
3594
3627
|
B(r, {
|
|
3595
3628
|
ref: "refLayoutShow",
|
|
@@ -3604,10 +3637,10 @@ function Wl(e, t, n, o, s, a) {
|
|
|
3604
3637
|
])
|
|
3605
3638
|
]);
|
|
3606
3639
|
}
|
|
3607
|
-
const
|
|
3640
|
+
const Kl = /* @__PURE__ */ oe(Vl, [["render", Bl], ["__scopeId", "data-v-1b358304"]]), Yl = {
|
|
3608
3641
|
key: 0,
|
|
3609
3642
|
class: "layout-display"
|
|
3610
|
-
},
|
|
3643
|
+
}, Xl = ["innerHTML"], Jl = { style: { display: "inline-block", height: "32px", width: "20px", "line-height": "32px", "vertical-align": "top" } }, Ql = /* @__PURE__ */ Q({
|
|
3611
3644
|
__name: "layoutDisplay",
|
|
3612
3645
|
props: {
|
|
3613
3646
|
layout: {
|
|
@@ -3627,8 +3660,8 @@ const Bl = /* @__PURE__ */ oe(Fl, [["render", Wl], ["__scopeId", "data-v-1b35830
|
|
|
3627
3660
|
const s = t.layout;
|
|
3628
3661
|
return {
|
|
3629
3662
|
layout: s,
|
|
3630
|
-
svg:
|
|
3631
|
-
frams:
|
|
3663
|
+
svg: Se.TransLayoutToSVG(s, { width: 100, height: 100 }),
|
|
3664
|
+
frams: Se.TransLayoutToFrams(s)
|
|
3632
3665
|
};
|
|
3633
3666
|
}
|
|
3634
3667
|
});
|
|
@@ -3638,22 +3671,22 @@ const Bl = /* @__PURE__ */ oe(Fl, [["render", Wl], ["__scopeId", "data-v-1b35830
|
|
|
3638
3671
|
b("span", {
|
|
3639
3672
|
innerHTML: (r = le(o)) == null ? void 0 : r.svg,
|
|
3640
3673
|
style: { display: "inline-block", height: "32px", width: "32px", "line-height": "32px", "background-color": "rgb(201, 201, 201)" }
|
|
3641
|
-
}, null, 8,
|
|
3642
|
-
b("span",
|
|
3674
|
+
}, null, 8, Xl),
|
|
3675
|
+
b("span", Jl, j(n(le(o).frams.length)), 1)
|
|
3643
3676
|
])) : pe("", !0);
|
|
3644
3677
|
};
|
|
3645
3678
|
}
|
|
3646
3679
|
});
|
|
3647
|
-
const
|
|
3648
|
-
var
|
|
3680
|
+
const ko = /* @__PURE__ */ oe(Ql, [["__scopeId", "data-v-4e937302"]]);
|
|
3681
|
+
var ql = Object.defineProperty, Zl = Object.defineProperties, ei = Object.getOwnPropertyDescriptors, Pn = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, $n = (e, t, n) => t in e ? ql(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oi = (e, t) => {
|
|
3649
3682
|
for (var n in t || (t = {}))
|
|
3650
|
-
|
|
3651
|
-
if (
|
|
3652
|
-
for (var n of
|
|
3653
|
-
|
|
3683
|
+
ti.call(t, n) && $n(e, n, t[n]);
|
|
3684
|
+
if (Pn)
|
|
3685
|
+
for (var n of Pn(t))
|
|
3686
|
+
ni.call(t, n) && $n(e, n, t[n]);
|
|
3654
3687
|
return e;
|
|
3655
|
-
},
|
|
3656
|
-
const
|
|
3688
|
+
}, si = (e, t) => Zl(e, ei(t));
|
|
3689
|
+
const Qe = [
|
|
3657
3690
|
I.Test.genLayout(1, 1),
|
|
3658
3691
|
I.Test.genLayout(1, 2),
|
|
3659
3692
|
I.Test.genLayout(2, 2),
|
|
@@ -3677,7 +3710,7 @@ const Je = [
|
|
|
3677
3710
|
[3, 0, 5, 2],
|
|
3678
3711
|
[5, 0, 7, 2]
|
|
3679
3712
|
])
|
|
3680
|
-
],
|
|
3713
|
+
], ri = /* @__PURE__ */ Q({
|
|
3681
3714
|
__name: "preLayout",
|
|
3682
3715
|
props: {
|
|
3683
3716
|
zIndexModal: {
|
|
@@ -3685,7 +3718,7 @@ const Je = [
|
|
|
3685
3718
|
}
|
|
3686
3719
|
},
|
|
3687
3720
|
setup(e) {
|
|
3688
|
-
const t = e, n = k(!1), o =
|
|
3721
|
+
const t = e, n = k(!1), o = we({
|
|
3689
3722
|
top: "",
|
|
3690
3723
|
left: ""
|
|
3691
3724
|
});
|
|
@@ -3703,7 +3736,7 @@ const Je = [
|
|
|
3703
3736
|
window.document.addEventListener("click", r);
|
|
3704
3737
|
}, 50);
|
|
3705
3738
|
}
|
|
3706
|
-
const i =
|
|
3739
|
+
const i = we([
|
|
3707
3740
|
I.Test.genLayout(1, 1),
|
|
3708
3741
|
I.Test.genLayout(1, 2),
|
|
3709
3742
|
I.Test.genLayout(2, 2),
|
|
@@ -3733,10 +3766,10 @@ const Je = [
|
|
|
3733
3766
|
return ot(() => {
|
|
3734
3767
|
window.document.removeEventListener("click", r);
|
|
3735
3768
|
}), (f, u) => (N(), A(ue, null, [
|
|
3736
|
-
(N(),
|
|
3769
|
+
(N(), Fe(zn, { to: le(m) }, [
|
|
3737
3770
|
n.value ? (N(), A("div", {
|
|
3738
3771
|
key: 0,
|
|
3739
|
-
style: _e([{ width: "330px", position: "absolute", "background-color": "white", "padding-left": "25px", border: "1px solid", "padding-top": "20px", "padding-bottom": "20px", "border-radius": "5px" }, oi(
|
|
3772
|
+
style: _e([{ width: "330px", position: "absolute", "background-color": "white", "padding-left": "25px", border: "1px solid", "padding-top": "20px", "padding-bottom": "20px", "border-radius": "5px" }, si(oi({}, o), { zIndex: t.zIndexModal })]),
|
|
3740
3773
|
onClick: u[0] || (u[0] = (d) => d.stopPropagation())
|
|
3741
3774
|
}, [
|
|
3742
3775
|
(N(!0), A(ue, null, Ee(le(c), (d, p) => (N(), A("span", {
|
|
@@ -3744,22 +3777,22 @@ const Je = [
|
|
|
3744
3777
|
class: "layout-panel-item-container",
|
|
3745
3778
|
style: { border: "1px solid" }
|
|
3746
3779
|
}, [
|
|
3747
|
-
B(
|
|
3780
|
+
B(ko, {
|
|
3748
3781
|
layout: d.layout,
|
|
3749
3782
|
onClick: (v) => a(d.layout)
|
|
3750
3783
|
}, null, 8, ["layout", "onClick"])
|
|
3751
3784
|
]))), 128))
|
|
3752
3785
|
], 4)) : pe("", !0)
|
|
3753
3786
|
], 8, ["to"])),
|
|
3754
|
-
|
|
3787
|
+
Y(f.$slots, "default", { addPreSetLayout: l }, void 0, !0)
|
|
3755
3788
|
], 64));
|
|
3756
3789
|
}
|
|
3757
3790
|
});
|
|
3758
|
-
const
|
|
3791
|
+
const ai = /* @__PURE__ */ oe(ri, [["__scopeId", "data-v-954fc7ec"]]), li = {
|
|
3759
3792
|
key: 0,
|
|
3760
3793
|
style: { position: "relative" },
|
|
3761
3794
|
class: "layout-container"
|
|
3762
|
-
},
|
|
3795
|
+
}, ii = { key: 1 }, ci = /* @__PURE__ */ Q({
|
|
3763
3796
|
__name: "layoutSelector",
|
|
3764
3797
|
props: {
|
|
3765
3798
|
row: {
|
|
@@ -3802,25 +3835,25 @@ const ri = /* @__PURE__ */ oe(si, [["__scopeId", "data-v-954fc7ec"]]), ai = {
|
|
|
3802
3835
|
n("addPreset", f, i, { row: o.row, col: o.col });
|
|
3803
3836
|
}
|
|
3804
3837
|
return xe(() => {
|
|
3805
|
-
o.layout ? o.layout == I.zeroLayout ? l.value = void 0 : l.value = o.layout : typeof o.index == "number" && o.index <
|
|
3806
|
-
}),
|
|
3838
|
+
o.layout ? o.layout == I.zeroLayout ? l.value = void 0 : l.value = o.layout : typeof o.index == "number" && o.index < Qe.length && (l.value = Qe[o.index]);
|
|
3839
|
+
}), Ie(
|
|
3807
3840
|
() => o.index,
|
|
3808
3841
|
() => {
|
|
3809
|
-
typeof o.index == "number" && (o.index <
|
|
3842
|
+
typeof o.index == "number" && (o.index < Qe.length ? l.value = Qe[o.index] : l.value = void 0);
|
|
3810
3843
|
}
|
|
3811
3844
|
), t({
|
|
3812
3845
|
getLayout() {
|
|
3813
|
-
if (
|
|
3846
|
+
if (ze(l.value))
|
|
3814
3847
|
return {
|
|
3815
|
-
layout:
|
|
3848
|
+
layout: ze(l.value),
|
|
3816
3849
|
locatoin: {
|
|
3817
|
-
col:
|
|
3818
|
-
row:
|
|
3850
|
+
col: ze(o.col),
|
|
3851
|
+
row: ze(o.row)
|
|
3819
3852
|
}
|
|
3820
3853
|
};
|
|
3821
3854
|
}
|
|
3822
|
-
}), (f, u) => l.value ? (N(), A("div",
|
|
3823
|
-
B(
|
|
3855
|
+
}), (f, u) => l.value ? (N(), A("div", li, [
|
|
3856
|
+
B(ko, { layout: l.value }, null, 8, ["layout"]),
|
|
3824
3857
|
b("div", {
|
|
3825
3858
|
class: "close-btn",
|
|
3826
3859
|
onClick: u[0] || (u[0] = (d) => c())
|
|
@@ -3830,23 +3863,23 @@ const ri = /* @__PURE__ */ oe(si, [["__scopeId", "data-v-954fc7ec"]]), ai = {
|
|
|
3830
3863
|
class: "close-svg"
|
|
3831
3864
|
})
|
|
3832
3865
|
])
|
|
3833
|
-
])) : (N(), A("div",
|
|
3866
|
+
])) : (N(), A("div", ii, [
|
|
3834
3867
|
b("div", null, [
|
|
3835
3868
|
b("div", {
|
|
3836
3869
|
class: "options",
|
|
3837
3870
|
style: { "margin-bottom": "1px", "line-height": "18px", height: "18px" },
|
|
3838
3871
|
onClick: u[1] || (u[1] = (d) => m(d))
|
|
3839
|
-
}, j(le(
|
|
3872
|
+
}, j(le(Ne)("yu-she")), 1),
|
|
3840
3873
|
b("div", {
|
|
3841
3874
|
class: "options",
|
|
3842
3875
|
onClick: u[2] || (u[2] = (d) => r(d)),
|
|
3843
3876
|
style: { "line-height": "19px", height: "19px" }
|
|
3844
|
-
}, j(le(
|
|
3877
|
+
}, j(le(Ne)("zi-ding-yi")), 1)
|
|
3845
3878
|
])
|
|
3846
3879
|
]));
|
|
3847
3880
|
}
|
|
3848
3881
|
});
|
|
3849
|
-
const
|
|
3882
|
+
const ui = /* @__PURE__ */ oe(ci, [["__scopeId", "data-v-74c8042d"]]), di = { style: { height: "100%", width: "100%", position: "relative", padding: "5px", border: "1px solid", "border-radius": "5px", "background-color": "white" } }, fi = { style: { height: "40px" } }, _i = { style: { display: "inline-block", width: "150px", "margin-left": "30px" } }, mi = { style: { display: "inline-block", width: "40px" } }, pi = { style: { display: "inline-block", width: "20px" } }, gi = { style: { display: "inline-block", width: "150px" } }, hi = { style: { display: "inline-block", width: "40px" } }, vi = { style: { display: "inline-block", width: "20px" } }, yi = { style: { height: "calc(100% - 60px)", width: "calc(100% - 60px)", "margin-left": "30px", position: "relative" } }, Ei = ["onMousemove", "onMousedown"], wi = { style: { "text-align": "center", color: "white", "font-size": "48px", "margin-left": "20px", "margin-top": "20px" } }, bi = ["onClick"], Li = /* @__PURE__ */ Q({
|
|
3850
3883
|
__name: "index",
|
|
3851
3884
|
props: {
|
|
3852
3885
|
row: {
|
|
@@ -3893,7 +3926,7 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
3893
3926
|
const u = U(() => I.genLayout(o.row, o.col)), d = U(() => ({
|
|
3894
3927
|
col: Math.max(...p.map((O) => O.area.colsMax)),
|
|
3895
3928
|
row: Math.max(...p.map((O) => O.area.rowsMax))
|
|
3896
|
-
})), p =
|
|
3929
|
+
})), p = we(new Array()), v = ["green", "red", "blue"];
|
|
3897
3930
|
function y() {
|
|
3898
3931
|
return v[p.length % v.length];
|
|
3899
3932
|
}
|
|
@@ -3907,16 +3940,16 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
3907
3940
|
}, C = y();
|
|
3908
3941
|
return {
|
|
3909
3942
|
infoGetter() {
|
|
3910
|
-
const V = (O.colsMax - O.colsMin) / u.value.col * 100,
|
|
3943
|
+
const V = (O.colsMax - O.colsMin) / u.value.col * 100, Le = (O.rowsMax - O.rowsMin) / u.value.row * 100, Ae = V / 100 * u.value.col, ve = Le / 100 * u.value.row;
|
|
3911
3944
|
return {
|
|
3912
3945
|
style: {
|
|
3913
3946
|
left: `calc(${(O.colsMin + g) / u.value.col * 100}%)`,
|
|
3914
3947
|
top: `calc(${(O.rowsMin + g) / u.value.row * 100}% `,
|
|
3915
3948
|
width: `calc(${V - g * 2 / u.value.col * 100}% )`,
|
|
3916
|
-
height: `calc(${
|
|
3949
|
+
height: `calc(${Le - g * 2 / u.value.row * 100}%)`,
|
|
3917
3950
|
backgroundColor: C
|
|
3918
3951
|
},
|
|
3919
|
-
areaCount:
|
|
3952
|
+
areaCount: Ae * ve
|
|
3920
3953
|
};
|
|
3921
3954
|
},
|
|
3922
3955
|
area: O
|
|
@@ -3924,26 +3957,26 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
3924
3957
|
}
|
|
3925
3958
|
});
|
|
3926
3959
|
function S(O) {
|
|
3927
|
-
const [C,
|
|
3928
|
-
return Array.from({ length:
|
|
3929
|
-
const ct = `${
|
|
3930
|
-
Array.from({ length:
|
|
3960
|
+
const [C, R] = [O.colsMin, O.colsMax], [V, Le] = [O.rowsMin, O.rowsMax], Ae = [];
|
|
3961
|
+
return Array.from({ length: R - C }).map((ve, Ue) => {
|
|
3962
|
+
const ct = `${Ue + C}-${Ue + C + 1}`;
|
|
3963
|
+
Array.from({ length: Le - V }).map((Ut, Ye) => {
|
|
3931
3964
|
const ut = `${Ye + V}-${Ye + V + 1}`;
|
|
3932
|
-
|
|
3965
|
+
Ae.push(`${ct}|${ut}`);
|
|
3933
3966
|
});
|
|
3934
|
-
}),
|
|
3967
|
+
}), Ae;
|
|
3935
3968
|
}
|
|
3936
3969
|
function T(O, C) {
|
|
3937
|
-
return S(O).findIndex((
|
|
3970
|
+
return S(O).findIndex((R) => S(C).findIndex((V) => R == V) >= 0) >= 0;
|
|
3938
3971
|
}
|
|
3939
3972
|
function E(O, C) {
|
|
3940
|
-
const
|
|
3973
|
+
const R = {
|
|
3941
3974
|
colsMin: Math.min(O.colsMin, C.colsMin),
|
|
3942
3975
|
colsMax: Math.max(O.colsMax, C.colsMax),
|
|
3943
3976
|
rowsMin: Math.min(O.rowsMin, C.rowsMin),
|
|
3944
3977
|
rowsMax: Math.max(O.rowsMax, C.rowsMax)
|
|
3945
3978
|
};
|
|
3946
|
-
return p.findIndex((V) => T(
|
|
3979
|
+
return p.findIndex((V) => T(R, V.area)) >= 0;
|
|
3947
3980
|
}
|
|
3948
3981
|
function P(O) {
|
|
3949
3982
|
const C = {
|
|
@@ -3953,16 +3986,16 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
3953
3986
|
rowsMax: O.row + O.h
|
|
3954
3987
|
};
|
|
3955
3988
|
!D.first && E(C, C) || (D.first || (D.first = C), !E(D.first, C) && (D.last && Object.keys(C).findIndex(
|
|
3956
|
-
(
|
|
3989
|
+
(R) => {
|
|
3957
3990
|
var V;
|
|
3958
|
-
return ((V = D.last) == null ? void 0 : V[
|
|
3991
|
+
return ((V = D.last) == null ? void 0 : V[R]) != C[R];
|
|
3959
3992
|
}
|
|
3960
3993
|
) < 0 || (D.last = C)));
|
|
3961
3994
|
}
|
|
3962
3995
|
function $() {
|
|
3963
3996
|
D.first = void 0, D.last = void 0;
|
|
3964
3997
|
}
|
|
3965
|
-
const D =
|
|
3998
|
+
const D = we({});
|
|
3966
3999
|
function X(O, C) {
|
|
3967
4000
|
O.buttons && P(C);
|
|
3968
4001
|
}
|
|
@@ -3971,7 +4004,7 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
3971
4004
|
const O = w.value;
|
|
3972
4005
|
if (O && O.infoGetter().areaCount > 1) {
|
|
3973
4006
|
p.push(O);
|
|
3974
|
-
const C = p.sort((
|
|
4007
|
+
const C = p.sort((R, V) => (R.area.rowsMin - V.area.rowsMin) * 1e3 + R.area.colsMin - V.area.colsMin);
|
|
3975
4008
|
p.splice(0, p.length, ...C);
|
|
3976
4009
|
}
|
|
3977
4010
|
$();
|
|
@@ -3983,11 +4016,11 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
3983
4016
|
window.document.removeEventListener("mouseup", q);
|
|
3984
4017
|
});
|
|
3985
4018
|
function Z() {
|
|
3986
|
-
const O = p.map((
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
4019
|
+
const O = p.map((R) => [
|
|
4020
|
+
R.area.colsMin,
|
|
4021
|
+
R.area.rowsMin,
|
|
4022
|
+
R.area.colsMax,
|
|
4023
|
+
R.area.rowsMax
|
|
3991
4024
|
]);
|
|
3992
4025
|
return I.genLayout(
|
|
3993
4026
|
u.value.row,
|
|
@@ -3997,50 +4030,50 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
3997
4030
|
}
|
|
3998
4031
|
return t({
|
|
3999
4032
|
getLayout: Z
|
|
4000
|
-
}), (O, C) => (N(), A("div",
|
|
4001
|
-
b("div",
|
|
4002
|
-
b("div",
|
|
4003
|
-
b("span",
|
|
4004
|
-
b("span",
|
|
4033
|
+
}), (O, C) => (N(), A("div", di, [
|
|
4034
|
+
b("div", fi, [
|
|
4035
|
+
b("div", _i, [
|
|
4036
|
+
b("span", mi, j(le(Ne)("hang-shu")), 1),
|
|
4037
|
+
b("span", pi, j(o.row), 1),
|
|
4005
4038
|
b("button", {
|
|
4006
|
-
onClick: C[0] || (C[0] = (
|
|
4039
|
+
onClick: C[0] || (C[0] = (R) => i()),
|
|
4007
4040
|
style: { cursor: "pointer" }
|
|
4008
4041
|
}, "+"),
|
|
4009
4042
|
b("button", {
|
|
4010
4043
|
style: { "margin-left": "2px", cursor: "pointer" },
|
|
4011
|
-
onClick: C[1] || (C[1] = (
|
|
4044
|
+
onClick: C[1] || (C[1] = (R) => c())
|
|
4012
4045
|
}, " - ")
|
|
4013
4046
|
]),
|
|
4014
|
-
b("div",
|
|
4015
|
-
b("span",
|
|
4016
|
-
b("span",
|
|
4047
|
+
b("div", gi, [
|
|
4048
|
+
b("span", hi, j(le(Ne)("lie-shu")), 1),
|
|
4049
|
+
b("span", vi, j(o.col), 1),
|
|
4017
4050
|
b("button", {
|
|
4018
|
-
onClick: C[2] || (C[2] = (
|
|
4051
|
+
onClick: C[2] || (C[2] = (R) => m()),
|
|
4019
4052
|
style: { cursor: "pointer" }
|
|
4020
4053
|
}, "+"),
|
|
4021
4054
|
b("button", {
|
|
4022
|
-
onClick: C[3] || (C[3] = (
|
|
4055
|
+
onClick: C[3] || (C[3] = (R) => f()),
|
|
4023
4056
|
style: { "margin-left": "2px", cursor: "pointer" }
|
|
4024
4057
|
}, " - ")
|
|
4025
4058
|
]),
|
|
4026
4059
|
b("button", {
|
|
4027
4060
|
style: { cursor: "pointer", position: "absolute", right: "10px" },
|
|
4028
|
-
onClick: C[4] || (C[4] = (
|
|
4061
|
+
onClick: C[4] || (C[4] = (R) => l())
|
|
4029
4062
|
}, [
|
|
4030
4063
|
b("span", { innerHTML: a })
|
|
4031
4064
|
])
|
|
4032
4065
|
]),
|
|
4033
|
-
b("div",
|
|
4034
|
-
B(
|
|
4066
|
+
b("div", yi, [
|
|
4067
|
+
B(Vt, {
|
|
4035
4068
|
layout: le(u),
|
|
4036
4069
|
class: "area-layout"
|
|
4037
4070
|
}, {
|
|
4038
|
-
default: te((
|
|
4071
|
+
default: te((R) => [
|
|
4039
4072
|
b("div", {
|
|
4040
4073
|
class: "area-item",
|
|
4041
|
-
onMousemove: (V) => X(V,
|
|
4042
|
-
onMousedown: (V) => X(V,
|
|
4043
|
-
}, j(
|
|
4074
|
+
onMousemove: (V) => X(V, R),
|
|
4075
|
+
onMousedown: (V) => X(V, R)
|
|
4076
|
+
}, j(R.id), 41, Ei)
|
|
4044
4077
|
]),
|
|
4045
4078
|
_: 1
|
|
4046
4079
|
}, 8, ["layout"]),
|
|
@@ -4049,31 +4082,31 @@ const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { st
|
|
|
4049
4082
|
style: _e(le(w).infoGetter().style),
|
|
4050
4083
|
class: "current-area"
|
|
4051
4084
|
}, null, 4)) : pe("", !0),
|
|
4052
|
-
(N(!0), A(ue, null, Ee(p, (
|
|
4053
|
-
style: _e([
|
|
4085
|
+
(N(!0), A(ue, null, Ee(p, (R, V) => (N(), A("div", {
|
|
4086
|
+
style: _e([R.infoGetter().style, {}]),
|
|
4054
4087
|
class: "current-area"
|
|
4055
4088
|
}, [
|
|
4056
|
-
b("span",
|
|
4089
|
+
b("span", wi, j(V + 1), 1),
|
|
4057
4090
|
b("span", {
|
|
4058
4091
|
class: "close-svg",
|
|
4059
4092
|
innerHTML: s,
|
|
4060
|
-
onClick: (
|
|
4061
|
-
}, null, 8,
|
|
4093
|
+
onClick: (Le) => r(V)
|
|
4094
|
+
}, null, 8, bi)
|
|
4062
4095
|
], 4))), 256))
|
|
4063
4096
|
])
|
|
4064
4097
|
]));
|
|
4065
4098
|
}
|
|
4066
4099
|
});
|
|
4067
|
-
const
|
|
4068
|
-
var
|
|
4100
|
+
const Oi = /* @__PURE__ */ oe(Li, [["__scopeId", "data-v-dc80afb8"]]);
|
|
4101
|
+
var Ii = Object.defineProperty, Ti = Object.defineProperties, Ni = Object.getOwnPropertyDescriptors, Mn = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, kn = (e, t, n) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ai = (e, t) => {
|
|
4069
4102
|
for (var n in t || (t = {}))
|
|
4070
|
-
|
|
4071
|
-
if (
|
|
4072
|
-
for (var n of
|
|
4073
|
-
|
|
4103
|
+
Si.call(t, n) && kn(e, n, t[n]);
|
|
4104
|
+
if (Mn)
|
|
4105
|
+
for (var n of Mn(t))
|
|
4106
|
+
Ci.call(t, n) && kn(e, n, t[n]);
|
|
4074
4107
|
return e;
|
|
4075
|
-
},
|
|
4076
|
-
const
|
|
4108
|
+
}, Di = (e, t) => Ti(e, Ni(t));
|
|
4109
|
+
const Pi = /* @__PURE__ */ Q({
|
|
4077
4110
|
__name: "layout-custom-editor",
|
|
4078
4111
|
props: {
|
|
4079
4112
|
zIndexModal: {
|
|
@@ -4088,7 +4121,7 @@ const Di = /* @__PURE__ */ Q({
|
|
|
4088
4121
|
function s(u) {
|
|
4089
4122
|
r == null || r(u);
|
|
4090
4123
|
}
|
|
4091
|
-
const a =
|
|
4124
|
+
const a = we({
|
|
4092
4125
|
row: 5,
|
|
4093
4126
|
col: 4
|
|
4094
4127
|
});
|
|
@@ -4114,16 +4147,16 @@ const Di = /* @__PURE__ */ Q({
|
|
|
4114
4147
|
}), ot(() => {
|
|
4115
4148
|
window.document.removeEventListener("click", l);
|
|
4116
4149
|
}), (u, d) => (N(), A(ue, null, [
|
|
4117
|
-
n.value ? (N(),
|
|
4150
|
+
n.value ? (N(), Fe(zn, {
|
|
4118
4151
|
key: 0,
|
|
4119
4152
|
to: n.value
|
|
4120
4153
|
}, [
|
|
4121
4154
|
f.value ? (N(), A("div", {
|
|
4122
4155
|
key: 0,
|
|
4123
|
-
style: _e([{ "background-color": "white" }, Ai(
|
|
4156
|
+
style: _e([{ "background-color": "white" }, Di(Ai({}, le(i)), { zIndex: t.zIndexModal })]),
|
|
4124
4157
|
onClick: d[0] || (d[0] = (p) => p.stopPropagation())
|
|
4125
4158
|
}, [
|
|
4126
|
-
B(
|
|
4159
|
+
B(Oi, {
|
|
4127
4160
|
row: a.row,
|
|
4128
4161
|
col: a.col,
|
|
4129
4162
|
updataLayoutInfo: o,
|
|
@@ -4131,16 +4164,16 @@ const Di = /* @__PURE__ */ Q({
|
|
|
4131
4164
|
}, null, 8, ["row", "col"])
|
|
4132
4165
|
], 4)) : pe("", !0)
|
|
4133
4166
|
], 8, ["to"])) : pe("", !0),
|
|
4134
|
-
|
|
4167
|
+
Y(u.$slots, "default", { addCustomLayoutGen: m })
|
|
4135
4168
|
], 64));
|
|
4136
4169
|
}
|
|
4137
4170
|
});
|
|
4138
|
-
var
|
|
4171
|
+
var $i = Object.defineProperty, Rn = Object.getOwnPropertySymbols, Mi = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ri = (e, t) => {
|
|
4139
4172
|
for (var n in t || (t = {}))
|
|
4140
|
-
|
|
4141
|
-
if (
|
|
4142
|
-
for (var n of
|
|
4143
|
-
|
|
4173
|
+
Mi.call(t, n) && xn(e, n, t[n]);
|
|
4174
|
+
if (Rn)
|
|
4175
|
+
for (var n of Rn(t))
|
|
4176
|
+
ki.call(t, n) && xn(e, n, t[n]);
|
|
4144
4177
|
return e;
|
|
4145
4178
|
};
|
|
4146
4179
|
const xi = {
|
|
@@ -4149,7 +4182,7 @@ const xi = {
|
|
|
4149
4182
|
width: "78px",
|
|
4150
4183
|
height: "48px"
|
|
4151
4184
|
}
|
|
4152
|
-
},
|
|
4185
|
+
}, Fi = { style: { width: "100%", height: "40px" } }, Vi = { class: "add-row-panel" }, Ui = /* @__PURE__ */ Q({
|
|
4153
4186
|
__name: "layoutGen",
|
|
4154
4187
|
props: {
|
|
4155
4188
|
savedLayout: {
|
|
@@ -4160,7 +4193,7 @@ const xi = {
|
|
|
4160
4193
|
}
|
|
4161
4194
|
},
|
|
4162
4195
|
setup(e, { expose: t }) {
|
|
4163
|
-
const n = e, o =
|
|
4196
|
+
const n = e, o = we({
|
|
4164
4197
|
row: 4,
|
|
4165
4198
|
col: 4
|
|
4166
4199
|
});
|
|
@@ -4175,7 +4208,7 @@ const xi = {
|
|
|
4175
4208
|
getLayouts() {
|
|
4176
4209
|
return {
|
|
4177
4210
|
layouts: r.value.map((m) => m.getLayout()).filter((m) => !!m),
|
|
4178
|
-
meta:
|
|
4211
|
+
meta: Ri({}, ze(o))
|
|
4179
4212
|
};
|
|
4180
4213
|
}
|
|
4181
4214
|
});
|
|
@@ -4191,11 +4224,11 @@ const xi = {
|
|
|
4191
4224
|
}
|
|
4192
4225
|
return xe(() => {
|
|
4193
4226
|
n.savedLayout && (o.row = n.savedLayout.meta.row, o.col = n.savedLayout.meta.col);
|
|
4194
|
-
}), (i, c) => (N(),
|
|
4227
|
+
}), (i, c) => (N(), Fe(Pi, {
|
|
4195
4228
|
zIndexModal: n.zIndexModal
|
|
4196
4229
|
}, {
|
|
4197
4230
|
default: te(({ addCustomLayoutGen: m }) => [
|
|
4198
|
-
B(
|
|
4231
|
+
B(ai, {
|
|
4199
4232
|
zIndexModal: n.zIndexModal
|
|
4200
4233
|
}, {
|
|
4201
4234
|
default: te(({ addPreSetLayout: f }) => [
|
|
@@ -4207,8 +4240,8 @@ const xi = {
|
|
|
4207
4240
|
style: _e({ width: `${80 * o.col}px` })
|
|
4208
4241
|
}, [
|
|
4209
4242
|
(N(!0), A(ue, null, Ee(Array.from({ length: o.col }), (p, v) => (N(), A("div", xi, [
|
|
4210
|
-
b("div",
|
|
4211
|
-
B(
|
|
4243
|
+
b("div", Fi, [
|
|
4244
|
+
B(ui, {
|
|
4212
4245
|
ref_for: !0,
|
|
4213
4246
|
ref_key: "layoutSelectorRefs",
|
|
4214
4247
|
ref: r,
|
|
@@ -4222,7 +4255,7 @@ const xi = {
|
|
|
4222
4255
|
])
|
|
4223
4256
|
]))), 256))
|
|
4224
4257
|
], 4))), 256)),
|
|
4225
|
-
b("div",
|
|
4258
|
+
b("div", Vi, [
|
|
4226
4259
|
b("div", {
|
|
4227
4260
|
onClick: c[0] || (c[0] = (u) => a()),
|
|
4228
4261
|
style: { display: "inline-block", width: "calc(50% - 5px)" },
|
|
@@ -4244,7 +4277,7 @@ const xi = {
|
|
|
4244
4277
|
}, 8, ["zIndexModal"]));
|
|
4245
4278
|
}
|
|
4246
4279
|
});
|
|
4247
|
-
const
|
|
4280
|
+
const Gi = /* @__PURE__ */ oe(Ui, [["__scopeId", "data-v-a44695f9"]]), zi = { style: { "background-color": "white" } }, Hi = /* @__PURE__ */ Q({
|
|
4248
4281
|
__name: "index",
|
|
4249
4282
|
props: {
|
|
4250
4283
|
savedLayout: {
|
|
@@ -4261,8 +4294,8 @@ const Ui = /* @__PURE__ */ oe(Vi, [["__scopeId", "data-v-a44695f9"]]), Gi = { st
|
|
|
4261
4294
|
var s;
|
|
4262
4295
|
return (s = o.value) == null ? void 0 : s.getLayouts();
|
|
4263
4296
|
}
|
|
4264
|
-
}), (s, a) => (N(), A("div",
|
|
4265
|
-
B(
|
|
4297
|
+
}), (s, a) => (N(), A("div", zi, [
|
|
4298
|
+
B(Gi, {
|
|
4266
4299
|
ref_key: "refLayoutGen",
|
|
4267
4300
|
ref: o,
|
|
4268
4301
|
savedLayout: n.savedLayout,
|
|
@@ -4271,29 +4304,32 @@ const Ui = /* @__PURE__ */ oe(Vi, [["__scopeId", "data-v-a44695f9"]]), Gi = { st
|
|
|
4271
4304
|
]));
|
|
4272
4305
|
}
|
|
4273
4306
|
});
|
|
4274
|
-
const
|
|
4275
|
-
RecursionDeviceGroup:
|
|
4276
|
-
VideoAreasLayoutShow:
|
|
4277
|
-
MultiVideoAreaLayoutSwitch:
|
|
4278
|
-
VideoAreasLayoutCustom:
|
|
4279
|
-
},
|
|
4307
|
+
const ji = /* @__PURE__ */ oe(Hi, [["__scopeId", "data-v-ab800ae2"]]), Fn = {
|
|
4308
|
+
RecursionDeviceGroup: tl,
|
|
4309
|
+
VideoAreasLayoutShow: Vt,
|
|
4310
|
+
MultiVideoAreaLayoutSwitch: Kl,
|
|
4311
|
+
VideoAreasLayoutCustom: ji
|
|
4312
|
+
}, Xi = {
|
|
4280
4313
|
install(e, t) {
|
|
4281
|
-
|
|
4314
|
+
Hr(
|
|
4282
4315
|
t && typeof t.locale < "u" ? t.locale : ho.en
|
|
4283
|
-
), t.deviceListDisplayStyle &&
|
|
4284
|
-
for (const n in
|
|
4285
|
-
const o =
|
|
4316
|
+
), t.deviceListDisplayStyle && Wr(t.deviceListDisplayStyle);
|
|
4317
|
+
for (const n in Fn) {
|
|
4318
|
+
const o = Fn[n];
|
|
4286
4319
|
e.component(n, o);
|
|
4287
4320
|
}
|
|
4288
4321
|
}
|
|
4289
4322
|
};
|
|
4290
4323
|
export {
|
|
4291
4324
|
vo as DeviceListNameDisplayStyle,
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4325
|
+
yo as DeviceListTheme,
|
|
4326
|
+
jr as GetGlobalDeviceListTheme,
|
|
4327
|
+
Kr as GetIsHideDeviceIdInDeviceDisplay,
|
|
4328
|
+
gn as RecursionDeviceGroup,
|
|
4329
|
+
Wr as SetDeviceListNameDisplayStyle,
|
|
4330
|
+
Ki as SetGlobalDeviceListTheme,
|
|
4331
|
+
Yi as SetIsHideDeviceIdInDeviceDisplay,
|
|
4296
4332
|
I as VideoAreaLayout,
|
|
4297
|
-
|
|
4333
|
+
Xi as default
|
|
4298
4334
|
};
|
|
4299
4335
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|