@assemblyvoting/ui-library 2.1.8 → 2.1.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { unref as X2, getCurrentScope as nk, onScopeDispose as rk, watch as e2, ref as $, computed as L, onMounted as z2, onUnmounted as lk, h as j2, Transition as N2, withDirectives as w2, vShow as J2, defineComponent as O, openBlock as u, createElementBlock as d, createBlock as E, resolveDynamicComponent as Oa, withCtx as F, renderSlot as Q, resolveComponent as H, normalizeClass as I, createCommentVNode as g, createTextVNode as J, toDisplayString as V, createElementVNode as l, createVNode as z, normalizeStyle as h2, reactive as T9, provide as D9, Fragment as R, renderList as Z, inject as I9, pushScopeId as D2, popScopeId as I2, useCssVars as ok, mergeProps as fk, withModifiers as S2, withKeys as P9, createSlots as uk, nextTick as mk, vModelText as B9 } from "vue";
1
+ import { unref as X2, getCurrentScope as nk, onScopeDispose as rk, watch as i2, ref as $, computed as L, onMounted as v2, onUnmounted as lk, h as j2, Transition as N2, withDirectives as w2, vShow as J2, defineComponent as O, openBlock as u, createElementBlock as d, createBlock as E, resolveDynamicComponent as Oa, withCtx as F, renderSlot as Q, resolveComponent as H, normalizeClass as I, createCommentVNode as g, createTextVNode as J, toDisplayString as V, createElementVNode as l, createVNode as z, normalizeStyle as V2, reactive as T9, provide as D9, Fragment as R, renderList as Z, inject as I9, pushScopeId as D2, popScopeId as I2, useCssVars as ok, mergeProps as fk, withModifiers as S2, withKeys as P9, createSlots as uk, nextTick as mk, vModelText as B9 } from "vue";
2
2
  var s2 = "top", u2 = "bottom", m2 = "right", n2 = "left", P4 = "auto", y1 = [s2, u2, m2, n2], K2 = "start", H1 = "end", dk = "clippingParents", O9 = "viewport", m1 = "popper", vk = "reference", ja = /* @__PURE__ */ y1.reduce(function(c, a) {
3
3
  return c.concat([a + "-" + K2, a + "-" + H1]);
4
4
  }, []), j9 = /* @__PURE__ */ [].concat(y1, [P4]).reduce(function(c, a) {
5
5
  return c.concat([a, a + "-" + K2, a + "-" + H1]);
6
6
  }, []), pk = "beforeRead", hk = "read", Vk = "afterRead", zk = "beforeMain", Hk = "main", Mk = "afterMain", gk = "beforeWrite", Ck = "write", Lk = "afterWrite", bk = [pk, hk, Vk, zk, Hk, Mk, gk, Ck, Lk];
