@assemblyvoting/ui-library 3.0.16 → 3.0.17
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/index.js
CHANGED
@@ -185,7 +185,7 @@ function PI(e) {
|
|
185
185
|
function g() {
|
186
186
|
return i = 0, o(a) && (t++, n = 0), s(a) && a++, a++, n++, c[a];
|
187
187
|
}
|
188
|
-
function
|
188
|
+
function y() {
|
189
189
|
return s(a + i) && i++, i++, c[a + i];
|
190
190
|
}
|
191
191
|
function M() {
|
@@ -209,7 +209,7 @@ function PI(e) {
|
|
209
209
|
currentChar: A,
|
210
210
|
currentPeek: V,
|
211
211
|
next: g,
|
212
|
-
peek:
|
212
|
+
peek: y,
|
213
213
|
reset: M,
|
214
214
|
resetPeek: N,
|
215
215
|
skipToPeek: x
|
@@ -277,7 +277,7 @@ function FI(e, c = {}) {
|
|
277
277
|
const v = z.charCodeAt(0);
|
278
278
|
return v >= 48 && v <= 57;
|
279
279
|
}
|
280
|
-
function
|
280
|
+
function y(z, v) {
|
281
281
|
const { currentType: S } = v;
|
282
282
|
if (S !== 2)
|
283
283
|
return !1;
|
@@ -317,7 +317,7 @@ function FI(e, c = {}) {
|
|
317
317
|
const $ = V(z.currentPeek());
|
318
318
|
return z.resetPeek(), $;
|
319
319
|
}
|
320
|
-
function
|
320
|
+
function _(z, v) {
|
321
321
|
const { currentType: S } = v;
|
322
322
|
if (!(S === 8 || S === 12))
|
323
323
|
return !1;
|
@@ -520,7 +520,7 @@ function FI(e, c = {}) {
|
|
520
520
|
return v.braceNest > 0 && m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), S = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, S;
|
521
521
|
if (v.braceNest > 0 && (v.currentType === 5 || v.currentType === 6 || v.currentType === 7))
|
522
522
|
return m(J.UNTERMINATED_CLOSING_BRACE, i(), 0), v.braceNest = 0, s1(z, v);
|
523
|
-
if (Z =
|
523
|
+
if (Z = y(z, v))
|
524
524
|
return S = d(v, 5, v2(z)), A(z), S;
|
525
525
|
if (u2 = M(z, v))
|
526
526
|
return S = d(v, 6, A2(z)), A(z), S;
|
@@ -559,7 +559,7 @@ function FI(e, c = {}) {
|
|
559
559
|
/* TokenChars.LinkedDelimiter */
|
560
560
|
);
|
561
561
|
default:
|
562
|
-
return q(z) ? ($ = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, $) : x(z, v) ||
|
562
|
+
return q(z) ? ($ = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, $) : x(z, v) || _(z, v) ? (A(z), u1(z, v)) : b(z, v) ? (A(z), d(v, 12, o1(z))) : w(z, v) ? (A(z), Z === "{" ? i1(z, v) || $ : d(v, 11, f1(z))) : (S === 8 && m(J.INVALID_LINKED_FORMAT, i(), 0), v.braceNest = 0, v.inLinked = !1, s1(z, v));
|
563
563
|
}
|
564
564
|
}
|
565
565
|
function s1(z, v) {
|
@@ -625,86 +625,86 @@ function UI(e, c, a) {
|
|
625
625
|
}
|
626
626
|
function qI(e = {}) {
|
627
627
|
const c = e.location !== !1, { onError: a } = e;
|
628
|
-
function t(V, g,
|
628
|
+
function t(V, g, y, M, ...N) {
|
629
629
|
const x = V.currentPosition();
|
630
630
|
if (x.offset += M, x.column += M, a) {
|
631
|
-
const b = c ? Q6(
|
631
|
+
const b = c ? Q6(y, x) : null, _ = h3(g, b, {
|
632
632
|
domain: RI,
|
633
633
|
args: N
|
634
634
|
});
|
635
|
-
a(
|
635
|
+
a(_);
|
636
636
|
}
|
637
637
|
}
|
638
|
-
function n(V, g,
|
638
|
+
function n(V, g, y) {
|
639
639
|
const M = { type: V };
|
640
|
-
return c && (M.start = g, M.end = g, M.loc = { start:
|
640
|
+
return c && (M.start = g, M.end = g, M.loc = { start: y, end: y }), M;
|
641
641
|
}
|
642
|
-
function i(V, g,
|
643
|
-
M && (V.type = M), c && (V.end = g, V.loc && (V.loc.end =
|
642
|
+
function i(V, g, y, M) {
|
643
|
+
M && (V.type = M), c && (V.end = g, V.loc && (V.loc.end = y));
|
644
644
|
}
|
645
645
|
function s(V, g) {
|
646
|
-
const
|
646
|
+
const y = V.context(), M = n(3, y.offset, y.startLoc);
|
647
647
|
return M.value = g, i(M, V.currentOffset(), V.currentPosition()), M;
|
648
648
|
}
|
649
649
|
function r(V, g) {
|
650
|
-
const
|
650
|
+
const y = V.context(), { lastOffset: M, lastStartLoc: N } = y, x = n(5, M, N);
|
651
651
|
return x.index = parseInt(g, 10), V.nextToken(), i(x, V.currentOffset(), V.currentPosition()), x;
|
652
652
|
}
|
653
653
|
function l(V, g) {
|
654
|
-
const
|
654
|
+
const y = V.context(), { lastOffset: M, lastStartLoc: N } = y, x = n(4, M, N);
|
655
655
|
return x.key = g, V.nextToken(), i(x, V.currentOffset(), V.currentPosition()), x;
|
656
656
|
}
|
657
657
|
function f(V, g) {
|
658
|
-
const
|
658
|
+
const y = V.context(), { lastOffset: M, lastStartLoc: N } = y, x = n(9, M, N);
|
659
659
|
return x.value = g.replace($I, UI), V.nextToken(), i(x, V.currentOffset(), V.currentPosition()), x;
|
660
660
|
}
|
661
661
|
function o(V) {
|
662
|
-
const g = V.nextToken(),
|
663
|
-
return g.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
662
|
+
const g = V.nextToken(), y = V.context(), { lastOffset: M, lastStartLoc: N } = y, x = n(8, M, N);
|
663
|
+
return g.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), x.value = "", i(x, M, N), {
|
664
664
|
nextConsumeToken: g,
|
665
665
|
node: x
|
666
|
-
}) : (g.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS,
|
666
|
+
}) : (g.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, m1(g)), x.value = g.value || "", i(x, V.currentOffset(), V.currentPosition()), {
|
667
667
|
node: x
|
668
668
|
});
|
669
669
|
}
|
670
670
|
function m(V, g) {
|
671
|
-
const
|
671
|
+
const y = V.context(), M = n(7, y.offset, y.startLoc);
|
672
672
|
return M.value = g, i(M, V.currentOffset(), V.currentPosition()), M;
|
673
673
|
}
|
674
674
|
function d(V) {
|
675
|
-
const g = V.context(),
|
675
|
+
const g = V.context(), y = n(6, g.offset, g.startLoc);
|
676
676
|
let M = V.nextToken();
|
677
677
|
if (M.type === 9) {
|
678
678
|
const N = o(V);
|
679
|
-
|
679
|
+
y.modifier = N.node, M = N.nextConsumeToken || V.nextToken();
|
680
680
|
}
|
681
681
|
switch (M.type !== 10 && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), M = V.nextToken(), M.type === 2 && (M = V.nextToken()), M.type) {
|
682
682
|
case 11:
|
683
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
683
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), y.key = m(V, M.value || "");
|
684
684
|
break;
|
685
685
|
case 5:
|
686
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
686
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), y.key = l(V, M.value || "");
|
687
687
|
break;
|
688
688
|
case 6:
|
689
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
689
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), y.key = r(V, M.value || "");
|
690
690
|
break;
|
691
691
|
case 7:
|
692
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
692
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), y.key = f(V, M.value || "");
|
693
693
|
break;
|
694
694
|
default:
|
695
695
|
t(V, J.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
696
696
|
const N = V.context(), x = n(7, N.offset, N.startLoc);
|
697
|
-
return x.value = "", i(x, N.offset, N.startLoc),
|
697
|
+
return x.value = "", i(x, N.offset, N.startLoc), y.key = x, i(y, N.offset, N.startLoc), {
|
698
698
|
nextConsumeToken: M,
|
699
|
-
node:
|
699
|
+
node: y
|
700
700
|
};
|
701
701
|
}
|
702
|
-
return i(
|
703
|
-
node:
|
702
|
+
return i(y, V.currentOffset(), V.currentPosition()), {
|
703
|
+
node: y
|
704
704
|
};
|
705
705
|
}
|
706
706
|
function h(V) {
|
707
|
-
const g = V.context(),
|
707
|
+
const g = V.context(), y = g.currentType === 1 ? V.currentOffset() : g.offset, M = g.currentType === 1 ? g.endLoc : g.startLoc, N = n(2, y, M);
|
708
708
|
N.items = [];
|
709
709
|
let x = null;
|
710
710
|
do {
|
@@ -728,27 +728,27 @@ function qI(e = {}) {
|
|
728
728
|
break;
|
729
729
|
}
|
730
730
|
} while (g.currentType !== 14 && g.currentType !== 1);
|
731
|
-
const b = g.currentType === 1 ? g.lastOffset : V.currentOffset(),
|
732
|
-
return i(N, b,
|
731
|
+
const b = g.currentType === 1 ? g.lastOffset : V.currentOffset(), _ = g.currentType === 1 ? g.lastEndLoc : V.currentPosition();
|
732
|
+
return i(N, b, _), N;
|
733
733
|
}
|
734
|
-
function C(V, g,
|
734
|
+
function C(V, g, y, M) {
|
735
735
|
const N = V.context();
|
736
736
|
let x = M.items.length === 0;
|
737
|
-
const b = n(1, g,
|
737
|
+
const b = n(1, g, y);
|
738
738
|
b.cases = [], b.cases.push(M);
|
739
739
|
do {
|
740
|
-
const
|
741
|
-
x || (x =
|
740
|
+
const _ = h(V);
|
741
|
+
x || (x = _.items.length === 0), b.cases.push(_);
|
742
742
|
} while (N.currentType !== 14);
|
743
|
-
return x && t(V, J.MUST_HAVE_MESSAGES_IN_PLURAL,
|
743
|
+
return x && t(V, J.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), i(b, V.currentOffset(), V.currentPosition()), b;
|
744
744
|
}
|
745
745
|
function L(V) {
|
746
|
-
const g = V.context(), { offset:
|
747
|
-
return g.currentType === 14 ? N : C(V,
|
746
|
+
const g = V.context(), { offset: y, startLoc: M } = g, N = h(V);
|
747
|
+
return g.currentType === 14 ? N : C(V, y, M, N);
|
748
748
|
}
|
749
749
|
function A(V) {
|
750
|
-
const g = FI(V, ui({}, e)),
|
751
|
-
return c && M.loc && (M.loc.source = V), M.body = L(g), e.onCacheKey && (M.cacheKey = e.onCacheKey(V)),
|
750
|
+
const g = FI(V, ui({}, e)), y = g.context(), M = n(0, y.offset, y.startLoc);
|
751
|
+
return c && M.loc && (M.loc.source = V), M.body = L(g), e.onCacheKey && (M.cacheKey = e.onCacheKey(V)), y.currentType !== 14 && t(g, J.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, V[y.offset] || ""), i(M, g.currentOffset(), g.currentPosition()), M;
|
752
752
|
}
|
753
753
|
return { parse: A };
|
754
754
|
}
|
@@ -1346,14 +1346,14 @@ function HE(e = {}) {
|
|
1346
1346
|
named: f,
|
1347
1347
|
plural: i,
|
1348
1348
|
linked: (V, ...g) => {
|
1349
|
-
const [
|
1349
|
+
const [y, M] = g;
|
1350
1350
|
let N = "text", x = "";
|
1351
|
-
g.length === 1 ? m2(
|
1352
|
-
const b = o(V)(A),
|
1351
|
+
g.length === 1 ? m2(y) ? (x = y.modifier || x, N = y.type || N) : F(y) && (x = y || x) : g.length === 2 && (F(y) && (x = y || x), F(M) && (N = M || N));
|
1352
|
+
const b = o(V)(A), _ = (
|
1353
1353
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1354
1354
|
N === "vnode" && p2(b) && x ? b[0] : b
|
1355
1355
|
);
|
1356
|
-
return x ? m(x)(
|
1356
|
+
return x ? m(x)(_, N) : _;
|
1357
1357
|
},
|
1358
1358
|
message: o,
|
1359
1359
|
type: C,
|
@@ -1486,9 +1486,9 @@ const j9 = (e) => {
|
|
1486
1486
|
}, EE = () => zi;
|
1487
1487
|
let F9 = 0;
|
1488
1488
|
function DE(e = {}) {
|
1489
|
-
const c = V2(e.onWarn) ? e.onWarn : E2, a = F(e.version) ? e.version : xE, t = F(e.locale) || V2(e.locale) ? e.locale : f3, n = V2(t) ? f3 : t, i = p2(e.fallbackLocale) || c2(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, f = P2({}, e.modifiers || {}, kE()), o = e.pluralRules || {}, m = V2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, C = !!e.fallbackFormat, L = !!e.unresolving, A = V2(e.postTranslation) ? e.postTranslation : null, V = c2(e.processor) ? e.processor : null, g = n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0,
|
1489
|
+
const c = V2(e.onWarn) ? e.onWarn : E2, a = F(e.version) ? e.version : xE, t = F(e.locale) || V2(e.locale) ? e.locale : f3, n = V2(t) ? f3 : t, i = p2(e.fallbackLocale) || c2(e.fallbackLocale) || F(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, f = P2({}, e.modifiers || {}, kE()), o = e.pluralRules || {}, m = V2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, C = !!e.fallbackFormat, L = !!e.unresolving, A = V2(e.postTranslation) ? e.postTranslation : null, V = c2(e.processor) ? e.processor : null, g = n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, M = V2(e.messageCompiler) ? e.messageCompiler : vi;
|
1490
1490
|
process.env.NODE_ENV !== "production" && V2(e.messageCompiler) && yI(Q1(U2.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1491
|
-
const N = V2(e.messageResolver) ? e.messageResolver : pi || uE, x = V2(e.localeFallbacker) ? e.localeFallbacker : hi || yE, b = m2(e.fallbackContext) ? e.fallbackContext : void 0,
|
1491
|
+
const N = V2(e.messageResolver) ? e.messageResolver : pi || uE, x = V2(e.localeFallbacker) ? e.localeFallbacker : hi || yE, b = m2(e.fallbackContext) ? e.fallbackContext : void 0, _ = e, w = m2(_.__datetimeFormatters) ? _.__datetimeFormatters : /* @__PURE__ */ new Map(), q = m2(_.__numberFormatters) ? _.__numberFormatters : /* @__PURE__ */ new Map(), W = m2(_.__meta) ? _.__meta : {};
|
1492
1492
|
F9++;
|
1493
1493
|
const R = {
|
1494
1494
|
version: a,
|
@@ -1506,7 +1506,7 @@ function DE(e = {}) {
|
|
1506
1506
|
postTranslation: A,
|
1507
1507
|
processor: V,
|
1508
1508
|
warnHtmlMessage: g,
|
1509
|
-
escapeParameter:
|
1509
|
+
escapeParameter: y,
|
1510
1510
|
messageCompiler: M,
|
1511
1511
|
messageResolver: N,
|
1512
1512
|
localeFallbacker: x,
|
@@ -1514,7 +1514,7 @@ function DE(e = {}) {
|
|
1514
1514
|
onWarn: c,
|
1515
1515
|
__meta: W
|
1516
1516
|
};
|
1517
|
-
return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters = w, R.__numberFormatters = q, process.env.NODE_ENV !== "production" && (R.__v_emitter =
|
1517
|
+
return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters = w, R.__numberFormatters = q, process.env.NODE_ENV !== "production" && (R.__v_emitter = _.__v_emitter != null ? _.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bE(R, a, W), R;
|
1518
1518
|
}
|
1519
1519
|
function j4(e, c) {
|
1520
1520
|
return e instanceof RegExp ? e.test(c) : e;
|
@@ -1665,7 +1665,7 @@ const $9 = () => "", e1 = (e) => V2(e);
|
|
1665
1665
|
function U9(e, ...c) {
|
1666
1666
|
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: i, fallbackLocale: s, messages: r } = e, [l, f] = K6(...c), o = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, m = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, d = n2(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, h = !!f.resolvedMessage, C = F(f.default) || n2(f.default) ? n2(f.default) ? i ? l : () => l : f.default : a ? i ? l : () => l : "", L = a || C !== "", A = _0(e, f);
|
1667
1667
|
d && RE(f);
|
1668
|
-
let [V, g,
|
1668
|
+
let [V, g, y] = h ? [
|
1669
1669
|
l,
|
1670
1670
|
A,
|
1671
1671
|
r[A] || {}
|
@@ -1677,10 +1677,10 @@ function U9(e, ...c) {
|
|
1677
1677
|
let x = !1;
|
1678
1678
|
const b = () => {
|
1679
1679
|
x = !0;
|
1680
|
-
},
|
1680
|
+
}, _ = e1(M) ? M : _i(e, l, g, M, N, b);
|
1681
1681
|
if (x)
|
1682
1682
|
return M;
|
1683
|
-
const w = WE(e, g,
|
1683
|
+
const w = WE(e, g, y, f), q = HE(w), W = $E(e, _, q), R = t ? t(W, l) : W;
|
1684
1684
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1685
1685
|
const j = {
|
1686
1686
|
timestamp: Date.now(),
|
@@ -1717,8 +1717,8 @@ function Li(e, c, a, t, n, i) {
|
|
1717
1717
|
});
|
1718
1718
|
}
|
1719
1719
|
m = s[d] || {};
|
1720
|
-
let g = null,
|
1721
|
-
if (process.env.NODE_ENV !== "production" && p1 && (g = window.performance.now(),
|
1720
|
+
let g = null, y, M;
|
1721
|
+
if (process.env.NODE_ENV !== "production" && p1 && (g = window.performance.now(), y = "intlify-message-resolve-start", M = "intlify-message-resolve-end", X2 && X2(y)), (h = l(m, c)) === null && (h = m[c]), process.env.NODE_ENV !== "production" && p1) {
|
1722
1722
|
const x = window.performance.now(), b = e.__v_emitter;
|
1723
1723
|
b && g && h && b.emit("message-resolve", {
|
1724
1724
|
type: "message-resolve",
|
@@ -1726,7 +1726,7 @@ function Li(e, c, a, t, n, i) {
|
|
1726
1726
|
message: h,
|
1727
1727
|
time: x - g,
|
1728
1728
|
groupId: `${A}:${c}`
|
1729
|
-
}),
|
1729
|
+
}), y && M && X2 && Y1 && (X2(M), Y1("intlify message resolve", y, M));
|
1730
1730
|
}
|
1731
1731
|
if (F(h) || E1(h) || e1(h))
|
1732
1732
|
break;
|
@@ -1855,7 +1855,7 @@ function W9(e, ...c) {
|
|
1855
1855
|
);
|
1856
1856
|
if (!F(l) || l === "")
|
1857
1857
|
return new Intl.DateTimeFormat(L, m).format(f);
|
1858
|
-
let V = {}, g,
|
1858
|
+
let V = {}, g, y = null, M = L, N = null;
|
1859
1859
|
const x = "datetime format";
|
1860
1860
|
for (let w = 0; w < A.length; w++) {
|
1861
1861
|
if (g = N = A[w], process.env.NODE_ENV !== "production" && L !== g && j4(h, l) && i(Q1(U2.FALLBACK_TO_DATE_FORMAT, {
|
@@ -1871,16 +1871,16 @@ function W9(e, ...c) {
|
|
1871
1871
|
groupId: `${x}:${l}`
|
1872
1872
|
});
|
1873
1873
|
}
|
1874
|
-
if (V = a[g] || {},
|
1874
|
+
if (V = a[g] || {}, y = V[l], c2(y))
|
1875
1875
|
break;
|
1876
1876
|
y0(e, l, g, d, x), M = N;
|
1877
1877
|
}
|
1878
|
-
if (!c2(
|
1878
|
+
if (!c2(y) || !F(g))
|
1879
1879
|
return t ? B4 : l;
|
1880
1880
|
let b = `${g}__${l}`;
|
1881
1881
|
P4(m) || (b = `${b}__${JSON.stringify(m)}`);
|
1882
|
-
let
|
1883
|
-
return
|
1882
|
+
let _ = r.get(b);
|
1883
|
+
return _ || (_ = new Intl.DateTimeFormat(g, P2({}, y, m)), r.set(b, _)), C ? _.formatToParts(f) : _.format(f);
|
1884
1884
|
}
|
1885
1885
|
const Ai = [
|
1886
1886
|
"localeMatcher",
|
@@ -1949,7 +1949,7 @@ function Y9(e, ...c) {
|
|
1949
1949
|
);
|
1950
1950
|
if (!F(l) || l === "")
|
1951
1951
|
return new Intl.NumberFormat(L, m).format(f);
|
1952
|
-
let V = {}, g,
|
1952
|
+
let V = {}, g, y = null, M = L, N = null;
|
1953
1953
|
const x = "number format";
|
1954
1954
|
for (let w = 0; w < A.length; w++) {
|
1955
1955
|
if (g = N = A[w], process.env.NODE_ENV !== "production" && L !== g && j4(h, l) && i(Q1(U2.FALLBACK_TO_NUMBER_FORMAT, {
|
@@ -1965,16 +1965,16 @@ function Y9(e, ...c) {
|
|
1965
1965
|
groupId: `${x}:${l}`
|
1966
1966
|
});
|
1967
1967
|
}
|
1968
|
-
if (V = a[g] || {},
|
1968
|
+
if (V = a[g] || {}, y = V[l], c2(y))
|
1969
1969
|
break;
|
1970
1970
|
y0(e, l, g, d, x), M = N;
|
1971
1971
|
}
|
1972
|
-
if (!c2(
|
1972
|
+
if (!c2(y) || !F(g))
|
1973
1973
|
return t ? B4 : l;
|
1974
1974
|
let b = `${g}__${l}`;
|
1975
1975
|
P4(m) || (b = `${b}__${JSON.stringify(m)}`);
|
1976
|
-
let
|
1977
|
-
return
|
1976
|
+
let _ = r.get(b);
|
1977
|
+
return _ || (_ = new Intl.NumberFormat(g, P2({}, y, m)), r.set(b, _)), C ? _.formatToParts(f) : _.format(f);
|
1978
1978
|
}
|
1979
1979
|
const Ni = [
|
1980
1980
|
"localeMatcher",
|
@@ -2275,7 +2275,7 @@ function A0(e = {}, c) {
|
|
2275
2275
|
// prettier-ignore
|
2276
2276
|
a && s ? a.fallbackLocale.value : F(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
|
2277
2277
|
), f = e2(F4(r.value, e)), o = e2(c2(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), m = e2(c2(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
|
2278
|
-
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, C = a ? a.fallbackRoot : n2(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, A = V2(e.missing) ? e.missing : null, V = V2(e.missing) ? en(e.missing) : null, g = V2(e.postTranslation) ? e.postTranslation : null,
|
2278
|
+
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, C = a ? a.fallbackRoot : n2(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, A = V2(e.missing) ? e.missing : null, V = V2(e.missing) ? en(e.missing) : null, g = V2(e.postTranslation) ? e.postTranslation : null, y = a ? a.warnHtmlMessage : n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, M = !!e.escapeParameter;
|
2279
2279
|
const N = a ? a.modifiers : c2(e.modifiers) ? e.modifiers : {};
|
2280
2280
|
let x = e.pluralRules || a && a.pluralRules, b;
|
2281
2281
|
b = (() => {
|
@@ -2293,7 +2293,7 @@ function A0(e = {}, c) {
|
|
2293
2293
|
fallbackFormat: L,
|
2294
2294
|
unresolving: !0,
|
2295
2295
|
postTranslation: g === null ? void 0 : g,
|
2296
|
-
warnHtmlMessage:
|
2296
|
+
warnHtmlMessage: y,
|
2297
2297
|
escapeParameter: M,
|
2298
2298
|
messageResolver: e.messageResolver,
|
2299
2299
|
messageCompiler: e.messageCompiler,
|
@@ -2550,10 +2550,10 @@ function A0(e = {}, c) {
|
|
2550
2550
|
L = T, b.fallbackFormat = L;
|
2551
2551
|
},
|
2552
2552
|
get warnHtmlMessage() {
|
2553
|
-
return
|
2553
|
+
return y;
|
2554
2554
|
},
|
2555
2555
|
set warnHtmlMessage(T) {
|
2556
|
-
|
2556
|
+
y = T, b.warnHtmlMessage = T;
|
2557
2557
|
},
|
2558
2558
|
get escapeParameter() {
|
2559
2559
|
return M;
|
@@ -2583,19 +2583,19 @@ function rD(e) {
|
|
2583
2583
|
let C = e.messages;
|
2584
2584
|
if (c2(e.sharedMessages)) {
|
2585
2585
|
const N = e.sharedMessages;
|
2586
|
-
C = Object.keys(N).reduce((b,
|
2587
|
-
const w = b[
|
2588
|
-
return P2(w, N[
|
2586
|
+
C = Object.keys(N).reduce((b, _) => {
|
2587
|
+
const w = b[_] || (b[_] = {});
|
2588
|
+
return P2(w, N[_]), b;
|
2589
2589
|
}, C || {});
|
2590
2590
|
}
|
2591
|
-
const { __i18n: L, __root: A, __injectWithOption: V } = e, g = e.datetimeFormats,
|
2591
|
+
const { __i18n: L, __root: A, __injectWithOption: V } = e, g = e.datetimeFormats, y = e.numberFormats, M = e.flatJson;
|
2592
2592
|
return {
|
2593
2593
|
locale: c,
|
2594
2594
|
fallbackLocale: a,
|
2595
2595
|
messages: C,
|
2596
2596
|
flatJson: M,
|
2597
2597
|
datetimeFormats: g,
|
2598
|
-
numberFormats:
|
2598
|
+
numberFormats: y,
|
2599
2599
|
missing: t,
|
2600
2600
|
missingWarn: n,
|
2601
2601
|
fallbackWarn: i,
|
@@ -3394,11 +3394,11 @@ function SD(e = {}, c) {
|
|
3394
3394
|
throw w2(o2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
3395
3395
|
const g = C0();
|
3396
3396
|
if (a) {
|
3397
|
-
const
|
3398
|
-
|
3397
|
+
const y = r;
|
3398
|
+
y.__enableEmitter && y.__enableEmitter(g);
|
3399
3399
|
} else {
|
3400
|
-
const
|
3401
|
-
|
3400
|
+
const y = r;
|
3401
|
+
y[X1] && y[X1](g);
|
3402
3402
|
}
|
3403
3403
|
g.on("*", O3);
|
3404
3404
|
}
|
@@ -3517,7 +3517,7 @@ function BD(e, c, a, t = {}) {
|
|
3517
3517
|
), l = e2(
|
3518
3518
|
// prettier-ignore
|
3519
3519
|
!n || s ? a.fallbackLocale.value : F(t.fallbackLocale) || p2(t.fallbackLocale) || c2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
|
3520
|
-
), f = e2(F4(r.value, t)), o = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0, C = n ? a.fallbackRoot : n2(t.fallbackRoot) ? t.fallbackRoot : !0, L = !!t.fallbackFormat, A = V2(t.missing) ? t.missing : null, V = V2(t.postTranslation) ? t.postTranslation : null, g = n ? a.warnHtmlMessage : n2(t.warnHtmlMessage) ? t.warnHtmlMessage : !0,
|
3520
|
+
), f = e2(F4(r.value, t)), o = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0, C = n ? a.fallbackRoot : n2(t.fallbackRoot) ? t.fallbackRoot : !0, L = !!t.fallbackFormat, A = V2(t.missing) ? t.missing : null, V = V2(t.postTranslation) ? t.postTranslation : null, g = n ? a.warnHtmlMessage : n2(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, y = !!t.escapeParameter, M = n ? a.modifiers : c2(t.modifiers) ? t.modifiers : {}, N = t.pluralRules || n && a.pluralRules;
|
3521
3521
|
function x() {
|
3522
3522
|
return [
|
3523
3523
|
r.value,
|
@@ -3532,7 +3532,7 @@ function BD(e, c, a, t = {}) {
|
|
3532
3532
|
set: (v) => {
|
3533
3533
|
i.value && (i.value.locale.value = v), r.value = v;
|
3534
3534
|
}
|
3535
|
-
}),
|
3535
|
+
}), _ = E({
|
3536
3536
|
get: () => i.value ? i.value.fallbackLocale.value : l.value,
|
3537
3537
|
set: (v) => {
|
3538
3538
|
i.value && (i.value.fallbackLocale.value = v), l.value = v;
|
@@ -3603,7 +3603,7 @@ function BD(e, c, a, t = {}) {
|
|
3603
3603
|
return i.value ? i.value.id : -1;
|
3604
3604
|
},
|
3605
3605
|
locale: b,
|
3606
|
-
fallbackLocale:
|
3606
|
+
fallbackLocale: _,
|
3607
3607
|
messages: w,
|
3608
3608
|
datetimeFormats: q,
|
3609
3609
|
numberFormats: W,
|
@@ -3656,7 +3656,7 @@ function BD(e, c, a, t = {}) {
|
|
3656
3656
|
i.value && (i.value.warnHtmlMessage = v);
|
3657
3657
|
},
|
3658
3658
|
get escapeParameter() {
|
3659
|
-
return i.value ? i.value.escapeParameter :
|
3659
|
+
return i.value ? i.value.escapeParameter : y;
|
3660
3660
|
},
|
3661
3661
|
set escapeParameter(v) {
|
3662
3662
|
i.value && (i.value.escapeParameter = v);
|
@@ -3688,7 +3688,7 @@ function BD(e, c, a, t = {}) {
|
|
3688
3688
|
v.mergeDateTimeFormat(S, o.value[S]);
|
3689
3689
|
}), Object.keys(m.value).forEach((S) => {
|
3690
3690
|
v.mergeNumberFormat(S, m.value[S]);
|
3691
|
-
}), v.escapeParameter =
|
3691
|
+
}), v.escapeParameter = y, v.fallbackFormat = L, v.fallbackRoot = C, v.fallbackWarn = h, v.missingWarn = d, v.warnHtmlMessage = g;
|
3692
3692
|
}
|
3693
3693
|
return oI(() => {
|
3694
3694
|
if (e.proxy == null || e.proxy.$i18n == null)
|
@@ -5853,8 +5853,8 @@ var MO = function(c, a) {
|
|
5853
5853
|
function bO(e) {
|
5854
5854
|
var c, a = e.state, t = e.name, n = e.options, i = a.elements.arrow, s = a.modifiersData.popperOffsets, r = v1(a.placement), l = I0(r), f = [G2, n1].indexOf(r) >= 0, o = f ? "height" : "width";
|
5855
5855
|
if (!(!i || !s)) {
|
5856
|
-
var m = MO(n.padding, a), d = T0(i), h = l === "y" ? W2 : G2, C = l === "y" ? t1 : n1, L = a.rects.reference[o] + a.rects.reference[l] - s[l] - a.rects.popper[o], A = s[l] - a.rects.reference[l], V = W3(i), g = V ? l === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0,
|
5857
|
-
a.modifiersData[t] = (c = {}, c[
|
5856
|
+
var m = MO(n.padding, a), d = T0(i), h = l === "y" ? W2 : G2, C = l === "y" ? t1 : n1, L = a.rects.reference[o] + a.rects.reference[l] - s[l] - a.rects.popper[o], A = s[l] - a.rects.reference[l], V = W3(i), g = V ? l === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0, y = L / 2 - A / 2, M = m[h], N = g - d[o] - m[C], x = g / 2 - d[o] / 2 + y, b = N3(M, x, N), _ = l;
|
5857
|
+
a.modifiersData[t] = (c = {}, c[_] = b, c.centerOffset = b - x, c);
|
5858
5858
|
}
|
5859
5859
|
}
|
5860
5860
|
function CO(e) {
|
@@ -5895,10 +5895,10 @@ function mn(e) {
|
|
5895
5895
|
y: L
|
5896
5896
|
};
|
5897
5897
|
h = A.x, L = A.y;
|
5898
|
-
var V = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"),
|
5898
|
+
var V = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"), y = G2, M = W2, N = window;
|
5899
5899
|
if (f) {
|
5900
|
-
var x = W3(a), b = "clientHeight",
|
5901
|
-
if (x === K2(a) && (x = j1(a), C1(x).position !== "static" && r === "absolute" && (b = "scrollHeight",
|
5900
|
+
var x = W3(a), b = "clientHeight", _ = "clientWidth";
|
5901
|
+
if (x === K2(a) && (x = j1(a), C1(x).position !== "static" && r === "absolute" && (b = "scrollHeight", _ = "scrollWidth")), x = x, n === W2 || (n === G2 || n === n1) && i === P3) {
|
5902
5902
|
M = t1;
|
5903
5903
|
var w = m && x === N && N.visualViewport ? N.visualViewport.height : (
|
5904
5904
|
// $FlowFixMe[prop-missing]
|
@@ -5907,10 +5907,10 @@ function mn(e) {
|
|
5907
5907
|
L -= w - t.height, L *= l ? 1 : -1;
|
5908
5908
|
}
|
5909
5909
|
if (n === G2 || (n === W2 || n === t1) && i === P3) {
|
5910
|
-
|
5910
|
+
y = n1;
|
5911
5911
|
var q = m && x === N && N.visualViewport ? N.visualViewport.width : (
|
5912
5912
|
// $FlowFixMe[prop-missing]
|
5913
|
-
x[
|
5913
|
+
x[_]
|
5914
5914
|
);
|
5915
5915
|
h -= q - t.width, h *= l ? 1 : -1;
|
5916
5916
|
}
|
@@ -5926,9 +5926,9 @@ function mn(e) {
|
|
5926
5926
|
};
|
5927
5927
|
if (h = R.x, L = R.y, l) {
|
5928
5928
|
var j;
|
5929
|
-
return Object.assign({}, W, (j = {}, j[M] = g ? "0" : "", j[
|
5929
|
+
return Object.assign({}, W, (j = {}, j[M] = g ? "0" : "", j[y] = V ? "0" : "", j.transform = (N.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + L + "px)" : "translate3d(" + h + "px, " + L + "px, 0)", j));
|
5930
5930
|
}
|
5931
|
-
return Object.assign({}, W, (c = {}, c[M] = g ? L + "px" : "", c[
|
5931
|
+
return Object.assign({}, W, (c = {}, c[M] = g ? L + "px" : "", c[y] = V ? h + "px" : "", c.transform = "", c));
|
5932
5932
|
}
|
5933
5933
|
function AO(e) {
|
5934
5934
|
var c = e.state, a = e.options, t = a.gpuAcceleration, n = t === void 0 ? !0 : t, i = a.adaptive, s = i === void 0 ? !0 : i, r = a.roundOffsets, l = r === void 0 ? !0 : r, f = {
|
@@ -6128,12 +6128,12 @@ function Xi(e) {
|
|
6128
6128
|
}
|
6129
6129
|
function B3(e, c) {
|
6130
6130
|
c === void 0 && (c = {});
|
6131
|
-
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, i = a.strategy, s = i === void 0 ? e.strategy : i, r = a.boundary, l = r === void 0 ? tO : r, f = a.rootBoundary, o = f === void 0 ? Ri : f, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary, C = h === void 0 ? !1 : h, L = a.padding, A = L === void 0 ? 0 : L, V = Gi(typeof A != "number" ? A : Yi(A, q3)), g = d === L3 ? nO : L3,
|
6131
|
+
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, i = a.strategy, s = i === void 0 ? e.strategy : i, r = a.boundary, l = r === void 0 ? tO : r, f = a.rootBoundary, o = f === void 0 ? Ri : f, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary, C = h === void 0 ? !1 : h, L = a.padding, A = L === void 0 ? 0 : L, V = Gi(typeof A != "number" ? A : Yi(A, q3)), g = d === L3 ? nO : L3, y = e.rects.popper, M = e.elements[C ? g : d], N = OO(K1(M) ? M : M.contextElement || j1(e.elements.popper), l, o, s), x = d3(e.elements.reference), b = Xi({
|
6132
6132
|
reference: x,
|
6133
|
-
element:
|
6133
|
+
element: y,
|
6134
6134
|
strategy: "absolute",
|
6135
6135
|
placement: n
|
6136
|
-
}),
|
6136
|
+
}), _ = l0(Object.assign({}, y, b)), w = d === L3 ? _ : x, q = {
|
6137
6137
|
top: N.top - w.top + V.top,
|
6138
6138
|
bottom: w.bottom - N.bottom + V.bottom,
|
6139
6139
|
left: N.left - w.left + V.left,
|
@@ -6177,7 +6177,7 @@ function BO(e) {
|
|
6177
6177
|
function jO(e) {
|
6178
6178
|
var c = e.state, a = e.options, t = e.name;
|
6179
6179
|
if (!c.modifiersData[t]._skip) {
|
6180
|
-
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !0 : s, l = a.fallbackPlacements, f = a.padding, o = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, C = h === void 0 ? !0 : h, L = a.allowedAutoPlacements, A = c.options.placement, V = v1(A), g = V === A,
|
6180
|
+
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !0 : s, l = a.fallbackPlacements, f = a.padding, o = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, C = h === void 0 ? !0 : h, L = a.allowedAutoPlacements, A = c.options.placement, V = v1(A), g = V === A, y = l || (g || !C ? [A4(A)] : BO(A)), M = [A].concat(y).reduce(function(I2, j2) {
|
6181
6181
|
return I2.concat(v1(j2) === S0 ? PO(c, {
|
6182
6182
|
placement: j2,
|
6183
6183
|
boundary: o,
|
@@ -6186,7 +6186,7 @@ function jO(e) {
|
|
6186
6186
|
flipVariations: C,
|
6187
6187
|
allowedAutoPlacements: L
|
6188
6188
|
}) : j2);
|
6189
|
-
}, []), N = c.rects.reference, x = c.rects.popper, b = /* @__PURE__ */ new Map(),
|
6189
|
+
}, []), N = c.rects.reference, x = c.rects.popper, b = /* @__PURE__ */ new Map(), _ = !0, w = M[0], q = 0; q < M.length; q++) {
|
6190
6190
|
var W = M[q], R = v1(W), j = v3(W) === u3, t2 = [W2, t1].indexOf(R) >= 0, f2 = t2 ? "width" : "height", r2 = B3(c, {
|
6191
6191
|
placement: W,
|
6192
6192
|
boundary: o,
|
@@ -6199,12 +6199,12 @@ function jO(e) {
|
|
6199
6199
|
if (i && b2.push(r2[R] <= 0), r && b2.push(r2[h2] <= 0, r2[F2] <= 0), b2.every(function(I2) {
|
6200
6200
|
return I2;
|
6201
6201
|
})) {
|
6202
|
-
w = W,
|
6202
|
+
w = W, _ = !1;
|
6203
6203
|
break;
|
6204
6204
|
}
|
6205
6205
|
b.set(W, b2);
|
6206
6206
|
}
|
6207
|
-
if (
|
6207
|
+
if (_)
|
6208
6208
|
for (var v2 = C ? 3 : 1, A2 = function(j2) {
|
6209
6209
|
var o1 = M.find(function(f1) {
|
6210
6210
|
var R2 = b.get(f1);
|
@@ -6322,7 +6322,7 @@ function XO(e) {
|
|
6322
6322
|
rootBoundary: f,
|
6323
6323
|
padding: m,
|
6324
6324
|
altBoundary: o
|
6325
|
-
}), V = v1(c.placement), g = v3(c.placement),
|
6325
|
+
}), V = v1(c.placement), g = v3(c.placement), y = !g, M = I0(V), N = QO(M), x = c.modifiersData.popperOffsets, b = c.rects.reference, _ = c.rects.popper, w = typeof L == "function" ? L(Object.assign({}, c.rects, {
|
6326
6326
|
placement: c.placement
|
6327
6327
|
})) : L, q = typeof w == "number" ? {
|
6328
6328
|
mainAxis: w,
|
@@ -6336,14 +6336,14 @@ function XO(e) {
|
|
6336
6336
|
};
|
6337
6337
|
if (x) {
|
6338
6338
|
if (i) {
|
6339
|
-
var j, t2 = M === "y" ? W2 : G2, f2 = M === "y" ? t1 : n1, r2 = M === "y" ? "height" : "width", h2 = x[M], F2 = h2 + A[t2], b2 = h2 - A[f2], v2 = h ? -
|
6339
|
+
var j, t2 = M === "y" ? W2 : G2, f2 = M === "y" ? t1 : n1, r2 = M === "y" ? "height" : "width", h2 = x[M], F2 = h2 + A[t2], b2 = h2 - A[f2], v2 = h ? -_[r2] / 2 : 0, A2 = g === u3 ? b[r2] : _[r2], k2 = g === u3 ? -_[r2] : -b[r2], C2 = c.elements.arrow, I2 = h && C2 ? T0(C2) : {
|
6340
6340
|
width: 0,
|
6341
6341
|
height: 0
|
6342
|
-
}, j2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Wi(), o1 = j2[t2], f1 = j2[f2], R2 = N3(0, b[r2], I2[r2]), i1 =
|
6342
|
+
}, j2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Wi(), o1 = j2[t2], f1 = j2[f2], R2 = N3(0, b[r2], I2[r2]), i1 = y ? b[r2] / 2 - v2 - R2 - o1 - q.mainAxis : A2 - R2 - o1 - q.mainAxis, u1 = y ? -b[r2] / 2 + v2 + R2 + f1 + q.mainAxis : k2 + R2 + f1 + q.mainAxis, s1 = c.elements.arrow && W3(c.elements.arrow), F1 = s1 ? M === "y" ? s1.clientTop || 0 : s1.clientLeft || 0 : 0, z = (j = W == null ? void 0 : W[M]) != null ? j : 0, v = h2 + i1 - z - F1, S = h2 + u1 - z, $ = N3(h ? S4(F2, v) : F2, h2, h ? G1(b2, S) : b2);
|
6343
6343
|
x[M] = $, R[M] = $ - h2;
|
6344
6344
|
}
|
6345
6345
|
if (r) {
|
6346
|
-
var Z, u2 = M === "x" ? W2 : G2, J2 = M === "x" ? t1 : n1, O2 = x[N], e3 = N === "y" ? "height" : "width", m4 = O2 + A[u2], d4 = O2 - A[J2], L2 = [W2, G2].indexOf(V) !== -1, T = (Z = W == null ? void 0 : W[N]) != null ? Z : 0, P = L2 ? m4 : O2 - b[e3] -
|
6346
|
+
var Z, u2 = M === "x" ? W2 : G2, J2 = M === "x" ? t1 : n1, O2 = x[N], e3 = N === "y" ? "height" : "width", m4 = O2 + A[u2], d4 = O2 - A[J2], L2 = [W2, G2].indexOf(V) !== -1, T = (Z = W == null ? void 0 : W[N]) != null ? Z : 0, P = L2 ? m4 : O2 - b[e3] - _[e3] - T + q.altAxis, l2 = L2 ? O2 + b[e3] + _[e3] - T - q.altAxis : d4, _2 = h && L2 ? HO(P, O2, l2) : N3(h ? P : m4, O2, h ? l2 : d4);
|
6347
6347
|
x[N] = _2, R[N] = _2 - O2;
|
6348
6348
|
}
|
6349
6349
|
c.modifiersData[t] = R;
|
@@ -6471,8 +6471,8 @@ function sP(e) {
|
|
6471
6471
|
reference: K1(r) ? x3(r) : r.contextElement ? x3(r.contextElement) : [],
|
6472
6472
|
popper: x3(l)
|
6473
6473
|
};
|
6474
|
-
var
|
6475
|
-
return o.orderedModifiers =
|
6474
|
+
var y = tP(iP([].concat(t, o.options.modifiers)));
|
6475
|
+
return o.orderedModifiers = y.filter(function(M) {
|
6476
6476
|
return M.enabled;
|
6477
6477
|
}), C(), h.update();
|
6478
6478
|
},
|
@@ -6483,11 +6483,11 @@ function sP(e) {
|
|
6483
6483
|
// prefer the async Popper#update method
|
6484
6484
|
forceUpdate: function() {
|
6485
6485
|
if (!d) {
|
6486
|
-
var V = o.elements, g = V.reference,
|
6487
|
-
if (zn(g,
|
6486
|
+
var V = o.elements, g = V.reference, y = V.popper;
|
6487
|
+
if (zn(g, y)) {
|
6488
6488
|
o.rects = {
|
6489
|
-
reference: cP(g, W3(
|
6490
|
-
popper: T0(
|
6489
|
+
reference: cP(g, W3(y), o.options.strategy === "fixed"),
|
6490
|
+
popper: T0(y)
|
6491
6491
|
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(q) {
|
6492
6492
|
return o.modifiersData[q.name] = Object.assign({}, q.data);
|
6493
6493
|
});
|
@@ -6496,10 +6496,10 @@ function sP(e) {
|
|
6496
6496
|
o.reset = !1, M = -1;
|
6497
6497
|
continue;
|
6498
6498
|
}
|
6499
|
-
var N = o.orderedModifiers[M], x = N.fn, b = N.options,
|
6499
|
+
var N = o.orderedModifiers[M], x = N.fn, b = N.options, _ = b === void 0 ? {} : b, w = N.name;
|
6500
6500
|
typeof x == "function" && (o = x({
|
6501
6501
|
state: o,
|
6502
|
-
options:
|
6502
|
+
options: _,
|
6503
6503
|
name: w,
|
6504
6504
|
instance: h
|
6505
6505
|
}) || o);
|
@@ -6525,13 +6525,13 @@ function sP(e) {
|
|
6525
6525
|
});
|
6526
6526
|
function C() {
|
6527
6527
|
o.orderedModifiers.forEach(function(A) {
|
6528
|
-
var V = A.name, g = A.options,
|
6528
|
+
var V = A.name, g = A.options, y = g === void 0 ? {} : g, M = A.effect;
|
6529
6529
|
if (typeof M == "function") {
|
6530
6530
|
var N = M({
|
6531
6531
|
state: o,
|
6532
6532
|
name: V,
|
6533
6533
|
instance: h,
|
6534
|
-
options:
|
6534
|
+
options: y
|
6535
6535
|
}), x = function() {
|
6536
6536
|
};
|
6537
6537
|
m.push(N || x);
|
@@ -6748,36 +6748,36 @@ const An = {
|
|
6748
6748
|
},
|
6749
6749
|
...e
|
6750
6750
|
}, t = e2(void 0), n = e2(void 0), i = e2(void 0), s = e2(!1), r = e2(!1), l = e2(!1), f = e2(a.placement || "top"), o = E(() => {
|
6751
|
-
let { modifiers:
|
6752
|
-
return a.modifiers && (
|
6751
|
+
let { modifiers: _ } = An;
|
6752
|
+
return a.modifiers && (_ = [..._, ...a.modifiers]), {
|
6753
6753
|
...An,
|
6754
6754
|
strategy: a.strategy,
|
6755
6755
|
placement: a.placement,
|
6756
|
-
modifiers:
|
6756
|
+
modifiers: _,
|
6757
6757
|
...a.popperOptions
|
6758
6758
|
};
|
6759
6759
|
}), m = function() {
|
6760
6760
|
return a.hover === !1 || a.interactive === !1 ? a.closeDelay : a.closeDelay === 0 ? 150 : a.closeDelay;
|
6761
6761
|
}, d = Hn(async () => {
|
6762
6762
|
var w;
|
6763
|
-
const
|
6764
|
-
f.value = (
|
6763
|
+
const _ = await ((w = i.value) == null ? void 0 : w.update());
|
6764
|
+
f.value = (_ == null ? void 0 : _.placement) || a.placement, s.value = !0;
|
6765
6765
|
}, a.openDelay), h = Hn(() => {
|
6766
6766
|
if (a.hover === !1 || a.interactive === !1) {
|
6767
6767
|
s.value = !1;
|
6768
6768
|
return;
|
6769
6769
|
}
|
6770
6770
|
r.value === !1 && l.value === !1 && (s.value = !1);
|
6771
|
-
}, m()), C = (
|
6772
|
-
let w =
|
6773
|
-
if (
|
6771
|
+
}, m()), C = (_ = "") => {
|
6772
|
+
let w = _;
|
6773
|
+
if (_ === "" && (w = s.value ? "close" : "open"), w === "open") {
|
6774
6774
|
d();
|
6775
6775
|
return;
|
6776
6776
|
}
|
6777
6777
|
h();
|
6778
|
-
}, L = (
|
6779
|
-
a.hover !== !1 && (w === "trigger" ? r.value =
|
6780
|
-
}, A = function(
|
6778
|
+
}, L = (_ = "", w = "") => {
|
6779
|
+
a.hover !== !1 && (w === "trigger" ? r.value = _ === "open" : l.value = _ === "open", C(_));
|
6780
|
+
}, A = function(_, w) {
|
6781
6781
|
const { slots: q } = w;
|
6782
6782
|
return M1(
|
6783
6783
|
"div",
|
@@ -6793,50 +6793,50 @@ const An = {
|
|
6793
6793
|
q.default ? q.default() : ""
|
6794
6794
|
);
|
6795
6795
|
}, V = E(() => {
|
6796
|
-
const { animation:
|
6797
|
-
if (
|
6796
|
+
const { animation: _ } = a;
|
6797
|
+
if (_ === "none")
|
6798
6798
|
return {
|
6799
6799
|
outer: "",
|
6800
6800
|
inner: ""
|
6801
6801
|
};
|
6802
|
-
let w =
|
6803
|
-
return
|
6802
|
+
let w = _;
|
6803
|
+
return _ === "fade-slide" && (w = "shift-in"), {
|
6804
6804
|
outer: "fade",
|
6805
6805
|
inner: w
|
6806
6806
|
};
|
6807
6807
|
}), g = E(() => {
|
6808
|
-
const { animationDuration:
|
6809
|
-
if (!Array.isArray(
|
6810
|
-
const W =
|
6808
|
+
const { animationDuration: _ } = a;
|
6809
|
+
if (!Array.isArray(_)) {
|
6810
|
+
const W = _ || 300;
|
6811
6811
|
return {
|
6812
6812
|
enter: `${W / 1e3}s`,
|
6813
6813
|
leave: `${W / 1e3}s`
|
6814
6814
|
};
|
6815
6815
|
}
|
6816
|
-
const [w, q] =
|
6816
|
+
const [w, q] = _;
|
6817
6817
|
return {
|
6818
6818
|
enter: `${w / 1e3}s`,
|
6819
6819
|
leave: `${q / 1e3}s`
|
6820
6820
|
};
|
6821
|
-
}),
|
6822
|
-
const
|
6823
|
-
return
|
6821
|
+
}), y = E(() => {
|
6822
|
+
const _ = Object.keys(Nn).find((w) => f.value.startsWith(w));
|
6823
|
+
return _ === void 0 ? "translate(0, 0)" : Nn[_];
|
6824
6824
|
}), M = E(() => {
|
6825
|
-
const
|
6826
|
-
return
|
6825
|
+
const _ = Object.keys(xn).find((w) => f.value.startsWith(w));
|
6826
|
+
return _ === void 0 ? "center center" : xn[_];
|
6827
6827
|
}), N = E(() => {
|
6828
6828
|
if (i.value === void 0)
|
6829
6829
|
return "";
|
6830
|
-
const
|
6830
|
+
const _ = {
|
6831
6831
|
"--vue-popper-enter-duration": g.value.enter,
|
6832
6832
|
"--vue-popper-leave-duration": g.value.leave,
|
6833
|
-
"--vue-popper-shift-transform":
|
6833
|
+
"--vue-popper-shift-transform": y.value,
|
6834
6834
|
"--vue-popper-scale-transform-origin": M.value
|
6835
6835
|
}, w = i.value.state.styles.popper;
|
6836
|
-
return MP(w,
|
6837
|
-
}), x = (
|
6838
|
-
a.onTransition !== void 0 && a.onTransition(
|
6839
|
-
}, b = function(
|
6836
|
+
return MP(w, _);
|
6837
|
+
}), x = (_, w) => {
|
6838
|
+
a.onTransition !== void 0 && a.onTransition(_, w);
|
6839
|
+
}, b = function(_, w) {
|
6840
6840
|
const { slots: q } = w;
|
6841
6841
|
return M1(
|
6842
6842
|
w1,
|
@@ -6870,10 +6870,10 @@ const An = {
|
|
6870
6870
|
V.value.inner === "shift-out" && (W.style.animation = `shift-out ${g.value.enter}`), x("enter", W);
|
6871
6871
|
},
|
6872
6872
|
onAfterEnter(W) {
|
6873
|
-
V.value.inner === "shift-out" && (W.style.transform =
|
6873
|
+
V.value.inner === "shift-out" && (W.style.transform = y.value), x("after-enter", W);
|
6874
6874
|
},
|
6875
6875
|
onBeforeLeave(W) {
|
6876
|
-
V.value.inner === "shift-out" && (W.style.transform =
|
6876
|
+
V.value.inner === "shift-out" && (W.style.transform = y.value, W.style.animation = ""), x("before-leave", W);
|
6877
6877
|
},
|
6878
6878
|
onLeave(W) {
|
6879
6879
|
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"), x("leave", W);
|
@@ -6919,11 +6919,11 @@ const An = {
|
|
6919
6919
|
o.value
|
6920
6920
|
));
|
6921
6921
|
}), ni(() => {
|
6922
|
-
var
|
6923
|
-
(
|
6924
|
-
}), s2(s, (
|
6922
|
+
var _;
|
6923
|
+
(_ = i.value) == null || _.destroy(), i.value = void 0;
|
6924
|
+
}), s2(s, (_) => {
|
6925
6925
|
var w;
|
6926
|
-
if (
|
6926
|
+
if (_ === !1) {
|
6927
6927
|
a.onClosed !== void 0 && a.onClosed();
|
6928
6928
|
return;
|
6929
6929
|
}
|
@@ -18084,7 +18084,7 @@ function H9(e) {
|
|
18084
18084
|
return m.classes.indexOf(w) === -1;
|
18085
18085
|
}).filter(function(w) {
|
18086
18086
|
return w !== "" || !!w;
|
18087
|
-
}).concat(m.classes).join(" "),
|
18087
|
+
}).concat(m.classes).join(" "), y = {
|
18088
18088
|
children: [],
|
18089
18089
|
attributes: U(U({}, m.attributes), {}, {
|
18090
18090
|
"data-prefix": n,
|
@@ -18097,14 +18097,14 @@ function H9(e) {
|
|
18097
18097
|
}, M = V && !~m.classes.indexOf("fa-fw") ? {
|
18098
18098
|
width: "".concat(L / A * 16 * 0.0625, "em")
|
18099
18099
|
} : {};
|
18100
|
-
h && (
|
18100
|
+
h && (y.attributes[Z1] = ""), l && (y.children.push({
|
18101
18101
|
tag: "title",
|
18102
18102
|
attributes: {
|
18103
|
-
id:
|
18103
|
+
id: y.attributes["aria-labelledby"] || "title-".concat(o || U3())
|
18104
18104
|
},
|
18105
18105
|
children: [l]
|
18106
|
-
}), delete
|
18107
|
-
var N = U(U({},
|
18106
|
+
}), delete y.attributes.title);
|
18107
|
+
var N = U(U({}, y), {}, {
|
18108
18108
|
prefix: n,
|
18109
18109
|
iconName: i,
|
18110
18110
|
main: a,
|
@@ -18119,8 +18119,8 @@ function H9(e) {
|
|
18119
18119
|
} : y1("generateAbstractIcon", N) || {
|
18120
18120
|
children: [],
|
18121
18121
|
attributes: {}
|
18122
|
-
}, b = x.children,
|
18123
|
-
return N.children = b, N.attributes =
|
18122
|
+
}, b = x.children, _ = x.attributes;
|
18123
|
+
return N.children = b, N.attributes = _, r ? LB(N) : CB(N);
|
18124
18124
|
}
|
18125
18125
|
function Rn(e) {
|
18126
18126
|
var c = e.content, a = e.width, t = e.height, n = e.transform, i = e.title, s = e.extra, r = e.watchable, l = r === void 0 ? !1 : r, f = U(U(U({}, s.attributes), i ? {
|
@@ -18506,7 +18506,7 @@ function RB(e) {
|
|
18506
18506
|
};
|
18507
18507
|
}
|
18508
18508
|
var $B = function(c) {
|
18509
|
-
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, i = a.symbol, s = i === void 0 ? !1 : i, r = a.mask, l = r === void 0 ? null : r, f = a.maskId, o = f === void 0 ? null : f, m = a.title, d = m === void 0 ? null : m, h = a.titleId, C = h === void 0 ? null : h, L = a.classes, A = L === void 0 ? [] : L, V = a.attributes, g = V === void 0 ? {} : V,
|
18509
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, i = a.symbol, s = i === void 0 ? !1 : i, r = a.mask, l = r === void 0 ? null : r, f = a.maskId, o = f === void 0 ? null : f, m = a.title, d = m === void 0 ? null : m, h = a.titleId, C = h === void 0 ? null : h, L = a.classes, A = L === void 0 ? [] : L, V = a.attributes, g = V === void 0 ? {} : V, y = a.styles, M = y === void 0 ? {} : y;
|
18510
18510
|
if (c) {
|
18511
18511
|
var N = c.prefix, x = c.iconName, b = c.icon;
|
18512
18512
|
return P6(U({
|
@@ -18716,26 +18716,26 @@ function Xn(e, c) {
|
|
18716
18716
|
if (s && !l)
|
18717
18717
|
return e.removeChild(s), t();
|
18718
18718
|
if (l && o !== "none" && o !== "") {
|
18719
|
-
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? F3[d][l[2].toLowerCase()] : $P[d][f], C = QB(m), L = C.value, A = C.isSecondary, V = l[0].startsWith("FontAwesome"), g = z9(h, L),
|
18719
|
+
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? F3[d][l[2].toLowerCase()] : $P[d][f], C = QB(m), L = C.value, A = C.isSecondary, V = l[0].startsWith("FontAwesome"), g = z9(h, L), y = g;
|
18720
18720
|
if (V) {
|
18721
18721
|
var M = pB(L);
|
18722
18722
|
M.iconName && M.prefix && (g = M.iconName, h = M.prefix);
|
18723
18723
|
}
|
18724
|
-
if (g && !A && (!s || s.getAttribute(m9) !== h || s.getAttribute(d9) !==
|
18725
|
-
e.setAttribute(a,
|
18724
|
+
if (g && !A && (!s || s.getAttribute(m9) !== h || s.getAttribute(d9) !== y)) {
|
18725
|
+
e.setAttribute(a, y), s && e.removeChild(s);
|
18726
18726
|
var N = BB(), x = N.extra;
|
18727
18727
|
x.attributes[u0] = c, V0(g, h).then(function(b) {
|
18728
|
-
var
|
18728
|
+
var _ = H9(U(U({}, N), {}, {
|
18729
18729
|
icons: {
|
18730
18730
|
main: b,
|
18731
18731
|
mask: g9()
|
18732
18732
|
},
|
18733
18733
|
prefix: h,
|
18734
|
-
iconName:
|
18734
|
+
iconName: y,
|
18735
18735
|
extra: x,
|
18736
18736
|
watchable: !0
|
18737
18737
|
})), w = H2.createElementNS("http://www.w3.org/2000/svg", "svg");
|
18738
|
-
c === "::before" ? e.insertBefore(w, e.firstChild) : e.appendChild(w), w.outerHTML =
|
18738
|
+
c === "::before" ? e.insertBefore(w, e.firstChild) : e.appendChild(w), w.outerHTML = _.map(function(q) {
|
18739
18739
|
return u4(q);
|
18740
18740
|
}).join(`
|
18741
18741
|
`), e.removeAttribute(a), t();
|
@@ -18939,7 +18939,7 @@ var aj = {
|
|
18939
18939
|
tag: "g",
|
18940
18940
|
attributes: U({}, h.outer),
|
18941
18941
|
children: [A]
|
18942
|
-
}, g = "mask-".concat(r || U3()),
|
18942
|
+
}, g = "mask-".concat(r || U3()), y = "clip-".concat(r || U3()), M = {
|
18943
18943
|
tag: "mask",
|
18944
18944
|
attributes: U(U({}, Y6), {}, {
|
18945
18945
|
id: g,
|
@@ -18952,7 +18952,7 @@ var aj = {
|
|
18952
18952
|
children: [{
|
18953
18953
|
tag: "clipPath",
|
18954
18954
|
attributes: {
|
18955
|
-
id:
|
18955
|
+
id: y
|
18956
18956
|
},
|
18957
18957
|
children: cj(d)
|
18958
18958
|
}, M]
|
@@ -18961,7 +18961,7 @@ var aj = {
|
|
18961
18961
|
tag: "rect",
|
18962
18962
|
attributes: U({
|
18963
18963
|
fill: "currentColor",
|
18964
|
-
"clip-path": "url(#".concat(
|
18964
|
+
"clip-path": "url(#".concat(y, ")"),
|
18965
18965
|
mask: "url(#".concat(g, ")")
|
18966
18966
|
}, Y6)
|
18967
18967
|
}), {
|
@@ -20296,9 +20296,9 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20296
20296
|
}, m = (M) => {
|
20297
20297
|
const N = Array.from(M), x = new DataTransfer();
|
20298
20298
|
for (let b of N) {
|
20299
|
-
const
|
20299
|
+
const _ = b.name.split(".").pop();
|
20300
20300
|
if (C.value.includes(
|
20301
|
-
`.${
|
20301
|
+
`.${_.toLowerCase()}`
|
20302
20302
|
)) {
|
20303
20303
|
const q = new File([b], b.name, {
|
20304
20304
|
type: b.type,
|
@@ -20320,7 +20320,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20320
20320
|
return setTimeout(() => {
|
20321
20321
|
URL.revokeObjectURL(N);
|
20322
20322
|
}, 1e3), N;
|
20323
|
-
},
|
20323
|
+
}, y = (M) => {
|
20324
20324
|
c("download", M);
|
20325
20325
|
};
|
20326
20326
|
return (M, N) => {
|
@@ -20387,8 +20387,8 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20387
20387
|
])),
|
20388
20388
|
r.value.length ? (p(), H("div", jF, [
|
20389
20389
|
u("p", FF, k(B(n)("js.components.AVFileInput.uploading")), 1),
|
20390
|
-
(p(!0), H(a2, null, g2(r.value, (
|
20391
|
-
key:
|
20390
|
+
(p(!0), H(a2, null, g2(r.value, (_) => (p(), H("div", {
|
20391
|
+
key: _.name,
|
20392
20392
|
class: Y(`AVFileInput--preview-card ${e.error && "error"}`)
|
20393
20393
|
}, [
|
20394
20394
|
u("div", RF, [
|
@@ -20396,7 +20396,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20396
20396
|
e.showPreview ? (p(), H("img", {
|
20397
20397
|
key: 0,
|
20398
20398
|
class: "AVFileInput--preview-img",
|
20399
|
-
src: g(
|
20399
|
+
src: g(_)
|
20400
20400
|
}, null, 8, UF)) : (p(), K(b, {
|
20401
20401
|
key: 1,
|
20402
20402
|
icon: "fa-solid fa-file",
|
@@ -20405,15 +20405,15 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20405
20405
|
}))
|
20406
20406
|
]),
|
20407
20407
|
u("p", qF, [
|
20408
|
-
D2(k(
|
20409
|
-
u("em", null, k(Math.round(
|
20408
|
+
D2(k(_.name) + " ", 1),
|
20409
|
+
u("em", null, k(Math.round(_.size / 1e3) + "kb"), 1)
|
20410
20410
|
])
|
20411
20411
|
]),
|
20412
20412
|
e.disabled ? O("", !0) : (p(), H("button", {
|
20413
20413
|
key: 0,
|
20414
20414
|
class: "AVTextInput--delete-btn",
|
20415
20415
|
type: "button",
|
20416
|
-
onClick: (w) => V(r.value.indexOf(
|
20416
|
+
onClick: (w) => V(r.value.indexOf(_)),
|
20417
20417
|
title: "Remove file"
|
20418
20418
|
}, [
|
20419
20419
|
I(b, {
|
@@ -20426,13 +20426,13 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20426
20426
|
])) : O("", !0),
|
20427
20427
|
e.currentValue ? (p(), H("div", GF, [
|
20428
20428
|
u("p", YF, k(B(n)("js.components.AVFileInput.current")), 1),
|
20429
|
-
(p(!0), H(a2, null, g2(e.currentValue, (
|
20430
|
-
key: `image-${
|
20429
|
+
(p(!0), H(a2, null, g2(e.currentValue, (_) => (p(), H("div", {
|
20430
|
+
key: `image-${_}`
|
20431
20431
|
}, [
|
20432
20432
|
e.showPreview ? (p(), H("img", {
|
20433
20433
|
key: 0,
|
20434
20434
|
class: "AVFileInput--current-img",
|
20435
|
-
src:
|
20435
|
+
src: _,
|
20436
20436
|
alt: B(n)("js.components.AVFileInput.alt_preview")
|
20437
20437
|
}, null, 8, QF)) : (p(), H("div", XF, [
|
20438
20438
|
u("div", KF, [
|
@@ -20443,13 +20443,13 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20443
20443
|
"data-test": "file-preview-icon"
|
20444
20444
|
})
|
20445
20445
|
]),
|
20446
|
-
u("p", JF, k(L(
|
20446
|
+
u("p", JF, k(L(_)), 1)
|
20447
20447
|
]),
|
20448
20448
|
u("button", {
|
20449
20449
|
class: "AVTextInput--delete-btn",
|
20450
20450
|
type: "button",
|
20451
20451
|
title: "Download file",
|
20452
|
-
onClick: (w) => _
|
20452
|
+
onClick: (w) => y(_)
|
20453
20453
|
}, [
|
20454
20454
|
I(b, {
|
20455
20455
|
icon: "fa-solid fa-download",
|
@@ -22216,7 +22216,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22216
22216
|
}
|
22217
22217
|
), A = E(() => a.option.image), g = e2(function() {
|
22218
22218
|
return a.option.randomizeChildren ? a.option.children.slice().sort(() => Math.random() - 0.5) : a.option.children;
|
22219
|
-
}()),
|
22219
|
+
}()), y = E(() => {
|
22220
22220
|
let j = [];
|
22221
22221
|
return C.value && j.push({
|
22222
22222
|
url: C.value,
|
@@ -22227,7 +22227,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22227
22227
|
}), j;
|
22228
22228
|
}), M = E(
|
22229
22229
|
() => a.option.children && a.option.children.length > 0
|
22230
|
-
), N = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : b.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), x = E(() => a.selections.length > 0 ? W(a.option.children) : 0), b = E(() => a.option.exclusive),
|
22230
|
+
), N = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : b.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), x = E(() => a.selections.length > 0 ? W(a.option.children) : 0), b = E(() => a.option.exclusive), _ = E(() => {
|
22231
22231
|
const j = Array.from(Array(N.value).keys());
|
22232
22232
|
j.forEach((h2) => j[h2] = h2 + 1);
|
22233
22233
|
const t2 = j.indexOf(Math.ceil(N.value / 2)) + 1, f2 = j.slice(0, t2), r2 = j.slice(t2);
|
@@ -22307,12 +22307,12 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22307
22307
|
textContent: k(d.value)
|
22308
22308
|
}, null, 8, kU)
|
22309
22309
|
]),
|
22310
|
-
h.value ||
|
22310
|
+
h.value || y.value.length || M.value ? (p(), H("div", SU, [
|
22311
22311
|
h.value ? (p(), H("div", wU, [
|
22312
22312
|
u("p", { innerHTML: h.value }, null, 8, TU)
|
22313
22313
|
])) : O("", !0),
|
22314
|
-
|
22315
|
-
(p(!0), H(a2, null, g2(
|
22314
|
+
y.value.length > 0 ? (p(), H("div", IU, [
|
22315
|
+
(p(!0), H(a2, null, g2(y.value, (A2) => (p(), H("a", {
|
22316
22316
|
key: A2.toString(),
|
22317
22317
|
href: A2.url,
|
22318
22318
|
class: "AVOption--links",
|
@@ -22357,7 +22357,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22357
22357
|
}),
|
22358
22358
|
style: l1(`background-color: ${N.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
|
22359
22359
|
}, [
|
22360
|
-
(p(!0), H(a2, null, g2(
|
22360
|
+
(p(!0), H(a2, null, g2(_.value, (A2) => (p(), H("div", {
|
22361
22361
|
key: A2.toString(),
|
22362
22362
|
class: "AVOption--group"
|
22363
22363
|
}, [
|
@@ -22651,7 +22651,7 @@ const cq = /* @__PURE__ */ X(eq, [["__scopeId", "data-v-9e7849c2"]]), aq = ["ari
|
|
22651
22651
|
};
|
22652
22652
|
}
|
22653
22653
|
});
|
22654
|
-
const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) => (V1("data-v-
|
22654
|
+
const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) => (V1("data-v-8e5ffaeb"), e = e(), z1(), e), vq = { class: "AVSubmissionHelper" }, pq = { key: 1 }, hq = ["textContent"], Vq = /* @__PURE__ */ dq(() => /* @__PURE__ */ u("hr", { class: "AVSubmissionHelper--separator" }, null, -1)), zq = { key: 2 }, gq = { class: "AVSubmissionHelper--help" }, Hq = { key: 0 }, Mq = { key: 1 }, bq = ["innerHTML"], Cq = { key: 3 }, Lq = /* @__PURE__ */ Q({
|
22655
22655
|
__name: "AVSubmissionHelper",
|
22656
22656
|
props: {
|
22657
22657
|
minMarks: {
|
@@ -22744,7 +22744,7 @@ const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) =
|
|
22744
22744
|
]));
|
22745
22745
|
}
|
22746
22746
|
});
|
22747
|
-
const _q = /* @__PURE__ */ X(Lq, [["__scopeId", "data-v-
|
22747
|
+
const _q = /* @__PURE__ */ X(Lq, [["__scopeId", "data-v-8e5ffaeb"]]);
|
22748
22748
|
function yq(e, c, a) {
|
22749
22749
|
if (typeof a != "function")
|
22750
22750
|
throw new Error("search_by must be a function that returns a string");
|
@@ -23211,7 +23211,7 @@ var _W = (
|
|
23211
23211
|
}, e;
|
23212
23212
|
}()
|
23213
23213
|
), yW = nI.default = _W;
|
23214
|
-
const AW = (e) => (V1("data-v-
|
23214
|
+
const AW = (e) => (V1("data-v-7ccc6b9f"), e = e(), z1(), e), NW = ["aria-label", "aria-describedby"], xW = ["id"], kW = /* @__PURE__ */ AW(() => /* @__PURE__ */ u("hr", { class: "AVBallot--separator" }, null, -1)), SW = ["aria-label"], wW = /* @__PURE__ */ Q({
|
23215
23215
|
__name: "AVBallot",
|
23216
23216
|
props: {
|
23217
23217
|
contest: {
|
@@ -23262,23 +23262,23 @@ const AW = (e) => (V1("data-v-e1b812cc"), e = e(), z1(), e), NW = ["aria-label",
|
|
23262
23262
|
{ deep: !0 }
|
23263
23263
|
);
|
23264
23264
|
const s = e2(!1), r = e2(""), l = e2(""), f = e2(null), o = E(() => a.selectionPile.optionSelections), m = E(() => new tI(a.contest)), d = E(() => {
|
23265
|
-
var
|
23265
|
+
var _;
|
23266
23266
|
let b = [];
|
23267
|
-
return (
|
23267
|
+
return (_ = a.contest.customRulesets) != null && _.includes("belgian_ballot_rules") && b.push(new yW(a.contest)), b;
|
23268
23268
|
}), h = E(() => {
|
23269
23269
|
let b = [];
|
23270
23270
|
d.value.forEach((w) => {
|
23271
23271
|
b.push(...w.validate(a.selectionPile));
|
23272
23272
|
});
|
23273
|
-
const
|
23273
|
+
const _ = [
|
23274
23274
|
...m.value.validate(a.selectionPile),
|
23275
23275
|
...b
|
23276
23276
|
];
|
23277
|
-
if (A.value &&
|
23278
|
-
|
23279
|
-
|
23277
|
+
if (A.value && _.includes("cross_party_voting")) {
|
23278
|
+
let w;
|
23279
|
+
_.includes("exclusive") && (w = _.indexOf("exclusive"), _.splice(w, 1)), _.includes("blank") && (w = _.indexOf("cross_party_voting"), _.splice(w, 1));
|
23280
23280
|
}
|
23281
|
-
return c("update:errors",
|
23281
|
+
return c("update:errors", _), _;
|
23282
23282
|
}), C = E(() => h.value.length === 0), L = E(() => {
|
23283
23283
|
var b;
|
23284
23284
|
return (b = a.contest.question) == null ? void 0 : b[i.value];
|
@@ -23289,32 +23289,32 @@ const AW = (e) => (V1("data-v-e1b812cc"), e = e(), z1(), e), NW = ["aria-label",
|
|
23289
23289
|
}
|
23290
23290
|
), V = E(() => a.contest.randomizeOptions ? a.contest.options.slice().sort(() => Math.random() - 0.5) : a.contest.options), g = E(() => x(a.contest.options).some(
|
23291
23291
|
(b) => b.exclusive
|
23292
|
-
)),
|
23293
|
-
s2(
|
23292
|
+
)), y = E(() => a.contest);
|
23293
|
+
s2(y, (b, _) => {
|
23294
23294
|
var w;
|
23295
|
-
|
23295
|
+
_ && b && b.reference !== _.reference && ((w = document.getElementById("content")) == null || w.focus(), _.searchForm && (f.value.value = ""));
|
23296
23296
|
});
|
23297
23297
|
const M = () => {
|
23298
23298
|
c("update:selectionPile", {
|
23299
23299
|
...a.selectionPile,
|
23300
23300
|
explicitBlank: !a.selectionPile.explicitBlank
|
23301
23301
|
});
|
23302
|
-
}, N = ({ reference: b, amount:
|
23302
|
+
}, N = ({ reference: b, amount: _ }) => {
|
23303
23303
|
const w = o.value.filter(
|
23304
23304
|
(W) => W.reference === b
|
23305
23305
|
).length;
|
23306
|
-
|
23306
|
+
_ === w && (_ = _ - 1);
|
23307
23307
|
const q = o.value.filter(
|
23308
23308
|
(W) => W.reference !== b
|
23309
23309
|
);
|
23310
|
-
for (let W = 0; W <
|
23310
|
+
for (let W = 0; W < _; W++)
|
23311
23311
|
q.push({ reference: b });
|
23312
23312
|
c("update:selectionPile", {
|
23313
23313
|
...a.selectionPile,
|
23314
23314
|
optionSelections: q
|
23315
23315
|
});
|
23316
|
-
}, x = (b,
|
23317
|
-
return (b,
|
23316
|
+
}, x = (b, _) => b.flatMap((w) => (_ && (w.parentContent = _), w.children ? [w, ...x(w.children, w)] : [w]));
|
23317
|
+
return (b, _) => {
|
23318
23318
|
const w = D("AVSearchBallot"), q = D("AVWriteInOption"), W = D("AVOption"), R = D("AVBlankOption"), j = D("AVSubmissionHelper");
|
23319
23319
|
return p(), H("div", {
|
23320
23320
|
class: Y({
|
@@ -23354,11 +23354,11 @@ const AW = (e) => (V1("data-v-e1b812cc"), e = e(), z1(), e), NW = ["aria-label",
|
|
23354
23354
|
t2.writeIn ? (p(), K(q, {
|
23355
23355
|
key: 0,
|
23356
23356
|
"candidate-value": l.value,
|
23357
|
-
"onUpdate:candidateValue":
|
23357
|
+
"onUpdate:candidateValue": _[0] || (_[0] = (f2) => l.value = f2),
|
23358
23358
|
"party-value": r.value,
|
23359
|
-
"onUpdate:partyValue":
|
23359
|
+
"onUpdate:partyValue": _[1] || (_[1] = (f2) => r.value = f2),
|
23360
23360
|
"checked-value": s.value,
|
23361
|
-
"onUpdate:checkedValue":
|
23361
|
+
"onUpdate:checkedValue": _[2] || (_[2] = (f2) => s.value = f2),
|
23362
23362
|
parties: [],
|
23363
23363
|
disabled: e.disabled,
|
23364
23364
|
observerMode: e.observerMode
|
@@ -23402,7 +23402,7 @@ const AW = (e) => (V1("data-v-e1b812cc"), e = e(), z1(), e), NW = ["aria-label",
|
|
23402
23402
|
};
|
23403
23403
|
}
|
23404
23404
|
});
|
23405
|
-
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-
|
23405
|
+
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-7ccc6b9f"]]), IW = (e) => (V1("data-v-b3274830"), e = e(), z1(), e), EW = {
|
23406
23406
|
key: 0,
|
23407
23407
|
class: "AVPileSummary--summary"
|
23408
23408
|
}, DW = {
|
@@ -23518,8 +23518,8 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-e1b812cc"]]), IW = (e) =
|
|
23518
23518
|
u("span", null, k(B(n)("js.components.AVPileSummary.selection")), 1)
|
23519
23519
|
])),
|
23520
23520
|
u("div", BW, [
|
23521
|
-
(p(!0), H(a2, null, g2(h.value.options, (g,
|
23522
|
-
key:
|
23521
|
+
(p(!0), H(a2, null, g2(h.value.options, (g, y) => (p(), K(A, {
|
23522
|
+
key: y,
|
23523
23523
|
option: g,
|
23524
23524
|
"multiple-votes-allowed": e.contest.markingType.votesAllowedPerOption > 1,
|
23525
23525
|
parents: d(g.parent, g.parent ? [g.parent] : [])
|
@@ -23545,12 +23545,12 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-e1b812cc"]]), IW = (e) =
|
|
23545
23545
|
], 8, RW),
|
23546
23546
|
u("div", qW, [
|
23547
23547
|
l.value ? (p(), H("p", WW, k(B(n)("js.components.AVPileSummary.blank")), 1)) : O("", !0),
|
23548
|
-
(p(!0), H(a2, null, g2(h.value.options, (g,
|
23549
|
-
key:
|
23548
|
+
(p(!0), H(a2, null, g2(h.value.options, (g, y) => (p(), H("p", {
|
23549
|
+
key: y,
|
23550
23550
|
class: "AVPileSummary--assign-text"
|
23551
23551
|
}, k(g.rank ? `${g.rank}: ` : "") + k(g.title), 1))), 128)),
|
23552
|
-
(p(!0), H(a2, null, g2(h.value.writeIns, (g,
|
23553
|
-
key:
|
23552
|
+
(p(!0), H(a2, null, g2(h.value.writeIns, (g, y) => (p(), H("p", {
|
23553
|
+
key: y,
|
23554
23554
|
class: "AVPileSummary--assign-text"
|
23555
23555
|
}, [
|
23556
23556
|
u("b", null, k(g.partyLetter) + " - " + k(g.partyName), 1),
|
@@ -23714,7 +23714,7 @@ const eG = {
|
|
23714
23714
|
() => f.value.filter((R, j) => j !== i.value).reduce((R, j) => R - j.multiplier, e.weight)
|
23715
23715
|
), V = E(
|
23716
23716
|
() => e.contest.markingType.maxPiles !== 1 && e.weight > 1
|
23717
|
-
), g = E(() => i.value !== null),
|
23717
|
+
), g = E(() => i.value !== null), y = (R) => m.value.isComplete(R), M = (R) => m.value.validate(R).length > 0, N = () => {
|
23718
23718
|
if (V.value) {
|
23719
23719
|
const R = [...f.value];
|
23720
23720
|
i.value === null ? R.push({ ...s.value }) : R.splice(i.value, 1, {
|
@@ -23736,7 +23736,7 @@ const eG = {
|
|
23736
23736
|
multiplier: A.value,
|
23737
23737
|
explicitBlank: !1
|
23738
23738
|
}, i.value = null, r.value = "ballot";
|
23739
|
-
},
|
23739
|
+
}, _ = (R) => {
|
23740
23740
|
f.value.splice(R, 1);
|
23741
23741
|
}, w = (R) => {
|
23742
23742
|
s.value = { ...f.value[R] }, i.value = R, r.value = "ballot";
|
@@ -23800,7 +23800,7 @@ const eG = {
|
|
23800
23800
|
u("button", {
|
23801
23801
|
key: "assign",
|
23802
23802
|
class: "AVSplitHelper--btn-primary",
|
23803
|
-
disabled: !
|
23803
|
+
disabled: !y(s.value) || M(s.value),
|
23804
23804
|
onClick: j[2] || (j[2] = (C2) => r.value = "assign")
|
23805
23805
|
}, k(B(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, iG)
|
23806
23806
|
])
|
@@ -23889,7 +23889,7 @@ const eG = {
|
|
23889
23889
|
"active-state": r.value,
|
23890
23890
|
"pile-index": I2,
|
23891
23891
|
"total-piles": e.contestSelection.piles.length,
|
23892
|
-
onDeleteSelection: (j2) =>
|
23892
|
+
onDeleteSelection: (j2) => _(I2)
|
23893
23893
|
}, null, 8, ["selection-pile", "contest", "active-state", "pile-index", "total-piles", "onDeleteSelection"])
|
23894
23894
|
], 8, HG))), 128))
|
23895
23895
|
])) : O("", !0)
|