@assemblyvoting/ui-library 3.3.8 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/organisms/AVRankedSummary/AVRankedSummary.vue.d.ts +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.js +484 -479
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -52,12 +52,12 @@ function Zj(c, e = 0, l = c.length) {
|
|
52
52
|
s.push(`${o}${" ".repeat(3 - String(o).length)}| ${a[i]}`);
|
53
53
|
const f = a[i].length;
|
54
54
|
if (i === n) {
|
55
|
-
const
|
56
|
-
s.push(" | " + " ".repeat(
|
55
|
+
const m = e - (t - f) + 1, z = Math.max(1, l > t ? f - m : l - e);
|
56
|
+
s.push(" | " + " ".repeat(m) + "^".repeat(z));
|
57
57
|
} else if (i > n) {
|
58
58
|
if (l > t) {
|
59
|
-
const
|
60
|
-
s.push(" | " + "^".repeat(
|
59
|
+
const m = Math.max(Math.min(l - t, f), 1);
|
60
|
+
s.push(" | " + "^".repeat(m));
|
61
61
|
}
|
62
62
|
t += f + 1;
|
63
63
|
}
|
@@ -195,9 +195,9 @@ const aU = /<\/?[\w\s="/.':;#-\/]+>/, tU = (c) => aU.test(c), L2 = " ", sU = "\r
|
|
195
195
|
function oU(c) {
|
196
196
|
const e = c;
|
197
197
|
let l = 0, a = 1, t = 1, s = 0;
|
198
|
-
const n = (H) => e[H] === sU && e[H + 1] === B1, i = (H) => e[H] === B1, o = (H) => e[H] === iU, f = (H) => e[H] === nU,
|
198
|
+
const n = (H) => e[H] === sU && e[H + 1] === B1, i = (H) => e[H] === B1, o = (H) => e[H] === iU, f = (H) => e[H] === nU, m = (H) => n(H) || i(H) || o(H) || f(H), z = () => l, d = () => a, h = () => t, b = () => s, A = (H) => n(H) || o(H) || f(H) ? B1 : e[H], _ = () => A(l), x = () => A(l + s);
|
199
199
|
function C() {
|
200
|
-
return s = 0,
|
200
|
+
return s = 0, m(l) && (a++, t = 0), n(l) && l++, l++, t++, e[l];
|
201
201
|
}
|
202
202
|
function v() {
|
203
203
|
return n(l + s) && s++, s++, e[l + s];
|
@@ -216,7 +216,7 @@ function oU(c) {
|
|
216
216
|
}
|
217
217
|
return {
|
218
218
|
index: z,
|
219
|
-
line:
|
219
|
+
line: d,
|
220
220
|
column: h,
|
221
221
|
peekOffset: b,
|
222
222
|
charAt: A,
|
@@ -243,23 +243,23 @@ function uU(c, e = {}) {
|
|
243
243
|
braceNest: 0,
|
244
244
|
inLinked: !1,
|
245
245
|
text: ""
|
246
|
-
}, f = () => o, { onError:
|
246
|
+
}, f = () => o, { onError: m } = e;
|
247
247
|
function z(L, g, R, ...X) {
|
248
248
|
const A1 = f();
|
249
|
-
if (g.column += R, g.offset += R,
|
249
|
+
if (g.column += R, g.offset += R, m) {
|
250
250
|
const b1 = l ? x4(A1.startLoc, g) : null, L1 = h3(L, b1, {
|
251
251
|
domain: fU,
|
252
252
|
args: X
|
253
253
|
});
|
254
|
-
|
254
|
+
m(L1);
|
255
255
|
}
|
256
256
|
}
|
257
|
-
function
|
257
|
+
function d(L, g, R) {
|
258
258
|
L.endLoc = s(), L.currentType = g;
|
259
259
|
const X = { type: g };
|
260
260
|
return l && (X.loc = x4(L.startLoc, L.endLoc)), R != null && (X.value = R), X;
|
261
261
|
}
|
262
|
-
const h = (L) =>
|
262
|
+
const h = (L) => d(
|
263
263
|
L,
|
264
264
|
14
|
265
265
|
/* TokenTypes.EOF */
|
@@ -532,14 +532,14 @@ function uU(c, e = {}) {
|
|
532
532
|
let R = null;
|
533
533
|
switch (L.currentChar()) {
|
534
534
|
case "{":
|
535
|
-
return g.braceNest >= 1 && z(e1.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), L.next(), R =
|
535
|
+
return g.braceNest >= 1 && z(e1.NOT_ALLOW_NEST_PLACEHOLDER, s(), 0), L.next(), R = d(
|
536
536
|
g,
|
537
537
|
2,
|
538
538
|
"{"
|
539
539
|
/* TokenChars.BraceLeft */
|
540
540
|
), _(L), g.braceNest++, R;
|
541
541
|
case "}":
|
542
|
-
return g.braceNest > 0 && g.currentType === 2 && z(e1.EMPTY_PLACEHOLDER, s(), 0), L.next(), R =
|
542
|
+
return g.braceNest > 0 && g.currentType === 2 && z(e1.EMPTY_PLACEHOLDER, s(), 0), L.next(), R = d(
|
543
543
|
g,
|
544
544
|
3,
|
545
545
|
"}"
|
@@ -550,17 +550,17 @@ function uU(c, e = {}) {
|
|
550
550
|
default: {
|
551
551
|
let A1 = !0, b1 = !0, L1 = !0;
|
552
552
|
if (F(L))
|
553
|
-
return g.braceNest > 0 && z(e1.UNTERMINATED_CLOSING_BRACE, s(), 0), R =
|
553
|
+
return g.braceNest > 0 && z(e1.UNTERMINATED_CLOSING_BRACE, s(), 0), R = d(g, 1, p1(L)), g.braceNest = 0, g.inLinked = !1, R;
|
554
554
|
if (g.braceNest > 0 && (g.currentType === 5 || g.currentType === 6 || g.currentType === 7))
|
555
555
|
return z(e1.UNTERMINATED_CLOSING_BRACE, s(), 0), g.braceNest = 0, k3(L, g);
|
556
556
|
if (A1 = v(L, g))
|
557
|
-
return R =
|
557
|
+
return R = d(g, 5, A2(L)), _(L), R;
|
558
558
|
if (b1 = N(L, g))
|
559
|
-
return R =
|
559
|
+
return R = d(g, 6, D1(L)), _(L), R;
|
560
560
|
if (L1 = S(L, g))
|
561
|
-
return R =
|
561
|
+
return R = d(g, 7, l3(L)), _(L), R;
|
562
562
|
if (!A1 && !b1 && !L1)
|
563
|
-
return R =
|
563
|
+
return R = d(g, 13, x3(L)), z(e1.INVALID_TOKEN_IN_PLACEHOLDER, s(), 0, R.value), _(L), R;
|
564
564
|
break;
|
565
565
|
}
|
566
566
|
}
|
@@ -572,28 +572,28 @@ function uU(c, e = {}) {
|
|
572
572
|
const A1 = L.currentChar();
|
573
573
|
switch ((R === 8 || R === 9 || R === 12 || R === 10) && (A1 === B1 || A1 === L2) && z(e1.INVALID_LINKED_FORMAT, s(), 0), A1) {
|
574
574
|
case "@":
|
575
|
-
return L.next(), X =
|
575
|
+
return L.next(), X = d(
|
576
576
|
g,
|
577
577
|
8,
|
578
578
|
"@"
|
579
579
|
/* TokenChars.LinkedAlias */
|
580
580
|
), g.inLinked = !0, X;
|
581
581
|
case ".":
|
582
|
-
return _(L), L.next(),
|
582
|
+
return _(L), L.next(), d(
|
583
583
|
g,
|
584
584
|
9,
|
585
585
|
"."
|
586
586
|
/* TokenChars.LinkedDot */
|
587
587
|
);
|
588
588
|
case ":":
|
589
|
-
return _(L), L.next(),
|
589
|
+
return _(L), L.next(), d(
|
590
590
|
g,
|
591
591
|
10,
|
592
592
|
":"
|
593
593
|
/* TokenChars.LinkedDelimiter */
|
594
594
|
);
|
595
595
|
default:
|
596
|
-
return F(L) ? (X =
|
596
|
+
return F(L) ? (X = d(g, 1, p1(L)), g.braceNest = 0, g.inLinked = !1, X) : y(L, g) || V(L, g) ? (_(L), F2(L, g)) : H(L, g) ? (_(L), d(g, 12, N3(L))) : k(L, g) ? (_(L), A1 === "{" ? y3(L, g) || X : d(g, 11, q(L))) : (R === 8 && z(e1.INVALID_LINKED_FORMAT, s(), 0), g.braceNest = 0, g.inLinked = !1, k3(L, g));
|
597
597
|
}
|
598
598
|
}
|
599
599
|
function k3(L, g) {
|
@@ -609,7 +609,7 @@ function uU(c, e = {}) {
|
|
609
609
|
case "{":
|
610
610
|
return y3(L, g) || h(g);
|
611
611
|
case "}":
|
612
|
-
return z(e1.UNBALANCED_CLOSING_BRACE, s(), 0), L.next(),
|
612
|
+
return z(e1.UNBALANCED_CLOSING_BRACE, s(), 0), L.next(), d(
|
613
613
|
g,
|
614
614
|
3,
|
615
615
|
"}"
|
@@ -619,12 +619,12 @@ function uU(c, e = {}) {
|
|
619
619
|
return F2(L, g) || h(g);
|
620
620
|
default: {
|
621
621
|
if (F(L))
|
622
|
-
return R =
|
622
|
+
return R = d(g, 1, p1(L)), g.braceNest = 0, g.inLinked = !1, R;
|
623
623
|
const { isModulo: A1, hasSpace: b1 } = K(L);
|
624
624
|
if (A1)
|
625
|
-
return b1 ?
|
625
|
+
return b1 ? d(g, 0, h2(L)) : d(g, 4, X1(L));
|
626
626
|
if (D(L))
|
627
|
-
return
|
627
|
+
return d(g, 0, h2(L));
|
628
628
|
break;
|
629
629
|
}
|
630
630
|
}
|
@@ -632,7 +632,7 @@ function uU(c, e = {}) {
|
|
632
632
|
}
|
633
633
|
function j0() {
|
634
634
|
const { currentType: L, offset: g, startLoc: R, endLoc: X } = o;
|
635
|
-
return o.lastType = L, o.lastOffset = g, o.lastStartLoc = R, o.lastEndLoc = X, o.offset = t(), o.startLoc = s(), a.currentChar() === x2 ?
|
635
|
+
return o.lastType = L, o.lastOffset = g, o.lastStartLoc = R, o.lastEndLoc = X, o.offset = t(), o.startLoc = s(), a.currentChar() === x2 ? d(
|
636
636
|
o,
|
637
637
|
14
|
638
638
|
/* TokenTypes.EOF */
|
@@ -692,7 +692,7 @@ function zU(c = {}) {
|
|
692
692
|
const S = v.context(), { lastOffset: y, lastStartLoc: H } = S, V = n(5, y, H);
|
693
693
|
return V.index = parseInt(N, 10), v.nextToken(), i(V, v.currentOffset(), v.currentPosition()), V;
|
694
694
|
}
|
695
|
-
function
|
695
|
+
function m(v, N, S) {
|
696
696
|
const y = v.context(), { lastOffset: H, lastStartLoc: V } = y, k = n(4, H, V);
|
697
697
|
return k.key = N, S === !0 && (k.modulo = !0), v.nextToken(), i(k, v.currentOffset(), v.currentPosition()), k;
|
698
698
|
}
|
@@ -700,7 +700,7 @@ function zU(c = {}) {
|
|
700
700
|
const S = v.context(), { lastOffset: y, lastStartLoc: H } = S, V = n(9, y, H);
|
701
701
|
return V.value = N.replace(dU, pU), v.nextToken(), i(V, v.currentOffset(), v.currentPosition()), V;
|
702
702
|
}
|
703
|
-
function
|
703
|
+
function d(v) {
|
704
704
|
const N = v.nextToken(), S = v.context(), { lastOffset: y, lastStartLoc: H } = S, V = n(8, y, H);
|
705
705
|
return N.type !== 12 ? (t(v, e1.UNEXPECTED_EMPTY_LINKED_MODIFIER, S.lastStartLoc, 0), V.value = "", i(V, y, H), {
|
706
706
|
nextConsumeToken: N,
|
@@ -717,7 +717,7 @@ function zU(c = {}) {
|
|
717
717
|
const N = v.context(), S = n(6, N.offset, N.startLoc);
|
718
718
|
let y = v.nextToken();
|
719
719
|
if (y.type === 9) {
|
720
|
-
const H =
|
720
|
+
const H = d(v);
|
721
721
|
S.modifier = H.node, y = H.nextConsumeToken || v.nextToken();
|
722
722
|
}
|
723
723
|
switch (y.type !== 10 && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(y)), y = v.nextToken(), y.type === 2 && (y = v.nextToken()), y.type) {
|
@@ -725,7 +725,7 @@ function zU(c = {}) {
|
|
725
725
|
y.value == null && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(y)), S.key = h(v, y.value || "");
|
726
726
|
break;
|
727
727
|
case 5:
|
728
|
-
y.value == null && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(y)), S.key =
|
728
|
+
y.value == null && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(y)), S.key = m(v, y.value || "");
|
729
729
|
break;
|
730
730
|
case 6:
|
731
731
|
y.value == null && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(y)), S.key = f(v, y.value || "");
|
@@ -763,7 +763,7 @@ function zU(c = {}) {
|
|
763
763
|
k = !0;
|
764
764
|
break;
|
765
765
|
case 5:
|
766
|
-
D.value == null && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(D)), H.items.push(
|
766
|
+
D.value == null && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(D)), H.items.push(m(v, D.value || "", !!k)), k && (s(v, R4.USE_MODULO_SYNTAX, N.lastStartLoc, 0, c2(D)), k = null);
|
767
767
|
break;
|
768
768
|
case 7:
|
769
769
|
D.value == null && t(v, e1.UNEXPECTED_LEXICAL_ANALYSIS, N.lastStartLoc, 0, c2(D)), H.items.push(z(v, D.value || ""));
|
@@ -962,26 +962,26 @@ function vU(c, e) {
|
|
962
962
|
function f(_, x) {
|
963
963
|
i.code += _;
|
964
964
|
}
|
965
|
-
function
|
965
|
+
function m(_, x = !0) {
|
966
966
|
const C = x ? t : "";
|
967
967
|
f(s ? C + " ".repeat(_) : C);
|
968
968
|
}
|
969
969
|
function z(_ = !0) {
|
970
970
|
const x = ++i.indentLevel;
|
971
|
-
_ &&
|
971
|
+
_ && m(x);
|
972
972
|
}
|
973
|
-
function
|
973
|
+
function d(_ = !0) {
|
974
974
|
const x = --i.indentLevel;
|
975
|
-
_ &&
|
975
|
+
_ && m(x);
|
976
976
|
}
|
977
977
|
function h() {
|
978
|
-
|
978
|
+
m(i.indentLevel);
|
979
979
|
}
|
980
980
|
return {
|
981
981
|
context: o,
|
982
982
|
push: f,
|
983
983
|
indent: z,
|
984
|
-
deindent:
|
984
|
+
deindent: d,
|
985
985
|
newline: h,
|
986
986
|
helper: (_) => `_${_}`,
|
987
987
|
needIndent: () => i.needIndent
|
@@ -1083,11 +1083,11 @@ const NU = (c, e = {}) => {
|
|
1083
1083
|
needIndent: n
|
1084
1084
|
});
|
1085
1085
|
o.push(l === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), o.indent(n), i.length > 0 && (o.push(`const { ${ln(i.map((z) => `${z}: _${z}`), ", ")} } = ctx`), o.newline()), o.push("return "), u3(o, c), o.deindent(n), o.push("}"), delete c.helpers;
|
1086
|
-
const { code: f, map:
|
1086
|
+
const { code: f, map: m } = o.context();
|
1087
1087
|
return {
|
1088
1088
|
ast: c,
|
1089
1089
|
code: f,
|
1090
|
-
map:
|
1090
|
+
map: m ? m.toJSON() : void 0
|
1091
1091
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1092
1092
|
};
|
1093
1093
|
};
|
@@ -1303,39 +1303,39 @@ function TU(c) {
|
|
1303
1303
|
}
|
1304
1304
|
function HU(c) {
|
1305
1305
|
const e = [];
|
1306
|
-
let l = -1, a = 0, t = 0, s, n, i, o, f,
|
1307
|
-
const
|
1308
|
-
|
1306
|
+
let l = -1, a = 0, t = 0, s, n, i, o, f, m, z;
|
1307
|
+
const d = [];
|
1308
|
+
d[
|
1309
1309
|
0
|
1310
1310
|
/* Actions.APPEND */
|
1311
1311
|
] = () => {
|
1312
1312
|
n === void 0 ? n = i : n += i;
|
1313
|
-
},
|
1313
|
+
}, d[
|
1314
1314
|
1
|
1315
1315
|
/* Actions.PUSH */
|
1316
1316
|
] = () => {
|
1317
1317
|
n !== void 0 && (e.push(n), n = void 0);
|
1318
|
-
},
|
1318
|
+
}, d[
|
1319
1319
|
2
|
1320
1320
|
/* Actions.INC_SUB_PATH_DEPTH */
|
1321
1321
|
] = () => {
|
1322
|
-
|
1322
|
+
d[
|
1323
1323
|
0
|
1324
1324
|
/* Actions.APPEND */
|
1325
1325
|
](), t++;
|
1326
|
-
},
|
1326
|
+
}, d[
|
1327
1327
|
3
|
1328
1328
|
/* Actions.PUSH_SUB_PATH */
|
1329
1329
|
] = () => {
|
1330
1330
|
if (t > 0)
|
1331
|
-
t--, a = 4,
|
1331
|
+
t--, a = 4, d[
|
1332
1332
|
0
|
1333
1333
|
/* Actions.APPEND */
|
1334
1334
|
]();
|
1335
1335
|
else {
|
1336
1336
|
if (t = 0, n === void 0 || (n = TU(n), n === !1))
|
1337
1337
|
return !1;
|
1338
|
-
|
1338
|
+
d[
|
1339
1339
|
1
|
1340
1340
|
/* Actions.PUSH */
|
1341
1341
|
]();
|
@@ -1344,14 +1344,14 @@ function HU(c) {
|
|
1344
1344
|
function h() {
|
1345
1345
|
const b = c[l + 1];
|
1346
1346
|
if (a === 5 && b === "'" || a === 6 && b === '"')
|
1347
|
-
return l++, i = "\\" + b,
|
1347
|
+
return l++, i = "\\" + b, d[
|
1348
1348
|
0
|
1349
1349
|
/* Actions.APPEND */
|
1350
1350
|
](), !0;
|
1351
1351
|
}
|
1352
1352
|
for (; a !== null; )
|
1353
1353
|
if (l++, s = c[l], !(s === "\\" && h())) {
|
1354
|
-
if (o = EU(s), z = R2[a], f = z[o] || z.l || 8, f === 8 || (a = f[0], f[1] !== void 0 && (
|
1354
|
+
if (o = EU(s), z = R2[a], f = z[o] || z.l || 8, f === 8 || (a = f[0], f[1] !== void 0 && (m = d[f[1]], m && (i = s, m() === !1))))
|
1355
1355
|
return;
|
1356
1356
|
if (a === 7)
|
1357
1357
|
return e;
|
@@ -1392,11 +1392,11 @@ function jU(c = {}) {
|
|
1392
1392
|
const e = c.locale, l = $U(c), a = u1(c.pluralRules) && j(e) && M1(c.pluralRules[e]) ? c.pluralRules[e] : _t, t = u1(c.pluralRules) && j(e) && M1(c.pluralRules[e]) ? _t : void 0, s = (x) => x[a(l, x.length, t)], n = c.list || [], i = (x) => n[x], o = c.named || {};
|
1393
1393
|
S1(c.pluralIndex) && qU(l, o);
|
1394
1394
|
const f = (x) => o[x];
|
1395
|
-
function
|
1395
|
+
function m(x) {
|
1396
1396
|
const C = M1(c.messages) ? c.messages(x) : u1(c.messages) ? c.messages[x] : !1;
|
1397
1397
|
return C || (c.parent ? c.parent.message(x) : DU);
|
1398
1398
|
}
|
1399
|
-
const z = (x) => c.modifiers ? c.modifiers[x] : PU,
|
1399
|
+
const z = (x) => c.modifiers ? c.modifiers[x] : PU, d = l1(c.processor) && M1(c.processor.normalize) ? c.processor.normalize : FU, h = l1(c.processor) && M1(c.processor.interpolate) ? c.processor.interpolate : BU, b = l1(c.processor) && j(c.processor.type) ? c.processor.type : RU, _ = {
|
1400
1400
|
list: i,
|
1401
1401
|
named: f,
|
1402
1402
|
plural: s,
|
@@ -1404,16 +1404,16 @@ function jU(c = {}) {
|
|
1404
1404
|
const [v, N] = C;
|
1405
1405
|
let S = "text", y = "";
|
1406
1406
|
C.length === 1 ? u1(v) ? (y = v.modifier || y, S = v.type || S) : j(v) && (y = v || y) : C.length === 2 && (j(v) && (y = v || y), j(N) && (S = N || S));
|
1407
|
-
const H =
|
1407
|
+
const H = m(x)(_), V = (
|
1408
1408
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1409
1409
|
S === "vnode" && v1(H) && y ? H[0] : H
|
1410
1410
|
);
|
1411
1411
|
return y ? z(y)(V, S) : V;
|
1412
1412
|
},
|
1413
|
-
message:
|
1413
|
+
message: m,
|
1414
1414
|
type: b,
|
1415
1415
|
interpolate: h,
|
1416
|
-
normalize:
|
1416
|
+
normalize: d,
|
1417
1417
|
values: P1({}, n, o)
|
1418
1418
|
};
|
1419
1419
|
return _;
|
@@ -1592,7 +1592,7 @@ const St = (c) => {
|
|
1592
1592
|
}, nW = () => un;
|
1593
1593
|
let Vt = 0;
|
1594
1594
|
function iW(c = {}) {
|
1595
|
-
const e = M1(c.onWarn) ? c.onWarn : V1, l = j(c.version) ? c.version : cW, a = j(c.locale) || M1(c.locale) ? c.locale : m3, t = M1(a) ? m3 : a, s = v1(c.fallbackLocale) || l1(c.fallbackLocale) || j(c.fallbackLocale) || c.fallbackLocale === !1 ? c.fallbackLocale : t, n = l1(c.messages) ? c.messages : { [t]: {} }, i = l1(c.datetimeFormats) ? c.datetimeFormats : { [t]: {} }, o = l1(c.numberFormats) ? c.numberFormats : { [t]: {} }, f = P1({}, c.modifiers || {}, eW()),
|
1595
|
+
const e = M1(c.onWarn) ? c.onWarn : V1, l = j(c.version) ? c.version : cW, a = j(c.locale) || M1(c.locale) ? c.locale : m3, t = M1(a) ? m3 : a, s = v1(c.fallbackLocale) || l1(c.fallbackLocale) || j(c.fallbackLocale) || c.fallbackLocale === !1 ? c.fallbackLocale : t, n = l1(c.messages) ? c.messages : { [t]: {} }, i = l1(c.datetimeFormats) ? c.datetimeFormats : { [t]: {} }, o = l1(c.numberFormats) ? c.numberFormats : { [t]: {} }, f = P1({}, c.modifiers || {}, eW()), m = c.pluralRules || {}, z = M1(c.missing) ? c.missing : null, d = n1(c.missingWarn) || T2(c.missingWarn) ? c.missingWarn : !0, h = n1(c.fallbackWarn) || T2(c.fallbackWarn) ? c.fallbackWarn : !0, b = !!c.fallbackFormat, A = !!c.unresolving, _ = M1(c.postTranslation) ? c.postTranslation : null, x = l1(c.processor) ? c.processor : null, C = n1(c.warnHtmlMessage) ? c.warnHtmlMessage : !0, v = !!c.escapeParameter, N = M1(c.messageCompiler) ? c.messageCompiler : nn;
|
1596
1596
|
process.env.NODE_ENV !== "production" && M1(c.messageCompiler) && Xs(Y2($1.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1597
1597
|
const S = M1(c.messageResolver) ? c.messageResolver : on || IU, y = M1(c.localeFallbacker) ? c.localeFallbacker : rn || YU, H = u1(c.fallbackContext) ? c.fallbackContext : void 0, V = c, k = u1(V.__datetimeFormatters) ? V.__datetimeFormatters : /* @__PURE__ */ new Map(), F = u1(V.__numberFormatters) ? V.__numberFormatters : /* @__PURE__ */ new Map(), K = u1(V.__meta) ? V.__meta : {};
|
1598
1598
|
Vt++;
|
@@ -1603,9 +1603,9 @@ function iW(c = {}) {
|
|
1603
1603
|
fallbackLocale: s,
|
1604
1604
|
messages: n,
|
1605
1605
|
modifiers: f,
|
1606
|
-
pluralRules:
|
1606
|
+
pluralRules: m,
|
1607
1607
|
missing: z,
|
1608
|
-
missingWarn:
|
1608
|
+
missingWarn: d,
|
1609
1609
|
fallbackWarn: h,
|
1610
1610
|
fallbackFormat: b,
|
1611
1611
|
unresolving: A,
|
@@ -1778,13 +1778,13 @@ function mW(c, e) {
|
|
1778
1778
|
}
|
1779
1779
|
const Et = () => "", Y1 = (c) => M1(c);
|
1780
1780
|
function Tt(c, ...e) {
|
1781
|
-
const { fallbackFormat: l, postTranslation: a, unresolving: t, messageCompiler: s, fallbackLocale: n, messages: i } = c, [o, f] = t6(...e),
|
1782
|
-
|
1781
|
+
const { fallbackFormat: l, postTranslation: a, unresolving: t, messageCompiler: s, fallbackLocale: n, messages: i } = c, [o, f] = t6(...e), m = n1(f.missingWarn) ? f.missingWarn : c.missingWarn, z = n1(f.fallbackWarn) ? f.fallbackWarn : c.fallbackWarn, d = n1(f.escapeParameter) ? f.escapeParameter : c.escapeParameter, h = !!f.resolvedMessage, b = j(f.default) || n1(f.default) ? n1(f.default) ? s ? o : () => o : f.default : l ? s ? o : () => o : "", A = l || b !== "", _ = R6(c, f);
|
1782
|
+
d && dW(f);
|
1783
1783
|
let [x, C, v] = h ? [
|
1784
1784
|
o,
|
1785
1785
|
_,
|
1786
1786
|
i[_] || {}
|
1787
|
-
] : Mn(c, o, _, n, z,
|
1787
|
+
] : Mn(c, o, _, n, z, m), N = x, S = o;
|
1788
1788
|
if (!h && !(j(N) || H2(N) || Y1(N)) && A && (N = b, S = N), !h && (!(j(N) || H2(N) || Y1(N)) || !j(C)))
|
1789
1789
|
return t ? F4 : o;
|
1790
1790
|
if (process.env.NODE_ENV !== "production" && j(N) && c.messageCompiler == null)
|
@@ -1814,14 +1814,14 @@ function dW(c) {
|
|
1814
1814
|
});
|
1815
1815
|
}
|
1816
1816
|
function Mn(c, e, l, a, t, s) {
|
1817
|
-
const { messages: n, onWarn: i, messageResolver: o, localeFallbacker: f } = c,
|
1818
|
-
let z = {},
|
1817
|
+
const { messages: n, onWarn: i, messageResolver: o, localeFallbacker: f } = c, m = f(c, a, l);
|
1818
|
+
let z = {}, d, h = null, b = l, A = null;
|
1819
1819
|
const _ = "translate";
|
1820
|
-
for (let x = 0; x <
|
1821
|
-
if (
|
1820
|
+
for (let x = 0; x < m.length; x++) {
|
1821
|
+
if (d = A = m[x], process.env.NODE_ENV !== "production" && l !== d && !dn(l, d) && B4(t, e) && i(Y2($1.FALLBACK_TO_TRANSLATE, {
|
1822
1822
|
key: e,
|
1823
|
-
target:
|
1824
|
-
})), process.env.NODE_ENV !== "production" && l !==
|
1823
|
+
target: d
|
1824
|
+
})), process.env.NODE_ENV !== "production" && l !== d) {
|
1825
1825
|
const S = c.__v_emitter;
|
1826
1826
|
S && S.emit("fallback", {
|
1827
1827
|
type: _,
|
@@ -1831,7 +1831,7 @@ function Mn(c, e, l, a, t, s) {
|
|
1831
1831
|
groupId: `${_}:${e}`
|
1832
1832
|
});
|
1833
1833
|
}
|
1834
|
-
z = n[
|
1834
|
+
z = n[d] || {};
|
1835
1835
|
let C = null, v, N;
|
1836
1836
|
if (process.env.NODE_ENV !== "production" && t2 && (C = window.performance.now(), v = "intlify-message-resolve-start", N = "intlify-message-resolve-end", J1 && J1(v)), (h = o(z, e)) === null && (h = z[e]), process.env.NODE_ENV !== "production" && t2) {
|
1837
1837
|
const S = window.performance.now(), y = c.__v_emitter;
|
@@ -1845,12 +1845,12 @@ function Mn(c, e, l, a, t, s) {
|
|
1845
1845
|
}
|
1846
1846
|
if (j(h) || H2(h) || Y1(h))
|
1847
1847
|
break;
|
1848
|
-
if (!oW(
|
1848
|
+
if (!oW(d, m)) {
|
1849
1849
|
const S = F6(
|
1850
1850
|
c,
|
1851
1851
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1852
1852
|
e,
|
1853
|
-
|
1853
|
+
d,
|
1854
1854
|
s,
|
1855
1855
|
_
|
1856
1856
|
);
|
@@ -1858,29 +1858,29 @@ function Mn(c, e, l, a, t, s) {
|
|
1858
1858
|
}
|
1859
1859
|
b = A;
|
1860
1860
|
}
|
1861
|
-
return [h,
|
1861
|
+
return [h, d, z];
|
1862
1862
|
}
|
1863
1863
|
function gn(c, e, l, a, t, s) {
|
1864
1864
|
const { messageCompiler: n, warnHtmlMessage: i } = c;
|
1865
1865
|
if (Y1(a)) {
|
1866
|
-
const
|
1867
|
-
return
|
1866
|
+
const d = a;
|
1867
|
+
return d.locale = d.locale || l, d.key = d.key || e, d;
|
1868
1868
|
}
|
1869
1869
|
if (n == null) {
|
1870
|
-
const
|
1871
|
-
return
|
1870
|
+
const d = () => a;
|
1871
|
+
return d.locale = l, d.key = e, d;
|
1872
1872
|
}
|
1873
|
-
let o = null, f,
|
1874
|
-
process.env.NODE_ENV !== "production" && t2 && (o = window.performance.now(), f = "intlify-message-compilation-start",
|
1873
|
+
let o = null, f, m;
|
1874
|
+
process.env.NODE_ENV !== "production" && t2 && (o = window.performance.now(), f = "intlify-message-compilation-start", m = "intlify-message-compilation-end", J1 && J1(f));
|
1875
1875
|
const z = n(a, zW(c, l, t, a, i, s));
|
1876
1876
|
if (process.env.NODE_ENV !== "production" && t2) {
|
1877
|
-
const
|
1877
|
+
const d = window.performance.now(), h = c.__v_emitter;
|
1878
1878
|
h && o && h.emit("message-compilation", {
|
1879
1879
|
type: "message-compilation",
|
1880
1880
|
message: a,
|
1881
|
-
time:
|
1881
|
+
time: d - o,
|
1882
1882
|
groupId: `translate:${e}`
|
1883
|
-
}), f &&
|
1883
|
+
}), f && m && J1 && Q2 && (J1(m), Q2("intlify message compilation", f, m));
|
1884
1884
|
}
|
1885
1885
|
return z.locale = l, z.key = e, z.source = a, z;
|
1886
1886
|
}
|
@@ -1913,8 +1913,8 @@ function zW(c, e, l, a, t, s) {
|
|
1913
1913
|
warnHtmlMessage: t,
|
1914
1914
|
onError: (n) => {
|
1915
1915
|
if (s && s(n), process.env.NODE_ENV !== "production") {
|
1916
|
-
const i = hW(a), o = `Message compilation error: ${n.message}`, f = n.location && i && Zj(i, n.location.start.offset, n.location.end.offset),
|
1917
|
-
|
1916
|
+
const i = hW(a), o = `Message compilation error: ${n.message}`, f = n.location && i && Zj(i, n.location.start.offset, n.location.end.offset), m = c.__v_emitter;
|
1917
|
+
m && i && m.emit("compile-error", {
|
1918
1918
|
message: i,
|
1919
1919
|
error: n.message,
|
1920
1920
|
start: n.location && n.location.start.offset,
|
@@ -1935,14 +1935,14 @@ function hW(c) {
|
|
1935
1935
|
return c.loc.source;
|
1936
1936
|
}
|
1937
1937
|
function LW(c, e, l, a) {
|
1938
|
-
const { modifiers: t, pluralRules: s, messageResolver: n, fallbackLocale: i, fallbackWarn: o, missingWarn: f, fallbackContext:
|
1938
|
+
const { modifiers: t, pluralRules: s, messageResolver: n, fallbackLocale: i, fallbackWarn: o, missingWarn: f, fallbackContext: m } = c, d = {
|
1939
1939
|
locale: e,
|
1940
1940
|
modifiers: t,
|
1941
1941
|
pluralRules: s,
|
1942
1942
|
messages: (h) => {
|
1943
1943
|
let b = n(l, h);
|
1944
|
-
if (b == null &&
|
1945
|
-
const [, , A] = Mn(
|
1944
|
+
if (b == null && m) {
|
1945
|
+
const [, , A] = Mn(m, h, e, i, o, f);
|
1946
1946
|
b = n(A, h);
|
1947
1947
|
}
|
1948
1948
|
if (j(b) || H2(b)) {
|
@@ -1954,7 +1954,7 @@ function LW(c, e, l, a) {
|
|
1954
1954
|
} else return Y1(b) ? b : Et;
|
1955
1955
|
}
|
1956
1956
|
};
|
1957
|
-
return c.processor && (
|
1957
|
+
return c.processor && (d.processor = c.processor), a.list && (d.list = a.list), a.named && (d.named = a.named), S1(a.plural) && (d.pluralIndex = a.plural), d;
|
1958
1958
|
}
|
1959
1959
|
const Ht = typeof Intl < "u", bn = {
|
1960
1960
|
dateTimeFormat: Ht && typeof Intl.DateTimeFormat < "u",
|
@@ -1964,7 +1964,7 @@ function It(c, ...e) {
|
|
1964
1964
|
const { datetimeFormats: l, unresolving: a, fallbackLocale: t, onWarn: s, localeFallbacker: n } = c, { __datetimeFormatters: i } = c;
|
1965
1965
|
if (process.env.NODE_ENV !== "production" && !bn.dateTimeFormat)
|
1966
1966
|
return s(Y2($1.CANNOT_FORMAT_DATE)), N4;
|
1967
|
-
const [o, f,
|
1967
|
+
const [o, f, m, z] = s6(...e), d = n1(m.missingWarn) ? m.missingWarn : c.missingWarn, h = n1(m.fallbackWarn) ? m.fallbackWarn : c.fallbackWarn, b = !!m.part, A = R6(c, m), _ = n(
|
1968
1968
|
c,
|
1969
1969
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1970
1970
|
t,
|
@@ -1990,7 +1990,7 @@ function It(c, ...e) {
|
|
1990
1990
|
}
|
1991
1991
|
if (x = l[C] || {}, v = x[o], l1(v))
|
1992
1992
|
break;
|
1993
|
-
F6(c, o, C,
|
1993
|
+
F6(c, o, C, d, y), N = S;
|
1994
1994
|
}
|
1995
1995
|
if (!l1(v) || !j(C))
|
1996
1996
|
return a ? F4 : o;
|
@@ -2058,7 +2058,7 @@ function Pt(c, ...e) {
|
|
2058
2058
|
const { numberFormats: l, unresolving: a, fallbackLocale: t, onWarn: s, localeFallbacker: n } = c, { __numberFormatters: i } = c;
|
2059
2059
|
if (process.env.NODE_ENV !== "production" && !bn.numberFormat)
|
2060
2060
|
return s(Y2($1.CANNOT_FORMAT_NUMBER)), N4;
|
2061
|
-
const [o, f,
|
2061
|
+
const [o, f, m, z] = n6(...e), d = n1(m.missingWarn) ? m.missingWarn : c.missingWarn, h = n1(m.fallbackWarn) ? m.fallbackWarn : c.fallbackWarn, b = !!m.part, A = R6(c, m), _ = n(
|
2062
2062
|
c,
|
2063
2063
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
2064
2064
|
t,
|
@@ -2084,7 +2084,7 @@ function Pt(c, ...e) {
|
|
2084
2084
|
}
|
2085
2085
|
if (x = l[C] || {}, v = x[o], l1(v))
|
2086
2086
|
break;
|
2087
|
-
F6(c, o, C,
|
2087
|
+
F6(c, o, C, d, y), N = S;
|
2088
2088
|
}
|
2089
2089
|
if (!l1(v) || !j(C))
|
2090
2090
|
return a ? F4 : o;
|
@@ -2414,10 +2414,10 @@ function B6(c = {}, e) {
|
|
2414
2414
|
const f = n(
|
2415
2415
|
// prettier-ignore
|
2416
2416
|
l && o ? l.locale.value : j(c.locale) ? c.locale : m3
|
2417
|
-
),
|
2417
|
+
), m = n(
|
2418
2418
|
// prettier-ignore
|
2419
2419
|
l && o ? l.fallbackLocale.value : j(c.fallbackLocale) || v1(c.fallbackLocale) || l1(c.fallbackLocale) || c.fallbackLocale === !1 ? c.fallbackLocale : f.value
|
2420
|
-
), z = n($4(f.value, c)),
|
2420
|
+
), z = n($4(f.value, c)), d = n(l1(c.datetimeFormats) ? c.datetimeFormats : { [f.value]: {} }), h = n(l1(c.numberFormats) ? c.numberFormats : { [f.value]: {} });
|
2421
2421
|
let b = l ? l.missingWarn : n1(c.missingWarn) || T2(c.missingWarn) ? c.missingWarn : !0, A = l ? l.fallbackWarn : n1(c.fallbackWarn) || T2(c.fallbackWarn) ? c.fallbackWarn : !0, _ = l ? l.fallbackRoot : n1(c.fallbackRoot) ? c.fallbackRoot : !0, x = !!c.fallbackFormat, C = M1(c.missing) ? c.missing : null, v = M1(c.missing) ? qt(c.missing) : null, N = M1(c.postTranslation) ? c.postTranslation : null, S = l ? l.warnHtmlMessage : n1(c.warnHtmlMessage) ? c.warnHtmlMessage : !0, y = !!c.escapeParameter;
|
2422
2422
|
const H = l ? l.modifiers : l1(c.modifiers) ? c.modifiers : {};
|
2423
2423
|
let V = c.pluralRules || l && l.pluralRules, k;
|
@@ -2426,7 +2426,7 @@ function B6(c = {}, e) {
|
|
2426
2426
|
const E = {
|
2427
2427
|
version: NW,
|
2428
2428
|
locale: f.value,
|
2429
|
-
fallbackLocale:
|
2429
|
+
fallbackLocale: m.value,
|
2430
2430
|
messages: z.value,
|
2431
2431
|
modifiers: H,
|
2432
2432
|
pluralRules: V,
|
@@ -2442,16 +2442,16 @@ function B6(c = {}, e) {
|
|
2442
2442
|
messageCompiler: c.messageCompiler,
|
2443
2443
|
__meta: { framework: "vue" }
|
2444
2444
|
};
|
2445
|
-
E.datetimeFormats =
|
2445
|
+
E.datetimeFormats = d.value, E.numberFormats = h.value, E.__datetimeFormatters = l1(k) ? k.__datetimeFormatters : void 0, E.__numberFormatters = l1(k) ? k.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (E.__v_emitter = l1(k) ? k.__v_emitter : void 0);
|
2446
2446
|
const B = iW(E);
|
2447
2447
|
return t && St(B), B;
|
2448
|
-
})(), S3(k, f.value,
|
2448
|
+
})(), S3(k, f.value, m.value);
|
2449
2449
|
function K() {
|
2450
2450
|
return [
|
2451
2451
|
f.value,
|
2452
|
-
d.value,
|
2453
|
-
z.value,
|
2454
2452
|
m.value,
|
2453
|
+
z.value,
|
2454
|
+
d.value,
|
2455
2455
|
h.value
|
2456
2456
|
];
|
2457
2457
|
}
|
@@ -2461,11 +2461,11 @@ function B6(c = {}, e) {
|
|
2461
2461
|
f.value = E, k.locale = f.value;
|
2462
2462
|
}
|
2463
2463
|
}), c1 = I({
|
2464
|
-
get: () =>
|
2464
|
+
get: () => m.value,
|
2465
2465
|
set: (E) => {
|
2466
|
-
|
2466
|
+
m.value = E, k.fallbackLocale = m.value, S3(k, f.value, E);
|
2467
2467
|
}
|
2468
|
-
}), f1 = I(() => z.value), U = /* @__PURE__ */ I(() =>
|
2468
|
+
}), f1 = I(() => z.value), U = /* @__PURE__ */ I(() => d.value), Q = /* @__PURE__ */ I(() => h.value);
|
2469
2469
|
function N1() {
|
2470
2470
|
return M1(N) ? N : null;
|
2471
2471
|
}
|
@@ -2589,7 +2589,7 @@ function B6(c = {}, e) {
|
|
2589
2589
|
}
|
2590
2590
|
function p1(E) {
|
2591
2591
|
let B = null;
|
2592
|
-
const z1 = sn(k,
|
2592
|
+
const z1 = sn(k, m.value, f.value);
|
2593
2593
|
for (let k1 = 0; k1 < z1.length; k1++) {
|
2594
2594
|
const _2 = z.value[z1[k1]] || {}, p4 = k.messageResolver(_2, E);
|
2595
2595
|
if (p4 != null) {
|
@@ -2624,13 +2624,13 @@ function B6(c = {}, e) {
|
|
2624
2624
|
B = z1[E], g4(B, z.value[E]), k.messages = z.value;
|
2625
2625
|
}
|
2626
2626
|
function L(E) {
|
2627
|
-
return
|
2627
|
+
return d.value[E] || {};
|
2628
2628
|
}
|
2629
2629
|
function g(E, B) {
|
2630
|
-
|
2630
|
+
d.value[E] = B, k.datetimeFormats = d.value, Ot(k, E, B);
|
2631
2631
|
}
|
2632
2632
|
function R(E, B) {
|
2633
|
-
|
2633
|
+
d.value[E] = P1(d.value[E] || {}, B), k.datetimeFormats = d.value, Ot(k, E, B);
|
2634
2634
|
}
|
2635
2635
|
function X(E) {
|
2636
2636
|
return h.value[E] || {};
|
@@ -2642,9 +2642,9 @@ function B6(c = {}, e) {
|
|
2642
2642
|
h.value[E] = P1(h.value[E] || {}, B), k.numberFormats = h.value, Dt(k, E, B);
|
2643
2643
|
}
|
2644
2644
|
$t++, l && t2 && (s1(l.locale, (E) => {
|
2645
|
-
o && (f.value = E, k.locale = E, S3(k, f.value,
|
2645
|
+
o && (f.value = E, k.locale = E, S3(k, f.value, m.value));
|
2646
2646
|
}), s1(l.fallbackLocale, (E) => {
|
2647
|
-
o && (
|
2647
|
+
o && (m.value = E, k.fallbackLocale = E, S3(k, f.value, m.value));
|
2648
2648
|
}));
|
2649
2649
|
const L1 = {
|
2650
2650
|
id: $t,
|
@@ -2654,7 +2654,7 @@ function B6(c = {}, e) {
|
|
2654
2654
|
return o;
|
2655
2655
|
},
|
2656
2656
|
set inheritLocale(E) {
|
2657
|
-
o = E, E && l && (f.value = l.locale.value,
|
2657
|
+
o = E, E && l && (f.value = l.locale.value, m.value = l.fallbackLocale.value, S3(k, f.value, m.value));
|
2658
2658
|
},
|
2659
2659
|
get availableLocales() {
|
2660
2660
|
return Object.keys(z.value).sort();
|
@@ -2722,7 +2722,7 @@ function B6(c = {}, e) {
|
|
2722
2722
|
}), L1;
|
2723
2723
|
}
|
2724
2724
|
function EW(c) {
|
2725
|
-
const e = j(c.locale) ? c.locale : m3, l = j(c.fallbackLocale) || v1(c.fallbackLocale) || l1(c.fallbackLocale) || c.fallbackLocale === !1 ? c.fallbackLocale : e, a = M1(c.missing) ? c.missing : void 0, t = n1(c.silentTranslationWarn) || T2(c.silentTranslationWarn) ? !c.silentTranslationWarn : !0, s = n1(c.silentFallbackWarn) || T2(c.silentFallbackWarn) ? !c.silentFallbackWarn : !0, n = n1(c.fallbackRoot) ? c.fallbackRoot : !0, i = !!c.formatFallbackMessages, o = l1(c.modifiers) ? c.modifiers : {}, f = c.pluralizationRules,
|
2725
|
+
const e = j(c.locale) ? c.locale : m3, l = j(c.fallbackLocale) || v1(c.fallbackLocale) || l1(c.fallbackLocale) || c.fallbackLocale === !1 ? c.fallbackLocale : e, a = M1(c.missing) ? c.missing : void 0, t = n1(c.silentTranslationWarn) || T2(c.silentTranslationWarn) ? !c.silentTranslationWarn : !0, s = n1(c.silentFallbackWarn) || T2(c.silentFallbackWarn) ? !c.silentFallbackWarn : !0, n = n1(c.fallbackRoot) ? c.fallbackRoot : !0, i = !!c.formatFallbackMessages, o = l1(c.modifiers) ? c.modifiers : {}, f = c.pluralizationRules, m = M1(c.postTranslation) ? c.postTranslation : void 0, z = j(c.warnHtmlInMessage) ? c.warnHtmlInMessage !== "off" : !0, d = !!c.escapeParameterHtml, h = n1(c.sync) ? c.sync : !0;
|
2726
2726
|
process.env.NODE_ENV !== "production" && c.formatter && V1(U1(_1.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && c.preserveDirectiveContent && V1(U1(_1.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
2727
2727
|
let b = c.messages;
|
2728
2728
|
if (l1(c.sharedMessages)) {
|
@@ -2747,9 +2747,9 @@ function EW(c) {
|
|
2747
2747
|
fallbackFormat: i,
|
2748
2748
|
modifiers: o,
|
2749
2749
|
pluralRules: f,
|
2750
|
-
postTranslation:
|
2750
|
+
postTranslation: m,
|
2751
2751
|
warnHtmlMessage: z,
|
2752
|
-
escapeParameter:
|
2752
|
+
escapeParameter: d,
|
2753
2753
|
messageResolver: c.messageResolver,
|
2754
2754
|
inheritLocale: h,
|
2755
2755
|
translateExistCompatible: S,
|
@@ -2880,13 +2880,13 @@ function m6(c = {}, e) {
|
|
2880
2880
|
// t
|
2881
2881
|
t(...s) {
|
2882
2882
|
const [n, i, o] = s, f = {};
|
2883
|
-
let
|
2883
|
+
let m = null, z = null;
|
2884
2884
|
if (!j(n))
|
2885
2885
|
throw w1(d1.INVALID_ARGUMENT);
|
2886
|
-
const
|
2887
|
-
return j(i) ? f.locale = i : v1(i) ?
|
2888
|
-
|
2889
|
-
|
2886
|
+
const d = n;
|
2887
|
+
return j(i) ? f.locale = i : v1(i) ? m = i : l1(i) && (z = i), v1(o) ? m = o : l1(o) && (z = o), Reflect.apply(l.t, l, [
|
2888
|
+
d,
|
2889
|
+
m || z || {},
|
2890
2890
|
f
|
2891
2891
|
]);
|
2892
2892
|
},
|
@@ -2896,13 +2896,13 @@ function m6(c = {}, e) {
|
|
2896
2896
|
// tc
|
2897
2897
|
tc(...s) {
|
2898
2898
|
const [n, i, o] = s, f = { plural: 1 };
|
2899
|
-
let
|
2899
|
+
let m = null, z = null;
|
2900
2900
|
if (!j(n))
|
2901
2901
|
throw w1(d1.INVALID_ARGUMENT);
|
2902
|
-
const
|
2903
|
-
return j(i) ? f.locale = i : S1(i) ? f.plural = i : v1(i) ?
|
2904
|
-
|
2905
|
-
|
2902
|
+
const d = n;
|
2903
|
+
return j(i) ? f.locale = i : S1(i) ? f.plural = i : v1(i) ? m = i : l1(i) && (z = i), j(o) ? f.locale = o : v1(o) ? m = o : l1(o) && (z = o), Reflect.apply(l.t, l, [
|
2904
|
+
d,
|
2905
|
+
m || z || {},
|
2906
2906
|
f
|
2907
2907
|
]);
|
2908
2908
|
},
|
@@ -3028,8 +3028,8 @@ const HW = /* @__PURE__ */ W({
|
|
3028
3028
|
return () => {
|
3029
3029
|
const s = Object.keys(l).filter((z) => z !== "_"), n = {};
|
3030
3030
|
c.locale && (n.locale = c.locale), c.plural !== void 0 && (n.plural = j(c.plural) ? +c.plural : c.plural);
|
3031
|
-
const i = TW(e, s), o = t[o6](c.keypath, i, n), f = P1({}, a),
|
3032
|
-
return O4(
|
3031
|
+
const i = TW(e, s), o = t[o6](c.keypath, i, n), f = P1({}, a), m = j(c.tag) || u1(c.tag) ? c.tag : Vn();
|
3032
|
+
return O4(m, f, o);
|
3033
3033
|
};
|
3034
3034
|
}
|
3035
3035
|
}), J0 = HW;
|
@@ -3041,15 +3041,15 @@ function wn(c, e, l, a) {
|
|
3041
3041
|
return () => {
|
3042
3042
|
const n = { part: !0 };
|
3043
3043
|
let i = {};
|
3044
|
-
c.locale && (n.locale = c.locale), j(c.format) ? n.key = c.format : u1(c.format) && (j(c.format.key) && (n.key = c.format.key), i = Object.keys(c.format).reduce((
|
3044
|
+
c.locale && (n.locale = c.locale), j(c.format) ? n.key = c.format : u1(c.format) && (j(c.format.key) && (n.key = c.format.key), i = Object.keys(c.format).reduce((d, h) => l.includes(h) ? P1({}, d, { [h]: c.format[h] }) : d, {}));
|
3045
3045
|
const o = a(c.value, n, i);
|
3046
3046
|
let f = [n.key];
|
3047
|
-
v1(o) ? f = o.map((
|
3048
|
-
const b = t[
|
3049
|
-
return IW(A) && (A[0].key = `${
|
3047
|
+
v1(o) ? f = o.map((d, h) => {
|
3048
|
+
const b = t[d.type], A = b ? b({ [d.type]: d.value, index: h, parts: o }) : [d.value];
|
3049
|
+
return IW(A) && (A[0].key = `${d.type}-${h}`), A;
|
3050
3050
|
}) : j(o) && (f = [o]);
|
3051
|
-
const
|
3052
|
-
return O4(z,
|
3051
|
+
const m = P1({}, s), z = j(c.tag) || u1(c.tag) ? c.tag : Vn();
|
3052
|
+
return O4(z, m, f);
|
3053
3053
|
};
|
3054
3054
|
}
|
3055
3055
|
const OW = /* @__PURE__ */ W({
|
@@ -3115,12 +3115,12 @@ function RW(c) {
|
|
3115
3115
|
const { instance: i, modifiers: o, value: f } = n;
|
3116
3116
|
if (!i || !i.$)
|
3117
3117
|
throw w1(d1.UNEXPECTED_ERROR);
|
3118
|
-
const
|
3118
|
+
const m = DW(c, i.$);
|
3119
3119
|
process.env.NODE_ENV !== "production" && o.preserve && V1(U1(_1.NOT_SUPPORTED_PRESERVE));
|
3120
3120
|
const z = Wt(f);
|
3121
3121
|
return [
|
3122
|
-
Reflect.apply(
|
3123
|
-
|
3122
|
+
Reflect.apply(m.t, m, [...Jt(z)]),
|
3123
|
+
m
|
3124
3124
|
];
|
3125
3125
|
};
|
3126
3126
|
return {
|
@@ -3504,17 +3504,17 @@ const eJ = /* @__PURE__ */ z2("global-vue-i18n");
|
|
3504
3504
|
function lJ(c = {}, e) {
|
3505
3505
|
const l = __VUE_I18N_LEGACY_API__ && n1(c.legacy) ? c.legacy : __VUE_I18N_LEGACY_API__, a = n1(c.globalInjection) ? c.globalInjection : !0, t = __VUE_I18N_LEGACY_API__ && l ? !!c.allowComposition : !0, s = /* @__PURE__ */ new Map(), [n, i] = aJ(c, l), o = /* @__PURE__ */ z2(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
3506
3506
|
process.env.NODE_ENV !== "production" && l && t && V1(U1(_1.NOTICE_DROP_ALLOW_COMPOSITION));
|
3507
|
-
function f(
|
3508
|
-
return s.get(
|
3507
|
+
function f(d) {
|
3508
|
+
return s.get(d) || null;
|
3509
3509
|
}
|
3510
|
-
function d
|
3511
|
-
s.set(
|
3510
|
+
function m(d, h) {
|
3511
|
+
s.set(d, h);
|
3512
3512
|
}
|
3513
|
-
function z(
|
3514
|
-
s.delete(
|
3513
|
+
function z(d) {
|
3514
|
+
s.delete(d);
|
3515
3515
|
}
|
3516
3516
|
{
|
3517
|
-
const
|
3517
|
+
const d = {
|
3518
3518
|
// mode
|
3519
3519
|
get mode() {
|
3520
3520
|
return __VUE_I18N_LEGACY_API__ && l ? "legacy" : "composition";
|
@@ -3525,17 +3525,17 @@ function lJ(c = {}, e) {
|
|
3525
3525
|
},
|
3526
3526
|
// install plugin
|
3527
3527
|
async install(h, ...b) {
|
3528
|
-
if (process.env.NODE_ENV !== "production" && (h.__VUE_I18N__ =
|
3528
|
+
if (process.env.NODE_ENV !== "production" && (h.__VUE_I18N__ = d), h.__VUE_I18N_SYMBOL__ = o, h.provide(h.__VUE_I18N_SYMBOL__, d), l1(b[0])) {
|
3529
3529
|
const x = b[0];
|
3530
|
-
|
3530
|
+
d.__composerExtend = x.__composerExtend, d.__vueI18nExtend = x.__vueI18nExtend;
|
3531
3531
|
}
|
3532
3532
|
let A = null;
|
3533
|
-
!l && a && (A = mJ(h,
|
3533
|
+
!l && a && (A = mJ(h, d.global)), __VUE_I18N_FULL_INSTALL__ && FW(h, d, ...b), __VUE_I18N_LEGACY_API__ && l && h.mixin(cJ(i, i.__composer, d));
|
3534
3534
|
const _ = h.unmount;
|
3535
3535
|
if (h.unmount = () => {
|
3536
|
-
A && A(),
|
3536
|
+
A && A(), d.dispose(), _();
|
3537
3537
|
}, process.env.NODE_ENV !== "production") {
|
3538
|
-
if (!await qW(h,
|
3538
|
+
if (!await qW(h, d))
|
3539
3539
|
throw w1(d1.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
3540
3540
|
const C = P6();
|
3541
3541
|
if (l) {
|
@@ -3560,11 +3560,11 @@ function lJ(c = {}, e) {
|
|
3560
3560
|
// @internal
|
3561
3561
|
__getInstance: f,
|
3562
3562
|
// @internal
|
3563
|
-
__setInstance:
|
3563
|
+
__setInstance: m,
|
3564
3564
|
// @internal
|
3565
3565
|
__deleteInstance: z
|
3566
3566
|
};
|
3567
|
-
return
|
3567
|
+
return d;
|
3568
3568
|
}
|
3569
3569
|
}
|
3570
3570
|
function j6(c = {}) {
|
@@ -3662,13 +3662,13 @@ function fJ(c, e, l, a = {}) {
|
|
3662
3662
|
), o = t1(
|
3663
3663
|
// prettier-ignore
|
3664
3664
|
!t || n ? l.fallbackLocale.value : j(a.fallbackLocale) || v1(a.fallbackLocale) || l1(a.fallbackLocale) || a.fallbackLocale === !1 ? a.fallbackLocale : i.value
|
3665
|
-
), f = t1($4(i.value, a)),
|
3665
|
+
), f = t1($4(i.value, a)), m = t1(l1(a.datetimeFormats) ? a.datetimeFormats : { [i.value]: {} }), z = t1(l1(a.numberFormats) ? a.numberFormats : { [i.value]: {} }), d = t ? l.missingWarn : n1(a.missingWarn) || T2(a.missingWarn) ? a.missingWarn : !0, h = t ? l.fallbackWarn : n1(a.fallbackWarn) || T2(a.fallbackWarn) ? a.fallbackWarn : !0, b = t ? l.fallbackRoot : n1(a.fallbackRoot) ? a.fallbackRoot : !0, A = !!a.fallbackFormat, _ = M1(a.missing) ? a.missing : null, x = M1(a.postTranslation) ? a.postTranslation : null, C = t ? l.warnHtmlMessage : n1(a.warnHtmlMessage) ? a.warnHtmlMessage : !0, v = !!a.escapeParameter, N = t ? l.modifiers : l1(a.modifiers) ? a.modifiers : {}, S = a.pluralRules || t && l.pluralRules;
|
3666
3666
|
function y() {
|
3667
3667
|
return [
|
3668
3668
|
i.value,
|
3669
3669
|
o.value,
|
3670
3670
|
f.value,
|
3671
|
-
|
3671
|
+
m.value,
|
3672
3672
|
z.value
|
3673
3673
|
];
|
3674
3674
|
}
|
@@ -3682,7 +3682,7 @@ function fJ(c, e, l, a = {}) {
|
|
3682
3682
|
set: (q) => {
|
3683
3683
|
s.value && (s.value.fallbackLocale.value = q), o.value = q;
|
3684
3684
|
}
|
3685
|
-
}), k = I(() => s.value ? s.value.messages.value : f.value), F = I(() =>
|
3685
|
+
}), k = I(() => s.value ? s.value.messages.value : f.value), F = I(() => m.value), K = I(() => z.value);
|
3686
3686
|
function D() {
|
3687
3687
|
return s.value ? s.value.getPostTranslationHandler() : x;
|
3688
3688
|
}
|
@@ -3729,7 +3729,7 @@ function fJ(c, e, l, a = {}) {
|
|
3729
3729
|
return s.value ? s.value.getDateTimeFormat(q) : {};
|
3730
3730
|
}
|
3731
3731
|
function s2(q, p1) {
|
3732
|
-
s.value && (s.value.setDateTimeFormat(q, p1),
|
3732
|
+
s.value && (s.value.setDateTimeFormat(q, p1), m.value[q] = p1);
|
3733
3733
|
}
|
3734
3734
|
function l3(q, p1) {
|
3735
3735
|
s.value && s.value.mergeDateTimeFormat(q, p1);
|
@@ -3771,7 +3771,7 @@ function fJ(c, e, l, a = {}) {
|
|
3771
3771
|
return s.value ? s.value.isGlobal : !1;
|
3772
3772
|
},
|
3773
3773
|
get missingWarn() {
|
3774
|
-
return s.value ? s.value.missingWarn :
|
3774
|
+
return s.value ? s.value.missingWarn : d;
|
3775
3775
|
},
|
3776
3776
|
set missingWarn(q) {
|
3777
3777
|
s.value && (s.value.missingWarn = q);
|
@@ -3829,17 +3829,17 @@ function fJ(c, e, l, a = {}) {
|
|
3829
3829
|
function N3(q) {
|
3830
3830
|
q.locale.value = i.value, q.fallbackLocale.value = o.value, Object.keys(f.value).forEach((p1) => {
|
3831
3831
|
q.mergeLocaleMessage(p1, f.value[p1]);
|
3832
|
-
}), Object.keys(
|
3833
|
-
q.mergeDateTimeFormat(p1,
|
3832
|
+
}), Object.keys(m.value).forEach((p1) => {
|
3833
|
+
q.mergeDateTimeFormat(p1, m.value[p1]);
|
3834
3834
|
}), Object.keys(z.value).forEach((p1) => {
|
3835
3835
|
q.mergeNumberFormat(p1, z.value[p1]);
|
3836
|
-
}), q.escapeParameter = v, q.fallbackFormat = A, q.fallbackRoot = b, q.fallbackWarn = h, q.missingWarn =
|
3836
|
+
}), q.escapeParameter = v, q.fallbackFormat = A, q.fallbackRoot = b, q.fallbackWarn = h, q.missingWarn = d, q.warnHtmlMessage = C;
|
3837
3837
|
}
|
3838
3838
|
return Vj(() => {
|
3839
3839
|
if (c.proxy == null || c.proxy.$i18n == null)
|
3840
3840
|
throw w1(d1.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
3841
3841
|
const q = s.value = c.proxy.$i18n.__composer;
|
3842
|
-
e === "global" ? (i.value = q.locale.value, o.value = q.fallbackLocale.value, f.value = q.messages.value,
|
3842
|
+
e === "global" ? (i.value = q.locale.value, o.value = q.fallbackLocale.value, f.value = q.messages.value, m.value = q.datetimeFormats.value, z.value = q.numberFormats.value) : t && N3(q);
|
3843
3843
|
}), x3;
|
3844
3844
|
}
|
3845
3845
|
const uJ = [
|
@@ -19660,18 +19660,18 @@ function cs(c, e, l) {
|
|
19660
19660
|
reference: a,
|
19661
19661
|
floating: t
|
19662
19662
|
} = c;
|
19663
|
-
const s = u4(e), n = Xa(e), i = Ka(n), o = m2(e), f = s === "y",
|
19663
|
+
const s = u4(e), n = Xa(e), i = Ka(n), o = m2(e), f = s === "y", m = a.x + a.width / 2 - t.width / 2, z = a.y + a.height / 2 - t.height / 2, d = a[i] / 2 - t[i] / 2;
|
19664
19664
|
let h;
|
19665
19665
|
switch (o) {
|
19666
19666
|
case "top":
|
19667
19667
|
h = {
|
19668
|
-
x:
|
19668
|
+
x: m,
|
19669
19669
|
y: a.y - t.height
|
19670
19670
|
};
|
19671
19671
|
break;
|
19672
19672
|
case "bottom":
|
19673
19673
|
h = {
|
19674
|
-
x:
|
19674
|
+
x: m,
|
19675
19675
|
y: a.y + a.height
|
19676
19676
|
};
|
19677
19677
|
break;
|
@@ -19695,10 +19695,10 @@ function cs(c, e, l) {
|
|
19695
19695
|
}
|
19696
19696
|
switch (l2(e)) {
|
19697
19697
|
case "start":
|
19698
|
-
h[n] -=
|
19698
|
+
h[n] -= d * (l && f ? -1 : 1);
|
19699
19699
|
break;
|
19700
19700
|
case "end":
|
19701
|
-
h[n] +=
|
19701
|
+
h[n] += d * (l && f ? -1 : 1);
|
19702
19702
|
break;
|
19703
19703
|
}
|
19704
19704
|
return h;
|
@@ -19715,9 +19715,9 @@ const UJ = async (c, e, l) => {
|
|
19715
19715
|
floating: e,
|
19716
19716
|
strategy: t
|
19717
19717
|
}), {
|
19718
|
-
x:
|
19718
|
+
x: m,
|
19719
19719
|
y: z
|
19720
|
-
} = cs(f, a, o),
|
19720
|
+
} = cs(f, a, o), d = a, h = {}, b = 0;
|
19721
19721
|
for (let A = 0; A < i.length; A++) {
|
19722
19722
|
const {
|
19723
19723
|
name: _,
|
@@ -19728,10 +19728,10 @@ const UJ = async (c, e, l) => {
|
|
19728
19728
|
data: N,
|
19729
19729
|
reset: S
|
19730
19730
|
} = await x({
|
19731
|
-
x:
|
19731
|
+
x: m,
|
19732
19732
|
y: z,
|
19733
19733
|
initialPlacement: a,
|
19734
|
-
placement:
|
19734
|
+
placement: d,
|
19735
19735
|
strategy: t,
|
19736
19736
|
middlewareData: h,
|
19737
19737
|
rects: f,
|
@@ -19741,25 +19741,25 @@ const UJ = async (c, e, l) => {
|
|
19741
19741
|
floating: e
|
19742
19742
|
}
|
19743
19743
|
});
|
19744
|
-
|
19744
|
+
m = C ?? m, z = v ?? z, h = {
|
19745
19745
|
...h,
|
19746
19746
|
[_]: {
|
19747
19747
|
...h[_],
|
19748
19748
|
...N
|
19749
19749
|
}
|
19750
|
-
}, S && b <= 50 && (b++, typeof S == "object" && (S.placement && (
|
19750
|
+
}, S && b <= 50 && (b++, typeof S == "object" && (S.placement && (d = S.placement), S.rects && (f = S.rects === !0 ? await n.getElementRects({
|
19751
19751
|
reference: c,
|
19752
19752
|
floating: e,
|
19753
19753
|
strategy: t
|
19754
19754
|
}) : S.rects), {
|
19755
|
-
x:
|
19755
|
+
x: m,
|
19756
19756
|
y: z
|
19757
|
-
} = cs(f,
|
19757
|
+
} = cs(f, d, o)), A = -1);
|
19758
19758
|
}
|
19759
19759
|
return {
|
19760
|
-
x:
|
19760
|
+
x: m,
|
19761
19761
|
y: z,
|
19762
|
-
placement:
|
19762
|
+
placement: d,
|
19763
19763
|
strategy: t,
|
19764
19764
|
middlewareData: h
|
19765
19765
|
};
|
@@ -19776,14 +19776,14 @@ async function I0(c, e) {
|
|
19776
19776
|
strategy: o
|
19777
19777
|
} = c, {
|
19778
19778
|
boundary: f = "clippingAncestors",
|
19779
|
-
rootBoundary:
|
19779
|
+
rootBoundary: m = "viewport",
|
19780
19780
|
elementContext: z = "floating",
|
19781
|
-
altBoundary:
|
19781
|
+
altBoundary: d = !1,
|
19782
19782
|
padding: h = 0
|
19783
|
-
} = e3(e, c), b = _q(h), _ = i[
|
19783
|
+
} = e3(e, c), b = _q(h), _ = i[d ? z === "floating" ? "reference" : "floating" : z], x = E3(await s.getClippingRect({
|
19784
19784
|
element: (l = await (s.isElement == null ? void 0 : s.isElement(_))) == null || l ? _ : _.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
19785
19785
|
boundary: f,
|
19786
|
-
rootBoundary:
|
19786
|
+
rootBoundary: m,
|
19787
19787
|
strategy: o
|
19788
19788
|
})), C = z === "floating" ? {
|
19789
19789
|
x: a,
|
@@ -19823,19 +19823,19 @@ const WJ = (c) => ({
|
|
19823
19823
|
middlewareData: o
|
19824
19824
|
} = e, {
|
19825
19825
|
element: f,
|
19826
|
-
padding:
|
19826
|
+
padding: m = 0
|
19827
19827
|
} = e3(c, e) || {};
|
19828
19828
|
if (f == null)
|
19829
19829
|
return {};
|
19830
|
-
const z = _q(
|
19830
|
+
const z = _q(m), d = {
|
19831
19831
|
x: l,
|
19832
19832
|
y: a
|
19833
|
-
}, h = Xa(t), b = Ka(h), A = await n.getDimensions(f), _ = h === "y", x = _ ? "top" : "left", C = _ ? "bottom" : "right", v = _ ? "clientHeight" : "clientWidth", N = s.reference[b] + s.reference[h] -
|
19833
|
+
}, h = Xa(t), b = Ka(h), A = await n.getDimensions(f), _ = h === "y", x = _ ? "top" : "left", C = _ ? "bottom" : "right", v = _ ? "clientHeight" : "clientWidth", N = s.reference[b] + s.reference[h] - d[h] - s.floating[b], S = d[h] - s.reference[h], y = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(f));
|
19834
19834
|
let H = y ? y[v] : 0;
|
19835
19835
|
(!H || !await (n.isElement == null ? void 0 : n.isElement(y))) && (H = i.floating[v] || s.floating[b]);
|
19836
19836
|
const V = N / 2 - S / 2, k = H / 2 - A[b] / 2 - 1, F = J2(z[x], k), K = J2(z[C], k), D = F, c1 = H - A[b] - K, f1 = H / 2 - A[b] / 2 + V, U = p6(D, f1, c1), Q = !o.arrow && l2(t) != null && f1 !== U && s.reference[b] / 2 - (f1 < D ? F : K) - A[b] / 2 < 0, N1 = Q ? f1 < D ? f1 - D : f1 - c1 : 0;
|
19837
19837
|
return {
|
19838
|
-
[h]:
|
19838
|
+
[h]: d[h] + N1,
|
19839
19839
|
data: {
|
19840
19840
|
[h]: U,
|
19841
19841
|
centerOffset: f1 - U - N1,
|
@@ -19863,12 +19863,12 @@ const GJ = function(c) {
|
|
19863
19863
|
platform: o,
|
19864
19864
|
elements: f
|
19865
19865
|
} = e, {
|
19866
|
-
crossAxis:
|
19866
|
+
crossAxis: m = !1,
|
19867
19867
|
alignment: z,
|
19868
|
-
allowedPlacements:
|
19868
|
+
allowedPlacements: d = Xt,
|
19869
19869
|
autoAlignment: h = !0,
|
19870
19870
|
...b
|
19871
|
-
} = e3(c, e), A = z !== void 0 ||
|
19871
|
+
} = e3(c, e), A = z !== void 0 || d === Xt ? JJ(z || null, h, d) : d, _ = await I0(e, b), x = ((l = n.autoPlacement) == null ? void 0 : l.index) || 0, C = A[x];
|
19872
19872
|
if (C == null)
|
19873
19873
|
return {};
|
19874
19874
|
const v = Aq(C, s, await (o.isRTL == null ? void 0 : o.isRTL(f.floating)));
|
@@ -19894,7 +19894,7 @@ const GJ = function(c) {
|
|
19894
19894
|
};
|
19895
19895
|
const H = S.map((F) => {
|
19896
19896
|
const K = l2(F.placement);
|
19897
|
-
return [F.placement, K &&
|
19897
|
+
return [F.placement, K && m ? (
|
19898
19898
|
// Check along the mainAxis and main crossAxis side.
|
19899
19899
|
F.overflows.slice(0, 2).reduce((D, c1) => D + c1, 0)
|
19900
19900
|
) : (
|
@@ -19932,9 +19932,9 @@ const GJ = function(c) {
|
|
19932
19932
|
platform: o,
|
19933
19933
|
elements: f
|
19934
19934
|
} = e, {
|
19935
|
-
mainAxis:
|
19935
|
+
mainAxis: m = !0,
|
19936
19936
|
crossAxis: z = !0,
|
19937
|
-
fallbackPlacements:
|
19937
|
+
fallbackPlacements: d,
|
19938
19938
|
fallbackStrategy: h = "bestFit",
|
19939
19939
|
fallbackAxisSideDirection: b = "none",
|
19940
19940
|
flipAlignment: A = !0,
|
@@ -19942,11 +19942,11 @@ const GJ = function(c) {
|
|
19942
19942
|
} = e3(c, e);
|
19943
19943
|
if ((l = s.arrow) != null && l.alignmentOffset)
|
19944
19944
|
return {};
|
19945
|
-
const x = m2(t), C = m2(i) === i, v = await (o.isRTL == null ? void 0 : o.isRTL(f.floating)), N =
|
19946
|
-
!
|
19945
|
+
const x = m2(t), C = m2(i) === i, v = await (o.isRTL == null ? void 0 : o.isRTL(f.floating)), N = d || (C || !A ? [k4(i)] : BJ(i));
|
19946
|
+
!d && b !== "none" && N.push(...qJ(i, A, b, v));
|
19947
19947
|
const S = [i, ...N], y = await I0(e, _), H = [];
|
19948
19948
|
let V = ((a = s.flip) == null ? void 0 : a.overflows) || [];
|
19949
|
-
if (
|
19949
|
+
if (m && H.push(y[x]), z) {
|
19950
19950
|
const D = Aq(t, n, v);
|
19951
19951
|
H.push(y[D[0]], y[D[1]]);
|
19952
19952
|
}
|
@@ -19995,9 +19995,9 @@ async function QJ(c, e) {
|
|
19995
19995
|
placement: l,
|
19996
19996
|
platform: a,
|
19997
19997
|
elements: t
|
19998
|
-
} = c, s = await (a.isRTL == null ? void 0 : a.isRTL(t.floating)), n = m2(l), i = l2(l), o = u4(l) === "y", f = ["left", "top"].includes(n) ? -1 : 1,
|
19998
|
+
} = c, s = await (a.isRTL == null ? void 0 : a.isRTL(t.floating)), n = m2(l), i = l2(l), o = u4(l) === "y", f = ["left", "top"].includes(n) ? -1 : 1, m = s && o ? -1 : 1, z = e3(e, c);
|
19999
19999
|
let {
|
20000
|
-
mainAxis:
|
20000
|
+
mainAxis: d,
|
20001
20001
|
crossAxis: h,
|
20002
20002
|
alignmentAxis: b
|
20003
20003
|
} = typeof z == "number" ? {
|
@@ -20011,11 +20011,11 @@ async function QJ(c, e) {
|
|
20011
20011
|
...z
|
20012
20012
|
};
|
20013
20013
|
return i && typeof b == "number" && (h = i === "end" ? b * -1 : b), o ? {
|
20014
|
-
x: h *
|
20015
|
-
y:
|
20014
|
+
x: h * m,
|
20015
|
+
y: d * f
|
20016
20016
|
} : {
|
20017
|
-
x:
|
20018
|
-
y: h *
|
20017
|
+
x: d * f,
|
20018
|
+
y: h * m
|
20019
20019
|
};
|
20020
20020
|
}
|
20021
20021
|
const YJ = function(c) {
|
@@ -20068,19 +20068,19 @@ const YJ = function(c) {
|
|
20068
20068
|
} = e3(c, e), f = {
|
20069
20069
|
x: l,
|
20070
20070
|
y: a
|
20071
|
-
},
|
20072
|
-
let h = f[
|
20071
|
+
}, m = await I0(e, o), z = u4(m2(t)), d = Cq(z);
|
20072
|
+
let h = f[d], b = f[z];
|
20073
20073
|
if (s) {
|
20074
|
-
const _ =
|
20074
|
+
const _ = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", C = h + m[_], v = h - m[x];
|
20075
20075
|
h = p6(C, h, v);
|
20076
20076
|
}
|
20077
20077
|
if (n) {
|
20078
|
-
const _ = z === "y" ? "top" : "left", x = z === "y" ? "bottom" : "right", C = b +
|
20078
|
+
const _ = z === "y" ? "top" : "left", x = z === "y" ? "bottom" : "right", C = b + m[_], v = b - m[x];
|
20079
20079
|
b = p6(C, b, v);
|
20080
20080
|
}
|
20081
20081
|
const A = i.fn({
|
20082
20082
|
...e,
|
20083
|
-
[
|
20083
|
+
[d]: h,
|
20084
20084
|
[z]: b
|
20085
20085
|
});
|
20086
20086
|
return {
|
@@ -20106,17 +20106,17 @@ const YJ = function(c) {
|
|
20106
20106
|
apply: n = () => {
|
20107
20107
|
},
|
20108
20108
|
...i
|
20109
|
-
} = e3(c, e), o = await I0(e, i), f = m2(l),
|
20110
|
-
width:
|
20109
|
+
} = e3(c, e), o = await I0(e, i), f = m2(l), m = l2(l), z = u4(l) === "y", {
|
20110
|
+
width: d,
|
20111
20111
|
height: h
|
20112
20112
|
} = a.floating;
|
20113
20113
|
let b, A;
|
20114
|
-
f === "top" || f === "bottom" ? (b = f, A =
|
20115
|
-
const _ = h - o.top - o.bottom, x =
|
20114
|
+
f === "top" || f === "bottom" ? (b = f, A = m === (await (t.isRTL == null ? void 0 : t.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (A = f, b = m === "end" ? "top" : "bottom");
|
20115
|
+
const _ = h - o.top - o.bottom, x = d - o.left - o.right, C = J2(h - o[b], _), v = J2(d - o[A], x), N = !e.middlewareData.shift;
|
20116
20116
|
let S = C, y = v;
|
20117
|
-
if (z ? y =
|
20117
|
+
if (z ? y = m || N ? J2(v, x) : x : S = m || N ? J2(C, _) : _, N && !m) {
|
20118
20118
|
const V = U2(o.left, 0), k = U2(o.right, 0), F = U2(o.top, 0), K = U2(o.bottom, 0);
|
20119
|
-
z ? y =
|
20119
|
+
z ? y = d - 2 * (V !== 0 || k !== 0 ? V + k : U2(o.left, o.right)) : S = h - 2 * (F !== 0 || K !== 0 ? F + K : U2(o.top, o.bottom));
|
20120
20120
|
}
|
20121
20121
|
await n({
|
20122
20122
|
...e,
|
@@ -20124,7 +20124,7 @@ const YJ = function(c) {
|
|
20124
20124
|
availableHeight: S
|
20125
20125
|
});
|
20126
20126
|
const H = await t.getDimensions(s.floating);
|
20127
|
-
return
|
20127
|
+
return d !== H.width || h !== H.height ? {
|
20128
20128
|
reset: {
|
20129
20129
|
rects: !0
|
20130
20130
|
}
|
@@ -20204,17 +20204,17 @@ function q3(c, e, l, a) {
|
|
20204
20204
|
const n = c.getBoundingClientRect(), i = Sq(c);
|
20205
20205
|
let o = Vq;
|
20206
20206
|
e && (a ? V2(a) && (o = r3(a)) : o = r3(c));
|
20207
|
-
const f = i ? K1(i) : window,
|
20208
|
-
let z = (n.left + (
|
20207
|
+
const f = i ? K1(i) : window, m = !kq() && l;
|
20208
|
+
let z = (n.left + (m && ((t = f.visualViewport) == null ? void 0 : t.offsetLeft) || 0)) / o.x, d = (n.top + (m && ((s = f.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / o.y, h = n.width / o.x, b = n.height / o.y;
|
20209
20209
|
if (i) {
|
20210
20210
|
const A = K1(i), _ = a && V2(a) ? K1(a) : a;
|
20211
20211
|
let x = A.frameElement;
|
20212
20212
|
for (; x && a && _ !== A; ) {
|
20213
20213
|
const C = r3(x), v = x.getBoundingClientRect(), N = getComputedStyle(x);
|
20214
|
-
v.x += (x.clientLeft + parseFloat(N.paddingLeft)) * C.x, v.y += (x.clientTop + parseFloat(N.paddingTop)) * C.y, z *= C.x,
|
20214
|
+
v.x += (x.clientLeft + parseFloat(N.paddingLeft)) * C.x, v.y += (x.clientTop + parseFloat(N.paddingTop)) * C.y, z *= C.x, d *= C.y, h *= C.x, b *= C.y, z += v.x, d += v.y, x = K1(x).frameElement;
|
20215
20215
|
}
|
20216
20216
|
}
|
20217
|
-
return { width: h, height: b, top:
|
20217
|
+
return { width: h, height: b, top: d, right: z + h, bottom: d + b, left: z, x: z, y: d };
|
20218
20218
|
}
|
20219
20219
|
function w2(c) {
|
20220
20220
|
return ((yq(c) ? c.ownerDocument : c.document) || window.document).documentElement;
|
@@ -20243,21 +20243,21 @@ function V4(c, e) {
|
|
20243
20243
|
function as(c, e, l) {
|
20244
20244
|
return e === "viewport" ? E3(function(a, t) {
|
20245
20245
|
const s = K1(a), n = w2(a), i = s.visualViewport;
|
20246
|
-
let o = n.clientWidth, f = n.clientHeight,
|
20246
|
+
let o = n.clientWidth, f = n.clientHeight, m = 0, z = 0;
|
20247
20247
|
if (i) {
|
20248
20248
|
o = i.width, f = i.height;
|
20249
|
-
const
|
20250
|
-
(
|
20249
|
+
const d = kq();
|
20250
|
+
(d || !d && t === "fixed") && (m = i.offsetLeft, z = i.offsetTop);
|
20251
20251
|
}
|
20252
|
-
return { width: o, height: f, x:
|
20252
|
+
return { width: o, height: f, x: m, y: z };
|
20253
20253
|
}(c, l)) : V2(e) ? E3(function(a, t) {
|
20254
20254
|
const s = q3(a, !0, t === "fixed"), n = s.top + a.clientTop, i = s.left + a.clientLeft, o = u2(a) ? r3(a) : { x: 1, y: 1 };
|
20255
20255
|
return { width: a.clientWidth * o.x, height: a.clientHeight * o.y, x: i * o.x, y: n * o.y };
|
20256
20256
|
}(e, l)) : E3(function(a) {
|
20257
20257
|
const t = w2(a), s = P0(a), n = a.ownerDocument.body, i = T3(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), o = T3(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
20258
20258
|
let f = -s.scrollLeft + wq(a);
|
20259
|
-
const
|
20260
|
-
return f2(n).direction === "rtl" && (f += T3(t.clientWidth, n.clientWidth) - i), { width: i, height: o, x: f, y:
|
20259
|
+
const m = -s.scrollTop;
|
20260
|
+
return f2(n).direction === "rtl" && (f += T3(t.clientWidth, n.clientWidth) - i), { width: i, height: o, x: f, y: m };
|
20261
20261
|
}(w2(c)));
|
20262
20262
|
}
|
20263
20263
|
function ts(c) {
|
@@ -20288,19 +20288,19 @@ function eG(c, e, l) {
|
|
20288
20288
|
}
|
20289
20289
|
const lG = { getClippingRect: function(c) {
|
20290
20290
|
let { element: e, boundary: l, rootBoundary: a, strategy: t } = c;
|
20291
|
-
const s = l === "clippingAncestors" ? function(f,
|
20292
|
-
const z =
|
20291
|
+
const s = l === "clippingAncestors" ? function(f, m) {
|
20292
|
+
const z = m.get(f);
|
20293
20293
|
if (z) return z;
|
20294
|
-
let
|
20294
|
+
let d = V4(f).filter((_) => V2(_) && I2(_) !== "body"), h = null;
|
20295
20295
|
const b = f2(f).position === "fixed";
|
20296
20296
|
let A = b ? j3(f) : f;
|
20297
20297
|
for (; V2(A) && !ct(A); ) {
|
20298
20298
|
const _ = f2(A), x = z6(A);
|
20299
|
-
(b ? x || h : x || _.position !== "static" || !h || !["absolute", "fixed"].includes(h.position)) ? h = _ :
|
20299
|
+
(b ? x || h : x || _.position !== "static" || !h || !["absolute", "fixed"].includes(h.position)) ? h = _ : d = d.filter((C) => C !== A), A = j3(A);
|
20300
20300
|
}
|
20301
|
-
return
|
20302
|
-
}(e, this._c) : [].concat(l), n = [...s, a], i = n[0], o = n.reduce((f,
|
20303
|
-
const z = as(e,
|
20301
|
+
return m.set(f, d), d;
|
20302
|
+
}(e, this._c) : [].concat(l), n = [...s, a], i = n[0], o = n.reduce((f, m) => {
|
20303
|
+
const z = as(e, m, t);
|
20304
20304
|
return f.top = T3(z.top, f.top), f.right = es(z.right, f.right), f.bottom = es(z.bottom, f.bottom), f.left = T3(z.left, f.left), f;
|
20305
20305
|
}, as(e, i, t));
|
20306
20306
|
return { width: o.right - o.left, height: o.bottom - o.top, x: o.left, y: o.top };
|
@@ -21559,9 +21559,9 @@ function CG(c, e, l, a, t, s) {
|
|
21559
21559
|
default: a1(({
|
21560
21560
|
popperId: o,
|
21561
21561
|
isShown: f,
|
21562
|
-
shouldMountContent:
|
21562
|
+
shouldMountContent: m,
|
21563
21563
|
skipTransition: z,
|
21564
|
-
autoHide:
|
21564
|
+
autoHide: d,
|
21565
21565
|
show: h,
|
21566
21566
|
hide: b,
|
21567
21567
|
handleResize: A,
|
@@ -21579,9 +21579,9 @@ function CG(c, e, l, a, t, s) {
|
|
21579
21579
|
"popper-id": o,
|
21580
21580
|
theme: c.finalTheme,
|
21581
21581
|
shown: f,
|
21582
|
-
mounted:
|
21582
|
+
mounted: m,
|
21583
21583
|
"skip-transition": z,
|
21584
|
-
"auto-hide":
|
21584
|
+
"auto-hide": d,
|
21585
21585
|
"handle-resize": A,
|
21586
21586
|
classes: x,
|
21587
21587
|
result: C,
|
@@ -21705,9 +21705,9 @@ function SG(c, e, l, a, t, s) {
|
|
21705
21705
|
default: a1(({
|
21706
21706
|
popperId: o,
|
21707
21707
|
isShown: f,
|
21708
|
-
shouldMountContent:
|
21708
|
+
shouldMountContent: m,
|
21709
21709
|
skipTransition: z,
|
21710
|
-
autoHide:
|
21710
|
+
autoHide: d,
|
21711
21711
|
hide: h,
|
21712
21712
|
handleResize: b,
|
21713
21713
|
onResize: A,
|
@@ -21722,9 +21722,9 @@ function SG(c, e, l, a, t, s) {
|
|
21722
21722
|
"popper-id": o,
|
21723
21723
|
theme: c.theme,
|
21724
21724
|
shown: f,
|
21725
|
-
mounted:
|
21725
|
+
mounted: m,
|
21726
21726
|
"skip-transition": z,
|
21727
|
-
"auto-hide":
|
21727
|
+
"auto-hide": d,
|
21728
21728
|
"handle-resize": b,
|
21729
21729
|
classes: _,
|
21730
21730
|
result: x,
|
@@ -22898,10 +22898,10 @@ function xs(c, e, l) {
|
|
22898
22898
|
};
|
22899
22899
|
}
|
22900
22900
|
var c6 = function(e, l, a, t) {
|
22901
|
-
var s = Object.keys(e), n = s.length, i = l, o, f,
|
22902
|
-
for (a === void 0 ? (o = 1,
|
22903
|
-
f = s[o],
|
22904
|
-
return
|
22901
|
+
var s = Object.keys(e), n = s.length, i = l, o, f, m;
|
22902
|
+
for (a === void 0 ? (o = 1, m = e[s[0]]) : (o = 0, m = a); o < n; o++)
|
22903
|
+
f = s[o], m = i(m, e[f], f, e);
|
22904
|
+
return m;
|
22905
22905
|
};
|
22906
22906
|
function CZ(c) {
|
22907
22907
|
const e = [];
|
@@ -23060,12 +23060,12 @@ function $0(c) {
|
|
23060
23060
|
(c.includes(a[o]) || c.some((f) => wZ[o].includes(f))) && (s = o);
|
23061
23061
|
});
|
23062
23062
|
const i = c.reduce((o, f) => {
|
23063
|
-
const
|
23063
|
+
const m = kZ(G.cssPrefix, f);
|
23064
23064
|
if (W2[f] ? (f = xZ[s].includes(f) ? sZ[s][f] : f, t = f, o.prefix = f) : NZ[s].indexOf(f) > -1 ? (t = f, o.prefix = B0(f, {
|
23065
23065
|
family: s
|
23066
|
-
})) :
|
23067
|
-
const z = t === "fa" ? Lj(o.iconName) : {},
|
23068
|
-
z.prefix && (t = null), o.iconName = z.iconName ||
|
23066
|
+
})) : m ? o.iconName = m : f !== G.replacementClass && !n.some((z) => f === a[z]) && o.rest.push(f), !l && o.prefix && o.iconName) {
|
23067
|
+
const z = t === "fa" ? Lj(o.iconName) : {}, d = S2(o.prefix, o.iconName);
|
23068
|
+
z.prefix && (t = null), o.iconName = z.iconName || d || o.iconName, o.prefix = z.prefix || o.prefix, o.prefix === "far" && !W2.far && W2.fas && !G.autoFetchSvg && (o.prefix = "fas");
|
23069
23069
|
}
|
23070
23070
|
return o;
|
23071
23071
|
}, rt());
|
@@ -23305,26 +23305,26 @@ function ft(c) {
|
|
23305
23305
|
title: i,
|
23306
23306
|
maskId: o,
|
23307
23307
|
titleId: f,
|
23308
|
-
extra:
|
23308
|
+
extra: m,
|
23309
23309
|
watchable: z = !1
|
23310
23310
|
} = c, {
|
23311
|
-
width:
|
23311
|
+
width: d,
|
23312
23312
|
height: h
|
23313
|
-
} = l.found ? l : e, b = a === "fak", A = [G.replacementClass, t ? "".concat(G.cssPrefix, "-").concat(t) : ""].filter((S) =>
|
23313
|
+
} = l.found ? l : e, b = a === "fak", A = [G.replacementClass, t ? "".concat(G.cssPrefix, "-").concat(t) : ""].filter((S) => m.classes.indexOf(S) === -1).filter((S) => S !== "" || !!S).concat(m.classes).join(" ");
|
23314
23314
|
let _ = {
|
23315
23315
|
children: [],
|
23316
23316
|
attributes: {
|
23317
|
-
...
|
23317
|
+
...m.attributes,
|
23318
23318
|
"data-prefix": a,
|
23319
23319
|
"data-icon": t,
|
23320
23320
|
class: A,
|
23321
|
-
role:
|
23321
|
+
role: m.attributes.role || "img",
|
23322
23322
|
xmlns: "http://www.w3.org/2000/svg",
|
23323
|
-
viewBox: "0 0 ".concat(
|
23323
|
+
viewBox: "0 0 ".concat(d, " ").concat(h)
|
23324
23324
|
}
|
23325
23325
|
};
|
23326
|
-
const x = b && !~
|
23327
|
-
width: "".concat(
|
23326
|
+
const x = b && !~m.classes.indexOf("fa-fw") ? {
|
23327
|
+
width: "".concat(d / h * 16 * 0.0625, "em")
|
23328
23328
|
} : {};
|
23329
23329
|
z && (_.attributes[X2] = ""), i && (_.children.push({
|
23330
23330
|
tag: "title",
|
@@ -23344,7 +23344,7 @@ function ft(c) {
|
|
23344
23344
|
symbol: n,
|
23345
23345
|
styles: {
|
23346
23346
|
...x,
|
23347
|
-
...
|
23347
|
+
...m.styles
|
23348
23348
|
}
|
23349
23349
|
}, {
|
23350
23350
|
children: v,
|
@@ -23384,8 +23384,8 @@ function ks(c) {
|
|
23384
23384
|
width: l,
|
23385
23385
|
height: a
|
23386
23386
|
}), f["-webkit-transform"] = f.transform);
|
23387
|
-
const
|
23388
|
-
|
23387
|
+
const m = F0(f);
|
23388
|
+
m.length > 0 && (o.style = m);
|
23389
23389
|
const z = [];
|
23390
23390
|
return z.push({
|
23391
23391
|
tag: "span",
|
@@ -23714,9 +23714,9 @@ d2 = [...d2];
|
|
23714
23714
|
function Hs(c) {
|
23715
23715
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
23716
23716
|
if (!C2) return Promise.resolve();
|
23717
|
-
const l = C1.documentElement.classList, a = (
|
23717
|
+
const l = C1.documentElement.classList, a = (m) => l.add("".concat(As, "-").concat(m)), t = (m) => l.remove("".concat(As, "-").concat(m)), s = G.autoFetchSvg ? d2 : aj.map((m) => "fa-".concat(m)).concat(Object.keys(lQ));
|
23718
23718
|
s.includes("fa") || s.push("fa");
|
23719
|
-
const n = [".".concat(sj, ":not([").concat(X2, "])")].concat(s.map((
|
23719
|
+
const n = [".".concat(sj, ":not([").concat(X2, "])")].concat(s.map((m) => ".".concat(m, ":not([").concat(X2, "])"))).join(", ");
|
23720
23720
|
if (n.length === 0)
|
23721
23721
|
return Promise.resolve();
|
23722
23722
|
let i = [];
|
@@ -23728,22 +23728,22 @@ function Hs(c) {
|
|
23728
23728
|
a("pending"), t("complete");
|
23729
23729
|
else
|
23730
23730
|
return Promise.resolve();
|
23731
|
-
const o = ut.begin("onTree"), f = i.reduce((
|
23731
|
+
const o = ut.begin("onTree"), f = i.reduce((m, z) => {
|
23732
23732
|
try {
|
23733
|
-
const
|
23734
|
-
|
23735
|
-
} catch (
|
23736
|
-
lj ||
|
23733
|
+
const d = Aj(z);
|
23734
|
+
d && m.push(d);
|
23735
|
+
} catch (d) {
|
23736
|
+
lj || d.name === "MissingIcon" && console.error(d);
|
23737
23737
|
}
|
23738
|
-
return
|
23738
|
+
return m;
|
23739
23739
|
}, []);
|
23740
|
-
return new Promise((
|
23741
|
-
Promise.all(f).then((
|
23742
|
-
vj(
|
23743
|
-
a("active"), a("complete"), t("pending"), typeof e == "function" && e(), o(),
|
23740
|
+
return new Promise((m, z) => {
|
23741
|
+
Promise.all(f).then((d) => {
|
23742
|
+
vj(d, () => {
|
23743
|
+
a("active"), a("complete"), t("pending"), typeof e == "function" && e(), o(), m();
|
23744
23744
|
});
|
23745
|
-
}).catch((
|
23746
|
-
o(), z(
|
23745
|
+
}).catch((d) => {
|
23746
|
+
o(), z(d);
|
23747
23747
|
});
|
23748
23748
|
});
|
23749
23749
|
}
|
@@ -23777,12 +23777,12 @@ const sQ = function(c) {
|
|
23777
23777
|
titleId: i = null,
|
23778
23778
|
classes: o = [],
|
23779
23779
|
attributes: f = {},
|
23780
|
-
styles:
|
23780
|
+
styles: m = {}
|
23781
23781
|
} = e;
|
23782
23782
|
if (!c) return;
|
23783
23783
|
const {
|
23784
23784
|
prefix: z,
|
23785
|
-
iconName:
|
23785
|
+
iconName: d,
|
23786
23786
|
icon: h
|
23787
23787
|
} = c;
|
23788
23788
|
return q0({
|
@@ -23802,7 +23802,7 @@ const sQ = function(c) {
|
|
23802
23802
|
}
|
23803
23803
|
},
|
23804
23804
|
prefix: z,
|
23805
|
-
iconName:
|
23805
|
+
iconName: d,
|
23806
23806
|
transform: {
|
23807
23807
|
...i2,
|
23808
23808
|
...l
|
@@ -23813,7 +23813,7 @@ const sQ = function(c) {
|
|
23813
23813
|
titleId: i,
|
23814
23814
|
extra: {
|
23815
23815
|
attributes: f,
|
23816
|
-
styles:
|
23816
|
+
styles: m,
|
23817
23817
|
classes: o
|
23818
23818
|
}
|
23819
23819
|
})));
|
@@ -23848,10 +23848,10 @@ var nQ = {
|
|
23848
23848
|
transform: i,
|
23849
23849
|
symbol: o,
|
23850
23850
|
mask: f,
|
23851
|
-
maskId:
|
23851
|
+
maskId: m,
|
23852
23852
|
extra: z
|
23853
23853
|
} = l;
|
23854
|
-
return new Promise((
|
23854
|
+
return new Promise((d, h) => {
|
23855
23855
|
Promise.all([S6(a, n), f.iconName ? S6(f.iconName, f.prefix) : Promise.resolve({
|
23856
23856
|
found: !1,
|
23857
23857
|
width: 512,
|
@@ -23859,7 +23859,7 @@ var nQ = {
|
|
23859
23859
|
icon: {}
|
23860
23860
|
})]).then((b) => {
|
23861
23861
|
let [A, _] = b;
|
23862
|
-
|
23862
|
+
d([e, ft({
|
23863
23863
|
icons: {
|
23864
23864
|
main: A,
|
23865
23865
|
mask: _
|
@@ -23868,7 +23868,7 @@ var nQ = {
|
|
23868
23868
|
iconName: a,
|
23869
23869
|
transform: i,
|
23870
23870
|
symbol: o,
|
23871
|
-
maskId:
|
23871
|
+
maskId: m,
|
23872
23872
|
title: t,
|
23873
23873
|
titleId: s,
|
23874
23874
|
extra: z,
|
@@ -24044,16 +24044,16 @@ function Ps(c, e) {
|
|
24044
24044
|
return new Promise((a, t) => {
|
24045
24045
|
if (c.getAttribute(l) !== null)
|
24046
24046
|
return a();
|
24047
|
-
const n = C3(c.children).filter((
|
24047
|
+
const n = C3(c.children).filter((d) => d.getAttribute(b6) === e)[0], i = O2.getComputedStyle(c, e), o = i.getPropertyValue("font-family"), f = o.match(iZ), m = i.getPropertyValue("font-weight"), z = i.getPropertyValue("content");
|
24048
24048
|
if (n && !f)
|
24049
24049
|
return c.removeChild(n), a();
|
24050
24050
|
if (f && z !== "none" && z !== "") {
|
24051
|
-
const
|
24052
|
-
let h = dQ(o,
|
24051
|
+
const d = i.getPropertyValue("content");
|
24052
|
+
let h = dQ(o, m);
|
24053
24053
|
const {
|
24054
24054
|
value: b,
|
24055
24055
|
isSecondary: A
|
24056
|
-
} = mQ(
|
24056
|
+
} = mQ(d), _ = f[0].startsWith("FontAwesome");
|
24057
24057
|
let x = ot(h, b), C = x;
|
24058
24058
|
if (_) {
|
24059
24059
|
const v = VZ(b);
|
@@ -24219,31 +24219,31 @@ var MQ = {
|
|
24219
24219
|
} = e;
|
24220
24220
|
const n = {
|
24221
24221
|
transform: "translate(".concat(t / 2, " 256)")
|
24222
|
-
}, i = "translate(".concat(a.x * 32, ", ").concat(a.y * 32, ") "), o = "scale(".concat(a.size / 16 * (a.flipX ? -1 : 1), ", ").concat(a.size / 16 * (a.flipY ? -1 : 1), ") "), f = "rotate(".concat(a.rotate, " 0 0)"),
|
24222
|
+
}, i = "translate(".concat(a.x * 32, ", ").concat(a.y * 32, ") "), o = "scale(".concat(a.size / 16 * (a.flipX ? -1 : 1), ", ").concat(a.size / 16 * (a.flipY ? -1 : 1), ") "), f = "rotate(".concat(a.rotate, " 0 0)"), m = {
|
24223
24223
|
transform: "".concat(i, " ").concat(o, " ").concat(f)
|
24224
24224
|
}, z = {
|
24225
24225
|
transform: "translate(".concat(s / 2 * -1, " -256)")
|
24226
|
-
},
|
24226
|
+
}, d = {
|
24227
24227
|
outer: n,
|
24228
|
-
inner:
|
24228
|
+
inner: m,
|
24229
24229
|
path: z
|
24230
24230
|
};
|
24231
24231
|
return {
|
24232
24232
|
tag: "g",
|
24233
24233
|
attributes: {
|
24234
|
-
...
|
24234
|
+
...d.outer
|
24235
24235
|
},
|
24236
24236
|
children: [{
|
24237
24237
|
tag: "g",
|
24238
24238
|
attributes: {
|
24239
|
-
...
|
24239
|
+
...d.inner
|
24240
24240
|
},
|
24241
24241
|
children: [{
|
24242
24242
|
tag: l.icon.tag,
|
24243
24243
|
children: l.icon.children,
|
24244
24244
|
attributes: {
|
24245
24245
|
...l.icon.attributes,
|
24246
|
-
...
|
24246
|
+
...d.path
|
24247
24247
|
}
|
24248
24248
|
}]
|
24249
24249
|
}]
|
@@ -24287,11 +24287,11 @@ var bQ = {
|
|
24287
24287
|
width: o,
|
24288
24288
|
icon: f
|
24289
24289
|
} = t, {
|
24290
|
-
width:
|
24290
|
+
width: m,
|
24291
24291
|
icon: z
|
24292
|
-
} = s,
|
24292
|
+
} = s, d = LZ({
|
24293
24293
|
transform: i,
|
24294
|
-
containerWidth:
|
24294
|
+
containerWidth: m,
|
24295
24295
|
iconWidth: o
|
24296
24296
|
}), h = {
|
24297
24297
|
tag: "rect",
|
@@ -24304,20 +24304,20 @@ var bQ = {
|
|
24304
24304
|
} : {}, A = {
|
24305
24305
|
tag: "g",
|
24306
24306
|
attributes: {
|
24307
|
-
...
|
24307
|
+
...d.inner
|
24308
24308
|
},
|
24309
24309
|
children: [Bs({
|
24310
24310
|
tag: f.tag,
|
24311
24311
|
attributes: {
|
24312
24312
|
...f.attributes,
|
24313
|
-
...
|
24313
|
+
...d.path
|
24314
24314
|
},
|
24315
24315
|
...b
|
24316
24316
|
})]
|
24317
24317
|
}, _ = {
|
24318
24318
|
tag: "g",
|
24319
24319
|
attributes: {
|
24320
|
-
...
|
24320
|
+
...d.outer
|
24321
24321
|
},
|
24322
24322
|
children: [A]
|
24323
24323
|
}, x = "mask-".concat(n || G3()), C = "clip-".concat(n || G3()), v = {
|
@@ -24470,12 +24470,12 @@ const xQ = W({
|
|
24470
24470
|
const e = (f) => $s.icon ? $s.icon(f) : null, l = {
|
24471
24471
|
...dH,
|
24472
24472
|
...vq
|
24473
|
-
}, a = (f,
|
24473
|
+
}, a = (f, m = {}) => {
|
24474
24474
|
const z = (f.children || []).map(
|
24475
24475
|
(b) => a(b)
|
24476
24476
|
);
|
24477
24477
|
if (f.prefix) return;
|
24478
|
-
const
|
24478
|
+
const d = Object.keys(f.attributes || {}).reduce(
|
24479
24479
|
(b, A) => {
|
24480
24480
|
const _ = f.attributes[A];
|
24481
24481
|
return b.attrs[A] = _, b;
|
@@ -24483,11 +24483,11 @@ const xQ = W({
|
|
24483
24483
|
{
|
24484
24484
|
attrs: {}
|
24485
24485
|
}
|
24486
|
-
), { ...h } =
|
24486
|
+
), { ...h } = m;
|
24487
24487
|
return O4(
|
24488
24488
|
f.tag,
|
24489
24489
|
{
|
24490
|
-
...
|
24490
|
+
...d.attrs,
|
24491
24491
|
...h
|
24492
24492
|
},
|
24493
24493
|
z
|
@@ -24855,11 +24855,11 @@ const xQ = W({
|
|
24855
24855
|
}, f = () => {
|
24856
24856
|
const z = l.modelValue + l.step;
|
24857
24857
|
(l.max === null || z <= l.max) && a("update:modelValue", z);
|
24858
|
-
},
|
24858
|
+
}, m = () => {
|
24859
24859
|
const z = l.modelValue - l.step;
|
24860
24860
|
(l.min === null || z >= l.min) && a("update:modelValue", z);
|
24861
24861
|
};
|
24862
|
-
return (z,
|
24862
|
+
return (z, d) => {
|
24863
24863
|
const h = P("AVIcon"), b = p2("tooltip");
|
24864
24864
|
return u(), p("div", BQ, [
|
24865
24865
|
c.inputLabel ? (u(), p("label", {
|
@@ -24932,7 +24932,7 @@ const xQ = W({
|
|
24932
24932
|
})
|
24933
24933
|
]),
|
24934
24934
|
r("button", {
|
24935
|
-
onClick:
|
24935
|
+
onClick: m,
|
24936
24936
|
class: "AVNumberInput--button",
|
24937
24937
|
"data-test": "input-controller-minus"
|
24938
24938
|
}, [
|
@@ -25432,8 +25432,8 @@ const xQ = W({
|
|
25432
25432
|
const o = () => {
|
25433
25433
|
l.disabled || (t.active = !t.active);
|
25434
25434
|
};
|
25435
|
-
return (f,
|
25436
|
-
const z = P("AVIcon"),
|
25435
|
+
return (f, m) => {
|
25436
|
+
const z = P("AVIcon"), d = P("AVDropdownItem"), h = P("AVDropdownContent"), b = p2("tooltip");
|
25437
25437
|
return u(), p("div", NY, [
|
25438
25438
|
c.inputLabel ? (u(), p("label", {
|
25439
25439
|
key: 0,
|
@@ -25492,7 +25492,7 @@ const xQ = W({
|
|
25492
25492
|
], 10, kY),
|
25493
25493
|
w(h, null, {
|
25494
25494
|
default: a1(() => [
|
25495
|
-
(u(!0), p(Y, null, r1(s.value, (A) => (u(), Z(
|
25495
|
+
(u(!0), p(Y, null, r1(s.value, (A) => (u(), Z(d, {
|
25496
25496
|
key: A,
|
25497
25497
|
optionLabel: A.label,
|
25498
25498
|
onOnSelected: (_) => i(A.value),
|
@@ -25757,11 +25757,11 @@ const xQ = W({
|
|
25757
25757
|
);
|
25758
25758
|
const o = e, f = () => {
|
25759
25759
|
i.value = [...n.value.files], o("update", i.value);
|
25760
|
-
},
|
25760
|
+
}, m = (y) => {
|
25761
25761
|
y.preventDefault(), !t.disabled && (s.value = !0);
|
25762
25762
|
}, z = () => {
|
25763
25763
|
s.value = !1;
|
25764
|
-
},
|
25764
|
+
}, d = (y) => {
|
25765
25765
|
const H = Array.from(y), V = new DataTransfer();
|
25766
25766
|
for (let k of H) {
|
25767
25767
|
const F = k.name.split(".").pop();
|
@@ -25793,7 +25793,7 @@ const xQ = W({
|
|
25793
25793
|
}
|
25794
25794
|
}, x = (y) => y.split("/").pop(), C = (y) => {
|
25795
25795
|
if (y.preventDefault(), !t.disabled) {
|
25796
|
-
if (n.value.files =
|
25796
|
+
if (n.value.files = d(Array.from(y.dataTransfer.files)), !n.value.files.length) {
|
25797
25797
|
s.value = !1;
|
25798
25798
|
return;
|
25799
25799
|
}
|
@@ -25835,7 +25835,7 @@ const xQ = W({
|
|
25835
25835
|
error: c.error,
|
25836
25836
|
disabled: c.disabled
|
25837
25837
|
}]),
|
25838
|
-
onDragover:
|
25838
|
+
onDragover: m,
|
25839
25839
|
onDragleave: z,
|
25840
25840
|
onDrop: C
|
25841
25841
|
}, [
|
@@ -26221,10 +26221,10 @@ const xQ = W({
|
|
26221
26221
|
() => l.type === "step" ? l.stepIndex : l.icon
|
26222
26222
|
), f = () => {
|
26223
26223
|
l.disabled || (t.value = !t.value);
|
26224
|
-
},
|
26224
|
+
}, m = () => {
|
26225
26225
|
a("onClick", l.reference);
|
26226
26226
|
};
|
26227
|
-
return (z,
|
26227
|
+
return (z, d) => s.value === "link" ? (u(), p("a", {
|
26228
26228
|
key: 0,
|
26229
26229
|
href: n.value,
|
26230
26230
|
class: $(["AVSidebarItem", {
|
@@ -26252,7 +26252,7 @@ const xQ = W({
|
|
26252
26252
|
disabled: c.disabled
|
26253
26253
|
}]),
|
26254
26254
|
disabled: c.disabled,
|
26255
|
-
onClick:
|
26255
|
+
onClick: m,
|
26256
26256
|
onMouseenter: f,
|
26257
26257
|
onMouseleave: f,
|
26258
26258
|
"aria-label": c.label
|
@@ -26395,8 +26395,8 @@ const xQ = W({
|
|
26395
26395
|
], 8, GK),
|
26396
26396
|
w(o, null, {
|
26397
26397
|
default: a1(() => [
|
26398
|
-
(u(!0), p(Y, null, r1(c.options, (f,
|
26399
|
-
key:
|
26398
|
+
(u(!0), p(Y, null, r1(c.options, (f, m) => (u(), Z(i, {
|
26399
|
+
key: m,
|
26400
26400
|
optionLabel: f.label,
|
26401
26401
|
href: f.href,
|
26402
26402
|
destructive: f.destructive,
|
@@ -26527,7 +26527,7 @@ const xQ = W({
|
|
26527
26527
|
}
|
26528
26528
|
}
|
26529
26529
|
return (o, f) => {
|
26530
|
-
const
|
26530
|
+
const m = P("AVIcon"), z = P("AVSpinner");
|
26531
26531
|
return u(), p("button", {
|
26532
26532
|
disabled: n.value,
|
26533
26533
|
onClick: i,
|
@@ -26550,7 +26550,7 @@ const xQ = W({
|
|
26550
26550
|
f[0] || (f[0] = o1("Working..."))
|
26551
26551
|
], !0)
|
26552
26552
|
], 64)) : g1(o.$slots, "default", { key: 0 }, () => [
|
26553
|
-
s.value ? (u(), Z(
|
26553
|
+
s.value ? (u(), Z(m, {
|
26554
26554
|
key: 0,
|
26555
26555
|
icon: s.value,
|
26556
26556
|
class: "AVAsyncButton--icon",
|
@@ -26585,23 +26585,23 @@ const xQ = W({
|
|
26585
26585
|
h1(() => n());
|
26586
26586
|
const n = () => {
|
26587
26587
|
a.value = [], l.options.map(
|
26588
|
-
(
|
26588
|
+
(d) => a.value.push({ value: d, selected: !1 })
|
26589
26589
|
), l.selected ? i(l.selected) : a.value[0].selected = !0, l.disabled && o();
|
26590
|
-
}, i = (
|
26590
|
+
}, i = (d) => {
|
26591
26591
|
a.value.map((h) => {
|
26592
|
-
h.value ===
|
26592
|
+
h.value === d ? (h.selected = !0, t.value = h.value) : h.selected = !1;
|
26593
26593
|
});
|
26594
26594
|
}, o = () => {
|
26595
|
-
if (a.value.map((
|
26596
|
-
a.value.map((
|
26595
|
+
if (a.value.map((d) => d.disabled = !1), l.disabled)
|
26596
|
+
a.value.map((d) => {
|
26597
26597
|
l.disabled.map(
|
26598
|
-
(h) => h ===
|
26598
|
+
(h) => h === d.value ? d.disabled = !0 : d
|
26599
26599
|
);
|
26600
26600
|
});
|
26601
26601
|
else
|
26602
26602
|
return;
|
26603
|
-
}, f = e,
|
26604
|
-
i(
|
26603
|
+
}, f = e, m = (d) => {
|
26604
|
+
i(d), z();
|
26605
26605
|
}, z = () => {
|
26606
26606
|
f("update", t.value, a.value);
|
26607
26607
|
};
|
@@ -26616,12 +26616,12 @@ const xQ = W({
|
|
26616
26616
|
), s1(
|
26617
26617
|
() => l.disabled,
|
26618
26618
|
() => o()
|
26619
|
-
), (
|
26619
|
+
), (d, h) => (u(), p("div", iX, [
|
26620
26620
|
(u(!0), p(Y, null, r1(a.value, (b) => (u(), p("button", {
|
26621
26621
|
key: b.value,
|
26622
26622
|
class: $(`AVTabSwitcher--button ${s.value} ${b.selected ? "AVTabSwitcher--button-active" : ""} ${b.disabled ? "disabled" : ""}`),
|
26623
26623
|
disabled: b.disabled,
|
26624
|
-
onClick: (A) =>
|
26624
|
+
onClick: (A) => m(b.value)
|
26625
26625
|
}, M(b.value), 11, oX))), 128))
|
26626
26626
|
]));
|
26627
26627
|
}
|
@@ -26720,8 +26720,8 @@ const xQ = W({
|
|
26720
26720
|
}, 1e3);
|
26721
26721
|
}, s = e, n = I(() => 100 - a.value / l.timeout * 100), i = I(
|
26722
26722
|
() => Math.floor((l.timeout - a.value) / 60)
|
26723
|
-
), o = I(() => (l.timeout - a.value) % 60), f = I(() => i.value % 60),
|
26724
|
-
return (z,
|
26723
|
+
), o = I(() => (l.timeout - a.value) % 60), f = I(() => i.value % 60), m = I(() => o.value < 10 ? `${f.value}:0${o.value}` : `${f.value}:${o.value}`);
|
26724
|
+
return (z, d) => (u(), p(Y, null, [
|
26725
26725
|
r("div", {
|
26726
26726
|
class: "AVTimedCard",
|
26727
26727
|
style: O1(`width: ${c.customWidth}px`)
|
@@ -26746,7 +26746,7 @@ const xQ = W({
|
|
26746
26746
|
"data-test": "help-text"
|
26747
26747
|
}, [
|
26748
26748
|
o1(M(c.expirationMessage), 1),
|
26749
|
-
r("strong", null, M(
|
26749
|
+
r("strong", null, M(m.value), 1)
|
26750
26750
|
], 2)
|
26751
26751
|
], 64));
|
26752
26752
|
}
|
@@ -26844,9 +26844,9 @@ const xQ = W({
|
|
26844
26844
|
return (n, i) => {
|
26845
26845
|
const o = P("AVIcon");
|
26846
26846
|
return u(), p("div", _X, [
|
26847
|
-
(u(!0), p(Y, null, r1(l.value, (f,
|
26848
|
-
key:
|
26849
|
-
class: $(`${l.value.length !==
|
26847
|
+
(u(!0), p(Y, null, r1(l.value, (f, m) => (u(), p("div", {
|
26848
|
+
key: m,
|
26849
|
+
class: $(`${l.value.length !== m + 1 ? "AVSteps--step" : "AVSteps--step-last"} ${f.active ? "AVSteps--step-active" : ""}`),
|
26850
26850
|
"data-test": "step"
|
26851
26851
|
}, [
|
26852
26852
|
f.done ? (u(), p("div", xX, [
|
@@ -26857,10 +26857,10 @@ const xQ = W({
|
|
26857
26857
|
])) : (u(), p("div", {
|
26858
26858
|
key: 1,
|
26859
26859
|
class: $(["AVSteps--step--number-container", {
|
26860
|
-
"AVSteps--step-circle": l.value.length !==
|
26860
|
+
"AVSteps--step-circle": l.value.length !== m + 1,
|
26861
26861
|
"AVSteps--step--number-container-active": f.active
|
26862
26862
|
}])
|
26863
|
-
}, M(
|
26863
|
+
}, M(m + 1), 3)),
|
26864
26864
|
r("span", {
|
26865
26865
|
class: $(["AVSteps--step-label", { "AVSteps--step-label-active": f.active }])
|
26866
26866
|
}, M(f.value), 3)
|
@@ -26990,7 +26990,7 @@ const xQ = W({
|
|
26990
26990
|
tabindex: 0
|
26991
26991
|
} : {});
|
26992
26992
|
return (o, f) => {
|
26993
|
-
const
|
26993
|
+
const m = P("AVOptionSelect");
|
26994
26994
|
return u(), p("div", TX, [
|
26995
26995
|
c.exclusiveError && c.checked ? (u(), p("div", HX, [
|
26996
26996
|
r("div", IX, M(O(a)("js.components.AVOptionCheckbox.exclusive_option")), 1)
|
@@ -27011,7 +27011,7 @@ const xQ = W({
|
|
27011
27011
|
onKeydown: H6(r2(n, ["prevent"]), ["space", "enter"]),
|
27012
27012
|
"data-test": "option-checkbox"
|
27013
27013
|
}), [
|
27014
|
-
c.checked ? (u(), Z(
|
27014
|
+
c.checked ? (u(), Z(m, {
|
27015
27015
|
key: 0,
|
27016
27016
|
id: `option_${c.optionReference}_tick`,
|
27017
27017
|
rank: c.rank,
|
@@ -27089,7 +27089,7 @@ const xQ = W({
|
|
27089
27089
|
l.collapsable && (s.value = f, o === null ? t.value = !t.value : t.value = !!o, t.value && a("accordionOpen"));
|
27090
27090
|
};
|
27091
27091
|
return (o, f) => {
|
27092
|
-
const
|
27092
|
+
const m = P("AVTransitionSlide");
|
27093
27093
|
return c.collapsable ? (u(), p(Y, { key: 0 }, [
|
27094
27094
|
r("div", {
|
27095
27095
|
role: "button",
|
@@ -27107,7 +27107,7 @@ const xQ = W({
|
|
27107
27107
|
}, void 0, !0)
|
27108
27108
|
], 40, FX),
|
27109
27109
|
g1(o.$slots, "results", {}, void 0, !0),
|
27110
|
-
w(
|
27110
|
+
w(m, {
|
27111
27111
|
"skip-transition": !s.value
|
27112
27112
|
}, {
|
27113
27113
|
default: a1(() => [
|
@@ -27254,8 +27254,8 @@ const xQ = W({
|
|
27254
27254
|
},
|
27255
27255
|
setup(c) {
|
27256
27256
|
const e = c, l = I(() => {
|
27257
|
-
const
|
27258
|
-
return
|
27257
|
+
const m = e.title.split(" ");
|
27258
|
+
return m.length < 2 ? `${m[0][0].toUpperCase()}${m[0][1].toUpperCase()}` : `${m[0][0].toUpperCase()}${m[1][0].toUpperCase()}`;
|
27259
27259
|
}), a = t1(null), t = t1(0), s = I(
|
27260
27260
|
() => Math.ceil((t.value - 32) / 2)
|
27261
27261
|
), n = I(() => e.hasPrevStep ? `
|
@@ -27275,8 +27275,8 @@ const xQ = W({
|
|
27275
27275
|
};
|
27276
27276
|
return h1(() => {
|
27277
27277
|
f(), o(), window.addEventListener("resize", o);
|
27278
|
-
}), Us(() => window.removeEventListener("resize", o)), (
|
27279
|
-
const
|
27278
|
+
}), Us(() => window.removeEventListener("resize", o)), (m, z) => {
|
27279
|
+
const d = P("AVIcon");
|
27280
27280
|
return u(), p("div", JX, [
|
27281
27281
|
c.hasPrevStep ? (u(), p("div", {
|
27282
27282
|
key: 0,
|
@@ -27304,13 +27304,13 @@ const xQ = W({
|
|
27304
27304
|
"data-test": "step-circle"
|
27305
27305
|
}, [
|
27306
27306
|
c.summary && c.status === "active" ? (u(), p("div", QX, [
|
27307
|
-
w(
|
27307
|
+
w(d, { icon: "grip-vertical" })
|
27308
27308
|
])) : c.summary ? (u(), p("div", YX, [
|
27309
27309
|
r("div", KX, [
|
27310
|
-
w(
|
27310
|
+
w(d, { icon: "grip-vertical" })
|
27311
27311
|
]),
|
27312
27312
|
r("div", XX, [
|
27313
|
-
w(
|
27313
|
+
w(d, { icon: "arrow-left" })
|
27314
27314
|
])
|
27315
27315
|
])) : c.linkMode && c.status === "active" ? (u(), p("div", c11, [
|
27316
27316
|
r("span", e11, M(l.value), 1)
|
@@ -27319,10 +27319,10 @@ const xQ = W({
|
|
27319
27319
|
r("span", t11, M(l.value), 1)
|
27320
27320
|
]),
|
27321
27321
|
r("div", s11, [
|
27322
|
-
w(
|
27322
|
+
w(d, { icon: "arrow-right" })
|
27323
27323
|
])
|
27324
27324
|
])) : (u(), p("div", n11, [
|
27325
|
-
w(
|
27325
|
+
w(d, {
|
27326
27326
|
icon: c.status === "done" ? "check" : `${c.stepNumber}`,
|
27327
27327
|
class: "AVVerticalStep--icon",
|
27328
27328
|
"data-test": "step-icon"
|
@@ -27476,15 +27476,15 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27476
27476
|
},
|
27477
27477
|
emits: ["update"],
|
27478
27478
|
setup(c, { emit: e }) {
|
27479
|
-
const l = c, a = e, t = t1(""), s = t1([]), n = (
|
27479
|
+
const l = c, a = e, t = t1(""), s = t1([]), n = (m) => {
|
27480
27480
|
s.value.map((z) => {
|
27481
|
-
z.value ===
|
27481
|
+
z.value === m ? (z.checked = !0, t.value = z.value) : z.checked = !1;
|
27482
27482
|
});
|
27483
27483
|
}, i = () => {
|
27484
|
-
if (s.value.map((
|
27485
|
-
s.value.map((
|
27484
|
+
if (s.value.map((m) => m.disabled = !1), l.disabled)
|
27485
|
+
s.value.map((m) => {
|
27486
27486
|
l.disabled.map(
|
27487
|
-
(z) => z ===
|
27487
|
+
(z) => z === m.value ? m.disabled = !0 : m
|
27488
27488
|
);
|
27489
27489
|
});
|
27490
27490
|
else
|
@@ -27492,11 +27492,11 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27492
27492
|
};
|
27493
27493
|
h1(() => {
|
27494
27494
|
l.options.map(
|
27495
|
-
(
|
27495
|
+
(m) => s.value.push({ value: m, checked: !1 })
|
27496
27496
|
), l.initialValue && n(l.initialValue), l.disabled && i();
|
27497
27497
|
});
|
27498
|
-
const o = (
|
27499
|
-
n(
|
27498
|
+
const o = (m) => {
|
27499
|
+
n(m), f();
|
27500
27500
|
}, f = () => {
|
27501
27501
|
a("update", t.value, s.value);
|
27502
27502
|
};
|
@@ -27510,8 +27510,8 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27510
27510
|
() => {
|
27511
27511
|
i();
|
27512
27512
|
}
|
27513
|
-
), (
|
27514
|
-
const
|
27513
|
+
), (m, z) => {
|
27514
|
+
const d = P("AVRadio");
|
27515
27515
|
return u(), p("div", g11, [
|
27516
27516
|
c.disableLabel ? T("", !0) : (u(), p("label", {
|
27517
27517
|
key: 0,
|
@@ -27523,7 +27523,7 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27523
27523
|
class: $(`AVRadioGroup--${c.orientation}`),
|
27524
27524
|
"data-test": "input-group"
|
27525
27525
|
}, [
|
27526
|
-
(u(!0), p(Y, null, r1(s.value, (h, b) => (u(), Z(
|
27526
|
+
(u(!0), p(Y, null, r1(s.value, (h, b) => (u(), Z(d, {
|
27527
27527
|
class: "AVRadioGroup--child",
|
27528
27528
|
id: `radio-${c.id}-${b}`,
|
27529
27529
|
key: b,
|
@@ -27836,18 +27836,18 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27836
27836
|
setup(c) {
|
27837
27837
|
const e = c, l = I(
|
27838
27838
|
() => {
|
27839
|
-
var
|
27840
|
-
return ((
|
27839
|
+
var m, z;
|
27840
|
+
return ((m = e.option) == null ? void 0 : m.crosses) && ((z = e.option) == null ? void 0 : z.crosses) > 1 && e.multipleVotesAllowed && !e.blank;
|
27841
27841
|
}
|
27842
|
-
), a = I(() => e.parents.length < 1 ? null : e.parents.map((
|
27843
|
-
var
|
27844
|
-
return e.blank ? o("js.components.AVSummaryOption.blank") : (
|
27842
|
+
), a = I(() => e.parents.length < 1 ? null : e.parents.map((m) => m.title[f.value]).reverse()), t = I(() => {
|
27843
|
+
var m;
|
27844
|
+
return e.blank ? o("js.components.AVSummaryOption.blank") : (m = e.option) == null ? void 0 : m.title[f.value];
|
27845
27845
|
}), s = I(() => {
|
27846
27846
|
var b, A;
|
27847
|
-
const
|
27848
|
-
|
27849
|
-
const z =
|
27850
|
-
return h.length ? [
|
27847
|
+
const m = Array.from(Array((b = e.option) == null ? void 0 : b.crosses).keys());
|
27848
|
+
m.forEach((_) => m[_] = _ + 1);
|
27849
|
+
const z = m.indexOf(Math.ceil(((A = e.option) == null ? void 0 : A.crosses) / 2)) + 1, d = m.slice(0, z), h = m.slice(z);
|
27850
|
+
return h.length ? [d, h] : [d];
|
27851
27851
|
}), n = I(
|
27852
27852
|
() => e.option.image.includes("square") ? e.option.image : `${e.option.image}/${e.imageOption}`
|
27853
27853
|
), i = y1("i18n"), { t: o } = i.global, f = I(
|
@@ -27861,9 +27861,9 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27861
27861
|
e.locale && i1(e.locale);
|
27862
27862
|
},
|
27863
27863
|
{ deep: !0 }
|
27864
|
-
), (
|
27864
|
+
), (m, z) => {
|
27865
27865
|
var h, b;
|
27866
|
-
const
|
27866
|
+
const d = P("AVOptionCheckbox");
|
27867
27867
|
return u(), p("div", {
|
27868
27868
|
class: "AVSummaryOption",
|
27869
27869
|
"aria-label": O(o)("js.components.AVSummaryOption.aria_label.option"),
|
@@ -27895,7 +27895,7 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27895
27895
|
r("div", r21, M(t.value), 1)
|
27896
27896
|
]),
|
27897
27897
|
l.value ? T("", !0) : (u(), p("div", f21, [
|
27898
|
-
w(
|
27898
|
+
w(d, {
|
27899
27899
|
checked: !0,
|
27900
27900
|
rank: (b = c.option) == null ? void 0 : b.rank,
|
27901
27901
|
disabled: !0,
|
@@ -27910,7 +27910,7 @@ const M11 = /* @__PURE__ */ J(z11, [["render", L11], ["__scopeId", "data-v-f13d6
|
|
27910
27910
|
}, [
|
27911
27911
|
(u(!0), p(Y, null, r1(A, (_) => {
|
27912
27912
|
var x;
|
27913
|
-
return u(), Z(
|
27913
|
+
return u(), Z(d, {
|
27914
27914
|
key: _,
|
27915
27915
|
checked: !0,
|
27916
27916
|
rank: (x = c.option) == null ? void 0 : x.rank,
|
@@ -28016,12 +28016,12 @@ const d21 = ["id", "href", "aria-labelledby"], p21 = ["aria-label"], z21 = {
|
|
28016
28016
|
() => s.selections.filter(
|
28017
28017
|
(D) => D.reference === s.option.reference
|
28018
28018
|
).length
|
28019
|
-
),
|
28019
|
+
), m = I(() => s.option.title[K.value] ?? ""), z = I(
|
28020
28020
|
() => {
|
28021
28021
|
var D;
|
28022
28022
|
return ((D = s.option.description) == null ? void 0 : D[K.value]) ?? "";
|
28023
28023
|
}
|
28024
|
-
),
|
28024
|
+
), d = I(() => {
|
28025
28025
|
var D;
|
28026
28026
|
return ((D = s.option.url) == null ? void 0 : D[K.value]) ?? "";
|
28027
28027
|
}), h = I(
|
@@ -28033,8 +28033,8 @@ const d21 = ["id", "href", "aria-labelledby"], p21 = ["aria-label"], z21 = {
|
|
28033
28033
|
() => s.option.image.includes("square") ? s.option.image : `${s.option.image}/${s.imageOption}`
|
28034
28034
|
), A = I(() => {
|
28035
28035
|
let D = [];
|
28036
|
-
return
|
28037
|
-
url:
|
28036
|
+
return d.value && D.push({
|
28037
|
+
url: d.value,
|
28038
28038
|
text: F("js.components.AVOption.info_link_text_html")
|
28039
28039
|
}), h.value && D.push({
|
28040
28040
|
url: h.value,
|
@@ -28134,7 +28134,7 @@ const d21 = ["id", "href", "aria-labelledby"], p21 = ["aria-label"], z21 = {
|
|
28134
28134
|
}, null, 8, L21)) : T("", !0),
|
28135
28135
|
r("h5", {
|
28136
28136
|
class: "AVOption--title",
|
28137
|
-
textContent: M(
|
28137
|
+
textContent: M(m.value)
|
28138
28138
|
}, null, 8, M21)
|
28139
28139
|
]),
|
28140
28140
|
z.value || A.value.length || _.value || c.option.candidateId ? (u(), p("div", g21, [
|
@@ -28449,7 +28449,7 @@ const d21 = ["id", "href", "aria-labelledby"], p21 = ["aria-label"], z21 = {
|
|
28449
28449
|
const f = t.partyValue !== "" || t.candidateValue !== "";
|
28450
28450
|
f !== t.checkedValue && s("update:checkedValue", f);
|
28451
28451
|
};
|
28452
|
-
return (f,
|
28452
|
+
return (f, m) => {
|
28453
28453
|
const z = P("AVOptionCheckbox");
|
28454
28454
|
return u(), p("div", {
|
28455
28455
|
class: $({
|
@@ -28466,14 +28466,14 @@ const d21 = ["id", "href", "aria-labelledby"], p21 = ["aria-label"], z21 = {
|
|
28466
28466
|
class: "AVWriteInOption--form-control",
|
28467
28467
|
"aria-label": O(a)("js.components.AVWriteInOption.aria_labels.party"),
|
28468
28468
|
disabled: c.disabled,
|
28469
|
-
onInput:
|
28469
|
+
onInput: m[0] || (m[0] = (d) => i(d.target.value))
|
28470
28470
|
}, [
|
28471
28471
|
r("option", W21, M(O(a)("js.components.AVWriteInOption.choose_party")), 1),
|
28472
|
-
(u(!0), p(Y, null, r1(c.parties, (
|
28473
|
-
key:
|
28474
|
-
value:
|
28475
|
-
selected:
|
28476
|
-
}, M(
|
28472
|
+
(u(!0), p(Y, null, r1(c.parties, (d) => (u(), p("option", {
|
28473
|
+
key: d.letter,
|
28474
|
+
value: d.letter,
|
28475
|
+
selected: d.letter === c.partyValue
|
28476
|
+
}, M(d.letter) + " - " + M(d.name), 9, J21))), 128))
|
28477
28477
|
], 40, U21),
|
28478
28478
|
r("input", {
|
28479
28479
|
value: c.candidateValue,
|
@@ -28481,7 +28481,7 @@ const d21 = ["id", "href", "aria-labelledby"], p21 = ["aria-label"], z21 = {
|
|
28481
28481
|
placeholder: O(a)("js.components.AVWriteInOption.placeholder"),
|
28482
28482
|
"aria-label": O(a)("js.components.AVWriteInOption.aria_labels.candidate"),
|
28483
28483
|
disabled: c.disabled,
|
28484
|
-
onInput:
|
28484
|
+
onInput: m[1] || (m[1] = (d) => n(d.target.value))
|
28485
28485
|
}, null, 40, G21)
|
28486
28486
|
])
|
28487
28487
|
]),
|
@@ -28626,12 +28626,12 @@ const r31 = ["aria-label"], f31 = { class: "AVSearchBallot--form-group" }, u31 =
|
|
28626
28626
|
const { eventBusEmit: e } = _j(), l = c, a = t1(""), t = I(() => a.value.trim() === "" ? [] : o31(
|
28627
28627
|
l.options,
|
28628
28628
|
a.value,
|
28629
|
-
(
|
28630
|
-
)), s = (
|
28629
|
+
(d) => d.title[z.value]
|
28630
|
+
)), s = (d) => n(d, []).reverse(), n = (d, h) => d.parentContent ? (h.push(d.parentContent), n(d.parentContent, h)) : h, i = () => {
|
28631
28631
|
a.value = "";
|
28632
|
-
}, o = (
|
28633
|
-
e("highlight-option",
|
28634
|
-
}, f = y1("i18n"), { t:
|
28632
|
+
}, o = (d) => {
|
28633
|
+
e("highlight-option", d.reference), i();
|
28634
|
+
}, f = y1("i18n"), { t: m } = f.global, z = I(
|
28635
28635
|
() => f.global.locale.value || f.global.locale
|
28636
28636
|
);
|
28637
28637
|
return h1(() => {
|
@@ -28642,10 +28642,10 @@ const r31 = ["aria-label"], f31 = { class: "AVSearchBallot--form-group" }, u31 =
|
|
28642
28642
|
l.locale && i1(l.locale);
|
28643
28643
|
},
|
28644
28644
|
{ deep: !0 }
|
28645
|
-
), (
|
28645
|
+
), (d, h) => (u(), p("form", {
|
28646
28646
|
role: "search",
|
28647
28647
|
class: "AVSearchBallot",
|
28648
|
-
"aria-label": O(
|
28648
|
+
"aria-label": O(m)("js.components.AVSearchBallot.aria_labels.ballot_options"),
|
28649
28649
|
"data-test": "search-ballot",
|
28650
28650
|
onSubmit: h[1] || (h[1] = r2(() => {
|
28651
28651
|
}, ["prevent"]))
|
@@ -28654,7 +28654,7 @@ const r31 = ["aria-label"], f31 = { class: "AVSearchBallot--form-group" }, u31 =
|
|
28654
28654
|
r("label", {
|
28655
28655
|
for: "ballot_search",
|
28656
28656
|
class: "AVSearchBallot--label",
|
28657
|
-
textContent: M(O(
|
28657
|
+
textContent: M(O(m)("js.components.AVSearchBallot.search_the_ballot"))
|
28658
28658
|
}, null, 8, u31),
|
28659
28659
|
r("div", m31, [
|
28660
28660
|
R1(r("input", {
|
@@ -28662,7 +28662,7 @@ const r31 = ["aria-label"], f31 = { class: "AVSearchBallot--form-group" }, u31 =
|
|
28662
28662
|
"onUpdate:modelValue": h[0] || (h[0] = (b) => a.value = b),
|
28663
28663
|
type: "search",
|
28664
28664
|
class: "AVSearchBallot--form-control",
|
28665
|
-
placeholder: O(
|
28665
|
+
placeholder: O(m)("js.components.AVSearchBallot.enter_option_name"),
|
28666
28666
|
"data-test": "search-ballot-input"
|
28667
28667
|
}, null, 8, d31), [
|
28668
28668
|
[Qs, a.value]
|
@@ -28686,7 +28686,7 @@ const r31 = ["aria-label"], f31 = { class: "AVSearchBallot--form-group" }, u31 =
|
|
28686
28686
|
id: `search_result_${b.reference}`,
|
28687
28687
|
class: "AVSearchBallot--option",
|
28688
28688
|
role: "button",
|
28689
|
-
"aria-label": O(
|
28689
|
+
"aria-label": O(m)("js.components.AVSearchBallot.aria_labels.go_to_option"),
|
28690
28690
|
"data-test": "search-result",
|
28691
28691
|
onClick: r2((A) => o(b), ["prevent"])
|
28692
28692
|
}, [
|
@@ -28699,7 +28699,7 @@ const r31 = ["aria-label"], f31 = { class: "AVSearchBallot--form-group" }, u31 =
|
|
28699
28699
|
a.value && t.value.length === 0 ? (u(), p("div", {
|
28700
28700
|
key: 0,
|
28701
28701
|
class: "AVSearchBallot--alert",
|
28702
|
-
textContent: M(O(
|
28702
|
+
textContent: M(O(m)("js.components.AVSearchBallot.no_results"))
|
28703
28703
|
}, null, 8, b31)) : T("", !0)
|
28704
28704
|
])
|
28705
28705
|
], 40, r31));
|
@@ -29225,10 +29225,10 @@ var L41 = (
|
|
29225
29225
|
return !(f != null && f.includes(z));
|
29226
29226
|
});
|
29227
29227
|
}
|
29228
|
-
var
|
29228
|
+
var m = (i = s.children) === null || i === void 0 ? void 0 : i.some(function(z) {
|
29229
29229
|
return l.includes(z.reference);
|
29230
29230
|
});
|
29231
|
-
t &&
|
29231
|
+
t && m ? a = !0 : m && (t = !0);
|
29232
29232
|
}), a;
|
29233
29233
|
}, c;
|
29234
29234
|
}()
|
@@ -29283,13 +29283,13 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29283
29283
|
"view-candidate"
|
29284
29284
|
],
|
29285
29285
|
setup(c, { emit: e }) {
|
29286
|
-
const l = c, a = e, t = t1(!1), s = t1(""), n = t1(""), i = t1(null), o = I(() => l.selectionPile.optionSelections), f = I(() => new xj(l.contest)),
|
29286
|
+
const l = c, a = e, t = t1(!1), s = t1(""), n = t1(""), i = t1(null), o = I(() => l.selectionPile.optionSelections), f = I(() => new xj(l.contest)), m = I(
|
29287
29287
|
() => l.contest.disregardVoterWeight ? null : l.weight
|
29288
29288
|
), z = I(() => {
|
29289
29289
|
var k;
|
29290
29290
|
let V = [];
|
29291
29291
|
return (k = l.contest.customRulesets) != null && k.includes("belgian_ballot_rules") && V.push(new M41(l.contest)), V;
|
29292
|
-
}),
|
29292
|
+
}), d = I(() => {
|
29293
29293
|
let V = [];
|
29294
29294
|
z.value.forEach((F) => {
|
29295
29295
|
V.push(...F.validate(l.selectionPile));
|
@@ -29307,7 +29307,7 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29307
29307
|
), k.splice(F, 1));
|
29308
29308
|
}
|
29309
29309
|
return a("update:errors", k), k;
|
29310
|
-
}), h = I(() =>
|
29310
|
+
}), h = I(() => d.value.length === 0), b = I(() => {
|
29311
29311
|
var V;
|
29312
29312
|
return (V = l.contest.question) == null ? void 0 : V[H.value];
|
29313
29313
|
}), A = I(
|
@@ -29407,7 +29407,7 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29407
29407
|
selections: o.value,
|
29408
29408
|
option: U,
|
29409
29409
|
invalid: !h.value,
|
29410
|
-
"exclusive-error": !A.value && U.exclusive &&
|
29410
|
+
"exclusive-error": !A.value && U.exclusive && d.value.some((Q) => Q.message.includes("exclusive")),
|
29411
29411
|
contest: c.contest,
|
29412
29412
|
disabled: c.disabled,
|
29413
29413
|
observerMode: c.observerMode,
|
@@ -29420,7 +29420,7 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29420
29420
|
c.contest.markingType.blankSubmission === "active_choice" ? (u(), Z(c1, {
|
29421
29421
|
key: 0,
|
29422
29422
|
checked: c.selectionPile.explicitBlank,
|
29423
|
-
error: !A.value &&
|
29423
|
+
error: !A.value && d.value.some((U) => U.message.includes("blank")),
|
29424
29424
|
disabled: c.disabled,
|
29425
29425
|
invalid: !h.value,
|
29426
29426
|
observerMode: c.observerMode,
|
@@ -29433,8 +29433,8 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29433
29433
|
key: 2,
|
29434
29434
|
id: `ballot_${c.contest.reference}`,
|
29435
29435
|
"chosen-count": o.value.length,
|
29436
|
-
errors:
|
29437
|
-
weight:
|
29436
|
+
errors: d.value,
|
29437
|
+
weight: m.value,
|
29438
29438
|
"min-marks": c.contest.markingType.minMarks,
|
29439
29439
|
"max-marks": c.contest.markingType.maxMarks,
|
29440
29440
|
"has-exclusive-options": _.value,
|
@@ -29508,7 +29508,7 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29508
29508
|
},
|
29509
29509
|
emits: ["editCurrentSelection", "deleteSelection"],
|
29510
29510
|
setup(c, { emit: e }) {
|
29511
|
-
const l = e, a = c, t = t1(!1), s = I(() => a.selectionPile.optionSelections.length === 0), n = I(() => !a.maximumOptionsShown || t.value ?
|
29511
|
+
const l = e, a = c, t = t1(!1), s = I(() => a.selectionPile.optionSelections.length === 0), n = I(() => !a.maximumOptionsShown || t.value ? m.value.options : m.value.options.slice(0, a.maximumOptionsShown)), i = I(() => m.value.options.length - n.value.length), o = I(() => H4(a.contest.options).filter((_) => _.selectable)), f = (b, A) => b && b.parentContent ? (A.push(b.parentContent), f(b.parentContent, A)) : A, m = I(() => {
|
29512
29512
|
const b = {
|
29513
29513
|
options: [],
|
29514
29514
|
writeIns: []
|
@@ -29539,7 +29539,7 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29539
29539
|
});
|
29540
29540
|
}
|
29541
29541
|
}), b;
|
29542
|
-
}), z = y1("i18n"), { t:
|
29542
|
+
}), z = y1("i18n"), { t: d } = z.global, h = I(
|
29543
29543
|
() => z.global.locale.value || z.global.locale
|
29544
29544
|
);
|
29545
29545
|
return h1(() => {
|
@@ -29554,13 +29554,13 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29554
29554
|
const _ = P("AVSummaryOption"), x = P("AVIcon");
|
29555
29555
|
return c.activeState === "summary" ? (u(), p("div", _41, [
|
29556
29556
|
c.contest.markingType.maxPiles !== 1 ? (u(), p("header", x41, [
|
29557
|
-
r("span", null, M(O(
|
29558
|
-
r("span", N41, M(c.selectionPile.multiplier) + " " + M(O(
|
29557
|
+
r("span", null, M(O(d)("js.components.AVPileSummary.selection")) + " " + M(c.pileIndex + 1) + " / " + M(c.totalPiles), 1),
|
29558
|
+
r("span", N41, M(c.selectionPile.multiplier) + " " + M(O(d)("js.components.AVPileSummary.ballots")), 1)
|
29559
29559
|
])) : (u(), p("header", y41, [
|
29560
|
-
r("span", null, M(O(
|
29560
|
+
r("span", null, M(O(d)("js.components.AVPileSummary.selection")), 1)
|
29561
29561
|
])),
|
29562
29562
|
r("div", k41, [
|
29563
|
-
(u(!0), p(Y, null, r1(
|
29563
|
+
(u(!0), p(Y, null, r1(m.value.options, (C, v) => (u(), Z(_, {
|
29564
29564
|
key: v,
|
29565
29565
|
option: C,
|
29566
29566
|
"multiple-votes-allowed": c.contest.markingType.votesAllowedPerOption > 1,
|
@@ -29576,24 +29576,24 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29576
29576
|
r("div", V41, [
|
29577
29577
|
r("div", {
|
29578
29578
|
class: "AVPileSummary--assign-header",
|
29579
|
-
"aria-label": O(
|
29579
|
+
"aria-label": O(d)("js.components.AVPileSummary.aria_labels.edit_selection"),
|
29580
29580
|
role: "button",
|
29581
29581
|
"data-test": "pile-summary-edit",
|
29582
29582
|
onClick: A[0] || (A[0] = (C) => l("editCurrentSelection"))
|
29583
29583
|
}, [
|
29584
29584
|
r("div", E41, [
|
29585
29585
|
w(x, { icon: "pen-to-square" }),
|
29586
|
-
r("span", null, M(O(
|
29586
|
+
r("span", null, M(O(d)("js.components.AVPileSummary.ballot_selection")) + " " + M(c.pileIndex + 1), 1)
|
29587
29587
|
]),
|
29588
|
-
c.activeState === "overview" || c.isEditing ? (u(), p("span", T41, M(O(
|
29588
|
+
c.activeState === "overview" || c.isEditing ? (u(), p("span", T41, M(O(d)("js.components.AVPileSummary.assigned")) + " " + M(c.selectionPile.multiplier), 1)) : T("", !0)
|
29589
29589
|
], 8, w41),
|
29590
29590
|
r("div", H41, [
|
29591
|
-
s.value ? (u(), p("p", I41, M(O(
|
29591
|
+
s.value ? (u(), p("p", I41, M(O(d)("js.components.AVPileSummary.blank")), 1)) : T("", !0),
|
29592
29592
|
(u(!0), p(Y, null, r1(n.value, (C, v) => (u(), p("p", {
|
29593
29593
|
key: v,
|
29594
29594
|
class: "AVPileSummary--assign-text"
|
29595
29595
|
}, M(C.rank ? `${C.rank}: ` : "") + " " + M(C.title[h.value]), 1))), 128)),
|
29596
|
-
(u(!0), p(Y, null, r1(
|
29596
|
+
(u(!0), p(Y, null, r1(m.value.writeIns, (C, v) => (u(), p("p", {
|
29597
29597
|
key: v,
|
29598
29598
|
class: "AVPileSummary--assign-text"
|
29599
29599
|
}, [
|
@@ -29609,9 +29609,9 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29609
29609
|
onClick: A[1] || (A[1] = r2((C) => t.value = !0, ["stop", "prevent"]))
|
29610
29610
|
}, [
|
29611
29611
|
r("u", null, [
|
29612
|
-
r("em", null, M(`${O(
|
29612
|
+
r("em", null, M(`${O(d)(
|
29613
29613
|
"js.components.AVPileSummary.and_n_more_pre"
|
29614
|
-
)} ${i.value} ${O(
|
29614
|
+
)} ${i.value} ${O(d)(
|
29615
29615
|
"js.components.AVPileSummary.and_n_more_pos"
|
29616
29616
|
)}`), 1)
|
29617
29617
|
])
|
@@ -29624,7 +29624,7 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29624
29624
|
onClick: A[2] || (A[2] = r2((C) => t.value = !1, ["stop", "prevent"]))
|
29625
29625
|
}, [
|
29626
29626
|
r("u", null, [
|
29627
|
-
r("em", null, M(O(
|
29627
|
+
r("em", null, M(O(d)("js.components.AVPileSummary.show_less")), 1)
|
29628
29628
|
])
|
29629
29629
|
])) : T("", !0)
|
29630
29630
|
])
|
@@ -29633,7 +29633,7 @@ const g41 = ["aria-label", "aria-describedby"], b41 = ["id"], v41 = ["aria-label
|
|
29633
29633
|
key: 0,
|
29634
29634
|
class: "AVPileSummary--assign-delete-button",
|
29635
29635
|
role: "button",
|
29636
|
-
"aria-label": O(
|
29636
|
+
"aria-label": O(d)("js.components.AVPileSummary.aria_labels.delete_selection"),
|
29637
29637
|
"data-test": "pile-summary-delete",
|
29638
29638
|
onClick: A[3] || (A[3] = r2((C) => l("deleteSelection"), ["stop", "prevent"]))
|
29639
29639
|
}, [
|
@@ -29746,15 +29746,15 @@ const $41 = {
|
|
29746
29746
|
var U;
|
29747
29747
|
return (U = o.value) == null ? void 0 : U.reduce((Q, N1) => Q - N1.multiplier, l.weight);
|
29748
29748
|
}
|
29749
|
-
),
|
29749
|
+
), m = I(
|
29750
29750
|
() => new xj(l.contest)
|
29751
29751
|
), z = I(
|
29752
29752
|
() => new B41({
|
29753
29753
|
contest: l.contest,
|
29754
29754
|
voterWeight: l.weight
|
29755
29755
|
})
|
29756
|
-
),
|
29757
|
-
(U) =>
|
29756
|
+
), d = I(() => f.value === 0 && i.value.length == 0 && o.value.every(
|
29757
|
+
(U) => m.value.isComplete(U)
|
29758
29758
|
)), h = I(
|
29759
29759
|
() => {
|
29760
29760
|
var U;
|
@@ -29767,7 +29767,7 @@ const $41 = {
|
|
29767
29767
|
() => o.value.filter((U, Q) => Q !== t.value).reduce((U, Q) => U - Q.multiplier, l.weight)
|
29768
29768
|
), _ = I(
|
29769
29769
|
() => l.contest.markingType.maxPiles !== 1 && l.weight > 1
|
29770
|
-
), x = I(() => t.value !== null), C = (U) =>
|
29770
|
+
), x = I(() => t.value !== null), C = (U) => m.value.isComplete(U), v = (U) => m.value.validate(U, l.includeLazyErrors).length > 0, N = () => {
|
29771
29771
|
if (_.value) {
|
29772
29772
|
const U = [...o.value];
|
29773
29773
|
t.value === null ? U.push({ ...s.value }) : U.splice(t.value, 1, {
|
@@ -29796,7 +29796,7 @@ const $41 = {
|
|
29796
29796
|
}, k = (U) => {
|
29797
29797
|
i.value = U;
|
29798
29798
|
}, F = (U) => a("view-candidate", U);
|
29799
|
-
s1(
|
29799
|
+
s1(d, (U) => a("update:complete", U)), s1(b, () => {
|
29800
29800
|
s.value && (s.value.multiplier = Math.max(
|
29801
29801
|
0,
|
29802
29802
|
Math.min(b.value, A.value)
|
@@ -29804,7 +29804,7 @@ const $41 = {
|
|
29804
29804
|
}), s1(s, (U) => {
|
29805
29805
|
a("update:activePile", U);
|
29806
29806
|
}), s1(n, (U) => a("update:activeState", U)), h1(() => {
|
29807
|
-
l.locale && i1(l.locale), a("update:activePile", s.value), a("update:activeState", n.value), a("update:complete",
|
29807
|
+
l.locale && i1(l.locale), a("update:activePile", s.value), a("update:activeState", n.value), a("update:complete", d.value), _.value || N();
|
29808
29808
|
});
|
29809
29809
|
const K = y1("i18n"), { t: D } = K.global, c1 = I(
|
29810
29810
|
() => K.global.locale.value || K.global.locale
|
@@ -30053,12 +30053,12 @@ const $41 = {
|
|
30053
30053
|
const e = I(
|
30054
30054
|
() => {
|
30055
30055
|
var h, b, A, _, x, C;
|
30056
|
-
return (b = (h = i.candidate.title) == null ? void 0 : h[0]) != null && b.localised ? ((_ = (A = i.candidate.title) == null ? void 0 : A[0]) == null ? void 0 : _.form_content)[
|
30056
|
+
return (b = (h = i.candidate.title) == null ? void 0 : h[0]) != null && b.localised ? ((_ = (A = i.candidate.title) == null ? void 0 : A[0]) == null ? void 0 : _.form_content)[d.value] : (C = (x = i.candidate.title) == null ? void 0 : x[0]) == null ? void 0 : C.form_content;
|
30057
30057
|
}
|
30058
30058
|
), l = I(
|
30059
30059
|
() => {
|
30060
30060
|
var h, b, A, _, x, C;
|
30061
|
-
return (b = (h = i.candidate.subtitle) == null ? void 0 : h[0]) != null && b.localised ? ((_ = (A = i.candidate.title) == null ? void 0 : A[0]) == null ? void 0 : _.form_content)[
|
30061
|
+
return (b = (h = i.candidate.subtitle) == null ? void 0 : h[0]) != null && b.localised ? ((_ = (A = i.candidate.title) == null ? void 0 : A[0]) == null ? void 0 : _.form_content)[d.value] : (C = (x = i.candidate.subtitle) == null ? void 0 : x[0]) == null ? void 0 : C.form_content;
|
30062
30062
|
}
|
30063
30063
|
), a = I(() => {
|
30064
30064
|
var _;
|
@@ -30067,9 +30067,9 @@ const $41 = {
|
|
30067
30067
|
return i.currentCandidateGroup ? i.candidate.groups.forEach((x) => {
|
30068
30068
|
x.id === i.currentCandidateGroup ? h.push(x) : b.push(x);
|
30069
30069
|
}) : (b = [...i.candidate.groups], h = b.splice(0, 1)), b.forEach((x, C) => {
|
30070
|
-
C === 0 || i.candidate.groups.length === 1 ? A = x.title[
|
30070
|
+
C === 0 || i.candidate.groups.length === 1 ? A = x.title[d.value] : C === b.length - 1 ? A += ` & ${x.title[d.value]}` : A += `, ${x.title[d.value]}`;
|
30071
30071
|
}), {
|
30072
|
-
title: (_ = h[0]) == null ? void 0 : _.title[
|
30072
|
+
title: (_ = h[0]) == null ? void 0 : _.title[d.value],
|
30073
30073
|
surplus: b.length || null,
|
30074
30074
|
remaining: A
|
30075
30075
|
};
|
@@ -30079,12 +30079,12 @@ const $41 = {
|
|
30079
30079
|
)
|
30080
30080
|
), s = I(
|
30081
30081
|
() => i.summary ? !!i.candidate.summary.length : !!i.candidate.generic.length
|
30082
|
-
), n = (h) => h.item_type === "check_box" ? !0 : h.form_content ? h.item_type === "link_list" ? !!h.form_content.length : h.localised ? !!h.form_content[
|
30082
|
+
), n = (h) => h.item_type === "check_box" ? !0 : h.form_content ? h.item_type === "link_list" ? !!h.form_content.length : h.localised ? !!h.form_content[d.value] : !!h.form_content : !1, i = c, o = I(
|
30083
30083
|
() => {
|
30084
30084
|
var h;
|
30085
30085
|
return ((h = i.candidate.generic.find((b) => b.item_type === "image")) == null ? void 0 : h.form_content) || u01;
|
30086
30086
|
}
|
30087
|
-
), f = y1("i18n"), { t:
|
30087
|
+
), f = y1("i18n"), { t: m, d: z } = f.global, d = I(
|
30088
30088
|
() => f.global.locale.value || f.global.locale
|
30089
30089
|
);
|
30090
30090
|
return h1(() => {
|
@@ -30109,7 +30109,7 @@ const $41 = {
|
|
30109
30109
|
c.summary && o.value ? (u(), p("div", m01, [
|
30110
30110
|
r("img", {
|
30111
30111
|
src: o.value,
|
30112
|
-
alt: O(
|
30112
|
+
alt: O(m)("js.components.AVResourceSection.alt_candidate"),
|
30113
30113
|
class: "AVResourceSection--image",
|
30114
30114
|
"data-test": "resource-image"
|
30115
30115
|
}, null, 8, d01)
|
@@ -30126,7 +30126,7 @@ const $41 = {
|
|
30126
30126
|
r("h4", M01, M(a.value.title), 1),
|
30127
30127
|
a.value.surplus ? (u(), Z(A, {
|
30128
30128
|
key: 0,
|
30129
|
-
text: O(
|
30129
|
+
text: O(m)("js.components.AVResourceSection.and_more", {
|
30130
30130
|
amount: a.value.surplus
|
30131
30131
|
}),
|
30132
30132
|
content: a.value.remaining,
|
@@ -30151,37 +30151,37 @@ const $41 = {
|
|
30151
30151
|
}),
|
30152
30152
|
"data-test": "resource-title"
|
30153
30153
|
}, [
|
30154
|
-
o1(M(C.label[
|
30154
|
+
o1(M(C.label[d.value]) + " ", 1),
|
30155
30155
|
C.item_type === "check_box" ? (u(), Z(_, {
|
30156
30156
|
key: 0,
|
30157
30157
|
icon: C.form_content ? "square-check" : "square-xmark",
|
30158
30158
|
class: $(
|
30159
30159
|
C.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
30160
30160
|
),
|
30161
|
-
"aria-label": C.form_content ? O(
|
30161
|
+
"aria-label": C.form_content ? O(m)("js.components.AVResourceSection.true") : O(m)("js.components.AVResourceSection.false"),
|
30162
30162
|
"data-test": "resource-checkbox-icon"
|
30163
30163
|
}, null, 8, ["icon", "class", "aria-label"])) : T("", !0)
|
30164
30164
|
], 2)),
|
30165
30165
|
!c.summary && C.item_type !== "check_box" ? (u(), p("hr", g01)) : T("", !0),
|
30166
30166
|
C.item_type === "link_list" && n(C) ? (u(), p("div", b01, [
|
30167
|
-
c.summary ? (u(), p("span", v01, M(`${C.label[
|
30167
|
+
c.summary ? (u(), p("span", v01, M(`${C.label[d.value]}:`), 1)) : T("", !0),
|
30168
30168
|
(u(!0), p(Y, null, r1(C.form_content, (v) => (u(), Z(x, {
|
30169
30169
|
key: v.attributes.name,
|
30170
30170
|
link: v,
|
30171
30171
|
large: !c.summary
|
30172
30172
|
}, null, 8, ["link", "large"]))), 128))
|
30173
30173
|
])) : C.item_type === "check_box" && c.summary ? (u(), p("div", C01, [
|
30174
|
-
r("span", null, M(`${C.label[
|
30174
|
+
r("span", null, M(`${C.label[d.value]}`), 1),
|
30175
30175
|
w(_, {
|
30176
30176
|
icon: C.form_content ? "square-check" : "square-xmark",
|
30177
30177
|
class: $(
|
30178
30178
|
C.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
30179
30179
|
),
|
30180
|
-
"aria-label": C.form_content ? O(
|
30180
|
+
"aria-label": C.form_content ? O(m)("js.components.AVResourceSection.true") : O(m)("js.components.AVResourceSection.false")
|
30181
30181
|
}, null, 8, ["icon", "class", "aria-label"])
|
30182
30182
|
])) : C.item_type === "select" && n(C) ? (u(), p("div", A01, [
|
30183
|
-
c.summary ? (u(), p("span", _01, M(`${C.label[
|
30184
|
-
o1(" " + M(C.form_content[
|
30183
|
+
c.summary ? (u(), p("span", _01, M(`${C.label[d.value]}:`), 1)) : T("", !0),
|
30184
|
+
o1(" " + M(C.form_content[d.value]), 1)
|
30185
30185
|
])) : C.item_type === "video" && n(C) ? (u(), p("div", x01, [
|
30186
30186
|
r("iframe", {
|
30187
30187
|
style: { width: "100%", height: "100%", "min-height": "400px" },
|
@@ -30190,17 +30190,17 @@ const $41 = {
|
|
30190
30190
|
])) : C.item_type === "rich_text_area" && !c.summary && n(C) ? (u(), p("div", {
|
30191
30191
|
key: 6,
|
30192
30192
|
class: "AVResourceFields--rich-text",
|
30193
|
-
innerHTML: C.localised ? C.form_content[
|
30193
|
+
innerHTML: C.localised ? C.form_content[d.value] : C.form_content,
|
30194
30194
|
"data-test": "resource-rich-text"
|
30195
30195
|
}, null, 8, y01)) : C.item_type !== "rich_text_area" && C.item_type !== "check_box" ? (u(), p("p", k01, [
|
30196
|
-
c.summary ? (u(), p("span", S01, M(`${C.label[
|
30196
|
+
c.summary ? (u(), p("span", S01, M(`${C.label[d.value]}: `), 1)) : T("", !0),
|
30197
30197
|
C.item_type === "date" || C.item_type === "date_time" ? (u(), p(Y, { key: 1 }, [
|
30198
30198
|
o1(M(O(z)(
|
30199
30199
|
C.form_content,
|
30200
30200
|
C.item_type === "date" ? null : "long"
|
30201
30201
|
)), 1)
|
30202
30202
|
], 64)) : (u(), p(Y, { key: 2 }, [
|
30203
|
-
o1(M(C.localised ? C.form_content[
|
30203
|
+
o1(M(C.localised ? C.form_content[d.value] : C.form_content), 1)
|
30204
30204
|
], 64))
|
30205
30205
|
])) : T("", !0)
|
30206
30206
|
], 2)) : T("", !0)
|
@@ -30291,7 +30291,7 @@ const $41 = {
|
|
30291
30291
|
},
|
30292
30292
|
{ deep: !0 }
|
30293
30293
|
), (i, o) => {
|
30294
|
-
const f = P("AVProgressBar"),
|
30294
|
+
const f = P("AVProgressBar"), m = P("AVIcon"), z = P("AVWaitingDots");
|
30295
30295
|
return u(), p("div", E01, [
|
30296
30296
|
w(f, {
|
30297
30297
|
value: c.progress,
|
@@ -30301,14 +30301,14 @@ const $41 = {
|
|
30301
30301
|
r("div", H01, [
|
30302
30302
|
r("span", I01, M(O(l)("js.components.AVCalculateResultContent.roles.label")), 1),
|
30303
30303
|
r("span", null, [
|
30304
|
-
w(
|
30304
|
+
w(m, { icon: "user-shield" }),
|
30305
30305
|
o1(" " + M(t.value), 1)
|
30306
30306
|
])
|
30307
30307
|
]),
|
30308
30308
|
r("div", O01, [
|
30309
30309
|
r("span", P01, M(O(l)("js.components.AVCalculateResultContent.status.label")), 1),
|
30310
30310
|
r("span", D01, [
|
30311
|
-
w(
|
30311
|
+
w(m, {
|
30312
30312
|
icon: n.value,
|
30313
30313
|
class: $(["AVCalculateResultContent--status-icon", {
|
30314
30314
|
"AVCalculateResultContent--success": c.status === "finished"
|
@@ -30411,37 +30411,42 @@ const $41 = {
|
|
30411
30411
|
r("tr", null, [
|
30412
30412
|
r("th", null, M(O(n)("js.components.AVRankedSummary.header.position")), 1),
|
30413
30413
|
r("th", null, M(O(n)("js.components.AVRankedSummary.header.candidate")), 1),
|
30414
|
-
(u(!0), p(Y, null, r1(l.value, (
|
30415
|
-
key: `header_for_round_${
|
30414
|
+
(u(!0), p(Y, null, r1(l.value, (m) => (u(), p("th", {
|
30415
|
+
key: `header_for_round_${m}`,
|
30416
30416
|
class: "AVRankedSummary--text"
|
30417
30417
|
}, M(O(n)("js.components.AVRankedSummary.header.round_n", {
|
30418
|
-
n:
|
30418
|
+
n: m
|
30419
30419
|
})), 1))), 128))
|
30420
30420
|
])
|
30421
30421
|
]),
|
30422
30422
|
r("tbody", null, [
|
30423
|
-
(u(!0), p(Y, null, r1(o.result, (
|
30424
|
-
key: `option_${
|
30423
|
+
(u(!0), p(Y, null, r1(o.result, (m, z) => (u(), p("tr", {
|
30424
|
+
key: `option_${m.reference}`,
|
30425
30425
|
class: $({
|
30426
|
-
"AVRankedSummary--elected":
|
30427
|
-
"AVRankedSummary--tied":
|
30426
|
+
"AVRankedSummary--elected": m.elected,
|
30427
|
+
"AVRankedSummary--tied": m.tied
|
30428
30428
|
})
|
30429
30429
|
}, [
|
30430
|
-
r("td", null, M(d.elected && z + 1 || ""), 1),
|
30431
30430
|
r("td", {
|
30432
30431
|
class: $({
|
30433
|
-
"AVRankedSummary--title-color-white": o.theme === "dark" && !
|
30434
|
-
"AVRankedSummary--title-color-black": o.theme === "light"
|
30432
|
+
"AVRankedSummary--title-color-white": o.theme === "dark" && !m.elected && !m.tied,
|
30433
|
+
"AVRankedSummary--title-color-black": o.theme === "light" || m.elected || m.tied
|
30434
|
+
})
|
30435
|
+
}, M(m.elected && z + 1 || ""), 3),
|
30436
|
+
r("td", {
|
30437
|
+
class: $({
|
30438
|
+
"AVRankedSummary--title-color-white": o.theme === "dark" && !m.elected && !m.tied,
|
30439
|
+
"AVRankedSummary--title-color-black": o.theme === "light" || m.elected || m.tied
|
30435
30440
|
})
|
30436
|
-
}, M(
|
30437
|
-
(u(!0), p(Y, null, r1(
|
30441
|
+
}, M(m.title[i.value]), 3),
|
30442
|
+
(u(!0), p(Y, null, r1(m.rounds, (d, h) => (u(), p("td", {
|
30438
30443
|
key: `round_nr_${h}`,
|
30439
30444
|
class: $(["AVRankedSummary--text", {
|
30440
30445
|
"AVRankedSummary--text-bold": h + 1 === l.value,
|
30441
|
-
"AVRankedSummary--title-color-white": o.theme === "dark" && !
|
30442
|
-
"AVRankedSummary--title-color-black": o.theme === "light"
|
30446
|
+
"AVRankedSummary--title-color-white": o.theme === "dark" && !m.elected && !m.tied,
|
30447
|
+
"AVRankedSummary--title-color-black": o.theme === "light" || m.elected || m.tied
|
30443
30448
|
}])
|
30444
|
-
}, M(
|
30449
|
+
}, M(d.count), 3))), 128))
|
30445
30450
|
], 2))), 128))
|
30446
30451
|
])
|
30447
30452
|
])
|
@@ -30466,7 +30471,7 @@ const $41 = {
|
|
30466
30471
|
], 2)
|
30467
30472
|
], 64));
|
30468
30473
|
}
|
30469
|
-
}), s61 = /* @__PURE__ */ J(t61, [["__scopeId", "data-v-
|
30474
|
+
}), s61 = /* @__PURE__ */ J(t61, [["__scopeId", "data-v-3c90423a"]]), n61 = { class: "AVInstantRunoffSummary" }, i61 = {
|
30470
30475
|
class: "AVInstantRunoffSummary--title",
|
30471
30476
|
"data-test": "seat-title"
|
30472
30477
|
}, o61 = { class: "AVInstantRunoffSummary--container" }, r61 = { class: "AVInstantRunoffSummary--table-container" }, f61 = {
|
@@ -30539,7 +30544,7 @@ const $41 = {
|
|
30539
30544
|
},
|
30540
30545
|
{ deep: !0 }
|
30541
30546
|
), (o, f) => {
|
30542
|
-
const
|
30547
|
+
const m = P("AVIcon"), z = p2("tooltip");
|
30543
30548
|
return u(), p("div", n61, [
|
30544
30549
|
r("h5", i61, M(O(n)("js.components.AVInstantRunoffSummary.seat_n", { n: c.seatNumber })), 1),
|
30545
30550
|
r("div", o61, [
|
@@ -30548,14 +30553,14 @@ const $41 = {
|
|
30548
30553
|
r("thead", u61, [
|
30549
30554
|
r("tr", null, [
|
30550
30555
|
r("th", null, M(O(n)("js.components.AVInstantRunoffSummary.header.candidate")), 1),
|
30551
|
-
(u(!0), p(Y, null, r1(c.rounds, (
|
30556
|
+
(u(!0), p(Y, null, r1(c.rounds, (d, h) => R1((u(), p("th", {
|
30552
30557
|
key: `instant_runoff_seat_${c.seatNumber}_round_${h}`,
|
30553
30558
|
class: "AVInstantRunoffSummary--text AVInstantRunoffSummary--help"
|
30554
30559
|
}, [
|
30555
30560
|
o1(M(O(n)("js.components.AVInstantRunoffSummary.header.round_n", {
|
30556
30561
|
n: h + 1
|
30557
30562
|
})) + " ", 1),
|
30558
|
-
w(
|
30563
|
+
w(m, {
|
30559
30564
|
icon: "info-circle",
|
30560
30565
|
class: "AVInstantRunoffSummary--help"
|
30561
30566
|
})
|
@@ -30565,41 +30570,41 @@ const $41 = {
|
|
30565
30570
|
])
|
30566
30571
|
]),
|
30567
30572
|
r("tbody", null, [
|
30568
|
-
(u(!0), p(Y, null, r1(c.sortedResult, (
|
30569
|
-
|
30570
|
-
r("td", null, M(
|
30573
|
+
(u(!0), p(Y, null, r1(c.sortedResult, (d, h) => (u(), p("tr", { key: h }, [
|
30574
|
+
d.title ? (u(), p(Y, { key: 0 }, [
|
30575
|
+
r("td", null, M(d.title[i.value]), 1),
|
30571
30576
|
(u(!0), p(Y, null, r1(c.rounds.length, (b) => (u(), p("td", {
|
30572
30577
|
key: `instant_runoff_seat_${c.seatNumber}_number_${b}`,
|
30573
30578
|
class: $(["AVInstantRunoffSummary--text", {
|
30574
30579
|
"AVInstantRunoffSummary--elected": t(
|
30575
|
-
|
30580
|
+
d.reference,
|
30576
30581
|
b - 1
|
30577
30582
|
),
|
30578
30583
|
"AVInstantRunoffSummary--eliminated": a(
|
30579
|
-
|
30584
|
+
d.reference,
|
30580
30585
|
b - 1
|
30581
30586
|
),
|
30582
30587
|
"AVInstantRunoffSummary--title-color-white": c.theme === "dark",
|
30583
30588
|
"AVInstantRunoffSummary--title-color-black": c.theme === "light"
|
30584
30589
|
}])
|
30585
|
-
}, M(l(
|
30590
|
+
}, M(l(d.reference, b - 1)), 3))), 128))
|
30586
30591
|
], 64)) : T("", !0)
|
30587
30592
|
]))), 128)),
|
30588
30593
|
r("tr", null, [
|
30589
30594
|
r("td", null, M(O(n)(
|
30590
30595
|
"js.components.AVInstantRunoffSummary.summary.transfered_votes"
|
30591
30596
|
)), 1),
|
30592
|
-
(u(!0), p(Y, null, r1(c.rounds.length, (
|
30593
|
-
key: `instant_runoff_seat_${c.seatNumber}_transferred_${
|
30597
|
+
(u(!0), p(Y, null, r1(c.rounds.length, (d) => (u(), p("td", {
|
30598
|
+
key: `instant_runoff_seat_${c.seatNumber}_transferred_${d}`,
|
30594
30599
|
class: "AVInstantRunoffSummary--text"
|
30595
|
-
}, M(c.rounds[
|
30600
|
+
}, M(c.rounds[d - 1].transferred), 1))), 128))
|
30596
30601
|
]),
|
30597
30602
|
r("tr", null, [
|
30598
30603
|
r("td", null, M(O(n)("js.components.AVInstantRunoffSummary.summary.exhausted")), 1),
|
30599
|
-
(u(!0), p(Y, null, r1(c.rounds.length, (
|
30600
|
-
key: `instant_runoff_seat_${c.seatNumber}_exhausted_${
|
30604
|
+
(u(!0), p(Y, null, r1(c.rounds.length, (d) => (u(), p("td", {
|
30605
|
+
key: `instant_runoff_seat_${c.seatNumber}_exhausted_${d}`,
|
30601
30606
|
class: "AVInstantRunoffSummary--text AVInstantRunoffSummary--cell-text"
|
30602
|
-
}, M(c.rounds[
|
30607
|
+
}, M(c.rounds[d - 1].exhausted), 1))), 128))
|
30603
30608
|
])
|
30604
30609
|
])
|
30605
30610
|
])
|
@@ -30627,7 +30632,7 @@ const $41 = {
|
|
30627
30632
|
}), L61 = /* @__PURE__ */ J(h61, [["__scopeId", "data-v-cb5cf40d"]]);
|
30628
30633
|
var M61 = {}, g61 = { class: "flex items-center" }, b61 = { class: "flex flex-col items-center justify-center p-3 w-full" };
|
30629
30634
|
function v61(c, e) {
|
30630
|
-
var l = P("AVNavbarItem"), a = P("AVNavigationItemList"), t = P("AVMenuDropdown"), s = P("AVNavbar"), n = P("AVLabel"), i = P("AVTabSwitcher"), o = P("AVSidebarItem"), f = P("AVButton"),
|
30635
|
+
var l = P("AVNavbarItem"), a = P("AVNavigationItemList"), t = P("AVMenuDropdown"), s = P("AVNavbar"), n = P("AVLabel"), i = P("AVTabSwitcher"), o = P("AVSidebarItem"), f = P("AVButton"), m = P("AVSidebar"), z = P("AVContent"), d = P("AVFooter");
|
30631
30636
|
return u(), p(Y, null, [
|
30632
30637
|
w(s, null, {
|
30633
30638
|
default: a1(function() {
|
@@ -30673,7 +30678,7 @@ function v61(c, e) {
|
|
30673
30678
|
w(z, null, {
|
30674
30679
|
sidebar: a1(function() {
|
30675
30680
|
return [
|
30676
|
-
w(
|
30681
|
+
w(m, null, {
|
30677
30682
|
default: a1(function() {
|
30678
30683
|
return [
|
30679
30684
|
r("div", b61, [
|
@@ -30785,13 +30790,13 @@ function v61(c, e) {
|
|
30785
30790
|
}),
|
30786
30791
|
_: 1
|
30787
30792
|
}),
|
30788
|
-
w(
|
30793
|
+
w(d)
|
30789
30794
|
], 64);
|
30790
30795
|
}
|
30791
30796
|
const C61 = /* @__PURE__ */ J(M61, [["render", v61]]);
|
30792
30797
|
var A61 = {}, _61 = { class: "flex items-center" }, x61 = { class: "flex flex-col items-center justify-center p-3 w-full" };
|
30793
30798
|
function N61(c, e) {
|
30794
|
-
var l = P("AVNavbarItem"), a = P("AVNavigationItemList"), t = P("AVMenuDropdown"), s = P("AVNavbar"), n = P("AVLabel"), i = P("AVTabSwitcher"), o = P("AVSidebarItem"), f = P("AVButton"),
|
30799
|
+
var l = P("AVNavbarItem"), a = P("AVNavigationItemList"), t = P("AVMenuDropdown"), s = P("AVNavbar"), n = P("AVLabel"), i = P("AVTabSwitcher"), o = P("AVSidebarItem"), f = P("AVButton"), m = P("AVSidebar"), z = P("AVContent"), d = P("AVFooter");
|
30795
30800
|
return u(), p(Y, null, [
|
30796
30801
|
w(s, null, {
|
30797
30802
|
default: a1(function() {
|
@@ -30837,7 +30842,7 @@ function N61(c, e) {
|
|
30837
30842
|
w(z, null, {
|
30838
30843
|
sidebar: a1(function() {
|
30839
30844
|
return [
|
30840
|
-
w(
|
30845
|
+
w(m, null, {
|
30841
30846
|
default: a1(function() {
|
30842
30847
|
return [
|
30843
30848
|
r("div", x61, [
|
@@ -30982,7 +30987,7 @@ function N61(c, e) {
|
|
30982
30987
|
}),
|
30983
30988
|
_: 1
|
30984
30989
|
}),
|
30985
|
-
w(
|
30990
|
+
w(d)
|
30986
30991
|
], 64);
|
30987
30992
|
}
|
30988
30993
|
const y61 = /* @__PURE__ */ J(A61, [["render", N61]]);
|
@@ -31114,7 +31119,7 @@ const w61 = /* @__PURE__ */ J(k61, [["render", V61]]), E61 = { class: "flex item
|
|
31114
31119
|
}
|
31115
31120
|
];
|
31116
31121
|
return (l, a) => {
|
31117
|
-
const t = P("AVNavbarItem"), s = P("AVNavigationItemList"), n = P("AVMenuDropdown"), i = P("AVNavbar"), o = P("AVIcon"), f = P("AVCard"),
|
31122
|
+
const t = P("AVNavbarItem"), s = P("AVNavigationItemList"), n = P("AVMenuDropdown"), i = P("AVNavbar"), o = P("AVIcon"), f = P("AVCard"), m = P("AVElectionCard"), z = P("AVContent"), d = P("AVFooter");
|
31118
31123
|
return u(), p(Y, null, [
|
31119
31124
|
w(i, null, {
|
31120
31125
|
default: a1(() => [
|
@@ -31196,7 +31201,7 @@ const w61 = /* @__PURE__ */ J(k61, [["render", V61]]), E61 = { class: "flex item
|
|
31196
31201
|
"data-test": "title"
|
31197
31202
|
}, "Once you create new elections you will see them displayed in this dashboard.", -1))
|
31198
31203
|
])) : T("", !0),
|
31199
|
-
(u(), p(Y, null, r1(e, (h) => w(
|
31204
|
+
(u(), p(Y, null, r1(e, (h) => w(m, {
|
31200
31205
|
key: h.id,
|
31201
31206
|
id: h.id,
|
31202
31207
|
name: h.name,
|
@@ -31215,7 +31220,7 @@ const w61 = /* @__PURE__ */ J(k61, [["render", V61]]), E61 = { class: "flex item
|
|
31215
31220
|
]),
|
31216
31221
|
_: 1
|
31217
31222
|
}),
|
31218
|
-
w(
|
31223
|
+
w(d)
|
31219
31224
|
], 64);
|
31220
31225
|
};
|
31221
31226
|
}
|