@assemblyvoting/ui-library 1.2.0-beta.2 → 1.2.0-beta.3

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,4 +1,4 @@
1
- import { unref as j, getCurrentScope as JS, onScopeDispose as KS, watch as c2, ref as G, computed as B, onMounted as d2, onUnmounted as ck, h as D2, Transition as U2, withDirectives as v1, vShow as d1, defineComponent as P, openBlock as m, createElementBlock as z, createBlock as E, resolveDynamicComponent as Pa, withCtx as O, renderSlot as X, resolveComponent as H, normalizeClass as k, createCommentVNode as y, createTextVNode as s2, toDisplayString as g, createElementVNode as o, createVNode as V, normalizeStyle as p2, reactive as Se, provide as ke, Fragment as a2, renderList as N2, inject as Te, pushScopeId as X2, popScopeId as Z2, useCssVars as ak, mergeProps as ek, withModifiers as Ba, withKeys as ik } from "vue";
1
+ import { unref as F, getCurrentScope as JS, onScopeDispose as KS, watch as c2, ref as W, computed as B, onMounted as d2, onUnmounted as ck, h as D2, Transition as U2, withDirectives as v1, vShow as d1, defineComponent as P, openBlock as m, createElementBlock as z, createBlock as E, resolveDynamicComponent as Pa, withCtx as O, renderSlot as X, resolveComponent as H, normalizeClass as k, createCommentVNode as y, createTextVNode as s2, toDisplayString as g, createElementVNode as o, createVNode as V, normalizeStyle as p2, reactive as Se, provide as ke, Fragment as a2, renderList as N2, inject as Te, pushScopeId as X2, popScopeId as Z2, useCssVars as ak, mergeProps as ek, withModifiers as Ba, withKeys as ik } from "vue";
2
2
  var Z = "top", n2 = "bottom", t2 = "right", J = "left", I4 = "auto", L1 = [Z, n2, t2, J], $2 = "start", p1 = "end", sk = "clippingParents", De = "viewport", n1 = "popper", rk = "reference", Ea = /* @__PURE__ */ L1.reduce(function(c, a) {
3
3
  return c.concat([a + "-" + $2, a + "-" + p1]);
4
4
  }, []), Ie = /* @__PURE__ */ [].concat(L1, [I4]).reduce(function(c, a) {
@@ -269,7 +269,7 @@ function Fa(c) {
269
269
  d -= R - i.width, d *= t ? 1 : -1;
270
270
  }
271
271
  }
272
- var F = Object.assign({
272
+ var j = Object.assign({
273
273
  position: l
274
274
  }, u && Nk), l2 = f === !0 ? Ak({
275
275
  x: d,
@@ -280,9 +280,9 @@ function Fa(c) {
280
280
  };
281
281
  if (d = l2.x, N = l2.y, t) {
282
282
  var Q;
283
- return Object.assign({}, F, (Q = {}, Q[x] = T ? "0" : "", Q[w] = S ? "0" : "", Q.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + N + "px)" : "translate3d(" + d + "px, " + N + "px, 0)", Q));
283
+ return Object.assign({}, j, (Q = {}, Q[x] = T ? "0" : "", Q[w] = S ? "0" : "", Q.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + N + "px)" : "translate3d(" + d + "px, " + N + "px, 0)", Q));
284
284
  }
285
- return Object.assign({}, F, (a = {}, a[x] = T ? N + "px" : "", a[w] = S ? d + "px" : "", a.transform = "", a));
285
+ return Object.assign({}, j, (a = {}, a[x] = T ? N + "px" : "", a[w] = S ? d + "px" : "", a.transform = "", a));
286
286
  }
287
287
  function yk(c) {
288
288
  var a = c.state, e = c.options, i = e.gpuAcceleration, s = i === void 0 ? !0 : i, r = e.adaptive, n = r === void 0 ? !0 : r, l = e.roundOffsets, t = l === void 0 ? !0 : l, u = {
@@ -492,9 +492,9 @@ function z1(c, a) {
492
492
  bottom: A.bottom - D.bottom + S.bottom,
493
493
  left: D.left - A.left + S.left,
494
494
  right: A.right - D.right + S.right
495
- }, F = c.modifiersData.offset;
496
- if (p === n1 && F) {
497
- var l2 = F[s];
495
+ }, j = c.modifiersData.offset;
496
+ if (p === n1 && j) {
497
+ var l2 = j[s];
498
498
  Object.keys(R).forEach(function(Q) {
499
499
  var y2 = [t2, n2].indexOf(Q) >= 0 ? 1 : -1, w2 = [Z, n2].indexOf(Q) >= 0 ? "y" : "x";
500
500
  R[Q] += l2[w2] * y2;
@@ -541,8 +541,8 @@ function Ok(c) {
541
541
  allowedAutoPlacements: N
542
542
  }) : C2);
543
543
  }, []), D = a.rects.reference, _ = a.rects.popper, q = /* @__PURE__ */ new Map(), C = !0, A = x[0], R = 0; R < x.length; R++) {
544
- var F = x[R], l2 = m2(F), Q = Y2(F) === $2, y2 = [Z, n2].indexOf(l2) >= 0, w2 = y2 ? "width" : "height", K = z1(a, {
545
- placement: F,
544
+ var j = x[R], l2 = m2(j), Q = Y2(j) === $2, y2 = [Z, n2].indexOf(l2) >= 0, w2 = y2 ? "width" : "height", K = z1(a, {
545
+ placement: j,
546
546
  boundary: f,
547
547
  rootBoundary: v,
548
548
  altBoundary: p,
@@ -553,10 +553,10 @@ function Ok(c) {
553
553
  if (r && S2.push(K[l2] <= 0), l && S2.push(K[o2] <= 0, K[R1] <= 0), S2.every(function(F2) {
554
554
  return F2;
555
555
  })) {
556
- A = F, C = !1;
556
+ A = j, C = !1;
557
557
  break;
558
558
  }
559
- q.set(F, S2);
559
+ q.set(j, S2);
560
560
  }
561
561
  if (C)
562
562
  for (var U1 = h ? 3 : 1, u4 = function(C2) {
@@ -684,7 +684,7 @@ function Zk(c) {
684
684
  } : Object.assign({
685
685
  mainAxis: 0,
686
686
  altAxis: 0
687
- }, A), F = a.modifiersData.offset ? a.modifiersData.offset[a.placement] : null, l2 = {
687
+ }, A), j = a.modifiersData.offset ? a.modifiersData.offset[a.placement] : null, l2 = {
688
688
  x: 0,
689
689
  y: 0
690
690
  };
@@ -693,11 +693,11 @@ function Zk(c) {
693
693
  var Q, y2 = x === "y" ? Z : J, w2 = x === "y" ? n2 : t2, K = x === "y" ? "height" : "width", o2 = _[x], R1 = o2 + L[y2], S2 = o2 - L[w2], U1 = d ? -C[K] / 2 : 0, u4 = T === $2 ? q[K] : C[K], s1 = T === $2 ? -C[K] : -q[K], $1 = a.elements.arrow, F2 = d && $1 ? P4($1) : {
694
694
  width: 0,
695
695
  height: 0
696
- }, C2 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : Be(), r1 = C2[y2], G1 = C2[w2], k2 = o1(0, q[K], F2[K]), m4 = w ? q[K] / 2 - U1 - k2 - r1 - R.mainAxis : u4 - k2 - r1 - R.mainAxis, GS = w ? -q[K] / 2 + U1 + k2 + G1 + R.mainAxis : s1 + k2 + G1 + R.mainAxis, v4 = a.elements.arrow && g1(a.elements.arrow), WS = v4 ? x === "y" ? v4.clientTop || 0 : v4.clientLeft || 0 : 0, Aa = (Q = F == null ? void 0 : F[x]) != null ? Q : 0, YS = o2 + m4 - Aa - WS, QS = o2 + GS - Aa, ya = o1(d ? t3(R1, YS) : R1, o2, d ? P2(S2, QS) : S2);
696
+ }, C2 = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : Be(), r1 = C2[y2], G1 = C2[w2], k2 = o1(0, q[K], F2[K]), m4 = w ? q[K] / 2 - U1 - k2 - r1 - R.mainAxis : u4 - k2 - r1 - R.mainAxis, GS = w ? -q[K] / 2 + U1 + k2 + G1 + R.mainAxis : s1 + k2 + G1 + R.mainAxis, v4 = a.elements.arrow && g1(a.elements.arrow), WS = v4 ? x === "y" ? v4.clientTop || 0 : v4.clientLeft || 0 : 0, Aa = (Q = j == null ? void 0 : j[x]) != null ? Q : 0, YS = o2 + m4 - Aa - WS, QS = o2 + GS - Aa, ya = o1(d ? t3(R1, YS) : R1, o2, d ? P2(S2, QS) : S2);
697
697
  _[x] = ya, l2[x] = ya - o2;
698
698
  }
699
699
  if (l) {
700
- var wa, XS = x === "x" ? Z : J, ZS = x === "x" ? n2 : t2, T2 = _[D], W1 = D === "y" ? "height" : "width", Sa = T2 + L[XS], ka = T2 - L[ZS], d4 = [Z, J].indexOf(S) !== -1, Ta = (wa = F == null ? void 0 : F[D]) != null ? wa : 0, Da = d4 ? Sa : T2 - q[W1] - C[W1] - Ta + R.altAxis, Ia = d4 ? T2 + q[W1] + C[W1] - Ta - R.altAxis : ka, _a = d && d4 ? Ck(Da, T2, Ia) : o1(d ? Da : Sa, T2, d ? Ia : ka);
700
+ var wa, XS = x === "x" ? Z : J, ZS = x === "x" ? n2 : t2, T2 = _[D], W1 = D === "y" ? "height" : "width", Sa = T2 + L[XS], ka = T2 - L[ZS], d4 = [Z, J].indexOf(S) !== -1, Ta = (wa = j == null ? void 0 : j[D]) != null ? wa : 0, Da = d4 ? Sa : T2 - q[W1] - C[W1] - Ta + R.altAxis, Ia = d4 ? T2 + q[W1] + C[W1] - Ta - R.altAxis : ka, _a = d && d4 ? Ck(Da, T2, Ia) : o1(d ? Da : Sa, T2, d ? Ia : ka);
701
701
  _[D] = _a, l2[D] = _a - T2;
702
702
  }
703
703
  a.modifiersData[i] = l2;
@@ -906,7 +906,7 @@ var lT = [kk, Qk, wk, Hk, Wk, qk, Jk, xk, Uk], oT = /* @__PURE__ */ tT({
906
906
  const qe = typeof window < "u", fT = (c) => typeof c == "string", l3 = () => {
907
907
  }, uT = qe && ((Wa = window == null ? void 0 : window.navigator) == null ? void 0 : Wa.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
908
908
  function o3(c) {
909
- return typeof c == "function" ? c() : j(c);
909
+ return typeof c == "function" ? c() : F(c);
910
910
  }
911
911
  function mT(c, a) {
912
912
  function e(...i) {
@@ -1101,7 +1101,7 @@ const ae = {
1101
1101
  }
1102
1102
  },
1103
1103
  ...c
1104
- }, i = G(void 0), s = G(void 0), r = G(void 0), n = G(!1), l = G(!1), t = G(!1), u = G(e.placement || "top"), f = B(() => {
1104
+ }, i = W(void 0), s = W(void 0), r = W(void 0), n = W(!1), l = W(!1), t = W(!1), u = W(e.placement || "top"), f = B(() => {
1105
1105
  let { modifiers: C } = ae;
1106
1106
  return e.modifiers && (C = [...C, ...e.modifiers]), {
1107
1107
  ...ae,
@@ -1161,10 +1161,10 @@ const ae = {
1161
1161
  }), T = B(() => {
1162
1162
  const { animationDuration: C } = e;
1163
1163
  if (!Array.isArray(C)) {
1164
- const F = C || 300;
1164
+ const j = C || 300;
1165
1165
  return {
1166
- enter: `${F / 1e3}s`,
1167
- leave: `${F / 1e3}s`
1166
+ enter: `${j / 1e3}s`,
1167
+ leave: `${j / 1e3}s`
1168
1168
  };
1169
1169
  }
1170
1170
  const [A, R] = C;
@@ -1217,23 +1217,23 @@ const ae = {
1217
1217
  name: S.value.inner,
1218
1218
  "data-placement": u.value,
1219
1219
  "data-name": S.value.inner,
1220
- onBeforeEnter(F) {
1221
- _("before-enter", F);
1220
+ onBeforeEnter(j) {
1221
+ _("before-enter", j);
1222
1222
  },
1223
- onEnter(F) {
1224
- S.value.inner === "shift-out" && (F.style.animation = `shift-out ${T.value.enter}`), _("enter", F);
1223
+ onEnter(j) {
1224
+ S.value.inner === "shift-out" && (j.style.animation = `shift-out ${T.value.enter}`), _("enter", j);
1225
1225
  },
1226
- onAfterEnter(F) {
1227
- S.value.inner === "shift-out" && (F.style.transform = w.value), _("after-enter", F);
1226
+ onAfterEnter(j) {
1227
+ S.value.inner === "shift-out" && (j.style.transform = w.value), _("after-enter", j);
1228
1228
  },
1229
- onBeforeLeave(F) {
1230
- S.value.inner === "shift-out" && (F.style.transform = w.value, F.style.animation = ""), _("before-leave", F);
1229
+ onBeforeLeave(j) {
1230
+ S.value.inner === "shift-out" && (j.style.transform = w.value, j.style.animation = ""), _("before-leave", j);
1231
1231
  },
1232
- onLeave(F) {
1233
- S.value.inner === "shift-out" && (F.style.transform = "translate(0, 0)"), _("leave", F);
1232
+ onLeave(j) {
1233
+ S.value.inner === "shift-out" && (j.style.transform = "translate(0, 0)"), _("leave", j);
1234
1234
  },
1235
- onAfterLeave(F) {
1236
- S.value.inner === "shift-out" && (F.style.transform = "translate(0, 0)"), _("after-leave", F);
1235
+ onAfterLeave(j) {
1236
+ S.value.inner === "shift-out" && (j.style.transform = "translate(0, 0)"), _("after-leave", j);
1237
1237
  }
1238
1238
  },
1239
1239
  {
@@ -1417,13 +1417,13 @@ const ae = {
1417
1417
  popper: s,
1418
1418
  isOpened: B(() => l.value)
1419
1419
  }), (t, u) => (m(), z("div", bT, [
1420
- (m(), E(Pa(j(r)), null, {
1420
+ (m(), E(Pa(F(r)), null, {
1421
1421
  default: O(() => [
1422
1422
  X(t.$slots, "default")
1423
1423
  ]),
1424
1424
  _: 3
1425
1425
  })),
1426
- (m(), E(Pa(j(n)), null, {
1426
+ (m(), E(Pa(F(n)), null, {
1427
1427
  default: O(() => [
1428
1428
  X(t.$slots, "content")
1429
1429
  ]),
@@ -11038,7 +11038,7 @@ var M2 = !!$.documentElement && !!$.head && typeof $.addEventListener == "functi
11038
11038
  } catch {
11039
11039
  return !1;
11040
11040
  }
11041
- }(), U = "classic", W = "sharp", Va = [U, W];
11041
+ }(), U = "classic", G = "sharp", Va = [U, G];
11042
11042
  function O1(c) {
11043
11043
  return new Proxy(c, {
11044
11044
  get: function(e, i) {
@@ -11062,7 +11062,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
11062
11062
  "fa-brands": "brands",
11063
11063
  fak: "kit",
11064
11064
  "fa-kit": "kit"
11065
- }), Y(X1, W, {
11065
+ }), Y(X1, G, {
11066
11066
  fa: "solid",
11067
11067
  fass: "solid",
11068
11068
  "fa-solid": "solid",
@@ -11078,7 +11078,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
11078
11078
  duotone: "fad",
11079
11079
  brands: "fab",
11080
11080
  kit: "fak"
11081
- }), Y(Z1, W, {
11081
+ }), Y(Z1, G, {
11082
11082
  solid: "fass",
11083
11083
  regular: "fasr",
11084
11084
  light: "fasl"
@@ -11090,7 +11090,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
11090
11090
  far: "fa-regular",
11091
11091
  fas: "fa-solid",
11092
11092
  fat: "fa-thin"
11093
- }), Y(J1, W, {
11093
+ }), Y(J1, G, {
11094
11094
  fass: "fa-solid",
11095
11095
  fasr: "fa-regular",
11096
11096
  fasl: "fa-light"
@@ -11102,7 +11102,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
11102
11102
  "fa-regular": "far",
11103
11103
  "fa-solid": "fas",
11104
11104
  "fa-thin": "fat"
11105
- }), Y(K1, W, {
11105
+ }), Y(K1, G, {
11106
11106
  "fa-solid": "fass",
11107
11107
  "fa-regular": "fasr",
11108
11108
  "fa-light": "fasl"
@@ -11112,7 +11112,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
11112
11112
  normal: "far",
11113
11113
  300: "fal",
11114
11114
  100: "fat"
11115
- }), Y(c3, W, {
11115
+ }), Y(c3, G, {
11116
11116
  900: "fass",
11117
11117
  400: "fasr",
11118
11118
  300: "fasl"
@@ -11123,7 +11123,7 @@ var V1 = O1((X1 = {}, Y(X1, U, {
11123
11123
  SECONDARY: "secondary"
11124
11124
  }, M1 = /* @__PURE__ */ new Set();
11125
11125
  Object.keys(H1[U]).map(M1.add.bind(M1));
11126
- Object.keys(H1[W]).map(M1.add.bind(M1));
11126
+ Object.keys(H1[G]).map(M1.add.bind(M1));
11127
11127
  var WT = [].concat(Va, F1(M1), ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "fw", "inverse", "layers-counter", "layers-text", "layers", "li", "pull-left", "pull-right", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", I2.GROUP, I2.SWAP_OPACITY, I2.PRIMARY, I2.SECONDARY]).concat(AS.map(function(c) {
11128
11128
  return "".concat(c, "x");
11129
11129
  })).concat($T.map(function(c) {
@@ -12116,7 +12116,7 @@ function N4(c, a) {
12116
12116
  var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = e.skipHooks, s = i === void 0 ? !1 : i, r = ve(a);
12117
12117
  typeof f2.hooks.addPack == "function" && !s ? f2.hooks.addPack(c, ve(a)) : f2.styles[c] = M(M({}, f2.styles[c] || {}), r), c === "fas" && N4("fa", a);
12118
12118
  }
12119
- var a3, e3, i3, O2 = f2.styles, fD = f2.shims, uD = (a3 = {}, Y(a3, U, Object.values(h1[U])), Y(a3, W, Object.values(h1[W])), a3), Ma = null, TS = {}, DS = {}, IS = {}, _S = {}, PS = {}, mD = (e3 = {}, Y(e3, U, Object.keys(V1[U])), Y(e3, W, Object.keys(V1[W])), e3);
12119
+ var a3, e3, i3, O2 = f2.styles, fD = f2.shims, uD = (a3 = {}, Y(a3, U, Object.values(h1[U])), Y(a3, G, Object.values(h1[G])), a3), Ma = null, TS = {}, DS = {}, IS = {}, _S = {}, PS = {}, mD = (e3 = {}, Y(e3, U, Object.keys(V1[U])), Y(e3, G, Object.keys(V1[G])), e3);
12120
12120
  function vD(c) {
12121
12121
  return ~WT.indexOf(c);
12122
12122
  }
@@ -12218,25 +12218,25 @@ function t4(c) {
12218
12218
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = a.family, i = e === void 0 ? U : e, s = V1[i][c], r = H1[i][c] || H1[i][s], n = c in f2.styles ? c : null;
12219
12219
  return r || n || null;
12220
12220
  }
12221
- var de = (i3 = {}, Y(i3, U, Object.keys(h1[U])), Y(i3, W, Object.keys(h1[W])), i3);
12221
+ var de = (i3 = {}, Y(i3, U, Object.keys(h1[U])), Y(i3, G, Object.keys(h1[G])), i3);
12222
12222
  function l4(c) {
12223
- var a, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.skipLookups, s = i === void 0 ? !1 : i, r = (a = {}, Y(a, U, "".concat(b.cssPrefix, "-").concat(U)), Y(a, W, "".concat(b.cssPrefix, "-").concat(W)), a), n = null, l = U;
12223
+ var a, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.skipLookups, s = i === void 0 ? !1 : i, r = (a = {}, Y(a, U, "".concat(b.cssPrefix, "-").concat(U)), Y(a, G, "".concat(b.cssPrefix, "-").concat(G)), a), n = null, l = U;
12224
12224
  (c.includes(r[U]) || c.some(function(u) {
12225
12225
  return de[U].includes(u);
12226
- })) && (l = U), (c.includes(r[W]) || c.some(function(u) {
12227
- return de[W].includes(u);
12228
- })) && (l = W);
12226
+ })) && (l = U), (c.includes(r[G]) || c.some(function(u) {
12227
+ return de[G].includes(u);
12228
+ })) && (l = G);
12229
12229
  var t = c.reduce(function(u, f) {
12230
12230
  var v = dD(b.cssPrefix, f);
12231
12231
  if (O2[f] ? (f = uD[l].includes(f) ? OT[l][f] : f, n = f, u.prefix = f) : mD[l].indexOf(f) > -1 ? (n = f, u.prefix = t4(f, {
12232
12232
  family: l
12233
- })) : v ? u.iconName = v : f !== b.replacementClass && f !== r[U] && f !== r[W] && u.rest.push(f), !s && u.prefix && u.iconName) {
12233
+ })) : v ? u.iconName = v : f !== b.replacementClass && f !== r[U] && f !== r[G] && u.rest.push(f), !s && u.prefix && u.iconName) {
12234
12234
  var p = n === "fa" ? ES(u.iconName) : {}, d = _2(u.prefix, u.iconName);
12235
12235
  p.prefix && (n = null), u.iconName = p.iconName || d || u.iconName, u.prefix = p.prefix || u.prefix, u.prefix === "far" && !O2.far && O2.fas && !b.autoFetchSvg && (u.prefix = "fas");
12236
12236
  }
12237
12237
  return u;
12238
12238
  }, La());
12239
- return (c.includes("fa-brands") || c.includes("fab")) && (t.prefix = "fab"), (c.includes("fa-duotone") || c.includes("fad")) && (t.prefix = "fad"), !t.prefix && l === W && (O2.fass || b.autoFetchSvg) && (t.prefix = "fass", t.iconName = _2(t.prefix, t.iconName) || t.iconName), (t.prefix === "fa" || n === "fa") && (t.prefix = b2() || "fas"), t;
12239
+ return (c.includes("fa-brands") || c.includes("fab")) && (t.prefix = "fab"), (c.includes("fa-duotone") || c.includes("fad")) && (t.prefix = "fad"), !t.prefix && l === G && (O2.fass || b.autoFetchSvg) && (t.prefix = "fass", t.iconName = _2(t.prefix, t.iconName) || t.iconName), (t.prefix === "fa" || n === "fa") && (t.prefix = b2() || "fas"), t;
12240
12240
  }
12241
12241
  var VD = /* @__PURE__ */ function() {
12242
12242
  function c() {
@@ -12797,7 +12797,7 @@ Va.map(function(c) {
12797
12797
  x2.add("fa-".concat(c));
12798
12798
  });
12799
12799
  Object.keys(V1[U]).map(x2.add.bind(x2));
12800
- Object.keys(V1[W]).map(x2.add.bind(x2));
12800
+ Object.keys(V1[G]).map(x2.add.bind(x2));
12801
12801
  x2 = F1(x2);
12802
12802
  function Le(c) {
12803
12803
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
@@ -13069,7 +13069,7 @@ function be(c, a) {
13069
13069
  if (n && !t)
13070
13070
  return c.removeChild(n), i();
13071
13071
  if (t && f !== "none" && f !== "") {
13072
- var v = l.getPropertyValue("content"), p = ~["Sharp"].indexOf(t[2]) ? W : U, d = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(t[2]) ? H1[p][t[2].toLowerCase()] : UT[p][u], h = XD(v), N = h.value, L = h.isSecondary, S = t[0].startsWith("FontAwesome"), T = Ca(d, N), w = T;
13072
+ var v = l.getPropertyValue("content"), p = ~["Sharp"].indexOf(t[2]) ? G : U, d = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(t[2]) ? H1[p][t[2].toLowerCase()] : UT[p][u], h = XD(v), N = h.value, L = h.isSecondary, S = t[0].startsWith("FontAwesome"), T = Ca(d, N), w = T;
13073
13073
  if (S) {
13074
13074
  var x = zD(N);
13075
13075
  x.iconName && x.prefix && (T = x.iconName, d = x.prefix);
@@ -13710,7 +13710,7 @@ const D4 = /* @__PURE__ */ I(dI, [["__scopeId", "data-v-83458350"]]), pI = { cla
13710
13710
  id: c.id,
13711
13711
  placeholder: c.placeholder,
13712
13712
  type: "text",
13713
- class: k(j(s)),
13713
+ class: k(F(s)),
13714
13714
  ref: "textInput",
13715
13715
  value: c.modelValue,
13716
13716
  onInput: i
@@ -13797,7 +13797,7 @@ const gI = /* @__PURE__ */ I(LI, [["__scopeId", "data-v-60c6019f"]]), bI = { cla
13797
13797
  },
13798
13798
  emits: ["update:modelValue"],
13799
13799
  setup(c, { emit: a }) {
13800
- const e = c, i = G(null), s = (f) => {
13800
+ const e = c, i = W(null), s = (f) => {
13801
13801
  a("update:modelValue", parseInt(f.target.value));
13802
13802
  }, r = (f) => {
13803
13803
  f.target.value === "" && a("update:modelValue", 0);
@@ -13947,7 +13947,7 @@ const kI = /* @__PURE__ */ I(SI, [["__scopeId", "data-v-d72e029e"]]), TI = { cla
13947
13947
  },
13948
13948
  emits: ["update:modelValue"],
13949
13949
  setup(c, { emit: a }) {
13950
- const e = G(!1), i = () => {
13950
+ const e = W(!1), i = () => {
13951
13951
  e.value = !e.value;
13952
13952
  }, s = (r) => {
13953
13953
  a("update:modelValue", r.target.value);
@@ -14422,10 +14422,10 @@ const t_ = /* @__PURE__ */ I(n_, [["__scopeId", "data-v-ff11beb8"]]), l_ = { cla
14422
14422
  "data-test": "input-icon"
14423
14423
  }, null, 8, ["icon"])
14424
14424
  ])) : y("", !0),
14425
- j(r) === void 0 ? (m(), z("span", m_, g(c.placeholder), 1)) : (m(), z("span", {
14425
+ F(r) === void 0 ? (m(), z("span", m_, g(c.placeholder), 1)) : (m(), z("span", {
14426
14426
  key: 2,
14427
14427
  class: "AVDropdown--selected-option",
14428
- textContent: g(j(r).label)
14428
+ textContent: g(F(r).label)
14429
14429
  }, null, 8, v_)),
14430
14430
  o("span", d_, [
14431
14431
  V(v, {
@@ -14437,7 +14437,7 @@ const t_ = /* @__PURE__ */ I(n_, [["__scopeId", "data-v-ff11beb8"]]), l_ = { cla
14437
14437
  ], 10, f_),
14438
14438
  V(d, null, {
14439
14439
  default: O(() => [
14440
- (m(!0), z(a2, null, N2(j(s), (h) => (m(), E(p, {
14440
+ (m(!0), z(a2, null, N2(F(s), (h) => (m(), E(p, {
14441
14441
  key: h,
14442
14442
  optionLabel: h.label,
14443
14443
  onOnSelected: (N) => n(h.value),
@@ -14458,10 +14458,10 @@ const V_ = /* @__PURE__ */ I(z_, [["__scopeId", "data-v-c4ee7609"]]), H_ = ["ari
14458
14458
  const a = Te("sharedState"), e = B(() => a.active), i = B(() => a.id);
14459
14459
  return (s, r) => (m(), E(U2, { name: "dropdown-content" }, {
14460
14460
  default: O(() => [
14461
- j(e) ? (m(), z("div", {
14461
+ F(e) ? (m(), z("div", {
14462
14462
  key: 0,
14463
14463
  class: "AVDropdownContent",
14464
- "aria-labelledby": j(i)
14464
+ "aria-labelledby": F(i)
14465
14465
  }, [
14466
14466
  X(s.$slots, "default", {}, void 0, !0)
14467
14467
  ], 8, H_)) : y("", !0)
@@ -14649,7 +14649,7 @@ const y_ = /* @__PURE__ */ I(A_, [["__scopeId", "data-v-0cc3f6d1"]]), Na = (c) =
14649
14649
  },
14650
14650
  emits: ["update", "fileFormatNotAccepted"],
14651
14651
  setup(c, { emit: a }) {
14652
- const e = c, i = G(!1), s = G(null), r = G([]);
14652
+ const e = c, i = W(!1), s = W(null), r = W([]);
14653
14653
  d2(() => {
14654
14654
  e.value && (r.value = e.value);
14655
14655
  });
@@ -14803,7 +14803,7 @@ const Q_ = /* @__PURE__ */ I(Y_, [["__scopeId", "data-v-4aae121d"]]), X_ = (c) =
14803
14803
  },
14804
14804
  emits: ["update"],
14805
14805
  setup(c, { emit: a }) {
14806
- const e = c, i = G(!1);
14806
+ const e = c, i = W(!1);
14807
14807
  d2(() => {
14808
14808
  e.checked && (i.value = e.checked);
14809
14809
  });
@@ -14960,9 +14960,9 @@ const sP = /* @__PURE__ */ I(iP, [["__scopeId", "data-v-999075bc"]]), rP = ["hre
14960
14960
  };
14961
14961
  return (n, l) => {
14962
14962
  const t = H("AVIcon");
14963
- return j(i) === "link" ? (m(), z("a", {
14963
+ return F(i) === "link" ? (m(), z("a", {
14964
14964
  key: 0,
14965
- href: j(s),
14965
+ href: F(s),
14966
14966
  class: k(`AVNavbarItem ${c.active ? "AVNavbarItem--active" : ""} ${c.disabled && "disabled"}`),
14967
14967
  target: c.target,
14968
14968
  style: p2(`width: ${c.customWidth}px`)
@@ -15041,16 +15041,16 @@ const fP = /* @__PURE__ */ I(oP, [["__scopeId", "data-v-d205c709"]]), uP = ["hre
15041
15041
  },
15042
15042
  emits: ["onClick"],
15043
15043
  setup(c, { emit: a }) {
15044
- const e = c, i = G(!1), s = B(() => e.href ? "link" : "button"), r = B(() => e.disabled ? null : e.href), n = B(() => e.type === "step" ? "number" : "icon"), l = B(
15044
+ const e = c, i = W(!1), s = B(() => e.href ? "link" : "button"), r = B(() => e.disabled ? null : e.href), n = B(() => e.type === "step" ? "number" : "icon"), l = B(
15045
15045
  () => e.type === "step" ? e.stepIndex : e.icon
15046
15046
  ), t = () => {
15047
15047
  e.disabled || (i.value = !i.value);
15048
15048
  }, u = () => {
15049
15049
  a("onClick", e.reference);
15050
15050
  };
15051
- return (f, v) => j(s) === "link" ? (m(), z("a", {
15051
+ return (f, v) => F(s) === "link" ? (m(), z("a", {
15052
15052
  key: 0,
15053
- href: j(r),
15053
+ href: F(r),
15054
15054
  class: k(`AVSidebarItem ${c.active ? "AVSidebarItem--active" : ""} ${c.disabled && "disabled"}`),
15055
15055
  target: c.target,
15056
15056
  onMouseenter: t,
@@ -15058,10 +15058,10 @@ const fP = /* @__PURE__ */ I(oP, [["__scopeId", "data-v-d205c709"]]), uP = ["hre
15058
15058
  "aria-label": c.label,
15059
15059
  role: "button"
15060
15060
  }, [
15061
- V(j(D4), {
15062
- type: j(n),
15061
+ V(F(D4), {
15062
+ type: F(n),
15063
15063
  active: c.active,
15064
- value: j(l),
15064
+ value: F(l),
15065
15065
  hover: i.value,
15066
15066
  "aria-hidden": "true"
15067
15067
  }, null, 8, ["type", "active", "value", "hover"]),
@@ -15075,10 +15075,10 @@ const fP = /* @__PURE__ */ I(oP, [["__scopeId", "data-v-d205c709"]]), uP = ["hre
15075
15075
  onMouseleave: t,
15076
15076
  "aria-label": c.label
15077
15077
  }, [
15078
- V(j(D4), {
15079
- type: j(n),
15078
+ V(F(D4), {
15079
+ type: F(n),
15080
15080
  active: c.active,
15081
- value: j(l),
15081
+ value: F(l),
15082
15082
  hover: i.value,
15083
15083
  "aria-hidden": "true"
15084
15084
  }, null, 8, ["type", "active", "value", "hover"]),
@@ -15218,10 +15218,10 @@ const bP = /* @__PURE__ */ I(gP, [["__scopeId", "data-v-9cd08151"]]), xP = ["ari
15218
15218
  const a = Te("sharedState"), e = B(() => a.active), i = B(() => a.id);
15219
15219
  return (s, r) => (m(), E(U2, { name: "dropdown-content" }, {
15220
15220
  default: O(() => [
15221
- j(e) ? (m(), z("div", {
15221
+ F(e) ? (m(), z("div", {
15222
15222
  key: 0,
15223
15223
  class: "AVMenuDropdownContent",
15224
- "aria-labelledby": j(i)
15224
+ "aria-labelledby": F(i)
15225
15225
  }, [
15226
15226
  X(s.$slots, "default", {}, void 0, !0)
15227
15227
  ], 8, xP)) : y("", !0)
@@ -15279,35 +15279,15 @@ const SP = /* @__PURE__ */ I(wP, [["__scopeId", "data-v-f770cea1"]]), kP = ["dis
15279
15279
  type: String,
15280
15280
  default: "Saving..."
15281
15281
  },
15282
- successLabel: {
15283
- type: String,
15284
- default: "Saved"
15285
- },
15286
- errorLabel: {
15287
- type: String,
15288
- default: "Error"
15289
- },
15290
- retryLabel: {
15291
- type: String,
15292
- default: null
15293
- },
15294
15282
  size: {
15295
15283
  type: String,
15296
15284
  validate: (c) => ["small", "regular", "large"].includes(c),
15297
15285
  default: "regular"
15298
15286
  },
15299
- initialIcon: {
15287
+ icon: {
15300
15288
  type: String,
15301
15289
  default: "floppy-disk"
15302
15290
  },
15303
- successIcon: {
15304
- type: String,
15305
- default: "check"
15306
- },
15307
- errorIcon: {
15308
- type: String,
15309
- default: "xmark"
15310
- },
15311
15291
  disabled: {
15312
15292
  type: Boolean,
15313
15293
  default: !1
@@ -15324,57 +15304,43 @@ const SP = /* @__PURE__ */ I(wP, [["__scopeId", "data-v-f770cea1"]]), kP = ["dis
15324
15304
  onClick: {
15325
15305
  type: Function,
15326
15306
  required: !0
15327
- },
15328
- retryTimeout: {
15329
- type: Number,
15330
- default: 2e3
15331
- },
15332
- successTimeout: {
15333
- type: Number,
15334
- default: null
15335
15307
  }
15336
15308
  },
15337
15309
  setup(c) {
15338
- const a = c, e = G("default"), i = G(!1), s = B(() => e.value === "success" ? a.successIcon : e.value === "error" ? a.errorIcon : a.initialIcon), r = B(() => e.value === "default" && i.value ? a.retryLabel : e.value === "waiting" ? a.waitingLabel : e.value === "success" ? a.successLabel : e.value === "error" ? a.errorLabel : a.initialLabel), n = B(() => !(e.value === "default" && !a.disabled)), l = async (t) => {
15339
- e.value = "waiting", await new Promise((u) => setTimeout(u, a.waitTime)), await Promise.resolve(a.onClick(t)).then(() => e.value = "success").then(() => {
15340
- a.successTimeout && setTimeout(() => {
15341
- e.value = "default";
15342
- }, a.successTimeout);
15343
- }).catch((u) => {
15344
- e.value = "error", console.log(u), setTimeout(() => {
15345
- i.value = !0, e.value = "default";
15346
- }, a.retryTimeout);
15310
+ const a = c, e = W("default"), i = B(() => e.value === "waiting" ? a.waitingLabel : a.initialLabel), s = B(() => !(e.value === "default" && !a.disabled)), r = async (n) => {
15311
+ e.value = "waiting", await new Promise((l) => setTimeout(l, a.waitTime)), await Promise.resolve(a.onClick(n)).then(() => e.value = "default").catch((l) => {
15312
+ e.value = "default", console.log(l);
15347
15313
  });
15348
15314
  };
15349
- return (t, u) => {
15350
- const f = H("AVSpinner"), v = H("AVIcon");
15315
+ return (n, l) => {
15316
+ const t = H("AVSpinner"), u = H("AVIcon");
15351
15317
  return m(), z("button", {
15352
15318
  type: "button",
15353
15319
  class: k(`AVAsyncButton AVAsyncButton--${c.size} AVAsyncButton--${e.value} ${c.disabled && "AVAsyncButton--disabled"}`),
15354
15320
  style: p2(`width: ${c.customWidth}px;`),
15355
15321
  "data-test": "btn",
15356
- onClick: l,
15357
- disabled: j(n)
15322
+ onClick: r,
15323
+ disabled: F(s)
15358
15324
  }, [
15359
- e.value === "waiting" ? (m(), E(f, {
15325
+ e.value === "waiting" ? (m(), E(t, {
15360
15326
  key: 0,
15361
15327
  color: "light",
15362
15328
  "data-test": "btn-spinner"
15363
- })) : (m(), E(v, {
15329
+ })) : (m(), E(u, {
15364
15330
  key: 1,
15365
- icon: `fa-solid fa-${j(s)}`,
15331
+ icon: `fa-solid fa-${c.icon}`,
15366
15332
  class: "AVAsyncButton--icon-left",
15367
15333
  "data-test": "btn-icon"
15368
15334
  }, null, 8, ["icon"])),
15369
15335
  o("span", TP, [
15370
- X(t.$slots, "default", {}, void 0, !0),
15371
- s2(g(j(r)), 1)
15336
+ X(n.$slots, "default", {}, void 0, !0),
15337
+ s2(g(F(i)), 1)
15372
15338
  ])
15373
15339
  ], 14, kP);
15374
15340
  };
15375
15341
  }
15376
15342
  });
15377
- const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-b8175fba"]]), _P = { class: "AVTabSwitcher" }, PP = ["disabled", "onClick"], BP = /* @__PURE__ */ P({
15343
+ const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-df448b34"]]), _P = { class: "AVTabSwitcher" }, PP = ["disabled", "onClick"], BP = /* @__PURE__ */ P({
15378
15344
  __name: "AVTabSwitcher",
15379
15345
  props: {
15380
15346
  options: {
@@ -15394,7 +15360,7 @@ const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-b8175fba"]]), _P = { cla
15394
15360
  },
15395
15361
  emits: ["update"],
15396
15362
  setup(c, { emit: a }) {
15397
- const e = c, i = G([]), s = G(""), r = B(() => e.options.length === 2 ? "AVTabSwitcher--double" : "AVTabSwitcher--triple");
15363
+ const e = c, i = W([]), s = W(""), r = B(() => e.options.length === 2 ? "AVTabSwitcher--double" : "AVTabSwitcher--triple");
15398
15364
  d2(() => n());
15399
15365
  const n = () => {
15400
15366
  i.value = [], e.options.map(
@@ -15432,7 +15398,7 @@ const IP = /* @__PURE__ */ I(DP, [["__scopeId", "data-v-b8175fba"]]), _P = { cla
15432
15398
  ), (v, p) => (m(), z("div", _P, [
15433
15399
  (m(!0), z(a2, null, N2(i.value, (d) => (m(), z("button", {
15434
15400
  key: d.value,
15435
- class: k(`AVTabSwitcher--button ${j(r)} ${d.selected && "AVTabSwitcher--button-active"} ${d.disabled && "disabled"}`),
15401
+ class: k(`AVTabSwitcher--button ${F(r)} ${d.selected && "AVTabSwitcher--button-active"} ${d.disabled && "disabled"}`),
15436
15402
  disabled: d.disabled,
15437
15403
  onClick: (h) => u(d.value)
15438
15404
  }, g(d.value), 11, PP))), 128))
@@ -15470,16 +15436,16 @@ const EP = /* @__PURE__ */ I(BP, [["__scopeId", "data-v-413f60c7"]]), jP = { cla
15470
15436
  return m(), z("div", jP, [
15471
15437
  o("div", FP, [
15472
15438
  V(n, {
15473
- icon: `fa-solid fa-${j(e) ? "file-circle-check" : "file-circle-minus"}`,
15474
- class: k(`AVBallotSummary--icon ${j(e) && "AVBallotSummary--icon-ready"}`),
15439
+ icon: `fa-solid fa-${F(e) ? "file-circle-check" : "file-circle-minus"}`,
15440
+ class: k(`AVBallotSummary--icon ${F(e) && "AVBallotSummary--icon-ready"}`),
15475
15441
  "data-test": "ballot-icon"
15476
15442
  }, null, 8, ["icon", "class"]),
15477
15443
  o("span", {
15478
- class: k(`AVBallotSummary--ballot-name ${j(e) && "AVBallotSummary--name-ready"}`)
15444
+ class: k(`AVBallotSummary--ballot-name ${F(e) && "AVBallotSummary--name-ready"}`)
15479
15445
  }, g(c.ballotStyleName), 3)
15480
15446
  ]),
15481
15447
  o("div", OP, [
15482
- j(e) ? (m(), E(n, {
15448
+ F(e) ? (m(), E(n, {
15483
15449
  key: 0,
15484
15450
  icon: "fa-solid fa-circle-check",
15485
15451
  class: "AVBallotSummary--icon AVBallotSummary--icon-ready",
@@ -15490,8 +15456,8 @@ const EP = /* @__PURE__ */ I(BP, [["__scopeId", "data-v-413f60c7"]]), jP = { cla
15490
15456
  "data-test": "ballot-spinner"
15491
15457
  })),
15492
15458
  o("span", {
15493
- class: k(`AVBallotSummary--ballot-status ${j(e) && "AVBallotSummary--status-ready"}`)
15494
- }, g(j(e) ? `${c.currentBallots} ${c.readyLabel}` : `${j(i)} ${c.waitingLabel}`), 3)
15459
+ class: k(`AVBallotSummary--ballot-status ${F(e) && "AVBallotSummary--status-ready"}`)
15460
+ }, g(F(e) ? `${c.currentBallots} ${c.readyLabel}` : `${F(i)} ${c.waitingLabel}`), 3)
15495
15461
  ])
15496
15462
  ]);
15497
15463
  };
@@ -15529,7 +15495,7 @@ const RP = /* @__PURE__ */ I(qP, [["__scopeId", "data-v-607d90fc"]]), UP = {
15529
15495
  d2(() => {
15530
15496
  s();
15531
15497
  });
15532
- const i = G(0), s = () => {
15498
+ const i = W(0), s = () => {
15533
15499
  const f = setInterval(() => {
15534
15500
  i.value = i.value + 1, i.value >= e.timeout && (clearInterval(f), a("expired", !0, e.timeout));
15535
15501
  }, 1e3);
@@ -15547,7 +15513,7 @@ const RP = /* @__PURE__ */ I(qP, [["__scopeId", "data-v-607d90fc"]]), UP = {
15547
15513
  o("div", $P, [
15548
15514
  o("div", {
15549
15515
  class: k(`AVTimedCard--progress-bar ${c.timeout - i.value <= c.customWarningTime && "AVTimedCard--progress-bar-warning"}`),
15550
- style: p2(`width: ${j(r)}%`),
15516
+ style: p2(`width: ${F(r)}%`),
15551
15517
  "data-test": "progress-bar"
15552
15518
  }, null, 6)
15553
15519
  ])
@@ -15557,7 +15523,7 @@ const RP = /* @__PURE__ */ I(qP, [["__scopeId", "data-v-607d90fc"]]), UP = {
15557
15523
  "data-test": "help-text"
15558
15524
  }, [
15559
15525
  s2(g(c.expirationMessage), 1),
15560
- o("strong", null, g(j(u)), 1)
15526
+ o("strong", null, g(F(u)), 1)
15561
15527
  ], 2)
15562
15528
  ], 64));
15563
15529
  }
@@ -15625,9 +15591,9 @@ const KP = /* @__PURE__ */ I(JP, [["__scopeId", "data-v-9a6218e9"]]), cB = { cla
15625
15591
  setup(c) {
15626
15592
  const a = c;
15627
15593
  ak((n) => ({
15628
- "4d0e1dab": j(r)
15594
+ "4d0e1dab": F(r)
15629
15595
  }));
15630
- const e = G([]), i = () => {
15596
+ const e = W([]), i = () => {
15631
15597
  e.value = [], a.steps.map((n) => {
15632
15598
  e.value.push({
15633
15599
  value: n,
@@ -15750,7 +15716,7 @@ const iB = /* @__PURE__ */ I(eB, [["__scopeId", "data-v-563abd56"]]), $S = (c) =
15750
15716
  tabindex: c.disabled ? null : 0,
15751
15717
  "aria-disabled": c.disabled,
15752
15718
  disabled: c.disabled
15753
- }, j(s), {
15719
+ }, F(s), {
15754
15720
  onClick: Ba(i, ["stop"]),
15755
15721
  onKeydown: ik(Ba(i, ["prevent"]), ["space", "enter"])
15756
15722
  }), [
@@ -15903,7 +15869,7 @@ const CB = /* @__PURE__ */ I(MB, [["__scopeId", "data-v-6a7337ae"]]), LB = { cla
15903
15869
  },
15904
15870
  emits: ["update"],
15905
15871
  setup(c, { emit: a }) {
15906
- const e = c, i = G(""), s = G([]), r = (u) => {
15872
+ const e = c, i = W(""), s = W([]), r = (u) => {
15907
15873
  s.value.map((f) => {
15908
15874
  f.value === u ? (f.checked = !0, i.value = f.value) : f.checked = !1;
15909
15875
  });
@@ -16110,7 +16076,7 @@ const DB = /* @__PURE__ */ I(TB, [["__scopeId", "data-v-71e09fe3"]]), IB = ["hre
16110
16076
  o("div", BB, [
16111
16077
  o("span", EB, g(c.name), 1),
16112
16078
  V(n, {
16113
- type: j(i),
16079
+ type: F(i),
16114
16080
  value: c.status
16115
16081
  }, null, 8, ["type", "value"])
16116
16082
  ]),
@@ -16263,7 +16229,7 @@ const nE = /* @__PURE__ */ I(rE, [["__scopeId", "data-v-c682a2cf"]]), tE = "data
16263
16229
  }, [
16264
16230
  oE,
16265
16231
  o("img", {
16266
- src: j(tE),
16232
+ src: F(tE),
16267
16233
  alt: "Assembly Voting",
16268
16234
  class: "AVFooter--img"
16269
16235
  }, null, 8, fE)