7
- function V2(c) {
7
+ function z2(c) {
8
8
  return c ? (c.nodeName || "").toLowerCase() : null;
9
9
  }
10
10
  function r2(c) {
@@ -34,7 +34,7 @@ function xk(c) {
34
34
  var a = c.state;
35
35
  Object.keys(a.elements).forEach(function(e) {
36
36
  var i = a.styles[e] || {}, t = a.attributes[e] || {}, s = a.elements[e];
37
- !f2(s) || !V2(s) || (Object.assign(s.style, i), Object.keys(t).forEach(function(n) {
37
+ !f2(s) || !z2(s) || (Object.assign(s.style, i), Object.keys(t).forEach(function(n) {
38
38
  var r = t[n];
39
39
  r === !1 ? s.removeAttribute(n) : s.setAttribute(n, r === !0 ? "" : r);
40
40
  }));
@@ -58,7 +58,7 @@ function yk(c) {
58
58
  var t = a.elements[i], s = a.attributes[i] || {}, n = Object.keys(a.styles.hasOwnProperty(i) ? a.styles[i] : e[i]), r = n.reduce(function(o, m) {
59
59
  return o[m] = "", o;
60
60
  }, {});
61
- !f2(t) || !V2(t) || (Object.assign(t.style, r), Object.keys(s).forEach(function(o) {
61
+ !f2(t) || !z2(t) || (Object.assign(t.style, r), Object.keys(s).forEach(function(o) {
62
62
  t.removeAttribute(o);
63
63
  }));
64
64
  });
@@ -72,7 +72,7 @@ const Ak = {
72
72
  effect: yk,
73
73
  requires: ["computeStyles"]
74
74
  };
75
- function p2(c) {
75
+ function h2(c) {
76
76
  return c.split("-")[0];
77
77
  }
78
78
  var F2 = Math.max, o3 = Math.min, c1 = Math.round;
@@ -128,7 +128,7 @@ function g2(c) {
128
128
  return r2(c).getComputedStyle(c);
129
129
  }
130
130
  function Sk(c) {
131
- return ["table", "td", "th"].indexOf(V2(c)) >= 0;
131
+ return ["table", "td", "th"].indexOf(z2(c)) >= 0;
132
132
  }
133
133
  function P2(c) {
134
134
  return (($2(c) ? c.ownerDocument : (
@@ -137,7 +137,7 @@ function P2(c) {
137
137
  )) || window.document).documentElement;
138
138
  }
139
139
  function h3(c) {
140
- return V2(c) === "html" ? c : (
140
+ return z2(c) === "html" ? c : (
141
141
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
142
142
  // $FlowFixMe[incompatible-return]
143
143
  // $FlowFixMe[prop-missing]
@@ -160,7 +160,7 @@ function Nk(c) {
160
160
  return null;
161
161
  }
162
162
  var t = h3(c);
163
- for (B4(t) && (t = t.host); f2(t) && ["html", "body"].indexOf(V2(t)) < 0; ) {
163
+ for (B4(t) && (t = t.host); f2(t) && ["html", "body"].indexOf(z2(t)) < 0; ) {
164
164
  var s = g2(t);
165
165
  if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || a && s.willChange === "filter" || a && s.filter && s.filter !== "none")
166
166
  return t;
@@ -171,7 +171,7 @@ function Nk(c) {
171
171
  function A1(c) {
172
172
  for (var a = r2(c), e = Ea(c); e && Sk(e) && g2(e).position === "static"; )
173
173
  e = Ea(e);
174
- return e && (V2(e) === "html" || V2(e) === "body" && g2(e).position === "static") ? a : e || Nk(c) || a;
174
+ return e && (z2(e) === "html" || z2(e) === "body" && g2(e).position === "static") ? a : e || Nk(c) || a;
175
175
  }
176
176
  function j4(c) {
177
177
  return ["top", "bottom"].indexOf(c) >= 0 ? "x" : "y";
@@ -205,7 +205,7 @@ var kk = function(a, e) {
205
205
  })) : a, $9(typeof a != "number" ? a : R9(a, y1));
206
206
  };
207
207
  function _k(c) {
208
- var a, e = c.state, i = c.name, t = c.options, s = e.elements.arrow, n = e.modifiersData.popperOffsets, r = p2(e.placement), o = j4(r), m = [n2, m2].indexOf(r) >= 0, f = m ? "height" : "width";
208
+ var a, e = c.state, i = c.name, t = c.options, s = e.elements.arrow, n = e.modifiersData.popperOffsets, r = h2(e.placement), o = j4(r), m = [n2, m2].indexOf(r) >= 0, f = m ? "height" : "width";
209
209
  if (!(!s || !n)) {
210
210
  var v = kk(t.padding, e), p = O4(s), h = o === "y" ? s2 : n2, C = o === "y" ? u2 : m2, M = e.rects.reference[f] + e.rects.reference[o] - n[o] - e.rects.popper[f], A = n[o] - e.rects.reference[o], B = A1(s), j = B ? o === "y" ? B.clientHeight || 0 : B.clientWidth || 0 : 0, b = M / 2 - A / 2, x = v[h], D = j - p[f] - v[C], w = j / 2 - p[f] / 2 + b, k = p1(x, w, D), S = o;
211
211
  e.modifiersData[i] = (a = {}, a[S] = k, a.centerOffset = k - w, a);
@@ -286,7 +286,7 @@ function qa(c) {
286
286
  }
287
287
  function Bk(c) {
288
288
  var a = c.state, e = c.options, i = e.gpuAcceleration, t = i === void 0 ? !0 : i, s = e.adaptive, n = s === void 0 ? !0 : s, r = e.roundOffsets, o = r === void 0 ? !0 : r, m = {
289
- placement: p2(a.placement),
289
+ placement: h2(a.placement),
290
290
  variation: a1(a.placement),
291
291
  popper: a.elements.popper,
292
292
  popperRect: a.rects.popper,
@@ -394,7 +394,7 @@ function F4(c) {
394
394
  return /auto|scroll|overlay|hidden/.test(e + t + i);
395
395
  }
396
396
  function U9(c) {
397
- return ["html", "body", "#document"].indexOf(V2(c)) >= 0 ? c.ownerDocument.body : f2(c) && F4(c) ? c : U9(h3(c));
397
+ return ["html", "body", "#document"].indexOf(z2(c)) >= 0 ? c.ownerDocument.body : f2(c) && F4(c) ? c : U9(h3(c));
398
398
  }
399
399
  function h1(c, a) {
400
400
  var e;
@@ -423,7 +423,7 @@ function $a(c, a, e) {
423
423
  function Wk(c) {
424
424
  var a = h1(h3(c)), e = ["absolute", "fixed"].indexOf(g2(c).position) >= 0, i = e && f2(c) ? A1(c) : c;
425
425
  return $2(i) ? a.filter(function(t) {
426
- return $2(t) && q9(t, i) && V2(t) !== "body";
426
+ return $2(t) && q9(t, i) && z2(t) !== "body";
427
427
  }) : [];
428
428
  }
429
429
  function Gk(c, a, e, i) {
@@ -434,7 +434,7 @@ function Gk(c, a, e, i) {
434
434
  return r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
435
435
  }
436
436
  function W9(c) {
437
- var a = c.reference, e = c.element, i = c.placement, t = i ? p2(i) : null, s = i ? a1(i) : null, n = a.x + a.width / 2 - e.width / 2, r = a.y + a.height / 2 - e.height / 2, o;
437
+ var a = c.reference, e = c.element, i = c.placement, t = i ? h2(i) : null, s = i ? a1(i) : null, n = a.x + a.width / 2 - e.width / 2, r = a.y + a.height / 2 - e.height / 2, o;
438
438
  switch (t) {
439
439
  case s2:
440
440
  o = {
@@ -496,8 +496,8 @@ function M1(c, a) {
496
496
  if (p === m1 && y) {
497
497
  var U = y[t];
498
498
  Object.keys(q).forEach(function(W) {
499
- var a2 = [m2, u2].indexOf(W) >= 0 ? 1 : -1, o2 = [s2, u2].indexOf(W) >= 0 ? "y" : "x";
500
- q[W] += U[o2] * a2;
499
+ var e2 = [m2, u2].indexOf(W) >= 0 ? 1 : -1, o2 = [s2, u2].indexOf(W) >= 0 ? "y" : "x";
500
+ q[W] += U[o2] * e2;
501
501
  });
502
502
  }
503
503
  return q;
@@ -516,14 +516,14 @@ function Yk(c, a) {
516
516
  boundary: t,
517
517
  rootBoundary: s,
518
518
  padding: n
519
- })[p2(M)], C;
519
+ })[h2(M)], C;
520
520
  }, {});
521
521
  return Object.keys(h).sort(function(C, M) {
522
522
  return h[C] - h[M];
523
523
  });
524
524
  }
525
525
  function Qk(c) {
526
- if (p2(c) === P4)
526
+ if (h2(c) === P4)
527
527
  return [];
528
528
  var a = n3(c);
529
529
  return [Fa(c), a, Fa(a)];
@@ -531,8 +531,8 @@ function Qk(c) {
531
531
  function Zk(c) {
532
532
  var a = c.state, e = c.options, i = c.name;
533
533
  if (!a.modifiersData[i]._skip) {
534
- for (var t = e.mainAxis, s = t === void 0 ? !0 : t, n = e.altAxis, r = n === void 0 ? !0 : n, o = e.fallbackPlacements, m = e.padding, f = e.boundary, v = e.rootBoundary, p = e.altBoundary, h = e.flipVariations, C = h === void 0 ? !0 : h, M = e.allowedAutoPlacements, A = a.options.placement, B = p2(A), j = B === A, b = o || (j || !C ? [n3(A)] : Qk(A)), x = [A].concat(b).reduce(function(G2, y2) {
535
- return G2.concat(p2(y2) === P4 ? Yk(a, {
534
+ for (var t = e.mainAxis, s = t === void 0 ? !0 : t, n = e.altAxis, r = n === void 0 ? !0 : n, o = e.fallbackPlacements, m = e.padding, f = e.boundary, v = e.rootBoundary, p = e.altBoundary, h = e.flipVariations, C = h === void 0 ? !0 : h, M = e.allowedAutoPlacements, A = a.options.placement, B = h2(A), j = B === A, b = o || (j || !C ? [n3(A)] : Qk(A)), x = [A].concat(b).reduce(function(G2, y2) {
535
+ return G2.concat(h2(y2) === P4 ? Yk(a, {
536
536
  placement: y2,
537
537
  boundary: f,
538
538
  rootBoundary: v,
@@ -541,22 +541,22 @@ function Zk(c) {
541
541
  allowedAutoPlacements: M
542
542
  }) : y2);
543
543
  }, []), D = a.rects.reference, w = a.rects.popper, k = /* @__PURE__ */ new Map(), S = !0, _ = x[0], q = 0; q < x.length; q++) {
544
- var y = x[q], U = p2(y), W = a1(y) === K2, a2 = [s2, u2].indexOf(U) >= 0, o2 = a2 ? "width" : "height", t2 = M1(a, {
544
+ var y = x[q], U = h2(y), W = a1(y) === K2, e2 = [s2, u2].indexOf(U) >= 0, o2 = e2 ? "width" : "height", t2 = M1(a, {
545
545
  placement: y,
546
546
  boundary: f,
547
547
  rootBoundary: v,
548
548
  altBoundary: p,
549
549
  padding: m
550
- }), c2 = a2 ? W ? m2 : n2 : W ? u2 : s2;
550
+ }), c2 = e2 ? W ? m2 : n2 : W ? u2 : s2;
551
551
  D[o2] > w[o2] && (c2 = n3(c2));
552
- var H2 = n3(c2), i2 = [];
553
- if (s && i2.push(t2[U] <= 0), r && i2.push(t2[c2] <= 0, t2[H2] <= 0), i2.every(function(G2) {
552
+ var H2 = n3(c2), a2 = [];
553
+ if (s && a2.push(t2[U] <= 0), r && a2.push(t2[c2] <= 0, t2[H2] <= 0), a2.every(function(G2) {
554
554
  return G2;
555
555
  })) {
556
556
  _ = y, S = !1;
557
557
  break;
558
558
  }
559
- k.set(y, i2);
559
+ k.set(y, a2);
560
560
  }
561
561
  if (S)
562
562
  for (var M2 = C ? 3 : 1, W2 = function(y2) {
@@ -627,7 +627,7 @@ const Kk = {
627
627
  fn: Jk
628
628
  };
629
629
  function c_(c, a, e) {
630
- var i = p2(c), t = [n2, s2].indexOf(i) >= 0 ? -1 : 1, s = typeof e == "function" ? e(Object.assign({}, a, {
630
+ var i = h2(c), t = [n2, s2].indexOf(i) >= 0 ? -1 : 1, s = typeof e == "function" ? e(Object.assign({}, a, {
631
631
  placement: c
632
632
  })) : e, n = s[0], r = s[1];
633
633
  return n = n || 0, r = (r || 0) * t, [n2, m2].indexOf(i) >= 0 ? {
@@ -676,7 +676,7 @@ function n_(c) {
676
676
  rootBoundary: m,
677
677
  padding: v,
678
678
  altBoundary: f
679
- }), B = p2(a.placement), j = a1(a.placement), b = !j, x = j4(B), D = s_(x), w = a.modifiersData.popperOffsets, k = a.rects.reference, S = a.rects.popper, _ = typeof M == "function" ? M(Object.assign({}, a.rects, {
679
+ }), B = h2(a.placement), j = a1(a.placement), b = !j, x = j4(B), D = s_(x), w = a.modifiersData.popperOffsets, k = a.rects.reference, S = a.rects.popper, _ = typeof M == "function" ? M(Object.assign({}, a.rects, {
680
680
  placement: a.placement
681
681
  })) : M, q = typeof _ == "number" ? {
682
682
  mainAxis: _,
@@ -690,10 +690,10 @@ function n_(c) {
690
690
  };
691
691
  if (w) {
692
692
  if (s) {
693
- var W, a2 = x === "y" ? s2 : n2, o2 = x === "y" ? u2 : m2, t2 = x === "y" ? "height" : "width", c2 = w[x], H2 = c2 + A[a2], i2 = c2 - A[o2], M2 = h ? -S[t2] / 2 : 0, W2 = j === K2 ? k[t2] : S[t2], f1 = j === K2 ? -S[t2] : -k[t2], G1 = a.elements.arrow, G2 = h && G1 ? O4(G1) : {
693
+ var W, e2 = x === "y" ? s2 : n2, o2 = x === "y" ? u2 : m2, t2 = x === "y" ? "height" : "width", c2 = w[x], H2 = c2 + A[e2], a2 = c2 - A[o2], M2 = h ? -S[t2] / 2 : 0, W2 = j === K2 ? k[t2] : S[t2], f1 = j === K2 ? -S[t2] : -k[t2], G1 = a.elements.arrow, G2 = h && G1 ? O4(G1) : {
694
694
  width: 0,
695
695
  height: 0
696
- }, y2 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : F9(), u1 = y2[a2], Y1 = y2[o2], B2 = p1(0, k[t2], G2[t2]), v4 = b ? k[t2] / 2 - M2 - B2 - u1 - q.mainAxis : W2 - B2 - u1 - q.mainAxis, ck = b ? -k[t2] / 2 + M2 + B2 + Y1 + q.mainAxis : f1 + B2 + Y1 + q.mainAxis, p4 = a.elements.arrow && A1(a.elements.arrow), ek = p4 ? x === "y" ? p4.clientTop || 0 : p4.clientLeft || 0 : 0, Na = (W = y == null ? void 0 : y[x]) != null ? W : 0, ak = c2 + v4 - Na - ek, ik = c2 + ck - Na, wa = p1(h ? o3(H2, ak) : H2, c2, h ? F2(i2, ik) : i2);
696
+ }, y2 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : F9(), u1 = y2[e2], Y1 = y2[o2], B2 = p1(0, k[t2], G2[t2]), v4 = b ? k[t2] / 2 - M2 - B2 - u1 - q.mainAxis : W2 - B2 - u1 - q.mainAxis, ck = b ? -k[t2] / 2 + M2 + B2 + Y1 + q.mainAxis : f1 + B2 + Y1 + q.mainAxis, p4 = a.elements.arrow && A1(a.elements.arrow), ek = p4 ? x === "y" ? p4.clientTop || 0 : p4.clientLeft || 0 : 0, Na = (W = y == null ? void 0 : y[x]) != null ? W : 0, ak = c2 + v4 - Na - ek, ik = c2 + ck - Na, wa = p1(h ? o3(H2, ak) : H2, c2, h ? F2(a2, ik) : a2);
697
697
  w[x] = wa, U[x] = wa - c2;
698
698
  }
699
699
  if (r) {
@@ -732,7 +732,7 @@ function u_(c, a, e) {
732
732
  x: 0,
733
733
  y: 0
734
734
  };
735
- return (i || !i && !e) && ((V2(a) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
735
+ return (i || !i && !e) && ((z2(a) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
736
736
  F4(s)) && (r = o_(a)), f2(a) ? (o = e1(a, !0), o.x += a.clientLeft, o.y += a.clientTop) : s && (o.x = q4(s))), {
737
737
  x: n.left + r.scrollLeft - o.x,
738
738
  y: n.top + r.scrollTop - o.y,
@@ -954,7 +954,7 @@ function V4(...c) {
954
954
  Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
955
955
  const s = [], n = () => {
956
956
  s.forEach((f) => f()), s.length = 0;
957
- }, r = (f, v, p, h) => (f.addEventListener(v, p, h), () => f.removeEventListener(v, p, h)), o = e2(() => [d1(a), u3(t)], ([f, v]) => {
957
+ }, r = (f, v, p, h) => (f.addEventListener(v, p, h), () => f.removeEventListener(v, p, h)), o = i2(() => [d1(a), u3(t)], ([f, v]) => {
958
958
  n(), f && s.push(...e.flatMap((p) => i.map((h) => r(f, p, h, v))));
959
959
  }, { immediate: !0, flush: "post" }), m = () => {
960
960
  o(), n();
@@ -1266,7 +1266,7 @@ const a9 = {
1266
1266
  e.disableClickOutside !== !0 && C("close");
1267
1267
  },
1268
1268
  { ignore: [t] }
1269
- ), z2(() => {
1269
+ ), v2(() => {
1270
1270
  i.value !== void 0 && t.value !== void 0 && (s.value = z_(
1271
1271
  i.value,
1272
1272
  t.value,
@@ -1275,7 +1275,7 @@ const a9 = {
1275
1275
  }), lk(() => {
1276
1276
  var S;
1277
1277
  (S = s.value) == null || S.destroy(), s.value = void 0;
1278
- }), e2(n, (S) => {
1278
+ }), i2(n, (S) => {
1279
1279
  var _;
1280
1280
  if (S === !1) {
1281
1281
  e.onClosed !== void 0 && e.onClosed();
@@ -11195,7 +11195,7 @@ function nT(c) {
11195
11195
  z1.splice(z1.indexOf(c), 1);
11196
11196
  };
11197
11197
  }
11198
- var A2 = x4, v2 = {
11198
+ var A2 = x4, p2 = {
11199
11199
  size: 16,
11200
11200
  x: 0,
11201
11201
  y: 0,
@@ -11244,7 +11244,7 @@ function o4(c) {
11244
11244
  }, "");
11245
11245
  }
11246
11246
  function ga(c) {
11247
- return c.size !== v2.size || c.x !== v2.x || c.y !== v2.y || c.rotate !== v2.rotate || c.flipX || c.flipY;
11247
+ return c.size !== p2.size || c.x !== p2.x || c.y !== p2.y || c.rotate !== p2.rotate || c.flipX || c.flipY;
11248
11248
  }
11249
11249
  function fT(c) {
11250
11250
  var a = c.transform, e = c.containerWidth, i = c.iconWidth, t = {
@@ -12747,7 +12747,7 @@ function QT() {
12747
12747
  title: null,
12748
12748
  titleId: null,
12749
12749
  prefix: null,
12750
- transform: v2,
12750
+ transform: p2,
12751
12751
  symbol: !1,
12752
12752
  mask: {
12753
12753
  iconName: null,
@@ -12771,7 +12771,7 @@ function C9(c) {
12771
12771
  title: c.getAttribute("title"),
12772
12772
  titleId: c.getAttribute("data-fa-title-id"),
12773
12773
  prefix: t,
12774
- transform: v2,
12774
+ transform: p2,
12775
12775
  mask: {
12776
12776
  iconName: null,
12777
12777
  prefix: null,
@@ -12860,7 +12860,7 @@ function JT(c) {
12860
12860
  };
12861
12861
  }
12862
12862
  var KT = function(a) {
12863
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.transform, t = i === void 0 ? v2 : i, s = e.symbol, n = s === void 0 ? !1 : s, r = e.mask, o = r === void 0 ? null : r, m = e.maskId, f = m === void 0 ? null : m, v = e.title, p = v === void 0 ? null : v, h = e.titleId, C = h === void 0 ? null : h, M = e.classes, A = M === void 0 ? [] : M, B = e.attributes, j = B === void 0 ? {} : B, b = e.styles, x = b === void 0 ? {} : b;
12863
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.transform, t = i === void 0 ? p2 : i, s = e.symbol, n = s === void 0 ? !1 : s, r = e.mask, o = r === void 0 ? null : r, m = e.maskId, f = m === void 0 ? null : m, v = e.title, p = v === void 0 ? null : v, h = e.titleId, C = h === void 0 ? null : h, M = e.classes, A = M === void 0 ? [] : M, B = e.attributes, j = B === void 0 ? {} : B, b = e.styles, x = b === void 0 ? {} : b;
12864
12864
  if (a) {
12865
12865
  var D = a.prefix, w = a.iconName, k = a.icon;
12866
12866
  return m4(N({
@@ -12881,7 +12881,7 @@ var KT = function(a) {
12881
12881
  },
12882
12882
  prefix: D,
12883
12883
  iconName: w,
12884
- transform: N(N({}, v2), t),
12884
+ transform: N(N({}, p2), t),
12885
12885
  symbol: n,
12886
12886
  title: p,
12887
12887
  maskId: f,
@@ -13011,7 +13011,7 @@ var KT = function(a) {
13011
13011
  mixout: function() {
13012
13012
  return {
13013
13013
  text: function(e) {
13014
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = i.transform, s = t === void 0 ? v2 : t, n = i.title, r = n === void 0 ? null : n, o = i.classes, m = o === void 0 ? [] : o, f = i.attributes, v = f === void 0 ? {} : f, p = i.styles, h = p === void 0 ? {} : p;
13014
+ var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = i.transform, s = t === void 0 ? p2 : t, n = i.title, r = n === void 0 ? null : n, o = i.classes, m = o === void 0 ? [] : o, f = i.attributes, v = f === void 0 ? {} : f, p = i.styles, h = p === void 0 ? {} : p;
13015
13015
  return m4({
13016
13016
  type: "text",
13017
13017
  content: e
@@ -13021,7 +13021,7 @@ var KT = function(a) {
13021
13021
  params: i
13022
13022
  }), V9({
13023
13023
  content: e,
13024
- transform: N(N({}, v2), s),
13024
+ transform: N(N({}, p2), s),
13025
13025
  title: r,
13026
13026
  extra: {
13027
13027
  attributes: v,
@@ -13467,7 +13467,7 @@ const VD = O({
13467
13467
  title: s.value
13468
13468
  })
13469
13469
  );
13470
- e2(
13470
+ i2(
13471
13471
  n,
13472
13472
  (o) => {
13473
13473
  if (!o)
@@ -13842,7 +13842,7 @@ const _D = /* @__PURE__ */ P(kD, [["__scopeId", "data-v-9ab10a3b"]]), TD = { cla
13842
13842
  onBlur: s,
13843
13843
  type: "number",
13844
13844
  class: I(`AVNumberInput ${c.error && "error"} ${!c.icon && "no-icon"} ${c.disabled && "disabled"}`),
13845
- style: h2(`margin-right: -${c.error ? "3.75" : "1.4"}rem`),
13845
+ style: V2(`margin-right: -${c.error ? "3.75" : "1.4"}rem`),
13846
13846
  id: c.id,
13847
13847
  disabled: c.disabled,
13848
13848
  ref: "numberInput",
@@ -14080,7 +14080,7 @@ const YD = /* @__PURE__ */ P(GD, [["__scopeId", "data-v-d3a76ffa"]]), QD = { cla
14080
14080
  onInput: e,
14081
14081
  type: "datetime-local",
14082
14082
  class: I(`AVDatetimeInput ${c.error && "error"} ${!c.icon && "no-icon"} ${c.disabled && "disabled"}`),
14083
- style: h2(`margin-right: -${c.error ? "3.75" : "1.4"}rem`),
14083
+ style: V2(`margin-right: -${c.error ? "3.75" : "1.4"}rem`),
14084
14084
  id: c.id,
14085
14085
  disabled: c.disabled,
14086
14086
  ref: "datetimeInput",
@@ -14170,7 +14170,7 @@ const aI = /* @__PURE__ */ P(eI, [["__scopeId", "data-v-2fe9b4c5"]]), iI = { cla
14170
14170
  l("div", sI, [
14171
14171
  l("div", {
14172
14172
  class: "AVTextArea--icon-container",
14173
- style: h2(`height: ${1.5625 * c.rows + 1}rem;`)
14173
+ style: V2(`height: ${1.5625 * c.rows + 1}rem;`)
14174
14174
  }, [
14175
14175
  c.icon ? (u(), E(n, {
14176
14176
  key: 0,
@@ -14340,7 +14340,7 @@ const hI = /* @__PURE__ */ P(pI, [["__scopeId", "data-v-ff11beb8"]]), VI = { cla
14340
14340
  } : o)), s = L(() => t.value.find(
14341
14341
  (o) => o.value === e.modelValue
14342
14342
  ));
14343
- z2(() => {
14343
+ v2(() => {
14344
14344
  i.id = e.id;
14345
14345
  });
14346
14346
  const n = (o) => {
@@ -14504,7 +14504,7 @@ const kI = /* @__PURE__ */ P(wI, [["__scopeId", "data-v-2ca0bff3"]]), _I = {
14504
14504
  const e = c, i = () => {
14505
14505
  a("dismiss");
14506
14506
  };
14507
- z2(() => {
14507
+ v2(() => {
14508
14508
  e.timeout && setTimeout(() => {
14509
14509
  i();
14510
14510
  }, Number.parseInt(e.timeout));
@@ -14524,7 +14524,7 @@ const kI = /* @__PURE__ */ P(wI, [["__scopeId", "data-v-2ca0bff3"]]), _I = {
14524
14524
  const o = H("AVIcon");
14525
14525
  return u(), d("div", {
14526
14526
  class: I(`AVAlert AVAlert--${c.type}`),
14527
- style: h2(c.customWidth && `width: ${c.customWidth}px`),
14527
+ style: V2(c.customWidth && `width: ${c.customWidth}px`),
14528
14528
  "data-test": "alert"
14529
14529
  }, [
14530
14530
  c.disableHeader ? g("", !0) : (u(), d("div", _I, [
@@ -14672,7 +14672,7 @@ const BI = /* @__PURE__ */ P(PI, [["__scopeId", "data-v-0cc3f6d1"]]), OI = {
14672
14672
  emits: ["update", "fileFormatNotAccepted", "download"],
14673
14673
  setup(c, { emit: a }) {
14674
14674
  const e = c, i = $(!1), t = $(null), s = $([]), n = L(() => OI[e.locale]);
14675
- z2(() => {
14675
+ v2(() => {
14676
14676
  e.value && (s.value = e.value);
14677
14677
  });
14678
14678
  const r = () => {
@@ -14876,7 +14876,7 @@ const vP = /* @__PURE__ */ P(dP, [["__scopeId", "data-v-3122c494"]]), pP = (c) =
14876
14876
  emits: ["update"],
14877
14877
  setup(c, { emit: a }) {
14878
14878
  const e = c, i = $(!1);
14879
- z2(() => {
14879
+ v2(() => {
14880
14880
  e.checked && (i.value = e.checked);
14881
14881
  });
14882
14882
  const t = () => {
@@ -14884,7 +14884,7 @@ const vP = /* @__PURE__ */ P(dP, [["__scopeId", "data-v-3122c494"]]), pP = (c) =
14884
14884
  }, s = () => {
14885
14885
  a("update", e.value, i.value);
14886
14886
  };
14887
- return e2(
14887
+ return i2(
14888
14888
  () => e.checked,
14889
14889
  () => {
14890
14890
  i.value = e.checked;
@@ -15037,7 +15037,7 @@ const LP = /* @__PURE__ */ P(CP, [["__scopeId", "data-v-999075bc"]]), bP = ["hre
15037
15037
  href: t.value,
15038
15038
  class: I(`AVNavbarItem ${c.active ? "AVNavbarItem--active" : ""} ${c.disabled && "disabled"}`),
15039
15039
  target: c.target,
15040
- style: h2(`width: ${c.customWidth}px`)
15040
+ style: V2(`width: ${c.customWidth}px`)
15041
15041
  }, [
15042
15042
  c.disableIcon ? g("", !0) : (u(), E(o, {
15043
15043
  key: 0,
@@ -15048,7 +15048,7 @@ const LP = /* @__PURE__ */ P(CP, [["__scopeId", "data-v-999075bc"]]), bP = ["hre
15048
15048
  ], 14, bP)) : (u(), d("button", {
15049
15049
  key: 1,
15050
15050
  class: I(`AVNavbarItem ${c.active ? "AVNavbarItem--active" : ""} ${c.disabled && "disabled"}`),
15051
- style: h2(`width: ${c.customWidth}px`),
15051
+ style: V2(`width: ${c.customWidth}px`),
15052
15052
  disabled: c.disabled,
15053
15053
  onClick: s
15054
15054
  }, [
@@ -15239,7 +15239,7 @@ const EP = /* @__PURE__ */ P(jP, [["__scopeId", "data-v-f09132ab"]]), qP = { cla
15239
15239
  active: !1,
15240
15240
  id: null
15241
15241
  });
15242
- z2(() => {
15242
+ v2(() => {
15243
15243
  e.id = a.id;
15244
15244
  });
15245
15245
  const i = () => {
@@ -15384,7 +15384,7 @@ const ZP = /* @__PURE__ */ P(QP, [["__scopeId", "data-v-f770cea1"]]), XP = ["dis
15384
15384
  emits: ["update:waiting"],
15385
15385
  setup(c, { emit: a }) {
15386
15386
  const e = c, i = $(!1);
15387
- e2(i, (r) => a("update:waiting", r));
15387
+ i2(i, (r) => a("update:waiting", r));
15388
15388
  const t = L(() => {
15389
15389
  if (!i.value)
15390
15390
  switch (e.variant) {
@@ -15462,7 +15462,7 @@ const KP = /* @__PURE__ */ P(JP, [["__scopeId", "data-v-11042fa9"]]), cB = { cla
15462
15462
  emits: ["update"],
15463
15463
  setup(c, { emit: a }) {
15464
15464
  const e = c, i = $([]), t = $(""), s = L(() => e.options.length === 2 ? "AVTabSwitcher--double" : "AVTabSwitcher--triple");
15465
- z2(() => n());
15465
+ v2(() => n());
15466
15466
  const n = () => {
15467
15467
  i.value = [], e.options.map(
15468
15468
  (v) => i.value.push({ value: v, selected: !1 })
@@ -15485,15 +15485,15 @@ const KP = /* @__PURE__ */ P(JP, [["__scopeId", "data-v-11042fa9"]]), cB = { cla
15485
15485
  }, f = () => {
15486
15486
  a("update", t.value, i.value);
15487
15487
  };
15488
- return e2(
15488
+ return i2(
15489
15489
  () => e.options,
15490
15490
  () => n()
15491
- ), e2(
15491
+ ), i2(
15492
15492
  () => e.selected,
15493
15493
  () => {
15494
15494
  t.value = e.selected, r(e.selected);
15495
15495
  }
15496
- ), e2(
15496
+ ), i2(
15497
15497
  () => e.disabled,
15498
15498
  () => o()
15499
15499
  ), (v, p) => (u(), d("div", cB, [
@@ -15593,7 +15593,7 @@ const lB = /* @__PURE__ */ P(rB, [["__scopeId", "data-v-607d90fc"]]), oB = {
15593
15593
  emits: ["expired"],
15594
15594
  setup(c, { emit: a }) {
15595
15595
  const e = c;
15596
- z2(() => {
15596
+ v2(() => {
15597
15597
  t();
15598
15598
  });
15599
15599
  const i = $(0), t = () => {
@@ -15606,7 +15606,7 @@ const lB = /* @__PURE__ */ P(rB, [["__scopeId", "data-v-607d90fc"]]), oB = {
15606
15606
  return (f, v) => (u(), d(R, null, [
15607
15607
  l("div", {
15608
15608
  class: "AVTimedCard",
15609
- style: h2(`width: ${c.customWidth}px`)
15609
+ style: V2(`width: ${c.customWidth}px`)
15610
15610
  }, [
15611
15611
  l("div", oB, [
15612
15612
  Q(f.$slots, "default", {}, void 0, !0)
@@ -15614,7 +15614,7 @@ const lB = /* @__PURE__ */ P(rB, [["__scopeId", "data-v-607d90fc"]]), oB = {
15614
15614
  l("div", fB, [
15615
15615
  l("div", {
15616
15616
  class: I(`AVTimedCard--progress-bar ${c.timeout - i.value <= c.customWarningTime && "AVTimedCard--progress-bar-warning"}`),
15617
- style: h2(`width: ${s.value}%`),
15617
+ style: V2(`width: ${s.value}%`),
15618
15618
  "data-test": "progress-bar"
15619
15619
  }, null, 6)
15620
15620
  ])
@@ -15703,15 +15703,15 @@ const zB = /* @__PURE__ */ P(VB, [["__scopeId", "data-v-9a6218e9"]]), HB = { cla
15703
15703
  });
15704
15704
  });
15705
15705
  }, t = (n) => a.done ? a.done.includes(n) : !1;
15706
- z2(() => {
15706
+ v2(() => {
15707
15707
  i();
15708
- }), e2(
15708
+ }), i2(
15709
15709
  () => a.steps,
15710
15710
  () => i()
15711
- ), e2(
15711
+ ), i2(
15712
15712
  () => a.active,
15713
15713
  () => i()
15714
- ), e2(
15714
+ ), i2(
15715
15715
  () => a.done,
15716
15716
  () => i()
15717
15717
  );
@@ -15953,13 +15953,10 @@ const OB = /* @__PURE__ */ P(BB, [["__scopeId", "data-v-e8dac5a8"]]), jB = /* @_
15953
15953
  collapsable: e.collapsable,
15954
15954
  startCollapsed: e.startCollapsed
15955
15955
  }));
15956
- e2(
15957
- () => s,
15958
- () => {
15959
- const { collapsable: r, startCollapsed: o } = s.value;
15960
- i.value = r && !o;
15961
- }
15962
- );
15956
+ v2(() => {
15957
+ const { collapsable: r, startCollapsed: o } = s.value;
15958
+ i.value = r && !o;
15959
+ });
15963
15960
  const n = (r = null, o = !0) => {
15964
15961
  e.collapsable && (t.value = o, r === null ? i.value = !i.value : i.value = !!r, i.value && a("accordionOpen"));
15965
15962
  };
@@ -16013,7 +16010,7 @@ const OB = /* @__PURE__ */ P(BB, [["__scopeId", "data-v-e8dac5a8"]]), jB = /* @_
16013
16010
  };
16014
16011
  }
16015
16012
  });
16016
- const $B = /* @__PURE__ */ P(FB, [["__scopeId", "data-v-b23b716a"]]), RB = { class: "AVRadioGroup--input-set" }, UB = ["for"], WB = {
16013
+ const $B = /* @__PURE__ */ P(FB, [["__scopeId", "data-v-4e9b2c30"]]), RB = { class: "AVRadioGroup--input-set" }, UB = ["for"], WB = {
16017
16014
  key: 1,
16018
16015
  class: "AVRadioGroup--error",
16019
16016
  "data-test": "error-msg"
@@ -16074,7 +16071,7 @@ const $B = /* @__PURE__ */ P(FB, [["__scopeId", "data-v-b23b716a"]]), RB = { cla
16074
16071
  else
16075
16072
  return;
16076
16073
  };
16077
- z2(() => {
16074
+ v2(() => {
16078
16075
  e.options.map(
16079
16076
  (m) => t.value.push({ value: m, checked: !1 })
16080
16077
  ), e.initialValue && s(e.initialValue), e.disabled && n();
@@ -16084,12 +16081,12 @@ const $B = /* @__PURE__ */ P(FB, [["__scopeId", "data-v-b23b716a"]]), RB = { cla
16084
16081
  }, o = () => {
16085
16082
  a("update", i.value, t.value);
16086
16083
  };
16087
- return e2(
16084
+ return i2(
16088
16085
  () => e.initialValue,
16089
16086
  () => {
16090
16087
  i.value = e.initialValue, s(e.initialValue);
16091
16088
  }
16092
- ), e2(
16089
+ ), i2(
16093
16090
  () => e.disabled,
16094
16091
  () => {
16095
16092
  n();
@@ -16730,7 +16727,7 @@ const BO = {
16730
16727
  default: !1
16731
16728
  },
16732
16729
  partialResults: {
16733
- type: Array,
16730
+ type: Object,
16734
16731
  default: null
16735
16732
  },
16736
16733
  locale: {
@@ -16775,11 +16772,9 @@ const BO = {
16775
16772
  ), b = L(() => e.option.selectable !== void 0 && !e.option.selectable ? 0 : D.value ? 1 : e.option.voteLimit || e.contest.markingType.votesAllowedPerOption || 1), x = L(() => e.selections.length > 0 ? _(e.option.children) : 0), D = L(() => e.option.exclusive), w = L(() => {
16776
16773
  const y = Array.from(Array(b.value).keys());
16777
16774
  y.forEach((o2) => y[o2] = o2 + 1);
16778
- const U = y.indexOf(Math.ceil(b.value / 2)) + 1, W = y.slice(0, U), a2 = y.slice(U);
16779
- return a2.length ? [W, a2] : [W];
16780
- }), k = L(() => e.partialResults && e.partialResults.find(
16781
- (y) => y.reference === e.option.reference
16782
- ) || null), S = (y, U = 1) => {
16775
+ const U = y.indexOf(Math.ceil(b.value / 2)) + 1, W = y.slice(0, U), e2 = y.slice(U);
16776
+ return e2.length ? [W, e2] : [W];
16777
+ }), k = L(() => e.partialResults && e.partialResults[e.option.reference] || null), S = (y, U = 1) => {
16783
16778
  a("checked", {
16784
16779
  reference: y,
16785
16780
  amount: U
@@ -16788,22 +16783,22 @@ const BO = {
16788
16783
  if (!y)
16789
16784
  return 0;
16790
16785
  let U = y.filter(
16791
- (W) => e.selections.map((a2) => a2.reference).includes(W.reference)
16786
+ (W) => e.selections.map((e2) => e2.reference).includes(W.reference)
16792
16787
  ).length;
16793
- return y.reduce((W, a2) => W + _(a2.children), U);
16788
+ return y.reduce((W, e2) => W + _(e2.children), U);
16794
16789
  }, q = (y) => {
16795
- t.value = !1, y === e.option.code && (a("accordion-open"), mk(() => {
16790
+ t.value = !1, y === e.option.reference && (a("accordion-open"), mk(() => {
16796
16791
  t.value = !0, s.value.scrollIntoView({ behavior: "smooth", block: "center" });
16797
16792
  }));
16798
16793
  };
16799
- return e2(
16794
+ return i2(
16800
16795
  () => i.value.get("highlight-option"),
16801
16796
  (y) => {
16802
16797
  const [U] = y ?? [];
16803
16798
  q(U);
16804
16799
  }
16805
16800
  ), (y, U) => {
16806
- const W = H("AVIcon"), a2 = H("AVOptionCheckbox"), o2 = H("AVOption", !0), t2 = H("AVCollapser");
16801
+ const W = H("AVIcon"), e2 = H("AVOptionCheckbox"), o2 = H("AVOption", !0), t2 = H("AVCollapser");
16807
16802
  return u(), d("div", {
16808
16803
  class: I({
16809
16804
  "AVOption--background": !0,
@@ -16813,8 +16808,8 @@ const BO = {
16813
16808
  l("a", {
16814
16809
  id: c.option.reference,
16815
16810
  class: "AVOption--scroll-anchor",
16816
- href: `option_${c.option.code}_checkbox`,
16817
- "aria-labelledby": `option_${c.option.code}_title`
16811
+ href: `option_${c.option.reference}_checkbox`,
16812
+ "aria-labelledby": `option_${c.option.reference}_title`
16818
16813
  }, null, 8, OO),
16819
16814
  z(t2, {
16820
16815
  collapsable: c.contest.collapsable && j.value,
@@ -16830,7 +16825,7 @@ const BO = {
16830
16825
  "AVOption--highlight": t.value,
16831
16826
  "AVOption--accent": c.option.color
16832
16827
  }),
16833
- style: h2(c.option.color ? `border-left-color: ${c.option.color}` : ""),
16828
+ style: V2(c.option.color ? `border-left-color: ${c.option.color}` : ""),
16834
16829
  "aria-label": n.value.aria_labels.option
16835
16830
  }, [
16836
16831
  l("div", {
@@ -16857,17 +16852,17 @@ const BO = {
16857
16852
  l("p", { innerHTML: v.value }, null, 8, WO)
16858
16853
  ])) : g("", !0),
16859
16854
  B.value.length > 0 ? (u(), d("div", GO, [
16860
- (u(!0), d(R, null, Z(B.value, (i2) => (u(), d("a", {
16861
- key: i2.toString(),
16862
- href: i2.url,
16855
+ (u(!0), d(R, null, Z(B.value, (a2) => (u(), d("a", {
16856
+ key: a2.toString(),
16857
+ href: a2.url,
16863
16858
  class: "AVOption--links",
16864
16859
  target: "_blank",
16865
- innerHTML: i2.text
16860
+ innerHTML: a2.text
16866
16861
  }, null, 8, YO))), 128))
16867
16862
  ])) : g("", !0),
16868
16863
  H2 && j.value ? (u(), d("div", QO, [
16869
16864
  l("div", {
16870
- id: `option_${c.option.code}_dropdown`,
16865
+ id: `option_${c.option.reference}_dropdown`,
16871
16866
  class: "AVOption--expander-container",
16872
16867
  "aria-hidden": "true"
16873
16868
  }, [
@@ -16897,13 +16892,13 @@ const BO = {
16897
16892
  "AVOption--multivote-footer": b.value > 5,
16898
16893
  "AVOption--singlevote": b.value === 1
16899
16894
  }),
16900
- style: h2(`background-color: ${b.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
16895
+ style: V2(`background-color: ${b.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
16901
16896
  }, [
16902
- (u(!0), d(R, null, Z(w.value, (i2) => (u(), d("div", {
16903
- key: i2.toString(),
16897
+ (u(!0), d(R, null, Z(w.value, (a2) => (u(), d("div", {
16898
+ key: a2.toString(),
16904
16899
  class: "AVOption--group"
16905
16900
  }, [
16906
- (u(!0), d(R, null, Z(i2, (M2) => (u(), E(a2, {
16901
+ (u(!0), d(R, null, Z(a2, (M2) => (u(), E(e2, {
16907
16902
  key: M2,
16908
16903
  checked: m.value >= M2,
16909
16904
  rank: o.value ? c.selections.map((W2) => W2.reference).indexOf(c.option.reference) + 1 : null,
@@ -16928,7 +16923,7 @@ const BO = {
16928
16923
  disabled: c.disabled,
16929
16924
  locale: c.locale,
16930
16925
  "partial-results": c.partialResults,
16931
- onChecked: U[0] || (U[0] = (i2) => a("checked", i2)),
16926
+ onChecked: U[0] || (U[0] = (a2) => a("checked", a2)),
16932
16927
  onAccordionOpen: () => c2(!0, !1)
16933
16928
  }, null, 8, ["option", "selections", "contest", "invalid", "disabled", "locale", "partial-results", "onAccordionOpen"]))), 128))
16934
16929
  ])) : g("", !0)
@@ -16943,9 +16938,9 @@ const BO = {
16943
16938
  icon: "user",
16944
16939
  class: "AVOption--realtime-results-icon"
16945
16940
  }),
16946
- k.value.results.count ? (u(), d("span", KO, V(r.value ? `${n.value.partialVoteCount} ${k.value.results.count}` : `${k.value.results.count} ${n.value.partialVoteCount}`), 1)) : g("", !0),
16947
- k.value.results.count && k.value.results.percentage ? (u(), d("span", cj, "-")) : g("", !0),
16948
- k.value.results.percentage ? (u(), d("span", ej, V(`${k.value.results.percentage}%`), 1)) : g("", !0)
16941
+ isNaN(k.value.results.count) ? g("", !0) : (u(), d("span", KO, V(r.value ? `${n.value.partialVoteCount} ${k.value.results.count}` : `${k.value.results.count} ${n.value.partialVoteCount}`), 1)),
16942
+ !isNaN(k.value.results.count) && !isNaN(k.value.results.percentage) ? (u(), d("span", cj, "-")) : g("", !0),
16943
+ isNaN(k.value.results.percentage) ? g("", !0) : (u(), d("span", ej, V(`${k.value.results.percentage}%`), 1))
16949
16944
  ])
16950
16945
  ]),
16951
16946
  key: "0"
@@ -16955,7 +16950,7 @@ const BO = {
16955
16950
  };
16956
16951
  }
16957
16952
  });
16958
- const tj = /* @__PURE__ */ P(ij, [["__scopeId", "data-v-39036990"]]), sj = {
16953
+ const tj = /* @__PURE__ */ P(ij, [["__scopeId", "data-v-13420356"]]), sj = {
16959
16954
  ar: {
16960
16955
  title: "فارغ",
16961
16956
  aria_labels: {
@@ -17699,7 +17694,7 @@ const jj = {
17699
17694
  )), n = () => {
17700
17695
  i.value = "";
17701
17696
  }, r = (o) => {
17702
- e("highlight-option", o.code), n();
17697
+ e("highlight-option", o.reference), n();
17703
17698
  };
17704
17699
  return (o, m) => (u(), d("form", {
17705
17700
  role: "search",
@@ -17732,7 +17727,7 @@ const jj = {
17732
17727
  "aria-label": f.title[c.locale]
17733
17728
  }, [
17734
17729
  l("div", {
17735
- id: `search_result_${f.code}`,
17730
+ id: `search_result_${f.reference}`,
17736
17731
  class: "AVSearchBallot--option",
17737
17732
  role: "button",
17738
17733
  "aria-label": t.value.aria_labels.go_to_option,
@@ -17753,7 +17748,7 @@ const jj = {
17753
17748
  ], 40, Ej));
17754
17749
  }
17755
17750
  });
17756
- const Xj = /* @__PURE__ */ P(Zj, [["__scopeId", "data-v-e55c2c2d"]]), Jj = {
17751
+ const Xj = /* @__PURE__ */ P(Zj, [["__scopeId", "data-v-452a5a8e"]]), Jj = {
17757
17752
  ar: {
17758
17753
  total: "وزنك الإجمالي:",
17759
17754
  assigned: "تم تعيينه بالفعل:",
@@ -18190,7 +18185,7 @@ const kE = /* @__PURE__ */ P(yE, [["render", wE], ["__scopeId", "data-v-1923eca8
18190
18185
  },
18191
18186
  setup(c) {
18192
18187
  const a = c;
18193
- return e2(
18188
+ return i2(
18194
18189
  () => a.modalActive,
18195
18190
  () => {
18196
18191
  a.modalActive && (document.body.style.overflowY = "hidden"), a.modalActive || (document.body.style.overflowY = "scroll");
@@ -18357,7 +18352,7 @@ const OE = {
18357
18352
  ballot: "Valsedel"
18358
18353
  }
18359
18354
  }
18360
- }, jE = (c) => (D2("data-v-737b5c79"), c = c(), I2(), c), EE = ["aria-label", "aria-describedby"], qE = ["id"], FE = /* @__PURE__ */ jE(() => /* @__PURE__ */ l("hr", { class: "AVBallot--separator" }, null, -1)), $E = ["aria-label"], RE = /* @__PURE__ */ O({
18355
+ }, jE = (c) => (D2("data-v-a650aa20"), c = c(), I2(), c), EE = ["aria-label", "aria-describedby"], qE = ["id"], FE = /* @__PURE__ */ jE(() => /* @__PURE__ */ l("hr", { class: "AVBallot--separator" }, null, -1)), $E = ["aria-label"], RE = /* @__PURE__ */ O({
18361
18356
  __name: "AVBallot",
18362
18357
  props: {
18363
18358
  contest: {
@@ -18381,7 +18376,7 @@ const OE = {
18381
18376
  default: !1
18382
18377
  },
18383
18378
  partialResults: {
18384
- type: Array,
18379
+ type: Object,
18385
18380
  default: null
18386
18381
  }
18387
18382
  },
@@ -18393,7 +18388,7 @@ const OE = {
18393
18388
  }), h = $(function() {
18394
18389
  return e.contest.randomizeOptions ? e.contest.options.slice().sort(() => Math.random() - 0.5) : e.contest.options;
18395
18390
  }()), C = L(() => e.contest), M = L(() => OE[e.locale]);
18396
- e2(C, (b, x) => {
18391
+ i2(C, (b, x) => {
18397
18392
  var D;
18398
18393
  x && b && b.reference !== x.reference && ((D = document.getElementById("content")) == null || D.focus(), x.searchForm && (n.value.value = ""));
18399
18394
  });
@@ -18474,7 +18469,7 @@ const OE = {
18474
18469
  contest: c.contest,
18475
18470
  locale: c.locale,
18476
18471
  disabled: c.disabled,
18477
- "partial-results": c.partialResults,
18472
+ "partial-results": c.partialResults[q.reference],
18478
18473
  onChecked: B
18479
18474
  }, null, 8, ["selections", "option", "invalid", "contest", "locale", "disabled", "partial-results"]))
18480
18475
  ], 64))), 128)),
@@ -18484,8 +18479,9 @@ const OE = {
18484
18479
  error: m.value.includes("blank"),
18485
18480
  locale: e.locale,
18486
18481
  disabled: c.disabled,
18482
+ "partial-results": c.partialResults.blank,
18487
18483
  onToggleBlank: A
18488
- }, null, 8, ["checked", "error", "locale", "disabled"])) : g("", !0)
18484
+ }, null, 8, ["checked", "error", "locale", "disabled", "partial-results"])) : g("", !0)
18489
18485
  ], 10, $E),
18490
18486
  c.showSubmissionHelper && !c.disabled ? (u(), E(_, {
18491
18487
  key: 2,
@@ -18501,7 +18497,7 @@ const OE = {
18501
18497
  };
18502
18498
  }
18503
18499
  });
18504
- const UE = /* @__PURE__ */ P(RE, [["__scopeId", "data-v-737b5c79"]]), WE = {
18500
+ const UE = /* @__PURE__ */ P(RE, [["__scopeId", "data-v-a650aa20"]]), WE = {
18505
18501
  ar: {
18506
18502
  selection: "اختيار",
18507
18503
  assigned: "مُكَلَّف:",
@@ -19085,7 +19081,7 @@ const dq = {
19085
19081
  default: !0
19086
19082
  },
19087
19083
  partialResults: {
19088
- type: Array,
19084
+ type: Object,
19089
19085
  default: null
19090
19086
  }
19091
19087
  },
@@ -19403,7 +19399,7 @@ function Pq(c, a, e, i, t, s) {
19403
19399
  }, null, 8, ["selection-pile", "partial-results", "contest", "locale", "onUpdate:selectionPile", "show-submission-helper"]))
19404
19400
  ], 64);
19405
19401
  }
19406
- const Bq = /* @__PURE__ */ P(vq, [["render", Pq], ["__scopeId", "data-v-dd7e0cde"]]);
19402
+ const Bq = /* @__PURE__ */ P(vq, [["render", Pq], ["__scopeId", "data-v-430f2def"]]);
19407
19403
  var Oq = {}, jq = /* @__PURE__ */ l("a", { href: "#" }, "LOGO", -1), Eq = { class: "flex items-center" }, qq = { class: "flex flex-col items-center justify-center p-3 w-full" }, Fq = /* @__PURE__ */ l("h2", { class: "mb-4" }, "Election Name", -1), $q = /* @__PURE__ */ l("div", null, [
19408
19404
  /* @__PURE__ */ l("p", null, " Curabitur et augue in nibh mollis faucibus. Mauris semper cursus felis, vitae porta dui faucibus eu. Suspendisse potenti. Ut sit amet arcu non quam eleifend interdum. Sed vitae sagittis nunc. Nullam faucibus mattis mauris sed tincidunt. Nulla convallis lobortis semper. Curabitur varius neque vel sapien mattis mattis. Integer mollis fringilla nibh, facilisis rutrum risus. In volutpat sem in lacus vestibulum, sollicitudin efficitur dui luctus. Donec fringilla diam tortor, posuere lacinia erat consequat ut. Mauris nec nibh tortor. "),
19409
19405
  /* @__PURE__ */ l("br"),