smarteye-e-components 0.0.42 → 0.0.43
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 +5 -5
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +407 -394
- 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
|
|
1
|
+
import { defineComponent as _e, computed as H, openBlock as P, createElementBlock as k, renderSlot as oe, createElementVNode as C, toDisplayString as ue, h as ke, ref as x, watch as $e, normalizeStyle as Ie, Fragment as Oe, renderList as De, 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 yo, onMounted as dn, onUnmounted as mn, isRef as Io, Text as Lo, 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) => {
|
|
@@ -168,7 +168,7 @@ const Po = _e({
|
|
|
168
168
|
}
|
|
169
169
|
return 0;
|
|
170
170
|
}
|
|
171
|
-
const n =
|
|
171
|
+
const n = H(() => t((o) => {
|
|
172
172
|
var a, s;
|
|
173
173
|
if (o.devices) {
|
|
174
174
|
let l = (a = o.devices) == null ? void 0 : a.filter((c) => c.online);
|
|
@@ -178,7 +178,7 @@ const Po = _e({
|
|
|
178
178
|
return 0;
|
|
179
179
|
}, e.countInfo));
|
|
180
180
|
return {
|
|
181
|
-
totalCount:
|
|
181
|
+
totalCount: H(() => t((o) => {
|
|
182
182
|
var a;
|
|
183
183
|
if (o.devices) {
|
|
184
184
|
let s = o.devices;
|
|
@@ -191,7 +191,7 @@ const Po = _e({
|
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
|
-
const
|
|
194
|
+
const de = (e, t) => {
|
|
195
195
|
const n = e.__vccOpts || e;
|
|
196
196
|
for (const [r, o] of t)
|
|
197
197
|
n[r] = o;
|
|
@@ -206,20 +206,20 @@ function ko(e, t, n, r, o, a) {
|
|
|
206
206
|
C("span", Fo, ue(e.onlineCount) + "/" + ue(e.totalCount), 1)
|
|
207
207
|
]);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const gn = /* @__PURE__ */ de(Po, [["render", ko], ["__scopeId", "data-v-a063c331"]]), pn = Object.freeze(
|
|
210
210
|
{
|
|
211
211
|
left: 0,
|
|
212
212
|
top: 0,
|
|
213
213
|
width: 16,
|
|
214
214
|
height: 16
|
|
215
215
|
}
|
|
216
|
-
),
|
|
216
|
+
), hn = Object.freeze({
|
|
217
217
|
rotate: 0,
|
|
218
218
|
vFlip: !1,
|
|
219
219
|
hFlip: !1
|
|
220
220
|
}), ct = Object.freeze({
|
|
221
|
-
...
|
|
222
|
-
...
|
|
221
|
+
...pn,
|
|
222
|
+
...hn
|
|
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
|
+
...pn
|
|
231
231
|
});
|
|
232
|
-
const
|
|
232
|
+
const vn = Object.freeze({
|
|
233
233
|
width: null,
|
|
234
234
|
height: null
|
|
235
|
-
}),
|
|
236
|
-
...
|
|
237
|
-
...
|
|
235
|
+
}), En = Object.freeze({
|
|
236
|
+
...vn,
|
|
237
|
+
...hn
|
|
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 vn ? (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
|
+
...En,
|
|
318
318
|
...t
|
|
319
319
|
}, o = {
|
|
320
320
|
left: n.left,
|
|
@@ -352,22 +352,22 @@ function Wo(e, t) {
|
|
|
352
352
|
N % 2 === 1 && (o.left !== o.top && (b = o.left, o.left = o.top, o.top = b), o.width !== o.height && (b = o.width, o.width = o.height, o.height = b)), v.length && (a = '<g transform="' + v.join(" ") + '">' + a + "</g>");
|
|
353
353
|
});
|
|
354
354
|
const s = r.width, l = r.height, i = o.width, c = o.height;
|
|
355
|
-
let u,
|
|
356
|
-
return s === null ? (
|
|
355
|
+
let u, _;
|
|
356
|
+
return s === null ? (_ = l === null ? "1em" : l === "auto" ? c : l, u = Tt(_, i / c)) : (u = s === "auto" ? i : s, _ = l === null ? Tt(u, c / i) : l === "auto" ? c : l), {
|
|
357
357
|
attributes: {
|
|
358
358
|
width: u.toString(),
|
|
359
|
-
height:
|
|
359
|
+
height: _.toString(),
|
|
360
360
|
viewBox: o.left.toString() + " " + o.top.toString() + " " + i.toString() + " " + c.toString()
|
|
361
361
|
},
|
|
362
362
|
body: a
|
|
363
363
|
};
|
|
364
364
|
}
|
|
365
|
-
const
|
|
365
|
+
const Ho = /\sid="(\S+)"/g, jo = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
|
|
366
366
|
let Bo = 0;
|
|
367
|
-
function Yo(e, t =
|
|
367
|
+
function Yo(e, t = jo) {
|
|
368
368
|
const n = [];
|
|
369
369
|
let r;
|
|
370
|
-
for (; r =
|
|
370
|
+
for (; r = Ho.exec(e); )
|
|
371
371
|
n.push(r[1]);
|
|
372
372
|
return n.length && n.forEach((o) => {
|
|
373
373
|
const a = typeof t == "function" ? t(o) : t + (Bo++).toString(), s = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
@@ -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
|
+
...En,
|
|
394
394
|
inline: !1
|
|
395
395
|
}, Qo = {
|
|
396
396
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -401,7 +401,7 @@ const yt = {
|
|
|
401
401
|
display: "inline-block"
|
|
402
402
|
}, Qe = {
|
|
403
403
|
backgroundColor: "currentColor"
|
|
404
|
-
},
|
|
404
|
+
}, On = {
|
|
405
405
|
backgroundColor: "transparent"
|
|
406
406
|
}, It = {
|
|
407
407
|
Image: "var(--svg)",
|
|
@@ -410,7 +410,7 @@ const yt = {
|
|
|
410
410
|
}, Lt = {
|
|
411
411
|
webkitMask: Qe,
|
|
412
412
|
mask: Qe,
|
|
413
|
-
background:
|
|
413
|
+
background: On
|
|
414
414
|
};
|
|
415
415
|
for (const e in Lt) {
|
|
416
416
|
const t = Lt[e];
|
|
@@ -469,10 +469,10 @@ const qo = (e, t) => {
|
|
|
469
469
|
let O = 0, E = t.id;
|
|
470
470
|
return typeof E == "string" && (E = E.replace(/-/g, "_")), r.innerHTML = Yo(i.body, E ? () => E + "ID" + O++ : "iconifyVue"), ke("svg", r);
|
|
471
471
|
}
|
|
472
|
-
const { body: u, width:
|
|
472
|
+
const { body: u, width: _, height: d } = e, g = o === "mask" || (o === "bg" ? !1 : u.indexOf("currentColor") !== -1), v = zo(u, {
|
|
473
473
|
...c,
|
|
474
|
-
width:
|
|
475
|
-
height:
|
|
474
|
+
width: _ + "",
|
|
475
|
+
height: d + ""
|
|
476
476
|
});
|
|
477
477
|
return r.style = {
|
|
478
478
|
...a,
|
|
@@ -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 : On,
|
|
484
484
|
...l
|
|
485
485
|
}, ke("span", r);
|
|
486
|
-
},
|
|
486
|
+
}, Nn = /* @__PURE__ */ Object.create(null);
|
|
487
487
|
function Ne(e, t) {
|
|
488
|
-
|
|
488
|
+
Nn[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" ? Nn[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
|
|
@@ -534,15 +534,15 @@ const lr = {
|
|
|
534
534
|
},
|
|
535
535
|
setup(e) {
|
|
536
536
|
const t = {
|
|
537
|
-
screenHeight:
|
|
538
|
-
startOffset:
|
|
539
|
-
start:
|
|
540
|
-
end:
|
|
541
|
-
}, n =
|
|
542
|
-
listHeight:
|
|
543
|
-
visibleCount:
|
|
544
|
-
getTransform:
|
|
545
|
-
visibleData:
|
|
537
|
+
screenHeight: x(0),
|
|
538
|
+
startOffset: x(0),
|
|
539
|
+
start: x(0),
|
|
540
|
+
end: x(0)
|
|
541
|
+
}, n = x(), r = {
|
|
542
|
+
listHeight: H(() => e.listData.length * e.itemSize),
|
|
543
|
+
visibleCount: H(() => Math.ceil(t.screenHeight.value / e.itemSize)),
|
|
544
|
+
getTransform: H(() => `translate3d(0,${t.startOffset.value}px,0)`),
|
|
545
|
+
visibleData: H(() => e.listData.slice(t.start.value, Math.min(t.end.value, e.listData.length)))
|
|
546
546
|
};
|
|
547
547
|
return Ct(sr(Ct({}, r), {
|
|
548
548
|
virList: n
|
|
@@ -579,7 +579,7 @@ function ir(e, t, n, r, o, a) {
|
|
|
579
579
|
class: "infinite-list",
|
|
580
580
|
style: Ie({ transform: e.getTransform })
|
|
581
581
|
}, [
|
|
582
|
-
(P(!0), k(
|
|
582
|
+
(P(!0), k(Oe, null, De(e.visibleData, (s) => (P(), k("div", {
|
|
583
583
|
ref_for: !0,
|
|
584
584
|
ref: "items",
|
|
585
585
|
class: "infinite-list-item",
|
|
@@ -591,7 +591,7 @@ function ir(e, t, n, r, o, a) {
|
|
|
591
591
|
], 4)
|
|
592
592
|
], 544);
|
|
593
593
|
}
|
|
594
|
-
const cr = /* @__PURE__ */
|
|
594
|
+
const cr = /* @__PURE__ */ de(lr, [["render", ir], ["__scopeId", "data-v-12d2a294"]]);
|
|
595
595
|
var ur = Object.defineProperty, fr = Object.defineProperties, _r = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Pt = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, gr = (e, t) => {
|
|
596
596
|
for (var n in t || (t = {}))
|
|
597
597
|
dr.call(t, n) && Pt(e, n, t[n]);
|
|
@@ -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: gn,
|
|
607
607
|
Icon: Zo
|
|
608
608
|
},
|
|
609
609
|
name: "group-show",
|
|
@@ -612,11 +612,11 @@ const hr = _e({
|
|
|
612
612
|
controlParams: Object
|
|
613
613
|
},
|
|
614
614
|
setup(e, t) {
|
|
615
|
-
const n =
|
|
615
|
+
const n = x(), r = fn("theme"), o = {
|
|
616
616
|
filterDevice(u) {
|
|
617
|
-
var
|
|
617
|
+
var _, d, g, v, O;
|
|
618
618
|
let E = !0;
|
|
619
|
-
(
|
|
619
|
+
(_ = e.controlParams) != null && _.searchStr && (E = u.name.indexOf((d = e.controlParams) == null ? void 0 : d.searchStr) >= 0 || u.id.indexOf((g = e.controlParams) == null ? void 0 : g.searchStr) >= 0 || typeof u.user == "string" && u.user.indexOf((v = e.controlParams) == null ? void 0 : v.searchStr) >= 0);
|
|
620
620
|
let N = !0;
|
|
621
621
|
return (O = e.controlParams) != null && O.onlyShowOnline && (N = u.online), E && N;
|
|
622
622
|
},
|
|
@@ -628,31 +628,31 @@ const hr = _e({
|
|
|
628
628
|
return u.name.length > 0 ? u.name : u.id;
|
|
629
629
|
}
|
|
630
630
|
}, a = {
|
|
631
|
-
filteredDevices:
|
|
631
|
+
filteredDevices: H(() => {
|
|
632
632
|
var u;
|
|
633
|
-
const
|
|
634
|
-
return
|
|
633
|
+
const _ = (u = e.deviceGroup) == null ? void 0 : u.devices, d = _ && _.filter((v) => o.filterDevice(v)) || [];
|
|
634
|
+
return d.filter((v) => v.online).concat(d.filter((v) => !v.online));
|
|
635
635
|
})
|
|
636
|
-
}, s =
|
|
637
|
-
function l(u,
|
|
638
|
-
if (
|
|
636
|
+
}, s = H(() => a.filteredDevices.value.length > 10 ? "400px" : `${a.filteredDevices.value.length * 40}px`);
|
|
637
|
+
function l(u, _) {
|
|
638
|
+
if (_.length == 0)
|
|
639
639
|
return !0;
|
|
640
|
-
let
|
|
641
|
-
if ((u == null ? void 0 : u.name.indexOf(
|
|
640
|
+
let d = !1;
|
|
641
|
+
if ((u == null ? void 0 : u.name.indexOf(_)) > 0 && (d = !0), d || (d = (u == null ? void 0 : u.devices.find((g) => g.name.indexOf(_) >= 0 || g.id.indexOf(_) >= 0 || g.user && g.user.indexOf(_) >= 0)) != null), !d) {
|
|
642
642
|
for (let g = 0; g < u.items.length; g++)
|
|
643
|
-
if (l(u.items[g],
|
|
643
|
+
if (l(u.items[g], _))
|
|
644
644
|
return !0;
|
|
645
645
|
}
|
|
646
|
-
return
|
|
646
|
+
return d;
|
|
647
647
|
}
|
|
648
|
-
const i =
|
|
648
|
+
const i = H(() => {
|
|
649
649
|
if (e.controlParams) {
|
|
650
650
|
const u = e.controlParams.searchStr;
|
|
651
651
|
if (e.deviceGroup)
|
|
652
652
|
return l(e.deviceGroup, u);
|
|
653
653
|
}
|
|
654
654
|
return !1;
|
|
655
|
-
}), c =
|
|
655
|
+
}), c = x(!1);
|
|
656
656
|
return pr(gr({
|
|
657
657
|
innerUtils: o
|
|
658
658
|
}, a), {
|
|
@@ -689,7 +689,7 @@ function Lr(e, t, n, r, o, a) {
|
|
|
689
689
|
controlParams: e.controlParams,
|
|
690
690
|
ref: "countRef"
|
|
691
691
|
}, {
|
|
692
|
-
default: ce(({ online:
|
|
692
|
+
default: ce(({ online: _, total: d }) => {
|
|
693
693
|
var g, v;
|
|
694
694
|
return [
|
|
695
695
|
e.deviceGroup && e.deviceGroup.devices.length + e.deviceGroup.items.length > 0 ? (P(), k("span", vr, [
|
|
@@ -723,9 +723,9 @@ function Lr(e, t, n, r, o, a) {
|
|
|
723
723
|
_: 3
|
|
724
724
|
}, 8, ["countInfo", "controlParams"]),
|
|
725
725
|
e.bShow ? (P(), k("div", Tr, [
|
|
726
|
-
(P(!0), k(
|
|
727
|
-
key:
|
|
728
|
-
deviceGroup:
|
|
726
|
+
(P(!0), k(Oe, null, De((s = e.deviceGroup) == null ? void 0 : s.items, (_, d) => (P(), _n(c, {
|
|
727
|
+
key: d,
|
|
728
|
+
deviceGroup: _,
|
|
729
729
|
controlParams: e.controlParams
|
|
730
730
|
}, {
|
|
731
731
|
group: ce(({ group: g }) => [
|
|
@@ -747,9 +747,9 @@ function Lr(e, t, n, r, o, a) {
|
|
|
747
747
|
"list-data": e.filteredDevices,
|
|
748
748
|
"item-size": 40
|
|
749
749
|
}, {
|
|
750
|
-
default: ce(({ data:
|
|
750
|
+
default: ce(({ data: _ }) => [
|
|
751
751
|
C("div", {
|
|
752
|
-
class: Xe(
|
|
752
|
+
class: Xe(_.online && "online-device")
|
|
753
753
|
}, [
|
|
754
754
|
se(l, {
|
|
755
755
|
icon: "user",
|
|
@@ -757,12 +757,12 @@ function Lr(e, t, n, r, o, a) {
|
|
|
757
757
|
class: "device-avatar"
|
|
758
758
|
}),
|
|
759
759
|
C("span", {
|
|
760
|
-
title: e.innerUtils.deviceText(
|
|
760
|
+
title: e.innerUtils.deviceText(_),
|
|
761
761
|
class: "device-name"
|
|
762
|
-
}, ue(e.innerUtils.deviceText(
|
|
762
|
+
}, ue(e.innerUtils.deviceText(_)), 9, yr),
|
|
763
763
|
C("div", Ir, [
|
|
764
764
|
oe(e.$slots, "device", {
|
|
765
|
-
device:
|
|
765
|
+
device: _,
|
|
766
766
|
group: e.deviceGroup
|
|
767
767
|
}, void 0, !0)
|
|
768
768
|
])
|
|
@@ -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__ */
|
|
777
|
+
const Sr = /* @__PURE__ */ de(hr, [["render", Lr], ["__scopeId", "data-v-93cfc8dc"]]), wr = {
|
|
778
778
|
width: 1024,
|
|
779
779
|
height: 1024,
|
|
780
780
|
body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
|
|
@@ -820,7 +820,7 @@ const kr = typeof Symbol == "function" && typeof Symbol.toStringTag == "symbol",
|
|
|
820
820
|
function be(e, t) {
|
|
821
821
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
822
822
|
}
|
|
823
|
-
const
|
|
823
|
+
const j = Object.assign;
|
|
824
824
|
let Rt;
|
|
825
825
|
const ft = () => Rt || (Rt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
826
826
|
function Ft(e) {
|
|
@@ -830,7 +830,7 @@ const Ur = Object.prototype.hasOwnProperty;
|
|
|
830
830
|
function _t(e, t) {
|
|
831
831
|
return Ur.call(e, t);
|
|
832
832
|
}
|
|
833
|
-
const R = Array.isArray, $ = (e) => typeof e == "function", h = (e) => typeof e == "string", A = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object",
|
|
833
|
+
const R = Array.isArray, $ = (e) => typeof e == "function", h = (e) => typeof e == "string", A = (e) => typeof e == "boolean", S = (e) => e !== null && typeof e == "object", bn = Object.prototype.toString, dt = (e) => bn.call(e), y = (e) => dt(e) === "[object Object]", xr = (e) => e == null ? "" : R(e) || y(e) && e.toString === bn ? JSON.stringify(e, null, 2) : String(e), kt = 2;
|
|
834
834
|
function Gr(e, t = 0, n = e.length) {
|
|
835
835
|
const r = e.split(/\r?\n/);
|
|
836
836
|
let o = 0;
|
|
@@ -844,8 +844,8 @@ function Gr(e, t = 0, n = e.length) {
|
|
|
844
844
|
a.push(`${i}${" ".repeat(3 - String(i).length)}| ${r[l]}`);
|
|
845
845
|
const c = r[l].length;
|
|
846
846
|
if (l === s) {
|
|
847
|
-
const u = t - (o - c) + 1,
|
|
848
|
-
a.push(" | " + " ".repeat(u) + "^".repeat(
|
|
847
|
+
const u = t - (o - c) + 1, _ = Math.max(1, n > o ? c - u : n - t);
|
|
848
|
+
a.push(" | " + " ".repeat(u) + "^".repeat(_));
|
|
849
849
|
} else if (l > s) {
|
|
850
850
|
if (n > o) {
|
|
851
851
|
const u = Math.max(Math.min(n - o, c), 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 Tn() {
|
|
863
863
|
const e = /* @__PURE__ */ new Map();
|
|
864
864
|
return {
|
|
865
865
|
events: e,
|
|
@@ -881,7 +881,7 @@ function Nn() {
|
|
|
881
881
|
* (c) 2022 kazuya kawaguchi
|
|
882
882
|
* Released under the MIT License.
|
|
883
883
|
*/
|
|
884
|
-
const
|
|
884
|
+
const G = {
|
|
885
885
|
EXPECTED_TOKEN: 1,
|
|
886
886
|
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
887
887
|
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
@@ -898,22 +898,22 @@ const x = {
|
|
|
898
898
|
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
899
899
|
__EXTEND_POINT__: 15
|
|
900
900
|
}, Wr = {
|
|
901
|
-
[
|
|
902
|
-
[
|
|
903
|
-
[
|
|
904
|
-
[
|
|
905
|
-
[
|
|
906
|
-
[
|
|
907
|
-
[
|
|
908
|
-
[
|
|
909
|
-
[
|
|
910
|
-
[
|
|
911
|
-
[
|
|
912
|
-
[
|
|
913
|
-
[
|
|
914
|
-
[
|
|
901
|
+
[G.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
902
|
+
[G.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
903
|
+
[G.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
|
|
904
|
+
[G.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
|
|
905
|
+
[G.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
|
|
906
|
+
[G.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
|
|
907
|
+
[G.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
|
|
908
|
+
[G.EMPTY_PLACEHOLDER]: "Empty placeholder",
|
|
909
|
+
[G.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
|
|
910
|
+
[G.INVALID_LINKED_FORMAT]: "Invalid linked format",
|
|
911
|
+
[G.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
|
|
912
|
+
[G.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
|
|
913
|
+
[G.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
|
|
914
|
+
[G.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'"
|
|
915
915
|
};
|
|
916
|
-
function
|
|
916
|
+
function yn(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 bn(e, t, n = {}) {
|
|
|
922
922
|
* (c) 2022 kazuya kawaguchi
|
|
923
923
|
* Released under the MIT License.
|
|
924
924
|
*/
|
|
925
|
-
const
|
|
925
|
+
const In = {
|
|
926
926
|
I18nInit: "i18n:init",
|
|
927
927
|
FunctionTranslate: "function:translate"
|
|
928
928
|
};
|
|
@@ -978,9 +978,9 @@ ae[6] = {
|
|
|
978
978
|
o: 8,
|
|
979
979
|
l: [6, 0]
|
|
980
980
|
};
|
|
981
|
-
const
|
|
982
|
-
function
|
|
983
|
-
return
|
|
981
|
+
const Hr = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
982
|
+
function jr(e) {
|
|
983
|
+
return Hr.test(e);
|
|
984
984
|
}
|
|
985
985
|
function Br(e) {
|
|
986
986
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
@@ -1013,35 +1013,35 @@ function Yr(e) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
function zr(e) {
|
|
1015
1015
|
const t = e.trim();
|
|
1016
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1016
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : jr(t) ? Br(t) : "*" + t;
|
|
1017
1017
|
}
|
|
1018
1018
|
function Kr(e) {
|
|
1019
1019
|
const t = [];
|
|
1020
|
-
let n = -1, r = 0, o = 0, a, s, l, i, c, u,
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1020
|
+
let n = -1, r = 0, o = 0, a, s, l, i, c, u, _;
|
|
1021
|
+
const d = [];
|
|
1022
|
+
d[0] = () => {
|
|
1023
1023
|
s === void 0 ? s = l : s += l;
|
|
1024
|
-
},
|
|
1024
|
+
}, d[1] = () => {
|
|
1025
1025
|
s !== void 0 && (t.push(s), s = void 0);
|
|
1026
|
-
},
|
|
1027
|
-
|
|
1028
|
-
},
|
|
1026
|
+
}, d[2] = () => {
|
|
1027
|
+
d[0](), o++;
|
|
1028
|
+
}, d[3] = () => {
|
|
1029
1029
|
if (o > 0)
|
|
1030
|
-
o--, r = 4,
|
|
1030
|
+
o--, r = 4, d[0]();
|
|
1031
1031
|
else {
|
|
1032
1032
|
if (o = 0, s === void 0 || (s = zr(s), s === !1))
|
|
1033
1033
|
return !1;
|
|
1034
|
-
|
|
1034
|
+
d[1]();
|
|
1035
1035
|
}
|
|
1036
1036
|
};
|
|
1037
1037
|
function g() {
|
|
1038
1038
|
const v = e[n + 1];
|
|
1039
1039
|
if (r === 5 && v === "'" || r === 6 && v === '"')
|
|
1040
|
-
return n++, l = "\\" + v,
|
|
1040
|
+
return n++, l = "\\" + v, d[0](), !0;
|
|
1041
1041
|
}
|
|
1042
1042
|
for (; r !== null; )
|
|
1043
1043
|
if (n++, a = e[n], !(a === "\\" && g())) {
|
|
1044
|
-
if (i = Yr(a),
|
|
1044
|
+
if (i = Yr(a), _ = ae[r], c = _[i] || _.l || 8, c === 8 || (r = c[0], c[1] !== void 0 && (u = d[c[1]], u && (l = a, u() === !1))))
|
|
1045
1045
|
return;
|
|
1046
1046
|
if (r === 7)
|
|
1047
1047
|
return t;
|
|
@@ -1086,7 +1086,7 @@ function rs(e = {}) {
|
|
|
1086
1086
|
const b = $(e.messages) ? e.messages(N) : S(e.messages) ? e.messages[N] : !1;
|
|
1087
1087
|
return b || (e.parent ? e.parent.message(N) : qr);
|
|
1088
1088
|
}
|
|
1089
|
-
const
|
|
1089
|
+
const _ = (N) => e.modifiers ? e.modifiers[N] : Jr, d = y(e.processor) && $(e.processor.normalize) ? e.processor.normalize : es, g = y(e.processor) && $(e.processor.interpolate) ? e.processor.interpolate : ts, v = y(e.processor) && h(e.processor.type) ? e.processor.type : Zr, E = {
|
|
1090
1090
|
list: l,
|
|
1091
1091
|
named: c,
|
|
1092
1092
|
plural: a,
|
|
@@ -1095,12 +1095,12 @@ function rs(e = {}) {
|
|
|
1095
1095
|
let p = "text", w = "";
|
|
1096
1096
|
b.length === 1 ? S(L) ? (w = L.modifier || w, p = L.type || p) : h(L) && (w = L || w) : b.length === 2 && (h(L) && (w = L || w), h(T) && (p = T || p));
|
|
1097
1097
|
let I = u(N)(E);
|
|
1098
|
-
return p === "vnode" && R(I) && w && (I = I[0]), w ?
|
|
1098
|
+
return p === "vnode" && R(I) && w && (I = I[0]), w ? _(w)(I, p) : I;
|
|
1099
1099
|
},
|
|
1100
1100
|
message: u,
|
|
1101
1101
|
type: v,
|
|
1102
1102
|
interpolate: g,
|
|
1103
|
-
normalize:
|
|
1103
|
+
normalize: d
|
|
1104
1104
|
};
|
|
1105
1105
|
return E;
|
|
1106
1106
|
}
|
|
@@ -1109,14 +1109,14 @@ function ss(e) {
|
|
|
1109
1109
|
Se = e;
|
|
1110
1110
|
}
|
|
1111
1111
|
function as(e, t, n) {
|
|
1112
|
-
Se && Se.emit(
|
|
1112
|
+
Se && Se.emit(In.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(In.FunctionTranslate);
|
|
1120
1120
|
function is(e) {
|
|
1121
1121
|
return (t) => Se && Se.emit(e, t);
|
|
1122
1122
|
}
|
|
@@ -1136,7 +1136,7 @@ const K = {
|
|
|
1136
1136
|
[K.CANNOT_FORMAT_DATE]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1137
1137
|
[K.FALLBACK_TO_DATE_FORMAT]: "Fall back to datetime format '{key}' key with '{target}' locale."
|
|
1138
1138
|
};
|
|
1139
|
-
function
|
|
1139
|
+
function Ee(e, ...t) {
|
|
1140
1140
|
return ut(cs[e], ...t);
|
|
1141
1141
|
}
|
|
1142
1142
|
function us(e, t, n) {
|
|
@@ -1145,7 +1145,7 @@ function us(e, t, n) {
|
|
|
1145
1145
|
...R(t) ? t : S(t) ? Object.keys(t) : h(t) ? [t] : [n]
|
|
1146
1146
|
])];
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Ln(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);
|
|
@@ -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, Sn;
|
|
1197
1197
|
function ps(e) {
|
|
1198
|
-
|
|
1198
|
+
Sn = e;
|
|
1199
1199
|
}
|
|
1200
|
-
let
|
|
1200
|
+
let wn;
|
|
1201
1201
|
function hs(e) {
|
|
1202
|
-
|
|
1202
|
+
wn = e;
|
|
1203
1203
|
}
|
|
1204
|
-
let
|
|
1204
|
+
let Dn = null;
|
|
1205
1205
|
const xt = (e) => {
|
|
1206
|
-
|
|
1207
|
-
}, vs = () =>
|
|
1208
|
-
let
|
|
1206
|
+
Dn = e;
|
|
1207
|
+
}, vs = () => Dn;
|
|
1208
|
+
let Cn = null;
|
|
1209
1209
|
const Gt = (e) => {
|
|
1210
|
-
|
|
1211
|
-
}, Es = () =>
|
|
1210
|
+
Cn = e;
|
|
1211
|
+
}, Es = () => Cn;
|
|
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 = R(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 =
|
|
1214
|
+
const t = h(e.version) ? e.version : ds, n = h(e.locale) ? e.locale : mt, r = R(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) || Me(e.missingWarn) ? e.missingWarn : !0, _ = A(e.fallbackWarn) || Me(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, L = $(e.messageResolver) ? e.messageResolver : Sn || Xr, T = $(e.localeFallbacker) ? e.localeFallbacker : wn || us, p = S(e.fallbackContext) ? e.fallbackContext : void 0, w = $(e.onWarn) ? e.onWarn : be, I = e, V = S(I.__datetimeFormatters) ? I.__datetimeFormatters : /* @__PURE__ */ new Map(), z = S(I.__numberFormatters) ? I.__numberFormatters : /* @__PURE__ */ new Map(), J = S(I.__meta) ? I.__meta : {};
|
|
1215
1215
|
Wt++;
|
|
1216
1216
|
const q = {
|
|
1217
1217
|
version: t,
|
|
@@ -1223,8 +1223,8 @@ function Os(e = {}) {
|
|
|
1223
1223
|
pluralRules: i,
|
|
1224
1224
|
missing: c,
|
|
1225
1225
|
missingWarn: u,
|
|
1226
|
-
fallbackWarn:
|
|
1227
|
-
fallbackFormat:
|
|
1226
|
+
fallbackWarn: _,
|
|
1227
|
+
fallbackFormat: d,
|
|
1228
1228
|
unresolving: g,
|
|
1229
1229
|
postTranslation: v,
|
|
1230
1230
|
processor: O,
|
|
@@ -1242,7 +1242,7 @@ function Os(e = {}) {
|
|
|
1242
1242
|
function We(e, t) {
|
|
1243
1243
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1245
|
+
function An(e, t) {
|
|
1246
1246
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1247
1247
|
}
|
|
1248
1248
|
function gt(e, t, n, r, o) {
|
|
@@ -1260,35 +1260,35 @@ 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" && An(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 Pn = G.__EXTEND_POINT__;
|
|
1270
|
+
const Ye = () => ++Pn, re = {
|
|
1271
|
+
INVALID_ARGUMENT: Pn,
|
|
1272
1272
|
INVALID_DATE_ARGUMENT: Ye(),
|
|
1273
1273
|
INVALID_ISO_DATE_ARGUMENT: Ye(),
|
|
1274
1274
|
__EXTEND_POINT__: Ye()
|
|
1275
1275
|
};
|
|
1276
|
-
function
|
|
1277
|
-
return
|
|
1276
|
+
function ve(e) {
|
|
1277
|
+
return yn(e, null, process.env.NODE_ENV !== "production" ? { messages: Ns } : void 0);
|
|
1278
1278
|
}
|
|
1279
1279
|
const Ns = {
|
|
1280
1280
|
[re.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1281
1281
|
[re.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1282
1282
|
[re.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string"
|
|
1283
|
-
},
|
|
1284
|
-
function
|
|
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,
|
|
1286
|
-
|
|
1283
|
+
}, Ht = () => "", ee = (e) => $(e);
|
|
1284
|
+
function jt(e, ...t) {
|
|
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
|
+
d && bs(c);
|
|
1287
1287
|
let [N, b, L] = g ? [
|
|
1288
1288
|
i,
|
|
1289
1289
|
E,
|
|
1290
1290
|
l[E] || {}
|
|
1291
|
-
] :
|
|
1291
|
+
] : Rn(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)
|
|
@@ -1296,7 +1296,7 @@ function Ht(e, ...t) {
|
|
|
1296
1296
|
let w = !1;
|
|
1297
1297
|
const I = () => {
|
|
1298
1298
|
w = !0;
|
|
1299
|
-
}, V = ee(T) ? T :
|
|
1299
|
+
}, V = ee(T) ? T : Fn(e, i, b, T, p, I);
|
|
1300
1300
|
if (w)
|
|
1301
1301
|
return T;
|
|
1302
1302
|
const z = Is(e, b, L, c), J = rs(z), q = Ts(e, V, J), Ce = r ? r(q, i) : q;
|
|
@@ -1308,7 +1308,7 @@ function Ht(e, ...t) {
|
|
|
1308
1308
|
format: h(T) ? T : ee(T) ? T.source : "",
|
|
1309
1309
|
message: Ce
|
|
1310
1310
|
};
|
|
1311
|
-
Ae.meta =
|
|
1311
|
+
Ae.meta = j({}, e.__meta, vs() || {}), ls(Ae);
|
|
1312
1312
|
}
|
|
1313
1313
|
return Ce;
|
|
1314
1314
|
}
|
|
@@ -1317,15 +1317,15 @@ function bs(e) {
|
|
|
1317
1317
|
h(e.named[t]) && (e.named[t] = Ft(e.named[t]));
|
|
1318
1318
|
});
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function Rn(e, t, n, r, o, a) {
|
|
1321
1321
|
const { messages: s, onWarn: l, messageResolver: i, localeFallbacker: c } = e, u = c(e, r, n);
|
|
1322
|
-
let
|
|
1322
|
+
let _ = {}, d, g = null, v = n, O = null;
|
|
1323
1323
|
const E = "translate";
|
|
1324
1324
|
for (let N = 0; N < u.length; N++) {
|
|
1325
|
-
if (
|
|
1325
|
+
if (d = O = u[N], process.env.NODE_ENV !== "production" && n !== d && We(o, t) && l(Ee(K.FALLBACK_TO_TRANSLATE, {
|
|
1326
1326
|
key: t,
|
|
1327
|
-
target:
|
|
1328
|
-
})), process.env.NODE_ENV !== "production" && n !==
|
|
1327
|
+
target: d
|
|
1328
|
+
})), process.env.NODE_ENV !== "production" && n !== d) {
|
|
1329
1329
|
const w = e.__v_emitter;
|
|
1330
1330
|
w && w.emit("fallback", {
|
|
1331
1331
|
type: E,
|
|
@@ -1335,9 +1335,9 @@ function An(e, t, n, r, o, a) {
|
|
|
1335
1335
|
groupId: `${E}:${t}`
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
|
-
|
|
1338
|
+
_ = s[d] || {};
|
|
1339
1339
|
let b = null, L, T;
|
|
1340
|
-
if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(), L = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(L)), (g = i(
|
|
1340
|
+
if (process.env.NODE_ENV !== "production" && te && (b = window.performance.now(), L = "intlify-message-resolve-start", T = "intlify-message-resolve-end", X && X(L)), (g = i(_, t)) === null && (g = _[t]), process.env.NODE_ENV !== "production" && te) {
|
|
1341
1341
|
const w = window.performance.now(), I = e.__v_emitter;
|
|
1342
1342
|
I && b && g && I.emit("message-resolve", {
|
|
1343
1343
|
type: "message-resolve",
|
|
@@ -1352,37 +1352,37 @@ function An(e, t, n, r, o, a) {
|
|
|
1352
1352
|
const p = gt(
|
|
1353
1353
|
e,
|
|
1354
1354
|
t,
|
|
1355
|
-
|
|
1355
|
+
d,
|
|
1356
1356
|
a,
|
|
1357
1357
|
E
|
|
1358
1358
|
);
|
|
1359
1359
|
p !== t && (g = p), v = O;
|
|
1360
1360
|
}
|
|
1361
|
-
return [g,
|
|
1361
|
+
return [g, d, _];
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function Fn(e, t, n, r, o, a) {
|
|
1364
1364
|
const { messageCompiler: s, warnHtmlMessage: l } = e;
|
|
1365
1365
|
if (ee(r)) {
|
|
1366
|
-
const
|
|
1367
|
-
return
|
|
1366
|
+
const d = r;
|
|
1367
|
+
return d.locale = d.locale || n, d.key = d.key || t, d;
|
|
1368
1368
|
}
|
|
1369
1369
|
if (s == null) {
|
|
1370
|
-
const
|
|
1371
|
-
return
|
|
1370
|
+
const d = () => r;
|
|
1371
|
+
return d.locale = n, d.key = t, d;
|
|
1372
1372
|
}
|
|
1373
1373
|
let i = null, c, u;
|
|
1374
1374
|
process.env.NODE_ENV !== "production" && te && (i = window.performance.now(), c = "intlify-message-compilation-start", u = "intlify-message-compilation-end", X && X(c));
|
|
1375
|
-
const
|
|
1375
|
+
const _ = s(r, ys(e, n, o, r, l, a));
|
|
1376
1376
|
if (process.env.NODE_ENV !== "production" && te) {
|
|
1377
|
-
const
|
|
1377
|
+
const d = window.performance.now(), g = e.__v_emitter;
|
|
1378
1378
|
g && i && g.emit("message-compilation", {
|
|
1379
1379
|
type: "message-compilation",
|
|
1380
1380
|
message: r,
|
|
1381
|
-
time:
|
|
1381
|
+
time: d - i,
|
|
1382
1382
|
groupId: `translate:${t}`
|
|
1383
1383
|
}), c && u && X && fe && (X(u), fe("intlify message compilation", c, u));
|
|
1384
1384
|
}
|
|
1385
|
-
return
|
|
1385
|
+
return _.locale = n, _.key = t, _.source = r, _;
|
|
1386
1386
|
}
|
|
1387
1387
|
function Ts(e, t, n) {
|
|
1388
1388
|
let r = null, o, a;
|
|
@@ -1402,9 +1402,9 @@ function Ts(e, t, n) {
|
|
|
1402
1402
|
function Je(...e) {
|
|
1403
1403
|
const [t, n, r] = e, o = {};
|
|
1404
1404
|
if (!h(t) && !M(t) && !ee(t))
|
|
1405
|
-
throw
|
|
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 : R(n) && (o.list = n), M(r) ? o.plural = r : h(r) ? o.default = r : y(r) &&
|
|
1407
|
+
return M(n) ? o.plural = n : h(n) ? o.default = n : y(n) && !xe(n) ? o.named = n : R(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 {
|
|
@@ -1427,47 +1427,47 @@ ${i}` : l);
|
|
|
1427
1427
|
};
|
|
1428
1428
|
}
|
|
1429
1429
|
function Is(e, t, n, r) {
|
|
1430
|
-
const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: l, fallbackWarn: i, missingWarn: c, fallbackContext: u } = e,
|
|
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,
|
|
1433
1433
|
pluralRules: a,
|
|
1434
1434
|
messages: (g) => {
|
|
1435
1435
|
let v = s(n, g);
|
|
1436
1436
|
if (v == null && u) {
|
|
1437
|
-
const [, , O] =
|
|
1437
|
+
const [, , O] = Rn(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 = Fn(e, g, t, v, g, () => {
|
|
1443
1443
|
O = !0;
|
|
1444
1444
|
});
|
|
1445
|
-
return O ?
|
|
1445
|
+
return O ? Ht : N;
|
|
1446
1446
|
} else
|
|
1447
|
-
return ee(v) ? v :
|
|
1447
|
+
return ee(v) ? v : Ht;
|
|
1448
1448
|
}
|
|
1449
1449
|
};
|
|
1450
|
-
return e.processor && (
|
|
1450
|
+
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), M(r.plural) && (d.pluralIndex = r.plural), d;
|
|
1451
1451
|
}
|
|
1452
|
-
const Bt = typeof Intl < "u",
|
|
1452
|
+
const Bt = typeof Intl < "u", kn = {
|
|
1453
1453
|
dateTimeFormat: Bt && typeof Intl.DateTimeFormat < "u",
|
|
1454
1454
|
numberFormat: Bt && typeof Intl.NumberFormat < "u"
|
|
1455
1455
|
};
|
|
1456
1456
|
function Yt(e, ...t) {
|
|
1457
1457
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
|
|
1458
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1459
|
-
return a(
|
|
1460
|
-
const [i, c, u,
|
|
1458
|
+
if (process.env.NODE_ENV !== "production" && !kn.dateTimeFormat)
|
|
1459
|
+
return a(Ee(K.CANNOT_FORMAT_DATE)), Ve;
|
|
1460
|
+
const [i, c, u, _] = qe(...t), d = A(u.missingWarn) ? u.missingWarn : e.missingWarn, g = A(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, v = !!u.part, O = h(u.locale) ? u.locale : e.locale, E = s(
|
|
1461
1461
|
e,
|
|
1462
1462
|
o,
|
|
1463
1463
|
O
|
|
1464
1464
|
);
|
|
1465
1465
|
if (!h(i) || i === "")
|
|
1466
|
-
return new Intl.DateTimeFormat(O,
|
|
1466
|
+
return new Intl.DateTimeFormat(O, _).format(c);
|
|
1467
1467
|
let N = {}, b, L = null, T = O, p = null;
|
|
1468
1468
|
const w = "datetime format";
|
|
1469
1469
|
for (let z = 0; z < E.length; z++) {
|
|
1470
|
-
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(
|
|
1470
|
+
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Ee(K.FALLBACK_TO_DATE_FORMAT, {
|
|
1471
1471
|
key: i,
|
|
1472
1472
|
target: b
|
|
1473
1473
|
})), process.env.NODE_ENV !== "production" && O !== b) {
|
|
@@ -1482,16 +1482,16 @@ function Yt(e, ...t) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
if (N = n[b] || {}, L = N[i], y(L))
|
|
1484
1484
|
break;
|
|
1485
|
-
gt(e, i, b,
|
|
1485
|
+
gt(e, i, b, d, w), T = p;
|
|
1486
1486
|
}
|
|
1487
1487
|
if (!y(L) || !h(b))
|
|
1488
1488
|
return r ? Ge : i;
|
|
1489
1489
|
let I = `${b}__${i}`;
|
|
1490
|
-
xe(
|
|
1490
|
+
xe(_) || (I = `${I}__${JSON.stringify(_)}`);
|
|
1491
1491
|
let V = l.get(I);
|
|
1492
|
-
return V || (V = new Intl.DateTimeFormat(b,
|
|
1492
|
+
return V || (V = new Intl.DateTimeFormat(b, j({}, L, _)), l.set(I, V)), v ? V.formatToParts(c) : V.format(c);
|
|
1493
1493
|
}
|
|
1494
|
-
const
|
|
1494
|
+
const $n = [
|
|
1495
1495
|
"localeMatcher",
|
|
1496
1496
|
"weekday",
|
|
1497
1497
|
"era",
|
|
@@ -1519,24 +1519,24 @@ function qe(...e) {
|
|
|
1519
1519
|
if (h(t)) {
|
|
1520
1520
|
const i = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1521
1521
|
if (!i)
|
|
1522
|
-
throw
|
|
1522
|
+
throw ve(re.INVALID_ISO_DATE_ARGUMENT);
|
|
1523
1523
|
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();
|
|
1524
1524
|
l = new Date(c);
|
|
1525
1525
|
try {
|
|
1526
1526
|
l.toISOString();
|
|
1527
1527
|
} catch {
|
|
1528
|
-
throw
|
|
1528
|
+
throw ve(re.INVALID_ISO_DATE_ARGUMENT);
|
|
1529
1529
|
}
|
|
1530
1530
|
} else if (Vr(t)) {
|
|
1531
1531
|
if (isNaN(t.getTime()))
|
|
1532
|
-
throw
|
|
1532
|
+
throw ve(re.INVALID_DATE_ARGUMENT);
|
|
1533
1533
|
l = t;
|
|
1534
1534
|
} else if (M(t))
|
|
1535
1535
|
l = t;
|
|
1536
1536
|
else
|
|
1537
|
-
throw
|
|
1537
|
+
throw ve(re.INVALID_ARGUMENT);
|
|
1538
1538
|
return h(n) ? a.key = n : y(n) && Object.keys(n).forEach((i) => {
|
|
1539
|
-
|
|
1539
|
+
$n.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) {
|
|
@@ -1548,19 +1548,19 @@ function zt(e, t, n) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
function Kt(e, ...t) {
|
|
1550
1550
|
const { numberFormats: n, unresolving: r, fallbackLocale: o, onWarn: a, localeFallbacker: s } = e, { __numberFormatters: l } = e;
|
|
1551
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1552
|
-
return a(
|
|
1553
|
-
const [i, c, u,
|
|
1551
|
+
if (process.env.NODE_ENV !== "production" && !kn.numberFormat)
|
|
1552
|
+
return a(Ee(K.CANNOT_FORMAT_NUMBER)), Ve;
|
|
1553
|
+
const [i, c, u, _] = Ze(...t), d = A(u.missingWarn) ? u.missingWarn : e.missingWarn, g = A(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn, v = !!u.part, O = h(u.locale) ? u.locale : e.locale, E = s(
|
|
1554
1554
|
e,
|
|
1555
1555
|
o,
|
|
1556
1556
|
O
|
|
1557
1557
|
);
|
|
1558
1558
|
if (!h(i) || i === "")
|
|
1559
|
-
return new Intl.NumberFormat(O,
|
|
1559
|
+
return new Intl.NumberFormat(O, _).format(c);
|
|
1560
1560
|
let N = {}, b, L = null, T = O, p = null;
|
|
1561
1561
|
const w = "number format";
|
|
1562
1562
|
for (let z = 0; z < E.length; z++) {
|
|
1563
|
-
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(
|
|
1563
|
+
if (b = p = E[z], process.env.NODE_ENV !== "production" && O !== b && We(g, i) && a(Ee(K.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1564
1564
|
key: i,
|
|
1565
1565
|
target: b
|
|
1566
1566
|
})), process.env.NODE_ENV !== "production" && O !== b) {
|
|
@@ -1575,16 +1575,16 @@ function Kt(e, ...t) {
|
|
|
1575
1575
|
}
|
|
1576
1576
|
if (N = n[b] || {}, L = N[i], y(L))
|
|
1577
1577
|
break;
|
|
1578
|
-
gt(e, i, b,
|
|
1578
|
+
gt(e, i, b, d, w), T = p;
|
|
1579
1579
|
}
|
|
1580
1580
|
if (!y(L) || !h(b))
|
|
1581
1581
|
return r ? Ge : i;
|
|
1582
1582
|
let I = `${b}__${i}`;
|
|
1583
|
-
xe(
|
|
1583
|
+
xe(_) || (I = `${I}__${JSON.stringify(_)}`);
|
|
1584
1584
|
let V = l.get(I);
|
|
1585
|
-
return V || (V = new Intl.NumberFormat(b,
|
|
1585
|
+
return V || (V = new Intl.NumberFormat(b, j({}, L, _)), l.set(I, V)), v ? V.formatToParts(c) : V.format(c);
|
|
1586
1586
|
}
|
|
1587
|
-
const
|
|
1587
|
+
const Mn = [
|
|
1588
1588
|
"localeMatcher",
|
|
1589
1589
|
"style",
|
|
1590
1590
|
"currency",
|
|
@@ -1610,10 +1610,10 @@ function Ze(...e) {
|
|
|
1610
1610
|
const [t, n, r, o] = e, a = {};
|
|
1611
1611
|
let s = {};
|
|
1612
1612
|
if (!M(t))
|
|
1613
|
-
throw
|
|
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
|
+
Mn.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) {
|
|
@@ -1625,16 +1625,16 @@ function Xt(e, t, n) {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ft().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
1627
1627
|
function Ls() {
|
|
1628
|
-
return
|
|
1628
|
+
return Vn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function Vn() {
|
|
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";
|
|
1634
|
-
let
|
|
1634
|
+
let pe, et;
|
|
1635
1635
|
function Cs() {
|
|
1636
1636
|
var e;
|
|
1637
|
-
return
|
|
1637
|
+
return pe !== void 0 || (typeof window < "u" && window.performance ? (pe = !0, et = window.performance) : typeof global < "u" && ((e = global.perf_hooks) === null || e === void 0 ? void 0 : e.performance) ? (pe = !0, et = global.perf_hooks.performance) : pe = !1), pe;
|
|
1638
1638
|
}
|
|
1639
1639
|
function As() {
|
|
1640
1640
|
return Cs() ? et.now() : Date.now();
|
|
@@ -1702,7 +1702,7 @@ class Ps {
|
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
1704
|
function Rs(e, t) {
|
|
1705
|
-
const n = e, r =
|
|
1705
|
+
const n = e, r = Vn(), o = Ls(), 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 {
|
|
@@ -1738,15 +1738,15 @@ 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
|
|
1743
|
-
FALLBACK_TO_ROOT:
|
|
1744
|
-
NOT_SUPPORTED_PRESERVE:
|
|
1745
|
-
NOT_SUPPORTED_FORMATTER:
|
|
1746
|
-
NOT_SUPPORTED_PRESERVE_DIRECTIVE:
|
|
1747
|
-
NOT_SUPPORTED_GET_CHOICE_INDEX:
|
|
1748
|
-
COMPONENT_NAME_LEGACY_COMPATIBLE:
|
|
1749
|
-
NOT_FOUND_PARENT_SCOPE:
|
|
1741
|
+
let Un = K.__EXTEND_POINT__;
|
|
1742
|
+
const he = () => ++Un, Z = {
|
|
1743
|
+
FALLBACK_TO_ROOT: Un,
|
|
1744
|
+
NOT_SUPPORTED_PRESERVE: he(),
|
|
1745
|
+
NOT_SUPPORTED_FORMATTER: he(),
|
|
1746
|
+
NOT_SUPPORTED_PRESERVE_DIRECTIVE: he(),
|
|
1747
|
+
NOT_SUPPORTED_GET_CHOICE_INDEX: he(),
|
|
1748
|
+
COMPONENT_NAME_LEGACY_COMPATIBLE: he(),
|
|
1749
|
+
NOT_FOUND_PARENT_SCOPE: he()
|
|
1750
1750
|
}, Vs = {
|
|
1751
1751
|
[Z.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
1752
1752
|
[Z.NOT_SUPPORTED_PRESERVE]: "Not supported 'preserve'.",
|
|
@@ -1756,12 +1756,12 @@ const ve = () => ++Mn, Z = {
|
|
|
1756
1756
|
[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]: "Component name legacy compatible: '{name}' -> 'i18n'",
|
|
1757
1757
|
[Z.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope."
|
|
1758
1758
|
};
|
|
1759
|
-
function
|
|
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 xn = G.__EXTEND_POINT__;
|
|
1763
|
+
const Y = () => ++xn, D = {
|
|
1764
|
+
UNEXPECTED_RETURN_TYPE: xn,
|
|
1765
1765
|
INVALID_ARGUMENT: Y(),
|
|
1766
1766
|
MUST_BE_CALL_SETUP_TOP: Y(),
|
|
1767
1767
|
NOT_INSLALLED: Y(),
|
|
@@ -1778,7 +1778,7 @@ const Y = () => ++Vn, D = {
|
|
|
1778
1778
|
__EXTEND_POINT__: Y()
|
|
1779
1779
|
};
|
|
1780
1780
|
function Q(e, ...t) {
|
|
1781
|
-
return
|
|
1781
|
+
return yn(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,7 +1814,7 @@ function st(e) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
return e;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function Gn(e, t) {
|
|
1818
1818
|
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s = y(n) ? n : R(r) ? {} : { [e]: {} };
|
|
1819
1819
|
if (R(r) && r.forEach((l) => {
|
|
1820
1820
|
if ("locale" in l && "resource" in l) {
|
|
@@ -1834,12 +1834,12 @@ function Le(e, t) {
|
|
|
1834
1834
|
for (const n in e)
|
|
1835
1835
|
_t(e, n) && (Re(e[n]) || Re(t[n]) ? t[n] = e[n] : Le(e[n], t[n]));
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function Wn(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 = Gn(e.locale.value, {
|
|
1843
1843
|
messages: r,
|
|
1844
1844
|
__i18n: n.__i18nGlobal
|
|
1845
1845
|
}));
|
|
@@ -1870,20 +1870,20 @@ let qt = 0;
|
|
|
1870
1870
|
function Zt(e) {
|
|
1871
1871
|
return (t, n, r, o) => e(n, r, it() || void 0, o);
|
|
1872
1872
|
}
|
|
1873
|
-
const
|
|
1873
|
+
const Hs = () => {
|
|
1874
1874
|
const e = it();
|
|
1875
1875
|
let t = null;
|
|
1876
|
-
return e && (t =
|
|
1876
|
+
return e && (t = Wn(e)[Jt]) ? { [Jt]: t } : null;
|
|
1877
1877
|
};
|
|
1878
|
-
function
|
|
1878
|
+
function Hn(e = {}, t) {
|
|
1879
1879
|
const { __root: n } = e, r = n === void 0;
|
|
1880
1880
|
let o = A(e.inheritLocale) ? e.inheritLocale : !0;
|
|
1881
|
-
const a =
|
|
1881
|
+
const a = x(
|
|
1882
1882
|
n && o ? n.locale.value : h(e.locale) ? e.locale : mt
|
|
1883
|
-
), s =
|
|
1883
|
+
), s = x(
|
|
1884
1884
|
n && o ? n.fallbackLocale.value : h(e.fallbackLocale) || R(e.fallbackLocale) || y(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a.value
|
|
1885
|
-
), l =
|
|
1886
|
-
let u = n ? n.missingWarn : A(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0,
|
|
1885
|
+
), l = x(Gn(a.value, e)), i = x(y(e.datetimeFormats) ? e.datetimeFormats : { [a.value]: {} }), c = x(y(e.numberFormats) ? e.numberFormats : { [a.value]: {} });
|
|
1886
|
+
let u = n ? n.missingWarn : A(e.missingWarn) || Me(e.missingWarn) ? e.missingWarn : !0, _ = n ? n.fallbackWarn : A(e.fallbackWarn) || Me(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
1887
|
const L = n ? n.modifiers : y(e.modifiers) ? e.modifiers : {};
|
|
1888
1888
|
let T = e.pluralRules || n && n.pluralRules, p;
|
|
1889
1889
|
p = (() => {
|
|
@@ -1897,7 +1897,7 @@ function Gn(e = {}, t) {
|
|
|
1897
1897
|
pluralRules: T,
|
|
1898
1898
|
missing: O === null ? void 0 : O,
|
|
1899
1899
|
missingWarn: u,
|
|
1900
|
-
fallbackWarn:
|
|
1900
|
+
fallbackWarn: _,
|
|
1901
1901
|
fallbackFormat: g,
|
|
1902
1902
|
unresolving: !0,
|
|
1903
1903
|
postTranslation: E === null ? void 0 : E,
|
|
@@ -1919,94 +1919,94 @@ function Gn(e = {}, t) {
|
|
|
1919
1919
|
c.value
|
|
1920
1920
|
];
|
|
1921
1921
|
}
|
|
1922
|
-
const V =
|
|
1922
|
+
const V = H({
|
|
1923
1923
|
get: () => a.value,
|
|
1924
1924
|
set: (f) => {
|
|
1925
1925
|
a.value = f, p.locale = a.value;
|
|
1926
1926
|
}
|
|
1927
|
-
}), z =
|
|
1927
|
+
}), z = H({
|
|
1928
1928
|
get: () => s.value,
|
|
1929
1929
|
set: (f) => {
|
|
1930
1930
|
s.value = f, p.fallbackLocale = s.value, Te(p, a.value, f);
|
|
1931
1931
|
}
|
|
1932
|
-
}), J =
|
|
1932
|
+
}), J = H(() => l.value), q = /* @__PURE__ */ H(() => i.value), Ce = /* @__PURE__ */ H(() => c.value);
|
|
1933
1933
|
function Ae() {
|
|
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 Zn() {
|
|
1940
1940
|
return v;
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function eo(f) {
|
|
1943
1943
|
f !== null && (O = Zt(f)), v = f, p.missing = O;
|
|
1944
1944
|
}
|
|
1945
|
-
function
|
|
1945
|
+
function to(f, m) {
|
|
1946
1946
|
return f !== "translate" || !m.resolvedMessage;
|
|
1947
1947
|
}
|
|
1948
|
-
const
|
|
1948
|
+
const me = (f, m, B, W, je, Pe) => {
|
|
1949
1949
|
I();
|
|
1950
|
-
let
|
|
1950
|
+
let ge;
|
|
1951
1951
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__)
|
|
1952
1952
|
try {
|
|
1953
|
-
xt(
|
|
1953
|
+
xt(Hs()), r || (p.fallbackContext = n ? Es() : void 0), ge = f(p);
|
|
1954
1954
|
} finally {
|
|
1955
1955
|
xt(null), r || (p.fallbackContext = void 0);
|
|
1956
1956
|
}
|
|
1957
1957
|
else
|
|
1958
|
-
|
|
1959
|
-
if (M(
|
|
1960
|
-
const [le,
|
|
1961
|
-
if (process.env.NODE_ENV !== "production" && n && h(le) &&
|
|
1958
|
+
ge = f(p);
|
|
1959
|
+
if (M(ge) && ge === Ge) {
|
|
1960
|
+
const [le, To] = m();
|
|
1961
|
+
if (process.env.NODE_ENV !== "production" && n && h(le) && to(B, To) && (d && (We(_, le) || An(u, le)) && be(He(Z.FALLBACK_TO_ROOT, {
|
|
1962
1962
|
key: le,
|
|
1963
1963
|
type: B
|
|
1964
1964
|
})), process.env.NODE_ENV !== "production")) {
|
|
1965
1965
|
const { __v_emitter: Nt } = p;
|
|
1966
|
-
Nt &&
|
|
1966
|
+
Nt && d && Nt.emit("fallback", {
|
|
1967
1967
|
type: B,
|
|
1968
1968
|
key: le,
|
|
1969
1969
|
to: "global",
|
|
1970
1970
|
groupId: `${B}:${le}`
|
|
1971
1971
|
});
|
|
1972
1972
|
}
|
|
1973
|
-
return n &&
|
|
1973
|
+
return n && d ? W(n) : je(le);
|
|
1974
1974
|
} else {
|
|
1975
|
-
if (Pe(
|
|
1976
|
-
return
|
|
1975
|
+
if (Pe(ge))
|
|
1976
|
+
return ge;
|
|
1977
1977
|
throw Q(D.UNEXPECTED_RETURN_TYPE);
|
|
1978
1978
|
}
|
|
1979
1979
|
};
|
|
1980
1980
|
function Et(...f) {
|
|
1981
|
-
return
|
|
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 no(...f) {
|
|
1984
1984
|
const [m, B, W] = f;
|
|
1985
1985
|
if (W && !S(W))
|
|
1986
1986
|
throw Q(D.INVALID_ARGUMENT);
|
|
1987
|
-
return Et(m, B,
|
|
1987
|
+
return Et(m, B, j({ resolvedMessage: !0 }, W || {}));
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1990
|
-
return
|
|
1989
|
+
function oo(...f) {
|
|
1990
|
+
return me((m) => Reflect.apply(Yt, null, [m, ...f]), () => qe(...f), "datetime format", (m) => Reflect.apply(m.d, m, [...f]), () => Ve, (m) => h(m));
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1993
|
-
return
|
|
1992
|
+
function ro(...f) {
|
|
1993
|
+
return me((m) => Reflect.apply(Kt, null, [m, ...f]), () => Ze(...f), "number format", (m) => Reflect.apply(m.n, m, [...f]), () => Ve, (m) => h(m));
|
|
1994
1994
|
}
|
|
1995
|
-
function
|
|
1995
|
+
function so(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 ao = {
|
|
1999
|
+
normalize: so,
|
|
2000
2000
|
interpolate: (f) => f,
|
|
2001
2001
|
type: "vnode"
|
|
2002
2002
|
};
|
|
2003
|
-
function
|
|
2004
|
-
return
|
|
2003
|
+
function lo(...f) {
|
|
2004
|
+
return me(
|
|
2005
2005
|
(m) => {
|
|
2006
2006
|
let B;
|
|
2007
2007
|
const W = m;
|
|
2008
2008
|
try {
|
|
2009
|
-
W.processor =
|
|
2009
|
+
W.processor = ao, B = Reflect.apply(jt, null, [W, ...f]);
|
|
2010
2010
|
} finally {
|
|
2011
2011
|
W.processor = null;
|
|
2012
2012
|
}
|
|
@@ -2019,8 +2019,8 @@ function Gn(e = {}, t) {
|
|
|
2019
2019
|
(m) => R(m)
|
|
2020
2020
|
);
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2023
|
-
return
|
|
2022
|
+
function io(...f) {
|
|
2023
|
+
return me(
|
|
2024
2024
|
(m) => Reflect.apply(Kt, null, [m, ...f]),
|
|
2025
2025
|
() => Ze(...f),
|
|
2026
2026
|
"number format",
|
|
@@ -2029,8 +2029,8 @@ function Gn(e = {}, t) {
|
|
|
2029
2029
|
(m) => h(m) || R(m)
|
|
2030
2030
|
);
|
|
2031
2031
|
}
|
|
2032
|
-
function
|
|
2033
|
-
return
|
|
2032
|
+
function co(...f) {
|
|
2033
|
+
return me(
|
|
2034
2034
|
(m) => Reflect.apply(Yt, null, [m, ...f]),
|
|
2035
2035
|
() => qe(...f),
|
|
2036
2036
|
"datetime format",
|
|
@@ -2039,18 +2039,18 @@ function Gn(e = {}, t) {
|
|
|
2039
2039
|
(m) => h(m) || R(m)
|
|
2040
2040
|
);
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function uo(f) {
|
|
2043
2043
|
T = f, p.pluralRules = T;
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2045
|
+
function fo(f, m) {
|
|
2046
2046
|
const B = h(m) ? m : a.value, W = Ot(B);
|
|
2047
2047
|
return p.messageResolver(W, f) !== null;
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function _o(f) {
|
|
2050
2050
|
let m = null;
|
|
2051
|
-
const B =
|
|
2051
|
+
const B = Ln(p, s.value, a.value);
|
|
2052
2052
|
for (let W = 0; W < B.length; W++) {
|
|
2053
|
-
const
|
|
2053
|
+
const je = l.value[B[W]] || {}, Pe = p.messageResolver(je, f);
|
|
2054
2054
|
if (Pe != null) {
|
|
2055
2055
|
m = Pe;
|
|
2056
2056
|
break;
|
|
@@ -2058,36 +2058,36 @@ function Gn(e = {}, t) {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
return m;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
const m =
|
|
2061
|
+
function mo(f) {
|
|
2062
|
+
const m = _o(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 go(f, m) {
|
|
2069
2069
|
l.value[f] = m, p.messages = l.value;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function po(f, m) {
|
|
2072
2072
|
l.value[f] = l.value[f] || {}, Le(m, l.value[f]), p.messages = l.value;
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function ho(f) {
|
|
2075
2075
|
return i.value[f] || {};
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2077
|
+
function vo(f, m) {
|
|
2078
2078
|
i.value[f] = m, p.datetimeFormats = i.value, zt(p, f, m);
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2081
|
-
i.value[f] =
|
|
2080
|
+
function Eo(f, m) {
|
|
2081
|
+
i.value[f] = j(i.value[f] || {}, m), p.datetimeFormats = i.value, zt(p, f, m);
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Oo(f) {
|
|
2084
2084
|
return c.value[f] || {};
|
|
2085
2085
|
}
|
|
2086
|
-
function
|
|
2086
|
+
function No(f, m) {
|
|
2087
2087
|
c.value[f] = m, p.numberFormats = c.value, Xt(p, f, m);
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2090
|
-
c.value[f] =
|
|
2089
|
+
function bo(f, m) {
|
|
2090
|
+
c.value[f] = j(c.value[f] || {}, m), p.numberFormats = c.value, Xt(p, f, m);
|
|
2091
2091
|
}
|
|
2092
2092
|
qt++, n && te && ($e(n.locale, (f) => {
|
|
2093
2093
|
o && (a.value = f, p.locale = f, Te(p, a.value, s.value));
|
|
@@ -2124,16 +2124,16 @@ function Gn(e = {}, t) {
|
|
|
2124
2124
|
u = f, p.missingWarn = u;
|
|
2125
2125
|
},
|
|
2126
2126
|
get fallbackWarn() {
|
|
2127
|
-
return
|
|
2127
|
+
return _;
|
|
2128
2128
|
},
|
|
2129
2129
|
set fallbackWarn(f) {
|
|
2130
|
-
|
|
2130
|
+
_ = f, p.fallbackWarn = _;
|
|
2131
2131
|
},
|
|
2132
2132
|
get fallbackRoot() {
|
|
2133
|
-
return
|
|
2133
|
+
return d;
|
|
2134
2134
|
},
|
|
2135
2135
|
set fallbackRoot(f) {
|
|
2136
|
-
|
|
2136
|
+
d = f;
|
|
2137
2137
|
},
|
|
2138
2138
|
get fallbackFormat() {
|
|
2139
2139
|
return g;
|
|
@@ -2155,15 +2155,15 @@ function Gn(e = {}, t) {
|
|
|
2155
2155
|
},
|
|
2156
2156
|
t: Et,
|
|
2157
2157
|
getLocaleMessage: Ot,
|
|
2158
|
-
setLocaleMessage:
|
|
2159
|
-
mergeLocaleMessage:
|
|
2158
|
+
setLocaleMessage: go,
|
|
2159
|
+
mergeLocaleMessage: po,
|
|
2160
2160
|
getPostTranslationHandler: Ae,
|
|
2161
|
-
setPostTranslationHandler:
|
|
2162
|
-
getMissingHandler:
|
|
2163
|
-
setMissingHandler:
|
|
2164
|
-
[xs]:
|
|
2161
|
+
setPostTranslationHandler: qn,
|
|
2162
|
+
getMissingHandler: Zn,
|
|
2163
|
+
setMissingHandler: eo,
|
|
2164
|
+
[xs]: uo
|
|
2165
2165
|
};
|
|
2166
|
-
return F.datetimeFormats = q, F.numberFormats = Ce, F.rt =
|
|
2166
|
+
return F.datetimeFormats = q, F.numberFormats = Ce, F.rt = no, F.te = fo, F.tm = mo, F.d = oo, F.n = ro, F.getDateTimeFormat = ho, F.setDateTimeFormat = vo, F.mergeDateTimeFormat = Eo, F.getNumberFormat = Oo, F.setNumberFormat = No, F.mergeNumberFormat = bo, F[Gs] = e.__injectWithOption, F[tt] = lo, F[nt] = co, F[ot] = io, process.env.NODE_ENV !== "production" && (F[we] = (f) => {
|
|
2167
2167
|
p.__v_emitter = f;
|
|
2168
2168
|
}, F[rt] = () => {
|
|
2169
2169
|
p.__v_emitter = void 0;
|
|
@@ -2185,7 +2185,7 @@ const pt = {
|
|
|
2185
2185
|
type: Object
|
|
2186
2186
|
}
|
|
2187
2187
|
};
|
|
2188
|
-
function
|
|
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
|
...R(o.children) ? o.children : [o]
|
|
@@ -2194,12 +2194,12 @@ function Hs({ slots: e }, t) {
|
|
|
2194
2194
|
return o && (n[r] = o()), n;
|
|
2195
2195
|
}, {});
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2198
|
-
return
|
|
2197
|
+
function jn(e) {
|
|
2198
|
+
return Oe;
|
|
2199
2199
|
}
|
|
2200
2200
|
const Ke = {
|
|
2201
2201
|
name: "i18n-t",
|
|
2202
|
-
props:
|
|
2202
|
+
props: j({
|
|
2203
2203
|
keypath: {
|
|
2204
2204
|
type: String,
|
|
2205
2205
|
required: !0
|
|
@@ -2215,9 +2215,9 @@ const Ke = {
|
|
|
2215
2215
|
__useComponent: !0
|
|
2216
2216
|
});
|
|
2217
2217
|
return () => {
|
|
2218
|
-
const a = Object.keys(n).filter((
|
|
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 =
|
|
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 : jn();
|
|
2221
2221
|
return ke(u, c, i);
|
|
2222
2222
|
};
|
|
2223
2223
|
}
|
|
@@ -2225,25 +2225,25 @@ const Ke = {
|
|
|
2225
2225
|
function Bs(e) {
|
|
2226
2226
|
return R(e) && !h(e[0]);
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function Bn(e, t, n, r) {
|
|
2229
2229
|
const { slots: o, attrs: a } = t;
|
|
2230
2230
|
return () => {
|
|
2231
2231
|
const s = { part: !0 };
|
|
2232
2232
|
let l = {};
|
|
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((
|
|
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
|
-
R(i) ? c = i.map((
|
|
2237
|
-
const v = o[
|
|
2238
|
-
return Bs(O) && (O[0].key = `${
|
|
2236
|
+
R(i) ? c = i.map((d, g) => {
|
|
2237
|
+
const v = o[d.type], O = v ? v({ [d.type]: d.value, index: g, parts: i }) : [d.value];
|
|
2238
|
+
return Bs(O) && (O[0].key = `${d.type}-${g}`), O;
|
|
2239
2239
|
}) : h(i) && (c = [i]);
|
|
2240
|
-
const u =
|
|
2241
|
-
return ke(
|
|
2240
|
+
const u = j({}, a), _ = h(e.tag) || S(e.tag) ? e.tag : jn();
|
|
2241
|
+
return ke(_, u, c);
|
|
2242
2242
|
};
|
|
2243
2243
|
}
|
|
2244
2244
|
const en = {
|
|
2245
2245
|
name: "i18n-n",
|
|
2246
|
-
props:
|
|
2246
|
+
props: j({
|
|
2247
2247
|
value: {
|
|
2248
2248
|
type: Number,
|
|
2249
2249
|
required: !0
|
|
@@ -2254,11 +2254,11 @@ 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 Bn(e, t, Mn, (...r) => n[ot](...r));
|
|
2258
2258
|
}
|
|
2259
2259
|
}, tn = {
|
|
2260
2260
|
name: "i18n-d",
|
|
2261
|
-
props:
|
|
2261
|
+
props: j({
|
|
2262
2262
|
value: {
|
|
2263
2263
|
type: [Number, Date],
|
|
2264
2264
|
required: !0
|
|
@@ -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 Bn(e, t, $n, (...r) => n[nt](...r));
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
2275
|
function Ys(e, t) {
|
|
@@ -2287,10 +2287,10 @@ function zs(e) {
|
|
|
2287
2287
|
if (!l || !l.$)
|
|
2288
2288
|
throw Q(D.UNEXPECTED_ERROR);
|
|
2289
2289
|
const u = Ys(e, l.$);
|
|
2290
|
-
process.env.NODE_ENV !== "production" && i.preserve && be(
|
|
2291
|
-
const
|
|
2290
|
+
process.env.NODE_ENV !== "production" && i.preserve && be(He(Z.NOT_SUPPORTED_PRESERVE));
|
|
2291
|
+
const _ = nn(c);
|
|
2292
2292
|
return [
|
|
2293
|
-
Reflect.apply(u.t, u, [...on(
|
|
2293
|
+
Reflect.apply(u.t, u, [...on(_)]),
|
|
2294
2294
|
u
|
|
2295
2295
|
];
|
|
2296
2296
|
};
|
|
@@ -2334,11 +2334,11 @@ function on(e) {
|
|
|
2334
2334
|
}
|
|
2335
2335
|
function Ks(e, t, ...n) {
|
|
2336
2336
|
const r = y(n[0]) ? n[0] : {}, o = !!r.useI18nComponentName, a = A(r.globalInstall) ? r.globalInstall : !0;
|
|
2337
|
-
process.env.NODE_ENV !== "production" && a && o && be(
|
|
2337
|
+
process.env.NODE_ENV !== "production" && a && o && be(He(Z.COMPONENT_NAME_LEGACY_COMPATIBLE, {
|
|
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 Yn = "vue-i18n: composer properties";
|
|
2342
2342
|
let at;
|
|
2343
2343
|
async function Xs(e, t) {
|
|
2344
2344
|
return new Promise((n, r) => {
|
|
@@ -2349,7 +2349,7 @@ async function Xs(e, t) {
|
|
|
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: [Yn],
|
|
2353
2353
|
app: e
|
|
2354
2354
|
}, (o) => {
|
|
2355
2355
|
at = o, o.on.visitComponentTree(({ componentInstance: s, treeNode: l }) => {
|
|
@@ -2390,14 +2390,14 @@ async function Xs(e, t) {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
});
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function zn(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 (${zn(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 = Yn;
|
|
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: `${zn(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 Kn(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 Yn(e, t) {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
}
|
|
2507
2507
|
function oa(e, t) {
|
|
2508
|
-
const n =
|
|
2508
|
+
const n = Kn(e.nodeId, t);
|
|
2509
2509
|
return n && (e.state = ra(n)), null;
|
|
2510
2510
|
}
|
|
2511
2511
|
function ra(e) {
|
|
@@ -2584,7 +2584,7 @@ function lt(e, t) {
|
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
2586
2586
|
function sa(e, t) {
|
|
2587
|
-
const n =
|
|
2587
|
+
const n = Kn(e.nodeId, t);
|
|
2588
2588
|
if (n) {
|
|
2589
2589
|
const [r] = e.path;
|
|
2590
2590
|
r === "locale" && h(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (h(e.state.value) || R(e.state.value) || S(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && A(e.state.value) && (n.inheritLocale = e.state.value);
|
|
@@ -2593,32 +2593,32 @@ function sa(e, t) {
|
|
|
2593
2593
|
const aa = /* @__PURE__ */ ne("global-vue-i18n");
|
|
2594
2594
|
function la(e = {}, t) {
|
|
2595
2595
|
const n = A(e.globalInjection) ? e.globalInjection : !0, r = !0, o = /* @__PURE__ */ new Map(), [a, s] = ia(e), l = ne(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
2596
|
-
function i(
|
|
2597
|
-
return o.get(
|
|
2596
|
+
function i(_) {
|
|
2597
|
+
return o.get(_) || null;
|
|
2598
2598
|
}
|
|
2599
|
-
function c(
|
|
2600
|
-
o.set(
|
|
2599
|
+
function c(_, d) {
|
|
2600
|
+
o.set(_, d);
|
|
2601
2601
|
}
|
|
2602
|
-
function u(
|
|
2603
|
-
o.delete(
|
|
2602
|
+
function u(_) {
|
|
2603
|
+
o.delete(_);
|
|
2604
2604
|
}
|
|
2605
2605
|
{
|
|
2606
|
-
const
|
|
2606
|
+
const _ = {
|
|
2607
2607
|
get mode() {
|
|
2608
2608
|
return "composition";
|
|
2609
2609
|
},
|
|
2610
2610
|
get allowComposition() {
|
|
2611
2611
|
return r;
|
|
2612
2612
|
},
|
|
2613
|
-
async install(
|
|
2614
|
-
process.env.NODE_ENV !== "production" && (
|
|
2615
|
-
const v =
|
|
2616
|
-
if (
|
|
2617
|
-
|
|
2613
|
+
async install(d, ...g) {
|
|
2614
|
+
process.env.NODE_ENV !== "production" && (d.__VUE_I18N__ = _), d.__VUE_I18N_SYMBOL__ = l, d.provide(d.__VUE_I18N_SYMBOL__, _), n && pa(d, _.global), Ks(d, _, ...g);
|
|
2615
|
+
const v = d.unmount;
|
|
2616
|
+
if (d.unmount = () => {
|
|
2617
|
+
_.dispose(), v();
|
|
2618
2618
|
}, process.env.NODE_ENV !== "production" || !1) {
|
|
2619
|
-
if (!await Xs(
|
|
2619
|
+
if (!await Xs(d, _))
|
|
2620
2620
|
throw Q(D.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
2621
|
-
const E =
|
|
2621
|
+
const E = Tn();
|
|
2622
2622
|
{
|
|
2623
2623
|
const N = s;
|
|
2624
2624
|
N[we] && N[we](E);
|
|
@@ -2637,7 +2637,7 @@ function la(e = {}, t) {
|
|
|
2637
2637
|
__setInstance: c,
|
|
2638
2638
|
__deleteInstance: u
|
|
2639
2639
|
};
|
|
2640
|
-
return
|
|
2640
|
+
return _;
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
2643
|
function vt(e = {}) {
|
|
@@ -2646,25 +2646,25 @@ 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 = Wn(t), a = ua(e, o);
|
|
2650
2650
|
if (a === "global")
|
|
2651
2651
|
return Ws(r, e, o), r;
|
|
2652
2652
|
if (a === "parent") {
|
|
2653
2653
|
let i = _a(n, t, e.__useComponent);
|
|
2654
|
-
return i == null && (process.env.NODE_ENV !== "production" && be(
|
|
2654
|
+
return i == null && (process.env.NODE_ENV !== "production" && be(He(Z.NOT_FOUND_PARENT_SCOPE)), i = r), i;
|
|
2655
2655
|
}
|
|
2656
2656
|
const s = n;
|
|
2657
2657
|
let l = s.__getInstance(t);
|
|
2658
2658
|
if (l == null) {
|
|
2659
|
-
const i =
|
|
2660
|
-
"__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l =
|
|
2659
|
+
const i = j({}, e);
|
|
2660
|
+
"__i18n" in o && (i.__i18n = o.__i18n), r && (i.__root = r), l = Hn(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 = yo();
|
|
2666
2666
|
{
|
|
2667
|
-
const o = r.run(() =>
|
|
2667
|
+
const o = r.run(() => Hn(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
|
+
dn(() => {
|
|
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 = Tn();
|
|
2704
2704
|
const o = n;
|
|
2705
2705
|
o[we] && o[we](r), r.on("*", lt);
|
|
2706
2706
|
}
|
|
2707
|
-
}, t),
|
|
2707
|
+
}, t), mn(() => {
|
|
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;
|
|
@@ -2745,7 +2745,7 @@ function pa(e, t) {
|
|
|
2745
2745
|
});
|
|
2746
2746
|
}
|
|
2747
2747
|
ps(Qr);
|
|
2748
|
-
hs(
|
|
2748
|
+
hs(Ln);
|
|
2749
2749
|
Ms();
|
|
2750
2750
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2751
2751
|
const e = ft();
|
|
@@ -2771,7 +2771,7 @@ Ne("plus", Pr);
|
|
|
2771
2771
|
Ne("minus", Rr);
|
|
2772
2772
|
const Ea = _e({
|
|
2773
2773
|
components: {
|
|
2774
|
-
CountShow:
|
|
2774
|
+
CountShow: gn,
|
|
2775
2775
|
GroupShow: Sr
|
|
2776
2776
|
},
|
|
2777
2777
|
props: {
|
|
@@ -2806,10 +2806,10 @@ const Ea = _e({
|
|
|
2806
2806
|
silentFallbackWarn: !0
|
|
2807
2807
|
});
|
|
2808
2808
|
So("theme", e.theme);
|
|
2809
|
-
const n =
|
|
2809
|
+
const n = x({
|
|
2810
2810
|
onlyShowOnline: !1,
|
|
2811
2811
|
searchStr: ""
|
|
2812
|
-
}), r =
|
|
2812
|
+
}), r = x();
|
|
2813
2813
|
return {
|
|
2814
2814
|
i18nHello: t.global,
|
|
2815
2815
|
inputSearchRef: r,
|
|
@@ -2837,18 +2837,18 @@ function ya(e, t, n, r, o, a) {
|
|
|
2837
2837
|
}, 8, ["countInfo"])
|
|
2838
2838
|
]),
|
|
2839
2839
|
C("div", Ta, [
|
|
2840
|
-
(P(!0), k(
|
|
2840
|
+
(P(!0), k(Oe, null, De((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
|
|
2844
2844
|
}, {
|
|
2845
|
-
group: ce(({ group:
|
|
2846
|
-
oe(e.$slots, "group", { group:
|
|
2845
|
+
group: ce(({ group: _ }) => [
|
|
2846
|
+
oe(e.$slots, "group", { group: _ }, void 0, !0)
|
|
2847
2847
|
]),
|
|
2848
|
-
device: ce(({ device:
|
|
2848
|
+
device: ce(({ device: _, group: d }) => [
|
|
2849
2849
|
oe(e.$slots, "device", {
|
|
2850
|
-
device:
|
|
2851
|
-
group:
|
|
2850
|
+
device: _,
|
|
2851
|
+
group: d
|
|
2852
2852
|
}, void 0, !0)
|
|
2853
2853
|
]),
|
|
2854
2854
|
_: 2
|
|
@@ -2856,8 +2856,8 @@ function ya(e, t, n, r, o, a) {
|
|
|
2856
2856
|
])
|
|
2857
2857
|
]);
|
|
2858
2858
|
}
|
|
2859
|
-
const Ia = /* @__PURE__ */
|
|
2860
|
-
var La = 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 ? La(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
2859
|
+
const Ia = /* @__PURE__ */ de(Ea, [["render", ya], ["__scopeId", "data-v-17e4082a"]]);
|
|
2860
|
+
var La = 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 ? La(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xn = (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)
|
|
@@ -2876,8 +2876,8 @@ function Ra(e, t, n) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
function Fa(e, t, n) {
|
|
2878
2878
|
n.forEach((r) => {
|
|
2879
|
-
const o = Aa(
|
|
2880
|
-
id:
|
|
2879
|
+
const o = Aa(Xn({}, r.leftTop), {
|
|
2880
|
+
id: Qn(r.leftTop),
|
|
2881
2881
|
layout: {
|
|
2882
2882
|
left: 100 / t.col * r.leftTop.col,
|
|
2883
2883
|
top: 100 / t.row * r.leftTop.row,
|
|
@@ -2888,7 +2888,7 @@ function Fa(e, t, n) {
|
|
|
2888
2888
|
e.push(o);
|
|
2889
2889
|
});
|
|
2890
2890
|
}
|
|
2891
|
-
function
|
|
2891
|
+
function Qn(e) {
|
|
2892
2892
|
return `${e.row}-${e.col}`;
|
|
2893
2893
|
}
|
|
2894
2894
|
const cn = "ComponentsDefaultLayoutKeyAF84566";
|
|
@@ -2925,14 +2925,14 @@ const Ue = {
|
|
|
2925
2925
|
for (let o = 0; o < e.col; o++) {
|
|
2926
2926
|
if (Ra(r, o, t))
|
|
2927
2927
|
continue;
|
|
2928
|
-
const a =
|
|
2928
|
+
const a = Xn({
|
|
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: Qn({ row: r, col: o })
|
|
2936
2936
|
}, { row: r, col: o });
|
|
2937
2937
|
n.push(a);
|
|
2938
2938
|
}
|
|
@@ -2952,11 +2952,11 @@ const Ue = {
|
|
|
2952
2952
|
col: c,
|
|
2953
2953
|
points: [0, e.row]
|
|
2954
2954
|
});
|
|
2955
|
-
n.forEach(({ leftTop: { row: c, col: u }, rightBottom: { row:
|
|
2956
|
-
for (let g = c + 1; g <
|
|
2957
|
-
r[g].points.push(u,
|
|
2958
|
-
for (let g = u + 1; g <
|
|
2959
|
-
o[g].points.push(c,
|
|
2955
|
+
n.forEach(({ leftTop: { row: c, col: u }, rightBottom: { row: _, col: d } }) => {
|
|
2956
|
+
for (let g = c + 1; g < _; g++)
|
|
2957
|
+
r[g].points.push(u, d);
|
|
2958
|
+
for (let g = u + 1; g < d; g++)
|
|
2959
|
+
o[g].points.push(c, _);
|
|
2960
2960
|
});
|
|
2961
2961
|
const a = r.concat(...o), s = [];
|
|
2962
2962
|
a.forEach((c) => {
|
|
@@ -2998,7 +2998,7 @@ const Ue = {
|
|
|
2998
2998
|
}
|
|
2999
2999
|
},
|
|
3000
3000
|
setup(e) {
|
|
3001
|
-
const t =
|
|
3001
|
+
const t = x([]);
|
|
3002
3002
|
return e.layouts && e.layouts.forEach((n) => {
|
|
3003
3003
|
t.value.push({
|
|
3004
3004
|
svg: Ue.TransLayoutToSVG(n, { width: 100, height: 100 }),
|
|
@@ -3033,7 +3033,7 @@ const Ue = {
|
|
|
3033
3033
|
const Ma = ["onClick"], Va = { style: { position: "relative", display: "inline-block", margin: "10px" } }, Ua = ["innerHTML"], xa = { style: { "vertical-align": "middle" } };
|
|
3034
3034
|
function Ga(e, t, n, r, o, a) {
|
|
3035
3035
|
return P(), k("div", null, [
|
|
3036
|
-
(P(!0), k(
|
|
3036
|
+
(P(!0), k(Oe, null, De(e.layoutInfos, (s) => (P(), k("div", {
|
|
3037
3037
|
class: Xe(s.select ? "layout-item layout-item-select" : "layout-item"),
|
|
3038
3038
|
onClick: (l) => e.selectClick(s)
|
|
3039
3039
|
}, [
|
|
@@ -3047,7 +3047,7 @@ function Ga(e, t, n, r, o, a) {
|
|
|
3047
3047
|
], 10, Ma))), 256))
|
|
3048
3048
|
]);
|
|
3049
3049
|
}
|
|
3050
|
-
const Wa = /* @__PURE__ */
|
|
3050
|
+
const Wa = /* @__PURE__ */ de($a, [["render", Ga], ["__scopeId", "data-v-dd409189"]]), Ha = _e({
|
|
3051
3051
|
emits: {
|
|
3052
3052
|
LayoutChange(e) {
|
|
3053
3053
|
return !0;
|
|
@@ -3062,7 +3062,10 @@ const Wa = /* @__PURE__ */ me($a, [["render", Ga], ["__scopeId", "data-v-dd40918
|
|
|
3062
3062
|
U.Test.genLayout(1, 2),
|
|
3063
3063
|
U.Test.genLayout(2, 2),
|
|
3064
3064
|
U.Test.genLayout(2, 3),
|
|
3065
|
-
U.genLayout(3, 3, [
|
|
3065
|
+
U.genLayout(3, 3, [
|
|
3066
|
+
[0, 0, 2, 2],
|
|
3067
|
+
[2, 0, 3, 2]
|
|
3068
|
+
]),
|
|
3066
3069
|
U.Test.genLayout(3, 3, [0, 0, 2, 2]),
|
|
3067
3070
|
U.Test.genLayout(3, 3, [1, 0, 2, 3]),
|
|
3068
3071
|
U.Test.genLayout(4, 4, [0, 0, 3, 3]),
|
|
@@ -3076,13 +3079,20 @@ const Wa = /* @__PURE__ */ me($a, [["render", Ga], ["__scopeId", "data-v-dd40918
|
|
|
3076
3079
|
];
|
|
3077
3080
|
let r = Ue.StorageDefaultLayout.get();
|
|
3078
3081
|
const o = r || n[0];
|
|
3079
|
-
function a(
|
|
3080
|
-
return t.emit("LayoutChange",
|
|
3082
|
+
function a(u, _) {
|
|
3083
|
+
return t.emit("LayoutChange", u), u.cancel || (l.value = _), !u.cancel;
|
|
3081
3084
|
}
|
|
3082
|
-
const s = function(
|
|
3083
|
-
JSON.stringify(r) != JSON.stringify(
|
|
3084
|
-
}, l =
|
|
3085
|
-
|
|
3085
|
+
const s = function(u, _) {
|
|
3086
|
+
JSON.stringify(r) != JSON.stringify(u) && a(u, _) && (r = u.layout, Ue.StorageDefaultLayout.set(u.layout)), l.value.length == 0 && a(u, _);
|
|
3087
|
+
}, l = x(""), i = x(!1), c = (u) => {
|
|
3088
|
+
i.value && u.composedPath().findIndex(({ className: d }) => d == "layout-switcher") < 0 && (i.value = !1);
|
|
3089
|
+
};
|
|
3090
|
+
return dn(() => {
|
|
3091
|
+
window.addEventListener("click", c);
|
|
3092
|
+
}), mn(() => {
|
|
3093
|
+
window.removeEventListener("click", c);
|
|
3094
|
+
}), {
|
|
3095
|
+
showSelectPanel: i,
|
|
3086
3096
|
onselect: s,
|
|
3087
3097
|
svgSelect: l,
|
|
3088
3098
|
layout: n,
|
|
@@ -3091,23 +3101,26 @@ const Wa = /* @__PURE__ */ me($a, [["render", Ga], ["__scopeId", "data-v-dd40918
|
|
|
3091
3101
|
},
|
|
3092
3102
|
expose: []
|
|
3093
3103
|
});
|
|
3094
|
-
const
|
|
3104
|
+
const Jn = (e) => (Co("data-v-15037f51"), e = e(), Ao(), e), ja = { class: "layout-switcher" }, Ba = ["innerHTML"], Ya = { class: "switch-panel" }, za = /* @__PURE__ */ Jn(() => /* @__PURE__ */ C("div", { style: { "margin-left": "10px" } }, [
|
|
3095
3105
|
/* @__PURE__ */ C("span", null, "\u8BF7\u9009\u62E9\u5E03\u5C40\u6837\u5F0F")
|
|
3096
|
-
], -1)),
|
|
3097
|
-
function
|
|
3106
|
+
], -1)), Ka = { style: { "margin-left": "10px", padding: "10px" } }, Xa = { style: { "margin-left": "10px" } }, Qa = /* @__PURE__ */ Jn(() => /* @__PURE__ */ C("span", null, "\u6807\u51C6\u6A21\u5F0F\uFF1A", -1));
|
|
3107
|
+
function Ja(e, t, n, r, o, a) {
|
|
3098
3108
|
const s = ie("LayoutShow");
|
|
3099
|
-
return P(), k(
|
|
3100
|
-
C("div",
|
|
3109
|
+
return P(), k("div", ja, [
|
|
3110
|
+
C("div", {
|
|
3111
|
+
onClick: t[0] || (t[0] = (l) => e.showSelectPanel = !e.showSelectPanel),
|
|
3112
|
+
class: "switch-switcher"
|
|
3113
|
+
}, [
|
|
3101
3114
|
C("div", {
|
|
3102
3115
|
innerHTML: e.svgSelect,
|
|
3103
3116
|
style: { height: "32px", display: "inline-block", "vertical-align": "middle" }
|
|
3104
|
-
}, null, 8,
|
|
3117
|
+
}, null, 8, Ba)
|
|
3105
3118
|
]),
|
|
3106
|
-
wo(C("div",
|
|
3107
|
-
|
|
3108
|
-
C("div",
|
|
3109
|
-
C("div",
|
|
3110
|
-
|
|
3119
|
+
wo(C("div", Ya, [
|
|
3120
|
+
za,
|
|
3121
|
+
C("div", Ka, [
|
|
3122
|
+
C("div", Xa, [
|
|
3123
|
+
Qa,
|
|
3111
3124
|
se(s, {
|
|
3112
3125
|
layouts: e.layout,
|
|
3113
3126
|
defaultLayout: e.defaultLayout,
|
|
@@ -3116,11 +3129,11 @@ function Qa(e, t, n, r, o, a) {
|
|
|
3116
3129
|
])
|
|
3117
3130
|
])
|
|
3118
3131
|
], 512), [
|
|
3119
|
-
[Do,
|
|
3132
|
+
[Do, e.showSelectPanel]
|
|
3120
3133
|
])
|
|
3121
|
-
]
|
|
3134
|
+
]);
|
|
3122
3135
|
}
|
|
3123
|
-
const
|
|
3136
|
+
const qa = /* @__PURE__ */ de(Ha, [["render", Ja], ["__scopeId", "data-v-15037f51"]]), Za = _e({
|
|
3124
3137
|
props: {
|
|
3125
3138
|
layout: {
|
|
3126
3139
|
type: Object
|
|
@@ -3128,14 +3141,14 @@ const Ja = /* @__PURE__ */ me(ja, [["render", Qa], ["__scopeId", "data-v-ff93817
|
|
|
3128
3141
|
},
|
|
3129
3142
|
setup(e) {
|
|
3130
3143
|
return {
|
|
3131
|
-
frameRef:
|
|
3144
|
+
frameRef: H(() => e.layout ? Ue.TransLayoutToFrams(e.layout) : [])
|
|
3132
3145
|
};
|
|
3133
3146
|
}
|
|
3134
3147
|
});
|
|
3135
|
-
const
|
|
3136
|
-
function
|
|
3137
|
-
return P(), k("div",
|
|
3138
|
-
(P(!0), k(
|
|
3148
|
+
const el = { style: { position: "relative", height: "calc(100% - 400px)", width: "100%", border: "1px solid", "border-bottom": "0px", "border-left": "0px" } };
|
|
3149
|
+
function tl(e, t, n, r, o, a) {
|
|
3150
|
+
return P(), k("div", el, [
|
|
3151
|
+
(P(!0), k(Oe, null, De(e.frameRef, ({ layout: s, id: l, row: i, col: c }) => (P(), k("div", {
|
|
3139
3152
|
class: "play-area",
|
|
3140
3153
|
style: Ie(`position: absolute; top: calc(${s.top}%); left: calc(${s.left}%); width: calc(${s.width}%); height: calc(${s.height}%);`)
|
|
3141
3154
|
}, [
|
|
@@ -3147,11 +3160,11 @@ function el(e, t, n, r, o, a) {
|
|
|
3147
3160
|
], 4))), 256))
|
|
3148
3161
|
]);
|
|
3149
3162
|
}
|
|
3150
|
-
const
|
|
3163
|
+
const nl = /* @__PURE__ */ de(Za, [["render", tl], ["__scopeId", "data-v-e5654385"]]), un = {
|
|
3151
3164
|
RecursionDeviceGroup: Ia,
|
|
3152
|
-
VideoAreasLayoutShow:
|
|
3153
|
-
MultiVideoAreaLayoutSwitch:
|
|
3154
|
-
},
|
|
3165
|
+
VideoAreasLayoutShow: nl,
|
|
3166
|
+
MultiVideoAreaLayoutSwitch: qa
|
|
3167
|
+
}, sl = {
|
|
3155
3168
|
install(e) {
|
|
3156
3169
|
for (const t in un) {
|
|
3157
3170
|
const n = un[t];
|
|
@@ -3162,6 +3175,6 @@ const tl = /* @__PURE__ */ me(qa, [["render", el], ["__scopeId", "data-v-e565438
|
|
|
3162
3175
|
export {
|
|
3163
3176
|
bt as RecursionDeviceGroup,
|
|
3164
3177
|
U as VideoAreaLayout,
|
|
3165
|
-
|
|
3178
|
+
sl as default
|
|
3166
3179
|
};
|
|
3167
3180
|
//# sourceMappingURL=smarteye-e-components.mjs.map
|