@assemblyvoting/ui-library 3.1.2-alpha.1 → 3.1.2-alpha.2
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
@@ -181,14 +181,14 @@ const TI = /<\/?[\w\s="/.':;#-\/]+>/, II = (e) => TI.test(e), H1 = " ", EI = "\r
|
|
181
181
|
function PI(e) {
|
182
182
|
const c = e;
|
183
183
|
let a = 0, t = 1, n = 1, i = 0;
|
184
|
-
const s = (C) => c[C] === EI && c[C + 1] === $2, r = (C) => c[C] === $2, l = (C) => c[C] === OI, f = (C) => c[C] === DI, o = (C) => s(C) || r(C) || l(C) || f(C), m = () => a, d = () => t, h = () => n,
|
185
|
-
function
|
184
|
+
const s = (C) => c[C] === EI && c[C + 1] === $2, r = (C) => c[C] === $2, l = (C) => c[C] === OI, f = (C) => c[C] === DI, o = (C) => s(C) || r(C) || l(C) || f(C), m = () => a, d = () => t, h = () => n, b = () => i, L = (C) => s(C) || l(C) || f(C) ? $2 : c[C], N = () => L(a), V = () => L(a + i);
|
185
|
+
function g() {
|
186
186
|
return i = 0, o(a) && (t++, n = 0), s(a) && a++, a++, n++, c[a];
|
187
187
|
}
|
188
|
-
function
|
188
|
+
function _() {
|
189
189
|
return s(a + i) && i++, i++, c[a + i];
|
190
190
|
}
|
191
|
-
function
|
191
|
+
function M() {
|
192
192
|
a = 0, t = 1, n = 1, i = 0;
|
193
193
|
}
|
194
194
|
function x(C = 0) {
|
@@ -197,20 +197,20 @@ function PI(e) {
|
|
197
197
|
function w() {
|
198
198
|
const C = a + i;
|
199
199
|
for (; C !== a; )
|
200
|
-
|
200
|
+
g();
|
201
201
|
i = 0;
|
202
202
|
}
|
203
203
|
return {
|
204
204
|
index: m,
|
205
205
|
line: d,
|
206
206
|
column: h,
|
207
|
-
peekOffset:
|
208
|
-
charAt:
|
209
|
-
currentChar:
|
207
|
+
peekOffset: b,
|
208
|
+
charAt: L,
|
209
|
+
currentChar: N,
|
210
210
|
currentPeek: V,
|
211
|
-
next:
|
212
|
-
peek:
|
213
|
-
reset:
|
211
|
+
next: g,
|
212
|
+
peek: _,
|
213
|
+
reset: M,
|
214
214
|
resetPeek: x,
|
215
215
|
skipToPeek: w
|
216
216
|
};
|
@@ -250,17 +250,17 @@ function FI(e, c = {}) {
|
|
250
250
|
14
|
251
251
|
/* TokenTypes.EOF */
|
252
252
|
);
|
253
|
-
function
|
253
|
+
function b(z, v) {
|
254
254
|
return z.currentChar() === v ? (z.next(), v) : (m(e2.EXPECTED_TOKEN, i(), 0, v), "");
|
255
255
|
}
|
256
|
-
function
|
256
|
+
function L(z) {
|
257
257
|
let v = "";
|
258
258
|
for (; z.currentPeek() === H1 || z.currentPeek() === $2; )
|
259
259
|
v += z.currentPeek(), z.peek();
|
260
260
|
return v;
|
261
261
|
}
|
262
|
-
function
|
263
|
-
const v =
|
262
|
+
function N(z) {
|
263
|
+
const v = L(z);
|
264
264
|
return z.skipToPeek(), v;
|
265
265
|
}
|
266
266
|
function V(z) {
|
@@ -271,33 +271,33 @@ function FI(e, c = {}) {
|
|
271
271
|
v >= 65 && v <= 90 || // A-Z
|
272
272
|
v === 95;
|
273
273
|
}
|
274
|
-
function
|
274
|
+
function g(z) {
|
275
275
|
if (z === N1)
|
276
276
|
return !1;
|
277
277
|
const v = z.charCodeAt(0);
|
278
278
|
return v >= 48 && v <= 57;
|
279
279
|
}
|
280
|
-
function
|
280
|
+
function _(z, v) {
|
281
281
|
const { currentType: S } = v;
|
282
282
|
if (S !== 2)
|
283
283
|
return !1;
|
284
|
-
|
284
|
+
L(z);
|
285
285
|
const U = V(z.currentPeek());
|
286
286
|
return z.resetPeek(), U;
|
287
287
|
}
|
288
|
-
function
|
288
|
+
function M(z, v) {
|
289
289
|
const { currentType: S } = v;
|
290
290
|
if (S !== 2)
|
291
291
|
return !1;
|
292
|
-
|
293
|
-
const U = z.currentPeek() === "-" ? z.peek() : z.currentPeek(), J =
|
292
|
+
L(z);
|
293
|
+
const U = z.currentPeek() === "-" ? z.peek() : z.currentPeek(), J = g(U);
|
294
294
|
return z.resetPeek(), J;
|
295
295
|
}
|
296
296
|
function x(z, v) {
|
297
297
|
const { currentType: S } = v;
|
298
298
|
if (S !== 2)
|
299
299
|
return !1;
|
300
|
-
|
300
|
+
L(z);
|
301
301
|
const U = z.currentPeek() === S9;
|
302
302
|
return z.resetPeek(), U;
|
303
303
|
}
|
@@ -305,7 +305,7 @@ function FI(e, c = {}) {
|
|
305
305
|
const { currentType: S } = v;
|
306
306
|
if (S !== 8)
|
307
307
|
return !1;
|
308
|
-
|
308
|
+
L(z);
|
309
309
|
const U = z.currentPeek() === ".";
|
310
310
|
return z.resetPeek(), U;
|
311
311
|
}
|
@@ -313,19 +313,19 @@ function FI(e, c = {}) {
|
|
313
313
|
const { currentType: S } = v;
|
314
314
|
if (S !== 9)
|
315
315
|
return !1;
|
316
|
-
|
316
|
+
L(z);
|
317
317
|
const U = V(z.currentPeek());
|
318
318
|
return z.resetPeek(), U;
|
319
319
|
}
|
320
|
-
function
|
320
|
+
function y(z, v) {
|
321
321
|
const { currentType: S } = v;
|
322
322
|
if (!(S === 8 || S === 12))
|
323
323
|
return !1;
|
324
|
-
|
324
|
+
L(z);
|
325
325
|
const U = z.currentPeek() === ":";
|
326
326
|
return z.resetPeek(), U;
|
327
327
|
}
|
328
|
-
function
|
328
|
+
function A(z, v) {
|
329
329
|
const { currentType: S } = v;
|
330
330
|
if (S !== 10)
|
331
331
|
return !1;
|
@@ -336,12 +336,12 @@ function FI(e, c = {}) {
|
|
336
336
|
return z.resetPeek(), J;
|
337
337
|
}
|
338
338
|
function F(z) {
|
339
|
-
|
339
|
+
L(z);
|
340
340
|
const v = z.currentPeek() === "|";
|
341
341
|
return z.resetPeek(), v;
|
342
342
|
}
|
343
343
|
function q(z) {
|
344
|
-
const v =
|
344
|
+
const v = L(z), S = z.currentPeek() === "%" && z.peek() === "{";
|
345
345
|
return z.resetPeek(), {
|
346
346
|
isModulo: S,
|
347
347
|
hasSpace: v.length > 0
|
@@ -389,7 +389,7 @@ function FI(e, c = {}) {
|
|
389
389
|
return S;
|
390
390
|
}
|
391
391
|
function F2(z) {
|
392
|
-
|
392
|
+
N(z);
|
393
393
|
const v = z.currentChar();
|
394
394
|
return v !== "%" && m(e2.EXPECTED_TOKEN, i(), 0, v), z.next(), "%";
|
395
395
|
}
|
@@ -418,25 +418,25 @@ function FI(e, c = {}) {
|
|
418
418
|
return v;
|
419
419
|
}
|
420
420
|
function v2(z) {
|
421
|
-
|
421
|
+
N(z);
|
422
422
|
let v = "", S = "";
|
423
423
|
for (; v = r2(z); )
|
424
424
|
S += v;
|
425
425
|
return z.currentChar() === N1 && m(e2.UNTERMINATED_CLOSING_BRACE, i(), 0), S;
|
426
426
|
}
|
427
427
|
function A2(z) {
|
428
|
-
|
428
|
+
N(z);
|
429
429
|
let v = "";
|
430
430
|
return z.currentChar() === "-" ? (z.next(), v += `-${h2(z)}`) : v += h2(z), z.currentChar() === N1 && m(e2.UNTERMINATED_CLOSING_BRACE, i(), 0), v;
|
431
431
|
}
|
432
432
|
function k2(z) {
|
433
|
-
|
433
|
+
N(z), b(z, "'");
|
434
434
|
let v = "", S = "";
|
435
435
|
const U = (u2) => u2 !== S9 && u2 !== $2;
|
436
436
|
for (; v = j(z, U); )
|
437
437
|
v === "\\" ? S += C2(z) : S += v;
|
438
438
|
const J = z.currentChar();
|
439
|
-
return J === $2 || J === N1 ? (m(e2.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), J === $2 && (z.next(),
|
439
|
+
return J === $2 || J === N1 ? (m(e2.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), J === $2 && (z.next(), b(z, "'")), S) : (b(z, "'"), S);
|
440
440
|
}
|
441
441
|
function C2(z) {
|
442
442
|
const v = z.currentChar();
|
@@ -453,7 +453,7 @@ function FI(e, c = {}) {
|
|
453
453
|
}
|
454
454
|
}
|
455
455
|
function I2(z, v, S) {
|
456
|
-
|
456
|
+
b(z, v);
|
457
457
|
let U = "";
|
458
458
|
for (let J = 0; J < S; J++) {
|
459
459
|
const u2 = a2(z);
|
@@ -466,7 +466,7 @@ function FI(e, c = {}) {
|
|
466
466
|
return `\\${v}${U}`;
|
467
467
|
}
|
468
468
|
function j2(z) {
|
469
|
-
|
469
|
+
N(z);
|
470
470
|
let v = "", S = "";
|
471
471
|
const U = (J) => J !== "{" && J !== "}" && J !== H1 && J !== $2;
|
472
472
|
for (; v = j(z, U); )
|
@@ -487,13 +487,13 @@ function FI(e, c = {}) {
|
|
487
487
|
return v(!1, "");
|
488
488
|
}
|
489
489
|
function R2(z) {
|
490
|
-
|
491
|
-
const v =
|
490
|
+
N(z);
|
491
|
+
const v = b(
|
492
492
|
z,
|
493
493
|
"|"
|
494
494
|
/* TokenChars.Pipe */
|
495
495
|
);
|
496
|
-
return
|
496
|
+
return N(z), v;
|
497
497
|
}
|
498
498
|
function i1(z, v) {
|
499
499
|
let S = null;
|
@@ -504,14 +504,14 @@ function FI(e, c = {}) {
|
|
504
504
|
2,
|
505
505
|
"{"
|
506
506
|
/* TokenChars.BraceLeft */
|
507
|
-
),
|
507
|
+
), N(z), v.braceNest++, S;
|
508
508
|
case "}":
|
509
509
|
return v.braceNest > 0 && v.currentType === 2 && m(e2.EMPTY_PLACEHOLDER, i(), 0), z.next(), S = d(
|
510
510
|
v,
|
511
511
|
3,
|
512
512
|
"}"
|
513
513
|
/* TokenChars.BraceRight */
|
514
|
-
), v.braceNest--, v.braceNest > 0 &&
|
514
|
+
), v.braceNest--, v.braceNest > 0 && N(z), v.inLinked && v.braceNest === 0 && (v.inLinked = !1), S;
|
515
515
|
case "@":
|
516
516
|
return v.braceNest > 0 && m(e2.UNTERMINATED_CLOSING_BRACE, i(), 0), S = u1(z, v) || h(v), v.braceNest = 0, S;
|
517
517
|
default:
|
@@ -520,14 +520,14 @@ function FI(e, c = {}) {
|
|
520
520
|
return v.braceNest > 0 && m(e2.UNTERMINATED_CLOSING_BRACE, i(), 0), S = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, S;
|
521
521
|
if (v.braceNest > 0 && (v.currentType === 5 || v.currentType === 6 || v.currentType === 7))
|
522
522
|
return m(e2.UNTERMINATED_CLOSING_BRACE, i(), 0), v.braceNest = 0, s1(z, v);
|
523
|
-
if (J =
|
524
|
-
return S = d(v, 5, v2(z)),
|
525
|
-
if (u2 =
|
526
|
-
return S = d(v, 6, A2(z)),
|
523
|
+
if (J = _(z, v))
|
524
|
+
return S = d(v, 5, v2(z)), N(z), S;
|
525
|
+
if (u2 = M(z, v))
|
526
|
+
return S = d(v, 6, A2(z)), N(z), S;
|
527
527
|
if (J2 = x(z, v))
|
528
|
-
return S = d(v, 7, k2(z)),
|
528
|
+
return S = d(v, 7, k2(z)), N(z), S;
|
529
529
|
if (!J && !u2 && !J2)
|
530
|
-
return S = d(v, 13, j2(z)), m(e2.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, S.value),
|
530
|
+
return S = d(v, 13, j2(z)), m(e2.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, S.value), N(z), S;
|
531
531
|
break;
|
532
532
|
}
|
533
533
|
return S;
|
@@ -545,21 +545,21 @@ function FI(e, c = {}) {
|
|
545
545
|
/* TokenChars.LinkedAlias */
|
546
546
|
), v.inLinked = !0, U;
|
547
547
|
case ".":
|
548
|
-
return
|
548
|
+
return N(z), z.next(), d(
|
549
549
|
v,
|
550
550
|
9,
|
551
551
|
"."
|
552
552
|
/* TokenChars.LinkedDot */
|
553
553
|
);
|
554
554
|
case ":":
|
555
|
-
return
|
555
|
+
return N(z), z.next(), d(
|
556
556
|
v,
|
557
557
|
10,
|
558
558
|
":"
|
559
559
|
/* TokenChars.LinkedDelimiter */
|
560
560
|
);
|
561
561
|
default:
|
562
|
-
return F(z) ? (U = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, U) : w(z, v) ||
|
562
|
+
return F(z) ? (U = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, U) : w(z, v) || y(z, v) ? (N(z), u1(z, v)) : C(z, v) ? (N(z), d(v, 12, o1(z))) : A(z, v) ? (N(z), J === "{" ? i1(z, v) || U : d(v, 11, f1(z))) : (S === 8 && m(e2.INVALID_LINKED_FORMAT, i(), 0), v.braceNest = 0, v.inLinked = !1, s1(z, v));
|
563
563
|
}
|
564
564
|
}
|
565
565
|
function s1(z, v) {
|
@@ -625,132 +625,132 @@ function UI(e, c, a) {
|
|
625
625
|
}
|
626
626
|
function qI(e = {}) {
|
627
627
|
const c = e.location !== !1, { onError: a } = e;
|
628
|
-
function t(V,
|
628
|
+
function t(V, g, _, M, ...x) {
|
629
629
|
const w = V.currentPosition();
|
630
|
-
if (w.offset +=
|
631
|
-
const C = c ? Q6(
|
630
|
+
if (w.offset += M, w.column += M, a) {
|
631
|
+
const C = c ? Q6(_, w) : null, y = h3(g, C, {
|
632
632
|
domain: RI,
|
633
633
|
args: x
|
634
634
|
});
|
635
|
-
a(
|
635
|
+
a(y);
|
636
636
|
}
|
637
637
|
}
|
638
|
-
function n(V,
|
639
|
-
const
|
640
|
-
return c && (
|
638
|
+
function n(V, g, _) {
|
639
|
+
const M = { type: V };
|
640
|
+
return c && (M.start = g, M.end = g, M.loc = { start: _, end: _ }), M;
|
641
641
|
}
|
642
|
-
function i(V,
|
643
|
-
|
642
|
+
function i(V, g, _, M) {
|
643
|
+
M && (V.type = M), c && (V.end = g, V.loc && (V.loc.end = _));
|
644
644
|
}
|
645
|
-
function s(V,
|
646
|
-
const
|
647
|
-
return
|
645
|
+
function s(V, g) {
|
646
|
+
const _ = V.context(), M = n(3, _.offset, _.startLoc);
|
647
|
+
return M.value = g, i(M, V.currentOffset(), V.currentPosition()), M;
|
648
648
|
}
|
649
|
-
function r(V,
|
650
|
-
const
|
651
|
-
return w.index = parseInt(
|
649
|
+
function r(V, g) {
|
650
|
+
const _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(5, M, x);
|
651
|
+
return w.index = parseInt(g, 10), V.nextToken(), i(w, V.currentOffset(), V.currentPosition()), w;
|
652
652
|
}
|
653
|
-
function l(V,
|
654
|
-
const
|
655
|
-
return w.key =
|
653
|
+
function l(V, g) {
|
654
|
+
const _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(4, M, x);
|
655
|
+
return w.key = g, V.nextToken(), i(w, V.currentOffset(), V.currentPosition()), w;
|
656
656
|
}
|
657
|
-
function f(V,
|
658
|
-
const
|
659
|
-
return w.value =
|
657
|
+
function f(V, g) {
|
658
|
+
const _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(9, M, x);
|
659
|
+
return w.value = g.replace($I, UI), V.nextToken(), i(w, V.currentOffset(), V.currentPosition()), w;
|
660
660
|
}
|
661
661
|
function o(V) {
|
662
|
-
const
|
663
|
-
return
|
664
|
-
nextConsumeToken:
|
662
|
+
const g = V.nextToken(), _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(8, M, x);
|
663
|
+
return g.type !== 12 ? (t(V, e2.UNEXPECTED_EMPTY_LINKED_MODIFIER, _.lastStartLoc, 0), w.value = "", i(w, M, x), {
|
664
|
+
nextConsumeToken: g,
|
665
665
|
node: w
|
666
|
-
}) : (
|
666
|
+
}) : (g.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, m1(g)), w.value = g.value || "", i(w, V.currentOffset(), V.currentPosition()), {
|
667
667
|
node: w
|
668
668
|
});
|
669
669
|
}
|
670
|
-
function m(V,
|
671
|
-
const
|
672
|
-
return
|
670
|
+
function m(V, g) {
|
671
|
+
const _ = V.context(), M = n(7, _.offset, _.startLoc);
|
672
|
+
return M.value = g, i(M, V.currentOffset(), V.currentPosition()), M;
|
673
673
|
}
|
674
674
|
function d(V) {
|
675
|
-
const
|
676
|
-
let
|
677
|
-
if (
|
675
|
+
const g = V.context(), _ = n(6, g.offset, g.startLoc);
|
676
|
+
let M = V.nextToken();
|
677
|
+
if (M.type === 9) {
|
678
678
|
const x = o(V);
|
679
|
-
|
679
|
+
_.modifier = x.node, M = x.nextConsumeToken || V.nextToken();
|
680
680
|
}
|
681
|
-
switch (
|
681
|
+
switch (M.type !== 10 && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), M = V.nextToken(), M.type === 2 && (M = V.nextToken()), M.type) {
|
682
682
|
case 11:
|
683
|
-
|
683
|
+
M.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = m(V, M.value || "");
|
684
684
|
break;
|
685
685
|
case 5:
|
686
|
-
|
686
|
+
M.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = l(V, M.value || "");
|
687
687
|
break;
|
688
688
|
case 6:
|
689
|
-
|
689
|
+
M.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = r(V, M.value || "");
|
690
690
|
break;
|
691
691
|
case 7:
|
692
|
-
|
692
|
+
M.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = f(V, M.value || "");
|
693
693
|
break;
|
694
694
|
default:
|
695
|
-
t(V, e2.UNEXPECTED_EMPTY_LINKED_KEY,
|
695
|
+
t(V, e2.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
696
696
|
const x = V.context(), w = n(7, x.offset, x.startLoc);
|
697
|
-
return w.value = "", i(w, x.offset, x.startLoc),
|
698
|
-
nextConsumeToken:
|
699
|
-
node:
|
697
|
+
return w.value = "", i(w, x.offset, x.startLoc), _.key = w, i(_, x.offset, x.startLoc), {
|
698
|
+
nextConsumeToken: M,
|
699
|
+
node: _
|
700
700
|
};
|
701
701
|
}
|
702
|
-
return i(
|
703
|
-
node:
|
702
|
+
return i(_, V.currentOffset(), V.currentPosition()), {
|
703
|
+
node: _
|
704
704
|
};
|
705
705
|
}
|
706
706
|
function h(V) {
|
707
|
-
const
|
707
|
+
const g = V.context(), _ = g.currentType === 1 ? V.currentOffset() : g.offset, M = g.currentType === 1 ? g.endLoc : g.startLoc, x = n(2, _, M);
|
708
708
|
x.items = [];
|
709
709
|
let w = null;
|
710
710
|
do {
|
711
|
-
const
|
712
|
-
switch (w = null,
|
711
|
+
const A = w || V.nextToken();
|
712
|
+
switch (w = null, A.type) {
|
713
713
|
case 0:
|
714
|
-
|
714
|
+
A.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(s(V, A.value || ""));
|
715
715
|
break;
|
716
716
|
case 6:
|
717
|
-
|
717
|
+
A.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(r(V, A.value || ""));
|
718
718
|
break;
|
719
719
|
case 5:
|
720
|
-
|
720
|
+
A.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(l(V, A.value || ""));
|
721
721
|
break;
|
722
722
|
case 7:
|
723
|
-
|
723
|
+
A.value == null && t(V, e2.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(f(V, A.value || ""));
|
724
724
|
break;
|
725
725
|
case 8:
|
726
726
|
const F = d(V);
|
727
727
|
x.items.push(F.node), w = F.nextConsumeToken || null;
|
728
728
|
break;
|
729
729
|
}
|
730
|
-
} while (
|
731
|
-
const C =
|
732
|
-
return i(x, C,
|
730
|
+
} while (g.currentType !== 14 && g.currentType !== 1);
|
731
|
+
const C = g.currentType === 1 ? g.lastOffset : V.currentOffset(), y = g.currentType === 1 ? g.lastEndLoc : V.currentPosition();
|
732
|
+
return i(x, C, y), x;
|
733
733
|
}
|
734
|
-
function
|
734
|
+
function b(V, g, _, M) {
|
735
735
|
const x = V.context();
|
736
|
-
let w =
|
737
|
-
const C = n(1,
|
738
|
-
C.cases = [], C.cases.push(
|
736
|
+
let w = M.items.length === 0;
|
737
|
+
const C = n(1, g, _);
|
738
|
+
C.cases = [], C.cases.push(M);
|
739
739
|
do {
|
740
|
-
const
|
741
|
-
w || (w =
|
740
|
+
const y = h(V);
|
741
|
+
w || (w = y.items.length === 0), C.cases.push(y);
|
742
742
|
} while (x.currentType !== 14);
|
743
|
-
return w && t(V, e2.MUST_HAVE_MESSAGES_IN_PLURAL,
|
743
|
+
return w && t(V, e2.MUST_HAVE_MESSAGES_IN_PLURAL, _, 0), i(C, V.currentOffset(), V.currentPosition()), C;
|
744
744
|
}
|
745
|
-
function
|
746
|
-
const
|
747
|
-
return
|
745
|
+
function L(V) {
|
746
|
+
const g = V.context(), { offset: _, startLoc: M } = g, x = h(V);
|
747
|
+
return g.currentType === 14 ? x : b(V, _, M, x);
|
748
748
|
}
|
749
|
-
function
|
750
|
-
const
|
751
|
-
return c &&
|
749
|
+
function N(V) {
|
750
|
+
const g = FI(V, ui({}, e)), _ = g.context(), M = n(0, _.offset, _.startLoc);
|
751
|
+
return c && M.loc && (M.loc.source = V), M.body = L(g), e.onCacheKey && (M.cacheKey = e.onCacheKey(V)), _.currentType !== 14 && t(g, e2.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, V[_.offset] || ""), i(M, g.currentOffset(), g.currentPosition()), M;
|
752
752
|
}
|
753
|
-
return { parse:
|
753
|
+
return { parse: N };
|
754
754
|
}
|
755
755
|
function m1(e) {
|
756
756
|
if (e.type === 14)
|
@@ -904,20 +904,20 @@ function KI(e, c) {
|
|
904
904
|
};
|
905
905
|
s && e.loc && (r.source = e.loc.source);
|
906
906
|
const l = () => r;
|
907
|
-
function f(
|
908
|
-
r.code +=
|
907
|
+
function f(N, V) {
|
908
|
+
r.code += N;
|
909
909
|
}
|
910
|
-
function o(
|
911
|
-
const
|
912
|
-
f(i ?
|
910
|
+
function o(N, V = !0) {
|
911
|
+
const g = V ? n : "";
|
912
|
+
f(i ? g + " ".repeat(N) : g);
|
913
913
|
}
|
914
|
-
function m(
|
914
|
+
function m(N = !0) {
|
915
915
|
const V = ++r.indentLevel;
|
916
|
-
|
916
|
+
N && o(V);
|
917
917
|
}
|
918
|
-
function d(
|
918
|
+
function d(N = !0) {
|
919
919
|
const V = --r.indentLevel;
|
920
|
-
|
920
|
+
N && o(V);
|
921
921
|
}
|
922
922
|
function h() {
|
923
923
|
o(r.indentLevel);
|
@@ -928,7 +928,7 @@ function KI(e, c) {
|
|
928
928
|
indent: m,
|
929
929
|
deindent: d,
|
930
930
|
newline: h,
|
931
|
-
helper: (
|
931
|
+
helper: (N) => `_${N}`,
|
932
932
|
needIndent: () => r.needIndent
|
933
933
|
};
|
934
934
|
}
|
@@ -1287,9 +1287,9 @@ function fE(e) {
|
|
1287
1287
|
}
|
1288
1288
|
};
|
1289
1289
|
function h() {
|
1290
|
-
const
|
1291
|
-
if (t === 5 &&
|
1292
|
-
return a++, r = "\\" +
|
1290
|
+
const b = e[a + 1];
|
1291
|
+
if (t === 5 && b === "'" || t === 6 && b === '"')
|
1292
|
+
return a++, r = "\\" + b, d[
|
1293
1293
|
0
|
1294
1294
|
/* Actions.APPEND */
|
1295
1295
|
](), !0;
|
@@ -1338,30 +1338,30 @@ function HE(e = {}) {
|
|
1338
1338
|
S2(e.pluralIndex) && gE(a, l);
|
1339
1339
|
const f = (V) => l[V];
|
1340
1340
|
function o(V) {
|
1341
|
-
const
|
1342
|
-
return
|
1341
|
+
const g = V2(e.messages) ? e.messages(V) : m2(e.messages) ? e.messages[V] : !1;
|
1342
|
+
return g || (e.parent ? e.parent.message(V) : vE);
|
1343
1343
|
}
|
1344
|
-
const m = (V) => e.modifiers ? e.modifiers[V] : dE, d = c2(e.processor) && V2(e.processor.normalize) ? e.processor.normalize : hE, h = c2(e.processor) && V2(e.processor.interpolate) ? e.processor.interpolate : VE,
|
1344
|
+
const m = (V) => e.modifiers ? e.modifiers[V] : dE, d = c2(e.processor) && V2(e.processor.normalize) ? e.processor.normalize : hE, h = c2(e.processor) && V2(e.processor.interpolate) ? e.processor.interpolate : VE, b = c2(e.processor) && $(e.processor.type) ? e.processor.type : pE, N = {
|
1345
1345
|
list: r,
|
1346
1346
|
named: f,
|
1347
1347
|
plural: i,
|
1348
|
-
linked: (V, ...
|
1349
|
-
const [
|
1348
|
+
linked: (V, ...g) => {
|
1349
|
+
const [_, M] = g;
|
1350
1350
|
let x = "text", w = "";
|
1351
|
-
|
1352
|
-
const C = o(V)(
|
1351
|
+
g.length === 1 ? m2(_) ? (w = _.modifier || w, x = _.type || x) : $(_) && (w = _ || w) : g.length === 2 && ($(_) && (w = _ || w), $(M) && (x = M || x));
|
1352
|
+
const C = o(V)(N), y = (
|
1353
1353
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
1354
1354
|
x === "vnode" && p2(C) && w ? C[0] : C
|
1355
1355
|
);
|
1356
|
-
return w ? m(w)(
|
1356
|
+
return w ? m(w)(y, x) : y;
|
1357
1357
|
},
|
1358
1358
|
message: o,
|
1359
|
-
type:
|
1359
|
+
type: b,
|
1360
1360
|
interpolate: h,
|
1361
1361
|
normalize: d,
|
1362
1362
|
values: P2({}, s, l)
|
1363
1363
|
};
|
1364
|
-
return
|
1364
|
+
return N;
|
1365
1365
|
}
|
1366
1366
|
let I3 = null;
|
1367
1367
|
function ME(e) {
|
@@ -1486,9 +1486,9 @@ const j9 = (e) => {
|
|
1486
1486
|
}, EE = () => zi;
|
1487
1487
|
let F9 = 0;
|
1488
1488
|
function DE(e = {}) {
|
1489
|
-
const c = V2(e.onWarn) ? e.onWarn : E2, a = $(e.version) ? e.version : xE, t = $(e.locale) || V2(e.locale) ? e.locale : f3, n = V2(t) ? f3 : t, i = p2(e.fallbackLocale) || c2(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, f = P2({}, e.modifiers || {}, kE()), o = e.pluralRules || {}, m = V2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0,
|
1489
|
+
const c = V2(e.onWarn) ? e.onWarn : E2, a = $(e.version) ? e.version : xE, t = $(e.locale) || V2(e.locale) ? e.locale : f3, n = V2(t) ? f3 : t, i = p2(e.fallbackLocale) || c2(e.fallbackLocale) || $(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : n, s = c2(e.messages) ? e.messages : { [n]: {} }, r = c2(e.datetimeFormats) ? e.datetimeFormats : { [n]: {} }, l = c2(e.numberFormats) ? e.numberFormats : { [n]: {} }, f = P2({}, e.modifiers || {}, kE()), o = e.pluralRules || {}, m = V2(e.missing) ? e.missing : null, d = n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = !!e.fallbackFormat, L = !!e.unresolving, N = V2(e.postTranslation) ? e.postTranslation : null, V = c2(e.processor) ? e.processor : null, g = n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, _ = !!e.escapeParameter, M = V2(e.messageCompiler) ? e.messageCompiler : vi;
|
1490
1490
|
process.env.NODE_ENV !== "production" && V2(e.messageCompiler) && yI(Q1(U2.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
1491
|
-
const x = V2(e.messageResolver) ? e.messageResolver : pi || uE, w = V2(e.localeFallbacker) ? e.localeFallbacker : hi || yE, C = m2(e.fallbackContext) ? e.fallbackContext : void 0,
|
1491
|
+
const x = V2(e.messageResolver) ? e.messageResolver : pi || uE, w = V2(e.localeFallbacker) ? e.localeFallbacker : hi || yE, C = m2(e.fallbackContext) ? e.fallbackContext : void 0, y = e, A = m2(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), F = m2(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), q = m2(y.__meta) ? y.__meta : {};
|
1492
1492
|
F9++;
|
1493
1493
|
const R = {
|
1494
1494
|
version: a,
|
@@ -1501,20 +1501,20 @@ function DE(e = {}) {
|
|
1501
1501
|
missing: m,
|
1502
1502
|
missingWarn: d,
|
1503
1503
|
fallbackWarn: h,
|
1504
|
-
fallbackFormat:
|
1505
|
-
unresolving:
|
1506
|
-
postTranslation:
|
1504
|
+
fallbackFormat: b,
|
1505
|
+
unresolving: L,
|
1506
|
+
postTranslation: N,
|
1507
1507
|
processor: V,
|
1508
|
-
warnHtmlMessage:
|
1509
|
-
escapeParameter:
|
1510
|
-
messageCompiler:
|
1508
|
+
warnHtmlMessage: g,
|
1509
|
+
escapeParameter: _,
|
1510
|
+
messageCompiler: M,
|
1511
1511
|
messageResolver: x,
|
1512
1512
|
localeFallbacker: w,
|
1513
1513
|
fallbackContext: C,
|
1514
1514
|
onWarn: c,
|
1515
1515
|
__meta: q
|
1516
1516
|
};
|
1517
|
-
return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters =
|
1517
|
+
return R.datetimeFormats = r, R.numberFormats = l, R.__datetimeFormatters = A, R.__numberFormatters = F, process.env.NODE_ENV !== "production" && (R.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && bE(R, a, q), R;
|
1518
1518
|
}
|
1519
1519
|
function j4(e, c) {
|
1520
1520
|
return e instanceof RegExp ? e.test(c) : e;
|
@@ -1663,30 +1663,30 @@ function FE(e, c) {
|
|
1663
1663
|
}
|
1664
1664
|
const $9 = () => "", e1 = (e) => V2(e);
|
1665
1665
|
function U9(e, ...c) {
|
1666
|
-
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: i, fallbackLocale: s, messages: r } = e, [l, f] = K6(...c), o = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, m = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, d = n2(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, h = !!f.resolvedMessage,
|
1666
|
+
const { fallbackFormat: a, postTranslation: t, unresolving: n, messageCompiler: i, fallbackLocale: s, messages: r } = e, [l, f] = K6(...c), o = n2(f.missingWarn) ? f.missingWarn : e.missingWarn, m = n2(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, d = n2(f.escapeParameter) ? f.escapeParameter : e.escapeParameter, h = !!f.resolvedMessage, b = $(f.default) || n2(f.default) ? n2(f.default) ? i ? l : () => l : f.default : a ? i ? l : () => l : "", L = a || b !== "", N = _0(e, f);
|
1667
1667
|
d && RE(f);
|
1668
|
-
let [V,
|
1668
|
+
let [V, g, _] = h ? [
|
1669
1669
|
l,
|
1670
|
-
|
1671
|
-
r[
|
1672
|
-
] : Li(e, l,
|
1673
|
-
if (!h && !($(
|
1670
|
+
N,
|
1671
|
+
r[N] || {}
|
1672
|
+
] : Li(e, l, N, s, m, o), M = V, x = l;
|
1673
|
+
if (!h && !($(M) || E1(M) || e1(M)) && L && (M = b, x = M), !h && (!($(M) || E1(M) || e1(M)) || !$(g)))
|
1674
1674
|
return n ? B4 : l;
|
1675
|
-
if (process.env.NODE_ENV !== "production" && $(
|
1675
|
+
if (process.env.NODE_ENV !== "production" && $(M) && e.messageCompiler == null)
|
1676
1676
|
return E2(`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 w = !1;
|
1678
1678
|
const C = () => {
|
1679
1679
|
w = !0;
|
1680
|
-
},
|
1680
|
+
}, y = e1(M) ? M : _i(e, l, g, M, x, C);
|
1681
1681
|
if (w)
|
1682
|
-
return
|
1683
|
-
const
|
1682
|
+
return M;
|
1683
|
+
const A = WE(e, g, _, f), F = HE(A), q = $E(e, y, F), R = t ? t(q, l) : q;
|
1684
1684
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1685
1685
|
const j = {
|
1686
1686
|
timestamp: Date.now(),
|
1687
|
-
key: $(l) ? l : e1(
|
1688
|
-
locale:
|
1689
|
-
format: $(
|
1687
|
+
key: $(l) ? l : e1(M) ? M.key : "",
|
1688
|
+
locale: g || (e1(M) ? M.locale : ""),
|
1689
|
+
format: $(M) ? M : e1(M) ? M.source : "",
|
1690
1690
|
message: R
|
1691
1691
|
};
|
1692
1692
|
j.meta = P2({}, e.__meta, /* @__PURE__ */ IE() || {}), CE(j);
|
@@ -1700,33 +1700,33 @@ function RE(e) {
|
|
1700
1700
|
}
|
1701
1701
|
function Li(e, c, a, t, n, i) {
|
1702
1702
|
const { messages: s, onWarn: r, messageResolver: l, localeFallbacker: f } = e, o = f(e, t, a);
|
1703
|
-
let m = {}, d, h = null,
|
1704
|
-
const
|
1703
|
+
let m = {}, d, h = null, b = a, L = null;
|
1704
|
+
const N = "translate";
|
1705
1705
|
for (let V = 0; V < o.length; V++) {
|
1706
|
-
if (d =
|
1706
|
+
if (d = L = o[V], process.env.NODE_ENV !== "production" && a !== d && j4(n, c) && r(Q1(U2.FALLBACK_TO_TRANSLATE, {
|
1707
1707
|
key: c,
|
1708
1708
|
target: d
|
1709
1709
|
})), process.env.NODE_ENV !== "production" && a !== d) {
|
1710
1710
|
const w = e.__v_emitter;
|
1711
1711
|
w && w.emit("fallback", {
|
1712
|
-
type:
|
1712
|
+
type: N,
|
1713
1713
|
key: c,
|
1714
|
-
from:
|
1715
|
-
to:
|
1716
|
-
groupId: `${
|
1714
|
+
from: b,
|
1715
|
+
to: L,
|
1716
|
+
groupId: `${N}:${c}`
|
1717
1717
|
});
|
1718
1718
|
}
|
1719
1719
|
m = s[d] || {};
|
1720
|
-
let
|
1721
|
-
if (process.env.NODE_ENV !== "production" && p1 && (
|
1720
|
+
let g = null, _, M;
|
1721
|
+
if (process.env.NODE_ENV !== "production" && p1 && (g = window.performance.now(), _ = "intlify-message-resolve-start", M = "intlify-message-resolve-end", X2 && X2(_)), (h = l(m, c)) === null && (h = m[c]), process.env.NODE_ENV !== "production" && p1) {
|
1722
1722
|
const w = window.performance.now(), C = e.__v_emitter;
|
1723
|
-
C &&
|
1723
|
+
C && g && h && C.emit("message-resolve", {
|
1724
1724
|
type: "message-resolve",
|
1725
1725
|
key: c,
|
1726
1726
|
message: h,
|
1727
|
-
time: w -
|
1728
|
-
groupId: `${
|
1729
|
-
}),
|
1727
|
+
time: w - g,
|
1728
|
+
groupId: `${N}:${c}`
|
1729
|
+
}), _ && M && X2 && Y1 && (X2(M), Y1("intlify message resolve", _, M));
|
1730
1730
|
}
|
1731
1731
|
if ($(h) || E1(h) || e1(h))
|
1732
1732
|
break;
|
@@ -1736,9 +1736,9 @@ function Li(e, c, a, t, n, i) {
|
|
1736
1736
|
c,
|
1737
1737
|
d,
|
1738
1738
|
i,
|
1739
|
-
|
1739
|
+
N
|
1740
1740
|
);
|
1741
|
-
x !== c && (h = x),
|
1741
|
+
x !== c && (h = x), b = L;
|
1742
1742
|
}
|
1743
1743
|
return [h, d, m];
|
1744
1744
|
}
|
@@ -1822,19 +1822,19 @@ function WE(e, c, a, t) {
|
|
1822
1822
|
modifiers: n,
|
1823
1823
|
pluralRules: i,
|
1824
1824
|
messages: (h) => {
|
1825
|
-
let
|
1826
|
-
if (
|
1827
|
-
const [, ,
|
1828
|
-
|
1825
|
+
let b = s(a, h);
|
1826
|
+
if (b == null && o) {
|
1827
|
+
const [, , L] = Li(o, h, c, r, l, f);
|
1828
|
+
b = s(L, h);
|
1829
1829
|
}
|
1830
|
-
if ($(
|
1831
|
-
let
|
1832
|
-
const V = _i(e, h, c,
|
1833
|
-
|
1830
|
+
if ($(b) || E1(b)) {
|
1831
|
+
let L = !1;
|
1832
|
+
const V = _i(e, h, c, b, h, () => {
|
1833
|
+
L = !0;
|
1834
1834
|
});
|
1835
|
-
return
|
1835
|
+
return L ? $9 : V;
|
1836
1836
|
} else
|
1837
|
-
return e1(
|
1837
|
+
return e1(b) ? b : $9;
|
1838
1838
|
}
|
1839
1839
|
};
|
1840
1840
|
return e.processor && (d.processor = e.processor), t.list && (d.list = t.list), t.named && (d.named = t.named), S2(t.plural) && (d.pluralIndex = t.plural), d;
|
@@ -1847,40 +1847,40 @@ function W9(e, ...c) {
|
|
1847
1847
|
const { datetimeFormats: a, unresolving: t, fallbackLocale: n, onWarn: i, localeFallbacker: s } = e, { __datetimeFormatters: r } = e;
|
1848
1848
|
if (process.env.NODE_ENV !== "production" && !yi.dateTimeFormat)
|
1849
1849
|
return i(Q1(U2.CANNOT_FORMAT_DATE)), k4;
|
1850
|
-
const [l, f, o, m] = Z6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn,
|
1850
|
+
const [l, f, o, m] = Z6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, b = !!o.part, L = _0(e, o), N = s(
|
1851
1851
|
e,
|
1852
1852
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1853
1853
|
n,
|
1854
|
-
|
1854
|
+
L
|
1855
1855
|
);
|
1856
1856
|
if (!$(l) || l === "")
|
1857
|
-
return new Intl.DateTimeFormat(
|
1858
|
-
let V = {},
|
1857
|
+
return new Intl.DateTimeFormat(L, m).format(f);
|
1858
|
+
let V = {}, g, _ = null, M = L, x = null;
|
1859
1859
|
const w = "datetime format";
|
1860
|
-
for (let
|
1861
|
-
if (
|
1860
|
+
for (let A = 0; A < N.length; A++) {
|
1861
|
+
if (g = x = N[A], process.env.NODE_ENV !== "production" && L !== g && j4(h, l) && i(Q1(U2.FALLBACK_TO_DATE_FORMAT, {
|
1862
1862
|
key: l,
|
1863
|
-
target:
|
1864
|
-
})), process.env.NODE_ENV !== "production" &&
|
1863
|
+
target: g
|
1864
|
+
})), process.env.NODE_ENV !== "production" && L !== g) {
|
1865
1865
|
const F = e.__v_emitter;
|
1866
1866
|
F && F.emit("fallback", {
|
1867
1867
|
type: w,
|
1868
1868
|
key: l,
|
1869
|
-
from:
|
1869
|
+
from: M,
|
1870
1870
|
to: x,
|
1871
1871
|
groupId: `${w}:${l}`
|
1872
1872
|
});
|
1873
1873
|
}
|
1874
|
-
if (V = a[
|
1874
|
+
if (V = a[g] || {}, _ = V[l], c2(_))
|
1875
1875
|
break;
|
1876
|
-
y0(e, l,
|
1876
|
+
y0(e, l, g, d, w), M = x;
|
1877
1877
|
}
|
1878
|
-
if (!c2(
|
1878
|
+
if (!c2(_) || !$(g))
|
1879
1879
|
return t ? B4 : l;
|
1880
|
-
let C = `${
|
1880
|
+
let C = `${g}__${l}`;
|
1881
1881
|
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
1882
|
-
let
|
1883
|
-
return
|
1882
|
+
let y = r.get(C);
|
1883
|
+
return y || (y = new Intl.DateTimeFormat(g, P2({}, _, m)), r.set(C, y)), b ? y.formatToParts(f) : y.format(f);
|
1884
1884
|
}
|
1885
1885
|
const Ai = [
|
1886
1886
|
"localeMatcher",
|
@@ -1941,40 +1941,40 @@ function Y9(e, ...c) {
|
|
1941
1941
|
const { numberFormats: a, unresolving: t, fallbackLocale: n, onWarn: i, localeFallbacker: s } = e, { __numberFormatters: r } = e;
|
1942
1942
|
if (process.env.NODE_ENV !== "production" && !yi.numberFormat)
|
1943
1943
|
return i(Q1(U2.CANNOT_FORMAT_NUMBER)), k4;
|
1944
|
-
const [l, f, o, m] = J6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn,
|
1944
|
+
const [l, f, o, m] = J6(...c), d = n2(o.missingWarn) ? o.missingWarn : e.missingWarn, h = n2(o.fallbackWarn) ? o.fallbackWarn : e.fallbackWarn, b = !!o.part, L = _0(e, o), N = s(
|
1945
1945
|
e,
|
1946
1946
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1947
1947
|
n,
|
1948
|
-
|
1948
|
+
L
|
1949
1949
|
);
|
1950
1950
|
if (!$(l) || l === "")
|
1951
|
-
return new Intl.NumberFormat(
|
1952
|
-
let V = {},
|
1951
|
+
return new Intl.NumberFormat(L, m).format(f);
|
1952
|
+
let V = {}, g, _ = null, M = L, x = null;
|
1953
1953
|
const w = "number format";
|
1954
|
-
for (let
|
1955
|
-
if (
|
1954
|
+
for (let A = 0; A < N.length; A++) {
|
1955
|
+
if (g = x = N[A], process.env.NODE_ENV !== "production" && L !== g && j4(h, l) && i(Q1(U2.FALLBACK_TO_NUMBER_FORMAT, {
|
1956
1956
|
key: l,
|
1957
|
-
target:
|
1958
|
-
})), process.env.NODE_ENV !== "production" &&
|
1957
|
+
target: g
|
1958
|
+
})), process.env.NODE_ENV !== "production" && L !== g) {
|
1959
1959
|
const F = e.__v_emitter;
|
1960
1960
|
F && F.emit("fallback", {
|
1961
1961
|
type: w,
|
1962
1962
|
key: l,
|
1963
|
-
from:
|
1963
|
+
from: M,
|
1964
1964
|
to: x,
|
1965
1965
|
groupId: `${w}:${l}`
|
1966
1966
|
});
|
1967
1967
|
}
|
1968
|
-
if (V = a[
|
1968
|
+
if (V = a[g] || {}, _ = V[l], c2(_))
|
1969
1969
|
break;
|
1970
|
-
y0(e, l,
|
1970
|
+
y0(e, l, g, d, w), M = x;
|
1971
1971
|
}
|
1972
|
-
if (!c2(
|
1972
|
+
if (!c2(_) || !$(g))
|
1973
1973
|
return t ? B4 : l;
|
1974
|
-
let C = `${
|
1974
|
+
let C = `${g}__${l}`;
|
1975
1975
|
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
1976
|
-
let
|
1977
|
-
return
|
1976
|
+
let y = r.get(C);
|
1977
|
+
return y || (y = new Intl.NumberFormat(g, P2({}, _, m)), r.set(C, y)), b ? y.formatToParts(f) : y.format(f);
|
1978
1978
|
}
|
1979
1979
|
const Ni = [
|
1980
1980
|
"localeMatcher",
|
@@ -2275,7 +2275,7 @@ function A0(e = {}, c) {
|
|
2275
2275
|
// prettier-ignore
|
2276
2276
|
a && s ? a.fallbackLocale.value : $(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
|
2277
2277
|
), f = Z(F4(r.value, e)), o = Z(c2(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), m = Z(c2(e.numberFormats) ? e.numberFormats : { [r.value]: {} });
|
2278
|
-
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0,
|
2278
|
+
let d = a ? a.missingWarn : n2(e.missingWarn) || I1(e.missingWarn) ? e.missingWarn : !0, h = a ? a.fallbackWarn : n2(e.fallbackWarn) || I1(e.fallbackWarn) ? e.fallbackWarn : !0, b = a ? a.fallbackRoot : n2(e.fallbackRoot) ? e.fallbackRoot : !0, L = !!e.fallbackFormat, N = V2(e.missing) ? e.missing : null, V = V2(e.missing) ? en(e.missing) : null, g = V2(e.postTranslation) ? e.postTranslation : null, _ = a ? a.warnHtmlMessage : n2(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, M = !!e.escapeParameter;
|
2279
2279
|
const x = a ? a.modifiers : c2(e.modifiers) ? e.modifiers : {};
|
2280
2280
|
let w = e.pluralRules || a && a.pluralRules, C;
|
2281
2281
|
C = (() => {
|
@@ -2290,11 +2290,11 @@ function A0(e = {}, c) {
|
|
2290
2290
|
missing: V === null ? void 0 : V,
|
2291
2291
|
missingWarn: d,
|
2292
2292
|
fallbackWarn: h,
|
2293
|
-
fallbackFormat:
|
2293
|
+
fallbackFormat: L,
|
2294
2294
|
unresolving: !0,
|
2295
|
-
postTranslation:
|
2296
|
-
warnHtmlMessage:
|
2297
|
-
escapeParameter:
|
2295
|
+
postTranslation: g === null ? void 0 : g,
|
2296
|
+
warnHtmlMessage: _,
|
2297
|
+
escapeParameter: M,
|
2298
2298
|
messageResolver: e.messageResolver,
|
2299
2299
|
messageCompiler: e.messageCompiler,
|
2300
2300
|
__meta: { framework: "vue" }
|
@@ -2303,7 +2303,7 @@ function A0(e = {}, c) {
|
|
2303
2303
|
const P = DE(T);
|
2304
2304
|
return n && j9(P), P;
|
2305
2305
|
})(), C3(C, r.value, l.value);
|
2306
|
-
function
|
2306
|
+
function A() {
|
2307
2307
|
return [
|
2308
2308
|
r.value,
|
2309
2309
|
l.value,
|
@@ -2324,22 +2324,22 @@ function A0(e = {}, c) {
|
|
2324
2324
|
}
|
2325
2325
|
}), R = E(() => f.value), j = /* @__PURE__ */ E(() => o.value), r2 = /* @__PURE__ */ E(() => m.value);
|
2326
2326
|
function l2() {
|
2327
|
-
return V2(
|
2327
|
+
return V2(g) ? g : null;
|
2328
2328
|
}
|
2329
2329
|
function a2(T) {
|
2330
|
-
|
2330
|
+
g = T, C.postTranslation = T;
|
2331
2331
|
}
|
2332
2332
|
function h2() {
|
2333
|
-
return
|
2333
|
+
return N;
|
2334
2334
|
}
|
2335
2335
|
function F2(T) {
|
2336
|
-
T !== null && (V = en(T)),
|
2336
|
+
T !== null && (V = en(T)), N = T, C.missing = V;
|
2337
2337
|
}
|
2338
2338
|
function b2(T, P) {
|
2339
2339
|
return T !== "translate" || !P.resolvedMessage;
|
2340
2340
|
}
|
2341
2341
|
const v2 = (T, P, o2, _2, R1, v4) => {
|
2342
|
-
|
2342
|
+
A();
|
2343
2343
|
let c3;
|
2344
2344
|
try {
|
2345
2345
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = a ? EE() : void 0), c3 = T(C);
|
@@ -2349,19 +2349,19 @@ function A0(e = {}, c) {
|
|
2349
2349
|
if (o2 !== "translate exists" && // for not `te` (e.g `t`)
|
2350
2350
|
S2(c3) && c3 === B4 || o2 === "translate exists" && !c3) {
|
2351
2351
|
const [$1, sI] = P();
|
2352
|
-
if (process.env.NODE_ENV !== "production" && a && $($1) && b2(o2, sI) && (
|
2352
|
+
if (process.env.NODE_ENV !== "production" && a && $($1) && b2(o2, sI) && (b && (j4(h, $1) || gi(d, $1)) && E2(Q2(N2.FALLBACK_TO_ROOT, {
|
2353
2353
|
key: $1,
|
2354
2354
|
type: o2
|
2355
2355
|
})), process.env.NODE_ENV !== "production")) {
|
2356
2356
|
const { __v_emitter: L9 } = C;
|
2357
|
-
L9 &&
|
2357
|
+
L9 && b && L9.emit("fallback", {
|
2358
2358
|
type: o2,
|
2359
2359
|
key: $1,
|
2360
2360
|
to: "global",
|
2361
2361
|
groupId: `${o2}:${$1}`
|
2362
2362
|
});
|
2363
2363
|
}
|
2364
|
-
return a &&
|
2364
|
+
return a && b ? _2(a) : R1($1);
|
2365
2365
|
} else {
|
2366
2366
|
if (v4(c3))
|
2367
2367
|
return c3;
|
@@ -2538,28 +2538,28 @@ function A0(e = {}, c) {
|
|
2538
2538
|
h = T, C.fallbackWarn = h;
|
2539
2539
|
},
|
2540
2540
|
get fallbackRoot() {
|
2541
|
-
return
|
2541
|
+
return b;
|
2542
2542
|
},
|
2543
2543
|
set fallbackRoot(T) {
|
2544
|
-
|
2544
|
+
b = T;
|
2545
2545
|
},
|
2546
2546
|
get fallbackFormat() {
|
2547
|
-
return
|
2547
|
+
return L;
|
2548
2548
|
},
|
2549
2549
|
set fallbackFormat(T) {
|
2550
|
-
|
2550
|
+
L = T, C.fallbackFormat = L;
|
2551
2551
|
},
|
2552
2552
|
get warnHtmlMessage() {
|
2553
|
-
return
|
2553
|
+
return _;
|
2554
2554
|
},
|
2555
2555
|
set warnHtmlMessage(T) {
|
2556
|
-
|
2556
|
+
_ = T, C.warnHtmlMessage = T;
|
2557
2557
|
},
|
2558
2558
|
get escapeParameter() {
|
2559
|
-
return
|
2559
|
+
return M;
|
2560
2560
|
},
|
2561
2561
|
set escapeParameter(T) {
|
2562
|
-
|
2562
|
+
M = T, C.escapeParameter = T;
|
2563
2563
|
},
|
2564
2564
|
t: A2,
|
2565
2565
|
getLocaleMessage: S,
|
@@ -2580,22 +2580,22 @@ function A0(e = {}, c) {
|
|
2580
2580
|
function rD(e) {
|
2581
2581
|
const c = $(e.locale) ? e.locale : f3, a = $(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : c, t = V2(e.missing) ? e.missing : void 0, n = n2(e.silentTranslationWarn) || I1(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, i = n2(e.silentFallbackWarn) || I1(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = n2(e.fallbackRoot) ? e.fallbackRoot : !0, r = !!e.formatFallbackMessages, l = c2(e.modifiers) ? e.modifiers : {}, f = e.pluralizationRules, o = V2(e.postTranslation) ? e.postTranslation : void 0, m = $(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, d = !!e.escapeParameterHtml, h = n2(e.sync) ? e.sync : !0;
|
2582
2582
|
process.env.NODE_ENV !== "production" && e.formatter && E2(Q2(N2.NOT_SUPPORTED_FORMATTER)), process.env.NODE_ENV !== "production" && e.preserveDirectiveContent && E2(Q2(N2.NOT_SUPPORTED_PRESERVE_DIRECTIVE));
|
2583
|
-
let
|
2583
|
+
let b = e.messages;
|
2584
2584
|
if (c2(e.sharedMessages)) {
|
2585
2585
|
const x = e.sharedMessages;
|
2586
|
-
|
2587
|
-
const
|
2588
|
-
return P2(
|
2589
|
-
},
|
2586
|
+
b = Object.keys(x).reduce((C, y) => {
|
2587
|
+
const A = C[y] || (C[y] = {});
|
2588
|
+
return P2(A, x[y]), C;
|
2589
|
+
}, b || {});
|
2590
2590
|
}
|
2591
|
-
const { __i18n:
|
2591
|
+
const { __i18n: L, __root: N, __injectWithOption: V } = e, g = e.datetimeFormats, _ = e.numberFormats, M = e.flatJson;
|
2592
2592
|
return {
|
2593
2593
|
locale: c,
|
2594
2594
|
fallbackLocale: a,
|
2595
|
-
messages:
|
2596
|
-
flatJson:
|
2597
|
-
datetimeFormats:
|
2598
|
-
numberFormats:
|
2595
|
+
messages: b,
|
2596
|
+
flatJson: M,
|
2597
|
+
datetimeFormats: g,
|
2598
|
+
numberFormats: _,
|
2599
2599
|
missing: t,
|
2600
2600
|
missingWarn: n,
|
2601
2601
|
fallbackWarn: i,
|
@@ -2608,8 +2608,8 @@ function rD(e) {
|
|
2608
2608
|
escapeParameter: d,
|
2609
2609
|
messageResolver: e.messageResolver,
|
2610
2610
|
inheritLocale: h,
|
2611
|
-
__i18n:
|
2612
|
-
__root:
|
2611
|
+
__i18n: L,
|
2612
|
+
__root: N,
|
2613
2613
|
__injectWithOption: V
|
2614
2614
|
};
|
2615
2615
|
}
|
@@ -2900,8 +2900,8 @@ function Oi(e, c, a, t) {
|
|
2900
2900
|
const l = t(e.value, s, r);
|
2901
2901
|
let f = [s.key];
|
2902
2902
|
p2(l) ? f = l.map((d, h) => {
|
2903
|
-
const
|
2904
|
-
return fD(
|
2903
|
+
const b = n[d.type], L = b ? b({ [d.type]: d.value, index: h, parts: l }) : [d.value];
|
2904
|
+
return fD(L) && (L[0].key = `${d.type}-${h}`), L;
|
2905
2905
|
}) : $(l) && (f = [l]);
|
2906
2906
|
const o = P2({}, i), m = $(e.tag) || m2(e.tag) ? e.tag : Di();
|
2907
2907
|
return M1(m, o, f);
|
@@ -3379,28 +3379,28 @@ function SD(e = {}, c) {
|
|
3379
3379
|
return n;
|
3380
3380
|
},
|
3381
3381
|
// install plugin
|
3382
|
-
async install(h, ...
|
3383
|
-
if (process.env.NODE_ENV !== "production" && (h.__VUE_I18N__ = d), h.__VUE_I18N_SYMBOL__ = l, h.provide(h.__VUE_I18N_SYMBOL__, d), c2(
|
3384
|
-
const V =
|
3382
|
+
async install(h, ...b) {
|
3383
|
+
if (process.env.NODE_ENV !== "production" && (h.__VUE_I18N__ = d), h.__VUE_I18N_SYMBOL__ = l, h.provide(h.__VUE_I18N_SYMBOL__, d), c2(b[0])) {
|
3384
|
+
const V = b[0];
|
3385
3385
|
d.__composerExtend = V.__composerExtend, d.__vueI18nExtend = V.__vueI18nExtend;
|
3386
3386
|
}
|
3387
|
-
let
|
3388
|
-
!a && t && (
|
3389
|
-
const
|
3387
|
+
let L = null;
|
3388
|
+
!a && t && (L = FD(h, d.global)), __VUE_I18N_FULL_INSTALL__ && pD(h, d, ...b), __VUE_I18N_LEGACY_API__ && a && h.mixin(xD(r, r.__composer, d));
|
3389
|
+
const N = h.unmount;
|
3390
3390
|
if (h.unmount = () => {
|
3391
|
-
|
3391
|
+
L && L(), d.dispose(), N();
|
3392
3392
|
}, process.env.NODE_ENV !== "production") {
|
3393
3393
|
if (!await zD(h, d))
|
3394
3394
|
throw w2(f2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
3395
|
-
const
|
3395
|
+
const g = C0();
|
3396
3396
|
if (a) {
|
3397
|
-
const
|
3398
|
-
|
3397
|
+
const _ = r;
|
3398
|
+
_.__enableEmitter && _.__enableEmitter(g);
|
3399
3399
|
} else {
|
3400
|
-
const
|
3401
|
-
|
3400
|
+
const _ = r;
|
3401
|
+
_[X1] && _[X1](g);
|
3402
3402
|
}
|
3403
|
-
|
3403
|
+
g.on("*", O3);
|
3404
3404
|
}
|
3405
3405
|
},
|
3406
3406
|
// global accessor
|
@@ -3517,7 +3517,7 @@ function BD(e, c, a, t = {}) {
|
|
3517
3517
|
), l = Z(
|
3518
3518
|
// prettier-ignore
|
3519
3519
|
!n || s ? a.fallbackLocale.value : $(t.fallbackLocale) || p2(t.fallbackLocale) || c2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
|
3520
|
-
), f = Z(F4(r.value, t)), o = Z(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = Z(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0,
|
3520
|
+
), f = Z(F4(r.value, t)), o = Z(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = Z(c2(t.numberFormats) ? t.numberFormats : { [r.value]: {} }), d = n ? a.missingWarn : n2(t.missingWarn) || I1(t.missingWarn) ? t.missingWarn : !0, h = n ? a.fallbackWarn : n2(t.fallbackWarn) || I1(t.fallbackWarn) ? t.fallbackWarn : !0, b = n ? a.fallbackRoot : n2(t.fallbackRoot) ? t.fallbackRoot : !0, L = !!t.fallbackFormat, N = V2(t.missing) ? t.missing : null, V = V2(t.postTranslation) ? t.postTranslation : null, g = n ? a.warnHtmlMessage : n2(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, _ = !!t.escapeParameter, M = n ? a.modifiers : c2(t.modifiers) ? t.modifiers : {}, x = t.pluralRules || n && a.pluralRules;
|
3521
3521
|
function w() {
|
3522
3522
|
return [
|
3523
3523
|
r.value,
|
@@ -3532,12 +3532,12 @@ function BD(e, c, a, t = {}) {
|
|
3532
3532
|
set: (v) => {
|
3533
3533
|
i.value && (i.value.locale.value = v), r.value = v;
|
3534
3534
|
}
|
3535
|
-
}),
|
3535
|
+
}), y = E({
|
3536
3536
|
get: () => i.value ? i.value.fallbackLocale.value : l.value,
|
3537
3537
|
set: (v) => {
|
3538
3538
|
i.value && (i.value.fallbackLocale.value = v), l.value = v;
|
3539
3539
|
}
|
3540
|
-
}),
|
3540
|
+
}), A = E(() => i.value ? i.value.messages.value : f.value), F = E(() => o.value), q = E(() => m.value);
|
3541
3541
|
function R() {
|
3542
3542
|
return i.value ? i.value.getPostTranslationHandler() : V;
|
3543
3543
|
}
|
@@ -3545,7 +3545,7 @@ function BD(e, c, a, t = {}) {
|
|
3545
3545
|
i.value && i.value.setPostTranslationHandler(v);
|
3546
3546
|
}
|
3547
3547
|
function r2() {
|
3548
|
-
return i.value ? i.value.getMissingHandler() :
|
3548
|
+
return i.value ? i.value.getMissingHandler() : N;
|
3549
3549
|
}
|
3550
3550
|
function l2(v) {
|
3551
3551
|
i.value && i.value.setMissingHandler(v);
|
@@ -3603,8 +3603,8 @@ function BD(e, c, a, t = {}) {
|
|
3603
3603
|
return i.value ? i.value.id : -1;
|
3604
3604
|
},
|
3605
3605
|
locale: C,
|
3606
|
-
fallbackLocale:
|
3607
|
-
messages:
|
3606
|
+
fallbackLocale: y,
|
3607
|
+
messages: A,
|
3608
3608
|
datetimeFormats: F,
|
3609
3609
|
numberFormats: q,
|
3610
3610
|
get inheritLocale() {
|
@@ -3617,7 +3617,7 @@ function BD(e, c, a, t = {}) {
|
|
3617
3617
|
return i.value ? i.value.availableLocales : Object.keys(f.value);
|
3618
3618
|
},
|
3619
3619
|
get modifiers() {
|
3620
|
-
return i.value ? i.value.modifiers :
|
3620
|
+
return i.value ? i.value.modifiers : M;
|
3621
3621
|
},
|
3622
3622
|
get pluralRules() {
|
3623
3623
|
return i.value ? i.value.pluralRules : x;
|
@@ -3638,25 +3638,25 @@ function BD(e, c, a, t = {}) {
|
|
3638
3638
|
i.value && (i.value.missingWarn = v);
|
3639
3639
|
},
|
3640
3640
|
get fallbackRoot() {
|
3641
|
-
return i.value ? i.value.fallbackRoot :
|
3641
|
+
return i.value ? i.value.fallbackRoot : b;
|
3642
3642
|
},
|
3643
3643
|
set fallbackRoot(v) {
|
3644
3644
|
i.value && (i.value.fallbackRoot = v);
|
3645
3645
|
},
|
3646
3646
|
get fallbackFormat() {
|
3647
|
-
return i.value ? i.value.fallbackFormat :
|
3647
|
+
return i.value ? i.value.fallbackFormat : L;
|
3648
3648
|
},
|
3649
3649
|
set fallbackFormat(v) {
|
3650
3650
|
i.value && (i.value.fallbackFormat = v);
|
3651
3651
|
},
|
3652
3652
|
get warnHtmlMessage() {
|
3653
|
-
return i.value ? i.value.warnHtmlMessage :
|
3653
|
+
return i.value ? i.value.warnHtmlMessage : g;
|
3654
3654
|
},
|
3655
3655
|
set warnHtmlMessage(v) {
|
3656
3656
|
i.value && (i.value.warnHtmlMessage = v);
|
3657
3657
|
},
|
3658
3658
|
get escapeParameter() {
|
3659
|
-
return i.value ? i.value.escapeParameter :
|
3659
|
+
return i.value ? i.value.escapeParameter : _;
|
3660
3660
|
},
|
3661
3661
|
set escapeParameter(v) {
|
3662
3662
|
i.value && (i.value.escapeParameter = v);
|
@@ -3688,7 +3688,7 @@ function BD(e, c, a, t = {}) {
|
|
3688
3688
|
v.mergeDateTimeFormat(S, o.value[S]);
|
3689
3689
|
}), Object.keys(m.value).forEach((S) => {
|
3690
3690
|
v.mergeNumberFormat(S, m.value[S]);
|
3691
|
-
}), v.escapeParameter =
|
3691
|
+
}), v.escapeParameter = _, v.fallbackFormat = L, v.fallbackRoot = b, v.fallbackWarn = h, v.missingWarn = d, v.warnHtmlMessage = g;
|
3692
3692
|
}
|
3693
3693
|
return oI(() => {
|
3694
3694
|
if (e.proxy == null || e.proxy.$i18n == null)
|
@@ -5866,8 +5866,8 @@ var MO = function(c, a) {
|
|
5866
5866
|
function bO(e) {
|
5867
5867
|
var c, a = e.state, t = e.name, n = e.options, i = a.elements.arrow, s = a.modifiersData.popperOffsets, r = v1(a.placement), l = I0(r), f = [G2, n1].indexOf(r) >= 0, o = f ? "height" : "width";
|
5868
5868
|
if (!(!i || !s)) {
|
5869
|
-
var m = MO(n.padding, a), d = T0(i), h = l === "y" ? W2 : G2,
|
5870
|
-
a.modifiersData[t] = (c = {}, c[
|
5869
|
+
var m = MO(n.padding, a), d = T0(i), h = l === "y" ? W2 : G2, b = l === "y" ? t1 : n1, L = a.rects.reference[o] + a.rects.reference[l] - s[l] - a.rects.popper[o], N = s[l] - a.rects.reference[l], V = W3(i), g = V ? l === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0, _ = L / 2 - N / 2, M = m[h], x = g - d[o] - m[b], w = g / 2 - d[o] / 2 + _, C = N3(M, w, x), y = l;
|
5870
|
+
a.modifiersData[t] = (c = {}, c[y] = C, c.centerOffset = C - w, c);
|
5871
5871
|
}
|
5872
5872
|
}
|
5873
5873
|
function CO(e) {
|
@@ -5900,30 +5900,30 @@ function yO(e, c) {
|
|
5900
5900
|
};
|
5901
5901
|
}
|
5902
5902
|
function mn(e) {
|
5903
|
-
var c, a = e.popper, t = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, l = e.gpuAcceleration, f = e.adaptive, o = e.roundOffsets, m = e.isFixed, d = s.x, h = d === void 0 ? 0 : d,
|
5903
|
+
var c, a = e.popper, t = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, l = e.gpuAcceleration, f = e.adaptive, o = e.roundOffsets, m = e.isFixed, d = s.x, h = d === void 0 ? 0 : d, b = s.y, L = b === void 0 ? 0 : b, N = typeof o == "function" ? o({
|
5904
5904
|
x: h,
|
5905
|
-
y:
|
5905
|
+
y: L
|
5906
5906
|
}) : {
|
5907
5907
|
x: h,
|
5908
|
-
y:
|
5908
|
+
y: L
|
5909
5909
|
};
|
5910
|
-
h =
|
5911
|
-
var V = s.hasOwnProperty("x"),
|
5910
|
+
h = N.x, L = N.y;
|
5911
|
+
var V = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"), _ = G2, M = W2, x = window;
|
5912
5912
|
if (f) {
|
5913
|
-
var w = W3(a), C = "clientHeight",
|
5914
|
-
if (w === K2(a) && (w = j1(a), C1(w).position !== "static" && r === "absolute" && (C = "scrollHeight",
|
5915
|
-
|
5916
|
-
var
|
5913
|
+
var w = W3(a), C = "clientHeight", y = "clientWidth";
|
5914
|
+
if (w === K2(a) && (w = j1(a), C1(w).position !== "static" && r === "absolute" && (C = "scrollHeight", y = "scrollWidth")), w = w, n === W2 || (n === G2 || n === n1) && i === P3) {
|
5915
|
+
M = t1;
|
5916
|
+
var A = m && w === x && x.visualViewport ? x.visualViewport.height : (
|
5917
5917
|
// $FlowFixMe[prop-missing]
|
5918
5918
|
w[C]
|
5919
5919
|
);
|
5920
|
-
|
5920
|
+
L -= A - t.height, L *= l ? 1 : -1;
|
5921
5921
|
}
|
5922
5922
|
if (n === G2 || (n === W2 || n === t1) && i === P3) {
|
5923
|
-
|
5923
|
+
_ = n1;
|
5924
5924
|
var F = m && w === x && x.visualViewport ? x.visualViewport.width : (
|
5925
5925
|
// $FlowFixMe[prop-missing]
|
5926
|
-
w[
|
5926
|
+
w[y]
|
5927
5927
|
);
|
5928
5928
|
h -= F - t.width, h *= l ? 1 : -1;
|
5929
5929
|
}
|
@@ -5932,16 +5932,16 @@ function mn(e) {
|
|
5932
5932
|
position: r
|
5933
5933
|
}, f && _O), R = o === !0 ? yO({
|
5934
5934
|
x: h,
|
5935
|
-
y:
|
5935
|
+
y: L
|
5936
5936
|
}, K2(a)) : {
|
5937
5937
|
x: h,
|
5938
|
-
y:
|
5938
|
+
y: L
|
5939
5939
|
};
|
5940
|
-
if (h = R.x,
|
5940
|
+
if (h = R.x, L = R.y, l) {
|
5941
5941
|
var j;
|
5942
|
-
return Object.assign({}, q, (j = {}, j[
|
5942
|
+
return Object.assign({}, q, (j = {}, j[M] = g ? "0" : "", j[_] = V ? "0" : "", j.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + L + "px)" : "translate3d(" + h + "px, " + L + "px, 0)", j));
|
5943
5943
|
}
|
5944
|
-
return Object.assign({}, q, (c = {}, c[
|
5944
|
+
return Object.assign({}, q, (c = {}, c[M] = g ? L + "px" : "", c[_] = V ? h + "px" : "", c.transform = "", c));
|
5945
5945
|
}
|
5946
5946
|
function AO(e) {
|
5947
5947
|
var c = e.state, a = e.options, t = a.gpuAcceleration, n = t === void 0 ? !0 : t, i = a.adaptive, s = i === void 0 ? !0 : i, r = a.roundOffsets, l = r === void 0 ? !0 : r, f = {
|
@@ -6141,16 +6141,16 @@ function Xi(e) {
|
|
6141
6141
|
}
|
6142
6142
|
function B3(e, c) {
|
6143
6143
|
c === void 0 && (c = {});
|
6144
|
-
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, i = a.strategy, s = i === void 0 ? e.strategy : i, r = a.boundary, l = r === void 0 ? tO : r, f = a.rootBoundary, o = f === void 0 ? Ri : f, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary,
|
6144
|
+
var a = c, t = a.placement, n = t === void 0 ? e.placement : t, i = a.strategy, s = i === void 0 ? e.strategy : i, r = a.boundary, l = r === void 0 ? tO : r, f = a.rootBoundary, o = f === void 0 ? Ri : f, m = a.elementContext, d = m === void 0 ? L3 : m, h = a.altBoundary, b = h === void 0 ? !1 : h, L = a.padding, N = L === void 0 ? 0 : L, V = Gi(typeof N != "number" ? N : Yi(N, q3)), g = d === L3 ? nO : L3, _ = e.rects.popper, M = e.elements[b ? g : d], x = OO(K1(M) ? M : M.contextElement || j1(e.elements.popper), l, o, s), w = d3(e.elements.reference), C = Xi({
|
6145
6145
|
reference: w,
|
6146
|
-
element:
|
6146
|
+
element: _,
|
6147
6147
|
strategy: "absolute",
|
6148
6148
|
placement: n
|
6149
|
-
}),
|
6150
|
-
top: x.top -
|
6151
|
-
bottom:
|
6152
|
-
left: x.left -
|
6153
|
-
right:
|
6149
|
+
}), y = l0(Object.assign({}, _, C)), A = d === L3 ? y : w, F = {
|
6150
|
+
top: x.top - A.top + V.top,
|
6151
|
+
bottom: A.bottom - x.bottom + V.bottom,
|
6152
|
+
left: x.left - A.left + V.left,
|
6153
|
+
right: A.right - x.right + V.right
|
6154
6154
|
}, q = e.modifiersData.offset;
|
6155
6155
|
if (d === L3 && q) {
|
6156
6156
|
var R = q[n];
|
@@ -6163,22 +6163,22 @@ function B3(e, c) {
|
|
6163
6163
|
}
|
6164
6164
|
function PO(e, c) {
|
6165
6165
|
c === void 0 && (c = {});
|
6166
|
-
var a = c, t = a.placement, n = a.boundary, i = a.rootBoundary, s = a.padding, r = a.flipVariations, l = a.allowedAutoPlacements, f = l === void 0 ? $i : l, o = v3(t), m = o ? r ? fn : fn.filter(function(
|
6167
|
-
return v3(
|
6168
|
-
}) : q3, d = m.filter(function(
|
6169
|
-
return f.indexOf(
|
6166
|
+
var a = c, t = a.placement, n = a.boundary, i = a.rootBoundary, s = a.padding, r = a.flipVariations, l = a.allowedAutoPlacements, f = l === void 0 ? $i : l, o = v3(t), m = o ? r ? fn : fn.filter(function(b) {
|
6167
|
+
return v3(b) === o;
|
6168
|
+
}) : q3, d = m.filter(function(b) {
|
6169
|
+
return f.indexOf(b) >= 0;
|
6170
6170
|
});
|
6171
6171
|
d.length === 0 && (d = m);
|
6172
|
-
var h = d.reduce(function(
|
6173
|
-
return L
|
6174
|
-
placement:
|
6172
|
+
var h = d.reduce(function(b, L) {
|
6173
|
+
return b[L] = B3(e, {
|
6174
|
+
placement: L,
|
6175
6175
|
boundary: n,
|
6176
6176
|
rootBoundary: i,
|
6177
6177
|
padding: s
|
6178
|
-
})[v1(
|
6178
|
+
})[v1(L)], b;
|
6179
6179
|
}, {});
|
6180
|
-
return Object.keys(h).sort(function(
|
6181
|
-
return h[
|
6180
|
+
return Object.keys(h).sort(function(b, L) {
|
6181
|
+
return h[b] - h[L];
|
6182
6182
|
});
|
6183
6183
|
}
|
6184
6184
|
function BO(e) {
|
@@ -6190,17 +6190,17 @@ function BO(e) {
|
|
6190
6190
|
function jO(e) {
|
6191
6191
|
var c = e.state, a = e.options, t = e.name;
|
6192
6192
|
if (!c.modifiersData[t]._skip) {
|
6193
|
-
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !0 : s, l = a.fallbackPlacements, f = a.padding, o = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations,
|
6193
|
+
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !0 : s, l = a.fallbackPlacements, f = a.padding, o = a.boundary, m = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, b = h === void 0 ? !0 : h, L = a.allowedAutoPlacements, N = c.options.placement, V = v1(N), g = V === N, _ = l || (g || !b ? [A4(N)] : BO(N)), M = [N].concat(_).reduce(function(I2, j2) {
|
6194
6194
|
return I2.concat(v1(j2) === S0 ? PO(c, {
|
6195
6195
|
placement: j2,
|
6196
6196
|
boundary: o,
|
6197
6197
|
rootBoundary: m,
|
6198
6198
|
padding: f,
|
6199
|
-
flipVariations:
|
6200
|
-
allowedAutoPlacements:
|
6199
|
+
flipVariations: b,
|
6200
|
+
allowedAutoPlacements: L
|
6201
6201
|
}) : j2);
|
6202
|
-
}, []), x = c.rects.reference, w = c.rects.popper, C = /* @__PURE__ */ new Map(),
|
6203
|
-
var q =
|
6202
|
+
}, []), x = c.rects.reference, w = c.rects.popper, C = /* @__PURE__ */ new Map(), y = !0, A = M[0], F = 0; F < M.length; F++) {
|
6203
|
+
var q = M[F], R = v1(q), j = v3(q) === u3, r2 = [W2, t1].indexOf(R) >= 0, l2 = r2 ? "width" : "height", a2 = B3(c, {
|
6204
6204
|
placement: q,
|
6205
6205
|
boundary: o,
|
6206
6206
|
rootBoundary: m,
|
@@ -6212,14 +6212,14 @@ function jO(e) {
|
|
6212
6212
|
if (i && b2.push(a2[R] <= 0), r && b2.push(a2[h2] <= 0, a2[F2] <= 0), b2.every(function(I2) {
|
6213
6213
|
return I2;
|
6214
6214
|
})) {
|
6215
|
-
|
6215
|
+
A = q, y = !1;
|
6216
6216
|
break;
|
6217
6217
|
}
|
6218
6218
|
C.set(q, b2);
|
6219
6219
|
}
|
6220
|
-
if (
|
6221
|
-
for (var v2 =
|
6222
|
-
var o1 =
|
6220
|
+
if (y)
|
6221
|
+
for (var v2 = b ? 3 : 1, A2 = function(j2) {
|
6222
|
+
var o1 = M.find(function(f1) {
|
6223
6223
|
var R2 = C.get(f1);
|
6224
6224
|
if (R2)
|
6225
6225
|
return R2.slice(0, j2).every(function(i1) {
|
@@ -6227,13 +6227,13 @@ function jO(e) {
|
|
6227
6227
|
});
|
6228
6228
|
});
|
6229
6229
|
if (o1)
|
6230
|
-
return
|
6230
|
+
return A = o1, "break";
|
6231
6231
|
}, k2 = v2; k2 > 0; k2--) {
|
6232
6232
|
var C2 = A2(k2);
|
6233
6233
|
if (C2 === "break")
|
6234
6234
|
break;
|
6235
6235
|
}
|
6236
|
-
c.placement !==
|
6236
|
+
c.placement !== A && (c.modifiersData[t]._skip = !0, c.placement = A, c.reset = !0);
|
6237
6237
|
}
|
6238
6238
|
}
|
6239
6239
|
const FO = {
|
@@ -6330,33 +6330,33 @@ function QO(e) {
|
|
6330
6330
|
return e === "x" ? "y" : "x";
|
6331
6331
|
}
|
6332
6332
|
function XO(e) {
|
6333
|
-
var c = e.state, a = e.options, t = e.name, n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !1 : s, l = a.boundary, f = a.rootBoundary, o = a.altBoundary, m = a.padding, d = a.tether, h = d === void 0 ? !0 : d,
|
6333
|
+
var c = e.state, a = e.options, t = e.name, n = a.mainAxis, i = n === void 0 ? !0 : n, s = a.altAxis, r = s === void 0 ? !1 : s, l = a.boundary, f = a.rootBoundary, o = a.altBoundary, m = a.padding, d = a.tether, h = d === void 0 ? !0 : d, b = a.tetherOffset, L = b === void 0 ? 0 : b, N = B3(c, {
|
6334
6334
|
boundary: l,
|
6335
6335
|
rootBoundary: f,
|
6336
6336
|
padding: m,
|
6337
6337
|
altBoundary: o
|
6338
|
-
}), V = v1(c.placement),
|
6338
|
+
}), V = v1(c.placement), g = v3(c.placement), _ = !g, M = I0(V), x = QO(M), w = c.modifiersData.popperOffsets, C = c.rects.reference, y = c.rects.popper, A = typeof L == "function" ? L(Object.assign({}, c.rects, {
|
6339
6339
|
placement: c.placement
|
6340
|
-
})) :
|
6341
|
-
mainAxis:
|
6342
|
-
altAxis:
|
6340
|
+
})) : L, F = typeof A == "number" ? {
|
6341
|
+
mainAxis: A,
|
6342
|
+
altAxis: A
|
6343
6343
|
} : Object.assign({
|
6344
6344
|
mainAxis: 0,
|
6345
6345
|
altAxis: 0
|
6346
|
-
},
|
6346
|
+
}, A), q = c.modifiersData.offset ? c.modifiersData.offset[c.placement] : null, R = {
|
6347
6347
|
x: 0,
|
6348
6348
|
y: 0
|
6349
6349
|
};
|
6350
6350
|
if (w) {
|
6351
6351
|
if (i) {
|
6352
|
-
var j, r2 =
|
6352
|
+
var j, r2 = M === "y" ? W2 : G2, l2 = M === "y" ? t1 : n1, a2 = M === "y" ? "height" : "width", h2 = w[M], F2 = h2 + N[r2], b2 = h2 - N[l2], v2 = h ? -y[a2] / 2 : 0, A2 = g === u3 ? C[a2] : y[a2], k2 = g === u3 ? -y[a2] : -C[a2], C2 = c.elements.arrow, I2 = h && C2 ? T0(C2) : {
|
6353
6353
|
width: 0,
|
6354
6354
|
height: 0
|
6355
|
-
}, j2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Wi(), o1 = j2[r2], f1 = j2[l2], R2 = N3(0, C[a2], I2[a2]), i1 =
|
6356
|
-
w[
|
6355
|
+
}, j2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Wi(), o1 = j2[r2], f1 = j2[l2], R2 = N3(0, C[a2], I2[a2]), i1 = _ ? C[a2] / 2 - v2 - R2 - o1 - F.mainAxis : A2 - R2 - o1 - F.mainAxis, u1 = _ ? -C[a2] / 2 + v2 + R2 + f1 + F.mainAxis : k2 + R2 + f1 + F.mainAxis, s1 = c.elements.arrow && W3(c.elements.arrow), F1 = s1 ? M === "y" ? s1.clientTop || 0 : s1.clientLeft || 0 : 0, z = (j = q == null ? void 0 : q[M]) != null ? j : 0, v = h2 + i1 - z - F1, S = h2 + u1 - z, U = N3(h ? S4(F2, v) : F2, h2, h ? G1(b2, S) : b2);
|
6356
|
+
w[M] = U, R[M] = U - h2;
|
6357
6357
|
}
|
6358
6358
|
if (r) {
|
6359
|
-
var J, u2 =
|
6359
|
+
var J, u2 = M === "x" ? W2 : G2, J2 = M === "x" ? t1 : n1, O2 = w[x], e3 = x === "y" ? "height" : "width", m4 = O2 + N[u2], d4 = O2 - N[J2], L2 = [W2, G2].indexOf(V) !== -1, T = (J = q == null ? void 0 : q[x]) != null ? J : 0, P = L2 ? m4 : O2 - C[e3] - y[e3] - T + F.altAxis, o2 = L2 ? O2 + C[e3] + y[e3] - T - F.altAxis : d4, _2 = h && L2 ? HO(P, O2, o2) : N3(h ? P : m4, O2, h ? o2 : d4);
|
6360
6360
|
w[x] = _2, R[x] = _2 - O2;
|
6361
6361
|
}
|
6362
6362
|
c.modifiersData[t] = R;
|
@@ -6479,15 +6479,15 @@ function sP(e) {
|
|
6479
6479
|
}, m = [], d = !1, h = {
|
6480
6480
|
state: o,
|
6481
6481
|
setOptions: function(V) {
|
6482
|
-
var
|
6483
|
-
|
6482
|
+
var g = typeof V == "function" ? V(o.options) : V;
|
6483
|
+
L(), o.options = Object.assign({}, i, o.options, g), o.scrollParents = {
|
6484
6484
|
reference: K1(r) ? x3(r) : r.contextElement ? x3(r.contextElement) : [],
|
6485
6485
|
popper: x3(l)
|
6486
6486
|
};
|
6487
|
-
var
|
6488
|
-
return o.orderedModifiers =
|
6489
|
-
return
|
6490
|
-
}),
|
6487
|
+
var _ = tP(iP([].concat(t, o.options.modifiers)));
|
6488
|
+
return o.orderedModifiers = _.filter(function(M) {
|
6489
|
+
return M.enabled;
|
6490
|
+
}), b(), h.update();
|
6491
6491
|
},
|
6492
6492
|
// Sync update – it will always be executed, even if not necessary. This
|
6493
6493
|
// is useful for low frequency updates where sync behavior simplifies the
|
@@ -6496,24 +6496,24 @@ function sP(e) {
|
|
6496
6496
|
// prefer the async Popper#update method
|
6497
6497
|
forceUpdate: function() {
|
6498
6498
|
if (!d) {
|
6499
|
-
var V = o.elements,
|
6500
|
-
if (zn(
|
6499
|
+
var V = o.elements, g = V.reference, _ = V.popper;
|
6500
|
+
if (zn(g, _)) {
|
6501
6501
|
o.rects = {
|
6502
|
-
reference: cP(
|
6503
|
-
popper: T0(
|
6502
|
+
reference: cP(g, W3(_), o.options.strategy === "fixed"),
|
6503
|
+
popper: T0(_)
|
6504
6504
|
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(F) {
|
6505
6505
|
return o.modifiersData[F.name] = Object.assign({}, F.data);
|
6506
6506
|
});
|
6507
|
-
for (var
|
6507
|
+
for (var M = 0; M < o.orderedModifiers.length; M++) {
|
6508
6508
|
if (o.reset === !0) {
|
6509
|
-
o.reset = !1,
|
6509
|
+
o.reset = !1, M = -1;
|
6510
6510
|
continue;
|
6511
6511
|
}
|
6512
|
-
var x = o.orderedModifiers[
|
6512
|
+
var x = o.orderedModifiers[M], w = x.fn, C = x.options, y = C === void 0 ? {} : C, A = x.name;
|
6513
6513
|
typeof w == "function" && (o = w({
|
6514
6514
|
state: o,
|
6515
|
-
options:
|
6516
|
-
name:
|
6515
|
+
options: y,
|
6516
|
+
name: A,
|
6517
6517
|
instance: h
|
6518
6518
|
}) || o);
|
6519
6519
|
}
|
@@ -6523,37 +6523,37 @@ function sP(e) {
|
|
6523
6523
|
// Async and optimistically optimized update – it will not be executed if
|
6524
6524
|
// not necessary (debounced to run at most once-per-tick)
|
6525
6525
|
update: nP(function() {
|
6526
|
-
return new Promise(function(
|
6527
|
-
h.forceUpdate(),
|
6526
|
+
return new Promise(function(N) {
|
6527
|
+
h.forceUpdate(), N(o);
|
6528
6528
|
});
|
6529
6529
|
}),
|
6530
6530
|
destroy: function() {
|
6531
|
-
|
6531
|
+
L(), d = !0;
|
6532
6532
|
}
|
6533
6533
|
};
|
6534
6534
|
if (!zn(r, l))
|
6535
6535
|
return h;
|
6536
|
-
h.setOptions(f).then(function(
|
6537
|
-
!d && f.onFirstUpdate && f.onFirstUpdate(
|
6536
|
+
h.setOptions(f).then(function(N) {
|
6537
|
+
!d && f.onFirstUpdate && f.onFirstUpdate(N);
|
6538
6538
|
});
|
6539
|
-
function
|
6540
|
-
o.orderedModifiers.forEach(function(
|
6541
|
-
var V =
|
6542
|
-
if (typeof
|
6543
|
-
var x =
|
6539
|
+
function b() {
|
6540
|
+
o.orderedModifiers.forEach(function(N) {
|
6541
|
+
var V = N.name, g = N.options, _ = g === void 0 ? {} : g, M = N.effect;
|
6542
|
+
if (typeof M == "function") {
|
6543
|
+
var x = M({
|
6544
6544
|
state: o,
|
6545
6545
|
name: V,
|
6546
6546
|
instance: h,
|
6547
|
-
options:
|
6547
|
+
options: _
|
6548
6548
|
}), w = function() {
|
6549
6549
|
};
|
6550
6550
|
m.push(x || w);
|
6551
6551
|
}
|
6552
6552
|
});
|
6553
6553
|
}
|
6554
|
-
function
|
6555
|
-
m.forEach(function(
|
6556
|
-
return
|
6554
|
+
function L() {
|
6555
|
+
m.forEach(function(N) {
|
6556
|
+
return N();
|
6557
6557
|
}), m = [];
|
6558
6558
|
}
|
6559
6559
|
return h;
|
@@ -6629,10 +6629,10 @@ function pP(e, c, a = {}) {
|
|
6629
6629
|
let r = !0;
|
6630
6630
|
const l = (d) => n.some((h) => {
|
6631
6631
|
if (typeof h == "string")
|
6632
|
-
return Array.from(t.document.querySelectorAll(h)).some((
|
6632
|
+
return Array.from(t.document.querySelectorAll(h)).some((b) => b === d.target || d.composedPath().includes(b));
|
6633
6633
|
{
|
6634
|
-
const
|
6635
|
-
return
|
6634
|
+
const b = _3(h);
|
6635
|
+
return b && (d.target === b || d.composedPath().includes(b));
|
6636
6636
|
}
|
6637
6637
|
}), o = [
|
6638
6638
|
U6(t, "click", (d) => {
|
@@ -6651,8 +6651,8 @@ function pP(e, c, a = {}) {
|
|
6651
6651
|
}, { passive: !0 }),
|
6652
6652
|
s && U6(t, "blur", (d) => {
|
6653
6653
|
var h;
|
6654
|
-
const
|
6655
|
-
((h = t.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(
|
6654
|
+
const b = _3(e);
|
6655
|
+
((h = t.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(b != null && b.contains(t.document.activeElement)) && c(d);
|
6656
6656
|
})
|
6657
6657
|
].filter(Boolean);
|
6658
6658
|
return () => o.forEach((d) => d());
|
@@ -6761,96 +6761,96 @@ const An = {
|
|
6761
6761
|
},
|
6762
6762
|
...e
|
6763
6763
|
}, t = Z(void 0), n = Z(void 0), i = Z(void 0), s = Z(!1), r = Z(!1), l = Z(!1), f = Z(a.placement || "top"), o = E(() => {
|
6764
|
-
let { modifiers:
|
6765
|
-
return a.modifiers && (
|
6764
|
+
let { modifiers: y } = An;
|
6765
|
+
return a.modifiers && (y = [...y, ...a.modifiers]), {
|
6766
6766
|
...An,
|
6767
6767
|
strategy: a.strategy,
|
6768
6768
|
placement: a.placement,
|
6769
|
-
modifiers:
|
6769
|
+
modifiers: y,
|
6770
6770
|
...a.popperOptions
|
6771
6771
|
};
|
6772
6772
|
}), m = function() {
|
6773
6773
|
return a.hover === !1 || a.interactive === !1 ? a.closeDelay : a.closeDelay === 0 ? 150 : a.closeDelay;
|
6774
6774
|
}, d = Hn(async () => {
|
6775
|
-
var
|
6776
|
-
const
|
6777
|
-
f.value = (
|
6775
|
+
var A;
|
6776
|
+
const y = await ((A = i.value) == null ? void 0 : A.update());
|
6777
|
+
f.value = (y == null ? void 0 : y.placement) || a.placement, s.value = !0;
|
6778
6778
|
}, a.openDelay), h = Hn(() => {
|
6779
6779
|
if (a.hover === !1 || a.interactive === !1) {
|
6780
6780
|
s.value = !1;
|
6781
6781
|
return;
|
6782
6782
|
}
|
6783
6783
|
r.value === !1 && l.value === !1 && (s.value = !1);
|
6784
|
-
}, m()),
|
6785
|
-
let
|
6786
|
-
if (
|
6784
|
+
}, m()), b = (y = "") => {
|
6785
|
+
let A = y;
|
6786
|
+
if (y === "" && (A = s.value ? "close" : "open"), A === "open") {
|
6787
6787
|
d();
|
6788
6788
|
return;
|
6789
6789
|
}
|
6790
6790
|
h();
|
6791
|
-
},
|
6792
|
-
a.hover !== !1 && (
|
6793
|
-
},
|
6794
|
-
const { slots: F } =
|
6791
|
+
}, L = (y = "", A = "") => {
|
6792
|
+
a.hover !== !1 && (A === "trigger" ? r.value = y === "open" : l.value = y === "open", b(y));
|
6793
|
+
}, N = function(y, A) {
|
6794
|
+
const { slots: F } = A;
|
6795
6795
|
return M1(
|
6796
6796
|
"div",
|
6797
6797
|
{
|
6798
6798
|
class: "trigger-element",
|
6799
6799
|
ref: t,
|
6800
6800
|
ariaDescribedby: "tooltip",
|
6801
|
-
onMouseenter: () =>
|
6802
|
-
onMouseleave: () =>
|
6803
|
-
onFocus: () =>
|
6804
|
-
onClick: () =>
|
6801
|
+
onMouseenter: () => L("open", "trigger"),
|
6802
|
+
onMouseleave: () => L("close", "trigger"),
|
6803
|
+
onFocus: () => L("open"),
|
6804
|
+
onClick: () => b()
|
6805
6805
|
},
|
6806
6806
|
F.default ? F.default() : ""
|
6807
6807
|
);
|
6808
6808
|
}, V = E(() => {
|
6809
|
-
const { animation:
|
6810
|
-
if (
|
6809
|
+
const { animation: y } = a;
|
6810
|
+
if (y === "none")
|
6811
6811
|
return {
|
6812
6812
|
outer: "",
|
6813
6813
|
inner: ""
|
6814
6814
|
};
|
6815
|
-
let
|
6816
|
-
return
|
6815
|
+
let A = y;
|
6816
|
+
return y === "fade-slide" && (A = "shift-in"), {
|
6817
6817
|
outer: "fade",
|
6818
|
-
inner:
|
6818
|
+
inner: A
|
6819
6819
|
};
|
6820
|
-
}),
|
6821
|
-
const { animationDuration:
|
6822
|
-
if (!Array.isArray(
|
6823
|
-
const q =
|
6820
|
+
}), g = E(() => {
|
6821
|
+
const { animationDuration: y } = a;
|
6822
|
+
if (!Array.isArray(y)) {
|
6823
|
+
const q = y || 300;
|
6824
6824
|
return {
|
6825
6825
|
enter: `${q / 1e3}s`,
|
6826
6826
|
leave: `${q / 1e3}s`
|
6827
6827
|
};
|
6828
6828
|
}
|
6829
|
-
const [
|
6829
|
+
const [A, F] = y;
|
6830
6830
|
return {
|
6831
|
-
enter: `${
|
6831
|
+
enter: `${A / 1e3}s`,
|
6832
6832
|
leave: `${F / 1e3}s`
|
6833
6833
|
};
|
6834
|
-
}),
|
6835
|
-
const
|
6836
|
-
return
|
6837
|
-
}),
|
6838
|
-
const
|
6839
|
-
return
|
6834
|
+
}), _ = E(() => {
|
6835
|
+
const y = Object.keys(Nn).find((A) => f.value.startsWith(A));
|
6836
|
+
return y === void 0 ? "translate(0, 0)" : Nn[y];
|
6837
|
+
}), M = E(() => {
|
6838
|
+
const y = Object.keys(xn).find((A) => f.value.startsWith(A));
|
6839
|
+
return y === void 0 ? "center center" : xn[y];
|
6840
6840
|
}), x = E(() => {
|
6841
6841
|
if (i.value === void 0)
|
6842
6842
|
return "";
|
6843
|
-
const
|
6844
|
-
"--vue-popper-enter-duration":
|
6845
|
-
"--vue-popper-leave-duration":
|
6846
|
-
"--vue-popper-shift-transform":
|
6847
|
-
"--vue-popper-scale-transform-origin":
|
6848
|
-
},
|
6849
|
-
return MP(
|
6850
|
-
}), w = (
|
6851
|
-
a.onTransition !== void 0 && a.onTransition(
|
6852
|
-
}, C = function(
|
6853
|
-
const { slots: F } =
|
6843
|
+
const y = {
|
6844
|
+
"--vue-popper-enter-duration": g.value.enter,
|
6845
|
+
"--vue-popper-leave-duration": g.value.leave,
|
6846
|
+
"--vue-popper-shift-transform": _.value,
|
6847
|
+
"--vue-popper-scale-transform-origin": M.value
|
6848
|
+
}, A = i.value.state.styles.popper;
|
6849
|
+
return MP(A, y);
|
6850
|
+
}), w = (y, A) => {
|
6851
|
+
a.onTransition !== void 0 && a.onTransition(y, A);
|
6852
|
+
}, C = function(y, A) {
|
6853
|
+
const { slots: F } = A;
|
6854
6854
|
return M1(
|
6855
6855
|
w1,
|
6856
6856
|
{ name: V.value.outer },
|
@@ -6863,10 +6863,10 @@ const An = {
|
|
6863
6863
|
ref: n,
|
6864
6864
|
style: x.value,
|
6865
6865
|
onMouseleave: () => {
|
6866
|
-
a.hover === !1 || a.interactive === !1 ||
|
6866
|
+
a.hover === !1 || a.interactive === !1 || L("close", "tooltip");
|
6867
6867
|
},
|
6868
6868
|
onMouseenter: () => {
|
6869
|
-
a.hover === !1 || a.interactive === !1 ||
|
6869
|
+
a.hover === !1 || a.interactive === !1 || L("open", "tooltip");
|
6870
6870
|
}
|
6871
6871
|
},
|
6872
6872
|
[
|
@@ -6880,13 +6880,13 @@ const An = {
|
|
6880
6880
|
w("before-enter", q);
|
6881
6881
|
},
|
6882
6882
|
onEnter(q) {
|
6883
|
-
V.value.inner === "shift-out" && (q.style.animation = `shift-out ${
|
6883
|
+
V.value.inner === "shift-out" && (q.style.animation = `shift-out ${g.value.enter}`), w("enter", q);
|
6884
6884
|
},
|
6885
6885
|
onAfterEnter(q) {
|
6886
|
-
V.value.inner === "shift-out" && (q.style.transform =
|
6886
|
+
V.value.inner === "shift-out" && (q.style.transform = _.value), w("after-enter", q);
|
6887
6887
|
},
|
6888
6888
|
onBeforeLeave(q) {
|
6889
|
-
V.value.inner === "shift-out" && (q.style.transform =
|
6889
|
+
V.value.inner === "shift-out" && (q.style.transform = _.value, q.style.animation = ""), w("before-leave", q);
|
6890
6890
|
},
|
6891
6891
|
onLeave(q) {
|
6892
6892
|
V.value.inner === "shift-out" && (q.style.transform = "translate(0, 0)"), w("leave", q);
|
@@ -6922,7 +6922,7 @@ const An = {
|
|
6922
6922
|
return pP(
|
6923
6923
|
t,
|
6924
6924
|
() => {
|
6925
|
-
a.disableClickOutside !== !0 &&
|
6925
|
+
a.disableClickOutside !== !0 && b("close");
|
6926
6926
|
},
|
6927
6927
|
{ ignore: [n] }
|
6928
6928
|
), M2(() => {
|
@@ -6932,17 +6932,17 @@ const An = {
|
|
6932
6932
|
o.value
|
6933
6933
|
));
|
6934
6934
|
}), ni(() => {
|
6935
|
+
var y;
|
6936
|
+
(y = i.value) == null || y.destroy(), i.value = void 0;
|
6937
|
+
}), s2(s, (y) => {
|
6935
6938
|
var A;
|
6936
|
-
(
|
6937
|
-
}), s2(s, (A) => {
|
6938
|
-
var N;
|
6939
|
-
if (A === !1) {
|
6939
|
+
if (y === !1) {
|
6940
6940
|
a.onClosed !== void 0 && a.onClosed();
|
6941
6941
|
return;
|
6942
6942
|
}
|
6943
|
-
a.onOpened !== void 0 && a.onOpened(), (
|
6943
|
+
a.onOpened !== void 0 && a.onOpened(), (A = i.value) == null || A.update();
|
6944
6944
|
}), {
|
6945
|
-
triggerElement:
|
6945
|
+
triggerElement: N,
|
6946
6946
|
tooltipElement: C,
|
6947
6947
|
popperInstance: i,
|
6948
6948
|
isOpened: E(() => s.value)
|
@@ -18093,31 +18093,31 @@ function LB(e) {
|
|
18093
18093
|
}];
|
18094
18094
|
}
|
18095
18095
|
function H9(e) {
|
18096
|
-
var c = e.icons, a = c.main, t = c.mask, n = e.prefix, i = e.iconName, s = e.transform, r = e.symbol, l = e.title, f = e.maskId, o = e.titleId, m = e.extra, d = e.watchable, h = d === void 0 ? !1 : d,
|
18097
|
-
return m.classes.indexOf(
|
18098
|
-
}).filter(function(
|
18099
|
-
return
|
18100
|
-
}).concat(m.classes).join(" "),
|
18096
|
+
var c = e.icons, a = c.main, t = c.mask, n = e.prefix, i = e.iconName, s = e.transform, r = e.symbol, l = e.title, f = e.maskId, o = e.titleId, m = e.extra, d = e.watchable, h = d === void 0 ? !1 : d, b = t.found ? t : a, L = b.width, N = b.height, V = n === "fak", g = [G.replacementClass, i ? "".concat(G.cssPrefix, "-").concat(i) : ""].filter(function(A) {
|
18097
|
+
return m.classes.indexOf(A) === -1;
|
18098
|
+
}).filter(function(A) {
|
18099
|
+
return A !== "" || !!A;
|
18100
|
+
}).concat(m.classes).join(" "), _ = {
|
18101
18101
|
children: [],
|
18102
18102
|
attributes: W(W({}, m.attributes), {}, {
|
18103
18103
|
"data-prefix": n,
|
18104
18104
|
"data-icon": i,
|
18105
|
-
class:
|
18105
|
+
class: g,
|
18106
18106
|
role: m.attributes.role || "img",
|
18107
18107
|
xmlns: "http://www.w3.org/2000/svg",
|
18108
|
-
viewBox: "0 0 ".concat(
|
18108
|
+
viewBox: "0 0 ".concat(L, " ").concat(N)
|
18109
18109
|
})
|
18110
|
-
},
|
18111
|
-
width: "".concat(
|
18110
|
+
}, M = V && !~m.classes.indexOf("fa-fw") ? {
|
18111
|
+
width: "".concat(L / N * 16 * 0.0625, "em")
|
18112
18112
|
} : {};
|
18113
|
-
h && (
|
18113
|
+
h && (_.attributes[Z1] = ""), l && (_.children.push({
|
18114
18114
|
tag: "title",
|
18115
18115
|
attributes: {
|
18116
|
-
id:
|
18116
|
+
id: _.attributes["aria-labelledby"] || "title-".concat(o || U3())
|
18117
18117
|
},
|
18118
18118
|
children: [l]
|
18119
|
-
}), delete
|
18120
|
-
var x = W(W({},
|
18119
|
+
}), delete _.attributes.title);
|
18120
|
+
var x = W(W({}, _), {}, {
|
18121
18121
|
prefix: n,
|
18122
18122
|
iconName: i,
|
18123
18123
|
main: a,
|
@@ -18125,15 +18125,15 @@ function H9(e) {
|
|
18125
18125
|
maskId: f,
|
18126
18126
|
transform: s,
|
18127
18127
|
symbol: r,
|
18128
|
-
styles: W(W({},
|
18128
|
+
styles: W(W({}, M), m.styles)
|
18129
18129
|
}), w = t.found && a.found ? y1("generateAbstractMask", x) || {
|
18130
18130
|
children: [],
|
18131
18131
|
attributes: {}
|
18132
18132
|
} : y1("generateAbstractIcon", x) || {
|
18133
18133
|
children: [],
|
18134
18134
|
attributes: {}
|
18135
|
-
}, C = w.children,
|
18136
|
-
return x.children = C, x.attributes =
|
18135
|
+
}, C = w.children, y = w.attributes;
|
18136
|
+
return x.children = C, x.attributes = y, r ? LB(x) : CB(x);
|
18137
18137
|
}
|
18138
18138
|
function Rn(e) {
|
18139
18139
|
var c = e.content, a = e.width, t = e.height, n = e.transform, i = e.title, s = e.extra, r = e.watchable, l = r === void 0 ? !1 : r, f = W(W(W({}, s.attributes), i ? {
|
@@ -18366,8 +18366,8 @@ function Wn(e) {
|
|
18366
18366
|
b3(f).forEach(function(m) {
|
18367
18367
|
if (m.type === "childList" && m.addedNodes.length > 0 && !Un(m.addedNodes[0]) && (G.searchPseudoElements && s(m.target), a(m.target)), m.type === "attributes" && m.target.parentNode && G.searchPseudoElements && s(m.target.parentNode), m.type === "attributes" && Un(m.target) && ~qP.indexOf(m.attributeName))
|
18368
18368
|
if (m.attributeName === "class" && xB(m.target)) {
|
18369
|
-
var d = O6(p9(m.target)), h = d.prefix,
|
18370
|
-
m.target.setAttribute(m9, h || o),
|
18369
|
+
var d = O6(p9(m.target)), h = d.prefix, b = d.iconName;
|
18370
|
+
m.target.setAttribute(m9, h || o), b && m.target.setAttribute(d9, b);
|
18371
18371
|
} else
|
18372
18372
|
kB(m.target) && n(m.target);
|
18373
18373
|
});
|
@@ -18519,7 +18519,7 @@ function RB(e) {
|
|
18519
18519
|
};
|
18520
18520
|
}
|
18521
18521
|
var $B = function(c) {
|
18522
|
-
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, i = a.symbol, s = i === void 0 ? !1 : i, r = a.mask, l = r === void 0 ? null : r, f = a.maskId, o = f === void 0 ? null : f, m = a.title, d = m === void 0 ? null : m, h = a.titleId,
|
18522
|
+
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = a.transform, n = t === void 0 ? d1 : t, i = a.symbol, s = i === void 0 ? !1 : i, r = a.mask, l = r === void 0 ? null : r, f = a.maskId, o = f === void 0 ? null : f, m = a.title, d = m === void 0 ? null : m, h = a.titleId, b = h === void 0 ? null : h, L = a.classes, N = L === void 0 ? [] : L, V = a.attributes, g = V === void 0 ? {} : V, _ = a.styles, M = _ === void 0 ? {} : _;
|
18523
18523
|
if (c) {
|
18524
18524
|
var x = c.prefix, w = c.iconName, C = c.icon;
|
18525
18525
|
return P6(W({
|
@@ -18528,7 +18528,7 @@ var $B = function(c) {
|
|
18528
18528
|
return J1("beforeDOMElementCreation", {
|
18529
18529
|
iconDefinition: c,
|
18530
18530
|
params: a
|
18531
|
-
}), G.autoA11y && (d ?
|
18531
|
+
}), G.autoA11y && (d ? g["aria-labelledby"] = "".concat(G.replacementClass, "-title-").concat(b || U3()) : (g["aria-hidden"] = "true", g.focusable = "false")), H9({
|
18532
18532
|
icons: {
|
18533
18533
|
main: h0(C),
|
18534
18534
|
mask: l ? h0(l.icon) : {
|
@@ -18544,11 +18544,11 @@ var $B = function(c) {
|
|
18544
18544
|
symbol: s,
|
18545
18545
|
title: d,
|
18546
18546
|
maskId: o,
|
18547
|
-
titleId:
|
18547
|
+
titleId: b,
|
18548
18548
|
extra: {
|
18549
|
-
attributes:
|
18550
|
-
styles:
|
18551
|
-
classes:
|
18549
|
+
attributes: g,
|
18550
|
+
styles: M,
|
18551
|
+
classes: N
|
18552
18552
|
}
|
18553
18553
|
});
|
18554
18554
|
});
|
@@ -18573,18 +18573,18 @@ var $B = function(c) {
|
|
18573
18573
|
return Yn(n, s);
|
18574
18574
|
}, c.generateSvgReplacementMutation = function(a, t) {
|
18575
18575
|
var n = t.iconName, i = t.title, s = t.titleId, r = t.prefix, l = t.transform, f = t.symbol, o = t.mask, m = t.maskId, d = t.extra;
|
18576
|
-
return new Promise(function(h,
|
18576
|
+
return new Promise(function(h, b) {
|
18577
18577
|
Promise.all([V0(n, r), o.iconName ? V0(o.iconName, o.prefix) : Promise.resolve({
|
18578
18578
|
found: !1,
|
18579
18579
|
width: 512,
|
18580
18580
|
height: 512,
|
18581
18581
|
icon: {}
|
18582
|
-
})]).then(function(
|
18583
|
-
var
|
18582
|
+
})]).then(function(L) {
|
18583
|
+
var N = f9(L, 2), V = N[0], g = N[1];
|
18584
18584
|
h([a, H9({
|
18585
18585
|
icons: {
|
18586
18586
|
main: V,
|
18587
|
-
mask:
|
18587
|
+
mask: g
|
18588
18588
|
},
|
18589
18589
|
prefix: r,
|
18590
18590
|
iconName: n,
|
@@ -18596,7 +18596,7 @@ var $B = function(c) {
|
|
18596
18596
|
extra: d,
|
18597
18597
|
watchable: !0
|
18598
18598
|
})]);
|
18599
|
-
}).catch(
|
18599
|
+
}).catch(b);
|
18600
18600
|
});
|
18601
18601
|
}, c.generateAbstractIcon = function(a) {
|
18602
18602
|
var t = a.children, n = a.attributes, i = a.main, s = a.transform, r = a.styles, l = E6(r);
|
@@ -18729,26 +18729,26 @@ function Xn(e, c) {
|
|
18729
18729
|
if (s && !l)
|
18730
18730
|
return e.removeChild(s), t();
|
18731
18731
|
if (l && o !== "none" && o !== "") {
|
18732
|
-
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? F3[d][l[2].toLowerCase()] : $P[d][f],
|
18732
|
+
var m = r.getPropertyValue("content"), d = ~["Sharp"].indexOf(l[2]) ? x2 : z2, h = ~["Solid", "Regular", "Light", "Thin", "Duotone", "Brands", "Kit"].indexOf(l[2]) ? F3[d][l[2].toLowerCase()] : $P[d][f], b = QB(m), L = b.value, N = b.isSecondary, V = l[0].startsWith("FontAwesome"), g = z9(h, L), _ = g;
|
18733
18733
|
if (V) {
|
18734
|
-
var
|
18735
|
-
|
18734
|
+
var M = pB(L);
|
18735
|
+
M.iconName && M.prefix && (g = M.iconName, h = M.prefix);
|
18736
18736
|
}
|
18737
|
-
if (
|
18738
|
-
e.setAttribute(a,
|
18737
|
+
if (g && !N && (!s || s.getAttribute(m9) !== h || s.getAttribute(d9) !== _)) {
|
18738
|
+
e.setAttribute(a, _), s && e.removeChild(s);
|
18739
18739
|
var x = BB(), w = x.extra;
|
18740
|
-
w.attributes[u0] = c, V0(
|
18741
|
-
var
|
18740
|
+
w.attributes[u0] = c, V0(g, h).then(function(C) {
|
18741
|
+
var y = H9(W(W({}, x), {}, {
|
18742
18742
|
icons: {
|
18743
18743
|
main: C,
|
18744
18744
|
mask: g9()
|
18745
18745
|
},
|
18746
18746
|
prefix: h,
|
18747
|
-
iconName:
|
18747
|
+
iconName: _,
|
18748
18748
|
extra: w,
|
18749
18749
|
watchable: !0
|
18750
|
-
})),
|
18751
|
-
c === "::before" ? e.insertBefore(
|
18750
|
+
})), A = H2.createElementNS("http://www.w3.org/2000/svg", "svg");
|
18751
|
+
c === "::before" ? e.insertBefore(A, e.firstChild) : e.appendChild(A), A.outerHTML = y.map(function(F) {
|
18752
18752
|
return u4(F);
|
18753
18753
|
}).join(`
|
18754
18754
|
`), e.removeAttribute(a), t();
|
@@ -18934,48 +18934,48 @@ var aj = {
|
|
18934
18934
|
transform: l,
|
18935
18935
|
containerWidth: m,
|
18936
18936
|
iconWidth: f
|
18937
|
-
}),
|
18937
|
+
}), b = {
|
18938
18938
|
tag: "rect",
|
18939
18939
|
attributes: W(W({}, Y6), {}, {
|
18940
18940
|
fill: "white"
|
18941
18941
|
})
|
18942
|
-
},
|
18942
|
+
}, L = o.children ? {
|
18943
18943
|
children: o.children.map(ei)
|
18944
|
-
} : {},
|
18944
|
+
} : {}, N = {
|
18945
18945
|
tag: "g",
|
18946
18946
|
attributes: W({}, h.inner),
|
18947
18947
|
children: [ei(W({
|
18948
18948
|
tag: o.tag,
|
18949
18949
|
attributes: W(W({}, o.attributes), h.path)
|
18950
|
-
},
|
18950
|
+
}, L))]
|
18951
18951
|
}, V = {
|
18952
18952
|
tag: "g",
|
18953
18953
|
attributes: W({}, h.outer),
|
18954
|
-
children: [
|
18955
|
-
},
|
18954
|
+
children: [N]
|
18955
|
+
}, g = "mask-".concat(r || U3()), _ = "clip-".concat(r || U3()), M = {
|
18956
18956
|
tag: "mask",
|
18957
18957
|
attributes: W(W({}, Y6), {}, {
|
18958
|
-
id:
|
18958
|
+
id: g,
|
18959
18959
|
maskUnits: "userSpaceOnUse",
|
18960
18960
|
maskContentUnits: "userSpaceOnUse"
|
18961
18961
|
}),
|
18962
|
-
children: [
|
18962
|
+
children: [b, V]
|
18963
18963
|
}, x = {
|
18964
18964
|
tag: "defs",
|
18965
18965
|
children: [{
|
18966
18966
|
tag: "clipPath",
|
18967
18967
|
attributes: {
|
18968
|
-
id:
|
18968
|
+
id: _
|
18969
18969
|
},
|
18970
18970
|
children: cj(d)
|
18971
|
-
},
|
18971
|
+
}, M]
|
18972
18972
|
};
|
18973
18973
|
return t.push(x, {
|
18974
18974
|
tag: "rect",
|
18975
18975
|
attributes: W({
|
18976
18976
|
fill: "currentColor",
|
18977
|
-
"clip-path": "url(#".concat(
|
18978
|
-
mask: "url(#".concat(
|
18977
|
+
"clip-path": "url(#".concat(_, ")"),
|
18978
|
+
mask: "url(#".concat(g, ")")
|
18979
18979
|
}, Y6)
|
18980
18980
|
}), {
|
18981
18981
|
children: t,
|
@@ -19095,9 +19095,9 @@ const rj = Q({
|
|
19095
19095
|
if (l.prefix)
|
19096
19096
|
return;
|
19097
19097
|
const m = Object.keys(l.attributes || {}).reduce(
|
19098
|
-
(h,
|
19099
|
-
const
|
19100
|
-
return h.attrs[
|
19098
|
+
(h, b) => {
|
19099
|
+
const L = l.attributes[b];
|
19100
|
+
return h.attrs[b] = L, h;
|
19101
19101
|
},
|
19102
19102
|
{
|
19103
19103
|
attrs: {}
|
@@ -19114,7 +19114,7 @@ const rj = Q({
|
|
19114
19114
|
};
|
19115
19115
|
function t(l) {
|
19116
19116
|
let d = `fa-${l}`.split("-").map(
|
19117
|
-
(
|
19117
|
+
(b) => b.charAt(0).toUpperCase() + b.slice(1).toLowerCase()
|
19118
19118
|
).join("");
|
19119
19119
|
return d.charAt(0).toLowerCase() + d.slice(1);
|
19120
19120
|
}
|
@@ -20062,10 +20062,10 @@ const sF = /* @__PURE__ */ X(iF, [["__scopeId", "data-v-ff11beb8"]]), rF = { cla
|
|
20062
20062
|
], 10, oF),
|
20063
20063
|
I(h, null, {
|
20064
20064
|
default: i2(() => [
|
20065
|
-
(p(!0), H(t2, null, g2(n.value, (
|
20066
|
-
key:
|
20067
|
-
optionLabel:
|
20068
|
-
onOnSelected: (
|
20065
|
+
(p(!0), H(t2, null, g2(n.value, (b) => (p(), K(d, {
|
20066
|
+
key: b,
|
20067
|
+
optionLabel: b.label,
|
20068
|
+
onOnSelected: (L) => s(b.value),
|
20069
20069
|
"data-test": "option"
|
20070
20070
|
}, null, 8, ["optionLabel", "onOnSelected"]))), 128))
|
20071
20071
|
]),
|
@@ -20302,16 +20302,16 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20302
20302
|
);
|
20303
20303
|
const l = () => {
|
20304
20304
|
r.value = [...s.value.files], c("update", r.value);
|
20305
|
-
}, f = (
|
20306
|
-
|
20305
|
+
}, f = (M) => {
|
20306
|
+
M.preventDefault(), !a.disabled && (i.value = !0);
|
20307
20307
|
}, o = () => {
|
20308
20308
|
i.value = !1;
|
20309
|
-
}, m = (
|
20310
|
-
const x = Array.from(
|
20309
|
+
}, m = (M) => {
|
20310
|
+
const x = Array.from(M), w = new DataTransfer();
|
20311
20311
|
for (let C of x) {
|
20312
|
-
const
|
20313
|
-
if (
|
20314
|
-
`.${
|
20312
|
+
const y = C.name.split(".").pop();
|
20313
|
+
if (b.value.includes(
|
20314
|
+
`.${y.toLowerCase()}`
|
20315
20315
|
)) {
|
20316
20316
|
const F = new File([C], C.name, {
|
20317
20317
|
type: C.type,
|
@@ -20322,21 +20322,21 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20322
20322
|
c("fileFormatNotAccepted", C.name);
|
20323
20323
|
}
|
20324
20324
|
return w.files;
|
20325
|
-
}, d = E(() => a.accept.split(",")), h = E(() => a.accept.split(",").join(", ")),
|
20326
|
-
() => d.value.map((
|
20327
|
-
),
|
20328
|
-
|
20329
|
-
}, V = (
|
20330
|
-
r.value.splice(
|
20331
|
-
},
|
20332
|
-
let x = URL.createObjectURL(
|
20325
|
+
}, d = E(() => a.accept.split(",")), h = E(() => a.accept.split(",").join(", ")), b = E(
|
20326
|
+
() => d.value.map((M) => M.toLocaleLowerCase())
|
20327
|
+
), L = (M) => M.split("/").pop(), N = (M) => {
|
20328
|
+
M.preventDefault(), !a.disabled && (s.value.files = m(M.dataTransfer.files), r.value = a.multiple ? [...s.value.files] : [s.value.files[0]], c("update", r.value), i.value = !1);
|
20329
|
+
}, V = (M) => {
|
20330
|
+
r.value.splice(M, 1), c("update", r.value);
|
20331
|
+
}, g = (M) => {
|
20332
|
+
let x = URL.createObjectURL(M);
|
20333
20333
|
return setTimeout(() => {
|
20334
20334
|
URL.revokeObjectURL(x);
|
20335
20335
|
}, 1e3), x;
|
20336
|
-
},
|
20337
|
-
c("download",
|
20336
|
+
}, _ = (M) => {
|
20337
|
+
c("download", M);
|
20338
20338
|
};
|
20339
|
-
return (
|
20339
|
+
return (M, x) => {
|
20340
20340
|
const w = D("AVTooltip"), C = D("AVIcon");
|
20341
20341
|
return p(), H("div", NF, [
|
20342
20342
|
e.disableLabel ? O("", !0) : (p(), H("label", {
|
@@ -20357,7 +20357,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20357
20357
|
class: Y(`AVFileInput--dropzone-container ${e.error && "error"} ${e.disabled && "disabled"}`),
|
20358
20358
|
onDragover: f,
|
20359
20359
|
onDragleave: o,
|
20360
|
-
onDrop:
|
20360
|
+
onDrop: N
|
20361
20361
|
}, [
|
20362
20362
|
u("input", {
|
20363
20363
|
type: "file",
|
@@ -20400,8 +20400,8 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20400
20400
|
])),
|
20401
20401
|
r.value.length ? (p(), H("div", jF, [
|
20402
20402
|
u("p", FF, k(B(n)("js.components.AVFileInput.uploading")), 1),
|
20403
|
-
(p(!0), H(t2, null, g2(r.value, (
|
20404
|
-
key:
|
20403
|
+
(p(!0), H(t2, null, g2(r.value, (y) => (p(), H("div", {
|
20404
|
+
key: y.name,
|
20405
20405
|
class: Y(`AVFileInput--preview-card ${e.error && "error"}`)
|
20406
20406
|
}, [
|
20407
20407
|
u("div", RF, [
|
@@ -20409,7 +20409,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20409
20409
|
e.showPreview ? (p(), H("img", {
|
20410
20410
|
key: 0,
|
20411
20411
|
class: "AVFileInput--preview-img",
|
20412
|
-
src:
|
20412
|
+
src: g(y)
|
20413
20413
|
}, null, 8, UF)) : (p(), K(C, {
|
20414
20414
|
key: 1,
|
20415
20415
|
icon: "fa-solid fa-file",
|
@@ -20418,15 +20418,15 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20418
20418
|
}))
|
20419
20419
|
]),
|
20420
20420
|
u("p", qF, [
|
20421
|
-
D2(k(
|
20422
|
-
u("em", null, k(Math.round(
|
20421
|
+
D2(k(y.name) + " ", 1),
|
20422
|
+
u("em", null, k(Math.round(y.size / 1e3) + "kb"), 1)
|
20423
20423
|
])
|
20424
20424
|
]),
|
20425
20425
|
e.disabled ? O("", !0) : (p(), H("button", {
|
20426
20426
|
key: 0,
|
20427
20427
|
class: "AVTextInput--delete-btn",
|
20428
20428
|
type: "button",
|
20429
|
-
onClick: (
|
20429
|
+
onClick: (A) => V(r.value.indexOf(y)),
|
20430
20430
|
title: "Remove file"
|
20431
20431
|
}, [
|
20432
20432
|
I(C, {
|
@@ -20439,13 +20439,13 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20439
20439
|
])) : O("", !0),
|
20440
20440
|
e.currentValue ? (p(), H("div", GF, [
|
20441
20441
|
u("p", YF, k(B(n)("js.components.AVFileInput.current")), 1),
|
20442
|
-
(p(!0), H(t2, null, g2(e.currentValue, (
|
20443
|
-
key: `image-${
|
20442
|
+
(p(!0), H(t2, null, g2(e.currentValue, (y) => (p(), H("div", {
|
20443
|
+
key: `image-${y}`
|
20444
20444
|
}, [
|
20445
20445
|
e.showPreview ? (p(), H("img", {
|
20446
20446
|
key: 0,
|
20447
20447
|
class: "AVFileInput--current-img",
|
20448
|
-
src:
|
20448
|
+
src: y,
|
20449
20449
|
alt: B(n)("js.components.AVFileInput.alt_preview")
|
20450
20450
|
}, null, 8, QF)) : (p(), H("div", XF, [
|
20451
20451
|
u("div", KF, [
|
@@ -20456,13 +20456,13 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20456
20456
|
"data-test": "file-preview-icon"
|
20457
20457
|
})
|
20458
20458
|
]),
|
20459
|
-
u("p", JF, k(
|
20459
|
+
u("p", JF, k(L(y)), 1)
|
20460
20460
|
]),
|
20461
20461
|
u("button", {
|
20462
20462
|
class: "AVTextInput--delete-btn",
|
20463
20463
|
type: "button",
|
20464
20464
|
title: "Download file",
|
20465
|
-
onClick: (
|
20465
|
+
onClick: (A) => _(y)
|
20466
20466
|
}, [
|
20467
20467
|
I(C, {
|
20468
20468
|
icon: "fa-solid fa-download",
|
@@ -21126,7 +21126,7 @@ const RR = /* @__PURE__ */ X(FR, [["__scopeId", "data-v-11042fa9"]]), $R = { cla
|
|
21126
21126
|
key: h.value,
|
21127
21127
|
class: Y(`AVTabSwitcher--button ${i.value} ${h.selected && "AVTabSwitcher--button-active"} ${h.disabled && "disabled"}`),
|
21128
21128
|
disabled: h.disabled,
|
21129
|
-
onClick: (
|
21129
|
+
onClick: (b) => f(h.value)
|
21130
21130
|
}, k(h.value), 11, UR))), 128))
|
21131
21131
|
]));
|
21132
21132
|
}
|
@@ -21737,7 +21737,7 @@ const k$ = /* @__PURE__ */ X(x$, [["__scopeId", "data-v-4e9b2c30"]]), S$ = { cla
|
|
21737
21737
|
value: d.value,
|
21738
21738
|
checked: d.checked,
|
21739
21739
|
disabled: d.disabled,
|
21740
|
-
onUpdate: (
|
21740
|
+
onUpdate: (b) => r(d.value)
|
21741
21741
|
}, null, 8, ["id", "value", "checked", "disabled", "onUpdate"]))), 128))
|
21742
21742
|
], 2),
|
21743
21743
|
e.error && e.errorMessage ? (p(), H("p", T$, k(e.errorMessage), 1)) : O("", !0)
|
@@ -22060,14 +22060,14 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22060
22060
|
var o;
|
22061
22061
|
return c.blank ? t("js.components.AVSummaryOption.blank") : (o = c.option) == null ? void 0 : o.title;
|
22062
22062
|
}), f = E(() => {
|
22063
|
-
var
|
22064
|
-
const o = Array.from(Array((
|
22065
|
-
o.forEach((
|
22066
|
-
const m = o.indexOf(Math.ceil(((
|
22063
|
+
var b, L;
|
22064
|
+
const o = Array.from(Array((b = c.option) == null ? void 0 : b.crosses).keys());
|
22065
|
+
o.forEach((N) => o[N] = N + 1);
|
22066
|
+
const m = o.indexOf(Math.ceil(((L = c.option) == null ? void 0 : L.crosses) / 2)) + 1, d = o.slice(0, m), h = o.slice(m);
|
22067
22067
|
return h.length ? [d, h] : [d];
|
22068
22068
|
});
|
22069
22069
|
return (o, m) => {
|
22070
|
-
var h,
|
22070
|
+
var h, b, L;
|
22071
22071
|
const d = D("AVOptionCheckbox");
|
22072
22072
|
return p(), H("div", {
|
22073
22073
|
class: "AVSummaryOption",
|
@@ -22075,10 +22075,10 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22075
22075
|
}, [
|
22076
22076
|
r.value ? (p(), H("div", VU, [
|
22077
22077
|
u("ul", zU, [
|
22078
|
-
(p(!0), H(t2, null, g2(r.value, (
|
22079
|
-
key:
|
22078
|
+
(p(!0), H(t2, null, g2(r.value, (N, V) => (p(), H("li", {
|
22079
|
+
key: N + V,
|
22080
22080
|
class: "AVSummaryOption--breadcrumb-item"
|
22081
|
-
}, k(
|
22081
|
+
}, k(N), 1))), 128))
|
22082
22082
|
])
|
22083
22083
|
])) : O("", !0),
|
22084
22084
|
u("div", {
|
@@ -22089,7 +22089,7 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22089
22089
|
}, [
|
22090
22090
|
(h = e.option) != null && h.image ? (p(), H("img", {
|
22091
22091
|
key: 0,
|
22092
|
-
src: (
|
22092
|
+
src: (b = e.option) == null ? void 0 : b.image,
|
22093
22093
|
class: "AVSummaryOption--img",
|
22094
22094
|
alt: B(t)("js.components.AVSummaryOption.aria_label.option_image")
|
22095
22095
|
}, null, 8, gU)) : O("", !0),
|
@@ -22099,22 +22099,22 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22099
22099
|
s.value ? O("", !0) : (p(), H("div", bU, [
|
22100
22100
|
I(d, {
|
22101
22101
|
checked: !0,
|
22102
|
-
rank: (
|
22102
|
+
rank: (L = e.option) == null ? void 0 : L.rank,
|
22103
22103
|
disabled: !0
|
22104
22104
|
}, null, 8, ["rank"])
|
22105
22105
|
]))
|
22106
22106
|
], 2),
|
22107
22107
|
s.value ? (p(), H("div", CU, [
|
22108
|
-
(p(!0), H(t2, null, g2(f.value, (
|
22109
|
-
key:
|
22108
|
+
(p(!0), H(t2, null, g2(f.value, (N) => (p(), H("div", {
|
22109
|
+
key: N.toString(),
|
22110
22110
|
class: "AVSummaryOption--group"
|
22111
22111
|
}, [
|
22112
|
-
(p(!0), H(t2, null, g2(
|
22113
|
-
var
|
22112
|
+
(p(!0), H(t2, null, g2(N, (V) => {
|
22113
|
+
var g;
|
22114
22114
|
return p(), K(d, {
|
22115
22115
|
key: V,
|
22116
22116
|
checked: !0,
|
22117
|
-
rank: (
|
22117
|
+
rank: (g = e.option) == null ? void 0 : g.rank,
|
22118
22118
|
disabled: !0
|
22119
22119
|
}, null, 8, ["rank"]);
|
22120
22120
|
}), 128))
|
@@ -22219,33 +22219,33 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22219
22219
|
var j;
|
22220
22220
|
return ((j = a.option.description) == null ? void 0 : j[i.value]) ?? "";
|
22221
22221
|
}
|
22222
|
-
),
|
22222
|
+
), b = E(() => {
|
22223
22223
|
var j;
|
22224
22224
|
return ((j = a.option.url) == null ? void 0 : j[i.value]) ?? "";
|
22225
|
-
}),
|
22225
|
+
}), L = E(
|
22226
22226
|
() => {
|
22227
22227
|
var j;
|
22228
22228
|
return ((j = a.option.videoUrl) == null ? void 0 : j[i.value]) ?? "";
|
22229
22229
|
}
|
22230
|
-
),
|
22230
|
+
), N = E(() => a.option.image), g = Z(function() {
|
22231
22231
|
return a.option.randomizeChildren ? a.option.children.slice().sort(() => Math.random() - 0.5) : a.option.children;
|
22232
|
-
}()),
|
22232
|
+
}()), _ = E(() => {
|
22233
22233
|
let j = [];
|
22234
|
-
return
|
22235
|
-
url:
|
22234
|
+
return b.value && j.push({
|
22235
|
+
url: b.value,
|
22236
22236
|
text: n("js.components.AVOption.info_link_text_html")
|
22237
|
-
}),
|
22238
|
-
url:
|
22237
|
+
}), L.value && j.push({
|
22238
|
+
url: L.value,
|
22239
22239
|
text: n("js.components.AVOption.video_link_text_html")
|
22240
22240
|
}), j;
|
22241
|
-
}),
|
22241
|
+
}), M = E(
|
22242
22242
|
() => a.option.children && a.option.children.length > 0
|
22243
|
-
), x = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : C.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), w = E(() => a.selections.length > 0 ? q(a.option.children) : 0), C = E(() => a.option.exclusive),
|
22243
|
+
), x = E(() => a.option.selectable !== void 0 && !a.option.selectable ? 0 : C.value ? 1 : a.option.voteLimit || a.contest.markingType.votesAllowedPerOption || 1), w = E(() => a.selections.length > 0 ? q(a.option.children) : 0), C = E(() => a.option.exclusive), y = E(() => {
|
22244
22244
|
const j = Array.from(Array(x.value).keys());
|
22245
22245
|
j.forEach((h2) => j[h2] = h2 + 1);
|
22246
22246
|
const r2 = j.indexOf(Math.ceil(x.value / 2)) + 1, l2 = j.slice(0, r2), a2 = j.slice(r2);
|
22247
22247
|
return a2.length ? [l2, a2] : [l2];
|
22248
|
-
}),
|
22248
|
+
}), A = E(() => a.partialResults ? a.partialResults[a.option.reference] : null), F = (j, r2 = 1) => {
|
22249
22249
|
c("checked", {
|
22250
22250
|
reference: j,
|
22251
22251
|
amount: r2
|
@@ -22283,7 +22283,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22283
22283
|
"aria-labelledby": `option_${e.option.reference}_title`
|
22284
22284
|
}, null, 8, _U),
|
22285
22285
|
I(F2, {
|
22286
|
-
collapsable: e.contest.collapsable &&
|
22286
|
+
collapsable: e.contest.collapsable && M.value,
|
22287
22287
|
"start-collapsed": e.contest.collapseDefault && !e.observerMode,
|
22288
22288
|
onAccordionOpen: r2[1] || (r2[1] = (b2) => c("accordion-open"))
|
22289
22289
|
}, hI({
|
@@ -22309,9 +22309,9 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22309
22309
|
}, [
|
22310
22310
|
u("div", AU, [
|
22311
22311
|
u("header", NU, [
|
22312
|
-
|
22312
|
+
N.value ? (p(), H("img", {
|
22313
22313
|
key: 0,
|
22314
|
-
src:
|
22314
|
+
src: N.value,
|
22315
22315
|
alt: B(n)("js.components.AVOption.aria_labels.option_image"),
|
22316
22316
|
class: "AVOption-image"
|
22317
22317
|
}, null, 8, xU)) : O("", !0),
|
@@ -22320,19 +22320,19 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22320
22320
|
textContent: k(d.value)
|
22321
22321
|
}, null, 8, kU)
|
22322
22322
|
]),
|
22323
|
-
h.value ||
|
22323
|
+
h.value || _.value.length || M.value ? (p(), H("div", SU, [
|
22324
22324
|
h.value ? (p(), H("div", wU, [
|
22325
22325
|
u("p", { innerHTML: h.value }, null, 8, TU)
|
22326
22326
|
])) : O("", !0),
|
22327
|
-
|
22328
|
-
(p(!0), H(t2, null, g2(
|
22327
|
+
_.value.length > 0 ? (p(), H("div", IU, [
|
22328
|
+
(p(!0), H(t2, null, g2(_.value, (A2) => (p(), H("a", {
|
22329
22329
|
key: A2.toString(),
|
22330
22330
|
href: A2.url,
|
22331
22331
|
class: "AVOption--links",
|
22332
22332
|
target: "_blank"
|
22333
22333
|
}, k(A2.text), 9, EU))), 128))
|
22334
22334
|
])) : O("", !0),
|
22335
|
-
v2 &&
|
22335
|
+
v2 && M.value ? (p(), H("div", DU, [
|
22336
22336
|
u("div", {
|
22337
22337
|
id: `option_${e.option.reference}_dropdown`,
|
22338
22338
|
class: "AVOption--expander-container",
|
@@ -22370,7 +22370,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22370
22370
|
}),
|
22371
22371
|
style: l1(`background-color: ${x.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
|
22372
22372
|
}, [
|
22373
|
-
(p(!0), H(t2, null, g2(
|
22373
|
+
(p(!0), H(t2, null, g2(y.value, (A2) => (p(), H("div", {
|
22374
22374
|
key: A2.toString(),
|
22375
22375
|
class: "AVOption--group"
|
22376
22376
|
}, [
|
@@ -22387,23 +22387,23 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22387
22387
|
}, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
22388
22388
|
]))), 128))
|
22389
22389
|
], 6)) : O("", !0),
|
22390
|
-
|
22390
|
+
A.value && (e.observerMode || e.disabled) ? (p(), H("div", BU, [
|
22391
22391
|
I(l2, {
|
22392
22392
|
icon: "user",
|
22393
22393
|
class: "AVOption--realtime-results-icon"
|
22394
22394
|
}),
|
22395
|
-
u("span", null, k(f.value ? `${
|
22396
|
-
|
22395
|
+
u("span", null, k(f.value ? `${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")} ${A.value.results.count}` : `${A.value.results.count} ${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")}`), 1),
|
22396
|
+
A.value.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22397
22397
|
jU,
|
22398
|
-
u("span", null, k(`${
|
22398
|
+
u("span", null, k(`${A.value.results.percentage}%`), 1)
|
22399
22399
|
], 64)) : O("", !0)
|
22400
22400
|
])) : O("", !0)
|
22401
22401
|
], 2)
|
22402
22402
|
], 14, yU)
|
22403
22403
|
]),
|
22404
22404
|
pane: i2(({ toggleCollapse: b2 }) => [
|
22405
|
-
|
22406
|
-
(p(!0), H(t2, null, g2(
|
22405
|
+
M.value ? (p(), H("div", $U, [
|
22406
|
+
(p(!0), H(t2, null, g2(g.value, (v2) => (p(), K(h2, {
|
22407
22407
|
key: v2.reference,
|
22408
22408
|
option: v2,
|
22409
22409
|
selections: e.selections,
|
@@ -22420,7 +22420,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22420
22420
|
]),
|
22421
22421
|
_: 2
|
22422
22422
|
}, [
|
22423
|
-
!e.disabled &&
|
22423
|
+
!e.disabled && A.value && !e.observerMode ? {
|
22424
22424
|
name: "results",
|
22425
22425
|
fn: i2(() => [
|
22426
22426
|
u("div", FU, [
|
@@ -22428,10 +22428,10 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22428
22428
|
icon: "user",
|
22429
22429
|
class: "AVOption--realtime-results-icon"
|
22430
22430
|
}),
|
22431
|
-
u("span", null, k(f.value ? `${
|
22432
|
-
|
22431
|
+
u("span", null, k(f.value ? `${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")} ${A.value.results.count}` : `${A.value.results.count} ${A.value.results.count === 1 ? B(n)("js.components.AVOption.vote_count_singular") : B(n)("js.components.AVOption.vote_count_plural")}`), 1),
|
22432
|
+
A.value.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22433
22433
|
RU,
|
22434
|
-
u("span", null, k(`${
|
22434
|
+
u("span", null, k(`${A.value.results.percentage}%`), 1)
|
22435
22435
|
], 64)) : O("", !0)
|
22436
22436
|
])
|
22437
22437
|
]),
|
@@ -22827,7 +22827,7 @@ const Aq = ["aria-label"], Nq = { class: "AVSearchBallot--form-group" }, xq = ["
|
|
22827
22827
|
u("div", kq, [
|
22828
22828
|
T1(u("input", {
|
22829
22829
|
id: "ballot_search",
|
22830
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
22830
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => s.value = b),
|
22831
22831
|
type: "search",
|
22832
22832
|
class: "AVSearchBallot--form-control",
|
22833
22833
|
placeholder: B(t)("js.components.AVSearchBallot.enter_option_name")
|
@@ -22837,28 +22837,28 @@ const Aq = ["aria-label"], Nq = { class: "AVSearchBallot--form-group" }, xq = ["
|
|
22837
22837
|
])
|
22838
22838
|
]),
|
22839
22839
|
u("div", wq, [
|
22840
|
-
(p(!0), H(t2, null, g2(r.value, (
|
22841
|
-
key:
|
22842
|
-
"aria-label":
|
22840
|
+
(p(!0), H(t2, null, g2(r.value, (b) => (p(), H("div", {
|
22841
|
+
key: b,
|
22842
|
+
"aria-label": b.title[n.value]
|
22843
22843
|
}, [
|
22844
|
-
l(
|
22844
|
+
l(b).length > 0 ? (p(), H("div", Iq, [
|
22845
22845
|
u("ul", Eq, [
|
22846
|
-
(p(!0), H(t2, null, g2(l(
|
22847
|
-
key:
|
22846
|
+
(p(!0), H(t2, null, g2(l(b), (L) => (p(), H("li", {
|
22847
|
+
key: L.reference,
|
22848
22848
|
class: "AVSeachOptionBallot--breadcrumb-item"
|
22849
|
-
}, k(
|
22849
|
+
}, k(L.title[n.value]), 1))), 128))
|
22850
22850
|
])
|
22851
22851
|
])) : O("", !0),
|
22852
22852
|
u("div", {
|
22853
|
-
id: `search_result_${
|
22853
|
+
id: `search_result_${b.reference}`,
|
22854
22854
|
class: "AVSearchBallot--option",
|
22855
22855
|
role: "button",
|
22856
22856
|
"aria-label": B(t)("js.components.AVSearchBallot.aria_labels.go_to_option"),
|
22857
|
-
onClick: S1((
|
22857
|
+
onClick: S1((L) => m(b), ["prevent"])
|
22858
22858
|
}, [
|
22859
22859
|
u("span", {
|
22860
22860
|
class: "AVSearchBallot--link",
|
22861
|
-
textContent: k(
|
22861
|
+
textContent: k(b.title[n.value])
|
22862
22862
|
}, null, 8, Oq)
|
22863
22863
|
], 8, Dq)
|
22864
22864
|
], 8, Tq))), 128)),
|
@@ -23292,83 +23292,83 @@ const AW = (e) => (V1("data-v-625a4e3f"), e = e(), z1(), e), NW = ["aria-label",
|
|
23292
23292
|
const s = Z(!1), r = Z(""), l = Z(""), f = Z(null), o = E(() => a.selectionPile.optionSelections), m = E(() => new tI(a.contest)), d = E(
|
23293
23293
|
() => a.contest.disregardVoterWeight ? null : a.weight
|
23294
23294
|
), h = E(() => {
|
23295
|
-
var
|
23296
|
-
let
|
23297
|
-
return (
|
23298
|
-
}),
|
23299
|
-
let
|
23295
|
+
var A;
|
23296
|
+
let y = [];
|
23297
|
+
return (A = a.contest.customRulesets) != null && A.includes("belgian_ballot_rules") && y.push(new yW(a.contest)), y;
|
23298
|
+
}), b = E(() => {
|
23299
|
+
let y = [];
|
23300
23300
|
h.value.forEach((F) => {
|
23301
|
-
|
23301
|
+
y.push(...F.validate(a.selectionPile));
|
23302
23302
|
});
|
23303
|
-
const
|
23303
|
+
const A = [
|
23304
23304
|
...m.value.validate(a.selectionPile),
|
23305
|
-
...
|
23305
|
+
...y
|
23306
23306
|
];
|
23307
|
-
if (V.value &&
|
23307
|
+
if (V.value && A.some((F) => F.message === "cross_party_voting")) {
|
23308
23308
|
let F;
|
23309
|
-
|
23309
|
+
A.some((q) => q.message === "exclusive") && (F = A.findIndex(
|
23310
23310
|
(q) => q.message === "exclusive"
|
23311
|
-
),
|
23311
|
+
), A.splice(F, 1)), A.some((q) => q.message === "blank") && (F = A.findIndex(
|
23312
23312
|
(q) => q.message === "cross_party_voting"
|
23313
|
-
),
|
23313
|
+
), A.splice(F, 1));
|
23314
23314
|
}
|
23315
|
-
return c("update:errors",
|
23316
|
-
}),
|
23317
|
-
var
|
23318
|
-
return (
|
23315
|
+
return c("update:errors", A), A;
|
23316
|
+
}), L = E(() => b.value.length === 0), N = E(() => {
|
23317
|
+
var y;
|
23318
|
+
return (y = a.contest.question) == null ? void 0 : y[i.value];
|
23319
23319
|
}), V = E(
|
23320
23320
|
() => {
|
23321
|
-
var
|
23322
|
-
return (
|
23321
|
+
var y;
|
23322
|
+
return (y = a.contest.customRulesets) == null ? void 0 : y.includes("belgian_ballot_rules");
|
23323
23323
|
}
|
23324
|
-
),
|
23325
|
-
(
|
23326
|
-
)),
|
23327
|
-
s2(
|
23324
|
+
), g = E(() => a.contest.randomizeOptions ? a.contest.options.slice().sort(() => Math.random() - 0.5) : a.contest.options), _ = E(() => C(a.contest.options).some(
|
23325
|
+
(y) => y.exclusive
|
23326
|
+
)), M = E(() => a.contest);
|
23327
|
+
s2(M, (y, A) => {
|
23328
23328
|
var F;
|
23329
|
-
|
23329
|
+
A && y && y.reference !== A.reference && ((F = document.getElementById("content")) == null || F.focus(), A.searchForm && (f.value.value = ""));
|
23330
23330
|
});
|
23331
23331
|
const x = () => {
|
23332
23332
|
c("update:selectionPile", {
|
23333
23333
|
...a.selectionPile,
|
23334
23334
|
explicitBlank: !a.selectionPile.explicitBlank
|
23335
23335
|
});
|
23336
|
-
}, w = ({ reference:
|
23336
|
+
}, w = ({ reference: y, amount: A }) => {
|
23337
23337
|
const F = o.value.filter(
|
23338
|
-
(R) => R.reference ===
|
23338
|
+
(R) => R.reference === y
|
23339
23339
|
).length;
|
23340
|
-
|
23340
|
+
A === F && (A = A - 1);
|
23341
23341
|
const q = o.value.filter(
|
23342
|
-
(R) => R.reference !==
|
23342
|
+
(R) => R.reference !== y
|
23343
23343
|
);
|
23344
|
-
for (let R = 0; R <
|
23345
|
-
q.push({ reference:
|
23344
|
+
for (let R = 0; R < A; R++)
|
23345
|
+
q.push({ reference: y });
|
23346
23346
|
c("update:selectionPile", {
|
23347
23347
|
...a.selectionPile,
|
23348
23348
|
optionSelections: q
|
23349
23349
|
});
|
23350
|
-
}, C = (
|
23351
|
-
return (
|
23350
|
+
}, C = (y, A) => y.flatMap((F) => (A && (F.parentContent = A), F.children ? [F, ...C(F.children, F)] : [F]));
|
23351
|
+
return (y, A) => {
|
23352
23352
|
const F = D("AVSearchBallot"), q = D("AVWriteInOption"), R = D("AVOption"), j = D("AVBlankOption"), r2 = D("AVSubmissionHelper");
|
23353
23353
|
return p(), H("div", {
|
23354
23354
|
class: Y({
|
23355
23355
|
AVBallot: !0,
|
23356
|
-
"AVBallot--error": !
|
23356
|
+
"AVBallot--error": !L.value
|
23357
23357
|
}),
|
23358
23358
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot"),
|
23359
23359
|
"aria-describedby": `ballot_${e.contest.reference}`
|
23360
23360
|
}, [
|
23361
|
-
|
23361
|
+
N.value ? (p(), H("h5", {
|
23362
23362
|
key: 0,
|
23363
23363
|
id: `ballot_${e.contest.reference}_question`,
|
23364
23364
|
class: "AVBallot--question",
|
23365
23365
|
"aria-live": "polite"
|
23366
|
-
}, k(
|
23366
|
+
}, k(N.value), 9, xW)) : O("", !0),
|
23367
23367
|
e.contest.searchForm && !e.disabled && !e.observerMode ? (p(), K(F, {
|
23368
23368
|
key: 1,
|
23369
23369
|
ref_key: "search",
|
23370
23370
|
ref: f,
|
23371
|
-
options: C(
|
23371
|
+
options: C(g.value),
|
23372
23372
|
"options-container-id": "ballot_options"
|
23373
23373
|
}, null, 8, ["options"])) : O("", !0),
|
23374
23374
|
kW,
|
@@ -23376,23 +23376,23 @@ const AW = (e) => (V1("data-v-625a4e3f"), e = e(), z1(), e), NW = ["aria-label",
|
|
23376
23376
|
id: "ballot_options",
|
23377
23377
|
class: Y({
|
23378
23378
|
"AVBallot--options": !0,
|
23379
|
-
"AVBallot--options-with-list":
|
23379
|
+
"AVBallot--options-with-list": g.value.some(
|
23380
23380
|
(l2) => l2.children
|
23381
23381
|
)
|
23382
23382
|
}),
|
23383
23383
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot_options")
|
23384
23384
|
}, [
|
23385
|
-
(p(!0), H(t2, null, g2(
|
23385
|
+
(p(!0), H(t2, null, g2(g.value, (l2) => (p(), H(t2, {
|
23386
23386
|
key: l2.reference
|
23387
23387
|
}, [
|
23388
23388
|
l2.writeIn ? (p(), K(q, {
|
23389
23389
|
key: 0,
|
23390
23390
|
"candidate-value": l.value,
|
23391
|
-
"onUpdate:candidateValue":
|
23391
|
+
"onUpdate:candidateValue": A[0] || (A[0] = (a2) => l.value = a2),
|
23392
23392
|
"party-value": r.value,
|
23393
|
-
"onUpdate:partyValue":
|
23393
|
+
"onUpdate:partyValue": A[1] || (A[1] = (a2) => r.value = a2),
|
23394
23394
|
"checked-value": s.value,
|
23395
|
-
"onUpdate:checkedValue":
|
23395
|
+
"onUpdate:checkedValue": A[2] || (A[2] = (a2) => s.value = a2),
|
23396
23396
|
parties: [],
|
23397
23397
|
disabled: e.disabled,
|
23398
23398
|
observerMode: e.observerMode
|
@@ -23400,8 +23400,8 @@ const AW = (e) => (V1("data-v-625a4e3f"), e = e(), z1(), e), NW = ["aria-label",
|
|
23400
23400
|
key: 1,
|
23401
23401
|
selections: o.value,
|
23402
23402
|
option: l2,
|
23403
|
-
invalid: !
|
23404
|
-
"exclusive-error": !V.value && l2.exclusive &&
|
23403
|
+
invalid: !L.value,
|
23404
|
+
"exclusive-error": !V.value && l2.exclusive && b.value.some((a2) => a2.message.includes("exclusive")),
|
23405
23405
|
contest: e.contest,
|
23406
23406
|
disabled: e.disabled,
|
23407
23407
|
observerMode: e.observerMode,
|
@@ -23412,9 +23412,9 @@ const AW = (e) => (V1("data-v-625a4e3f"), e = e(), z1(), e), NW = ["aria-label",
|
|
23412
23412
|
e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(j, {
|
23413
23413
|
key: 0,
|
23414
23414
|
checked: e.selectionPile.explicitBlank,
|
23415
|
-
error: !V.value &&
|
23415
|
+
error: !V.value && b.value.some((l2) => l2.message.includes("blank")),
|
23416
23416
|
disabled: e.disabled,
|
23417
|
-
invalid: !
|
23417
|
+
invalid: !L.value,
|
23418
23418
|
observerMode: e.observerMode,
|
23419
23419
|
accentColor: e.contest.blankOptionColor,
|
23420
23420
|
"partial-results": e.partialResults ? e.partialResults.blank : null,
|
@@ -23425,18 +23425,18 @@ const AW = (e) => (V1("data-v-625a4e3f"), e = e(), z1(), e), NW = ["aria-label",
|
|
23425
23425
|
key: 2,
|
23426
23426
|
id: `ballot_${e.contest.reference}`,
|
23427
23427
|
"chosen-count": o.value.length,
|
23428
|
-
errors:
|
23428
|
+
errors: b.value,
|
23429
23429
|
weight: d.value,
|
23430
23430
|
"min-marks": e.contest.markingType.minMarks,
|
23431
23431
|
"max-marks": e.contest.markingType.maxMarks,
|
23432
|
-
"has-exclusive-options":
|
23432
|
+
"has-exclusive-options": _.value,
|
23433
23433
|
class: "AVBallot--helper"
|
23434
23434
|
}, null, 8, ["id", "chosen-count", "errors", "weight", "min-marks", "max-marks", "has-exclusive-options"])) : O("", !0)
|
23435
23435
|
], 10, NW);
|
23436
23436
|
};
|
23437
23437
|
}
|
23438
23438
|
});
|
23439
|
-
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-625a4e3f"]]), IW = (e) => (V1("data-v-
|
23439
|
+
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-625a4e3f"]]), IW = (e) => (V1("data-v-de748fc4"), e = e(), z1(), e), EW = {
|
23440
23440
|
key: 0,
|
23441
23441
|
class: "AVPileSummary--summary"
|
23442
23442
|
}, DW = {
|
@@ -23501,49 +23501,51 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-625a4e3f"]]), IW = (e) =
|
|
23501
23501
|
},
|
23502
23502
|
{ deep: !0 }
|
23503
23503
|
);
|
23504
|
-
const s = Z(!1), r = Z([])
|
23504
|
+
const s = Z(!1), r = Z([]);
|
23505
|
+
Z([]);
|
23506
|
+
const l = E(() => a.selectionPile.optionSelections.length === 0), f = E(() => !a.maximumOptionsShown || s.value ? a.selectionPile.optionSelections : a.selectionPile.optionSelections.slice(
|
23505
23507
|
0,
|
23506
23508
|
a.maximumOptionsShown
|
23507
|
-
)),
|
23508
|
-
|
23509
|
-
(
|
23509
|
+
)), o = E(() => a.selectionPile.optionSelections.length - f.value.length), m = (b, L) => {
|
23510
|
+
b.selectable && r.value.push({ ...b, parentContent: L }), b.children && b.children.map(
|
23511
|
+
(N) => m(N, b)
|
23510
23512
|
);
|
23511
|
-
},
|
23512
|
-
const
|
23513
|
+
}, d = (b, L) => b && b.parentContent ? (L.push(b.parentContent), d(b.parentContent, L)) : L, h = E(() => {
|
23514
|
+
const b = {
|
23513
23515
|
options: [],
|
23514
23516
|
writeIns: []
|
23515
23517
|
};
|
23516
|
-
return
|
23517
|
-
if (
|
23518
|
-
|
23518
|
+
return f.value.forEach((L) => {
|
23519
|
+
if (L.text)
|
23520
|
+
b.writeIns.push({
|
23519
23521
|
partyLetter: "?",
|
23520
23522
|
// TODO: Figure out how this party stuff is supposed to work
|
23521
23523
|
partyName: "?",
|
23522
23524
|
// TODO: Figure out how this party stuff is supposed to work
|
23523
|
-
candidateName:
|
23525
|
+
candidateName: L.text
|
23524
23526
|
});
|
23525
23527
|
else {
|
23526
|
-
const
|
23527
|
-
(
|
23528
|
+
const N = b.options.find(
|
23529
|
+
(g) => g.handle === L.reference
|
23528
23530
|
);
|
23529
|
-
|
23530
|
-
const
|
23531
|
-
(
|
23531
|
+
a.contest.options.map((g) => m(g));
|
23532
|
+
const V = r.value.find(
|
23533
|
+
(g) => g.reference === L.reference
|
23532
23534
|
);
|
23533
|
-
|
23534
|
-
title:
|
23535
|
-
handle:
|
23536
|
-
image:
|
23535
|
+
N ? N.crosses += 1 : b.options.push({
|
23536
|
+
title: V.title[i.value],
|
23537
|
+
handle: L.reference,
|
23538
|
+
image: V.image,
|
23537
23539
|
crosses: 1,
|
23538
|
-
parent:
|
23539
|
-
rank: a.contest.markingType.voteVariation === "ranked" ?
|
23540
|
+
parent: V.parentContent,
|
23541
|
+
rank: a.contest.markingType.voteVariation === "ranked" ? b.options.length + 1 : null
|
23540
23542
|
});
|
23541
23543
|
}
|
23542
23544
|
r.value = [];
|
23543
|
-
}),
|
23545
|
+
}), b;
|
23544
23546
|
});
|
23545
|
-
return (
|
23546
|
-
const
|
23547
|
+
return (b, L) => {
|
23548
|
+
const N = D("AVSummaryOption"), V = D("AVIcon");
|
23547
23549
|
return e.activeState === "summary" ? (p(), H("div", EW, [
|
23548
23550
|
e.contest.markingType.maxPiles !== 1 ? (p(), H("header", DW, [
|
23549
23551
|
u("span", null, k(B(n)("js.components.AVPileSummary.selection")) + " " + k(e.pileIndex + 1) + " / " + k(e.totalPiles), 1),
|
@@ -23552,15 +23554,15 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-625a4e3f"]]), IW = (e) =
|
|
23552
23554
|
u("span", null, k(B(n)("js.components.AVPileSummary.selection")), 1)
|
23553
23555
|
])),
|
23554
23556
|
u("div", BW, [
|
23555
|
-
(p(!0), H(t2, null, g2(
|
23556
|
-
key:
|
23557
|
-
option:
|
23557
|
+
(p(!0), H(t2, null, g2(h.value.options, (g, _) => (p(), K(N, {
|
23558
|
+
key: _,
|
23559
|
+
option: g,
|
23558
23560
|
"multiple-votes-allowed": e.contest.markingType.votesAllowedPerOption > 1,
|
23559
|
-
parents:
|
23561
|
+
parents: d(g.parent, g.parent ? [g.parent] : [])
|
23560
23562
|
}, null, 8, ["option", "multiple-votes-allowed", "parents"]))), 128)),
|
23561
|
-
|
23563
|
+
l.value ? (p(), K(N, {
|
23562
23564
|
key: 0,
|
23563
|
-
blank:
|
23565
|
+
blank: l.value
|
23564
23566
|
}, null, 8, ["blank"])) : O("", !0)
|
23565
23567
|
])
|
23566
23568
|
])) : (p(), H("div", jW, [
|
@@ -23569,38 +23571,38 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-625a4e3f"]]), IW = (e) =
|
|
23569
23571
|
class: "AVPileSummary--assign-header",
|
23570
23572
|
"aria-label": B(n)("js.components.AVPileSummary.aria_labels.edit_selection"),
|
23571
23573
|
role: "button",
|
23572
|
-
onClick:
|
23574
|
+
onClick: L[0] || (L[0] = (g) => c("editCurrentSelection"))
|
23573
23575
|
}, [
|
23574
23576
|
u("div", $W, [
|
23575
|
-
I(
|
23577
|
+
I(V, { icon: "pen-to-square" }),
|
23576
23578
|
u("span", null, k(B(n)("js.components.AVPileSummary.ballot_selection")) + " " + k(e.pileIndex + 1), 1)
|
23577
23579
|
]),
|
23578
23580
|
e.activeState === "overview" || e.isEditing ? (p(), H("span", UW, k(B(n)("js.components.AVPileSummary.assigned")) + " " + k(e.selectionPile.multiplier), 1)) : O("", !0)
|
23579
23581
|
], 8, RW),
|
23580
23582
|
u("div", qW, [
|
23581
|
-
|
23582
|
-
(p(!0), H(t2, null, g2(
|
23583
|
-
key:
|
23583
|
+
l.value ? (p(), H("p", WW, k(B(n)("js.components.AVPileSummary.blank")), 1)) : O("", !0),
|
23584
|
+
(p(!0), H(t2, null, g2(h.value.options, (g, _) => (p(), H("p", {
|
23585
|
+
key: _,
|
23584
23586
|
class: "AVPileSummary--assign-text"
|
23585
|
-
}, k(
|
23586
|
-
(p(!0), H(t2, null, g2(
|
23587
|
-
key:
|
23587
|
+
}, k(g.rank ? `${g.rank}: ` : "") + k(g.title), 1))), 128)),
|
23588
|
+
(p(!0), H(t2, null, g2(h.value.writeIns, (g, _) => (p(), H("p", {
|
23589
|
+
key: _,
|
23588
23590
|
class: "AVPileSummary--assign-text"
|
23589
23591
|
}, [
|
23590
|
-
u("b", null, k(
|
23592
|
+
u("b", null, k(g.partyLetter) + " - " + k(g.partyName), 1),
|
23591
23593
|
GW,
|
23592
|
-
u("span", null, k(
|
23594
|
+
u("span", null, k(g.candidateName), 1)
|
23593
23595
|
]))), 128)),
|
23594
|
-
|
23596
|
+
o.value > 0 ? (p(), H("p", {
|
23595
23597
|
key: 1,
|
23596
23598
|
role: "button",
|
23597
23599
|
class: "AVPileSummary--show-more-button",
|
23598
|
-
onClick:
|
23600
|
+
onClick: L[1] || (L[1] = S1((g) => s.value = !0, ["stop", "prevent"]))
|
23599
23601
|
}, [
|
23600
23602
|
u("u", null, [
|
23601
23603
|
u("em", null, k(`${B(n)(
|
23602
23604
|
"js.components.AVPileSummary.and_n_more_pre"
|
23603
|
-
)} ${
|
23605
|
+
)} ${o.value} ${B(n)(
|
23604
23606
|
"js.components.AVPileSummary.and_n_more_pos"
|
23605
23607
|
)}`), 1)
|
23606
23608
|
])
|
@@ -23609,7 +23611,7 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-625a4e3f"]]), IW = (e) =
|
|
23609
23611
|
key: 2,
|
23610
23612
|
role: "button",
|
23611
23613
|
class: "AVPileSummary--show-more-button",
|
23612
|
-
onClick:
|
23614
|
+
onClick: L[2] || (L[2] = S1((g) => s.value = !1, ["stop", "prevent"]))
|
23613
23615
|
}, [
|
23614
23616
|
u("u", null, [
|
23615
23617
|
u("em", null, k(B(n)("js.components.AVPileSummary.show_less")), 1)
|
@@ -23622,15 +23624,15 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-625a4e3f"]]), IW = (e) =
|
|
23622
23624
|
class: "AVPileSummary--assign-delete-button",
|
23623
23625
|
role: "button",
|
23624
23626
|
"aria-label": B(n)("js.components.AVPileSummary.aria_labels.delete_selection"),
|
23625
|
-
onClick:
|
23627
|
+
onClick: L[3] || (L[3] = S1((g) => c("deleteSelection"), ["stop", "prevent"]))
|
23626
23628
|
}, [
|
23627
|
-
I(
|
23629
|
+
I(V, { icon: "trash-can" })
|
23628
23630
|
], 8, YW)) : O("", !0)
|
23629
23631
|
]));
|
23630
23632
|
};
|
23631
23633
|
}
|
23632
23634
|
});
|
23633
|
-
const XW = /* @__PURE__ */ X(QW, [["__scopeId", "data-v-
|
23635
|
+
const XW = /* @__PURE__ */ X(QW, [["__scopeId", "data-v-de748fc4"]]);
|
23634
23636
|
var iI = {}, ti = O4 && O4.__spreadArray || function(e, c, a) {
|
23635
23637
|
if (a || arguments.length === 2)
|
23636
23638
|
for (var t = 0, n = c.length, i; t < n; t++)
|
@@ -23736,19 +23738,19 @@ const eG = {
|
|
23736
23738
|
})
|
23737
23739
|
), h = E(() => o.value === 0 && l.value.length == 0 && f.value.every(
|
23738
23740
|
(R) => m.value.isComplete(R)
|
23739
|
-
)),
|
23741
|
+
)), b = E(
|
23740
23742
|
() => {
|
23741
23743
|
var R;
|
23742
23744
|
return (R = f.value) == null ? void 0 : R.reduce((j, r2) => j + r2.multiplier, 0);
|
23743
23745
|
}
|
23744
|
-
),
|
23746
|
+
), L = E(() => {
|
23745
23747
|
var R;
|
23746
23748
|
return (R = s.value) == null ? void 0 : R.multiplier;
|
23747
|
-
}),
|
23749
|
+
}), N = E(
|
23748
23750
|
() => f.value.filter((R, j) => j !== i.value).reduce((R, j) => R - j.multiplier, e.weight)
|
23749
23751
|
), V = E(
|
23750
23752
|
() => e.contest.markingType.maxPiles !== 1 && e.weight > 1
|
23751
|
-
),
|
23753
|
+
), g = E(() => i.value !== null), _ = (R) => m.value.isComplete(R), M = (R) => m.value.validate(R).length > 0, x = () => {
|
23752
23754
|
if (V.value) {
|
23753
23755
|
const R = [...f.value];
|
23754
23756
|
i.value === null ? R.push({ ...s.value }) : R.splice(i.value, 1, {
|
@@ -23767,20 +23769,20 @@ const eG = {
|
|
23767
23769
|
}, C = () => {
|
23768
23770
|
s.value = {
|
23769
23771
|
optionSelections: [],
|
23770
|
-
multiplier:
|
23772
|
+
multiplier: N.value,
|
23771
23773
|
explicitBlank: !1
|
23772
23774
|
}, i.value = null, r.value = "ballot";
|
23773
|
-
},
|
23775
|
+
}, y = (R) => {
|
23774
23776
|
f.value.splice(R, 1);
|
23775
|
-
},
|
23777
|
+
}, A = (R) => {
|
23776
23778
|
s.value = { ...f.value[R] }, i.value = R, r.value = "ballot";
|
23777
23779
|
}, F = (R) => {
|
23778
23780
|
l.value = R;
|
23779
23781
|
};
|
23780
|
-
return s2(h, (R) => c("update:complete", R)), s2(
|
23782
|
+
return s2(h, (R) => c("update:complete", R)), s2(L, () => {
|
23781
23783
|
s.value && (s.value.multiplier = Math.max(
|
23782
23784
|
0,
|
23783
|
-
Math.min(
|
23785
|
+
Math.min(L.value, N.value)
|
23784
23786
|
));
|
23785
23787
|
}), s2(s, (R) => {
|
23786
23788
|
c("update:activePile", R);
|
@@ -23801,8 +23803,8 @@ const eG = {
|
|
23801
23803
|
"active-selection-pile-index": i.value,
|
23802
23804
|
"active-state": r.value,
|
23803
23805
|
"selection-piles": f.value,
|
23804
|
-
"total-weight":
|
23805
|
-
"is-editing":
|
23806
|
+
"total-weight": b.value + o.value,
|
23807
|
+
"is-editing": g.value
|
23806
23808
|
}, null, 8, ["active-selection-pile-index", "active-state", "selection-piles", "total-weight", "is-editing"])) : O("", !0),
|
23807
23809
|
I(w1, {
|
23808
23810
|
name: "fade",
|
@@ -23834,7 +23836,7 @@ const eG = {
|
|
23834
23836
|
u("button", {
|
23835
23837
|
key: "assign",
|
23836
23838
|
class: "AVSplitHelper--btn-primary",
|
23837
|
-
disabled: !
|
23839
|
+
disabled: !_(s.value) || M(s.value),
|
23838
23840
|
onClick: j[2] || (j[2] = (C2) => r.value = "assign")
|
23839
23841
|
}, k(B(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, iG)
|
23840
23842
|
])
|
@@ -23846,16 +23848,16 @@ const eG = {
|
|
23846
23848
|
"selection-pile": s.value,
|
23847
23849
|
contest: e.contest,
|
23848
23850
|
"maximum-options-shown": 3,
|
23849
|
-
"pile-index":
|
23851
|
+
"pile-index": g.value ? i.value : f.value.length,
|
23850
23852
|
"active-state": r.value,
|
23851
|
-
"is-editing":
|
23853
|
+
"is-editing": g.value,
|
23852
23854
|
"total-piles": e.contestSelection.piles.length,
|
23853
23855
|
onEditCurrentSelection: j[3] || (j[3] = (C2) => r.value = "ballot")
|
23854
23856
|
}, null, 8, ["selection-pile", "contest", "pile-index", "active-state", "is-editing", "total-piles"]),
|
23855
23857
|
u("label", {
|
23856
23858
|
for: `${e.contest.reference}-ballot-selector`,
|
23857
23859
|
class: "AVSplitHelper--assign-label"
|
23858
|
-
}, k(
|
23860
|
+
}, k(g.value ? B(t)(
|
23859
23861
|
"js.components.AVSplitHelper.assign.ballots_to_assign_edit_mode"
|
23860
23862
|
) : B(t)("js.components.AVSplitHelper.assign.ballots_to_assign")), 9, oG),
|
23861
23863
|
T1(u("input", {
|
@@ -23863,13 +23865,13 @@ const eG = {
|
|
23863
23865
|
"onUpdate:modelValue": j[4] || (j[4] = (C2) => s.value.multiplier = C2),
|
23864
23866
|
class: "AVSplitHelper--assign-input",
|
23865
23867
|
type: "number",
|
23866
|
-
max:
|
23868
|
+
max: N.value
|
23867
23869
|
}, null, 8, fG), [
|
23868
23870
|
[li, s.value.multiplier]
|
23869
23871
|
])
|
23870
23872
|
]),
|
23871
23873
|
I(h2, {
|
23872
|
-
"assigned-weight":
|
23874
|
+
"assigned-weight": b.value,
|
23873
23875
|
"unused-weight": o.value,
|
23874
23876
|
"active-assigned": (v2 = f.value[i.value]) == null ? void 0 : v2.multiplier
|
23875
23877
|
}, null, 8, ["assigned-weight", "unused-weight", "active-assigned"]),
|
@@ -23885,7 +23887,7 @@ const eG = {
|
|
23885
23887
|
u("button", {
|
23886
23888
|
key: "confirm",
|
23887
23889
|
class: "AVSplitHelper--btn-primary",
|
23888
|
-
disabled: ((A2 = s.value) == null ? void 0 : A2.multiplier) < 1 || ((k2 = s.value) == null ? void 0 : k2.multiplier) >
|
23890
|
+
disabled: ((A2 = s.value) == null ? void 0 : A2.multiplier) < 1 || ((k2 = s.value) == null ? void 0 : k2.multiplier) > N.value,
|
23889
23891
|
onClick: j[6] || (j[6] = (C2) => x())
|
23890
23892
|
}, k(B(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, vG)
|
23891
23893
|
])
|
@@ -23914,7 +23916,7 @@ const eG = {
|
|
23914
23916
|
])),
|
23915
23917
|
(p(!0), H(t2, null, g2(f.value, (C2, I2) => (p(), H("article", {
|
23916
23918
|
key: `preview-${I2}`,
|
23917
|
-
onClick: (j2) =>
|
23919
|
+
onClick: (j2) => A(I2)
|
23918
23920
|
}, [
|
23919
23921
|
I(a2, {
|
23920
23922
|
"selection-pile": C2,
|
@@ -23923,7 +23925,7 @@ const eG = {
|
|
23923
23925
|
"active-state": r.value,
|
23924
23926
|
"pile-index": I2,
|
23925
23927
|
"total-piles": e.contestSelection.piles.length,
|
23926
|
-
onDeleteSelection: (j2) =>
|
23928
|
+
onDeleteSelection: (j2) => y(I2)
|
23927
23929
|
}, null, 8, ["selection-pile", "contest", "active-state", "pile-index", "total-piles", "onDeleteSelection"])
|
23928
23930
|
], 8, HG))), 128))
|
23929
23931
|
])) : O("", !0)
|