@assemblyvoting/ui-library 3.4.11-beta.2 → 3.4.11-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +516 -501
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as W, h as P4, getCurrentInstance as $3, effectScope as Sj, inject as A1, onMounted as p1, onUnmounted as Us, shallowRef as Ws, ref as a1, computed as
|
1
|
+
import { defineComponent as W, h as P4, getCurrentInstance as $3, effectScope as Sj, inject as A1, onMounted as p1, onUnmounted as Us, shallowRef as Ws, ref as a1, computed as I, onBeforeMount as Vj, watch as s1, Fragment as K, isRef as wj, createVNode as V, Text as Ej, pushScopeId as Tj, popScopeId as Hj, nextTick as Gs, openBlock as u, createBlock as Z, createElementBlock as z, normalizeClass as F, renderSlot as g1, normalizeProps as Ij, guardReactiveProps as Pj, withScopeId as Oj, resolveComponent as O, normalizeStyle as P1, withKeys as H6, createElementVNode as r, createCommentVNode as E, mergeProps as I6, withCtx as t1, createApp as $j, toDisplayString as M, createTextVNode as n1, resolveDirective as s2, withDirectives as $1, reactive as Zs, provide as Ys, renderList as r1, Transition as E2, unref as T, useCssVars as Rj, vShow as _4, withModifiers as f2, createSlots as Dj, vModelText as Ks } from "vue";
|
2
2
|
/*!
|
3
3
|
* shared v9.14.1
|
4
4
|
* (c) 2024 kazuya kawaguchi
|
@@ -363,8 +363,8 @@ function uU(c, e = {}) {
|
|
363
363
|
}
|
364
364
|
function $(L, v = !0) {
|
365
365
|
const R = (_1 = !1, v1 = "", L1 = !1) => {
|
366
|
-
const
|
367
|
-
return
|
366
|
+
const H = L.currentPeek();
|
367
|
+
return H === "{" ? v1 === "%" ? !1 : _1 : H === "@" || !H ? v1 === "%" ? !0 : _1 : H === "%" ? (L.peek(), R(_1, "%", !0)) : H === "|" ? v1 === "%" || L1 ? !0 : !(v1 === L2 || v1 === F1) : H === L2 ? (L.peek(), R(!0, L2, L1)) : H === F1 ? (L.peek(), R(!0, F1, L1)) : !0;
|
368
368
|
}, Q = R();
|
369
369
|
return v && L.resetPeek(), Q;
|
370
370
|
}
|
@@ -2423,7 +2423,7 @@ function F6(c = {}, e) {
|
|
2423
2423
|
let w = c.pluralRules || l && l.pluralRules, k;
|
2424
2424
|
k = (() => {
|
2425
2425
|
a && Sa(null);
|
2426
|
-
const
|
2426
|
+
const H = {
|
2427
2427
|
version: NW,
|
2428
2428
|
locale: f.value,
|
2429
2429
|
fallbackLocale: d.value,
|
@@ -2442,8 +2442,8 @@ function F6(c = {}, e) {
|
|
2442
2442
|
messageCompiler: c.messageCompiler,
|
2443
2443
|
__meta: { framework: "vue" }
|
2444
2444
|
};
|
2445
|
-
|
2446
|
-
const q = iW(
|
2445
|
+
H.datetimeFormats = m.value, H.numberFormats = h.value, H.__datetimeFormatters = l1(k) ? k.__datetimeFormatters : void 0, H.__numberFormatters = l1(k) ? k.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (H.__v_emitter = l1(k) ? k.__v_emitter : void 0);
|
2446
|
+
const q = iW(H);
|
2447
2447
|
return a && Sa(q), q;
|
2448
2448
|
})(), S3(k, f.value, d.value);
|
2449
2449
|
function J() {
|
@@ -2455,37 +2455,37 @@ function F6(c = {}, e) {
|
|
2455
2455
|
h.value
|
2456
2456
|
];
|
2457
2457
|
}
|
2458
|
-
const $ =
|
2458
|
+
const $ = I({
|
2459
2459
|
get: () => f.value,
|
2460
|
-
set: (
|
2461
|
-
f.value =
|
2460
|
+
set: (H) => {
|
2461
|
+
f.value = H, k.locale = f.value;
|
2462
2462
|
}
|
2463
|
-
}), c1 =
|
2463
|
+
}), c1 = I({
|
2464
2464
|
get: () => d.value,
|
2465
|
-
set: (
|
2466
|
-
d.value =
|
2465
|
+
set: (H) => {
|
2466
|
+
d.value = H, k.fallbackLocale = d.value, S3(k, f.value, H);
|
2467
2467
|
}
|
2468
|
-
}), f1 =
|
2468
|
+
}), f1 = I(() => p.value), U = /* @__PURE__ */ I(() => m.value), X = /* @__PURE__ */ I(() => h.value);
|
2469
2469
|
function N1() {
|
2470
2470
|
return M1(N) ? N : null;
|
2471
2471
|
}
|
2472
|
-
function E1(
|
2473
|
-
N =
|
2472
|
+
function E1(H) {
|
2473
|
+
N = H, k.postTranslation = H;
|
2474
2474
|
}
|
2475
2475
|
function B1() {
|
2476
2476
|
return _;
|
2477
2477
|
}
|
2478
|
-
function I1(
|
2479
|
-
|
2478
|
+
function I1(H) {
|
2479
|
+
H !== null && (b = Ba(H)), _ = H, k.missing = b;
|
2480
2480
|
}
|
2481
|
-
function W1(
|
2482
|
-
return
|
2481
|
+
function W1(H, q) {
|
2482
|
+
return H !== "translate" || !q.resolvedMessage;
|
2483
2483
|
}
|
2484
|
-
const T1 = (
|
2484
|
+
const T1 = (H, q, h1, k1, x2, p4) => {
|
2485
2485
|
J();
|
2486
2486
|
let a3;
|
2487
2487
|
try {
|
2488
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (k.fallbackContext = l ? nW() : void 0), a3 =
|
2488
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (k.fallbackContext = l ? nW() : void 0), a3 = H(k);
|
2489
2489
|
} finally {
|
2490
2490
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, a || (k.fallbackContext = void 0);
|
2491
2491
|
}
|
@@ -2511,87 +2511,87 @@ function F6(c = {}, e) {
|
|
2511
2511
|
throw w1(d1.UNEXPECTED_RETURN_TYPE);
|
2512
2512
|
}
|
2513
2513
|
};
|
2514
|
-
function Q1(...
|
2515
|
-
return T1((q) => Reflect.apply(Ta, null, [q, ...
|
2514
|
+
function Q1(...H) {
|
2515
|
+
return T1((q) => Reflect.apply(Ta, null, [q, ...H]), () => a6(...H), "translate", (q) => Reflect.apply(q.t, q, [...H]), (q) => q, (q) => j(q));
|
2516
2516
|
}
|
2517
|
-
function h2(...
|
2518
|
-
const [q, h1, k1] =
|
2517
|
+
function h2(...H) {
|
2518
|
+
const [q, h1, k1] = H;
|
2519
2519
|
if (k1 && !u1(k1))
|
2520
2520
|
throw w1(d1.INVALID_ARGUMENT);
|
2521
2521
|
return Q1(q, h1, O1({ resolvedMessage: !0 }, k1 || {}));
|
2522
2522
|
}
|
2523
|
-
function _2(...
|
2524
|
-
return T1((q) => Reflect.apply(Ia, null, [q, ...
|
2523
|
+
function _2(...H) {
|
2524
|
+
return T1((q) => Reflect.apply(Ia, null, [q, ...H]), () => s6(...H), "datetime format", (q) => Reflect.apply(q.d, q, [...H]), () => N4, (q) => j(q));
|
2525
2525
|
}
|
2526
|
-
function R1(...
|
2527
|
-
return T1((q) => Reflect.apply(Oa, null, [q, ...
|
2526
|
+
function R1(...H) {
|
2527
|
+
return T1((q) => Reflect.apply(Oa, null, [q, ...H]), () => n6(...H), "number format", (q) => Reflect.apply(q.n, q, [...H]), () => N4, (q) => j(q));
|
2528
2528
|
}
|
2529
|
-
function n2(
|
2530
|
-
return
|
2529
|
+
function n2(H) {
|
2530
|
+
return H.map((q) => j(q) || S1(q) || o1(q) ? Ra(String(q)) : q);
|
2531
2531
|
}
|
2532
2532
|
const _3 = {
|
2533
2533
|
normalize: n2,
|
2534
|
-
interpolate: (
|
2534
|
+
interpolate: (H) => H,
|
2535
2535
|
type: "vnode"
|
2536
2536
|
};
|
2537
|
-
function t3(...
|
2537
|
+
function t3(...H) {
|
2538
2538
|
return T1(
|
2539
2539
|
(q) => {
|
2540
2540
|
let h1;
|
2541
2541
|
const k1 = q;
|
2542
2542
|
try {
|
2543
|
-
k1.processor = _3, h1 = Reflect.apply(Ta, null, [k1, ...
|
2543
|
+
k1.processor = _3, h1 = Reflect.apply(Ta, null, [k1, ...H]);
|
2544
2544
|
} finally {
|
2545
2545
|
k1.processor = null;
|
2546
2546
|
}
|
2547
2547
|
return h1;
|
2548
2548
|
},
|
2549
|
-
() => a6(...
|
2549
|
+
() => a6(...H),
|
2550
2550
|
"translate",
|
2551
2551
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2552
|
-
(q) => q[o6](...
|
2552
|
+
(q) => q[o6](...H),
|
2553
2553
|
(q) => [Ra(q)],
|
2554
2554
|
(q) => b1(q)
|
2555
2555
|
);
|
2556
2556
|
}
|
2557
|
-
function x3(...
|
2557
|
+
function x3(...H) {
|
2558
2558
|
return T1(
|
2559
|
-
(q) => Reflect.apply(Oa, null, [q, ...
|
2560
|
-
() => n6(...
|
2559
|
+
(q) => Reflect.apply(Oa, null, [q, ...H]),
|
2560
|
+
() => n6(...H),
|
2561
2561
|
"number format",
|
2562
2562
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2563
|
-
(q) => q[f6](...
|
2563
|
+
(q) => q[f6](...H),
|
2564
2564
|
Fa,
|
2565
2565
|
(q) => j(q) || b1(q)
|
2566
2566
|
);
|
2567
2567
|
}
|
2568
|
-
function y3(...
|
2568
|
+
function y3(...H) {
|
2569
2569
|
return T1(
|
2570
|
-
(q) => Reflect.apply(Ia, null, [q, ...
|
2571
|
-
() => s6(...
|
2570
|
+
(q) => Reflect.apply(Ia, null, [q, ...H]),
|
2571
|
+
() => s6(...H),
|
2572
2572
|
"datetime format",
|
2573
2573
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2574
|
-
(q) => q[r6](...
|
2574
|
+
(q) => q[r6](...H),
|
2575
2575
|
Fa,
|
2576
2576
|
(q) => j(q) || b1(q)
|
2577
2577
|
);
|
2578
2578
|
}
|
2579
|
-
function N3(
|
2580
|
-
w =
|
2579
|
+
function N3(H) {
|
2580
|
+
w = H, k.pluralRules = w;
|
2581
2581
|
}
|
2582
|
-
function B(
|
2582
|
+
function B(H, q) {
|
2583
2583
|
return T1(() => {
|
2584
|
-
if (!
|
2584
|
+
if (!H)
|
2585
2585
|
return !1;
|
2586
|
-
const h1 = j(q) ? q : f.value, k1 = D2(h1), x2 = k.messageResolver(k1,
|
2586
|
+
const h1 = j(q) ? q : f.value, k1 = D2(h1), x2 = k.messageResolver(k1, H);
|
2587
2587
|
return i ? x2 != null : H2(x2) || X1(x2) || j(x2);
|
2588
|
-
}, () => [
|
2588
|
+
}, () => [H], "translate exists", (h1) => Reflect.apply(h1.te, h1, [H, q]), VW, (h1) => o1(h1));
|
2589
2589
|
}
|
2590
|
-
function z1(
|
2590
|
+
function z1(H) {
|
2591
2591
|
let q = null;
|
2592
2592
|
const h1 = sn(k, d.value, f.value);
|
2593
2593
|
for (let k1 = 0; k1 < h1.length; k1++) {
|
2594
|
-
const x2 = p.value[h1[k1]] || {}, p4 = k.messageResolver(x2,
|
2594
|
+
const x2 = p.value[h1[k1]] || {}, p4 = k.messageResolver(x2, H);
|
2595
2595
|
if (p4 != null) {
|
2596
2596
|
q = p4;
|
2597
2597
|
break;
|
@@ -2599,52 +2599,52 @@ function F6(c = {}, e) {
|
|
2599
2599
|
}
|
2600
2600
|
return q;
|
2601
2601
|
}
|
2602
|
-
function A3(
|
2603
|
-
const q = z1(
|
2604
|
-
return q ?? (l ? l.tm(
|
2602
|
+
function A3(H) {
|
2603
|
+
const q = z1(H);
|
2604
|
+
return q ?? (l ? l.tm(H) || {} : {});
|
2605
2605
|
}
|
2606
|
-
function D2(
|
2607
|
-
return p.value[
|
2606
|
+
function D2(H) {
|
2607
|
+
return p.value[H] || {};
|
2608
2608
|
}
|
2609
|
-
function k3(
|
2609
|
+
function k3(H, q) {
|
2610
2610
|
if (s) {
|
2611
|
-
const h1 = { [
|
2611
|
+
const h1 = { [H]: q };
|
2612
2612
|
for (const k1 in h1)
|
2613
2613
|
x4(h1, k1) && F3(h1[k1]);
|
2614
|
-
q = h1[
|
2614
|
+
q = h1[H];
|
2615
2615
|
}
|
2616
|
-
p.value[
|
2616
|
+
p.value[H] = q, k.messages = p.value;
|
2617
2617
|
}
|
2618
|
-
function j0(
|
2619
|
-
p.value[
|
2620
|
-
const h1 = { [
|
2618
|
+
function j0(H, q) {
|
2619
|
+
p.value[H] = p.value[H] || {};
|
2620
|
+
const h1 = { [H]: q };
|
2621
2621
|
if (s)
|
2622
2622
|
for (const k1 in h1)
|
2623
2623
|
x4(h1, k1) && F3(h1[k1]);
|
2624
|
-
q = h1[
|
2624
|
+
q = h1[H], g4(q, p.value[H]), k.messages = p.value;
|
2625
2625
|
}
|
2626
|
-
function L(
|
2627
|
-
return m.value[
|
2626
|
+
function L(H) {
|
2627
|
+
return m.value[H] || {};
|
2628
2628
|
}
|
2629
|
-
function v(
|
2630
|
-
m.value[
|
2629
|
+
function v(H, q) {
|
2630
|
+
m.value[H] = q, k.datetimeFormats = m.value, Pa(k, H, q);
|
2631
2631
|
}
|
2632
|
-
function R(
|
2633
|
-
m.value[
|
2632
|
+
function R(H, q) {
|
2633
|
+
m.value[H] = O1(m.value[H] || {}, q), k.datetimeFormats = m.value, Pa(k, H, q);
|
2634
2634
|
}
|
2635
|
-
function Q(
|
2636
|
-
return h.value[
|
2635
|
+
function Q(H) {
|
2636
|
+
return h.value[H] || {};
|
2637
2637
|
}
|
2638
|
-
function _1(
|
2639
|
-
h.value[
|
2638
|
+
function _1(H, q) {
|
2639
|
+
h.value[H] = q, k.numberFormats = h.value, $a(k, H, q);
|
2640
2640
|
}
|
2641
|
-
function v1(
|
2642
|
-
h.value[
|
2641
|
+
function v1(H, q) {
|
2642
|
+
h.value[H] = O1(h.value[H] || {}, q), k.numberFormats = h.value, $a(k, H, q);
|
2643
2643
|
}
|
2644
|
-
qa++, l && a2 && (s1(l.locale, (
|
2645
|
-
o && (f.value =
|
2646
|
-
}), s1(l.fallbackLocale, (
|
2647
|
-
o && (d.value =
|
2644
|
+
qa++, l && a2 && (s1(l.locale, (H) => {
|
2645
|
+
o && (f.value = H, k.locale = H, S3(k, f.value, d.value));
|
2646
|
+
}), s1(l.fallbackLocale, (H) => {
|
2647
|
+
o && (d.value = H, k.fallbackLocale = H, S3(k, f.value, d.value));
|
2648
2648
|
}));
|
2649
2649
|
const L1 = {
|
2650
2650
|
id: qa,
|
@@ -2653,8 +2653,8 @@ function F6(c = {}, e) {
|
|
2653
2653
|
get inheritLocale() {
|
2654
2654
|
return o;
|
2655
2655
|
},
|
2656
|
-
set inheritLocale(
|
2657
|
-
o =
|
2656
|
+
set inheritLocale(H) {
|
2657
|
+
o = H, H && l && (f.value = l.locale.value, d.value = l.fallbackLocale.value, S3(k, f.value, d.value));
|
2658
2658
|
},
|
2659
2659
|
get availableLocales() {
|
2660
2660
|
return Object.keys(p.value).sort();
|
@@ -2672,38 +2672,38 @@ function F6(c = {}, e) {
|
|
2672
2672
|
get missingWarn() {
|
2673
2673
|
return g;
|
2674
2674
|
},
|
2675
|
-
set missingWarn(
|
2676
|
-
g =
|
2675
|
+
set missingWarn(H) {
|
2676
|
+
g = H, k.missingWarn = g;
|
2677
2677
|
},
|
2678
2678
|
get fallbackWarn() {
|
2679
2679
|
return C;
|
2680
2680
|
},
|
2681
|
-
set fallbackWarn(
|
2682
|
-
C =
|
2681
|
+
set fallbackWarn(H) {
|
2682
|
+
C = H, k.fallbackWarn = C;
|
2683
2683
|
},
|
2684
2684
|
get fallbackRoot() {
|
2685
2685
|
return x;
|
2686
2686
|
},
|
2687
|
-
set fallbackRoot(
|
2688
|
-
x =
|
2687
|
+
set fallbackRoot(H) {
|
2688
|
+
x = H;
|
2689
2689
|
},
|
2690
2690
|
get fallbackFormat() {
|
2691
2691
|
return y;
|
2692
2692
|
},
|
2693
|
-
set fallbackFormat(
|
2694
|
-
y =
|
2693
|
+
set fallbackFormat(H) {
|
2694
|
+
y = H, k.fallbackFormat = y;
|
2695
2695
|
},
|
2696
2696
|
get warnHtmlMessage() {
|
2697
2697
|
return S;
|
2698
2698
|
},
|
2699
|
-
set warnHtmlMessage(
|
2700
|
-
S =
|
2699
|
+
set warnHtmlMessage(H) {
|
2700
|
+
S = H, k.warnHtmlMessage = H;
|
2701
2701
|
},
|
2702
2702
|
get escapeParameter() {
|
2703
2703
|
return A;
|
2704
2704
|
},
|
2705
|
-
set escapeParameter(
|
2706
|
-
A =
|
2705
|
+
set escapeParameter(H) {
|
2706
|
+
A = H, k.escapeParameter = H;
|
2707
2707
|
},
|
2708
2708
|
t: Q1,
|
2709
2709
|
getLocaleMessage: D2,
|
@@ -2715,8 +2715,8 @@ function F6(c = {}, e) {
|
|
2715
2715
|
setMissingHandler: I1,
|
2716
2716
|
[Nn]: N3
|
2717
2717
|
};
|
2718
|
-
return L1.datetimeFormats = U, L1.numberFormats = X, L1.rt = h2, L1.te = B, L1.tm = A3, L1.d = _2, L1.n = R1, L1.getDateTimeFormat = L, L1.setDateTimeFormat = v, L1.mergeDateTimeFormat = R, L1.getNumberFormat = Q, L1.setNumberFormat = _1, L1.mergeNumberFormat = v1, L1[An] = t, L1[o6] = t3, L1[r6] = y3, L1[f6] = x3, process.env.NODE_ENV !== "production" && (L1[J2] = (
|
2719
|
-
k.__v_emitter =
|
2718
|
+
return L1.datetimeFormats = U, L1.numberFormats = X, L1.rt = h2, L1.te = B, L1.tm = A3, L1.d = _2, L1.n = R1, L1.getDateTimeFormat = L, L1.setDateTimeFormat = v, L1.mergeDateTimeFormat = R, L1.getNumberFormat = Q, L1.setNumberFormat = _1, L1.mergeNumberFormat = v1, L1[An] = t, L1[o6] = t3, L1[r6] = y3, L1[f6] = x3, process.env.NODE_ENV !== "production" && (L1[J2] = (H) => {
|
2719
|
+
k.__v_emitter = H;
|
2720
2720
|
}, L1[D3] = () => {
|
2721
2721
|
k.__v_emitter = void 0;
|
2722
2722
|
}), L1;
|
@@ -3672,17 +3672,17 @@ function fG(c, e, l, t = {}) {
|
|
3672
3672
|
p.value
|
3673
3673
|
];
|
3674
3674
|
}
|
3675
|
-
const P =
|
3675
|
+
const P = I({
|
3676
3676
|
get: () => s.value ? s.value.locale.value : i.value,
|
3677
3677
|
set: (B) => {
|
3678
3678
|
s.value && (s.value.locale.value = B), i.value = B;
|
3679
3679
|
}
|
3680
|
-
}), w =
|
3680
|
+
}), w = I({
|
3681
3681
|
get: () => s.value ? s.value.fallbackLocale.value : o.value,
|
3682
3682
|
set: (B) => {
|
3683
3683
|
s.value && (s.value.fallbackLocale.value = B), o.value = B;
|
3684
3684
|
}
|
3685
|
-
}), k =
|
3685
|
+
}), k = I(() => s.value ? s.value.messages.value : f.value), D = I(() => d.value), J = I(() => p.value);
|
3686
3686
|
function $() {
|
3687
3687
|
return s.value ? s.value.getPostTranslationHandler() : y;
|
3688
3688
|
}
|
@@ -24606,9 +24606,9 @@ const NK = W({
|
|
24606
24606
|
).join("");
|
24607
24607
|
return h.charAt(0).toLowerCase() + h.slice(1);
|
24608
24608
|
}
|
24609
|
-
const s =
|
24609
|
+
const s = I(
|
24610
24610
|
() => a(e(c.icon).iconName)
|
24611
|
-
), n =
|
24611
|
+
), n = I(() => l[s.value]), i = I(
|
24612
24612
|
() => yK(n.value, {
|
24613
24613
|
symbol: !1,
|
24614
24614
|
title: n.value
|
@@ -24622,7 +24622,7 @@ const NK = W({
|
|
24622
24622
|
},
|
24623
24623
|
{ immediate: !0 }
|
24624
24624
|
);
|
24625
|
-
const o =
|
24625
|
+
const o = I(
|
24626
24626
|
() => i.value ? t(i.value.abstract[0]) : null
|
24627
24627
|
);
|
24628
24628
|
return () => o.value;
|
@@ -24832,7 +24832,7 @@ const NK = W({
|
|
24832
24832
|
setup(c, { emit: e }) {
|
24833
24833
|
const l = c, t = e, a = (n) => {
|
24834
24834
|
t("update:modelValue", n.target.value);
|
24835
|
-
}, s =
|
24835
|
+
}, s = I(() => ({
|
24836
24836
|
AVTextInput: !0,
|
24837
24837
|
error: !!l.error,
|
24838
24838
|
icon: !!l.icon,
|
@@ -25523,10 +25523,10 @@ const NK = W({
|
|
25523
25523
|
active: !1,
|
25524
25524
|
customWidth: null,
|
25525
25525
|
id: null
|
25526
|
-
}), s =
|
25526
|
+
}), s = I(() => l.options.map((f) => typeof f == "string" ? {
|
25527
25527
|
label: f,
|
25528
25528
|
value: f
|
25529
|
-
} : f)), n =
|
25529
|
+
} : f)), n = I(() => s.value.find(
|
25530
25530
|
(f) => f.value === l.modelValue
|
25531
25531
|
));
|
25532
25532
|
p1(() => {
|
@@ -25616,7 +25616,7 @@ const NK = W({
|
|
25616
25616
|
}), PX = /* @__PURE__ */ G(IX, [["__scopeId", "data-v-09756cc6"]]), OX = ["aria-labelledby"], $X = /* @__PURE__ */ W({
|
25617
25617
|
__name: "AVDropdownContent",
|
25618
25618
|
setup(c) {
|
25619
|
-
const e = A1("sharedState"), l =
|
25619
|
+
const e = A1("sharedState"), l = I(() => e.active), t = I(() => e.id);
|
25620
25620
|
return (a, s) => (u(), Z(E2, { name: "dropdown-content" }, {
|
25621
25621
|
default: t1(() => [
|
25622
25622
|
l.value ? (u(), z("div", {
|
@@ -25884,7 +25884,7 @@ const NK = W({
|
|
25884
25884
|
o("fileFormatNotAccepted", k.name);
|
25885
25885
|
}
|
25886
25886
|
return w.files;
|
25887
|
-
}, h =
|
25887
|
+
}, h = I(() => a.accept.split(",")), g = I(() => a.accept.split(",").join(", ")), C = I(
|
25888
25888
|
() => h.value.map((A) => A.toLocaleLowerCase())
|
25889
25889
|
), x = (A) => {
|
25890
25890
|
const P = Math.round(A / 1024), w = Math.round(P / 1024), k = Math.round(w / 1024);
|
@@ -25967,23 +25967,23 @@ const NK = W({
|
|
25967
25967
|
]),
|
25968
25968
|
r("div", QX, [
|
25969
25969
|
s.value ? (u(), z("div", cJ, [
|
25970
|
-
r("div", eJ, M(
|
25970
|
+
r("div", eJ, M(T(t)("js.components.AVFileInput.release")), 1)
|
25971
25971
|
])) : (u(), z("div", lJ, [
|
25972
|
-
r("div", tJ, M(
|
25972
|
+
r("div", tJ, M(T(t)("js.components.AVFileInput.primary")), 1),
|
25973
25973
|
r("div", aJ, [
|
25974
|
-
n1(M(
|
25975
|
-
r("strong", null, M(
|
25976
|
-
n1(" " + M(
|
25974
|
+
n1(M(T(t)("js.components.AVFileInput.secondary.start")) + " ", 1),
|
25975
|
+
r("strong", null, M(T(t)("js.components.AVFileInput.secondary.strong")), 1),
|
25976
|
+
n1(" " + M(T(t)("js.components.AVFileInput.secondary.end")), 1)
|
25977
25977
|
])
|
25978
25978
|
]))
|
25979
25979
|
])
|
25980
25980
|
], 42, KX),
|
25981
25981
|
c.disableAcceptedFormats ? E("", !0) : (u(), z("p", sJ, [
|
25982
|
-
n1(M(
|
25982
|
+
n1(M(T(t)("js.components.AVFileInput.acceptedFormats")) + " ", 1),
|
25983
25983
|
r("em", nJ, M(g.value), 1)
|
25984
25984
|
])),
|
25985
25985
|
i.value.length ? (u(), z("div", iJ, [
|
25986
|
-
r("p", oJ, M(
|
25986
|
+
r("p", oJ, M(T(t)("js.components.AVFileInput.uploading")), 1),
|
25987
25987
|
(u(!0), z(K, null, r1(i.value, (D) => (u(), z("div", {
|
25988
25988
|
key: D.name,
|
25989
25989
|
class: F(["AVFileInput--preview-card", { error: c.error }])
|
@@ -26022,7 +26022,7 @@ const NK = W({
|
|
26022
26022
|
], 2))), 128))
|
26023
26023
|
])) : E("", !0),
|
26024
26024
|
c.currentValue.length ? (u(), z("div", pJ, [
|
26025
|
-
r("p", zJ, M(
|
26025
|
+
r("p", zJ, M(T(t)("js.components.AVFileInput.current")), 1),
|
26026
26026
|
(u(!0), z(K, null, r1(c.currentValue, (D) => (u(), z("div", {
|
26027
26027
|
key: `image-${D}`
|
26028
26028
|
}, [
|
@@ -26030,7 +26030,7 @@ const NK = W({
|
|
26030
26030
|
key: 0,
|
26031
26031
|
class: "AVFileInput--current-img",
|
26032
26032
|
src: D,
|
26033
|
-
alt:
|
26033
|
+
alt: T(t)("js.components.AVFileInput.alt_preview")
|
26034
26034
|
}, null, 8, hJ)) : (u(), z("div", LJ, [
|
26035
26035
|
r("div", MJ, [
|
26036
26036
|
r("div", gJ, [
|
@@ -26233,7 +26233,7 @@ const NK = W({
|
|
26233
26233
|
},
|
26234
26234
|
emits: ["onClick"],
|
26235
26235
|
setup(c, { emit: e }) {
|
26236
|
-
const l = c, t = e, a =
|
26236
|
+
const l = c, t = e, a = I(() => l.href ? "link" : "button"), s = I(() => l.disabled ? null : l.href), n = () => {
|
26237
26237
|
t("onClick", l.reference);
|
26238
26238
|
};
|
26239
26239
|
return (i, o) => {
|
@@ -26324,7 +26324,7 @@ const NK = W({
|
|
26324
26324
|
},
|
26325
26325
|
emits: ["onClick"],
|
26326
26326
|
setup(c, { emit: e }) {
|
26327
|
-
const l = c, t = e, a = a1(!1), s =
|
26327
|
+
const l = c, t = e, a = a1(!1), s = I(() => l.href ? "link" : "button"), n = I(() => l.disabled ? null : l.href), i = I(() => l.type === "step" ? "number" : "icon"), o = I(
|
26328
26328
|
() => l.type === "step" ? l.stepIndex : l.icon
|
26329
26329
|
), f = () => {
|
26330
26330
|
l.disabled || (a.value = !a.value);
|
@@ -26344,7 +26344,7 @@ const NK = W({
|
|
26344
26344
|
"aria-label": c.label,
|
26345
26345
|
role: "button"
|
26346
26346
|
}, [
|
26347
|
-
V(
|
26347
|
+
V(T(T6), {
|
26348
26348
|
type: i.value,
|
26349
26349
|
active: c.active,
|
26350
26350
|
value: o.value,
|
@@ -26364,7 +26364,7 @@ const NK = W({
|
|
26364
26364
|
onMouseleave: f,
|
26365
26365
|
"aria-label": c.label
|
26366
26366
|
}, [
|
26367
|
-
V(
|
26367
|
+
V(T(T6), {
|
26368
26368
|
type: i.value,
|
26369
26369
|
active: c.active,
|
26370
26370
|
value: o.value,
|
@@ -26519,7 +26519,7 @@ const NK = W({
|
|
26519
26519
|
}), XJ = /* @__PURE__ */ G(KJ, [["__scopeId", "data-v-6c23aaa1"]]), JJ = ["aria-labelledby"], QJ = /* @__PURE__ */ W({
|
26520
26520
|
__name: "AVMenuDropdownContent",
|
26521
26521
|
setup(c) {
|
26522
|
-
const e = A1("sharedState"), l =
|
26522
|
+
const e = A1("sharedState"), l = I(() => e.active), t = I(() => e.id);
|
26523
26523
|
return (a, s) => (u(), Z(E2, { name: "dropdown-content" }, {
|
26524
26524
|
default: t1(() => [
|
26525
26525
|
l.value ? (u(), z("div", {
|
@@ -26612,7 +26612,7 @@ const NK = W({
|
|
26612
26612
|
setup(c, { emit: e }) {
|
26613
26613
|
const l = e, t = c, a = a1(!1);
|
26614
26614
|
s1(a, (o) => l("update:waiting", o));
|
26615
|
-
const s =
|
26615
|
+
const s = I(() => {
|
26616
26616
|
if (!a.value)
|
26617
26617
|
switch (t.variant) {
|
26618
26618
|
case "default":
|
@@ -26624,7 +26624,7 @@ const NK = W({
|
|
26624
26624
|
default:
|
26625
26625
|
return null;
|
26626
26626
|
}
|
26627
|
-
}), n =
|
26627
|
+
}), n = I(() => t.disabled || a.value);
|
26628
26628
|
async function i(o) {
|
26629
26629
|
a.value = !0;
|
26630
26630
|
try {
|
@@ -26688,7 +26688,7 @@ const NK = W({
|
|
26688
26688
|
},
|
26689
26689
|
emits: ["update"],
|
26690
26690
|
setup(c, { emit: e }) {
|
26691
|
-
const l = c, t = a1([]), a = a1(""), s =
|
26691
|
+
const l = c, t = a1([]), a = a1(""), s = I(() => l.options.length === 2 ? "AVTabSwitcher--double" : "AVTabSwitcher--triple");
|
26692
26692
|
p1(() => n());
|
26693
26693
|
const n = () => {
|
26694
26694
|
t.value = [], l.options.map(
|
@@ -26757,7 +26757,7 @@ const NK = W({
|
|
26757
26757
|
}
|
26758
26758
|
},
|
26759
26759
|
setup(c) {
|
26760
|
-
const e = c, l =
|
26760
|
+
const e = c, l = I(() => e.currentBallots >= e.minimumBallots), t = I(() => e.minimumBallots - e.currentBallots);
|
26761
26761
|
return (a, s) => {
|
26762
26762
|
const n = O("AVIcon"), i = O("AVSpinner");
|
26763
26763
|
return u(), z("div", mQ, [
|
@@ -26825,9 +26825,9 @@ const NK = W({
|
|
26825
26825
|
const p = setInterval(() => {
|
26826
26826
|
t.value = t.value + 1, t.value >= l.timeout && (clearInterval(p), s("expired", !0, l.timeout));
|
26827
26827
|
}, 1e3);
|
26828
|
-
}, s = e, n =
|
26828
|
+
}, s = e, n = I(() => 100 - t.value / l.timeout * 100), i = I(
|
26829
26829
|
() => Math.floor((l.timeout - t.value) / 60)
|
26830
|
-
), o =
|
26830
|
+
), o = I(() => (l.timeout - t.value) % 60), f = I(() => i.value % 60), d = I(() => o.value < 10 ? `${f.value}:0${o.value}` : `${f.value}:${o.value}`);
|
26831
26831
|
return (p, m) => (u(), z(K, null, [
|
26832
26832
|
r("div", {
|
26833
26833
|
class: "AVTimedCard",
|
@@ -26947,7 +26947,7 @@ const NK = W({
|
|
26947
26947
|
() => e.done,
|
26948
26948
|
() => t()
|
26949
26949
|
);
|
26950
|
-
const s =
|
26950
|
+
const s = I(() => `${100 / e.steps.length}%`);
|
26951
26951
|
return (n, i) => {
|
26952
26952
|
const o = O("AVIcon");
|
26953
26953
|
return u(), z("div", yQ, [
|
@@ -27003,7 +27003,7 @@ const NK = W({
|
|
27003
27003
|
}
|
27004
27004
|
},
|
27005
27005
|
setup(c) {
|
27006
|
-
const e = c, l =
|
27006
|
+
const e = c, l = I(() => e.rank ? document.getElementsByTagName("html")[0].dir === "rtl" ? `${e.rank} ${t.global.messages.value ? t.global.messages.value[a.value].js.components.AVOptionSelect.aria_label : t.global.messages[a.value].js.components.AVOptionSelect.aria_label}` : `${t.global.messages.value ? t.global.messages.value[a.value].js.components.AVOptionSelect.aria_label : t.global.messages[a.value].js.components.AVOptionSelect.aria_label} ${e.rank}` : ""), t = A1("i18n"), a = I(
|
27007
27007
|
() => t.global.locale.value || t.global.locale
|
27008
27008
|
);
|
27009
27009
|
return p1(() => {
|
@@ -27089,7 +27089,7 @@ const NK = W({
|
|
27089
27089
|
},
|
27090
27090
|
{ deep: !0 }
|
27091
27091
|
);
|
27092
|
-
const n = () => s("toggled"), i =
|
27092
|
+
const n = () => s("toggled"), i = I(() => a.optionReference ? {
|
27093
27093
|
id: `option_${a.optionReference}_checkbox_${a.checkBoxIndex}`,
|
27094
27094
|
role: "checkbox",
|
27095
27095
|
"aria-labelledby": `option_${a.optionReference}_title option_${a.optionReference}_tick option_${a.optionReference}_subtitle`,
|
@@ -27100,7 +27100,7 @@ const NK = W({
|
|
27100
27100
|
const d = O("AVOptionSelect");
|
27101
27101
|
return u(), z("div", HQ, [
|
27102
27102
|
c.exclusiveError && c.checked ? (u(), z("div", IQ, [
|
27103
|
-
r("div", PQ, M(
|
27103
|
+
r("div", PQ, M(T(t)("js.components.AVOptionCheckbox.exclusive_option")), 1)
|
27104
27104
|
])) : E("", !0),
|
27105
27105
|
r("button", I6({
|
27106
27106
|
class: {
|
@@ -27184,7 +27184,7 @@ const NK = W({
|
|
27184
27184
|
},
|
27185
27185
|
emits: ["accordionOpen"],
|
27186
27186
|
setup(c, { emit: e }) {
|
27187
|
-
const l = c, t = e, a = a1(!1), s = a1(!0), n =
|
27187
|
+
const l = c, t = e, a = a1(!1), s = a1(!0), n = I(() => ({
|
27188
27188
|
collapsable: l.collapsable,
|
27189
27189
|
startCollapsed: l.startCollapsed
|
27190
27190
|
}));
|
@@ -27272,7 +27272,7 @@ const NK = W({
|
|
27272
27272
|
/^(http(s)?:\/\/)?([A-Za-z]+\.)?((?:youtube(-nocookie)?\.com|youtu.be))\//gm
|
27273
27273
|
),
|
27274
27274
|
tiktok: new RegExp(/^(http(s)?:\/\/)?([A-Za-z]+\.)?tiktok\.com\//gm)
|
27275
|
-
}, t =
|
27275
|
+
}, t = I(() => {
|
27276
27276
|
let s = "link";
|
27277
27277
|
return Object.keys(l).map((n) => {
|
27278
27278
|
l[n].test(e.link.attributes.url) && (s = n);
|
@@ -27360,15 +27360,15 @@ const NK = W({
|
|
27360
27360
|
}
|
27361
27361
|
},
|
27362
27362
|
setup(c) {
|
27363
|
-
const e = c, l =
|
27363
|
+
const e = c, l = I(() => {
|
27364
27364
|
const d = e.title.split(" ");
|
27365
27365
|
return d.length < 2 ? `${d[0][0].toUpperCase()}${d[0][1].toUpperCase()}` : `${d[0][0].toUpperCase()}${d[1][0].toUpperCase()}`;
|
27366
|
-
}), t = a1(null), a = a1(0), s =
|
27366
|
+
}), t = a1(null), a = a1(0), s = I(
|
27367
27367
|
() => Math.ceil((a.value - 32) / 2)
|
27368
|
-
), n =
|
27368
|
+
), n = I(() => e.hasPrevStep ? `
|
27369
27369
|
height: ${s.value + 4}px;
|
27370
27370
|
margin-bottom: -${s.value - 4}px;
|
27371
|
-
` : ""), i =
|
27371
|
+
` : ""), i = I(() => e.hasNextStep ? `
|
27372
27372
|
height: ${s.value + 4}px;
|
27373
27373
|
margin-top: -${s.value - 4}px;
|
27374
27374
|
` : ""), o = () => {
|
@@ -27769,7 +27769,7 @@ const v11 = /* @__PURE__ */ G(L11, [["render", g11], ["__scopeId", "data-v-f13d6
|
|
27769
27769
|
open: "success",
|
27770
27770
|
closed: "danger",
|
27771
27771
|
archived: "default"
|
27772
|
-
}, t =
|
27772
|
+
}, t = I(() => l[e.status]);
|
27773
27773
|
return (a, s) => {
|
27774
27774
|
const n = O("AVLabel"), i = O("AVIcon"), o = O("AVCard");
|
27775
27775
|
return u(), z("a", {
|
@@ -27941,23 +27941,23 @@ const v11 = /* @__PURE__ */ G(L11, [["render", g11], ["__scopeId", "data-v-f13d6
|
|
27941
27941
|
}
|
27942
27942
|
},
|
27943
27943
|
setup(c) {
|
27944
|
-
const e = c, l =
|
27944
|
+
const e = c, l = I(
|
27945
27945
|
() => {
|
27946
27946
|
var d, p;
|
27947
27947
|
return ((d = e.option) == null ? void 0 : d.crosses) && ((p = e.option) == null ? void 0 : p.crosses) > 1 && e.multipleVotesAllowed && !e.blank;
|
27948
27948
|
}
|
27949
|
-
), t =
|
27949
|
+
), t = I(() => e.parents.length < 1 ? null : e.parents.map((d) => d.title[f.value]).reverse()), a = I(() => {
|
27950
27950
|
var d;
|
27951
27951
|
return e.blank ? o("js.components.AVSummaryOption.blank") : (d = e.option) == null ? void 0 : d.title[f.value];
|
27952
|
-
}), s =
|
27952
|
+
}), s = I(() => {
|
27953
27953
|
var g, C;
|
27954
27954
|
const d = Array.from(Array((g = e.option) == null ? void 0 : g.crosses).keys());
|
27955
27955
|
d.forEach((x) => d[x] = x + 1);
|
27956
27956
|
const p = d.indexOf(Math.ceil(((C = e.option) == null ? void 0 : C.crosses) / 2)) + 1, m = d.slice(0, p), h = d.slice(p);
|
27957
27957
|
return h.length ? [m, h] : [m];
|
27958
|
-
}), n =
|
27958
|
+
}), n = I(
|
27959
27959
|
() => e.option.image.includes("square") ? e.option.image : `${e.option.image}/${e.imageOption}`
|
27960
|
-
), i = A1("i18n"), { t: o } = i.global, f =
|
27960
|
+
), i = A1("i18n"), { t: o } = i.global, f = I(
|
27961
27961
|
() => i.global.locale.value || i.global.locale
|
27962
27962
|
);
|
27963
27963
|
return p1(() => {
|
@@ -27973,7 +27973,7 @@ const v11 = /* @__PURE__ */ G(L11, [["render", g11], ["__scopeId", "data-v-f13d6
|
|
27973
27973
|
const m = O("AVOptionCheckbox");
|
27974
27974
|
return u(), z("div", {
|
27975
27975
|
class: "AVSummaryOption",
|
27976
|
-
"aria-label":
|
27976
|
+
"aria-label": T(o)("js.components.AVSummaryOption.aria_label.option"),
|
27977
27977
|
"data-test": "summary-option"
|
27978
27978
|
}, [
|
27979
27979
|
t.value ? (u(), z("div", i21, [
|
@@ -27995,7 +27995,7 @@ const v11 = /* @__PURE__ */ G(L11, [["render", g11], ["__scopeId", "data-v-f13d6
|
|
27995
27995
|
key: 0,
|
27996
27996
|
src: n.value,
|
27997
27997
|
class: "AVSummaryOption--img",
|
27998
|
-
alt:
|
27998
|
+
alt: T(o)("js.components.AVSummaryOption.aria_label.option_image"),
|
27999
27999
|
"data-test": "summary-option-image"
|
28000
28000
|
}, null, 8, r21)) : E("", !0),
|
28001
28001
|
r("div", f21, [
|
@@ -28115,30 +28115,30 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28115
28115
|
},
|
28116
28116
|
emits: ["accordion-open", "checked", "view-candidate"],
|
28117
28117
|
setup(c, { emit: e }) {
|
28118
|
-
const { eventBus: l } = xj(), t = a1(!1), a = a1(null), s = c, n = e, i =
|
28118
|
+
const { eventBus: l } = xj(), t = a1(!1), a = a1(null), s = c, n = e, i = I(
|
28119
28119
|
() => document.getElementsByTagName("html")[0].dir === "rtl"
|
28120
|
-
), o =
|
28120
|
+
), o = I(
|
28121
28121
|
() => s.contest.markingType.voteVariation === "ranked"
|
28122
|
-
), f =
|
28122
|
+
), f = I(
|
28123
28123
|
() => s.selections.filter(
|
28124
28124
|
($) => $.reference === s.option.reference
|
28125
28125
|
).length
|
28126
|
-
), d =
|
28126
|
+
), d = I(() => s.option.title[J.value] ?? ""), p = I(
|
28127
28127
|
() => {
|
28128
28128
|
var $;
|
28129
28129
|
return (($ = s.option.description) == null ? void 0 : $[J.value]) ?? "";
|
28130
28130
|
}
|
28131
|
-
), m =
|
28131
|
+
), m = I(() => {
|
28132
28132
|
var $;
|
28133
28133
|
return (($ = s.option.url) == null ? void 0 : $[J.value]) ?? "";
|
28134
|
-
}), h =
|
28134
|
+
}), h = I(
|
28135
28135
|
() => {
|
28136
28136
|
var $;
|
28137
28137
|
return (($ = s.option.videoUrl) == null ? void 0 : $[J.value]) ?? "";
|
28138
28138
|
}
|
28139
|
-
), g =
|
28139
|
+
), g = I(
|
28140
28140
|
() => s.option.image.includes("square") ? s.option.image : `${s.option.image}/${s.imageOption}`
|
28141
|
-
), C =
|
28141
|
+
), C = I(() => {
|
28142
28142
|
const $ = [];
|
28143
28143
|
return m.value && $.push({
|
28144
28144
|
url: m.value,
|
@@ -28147,14 +28147,14 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28147
28147
|
url: h.value,
|
28148
28148
|
text: D("js.components.AVOption.video_link_text_html")
|
28149
28149
|
}), $;
|
28150
|
-
}), x =
|
28150
|
+
}), x = I(
|
28151
28151
|
() => s.option.children && s.option.children.length > 0
|
28152
|
-
), y =
|
28152
|
+
), y = I(() => s.option.selectable !== void 0 && !s.option.selectable ? 0 : b.value ? 1 : s.option.voteLimit || s.contest.markingType.votesAllowedPerOption || 1), _ = I(() => s.selections.length > 0 ? P(s.option.children) : 0), b = I(() => s.option.exclusive), N = I(() => {
|
28153
28153
|
const $ = Array.from(Array(y.value).keys());
|
28154
28154
|
$.forEach((X) => $[X] = X + 1);
|
28155
28155
|
const c1 = $.indexOf(Math.ceil(y.value / 2)) + 1, f1 = $.slice(0, c1), U = $.slice(c1);
|
28156
28156
|
return U.length ? [f1, U] : [f1];
|
28157
|
-
}), S =
|
28157
|
+
}), S = I(() => s.partialResults ? s.partialResults[s.option.reference] : null), A = ($, c1 = 1) => {
|
28158
28158
|
n("checked", {
|
28159
28159
|
reference: $,
|
28160
28160
|
amount: c1
|
@@ -28177,7 +28177,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28177
28177
|
w(c1);
|
28178
28178
|
}
|
28179
28179
|
);
|
28180
|
-
const k = A1("i18n"), { t: D } = k.global, J =
|
28180
|
+
const k = A1("i18n"), { t: D } = k.global, J = I(
|
28181
28181
|
() => k.global.locale.value || k.global.locale
|
28182
28182
|
);
|
28183
28183
|
return p1(() => {
|
@@ -28220,7 +28220,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28220
28220
|
style: P1(
|
28221
28221
|
c.option.accentColor ? `border-left-color: ${c.option.accentColor}` : ""
|
28222
28222
|
),
|
28223
|
-
"aria-label":
|
28223
|
+
"aria-label": T(D)("js.components.AVOption.aria_labels.option"),
|
28224
28224
|
"data-test": "option-section"
|
28225
28225
|
}, [
|
28226
28226
|
r("div", {
|
@@ -28235,7 +28235,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28235
28235
|
c.option.image ? (u(), z("img", {
|
28236
28236
|
key: 0,
|
28237
28237
|
src: g.value,
|
28238
|
-
alt:
|
28238
|
+
alt: T(D)("js.components.AVOption.aria_labels.option_image"),
|
28239
28239
|
class: "AVOption-image",
|
28240
28240
|
"data-test": "option-image"
|
28241
28241
|
}, null, 8, g21)) : E("", !0),
|
@@ -28254,7 +28254,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28254
28254
|
class: "AVOption--link",
|
28255
28255
|
onClick: c1[0] || (c1[0] = (I1) => n("view-candidate", c.option.candidateId)),
|
28256
28256
|
"data-test": "option-candidacy"
|
28257
|
-
}, M(
|
28257
|
+
}, M(T(D)("js.components.AVOption.view_candidate")), 1)) : E("", !0),
|
28258
28258
|
(u(!0), z(K, null, r1(C.value, (I1) => (u(), z("a", {
|
28259
28259
|
key: I1.toString(),
|
28260
28260
|
href: I1.url,
|
@@ -28279,7 +28279,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28279
28279
|
}, null, 8, ["class"]),
|
28280
28280
|
r("span", {
|
28281
28281
|
class: "AVOption--expander-help-text",
|
28282
|
-
innerHTML: E1 ?
|
28282
|
+
innerHTML: E1 ? T(D)("js.components.AVOption.collapse_text") : T(D)("js.components.AVOption.expand_text")
|
28283
28283
|
}, null, 8, k21)
|
28284
28284
|
], 8, A21),
|
28285
28285
|
_.value && !E1 ? (u(), z("span", {
|
@@ -28289,9 +28289,9 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28289
28289
|
"AVOption--suboption-badge-normal": !c.invalid
|
28290
28290
|
}]),
|
28291
28291
|
"data-test": "option-child-selected"
|
28292
|
-
}, M(i.value ? `${
|
28292
|
+
}, M(i.value ? `${T(D)(
|
28293
28293
|
"js.components.AVOption.sub_options_select"
|
28294
|
-
)} ${_.value}` : `${_.value} ${
|
28294
|
+
)} ${_.value}` : `${_.value} ${T(D)(
|
28295
28295
|
"js.components.AVOption.sub_options_select"
|
28296
28296
|
)}`), 3)) : E("", !0)
|
28297
28297
|
])) : E("", !0)
|
@@ -28329,7 +28329,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28329
28329
|
icon: "user",
|
28330
28330
|
class: "AVOption--realtime-results-icon"
|
28331
28331
|
}),
|
28332
|
-
r("span", null, M(i.value ? `${S.value.results.count === 1 ?
|
28332
|
+
r("span", null, M(i.value ? `${S.value.results.count === 1 ? T(D)("js.components.AVOption.vote_count_singular") : T(D)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? T(D)("js.components.AVOption.vote_count_singular") : T(D)("js.components.AVOption.vote_count_plural")}`), 1),
|
28333
28333
|
S.value.showPercentage ? (u(), z(K, { key: 0 }, [
|
28334
28334
|
c1[3] || (c1[3] = r("span", null, "-", -1)),
|
28335
28335
|
r("span", null, M(`${S.value.results.percentage}%`), 1)
|
@@ -28366,7 +28366,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28366
28366
|
icon: "user",
|
28367
28367
|
class: "AVOption--realtime-results-icon"
|
28368
28368
|
}),
|
28369
|
-
r("span", null, M(i.value ? `${S.value.results.count === 1 ?
|
28369
|
+
r("span", null, M(i.value ? `${S.value.results.count === 1 ? T(D)("js.components.AVOption.vote_count_singular") : T(D)("js.components.AVOption.vote_count_plural")} ${S.value.results.count}` : `${S.value.results.count} ${S.value.results.count === 1 ? T(D)("js.components.AVOption.vote_count_singular") : T(D)("js.components.AVOption.vote_count_plural")}`), 1),
|
28370
28370
|
S.value.showPercentage ? (u(), z(K, { key: 0 }, [
|
28371
28371
|
c1[4] || (c1[4] = r("span", null, "-", -1)),
|
28372
28372
|
r("span", null, M(`${S.value.results.percentage}%`), 1)
|
@@ -28439,7 +28439,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28439
28439
|
},
|
28440
28440
|
{ deep: !0 }
|
28441
28441
|
);
|
28442
|
-
const a =
|
28442
|
+
const a = I(
|
28443
28443
|
() => document.getElementsByTagName("html")[0].dir === "rtl"
|
28444
28444
|
);
|
28445
28445
|
return (s, n) => {
|
@@ -28456,11 +28456,11 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28456
28456
|
"AVBlankOption--accent": c.accentColor
|
28457
28457
|
}),
|
28458
28458
|
style: P1(c.accentColor ? `border-left-color: ${c.accentColor}` : ""),
|
28459
|
-
"aria-label":
|
28459
|
+
"aria-label": T(l)("js.components.AVBlankOption.aria_labels.option"),
|
28460
28460
|
"data-test": "option-container"
|
28461
28461
|
}, [
|
28462
28462
|
r("div", I21, [
|
28463
|
-
r("h5", P21, M(
|
28463
|
+
r("h5", P21, M(T(l)("js.components.AVBlankOption.title")), 1),
|
28464
28464
|
r("div", O21, [
|
28465
28465
|
V(i, {
|
28466
28466
|
"option-reference": "blank",
|
@@ -28478,7 +28478,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28478
28478
|
icon: "user",
|
28479
28479
|
class: "AVBlankOption--realtime-results-icon"
|
28480
28480
|
}),
|
28481
|
-
r("span", null, M(a.value ? `${c.partialResults.results.count === 1 ?
|
28481
|
+
r("span", null, M(a.value ? `${c.partialResults.results.count === 1 ? T(l)("js.components.AVBlankOption.vote_count_singular") : T(l)("js.components.AVBlankOption.vote_count_plural")} ${c.partialResults.results.count}` : `${c.partialResults.results.count} ${c.partialResults.results.count === 1 ? T(l)("js.components.AVBlankOption.vote_count_singular") : T(l)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
28482
28482
|
c.partialResults.showPercentage ? (u(), z(K, { key: 0 }, [
|
28483
28483
|
n[1] || (n[1] = r("span", null, "-", -1)),
|
28484
28484
|
r("span", null, M(`${c.partialResults.results.percentage}%`), 1)
|
@@ -28491,7 +28491,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28491
28491
|
icon: "user",
|
28492
28492
|
class: "AVBlankOption--realtime-results-icon"
|
28493
28493
|
}),
|
28494
|
-
r("span", null, M(a.value ? `${c.partialResults.results.count === 1 ?
|
28494
|
+
r("span", null, M(a.value ? `${c.partialResults.results.count === 1 ? T(l)("js.components.AVBlankOption.vote_count_singular") : T(l)("js.components.AVBlankOption.vote_count_plural")} ${c.partialResults.results.count}` : `${c.partialResults.results.count} ${c.partialResults.results.count === 1 ? T(l)("js.components.AVBlankOption.vote_count_singular") : T(l)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
28495
28495
|
c.partialResults.showPercentage ? (u(), z(K, { key: 0 }, [
|
28496
28496
|
n[2] || (n[2] = r("span", null, "-", -1)),
|
28497
28497
|
r("span", null, M(`${c.partialResults.results.percentage}%`), 1)
|
@@ -28566,19 +28566,19 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28566
28566
|
AVWriteInOption: !0,
|
28567
28567
|
"AVWriteInOption--disabled": c.disabled
|
28568
28568
|
}),
|
28569
|
-
"aria-label":
|
28569
|
+
"aria-label": T(t)("js.components.AVWriteInOption.aria_labels.option")
|
28570
28570
|
}, [
|
28571
28571
|
r("div", B21, [
|
28572
28572
|
r("div", j21, [
|
28573
|
-
r("div", U21, M(
|
28573
|
+
r("div", U21, M(T(t)("js.components.AVWriteInOption.title")), 1),
|
28574
28574
|
r("div", W21, [
|
28575
28575
|
r("select", {
|
28576
28576
|
class: "AVWriteInOption--form-control",
|
28577
|
-
"aria-label":
|
28577
|
+
"aria-label": T(t)("js.components.AVWriteInOption.aria_labels.party"),
|
28578
28578
|
disabled: c.disabled,
|
28579
28579
|
onInput: d[0] || (d[0] = (m) => i(m.target.value))
|
28580
28580
|
}, [
|
28581
|
-
r("option", Z21, M(
|
28581
|
+
r("option", Z21, M(T(t)("js.components.AVWriteInOption.choose_party")), 1),
|
28582
28582
|
(u(!0), z(K, null, r1(c.parties, (m) => (u(), z("option", {
|
28583
28583
|
key: m.letter,
|
28584
28584
|
value: m.letter,
|
@@ -28588,8 +28588,8 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28588
28588
|
r("input", {
|
28589
28589
|
value: c.candidateValue,
|
28590
28590
|
class: "AVWriteInOption--form-control",
|
28591
|
-
placeholder:
|
28592
|
-
"aria-label":
|
28591
|
+
placeholder: T(t)("js.components.AVWriteInOption.placeholder"),
|
28592
|
+
"aria-label": T(t)("js.components.AVWriteInOption.aria_labels.candidate"),
|
28593
28593
|
disabled: c.disabled,
|
28594
28594
|
onInput: d[1] || (d[1] = (m) => n(m.target.value))
|
28595
28595
|
}, null, 40, K21)
|
@@ -28638,9 +28638,9 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28638
28638
|
}
|
28639
28639
|
},
|
28640
28640
|
setup(c) {
|
28641
|
-
const e = c, l =
|
28641
|
+
const e = c, l = I(() => e.errors.map((n) => n.keys ? (Object.keys(n.keys).forEach((i) => {
|
28642
28642
|
typeof n.keys[i] == "object" && (n.keys[i] = n.keys[i][s.value]);
|
28643
|
-
}), a(`js.components.AVSubmissionHelper.errors.${n.message}`, n.keys)) : a(`js.components.AVSubmissionHelper.errors.${n.message}`))), t = A1("i18n"), { t: a } = t.global, s =
|
28643
|
+
}), a(`js.components.AVSubmissionHelper.errors.${n.message}`, n.keys)) : a(`js.components.AVSubmissionHelper.errors.${n.message}`))), t = A1("i18n"), { t: a } = t.global, s = I(
|
28644
28644
|
() => t.global.locale.value || t.global.locale
|
28645
28645
|
);
|
28646
28646
|
return p1(() => {
|
@@ -28663,7 +28663,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28663
28663
|
"AVSubmissionHelper--weight-danger": c.errors.length > 0
|
28664
28664
|
}),
|
28665
28665
|
"data-test": "submission-helper-weight"
|
28666
|
-
}, M(
|
28666
|
+
}, M(T(a)("js.components.AVSubmissionHelper.your_vote_weight", { weight: c.weight })), 3)) : E("", !0),
|
28667
28667
|
c.errors.length > 0 ? (u(), z("div", c31, [
|
28668
28668
|
(u(!0), z(K, null, r1(l.value, (o) => (u(), z("div", {
|
28669
28669
|
key: o,
|
@@ -28675,18 +28675,18 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28675
28675
|
])) : E("", !0),
|
28676
28676
|
c.maxMarks > 1 ? (u(), z("div", l31, [
|
28677
28677
|
r("div", t31, [
|
28678
|
-
c.minMarks === c.maxMarks ? (u(), z("div", a31, M(`${
|
28678
|
+
c.minMarks === c.maxMarks ? (u(), z("div", a31, M(`${T(a)("js.components.AVSubmissionHelper.select_exactly", {
|
28679
28679
|
min_marks: c.minMarks
|
28680
|
-
})}`), 1)) : (u(), z("div", s31, M(`${c.hasExclusiveOptions ?
|
28680
|
+
})}`), 1)) : (u(), z("div", s31, M(`${c.hasExclusiveOptions ? T(a)(
|
28681
28681
|
"js.components.AVSubmissionHelper.select_multiple_with_exclusives",
|
28682
28682
|
{ min_marks: c.minMarks, max_marks: c.maxMarks }
|
28683
|
-
) :
|
28683
|
+
) : T(a)("js.components.AVSubmissionHelper.select_multiple", {
|
28684
28684
|
min_marks: c.minMarks,
|
28685
28685
|
max_marks: c.maxMarks
|
28686
28686
|
})}`), 1)),
|
28687
28687
|
c.chosenCount > 0 ? (u(), z("div", {
|
28688
28688
|
key: 2,
|
28689
|
-
innerHTML:
|
28689
|
+
innerHTML: T(a)("js.components.AVSubmissionHelper.selected", {
|
28690
28690
|
selected: c.chosenCount
|
28691
28691
|
}),
|
28692
28692
|
class: "AVSubmissionHelper--count",
|
@@ -28694,7 +28694,7 @@ const z21 = ["id", "href", "aria-labelledby"], h21 = ["aria-label"], L21 = {
|
|
28694
28694
|
}, null, 8, n31)) : E("", !0)
|
28695
28695
|
])
|
28696
28696
|
])) : (u(), z("div", i31, [
|
28697
|
-
r("div", null, M(
|
28697
|
+
r("div", null, M(T(a)("js.components.AVSubmissionHelper.select_single")), 1)
|
28698
28698
|
]))
|
28699
28699
|
], 2)
|
28700
28700
|
]));
|
@@ -28733,7 +28733,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28733
28733
|
}
|
28734
28734
|
},
|
28735
28735
|
setup(c) {
|
28736
|
-
const { eventBusEmit: e } = xj(), l = c, t = a1(""), a =
|
28736
|
+
const { eventBusEmit: e } = xj(), l = c, t = a1(""), a = I(() => t.value.trim() === "" ? [] : f31(
|
28737
28737
|
l.options,
|
28738
28738
|
t.value,
|
28739
28739
|
(m) => m.title[p.value]
|
@@ -28741,7 +28741,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28741
28741
|
t.value = "";
|
28742
28742
|
}, o = (m) => {
|
28743
28743
|
e("highlight-option", m.reference), i();
|
28744
|
-
}, f = A1("i18n"), { t: d } = f.global, p =
|
28744
|
+
}, f = A1("i18n"), { t: d } = f.global, p = I(
|
28745
28745
|
() => f.global.locale.value || f.global.locale
|
28746
28746
|
);
|
28747
28747
|
return p1(() => {
|
@@ -28755,7 +28755,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28755
28755
|
), (m, h) => (u(), z("form", {
|
28756
28756
|
role: "search",
|
28757
28757
|
class: "AVSearchBallot",
|
28758
|
-
"aria-label":
|
28758
|
+
"aria-label": T(d)("js.components.AVSearchBallot.aria_labels.ballot_options"),
|
28759
28759
|
"data-test": "search-ballot",
|
28760
28760
|
onSubmit: h[1] || (h[1] = f2(() => {
|
28761
28761
|
}, ["prevent"]))
|
@@ -28764,7 +28764,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28764
28764
|
r("label", {
|
28765
28765
|
for: "ballot_search",
|
28766
28766
|
class: "AVSearchBallot--label",
|
28767
|
-
textContent: M(
|
28767
|
+
textContent: M(T(d)("js.components.AVSearchBallot.search_the_ballot"))
|
28768
28768
|
}, null, 8, d31),
|
28769
28769
|
r("div", p31, [
|
28770
28770
|
$1(r("input", {
|
@@ -28772,7 +28772,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28772
28772
|
"onUpdate:modelValue": h[0] || (h[0] = (g) => t.value = g),
|
28773
28773
|
type: "search",
|
28774
28774
|
class: "AVSearchBallot--form-control",
|
28775
|
-
placeholder:
|
28775
|
+
placeholder: T(d)("js.components.AVSearchBallot.enter_option_name"),
|
28776
28776
|
"data-test": "search-ballot-input"
|
28777
28777
|
}, null, 8, z31), [
|
28778
28778
|
[Ks, t.value]
|
@@ -28796,7 +28796,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28796
28796
|
id: `search_result_${g.reference}`,
|
28797
28797
|
class: "AVSearchBallot--option",
|
28798
28798
|
role: "button",
|
28799
|
-
"aria-label":
|
28799
|
+
"aria-label": T(d)("js.components.AVSearchBallot.aria_labels.go_to_option"),
|
28800
28800
|
"data-test": "search-result",
|
28801
28801
|
onClick: f2((C) => o(g), ["prevent"])
|
28802
28802
|
}, [
|
@@ -28809,7 +28809,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28809
28809
|
t.value && a.value.length === 0 ? (u(), z("div", {
|
28810
28810
|
key: 0,
|
28811
28811
|
class: "AVSearchBallot--alert",
|
28812
|
-
textContent: M(
|
28812
|
+
textContent: M(T(d)("js.components.AVSearchBallot.no_results"))
|
28813
28813
|
}, null, 8, C31)) : E("", !0)
|
28814
28814
|
])
|
28815
28815
|
], 40, u31));
|
@@ -28856,19 +28856,19 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28856
28856
|
), (a, s) => (u(), z("div", y31, [
|
28857
28857
|
r("div", N31, [
|
28858
28858
|
r("span", null, [
|
28859
|
-
n1(M(
|
28859
|
+
n1(M(T(l)("js.components.AVSplitWeightHelper.total")) + " ", 1),
|
28860
28860
|
r("strong", null, M(c.assignedWeight + c.unusedWeight), 1)
|
28861
28861
|
])
|
28862
28862
|
]),
|
28863
28863
|
r("div", A31, [
|
28864
28864
|
r("span", null, [
|
28865
|
-
n1(M(
|
28865
|
+
n1(M(T(l)("js.components.AVSplitWeightHelper.assigned")) + " ", 1),
|
28866
28866
|
r("strong", null, M(c.assignedWeight), 1)
|
28867
28867
|
])
|
28868
28868
|
]),
|
28869
28869
|
r("div", k31, [
|
28870
28870
|
r("span", null, [
|
28871
|
-
n1(M(
|
28871
|
+
n1(M(T(l)("js.components.AVSplitWeightHelper.unused")) + " ", 1),
|
28872
28872
|
r("strong", null, M(c.unusedWeight), 1)
|
28873
28873
|
])
|
28874
28874
|
])
|
@@ -28930,19 +28930,19 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
28930
28930
|
), (a, s) => {
|
28931
28931
|
const n = O("AVTooltip");
|
28932
28932
|
return u(), z("header", w31, [
|
28933
|
-
c.activeState === "ballot" ? (u(), z("p", E31, M(c.isEditing ? `${
|
28933
|
+
c.activeState === "ballot" ? (u(), z("p", E31, M(c.isEditing ? `${T(l)("js.components.AVSplitWizardHeader.ballot.editing")} ${c.activeSelectionPileIndex + 1}` : `${T(l)("js.components.AVSplitWizardHeader.ballot.adding")} ${c.selectionPiles.length + 1}`), 1)) : c.activeState === "assign" ? (u(), z("p", T31, M(c.isEditing ? `${T(l)("js.components.AVSplitWizardHeader.assign.header")} ${(c.isEditing ? c.activeSelectionPileIndex : c.selectionPiles.length) + 1}` : `${T(l)(
|
28934
28934
|
"js.components.AVSplitWizardHeader.assign.header_edit_mode"
|
28935
|
-
)} ${(c.isEditing ? c.activeSelectionPileIndex : c.selectionPiles.length) + 1}`), 1)) : (u(), z("p", H31, M(
|
28935
|
+
)} ${(c.isEditing ? c.activeSelectionPileIndex : c.selectionPiles.length) + 1}`), 1)) : (u(), z("p", H31, M(T(l)("js.components.AVSplitWizardHeader.overview.header")), 1)),
|
28936
28936
|
c.activeState === "ballot" ? (u(), Z(n, {
|
28937
28937
|
key: 3,
|
28938
|
-
content: `${
|
28938
|
+
content: `${T(l)(
|
28939
28939
|
"js.components.AVSplitWizardHeader.ballot.can_assign_description_pre"
|
28940
|
-
)} ${c.totalWeight} ${
|
28940
|
+
)} ${c.totalWeight} ${T(l)(
|
28941
28941
|
"js.components.AVSplitWizardHeader.ballot.can_assign_description_pos"
|
28942
28942
|
)}`,
|
28943
|
-
text: `${
|
28943
|
+
text: `${T(l)(
|
28944
28944
|
"js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pre"
|
28945
|
-
)} ${c.totalWeight} ${
|
28945
|
+
)} ${c.totalWeight} ${T(l)(
|
28946
28946
|
"js.components.AVSplitWizardHeader.ballot.can_assign_ballots_pos"
|
28947
28947
|
)}`,
|
28948
28948
|
class: "AVSplitWizardHeader--tooltip-text",
|
@@ -29026,9 +29026,9 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29026
29026
|
}
|
29027
29027
|
},
|
29028
29028
|
setup(c) {
|
29029
|
-
const e = c, l =
|
29029
|
+
const e = c, l = I(
|
29030
29030
|
() => e.total > 0 ? Math.round(e.votes / e.total * 1e4) / 100 : 0
|
29031
|
-
), t =
|
29031
|
+
), t = I(() => Math.round(e.votes * 100) / 100), a = A1("i18n"), s = I(
|
29032
29032
|
() => a.global.locale.value || a.global.locale
|
29033
29033
|
);
|
29034
29034
|
return p1(() => {
|
@@ -29069,20 +29069,20 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29069
29069
|
], 2);
|
29070
29070
|
};
|
29071
29071
|
}
|
29072
|
-
}), Y31 = /* @__PURE__ */ G(Z31, [["__scopeId", "data-v-9cfedaf1"]]), K31 = { class: "AVRecommendationList--header" }, X31 = { class: "AVRecommendationList--header-content" }, J31 = { class: "AVRecommendationList--
|
29072
|
+
}), Y31 = /* @__PURE__ */ G(Z31, [["__scopeId", "data-v-9cfedaf1"]]), K31 = { class: "AVRecommendationList--header" }, X31 = { class: "AVRecommendationList--header-content" }, J31 = { class: "AVRecommendationList--content-w-button" }, Q31 = { class: "AVRecommendationList--title" }, c41 = {
|
29073
29073
|
key: 0,
|
29074
29074
|
class: "AVRecommendationList--recommendation",
|
29075
29075
|
"data-test": "recommendation-summary"
|
29076
|
-
},
|
29076
|
+
}, e41 = {
|
29077
29077
|
class: "AVRecommendationList--collapse",
|
29078
29078
|
"data-test": "list-collapse"
|
29079
|
-
},
|
29079
|
+
}, l41 = { class: "AVRecommendationList--collapse-text" }, t41 = { class: "AVRecommendationList--icon-container" }, a41 = { class: "AVRecommendationList--content" }, s41 = { class: "AVRecommendationList--name" }, n41 = {
|
29080
29080
|
key: 1,
|
29081
29081
|
class: "AVRecommendationList--header"
|
29082
|
-
},
|
29082
|
+
}, i41 = { class: "AVRecommendationList--header-content" }, o41 = { class: "AVRecommendationList--content-w-button" }, r41 = { class: "AVRecommendationList--title" }, f41 = {
|
29083
29083
|
class: "AVRecommendationList--recommendation",
|
29084
29084
|
"data-test": "recommendation-summary"
|
29085
|
-
},
|
29085
|
+
}, u41 = { key: 2 }, m41 = { class: "AVRecommendationList--header-content" }, d41 = { class: "AVRecommendationList--title" }, p41 = /* @__PURE__ */ W({
|
29086
29086
|
__name: "AVRecommendationList",
|
29087
29087
|
props: {
|
29088
29088
|
recommendations: {
|
@@ -29111,9 +29111,9 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29111
29111
|
}
|
29112
29112
|
},
|
29113
29113
|
setup(c) {
|
29114
|
-
const e = c, l = a1(!1), t =
|
29114
|
+
const e = c, l = a1(!1), t = I(() => Array.from(e.recommendations).sort((p, m) => p.position - m.position)), a = I(
|
29115
29115
|
() => document.getElementsByTagName("html")[0].dir === "rtl"
|
29116
|
-
), s =
|
29116
|
+
), s = I(() => {
|
29117
29117
|
const d = i(t.value);
|
29118
29118
|
return { short: i(t.value, !0), long: d };
|
29119
29119
|
}), n = () => window.location.href = e.inviteRecommendersPath, i = (d, p) => {
|
@@ -29134,8 +29134,8 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29134
29134
|
},
|
29135
29135
|
{ deep: !0 }
|
29136
29136
|
), (d, p) => {
|
29137
|
-
const m = O("
|
29138
|
-
return c.recommendations.length && c.recommendations.length > c.summaryRecommenders && c.recommendationsPublic == "public" ? (u(), Z(
|
29137
|
+
const m = O("AVButton"), h = O("AVIcon"), g = O("AVCollapser"), C = s2("tooltip");
|
29138
|
+
return c.recommendations.length && c.recommendations.length > c.summaryRecommenders && c.recommendationsPublic == "public" ? (u(), Z(g, {
|
29139
29139
|
key: 0,
|
29140
29140
|
ref: "recommendationList",
|
29141
29141
|
collapsable: "",
|
@@ -29146,18 +29146,30 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29146
29146
|
toggle: t1(({ isOpen: x }) => [
|
29147
29147
|
r("div", K31, [
|
29148
29148
|
r("div", X31, [
|
29149
|
-
r("
|
29150
|
-
|
29151
|
-
|
29152
|
-
|
29153
|
-
|
29149
|
+
r("div", J31, [
|
29150
|
+
r("h4", Q31, M(T(f)("js.components.AVRecommendationList.header_title", {
|
29151
|
+
n: c.recommendations.length
|
29152
|
+
})), 1),
|
29153
|
+
c.addRecommenderButton ? (u(), Z(m, {
|
29154
|
+
key: 0,
|
29155
|
+
onClick: n,
|
29156
|
+
label: T(f)("js.components.AVRecommendationList.invite_recommenders_button_label"),
|
29157
|
+
type: "primary",
|
29158
|
+
size: "small",
|
29159
|
+
icon: "envelope",
|
29160
|
+
"icon-left": !0,
|
29161
|
+
style: { "font-size": "medium" }
|
29162
|
+
}, null, 8, ["label"])) : E("", !0)
|
29163
|
+
]),
|
29164
|
+
t.value.length >= c.summaryRecommenders && !x ? (u(), z("p", c41, [
|
29165
|
+
V(h, { icon: "user-check" }),
|
29154
29166
|
n1(" " + M(s.value.short), 1)
|
29155
29167
|
])) : E("", !0)
|
29156
29168
|
]),
|
29157
|
-
r("div",
|
29158
|
-
r("span",
|
29159
|
-
r("span",
|
29160
|
-
V(
|
29169
|
+
r("div", e41, [
|
29170
|
+
r("span", l41, M(x ? T(f)("js.components.AVRecommendationList.collapse") : T(f)("js.components.AVRecommendationList.uncollapse")), 1),
|
29171
|
+
r("span", t41, [
|
29172
|
+
V(h, {
|
29161
29173
|
icon: "chevron-down",
|
29162
29174
|
class: F(["AVRecommendationList--collapser-icon", {
|
29163
29175
|
"AVRecommendationList--opened-ltr": x && !a.value,
|
@@ -29169,50 +29181,53 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29169
29181
|
])
|
29170
29182
|
]),
|
29171
29183
|
pane: t1(() => [
|
29172
|
-
r("div",
|
29184
|
+
r("div", a41, [
|
29173
29185
|
(u(!0), z(K, null, r1(t.value, (x) => $1((u(), z("p", {
|
29174
29186
|
key: `recommendation_${x.id}`,
|
29175
29187
|
class: "AVRecommendationList--recommendation",
|
29176
29188
|
"data-test": "recommendation"
|
29177
29189
|
}, [
|
29178
|
-
V(
|
29190
|
+
V(h, {
|
29179
29191
|
icon: "user-check",
|
29180
29192
|
class: "AVRecommendationList--icon"
|
29181
29193
|
}),
|
29182
|
-
r("span",
|
29194
|
+
r("span", s41, M(x.label), 1)
|
29183
29195
|
])), [
|
29184
29196
|
[C, x.label]
|
29185
29197
|
])), 128))
|
29186
29198
|
])
|
29187
29199
|
]),
|
29188
29200
|
_: 1
|
29189
|
-
}, 512)) : c.recommendations.length && c.recommendationsPublic == "public" ? (u(), z("div",
|
29190
|
-
r("div",
|
29191
|
-
r("div",
|
29192
|
-
r("h4",
|
29201
|
+
}, 512)) : c.recommendations.length && c.recommendationsPublic == "public" ? (u(), z("div", n41, [
|
29202
|
+
r("div", i41, [
|
29203
|
+
r("div", o41, [
|
29204
|
+
r("h4", r41, M(T(f)("js.components.AVRecommendationList.header_title", {
|
29193
29205
|
n: c.recommendations.length
|
29194
29206
|
})), 1),
|
29195
|
-
c.addRecommenderButton ? (u(), Z(
|
29207
|
+
c.addRecommenderButton ? (u(), Z(m, {
|
29196
29208
|
key: 0,
|
29197
29209
|
onClick: n,
|
29198
|
-
label: "
|
29210
|
+
label: T(f)("js.components.AVRecommendationList.invite_recommenders_button_label"),
|
29199
29211
|
type: "primary",
|
29200
|
-
size: "small"
|
29201
|
-
|
29212
|
+
size: "small",
|
29213
|
+
icon: "envelope",
|
29214
|
+
"icon-left": !0,
|
29215
|
+
style: { "font-size": "medium" }
|
29216
|
+
}, null, 8, ["label"])) : E("", !0)
|
29202
29217
|
]),
|
29203
|
-
r("p",
|
29204
|
-
V(
|
29218
|
+
r("p", f41, [
|
29219
|
+
V(h, { icon: "user-check" }),
|
29205
29220
|
n1(" " + M(s.value.short), 1)
|
29206
29221
|
])
|
29207
29222
|
])
|
29208
|
-
])) : (u(), z("div",
|
29209
|
-
r("div",
|
29210
|
-
r("h4",
|
29223
|
+
])) : (u(), z("div", u41, [
|
29224
|
+
r("div", m41, [
|
29225
|
+
r("h4", d41, M(T(f)("js.components.AVRecommendationList.header_title", {
|
29211
29226
|
n: c.recommendations.length
|
29212
29227
|
})), 1),
|
29213
29228
|
r("p", null, [
|
29214
|
-
V(
|
29215
|
-
n1(" " + M(
|
29229
|
+
V(h, { icon: "user-check" }),
|
29230
|
+
n1(" " + M(T(f)("js.components.AVRecommendationList.public_count_text", {
|
29216
29231
|
n: c.recommendations.length
|
29217
29232
|
})), 1)
|
29218
29233
|
])
|
@@ -29220,7 +29235,7 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29220
29235
|
]));
|
29221
29236
|
};
|
29222
29237
|
}
|
29223
|
-
}),
|
29238
|
+
}), z41 = "data:image/svg+xml,%3csvg%20width='789'%20height='134'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:undefined='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xml:space='preserve'%20version='1.1'%3e%3cdefs%20id='defs6'%3e%3cclipPath%20id='clipPath16'%20clipPathUnits='userSpaceOnUse'%3e%3cpath%20id='path14'%20d='m-93.50311,780.92563l841.89,0l0,-595.276l-841.89,0l0,595.276z'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%3e%3ctitle%3eLayer%201%3c/title%3e%3cg%20id='svg_1'%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g18'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path20'%20d='m40.003,545.04105l-30.05,-30.016c-6.258,8.368%20-9.953,18.756%20-9.953,29.998c0,27.75%2022.485,50.253%2050.235,50.253c11.277,0%2021.684,-3.713%2030.067,-9.988l-29.858,-29.824l-8.524,8.524l-20.847,0l18.93,-18.947z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g22'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path24'%20d='m100.46931,545.02348c0,-27.731%20-22.485,-50.234%20-50.234,-50.234c-11.174,0%20-21.493,3.642%20-29.842,9.813l30.051,29.998l8.523,-8.523l20.847,0l-18.929,18.946l29.806,29.771c6.153,-8.331%209.778,-18.633%209.778,-29.771'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g26'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path28'%20d='m149.3263,542.50977c-2.465,7.926%20-3.851,12.409%20-4.161,13.45c-0.31,1.037%20-0.533,1.859%20-0.666,2.463c-0.554,-2.146%20-2.137,-7.451%20-4.752,-15.913l9.579,0zm4.525,-15.284l-2.666,8.748l-13.398,0l-2.665,-8.748l-8.397,0l12.972,36.904l9.528,0l13.021,-36.904l-8.395,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g30'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path32'%20d='m188.56751,537.43067c0,-3.318%20-1.194,-5.933%20-3.583,-7.844c-2.388,-1.91%20-5.71,-2.864%20-9.967,-2.864c-3.922,0%20-7.391,0.737%20-10.408,2.212l0,7.24c2.48,-1.106%204.58,-1.886%206.297,-2.338c1.719,-0.453%203.289,-0.678%204.714,-0.678c1.71,0%203.021,0.326%203.934,0.98c0.914,0.653%201.371,1.625%201.371,2.916c0,0.72%20-0.201,1.361%20-0.604,1.922c-0.401,0.561%20-0.993,1.101%20-1.773,1.623c-0.778,0.518%20-2.367,1.347%20-4.762,2.489c-2.247,1.054%20-3.931,2.069%20-5.054,3.041c-1.123,0.972%20-2.02,2.103%20-2.689,3.394c-0.672,1.29%20-1.006,2.798%20-1.006,4.526c0,3.249%201.102,5.805%203.305,7.666c2.204,1.86%205.25,2.791%209.139,2.791c1.91,0%203.732,-0.228%205.467,-0.679c1.734,-0.454%203.549,-1.09%205.443,-1.911l-2.514,-6.058c-1.961,0.805%20-3.582,1.366%20-4.865,1.683c-1.281,0.32%20-2.543,0.478%20-3.783,0.478c-1.475,0%20-2.607,-0.344%20-3.394,-1.03c-0.788,-0.688%20-1.181,-1.584%20-1.181,-2.69c0,-0.688%200.158,-1.287%200.477,-1.797c0.318,-0.511%200.826,-1.006%201.521,-1.484c0.695,-0.478%202.342,-1.336%204.94,-2.576c3.436,-1.642%205.79,-3.289%207.065,-4.941c1.272,-1.651%201.91,-3.674%201.91,-6.071'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g34'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path36'%20d='m216.92442,537.43067c0,-3.318%20-1.194,-5.933%20-3.583,-7.844c-2.388,-1.91%20-5.71,-2.864%20-9.967,-2.864c-3.922,0%20-7.391,0.737%20-10.408,2.212l0,7.24c2.48,-1.106%204.58,-1.886%206.297,-2.338c1.719,-0.453%203.289,-0.678%204.714,-0.678c1.709,0%203.021,0.326%203.934,0.98c0.914,0.653%201.371,1.625%201.371,2.916c0,0.72%20-0.201,1.361%20-0.604,1.922c-0.402,0.561%20-0.993,1.101%20-1.773,1.623c-0.778,0.518%20-2.367,1.347%20-4.763,2.489c-2.246,1.054%20-3.93,2.069%20-5.053,3.041c-1.123,0.972%20-2.02,2.103%20-2.689,3.394c-0.672,1.29%20-1.006,2.798%20-1.006,4.526c0,3.249%201.102,5.805%203.305,7.666c2.204,1.86%205.25,2.791%209.138,2.791c1.911,0%203.733,-0.228%205.468,-0.679c1.734,-0.454%203.549,-1.09%205.442,-1.911l-2.513,-6.058c-1.961,0.805%20-3.582,1.366%20-4.865,1.683c-1.281,0.32%20-2.543,0.478%20-3.783,0.478c-1.475,0%20-2.607,-0.344%20-3.394,-1.03c-0.788,-0.688%20-1.182,-1.584%20-1.182,-2.69c0,-0.688%200.159,-1.287%200.477,-1.797c0.319,-0.511%200.826,-1.006%201.522,-1.484c0.695,-0.478%202.342,-1.336%204.94,-2.576c3.435,-1.642%205.789,-3.289%207.064,-4.941c1.273,-1.651%201.911,-3.674%201.911,-6.071'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g38'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path40'%20d='m244.75251,527.22566l-21.167,0l0,36.752l21.167,0l0,-6.384l-13.374,0l0,-8.07l12.443,0l0,-6.386l-12.443,0l0,-9.476l13.374,0l0,-6.436z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g42'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path44'%20d='m267.982,527.22566l-8.849,28.834l-0.227,0c0.319,-5.867%200.477,-9.78%200.477,-11.74l0,-17.094l-6.963,0l0,36.752l10.609,0l8.698,-28.105l0.151,0l9.226,28.105l10.609,0l0,-36.752l-7.265,0l0,17.396c0,0.82%200.012,1.768%200.037,2.84c0.025,1.073%200.138,3.922%200.339,8.547l-0.226,0l-9.476,-28.783l-7.14,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g46'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path48'%20d='m307.17591,543.23835l0,-9.577l5.076,0c2.146,0%203.73,0.408%204.751,1.231c1.024,0.82%201.533,2.078%201.533,3.772c0,3.048%20-2.178,4.574%20-6.534,4.574l-4.826,0zm0,6.185l4.522,0c2.115,0%203.643,0.327%204.59,0.979c0.946,0.655%201.419,1.736%201.419,3.245c0,1.407%20-0.513,2.415%20-1.547,3.028c-1.029,0.612%20-2.659,0.918%20-4.888,0.918l-4.096,0l0,-8.17zm-7.795,14.554l11.44,0c5.21,0%208.994,-0.742%2011.348,-2.223c2.356,-1.484%203.533,-3.844%203.533,-7.077c0,-2.197%20-0.516,-3.998%20-1.546,-5.406c-1.03,-1.408%20-2.402,-2.254%20-4.109,-2.538l0,-0.253c2.328,-0.518%204.009,-1.49%205.039,-2.916c1.029,-1.424%201.546,-3.318%201.546,-5.68c0,-3.352%20-1.211,-5.966%20-3.634,-7.843c-2.42,-1.877%20-5.709,-2.816%20-9.865,-2.816l-13.752,0l0,36.752z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g50'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path52'%20d='m333.97279,527.22566l0,36.752l7.794,0l0,-30.316l14.907,0l0,-6.436l-22.701,0z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g54'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path56'%20d='m367.63191,548.84477l7.667,15.133l8.397,0l-12.194,-22.449l0,-14.303l-7.743,0l0,14.053l-12.191,22.699l8.446,0l7.618,-15.133z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g58'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path60'%20d='m429.52549,563.97755l7.87,0l-12.496,-36.752l-8.496,0l-12.469,36.752l7.868,0l6.913,-21.87c0.385,-1.291%200.786,-2.795%201.194,-4.514c0.411,-1.716%200.669,-2.912%200.766,-3.582c0.186,1.542%200.814,4.241%201.886,8.096l6.964,21.87z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g62'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path64'%20d='m447.04399,545.65138c0,-4.107%200.779,-7.197%202.337,-9.275c1.559,-2.079%203.889,-3.118%206.99,-3.118c6.216,0%209.324,4.129%209.324,12.393c0,8.279%20-3.089,12.42%20-9.275,12.42c-3.1,0%20-5.438,-1.044%20-7.015,-3.13c-1.575,-2.088%20-2.361,-5.185%20-2.361,-9.29m26.823,0c0,-6.082%20-1.508,-10.759%20-4.524,-14.026c-3.017,-3.269%20-7.341,-4.903%20-12.972,-4.903c-5.632,0%20-9.955,1.634%20-12.972,4.903c-3.016,3.267%20-4.525,7.96%20-4.525,14.078c0,6.115%201.513,10.788%204.536,14.012c3.026,3.228%207.363,4.841%2013.01,4.841c5.649,0%209.969,-1.627%2012.961,-4.876c2.989,-3.254%204.486,-7.928%204.486,-14.029'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g66'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path68'%20d='m493.37309,527.22566l-7.792,0l0,30.267l-9.981,0l0,6.485l27.752,0l0,-6.485l-9.979,0l0,-30.267z'/%3e%3c/g%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path70'%20d='m677.88556,41.73118l10.392,0l0,49.00266l-10.392,0l0,-49.00266z'/%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g72'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path74'%20d='m556.16221,527.22566l-9.903,0l-15.989,27.802l-0.228,0c0.319,-4.909%200.478,-8.413%200.478,-10.507l0,-17.295l-6.962,0l0,36.752l9.83,0l15.961,-27.525l0.176,0c-0.25,4.775%20-0.378,8.151%20-0.378,10.128l0,17.397l7.015,0l0,-36.752z'/%3e%3c/g%3e%3cg%20transform='matrix(1.33333%200%200%20-1.33333%200%20793.701)'%20id='g76'%3e%3cpath%20fill-rule='nonzero'%20fill='%2319142e'%20id='path78'%20d='m577.07823,547.86375l14.58,0l0,-19.054c-2.364,-0.774%20-4.588,-1.312%20-6.675,-1.622c-2.087,-0.311%20-4.218,-0.465%20-6.397,-0.465c-5.549,0%20-9.783,1.629%20-12.708,4.889c-2.925,3.26%20-4.387,7.939%20-4.387,14.04c0,5.933%201.696,10.558%205.091,13.877c3.394,3.318%208.098,4.978%2014.115,4.978c3.771,0%207.408,-0.755%2010.909,-2.264l-2.587,-6.234c-2.683,1.341%20-5.472,2.011%20-8.373,2.011c-3.368,0%20-6.067,-1.131%20-8.093,-3.394c-2.03,-2.262%20-3.041,-5.303%20-3.041,-9.124c0,-3.991%200.815,-7.037%202.449,-9.139c1.636,-2.103%204.011,-3.156%207.128,-3.156c1.624,0%203.275,0.168%204.952,0.503l0,7.669l-6.963,0l0,6.485z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", h41 = ["src"], L41 = /* @__PURE__ */ W({
|
29224
29239
|
__name: "AVFooter",
|
29225
29240
|
props: {
|
29226
29241
|
enableSteps: {
|
@@ -29263,47 +29278,47 @@ const u31 = ["aria-label"], m31 = { class: "AVSearchBallot--form-group" }, d31 =
|
|
29263
29278
|
}, [
|
29264
29279
|
l[0] || (l[0] = r("span", { class: "AVFooter--text" }, "Technology by", -1)),
|
29265
29280
|
r("img", {
|
29266
|
-
src:
|
29281
|
+
src: T(z41),
|
29267
29282
|
alt: "Assembly Voting",
|
29268
29283
|
class: "AVFooter--img"
|
29269
|
-
}, null, 8,
|
29284
|
+
}, null, 8, h41)
|
29270
29285
|
], 2))
|
29271
29286
|
], 2);
|
29272
29287
|
};
|
29273
29288
|
}
|
29274
|
-
}),
|
29275
|
-
var
|
29276
|
-
function
|
29277
|
-
return u(), z("nav",
|
29289
|
+
}), M41 = /* @__PURE__ */ G(L41, [["__scopeId", "data-v-1a82d440"]]);
|
29290
|
+
var g41 = {}, v41 = { class: "AVSidebar" };
|
29291
|
+
function b41(c, e) {
|
29292
|
+
return u(), z("nav", v41, [
|
29278
29293
|
g1(c.$slots, "default", {}, void 0, !0)
|
29279
29294
|
]);
|
29280
29295
|
}
|
29281
|
-
const
|
29282
|
-
var
|
29283
|
-
function
|
29284
|
-
return u(), z("nav",
|
29296
|
+
const C41 = /* @__PURE__ */ G(g41, [["render", b41], ["__scopeId", "data-v-65e0965f"]]);
|
29297
|
+
var _41 = {}, x41 = { class: "AVNavbar" };
|
29298
|
+
function y41(c, e) {
|
29299
|
+
return u(), z("nav", x41, [
|
29285
29300
|
g1(c.$slots, "default", {}, void 0, !0)
|
29286
29301
|
]);
|
29287
29302
|
}
|
29288
|
-
const
|
29289
|
-
var
|
29303
|
+
const N41 = /* @__PURE__ */ G(_41, [["render", y41], ["__scopeId", "data-v-3ea1799f"]]);
|
29304
|
+
var A41 = {}, k41 = { class: "AVContent" }, S41 = {
|
29290
29305
|
class: "AVContent--sidebar",
|
29291
29306
|
"data-test": "sidebar"
|
29292
|
-
},
|
29307
|
+
}, V41 = {
|
29293
29308
|
class: "AVContent--container",
|
29294
29309
|
"data-test": "container"
|
29295
29310
|
};
|
29296
|
-
function
|
29297
|
-
return u(), z("main",
|
29298
|
-
r("div",
|
29311
|
+
function w41(c, e) {
|
29312
|
+
return u(), z("main", k41, [
|
29313
|
+
r("div", S41, [
|
29299
29314
|
g1(c.$slots, "sidebar", {}, void 0, !0)
|
29300
29315
|
]),
|
29301
|
-
r("div",
|
29316
|
+
r("div", V41, [
|
29302
29317
|
g1(c.$slots, "content", {}, void 0, !0)
|
29303
29318
|
])
|
29304
29319
|
]);
|
29305
29320
|
}
|
29306
|
-
const
|
29321
|
+
const E41 = /* @__PURE__ */ G(A41, [["render", w41], ["__scopeId", "data-v-1923eca8"]]), T41 = ["aria-labelledby"], H41 = /* @__PURE__ */ W({
|
29307
29322
|
__name: "AVModal",
|
29308
29323
|
props: {
|
29309
29324
|
modalActive: {
|
@@ -29351,25 +29366,25 @@ const w41 = /* @__PURE__ */ G(N41, [["render", V41], ["__scopeId", "data-v-1923e
|
|
29351
29366
|
]),
|
29352
29367
|
_: 3
|
29353
29368
|
})
|
29354
|
-
], 8,
|
29369
|
+
], 8, T41), [
|
29355
29370
|
[_4, c.modalActive]
|
29356
29371
|
])
|
29357
29372
|
]),
|
29358
29373
|
_: 3
|
29359
29374
|
}));
|
29360
29375
|
}
|
29361
|
-
}),
|
29376
|
+
}), I41 = /* @__PURE__ */ G(H41, [["__scopeId", "data-v-ef5af7c2"]]), H4 = (c, e) => c.flatMap((l) => (e && (l.parentContent = {
|
29362
29377
|
reference: e.reference,
|
29363
29378
|
code: e.code,
|
29364
29379
|
title: { ...e.title }
|
29365
29380
|
}), l.children ? [l, ...H4(l.children, l)] : [l]));
|
29366
|
-
var I4 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, da = {},
|
29381
|
+
var I4 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, da = {}, P41 = I4 && I4.__spreadArray || function(c, e, l) {
|
29367
29382
|
if (l || arguments.length === 2) for (var t = 0, a = e.length, s; t < a; t++)
|
29368
29383
|
(s || !(t in e)) && (s || (s = Array.prototype.slice.call(e, 0, t)), s[t] = e[t]);
|
29369
29384
|
return c.concat(s || Array.prototype.slice.call(e));
|
29370
29385
|
};
|
29371
29386
|
Object.defineProperty(da, "__esModule", { value: !0 });
|
29372
|
-
var
|
29387
|
+
var O41 = (
|
29373
29388
|
/** @class */
|
29374
29389
|
function() {
|
29375
29390
|
function c(e) {
|
@@ -29395,7 +29410,7 @@ var P41 = (
|
|
29395
29410
|
if (!e)
|
29396
29411
|
return [];
|
29397
29412
|
var t = e.flatMap(function(a) {
|
29398
|
-
return a.children ?
|
29413
|
+
return a.children ? P41([a], l.recursiveFlattener(a.children), !0) : [a];
|
29399
29414
|
});
|
29400
29415
|
return t;
|
29401
29416
|
}, c.prototype.selectedReferences = function(e) {
|
@@ -29455,9 +29470,9 @@ var P41 = (
|
|
29455
29470
|
})) === null || t === void 0 ? void 0 : t.exclusive);
|
29456
29471
|
}, c;
|
29457
29472
|
}()
|
29458
|
-
), yj = da.default =
|
29473
|
+
), yj = da.default = O41, Nj = {};
|
29459
29474
|
Object.defineProperty(Nj, "__esModule", { value: !0 });
|
29460
|
-
var
|
29475
|
+
var $41 = (
|
29461
29476
|
/** @class */
|
29462
29477
|
function() {
|
29463
29478
|
function c(e) {
|
@@ -29493,8 +29508,8 @@ var O41 = (
|
|
29493
29508
|
}), t;
|
29494
29509
|
}, c;
|
29495
29510
|
}()
|
29496
|
-
),
|
29497
|
-
const
|
29511
|
+
), R41 = Nj.default = $41;
|
29512
|
+
const D41 = ["aria-label", "aria-describedby"], F41 = ["id"], q41 = ["aria-label"], B41 = /* @__PURE__ */ W({
|
29498
29513
|
__name: "AVBallot",
|
29499
29514
|
props: {
|
29500
29515
|
contest: {
|
@@ -29544,13 +29559,13 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29544
29559
|
"view-candidate"
|
29545
29560
|
],
|
29546
29561
|
setup(c, { emit: e }) {
|
29547
|
-
const l = c, t = e, a = a1(!1), s = a1(""), n = a1(""), i = a1(null), o =
|
29562
|
+
const l = c, t = e, a = a1(!1), s = a1(""), n = a1(""), i = a1(null), o = I(() => l.selectionPile.optionSelections), f = I(() => new yj(l.contest)), d = I(
|
29548
29563
|
() => l.contest.disregardVoterWeight ? null : l.weight
|
29549
|
-
), p =
|
29564
|
+
), p = I(() => {
|
29550
29565
|
var k;
|
29551
29566
|
const w = [];
|
29552
|
-
return (k = l.contest.customRulesets) != null && k.includes("belgian_ballot_rules") && w.push(new
|
29553
|
-
}), m =
|
29567
|
+
return (k = l.contest.customRulesets) != null && k.includes("belgian_ballot_rules") && w.push(new R41(l.contest)), w;
|
29568
|
+
}), m = I(() => {
|
29554
29569
|
const w = [];
|
29555
29570
|
p.value.forEach((D) => {
|
29556
29571
|
w.push(...D.validate(l.selectionPile));
|
@@ -29568,17 +29583,17 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29568
29583
|
), k.splice(D, 1));
|
29569
29584
|
}
|
29570
29585
|
return t("update:errors", k), k;
|
29571
|
-
}), h =
|
29586
|
+
}), h = I(() => m.value.length === 0), g = I(() => {
|
29572
29587
|
var w;
|
29573
29588
|
return (w = l.contest.question) == null ? void 0 : w[P.value];
|
29574
|
-
}), C =
|
29589
|
+
}), C = I(
|
29575
29590
|
() => {
|
29576
29591
|
var w;
|
29577
29592
|
return (w = l.contest.customRulesets) == null ? void 0 : w.includes("belgian_ballot_rules");
|
29578
29593
|
}
|
29579
|
-
), x =
|
29594
|
+
), x = I(() => H4(l.contest.options).some(
|
29580
29595
|
(w) => w.exclusive
|
29581
|
-
)), y =
|
29596
|
+
)), y = I(() => l.contest);
|
29582
29597
|
s1(y, (w, k) => {
|
29583
29598
|
var D;
|
29584
29599
|
k && w && w.reference !== k.reference && ((D = document.getElementById("content")) == null || D.focus(), k.searchForm && (i.value.value = ""));
|
@@ -29602,7 +29617,7 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29602
29617
|
...l.selectionPile,
|
29603
29618
|
optionSelections: J
|
29604
29619
|
});
|
29605
|
-
}, N = (w) => t("view-candidate", w), S = A1("i18n"), { t: A } = S.global, P =
|
29620
|
+
}, N = (w) => t("view-candidate", w), S = A1("i18n"), { t: A } = S.global, P = I(
|
29606
29621
|
() => S.global.locale.value || S.global.locale
|
29607
29622
|
);
|
29608
29623
|
return p1(() => {
|
@@ -29620,7 +29635,7 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29620
29635
|
AVBallot: !0,
|
29621
29636
|
"AVBallot--error": !h.value
|
29622
29637
|
}),
|
29623
|
-
"aria-label":
|
29638
|
+
"aria-label": T(A)("js.components.AVBallot.aria_labels.ballot"),
|
29624
29639
|
"aria-describedby": `ballot_${c.contest.reference}`,
|
29625
29640
|
"data-test": "ballot"
|
29626
29641
|
}, [
|
@@ -29630,12 +29645,12 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29630
29645
|
class: "AVBallot--question",
|
29631
29646
|
"aria-live": "polite",
|
29632
29647
|
"data-test": "ballot-question"
|
29633
|
-
}, M(g.value), 9,
|
29648
|
+
}, M(g.value), 9, F41)) : E("", !0),
|
29634
29649
|
c.contest.searchForm && !c.disabled && !c.observerMode ? (u(), Z(D, {
|
29635
29650
|
key: 1,
|
29636
29651
|
ref_key: "search",
|
29637
29652
|
ref: i,
|
29638
|
-
options:
|
29653
|
+
options: T(H4)(c.contest.options),
|
29639
29654
|
"options-container-id": "ballot_options"
|
29640
29655
|
}, null, 8, ["options"])) : E("", !0),
|
29641
29656
|
k[3] || (k[3] = r("hr", { class: "AVBallot--separator" }, null, -1)),
|
@@ -29647,7 +29662,7 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29647
29662
|
(U) => U.children
|
29648
29663
|
)
|
29649
29664
|
}),
|
29650
|
-
"aria-label":
|
29665
|
+
"aria-label": T(A)("js.components.AVBallot.aria_labels.ballot_options")
|
29651
29666
|
}, [
|
29652
29667
|
(u(!0), z(K, null, r1(c.contest.options, (U) => (u(), z(K, {
|
29653
29668
|
key: U.reference
|
@@ -29689,7 +29704,7 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29689
29704
|
"partial-results": c.partialResults ? c.partialResults.blank : null,
|
29690
29705
|
onToggleBlank: _
|
29691
29706
|
}, null, 8, ["checked", "error", "disabled", "invalid", "observerMode", "accentColor", "partial-results"])) : E("", !0)
|
29692
|
-
], 10,
|
29707
|
+
], 10, q41),
|
29693
29708
|
c.showSubmissionHelper && !c.disabled && !c.observerMode ? (u(), Z(f1, {
|
29694
29709
|
key: 2,
|
29695
29710
|
id: `ballot_${c.contest.reference}`,
|
@@ -29702,32 +29717,32 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29702
29717
|
class: "AVBallot--helper",
|
29703
29718
|
"data-test": "ballot-submission-helper"
|
29704
29719
|
}, null, 8, ["id", "chosen-count", "errors", "weight", "min-marks", "max-marks", "has-exclusive-options"])) : E("", !0)
|
29705
|
-
], 10,
|
29720
|
+
], 10, D41);
|
29706
29721
|
};
|
29707
29722
|
}
|
29708
|
-
}),
|
29723
|
+
}), j41 = /* @__PURE__ */ G(B41, [["__scopeId", "data-v-f9c23eac"]]), U41 = {
|
29709
29724
|
key: 0,
|
29710
29725
|
class: "AVPileSummary--summary"
|
29711
|
-
},
|
29726
|
+
}, W41 = {
|
29712
29727
|
key: 0,
|
29713
29728
|
class: "AVPileSummary--summary-header",
|
29714
29729
|
"data-test": "pile-summary-header"
|
29715
|
-
},
|
29730
|
+
}, G41 = { class: "AVPileSummary--summary-header-text" }, Z41 = {
|
29716
29731
|
key: 1,
|
29717
29732
|
class: "AVPileSummary--summary-header"
|
29718
|
-
},
|
29733
|
+
}, Y41 = { class: "AVPileSummary--summary-body" }, K41 = {
|
29719
29734
|
key: 1,
|
29720
29735
|
class: "AVPileSummary--assign"
|
29721
|
-
},
|
29736
|
+
}, X41 = { class: "AVPileSummary--assign-card" }, J41 = ["aria-label"], Q41 = { class: "AVPileSummary--edit" }, c01 = {
|
29722
29737
|
key: 0,
|
29723
29738
|
"data-test": "pile-summary-assigned"
|
29724
|
-
},
|
29739
|
+
}, e01 = {
|
29725
29740
|
class: "AVPileSummary--assign-body",
|
29726
29741
|
"data-test": "pile-summary-body"
|
29727
|
-
},
|
29742
|
+
}, l01 = {
|
29728
29743
|
key: 0,
|
29729
29744
|
class: "AVPileSummary--assign-text"
|
29730
|
-
},
|
29745
|
+
}, t01 = ["aria-label"], a01 = /* @__PURE__ */ W({
|
29731
29746
|
__name: "AVPileSummary",
|
29732
29747
|
props: {
|
29733
29748
|
selectionPile: {
|
@@ -29769,7 +29784,7 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29769
29784
|
},
|
29770
29785
|
emits: ["editCurrentSelection", "deleteSelection"],
|
29771
29786
|
setup(c, { emit: e }) {
|
29772
|
-
const l = e, t = c, a = a1(!1), s =
|
29787
|
+
const l = e, t = c, a = a1(!1), s = I(() => t.selectionPile.optionSelections.length === 0), n = I(() => !t.maximumOptionsShown || a.value ? d.value.options : d.value.options.slice(0, t.maximumOptionsShown)), i = I(() => d.value.options.length - n.value.length), o = I(() => H4(t.contest.options).filter((x) => x.selectable)), f = (g, C) => g && g.parentContent ? (C.push(g.parentContent), f(g.parentContent, C)) : C, d = I(() => {
|
29773
29788
|
const g = {
|
29774
29789
|
options: [],
|
29775
29790
|
writeIns: []
|
@@ -29800,7 +29815,7 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29800
29815
|
});
|
29801
29816
|
}
|
29802
29817
|
}), g;
|
29803
|
-
}), p = A1("i18n"), { t: m } = p.global, h =
|
29818
|
+
}), p = A1("i18n"), { t: m } = p.global, h = I(
|
29804
29819
|
() => p.global.locale.value || p.global.locale
|
29805
29820
|
);
|
29806
29821
|
return p1(() => {
|
@@ -29813,14 +29828,14 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29813
29828
|
{ deep: !0 }
|
29814
29829
|
), (g, C) => {
|
29815
29830
|
const x = O("AVSummaryOption"), y = O("AVIcon");
|
29816
|
-
return c.activeState === "summary" ? (u(), z("div",
|
29817
|
-
c.contest.markingType.maxPiles !== 1 ? (u(), z("header",
|
29818
|
-
r("span", null, M(
|
29819
|
-
r("span",
|
29820
|
-
])) : (u(), z("header",
|
29821
|
-
r("span", null, M(
|
29831
|
+
return c.activeState === "summary" ? (u(), z("div", U41, [
|
29832
|
+
c.contest.markingType.maxPiles !== 1 ? (u(), z("header", W41, [
|
29833
|
+
r("span", null, M(T(m)("js.components.AVPileSummary.selection")) + " " + M(c.pileIndex + 1) + " / " + M(c.totalPiles), 1),
|
29834
|
+
r("span", G41, M(c.selectionPile.multiplier) + " " + M(T(m)("js.components.AVPileSummary.ballots")), 1)
|
29835
|
+
])) : (u(), z("header", Z41, [
|
29836
|
+
r("span", null, M(T(m)("js.components.AVPileSummary.selection")), 1)
|
29822
29837
|
])),
|
29823
|
-
r("div",
|
29838
|
+
r("div", Y41, [
|
29824
29839
|
(u(!0), z(K, null, r1(d.value.options, (_, b) => (u(), Z(x, {
|
29825
29840
|
key: b,
|
29826
29841
|
option: _,
|
@@ -29833,23 +29848,23 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29833
29848
|
blank: s.value
|
29834
29849
|
}, null, 8, ["blank"])) : E("", !0)
|
29835
29850
|
])
|
29836
|
-
])) : (u(), z("div",
|
29837
|
-
r("div",
|
29851
|
+
])) : (u(), z("div", K41, [
|
29852
|
+
r("div", X41, [
|
29838
29853
|
r("div", {
|
29839
29854
|
class: "AVPileSummary--assign-header",
|
29840
|
-
"aria-label":
|
29855
|
+
"aria-label": T(m)("js.components.AVPileSummary.aria_labels.edit_selection"),
|
29841
29856
|
role: "button",
|
29842
29857
|
"data-test": "pile-summary-edit",
|
29843
29858
|
onClick: C[0] || (C[0] = (_) => l("editCurrentSelection"))
|
29844
29859
|
}, [
|
29845
|
-
r("div",
|
29860
|
+
r("div", Q41, [
|
29846
29861
|
V(y, { icon: "pen-to-square" }),
|
29847
|
-
r("span", null, M(
|
29862
|
+
r("span", null, M(T(m)("js.components.AVPileSummary.ballot_selection")) + " " + M(c.pileIndex + 1), 1)
|
29848
29863
|
]),
|
29849
|
-
c.activeState === "overview" || c.isEditing ? (u(), z("span",
|
29850
|
-
], 8,
|
29851
|
-
r("div",
|
29852
|
-
s.value ? (u(), z("p",
|
29864
|
+
c.activeState === "overview" || c.isEditing ? (u(), z("span", c01, M(T(m)("js.components.AVPileSummary.assigned")) + " " + M(c.selectionPile.multiplier), 1)) : E("", !0)
|
29865
|
+
], 8, J41),
|
29866
|
+
r("div", e01, [
|
29867
|
+
s.value ? (u(), z("p", l01, M(T(m)("js.components.AVPileSummary.blank")), 1)) : E("", !0),
|
29853
29868
|
(u(!0), z(K, null, r1(n.value, (_, b) => (u(), z("p", {
|
29854
29869
|
key: b,
|
29855
29870
|
class: "AVPileSummary--assign-text"
|
@@ -29870,9 +29885,9 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29870
29885
|
onClick: C[1] || (C[1] = f2((_) => a.value = !0, ["stop", "prevent"]))
|
29871
29886
|
}, [
|
29872
29887
|
r("u", null, [
|
29873
|
-
r("em", null, M(`${
|
29888
|
+
r("em", null, M(`${T(m)(
|
29874
29889
|
"js.components.AVPileSummary.and_n_more_pre"
|
29875
|
-
)} ${i.value} ${
|
29890
|
+
)} ${i.value} ${T(m)(
|
29876
29891
|
"js.components.AVPileSummary.and_n_more_pos"
|
29877
29892
|
)}`), 1)
|
29878
29893
|
])
|
@@ -29885,7 +29900,7 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29885
29900
|
onClick: C[2] || (C[2] = f2((_) => a.value = !1, ["stop", "prevent"]))
|
29886
29901
|
}, [
|
29887
29902
|
r("u", null, [
|
29888
|
-
r("em", null, M(
|
29903
|
+
r("em", null, M(T(m)("js.components.AVPileSummary.show_less")), 1)
|
29889
29904
|
])
|
29890
29905
|
])) : E("", !0)
|
29891
29906
|
])
|
@@ -29894,23 +29909,23 @@ const R41 = ["aria-label", "aria-describedby"], D41 = ["id"], F41 = ["aria-label
|
|
29894
29909
|
key: 0,
|
29895
29910
|
class: "AVPileSummary--assign-delete-button",
|
29896
29911
|
role: "button",
|
29897
|
-
"aria-label":
|
29912
|
+
"aria-label": T(m)("js.components.AVPileSummary.aria_labels.delete_selection"),
|
29898
29913
|
"data-test": "pile-summary-delete",
|
29899
29914
|
onClick: C[3] || (C[3] = f2((_) => l("deleteSelection"), ["stop", "prevent"]))
|
29900
29915
|
}, [
|
29901
29916
|
V(y, { icon: "trash-can" })
|
29902
|
-
], 8,
|
29917
|
+
], 8, t01)) : E("", !0)
|
29903
29918
|
]));
|
29904
29919
|
};
|
29905
29920
|
}
|
29906
|
-
}),
|
29921
|
+
}), s01 = /* @__PURE__ */ G(a01, [["__scopeId", "data-v-ffed1a38"]]);
|
29907
29922
|
var Aj = {}, js = I4 && I4.__spreadArray || function(c, e, l) {
|
29908
29923
|
if (l || arguments.length === 2) for (var t = 0, a = e.length, s; t < a; t++)
|
29909
29924
|
(s || !(t in e)) && (s || (s = Array.prototype.slice.call(e, 0, t)), s[t] = e[t]);
|
29910
29925
|
return c.concat(s || Array.prototype.slice.call(e));
|
29911
29926
|
};
|
29912
29927
|
Object.defineProperty(Aj, "__esModule", { value: !0 });
|
29913
|
-
var
|
29928
|
+
var n01 = da, i01 = (
|
29914
29929
|
/** @class */
|
29915
29930
|
function() {
|
29916
29931
|
function c(e) {
|
@@ -29920,7 +29935,7 @@ var s01 = da, n01 = (
|
|
29920
29935
|
return c.prototype.isComplete = function(e) {
|
29921
29936
|
return this.allWeightUsed(e) && this.validate(e).length == 0;
|
29922
29937
|
}, c.prototype.validate = function(e) {
|
29923
|
-
var l = [], t = new
|
29938
|
+
var l = [], t = new n01.default(this.contest);
|
29924
29939
|
return e.piles.forEach(function(a) {
|
29925
29940
|
l = js(js([], l, !0), t.validate(a), !0);
|
29926
29941
|
}), e.piles.forEach(function(a) {
|
@@ -29932,24 +29947,24 @@ var s01 = da, n01 = (
|
|
29932
29947
|
}, 0);
|
29933
29948
|
}, c;
|
29934
29949
|
}()
|
29935
|
-
),
|
29936
|
-
const
|
29950
|
+
), o01 = Aj.default = i01;
|
29951
|
+
const r01 = {
|
29937
29952
|
class: "AVSplitHelper--title",
|
29938
29953
|
"aria-live": "polite",
|
29939
29954
|
"data-test": "split-helper-contest-title"
|
29940
|
-
},
|
29955
|
+
}, f01 = ["innerHTML"], u01 = { class: "AVSplitHelper--footer" }, m01 = { class: "AVSplitHelper--btn-secondary-container" }, d01 = { class: "AVSplitHelper--btn-primary-container" }, p01 = ["disabled"], z01 = { key: 1 }, h01 = { class: "AVSplitHelper--assign-card" }, L01 = {
|
29941
29956
|
class: "AVSplitHelper--assign-question",
|
29942
29957
|
"data-test": "split-helper-contest-question"
|
29943
|
-
},
|
29958
|
+
}, M01 = ["for"], g01 = ["id", "max"], v01 = { class: "AVSplitHelper--footer" }, b01 = { class: "AVSplitHelper--btn-secondary-container" }, C01 = { class: "AVSplitHelper--btn-primary-container" }, _01 = ["disabled"], x01 = {
|
29944
29959
|
key: 2,
|
29945
29960
|
"data-test": "split-helper-overview"
|
29946
|
-
},
|
29961
|
+
}, y01 = {
|
29947
29962
|
key: 0,
|
29948
29963
|
class: "AVSplitHelper--overview-success"
|
29949
|
-
},
|
29964
|
+
}, N01 = {
|
29950
29965
|
key: 1,
|
29951
29966
|
class: "AVSplitHelper--overview-default"
|
29952
|
-
},
|
29967
|
+
}, A01 = { class: "AVSplitHelper--overview--text" }, k01 = ["disabled"], S01 = ["onClick"], V01 = /* @__PURE__ */ W({
|
29953
29968
|
__name: "AVSplitHelper",
|
29954
29969
|
props: {
|
29955
29970
|
contest: {
|
@@ -30002,33 +30017,33 @@ const o01 = {
|
|
30002
30017
|
}
|
30003
30018
|
), n = a1(
|
30004
30019
|
((f1 = l.contestSelection.piles) == null ? void 0 : f1.length) === 0 || l.contest.markingType.maxPiles === 1 ? "ballot" : "overview"
|
30005
|
-
), i = a1([]), o =
|
30020
|
+
), i = a1([]), o = I(() => l.contestSelection.piles), f = I(
|
30006
30021
|
() => {
|
30007
30022
|
var U;
|
30008
30023
|
return (U = o.value) == null ? void 0 : U.reduce((X, N1) => X - N1.multiplier, l.weight);
|
30009
30024
|
}
|
30010
|
-
), d =
|
30025
|
+
), d = I(
|
30011
30026
|
() => new yj(l.contest)
|
30012
|
-
), p =
|
30013
|
-
() => new
|
30027
|
+
), p = I(
|
30028
|
+
() => new o01({
|
30014
30029
|
contest: l.contest,
|
30015
30030
|
voterWeight: l.weight
|
30016
30031
|
})
|
30017
|
-
), m =
|
30032
|
+
), m = I(() => f.value === 0 && i.value.length == 0 && o.value.every(
|
30018
30033
|
(U) => d.value.isComplete(U)
|
30019
|
-
)), h =
|
30034
|
+
)), h = I(
|
30020
30035
|
() => {
|
30021
30036
|
var U;
|
30022
30037
|
return (U = o.value) == null ? void 0 : U.reduce((X, N1) => X + N1.multiplier, 0);
|
30023
30038
|
}
|
30024
|
-
), g =
|
30039
|
+
), g = I(() => {
|
30025
30040
|
var U;
|
30026
30041
|
return (U = s.value) == null ? void 0 : U.multiplier;
|
30027
|
-
}), C =
|
30042
|
+
}), C = I(
|
30028
30043
|
() => o.value.filter((U, X) => X !== a.value).reduce((U, X) => U - X.multiplier, l.weight)
|
30029
|
-
), x =
|
30044
|
+
), x = I(
|
30030
30045
|
() => l.contest.markingType.maxPiles !== 1 && l.weight > 1
|
30031
|
-
), y =
|
30046
|
+
), y = I(() => a.value !== null), _ = (U) => d.value.isComplete(U), b = (U) => d.value.validate(U, l.includeLazyErrors).length > 0, N = () => {
|
30032
30047
|
if (x.value) {
|
30033
30048
|
const U = [...o.value];
|
30034
30049
|
a.value === null ? U.push({ ...s.value }) : U.splice(a.value, 1, {
|
@@ -30067,7 +30082,7 @@ const o01 = {
|
|
30067
30082
|
}), s1(n, (U) => t("update:activeState", U)), p1(() => {
|
30068
30083
|
l.locale && i1(l.locale), t("update:activePile", s.value), t("update:activeState", n.value), t("update:complete", m.value), x.value || N();
|
30069
30084
|
});
|
30070
|
-
const J = A1("i18n"), { t: $ } = J.global, c1 =
|
30085
|
+
const J = A1("i18n"), { t: $ } = J.global, c1 = I(
|
30071
30086
|
() => J.global.locale.value || J.global.locale
|
30072
30087
|
);
|
30073
30088
|
return p1(() => {
|
@@ -30082,12 +30097,12 @@ const o01 = {
|
|
30082
30097
|
var T1;
|
30083
30098
|
const N1 = O("AVSplitWizardHeader"), E1 = O("AVBallot"), B1 = O("AVPileSummary"), I1 = O("AVSplitWeightHelper"), W1 = O("AVIcon");
|
30084
30099
|
return u(), z(K, null, [
|
30085
|
-
r("h3",
|
30100
|
+
r("h3", r01, M(c.contest.title[c1.value]), 1),
|
30086
30101
|
r("div", {
|
30087
30102
|
class: "AVSplitHelper--description",
|
30088
30103
|
"data-test": "split-helper-contest-description",
|
30089
30104
|
innerHTML: (T1 = c.contest.description) == null ? void 0 : T1[c1.value]
|
30090
|
-
}, null, 8,
|
30105
|
+
}, null, 8, f01),
|
30091
30106
|
x.value ? (u(), z(K, { key: 0 }, [
|
30092
30107
|
["ballot", "assign", "overview"].includes(n.value) ? (u(), Z(N1, {
|
30093
30108
|
key: 0,
|
@@ -30117,27 +30132,27 @@ const o01 = {
|
|
30117
30132
|
"onUpdate:selectionPile": S,
|
30118
30133
|
"onUpdate:errors": X[0] || (X[0] = (R1) => k(R1))
|
30119
30134
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "includeLazyErrors", "show-submission-helper", "image-option"]),
|
30120
|
-
r("div",
|
30121
|
-
r("div",
|
30135
|
+
r("div", u01, [
|
30136
|
+
r("div", m01, [
|
30122
30137
|
o.value.length > 0 ? (u(), z("button", {
|
30123
30138
|
key: "back",
|
30124
30139
|
class: "AVSplitHelper--btn-secondary",
|
30125
30140
|
onClick: X[1] || (X[1] = (R1) => n.value = "overview")
|
30126
|
-
}, M(
|
30141
|
+
}, M(T($)("js.components.AVSplitHelper.ballot.back_button")), 1)) : E("", !0)
|
30127
30142
|
]),
|
30128
|
-
r("div",
|
30143
|
+
r("div", d01, [
|
30129
30144
|
r("button", {
|
30130
30145
|
key: "assign",
|
30131
30146
|
class: "AVSplitHelper--btn-primary",
|
30132
30147
|
disabled: !_(s.value) || b(s.value),
|
30133
30148
|
"data-test": "split-helper-confirm",
|
30134
30149
|
onClick: X[2] || (X[2] = (R1) => n.value = "assign")
|
30135
|
-
}, M(
|
30150
|
+
}, M(T($)("js.components.AVSplitHelper.ballot.confirm_button")), 9, p01)
|
30136
30151
|
])
|
30137
30152
|
])
|
30138
|
-
])) : n.value === "assign" ? (u(), z("div",
|
30139
|
-
r("div",
|
30140
|
-
r("h4",
|
30153
|
+
])) : n.value === "assign" ? (u(), z("div", z01, [
|
30154
|
+
r("div", h01, [
|
30155
|
+
r("h4", L01, M(T($)("js.components.AVSplitHelper.assign.split_question")), 1),
|
30141
30156
|
V(B1, {
|
30142
30157
|
"selection-pile": s.value,
|
30143
30158
|
contest: c.contest,
|
@@ -30153,9 +30168,9 @@ const o01 = {
|
|
30153
30168
|
for: `${c.contest.reference}-ballot-selector`,
|
30154
30169
|
class: "AVSplitHelper--assign-label",
|
30155
30170
|
"data-test": "split-helper-assign-label"
|
30156
|
-
}, M(y.value ?
|
30171
|
+
}, M(y.value ? T($)(
|
30157
30172
|
"js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"
|
30158
|
-
) :
|
30173
|
+
) : T($)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, M01),
|
30159
30174
|
$1(r("input", {
|
30160
30175
|
id: `${c.contest.reference}-ballot-selector`,
|
30161
30176
|
"onUpdate:modelValue": X[4] || (X[4] = (R1) => s.value.multiplier = R1),
|
@@ -30163,7 +30178,7 @@ const o01 = {
|
|
30163
30178
|
type: "number",
|
30164
30179
|
max: C.value,
|
30165
30180
|
"data-test": "split-helper-assign-input"
|
30166
|
-
}, null, 8,
|
30181
|
+
}, null, 8, g01), [
|
30167
30182
|
[Ks, s.value.multiplier]
|
30168
30183
|
])
|
30169
30184
|
]),
|
@@ -30172,36 +30187,36 @@ const o01 = {
|
|
30172
30187
|
"unused-weight": f.value,
|
30173
30188
|
"active-assigned": (Q1 = o.value[a.value]) == null ? void 0 : Q1.multiplier
|
30174
30189
|
}, null, 8, ["assigned-weight", "unused-weight", "active-assigned"]),
|
30175
|
-
r("div",
|
30176
|
-
r("div",
|
30190
|
+
r("div", v01, [
|
30191
|
+
r("div", b01, [
|
30177
30192
|
r("button", {
|
30178
30193
|
key: "ballot",
|
30179
30194
|
class: "AVSplitHelper--btn-secondary",
|
30180
30195
|
"data-test": "split-helper-assign-back",
|
30181
30196
|
onClick: X[5] || (X[5] = (R1) => n.value = "ballot")
|
30182
|
-
}, M(
|
30197
|
+
}, M(T($)("js.components.AVSplitHelper.assign.back_button")), 1)
|
30183
30198
|
]),
|
30184
|
-
r("div",
|
30199
|
+
r("div", C01, [
|
30185
30200
|
r("button", {
|
30186
30201
|
key: "confirm",
|
30187
30202
|
class: "AVSplitHelper--btn-primary",
|
30188
30203
|
disabled: ((h2 = s.value) == null ? void 0 : h2.multiplier) < 1 || ((_2 = s.value) == null ? void 0 : _2.multiplier) > C.value,
|
30189
30204
|
"data-test": "split-helper-assign-confirm",
|
30190
30205
|
onClick: X[6] || (X[6] = (R1) => N())
|
30191
|
-
}, M(
|
30206
|
+
}, M(T($)("js.components.AVSplitHelper.assign.confirm_button")), 9, _01)
|
30192
30207
|
])
|
30193
30208
|
])
|
30194
|
-
])) : n.value === "overview" ? (u(), z("div",
|
30195
|
-
f.value === 0 && p.value.isComplete(c.contestSelection) ? (u(), z("div",
|
30209
|
+
])) : n.value === "overview" ? (u(), z("div", x01, [
|
30210
|
+
f.value === 0 && p.value.isComplete(c.contestSelection) ? (u(), z("div", y01, [
|
30196
30211
|
V(W1, {
|
30197
30212
|
icon: "circle-check",
|
30198
30213
|
class: "AVSplitHelper--overview-success-icon"
|
30199
30214
|
}),
|
30200
|
-
n1(" " + M(
|
30201
|
-
])) : (u(), z("div",
|
30202
|
-
r("p",
|
30215
|
+
n1(" " + M(T($)("js.components.AVSplitHelper.overview.all_ballots_assigned")), 1)
|
30216
|
+
])) : (u(), z("div", N01, [
|
30217
|
+
r("p", A01, [
|
30203
30218
|
r("strong", null, M(f.value), 1),
|
30204
|
-
n1(" " + M(
|
30219
|
+
n1(" " + M(T($)("js.components.AVSplitHelper.overview.ballots_left")), 1)
|
30205
30220
|
]),
|
30206
30221
|
r("button", {
|
30207
30222
|
key: "newSelection",
|
@@ -30211,8 +30226,8 @@ const o01 = {
|
|
30211
30226
|
onClick: A
|
30212
30227
|
}, [
|
30213
30228
|
V(W1, { icon: "file-circle-plus" }),
|
30214
|
-
n1(" " + M(
|
30215
|
-
], 8,
|
30229
|
+
n1(" " + M(T($)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
|
30230
|
+
], 8, k01)
|
30216
30231
|
])),
|
30217
30232
|
(u(!0), z(K, null, r1(o.value, (R1, n2) => (u(), z("article", {
|
30218
30233
|
key: `preview-${n2}`,
|
@@ -30228,7 +30243,7 @@ const o01 = {
|
|
30228
30243
|
"image-option": c.imageOption,
|
30229
30244
|
onDeleteSelection: (l3) => P(n2)
|
30230
30245
|
}, null, 8, ["selection-pile", "contest", "active-state", "pile-index", "total-piles", "image-option", "onDeleteSelection"])
|
30231
|
-
], 8,
|
30246
|
+
], 8, S01))), 128))
|
30232
30247
|
])) : E("", !0)
|
30233
30248
|
];
|
30234
30249
|
}),
|
@@ -30251,42 +30266,42 @@ const o01 = {
|
|
30251
30266
|
], 64);
|
30252
30267
|
};
|
30253
30268
|
}
|
30254
|
-
}),
|
30269
|
+
}), w01 = /* @__PURE__ */ G(V01, [["__scopeId", "data-v-e48e9480"]]), E01 = {
|
30255
30270
|
key: 0,
|
30256
30271
|
class: "AVResourceSection--image-container"
|
30257
|
-
},
|
30272
|
+
}, T01 = ["src", "alt"], H01 = { class: "AVResourceFields" }, I01 = {
|
30258
30273
|
key: 0,
|
30259
30274
|
class: "AVResourceFields--title",
|
30260
30275
|
"data-test": "heading-title"
|
30261
|
-
},
|
30276
|
+
}, P01 = {
|
30262
30277
|
key: 1,
|
30263
30278
|
class: "AVResourceFields--subtitle",
|
30264
30279
|
"data-test": "heading-subtitle"
|
30265
|
-
},
|
30280
|
+
}, O01 = {
|
30266
30281
|
key: 2,
|
30267
30282
|
class: "AVResourceFields--group-container",
|
30268
30283
|
"data-test": "heading-group"
|
30269
|
-
},
|
30284
|
+
}, $01 = { class: "AVResourceFields--group" }, R01 = {
|
30270
30285
|
key: 1,
|
30271
30286
|
class: "AVResourceFields--divisor"
|
30272
|
-
},
|
30287
|
+
}, D01 = {
|
30273
30288
|
key: 2,
|
30274
30289
|
class: "AVResourceFields--link-list",
|
30275
30290
|
"data-test": "resource-link-list"
|
30276
|
-
},
|
30291
|
+
}, F01 = { key: 0 }, q01 = {
|
30277
30292
|
key: 3,
|
30278
30293
|
"data-test": "resource-checkbox-summary"
|
30279
|
-
},
|
30294
|
+
}, B01 = {
|
30280
30295
|
key: 4,
|
30281
30296
|
"data-test": "resource-selection"
|
30282
|
-
},
|
30297
|
+
}, j01 = { key: 0 }, U01 = {
|
30283
30298
|
key: 5,
|
30284
30299
|
"data-test": "resource-video"
|
30285
|
-
},
|
30300
|
+
}, W01 = ["src"], G01 = ["innerHTML"], Z01 = {
|
30286
30301
|
key: 7,
|
30287
30302
|
class: "AVResourceFields--regular-content",
|
30288
30303
|
"data-test": "resource-regular-content"
|
30289
|
-
},
|
30304
|
+
}, Y01 = { key: 0 }, K01 = /* @__PURE__ */ W({
|
30290
30305
|
__name: "AVResourceSection",
|
30291
30306
|
props: {
|
30292
30307
|
candidate: {
|
@@ -30311,17 +30326,17 @@ const o01 = {
|
|
30311
30326
|
}
|
30312
30327
|
},
|
30313
30328
|
setup(c) {
|
30314
|
-
const e =
|
30329
|
+
const e = I(
|
30315
30330
|
() => {
|
30316
30331
|
var h, g, C, x, y, _;
|
30317
30332
|
return (g = (h = i.candidate.title) == null ? void 0 : h[0]) != null && g.localised ? ((x = (C = i.candidate.title) == null ? void 0 : C[0]) == null ? void 0 : x.form_content)[m.value] : (_ = (y = i.candidate.title) == null ? void 0 : y[0]) == null ? void 0 : _.form_content;
|
30318
30333
|
}
|
30319
|
-
), l =
|
30334
|
+
), l = I(
|
30320
30335
|
() => {
|
30321
30336
|
var h, g, C, x, y, _;
|
30322
30337
|
return (g = (h = i.candidate.subtitle) == null ? void 0 : h[0]) != null && g.localised ? ((x = (C = i.candidate.title) == null ? void 0 : C[0]) == null ? void 0 : x.form_content)[m.value] : (_ = (y = i.candidate.subtitle) == null ? void 0 : y[0]) == null ? void 0 : _.form_content;
|
30323
30338
|
}
|
30324
|
-
), t =
|
30339
|
+
), t = I(() => {
|
30325
30340
|
var x;
|
30326
30341
|
if (!i.candidate.groups) return null;
|
30327
30342
|
let h = [], g = [], C = "";
|
@@ -30334,18 +30349,18 @@ const o01 = {
|
|
30334
30349
|
surplus: g.length || null,
|
30335
30350
|
remaining: C
|
30336
30351
|
};
|
30337
|
-
}), a =
|
30352
|
+
}), a = I(
|
30338
30353
|
() => i.summary ? i.candidate.summary : i.candidate.generic.filter(
|
30339
30354
|
(h) => h.item_type !== "image"
|
30340
30355
|
)
|
30341
|
-
), s =
|
30356
|
+
), s = I(
|
30342
30357
|
() => i.summary ? !!i.candidate.summary.length : !!i.candidate.generic.length
|
30343
|
-
), 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[m.value] : !!h.form_content : !1, i = c, o =
|
30358
|
+
), 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[m.value] : !!h.form_content : !1, i = c, o = I(
|
30344
30359
|
() => {
|
30345
30360
|
var h;
|
30346
30361
|
return (h = i.candidate.generic.find((g) => g.item_type === "image")) == null ? void 0 : h.form_content;
|
30347
30362
|
}
|
30348
|
-
), f = A1("i18n"), { t: d, d: p } = f.global, m =
|
30363
|
+
), f = A1("i18n"), { t: d, d: p } = f.global, m = I(
|
30349
30364
|
() => f.global.locale.value || f.global.locale
|
30350
30365
|
);
|
30351
30366
|
return p1(() => {
|
@@ -30367,27 +30382,27 @@ const o01 = {
|
|
30367
30382
|
class: F(["AVResourceSection--container", { "AVResourceSection--card": c.card }]),
|
30368
30383
|
"data-test": "resource-section"
|
30369
30384
|
}, [
|
30370
|
-
c.summary && o.value ? (u(), z("div",
|
30385
|
+
c.summary && o.value ? (u(), z("div", E01, [
|
30371
30386
|
r("img", {
|
30372
30387
|
src: o.value,
|
30373
|
-
alt:
|
30388
|
+
alt: T(d)("js.components.AVResourceSection.alt_candidate"),
|
30374
30389
|
class: "AVResourceSection--image",
|
30375
30390
|
"data-test": "resource-image"
|
30376
|
-
}, null, 8,
|
30391
|
+
}, null, 8, T01)
|
30377
30392
|
])) : E("", !0),
|
30378
30393
|
r("div", {
|
30379
30394
|
class: F(
|
30380
30395
|
c.summary ? "AVResourceSection--fields-container" : "AVResourceSection--generic-container"
|
30381
30396
|
)
|
30382
30397
|
}, [
|
30383
|
-
r("div",
|
30384
|
-
c.summary && e.value ? (u(), z("h4",
|
30385
|
-
c.summary && l.value ? (u(), z("h5",
|
30386
|
-
c.summary && c.candidate.groups && !c.card ? (u(), z("div",
|
30387
|
-
r("h4",
|
30398
|
+
r("div", H01, [
|
30399
|
+
c.summary && e.value ? (u(), z("h4", I01, M(e.value), 1)) : E("", !0),
|
30400
|
+
c.summary && l.value ? (u(), z("h5", P01, M(l.value), 1)) : E("", !0),
|
30401
|
+
c.summary && c.candidate.groups && !c.card ? (u(), z("div", O01, [
|
30402
|
+
r("h4", $01, M(t.value.title), 1),
|
30388
30403
|
t.value.surplus ? (u(), Z(C, {
|
30389
30404
|
key: 0,
|
30390
|
-
text:
|
30405
|
+
text: T(d)("js.components.AVResourceSection.and_more", {
|
30391
30406
|
amount: t.value.surplus
|
30392
30407
|
}),
|
30393
30408
|
content: t.value.remaining,
|
@@ -30419,44 +30434,44 @@ const o01 = {
|
|
30419
30434
|
class: F(
|
30420
30435
|
_.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
30421
30436
|
),
|
30422
|
-
"aria-label": _.form_content ?
|
30437
|
+
"aria-label": _.form_content ? T(d)("js.components.AVResourceSection.true") : T(d)("js.components.AVResourceSection.false"),
|
30423
30438
|
"data-test": "resource-checkbox-icon"
|
30424
30439
|
}, null, 8, ["icon", "class", "aria-label"])) : E("", !0)
|
30425
30440
|
], 2)),
|
30426
|
-
!c.summary && _.item_type !== "check_box" ? (u(), z("hr",
|
30427
|
-
_.item_type === "link_list" && n(_) ? (u(), z("div",
|
30428
|
-
c.summary ? (u(), z("span",
|
30441
|
+
!c.summary && _.item_type !== "check_box" ? (u(), z("hr", R01)) : E("", !0),
|
30442
|
+
_.item_type === "link_list" && n(_) ? (u(), z("div", D01, [
|
30443
|
+
c.summary ? (u(), z("span", F01, M(`${_.label[m.value]}:`), 1)) : E("", !0),
|
30429
30444
|
(u(!0), z(K, null, r1(_.form_content, (b) => (u(), Z(y, {
|
30430
30445
|
key: b.attributes.name,
|
30431
30446
|
link: b,
|
30432
30447
|
large: !c.summary
|
30433
30448
|
}, null, 8, ["link", "large"]))), 128))
|
30434
|
-
])) : _.item_type === "check_box" && c.summary ? (u(), z("div",
|
30449
|
+
])) : _.item_type === "check_box" && c.summary ? (u(), z("div", q01, [
|
30435
30450
|
r("span", null, M(`${_.label[m.value]}`), 1),
|
30436
30451
|
V(x, {
|
30437
30452
|
icon: _.form_content ? "square-check" : "square-xmark",
|
30438
30453
|
class: F(
|
30439
30454
|
_.form_content ? "AVResourceFields--checkbox-true" : "AVResourceFields--checkbox-false"
|
30440
30455
|
),
|
30441
|
-
"aria-label": _.form_content ?
|
30456
|
+
"aria-label": _.form_content ? T(d)("js.components.AVResourceSection.true") : T(d)("js.components.AVResourceSection.false")
|
30442
30457
|
}, null, 8, ["icon", "class", "aria-label"])
|
30443
|
-
])) : _.item_type === "select" && n(_) ? (u(), z("div",
|
30444
|
-
c.summary ? (u(), z("span",
|
30458
|
+
])) : _.item_type === "select" && n(_) ? (u(), z("div", B01, [
|
30459
|
+
c.summary ? (u(), z("span", j01, M(`${_.label[m.value]}:`), 1)) : E("", !0),
|
30445
30460
|
n1(" " + M(_.form_content[m.value]), 1)
|
30446
|
-
])) : _.item_type === "video" && n(_) ? (u(), z("div",
|
30461
|
+
])) : _.item_type === "video" && n(_) ? (u(), z("div", U01, [
|
30447
30462
|
r("iframe", {
|
30448
30463
|
style: { width: "100%", height: "100%", "min-height": "400px" },
|
30449
30464
|
src: _.form_content.toString()
|
30450
|
-
}, null, 8,
|
30465
|
+
}, null, 8, W01)
|
30451
30466
|
])) : _.item_type === "rich_text_area" && !c.summary && n(_) ? (u(), z("div", {
|
30452
30467
|
key: 6,
|
30453
30468
|
class: "AVResourceFields--rich-text",
|
30454
30469
|
innerHTML: _.localised ? _.form_content[m.value] : _.form_content,
|
30455
30470
|
"data-test": "resource-rich-text"
|
30456
|
-
}, null, 8,
|
30457
|
-
c.summary ? (u(), z("span",
|
30471
|
+
}, null, 8, G01)) : _.item_type !== "rich_text_area" && _.item_type !== "check_box" ? (u(), z("p", Z01, [
|
30472
|
+
c.summary ? (u(), z("span", Y01, M(`${_.label[m.value]}: `), 1)) : E("", !0),
|
30458
30473
|
_.item_type === "date" || _.item_type === "date_time" ? (u(), z(K, { key: 1 }, [
|
30459
|
-
n1(M(
|
30474
|
+
n1(M(T(p)(
|
30460
30475
|
_.form_content,
|
30461
30476
|
_.item_type === "date" ? null : "long"
|
30462
30477
|
)), 1)
|
@@ -30472,22 +30487,22 @@ const o01 = {
|
|
30472
30487
|
], 2);
|
30473
30488
|
};
|
30474
30489
|
}
|
30475
|
-
}),
|
30490
|
+
}), X01 = /* @__PURE__ */ G(K01, [["__scopeId", "data-v-127e6553"]]), J01 = { class: "AVCalculateResultContent--container" }, Q01 = { class: "AVCalculateResultContent--information" }, c61 = {
|
30476
30491
|
class: "AVCalculateResultContent--information-set AVCalculateResultContent--role",
|
30477
30492
|
"data-test": "role"
|
30478
|
-
},
|
30493
|
+
}, e61 = { class: "AVCalculateResultContent--label" }, l61 = {
|
30479
30494
|
class: "AVCalculateResultContent--information-set AVCalculateResultContent--status",
|
30480
30495
|
"data-test": "status"
|
30481
|
-
},
|
30496
|
+
}, t61 = { class: "AVCalculateResultContent--label" }, a61 = { class: "AVCalculateResultContent--status-information" }, s61 = {
|
30482
30497
|
class: "AVCalculateResultContent--information-set",
|
30483
30498
|
"data-test": "mixes"
|
30484
|
-
},
|
30499
|
+
}, n61 = { class: "AVCalculateResultContent--label" }, i61 = {
|
30485
30500
|
class: "AVCalculateResultContent--information-set",
|
30486
30501
|
"data-test": "decryptions"
|
30487
|
-
},
|
30502
|
+
}, o61 = { class: "AVCalculateResultContent--label" }, r61 = {
|
30488
30503
|
class: "AVCalculateResultContent--information-set",
|
30489
30504
|
"data-test": "time"
|
30490
|
-
},
|
30505
|
+
}, f61 = { class: "AVCalculateResultContent--label" }, u61 = { class: "AVCalculateResultContent--elapsed" }, m61 = /* @__PURE__ */ W({
|
30491
30506
|
__name: "AVCalculateResultContent",
|
30492
30507
|
props: {
|
30493
30508
|
progress: {
|
@@ -30523,11 +30538,11 @@ const o01 = {
|
|
30523
30538
|
}
|
30524
30539
|
},
|
30525
30540
|
setup(c) {
|
30526
|
-
const e = A1("i18n"), { t: l } = e.global, t = c, a =
|
30541
|
+
const e = A1("i18n"), { t: l } = e.global, t = c, a = I(
|
30527
30542
|
() => l(`js.components.AVCalculateResultContent.roles.${t.role}`)
|
30528
|
-
), s =
|
30543
|
+
), s = I(
|
30529
30544
|
() => l(`js.components.AVCalculateResultContent.status.${t.status}`)
|
30530
|
-
), n =
|
30545
|
+
), n = I(() => {
|
30531
30546
|
switch (t.status) {
|
30532
30547
|
case "initial":
|
30533
30548
|
return "hourglass-half";
|
@@ -30553,22 +30568,22 @@ const o01 = {
|
|
30553
30568
|
{ deep: !0 }
|
30554
30569
|
), (i, o) => {
|
30555
30570
|
const f = O("AVProgressBar"), d = O("AVIcon"), p = O("AVWaitingDots");
|
30556
|
-
return u(), z("div",
|
30571
|
+
return u(), z("div", J01, [
|
30557
30572
|
V(f, {
|
30558
30573
|
value: c.progress,
|
30559
30574
|
"data-test": "progress"
|
30560
30575
|
}, null, 8, ["value"]),
|
30561
|
-
r("div",
|
30562
|
-
r("div",
|
30563
|
-
r("span",
|
30576
|
+
r("div", Q01, [
|
30577
|
+
r("div", c61, [
|
30578
|
+
r("span", e61, M(T(l)("js.components.AVCalculateResultContent.roles.label")), 1),
|
30564
30579
|
r("span", null, [
|
30565
30580
|
V(d, { icon: "user-shield" }),
|
30566
30581
|
n1(" " + M(a.value), 1)
|
30567
30582
|
])
|
30568
30583
|
]),
|
30569
|
-
r("div",
|
30570
|
-
r("span",
|
30571
|
-
r("span",
|
30584
|
+
r("div", l61, [
|
30585
|
+
r("span", t61, M(T(l)("js.components.AVCalculateResultContent.status.label")), 1),
|
30586
|
+
r("span", a61, [
|
30572
30587
|
V(d, {
|
30573
30588
|
icon: n.value,
|
30574
30589
|
class: F(["AVCalculateResultContent--status-icon", {
|
@@ -30580,23 +30595,23 @@ const o01 = {
|
|
30580
30595
|
c.status !== "finished" ? (u(), Z(p, { key: 0 })) : E("", !0)
|
30581
30596
|
])
|
30582
30597
|
]),
|
30583
|
-
r("div",
|
30584
|
-
r("span",
|
30598
|
+
r("div", s61, [
|
30599
|
+
r("span", n61, M(T(l)("js.components.AVCalculateResultContent.mixes.label")), 1),
|
30585
30600
|
r("span", null, M(`${c.mixes[0]}/${c.mixes[1]}`), 1)
|
30586
30601
|
]),
|
30587
|
-
r("div",
|
30588
|
-
r("span",
|
30602
|
+
r("div", i61, [
|
30603
|
+
r("span", o61, M(T(l)("js.components.AVCalculateResultContent.decryptions.label")), 1),
|
30589
30604
|
r("span", null, M(`${c.decryptions[0]}/${c.decryptions[1]}`), 1)
|
30590
30605
|
]),
|
30591
|
-
r("div",
|
30592
|
-
r("span",
|
30593
|
-
r("time",
|
30606
|
+
r("div", r61, [
|
30607
|
+
r("span", f61, M(T(l)("js.components.AVCalculateResultContent.elapsed.label")), 1),
|
30608
|
+
r("time", u61, M(c.elapsed), 1)
|
30594
30609
|
])
|
30595
30610
|
])
|
30596
30611
|
]);
|
30597
30612
|
};
|
30598
30613
|
}
|
30599
|
-
}),
|
30614
|
+
}), d61 = /* @__PURE__ */ G(m61, [["__scopeId", "data-v-ad18a2ae"]]), p61 = { class: "AVNormalSummary--container" }, z61 = { class: "AVNormalSummary" }, h61 = /* @__PURE__ */ W({
|
30600
30615
|
__name: "AVNormalSummary",
|
30601
30616
|
props: {
|
30602
30617
|
sortedResult: {
|
@@ -30620,8 +30635,8 @@ const o01 = {
|
|
30620
30635
|
const e = c, l = (t) => t === "blank" && e.disregardBlank ? !0 : e.hidePercentage;
|
30621
30636
|
return (t, a) => {
|
30622
30637
|
const s = O("AVResultOption");
|
30623
|
-
return u(), z("div",
|
30624
|
-
r("div",
|
30638
|
+
return u(), z("div", p61, [
|
30639
|
+
r("div", z61, [
|
30625
30640
|
(u(!0), z(K, null, r1(c.sortedResult, (n) => (u(), Z(s, {
|
30626
30641
|
key: `result_for_${n.reference}`,
|
30627
30642
|
optionTitle: n.title,
|
@@ -30637,11 +30652,11 @@ const o01 = {
|
|
30637
30652
|
]);
|
30638
30653
|
};
|
30639
30654
|
}
|
30640
|
-
}),
|
30655
|
+
}), L61 = /* @__PURE__ */ G(h61, [["__scopeId", "data-v-9ef35b76"]]), M61 = { class: "AVRankedSummary--container" }, g61 = {
|
30641
30656
|
class: "AVRankedSummary--table",
|
30642
30657
|
id: "ranked_summary_table",
|
30643
30658
|
"data-test": "table"
|
30644
|
-
},
|
30659
|
+
}, v61 = { class: "AVRankedSummary--heading" }, b61 = { key: 0 }, C61 = { key: 1 }, _61 = { key: 2 }, x61 = /* @__PURE__ */ W({
|
30645
30660
|
__name: "AVRankedSummary",
|
30646
30661
|
props: {
|
30647
30662
|
result: {
|
@@ -30666,10 +30681,10 @@ const o01 = {
|
|
30666
30681
|
}
|
30667
30682
|
},
|
30668
30683
|
setup(c) {
|
30669
|
-
const e = c, l =
|
30684
|
+
const e = c, l = I(() => {
|
30670
30685
|
var o, f;
|
30671
30686
|
return ((f = (o = e.result[0]) == null ? void 0 : o.rounds) == null ? void 0 : f.length) ?? 0;
|
30672
|
-
}), t =
|
30687
|
+
}), t = I(() => e.result.filter((o) => o.elected).map((o) => o.title[i.value] ?? Object.values(o.title)[0])), a = I(() => e.result.filter((o) => o.tied).map((o) => o.title[i.value] ?? Object.values(o.title)[0])), s = A1("i18n"), { t: n } = s.global, i = I(
|
30673
30688
|
() => s.global.locale.value || s.global.locale
|
30674
30689
|
);
|
30675
30690
|
return p1(() => {
|
@@ -30681,16 +30696,16 @@ const o01 = {
|
|
30681
30696
|
},
|
30682
30697
|
{ deep: !0 }
|
30683
30698
|
), (o, f) => (u(), z(K, null, [
|
30684
|
-
r("div",
|
30685
|
-
r("table",
|
30686
|
-
r("thead",
|
30699
|
+
r("div", M61, [
|
30700
|
+
r("table", g61, [
|
30701
|
+
r("thead", v61, [
|
30687
30702
|
r("tr", null, [
|
30688
|
-
r("th", null, M(
|
30689
|
-
r("th", null, M(
|
30703
|
+
r("th", null, M(T(n)("js.components.AVRankedSummary.header.position")), 1),
|
30704
|
+
r("th", null, M(T(n)("js.components.AVRankedSummary.header.candidate")), 1),
|
30690
30705
|
(u(!0), z(K, null, r1(l.value, (d) => (u(), z("th", {
|
30691
30706
|
key: `header_for_round_${d}`,
|
30692
30707
|
class: "AVRankedSummary--text"
|
30693
|
-
}, M(
|
30708
|
+
}, M(T(n)("js.components.AVRankedSummary.header.round_n", {
|
30694
30709
|
n: d
|
30695
30710
|
})), 1))), 128))
|
30696
30711
|
])
|
@@ -30725,24 +30740,24 @@ const o01 = {
|
|
30725
30740
|
class: F(`AVRankedSummary--summary AVRankedSummary--text-${c.theme}`),
|
30726
30741
|
"data-test": "summary"
|
30727
30742
|
}, [
|
30728
|
-
r("p", null, M(
|
30729
|
-
c.distributionNumber > 0 ? (u(), z("p",
|
30730
|
-
t.value.length > 0 ? (u(), z("p",
|
30731
|
-
n1(M(
|
30743
|
+
r("p", null, M(T(n)("js.components.AVRankedSummary.summary.seats")) + ": " + M(c.seats), 1),
|
30744
|
+
c.distributionNumber > 0 ? (u(), z("p", b61, M(T(n)("js.components.AVRankedSummary.summary.distribution")) + ": " + M(c.distributionNumber), 1)) : E("", !0),
|
30745
|
+
t.value.length > 0 ? (u(), z("p", C61, [
|
30746
|
+
n1(M(T(n)("js.components.AVRankedSummary.summary.elected")) + ": ", 1),
|
30732
30747
|
r("span", null, M(t.value.join(", ")), 1)
|
30733
30748
|
])) : E("", !0),
|
30734
|
-
a.value.length > 0 ? (u(), z("p",
|
30735
|
-
n1(M(
|
30749
|
+
a.value.length > 0 ? (u(), z("p", _61, [
|
30750
|
+
n1(M(T(n)("js.components.AVRankedSummary.summary.tied")) + ": ", 1),
|
30736
30751
|
r("span", null, M(a.value.join(", ")), 1)
|
30737
30752
|
])) : E("", !0)
|
30738
30753
|
], 2)
|
30739
30754
|
], 64));
|
30740
30755
|
}
|
30741
|
-
}),
|
30756
|
+
}), y61 = /* @__PURE__ */ G(x61, [["__scopeId", "data-v-32323466"]]), N61 = { class: "AVInstantRunoffSummary" }, A61 = { class: "AVInstantRunoffSummary--container" }, k61 = { class: "AVInstantRunoffSummary--table-container" }, S61 = {
|
30742
30757
|
class: "AVInstantRunoffSummary--table",
|
30743
30758
|
id: "ranked_summary_table",
|
30744
30759
|
"data-test": "table"
|
30745
|
-
},
|
30760
|
+
}, V61 = { class: "AVInstantRunoffSummary--heading" }, w61 = /* @__PURE__ */ W({
|
30746
30761
|
__name: "AVInstantRunoffSummary",
|
30747
30762
|
props: {
|
30748
30763
|
rounds: {
|
@@ -30783,7 +30798,7 @@ const o01 = {
|
|
30783
30798
|
}
|
30784
30799
|
},
|
30785
30800
|
setup(c) {
|
30786
|
-
const e = c, l = (o, f) => e.rounds[f].counts[o] || 0, t = (o, f) => e.rounds[f].eliminated === o && "AVInstantRunoffSummary--eliminated", a = (o, f) => e.rounds[f].elected === o && "AVInstantRunoffSummary--elected", s = A1("i18n"), { t: n } = s.global, i =
|
30801
|
+
const e = c, l = (o, f) => e.rounds[f].counts[o] || 0, t = (o, f) => e.rounds[f].eliminated === o && "AVInstantRunoffSummary--eliminated", a = (o, f) => e.rounds[f].elected === o && "AVInstantRunoffSummary--elected", s = A1("i18n"), { t: n } = s.global, i = I(
|
30787
30802
|
() => s.global.locale.value || s.global.locale
|
30788
30803
|
);
|
30789
30804
|
return p1(() => {
|
@@ -30796,22 +30811,22 @@ const o01 = {
|
|
30796
30811
|
{ deep: !0 }
|
30797
30812
|
), (o, f) => {
|
30798
30813
|
const d = O("AVIcon"), p = s2("tooltip");
|
30799
|
-
return u(), z("div",
|
30814
|
+
return u(), z("div", N61, [
|
30800
30815
|
r("h5", {
|
30801
30816
|
class: F(["AVInstantRunoffSummary--title", `AVInstantRunoffSummary--text-${c.theme}`]),
|
30802
30817
|
"data-test": "seat-title"
|
30803
|
-
}, M(
|
30804
|
-
r("div",
|
30805
|
-
r("div",
|
30806
|
-
r("table",
|
30807
|
-
r("thead",
|
30818
|
+
}, M(T(n)("js.components.AVInstantRunoffSummary.seat_n", { n: c.seatNumber })), 3),
|
30819
|
+
r("div", A61, [
|
30820
|
+
r("div", k61, [
|
30821
|
+
r("table", S61, [
|
30822
|
+
r("thead", V61, [
|
30808
30823
|
r("tr", null, [
|
30809
|
-
r("th", null, M(
|
30824
|
+
r("th", null, M(T(n)("js.components.AVInstantRunoffSummary.header.candidate")), 1),
|
30810
30825
|
(u(!0), z(K, null, r1(c.rounds, (m, h) => $1((u(), z("th", {
|
30811
30826
|
key: `instant_runoff_seat_${c.seatNumber}_round_${h}`,
|
30812
30827
|
class: "AVInstantRunoffSummary--text"
|
30813
30828
|
}, [
|
30814
|
-
n1(M(
|
30829
|
+
n1(M(T(n)("js.components.AVInstantRunoffSummary.header.round_n", {
|
30815
30830
|
n: h + 1
|
30816
30831
|
})) + " ", 1),
|
30817
30832
|
V(d, {
|
@@ -30848,7 +30863,7 @@ const o01 = {
|
|
30848
30863
|
r("tr", null, [
|
30849
30864
|
r("td", {
|
30850
30865
|
class: F(`AVInstantRunoffSummary--text-${c.theme}`)
|
30851
|
-
}, M(
|
30866
|
+
}, M(T(n)(
|
30852
30867
|
"js.components.AVInstantRunoffSummary.summary.transfered_votes"
|
30853
30868
|
)), 3),
|
30854
30869
|
(u(!0), z(K, null, r1(c.rounds.length, (m) => (u(), z("td", {
|
@@ -30859,7 +30874,7 @@ const o01 = {
|
|
30859
30874
|
r("tr", null, [
|
30860
30875
|
r("td", {
|
30861
30876
|
class: F(`AVInstantRunoffSummary--text-${c.theme}`)
|
30862
|
-
}, M(
|
30877
|
+
}, M(T(n)("js.components.AVInstantRunoffSummary.summary.exhausted")), 3),
|
30863
30878
|
(u(!0), z(K, null, r1(c.rounds.length, (m) => (u(), z("td", {
|
30864
30879
|
key: `instant_runoff_seat_${c.seatNumber}_exhausted_${m}`,
|
30865
30880
|
class: F(["AVInstantRunoffSummary--text AVInstantRunoffSummary--cell-text", `AVInstantRunoffSummary--text-${c.theme}`])
|
@@ -30873,44 +30888,44 @@ const o01 = {
|
|
30873
30888
|
class: F(["AVInstantRunoffSummary--summary", `AVInstantRunoffSummary--text-${c.theme}`]),
|
30874
30889
|
"data-test": "not-included"
|
30875
30890
|
}, [
|
30876
|
-
r("strong", null, M(
|
30891
|
+
r("strong", null, M(T(n)("js.components.AVInstantRunoffSummary.summary.not_included_count")), 1),
|
30877
30892
|
n1(" " + M(c.votesNotIncluded), 1)
|
30878
30893
|
], 2)) : E("", !0),
|
30879
30894
|
r("p", {
|
30880
30895
|
class: F(["AVInstantRunoffSummary--summary", `AVInstantRunoffSummary--text-${c.theme}`]),
|
30881
30896
|
"data-test": "abstain"
|
30882
30897
|
}, [
|
30883
|
-
r("strong", null, M(
|
30898
|
+
r("strong", null, M(T(n)("js.components.AVInstantRunoffSummary.summary.abstain")), 1),
|
30884
30899
|
n1(" " + M(c.blankVotes), 1)
|
30885
30900
|
], 2),
|
30886
30901
|
r("p", {
|
30887
30902
|
class: F(["AVInstantRunoffSummary--summary", `AVInstantRunoffSummary--text-${c.theme}`]),
|
30888
30903
|
"data-test": "total"
|
30889
30904
|
}, [
|
30890
|
-
r("strong", null, M(
|
30905
|
+
r("strong", null, M(T(n)("js.components.AVInstantRunoffSummary.summary.total_votes")), 1),
|
30891
30906
|
n1(" " + M(c.totalVotes), 1)
|
30892
30907
|
], 2),
|
30893
30908
|
r("p", {
|
30894
30909
|
class: F(["AVInstantRunoffSummary--summary", `AVInstantRunoffSummary--text-${c.theme}`]),
|
30895
30910
|
"data-test": "quota"
|
30896
30911
|
}, [
|
30897
|
-
r("strong", null, M(
|
30912
|
+
r("strong", null, M(T(n)("js.components.AVInstantRunoffSummary.summary.quota")), 1),
|
30898
30913
|
n1(" " + M(c.quota), 1)
|
30899
30914
|
], 2)
|
30900
30915
|
])
|
30901
30916
|
]);
|
30902
30917
|
};
|
30903
30918
|
}
|
30904
|
-
}),
|
30905
|
-
var
|
30906
|
-
function
|
30919
|
+
}), E61 = /* @__PURE__ */ G(w61, [["__scopeId", "data-v-28f67e70"]]);
|
30920
|
+
var T61 = {}, H61 = { class: "flex items-center" }, I61 = { class: "flex flex-col items-center justify-center p-3 w-full" };
|
30921
|
+
function P61(c, e) {
|
30907
30922
|
var l = O("AVNavbarItem"), t = O("AVNavigationItemList"), a = O("AVMenuDropdown"), s = O("AVNavbar"), n = O("AVLabel"), i = O("AVTabSwitcher"), o = O("AVSidebarItem"), f = O("AVButton"), d = O("AVSidebar"), p = O("AVContent"), m = O("AVFooter");
|
30908
30923
|
return u(), z(K, null, [
|
30909
30924
|
V(s, null, {
|
30910
30925
|
default: t1(function() {
|
30911
30926
|
return [
|
30912
30927
|
e[0] || (e[0] = r("a", { href: "#" }, "LOGO", -1)),
|
30913
|
-
r("div",
|
30928
|
+
r("div", H61, [
|
30914
30929
|
V(t, { type: "navbar" }, {
|
30915
30930
|
default: t1(function() {
|
30916
30931
|
return [
|
@@ -30953,7 +30968,7 @@ function I61(c, e) {
|
|
30953
30968
|
V(d, null, {
|
30954
30969
|
default: t1(function() {
|
30955
30970
|
return [
|
30956
|
-
r("div",
|
30971
|
+
r("div", I61, [
|
30957
30972
|
e[1] || (e[1] = r("h2", { class: "mb-4" }, "Election Name", -1)),
|
30958
30973
|
V(n, {
|
30959
30974
|
value: "draft",
|
@@ -31065,16 +31080,16 @@ function I61(c, e) {
|
|
31065
31080
|
V(m)
|
31066
31081
|
], 64);
|
31067
31082
|
}
|
31068
|
-
const
|
31069
|
-
var
|
31070
|
-
function
|
31083
|
+
const O61 = /* @__PURE__ */ G(T61, [["render", P61]]);
|
31084
|
+
var $61 = {}, R61 = { class: "flex items-center" }, D61 = { class: "flex flex-col items-center justify-center p-3 w-full" };
|
31085
|
+
function F61(c, e) {
|
31071
31086
|
var l = O("AVNavbarItem"), t = O("AVNavigationItemList"), a = O("AVMenuDropdown"), s = O("AVNavbar"), n = O("AVLabel"), i = O("AVTabSwitcher"), o = O("AVSidebarItem"), f = O("AVButton"), d = O("AVSidebar"), p = O("AVContent"), m = O("AVFooter");
|
31072
31087
|
return u(), z(K, null, [
|
31073
31088
|
V(s, null, {
|
31074
31089
|
default: t1(function() {
|
31075
31090
|
return [
|
31076
31091
|
e[0] || (e[0] = r("a", { href: "#" }, "LOGO", -1)),
|
31077
|
-
r("div",
|
31092
|
+
r("div", R61, [
|
31078
31093
|
V(t, { type: "navbar" }, {
|
31079
31094
|
default: t1(function() {
|
31080
31095
|
return [
|
@@ -31117,7 +31132,7 @@ function D61(c, e) {
|
|
31117
31132
|
V(d, null, {
|
31118
31133
|
default: t1(function() {
|
31119
31134
|
return [
|
31120
|
-
r("div",
|
31135
|
+
r("div", D61, [
|
31121
31136
|
e[1] || (e[1] = r("h2", { class: "mb-4" }, "Election Name", -1)),
|
31122
31137
|
V(n, {
|
31123
31138
|
value: "draft",
|
@@ -31262,16 +31277,16 @@ function D61(c, e) {
|
|
31262
31277
|
V(m)
|
31263
31278
|
], 64);
|
31264
31279
|
}
|
31265
|
-
const
|
31266
|
-
var
|
31267
|
-
function
|
31280
|
+
const q61 = /* @__PURE__ */ G($61, [["render", F61]]);
|
31281
|
+
var B61 = {}, j61 = { class: "flex items-center" };
|
31282
|
+
function U61(c, e) {
|
31268
31283
|
var l = O("AVNavbarItem"), t = O("AVNavigationItemList"), a = O("AVMenuDropdown"), s = O("AVNavbar"), n = O("AVContent"), i = O("AVFooter");
|
31269
31284
|
return u(), z(K, null, [
|
31270
31285
|
V(s, null, {
|
31271
31286
|
default: t1(function() {
|
31272
31287
|
return [
|
31273
31288
|
e[0] || (e[0] = r("a", { href: "#" }, "LOGO", -1)),
|
31274
|
-
r("div",
|
31289
|
+
r("div", j61, [
|
31275
31290
|
V(t, { type: "navbar" }, {
|
31276
31291
|
default: t1(function() {
|
31277
31292
|
return [
|
@@ -31334,10 +31349,10 @@ function j61(c, e) {
|
|
31334
31349
|
})
|
31335
31350
|
], 64);
|
31336
31351
|
}
|
31337
|
-
const
|
31352
|
+
const W61 = /* @__PURE__ */ G(B61, [["render", U61]]), G61 = { class: "flex items-center" }, Z61 = { href: "/new" }, Y61 = { class: "new-election-button" }, K61 = {
|
31338
31353
|
key: 0,
|
31339
31354
|
class: "no-elections-container"
|
31340
|
-
},
|
31355
|
+
}, X61 = /* @__PURE__ */ W({
|
31341
31356
|
__name: "ElectionDashboardLayout",
|
31342
31357
|
setup(c) {
|
31343
31358
|
const e = [
|
@@ -31396,7 +31411,7 @@ const U61 = /* @__PURE__ */ G(q61, [["render", j61]]), W61 = { class: "flex item
|
|
31396
31411
|
V(i, null, {
|
31397
31412
|
default: t1(() => [
|
31398
31413
|
t[0] || (t[0] = r("a", { href: "#" }, "LOGO", -1)),
|
31399
|
-
r("div",
|
31414
|
+
r("div", G61, [
|
31400
31415
|
V(s, { type: "navbar" }, {
|
31401
31416
|
default: t1(() => [
|
31402
31417
|
V(a, {
|
@@ -31437,7 +31452,7 @@ const U61 = /* @__PURE__ */ G(q61, [["render", j61]]), W61 = { class: "flex item
|
|
31437
31452
|
class: "dashboard-container"
|
31438
31453
|
}, {
|
31439
31454
|
default: t1(() => [
|
31440
|
-
r("a",
|
31455
|
+
r("a", Z61, [
|
31441
31456
|
V(f, {
|
31442
31457
|
variant: "rounded",
|
31443
31458
|
role: "button"
|
@@ -31449,7 +31464,7 @@ const U61 = /* @__PURE__ */ G(q61, [["render", j61]]), W61 = { class: "flex item
|
|
31449
31464
|
"data-test": "title"
|
31450
31465
|
}, "Create new election")
|
31451
31466
|
], -1)),
|
31452
|
-
r("div",
|
31467
|
+
r("div", Y61, [
|
31453
31468
|
V(o, {
|
31454
31469
|
icon: "fa-solid fa-circle-plus",
|
31455
31470
|
class: "new-election-icon"
|
@@ -31459,7 +31474,7 @@ const U61 = /* @__PURE__ */ G(q61, [["render", j61]]), W61 = { class: "flex item
|
|
31459
31474
|
_: 1
|
31460
31475
|
})
|
31461
31476
|
]),
|
31462
|
-
e.length === 0 ? (u(), z("div",
|
31477
|
+
e.length === 0 ? (u(), z("div", K61, [
|
31463
31478
|
V(o, {
|
31464
31479
|
icon: "fa-solid fa-folder-open",
|
31465
31480
|
class: "no-elections-icon"
|
@@ -31496,16 +31511,16 @@ const U61 = /* @__PURE__ */ G(q61, [["render", j61]]), W61 = { class: "flex item
|
|
31496
31511
|
], 64);
|
31497
31512
|
};
|
31498
31513
|
}
|
31499
|
-
}),
|
31514
|
+
}), J61 = /* @__PURE__ */ G(X61, [["__scopeId", "data-v-20fc858f"]]), c81 = {
|
31500
31515
|
install: function(c, e) {
|
31501
|
-
e === void 0 && (e = null), c.use(RZ), c.component("AVIcon", NK), c.component("AVButton", SK), c.component("AVSpinner", wK), c.component("AVBullet", T6), c.component("AVTextInput", FK), c.component("AVNumberInput", YK), c.component("AVPasswordInput", aX), c.component("AVDatetimeInput", mX), c.component("AVTextArea", vX), c.component("AVCard", xX), c.component("AVRoundButton", NX), c.component("AVLabel", CX), c.component("AVDropdown", PX), c.component("AVDropdownContent", RX), c.component("AVDropdownItem", FX), c.component("AVAlert", GX), c.component("AVFileInput", xJ), c.component("AVRadio", kJ), c.component("AVLink", wJ), c.component("AVNavbarItem", OJ), c.component("AVSidebarItem", BJ), c.component("AVTooltip", GJ), c.component("AVMenuDropdown", XJ), c.component("AVMenuDropdownContent", cQ), c.component("AVMenuDropdownItem", tQ), c.component("AVAsyncButton", iQ), c.component("AVTabSwitcher", uQ), c.component("AVBallotSummary", hQ), c.component("AVTimedCard", vQ), c.component("AVBasicSteps", xQ), c.component("AVSteps", kQ), c.component("AVOptionSelect", TQ), c.component("AVOptionCheckbox", RQ), c.component("AVAnimatedTransition", FQ), c.component("AVCollapser", UQ), c.component("AVLinkVisualizer", ZQ), c.component("AVVerticalStep", f11), c.component("AVAnimatedMenuButton", m11), c.component("AVProgressBar", h11), c.component("AVWaitingDots", v11), c.component("AVRadioGroup", y11), c.component("AVNavigationItemList", A11), c.component("AVBreadcrumb", E11), c.component("AVElectionCard", K11), c.component("AVBallotStyleCard", s21), c.component("AVSummaryOption", p21), c.component("AVOption", T21), c.component("AVBlankOption", F21), c.component("AVWriteInOption", J21), c.component("AVSubmissionHelper", r31), c.component("AVSearchBallot", x31), c.component("AVSplitWeightHelper", V31), c.component("AVSplitWizardHeader", P31), c.component("AVElectaContestCard", D31), c.component("AVResultOption", Y31), c.component("AVRecommendationList",
|
31516
|
+
e === void 0 && (e = null), c.use(RZ), c.component("AVIcon", NK), c.component("AVButton", SK), c.component("AVSpinner", wK), c.component("AVBullet", T6), c.component("AVTextInput", FK), c.component("AVNumberInput", YK), c.component("AVPasswordInput", aX), c.component("AVDatetimeInput", mX), c.component("AVTextArea", vX), c.component("AVCard", xX), c.component("AVRoundButton", NX), c.component("AVLabel", CX), c.component("AVDropdown", PX), c.component("AVDropdownContent", RX), c.component("AVDropdownItem", FX), c.component("AVAlert", GX), c.component("AVFileInput", xJ), c.component("AVRadio", kJ), c.component("AVLink", wJ), c.component("AVNavbarItem", OJ), c.component("AVSidebarItem", BJ), c.component("AVTooltip", GJ), c.component("AVMenuDropdown", XJ), c.component("AVMenuDropdownContent", cQ), c.component("AVMenuDropdownItem", tQ), c.component("AVAsyncButton", iQ), c.component("AVTabSwitcher", uQ), c.component("AVBallotSummary", hQ), c.component("AVTimedCard", vQ), c.component("AVBasicSteps", xQ), c.component("AVSteps", kQ), c.component("AVOptionSelect", TQ), c.component("AVOptionCheckbox", RQ), c.component("AVAnimatedTransition", FQ), c.component("AVCollapser", UQ), c.component("AVLinkVisualizer", ZQ), c.component("AVVerticalStep", f11), c.component("AVAnimatedMenuButton", m11), c.component("AVProgressBar", h11), c.component("AVWaitingDots", v11), c.component("AVRadioGroup", y11), c.component("AVNavigationItemList", A11), c.component("AVBreadcrumb", E11), c.component("AVElectionCard", K11), c.component("AVBallotStyleCard", s21), c.component("AVSummaryOption", p21), c.component("AVOption", T21), c.component("AVBlankOption", F21), c.component("AVWriteInOption", J21), c.component("AVSubmissionHelper", r31), c.component("AVSearchBallot", x31), c.component("AVSplitWeightHelper", V31), c.component("AVSplitWizardHeader", P31), c.component("AVElectaContestCard", D31), c.component("AVResultOption", Y31), c.component("AVRecommendationList", p41), c.component("AVFooter", M41), c.component("AVSidebar", C41), c.component("AVNavbar", N41), c.component("AVContent", E41), c.component("AVModal", I41), c.component("AVBallot", j41), c.component("AVPileSummary", s01), c.component("AVSplitHelper", w01), c.component("AVResourceSection", X01), c.component("AVCalculateResultContent", d61), c.component("AVNormalSummary", L61), c.component("AVRankedSummary", y61), c.component("AVInstantRunoffSummary", E61), c.component("OneColumnLayout", O61), c.component("TwoColumnsLayout", q61), c.component("NoSidebarLayout", W61), c.component("ElectionDashboardLayout", J61), c.provide("i18n", e || In), c.provide("iconNames", $G);
|
31502
31517
|
}
|
31503
31518
|
};
|
31504
31519
|
export {
|
31505
31520
|
GX as AVAlert,
|
31506
31521
|
FQ as AVAnimatedTransition,
|
31507
31522
|
iQ as AVAsyncButton,
|
31508
|
-
|
31523
|
+
j41 as AVBallot,
|
31509
31524
|
s21 as AVBallotStyleCard,
|
31510
31525
|
hQ as AVBallotSummary,
|
31511
31526
|
xQ as AVBasicSteps,
|
@@ -31513,10 +31528,10 @@ export {
|
|
31513
31528
|
E11 as AVBreadcrumb,
|
31514
31529
|
T6 as AVBullet,
|
31515
31530
|
SK as AVButton,
|
31516
|
-
|
31531
|
+
d61 as AVCalculateResultContent,
|
31517
31532
|
xX as AVCard,
|
31518
31533
|
UQ as AVCollapser,
|
31519
|
-
|
31534
|
+
E41 as AVContent,
|
31520
31535
|
mX as AVDatetimeInput,
|
31521
31536
|
PX as AVDropdown,
|
31522
31537
|
RX as AVDropdownContent,
|
@@ -31524,39 +31539,39 @@ export {
|
|
31524
31539
|
D31 as AVElectaContestCard,
|
31525
31540
|
K11 as AVElectionCard,
|
31526
31541
|
xJ as AVFileInput,
|
31527
|
-
|
31542
|
+
M41 as AVFooter,
|
31528
31543
|
NK as AVIcon,
|
31529
|
-
|
31544
|
+
E61 as AVInstantRunoffSummary,
|
31530
31545
|
CX as AVLabel,
|
31531
31546
|
wJ as AVLink,
|
31532
31547
|
ZQ as AVLinkVisualizer,
|
31533
31548
|
XJ as AVMenuDropdown,
|
31534
31549
|
cQ as AVMenuDropdownContent,
|
31535
31550
|
tQ as AVMenuDropdownItem,
|
31536
|
-
|
31537
|
-
|
31551
|
+
I41 as AVModal,
|
31552
|
+
N41 as AVNavbar,
|
31538
31553
|
OJ as AVNavbarItem,
|
31539
31554
|
A11 as AVNavigationItemList,
|
31540
|
-
|
31555
|
+
L61 as AVNormalSummary,
|
31541
31556
|
YK as AVNumberInput,
|
31542
31557
|
T21 as AVOption,
|
31543
31558
|
RQ as AVOptionCheckbox,
|
31544
31559
|
TQ as AVOptionSelect,
|
31545
31560
|
aX as AVPasswordInput,
|
31546
|
-
|
31561
|
+
s01 as AVPileSummary,
|
31547
31562
|
h11 as AVProgressBar,
|
31548
31563
|
kJ as AVRadio,
|
31549
31564
|
y11 as AVRadioGroup,
|
31550
|
-
|
31551
|
-
|
31552
|
-
|
31565
|
+
y61 as AVRankedSummary,
|
31566
|
+
p41 as AVRecommendationList,
|
31567
|
+
X01 as AVResourceSection,
|
31553
31568
|
Y31 as AVResultOption,
|
31554
31569
|
NX as AVRoundButton,
|
31555
31570
|
x31 as AVSearchBallot,
|
31556
|
-
|
31571
|
+
C41 as AVSidebar,
|
31557
31572
|
BJ as AVSidebarItem,
|
31558
31573
|
wK as AVSpinner,
|
31559
|
-
|
31574
|
+
w01 as AVSplitHelper,
|
31560
31575
|
V31 as AVSplitWeightHelper,
|
31561
31576
|
P31 as AVSplitWizardHeader,
|
31562
31577
|
kQ as AVSteps,
|
@@ -31569,10 +31584,10 @@ export {
|
|
31569
31584
|
GJ as AVTooltip,
|
31570
31585
|
v11 as AVWaitingDots,
|
31571
31586
|
J21 as AVWriteInOption,
|
31572
|
-
|
31573
|
-
|
31574
|
-
|
31575
|
-
|
31576
|
-
|
31587
|
+
J61 as ElectionDashboardLayout,
|
31588
|
+
W61 as NoSidebarLayout,
|
31589
|
+
O61 as OneColumnLayout,
|
31590
|
+
q61 as TwoColumnsLayout,
|
31591
|
+
c81 as default,
|
31577
31592
|
$G as iconNames
|
31578
31593
|
};
|