@assemblyvoting/ui-library 2.1.19 → 2.1.20
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/README.md +8 -5
- package/dist/components/molecules/AVOption/AVOption.vue.d.ts +1 -1
- package/dist/components/molecules/AVSearchBallot/AVSearchBallot.vue.d.ts +1 -1
- package/dist/components/molecules/AVSubmissionHelper/AVSubmissionHelper.vue.d.ts +1 -1
- package/dist/components/organisms/AVSplitHelper/AVSplitHelper.vue.d.ts +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +132 -136
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -29,7 +29,7 @@ const MI = Object.prototype.hasOwnProperty;
|
|
29
29
|
function T3(e, c) {
|
30
30
|
return MI.call(e, c);
|
31
31
|
}
|
32
|
-
const h2 = Array.isArray, z2 = (e) => typeof e == "function",
|
32
|
+
const h2 = Array.isArray, z2 = (e) => typeof e == "function", R = (e) => typeof e == "string", a2 = (e) => typeof e == "boolean", f2 = (e) => e !== null && typeof e == "object", fs = Object.prototype.toString, us = (e) => fs.call(e), e2 = (e) => {
|
33
33
|
if (!f2(e))
|
34
34
|
return !1;
|
35
35
|
const c = Object.getPrototypeOf(e);
|
@@ -340,7 +340,7 @@ function BI(e, c = {}) {
|
|
340
340
|
const v = z.currentPeek() === "|";
|
341
341
|
return z.resetPeek(), v;
|
342
342
|
}
|
343
|
-
function
|
343
|
+
function j(z) {
|
344
344
|
const v = S(z), N = z.currentPeek() === "%" && z.peek() === "{";
|
345
345
|
return z.resetPeek(), {
|
346
346
|
isModulo: N,
|
@@ -586,7 +586,7 @@ function BI(e, c = {}) {
|
|
586
586
|
default:
|
587
587
|
if (P(z))
|
588
588
|
return N = m(v, 1, F2(z)), v.braceNest = 0, v.inLinked = !1, N;
|
589
|
-
const { isModulo: K, hasSpace: o2 } =
|
589
|
+
const { isModulo: K, hasSpace: o2 } = j(z);
|
590
590
|
if (K)
|
591
591
|
return o2 ? m(v, 0, g2(z)) : m(v, 4, P2(z));
|
592
592
|
if (c2(z))
|
@@ -1334,21 +1334,21 @@ function VE(e, c) {
|
|
1334
1334
|
c.count || (c.count = e), c.n || (c.n = e);
|
1335
1335
|
}
|
1336
1336
|
function zE(e = {}) {
|
1337
|
-
const c = e.locale, a = hE(e), t = f2(e.pluralRules) &&
|
1337
|
+
const c = e.locale, a = hE(e), t = f2(e.pluralRules) && R(c) && z2(e.pluralRules[c]) ? e.pluralRules[c] : D9, n = f2(e.pluralRules) && R(c) && z2(e.pluralRules[c]) ? D9 : void 0, s = (V) => V[t(a, V.length, n)], i = e.list || [], r = (V) => i[V], l = e.named || {};
|
1338
1338
|
S2(e.pluralIndex) && VE(a, l);
|
1339
1339
|
const o = (V) => l[V];
|
1340
1340
|
function f(V) {
|
1341
1341
|
const g = z2(e.messages) ? e.messages(V) : f2(e.messages) ? e.messages[V] : !1;
|
1342
1342
|
return g || (e.parent ? e.parent.message(V) : mE);
|
1343
1343
|
}
|
1344
|
-
const d = (V) => e.modifiers ? e.modifiers[V] : uE, m = e2(e.processor) && z2(e.processor.normalize) ? e.processor.normalize : vE, h = e2(e.processor) && z2(e.processor.interpolate) ? e.processor.interpolate : pE, b = e2(e.processor) &&
|
1344
|
+
const d = (V) => e.modifiers ? e.modifiers[V] : uE, m = e2(e.processor) && z2(e.processor.normalize) ? e.processor.normalize : vE, h = e2(e.processor) && z2(e.processor.interpolate) ? e.processor.interpolate : pE, b = e2(e.processor) && R(e.processor.type) ? e.processor.type : dE, A = {
|
1345
1345
|
list: r,
|
1346
1346
|
named: o,
|
1347
1347
|
plural: s,
|
1348
1348
|
linked: (V, ...g) => {
|
1349
1349
|
const [y, M] = g;
|
1350
1350
|
let _ = "text", L = "";
|
1351
|
-
g.length === 1 ? f2(y) ? (L = y.modifier || L, _ = y.type || _) :
|
1351
|
+
g.length === 1 ? f2(y) ? (L = y.modifier || L, _ = y.type || _) : R(y) && (L = y || L) : g.length === 2 && (R(y) && (L = y || L), R(M) && (_ = M || _));
|
1352
1352
|
const C = f(V)(A), k = (
|
1353
1353
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1354
1354
|
_ === "vnode" && h2(C) && L ? C[0] : C
|
@@ -1408,16 +1408,16 @@ function _0(e, c) {
|
|
1408
1408
|
}
|
1409
1409
|
let F6;
|
1410
1410
|
function O9(e) {
|
1411
|
-
return
|
1411
|
+
return R(e) ? e : F6 != null && e.resolvedOnce ? F6 : F6 = e();
|
1412
1412
|
}
|
1413
1413
|
function LE(e, c, a) {
|
1414
1414
|
return [.../* @__PURE__ */ new Set([
|
1415
1415
|
a,
|
1416
|
-
...h2(c) ? c : f2(c) ? Object.keys(c) :
|
1416
|
+
...h2(c) ? c : f2(c) ? Object.keys(c) : R(c) ? [c] : [a]
|
1417
1417
|
])];
|
1418
1418
|
}
|
1419
1419
|
function vs(e, c, a) {
|
1420
|
-
const t =
|
1420
|
+
const t = R(a) ? a : f3, n = e;
|
1421
1421
|
n.__localeChainCache || (n.__localeChainCache = /* @__PURE__ */ new Map());
|
1422
1422
|
let s = n.__localeChainCache.get(t);
|
1423
1423
|
if (!s) {
|
@@ -1426,7 +1426,7 @@ function vs(e, c, a) {
|
|
1426
1426
|
for (; h2(i); )
|
1427
1427
|
i = P9(s, i, c);
|
1428
1428
|
const r = h2(c) || !e2(c) ? c : c.default ? c.default : null;
|
1429
|
-
i =
|
1429
|
+
i = R(r) ? [r] : r, h2(i) && P9(s, i, !1), n.__localeChainCache.set(t, s);
|
1430
1430
|
}
|
1431
1431
|
return s;
|
1432
1432
|
}
|
@@ -1434,7 +1434,7 @@ function P9(e, c, a) {
|
|
1434
1434
|
let t = !0;
|
1435
1435
|
for (let n = 0; n < c.length && a2(t); n++) {
|
1436
1436
|
const s = c[n];
|
1437
|
-
|
1437
|
+
R(s) && (t = _E(e, c[n], a));
|
1438
1438
|
}
|
1439
1439
|
return t;
|
1440
1440
|
}
|
@@ -1459,9 +1459,9 @@ function yE(e, c, a) {
|
|
1459
1459
|
const NE = "9.7.0", B4 = -1, f3 = "en-US", S4 = "", B9 = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
1460
1460
|
function AE() {
|
1461
1461
|
return {
|
1462
|
-
upper: (e, c) => c === "text" &&
|
1463
|
-
lower: (e, c) => c === "text" &&
|
1464
|
-
capitalize: (e, c) => c === "text" &&
|
1462
|
+
upper: (e, c) => c === "text" && R(e) ? e.toUpperCase() : c === "vnode" && f2(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
1463
|
+
lower: (e, c) => c === "text" && R(e) ? e.toLowerCase() : c === "vnode" && f2(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
1464
|
+
capitalize: (e, c) => c === "text" && R(e) ? B9(e) : c === "vnode" && f2(e) && "__v_isVNode" in e ? B9(e.children) : e
|
1465
1465
|
};
|
1466
1466
|
}
|
1467
1467
|
let ps;
|
@@ -1486,9 +1486,9 @@ const R9 = (e) => {
|
|
1486
1486
|
}, TE = () => Hs;
|
1487
1487
|
let j9 = 0;
|
1488
1488
|
function IE(e = {}) {
|
1489
|
-
const c = z2(e.onWarn) ? e.onWarn : I2, a =
|
1489
|
+
const c = z2(e.onWarn) ? e.onWarn : I2, a = R(e.version) ? e.version : NE, t = R(e.locale) || z2(e.locale) ? e.locale : f3, n = z2(t) ? f3 : t, s = h2(e.fallbackLocale) || e2(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, i = e2(e.messages) ? e.messages : { [n]: {} }, r = e2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = e2(e.numberFormats) ? e.numberFormats : { [n]: {} }, o = D2({}, e.modifiers || {}, AE()), f = e.pluralRules || {}, d = z2(e.missing) ? e.missing : null, m = a2(e.missingWarn) || w1(e.missingWarn) ? e.missingWarn : !0, h = a2(e.fallbackWarn) || w1(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, S = !!e.unresolving, A = z2(e.postTranslation) ? e.postTranslation : null, V = e2(e.processor) ? e.processor : null, g = a2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, M = z2(e.messageCompiler) ? e.messageCompiler : ps;
|
1490
1490
|
process.env.NODE_ENV !== "production" && z2(e.messageCompiler) && LI(Q1(j2.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1491
|
-
const _ = z2(e.messageResolver) ? e.messageResolver : hs || oE, L = z2(e.localeFallbacker) ? e.localeFallbacker : Vs || LE, C = f2(e.fallbackContext) ? e.fallbackContext : void 0, k = e, w = f2(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), P = f2(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(),
|
1491
|
+
const _ = z2(e.messageResolver) ? e.messageResolver : hs || oE, L = z2(e.localeFallbacker) ? e.localeFallbacker : Vs || LE, C = f2(e.fallbackContext) ? e.fallbackContext : void 0, k = e, w = f2(k.__datetimeFormatters) ? k.__datetimeFormatters : /* @__PURE__ */ new Map(), P = f2(k.__numberFormatters) ? k.__numberFormatters : /* @__PURE__ */ new Map(), j = f2(k.__meta) ? k.__meta : {};
|
1492
1492
|
j9++;
|
1493
1493
|
const c2 = {
|
1494
1494
|
version: a,
|
@@ -1512,9 +1512,9 @@ function IE(e = {}) {
|
|
1512
1512
|
localeFallbacker: L,
|
1513
1513
|
fallbackContext: C,
|
1514
1514
|
onWarn: c,
|
1515
|
-
__meta:
|
1515
|
+
__meta: j
|
1516
1516
|
};
|
1517
|
-
return c2.datetimeFormats = r, c2.numberFormats = l, c2.__datetimeFormatters = w, c2.__numberFormatters = P, process.env.NODE_ENV !== "production" && (c2.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ME(c2, a,
|
1517
|
+
return c2.datetimeFormats = r, c2.numberFormats = l, c2.__datetimeFormatters = w, c2.__numberFormatters = P, process.env.NODE_ENV !== "production" && (c2.__v_emitter = k.__v_emitter != null ? k.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && ME(c2, a, j), c2;
|
1518
1518
|
}
|
1519
1519
|
function F4(e, c) {
|
1520
1520
|
return e instanceof RegExp ? e.test(c) : e;
|
@@ -1535,7 +1535,7 @@ function y0(e, c, a, t, n) {
|
|
1535
1535
|
}
|
1536
1536
|
if (s !== null) {
|
1537
1537
|
const r = s(e, a, c, n);
|
1538
|
-
return
|
1538
|
+
return R(r) ? r : c;
|
1539
1539
|
} else
|
1540
1540
|
return process.env.NODE_ENV !== "production" && Ms(t, c) && i(Q1(j2.NOT_FOUND_KEY, { key: c, locale: a })), c;
|
1541
1541
|
}
|
@@ -1625,7 +1625,7 @@ function Ls(e, c = {}) {
|
|
1625
1625
|
}, { ...cE(e, c), detectError: a };
|
1626
1626
|
}
|
1627
1627
|
const PE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
1628
|
-
if (!
|
1628
|
+
if (!R(e))
|
1629
1629
|
throw U1(e1.NOT_SUPPORT_NON_STRING_MESSAGE);
|
1630
1630
|
{
|
1631
1631
|
const a = a2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
@@ -1638,7 +1638,7 @@ const PE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
|
1638
1638
|
}
|
1639
1639
|
};
|
1640
1640
|
function BE(e, c) {
|
1641
|
-
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
1641
|
+
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && R(e)) {
|
1642
1642
|
const a = a2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
1643
1643
|
process.env.NODE_ENV !== "production" && Cs(e, a);
|
1644
1644
|
const n = (c.onCacheKey || bs)(e), s = n3[n];
|
@@ -1663,16 +1663,16 @@ function BE(e, c) {
|
|
1663
1663
|
}
|
1664
1664
|
const U9 = () => "", J2 = (e) => z2(e);
|
1665
1665
|
function q9(e, ...c) {
|
1666
|
-
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: s, fallbackLocale: i, messages: r } = e, [l, o] = K6(...c), f = a2(o.missingWarn) ? o.missingWarn : e.missingWarn, d = a2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, m = a2(o.escapeParameter) ? o.escapeParameter : e.escapeParameter, h = !!o.resolvedMessage, b =
|
1666
|
+
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: s, fallbackLocale: i, messages: r } = e, [l, o] = K6(...c), f = a2(o.missingWarn) ? o.missingWarn : e.missingWarn, d = a2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, m = a2(o.escapeParameter) ? o.escapeParameter : e.escapeParameter, h = !!o.resolvedMessage, b = R(o.default) || a2(o.default) ? a2(o.default) ? s ? l : () => l : o.default : a ? s ? l : () => l : "", S = a || b !== "", A = _0(e, o);
|
1667
1667
|
m && FE(o);
|
1668
1668
|
let [V, g, y] = h ? [
|
1669
1669
|
l,
|
1670
1670
|
A,
|
1671
1671
|
r[A] || {}
|
1672
1672
|
] : _s(e, l, A, i, d, f), M = V, _ = l;
|
1673
|
-
if (!h && !(
|
1673
|
+
if (!h && !(R(M) || T1(M) || J2(M)) && S && (M = b, _ = M), !h && (!(R(M) || T1(M) || J2(M)) || !R(g)))
|
1674
1674
|
return n ? B4 : l;
|
1675
|
-
if (process.env.NODE_ENV !== "production" &&
|
1675
|
+
if (process.env.NODE_ENV !== "production" && R(M) && e.messageCompiler == null)
|
1676
1676
|
return I2(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
1677
1677
|
let L = !1;
|
1678
1678
|
const C = () => {
|
@@ -1680,13 +1680,13 @@ function q9(e, ...c) {
|
|
1680
1680
|
}, k = J2(M) ? M : ys(e, l, g, M, _, C);
|
1681
1681
|
if (L)
|
1682
1682
|
return M;
|
1683
|
-
const w = UE(e, g, y, o), P = zE(w),
|
1683
|
+
const w = UE(e, g, y, o), P = zE(w), j = RE(e, k, P), c2 = t ? t(j, l) : j;
|
1684
1684
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1685
1685
|
const U = {
|
1686
1686
|
timestamp: Date.now(),
|
1687
|
-
key:
|
1687
|
+
key: R(l) ? l : J2(M) ? M.key : "",
|
1688
1688
|
locale: g || (J2(M) ? M.locale : ""),
|
1689
|
-
format:
|
1689
|
+
format: R(M) ? M : J2(M) ? M.source : "",
|
1690
1690
|
message: c2
|
1691
1691
|
};
|
1692
1692
|
U.meta = D2({}, e.__meta, /* @__PURE__ */ wE() || {}), gE(U);
|
@@ -1694,8 +1694,8 @@ function q9(e, ...c) {
|
|
1694
1694
|
return c2;
|
1695
1695
|
}
|
1696
1696
|
function FE(e) {
|
1697
|
-
h2(e.list) ? e.list = e.list.map((c) =>
|
1698
|
-
|
1697
|
+
h2(e.list) ? e.list = e.list.map((c) => R(c) ? A9(c) : c) : f2(e.named) && Object.keys(e.named).forEach((c) => {
|
1698
|
+
R(e.named[c]) && (e.named[c] = A9(e.named[c]));
|
1699
1699
|
});
|
1700
1700
|
}
|
1701
1701
|
function _s(e, c, a, t, n, s) {
|
@@ -1728,7 +1728,7 @@ function _s(e, c, a, t, n, s) {
|
|
1728
1728
|
groupId: `${A}:${c}`
|
1729
1729
|
}), y && M && Q2 && Y1 && (Q2(M), Y1("intlify message resolve", y, M));
|
1730
1730
|
}
|
1731
|
-
if (
|
1731
|
+
if (R(h) || T1(h) || J2(h))
|
1732
1732
|
break;
|
1733
1733
|
const _ = y0(
|
1734
1734
|
e,
|
@@ -1783,10 +1783,10 @@ function RE(e, c, a) {
|
|
1783
1783
|
}
|
1784
1784
|
function K6(...e) {
|
1785
1785
|
const [c, a, t] = e, n = {};
|
1786
|
-
if (!
|
1786
|
+
if (!R(c) && !S2(c) && !J2(c) && !T1(c))
|
1787
1787
|
throw U1(e1.INVALID_ARGUMENT);
|
1788
1788
|
const s = S2(c) ? String(c) : (J2(c), c);
|
1789
|
-
return S2(a) ? n.plural = a :
|
1789
|
+
return S2(a) ? n.plural = a : R(a) ? n.default = a : e2(a) && !P4(a) ? n.named = a : h2(a) && (n.list = a), S2(t) ? n.plural = t : R(t) ? n.default = t : e2(t) && D2(n, t), [s, n];
|
1790
1790
|
}
|
1791
1791
|
function jE(e, c, a, t, n, s) {
|
1792
1792
|
return {
|
@@ -1811,7 +1811,7 @@ ${o}` : l);
|
|
1811
1811
|
};
|
1812
1812
|
}
|
1813
1813
|
function $E(e) {
|
1814
|
-
if (
|
1814
|
+
if (R(e))
|
1815
1815
|
return e;
|
1816
1816
|
if (e.loc && e.loc.source)
|
1817
1817
|
return e.loc.source;
|
@@ -1827,7 +1827,7 @@ function UE(e, c, a, t) {
|
|
1827
1827
|
const [, , S] = _s(f, h, c, r, l, o);
|
1828
1828
|
b = i(S, h);
|
1829
1829
|
}
|
1830
|
-
if (
|
1830
|
+
if (R(b) || T1(b)) {
|
1831
1831
|
let S = !1;
|
1832
1832
|
const V = ys(e, h, c, b, h, () => {
|
1833
1833
|
S = !0;
|
@@ -1853,7 +1853,7 @@ function G9(e, ...c) {
|
|
1853
1853
|
n,
|
1854
1854
|
S
|
1855
1855
|
);
|
1856
|
-
if (!
|
1856
|
+
if (!R(l) || l === "")
|
1857
1857
|
return new Intl.DateTimeFormat(S, d).format(o);
|
1858
1858
|
let V = {}, g, y = null, M = S, _ = null;
|
1859
1859
|
const L = "datetime format";
|
@@ -1875,7 +1875,7 @@ function G9(e, ...c) {
|
|
1875
1875
|
break;
|
1876
1876
|
y0(e, l, g, m, L), M = _;
|
1877
1877
|
}
|
1878
|
-
if (!e2(y) || !
|
1878
|
+
if (!e2(y) || !R(g))
|
1879
1879
|
return t ? B4 : l;
|
1880
1880
|
let C = `${g}__${l}`;
|
1881
1881
|
P4(d) || (C = `${C}__${JSON.stringify(d)}`);
|
@@ -1907,7 +1907,7 @@ const As = [
|
|
1907
1907
|
function Z6(...e) {
|
1908
1908
|
const [c, a, t, n] = e, s = {};
|
1909
1909
|
let i = {}, r;
|
1910
|
-
if (
|
1910
|
+
if (R(c)) {
|
1911
1911
|
const l = c.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
1912
1912
|
if (!l)
|
1913
1913
|
throw U1(e1.INVALID_ISO_DATE_ARGUMENT);
|
@@ -1926,9 +1926,9 @@ function Z6(...e) {
|
|
1926
1926
|
r = c;
|
1927
1927
|
else
|
1928
1928
|
throw U1(e1.INVALID_ARGUMENT);
|
1929
|
-
return
|
1929
|
+
return R(a) ? s.key = a : e2(a) && Object.keys(a).forEach((l) => {
|
1930
1930
|
As.includes(l) ? i[l] = a[l] : s[l] = a[l];
|
1931
|
-
}),
|
1931
|
+
}), R(t) ? s.locale = t : e2(t) && (i = t), e2(n) && (i = n), [s.key || "", r, s, i];
|
1932
1932
|
}
|
1933
1933
|
function Y9(e, c, a) {
|
1934
1934
|
const t = e;
|
@@ -1947,7 +1947,7 @@ function Q9(e, ...c) {
|
|
1947
1947
|
n,
|
1948
1948
|
S
|
1949
1949
|
);
|
1950
|
-
if (!
|
1950
|
+
if (!R(l) || l === "")
|
1951
1951
|
return new Intl.NumberFormat(S, d).format(o);
|
1952
1952
|
let V = {}, g, y = null, M = S, _ = null;
|
1953
1953
|
const L = "number format";
|
@@ -1969,7 +1969,7 @@ function Q9(e, ...c) {
|
|
1969
1969
|
break;
|
1970
1970
|
y0(e, l, g, m, L), M = _;
|
1971
1971
|
}
|
1972
|
-
if (!e2(y) || !
|
1972
|
+
if (!e2(y) || !R(g))
|
1973
1973
|
return t ? B4 : l;
|
1974
1974
|
let C = `${g}__${l}`;
|
1975
1975
|
P4(d) || (C = `${C}__${JSON.stringify(d)}`);
|
@@ -2004,9 +2004,9 @@ function J6(...e) {
|
|
2004
2004
|
if (!S2(c))
|
2005
2005
|
throw U1(e1.INVALID_ARGUMENT);
|
2006
2006
|
const r = c;
|
2007
|
-
return
|
2007
|
+
return R(a) ? s.key = a : e2(a) && Object.keys(a).forEach((l) => {
|
2008
2008
|
xs.includes(l) ? i[l] = a[l] : s[l] = a[l];
|
2009
|
-
}),
|
2009
|
+
}), R(t) ? s.locale = t : e2(t) && (i = t), e2(n) && (i = n), [s.key || "", r, s, i];
|
2010
2010
|
}
|
2011
2011
|
function X9(e, c, a) {
|
2012
2012
|
const t = e;
|
@@ -2218,7 +2218,7 @@ function R4(e, c) {
|
|
2218
2218
|
const { locale: l, resource: o } = r;
|
2219
2219
|
l ? (i[l] = i[l] || {}, N3(o, i[l])) : N3(o, i);
|
2220
2220
|
} else
|
2221
|
-
|
2221
|
+
R(r) && N3(JSON.parse(r), i);
|
2222
2222
|
}), n == null && s)
|
2223
2223
|
for (const r in i)
|
2224
2224
|
T3(i, r) && D3(i[r]);
|
@@ -2270,10 +2270,10 @@ function N0(e = {}, c) {
|
|
2270
2270
|
let i = a2(e.inheritLocale) ? e.inheritLocale : !0;
|
2271
2271
|
const r = J(
|
2272
2272
|
// prettier-ignore
|
2273
|
-
a && i ? a.locale.value :
|
2273
|
+
a && i ? a.locale.value : R(e.locale) ? e.locale : f3
|
2274
2274
|
), l = J(
|
2275
2275
|
// prettier-ignore
|
2276
|
-
a && i ? a.fallbackLocale.value :
|
2276
|
+
a && i ? a.fallbackLocale.value : R(e.fallbackLocale) || h2(e.fallbackLocale) || e2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
|
2277
2277
|
), o = J(R4(r.value, e)), f = J(e2(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), d = J(e2(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
|
2278
2278
|
let m = a ? a.missingWarn : a2(e.missingWarn) || w1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : a2(e.fallbackWarn) || w1(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : a2(e.fallbackRoot) ? e.fallbackRoot : !0, S = !!e.fallbackFormat, A = z2(e.missing) ? e.missing : null, V = z2(e.missing) ? cn(e.missing) : null, g = z2(e.postTranslation) ? e.postTranslation : null, y = a ? a.warnHtmlMessage : a2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, M = !!e.escapeParameter;
|
2279
2279
|
const _ = a ? a.modifiers : e2(e.modifiers) ? e.modifiers : {};
|
@@ -2317,7 +2317,7 @@ function N0(e = {}, c) {
|
|
2317
2317
|
set: (T) => {
|
2318
2318
|
r.value = T, C.locale = r.value;
|
2319
2319
|
}
|
2320
|
-
}),
|
2320
|
+
}), j = E({
|
2321
2321
|
get: () => l.value,
|
2322
2322
|
set: (T) => {
|
2323
2323
|
l.value = T, C.fallbackLocale = l.value, b3(C, r.value, T);
|
@@ -2349,7 +2349,7 @@ function N0(e = {}, c) {
|
|
2349
2349
|
if (r2 !== "translate exists" && // for not `te` (e.g `t`)
|
2350
2350
|
S2(c3) && c3 === B4 || r2 === "translate exists" && !c3) {
|
2351
2351
|
const [$1, nI] = B();
|
2352
|
-
if (process.env.NODE_ENV !== "production" && a &&
|
2352
|
+
if (process.env.NODE_ENV !== "production" && a && R($1) && g2(r2, nI) && (b && (F4(h, $1) || Ms(m, $1)) && I2(Y2(N2.FALLBACK_TO_ROOT, {
|
2353
2353
|
key: $1,
|
2354
2354
|
type: r2
|
2355
2355
|
})), process.env.NODE_ENV !== "production")) {
|
@@ -2369,7 +2369,7 @@ function N0(e = {}, c) {
|
|
2369
2369
|
}
|
2370
2370
|
};
|
2371
2371
|
function m2(...T) {
|
2372
|
-
return C2((B) => Reflect.apply(q9, null, [B, ...T]), () => K6(...T), "translate", (B) => Reflect.apply(B.t, B, [...T]), (B) => B, (B) =>
|
2372
|
+
return C2((B) => Reflect.apply(q9, null, [B, ...T]), () => K6(...T), "translate", (B) => Reflect.apply(B.t, B, [...T]), (B) => B, (B) => R(B));
|
2373
2373
|
}
|
2374
2374
|
function x2(...T) {
|
2375
2375
|
const [B, r2, L2] = T;
|
@@ -2378,13 +2378,13 @@ function N0(e = {}, c) {
|
|
2378
2378
|
return m2(B, r2, D2({ resolvedMessage: !0 }, L2 || {}));
|
2379
2379
|
}
|
2380
2380
|
function B2(...T) {
|
2381
|
-
return C2((B) => Reflect.apply(G9, null, [B, ...T]), () => Z6(...T), "datetime format", (B) => Reflect.apply(B.d, B, [...T]), () => S4, (B) =>
|
2381
|
+
return C2((B) => Reflect.apply(G9, null, [B, ...T]), () => Z6(...T), "datetime format", (B) => Reflect.apply(B.d, B, [...T]), () => S4, (B) => R(B));
|
2382
2382
|
}
|
2383
2383
|
function G2(...T) {
|
2384
|
-
return C2((B) => Reflect.apply(Q9, null, [B, ...T]), () => J6(...T), "number format", (B) => Reflect.apply(B.n, B, [...T]), () => S4, (B) =>
|
2384
|
+
return C2((B) => Reflect.apply(Q9, null, [B, ...T]), () => J6(...T), "number format", (B) => Reflect.apply(B.n, B, [...T]), () => S4, (B) => R(B));
|
2385
2385
|
}
|
2386
2386
|
function $2(T) {
|
2387
|
-
return T.map((B) =>
|
2387
|
+
return T.map((B) => R(B) || S2(B) || a2(B) ? K9(String(B)) : B);
|
2388
2388
|
}
|
2389
2389
|
const f1 = {
|
2390
2390
|
normalize: $2,
|
@@ -2419,7 +2419,7 @@ function N0(e = {}, c) {
|
|
2419
2419
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2420
2420
|
(B) => B[t0](...T),
|
2421
2421
|
J9,
|
2422
|
-
(B) =>
|
2422
|
+
(B) => R(B) || h2(B)
|
2423
2423
|
);
|
2424
2424
|
}
|
2425
2425
|
function u1(...T) {
|
@@ -2430,7 +2430,7 @@ function N0(e = {}, c) {
|
|
2430
2430
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2431
2431
|
(B) => B[a0](...T),
|
2432
2432
|
J9,
|
2433
|
-
(B) =>
|
2433
|
+
(B) => R(B) || h2(B)
|
2434
2434
|
);
|
2435
2435
|
}
|
2436
2436
|
function s1(T) {
|
@@ -2440,8 +2440,8 @@ function N0(e = {}, c) {
|
|
2440
2440
|
return C2(() => {
|
2441
2441
|
if (!T)
|
2442
2442
|
return !1;
|
2443
|
-
const r2 =
|
2444
|
-
return T1(j1) || J2(j1) ||
|
2443
|
+
const r2 = R(B) ? B : r.value, L2 = N(r2), j1 = C.messageResolver(L2, T);
|
2444
|
+
return T1(j1) || J2(j1) || R(j1);
|
2445
2445
|
}, () => [T], "translate exists", (r2) => Reflect.apply(r2.te, r2, [T, B]), tD, (r2) => a2(r2));
|
2446
2446
|
}
|
2447
2447
|
function z(T) {
|
@@ -2505,7 +2505,7 @@ function N0(e = {}, c) {
|
|
2505
2505
|
const b2 = {
|
2506
2506
|
id: en,
|
2507
2507
|
locale: P,
|
2508
|
-
fallbackLocale:
|
2508
|
+
fallbackLocale: j,
|
2509
2509
|
get inheritLocale() {
|
2510
2510
|
return i;
|
2511
2511
|
},
|
@@ -2578,7 +2578,7 @@ function N0(e = {}, c) {
|
|
2578
2578
|
}), b2;
|
2579
2579
|
}
|
2580
2580
|
function sD(e) {
|
2581
|
-
const c =
|
2581
|
+
const c = R(e.locale) ? e.locale : f3, a = R(e.fallbackLocale) || h2(e.fallbackLocale) || e2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, t = z2(e.missing) ? e.missing : void 0, n = a2(e.silentTranslationWarn) || w1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = a2(e.silentFallbackWarn) || w1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = a2(e.fallbackRoot) ? e.fallbackRoot : !0, r = !!e.formatFallbackMessages, l = e2(e.modifiers) ? e.modifiers : {}, o = e.pluralizationRules, f = z2(e.postTranslation) ? e.postTranslation : void 0, d = R(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, m = !!e.escapeParameterHtml, h = a2(e.sync) ? e.sync : !0;
|
2582
2582
|
process.env.NODE_ENV !== "production" && e.formatter && I2(Y2(N2.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && I2(Y2(N2.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
2583
2583
|
let b = e.messages;
|
2584
2584
|
if (e2(e.sharedMessages)) {
|
@@ -2736,10 +2736,10 @@ function s0(e = {}, c) {
|
|
2736
2736
|
t(...s) {
|
2737
2737
|
const [i, r, l] = s, o = {};
|
2738
2738
|
let f = null, d = null;
|
2739
|
-
if (!
|
2739
|
+
if (!R(i))
|
2740
2740
|
throw w2(l2.INVALID_ARGUMENT);
|
2741
2741
|
const m = i;
|
2742
|
-
return
|
2742
|
+
return R(r) ? o.locale = r : h2(r) ? f = r : e2(r) && (d = r), h2(l) ? f = l : e2(l) && (d = l), Reflect.apply(a.t, a, [
|
2743
2743
|
m,
|
2744
2744
|
f || d || {},
|
2745
2745
|
o
|
@@ -2752,10 +2752,10 @@ function s0(e = {}, c) {
|
|
2752
2752
|
tc(...s) {
|
2753
2753
|
const [i, r, l] = s, o = { plural: 1 };
|
2754
2754
|
let f = null, d = null;
|
2755
|
-
if (!
|
2755
|
+
if (!R(i))
|
2756
2756
|
throw w2(l2.INVALID_ARGUMENT);
|
2757
2757
|
const m = i;
|
2758
|
-
return
|
2758
|
+
return R(r) ? o.locale = r : S2(r) ? o.plural = r : h2(r) ? f = r : e2(r) && (d = r), R(l) ? o.locale = l : h2(l) ? f = l : e2(l) && (d = l), Reflect.apply(a.t, a, [
|
2759
2759
|
m,
|
2760
2760
|
f || d || {},
|
2761
2761
|
o
|
@@ -2882,28 +2882,28 @@ const rD = /* @__PURE__ */ Y({
|
|
2882
2882
|
});
|
2883
2883
|
return () => {
|
2884
2884
|
const s = Object.keys(a).filter((d) => d !== "_"), i = {};
|
2885
|
-
e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural =
|
2886
|
-
const r = iD(c, s), l = n[c0](e.keypath, r, i), o = D2({}, t), f =
|
2885
|
+
e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = R(e.plural) ? +e.plural : e.plural);
|
2886
|
+
const r = iD(c, s), l = n[c0](e.keypath, r, i), o = D2({}, t), f = R(e.tag) || f2(e.tag) ? e.tag : Os();
|
2887
2887
|
return H1(f, o, l);
|
2888
2888
|
};
|
2889
2889
|
}
|
2890
2890
|
}), j6 = rD;
|
2891
2891
|
function lD(e) {
|
2892
|
-
return h2(e) && !
|
2892
|
+
return h2(e) && !R(e[0]);
|
2893
2893
|
}
|
2894
2894
|
function Ps(e, c, a, t) {
|
2895
2895
|
const { slots: n, attrs: s } = c;
|
2896
2896
|
return () => {
|
2897
2897
|
const i = { part: !0 };
|
2898
2898
|
let r = {};
|
2899
|
-
e.locale && (i.locale = e.locale),
|
2899
|
+
e.locale && (i.locale = e.locale), R(e.format) ? i.key = e.format : f2(e.format) && (R(e.format.key) && (i.key = e.format.key), r = Object.keys(e.format).reduce((m, h) => a.includes(h) ? D2({}, m, { [h]: e.format[h] }) : m, {}));
|
2900
2900
|
const l = t(e.value, i, r);
|
2901
2901
|
let o = [i.key];
|
2902
2902
|
h2(l) ? o = l.map((m, h) => {
|
2903
2903
|
const b = n[m.type], S = b ? b({ [m.type]: m.value, index: h, parts: l }) : [m.value];
|
2904
2904
|
return lD(S) && (S[0].key = `${m.type}-${h}`), S;
|
2905
|
-
}) :
|
2906
|
-
const f = D2({}, s), d =
|
2905
|
+
}) : R(l) && (o = [l]);
|
2906
|
+
const f = D2({}, s), d = R(e.tag) || f2(e.tag) ? e.tag : Os();
|
2907
2907
|
return H1(d, f, o);
|
2908
2908
|
};
|
2909
2909
|
}
|
@@ -3003,7 +3003,7 @@ function mD(e) {
|
|
3003
3003
|
};
|
3004
3004
|
}
|
3005
3005
|
function nn(e) {
|
3006
|
-
if (
|
3006
|
+
if (R(e))
|
3007
3007
|
return { path: e };
|
3008
3008
|
if (e2(e)) {
|
3009
3009
|
if (!("path" in e))
|
@@ -3014,7 +3014,7 @@ function nn(e) {
|
|
3014
3014
|
}
|
3015
3015
|
function sn(e) {
|
3016
3016
|
const { path: c, locale: a, args: t, choice: n, plural: s } = e, i = {}, r = t || {};
|
3017
|
-
return
|
3017
|
+
return R(a) && (i.locale = a), S2(n) && (i.plural = n), S2(s) && (i.plural = s), [c, r, i];
|
3018
3018
|
}
|
3019
3019
|
function dD(e, c, ...a) {
|
3020
3020
|
const t = e2(a[0]) ? a[0] : {}, n = !!t.useI18nComponentName, s = a2(t.globalInstall) ? t.globalInstall : !0;
|
@@ -3294,7 +3294,7 @@ function yD(e, c) {
|
|
3294
3294
|
const a = Rs(e.nodeId, c);
|
3295
3295
|
if (a) {
|
3296
3296
|
const [t] = e.path;
|
3297
|
-
t === "locale" &&
|
3297
|
+
t === "locale" && R(e.state.value) ? a.locale.value = e.state.value : t === "fallbackLocale" && (R(e.state.value) || h2(e.state.value) || f2(e.state.value)) ? a.fallbackLocale.value = e.state.value : t === "inheritLocale" && a2(e.state.value) && (a.inheritLocale = e.state.value);
|
3298
3298
|
}
|
3299
3299
|
}
|
3300
3300
|
function ND(e, c, a) {
|
@@ -3511,12 +3511,12 @@ function OD(e, c, a, t = {}) {
|
|
3511
3511
|
const n = c === "local", s = iI(null);
|
3512
3512
|
if (n && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
3513
3513
|
throw w2(l2.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
3514
|
-
const i = a2(t.inheritLocale) ? t.inheritLocale : !
|
3514
|
+
const i = a2(t.inheritLocale) ? t.inheritLocale : !R(t.locale), r = J(
|
3515
3515
|
// prettier-ignore
|
3516
|
-
!n || i ? a.locale.value :
|
3516
|
+
!n || i ? a.locale.value : R(t.locale) ? t.locale : f3
|
3517
3517
|
), l = J(
|
3518
3518
|
// prettier-ignore
|
3519
|
-
!n || i ? a.fallbackLocale.value :
|
3519
|
+
!n || i ? a.fallbackLocale.value : R(t.fallbackLocale) || h2(t.fallbackLocale) || e2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
|
3520
3520
|
), o = J(R4(r.value, t)), f = J(e2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), d = J(e2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), m = n ? a.missingWarn : a2(t.missingWarn) || w1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : a2(t.fallbackWarn) || w1(t.fallbackWarn) ? t.fallbackWarn : !0, b = n ? a.fallbackRoot : a2(t.fallbackRoot) ? t.fallbackRoot : !0, S = !!t.fallbackFormat, A = z2(t.missing) ? t.missing : null, V = z2(t.postTranslation) ? t.postTranslation : null, g = n ? a.warnHtmlMessage : a2(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, y = !!t.escapeParameter, M = n ? a.modifiers : e2(t.modifiers) ? t.modifiers : {}, _ = t.pluralRules || n && a.pluralRules;
|
3521
3521
|
function L() {
|
3522
3522
|
return [
|
@@ -3537,7 +3537,7 @@ function OD(e, c, a, t = {}) {
|
|
3537
3537
|
set: (v) => {
|
3538
3538
|
s.value && (s.value.fallbackLocale.value = v), l.value = v;
|
3539
3539
|
}
|
3540
|
-
}), w = E(() => s.value ? s.value.messages.value : o.value), P = E(() => f.value),
|
3540
|
+
}), w = E(() => s.value ? s.value.messages.value : o.value), P = E(() => f.value), j = E(() => d.value);
|
3541
3541
|
function c2() {
|
3542
3542
|
return s.value ? s.value.getPostTranslationHandler() : V;
|
3543
3543
|
}
|
@@ -3606,7 +3606,7 @@ function OD(e, c, a, t = {}) {
|
|
3606
3606
|
fallbackLocale: k,
|
3607
3607
|
messages: w,
|
3608
3608
|
datetimeFormats: P,
|
3609
|
-
numberFormats:
|
3609
|
+
numberFormats: j,
|
3610
3610
|
get inheritLocale() {
|
3611
3611
|
return s.value ? s.value.inheritLocale : i;
|
3612
3612
|
},
|
@@ -5673,7 +5673,7 @@ function dn(e) {
|
|
5673
5673
|
h -= P - t.width, h *= l ? 1 : -1;
|
5674
5674
|
}
|
5675
5675
|
}
|
5676
|
-
var
|
5676
|
+
var j = Object.assign({
|
5677
5677
|
position: r
|
5678
5678
|
}, o && bO), c2 = f === !0 ? LO({
|
5679
5679
|
x: h,
|
@@ -5684,9 +5684,9 @@ function dn(e) {
|
|
5684
5684
|
};
|
5685
5685
|
if (h = c2.x, S = c2.y, l) {
|
5686
5686
|
var U;
|
5687
|
-
return Object.assign({},
|
5687
|
+
return Object.assign({}, j, (U = {}, U[M] = g ? "0" : "", U[y] = V ? "0" : "", U.transform = (_.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + S + "px)" : "translate3d(" + h + "px, " + S + "px, 0)", U));
|
5688
5688
|
}
|
5689
|
-
return Object.assign({},
|
5689
|
+
return Object.assign({}, j, (c = {}, c[M] = g ? S + "px" : "", c[y] = V ? h + "px" : "", c.transform = "", c));
|
5690
5690
|
}
|
5691
5691
|
function _O(e) {
|
5692
5692
|
var c = e.state, a = e.options, t = a.gpuAcceleration, n = t === void 0 ? !0 : t, s = a.adaptive, i = s === void 0 ? !0 : s, r = a.roundOffsets, l = r === void 0 ? !0 : r, o = {
|
@@ -5896,9 +5896,9 @@ function B3(e, c) {
|
|
5896
5896
|
bottom: w.bottom - _.bottom + V.bottom,
|
5897
5897
|
left: _.left - w.left + V.left,
|
5898
5898
|
right: w.right - _.right + V.right
|
5899
|
-
},
|
5900
|
-
if (m === L3 &&
|
5901
|
-
var c2 =
|
5899
|
+
}, j = e.modifiersData.offset;
|
5900
|
+
if (m === L3 && j) {
|
5901
|
+
var c2 = j[n];
|
5902
5902
|
Object.keys(P).forEach(function(U) {
|
5903
5903
|
var u2 = [t1, a1].indexOf(U) >= 0 ? 1 : -1, v2 = [q2, a1].indexOf(U) >= 0 ? "y" : "x";
|
5904
5904
|
P[U] += c2[v2] * u2;
|
@@ -5945,8 +5945,8 @@ function PO(e) {
|
|
5945
5945
|
allowedAutoPlacements: S
|
5946
5946
|
}) : $2);
|
5947
5947
|
}, []), _ = c.rects.reference, L = c.rects.popper, C = /* @__PURE__ */ new Map(), k = !0, w = M[0], P = 0; P < M.length; P++) {
|
5948
|
-
var
|
5949
|
-
placement:
|
5948
|
+
var j = M[P], c2 = v1(j), U = v3(j) === u3, u2 = [q2, a1].indexOf(c2) >= 0, v2 = u2 ? "width" : "height", s2 = B3(c, {
|
5949
|
+
placement: j,
|
5950
5950
|
boundary: f,
|
5951
5951
|
rootBoundary: d,
|
5952
5952
|
altBoundary: m,
|
@@ -5957,10 +5957,10 @@ function PO(e) {
|
|
5957
5957
|
if (s && g2.push(s2[c2] <= 0), r && g2.push(s2[p2] <= 0, s2[P2] <= 0), g2.every(function(G2) {
|
5958
5958
|
return G2;
|
5959
5959
|
})) {
|
5960
|
-
w =
|
5960
|
+
w = j, k = !1;
|
5961
5961
|
break;
|
5962
5962
|
}
|
5963
|
-
C.set(
|
5963
|
+
C.set(j, g2);
|
5964
5964
|
}
|
5965
5965
|
if (k)
|
5966
5966
|
for (var C2 = b ? 3 : 1, m2 = function($2) {
|
@@ -6088,7 +6088,7 @@ function YO(e) {
|
|
6088
6088
|
} : Object.assign({
|
6089
6089
|
mainAxis: 0,
|
6090
6090
|
altAxis: 0
|
6091
|
-
}, w),
|
6091
|
+
}, w), j = c.modifiersData.offset ? c.modifiersData.offset[c.placement] : null, c2 = {
|
6092
6092
|
x: 0,
|
6093
6093
|
y: 0
|
6094
6094
|
};
|
@@ -6097,11 +6097,11 @@ function YO(e) {
|
|
6097
6097
|
var U, u2 = M === "y" ? q2 : W2, v2 = M === "y" ? a1 : t1, s2 = M === "y" ? "height" : "width", p2 = L[M], P2 = p2 + A[u2], g2 = p2 - A[v2], C2 = h ? -k[s2] / 2 : 0, m2 = g === u3 ? C[s2] : k[s2], x2 = g === u3 ? -k[s2] : -C[s2], B2 = c.elements.arrow, G2 = h && B2 ? T0(B2) : {
|
6098
6098
|
width: 0,
|
6099
6099
|
height: 0
|
6100
|
-
}, $2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Gs(), o1 = $2[u2], f1 = $2[v2], F2 = A3(0, C[s2], G2[s2]), n1 = y ? C[s2] / 2 - C2 - F2 - o1 - P.mainAxis : m2 - F2 - o1 - P.mainAxis, u1 = y ? -C[s2] / 2 + C2 + F2 + f1 + P.mainAxis : x2 + F2 + f1 + P.mainAxis, s1 = c.elements.arrow && W3(c.elements.arrow), R1 = s1 ? M === "y" ? s1.clientTop || 0 : s1.clientLeft || 0 : 0, z = (U =
|
6100
|
+
}, $2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Gs(), o1 = $2[u2], f1 = $2[v2], F2 = A3(0, C[s2], G2[s2]), n1 = y ? C[s2] / 2 - C2 - F2 - o1 - P.mainAxis : m2 - F2 - o1 - P.mainAxis, u1 = y ? -C[s2] / 2 + C2 + F2 + f1 + P.mainAxis : x2 + F2 + f1 + P.mainAxis, s1 = c.elements.arrow && W3(c.elements.arrow), R1 = s1 ? M === "y" ? s1.clientTop || 0 : s1.clientLeft || 0 : 0, z = (U = j == null ? void 0 : j[M]) != null ? U : 0, v = p2 + n1 - z - R1, N = p2 + u1 - z, $ = A3(h ? k4(P2, v) : P2, p2, h ? G1(g2, N) : g2);
|
6101
6101
|
L[M] = $, c2[M] = $ - p2;
|
6102
6102
|
}
|
6103
6103
|
if (r) {
|
6104
|
-
var K, o2 = M === "x" ? q2 : W2, Z2 = M === "x" ? a1 : t1, E2 = L[_], e3 = _ === "y" ? "height" : "width", m4 = E2 + A[o2], d4 = E2 - A[Z2], b2 = [q2, W2].indexOf(V) !== -1, T = (K =
|
6104
|
+
var K, o2 = M === "x" ? q2 : W2, Z2 = M === "x" ? a1 : t1, E2 = L[_], e3 = _ === "y" ? "height" : "width", m4 = E2 + A[o2], d4 = E2 - A[Z2], b2 = [q2, W2].indexOf(V) !== -1, T = (K = j == null ? void 0 : j[_]) != null ? K : 0, B = b2 ? m4 : E2 - C[e3] - k[e3] - T + P.altAxis, r2 = b2 ? E2 + C[e3] + k[e3] - T - P.altAxis : d4, L2 = h && b2 ? zO(B, E2, r2) : A3(h ? B : m4, E2, h ? r2 : d4);
|
6105
6105
|
L[_] = L2, c2[_] = L2 - E2;
|
6106
6106
|
}
|
6107
6107
|
c.modifiersData[t] = c2;
|
@@ -6565,10 +6565,10 @@ const An = {
|
|
6565
6565
|
}), g = E(() => {
|
6566
6566
|
const { animationDuration: k } = a;
|
6567
6567
|
if (!Array.isArray(k)) {
|
6568
|
-
const
|
6568
|
+
const j = k || 300;
|
6569
6569
|
return {
|
6570
|
-
enter: `${
|
6571
|
-
leave: `${
|
6570
|
+
enter: `${j / 1e3}s`,
|
6571
|
+
leave: `${j / 1e3}s`
|
6572
6572
|
};
|
6573
6573
|
}
|
6574
6574
|
const [w, P] = k;
|
@@ -6621,23 +6621,23 @@ const An = {
|
|
6621
6621
|
name: V.value.inner,
|
6622
6622
|
"data-placement": o.value,
|
6623
6623
|
"data-name": V.value.inner,
|
6624
|
-
onBeforeEnter(
|
6625
|
-
L("before-enter",
|
6624
|
+
onBeforeEnter(j) {
|
6625
|
+
L("before-enter", j);
|
6626
6626
|
},
|
6627
|
-
onEnter(
|
6628
|
-
V.value.inner === "shift-out" && (
|
6627
|
+
onEnter(j) {
|
6628
|
+
V.value.inner === "shift-out" && (j.style.animation = `shift-out ${g.value.enter}`), L("enter", j);
|
6629
6629
|
},
|
6630
|
-
onAfterEnter(
|
6631
|
-
V.value.inner === "shift-out" && (
|
6630
|
+
onAfterEnter(j) {
|
6631
|
+
V.value.inner === "shift-out" && (j.style.transform = y.value), L("after-enter", j);
|
6632
6632
|
},
|
6633
|
-
onBeforeLeave(
|
6634
|
-
V.value.inner === "shift-out" && (
|
6633
|
+
onBeforeLeave(j) {
|
6634
|
+
V.value.inner === "shift-out" && (j.style.transform = y.value, j.style.animation = ""), L("before-leave", j);
|
6635
6635
|
},
|
6636
|
-
onLeave(
|
6637
|
-
V.value.inner === "shift-out" && (
|
6636
|
+
onLeave(j) {
|
6637
|
+
V.value.inner === "shift-out" && (j.style.transform = "translate(0, 0)"), L("leave", j);
|
6638
6638
|
},
|
6639
|
-
onAfterLeave(
|
6640
|
-
V.value.inner === "shift-out" && (
|
6639
|
+
onAfterLeave(j) {
|
6640
|
+
V.value.inner === "shift-out" && (j.style.transform = "translate(0, 0)"), L("after-leave", j);
|
6641
6641
|
}
|
6642
6642
|
},
|
6643
6643
|
{
|
@@ -21954,7 +21954,7 @@ const gU = ["id", "href", "aria-labelledby"], CU = ["aria-label"], bU = { class:
|
|
21954
21954
|
}), U;
|
21955
21955
|
}), M = E(
|
21956
21956
|
() => a.option.children && a.option.children.length > 0
|
21957
|
-
), _ = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : C.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), L = E(() => a.selections.length > 0 ?
|
21957
|
+
), _ = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : C.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), L = E(() => a.selections.length > 0 ? j(a.option.children) : 0), C = E(() => a.option.exclusive), k = E(() => {
|
21958
21958
|
const U = Array.from(Array(_.value).keys());
|
21959
21959
|
U.forEach((p2) => U[p2] = p2 + 1);
|
21960
21960
|
const u2 = U.indexOf(Math.ceil(_.value / 2)) + 1, v2 = U.slice(0, u2), s2 = U.slice(u2);
|
@@ -21964,13 +21964,13 @@ const gU = ["id", "href", "aria-labelledby"], CU = ["aria-label"], bU = { class:
|
|
21964
21964
|
reference: U,
|
21965
21965
|
amount: u2
|
21966
21966
|
});
|
21967
|
-
},
|
21967
|
+
}, j = (U) => {
|
21968
21968
|
if (!U)
|
21969
21969
|
return 0;
|
21970
21970
|
let u2 = U.filter(
|
21971
21971
|
(v2) => a.selections.map((s2) => s2.reference).includes(v2.reference)
|
21972
21972
|
).length;
|
21973
|
-
return U.reduce((v2, s2) => v2 +
|
21973
|
+
return U.reduce((v2, s2) => v2 + j(s2.children), u2);
|
21974
21974
|
}, c2 = (U) => {
|
21975
21975
|
r.value = !1, U === a.option.reference && (c("accordion-open"), pI(() => {
|
21976
21976
|
r.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
|
@@ -22100,7 +22100,7 @@ const gU = ["id", "href", "aria-labelledby"], CU = ["aria-label"], bU = { class:
|
|
22100
22100
|
}, null, 8, ["checked", "rank", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
22101
22101
|
]))), 128))
|
22102
22102
|
], 6)) : O("", !0),
|
22103
|
-
w.value && e.observerMode ? (p(), H("div", EU, [
|
22103
|
+
w.value && (e.observerMode || e.disabled) ? (p(), H("div", EU, [
|
22104
22104
|
I(v2, {
|
22105
22105
|
icon: "user",
|
22106
22106
|
class: "AVOption--realtime-results-icon"
|
@@ -22129,7 +22129,7 @@ const gU = ["id", "href", "aria-labelledby"], CU = ["aria-label"], bU = { class:
|
|
22129
22129
|
]),
|
22130
22130
|
_: 2
|
22131
22131
|
}, [
|
22132
|
-
w.value && !e.observerMode ? {
|
22132
|
+
!e.disabled && w.value && !e.observerMode ? {
|
22133
22133
|
name: "results",
|
22134
22134
|
fn: t2(() => [
|
22135
22135
|
u("div", BU, [
|
@@ -22149,7 +22149,7 @@ const gU = ["id", "href", "aria-labelledby"], CU = ["aria-label"], bU = { class:
|
|
22149
22149
|
};
|
22150
22150
|
}
|
22151
22151
|
});
|
22152
|
-
const qU = /* @__PURE__ */ Q(UU, [["__scopeId", "data-v-
|
22152
|
+
const qU = /* @__PURE__ */ Q(UU, [["__scopeId", "data-v-84425bc6"]]), WU = ["aria-label"], GU = {
|
22153
22153
|
class: "AVBlankOption--header",
|
22154
22154
|
"aria-hidden": "true"
|
22155
22155
|
}, YU = { class: "AVBlankOption--title" }, QU = { class: "AVBlankOption--checkbox" }, XU = {
|
@@ -22360,7 +22360,7 @@ const sq = /* @__PURE__ */ Q(nq, [["__scopeId", "data-v-aaa3d27d"]]), iq = ["ari
|
|
22360
22360
|
};
|
22361
22361
|
}
|
22362
22362
|
});
|
22363
|
-
const hq = /* @__PURE__ */ Q(pq, [["__scopeId", "data-v-1fcf8d09"]]), Vq = (e) => (O1("data-v-
|
22363
|
+
const hq = /* @__PURE__ */ Q(pq, [["__scopeId", "data-v-1fcf8d09"]]), Vq = (e) => (O1("data-v-fefc6948"), e = e(), P1(), e), zq = { class: "AVSubmissionHelper" }, Hq = { key: 0 }, Mq = ["textContent"], gq = /* @__PURE__ */ Vq(() => /* @__PURE__ */ u("hr", { class: "AVSubmissionHelper--separator" }, null, -1)), Cq = { key: 1 }, bq = { class: "AVSubmissionHelper--help" }, Lq = { key: 0 }, _q = { key: 1 }, yq = {
|
22364
22364
|
key: 2,
|
22365
22365
|
class: "AVSubmissionHelper--count"
|
22366
22366
|
}, Nq = { key: 2 }, Aq = /* @__PURE__ */ Y({
|
@@ -22439,7 +22439,7 @@ const hq = /* @__PURE__ */ Q(pq, [["__scopeId", "data-v-1fcf8d09"]]), Vq = (e) =
|
|
22439
22439
|
]));
|
22440
22440
|
}
|
22441
22441
|
});
|
22442
|
-
const xq = /* @__PURE__ */ Q(Aq, [["__scopeId", "data-v-
|
22442
|
+
const xq = /* @__PURE__ */ Q(Aq, [["__scopeId", "data-v-fefc6948"]]);
|
22443
22443
|
function Sq(e, c, a) {
|
22444
22444
|
if (typeof a != "function")
|
22445
22445
|
throw new Error("search_by must be a function that returns a string");
|
@@ -22521,7 +22521,7 @@ const kq = ["aria-label"], wq = { class: "AVSearchBallot--form-group" }, Tq = ["
|
|
22521
22521
|
u("div", Dq, [
|
22522
22522
|
(p(!0), H(i2, null, y2(r.value, (m) => (p(), H("div", {
|
22523
22523
|
key: m,
|
22524
|
-
"aria-label": m.title[
|
22524
|
+
"aria-label": m.title[n.value]
|
22525
22525
|
}, [
|
22526
22526
|
u("div", {
|
22527
22527
|
id: `search_result_${m.reference}`,
|
@@ -22532,7 +22532,7 @@ const kq = ["aria-label"], wq = { class: "AVSearchBallot--form-group" }, Tq = ["
|
|
22532
22532
|
}, [
|
22533
22533
|
u("span", {
|
22534
22534
|
class: "AVSearchBallot--link",
|
22535
|
-
textContent: x(m.title[
|
22535
|
+
textContent: x(m.title[n.value])
|
22536
22536
|
}, null, 8, Bq)
|
22537
22537
|
], 8, Pq)
|
22538
22538
|
], 8, Oq))), 128)),
|
@@ -22545,7 +22545,7 @@ const kq = ["aria-label"], wq = { class: "AVSearchBallot--form-group" }, Tq = ["
|
|
22545
22545
|
], 40, kq));
|
22546
22546
|
}
|
22547
22547
|
});
|
22548
|
-
const jq = /* @__PURE__ */ Q(Rq, [["__scopeId", "data-v-
|
22548
|
+
const jq = /* @__PURE__ */ Q(Rq, [["__scopeId", "data-v-42954ae1"]]), $q = { class: "AVSplitWeightHelper" }, Uq = { class: "AVSplitWeightHelper--box" }, qq = { class: "AVSplitWeightHelper--box" }, Wq = { class: "AVSplitWeightHelper--box" }, Gq = /* @__PURE__ */ Y({
|
22549
22549
|
__name: "AVSplitWeightHelper",
|
22550
22550
|
props: {
|
22551
22551
|
assignedWeight: {
|
@@ -22929,7 +22929,7 @@ const NW = (e) => (O1("data-v-9654e3b4"), e = e(), P1(), e), AW = ["aria-label",
|
|
22929
22929
|
});
|
22930
22930
|
}, M = (_) => _.flatMap((L) => L.children ? [L, ...M(L.children)] : [L]);
|
22931
22931
|
return (_, L) => {
|
22932
|
-
const C = D("AVSearchBallot"), k = D("AVWriteInOption"), w = D("AVOption"), P = D("AVBlankOption"),
|
22932
|
+
const C = D("AVSearchBallot"), k = D("AVWriteInOption"), w = D("AVOption"), P = D("AVBlankOption"), j = D("AVSubmissionHelper");
|
22933
22933
|
return p(), H("div", {
|
22934
22934
|
class: G({
|
22935
22935
|
AVBallot: !0,
|
@@ -22999,7 +22999,7 @@ const NW = (e) => (O1("data-v-9654e3b4"), e = e(), P1(), e), AW = ["aria-label",
|
|
22999
22999
|
onToggleBlank: g
|
23000
23000
|
}, null, 8, ["checked", "error", "disabled", "observerMode", "accentColor", "partial-results"])) : O("", !0)
|
23001
23001
|
], 10, kW),
|
23002
|
-
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), X(
|
23002
|
+
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), X(j, {
|
23003
23003
|
key: 2,
|
23004
23004
|
id: `ballot_${e.contest.reference}`,
|
23005
23005
|
"chosen-count": f.value.length,
|
@@ -23310,7 +23310,7 @@ const eG = {
|
|
23310
23310
|
const o = E(() => a.contestSelection.piles), f = E(
|
23311
23311
|
() => {
|
23312
23312
|
var P;
|
23313
|
-
return (P = o.value) == null ? void 0 : P.reduce((
|
23313
|
+
return (P = o.value) == null ? void 0 : P.reduce((j, c2) => j - c2.multiplier, a.weight);
|
23314
23314
|
}
|
23315
23315
|
), d = E(
|
23316
23316
|
() => new aI(a.contest)
|
@@ -23324,13 +23324,13 @@ const eG = {
|
|
23324
23324
|
)), b = E(
|
23325
23325
|
() => {
|
23326
23326
|
var P;
|
23327
|
-
return (P = o.value) == null ? void 0 : P.reduce((
|
23327
|
+
return (P = o.value) == null ? void 0 : P.reduce((j, c2) => j + c2.multiplier, 0);
|
23328
23328
|
}
|
23329
23329
|
), S = E(() => {
|
23330
23330
|
var P;
|
23331
23331
|
return (P = r.value) == null ? void 0 : P.multiplier;
|
23332
23332
|
}), A = E(
|
23333
|
-
() => o.value.filter((P,
|
23333
|
+
() => o.value.filter((P, j) => j !== i.value).reduce((P, j) => P - j.multiplier, a.weight)
|
23334
23334
|
), V = E(
|
23335
23335
|
() => a.contest.markingType.maxPiles !== 1 && a.weight > 1
|
23336
23336
|
), g = E(() => i.value !== null), y = (P) => d.value.isComplete(P), M = (P) => d.value.validate(P).length > 0, _ = () => {
|
@@ -23360,20 +23360,16 @@ const eG = {
|
|
23360
23360
|
}, w = (P) => {
|
23361
23361
|
r.value = { ...o.value[P] }, i.value = P, l.value = "ballot";
|
23362
23362
|
};
|
23363
|
-
return n2(
|
23364
|
-
h,
|
23365
|
-
(P, R) => c("update:complete", R)
|
23366
|
-
), n2(S, () => {
|
23363
|
+
return n2(h, (P) => c("update:complete", P)), n2(S, () => {
|
23367
23364
|
r.value && (r.value.multiplier = Math.max(
|
23368
23365
|
0,
|
23369
23366
|
Math.min(S.value, A.value)
|
23370
23367
|
));
|
23371
|
-
}), n2(r, (P
|
23372
|
-
|
23373
|
-
|
23374
|
-
), V2(() => {
|
23368
|
+
}), n2(r, (P) => {
|
23369
|
+
c("update:activePile", P);
|
23370
|
+
}), n2(l, (P) => c("update:activeState", P)), V2(() => {
|
23375
23371
|
c("update:activePile", r.value), c("update:activeState", l.value), V.value || _();
|
23376
|
-
}), (P,
|
23372
|
+
}), (P, j) => {
|
23377
23373
|
var p2;
|
23378
23374
|
const c2 = D("AVSplitWizardHeader"), U = D("AVBallot"), u2 = D("AVPileSummary"), v2 = D("AVSplitWeightHelper"), s2 = D("AVIcon");
|
23379
23375
|
return p(), H(i2, null, [
|
@@ -23412,7 +23408,7 @@ const eG = {
|
|
23412
23408
|
o.value.length > 0 ? (p(), H("button", {
|
23413
23409
|
key: "back",
|
23414
23410
|
class: "AVSplitHelper--btn-secondary",
|
23415
|
-
onClick:
|
23411
|
+
onClick: j[0] || (j[0] = (m2) => l.value = "overview")
|
23416
23412
|
}, x(F(n)("js.components.AVSplitHelper.ballot.back_button")), 1)) : O("", !0)
|
23417
23413
|
]),
|
23418
23414
|
u("div", nG, [
|
@@ -23420,7 +23416,7 @@ const eG = {
|
|
23420
23416
|
key: "assign",
|
23421
23417
|
class: "AVSplitHelper--btn-primary",
|
23422
23418
|
disabled: !y(r.value) || M(r.value),
|
23423
|
-
onClick:
|
23419
|
+
onClick: j[1] || (j[1] = (m2) => l.value = "assign")
|
23424
23420
|
}, x(F(n)("js.components.AVSplitHelper.ballot.confirm_button")), 9, sG)
|
23425
23421
|
])
|
23426
23422
|
])
|
@@ -23435,7 +23431,7 @@ const eG = {
|
|
23435
23431
|
"active-state": l.value,
|
23436
23432
|
"is-editing": g.value,
|
23437
23433
|
"total-piles": e.contestSelection.piles.length,
|
23438
|
-
onEditCurrentSelection:
|
23434
|
+
onEditCurrentSelection: j[2] || (j[2] = (m2) => l.value = "ballot")
|
23439
23435
|
}, null, 8, ["selection-pile", "contest", "pile-index", "active-state", "is-editing", "total-piles"]),
|
23440
23436
|
u("label", {
|
23441
23437
|
for: `${e.contest.reference}-ballot-selector`,
|
@@ -23445,7 +23441,7 @@ const eG = {
|
|
23445
23441
|
) : F(n)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, oG),
|
23446
23442
|
k1(u("input", {
|
23447
23443
|
id: `${e.contest.reference}-ballot-selector`,
|
23448
|
-
"onUpdate:modelValue":
|
23444
|
+
"onUpdate:modelValue": j[3] || (j[3] = (m2) => r.value.multiplier = m2),
|
23449
23445
|
class: "AVSplitHelper--assign-input",
|
23450
23446
|
type: "number",
|
23451
23447
|
max: A.value
|
@@ -23463,7 +23459,7 @@ const eG = {
|
|
23463
23459
|
u("button", {
|
23464
23460
|
key: "ballot",
|
23465
23461
|
class: "AVSplitHelper--btn-secondary",
|
23466
|
-
onClick:
|
23462
|
+
onClick: j[4] || (j[4] = (m2) => l.value = "ballot")
|
23467
23463
|
}, x(F(n)("js.components.AVSplitHelper.assign.back_button")), 1)
|
23468
23464
|
]),
|
23469
23465
|
u("div", dG, [
|
@@ -23471,7 +23467,7 @@ const eG = {
|
|
23471
23467
|
key: "confirm",
|
23472
23468
|
class: "AVSplitHelper--btn-primary",
|
23473
23469
|
disabled: ((g2 = r.value) == null ? void 0 : g2.multiplier) < 1 || ((C2 = r.value) == null ? void 0 : C2.multiplier) > A.value,
|
23474
|
-
onClick:
|
23470
|
+
onClick: j[5] || (j[5] = (m2) => _())
|
23475
23471
|
}, x(F(n)("js.components.AVSplitHelper.assign.confirm_button")), 9, vG)
|
23476
23472
|
])
|
23477
23473
|
])
|
@@ -23529,7 +23525,7 @@ const eG = {
|
|
23529
23525
|
};
|
23530
23526
|
}
|
23531
23527
|
});
|
23532
|
-
const CG = /* @__PURE__ */ Q(gG, [["__scopeId", "data-v-
|
23528
|
+
const CG = /* @__PURE__ */ Q(gG, [["__scopeId", "data-v-4dfc8aec"]]);
|
23533
23529
|
var bG = {}, LG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), _G = { class: "flex items-center" }, yG = { class: "flex flex-col items-center justify-center p-3 w-full" }, NG = /* @__PURE__ */ u("h2", { class: "mb-4" }, "Election Name", -1), AG = /* @__PURE__ */ u("div", null, [
|
23534
23530
|
/* @__PURE__ */ u("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. "),
|
23535
23531
|
/* @__PURE__ */ u("br"),
|