@assemblyvoting/ui-library 3.1.27-beta.26 → 3.1.27-beta.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/AVFileInput/AVFileInput.vue.d.ts +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +450 -438
- 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 N, createTextVNode as z1, resolveDirective as B2, withDirectives as G1, reactive as ns, provide as ss, renderList as g1, Transition as Y2, unref as F, useCssVars as E$, vShow as E4, withModifiers as m2, createSlots as D$, vModelText as ls } from "vue";
|
2
2
|
/*!
|
3
3
|
* shared v9.13.1
|
4
4
|
* (c) 2024 kazuya kawaguchi
|
@@ -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 = (k) => c[k] === cU && c[k + 1] === R1, l = (k) => c[k] === R1, r = (k) => c[k] === tU, o = (k) => c[k] === aU, m = (k) => s(k) || l(k) || r(k) || o(k), u = () => a, v = () => t, p = () => i, H = () => n, C = (k) => s(k) || r(k) || o(k) ? R1 : c[k], 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 y(
|
210
|
-
n =
|
209
|
+
function y(k = 0) {
|
210
|
+
n = k;
|
211
211
|
}
|
212
212
|
function A() {
|
213
|
-
const
|
214
|
-
for (;
|
213
|
+
const k = a + n;
|
214
|
+
for (; k !== a; )
|
215
215
|
g();
|
216
216
|
n = 0;
|
217
217
|
}
|
@@ -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 k(V, M) {
|
328
328
|
const { currentType: P } = M;
|
329
329
|
if (P !== 9)
|
330
330
|
return !1;
|
@@ -332,7 +332,7 @@ function lU(e, c = {}) {
|
|
332
332
|
const X = _(V.currentPeek());
|
333
333
|
return V.resetPeek(), X;
|
334
334
|
}
|
335
|
-
function
|
335
|
+
function S(V, M) {
|
336
336
|
const { currentType: P } = M;
|
337
337
|
if (!(P === 8 || P === 12))
|
338
338
|
return !1;
|
@@ -340,7 +340,7 @@ function lU(e, c = {}) {
|
|
340
340
|
const X = V.currentPeek() === ":";
|
341
341
|
return V.resetPeek(), X;
|
342
342
|
}
|
343
|
-
function
|
343
|
+
function x(V, M) {
|
344
344
|
const { currentType: P } = M;
|
345
345
|
if (P !== 10)
|
346
346
|
return !1;
|
@@ -364,8 +364,8 @@ function lU(e, c = {}) {
|
|
364
364
|
}
|
365
365
|
function O(V, M = !0) {
|
366
366
|
const P = (_1 = !1, M1 = "", h1 = !1) => {
|
367
|
-
const
|
368
|
-
return
|
367
|
+
const w = V.currentPeek();
|
368
|
+
return w === "{" ? M1 === "%" ? !1 : _1 : w === "@" || !w ? M1 === "%" ? !0 : _1 : w === "%" ? (V.peek(), P(_1, "%", !0)) : w === "|" ? M1 === "%" || h1 ? !0 : !(M1 === V2 || M1 === R1) : w === V2 ? (V.peek(), P(!0, V2, h1)) : w === R1 ? (V.peek(), P(!0, R1, h1)) : !0;
|
369
369
|
}, X = P();
|
370
370
|
return M && V.resetPeek(), X;
|
371
371
|
}
|
@@ -594,7 +594,7 @@ function lU(e, c = {}) {
|
|
594
594
|
/* TokenChars.LinkedDelimiter */
|
595
595
|
);
|
596
596
|
default:
|
597
|
-
return B(V) ? (X = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, X) : A(V, M) ||
|
597
|
+
return B(V) ? (X = v(M, 1, d1(V)), M.braceNest = 0, M.inLinked = !1, X) : A(V, M) || S(V, M) ? (b(V), R2(V, M)) : k(V, M) ? (b(V), v(M, 12, x3(V))) : x(V, M) ? (b(V), _1 === "{" ? N3(V, M) || X : v(M, 11, j(V))) : (P === 8 && u(c1.INVALID_LINKED_FORMAT, n(), 0), M.braceNest = 0, M.inLinked = !1, y3(V, M));
|
598
598
|
}
|
599
599
|
}
|
600
600
|
function y3(V, M) {
|
@@ -661,21 +661,21 @@ 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, y, A, ...
|
665
|
-
const
|
666
|
-
if (
|
667
|
-
const
|
664
|
+
function i(z, L, y, A, ...k) {
|
665
|
+
const S = z.currentPosition();
|
666
|
+
if (S.offset += A, S.column += A, a) {
|
667
|
+
const x = c ? P4(y, S) : null, B = z3(L, x, {
|
668
668
|
domain: rU,
|
669
|
-
args:
|
669
|
+
args: k
|
670
670
|
});
|
671
671
|
a(B);
|
672
672
|
}
|
673
673
|
}
|
674
|
-
function n(z, L, y, A, ...
|
675
|
-
const
|
676
|
-
if (
|
677
|
-
const
|
678
|
-
t(Y$(L,
|
674
|
+
function n(z, L, y, A, ...k) {
|
675
|
+
const S = z.currentPosition();
|
676
|
+
if (S.offset += A, S.column += A, t) {
|
677
|
+
const x = c ? P4(y, S) : null;
|
678
|
+
t(Y$(L, x, k));
|
679
679
|
}
|
680
680
|
}
|
681
681
|
function s(z, L, y) {
|
@@ -690,24 +690,24 @@ function uU(e = {}) {
|
|
690
690
|
return A.value = L, l(A, z.currentOffset(), z.currentPosition()), A;
|
691
691
|
}
|
692
692
|
function o(z, L) {
|
693
|
-
const y = z.context(), { lastOffset: A, lastStartLoc:
|
694
|
-
return
|
693
|
+
const y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(5, A, k);
|
694
|
+
return S.index = parseInt(L, 10), z.nextToken(), l(S, z.currentOffset(), z.currentPosition()), S;
|
695
695
|
}
|
696
696
|
function m(z, L, y) {
|
697
|
-
const A = z.context(), { lastOffset:
|
698
|
-
return
|
697
|
+
const A = z.context(), { lastOffset: k, lastStartLoc: S } = A, x = s(4, k, S);
|
698
|
+
return x.key = L, y === !0 && (x.modulo = !0), z.nextToken(), l(x, z.currentOffset(), z.currentPosition()), x;
|
699
699
|
}
|
700
700
|
function u(z, L) {
|
701
|
-
const y = z.context(), { lastOffset: A, lastStartLoc:
|
702
|
-
return
|
701
|
+
const y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(9, A, k);
|
702
|
+
return S.value = L.replace(oU, fU), z.nextToken(), l(S, z.currentOffset(), z.currentPosition()), S;
|
703
703
|
}
|
704
704
|
function v(z) {
|
705
|
-
const L = z.nextToken(), y = z.context(), { lastOffset: A, lastStartLoc:
|
706
|
-
return L.type !== 12 ? (i(z, c1.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0),
|
705
|
+
const L = z.nextToken(), y = z.context(), { lastOffset: A, lastStartLoc: k } = y, S = s(8, A, k);
|
706
|
+
return L.type !== 12 ? (i(z, c1.UNEXPECTED_EMPTY_LINKED_MODIFIER, y.lastStartLoc, 0), S.value = "", l(S, A, k), {
|
707
707
|
nextConsumeToken: L,
|
708
|
-
node:
|
709
|
-
}) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, t2(L)),
|
710
|
-
node:
|
708
|
+
node: S
|
709
|
+
}) : (L.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, y.lastStartLoc, 0, t2(L)), S.value = L.value || "", l(S, z.currentOffset(), z.currentPosition()), {
|
710
|
+
node: S
|
711
711
|
});
|
712
712
|
}
|
713
713
|
function p(z, L) {
|
@@ -718,8 +718,8 @@ function uU(e = {}) {
|
|
718
718
|
const L = z.context(), y = s(6, L.offset, L.startLoc);
|
719
719
|
let A = z.nextToken();
|
720
720
|
if (A.type === 9) {
|
721
|
-
const
|
722
|
-
y.modifier =
|
721
|
+
const k = v(z);
|
722
|
+
y.modifier = k.node, A = k.nextConsumeToken || z.nextToken();
|
723
723
|
}
|
724
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:
|
@@ -736,8 +736,8 @@ function uU(e = {}) {
|
|
736
736
|
break;
|
737
737
|
default: {
|
738
738
|
i(z, c1.UNEXPECTED_EMPTY_LINKED_KEY, L.lastStartLoc, 0);
|
739
|
-
const
|
740
|
-
return
|
739
|
+
const k = z.context(), S = s(7, k.offset, k.startLoc);
|
740
|
+
return S.value = "", l(S, k.offset, k.startLoc), y.key = S, l(y, k.offset, k.startLoc), {
|
741
741
|
nextConsumeToken: A,
|
742
742
|
node: y
|
743
743
|
};
|
@@ -748,51 +748,51 @@ function uU(e = {}) {
|
|
748
748
|
};
|
749
749
|
}
|
750
750
|
function C(z) {
|
751
|
-
const L = z.context(), y = L.currentType === 1 ? z.currentOffset() : L.offset, A = L.currentType === 1 ? L.endLoc : L.startLoc,
|
752
|
-
|
753
|
-
let
|
751
|
+
const L = z.context(), y = L.currentType === 1 ? z.currentOffset() : L.offset, A = L.currentType === 1 ? L.endLoc : L.startLoc, k = s(2, y, A);
|
752
|
+
k.items = [];
|
753
|
+
let S = null, x = null;
|
754
754
|
do {
|
755
|
-
const O =
|
756
|
-
switch (
|
755
|
+
const O = S || z.nextToken();
|
756
|
+
switch (S = null, O.type) {
|
757
757
|
case 0:
|
758
|
-
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)), k.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)), k.items.push(o(z, O.value || ""));
|
762
762
|
break;
|
763
763
|
case 4:
|
764
|
-
|
764
|
+
x = !0;
|
765
765
|
break;
|
766
766
|
case 5:
|
767
|
-
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)),
|
767
|
+
O.value == null && i(z, c1.UNEXPECTED_LEXICAL_ANALYSIS, L.lastStartLoc, 0, t2(O)), k.items.push(m(z, O.value || "", !!x)), x && (n(z, Q4.USE_MODULO_SYNTAX, L.lastStartLoc, 0, t2(O)), x = null);
|
768
768
|
break;
|
769
769
|
case 7:
|
770
|
-
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)), k.items.push(u(z, O.value || ""));
|
771
771
|
break;
|
772
772
|
case 8: {
|
773
773
|
const e1 = H(z);
|
774
|
-
|
774
|
+
k.items.push(e1.node), S = e1.nextConsumeToken || null;
|
775
775
|
break;
|
776
776
|
}
|
777
777
|
}
|
778
778
|
} while (L.currentType !== 14 && L.currentType !== 1);
|
779
779
|
const B = L.currentType === 1 ? L.lastOffset : z.currentOffset(), Z = L.currentType === 1 ? L.lastEndLoc : z.currentPosition();
|
780
|
-
return l(
|
780
|
+
return l(k, B, Z), k;
|
781
781
|
}
|
782
782
|
function b(z, L, y, A) {
|
783
|
-
const
|
784
|
-
let
|
785
|
-
const
|
786
|
-
|
783
|
+
const k = z.context();
|
784
|
+
let S = A.items.length === 0;
|
785
|
+
const x = s(1, L, y);
|
786
|
+
x.cases = [], x.cases.push(A);
|
787
787
|
do {
|
788
788
|
const B = C(z);
|
789
|
-
|
790
|
-
} while (
|
791
|
-
return
|
789
|
+
S || (S = B.items.length === 0), x.cases.push(B);
|
790
|
+
} while (k.currentType !== 14);
|
791
|
+
return S && i(z, c1.MUST_HAVE_MESSAGES_IN_PLURAL, y, 0), l(x, z.currentOffset(), z.currentPosition()), x;
|
792
792
|
}
|
793
793
|
function _(z) {
|
794
|
-
const L = z.context(), { offset: y, startLoc: A } = L,
|
795
|
-
return L.currentType === 14 ?
|
794
|
+
const L = z.context(), { offset: y, startLoc: A } = L, k = C(z);
|
795
|
+
return L.currentType === 14 ? k : b(z, y, A, k);
|
796
796
|
}
|
797
797
|
function g(z) {
|
798
798
|
const L = lU(z, ms({}, e)), y = L.context(), A = s(0, y.offset, y.startLoc);
|
@@ -1405,11 +1405,11 @@ function FU(e = {}) {
|
|
1405
1405
|
const [z, L] = g;
|
1406
1406
|
let y = "text", A = "";
|
1407
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
|
1408
|
+
const k = m(_)(b), S = (
|
1409
1409
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1410
|
-
y === "vnode" && C1(
|
1410
|
+
y === "vnode" && C1(k) && A ? k[0] : k
|
1411
1411
|
);
|
1412
|
-
return A ? u(A)(
|
1412
|
+
return A ? u(A)(S, y) : S;
|
1413
1413
|
},
|
1414
1414
|
message: m,
|
1415
1415
|
type: H,
|
@@ -1595,7 +1595,7 @@ let Fi = 0;
|
|
1595
1595
|
function tW(e = {}) {
|
1596
1596
|
const c = V1(e.onWarn) ? e.onWarn : S1, a = q(e.version) ? e.version : YU, t = q(e.locale) || V1(e.locale) ? e.locale : v3, i = V1(t) ? v3 : t, n = C1(e.fallbackLocale) || t1(e.fallbackLocale) || q(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, s = t1(e.messages) ? e.messages : { [i]: {} }, l = t1(e.datetimeFormats) ? e.datetimeFormats : { [i]: {} }, r = t1(e.numberFormats) ? e.numberFormats : { [i]: {} }, o = B1({}, e.modifiers || {}, QU()), m = e.pluralRules || {}, u = V1(e.missing) ? e.missing : null, v = n1(e.missingWarn) || T2(e.missingWarn) ? e.missingWarn : !0, p = n1(e.fallbackWarn) || T2(e.fallbackWarn) ? e.fallbackWarn : !0, H = !!e.fallbackFormat, C = !!e.unresolving, b = V1(e.postTranslation) ? e.postTranslation : null, _ = t1(e.processor) ? e.processor : null, g = n1(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, z = !!e.escapeParameter, L = V1(e.messageCompiler) ? e.messageCompiler : zs;
|
1597
1597
|
process.env.NODE_ENV !== "production" && V1(e.messageCompiler) && fs(K2(j1.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1598
|
-
const y = V1(e.messageResolver) ? e.messageResolver : Vs || SU, A = V1(e.localeFallbacker) ? e.localeFallbacker : Ms || GU,
|
1598
|
+
const y = V1(e.messageResolver) ? e.messageResolver : Vs || SU, A = V1(e.localeFallbacker) ? e.localeFallbacker : Ms || GU, k = u1(e.fallbackContext) ? e.fallbackContext : void 0, S = e, x = u1(S.__datetimeFormatters) ? S.__datetimeFormatters : /* @__PURE__ */ new Map(), B = u1(S.__numberFormatters) ? S.__numberFormatters : /* @__PURE__ */ new Map(), Z = u1(S.__meta) ? S.__meta : {};
|
1599
1599
|
Fi++;
|
1600
1600
|
const O = {
|
1601
1601
|
version: a,
|
@@ -1617,11 +1617,11 @@ function tW(e = {}) {
|
|
1617
1617
|
messageCompiler: L,
|
1618
1618
|
messageResolver: y,
|
1619
1619
|
localeFallbacker: A,
|
1620
|
-
fallbackContext:
|
1620
|
+
fallbackContext: k,
|
1621
1621
|
onWarn: c,
|
1622
1622
|
__meta: Z
|
1623
1623
|
};
|
1624
|
-
return O.datetimeFormats = l, O.numberFormats = r, O.__datetimeFormatters =
|
1624
|
+
return O.datetimeFormats = l, O.numberFormats = r, O.__datetimeFormatters = x, O.__numberFormatters = B, process.env.NODE_ENV !== "production" && (O.__v_emitter = S.__v_emitter != null ? S.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && jU(O, a, Z), O;
|
1625
1625
|
}
|
1626
1626
|
function X4(e, c) {
|
1627
1627
|
return e instanceof RegExp ? e.test(c) : e;
|
@@ -1791,12 +1791,12 @@ function qi(e, ...c) {
|
|
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
1793
|
let A = !1;
|
1794
|
-
const
|
1794
|
+
const k = () => {
|
1795
1795
|
A = !0;
|
1796
|
-
},
|
1796
|
+
}, S = K1(L) ? L : ys(e, r, g, L, y, k);
|
1797
1797
|
if (A)
|
1798
1798
|
return L;
|
1799
|
-
const
|
1799
|
+
const x = dW(e, g, z, o), B = FU(x), Z = fW(e, S, B), O = t ? t(Z, r) : Z;
|
1800
1800
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1801
1801
|
const e1 = {
|
1802
1802
|
timestamp: Date.now(),
|
@@ -1976,8 +1976,8 @@ function Ui(e, ...c) {
|
|
1976
1976
|
return new Intl.DateTimeFormat(C, u).format(o);
|
1977
1977
|
let _ = {}, g, z = null, L = C, y = null;
|
1978
1978
|
const A = "datetime format";
|
1979
|
-
for (let
|
1980
|
-
if (g = y = b[
|
1979
|
+
for (let x = 0; x < b.length; x++) {
|
1980
|
+
if (g = y = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_DATE_FORMAT, {
|
1981
1981
|
key: r,
|
1982
1982
|
target: g
|
1983
1983
|
})), process.env.NODE_ENV !== "production" && C !== g) {
|
@@ -1996,10 +1996,10 @@ function Ui(e, ...c) {
|
|
1996
1996
|
}
|
1997
1997
|
if (!t1(z) || !q(g))
|
1998
1998
|
return t ? K4 : r;
|
1999
|
-
let
|
2000
|
-
Z4(u) || (
|
2001
|
-
let
|
2002
|
-
return
|
1999
|
+
let k = `${g}__${r}`;
|
2000
|
+
Z4(u) || (k = `${k}__${JSON.stringify(u)}`);
|
2001
|
+
let S = l.get(k);
|
2002
|
+
return S || (S = new Intl.DateTimeFormat(g, B1({}, z, u)), l.set(k, S)), H ? S.formatToParts(o) : S.format(o);
|
2003
2003
|
}
|
2004
2004
|
const Ss = [
|
2005
2005
|
"localeMatcher",
|
@@ -2070,8 +2070,8 @@ function Gi(e, ...c) {
|
|
2070
2070
|
return new Intl.NumberFormat(C, u).format(o);
|
2071
2071
|
let _ = {}, g, z = null, L = C, y = null;
|
2072
2072
|
const A = "number format";
|
2073
|
-
for (let
|
2074
|
-
if (g = y = b[
|
2073
|
+
for (let x = 0; x < b.length; x++) {
|
2074
|
+
if (g = y = b[x], process.env.NODE_ENV !== "production" && C !== g && X4(p, r) && n(K2(j1.FALLBACK_TO_NUMBER_FORMAT, {
|
2075
2075
|
key: r,
|
2076
2076
|
target: g
|
2077
2077
|
})), process.env.NODE_ENV !== "production" && C !== g) {
|
@@ -2090,10 +2090,10 @@ function Gi(e, ...c) {
|
|
2090
2090
|
}
|
2091
2091
|
if (!t1(z) || !q(g))
|
2092
2092
|
return t ? K4 : r;
|
2093
|
-
let
|
2094
|
-
Z4(u) || (
|
2095
|
-
let
|
2096
|
-
return
|
2093
|
+
let k = `${g}__${r}`;
|
2094
|
+
Z4(u) || (k = `${k}__${JSON.stringify(u)}`);
|
2095
|
+
let S = l.get(k);
|
2096
|
+
return S || (S = new Intl.NumberFormat(g, B1({}, z, u)), l.set(k, S)), H ? S.formatToParts(o) : S.format(o);
|
2097
2097
|
}
|
2098
2098
|
const ws = [
|
2099
2099
|
"localeMatcher",
|
@@ -2421,17 +2421,17 @@ function Q8(e = {}, c) {
|
|
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
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
|
2425
|
-
let
|
2426
|
-
|
2424
|
+
const k = a ? a.modifiers : t1(e.modifiers) ? e.modifiers : {};
|
2425
|
+
let S = e.pluralRules || a && a.pluralRules, x;
|
2426
|
+
x = (() => {
|
2427
2427
|
i && Bi(null);
|
2428
|
-
const
|
2428
|
+
const w = {
|
2429
2429
|
version: CW,
|
2430
2430
|
locale: o.value,
|
2431
2431
|
fallbackLocale: m.value,
|
2432
2432
|
messages: u.value,
|
2433
|
-
modifiers:
|
2434
|
-
pluralRules:
|
2433
|
+
modifiers: k,
|
2434
|
+
pluralRules: S,
|
2435
2435
|
missing: z === null ? void 0 : z,
|
2436
2436
|
missingWarn: H,
|
2437
2437
|
fallbackWarn: C,
|
@@ -2444,10 +2444,10 @@ function Q8(e = {}, c) {
|
|
2444
2444
|
messageCompiler: e.messageCompiler,
|
2445
2445
|
__meta: { framework: "vue" }
|
2446
2446
|
};
|
2447
|
-
|
2448
|
-
const R = tW(
|
2447
|
+
w.datetimeFormats = v.value, w.numberFormats = p.value, w.__datetimeFormatters = t1(x) ? x.__datetimeFormatters : void 0, w.__numberFormatters = t1(x) ? x.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (w.__v_emitter = t1(x) ? x.__v_emitter : void 0);
|
2448
|
+
const R = tW(w);
|
2449
2449
|
return i && Bi(R), R;
|
2450
|
-
})(), k3(
|
2450
|
+
})(), k3(x, o.value, m.value);
|
2451
2451
|
function Z() {
|
2452
2452
|
return [
|
2453
2453
|
o.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: (w) => {
|
2463
|
+
o.value = w, x.locale = o.value;
|
2464
2464
|
}
|
2465
2465
|
}), e1 = E({
|
2466
2466
|
get: () => m.value,
|
2467
|
-
set: (
|
2468
|
-
m.value =
|
2467
|
+
set: (w) => {
|
2468
|
+
m.value = w, x.fallbackLocale = m.value, k3(x, o.value, w);
|
2469
2469
|
}
|
2470
2470
|
}), r1 = E(() => u.value), U = /* @__PURE__ */ E(() => v.value), Y = /* @__PURE__ */ E(() => p.value);
|
2471
2471
|
function m1() {
|
2472
2472
|
return V1(L) ? L : null;
|
2473
2473
|
}
|
2474
|
-
function P1(
|
2475
|
-
L =
|
2474
|
+
function P1(w) {
|
2475
|
+
L = w, x.postTranslation = w;
|
2476
2476
|
}
|
2477
2477
|
function q1() {
|
2478
2478
|
return g;
|
2479
2479
|
}
|
2480
|
-
function O1(
|
2481
|
-
|
2480
|
+
function O1(w) {
|
2481
|
+
w !== null && (z = Xi(w)), g = w, x.missing = z;
|
2482
2482
|
}
|
2483
|
-
function J1(
|
2484
|
-
return
|
2483
|
+
function J1(w, R) {
|
2484
|
+
return w !== "translate" || !R.resolvedMessage;
|
2485
2485
|
}
|
2486
|
-
const I1 = (
|
2486
|
+
const I1 = (w, R, v1, y1, _2, V4) => {
|
2487
2487
|
Z();
|
2488
2488
|
let n3;
|
2489
2489
|
try {
|
2490
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (
|
2490
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (x.fallbackContext = a ? aW() : void 0), n3 = w(x);
|
2491
2491
|
} finally {
|
2492
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (
|
2492
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, i || (x.fallbackContext = void 0);
|
2493
2493
|
}
|
2494
2494
|
if (v1 !== "translate exists" && // for not `te` (e.g `t`)
|
2495
2495
|
k1(n3) && n3 === K4 || v1 === "translate exists" && !n3) {
|
@@ -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 } = x;
|
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(...w) {
|
2517
|
+
return I1((R) => Reflect.apply(qi, null, [R, ...w]), () => z8(...w), "translate", (R) => Reflect.apply(R.t, R, [...w]), (R) => R, (R) => q(R));
|
2518
2518
|
}
|
2519
|
-
function z2(...
|
2520
|
-
const [R, v1, y1] =
|
2519
|
+
function z2(...w) {
|
2520
|
+
const [R, v1, y1] = w;
|
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(...w) {
|
2526
|
+
return I1((R) => Reflect.apply(Ui, null, [R, ...w]), () => V8(...w), "datetime format", (R) => Reflect.apply(R.d, R, [...w]), () => O4, (R) => q(R));
|
2527
2527
|
}
|
2528
|
-
function F1(...
|
2529
|
-
return I1((R) => Reflect.apply(Gi, null, [R, ...
|
2528
|
+
function F1(...w) {
|
2529
|
+
return I1((R) => Reflect.apply(Gi, null, [R, ...w]), () => M8(...w), "number format", (R) => Reflect.apply(R.n, R, [...w]), () => O4, (R) => q(R));
|
2530
2530
|
}
|
2531
|
-
function o2(
|
2532
|
-
return
|
2531
|
+
function o2(w) {
|
2532
|
+
return w.map((R) => q(R) || k1(R) || n1(R) ? Zi(String(R)) : R);
|
2533
2533
|
}
|
2534
2534
|
const L3 = {
|
2535
2535
|
normalize: o2,
|
2536
|
-
interpolate: (
|
2536
|
+
interpolate: (w) => w,
|
2537
2537
|
type: "vnode"
|
2538
2538
|
};
|
2539
|
-
function i3(...
|
2539
|
+
function i3(...w) {
|
2540
2540
|
return I1(
|
2541
2541
|
(R) => {
|
2542
2542
|
let v1;
|
2543
2543
|
const y1 = R;
|
2544
2544
|
try {
|
2545
|
-
y1.processor = L3, v1 = Reflect.apply(qi, null, [y1, ...
|
2545
|
+
y1.processor = L3, v1 = Reflect.apply(qi, null, [y1, ...w]);
|
2546
2546
|
} finally {
|
2547
2547
|
y1.processor = null;
|
2548
2548
|
}
|
2549
2549
|
return v1;
|
2550
2550
|
},
|
2551
|
-
() => z8(...
|
2551
|
+
() => z8(...w),
|
2552
2552
|
"translate",
|
2553
2553
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2554
|
-
(R) => R[g8](...
|
2554
|
+
(R) => R[g8](...w),
|
2555
2555
|
(R) => [Zi(R)],
|
2556
2556
|
(R) => C1(R)
|
2557
2557
|
);
|
2558
2558
|
}
|
2559
|
-
function A3(...
|
2559
|
+
function A3(...w) {
|
2560
2560
|
return I1(
|
2561
|
-
(R) => Reflect.apply(Gi, null, [R, ...
|
2562
|
-
() => M8(...
|
2561
|
+
(R) => Reflect.apply(Gi, null, [R, ...w]),
|
2562
|
+
() => M8(...w),
|
2563
2563
|
"number format",
|
2564
2564
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2565
|
-
(R) => R[b8](...
|
2565
|
+
(R) => R[b8](...w),
|
2566
2566
|
Qi,
|
2567
2567
|
(R) => q(R) || C1(R)
|
2568
2568
|
);
|
2569
2569
|
}
|
2570
|
-
function _3(...
|
2570
|
+
function _3(...w) {
|
2571
2571
|
return I1(
|
2572
|
-
(R) => Reflect.apply(Ui, null, [R, ...
|
2573
|
-
() => V8(...
|
2572
|
+
(R) => Reflect.apply(Ui, null, [R, ...w]),
|
2573
|
+
() => V8(...w),
|
2574
2574
|
"datetime format",
|
2575
2575
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2576
|
-
(R) => R[C8](...
|
2576
|
+
(R) => R[C8](...w),
|
2577
2577
|
Qi,
|
2578
2578
|
(R) => q(R) || C1(R)
|
2579
2579
|
);
|
2580
2580
|
}
|
2581
|
-
function x3(
|
2582
|
-
|
2581
|
+
function x3(w) {
|
2582
|
+
S = w, x.pluralRules = S;
|
2583
2583
|
}
|
2584
|
-
function j(
|
2584
|
+
function j(w, R) {
|
2585
2585
|
return I1(() => {
|
2586
|
-
if (!
|
2586
|
+
if (!w)
|
2587
2587
|
return !1;
|
2588
|
-
const v1 = q(R) ? R : o.value, y1 = R2(v1), _2 =
|
2588
|
+
const v1 = q(R) ? R : o.value, y1 = R2(v1), _2 = x.messageResolver(y1, w);
|
2589
2589
|
return l ? _2 != null : I2(_2) || K1(_2) || q(_2);
|
2590
|
-
}, () => [
|
2590
|
+
}, () => [w], "translate exists", (v1) => Reflect.apply(v1.te, v1, [w, R]), _W, (v1) => n1(v1));
|
2591
2591
|
}
|
2592
|
-
function d1(
|
2592
|
+
function d1(w) {
|
2593
2593
|
let R = null;
|
2594
|
-
const v1 = hs(
|
2594
|
+
const v1 = hs(x, m.value, o.value);
|
2595
2595
|
for (let y1 = 0; y1 < v1.length; y1++) {
|
2596
|
-
const _2 = u.value[v1[y1]] || {}, V4 =
|
2596
|
+
const _2 = u.value[v1[y1]] || {}, V4 = x.messageResolver(_2, w);
|
2597
2597
|
if (V4 != null) {
|
2598
2598
|
R = V4;
|
2599
2599
|
break;
|
@@ -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(w) {
|
2605
|
+
const R = d1(w);
|
2606
|
+
return R ?? (a ? a.tm(w) || {} : {});
|
2607
2607
|
}
|
2608
|
-
function R2(
|
2609
|
-
return u.value[
|
2608
|
+
function R2(w) {
|
2609
|
+
return u.value[w] || {};
|
2610
2610
|
}
|
2611
|
-
function y3(
|
2611
|
+
function y3(w, R) {
|
2612
2612
|
if (n) {
|
2613
|
-
const v1 = { [
|
2613
|
+
const v1 = { [w]: R };
|
2614
2614
|
for (const y1 in v1)
|
2615
2615
|
D4(v1, y1) && R3(v1[y1]);
|
2616
|
-
R = v1[
|
2616
|
+
R = v1[w];
|
2617
2617
|
}
|
2618
|
-
u.value[
|
2618
|
+
u.value[w] = R, x.messages = u.value;
|
2619
2619
|
}
|
2620
|
-
function i8(
|
2621
|
-
u.value[
|
2622
|
-
const v1 = { [
|
2620
|
+
function i8(w, R) {
|
2621
|
+
u.value[w] = u.value[w] || {};
|
2622
|
+
const v1 = { [w]: R };
|
2623
2623
|
if (n)
|
2624
2624
|
for (const y1 in v1)
|
2625
2625
|
D4(v1, y1) && R3(v1[y1]);
|
2626
|
-
R = v1[
|
2626
|
+
R = v1[w], S4(R, u.value[w]), x.messages = u.value;
|
2627
2627
|
}
|
2628
|
-
function V(
|
2629
|
-
return v.value[
|
2628
|
+
function V(w) {
|
2629
|
+
return v.value[w] || {};
|
2630
2630
|
}
|
2631
|
-
function M(
|
2632
|
-
v.value[
|
2631
|
+
function M(w, R) {
|
2632
|
+
v.value[w] = R, x.datetimeFormats = v.value, Wi(x, w, R);
|
2633
2633
|
}
|
2634
|
-
function P(
|
2635
|
-
v.value[
|
2634
|
+
function P(w, R) {
|
2635
|
+
v.value[w] = B1(v.value[w] || {}, R), x.datetimeFormats = v.value, Wi(x, w, R);
|
2636
2636
|
}
|
2637
|
-
function X(
|
2638
|
-
return p.value[
|
2637
|
+
function X(w) {
|
2638
|
+
return p.value[w] || {};
|
2639
2639
|
}
|
2640
|
-
function _1(
|
2641
|
-
p.value[
|
2640
|
+
function _1(w, R) {
|
2641
|
+
p.value[w] = R, x.numberFormats = p.value, Ji(x, w, R);
|
2642
2642
|
}
|
2643
|
-
function M1(
|
2644
|
-
p.value[
|
2643
|
+
function M1(w, R) {
|
2644
|
+
p.value[w] = B1(p.value[w] || {}, R), x.numberFormats = p.value, Ji(x, w, R);
|
2645
2645
|
}
|
2646
|
-
Ki++, a && r2 && (l1(a.locale, (
|
2647
|
-
r && (o.value =
|
2648
|
-
}), l1(a.fallbackLocale, (
|
2649
|
-
r && (m.value =
|
2646
|
+
Ki++, a && r2 && (l1(a.locale, (w) => {
|
2647
|
+
r && (o.value = w, x.locale = w, k3(x, o.value, m.value));
|
2648
|
+
}), l1(a.fallbackLocale, (w) => {
|
2649
|
+
r && (m.value = w, x.fallbackLocale = w, k3(x, o.value, m.value));
|
2650
2650
|
}));
|
2651
2651
|
const h1 = {
|
2652
2652
|
id: Ki,
|
@@ -2655,18 +2655,18 @@ function Q8(e = {}, c) {
|
|
2655
2655
|
get inheritLocale() {
|
2656
2656
|
return r;
|
2657
2657
|
},
|
2658
|
-
set inheritLocale(
|
2659
|
-
r =
|
2658
|
+
set inheritLocale(w) {
|
2659
|
+
r = w, w && a && (o.value = a.locale.value, m.value = a.fallbackLocale.value, k3(x, o.value, m.value));
|
2660
2660
|
},
|
2661
2661
|
get availableLocales() {
|
2662
2662
|
return Object.keys(u.value).sort();
|
2663
2663
|
},
|
2664
2664
|
messages: r1,
|
2665
2665
|
get modifiers() {
|
2666
|
-
return
|
2666
|
+
return k;
|
2667
2667
|
},
|
2668
2668
|
get pluralRules() {
|
2669
|
-
return
|
2669
|
+
return S || {};
|
2670
2670
|
},
|
2671
2671
|
get isGlobal() {
|
2672
2672
|
return i;
|
@@ -2674,38 +2674,38 @@ function Q8(e = {}, c) {
|
|
2674
2674
|
get missingWarn() {
|
2675
2675
|
return H;
|
2676
2676
|
},
|
2677
|
-
set missingWarn(
|
2678
|
-
H =
|
2677
|
+
set missingWarn(w) {
|
2678
|
+
H = w, x.missingWarn = H;
|
2679
2679
|
},
|
2680
2680
|
get fallbackWarn() {
|
2681
2681
|
return C;
|
2682
2682
|
},
|
2683
|
-
set fallbackWarn(
|
2684
|
-
C =
|
2683
|
+
set fallbackWarn(w) {
|
2684
|
+
C = w, x.fallbackWarn = C;
|
2685
2685
|
},
|
2686
2686
|
get fallbackRoot() {
|
2687
2687
|
return b;
|
2688
2688
|
},
|
2689
|
-
set fallbackRoot(
|
2690
|
-
b =
|
2689
|
+
set fallbackRoot(w) {
|
2690
|
+
b = w;
|
2691
2691
|
},
|
2692
2692
|
get fallbackFormat() {
|
2693
2693
|
return _;
|
2694
2694
|
},
|
2695
|
-
set fallbackFormat(
|
2696
|
-
_ =
|
2695
|
+
set fallbackFormat(w) {
|
2696
|
+
_ = w, x.fallbackFormat = _;
|
2697
2697
|
},
|
2698
2698
|
get warnHtmlMessage() {
|
2699
2699
|
return y;
|
2700
2700
|
},
|
2701
|
-
set warnHtmlMessage(
|
2702
|
-
y =
|
2701
|
+
set warnHtmlMessage(w) {
|
2702
|
+
y = w, x.warnHtmlMessage = w;
|
2703
2703
|
},
|
2704
2704
|
get escapeParameter() {
|
2705
2705
|
return A;
|
2706
2706
|
},
|
2707
|
-
set escapeParameter(
|
2708
|
-
A =
|
2707
|
+
set escapeParameter(w) {
|
2708
|
+
A = w, x.escapeParameter = w;
|
2709
2709
|
},
|
2710
2710
|
t: a2,
|
2711
2711
|
getLocaleMessage: R2,
|
@@ -2717,10 +2717,10 @@ function Q8(e = {}, c) {
|
|
2717
2717
|
setMissingHandler: O1,
|
2718
2718
|
[Ds]: x3
|
2719
2719
|
};
|
2720
|
-
return h1.datetimeFormats = U, h1.numberFormats = 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] = (
|
2721
|
-
|
2720
|
+
return h1.datetimeFormats = U, h1.numberFormats = Y, h1.rt = z2, h1.te = j, h1.tm = N3, h1.d = A2, h1.n = F1, h1.getDateTimeFormat = V, h1.setDateTimeFormat = M, h1.mergeDateTimeFormat = P, h1.getNumberFormat = X, h1.setNumberFormat = _1, h1.mergeNumberFormat = M1, h1[Ps] = t, h1[g8] = i3, h1[C8] = _3, h1[b8] = A3, process.env.NODE_ENV !== "production" && (h1[X2] = (w) => {
|
2721
|
+
x.__v_emitter = w;
|
2722
2722
|
}, h1[F3] = () => {
|
2723
|
-
|
2723
|
+
x.__v_emitter = void 0;
|
2724
2724
|
}), h1;
|
2725
2725
|
}
|
2726
2726
|
function NW(e) {
|
@@ -2729,9 +2729,9 @@ function NW(e) {
|
|
2729
2729
|
let H = e.messages;
|
2730
2730
|
if (t1(e.sharedMessages)) {
|
2731
2731
|
const A = e.sharedMessages;
|
2732
|
-
H = Object.keys(A).reduce((
|
2733
|
-
const B =
|
2734
|
-
return B1(B, A[
|
2732
|
+
H = Object.keys(A).reduce((S, x) => {
|
2733
|
+
const B = S[x] || (S[x] = {});
|
2734
|
+
return B1(B, A[x]), S;
|
2735
2735
|
}, H || {});
|
2736
2736
|
}
|
2737
2737
|
const { __i18n: C, __root: b, __injectWithOption: _ } = e, g = e.datetimeFormats, z = e.numberFormats, L = e.flatJson, y = e.translateExistCompatible;
|
@@ -3674,17 +3674,17 @@ function sG(e, c, a, t = {}) {
|
|
3674
3674
|
u.value
|
3675
3675
|
];
|
3676
3676
|
}
|
3677
|
-
const
|
3677
|
+
const k = 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;
|
3681
3681
|
}
|
3682
|
-
}),
|
3682
|
+
}), S = E({
|
3683
3683
|
get: () => n.value ? n.value.fallbackLocale.value : r.value,
|
3684
3684
|
set: (j) => {
|
3685
3685
|
n.value && (n.value.fallbackLocale.value = j), r.value = j;
|
3686
3686
|
}
|
3687
|
-
}),
|
3687
|
+
}), x = E(() => n.value ? n.value.messages.value : o.value), B = E(() => m.value), Z = E(() => u.value);
|
3688
3688
|
function O() {
|
3689
3689
|
return n.value ? n.value.getPostTranslationHandler() : _;
|
3690
3690
|
}
|
@@ -3749,9 +3749,9 @@ function sG(e, c, a, t = {}) {
|
|
3749
3749
|
get id() {
|
3750
3750
|
return n.value ? n.value.id : -1;
|
3751
3751
|
},
|
3752
|
-
locale:
|
3753
|
-
fallbackLocale:
|
3754
|
-
messages:
|
3752
|
+
locale: k,
|
3753
|
+
fallbackLocale: S,
|
3754
|
+
messages: x,
|
3755
3755
|
datetimeFormats: B,
|
3756
3756
|
numberFormats: Z,
|
3757
3757
|
get inheritLocale() {
|
@@ -18635,9 +18635,9 @@ const BG = (e) => ({
|
|
18635
18635
|
x: a,
|
18636
18636
|
y: t
|
18637
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
|
18639
|
-
(!
|
18640
|
-
const
|
18638
|
+
let k = A ? A[z] : 0;
|
18639
|
+
(!k || !await (s.isElement == null ? void 0 : s.isElement(A))) && (k = l.floating[z] || n.floating[H]);
|
18640
|
+
const S = L / 2 - y / 2, x = k / 2 - C[H] / 2 - 1, B = G2(u[_], x), Z = G2(u[g], x), O = B, e1 = k - C[H] - Z, r1 = k / 2 - C[H] / 2 + S, U = x8(O, r1, e1), Y = !r.arrow && s2(i) != null && r1 !== U && n.reference[H] / 2 - (r1 < O ? B : Z) - C[H] / 2 < 0, m1 = Y ? r1 < O ? r1 - O : r1 - e1 : 0;
|
18641
18641
|
return {
|
18642
18642
|
[p]: v[p] + m1,
|
18643
18643
|
data: {
|
@@ -18696,7 +18696,7 @@ const RG = function(e) {
|
|
18696
18696
|
placement: A
|
18697
18697
|
}
|
18698
18698
|
};
|
18699
|
-
const
|
18699
|
+
const k = y.map((B) => {
|
18700
18700
|
const Z = s2(B.placement);
|
18701
18701
|
return [B.placement, Z && m ? (
|
18702
18702
|
// Check along the mainAxis and main crossAxis side.
|
@@ -18705,19 +18705,19 @@ const RG = function(e) {
|
|
18705
18705
|
// Check only the mainAxis.
|
18706
18706
|
B.overflows[0]
|
18707
18707
|
), B.overflows];
|
18708
|
-
}).sort((B, Z) => B[1] - Z[1]),
|
18708
|
+
}).sort((B, Z) => B[1] - Z[1]), x = ((i = k.filter((B) => B[2].slice(
|
18709
18709
|
0,
|
18710
18710
|
// Aligned placements should not check their opposite crossAxis
|
18711
18711
|
// side.
|
18712
18712
|
s2(B[0]) ? 2 : 3
|
18713
|
-
).every((Z) => Z <= 0))[0]) == null ? void 0 : i[0]) ||
|
18714
|
-
return
|
18713
|
+
).every((Z) => Z <= 0))[0]) == null ? void 0 : i[0]) || k[0][0];
|
18714
|
+
return x !== l ? {
|
18715
18715
|
data: {
|
18716
18716
|
index: _ + 1,
|
18717
18717
|
overflows: y
|
18718
18718
|
},
|
18719
18719
|
reset: {
|
18720
|
-
placement:
|
18720
|
+
placement: x
|
18721
18721
|
}
|
18722
18722
|
} : {};
|
18723
18723
|
}
|
@@ -18748,34 +18748,34 @@ const RG = function(e) {
|
|
18748
18748
|
return {};
|
18749
18749
|
const _ = p2(i), g = p2(l) === l, z = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), L = v || (g || !C ? [F4(l)] : IG(l));
|
18750
18750
|
!v && H !== "none" && L.push(...DG(l, C, H, z));
|
18751
|
-
const y = [l, ...L], A = await J6(c, b),
|
18752
|
-
let
|
18753
|
-
if (m &&
|
18751
|
+
const y = [l, ...L], A = await J6(c, b), k = [];
|
18752
|
+
let S = ((t = n.flip) == null ? void 0 : t.overflows) || [];
|
18753
|
+
if (m && k.push(A[_]), u) {
|
18754
18754
|
const O = gq(i, s, z);
|
18755
|
-
|
18755
|
+
k.push(A[O[0]], A[O[1]]);
|
18756
18756
|
}
|
18757
|
-
if (
|
18757
|
+
if (S = [...S, {
|
18758
18758
|
placement: i,
|
18759
|
-
overflows:
|
18760
|
-
}], !
|
18761
|
-
var
|
18762
|
-
const O = (((
|
18759
|
+
overflows: k
|
18760
|
+
}], !k.every((O) => O <= 0)) {
|
18761
|
+
var x, B;
|
18762
|
+
const O = (((x = n.flip) == null ? void 0 : x.index) || 0) + 1, e1 = y[O];
|
18763
18763
|
if (e1)
|
18764
18764
|
return {
|
18765
18765
|
data: {
|
18766
18766
|
index: O,
|
18767
|
-
overflows:
|
18767
|
+
overflows: S
|
18768
18768
|
},
|
18769
18769
|
reset: {
|
18770
18770
|
placement: e1
|
18771
18771
|
}
|
18772
18772
|
};
|
18773
|
-
let r1 = (B =
|
18773
|
+
let r1 = (B = S.filter((U) => U.overflows[0] <= 0).sort((U, Y) => U.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : B.placement;
|
18774
18774
|
if (!r1)
|
18775
18775
|
switch (p) {
|
18776
18776
|
case "bestFit": {
|
18777
18777
|
var Z;
|
18778
|
-
const U = (Z =
|
18778
|
+
const U = (Z = S.map((Y) => [Y.placement, Y.overflows.filter((m1) => m1 > 0).reduce((m1, P1) => m1 + P1, 0)]).sort((Y, m1) => Y[1] - m1[1])[0]) == null ? void 0 : Z[0];
|
18779
18779
|
U && (r1 = U);
|
18780
18780
|
break;
|
18781
18781
|
}
|
@@ -18919,16 +18919,16 @@ const $G = function(e) {
|
|
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
18920
|
let y = g, A = z;
|
18921
18921
|
if (u ? A = m || L ? G2(z, _) : _ : y = m || L ? G2(g, b) : b, L && !m) {
|
18922
|
-
const
|
18923
|
-
u ? A = v - 2 * (
|
18922
|
+
const S = W2(r.left, 0), x = W2(r.right, 0), B = W2(r.top, 0), Z = W2(r.bottom, 0);
|
18923
|
+
u ? A = v - 2 * (S !== 0 || x !== 0 ? S + x : W2(r.left, r.right)) : y = p - 2 * (B !== 0 || Z !== 0 ? B + Z : W2(r.top, r.bottom));
|
18924
18924
|
}
|
18925
18925
|
await s({
|
18926
18926
|
...c,
|
18927
18927
|
availableWidth: A,
|
18928
18928
|
availableHeight: y
|
18929
18929
|
});
|
18930
|
-
const
|
18931
|
-
return v !==
|
18930
|
+
const k = await i.getDimensions(n.floating);
|
18931
|
+
return v !== k.width || p !== k.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: N(e.finalContent)
|
20554
20554
|
}, null, 8, gJ))
|
20555
20555
|
]),
|
20556
20556
|
_: 2
|
@@ -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 = [Q.replacementClass, n ? "".concat(Q.cssPrefix, "-").concat(n) : ""].filter(function(
|
22220
|
-
return u.classes.indexOf(
|
22221
|
-
}).filter(function(
|
22222
|
-
return
|
22219
|
+
var c = e.icons, a = c.main, t = c.mask, i = e.prefix, n = e.iconName, s = e.transform, l = e.symbol, r = e.title, o = e.maskId, m = e.titleId, u = e.extra, v = e.watchable, p = v === void 0 ? !1 : v, H = t.found ? t : a, C = H.width, b = H.height, _ = i === "fak", g = [Q.replacementClass, n ? "".concat(Q.cssPrefix, "-").concat(n) : ""].filter(function(x) {
|
22220
|
+
return u.classes.indexOf(x) === -1;
|
22221
|
+
}).filter(function(x) {
|
22222
|
+
return x !== "" || !!x;
|
22223
22223
|
}).concat(u.classes).join(" "), z = {
|
22224
22224
|
children: [],
|
22225
22225
|
attributes: W(W({}, u.attributes), {}, {
|
@@ -22255,8 +22255,8 @@ function Mi(e) {
|
|
22255
22255
|
} : b2("generateAbstractIcon", y) || {
|
22256
22256
|
children: [],
|
22257
22257
|
attributes: {}
|
22258
|
-
},
|
22259
|
-
return y.children =
|
22258
|
+
}, k = A.children, S = A.attributes;
|
22259
|
+
return y.children = k, y.attributes = S, l ? NZ(y) : xZ(y);
|
22260
22260
|
}
|
22261
22261
|
function Rn(e) {
|
22262
22262
|
var c = e.content, a = e.width, t = e.height, i = e.transform, n = e.title, s = e.extra, l = e.watchable, r = l === void 0 ? !1 : l, o = W(W(W({}, s.attributes), n ? {
|
@@ -22644,7 +22644,7 @@ 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 y = c.prefix, A = c.iconName,
|
22647
|
+
var y = c.prefix, A = c.iconName, k = c.icon;
|
22648
22648
|
return a8(W({
|
22649
22649
|
type: "icon"
|
22650
22650
|
}, c), function() {
|
@@ -22653,7 +22653,7 @@ var GZ = function(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(k),
|
22657
22657
|
mask: r ? B8(r.icon) : {
|
22658
22658
|
found: !1,
|
22659
22659
|
width: null,
|
@@ -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(k) {
|
22850
|
+
return k.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();
|
@@ -22860,18 +22860,18 @@ function Zn(e, c) {
|
|
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
22862
|
var y = qZ(), A = y.extra;
|
22863
|
-
A.attributes[I8] = c, F8(g, p).then(function(
|
22864
|
-
var
|
22863
|
+
A.attributes[I8] = c, F8(g, p).then(function(k) {
|
22864
|
+
var S = Mi(W(W({}, y), {}, {
|
22865
22865
|
icons: {
|
22866
|
-
main:
|
22866
|
+
main: k,
|
22867
22867
|
mask: Vi()
|
22868
22868
|
},
|
22869
22869
|
prefix: p,
|
22870
22870
|
iconName: z,
|
22871
22871
|
extra: A,
|
22872
22872
|
watchable: !0
|
22873
|
-
})),
|
22874
|
-
c === "::before" ? e.insertBefore(
|
22873
|
+
})), x = L1.createElementNS("http://www.w3.org/2000/svg", "svg");
|
22874
|
+
c === "::before" ? e.insertBefore(x, e.firstChild) : e.appendChild(x), x.outerHTML = S.map(function(B) {
|
22875
22875
|
return z4(B);
|
22876
22876
|
}).join(`
|
22877
22877
|
`), e.removeAttribute(a), t();
|
@@ -23324,7 +23324,7 @@ const uY = G({
|
|
23324
23324
|
"data-test": "btn-icon"
|
23325
23325
|
}, null, 8, ["icon"])) : I("", !0),
|
23326
23326
|
H1(i.$slots, "default", {}, () => [
|
23327
|
-
z1(
|
23327
|
+
z1(N(e.label), 1)
|
23328
23328
|
], !0),
|
23329
23329
|
e.iconRight ? (d(), K(s, {
|
23330
23330
|
key: 1,
|
@@ -23411,7 +23411,7 @@ const hY = /* @__PURE__ */ J(pY, [["__scopeId", "data-v-70d9cfd4"]]), zY = /* @_
|
|
23411
23411
|
"AVBullet--active": e.active,
|
23412
23412
|
"AVBullet--hover": e.hover
|
23413
23413
|
}])
|
23414
|
-
},
|
23414
|
+
}, N(e.value || "0"), 3)
|
23415
23415
|
], 2)) : (d(), K(t, {
|
23416
23416
|
key: 2,
|
23417
23417
|
icon: "fa-solid fa-circle",
|
@@ -23489,7 +23489,7 @@ const q8 = /* @__PURE__ */ J(zY, [["__scopeId", "data-v-5b7d0fcb"]]), VY = { cla
|
|
23489
23489
|
"data-test": "input-label"
|
23490
23490
|
}, [
|
23491
23491
|
f("span", null, [
|
23492
|
-
z1(
|
23492
|
+
z1(N(e.inputLabel) + " ", 1),
|
23493
23493
|
e.tooltipText ? G1((d(), K(r, {
|
23494
23494
|
key: 0,
|
23495
23495
|
icon: "circle-question",
|
@@ -23527,7 +23527,7 @@ const q8 = /* @__PURE__ */ J(zY, [["__scopeId", "data-v-5b7d0fcb"]]), VY = { cla
|
|
23527
23527
|
})
|
23528
23528
|
])) : I("", !0)
|
23529
23529
|
]),
|
23530
|
-
e.error && e.errorMessage ? (d(), h("p", LY,
|
23530
|
+
e.error && e.errorMessage ? (d(), h("p", LY, N(e.errorMessage), 1)) : I("", !0)
|
23531
23531
|
]);
|
23532
23532
|
};
|
23533
23533
|
}
|
@@ -23618,7 +23618,7 @@ const _Y = /* @__PURE__ */ J(AY, [["__scopeId", "data-v-6c6cbec3"]]), xY = { cla
|
|
23618
23618
|
"data-test": "input-label"
|
23619
23619
|
}, [
|
23620
23620
|
f("span", null, [
|
23621
|
-
z1(
|
23621
|
+
z1(N(e.inputLabel) + " ", 1),
|
23622
23622
|
e.tooltipText ? G1((d(), K(p, {
|
23623
23623
|
key: 0,
|
23624
23624
|
icon: "circle-question",
|
@@ -23699,7 +23699,7 @@ const _Y = /* @__PURE__ */ J(AY, [["__scopeId", "data-v-6c6cbec3"]]), xY = { cla
|
|
23699
23699
|
})
|
23700
23700
|
])) : I("", !0)
|
23701
23701
|
], 32),
|
23702
|
-
e.error && e.errorMessage ? (d(), h("p", wY,
|
23702
|
+
e.error && e.errorMessage ? (d(), h("p", wY, N(e.errorMessage), 1)) : I("", !0)
|
23703
23703
|
]);
|
23704
23704
|
};
|
23705
23705
|
}
|
@@ -23765,7 +23765,7 @@ const IY = /* @__PURE__ */ J(TY, [["__scopeId", "data-v-c69bbc44"]]), EY = { cla
|
|
23765
23765
|
"data-test": "input-label"
|
23766
23766
|
}, [
|
23767
23767
|
f("span", null, [
|
23768
|
-
z1(
|
23768
|
+
z1(N(e.inputLabel) + " ", 1),
|
23769
23769
|
e.tooltipText ? G1((d(), K(r, {
|
23770
23770
|
key: 0,
|
23771
23771
|
icon: "circle-question",
|
@@ -23809,7 +23809,7 @@ const IY = /* @__PURE__ */ J(TY, [["__scopeId", "data-v-c69bbc44"]]), EY = { cla
|
|
23809
23809
|
])
|
23810
23810
|
])
|
23811
23811
|
]),
|
23812
|
-
e.error && e.errorMessage ? (d(), h("p", RY,
|
23812
|
+
e.error && e.errorMessage ? (d(), h("p", RY, N(e.errorMessage), 1)) : I("", !0)
|
23813
23813
|
]);
|
23814
23814
|
};
|
23815
23815
|
}
|
@@ -23877,7 +23877,7 @@ const qY = /* @__PURE__ */ J(jY, [["__scopeId", "data-v-b1c76306"]]), $Y = { cla
|
|
23877
23877
|
"data-test": "input-label"
|
23878
23878
|
}, [
|
23879
23879
|
f("span", null, [
|
23880
|
-
z1(
|
23880
|
+
z1(N(e.inputLabel) + " ", 1),
|
23881
23881
|
e.tooltipText ? G1((d(), K(s, {
|
23882
23882
|
key: 0,
|
23883
23883
|
icon: "circle-question",
|
@@ -23914,7 +23914,7 @@ const qY = /* @__PURE__ */ J(jY, [["__scopeId", "data-v-b1c76306"]]), $Y = { cla
|
|
23914
23914
|
max: e.max
|
23915
23915
|
}, null, 46, JY)
|
23916
23916
|
]),
|
23917
|
-
e.error && e.errorMessage ? (d(), h("p", ZY,
|
23917
|
+
e.error && e.errorMessage ? (d(), h("p", ZY, N(e.errorMessage), 1)) : I("", !0)
|
23918
23918
|
]);
|
23919
23919
|
};
|
23920
23920
|
}
|
@@ -23985,7 +23985,7 @@ const QY = /* @__PURE__ */ J(YY, [["__scopeId", "data-v-d438432a"]]), KY = { cla
|
|
23985
23985
|
"data-test": "input-label"
|
23986
23986
|
}, [
|
23987
23987
|
f("span", null, [
|
23988
|
-
z1(
|
23988
|
+
z1(N(e.inputLabel) + " ", 1),
|
23989
23989
|
e.tooltipText ? G1((d(), K(s, {
|
23990
23990
|
key: 0,
|
23991
23991
|
icon: "circle-question",
|
@@ -24030,7 +24030,7 @@ const QY = /* @__PURE__ */ J(YY, [["__scopeId", "data-v-d438432a"]]), KY = { cla
|
|
24030
24030
|
})
|
24031
24031
|
])) : I("", !0)
|
24032
24032
|
]),
|
24033
|
-
e.error && e.errorMessage ? (d(), h("p", tQ,
|
24033
|
+
e.error && e.errorMessage ? (d(), h("p", tQ, N(e.errorMessage), 1)) : I("", !0)
|
24034
24034
|
]);
|
24035
24035
|
};
|
24036
24036
|
}
|
@@ -24055,7 +24055,7 @@ const nQ = /* @__PURE__ */ J(iQ, [["__scopeId", "data-v-c9875ea2"]]), sQ = /* @_
|
|
24055
24055
|
`;
|
24056
24056
|
return (t, i) => (d(), h("span", {
|
24057
24057
|
class: $(a)
|
24058
|
-
},
|
24058
|
+
}, N(e.value), 1));
|
24059
24059
|
}
|
24060
24060
|
});
|
24061
24061
|
const lQ = /* @__PURE__ */ J(sQ, [["__scopeId", "data-v-ee7ab830"]]), rQ = /* @__PURE__ */ G({
|
@@ -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(N(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, N(e.placeholder), 1)) : (d(), h("span", {
|
24231
24231
|
key: 2,
|
24232
24232
|
class: "AVDropdown--selected-option",
|
24233
|
-
textContent:
|
24233
|
+
textContent: N(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, N(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
|
+
}, N(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, N(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, k] = i.customOpenMethod;
|
24483
|
+
s.value.onclick = async (S) => {
|
24484
|
+
S.preventDefault();
|
24485
|
+
const x = await A({
|
24486
24486
|
multiple: !1,
|
24487
24487
|
directory: !1,
|
24488
24488
|
filters: [
|
@@ -24492,9 +24492,9 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24492
24492
|
}
|
24493
24493
|
]
|
24494
24494
|
});
|
24495
|
-
if (
|
24496
|
-
const B =
|
24497
|
-
filePath:
|
24495
|
+
if (x !== null) {
|
24496
|
+
const B = x.split("/").pop(), Z = await k("read_local_file_content", {
|
24497
|
+
filePath: x
|
24498
24498
|
}), O = new Blob([Z], { type: "plain/text" }), e1 = new File([O], B);
|
24499
24499
|
l.value.push(e1), r("update", l.value);
|
24500
24500
|
}
|
@@ -24514,24 +24514,36 @@ 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 B =
|
24517
|
+
const k = Array.from(A), S = new DataTransfer();
|
24518
|
+
for (let x of k) {
|
24519
|
+
const B = x.name.split(".").pop();
|
24520
24520
|
if (C.value.includes(
|
24521
24521
|
`.${B.toLowerCase()}`
|
24522
24522
|
)) {
|
24523
|
-
const O = new File([
|
24524
|
-
type:
|
24525
|
-
lastModified:
|
24523
|
+
const O = new File([x], x.name, {
|
24524
|
+
type: x.type,
|
24525
|
+
lastModified: x.lastModified
|
24526
24526
|
});
|
24527
|
-
|
24527
|
+
S.items.add(O);
|
24528
24528
|
} else
|
24529
|
-
r("fileFormatNotAccepted",
|
24529
|
+
r("fileFormatNotAccepted", x.name);
|
24530
24530
|
}
|
24531
|
-
return
|
24531
|
+
return S.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) =>
|
24534
|
+
), b = (A) => {
|
24535
|
+
const k = Math.round(A / 1024), S = Math.round(k / 1024), x = Math.round(S / 1024);
|
24536
|
+
switch (!0) {
|
24537
|
+
case !!x:
|
24538
|
+
return `${x}Gb`;
|
24539
|
+
case !!S:
|
24540
|
+
return `${S}Mb`;
|
24541
|
+
case !!k:
|
24542
|
+
return `${k}Kb`;
|
24543
|
+
default:
|
24544
|
+
return `${A}b`;
|
24545
|
+
}
|
24546
|
+
}, _ = (A) => A.split("/").pop(), g = (A) => {
|
24535
24547
|
if (A.preventDefault(), !i.disabled) {
|
24536
24548
|
if (s.value.files = v(Array.from(A.dataTransfer.files)), !s.value.files.length) {
|
24537
24549
|
n.value = !1;
|
@@ -24542,15 +24554,15 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24542
24554
|
}, z = (A) => {
|
24543
24555
|
l.value.splice(A, 1), r("update", l.value);
|
24544
24556
|
}, L = (A) => {
|
24545
|
-
const
|
24557
|
+
const k = URL.createObjectURL(A);
|
24546
24558
|
return setTimeout(() => {
|
24547
|
-
URL.revokeObjectURL(
|
24548
|
-
}, 1e3),
|
24559
|
+
URL.revokeObjectURL(k);
|
24560
|
+
}, 1e3), k;
|
24549
24561
|
}, y = (A) => {
|
24550
24562
|
r("download", A);
|
24551
24563
|
};
|
24552
|
-
return (A,
|
24553
|
-
const
|
24564
|
+
return (A, k) => {
|
24565
|
+
const S = D("AVIcon"), x = B2("tooltip");
|
24554
24566
|
return d(), h("div", TQ, [
|
24555
24567
|
e.disableLabel ? I("", !0) : (d(), h("label", {
|
24556
24568
|
key: 0,
|
@@ -24559,13 +24571,13 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24559
24571
|
"data-test": "input-label"
|
24560
24572
|
}, [
|
24561
24573
|
f("span", null, [
|
24562
|
-
z1(
|
24563
|
-
e.tooltipText ? G1((d(), K(
|
24574
|
+
z1(N(e.inputLabel) + " ", 1),
|
24575
|
+
e.tooltipText ? G1((d(), K(S, {
|
24564
24576
|
key: 0,
|
24565
24577
|
icon: "circle-question",
|
24566
24578
|
class: "AVFileInput--tooltip-icon"
|
24567
24579
|
}, null, 512)), [
|
24568
|
-
[
|
24580
|
+
[x, e.tooltipText]
|
24569
24581
|
]) : I("", !0)
|
24570
24582
|
])
|
24571
24583
|
], 8, IQ)),
|
@@ -24592,7 +24604,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24592
24604
|
disabled: e.disabled
|
24593
24605
|
}, null, 40, DQ),
|
24594
24606
|
f("div", PQ, [
|
24595
|
-
T(
|
24607
|
+
T(S, {
|
24596
24608
|
icon: "fa-solid fa-cloud-arrow-up",
|
24597
24609
|
class: "AVFileInput--input-icon",
|
24598
24610
|
"data-test": "input-icon"
|
@@ -24600,23 +24612,23 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24600
24612
|
]),
|
24601
24613
|
f("div", OQ, [
|
24602
24614
|
n.value ? (d(), h("div", BQ, [
|
24603
|
-
f("div", FQ,
|
24615
|
+
f("div", FQ, N(F(t)("js.components.AVFileInput.release")), 1)
|
24604
24616
|
])) : (d(), h("div", RQ, [
|
24605
|
-
f("div", jQ,
|
24617
|
+
f("div", jQ, N(F(t)("js.components.AVFileInput.primary")), 1),
|
24606
24618
|
f("div", qQ, [
|
24607
|
-
z1(
|
24608
|
-
f("strong", null,
|
24609
|
-
z1(" " +
|
24619
|
+
z1(N(F(t)("js.components.AVFileInput.secondary.start")) + " ", 1),
|
24620
|
+
f("strong", null, N(F(t)("js.components.AVFileInput.secondary.strong")), 1),
|
24621
|
+
z1(" " + N(F(t)("js.components.AVFileInput.secondary.end")), 1)
|
24610
24622
|
])
|
24611
24623
|
]))
|
24612
24624
|
])
|
24613
24625
|
], 42, EQ),
|
24614
24626
|
e.disableAcceptedFormats ? I("", !0) : (d(), h("p", $Q, [
|
24615
|
-
z1(
|
24616
|
-
f("em", UQ,
|
24627
|
+
z1(N(F(t)("js.components.AVFileInput.acceptedFormats")) + " ", 1),
|
24628
|
+
f("em", UQ, N(H.value), 1)
|
24617
24629
|
])),
|
24618
24630
|
l.value.length ? (d(), h("div", WQ, [
|
24619
|
-
f("p", GQ,
|
24631
|
+
f("p", GQ, N(F(t)("js.components.AVFileInput.uploading")), 1),
|
24620
24632
|
(d(!0), h(a1, null, g1(l.value, (B) => (d(), h("div", {
|
24621
24633
|
key: B.name,
|
24622
24634
|
class: $(["AVFileInput--preview-card", { error: e.error }])
|
@@ -24627,7 +24639,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24627
24639
|
key: 0,
|
24628
24640
|
class: "AVFileInput--preview-img",
|
24629
24641
|
src: L(B)
|
24630
|
-
}, null, 8, YQ)) : (d(), K(
|
24642
|
+
}, null, 8, YQ)) : (d(), K(S, {
|
24631
24643
|
key: 1,
|
24632
24644
|
icon: "fa-solid fa-file",
|
24633
24645
|
class: "AVTextInput--preview-icon",
|
@@ -24635,8 +24647,8 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24635
24647
|
}))
|
24636
24648
|
]),
|
24637
24649
|
f("p", QQ, [
|
24638
|
-
z1(
|
24639
|
-
f("em", null,
|
24650
|
+
z1(N(B.name) + " ", 1),
|
24651
|
+
f("em", null, N(b(B.size)), 1)
|
24640
24652
|
])
|
24641
24653
|
]),
|
24642
24654
|
e.disabled ? I("", !0) : (d(), h("button", {
|
@@ -24646,7 +24658,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24646
24658
|
onClick: (Z) => z(l.value.indexOf(B)),
|
24647
24659
|
title: "Remove file"
|
24648
24660
|
}, [
|
24649
|
-
T(
|
24661
|
+
T(S, {
|
24650
24662
|
icon: "fa-solid fa-trash",
|
24651
24663
|
class: "AVTextInput--delete-icon",
|
24652
24664
|
"data-test": "file-preview-icon"
|
@@ -24655,7 +24667,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24655
24667
|
], 2))), 128))
|
24656
24668
|
])) : I("", !0),
|
24657
24669
|
e.currentValue.length ? (d(), h("div", XQ, [
|
24658
|
-
f("p", eK,
|
24670
|
+
f("p", eK, N(F(t)("js.components.AVFileInput.current")), 1),
|
24659
24671
|
(d(!0), h(a1, null, g1(e.currentValue, (B) => (d(), h("div", {
|
24660
24672
|
key: `image-${B}`
|
24661
24673
|
}, [
|
@@ -24667,13 +24679,13 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24667
24679
|
}, null, 8, cK)) : (d(), h("div", aK, [
|
24668
24680
|
f("div", tK, [
|
24669
24681
|
f("div", iK, [
|
24670
|
-
T(
|
24682
|
+
T(S, {
|
24671
24683
|
icon: "fa-solid fa-file",
|
24672
24684
|
class: "AVTextInput--preview-icon",
|
24673
24685
|
"data-test": "file-preview-icon"
|
24674
24686
|
})
|
24675
24687
|
]),
|
24676
|
-
f("p", nK,
|
24688
|
+
f("p", nK, N(_(B)), 1)
|
24677
24689
|
]),
|
24678
24690
|
f("button", {
|
24679
24691
|
class: "AVTextInput--delete-btn",
|
@@ -24681,7 +24693,7 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24681
24693
|
title: "Download file",
|
24682
24694
|
onClick: (Z) => y(B)
|
24683
24695
|
}, [
|
24684
|
-
T(
|
24696
|
+
T(S, {
|
24685
24697
|
icon: "fa-solid fa-download",
|
24686
24698
|
class: "AVTextInput--download-icon",
|
24687
24699
|
"data-test": "file-download-icon"
|
@@ -24690,12 +24702,12 @@ const wQ = /* @__PURE__ */ J(SQ, [["__scopeId", "data-v-0cc3f6d1"]]), TQ = { cla
|
|
24690
24702
|
]))
|
24691
24703
|
]))), 128))
|
24692
24704
|
])) : I("", !0),
|
24693
|
-
e.error && e.errorMessage ? (d(), h("p", lK,
|
24705
|
+
e.error && e.errorMessage ? (d(), h("p", lK, N(e.errorMessage), 1)) : I("", !0)
|
24694
24706
|
]);
|
24695
24707
|
};
|
24696
24708
|
}
|
24697
24709
|
});
|
24698
|
-
const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-
|
24710
|
+
const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-79fb2c61"]]), 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
24711
|
__name: "AVRadio",
|
24700
24712
|
props: {
|
24701
24713
|
id: {
|
@@ -24743,7 +24755,7 @@ const oK = /* @__PURE__ */ J(rK, [["__scopeId", "data-v-bed31711"]]), fK = (e) =
|
|
24743
24755
|
disabled: e.disabled
|
24744
24756
|
}, null, 40, mK),
|
24745
24757
|
dK,
|
24746
|
-
z1(" " +
|
24758
|
+
z1(" " + N(e.value), 1)
|
24747
24759
|
], 10, uK));
|
24748
24760
|
}
|
24749
24761
|
});
|
@@ -24815,7 +24827,7 @@ const pK = /* @__PURE__ */ J(vK, [["__scopeId", "data-v-065c2914"]]), hK = ["hre
|
|
24815
24827
|
target: e.target,
|
24816
24828
|
class: $(`AVLink AVLink--${e.variant}`)
|
24817
24829
|
}, [
|
24818
|
-
f("span", null,
|
24830
|
+
f("span", null, N(e.label), 1),
|
24819
24831
|
e.disableIcon ? I("", !0) : (d(), K(t, {
|
24820
24832
|
key: 0,
|
24821
24833
|
icon: "fa-solid fa-arrow-up-right-from-square",
|
@@ -24889,7 +24901,7 @@ const VK = /* @__PURE__ */ J(zK, [["__scopeId", "data-v-999075bc"]]), MK = ["hre
|
|
24889
24901
|
icon: `fa-solid fa-${e.icon}`,
|
24890
24902
|
class: "AVNavbarItem--icon"
|
24891
24903
|
}, null, 8, ["icon"])),
|
24892
|
-
f("span", HK,
|
24904
|
+
f("span", HK, N(e.label), 1)
|
24893
24905
|
], 14, MK)) : (d(), h("button", {
|
24894
24906
|
key: 1,
|
24895
24907
|
class: $(["AVNavbarItem", {
|
@@ -24905,7 +24917,7 @@ const VK = /* @__PURE__ */ J(zK, [["__scopeId", "data-v-999075bc"]]), MK = ["hre
|
|
24905
24917
|
icon: `fa-solid fa-${e.icon}`,
|
24906
24918
|
class: "AVNavbarItem--icon"
|
24907
24919
|
}, null, 8, ["icon"])),
|
24908
|
-
f("span", CK,
|
24920
|
+
f("span", CK, N(e.label), 1)
|
24909
24921
|
], 14, gK));
|
24910
24922
|
};
|
24911
24923
|
}
|
@@ -24988,7 +25000,7 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
|
|
24988
25000
|
hover: i.value,
|
24989
25001
|
"aria-hidden": "true"
|
24990
25002
|
}, null, 8, ["type", "active", "value", "hover"]),
|
24991
|
-
f("span", _K,
|
25003
|
+
f("span", _K, N(e.label), 1)
|
24992
25004
|
], 42, AK)) : (d(), h("button", {
|
24993
25005
|
key: 1,
|
24994
25006
|
class: $(["AVSidebarItem", {
|
@@ -25008,7 +25020,7 @@ const LK = /* @__PURE__ */ J(bK, [["__scopeId", "data-v-00ff3c9d"]]), AK = ["hre
|
|
25008
25020
|
hover: i.value,
|
25009
25021
|
"aria-hidden": "true"
|
25010
25022
|
}, null, 8, ["type", "active", "value", "hover"]),
|
25011
|
-
f("span", NK,
|
25023
|
+
f("span", NK, N(e.label), 1)
|
25012
25024
|
], 42, xK));
|
25013
25025
|
}
|
25014
25026
|
});
|
@@ -25065,7 +25077,7 @@ const kK = /* @__PURE__ */ J(yK, [["__scopeId", "data-v-3e891e66"]]), SK = { cla
|
|
25065
25077
|
return (c, a) => {
|
25066
25078
|
const t = D("AVIcon"), i = B2("tooltip");
|
25067
25079
|
return G1((d(), h("span", SK, [
|
25068
|
-
e.text ? (d(), h("span", wK,
|
25080
|
+
e.text ? (d(), h("span", wK, N(e.text), 1)) : H1(c.$slots, "text", { key: 1 }, void 0, !0),
|
25069
25081
|
e.icon ? (d(), K(t, {
|
25070
25082
|
key: 2,
|
25071
25083
|
icon: e.icon,
|
@@ -25207,7 +25219,7 @@ const RK = /* @__PURE__ */ J(FK, [["__scopeId", "data-v-e8fb623b"]]), jK = ["hre
|
|
25207
25219
|
icon: `fa-solid fa-${e.icon}`,
|
25208
25220
|
"data-test": "option-icon"
|
25209
25221
|
}, null, 8, ["icon"])) : I("", !0),
|
25210
|
-
z1(" " +
|
25222
|
+
z1(" " + N(e.optionLabel), 1)
|
25211
25223
|
], 10, jK);
|
25212
25224
|
};
|
25213
25225
|
}
|
@@ -25305,7 +25317,7 @@ const $K = /* @__PURE__ */ J(qK, [["__scopeId", "data-v-8513fa9b"]]), UK = ["dis
|
|
25305
25317
|
class: "AVAsyncButton--icon",
|
25306
25318
|
"data-test": "btn-icon"
|
25307
25319
|
}, null, 8, ["icon"])) : I("", !0),
|
25308
|
-
f("span", WK,
|
25320
|
+
f("span", WK, N(e.label), 1)
|
25309
25321
|
], !0)
|
25310
25322
|
], 10, UK);
|
25311
25323
|
};
|
@@ -25372,7 +25384,7 @@ const JK = /* @__PURE__ */ J(GK, [["__scopeId", "data-v-7439a7ec"]]), ZK = { cla
|
|
25372
25384
|
class: $(`AVTabSwitcher--button ${n.value} ${H.selected ? "AVTabSwitcher--button-active" : ""} ${H.disabled ? "disabled" : ""}`),
|
25373
25385
|
disabled: H.disabled,
|
25374
25386
|
onClick: (C) => m(H.value)
|
25375
|
-
},
|
25387
|
+
}, N(H.value), 11, YK))), 128))
|
25376
25388
|
]));
|
25377
25389
|
}
|
25378
25390
|
});
|
@@ -25413,7 +25425,7 @@ const KK = /* @__PURE__ */ J(QK, [["__scopeId", "data-v-3c4a2127"]]), XK = { cla
|
|
25413
25425
|
}, null, 8, ["icon", "class"]),
|
25414
25426
|
f("span", {
|
25415
25427
|
class: $(["AVBallotSummary--ballot-name", { "AVBallotSummary--name-ready": a.value }])
|
25416
|
-
},
|
25428
|
+
}, N(e.ballotStyleName), 3)
|
25417
25429
|
]),
|
25418
25430
|
f("div", cX, [
|
25419
25431
|
a.value ? (d(), K(s, {
|
@@ -25428,7 +25440,7 @@ const KK = /* @__PURE__ */ J(QK, [["__scopeId", "data-v-3c4a2127"]]), XK = { cla
|
|
25428
25440
|
})),
|
25429
25441
|
f("span", {
|
25430
25442
|
class: $(["AVBallotSummary--ballot-status", { "AVBallotSummary--status-ready": a.value }])
|
25431
|
-
},
|
25443
|
+
}, N(a.value ? `${e.currentBallots} ${e.readyLabel}` : `${t.value} ${e.waitingLabel}`), 3)
|
25432
25444
|
])
|
25433
25445
|
]);
|
25434
25446
|
};
|
@@ -25497,8 +25509,8 @@ const tX = /* @__PURE__ */ J(aX, [["__scopeId", "data-v-2d7c011c"]]), iX = {
|
|
25497
25509
|
}]),
|
25498
25510
|
"data-test": "help-text"
|
25499
25511
|
}, [
|
25500
|
-
z1(
|
25501
|
-
f("strong", null,
|
25512
|
+
z1(N(e.expirationMessage), 1),
|
25513
|
+
f("strong", null, N(m.value), 1)
|
25502
25514
|
], 2)
|
25503
25515
|
], 64));
|
25504
25516
|
}
|
@@ -25531,14 +25543,14 @@ const lX = /* @__PURE__ */ J(sX, [["__scopeId", "data-v-7d0d595b"]]), rX = (e) =
|
|
25531
25543
|
"AVBasicSteps--step-active": a(e.steps[0])
|
25532
25544
|
}]),
|
25533
25545
|
"data-test": "step"
|
25534
|
-
},
|
25546
|
+
}, N(e.steps[0]), 3),
|
25535
25547
|
fX,
|
25536
25548
|
f("span", {
|
25537
25549
|
class: $(["AVBasicSteps--step", {
|
25538
25550
|
"AVBasicSteps--step-active": a(e.steps[1])
|
25539
25551
|
}]),
|
25540
25552
|
"data-test": "step"
|
25541
|
-
},
|
25553
|
+
}, N(e.steps[1]), 3),
|
25542
25554
|
e.steps.length === 3 ? (d(), h("span", uX)) : I("", !0),
|
25543
25555
|
e.steps.length === 3 ? (d(), h("span", {
|
25544
25556
|
key: 1,
|
@@ -25546,7 +25558,7 @@ const lX = /* @__PURE__ */ J(sX, [["__scopeId", "data-v-7d0d595b"]]), rX = (e) =
|
|
25546
25558
|
"AVBasicSteps--step-active": a(e.steps[2])
|
25547
25559
|
}]),
|
25548
25560
|
"data-test": "step"
|
25549
|
-
},
|
25561
|
+
}, N(e.steps[2]), 3)) : I("", !0)
|
25550
25562
|
]));
|
25551
25563
|
}
|
25552
25564
|
});
|
@@ -25614,10 +25626,10 @@ const dX = /* @__PURE__ */ J(mX, [["__scopeId", "data-v-dbd25d5c"]]), vX = { cla
|
|
25614
25626
|
"AVSteps--step-circle": a.value.length !== m + 1,
|
25615
25627
|
"AVSteps--step--number-container-active": o.active
|
25616
25628
|
}])
|
25617
|
-
},
|
25629
|
+
}, N(m + 1), 3)),
|
25618
25630
|
f("span", {
|
25619
25631
|
class: $(["AVSteps--step-label", { "AVSteps--step-label-active": o.active }])
|
25620
|
-
},
|
25632
|
+
}, N(o.value), 3)
|
25621
25633
|
], 2))), 128))
|
25622
25634
|
]);
|
25623
25635
|
};
|
@@ -25679,7 +25691,7 @@ const zX = /* @__PURE__ */ J(hX, [["__scopeId", "data-v-89e22cbe"]]), V$ = (e) =
|
|
25679
25691
|
class: "AVOptionSelect",
|
25680
25692
|
"aria-label": i.value
|
25681
25693
|
}, [
|
25682
|
-
e.rank ? (d(), h("span", MX,
|
25694
|
+
e.rank ? (d(), h("span", MX, N(e.rank), 1)) : (d(), h("svg", HX, bX))
|
25683
25695
|
], 8, VX)), [
|
25684
25696
|
[E4, e.checked]
|
25685
25697
|
]);
|
@@ -25747,7 +25759,7 @@ const AX = /* @__PURE__ */ J(LX, [["__scopeId", "data-v-59ee2583"]]), _X = { cla
|
|
25747
25759
|
const m = D("AVOptionSelect");
|
25748
25760
|
return d(), h("div", _X, [
|
25749
25761
|
e.exclusiveError && e.checked ? (d(), h("div", xX, [
|
25750
|
-
f("div", NX,
|
25762
|
+
f("div", NX, N(F(t)("js.components.AVOptionCheckbox.exclusive_option")), 1)
|
25751
25763
|
])) : I("", !0),
|
25752
25764
|
f("button", U8({
|
25753
25765
|
class: {
|
@@ -25936,7 +25948,7 @@ const DX = /* @__PURE__ */ J(EX, [["__scopeId", "data-v-0dc18787"]]), PX = /* @_
|
|
25936
25948
|
icon: t.value,
|
25937
25949
|
class: "AVLinkVisualizer--icon"
|
25938
25950
|
}, null, 8, ["icon"]),
|
25939
|
-
f("span", null,
|
25951
|
+
f("span", null, N(e.link.attributes.name), 1)
|
25940
25952
|
], 2);
|
25941
25953
|
};
|
25942
25954
|
}
|
@@ -25995,12 +26007,12 @@ const OX = /* @__PURE__ */ J(PX, [["__scopeId", "data-v-eb8f518d"]]), BX = { cla
|
|
25995
26007
|
f("span", {
|
25996
26008
|
class: $(`AVVerticalStep--title AVVerticalStep--text-${e.status}`),
|
25997
26009
|
"data-test": "step-title"
|
25998
|
-
},
|
26010
|
+
}, N(e.title), 3),
|
25999
26011
|
e.subtitle ? (d(), h("span", {
|
26000
26012
|
key: 0,
|
26001
26013
|
class: $(`AVVerticalStep--subtitle AVVerticalStep--text-${e.status}`),
|
26002
26014
|
"data-test": "step-subtitle"
|
26003
|
-
},
|
26015
|
+
}, N(e.subtitle), 3)) : I("", !0)
|
26004
26016
|
]))
|
26005
26017
|
]),
|
26006
26018
|
_: 1
|
@@ -26133,7 +26145,7 @@ const ZX = /* @__PURE__ */ J(JX, [["__scopeId", "data-v-90e59491"]]), YX = { cla
|
|
26133
26145
|
for: e.id,
|
26134
26146
|
class: "AVRadioGroup--label",
|
26135
26147
|
"data-test": "input-label"
|
26136
|
-
},
|
26148
|
+
}, N(e.inputLabel), 9, QX)),
|
26137
26149
|
f("div", {
|
26138
26150
|
class: $(`AVRadioGroup--${e.orientation}`),
|
26139
26151
|
"data-test": "input-group"
|
@@ -26148,7 +26160,7 @@ const ZX = /* @__PURE__ */ J(JX, [["__scopeId", "data-v-90e59491"]]), YX = { cla
|
|
26148
26160
|
onUpdate: (C) => r(p.value)
|
26149
26161
|
}, null, 8, ["id", "value", "checked", "disabled", "onUpdate"]))), 128))
|
26150
26162
|
], 2),
|
26151
|
-
e.error && e.errorMessage ? (d(), h("p", KX,
|
26163
|
+
e.error && e.errorMessage ? (d(), h("p", KX, N(e.errorMessage), 1)) : I("", !0)
|
26152
26164
|
]);
|
26153
26165
|
};
|
26154
26166
|
}
|
@@ -26205,7 +26217,7 @@ const a11 = /* @__PURE__ */ J(c11, [["__scopeId", "data-v-9fd5c53d"]]), t11 = {
|
|
26205
26217
|
f("a", {
|
26206
26218
|
href: i.active ? null : i.href,
|
26207
26219
|
class: $(["AVBreadcrumb--link", { "AVBreadcrumb--link-active": i.active }])
|
26208
|
-
},
|
26220
|
+
}, N(i.text), 11, n11),
|
26209
26221
|
T(t, {
|
26210
26222
|
icon: "fa-solid fa-angle-right",
|
26211
26223
|
class: "AVBreadcrumb--separator"
|
@@ -26294,9 +26306,9 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
26294
26306
|
}, {
|
26295
26307
|
default: s1(() => [
|
26296
26308
|
f("div", o11, [
|
26297
|
-
f("span", f11,
|
26309
|
+
f("span", f11, N(e.id), 1),
|
26298
26310
|
f("div", u11, [
|
26299
|
-
f("span", m11,
|
26311
|
+
f("span", m11, N(e.name), 1),
|
26300
26312
|
T(s, {
|
26301
26313
|
type: t.value,
|
26302
26314
|
value: e.status
|
@@ -26308,8 +26320,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
26308
26320
|
T(l, { icon: "fa-solid fa-location-pin" })
|
26309
26321
|
]),
|
26310
26322
|
f("span", h11, [
|
26311
|
-
z1(
|
26312
|
-
f("strong", null,
|
26323
|
+
z1(N(e.countyNameLabel), 1),
|
26324
|
+
f("strong", null, N(e.countyName), 1)
|
26313
26325
|
])
|
26314
26326
|
]),
|
26315
26327
|
f("div", z11, [
|
@@ -26317,8 +26329,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
26317
26329
|
T(l, { icon: "fa-solid fa-file-circle-plus" })
|
26318
26330
|
]),
|
26319
26331
|
f("span", M11, [
|
26320
|
-
z1(
|
26321
|
-
f("strong", null,
|
26332
|
+
z1(N(e.createdAtLabel), 1),
|
26333
|
+
f("strong", null, N(e.createdAt), 1)
|
26322
26334
|
])
|
26323
26335
|
]),
|
26324
26336
|
f("div", H11, [
|
@@ -26326,8 +26338,8 @@ const l11 = /* @__PURE__ */ J(s11, [["__scopeId", "data-v-479a161a"]]), r11 = ["
|
|
26326
26338
|
T(l, { icon: "fa-solid fa-pen-to-square" })
|
26327
26339
|
]),
|
26328
26340
|
f("span", C11, [
|
26329
|
-
z1(
|
26330
|
-
f("strong", null,
|
26341
|
+
z1(N(e.lastUpdatedLabel), 1),
|
26342
|
+
f("strong", null, N(e.lastUpdated), 1)
|
26331
26343
|
])
|
26332
26344
|
])
|
26333
26345
|
])
|
@@ -26395,8 +26407,8 @@ const A11 = /* @__PURE__ */ J(L11, [["__scopeId", "data-v-dd72671e"]]), _11 = ["
|
|
26395
26407
|
T(t, { icon: "fa-solid fa-check" })
|
26396
26408
|
])) : I("", !0),
|
26397
26409
|
f("div", y11, [
|
26398
|
-
f("div", k11,
|
26399
|
-
f("div", S11,
|
26410
|
+
f("div", k11, N(e.name), 1),
|
26411
|
+
f("div", S11, N(`${e.contestQty} ${e.contestLabel}`), 1)
|
26400
26412
|
])
|
26401
26413
|
]),
|
26402
26414
|
f("div", w11, [
|
@@ -26492,7 +26504,7 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
|
|
26492
26504
|
(d(!0), h(a1, null, g1(l.value, (b, _) => (d(), h("li", {
|
26493
26505
|
key: b + _,
|
26494
26506
|
class: "AVSummaryOption--breadcrumb-item"
|
26495
|
-
},
|
26507
|
+
}, N(b), 1))), 128))
|
26496
26508
|
])
|
26497
26509
|
])) : I("", !0),
|
26498
26510
|
f("div", {
|
@@ -26508,7 +26520,7 @@ const I11 = /* @__PURE__ */ J(T11, [["__scopeId", "data-v-c682a2cf"]]), E11 = ["
|
|
26508
26520
|
alt: F(a)("js.components.AVSummaryOption.aria_label.option_image")
|
26509
26521
|
}, null, 8, O11)) : I("", !0),
|
26510
26522
|
f("div", B11, [
|
26511
|
-
f("div", F11,
|
26523
|
+
f("div", F11, N(r.value), 1)
|
26512
26524
|
]),
|
26513
26525
|
s.value ? I("", !0) : (d(), h("div", R11, [
|
26514
26526
|
T(p, {
|
@@ -26658,12 +26670,12 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26658
26670
|
}), O;
|
26659
26671
|
}), z = E(
|
26660
26672
|
() => r.option.children && r.option.children.length > 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),
|
26673
|
+
), L = E(() => r.option.selectable !== void 0 && !r.option.selectable ? 0 : A.value ? 1 : r.option.voteLimit || r.contest.markingType.votesAllowedPerOption || 1), y = E(() => r.selections.length > 0 ? B(r.option.children) : 0), A = E(() => r.option.exclusive), k = E(() => {
|
26662
26674
|
const O = Array.from(Array(L.value).keys());
|
26663
26675
|
O.forEach((Y) => O[Y] = Y + 1);
|
26664
26676
|
const e1 = O.indexOf(Math.ceil(L.value / 2)) + 1, r1 = O.slice(0, e1), U = O.slice(e1);
|
26665
26677
|
return U.length ? [r1, U] : [r1];
|
26666
|
-
}),
|
26678
|
+
}), S = E(() => r.partialResults ? r.partialResults[r.option.reference] : null), x = (O, e1 = 1) => {
|
26667
26679
|
o("checked", {
|
26668
26680
|
reference: O,
|
26669
26681
|
amount: e1
|
@@ -26735,7 +26747,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26735
26747
|
}, null, 8, J11)) : I("", !0),
|
26736
26748
|
f("h5", {
|
26737
26749
|
class: "AVOption--title",
|
26738
|
-
textContent:
|
26750
|
+
textContent: N(p.value)
|
26739
26751
|
}, null, 8, Z11)
|
26740
26752
|
]),
|
26741
26753
|
H.value || g.value.length || z.value || e.option.candidateId ? (d(), h("div", Y11, [
|
@@ -26747,13 +26759,13 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26747
26759
|
key: 0,
|
26748
26760
|
class: "AVOption--link",
|
26749
26761
|
onClick: e1[0] || (e1[0] = (O1) => o("view-candidate", e.option.candidateId))
|
26750
|
-
},
|
26762
|
+
}, N(F(t)("js.components.AVOption.view_candidate")), 1)) : I("", !0),
|
26751
26763
|
(d(!0), h(a1, null, g1(g.value, (O1) => (d(), h("a", {
|
26752
26764
|
key: O1.toString(),
|
26753
26765
|
href: O1.url,
|
26754
26766
|
class: "AVOption--link",
|
26755
26767
|
target: "_blank"
|
26756
|
-
},
|
26768
|
+
}, N(O1.text), 9, e21))), 128))
|
26757
26769
|
])) : I("", !0),
|
26758
26770
|
q1 && z.value ? (d(), h("div", c21, [
|
26759
26771
|
f("div", {
|
@@ -26776,7 +26788,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26776
26788
|
"AVOption--suboption-badge-danger": e.invalid,
|
26777
26789
|
"AVOption--suboption-badge-normal": !e.invalid
|
26778
26790
|
}])
|
26779
|
-
},
|
26791
|
+
}, N(m.value ? `${F(t)(
|
26780
26792
|
"js.components.AVOption.sub_options_select"
|
26781
26793
|
)} ${y.value}` : `${y.value} ${F(t)(
|
26782
26794
|
"js.components.AVOption.sub_options_select"
|
@@ -26793,7 +26805,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26793
26805
|
}),
|
26794
26806
|
style: W1(`background-color: ${L.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
|
26795
26807
|
}, [
|
26796
|
-
(d(!0), h(a1, null, g1(
|
26808
|
+
(d(!0), h(a1, null, g1(k.value, (O1) => (d(), h("div", {
|
26797
26809
|
key: O1.toString(),
|
26798
26810
|
class: "AVOption--group"
|
26799
26811
|
}, [
|
@@ -26806,19 +26818,19 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26806
26818
|
"option-reference": e.option.reference,
|
26807
26819
|
"check-box-index": J1,
|
26808
26820
|
disabled: e.disabled || e.observerMode,
|
26809
|
-
onToggled: (I1) =>
|
26821
|
+
onToggled: (I1) => x(e.option.reference, J1)
|
26810
26822
|
}, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
26811
26823
|
]))), 128))
|
26812
26824
|
], 6)) : I("", !0),
|
26813
|
-
|
26825
|
+
S.value && (e.observerMode || e.disabled) ? (d(), h("div", i21, [
|
26814
26826
|
T(r1, {
|
26815
26827
|
icon: "user",
|
26816
26828
|
class: "AVOption--realtime-results-icon"
|
26817
26829
|
}),
|
26818
|
-
f("span", null,
|
26819
|
-
|
26830
|
+
f("span", null, N(m.value ? `${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
|
26831
|
+
S.value.showPercentage ? (d(), h(a1, { key: 0 }, [
|
26820
26832
|
n21,
|
26821
|
-
f("span", null,
|
26833
|
+
f("span", null, N(`${S.value.results.percentage}%`), 1)
|
26822
26834
|
], 64)) : I("", !0)
|
26823
26835
|
])) : I("", !0)
|
26824
26836
|
], 2)
|
@@ -26844,7 +26856,7 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26844
26856
|
]),
|
26845
26857
|
_: 2
|
26846
26858
|
}, [
|
26847
|
-
!e.disabled &&
|
26859
|
+
!e.disabled && S.value && !e.observerMode ? {
|
26848
26860
|
name: "results",
|
26849
26861
|
fn: s1(() => [
|
26850
26862
|
f("div", s21, [
|
@@ -26852,10 +26864,10 @@ const H$ = (e) => (e2("data-v-785ef04b"), e = e(), c2(), e), $11 = ["id", "href"
|
|
26852
26864
|
icon: "user",
|
26853
26865
|
class: "AVOption--realtime-results-icon"
|
26854
26866
|
}),
|
26855
|
-
f("span", null,
|
26856
|
-
|
26867
|
+
f("span", null, N(m.value ? `${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? F(t)("js.components.AVOption.vote_count_singular") : F(t)("js.components.AVOption.vote_count_plural")}`), 1),
|
26868
|
+
S.value.showPercentage ? (d(), h(a1, { key: 0 }, [
|
26857
26869
|
l21,
|
26858
|
-
f("span", null,
|
26870
|
+
f("span", null, N(`${S.value.results.percentage}%`), 1)
|
26859
26871
|
], 64)) : I("", !0)
|
26860
26872
|
])
|
26861
26873
|
]),
|
@@ -26942,7 +26954,7 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
26942
26954
|
"aria-label": F(a)("js.components.AVBlankOption.aria_labels.option")
|
26943
26955
|
}, [
|
26944
26956
|
f("div", m21, [
|
26945
|
-
f("h5", d21,
|
26957
|
+
f("h5", d21, N(F(a)("js.components.AVBlankOption.title")), 1),
|
26946
26958
|
f("div", v21, [
|
26947
26959
|
T(l, {
|
26948
26960
|
"option-reference": "blank",
|
@@ -26959,10 +26971,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
26959
26971
|
icon: "user",
|
26960
26972
|
class: "AVBlankOption--realtime-results-icon"
|
26961
26973
|
}),
|
26962
|
-
f("span", null,
|
26974
|
+
f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
26963
26975
|
e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
|
26964
26976
|
h21,
|
26965
|
-
f("span", null,
|
26977
|
+
f("span", null, N(`${e.partialResults.results.percentage}%`), 1)
|
26966
26978
|
], 64)) : I("", !0)
|
26967
26979
|
])) : I("", !0)
|
26968
26980
|
])
|
@@ -26972,10 +26984,10 @@ const f21 = /* @__PURE__ */ J(o21, [["__scopeId", "data-v-785ef04b"]]), g$ = (e)
|
|
26972
26984
|
icon: "user",
|
26973
26985
|
class: "AVBlankOption--realtime-results-icon"
|
26974
26986
|
}),
|
26975
|
-
f("span", null,
|
26987
|
+
f("span", null, N(i.value ? `${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? F(a)("js.components.AVBlankOption.vote_count_singular") : F(a)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
26976
26988
|
e.partialResults.showPercentage ? (d(), h(a1, { key: 0 }, [
|
26977
26989
|
V21,
|
26978
|
-
f("span", null,
|
26990
|
+
f("span", null, N(`${e.partialResults.results.percentage}%`), 1)
|
26979
26991
|
], 64)) : I("", !0)
|
26980
26992
|
])) : I("", !0)
|
26981
26993
|
], 2);
|
@@ -27052,7 +27064,7 @@ const H21 = /* @__PURE__ */ J(M21, [["__scopeId", "data-v-ee117d09"]]), g21 = ["
|
|
27052
27064
|
}, [
|
27053
27065
|
f("div", C21, [
|
27054
27066
|
f("div", b21, [
|
27055
|
-
f("div", L21,
|
27067
|
+
f("div", L21, N(F(t)("js.components.AVWriteInOption.title")), 1),
|
27056
27068
|
f("div", A21, [
|
27057
27069
|
f("select", {
|
27058
27070
|
class: "AVWriteInOption--form-control",
|
@@ -27060,12 +27072,12 @@ const H21 = /* @__PURE__ */ J(M21, [["__scopeId", "data-v-ee117d09"]]), g21 = ["
|
|
27060
27072
|
disabled: e.disabled,
|
27061
27073
|
onInput: m[0] || (m[0] = (v) => l(v.target.value))
|
27062
27074
|
}, [
|
27063
|
-
f("option", x21,
|
27075
|
+
f("option", x21, N(F(t)("js.components.AVWriteInOption.choose_party")), 1),
|
27064
27076
|
(d(!0), h(a1, null, g1(e.parties, (v) => (d(), h("option", {
|
27065
27077
|
key: v.letter,
|
27066
27078
|
value: v.letter,
|
27067
27079
|
selected: v.letter === e.partyValue
|
27068
|
-
},
|
27080
|
+
}, N(v.letter) + " - " + N(v.name), 9, N21))), 128))
|
27069
27081
|
], 40, _21),
|
27070
27082
|
f("input", {
|
27071
27083
|
value: e.candidateValue,
|
@@ -27146,20 +27158,20 @@ const S21 = /* @__PURE__ */ J(k21, [["__scopeId", "data-v-f2bba574"]]), w21 = (e
|
|
27146
27158
|
"AVSubmissionHelper--weight": !0,
|
27147
27159
|
"AVSubmissionHelper--weight-danger": e.errors.length > 0
|
27148
27160
|
})
|
27149
|
-
},
|
27161
|
+
}, N(F(a)("js.components.AVSubmissionHelper.your_vote_weight", { weight: e.weight })), 3)) : I("", !0),
|
27150
27162
|
e.errors.length > 0 ? (d(), h("div", I21, [
|
27151
27163
|
(d(!0), h(a1, null, g1(n.value, (r) => (d(), h("div", {
|
27152
27164
|
key: r,
|
27153
27165
|
role: "alert",
|
27154
|
-
textContent:
|
27166
|
+
textContent: N(r)
|
27155
27167
|
}, null, 8, E21))), 128)),
|
27156
27168
|
D21
|
27157
27169
|
])) : I("", !0),
|
27158
27170
|
e.maxMarks > 1 ? (d(), h("div", P21, [
|
27159
27171
|
f("div", O21, [
|
27160
|
-
e.minMarks === e.maxMarks ? (d(), h("div", B21,
|
27172
|
+
e.minMarks === e.maxMarks ? (d(), h("div", B21, N(`${F(a)("js.components.AVSubmissionHelper.select_exactly", {
|
27161
27173
|
min_marks: e.minMarks
|
27162
|
-
})}`), 1)) : (d(), h("div", F21,
|
27174
|
+
})}`), 1)) : (d(), h("div", F21, N(`${e.hasExclusiveOptions ? F(a)(
|
27163
27175
|
"js.components.AVSubmissionHelper.select_multiple_with_exclusives",
|
27164
27176
|
{ min_marks: e.minMarks, max_marks: e.maxMarks }
|
27165
27177
|
) : F(a)("js.components.AVSubmissionHelper.select_multiple", {
|
@@ -27175,7 +27187,7 @@ const S21 = /* @__PURE__ */ J(k21, [["__scopeId", "data-v-f2bba574"]]), w21 = (e
|
|
27175
27187
|
}, null, 8, R21)) : I("", !0)
|
27176
27188
|
])
|
27177
27189
|
])) : (d(), h("div", j21, [
|
27178
|
-
f("div", null,
|
27190
|
+
f("div", null, N(F(a)("js.components.AVSubmissionHelper.select_single")), 1)
|
27179
27191
|
]))
|
27180
27192
|
], 2)
|
27181
27193
|
]));
|
@@ -27246,7 +27258,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
27246
27258
|
f("label", {
|
27247
27259
|
for: "ballot_search",
|
27248
27260
|
class: "AVSearchBallot--label",
|
27249
|
-
textContent:
|
27261
|
+
textContent: N(F(a)("js.components.AVSearchBallot.search_the_ballot"))
|
27250
27262
|
}, null, 8, J21),
|
27251
27263
|
f("div", Z21, [
|
27252
27264
|
G1(f("input", {
|
@@ -27270,7 +27282,7 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
27270
27282
|
(d(!0), h(a1, null, g1(r(H), (C) => (d(), h("li", {
|
27271
27283
|
key: C.reference,
|
27272
27284
|
class: "AVSeachOptionBallot--breadcrumb-item"
|
27273
|
-
},
|
27285
|
+
}, N(C.title[t.value]), 1))), 128))
|
27274
27286
|
])
|
27275
27287
|
])) : I("", !0),
|
27276
27288
|
f("div", {
|
@@ -27282,14 +27294,14 @@ const W21 = ["aria-label"], G21 = { class: "AVSearchBallot--form-group" }, J21 =
|
|
27282
27294
|
}, [
|
27283
27295
|
f("span", {
|
27284
27296
|
class: "AVSearchBallot--link",
|
27285
|
-
textContent:
|
27297
|
+
textContent: N(H.title[t.value])
|
27286
27298
|
}, null, 8, a31)
|
27287
27299
|
], 8, c31)
|
27288
27300
|
], 8, K21))), 128)),
|
27289
27301
|
s.value && l.value.length === 0 ? (d(), h("div", {
|
27290
27302
|
key: 0,
|
27291
27303
|
class: "AVSearchBallot--alert",
|
27292
|
-
textContent:
|
27304
|
+
textContent: N(F(a)("js.components.AVSearchBallot.no_results"))
|
27293
27305
|
}, null, 8, t31)) : I("", !0)
|
27294
27306
|
])
|
27295
27307
|
], 40, W21));
|
@@ -27328,20 +27340,20 @@ const n31 = /* @__PURE__ */ J(i31, [["__scopeId", "data-v-727c3aa7"]]), s31 = {
|
|
27328
27340
|
), (i, n) => (d(), h("div", s31, [
|
27329
27341
|
f("div", l31, [
|
27330
27342
|
f("span", null, [
|
27331
|
-
z1(
|
27332
|
-
f("strong", null,
|
27343
|
+
z1(N(F(a)("js.components.AVSplitWeightHelper.total")) + " ", 1),
|
27344
|
+
f("strong", null, N(e.assignedWeight + e.unusedWeight), 1)
|
27333
27345
|
])
|
27334
27346
|
]),
|
27335
27347
|
f("div", r31, [
|
27336
27348
|
f("span", null, [
|
27337
|
-
z1(
|
27338
|
-
f("strong", null,
|
27349
|
+
z1(N(F(a)("js.components.AVSplitWeightHelper.assigned")) + " ", 1),
|
27350
|
+
f("strong", null, N(e.assignedWeight), 1)
|
27339
27351
|
])
|
27340
27352
|
]),
|
27341
27353
|
f("div", o31, [
|
27342
27354
|
f("span", null, [
|
27343
|
-
z1(
|
27344
|
-
f("strong", null,
|
27355
|
+
z1(N(F(a)("js.components.AVSplitWeightHelper.unused")) + " ", 1),
|
27356
|
+
f("strong", null, N(e.unusedWeight), 1)
|
27345
27357
|
])
|
27346
27358
|
])
|
27347
27359
|
]));
|
@@ -27400,9 +27412,9 @@ const u31 = /* @__PURE__ */ J(f31, [["__scopeId", "data-v-f145cdd2"]]), m31 = {
|
|
27400
27412
|
), (i, n) => {
|
27401
27413
|
const s = D("AVTooltip");
|
27402
27414
|
return d(), h("header", m31, [
|
27403
|
-
e.activeState === "ballot" ? (d(), h("p", d31,
|
27415
|
+
e.activeState === "ballot" ? (d(), h("p", d31, N(e.isEditing ? `${F(a)("js.components.AVSplitWizardHeader.ballot.editing")} ${e.activeSelectionPileIndex + 1}` : `${F(a)("js.components.AVSplitWizardHeader.ballot.adding")} ${e.selectionPiles.length + 1}`), 1)) : e.activeState === "assign" ? (d(), h("p", v31, N(e.isEditing ? `${F(a)("js.components.AVSplitWizardHeader.assign.header")} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}` : `${F(a)(
|
27404
27416
|
"js.components.AVSplitWizardHeader.assign.header_edit_mode"
|
27405
|
-
)} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31,
|
27417
|
+
)} ${(e.isEditing ? e.activeSelectionPileIndex : e.selectionPiles.length) + 1}`), 1)) : (d(), h("p", p31, N(F(a)("js.components.AVSplitWizardHeader.overview.header")), 1)),
|
27406
27418
|
(e.activeState, I("", !0))
|
27407
27419
|
]);
|
27408
27420
|
};
|
@@ -27747,16 +27759,16 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
27747
27759
|
() => n.contest.disregardVoterWeight ? null : n.weight
|
27748
27760
|
), H = E(() => {
|
27749
27761
|
var B;
|
27750
|
-
let
|
27751
|
-
return (B = n.contest.customRulesets) != null && B.includes("belgian_ballot_rules") &&
|
27762
|
+
let x = [];
|
27763
|
+
return (B = n.contest.customRulesets) != null && B.includes("belgian_ballot_rules") && x.push(new $31(n.contest)), x;
|
27752
27764
|
}), C = E(() => {
|
27753
|
-
let
|
27765
|
+
let x = [];
|
27754
27766
|
H.value.forEach((Z) => {
|
27755
|
-
|
27767
|
+
x.push(...Z.validate(n.selectionPile));
|
27756
27768
|
});
|
27757
27769
|
const B = [
|
27758
27770
|
...v.value.validate(n.selectionPile, n.includeLazyErrors),
|
27759
|
-
...
|
27771
|
+
...x
|
27760
27772
|
];
|
27761
27773
|
if (g.value && B.some((Z) => Z.message === "cross_party_voting")) {
|
27762
27774
|
let Z;
|
@@ -27768,41 +27780,41 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
27768
27780
|
}
|
27769
27781
|
return s("update:errors", B), B;
|
27770
27782
|
}), b = E(() => C.value.length === 0), _ = E(() => {
|
27771
|
-
var
|
27772
|
-
return (
|
27783
|
+
var x;
|
27784
|
+
return (x = n.contest.question) == null ? void 0 : x[i.value];
|
27773
27785
|
}), g = E(
|
27774
27786
|
() => {
|
27775
|
-
var
|
27776
|
-
return (
|
27787
|
+
var x;
|
27788
|
+
return (x = n.contest.customRulesets) == null ? void 0 : x.includes("belgian_ballot_rules");
|
27777
27789
|
}
|
27778
|
-
), z = E(() =>
|
27779
|
-
(
|
27790
|
+
), z = E(() => S(n.contest.options).some(
|
27791
|
+
(x) => x.exclusive
|
27780
27792
|
)), L = E(() => n.contest);
|
27781
|
-
l1(L, (
|
27793
|
+
l1(L, (x, B) => {
|
27782
27794
|
var Z;
|
27783
|
-
B &&
|
27795
|
+
B && x && x.reference !== B.reference && ((Z = document.getElementById("content")) == null || Z.focus(), B.searchForm && (m.value.value = ""));
|
27784
27796
|
});
|
27785
27797
|
const y = () => {
|
27786
27798
|
s("update:selectionPile", {
|
27787
27799
|
...n.selectionPile,
|
27788
27800
|
explicitBlank: !n.selectionPile.explicitBlank
|
27789
27801
|
});
|
27790
|
-
}, A = ({ reference:
|
27802
|
+
}, A = ({ reference: x, amount: B }) => {
|
27791
27803
|
const Z = u.value.filter(
|
27792
|
-
(e1) => e1.reference ===
|
27804
|
+
(e1) => e1.reference === x
|
27793
27805
|
).length;
|
27794
27806
|
B === Z && (B = B - 1);
|
27795
27807
|
const O = u.value.filter(
|
27796
|
-
(e1) => e1.reference !==
|
27808
|
+
(e1) => e1.reference !== x
|
27797
27809
|
);
|
27798
27810
|
for (let e1 = 0; e1 < B; e1++)
|
27799
|
-
O.push({ reference:
|
27811
|
+
O.push({ reference: x });
|
27800
27812
|
s("update:selectionPile", {
|
27801
27813
|
...n.selectionPile,
|
27802
27814
|
optionSelections: O
|
27803
27815
|
});
|
27804
|
-
},
|
27805
|
-
return (
|
27816
|
+
}, k = (x) => s("view-candidate", x), S = (x, B) => x.flatMap((Z) => (B && (Z.parentContent = B), Z.children ? [Z, ...S(Z.children, Z)] : [Z]));
|
27817
|
+
return (x, B) => {
|
27806
27818
|
const Z = D("AVSearchBallot"), O = D("AVWriteInOption"), e1 = D("AVOption"), r1 = D("AVBlankOption"), U = D("AVSubmissionHelper");
|
27807
27819
|
return d(), h("div", {
|
27808
27820
|
class: $({
|
@@ -27817,12 +27829,12 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
27817
27829
|
id: `ballot_${e.contest.reference}_question`,
|
27818
27830
|
class: "AVBallot--question",
|
27819
27831
|
"aria-live": "polite"
|
27820
|
-
},
|
27832
|
+
}, N(_.value), 9, G31)) : I("", !0),
|
27821
27833
|
e.contest.searchForm && !e.disabled && !e.observerMode ? (d(), K(Z, {
|
27822
27834
|
key: 1,
|
27823
27835
|
ref_key: "search",
|
27824
27836
|
ref: m,
|
27825
|
-
options:
|
27837
|
+
options: S(e.contest.options),
|
27826
27838
|
"options-container-id": "ballot_options"
|
27827
27839
|
}, null, 8, ["options"])) : I("", !0),
|
27828
27840
|
J31,
|
@@ -27862,7 +27874,7 @@ const U31 = (e) => (e2("data-v-21030ff1"), e = e(), c2(), e), W31 = ["aria-label
|
|
27862
27874
|
"partial-results": e.partialResults,
|
27863
27875
|
"image-option": e.imageOption,
|
27864
27876
|
onChecked: A,
|
27865
|
-
onViewCandidate:
|
27877
|
+
onViewCandidate: k
|
27866
27878
|
}, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results", "image-option"]))
|
27867
27879
|
], 64))), 128)),
|
27868
27880
|
e.contest.markingType.blankSubmission === "active_choice" ? (d(), K(r1, {
|
@@ -28005,10 +28017,10 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
28005
28017
|
const _ = D("AVSummaryOption"), g = D("AVIcon");
|
28006
28018
|
return e.activeState === "summary" ? (d(), h("div", X31, [
|
28007
28019
|
e.contest.markingType.maxPiles !== 1 ? (d(), h("header", e41, [
|
28008
|
-
f("span", null,
|
28009
|
-
f("span", c41,
|
28020
|
+
f("span", null, N(F(t)("js.components.AVPileSummary.selection")) + " " + N(e.pileIndex + 1) + " / " + N(e.totalPiles), 1),
|
28021
|
+
f("span", c41, N(e.selectionPile.multiplier) + " " + N(F(t)("js.components.AVPileSummary.ballots")), 1)
|
28010
28022
|
])) : (d(), h("header", a41, [
|
28011
|
-
f("span", null,
|
28023
|
+
f("span", null, N(F(t)("js.components.AVPileSummary.selection")), 1)
|
28012
28024
|
])),
|
28013
28025
|
f("div", t41, [
|
28014
28026
|
(d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), K(_, {
|
@@ -28033,23 +28045,23 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
28033
28045
|
}, [
|
28034
28046
|
f("div", l41, [
|
28035
28047
|
T(g, { icon: "pen-to-square" }),
|
28036
|
-
f("span", null,
|
28048
|
+
f("span", null, N(F(t)("js.components.AVPileSummary.ballot_selection")) + " " + N(e.pileIndex + 1), 1)
|
28037
28049
|
]),
|
28038
|
-
e.activeState === "overview" || e.isEditing ? (d(), h("span", r41,
|
28050
|
+
e.activeState === "overview" || e.isEditing ? (d(), h("span", r41, N(F(t)("js.components.AVPileSummary.assigned")) + " " + N(e.selectionPile.multiplier), 1)) : I("", !0)
|
28039
28051
|
], 8, s41),
|
28040
28052
|
f("div", o41, [
|
28041
|
-
o.value ? (d(), h("p", f41,
|
28053
|
+
o.value ? (d(), h("p", f41, N(F(t)("js.components.AVPileSummary.blank")), 1)) : I("", !0),
|
28042
28054
|
(d(!0), h(a1, null, g1(H.value.options, (z, L) => (d(), h("p", {
|
28043
28055
|
key: L,
|
28044
28056
|
class: "AVPileSummary--assign-text"
|
28045
|
-
},
|
28057
|
+
}, N(z.rank ? `${z.rank}: ` : "") + N(z.title), 1))), 128)),
|
28046
28058
|
(d(!0), h(a1, null, g1(H.value.writeIns, (z, L) => (d(), h("p", {
|
28047
28059
|
key: L,
|
28048
28060
|
class: "AVPileSummary--assign-text"
|
28049
28061
|
}, [
|
28050
|
-
f("b", null,
|
28062
|
+
f("b", null, N(z.partyLetter) + " - " + N(z.partyName), 1),
|
28051
28063
|
u41,
|
28052
|
-
f("span", null,
|
28064
|
+
f("span", null, N(z.candidateName), 1)
|
28053
28065
|
]))), 128)),
|
28054
28066
|
u.value > 0 ? (d(), h("p", {
|
28055
28067
|
key: 1,
|
@@ -28058,7 +28070,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
28058
28070
|
onClick: b[1] || (b[1] = m2((z) => l.value = !0, ["stop", "prevent"]))
|
28059
28071
|
}, [
|
28060
28072
|
f("u", null, [
|
28061
|
-
f("em", null,
|
28073
|
+
f("em", null, N(`${F(t)(
|
28062
28074
|
"js.components.AVPileSummary.and_n_more_pre"
|
28063
28075
|
)} ${u.value} ${F(t)(
|
28064
28076
|
"js.components.AVPileSummary.and_n_more_pos"
|
@@ -28072,7 +28084,7 @@ const Q31 = /* @__PURE__ */ J(Y31, [["__scopeId", "data-v-21030ff1"]]), K31 = (e
|
|
28072
28084
|
onClick: b[2] || (b[2] = m2((z) => l.value = !1, ["stop", "prevent"]))
|
28073
28085
|
}, [
|
28074
28086
|
f("u", null, [
|
28075
|
-
f("em", null,
|
28087
|
+
f("em", null, N(F(t)("js.components.AVPileSummary.show_less")), 1)
|
28076
28088
|
])
|
28077
28089
|
])) : I("", !0)
|
28078
28090
|
])
|
@@ -28219,7 +28231,7 @@ const V41 = {
|
|
28219
28231
|
() => u.value.filter((U, Y) => Y !== l.value).reduce((U, Y) => U - Y.multiplier, n.weight)
|
28220
28232
|
), z = E(
|
28221
28233
|
() => n.contest.markingType.maxPiles !== 1 && n.weight > 1
|
28222
|
-
), L = E(() => l.value !== null), y = (U) => p.value.isComplete(U), A = (U) => p.value.validate(U, n.includeLazyErrors).length > 0,
|
28234
|
+
), L = E(() => l.value !== null), y = (U) => p.value.isComplete(U), A = (U) => p.value.validate(U, n.includeLazyErrors).length > 0, k = () => {
|
28223
28235
|
if (z.value) {
|
28224
28236
|
const U = [...u.value];
|
28225
28237
|
l.value === null ? U.push({ ...r.value }) : U.splice(l.value, 1, {
|
@@ -28233,9 +28245,9 @@ const V41 = {
|
|
28233
28245
|
...n.contestSelection,
|
28234
28246
|
piles: [r.value]
|
28235
28247
|
});
|
28236
|
-
},
|
28237
|
-
r.value = U, z.value ||
|
28238
|
-
},
|
28248
|
+
}, S = (U) => {
|
28249
|
+
r.value = U, z.value || k();
|
28250
|
+
}, x = () => {
|
28239
28251
|
r.value = {
|
28240
28252
|
optionSelections: [],
|
28241
28253
|
multiplier: g.value,
|
@@ -28256,12 +28268,12 @@ const V41 = {
|
|
28256
28268
|
}), l1(r, (U) => {
|
28257
28269
|
s("update:activePile", U);
|
28258
28270
|
}), 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 ||
|
28271
|
+
n.locale && p1(n.locale), s("update:activePile", r.value), s("update:activeState", o.value), s("update:complete", C.value), z.value || k();
|
28260
28272
|
}), (U, Y) => {
|
28261
28273
|
var I1;
|
28262
28274
|
const m1 = D("AVSplitWizardHeader"), P1 = D("AVBallot"), q1 = D("AVPileSummary"), O1 = D("AVSplitWeightHelper"), J1 = D("AVIcon");
|
28263
28275
|
return d(), h(a1, null, [
|
28264
|
-
f("h3", V41,
|
28276
|
+
f("h3", V41, N(e.contest.title[i.value]), 1),
|
28265
28277
|
f("div", {
|
28266
28278
|
class: "AVSplitHelper--description",
|
28267
28279
|
innerHTML: (I1 = e.contest.description) == null ? void 0 : I1[i.value]
|
@@ -28292,7 +28304,7 @@ const V41 = {
|
|
28292
28304
|
includeLazyErrors: e.includeLazyErrors,
|
28293
28305
|
"show-submission-helper": e.showSubmissionHelper,
|
28294
28306
|
"image-option": e.imageOption,
|
28295
|
-
"onUpdate:selectionPile":
|
28307
|
+
"onUpdate:selectionPile": S,
|
28296
28308
|
"onUpdate:errors": Y[0] || (Y[0] = (F1) => O(F1))
|
28297
28309
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "includeLazyErrors", "show-submission-helper", "image-option"]),
|
28298
28310
|
f("div", H41, [
|
@@ -28301,7 +28313,7 @@ const V41 = {
|
|
28301
28313
|
key: "back",
|
28302
28314
|
class: "AVSplitHelper--btn-secondary",
|
28303
28315
|
onClick: Y[1] || (Y[1] = (F1) => o.value = "overview")
|
28304
|
-
},
|
28316
|
+
}, N(F(t)("js.components.AVSplitHelper.ballot.back_button")), 1)) : I("", !0)
|
28305
28317
|
]),
|
28306
28318
|
f("div", C41, [
|
28307
28319
|
f("button", {
|
@@ -28309,12 +28321,12 @@ const V41 = {
|
|
28309
28321
|
class: "AVSplitHelper--btn-primary",
|
28310
28322
|
disabled: !y(r.value) || A(r.value),
|
28311
28323
|
onClick: Y[2] || (Y[2] = (F1) => o.value = "assign")
|
28312
|
-
},
|
28324
|
+
}, N(F(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, b41)
|
28313
28325
|
])
|
28314
28326
|
])
|
28315
28327
|
])) : o.value === "assign" ? (d(), h("div", L41, [
|
28316
28328
|
f("div", A41, [
|
28317
|
-
f("h4", _41,
|
28329
|
+
f("h4", _41, N(F(t)("js.components.AVSplitHelper.assign.split_question")), 1),
|
28318
28330
|
T(q1, {
|
28319
28331
|
"selection-pile": r.value,
|
28320
28332
|
contest: e.contest,
|
@@ -28329,7 +28341,7 @@ const V41 = {
|
|
28329
28341
|
f("label", {
|
28330
28342
|
for: `${e.contest.reference}-ballot-selector`,
|
28331
28343
|
class: "AVSplitHelper--assign-label"
|
28332
|
-
},
|
28344
|
+
}, N(L.value ? F(t)(
|
28333
28345
|
"js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"
|
28334
28346
|
) : F(t)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, x41),
|
28335
28347
|
G1(f("input", {
|
@@ -28353,15 +28365,15 @@ const V41 = {
|
|
28353
28365
|
key: "ballot",
|
28354
28366
|
class: "AVSplitHelper--btn-secondary",
|
28355
28367
|
onClick: Y[5] || (Y[5] = (F1) => o.value = "ballot")
|
28356
|
-
},
|
28368
|
+
}, N(F(t)("js.components.AVSplitHelper.assign.back_button")), 1)
|
28357
28369
|
]),
|
28358
28370
|
f("div", S41, [
|
28359
28371
|
f("button", {
|
28360
28372
|
key: "confirm",
|
28361
28373
|
class: "AVSplitHelper--btn-primary",
|
28362
28374
|
disabled: ((z2 = r.value) == null ? void 0 : z2.multiplier) < 1 || ((A2 = r.value) == null ? void 0 : A2.multiplier) > g.value,
|
28363
|
-
onClick: Y[6] || (Y[6] = (F1) =>
|
28364
|
-
},
|
28375
|
+
onClick: Y[6] || (Y[6] = (F1) => k())
|
28376
|
+
}, N(F(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, w41)
|
28365
28377
|
])
|
28366
28378
|
])
|
28367
28379
|
])) : o.value === "overview" ? (d(), h("div", T41, [
|
@@ -28370,20 +28382,20 @@ const V41 = {
|
|
28370
28382
|
icon: "circle-check",
|
28371
28383
|
class: "AVSplitHelper--overview-success-icon"
|
28372
28384
|
}),
|
28373
|
-
z1(" " +
|
28385
|
+
z1(" " + N(F(t)("js.components.AVSplitHelper.overview.all_ballots_assigned")), 1)
|
28374
28386
|
])) : (d(), h("div", E41, [
|
28375
28387
|
f("p", D41, [
|
28376
|
-
f("strong", null,
|
28377
|
-
z1(" " +
|
28388
|
+
f("strong", null, N(v.value), 1),
|
28389
|
+
z1(" " + N(F(t)("js.components.AVSplitHelper.overview.ballots_left")), 1)
|
28378
28390
|
]),
|
28379
28391
|
f("button", {
|
28380
28392
|
key: "newSelection",
|
28381
28393
|
class: "AVSplitHelper--overview-new-ballot-btn",
|
28382
28394
|
disabled: v.value === 0,
|
28383
|
-
onClick:
|
28395
|
+
onClick: x
|
28384
28396
|
}, [
|
28385
28397
|
T(J1, { icon: "file-circle-plus" }),
|
28386
|
-
z1(" " +
|
28398
|
+
z1(" " + N(F(t)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
|
28387
28399
|
], 8, P41)
|
28388
28400
|
])),
|
28389
28401
|
(d(!0), h(a1, null, g1(u.value, (F1, o2) => (d(), h("article", {
|
@@ -28416,7 +28428,7 @@ const V41 = {
|
|
28416
28428
|
weight: e.weight,
|
28417
28429
|
"image-option": e.imageOption,
|
28418
28430
|
"show-submission-helper": e.showSubmissionHelper,
|
28419
|
-
"onUpdate:selectionPile":
|
28431
|
+
"onUpdate:selectionPile": S,
|
28420
28432
|
"onUpdate:errors": Y[7] || (Y[7] = (a2) => O(a2)),
|
28421
28433
|
onViewCandidate: e1
|
28422
28434
|
}, null, 8, ["selection-pile", "partial-results", "includeLazyErrors", "contest", "weight", "image-option", "show-submission-helper"]))
|
@@ -28538,10 +28550,10 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
28538
28550
|
)
|
28539
28551
|
}, [
|
28540
28552
|
f("div", $41, [
|
28541
|
-
e.summary && n.value ? (d(), h("h4", U41,
|
28542
|
-
e.summary && s.value ? (d(), h("h5", W41,
|
28553
|
+
e.summary && n.value ? (d(), h("h4", U41, N(n.value), 1)) : I("", !0),
|
28554
|
+
e.summary && s.value ? (d(), h("h5", W41, N(s.value), 1)) : I("", !0),
|
28543
28555
|
e.summary && e.candidate.groups && !e.card ? (d(), h("div", G41, [
|
28544
|
-
f("h4", J41,
|
28556
|
+
f("h4", J41, N(l.value.title), 1),
|
28545
28557
|
l.value.surplus ? (d(), K(C, {
|
28546
28558
|
key: 0,
|
28547
28559
|
text: F(a)("js.components.AVResourceSection.and_more", {
|
@@ -28567,7 +28579,7 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
28567
28579
|
"AVResourceFields--divisor": g.item_type === "check_box"
|
28568
28580
|
})
|
28569
28581
|
}, [
|
28570
|
-
z1(
|
28582
|
+
z1(N(g.label[i.value]) + " ", 1),
|
28571
28583
|
g.item_type === "check_box" ? (d(), K(b, {
|
28572
28584
|
key: 0,
|
28573
28585
|
icon: g.form_content ? "square-check" : "square-xmark",
|
@@ -28579,14 +28591,14 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
28579
28591
|
], 2)),
|
28580
28592
|
!e.summary && g.item_type !== "check_box" ? (d(), h("hr", Z41)) : I("", !0),
|
28581
28593
|
g.item_type === "link_list" && m(g) ? (d(), h("div", Y41, [
|
28582
|
-
e.summary ? (d(), h("span", Q41,
|
28594
|
+
e.summary ? (d(), h("span", Q41, N(`${g.label[i.value]}:`), 1)) : I("", !0),
|
28583
28595
|
(d(!0), h(a1, null, g1(g.form_content, (z) => (d(), K(_, {
|
28584
28596
|
key: z.attributes.name,
|
28585
28597
|
link: z,
|
28586
28598
|
large: !e.summary
|
28587
28599
|
}, null, 8, ["link", "large"]))), 128))
|
28588
28600
|
])) : g.item_type === "check_box" && e.summary ? (d(), h("div", K41, [
|
28589
|
-
f("span", null,
|
28601
|
+
f("span", null, N(`${g.label[i.value]}`), 1),
|
28590
28602
|
T(b, {
|
28591
28603
|
icon: g.form_content ? "square-check" : "square-xmark",
|
28592
28604
|
class: $(
|
@@ -28595,8 +28607,8 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
28595
28607
|
"aria-label": g.form_content ? F(a)("js.components.AVResourceSection.true") : F(a)("js.components.AVResourceSection.false")
|
28596
28608
|
}, null, 8, ["icon", "class", "aria-label"])
|
28597
28609
|
])) : g.item_type === "select" && m(g) ? (d(), h("div", X41, [
|
28598
|
-
e.summary ? (d(), h("span", e61,
|
28599
|
-
z1(" " +
|
28610
|
+
e.summary ? (d(), h("span", e61, N(`${g.label[i.value]}:`), 1)) : I("", !0),
|
28611
|
+
z1(" " + N(g.form_content[i.value]), 1)
|
28600
28612
|
])) : g.item_type === "video" && m(g) ? (d(), h("div", c61, [
|
28601
28613
|
f("iframe", {
|
28602
28614
|
style: { width: "100%", height: "100%", "min-height": "400px" },
|
@@ -28607,14 +28619,14 @@ const F41 = /* @__PURE__ */ J(B41, [["__scopeId", "data-v-1c359a5f"]]), R41 = "d
|
|
28607
28619
|
class: "AVResourceFields--rich-text",
|
28608
28620
|
innerHTML: g.localised ? g.form_content[i.value] : g.form_content
|
28609
28621
|
}, 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,
|
28622
|
+
e.summary ? (d(), h("span", n61, N(`${g.label[i.value]}: `), 1)) : I("", !0),
|
28611
28623
|
g.item_type === "date" || g.item_type === "date_time" ? (d(), h(a1, { key: 1 }, [
|
28612
|
-
z1(
|
28624
|
+
z1(N(F(t)(
|
28613
28625
|
g.form_content,
|
28614
28626
|
g.item_type === "date" ? null : "long"
|
28615
28627
|
)), 1)
|
28616
28628
|
], 64)) : (d(), h(a1, { key: 2 }, [
|
28617
|
-
z1(
|
28629
|
+
z1(N(g.localised ? g.form_content[i.value] : g.form_content), 1)
|
28618
28630
|
], 64))
|
28619
28631
|
])) : I("", !0)
|
28620
28632
|
], 2)) : I("", !0)
|