@assemblyvoting/ui-library 3.1.27-beta.8 → 3.1.27
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, h as J4, getCurrentInstance as O3, effectScope as _$, inject as D1, onMounted as A1, onUnmounted as x$, shallowRef as ts, ref as i1, computed as E, onBeforeMount as N$, watch as l1, Fragment as a1, isRef as y$, createVNode as T, Text as k$, pushScopeId as e2, popScopeId as c2, nextTick as is, openBlock as d, createBlock as K, createElementBlock as h, normalizeClass as $, renderSlot as H1, normalizeProps as S$, guardReactiveProps as w$, withScopeId as T$, resolveComponent as D, normalizeStyle as W1, withKeys as $8, createElementVNode as f, createCommentVNode as I, mergeProps as U8, withCtx as s1, createApp as I$, toDisplayString as
|
|
1
|
+
import { defineComponent as G, h as J4, getCurrentInstance as O3, effectScope as _$, inject as D1, onMounted as A1, onUnmounted as x$, shallowRef as ts, ref as i1, computed as E, onBeforeMount as N$, watch as l1, Fragment as a1, isRef as y$, createVNode as T, Text as k$, pushScopeId as e2, popScopeId as c2, nextTick as is, openBlock as d, createBlock as K, createElementBlock as h, normalizeClass as $, renderSlot as H1, normalizeProps as S$, guardReactiveProps as w$, withScopeId as T$, resolveComponent as D, normalizeStyle as W1, withKeys as $8, createElementVNode as f, createCommentVNode as I, mergeProps as U8, withCtx as s1, createApp as I$, toDisplayString as N, createTextVNode as z1, resolveDirective as B2, withDirectives as G1, reactive as ns, provide as ss, renderList as g1, Transition as Y2, unref as F, useCssVars as E$, vShow as E4, withModifiers as m2, createSlots as D$, vModelText as ls } from "vue";
|
|
2
2
|
/*!
|
|
3
3
|
* shared v9.13.1
|
|
4
4
|
* (c) 2024 kazuya kawaguchi
|
|
@@ -206,10 +206,10 @@ function iU(e) {
|
|
|
206
206
|
function L() {
|
|
207
207
|
a = 0, t = 1, i = 1, n = 0;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function y(k = 0) {
|
|
210
210
|
n = k;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function A() {
|
|
213
213
|
const k = a + n;
|
|
214
214
|
for (; k !== a; )
|
|
215
215
|
g();
|
|
@@ -226,8 +226,8 @@ function iU(e) {
|
|
|
226
226
|
next: g,
|
|
227
227
|
peek: z,
|
|
228
228
|
reset: L,
|
|
229
|
-
resetPeek:
|
|
230
|
-
skipToPeek:
|
|
229
|
+
resetPeek: y,
|
|
230
|
+
skipToPeek: A
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
const x2 = void 0, nU = ".", ki = "'", sU = "tokenizer";
|
|
@@ -308,7 +308,7 @@ function lU(e, c = {}) {
|
|
|
308
308
|
const X = V.currentPeek() === "-" ? V.peek() : V.currentPeek(), _1 = g(X);
|
|
309
309
|
return V.resetPeek(), _1;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function y(V, M) {
|
|
312
312
|
const { currentType: P } = M;
|
|
313
313
|
if (P !== 2)
|
|
314
314
|
return !1;
|
|
@@ -316,7 +316,7 @@ function lU(e, c = {}) {
|
|
|
316
316
|
const X = V.currentPeek() === ki;
|
|
317
317
|
return V.resetPeek(), X;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function A(V, M) {
|
|
320
320
|
const { currentType: P } = M;
|
|
321
321
|
if (P !== 8)
|
|
322
322
|
return !1;
|
|
@@ -332,7 +332,7 @@ function lU(e, c = {}) {
|
|
|
332
332
|
const X = _(V.currentPeek());
|
|
333
333
|
return V.resetPeek(), X;
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function S(V, M) {
|
|
336
336
|
const { currentType: P } = M;
|
|
337
337
|
if (!(P === 8 || P === 12))
|
|
338
338
|
return !1;
|
|
@@ -340,7 +340,7 @@ function lU(e, c = {}) {
|
|
|
340
340
|
const X = V.currentPeek() === ":";
|
|
341
341
|
return V.resetPeek(), X;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function x(V, M) {
|
|
344
344
|
const { currentType: P } = M;
|
|
345
345
|
if (P !== 10)
|
|
346
346
|
return !1;
|
|
@@ -350,12 +350,12 @@ function lU(e, c = {}) {
|
|
|
350
350
|
}, _1 = X();
|
|
351
351
|
return V.resetPeek(), _1;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function B(V) {
|
|
354
354
|
C(V);
|
|
355
355
|
const M = V.currentPeek() === "|";
|
|
356
356
|
return V.resetPeek(), M;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Z(V) {
|
|
359
359
|
const M = C(V), P = V.currentPeek() === "%" && V.peek() === "{";
|
|
360
360
|
return V.resetPeek(), {
|
|
361
361
|
isModulo: P,
|
|
@@ -364,8 +364,8 @@ function lU(e, c = {}) {
|
|
|
364
364
|
}
|
|
365
365
|
function O(V, M = !0) {
|
|
366
366
|
const P = (_1 = !1, M1 = "", h1 = !1) => {
|
|
367
|
-
const
|
|
368
|
-
return
|
|
367
|
+
const w = V.currentPeek();
|
|
368
|
+
return w === "{" ? M1 === "%" ? !1 : _1 : w === "@" || !w ? M1 === "%" ? !0 : _1 : w === "%" ? (V.peek(), P(_1, "%", !0)) : w === "|" ? M1 === "%" || h1 ? !0 : !(M1 === V2 || M1 === R1) : w === V2 ? (V.peek(), P(!0, V2, h1)) : w === R1 ? (V.peek(), P(!0, R1, h1)) : !0;
|
|
369
369
|
}, X = P();
|
|
370
370
|
return M && V.resetPeek(), X;
|
|
371
371
|
}
|
|
@@ -384,7 +384,7 @@ function lU(e, c = {}) {
|
|
|
384
384
|
function U(V) {
|
|
385
385
|
return e1(V, r1);
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Y(V) {
|
|
388
388
|
const M = V.charCodeAt(0);
|
|
389
389
|
return M >= 97 && M <= 122 || // a-z
|
|
390
390
|
M >= 65 && M <= 90 || // A-Z
|
|
@@ -394,7 +394,7 @@ function lU(e, c = {}) {
|
|
|
394
394
|
M === 45;
|
|
395
395
|
}
|
|
396
396
|
function m1(V) {
|
|
397
|
-
return e1(V,
|
|
397
|
+
return e1(V, Y);
|
|
398
398
|
}
|
|
399
399
|
function P1(V) {
|
|
400
400
|
const M = V.charCodeAt(0);
|
|
@@ -438,7 +438,7 @@ function lU(e, c = {}) {
|
|
|
438
438
|
if (O(V))
|
|
439
439
|
M += P, V.next();
|
|
440
440
|
else {
|
|
441
|
-
if (
|
|
441
|
+
if (B(V))
|
|
442
442
|
break;
|
|
443
443
|
M += P, V.next();
|
|
444
444
|
}
|
|
@@ -550,7 +550,7 @@ function lU(e, c = {}) {
|
|
|
550
550
|
return M.braceNest > 0 && u(c1.UNTERMINATED_CLOSING_BRACE, n(), 0), P = R2(V, M) || p(M), M.braceNest = 0, P;
|
|
551
551
|
default: {
|
|
552
552
|
let _1 = !0, M1 = !0, h1 = !0;
|
|
553
|
-
if (
|
|
553
|
+
if (B(V))
|
|
554
554
|
return M.braceNest > 0 && u(c1.UNTERMINATED_CLOSING_BRACE, n(), 0), P = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, P;
|
|
555
555
|
if (M.braceNest > 0 && (M.currentType === 5 || M.currentType === 6 || M.currentType === 7))
|
|
556
556
|
return u(c1.UNTERMINATED_CLOSING_BRACE, n(), 0), M.braceNest = 0, y3(V, M);
|
|
@@ -558,7 +558,7 @@ function lU(e, c = {}) {
|
|
|
558
558
|
return P = v(M, 5, A2(V)), b(V), P;
|
|
559
559
|
if (M1 = L(V, M))
|
|
560
560
|
return P = v(M, 6, F1(V)), b(V), P;
|
|
561
|
-
if (h1 =
|
|
561
|
+
if (h1 = y(V, M))
|
|
562
562
|
return P = v(M, 7, t3(V)), b(V), P;
|
|
563
563
|
if (!_1 && !M1 && !h1)
|
|
564
564
|
return P = v(M, 13, _3(V)), u(c1.INVALID_TOKEN_IN_PLACEHOLDER, n(), 0, P.value), b(V), P;
|
|
@@ -594,7 +594,7 @@ function lU(e, c = {}) {
|
|
|
594
594
|
/* TokenChars.LinkedDelimiter */
|
|
595
595
|
);
|
|
596
596
|
default:
|
|
597
|
-
return
|
|
597
|
+
return B(V) ? (X = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, X) : A(V, M) || S(V, M) ? (b(V), R2(V, M)) : k(V, M) ? (b(V), v(M, 12, x3(V))) : x(V, M) ? (b(V), _1 === "{" ? N3(V, M) || X : v(M, 11, j(V))) : (P === 8 && u(c1.INVALID_LINKED_FORMAT, n(), 0), M.braceNest = 0, M.inLinked = !1, y3(V, M));
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function y3(V, M) {
|
|
@@ -619,9 +619,9 @@ function lU(e, c = {}) {
|
|
|
619
619
|
case "@":
|
|
620
620
|
return R2(V, M) || p(M);
|
|
621
621
|
default: {
|
|
622
|
-
if (
|
|
622
|
+
if (B(V))
|
|
623
623
|
return P = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, P;
|
|
624
|
-
const { isModulo: _1, hasSpace: M1 } =
|
|
624
|
+
const { isModulo: _1, hasSpace: M1 } = Z(V);
|
|
625
625
|
if (_1)
|
|
626
626
|
return M1 ? v(M, 0, z2(V)) : v(M, 4, a2(V));
|
|
627
627
|
if (O(V))
|
|
@@ -661,99 +661,99 @@ function fU(e, c, a) {
|
|
|
661
661
|
}
|
|
662
662
|
function uU(e = {}) {
|
|
663
663
|
const c = e.location !== !1, { onError: a, onWarn: t } = e;
|
|
664
|
-
function i(z, L,
|
|
665
|
-
const
|
|
666
|
-
if (
|
|
667
|
-
const
|
|
664
|
+
function i(z, L, y, A, ...k) {
|
|
665
|
+
const S = z.currentPosition();
|
|
666
|
+
if (S.offset += A, S.column += A, a) {
|
|
667
|
+
const x = c ? P4(y, S) : null, B = z3(L, x, {
|
|
668
668
|
domain: rU,
|
|
669
669
|
args: k
|
|
670
670
|
});
|
|
671
|
-
a(
|
|
671
|
+
a(B);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
function n(z, L,
|
|
675
|
-
const
|
|
676
|
-
if (
|
|
677
|
-
const
|
|
678
|
-
t(Y$(L,
|
|
674
|
+
function n(z, L, y, A, ...k) {
|
|
675
|
+
const S = z.currentPosition();
|
|
676
|
+
if (S.offset += A, S.column += A, t) {
|
|
677
|
+
const x = c ? P4(y, S) : null;
|
|
678
|
+
t(Y$(L, x, k));
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
function s(z, L,
|
|
682
|
-
const
|
|
683
|
-
return c && (
|
|
681
|
+
function s(z, L, y) {
|
|
682
|
+
const A = { type: z };
|
|
683
|
+
return c && (A.start = L, A.end = L, A.loc = { start: y, end: y }), A;
|
|
684
684
|
}
|
|
685
|
-
function l(z, L,
|
|
686
|
-
|
|
685
|
+
function l(z, L, y, A) {
|
|
686
|
+
A && (z.type = A), c && (z.end = L, z.loc && (z.loc.end = y));
|
|
687
687
|
}
|
|
688
688
|
function r(z, L) {
|
|
689
|
-
const
|
|
690
|
-
return
|
|
689
|
+
const y = z.context(), A = s(3, y.offset, y.startLoc);
|
|
690
|
+
return A.value = L, l(A, z.currentOffset(), z.currentPosition()), A;
|
|
691
691
|
}
|
|
692
692
|
function o(z, L) {
|
|
693
|
-
const
|
|
694
|
-
return
|
|
693
|
+
const y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(5, A, k);
|
|
694
|
+
return S.index = parseInt(L, 10), z.nextToken(), l(S, z.currentOffset(), z.currentPosition()), S;
|
|
695
695
|
}
|
|
696
|
-
function m(z, L,
|
|
697
|
-
const
|
|
698
|
-
return
|
|
696
|
+
function m(z, L, y) {
|
|
697
|
+
const A = z.context(), { lastOffset: k, lastStartLoc: S } = A, x = s(4, k, S);
|
|
698
|
+
return x.key = L, y === !0 && (x.modulo = !0), z.nextToken(), l(x, z.currentOffset(), z.currentPosition()), x;
|
|
699
699
|
}
|
|
700
700
|
function u(z, L) {
|
|
701
|
-
const
|
|
702
|
-
return
|
|
701
|
+
const y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(9, A, k);
|
|
702
|
+
return S.value = L.replace(oU, fU), z.nextToken(), l(S, z.currentOffset(), z.currentPosition()), S;
|
|
703
703
|
}
|
|
704
704
|
function v(z) {
|
|
705
|
-
const L = z.nextToken(),
|
|
706
|
-
return L.type !== 12 ? (i(z, c1.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
|
705
|
+
const L = z.nextToken(), y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(8, A, k);
|
|
706
|
+
return L.type !== 12 ? (i(z, c1.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), S.value = "", l(S, A, k), {
|
|
707
707
|
nextConsumeToken: L,
|
|
708
|
-
node:
|
|
709
|
-
}) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
710
|
-
node:
|
|
708
|
+
node: S
|
|
709
|
+
}) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, t2(L)), S.value = L.value || "", l(S, z.currentOffset(), z.currentPosition()), {
|
|
710
|
+
node: S
|
|
711
711
|
});
|
|
712
712
|
}
|
|
713
713
|
function p(z, L) {
|
|
714
|
-
const
|
|
715
|
-
return
|
|
714
|
+
const y = z.context(), A = s(7, y.offset, y.startLoc);
|
|
715
|
+
return A.value = L, l(A, z.currentOffset(), z.currentPosition()), A;
|
|
716
716
|
}
|
|
717
717
|
function H(z) {
|
|
718
|
-
const L = z.context(),
|
|
719
|
-
let
|
|
720
|
-
if (
|
|
718
|
+
const L = z.context(), y = s(6, L.offset, L.startLoc);
|
|
719
|
+
let A = z.nextToken();
|
|
720
|
+
if (A.type === 9) {
|
|
721
721
|
const k = v(z);
|
|
722
|
-
|
|
722
|
+
y.modifier = k.node, A = k.nextConsumeToken || z.nextToken();
|
|
723
723
|
}
|
|
724
|
-
switch (
|
|
724
|
+
switch (A.type !== 10 && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), A = z.nextToken(), A.type === 2 && (A = z.nextToken()), A.type) {
|
|
725
725
|
case 11:
|
|
726
|
-
|
|
726
|
+
A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = p(z, A.value || "");
|
|
727
727
|
break;
|
|
728
728
|
case 5:
|
|
729
|
-
|
|
729
|
+
A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = m(z, A.value || "");
|
|
730
730
|
break;
|
|
731
731
|
case 6:
|
|
732
|
-
|
|
732
|
+
A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = o(z, A.value || "");
|
|
733
733
|
break;
|
|
734
734
|
case 7:
|
|
735
|
-
|
|
735
|
+
A.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(A)), y.key = u(z, A.value || "");
|
|
736
736
|
break;
|
|
737
737
|
default: {
|
|
738
738
|
i(z, c1.UNEXPECTED_EMPTY_LINKED_KEY, L.lastStartLoc, 0);
|
|
739
|
-
const k = z.context(),
|
|
740
|
-
return
|
|
741
|
-
nextConsumeToken:
|
|
742
|
-
node:
|
|
739
|
+
const k = z.context(), S = s(7, k.offset, k.startLoc);
|
|
740
|
+
return S.value = "", l(S, k.offset, k.startLoc), y.key = S, l(y, k.offset, k.startLoc), {
|
|
741
|
+
nextConsumeToken: A,
|
|
742
|
+
node: y
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
return l(
|
|
747
|
-
node:
|
|
746
|
+
return l(y, z.currentOffset(), z.currentPosition()), {
|
|
747
|
+
node: y
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
750
|
function C(z) {
|
|
751
|
-
const L = z.context(),
|
|
751
|
+
const L = z.context(), y = L.currentType === 1 ? z.currentOffset() : L.offset, A = L.currentType === 1 ? L.endLoc : L.startLoc, k = s(2, y, A);
|
|
752
752
|
k.items = [];
|
|
753
|
-
let
|
|
753
|
+
let S = null, x = null;
|
|
754
754
|
do {
|
|
755
|
-
const O =
|
|
756
|
-
switch (
|
|
755
|
+
const O = S || z.nextToken();
|
|
756
|
+
switch (S = null, O.type) {
|
|
757
757
|
case 0:
|
|
758
758
|
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), k.items.push(r(z, O.value || ""));
|
|
759
759
|
break;
|
|
@@ -761,42 +761,42 @@ function uU(e = {}) {
|
|
|
761
761
|
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), k.items.push(o(z, O.value || ""));
|
|
762
762
|
break;
|
|
763
763
|
case 4:
|
|
764
|
-
|
|
764
|
+
x = !0;
|
|
765
765
|
break;
|
|
766
766
|
case 5:
|
|
767
|
-
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), k.items.push(m(z, O.value || "", !!
|
|
767
|
+
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), k.items.push(m(z, O.value || "", !!x)), x && (n(z, Q4.USE_MODULO_SYNTAX, L.lastStartLoc, 0, t2(O)), x = null);
|
|
768
768
|
break;
|
|
769
769
|
case 7:
|
|
770
770
|
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), k.items.push(u(z, O.value || ""));
|
|
771
771
|
break;
|
|
772
772
|
case 8: {
|
|
773
773
|
const e1 = H(z);
|
|
774
|
-
k.items.push(e1.node),
|
|
774
|
+
k.items.push(e1.node), S = e1.nextConsumeToken || null;
|
|
775
775
|
break;
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
} while (L.currentType !== 14 && L.currentType !== 1);
|
|
779
|
-
const
|
|
780
|
-
return l(k,
|
|
779
|
+
const B = L.currentType === 1 ? L.lastOffset : z.currentOffset(), Z = L.currentType === 1 ? L.lastEndLoc : z.currentPosition();
|
|
780
|
+
return l(k, B, Z), k;
|
|
781
781
|
}
|
|
782
|
-
function b(z, L,
|
|
782
|
+
function b(z, L, y, A) {
|
|
783
783
|
const k = z.context();
|
|
784
|
-
let
|
|
785
|
-
const
|
|
786
|
-
|
|
784
|
+
let S = A.items.length === 0;
|
|
785
|
+
const x = s(1, L, y);
|
|
786
|
+
x.cases = [], x.cases.push(A);
|
|
787
787
|
do {
|
|
788
|
-
const
|
|
789
|
-
|
|
788
|
+
const B = C(z);
|
|
789
|
+
S || (S = B.items.length === 0), x.cases.push(B);
|
|
790
790
|
} while (k.currentType !== 14);
|
|
791
|
-
return
|
|
791
|
+
return S && i(z, c1.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), l(x, z.currentOffset(), z.currentPosition()), x;
|
|
792
792
|
}
|
|
793
793
|
function _(z) {
|
|
794
|
-
const L = z.context(), { offset:
|
|
795
|
-
return L.currentType === 14 ? k : b(z,
|
|
794
|
+
const L = z.context(), { offset: y, startLoc: A } = L, k = C(z);
|
|
795
|
+
return L.currentType === 14 ? k : b(z, y, A, k);
|
|
796
796
|
}
|
|
797
797
|
function g(z) {
|
|
798
|
-
const L = lU(z, ms({}, e)),
|
|
799
|
-
return c &&
|
|
798
|
+
const L = lU(z, ms({}, e)), y = L.context(), A = s(0, y.offset, y.startLoc);
|
|
799
|
+
return c && A.loc && (A.loc.source = z), A.body = _(L), e.onCacheKey && (A.cacheKey = e.onCacheKey(z)), y.currentType !== 14 && i(L, c1.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, z[y.offset] || ""), l(A, L.currentOffset(), L.currentPosition()), A;
|
|
800
800
|
}
|
|
801
801
|
return { parse: g };
|
|
802
802
|
}
|
|
@@ -1403,13 +1403,13 @@ function FU(e = {}) {
|
|
|
1403
1403
|
plural: n,
|
|
1404
1404
|
linked: (_, ...g) => {
|
|
1405
1405
|
const [z, L] = g;
|
|
1406
|
-
let
|
|
1407
|
-
g.length === 1 ? u1(z) ? (
|
|
1408
|
-
const k = m(_)(b),
|
|
1406
|
+
let y = "text", A = "";
|
|
1407
|
+
g.length === 1 ? u1(z) ? (A = z.modifier || A, y = z.type || y) : q(z) && (A = z || A) : g.length === 2 && (q(z) && (A = z || A), q(L) && (y = L || y));
|
|
1408
|
+
const k = m(_)(b), S = (
|
|
1409
1409
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1410
|
-
|
|
1410
|
+
y === "vnode" && C1(k) && A ? k[0] : k
|
|
1411
1411
|
);
|
|
1412
|
-
return
|
|
1412
|
+
return A ? u(A)(S, y) : S;
|
|
1413
1413
|
},
|
|
1414
1414
|
message: m,
|
|
1415
1415
|
type: H,
|
|
@@ -1595,7 +1595,7 @@ let Fi = 0;
|
|
|
1595
1595
|
function tW(e = {}) {
|
|
1596
1596
|
const c = V1(e.onWarn) ? e.onWarn : S1, a = q(e.version) ? e.version : YU, t = q(e.locale) || V1(e.locale) ? e.locale : v3, i = V1(t) ? v3 : t, n = C1(e.fallbackLocale) || t1(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, s = t1(e.messages) ? e.messages : { [i]: {} }, l = t1(e.datetimeFormats) ? e.datetimeFormats : { [i]: {} }, r = t1(e.numberFormats) ? e.numberFormats : { [i]: {} }, o = B1({}, e.modifiers || {}, QU()), m = e.pluralRules || {}, u = V1(e.missing) ? e.missing : null, v = n1(e.missingWarn) || T2(e.missingWarn) ? e.missingWarn : !0, p = n1(e.fallbackWarn) || T2(e.fallbackWarn) ? e.fallbackWarn : !0, H = !!e.fallbackFormat, C = !!e.unresolving, b = V1(e.postTranslation) ? e.postTranslation : null, _ = t1(e.processor) ? e.processor : null, g = n1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, z = !!e.escapeParameter, L = V1(e.messageCompiler) ? e.messageCompiler : zs;
|
|
1597
1597
|
process.env.NODE_ENV !== "production" && V1(e.messageCompiler) && fs(K2(j1.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1598
|
-
const
|
|
1598
|
+
const y = V1(e.messageResolver) ? e.messageResolver : Vs || SU, A = V1(e.localeFallbacker) ? e.localeFallbacker : Ms || GU, k = u1(e.fallbackContext) ? e.fallbackContext : void 0, S = e, x = u1(S.__datetimeFormatters) ? S.__datetimeFormatters : /* @__PURE__ */ new Map(), B = u1(S.__numberFormatters) ? S.__numberFormatters : /* @__PURE__ */ new Map(), Z = u1(S.__meta) ? S.__meta : {};
|
|
1599
1599
|
Fi++;
|
|
1600
1600
|
const O = {
|
|
1601
1601
|
version: a,
|
|
@@ -1615,13 +1615,13 @@ function tW(e = {}) {
|
|
|
1615
1615
|
warnHtmlMessage: g,
|
|
1616
1616
|
escapeParameter: z,
|
|
1617
1617
|
messageCompiler: L,
|
|
1618
|
-
messageResolver:
|
|
1619
|
-
localeFallbacker:
|
|
1618
|
+
messageResolver: y,
|
|
1619
|
+
localeFallbacker: A,
|
|
1620
1620
|
fallbackContext: k,
|
|
1621
1621
|
onWarn: c,
|
|
1622
|
-
__meta:
|
|
1622
|
+
__meta: Z
|
|
1623
1623
|
};
|
|
1624
|
-
return O.datetimeFormats = l, O.numberFormats = r, O.__datetimeFormatters =
|
|
1624
|
+
return O.datetimeFormats = l, O.numberFormats = r, O.__datetimeFormatters = x, O.__numberFormatters = B, process.env.NODE_ENV !== "production" && (O.__v_emitter = S.__v_emitter != null ? S.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && jU(O, a, Z), O;
|
|
1625
1625
|
}
|
|
1626
1626
|
function X4(e, c) {
|
|
1627
1627
|
return e instanceof RegExp ? e.test(c) : e;
|
|
@@ -1785,18 +1785,18 @@ function qi(e, ...c) {
|
|
|
1785
1785
|
r,
|
|
1786
1786
|
b,
|
|
1787
1787
|
l[b] || {}
|
|
1788
|
-
] : Ns(e, r, b, s, u, m), L = _,
|
|
1789
|
-
if (!p && !(q(L) || I2(L) || K1(L)) && C && (L = H,
|
|
1788
|
+
] : Ns(e, r, b, s, u, m), L = _, y = r;
|
|
1789
|
+
if (!p && !(q(L) || I2(L) || K1(L)) && C && (L = H, y = L), !p && (!(q(L) || I2(L) || K1(L)) || !q(g)))
|
|
1790
1790
|
return i ? K4 : r;
|
|
1791
1791
|
if (process.env.NODE_ENV !== "production" && q(L) && e.messageCompiler == null)
|
|
1792
1792
|
return S1(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${r}'.`), r;
|
|
1793
|
-
let
|
|
1793
|
+
let A = !1;
|
|
1794
1794
|
const k = () => {
|
|
1795
|
-
|
|
1796
|
-
},
|
|
1797
|
-
if (
|
|
1795
|
+
A = !0;
|
|
1796
|
+
}, S = K1(L) ? L : ys(e, r, g, L, y, k);
|
|
1797
|
+
if (A)
|
|
1798
1798
|
return L;
|
|
1799
|
-
const
|
|
1799
|
+
const x = dW(e, g, z, o), B = FU(x), Z = fW(e, S, B), O = t ? t(Z, r) : Z;
|
|
1800
1800
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1801
1801
|
const e1 = {
|
|
1802
1802
|
timestamp: Date.now(),
|
|
@@ -1823,8 +1823,8 @@ function Ns(e, c, a, t, i, n) {
|
|
|
1823
1823
|
key: c,
|
|
1824
1824
|
target: v
|
|
1825
1825
|
})), process.env.NODE_ENV !== "production" && a !== v) {
|
|
1826
|
-
const
|
|
1827
|
-
|
|
1826
|
+
const y = e.__v_emitter;
|
|
1827
|
+
y && y.emit("fallback", {
|
|
1828
1828
|
type: b,
|
|
1829
1829
|
key: c,
|
|
1830
1830
|
from: H,
|
|
@@ -1835,19 +1835,19 @@ function Ns(e, c, a, t, i, n) {
|
|
|
1835
1835
|
u = s[v] || {};
|
|
1836
1836
|
let g = null, z, L;
|
|
1837
1837
|
if (process.env.NODE_ENV !== "production" && r2 && (g = window.performance.now(), z = "intlify-message-resolve-start", L = "intlify-message-resolve-end", Y1 && Y1(z)), (p = r(u, c)) === null && (p = u[c]), process.env.NODE_ENV !== "production" && r2) {
|
|
1838
|
-
const
|
|
1839
|
-
|
|
1838
|
+
const y = window.performance.now(), A = e.__v_emitter;
|
|
1839
|
+
A && g && p && A.emit("message-resolve", {
|
|
1840
1840
|
type: "message-resolve",
|
|
1841
1841
|
key: c,
|
|
1842
1842
|
message: p,
|
|
1843
|
-
time:
|
|
1843
|
+
time: y - g,
|
|
1844
1844
|
groupId: `${b}:${c}`
|
|
1845
1845
|
}), z && L && Y1 && Q2 && (Y1(L), Q2("intlify message resolve", z, L));
|
|
1846
1846
|
}
|
|
1847
1847
|
if (q(p) || I2(p) || K1(p))
|
|
1848
1848
|
break;
|
|
1849
1849
|
if (!iW(v, m)) {
|
|
1850
|
-
const
|
|
1850
|
+
const y = Y8(
|
|
1851
1851
|
e,
|
|
1852
1852
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1853
1853
|
c,
|
|
@@ -1855,7 +1855,7 @@ function Ns(e, c, a, t, i, n) {
|
|
|
1855
1855
|
n,
|
|
1856
1856
|
b
|
|
1857
1857
|
);
|
|
1858
|
-
|
|
1858
|
+
y !== c && (p = y);
|
|
1859
1859
|
}
|
|
1860
1860
|
H = C;
|
|
1861
1861
|
}
|
|
@@ -1974,32 +1974,32 @@ function Ui(e, ...c) {
|
|
|
1974
1974
|
);
|
|
1975
1975
|
if (!q(r) || r === "")
|
|
1976
1976
|
return new Intl.DateTimeFormat(C, u).format(o);
|
|
1977
|
-
let _ = {}, g, z = null, L = C,
|
|
1978
|
-
const
|
|
1979
|
-
for (let
|
|
1980
|
-
if (g =
|
|
1977
|
+
let _ = {}, g, z = null, L = C, y = null;
|
|
1978
|
+
const A = "datetime format";
|
|
1979
|
+
for (let x = 0; x < b.length; x++) {
|
|
1980
|
+
if (g = y = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_DATE_FORMAT, {
|
|
1981
1981
|
key: r,
|
|
1982
1982
|
target: g
|
|
1983
1983
|
})), process.env.NODE_ENV !== "production" && C !== g) {
|
|
1984
|
-
const
|
|
1985
|
-
|
|
1986
|
-
type:
|
|
1984
|
+
const B = e.__v_emitter;
|
|
1985
|
+
B && B.emit("fallback", {
|
|
1986
|
+
type: A,
|
|
1987
1987
|
key: r,
|
|
1988
1988
|
from: L,
|
|
1989
|
-
to:
|
|
1990
|
-
groupId: `${
|
|
1989
|
+
to: y,
|
|
1990
|
+
groupId: `${A}:${r}`
|
|
1991
1991
|
});
|
|
1992
1992
|
}
|
|
1993
1993
|
if (_ = a[g] || {}, z = _[r], t1(z))
|
|
1994
1994
|
break;
|
|
1995
|
-
Y8(e, r, g, v,
|
|
1995
|
+
Y8(e, r, g, v, A), L = y;
|
|
1996
1996
|
}
|
|
1997
1997
|
if (!t1(z) || !q(g))
|
|
1998
1998
|
return t ? K4 : r;
|
|
1999
1999
|
let k = `${g}__${r}`;
|
|
2000
2000
|
Z4(u) || (k = `${k}__${JSON.stringify(u)}`);
|
|
2001
|
-
let
|
|
2002
|
-
return
|
|
2001
|
+
let S = l.get(k);
|
|
2002
|
+
return S || (S = new Intl.DateTimeFormat(g, B1({}, z, u)), l.set(k, S)), H ? S.formatToParts(o) : S.format(o);
|
|
2003
2003
|
}
|
|
2004
2004
|
const Ss = [
|
|
2005
2005
|
"localeMatcher",
|
|
@@ -2068,32 +2068,32 @@ function Gi(e, ...c) {
|
|
|
2068
2068
|
);
|
|
2069
2069
|
if (!q(r) || r === "")
|
|
2070
2070
|
return new Intl.NumberFormat(C, u).format(o);
|
|
2071
|
-
let _ = {}, g, z = null, L = C,
|
|
2072
|
-
const
|
|
2073
|
-
for (let
|
|
2074
|
-
if (g =
|
|
2071
|
+
let _ = {}, g, z = null, L = C, y = null;
|
|
2072
|
+
const A = "number format";
|
|
2073
|
+
for (let x = 0; x < b.length; x++) {
|
|
2074
|
+
if (g = y = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_NUMBER_FORMAT, {
|
|
2075
2075
|
key: r,
|
|
2076
2076
|
target: g
|
|
2077
2077
|
})), process.env.NODE_ENV !== "production" && C !== g) {
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2080
|
-
type:
|
|
2078
|
+
const B = e.__v_emitter;
|
|
2079
|
+
B && B.emit("fallback", {
|
|
2080
|
+
type: A,
|
|
2081
2081
|
key: r,
|
|
2082
2082
|
from: L,
|
|
2083
|
-
to:
|
|
2084
|
-
groupId: `${
|
|
2083
|
+
to: y,
|
|
2084
|
+
groupId: `${A}:${r}`
|
|
2085
2085
|
});
|
|
2086
2086
|
}
|
|
2087
2087
|
if (_ = a[g] || {}, z = _[r], t1(z))
|
|
2088
2088
|
break;
|
|
2089
|
-
Y8(e, r, g, v,
|
|
2089
|
+
Y8(e, r, g, v, A), L = y;
|
|
2090
2090
|
}
|
|
2091
2091
|
if (!t1(z) || !q(g))
|
|
2092
2092
|
return t ? K4 : r;
|
|
2093
2093
|
let k = `${g}__${r}`;
|
|
2094
2094
|
Z4(u) || (k = `${k}__${JSON.stringify(u)}`);
|
|
2095
|
-
let
|
|
2096
|
-
return
|
|
2095
|
+
let S = l.get(k);
|
|
2096
|
+
return S || (S = new Intl.NumberFormat(g, B1({}, z, u)), l.set(k, S)), H ? S.formatToParts(o) : S.format(o);
|
|
2097
2097
|
}
|
|
2098
2098
|
const ws = [
|
|
2099
2099
|
"localeMatcher",
|
|
@@ -2420,35 +2420,35 @@ function Q8(e = {}, c) {
|
|
|
2420
2420
|
// prettier-ignore
|
|
2421
2421
|
a && r ? a.fallbackLocale.value : q(e.fallbackLocale) || C1(e.fallbackLocale) || t1(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : o.value
|
|
2422
2422
|
), u = s(e6(o.value, e)), v = s(t1(e.datetimeFormats) ? e.datetimeFormats : { [o.value]: {} }), p = s(t1(e.numberFormats) ? e.numberFormats : { [o.value]: {} });
|
|
2423
|
-
let H = a ? a.missingWarn : n1(e.missingWarn) || T2(e.missingWarn) ? e.missingWarn : !0, C = a ? a.fallbackWarn : n1(e.fallbackWarn) || T2(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n1(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, g = V1(e.missing) ? e.missing : null, z = V1(e.missing) ? Xi(e.missing) : null, L = V1(e.postTranslation) ? e.postTranslation : null,
|
|
2423
|
+
let H = a ? a.missingWarn : n1(e.missingWarn) || T2(e.missingWarn) ? e.missingWarn : !0, C = a ? a.fallbackWarn : n1(e.fallbackWarn) || T2(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n1(e.fallbackRoot) ? e.fallbackRoot : !0, _ = !!e.fallbackFormat, g = V1(e.missing) ? e.missing : null, z = V1(e.missing) ? Xi(e.missing) : null, L = V1(e.postTranslation) ? e.postTranslation : null, y = a ? a.warnHtmlMessage : n1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, A = !!e.escapeParameter;
|
|
2424
2424
|
const k = a ? a.modifiers : t1(e.modifiers) ? e.modifiers : {};
|
|
2425
|
-
let
|
|
2426
|
-
|
|
2425
|
+
let S = e.pluralRules || a && a.pluralRules, x;
|
|
2426
|
+
x = (() => {
|
|
2427
2427
|
i && Bi(null);
|
|
2428
|
-
const
|
|
2428
|
+
const w = {
|
|
2429
2429
|
version: CW,
|
|
2430
2430
|
locale: o.value,
|
|
2431
2431
|
fallbackLocale: m.value,
|
|
2432
2432
|
messages: u.value,
|
|
2433
2433
|
modifiers: k,
|
|
2434
|
-
pluralRules:
|
|
2434
|
+
pluralRules: S,
|
|
2435
2435
|
missing: z === null ? void 0 : z,
|
|
2436
2436
|
missingWarn: H,
|
|
2437
2437
|
fallbackWarn: C,
|
|
2438
2438
|
fallbackFormat: _,
|
|
2439
2439
|
unresolving: !0,
|
|
2440
2440
|
postTranslation: L === null ? void 0 : L,
|
|
2441
|
-
warnHtmlMessage:
|
|
2442
|
-
escapeParameter:
|
|
2441
|
+
warnHtmlMessage: y,
|
|
2442
|
+
escapeParameter: A,
|
|
2443
2443
|
messageResolver: e.messageResolver,
|
|
2444
2444
|
messageCompiler: e.messageCompiler,
|
|
2445
2445
|
__meta: { framework: "vue" }
|
|
2446
2446
|
};
|
|
2447
|
-
|
|
2448
|
-
const
|
|
2449
|
-
return i && Bi(
|
|
2450
|
-
})(), k3(
|
|
2451
|
-
function
|
|
2447
|
+
w.datetimeFormats = v.value, w.numberFormats = p.value, w.__datetimeFormatters = t1(x) ? x.__datetimeFormatters : void 0, w.__numberFormatters = t1(x) ? x.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (w.__v_emitter = t1(x) ? x.__v_emitter : void 0);
|
|
2448
|
+
const R = tW(w);
|
|
2449
|
+
return i && Bi(R), R;
|
|
2450
|
+
})(), k3(x, o.value, m.value);
|
|
2451
|
+
function Z() {
|
|
2452
2452
|
return [
|
|
2453
2453
|
o.value,
|
|
2454
2454
|
m.value,
|
|
@@ -2459,46 +2459,46 @@ function Q8(e = {}, c) {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
const O = E({
|
|
2461
2461
|
get: () => o.value,
|
|
2462
|
-
set: (
|
|
2463
|
-
o.value =
|
|
2462
|
+
set: (w) => {
|
|
2463
|
+
o.value = w, x.locale = o.value;
|
|
2464
2464
|
}
|
|
2465
2465
|
}), e1 = E({
|
|
2466
2466
|
get: () => m.value,
|
|
2467
|
-
set: (
|
|
2468
|
-
m.value =
|
|
2467
|
+
set: (w) => {
|
|
2468
|
+
m.value = w, x.fallbackLocale = m.value, k3(x, o.value, w);
|
|
2469
2469
|
}
|
|
2470
|
-
}), r1 = E(() => u.value), U = /* @__PURE__ */ E(() => v.value),
|
|
2470
|
+
}), r1 = E(() => u.value), U = /* @__PURE__ */ E(() => v.value), Y = /* @__PURE__ */ E(() => p.value);
|
|
2471
2471
|
function m1() {
|
|
2472
2472
|
return V1(L) ? L : null;
|
|
2473
2473
|
}
|
|
2474
|
-
function P1(
|
|
2475
|
-
L =
|
|
2474
|
+
function P1(w) {
|
|
2475
|
+
L = w, x.postTranslation = w;
|
|
2476
2476
|
}
|
|
2477
2477
|
function q1() {
|
|
2478
2478
|
return g;
|
|
2479
2479
|
}
|
|
2480
|
-
function O1(
|
|
2481
|
-
|
|
2480
|
+
function O1(w) {
|
|
2481
|
+
w !== null && (z = Xi(w)), g = w, x.missing = z;
|
|
2482
2482
|
}
|
|
2483
|
-
function J1(
|
|
2484
|
-
return
|
|
2483
|
+
function J1(w, R) {
|
|
2484
|
+
return w !== "translate" || !R.resolvedMessage;
|
|
2485
2485
|
}
|
|
2486
|
-
const I1 = (
|
|
2487
|
-
|
|
2486
|
+
const I1 = (w, R, v1, y1, _2, V4) => {
|
|
2487
|
+
Z();
|
|
2488
2488
|
let n3;
|
|
2489
2489
|
try {
|
|
2490
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (
|
|
2490
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (x.fallbackContext = a ? aW() : void 0), n3 = w(x);
|
|
2491
2491
|
} finally {
|
|
2492
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (
|
|
2492
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (x.fallbackContext = void 0);
|
|
2493
2493
|
}
|
|
2494
2494
|
if (v1 !== "translate exists" && // for not `te` (e.g `t`)
|
|
2495
2495
|
k1(n3) && n3 === K4 || v1 === "translate exists" && !n3) {
|
|
2496
|
-
const [j2, A$] =
|
|
2496
|
+
const [j2, A$] = R();
|
|
2497
2497
|
if (process.env.NODE_ENV !== "production" && a && q(j2) && J1(v1, A$) && (b && (X4(C, j2) || Cs(H, j2)) && S1(U1(x1.FALLBACK_TO_ROOT, {
|
|
2498
2498
|
key: j2,
|
|
2499
2499
|
type: v1
|
|
2500
2500
|
})), process.env.NODE_ENV !== "production")) {
|
|
2501
|
-
const { __v_emitter: Li } =
|
|
2501
|
+
const { __v_emitter: Li } = x;
|
|
2502
2502
|
Li && b && Li.emit("fallback", {
|
|
2503
2503
|
type: v1,
|
|
2504
2504
|
key: j2,
|
|
@@ -2513,140 +2513,140 @@ function Q8(e = {}, c) {
|
|
|
2513
2513
|
throw w1(f1.UNEXPECTED_RETURN_TYPE);
|
|
2514
2514
|
}
|
|
2515
2515
|
};
|
|
2516
|
-
function a2(...
|
|
2517
|
-
return I1((
|
|
2516
|
+
function a2(...w) {
|
|
2517
|
+
return I1((R) => Reflect.apply(qi, null, [R, ...w]), () => z8(...w), "translate", (R) => Reflect.apply(R.t, R, [...w]), (R) => R, (R) => q(R));
|
|
2518
2518
|
}
|
|
2519
|
-
function z2(...
|
|
2520
|
-
const [
|
|
2519
|
+
function z2(...w) {
|
|
2520
|
+
const [R, v1, y1] = w;
|
|
2521
2521
|
if (y1 && !u1(y1))
|
|
2522
2522
|
throw w1(f1.INVALID_ARGUMENT);
|
|
2523
|
-
return a2(
|
|
2523
|
+
return a2(R, v1, B1({ resolvedMessage: !0 }, y1 || {}));
|
|
2524
2524
|
}
|
|
2525
|
-
function A2(...
|
|
2526
|
-
return I1((
|
|
2525
|
+
function A2(...w) {
|
|
2526
|
+
return I1((R) => Reflect.apply(Ui, null, [R, ...w]), () => V8(...w), "datetime format", (R) => Reflect.apply(R.d, R, [...w]), () => O4, (R) => q(R));
|
|
2527
2527
|
}
|
|
2528
|
-
function F1(...
|
|
2529
|
-
return I1((
|
|
2528
|
+
function F1(...w) {
|
|
2529
|
+
return I1((R) => Reflect.apply(Gi, null, [R, ...w]), () => M8(...w), "number format", (R) => Reflect.apply(R.n, R, [...w]), () => O4, (R) => q(R));
|
|
2530
2530
|
}
|
|
2531
|
-
function o2(
|
|
2532
|
-
return
|
|
2531
|
+
function o2(w) {
|
|
2532
|
+
return w.map((R) => q(R) || k1(R) || n1(R) ? Zi(String(R)) : R);
|
|
2533
2533
|
}
|
|
2534
2534
|
const L3 = {
|
|
2535
2535
|
normalize: o2,
|
|
2536
|
-
interpolate: (
|
|
2536
|
+
interpolate: (w) => w,
|
|
2537
2537
|
type: "vnode"
|
|
2538
2538
|
};
|
|
2539
|
-
function i3(...
|
|
2539
|
+
function i3(...w) {
|
|
2540
2540
|
return I1(
|
|
2541
|
-
(
|
|
2541
|
+
(R) => {
|
|
2542
2542
|
let v1;
|
|
2543
|
-
const y1 =
|
|
2543
|
+
const y1 = R;
|
|
2544
2544
|
try {
|
|
2545
|
-
y1.processor = L3, v1 = Reflect.apply(qi, null, [y1, ...
|
|
2545
|
+
y1.processor = L3, v1 = Reflect.apply(qi, null, [y1, ...w]);
|
|
2546
2546
|
} finally {
|
|
2547
2547
|
y1.processor = null;
|
|
2548
2548
|
}
|
|
2549
2549
|
return v1;
|
|
2550
2550
|
},
|
|
2551
|
-
() => z8(...
|
|
2551
|
+
() => z8(...w),
|
|
2552
2552
|
"translate",
|
|
2553
2553
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2554
|
-
(
|
|
2555
|
-
(
|
|
2556
|
-
(
|
|
2554
|
+
(R) => R[g8](...w),
|
|
2555
|
+
(R) => [Zi(R)],
|
|
2556
|
+
(R) => C1(R)
|
|
2557
2557
|
);
|
|
2558
2558
|
}
|
|
2559
|
-
function A3(...
|
|
2559
|
+
function A3(...w) {
|
|
2560
2560
|
return I1(
|
|
2561
|
-
(
|
|
2562
|
-
() => M8(...
|
|
2561
|
+
(R) => Reflect.apply(Gi, null, [R, ...w]),
|
|
2562
|
+
() => M8(...w),
|
|
2563
2563
|
"number format",
|
|
2564
2564
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2565
|
-
(
|
|
2565
|
+
(R) => R[b8](...w),
|
|
2566
2566
|
Qi,
|
|
2567
|
-
(
|
|
2567
|
+
(R) => q(R) || C1(R)
|
|
2568
2568
|
);
|
|
2569
2569
|
}
|
|
2570
|
-
function _3(...
|
|
2570
|
+
function _3(...w) {
|
|
2571
2571
|
return I1(
|
|
2572
|
-
(
|
|
2573
|
-
() => V8(...
|
|
2572
|
+
(R) => Reflect.apply(Ui, null, [R, ...w]),
|
|
2573
|
+
() => V8(...w),
|
|
2574
2574
|
"datetime format",
|
|
2575
2575
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2576
|
-
(
|
|
2576
|
+
(R) => R[C8](...w),
|
|
2577
2577
|
Qi,
|
|
2578
|
-
(
|
|
2578
|
+
(R) => q(R) || C1(R)
|
|
2579
2579
|
);
|
|
2580
2580
|
}
|
|
2581
|
-
function x3(
|
|
2582
|
-
|
|
2581
|
+
function x3(w) {
|
|
2582
|
+
S = w, x.pluralRules = S;
|
|
2583
2583
|
}
|
|
2584
|
-
function j(
|
|
2584
|
+
function j(w, R) {
|
|
2585
2585
|
return I1(() => {
|
|
2586
|
-
if (!
|
|
2586
|
+
if (!w)
|
|
2587
2587
|
return !1;
|
|
2588
|
-
const v1 = q(
|
|
2588
|
+
const v1 = q(R) ? R : o.value, y1 = R2(v1), _2 = x.messageResolver(y1, w);
|
|
2589
2589
|
return l ? _2 != null : I2(_2) || K1(_2) || q(_2);
|
|
2590
|
-
}, () => [
|
|
2590
|
+
}, () => [w], "translate exists", (v1) => Reflect.apply(v1.te, v1, [w, R]), _W, (v1) => n1(v1));
|
|
2591
2591
|
}
|
|
2592
|
-
function d1(
|
|
2593
|
-
let
|
|
2594
|
-
const v1 = hs(
|
|
2592
|
+
function d1(w) {
|
|
2593
|
+
let R = null;
|
|
2594
|
+
const v1 = hs(x, m.value, o.value);
|
|
2595
2595
|
for (let y1 = 0; y1 < v1.length; y1++) {
|
|
2596
|
-
const _2 = u.value[v1[y1]] || {}, V4 =
|
|
2596
|
+
const _2 = u.value[v1[y1]] || {}, V4 = x.messageResolver(_2, w);
|
|
2597
2597
|
if (V4 != null) {
|
|
2598
|
-
|
|
2598
|
+
R = V4;
|
|
2599
2599
|
break;
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
2602
|
-
return
|
|
2602
|
+
return R;
|
|
2603
2603
|
}
|
|
2604
|
-
function N3(
|
|
2605
|
-
const
|
|
2606
|
-
return
|
|
2604
|
+
function N3(w) {
|
|
2605
|
+
const R = d1(w);
|
|
2606
|
+
return R ?? (a ? a.tm(w) || {} : {});
|
|
2607
2607
|
}
|
|
2608
|
-
function R2(
|
|
2609
|
-
return u.value[
|
|
2608
|
+
function R2(w) {
|
|
2609
|
+
return u.value[w] || {};
|
|
2610
2610
|
}
|
|
2611
|
-
function y3(
|
|
2611
|
+
function y3(w, R) {
|
|
2612
2612
|
if (n) {
|
|
2613
|
-
const v1 = { [
|
|
2613
|
+
const v1 = { [w]: R };
|
|
2614
2614
|
for (const y1 in v1)
|
|
2615
2615
|
D4(v1, y1) && R3(v1[y1]);
|
|
2616
|
-
|
|
2616
|
+
R = v1[w];
|
|
2617
2617
|
}
|
|
2618
|
-
u.value[
|
|
2618
|
+
u.value[w] = R, x.messages = u.value;
|
|
2619
2619
|
}
|
|
2620
|
-
function i8(
|
|
2621
|
-
u.value[
|
|
2622
|
-
const v1 = { [
|
|
2620
|
+
function i8(w, R) {
|
|
2621
|
+
u.value[w] = u.value[w] || {};
|
|
2622
|
+
const v1 = { [w]: R };
|
|
2623
2623
|
if (n)
|
|
2624
2624
|
for (const y1 in v1)
|
|
2625
2625
|
D4(v1, y1) && R3(v1[y1]);
|
|
2626
|
-
|
|
2626
|
+
R = v1[w], S4(R, u.value[w]), x.messages = u.value;
|
|
2627
2627
|
}
|
|
2628
|
-
function V(
|
|
2629
|
-
return v.value[
|
|
2628
|
+
function V(w) {
|
|
2629
|
+
return v.value[w] || {};
|
|
2630
2630
|
}
|
|
2631
|
-
function M(
|
|
2632
|
-
v.value[
|
|
2631
|
+
function M(w, R) {
|
|
2632
|
+
v.value[w] = R, x.datetimeFormats = v.value, Wi(x, w, R);
|
|
2633
2633
|
}
|
|
2634
|
-
function P(
|
|
2635
|
-
v.value[
|
|
2634
|
+
function P(w, R) {
|
|
2635
|
+
v.value[w] = B1(v.value[w] || {}, R), x.datetimeFormats = v.value, Wi(x, w, R);
|
|
2636
2636
|
}
|
|
2637
|
-
function X(
|
|
2638
|
-
return p.value[
|
|
2637
|
+
function X(w) {
|
|
2638
|
+
return p.value[w] || {};
|
|
2639
2639
|
}
|
|
2640
|
-
function _1(
|
|
2641
|
-
p.value[
|
|
2640
|
+
function _1(w, R) {
|
|
2641
|
+
p.value[w] = R, x.numberFormats = p.value, Ji(x, w, R);
|
|
2642
2642
|
}
|
|
2643
|
-
function M1(
|
|
2644
|
-
p.value[
|
|
2643
|
+
function M1(w, R) {
|
|
2644
|
+
p.value[w] = B1(p.value[w] || {}, R), x.numberFormats = p.value, Ji(x, w, R);
|
|
2645
2645
|
}
|
|
2646
|
-
Ki++, a && r2 && (l1(a.locale, (
|
|
2647
|
-
r && (o.value =
|
|
2648
|
-
}), l1(a.fallbackLocale, (
|
|
2649
|
-
r && (m.value =
|
|
2646
|
+
Ki++, a && r2 && (l1(a.locale, (w) => {
|
|
2647
|
+
r && (o.value = w, x.locale = w, k3(x, o.value, m.value));
|
|
2648
|
+
}), l1(a.fallbackLocale, (w) => {
|
|
2649
|
+
r && (m.value = w, x.fallbackLocale = w, k3(x, o.value, m.value));
|
|
2650
2650
|
}));
|
|
2651
2651
|
const h1 = {
|
|
2652
2652
|
id: Ki,
|
|
@@ -2655,8 +2655,8 @@ function Q8(e = {}, c) {
|
|
|
2655
2655
|
get inheritLocale() {
|
|
2656
2656
|
return r;
|
|
2657
2657
|
},
|
|
2658
|
-
set inheritLocale(
|
|
2659
|
-
r =
|
|
2658
|
+
set inheritLocale(w) {
|
|
2659
|
+
r = w, w && a && (o.value = a.locale.value, m.value = a.fallbackLocale.value, k3(x, o.value, m.value));
|
|
2660
2660
|
},
|
|
2661
2661
|
get availableLocales() {
|
|
2662
2662
|
return Object.keys(u.value).sort();
|
|
@@ -2666,7 +2666,7 @@ function Q8(e = {}, c) {
|
|
|
2666
2666
|
return k;
|
|
2667
2667
|
},
|
|
2668
2668
|
get pluralRules() {
|
|
2669
|
-
return
|
|
2669
|
+
return S || {};
|
|
2670
2670
|
},
|
|
2671
2671
|
get isGlobal() {
|
|
2672
2672
|
return i;
|
|
@@ -2674,38 +2674,38 @@ function Q8(e = {}, c) {
|
|
|
2674
2674
|
get missingWarn() {
|
|
2675
2675
|
return H;
|
|
2676
2676
|
},
|
|
2677
|
-
set missingWarn(
|
|
2678
|
-
H =
|
|
2677
|
+
set missingWarn(w) {
|
|
2678
|
+
H = w, x.missingWarn = H;
|
|
2679
2679
|
},
|
|
2680
2680
|
get fallbackWarn() {
|
|
2681
2681
|
return C;
|
|
2682
2682
|
},
|
|
2683
|
-
set fallbackWarn(
|
|
2684
|
-
C =
|
|
2683
|
+
set fallbackWarn(w) {
|
|
2684
|
+
C = w, x.fallbackWarn = C;
|
|
2685
2685
|
},
|
|
2686
2686
|
get fallbackRoot() {
|
|
2687
2687
|
return b;
|
|
2688
2688
|
},
|
|
2689
|
-
set fallbackRoot(
|
|
2690
|
-
b =
|
|
2689
|
+
set fallbackRoot(w) {
|
|
2690
|
+
b = w;
|
|
2691
2691
|
},
|
|
2692
2692
|
get fallbackFormat() {
|
|
2693
2693
|
return _;
|
|
2694
2694
|
},
|
|
2695
|
-
set fallbackFormat(
|
|
2696
|
-
_ =
|
|
2695
|
+
set fallbackFormat(w) {
|
|
2696
|
+
_ = w, x.fallbackFormat = _;
|
|
2697
2697
|
},
|
|
2698
2698
|
get warnHtmlMessage() {
|
|
2699
|
-
return
|
|
2699
|
+
return y;
|
|
2700
2700
|
},
|
|
2701
|
-
set warnHtmlMessage(
|
|
2702
|
-
|
|
2701
|
+
set warnHtmlMessage(w) {
|
|
2702
|
+
y = w, x.warnHtmlMessage = w;
|
|
2703
2703
|
},
|
|
2704
2704
|
get escapeParameter() {
|
|
2705
|
-
return
|
|
2705
|
+
return A;
|
|
2706
2706
|
},
|
|
2707
|
-
set escapeParameter(
|
|
2708
|
-
|
|
2707
|
+
set escapeParameter(w) {
|
|
2708
|
+
A = w, x.escapeParameter = w;
|
|
2709
2709
|
},
|
|
2710
2710
|
t: a2,
|
|
2711
2711
|
getLocaleMessage: R2,
|
|
@@ -2717,10 +2717,10 @@ function Q8(e = {}, c) {
|
|
|
2717
2717
|
setMissingHandler: O1,
|
|
2718
2718
|
[Ds]: x3
|
|
2719
2719
|
};
|
|
2720
|
-
return h1.datetimeFormats = U, h1.numberFormats =
|
|
2721
|
-
|
|
2720
|
+
return h1.datetimeFormats = U, h1.numberFormats = Y, h1.rt = z2, h1.te = j, h1.tm = N3, h1.d = A2, h1.n = F1, h1.getDateTimeFormat = V, h1.setDateTimeFormat = M, h1.mergeDateTimeFormat = P, h1.getNumberFormat = X, h1.setNumberFormat = _1, h1.mergeNumberFormat = M1, h1[Ps] = t, h1[g8] = i3, h1[C8] = _3, h1[b8] = A3, process.env.NODE_ENV !== "production" && (h1[X2] = (w) => {
|
|
2721
|
+
x.__v_emitter = w;
|
|
2722
2722
|
}, h1[F3] = () => {
|
|
2723
|
-
|
|
2723
|
+
x.__v_emitter = void 0;
|
|
2724
2724
|
}), h1;
|
|
2725
2725
|
}
|
|
2726
2726
|
function NW(e) {
|
|
@@ -2728,13 +2728,13 @@ function NW(e) {
|
|
|
2728
2728
|
process.env.NODE_ENV !== "production" && e.formatter && S1(U1(x1.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && S1(U1(x1.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
|
2729
2729
|
let H = e.messages;
|
|
2730
2730
|
if (t1(e.sharedMessages)) {
|
|
2731
|
-
const
|
|
2732
|
-
H = Object.keys(
|
|
2733
|
-
const
|
|
2734
|
-
return B1(
|
|
2731
|
+
const A = e.sharedMessages;
|
|
2732
|
+
H = Object.keys(A).reduce((S, x) => {
|
|
2733
|
+
const B = S[x] || (S[x] = {});
|
|
2734
|
+
return B1(B, A[x]), S;
|
|
2735
2735
|
}, H || {});
|
|
2736
2736
|
}
|
|
2737
|
-
const { __i18n: C, __root: b, __injectWithOption: _ } = e, g = e.datetimeFormats, z = e.numberFormats, L = e.flatJson,
|
|
2737
|
+
const { __i18n: C, __root: b, __injectWithOption: _ } = e, g = e.datetimeFormats, z = e.numberFormats, L = e.flatJson, y = e.translateExistCompatible;
|
|
2738
2738
|
return {
|
|
2739
2739
|
locale: c,
|
|
2740
2740
|
fallbackLocale: a,
|
|
@@ -2754,7 +2754,7 @@ function NW(e) {
|
|
|
2754
2754
|
escapeParameter: v,
|
|
2755
2755
|
messageResolver: e.messageResolver,
|
|
2756
2756
|
inheritLocale: p,
|
|
2757
|
-
translateExistCompatible:
|
|
2757
|
+
translateExistCompatible: y,
|
|
2758
2758
|
__i18n: C,
|
|
2759
2759
|
__root: b,
|
|
2760
2760
|
__injectWithOption: _
|
|
@@ -3664,8 +3664,8 @@ function sG(e, c, a, t = {}) {
|
|
|
3664
3664
|
), r = i1(
|
|
3665
3665
|
// prettier-ignore
|
|
3666
3666
|
!i || s ? a.fallbackLocale.value : q(t.fallbackLocale) || C1(t.fallbackLocale) || t1(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : l.value
|
|
3667
|
-
), o = i1(e6(l.value, t)), m = i1(t1(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), u = i1(t1(t.numberFormats) ? t.numberFormats : { [l.value]: {} }), v = i ? a.missingWarn : n1(t.missingWarn) || T2(t.missingWarn) ? t.missingWarn : !0, p = i ? a.fallbackWarn : n1(t.fallbackWarn) || T2(t.fallbackWarn) ? t.fallbackWarn : !0, H = i ? a.fallbackRoot : n1(t.fallbackRoot) ? t.fallbackRoot : !0, C = !!t.fallbackFormat, b = V1(t.missing) ? t.missing : null, _ = V1(t.postTranslation) ? t.postTranslation : null, g = i ? a.warnHtmlMessage : n1(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, z = !!t.escapeParameter, L = i ? a.modifiers : t1(t.modifiers) ? t.modifiers : {},
|
|
3668
|
-
function
|
|
3667
|
+
), o = i1(e6(l.value, t)), m = i1(t1(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), u = i1(t1(t.numberFormats) ? t.numberFormats : { [l.value]: {} }), v = i ? a.missingWarn : n1(t.missingWarn) || T2(t.missingWarn) ? t.missingWarn : !0, p = i ? a.fallbackWarn : n1(t.fallbackWarn) || T2(t.fallbackWarn) ? t.fallbackWarn : !0, H = i ? a.fallbackRoot : n1(t.fallbackRoot) ? t.fallbackRoot : !0, C = !!t.fallbackFormat, b = V1(t.missing) ? t.missing : null, _ = V1(t.postTranslation) ? t.postTranslation : null, g = i ? a.warnHtmlMessage : n1(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, z = !!t.escapeParameter, L = i ? a.modifiers : t1(t.modifiers) ? t.modifiers : {}, y = t.pluralRules || i && a.pluralRules;
|
|
3668
|
+
function A() {
|
|
3669
3669
|
return [
|
|
3670
3670
|
l.value,
|
|
3671
3671
|
r.value,
|
|
@@ -3679,12 +3679,12 @@ function sG(e, c, a, t = {}) {
|
|
|
3679
3679
|
set: (j) => {
|
|
3680
3680
|
n.value && (n.value.locale.value = j), l.value = j;
|
|
3681
3681
|
}
|
|
3682
|
-
}),
|
|
3682
|
+
}), S = E({
|
|
3683
3683
|
get: () => n.value ? n.value.fallbackLocale.value : r.value,
|
|
3684
3684
|
set: (j) => {
|
|
3685
3685
|
n.value && (n.value.fallbackLocale.value = j), r.value = j;
|
|
3686
3686
|
}
|
|
3687
|
-
}),
|
|
3687
|
+
}), x = E(() => n.value ? n.value.messages.value : o.value), B = E(() => m.value), Z = E(() => u.value);
|
|
3688
3688
|
function O() {
|
|
3689
3689
|
return n.value ? n.value.getPostTranslationHandler() : _;
|
|
3690
3690
|
}
|
|
@@ -3697,20 +3697,20 @@ function sG(e, c, a, t = {}) {
|
|
|
3697
3697
|
function U(j) {
|
|
3698
3698
|
n.value && n.value.setMissingHandler(j);
|
|
3699
3699
|
}
|
|
3700
|
-
function
|
|
3701
|
-
return
|
|
3700
|
+
function Y(j) {
|
|
3701
|
+
return A(), j();
|
|
3702
3702
|
}
|
|
3703
3703
|
function m1(...j) {
|
|
3704
|
-
return n.value ?
|
|
3704
|
+
return n.value ? Y(() => Reflect.apply(n.value.t, null, [...j])) : Y(() => "");
|
|
3705
3705
|
}
|
|
3706
3706
|
function P1(...j) {
|
|
3707
3707
|
return n.value ? Reflect.apply(n.value.rt, null, [...j]) : "";
|
|
3708
3708
|
}
|
|
3709
3709
|
function q1(...j) {
|
|
3710
|
-
return n.value ?
|
|
3710
|
+
return n.value ? Y(() => Reflect.apply(n.value.d, null, [...j])) : Y(() => "");
|
|
3711
3711
|
}
|
|
3712
3712
|
function O1(...j) {
|
|
3713
|
-
return n.value ?
|
|
3713
|
+
return n.value ? Y(() => Reflect.apply(n.value.n, null, [...j])) : Y(() => "");
|
|
3714
3714
|
}
|
|
3715
3715
|
function J1(j) {
|
|
3716
3716
|
return n.value ? n.value.tm(j) : {};
|
|
@@ -3750,10 +3750,10 @@ function sG(e, c, a, t = {}) {
|
|
|
3750
3750
|
return n.value ? n.value.id : -1;
|
|
3751
3751
|
},
|
|
3752
3752
|
locale: k,
|
|
3753
|
-
fallbackLocale:
|
|
3754
|
-
messages:
|
|
3755
|
-
datetimeFormats:
|
|
3756
|
-
numberFormats:
|
|
3753
|
+
fallbackLocale: S,
|
|
3754
|
+
messages: x,
|
|
3755
|
+
datetimeFormats: B,
|
|
3756
|
+
numberFormats: Z,
|
|
3757
3757
|
get inheritLocale() {
|
|
3758
3758
|
return n.value ? n.value.inheritLocale : s;
|
|
3759
3759
|
},
|
|
@@ -3767,7 +3767,7 @@ function sG(e, c, a, t = {}) {
|
|
|
3767
3767
|
return n.value ? n.value.modifiers : L;
|
|
3768
3768
|
},
|
|
3769
3769
|
get pluralRules() {
|
|
3770
|
-
return n.value ? n.value.pluralRules :
|
|
3770
|
+
return n.value ? n.value.pluralRules : y;
|
|
3771
3771
|
},
|
|
3772
3772
|
get isGlobal() {
|
|
3773
3773
|
return n.value ? n.value.isGlobal : !1;
|
|
@@ -18530,7 +18530,7 @@ const OG = async (e, c, a) => {
|
|
|
18530
18530
|
x: g,
|
|
18531
18531
|
y: z,
|
|
18532
18532
|
data: L,
|
|
18533
|
-
reset:
|
|
18533
|
+
reset: y
|
|
18534
18534
|
} = await _({
|
|
18535
18535
|
x: m,
|
|
18536
18536
|
y: u,
|
|
@@ -18551,11 +18551,11 @@ const OG = async (e, c, a) => {
|
|
|
18551
18551
|
...p[b],
|
|
18552
18552
|
...L
|
|
18553
18553
|
}
|
|
18554
|
-
},
|
|
18554
|
+
}, y && H <= 50 && (H++, typeof y == "object" && (y.placement && (v = y.placement), y.rects && (o = y.rects === !0 ? await s.getElementRects({
|
|
18555
18555
|
reference: e,
|
|
18556
18556
|
floating: c,
|
|
18557
18557
|
strategy: i
|
|
18558
|
-
}) :
|
|
18558
|
+
}) : y.rects), {
|
|
18559
18559
|
x: m,
|
|
18560
18560
|
y: u
|
|
18561
18561
|
} = un(o, v, r)), C = -1);
|
|
@@ -18600,17 +18600,17 @@ async function J6(e, c) {
|
|
|
18600
18600
|
} : {
|
|
18601
18601
|
x: 1,
|
|
18602
18602
|
y: 1
|
|
18603
|
-
},
|
|
18603
|
+
}, y = w3(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
18604
18604
|
elements: l,
|
|
18605
18605
|
rect: g,
|
|
18606
18606
|
offsetParent: z,
|
|
18607
18607
|
strategy: r
|
|
18608
18608
|
}) : g);
|
|
18609
18609
|
return {
|
|
18610
|
-
top: (_.top -
|
|
18611
|
-
bottom: (
|
|
18612
|
-
left: (_.left -
|
|
18613
|
-
right: (
|
|
18610
|
+
top: (_.top - y.top + H.top) / L.y,
|
|
18611
|
+
bottom: (y.bottom - _.bottom + H.bottom) / L.y,
|
|
18612
|
+
left: (_.left - y.left + H.left) / L.x,
|
|
18613
|
+
right: (y.right - _.right + H.right) / L.x
|
|
18614
18614
|
};
|
|
18615
18615
|
}
|
|
18616
18616
|
const BG = (e) => ({
|
|
@@ -18634,20 +18634,20 @@ const BG = (e) => ({
|
|
|
18634
18634
|
const u = Cq(m), v = {
|
|
18635
18635
|
x: a,
|
|
18636
18636
|
y: t
|
|
18637
|
-
}, p = si(i), H = ni(p), C = await s.getDimensions(o), b = p === "y", _ = b ? "top" : "left", g = b ? "bottom" : "right", z = b ? "clientHeight" : "clientWidth", L = n.reference[H] + n.reference[p] - v[p] - n.floating[H],
|
|
18638
|
-
let k =
|
|
18639
|
-
(!k || !await (s.isElement == null ? void 0 : s.isElement(
|
|
18640
|
-
const
|
|
18637
|
+
}, p = si(i), H = ni(p), C = await s.getDimensions(o), b = p === "y", _ = b ? "top" : "left", g = b ? "bottom" : "right", z = b ? "clientHeight" : "clientWidth", L = n.reference[H] + n.reference[p] - v[p] - n.floating[H], y = v[p] - n.reference[p], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(o));
|
|
18638
|
+
let k = A ? A[z] : 0;
|
|
18639
|
+
(!k || !await (s.isElement == null ? void 0 : s.isElement(A))) && (k = l.floating[z] || n.floating[H]);
|
|
18640
|
+
const S = L / 2 - y / 2, x = k / 2 - C[H] / 2 - 1, B = G2(u[_], x), Z = G2(u[g], x), O = B, e1 = k - C[H] - Z, r1 = k / 2 - C[H] / 2 + S, U = x8(O, r1, e1), Y = !r.arrow && s2(i) != null && r1 !== U && n.reference[H] / 2 - (r1 < O ? B : Z) - C[H] / 2 < 0, m1 = Y ? r1 < O ? r1 - O : r1 - e1 : 0;
|
|
18641
18641
|
return {
|
|
18642
18642
|
[p]: v[p] + m1,
|
|
18643
18643
|
data: {
|
|
18644
18644
|
[p]: U,
|
|
18645
18645
|
centerOffset: r1 - U - m1,
|
|
18646
|
-
...
|
|
18646
|
+
...Y && {
|
|
18647
18647
|
alignmentOffset: m1
|
|
18648
18648
|
}
|
|
18649
18649
|
},
|
|
18650
|
-
reset:
|
|
18650
|
+
reset: Y
|
|
18651
18651
|
};
|
|
18652
18652
|
}
|
|
18653
18653
|
});
|
|
@@ -18682,42 +18682,42 @@ const RG = function(e) {
|
|
|
18682
18682
|
placement: C[0]
|
|
18683
18683
|
}
|
|
18684
18684
|
};
|
|
18685
|
-
const L = [b[p2(g)], b[z[0]], b[z[1]]],
|
|
18685
|
+
const L = [b[p2(g)], b[z[0]], b[z[1]]], y = [...((t = s.autoPlacement) == null ? void 0 : t.overflows) || [], {
|
|
18686
18686
|
placement: g,
|
|
18687
18687
|
overflows: L
|
|
18688
|
-
}],
|
|
18689
|
-
if (
|
|
18688
|
+
}], A = C[_ + 1];
|
|
18689
|
+
if (A)
|
|
18690
18690
|
return {
|
|
18691
18691
|
data: {
|
|
18692
18692
|
index: _ + 1,
|
|
18693
|
-
overflows:
|
|
18693
|
+
overflows: y
|
|
18694
18694
|
},
|
|
18695
18695
|
reset: {
|
|
18696
|
-
placement:
|
|
18696
|
+
placement: A
|
|
18697
18697
|
}
|
|
18698
18698
|
};
|
|
18699
|
-
const k =
|
|
18700
|
-
const
|
|
18701
|
-
return [
|
|
18699
|
+
const k = y.map((B) => {
|
|
18700
|
+
const Z = s2(B.placement);
|
|
18701
|
+
return [B.placement, Z && m ? (
|
|
18702
18702
|
// Check along the mainAxis and main crossAxis side.
|
|
18703
|
-
|
|
18703
|
+
B.overflows.slice(0, 2).reduce((O, e1) => O + e1, 0)
|
|
18704
18704
|
) : (
|
|
18705
18705
|
// Check only the mainAxis.
|
|
18706
|
-
|
|
18707
|
-
),
|
|
18708
|
-
}).sort((
|
|
18706
|
+
B.overflows[0]
|
|
18707
|
+
), B.overflows];
|
|
18708
|
+
}).sort((B, Z) => B[1] - Z[1]), x = ((i = k.filter((B) => B[2].slice(
|
|
18709
18709
|
0,
|
|
18710
18710
|
// Aligned placements should not check their opposite crossAxis
|
|
18711
18711
|
// side.
|
|
18712
|
-
s2(
|
|
18713
|
-
).every((
|
|
18714
|
-
return
|
|
18712
|
+
s2(B[0]) ? 2 : 3
|
|
18713
|
+
).every((Z) => Z <= 0))[0]) == null ? void 0 : i[0]) || k[0][0];
|
|
18714
|
+
return x !== l ? {
|
|
18715
18715
|
data: {
|
|
18716
18716
|
index: _ + 1,
|
|
18717
|
-
overflows:
|
|
18717
|
+
overflows: y
|
|
18718
18718
|
},
|
|
18719
18719
|
reset: {
|
|
18720
|
-
placement:
|
|
18720
|
+
placement: x
|
|
18721
18721
|
}
|
|
18722
18722
|
} : {};
|
|
18723
18723
|
}
|
|
@@ -18748,34 +18748,34 @@ const RG = function(e) {
|
|
|
18748
18748
|
return {};
|
|
18749
18749
|
const _ = p2(i), g = p2(l) === l, z = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), L = v || (g || !C ? [F4(l)] : IG(l));
|
|
18750
18750
|
!v && H !== "none" && L.push(...DG(l, C, H, z));
|
|
18751
|
-
const
|
|
18752
|
-
let
|
|
18753
|
-
if (m && k.push(
|
|
18751
|
+
const y = [l, ...L], A = await J6(c, b), k = [];
|
|
18752
|
+
let S = ((t = n.flip) == null ? void 0 : t.overflows) || [];
|
|
18753
|
+
if (m && k.push(A[_]), u) {
|
|
18754
18754
|
const O = gq(i, s, z);
|
|
18755
|
-
k.push(
|
|
18755
|
+
k.push(A[O[0]], A[O[1]]);
|
|
18756
18756
|
}
|
|
18757
|
-
if (
|
|
18757
|
+
if (S = [...S, {
|
|
18758
18758
|
placement: i,
|
|
18759
18759
|
overflows: k
|
|
18760
18760
|
}], !k.every((O) => O <= 0)) {
|
|
18761
|
-
var
|
|
18762
|
-
const O = (((
|
|
18761
|
+
var x, B;
|
|
18762
|
+
const O = (((x = n.flip) == null ? void 0 : x.index) || 0) + 1, e1 = y[O];
|
|
18763
18763
|
if (e1)
|
|
18764
18764
|
return {
|
|
18765
18765
|
data: {
|
|
18766
18766
|
index: O,
|
|
18767
|
-
overflows:
|
|
18767
|
+
overflows: S
|
|
18768
18768
|
},
|
|
18769
18769
|
reset: {
|
|
18770
18770
|
placement: e1
|
|
18771
18771
|
}
|
|
18772
18772
|
};
|
|
18773
|
-
let r1 = (
|
|
18773
|
+
let r1 = (B = S.filter((U) => U.overflows[0] <= 0).sort((U, Y) => U.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
18774
18774
|
if (!r1)
|
|
18775
18775
|
switch (p) {
|
|
18776
18776
|
case "bestFit": {
|
|
18777
|
-
var
|
|
18778
|
-
const U = (
|
|
18777
|
+
var Z;
|
|
18778
|
+
const U = (Z = S.map((Y) => [Y.placement, Y.overflows.filter((m1) => m1 > 0).reduce((m1, P1) => m1 + P1, 0)]).sort((Y, m1) => Y[1] - m1[1])[0]) == null ? void 0 : Z[0];
|
|
18779
18779
|
U && (r1 = U);
|
|
18780
18780
|
break;
|
|
18781
18781
|
}
|
|
@@ -18917,15 +18917,15 @@ const $G = function(e) {
|
|
|
18917
18917
|
let H, C;
|
|
18918
18918
|
o === "top" || o === "bottom" ? (H = o, C = m === (await (i.isRTL == null ? void 0 : i.isRTL(n.floating)) ? "start" : "end") ? "left" : "right") : (C = o, H = m === "end" ? "top" : "bottom");
|
|
18919
18919
|
const b = p - r.top - r.bottom, _ = v - r.left - r.right, g = G2(p - r[H], b), z = G2(v - r[C], _), L = !c.middlewareData.shift;
|
|
18920
|
-
let
|
|
18921
|
-
if (u ?
|
|
18922
|
-
const
|
|
18923
|
-
u ?
|
|
18920
|
+
let y = g, A = z;
|
|
18921
|
+
if (u ? A = m || L ? G2(z, _) : _ : y = m || L ? G2(g, b) : b, L && !m) {
|
|
18922
|
+
const S = W2(r.left, 0), x = W2(r.right, 0), B = W2(r.top, 0), Z = W2(r.bottom, 0);
|
|
18923
|
+
u ? A = v - 2 * (S !== 0 || x !== 0 ? S + x : W2(r.left, r.right)) : y = p - 2 * (B !== 0 || Z !== 0 ? B + Z : W2(r.top, r.bottom));
|
|
18924
18924
|
}
|
|
18925
18925
|
await s({
|
|
18926
18926
|
...c,
|
|
18927
|
-
availableWidth:
|
|
18928
|
-
availableHeight:
|
|
18927
|
+
availableWidth: A,
|
|
18928
|
+
availableHeight: y
|
|
18929
18929
|
});
|
|
18930
18930
|
const k = await i.getDimensions(n.floating);
|
|
18931
18931
|
return v !== k.width || p !== k.height ? {
|
|
@@ -20550,7 +20550,7 @@ function CJ(e, c, a, t, i, n) {
|
|
|
20550
20550
|
innerHTML: e.finalContent
|
|
20551
20551
|
}, null, 8, HJ)) : (d(), h("div", {
|
|
20552
20552
|
key: 1,
|
|
20553
|
-
textContent:
|
|
20553
|
+
textContent: N(e.finalContent)
|
|
20554
20554
|
}, null, 8, gJ))
|
|
20555
20555
|
]),
|
|
20556
20556
|
_: 2
|
|
@@ -20945,13 +20945,13 @@ var c$ = {
|
|
|
20945
20945
|
D3.familyPrefix && (D3.cssPrefix = D3.familyPrefix);
|
|
20946
20946
|
var h3 = W(W({}, c$), D3);
|
|
20947
20947
|
h3.autoReplaceSvg || (h3.observeMutations = !1);
|
|
20948
|
-
var
|
|
20948
|
+
var Q = {};
|
|
20949
20949
|
Object.keys(c$).forEach(function(e) {
|
|
20950
|
-
Object.defineProperty(
|
|
20950
|
+
Object.defineProperty(Q, e, {
|
|
20951
20951
|
enumerable: !0,
|
|
20952
20952
|
set: function(a) {
|
|
20953
20953
|
h3[e] = a, P3.forEach(function(t) {
|
|
20954
|
-
return t(
|
|
20954
|
+
return t(Q);
|
|
20955
20955
|
});
|
|
20956
20956
|
},
|
|
20957
20957
|
get: function() {
|
|
@@ -20959,18 +20959,18 @@ Object.keys(c$).forEach(function(e) {
|
|
|
20959
20959
|
}
|
|
20960
20960
|
});
|
|
20961
20961
|
});
|
|
20962
|
-
Object.defineProperty(
|
|
20962
|
+
Object.defineProperty(Q, "familyPrefix", {
|
|
20963
20963
|
enumerable: !0,
|
|
20964
20964
|
set: function(c) {
|
|
20965
20965
|
h3.cssPrefix = c, P3.forEach(function(a) {
|
|
20966
|
-
return a(
|
|
20966
|
+
return a(Q);
|
|
20967
20967
|
});
|
|
20968
20968
|
},
|
|
20969
20969
|
get: function() {
|
|
20970
20970
|
return h3.cssPrefix;
|
|
20971
20971
|
}
|
|
20972
20972
|
});
|
|
20973
|
-
D2.FontAwesomeConfig =
|
|
20973
|
+
D2.FontAwesomeConfig = Q;
|
|
20974
20974
|
var P3 = [];
|
|
20975
20975
|
function eZ(e) {
|
|
20976
20976
|
return P3.push(e), function() {
|
|
@@ -21804,7 +21804,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
21804
21804
|
color: var(--fa-inverse, #fff);
|
|
21805
21805
|
}`;
|
|
21806
21806
|
function t$() {
|
|
21807
|
-
var e = Yq, c = Qq, a =
|
|
21807
|
+
var e = Yq, c = Qq, a = Q.cssPrefix, t = Q.replacementClass, i = sZ;
|
|
21808
21808
|
if (a !== e || t !== c) {
|
|
21809
21809
|
var n = new RegExp("\\.".concat(e, "\\-"), "g"), s = new RegExp("\\--".concat(e, "\\-"), "g"), l = new RegExp("\\.".concat(c), "g");
|
|
21810
21810
|
i = i.replace(n, ".".concat(a, "-")).replace(s, "--".concat(a, "-")).replace(l, ".".concat(t));
|
|
@@ -21813,7 +21813,7 @@ function t$() {
|
|
|
21813
21813
|
}
|
|
21814
21814
|
var Dn = !1;
|
|
21815
21815
|
function m8() {
|
|
21816
|
-
|
|
21816
|
+
Q.autoAddCss && !Dn && (cZ(t$()), Dn = !0);
|
|
21817
21817
|
}
|
|
21818
21818
|
var lZ = {
|
|
21819
21819
|
mixout: function() {
|
|
@@ -21939,7 +21939,7 @@ var f$ = function() {
|
|
|
21939
21939
|
i[r] = s;
|
|
21940
21940
|
}), i;
|
|
21941
21941
|
});
|
|
21942
|
-
var a = "far" in o3 ||
|
|
21942
|
+
var a = "far" in o3 || Q.autoFetchSvg, t = d8(dZ, function(i, n) {
|
|
21943
21943
|
var s = n[0], l = n[1], r = n[2];
|
|
21944
21944
|
return l === "far" && !a && (l = "fas"), typeof s == "string" && (i.names[s] = {
|
|
21945
21945
|
prefix: l,
|
|
@@ -21952,13 +21952,13 @@ var f$ = function() {
|
|
|
21952
21952
|
names: {},
|
|
21953
21953
|
unicodes: {}
|
|
21954
21954
|
});
|
|
21955
|
-
l$ = t.names, r$ = t.unicodes, hi = e8(
|
|
21956
|
-
family:
|
|
21955
|
+
l$ = t.names, r$ = t.unicodes, hi = e8(Q.styleDefault, {
|
|
21956
|
+
family: Q.familyDefault
|
|
21957
21957
|
});
|
|
21958
21958
|
};
|
|
21959
21959
|
eZ(function(e) {
|
|
21960
21960
|
hi = e8(e.styleDefault, {
|
|
21961
|
-
family:
|
|
21961
|
+
family: Q.familyDefault
|
|
21962
21962
|
});
|
|
21963
21963
|
});
|
|
21964
21964
|
f$();
|
|
@@ -22003,23 +22003,23 @@ function e8(e) {
|
|
|
22003
22003
|
}
|
|
22004
22004
|
var Bn = (k4 = {}, T1(k4, b1, Object.keys(Z3[b1])), T1(k4, N1, Object.keys(Z3[N1])), k4);
|
|
22005
22005
|
function c8(e) {
|
|
22006
|
-
var c, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.skipLookups, i = t === void 0 ? !1 : t, n = (c = {}, T1(c, b1, "".concat(
|
|
22006
|
+
var c, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.skipLookups, i = t === void 0 ? !1 : t, n = (c = {}, T1(c, b1, "".concat(Q.cssPrefix, "-").concat(b1)), T1(c, N1, "".concat(Q.cssPrefix, "-").concat(N1)), c), s = null, l = b1;
|
|
22007
22007
|
(e.includes(n[b1]) || e.some(function(o) {
|
|
22008
22008
|
return Bn[b1].includes(o);
|
|
22009
22009
|
})) && (l = b1), (e.includes(n[N1]) || e.some(function(o) {
|
|
22010
22010
|
return Bn[N1].includes(o);
|
|
22011
22011
|
})) && (l = N1);
|
|
22012
22012
|
var r = e.reduce(function(o, m) {
|
|
22013
|
-
var u = zZ(
|
|
22013
|
+
var u = zZ(Q.cssPrefix, m);
|
|
22014
22014
|
if (o3[m] ? (m = vZ[l].includes(m) ? $J[l][m] : m, s = m, o.prefix = m) : pZ[l].indexOf(m) > -1 ? (s = m, o.prefix = e8(m, {
|
|
22015
22015
|
family: l
|
|
22016
|
-
})) : u ? o.iconName = u : m !==
|
|
22016
|
+
})) : u ? o.iconName = u : m !== Q.replacementClass && m !== n[b1] && m !== n[N1] && o.rest.push(m), !i && o.prefix && o.iconName) {
|
|
22017
22017
|
var v = s === "fa" ? u$(o.iconName) : {}, p = Z2(o.prefix, o.iconName);
|
|
22018
|
-
v.prefix && (s = null), o.iconName = v.iconName || p || o.iconName, o.prefix = v.prefix || o.prefix, o.prefix === "far" && !o3.far && o3.fas && !
|
|
22018
|
+
v.prefix && (s = null), o.iconName = v.iconName || p || o.iconName, o.prefix = v.prefix || o.prefix, o.prefix === "far" && !o3.far && o3.fas && !Q.autoFetchSvg && (o.prefix = "fas");
|
|
22019
22019
|
}
|
|
22020
22020
|
return o;
|
|
22021
22021
|
}, Vi());
|
|
22022
|
-
return (e.includes("fa-brands") || e.includes("fab")) && (r.prefix = "fab"), (e.includes("fa-duotone") || e.includes("fad")) && (r.prefix = "fad"), !r.prefix && l === N1 && (o3.fass ||
|
|
22022
|
+
return (e.includes("fa-brands") || e.includes("fab")) && (r.prefix = "fab"), (e.includes("fa-duotone") || e.includes("fad")) && (r.prefix = "fad"), !r.prefix && l === N1 && (o3.fass || Q.autoFetchSvg) && (r.prefix = "fass", r.iconName = Z2(r.prefix, r.iconName) || r.iconName), (r.prefix === "fa" || s === "fa") && (r.prefix = P2() || "fas"), r;
|
|
22023
22023
|
}
|
|
22024
22024
|
var HZ = /* @__PURE__ */ function() {
|
|
22025
22025
|
function e() {
|
|
@@ -22103,7 +22103,7 @@ function O8(e) {
|
|
|
22103
22103
|
return c = Z2(a, c) || c, Pn(m$.definitions, a, c) || Pn(n2.styles, a, c);
|
|
22104
22104
|
}
|
|
22105
22105
|
var m$ = new HZ(), bZ = function() {
|
|
22106
|
-
|
|
22106
|
+
Q.autoReplaceSvg = !1, Q.observeMutations = !1, c3("noAuto");
|
|
22107
22107
|
}, LZ = {
|
|
22108
22108
|
i2svg: function() {
|
|
22109
22109
|
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -22111,7 +22111,7 @@ var m$ = new HZ(), bZ = function() {
|
|
|
22111
22111
|
},
|
|
22112
22112
|
watch: function() {
|
|
22113
22113
|
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = c.autoReplaceSvgRoot;
|
|
22114
|
-
|
|
22114
|
+
Q.autoReplaceSvg === !1 && (Q.autoReplaceSvg = !0), Q.observeMutations = !0, oZ(function() {
|
|
22115
22115
|
_Z({
|
|
22116
22116
|
autoReplaceSvgRoot: a
|
|
22117
22117
|
}), c3("watch", c);
|
|
@@ -22133,7 +22133,7 @@ var m$ = new HZ(), bZ = function() {
|
|
|
22133
22133
|
iconName: Z2(t, a) || a
|
|
22134
22134
|
};
|
|
22135
22135
|
}
|
|
22136
|
-
if (typeof c == "string" && (c.indexOf("".concat(
|
|
22136
|
+
if (typeof c == "string" && (c.indexOf("".concat(Q.cssPrefix, "-")) > -1 || c.match(UJ))) {
|
|
22137
22137
|
var i = c8(c.split(" "), {
|
|
22138
22138
|
skipLookups: !0
|
|
22139
22139
|
});
|
|
@@ -22152,7 +22152,7 @@ var m$ = new HZ(), bZ = function() {
|
|
|
22152
22152
|
}
|
|
22153
22153
|
}, Q1 = {
|
|
22154
22154
|
noAuto: bZ,
|
|
22155
|
-
config:
|
|
22155
|
+
config: Q,
|
|
22156
22156
|
dom: LZ,
|
|
22157
22157
|
parse: AZ,
|
|
22158
22158
|
library: m$,
|
|
@@ -22160,7 +22160,7 @@ var m$ = new HZ(), bZ = function() {
|
|
|
22160
22160
|
toHtml: z4
|
|
22161
22161
|
}, _Z = function() {
|
|
22162
22162
|
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = c.autoReplaceSvgRoot, t = a === void 0 ? L1 : a;
|
|
22163
|
-
(Object.keys(n2.styles).length > 0 ||
|
|
22163
|
+
(Object.keys(n2.styles).length > 0 || Q.autoFetchSvg) && L2 && Q.autoReplaceSvg && Q1.dom.i2svg({
|
|
22164
22164
|
node: t
|
|
22165
22165
|
});
|
|
22166
22166
|
};
|
|
@@ -22200,7 +22200,7 @@ function xZ(e) {
|
|
|
22200
22200
|
}];
|
|
22201
22201
|
}
|
|
22202
22202
|
function NZ(e) {
|
|
22203
|
-
var c = e.prefix, a = e.iconName, t = e.children, i = e.attributes, n = e.symbol, s = n === !0 ? "".concat(c, "-").concat(
|
|
22203
|
+
var c = e.prefix, a = e.iconName, t = e.children, i = e.attributes, n = e.symbol, s = n === !0 ? "".concat(c, "-").concat(Q.cssPrefix, "-").concat(a) : n;
|
|
22204
22204
|
return [{
|
|
22205
22205
|
tag: "svg",
|
|
22206
22206
|
attributes: {
|
|
@@ -22216,10 +22216,10 @@ function NZ(e) {
|
|
|
22216
22216
|
}];
|
|
22217
22217
|
}
|
|
22218
22218
|
function Mi(e) {
|
|
22219
|
-
var c = e.icons, a = c.main, t = c.mask, i = e.prefix, n = e.iconName, s = e.transform, l = e.symbol, r = e.title, o = e.maskId, m = e.titleId, u = e.extra, v = e.watchable, p = v === void 0 ? !1 : v, H = t.found ? t : a, C = H.width, b = H.height, _ = i === "fak", g = [
|
|
22220
|
-
return u.classes.indexOf(
|
|
22221
|
-
}).filter(function(
|
|
22222
|
-
return
|
|
22219
|
+
var c = e.icons, a = c.main, t = c.mask, i = e.prefix, n = e.iconName, s = e.transform, l = e.symbol, r = e.title, o = e.maskId, m = e.titleId, u = e.extra, v = e.watchable, p = v === void 0 ? !1 : v, H = t.found ? t : a, C = H.width, b = H.height, _ = i === "fak", g = [Q.replacementClass, n ? "".concat(Q.cssPrefix, "-").concat(n) : ""].filter(function(x) {
|
|
22220
|
+
return u.classes.indexOf(x) === -1;
|
|
22221
|
+
}).filter(function(x) {
|
|
22222
|
+
return x !== "" || !!x;
|
|
22223
22223
|
}).concat(u.classes).join(" "), z = {
|
|
22224
22224
|
children: [],
|
|
22225
22225
|
attributes: W(W({}, u.attributes), {}, {
|
|
@@ -22240,7 +22240,7 @@ function Mi(e) {
|
|
|
22240
22240
|
},
|
|
22241
22241
|
children: [r]
|
|
22242
22242
|
}), delete z.attributes.title);
|
|
22243
|
-
var
|
|
22243
|
+
var y = W(W({}, z), {}, {
|
|
22244
22244
|
prefix: i,
|
|
22245
22245
|
iconName: n,
|
|
22246
22246
|
main: a,
|
|
@@ -22249,14 +22249,14 @@ function Mi(e) {
|
|
|
22249
22249
|
transform: s,
|
|
22250
22250
|
symbol: l,
|
|
22251
22251
|
styles: W(W({}, L), u.styles)
|
|
22252
|
-
}),
|
|
22252
|
+
}), A = t.found && a.found ? b2("generateAbstractMask", y) || {
|
|
22253
22253
|
children: [],
|
|
22254
22254
|
attributes: {}
|
|
22255
|
-
} : b2("generateAbstractIcon",
|
|
22255
|
+
} : b2("generateAbstractIcon", y) || {
|
|
22256
22256
|
children: [],
|
|
22257
22257
|
attributes: {}
|
|
22258
|
-
}, k =
|
|
22259
|
-
return
|
|
22258
|
+
}, k = A.children, S = A.attributes;
|
|
22259
|
+
return y.children = k, y.attributes = S, l ? NZ(y) : xZ(y);
|
|
22260
22260
|
}
|
|
22261
22261
|
function Rn(e) {
|
|
22262
22262
|
var c = e.content, a = e.width, t = e.height, i = e.transform, n = e.title, s = e.extra, l = e.watchable, r = l === void 0 ? !1 : l, o = W(W(W({}, s.attributes), n ? {
|
|
@@ -22313,19 +22313,19 @@ function B8(e) {
|
|
|
22313
22313
|
return Array.isArray(n) ? s = {
|
|
22314
22314
|
tag: "g",
|
|
22315
22315
|
attributes: {
|
|
22316
|
-
class: "".concat(
|
|
22316
|
+
class: "".concat(Q.cssPrefix, "-").concat(J2.GROUP)
|
|
22317
22317
|
},
|
|
22318
22318
|
children: [{
|
|
22319
22319
|
tag: "path",
|
|
22320
22320
|
attributes: {
|
|
22321
|
-
class: "".concat(
|
|
22321
|
+
class: "".concat(Q.cssPrefix, "-").concat(J2.SECONDARY),
|
|
22322
22322
|
fill: "currentColor",
|
|
22323
22323
|
d: n[0]
|
|
22324
22324
|
}
|
|
22325
22325
|
}, {
|
|
22326
22326
|
tag: "path",
|
|
22327
22327
|
attributes: {
|
|
22328
|
-
class: "".concat(
|
|
22328
|
+
class: "".concat(Q.cssPrefix, "-").concat(J2.PRIMARY),
|
|
22329
22329
|
fill: "currentColor",
|
|
22330
22330
|
d: n[1]
|
|
22331
22331
|
}
|
|
@@ -22349,11 +22349,11 @@ var kZ = {
|
|
|
22349
22349
|
height: 512
|
|
22350
22350
|
};
|
|
22351
22351
|
function SZ(e, c) {
|
|
22352
|
-
!Kq && !
|
|
22352
|
+
!Kq && !Q.showMissingIcons && e && console.error('Icon with name "'.concat(e, '" and prefix "').concat(c, '" is missing.'));
|
|
22353
22353
|
}
|
|
22354
22354
|
function F8(e, c) {
|
|
22355
22355
|
var a = c;
|
|
22356
|
-
return c === "fa" &&
|
|
22356
|
+
return c === "fa" && Q.styleDefault !== null && (c = P2()), new Promise(function(t, i) {
|
|
22357
22357
|
if (b2("missingIconAbstract"), a === "fa") {
|
|
22358
22358
|
var n = u$(e) || {};
|
|
22359
22359
|
e = n.iconName || e, c = n.prefix || c;
|
|
@@ -22363,12 +22363,12 @@ function F8(e, c) {
|
|
|
22363
22363
|
return t(B8(s));
|
|
22364
22364
|
}
|
|
22365
22365
|
SZ(e, c), t(W(W({}, kZ), {}, {
|
|
22366
|
-
icon:
|
|
22366
|
+
icon: Q.showMissingIcons && e ? b2("missingIconAbstract") || {} : {}
|
|
22367
22367
|
}));
|
|
22368
22368
|
});
|
|
22369
22369
|
}
|
|
22370
22370
|
var jn = function() {
|
|
22371
|
-
}, R8 =
|
|
22371
|
+
}, R8 = Q.measurePerformance && C4 && C4.mark && C4.measure ? C4 : {
|
|
22372
22372
|
mark: jn,
|
|
22373
22373
|
measure: jn
|
|
22374
22374
|
}, S3 = 'FA "6.4.2"', wZ = function(c) {
|
|
@@ -22391,12 +22391,12 @@ function TZ(e) {
|
|
|
22391
22391
|
return c && a;
|
|
22392
22392
|
}
|
|
22393
22393
|
function IZ(e) {
|
|
22394
|
-
return e && e.classList && e.classList.contains && e.classList.contains(
|
|
22394
|
+
return e && e.classList && e.classList.contains && e.classList.contains(Q.replacementClass);
|
|
22395
22395
|
}
|
|
22396
22396
|
function EZ() {
|
|
22397
|
-
if (
|
|
22397
|
+
if (Q.autoReplaceSvg === !0)
|
|
22398
22398
|
return I4.replace;
|
|
22399
|
-
var e = I4[
|
|
22399
|
+
var e = I4[Q.autoReplaceSvg];
|
|
22400
22400
|
return e || I4.replace;
|
|
22401
22401
|
}
|
|
22402
22402
|
function DZ(e) {
|
|
@@ -22430,7 +22430,7 @@ var I4 = {
|
|
|
22430
22430
|
if (a.parentNode)
|
|
22431
22431
|
if (c[1].forEach(function(i) {
|
|
22432
22432
|
a.parentNode.insertBefore(v$(i), a);
|
|
22433
|
-
}), a.getAttribute(e3) === null &&
|
|
22433
|
+
}), a.getAttribute(e3) === null && Q.keepOriginalSource) {
|
|
22434
22434
|
var t = L1.createComment(OZ(a));
|
|
22435
22435
|
a.parentNode.replaceChild(t, a);
|
|
22436
22436
|
} else
|
|
@@ -22438,12 +22438,12 @@ var I4 = {
|
|
|
22438
22438
|
},
|
|
22439
22439
|
nest: function(c) {
|
|
22440
22440
|
var a = c[0], t = c[1];
|
|
22441
|
-
if (~vi(a).indexOf(
|
|
22441
|
+
if (~vi(a).indexOf(Q.replacementClass))
|
|
22442
22442
|
return I4.replace(c);
|
|
22443
|
-
var i = new RegExp("".concat(
|
|
22443
|
+
var i = new RegExp("".concat(Q.cssPrefix, "-.*"));
|
|
22444
22444
|
if (delete t[0].attributes.id, t[0].attributes.class) {
|
|
22445
22445
|
var n = t[0].attributes.class.split(" ").reduce(function(l, r) {
|
|
22446
|
-
return r ===
|
|
22446
|
+
return r === Q.replacementClass || r.match(i) ? l.toSvg.push(r) : l.toNode.push(r), l;
|
|
22447
22447
|
}, {
|
|
22448
22448
|
toNode: [],
|
|
22449
22449
|
toSvg: []
|
|
@@ -22466,7 +22466,7 @@ function p$(e, c) {
|
|
|
22466
22466
|
a();
|
|
22467
22467
|
else {
|
|
22468
22468
|
var t = $n;
|
|
22469
|
-
|
|
22469
|
+
Q.mutateApproach === jJ && (t = D2.requestAnimationFrame || $n), t(function() {
|
|
22470
22470
|
var i = EZ(), n = Hi.begin("mutate");
|
|
22471
22471
|
e.map(i), n(), a();
|
|
22472
22472
|
});
|
|
@@ -22481,13 +22481,13 @@ function j8() {
|
|
|
22481
22481
|
}
|
|
22482
22482
|
var W4 = null;
|
|
22483
22483
|
function Un(e) {
|
|
22484
|
-
if (In &&
|
|
22484
|
+
if (In && Q.observeMutations) {
|
|
22485
22485
|
var c = e.treeCallback, a = c === void 0 ? T4 : c, t = e.nodeCallback, i = t === void 0 ? T4 : t, n = e.pseudoElementsCallback, s = n === void 0 ? T4 : n, l = e.observeMutationsRoot, r = l === void 0 ? L1 : l;
|
|
22486
22486
|
W4 = new In(function(o) {
|
|
22487
22487
|
if (!gi) {
|
|
22488
22488
|
var m = P2();
|
|
22489
22489
|
b3(o).forEach(function(u) {
|
|
22490
|
-
if (u.type === "childList" && u.addedNodes.length > 0 && !qn(u.addedNodes[0]) && (
|
|
22490
|
+
if (u.type === "childList" && u.addedNodes.length > 0 && !qn(u.addedNodes[0]) && (Q.searchPseudoElements && s(u.target), a(u.target)), u.type === "attributes" && u.target.parentNode && Q.searchPseudoElements && s(u.target.parentNode), u.type === "attributes" && qn(u.target) && ~ZJ.indexOf(u.attributeName))
|
|
22491
22491
|
if (u.attributeName === "class" && TZ(u.target)) {
|
|
22492
22492
|
var v = c8(vi(u.target)), p = v.prefix, H = v.iconName;
|
|
22493
22493
|
u.target.setAttribute(ui, p || m), H && u.target.setAttribute(mi, H);
|
|
@@ -22515,13 +22515,13 @@ function FZ(e) {
|
|
|
22515
22515
|
}
|
|
22516
22516
|
function RZ(e) {
|
|
22517
22517
|
var c = e.getAttribute("data-prefix"), a = e.getAttribute("data-icon"), t = e.innerText !== void 0 ? e.innerText.trim() : "", i = c8(vi(e));
|
|
22518
|
-
return i.prefix || (i.prefix = P2()), c && a && (i.prefix = c, i.iconName = a), i.iconName && i.prefix || (i.prefix && t.length > 0 && (i.iconName = VZ(i.prefix, e.innerText) || zi(i.prefix, E8(e.innerText))), !i.iconName &&
|
|
22518
|
+
return i.prefix || (i.prefix = P2()), c && a && (i.prefix = c, i.iconName = a), i.iconName && i.prefix || (i.prefix && t.length > 0 && (i.iconName = VZ(i.prefix, e.innerText) || zi(i.prefix, E8(e.innerText))), !i.iconName && Q.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (i.iconName = e.firstChild.data)), i;
|
|
22519
22519
|
}
|
|
22520
22520
|
function jZ(e) {
|
|
22521
22521
|
var c = b3(e.attributes).reduce(function(i, n) {
|
|
22522
22522
|
return i.name !== "class" && i.name !== "style" && (i[n.name] = n.value), i;
|
|
22523
22523
|
}, {}), a = e.getAttribute("title"), t = e.getAttribute("data-fa-title-id");
|
|
22524
|
-
return
|
|
22524
|
+
return Q.autoA11y && (a ? c["aria-labelledby"] = "".concat(Q.replacementClass, "-title-").concat(t || Q3()) : (c["aria-hidden"] = "true", c.focusable = "false")), c;
|
|
22525
22525
|
}
|
|
22526
22526
|
function qZ() {
|
|
22527
22527
|
return {
|
|
@@ -22570,7 +22570,7 @@ function Wn(e) {
|
|
|
22570
22570
|
}
|
|
22571
22571
|
var $Z = n2.styles;
|
|
22572
22572
|
function z$(e) {
|
|
22573
|
-
var c =
|
|
22573
|
+
var c = Q.autoReplaceSvg === "nest" ? Wn(e, {
|
|
22574
22574
|
styleParser: !1
|
|
22575
22575
|
}) : Wn(e);
|
|
22576
22576
|
return ~c.extra.classes.indexOf(Xq) ? b2("generateLayersText", e, c) : b2("generateSvgReplacementMutation", e, c);
|
|
@@ -22590,7 +22590,7 @@ function Gn(e) {
|
|
|
22590
22590
|
return a.add("".concat(En, "-").concat(u));
|
|
22591
22591
|
}, i = function(u) {
|
|
22592
22592
|
return a.remove("".concat(En, "-").concat(u));
|
|
22593
|
-
}, n =
|
|
22593
|
+
}, n = Q.autoFetchSvg ? O2 : di.map(function(m) {
|
|
22594
22594
|
return "fa-".concat(m);
|
|
22595
22595
|
}).concat(Object.keys($Z));
|
|
22596
22596
|
n.includes("fa") || n.push("fa");
|
|
@@ -22644,14 +22644,14 @@ function WZ(e) {
|
|
|
22644
22644
|
var GZ = function(c) {
|
|
22645
22645
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, i = t === void 0 ? u2 : t, n = a.symbol, s = n === void 0 ? !1 : n, l = a.mask, r = l === void 0 ? null : l, o = a.maskId, m = o === void 0 ? null : o, u = a.title, v = u === void 0 ? null : u, p = a.titleId, H = p === void 0 ? null : p, C = a.classes, b = C === void 0 ? [] : C, _ = a.attributes, g = _ === void 0 ? {} : _, z = a.styles, L = z === void 0 ? {} : z;
|
|
22646
22646
|
if (c) {
|
|
22647
|
-
var
|
|
22647
|
+
var y = c.prefix, A = c.iconName, k = c.icon;
|
|
22648
22648
|
return a8(W({
|
|
22649
22649
|
type: "icon"
|
|
22650
22650
|
}, c), function() {
|
|
22651
22651
|
return c3("beforeDOMElementCreation", {
|
|
22652
22652
|
iconDefinition: c,
|
|
22653
22653
|
params: a
|
|
22654
|
-
}),
|
|
22654
|
+
}), Q.autoA11y && (v ? g["aria-labelledby"] = "".concat(Q.replacementClass, "-title-").concat(H || Q3()) : (g["aria-hidden"] = "true", g.focusable = "false")), Mi({
|
|
22655
22655
|
icons: {
|
|
22656
22656
|
main: B8(k),
|
|
22657
22657
|
mask: r ? B8(r.icon) : {
|
|
@@ -22661,8 +22661,8 @@ var GZ = function(c) {
|
|
|
22661
22661
|
icon: {}
|
|
22662
22662
|
}
|
|
22663
22663
|
},
|
|
22664
|
-
prefix:
|
|
22665
|
-
iconName:
|
|
22664
|
+
prefix: y,
|
|
22665
|
+
iconName: A,
|
|
22666
22666
|
transform: W(W({}, u2), i),
|
|
22667
22667
|
symbol: s,
|
|
22668
22668
|
title: v,
|
|
@@ -22756,7 +22756,7 @@ var GZ = function(c) {
|
|
|
22756
22756
|
}), [{
|
|
22757
22757
|
tag: "span",
|
|
22758
22758
|
attributes: {
|
|
22759
|
-
class: ["".concat(
|
|
22759
|
+
class: ["".concat(Q.cssPrefix, "-layers")].concat(p4(n)).join(" ")
|
|
22760
22760
|
},
|
|
22761
22761
|
children: s
|
|
22762
22762
|
}];
|
|
@@ -22782,7 +22782,7 @@ var GZ = function(c) {
|
|
|
22782
22782
|
extra: {
|
|
22783
22783
|
attributes: o,
|
|
22784
22784
|
styles: u,
|
|
22785
|
-
classes: ["".concat(
|
|
22785
|
+
classes: ["".concat(Q.cssPrefix, "-layers-counter")].concat(p4(l))
|
|
22786
22786
|
}
|
|
22787
22787
|
});
|
|
22788
22788
|
});
|
|
@@ -22808,7 +22808,7 @@ var GZ = function(c) {
|
|
|
22808
22808
|
extra: {
|
|
22809
22809
|
attributes: u,
|
|
22810
22810
|
styles: p,
|
|
22811
|
-
classes: ["".concat(
|
|
22811
|
+
classes: ["".concat(Q.cssPrefix, "-layers-text")].concat(p4(o))
|
|
22812
22812
|
}
|
|
22813
22813
|
});
|
|
22814
22814
|
});
|
|
@@ -22822,7 +22822,7 @@ var GZ = function(c) {
|
|
|
22822
22822
|
var o = parseInt(getComputedStyle(a).fontSize, 10), m = a.getBoundingClientRect();
|
|
22823
22823
|
l = m.width / o, r = m.height / o;
|
|
22824
22824
|
}
|
|
22825
|
-
return
|
|
22825
|
+
return Q.autoA11y && !i && (s.attributes["aria-hidden"] = "true"), Promise.resolve([a, Rn({
|
|
22826
22826
|
content: a.innerHTML,
|
|
22827
22827
|
width: l,
|
|
22828
22828
|
height: r,
|
|
@@ -22859,20 +22859,20 @@ function Zn(e, c) {
|
|
|
22859
22859
|
}
|
|
22860
22860
|
if (g && !b && (!s || s.getAttribute(ui) !== p || s.getAttribute(mi) !== z)) {
|
|
22861
22861
|
e.setAttribute(a, z), s && e.removeChild(s);
|
|
22862
|
-
var
|
|
22863
|
-
|
|
22864
|
-
var
|
|
22862
|
+
var y = qZ(), A = y.extra;
|
|
22863
|
+
A.attributes[I8] = c, F8(g, p).then(function(k) {
|
|
22864
|
+
var S = Mi(W(W({}, y), {}, {
|
|
22865
22865
|
icons: {
|
|
22866
22866
|
main: k,
|
|
22867
22867
|
mask: Vi()
|
|
22868
22868
|
},
|
|
22869
22869
|
prefix: p,
|
|
22870
22870
|
iconName: z,
|
|
22871
|
-
extra:
|
|
22871
|
+
extra: A,
|
|
22872
22872
|
watchable: !0
|
|
22873
|
-
})),
|
|
22874
|
-
c === "::before" ? e.insertBefore(
|
|
22875
|
-
return z4(
|
|
22873
|
+
})), x = L1.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
22874
|
+
c === "::before" ? e.insertBefore(x, e.firstChild) : e.appendChild(x), x.outerHTML = S.map(function(B) {
|
|
22875
|
+
return z4(B);
|
|
22876
22876
|
}).join(`
|
|
22877
22877
|
`), e.removeAttribute(a), t();
|
|
22878
22878
|
}).catch(i);
|
|
@@ -22910,7 +22910,7 @@ var aY = {
|
|
|
22910
22910
|
provides: function(c) {
|
|
22911
22911
|
c.pseudoElements2svg = function(a) {
|
|
22912
22912
|
var t = a.node, i = t === void 0 ? L1 : t;
|
|
22913
|
-
|
|
22913
|
+
Q.searchPseudoElements && Yn(i);
|
|
22914
22914
|
};
|
|
22915
22915
|
}
|
|
22916
22916
|
}, Qn = !1, tY = {
|
|
@@ -23083,7 +23083,7 @@ var sY = {
|
|
|
23083
23083
|
maskContentUnits: "userSpaceOnUse"
|
|
23084
23084
|
}),
|
|
23085
23085
|
children: [H, _]
|
|
23086
|
-
},
|
|
23086
|
+
}, y = {
|
|
23087
23087
|
tag: "defs",
|
|
23088
23088
|
children: [{
|
|
23089
23089
|
tag: "clipPath",
|
|
@@ -23093,7 +23093,7 @@ var sY = {
|
|
|
23093
23093
|
children: nY(v)
|
|
23094
23094
|
}, L]
|
|
23095
23095
|
};
|
|
23096
|
-
return t.push(
|
|
23096
|
+
return t.push(y, {
|
|
23097
23097
|
tag: "rect",
|
|
23098
23098
|
attributes: W({
|
|
23099
23099
|
fill: "currentColor",
|
|
@@ -23324,7 +23324,7 @@ const uY = G({
|
|
|
23324
23324
|
"data-test": "btn-icon"
|
|
23325
23325
|
}, null, 8, ["icon"])) : I("", !0),
|
|
23326
23326
|
H1(i.$slots, "default", {}, () => [
|
|
23327
|
-
z1(
|
|
23327
|
+
z1(N(e.label), 1)
|
|
23328
23328
|
], !0),
|
|
23329
23329
|
e.iconRight ? (d(), K(s, {
|
|
23330
23330
|
key: 1,
|
|
@@ -23411,7 +23411,7 @@ const hY = /* @__PURE__ */ J(pY, [["__scopeId", "data-v-70d9cfd4"]]), zY = /* @_
|
|
|
23411
23411
|
"AVBullet--active": e.active,
|
|
23412
23412
|
"AVBullet--hover": e.hover
|
|
23413
23413
|
}])
|
|
23414
|
-
},
|
|
23414
|
+
}, N(e.value || "0"), 3)
|
|
23415
23415
|
], 2)) : (d(), K(t, {
|
|
23416
23416
|
key: 2,
|
|
23417
23417
|
icon: "fa-solid fa-circle",
|
|
@@ -23489,7 +23489,7 @@ const q8 = /* @__PURE__ */ J(zY, [["__scopeId", "data-v-5b7d0fcb"]]), VY = { cla
|
|
|
23489
23489
|
"data-test": "input-label"
|
|
23490
23490
|
}, [
|
|
23491
23491
|
f("span", null, [
|
|
23492
|
-
z1(
|
|
23492
|
+
z1(N(e.inputLabel) + " ", 1),
|
|
23493
23493
|
e.tooltipText ? G1((d(), K(r, {
|
|
23494
23494
|
key: 0,
|
|
23495
23495
|
icon: "circle-question",
|
|
@@ -23527,7 +23527,7 @@ const q8 = /* @__PURE__ */ J(zY, [["__scopeId", "data-v-5b7d0fcb"]]), VY = { cla
|
|
|
23527
23527
|
})
|
|
23528
23528
|
])) : I("", !0)
|
|
23529
23529
|
]),
|
|
23530
|
-
e.error && e.errorMessage ? (d(), h("p", LY,
|
|
23530
|
+
e.error && e.errorMessage ? (d(), h("p", LY, N(e.errorMessage), 1)) : I("", !0)
|
|
23531
23531
|
]);
|
|
23532
23532
|
};
|
|
23533
23533
|
}
|
|
@@ -23618,7 +23618,7 @@ const _Y = /* @__PURE__ */ J(AY, [["__scopeId", "data-v-6c6cbec3"]]), xY = { cla
|
|
|
23618
23618
|
"data-test": "input-label"
|
|
23619
23619
|
}, [
|
|
23620
23620
|
f("span", null, [
|
|
23621
|
-
z1(
|
|
23621
|
+
z1(N(e.inputLabel) + " ", 1),
|
|
23622
23622
|
e.tooltipText ? G1((d(), K(p, {
|
|
23623
23623
|
key: 0,
|
|
23624
23624
|
icon: "circle-question",
|
|
@@ -23699,7 +23699,7 @@ const _Y = /* @__PURE__ */ J(AY, [["__scopeId", "data-v-6c6cbec3"]]), xY = { cla
|
|
|
23699
23699
|
})
|
|
23700
23700
|
])) : I("", !0)
|
|
23701
23701
|
], 32),
|
|
23702
|
-
e.error && e.errorMessage ? (d(), h("p", wY,
|
|
23702
|
+
e.error && e.errorMessage ? (d(), h("p", wY, N(e.errorMessage), 1)) : I("", !0)
|
|
23703
23703
|
]);
|
|
23704
23704
|
};
|
|
23705
23705
|
}
|
|
@@ -23765,7 +23765,7 @@ const IY = /* @__PURE__ */ J(TY, [["__scopeId", "data-v-c69bbc44"]]), EY = { cla
|
|
|
23765
23765
|
"data-test": "input-label"
|
|
23766
23766
|
}, [
|
|
23767
23767
|
f("span", null, [
|
|
23768
|
-
z1(
|
|
23768
|
+
z1(N(e.inputLabel) + " ", 1),
|
|
23769
23769
|
e.tooltipText ? G1((d(), K(r, {
|
|
23770
23770
|
key: 0,
|
|
23771
23771
|
icon: "circle-question",
|
|
@@ -23809,7 +23809,7 @@ const IY = /* @__PURE__ */ J(TY, [["__scopeId", "data-v-c69bbc44"]]), EY = { cla
|
|
|
23809
23809
|
])
|
|
23810
23810
|
])
|
|
23811
23811
|
]),
|
|
23812
|
-
e.error && e.errorMessage ? (d(), h("p", RY,
|
|
23812
|
+
e.error && e.errorMessage ? (d(), h("p", RY, N(e.errorMessage), 1)) : I("", !0)
|
|
23813
23813
|
]);
|
|
23814
23814
|
};
|
|
23815
23815
|
}
|
|
@@ -23877,7 +23877,7 @@ const qY = /* @__PURE__ */ J(jY, [["__scopeId", "data-v-b1c76306"]]), $Y = { cla
|
|
|
23877
23877
|
"data-test": "input-label"
|
|
23878
23878
|
}, [
|
|
23879
23879
|
f("span", null, [
|
|
23880
|
-
z1(
|
|
23880
|
+
z1(N(e.inputLabel) + " ", 1),
|
|
23881
23881
|
e.tooltipText ? G1((d(), K(s, {
|
|
23882
23882
|
key: 0,
|
|
23883
23883
|
icon: "circle-question",
|
|
@@ -23914,7 +23914,7 @@ const qY = /* @__PURE__ */ J(jY, [["__scopeId", "data-v-b1c76306"]]), $Y = { cla
|
|
|
23914
23914
|
max: e.max
|
|
23915
23915
|
}, null, 46, JY)
|
|
23916
23916
|
]),
|
|
23917
|
-
e.error && e.errorMessage ? (d(), h("p", ZY,
|
|
23917
|
+
e.error && e.errorMessage ? (d(), h("p", ZY, N(e.errorMessage), 1)) : I("", !0)
|
|
23918
23918
|
]);
|
|
23919
23919
|
};
|
|
23920
23920
|
}
|
|
@@ -23985,7 +23985,7 @@ const QY = /* @__PURE__ */ J(YY, [["__scopeId", "data-v-d438432a"]]), KY = { cla
|
|
|
23985
23985
|
"data-test": "input-label"
|
|
23986
23986
|
}, [
|
|
23987
23987
|
f("span", null, [
|
|
23988
|
-
z1(
|
|
23988
|
+
z1(N(e.inputLabel) + " ", 1),
|
|
23989
23989
|
e.tooltipText ? G1((d(), K(s, {
|
|
23990
23990
|
key: 0,
|
|
23991
23991
|
icon: "circle-question",
|
|
@@ -24030,7 +24030,7 @@ const QY = /* @__PURE__ */ J(YY, [["__scopeId", "data-v-d438432a"]]), KY = { cla
|
|
|
24030
24030
|
})
|
|
24031
24031
|
])) : I("", !0)
|
|
24032
24032
|
]),
|
|
24033
|
-
e.error && e.errorMessage ? (d(), h("p", tQ,
|
|
24033
|
+
e.error && e.errorMessage ? (d(), h("p", tQ, N(e.errorMessage), 1)) : I("", !0)
|
|
24034
24034
|
]);
|
|
24035
24035
|
};
|
|
24036
24036
|
}
|
|
@@ -24055,7 +24055,7 @@ const nQ = /* @__PURE__ */ J(iQ, [["__scopeId", "data-v-c9875ea2"]]), sQ = /* @_
|
|
|
24055
24055
|
`;
|
|
24056
24056
|
return (t, i) => (d(), h("span", {
|
|
24057
24057
|
class: $(a)
|
|
24058
|
-
},
|
|
24058
|
+
}, N(e.value), 1));
|
|
24059
24059
|
}
|
|
24060
24060
|
});
|
|
24061
24061
|
const lQ = /* @__PURE__ */ J(sQ, [["__scopeId", "data-v-ee7ab830"]]), rQ = /* @__PURE__ */ G({
|
|
@@ -24064,7 +24064,13 @@ const lQ = /* @__PURE__ */ J(sQ, [["__scopeId", "data-v-ee7ab830"]]), rQ = /* @_
|
|
|
24064
24064
|
variant: {
|
|
24065
24065
|
type: String,
|
|
24066
24066
|
default: "default",
|
|
24067
|
-
validate: (e) => [
|
|
24067
|
+
validate: (e) => [
|
|
24068
|
+
"rounded",
|
|
24069
|
+
"default",
|
|
24070
|
+
"jumbotron",
|
|
24071
|
+
"jumbotron-electa",
|
|
24072
|
+
"rounded-electa"
|
|
24073
|
+
].includes(e)
|
|
24068
24074
|
}
|
|
24069
24075
|
},
|
|
24070
24076
|
setup(e) {
|
|
@@ -24075,7 +24081,7 @@ const lQ = /* @__PURE__ */ J(sQ, [["__scopeId", "data-v-ee7ab830"]]), rQ = /* @_
|
|
|
24075
24081
|
], 2));
|
|
24076
24082
|
}
|
|
24077
24083
|
});
|
|
24078
|
-
const oQ = /* @__PURE__ */ J(rQ, [["__scopeId", "data-v-
|
|
24084
|
+
const oQ = /* @__PURE__ */ J(rQ, [["__scopeId", "data-v-79187531"]]), fQ = /* @__PURE__ */ G({
|
|
24079
24085
|
__name: "AVRoundButton",
|
|
24080
24086
|
props: {
|
|
24081
24087
|
icon: {
|
|
@@ -24192,7 +24198,7 @@ const uQ = /* @__PURE__ */ J(fQ, [["__scopeId", "data-v-6caf6a51"]]), mQ = { cla
|
|
|
24192
24198
|
"data-test": "input-label"
|
|
24193
24199
|
}, [
|
|
24194
24200
|
f("span", null, [
|
|
24195
|
-
z1(
|
|
24201
|
+
z1(N(e.inputLabel) + " ", 1),
|
|
24196
24202
|
e.tooltipText ? G1((d(), K(u, {
|
|
24197
24203
|
key: 0,
|
|
24198
24204
|
icon: "circle-question",
|
|
@@ -24227,10 +24233,10 @@ const uQ = /* @__PURE__ */ J(fQ, [["__scopeId", "data-v-6caf6a51"]]), mQ = { cla
|
|
|
24227
24233
|
"data-test": "input-icon"
|
|
24228
24234
|
}, null, 8, ["icon"])
|
|
24229
24235
|
])) : I("", !0),
|
|
24230
|
-
s.value === void 0 ? (d(), h("span", hQ,
|
|
24236
|
+
s.value === void 0 ? (d(), h("span", hQ, N(e.placeholder), 1)) : (d(), h("span", {
|
|
24231
24237
|
key: 2,
|
|
24232
24238
|
class: "AVDropdown--selected-option",
|
|
24233
|
-
textContent:
|
|
24239
|
+
textContent: N(s.value.label)
|
|
24234
24240
|
}, null, 8, zQ)),
|
|
24235
24241
|
f("span", VQ, [
|
|
24236
24242
|
T(u, {
|
|
@@ -24252,7 +24258,7 @@ const uQ = /* @__PURE__ */ J(fQ, [["__scopeId", "data-v-6caf6a51"]]), mQ = { cla
|
|
|
24252
24258
|
_: 1
|
|
24253
24259
|
})
|
|
24254
24260
|
]),
|
|
24255
|
-
e.error && e.errorMessage ? (d(), h("p", MQ,
|
|
24261
|
+
e.error && e.errorMessage ? (d(), h("p", MQ, N(e.errorMessage), 1)) : I("", !0)
|
|
24256
24262
|
]);
|
|
24257
24263
|
};
|
|
24258
24264
|
}
|
|
@@ -24291,7 +24297,7 @@ const LQ = /* @__PURE__ */ J(bQ, [["__scopeId", "data-v-e2058f66"]]), AQ = /* @_
|
|
|
24291
24297
|
return (i, n) => (d(), h("a", {
|
|
24292
24298
|
class: "AVDropdownItem",
|
|
24293
24299
|
onClick: t
|
|
24294
|
-
},
|
|
24300
|
+
}, N(e.optionLabel), 1));
|
|
24295
24301
|
}
|
|
24296
24302
|
});
|
|
24297
24303
|
const _Q = /* @__PURE__ */ J(AQ, [["__scopeId", "data-v-2ca0bff3"]]), xQ = {
|
|
@@ -24374,7 +24380,7 @@ const _Q = /* @__PURE__ */ J(AQ, [["__scopeId", "data-v-2ca0bff3"]]), xQ = {
|
|
|
24374
24380
|
"data-test": "alert-icon"
|
|
24375
24381
|
}, null, 8, ["icon"])
|
|
24376
24382
|
])),
|
|
24377
|
-
f("span", kQ,
|
|
24383
|
+
f("span", kQ, N(e.title !== "" ? e.title : n[e.type]), 1)
|
|
24378
24384
|
]),
|
|
24379
24385
|
e.disableDismiss ? I("", !0) : (d(), h("button", {
|
|
24380
24386
|
key: 0,
|
|
@@ -24469,8 +24475,8 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24469
24475
|
default: !1
|
|
24470
24476
|
},
|
|
24471
24477
|
customOpenMethod: {
|
|
24472
|
-
// Rustee app requires to use its proper api dialog method
|
|
24473
|
-
type:
|
|
24478
|
+
// The Rustee app requires to use its proper api dialog method so it can access files on any device
|
|
24479
|
+
type: Array,
|
|
24474
24480
|
default: null
|
|
24475
24481
|
}
|
|
24476
24482
|
},
|
|
@@ -24478,19 +24484,30 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24478
24484
|
setup(e, { emit: c }) {
|
|
24479
24485
|
const a = D1("i18n"), { t } = a.global, i = e, n = i1(!1), s = i1(null), l = i1([]);
|
|
24480
24486
|
A1(() => {
|
|
24481
|
-
i.locale && p1(i.locale), i.value && (l.value = i.value), i.customOpenMethod !== null
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
|
|
24493
|
-
|
|
24487
|
+
if (i.locale && p1(i.locale), i.value && (l.value = i.value), i.customOpenMethod !== null) {
|
|
24488
|
+
const [A, k] = i.customOpenMethod;
|
|
24489
|
+
s.value.onclick = async (S) => {
|
|
24490
|
+
S.preventDefault();
|
|
24491
|
+
const x = await A({
|
|
24492
|
+
multiple: !1,
|
|
24493
|
+
directory: !1,
|
|
24494
|
+
filters: [
|
|
24495
|
+
{
|
|
24496
|
+
name: "Trustee key",
|
|
24497
|
+
extensions: ["trustee-key"]
|
|
24498
|
+
}
|
|
24499
|
+
]
|
|
24500
|
+
});
|
|
24501
|
+
if (x !== null) {
|
|
24502
|
+
const B = x.split("/").pop(), Z = JSON.stringify(
|
|
24503
|
+
await k("read_local_file_content", {
|
|
24504
|
+
filePath: x
|
|
24505
|
+
})
|
|
24506
|
+
), O = new Blob([Z], { type: "plain/text" }), e1 = new File([O], B);
|
|
24507
|
+
l.value.push(e1), r("update", l.value);
|
|
24508
|
+
}
|
|
24509
|
+
};
|
|
24510
|
+
}
|
|
24494
24511
|
}), l1(
|
|
24495
24512
|
() => i.locale,
|
|
24496
24513
|
() => {
|
|
@@ -24505,24 +24522,36 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24505
24522
|
}, u = () => {
|
|
24506
24523
|
n.value = !1;
|
|
24507
24524
|
}, v = (A) => {
|
|
24508
|
-
const
|
|
24509
|
-
for (let
|
|
24510
|
-
const
|
|
24525
|
+
const k = Array.from(A), S = new DataTransfer();
|
|
24526
|
+
for (let x of k) {
|
|
24527
|
+
const B = x.name.split(".").pop();
|
|
24511
24528
|
if (C.value.includes(
|
|
24512
|
-
`.${
|
|
24529
|
+
`.${B.toLowerCase()}`
|
|
24513
24530
|
)) {
|
|
24514
|
-
const
|
|
24515
|
-
type:
|
|
24516
|
-
lastModified:
|
|
24531
|
+
const O = new File([x], x.name, {
|
|
24532
|
+
type: x.type,
|
|
24533
|
+
lastModified: x.lastModified
|
|
24517
24534
|
});
|
|
24518
|
-
|
|
24535
|
+
S.items.add(O);
|
|
24519
24536
|
} else
|
|
24520
|
-
r("fileFormatNotAccepted",
|
|
24537
|
+
r("fileFormatNotAccepted", x.name);
|
|
24521
24538
|
}
|
|
24522
|
-
return
|
|
24539
|
+
return S.files;
|
|
24523
24540
|
}, p = E(() => i.accept.split(",")), H = E(() => i.accept.split(",").join(", ")), C = E(
|
|
24524
24541
|
() => p.value.map((A) => A.toLocaleLowerCase())
|
|
24525
|
-
), b = (A) =>
|
|
24542
|
+
), b = (A) => {
|
|
24543
|
+
const k = Math.round(A / 1024), S = Math.round(k / 1024), x = Math.round(S / 1024);
|
|
24544
|
+
switch (!0) {
|
|
24545
|
+
case !!x:
|
|
24546
|
+
return `${x}Gb`;
|
|
24547
|
+
case !!S:
|
|
24548
|
+
return `${S}Mb`;
|
|
24549
|
+
case !!k:
|
|
24550
|
+
return `${k}Kb`;
|
|
24551
|
+
default:
|
|
24552
|
+
return `${A}b`;
|
|
24553
|
+
}
|
|
24554
|
+
}, _ = (A) => A.split("/").pop(), g = (A) => {
|
|
24526
24555
|
if (A.preventDefault(), !i.disabled) {
|
|
24527
24556
|
if (s.value.files = v(Array.from(A.dataTransfer.files)), !s.value.files.length) {
|
|
24528
24557
|
n.value = !1;
|
|
@@ -24530,18 +24559,18 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24530
24559
|
}
|
|
24531
24560
|
l.value = i.multiple ? [...s.value.files] : [s.value.files[0]], r("update", l.value), n.value = !1;
|
|
24532
24561
|
}
|
|
24533
|
-
}, g = (A) => {
|
|
24534
|
-
l.value.splice(A, 1), r("update", l.value);
|
|
24535
24562
|
}, z = (A) => {
|
|
24536
|
-
|
|
24537
|
-
return setTimeout(() => {
|
|
24538
|
-
URL.revokeObjectURL(y);
|
|
24539
|
-
}, 1e3), y;
|
|
24563
|
+
l.value.splice(A, 1), r("update", l.value);
|
|
24540
24564
|
}, L = (A) => {
|
|
24565
|
+
const k = URL.createObjectURL(A);
|
|
24566
|
+
return setTimeout(() => {
|
|
24567
|
+
URL.revokeObjectURL(k);
|
|
24568
|
+
}, 1e3), k;
|
|
24569
|
+
}, y = (A) => {
|
|
24541
24570
|
r("download", A);
|
|
24542
24571
|
};
|
|
24543
|
-
return (A,
|
|
24544
|
-
const
|
|
24572
|
+
return (A, k) => {
|
|
24573
|
+
const S = D("AVIcon"), x = B2("tooltip");
|
|
24545
24574
|
return d(), h("div", TQ, [
|
|
24546
24575
|
e.disableLabel ? I("", !0) : (d(), h("label", {
|
|
24547
24576
|
key: 0,
|
|
@@ -24550,13 +24579,13 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24550
24579
|
"data-test": "input-label"
|
|
24551
24580
|
}, [
|
|
24552
24581
|
f("span", null, [
|
|
24553
|
-
z1(
|
|
24554
|
-
e.tooltipText ? G1((d(), K(
|
|
24582
|
+
z1(N(e.inputLabel) + " ", 1),
|
|
24583
|
+
e.tooltipText ? G1((d(), K(S, {
|
|
24555
24584
|
key: 0,
|
|
24556
24585
|
icon: "circle-question",
|
|
24557
24586
|
class: "AVFileInput--tooltip-icon"
|
|
24558
24587
|
}, null, 512)), [
|
|
24559
|
-
[
|
|
24588
|
+
[x, e.tooltipText]
|
|
24560
24589
|
]) : I("", !0)
|
|
24561
24590
|
])
|
|
24562
24591
|
], 8, IQ)),
|
|
@@ -24568,7 +24597,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24568
24597
|
}]),
|
|
24569
24598
|
onDragover: m,
|
|
24570
24599
|
onDragleave: u,
|
|
24571
|
-
onDrop:
|
|
24600
|
+
onDrop: g
|
|
24572
24601
|
}, [
|
|
24573
24602
|
f("input", {
|
|
24574
24603
|
type: "file",
|
|
@@ -24583,7 +24612,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24583
24612
|
disabled: e.disabled
|
|
24584
24613
|
}, null, 40, DQ),
|
|
24585
24614
|
f("div", PQ, [
|
|
24586
|
-
T(
|
|
24615
|
+
T(S, {
|
|
24587
24616
|
icon: "fa-solid fa-cloud-arrow-up",
|
|
24588
24617
|
class: "AVFileInput--input-icon",
|
|
24589
24618
|
"data-test": "input-icon"
|
|
@@ -24591,25 +24620,25 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24591
24620
|
]),
|
|
24592
24621
|
f("div", OQ, [
|
|
24593
24622
|
n.value ? (d(), h("div", BQ, [
|
|
24594
|
-
f("div", FQ,
|
|
24623
|
+
f("div", FQ, N(F(t)("js.components.AVFileInput.release")), 1)
|
|
24595
24624
|
])) : (d(), h("div", RQ, [
|
|
24596
|
-
f("div", jQ,
|
|
24625
|
+
f("div", jQ, N(F(t)("js.components.AVFileInput.primary")), 1),
|
|
24597
24626
|
f("div", qQ, [
|
|
24598
|
-
z1(
|
|
24599
|
-
f("strong", null,
|
|
24600
|
-
z1(" " +
|
|
24627
|
+
z1(N(F(t)("js.components.AVFileInput.secondary.start")) + " ", 1),
|
|
24628
|
+
f("strong", null, N(F(t)("js.components.AVFileInput.secondary.strong")), 1),
|
|
24629
|
+
z1(" " + N(F(t)("js.components.AVFileInput.secondary.end")), 1)
|
|
24601
24630
|
])
|
|
24602
24631
|
]))
|
|
24603
24632
|
])
|
|
24604
24633
|
], 42, EQ),
|
|
24605
24634
|
e.disableAcceptedFormats ? I("", !0) : (d(), h("p", $Q, [
|
|
24606
|
-
z1(
|
|
24607
|
-
f("em", UQ,
|
|
24635
|
+
z1(N(F(t)("js.components.AVFileInput.acceptedFormats")) + " ", 1),
|
|
24636
|
+
f("em", UQ, N(H.value), 1)
|
|
24608
24637
|
])),
|
|
24609
24638
|
l.value.length ? (d(), h("div", WQ, [
|
|
24610
|
-
f("p", GQ,
|
|
24611
|
-
(d(!0), h(a1, null, g1(l.value, (
|
|
24612
|
-
key:
|
|
24639
|
+
f("p", GQ, N(F(t)("js.components.AVFileInput.uploading")), 1),
|
|
24640
|
+
(d(!0), h(a1, null, g1(l.value, (B) => (d(), h("div", {
|
|
24641
|
+
key: B.name,
|
|
24613
24642
|
class: $(["AVFileInput--preview-card", { error: e.error }])
|
|
24614
24643
|
}, [
|
|
24615
24644
|
f("div", JQ, [
|
|
@@ -24617,8 +24646,8 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24617
24646
|
e.showPreview ? (d(), h("img", {
|
|
24618
24647
|
key: 0,
|
|
24619
24648
|
class: "AVFileInput--preview-img",
|
|
24620
|
-
src:
|
|
24621
|
-
}, null, 8, YQ)) : (d(), K(
|
|
24649
|
+
src: L(B)
|
|
24650
|
+
}, null, 8, YQ)) : (d(), K(S, {
|
|
24622
24651
|
key: 1,
|
|
24623
24652
|
icon: "fa-solid fa-file",
|
|
24624
24653
|
class: "AVTextInput--preview-icon",
|
|
@@ -24626,18 +24655,18 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24626
24655
|
}))
|
|
24627
24656
|
]),
|
|
24628
24657
|
f("p", QQ, [
|
|
24629
|
-
z1(
|
|
24630
|
-
f("em", null,
|
|
24658
|
+
z1(N(B.name) + " ", 1),
|
|
24659
|
+
f("em", null, N(b(B.size)), 1)
|
|
24631
24660
|
])
|
|
24632
24661
|
]),
|
|
24633
24662
|
e.disabled ? I("", !0) : (d(), h("button", {
|
|
24634
24663
|
key: 0,
|
|
24635
24664
|
class: "AVTextInput--delete-btn",
|
|
24636
24665
|
type: "button",
|
|
24637
|
-
onClick: (
|
|
24666
|
+
onClick: (Z) => z(l.value.indexOf(B)),
|
|
24638
24667
|
title: "Remove file"
|
|
24639
24668
|
}, [
|
|
24640
|
-
T(
|
|
24669
|
+
T(S, {
|
|
24641
24670
|
icon: "fa-solid fa-trash",
|
|
24642
24671
|
class: "AVTextInput--delete-icon",
|
|
24643
24672
|
"data-test": "file-preview-icon"
|
|
@@ -24646,33 +24675,33 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24646
24675
|
], 2))), 128))
|
|
24647
24676
|
])) : I("", !0),
|
|
24648
24677
|
e.currentValue.length ? (d(), h("div", XQ, [
|
|
24649
|
-
f("p", eK,
|
|
24650
|
-
(d(!0), h(a1, null, g1(e.currentValue, (
|
|
24651
|
-
key: `image-${
|
|
24678
|
+
f("p", eK, N(F(t)("js.components.AVFileInput.current")), 1),
|
|
24679
|
+
(d(!0), h(a1, null, g1(e.currentValue, (B) => (d(), h("div", {
|
|
24680
|
+
key: `image-${B}`
|
|
24652
24681
|
}, [
|
|
24653
24682
|
e.showPreview ? (d(), h("img", {
|
|
24654
24683
|
key: 0,
|
|
24655
24684
|
class: "AVFileInput--current-img",
|
|
24656
|
-
src:
|
|
24657
|
-
alt:
|
|
24685
|
+
src: B,
|
|
24686
|
+
alt: F(t)("js.components.AVFileInput.alt_preview")
|
|
24658
24687
|
}, null, 8, cK)) : (d(), h("div", aK, [
|
|
24659
24688
|
f("div", tK, [
|
|
24660
24689
|
f("div", iK, [
|
|
24661
|
-
T(
|
|
24690
|
+
T(S, {
|
|
24662
24691
|
icon: "fa-solid fa-file",
|
|
24663
24692
|
class: "AVTextInput--preview-icon",
|
|
24664
24693
|
"data-test": "file-preview-icon"
|
|
24665
24694
|
})
|
|
24666
24695
|
]),
|
|
24667
|
-
f("p", nK,
|
|
24696
|
+
f("p", nK, N(_(B)), 1)
|
|
24668
24697
|
]),
|
|
24669
24698
|
f("button", {
|
|
24670
24699
|
class: "AVTextInput--delete-btn",
|
|
24671
24700
|
type: "button",
|
|
24672
24701
|
title: "Download file",
|
|
24673
|
-
onClick: (
|
|
24702
|
+
onClick: (Z) => y(B)
|
|
24674
24703
|
}, [
|
|
24675
|
-
T(
|
|
24704
|
+
T(S, {
|
|
24676
24705
|
icon: "fa-solid fa-download",
|
|
24677
24706
|
class: "AVTextInput--download-icon",
|
|
24678
24707
|
"data-test": "file-download-icon"
|
|
@@ -24681,12 +24710,12 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24681
24710
|
]))
|
|
24682
24711
|
]))), 128))
|
|
24683
24712
|
])) : I("", !0),
|
|
24684
|
-
e.error && e.errorMessage ? (d(), h("p", lK,
|
|
24713
|
+
e.error && e.errorMessage ? (d(), h("p", lK, N(e.errorMessage), 1)) : I("", !0)
|
|
24685
24714
|
]);
|
|
24686
24715
|
};
|
|
24687
24716
|
}
|
|
24688
24717
|
});
|
|
24689
|
-
const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-
|
|
24718
|
+
const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-d0e51bd2"]]), fK = (e) => (e2("data-v-065c2914"), e = e(), c2(), e), uK = ["for"], mK = ["id", "checked", "disabled"], dK = /* @__PURE__ */ fK(() => /* @__PURE__ */ f("span", { class: "AVRadio--mark" }, null, -1)), vK = /* @__PURE__ */ G({
|
|
24690
24719
|
__name: "AVRadio",
|
|
24691
24720
|
props: {
|
|
24692
24721
|
id: {
|
|
@@ -24734,7 +24763,7 @@ const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-4c18ee69"]]), fK = (e) =
|
|
|
24734
24763
|
disabled: e.disabled
|
|
24735
24764
|
}, null, 40, mK),
|
|
24736
24765
|
dK,
|
|
24737
|
-
z1(" " +
|
|
24766
|
+
z1(" " + N(e.value), 1)
|
|
24738
24767
|
], 10, uK));
|
|
24739
24768
|
}
|
|
24740
24769
|
});
|
|
@@ -24806,7 +24835,7 @@ const pK = /* @__PURE__ */ J(vK, [["__scopeId", "data-v-065c2914"]]), hK = ["hre
|
|
|
24806
24835
|
target: e.target,
|
|
24807
24836
|
class: $(`AVLink AVLink--${e.variant}`)
|
|
24808
24837
|
}, [
|
|
24809
|
-
f("span", null,
|
|
24838
|
+
f("span", null, N(e.label), 1),
|
|
24810
24839
|
e.disableIcon ? I("", !0) : (d(), K(t, {
|
|
24811
24840
|
key: 0,
|
|
24812
24841
|
icon: "fa-solid fa-arrow-up-right-from-square",
|
|
@@ -24880,7 +24909,7 @@ const VK = /* @__PURE__ */ J(zK, [["__scopeId", "data-v-999075bc"]]), MK = ["hre
|
|
|
24880
24909
|
icon: `fa-solid fa-${e.icon}`,
|
|
24881
24910
|
class: "AVNavbarItem--icon"
|
|
24882
24911
|
}, null, 8, ["icon"])),
|
|
24883
|
-
f("span", HK,
|
|
24912
|
+
f("span", HK, N(e.label), 1)
|
|
24884
24913
|
], 14, MK)) : (d(), h("button", {
|
|
24885
24914
|
key: 1,
|
|
24886
24915
|
class: $(["AVNavbarItem", {
|
|
@@ -24896,7 +24925,7 @@ const VK = /* @__PURE__ */ J(zK, [["__scopeId", "data-v-999075bc"]]), MK = ["hre
|
|
|
24896
24925
|
icon: `fa-solid fa-${e.icon}`,
|
|
24897
24926
|
class: "AVNavbarItem--icon"
|
|
24898
24927
|
}, null, 8, ["icon"])),
|
|
24899
|
-
f("span", CK,
|
|
24928
|
+
f("span", CK, N(e.label), 1)
|
|
24900
24929
|
], 14, gK));
|
|
24901
24930
|
};
|
|
24902
24931
|
}
|
|
@@ -24972,14 +25001,14 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
|
|
|
24972
25001
|
"aria-label": e.label,
|
|
24973
25002
|
role: "button"
|
|
24974
25003
|
}, [
|
|
24975
|
-
T(
|
|
25004
|
+
T(F(q8), {
|
|
24976
25005
|
type: l.value,
|
|
24977
25006
|
active: e.active,
|
|
24978
25007
|
value: r.value,
|
|
24979
25008
|
hover: i.value,
|
|
24980
25009
|
"aria-hidden": "true"
|
|
24981
25010
|
}, null, 8, ["type", "active", "value", "hover"]),
|
|
24982
|
-
f("span", _K,
|
|
25011
|
+
f("span", _K, N(e.label), 1)
|
|
24983
25012
|
], 42, AK)) : (d(), h("button", {
|
|
24984
25013
|
key: 1,
|
|
24985
25014
|
class: $(["AVSidebarItem", {
|
|
@@ -24992,14 +25021,14 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
|
|
|
24992
25021
|
onMouseleave: o,
|
|
24993
25022
|
"aria-label": e.label
|
|
24994
25023
|
}, [
|
|
24995
|
-
T(
|
|
25024
|
+
T(F(q8), {
|
|
24996
25025
|
type: l.value,
|
|
24997
25026
|
active: e.active,
|
|
24998
25027
|
value: r.value,
|
|
24999
25028
|
hover: i.value,
|
|
25000
25029
|
"aria-hidden": "true"
|
|
25001
25030
|
}, null, 8, ["type", "active", "value", "hover"]),
|
|
25002
|
-
f("span", NK,
|
|
25031
|
+
f("span", NK, N(e.label), 1)
|
|
25003
25032
|
], 42, xK));
|
|
25004
25033
|
}
|
|
25005
25034
|
});
|
|
@@ -25056,7 +25085,7 @@ const kK = /* @__PURE__ */ J(yK, [["__scopeId", "data-v-3e891e66"]]), SK = { cla
|
|
|
25056
25085
|
return (c, a) => {
|
|
25057
25086
|
const t = D("AVIcon"), i = B2("tooltip");
|
|
25058
25087
|
return G1((d(), h("span", SK, [
|
|
25059
|
-
e.text ? (d(), h("span", wK,
|
|
25088
|
+
e.text ? (d(), h("span", wK, N(e.text), 1)) : H1(c.$slots, "text", { key: 1 }, void 0, !0),
|
|
25060
25089
|
e.icon ? (d(), K(t, {
|
|
25061
25090
|
key: 2,
|
|
25062
25091
|
icon: e.icon,
|
|
@@ -25198,7 +25227,7 @@ const RK = /* @__PURE__ */ J(FK, [["__scopeId", "data-v-e8fb623b"]]), jK = ["hre
|
|
|
25198
25227
|
icon: `fa-solid fa-${e.icon}`,
|
|
25199
25228
|
"data-test": "option-icon"
|
|
25200
25229
|
}, null, 8, ["icon"])) : I("", !0),
|
|
25201
|
-
z1(" " +
|
|
25230
|
+
z1(" " + N(e.optionLabel), 1)
|
|
25202
25231
|
], 10, jK);
|
|
25203
25232
|
};
|
|
25204
25233
|
}
|
|
@@ -25296,7 +25325,7 @@ const $K = /* @__PURE__ */ J(qK, [["__scopeId", "data-v-8513fa9b"]]), UK = ["dis
|
|
|
25296
25325
|
class: "AVAsyncButton--icon",
|
|
25297
25326
|
"data-test": "btn-icon"
|
|
25298
25327
|
}, null, 8, ["icon"])) : I("", !0),
|
|
25299
|
-
f("span", WK,
|
|
25328
|
+
f("span", WK, N(e.label), 1)
|
|
25300
25329
|
], !0)
|
|
25301
25330
|
], 10, UK);
|
|
25302
25331
|
};
|
|
@@ -25363,7 +25392,7 @@ const JK = /* @__PURE__ */ J(GK, [["__scopeId", "data-v-7439a7ec"]]), ZK = { cla
|
|
|
25363
25392
|
class: $(`AVTabSwitcher--button ${n.value} ${H.selected ? "AVTabSwitcher--button-active" : ""} ${H.disabled ? "disabled" : ""}`),
|
|
25364
25393
|
disabled: H.disabled,
|
|
25365
25394
|
onClick: (C) => m(H.value)
|
|
25366
|
-
},
|
|
25395
|
+
}, N(H.value), 11, YK))), 128))
|
|
25367
25396
|
]));
|
|
25368
25397
|
}
|
|
25369
25398
|
});
|
|
@@ -25404,7 +25433,7 @@ const KK = /* @__PURE__ */ J(QK, [["__scopeId", "data-v-3c4a2127"]]), XK = { cla
|
|
|
25404
25433
|
}, null, 8, ["icon", "class"]),
|
|
25405
25434
|
f("span", {
|
|
25406
25435
|
class: $(["AVBallotSummary--ballot-name", { "AVBallotSummary--name-ready": a.value }])
|
|
25407
|
-
},
|
|
25436
|
+
}, N(e.ballotStyleName), 3)
|
|
25408
25437
|
]),
|
|
25409
25438
|
f("div", cX, [
|
|
25410
25439
|
a.value ? (d(), K(s, {
|
|
@@ -25419,7 +25448,7 @@ const KK = /* @__PURE__ */ J(QK, [["__scopeId", "data-v-3c4a2127"]]), XK = { cla
|
|
|
25419
25448
|
})),
|
|
25420
25449
|
f("span", {
|
|
25421
25450
|
class: $(["AVBallotSummary--ballot-status", { "AVBallotSummary--status-ready": a.value }])
|
|
25422
|
-
},
|
|
25451
|
+
}, N(a.value ? `${e.currentBallots} ${e.readyLabel}` : `${t.value} ${e.waitingLabel}`), 3)
|
|
25423
25452
|
])
|
|
25424
25453
|
]);
|
|
25425
25454
|
};
|
|
@@ -25488,8 +25517,8 @@ const tX = /* @__PURE__ */ J(aX, [["__scopeId", "data-v-2d7c011c"]]), iX = {
|
|
|
25488
25517
|
}]),
|
|
25489
25518
|
"data-test": "help-text"
|
|
25490
25519
|
}, [
|
|
25491
|
-
z1(
|
|
25492
|
-
f("strong", null,
|
|
25520
|
+
z1(N(e.expirationMessage), 1),
|
|
25521
|
+
f("strong", null, N(m.value), 1)
|
|
25493
25522
|
], 2)
|
|
25494
25523
|
], 64));
|
|
25495
25524
|
}
|
|
@@ -25522,14 +25551,14 @@ const lX = /* @__PURE__ */ J(sX, [["__scopeId", "data-v-7d0d595b"]]), rX = (e) =
|
|
|
25522
25551
|
"AVBasicSteps--step-active": a(e.steps[0])
|
|
25523
25552
|
}]),
|
|
25524
25553
|
"data-test": "step"
|
|
25525
|
-
},
|
|
25554
|
+
}, N(e.steps[0]), 3),
|
|
25526
25555
|
fX,
|
|
25527
25556
|
f("span", {
|
|
25528
25557
|
class: $(["AVBasicSteps--step", {
|
|
25529
25558
|
"AVBasicSteps--step-active": a(e.steps[1])
|
|
25530
25559
|
}]),
|
|
25531
25560
|
"data-test": "step"
|
|
25532
|
-
},
|
|
25561
|
+
}, N(e.steps[1]), 3),
|
|
25533
25562
|
e.steps.length === 3 ? (d(), h("span", uX)) : I("", !0),
|
|
25534
25563
|
e.steps.length === 3 ? (d(), h("span", {
|
|
25535
25564
|
key: 1,
|
|
@@ -25537,7 +25566,7 @@ const lX = /* @__PURE__ */ J(sX, [["__scopeId", "data-v-7d0d595b"]]), rX = (e) =
|
|
|
25537
25566
|
"AVBasicSteps--step-active": a(e.steps[2])
|
|
25538
25567
|
}]),
|
|
25539
25568
|
"data-test": "step"
|
|
25540
|
-
},
|
|
25569
|
+
}, N(e.steps[2]), 3)) : I("", !0)
|
|
25541
25570
|
]));
|
|
25542
25571
|
}
|
|
25543
25572
|
});
|
|
@@ -25605,10 +25634,10 @@ const dX = /* @__PURE__ */ J(mX, [["__scopeId", "data-v-dbd25d5c"]]), vX = { cla
|
|
|
25605
25634
|
"AVSteps--step-circle": a.value.length !== m + 1,
|
|
25606
25635
|
"AVSteps--step--number-container-active": o.active
|
|
25607
25636
|
}])
|
|
25608
|
-
},
|
|
25637
|
+
}, N(m + 1), 3)),
|
|
25609
25638
|
f("span", {
|
|
25610
25639
|
class: $(["AVSteps--step-label", { "AVSteps--step-label-active": o.active }])
|
|
25611
|
-
},
|
|
25640
|
+
}, N(o.value), 3)
|
|
25612
25641
|
], 2))), 128))
|
|
25613
25642
|
]);
|
|
25614
25643
|
};
|
|
@@ -25670,7 +25699,7 @@ const zX = /* @__PURE__ */ J(hX, [["__scopeId", "data-v-89e22cbe"]]), V$ = (e) =
|
|
|
25670
25699
|
class: "AVOptionSelect",
|
|
25671
25700
|
"aria-label": i.value
|
|
25672
25701
|
}, [
|
|
25673
|
-
e.rank ? (d(), h("span", MX,
|
|
25702
|
+
e.rank ? (d(), h("span", MX, N(e.rank), 1)) : (d(), h("svg", HX, bX))
|
|
25674
25703
|
], 8, VX)), [
|
|
25675
25704
|
[E4, e.checked]
|
|
25676
25705
|
]);
|
|
@@ -25738,7 +25767,7 @@ const AX = /* @__PURE__ */ J(LX, [["__scopeId", "data-v-59ee2583"]]), _X = { cla
|
|
|
25738
25767
|
const m = D("AVOptionSelect");
|
|
25739
25768
|
return d(), h("div", _X, [
|
|
25740
25769
|
e.exclusiveError && e.checked ? (d(), h("div", xX, [
|
|
25741
|
-
f("div", NX,
|
|
25770
|
+
f("div", NX, N(F(t)("js.components.AVOptionCheckbox.exclusive_option")), 1)
|
|
25742
25771
|
])) : I("", !0),
|
|
25743
25772
|
f("button", U8({
|
|
25744
25773
|
class: {
|
|
@@ -25927,7 +25956,7 @@ const DX = /* @__PURE__ */ J(EX, [["__scopeId", "data-v-0dc18787"]]), PX = /* @_
|
|
|
25927
25956
|
icon: t.value,
|
|
25928
25957
|
class: "AVLinkVisualizer--icon"
|
|
25929
25958
|
}, null, 8, ["icon"]),
|
|
25930
|
-
f("span", null,
|
|
25959
|
+
f("span", null, N(e.link.attributes.name), 1)
|
|
25931
25960
|
], 2);
|
|
25932
25961
|
};
|
|
25933
25962
|
}
|
|
@@ -25986,12 +26015,12 @@ const OX = /* @__PURE__ */ J(PX, [["__scopeId", "data-v-eb8f518d"]]), BX = { cla
|
|
|
25986
26015
|
f("span", {
|
|
25987
26016
|
class: $(`AVVerticalStep--title AVVerticalStep--text-${e.status}`),
|
|
25988
26017
|
"data-test": "step-title"
|
|
25989
|
-
},
|
|
26018
|
+
}, N(e.title), 3),
|
|
25990
26019
|
e.subtitle ? (d(), h("span", {
|
|
25991
26020
|
key: 0,
|
|
25992
26021
|
class: $(`AVVerticalStep--subtitle AVVerticalStep--text-${e.status}`),
|
|
25993
26022
|
"data-test": "step-subtitle"
|
|
25994
|
-
},
|
|
26023
|
+
}, N(e.subtitle), 3)) : I("", !0)
|
|
25995
26024
|
]))
|
|
25996
26025
|
]),
|
|
25997
26026
|
_: 1
|
|
@@ -26124,7 +26153,7 @@ const ZX = /* @__PURE__ */ J(JX, [["__scopeId", "data-v-90e59491"]]), YX = { cla
|
|
|
26124
26153
|
for: e.id,
|
|
26125
26154
|
class: "AVRadioGroup--label",
|
|
26126
26155
|
"data-test": "input-label"
|
|
26127
|
-
},
|
|
26156
|
+
}, N(e.inputLabel), 9, QX)),
|
|
26128
26157
|
f("div", {
|
|
26129
26158
|
class: $(`AVRadioGroup--${e.orientation}`),
|
|
26130
26159
|
"data-test": "input-group"
|
|
@@ -26139,7 +26168,7 @@ const ZX = /* @__PURE__ */ J(JX, [["__scopeId", "data-v-90e59491"]]), YX = { cla
|
|
|
26139
26168
|
onUpdate: (C) => r(p.value)
|
|
26140
26169
|
}, null, 8, ["id", "value", "checked", "disabled", "onUpdate"]))), 128))
|
|
26141
26170
|
], 2),
|
|
26142
|
-
e.error && e.errorMessage ? (d(), h("p", KX,
|
|
26171
|
+
e.error && e.errorMessage ? (d(), h("p", KX, N(e.errorMessage), 1)) : I("", !0)
|
|
26143
26172
|
]);
|
|
26144
26173
|
};
|
|
26145
26174
|
}
|
|
@@ -26196,7 +26225,7 @@ const a11 = /* @__PURE__ */ J(c11, [["__scopeId", "data-v-9fd5c53d"]]), t11 = {
|
|
|
26196
26225
|
f("a", {
|
|
26197
26226
|
href: i.active ? null : i.href,
|
|
26198
26227
|
class: $(["AVBreadcrumb--link", { "AVBreadcrumb--link-active": i.active }])
|
|
26199
|
-
},
|
|
26228
|
+
}, N(i.text), 11, n11),
|
|
26200
26229
|
T(t, {
|
|
26201
26230
|
icon: "fa-solid fa-angle-right",
|
|
26202
26231
|
class: "AVBreadcrumb--separator"
|
|
@@ -26285,9 +26314,9 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26285
26314
|
}, {
|
|
26286
26315
|
default: s1(() => [
|
|
26287
26316
|
f("div", o11, [
|
|
26288
|
-
f("span", f11,
|
|
26317
|
+
f("span", f11, N(e.id), 1),
|
|
26289
26318
|
f("div", u11, [
|
|
26290
|
-
f("span", m11,
|
|
26319
|
+
f("span", m11, N(e.name), 1),
|
|
26291
26320
|
T(s, {
|
|
26292
26321
|
type: t.value,
|
|
26293
26322
|
value: e.status
|
|
@@ -26299,8 +26328,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26299
26328
|
T(l, { icon: "fa-solid fa-location-pin" })
|
|
26300
26329
|
]),
|
|
26301
26330
|
f("span", h11, [
|
|
26302
|
-
z1(
|
|
26303
|
-
f("strong", null,
|
|
26331
|
+
z1(N(e.countyNameLabel), 1),
|
|
26332
|
+
f("strong", null, N(e.countyName), 1)
|
|
26304
26333
|
])
|
|
26305
26334
|
]),
|
|
26306
26335
|
f("div", z11, [
|
|
@@ -26308,8 +26337,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26308
26337
|
T(l, { icon: "fa-solid fa-file-circle-plus" })
|
|
26309
26338
|
]),
|
|
26310
26339
|
f("span", M11, [
|
|
26311
|
-
z1(
|
|
26312
|
-
f("strong", null,
|
|
26340
|
+
z1(N(e.createdAtLabel), 1),
|
|
26341
|
+
f("strong", null, N(e.createdAt), 1)
|
|
26313
26342
|
])
|
|
26314
26343
|
]),
|
|
26315
26344
|
f("div", H11, [
|
|
@@ -26317,8 +26346,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26317
26346
|
T(l, { icon: "fa-solid fa-pen-to-square" })
|
|
26318
26347
|
]),
|
|
26319
26348
|
f("span", C11, [
|
|
26320
|
-
z1(
|
|
26321
|
-
f("strong", null,
|
|
26349
|
+
z1(N(e.lastUpdatedLabel), 1),
|
|
26350
|
+
f("strong", null, N(e.lastUpdated), 1)
|
|
26322
26351
|
])
|
|
26323
26352
|
])
|
|
26324
26353
|
])
|
|
@@ -26386,8 +26415,8 @@ const A11 = /* @__PURE__ */ J(L11, [["__scopeId", "data-v-dd72671e"]]), _11 = ["
|
|
|
26386
26415
|
T(t, { icon: "fa-solid fa-check" })
|
|
26387
26416
|
])) : I("", !0),
|
|
26388
26417
|
f("div", y11, [
|
|
26389
|
-
f("div", k11,
|
|
26390
|
-
f("div", S11,
|
|
26418
|
+
f("div", k11, N(e.name), 1),
|
|
26419
|
+
f("div", S11, N(`${e.contestQty} ${e.contestLabel}`), 1)
|
|
26391
26420
|
])
|
|
26392
26421
|
]),
|
|
26393
26422
|
f("div", w11, [
|
|
@@ -26476,14 +26505,14 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
|
|
|
26476
26505
|
const p = D("AVOptionCheckbox");
|
|
26477
26506
|
return d(), h("div", {
|
|
26478
26507
|
class: "AVSummaryOption",
|
|
26479
|
-
"aria-label":
|
|
26508
|
+
"aria-label": F(a)("js.components.AVSummaryOption.aria_label.option")
|
|
26480
26509
|
}, [
|
|
26481
26510
|
l.value ? (d(), h("div", D11, [
|
|
26482
26511
|
f("ul", P11, [
|
|
26483
26512
|
(d(!0), h(a1, null, g1(l.value, (b, _) => (d(), h("li", {
|
|
26484
26513
|
key: b + _,
|
|
26485
26514
|
class: "AVSummaryOption--breadcrumb-item"
|
|
26486
|
-
},
|
|
26515
|
+
}, N(b), 1))), 128))
|
|
26487
26516
|
])
|
|
26488
26517
|
])) : I("", !0),
|
|
26489
26518
|
f("div", {
|
|
@@ -26496,10 +26525,10 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
|
|
|
26496
26525
|
key: 0,
|
|
26497
26526
|
src: m.value,
|
|
26498
26527
|
class: "AVSummaryOption--img",
|
|
26499
|
-
alt:
|
|
26528
|
+
alt: F(a)("js.components.AVSummaryOption.aria_label.option_image")
|
|
26500
26529
|
}, null, 8, O11)) : I("", !0),
|
|
26501
26530
|
f("div", B11, [
|
|
26502
|
-
f("div", F11,
|
|
26531
|
+
f("div", F11, N(r.value), 1)
|
|
26503
26532
|
]),
|
|
26504
26533
|
s.value ? I("", !0) : (d(), h("div", R11, [
|
|
26505
26534
|
T(p, {
|
|
@@ -26649,24 +26678,24 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26649
26678
|
}), O;
|
|
26650
26679
|
}), z = E(
|
|
26651
26680
|
() => r.option.children && r.option.children.length > 0
|
|
26652
|
-
), L = E(() => r.option.selectable !== void 0 && !r.option.selectable ? 0 :
|
|
26681
|
+
), L = E(() => r.option.selectable !== void 0 && !r.option.selectable ? 0 : A.value ? 1 : r.option.voteLimit || r.contest.markingType.votesAllowedPerOption || 1), y = E(() => r.selections.length > 0 ? B(r.option.children) : 0), A = E(() => r.option.exclusive), k = E(() => {
|
|
26653
26682
|
const O = Array.from(Array(L.value).keys());
|
|
26654
|
-
O.forEach((
|
|
26683
|
+
O.forEach((Y) => O[Y] = Y + 1);
|
|
26655
26684
|
const e1 = O.indexOf(Math.ceil(L.value / 2)) + 1, r1 = O.slice(0, e1), U = O.slice(e1);
|
|
26656
26685
|
return U.length ? [r1, U] : [r1];
|
|
26657
|
-
}),
|
|
26686
|
+
}), S = E(() => r.partialResults ? r.partialResults[r.option.reference] : null), x = (O, e1 = 1) => {
|
|
26658
26687
|
o("checked", {
|
|
26659
26688
|
reference: O,
|
|
26660
26689
|
amount: e1
|
|
26661
26690
|
});
|
|
26662
|
-
},
|
|
26691
|
+
}, B = (O) => {
|
|
26663
26692
|
if (!O)
|
|
26664
26693
|
return 0;
|
|
26665
26694
|
let e1 = O.filter(
|
|
26666
26695
|
(r1) => r.selections.map((U) => U.reference).includes(r1.reference)
|
|
26667
26696
|
).length;
|
|
26668
|
-
return O.reduce((r1, U) => r1 +
|
|
26669
|
-
},
|
|
26697
|
+
return O.reduce((r1, U) => r1 + B(U.children), e1);
|
|
26698
|
+
}, Z = (O) => {
|
|
26670
26699
|
s.value = !1, O === r.option.reference && (o("accordion-open"), is(() => {
|
|
26671
26700
|
s.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
26672
26701
|
}));
|
|
@@ -26675,10 +26704,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26675
26704
|
() => n.value.get("highlight-option"),
|
|
26676
26705
|
(O) => {
|
|
26677
26706
|
const [e1] = O ?? [];
|
|
26678
|
-
|
|
26707
|
+
Z(e1);
|
|
26679
26708
|
}
|
|
26680
26709
|
), (O, e1) => {
|
|
26681
|
-
const r1 = D("AVIcon"), U = D("AVOptionCheckbox"),
|
|
26710
|
+
const r1 = D("AVIcon"), U = D("AVOptionCheckbox"), Y = D("AVOption", !0), m1 = D("AVCollapser");
|
|
26682
26711
|
return d(), h("div", {
|
|
26683
26712
|
class: $({
|
|
26684
26713
|
"AVOption--background": !0,
|
|
@@ -26708,7 +26737,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26708
26737
|
style: W1(
|
|
26709
26738
|
e.option.accentColor ? `border-left-color: ${e.option.accentColor}` : ""
|
|
26710
26739
|
),
|
|
26711
|
-
"aria-label":
|
|
26740
|
+
"aria-label": F(t)("js.components.AVOption.aria_labels.option")
|
|
26712
26741
|
}, [
|
|
26713
26742
|
f("div", {
|
|
26714
26743
|
class: $(["AVOption--container", {
|
|
@@ -26721,12 +26750,12 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26721
26750
|
e.option.image ? (d(), h("img", {
|
|
26722
26751
|
key: 0,
|
|
26723
26752
|
src: _.value,
|
|
26724
|
-
alt:
|
|
26753
|
+
alt: F(t)("js.components.AVOption.aria_labels.option_image"),
|
|
26725
26754
|
class: "AVOption-image"
|
|
26726
26755
|
}, null, 8, J11)) : I("", !0),
|
|
26727
26756
|
f("h5", {
|
|
26728
26757
|
class: "AVOption--title",
|
|
26729
|
-
textContent:
|
|
26758
|
+
textContent: N(p.value)
|
|
26730
26759
|
}, null, 8, Z11)
|
|
26731
26760
|
]),
|
|
26732
26761
|
H.value || g.value.length || z.value || e.option.candidateId ? (d(), h("div", Y11, [
|
|
@@ -26738,13 +26767,13 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26738
26767
|
key: 0,
|
|
26739
26768
|
class: "AVOption--link",
|
|
26740
26769
|
onClick: e1[0] || (e1[0] = (O1) => o("view-candidate", e.option.candidateId))
|
|
26741
|
-
},
|
|
26770
|
+
}, N(F(t)("js.components.AVOption.view_candidate")), 1)) : I("", !0),
|
|
26742
26771
|
(d(!0), h(a1, null, g1(g.value, (O1) => (d(), h("a", {
|
|
26743
26772
|
key: O1.toString(),
|
|
26744
26773
|
href: O1.url,
|
|
26745
26774
|
class: "AVOption--link",
|
|
26746
26775
|
target: "_blank"
|
|
26747
|
-
},
|
|
26776
|
+
}, N(O1.text), 9, e21))), 128))
|
|
26748
26777
|
])) : I("", !0),
|
|
26749
26778
|
q1 && z.value ? (d(), h("div", c21, [
|
|
26750
26779
|
f("div", {
|
|
@@ -26758,18 +26787,18 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26758
26787
|
}, null, 8, ["icon"]),
|
|
26759
26788
|
f("span", {
|
|
26760
26789
|
class: "AVOption--expander-help-text",
|
|
26761
|
-
innerHTML: P1 ?
|
|
26790
|
+
innerHTML: P1 ? F(t)("js.components.AVOption.collapse_text") : F(t)("js.components.AVOption.expand_text")
|
|
26762
26791
|
}, null, 8, t21)
|
|
26763
26792
|
], 8, a21),
|
|
26764
|
-
|
|
26793
|
+
y.value && !P1 ? (d(), h("span", {
|
|
26765
26794
|
key: 0,
|
|
26766
26795
|
class: $(["AVOption--suboption-badge", {
|
|
26767
26796
|
"AVOption--suboption-badge-danger": e.invalid,
|
|
26768
26797
|
"AVOption--suboption-badge-normal": !e.invalid
|
|
26769
26798
|
}])
|
|
26770
|
-
},
|
|
26799
|
+
}, N(m.value ? `${F(t)(
|
|
26771
26800
|
"js.components.AVOption.sub_options_select"
|
|
26772
|
-
)} ${
|
|
26801
|
+
)} ${y.value}` : `${y.value} ${F(t)(
|
|
26773
26802
|
"js.components.AVOption.sub_options_select"
|
|
26774
26803
|
)}`), 3)) : I("", !0)
|
|
26775
26804
|
])) : I("", !0)
|
|
@@ -26797,19 +26826,19 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26797
26826
|
"option-reference": e.option.reference,
|
|
26798
26827
|
"check-box-index": J1,
|
|
26799
26828
|
disabled: e.disabled || e.observerMode,
|
|
26800
|
-
onToggled: (I1) =>
|
|
26829
|
+
onToggled: (I1) => x(e.option.reference, J1)
|
|
26801
26830
|
}, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
|
26802
26831
|
]))), 128))
|
|
26803
26832
|
], 6)) : I("", !0),
|
|
26804
|
-
|
|
26833
|
+
S.value && (e.observerMode || e.disabled) ? (d(), h("div", i21, [
|
|
26805
26834
|
T(r1, {
|
|
26806
26835
|
icon: "user",
|
|
26807
26836
|
class: "AVOption--realtime-results-icon"
|
|
26808
26837
|
}),
|
|
26809
|
-
f("span", null,
|
|
26810
|
-
|
|
26838
|
+
f("span", null, N(m.value ? `${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
|
|
26839
|
+
S.value.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26811
26840
|
n21,
|
|
26812
|
-
f("span", null,
|
|
26841
|
+
f("span", null, N(`${S.value.results.percentage}%`), 1)
|
|
26813
26842
|
], 64)) : I("", !0)
|
|
26814
26843
|
])) : I("", !0)
|
|
26815
26844
|
], 2)
|
|
@@ -26817,7 +26846,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26817
26846
|
]),
|
|
26818
26847
|
pane: s1(({ toggleCollapse: P1 }) => [
|
|
26819
26848
|
z.value ? (d(), h("div", r21, [
|
|
26820
|
-
(d(!0), h(a1, null, g1(e.option.children, (q1) => (d(), K(
|
|
26849
|
+
(d(!0), h(a1, null, g1(e.option.children, (q1) => (d(), K(Y, {
|
|
26821
26850
|
key: q1.reference,
|
|
26822
26851
|
option: q1,
|
|
26823
26852
|
selections: e.selections,
|
|
@@ -26835,7 +26864,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26835
26864
|
]),
|
|
26836
26865
|
_: 2
|
|
26837
26866
|
}, [
|
|
26838
|
-
!e.disabled &&
|
|
26867
|
+
!e.disabled && S.value && !e.observerMode ? {
|
|
26839
26868
|
name: "results",
|
|
26840
26869
|
fn: s1(() => [
|
|
26841
26870
|
f("div", s21, [
|
|
@@ -26843,10 +26872,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26843
26872
|
icon: "user",
|
|
26844
26873
|
class: "AVOption--realtime-results-icon"
|
|
26845
26874
|
}),
|
|
26846
|
-
f("span", null,
|
|
26847
|
-
|
|
26875
|
+
f("span", null, N(m.value ? `${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
|
|
26876
|
+
S.value.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26848
26877
|
l21,
|
|
26849
|
-
f("span", null,
|
|
26878
|
+
f("span", null, N(`${S.value.results.percentage}%`), 1)
|
|
26850
26879
|
], 64)) : I("", !0)
|
|
26851
26880
|
])
|
|
26852
26881
|
]),
|
|
@@ -26930,10 +26959,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
|
26930
26959
|
"AVBlankOption--accent": e.accentColor
|
|
26931
26960
|
}),
|
|
26932
26961
|
style: W1(e.accentColor ? `border-left-color: ${e.accentColor}` : ""),
|
|
26933
|
-
"aria-label":
|
|
26962
|
+
"aria-label": F(a)("js.components.AVBlankOption.aria_labels.option")
|
|
26934
26963
|
}, [
|
|
26935
26964
|
f("div", m21, [
|
|
26936
|
-
f("h5", d21,
|
|
26965
|
+
f("h5", d21, N(F(a)("js.components.AVBlankOption.title")), 1),
|
|
26937
26966
|
f("div", v21, [
|
|
26938
26967
|
T(l, {
|
|
26939
26968
|
"option-reference": "blank",
|
|
@@ -26950,10 +26979,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
|
26950
26979
|
icon: "user",
|
|
26951
26980
|
class: "AVBlankOption--realtime-results-icon"
|
|
26952
26981
|
}),
|
|
26953
|
-
f("span", null,
|
|
26982
|
+
f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
|
26954
26983
|
e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26955
26984
|
h21,
|
|
26956
|
-
f("span", null,
|
|
26985
|
+
f("span", null, N(`${e.partialResults.results.percentage}%`), 1)
|
|
26957
26986
|
], 64)) : I("", !0)
|
|
26958
26987
|
])) : I("", !0)
|
|
26959
26988
|
])
|
|
@@ -26963,10 +26992,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
|
26963
26992
|
icon: "user",
|
|
26964
26993
|
class: "AVBlankOption--realtime-results-icon"
|
|
26965
26994
|
}),
|
|
26966
|
-
f("span", null,
|
|
26995
|
+
f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
|
26967
26996
|
e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26968
26997
|
V21,
|
|
26969
|
-
f("span", null,
|
|
26998
|
+
f("span", null, N(`${e.partialResults.results.percentage}%`), 1)
|
|
26970
26999
|
], 64)) : I("", !0)
|
|
26971
27000
|
])) : I("", !0)
|
|
26972
27001
|
], 2);
|
|
@@ -27039,30 +27068,30 @@ const H21 = /* @__PURE__ */ J(M21, [["__scopeId", "data-v-ee117d09"]]), g21 = ["
|
|
|
27039
27068
|
AVWriteInOption: !0,
|
|
27040
27069
|
"AVWriteInOption--disabled": e.disabled
|
|
27041
27070
|
}),
|
|
27042
|
-
"aria-label":
|
|
27071
|
+
"aria-label": F(t)("js.components.AVWriteInOption.aria_labels.option")
|
|
27043
27072
|
}, [
|
|
27044
27073
|
f("div", C21, [
|
|
27045
27074
|
f("div", b21, [
|
|
27046
|
-
f("div", L21,
|
|
27075
|
+
f("div", L21, N(F(t)("js.components.AVWriteInOption.title")), 1),
|
|
27047
27076
|
f("div", A21, [
|
|
27048
27077
|
f("select", {
|
|
27049
27078
|
class: "AVWriteInOption--form-control",
|
|
27050
|
-
"aria-label":
|
|
27079
|
+
"aria-label": F(t)("js.components.AVWriteInOption.aria_labels.party"),
|
|
27051
27080
|
disabled: e.disabled,
|
|
27052
27081
|
onInput: m[0] || (m[0] = (v) => l(v.target.value))
|
|
27053
27082
|
}, [
|
|
27054
|
-
f("option", x21,
|
|
27083
|
+
f("option", x21, N(F(t)("js.components.AVWriteInOption.choose_party")), 1),
|
|
27055
27084
|
(d(!0), h(a1, null, g1(e.parties, (v) => (d(), h("option", {
|
|
27056
27085
|
key: v.letter,
|
|
27057
27086
|
value: v.letter,
|
|
27058
27087
|
selected: v.letter === e.partyValue
|
|
27059
|
-
},
|
|
27088
|
+
}, N(v.letter) + " - " + N(v.name), 9, N21))), 128))
|
|
27060
27089
|
], 40, _21),
|
|
27061
27090
|
f("input", {
|
|
27062
27091
|
value: e.candidateValue,
|
|
27063
27092
|
class: "AVWriteInOption--form-control",
|
|
27064
|
-
placeholder:
|
|
27065
|
-
"aria-label":
|
|
27093
|
+
placeholder: F(t)("js.components.AVWriteInOption.placeholder"),
|
|
27094
|
+
"aria-label": F(t)("js.components.AVWriteInOption.aria_labels.candidate"),
|
|
27066
27095
|
disabled: e.disabled,
|
|
27067
27096
|
onInput: m[1] || (m[1] = (v) => s(v.target.value))
|
|
27068
27097
|
}, null, 40, y21)
|
|
@@ -27137,36 +27166,36 @@ const S21 = /* @__PURE__ */ J(k21, [["__scopeId", "data-v-f2bba574"]]), w21 = (e
|
|
|
27137
27166
|
"AVSubmissionHelper--weight": !0,
|
|
27138
27167
|
"AVSubmissionHelper--weight-danger": e.errors.length > 0
|
|
27139
27168
|
})
|
|
27140
|
-
},
|
|
27169
|
+
}, N(F(a)("js.components.AVSubmissionHelper.your_vote_weight", { weight: e.weight })), 3)) : I("", !0),
|
|
27141
27170
|
e.errors.length > 0 ? (d(), h("div", I21, [
|
|
27142
27171
|
(d(!0), h(a1, null, g1(n.value, (r) => (d(), h("div", {
|
|
27143
27172
|
key: r,
|
|
27144
27173
|
role: "alert",
|
|
27145
|
-
textContent:
|
|
27174
|
+
textContent: N(r)
|
|
27146
27175
|
}, null, 8, E21))), 128)),
|
|
27147
27176
|
D21
|
|
27148
27177
|
])) : I("", !0),
|
|
27149
27178
|
e.maxMarks > 1 ? (d(), h("div", P21, [
|
|
27150
27179
|
f("div", O21, [
|
|
27151
|
-
e.minMarks === e.maxMarks ? (d(), h("div", B21,
|
|
27180
|
+
e.minMarks === e.maxMarks ? (d(), h("div", B21, N(`${F(a)("js.components.AVSubmissionHelper.select_exactly", {
|
|
27152
27181
|
min_marks: e.minMarks
|
|
27153
|
-
})}`), 1)) : (d(), h("div", F21,
|
|
27182
|
+
})}`), 1)) : (d(), h("div", F21, N(`${e.hasExclusiveOptions ? F(a)(
|
|
27154
27183
|
"js.components.AVSubmissionHelper.select_multiple_with_exclusives",
|
|
27155
27184
|
{ min_marks: e.minMarks, max_marks: e.maxMarks }
|
|
27156
|
-
) :
|
|
27185
|
+
) : F(a)("js.components.AVSubmissionHelper.select_multiple", {
|
|
27157
27186
|
min_marks: e.minMarks,
|
|
27158
27187
|
max_marks: e.maxMarks
|
|
27159
27188
|
})}`), 1)),
|
|
27160
27189
|
e.chosenCount > 0 ? (d(), h("div", {
|
|
27161
27190
|
key: 2,
|
|
27162
|
-
innerHTML:
|
|
27191
|
+
innerHTML: F(a)("js.components.AVSubmissionHelper.selected", {
|
|
27163
27192
|
selected: e.chosenCount
|
|
27164
27193
|
}),
|
|
27165
27194
|
class: "AVSubmissionHelper--count"
|
|
27166
27195
|
}, null, 8, R21)) : I("", !0)
|
|
27167
27196
|
])
|
|
27168
27197
|
])) : (d(), h("div", j21, [
|
|
27169
|
-
f("div", null,
|
|
27198
|
+
f("div", null, N(F(a)("js.components.AVSubmissionHelper.select_single")), 1)
|
|
27170
27199
|
]))
|
|
27171
27200
|
], 2)
|
|
27172
27201
|
]));
|
|
@@ -27229,7 +27258,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27229
27258
|
return (v, p) => (d(), h("form", {
|
|
27230
27259
|
role: "search",
|
|
27231
27260
|
class: "AVSearchBallot",
|
|
27232
|
-
"aria-label":
|
|
27261
|
+
"aria-label": F(a)("js.components.AVSearchBallot.aria_labels.ballot_options"),
|
|
27233
27262
|
onSubmit: p[1] || (p[1] = m2(() => {
|
|
27234
27263
|
}, ["prevent"]))
|
|
27235
27264
|
}, [
|
|
@@ -27237,7 +27266,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27237
27266
|
f("label", {
|
|
27238
27267
|
for: "ballot_search",
|
|
27239
27268
|
class: "AVSearchBallot--label",
|
|
27240
|
-
textContent:
|
|
27269
|
+
textContent: N(F(a)("js.components.AVSearchBallot.search_the_ballot"))
|
|
27241
27270
|
}, null, 8, J21),
|
|
27242
27271
|
f("div", Z21, [
|
|
27243
27272
|
G1(f("input", {
|
|
@@ -27245,7 +27274,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27245
27274
|
"onUpdate:modelValue": p[0] || (p[0] = (H) => s.value = H),
|
|
27246
27275
|
type: "search",
|
|
27247
27276
|
class: "AVSearchBallot--form-control",
|
|
27248
|
-
placeholder:
|
|
27277
|
+
placeholder: F(a)("js.components.AVSearchBallot.enter_option_name")
|
|
27249
27278
|
}, null, 8, Y21), [
|
|
27250
27279
|
[ls, s.value]
|
|
27251
27280
|
])
|
|
@@ -27261,26 +27290,26 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27261
27290
|
(d(!0), h(a1, null, g1(r(H), (C) => (d(), h("li", {
|
|
27262
27291
|
key: C.reference,
|
|
27263
27292
|
class: "AVSeachOptionBallot--breadcrumb-item"
|
|
27264
|
-
},
|
|
27293
|
+
}, N(C.title[t.value]), 1))), 128))
|
|
27265
27294
|
])
|
|
27266
27295
|
])) : I("", !0),
|
|
27267
27296
|
f("div", {
|
|
27268
27297
|
id: `search_result_${H.reference}`,
|
|
27269
27298
|
class: "AVSearchBallot--option",
|
|
27270
27299
|
role: "button",
|
|
27271
|
-
"aria-label":
|
|
27300
|
+
"aria-label": F(a)("js.components.AVSearchBallot.aria_labels.go_to_option"),
|
|
27272
27301
|
onClick: m2((C) => u(H), ["prevent"])
|
|
27273
27302
|
}, [
|
|
27274
27303
|
f("span", {
|
|
27275
27304
|
class: "AVSearchBallot--link",
|
|
27276
|
-
textContent:
|
|
27305
|
+
textContent: N(H.title[t.value])
|
|
27277
27306
|
}, null, 8, a31)
|
|
27278
27307
|
], 8, c31)
|
|
27279
27308
|
], 8, K21))), 128)),
|
|
27280
27309
|
s.value && l.value.length === 0 ? (d(), h("div", {
|
|
27281
27310
|
key: 0,
|
|
27282
27311
|
class: "AVSearchBallot--alert",
|
|
27283
|
-
textContent:
|
|
27312
|
+
textContent: N(F(a)("js.components.AVSearchBallot.no_results"))
|
|
27284
27313
|
}, null, 8, t31)) : I("", !0)
|
|
27285
27314
|
])
|
|
27286
27315
|
], 40, W21));
|
|
@@ -27319,20 +27348,20 @@ const n31 = /* @__PURE__ */ J(i31, [["__scopeId", "data-v-727c3aa7"]]), s31 = {
|
|
|
27319
27348
|
), (i, n) => (d(), h("div", s31, [
|
|
27320
27349
|
f("div", l31, [
|
|
27321
27350
|
f("span", null, [
|
|
27322
|
-
z1(
|
|
27323
|
-
f("strong", null,
|
|
27351
|
+
z1(N(F(a)("js.components.AVSplitWeightHelper.total")) + " ", 1),
|
|
27352
|
+
f("strong", null, N(e.assignedWeight + e.unusedWeight), 1)
|
|
27324
27353
|
])
|
|
27325
27354
|
]),
|
|
27326
27355
|
f("div", r31, [
|
|
27327
27356
|
f("span", null, [
|
|
27328
|
-
z1(
|
|
27329
|
-
f("strong", null,
|
|
27357
|
+
z1(N(F(a)("js.components.AVSplitWeightHelper.assigned")) + " ", 1),
|
|
27358
|
+
f("strong", null, N(e.assignedWeight), 1)
|
|
27330
27359
|
])
|
|
27331
27360
|
]),
|
|
27332
27361
|
f("div", o31, [
|
|
27333
27362
|
f("span", null, [
|
|
27334
|
-
z1(
|
|
27335
|
-
f("strong", null,
|
|
27363
|
+
z1(N(F(a)("js.components.AVSplitWeightHelper.unused")) + " ", 1),
|
|
27364
|
+
f("strong", null, N(e.unusedWeight), 1)
|
|
27336
27365
|
])
|
|
27337
27366
|
])
|
|
27338
27367
|
]));
|
|
@@ -27391,9 +27420,9 @@ const u31 = /* @__PURE__ */ J(f31, [["__scopeId", "data-v-f145cdd2"]]), m31 = {
|
|
|
27391
27420
|
), (i, n) => {
|
|
27392
27421
|
const s = D("AVTooltip");
|
|
27393
27422
|
return d(), h("header", m31, [
|
|
27394
|
-
e.activeState === "ballot" ? (d(), h("p", d31,
|
|
27423
|
+
e.activeState === "ballot" ? (d(), h("p", d31, N(e.isEditing ? `${F(a)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex + 1}` : `${F(a)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length + 1}`), 1)) : e.activeState === "assign" ? (d(), h("p", v31, N(e.isEditing ? `${F(a)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}` : `${F(a)(
|
|
27395
27424
|
"js.components.AVSplitWizardHeader.assign.header_edit_mode"
|
|
27396
|
-
)} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31,
|
|
27425
|
+
)} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31, N(F(a)("js.components.AVSplitWizardHeader.overview.header")), 1)),
|
|
27397
27426
|
(e.activeState, I("", !0))
|
|
27398
27427
|
]);
|
|
27399
27428
|
};
|
|
@@ -27442,7 +27471,7 @@ const z31 = /* @__PURE__ */ J(h31, [["__scopeId", "data-v-8df55e3a"]]), V31 = "d
|
|
|
27442
27471
|
}, [
|
|
27443
27472
|
H31,
|
|
27444
27473
|
f("img", {
|
|
27445
|
-
src:
|
|
27474
|
+
src: F(V31),
|
|
27446
27475
|
alt: "Assembly Voting",
|
|
27447
27476
|
class: "AVFooter--img"
|
|
27448
27477
|
}, null, 8, g31)
|
|
@@ -27737,70 +27766,70 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
|
27737
27766
|
const l = i1(!1), r = i1(""), o = i1(""), m = i1(null), u = E(() => n.selectionPile.optionSelections), v = E(() => new C$(n.contest)), p = E(
|
|
27738
27767
|
() => n.contest.disregardVoterWeight ? null : n.weight
|
|
27739
27768
|
), H = E(() => {
|
|
27740
|
-
var
|
|
27741
|
-
let
|
|
27742
|
-
return (
|
|
27769
|
+
var B;
|
|
27770
|
+
let x = [];
|
|
27771
|
+
return (B = n.contest.customRulesets) != null && B.includes("belgian_ballot_rules") && x.push(new $31(n.contest)), x;
|
|
27743
27772
|
}), C = E(() => {
|
|
27744
|
-
let
|
|
27745
|
-
H.value.forEach((
|
|
27746
|
-
|
|
27773
|
+
let x = [];
|
|
27774
|
+
H.value.forEach((Z) => {
|
|
27775
|
+
x.push(...Z.validate(n.selectionPile));
|
|
27747
27776
|
});
|
|
27748
|
-
const
|
|
27777
|
+
const B = [
|
|
27749
27778
|
...v.value.validate(n.selectionPile, n.includeLazyErrors),
|
|
27750
|
-
...
|
|
27779
|
+
...x
|
|
27751
27780
|
];
|
|
27752
|
-
if (g.value &&
|
|
27753
|
-
let
|
|
27754
|
-
|
|
27781
|
+
if (g.value && B.some((Z) => Z.message === "cross_party_voting")) {
|
|
27782
|
+
let Z;
|
|
27783
|
+
B.some((O) => O.message === "exclusive") && (Z = B.findIndex(
|
|
27755
27784
|
(O) => O.message === "exclusive"
|
|
27756
|
-
),
|
|
27785
|
+
), B.splice(Z, 1)), B.some((O) => O.message === "blank") && (Z = B.findIndex(
|
|
27757
27786
|
(O) => O.message === "cross_party_voting"
|
|
27758
|
-
),
|
|
27787
|
+
), B.splice(Z, 1));
|
|
27759
27788
|
}
|
|
27760
|
-
return s("update:errors",
|
|
27789
|
+
return s("update:errors", B), B;
|
|
27761
27790
|
}), b = E(() => C.value.length === 0), _ = E(() => {
|
|
27762
|
-
var
|
|
27763
|
-
return (
|
|
27791
|
+
var x;
|
|
27792
|
+
return (x = n.contest.question) == null ? void 0 : x[i.value];
|
|
27764
27793
|
}), g = E(
|
|
27765
27794
|
() => {
|
|
27766
|
-
var
|
|
27767
|
-
return (
|
|
27795
|
+
var x;
|
|
27796
|
+
return (x = n.contest.customRulesets) == null ? void 0 : x.includes("belgian_ballot_rules");
|
|
27768
27797
|
}
|
|
27769
|
-
), z = E(() =>
|
|
27770
|
-
(
|
|
27798
|
+
), z = E(() => S(n.contest.options).some(
|
|
27799
|
+
(x) => x.exclusive
|
|
27771
27800
|
)), L = E(() => n.contest);
|
|
27772
|
-
l1(L, (
|
|
27773
|
-
var
|
|
27774
|
-
|
|
27801
|
+
l1(L, (x, B) => {
|
|
27802
|
+
var Z;
|
|
27803
|
+
B && x && x.reference !== B.reference && ((Z = document.getElementById("content")) == null || Z.focus(), B.searchForm && (m.value.value = ""));
|
|
27775
27804
|
});
|
|
27776
|
-
const
|
|
27805
|
+
const y = () => {
|
|
27777
27806
|
s("update:selectionPile", {
|
|
27778
27807
|
...n.selectionPile,
|
|
27779
27808
|
explicitBlank: !n.selectionPile.explicitBlank
|
|
27780
27809
|
});
|
|
27781
|
-
},
|
|
27782
|
-
const
|
|
27783
|
-
(e1) => e1.reference ===
|
|
27810
|
+
}, A = ({ reference: x, amount: B }) => {
|
|
27811
|
+
const Z = u.value.filter(
|
|
27812
|
+
(e1) => e1.reference === x
|
|
27784
27813
|
).length;
|
|
27785
|
-
|
|
27814
|
+
B === Z && (B = B - 1);
|
|
27786
27815
|
const O = u.value.filter(
|
|
27787
|
-
(e1) => e1.reference !==
|
|
27816
|
+
(e1) => e1.reference !== x
|
|
27788
27817
|
);
|
|
27789
|
-
for (let e1 = 0; e1 <
|
|
27790
|
-
O.push({ reference:
|
|
27818
|
+
for (let e1 = 0; e1 < B; e1++)
|
|
27819
|
+
O.push({ reference: x });
|
|
27791
27820
|
s("update:selectionPile", {
|
|
27792
27821
|
...n.selectionPile,
|
|
27793
27822
|
optionSelections: O
|
|
27794
27823
|
});
|
|
27795
|
-
}, k = (
|
|
27796
|
-
return (
|
|
27797
|
-
const
|
|
27824
|
+
}, k = (x) => s("view-candidate", x), S = (x, B) => x.flatMap((Z) => (B && (Z.parentContent = B), Z.children ? [Z, ...S(Z.children, Z)] : [Z]));
|
|
27825
|
+
return (x, B) => {
|
|
27826
|
+
const Z = D("AVSearchBallot"), O = D("AVWriteInOption"), e1 = D("AVOption"), r1 = D("AVBlankOption"), U = D("AVSubmissionHelper");
|
|
27798
27827
|
return d(), h("div", {
|
|
27799
27828
|
class: $({
|
|
27800
27829
|
AVBallot: !0,
|
|
27801
27830
|
"AVBallot--error": !b.value
|
|
27802
27831
|
}),
|
|
27803
|
-
"aria-label":
|
|
27832
|
+
"aria-label": F(t)("js.components.AVBallot.aria_labels.ballot"),
|
|
27804
27833
|
"aria-describedby": `ballot_${e.contest.reference}`
|
|
27805
27834
|
}, [
|
|
27806
27835
|
_.value ? (d(), h("h5", {
|
|
@@ -27808,12 +27837,12 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
|
27808
27837
|
id: `ballot_${e.contest.reference}_question`,
|
|
27809
27838
|
class: "AVBallot--question",
|
|
27810
27839
|
"aria-live": "polite"
|
|
27811
|
-
},
|
|
27812
|
-
e.contest.searchForm && !e.disabled && !e.observerMode ? (d(), K(
|
|
27840
|
+
}, N(_.value), 9, G31)) : I("", !0),
|
|
27841
|
+
e.contest.searchForm && !e.disabled && !e.observerMode ? (d(), K(Z, {
|
|
27813
27842
|
key: 1,
|
|
27814
27843
|
ref_key: "search",
|
|
27815
27844
|
ref: m,
|
|
27816
|
-
options:
|
|
27845
|
+
options: S(e.contest.options),
|
|
27817
27846
|
"options-container-id": "ballot_options"
|
|
27818
27847
|
}, null, 8, ["options"])) : I("", !0),
|
|
27819
27848
|
J31,
|
|
@@ -27822,50 +27851,50 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
|
27822
27851
|
class: $({
|
|
27823
27852
|
"AVBallot--options": !0,
|
|
27824
27853
|
"AVBallot--options-with-list": e.contest.options.some(
|
|
27825
|
-
(
|
|
27854
|
+
(Y) => Y.children
|
|
27826
27855
|
)
|
|
27827
27856
|
}),
|
|
27828
|
-
"aria-label":
|
|
27857
|
+
"aria-label": F(t)("js.components.AVBallot.aria_labels.ballot_options")
|
|
27829
27858
|
}, [
|
|
27830
|
-
(d(!0), h(a1, null, g1(e.contest.options, (
|
|
27831
|
-
key:
|
|
27859
|
+
(d(!0), h(a1, null, g1(e.contest.options, (Y) => (d(), h(a1, {
|
|
27860
|
+
key: Y.reference
|
|
27832
27861
|
}, [
|
|
27833
|
-
|
|
27862
|
+
Y.writeIn ? (d(), K(O, {
|
|
27834
27863
|
key: 0,
|
|
27835
27864
|
"candidate-value": o.value,
|
|
27836
|
-
"onUpdate:candidateValue":
|
|
27865
|
+
"onUpdate:candidateValue": B[0] || (B[0] = (m1) => o.value = m1),
|
|
27837
27866
|
"party-value": r.value,
|
|
27838
|
-
"onUpdate:partyValue":
|
|
27867
|
+
"onUpdate:partyValue": B[1] || (B[1] = (m1) => r.value = m1),
|
|
27839
27868
|
"checked-value": l.value,
|
|
27840
|
-
"onUpdate:checkedValue":
|
|
27869
|
+
"onUpdate:checkedValue": B[2] || (B[2] = (m1) => l.value = m1),
|
|
27841
27870
|
parties: [],
|
|
27842
27871
|
disabled: e.disabled,
|
|
27843
27872
|
observerMode: e.observerMode
|
|
27844
27873
|
}, null, 8, ["candidate-value", "party-value", "checked-value", "disabled", "observerMode"])) : (d(), K(e1, {
|
|
27845
27874
|
key: 1,
|
|
27846
27875
|
selections: u.value,
|
|
27847
|
-
option:
|
|
27876
|
+
option: Y,
|
|
27848
27877
|
invalid: !b.value,
|
|
27849
|
-
"exclusive-error": !g.value &&
|
|
27878
|
+
"exclusive-error": !g.value && Y.exclusive && C.value.some((m1) => m1.message.includes("exclusive")),
|
|
27850
27879
|
contest: e.contest,
|
|
27851
27880
|
disabled: e.disabled,
|
|
27852
27881
|
observerMode: e.observerMode,
|
|
27853
27882
|
"partial-results": e.partialResults,
|
|
27854
27883
|
"image-option": e.imageOption,
|
|
27855
|
-
onChecked:
|
|
27884
|
+
onChecked: A,
|
|
27856
27885
|
onViewCandidate: k
|
|
27857
27886
|
}, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results", "image-option"]))
|
|
27858
27887
|
], 64))), 128)),
|
|
27859
27888
|
e.contest.markingType.blankSubmission === "active_choice" ? (d(), K(r1, {
|
|
27860
27889
|
key: 0,
|
|
27861
27890
|
checked: e.selectionPile.explicitBlank,
|
|
27862
|
-
error: !g.value && C.value.some((
|
|
27891
|
+
error: !g.value && C.value.some((Y) => Y.message.includes("blank")),
|
|
27863
27892
|
disabled: e.disabled,
|
|
27864
27893
|
invalid: !b.value,
|
|
27865
27894
|
observerMode: e.observerMode,
|
|
27866
27895
|
accentColor: e.contest.blankOptionColor,
|
|
27867
27896
|
"partial-results": e.partialResults ? e.partialResults.blank : null,
|
|
27868
|
-
onToggleBlank:
|
|
27897
|
+
onToggleBlank: y
|
|
27869
27898
|
}, null, 8, ["checked", "error", "disabled", "invalid", "observerMode", "accentColor", "partial-results"])) : I("", !0)
|
|
27870
27899
|
], 10, Z31),
|
|
27871
27900
|
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (d(), K(U, {
|
|
@@ -27996,10 +28025,10 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
27996
28025
|
const _ = D("AVSummaryOption"), g = D("AVIcon");
|
|
27997
28026
|
return e.activeState === "summary" ? (d(), h("div", X31, [
|
|
27998
28027
|
e.contest.markingType.maxPiles !== 1 ? (d(), h("header", e41, [
|
|
27999
|
-
f("span", null,
|
|
28000
|
-
f("span", c41,
|
|
28028
|
+
f("span", null, N(F(t)("js.components.AVPileSummary.selection")) + " " + N(e.pileIndex + 1) + " / " + N(e.totalPiles), 1),
|
|
28029
|
+
f("span", c41, N(e.selectionPile.multiplier) + " " + N(F(t)("js.components.AVPileSummary.ballots")), 1)
|
|
28001
28030
|
])) : (d(), h("header", a41, [
|
|
28002
|
-
f("span", null,
|
|
28031
|
+
f("span", null, N(F(t)("js.components.AVPileSummary.selection")), 1)
|
|
28003
28032
|
])),
|
|
28004
28033
|
f("div", t41, [
|
|
28005
28034
|
(d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), K(_, {
|
|
@@ -28018,29 +28047,29 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28018
28047
|
f("div", n41, [
|
|
28019
28048
|
f("div", {
|
|
28020
28049
|
class: "AVPileSummary--assign-header",
|
|
28021
|
-
"aria-label":
|
|
28050
|
+
"aria-label": F(t)("js.components.AVPileSummary.aria_labels.edit_selection"),
|
|
28022
28051
|
role: "button",
|
|
28023
28052
|
onClick: b[0] || (b[0] = (z) => n("editCurrentSelection"))
|
|
28024
28053
|
}, [
|
|
28025
28054
|
f("div", l41, [
|
|
28026
28055
|
T(g, { icon: "pen-to-square" }),
|
|
28027
|
-
f("span", null,
|
|
28056
|
+
f("span", null, N(F(t)("js.components.AVPileSummary.ballot_selection")) + " " + N(e.pileIndex + 1), 1)
|
|
28028
28057
|
]),
|
|
28029
|
-
e.activeState === "overview" || e.isEditing ? (d(), h("span", r41,
|
|
28058
|
+
e.activeState === "overview" || e.isEditing ? (d(), h("span", r41, N(F(t)("js.components.AVPileSummary.assigned")) + " " + N(e.selectionPile.multiplier), 1)) : I("", !0)
|
|
28030
28059
|
], 8, s41),
|
|
28031
28060
|
f("div", o41, [
|
|
28032
|
-
o.value ? (d(), h("p", f41,
|
|
28061
|
+
o.value ? (d(), h("p", f41, N(F(t)("js.components.AVPileSummary.blank")), 1)) : I("", !0),
|
|
28033
28062
|
(d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), h("p", {
|
|
28034
28063
|
key: L,
|
|
28035
28064
|
class: "AVPileSummary--assign-text"
|
|
28036
|
-
},
|
|
28065
|
+
}, N(z.rank ? `${z.rank}: ` : "") + N(z.title), 1))), 128)),
|
|
28037
28066
|
(d(!0), h(a1, null, g1(H.value.writeIns, (z, L) => (d(), h("p", {
|
|
28038
28067
|
key: L,
|
|
28039
28068
|
class: "AVPileSummary--assign-text"
|
|
28040
28069
|
}, [
|
|
28041
|
-
f("b", null,
|
|
28070
|
+
f("b", null, N(z.partyLetter) + " - " + N(z.partyName), 1),
|
|
28042
28071
|
u41,
|
|
28043
|
-
f("span", null,
|
|
28072
|
+
f("span", null, N(z.candidateName), 1)
|
|
28044
28073
|
]))), 128)),
|
|
28045
28074
|
u.value > 0 ? (d(), h("p", {
|
|
28046
28075
|
key: 1,
|
|
@@ -28049,9 +28078,9 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28049
28078
|
onClick: b[1] || (b[1] = m2((z) => l.value = !0, ["stop", "prevent"]))
|
|
28050
28079
|
}, [
|
|
28051
28080
|
f("u", null, [
|
|
28052
|
-
f("em", null,
|
|
28081
|
+
f("em", null, N(`${F(t)(
|
|
28053
28082
|
"js.components.AVPileSummary.and_n_more_pre"
|
|
28054
|
-
)} ${u.value} ${
|
|
28083
|
+
)} ${u.value} ${F(t)(
|
|
28055
28084
|
"js.components.AVPileSummary.and_n_more_pos"
|
|
28056
28085
|
)}`), 1)
|
|
28057
28086
|
])
|
|
@@ -28063,7 +28092,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28063
28092
|
onClick: b[2] || (b[2] = m2((z) => l.value = !1, ["stop", "prevent"]))
|
|
28064
28093
|
}, [
|
|
28065
28094
|
f("u", null, [
|
|
28066
|
-
f("em", null,
|
|
28095
|
+
f("em", null, N(F(t)("js.components.AVPileSummary.show_less")), 1)
|
|
28067
28096
|
])
|
|
28068
28097
|
])) : I("", !0)
|
|
28069
28098
|
])
|
|
@@ -28072,7 +28101,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28072
28101
|
key: 0,
|
|
28073
28102
|
class: "AVPileSummary--assign-delete-button",
|
|
28074
28103
|
role: "button",
|
|
28075
|
-
"aria-label":
|
|
28104
|
+
"aria-label": F(t)("js.components.AVPileSummary.aria_labels.delete_selection"),
|
|
28076
28105
|
onClick: b[3] || (b[3] = m2((z) => n("deleteSelection"), ["stop", "prevent"]))
|
|
28077
28106
|
}, [
|
|
28078
28107
|
T(g, { icon: "trash-can" })
|
|
@@ -28187,7 +28216,7 @@ const V41 = {
|
|
|
28187
28216
|
), m = i1([]), u = E(() => n.contestSelection.piles), v = E(
|
|
28188
28217
|
() => {
|
|
28189
28218
|
var U;
|
|
28190
|
-
return (U = u.value) == null ? void 0 : U.reduce((
|
|
28219
|
+
return (U = u.value) == null ? void 0 : U.reduce((Y, m1) => Y - m1.multiplier, n.weight);
|
|
28191
28220
|
}
|
|
28192
28221
|
), p = E(
|
|
28193
28222
|
() => new C$(n.contest)
|
|
@@ -28201,16 +28230,16 @@ const V41 = {
|
|
|
28201
28230
|
)), b = E(
|
|
28202
28231
|
() => {
|
|
28203
28232
|
var U;
|
|
28204
|
-
return (U = u.value) == null ? void 0 : U.reduce((
|
|
28233
|
+
return (U = u.value) == null ? void 0 : U.reduce((Y, m1) => Y + m1.multiplier, 0);
|
|
28205
28234
|
}
|
|
28206
28235
|
), _ = E(() => {
|
|
28207
28236
|
var U;
|
|
28208
28237
|
return (U = r.value) == null ? void 0 : U.multiplier;
|
|
28209
28238
|
}), g = E(
|
|
28210
|
-
() => u.value.filter((U,
|
|
28239
|
+
() => u.value.filter((U, Y) => Y !== l.value).reduce((U, Y) => U - Y.multiplier, n.weight)
|
|
28211
28240
|
), z = E(
|
|
28212
28241
|
() => n.contest.markingType.maxPiles !== 1 && n.weight > 1
|
|
28213
|
-
), L = E(() => l.value !== null),
|
|
28242
|
+
), L = E(() => l.value !== null), y = (U) => p.value.isComplete(U), A = (U) => p.value.validate(U, n.includeLazyErrors).length > 0, k = () => {
|
|
28214
28243
|
if (z.value) {
|
|
28215
28244
|
const U = [...u.value];
|
|
28216
28245
|
l.value === null ? U.push({ ...r.value }) : U.splice(l.value, 1, {
|
|
@@ -28224,17 +28253,17 @@ const V41 = {
|
|
|
28224
28253
|
...n.contestSelection,
|
|
28225
28254
|
piles: [r.value]
|
|
28226
28255
|
});
|
|
28227
|
-
},
|
|
28256
|
+
}, S = (U) => {
|
|
28228
28257
|
r.value = U, z.value || k();
|
|
28229
|
-
},
|
|
28258
|
+
}, x = () => {
|
|
28230
28259
|
r.value = {
|
|
28231
28260
|
optionSelections: [],
|
|
28232
28261
|
multiplier: g.value,
|
|
28233
28262
|
explicitBlank: !1
|
|
28234
28263
|
}, l.value = null, o.value = "ballot";
|
|
28235
|
-
},
|
|
28264
|
+
}, B = (U) => {
|
|
28236
28265
|
u.value.splice(U, 1);
|
|
28237
|
-
},
|
|
28266
|
+
}, Z = (U) => {
|
|
28238
28267
|
r.value = { ...u.value[U] }, l.value = U, o.value = "ballot";
|
|
28239
28268
|
}, O = (U) => {
|
|
28240
28269
|
m.value = U;
|
|
@@ -28248,11 +28277,11 @@ const V41 = {
|
|
|
28248
28277
|
s("update:activePile", U);
|
|
28249
28278
|
}), l1(o, (U) => s("update:activeState", U)), A1(() => {
|
|
28250
28279
|
n.locale && p1(n.locale), s("update:activePile", r.value), s("update:activeState", o.value), s("update:complete", C.value), z.value || k();
|
|
28251
|
-
}), (U,
|
|
28280
|
+
}), (U, Y) => {
|
|
28252
28281
|
var I1;
|
|
28253
28282
|
const m1 = D("AVSplitWizardHeader"), P1 = D("AVBallot"), q1 = D("AVPileSummary"), O1 = D("AVSplitWeightHelper"), J1 = D("AVIcon");
|
|
28254
28283
|
return d(), h(a1, null, [
|
|
28255
|
-
f("h3", V41,
|
|
28284
|
+
f("h3", V41, N(e.contest.title[i.value]), 1),
|
|
28256
28285
|
f("div", {
|
|
28257
28286
|
class: "AVSplitHelper--description",
|
|
28258
28287
|
innerHTML: (I1 = e.contest.description) == null ? void 0 : I1[i.value]
|
|
@@ -28283,29 +28312,29 @@ const V41 = {
|
|
|
28283
28312
|
includeLazyErrors: e.includeLazyErrors,
|
|
28284
28313
|
"show-submission-helper": e.showSubmissionHelper,
|
|
28285
28314
|
"image-option": e.imageOption,
|
|
28286
|
-
"onUpdate:selectionPile":
|
|
28287
|
-
"onUpdate:errors":
|
|
28315
|
+
"onUpdate:selectionPile": S,
|
|
28316
|
+
"onUpdate:errors": Y[0] || (Y[0] = (F1) => O(F1))
|
|
28288
28317
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "includeLazyErrors", "show-submission-helper", "image-option"]),
|
|
28289
28318
|
f("div", H41, [
|
|
28290
28319
|
f("div", g41, [
|
|
28291
28320
|
u.value.length > 0 ? (d(), h("button", {
|
|
28292
28321
|
key: "back",
|
|
28293
28322
|
class: "AVSplitHelper--btn-secondary",
|
|
28294
|
-
onClick:
|
|
28295
|
-
},
|
|
28323
|
+
onClick: Y[1] || (Y[1] = (F1) => o.value = "overview")
|
|
28324
|
+
}, N(F(t)("js.components.AVSplitHelper.ballot.back_button")), 1)) : I("", !0)
|
|
28296
28325
|
]),
|
|
28297
28326
|
f("div", C41, [
|
|
28298
28327
|
f("button", {
|
|
28299
28328
|
key: "assign",
|
|
28300
28329
|
class: "AVSplitHelper--btn-primary",
|
|
28301
|
-
disabled: !
|
|
28302
|
-
onClick:
|
|
28303
|
-
},
|
|
28330
|
+
disabled: !y(r.value) || A(r.value),
|
|
28331
|
+
onClick: Y[2] || (Y[2] = (F1) => o.value = "assign")
|
|
28332
|
+
}, N(F(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, b41)
|
|
28304
28333
|
])
|
|
28305
28334
|
])
|
|
28306
28335
|
])) : o.value === "assign" ? (d(), h("div", L41, [
|
|
28307
28336
|
f("div", A41, [
|
|
28308
|
-
f("h4", _41,
|
|
28337
|
+
f("h4", _41, N(F(t)("js.components.AVSplitHelper.assign.split_question")), 1),
|
|
28309
28338
|
T(q1, {
|
|
28310
28339
|
"selection-pile": r.value,
|
|
28311
28340
|
contest: e.contest,
|
|
@@ -28315,17 +28344,17 @@ const V41 = {
|
|
|
28315
28344
|
"is-editing": L.value,
|
|
28316
28345
|
"total-piles": e.contestSelection.piles.length,
|
|
28317
28346
|
"image-option": e.imageOption,
|
|
28318
|
-
onEditCurrentSelection:
|
|
28347
|
+
onEditCurrentSelection: Y[3] || (Y[3] = (F1) => o.value = "ballot")
|
|
28319
28348
|
}, null, 8, ["selection-pile", "contest", "pile-index", "active-state", "is-editing", "total-piles", "image-option"]),
|
|
28320
28349
|
f("label", {
|
|
28321
28350
|
for: `${e.contest.reference}-ballot-selector`,
|
|
28322
28351
|
class: "AVSplitHelper--assign-label"
|
|
28323
|
-
},
|
|
28352
|
+
}, N(L.value ? F(t)(
|
|
28324
28353
|
"js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"
|
|
28325
|
-
) :
|
|
28354
|
+
) : F(t)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, x41),
|
|
28326
28355
|
G1(f("input", {
|
|
28327
28356
|
id: `${e.contest.reference}-ballot-selector`,
|
|
28328
|
-
"onUpdate:modelValue":
|
|
28357
|
+
"onUpdate:modelValue": Y[4] || (Y[4] = (F1) => r.value.multiplier = F1),
|
|
28329
28358
|
class: "AVSplitHelper--assign-input",
|
|
28330
28359
|
type: "number",
|
|
28331
28360
|
max: g.value
|
|
@@ -28343,16 +28372,16 @@ const V41 = {
|
|
|
28343
28372
|
f("button", {
|
|
28344
28373
|
key: "ballot",
|
|
28345
28374
|
class: "AVSplitHelper--btn-secondary",
|
|
28346
|
-
onClick:
|
|
28347
|
-
},
|
|
28375
|
+
onClick: Y[5] || (Y[5] = (F1) => o.value = "ballot")
|
|
28376
|
+
}, N(F(t)("js.components.AVSplitHelper.assign.back_button")), 1)
|
|
28348
28377
|
]),
|
|
28349
28378
|
f("div", S41, [
|
|
28350
28379
|
f("button", {
|
|
28351
28380
|
key: "confirm",
|
|
28352
28381
|
class: "AVSplitHelper--btn-primary",
|
|
28353
28382
|
disabled: ((z2 = r.value) == null ? void 0 : z2.multiplier) < 1 || ((A2 = r.value) == null ? void 0 : A2.multiplier) > g.value,
|
|
28354
|
-
onClick:
|
|
28355
|
-
},
|
|
28383
|
+
onClick: Y[6] || (Y[6] = (F1) => k())
|
|
28384
|
+
}, N(F(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, w41)
|
|
28356
28385
|
])
|
|
28357
28386
|
])
|
|
28358
28387
|
])) : o.value === "overview" ? (d(), h("div", T41, [
|
|
@@ -28361,25 +28390,25 @@ const V41 = {
|
|
|
28361
28390
|
icon: "circle-check",
|
|
28362
28391
|
class: "AVSplitHelper--overview-success-icon"
|
|
28363
28392
|
}),
|
|
28364
|
-
z1(" " +
|
|
28393
|
+
z1(" " + N(F(t)("js.components.AVSplitHelper.overview.all_ballots_assigned")), 1)
|
|
28365
28394
|
])) : (d(), h("div", E41, [
|
|
28366
28395
|
f("p", D41, [
|
|
28367
|
-
f("strong", null,
|
|
28368
|
-
z1(" " +
|
|
28396
|
+
f("strong", null, N(v.value), 1),
|
|
28397
|
+
z1(" " + N(F(t)("js.components.AVSplitHelper.overview.ballots_left")), 1)
|
|
28369
28398
|
]),
|
|
28370
28399
|
f("button", {
|
|
28371
28400
|
key: "newSelection",
|
|
28372
28401
|
class: "AVSplitHelper--overview-new-ballot-btn",
|
|
28373
28402
|
disabled: v.value === 0,
|
|
28374
|
-
onClick:
|
|
28403
|
+
onClick: x
|
|
28375
28404
|
}, [
|
|
28376
28405
|
T(J1, { icon: "file-circle-plus" }),
|
|
28377
|
-
z1(" " +
|
|
28406
|
+
z1(" " + N(F(t)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
|
|
28378
28407
|
], 8, P41)
|
|
28379
28408
|
])),
|
|
28380
28409
|
(d(!0), h(a1, null, g1(u.value, (F1, o2) => (d(), h("article", {
|
|
28381
28410
|
key: `preview-${o2}`,
|
|
28382
|
-
onClick: (t3) =>
|
|
28411
|
+
onClick: (t3) => Z(o2)
|
|
28383
28412
|
}, [
|
|
28384
28413
|
T(q1, {
|
|
28385
28414
|
"selection-pile": F1,
|
|
@@ -28389,7 +28418,7 @@ const V41 = {
|
|
|
28389
28418
|
"pile-index": o2,
|
|
28390
28419
|
"total-piles": e.contestSelection.piles.length,
|
|
28391
28420
|
"image-option": e.imageOption,
|
|
28392
|
-
onDeleteSelection: (t3) =>
|
|
28421
|
+
onDeleteSelection: (t3) => B(o2)
|
|
28393
28422
|
}, null, 8, ["selection-pile", "contest", "active-state", "pile-index", "total-piles", "image-option", "onDeleteSelection"])
|
|
28394
28423
|
], 8, O41))), 128))
|
|
28395
28424
|
])) : I("", !0)
|
|
@@ -28407,8 +28436,8 @@ const V41 = {
|
|
|
28407
28436
|
weight: e.weight,
|
|
28408
28437
|
"image-option": e.imageOption,
|
|
28409
28438
|
"show-submission-helper": e.showSubmissionHelper,
|
|
28410
|
-
"onUpdate:selectionPile":
|
|
28411
|
-
"onUpdate:errors":
|
|
28439
|
+
"onUpdate:selectionPile": S,
|
|
28440
|
+
"onUpdate:errors": Y[7] || (Y[7] = (a2) => O(a2)),
|
|
28412
28441
|
onViewCandidate: e1
|
|
28413
28442
|
}, null, 8, ["selection-pile", "partial-results", "includeLazyErrors", "contest", "weight", "image-option", "show-submission-helper"]))
|
|
28414
28443
|
], 64);
|
|
@@ -28519,7 +28548,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28519
28548
|
e.summary && v.value ? (d(), h("div", j41, [
|
|
28520
28549
|
f("img", {
|
|
28521
28550
|
src: v.value,
|
|
28522
|
-
alt:
|
|
28551
|
+
alt: F(a)("js.components.AVResourceSection.alt_candidate"),
|
|
28523
28552
|
class: "AVResourceSection--image"
|
|
28524
28553
|
}, null, 8, q41)
|
|
28525
28554
|
])) : I("", !0),
|
|
@@ -28529,13 +28558,13 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28529
28558
|
)
|
|
28530
28559
|
}, [
|
|
28531
28560
|
f("div", $41, [
|
|
28532
|
-
e.summary && n.value ? (d(), h("h4", U41,
|
|
28533
|
-
e.summary && s.value ? (d(), h("h5", W41,
|
|
28561
|
+
e.summary && n.value ? (d(), h("h4", U41, N(n.value), 1)) : I("", !0),
|
|
28562
|
+
e.summary && s.value ? (d(), h("h5", W41, N(s.value), 1)) : I("", !0),
|
|
28534
28563
|
e.summary && e.candidate.groups && !e.card ? (d(), h("div", G41, [
|
|
28535
|
-
f("h4", J41,
|
|
28564
|
+
f("h4", J41, N(l.value.title), 1),
|
|
28536
28565
|
l.value.surplus ? (d(), K(C, {
|
|
28537
28566
|
key: 0,
|
|
28538
|
-
text:
|
|
28567
|
+
text: F(a)("js.components.AVResourceSection.and_more", {
|
|
28539
28568
|
amount: l.value.surplus
|
|
28540
28569
|
}),
|
|
28541
28570
|
content: l.value.remaining,
|
|
@@ -28558,36 +28587,36 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28558
28587
|
"AVResourceFields--divisor": g.item_type === "check_box"
|
|
28559
28588
|
})
|
|
28560
28589
|
}, [
|
|
28561
|
-
z1(
|
|
28590
|
+
z1(N(g.label[i.value]) + " ", 1),
|
|
28562
28591
|
g.item_type === "check_box" ? (d(), K(b, {
|
|
28563
28592
|
key: 0,
|
|
28564
28593
|
icon: g.form_content ? "square-check" : "square-xmark",
|
|
28565
28594
|
class: $(
|
|
28566
28595
|
g.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
|
28567
28596
|
),
|
|
28568
|
-
"aria-label": g.form_content ?
|
|
28597
|
+
"aria-label": g.form_content ? F(a)("js.components.AVResourceSection.true") : F(a)("js.components.AVResourceSection.false")
|
|
28569
28598
|
}, null, 8, ["icon", "class", "aria-label"])) : I("", !0)
|
|
28570
28599
|
], 2)),
|
|
28571
28600
|
!e.summary && g.item_type !== "check_box" ? (d(), h("hr", Z41)) : I("", !0),
|
|
28572
28601
|
g.item_type === "link_list" && m(g) ? (d(), h("div", Y41, [
|
|
28573
|
-
e.summary ? (d(), h("span", Q41,
|
|
28602
|
+
e.summary ? (d(), h("span", Q41, N(`${g.label[i.value]}:`), 1)) : I("", !0),
|
|
28574
28603
|
(d(!0), h(a1, null, g1(g.form_content, (z) => (d(), K(_, {
|
|
28575
28604
|
key: z.attributes.name,
|
|
28576
28605
|
link: z,
|
|
28577
28606
|
large: !e.summary
|
|
28578
28607
|
}, null, 8, ["link", "large"]))), 128))
|
|
28579
28608
|
])) : g.item_type === "check_box" && e.summary ? (d(), h("div", K41, [
|
|
28580
|
-
f("span", null,
|
|
28609
|
+
f("span", null, N(`${g.label[i.value]}`), 1),
|
|
28581
28610
|
T(b, {
|
|
28582
28611
|
icon: g.form_content ? "square-check" : "square-xmark",
|
|
28583
28612
|
class: $(
|
|
28584
28613
|
g.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
|
28585
28614
|
),
|
|
28586
|
-
"aria-label": g.form_content ?
|
|
28615
|
+
"aria-label": g.form_content ? F(a)("js.components.AVResourceSection.true") : F(a)("js.components.AVResourceSection.false")
|
|
28587
28616
|
}, null, 8, ["icon", "class", "aria-label"])
|
|
28588
28617
|
])) : g.item_type === "select" && m(g) ? (d(), h("div", X41, [
|
|
28589
|
-
e.summary ? (d(), h("span", e61,
|
|
28590
|
-
z1(" " +
|
|
28618
|
+
e.summary ? (d(), h("span", e61, N(`${g.label[i.value]}:`), 1)) : I("", !0),
|
|
28619
|
+
z1(" " + N(g.form_content[i.value]), 1)
|
|
28591
28620
|
])) : g.item_type === "video" && m(g) ? (d(), h("div", c61, [
|
|
28592
28621
|
f("iframe", {
|
|
28593
28622
|
style: { width: "100%", height: "100%", "min-height": "400px" },
|
|
@@ -28598,14 +28627,14 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28598
28627
|
class: "AVResourceFields--rich-text",
|
|
28599
28628
|
innerHTML: g.localised ? g.form_content[i.value] : g.form_content
|
|
28600
28629
|
}, null, 8, t61)) : g.item_type !== "rich_text_area" && g.item_type !== "check_box" ? (d(), h("p", i61, [
|
|
28601
|
-
e.summary ? (d(), h("span", n61,
|
|
28630
|
+
e.summary ? (d(), h("span", n61, N(`${g.label[i.value]}: `), 1)) : I("", !0),
|
|
28602
28631
|
g.item_type === "date" || g.item_type === "date_time" ? (d(), h(a1, { key: 1 }, [
|
|
28603
|
-
z1(
|
|
28632
|
+
z1(N(F(t)(
|
|
28604
28633
|
g.form_content,
|
|
28605
28634
|
g.item_type === "date" ? null : "long"
|
|
28606
28635
|
)), 1)
|
|
28607
28636
|
], 64)) : (d(), h(a1, { key: 2 }, [
|
|
28608
|
-
z1(
|
|
28637
|
+
z1(N(g.localised ? g.form_content[i.value] : g.form_content), 1)
|
|
28609
28638
|
], 64))
|
|
28610
28639
|
])) : I("", !0)
|
|
28611
28640
|
], 2)) : I("", !0)
|