smarteye-e-components 0.0.49 → 0.0.50
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 +1 -1
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +286 -287
- 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 +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _e, computed as W, openBlock as P, createElementBlock as
|
|
1
|
+
import { defineComponent as _e, computed as W, openBlock as P, createElementBlock as R, renderSlot as oe, createElementVNode as C, toDisplayString as ue, h as $e, ref as x, watch as Me, normalizeStyle as Le, Fragment as Oe, renderList as Ce, inject as fn, resolveComponent as ie, normalizeClass as Xe, createVNode as se, withCtx as ce, createCommentVNode as Be, createBlock as _n, getCurrentInstance as it, effectScope as bo, onMounted as To, onUnmounted as yo, isRef as Lo, Text as Io, provide as So, withDirectives as wo, vShow as Do, pushScopeId as Co, popScopeId as Ao } from "vue";
|
|
2
2
|
var bt;
|
|
3
3
|
((e) => {
|
|
4
4
|
((n) => {
|
|
@@ -196,30 +196,30 @@ const de = (e, t) => {
|
|
|
196
196
|
for (const [r, o] of t)
|
|
197
197
|
n[r] = o;
|
|
198
198
|
return n;
|
|
199
|
-
},
|
|
200
|
-
function
|
|
201
|
-
return P(),
|
|
199
|
+
}, ko = { class: "root" }, Fo = { class: "count-show" };
|
|
200
|
+
function Ro(e, t, n, r, o, a) {
|
|
201
|
+
return P(), R("div", ko, [
|
|
202
202
|
oe(e.$slots, "default", {
|
|
203
203
|
total: e.totalCount,
|
|
204
204
|
online: e.onlineCount
|
|
205
205
|
}, void 0, !0),
|
|
206
|
-
C("span",
|
|
206
|
+
C("span", Fo, ue(e.onlineCount) + "/" + ue(e.totalCount), 1)
|
|
207
207
|
]);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const dn = /* @__PURE__ */ de(Po, [["render", Ro], ["__scopeId", "data-v-a063c331"]]), mn = Object.freeze(
|
|
210
210
|
{
|
|
211
211
|
left: 0,
|
|
212
212
|
top: 0,
|
|
213
213
|
width: 16,
|
|
214
214
|
height: 16
|
|
215
215
|
}
|
|
216
|
-
),
|
|
216
|
+
), gn = Object.freeze({
|
|
217
217
|
rotate: 0,
|
|
218
218
|
vFlip: !1,
|
|
219
219
|
hFlip: !1
|
|
220
220
|
}), ct = Object.freeze({
|
|
221
|
-
...
|
|
222
|
-
...
|
|
221
|
+
...mn,
|
|
222
|
+
...gn
|
|
223
223
|
});
|
|
224
224
|
Object.freeze({
|
|
225
225
|
...ct,
|
|
@@ -227,14 +227,14 @@ Object.freeze({
|
|
|
227
227
|
hidden: !1
|
|
228
228
|
});
|
|
229
229
|
({
|
|
230
|
-
...
|
|
230
|
+
...mn
|
|
231
231
|
});
|
|
232
|
-
const
|
|
232
|
+
const pn = Object.freeze({
|
|
233
233
|
width: null,
|
|
234
234
|
height: null
|
|
235
|
-
}),
|
|
236
|
-
...
|
|
237
|
-
...
|
|
235
|
+
}), hn = Object.freeze({
|
|
236
|
+
...pn,
|
|
237
|
+
...gn
|
|
238
238
|
});
|
|
239
239
|
function $o(e, t) {
|
|
240
240
|
const n = {
|
|
@@ -242,7 +242,7 @@ function $o(e, t) {
|
|
|
242
242
|
};
|
|
243
243
|
for (const r in t) {
|
|
244
244
|
const o = t[r], a = typeof o;
|
|
245
|
-
r in
|
|
245
|
+
r in pn ? (o === null || o && (a === "string" || a === "number")) && (n[r] = o) : a === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
|
|
246
246
|
}
|
|
247
247
|
return n;
|
|
248
248
|
}
|
|
@@ -314,7 +314,7 @@ function Wo(e, t) {
|
|
|
314
314
|
...ct,
|
|
315
315
|
...e
|
|
316
316
|
}, r = {
|
|
317
|
-
...
|
|
317
|
+
...hn,
|
|
318
318
|
...t
|
|
319
319
|
}, o = {
|
|
320
320
|
left: n.left,
|
|
@@ -390,7 +390,7 @@ function Xo(e) {
|
|
|
390
390
|
return 'url("data:image/svg+xml,' + Ko(e) + '")';
|
|
391
391
|
}
|
|
392
392
|
const yt = {
|
|
393
|
-
...
|
|
393
|
+
...hn,
|
|
394
394
|
inline: !1
|
|
395
395
|
}, Qo = {
|
|
396
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -401,26 +401,26 @@ const yt = {
|
|
|
401
401
|
display: "inline-block"
|
|
402
402
|
}, Qe = {
|
|
403
403
|
backgroundColor: "currentColor"
|
|
404
|
-
},
|
|
404
|
+
}, vn = {
|
|
405
405
|
backgroundColor: "transparent"
|
|
406
|
-
},
|
|
406
|
+
}, Lt = {
|
|
407
407
|
Image: "var(--svg)",
|
|
408
408
|
Repeat: "no-repeat",
|
|
409
409
|
Size: "100% 100%"
|
|
410
|
-
},
|
|
410
|
+
}, It = {
|
|
411
411
|
webkitMask: Qe,
|
|
412
412
|
mask: Qe,
|
|
413
|
-
background:
|
|
413
|
+
background: vn
|
|
414
414
|
};
|
|
415
|
-
for (const e in
|
|
416
|
-
const t =
|
|
417
|
-
for (const n in
|
|
418
|
-
t[e + n] =
|
|
415
|
+
for (const e in It) {
|
|
416
|
+
const t = It[e];
|
|
417
|
+
for (const n in Lt)
|
|
418
|
+
t[e + n] = Lt[n];
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const Re = {};
|
|
421
421
|
["horizontal", "vertical"].forEach((e) => {
|
|
422
422
|
const t = e.slice(0, 1) + "Flip";
|
|
423
|
-
|
|
423
|
+
Re[e + "-flip"] = t, Re[e.slice(0, 1) + "-flip"] = t, Re[e + "Flip"] = t;
|
|
424
424
|
});
|
|
425
425
|
function St(e) {
|
|
426
426
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
@@ -455,7 +455,7 @@ const qo = (e, t) => {
|
|
|
455
455
|
E !== !0 && E !== "true" && delete r["aria-hidden"];
|
|
456
456
|
break;
|
|
457
457
|
default: {
|
|
458
|
-
const N =
|
|
458
|
+
const N = Re[O];
|
|
459
459
|
N ? (E === !0 || E === "true" || E === 1) && (n[N] = !0) : yt[O] === void 0 && (r[O] = E);
|
|
460
460
|
}
|
|
461
461
|
}
|
|
@@ -480,17 +480,17 @@ const qo = (e, t) => {
|
|
|
480
480
|
width: St(c.width),
|
|
481
481
|
height: St(c.height),
|
|
482
482
|
...Jo,
|
|
483
|
-
...g ? Qe :
|
|
483
|
+
...g ? Qe : vn,
|
|
484
484
|
...l
|
|
485
485
|
}, $e("span", r);
|
|
486
|
-
},
|
|
486
|
+
}, En = /* @__PURE__ */ Object.create(null);
|
|
487
487
|
function Ne(e, t) {
|
|
488
|
-
|
|
488
|
+
En[e] = t;
|
|
489
489
|
}
|
|
490
490
|
const Zo = _e({
|
|
491
491
|
inheritAttrs: !1,
|
|
492
492
|
render() {
|
|
493
|
-
const e = this.$attrs, t = e.icon, n = typeof t == "string" ?
|
|
493
|
+
const e = this.$attrs, t = e.icon, n = typeof t == "string" ? En[t] : typeof t == "object" ? t : null;
|
|
494
494
|
return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : qo({
|
|
495
495
|
...ct,
|
|
496
496
|
...n
|
|
@@ -566,25 +566,25 @@ const lr = {
|
|
|
566
566
|
}
|
|
567
567
|
};
|
|
568
568
|
function ir(e, t, n, r, o, a) {
|
|
569
|
-
return P(),
|
|
569
|
+
return P(), R("div", {
|
|
570
570
|
ref: "virList",
|
|
571
571
|
class: "infinite-list-container",
|
|
572
572
|
onScroll: t[0] || (t[0] = (s) => a.scrollEvent())
|
|
573
573
|
}, [
|
|
574
574
|
C("div", {
|
|
575
575
|
class: "infinite-list-phantom",
|
|
576
|
-
style:
|
|
576
|
+
style: Le({ height: e.listHeight + "px" })
|
|
577
577
|
}, null, 4),
|
|
578
578
|
C("div", {
|
|
579
579
|
class: "infinite-list",
|
|
580
|
-
style:
|
|
580
|
+
style: Le({ transform: e.getTransform })
|
|
581
581
|
}, [
|
|
582
|
-
(P(!0),
|
|
582
|
+
(P(!0), R(Oe, null, Ce(e.visibleData, (s) => (P(), R("div", {
|
|
583
583
|
ref_for: !0,
|
|
584
584
|
ref: "items",
|
|
585
585
|
class: "infinite-list-item",
|
|
586
586
|
key: s.id,
|
|
587
|
-
style:
|
|
587
|
+
style: Le({ height: n.itemSize + "px", lineHeight: n.itemSize + "px" })
|
|
588
588
|
}, [
|
|
589
589
|
oe(e.$slots, "default", { data: s }, void 0, !0)
|
|
590
590
|
], 4))), 128))
|
|
@@ -603,7 +603,7 @@ var ur = Object.defineProperty, fr = Object.defineProperties, _r = Object.getOwn
|
|
|
603
603
|
const hr = _e({
|
|
604
604
|
components: {
|
|
605
605
|
VirtualList: cr,
|
|
606
|
-
CountShow:
|
|
606
|
+
CountShow: dn,
|
|
607
607
|
Icon: Zo
|
|
608
608
|
},
|
|
609
609
|
name: "group-show",
|
|
@@ -676,11 +676,11 @@ const vr = {
|
|
|
676
676
|
}, Nr = ["title"], br = { class: "group-slot" }, Tr = {
|
|
677
677
|
key: 0,
|
|
678
678
|
style: { "margin-left": "26px" }
|
|
679
|
-
}, yr = ["title"],
|
|
680
|
-
function
|
|
679
|
+
}, yr = ["title"], Lr = { class: "device-slot" };
|
|
680
|
+
function Ir(e, t, n, r, o, a) {
|
|
681
681
|
var s;
|
|
682
682
|
const l = ie("Icon"), i = ie("CountShow"), c = ie("group-show"), u = ie("VirtualList");
|
|
683
|
-
return e.showGroup ? (P(),
|
|
683
|
+
return e.showGroup ? (P(), R("div", {
|
|
684
684
|
key: 0,
|
|
685
685
|
class: Xe("group " + e.theme)
|
|
686
686
|
}, [
|
|
@@ -692,14 +692,14 @@ function Lr(e, t, n, r, o, a) {
|
|
|
692
692
|
default: ce(({ online: _, total: d }) => {
|
|
693
693
|
var g, v;
|
|
694
694
|
return [
|
|
695
|
-
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (P(),
|
|
695
|
+
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (P(), R("span", vr, [
|
|
696
696
|
se(l, {
|
|
697
697
|
icon: e.bShow ? "minus" : "plus",
|
|
698
698
|
width: "20",
|
|
699
699
|
onClick: t[0] || (t[0] = (O) => e.bShow = !e.bShow),
|
|
700
700
|
class: "handle-ls-svg"
|
|
701
701
|
}, null, 8, ["icon"])
|
|
702
|
-
])) : (P(),
|
|
702
|
+
])) : (P(), R("span", Er)),
|
|
703
703
|
C("span", {
|
|
704
704
|
class: "group-head-db-click",
|
|
705
705
|
onDblclick: t[1] || (t[1] = (O) => e.bShow = !e.bShow)
|
|
@@ -709,7 +709,7 @@ function Lr(e, t, n, r, o, a) {
|
|
|
709
709
|
width: "24",
|
|
710
710
|
class: "group-avatar"
|
|
711
711
|
}, null, 8, ["icon"]),
|
|
712
|
-
e.bShow ? Be("", !0) : (P(),
|
|
712
|
+
e.bShow ? Be("", !0) : (P(), R("span", Or, ue((g = e.deviceGroup) == null ? void 0 : g.items.length), 1)),
|
|
713
713
|
C("span", {
|
|
714
714
|
class: "group-name",
|
|
715
715
|
title: (v = e.deviceGroup) == null ? void 0 : v.name
|
|
@@ -722,8 +722,8 @@ function Lr(e, t, n, r, o, a) {
|
|
|
722
722
|
}),
|
|
723
723
|
_: 3
|
|
724
724
|
}, 8, ["countInfo", "controlParams"]),
|
|
725
|
-
e.bShow ? (P(),
|
|
726
|
-
(P(!0),
|
|
725
|
+
e.bShow ? (P(), R("div", Tr, [
|
|
726
|
+
(P(!0), R(Oe, null, Ce((s = e.deviceGroup) == null ? void 0 : s.items, (_, d) => (P(), _n(c, {
|
|
727
727
|
key: d,
|
|
728
728
|
deviceGroup: _,
|
|
729
729
|
controlParams: e.controlParams
|
|
@@ -741,7 +741,7 @@ function Lr(e, t, n, r, o, a) {
|
|
|
741
741
|
}, 1032, ["deviceGroup", "controlParams"]))), 128)),
|
|
742
742
|
C("div", {
|
|
743
743
|
class: "device-show-div",
|
|
744
|
-
style:
|
|
744
|
+
style: Le(`height: ${e.filteredDevices.length > 10 ? "400px" : `${e.filteredDevices.length * 40}px`}`)
|
|
745
745
|
}, [
|
|
746
746
|
se(u, {
|
|
747
747
|
"list-data": e.filteredDevices,
|
|
@@ -760,7 +760,7 @@ function Lr(e, t, n, r, o, a) {
|
|
|
760
760
|
title: e.innerUtils.deviceText(_),
|
|
761
761
|
class: "device-name"
|
|
762
762
|
}, ue(e.innerUtils.deviceText(_)), 9, yr),
|
|
763
|
-
C("div",
|
|
763
|
+
C("div", Lr, [
|
|
764
764
|
oe(e.$slots, "device", {
|
|
765
765
|
device: _,
|
|
766
766
|
group: e.deviceGroup
|
|
@@ -774,7 +774,7 @@ function Lr(e, t, n, r, o, a) {
|
|
|
774
774
|
])) : Be("", !0)
|
|
775
775
|
], 2)) : Be("", !0);
|
|
776
776
|
}
|
|
777
|
-
const Sr = /* @__PURE__ */ de(hr, [["render",
|
|
777
|
+
const Sr = /* @__PURE__ */ de(hr, [["render", Ir], ["__scopeId", "data-v-93cfc8dc"]]), wr = {
|
|
778
778
|
width: 1024,
|
|
779
779
|
height: 1024,
|
|
780
780
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
@@ -794,7 +794,7 @@ const Sr = /* @__PURE__ */ de(hr, [["render", Lr], ["__scopeId", "data-v-93cfc8d
|
|
|
794
794
|
width: 1024,
|
|
795
795
|
height: 1024,
|
|
796
796
|
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"/>'
|
|
797
|
-
},
|
|
797
|
+
}, kr = {
|
|
798
798
|
width: 1024,
|
|
799
799
|
height: 1024,
|
|
800
800
|
body: '<path fill="currentColor" d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"/>'
|
|
@@ -812,32 +812,32 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
812
812
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
const
|
|
815
|
+
const Fr = /\{([0-9a-zA-Z]+)\}/g;
|
|
816
816
|
function ut(e, ...t) {
|
|
817
|
-
return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
817
|
+
return t.length === 1 && S(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Fr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
818
818
|
}
|
|
819
|
-
const
|
|
819
|
+
const Rr = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol", ne = (e) => Rr ? Symbol(e) : e, $r = (e, t, n) => Mr({ l: e, k: t, s: n }), Mr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), M = (e) => typeof e == "number" && isFinite(e), Vr = (e) => dt(e) === "[object Date]", Ve = (e) => dt(e) === "[object RegExp]", xe = (e) => y(e) && Object.keys(e).length === 0;
|
|
820
820
|
function be(e, t) {
|
|
821
821
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
822
822
|
}
|
|
823
823
|
const j = Object.assign;
|
|
824
|
-
let
|
|
825
|
-
const ft = () =>
|
|
826
|
-
function
|
|
824
|
+
let kt;
|
|
825
|
+
const ft = () => kt || (kt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
826
|
+
function Ft(e) {
|
|
827
827
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
828
828
|
}
|
|
829
829
|
const Ur = Object.prototype.hasOwnProperty;
|
|
830
830
|
function _t(e, t) {
|
|
831
831
|
return Ur.call(e, t);
|
|
832
832
|
}
|
|
833
|
-
const
|
|
833
|
+
const k = Array.isArray, $ = (e) => typeof e == "function", h = (e) => typeof e == "string", A = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", On = Object.prototype.toString, dt = (e) => On.call(e), y = (e) => dt(e) === "[object Object]", xr = (e) => e == null ? "" : k(e) || y(e) && e.toString === On ? JSON.stringify(e, null, 2) : String(e), Rt = 2;
|
|
834
834
|
function Gr(e, t = 0, n = e.length) {
|
|
835
835
|
const r = e.split(/\r?\n/);
|
|
836
836
|
let o = 0;
|
|
837
837
|
const a = [];
|
|
838
838
|
for (let s = 0; s < r.length; s++)
|
|
839
839
|
if (o += r[s].length + 1, o >= t) {
|
|
840
|
-
for (let l = s -
|
|
840
|
+
for (let l = s - Rt; l <= s + Rt || n > o; l++) {
|
|
841
841
|
if (l < 0 || l >= r.length)
|
|
842
842
|
continue;
|
|
843
843
|
const i = l + 1;
|
|
@@ -859,7 +859,7 @@ function Gr(e, t = 0, n = e.length) {
|
|
|
859
859
|
return a.join(`
|
|
860
860
|
`);
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Nn() {
|
|
863
863
|
const e = /* @__PURE__ */ new Map();
|
|
864
864
|
return {
|
|
865
865
|
events: e,
|
|
@@ -913,7 +913,7 @@ const G = {
|
|
|
913
913
|
[G.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
914
914
|
[G.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
915
915
|
};
|
|
916
|
-
function
|
|
916
|
+
function bn(e, t, n = {}) {
|
|
917
917
|
const { domain: r, messages: o, args: a } = n, s = process.env.NODE_ENV !== "production" ? ut((o || Wr)[e] || "", ...a || []) : e, l = new SyntaxError(String(s));
|
|
918
918
|
return l.code = e, t && (l.location = t), l.domain = r, l;
|
|
919
919
|
}
|
|
@@ -922,7 +922,7 @@ function yn(e, t, n = {}) {
|
|
|
922
922
|
* (c) 2022 kazuya kawaguchi
|
|
923
923
|
* Released under the MIT License.
|
|
924
924
|
*/
|
|
925
|
-
const
|
|
925
|
+
const Tn = {
|
|
926
926
|
I18nInit: "i18n:init",
|
|
927
927
|
FunctionTranslate: "function:translate"
|
|
928
928
|
};
|
|
@@ -1091,11 +1091,11 @@ function rs(e = {}) {
|
|
|
1091
1091
|
named: c,
|
|
1092
1092
|
plural: a,
|
|
1093
1093
|
linked: (N, ...b) => {
|
|
1094
|
-
const [
|
|
1094
|
+
const [I, T] = b;
|
|
1095
1095
|
let p = "text", w = "";
|
|
1096
|
-
b.length === 1 ? S(
|
|
1097
|
-
let
|
|
1098
|
-
return p === "vnode" &&
|
|
1096
|
+
b.length === 1 ? S(I) ? (w = I.modifier || w, p = I.type || p) : h(I) && (w = I || w) : b.length === 2 && (h(I) && (w = I || w), h(T) && (p = T || p));
|
|
1097
|
+
let L = u(N)(E);
|
|
1098
|
+
return p === "vnode" && k(L) && w && (L = L[0]), w ? _(w)(L, p) : L;
|
|
1099
1099
|
},
|
|
1100
1100
|
message: u,
|
|
1101
1101
|
type: v,
|
|
@@ -1109,14 +1109,14 @@ function ss(e) {
|
|
|
1109
1109
|
we = e;
|
|
1110
1110
|
}
|
|
1111
1111
|
function as(e, t, n) {
|
|
1112
|
-
we && we.emit(
|
|
1112
|
+
we && we.emit(Tn.I18nInit, {
|
|
1113
1113
|
timestamp: Date.now(),
|
|
1114
1114
|
i18n: e,
|
|
1115
1115
|
version: t,
|
|
1116
1116
|
meta: n
|
|
1117
1117
|
});
|
|
1118
1118
|
}
|
|
1119
|
-
const ls = /* @__PURE__ */ is(
|
|
1119
|
+
const ls = /* @__PURE__ */ is(Tn.FunctionTranslate);
|
|
1120
1120
|
function is(e) {
|
|
1121
1121
|
return (t) => we && we.emit(e, t);
|
|
1122
1122
|
}
|
|
@@ -1142,20 +1142,20 @@ function Ee(e, ...t) {
|
|
|
1142
1142
|
function us(e, t, n) {
|
|
1143
1143
|
return [.../* @__PURE__ */ new Set([
|
|
1144
1144
|
n,
|
|
1145
|
-
...
|
|
1145
|
+
...k(t) ? t : S(t) ? Object.keys(t) : h(t) ? [t] : [n]
|
|
1146
1146
|
])];
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function yn(e, t, n) {
|
|
1149
1149
|
const r = h(n) ? n : mt, o = e;
|
|
1150
1150
|
o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1151
1151
|
let a = o.__localeChainCache.get(r);
|
|
1152
1152
|
if (!a) {
|
|
1153
1153
|
a = [];
|
|
1154
1154
|
let s = [n];
|
|
1155
|
-
for (;
|
|
1155
|
+
for (; k(s); )
|
|
1156
1156
|
s = Vt(a, s, t);
|
|
1157
|
-
const l =
|
|
1158
|
-
s = h(l) ? [l] : l,
|
|
1157
|
+
const l = k(t) || !y(t) ? t : t.default ? t.default : null;
|
|
1158
|
+
s = h(l) ? [l] : l, k(s) && Vt(a, s, !1), o.__localeChainCache.set(r, a);
|
|
1159
1159
|
}
|
|
1160
1160
|
return a;
|
|
1161
1161
|
}
|
|
@@ -1181,7 +1181,7 @@ function _s(e, t, n) {
|
|
|
1181
1181
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1182
1182
|
r = t[t.length - 1] !== "!";
|
|
1183
1183
|
const o = t.replace(/!/g, "");
|
|
1184
|
-
e.push(o), (
|
|
1184
|
+
e.push(o), (k(n) || y(n)) && n[o] && (r = n[o]);
|
|
1185
1185
|
}
|
|
1186
1186
|
return r;
|
|
1187
1187
|
}
|
|
@@ -1193,25 +1193,25 @@ function ms() {
|
|
|
1193
1193
|
capitalize: (e, t) => t === "text" && h(e) ? Ut(e) : t === "vnode" && S(e) && "__v_isVNode" in e ? Ut(e.children) : e
|
|
1194
1194
|
};
|
|
1195
1195
|
}
|
|
1196
|
-
let gs,
|
|
1196
|
+
let gs, Ln;
|
|
1197
1197
|
function ps(e) {
|
|
1198
|
-
|
|
1198
|
+
Ln = e;
|
|
1199
1199
|
}
|
|
1200
|
-
let
|
|
1200
|
+
let In;
|
|
1201
1201
|
function hs(e) {
|
|
1202
|
-
|
|
1202
|
+
In = e;
|
|
1203
1203
|
}
|
|
1204
|
-
let
|
|
1204
|
+
let Sn = null;
|
|
1205
1205
|
const xt = (e) => {
|
|
1206
|
-
|
|
1207
|
-
}, vs = () =>
|
|
1208
|
-
let
|
|
1206
|
+
Sn = e;
|
|
1207
|
+
}, vs = () => Sn;
|
|
1208
|
+
let wn = null;
|
|
1209
1209
|
const Gt = (e) => {
|
|
1210
|
-
|
|
1211
|
-
}, Es = () =>
|
|
1210
|
+
wn = e;
|
|
1211
|
+
}, Es = () => wn;
|
|
1212
1212
|
let Wt = 0;
|
|
1213
1213
|
function Os(e = {}) {
|
|
1214
|
-
const t = h(e.version) ? e.version : ds, n = h(e.locale) ? e.locale : mt, r =
|
|
1214
|
+
const t = h(e.version) ? e.version : ds, n = h(e.locale) ? e.locale : mt, r = k(e.fallbackLocale) || y(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, o = y(e.messages) ? e.messages : { [n]: {} }, a = y(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, s = y(e.numberFormats) ? e.numberFormats : { [n]: {} }, l = j({}, e.modifiers || {}, ms()), i = e.pluralRules || {}, c = $(e.missing) ? e.missing : null, u = A(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, _ = A(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, d = !!e.fallbackFormat, g = !!e.unresolving, v = $(e.postTranslation) ? e.postTranslation : null, O = y(e.processor) ? e.processor : null, E = A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, N = !!e.escapeParameter, b = $(e.messageCompiler) ? e.messageCompiler : gs, I = $(e.messageResolver) ? e.messageResolver : Ln || Xr, T = $(e.localeFallbacker) ? e.localeFallbacker : In || us, p = S(e.fallbackContext) ? e.fallbackContext : void 0, w = $(e.onWarn) ? e.onWarn : be, L = e, V = S(L.__datetimeFormatters) ? L.__datetimeFormatters : /* @__PURE__ */ new Map(), z = S(L.__numberFormatters) ? L.__numberFormatters : /* @__PURE__ */ new Map(), J = S(L.__meta) ? L.__meta : {};
|
|
1215
1215
|
Wt++;
|
|
1216
1216
|
const q = {
|
|
1217
1217
|
version: t,
|
|
@@ -1231,18 +1231,18 @@ function Os(e = {}) {
|
|
|
1231
1231
|
warnHtmlMessage: E,
|
|
1232
1232
|
escapeParameter: N,
|
|
1233
1233
|
messageCompiler: b,
|
|
1234
|
-
messageResolver:
|
|
1234
|
+
messageResolver: I,
|
|
1235
1235
|
localeFallbacker: T,
|
|
1236
1236
|
fallbackContext: p,
|
|
1237
1237
|
onWarn: w,
|
|
1238
1238
|
__meta: J
|
|
1239
1239
|
};
|
|
1240
|
-
return q.datetimeFormats = a, q.numberFormats = s, q.__datetimeFormatters = V, q.__numberFormatters = z, process.env.NODE_ENV !== "production" && (q.__v_emitter =
|
|
1240
|
+
return q.datetimeFormats = a, q.numberFormats = s, q.__datetimeFormatters = V, q.__numberFormatters = z, process.env.NODE_ENV !== "production" && (q.__v_emitter = L.__v_emitter != null ? L.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && as(q, t, J), q;
|
|
1241
1241
|
}
|
|
1242
1242
|
function We(e, t) {
|
|
1243
1243
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function Dn(e, t) {
|
|
1246
1246
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1247
1247
|
}
|
|
1248
1248
|
function gt(e, t, n, r, o) {
|
|
@@ -1260,21 +1260,21 @@ function gt(e, t, n, r, o) {
|
|
|
1260
1260
|
const l = a(e, n, t, o);
|
|
1261
1261
|
return h(l) ? l : t;
|
|
1262
1262
|
} else
|
|
1263
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1263
|
+
return process.env.NODE_ENV !== "production" && Dn(r, t) && s(Ee(K.NOT_FOUND_KEY, { key: t, locale: n })), t;
|
|
1264
1264
|
}
|
|
1265
1265
|
function Te(e, t, n) {
|
|
1266
1266
|
const r = e;
|
|
1267
1267
|
r.__localeChainCache = /* @__PURE__ */ new Map(), e.localeFallbacker(e, n, t);
|
|
1268
1268
|
}
|
|
1269
|
-
let
|
|
1270
|
-
const Ye = () => ++
|
|
1271
|
-
INVALID_ARGUMENT:
|
|
1269
|
+
let Cn = G.__EXTEND_POINT__;
|
|
1270
|
+
const Ye = () => ++Cn, re = {
|
|
1271
|
+
INVALID_ARGUMENT: Cn,
|
|
1272
1272
|
INVALID_DATE_ARGUMENT: Ye(),
|
|
1273
1273
|
INVALID_ISO_DATE_ARGUMENT: Ye(),
|
|
1274
1274
|
__EXTEND_POINT__: Ye()
|
|
1275
1275
|
};
|
|
1276
1276
|
function ve(e) {
|
|
1277
|
-
return
|
|
1277
|
+
return bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Ns } : void 0);
|
|
1278
1278
|
}
|
|
1279
1279
|
const Ns = {
|
|
1280
1280
|
[re.INVALID_ARGUMENT]: "Invalid arguments",
|
|
@@ -1284,22 +1284,22 @@ const Ns = {
|
|
|
1284
1284
|
function jt(e, ...t) {
|
|
1285
1285
|
const { fallbackFormat: n, postTranslation: r, unresolving: o, messageCompiler: a, fallbackLocale: s, messages: l } = e, [i, c] = Je(...t), u = A(c.missingWarn) ? c.missingWarn : e.missingWarn, _ = A(c.fallbackWarn) ? c.fallbackWarn : e.fallbackWarn, d = A(c.escapeParameter) ? c.escapeParameter : e.escapeParameter, g = !!c.resolvedMessage, v = h(c.default) || A(c.default) ? A(c.default) ? a ? i : () => i : c.default : n ? a ? i : () => i : "", O = n || v !== "", E = h(c.locale) ? c.locale : e.locale;
|
|
1286
1286
|
d && bs(c);
|
|
1287
|
-
let [N, b,
|
|
1287
|
+
let [N, b, I] = g ? [
|
|
1288
1288
|
i,
|
|
1289
1289
|
E,
|
|
1290
1290
|
l[E] || {}
|
|
1291
|
-
] :
|
|
1291
|
+
] : An(e, i, E, s, _, u), T = N, p = i;
|
|
1292
1292
|
if (!g && !(h(T) || ee(T)) && O && (T = v, p = T), !g && (!(h(T) || ee(T)) || !h(b)))
|
|
1293
1293
|
return o ? Ge : i;
|
|
1294
1294
|
if (process.env.NODE_ENV !== "production" && h(T) && e.messageCompiler == null)
|
|
1295
1295
|
return be(`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;
|
|
1296
1296
|
let w = !1;
|
|
1297
|
-
const
|
|
1297
|
+
const L = () => {
|
|
1298
1298
|
w = !0;
|
|
1299
|
-
}, V = ee(T) ? T :
|
|
1299
|
+
}, V = ee(T) ? T : Pn(e, i, b, T, p, L);
|
|
1300
1300
|
if (w)
|
|
1301
1301
|
return T;
|
|
1302
|
-
const z =
|
|
1302
|
+
const z = Ls(e, b, I, c), J = rs(z), q = Ts(e, V, J), Ae = r ? r(q, i) : q;
|
|
1303
1303
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1304
1304
|
const Pe = {
|
|
1305
1305
|
timestamp: Date.now(),
|
|
@@ -1313,11 +1313,11 @@ function jt(e, ...t) {
|
|
|
1313
1313
|
return Ae;
|
|
1314
1314
|
}
|
|
1315
1315
|
function bs(e) {
|
|
1316
|
-
|
|
1317
|
-
h(e.named[t]) && (e.named[t] =
|
|
1316
|
+
k(e.list) ? e.list = e.list.map((t) => h(t) ? Ft(t) : t) : S(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1317
|
+
h(e.named[t]) && (e.named[t] = Ft(e.named[t]));
|
|
1318
1318
|
});
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function An(e, t, n, r, o, a) {
|
|
1321
1321
|
const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, u = c(e, r, n);
|
|
1322
1322
|
let _ = {}, d, g = null, v = n, O = null;
|
|
1323
1323
|
const E = "translate";
|
|
@@ -1336,16 +1336,16 @@ function Fn(e, t, n, r, o, a) {
|
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
1338
|
_ = s[d] || {};
|
|
1339
|
-
let b = null,
|
|
1340
|
-
if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(),
|
|
1341
|
-
const w = window.performance.now(),
|
|
1342
|
-
|
|
1339
|
+
let b = null, I, T;
|
|
1340
|
+
if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(), I = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(I)), (g = i(_, t)) === null && (g = _[t]), process.env.NODE_ENV !== "production" && te) {
|
|
1341
|
+
const w = window.performance.now(), L = e.__v_emitter;
|
|
1342
|
+
L && b && g && L.emit("message-resolve", {
|
|
1343
1343
|
type: "message-resolve",
|
|
1344
1344
|
key: t,
|
|
1345
1345
|
message: g,
|
|
1346
1346
|
time: w - b,
|
|
1347
1347
|
groupId: `${E}:${t}`
|
|
1348
|
-
}),
|
|
1348
|
+
}), I && T && X && fe && (X(T), fe("intlify message resolve", I, T));
|
|
1349
1349
|
}
|
|
1350
1350
|
if (h(g) || $(g))
|
|
1351
1351
|
break;
|
|
@@ -1360,7 +1360,7 @@ function Fn(e, t, n, r, o, a) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
return [g, d, _];
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Pn(e, t, n, r, o, a) {
|
|
1364
1364
|
const { messageCompiler: s, warnHtmlMessage: l } = e;
|
|
1365
1365
|
if (ee(r)) {
|
|
1366
1366
|
const d = r;
|
|
@@ -1404,7 +1404,7 @@ function Je(...e) {
|
|
|
1404
1404
|
if (!h(t) && !M(t) && !ee(t))
|
|
1405
1405
|
throw ve(re.INVALID_ARGUMENT);
|
|
1406
1406
|
const a = M(t) ? String(t) : (ee(t), t);
|
|
1407
|
-
return M(n) ? o.plural = n : h(n) ? o.default = n : y(n) && !xe(n) ? o.named = n :
|
|
1407
|
+
return M(n) ? o.plural = n : h(n) ? o.default = n : y(n) && !xe(n) ? o.named = n : k(n) && (o.list = n), M(r) ? o.plural = r : h(r) ? o.default = r : y(r) && j(o, r), [a, o];
|
|
1408
1408
|
}
|
|
1409
1409
|
function ys(e, t, n, r, o, a) {
|
|
1410
1410
|
return {
|
|
@@ -1426,7 +1426,7 @@ ${i}` : l);
|
|
|
1426
1426
|
onCacheKey: (s) => $r(t, n, s)
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Ls(e, t, n, r) {
|
|
1430
1430
|
const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: u } = e, d = {
|
|
1431
1431
|
locale: t,
|
|
1432
1432
|
modifiers: o,
|
|
@@ -1434,12 +1434,12 @@ function Is(e, t, n, r) {
|
|
|
1434
1434
|
messages: (g) => {
|
|
1435
1435
|
let v = s(n, g);
|
|
1436
1436
|
if (v == null && u) {
|
|
1437
|
-
const [, , O] =
|
|
1437
|
+
const [, , O] = An(u, g, t, l, i, c);
|
|
1438
1438
|
v = s(O, g);
|
|
1439
1439
|
}
|
|
1440
1440
|
if (h(v)) {
|
|
1441
1441
|
let O = !1;
|
|
1442
|
-
const N =
|
|
1442
|
+
const N = Pn(e, g, t, v, g, () => {
|
|
1443
1443
|
O = !0;
|
|
1444
1444
|
});
|
|
1445
1445
|
return O ? Ht : N;
|
|
@@ -1464,7 +1464,7 @@ function Yt(e, ...t) {
|
|
|
1464
1464
|
);
|
|
1465
1465
|
if (!h(i) || i === "")
|
|
1466
1466
|
return new Intl.DateTimeFormat(O, _).format(c);
|
|
1467
|
-
let N = {}, b,
|
|
1467
|
+
let N = {}, b, I = null, T = O, p = null;
|
|
1468
1468
|
const w = "datetime format";
|
|
1469
1469
|
for (let z = 0; z < E.length; z++) {
|
|
1470
1470
|
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Ee(K.FALLBACK_TO_DATE_FORMAT, {
|
|
@@ -1480,18 +1480,18 @@ function Yt(e, ...t) {
|
|
|
1480
1480
|
groupId: `${w}:${i}`
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
|
-
if (N = n[b] || {},
|
|
1483
|
+
if (N = n[b] || {}, I = N[i], y(I))
|
|
1484
1484
|
break;
|
|
1485
1485
|
gt(e, i, b, d, w), T = p;
|
|
1486
1486
|
}
|
|
1487
|
-
if (!y(
|
|
1487
|
+
if (!y(I) || !h(b))
|
|
1488
1488
|
return r ? Ge : i;
|
|
1489
|
-
let
|
|
1490
|
-
xe(_) || (
|
|
1491
|
-
let V = l.get(
|
|
1492
|
-
return V || (V = new Intl.DateTimeFormat(b, j({},
|
|
1489
|
+
let L = `${b}__${i}`;
|
|
1490
|
+
xe(_) || (L = `${L}__${JSON.stringify(_)}`);
|
|
1491
|
+
let V = l.get(L);
|
|
1492
|
+
return V || (V = new Intl.DateTimeFormat(b, j({}, I, _)), l.set(L, V)), v ? V.formatToParts(c) : V.format(c);
|
|
1493
1493
|
}
|
|
1494
|
-
const
|
|
1494
|
+
const Fn = [
|
|
1495
1495
|
"localeMatcher",
|
|
1496
1496
|
"weekday",
|
|
1497
1497
|
"era",
|
|
@@ -1536,7 +1536,7 @@ function qe(...e) {
|
|
|
1536
1536
|
else
|
|
1537
1537
|
throw ve(re.INVALID_ARGUMENT);
|
|
1538
1538
|
return h(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
|
|
1539
|
-
|
|
1539
|
+
Fn.includes(i) ? s[i] = n[i] : a[i] = n[i];
|
|
1540
1540
|
}), h(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
|
|
1541
1541
|
}
|
|
1542
1542
|
function zt(e, t, n) {
|
|
@@ -1557,7 +1557,7 @@ function Kt(e, ...t) {
|
|
|
1557
1557
|
);
|
|
1558
1558
|
if (!h(i) || i === "")
|
|
1559
1559
|
return new Intl.NumberFormat(O, _).format(c);
|
|
1560
|
-
let N = {}, b,
|
|
1560
|
+
let N = {}, b, I = null, T = O, p = null;
|
|
1561
1561
|
const w = "number format";
|
|
1562
1562
|
for (let z = 0; z < E.length; z++) {
|
|
1563
1563
|
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Ee(K.FALLBACK_TO_NUMBER_FORMAT, {
|
|
@@ -1573,18 +1573,18 @@ function Kt(e, ...t) {
|
|
|
1573
1573
|
groupId: `${w}:${i}`
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
|
-
if (N = n[b] || {},
|
|
1576
|
+
if (N = n[b] || {}, I = N[i], y(I))
|
|
1577
1577
|
break;
|
|
1578
1578
|
gt(e, i, b, d, w), T = p;
|
|
1579
1579
|
}
|
|
1580
|
-
if (!y(
|
|
1580
|
+
if (!y(I) || !h(b))
|
|
1581
1581
|
return r ? Ge : i;
|
|
1582
|
-
let
|
|
1583
|
-
xe(_) || (
|
|
1584
|
-
let V = l.get(
|
|
1585
|
-
return V || (V = new Intl.NumberFormat(b, j({},
|
|
1582
|
+
let L = `${b}__${i}`;
|
|
1583
|
+
xe(_) || (L = `${L}__${JSON.stringify(_)}`);
|
|
1584
|
+
let V = l.get(L);
|
|
1585
|
+
return V || (V = new Intl.NumberFormat(b, j({}, I, _)), l.set(L, V)), v ? V.formatToParts(c) : V.format(c);
|
|
1586
1586
|
}
|
|
1587
|
-
const
|
|
1587
|
+
const Rn = [
|
|
1588
1588
|
"localeMatcher",
|
|
1589
1589
|
"style",
|
|
1590
1590
|
"currency",
|
|
@@ -1613,7 +1613,7 @@ function Ze(...e) {
|
|
|
1613
1613
|
throw ve(re.INVALID_ARGUMENT);
|
|
1614
1614
|
const l = t;
|
|
1615
1615
|
return h(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
|
|
1616
|
-
|
|
1616
|
+
Rn.includes(i) ? s[i] = n[i] : a[i] = n[i];
|
|
1617
1617
|
}), h(r) ? a.locale = r : y(r) && (s = r), y(o) && (s = o), [a.key || "", l, a, s];
|
|
1618
1618
|
}
|
|
1619
1619
|
function Xt(e, t, n) {
|
|
@@ -1624,10 +1624,10 @@ function Xt(e, t, n) {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
}
|
|
1626
1626
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ft().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1627
|
-
function
|
|
1628
|
-
return
|
|
1627
|
+
function Is() {
|
|
1628
|
+
return $n().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function $n() {
|
|
1631
1631
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
1632
1632
|
}
|
|
1633
1633
|
const Ss = typeof Proxy == "function", ws = "devtools-plugin:setup", Ds = "plugin:settings:set";
|
|
@@ -1701,8 +1701,8 @@ class Ps {
|
|
|
1701
1701
|
n.resolve(await this.target[n.method](...n.args));
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
function
|
|
1705
|
-
const n = e, r =
|
|
1704
|
+
function ks(e, t) {
|
|
1705
|
+
const n = e, r = $n(), o = Is(), a = Ss && n.enableEarlyProxy;
|
|
1706
1706
|
if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
|
|
1707
1707
|
o.emit(ws, e, t);
|
|
1708
1708
|
else {
|
|
@@ -1723,9 +1723,9 @@ const ze = {
|
|
|
1723
1723
|
["vue-devtools-plugin-vue-i18n"]: "Vue I18n devtools",
|
|
1724
1724
|
["vue-i18n-resource-inspector"]: "I18n Resources",
|
|
1725
1725
|
["vue-i18n-timeline"]: "Vue I18n"
|
|
1726
|
-
},
|
|
1726
|
+
}, Fs = {
|
|
1727
1727
|
["vue-i18n-resource-inspector"]: "Search for scopes ..."
|
|
1728
|
-
},
|
|
1728
|
+
}, Rs = {
|
|
1729
1729
|
["vue-i18n-timeline"]: 16764185
|
|
1730
1730
|
};
|
|
1731
1731
|
/*!
|
|
@@ -1738,9 +1738,9 @@ function Ms() {
|
|
|
1738
1738
|
let e = !1;
|
|
1739
1739
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ft().__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.");
|
|
1740
1740
|
}
|
|
1741
|
-
let
|
|
1742
|
-
const he = () => ++
|
|
1743
|
-
FALLBACK_TO_ROOT:
|
|
1741
|
+
let Mn = K.__EXTEND_POINT__;
|
|
1742
|
+
const he = () => ++Mn, Z = {
|
|
1743
|
+
FALLBACK_TO_ROOT: Mn,
|
|
1744
1744
|
NOT_SUPPORTED_PRESERVE: he(),
|
|
1745
1745
|
NOT_SUPPORTED_FORMATTER: he(),
|
|
1746
1746
|
NOT_SUPPORTED_PRESERVE_DIRECTIVE: he(),
|
|
@@ -1759,9 +1759,9 @@ const he = () => ++Un, Z = {
|
|
|
1759
1759
|
function He(e, ...t) {
|
|
1760
1760
|
return ut(Vs[e], ...t);
|
|
1761
1761
|
}
|
|
1762
|
-
let
|
|
1763
|
-
const Y = () => ++
|
|
1764
|
-
UNEXPECTED_RETURN_TYPE:
|
|
1762
|
+
let Vn = G.__EXTEND_POINT__;
|
|
1763
|
+
const Y = () => ++Vn, D = {
|
|
1764
|
+
UNEXPECTED_RETURN_TYPE: Vn,
|
|
1765
1765
|
INVALID_ARGUMENT: Y(),
|
|
1766
1766
|
MUST_BE_CALL_SETUP_TOP: Y(),
|
|
1767
1767
|
NOT_INSLALLED: Y(),
|
|
@@ -1778,7 +1778,7 @@ const Y = () => ++xn, D = {
|
|
|
1778
1778
|
__EXTEND_POINT__: Y()
|
|
1779
1779
|
};
|
|
1780
1780
|
function Q(e, ...t) {
|
|
1781
|
-
return
|
|
1781
|
+
return bn(e, null, process.env.NODE_ENV !== "production" ? { messages: Us, args: t } : void 0);
|
|
1782
1782
|
}
|
|
1783
1783
|
const Us = {
|
|
1784
1784
|
[D.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
@@ -1814,32 +1814,32 @@ function st(e) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
return e;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1818
|
-
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s = y(n) ? n :
|
|
1819
|
-
if (
|
|
1817
|
+
function Un(e, t) {
|
|
1818
|
+
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s = y(n) ? n : k(r) ? {} : { [e]: {} };
|
|
1819
|
+
if (k(r) && r.forEach((l) => {
|
|
1820
1820
|
if ("locale" in l && "resource" in l) {
|
|
1821
1821
|
const { locale: i, resource: c } = l;
|
|
1822
|
-
i ? (s[i] = s[i] || {},
|
|
1822
|
+
i ? (s[i] = s[i] || {}, Ie(c, s[i])) : Ie(c, s);
|
|
1823
1823
|
} else
|
|
1824
|
-
h(l) &&
|
|
1824
|
+
h(l) && Ie(JSON.parse(l), s);
|
|
1825
1825
|
}), o == null && a)
|
|
1826
1826
|
for (const l in s)
|
|
1827
1827
|
_t(s, l) && st(s[l]);
|
|
1828
1828
|
return s;
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1831
|
-
function
|
|
1832
|
-
if (
|
|
1830
|
+
const Fe = (e) => !S(e) || k(e);
|
|
1831
|
+
function Ie(e, t) {
|
|
1832
|
+
if (Fe(e) || Fe(t))
|
|
1833
1833
|
throw Q(D.INVALID_VALUE);
|
|
1834
1834
|
for (const n in e)
|
|
1835
|
-
_t(e, n) && (
|
|
1835
|
+
_t(e, n) && (Fe(e[n]) || Fe(t[n]) ? t[n] = e[n] : Ie(e[n], t[n]));
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function xn(e) {
|
|
1838
1838
|
return e.type;
|
|
1839
1839
|
}
|
|
1840
1840
|
function Ws(e, t, n) {
|
|
1841
1841
|
let r = S(t.messages) ? t.messages : {};
|
|
1842
|
-
"__i18nGlobal" in n && (r =
|
|
1842
|
+
"__i18nGlobal" in n && (r = Un(e.locale.value, {
|
|
1843
1843
|
messages: r,
|
|
1844
1844
|
__i18n: n.__i18nGlobal
|
|
1845
1845
|
}));
|
|
@@ -1863,7 +1863,7 @@ function Ws(e, t, n) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
function Qt(e) {
|
|
1866
|
-
return se(
|
|
1866
|
+
return se(Io, null, e, 0);
|
|
1867
1867
|
}
|
|
1868
1868
|
const Jt = "__INTLIFY_META__";
|
|
1869
1869
|
let qt = 0;
|
|
@@ -1873,18 +1873,18 @@ function Zt(e) {
|
|
|
1873
1873
|
const Hs = () => {
|
|
1874
1874
|
const e = it();
|
|
1875
1875
|
let t = null;
|
|
1876
|
-
return e && (t =
|
|
1876
|
+
return e && (t = xn(e)[Jt]) ? { [Jt]: t } : null;
|
|
1877
1877
|
};
|
|
1878
|
-
function
|
|
1878
|
+
function Gn(e = {}, t) {
|
|
1879
1879
|
const { __root: n } = e, r = n === void 0;
|
|
1880
1880
|
let o = A(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1881
1881
|
const a = x(
|
|
1882
1882
|
n && o ? n.locale.value : h(e.locale) ? e.locale : mt
|
|
1883
1883
|
), s = x(
|
|
1884
|
-
n && o ? n.fallbackLocale.value : h(e.fallbackLocale) ||
|
|
1885
|
-
), l = x(
|
|
1884
|
+
n && o ? n.fallbackLocale.value : h(e.fallbackLocale) || k(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1885
|
+
), l = x(Un(a.value, e)), i = x(y(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = x(y(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1886
1886
|
let u = n ? n.missingWarn : A(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : A(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, d = n ? n.fallbackRoot : A(e.fallbackRoot) ? e.fallbackRoot : !0, g = !!e.fallbackFormat, v = $(e.missing) ? e.missing : null, O = $(e.missing) ? Zt(e.missing) : null, E = $(e.postTranslation) ? e.postTranslation : null, N = n ? n.warnHtmlMessage : A(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter;
|
|
1887
|
-
const
|
|
1887
|
+
const I = n ? n.modifiers : y(e.modifiers) ? e.modifiers : {};
|
|
1888
1888
|
let T = e.pluralRules || n && n.pluralRules, p;
|
|
1889
1889
|
p = (() => {
|
|
1890
1890
|
r && Gt(null);
|
|
@@ -1893,7 +1893,7 @@ function Hn(e = {}, t) {
|
|
|
1893
1893
|
locale: a.value,
|
|
1894
1894
|
fallbackLocale: s.value,
|
|
1895
1895
|
messages: l.value,
|
|
1896
|
-
modifiers:
|
|
1896
|
+
modifiers: I,
|
|
1897
1897
|
pluralRules: T,
|
|
1898
1898
|
missing: O === null ? void 0 : O,
|
|
1899
1899
|
missingWarn: u,
|
|
@@ -1910,7 +1910,7 @@ function Hn(e = {}, t) {
|
|
|
1910
1910
|
const m = Os(f);
|
|
1911
1911
|
return r && Gt(m), m;
|
|
1912
1912
|
})(), Te(p, a.value, s.value);
|
|
1913
|
-
function
|
|
1913
|
+
function L() {
|
|
1914
1914
|
return [
|
|
1915
1915
|
a.value,
|
|
1916
1916
|
s.value,
|
|
@@ -1933,20 +1933,20 @@ function Hn(e = {}, t) {
|
|
|
1933
1933
|
function Pe() {
|
|
1934
1934
|
return $(E) ? E : null;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function Qn(f) {
|
|
1937
1937
|
E = f, p.postTranslation = f;
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function Jn() {
|
|
1940
1940
|
return v;
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function qn(f) {
|
|
1943
1943
|
f !== null && (O = Zt(f)), v = f, p.missing = O;
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function Zn(f, m) {
|
|
1946
1946
|
return f !== "translate" || !m.resolvedMessage;
|
|
1947
1947
|
}
|
|
1948
|
-
const me = (f, m, B, H, je,
|
|
1949
|
-
|
|
1948
|
+
const me = (f, m, B, H, je, ke) => {
|
|
1949
|
+
L();
|
|
1950
1950
|
let ge;
|
|
1951
1951
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1952
1952
|
try {
|
|
@@ -1957,8 +1957,8 @@ function Hn(e = {}, t) {
|
|
|
1957
1957
|
else
|
|
1958
1958
|
ge = f(p);
|
|
1959
1959
|
if (M(ge) && ge === Ge) {
|
|
1960
|
-
const [le,
|
|
1961
|
-
if (process.env.NODE_ENV !== "production" && n && h(le) &&
|
|
1960
|
+
const [le, No] = m();
|
|
1961
|
+
if (process.env.NODE_ENV !== "production" && n && h(le) && Zn(B, No) && (d && (We(_, le) || Dn(u, le)) && be(He(Z.FALLBACK_TO_ROOT, {
|
|
1962
1962
|
key: le,
|
|
1963
1963
|
type: B
|
|
1964
1964
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -1972,7 +1972,7 @@ function Hn(e = {}, t) {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
return n && d ? H(n) : je(le);
|
|
1974
1974
|
} else {
|
|
1975
|
-
if (
|
|
1975
|
+
if (ke(ge))
|
|
1976
1976
|
return ge;
|
|
1977
1977
|
throw Q(D.UNEXPECTED_RETURN_TYPE);
|
|
1978
1978
|
}
|
|
@@ -1980,33 +1980,33 @@ function Hn(e = {}, t) {
|
|
|
1980
1980
|
function Et(...f) {
|
|
1981
1981
|
return me((m) => Reflect.apply(jt, null, [m, ...f]), () => Je(...f), "translate", (m) => Reflect.apply(m.t, m, [...f]), (m) => m, (m) => h(m));
|
|
1982
1982
|
}
|
|
1983
|
-
function
|
|
1983
|
+
function eo(...f) {
|
|
1984
1984
|
const [m, B, H] = f;
|
|
1985
1985
|
if (H && !S(H))
|
|
1986
1986
|
throw Q(D.INVALID_ARGUMENT);
|
|
1987
1987
|
return Et(m, B, j({ resolvedMessage: !0 }, H || {}));
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function to(...f) {
|
|
1990
1990
|
return me((m) => Reflect.apply(Yt, null, [m, ...f]), () => qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => Ue, (m) => h(m));
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function no(...f) {
|
|
1993
1993
|
return me((m) => Reflect.apply(Kt, null, [m, ...f]), () => Ze(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => Ue, (m) => h(m));
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function oo(f) {
|
|
1996
1996
|
return f.map((m) => h(m) || M(m) || A(m) ? Qt(String(m)) : m);
|
|
1997
1997
|
}
|
|
1998
|
-
const
|
|
1999
|
-
normalize:
|
|
1998
|
+
const ro = {
|
|
1999
|
+
normalize: oo,
|
|
2000
2000
|
interpolate: (f) => f,
|
|
2001
2001
|
type: "vnode"
|
|
2002
2002
|
};
|
|
2003
|
-
function
|
|
2003
|
+
function so(...f) {
|
|
2004
2004
|
return me(
|
|
2005
2005
|
(m) => {
|
|
2006
2006
|
let B;
|
|
2007
2007
|
const H = m;
|
|
2008
2008
|
try {
|
|
2009
|
-
H.processor =
|
|
2009
|
+
H.processor = ro, B = Reflect.apply(jt, null, [H, ...f]);
|
|
2010
2010
|
} finally {
|
|
2011
2011
|
H.processor = null;
|
|
2012
2012
|
}
|
|
@@ -2016,77 +2016,77 @@ function Hn(e = {}, t) {
|
|
|
2016
2016
|
"translate",
|
|
2017
2017
|
(m) => m[tt](...f),
|
|
2018
2018
|
(m) => [Qt(m)],
|
|
2019
|
-
(m) =>
|
|
2019
|
+
(m) => k(m)
|
|
2020
2020
|
);
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function ao(...f) {
|
|
2023
2023
|
return me(
|
|
2024
2024
|
(m) => Reflect.apply(Kt, null, [m, ...f]),
|
|
2025
2025
|
() => Ze(...f),
|
|
2026
2026
|
"number format",
|
|
2027
2027
|
(m) => m[ot](...f),
|
|
2028
2028
|
() => [],
|
|
2029
|
-
(m) => h(m) ||
|
|
2029
|
+
(m) => h(m) || k(m)
|
|
2030
2030
|
);
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2032
|
+
function lo(...f) {
|
|
2033
2033
|
return me(
|
|
2034
2034
|
(m) => Reflect.apply(Yt, null, [m, ...f]),
|
|
2035
2035
|
() => qe(...f),
|
|
2036
2036
|
"datetime format",
|
|
2037
2037
|
(m) => m[nt](...f),
|
|
2038
2038
|
() => [],
|
|
2039
|
-
(m) => h(m) ||
|
|
2039
|
+
(m) => h(m) || k(m)
|
|
2040
2040
|
);
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function io(f) {
|
|
2043
2043
|
T = f, p.pluralRules = T;
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2045
|
+
function co(f, m) {
|
|
2046
2046
|
const B = h(m) ? m : a.value, H = Ot(B);
|
|
2047
2047
|
return p.messageResolver(H, f) !== null;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function uo(f) {
|
|
2050
2050
|
let m = null;
|
|
2051
|
-
const B =
|
|
2051
|
+
const B = yn(p, s.value, a.value);
|
|
2052
2052
|
for (let H = 0; H < B.length; H++) {
|
|
2053
|
-
const je = l.value[B[H]] || {},
|
|
2054
|
-
if (
|
|
2055
|
-
m =
|
|
2053
|
+
const je = l.value[B[H]] || {}, ke = p.messageResolver(je, f);
|
|
2054
|
+
if (ke != null) {
|
|
2055
|
+
m = ke;
|
|
2056
2056
|
break;
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
2059
|
return m;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const m =
|
|
2061
|
+
function fo(f) {
|
|
2062
|
+
const m = uo(f);
|
|
2063
2063
|
return m != null ? m : n ? n.tm(f) || {} : {};
|
|
2064
2064
|
}
|
|
2065
2065
|
function Ot(f) {
|
|
2066
2066
|
return l.value[f] || {};
|
|
2067
2067
|
}
|
|
2068
|
-
function
|
|
2068
|
+
function _o(f, m) {
|
|
2069
2069
|
l.value[f] = m, p.messages = l.value;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2072
|
-
l.value[f] = l.value[f] || {},
|
|
2071
|
+
function mo(f, m) {
|
|
2072
|
+
l.value[f] = l.value[f] || {}, Ie(m, l.value[f]), p.messages = l.value;
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function go(f) {
|
|
2075
2075
|
return i.value[f] || {};
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2077
|
+
function po(f, m) {
|
|
2078
2078
|
i.value[f] = m, p.datetimeFormats = i.value, zt(p, f, m);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function ho(f, m) {
|
|
2081
2081
|
i.value[f] = j(i.value[f] || {}, m), p.datetimeFormats = i.value, zt(p, f, m);
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function vo(f) {
|
|
2084
2084
|
return c.value[f] || {};
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function Eo(f, m) {
|
|
2087
2087
|
c.value[f] = m, p.numberFormats = c.value, Xt(p, f, m);
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2089
|
+
function Oo(f, m) {
|
|
2090
2090
|
c.value[f] = j(c.value[f] || {}, m), p.numberFormats = c.value, Xt(p, f, m);
|
|
2091
2091
|
}
|
|
2092
2092
|
qt++, n && te && (Me(n.locale, (f) => {
|
|
@@ -2094,7 +2094,7 @@ function Hn(e = {}, t) {
|
|
|
2094
2094
|
}), Me(n.fallbackLocale, (f) => {
|
|
2095
2095
|
o && (s.value = f, p.fallbackLocale = f, Te(p, a.value, s.value));
|
|
2096
2096
|
}));
|
|
2097
|
-
const
|
|
2097
|
+
const F = {
|
|
2098
2098
|
id: qt,
|
|
2099
2099
|
locale: V,
|
|
2100
2100
|
fallbackLocale: z,
|
|
@@ -2109,7 +2109,7 @@ function Hn(e = {}, t) {
|
|
|
2109
2109
|
},
|
|
2110
2110
|
messages: J,
|
|
2111
2111
|
get modifiers() {
|
|
2112
|
-
return
|
|
2112
|
+
return I;
|
|
2113
2113
|
},
|
|
2114
2114
|
get pluralRules() {
|
|
2115
2115
|
return T || {};
|
|
@@ -2155,19 +2155,19 @@ function Hn(e = {}, t) {
|
|
|
2155
2155
|
},
|
|
2156
2156
|
t: Et,
|
|
2157
2157
|
getLocaleMessage: Ot,
|
|
2158
|
-
setLocaleMessage:
|
|
2159
|
-
mergeLocaleMessage:
|
|
2158
|
+
setLocaleMessage: _o,
|
|
2159
|
+
mergeLocaleMessage: mo,
|
|
2160
2160
|
getPostTranslationHandler: Pe,
|
|
2161
|
-
setPostTranslationHandler:
|
|
2162
|
-
getMissingHandler:
|
|
2163
|
-
setMissingHandler:
|
|
2164
|
-
[xs]:
|
|
2161
|
+
setPostTranslationHandler: Qn,
|
|
2162
|
+
getMissingHandler: Jn,
|
|
2163
|
+
setMissingHandler: qn,
|
|
2164
|
+
[xs]: io
|
|
2165
2165
|
};
|
|
2166
|
-
return
|
|
2166
|
+
return F.datetimeFormats = q, F.numberFormats = Ae, F.rt = eo, F.te = co, F.tm = fo, F.d = to, F.n = no, F.getDateTimeFormat = go, F.setDateTimeFormat = po, F.mergeDateTimeFormat = ho, F.getNumberFormat = vo, F.setNumberFormat = Eo, F.mergeNumberFormat = Oo, F[Gs] = e.__injectWithOption, F[tt] = so, F[nt] = lo, F[ot] = ao, process.env.NODE_ENV !== "production" && (F[De] = (f) => {
|
|
2167
2167
|
p.__v_emitter = f;
|
|
2168
|
-
},
|
|
2168
|
+
}, F[rt] = () => {
|
|
2169
2169
|
p.__v_emitter = void 0;
|
|
2170
|
-
}),
|
|
2170
|
+
}), F;
|
|
2171
2171
|
}
|
|
2172
2172
|
const pt = {
|
|
2173
2173
|
tag: {
|
|
@@ -2188,13 +2188,13 @@ const pt = {
|
|
|
2188
2188
|
function js({ slots: e }, t) {
|
|
2189
2189
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, o) => r = [
|
|
2190
2190
|
...r,
|
|
2191
|
-
...
|
|
2191
|
+
...k(o.children) ? o.children : [o]
|
|
2192
2192
|
], []) : t.reduce((n, r) => {
|
|
2193
2193
|
const o = e[r];
|
|
2194
2194
|
return o && (n[r] = o()), n;
|
|
2195
2195
|
}, {});
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Wn(e) {
|
|
2198
2198
|
return Oe;
|
|
2199
2199
|
}
|
|
2200
2200
|
const Ke = {
|
|
@@ -2217,15 +2217,15 @@ const Ke = {
|
|
|
2217
2217
|
return () => {
|
|
2218
2218
|
const a = Object.keys(n).filter((_) => _ !== "_"), s = {};
|
|
2219
2219
|
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = h(e.plural) ? +e.plural : e.plural);
|
|
2220
|
-
const l = js(t, a), i = o[tt](e.keypath, l, s), c = j({}, r), u = h(e.tag) || S(e.tag) ? e.tag :
|
|
2220
|
+
const l = js(t, a), i = o[tt](e.keypath, l, s), c = j({}, r), u = h(e.tag) || S(e.tag) ? e.tag : Wn();
|
|
2221
2221
|
return $e(u, c, i);
|
|
2222
2222
|
};
|
|
2223
2223
|
}
|
|
2224
2224
|
};
|
|
2225
2225
|
function Bs(e) {
|
|
2226
|
-
return
|
|
2226
|
+
return k(e) && !h(e[0]);
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function Hn(e, t, n, r) {
|
|
2229
2229
|
const { slots: o, attrs: a } = t;
|
|
2230
2230
|
return () => {
|
|
2231
2231
|
const s = { part: !0 };
|
|
@@ -2233,11 +2233,11 @@ function Bn(e, t, n, r) {
|
|
|
2233
2233
|
e.locale && (s.locale = e.locale), h(e.format) ? s.key = e.format : S(e.format) && (h(e.format.key) && (s.key = e.format.key), l = Object.keys(e.format).reduce((d, g) => n.includes(g) ? j({}, d, { [g]: e.format[g] }) : d, {}));
|
|
2234
2234
|
const i = r(e.value, s, l);
|
|
2235
2235
|
let c = [s.key];
|
|
2236
|
-
|
|
2236
|
+
k(i) ? c = i.map((d, g) => {
|
|
2237
2237
|
const v = o[d.type], O = v ? v({ [d.type]: d.value, index: g, parts: i }) : [d.value];
|
|
2238
2238
|
return Bs(O) && (O[0].key = `${d.type}-${g}`), O;
|
|
2239
2239
|
}) : h(i) && (c = [i]);
|
|
2240
|
-
const u = j({}, a), _ = h(e.tag) || S(e.tag) ? e.tag :
|
|
2240
|
+
const u = j({}, a), _ = h(e.tag) || S(e.tag) ? e.tag : Wn();
|
|
2241
2241
|
return $e(_, u, c);
|
|
2242
2242
|
};
|
|
2243
2243
|
}
|
|
@@ -2254,7 +2254,7 @@ const en = {
|
|
|
2254
2254
|
}, pt),
|
|
2255
2255
|
setup(e, t) {
|
|
2256
2256
|
const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
|
|
2257
|
-
return
|
|
2257
|
+
return Hn(e, t, Rn, (...r) => n[ot](...r));
|
|
2258
2258
|
}
|
|
2259
2259
|
}, tn = {
|
|
2260
2260
|
name: "i18n-d",
|
|
@@ -2269,7 +2269,7 @@ const en = {
|
|
|
2269
2269
|
}, pt),
|
|
2270
2270
|
setup(e, t) {
|
|
2271
2271
|
const n = e.i18n || vt({ useScope: "parent", __useComponent: !0 });
|
|
2272
|
-
return
|
|
2272
|
+
return Hn(e, t, Fn, (...r) => n[nt](...r));
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
2275
|
function Ys(e, t) {
|
|
@@ -2338,18 +2338,18 @@ function Ks(e, t, ...n) {
|
|
|
2338
2338
|
name: Ke.name
|
|
2339
2339
|
})), a && (e.component(o ? "i18n" : Ke.name, Ke), e.component(en.name, en), e.component(tn.name, tn)), e.directive("t", zs(t));
|
|
2340
2340
|
}
|
|
2341
|
-
const
|
|
2341
|
+
const jn = "vue-i18n: composer properties";
|
|
2342
2342
|
let at;
|
|
2343
2343
|
async function Xs(e, t) {
|
|
2344
2344
|
return new Promise((n, r) => {
|
|
2345
2345
|
try {
|
|
2346
|
-
|
|
2346
|
+
ks({
|
|
2347
2347
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2348
2348
|
label: ze["vue-devtools-plugin-vue-i18n"],
|
|
2349
2349
|
packageName: "vue-i18n",
|
|
2350
2350
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2351
2351
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2352
|
-
componentStateTypes: [
|
|
2352
|
+
componentStateTypes: [jn],
|
|
2353
2353
|
app: e
|
|
2354
2354
|
}, (o) => {
|
|
2355
2355
|
at = o, o.on.visitComponentTree(({ componentInstance: s, treeNode: l }) => {
|
|
@@ -2360,7 +2360,7 @@ async function Xs(e, t) {
|
|
|
2360
2360
|
id: "vue-i18n-resource-inspector",
|
|
2361
2361
|
label: ze["vue-i18n-resource-inspector"],
|
|
2362
2362
|
icon: "language",
|
|
2363
|
-
treeFilterPlaceholder:
|
|
2363
|
+
treeFilterPlaceholder: Fs["vue-i18n-resource-inspector"]
|
|
2364
2364
|
}), o.on.getInspectorTree((s) => {
|
|
2365
2365
|
s.app === e && s.inspectorId === "vue-i18n-resource-inspector" && ta(s, t);
|
|
2366
2366
|
});
|
|
@@ -2382,7 +2382,7 @@ async function Xs(e, t) {
|
|
|
2382
2382
|
}), o.addTimelineLayer({
|
|
2383
2383
|
id: "vue-i18n-timeline",
|
|
2384
2384
|
label: ze["vue-i18n-timeline"],
|
|
2385
|
-
color:
|
|
2385
|
+
color: Rs["vue-i18n-timeline"]
|
|
2386
2386
|
}), n(!0);
|
|
2387
2387
|
});
|
|
2388
2388
|
} catch (o) {
|
|
@@ -2390,14 +2390,14 @@ async function Xs(e, t) {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
});
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function Bn(e) {
|
|
2394
2394
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2395
2395
|
}
|
|
2396
2396
|
function Qs(e, t, n) {
|
|
2397
2397
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2398
2398
|
if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
|
|
2399
2399
|
const o = {
|
|
2400
|
-
label: `i18n (${
|
|
2400
|
+
label: `i18n (${Bn(e)} Scope)`,
|
|
2401
2401
|
textColor: 0,
|
|
2402
2402
|
backgroundColor: 16764185
|
|
2403
2403
|
};
|
|
@@ -2405,7 +2405,7 @@ function Qs(e, t, n) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
function rn(e, t) {
|
|
2408
|
-
const n =
|
|
2408
|
+
const n = jn;
|
|
2409
2409
|
e.state.push({
|
|
2410
2410
|
type: n,
|
|
2411
2411
|
key: "locale",
|
|
@@ -2481,7 +2481,7 @@ function ta(e, t) {
|
|
|
2481
2481
|
const a = t.mode === "composition" ? o : o.__composer;
|
|
2482
2482
|
n !== a && e.rootNodes.push({
|
|
2483
2483
|
id: a.id.toString(),
|
|
2484
|
-
label: `${
|
|
2484
|
+
label: `${Bn(r)} Scope`
|
|
2485
2485
|
});
|
|
2486
2486
|
}
|
|
2487
2487
|
}
|
|
@@ -2496,7 +2496,7 @@ function na(e, t) {
|
|
|
2496
2496
|
}
|
|
2497
2497
|
return n;
|
|
2498
2498
|
}
|
|
2499
|
-
function
|
|
2499
|
+
function Yn(e, t) {
|
|
2500
2500
|
if (e === "global")
|
|
2501
2501
|
return t.mode === "composition" ? t.global : t.global.__composer;
|
|
2502
2502
|
{
|
|
@@ -2505,7 +2505,7 @@ function Kn(e, t) {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
}
|
|
2507
2507
|
function oa(e, t) {
|
|
2508
|
-
const n =
|
|
2508
|
+
const n = Yn(e.nodeId, t);
|
|
2509
2509
|
return n && (e.state = ra(n)), null;
|
|
2510
2510
|
}
|
|
2511
2511
|
function ra(e) {
|
|
@@ -2584,10 +2584,10 @@ function lt(e, t) {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
2586
|
function sa(e, t) {
|
|
2587
|
-
const n =
|
|
2587
|
+
const n = Yn(e.nodeId, t);
|
|
2588
2588
|
if (n) {
|
|
2589
2589
|
const [r] = e.path;
|
|
2590
|
-
r === "locale" && h(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (h(e.state.value) ||
|
|
2590
|
+
r === "locale" && h(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (h(e.state.value) || k(e.state.value) || S(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && A(e.state.value) && (n.inheritLocale = e.state.value);
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
const aa = /* @__PURE__ */ ne("global-vue-i18n");
|
|
@@ -2618,7 +2618,7 @@ function la(e = {}, t) {
|
|
|
2618
2618
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
2619
2619
|
if (!await Xs(d, _))
|
|
2620
2620
|
throw Q(D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
2621
|
-
const E =
|
|
2621
|
+
const E = Nn();
|
|
2622
2622
|
{
|
|
2623
2623
|
const N = s;
|
|
2624
2624
|
N[De] && N[De](E);
|
|
@@ -2646,7 +2646,7 @@ function vt(e = {}) {
|
|
|
2646
2646
|
throw Q(D.MUST_BE_CALL_SETUP_TOP);
|
|
2647
2647
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
2648
2648
|
throw Q(D.NOT_INSLALLED);
|
|
2649
|
-
const n = ca(t), r = fa(n), o =
|
|
2649
|
+
const n = ca(t), r = fa(n), o = xn(t), a = ua(e, o);
|
|
2650
2650
|
if (a === "global")
|
|
2651
2651
|
return Ws(r, e, o), r;
|
|
2652
2652
|
if (a === "parent") {
|
|
@@ -2657,14 +2657,14 @@ function vt(e = {}) {
|
|
|
2657
2657
|
let l = s.__getInstance(t);
|
|
2658
2658
|
if (l == null) {
|
|
2659
2659
|
const i = j({}, e);
|
|
2660
|
-
"__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l =
|
|
2660
|
+
"__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l = Gn(i), da(s, t, l), s.__setInstance(t, l);
|
|
2661
2661
|
}
|
|
2662
2662
|
return l;
|
|
2663
2663
|
}
|
|
2664
2664
|
function ia(e, t, n) {
|
|
2665
|
-
const r =
|
|
2665
|
+
const r = bo();
|
|
2666
2666
|
{
|
|
2667
|
-
const o = r.run(() =>
|
|
2667
|
+
const o = r.run(() => Gn(e));
|
|
2668
2668
|
if (o == null)
|
|
2669
2669
|
throw Q(D.UNEXPECTED_ERROR);
|
|
2670
2670
|
return [r, o];
|
|
@@ -2698,13 +2698,13 @@ function _a(e, t, n = !1) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
function da(e, t, n) {
|
|
2700
2700
|
let r = null;
|
|
2701
|
-
|
|
2701
|
+
To(() => {
|
|
2702
2702
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el) {
|
|
2703
|
-
t.vnode.el.__VUE_I18N__ = n, r =
|
|
2703
|
+
t.vnode.el.__VUE_I18N__ = n, r = Nn();
|
|
2704
2704
|
const o = n;
|
|
2705
2705
|
o[De] && o[De](r), r.on("*", lt);
|
|
2706
2706
|
}
|
|
2707
|
-
}, t),
|
|
2707
|
+
}, t), yo(() => {
|
|
2708
2708
|
if ((process.env.NODE_ENV !== "production" || !1) && !0 && t.vnode.el && t.vnode.el.__VUE_I18N__) {
|
|
2709
2709
|
r && r.off("*", lt);
|
|
2710
2710
|
const o = n;
|
|
@@ -2724,7 +2724,7 @@ function pa(e, t) {
|
|
|
2724
2724
|
const o = Object.getOwnPropertyDescriptor(t, r);
|
|
2725
2725
|
if (!o)
|
|
2726
2726
|
throw Q(D.UNEXPECTED_ERROR);
|
|
2727
|
-
const a =
|
|
2727
|
+
const a = Lo(o.value) ? {
|
|
2728
2728
|
get() {
|
|
2729
2729
|
return o.value.value;
|
|
2730
2730
|
},
|
|
@@ -2745,7 +2745,7 @@ function pa(e, t) {
|
|
|
2745
2745
|
});
|
|
2746
2746
|
}
|
|
2747
2747
|
ps(Qr);
|
|
2748
|
-
hs(
|
|
2748
|
+
hs(yn);
|
|
2749
2749
|
Ms();
|
|
2750
2750
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2751
2751
|
const e = ft();
|
|
@@ -2768,10 +2768,10 @@ Ne("group", Dr);
|
|
|
2768
2768
|
Ne("group-closed", Cr);
|
|
2769
2769
|
Ne("user", Ar);
|
|
2770
2770
|
Ne("plus", Pr);
|
|
2771
|
-
Ne("minus",
|
|
2771
|
+
Ne("minus", kr);
|
|
2772
2772
|
const Ea = _e({
|
|
2773
2773
|
components: {
|
|
2774
|
-
CountShow:
|
|
2774
|
+
CountShow: dn,
|
|
2775
2775
|
GroupShow: Sr
|
|
2776
2776
|
},
|
|
2777
2777
|
props: {
|
|
@@ -2821,7 +2821,7 @@ const Oa = { class: "device-group-list" }, Na = { class: "search-panel" }, ba =
|
|
|
2821
2821
|
function ya(e, t, n, r, o, a) {
|
|
2822
2822
|
var s;
|
|
2823
2823
|
const l = ie("CountShow"), i = ie("group-show");
|
|
2824
|
-
return P(),
|
|
2824
|
+
return P(), R("div", Oa, [
|
|
2825
2825
|
C("div", Na, [
|
|
2826
2826
|
se(l, { countInfo: e.deviceGroup }, {
|
|
2827
2827
|
default: ce(() => [
|
|
@@ -2837,7 +2837,7 @@ function ya(e, t, n, r, o, a) {
|
|
|
2837
2837
|
}, 8, ["countInfo"])
|
|
2838
2838
|
]),
|
|
2839
2839
|
C("div", Ta, [
|
|
2840
|
-
(P(!0),
|
|
2840
|
+
(P(!0), R(Oe, null, Ce((s = e.deviceGroup) == null ? void 0 : s.items, (c, u) => (P(), _n(i, {
|
|
2841
2841
|
controlParams: e.controlParams,
|
|
2842
2842
|
key: u,
|
|
2843
2843
|
deviceGroup: c
|
|
@@ -2856,8 +2856,8 @@ function ya(e, t, n, r, o, a) {
|
|
|
2856
2856
|
])
|
|
2857
2857
|
]);
|
|
2858
2858
|
}
|
|
2859
|
-
const
|
|
2860
|
-
var
|
|
2859
|
+
const La = /* @__PURE__ */ de(Ea, [["render", ya], ["__scopeId", "data-v-17e4082a"]]);
|
|
2860
|
+
var Ia = Object.defineProperty, Sa = Object.defineProperties, wa = Object.getOwnPropertyDescriptors, sn = Object.getOwnPropertySymbols, Da = Object.prototype.hasOwnProperty, Ca = Object.prototype.propertyIsEnumerable, an = (e, t, n) => t in e ? Ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, zn = (e, t) => {
|
|
2861
2861
|
for (var n in t || (t = {}))
|
|
2862
2862
|
Da.call(t, n) && an(e, n, t[n]);
|
|
2863
2863
|
if (sn)
|
|
@@ -2871,13 +2871,13 @@ function Pa(e, t) {
|
|
|
2871
2871
|
({ leftTop: { col: n, row: r }, rightBottom: { col: o, row: a } }) => `<line x1="${n * t.col + ye}" y1="${r * t.row + ye}" x2="${o * t.col + ye}" y2="${a * t.row + ye}" stroke="black" stroke-width="5"/>`
|
|
2872
2872
|
).join(" ");
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function ka(e, t, n) {
|
|
2875
2875
|
return n.findIndex((r) => e >= r.leftTop.row && e < r.rightBottom.row && t >= r.leftTop.col && t < r.rightBottom.col) >= 0;
|
|
2876
2876
|
}
|
|
2877
|
-
function
|
|
2877
|
+
function Fa(e, t, n) {
|
|
2878
2878
|
n.forEach((r) => {
|
|
2879
|
-
const o = Aa(
|
|
2880
|
-
id:
|
|
2879
|
+
const o = Aa(zn({}, r.leftTop), {
|
|
2880
|
+
id: Kn(r.leftTop),
|
|
2881
2881
|
layout: {
|
|
2882
2882
|
left: 100 / t.col * r.leftTop.col,
|
|
2883
2883
|
top: 100 / t.row * r.leftTop.row,
|
|
@@ -2888,11 +2888,11 @@ function Ra(e, t, n) {
|
|
|
2888
2888
|
e.push(o);
|
|
2889
2889
|
});
|
|
2890
2890
|
}
|
|
2891
|
-
function
|
|
2891
|
+
function Kn(e) {
|
|
2892
2892
|
return `${e.row}-${e.col}`;
|
|
2893
2893
|
}
|
|
2894
2894
|
const cn = "ComponentsDefaultLayoutKeyAF84566";
|
|
2895
|
-
function
|
|
2895
|
+
function Ra(e) {
|
|
2896
2896
|
const t = [], n = [];
|
|
2897
2897
|
for (let r = 0; r < e.points.length / 2; r++)
|
|
2898
2898
|
n.push(e.points.slice(r * 2, r * 2 + 2));
|
|
@@ -2923,20 +2923,20 @@ const Se = {
|
|
|
2923
2923
|
const n = [];
|
|
2924
2924
|
for (let r = 0; r < e.row; r++)
|
|
2925
2925
|
for (let o = 0; o < e.col; o++) {
|
|
2926
|
-
if (
|
|
2926
|
+
if (ka(r, o, t))
|
|
2927
2927
|
continue;
|
|
2928
|
-
const a =
|
|
2928
|
+
const a = zn({
|
|
2929
2929
|
layout: {
|
|
2930
2930
|
left: 100 / e.col * o,
|
|
2931
2931
|
top: 100 / e.row * r,
|
|
2932
2932
|
width: 100 / e.col,
|
|
2933
2933
|
height: 100 / e.row
|
|
2934
2934
|
},
|
|
2935
|
-
id:
|
|
2935
|
+
id: Kn({ row: r, col: o })
|
|
2936
2936
|
}, { row: r, col: o });
|
|
2937
2937
|
n.push(a);
|
|
2938
2938
|
}
|
|
2939
|
-
return
|
|
2939
|
+
return Fa(n, e, t), n;
|
|
2940
2940
|
},
|
|
2941
2941
|
TransLayoutToSVG(e, t) {
|
|
2942
2942
|
const n = [];
|
|
@@ -2960,7 +2960,7 @@ const Se = {
|
|
|
2960
2960
|
});
|
|
2961
2961
|
const a = r.concat(...o), s = [];
|
|
2962
2962
|
a.forEach((c) => {
|
|
2963
|
-
c.points = c.points.sort(), s.push(...
|
|
2963
|
+
c.points = c.points.sort(), s.push(...Ra(c));
|
|
2964
2964
|
});
|
|
2965
2965
|
const l = {
|
|
2966
2966
|
row: t.height / e.row,
|
|
@@ -3036,8 +3036,8 @@ const Se = {
|
|
|
3036
3036
|
});
|
|
3037
3037
|
const Ma = ["onClick"], Va = { style: { position: "relative", display: "inline-block", margin: "10px" } }, Ua = ["innerHTML"], xa = { style: { "vertical-align": "middle" } };
|
|
3038
3038
|
function Ga(e, t, n, r, o, a) {
|
|
3039
|
-
return P(),
|
|
3040
|
-
(P(!0),
|
|
3039
|
+
return P(), R("div", null, [
|
|
3040
|
+
(P(!0), R(Oe, null, Ce(e.layoutInfos, (s) => (P(), R("div", {
|
|
3041
3041
|
class: Xe(s.select ? "layout-item layout-item-select" : "layout-item"),
|
|
3042
3042
|
onClick: (l) => e.selectClick(s)
|
|
3043
3043
|
}, [
|
|
@@ -3083,24 +3083,23 @@ const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-e550e73
|
|
|
3083
3083
|
];
|
|
3084
3084
|
let r = Se.StorageDefaultLayout.get();
|
|
3085
3085
|
const o = r || n[0];
|
|
3086
|
-
function a(
|
|
3087
|
-
const
|
|
3088
|
-
id:
|
|
3089
|
-
row:
|
|
3090
|
-
col:
|
|
3086
|
+
function a(_, d) {
|
|
3087
|
+
const g = Se.TransLayoutToFrams(_.layout).map(({ id: v, row: O, col: E }) => ({
|
|
3088
|
+
id: v,
|
|
3089
|
+
row: O,
|
|
3090
|
+
col: E
|
|
3091
3091
|
}));
|
|
3092
|
-
return t.emit("LayoutChange",
|
|
3092
|
+
return t.emit("LayoutChange", _, g), _.cancel || (l.value = d), !_.cancel;
|
|
3093
3093
|
}
|
|
3094
|
-
const s = function(
|
|
3095
|
-
JSON.stringify(r) != JSON.stringify(
|
|
3096
|
-
}, l = x(""), i = x(!1), c = (
|
|
3097
|
-
i.value
|
|
3094
|
+
const s = function(_, d) {
|
|
3095
|
+
JSON.stringify(r) != JSON.stringify(_) && a(_, d) && (r = _.layout, Se.StorageDefaultLayout.set(_.layout)), l.value.length == 0 && a(_, d);
|
|
3096
|
+
}, l = x(""), i = x(!1), c = () => {
|
|
3097
|
+
i.value = !i.value, i.value ? window.addEventListener("click", u) : window.removeEventListener("click", u);
|
|
3098
|
+
}, u = (_) => {
|
|
3099
|
+
i.value && _.composedPath().findIndex(({ className: g }) => g == "layout-switcher") < 0 && (i.value = !1, window.removeEventListener("click", u));
|
|
3098
3100
|
};
|
|
3099
|
-
return
|
|
3100
|
-
|
|
3101
|
-
}), mn(() => {
|
|
3102
|
-
window.removeEventListener("click", c);
|
|
3103
|
-
}), {
|
|
3101
|
+
return {
|
|
3102
|
+
clickShowSelectPanel: c,
|
|
3104
3103
|
showSelectPanel: i,
|
|
3105
3104
|
onselect: s,
|
|
3106
3105
|
svgSelect: l,
|
|
@@ -3110,14 +3109,14 @@ const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-e550e73
|
|
|
3110
3109
|
},
|
|
3111
3110
|
expose: []
|
|
3112
3111
|
});
|
|
3113
|
-
const
|
|
3112
|
+
const Xn = (e) => (Co("data-v-095d33f6"), e = e(), Ao(), e), ja = { class: "layout-switcher" }, Ba = ["innerHTML"], Ya = { class: "switch-panel" }, za = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("div", { style: { "margin-left": "10px" } }, [
|
|
3114
3113
|
/* @__PURE__ */ C("span", null, "\u8BF7\u9009\u62E9\u5E03\u5C40\u6837\u5F0F")
|
|
3115
|
-
], -1)), Ka = { style: { "margin-left": "10px", padding: "10px" } }, Xa = { style: { "margin-left": "10px" } }, Qa = /* @__PURE__ */
|
|
3114
|
+
], -1)), Ka = { style: { "margin-left": "10px", padding: "10px" } }, Xa = { style: { "margin-left": "10px" } }, Qa = /* @__PURE__ */ Xn(() => /* @__PURE__ */ C("span", null, "\u6807\u51C6\u6A21\u5F0F\uFF1A", -1));
|
|
3116
3115
|
function Ja(e, t, n, r, o, a) {
|
|
3117
3116
|
const s = ie("LayoutShow");
|
|
3118
|
-
return P(),
|
|
3117
|
+
return P(), R("div", ja, [
|
|
3119
3118
|
C("div", {
|
|
3120
|
-
onClick: t[0] || (t[0] = (l) => e.
|
|
3119
|
+
onClick: t[0] || (t[0] = (...l) => e.clickShowSelectPanel && e.clickShowSelectPanel(...l)),
|
|
3121
3120
|
class: "switch-switcher"
|
|
3122
3121
|
}, [
|
|
3123
3122
|
C("div", {
|
|
@@ -3142,7 +3141,7 @@ function Ja(e, t, n, r, o, a) {
|
|
|
3142
3141
|
])
|
|
3143
3142
|
]);
|
|
3144
3143
|
}
|
|
3145
|
-
const qa = /* @__PURE__ */ de(Ha, [["render", Ja], ["__scopeId", "data-v-
|
|
3144
|
+
const qa = /* @__PURE__ */ de(Ha, [["render", Ja], ["__scopeId", "data-v-095d33f6"]]), Za = _e({
|
|
3146
3145
|
props: {
|
|
3147
3146
|
layout: {
|
|
3148
3147
|
type: Object
|
|
@@ -3162,10 +3161,10 @@ const qa = /* @__PURE__ */ de(Ha, [["render", Ja], ["__scopeId", "data-v-98aa5a4
|
|
|
3162
3161
|
});
|
|
3163
3162
|
const el = { style: { position: "relative", height: "100%", width: "100%" } };
|
|
3164
3163
|
function tl(e, t, n, r, o, a) {
|
|
3165
|
-
return P(),
|
|
3166
|
-
(P(!0),
|
|
3164
|
+
return P(), R("div", el, [
|
|
3165
|
+
(P(!0), R(Oe, null, Ce(e.frameRef, ({ layout: s, id: l, row: i, col: c }) => (P(), R("div", {
|
|
3167
3166
|
class: "play-area",
|
|
3168
|
-
style:
|
|
3167
|
+
style: Le(`position: absolute; top: calc(${s.top}%); left: calc(${s.left}%); width: calc(${s.width}%); height: calc(${s.height}%);`)
|
|
3169
3168
|
}, [
|
|
3170
3169
|
oe(e.$slots, "default", {
|
|
3171
3170
|
id: l,
|
|
@@ -3177,7 +3176,7 @@ function tl(e, t, n, r, o, a) {
|
|
|
3177
3176
|
]);
|
|
3178
3177
|
}
|
|
3179
3178
|
const nl = /* @__PURE__ */ de(Za, [["render", tl], ["__scopeId", "data-v-efd900be"]]), un = {
|
|
3180
|
-
RecursionDeviceGroup:
|
|
3179
|
+
RecursionDeviceGroup: La,
|
|
3181
3180
|
VideoAreasLayoutShow: nl,
|
|
3182
3181
|
MultiVideoAreaLayoutSwitch: qa
|
|
3183
3182
|
}, sl = {
|