smarteye-e-components 0.0.73 → 0.0.74
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 +1239 -1193
- 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 +3 -11
- package/lib/components/multi-video-area-layout-switch/model/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { h as qe, getCurrentInstance as Nt, effectScope as
|
|
1
|
+
import { h as qe, getCurrentInstance as Nt, effectScope as Qo, inject as Fn, onMounted as xe, onUnmounted as ot, ref as k, computed as U, watch as Me, Fragment as ue, isRef as qo, createVNode as B, Text as Zo, defineComponent as Q, openBlock as N, createElementBlock as A, renderSlot as K, createElementVNode as b, toDisplayString as j, createCommentVNode as pe, normalizeStyle as _e, renderList as Ee, resolveComponent as fe, withDirectives as Vn, normalizeClass as Ze, withCtx as te, createBlock as Re, vShow as Un, provide as es, createTextVNode as Gn, reactive as Oe, unref as le, Teleport as zn, toRaw as Ge } 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, Ie;
|
|
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), Ie = (t, n, o) => {
|
|
12
12
|
e.measure(t, n, o), e.clearMarks(n), e.clearMarks(o);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const ts = /\{([0-9a-zA-Z]+)\}/g;
|
|
16
16
|
function St(e, ...t) {
|
|
17
|
-
return t.length === 1 &&
|
|
17
|
+
return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ts, (n, o) => t.hasOwnProperty(o) ? t[o] : "");
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const ns = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", he = (e) => ns ? Symbol(e) : e, os = (e, t, n) => ss({ l: e, k: t, s: n }), ss = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), Y = (e) => typeof e == "number" && isFinite(e), rs = (e) => Dt(e) === "[object Date]", et = (e) => Dt(e) === "[object RegExp]", st = (e) => M(e) && Object.keys(e).length === 0;
|
|
20
|
+
function Fe(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 Ct = () =>
|
|
26
|
-
function
|
|
24
|
+
let zt;
|
|
25
|
+
const Ct = () => zt || (zt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
26
|
+
function Ht(e) {
|
|
27
27
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const as = Object.prototype.hasOwnProperty;
|
|
30
30
|
function At(e, t) {
|
|
31
|
-
return
|
|
31
|
+
return as.call(e, t);
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
function
|
|
33
|
+
const z = Array.isArray, W = (e) => typeof e == "function", L = (e) => typeof e == "string", G = (e) => typeof e == "boolean", R = (e) => e !== null && typeof e == "object", Hn = Object.prototype.toString, Dt = (e) => Hn.call(e), M = (e) => Dt(e) === "[object Object]", ls = (e) => e == null ? "" : z(e) || M(e) && e.toString === Hn ? JSON.stringify(e, null, 2) : String(e), jt = 2;
|
|
34
|
+
function is(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 - jt; l <= r + jt || n > s; l++) {
|
|
41
41
|
if (l < 0 || l >= o.length)
|
|
42
42
|
continue;
|
|
43
43
|
const i = l + 1;
|
|
44
44
|
a.push(`${i}${" ".repeat(3 - String(i).length)}| ${o[l]}`);
|
|
45
45
|
const c = o[l].length;
|
|
46
46
|
if (l === r) {
|
|
47
|
-
const
|
|
48
|
-
a.push(" | " + " ".repeat(
|
|
47
|
+
const m = t - (s - c) + 1, f = Math.max(1, n > s ? c - m : n - t);
|
|
48
|
+
a.push(" | " + " ".repeat(m) + "^".repeat(f));
|
|
49
49
|
} else if (l > r) {
|
|
50
50
|
if (n > s) {
|
|
51
|
-
const
|
|
52
|
-
a.push(" | " + "^".repeat(
|
|
51
|
+
const m = Math.max(Math.min(n - s, c), 1);
|
|
52
|
+
a.push(" | " + "^".repeat(m));
|
|
53
53
|
}
|
|
54
54
|
s += c + 1;
|
|
55
55
|
}
|
|
@@ -59,7 +59,7 @@ function as(e, t = 0, n = e.length) {
|
|
|
59
59
|
return a.join(`
|
|
60
60
|
`);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function jn() {
|
|
63
63
|
const e = /* @__PURE__ */ new Map();
|
|
64
64
|
return {
|
|
65
65
|
events: e,
|
|
@@ -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
|
+
}, cs = {
|
|
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",
|
|
@@ -113,8 +113,8 @@ const J = {
|
|
|
113
113
|
[J.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
114
114
|
[J.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
115
115
|
};
|
|
116
|
-
function
|
|
117
|
-
const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ? St((s ||
|
|
116
|
+
function Wn(e, t, n = {}) {
|
|
117
|
+
const { domain: o, messages: s, args: a } = n, r = process.env.NODE_ENV !== "production" ? St((s || cs)[e] || "", ...a || []) : e, l = new SyntaxError(String(r));
|
|
118
118
|
return l.code = e, t && (l.location = t), l.domain = o, l;
|
|
119
119
|
}
|
|
120
120
|
/*!
|
|
@@ -122,7 +122,7 @@ function jn(e, t, n = {}) {
|
|
|
122
122
|
* (c) 2022 kazuya kawaguchi
|
|
123
123
|
* Released under the MIT License.
|
|
124
124
|
*/
|
|
125
|
-
const
|
|
125
|
+
const Bn = {
|
|
126
126
|
I18nInit: "i18n:init",
|
|
127
127
|
FunctionTranslate: "function:translate"
|
|
128
128
|
};
|
|
@@ -131,25 +131,25 @@ const zn = {
|
|
|
131
131
|
* (c) 2022 kazuya kawaguchi
|
|
132
132
|
* Released under the MIT License.
|
|
133
133
|
*/
|
|
134
|
-
const
|
|
135
|
-
|
|
134
|
+
const we = [];
|
|
135
|
+
we[0] = {
|
|
136
136
|
w: [0],
|
|
137
137
|
i: [3, 0],
|
|
138
138
|
["["]: [4],
|
|
139
139
|
o: [7]
|
|
140
140
|
};
|
|
141
|
-
|
|
141
|
+
we[1] = {
|
|
142
142
|
w: [1],
|
|
143
143
|
["."]: [2],
|
|
144
144
|
["["]: [4],
|
|
145
145
|
o: [7]
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
we[2] = {
|
|
148
148
|
w: [2],
|
|
149
149
|
i: [3, 0],
|
|
150
150
|
[0]: [3, 0]
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
we[3] = {
|
|
153
153
|
i: [3, 0],
|
|
154
154
|
[0]: [3, 0],
|
|
155
155
|
w: [1, 1],
|
|
@@ -157,7 +157,7 @@ be[3] = {
|
|
|
157
157
|
["["]: [4, 1],
|
|
158
158
|
o: [7, 1]
|
|
159
159
|
};
|
|
160
|
-
|
|
160
|
+
we[4] = {
|
|
161
161
|
["'"]: [5, 0],
|
|
162
162
|
['"']: [6, 0],
|
|
163
163
|
["["]: [
|
|
@@ -168,25 +168,25 @@ be[4] = {
|
|
|
168
168
|
o: 8,
|
|
169
169
|
l: [4, 0]
|
|
170
170
|
};
|
|
171
|
-
|
|
171
|
+
we[5] = {
|
|
172
172
|
["'"]: [4, 0],
|
|
173
173
|
o: 8,
|
|
174
174
|
l: [5, 0]
|
|
175
175
|
};
|
|
176
|
-
|
|
176
|
+
we[6] = {
|
|
177
177
|
['"']: [4, 0],
|
|
178
178
|
o: 8,
|
|
179
179
|
l: [6, 0]
|
|
180
180
|
};
|
|
181
|
-
const
|
|
182
|
-
function
|
|
183
|
-
return
|
|
181
|
+
const us = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
182
|
+
function ds(e) {
|
|
183
|
+
return us.test(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function fs(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 _s(e) {
|
|
190
190
|
if (e == null)
|
|
191
191
|
return "o";
|
|
192
192
|
switch (e.charCodeAt(0)) {
|
|
@@ -211,13 +211,13 @@ function ds(e) {
|
|
|
211
211
|
}
|
|
212
212
|
return "i";
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function ms(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 : ds(t) ? fs(t) : "*" + t;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function ps(e) {
|
|
219
219
|
const t = [];
|
|
220
|
-
let n = -1, o = 0, s = 0, a, r, l, i, c,
|
|
220
|
+
let n = -1, o = 0, s = 0, a, r, l, i, c, m, f;
|
|
221
221
|
const u = [];
|
|
222
222
|
u[0] = () => {
|
|
223
223
|
r === void 0 ? r = l : r += l;
|
|
@@ -229,33 +229,33 @@ function _s(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 = ms(r), r === !1))
|
|
233
233
|
return !1;
|
|
234
234
|
u[1]();
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
function d() {
|
|
238
|
-
const
|
|
239
|
-
if (o === 5 &&
|
|
240
|
-
return n++, l = "\\" +
|
|
238
|
+
const p = e[n + 1];
|
|
239
|
+
if (o === 5 && p === "'" || o === 6 && p === '"')
|
|
240
|
+
return n++, l = "\\" + p, u[0](), !0;
|
|
241
241
|
}
|
|
242
242
|
for (; o !== null; )
|
|
243
243
|
if (n++, a = e[n], !(a === "\\" && d())) {
|
|
244
|
-
if (i =
|
|
244
|
+
if (i = _s(a), f = we[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
250
|
const Wt = /* @__PURE__ */ new Map();
|
|
251
|
-
function
|
|
252
|
-
return
|
|
251
|
+
function gs(e, t) {
|
|
252
|
+
return R(e) ? e[t] : null;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
if (!
|
|
254
|
+
function hs(e, t) {
|
|
255
|
+
if (!R(e))
|
|
256
256
|
return null;
|
|
257
257
|
let n = Wt.get(t);
|
|
258
|
-
if (n || (n =
|
|
258
|
+
if (n || (n = ps(t), n && Wt.set(t, n)), !n)
|
|
259
259
|
return null;
|
|
260
260
|
const o = n.length;
|
|
261
261
|
let s = e, a = 0;
|
|
@@ -267,57 +267,57 @@ function ps(e, t) {
|
|
|
267
267
|
}
|
|
268
268
|
return s;
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const vs = (e) => e, ys = (e) => "", Es = "text", ws = (e) => e.length === 0 ? "" : e.join(""), bs = ls;
|
|
271
271
|
function Bt(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 Ls(e) {
|
|
275
|
+
const t = Y(e.pluralIndex) ? e.pluralIndex : -1;
|
|
276
|
+
return e.named && (Y(e.named.count) || Y(e.named.n)) ? Y(e.named.count) ? e.named.count : Y(e.named.n) ? e.named.n : t : t;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Os(e, t) {
|
|
279
279
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
const t = e.locale, n =
|
|
283
|
-
|
|
284
|
-
const c = (
|
|
285
|
-
function
|
|
286
|
-
const
|
|
287
|
-
return
|
|
281
|
+
function Is(e = {}) {
|
|
282
|
+
const t = e.locale, n = Ls(e), o = R(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Bt, s = R(e.pluralRules) && L(t) && W(e.pluralRules[t]) ? Bt : void 0, a = (g) => g[o(n, g.length, s)], r = e.list || [], l = (g) => r[g], i = e.named || {};
|
|
283
|
+
Y(e.pluralIndex) && Os(n, i);
|
|
284
|
+
const c = (g) => i[g];
|
|
285
|
+
function m(g) {
|
|
286
|
+
const w = W(e.messages) ? e.messages(g) : R(e.messages) ? e.messages[g] : !1;
|
|
287
|
+
return w || (e.parent ? e.parent.message(g) : ys);
|
|
288
288
|
}
|
|
289
|
-
const f = (
|
|
289
|
+
const f = (g) => e.modifiers ? e.modifiers[g] : vs, u = M(e.processor) && W(e.processor.normalize) ? e.processor.normalize : ws, d = M(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : bs, p = M(e.processor) && L(e.processor.type) ? e.processor.type : Es, y = {
|
|
290
290
|
list: l,
|
|
291
291
|
named: c,
|
|
292
292
|
plural: a,
|
|
293
|
-
linked: (
|
|
294
|
-
const [
|
|
295
|
-
let
|
|
296
|
-
|
|
297
|
-
let $ =
|
|
298
|
-
return
|
|
293
|
+
linked: (g, ...w) => {
|
|
294
|
+
const [S, T] = w;
|
|
295
|
+
let E = "text", P = "";
|
|
296
|
+
w.length === 1 ? R(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
|
+
let $ = m(g)(y);
|
|
298
|
+
return E === "vnode" && z($) && P && ($ = $[0]), P ? f(P)($, E) : $;
|
|
299
299
|
},
|
|
300
|
-
message:
|
|
301
|
-
type:
|
|
300
|
+
message: m,
|
|
301
|
+
type: p,
|
|
302
302
|
interpolate: d,
|
|
303
303
|
normalize: u
|
|
304
304
|
};
|
|
305
305
|
return y;
|
|
306
306
|
}
|
|
307
307
|
let We = null;
|
|
308
|
-
function
|
|
308
|
+
function Ts(e) {
|
|
309
309
|
We = e;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
We && We.emit(
|
|
311
|
+
function Ns(e, t, n) {
|
|
312
|
+
We && We.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
|
|
319
|
+
const Ss = /* @__PURE__ */ Cs(Bn.FunctionTranslate);
|
|
320
|
+
function Cs(e) {
|
|
321
321
|
return (t) => We && We.emit(e, t);
|
|
322
322
|
}
|
|
323
323
|
const ae = {
|
|
@@ -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
|
+
}, As = {
|
|
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,26 +336,26 @@ 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 St(
|
|
339
|
+
function ke(e, ...t) {
|
|
340
|
+
return St(As[e], ...t);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Ds(e, t, n) {
|
|
343
343
|
return [.../* @__PURE__ */ new Set([
|
|
344
344
|
n,
|
|
345
|
-
...
|
|
345
|
+
...z(t) ? t : R(t) ? Object.keys(t) : L(t) ? [t] : [n]
|
|
346
346
|
])];
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Yn(e, t, n) {
|
|
349
349
|
const o = L(n) ? n : Pt, s = e;
|
|
350
350
|
s.__localeChainCache || (s.__localeChainCache = /* @__PURE__ */ new Map());
|
|
351
351
|
let a = s.__localeChainCache.get(o);
|
|
352
352
|
if (!a) {
|
|
353
353
|
a = [];
|
|
354
354
|
let r = [n];
|
|
355
|
-
for (;
|
|
355
|
+
for (; z(r); )
|
|
356
356
|
r = Yt(a, r, t);
|
|
357
|
-
const l =
|
|
358
|
-
r = L(l) ? [l] : l,
|
|
357
|
+
const l = z(t) || !M(t) ? t : t.default ? t.default : null;
|
|
358
|
+
r = L(l) ? [l] : l, z(r) && Yt(a, r, !1), s.__localeChainCache.set(o, a);
|
|
359
359
|
}
|
|
360
360
|
return a;
|
|
361
361
|
}
|
|
@@ -363,55 +363,55 @@ 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 = Ps(e, t[s], n));
|
|
367
367
|
}
|
|
368
368
|
return o;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ps(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 = $s(e, a, n), s.splice(-1, 1);
|
|
376
376
|
} while (s.length && o === !0);
|
|
377
377
|
return o;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function $s(e, t, n) {
|
|
380
380
|
let o = !1;
|
|
381
381
|
if (!e.includes(t) && (o = !0, t)) {
|
|
382
382
|
o = t[t.length - 1] !== "!";
|
|
383
383
|
const s = t.replace(/!/g, "");
|
|
384
|
-
e.push(s), (
|
|
384
|
+
e.push(s), (z(n) || M(n)) && n[s] && (o = n[s]);
|
|
385
385
|
}
|
|
386
386
|
return o;
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const Ms = "9.2.2", rt = -1, Pt = "en-US", tt = "", Kt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
389
|
+
function ks() {
|
|
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) ? Kt(e) : t === "vnode" &&
|
|
391
|
+
upper: (e, t) => t === "text" && L(e) ? e.toUpperCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
392
|
+
lower: (e, t) => t === "text" && L(e) ? e.toLowerCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
393
|
+
capitalize: (e, t) => t === "text" && L(e) ? Kt(e) : t === "vnode" && R(e) && "__v_isVNode" in e ? Kt(e.children) : e
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
let
|
|
397
|
-
function Ms(e) {
|
|
398
|
-
Bn = e;
|
|
399
|
-
}
|
|
400
|
-
let Yn;
|
|
396
|
+
let xs, Kn;
|
|
401
397
|
function Rs(e) {
|
|
402
|
-
|
|
398
|
+
Kn = e;
|
|
399
|
+
}
|
|
400
|
+
let Xn;
|
|
401
|
+
function Fs(e) {
|
|
402
|
+
Xn = e;
|
|
403
403
|
}
|
|
404
|
-
let
|
|
404
|
+
let Jn = null;
|
|
405
405
|
const Xt = (e) => {
|
|
406
|
-
|
|
407
|
-
},
|
|
408
|
-
let
|
|
406
|
+
Jn = e;
|
|
407
|
+
}, Vs = () => Jn;
|
|
408
|
+
let Qn = null;
|
|
409
409
|
const Jt = (e) => {
|
|
410
|
-
|
|
411
|
-
},
|
|
410
|
+
Qn = e;
|
|
411
|
+
}, Us = () => Qn;
|
|
412
412
|
let Qt = 0;
|
|
413
|
-
function
|
|
414
|
-
const t = L(e.version) ? e.version :
|
|
413
|
+
function Gs(e = {}) {
|
|
414
|
+
const t = L(e.version) ? e.version : Ms, n = L(e.locale) ? e.locale : Pt, 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 || {}, ks()), 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 : xs, S = W(e.messageResolver) ? e.messageResolver : Kn || gs, T = W(e.localeFallbacker) ? e.localeFallbacker : Xn || Ds, E = R(e.fallbackContext) ? e.fallbackContext : void 0, P = W(e.onWarn) ? e.onWarn : Fe, $ = e, D = R($.__datetimeFormatters) ? $.__datetimeFormatters : /* @__PURE__ */ new Map(), X = R($.__numberFormatters) ? $.__numberFormatters : /* @__PURE__ */ new Map(), q = R($.__meta) ? $.__meta : {};
|
|
415
415
|
Qt++;
|
|
416
416
|
const Z = {
|
|
417
417
|
version: t,
|
|
@@ -422,27 +422,27 @@ function Vs(e = {}) {
|
|
|
422
422
|
modifiers: l,
|
|
423
423
|
pluralRules: i,
|
|
424
424
|
missing: c,
|
|
425
|
-
missingWarn:
|
|
425
|
+
missingWarn: m,
|
|
426
426
|
fallbackWarn: f,
|
|
427
427
|
fallbackFormat: u,
|
|
428
428
|
unresolving: d,
|
|
429
|
-
postTranslation:
|
|
429
|
+
postTranslation: p,
|
|
430
430
|
processor: v,
|
|
431
431
|
warnHtmlMessage: y,
|
|
432
|
-
escapeParameter:
|
|
433
|
-
messageCompiler:
|
|
434
|
-
messageResolver:
|
|
435
|
-
localeFallbacker:
|
|
436
|
-
fallbackContext:
|
|
432
|
+
escapeParameter: g,
|
|
433
|
+
messageCompiler: w,
|
|
434
|
+
messageResolver: S,
|
|
435
|
+
localeFallbacker: T,
|
|
436
|
+
fallbackContext: 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__) && Ns(Z, t, q), Z;
|
|
441
441
|
}
|
|
442
442
|
function at(e, t) {
|
|
443
443
|
return e instanceof RegExp ? e.test(t) : e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function qn(e, t) {
|
|
446
446
|
return e instanceof RegExp ? e.test(t) : e;
|
|
447
447
|
}
|
|
448
448
|
function $t(e, t, n, o, s) {
|
|
@@ -460,69 +460,69 @@ 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" &&
|
|
463
|
+
return process.env.NODE_ENV !== "production" && qn(o, t) && r(ke(ae.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
464
464
|
}
|
|
465
465
|
function Ue(e, t, n) {
|
|
466
466
|
const o = e;
|
|
467
467
|
o.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
468
468
|
}
|
|
469
|
-
let
|
|
470
|
-
const ft = () => ++
|
|
471
|
-
INVALID_ARGUMENT:
|
|
469
|
+
let Zn = J.__EXTEND_POINT__;
|
|
470
|
+
const ft = () => ++Zn, ye = {
|
|
471
|
+
INVALID_ARGUMENT: Zn,
|
|
472
472
|
INVALID_DATE_ARGUMENT: ft(),
|
|
473
473
|
INVALID_ISO_DATE_ARGUMENT: ft(),
|
|
474
474
|
__EXTEND_POINT__: ft()
|
|
475
475
|
};
|
|
476
|
-
function
|
|
477
|
-
return
|
|
476
|
+
function $e(e) {
|
|
477
|
+
return Wn(e, null, process.env.NODE_ENV !== "production" ? { messages: zs } : void 0);
|
|
478
478
|
}
|
|
479
|
-
const
|
|
479
|
+
const zs = {
|
|
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
483
|
}, qt = () => "", me = (e) => W(e);
|
|
484
484
|
function Zt(e, ...t) {
|
|
485
|
-
const { fallbackFormat: n, postTranslation: o, unresolving: s, messageCompiler: a, fallbackLocale: r, messages: l } = e, [i, c] = pt(...t),
|
|
486
|
-
u &&
|
|
487
|
-
let [
|
|
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 && Hs(c);
|
|
487
|
+
let [g, w, S] = d ? [
|
|
488
488
|
i,
|
|
489
489
|
y,
|
|
490
490
|
l[y] || {}
|
|
491
|
-
] :
|
|
492
|
-
if (!d && !(L(
|
|
491
|
+
] : eo(e, i, y, r, f, m), T = g, E = i;
|
|
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
|
-
if (process.env.NODE_ENV !== "production" && L(
|
|
495
|
-
return
|
|
494
|
+
if (process.env.NODE_ENV !== "production" && L(T) && e.messageCompiler == null)
|
|
495
|
+
return Fe(`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
|
-
}, D = me(
|
|
499
|
+
}, D = me(T) ? T : to(e, i, w, T, E, $);
|
|
500
500
|
if (P)
|
|
501
|
-
return
|
|
502
|
-
const X =
|
|
501
|
+
return T;
|
|
502
|
+
const X = Bs(e, w, S, c), q = Is(X), Z = js(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(),
|
|
506
|
-
key: L(i) ? i : me(
|
|
507
|
-
locale:
|
|
508
|
-
format: L(
|
|
506
|
+
key: L(i) ? i : me(T) ? T.key : "",
|
|
507
|
+
locale: w || (me(T) ? T.locale : ""),
|
|
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, Vs() || {}), Ss(C);
|
|
512
512
|
}
|
|
513
513
|
return O;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
|
|
517
|
-
L(e.named[t]) && (e.named[t] =
|
|
515
|
+
function Hs(e) {
|
|
516
|
+
z(e.list) ? e.list = e.list.map((t) => L(t) ? Ht(t) : t) : R(e.named) && Object.keys(e.named).forEach((t) => {
|
|
517
|
+
L(e.named[t]) && (e.named[t] = Ht(e.named[t]));
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
const { messages: r, onWarn: l, messageResolver: i, localeFallbacker: c } = e,
|
|
522
|
-
let f = {}, u, d = null,
|
|
520
|
+
function eo(e, t, n, o, s, a) {
|
|
521
|
+
const { messages: r, onWarn: l, messageResolver: i, localeFallbacker: c } = e, m = c(e, o, n);
|
|
522
|
+
let f = {}, u, d = null, p = n, v = null;
|
|
523
523
|
const y = "translate";
|
|
524
|
-
for (let
|
|
525
|
-
if (u = v =
|
|
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(ke(ae.FALLBACK_TO_TRANSLATE, {
|
|
526
526
|
key: t,
|
|
527
527
|
target: u
|
|
528
528
|
})), process.env.NODE_ENV !== "production" && n !== u) {
|
|
@@ -530,37 +530,37 @@ function qn(e, t, n, o, s, a) {
|
|
|
530
530
|
P && P.emit("fallback", {
|
|
531
531
|
type: y,
|
|
532
532
|
key: t,
|
|
533
|
-
from:
|
|
533
|
+
from: p,
|
|
534
534
|
to: v,
|
|
535
535
|
groupId: `${y}:${t}`
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
f = r[u] || {};
|
|
539
|
-
let
|
|
540
|
-
if (process.env.NODE_ENV !== "production" && ge && (
|
|
539
|
+
let w = null, S, T;
|
|
540
|
+
if (process.env.NODE_ENV !== "production" && ge && (w = window.performance.now(), S = "intlify-message-resolve-start", T = "intlify-message-resolve-end", ie && ie(S)), (d = i(f, t)) === null && (d = f[t]), process.env.NODE_ENV !== "production" && ge) {
|
|
541
541
|
const P = window.performance.now(), $ = e.__v_emitter;
|
|
542
|
-
$ &&
|
|
542
|
+
$ && w && d && $.emit("message-resolve", {
|
|
543
543
|
type: "message-resolve",
|
|
544
544
|
key: t,
|
|
545
545
|
message: d,
|
|
546
|
-
time: P -
|
|
546
|
+
time: P - w,
|
|
547
547
|
groupId: `${y}:${t}`
|
|
548
|
-
}),
|
|
548
|
+
}), S && T && ie && Ie && (ie(T), Ie("intlify message resolve", S, T));
|
|
549
549
|
}
|
|
550
550
|
if (L(d) || W(d))
|
|
551
551
|
break;
|
|
552
|
-
const
|
|
552
|
+
const E = $t(
|
|
553
553
|
e,
|
|
554
554
|
t,
|
|
555
555
|
u,
|
|
556
556
|
a,
|
|
557
557
|
y
|
|
558
558
|
);
|
|
559
|
-
|
|
559
|
+
E !== t && (d = E), p = v;
|
|
560
560
|
}
|
|
561
561
|
return [d, u, f];
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function to(e, t, n, o, s, a) {
|
|
564
564
|
const { messageCompiler: r, warnHtmlMessage: l } = e;
|
|
565
565
|
if (me(o)) {
|
|
566
566
|
const u = o;
|
|
@@ -570,9 +570,9 @@ function Zn(e, t, n, o, s, a) {
|
|
|
570
570
|
const u = () => o;
|
|
571
571
|
return u.locale = n, u.key = t, u;
|
|
572
572
|
}
|
|
573
|
-
let i = null, c,
|
|
574
|
-
process.env.NODE_ENV !== "production" && ge && (i = window.performance.now(), c = "intlify-message-compilation-start",
|
|
575
|
-
const f = r(o,
|
|
573
|
+
let i = null, c, m;
|
|
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, Ws(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 Zn(e, t, n, o, s, a) {
|
|
|
580
580
|
message: o,
|
|
581
581
|
time: u - i,
|
|
582
582
|
groupId: `translate:${t}`
|
|
583
|
-
}), c &&
|
|
583
|
+
}), c && m && ie && Ie && (ie(m), Ie("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 js(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 Hs(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 && Ie && (ie(a), Ie("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) && !Y(t) && !me(t))
|
|
605
|
+
throw $e(ye.INVALID_ARGUMENT);
|
|
606
|
+
const a = Y(t) ? String(t) : (me(t), t);
|
|
607
|
+
return Y(n) ? s.plural = n : L(n) ? s.default = n : M(n) && !st(n) ? s.named = n : z(n) && (s.list = n), Y(o) ? s.plural = o : L(o) ? s.default = o : M(o) && ne(s, o), [a, s];
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function Ws(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 && is(o, r.location.start.offset, r.location.end.offset), c = e.__v_emitter;
|
|
615
615
|
c && c.emit("compile-error", {
|
|
616
616
|
message: o,
|
|
617
617
|
error: r.message,
|
|
@@ -623,75 +623,75 @@ ${i}` : l);
|
|
|
623
623
|
} else
|
|
624
624
|
throw r;
|
|
625
625
|
},
|
|
626
|
-
onCacheKey: (r) =>
|
|
626
|
+
onCacheKey: (r) => os(t, n, r)
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
const { modifiers: s, pluralRules: a, messageResolver: r, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext:
|
|
629
|
+
function Bs(e, t, n, o) {
|
|
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,
|
|
633
633
|
pluralRules: a,
|
|
634
634
|
messages: (d) => {
|
|
635
|
-
let
|
|
636
|
-
if (
|
|
637
|
-
const [, , v] =
|
|
638
|
-
|
|
635
|
+
let p = r(n, d);
|
|
636
|
+
if (p == null && m) {
|
|
637
|
+
const [, , v] = eo(m, d, t, l, i, c);
|
|
638
|
+
p = r(v, d);
|
|
639
639
|
}
|
|
640
|
-
if (L(
|
|
640
|
+
if (L(p)) {
|
|
641
641
|
let v = !1;
|
|
642
|
-
const
|
|
642
|
+
const g = to(e, d, t, p, d, () => {
|
|
643
643
|
v = !0;
|
|
644
644
|
});
|
|
645
|
-
return v ? qt :
|
|
645
|
+
return v ? qt : g;
|
|
646
646
|
} else
|
|
647
|
-
return me(
|
|
647
|
+
return me(p) ? p : qt;
|
|
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), Y(o.plural) && (u.pluralIndex = o.plural), u;
|
|
651
651
|
}
|
|
652
|
-
const en = typeof Intl < "u",
|
|
652
|
+
const en = typeof Intl < "u", no = {
|
|
653
653
|
dateTimeFormat: en && typeof Intl.DateTimeFormat < "u",
|
|
654
654
|
numberFormat: en && typeof Intl.NumberFormat < "u"
|
|
655
655
|
};
|
|
656
656
|
function tn(e, ...t) {
|
|
657
657
|
const { datetimeFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __datetimeFormatters: l } = e;
|
|
658
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
659
|
-
return a(
|
|
660
|
-
const [i, c,
|
|
658
|
+
if (process.env.NODE_ENV !== "production" && !no.dateTimeFormat)
|
|
659
|
+
return a(ke(ae.CANNOT_FORMAT_DATE)), tt;
|
|
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,
|
|
663
663
|
v
|
|
664
664
|
);
|
|
665
665
|
if (!L(i) || i === "")
|
|
666
666
|
return new Intl.DateTimeFormat(v, f).format(c);
|
|
667
|
-
let
|
|
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 (
|
|
670
|
+
if (w = E = y[X], process.env.NODE_ENV !== "production" && v !== w && at(d, i) && a(ke(ae.FALLBACK_TO_DATE_FORMAT, {
|
|
671
671
|
key: i,
|
|
672
|
-
target:
|
|
673
|
-
})), process.env.NODE_ENV !== "production" && v !==
|
|
672
|
+
target: w
|
|
673
|
+
})), process.env.NODE_ENV !== "production" && v !== w) {
|
|
674
674
|
const q = e.__v_emitter;
|
|
675
675
|
q && q.emit("fallback", {
|
|
676
676
|
type: P,
|
|
677
677
|
key: i,
|
|
678
|
-
from:
|
|
679
|
-
to:
|
|
678
|
+
from: T,
|
|
679
|
+
to: E,
|
|
680
680
|
groupId: `${P}:${i}`
|
|
681
681
|
});
|
|
682
682
|
}
|
|
683
|
-
if (
|
|
683
|
+
if (g = n[w] || {}, S = g[i], M(S))
|
|
684
684
|
break;
|
|
685
|
-
$t(e, i,
|
|
685
|
+
$t(e, i, w, u, P), T = E;
|
|
686
686
|
}
|
|
687
|
-
if (!
|
|
687
|
+
if (!M(S) || !L(w))
|
|
688
688
|
return o ? rt : i;
|
|
689
|
-
let $ = `${
|
|
689
|
+
let $ = `${w}__${i}`;
|
|
690
690
|
st(f) || ($ = `${$}__${JSON.stringify(f)}`);
|
|
691
691
|
let D = l.get($);
|
|
692
|
-
return D || (D = new Intl.DateTimeFormat(
|
|
692
|
+
return D || (D = new Intl.DateTimeFormat(w, ne({}, S, f)), l.set($, D)), p ? D.formatToParts(c) : D.format(c);
|
|
693
693
|
}
|
|
694
|
-
const
|
|
694
|
+
const oo = [
|
|
695
695
|
"localeMatcher",
|
|
696
696
|
"weekday",
|
|
697
697
|
"era",
|
|
@@ -719,25 +719,25 @@ 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 $e(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 $e(ye.INVALID_ISO_DATE_ARGUMENT);
|
|
729
729
|
}
|
|
730
|
-
} else if (
|
|
730
|
+
} else if (rs(t)) {
|
|
731
731
|
if (isNaN(t.getTime()))
|
|
732
|
-
throw
|
|
732
|
+
throw $e(ye.INVALID_DATE_ARGUMENT);
|
|
733
733
|
l = t;
|
|
734
|
-
} else if (
|
|
734
|
+
} else if (Y(t))
|
|
735
735
|
l = t;
|
|
736
736
|
else
|
|
737
|
-
throw
|
|
738
|
-
return L(n) ? a.key = n :
|
|
739
|
-
|
|
740
|
-
}), L(o) ? a.locale = o :
|
|
737
|
+
throw $e(ye.INVALID_ARGUMENT);
|
|
738
|
+
return L(n) ? a.key = n : M(n) && Object.keys(n).forEach((i) => {
|
|
739
|
+
oo.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
740
|
+
}), L(o) ? a.locale = o : M(o) && (r = o), M(s) && (r = s), [a.key || "", l, a, r];
|
|
741
741
|
}
|
|
742
742
|
function nn(e, t, n) {
|
|
743
743
|
const o = e;
|
|
@@ -748,43 +748,43 @@ function nn(e, t, n) {
|
|
|
748
748
|
}
|
|
749
749
|
function on(e, ...t) {
|
|
750
750
|
const { numberFormats: n, unresolving: o, fallbackLocale: s, onWarn: a, localeFallbacker: r } = e, { __numberFormatters: l } = e;
|
|
751
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
752
|
-
return a(
|
|
753
|
-
const [i, c,
|
|
751
|
+
if (process.env.NODE_ENV !== "production" && !no.numberFormat)
|
|
752
|
+
return a(ke(ae.CANNOT_FORMAT_NUMBER)), tt;
|
|
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,
|
|
756
756
|
v
|
|
757
757
|
);
|
|
758
758
|
if (!L(i) || i === "")
|
|
759
759
|
return new Intl.NumberFormat(v, f).format(c);
|
|
760
|
-
let
|
|
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 (
|
|
763
|
+
if (w = E = y[X], process.env.NODE_ENV !== "production" && v !== w && at(d, i) && a(ke(ae.FALLBACK_TO_NUMBER_FORMAT, {
|
|
764
764
|
key: i,
|
|
765
|
-
target:
|
|
766
|
-
})), process.env.NODE_ENV !== "production" && v !==
|
|
765
|
+
target: w
|
|
766
|
+
})), process.env.NODE_ENV !== "production" && v !== w) {
|
|
767
767
|
const q = e.__v_emitter;
|
|
768
768
|
q && q.emit("fallback", {
|
|
769
769
|
type: P,
|
|
770
770
|
key: i,
|
|
771
|
-
from:
|
|
772
|
-
to:
|
|
771
|
+
from: T,
|
|
772
|
+
to: E,
|
|
773
773
|
groupId: `${P}:${i}`
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
if (
|
|
776
|
+
if (g = n[w] || {}, S = g[i], M(S))
|
|
777
777
|
break;
|
|
778
|
-
$t(e, i,
|
|
778
|
+
$t(e, i, w, u, P), T = E;
|
|
779
779
|
}
|
|
780
|
-
if (!
|
|
780
|
+
if (!M(S) || !L(w))
|
|
781
781
|
return o ? rt : i;
|
|
782
|
-
let $ = `${
|
|
782
|
+
let $ = `${w}__${i}`;
|
|
783
783
|
st(f) || ($ = `${$}__${JSON.stringify(f)}`);
|
|
784
784
|
let D = l.get($);
|
|
785
|
-
return D || (D = new Intl.NumberFormat(
|
|
785
|
+
return D || (D = new Intl.NumberFormat(w, ne({}, S, f)), l.set($, D)), p ? D.formatToParts(c) : D.format(c);
|
|
786
786
|
}
|
|
787
|
-
const
|
|
787
|
+
const so = [
|
|
788
788
|
"localeMatcher",
|
|
789
789
|
"style",
|
|
790
790
|
"currency",
|
|
@@ -809,12 +809,12 @@ const no = [
|
|
|
809
809
|
function ht(...e) {
|
|
810
810
|
const [t, n, o, s] = e, a = {};
|
|
811
811
|
let r = {};
|
|
812
|
-
if (!
|
|
813
|
-
throw
|
|
812
|
+
if (!Y(t))
|
|
813
|
+
throw $e(ye.INVALID_ARGUMENT);
|
|
814
814
|
const l = t;
|
|
815
|
-
return L(n) ? a.key = n :
|
|
816
|
-
|
|
817
|
-
}), L(o) ? a.locale = o :
|
|
815
|
+
return L(n) ? a.key = n : M(n) && Object.keys(n).forEach((i) => {
|
|
816
|
+
so.includes(i) ? r[i] = n[i] : a[i] = n[i];
|
|
817
|
+
}), L(o) ? a.locale = o : M(o) && (r = o), M(s) && (r = s), [a.key || "", l, a, r];
|
|
818
818
|
}
|
|
819
819
|
function sn(e, t, n) {
|
|
820
820
|
const o = e;
|
|
@@ -824,22 +824,22 @@ function sn(e, t, n) {
|
|
|
824
824
|
}
|
|
825
825
|
}
|
|
826
826
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ct().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
827
|
-
function
|
|
828
|
-
return
|
|
827
|
+
function Ys() {
|
|
828
|
+
return ro().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
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 Ks = typeof Proxy == "function", Xs = "devtools-plugin:setup", Js = "plugin:settings:set";
|
|
834
|
+
let De, vt;
|
|
835
|
+
function Qs() {
|
|
836
836
|
var e;
|
|
837
|
-
return
|
|
837
|
+
return De !== void 0 || (typeof window < "u" && window.performance ? (De = !0, vt = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (De = !0, vt = global.perf_hooks.performance) : De = !1), De;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function qs() {
|
|
840
|
+
return Qs() ? vt.now() : Date.now();
|
|
841
841
|
}
|
|
842
|
-
class
|
|
842
|
+
class Zs {
|
|
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 Qs {
|
|
|
867
867
|
a = r;
|
|
868
868
|
},
|
|
869
869
|
now() {
|
|
870
|
-
return
|
|
870
|
+
return qs();
|
|
871
871
|
}
|
|
872
|
-
}, n && n.on(
|
|
872
|
+
}, n && n.on(Js, (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 Qs {
|
|
|
901
901
|
n.resolve(await this.target[n.method](...n.args));
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
const n = e, o =
|
|
904
|
+
function er(e, t) {
|
|
905
|
+
const n = e, o = ro(), s = Ys(), a = Ks && n.enableEarlyProxy;
|
|
906
906
|
if (s && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
907
|
-
s.emit(
|
|
907
|
+
s.emit(Xs, e, t);
|
|
908
908
|
else {
|
|
909
|
-
const r = a ? new
|
|
909
|
+
const r = a ? new Zs(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
|
+
}, tr = {
|
|
927
927
|
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
928
|
-
},
|
|
928
|
+
}, nr = {
|
|
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 or = "9.2.2";
|
|
937
|
+
function sr() {
|
|
938
938
|
let e = !1;
|
|
939
939
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Ct().__INTLIFY_PROD_DEVTOOLS__ = !1), process.env.NODE_ENV !== "production" && e && console.warn("You are running the esm-bundler build of vue-i18n. It is recommended to configure your bundler to explicitly replace feature flag globals with boolean literals to get proper tree-shaking in the final bundle.");
|
|
940
940
|
}
|
|
941
|
-
let
|
|
942
|
-
const
|
|
943
|
-
FALLBACK_TO_ROOT:
|
|
944
|
-
NOT_SUPPORTED_PRESERVE:
|
|
945
|
-
NOT_SUPPORTED_FORMATTER:
|
|
946
|
-
NOT_SUPPORTED_PRESERVE_DIRECTIVE:
|
|
947
|
-
NOT_SUPPORTED_GET_CHOICE_INDEX:
|
|
948
|
-
COMPONENT_NAME_LEGACY_COMPATIBLE:
|
|
949
|
-
NOT_FOUND_PARENT_SCOPE:
|
|
950
|
-
},
|
|
941
|
+
let ao = ae.__EXTEND_POINT__;
|
|
942
|
+
const Pe = () => ++ao, de = {
|
|
943
|
+
FALLBACK_TO_ROOT: ao,
|
|
944
|
+
NOT_SUPPORTED_PRESERVE: Pe(),
|
|
945
|
+
NOT_SUPPORTED_FORMATTER: Pe(),
|
|
946
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: Pe(),
|
|
947
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: Pe(),
|
|
948
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: Pe(),
|
|
949
|
+
NOT_FOUND_PARENT_SCOPE: Pe()
|
|
950
|
+
}, rr = {
|
|
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,11 +957,11 @@ const $e = () => ++so, 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 St(
|
|
960
|
+
return St(rr[e], ...t);
|
|
961
961
|
}
|
|
962
|
-
let
|
|
963
|
-
const re = () => ++
|
|
964
|
-
UNEXPECTED_RETURN_TYPE:
|
|
962
|
+
let lo = J.__EXTEND_POINT__;
|
|
963
|
+
const re = () => ++lo, F = {
|
|
964
|
+
UNEXPECTED_RETURN_TYPE: lo,
|
|
965
965
|
INVALID_ARGUMENT: re(),
|
|
966
966
|
MUST_BE_CALL_SETUP_TOP: re(),
|
|
967
967
|
NOT_INSLALLED: re(),
|
|
@@ -978,68 +978,68 @@ const re = () => ++ro, x = {
|
|
|
978
978
|
__EXTEND_POINT__: re()
|
|
979
979
|
};
|
|
980
980
|
function ce(e, ...t) {
|
|
981
|
-
return
|
|
982
|
-
}
|
|
983
|
-
const
|
|
984
|
-
[
|
|
985
|
-
[
|
|
986
|
-
[
|
|
987
|
-
[
|
|
988
|
-
[
|
|
989
|
-
[
|
|
990
|
-
[
|
|
991
|
-
[
|
|
992
|
-
[
|
|
993
|
-
[
|
|
994
|
-
[
|
|
995
|
-
[
|
|
996
|
-
[
|
|
997
|
-
[
|
|
998
|
-
}, yt = /* @__PURE__ */ he("__transrateVNode"), Et = /* @__PURE__ */ he("__datetimeParts"),
|
|
981
|
+
return Wn(e, null, process.env.NODE_ENV !== "production" ? { messages: ar, args: t } : void 0);
|
|
982
|
+
}
|
|
983
|
+
const ar = {
|
|
984
|
+
[F.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
985
|
+
[F.INVALID_ARGUMENT]: "Invalid argument",
|
|
986
|
+
[F.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
987
|
+
[F.NOT_INSLALLED]: "Need to install with `app.use` function",
|
|
988
|
+
[F.UNEXPECTED_ERROR]: "Unexpected error",
|
|
989
|
+
[F.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
|
990
|
+
[F.REQUIRED_VALUE]: "Required in value: {0}",
|
|
991
|
+
[F.INVALID_VALUE]: "Invalid value",
|
|
992
|
+
[F.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
|
993
|
+
[F.NOT_INSLALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
994
|
+
[F.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
995
|
+
[F.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
|
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
|
+
[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"), Be = /* @__PURE__ */ he("__enableEmitter"), bt = /* @__PURE__ */ he("__disableEmitter"), lr = he("__setPluralRules");
|
|
999
999
|
he("__intlifyMeta");
|
|
1000
|
-
const
|
|
1000
|
+
const ir = /* @__PURE__ */ he("__injectWithOption");
|
|
1001
1001
|
function Lt(e) {
|
|
1002
|
-
if (!
|
|
1002
|
+
if (!R(e))
|
|
1003
1003
|
return e;
|
|
1004
1004
|
for (const t in e)
|
|
1005
1005
|
if (!!At(e, t))
|
|
1006
1006
|
if (!t.includes("."))
|
|
1007
|
-
|
|
1007
|
+
R(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], R(s[n[o]]) && Lt(s[n[o]]);
|
|
1014
1014
|
}
|
|
1015
1015
|
return e;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const { messages: n, __i18n: o, messageResolver: s, flatJson: a } = t, r =
|
|
1019
|
-
if (
|
|
1017
|
+
function io(e, t) {
|
|
1018
|
+
const { messages: n, __i18n: o, messageResolver: s, flatJson: a } = t, r = M(n) ? n : z(o) ? {} : { [e]: {} };
|
|
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] || {}, He(c, r[i])) : He(c, r);
|
|
1023
1023
|
} else
|
|
1024
|
-
L(l) &&
|
|
1024
|
+
L(l) && He(JSON.parse(l), r);
|
|
1025
1025
|
}), s == null && a)
|
|
1026
1026
|
for (const l in r)
|
|
1027
1027
|
At(r, l) && Lt(r[l]);
|
|
1028
1028
|
return r;
|
|
1029
1029
|
}
|
|
1030
|
-
const Xe = (e) => !
|
|
1031
|
-
function
|
|
1030
|
+
const Xe = (e) => !R(e) || z(e);
|
|
1031
|
+
function He(e, t) {
|
|
1032
1032
|
if (Xe(e) || Xe(t))
|
|
1033
|
-
throw ce(
|
|
1033
|
+
throw ce(F.INVALID_VALUE);
|
|
1034
1034
|
for (const n in e)
|
|
1035
|
-
At(e, n) && (Xe(e[n]) || Xe(t[n]) ? t[n] = e[n] :
|
|
1035
|
+
At(e, n) && (Xe(e[n]) || Xe(t[n]) ? t[n] = e[n] : He(e[n], t[n]));
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function co(e) {
|
|
1038
1038
|
return e.type;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
let o =
|
|
1042
|
-
"__i18nGlobal" in n && (o =
|
|
1040
|
+
function cr(e, t, n) {
|
|
1041
|
+
let o = R(t.messages) ? t.messages : {};
|
|
1042
|
+
"__i18nGlobal" in n && (o = io(e.locale.value, {
|
|
1043
1043
|
messages: o,
|
|
1044
1044
|
__i18n: n.__i18nGlobal
|
|
1045
1045
|
}));
|
|
@@ -1048,13 +1048,13 @@ function lr(e, t, n) {
|
|
|
1048
1048
|
e.mergeLocaleMessage(a, o[a]);
|
|
1049
1049
|
});
|
|
1050
1050
|
{
|
|
1051
|
-
if (
|
|
1051
|
+
if (R(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 (R(t.numberFormats)) {
|
|
1058
1058
|
const a = Object.keys(t.numberFormats);
|
|
1059
1059
|
a.length && a.forEach((r) => {
|
|
1060
1060
|
e.mergeNumberFormat(r, t.numberFormats[r]);
|
|
@@ -1063,53 +1063,53 @@ function lr(e, t, n) {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
function rn(e) {
|
|
1066
|
-
return
|
|
1066
|
+
return B(Zo, null, e, 0);
|
|
1067
1067
|
}
|
|
1068
1068
|
const an = "__INTLIFY_META__";
|
|
1069
1069
|
let ln = 0;
|
|
1070
1070
|
function cn(e) {
|
|
1071
1071
|
return (t, n, o, s) => e(n, o, Nt() || void 0, s);
|
|
1072
1072
|
}
|
|
1073
|
-
const
|
|
1073
|
+
const ur = () => {
|
|
1074
1074
|
const e = Nt();
|
|
1075
1075
|
let t = null;
|
|
1076
|
-
return e && (t =
|
|
1076
|
+
return e && (t = co(e)[an]) ? { [an]: t } : null;
|
|
1077
1077
|
};
|
|
1078
|
-
function
|
|
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
|
-
const a =
|
|
1081
|
+
const a = k(
|
|
1082
1082
|
n && s ? n.locale.value : L(e.locale) ? e.locale : Pt
|
|
1083
|
-
), r =
|
|
1084
|
-
n && s ? n.fallbackLocale.value : L(e.fallbackLocale) ||
|
|
1085
|
-
), l =
|
|
1086
|
-
let
|
|
1087
|
-
const
|
|
1088
|
-
let
|
|
1089
|
-
|
|
1083
|
+
), r = k(
|
|
1084
|
+
n && s ? n.fallbackLocale.value : L(e.fallbackLocale) || z(e.fallbackLocale) || M(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
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) ? cn(e.missing) : null, y = W(e.postTranslation) ? e.postTranslation : null, g = n ? n.warnHtmlMessage : G(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, w = !!e.escapeParameter;
|
|
1087
|
+
const S = n ? n.modifiers : M(e.modifiers) ? e.modifiers : {};
|
|
1088
|
+
let T = e.pluralRules || n && n.pluralRules, E;
|
|
1089
|
+
E = (() => {
|
|
1090
1090
|
o && Jt(null);
|
|
1091
|
-
const
|
|
1092
|
-
version:
|
|
1091
|
+
const _ = {
|
|
1092
|
+
version: or,
|
|
1093
1093
|
locale: a.value,
|
|
1094
1094
|
fallbackLocale: r.value,
|
|
1095
1095
|
messages: l.value,
|
|
1096
|
-
modifiers:
|
|
1097
|
-
pluralRules:
|
|
1096
|
+
modifiers: S,
|
|
1097
|
+
pluralRules: T,
|
|
1098
1098
|
missing: v === null ? void 0 : v,
|
|
1099
|
-
missingWarn:
|
|
1099
|
+
missingWarn: m,
|
|
1100
1100
|
fallbackWarn: f,
|
|
1101
1101
|
fallbackFormat: d,
|
|
1102
1102
|
unresolving: !0,
|
|
1103
1103
|
postTranslation: y === null ? void 0 : y,
|
|
1104
|
-
warnHtmlMessage:
|
|
1105
|
-
escapeParameter:
|
|
1104
|
+
warnHtmlMessage: g,
|
|
1105
|
+
escapeParameter: w,
|
|
1106
1106
|
messageResolver: e.messageResolver,
|
|
1107
1107
|
__meta: { framework: "vue" }
|
|
1108
1108
|
};
|
|
1109
|
-
|
|
1110
|
-
const h =
|
|
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 = Gs(_);
|
|
1111
1111
|
return o && Jt(h), h;
|
|
1112
|
-
})(), Ue(
|
|
1112
|
+
})(), Ue(E, a.value, r.value);
|
|
1113
1113
|
function $() {
|
|
1114
1114
|
return [
|
|
1115
1115
|
a.value,
|
|
@@ -1121,48 +1121,48 @@ function io(e = {}, t) {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
const D = U({
|
|
1123
1123
|
get: () => a.value,
|
|
1124
|
-
set: (
|
|
1125
|
-
a.value =
|
|
1124
|
+
set: (_) => {
|
|
1125
|
+
a.value = _, E.locale = a.value;
|
|
1126
1126
|
}
|
|
1127
1127
|
}), X = U({
|
|
1128
1128
|
get: () => r.value,
|
|
1129
|
-
set: (
|
|
1130
|
-
r.value =
|
|
1129
|
+
set: (_) => {
|
|
1130
|
+
r.value = _, E.fallbackLocale = r.value, Ue(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
|
|
1137
|
-
y =
|
|
1136
|
+
function x(_) {
|
|
1137
|
+
y = _, E.postTranslation = _;
|
|
1138
1138
|
}
|
|
1139
1139
|
function V() {
|
|
1140
|
-
return
|
|
1140
|
+
return p;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
|
|
1142
|
+
function be(_) {
|
|
1143
|
+
_ !== null && (v = cn(_)), p = _, E.missing = v;
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return
|
|
1145
|
+
function Ce(_, h) {
|
|
1146
|
+
return _ !== "translate" || !h.resolvedMessage;
|
|
1147
1147
|
}
|
|
1148
|
-
const ve = (
|
|
1148
|
+
const ve = (_, h, se, ee, dt, Ke) => {
|
|
1149
1149
|
$();
|
|
1150
|
-
let
|
|
1150
|
+
let Ae;
|
|
1151
1151
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1152
1152
|
try {
|
|
1153
|
-
Xt(
|
|
1153
|
+
Xt(ur()), o || (E.fallbackContext = n ? Us() : void 0), Ae = _(E);
|
|
1154
1154
|
} finally {
|
|
1155
|
-
Xt(null), o || (
|
|
1155
|
+
Xt(null), o || (E.fallbackContext = void 0);
|
|
1156
1156
|
}
|
|
1157
1157
|
else
|
|
1158
|
-
|
|
1159
|
-
if (
|
|
1160
|
-
const [Le,
|
|
1161
|
-
if (process.env.NODE_ENV !== "production" && n && L(Le) &&
|
|
1158
|
+
Ae = _(E);
|
|
1159
|
+
if (Y(Ae) && Ae === rt) {
|
|
1160
|
+
const [Le, Jo] = h();
|
|
1161
|
+
if (process.env.NODE_ENV !== "production" && n && L(Le) && Ce(se, Jo) && (u && (at(f, Le) || qn(m, Le)) && Fe(lt(de.FALLBACK_TO_ROOT, {
|
|
1162
1162
|
key: Le,
|
|
1163
1163
|
type: se
|
|
1164
1164
|
})), process.env.NODE_ENV !== "production")) {
|
|
1165
|
-
const { __v_emitter: Gt } =
|
|
1165
|
+
const { __v_emitter: Gt } = E;
|
|
1166
1166
|
Gt && u && Gt.emit("fallback", {
|
|
1167
1167
|
type: se,
|
|
1168
1168
|
key: Le,
|
|
@@ -1172,85 +1172,85 @@ function io(e = {}, t) {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
return n && u ? ee(n) : dt(Le);
|
|
1174
1174
|
} else {
|
|
1175
|
-
if (Ke(
|
|
1176
|
-
return
|
|
1177
|
-
throw ce(
|
|
1175
|
+
if (Ke(Ae))
|
|
1176
|
+
return Ae;
|
|
1177
|
+
throw ce(F.UNEXPECTED_RETURN_TYPE);
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
function Ve(...
|
|
1181
|
-
return ve((h) => Reflect.apply(Zt, null, [h, ...
|
|
1180
|
+
function Ve(..._) {
|
|
1181
|
+
return ve((h) => Reflect.apply(Zt, null, [h, ..._]), () => pt(..._), "translate", (h) => Reflect.apply(h.t, h, [..._]), (h) => h, (h) => L(h));
|
|
1182
1182
|
}
|
|
1183
|
-
function ct(...
|
|
1184
|
-
const [h, se, ee] =
|
|
1185
|
-
if (ee && !
|
|
1186
|
-
throw ce(
|
|
1183
|
+
function ct(..._) {
|
|
1184
|
+
const [h, se, ee] = _;
|
|
1185
|
+
if (ee && !R(ee))
|
|
1186
|
+
throw ce(F.INVALID_ARGUMENT);
|
|
1187
1187
|
return Ve(h, se, ne({ resolvedMessage: !0 }, ee || {}));
|
|
1188
1188
|
}
|
|
1189
|
-
function Vt(...
|
|
1190
|
-
return ve((h) => Reflect.apply(tn, null, [h, ...
|
|
1189
|
+
function Vt(..._) {
|
|
1190
|
+
return ve((h) => Reflect.apply(tn, null, [h, ..._]), () => gt(..._), "datetime format", (h) => Reflect.apply(h.d, h, [..._]), () => tt, (h) => L(h));
|
|
1191
1191
|
}
|
|
1192
|
-
function Ye(...
|
|
1193
|
-
return ve((h) => Reflect.apply(on, null, [h, ...
|
|
1192
|
+
function Ye(..._) {
|
|
1193
|
+
return ve((h) => Reflect.apply(on, null, [h, ..._]), () => ht(..._), "number format", (h) => Reflect.apply(h.n, h, [..._]), () => tt, (h) => L(h));
|
|
1194
1194
|
}
|
|
1195
|
-
function ut(
|
|
1196
|
-
return
|
|
1195
|
+
function ut(_) {
|
|
1196
|
+
return _.map((h) => L(h) || Y(h) || G(h) ? rn(String(h)) : h);
|
|
1197
1197
|
}
|
|
1198
|
-
const
|
|
1198
|
+
const Mo = {
|
|
1199
1199
|
normalize: ut,
|
|
1200
|
-
interpolate: (
|
|
1200
|
+
interpolate: (_) => _,
|
|
1201
1201
|
type: "vnode"
|
|
1202
1202
|
};
|
|
1203
|
-
function
|
|
1203
|
+
function ko(..._) {
|
|
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 = Mo, se = Reflect.apply(Zt, null, [ee, ..._]);
|
|
1210
1210
|
} finally {
|
|
1211
1211
|
ee.processor = null;
|
|
1212
1212
|
}
|
|
1213
1213
|
return se;
|
|
1214
1214
|
},
|
|
1215
|
-
() => pt(...
|
|
1215
|
+
() => pt(..._),
|
|
1216
1216
|
"translate",
|
|
1217
|
-
(h) => h[yt](...
|
|
1217
|
+
(h) => h[yt](..._),
|
|
1218
1218
|
(h) => [rn(h)],
|
|
1219
|
-
(h) =>
|
|
1219
|
+
(h) => z(h)
|
|
1220
1220
|
);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function xo(..._) {
|
|
1223
1223
|
return ve(
|
|
1224
|
-
(h) => Reflect.apply(on, null, [h, ...
|
|
1225
|
-
() => ht(...
|
|
1224
|
+
(h) => Reflect.apply(on, null, [h, ..._]),
|
|
1225
|
+
() => ht(..._),
|
|
1226
1226
|
"number format",
|
|
1227
|
-
(h) => h[
|
|
1227
|
+
(h) => h[wt](..._),
|
|
1228
1228
|
() => [],
|
|
1229
|
-
(h) => L(h) ||
|
|
1229
|
+
(h) => L(h) || z(h)
|
|
1230
1230
|
);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Ro(..._) {
|
|
1233
1233
|
return ve(
|
|
1234
|
-
(h) => Reflect.apply(tn, null, [h, ...
|
|
1235
|
-
() => gt(...
|
|
1234
|
+
(h) => Reflect.apply(tn, null, [h, ..._]),
|
|
1235
|
+
() => gt(..._),
|
|
1236
1236
|
"datetime format",
|
|
1237
|
-
(h) => h[Et](...
|
|
1237
|
+
(h) => h[Et](..._),
|
|
1238
1238
|
() => [],
|
|
1239
|
-
(h) => L(h) ||
|
|
1239
|
+
(h) => L(h) || z(h)
|
|
1240
1240
|
);
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
|
|
1242
|
+
function Fo(_) {
|
|
1243
|
+
T = _, E.pluralRules = T;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function Vo(_, h) {
|
|
1246
1246
|
const se = L(h) ? h : a.value, ee = Ut(se);
|
|
1247
|
-
return
|
|
1247
|
+
return E.messageResolver(ee, _) !== null;
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function Uo(_) {
|
|
1250
1250
|
let h = null;
|
|
1251
|
-
const se =
|
|
1251
|
+
const se = Yn(E, r.value, a.value);
|
|
1252
1252
|
for (let ee = 0; ee < se.length; ee++) {
|
|
1253
|
-
const dt = l.value[se[ee]] || {}, Ke =
|
|
1253
|
+
const dt = l.value[se[ee]] || {}, Ke = E.messageResolver(dt, _);
|
|
1254
1254
|
if (Ke != null) {
|
|
1255
1255
|
h = Ke;
|
|
1256
1256
|
break;
|
|
@@ -1258,118 +1258,118 @@ function io(e = {}, t) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
return h;
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1262
|
-
const h =
|
|
1263
|
-
return h != null ? h : n ? n.tm(
|
|
1261
|
+
function Go(_) {
|
|
1262
|
+
const h = Uo(_);
|
|
1263
|
+
return h != null ? h : n ? n.tm(_) || {} : {};
|
|
1264
1264
|
}
|
|
1265
|
-
function Ut(
|
|
1266
|
-
return l.value[
|
|
1265
|
+
function Ut(_) {
|
|
1266
|
+
return l.value[_] || {};
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1269
|
-
l.value[
|
|
1268
|
+
function zo(_, h) {
|
|
1269
|
+
l.value[_] = h, E.messages = l.value;
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1272
|
-
l.value[
|
|
1271
|
+
function Ho(_, h) {
|
|
1272
|
+
l.value[_] = l.value[_] || {}, He(h, l.value[_]), E.messages = l.value;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return i.value[
|
|
1274
|
+
function jo(_) {
|
|
1275
|
+
return i.value[_] || {};
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1278
|
-
i.value[
|
|
1277
|
+
function Wo(_, h) {
|
|
1278
|
+
i.value[_] = h, E.datetimeFormats = i.value, nn(E, _, h);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
i.value[
|
|
1280
|
+
function Bo(_, h) {
|
|
1281
|
+
i.value[_] = ne(i.value[_] || {}, h), E.datetimeFormats = i.value, nn(E, _, h);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return c.value[
|
|
1283
|
+
function Yo(_) {
|
|
1284
|
+
return c.value[_] || {};
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
c.value[
|
|
1286
|
+
function Ko(_, h) {
|
|
1287
|
+
c.value[_] = h, E.numberFormats = c.value, sn(E, _, h);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
c.value[
|
|
1289
|
+
function Xo(_, h) {
|
|
1290
|
+
c.value[_] = ne(c.value[_] || {}, h), E.numberFormats = c.value, sn(E, _, h);
|
|
1291
1291
|
}
|
|
1292
|
-
ln++, n && ge && (Me(n.locale, (
|
|
1293
|
-
s && (a.value =
|
|
1294
|
-
}), Me(n.fallbackLocale, (
|
|
1295
|
-
s && (r.value =
|
|
1292
|
+
ln++, n && ge && (Me(n.locale, (_) => {
|
|
1293
|
+
s && (a.value = _, E.locale = _, Ue(E, a.value, r.value));
|
|
1294
|
+
}), Me(n.fallbackLocale, (_) => {
|
|
1295
|
+
s && (r.value = _, E.fallbackLocale = _, Ue(E, a.value, r.value));
|
|
1296
1296
|
}));
|
|
1297
|
-
const
|
|
1297
|
+
const H = {
|
|
1298
1298
|
id: ln,
|
|
1299
1299
|
locale: D,
|
|
1300
1300
|
fallbackLocale: X,
|
|
1301
1301
|
get inheritLocale() {
|
|
1302
1302
|
return s;
|
|
1303
1303
|
},
|
|
1304
|
-
set inheritLocale(
|
|
1305
|
-
s =
|
|
1304
|
+
set inheritLocale(_) {
|
|
1305
|
+
s = _, _ && n && (a.value = n.locale.value, r.value = n.fallbackLocale.value, Ue(E, a.value, r.value));
|
|
1306
1306
|
},
|
|
1307
1307
|
get availableLocales() {
|
|
1308
1308
|
return Object.keys(l.value).sort();
|
|
1309
1309
|
},
|
|
1310
1310
|
messages: q,
|
|
1311
1311
|
get modifiers() {
|
|
1312
|
-
return
|
|
1312
|
+
return S;
|
|
1313
1313
|
},
|
|
1314
1314
|
get pluralRules() {
|
|
1315
|
-
return
|
|
1315
|
+
return T || {};
|
|
1316
1316
|
},
|
|
1317
1317
|
get isGlobal() {
|
|
1318
1318
|
return o;
|
|
1319
1319
|
},
|
|
1320
1320
|
get missingWarn() {
|
|
1321
|
-
return
|
|
1321
|
+
return m;
|
|
1322
1322
|
},
|
|
1323
|
-
set missingWarn(
|
|
1324
|
-
|
|
1323
|
+
set missingWarn(_) {
|
|
1324
|
+
m = _, E.missingWarn = m;
|
|
1325
1325
|
},
|
|
1326
1326
|
get fallbackWarn() {
|
|
1327
1327
|
return f;
|
|
1328
1328
|
},
|
|
1329
|
-
set fallbackWarn(
|
|
1330
|
-
f =
|
|
1329
|
+
set fallbackWarn(_) {
|
|
1330
|
+
f = _, E.fallbackWarn = f;
|
|
1331
1331
|
},
|
|
1332
1332
|
get fallbackRoot() {
|
|
1333
1333
|
return u;
|
|
1334
1334
|
},
|
|
1335
|
-
set fallbackRoot(
|
|
1336
|
-
u =
|
|
1335
|
+
set fallbackRoot(_) {
|
|
1336
|
+
u = _;
|
|
1337
1337
|
},
|
|
1338
1338
|
get fallbackFormat() {
|
|
1339
1339
|
return d;
|
|
1340
1340
|
},
|
|
1341
|
-
set fallbackFormat(
|
|
1342
|
-
d =
|
|
1341
|
+
set fallbackFormat(_) {
|
|
1342
|
+
d = _, E.fallbackFormat = d;
|
|
1343
1343
|
},
|
|
1344
1344
|
get warnHtmlMessage() {
|
|
1345
|
-
return
|
|
1345
|
+
return g;
|
|
1346
1346
|
},
|
|
1347
|
-
set warnHtmlMessage(
|
|
1348
|
-
|
|
1347
|
+
set warnHtmlMessage(_) {
|
|
1348
|
+
g = _, E.warnHtmlMessage = _;
|
|
1349
1349
|
},
|
|
1350
1350
|
get escapeParameter() {
|
|
1351
|
-
return
|
|
1351
|
+
return w;
|
|
1352
1352
|
},
|
|
1353
|
-
set escapeParameter(
|
|
1354
|
-
|
|
1353
|
+
set escapeParameter(_) {
|
|
1354
|
+
w = _, E.escapeParameter = _;
|
|
1355
1355
|
},
|
|
1356
1356
|
t: Ve,
|
|
1357
1357
|
getLocaleMessage: Ut,
|
|
1358
|
-
setLocaleMessage:
|
|
1359
|
-
mergeLocaleMessage:
|
|
1358
|
+
setLocaleMessage: zo,
|
|
1359
|
+
mergeLocaleMessage: Ho,
|
|
1360
1360
|
getPostTranslationHandler: C,
|
|
1361
|
-
setPostTranslationHandler:
|
|
1361
|
+
setPostTranslationHandler: x,
|
|
1362
1362
|
getMissingHandler: V,
|
|
1363
|
-
setMissingHandler:
|
|
1364
|
-
[
|
|
1363
|
+
setMissingHandler: be,
|
|
1364
|
+
[lr]: Fo
|
|
1365
1365
|
};
|
|
1366
|
-
return
|
|
1367
|
-
|
|
1368
|
-
},
|
|
1369
|
-
|
|
1370
|
-
}),
|
|
1366
|
+
return H.datetimeFormats = Z, H.numberFormats = O, H.rt = ct, H.te = Vo, H.tm = Go, H.d = Vt, H.n = Ye, H.getDateTimeFormat = jo, H.setDateTimeFormat = Wo, H.mergeDateTimeFormat = Bo, H.getNumberFormat = Yo, H.setNumberFormat = Ko, H.mergeNumberFormat = Xo, H[ir] = e.__injectWithOption, H[yt] = ko, H[Et] = Ro, H[wt] = xo, process.env.NODE_ENV !== "production" && (H[Be] = (_) => {
|
|
1367
|
+
E.__v_emitter = _;
|
|
1368
|
+
}, H[bt] = () => {
|
|
1369
|
+
E.__v_emitter = void 0;
|
|
1370
|
+
}), H;
|
|
1371
1371
|
}
|
|
1372
|
-
const
|
|
1372
|
+
const Mt = {
|
|
1373
1373
|
tag: {
|
|
1374
1374
|
type: [String, Object]
|
|
1375
1375
|
},
|
|
@@ -1385,16 +1385,16 @@ const kt = {
|
|
|
1385
1385
|
type: Object
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
function
|
|
1388
|
+
function dr({ 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]
|
|
1392
1392
|
], []) : t.reduce((n, o) => {
|
|
1393
1393
|
const s = e[o];
|
|
1394
1394
|
return s && (n[o] = s()), n;
|
|
1395
1395
|
}, {});
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function fo(e) {
|
|
1398
1398
|
return ue;
|
|
1399
1399
|
}
|
|
1400
1400
|
const mt = {
|
|
@@ -1406,39 +1406,39 @@ const mt = {
|
|
|
1406
1406
|
},
|
|
1407
1407
|
plural: {
|
|
1408
1408
|
type: [Number, String],
|
|
1409
|
-
validator: (e) =>
|
|
1409
|
+
validator: (e) => Y(e) || !isNaN(e)
|
|
1410
1410
|
}
|
|
1411
|
-
},
|
|
1411
|
+
}, Mt),
|
|
1412
1412
|
setup(e, t) {
|
|
1413
|
-
const { slots: n, attrs: o } = t, s = e.i18n ||
|
|
1413
|
+
const { slots: n, attrs: o } = t, s = e.i18n || xt({
|
|
1414
1414
|
useScope: e.scope,
|
|
1415
1415
|
__useComponent: !0
|
|
1416
1416
|
});
|
|
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 qe(
|
|
1420
|
+
const l = dr(t, a), i = s[yt](e.keypath, l, r), c = ne({}, o), m = L(e.tag) || R(e.tag) ? e.tag : fo();
|
|
1421
|
+
return qe(m, c, i);
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
1424
|
};
|
|
1425
|
-
function
|
|
1426
|
-
return
|
|
1425
|
+
function fr(e) {
|
|
1426
|
+
return z(e) && !L(e[0]);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function _o(e, t, n, o) {
|
|
1429
1429
|
const { slots: s, attrs: a } = t;
|
|
1430
1430
|
return () => {
|
|
1431
1431
|
const r = { part: !0 };
|
|
1432
1432
|
let l = {};
|
|
1433
|
-
e.locale && (r.locale = e.locale), L(e.format) ? r.key = e.format :
|
|
1433
|
+
e.locale && (r.locale = e.locale), L(e.format) ? r.key = e.format : R(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
|
-
|
|
1437
|
-
const
|
|
1438
|
-
return
|
|
1436
|
+
z(i) ? c = i.map((u, d) => {
|
|
1437
|
+
const p = s[u.type], v = p ? p({ [u.type]: u.value, index: d, parts: i }) : [u.value];
|
|
1438
|
+
return fr(v) && (v[0].key = `${u.type}-${d}`), v;
|
|
1439
1439
|
}) : L(i) && (c = [i]);
|
|
1440
|
-
const
|
|
1441
|
-
return qe(f,
|
|
1440
|
+
const m = ne({}, a), f = L(e.tag) || R(e.tag) ? e.tag : fo();
|
|
1441
|
+
return qe(f, m, c);
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
1444
|
const un = {
|
|
@@ -1451,10 +1451,10 @@ const un = {
|
|
|
1451
1451
|
format: {
|
|
1452
1452
|
type: [String, Object]
|
|
1453
1453
|
}
|
|
1454
|
-
},
|
|
1454
|
+
}, Mt),
|
|
1455
1455
|
setup(e, t) {
|
|
1456
|
-
const n = e.i18n ||
|
|
1457
|
-
return
|
|
1456
|
+
const n = e.i18n || xt({ useScope: "parent", __useComponent: !0 });
|
|
1457
|
+
return _o(e, t, so, (...o) => n[wt](...o));
|
|
1458
1458
|
}
|
|
1459
1459
|
}, dn = {
|
|
1460
1460
|
name: "i18n-d",
|
|
@@ -1466,13 +1466,13 @@ const un = {
|
|
|
1466
1466
|
format: {
|
|
1467
1467
|
type: [String, Object]
|
|
1468
1468
|
}
|
|
1469
|
-
},
|
|
1469
|
+
}, Mt),
|
|
1470
1470
|
setup(e, t) {
|
|
1471
|
-
const n = e.i18n ||
|
|
1472
|
-
return
|
|
1471
|
+
const n = e.i18n || xt({ useScope: "parent", __useComponent: !0 });
|
|
1472
|
+
return _o(e, t, oo, (...o) => n[Et](...o));
|
|
1473
1473
|
}
|
|
1474
1474
|
};
|
|
1475
|
-
function
|
|
1475
|
+
function _r(e, t) {
|
|
1476
1476
|
const n = e;
|
|
1477
1477
|
if (e.mode === "composition")
|
|
1478
1478
|
return n.__getInstance(t) || e.global;
|
|
@@ -1481,17 +1481,17 @@ function dr(e, t) {
|
|
|
1481
1481
|
return o != null ? o.__composer : e.global.__composer;
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function mr(e) {
|
|
1485
1485
|
const t = (r) => {
|
|
1486
1486
|
const { instance: l, modifiers: i, value: c } = r;
|
|
1487
1487
|
if (!l || !l.$)
|
|
1488
|
-
throw ce(
|
|
1489
|
-
const
|
|
1490
|
-
process.env.NODE_ENV !== "production" && i.preserve &&
|
|
1488
|
+
throw ce(F.UNEXPECTED_ERROR);
|
|
1489
|
+
const m = _r(e, l.$);
|
|
1490
|
+
process.env.NODE_ENV !== "production" && i.preserve && Fe(lt(de.NOT_SUPPORTED_PRESERVE));
|
|
1491
1491
|
const f = fn(c);
|
|
1492
1492
|
return [
|
|
1493
|
-
Reflect.apply(
|
|
1494
|
-
|
|
1493
|
+
Reflect.apply(m.t, m, [..._n(f)]),
|
|
1494
|
+
m
|
|
1495
1495
|
];
|
|
1496
1496
|
};
|
|
1497
1497
|
return {
|
|
@@ -1521,68 +1521,68 @@ function fr(e) {
|
|
|
1521
1521
|
function fn(e) {
|
|
1522
1522
|
if (L(e))
|
|
1523
1523
|
return { path: e };
|
|
1524
|
-
if (
|
|
1524
|
+
if (M(e)) {
|
|
1525
1525
|
if (!("path" in e))
|
|
1526
|
-
throw ce(
|
|
1526
|
+
throw ce(F.REQUIRED_VALUE, "path");
|
|
1527
1527
|
return e;
|
|
1528
1528
|
} else
|
|
1529
|
-
throw ce(
|
|
1529
|
+
throw ce(F.INVALID_VALUE);
|
|
1530
1530
|
}
|
|
1531
1531
|
function _n(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), Y(s) && (r.plural = s), Y(a) && (r.plural = a), [t, l, r];
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
const o =
|
|
1537
|
-
process.env.NODE_ENV !== "production" && a && s &&
|
|
1535
|
+
function pr(e, t, ...n) {
|
|
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 && Fe(lt(de.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
1538
1538
|
name: mt.name
|
|
1539
|
-
})), a && (e.component(s ? "i18n" : mt.name, mt), e.component(un.name, un), e.component(dn.name, dn)), e.directive("t",
|
|
1539
|
+
})), a && (e.component(s ? "i18n" : mt.name, mt), e.component(un.name, un), e.component(dn.name, dn)), e.directive("t", mr(t));
|
|
1540
1540
|
}
|
|
1541
|
-
const
|
|
1541
|
+
const mo = "vue-i18n: composer properties";
|
|
1542
1542
|
let Ot;
|
|
1543
|
-
async function
|
|
1543
|
+
async function gr(e, t) {
|
|
1544
1544
|
return new Promise((n, o) => {
|
|
1545
1545
|
try {
|
|
1546
|
-
|
|
1546
|
+
er({
|
|
1547
1547
|
id: "vue-devtools-plugin-vue-i18n",
|
|
1548
1548
|
label: _t["vue-devtools-plugin-vue-i18n"],
|
|
1549
1549
|
packageName: "vue-i18n",
|
|
1550
1550
|
homepage: "https://vue-i18n.intlify.dev",
|
|
1551
1551
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
1552
|
-
componentStateTypes: [
|
|
1552
|
+
componentStateTypes: [mo],
|
|
1553
1553
|
app: e
|
|
1554
1554
|
}, (s) => {
|
|
1555
1555
|
Ot = s, s.on.visitComponentTree(({ componentInstance: r, treeNode: l }) => {
|
|
1556
|
-
|
|
1556
|
+
hr(r, l, t);
|
|
1557
1557
|
}), s.on.inspectComponent(({ componentInstance: r, instanceData: l }) => {
|
|
1558
1558
|
r.vnode.el && r.vnode.el.__VUE_I18N__ && l && (t.mode === "legacy" ? r.vnode.el.__VUE_I18N__ !== t.global.__composer && mn(l, r.vnode.el.__VUE_I18N__) : mn(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: tr["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" && br(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(), Or(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 = Lr(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" && Tr(r, t);
|
|
1582
1582
|
}), s.addTimelineLayer({
|
|
1583
1583
|
id: "vue-i18n-timeline",
|
|
1584
1584
|
label: _t["vue-i18n-timeline"],
|
|
1585
|
-
color:
|
|
1585
|
+
color: nr["vue-i18n-timeline"]
|
|
1586
1586
|
}), n(!0);
|
|
1587
1587
|
});
|
|
1588
1588
|
} catch (s) {
|
|
@@ -1590,14 +1590,14 @@ async function mr(e, t) {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function po(e) {
|
|
1594
1594
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
1595
1595
|
}
|
|
1596
|
-
function
|
|
1596
|
+
function hr(e, t, n) {
|
|
1597
1597
|
const o = n.mode === "composition" ? n.global : n.global.__composer;
|
|
1598
1598
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== o) {
|
|
1599
1599
|
const s = {
|
|
1600
|
-
label: `i18n (${
|
|
1600
|
+
label: `i18n (${po(e)} Scope)`,
|
|
1601
1601
|
textColor: 0,
|
|
1602
1602
|
backgroundColor: 16764185
|
|
1603
1603
|
};
|
|
@@ -1605,7 +1605,7 @@ function pr(e, t, n) {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
}
|
|
1607
1607
|
function mn(e, t) {
|
|
1608
|
-
const n =
|
|
1608
|
+
const n = mo;
|
|
1609
1609
|
e.state.push({
|
|
1610
1610
|
type: n,
|
|
1611
1611
|
key: "locale",
|
|
@@ -1630,7 +1630,7 @@ function mn(e, t) {
|
|
|
1630
1630
|
type: n,
|
|
1631
1631
|
key: "messages",
|
|
1632
1632
|
editable: !1,
|
|
1633
|
-
value:
|
|
1633
|
+
value: kt(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 kt(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] = wr(o) : R(o) ? t[n] = kt(o) : t[n] = o;
|
|
1651
1651
|
}), t;
|
|
1652
1652
|
}
|
|
1653
|
-
const
|
|
1653
|
+
const vr = {
|
|
1654
1654
|
"<": "<",
|
|
1655
1655
|
">": ">",
|
|
1656
1656
|
'"': """,
|
|
1657
1657
|
"&": "&"
|
|
1658
1658
|
};
|
|
1659
|
-
function
|
|
1660
|
-
return e.replace(/[<>"&]/g,
|
|
1659
|
+
function yr(e) {
|
|
1660
|
+
return e.replace(/[<>"&]/g, Er);
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1663
|
-
return
|
|
1662
|
+
function Er(e) {
|
|
1663
|
+
return vr[e] || e;
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1666
|
-
const t = e.source ? `("${
|
|
1665
|
+
function wr(e) {
|
|
1666
|
+
const t = e.source ? `("${yr(e.source)}")` : "(?)";
|
|
1667
1667
|
return {
|
|
1668
1668
|
_custom: {
|
|
1669
1669
|
type: "function",
|
|
@@ -1671,7 +1671,7 @@ function yr(e) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function br(e, t) {
|
|
1675
1675
|
e.rootNodes.push({
|
|
1676
1676
|
id: "global",
|
|
1677
1677
|
label: "Global Scope"
|
|
@@ -1681,11 +1681,11 @@ function Er(e, t) {
|
|
|
1681
1681
|
const a = t.mode === "composition" ? s : s.__composer;
|
|
1682
1682
|
n !== a && e.rootNodes.push({
|
|
1683
1683
|
id: a.id.toString(),
|
|
1684
|
-
label: `${
|
|
1684
|
+
label: `${po(o)} Scope`
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Lr(e, t) {
|
|
1689
1689
|
let n = null;
|
|
1690
1690
|
if (e !== "global") {
|
|
1691
1691
|
for (const [o, s] of t.__instances.entries())
|
|
@@ -1696,7 +1696,7 @@ function br(e, t) {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
return n;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function go(e, t) {
|
|
1700
1700
|
if (e === "global")
|
|
1701
1701
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
1702
1702
|
{
|
|
@@ -1704,11 +1704,11 @@ function mo(e, t) {
|
|
|
1704
1704
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
function
|
|
1708
|
-
const n =
|
|
1709
|
-
return n && (e.state =
|
|
1707
|
+
function Or(e, t) {
|
|
1708
|
+
const n = go(e.nodeId, t);
|
|
1709
|
+
return n && (e.state = Ir(n)), null;
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Ir(e) {
|
|
1712
1712
|
const t = {}, n = "Locale related info", o = [
|
|
1713
1713
|
{
|
|
1714
1714
|
type: n,
|
|
@@ -1741,7 +1741,7 @@ function Lr(e) {
|
|
|
1741
1741
|
type: s,
|
|
1742
1742
|
key: "messages",
|
|
1743
1743
|
editable: !1,
|
|
1744
|
-
value:
|
|
1744
|
+
value: kt(e.messages.value)
|
|
1745
1745
|
}
|
|
1746
1746
|
];
|
|
1747
1747
|
t[s] = a;
|
|
@@ -1767,7 +1767,7 @@ function Lr(e) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
return t;
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function It(e, t) {
|
|
1771
1771
|
if (Ot) {
|
|
1772
1772
|
let n;
|
|
1773
1773
|
t && "groupId" in t && (n = t.groupId, delete t.groupId), Ot.addTimelineEvent({
|
|
@@ -1783,23 +1783,23 @@ function Tt(e, t) {
|
|
|
1783
1783
|
});
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
const n =
|
|
1786
|
+
function Tr(e, t) {
|
|
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) ||
|
|
1790
|
+
o === "locale" && L(e.state.value) ? n.locale.value = e.state.value : o === "fallbackLocale" && (L(e.state.value) || z(e.state.value) || R(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 Nr = /* @__PURE__ */ he("global-vue-i18n");
|
|
1794
|
+
function Sr(e = {}, t) {
|
|
1795
|
+
const n = G(e.globalInjection) ? e.globalInjection : !0, o = !0, s = /* @__PURE__ */ new Map(), [a, r] = Cr(e), l = he(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
1796
1796
|
function i(f) {
|
|
1797
1797
|
return s.get(f) || null;
|
|
1798
1798
|
}
|
|
1799
1799
|
function c(f, u) {
|
|
1800
1800
|
s.set(f, u);
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function m(f) {
|
|
1803
1803
|
s.delete(f);
|
|
1804
1804
|
}
|
|
1805
1805
|
{
|
|
@@ -1811,19 +1811,19 @@ function Ir(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 &&
|
|
1815
|
-
const
|
|
1814
|
+
process.env.NODE_ENV !== "production" && (u.__VUE_I18N__ = f), u.__VUE_I18N_SYMBOL__ = l, u.provide(u.__VUE_I18N_SYMBOL__, f), n && Rr(u, f.global), pr(u, f, ...d);
|
|
1815
|
+
const p = u.unmount;
|
|
1816
1816
|
if (u.unmount = () => {
|
|
1817
|
-
f.dispose(),
|
|
1817
|
+
f.dispose(), p();
|
|
1818
1818
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
1819
|
-
if (!await
|
|
1820
|
-
throw ce(
|
|
1821
|
-
const y =
|
|
1819
|
+
if (!await gr(u, f))
|
|
1820
|
+
throw ce(F.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
1821
|
+
const y = jn();
|
|
1822
1822
|
{
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1823
|
+
const g = r;
|
|
1824
|
+
g[Be] && g[Be](y);
|
|
1825
1825
|
}
|
|
1826
|
-
y.on("*",
|
|
1826
|
+
y.on("*", It);
|
|
1827
1827
|
}
|
|
1828
1828
|
},
|
|
1829
1829
|
get global() {
|
|
@@ -1835,56 +1835,56 @@ function Ir(e = {}, t) {
|
|
|
1835
1835
|
__instances: s,
|
|
1836
1836
|
__getInstance: i,
|
|
1837
1837
|
__setInstance: c,
|
|
1838
|
-
__deleteInstance:
|
|
1838
|
+
__deleteInstance: m
|
|
1839
1839
|
};
|
|
1840
1840
|
return f;
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function xt(e = {}) {
|
|
1844
1844
|
const t = Nt();
|
|
1845
1845
|
if (t == null)
|
|
1846
|
-
throw ce(
|
|
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
|
-
throw ce(
|
|
1849
|
-
const n =
|
|
1848
|
+
throw ce(F.NOT_INSLALLED);
|
|
1849
|
+
const n = Ar(t), o = Pr(n), s = co(t), a = Dr(e, s);
|
|
1850
1850
|
if (a === "global")
|
|
1851
|
-
return
|
|
1851
|
+
return cr(o, e, s), o;
|
|
1852
1852
|
if (a === "parent") {
|
|
1853
|
-
let i =
|
|
1854
|
-
return i == null && (process.env.NODE_ENV !== "production" &&
|
|
1853
|
+
let i = $r(n, t, e.__useComponent);
|
|
1854
|
+
return i == null && (process.env.NODE_ENV !== "production" && Fe(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 =
|
|
1860
|
+
"__i18n" in s && (i.__i18n = s.__i18n), o && (i.__root = o), l = uo(i), Mr(r, t, l), r.__setInstance(t, l);
|
|
1861
1861
|
}
|
|
1862
1862
|
return l;
|
|
1863
1863
|
}
|
|
1864
|
-
function
|
|
1865
|
-
const o =
|
|
1864
|
+
function Cr(e, t, n) {
|
|
1865
|
+
const o = Qo();
|
|
1866
1866
|
{
|
|
1867
|
-
const s = o.run(() =>
|
|
1867
|
+
const s = o.run(() => uo(e));
|
|
1868
1868
|
if (s == null)
|
|
1869
|
-
throw ce(
|
|
1869
|
+
throw ce(F.UNEXPECTED_ERROR);
|
|
1870
1870
|
return [o, s];
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1873
|
+
function Ar(e) {
|
|
1874
1874
|
{
|
|
1875
|
-
const t =
|
|
1875
|
+
const t = Fn(e.isCE ? Nr : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
1876
1876
|
if (!t)
|
|
1877
|
-
throw ce(e.isCE ?
|
|
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 Dr(e, t) {
|
|
1882
1882
|
return st(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function Pr(e) {
|
|
1885
1885
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function $r(e, t, n = !1) {
|
|
1888
1888
|
let o = null;
|
|
1889
1889
|
const s = t.root;
|
|
1890
1890
|
let a = t.parent;
|
|
@@ -1896,35 +1896,35 @@ function Dr(e, t, n = !1) {
|
|
|
1896
1896
|
}
|
|
1897
1897
|
return o;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Mr(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
|
-
t.vnode.el.__VUE_I18N__ = n, o =
|
|
1903
|
+
t.vnode.el.__VUE_I18N__ = n, o = jn();
|
|
1904
1904
|
const s = n;
|
|
1905
|
-
s[Be] && s[Be](o), o.on("*",
|
|
1905
|
+
s[Be] && s[Be](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__) {
|
|
1909
|
-
o && o.off("*",
|
|
1909
|
+
o && o.off("*", It);
|
|
1910
1910
|
const s = n;
|
|
1911
|
-
s[
|
|
1911
|
+
s[bt] && s[bt](), delete t.vnode.el.__VUE_I18N__;
|
|
1912
1912
|
}
|
|
1913
1913
|
e.__deleteInstance(t);
|
|
1914
1914
|
}, t);
|
|
1915
1915
|
}
|
|
1916
|
-
const
|
|
1916
|
+
const kr = [
|
|
1917
1917
|
"locale",
|
|
1918
1918
|
"fallbackLocale",
|
|
1919
1919
|
"availableLocales"
|
|
1920
|
-
],
|
|
1921
|
-
function
|
|
1920
|
+
], xr = ["t", "rt", "d", "n", "tm"];
|
|
1921
|
+
function Rr(e, t) {
|
|
1922
1922
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1923
|
-
|
|
1923
|
+
kr.forEach((o) => {
|
|
1924
1924
|
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1925
1925
|
if (!s)
|
|
1926
|
-
throw ce(
|
|
1927
|
-
const a =
|
|
1926
|
+
throw ce(F.UNEXPECTED_ERROR);
|
|
1927
|
+
const a = qo(s.value) ? {
|
|
1928
1928
|
get() {
|
|
1929
1929
|
return s.value.value;
|
|
1930
1930
|
},
|
|
@@ -1937,22 +1937,22 @@ function Mr(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, xr.forEach((o) => {
|
|
1941
1941
|
const s = Object.getOwnPropertyDescriptor(t, o);
|
|
1942
1942
|
if (!s || !s.value)
|
|
1943
|
-
throw ce(
|
|
1943
|
+
throw ce(F.UNEXPECTED_ERROR);
|
|
1944
1944
|
Object.defineProperty(e.config.globalProperties, `$${o}`, s);
|
|
1945
1945
|
});
|
|
1946
1946
|
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1947
|
+
Rs(hs);
|
|
1948
|
+
Fs(Yn);
|
|
1949
|
+
sr();
|
|
1950
1950
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1951
1951
|
const e = Ct();
|
|
1952
|
-
e.__INTLIFY__ = !0,
|
|
1952
|
+
e.__INTLIFY__ = !0, Ts(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
1953
1953
|
}
|
|
1954
1954
|
process.env.NODE_ENV;
|
|
1955
|
-
const
|
|
1955
|
+
const Fr = {
|
|
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,7 +1985,7 @@ const Rr = {
|
|
|
1985
1985
|
const { normalize: t } = e;
|
|
1986
1986
|
return t(["\u5217\u6570"]);
|
|
1987
1987
|
}
|
|
1988
|
-
},
|
|
1988
|
+
}, Vr = {
|
|
1989
1989
|
"zhi-xian-shi-zai-xian-she-bei": (e) => {
|
|
1990
1990
|
const { normalize: t } = e;
|
|
1991
1991
|
return t(["online only"]);
|
|
@@ -2019,42 +2019,42 @@ const Rr = {
|
|
|
2019
2019
|
return t(["Number of columns"]);
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
|
-
var
|
|
2023
|
-
let
|
|
2024
|
-
function
|
|
2025
|
-
|
|
2022
|
+
var ho = /* @__PURE__ */ ((e) => (e.zh = "zh", e.en = "en", e))(ho || {});
|
|
2023
|
+
let je;
|
|
2024
|
+
function Ur(e) {
|
|
2025
|
+
je && je.dispose(), je = Sr({
|
|
2026
2026
|
locale: e,
|
|
2027
2027
|
messages: {
|
|
2028
|
-
zh:
|
|
2029
|
-
en:
|
|
2028
|
+
zh: Fr,
|
|
2029
|
+
en: Vr
|
|
2030
2030
|
},
|
|
2031
2031
|
fallbackLocale: "en",
|
|
2032
2032
|
silentTranslationWarn: !0,
|
|
2033
2033
|
silentFallbackWarn: !0
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2037
|
-
|
|
2036
|
+
function Gr(e) {
|
|
2037
|
+
Ur(e), je.global.locale = e;
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2040
|
-
return
|
|
2039
|
+
function Te(e) {
|
|
2040
|
+
return je.global.t(e);
|
|
2041
2041
|
}
|
|
2042
|
-
var
|
|
2043
|
-
const
|
|
2042
|
+
var vo = /* @__PURE__ */ ((e) => (e.UserFirst = "UserFirst", e.PUFirst = "PUFirst", e))(vo || {});
|
|
2043
|
+
const yo = k(
|
|
2044
2044
|
"UserFirst"
|
|
2045
2045
|
);
|
|
2046
|
-
function
|
|
2047
|
-
|
|
2046
|
+
function zr(e) {
|
|
2047
|
+
yo.value = e;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2050
|
-
return
|
|
2049
|
+
function Hr() {
|
|
2050
|
+
return yo;
|
|
2051
2051
|
}
|
|
2052
|
-
const
|
|
2053
|
-
function
|
|
2054
|
-
|
|
2052
|
+
const Eo = k(!1);
|
|
2053
|
+
function Bi(e) {
|
|
2054
|
+
Eo.value = e;
|
|
2055
2055
|
}
|
|
2056
|
-
function
|
|
2057
|
-
return
|
|
2056
|
+
function jr() {
|
|
2057
|
+
return Eo;
|
|
2058
2058
|
}
|
|
2059
2059
|
var pn;
|
|
2060
2060
|
((e) => {
|
|
@@ -2137,26 +2137,32 @@ var pn;
|
|
|
2137
2137
|
n.AccessSession = o;
|
|
2138
2138
|
})(e.Utils || (e.Utils = {}));
|
|
2139
2139
|
})(pn || (pn = {}));
|
|
2140
|
-
var
|
|
2140
|
+
var I;
|
|
2141
2141
|
((e) => {
|
|
2142
|
+
e.zeroLayout = {
|
|
2143
|
+
name: "0",
|
|
2144
|
+
row: 0,
|
|
2145
|
+
col: 0,
|
|
2146
|
+
count: 0
|
|
2147
|
+
};
|
|
2142
2148
|
function t(n, o, s) {
|
|
2143
2149
|
if (s) {
|
|
2144
2150
|
let r = n * o;
|
|
2145
|
-
return s.forEach(([l, i, c,
|
|
2146
|
-
r -= (
|
|
2151
|
+
return s.forEach(([l, i, c, m]) => {
|
|
2152
|
+
r -= (m - i) * (c - l) - 1;
|
|
2147
2153
|
}), {
|
|
2148
2154
|
count: r,
|
|
2149
2155
|
row: n,
|
|
2150
2156
|
col: o,
|
|
2151
2157
|
name: `${r < 10 ? `0${r}` : r}`,
|
|
2152
|
-
areas: s.map(([l, i, c,
|
|
2158
|
+
areas: s.map(([l, i, c, m]) => ({
|
|
2153
2159
|
leftTop: {
|
|
2154
2160
|
col: l,
|
|
2155
2161
|
row: i
|
|
2156
2162
|
},
|
|
2157
2163
|
rightBottom: {
|
|
2158
2164
|
col: c,
|
|
2159
|
-
row:
|
|
2165
|
+
row: m
|
|
2160
2166
|
}
|
|
2161
2167
|
}))
|
|
2162
2168
|
};
|
|
@@ -2209,19 +2215,19 @@ var T;
|
|
|
2209
2215
|
}
|
|
2210
2216
|
n.getTestLayout = s;
|
|
2211
2217
|
})(e.Test || (e.Test = {}));
|
|
2212
|
-
})(
|
|
2213
|
-
const
|
|
2218
|
+
})(I || (I = {}));
|
|
2219
|
+
const wo = String.prototype.includes, bo = function(e, t) {
|
|
2214
2220
|
const n = this.toLocaleLowerCase(), o = e.toLocaleLowerCase();
|
|
2215
|
-
String.prototype.includes =
|
|
2221
|
+
String.prototype.includes = wo;
|
|
2216
2222
|
const s = n.includes(o, t);
|
|
2217
|
-
return String.prototype.includes =
|
|
2223
|
+
return String.prototype.includes = bo, s;
|
|
2218
2224
|
};
|
|
2219
2225
|
function nt(e) {
|
|
2220
|
-
String.prototype.includes =
|
|
2226
|
+
String.prototype.includes = bo;
|
|
2221
2227
|
const t = e();
|
|
2222
|
-
return String.prototype.includes =
|
|
2228
|
+
return String.prototype.includes = wo, t;
|
|
2223
2229
|
}
|
|
2224
|
-
const
|
|
2230
|
+
const Wr = Q({
|
|
2225
2231
|
props: {
|
|
2226
2232
|
countInfo: Object,
|
|
2227
2233
|
controlParams: Object
|
|
@@ -2242,8 +2248,8 @@ const jr = Q({
|
|
|
2242
2248
|
let l = (a = s.devices) == null ? void 0 : a.filter((c) => c.online);
|
|
2243
2249
|
const i = (r = e.controlParams) == null ? void 0 : r.searchStr;
|
|
2244
2250
|
return i && (l = l.filter((c) => nt(() => {
|
|
2245
|
-
var
|
|
2246
|
-
return c.name.includes(i) || ((
|
|
2251
|
+
var m;
|
|
2252
|
+
return c.name.includes(i) || ((m = c.user) == null ? void 0 : m.includes(i)) || c.id.includes(i);
|
|
2247
2253
|
}))), l.length;
|
|
2248
2254
|
}
|
|
2249
2255
|
return 0;
|
|
@@ -2270,63 +2276,63 @@ const oe = (e, t) => {
|
|
|
2270
2276
|
for (const [o, s] of t)
|
|
2271
2277
|
n[o] = s;
|
|
2272
2278
|
return n;
|
|
2273
|
-
},
|
|
2274
|
-
function
|
|
2279
|
+
}, Br = { class: "root" }, Yr = { class: "count-show" }, Kr = { class: "count-show-online" }, Xr = { key: 0 };
|
|
2280
|
+
function Jr(e, t, n, o, s, a) {
|
|
2275
2281
|
var r;
|
|
2276
|
-
return
|
|
2277
|
-
|
|
2282
|
+
return N(), A("div", Br, [
|
|
2283
|
+
K(e.$slots, "default", {
|
|
2278
2284
|
total: e.totalCount,
|
|
2279
2285
|
online: e.onlineCount
|
|
2280
2286
|
}, void 0, !0),
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
(r = e.controlParams) != null && r.onlyShowOnline ? pe("", !0) : (
|
|
2287
|
+
b("span", Yr, [
|
|
2288
|
+
b("span", Kr, j(e.onlineCount), 1),
|
|
2289
|
+
(r = e.controlParams) != null && r.onlyShowOnline ? pe("", !0) : (N(), A("span", Xr, "/" + j(e.totalCount), 1))
|
|
2284
2290
|
])
|
|
2285
2291
|
]);
|
|
2286
2292
|
}
|
|
2287
|
-
const
|
|
2293
|
+
const Lo = /* @__PURE__ */ oe(Wr, [["render", Jr], ["__scopeId", "data-v-f6bf9449"]]), Oo = Object.freeze(
|
|
2288
2294
|
{
|
|
2289
2295
|
left: 0,
|
|
2290
2296
|
top: 0,
|
|
2291
2297
|
width: 16,
|
|
2292
2298
|
height: 16
|
|
2293
2299
|
}
|
|
2294
|
-
),
|
|
2300
|
+
), Io = Object.freeze({
|
|
2295
2301
|
rotate: 0,
|
|
2296
2302
|
vFlip: !1,
|
|
2297
2303
|
hFlip: !1
|
|
2298
|
-
}),
|
|
2299
|
-
...
|
|
2300
|
-
...
|
|
2304
|
+
}), Rt = Object.freeze({
|
|
2305
|
+
...Oo,
|
|
2306
|
+
...Io
|
|
2301
2307
|
});
|
|
2302
2308
|
Object.freeze({
|
|
2303
|
-
...
|
|
2309
|
+
...Rt,
|
|
2304
2310
|
body: "",
|
|
2305
2311
|
hidden: !1
|
|
2306
2312
|
});
|
|
2307
2313
|
({
|
|
2308
|
-
...
|
|
2314
|
+
...Oo
|
|
2309
2315
|
});
|
|
2310
|
-
const
|
|
2316
|
+
const To = Object.freeze({
|
|
2311
2317
|
width: null,
|
|
2312
2318
|
height: null
|
|
2313
|
-
}),
|
|
2314
|
-
...
|
|
2315
|
-
...
|
|
2319
|
+
}), No = Object.freeze({
|
|
2320
|
+
...To,
|
|
2321
|
+
...Io
|
|
2316
2322
|
});
|
|
2317
|
-
function
|
|
2323
|
+
function Qr(e, t) {
|
|
2318
2324
|
const n = {
|
|
2319
2325
|
...e
|
|
2320
2326
|
};
|
|
2321
2327
|
for (const o in t) {
|
|
2322
2328
|
const s = t[o], a = typeof s;
|
|
2323
|
-
o in
|
|
2329
|
+
o in To ? (s === null || s && (a === "string" || a === "number")) && (n[o] = s) : a === typeof n[o] && (n[o] = o === "rotate" ? s % 4 : s);
|
|
2324
2330
|
}
|
|
2325
2331
|
return n;
|
|
2326
2332
|
}
|
|
2327
|
-
const
|
|
2328
|
-
function
|
|
2329
|
-
t.split(
|
|
2333
|
+
const qr = /[\s,]+/;
|
|
2334
|
+
function Zr(e, t) {
|
|
2335
|
+
t.split(qr).forEach((n) => {
|
|
2330
2336
|
switch (n.trim()) {
|
|
2331
2337
|
case "horizontal":
|
|
2332
2338
|
e.hFlip = !0;
|
|
@@ -2337,7 +2343,7 @@ function Qr(e, t) {
|
|
|
2337
2343
|
}
|
|
2338
2344
|
});
|
|
2339
2345
|
}
|
|
2340
|
-
function
|
|
2346
|
+
function ea(e, t = 0) {
|
|
2341
2347
|
const n = e.replace(/^-?[0-9.]*/, "");
|
|
2342
2348
|
function o(s) {
|
|
2343
2349
|
for (; s < 0; )
|
|
@@ -2363,7 +2369,7 @@ function qr(e, t = 0) {
|
|
|
2363
2369
|
}
|
|
2364
2370
|
return t;
|
|
2365
2371
|
}
|
|
2366
|
-
const
|
|
2372
|
+
const ta = /(-?[0-9.]*[0-9]+[0-9.]*)/g, na = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2367
2373
|
function gn(e, t, n) {
|
|
2368
2374
|
if (t === 1)
|
|
2369
2375
|
return e;
|
|
@@ -2371,11 +2377,11 @@ function gn(e, t, n) {
|
|
|
2371
2377
|
return Math.ceil(e * t * n) / n;
|
|
2372
2378
|
if (typeof e != "string")
|
|
2373
2379
|
return e;
|
|
2374
|
-
const o = e.split(
|
|
2380
|
+
const o = e.split(ta);
|
|
2375
2381
|
if (o === null || !o.length)
|
|
2376
2382
|
return e;
|
|
2377
2383
|
const s = [];
|
|
2378
|
-
let a = o.shift(), r =
|
|
2384
|
+
let a = o.shift(), r = na.test(a);
|
|
2379
2385
|
for (; ; ) {
|
|
2380
2386
|
if (r) {
|
|
2381
2387
|
const l = parseFloat(a);
|
|
@@ -2387,12 +2393,12 @@ function gn(e, t, n) {
|
|
|
2387
2393
|
r = !r;
|
|
2388
2394
|
}
|
|
2389
2395
|
}
|
|
2390
|
-
function
|
|
2396
|
+
function oa(e, t) {
|
|
2391
2397
|
const n = {
|
|
2392
|
-
...
|
|
2398
|
+
...Rt,
|
|
2393
2399
|
...e
|
|
2394
2400
|
}, o = {
|
|
2395
|
-
...
|
|
2401
|
+
...No,
|
|
2396
2402
|
...t
|
|
2397
2403
|
}, s = {
|
|
2398
2404
|
left: n.left,
|
|
@@ -2402,93 +2408,93 @@ function ta(e, t) {
|
|
|
2402
2408
|
};
|
|
2403
2409
|
let a = n.body;
|
|
2404
2410
|
[n, o].forEach((d) => {
|
|
2405
|
-
const
|
|
2406
|
-
let
|
|
2407
|
-
v ? y ?
|
|
2411
|
+
const p = [], v = d.hFlip, y = d.vFlip;
|
|
2412
|
+
let g = d.rotate;
|
|
2413
|
+
v ? y ? g += 2 : (p.push(
|
|
2408
2414
|
"translate(" + (s.width + s.left).toString() + " " + (0 - s.top).toString() + ")"
|
|
2409
|
-
),
|
|
2415
|
+
), p.push("scale(-1 1)"), s.top = s.left = 0) : y && (p.push(
|
|
2410
2416
|
"translate(" + (0 - s.left).toString() + " " + (s.height + s.top).toString() + ")"
|
|
2411
|
-
),
|
|
2412
|
-
let
|
|
2413
|
-
switch (
|
|
2417
|
+
), p.push("scale(1 -1)"), s.top = s.left = 0);
|
|
2418
|
+
let w;
|
|
2419
|
+
switch (g < 0 && (g -= Math.floor(g / 4) * 4), g = g % 4, g) {
|
|
2414
2420
|
case 1:
|
|
2415
|
-
|
|
2416
|
-
"rotate(90 " +
|
|
2421
|
+
w = s.height / 2 + s.top, p.unshift(
|
|
2422
|
+
"rotate(90 " + w.toString() + " " + w.toString() + ")"
|
|
2417
2423
|
);
|
|
2418
2424
|
break;
|
|
2419
2425
|
case 2:
|
|
2420
|
-
|
|
2426
|
+
p.unshift(
|
|
2421
2427
|
"rotate(180 " + (s.width / 2 + s.left).toString() + " " + (s.height / 2 + s.top).toString() + ")"
|
|
2422
2428
|
);
|
|
2423
2429
|
break;
|
|
2424
2430
|
case 3:
|
|
2425
|
-
|
|
2426
|
-
"rotate(-90 " +
|
|
2431
|
+
w = s.width / 2 + s.left, p.unshift(
|
|
2432
|
+
"rotate(-90 " + w.toString() + " " + w.toString() + ")"
|
|
2427
2433
|
);
|
|
2428
2434
|
break;
|
|
2429
2435
|
}
|
|
2430
|
-
|
|
2436
|
+
g % 2 === 1 && (s.left !== s.top && (w = s.left, s.left = s.top, s.top = w), s.width !== s.height && (w = s.width, s.width = s.height, s.height = w)), p.length && (a = '<g transform="' + p.join(" ") + '">' + a + "</g>");
|
|
2431
2437
|
});
|
|
2432
2438
|
const r = o.width, l = o.height, i = s.width, c = s.height;
|
|
2433
|
-
let
|
|
2434
|
-
return r === null ? (f = l === null ? "1em" : l === "auto" ? c : l,
|
|
2439
|
+
let m, f;
|
|
2440
|
+
return r === null ? (f = l === null ? "1em" : l === "auto" ? c : l, m = gn(f, i / c)) : (m = r === "auto" ? i : r, f = l === null ? gn(m, c / i) : l === "auto" ? c : l), {
|
|
2435
2441
|
attributes: {
|
|
2436
|
-
width:
|
|
2442
|
+
width: m.toString(),
|
|
2437
2443
|
height: f.toString(),
|
|
2438
2444
|
viewBox: s.left.toString() + " " + s.top.toString() + " " + i.toString() + " " + c.toString()
|
|
2439
2445
|
},
|
|
2440
2446
|
body: a
|
|
2441
2447
|
};
|
|
2442
2448
|
}
|
|
2443
|
-
const
|
|
2444
|
-
let
|
|
2445
|
-
function
|
|
2449
|
+
const sa = /\sid="(\S+)"/g, ra = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
2450
|
+
let aa = 0;
|
|
2451
|
+
function la(e, t = ra) {
|
|
2446
2452
|
const n = [];
|
|
2447
2453
|
let o;
|
|
2448
|
-
for (; o =
|
|
2454
|
+
for (; o = sa.exec(e); )
|
|
2449
2455
|
n.push(o[1]);
|
|
2450
2456
|
return n.length && n.forEach((s) => {
|
|
2451
|
-
const a = typeof t == "function" ? t(s) : t + (
|
|
2457
|
+
const a = typeof t == "function" ? t(s) : t + (aa++).toString(), r = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2452
2458
|
e = e.replace(
|
|
2453
2459
|
new RegExp('([#;"])(' + r + ')([")]|\\.[a-z])', "g"),
|
|
2454
2460
|
"$1" + a + "$3"
|
|
2455
2461
|
);
|
|
2456
2462
|
}), e;
|
|
2457
2463
|
}
|
|
2458
|
-
function
|
|
2464
|
+
function ia(e, t) {
|
|
2459
2465
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
2460
2466
|
for (const o in t)
|
|
2461
2467
|
n += " " + o + '="' + t[o] + '"';
|
|
2462
2468
|
return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
|
|
2463
2469
|
}
|
|
2464
|
-
function
|
|
2470
|
+
function ca(e) {
|
|
2465
2471
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
2466
2472
|
}
|
|
2467
|
-
function
|
|
2468
|
-
return 'url("data:image/svg+xml,' +
|
|
2473
|
+
function ua(e) {
|
|
2474
|
+
return 'url("data:image/svg+xml,' + ca(e) + '")';
|
|
2469
2475
|
}
|
|
2470
2476
|
const hn = {
|
|
2471
|
-
...
|
|
2477
|
+
...No,
|
|
2472
2478
|
inline: !1
|
|
2473
|
-
},
|
|
2479
|
+
}, da = {
|
|
2474
2480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2475
2481
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
2476
2482
|
"aria-hidden": !0,
|
|
2477
2483
|
role: "img"
|
|
2478
|
-
},
|
|
2484
|
+
}, fa = {
|
|
2479
2485
|
display: "inline-block"
|
|
2480
|
-
},
|
|
2486
|
+
}, Tt = {
|
|
2481
2487
|
backgroundColor: "currentColor"
|
|
2482
|
-
},
|
|
2488
|
+
}, So = {
|
|
2483
2489
|
backgroundColor: "transparent"
|
|
2484
2490
|
}, vn = {
|
|
2485
2491
|
Image: "var(--svg)",
|
|
2486
2492
|
Repeat: "no-repeat",
|
|
2487
2493
|
Size: "100% 100%"
|
|
2488
2494
|
}, yn = {
|
|
2489
|
-
webkitMask:
|
|
2490
|
-
mask:
|
|
2491
|
-
background:
|
|
2495
|
+
webkitMask: Tt,
|
|
2496
|
+
mask: Tt,
|
|
2497
|
+
background: So
|
|
2492
2498
|
};
|
|
2493
2499
|
for (const e in yn) {
|
|
2494
2500
|
const t = yn[e];
|
|
@@ -2503,8 +2509,8 @@ const Qe = {};
|
|
|
2503
2509
|
function En(e) {
|
|
2504
2510
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
2505
2511
|
}
|
|
2506
|
-
const
|
|
2507
|
-
const n =
|
|
2512
|
+
const _a = (e, t) => {
|
|
2513
|
+
const n = Qr(hn, t), o = { ...da }, s = t.mode || "svg", a = {}, r = t.style, l = typeof r == "object" && !(r instanceof Array) ? r : {};
|
|
2508
2514
|
for (let v in t) {
|
|
2509
2515
|
const y = t[v];
|
|
2510
2516
|
if (y !== void 0)
|
|
@@ -2520,69 +2526,69 @@ const da = (e, t) => {
|
|
|
2520
2526
|
n[v] = y === !0 || y === "true" || y === 1;
|
|
2521
2527
|
break;
|
|
2522
2528
|
case "flip":
|
|
2523
|
-
typeof y == "string" &&
|
|
2529
|
+
typeof y == "string" && Zr(n, y);
|
|
2524
2530
|
break;
|
|
2525
2531
|
case "color":
|
|
2526
2532
|
a.color = y;
|
|
2527
2533
|
break;
|
|
2528
2534
|
case "rotate":
|
|
2529
|
-
typeof y == "string" ? n[v] =
|
|
2535
|
+
typeof y == "string" ? n[v] = ea(y) : typeof y == "number" && (n[v] = y);
|
|
2530
2536
|
break;
|
|
2531
2537
|
case "ariaHidden":
|
|
2532
2538
|
case "aria-hidden":
|
|
2533
2539
|
y !== !0 && y !== "true" && delete o["aria-hidden"];
|
|
2534
2540
|
break;
|
|
2535
2541
|
default: {
|
|
2536
|
-
const
|
|
2537
|
-
|
|
2542
|
+
const g = Qe[v];
|
|
2543
|
+
g ? (y === !0 || y === "true" || y === 1) && (n[g] = !0) : hn[v] === void 0 && (o[v] = y);
|
|
2538
2544
|
}
|
|
2539
2545
|
}
|
|
2540
2546
|
}
|
|
2541
|
-
const i =
|
|
2547
|
+
const i = oa(e, n), c = i.attributes;
|
|
2542
2548
|
if (n.inline && (a.verticalAlign = "-0.125em"), s === "svg") {
|
|
2543
2549
|
o.style = {
|
|
2544
2550
|
...a,
|
|
2545
2551
|
...l
|
|
2546
2552
|
}, Object.assign(o, c);
|
|
2547
2553
|
let v = 0, y = t.id;
|
|
2548
|
-
return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML =
|
|
2554
|
+
return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = la(i.body, y ? () => y + "ID" + v++ : "iconifyVue"), qe("svg", o);
|
|
2549
2555
|
}
|
|
2550
|
-
const { body:
|
|
2556
|
+
const { body: m, width: f, height: u } = e, d = s === "mask" || (s === "bg" ? !1 : m.indexOf("currentColor") !== -1), p = ia(m, {
|
|
2551
2557
|
...c,
|
|
2552
2558
|
width: f + "",
|
|
2553
2559
|
height: u + ""
|
|
2554
2560
|
});
|
|
2555
2561
|
return o.style = {
|
|
2556
2562
|
...a,
|
|
2557
|
-
"--svg":
|
|
2563
|
+
"--svg": ua(p),
|
|
2558
2564
|
width: En(c.width),
|
|
2559
2565
|
height: En(c.height),
|
|
2560
|
-
...
|
|
2561
|
-
...d ?
|
|
2566
|
+
...fa,
|
|
2567
|
+
...d ? Tt : So,
|
|
2562
2568
|
...l
|
|
2563
2569
|
}, qe("span", o);
|
|
2564
|
-
},
|
|
2565
|
-
function
|
|
2566
|
-
|
|
2570
|
+
}, Co = /* @__PURE__ */ Object.create(null);
|
|
2571
|
+
function Se(e, t) {
|
|
2572
|
+
Co[e] = t;
|
|
2567
2573
|
}
|
|
2568
2574
|
const it = Q({
|
|
2569
2575
|
inheritAttrs: !1,
|
|
2570
2576
|
render() {
|
|
2571
|
-
const e = this.$attrs, t = e.icon, n = typeof t == "string" ?
|
|
2572
|
-
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null :
|
|
2573
|
-
...
|
|
2577
|
+
const e = this.$attrs, t = e.icon, n = typeof t == "string" ? Co[t] : typeof t == "object" ? t : null;
|
|
2578
|
+
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : _a({
|
|
2579
|
+
...Rt,
|
|
2574
2580
|
...n
|
|
2575
2581
|
}, e);
|
|
2576
2582
|
}
|
|
2577
2583
|
});
|
|
2578
|
-
var
|
|
2584
|
+
var ma = Object.defineProperty, pa = Object.defineProperties, ga = Object.getOwnPropertyDescriptors, wn = Object.getOwnPropertySymbols, ha = Object.prototype.hasOwnProperty, va = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? ma(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ln = (e, t) => {
|
|
2579
2585
|
for (var n in t || (t = {}))
|
|
2580
|
-
|
|
2581
|
-
if (
|
|
2582
|
-
for (var n of
|
|
2583
|
-
|
|
2586
|
+
ha.call(t, n) && bn(e, n, t[n]);
|
|
2587
|
+
if (wn)
|
|
2588
|
+
for (var n of wn(t))
|
|
2589
|
+
va.call(t, n) && bn(e, n, t[n]);
|
|
2584
2590
|
return e;
|
|
2585
|
-
},
|
|
2591
|
+
}, ya = (e, t) => pa(e, ga(t)), Ea = (e, t, n) => new Promise((o, s) => {
|
|
2586
2592
|
var a = (i) => {
|
|
2587
2593
|
try {
|
|
2588
2594
|
l(n.next(i));
|
|
@@ -2598,7 +2604,7 @@ var fa = Object.defineProperty, _a = Object.defineProperties, ma = Object.getOwn
|
|
|
2598
2604
|
}, l = (i) => i.done ? o(i.value) : Promise.resolve(i.value).then(a, r);
|
|
2599
2605
|
l((n = n.apply(e, t)).next());
|
|
2600
2606
|
});
|
|
2601
|
-
const
|
|
2607
|
+
const wa = {
|
|
2602
2608
|
name: "VirtualList",
|
|
2603
2609
|
props: {
|
|
2604
2610
|
listData: {
|
|
@@ -2612,22 +2618,22 @@ const ya = {
|
|
|
2612
2618
|
},
|
|
2613
2619
|
setup(e) {
|
|
2614
2620
|
const t = {
|
|
2615
|
-
screenHeight:
|
|
2616
|
-
startOffset:
|
|
2617
|
-
start:
|
|
2618
|
-
end:
|
|
2619
|
-
}, n =
|
|
2621
|
+
screenHeight: k(0),
|
|
2622
|
+
startOffset: k(0),
|
|
2623
|
+
start: k(0),
|
|
2624
|
+
end: k(0)
|
|
2625
|
+
}, n = k(), o = {
|
|
2620
2626
|
listHeight: U(() => e.listData.length * e.itemSize),
|
|
2621
2627
|
visibleCount: U(() => Math.ceil(t.screenHeight.value / e.itemSize)),
|
|
2622
2628
|
getTransform: U(() => `translate3d(0,${t.startOffset.value}px,0)`),
|
|
2623
2629
|
visibleData: U(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
|
|
2624
2630
|
};
|
|
2625
|
-
return Ln(
|
|
2631
|
+
return Ln(ya(Ln({}, o), {
|
|
2626
2632
|
virList: n
|
|
2627
2633
|
}), t);
|
|
2628
2634
|
},
|
|
2629
2635
|
mounted() {
|
|
2630
|
-
this.init(), Me(() => this.listData.length, () =>
|
|
2636
|
+
this.init(), Me(() => this.listData.length, () => Ea(this, null, function* () {
|
|
2631
2637
|
yield this.$nextTick(), this.init();
|
|
2632
2638
|
}));
|
|
2633
2639
|
},
|
|
@@ -2643,45 +2649,45 @@ const ya = {
|
|
|
2643
2649
|
}
|
|
2644
2650
|
}
|
|
2645
2651
|
};
|
|
2646
|
-
function
|
|
2647
|
-
return
|
|
2652
|
+
function ba(e, t, n, o, s, a) {
|
|
2653
|
+
return N(), A("div", {
|
|
2648
2654
|
ref: "virList",
|
|
2649
2655
|
class: "infinite-list-container",
|
|
2650
2656
|
onScroll: t[0] || (t[0] = (r) => a.scrollEvent())
|
|
2651
2657
|
}, [
|
|
2652
|
-
|
|
2658
|
+
b("div", {
|
|
2653
2659
|
class: "infinite-list-phantom",
|
|
2654
2660
|
style: _e({ height: e.listHeight + "px" })
|
|
2655
2661
|
}, null, 4),
|
|
2656
|
-
|
|
2662
|
+
b("div", {
|
|
2657
2663
|
class: "infinite-list",
|
|
2658
2664
|
style: _e({ transform: e.getTransform })
|
|
2659
2665
|
}, [
|
|
2660
|
-
(
|
|
2666
|
+
(N(!0), A(ue, null, Ee(e.visibleData, (r) => (N(), A("div", {
|
|
2661
2667
|
ref_for: !0,
|
|
2662
2668
|
ref: "items",
|
|
2663
2669
|
class: "infinite-list-item",
|
|
2664
2670
|
key: r.id,
|
|
2665
2671
|
style: _e({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
|
|
2666
2672
|
}, [
|
|
2667
|
-
|
|
2673
|
+
K(e.$slots, "default", { data: r }, void 0, !0)
|
|
2668
2674
|
], 4))), 128))
|
|
2669
2675
|
], 4)
|
|
2670
2676
|
], 544);
|
|
2671
2677
|
}
|
|
2672
|
-
const
|
|
2673
|
-
var
|
|
2678
|
+
const La = /* @__PURE__ */ oe(wa, [["render", ba], ["__scopeId", "data-v-12d2a294"]]);
|
|
2679
|
+
var Oa = Object.defineProperty, Ia = Object.defineProperties, Ta = Object.getOwnPropertyDescriptors, On = Object.getOwnPropertySymbols, Na = Object.prototype.hasOwnProperty, Sa = Object.prototype.propertyIsEnumerable, In = (e, t, n) => t in e ? Oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ca = (e, t) => {
|
|
2674
2680
|
for (var n in t || (t = {}))
|
|
2675
|
-
|
|
2681
|
+
Na.call(t, n) && In(e, n, t[n]);
|
|
2676
2682
|
if (On)
|
|
2677
2683
|
for (var n of On(t))
|
|
2678
|
-
|
|
2684
|
+
Sa.call(t, n) && In(e, n, t[n]);
|
|
2679
2685
|
return e;
|
|
2680
|
-
},
|
|
2681
|
-
const
|
|
2686
|
+
}, Aa = (e, t) => Ia(e, Ta(t));
|
|
2687
|
+
const Da = Q({
|
|
2682
2688
|
components: {
|
|
2683
|
-
VirtualList:
|
|
2684
|
-
CountShow:
|
|
2689
|
+
VirtualList: La,
|
|
2690
|
+
CountShow: Lo,
|
|
2685
2691
|
Icon: it
|
|
2686
2692
|
},
|
|
2687
2693
|
name: "group-show",
|
|
@@ -2691,20 +2697,20 @@ const Ca = Q({
|
|
|
2691
2697
|
uiParams: Object
|
|
2692
2698
|
},
|
|
2693
2699
|
setup(e, t) {
|
|
2694
|
-
const n =
|
|
2700
|
+
const n = Hr(), o = jr(), s = k(), a = Fn("theme"), r = {
|
|
2695
2701
|
filterDevice(d) {
|
|
2696
|
-
var
|
|
2702
|
+
var p;
|
|
2697
2703
|
let v = !0;
|
|
2698
2704
|
v = nt(() => {
|
|
2699
|
-
var
|
|
2700
|
-
return (
|
|
2705
|
+
var g, w, S, T;
|
|
2706
|
+
return (g = e.controlParams) != null && g.searchStr ? d.name.includes((w = e.controlParams) == null ? void 0 : w.searchStr) || d.id.includes((S = e.controlParams) == null ? void 0 : S.searchStr) || typeof d.user == "string" && d.user.includes((T = e.controlParams) == null ? void 0 : T.searchStr) : v;
|
|
2701
2707
|
});
|
|
2702
2708
|
let y = !0;
|
|
2703
|
-
return (
|
|
2709
|
+
return (p = e.controlParams) != null && p.onlyShowOnline && (y = d.online), v && y;
|
|
2704
2710
|
},
|
|
2705
2711
|
deviceText(d) {
|
|
2706
|
-
const
|
|
2707
|
-
return d.user ? n.value ==
|
|
2712
|
+
const p = `${o.value ? "" : `[${d.id}] `}`;
|
|
2713
|
+
return d.user ? n.value == vo.PUFirst ? d.name.length > 0 ? `${d.name} ${p}[${d.user}]` : ` ${p}[${d.user}]` : d.name.length > 0 ? `${d.user} ${p}[${d.name}]` : `${d.user} ${p}[]` : d.name.length > 0 ? `${d.name} ${p}` : ` ${p}`;
|
|
2708
2714
|
},
|
|
2709
2715
|
groupText(d) {
|
|
2710
2716
|
if (d)
|
|
@@ -2713,160 +2719,160 @@ const Ca = Q({
|
|
|
2713
2719
|
}, l = {
|
|
2714
2720
|
filteredDevices: U(() => {
|
|
2715
2721
|
var d;
|
|
2716
|
-
const
|
|
2717
|
-
return v.filter((
|
|
2722
|
+
const p = (d = e.deviceGroup) == null ? void 0 : d.devices, v = p && p.filter((g) => r.filterDevice(g)) || [];
|
|
2723
|
+
return v.filter((g) => g.online).concat(v.filter((g) => !g.online));
|
|
2718
2724
|
})
|
|
2719
2725
|
}, i = U(() => l.filteredDevices.value.length > 10 ? "400px" : `${l.filteredDevices.value.length * 40}px`);
|
|
2720
|
-
function c(d,
|
|
2726
|
+
function c(d, p) {
|
|
2721
2727
|
return nt(() => {
|
|
2722
|
-
if (
|
|
2728
|
+
if (p.length == 0)
|
|
2723
2729
|
return !0;
|
|
2724
2730
|
let v = !1;
|
|
2725
|
-
if ((d == null ? void 0 : d.name.indexOf(
|
|
2731
|
+
if ((d == null ? void 0 : d.name.indexOf(p)) > 0 && (v = !0), v || (v = (d == null ? void 0 : d.devices.find((y) => y.name.includes(p) || y.id.includes(p) || y.user && y.user.includes(p))) != null), !v) {
|
|
2726
2732
|
for (let y = 0; y < d.items.length; y++)
|
|
2727
|
-
if (c(d.items[y],
|
|
2733
|
+
if (c(d.items[y], p))
|
|
2728
2734
|
return !0;
|
|
2729
2735
|
}
|
|
2730
2736
|
return v;
|
|
2731
2737
|
});
|
|
2732
2738
|
}
|
|
2733
|
-
const
|
|
2739
|
+
const m = U(() => {
|
|
2734
2740
|
if (e.controlParams) {
|
|
2735
2741
|
const d = e.controlParams.searchStr;
|
|
2736
2742
|
if (e.deviceGroup)
|
|
2737
2743
|
return e.deviceGroup.id === "PGRoot" && e.deviceGroup.devices.length <= 0 ? !1 : c(e.deviceGroup, d);
|
|
2738
2744
|
}
|
|
2739
2745
|
return !1;
|
|
2740
|
-
}), f =
|
|
2746
|
+
}), f = k(!1);
|
|
2741
2747
|
function u() {
|
|
2742
2748
|
var d;
|
|
2743
2749
|
(d = e.uiParams) != null && d.dbclickExpandsDisable || (f.value = !f.value);
|
|
2744
2750
|
}
|
|
2745
|
-
return
|
|
2751
|
+
return Aa(Ca({
|
|
2746
2752
|
OnHeadDbClick: u,
|
|
2747
2753
|
innerUtils: r
|
|
2748
2754
|
}, l), {
|
|
2749
2755
|
devicePanelHeight: i,
|
|
2750
|
-
showGroup:
|
|
2756
|
+
showGroup: m,
|
|
2751
2757
|
bShow: f,
|
|
2752
2758
|
theme: a,
|
|
2753
2759
|
countRef: s
|
|
2754
2760
|
});
|
|
2755
2761
|
}
|
|
2756
2762
|
});
|
|
2757
|
-
const
|
|
2763
|
+
const Pa = {
|
|
2758
2764
|
key: 0,
|
|
2759
2765
|
class: "head-op"
|
|
2760
|
-
},
|
|
2766
|
+
}, $a = {
|
|
2761
2767
|
key: 1,
|
|
2762
2768
|
style: { display: "inline-block", width: "25px" }
|
|
2763
|
-
},
|
|
2769
|
+
}, Ma = {
|
|
2764
2770
|
key: 0,
|
|
2765
2771
|
class: "group-head-count"
|
|
2766
|
-
},
|
|
2772
|
+
}, ka = ["title"], xa = { class: "group-slot" }, Ra = {
|
|
2767
2773
|
key: 0,
|
|
2768
2774
|
style: { "margin-left": "26px" }
|
|
2769
|
-
},
|
|
2770
|
-
function
|
|
2775
|
+
}, Fa = ["title"], Va = { class: "device-slot" };
|
|
2776
|
+
function Ua(e, t, n, o, s, a) {
|
|
2771
2777
|
var r, l, i;
|
|
2772
|
-
const c = fe("Icon"),
|
|
2773
|
-
return e.showGroup ?
|
|
2778
|
+
const c = fe("Icon"), m = fe("CountShow"), f = fe("group-show"), u = fe("VirtualList");
|
|
2779
|
+
return e.showGroup ? Vn((N(), A("div", {
|
|
2774
2780
|
key: 0,
|
|
2775
2781
|
class: Ze("group " + e.theme)
|
|
2776
2782
|
}, [
|
|
2777
|
-
|
|
2783
|
+
B(m, {
|
|
2778
2784
|
countInfo: e.deviceGroup,
|
|
2779
2785
|
controlParams: e.controlParams,
|
|
2780
2786
|
ref: "countRef"
|
|
2781
2787
|
}, {
|
|
2782
|
-
default: te(({ online: d, total:
|
|
2788
|
+
default: te(({ online: d, total: p }) => {
|
|
2783
2789
|
var v, y;
|
|
2784
2790
|
return [
|
|
2785
|
-
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (
|
|
2786
|
-
|
|
2791
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (N(), A("span", Pa, [
|
|
2792
|
+
B(c, {
|
|
2787
2793
|
icon: e.bShow ? "minus" : "plus",
|
|
2788
2794
|
width: "20",
|
|
2789
|
-
onClick: t[0] || (t[0] = (
|
|
2795
|
+
onClick: t[0] || (t[0] = (g) => e.bShow = !e.bShow),
|
|
2790
2796
|
class: "handle-ls-svg"
|
|
2791
2797
|
}, null, 8, ["icon"])
|
|
2792
|
-
])) : (
|
|
2793
|
-
|
|
2798
|
+
])) : (N(), A("span", $a)),
|
|
2799
|
+
b("span", {
|
|
2794
2800
|
class: "group-head-db-click",
|
|
2795
|
-
onDblclick: t[1] || (t[1] = (...
|
|
2801
|
+
onDblclick: t[1] || (t[1] = (...g) => e.OnHeadDbClick && e.OnHeadDbClick(...g))
|
|
2796
2802
|
}, [
|
|
2797
|
-
|
|
2803
|
+
B(c, {
|
|
2798
2804
|
icon: e.bShow ? "group" : "group-closed",
|
|
2799
2805
|
width: "24",
|
|
2800
2806
|
class: "group-avatar"
|
|
2801
2807
|
}, null, 8, ["icon"]),
|
|
2802
|
-
e.bShow ? pe("", !0) : (
|
|
2803
|
-
|
|
2804
|
-
|
|
2808
|
+
e.bShow ? pe("", !0) : (N(), A("span", Ma, j((v = e.deviceGroup) == null ? void 0 : v.items.length), 1)),
|
|
2809
|
+
K(e.$slots, "groupHead", { group: e.deviceGroup }, void 0, !0),
|
|
2810
|
+
b("span", {
|
|
2805
2811
|
class: "group-name",
|
|
2806
2812
|
title: (y = e.deviceGroup) == null ? void 0 : y.name
|
|
2807
|
-
},
|
|
2813
|
+
}, j(e.innerUtils.groupText(e.deviceGroup)), 9, ka)
|
|
2808
2814
|
], 32),
|
|
2809
|
-
|
|
2810
|
-
|
|
2815
|
+
b("div", xa, [
|
|
2816
|
+
K(e.$slots, "group", { group: e.deviceGroup }, void 0, !0)
|
|
2811
2817
|
])
|
|
2812
2818
|
];
|
|
2813
2819
|
}),
|
|
2814
2820
|
_: 3
|
|
2815
2821
|
}, 8, ["countInfo", "controlParams"]),
|
|
2816
|
-
e.bShow ? (
|
|
2817
|
-
(
|
|
2818
|
-
key:
|
|
2822
|
+
e.bShow ? (N(), A("div", Ra, [
|
|
2823
|
+
(N(!0), A(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (d, p) => (N(), Re(f, {
|
|
2824
|
+
key: p,
|
|
2819
2825
|
deviceGroup: d,
|
|
2820
2826
|
"ui-params": e.uiParams,
|
|
2821
2827
|
controlParams: e.controlParams
|
|
2822
2828
|
}, {
|
|
2823
2829
|
groupHead: te(({ group: v }) => [
|
|
2824
|
-
|
|
2830
|
+
K(e.$slots, "groupHead", { group: v }, void 0, !0)
|
|
2825
2831
|
]),
|
|
2826
2832
|
group: te(({ group: v }) => [
|
|
2827
|
-
|
|
2833
|
+
K(e.$slots, "group", { group: v }, void 0, !0)
|
|
2828
2834
|
]),
|
|
2829
2835
|
deviceHead: te(({ device: v, group: y }) => [
|
|
2830
|
-
|
|
2836
|
+
K(e.$slots, "deviceHead", {
|
|
2831
2837
|
device: v,
|
|
2832
2838
|
group: y
|
|
2833
2839
|
}, void 0, !0)
|
|
2834
2840
|
]),
|
|
2835
2841
|
device: te(({ device: v, group: y }) => [
|
|
2836
|
-
|
|
2842
|
+
K(e.$slots, "device", {
|
|
2837
2843
|
device: v,
|
|
2838
2844
|
group: y
|
|
2839
2845
|
}, void 0, !0)
|
|
2840
2846
|
]),
|
|
2841
2847
|
_: 2
|
|
2842
2848
|
}, 1032, ["deviceGroup", "ui-params", "controlParams"]))), 128)),
|
|
2843
|
-
|
|
2849
|
+
b("div", {
|
|
2844
2850
|
class: "device-show-div",
|
|
2845
2851
|
style: _e(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40}px`}`)
|
|
2846
2852
|
}, [
|
|
2847
|
-
|
|
2853
|
+
B(u, {
|
|
2848
2854
|
"list-data": e.filteredDevices,
|
|
2849
2855
|
"item-size": 40
|
|
2850
2856
|
}, {
|
|
2851
2857
|
default: te(({ data: d }) => [
|
|
2852
|
-
|
|
2858
|
+
b("div", {
|
|
2853
2859
|
class: Ze(d.online && "online-device")
|
|
2854
2860
|
}, [
|
|
2855
|
-
|
|
2861
|
+
B(c, {
|
|
2856
2862
|
icon: "user",
|
|
2857
2863
|
width: "16",
|
|
2858
2864
|
class: "device-avatar"
|
|
2859
2865
|
}),
|
|
2860
|
-
|
|
2866
|
+
K(e.$slots, "deviceHead", {
|
|
2861
2867
|
device: d,
|
|
2862
2868
|
group: e.deviceGroup
|
|
2863
2869
|
}, void 0, !0),
|
|
2864
|
-
|
|
2870
|
+
b("span", {
|
|
2865
2871
|
title: e.innerUtils.deviceText(d),
|
|
2866
2872
|
class: "device-name"
|
|
2867
|
-
},
|
|
2868
|
-
|
|
2869
|
-
|
|
2873
|
+
}, j(e.innerUtils.deviceText(d)), 9, Fa),
|
|
2874
|
+
b("div", Va, [
|
|
2875
|
+
K(e.$slots, "device", {
|
|
2870
2876
|
device: d,
|
|
2871
2877
|
group: e.deviceGroup
|
|
2872
2878
|
}, void 0, !0)
|
|
@@ -2878,44 +2884,44 @@ function xa(e, t, n, o, s, a) {
|
|
|
2878
2884
|
], 4)
|
|
2879
2885
|
])) : pe("", !0)
|
|
2880
2886
|
], 2)), [
|
|
2881
|
-
[
|
|
2887
|
+
[Un, !((l = e.controlParams) != null && l.onlyShowOnline) || ((i = e.countRef) == null ? void 0 : i.onlineCount)]
|
|
2882
2888
|
]) : pe("", !0);
|
|
2883
2889
|
}
|
|
2884
|
-
const
|
|
2890
|
+
const Ga = /* @__PURE__ */ oe(Da, [["render", Ua], ["__scopeId", "data-v-6caa5080"]]), za = {
|
|
2885
2891
|
width: 1024,
|
|
2886
2892
|
height: 1024,
|
|
2887
2893
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
2888
|
-
},
|
|
2894
|
+
}, Ha = {
|
|
2889
2895
|
width: 1024,
|
|
2890
2896
|
height: 1024,
|
|
2891
2897
|
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"/>'
|
|
2892
|
-
},
|
|
2898
|
+
}, ja = {
|
|
2893
2899
|
width: 1024,
|
|
2894
2900
|
height: 1024,
|
|
2895
2901
|
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"/>'
|
|
2896
|
-
},
|
|
2902
|
+
}, Wa = {
|
|
2897
2903
|
width: 1024,
|
|
2898
2904
|
height: 1024,
|
|
2899
2905
|
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"/>'
|
|
2900
|
-
},
|
|
2906
|
+
}, Ba = {
|
|
2901
2907
|
width: 1024,
|
|
2902
2908
|
height: 1024,
|
|
2903
2909
|
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"/>'
|
|
2904
|
-
},
|
|
2910
|
+
}, Ya = {
|
|
2905
2911
|
width: 1024,
|
|
2906
2912
|
height: 1024,
|
|
2907
2913
|
body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
|
|
2908
2914
|
};
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
const
|
|
2915
|
+
Se("right", za);
|
|
2916
|
+
Se("group", Ha);
|
|
2917
|
+
Se("group-closed", ja);
|
|
2918
|
+
Se("user", Wa);
|
|
2919
|
+
Se("plus", Ba);
|
|
2920
|
+
Se("minus", Ya);
|
|
2921
|
+
const Ka = Q({
|
|
2916
2922
|
components: {
|
|
2917
|
-
CountShow:
|
|
2918
|
-
GroupShow:
|
|
2923
|
+
CountShow: Lo,
|
|
2924
|
+
GroupShow: Ga
|
|
2919
2925
|
},
|
|
2920
2926
|
props: {
|
|
2921
2927
|
deviceGroup: Object,
|
|
@@ -2940,63 +2946,63 @@ const Ba = Q({
|
|
|
2940
2946
|
}
|
|
2941
2947
|
},
|
|
2942
2948
|
setup(e) {
|
|
2943
|
-
|
|
2944
|
-
const t =
|
|
2949
|
+
es("theme", e.theme);
|
|
2950
|
+
const t = k({
|
|
2945
2951
|
onlyShowOnline: !1,
|
|
2946
2952
|
searchStr: ""
|
|
2947
|
-
}), n =
|
|
2953
|
+
}), n = k(), o = k();
|
|
2948
2954
|
return {
|
|
2949
|
-
i18nT:
|
|
2955
|
+
i18nT: Te,
|
|
2950
2956
|
inputShowOnlineOnly: n,
|
|
2951
2957
|
inputSearchRef: o,
|
|
2952
2958
|
controlParams: t
|
|
2953
2959
|
};
|
|
2954
2960
|
}
|
|
2955
2961
|
});
|
|
2956
|
-
const
|
|
2957
|
-
function
|
|
2962
|
+
const Xa = { class: "device-group-list" }, Ja = { class: "search-panel" }, Qa = { for: "onlineShow" }, qa = { class: "device-panel" };
|
|
2963
|
+
function Za(e, t, n, o, s, a) {
|
|
2958
2964
|
var r;
|
|
2959
2965
|
const l = fe("CountShow"), i = fe("group-show");
|
|
2960
|
-
return
|
|
2961
|
-
|
|
2962
|
-
|
|
2966
|
+
return N(), A("div", Xa, [
|
|
2967
|
+
b("div", Ja, [
|
|
2968
|
+
B(l, {
|
|
2963
2969
|
countInfo: e.deviceGroup,
|
|
2964
2970
|
"control-params": e.controlParams
|
|
2965
2971
|
}, {
|
|
2966
2972
|
default: te(() => [
|
|
2967
|
-
|
|
2973
|
+
b("input", {
|
|
2968
2974
|
type: "checkbox",
|
|
2969
2975
|
id: "onlineShow",
|
|
2970
2976
|
value: "onlineShow",
|
|
2971
2977
|
onChange: t[0] || (t[0] = () => e.onCheckBoxChange()),
|
|
2972
2978
|
ref: "inputShowOnlineOnly"
|
|
2973
2979
|
}, null, 544),
|
|
2974
|
-
|
|
2980
|
+
b("label", Qa, j(e.i18nT("zhi-xian-shi-zai-xian-she-bei")), 1)
|
|
2975
2981
|
]),
|
|
2976
2982
|
_: 1
|
|
2977
2983
|
}, 8, ["countInfo", "control-params"])
|
|
2978
2984
|
]),
|
|
2979
|
-
|
|
2980
|
-
(
|
|
2985
|
+
b("div", qa, [
|
|
2986
|
+
(N(!0), A(ue, null, Ee((r = e.deviceGroup) == null ? void 0 : r.items, (c, m) => (N(), Re(i, {
|
|
2981
2987
|
controlParams: e.controlParams,
|
|
2982
|
-
key:
|
|
2988
|
+
key: m,
|
|
2983
2989
|
"ui-params": e.uiControl,
|
|
2984
2990
|
deviceGroup: c
|
|
2985
2991
|
}, {
|
|
2986
2992
|
groupHead: te(({ group: f }) => [
|
|
2987
|
-
|
|
2993
|
+
K(e.$slots, "groupHead", { group: f }, void 0, !0)
|
|
2988
2994
|
]),
|
|
2989
2995
|
group: te(({ group: f }) => [
|
|
2990
|
-
|
|
2996
|
+
K(e.$slots, "group", { group: f }, void 0, !0)
|
|
2991
2997
|
]),
|
|
2992
2998
|
deviceHead: te(({ device: f, group: u }) => [
|
|
2993
|
-
|
|
2999
|
+
K(e.$slots, "deviceHead", {
|
|
2994
3000
|
device: f,
|
|
2995
3001
|
group: u
|
|
2996
3002
|
}, void 0, !0)
|
|
2997
3003
|
]),
|
|
2998
3004
|
device: te(({ device: f, group: u }) => [
|
|
2999
|
-
|
|
3005
|
+
K(e.$slots, "device", {
|
|
3000
3006
|
device: f,
|
|
3001
3007
|
group: u
|
|
3002
3008
|
}, void 0, !0)
|
|
@@ -3006,31 +3012,31 @@ function Qa(e, t, n, o, s, a) {
|
|
|
3006
3012
|
])
|
|
3007
3013
|
]);
|
|
3008
3014
|
}
|
|
3009
|
-
const
|
|
3010
|
-
var
|
|
3015
|
+
const el = /* @__PURE__ */ oe(Ka, [["render", Za], ["__scopeId", "data-v-beb643d9"]]);
|
|
3016
|
+
var tl = Object.defineProperty, nl = Object.defineProperties, ol = Object.getOwnPropertyDescriptors, Tn = Object.getOwnPropertySymbols, sl = Object.prototype.hasOwnProperty, rl = Object.prototype.propertyIsEnumerable, Nn = (e, t, n) => t in e ? tl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ao = (e, t) => {
|
|
3011
3017
|
for (var n in t || (t = {}))
|
|
3012
|
-
|
|
3013
|
-
if (
|
|
3014
|
-
for (var n of
|
|
3015
|
-
|
|
3018
|
+
sl.call(t, n) && Nn(e, n, t[n]);
|
|
3019
|
+
if (Tn)
|
|
3020
|
+
for (var n of Tn(t))
|
|
3021
|
+
rl.call(t, n) && Nn(e, n, t[n]);
|
|
3016
3022
|
return e;
|
|
3017
|
-
},
|
|
3018
|
-
const
|
|
3019
|
-
function
|
|
3023
|
+
}, al = (e, t) => nl(e, ol(t));
|
|
3024
|
+
const ze = 6, Sn = ze * 2;
|
|
3025
|
+
function ll(e, t) {
|
|
3020
3026
|
return e.map(
|
|
3021
3027
|
({
|
|
3022
3028
|
leftTop: { col: n, row: o },
|
|
3023
3029
|
rightBottom: { col: s, row: a }
|
|
3024
|
-
}) => `<line x1="${n * t.col +
|
|
3030
|
+
}) => `<line x1="${n * t.col + ze}" y1="${o * t.row + ze}" x2="${s * t.col + ze}" y2="${a * t.row + ze}" stroke="black" stroke-width="5"/>`
|
|
3025
3031
|
).join(" ");
|
|
3026
3032
|
}
|
|
3027
|
-
function
|
|
3033
|
+
function il(e, t, n) {
|
|
3028
3034
|
return n.findIndex((o) => e >= o.leftTop.row && e < o.rightBottom.row && t >= o.leftTop.col && t < o.rightBottom.col) >= 0;
|
|
3029
3035
|
}
|
|
3030
|
-
function
|
|
3036
|
+
function cl(e, t, n) {
|
|
3031
3037
|
n.forEach((o) => {
|
|
3032
|
-
const s =
|
|
3033
|
-
id:
|
|
3038
|
+
const s = al(Ao({}, o.leftTop), {
|
|
3039
|
+
id: Do(o.leftTop),
|
|
3034
3040
|
layout: {
|
|
3035
3041
|
left: 100 / t.col * o.leftTop.col,
|
|
3036
3042
|
top: 100 / t.row * o.leftTop.row,
|
|
@@ -3043,11 +3049,11 @@ function ll(e, t, n) {
|
|
|
3043
3049
|
e.push(s);
|
|
3044
3050
|
});
|
|
3045
3051
|
}
|
|
3046
|
-
function
|
|
3052
|
+
function Do(e) {
|
|
3047
3053
|
return `${e.row}-${e.col}`;
|
|
3048
3054
|
}
|
|
3049
3055
|
const Cn = "ComponentsDefaultLayoutKeyAF84566", An = "ComponentsCustomLayoutsKeyAF84566";
|
|
3050
|
-
function
|
|
3056
|
+
function ul(e) {
|
|
3051
3057
|
const t = [], n = [];
|
|
3052
3058
|
for (let o = 0; o < e.points.length / 2; o++)
|
|
3053
3059
|
n.push(e.points.slice(o * 2, o * 2 + 2));
|
|
@@ -3078,20 +3084,20 @@ const Ne = {
|
|
|
3078
3084
|
const n = [];
|
|
3079
3085
|
for (let o = 0; o < e.row; o++)
|
|
3080
3086
|
for (let s = 0; s < e.col; s++) {
|
|
3081
|
-
if (
|
|
3087
|
+
if (il(o, s, t))
|
|
3082
3088
|
continue;
|
|
3083
|
-
const a =
|
|
3089
|
+
const a = Ao({
|
|
3084
3090
|
layout: {
|
|
3085
3091
|
left: 100 / e.col * s,
|
|
3086
3092
|
top: 100 / e.row * o,
|
|
3087
3093
|
width: 100 / e.col,
|
|
3088
3094
|
height: 100 / e.row
|
|
3089
3095
|
},
|
|
3090
|
-
id:
|
|
3096
|
+
id: Do({ row: o, col: s })
|
|
3091
3097
|
}, { row: o, col: s, w: 1, h: 1 });
|
|
3092
3098
|
n.push(a);
|
|
3093
3099
|
}
|
|
3094
|
-
return
|
|
3100
|
+
return cl(n, e, t), n;
|
|
3095
3101
|
},
|
|
3096
3102
|
TransLayoutToSVG(e, t) {
|
|
3097
3103
|
const n = [];
|
|
@@ -3109,23 +3115,23 @@ const Ne = {
|
|
|
3109
3115
|
});
|
|
3110
3116
|
n.forEach(
|
|
3111
3117
|
({
|
|
3112
|
-
leftTop: { row: c, col:
|
|
3118
|
+
leftTop: { row: c, col: m },
|
|
3113
3119
|
rightBottom: { row: f, col: u }
|
|
3114
3120
|
}) => {
|
|
3115
3121
|
for (let d = c + 1; d < f; d++)
|
|
3116
|
-
o[d].points.push(
|
|
3117
|
-
for (let d =
|
|
3122
|
+
o[d].points.push(m, u);
|
|
3123
|
+
for (let d = m + 1; d < u; d++)
|
|
3118
3124
|
s[d].points.push(c, f);
|
|
3119
3125
|
}
|
|
3120
3126
|
);
|
|
3121
3127
|
const a = o.concat(...s), r = [];
|
|
3122
3128
|
a.forEach((c) => {
|
|
3123
|
-
c.points = c.points.sort(), r.push(...
|
|
3129
|
+
c.points = c.points.sort(), r.push(...ul(c));
|
|
3124
3130
|
});
|
|
3125
3131
|
const l = {
|
|
3126
3132
|
row: t.height / e.row,
|
|
3127
3133
|
col: t.width / e.col
|
|
3128
|
-
}, i =
|
|
3134
|
+
}, i = ll(r, l);
|
|
3129
3135
|
return `<svg viewBox='0 0 ${t.width + Sn} ${t.height + Sn} ' width="100%" height="100%"> ${i} </svg>`;
|
|
3130
3136
|
},
|
|
3131
3137
|
StorageDefaultLayout: {
|
|
@@ -3158,7 +3164,7 @@ const Ne = {
|
|
|
3158
3164
|
localStorage.setItem(An, JSON.stringify(e));
|
|
3159
3165
|
}
|
|
3160
3166
|
}
|
|
3161
|
-
},
|
|
3167
|
+
}, dl = Q({
|
|
3162
3168
|
emits: {
|
|
3163
3169
|
onselect(e, t) {
|
|
3164
3170
|
return !0;
|
|
@@ -3213,24 +3219,24 @@ const Ne = {
|
|
|
3213
3219
|
}
|
|
3214
3220
|
}
|
|
3215
3221
|
});
|
|
3216
|
-
const
|
|
3217
|
-
function
|
|
3218
|
-
return
|
|
3219
|
-
(
|
|
3222
|
+
const fl = ["onClick"], _l = { style: { position: "relative", display: "inline-block", margin: "10px" } }, ml = ["innerHTML"], pl = { style: { "vertical-align": "middle" } };
|
|
3223
|
+
function gl(e, t, n, o, s, a) {
|
|
3224
|
+
return N(), A("div", null, [
|
|
3225
|
+
(N(!0), A(ue, null, Ee(e.layoutInfos, (r) => (N(), A("div", {
|
|
3220
3226
|
class: Ze(r.select ? "layout-item layout-item-select" : "layout-item"),
|
|
3221
3227
|
onClick: (l) => e.selectClick(r)
|
|
3222
3228
|
}, [
|
|
3223
|
-
|
|
3224
|
-
|
|
3229
|
+
b("div", _l, [
|
|
3230
|
+
b("div", {
|
|
3225
3231
|
innerHTML: r.svg,
|
|
3226
3232
|
class: "svg-style"
|
|
3227
|
-
}, null, 8,
|
|
3228
|
-
|
|
3233
|
+
}, null, 8, ml),
|
|
3234
|
+
b("span", pl, j(r.layout.name), 1)
|
|
3229
3235
|
])
|
|
3230
|
-
], 10,
|
|
3236
|
+
], 10, fl))), 256))
|
|
3231
3237
|
]);
|
|
3232
3238
|
}
|
|
3233
|
-
const
|
|
3239
|
+
const Po = /* @__PURE__ */ oe(dl, [["render", gl], ["__scopeId", "data-v-2a8e4593"]]), hl = Q({
|
|
3234
3240
|
props: {
|
|
3235
3241
|
layout: {
|
|
3236
3242
|
type: Object
|
|
@@ -3250,19 +3256,19 @@ const Ao = /* @__PURE__ */ oe(cl, [["render", ml], ["__scopeId", "data-v-2a8e459
|
|
|
3250
3256
|
};
|
|
3251
3257
|
}
|
|
3252
3258
|
});
|
|
3253
|
-
const
|
|
3254
|
-
function
|
|
3255
|
-
return
|
|
3256
|
-
(
|
|
3259
|
+
const vl = { style: { position: "relative", height: "100%", width: "100%" } };
|
|
3260
|
+
function yl(e, t, n, o, s, a) {
|
|
3261
|
+
return N(), A("div", vl, [
|
|
3262
|
+
(N(!0), A(ue, null, Ee(e.frameRef, ({ layout: r, id: l, row: i, col: c, w: m, h: f }, u) => (N(), A("div", {
|
|
3257
3263
|
class: "play-area",
|
|
3258
3264
|
key: u,
|
|
3259
3265
|
style: _e(`position: absolute; top: calc(${r.top}%); left: calc(${r.left}%); width: calc(${r.width}%); height: calc(${r.height}%);`)
|
|
3260
3266
|
}, [
|
|
3261
|
-
|
|
3267
|
+
K(e.$slots, "default", {
|
|
3262
3268
|
id: l,
|
|
3263
3269
|
row: i,
|
|
3264
3270
|
col: c,
|
|
3265
|
-
w:
|
|
3271
|
+
w: m,
|
|
3266
3272
|
h: f,
|
|
3267
3273
|
index: u,
|
|
3268
3274
|
areas: e.areas
|
|
@@ -3270,21 +3276,21 @@ function hl(e, t, n, o, s, a) {
|
|
|
3270
3276
|
], 4))), 128))
|
|
3271
3277
|
]);
|
|
3272
3278
|
}
|
|
3273
|
-
const
|
|
3279
|
+
const Ft = /* @__PURE__ */ oe(hl, [["render", yl], ["__scopeId", "data-v-e6baa31a"]]), El = {
|
|
3274
3280
|
width: 1024,
|
|
3275
3281
|
height: 1024,
|
|
3276
3282
|
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"/>'
|
|
3277
3283
|
};
|
|
3278
|
-
|
|
3279
|
-
const
|
|
3284
|
+
Se("close", El);
|
|
3285
|
+
const wl = Q({
|
|
3280
3286
|
components: {
|
|
3281
|
-
VideoAreaLayoutShow:
|
|
3287
|
+
VideoAreaLayoutShow: Ft,
|
|
3282
3288
|
Icon: it
|
|
3283
3289
|
},
|
|
3284
3290
|
setup() {
|
|
3285
|
-
const e =
|
|
3291
|
+
const e = k(3), t = k(3), n = k(
|
|
3286
3292
|
[]
|
|
3287
|
-
), o = U(() =>
|
|
3293
|
+
), o = U(() => I.genLayout(e.value, t.value, n.value)), s = k({}), a = k([]);
|
|
3288
3294
|
return {
|
|
3289
3295
|
areas: n,
|
|
3290
3296
|
row: e,
|
|
@@ -3392,83 +3398,83 @@ const yl = Q({
|
|
|
3392
3398
|
}
|
|
3393
3399
|
}
|
|
3394
3400
|
});
|
|
3395
|
-
const
|
|
3396
|
-
function
|
|
3401
|
+
const bl = { style: { height: "calc(100% - 80px)", width: "calc(100%)", position: "relative" } }, Ll = ["onMouseenter", "onMousedown"], Ol = { style: { "font-size": "32px" } }, Il = { style: { display: "inline-block", width: "40px", "text-align": "center" } }, Tl = { style: { display: "inline-block", width: "calc(100% - 40px)", "text-align": "right", "vertical-align": "middle" } }, Nl = ["onClick"];
|
|
3402
|
+
function Sl(e, t, n, o, s, a) {
|
|
3397
3403
|
const r = fe("Icon"), l = fe("VideoAreaLayoutShow");
|
|
3398
|
-
return
|
|
3399
|
-
|
|
3404
|
+
return N(), A("div", bl, [
|
|
3405
|
+
B(l, { layout: e.layout }, {
|
|
3400
3406
|
default: te((i) => [
|
|
3401
|
-
|
|
3407
|
+
b("div", {
|
|
3402
3408
|
class: Ze(e.genClass(i)),
|
|
3403
3409
|
onMouseenter: (c) => e.onMouseOver(c, i),
|
|
3404
3410
|
onMousedown: (c) => e.onMouseDown(i),
|
|
3405
3411
|
style: { "user-select": "none" }
|
|
3406
3412
|
}, [
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3413
|
+
b("div", Ol, [
|
|
3414
|
+
b("div", Il, j(i.index + 1), 1),
|
|
3415
|
+
b("div", Tl, [
|
|
3416
|
+
b("span", {
|
|
3411
3417
|
onClick: (c) => e.onDelLayout(i)
|
|
3412
3418
|
}, [
|
|
3413
|
-
i.w > 1 || i.h > 1 ? (
|
|
3419
|
+
i.w > 1 || i.h > 1 ? (N(), Re(r, {
|
|
3414
3420
|
key: 0,
|
|
3415
3421
|
icon: "close",
|
|
3416
3422
|
class: "close-btn"
|
|
3417
3423
|
})) : pe("", !0)
|
|
3418
|
-
], 8,
|
|
3424
|
+
], 8, Nl)
|
|
3419
3425
|
])
|
|
3420
3426
|
])
|
|
3421
|
-
], 42,
|
|
3427
|
+
], 42, Ll)
|
|
3422
3428
|
]),
|
|
3423
3429
|
_: 1
|
|
3424
3430
|
}, 8, ["layout"])
|
|
3425
3431
|
]);
|
|
3426
3432
|
}
|
|
3427
|
-
const
|
|
3433
|
+
const Cl = /* @__PURE__ */ oe(wl, [["render", Sl], ["__scopeId", "data-v-c3d9b21a"]]), Al = Q({
|
|
3428
3434
|
components: {
|
|
3429
3435
|
Icon: it,
|
|
3430
|
-
LayoutShow:
|
|
3431
|
-
CustomLayoutGen:
|
|
3436
|
+
LayoutShow: Po,
|
|
3437
|
+
CustomLayoutGen: Cl
|
|
3432
3438
|
},
|
|
3433
3439
|
setup() {
|
|
3434
3440
|
return {
|
|
3435
|
-
layout:
|
|
3441
|
+
layout: k(
|
|
3436
3442
|
Ne.CustomLayouts.get()
|
|
3437
3443
|
),
|
|
3438
|
-
i18nT:
|
|
3444
|
+
i18nT: Te
|
|
3439
3445
|
};
|
|
3440
3446
|
}
|
|
3441
3447
|
});
|
|
3442
|
-
const
|
|
3443
|
-
function
|
|
3448
|
+
const Dl = { style: { "margin-left": "10px", "margin-top": "10px" } }, Pl = { class: "plus-custom-layout" }, $l = /* @__PURE__ */ Gn("\u6DFB\u52A0\u5E03\u5C40 "), Ml = { style: { "margin-top": "10px" } }, kl = { style: { height: "300px" } };
|
|
3449
|
+
function xl(e, t, n, o, s, a) {
|
|
3444
3450
|
const r = fe("Icon"), l = fe("CustomLayoutGen");
|
|
3445
|
-
return
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3451
|
+
return N(), A("div", Dl, [
|
|
3452
|
+
b("span", null, [
|
|
3453
|
+
Gn(j(e.i18nT("zi-ding-yi-bu-ju")) + "\uFF1A ", 1),
|
|
3454
|
+
b("span", Pl, [
|
|
3455
|
+
B(r, {
|
|
3450
3456
|
icon: "plus",
|
|
3451
3457
|
style: { "vertical-align": "text-top" }
|
|
3452
3458
|
}),
|
|
3453
|
-
|
|
3459
|
+
$l
|
|
3454
3460
|
])
|
|
3455
3461
|
]),
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3462
|
+
b("div", Ml, [
|
|
3463
|
+
b("div", kl, [
|
|
3464
|
+
B(l)
|
|
3459
3465
|
])
|
|
3460
3466
|
])
|
|
3461
3467
|
]);
|
|
3462
3468
|
}
|
|
3463
|
-
const
|
|
3469
|
+
const Rl = /* @__PURE__ */ oe(Al, [["render", xl], ["__scopeId", "data-v-f8b51862"]]), Fl = Q({
|
|
3464
3470
|
emits: {
|
|
3465
3471
|
LayoutChange(e, t, n) {
|
|
3466
3472
|
return !0;
|
|
3467
3473
|
}
|
|
3468
3474
|
},
|
|
3469
3475
|
components: {
|
|
3470
|
-
UseCustomLayoutSelector:
|
|
3471
|
-
LayoutShow:
|
|
3476
|
+
UseCustomLayoutSelector: Rl,
|
|
3477
|
+
LayoutShow: Po,
|
|
3472
3478
|
Icon: it
|
|
3473
3479
|
},
|
|
3474
3480
|
props: {
|
|
@@ -3477,28 +3483,27 @@ const Ml = /* @__PURE__ */ oe(Sl, [["render", kl], ["__scopeId", "data-v-f8b5186
|
|
|
3477
3483
|
}
|
|
3478
3484
|
},
|
|
3479
3485
|
setup(e, t) {
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
T.genLayout(3, 3, [
|
|
3486
|
+
const n = e.layouts, o = Oe(
|
|
3487
|
+
n && n.length > 0 ? n : [
|
|
3488
|
+
I.Test.genLayout(1, 1),
|
|
3489
|
+
I.Test.genLayout(1, 2),
|
|
3490
|
+
I.Test.genLayout(2, 2),
|
|
3491
|
+
I.Test.genLayout(2, 3),
|
|
3492
|
+
I.genLayout(3, 3, [
|
|
3488
3493
|
[0, 0, 2, 2],
|
|
3489
3494
|
[2, 0, 3, 2]
|
|
3490
3495
|
]),
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3496
|
+
I.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3497
|
+
I.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3498
|
+
I.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3499
|
+
I.Test.genLayout(3, 3),
|
|
3500
|
+
I.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3501
|
+
I.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3502
|
+
I.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3503
|
+
I.Test.genLayout(4, 4),
|
|
3504
|
+
I.Test.genLayout(5, 5),
|
|
3505
|
+
I.Test.genLayout(6, 6),
|
|
3506
|
+
I.genLayout(8, 8, [
|
|
3502
3507
|
[0, 0, 3, 3],
|
|
3503
3508
|
[3, 0, 5, 2],
|
|
3504
3509
|
[5, 0, 7, 2]
|
|
@@ -3508,81 +3513,85 @@ const Ml = /* @__PURE__ */ oe(Sl, [["render", kl], ["__scopeId", "data-v-f8b5186
|
|
|
3508
3513
|
Me(
|
|
3509
3514
|
() => e.layouts,
|
|
3510
3515
|
() => {
|
|
3511
|
-
var p;
|
|
3512
3516
|
if (e.layouts && e.layouts.length > 0) {
|
|
3513
|
-
const
|
|
3514
|
-
|
|
3517
|
+
const g = e.layouts;
|
|
3518
|
+
o.splice(0, o.length, ...g);
|
|
3515
3519
|
}
|
|
3516
3520
|
},
|
|
3517
3521
|
{
|
|
3518
3522
|
deep: !0
|
|
3519
3523
|
}
|
|
3520
3524
|
);
|
|
3521
|
-
const
|
|
3522
|
-
let
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
+
const s = k();
|
|
3526
|
+
let a = Ne.StorageDefaultLayout.get();
|
|
3527
|
+
function r() {
|
|
3528
|
+
return a ? o.findIndex(
|
|
3529
|
+
(g) => JSON.stringify(g) == JSON.stringify(a)
|
|
3530
|
+
) >= 0 : !1;
|
|
3531
|
+
}
|
|
3532
|
+
const l = r() ? a : o[2];
|
|
3533
|
+
function i(g, w) {
|
|
3525
3534
|
return t.emit(
|
|
3526
3535
|
"LayoutChange",
|
|
3527
|
-
JSON.stringify(
|
|
3528
|
-
|
|
3536
|
+
JSON.stringify(g.layout),
|
|
3537
|
+
g,
|
|
3529
3538
|
() => {
|
|
3530
3539
|
u.value && d();
|
|
3531
3540
|
}
|
|
3532
|
-
),
|
|
3541
|
+
), g.cancel || (f.value = w), !g.cancel;
|
|
3533
3542
|
}
|
|
3534
3543
|
let c = !0;
|
|
3535
|
-
const
|
|
3536
|
-
JSON.stringify(
|
|
3537
|
-
}, f =
|
|
3538
|
-
u.value = !u.value, u.value ? window.addEventListener("click",
|
|
3539
|
-
},
|
|
3540
|
-
u.value &&
|
|
3544
|
+
const m = function(g, w) {
|
|
3545
|
+
JSON.stringify(a) != JSON.stringify(g) && i(g, w) && c && (a = g.layout, Ne.StorageDefaultLayout.set(g.layout)), f.value.length == 0 && i(g, w);
|
|
3546
|
+
}, f = k(""), u = k(!1), d = () => {
|
|
3547
|
+
u.value = !u.value, u.value ? window.addEventListener("click", p) : window.removeEventListener("click", p);
|
|
3548
|
+
}, p = (g) => {
|
|
3549
|
+
u.value && g.composedPath().findIndex(({ className: S }) => S == "layout-switcher") < 0 && (u.value = !1, window.removeEventListener("click", p));
|
|
3541
3550
|
};
|
|
3542
3551
|
return {
|
|
3543
|
-
i18nT:
|
|
3544
|
-
selectClassicalLayout: (
|
|
3545
|
-
var
|
|
3546
|
-
|
|
3547
|
-
const
|
|
3548
|
-
|
|
3552
|
+
i18nT: Te,
|
|
3553
|
+
selectClassicalLayout: (g, w, S) => {
|
|
3554
|
+
var T;
|
|
3555
|
+
S || (c = !1);
|
|
3556
|
+
const E = o.find((P) => P.row == g && P.col == w && typeof P.area > "u" && typeof P.areas > "u");
|
|
3557
|
+
E && ((T = s.value) == null || T.SelectLayoutById(JSON.stringify(E))), S = !0;
|
|
3549
3558
|
},
|
|
3550
|
-
selectLoyoutById: (
|
|
3551
|
-
var
|
|
3552
|
-
|
|
3559
|
+
selectLoyoutById: (g, w) => {
|
|
3560
|
+
var S;
|
|
3561
|
+
w || (c = !1), (S = s.value) == null || S.SelectLayoutById(g), w = !0;
|
|
3553
3562
|
},
|
|
3554
|
-
refLayoutShow:
|
|
3563
|
+
refLayoutShow: s,
|
|
3555
3564
|
clickShowSelectPanel: d,
|
|
3556
3565
|
showSelectPanel: u,
|
|
3557
|
-
onselect:
|
|
3566
|
+
onselect: m,
|
|
3558
3567
|
svgSelect: f,
|
|
3559
|
-
layout:
|
|
3568
|
+
layout: o,
|
|
3560
3569
|
defaultLayout: l
|
|
3561
3570
|
};
|
|
3562
3571
|
},
|
|
3563
3572
|
expose: ["selectLoyoutById", "selectClassicalLayout"]
|
|
3564
3573
|
});
|
|
3565
|
-
const
|
|
3566
|
-
function
|
|
3574
|
+
const Vl = { class: "layout-switcher" }, Ul = ["innerHTML"], Gl = { class: "switch-panel" }, zl = { style: { "margin-left": "10px" } }, Hl = { style: { "margin-left": "10px", padding: "10px" } }, jl = { style: { "margin-left": "10px" } };
|
|
3575
|
+
function Wl(e, t, n, o, s, a) {
|
|
3567
3576
|
const r = fe("LayoutShow");
|
|
3568
|
-
return
|
|
3569
|
-
|
|
3577
|
+
return N(), A("div", Vl, [
|
|
3578
|
+
b("div", {
|
|
3570
3579
|
onClick: t[0] || (t[0] = (...l) => e.clickShowSelectPanel && e.clickShowSelectPanel(...l)),
|
|
3571
3580
|
class: "switch-switcher"
|
|
3572
3581
|
}, [
|
|
3573
|
-
|
|
3582
|
+
b("div", {
|
|
3574
3583
|
innerHTML: e.svgSelect,
|
|
3575
3584
|
style: { height: "32px", display: "inline-block", "vertical-align": "middle", width: "32px" }
|
|
3576
|
-
}, null, 8,
|
|
3585
|
+
}, null, 8, Ul)
|
|
3577
3586
|
]),
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3587
|
+
Vn(b("div", Gl, [
|
|
3588
|
+
b("div", zl, [
|
|
3589
|
+
b("span", null, j(e.i18nT("qing-xuan-ze-bu-ju-yang-shi")), 1)
|
|
3581
3590
|
]),
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3591
|
+
b("div", Hl, [
|
|
3592
|
+
b("div", jl, [
|
|
3593
|
+
b("span", null, j(e.i18nT("biao-zhun-bu-ju")) + "\uFF1A", 1),
|
|
3594
|
+
B(r, {
|
|
3586
3595
|
ref: "refLayoutShow",
|
|
3587
3596
|
layouts: e.layout,
|
|
3588
3597
|
defaultLayout: e.defaultLayout,
|
|
@@ -3591,14 +3600,14 @@ function jl(e, t, n, o, s, a) {
|
|
|
3591
3600
|
])
|
|
3592
3601
|
])
|
|
3593
3602
|
], 512), [
|
|
3594
|
-
[
|
|
3603
|
+
[Un, e.showSelectPanel]
|
|
3595
3604
|
])
|
|
3596
3605
|
]);
|
|
3597
3606
|
}
|
|
3598
|
-
const
|
|
3607
|
+
const Bl = /* @__PURE__ */ oe(Fl, [["render", Wl], ["__scopeId", "data-v-1b358304"]]), Yl = {
|
|
3599
3608
|
key: 0,
|
|
3600
3609
|
class: "layout-display"
|
|
3601
|
-
},
|
|
3610
|
+
}, Kl = ["innerHTML"], Xl = { style: { display: "inline-block", height: "32px", width: "20px", "line-height": "32px", "vertical-align": "top" } }, Jl = /* @__PURE__ */ Q({
|
|
3602
3611
|
__name: "layoutDisplay",
|
|
3603
3612
|
props: {
|
|
3604
3613
|
layout: {
|
|
@@ -3625,118 +3634,132 @@ const zl = /* @__PURE__ */ oe(Rl, [["render", jl], ["__scopeId", "data-v-6348e5e
|
|
|
3625
3634
|
});
|
|
3626
3635
|
return (s, a) => {
|
|
3627
3636
|
var r;
|
|
3628
|
-
return le(o) ? (
|
|
3629
|
-
|
|
3637
|
+
return le(o) ? (N(), A("div", Yl, [
|
|
3638
|
+
b("span", {
|
|
3630
3639
|
innerHTML: (r = le(o)) == null ? void 0 : r.svg,
|
|
3631
3640
|
style: { display: "inline-block", height: "32px", width: "32px", "line-height": "32px", "background-color": "rgb(201, 201, 201)" }
|
|
3632
|
-
}, null, 8,
|
|
3633
|
-
|
|
3641
|
+
}, null, 8, Kl),
|
|
3642
|
+
b("span", Xl, j(n(le(o).frams.length)), 1)
|
|
3634
3643
|
])) : pe("", !0);
|
|
3635
3644
|
};
|
|
3636
3645
|
}
|
|
3637
3646
|
});
|
|
3638
|
-
const
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3647
|
+
const $o = /* @__PURE__ */ oe(Jl, [["__scopeId", "data-v-4e937302"]]);
|
|
3648
|
+
var Ql = Object.defineProperty, ql = Object.defineProperties, Zl = Object.getOwnPropertyDescriptors, Dn = Object.getOwnPropertySymbols, ei = Object.prototype.hasOwnProperty, ti = Object.prototype.propertyIsEnumerable, Pn = (e, t, n) => t in e ? Ql(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ni = (e, t) => {
|
|
3649
|
+
for (var n in t || (t = {}))
|
|
3650
|
+
ei.call(t, n) && Pn(e, n, t[n]);
|
|
3651
|
+
if (Dn)
|
|
3652
|
+
for (var n of Dn(t))
|
|
3653
|
+
ti.call(t, n) && Pn(e, n, t[n]);
|
|
3654
|
+
return e;
|
|
3655
|
+
}, oi = (e, t) => ql(e, Zl(t));
|
|
3656
|
+
const Je = [
|
|
3657
|
+
I.Test.genLayout(1, 1),
|
|
3658
|
+
I.Test.genLayout(1, 2),
|
|
3659
|
+
I.Test.genLayout(2, 2),
|
|
3660
|
+
I.Test.genLayout(2, 3),
|
|
3661
|
+
I.genLayout(3, 3, [
|
|
3644
3662
|
[0, 0, 2, 2],
|
|
3645
3663
|
[2, 0, 3, 2]
|
|
3646
3664
|
]),
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3665
|
+
I.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3666
|
+
I.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3667
|
+
I.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3668
|
+
I.Test.genLayout(3, 3),
|
|
3669
|
+
I.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3670
|
+
I.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3671
|
+
I.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3672
|
+
I.Test.genLayout(4, 4),
|
|
3673
|
+
I.Test.genLayout(5, 5),
|
|
3674
|
+
I.Test.genLayout(6, 6),
|
|
3675
|
+
I.genLayout(8, 8, [
|
|
3658
3676
|
[0, 0, 3, 3],
|
|
3659
3677
|
[3, 0, 5, 2],
|
|
3660
3678
|
[5, 0, 7, 2]
|
|
3661
3679
|
])
|
|
3662
|
-
],
|
|
3680
|
+
], si = /* @__PURE__ */ Q({
|
|
3663
3681
|
__name: "preLayout",
|
|
3682
|
+
props: {
|
|
3683
|
+
zIndexModal: {
|
|
3684
|
+
type: Number
|
|
3685
|
+
}
|
|
3686
|
+
},
|
|
3664
3687
|
setup(e) {
|
|
3665
|
-
const t =
|
|
3688
|
+
const t = e, n = k(!1), o = Oe({
|
|
3666
3689
|
top: "",
|
|
3667
3690
|
left: ""
|
|
3668
3691
|
});
|
|
3669
|
-
|
|
3692
|
+
xe(() => {
|
|
3670
3693
|
});
|
|
3671
|
-
let
|
|
3672
|
-
function
|
|
3673
|
-
|
|
3694
|
+
let s;
|
|
3695
|
+
function a(f) {
|
|
3696
|
+
s == null || s(f);
|
|
3674
3697
|
}
|
|
3675
|
-
function
|
|
3676
|
-
|
|
3698
|
+
function r() {
|
|
3699
|
+
n.value = !1, window.document.removeEventListener("click", r);
|
|
3677
3700
|
}
|
|
3678
|
-
function
|
|
3679
|
-
window.document.removeEventListener("click",
|
|
3680
|
-
window.document.addEventListener("click",
|
|
3701
|
+
function l(f, u) {
|
|
3702
|
+
window.document.removeEventListener("click", r), s = u, n.value = !0, o.left = `${f.x}px`, o.top = `${f.y}px`, setTimeout(() => {
|
|
3703
|
+
window.document.addEventListener("click", r);
|
|
3681
3704
|
}, 50);
|
|
3682
3705
|
}
|
|
3683
|
-
const
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3706
|
+
const i = Oe([
|
|
3707
|
+
I.Test.genLayout(1, 1),
|
|
3708
|
+
I.Test.genLayout(1, 2),
|
|
3709
|
+
I.Test.genLayout(2, 2),
|
|
3710
|
+
I.Test.genLayout(2, 3),
|
|
3711
|
+
I.genLayout(3, 3, [
|
|
3689
3712
|
[0, 0, 2, 2],
|
|
3690
3713
|
[2, 0, 3, 2]
|
|
3691
3714
|
]),
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3715
|
+
I.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3716
|
+
I.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3717
|
+
I.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
3718
|
+
I.Test.genLayout(3, 3),
|
|
3719
|
+
I.Test.genLayout(5, 5, [0, 0, 4, 4]),
|
|
3720
|
+
I.Test.genLayout(6, 6, [0, 0, 5, 5]),
|
|
3721
|
+
I.Test.genLayout(4, 4, [1, 1, 3, 3]),
|
|
3722
|
+
I.Test.genLayout(4, 4),
|
|
3723
|
+
I.Test.genLayout(5, 5),
|
|
3724
|
+
I.Test.genLayout(6, 6),
|
|
3725
|
+
I.genLayout(8, 8, [
|
|
3703
3726
|
[0, 0, 3, 3],
|
|
3704
3727
|
[3, 0, 5, 2],
|
|
3705
3728
|
[5, 0, 7, 2]
|
|
3706
3729
|
])
|
|
3707
|
-
]),
|
|
3708
|
-
layout:
|
|
3709
|
-
}))),
|
|
3730
|
+
]), c = U(() => i.map((f) => ({
|
|
3731
|
+
layout: f
|
|
3732
|
+
}))), m = document.body;
|
|
3710
3733
|
return ot(() => {
|
|
3711
|
-
window.document.removeEventListener("click",
|
|
3712
|
-
}), (
|
|
3713
|
-
(
|
|
3714
|
-
|
|
3734
|
+
window.document.removeEventListener("click", r);
|
|
3735
|
+
}), (f, u) => (N(), A(ue, null, [
|
|
3736
|
+
(N(), Re(zn, { to: le(m) }, [
|
|
3737
|
+
n.value ? (N(), A("div", {
|
|
3715
3738
|
key: 0,
|
|
3716
|
-
style: _e([{ width: "330px", position: "absolute", "background-color": "white", "padding-left": "25px", border: "1px solid", "padding-top": "20px", "padding-bottom": "20px", "border-radius": "5px" },
|
|
3717
|
-
onClick:
|
|
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(ni({}, o), { zIndex: t.zIndexModal })]),
|
|
3740
|
+
onClick: u[0] || (u[0] = (d) => d.stopPropagation())
|
|
3718
3741
|
}, [
|
|
3719
|
-
(
|
|
3720
|
-
key:
|
|
3742
|
+
(N(!0), A(ue, null, Ee(le(c), (d, p) => (N(), A("span", {
|
|
3743
|
+
key: p,
|
|
3721
3744
|
class: "layout-panel-item-container",
|
|
3722
3745
|
style: { border: "1px solid" }
|
|
3723
3746
|
}, [
|
|
3724
|
-
|
|
3725
|
-
layout:
|
|
3726
|
-
onClick: (
|
|
3747
|
+
B($o, {
|
|
3748
|
+
layout: d.layout,
|
|
3749
|
+
onClick: (v) => a(d.layout)
|
|
3727
3750
|
}, null, 8, ["layout", "onClick"])
|
|
3728
3751
|
]))), 128))
|
|
3729
3752
|
], 4)) : pe("", !0)
|
|
3730
3753
|
], 8, ["to"])),
|
|
3731
|
-
|
|
3754
|
+
K(f.$slots, "default", { addPreSetLayout: l }, void 0, !0)
|
|
3732
3755
|
], 64));
|
|
3733
3756
|
}
|
|
3734
3757
|
});
|
|
3735
|
-
const
|
|
3758
|
+
const ri = /* @__PURE__ */ oe(si, [["__scopeId", "data-v-954fc7ec"]]), ai = {
|
|
3736
3759
|
key: 0,
|
|
3737
3760
|
style: { position: "relative" },
|
|
3738
3761
|
class: "layout-container"
|
|
3739
|
-
},
|
|
3762
|
+
}, li = { key: 1 }, ii = /* @__PURE__ */ Q({
|
|
3740
3763
|
__name: "layoutSelector",
|
|
3741
3764
|
props: {
|
|
3742
3765
|
row: {
|
|
@@ -3768,18 +3791,18 @@ const Jl = /* @__PURE__ */ oe(Xl, [["__scopeId", "data-v-2366cec9"]]), Ql = {
|
|
|
3768
3791
|
function r(f) {
|
|
3769
3792
|
n("addCustom", f, a);
|
|
3770
3793
|
}
|
|
3771
|
-
const l =
|
|
3794
|
+
const l = k();
|
|
3772
3795
|
function i(f) {
|
|
3773
3796
|
l.value = f;
|
|
3774
3797
|
}
|
|
3775
3798
|
function c() {
|
|
3776
3799
|
l.value = void 0;
|
|
3777
3800
|
}
|
|
3778
|
-
function
|
|
3801
|
+
function m(f) {
|
|
3779
3802
|
n("addPreset", f, i, { row: o.row, col: o.col });
|
|
3780
3803
|
}
|
|
3781
|
-
return
|
|
3782
|
-
o.layout ? l.value = o.layout : typeof o.index == "number" && o.index < Je.length && (l.value = Je[o.index]);
|
|
3804
|
+
return xe(() => {
|
|
3805
|
+
o.layout ? o.layout == I.zeroLayout ? l.value = void 0 : l.value = o.layout : typeof o.index == "number" && o.index < Je.length && (l.value = Je[o.index]);
|
|
3783
3806
|
}), Me(
|
|
3784
3807
|
() => o.index,
|
|
3785
3808
|
() => {
|
|
@@ -3796,33 +3819,34 @@ const Jl = /* @__PURE__ */ oe(Xl, [["__scopeId", "data-v-2366cec9"]]), Ql = {
|
|
|
3796
3819
|
}
|
|
3797
3820
|
};
|
|
3798
3821
|
}
|
|
3799
|
-
}), (f, u) => l.value ? (
|
|
3800
|
-
|
|
3801
|
-
|
|
3822
|
+
}), (f, u) => l.value ? (N(), A("div", ai, [
|
|
3823
|
+
B($o, { layout: l.value }, null, 8, ["layout"]),
|
|
3824
|
+
b("div", {
|
|
3802
3825
|
class: "close-btn",
|
|
3803
3826
|
onClick: u[0] || (u[0] = (d) => c())
|
|
3804
3827
|
}, [
|
|
3805
|
-
|
|
3828
|
+
b("span", {
|
|
3806
3829
|
innerHTML: s,
|
|
3807
3830
|
class: "close-svg"
|
|
3808
3831
|
})
|
|
3809
3832
|
])
|
|
3810
|
-
])) : (
|
|
3811
|
-
|
|
3812
|
-
|
|
3833
|
+
])) : (N(), A("div", li, [
|
|
3834
|
+
b("div", null, [
|
|
3835
|
+
b("div", {
|
|
3813
3836
|
class: "options",
|
|
3814
|
-
style: { "margin-bottom": "1px" },
|
|
3815
|
-
onClick: u[1] || (u[1] = (d) =>
|
|
3816
|
-
},
|
|
3817
|
-
|
|
3837
|
+
style: { "margin-bottom": "1px", "line-height": "18px", height: "18px" },
|
|
3838
|
+
onClick: u[1] || (u[1] = (d) => m(d))
|
|
3839
|
+
}, j(le(Te)("yu-she")), 1),
|
|
3840
|
+
b("div", {
|
|
3818
3841
|
class: "options",
|
|
3819
|
-
onClick: u[2] || (u[2] = (d) => r(d))
|
|
3820
|
-
|
|
3842
|
+
onClick: u[2] || (u[2] = (d) => r(d)),
|
|
3843
|
+
style: { "line-height": "19px", height: "19px" }
|
|
3844
|
+
}, j(le(Te)("zi-ding-yi")), 1)
|
|
3821
3845
|
])
|
|
3822
3846
|
]));
|
|
3823
3847
|
}
|
|
3824
3848
|
});
|
|
3825
|
-
const
|
|
3849
|
+
const ci = /* @__PURE__ */ oe(ii, [["__scopeId", "data-v-74c8042d"]]), ui = { style: { height: "100%", width: "100%", position: "relative", padding: "5px", border: "1px solid", "border-radius": "5px", "background-color": "white" } }, di = { style: { height: "40px" } }, fi = { style: { display: "inline-block", width: "150px", "margin-left": "30px" } }, _i = { style: { display: "inline-block", width: "40px" } }, mi = { style: { display: "inline-block", width: "20px" } }, pi = { style: { display: "inline-block", width: "150px" } }, gi = { style: { display: "inline-block", width: "40px" } }, hi = { style: { display: "inline-block", width: "20px" } }, vi = { style: { height: "calc(100% - 60px)", width: "calc(100% - 60px)", "margin-left": "30px", position: "relative" } }, yi = ["onMousemove", "onMousedown"], Ei = { style: { "text-align": "center", color: "white", "font-size": "48px", "margin-left": "20px", "margin-top": "20px" } }, wi = ["onClick"], bi = /* @__PURE__ */ Q({
|
|
3826
3850
|
__name: "index",
|
|
3827
3851
|
props: {
|
|
3828
3852
|
row: {
|
|
@@ -3845,7 +3869,7 @@ const ei = /* @__PURE__ */ oe(Zl, [["__scopeId", "data-v-e67bc3bb"]]), ti = { st
|
|
|
3845
3869
|
setup(e, { expose: t, emit: n }) {
|
|
3846
3870
|
const o = e, s = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="black" d="M24 2.4L21.6 0L12 9.6L2.4 0L0 2.4L9.6 12L0 21.6L2.4 24l9.6-9.6l9.6 9.6l2.4-2.4l-9.6-9.6z"/></svg>', a = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 1200 1200"><path fill="#539d65" d="m1004.237 99.152l-611.44 611.441l-198.305-198.305L0 706.779l198.305 198.306l195.762 195.763L588.56 906.355L1200 294.916z"/></svg>';
|
|
3847
3871
|
function r(O) {
|
|
3848
|
-
|
|
3872
|
+
p.splice(O, 1), $();
|
|
3849
3873
|
}
|
|
3850
3874
|
function l() {
|
|
3851
3875
|
n("ApplyLayoutCustom", Z());
|
|
@@ -3858,7 +3882,7 @@ const ei = /* @__PURE__ */ oe(Zl, [["__scopeId", "data-v-e67bc3bb"]]), ti = { st
|
|
|
3858
3882
|
var O;
|
|
3859
3883
|
o.row > 2 && d.value.row < o.row && ((O = o.updataLayoutInfo) == null || O.call(o, o.row - 1, o.col));
|
|
3860
3884
|
}
|
|
3861
|
-
function
|
|
3885
|
+
function m() {
|
|
3862
3886
|
var O;
|
|
3863
3887
|
o.col < 10 && ((O = o.updataLayoutInfo) == null || O.call(o, o.row, o.col + 1));
|
|
3864
3888
|
}
|
|
@@ -3866,14 +3890,14 @@ const ei = /* @__PURE__ */ oe(Zl, [["__scopeId", "data-v-e67bc3bb"]]), ti = { st
|
|
|
3866
3890
|
var O;
|
|
3867
3891
|
o.col > 2 && d.value.col < o.col && ((O = o.updataLayoutInfo) == null || O.call(o, o.row, o.col - 1));
|
|
3868
3892
|
}
|
|
3869
|
-
const u = U(() =>
|
|
3870
|
-
col: Math.max(...
|
|
3871
|
-
row: Math.max(...
|
|
3872
|
-
})),
|
|
3893
|
+
const u = U(() => I.genLayout(o.row, o.col)), d = U(() => ({
|
|
3894
|
+
col: Math.max(...p.map((O) => O.area.colsMax)),
|
|
3895
|
+
row: Math.max(...p.map((O) => O.area.rowsMax))
|
|
3896
|
+
})), p = Oe(new Array()), v = ["green", "red", "blue"];
|
|
3873
3897
|
function y() {
|
|
3874
|
-
return v[
|
|
3898
|
+
return v[p.length % v.length];
|
|
3875
3899
|
}
|
|
3876
|
-
const
|
|
3900
|
+
const g = 0.125, w = U(() => {
|
|
3877
3901
|
if (D.first && D.last) {
|
|
3878
3902
|
const O = {
|
|
3879
3903
|
colsMin: Math.min(D.first.colsMin, D.last.colsMin),
|
|
@@ -3883,43 +3907,43 @@ const ei = /* @__PURE__ */ oe(Zl, [["__scopeId", "data-v-e67bc3bb"]]), ti = { st
|
|
|
3883
3907
|
}, C = y();
|
|
3884
3908
|
return {
|
|
3885
3909
|
infoGetter() {
|
|
3886
|
-
const V = (O.colsMax - O.colsMin) / u.value.col * 100,
|
|
3910
|
+
const V = (O.colsMax - O.colsMin) / u.value.col * 100, be = (O.rowsMax - O.rowsMin) / u.value.row * 100, Ce = V / 100 * u.value.col, ve = be / 100 * u.value.row;
|
|
3887
3911
|
return {
|
|
3888
3912
|
style: {
|
|
3889
|
-
left: `calc(${(O.colsMin +
|
|
3890
|
-
top: `calc(${(O.rowsMin +
|
|
3891
|
-
width: `calc(${V -
|
|
3892
|
-
height: `calc(${
|
|
3913
|
+
left: `calc(${(O.colsMin + g) / u.value.col * 100}%)`,
|
|
3914
|
+
top: `calc(${(O.rowsMin + g) / u.value.row * 100}% `,
|
|
3915
|
+
width: `calc(${V - g * 2 / u.value.col * 100}% )`,
|
|
3916
|
+
height: `calc(${be - g * 2 / u.value.row * 100}%)`,
|
|
3893
3917
|
backgroundColor: C
|
|
3894
3918
|
},
|
|
3895
|
-
areaCount:
|
|
3919
|
+
areaCount: Ce * ve
|
|
3896
3920
|
};
|
|
3897
3921
|
},
|
|
3898
3922
|
area: O
|
|
3899
3923
|
};
|
|
3900
3924
|
}
|
|
3901
3925
|
});
|
|
3902
|
-
function
|
|
3903
|
-
const [C,
|
|
3904
|
-
return Array.from({ length:
|
|
3926
|
+
function S(O) {
|
|
3927
|
+
const [C, x] = [O.colsMin, O.colsMax], [V, be] = [O.rowsMin, O.rowsMax], Ce = [];
|
|
3928
|
+
return Array.from({ length: x - C }).map((ve, Ve) => {
|
|
3905
3929
|
const ct = `${Ve + C}-${Ve + C + 1}`;
|
|
3906
|
-
Array.from({ length:
|
|
3930
|
+
Array.from({ length: be - V }).map((Vt, Ye) => {
|
|
3907
3931
|
const ut = `${Ye + V}-${Ye + V + 1}`;
|
|
3908
|
-
|
|
3932
|
+
Ce.push(`${ct}|${ut}`);
|
|
3909
3933
|
});
|
|
3910
|
-
}),
|
|
3934
|
+
}), Ce;
|
|
3911
3935
|
}
|
|
3912
|
-
function
|
|
3913
|
-
return
|
|
3936
|
+
function T(O, C) {
|
|
3937
|
+
return S(O).findIndex((x) => S(C).findIndex((V) => x == V) >= 0) >= 0;
|
|
3914
3938
|
}
|
|
3915
|
-
function
|
|
3916
|
-
const
|
|
3939
|
+
function E(O, C) {
|
|
3940
|
+
const x = {
|
|
3917
3941
|
colsMin: Math.min(O.colsMin, C.colsMin),
|
|
3918
3942
|
colsMax: Math.max(O.colsMax, C.colsMax),
|
|
3919
3943
|
rowsMin: Math.min(O.rowsMin, C.rowsMin),
|
|
3920
3944
|
rowsMax: Math.max(O.rowsMax, C.rowsMax)
|
|
3921
3945
|
};
|
|
3922
|
-
return
|
|
3946
|
+
return p.findIndex((V) => T(x, V.area)) >= 0;
|
|
3923
3947
|
}
|
|
3924
3948
|
function P(O) {
|
|
3925
3949
|
const C = {
|
|
@@ -3928,10 +3952,10 @@ const ei = /* @__PURE__ */ oe(Zl, [["__scopeId", "data-v-e67bc3bb"]]), ti = { st
|
|
|
3928
3952
|
rowsMin: O.row,
|
|
3929
3953
|
rowsMax: O.row + O.h
|
|
3930
3954
|
};
|
|
3931
|
-
!D.first &&
|
|
3932
|
-
(
|
|
3955
|
+
!D.first && E(C, C) || (D.first || (D.first = C), !E(D.first, C) && (D.last && Object.keys(C).findIndex(
|
|
3956
|
+
(x) => {
|
|
3933
3957
|
var V;
|
|
3934
|
-
return ((V = D.last) == null ? void 0 : V[
|
|
3958
|
+
return ((V = D.last) == null ? void 0 : V[x]) != C[x];
|
|
3935
3959
|
}
|
|
3936
3960
|
) < 0 || (D.last = C)));
|
|
3937
3961
|
}
|
|
@@ -3943,29 +3967,29 @@ const ei = /* @__PURE__ */ oe(Zl, [["__scopeId", "data-v-e67bc3bb"]]), ti = { st
|
|
|
3943
3967
|
O.buttons && P(C);
|
|
3944
3968
|
}
|
|
3945
3969
|
function q() {
|
|
3946
|
-
if (
|
|
3947
|
-
const O =
|
|
3970
|
+
if (w.value) {
|
|
3971
|
+
const O = w.value;
|
|
3948
3972
|
if (O && O.infoGetter().areaCount > 1) {
|
|
3949
|
-
|
|
3950
|
-
const C =
|
|
3951
|
-
|
|
3973
|
+
p.push(O);
|
|
3974
|
+
const C = p.sort((x, V) => (x.area.rowsMin - V.area.rowsMin) * 1e3 + x.area.colsMin - V.area.colsMin);
|
|
3975
|
+
p.splice(0, p.length, ...C);
|
|
3952
3976
|
}
|
|
3953
3977
|
$();
|
|
3954
3978
|
}
|
|
3955
3979
|
}
|
|
3956
|
-
|
|
3980
|
+
xe(() => {
|
|
3957
3981
|
window.document.addEventListener("mouseup", q);
|
|
3958
3982
|
}), ot(() => {
|
|
3959
3983
|
window.document.removeEventListener("mouseup", q);
|
|
3960
3984
|
});
|
|
3961
3985
|
function Z() {
|
|
3962
|
-
const O =
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3986
|
+
const O = p.map((x) => [
|
|
3987
|
+
x.area.colsMin,
|
|
3988
|
+
x.area.rowsMin,
|
|
3989
|
+
x.area.colsMax,
|
|
3990
|
+
x.area.rowsMax
|
|
3967
3991
|
]);
|
|
3968
|
-
return
|
|
3992
|
+
return I.genLayout(
|
|
3969
3993
|
u.value.row,
|
|
3970
3994
|
u.value.col,
|
|
3971
3995
|
O
|
|
@@ -3973,158 +3997,166 @@ const ei = /* @__PURE__ */ oe(Zl, [["__scopeId", "data-v-e67bc3bb"]]), ti = { st
|
|
|
3973
3997
|
}
|
|
3974
3998
|
return t({
|
|
3975
3999
|
getLayout: Z
|
|
3976
|
-
}), (O, C) => (
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
onClick: C[0] || (C[0] = (
|
|
4000
|
+
}), (O, C) => (N(), A("div", ui, [
|
|
4001
|
+
b("div", di, [
|
|
4002
|
+
b("div", fi, [
|
|
4003
|
+
b("span", _i, j(le(Te)("hang-shu")), 1),
|
|
4004
|
+
b("span", mi, j(o.row), 1),
|
|
4005
|
+
b("button", {
|
|
4006
|
+
onClick: C[0] || (C[0] = (x) => i()),
|
|
3983
4007
|
style: { cursor: "pointer" }
|
|
3984
4008
|
}, "+"),
|
|
3985
|
-
|
|
4009
|
+
b("button", {
|
|
3986
4010
|
style: { "margin-left": "2px", cursor: "pointer" },
|
|
3987
|
-
onClick: C[1] || (C[1] = (
|
|
4011
|
+
onClick: C[1] || (C[1] = (x) => c())
|
|
3988
4012
|
}, " - ")
|
|
3989
4013
|
]),
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
onClick: C[2] || (C[2] = (
|
|
4014
|
+
b("div", pi, [
|
|
4015
|
+
b("span", gi, j(le(Te)("lie-shu")), 1),
|
|
4016
|
+
b("span", hi, j(o.col), 1),
|
|
4017
|
+
b("button", {
|
|
4018
|
+
onClick: C[2] || (C[2] = (x) => m()),
|
|
3995
4019
|
style: { cursor: "pointer" }
|
|
3996
4020
|
}, "+"),
|
|
3997
|
-
|
|
3998
|
-
onClick: C[3] || (C[3] = (
|
|
4021
|
+
b("button", {
|
|
4022
|
+
onClick: C[3] || (C[3] = (x) => f()),
|
|
3999
4023
|
style: { "margin-left": "2px", cursor: "pointer" }
|
|
4000
4024
|
}, " - ")
|
|
4001
4025
|
]),
|
|
4002
|
-
|
|
4026
|
+
b("button", {
|
|
4003
4027
|
style: { cursor: "pointer", position: "absolute", right: "10px" },
|
|
4004
|
-
onClick: C[4] || (C[4] = (
|
|
4028
|
+
onClick: C[4] || (C[4] = (x) => l())
|
|
4005
4029
|
}, [
|
|
4006
|
-
|
|
4030
|
+
b("span", { innerHTML: a })
|
|
4007
4031
|
])
|
|
4008
4032
|
]),
|
|
4009
|
-
|
|
4010
|
-
|
|
4033
|
+
b("div", vi, [
|
|
4034
|
+
B(Ft, {
|
|
4011
4035
|
layout: le(u),
|
|
4012
4036
|
class: "area-layout"
|
|
4013
4037
|
}, {
|
|
4014
|
-
default: te((
|
|
4015
|
-
|
|
4038
|
+
default: te((x) => [
|
|
4039
|
+
b("div", {
|
|
4016
4040
|
class: "area-item",
|
|
4017
|
-
onMousemove: (V) => X(V,
|
|
4018
|
-
onMousedown: (V) => X(V,
|
|
4019
|
-
},
|
|
4041
|
+
onMousemove: (V) => X(V, x),
|
|
4042
|
+
onMousedown: (V) => X(V, x)
|
|
4043
|
+
}, j(x.id), 41, yi)
|
|
4020
4044
|
]),
|
|
4021
4045
|
_: 1
|
|
4022
4046
|
}, 8, ["layout"]),
|
|
4023
|
-
le(
|
|
4047
|
+
le(w) ? (N(), A("div", {
|
|
4024
4048
|
key: 0,
|
|
4025
|
-
style: _e(le(
|
|
4049
|
+
style: _e(le(w).infoGetter().style),
|
|
4026
4050
|
class: "current-area"
|
|
4027
4051
|
}, null, 4)) : pe("", !0),
|
|
4028
|
-
(
|
|
4029
|
-
style: _e([
|
|
4052
|
+
(N(!0), A(ue, null, Ee(p, (x, V) => (N(), A("div", {
|
|
4053
|
+
style: _e([x.infoGetter().style, {}]),
|
|
4030
4054
|
class: "current-area"
|
|
4031
4055
|
}, [
|
|
4032
|
-
|
|
4033
|
-
|
|
4056
|
+
b("span", Ei, j(V + 1), 1),
|
|
4057
|
+
b("span", {
|
|
4034
4058
|
class: "close-svg",
|
|
4035
4059
|
innerHTML: s,
|
|
4036
|
-
onClick: (
|
|
4037
|
-
}, null, 8,
|
|
4060
|
+
onClick: (be) => r(V)
|
|
4061
|
+
}, null, 8, wi)
|
|
4038
4062
|
], 4))), 256))
|
|
4039
4063
|
])
|
|
4040
4064
|
]));
|
|
4041
4065
|
}
|
|
4042
4066
|
});
|
|
4043
|
-
const
|
|
4044
|
-
var
|
|
4067
|
+
const Li = /* @__PURE__ */ oe(bi, [["__scopeId", "data-v-dc80afb8"]]);
|
|
4068
|
+
var Oi = Object.defineProperty, Ii = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, $n = Object.getOwnPropertySymbols, Ni = Object.prototype.hasOwnProperty, Si = Object.prototype.propertyIsEnumerable, Mn = (e, t, n) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ci = (e, t) => {
|
|
4045
4069
|
for (var n in t || (t = {}))
|
|
4046
|
-
|
|
4047
|
-
if (
|
|
4048
|
-
for (var n of
|
|
4049
|
-
|
|
4070
|
+
Ni.call(t, n) && Mn(e, n, t[n]);
|
|
4071
|
+
if ($n)
|
|
4072
|
+
for (var n of $n(t))
|
|
4073
|
+
Si.call(t, n) && Mn(e, n, t[n]);
|
|
4050
4074
|
return e;
|
|
4051
|
-
};
|
|
4052
|
-
const
|
|
4075
|
+
}, Ai = (e, t) => Ii(e, Ti(t));
|
|
4076
|
+
const Di = /* @__PURE__ */ Q({
|
|
4053
4077
|
__name: "layout-custom-editor",
|
|
4078
|
+
props: {
|
|
4079
|
+
zIndexModal: {
|
|
4080
|
+
type: Number
|
|
4081
|
+
}
|
|
4082
|
+
},
|
|
4054
4083
|
setup(e) {
|
|
4055
|
-
const t =
|
|
4056
|
-
function
|
|
4057
|
-
|
|
4084
|
+
const t = e, n = k();
|
|
4085
|
+
function o(u, d) {
|
|
4086
|
+
a.row = u, a.col = d;
|
|
4058
4087
|
}
|
|
4059
|
-
function
|
|
4060
|
-
|
|
4088
|
+
function s(u) {
|
|
4089
|
+
r == null || r(u);
|
|
4061
4090
|
}
|
|
4062
|
-
const
|
|
4091
|
+
const a = Oe({
|
|
4063
4092
|
row: 5,
|
|
4064
4093
|
col: 4
|
|
4065
4094
|
});
|
|
4066
|
-
let
|
|
4067
|
-
function
|
|
4068
|
-
|
|
4095
|
+
let r;
|
|
4096
|
+
function l() {
|
|
4097
|
+
f.value = !1, window.document.removeEventListener("click", l);
|
|
4069
4098
|
}
|
|
4070
|
-
const
|
|
4099
|
+
const i = U(() => c.value ? {
|
|
4071
4100
|
position: "absolute",
|
|
4072
|
-
top: `${
|
|
4073
|
-
left: `${
|
|
4074
|
-
height: `${
|
|
4075
|
-
width: `${
|
|
4076
|
-
} : {}),
|
|
4077
|
-
function
|
|
4078
|
-
window.document.removeEventListener("click",
|
|
4079
|
-
window.document.addEventListener("click",
|
|
4101
|
+
top: `${c.value.y}px`,
|
|
4102
|
+
left: `${c.value.x}px`,
|
|
4103
|
+
height: `${a.row * 50 + 60}px`,
|
|
4104
|
+
width: `${a.col * 80 + 60}px`
|
|
4105
|
+
} : {}), c = k();
|
|
4106
|
+
function m(u, d) {
|
|
4107
|
+
window.document.removeEventListener("click", l), r = d, c.value = u, f.value = !0, setTimeout(() => {
|
|
4108
|
+
window.document.addEventListener("click", l);
|
|
4080
4109
|
}, 50);
|
|
4081
4110
|
}
|
|
4082
|
-
const
|
|
4083
|
-
return
|
|
4084
|
-
|
|
4111
|
+
const f = k(!1);
|
|
4112
|
+
return xe(() => {
|
|
4113
|
+
n.value = document.body;
|
|
4085
4114
|
}), ot(() => {
|
|
4086
|
-
window.document.removeEventListener("click",
|
|
4087
|
-
}), (
|
|
4088
|
-
|
|
4115
|
+
window.document.removeEventListener("click", l);
|
|
4116
|
+
}), (u, d) => (N(), A(ue, null, [
|
|
4117
|
+
n.value ? (N(), Re(zn, {
|
|
4089
4118
|
key: 0,
|
|
4090
|
-
to:
|
|
4119
|
+
to: n.value
|
|
4091
4120
|
}, [
|
|
4092
|
-
|
|
4121
|
+
f.value ? (N(), A("div", {
|
|
4093
4122
|
key: 0,
|
|
4094
|
-
style: _e([{ "background-color": "white" },
|
|
4095
|
-
onClick:
|
|
4123
|
+
style: _e([{ "background-color": "white" }, Ai(Ci({}, le(i)), { zIndex: t.zIndexModal })]),
|
|
4124
|
+
onClick: d[0] || (d[0] = (p) => p.stopPropagation())
|
|
4096
4125
|
}, [
|
|
4097
|
-
|
|
4098
|
-
row:
|
|
4099
|
-
col:
|
|
4100
|
-
updataLayoutInfo:
|
|
4101
|
-
onApplyLayoutCustom:
|
|
4126
|
+
B(Li, {
|
|
4127
|
+
row: a.row,
|
|
4128
|
+
col: a.col,
|
|
4129
|
+
updataLayoutInfo: o,
|
|
4130
|
+
onApplyLayoutCustom: s
|
|
4102
4131
|
}, null, 8, ["row", "col"])
|
|
4103
4132
|
], 4)) : pe("", !0)
|
|
4104
4133
|
], 8, ["to"])) : pe("", !0),
|
|
4105
|
-
|
|
4134
|
+
K(u.$slots, "default", { addCustomLayoutGen: m })
|
|
4106
4135
|
], 64));
|
|
4107
4136
|
}
|
|
4108
4137
|
});
|
|
4109
|
-
var
|
|
4138
|
+
var Pi = Object.defineProperty, kn = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, Mi = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? Pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ki = (e, t) => {
|
|
4110
4139
|
for (var n in t || (t = {}))
|
|
4111
|
-
|
|
4112
|
-
if (
|
|
4113
|
-
for (var n of
|
|
4114
|
-
|
|
4140
|
+
$i.call(t, n) && xn(e, n, t[n]);
|
|
4141
|
+
if (kn)
|
|
4142
|
+
for (var n of kn(t))
|
|
4143
|
+
Mi.call(t, n) && xn(e, n, t[n]);
|
|
4115
4144
|
return e;
|
|
4116
4145
|
};
|
|
4117
|
-
const
|
|
4146
|
+
const xi = {
|
|
4118
4147
|
class: "dash-border",
|
|
4119
4148
|
style: {
|
|
4120
4149
|
width: "78px",
|
|
4121
4150
|
height: "48px"
|
|
4122
4151
|
}
|
|
4123
|
-
},
|
|
4152
|
+
}, Ri = { style: { width: "100%", height: "40px" } }, Fi = { class: "add-row-panel" }, Vi = /* @__PURE__ */ Q({
|
|
4124
4153
|
__name: "layoutGen",
|
|
4125
4154
|
props: {
|
|
4126
|
-
|
|
4155
|
+
savedLayout: {
|
|
4127
4156
|
type: Object
|
|
4157
|
+
},
|
|
4158
|
+
zIndexModal: {
|
|
4159
|
+
type: Number
|
|
4128
4160
|
}
|
|
4129
4161
|
},
|
|
4130
4162
|
setup(e, { expose: t }) {
|
|
@@ -4138,37 +4170,45 @@ const Oi = {
|
|
|
4138
4170
|
function a() {
|
|
4139
4171
|
o.row > 2 && o.row--;
|
|
4140
4172
|
}
|
|
4141
|
-
const r =
|
|
4173
|
+
const r = k([]);
|
|
4142
4174
|
t({
|
|
4143
4175
|
getLayouts() {
|
|
4144
4176
|
return {
|
|
4145
|
-
layouts: r.value.map((
|
|
4146
|
-
meta:
|
|
4177
|
+
layouts: r.value.map((m) => m.getLayout()).filter((m) => !!m),
|
|
4178
|
+
meta: ki({}, Ge(o))
|
|
4147
4179
|
};
|
|
4148
4180
|
}
|
|
4149
4181
|
});
|
|
4150
4182
|
function l(i, c) {
|
|
4151
|
-
var
|
|
4152
|
-
|
|
4153
|
-
(
|
|
4183
|
+
var m;
|
|
4184
|
+
const f = (m = n.savedLayout) == null ? void 0 : m.layouts.find(
|
|
4185
|
+
(u) => u.locatoin.col == c && u.locatoin.row == i
|
|
4154
4186
|
);
|
|
4187
|
+
if (f != null && f.layout)
|
|
4188
|
+
return f == null ? void 0 : f.layout;
|
|
4189
|
+
if (n.savedLayout)
|
|
4190
|
+
return I.zeroLayout;
|
|
4155
4191
|
}
|
|
4156
|
-
return
|
|
4157
|
-
n.
|
|
4158
|
-
}), (i, c) => (
|
|
4159
|
-
|
|
4160
|
-
|
|
4192
|
+
return xe(() => {
|
|
4193
|
+
n.savedLayout && (o.row = n.savedLayout.meta.row, o.col = n.savedLayout.meta.col);
|
|
4194
|
+
}), (i, c) => (N(), Re(Di, {
|
|
4195
|
+
zIndexModal: n.zIndexModal
|
|
4196
|
+
}, {
|
|
4197
|
+
default: te(({ addCustomLayoutGen: m }) => [
|
|
4198
|
+
B(ri, {
|
|
4199
|
+
zIndexModal: n.zIndexModal
|
|
4200
|
+
}, {
|
|
4161
4201
|
default: te(({ addPreSetLayout: f }) => [
|
|
4162
|
-
|
|
4163
|
-
|
|
4202
|
+
b("div", null, [
|
|
4203
|
+
b("div", {
|
|
4164
4204
|
style: _e([{ display: "inline-block", "vertical-align": "top" }, { width: `${80 * o.col}px` }])
|
|
4165
4205
|
}, [
|
|
4166
|
-
(
|
|
4206
|
+
(N(!0), A(ue, null, Ee(Array.from({ length: o.row }), (u, d) => (N(), A("div", {
|
|
4167
4207
|
style: _e({ width: `${80 * o.col}px` })
|
|
4168
4208
|
}, [
|
|
4169
|
-
(
|
|
4170
|
-
|
|
4171
|
-
|
|
4209
|
+
(N(!0), A(ue, null, Ee(Array.from({ length: o.col }), (p, v) => (N(), A("div", xi, [
|
|
4210
|
+
b("div", Ri, [
|
|
4211
|
+
B(ci, {
|
|
4172
4212
|
ref_for: !0,
|
|
4173
4213
|
ref_key: "layoutSelectorRefs",
|
|
4174
4214
|
ref: r,
|
|
@@ -4176,19 +4216,19 @@ const Oi = {
|
|
|
4176
4216
|
col: v,
|
|
4177
4217
|
index: o.col * d + v,
|
|
4178
4218
|
onAddPreset: f,
|
|
4179
|
-
onAddCustom:
|
|
4219
|
+
onAddCustom: m,
|
|
4180
4220
|
layout: l(d, v)
|
|
4181
4221
|
}, null, 8, ["row", "col", "index", "onAddPreset", "onAddCustom", "layout"])
|
|
4182
4222
|
])
|
|
4183
4223
|
]))), 256))
|
|
4184
4224
|
], 4))), 256)),
|
|
4185
|
-
|
|
4186
|
-
|
|
4225
|
+
b("div", Fi, [
|
|
4226
|
+
b("div", {
|
|
4187
4227
|
onClick: c[0] || (c[0] = (u) => a()),
|
|
4188
4228
|
style: { display: "inline-block", width: "calc(50% - 5px)" },
|
|
4189
4229
|
class: "add-row-panel-remove"
|
|
4190
4230
|
}, " - "),
|
|
4191
|
-
|
|
4231
|
+
b("div", {
|
|
4192
4232
|
onClick: c[1] || (c[1] = (u) => s()),
|
|
4193
4233
|
style: { display: "inline-block", width: "calc(50% - 5px)" },
|
|
4194
4234
|
class: "add-row-panel-add"
|
|
@@ -4198,56 +4238,62 @@ const Oi = {
|
|
|
4198
4238
|
])
|
|
4199
4239
|
]),
|
|
4200
4240
|
_: 2
|
|
4201
|
-
},
|
|
4241
|
+
}, 1032, ["zIndexModal"])
|
|
4202
4242
|
]),
|
|
4203
4243
|
_: 1
|
|
4204
|
-
}));
|
|
4244
|
+
}, 8, ["zIndexModal"]));
|
|
4205
4245
|
}
|
|
4206
4246
|
});
|
|
4207
|
-
const
|
|
4247
|
+
const Ui = /* @__PURE__ */ oe(Vi, [["__scopeId", "data-v-a44695f9"]]), Gi = { style: { "background-color": "white" } }, zi = /* @__PURE__ */ Q({
|
|
4208
4248
|
__name: "index",
|
|
4209
4249
|
props: {
|
|
4210
4250
|
savedLayout: {
|
|
4211
4251
|
type: Object
|
|
4252
|
+
},
|
|
4253
|
+
zIndexModal: {
|
|
4254
|
+
type: Number
|
|
4212
4255
|
}
|
|
4213
4256
|
},
|
|
4214
4257
|
setup(e, { expose: t }) {
|
|
4215
|
-
const n = e, o =
|
|
4258
|
+
const n = e, o = k();
|
|
4216
4259
|
return t({
|
|
4217
4260
|
getLayout() {
|
|
4218
4261
|
var s;
|
|
4219
4262
|
return (s = o.value) == null ? void 0 : s.getLayouts();
|
|
4220
4263
|
}
|
|
4221
|
-
}), (s, a) => (
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4264
|
+
}), (s, a) => (N(), A("div", Gi, [
|
|
4265
|
+
B(Ui, {
|
|
4266
|
+
ref_key: "refLayoutGen",
|
|
4267
|
+
ref: o,
|
|
4268
|
+
savedLayout: n.savedLayout,
|
|
4269
|
+
zIndexModal: n.zIndexModal
|
|
4270
|
+
}, null, 8, ["savedLayout", "zIndexModal"])
|
|
4271
|
+
]));
|
|
4226
4272
|
}
|
|
4227
4273
|
});
|
|
4228
|
-
const
|
|
4229
|
-
RecursionDeviceGroup:
|
|
4230
|
-
VideoAreasLayoutShow:
|
|
4231
|
-
MultiVideoAreaLayoutSwitch:
|
|
4232
|
-
VideoAreasLayoutCustom:
|
|
4233
|
-
},
|
|
4274
|
+
const Hi = /* @__PURE__ */ oe(zi, [["__scopeId", "data-v-ab800ae2"]]), Rn = {
|
|
4275
|
+
RecursionDeviceGroup: el,
|
|
4276
|
+
VideoAreasLayoutShow: Ft,
|
|
4277
|
+
MultiVideoAreaLayoutSwitch: Bl,
|
|
4278
|
+
VideoAreasLayoutCustom: Hi
|
|
4279
|
+
}, Yi = {
|
|
4234
4280
|
install(e, t) {
|
|
4235
|
-
|
|
4236
|
-
t && typeof t.locale < "u" ? t.locale :
|
|
4237
|
-
), t.deviceListDisplayStyle &&
|
|
4238
|
-
for (const n in
|
|
4239
|
-
const o =
|
|
4281
|
+
Gr(
|
|
4282
|
+
t && typeof t.locale < "u" ? t.locale : ho.en
|
|
4283
|
+
), t.deviceListDisplayStyle && zr(t.deviceListDisplayStyle);
|
|
4284
|
+
for (const n in Rn) {
|
|
4285
|
+
const o = Rn[n];
|
|
4240
4286
|
e.component(n, o);
|
|
4241
4287
|
}
|
|
4242
4288
|
}
|
|
4243
4289
|
};
|
|
4244
4290
|
export {
|
|
4245
|
-
|
|
4246
|
-
|
|
4291
|
+
vo as DeviceListNameDisplayStyle,
|
|
4292
|
+
jr as GetIsHideDeviceIdInDeviceDisplay,
|
|
4247
4293
|
pn as RecursionDeviceGroup,
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4294
|
+
zr as SetDeviceListNameDisplayStyle,
|
|
4295
|
+
Bi as SetIsHideDeviceIdInDeviceDisplay,
|
|
4296
|
+
I as VideoAreaLayout,
|
|
4297
|
+
Yi as default
|
|
4252
4298
|
};
|
|
4253
4299
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|