@assemblyvoting/ui-library 3.1.27-beta.25 → 3.1.27-beta.26
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/components/atoms/AVFileInput/AVFileInput.vue.d.ts +1 -1
- package/dist/index.cjs +10 -10
- package/dist/index.js +695 -695
- package/dist/style.css +1 -1
- package/package.json +1 -1
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 x, 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
|
|
@@ -196,7 +196,7 @@ const X$ = /<\/?[\w\s="/.':;#-\/]+>/, eU = (e) => X$.test(e), V2 = " ", cU = "\r
|
|
|
196
196
|
function iU(e) {
|
|
197
197
|
const c = e;
|
|
198
198
|
let a = 0, t = 1, i = 1, n = 0;
|
|
199
|
-
const s = (
|
|
199
|
+
const s = (S) => c[S] === cU && c[S + 1] === R1, l = (S) => c[S] === R1, r = (S) => c[S] === tU, o = (S) => c[S] === aU, m = (S) => s(S) || l(S) || r(S) || o(S), u = () => a, v = () => t, p = () => i, H = () => n, C = (S) => s(S) || r(S) || o(S) ? R1 : c[S], b = () => C(a), _ = () => C(a + n);
|
|
200
200
|
function g() {
|
|
201
201
|
return n = 0, m(a) && (t++, i = 0), s(a) && a++, a++, i++, c[a];
|
|
202
202
|
}
|
|
@@ -206,12 +206,12 @@ function iU(e) {
|
|
|
206
206
|
function L() {
|
|
207
207
|
a = 0, t = 1, i = 1, n = 0;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
n =
|
|
209
|
+
function y(S = 0) {
|
|
210
|
+
n = S;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const
|
|
214
|
-
for (;
|
|
212
|
+
function A() {
|
|
213
|
+
const S = a + n;
|
|
214
|
+
for (; S !== a; )
|
|
215
215
|
g();
|
|
216
216
|
n = 0;
|
|
217
217
|
}
|
|
@@ -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;
|
|
@@ -324,7 +324,7 @@ function lU(e, c = {}) {
|
|
|
324
324
|
const X = V.currentPeek() === ".";
|
|
325
325
|
return V.resetPeek(), X;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function S(V, M) {
|
|
328
328
|
const { currentType: P } = M;
|
|
329
329
|
if (P !== 9)
|
|
330
330
|
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 N(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 k = V.currentPeek();
|
|
368
|
+
return k === "{" ? M1 === "%" ? !1 : _1 : k === "@" || !k ? M1 === "%" ? !0 : _1 : k === "%" ? (V.peek(), P(_1, "%", !0)) : k === "|" ? M1 === "%" || h1 ? !0 : !(M1 === V2 || M1 === R1) : k === V2 ? (V.peek(), P(!0, V2, h1)) : k === 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) || w(V, M) ? (b(V), R2(V, M)) : S(V, M) ? (b(V), v(M, 12, x3(V))) : N(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,142 +661,142 @@ 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,
|
|
664
|
+
function i(z, L, y, A, ...S) {
|
|
665
665
|
const w = z.currentPosition();
|
|
666
|
-
if (w.offset +=
|
|
667
|
-
const
|
|
666
|
+
if (w.offset += A, w.column += A, a) {
|
|
667
|
+
const N = c ? P4(y, w) : null, B = z3(L, N, {
|
|
668
668
|
domain: rU,
|
|
669
|
-
args:
|
|
669
|
+
args: S
|
|
670
670
|
});
|
|
671
|
-
a(
|
|
671
|
+
a(B);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
function n(z, L,
|
|
674
|
+
function n(z, L, y, A, ...S) {
|
|
675
675
|
const w = z.currentPosition();
|
|
676
|
-
if (w.offset +=
|
|
677
|
-
const
|
|
678
|
-
t(Y$(L,
|
|
676
|
+
if (w.offset += A, w.column += A, t) {
|
|
677
|
+
const N = c ? P4(y, w) : null;
|
|
678
|
+
t(Y$(L, N, S));
|
|
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
|
|
693
|
+
const y = z.context(), { lastOffset: A, lastStartLoc: S } = y, w = s(5, A, S);
|
|
694
694
|
return w.index = parseInt(L, 10), z.nextToken(), l(w, z.currentOffset(), z.currentPosition()), w;
|
|
695
695
|
}
|
|
696
|
-
function m(z, L,
|
|
697
|
-
const
|
|
698
|
-
return
|
|
696
|
+
function m(z, L, y) {
|
|
697
|
+
const A = z.context(), { lastOffset: S, lastStartLoc: w } = A, N = s(4, S, w);
|
|
698
|
+
return N.key = L, y === !0 && (N.modulo = !0), z.nextToken(), l(N, z.currentOffset(), z.currentPosition()), N;
|
|
699
699
|
}
|
|
700
700
|
function u(z, L) {
|
|
701
|
-
const
|
|
701
|
+
const y = z.context(), { lastOffset: A, lastStartLoc: S } = y, w = s(9, A, S);
|
|
702
702
|
return w.value = L.replace(oU, fU), z.nextToken(), l(w, z.currentOffset(), z.currentPosition()), w;
|
|
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: S } = y, w = s(8, A, S);
|
|
706
|
+
return L.type !== 12 ? (i(z, c1.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), w.value = "", l(w, A, S), {
|
|
707
707
|
nextConsumeToken: L,
|
|
708
708
|
node: w
|
|
709
|
-
}) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS,
|
|
709
|
+
}) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, t2(L)), w.value = L.value || "", l(w, z.currentOffset(), z.currentPosition()), {
|
|
710
710
|
node: w
|
|
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 (
|
|
721
|
-
const
|
|
722
|
-
|
|
718
|
+
const L = z.context(), y = s(6, L.offset, L.startLoc);
|
|
719
|
+
let A = z.nextToken();
|
|
720
|
+
if (A.type === 9) {
|
|
721
|
+
const S = v(z);
|
|
722
|
+
y.modifier = S.node, A = S.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
|
|
740
|
-
return w.value = "", l(w,
|
|
741
|
-
nextConsumeToken:
|
|
742
|
-
node:
|
|
739
|
+
const S = z.context(), w = s(7, S.offset, S.startLoc);
|
|
740
|
+
return w.value = "", l(w, S.offset, S.startLoc), y.key = w, l(y, S.offset, S.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(),
|
|
752
|
-
|
|
753
|
-
let w = null,
|
|
751
|
+
const L = z.context(), y = L.currentType === 1 ? z.currentOffset() : L.offset, A = L.currentType === 1 ? L.endLoc : L.startLoc, S = s(2, y, A);
|
|
752
|
+
S.items = [];
|
|
753
|
+
let w = null, N = null;
|
|
754
754
|
do {
|
|
755
755
|
const O = w || z.nextToken();
|
|
756
756
|
switch (w = null, O.type) {
|
|
757
757
|
case 0:
|
|
758
|
-
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)),
|
|
758
|
+
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), S.items.push(r(z, O.value || ""));
|
|
759
759
|
break;
|
|
760
760
|
case 6:
|
|
761
|
-
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)),
|
|
761
|
+
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), S.items.push(o(z, O.value || ""));
|
|
762
762
|
break;
|
|
763
763
|
case 4:
|
|
764
|
-
|
|
764
|
+
N = !0;
|
|
765
765
|
break;
|
|
766
766
|
case 5:
|
|
767
|
-
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)),
|
|
767
|
+
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), S.items.push(m(z, O.value || "", !!N)), N && (n(z, Q4.USE_MODULO_SYNTAX, L.lastStartLoc, 0, t2(O)), N = null);
|
|
768
768
|
break;
|
|
769
769
|
case 7:
|
|
770
|
-
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)),
|
|
770
|
+
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), S.items.push(u(z, O.value || ""));
|
|
771
771
|
break;
|
|
772
772
|
case 8: {
|
|
773
773
|
const e1 = H(z);
|
|
774
|
-
|
|
774
|
+
S.items.push(e1.node), w = e1.nextConsumeToken || null;
|
|
775
775
|
break;
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
778
|
} while (L.currentType !== 14 && L.currentType !== 1);
|
|
779
|
-
const
|
|
780
|
-
return l(
|
|
781
|
-
}
|
|
782
|
-
function b(z, L,
|
|
783
|
-
const
|
|
784
|
-
let w =
|
|
785
|
-
const
|
|
786
|
-
|
|
779
|
+
const B = L.currentType === 1 ? L.lastOffset : z.currentOffset(), Z = L.currentType === 1 ? L.lastEndLoc : z.currentPosition();
|
|
780
|
+
return l(S, B, Z), S;
|
|
781
|
+
}
|
|
782
|
+
function b(z, L, y, A) {
|
|
783
|
+
const S = z.context();
|
|
784
|
+
let w = A.items.length === 0;
|
|
785
|
+
const N = s(1, L, y);
|
|
786
|
+
N.cases = [], N.cases.push(A);
|
|
787
787
|
do {
|
|
788
|
-
const
|
|
789
|
-
w || (w =
|
|
790
|
-
} while (
|
|
791
|
-
return w && i(z, c1.MUST_HAVE_MESSAGES_IN_PLURAL,
|
|
788
|
+
const B = C(z);
|
|
789
|
+
w || (w = B.items.length === 0), N.cases.push(B);
|
|
790
|
+
} while (S.currentType !== 14);
|
|
791
|
+
return w && i(z, c1.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), l(N, z.currentOffset(), z.currentPosition()), N;
|
|
792
792
|
}
|
|
793
793
|
function _(z) {
|
|
794
|
-
const L = z.context(), { offset:
|
|
795
|
-
return L.currentType === 14 ?
|
|
794
|
+
const L = z.context(), { offset: y, startLoc: A } = L, S = C(z);
|
|
795
|
+
return L.currentType === 14 ? S : b(z, y, A, S);
|
|
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
|
|
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 S = m(_)(b), w = (
|
|
1409
1409
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1410
|
-
|
|
1410
|
+
y === "vnode" && C1(S) && A ? S[0] : S
|
|
1411
1411
|
);
|
|
1412
|
-
return
|
|
1412
|
+
return A ? u(A)(w, y) : w;
|
|
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, S = u1(e.fallbackContext) ? e.fallbackContext : void 0, w = e, N = u1(w.__datetimeFormatters) ? w.__datetimeFormatters : /* @__PURE__ */ new Map(), B = u1(w.__numberFormatters) ? w.__numberFormatters : /* @__PURE__ */ new Map(), Z = u1(w.__meta) ? w.__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:
|
|
1620
|
-
fallbackContext:
|
|
1618
|
+
messageResolver: y,
|
|
1619
|
+
localeFallbacker: A,
|
|
1620
|
+
fallbackContext: S,
|
|
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 = N, O.__numberFormatters = B, process.env.NODE_ENV !== "production" && (O.__v_emitter = w.__v_emitter != null ? w.__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
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
}, w = K1(L) ? L : ys(e, r, g, L,
|
|
1797
|
-
if (
|
|
1793
|
+
let A = !1;
|
|
1794
|
+
const S = () => {
|
|
1795
|
+
A = !0;
|
|
1796
|
+
}, w = K1(L) ? L : ys(e, r, g, L, y, S);
|
|
1797
|
+
if (A)
|
|
1798
1798
|
return L;
|
|
1799
|
-
const
|
|
1799
|
+
const N = dW(e, g, z, o), B = FU(N), Z = fW(e, w, 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 N = 0; N < b.length; N++) {
|
|
1980
|
+
if (g = y = b[N], 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
|
-
let
|
|
2000
|
-
Z4(u) || (
|
|
2001
|
-
let w = l.get(
|
|
2002
|
-
return w || (w = new Intl.DateTimeFormat(g, B1({}, z, u)), l.set(
|
|
1999
|
+
let S = `${g}__${r}`;
|
|
2000
|
+
Z4(u) || (S = `${S}__${JSON.stringify(u)}`);
|
|
2001
|
+
let w = l.get(S);
|
|
2002
|
+
return w || (w = new Intl.DateTimeFormat(g, B1({}, z, u)), l.set(S, w)), H ? w.formatToParts(o) : w.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 N = 0; N < b.length; N++) {
|
|
2074
|
+
if (g = y = b[N], 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
|
-
let
|
|
2094
|
-
Z4(u) || (
|
|
2095
|
-
let w = l.get(
|
|
2096
|
-
return w || (w = new Intl.NumberFormat(g, B1({}, z, u)), l.set(
|
|
2093
|
+
let S = `${g}__${r}`;
|
|
2094
|
+
Z4(u) || (S = `${S}__${JSON.stringify(u)}`);
|
|
2095
|
+
let w = l.get(S);
|
|
2096
|
+
return w || (w = new Intl.NumberFormat(g, B1({}, z, u)), l.set(S, w)), H ? w.formatToParts(o) : w.format(o);
|
|
2097
2097
|
}
|
|
2098
2098
|
const ws = [
|
|
2099
2099
|
"localeMatcher",
|
|
@@ -2420,17 +2420,17 @@ 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,
|
|
2424
|
-
const
|
|
2425
|
-
let w = e.pluralRules || a && a.pluralRules,
|
|
2426
|
-
|
|
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
|
+
const S = a ? a.modifiers : t1(e.modifiers) ? e.modifiers : {};
|
|
2425
|
+
let w = e.pluralRules || a && a.pluralRules, N;
|
|
2426
|
+
N = (() => {
|
|
2427
2427
|
i && Bi(null);
|
|
2428
|
-
const
|
|
2428
|
+
const k = {
|
|
2429
2429
|
version: CW,
|
|
2430
2430
|
locale: o.value,
|
|
2431
2431
|
fallbackLocale: m.value,
|
|
2432
2432
|
messages: u.value,
|
|
2433
|
-
modifiers:
|
|
2433
|
+
modifiers: S,
|
|
2434
2434
|
pluralRules: w,
|
|
2435
2435
|
missing: z === null ? void 0 : z,
|
|
2436
2436
|
missingWarn: H,
|
|
@@ -2438,17 +2438,17 @@ function Q8(e = {}, 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 R = tW(
|
|
2447
|
+
k.datetimeFormats = v.value, k.numberFormats = p.value, k.__datetimeFormatters = t1(N) ? N.__datetimeFormatters : void 0, k.__numberFormatters = t1(N) ? N.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (k.__v_emitter = t1(N) ? N.__v_emitter : void 0);
|
|
2448
|
+
const R = tW(k);
|
|
2449
2449
|
return i && Bi(R), R;
|
|
2450
|
-
})(), k3(
|
|
2451
|
-
function
|
|
2450
|
+
})(), k3(N, o.value, m.value);
|
|
2451
|
+
function Z() {
|
|
2452
2452
|
return [
|
|
2453
2453
|
o.value,
|
|
2454
2454
|
m.value,
|
|
@@ -2459,37 +2459,37 @@ function Q8(e = {}, c) {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
const O = E({
|
|
2461
2461
|
get: () => o.value,
|
|
2462
|
-
set: (
|
|
2463
|
-
o.value =
|
|
2462
|
+
set: (k) => {
|
|
2463
|
+
o.value = k, N.locale = o.value;
|
|
2464
2464
|
}
|
|
2465
2465
|
}), e1 = E({
|
|
2466
2466
|
get: () => m.value,
|
|
2467
|
-
set: (
|
|
2468
|
-
m.value =
|
|
2467
|
+
set: (k) => {
|
|
2468
|
+
m.value = k, N.fallbackLocale = m.value, k3(N, o.value, k);
|
|
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(k) {
|
|
2475
|
+
L = k, N.postTranslation = k;
|
|
2476
2476
|
}
|
|
2477
2477
|
function q1() {
|
|
2478
2478
|
return g;
|
|
2479
2479
|
}
|
|
2480
|
-
function O1(
|
|
2481
|
-
|
|
2480
|
+
function O1(k) {
|
|
2481
|
+
k !== null && (z = Xi(k)), g = k, N.missing = z;
|
|
2482
2482
|
}
|
|
2483
|
-
function J1(
|
|
2484
|
-
return
|
|
2483
|
+
function J1(k, R) {
|
|
2484
|
+
return k !== "translate" || !R.resolvedMessage;
|
|
2485
2485
|
}
|
|
2486
|
-
const I1 = (
|
|
2487
|
-
|
|
2486
|
+
const I1 = (k, 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 || (N.fallbackContext = a ? aW() : void 0), n3 = k(N);
|
|
2491
2491
|
} finally {
|
|
2492
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (
|
|
2492
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (N.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) {
|
|
@@ -2498,7 +2498,7 @@ function Q8(e = {}, c) {
|
|
|
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 } = N;
|
|
2502
2502
|
Li && b && Li.emit("fallback", {
|
|
2503
2503
|
type: v1,
|
|
2504
2504
|
key: j2,
|
|
@@ -2513,87 +2513,87 @@ function Q8(e = {}, c) {
|
|
|
2513
2513
|
throw w1(f1.UNEXPECTED_RETURN_TYPE);
|
|
2514
2514
|
}
|
|
2515
2515
|
};
|
|
2516
|
-
function a2(...
|
|
2517
|
-
return I1((R) => Reflect.apply(qi, null, [R, ...
|
|
2516
|
+
function a2(...k) {
|
|
2517
|
+
return I1((R) => Reflect.apply(qi, null, [R, ...k]), () => z8(...k), "translate", (R) => Reflect.apply(R.t, R, [...k]), (R) => R, (R) => q(R));
|
|
2518
2518
|
}
|
|
2519
|
-
function z2(...
|
|
2520
|
-
const [R, v1, y1] =
|
|
2519
|
+
function z2(...k) {
|
|
2520
|
+
const [R, v1, y1] = k;
|
|
2521
2521
|
if (y1 && !u1(y1))
|
|
2522
2522
|
throw w1(f1.INVALID_ARGUMENT);
|
|
2523
2523
|
return a2(R, v1, B1({ resolvedMessage: !0 }, y1 || {}));
|
|
2524
2524
|
}
|
|
2525
|
-
function A2(...
|
|
2526
|
-
return I1((R) => Reflect.apply(Ui, null, [R, ...
|
|
2525
|
+
function A2(...k) {
|
|
2526
|
+
return I1((R) => Reflect.apply(Ui, null, [R, ...k]), () => V8(...k), "datetime format", (R) => Reflect.apply(R.d, R, [...k]), () => O4, (R) => q(R));
|
|
2527
2527
|
}
|
|
2528
|
-
function F1(...
|
|
2529
|
-
return I1((R) => Reflect.apply(Gi, null, [R, ...
|
|
2528
|
+
function F1(...k) {
|
|
2529
|
+
return I1((R) => Reflect.apply(Gi, null, [R, ...k]), () => M8(...k), "number format", (R) => Reflect.apply(R.n, R, [...k]), () => O4, (R) => q(R));
|
|
2530
2530
|
}
|
|
2531
|
-
function o2(
|
|
2532
|
-
return
|
|
2531
|
+
function o2(k) {
|
|
2532
|
+
return k.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: (k) => k,
|
|
2537
2537
|
type: "vnode"
|
|
2538
2538
|
};
|
|
2539
|
-
function i3(...
|
|
2539
|
+
function i3(...k) {
|
|
2540
2540
|
return I1(
|
|
2541
2541
|
(R) => {
|
|
2542
2542
|
let v1;
|
|
2543
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, ...k]);
|
|
2546
2546
|
} finally {
|
|
2547
2547
|
y1.processor = null;
|
|
2548
2548
|
}
|
|
2549
2549
|
return v1;
|
|
2550
2550
|
},
|
|
2551
|
-
() => z8(...
|
|
2551
|
+
() => z8(...k),
|
|
2552
2552
|
"translate",
|
|
2553
2553
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2554
|
-
(R) => R[g8](...
|
|
2554
|
+
(R) => R[g8](...k),
|
|
2555
2555
|
(R) => [Zi(R)],
|
|
2556
2556
|
(R) => C1(R)
|
|
2557
2557
|
);
|
|
2558
2558
|
}
|
|
2559
|
-
function A3(...
|
|
2559
|
+
function A3(...k) {
|
|
2560
2560
|
return I1(
|
|
2561
|
-
(R) => Reflect.apply(Gi, null, [R, ...
|
|
2562
|
-
() => M8(...
|
|
2561
|
+
(R) => Reflect.apply(Gi, null, [R, ...k]),
|
|
2562
|
+
() => M8(...k),
|
|
2563
2563
|
"number format",
|
|
2564
2564
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2565
|
-
(R) => R[b8](...
|
|
2565
|
+
(R) => R[b8](...k),
|
|
2566
2566
|
Qi,
|
|
2567
2567
|
(R) => q(R) || C1(R)
|
|
2568
2568
|
);
|
|
2569
2569
|
}
|
|
2570
|
-
function _3(...
|
|
2570
|
+
function _3(...k) {
|
|
2571
2571
|
return I1(
|
|
2572
|
-
(R) => Reflect.apply(Ui, null, [R, ...
|
|
2573
|
-
() => V8(...
|
|
2572
|
+
(R) => Reflect.apply(Ui, null, [R, ...k]),
|
|
2573
|
+
() => V8(...k),
|
|
2574
2574
|
"datetime format",
|
|
2575
2575
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2576
|
-
(R) => R[C8](...
|
|
2576
|
+
(R) => R[C8](...k),
|
|
2577
2577
|
Qi,
|
|
2578
2578
|
(R) => q(R) || C1(R)
|
|
2579
2579
|
);
|
|
2580
2580
|
}
|
|
2581
|
-
function x3(
|
|
2582
|
-
w =
|
|
2581
|
+
function x3(k) {
|
|
2582
|
+
w = k, N.pluralRules = w;
|
|
2583
2583
|
}
|
|
2584
|
-
function j(
|
|
2584
|
+
function j(k, R) {
|
|
2585
2585
|
return I1(() => {
|
|
2586
|
-
if (!
|
|
2586
|
+
if (!k)
|
|
2587
2587
|
return !1;
|
|
2588
|
-
const v1 = q(R) ? R : o.value, y1 = R2(v1), _2 =
|
|
2588
|
+
const v1 = q(R) ? R : o.value, y1 = R2(v1), _2 = N.messageResolver(y1, k);
|
|
2589
2589
|
return l ? _2 != null : I2(_2) || K1(_2) || q(_2);
|
|
2590
|
-
}, () => [
|
|
2590
|
+
}, () => [k], "translate exists", (v1) => Reflect.apply(v1.te, v1, [k, R]), _W, (v1) => n1(v1));
|
|
2591
2591
|
}
|
|
2592
|
-
function d1(
|
|
2592
|
+
function d1(k) {
|
|
2593
2593
|
let R = null;
|
|
2594
|
-
const v1 = hs(
|
|
2594
|
+
const v1 = hs(N, 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 = N.messageResolver(_2, k);
|
|
2597
2597
|
if (V4 != null) {
|
|
2598
2598
|
R = V4;
|
|
2599
2599
|
break;
|
|
@@ -2601,52 +2601,52 @@ function Q8(e = {}, c) {
|
|
|
2601
2601
|
}
|
|
2602
2602
|
return R;
|
|
2603
2603
|
}
|
|
2604
|
-
function N3(
|
|
2605
|
-
const R = d1(
|
|
2606
|
-
return R ?? (a ? a.tm(
|
|
2604
|
+
function N3(k) {
|
|
2605
|
+
const R = d1(k);
|
|
2606
|
+
return R ?? (a ? a.tm(k) || {} : {});
|
|
2607
2607
|
}
|
|
2608
|
-
function R2(
|
|
2609
|
-
return u.value[
|
|
2608
|
+
function R2(k) {
|
|
2609
|
+
return u.value[k] || {};
|
|
2610
2610
|
}
|
|
2611
|
-
function y3(
|
|
2611
|
+
function y3(k, R) {
|
|
2612
2612
|
if (n) {
|
|
2613
|
-
const v1 = { [
|
|
2613
|
+
const v1 = { [k]: R };
|
|
2614
2614
|
for (const y1 in v1)
|
|
2615
2615
|
D4(v1, y1) && R3(v1[y1]);
|
|
2616
|
-
R = v1[
|
|
2616
|
+
R = v1[k];
|
|
2617
2617
|
}
|
|
2618
|
-
u.value[
|
|
2618
|
+
u.value[k] = R, N.messages = u.value;
|
|
2619
2619
|
}
|
|
2620
|
-
function i8(
|
|
2621
|
-
u.value[
|
|
2622
|
-
const v1 = { [
|
|
2620
|
+
function i8(k, R) {
|
|
2621
|
+
u.value[k] = u.value[k] || {};
|
|
2622
|
+
const v1 = { [k]: R };
|
|
2623
2623
|
if (n)
|
|
2624
2624
|
for (const y1 in v1)
|
|
2625
2625
|
D4(v1, y1) && R3(v1[y1]);
|
|
2626
|
-
R = v1[
|
|
2626
|
+
R = v1[k], S4(R, u.value[k]), N.messages = u.value;
|
|
2627
2627
|
}
|
|
2628
|
-
function V(
|
|
2629
|
-
return v.value[
|
|
2628
|
+
function V(k) {
|
|
2629
|
+
return v.value[k] || {};
|
|
2630
2630
|
}
|
|
2631
|
-
function M(
|
|
2632
|
-
v.value[
|
|
2631
|
+
function M(k, R) {
|
|
2632
|
+
v.value[k] = R, N.datetimeFormats = v.value, Wi(N, k, R);
|
|
2633
2633
|
}
|
|
2634
|
-
function P(
|
|
2635
|
-
v.value[
|
|
2634
|
+
function P(k, R) {
|
|
2635
|
+
v.value[k] = B1(v.value[k] || {}, R), N.datetimeFormats = v.value, Wi(N, k, R);
|
|
2636
2636
|
}
|
|
2637
|
-
function X(
|
|
2638
|
-
return p.value[
|
|
2637
|
+
function X(k) {
|
|
2638
|
+
return p.value[k] || {};
|
|
2639
2639
|
}
|
|
2640
|
-
function _1(
|
|
2641
|
-
p.value[
|
|
2640
|
+
function _1(k, R) {
|
|
2641
|
+
p.value[k] = R, N.numberFormats = p.value, Ji(N, k, R);
|
|
2642
2642
|
}
|
|
2643
|
-
function M1(
|
|
2644
|
-
p.value[
|
|
2643
|
+
function M1(k, R) {
|
|
2644
|
+
p.value[k] = B1(p.value[k] || {}, R), N.numberFormats = p.value, Ji(N, k, 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, (k) => {
|
|
2647
|
+
r && (o.value = k, N.locale = k, k3(N, o.value, m.value));
|
|
2648
|
+
}), l1(a.fallbackLocale, (k) => {
|
|
2649
|
+
r && (m.value = k, N.fallbackLocale = k, k3(N, o.value, m.value));
|
|
2650
2650
|
}));
|
|
2651
2651
|
const h1 = {
|
|
2652
2652
|
id: Ki,
|
|
@@ -2655,15 +2655,15 @@ function Q8(e = {}, c) {
|
|
|
2655
2655
|
get inheritLocale() {
|
|
2656
2656
|
return r;
|
|
2657
2657
|
},
|
|
2658
|
-
set inheritLocale(
|
|
2659
|
-
r =
|
|
2658
|
+
set inheritLocale(k) {
|
|
2659
|
+
r = k, k && a && (o.value = a.locale.value, m.value = a.fallbackLocale.value, k3(N, o.value, m.value));
|
|
2660
2660
|
},
|
|
2661
2661
|
get availableLocales() {
|
|
2662
2662
|
return Object.keys(u.value).sort();
|
|
2663
2663
|
},
|
|
2664
2664
|
messages: r1,
|
|
2665
2665
|
get modifiers() {
|
|
2666
|
-
return
|
|
2666
|
+
return S;
|
|
2667
2667
|
},
|
|
2668
2668
|
get pluralRules() {
|
|
2669
2669
|
return w || {};
|
|
@@ -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(k) {
|
|
2678
|
+
H = k, N.missingWarn = H;
|
|
2679
2679
|
},
|
|
2680
2680
|
get fallbackWarn() {
|
|
2681
2681
|
return C;
|
|
2682
2682
|
},
|
|
2683
|
-
set fallbackWarn(
|
|
2684
|
-
C =
|
|
2683
|
+
set fallbackWarn(k) {
|
|
2684
|
+
C = k, N.fallbackWarn = C;
|
|
2685
2685
|
},
|
|
2686
2686
|
get fallbackRoot() {
|
|
2687
2687
|
return b;
|
|
2688
2688
|
},
|
|
2689
|
-
set fallbackRoot(
|
|
2690
|
-
b =
|
|
2689
|
+
set fallbackRoot(k) {
|
|
2690
|
+
b = k;
|
|
2691
2691
|
},
|
|
2692
2692
|
get fallbackFormat() {
|
|
2693
2693
|
return _;
|
|
2694
2694
|
},
|
|
2695
|
-
set fallbackFormat(
|
|
2696
|
-
_ =
|
|
2695
|
+
set fallbackFormat(k) {
|
|
2696
|
+
_ = k, N.fallbackFormat = _;
|
|
2697
2697
|
},
|
|
2698
2698
|
get warnHtmlMessage() {
|
|
2699
|
-
return
|
|
2699
|
+
return y;
|
|
2700
2700
|
},
|
|
2701
|
-
set warnHtmlMessage(
|
|
2702
|
-
|
|
2701
|
+
set warnHtmlMessage(k) {
|
|
2702
|
+
y = k, N.warnHtmlMessage = k;
|
|
2703
2703
|
},
|
|
2704
2704
|
get escapeParameter() {
|
|
2705
|
-
return
|
|
2705
|
+
return A;
|
|
2706
2706
|
},
|
|
2707
|
-
set escapeParameter(
|
|
2708
|
-
|
|
2707
|
+
set escapeParameter(k) {
|
|
2708
|
+
A = k, N.escapeParameter = k;
|
|
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] = (k) => {
|
|
2721
|
+
N.__v_emitter = k;
|
|
2722
2722
|
}, h1[F3] = () => {
|
|
2723
|
-
|
|
2723
|
+
N.__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((w, N) => {
|
|
2733
|
+
const B = w[N] || (w[N] = {});
|
|
2734
|
+
return B1(B, A[N]), w;
|
|
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,
|
|
@@ -3674,7 +3674,7 @@ function sG(e, c, a, t = {}) {
|
|
|
3674
3674
|
u.value
|
|
3675
3675
|
];
|
|
3676
3676
|
}
|
|
3677
|
-
const
|
|
3677
|
+
const S = E({
|
|
3678
3678
|
get: () => n.value ? n.value.locale.value : l.value,
|
|
3679
3679
|
set: (j) => {
|
|
3680
3680
|
n.value && (n.value.locale.value = j), l.value = j;
|
|
@@ -3684,7 +3684,7 @@ function sG(e, c, a, t = {}) {
|
|
|
3684
3684
|
set: (j) => {
|
|
3685
3685
|
n.value && (n.value.fallbackLocale.value = j), r.value = j;
|
|
3686
3686
|
}
|
|
3687
|
-
}),
|
|
3687
|
+
}), N = 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) : {};
|
|
@@ -3749,11 +3749,11 @@ function sG(e, c, a, t = {}) {
|
|
|
3749
3749
|
get id() {
|
|
3750
3750
|
return n.value ? n.value.id : -1;
|
|
3751
3751
|
},
|
|
3752
|
-
locale:
|
|
3752
|
+
locale: S,
|
|
3753
3753
|
fallbackLocale: w,
|
|
3754
|
-
messages:
|
|
3755
|
-
datetimeFormats:
|
|
3756
|
-
numberFormats:
|
|
3754
|
+
messages: N,
|
|
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
|
|
18639
|
-
(!
|
|
18640
|
-
const w = L / 2 -
|
|
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 S = A ? A[z] : 0;
|
|
18639
|
+
(!S || !await (s.isElement == null ? void 0 : s.isElement(A))) && (S = l.floating[z] || n.floating[H]);
|
|
18640
|
+
const w = L / 2 - y / 2, N = S / 2 - C[H] / 2 - 1, B = G2(u[_], N), Z = G2(u[g], N), O = B, e1 = S - C[H] - Z, r1 = S / 2 - C[H] / 2 + w, 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
|
|
18700
|
-
const
|
|
18701
|
-
return [
|
|
18699
|
+
const S = 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]), N = ((i = S.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]) || S[0][0];
|
|
18714
|
+
return N !== l ? {
|
|
18715
18715
|
data: {
|
|
18716
18716
|
index: _ + 1,
|
|
18717
|
-
overflows:
|
|
18717
|
+
overflows: y
|
|
18718
18718
|
},
|
|
18719
18719
|
reset: {
|
|
18720
|
-
placement:
|
|
18720
|
+
placement: N
|
|
18721
18721
|
}
|
|
18722
18722
|
} : {};
|
|
18723
18723
|
}
|
|
@@ -18748,18 +18748,18 @@ 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
|
|
18751
|
+
const y = [l, ...L], A = await J6(c, b), S = [];
|
|
18752
18752
|
let w = ((t = n.flip) == null ? void 0 : t.overflows) || [];
|
|
18753
|
-
if (m &&
|
|
18753
|
+
if (m && S.push(A[_]), u) {
|
|
18754
18754
|
const O = gq(i, s, z);
|
|
18755
|
-
|
|
18755
|
+
S.push(A[O[0]], A[O[1]]);
|
|
18756
18756
|
}
|
|
18757
18757
|
if (w = [...w, {
|
|
18758
18758
|
placement: i,
|
|
18759
|
-
overflows:
|
|
18760
|
-
}], !
|
|
18761
|
-
var
|
|
18762
|
-
const O = (((
|
|
18759
|
+
overflows: S
|
|
18760
|
+
}], !S.every((O) => O <= 0)) {
|
|
18761
|
+
var N, B;
|
|
18762
|
+
const O = (((N = n.flip) == null ? void 0 : N.index) || 0) + 1, e1 = y[O];
|
|
18763
18763
|
if (e1)
|
|
18764
18764
|
return {
|
|
18765
18765
|
data: {
|
|
@@ -18770,12 +18770,12 @@ const RG = function(e) {
|
|
|
18770
18770
|
placement: e1
|
|
18771
18771
|
}
|
|
18772
18772
|
};
|
|
18773
|
-
let r1 = (
|
|
18773
|
+
let r1 = (B = w.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 = w.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,18 +18917,18 @@ 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 w = W2(r.left, 0),
|
|
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 w = W2(r.left, 0), N = W2(r.right, 0), B = W2(r.top, 0), Z = W2(r.bottom, 0);
|
|
18923
|
+
u ? A = v - 2 * (w !== 0 || N !== 0 ? w + N : 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
|
-
const
|
|
18931
|
-
return v !==
|
|
18930
|
+
const S = await i.getDimensions(n.floating);
|
|
18931
|
+
return v !== S.width || p !== S.height ? {
|
|
18932
18932
|
reset: {
|
|
18933
18933
|
rects: !0
|
|
18934
18934
|
}
|
|
@@ -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: x(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(N) {
|
|
22220
|
+
return u.classes.indexOf(N) === -1;
|
|
22221
|
+
}).filter(function(N) {
|
|
22222
|
+
return N !== "" || !!N;
|
|
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
|
-
},
|
|
22259
|
-
return
|
|
22258
|
+
}, S = A.children, w = A.attributes;
|
|
22259
|
+
return y.children = S, y.attributes = w, 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,16 +22644,16 @@ 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, S = 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
|
-
main: B8(
|
|
22656
|
+
main: B8(S),
|
|
22657
22657
|
mask: r ? B8(r.icon) : {
|
|
22658
22658
|
found: !1,
|
|
22659
22659
|
width: null,
|
|
@@ -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,
|
|
@@ -22846,8 +22846,8 @@ function Zn(e, c) {
|
|
|
22846
22846
|
return new Promise(function(t, i) {
|
|
22847
22847
|
if (e.getAttribute(a) !== null)
|
|
22848
22848
|
return t();
|
|
22849
|
-
var n = b3(e.children), s = n.filter(function(
|
|
22850
|
-
return
|
|
22849
|
+
var n = b3(e.children), s = n.filter(function(S) {
|
|
22850
|
+
return S.getAttribute(I8) === c;
|
|
22851
22851
|
})[0], l = D2.getComputedStyle(e, c), r = l.getPropertyValue("font-family").match(WJ), o = l.getPropertyValue("font-weight"), m = l.getPropertyValue("content");
|
|
22852
22852
|
if (s && !r)
|
|
22853
22853
|
return e.removeChild(s), t();
|
|
@@ -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 w = Mi(W(W({},
|
|
22862
|
+
var y = qZ(), A = y.extra;
|
|
22863
|
+
A.attributes[I8] = c, F8(g, p).then(function(S) {
|
|
22864
|
+
var w = Mi(W(W({}, y), {}, {
|
|
22865
22865
|
icons: {
|
|
22866
|
-
main:
|
|
22866
|
+
main: S,
|
|
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
|
+
})), N = L1.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
22874
|
+
c === "::before" ? e.insertBefore(N, e.firstChild) : e.appendChild(N), N.outerHTML = w.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(x(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
|
+
}, x(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(x(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, x(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(x(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, x(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(x(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, x(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(x(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, x(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(x(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, x(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
|
+
}, x(e.value), 1));
|
|
24059
24059
|
}
|
|
24060
24060
|
});
|
|
24061
24061
|
const lQ = /* @__PURE__ */ J(sQ, [["__scopeId", "data-v-ee7ab830"]]), rQ = /* @__PURE__ */ G({
|
|
@@ -24192,7 +24192,7 @@ const uQ = /* @__PURE__ */ J(fQ, [["__scopeId", "data-v-6caf6a51"]]), mQ = { cla
|
|
|
24192
24192
|
"data-test": "input-label"
|
|
24193
24193
|
}, [
|
|
24194
24194
|
f("span", null, [
|
|
24195
|
-
z1(
|
|
24195
|
+
z1(x(e.inputLabel) + " ", 1),
|
|
24196
24196
|
e.tooltipText ? G1((d(), K(u, {
|
|
24197
24197
|
key: 0,
|
|
24198
24198
|
icon: "circle-question",
|
|
@@ -24227,10 +24227,10 @@ const uQ = /* @__PURE__ */ J(fQ, [["__scopeId", "data-v-6caf6a51"]]), mQ = { cla
|
|
|
24227
24227
|
"data-test": "input-icon"
|
|
24228
24228
|
}, null, 8, ["icon"])
|
|
24229
24229
|
])) : I("", !0),
|
|
24230
|
-
s.value === void 0 ? (d(), h("span", hQ,
|
|
24230
|
+
s.value === void 0 ? (d(), h("span", hQ, x(e.placeholder), 1)) : (d(), h("span", {
|
|
24231
24231
|
key: 2,
|
|
24232
24232
|
class: "AVDropdown--selected-option",
|
|
24233
|
-
textContent:
|
|
24233
|
+
textContent: x(s.value.label)
|
|
24234
24234
|
}, null, 8, zQ)),
|
|
24235
24235
|
f("span", VQ, [
|
|
24236
24236
|
T(u, {
|
|
@@ -24252,7 +24252,7 @@ const uQ = /* @__PURE__ */ J(fQ, [["__scopeId", "data-v-6caf6a51"]]), mQ = { cla
|
|
|
24252
24252
|
_: 1
|
|
24253
24253
|
})
|
|
24254
24254
|
]),
|
|
24255
|
-
e.error && e.errorMessage ? (d(), h("p", MQ,
|
|
24255
|
+
e.error && e.errorMessage ? (d(), h("p", MQ, x(e.errorMessage), 1)) : I("", !0)
|
|
24256
24256
|
]);
|
|
24257
24257
|
};
|
|
24258
24258
|
}
|
|
@@ -24291,7 +24291,7 @@ const LQ = /* @__PURE__ */ J(bQ, [["__scopeId", "data-v-e2058f66"]]), AQ = /* @_
|
|
|
24291
24291
|
return (i, n) => (d(), h("a", {
|
|
24292
24292
|
class: "AVDropdownItem",
|
|
24293
24293
|
onClick: t
|
|
24294
|
-
},
|
|
24294
|
+
}, x(e.optionLabel), 1));
|
|
24295
24295
|
}
|
|
24296
24296
|
});
|
|
24297
24297
|
const _Q = /* @__PURE__ */ J(AQ, [["__scopeId", "data-v-2ca0bff3"]]), xQ = {
|
|
@@ -24374,7 +24374,7 @@ const _Q = /* @__PURE__ */ J(AQ, [["__scopeId", "data-v-2ca0bff3"]]), xQ = {
|
|
|
24374
24374
|
"data-test": "alert-icon"
|
|
24375
24375
|
}, null, 8, ["icon"])
|
|
24376
24376
|
])),
|
|
24377
|
-
f("span", kQ,
|
|
24377
|
+
f("span", kQ, x(e.title !== "" ? e.title : n[e.type]), 1)
|
|
24378
24378
|
]),
|
|
24379
24379
|
e.disableDismiss ? I("", !0) : (d(), h("button", {
|
|
24380
24380
|
key: 0,
|
|
@@ -24479,10 +24479,10 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24479
24479
|
const a = D1("i18n"), { t } = a.global, i = e, n = i1(!1), s = i1(null), l = i1([]);
|
|
24480
24480
|
A1(() => {
|
|
24481
24481
|
if (i.locale && p1(i.locale), i.value && (l.value = i.value), i.customOpenMethod !== null) {
|
|
24482
|
-
const [A,
|
|
24483
|
-
s.value.onclick = async (
|
|
24484
|
-
|
|
24485
|
-
const
|
|
24482
|
+
const [A, S] = i.customOpenMethod;
|
|
24483
|
+
s.value.onclick = async (w) => {
|
|
24484
|
+
w.preventDefault();
|
|
24485
|
+
const N = await A({
|
|
24486
24486
|
multiple: !1,
|
|
24487
24487
|
directory: !1,
|
|
24488
24488
|
filters: [
|
|
@@ -24492,11 +24492,11 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24492
24492
|
}
|
|
24493
24493
|
]
|
|
24494
24494
|
});
|
|
24495
|
-
if (
|
|
24496
|
-
const
|
|
24497
|
-
filePath:
|
|
24498
|
-
}),
|
|
24499
|
-
l.value.push(
|
|
24495
|
+
if (N !== null) {
|
|
24496
|
+
const B = N.split("/").pop(), Z = await S("read_local_file_content", {
|
|
24497
|
+
filePath: N
|
|
24498
|
+
}), O = new Blob([Z], { type: "plain/text" }), e1 = new File([O], B);
|
|
24499
|
+
l.value.push(e1), r("update", l.value);
|
|
24500
24500
|
}
|
|
24501
24501
|
};
|
|
24502
24502
|
}
|
|
@@ -24514,24 +24514,24 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24514
24514
|
}, u = () => {
|
|
24515
24515
|
n.value = !1;
|
|
24516
24516
|
}, v = (A) => {
|
|
24517
|
-
const
|
|
24518
|
-
for (let
|
|
24519
|
-
const
|
|
24517
|
+
const S = Array.from(A), w = new DataTransfer();
|
|
24518
|
+
for (let N of S) {
|
|
24519
|
+
const B = N.name.split(".").pop();
|
|
24520
24520
|
if (C.value.includes(
|
|
24521
|
-
`.${
|
|
24521
|
+
`.${B.toLowerCase()}`
|
|
24522
24522
|
)) {
|
|
24523
|
-
const
|
|
24524
|
-
type:
|
|
24525
|
-
lastModified:
|
|
24523
|
+
const O = new File([N], N.name, {
|
|
24524
|
+
type: N.type,
|
|
24525
|
+
lastModified: N.lastModified
|
|
24526
24526
|
});
|
|
24527
|
-
|
|
24527
|
+
w.items.add(O);
|
|
24528
24528
|
} else
|
|
24529
|
-
r("fileFormatNotAccepted",
|
|
24529
|
+
r("fileFormatNotAccepted", N.name);
|
|
24530
24530
|
}
|
|
24531
|
-
return
|
|
24531
|
+
return w.files;
|
|
24532
24532
|
}, p = E(() => i.accept.split(",")), H = E(() => i.accept.split(",").join(", ")), C = E(
|
|
24533
24533
|
() => p.value.map((A) => A.toLocaleLowerCase())
|
|
24534
|
-
), b = (A) => A.split("/").pop(),
|
|
24534
|
+
), b = (A) => Math.round(A / 1e3) > 1 ? Math.round(A / 1e3) : 1, _ = (A) => A.split("/").pop(), g = (A) => {
|
|
24535
24535
|
if (A.preventDefault(), !i.disabled) {
|
|
24536
24536
|
if (s.value.files = v(Array.from(A.dataTransfer.files)), !s.value.files.length) {
|
|
24537
24537
|
n.value = !1;
|
|
@@ -24539,18 +24539,18 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24539
24539
|
}
|
|
24540
24540
|
l.value = i.multiple ? [...s.value.files] : [s.value.files[0]], r("update", l.value), n.value = !1;
|
|
24541
24541
|
}
|
|
24542
|
-
}, g = (A) => {
|
|
24543
|
-
l.value.splice(A, 1), r("update", l.value);
|
|
24544
24542
|
}, z = (A) => {
|
|
24545
|
-
|
|
24546
|
-
return setTimeout(() => {
|
|
24547
|
-
URL.revokeObjectURL(y);
|
|
24548
|
-
}, 1e3), y;
|
|
24543
|
+
l.value.splice(A, 1), r("update", l.value);
|
|
24549
24544
|
}, L = (A) => {
|
|
24545
|
+
const S = URL.createObjectURL(A);
|
|
24546
|
+
return setTimeout(() => {
|
|
24547
|
+
URL.revokeObjectURL(S);
|
|
24548
|
+
}, 1e3), S;
|
|
24549
|
+
}, y = (A) => {
|
|
24550
24550
|
r("download", A);
|
|
24551
24551
|
};
|
|
24552
|
-
return (A,
|
|
24553
|
-
const
|
|
24552
|
+
return (A, S) => {
|
|
24553
|
+
const w = D("AVIcon"), N = B2("tooltip");
|
|
24554
24554
|
return d(), h("div", TQ, [
|
|
24555
24555
|
e.disableLabel ? I("", !0) : (d(), h("label", {
|
|
24556
24556
|
key: 0,
|
|
@@ -24559,13 +24559,13 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24559
24559
|
"data-test": "input-label"
|
|
24560
24560
|
}, [
|
|
24561
24561
|
f("span", null, [
|
|
24562
|
-
z1(
|
|
24563
|
-
e.tooltipText ? G1((d(), K(
|
|
24562
|
+
z1(x(e.inputLabel) + " ", 1),
|
|
24563
|
+
e.tooltipText ? G1((d(), K(w, {
|
|
24564
24564
|
key: 0,
|
|
24565
24565
|
icon: "circle-question",
|
|
24566
24566
|
class: "AVFileInput--tooltip-icon"
|
|
24567
24567
|
}, null, 512)), [
|
|
24568
|
-
[
|
|
24568
|
+
[N, e.tooltipText]
|
|
24569
24569
|
]) : I("", !0)
|
|
24570
24570
|
])
|
|
24571
24571
|
], 8, IQ)),
|
|
@@ -24577,7 +24577,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24577
24577
|
}]),
|
|
24578
24578
|
onDragover: m,
|
|
24579
24579
|
onDragleave: u,
|
|
24580
|
-
onDrop:
|
|
24580
|
+
onDrop: g
|
|
24581
24581
|
}, [
|
|
24582
24582
|
f("input", {
|
|
24583
24583
|
type: "file",
|
|
@@ -24592,7 +24592,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24592
24592
|
disabled: e.disabled
|
|
24593
24593
|
}, null, 40, DQ),
|
|
24594
24594
|
f("div", PQ, [
|
|
24595
|
-
T(
|
|
24595
|
+
T(w, {
|
|
24596
24596
|
icon: "fa-solid fa-cloud-arrow-up",
|
|
24597
24597
|
class: "AVFileInput--input-icon",
|
|
24598
24598
|
"data-test": "input-icon"
|
|
@@ -24600,25 +24600,25 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24600
24600
|
]),
|
|
24601
24601
|
f("div", OQ, [
|
|
24602
24602
|
n.value ? (d(), h("div", BQ, [
|
|
24603
|
-
f("div", FQ,
|
|
24603
|
+
f("div", FQ, x(F(t)("js.components.AVFileInput.release")), 1)
|
|
24604
24604
|
])) : (d(), h("div", RQ, [
|
|
24605
|
-
f("div", jQ,
|
|
24605
|
+
f("div", jQ, x(F(t)("js.components.AVFileInput.primary")), 1),
|
|
24606
24606
|
f("div", qQ, [
|
|
24607
|
-
z1(
|
|
24608
|
-
f("strong", null,
|
|
24609
|
-
z1(" " +
|
|
24607
|
+
z1(x(F(t)("js.components.AVFileInput.secondary.start")) + " ", 1),
|
|
24608
|
+
f("strong", null, x(F(t)("js.components.AVFileInput.secondary.strong")), 1),
|
|
24609
|
+
z1(" " + x(F(t)("js.components.AVFileInput.secondary.end")), 1)
|
|
24610
24610
|
])
|
|
24611
24611
|
]))
|
|
24612
24612
|
])
|
|
24613
24613
|
], 42, EQ),
|
|
24614
24614
|
e.disableAcceptedFormats ? I("", !0) : (d(), h("p", $Q, [
|
|
24615
|
-
z1(
|
|
24616
|
-
f("em", UQ,
|
|
24615
|
+
z1(x(F(t)("js.components.AVFileInput.acceptedFormats")) + " ", 1),
|
|
24616
|
+
f("em", UQ, x(H.value), 1)
|
|
24617
24617
|
])),
|
|
24618
24618
|
l.value.length ? (d(), h("div", WQ, [
|
|
24619
|
-
f("p", GQ,
|
|
24620
|
-
(d(!0), h(a1, null, g1(l.value, (
|
|
24621
|
-
key:
|
|
24619
|
+
f("p", GQ, x(F(t)("js.components.AVFileInput.uploading")), 1),
|
|
24620
|
+
(d(!0), h(a1, null, g1(l.value, (B) => (d(), h("div", {
|
|
24621
|
+
key: B.name,
|
|
24622
24622
|
class: $(["AVFileInput--preview-card", { error: e.error }])
|
|
24623
24623
|
}, [
|
|
24624
24624
|
f("div", JQ, [
|
|
@@ -24626,8 +24626,8 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24626
24626
|
e.showPreview ? (d(), h("img", {
|
|
24627
24627
|
key: 0,
|
|
24628
24628
|
class: "AVFileInput--preview-img",
|
|
24629
|
-
src:
|
|
24630
|
-
}, null, 8, YQ)) : (d(), K(
|
|
24629
|
+
src: L(B)
|
|
24630
|
+
}, null, 8, YQ)) : (d(), K(w, {
|
|
24631
24631
|
key: 1,
|
|
24632
24632
|
icon: "fa-solid fa-file",
|
|
24633
24633
|
class: "AVTextInput--preview-icon",
|
|
@@ -24635,18 +24635,18 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24635
24635
|
}))
|
|
24636
24636
|
]),
|
|
24637
24637
|
f("p", QQ, [
|
|
24638
|
-
z1(
|
|
24639
|
-
f("em", null,
|
|
24638
|
+
z1(x(B.name) + " ", 1),
|
|
24639
|
+
f("em", null, x(b(B.size) + "kb"), 1)
|
|
24640
24640
|
])
|
|
24641
24641
|
]),
|
|
24642
24642
|
e.disabled ? I("", !0) : (d(), h("button", {
|
|
24643
24643
|
key: 0,
|
|
24644
24644
|
class: "AVTextInput--delete-btn",
|
|
24645
24645
|
type: "button",
|
|
24646
|
-
onClick: (
|
|
24646
|
+
onClick: (Z) => z(l.value.indexOf(B)),
|
|
24647
24647
|
title: "Remove file"
|
|
24648
24648
|
}, [
|
|
24649
|
-
T(
|
|
24649
|
+
T(w, {
|
|
24650
24650
|
icon: "fa-solid fa-trash",
|
|
24651
24651
|
class: "AVTextInput--delete-icon",
|
|
24652
24652
|
"data-test": "file-preview-icon"
|
|
@@ -24655,33 +24655,33 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24655
24655
|
], 2))), 128))
|
|
24656
24656
|
])) : I("", !0),
|
|
24657
24657
|
e.currentValue.length ? (d(), h("div", XQ, [
|
|
24658
|
-
f("p", eK,
|
|
24659
|
-
(d(!0), h(a1, null, g1(e.currentValue, (
|
|
24660
|
-
key: `image-${
|
|
24658
|
+
f("p", eK, x(F(t)("js.components.AVFileInput.current")), 1),
|
|
24659
|
+
(d(!0), h(a1, null, g1(e.currentValue, (B) => (d(), h("div", {
|
|
24660
|
+
key: `image-${B}`
|
|
24661
24661
|
}, [
|
|
24662
24662
|
e.showPreview ? (d(), h("img", {
|
|
24663
24663
|
key: 0,
|
|
24664
24664
|
class: "AVFileInput--current-img",
|
|
24665
|
-
src:
|
|
24666
|
-
alt:
|
|
24665
|
+
src: B,
|
|
24666
|
+
alt: F(t)("js.components.AVFileInput.alt_preview")
|
|
24667
24667
|
}, null, 8, cK)) : (d(), h("div", aK, [
|
|
24668
24668
|
f("div", tK, [
|
|
24669
24669
|
f("div", iK, [
|
|
24670
|
-
T(
|
|
24670
|
+
T(w, {
|
|
24671
24671
|
icon: "fa-solid fa-file",
|
|
24672
24672
|
class: "AVTextInput--preview-icon",
|
|
24673
24673
|
"data-test": "file-preview-icon"
|
|
24674
24674
|
})
|
|
24675
24675
|
]),
|
|
24676
|
-
f("p", nK,
|
|
24676
|
+
f("p", nK, x(_(B)), 1)
|
|
24677
24677
|
]),
|
|
24678
24678
|
f("button", {
|
|
24679
24679
|
class: "AVTextInput--delete-btn",
|
|
24680
24680
|
type: "button",
|
|
24681
24681
|
title: "Download file",
|
|
24682
|
-
onClick: (
|
|
24682
|
+
onClick: (Z) => y(B)
|
|
24683
24683
|
}, [
|
|
24684
|
-
T(
|
|
24684
|
+
T(w, {
|
|
24685
24685
|
icon: "fa-solid fa-download",
|
|
24686
24686
|
class: "AVTextInput--download-icon",
|
|
24687
24687
|
"data-test": "file-download-icon"
|
|
@@ -24690,12 +24690,12 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
|
24690
24690
|
]))
|
|
24691
24691
|
]))), 128))
|
|
24692
24692
|
])) : I("", !0),
|
|
24693
|
-
e.error && e.errorMessage ? (d(), h("p", lK,
|
|
24693
|
+
e.error && e.errorMessage ? (d(), h("p", lK, x(e.errorMessage), 1)) : I("", !0)
|
|
24694
24694
|
]);
|
|
24695
24695
|
};
|
|
24696
24696
|
}
|
|
24697
24697
|
});
|
|
24698
|
-
const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-
|
|
24698
|
+
const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-bed31711"]]), 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({
|
|
24699
24699
|
__name: "AVRadio",
|
|
24700
24700
|
props: {
|
|
24701
24701
|
id: {
|
|
@@ -24743,7 +24743,7 @@ const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-455f2d1b"]]), fK = (e) =
|
|
|
24743
24743
|
disabled: e.disabled
|
|
24744
24744
|
}, null, 40, mK),
|
|
24745
24745
|
dK,
|
|
24746
|
-
z1(" " +
|
|
24746
|
+
z1(" " + x(e.value), 1)
|
|
24747
24747
|
], 10, uK));
|
|
24748
24748
|
}
|
|
24749
24749
|
});
|
|
@@ -24815,7 +24815,7 @@ const pK = /* @__PURE__ */ J(vK, [["__scopeId", "data-v-065c2914"]]), hK = ["hre
|
|
|
24815
24815
|
target: e.target,
|
|
24816
24816
|
class: $(`AVLink AVLink--${e.variant}`)
|
|
24817
24817
|
}, [
|
|
24818
|
-
f("span", null,
|
|
24818
|
+
f("span", null, x(e.label), 1),
|
|
24819
24819
|
e.disableIcon ? I("", !0) : (d(), K(t, {
|
|
24820
24820
|
key: 0,
|
|
24821
24821
|
icon: "fa-solid fa-arrow-up-right-from-square",
|
|
@@ -24889,7 +24889,7 @@ const VK = /* @__PURE__ */ J(zK, [["__scopeId", "data-v-999075bc"]]), MK = ["hre
|
|
|
24889
24889
|
icon: `fa-solid fa-${e.icon}`,
|
|
24890
24890
|
class: "AVNavbarItem--icon"
|
|
24891
24891
|
}, null, 8, ["icon"])),
|
|
24892
|
-
f("span", HK,
|
|
24892
|
+
f("span", HK, x(e.label), 1)
|
|
24893
24893
|
], 14, MK)) : (d(), h("button", {
|
|
24894
24894
|
key: 1,
|
|
24895
24895
|
class: $(["AVNavbarItem", {
|
|
@@ -24905,7 +24905,7 @@ const VK = /* @__PURE__ */ J(zK, [["__scopeId", "data-v-999075bc"]]), MK = ["hre
|
|
|
24905
24905
|
icon: `fa-solid fa-${e.icon}`,
|
|
24906
24906
|
class: "AVNavbarItem--icon"
|
|
24907
24907
|
}, null, 8, ["icon"])),
|
|
24908
|
-
f("span", CK,
|
|
24908
|
+
f("span", CK, x(e.label), 1)
|
|
24909
24909
|
], 14, gK));
|
|
24910
24910
|
};
|
|
24911
24911
|
}
|
|
@@ -24981,14 +24981,14 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
|
|
|
24981
24981
|
"aria-label": e.label,
|
|
24982
24982
|
role: "button"
|
|
24983
24983
|
}, [
|
|
24984
|
-
T(
|
|
24984
|
+
T(F(q8), {
|
|
24985
24985
|
type: l.value,
|
|
24986
24986
|
active: e.active,
|
|
24987
24987
|
value: r.value,
|
|
24988
24988
|
hover: i.value,
|
|
24989
24989
|
"aria-hidden": "true"
|
|
24990
24990
|
}, null, 8, ["type", "active", "value", "hover"]),
|
|
24991
|
-
f("span", _K,
|
|
24991
|
+
f("span", _K, x(e.label), 1)
|
|
24992
24992
|
], 42, AK)) : (d(), h("button", {
|
|
24993
24993
|
key: 1,
|
|
24994
24994
|
class: $(["AVSidebarItem", {
|
|
@@ -25001,14 +25001,14 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
|
|
|
25001
25001
|
onMouseleave: o,
|
|
25002
25002
|
"aria-label": e.label
|
|
25003
25003
|
}, [
|
|
25004
|
-
T(
|
|
25004
|
+
T(F(q8), {
|
|
25005
25005
|
type: l.value,
|
|
25006
25006
|
active: e.active,
|
|
25007
25007
|
value: r.value,
|
|
25008
25008
|
hover: i.value,
|
|
25009
25009
|
"aria-hidden": "true"
|
|
25010
25010
|
}, null, 8, ["type", "active", "value", "hover"]),
|
|
25011
|
-
f("span", NK,
|
|
25011
|
+
f("span", NK, x(e.label), 1)
|
|
25012
25012
|
], 42, xK));
|
|
25013
25013
|
}
|
|
25014
25014
|
});
|
|
@@ -25065,7 +25065,7 @@ const kK = /* @__PURE__ */ J(yK, [["__scopeId", "data-v-3e891e66"]]), SK = { cla
|
|
|
25065
25065
|
return (c, a) => {
|
|
25066
25066
|
const t = D("AVIcon"), i = B2("tooltip");
|
|
25067
25067
|
return G1((d(), h("span", SK, [
|
|
25068
|
-
e.text ? (d(), h("span", wK,
|
|
25068
|
+
e.text ? (d(), h("span", wK, x(e.text), 1)) : H1(c.$slots, "text", { key: 1 }, void 0, !0),
|
|
25069
25069
|
e.icon ? (d(), K(t, {
|
|
25070
25070
|
key: 2,
|
|
25071
25071
|
icon: e.icon,
|
|
@@ -25207,7 +25207,7 @@ const RK = /* @__PURE__ */ J(FK, [["__scopeId", "data-v-e8fb623b"]]), jK = ["hre
|
|
|
25207
25207
|
icon: `fa-solid fa-${e.icon}`,
|
|
25208
25208
|
"data-test": "option-icon"
|
|
25209
25209
|
}, null, 8, ["icon"])) : I("", !0),
|
|
25210
|
-
z1(" " +
|
|
25210
|
+
z1(" " + x(e.optionLabel), 1)
|
|
25211
25211
|
], 10, jK);
|
|
25212
25212
|
};
|
|
25213
25213
|
}
|
|
@@ -25305,7 +25305,7 @@ const $K = /* @__PURE__ */ J(qK, [["__scopeId", "data-v-8513fa9b"]]), UK = ["dis
|
|
|
25305
25305
|
class: "AVAsyncButton--icon",
|
|
25306
25306
|
"data-test": "btn-icon"
|
|
25307
25307
|
}, null, 8, ["icon"])) : I("", !0),
|
|
25308
|
-
f("span", WK,
|
|
25308
|
+
f("span", WK, x(e.label), 1)
|
|
25309
25309
|
], !0)
|
|
25310
25310
|
], 10, UK);
|
|
25311
25311
|
};
|
|
@@ -25372,7 +25372,7 @@ const JK = /* @__PURE__ */ J(GK, [["__scopeId", "data-v-7439a7ec"]]), ZK = { cla
|
|
|
25372
25372
|
class: $(`AVTabSwitcher--button ${n.value} ${H.selected ? "AVTabSwitcher--button-active" : ""} ${H.disabled ? "disabled" : ""}`),
|
|
25373
25373
|
disabled: H.disabled,
|
|
25374
25374
|
onClick: (C) => m(H.value)
|
|
25375
|
-
},
|
|
25375
|
+
}, x(H.value), 11, YK))), 128))
|
|
25376
25376
|
]));
|
|
25377
25377
|
}
|
|
25378
25378
|
});
|
|
@@ -25413,7 +25413,7 @@ const KK = /* @__PURE__ */ J(QK, [["__scopeId", "data-v-3c4a2127"]]), XK = { cla
|
|
|
25413
25413
|
}, null, 8, ["icon", "class"]),
|
|
25414
25414
|
f("span", {
|
|
25415
25415
|
class: $(["AVBallotSummary--ballot-name", { "AVBallotSummary--name-ready": a.value }])
|
|
25416
|
-
},
|
|
25416
|
+
}, x(e.ballotStyleName), 3)
|
|
25417
25417
|
]),
|
|
25418
25418
|
f("div", cX, [
|
|
25419
25419
|
a.value ? (d(), K(s, {
|
|
@@ -25428,7 +25428,7 @@ const KK = /* @__PURE__ */ J(QK, [["__scopeId", "data-v-3c4a2127"]]), XK = { cla
|
|
|
25428
25428
|
})),
|
|
25429
25429
|
f("span", {
|
|
25430
25430
|
class: $(["AVBallotSummary--ballot-status", { "AVBallotSummary--status-ready": a.value }])
|
|
25431
|
-
},
|
|
25431
|
+
}, x(a.value ? `${e.currentBallots} ${e.readyLabel}` : `${t.value} ${e.waitingLabel}`), 3)
|
|
25432
25432
|
])
|
|
25433
25433
|
]);
|
|
25434
25434
|
};
|
|
@@ -25497,8 +25497,8 @@ const tX = /* @__PURE__ */ J(aX, [["__scopeId", "data-v-2d7c011c"]]), iX = {
|
|
|
25497
25497
|
}]),
|
|
25498
25498
|
"data-test": "help-text"
|
|
25499
25499
|
}, [
|
|
25500
|
-
z1(
|
|
25501
|
-
f("strong", null,
|
|
25500
|
+
z1(x(e.expirationMessage), 1),
|
|
25501
|
+
f("strong", null, x(m.value), 1)
|
|
25502
25502
|
], 2)
|
|
25503
25503
|
], 64));
|
|
25504
25504
|
}
|
|
@@ -25531,14 +25531,14 @@ const lX = /* @__PURE__ */ J(sX, [["__scopeId", "data-v-7d0d595b"]]), rX = (e) =
|
|
|
25531
25531
|
"AVBasicSteps--step-active": a(e.steps[0])
|
|
25532
25532
|
}]),
|
|
25533
25533
|
"data-test": "step"
|
|
25534
|
-
},
|
|
25534
|
+
}, x(e.steps[0]), 3),
|
|
25535
25535
|
fX,
|
|
25536
25536
|
f("span", {
|
|
25537
25537
|
class: $(["AVBasicSteps--step", {
|
|
25538
25538
|
"AVBasicSteps--step-active": a(e.steps[1])
|
|
25539
25539
|
}]),
|
|
25540
25540
|
"data-test": "step"
|
|
25541
|
-
},
|
|
25541
|
+
}, x(e.steps[1]), 3),
|
|
25542
25542
|
e.steps.length === 3 ? (d(), h("span", uX)) : I("", !0),
|
|
25543
25543
|
e.steps.length === 3 ? (d(), h("span", {
|
|
25544
25544
|
key: 1,
|
|
@@ -25546,7 +25546,7 @@ const lX = /* @__PURE__ */ J(sX, [["__scopeId", "data-v-7d0d595b"]]), rX = (e) =
|
|
|
25546
25546
|
"AVBasicSteps--step-active": a(e.steps[2])
|
|
25547
25547
|
}]),
|
|
25548
25548
|
"data-test": "step"
|
|
25549
|
-
},
|
|
25549
|
+
}, x(e.steps[2]), 3)) : I("", !0)
|
|
25550
25550
|
]));
|
|
25551
25551
|
}
|
|
25552
25552
|
});
|
|
@@ -25614,10 +25614,10 @@ const dX = /* @__PURE__ */ J(mX, [["__scopeId", "data-v-dbd25d5c"]]), vX = { cla
|
|
|
25614
25614
|
"AVSteps--step-circle": a.value.length !== m + 1,
|
|
25615
25615
|
"AVSteps--step--number-container-active": o.active
|
|
25616
25616
|
}])
|
|
25617
|
-
},
|
|
25617
|
+
}, x(m + 1), 3)),
|
|
25618
25618
|
f("span", {
|
|
25619
25619
|
class: $(["AVSteps--step-label", { "AVSteps--step-label-active": o.active }])
|
|
25620
|
-
},
|
|
25620
|
+
}, x(o.value), 3)
|
|
25621
25621
|
], 2))), 128))
|
|
25622
25622
|
]);
|
|
25623
25623
|
};
|
|
@@ -25679,7 +25679,7 @@ const zX = /* @__PURE__ */ J(hX, [["__scopeId", "data-v-89e22cbe"]]), V$ = (e) =
|
|
|
25679
25679
|
class: "AVOptionSelect",
|
|
25680
25680
|
"aria-label": i.value
|
|
25681
25681
|
}, [
|
|
25682
|
-
e.rank ? (d(), h("span", MX,
|
|
25682
|
+
e.rank ? (d(), h("span", MX, x(e.rank), 1)) : (d(), h("svg", HX, bX))
|
|
25683
25683
|
], 8, VX)), [
|
|
25684
25684
|
[E4, e.checked]
|
|
25685
25685
|
]);
|
|
@@ -25747,7 +25747,7 @@ const AX = /* @__PURE__ */ J(LX, [["__scopeId", "data-v-59ee2583"]]), _X = { cla
|
|
|
25747
25747
|
const m = D("AVOptionSelect");
|
|
25748
25748
|
return d(), h("div", _X, [
|
|
25749
25749
|
e.exclusiveError && e.checked ? (d(), h("div", xX, [
|
|
25750
|
-
f("div", NX,
|
|
25750
|
+
f("div", NX, x(F(t)("js.components.AVOptionCheckbox.exclusive_option")), 1)
|
|
25751
25751
|
])) : I("", !0),
|
|
25752
25752
|
f("button", U8({
|
|
25753
25753
|
class: {
|
|
@@ -25936,7 +25936,7 @@ const DX = /* @__PURE__ */ J(EX, [["__scopeId", "data-v-0dc18787"]]), PX = /* @_
|
|
|
25936
25936
|
icon: t.value,
|
|
25937
25937
|
class: "AVLinkVisualizer--icon"
|
|
25938
25938
|
}, null, 8, ["icon"]),
|
|
25939
|
-
f("span", null,
|
|
25939
|
+
f("span", null, x(e.link.attributes.name), 1)
|
|
25940
25940
|
], 2);
|
|
25941
25941
|
};
|
|
25942
25942
|
}
|
|
@@ -25995,12 +25995,12 @@ const OX = /* @__PURE__ */ J(PX, [["__scopeId", "data-v-eb8f518d"]]), BX = { cla
|
|
|
25995
25995
|
f("span", {
|
|
25996
25996
|
class: $(`AVVerticalStep--title AVVerticalStep--text-${e.status}`),
|
|
25997
25997
|
"data-test": "step-title"
|
|
25998
|
-
},
|
|
25998
|
+
}, x(e.title), 3),
|
|
25999
25999
|
e.subtitle ? (d(), h("span", {
|
|
26000
26000
|
key: 0,
|
|
26001
26001
|
class: $(`AVVerticalStep--subtitle AVVerticalStep--text-${e.status}`),
|
|
26002
26002
|
"data-test": "step-subtitle"
|
|
26003
|
-
},
|
|
26003
|
+
}, x(e.subtitle), 3)) : I("", !0)
|
|
26004
26004
|
]))
|
|
26005
26005
|
]),
|
|
26006
26006
|
_: 1
|
|
@@ -26133,7 +26133,7 @@ const ZX = /* @__PURE__ */ J(JX, [["__scopeId", "data-v-90e59491"]]), YX = { cla
|
|
|
26133
26133
|
for: e.id,
|
|
26134
26134
|
class: "AVRadioGroup--label",
|
|
26135
26135
|
"data-test": "input-label"
|
|
26136
|
-
},
|
|
26136
|
+
}, x(e.inputLabel), 9, QX)),
|
|
26137
26137
|
f("div", {
|
|
26138
26138
|
class: $(`AVRadioGroup--${e.orientation}`),
|
|
26139
26139
|
"data-test": "input-group"
|
|
@@ -26148,7 +26148,7 @@ const ZX = /* @__PURE__ */ J(JX, [["__scopeId", "data-v-90e59491"]]), YX = { cla
|
|
|
26148
26148
|
onUpdate: (C) => r(p.value)
|
|
26149
26149
|
}, null, 8, ["id", "value", "checked", "disabled", "onUpdate"]))), 128))
|
|
26150
26150
|
], 2),
|
|
26151
|
-
e.error && e.errorMessage ? (d(), h("p", KX,
|
|
26151
|
+
e.error && e.errorMessage ? (d(), h("p", KX, x(e.errorMessage), 1)) : I("", !0)
|
|
26152
26152
|
]);
|
|
26153
26153
|
};
|
|
26154
26154
|
}
|
|
@@ -26205,7 +26205,7 @@ const a11 = /* @__PURE__ */ J(c11, [["__scopeId", "data-v-9fd5c53d"]]), t11 = {
|
|
|
26205
26205
|
f("a", {
|
|
26206
26206
|
href: i.active ? null : i.href,
|
|
26207
26207
|
class: $(["AVBreadcrumb--link", { "AVBreadcrumb--link-active": i.active }])
|
|
26208
|
-
},
|
|
26208
|
+
}, x(i.text), 11, n11),
|
|
26209
26209
|
T(t, {
|
|
26210
26210
|
icon: "fa-solid fa-angle-right",
|
|
26211
26211
|
class: "AVBreadcrumb--separator"
|
|
@@ -26294,9 +26294,9 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26294
26294
|
}, {
|
|
26295
26295
|
default: s1(() => [
|
|
26296
26296
|
f("div", o11, [
|
|
26297
|
-
f("span", f11,
|
|
26297
|
+
f("span", f11, x(e.id), 1),
|
|
26298
26298
|
f("div", u11, [
|
|
26299
|
-
f("span", m11,
|
|
26299
|
+
f("span", m11, x(e.name), 1),
|
|
26300
26300
|
T(s, {
|
|
26301
26301
|
type: t.value,
|
|
26302
26302
|
value: e.status
|
|
@@ -26308,8 +26308,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26308
26308
|
T(l, { icon: "fa-solid fa-location-pin" })
|
|
26309
26309
|
]),
|
|
26310
26310
|
f("span", h11, [
|
|
26311
|
-
z1(
|
|
26312
|
-
f("strong", null,
|
|
26311
|
+
z1(x(e.countyNameLabel), 1),
|
|
26312
|
+
f("strong", null, x(e.countyName), 1)
|
|
26313
26313
|
])
|
|
26314
26314
|
]),
|
|
26315
26315
|
f("div", z11, [
|
|
@@ -26317,8 +26317,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26317
26317
|
T(l, { icon: "fa-solid fa-file-circle-plus" })
|
|
26318
26318
|
]),
|
|
26319
26319
|
f("span", M11, [
|
|
26320
|
-
z1(
|
|
26321
|
-
f("strong", null,
|
|
26320
|
+
z1(x(e.createdAtLabel), 1),
|
|
26321
|
+
f("strong", null, x(e.createdAt), 1)
|
|
26322
26322
|
])
|
|
26323
26323
|
]),
|
|
26324
26324
|
f("div", H11, [
|
|
@@ -26326,8 +26326,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
|
26326
26326
|
T(l, { icon: "fa-solid fa-pen-to-square" })
|
|
26327
26327
|
]),
|
|
26328
26328
|
f("span", C11, [
|
|
26329
|
-
z1(
|
|
26330
|
-
f("strong", null,
|
|
26329
|
+
z1(x(e.lastUpdatedLabel), 1),
|
|
26330
|
+
f("strong", null, x(e.lastUpdated), 1)
|
|
26331
26331
|
])
|
|
26332
26332
|
])
|
|
26333
26333
|
])
|
|
@@ -26395,8 +26395,8 @@ const A11 = /* @__PURE__ */ J(L11, [["__scopeId", "data-v-dd72671e"]]), _11 = ["
|
|
|
26395
26395
|
T(t, { icon: "fa-solid fa-check" })
|
|
26396
26396
|
])) : I("", !0),
|
|
26397
26397
|
f("div", y11, [
|
|
26398
|
-
f("div", k11,
|
|
26399
|
-
f("div", S11,
|
|
26398
|
+
f("div", k11, x(e.name), 1),
|
|
26399
|
+
f("div", S11, x(`${e.contestQty} ${e.contestLabel}`), 1)
|
|
26400
26400
|
])
|
|
26401
26401
|
]),
|
|
26402
26402
|
f("div", w11, [
|
|
@@ -26485,14 +26485,14 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
|
|
|
26485
26485
|
const p = D("AVOptionCheckbox");
|
|
26486
26486
|
return d(), h("div", {
|
|
26487
26487
|
class: "AVSummaryOption",
|
|
26488
|
-
"aria-label":
|
|
26488
|
+
"aria-label": F(a)("js.components.AVSummaryOption.aria_label.option")
|
|
26489
26489
|
}, [
|
|
26490
26490
|
l.value ? (d(), h("div", D11, [
|
|
26491
26491
|
f("ul", P11, [
|
|
26492
26492
|
(d(!0), h(a1, null, g1(l.value, (b, _) => (d(), h("li", {
|
|
26493
26493
|
key: b + _,
|
|
26494
26494
|
class: "AVSummaryOption--breadcrumb-item"
|
|
26495
|
-
},
|
|
26495
|
+
}, x(b), 1))), 128))
|
|
26496
26496
|
])
|
|
26497
26497
|
])) : I("", !0),
|
|
26498
26498
|
f("div", {
|
|
@@ -26505,10 +26505,10 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
|
|
|
26505
26505
|
key: 0,
|
|
26506
26506
|
src: m.value,
|
|
26507
26507
|
class: "AVSummaryOption--img",
|
|
26508
|
-
alt:
|
|
26508
|
+
alt: F(a)("js.components.AVSummaryOption.aria_label.option_image")
|
|
26509
26509
|
}, null, 8, O11)) : I("", !0),
|
|
26510
26510
|
f("div", B11, [
|
|
26511
|
-
f("div", F11,
|
|
26511
|
+
f("div", F11, x(r.value), 1)
|
|
26512
26512
|
]),
|
|
26513
26513
|
s.value ? I("", !0) : (d(), h("div", R11, [
|
|
26514
26514
|
T(p, {
|
|
@@ -26658,24 +26658,24 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26658
26658
|
}), O;
|
|
26659
26659
|
}), z = E(
|
|
26660
26660
|
() => r.option.children && r.option.children.length > 0
|
|
26661
|
-
), L = E(() => r.option.selectable !== void 0 && !r.option.selectable ? 0 :
|
|
26661
|
+
), 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), S = E(() => {
|
|
26662
26662
|
const O = Array.from(Array(L.value).keys());
|
|
26663
|
-
O.forEach((
|
|
26663
|
+
O.forEach((Y) => O[Y] = Y + 1);
|
|
26664
26664
|
const e1 = O.indexOf(Math.ceil(L.value / 2)) + 1, r1 = O.slice(0, e1), U = O.slice(e1);
|
|
26665
26665
|
return U.length ? [r1, U] : [r1];
|
|
26666
|
-
}), w = E(() => r.partialResults ? r.partialResults[r.option.reference] : null),
|
|
26666
|
+
}), w = E(() => r.partialResults ? r.partialResults[r.option.reference] : null), N = (O, e1 = 1) => {
|
|
26667
26667
|
o("checked", {
|
|
26668
26668
|
reference: O,
|
|
26669
26669
|
amount: e1
|
|
26670
26670
|
});
|
|
26671
|
-
},
|
|
26671
|
+
}, B = (O) => {
|
|
26672
26672
|
if (!O)
|
|
26673
26673
|
return 0;
|
|
26674
26674
|
let e1 = O.filter(
|
|
26675
26675
|
(r1) => r.selections.map((U) => U.reference).includes(r1.reference)
|
|
26676
26676
|
).length;
|
|
26677
|
-
return O.reduce((r1, U) => r1 +
|
|
26678
|
-
},
|
|
26677
|
+
return O.reduce((r1, U) => r1 + B(U.children), e1);
|
|
26678
|
+
}, Z = (O) => {
|
|
26679
26679
|
s.value = !1, O === r.option.reference && (o("accordion-open"), is(() => {
|
|
26680
26680
|
s.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
26681
26681
|
}));
|
|
@@ -26684,10 +26684,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26684
26684
|
() => n.value.get("highlight-option"),
|
|
26685
26685
|
(O) => {
|
|
26686
26686
|
const [e1] = O ?? [];
|
|
26687
|
-
|
|
26687
|
+
Z(e1);
|
|
26688
26688
|
}
|
|
26689
26689
|
), (O, e1) => {
|
|
26690
|
-
const r1 = D("AVIcon"), U = D("AVOptionCheckbox"),
|
|
26690
|
+
const r1 = D("AVIcon"), U = D("AVOptionCheckbox"), Y = D("AVOption", !0), m1 = D("AVCollapser");
|
|
26691
26691
|
return d(), h("div", {
|
|
26692
26692
|
class: $({
|
|
26693
26693
|
"AVOption--background": !0,
|
|
@@ -26717,7 +26717,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26717
26717
|
style: W1(
|
|
26718
26718
|
e.option.accentColor ? `border-left-color: ${e.option.accentColor}` : ""
|
|
26719
26719
|
),
|
|
26720
|
-
"aria-label":
|
|
26720
|
+
"aria-label": F(t)("js.components.AVOption.aria_labels.option")
|
|
26721
26721
|
}, [
|
|
26722
26722
|
f("div", {
|
|
26723
26723
|
class: $(["AVOption--container", {
|
|
@@ -26730,12 +26730,12 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26730
26730
|
e.option.image ? (d(), h("img", {
|
|
26731
26731
|
key: 0,
|
|
26732
26732
|
src: _.value,
|
|
26733
|
-
alt:
|
|
26733
|
+
alt: F(t)("js.components.AVOption.aria_labels.option_image"),
|
|
26734
26734
|
class: "AVOption-image"
|
|
26735
26735
|
}, null, 8, J11)) : I("", !0),
|
|
26736
26736
|
f("h5", {
|
|
26737
26737
|
class: "AVOption--title",
|
|
26738
|
-
textContent:
|
|
26738
|
+
textContent: x(p.value)
|
|
26739
26739
|
}, null, 8, Z11)
|
|
26740
26740
|
]),
|
|
26741
26741
|
H.value || g.value.length || z.value || e.option.candidateId ? (d(), h("div", Y11, [
|
|
@@ -26747,13 +26747,13 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26747
26747
|
key: 0,
|
|
26748
26748
|
class: "AVOption--link",
|
|
26749
26749
|
onClick: e1[0] || (e1[0] = (O1) => o("view-candidate", e.option.candidateId))
|
|
26750
|
-
},
|
|
26750
|
+
}, x(F(t)("js.components.AVOption.view_candidate")), 1)) : I("", !0),
|
|
26751
26751
|
(d(!0), h(a1, null, g1(g.value, (O1) => (d(), h("a", {
|
|
26752
26752
|
key: O1.toString(),
|
|
26753
26753
|
href: O1.url,
|
|
26754
26754
|
class: "AVOption--link",
|
|
26755
26755
|
target: "_blank"
|
|
26756
|
-
},
|
|
26756
|
+
}, x(O1.text), 9, e21))), 128))
|
|
26757
26757
|
])) : I("", !0),
|
|
26758
26758
|
q1 && z.value ? (d(), h("div", c21, [
|
|
26759
26759
|
f("div", {
|
|
@@ -26767,18 +26767,18 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26767
26767
|
}, null, 8, ["icon"]),
|
|
26768
26768
|
f("span", {
|
|
26769
26769
|
class: "AVOption--expander-help-text",
|
|
26770
|
-
innerHTML: P1 ?
|
|
26770
|
+
innerHTML: P1 ? F(t)("js.components.AVOption.collapse_text") : F(t)("js.components.AVOption.expand_text")
|
|
26771
26771
|
}, null, 8, t21)
|
|
26772
26772
|
], 8, a21),
|
|
26773
|
-
|
|
26773
|
+
y.value && !P1 ? (d(), h("span", {
|
|
26774
26774
|
key: 0,
|
|
26775
26775
|
class: $(["AVOption--suboption-badge", {
|
|
26776
26776
|
"AVOption--suboption-badge-danger": e.invalid,
|
|
26777
26777
|
"AVOption--suboption-badge-normal": !e.invalid
|
|
26778
26778
|
}])
|
|
26779
|
-
},
|
|
26779
|
+
}, x(m.value ? `${F(t)(
|
|
26780
26780
|
"js.components.AVOption.sub_options_select"
|
|
26781
|
-
)} ${
|
|
26781
|
+
)} ${y.value}` : `${y.value} ${F(t)(
|
|
26782
26782
|
"js.components.AVOption.sub_options_select"
|
|
26783
26783
|
)}`), 3)) : I("", !0)
|
|
26784
26784
|
])) : I("", !0)
|
|
@@ -26793,7 +26793,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26793
26793
|
}),
|
|
26794
26794
|
style: W1(`background-color: ${L.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
|
|
26795
26795
|
}, [
|
|
26796
|
-
(d(!0), h(a1, null, g1(
|
|
26796
|
+
(d(!0), h(a1, null, g1(S.value, (O1) => (d(), h("div", {
|
|
26797
26797
|
key: O1.toString(),
|
|
26798
26798
|
class: "AVOption--group"
|
|
26799
26799
|
}, [
|
|
@@ -26806,7 +26806,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26806
26806
|
"option-reference": e.option.reference,
|
|
26807
26807
|
"check-box-index": J1,
|
|
26808
26808
|
disabled: e.disabled || e.observerMode,
|
|
26809
|
-
onToggled: (I1) =>
|
|
26809
|
+
onToggled: (I1) => N(e.option.reference, J1)
|
|
26810
26810
|
}, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
|
26811
26811
|
]))), 128))
|
|
26812
26812
|
], 6)) : I("", !0),
|
|
@@ -26815,10 +26815,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26815
26815
|
icon: "user",
|
|
26816
26816
|
class: "AVOption--realtime-results-icon"
|
|
26817
26817
|
}),
|
|
26818
|
-
f("span", null,
|
|
26818
|
+
f("span", null, x(m.value ? `${w.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${w.value.results.count}` : `${w.value.results.count} ${w.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
|
|
26819
26819
|
w.value.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26820
26820
|
n21,
|
|
26821
|
-
f("span", null,
|
|
26821
|
+
f("span", null, x(`${w.value.results.percentage}%`), 1)
|
|
26822
26822
|
], 64)) : I("", !0)
|
|
26823
26823
|
])) : I("", !0)
|
|
26824
26824
|
], 2)
|
|
@@ -26826,7 +26826,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26826
26826
|
]),
|
|
26827
26827
|
pane: s1(({ toggleCollapse: P1 }) => [
|
|
26828
26828
|
z.value ? (d(), h("div", r21, [
|
|
26829
|
-
(d(!0), h(a1, null, g1(e.option.children, (q1) => (d(), K(
|
|
26829
|
+
(d(!0), h(a1, null, g1(e.option.children, (q1) => (d(), K(Y, {
|
|
26830
26830
|
key: q1.reference,
|
|
26831
26831
|
option: q1,
|
|
26832
26832
|
selections: e.selections,
|
|
@@ -26852,10 +26852,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
|
26852
26852
|
icon: "user",
|
|
26853
26853
|
class: "AVOption--realtime-results-icon"
|
|
26854
26854
|
}),
|
|
26855
|
-
f("span", null,
|
|
26855
|
+
f("span", null, x(m.value ? `${w.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${w.value.results.count}` : `${w.value.results.count} ${w.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
|
|
26856
26856
|
w.value.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26857
26857
|
l21,
|
|
26858
|
-
f("span", null,
|
|
26858
|
+
f("span", null, x(`${w.value.results.percentage}%`), 1)
|
|
26859
26859
|
], 64)) : I("", !0)
|
|
26860
26860
|
])
|
|
26861
26861
|
]),
|
|
@@ -26939,10 +26939,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
|
26939
26939
|
"AVBlankOption--accent": e.accentColor
|
|
26940
26940
|
}),
|
|
26941
26941
|
style: W1(e.accentColor ? `border-left-color: ${e.accentColor}` : ""),
|
|
26942
|
-
"aria-label":
|
|
26942
|
+
"aria-label": F(a)("js.components.AVBlankOption.aria_labels.option")
|
|
26943
26943
|
}, [
|
|
26944
26944
|
f("div", m21, [
|
|
26945
|
-
f("h5", d21,
|
|
26945
|
+
f("h5", d21, x(F(a)("js.components.AVBlankOption.title")), 1),
|
|
26946
26946
|
f("div", v21, [
|
|
26947
26947
|
T(l, {
|
|
26948
26948
|
"option-reference": "blank",
|
|
@@ -26959,10 +26959,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
|
26959
26959
|
icon: "user",
|
|
26960
26960
|
class: "AVBlankOption--realtime-results-icon"
|
|
26961
26961
|
}),
|
|
26962
|
-
f("span", null,
|
|
26962
|
+
f("span", null, x(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),
|
|
26963
26963
|
e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26964
26964
|
h21,
|
|
26965
|
-
f("span", null,
|
|
26965
|
+
f("span", null, x(`${e.partialResults.results.percentage}%`), 1)
|
|
26966
26966
|
], 64)) : I("", !0)
|
|
26967
26967
|
])) : I("", !0)
|
|
26968
26968
|
])
|
|
@@ -26972,10 +26972,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
|
26972
26972
|
icon: "user",
|
|
26973
26973
|
class: "AVBlankOption--realtime-results-icon"
|
|
26974
26974
|
}),
|
|
26975
|
-
f("span", null,
|
|
26975
|
+
f("span", null, x(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),
|
|
26976
26976
|
e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
|
|
26977
26977
|
V21,
|
|
26978
|
-
f("span", null,
|
|
26978
|
+
f("span", null, x(`${e.partialResults.results.percentage}%`), 1)
|
|
26979
26979
|
], 64)) : I("", !0)
|
|
26980
26980
|
])) : I("", !0)
|
|
26981
26981
|
], 2);
|
|
@@ -27048,30 +27048,30 @@ const H21 = /* @__PURE__ */ J(M21, [["__scopeId", "data-v-ee117d09"]]), g21 = ["
|
|
|
27048
27048
|
AVWriteInOption: !0,
|
|
27049
27049
|
"AVWriteInOption--disabled": e.disabled
|
|
27050
27050
|
}),
|
|
27051
|
-
"aria-label":
|
|
27051
|
+
"aria-label": F(t)("js.components.AVWriteInOption.aria_labels.option")
|
|
27052
27052
|
}, [
|
|
27053
27053
|
f("div", C21, [
|
|
27054
27054
|
f("div", b21, [
|
|
27055
|
-
f("div", L21,
|
|
27055
|
+
f("div", L21, x(F(t)("js.components.AVWriteInOption.title")), 1),
|
|
27056
27056
|
f("div", A21, [
|
|
27057
27057
|
f("select", {
|
|
27058
27058
|
class: "AVWriteInOption--form-control",
|
|
27059
|
-
"aria-label":
|
|
27059
|
+
"aria-label": F(t)("js.components.AVWriteInOption.aria_labels.party"),
|
|
27060
27060
|
disabled: e.disabled,
|
|
27061
27061
|
onInput: m[0] || (m[0] = (v) => l(v.target.value))
|
|
27062
27062
|
}, [
|
|
27063
|
-
f("option", x21,
|
|
27063
|
+
f("option", x21, x(F(t)("js.components.AVWriteInOption.choose_party")), 1),
|
|
27064
27064
|
(d(!0), h(a1, null, g1(e.parties, (v) => (d(), h("option", {
|
|
27065
27065
|
key: v.letter,
|
|
27066
27066
|
value: v.letter,
|
|
27067
27067
|
selected: v.letter === e.partyValue
|
|
27068
|
-
},
|
|
27068
|
+
}, x(v.letter) + " - " + x(v.name), 9, N21))), 128))
|
|
27069
27069
|
], 40, _21),
|
|
27070
27070
|
f("input", {
|
|
27071
27071
|
value: e.candidateValue,
|
|
27072
27072
|
class: "AVWriteInOption--form-control",
|
|
27073
|
-
placeholder:
|
|
27074
|
-
"aria-label":
|
|
27073
|
+
placeholder: F(t)("js.components.AVWriteInOption.placeholder"),
|
|
27074
|
+
"aria-label": F(t)("js.components.AVWriteInOption.aria_labels.candidate"),
|
|
27075
27075
|
disabled: e.disabled,
|
|
27076
27076
|
onInput: m[1] || (m[1] = (v) => s(v.target.value))
|
|
27077
27077
|
}, null, 40, y21)
|
|
@@ -27146,36 +27146,36 @@ const S21 = /* @__PURE__ */ J(k21, [["__scopeId", "data-v-f2bba574"]]), w21 = (e
|
|
|
27146
27146
|
"AVSubmissionHelper--weight": !0,
|
|
27147
27147
|
"AVSubmissionHelper--weight-danger": e.errors.length > 0
|
|
27148
27148
|
})
|
|
27149
|
-
},
|
|
27149
|
+
}, x(F(a)("js.components.AVSubmissionHelper.your_vote_weight", { weight: e.weight })), 3)) : I("", !0),
|
|
27150
27150
|
e.errors.length > 0 ? (d(), h("div", I21, [
|
|
27151
27151
|
(d(!0), h(a1, null, g1(n.value, (r) => (d(), h("div", {
|
|
27152
27152
|
key: r,
|
|
27153
27153
|
role: "alert",
|
|
27154
|
-
textContent:
|
|
27154
|
+
textContent: x(r)
|
|
27155
27155
|
}, null, 8, E21))), 128)),
|
|
27156
27156
|
D21
|
|
27157
27157
|
])) : I("", !0),
|
|
27158
27158
|
e.maxMarks > 1 ? (d(), h("div", P21, [
|
|
27159
27159
|
f("div", O21, [
|
|
27160
|
-
e.minMarks === e.maxMarks ? (d(), h("div", B21,
|
|
27160
|
+
e.minMarks === e.maxMarks ? (d(), h("div", B21, x(`${F(a)("js.components.AVSubmissionHelper.select_exactly", {
|
|
27161
27161
|
min_marks: e.minMarks
|
|
27162
|
-
})}`), 1)) : (d(), h("div", F21,
|
|
27162
|
+
})}`), 1)) : (d(), h("div", F21, x(`${e.hasExclusiveOptions ? F(a)(
|
|
27163
27163
|
"js.components.AVSubmissionHelper.select_multiple_with_exclusives",
|
|
27164
27164
|
{ min_marks: e.minMarks, max_marks: e.maxMarks }
|
|
27165
|
-
) :
|
|
27165
|
+
) : F(a)("js.components.AVSubmissionHelper.select_multiple", {
|
|
27166
27166
|
min_marks: e.minMarks,
|
|
27167
27167
|
max_marks: e.maxMarks
|
|
27168
27168
|
})}`), 1)),
|
|
27169
27169
|
e.chosenCount > 0 ? (d(), h("div", {
|
|
27170
27170
|
key: 2,
|
|
27171
|
-
innerHTML:
|
|
27171
|
+
innerHTML: F(a)("js.components.AVSubmissionHelper.selected", {
|
|
27172
27172
|
selected: e.chosenCount
|
|
27173
27173
|
}),
|
|
27174
27174
|
class: "AVSubmissionHelper--count"
|
|
27175
27175
|
}, null, 8, R21)) : I("", !0)
|
|
27176
27176
|
])
|
|
27177
27177
|
])) : (d(), h("div", j21, [
|
|
27178
|
-
f("div", null,
|
|
27178
|
+
f("div", null, x(F(a)("js.components.AVSubmissionHelper.select_single")), 1)
|
|
27179
27179
|
]))
|
|
27180
27180
|
], 2)
|
|
27181
27181
|
]));
|
|
@@ -27238,7 +27238,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27238
27238
|
return (v, p) => (d(), h("form", {
|
|
27239
27239
|
role: "search",
|
|
27240
27240
|
class: "AVSearchBallot",
|
|
27241
|
-
"aria-label":
|
|
27241
|
+
"aria-label": F(a)("js.components.AVSearchBallot.aria_labels.ballot_options"),
|
|
27242
27242
|
onSubmit: p[1] || (p[1] = m2(() => {
|
|
27243
27243
|
}, ["prevent"]))
|
|
27244
27244
|
}, [
|
|
@@ -27246,7 +27246,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27246
27246
|
f("label", {
|
|
27247
27247
|
for: "ballot_search",
|
|
27248
27248
|
class: "AVSearchBallot--label",
|
|
27249
|
-
textContent:
|
|
27249
|
+
textContent: x(F(a)("js.components.AVSearchBallot.search_the_ballot"))
|
|
27250
27250
|
}, null, 8, J21),
|
|
27251
27251
|
f("div", Z21, [
|
|
27252
27252
|
G1(f("input", {
|
|
@@ -27254,7 +27254,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27254
27254
|
"onUpdate:modelValue": p[0] || (p[0] = (H) => s.value = H),
|
|
27255
27255
|
type: "search",
|
|
27256
27256
|
class: "AVSearchBallot--form-control",
|
|
27257
|
-
placeholder:
|
|
27257
|
+
placeholder: F(a)("js.components.AVSearchBallot.enter_option_name")
|
|
27258
27258
|
}, null, 8, Y21), [
|
|
27259
27259
|
[ls, s.value]
|
|
27260
27260
|
])
|
|
@@ -27270,26 +27270,26 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
|
27270
27270
|
(d(!0), h(a1, null, g1(r(H), (C) => (d(), h("li", {
|
|
27271
27271
|
key: C.reference,
|
|
27272
27272
|
class: "AVSeachOptionBallot--breadcrumb-item"
|
|
27273
|
-
},
|
|
27273
|
+
}, x(C.title[t.value]), 1))), 128))
|
|
27274
27274
|
])
|
|
27275
27275
|
])) : I("", !0),
|
|
27276
27276
|
f("div", {
|
|
27277
27277
|
id: `search_result_${H.reference}`,
|
|
27278
27278
|
class: "AVSearchBallot--option",
|
|
27279
27279
|
role: "button",
|
|
27280
|
-
"aria-label":
|
|
27280
|
+
"aria-label": F(a)("js.components.AVSearchBallot.aria_labels.go_to_option"),
|
|
27281
27281
|
onClick: m2((C) => u(H), ["prevent"])
|
|
27282
27282
|
}, [
|
|
27283
27283
|
f("span", {
|
|
27284
27284
|
class: "AVSearchBallot--link",
|
|
27285
|
-
textContent:
|
|
27285
|
+
textContent: x(H.title[t.value])
|
|
27286
27286
|
}, null, 8, a31)
|
|
27287
27287
|
], 8, c31)
|
|
27288
27288
|
], 8, K21))), 128)),
|
|
27289
27289
|
s.value && l.value.length === 0 ? (d(), h("div", {
|
|
27290
27290
|
key: 0,
|
|
27291
27291
|
class: "AVSearchBallot--alert",
|
|
27292
|
-
textContent:
|
|
27292
|
+
textContent: x(F(a)("js.components.AVSearchBallot.no_results"))
|
|
27293
27293
|
}, null, 8, t31)) : I("", !0)
|
|
27294
27294
|
])
|
|
27295
27295
|
], 40, W21));
|
|
@@ -27328,20 +27328,20 @@ const n31 = /* @__PURE__ */ J(i31, [["__scopeId", "data-v-727c3aa7"]]), s31 = {
|
|
|
27328
27328
|
), (i, n) => (d(), h("div", s31, [
|
|
27329
27329
|
f("div", l31, [
|
|
27330
27330
|
f("span", null, [
|
|
27331
|
-
z1(
|
|
27332
|
-
f("strong", null,
|
|
27331
|
+
z1(x(F(a)("js.components.AVSplitWeightHelper.total")) + " ", 1),
|
|
27332
|
+
f("strong", null, x(e.assignedWeight + e.unusedWeight), 1)
|
|
27333
27333
|
])
|
|
27334
27334
|
]),
|
|
27335
27335
|
f("div", r31, [
|
|
27336
27336
|
f("span", null, [
|
|
27337
|
-
z1(
|
|
27338
|
-
f("strong", null,
|
|
27337
|
+
z1(x(F(a)("js.components.AVSplitWeightHelper.assigned")) + " ", 1),
|
|
27338
|
+
f("strong", null, x(e.assignedWeight), 1)
|
|
27339
27339
|
])
|
|
27340
27340
|
]),
|
|
27341
27341
|
f("div", o31, [
|
|
27342
27342
|
f("span", null, [
|
|
27343
|
-
z1(
|
|
27344
|
-
f("strong", null,
|
|
27343
|
+
z1(x(F(a)("js.components.AVSplitWeightHelper.unused")) + " ", 1),
|
|
27344
|
+
f("strong", null, x(e.unusedWeight), 1)
|
|
27345
27345
|
])
|
|
27346
27346
|
])
|
|
27347
27347
|
]));
|
|
@@ -27400,9 +27400,9 @@ const u31 = /* @__PURE__ */ J(f31, [["__scopeId", "data-v-f145cdd2"]]), m31 = {
|
|
|
27400
27400
|
), (i, n) => {
|
|
27401
27401
|
const s = D("AVTooltip");
|
|
27402
27402
|
return d(), h("header", m31, [
|
|
27403
|
-
e.activeState === "ballot" ? (d(), h("p", d31,
|
|
27403
|
+
e.activeState === "ballot" ? (d(), h("p", d31, x(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, x(e.isEditing ? `${F(a)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}` : `${F(a)(
|
|
27404
27404
|
"js.components.AVSplitWizardHeader.assign.header_edit_mode"
|
|
27405
|
-
)} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31,
|
|
27405
|
+
)} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31, x(F(a)("js.components.AVSplitWizardHeader.overview.header")), 1)),
|
|
27406
27406
|
(e.activeState, I("", !0))
|
|
27407
27407
|
]);
|
|
27408
27408
|
};
|
|
@@ -27451,7 +27451,7 @@ const z31 = /* @__PURE__ */ J(h31, [["__scopeId", "data-v-8df55e3a"]]), V31 = "d
|
|
|
27451
27451
|
}, [
|
|
27452
27452
|
H31,
|
|
27453
27453
|
f("img", {
|
|
27454
|
-
src:
|
|
27454
|
+
src: F(V31),
|
|
27455
27455
|
alt: "Assembly Voting",
|
|
27456
27456
|
class: "AVFooter--img"
|
|
27457
27457
|
}, null, 8, g31)
|
|
@@ -27746,70 +27746,70 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
|
27746
27746
|
const l = i1(!1), r = i1(""), o = i1(""), m = i1(null), u = E(() => n.selectionPile.optionSelections), v = E(() => new C$(n.contest)), p = E(
|
|
27747
27747
|
() => n.contest.disregardVoterWeight ? null : n.weight
|
|
27748
27748
|
), H = E(() => {
|
|
27749
|
-
var
|
|
27750
|
-
let
|
|
27751
|
-
return (
|
|
27749
|
+
var B;
|
|
27750
|
+
let N = [];
|
|
27751
|
+
return (B = n.contest.customRulesets) != null && B.includes("belgian_ballot_rules") && N.push(new $31(n.contest)), N;
|
|
27752
27752
|
}), C = E(() => {
|
|
27753
|
-
let
|
|
27754
|
-
H.value.forEach((
|
|
27755
|
-
|
|
27753
|
+
let N = [];
|
|
27754
|
+
H.value.forEach((Z) => {
|
|
27755
|
+
N.push(...Z.validate(n.selectionPile));
|
|
27756
27756
|
});
|
|
27757
|
-
const
|
|
27757
|
+
const B = [
|
|
27758
27758
|
...v.value.validate(n.selectionPile, n.includeLazyErrors),
|
|
27759
|
-
...
|
|
27759
|
+
...N
|
|
27760
27760
|
];
|
|
27761
|
-
if (g.value &&
|
|
27762
|
-
let
|
|
27763
|
-
|
|
27761
|
+
if (g.value && B.some((Z) => Z.message === "cross_party_voting")) {
|
|
27762
|
+
let Z;
|
|
27763
|
+
B.some((O) => O.message === "exclusive") && (Z = B.findIndex(
|
|
27764
27764
|
(O) => O.message === "exclusive"
|
|
27765
|
-
),
|
|
27765
|
+
), B.splice(Z, 1)), B.some((O) => O.message === "blank") && (Z = B.findIndex(
|
|
27766
27766
|
(O) => O.message === "cross_party_voting"
|
|
27767
|
-
),
|
|
27767
|
+
), B.splice(Z, 1));
|
|
27768
27768
|
}
|
|
27769
|
-
return s("update:errors",
|
|
27769
|
+
return s("update:errors", B), B;
|
|
27770
27770
|
}), b = E(() => C.value.length === 0), _ = E(() => {
|
|
27771
|
-
var
|
|
27772
|
-
return (
|
|
27771
|
+
var N;
|
|
27772
|
+
return (N = n.contest.question) == null ? void 0 : N[i.value];
|
|
27773
27773
|
}), g = E(
|
|
27774
27774
|
() => {
|
|
27775
|
-
var
|
|
27776
|
-
return (
|
|
27775
|
+
var N;
|
|
27776
|
+
return (N = n.contest.customRulesets) == null ? void 0 : N.includes("belgian_ballot_rules");
|
|
27777
27777
|
}
|
|
27778
27778
|
), z = E(() => w(n.contest.options).some(
|
|
27779
|
-
(
|
|
27779
|
+
(N) => N.exclusive
|
|
27780
27780
|
)), L = E(() => n.contest);
|
|
27781
|
-
l1(L, (
|
|
27782
|
-
var
|
|
27783
|
-
|
|
27781
|
+
l1(L, (N, B) => {
|
|
27782
|
+
var Z;
|
|
27783
|
+
B && N && N.reference !== B.reference && ((Z = document.getElementById("content")) == null || Z.focus(), B.searchForm && (m.value.value = ""));
|
|
27784
27784
|
});
|
|
27785
|
-
const
|
|
27785
|
+
const y = () => {
|
|
27786
27786
|
s("update:selectionPile", {
|
|
27787
27787
|
...n.selectionPile,
|
|
27788
27788
|
explicitBlank: !n.selectionPile.explicitBlank
|
|
27789
27789
|
});
|
|
27790
|
-
},
|
|
27791
|
-
const
|
|
27792
|
-
(e1) => e1.reference ===
|
|
27790
|
+
}, A = ({ reference: N, amount: B }) => {
|
|
27791
|
+
const Z = u.value.filter(
|
|
27792
|
+
(e1) => e1.reference === N
|
|
27793
27793
|
).length;
|
|
27794
|
-
|
|
27794
|
+
B === Z && (B = B - 1);
|
|
27795
27795
|
const O = u.value.filter(
|
|
27796
|
-
(e1) => e1.reference !==
|
|
27796
|
+
(e1) => e1.reference !== N
|
|
27797
27797
|
);
|
|
27798
|
-
for (let e1 = 0; e1 <
|
|
27799
|
-
O.push({ reference:
|
|
27798
|
+
for (let e1 = 0; e1 < B; e1++)
|
|
27799
|
+
O.push({ reference: N });
|
|
27800
27800
|
s("update:selectionPile", {
|
|
27801
27801
|
...n.selectionPile,
|
|
27802
27802
|
optionSelections: O
|
|
27803
27803
|
});
|
|
27804
|
-
},
|
|
27805
|
-
return (
|
|
27806
|
-
const
|
|
27804
|
+
}, S = (N) => s("view-candidate", N), w = (N, B) => N.flatMap((Z) => (B && (Z.parentContent = B), Z.children ? [Z, ...w(Z.children, Z)] : [Z]));
|
|
27805
|
+
return (N, B) => {
|
|
27806
|
+
const Z = D("AVSearchBallot"), O = D("AVWriteInOption"), e1 = D("AVOption"), r1 = D("AVBlankOption"), U = D("AVSubmissionHelper");
|
|
27807
27807
|
return d(), h("div", {
|
|
27808
27808
|
class: $({
|
|
27809
27809
|
AVBallot: !0,
|
|
27810
27810
|
"AVBallot--error": !b.value
|
|
27811
27811
|
}),
|
|
27812
|
-
"aria-label":
|
|
27812
|
+
"aria-label": F(t)("js.components.AVBallot.aria_labels.ballot"),
|
|
27813
27813
|
"aria-describedby": `ballot_${e.contest.reference}`
|
|
27814
27814
|
}, [
|
|
27815
27815
|
_.value ? (d(), h("h5", {
|
|
@@ -27817,8 +27817,8 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
|
27817
27817
|
id: `ballot_${e.contest.reference}_question`,
|
|
27818
27818
|
class: "AVBallot--question",
|
|
27819
27819
|
"aria-live": "polite"
|
|
27820
|
-
},
|
|
27821
|
-
e.contest.searchForm && !e.disabled && !e.observerMode ? (d(), K(
|
|
27820
|
+
}, x(_.value), 9, G31)) : I("", !0),
|
|
27821
|
+
e.contest.searchForm && !e.disabled && !e.observerMode ? (d(), K(Z, {
|
|
27822
27822
|
key: 1,
|
|
27823
27823
|
ref_key: "search",
|
|
27824
27824
|
ref: m,
|
|
@@ -27831,50 +27831,50 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
|
27831
27831
|
class: $({
|
|
27832
27832
|
"AVBallot--options": !0,
|
|
27833
27833
|
"AVBallot--options-with-list": e.contest.options.some(
|
|
27834
|
-
(
|
|
27834
|
+
(Y) => Y.children
|
|
27835
27835
|
)
|
|
27836
27836
|
}),
|
|
27837
|
-
"aria-label":
|
|
27837
|
+
"aria-label": F(t)("js.components.AVBallot.aria_labels.ballot_options")
|
|
27838
27838
|
}, [
|
|
27839
|
-
(d(!0), h(a1, null, g1(e.contest.options, (
|
|
27840
|
-
key:
|
|
27839
|
+
(d(!0), h(a1, null, g1(e.contest.options, (Y) => (d(), h(a1, {
|
|
27840
|
+
key: Y.reference
|
|
27841
27841
|
}, [
|
|
27842
|
-
|
|
27842
|
+
Y.writeIn ? (d(), K(O, {
|
|
27843
27843
|
key: 0,
|
|
27844
27844
|
"candidate-value": o.value,
|
|
27845
|
-
"onUpdate:candidateValue":
|
|
27845
|
+
"onUpdate:candidateValue": B[0] || (B[0] = (m1) => o.value = m1),
|
|
27846
27846
|
"party-value": r.value,
|
|
27847
|
-
"onUpdate:partyValue":
|
|
27847
|
+
"onUpdate:partyValue": B[1] || (B[1] = (m1) => r.value = m1),
|
|
27848
27848
|
"checked-value": l.value,
|
|
27849
|
-
"onUpdate:checkedValue":
|
|
27849
|
+
"onUpdate:checkedValue": B[2] || (B[2] = (m1) => l.value = m1),
|
|
27850
27850
|
parties: [],
|
|
27851
27851
|
disabled: e.disabled,
|
|
27852
27852
|
observerMode: e.observerMode
|
|
27853
27853
|
}, null, 8, ["candidate-value", "party-value", "checked-value", "disabled", "observerMode"])) : (d(), K(e1, {
|
|
27854
27854
|
key: 1,
|
|
27855
27855
|
selections: u.value,
|
|
27856
|
-
option:
|
|
27856
|
+
option: Y,
|
|
27857
27857
|
invalid: !b.value,
|
|
27858
|
-
"exclusive-error": !g.value &&
|
|
27858
|
+
"exclusive-error": !g.value && Y.exclusive && C.value.some((m1) => m1.message.includes("exclusive")),
|
|
27859
27859
|
contest: e.contest,
|
|
27860
27860
|
disabled: e.disabled,
|
|
27861
27861
|
observerMode: e.observerMode,
|
|
27862
27862
|
"partial-results": e.partialResults,
|
|
27863
27863
|
"image-option": e.imageOption,
|
|
27864
|
-
onChecked:
|
|
27865
|
-
onViewCandidate:
|
|
27864
|
+
onChecked: A,
|
|
27865
|
+
onViewCandidate: S
|
|
27866
27866
|
}, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results", "image-option"]))
|
|
27867
27867
|
], 64))), 128)),
|
|
27868
27868
|
e.contest.markingType.blankSubmission === "active_choice" ? (d(), K(r1, {
|
|
27869
27869
|
key: 0,
|
|
27870
27870
|
checked: e.selectionPile.explicitBlank,
|
|
27871
|
-
error: !g.value && C.value.some((
|
|
27871
|
+
error: !g.value && C.value.some((Y) => Y.message.includes("blank")),
|
|
27872
27872
|
disabled: e.disabled,
|
|
27873
27873
|
invalid: !b.value,
|
|
27874
27874
|
observerMode: e.observerMode,
|
|
27875
27875
|
accentColor: e.contest.blankOptionColor,
|
|
27876
27876
|
"partial-results": e.partialResults ? e.partialResults.blank : null,
|
|
27877
|
-
onToggleBlank:
|
|
27877
|
+
onToggleBlank: y
|
|
27878
27878
|
}, null, 8, ["checked", "error", "disabled", "invalid", "observerMode", "accentColor", "partial-results"])) : I("", !0)
|
|
27879
27879
|
], 10, Z31),
|
|
27880
27880
|
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (d(), K(U, {
|
|
@@ -28005,10 +28005,10 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28005
28005
|
const _ = D("AVSummaryOption"), g = D("AVIcon");
|
|
28006
28006
|
return e.activeState === "summary" ? (d(), h("div", X31, [
|
|
28007
28007
|
e.contest.markingType.maxPiles !== 1 ? (d(), h("header", e41, [
|
|
28008
|
-
f("span", null,
|
|
28009
|
-
f("span", c41,
|
|
28008
|
+
f("span", null, x(F(t)("js.components.AVPileSummary.selection")) + " " + x(e.pileIndex + 1) + " / " + x(e.totalPiles), 1),
|
|
28009
|
+
f("span", c41, x(e.selectionPile.multiplier) + " " + x(F(t)("js.components.AVPileSummary.ballots")), 1)
|
|
28010
28010
|
])) : (d(), h("header", a41, [
|
|
28011
|
-
f("span", null,
|
|
28011
|
+
f("span", null, x(F(t)("js.components.AVPileSummary.selection")), 1)
|
|
28012
28012
|
])),
|
|
28013
28013
|
f("div", t41, [
|
|
28014
28014
|
(d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), K(_, {
|
|
@@ -28027,29 +28027,29 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28027
28027
|
f("div", n41, [
|
|
28028
28028
|
f("div", {
|
|
28029
28029
|
class: "AVPileSummary--assign-header",
|
|
28030
|
-
"aria-label":
|
|
28030
|
+
"aria-label": F(t)("js.components.AVPileSummary.aria_labels.edit_selection"),
|
|
28031
28031
|
role: "button",
|
|
28032
28032
|
onClick: b[0] || (b[0] = (z) => n("editCurrentSelection"))
|
|
28033
28033
|
}, [
|
|
28034
28034
|
f("div", l41, [
|
|
28035
28035
|
T(g, { icon: "pen-to-square" }),
|
|
28036
|
-
f("span", null,
|
|
28036
|
+
f("span", null, x(F(t)("js.components.AVPileSummary.ballot_selection")) + " " + x(e.pileIndex + 1), 1)
|
|
28037
28037
|
]),
|
|
28038
|
-
e.activeState === "overview" || e.isEditing ? (d(), h("span", r41,
|
|
28038
|
+
e.activeState === "overview" || e.isEditing ? (d(), h("span", r41, x(F(t)("js.components.AVPileSummary.assigned")) + " " + x(e.selectionPile.multiplier), 1)) : I("", !0)
|
|
28039
28039
|
], 8, s41),
|
|
28040
28040
|
f("div", o41, [
|
|
28041
|
-
o.value ? (d(), h("p", f41,
|
|
28041
|
+
o.value ? (d(), h("p", f41, x(F(t)("js.components.AVPileSummary.blank")), 1)) : I("", !0),
|
|
28042
28042
|
(d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), h("p", {
|
|
28043
28043
|
key: L,
|
|
28044
28044
|
class: "AVPileSummary--assign-text"
|
|
28045
|
-
},
|
|
28045
|
+
}, x(z.rank ? `${z.rank}: ` : "") + x(z.title), 1))), 128)),
|
|
28046
28046
|
(d(!0), h(a1, null, g1(H.value.writeIns, (z, L) => (d(), h("p", {
|
|
28047
28047
|
key: L,
|
|
28048
28048
|
class: "AVPileSummary--assign-text"
|
|
28049
28049
|
}, [
|
|
28050
|
-
f("b", null,
|
|
28050
|
+
f("b", null, x(z.partyLetter) + " - " + x(z.partyName), 1),
|
|
28051
28051
|
u41,
|
|
28052
|
-
f("span", null,
|
|
28052
|
+
f("span", null, x(z.candidateName), 1)
|
|
28053
28053
|
]))), 128)),
|
|
28054
28054
|
u.value > 0 ? (d(), h("p", {
|
|
28055
28055
|
key: 1,
|
|
@@ -28058,9 +28058,9 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28058
28058
|
onClick: b[1] || (b[1] = m2((z) => l.value = !0, ["stop", "prevent"]))
|
|
28059
28059
|
}, [
|
|
28060
28060
|
f("u", null, [
|
|
28061
|
-
f("em", null,
|
|
28061
|
+
f("em", null, x(`${F(t)(
|
|
28062
28062
|
"js.components.AVPileSummary.and_n_more_pre"
|
|
28063
|
-
)} ${u.value} ${
|
|
28063
|
+
)} ${u.value} ${F(t)(
|
|
28064
28064
|
"js.components.AVPileSummary.and_n_more_pos"
|
|
28065
28065
|
)}`), 1)
|
|
28066
28066
|
])
|
|
@@ -28072,7 +28072,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28072
28072
|
onClick: b[2] || (b[2] = m2((z) => l.value = !1, ["stop", "prevent"]))
|
|
28073
28073
|
}, [
|
|
28074
28074
|
f("u", null, [
|
|
28075
|
-
f("em", null,
|
|
28075
|
+
f("em", null, x(F(t)("js.components.AVPileSummary.show_less")), 1)
|
|
28076
28076
|
])
|
|
28077
28077
|
])) : I("", !0)
|
|
28078
28078
|
])
|
|
@@ -28081,7 +28081,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
|
28081
28081
|
key: 0,
|
|
28082
28082
|
class: "AVPileSummary--assign-delete-button",
|
|
28083
28083
|
role: "button",
|
|
28084
|
-
"aria-label":
|
|
28084
|
+
"aria-label": F(t)("js.components.AVPileSummary.aria_labels.delete_selection"),
|
|
28085
28085
|
onClick: b[3] || (b[3] = m2((z) => n("deleteSelection"), ["stop", "prevent"]))
|
|
28086
28086
|
}, [
|
|
28087
28087
|
T(g, { icon: "trash-can" })
|
|
@@ -28196,7 +28196,7 @@ const V41 = {
|
|
|
28196
28196
|
), m = i1([]), u = E(() => n.contestSelection.piles), v = E(
|
|
28197
28197
|
() => {
|
|
28198
28198
|
var U;
|
|
28199
|
-
return (U = u.value) == null ? void 0 : U.reduce((
|
|
28199
|
+
return (U = u.value) == null ? void 0 : U.reduce((Y, m1) => Y - m1.multiplier, n.weight);
|
|
28200
28200
|
}
|
|
28201
28201
|
), p = E(
|
|
28202
28202
|
() => new C$(n.contest)
|
|
@@ -28210,16 +28210,16 @@ const V41 = {
|
|
|
28210
28210
|
)), b = E(
|
|
28211
28211
|
() => {
|
|
28212
28212
|
var U;
|
|
28213
|
-
return (U = u.value) == null ? void 0 : U.reduce((
|
|
28213
|
+
return (U = u.value) == null ? void 0 : U.reduce((Y, m1) => Y + m1.multiplier, 0);
|
|
28214
28214
|
}
|
|
28215
28215
|
), _ = E(() => {
|
|
28216
28216
|
var U;
|
|
28217
28217
|
return (U = r.value) == null ? void 0 : U.multiplier;
|
|
28218
28218
|
}), g = E(
|
|
28219
|
-
() => u.value.filter((U,
|
|
28219
|
+
() => u.value.filter((U, Y) => Y !== l.value).reduce((U, Y) => U - Y.multiplier, n.weight)
|
|
28220
28220
|
), z = E(
|
|
28221
28221
|
() => n.contest.markingType.maxPiles !== 1 && n.weight > 1
|
|
28222
|
-
), L = E(() => l.value !== null),
|
|
28222
|
+
), L = E(() => l.value !== null), y = (U) => p.value.isComplete(U), A = (U) => p.value.validate(U, n.includeLazyErrors).length > 0, S = () => {
|
|
28223
28223
|
if (z.value) {
|
|
28224
28224
|
const U = [...u.value];
|
|
28225
28225
|
l.value === null ? U.push({ ...r.value }) : U.splice(l.value, 1, {
|
|
@@ -28234,16 +28234,16 @@ const V41 = {
|
|
|
28234
28234
|
piles: [r.value]
|
|
28235
28235
|
});
|
|
28236
28236
|
}, w = (U) => {
|
|
28237
|
-
r.value = U, z.value ||
|
|
28238
|
-
},
|
|
28237
|
+
r.value = U, z.value || S();
|
|
28238
|
+
}, N = () => {
|
|
28239
28239
|
r.value = {
|
|
28240
28240
|
optionSelections: [],
|
|
28241
28241
|
multiplier: g.value,
|
|
28242
28242
|
explicitBlank: !1
|
|
28243
28243
|
}, l.value = null, o.value = "ballot";
|
|
28244
|
-
},
|
|
28244
|
+
}, B = (U) => {
|
|
28245
28245
|
u.value.splice(U, 1);
|
|
28246
|
-
},
|
|
28246
|
+
}, Z = (U) => {
|
|
28247
28247
|
r.value = { ...u.value[U] }, l.value = U, o.value = "ballot";
|
|
28248
28248
|
}, O = (U) => {
|
|
28249
28249
|
m.value = U;
|
|
@@ -28256,12 +28256,12 @@ const V41 = {
|
|
|
28256
28256
|
}), l1(r, (U) => {
|
|
28257
28257
|
s("update:activePile", U);
|
|
28258
28258
|
}), l1(o, (U) => s("update:activeState", U)), A1(() => {
|
|
28259
|
-
n.locale && p1(n.locale), s("update:activePile", r.value), s("update:activeState", o.value), s("update:complete", C.value), z.value ||
|
|
28260
|
-
}), (U,
|
|
28259
|
+
n.locale && p1(n.locale), s("update:activePile", r.value), s("update:activeState", o.value), s("update:complete", C.value), z.value || S();
|
|
28260
|
+
}), (U, Y) => {
|
|
28261
28261
|
var I1;
|
|
28262
28262
|
const m1 = D("AVSplitWizardHeader"), P1 = D("AVBallot"), q1 = D("AVPileSummary"), O1 = D("AVSplitWeightHelper"), J1 = D("AVIcon");
|
|
28263
28263
|
return d(), h(a1, null, [
|
|
28264
|
-
f("h3", V41,
|
|
28264
|
+
f("h3", V41, x(e.contest.title[i.value]), 1),
|
|
28265
28265
|
f("div", {
|
|
28266
28266
|
class: "AVSplitHelper--description",
|
|
28267
28267
|
innerHTML: (I1 = e.contest.description) == null ? void 0 : I1[i.value]
|
|
@@ -28293,28 +28293,28 @@ const V41 = {
|
|
|
28293
28293
|
"show-submission-helper": e.showSubmissionHelper,
|
|
28294
28294
|
"image-option": e.imageOption,
|
|
28295
28295
|
"onUpdate:selectionPile": w,
|
|
28296
|
-
"onUpdate:errors":
|
|
28296
|
+
"onUpdate:errors": Y[0] || (Y[0] = (F1) => O(F1))
|
|
28297
28297
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "includeLazyErrors", "show-submission-helper", "image-option"]),
|
|
28298
28298
|
f("div", H41, [
|
|
28299
28299
|
f("div", g41, [
|
|
28300
28300
|
u.value.length > 0 ? (d(), h("button", {
|
|
28301
28301
|
key: "back",
|
|
28302
28302
|
class: "AVSplitHelper--btn-secondary",
|
|
28303
|
-
onClick:
|
|
28304
|
-
},
|
|
28303
|
+
onClick: Y[1] || (Y[1] = (F1) => o.value = "overview")
|
|
28304
|
+
}, x(F(t)("js.components.AVSplitHelper.ballot.back_button")), 1)) : I("", !0)
|
|
28305
28305
|
]),
|
|
28306
28306
|
f("div", C41, [
|
|
28307
28307
|
f("button", {
|
|
28308
28308
|
key: "assign",
|
|
28309
28309
|
class: "AVSplitHelper--btn-primary",
|
|
28310
|
-
disabled: !
|
|
28311
|
-
onClick:
|
|
28312
|
-
},
|
|
28310
|
+
disabled: !y(r.value) || A(r.value),
|
|
28311
|
+
onClick: Y[2] || (Y[2] = (F1) => o.value = "assign")
|
|
28312
|
+
}, x(F(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, b41)
|
|
28313
28313
|
])
|
|
28314
28314
|
])
|
|
28315
28315
|
])) : o.value === "assign" ? (d(), h("div", L41, [
|
|
28316
28316
|
f("div", A41, [
|
|
28317
|
-
f("h4", _41,
|
|
28317
|
+
f("h4", _41, x(F(t)("js.components.AVSplitHelper.assign.split_question")), 1),
|
|
28318
28318
|
T(q1, {
|
|
28319
28319
|
"selection-pile": r.value,
|
|
28320
28320
|
contest: e.contest,
|
|
@@ -28324,17 +28324,17 @@ const V41 = {
|
|
|
28324
28324
|
"is-editing": L.value,
|
|
28325
28325
|
"total-piles": e.contestSelection.piles.length,
|
|
28326
28326
|
"image-option": e.imageOption,
|
|
28327
|
-
onEditCurrentSelection:
|
|
28327
|
+
onEditCurrentSelection: Y[3] || (Y[3] = (F1) => o.value = "ballot")
|
|
28328
28328
|
}, null, 8, ["selection-pile", "contest", "pile-index", "active-state", "is-editing", "total-piles", "image-option"]),
|
|
28329
28329
|
f("label", {
|
|
28330
28330
|
for: `${e.contest.reference}-ballot-selector`,
|
|
28331
28331
|
class: "AVSplitHelper--assign-label"
|
|
28332
|
-
},
|
|
28332
|
+
}, x(L.value ? F(t)(
|
|
28333
28333
|
"js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"
|
|
28334
|
-
) :
|
|
28334
|
+
) : F(t)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, x41),
|
|
28335
28335
|
G1(f("input", {
|
|
28336
28336
|
id: `${e.contest.reference}-ballot-selector`,
|
|
28337
|
-
"onUpdate:modelValue":
|
|
28337
|
+
"onUpdate:modelValue": Y[4] || (Y[4] = (F1) => r.value.multiplier = F1),
|
|
28338
28338
|
class: "AVSplitHelper--assign-input",
|
|
28339
28339
|
type: "number",
|
|
28340
28340
|
max: g.value
|
|
@@ -28352,16 +28352,16 @@ const V41 = {
|
|
|
28352
28352
|
f("button", {
|
|
28353
28353
|
key: "ballot",
|
|
28354
28354
|
class: "AVSplitHelper--btn-secondary",
|
|
28355
|
-
onClick:
|
|
28356
|
-
},
|
|
28355
|
+
onClick: Y[5] || (Y[5] = (F1) => o.value = "ballot")
|
|
28356
|
+
}, x(F(t)("js.components.AVSplitHelper.assign.back_button")), 1)
|
|
28357
28357
|
]),
|
|
28358
28358
|
f("div", S41, [
|
|
28359
28359
|
f("button", {
|
|
28360
28360
|
key: "confirm",
|
|
28361
28361
|
class: "AVSplitHelper--btn-primary",
|
|
28362
28362
|
disabled: ((z2 = r.value) == null ? void 0 : z2.multiplier) < 1 || ((A2 = r.value) == null ? void 0 : A2.multiplier) > g.value,
|
|
28363
|
-
onClick:
|
|
28364
|
-
},
|
|
28363
|
+
onClick: Y[6] || (Y[6] = (F1) => S())
|
|
28364
|
+
}, x(F(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, w41)
|
|
28365
28365
|
])
|
|
28366
28366
|
])
|
|
28367
28367
|
])) : o.value === "overview" ? (d(), h("div", T41, [
|
|
@@ -28370,25 +28370,25 @@ const V41 = {
|
|
|
28370
28370
|
icon: "circle-check",
|
|
28371
28371
|
class: "AVSplitHelper--overview-success-icon"
|
|
28372
28372
|
}),
|
|
28373
|
-
z1(" " +
|
|
28373
|
+
z1(" " + x(F(t)("js.components.AVSplitHelper.overview.all_ballots_assigned")), 1)
|
|
28374
28374
|
])) : (d(), h("div", E41, [
|
|
28375
28375
|
f("p", D41, [
|
|
28376
|
-
f("strong", null,
|
|
28377
|
-
z1(" " +
|
|
28376
|
+
f("strong", null, x(v.value), 1),
|
|
28377
|
+
z1(" " + x(F(t)("js.components.AVSplitHelper.overview.ballots_left")), 1)
|
|
28378
28378
|
]),
|
|
28379
28379
|
f("button", {
|
|
28380
28380
|
key: "newSelection",
|
|
28381
28381
|
class: "AVSplitHelper--overview-new-ballot-btn",
|
|
28382
28382
|
disabled: v.value === 0,
|
|
28383
|
-
onClick:
|
|
28383
|
+
onClick: N
|
|
28384
28384
|
}, [
|
|
28385
28385
|
T(J1, { icon: "file-circle-plus" }),
|
|
28386
|
-
z1(" " +
|
|
28386
|
+
z1(" " + x(F(t)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
|
|
28387
28387
|
], 8, P41)
|
|
28388
28388
|
])),
|
|
28389
28389
|
(d(!0), h(a1, null, g1(u.value, (F1, o2) => (d(), h("article", {
|
|
28390
28390
|
key: `preview-${o2}`,
|
|
28391
|
-
onClick: (t3) =>
|
|
28391
|
+
onClick: (t3) => Z(o2)
|
|
28392
28392
|
}, [
|
|
28393
28393
|
T(q1, {
|
|
28394
28394
|
"selection-pile": F1,
|
|
@@ -28398,7 +28398,7 @@ const V41 = {
|
|
|
28398
28398
|
"pile-index": o2,
|
|
28399
28399
|
"total-piles": e.contestSelection.piles.length,
|
|
28400
28400
|
"image-option": e.imageOption,
|
|
28401
|
-
onDeleteSelection: (t3) =>
|
|
28401
|
+
onDeleteSelection: (t3) => B(o2)
|
|
28402
28402
|
}, null, 8, ["selection-pile", "contest", "active-state", "pile-index", "total-piles", "image-option", "onDeleteSelection"])
|
|
28403
28403
|
], 8, O41))), 128))
|
|
28404
28404
|
])) : I("", !0)
|
|
@@ -28417,7 +28417,7 @@ const V41 = {
|
|
|
28417
28417
|
"image-option": e.imageOption,
|
|
28418
28418
|
"show-submission-helper": e.showSubmissionHelper,
|
|
28419
28419
|
"onUpdate:selectionPile": w,
|
|
28420
|
-
"onUpdate:errors":
|
|
28420
|
+
"onUpdate:errors": Y[7] || (Y[7] = (a2) => O(a2)),
|
|
28421
28421
|
onViewCandidate: e1
|
|
28422
28422
|
}, null, 8, ["selection-pile", "partial-results", "includeLazyErrors", "contest", "weight", "image-option", "show-submission-helper"]))
|
|
28423
28423
|
], 64);
|
|
@@ -28528,7 +28528,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28528
28528
|
e.summary && v.value ? (d(), h("div", j41, [
|
|
28529
28529
|
f("img", {
|
|
28530
28530
|
src: v.value,
|
|
28531
|
-
alt:
|
|
28531
|
+
alt: F(a)("js.components.AVResourceSection.alt_candidate"),
|
|
28532
28532
|
class: "AVResourceSection--image"
|
|
28533
28533
|
}, null, 8, q41)
|
|
28534
28534
|
])) : I("", !0),
|
|
@@ -28538,13 +28538,13 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28538
28538
|
)
|
|
28539
28539
|
}, [
|
|
28540
28540
|
f("div", $41, [
|
|
28541
|
-
e.summary && n.value ? (d(), h("h4", U41,
|
|
28542
|
-
e.summary && s.value ? (d(), h("h5", W41,
|
|
28541
|
+
e.summary && n.value ? (d(), h("h4", U41, x(n.value), 1)) : I("", !0),
|
|
28542
|
+
e.summary && s.value ? (d(), h("h5", W41, x(s.value), 1)) : I("", !0),
|
|
28543
28543
|
e.summary && e.candidate.groups && !e.card ? (d(), h("div", G41, [
|
|
28544
|
-
f("h4", J41,
|
|
28544
|
+
f("h4", J41, x(l.value.title), 1),
|
|
28545
28545
|
l.value.surplus ? (d(), K(C, {
|
|
28546
28546
|
key: 0,
|
|
28547
|
-
text:
|
|
28547
|
+
text: F(a)("js.components.AVResourceSection.and_more", {
|
|
28548
28548
|
amount: l.value.surplus
|
|
28549
28549
|
}),
|
|
28550
28550
|
content: l.value.remaining,
|
|
@@ -28567,36 +28567,36 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28567
28567
|
"AVResourceFields--divisor": g.item_type === "check_box"
|
|
28568
28568
|
})
|
|
28569
28569
|
}, [
|
|
28570
|
-
z1(
|
|
28570
|
+
z1(x(g.label[i.value]) + " ", 1),
|
|
28571
28571
|
g.item_type === "check_box" ? (d(), K(b, {
|
|
28572
28572
|
key: 0,
|
|
28573
28573
|
icon: g.form_content ? "square-check" : "square-xmark",
|
|
28574
28574
|
class: $(
|
|
28575
28575
|
g.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
|
28576
28576
|
),
|
|
28577
|
-
"aria-label": g.form_content ?
|
|
28577
|
+
"aria-label": g.form_content ? F(a)("js.components.AVResourceSection.true") : F(a)("js.components.AVResourceSection.false")
|
|
28578
28578
|
}, null, 8, ["icon", "class", "aria-label"])) : I("", !0)
|
|
28579
28579
|
], 2)),
|
|
28580
28580
|
!e.summary && g.item_type !== "check_box" ? (d(), h("hr", Z41)) : I("", !0),
|
|
28581
28581
|
g.item_type === "link_list" && m(g) ? (d(), h("div", Y41, [
|
|
28582
|
-
e.summary ? (d(), h("span", Q41,
|
|
28582
|
+
e.summary ? (d(), h("span", Q41, x(`${g.label[i.value]}:`), 1)) : I("", !0),
|
|
28583
28583
|
(d(!0), h(a1, null, g1(g.form_content, (z) => (d(), K(_, {
|
|
28584
28584
|
key: z.attributes.name,
|
|
28585
28585
|
link: z,
|
|
28586
28586
|
large: !e.summary
|
|
28587
28587
|
}, null, 8, ["link", "large"]))), 128))
|
|
28588
28588
|
])) : g.item_type === "check_box" && e.summary ? (d(), h("div", K41, [
|
|
28589
|
-
f("span", null,
|
|
28589
|
+
f("span", null, x(`${g.label[i.value]}`), 1),
|
|
28590
28590
|
T(b, {
|
|
28591
28591
|
icon: g.form_content ? "square-check" : "square-xmark",
|
|
28592
28592
|
class: $(
|
|
28593
28593
|
g.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
|
28594
28594
|
),
|
|
28595
|
-
"aria-label": g.form_content ?
|
|
28595
|
+
"aria-label": g.form_content ? F(a)("js.components.AVResourceSection.true") : F(a)("js.components.AVResourceSection.false")
|
|
28596
28596
|
}, null, 8, ["icon", "class", "aria-label"])
|
|
28597
28597
|
])) : g.item_type === "select" && m(g) ? (d(), h("div", X41, [
|
|
28598
|
-
e.summary ? (d(), h("span", e61,
|
|
28599
|
-
z1(" " +
|
|
28598
|
+
e.summary ? (d(), h("span", e61, x(`${g.label[i.value]}:`), 1)) : I("", !0),
|
|
28599
|
+
z1(" " + x(g.form_content[i.value]), 1)
|
|
28600
28600
|
])) : g.item_type === "video" && m(g) ? (d(), h("div", c61, [
|
|
28601
28601
|
f("iframe", {
|
|
28602
28602
|
style: { width: "100%", height: "100%", "min-height": "400px" },
|
|
@@ -28607,14 +28607,14 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
|
28607
28607
|
class: "AVResourceFields--rich-text",
|
|
28608
28608
|
innerHTML: g.localised ? g.form_content[i.value] : g.form_content
|
|
28609
28609
|
}, null, 8, t61)) : g.item_type !== "rich_text_area" && g.item_type !== "check_box" ? (d(), h("p", i61, [
|
|
28610
|
-
e.summary ? (d(), h("span", n61,
|
|
28610
|
+
e.summary ? (d(), h("span", n61, x(`${g.label[i.value]}: `), 1)) : I("", !0),
|
|
28611
28611
|
g.item_type === "date" || g.item_type === "date_time" ? (d(), h(a1, { key: 1 }, [
|
|
28612
|
-
z1(
|
|
28612
|
+
z1(x(F(t)(
|
|
28613
28613
|
g.form_content,
|
|
28614
28614
|
g.item_type === "date" ? null : "long"
|
|
28615
28615
|
)), 1)
|
|
28616
28616
|
], 64)) : (d(), h(a1, { key: 2 }, [
|
|
28617
|
-
z1(
|
|
28617
|
+
z1(x(g.localised ? g.form_content[i.value] : g.form_content), 1)
|
|
28618
28618
|
], 64))
|
|
28619
28619
|
])) : I("", !0)
|
|
28620
28620
|
], 2)) : I("", !0)
|