@assemblyvoting/ui-library 3.0.17 → 3.1.0
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/components/atoms/AVAlert/AVAlert.vue.d.ts +1 -1
- package/dist/components/atoms/AVAlert/AVAlert.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVAsyncButton/AVAsyncButton.vue.d.ts +1 -1
- package/dist/components/atoms/AVAsyncButton/AVAsyncButton.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVBallotSummary/AVBallotSummary.vue.d.ts +1 -1
- package/dist/components/atoms/AVBallotSummary/AVBallotSummary.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVBasicSteps/AVBasicSteps.vue.d.ts +1 -1
- package/dist/components/atoms/AVBasicSteps/AVBasicSteps.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVBullet/AVBullet.vue.d.ts +1 -1
- package/dist/components/atoms/AVBullet/AVBullet.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVButton/AVButton.vue.d.ts +1 -1
- package/dist/components/atoms/AVButton/AVButton.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVCard/AVCard.vue.d.ts +1 -1
- package/dist/components/atoms/AVCard/AVCard.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVCollapser/AVCollapser.vue.d.ts +1 -1
- package/dist/components/atoms/AVCollapser/AVCollapser.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDatetimeInput/AVDatetimeInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVDatetimeInput/AVDatetimeInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdown.vue.d.ts +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdown.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownContent.vue.d.ts +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownContent.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVDropdown/AVDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVFileInput/AVFileInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVFileInput/AVFileInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVIcon/AVIcon.vue.d.ts +2 -2
- package/dist/components/atoms/AVIcon/AVIcon.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVLabel/AVLabel.vue.d.ts +1 -1
- package/dist/components/atoms/AVLabel/AVLabel.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVLink/AVLink.vue.d.ts +1 -1
- package/dist/components/atoms/AVLink/AVLink.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdown.vue.d.ts +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdown.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownContent.vue.d.ts +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownContent.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVMenuDropdown/AVMenuDropdownItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVNavbarItem/AVNavbarItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVNavbarItem/AVNavbarItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVNumberInput/AVNumberInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVNumberInput/AVNumberInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVOptionCheckbox/AVOptionCheckbox.vue.d.ts +1 -1
- package/dist/components/atoms/AVOptionCheckbox/AVOptionCheckbox.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVOptionSelect/AVOptionSelect.vue.d.ts +1 -1
- package/dist/components/atoms/AVOptionSelect/AVOptionSelect.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVPasswordInput/AVPasswordInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVPasswordInput/AVPasswordInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVRadio/AVRadio.vue.d.ts +1 -1
- package/dist/components/atoms/AVRadio/AVRadio.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVRoundButton/AVRoundButton.vue.d.ts +1 -1
- package/dist/components/atoms/AVRoundButton/AVRoundButton.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVSidebarItem/AVSidebarItem.vue.d.ts +1 -1
- package/dist/components/atoms/AVSidebarItem/AVSidebarItem.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVSpinner/AVSpinner.vue.d.ts +1 -1
- package/dist/components/atoms/AVSpinner/AVSpinner.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVSteps/AVSteps.vue.d.ts +2 -2
- package/dist/components/atoms/AVSteps/AVSteps.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTabSwitcher/AVTabSwitcher.vue.d.ts +1 -1
- package/dist/components/atoms/AVTabSwitcher/AVTabSwitcher.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTextArea/AVTextArea.vue.d.ts +1 -1
- package/dist/components/atoms/AVTextArea/AVTextArea.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTextInput/AVTextInput.vue.d.ts +1 -1
- package/dist/components/atoms/AVTextInput/AVTextInput.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTimedCard/AVTimedCard.vue.d.ts +1 -1
- package/dist/components/atoms/AVTimedCard/AVTimedCard.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTooltip/AVTooltip.vue.d.ts +1 -1
- package/dist/components/atoms/AVTooltip/AVTooltip.vue.d.ts.map +1 -1
- package/dist/components/atoms/AVTransitionSlide/AVTransitionSlide.vue.d.ts +2 -2
- package/dist/components/atoms/AVTransitionSlide/AVTransitionSlide.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVBallotStyleCard/AVBallotStyleCard.vue.d.ts +1 -1
- package/dist/components/molecules/AVBallotStyleCard/AVBallotStyleCard.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVBlankOption/AVBlankOption.vue.d.ts +1 -1
- package/dist/components/molecules/AVBlankOption/AVBlankOption.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVBreadcrumb/AVBreadcrumb.vue.d.ts +1 -1
- package/dist/components/molecules/AVBreadcrumb/AVBreadcrumb.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVElectionCard/AVElectionCard.vue.d.ts +1 -1
- package/dist/components/molecules/AVElectionCard/AVElectionCard.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVNavigationItemList/AVNavigationItemList.vue.d.ts +1 -1
- package/dist/components/molecules/AVNavigationItemList/AVNavigationItemList.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVOption/AVOption.vue.d.ts +1 -1
- package/dist/components/molecules/AVOption/AVOption.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVRadioGroup/AVRadioGroup.vue.d.ts +1 -1
- package/dist/components/molecules/AVRadioGroup/AVRadioGroup.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSearchBallot/AVSearchBallot.vue.d.ts +1 -1
- package/dist/components/molecules/AVSearchBallot/AVSearchBallot.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSplitWeightHelper/AVSplitWeightHelper.vue.d.ts +1 -1
- package/dist/components/molecules/AVSplitWeightHelper/AVSplitWeightHelper.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSplitWizardHeader/AVSplitWizardHeader.vue.d.ts +1 -1
- package/dist/components/molecules/AVSplitWizardHeader/AVSplitWizardHeader.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSubmissionHelper/AVSubmissionHelper.vue.d.ts +2 -2
- package/dist/components/molecules/AVSubmissionHelper/AVSubmissionHelper.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVSummaryOption/AVSummaryOption.vue.d.ts +2 -2
- package/dist/components/molecules/AVSummaryOption/AVSummaryOption.vue.d.ts.map +1 -1
- package/dist/components/molecules/AVWriteInOption/AVWriteInOption.vue.d.ts +1 -1
- package/dist/components/molecules/AVWriteInOption/AVWriteInOption.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVBallot/AVBallot.vue.d.ts +2 -2
- package/dist/components/organisms/AVBallot/AVBallot.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVContent/AVContent.vue.d.ts +1 -1
- package/dist/components/organisms/AVContent/AVContent.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVFooter/AVFooter.vue.d.ts +1 -1
- package/dist/components/organisms/AVFooter/AVFooter.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVModal/AVModal.vue.d.ts +1 -1
- package/dist/components/organisms/AVModal/AVModal.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVPileSummary/AVPileSummary.vue.d.ts +1 -1
- package/dist/components/organisms/AVPileSummary/AVPileSummary.vue.d.ts.map +1 -1
- package/dist/components/organisms/AVSplitHelper/AVSplitHelper.vue.d.ts +1 -1
- package/dist/components/organisms/AVSplitHelper/AVSplitHelper.vue.d.ts.map +1 -1
- package/dist/components/templates/ElectionDashboardLayout/ElectionDashboardLayout.vue.d.ts +2 -2
- package/dist/components/templates/ElectionDashboardLayout/ElectionDashboardLayout.vue.d.ts.map +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.js +1008 -978
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as Q, h as M1, getCurrentInstance as w3, effectScope as rI, inject as B2, onMounted as M2, onUnmounted as ni, shallowRef as lI, ref as e2, computed as E, onBeforeMount as oI, watch as s2, Fragment as
|
1
|
+
import { defineComponent as Q, h as M1, getCurrentInstance as w3, effectScope as rI, inject as B2, onMounted as M2, onUnmounted as ni, shallowRef as lI, ref as e2, computed as E, onBeforeMount as oI, watch as s2, Fragment as t2, isRef as fI, createVNode as I, Text as uI, unref as B, getCurrentScope as mI, onScopeDispose as dI, Transition as w1, withDirectives as T1, vShow as l3, openBlock as p, createElementBlock as H, createBlock as K, resolveDynamicComponent as _9, withCtx as i2, renderSlot as y2, resolveComponent as D, normalizeClass as Y, createCommentVNode as O, createTextVNode as D2, toDisplayString as k, createElementVNode as u, normalizeStyle as l1, reactive as ii, provide as si, renderList as g2, pushScopeId as V1, popScopeId as z1, useCssVars as vI, mergeProps as pI, withModifiers as S1, withKeys as ri, createSlots as hI, nextTick as VI, vModelText as li } from "vue";
|
2
2
|
/*!
|
3
3
|
* shared v9.7.0
|
4
4
|
* (c) 2023 kazuya kawaguchi
|
@@ -29,7 +29,7 @@ const bI = Object.prototype.hasOwnProperty;
|
|
29
29
|
function T3(e, c) {
|
30
30
|
return bI.call(e, c);
|
31
31
|
}
|
32
|
-
const p2 = Array.isArray, V2 = (e) => typeof e == "function",
|
32
|
+
const p2 = Array.isArray, V2 = (e) => typeof e == "function", $ = (e) => typeof e == "string", n2 = (e) => typeof e == "boolean", m2 = (e) => e !== null && typeof e == "object", oi = Object.prototype.toString, fi = (e) => oi.call(e), c2 = (e) => {
|
33
33
|
if (!m2(e))
|
34
34
|
return !1;
|
35
35
|
const c = Object.getPrototypeOf(e);
|
@@ -181,22 +181,22 @@ 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 = (
|
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
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
191
|
function M() {
|
192
192
|
a = 0, t = 1, n = 1, i = 0;
|
193
193
|
}
|
194
|
-
function
|
195
|
-
i =
|
194
|
+
function x(C = 0) {
|
195
|
+
i = C;
|
196
196
|
}
|
197
|
-
function
|
198
|
-
const
|
199
|
-
for (;
|
197
|
+
function w() {
|
198
|
+
const C = a + i;
|
199
|
+
for (; C !== a; )
|
200
200
|
g();
|
201
201
|
i = 0;
|
202
202
|
}
|
@@ -204,15 +204,15 @@ function PI(e) {
|
|
204
204
|
index: m,
|
205
205
|
line: d,
|
206
206
|
column: h,
|
207
|
-
peekOffset:
|
207
|
+
peekOffset: b,
|
208
208
|
charAt: L,
|
209
|
-
currentChar:
|
209
|
+
currentChar: N,
|
210
210
|
currentPeek: V,
|
211
211
|
next: g,
|
212
|
-
peek:
|
212
|
+
peek: _,
|
213
213
|
reset: M,
|
214
|
-
resetPeek:
|
215
|
-
skipToPeek:
|
214
|
+
resetPeek: x,
|
215
|
+
skipToPeek: w
|
216
216
|
};
|
217
217
|
}
|
218
218
|
const N1 = void 0, BI = ".", S9 = "'", jI = "tokenizer";
|
@@ -230,27 +230,27 @@ function FI(e, c = {}) {
|
|
230
230
|
inLinked: !1,
|
231
231
|
text: ""
|
232
232
|
}, f = () => l, { onError: o } = c;
|
233
|
-
function m(z, v, S,
|
233
|
+
function m(z, v, S, ...U) {
|
234
234
|
const Z = f();
|
235
235
|
if (v.column += S, v.offset += S, o) {
|
236
236
|
const u2 = a ? Q6(Z.startLoc, v) : null, J2 = h3(z, u2, {
|
237
237
|
domain: jI,
|
238
|
-
args:
|
238
|
+
args: U
|
239
239
|
});
|
240
240
|
o(J2);
|
241
241
|
}
|
242
242
|
}
|
243
243
|
function d(z, v, S) {
|
244
244
|
z.endLoc = i(), z.currentType = v;
|
245
|
-
const
|
246
|
-
return a && (
|
245
|
+
const U = { type: v };
|
246
|
+
return a && (U.loc = Q6(z.startLoc, z.endLoc)), S != null && (U.value = S), U;
|
247
247
|
}
|
248
248
|
const h = (z) => d(
|
249
249
|
z,
|
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(J.EXPECTED_TOKEN, i(), 0, v), "");
|
255
255
|
}
|
256
256
|
function L(z) {
|
@@ -259,7 +259,7 @@ function FI(e, c = {}) {
|
|
259
259
|
v += z.currentPeek(), z.peek();
|
260
260
|
return v;
|
261
261
|
}
|
262
|
-
function
|
262
|
+
function N(z) {
|
263
263
|
const v = L(z);
|
264
264
|
return z.skipToPeek(), v;
|
265
265
|
}
|
@@ -277,65 +277,65 @@ function FI(e, c = {}) {
|
|
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
|
-
const
|
286
|
-
return z.resetPeek(),
|
285
|
+
const U = V(z.currentPeek());
|
286
|
+
return z.resetPeek(), U;
|
287
287
|
}
|
288
288
|
function M(z, v) {
|
289
289
|
const { currentType: S } = v;
|
290
290
|
if (S !== 2)
|
291
291
|
return !1;
|
292
292
|
L(z);
|
293
|
-
const
|
293
|
+
const U = z.currentPeek() === "-" ? z.peek() : z.currentPeek(), Z = g(U);
|
294
294
|
return z.resetPeek(), Z;
|
295
295
|
}
|
296
|
-
function
|
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
|
-
const
|
302
|
-
return z.resetPeek(),
|
301
|
+
const U = z.currentPeek() === S9;
|
302
|
+
return z.resetPeek(), U;
|
303
303
|
}
|
304
|
-
function
|
304
|
+
function w(z, v) {
|
305
305
|
const { currentType: S } = v;
|
306
306
|
if (S !== 8)
|
307
307
|
return !1;
|
308
308
|
L(z);
|
309
|
-
const
|
310
|
-
return z.resetPeek(),
|
309
|
+
const U = z.currentPeek() === ".";
|
310
|
+
return z.resetPeek(), U;
|
311
311
|
}
|
312
|
-
function
|
312
|
+
function C(z, v) {
|
313
313
|
const { currentType: S } = v;
|
314
314
|
if (S !== 9)
|
315
315
|
return !1;
|
316
316
|
L(z);
|
317
|
-
const
|
318
|
-
return z.resetPeek(),
|
317
|
+
const U = V(z.currentPeek());
|
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
|
-
const
|
326
|
-
return z.resetPeek(),
|
325
|
+
const U = z.currentPeek() === ":";
|
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;
|
332
|
-
const
|
332
|
+
const U = () => {
|
333
333
|
const u2 = z.currentPeek();
|
334
|
-
return u2 === "{" ? V(z.peek()) : u2 === "@" || u2 === "%" || u2 === "|" || u2 === ":" || u2 === "." || u2 === H1 || !u2 ? !1 : u2 === $2 ? (z.peek(),
|
335
|
-
}, Z =
|
334
|
+
return u2 === "{" ? V(z.peek()) : u2 === "@" || u2 === "%" || u2 === "|" || u2 === ":" || u2 === "." || u2 === H1 || !u2 ? !1 : u2 === $2 ? (z.peek(), U()) : V(u2);
|
335
|
+
}, Z = U();
|
336
336
|
return z.resetPeek(), Z;
|
337
337
|
}
|
338
|
-
function
|
338
|
+
function F(z) {
|
339
339
|
L(z);
|
340
340
|
const v = z.currentPeek() === "|";
|
341
341
|
return z.resetPeek(), v;
|
@@ -351,45 +351,45 @@ function FI(e, c = {}) {
|
|
351
351
|
const S = (Z = !1, u2 = "", J2 = !1) => {
|
352
352
|
const O2 = z.currentPeek();
|
353
353
|
return O2 === "{" ? u2 === "%" ? !1 : Z : O2 === "@" || !O2 ? u2 === "%" ? !0 : Z : O2 === "%" ? (z.peek(), S(Z, "%", !0)) : O2 === "|" ? u2 === "%" || J2 ? !0 : !(u2 === H1 || u2 === $2) : O2 === H1 ? (z.peek(), S(!0, H1, J2)) : O2 === $2 ? (z.peek(), S(!0, $2, J2)) : !0;
|
354
|
-
},
|
355
|
-
return v && z.resetPeek(),
|
354
|
+
}, U = S();
|
355
|
+
return v && z.resetPeek(), U;
|
356
356
|
}
|
357
357
|
function j(z, v) {
|
358
358
|
const S = z.currentChar();
|
359
359
|
return S === N1 ? N1 : v(S) ? (z.next(), S) : null;
|
360
360
|
}
|
361
|
-
function
|
361
|
+
function r2(z) {
|
362
362
|
return j(z, (S) => {
|
363
|
-
const
|
364
|
-
return
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
363
|
+
const U = S.charCodeAt(0);
|
364
|
+
return U >= 97 && U <= 122 || // a-z
|
365
|
+
U >= 65 && U <= 90 || // A-Z
|
366
|
+
U >= 48 && U <= 57 || // 0-9
|
367
|
+
U === 95 || // _
|
368
|
+
U === 36;
|
369
369
|
});
|
370
370
|
}
|
371
|
-
function
|
371
|
+
function l2(z) {
|
372
372
|
return j(z, (S) => {
|
373
|
-
const
|
374
|
-
return
|
373
|
+
const U = S.charCodeAt(0);
|
374
|
+
return U >= 48 && U <= 57;
|
375
375
|
});
|
376
376
|
}
|
377
|
-
function
|
377
|
+
function a2(z) {
|
378
378
|
return j(z, (S) => {
|
379
|
-
const
|
380
|
-
return
|
381
|
-
|
382
|
-
|
379
|
+
const U = S.charCodeAt(0);
|
380
|
+
return U >= 48 && U <= 57 || // 0-9
|
381
|
+
U >= 65 && U <= 70 || // A-F
|
382
|
+
U >= 97 && U <= 102;
|
383
383
|
});
|
384
384
|
}
|
385
385
|
function h2(z) {
|
386
386
|
let v = "", S = "";
|
387
|
-
for (; v =
|
387
|
+
for (; v = l2(z); )
|
388
388
|
S += v;
|
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(J.EXPECTED_TOKEN, i(), 0, v), z.next(), "%";
|
395
395
|
}
|
@@ -408,7 +408,7 @@ function FI(e, c = {}) {
|
|
408
408
|
if (R(z))
|
409
409
|
v += S, z.next();
|
410
410
|
else {
|
411
|
-
if (
|
411
|
+
if (F(z))
|
412
412
|
break;
|
413
413
|
v += S, z.next();
|
414
414
|
}
|
@@ -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
|
-
for (; v =
|
423
|
+
for (; v = r2(z); )
|
424
424
|
S += v;
|
425
425
|
return z.currentChar() === N1 && m(J.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(J.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
|
-
const
|
436
|
-
for (; v = j(z,
|
435
|
+
const U = (u2) => u2 !== S9 && u2 !== $2;
|
436
|
+
for (; v = j(z, U); )
|
437
437
|
v === "\\" ? S += C2(z) : S += v;
|
438
438
|
const Z = z.currentChar();
|
439
|
-
return Z === $2 || Z === N1 ? (m(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Z === $2 && (z.next(),
|
439
|
+
return Z === $2 || Z === N1 ? (m(J.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Z === $2 && (z.next(), b(z, "'")), S) : (b(z, "'"), S);
|
440
440
|
}
|
441
441
|
function C2(z) {
|
442
442
|
const v = z.currentChar();
|
@@ -453,47 +453,47 @@ function FI(e, c = {}) {
|
|
453
453
|
}
|
454
454
|
}
|
455
455
|
function I2(z, v, S) {
|
456
|
-
|
457
|
-
let
|
456
|
+
b(z, v);
|
457
|
+
let U = "";
|
458
458
|
for (let Z = 0; Z < S; Z++) {
|
459
|
-
const u2 =
|
459
|
+
const u2 = a2(z);
|
460
460
|
if (!u2) {
|
461
|
-
m(J.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${v}${
|
461
|
+
m(J.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${v}${U}${z.currentChar()}`);
|
462
462
|
break;
|
463
463
|
}
|
464
|
-
|
464
|
+
U += u2;
|
465
465
|
}
|
466
|
-
return `\\${v}${
|
466
|
+
return `\\${v}${U}`;
|
467
467
|
}
|
468
468
|
function j2(z) {
|
469
|
-
|
469
|
+
N(z);
|
470
470
|
let v = "", S = "";
|
471
|
-
const
|
472
|
-
for (; v = j(z,
|
471
|
+
const U = (Z) => Z !== "{" && Z !== "}" && Z !== H1 && Z !== $2;
|
472
|
+
for (; v = j(z, U); )
|
473
473
|
S += v;
|
474
474
|
return S;
|
475
475
|
}
|
476
476
|
function o1(z) {
|
477
477
|
let v = "", S = "";
|
478
|
-
for (; v =
|
478
|
+
for (; v = r2(z); )
|
479
479
|
S += v;
|
480
480
|
return S;
|
481
481
|
}
|
482
482
|
function f1(z) {
|
483
|
-
const v = (S = !1,
|
483
|
+
const v = (S = !1, U) => {
|
484
484
|
const Z = z.currentChar();
|
485
|
-
return Z === "{" || Z === "%" || Z === "@" || Z === "|" || Z === "(" || Z === ")" || !Z || Z === H1 ?
|
485
|
+
return Z === "{" || Z === "%" || Z === "@" || Z === "|" || Z === "(" || Z === ")" || !Z || Z === H1 ? U : Z === $2 || Z === BI ? (U += Z, z.next(), v(S, U)) : (U += Z, z.next(), v(!0, U));
|
486
486
|
};
|
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,62 +504,62 @@ 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(J.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(J.UNTERMINATED_CLOSING_BRACE, i(), 0), S = u1(z, v) || h(v), v.braceNest = 0, S;
|
517
517
|
default:
|
518
518
|
let Z = !0, u2 = !0, J2 = !0;
|
519
|
-
if (
|
519
|
+
if (F(z))
|
520
520
|
return v.braceNest > 0 && m(J.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(J.UNTERMINATED_CLOSING_BRACE, i(), 0), v.braceNest = 0, s1(z, v);
|
523
|
-
if (Z =
|
524
|
-
return S = d(v, 5, v2(z)),
|
523
|
+
if (Z = _(z, v))
|
524
|
+
return S = d(v, 5, v2(z)), N(z), S;
|
525
525
|
if (u2 = M(z, v))
|
526
|
-
return S = d(v, 6, A2(z)),
|
527
|
-
if (J2 =
|
528
|
-
return S = d(v, 7, k2(z)),
|
526
|
+
return S = d(v, 6, A2(z)), N(z), S;
|
527
|
+
if (J2 = x(z, v))
|
528
|
+
return S = d(v, 7, k2(z)), N(z), S;
|
529
529
|
if (!Z && !u2 && !J2)
|
530
|
-
return S = d(v, 13, j2(z)), m(J.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, S.value),
|
530
|
+
return S = d(v, 13, j2(z)), m(J.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, S.value), N(z), S;
|
531
531
|
break;
|
532
532
|
}
|
533
533
|
return S;
|
534
534
|
}
|
535
535
|
function u1(z, v) {
|
536
536
|
const { currentType: S } = v;
|
537
|
-
let
|
537
|
+
let U = null;
|
538
538
|
const Z = z.currentChar();
|
539
539
|
switch ((S === 8 || S === 9 || S === 12 || S === 10) && (Z === $2 || Z === H1) && m(J.INVALID_LINKED_FORMAT, i(), 0), Z) {
|
540
540
|
case "@":
|
541
|
-
return z.next(),
|
541
|
+
return z.next(), U = d(
|
542
542
|
v,
|
543
543
|
8,
|
544
544
|
"@"
|
545
545
|
/* TokenChars.LinkedAlias */
|
546
|
-
), v.inLinked = !0,
|
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
|
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), Z === "{" ? i1(z, v) || U : d(v, 11, f1(z))) : (S === 8 && m(J.INVALID_LINKED_FORMAT, i(), 0), v.braceNest = 0, v.inLinked = !1, s1(z, v));
|
563
563
|
}
|
564
564
|
}
|
565
565
|
function s1(z, v) {
|
@@ -584,7 +584,7 @@ function FI(e, c = {}) {
|
|
584
584
|
case "@":
|
585
585
|
return u1(z, v) || h(v);
|
586
586
|
default:
|
587
|
-
if (
|
587
|
+
if (F(z))
|
588
588
|
return S = d(v, 1, R2(z)), v.braceNest = 0, v.inLinked = !1, S;
|
589
589
|
const { isModulo: Z, hasSpace: u2 } = W(z);
|
590
590
|
if (Z)
|
@@ -596,8 +596,8 @@ function FI(e, c = {}) {
|
|
596
596
|
return S;
|
597
597
|
}
|
598
598
|
function F1() {
|
599
|
-
const { currentType: z, offset: v, startLoc: S, endLoc:
|
600
|
-
return l.lastType = z, l.lastOffset = v, l.lastStartLoc = S, l.lastEndLoc =
|
599
|
+
const { currentType: z, offset: v, startLoc: S, endLoc: U } = l;
|
600
|
+
return l.lastType = z, l.lastOffset = v, l.lastStartLoc = S, l.lastEndLoc = U, l.offset = n(), l.startLoc = i(), t.currentChar() === N1 ? d(
|
601
601
|
l,
|
602
602
|
14
|
603
603
|
/* TokenTypes.EOF */
|
@@ -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, g,
|
629
|
-
const
|
630
|
-
if (
|
631
|
-
const
|
628
|
+
function t(V, g, _, M, ...x) {
|
629
|
+
const w = V.currentPosition();
|
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
|
-
args:
|
633
|
+
args: x
|
634
634
|
});
|
635
|
-
a(
|
635
|
+
a(y);
|
636
636
|
}
|
637
637
|
}
|
638
|
-
function n(V, g,
|
638
|
+
function n(V, g, _) {
|
639
639
|
const M = { type: V };
|
640
|
-
return c && (M.start = g, M.end = g, M.loc = { start:
|
640
|
+
return c && (M.start = g, M.end = g, M.loc = { start: _, end: _ }), M;
|
641
641
|
}
|
642
|
-
function i(V, g,
|
643
|
-
M && (V.type = M), c && (V.end = g, V.loc && (V.loc.end =
|
642
|
+
function i(V, g, _, M) {
|
643
|
+
M && (V.type = M), c && (V.end = g, V.loc && (V.loc.end = _));
|
644
644
|
}
|
645
645
|
function s(V, g) {
|
646
|
-
const
|
646
|
+
const _ = V.context(), M = n(3, _.offset, _.startLoc);
|
647
647
|
return M.value = g, i(M, V.currentOffset(), V.currentPosition()), M;
|
648
648
|
}
|
649
649
|
function r(V, g) {
|
650
|
-
const
|
651
|
-
return
|
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
653
|
function l(V, g) {
|
654
|
-
const
|
655
|
-
return
|
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
657
|
function f(V, g) {
|
658
|
-
const
|
659
|
-
return
|
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 g = V.nextToken(),
|
663
|
-
return g.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER,
|
662
|
+
const g = V.nextToken(), _ = V.context(), { lastOffset: M, lastStartLoc: x } = _, w = n(8, M, x);
|
663
|
+
return g.type !== 12 ? (t(V, J.UNEXPECTED_EMPTY_LINKED_MODIFIER, _.lastStartLoc, 0), w.value = "", i(w, M, x), {
|
664
664
|
nextConsumeToken: g,
|
665
|
-
node:
|
666
|
-
}) : (g.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS,
|
667
|
-
node:
|
665
|
+
node: w
|
666
|
+
}) : (g.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, _.lastStartLoc, 0, m1(g)), w.value = g.value || "", i(w, V.currentOffset(), V.currentPosition()), {
|
667
|
+
node: w
|
668
668
|
});
|
669
669
|
}
|
670
670
|
function m(V, g) {
|
671
|
-
const
|
671
|
+
const _ = V.context(), M = n(7, _.offset, _.startLoc);
|
672
672
|
return M.value = g, i(M, V.currentOffset(), V.currentPosition()), M;
|
673
673
|
}
|
674
674
|
function d(V) {
|
675
|
-
const g = V.context(),
|
675
|
+
const g = V.context(), _ = n(6, g.offset, g.startLoc);
|
676
676
|
let M = V.nextToken();
|
677
677
|
if (M.type === 9) {
|
678
|
-
const
|
679
|
-
|
678
|
+
const x = o(V);
|
679
|
+
_.modifier = x.node, M = x.nextConsumeToken || V.nextToken();
|
680
680
|
}
|
681
681
|
switch (M.type !== 10 && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), M = V.nextToken(), M.type === 2 && (M = V.nextToken()), M.type) {
|
682
682
|
case 11:
|
683
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
683
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = m(V, M.value || "");
|
684
684
|
break;
|
685
685
|
case 5:
|
686
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
686
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = l(V, M.value || "");
|
687
687
|
break;
|
688
688
|
case 6:
|
689
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
689
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = r(V, M.value || "");
|
690
690
|
break;
|
691
691
|
case 7:
|
692
|
-
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)),
|
692
|
+
M.value == null && t(V, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(M)), _.key = f(V, M.value || "");
|
693
693
|
break;
|
694
694
|
default:
|
695
695
|
t(V, J.UNEXPECTED_EMPTY_LINKED_KEY, g.lastStartLoc, 0);
|
696
|
-
const
|
697
|
-
return
|
696
|
+
const x = V.context(), w = n(7, x.offset, x.startLoc);
|
697
|
+
return w.value = "", i(w, x.offset, x.startLoc), _.key = w, i(_, x.offset, x.startLoc), {
|
698
698
|
nextConsumeToken: M,
|
699
|
-
node:
|
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 g = V.context(),
|
708
|
-
|
709
|
-
let
|
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
|
+
x.items = [];
|
709
|
+
let w = null;
|
710
710
|
do {
|
711
|
-
const
|
712
|
-
switch (
|
711
|
+
const A = w || V.nextToken();
|
712
|
+
switch (w = null, A.type) {
|
713
713
|
case 0:
|
714
|
-
|
714
|
+
A.value == null && t(V, J.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, J.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, J.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, J.UNEXPECTED_LEXICAL_ANALYSIS, g.lastStartLoc, 0, m1(A)), x.items.push(f(V, A.value || ""));
|
724
724
|
break;
|
725
725
|
case 8:
|
726
|
-
const
|
727
|
-
|
726
|
+
const F = d(V);
|
727
|
+
x.items.push(F.node), w = F.nextConsumeToken || null;
|
728
728
|
break;
|
729
729
|
}
|
730
730
|
} while (g.currentType !== 14 && g.currentType !== 1);
|
731
|
-
const
|
732
|
-
return i(
|
733
|
-
}
|
734
|
-
function
|
735
|
-
const
|
736
|
-
let
|
737
|
-
const
|
738
|
-
|
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
|
+
}
|
734
|
+
function b(V, g, _, M) {
|
735
|
+
const x = V.context();
|
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
|
-
|
742
|
-
} while (
|
743
|
-
return
|
740
|
+
const y = h(V);
|
741
|
+
w || (w = y.items.length === 0), C.cases.push(y);
|
742
|
+
} while (x.currentType !== 14);
|
743
|
+
return w && t(V, J.MUST_HAVE_MESSAGES_IN_PLURAL, _, 0), i(C, V.currentOffset(), V.currentPosition()), C;
|
744
744
|
}
|
745
745
|
function L(V) {
|
746
|
-
const g = V.context(), { offset:
|
747
|
-
return g.currentType === 14 ?
|
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 g = FI(V, ui({}, e)),
|
751
|
-
return c && M.loc && (M.loc.source = V), M.body = L(g), e.onCacheKey && (M.cacheKey = e.onCacheKey(V)),
|
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, J.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(
|
910
|
+
function o(N, V = !0) {
|
911
911
|
const g = V ? n : "";
|
912
|
-
f(i ? g + " ".repeat(
|
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;
|
@@ -1334,34 +1334,34 @@ function gE(e, c) {
|
|
1334
1334
|
c.count || (c.count = e), c.n || (c.n = e);
|
1335
1335
|
}
|
1336
1336
|
function HE(e = {}) {
|
1337
|
-
const c = e.locale, a = zE(e), t = m2(e.pluralRules) &&
|
1337
|
+
const c = e.locale, a = zE(e), t = m2(e.pluralRules) && $(c) && V2(e.pluralRules[c]) ? e.pluralRules[c] : E9, n = m2(e.pluralRules) && $(c) && V2(e.pluralRules[c]) ? E9 : void 0, i = (V) => V[t(a, V.length, n)], s = e.list || [], r = (V) => s[V], l = e.named || {};
|
1338
1338
|
S2(e.pluralIndex) && gE(a, l);
|
1339
1339
|
const f = (V) => l[V];
|
1340
1340
|
function o(V) {
|
1341
1341
|
const g = V2(e.messages) ? e.messages(V) : m2(e.messages) ? e.messages[V] : !1;
|
1342
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
1348
|
linked: (V, ...g) => {
|
1349
|
-
const [
|
1350
|
-
let
|
1351
|
-
g.length === 1 ? m2(
|
1352
|
-
const
|
1349
|
+
const [_, M] = g;
|
1350
|
+
let x = "text", w = "";
|
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
|
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) {
|
@@ -1408,16 +1408,16 @@ function _0(e, c) {
|
|
1408
1408
|
}
|
1409
1409
|
let j6;
|
1410
1410
|
function D9(e) {
|
1411
|
-
return
|
1411
|
+
return $(e) ? e : j6 != null && e.resolvedOnce ? j6 : j6 = e();
|
1412
1412
|
}
|
1413
1413
|
function yE(e, c, a) {
|
1414
1414
|
return [.../* @__PURE__ */ new Set([
|
1415
1415
|
a,
|
1416
|
-
...p2(c) ? c : m2(c) ? Object.keys(c) :
|
1416
|
+
...p2(c) ? c : m2(c) ? Object.keys(c) : $(c) ? [c] : [a]
|
1417
1417
|
])];
|
1418
1418
|
}
|
1419
1419
|
function di(e, c, a) {
|
1420
|
-
const t =
|
1420
|
+
const t = $(a) ? a : f3, n = e;
|
1421
1421
|
n.__localeChainCache || (n.__localeChainCache = /* @__PURE__ */ new Map());
|
1422
1422
|
let i = n.__localeChainCache.get(t);
|
1423
1423
|
if (!i) {
|
@@ -1426,7 +1426,7 @@ function di(e, c, a) {
|
|
1426
1426
|
for (; p2(s); )
|
1427
1427
|
s = O9(i, s, c);
|
1428
1428
|
const r = p2(c) || !c2(c) ? c : c.default ? c.default : null;
|
1429
|
-
s =
|
1429
|
+
s = $(r) ? [r] : r, p2(s) && O9(i, s, !1), n.__localeChainCache.set(t, i);
|
1430
1430
|
}
|
1431
1431
|
return i;
|
1432
1432
|
}
|
@@ -1434,7 +1434,7 @@ function O9(e, c, a) {
|
|
1434
1434
|
let t = !0;
|
1435
1435
|
for (let n = 0; n < c.length && n2(t); n++) {
|
1436
1436
|
const i = c[n];
|
1437
|
-
|
1437
|
+
$(i) && (t = AE(e, c[n], a));
|
1438
1438
|
}
|
1439
1439
|
return t;
|
1440
1440
|
}
|
@@ -1459,9 +1459,9 @@ function NE(e, c, a) {
|
|
1459
1459
|
const xE = "9.7.0", B4 = -1, f3 = "en-US", k4 = "", P9 = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
1460
1460
|
function kE() {
|
1461
1461
|
return {
|
1462
|
-
upper: (e, c) => c === "text" &&
|
1463
|
-
lower: (e, c) => c === "text" &&
|
1464
|
-
capitalize: (e, c) => c === "text" &&
|
1462
|
+
upper: (e, c) => c === "text" && $(e) ? e.toUpperCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
1463
|
+
lower: (e, c) => c === "text" && $(e) ? e.toLowerCase() : c === "vnode" && m2(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
1464
|
+
capitalize: (e, c) => c === "text" && $(e) ? P9(e) : c === "vnode" && m2(e) && "__v_isVNode" in e ? P9(e.children) : e
|
1465
1465
|
};
|
1466
1466
|
}
|
1467
1467
|
let vi;
|
@@ -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 =
|
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
|
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(), W = 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:
|
1504
|
+
fallbackFormat: b,
|
1505
1505
|
unresolving: L,
|
1506
|
-
postTranslation:
|
1506
|
+
postTranslation: N,
|
1507
1507
|
processor: V,
|
1508
1508
|
warnHtmlMessage: g,
|
1509
|
-
escapeParameter:
|
1509
|
+
escapeParameter: _,
|
1510
1510
|
messageCompiler: M,
|
1511
|
-
messageResolver:
|
1512
|
-
localeFallbacker:
|
1513
|
-
fallbackContext:
|
1511
|
+
messageResolver: x,
|
1512
|
+
localeFallbacker: w,
|
1513
|
+
fallbackContext: C,
|
1514
1514
|
onWarn: c,
|
1515
1515
|
__meta: W
|
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, W), R;
|
1518
1518
|
}
|
1519
1519
|
function j4(e, c) {
|
1520
1520
|
return e instanceof RegExp ? e.test(c) : e;
|
@@ -1535,7 +1535,7 @@ function y0(e, c, a, t, n) {
|
|
1535
1535
|
}
|
1536
1536
|
if (i !== null) {
|
1537
1537
|
const r = i(e, a, c, n);
|
1538
|
-
return
|
1538
|
+
return $(r) ? r : c;
|
1539
1539
|
} else
|
1540
1540
|
return process.env.NODE_ENV !== "production" && gi(t, c) && s(Q1(U2.NOT_FOUND_KEY, { key: c, locale: a })), c;
|
1541
1541
|
}
|
@@ -1625,7 +1625,7 @@ function Ci(e, c = {}) {
|
|
1625
1625
|
}, { ...tE(e, c), detectError: a };
|
1626
1626
|
}
|
1627
1627
|
const jE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
1628
|
-
if (
|
1628
|
+
if (!$(e))
|
1629
1629
|
throw U1(c1.NOT_SUPPORT_NON_STRING_MESSAGE);
|
1630
1630
|
{
|
1631
1631
|
const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
@@ -1638,7 +1638,7 @@ const jE = /* @__NO_SIDE_EFFECTS__ */ (e, c) => {
|
|
1638
1638
|
}
|
1639
1639
|
};
|
1640
1640
|
function FE(e, c) {
|
1641
|
-
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ &&
|
1641
|
+
if (__INTLIFY_JIT_COMPILATION__ && !__INTLIFY_DROP_MESSAGE_COMPILER__ && $(e)) {
|
1642
1642
|
const a = n2(c.warnHtmlMessage) ? c.warnHtmlMessage : !0;
|
1643
1643
|
process.env.NODE_ENV !== "production" && Mi(e, a);
|
1644
1644
|
const n = (c.onCacheKey || bi)(e), i = n3[n];
|
@@ -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, g,
|
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
|
-
let
|
1678
|
-
const
|
1679
|
-
|
1680
|
-
},
|
1681
|
-
if (
|
1677
|
+
let w = !1;
|
1678
|
+
const C = () => {
|
1679
|
+
w = !0;
|
1680
|
+
}, y = e1(M) ? M : _i(e, l, g, M, x, C);
|
1681
|
+
if (w)
|
1682
1682
|
return M;
|
1683
|
-
const
|
1683
|
+
const A = WE(e, g, _, f), F = HE(A), W = $E(e, y, F), R = t ? t(W, l) : W;
|
1684
1684
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
1685
1685
|
const j = {
|
1686
1686
|
timestamp: Date.now(),
|
1687
|
-
key:
|
1687
|
+
key: $(l) ? l : e1(M) ? M.key : "",
|
1688
1688
|
locale: g || (e1(M) ? M.locale : ""),
|
1689
|
-
format:
|
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);
|
@@ -1694,51 +1694,51 @@ function U9(e, ...c) {
|
|
1694
1694
|
return R;
|
1695
1695
|
}
|
1696
1696
|
function RE(e) {
|
1697
|
-
p2(e.list) ? e.list = e.list.map((c) =>
|
1698
|
-
|
1697
|
+
p2(e.list) ? e.list = e.list.map((c) => $(c) ? A9(c) : c) : m2(e.named) && Object.keys(e.named).forEach((c) => {
|
1698
|
+
$(e.named[c]) && (e.named[c] = A9(e.named[c]));
|
1699
1699
|
});
|
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
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
|
-
const
|
1711
|
-
|
1712
|
-
type:
|
1710
|
+
const w = e.__v_emitter;
|
1711
|
+
w && w.emit("fallback", {
|
1712
|
+
type: N,
|
1713
1713
|
key: c,
|
1714
|
-
from:
|
1714
|
+
from: b,
|
1715
1715
|
to: L,
|
1716
|
-
groupId: `${
|
1716
|
+
groupId: `${N}:${c}`
|
1717
1717
|
});
|
1718
1718
|
}
|
1719
1719
|
m = s[d] || {};
|
1720
|
-
let g = null,
|
1721
|
-
if (process.env.NODE_ENV !== "production" && p1 && (g = window.performance.now(),
|
1722
|
-
const
|
1723
|
-
|
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
|
+
const w = window.performance.now(), C = e.__v_emitter;
|
1723
|
+
C && g && h && C.emit("message-resolve", {
|
1724
1724
|
type: "message-resolve",
|
1725
1725
|
key: c,
|
1726
1726
|
message: h,
|
1727
|
-
time:
|
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
|
-
if (
|
1731
|
+
if ($(h) || E1(h) || e1(h))
|
1732
1732
|
break;
|
1733
|
-
const
|
1733
|
+
const x = y0(
|
1734
1734
|
e,
|
1735
1735
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
1736
1736
|
c,
|
1737
1737
|
d,
|
1738
1738
|
i,
|
1739
|
-
|
1739
|
+
N
|
1740
1740
|
);
|
1741
|
-
|
1741
|
+
x !== c && (h = x), b = L;
|
1742
1742
|
}
|
1743
1743
|
return [h, d, m];
|
1744
1744
|
}
|
@@ -1783,10 +1783,10 @@ function $E(e, c, a) {
|
|
1783
1783
|
}
|
1784
1784
|
function K6(...e) {
|
1785
1785
|
const [c, a, t] = e, n = {};
|
1786
|
-
if (
|
1786
|
+
if (!$(c) && !S2(c) && !e1(c) && !E1(c))
|
1787
1787
|
throw U1(c1.INVALID_ARGUMENT);
|
1788
1788
|
const i = S2(c) ? String(c) : (e1(c), c);
|
1789
|
-
return S2(a) ? n.plural = a :
|
1789
|
+
return S2(a) ? n.plural = a : $(a) ? n.default = a : c2(a) && !P4(a) ? n.named = a : p2(a) && (n.list = a), S2(t) ? n.plural = t : $(t) ? n.default = t : c2(t) && P2(n, t), [i, n];
|
1790
1790
|
}
|
1791
1791
|
function UE(e, c, a, t, n, i) {
|
1792
1792
|
return {
|
@@ -1811,7 +1811,7 @@ ${f}` : l);
|
|
1811
1811
|
};
|
1812
1812
|
}
|
1813
1813
|
function qE(e) {
|
1814
|
-
if (
|
1814
|
+
if ($(e))
|
1815
1815
|
return e;
|
1816
1816
|
if (e.loc && e.loc.source)
|
1817
1817
|
return e.loc.source;
|
@@ -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 (
|
1825
|
+
let b = s(a, h);
|
1826
|
+
if (b == null && o) {
|
1827
1827
|
const [, , L] = Li(o, h, c, r, l, f);
|
1828
|
-
|
1828
|
+
b = s(L, h);
|
1829
1829
|
}
|
1830
|
-
if (
|
1830
|
+
if ($(b) || E1(b)) {
|
1831
1831
|
let L = !1;
|
1832
|
-
const V = _i(e, h, c,
|
1832
|
+
const V = _i(e, h, c, b, h, () => {
|
1833
1833
|
L = !0;
|
1834
1834
|
});
|
1835
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
|
-
if (
|
1856
|
+
if (!$(l) || l === "")
|
1857
1857
|
return new Intl.DateTimeFormat(L, m).format(f);
|
1858
|
-
let V = {}, g,
|
1859
|
-
const
|
1860
|
-
for (let
|
1861
|
-
if (g =
|
1858
|
+
let V = {}, g, _ = null, M = L, x = null;
|
1859
|
+
const w = "datetime format";
|
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
1863
|
target: g
|
1864
1864
|
})), process.env.NODE_ENV !== "production" && L !== g) {
|
1865
|
-
const
|
1866
|
-
|
1867
|
-
type:
|
1865
|
+
const F = e.__v_emitter;
|
1866
|
+
F && F.emit("fallback", {
|
1867
|
+
type: w,
|
1868
1868
|
key: l,
|
1869
1869
|
from: M,
|
1870
|
-
to:
|
1871
|
-
groupId: `${
|
1870
|
+
to: x,
|
1871
|
+
groupId: `${w}:${l}`
|
1872
1872
|
});
|
1873
1873
|
}
|
1874
|
-
if (V = a[g] || {},
|
1874
|
+
if (V = a[g] || {}, _ = V[l], c2(_))
|
1875
1875
|
break;
|
1876
|
-
y0(e, l, g, d,
|
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
|
1881
|
-
P4(m) || (
|
1882
|
-
let
|
1883
|
-
return
|
1880
|
+
let C = `${g}__${l}`;
|
1881
|
+
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
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",
|
@@ -1907,7 +1907,7 @@ const Ai = [
|
|
1907
1907
|
function Z6(...e) {
|
1908
1908
|
const [c, a, t, n] = e, i = {};
|
1909
1909
|
let s = {}, r;
|
1910
|
-
if (
|
1910
|
+
if ($(c)) {
|
1911
1911
|
const l = c.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
1912
1912
|
if (!l)
|
1913
1913
|
throw U1(c1.INVALID_ISO_DATE_ARGUMENT);
|
@@ -1926,9 +1926,9 @@ function Z6(...e) {
|
|
1926
1926
|
r = c;
|
1927
1927
|
else
|
1928
1928
|
throw U1(c1.INVALID_ARGUMENT);
|
1929
|
-
return
|
1929
|
+
return $(a) ? i.key = a : c2(a) && Object.keys(a).forEach((l) => {
|
1930
1930
|
Ai.includes(l) ? s[l] = a[l] : i[l] = a[l];
|
1931
|
-
}),
|
1931
|
+
}), $(t) ? i.locale = t : c2(t) && (s = t), c2(n) && (s = n), [i.key || "", r, i, s];
|
1932
1932
|
}
|
1933
1933
|
function G9(e, c, a) {
|
1934
1934
|
const t = e;
|
@@ -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
|
-
if (
|
1950
|
+
if (!$(l) || l === "")
|
1951
1951
|
return new Intl.NumberFormat(L, m).format(f);
|
1952
|
-
let V = {}, g,
|
1953
|
-
const
|
1954
|
-
for (let
|
1955
|
-
if (g =
|
1952
|
+
let V = {}, g, _ = null, M = L, x = null;
|
1953
|
+
const w = "number format";
|
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
1957
|
target: g
|
1958
1958
|
})), process.env.NODE_ENV !== "production" && L !== g) {
|
1959
|
-
const
|
1960
|
-
|
1961
|
-
type:
|
1959
|
+
const F = e.__v_emitter;
|
1960
|
+
F && F.emit("fallback", {
|
1961
|
+
type: w,
|
1962
1962
|
key: l,
|
1963
1963
|
from: M,
|
1964
|
-
to:
|
1965
|
-
groupId: `${
|
1964
|
+
to: x,
|
1965
|
+
groupId: `${w}:${l}`
|
1966
1966
|
});
|
1967
1967
|
}
|
1968
|
-
if (V = a[g] || {},
|
1968
|
+
if (V = a[g] || {}, _ = V[l], c2(_))
|
1969
1969
|
break;
|
1970
|
-
y0(e, l, g, d,
|
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
|
1975
|
-
P4(m) || (
|
1976
|
-
let
|
1977
|
-
return
|
1974
|
+
let C = `${g}__${l}`;
|
1975
|
+
P4(m) || (C = `${C}__${JSON.stringify(m)}`);
|
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",
|
@@ -2004,9 +2004,9 @@ function J6(...e) {
|
|
2004
2004
|
if (!S2(c))
|
2005
2005
|
throw U1(c1.INVALID_ARGUMENT);
|
2006
2006
|
const r = c;
|
2007
|
-
return
|
2007
|
+
return $(a) ? i.key = a : c2(a) && Object.keys(a).forEach((l) => {
|
2008
2008
|
Ni.includes(l) ? s[l] = a[l] : i[l] = a[l];
|
2009
|
-
}),
|
2009
|
+
}), $(t) ? i.locale = t : c2(t) && (s = t), c2(n) && (s = n), [i.key || "", r, i, s];
|
2010
2010
|
}
|
2011
2011
|
function Q9(e, c, a) {
|
2012
2012
|
const t = e;
|
@@ -2140,7 +2140,7 @@ const ki = U2.__EXTEND_POINT__, x1 = b0(ki), N2 = {
|
|
2140
2140
|
function Q2(e, ...c) {
|
2141
2141
|
return M0(tD[e], ...c);
|
2142
2142
|
}
|
2143
|
-
const Si = c1.__EXTEND_POINT__, q2 = b0(Si),
|
2143
|
+
const Si = c1.__EXTEND_POINT__, q2 = b0(Si), f2 = {
|
2144
2144
|
// composer module errors
|
2145
2145
|
UNEXPECTED_RETURN_TYPE: Si,
|
2146
2146
|
// legacy module errors
|
@@ -2173,20 +2173,20 @@ function w2(e, ...c) {
|
|
2173
2173
|
return h3(e, null, process.env.NODE_ENV !== "production" ? { messages: nD, args: c } : void 0);
|
2174
2174
|
}
|
2175
2175
|
const nD = {
|
2176
|
-
[
|
2177
|
-
[
|
2178
|
-
[
|
2179
|
-
[
|
2180
|
-
[
|
2181
|
-
[
|
2182
|
-
[
|
2183
|
-
[
|
2184
|
-
[
|
2185
|
-
[
|
2186
|
-
[
|
2187
|
-
[
|
2188
|
-
[
|
2189
|
-
[
|
2176
|
+
[f2.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
2177
|
+
[f2.INVALID_ARGUMENT]: "Invalid argument",
|
2178
|
+
[f2.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
2179
|
+
[f2.NOT_INSTALLED]: "Need to install with `app.use` function",
|
2180
|
+
[f2.UNEXPECTED_ERROR]: "Unexpected error",
|
2181
|
+
[f2.NOT_AVAILABLE_IN_LEGACY_MODE]: "Not available in legacy mode",
|
2182
|
+
[f2.REQUIRED_VALUE]: "Required in value: {0}",
|
2183
|
+
[f2.INVALID_VALUE]: "Invalid value",
|
2184
|
+
[f2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]: "Cannot setup vue-devtools plugin",
|
2185
|
+
[f2.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
2186
|
+
[f2.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
2187
|
+
[f2.BRIDGE_SUPPORT_VUE_2_ONLY]: "vue-i18n-bridge support Vue 2.x only",
|
2188
|
+
[f2.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]: "Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",
|
2189
|
+
[f2.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
2190
2190
|
}, c0 = /* @__PURE__ */ g1("__translateVNode"), a0 = /* @__PURE__ */ g1("__datetimeParts"), t0 = /* @__PURE__ */ g1("__numberParts"), X1 = /* @__PURE__ */ g1("__enableEmitter"), E3 = /* @__PURE__ */ g1("__disableEmitter"), wi = g1("__setPluralRules"), Ti = /* @__PURE__ */ g1("__injectWithOption"), n0 = /* @__PURE__ */ g1("__dispose");
|
2191
2191
|
function D3(e) {
|
2192
2192
|
if (!m2(e))
|
@@ -2218,7 +2218,7 @@ function F4(e, c) {
|
|
2218
2218
|
const { locale: l, resource: f } = r;
|
2219
2219
|
l ? (s[l] = s[l] || {}, A3(f, s[l])) : A3(f, s);
|
2220
2220
|
} else
|
2221
|
-
|
2221
|
+
$(r) && A3(JSON.parse(r), s);
|
2222
2222
|
}), n == null && i)
|
2223
2223
|
for (const r in s)
|
2224
2224
|
T3(s, r) && D3(s[r]);
|
@@ -2270,40 +2270,40 @@ function A0(e = {}, c) {
|
|
2270
2270
|
let s = n2(e.inheritLocale) ? e.inheritLocale : !0;
|
2271
2271
|
const r = e2(
|
2272
2272
|
// prettier-ignore
|
2273
|
-
a && s ? a.locale.value :
|
2273
|
+
a && s ? a.locale.value : $(e.locale) ? e.locale : f3
|
2274
2274
|
), l = e2(
|
2275
2275
|
// prettier-ignore
|
2276
|
-
a && s ? a.fallbackLocale.value :
|
2276
|
+
a && s ? a.fallbackLocale.value : $(e.fallbackLocale) || p2(e.fallbackLocale) || c2(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : r.value
|
2277
2277
|
), f = e2(F4(r.value, e)), o = e2(c2(e.datetimeFormats) ? e.datetimeFormats : { [r.value]: {} }), m = e2(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,
|
2279
|
-
const
|
2280
|
-
let
|
2281
|
-
|
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
|
+
const x = a ? a.modifiers : c2(e.modifiers) ? e.modifiers : {};
|
2280
|
+
let w = e.pluralRules || a && a.pluralRules, C;
|
2281
|
+
C = (() => {
|
2282
2282
|
n && j9(null);
|
2283
2283
|
const T = {
|
2284
2284
|
version: cD,
|
2285
2285
|
locale: r.value,
|
2286
2286
|
fallbackLocale: l.value,
|
2287
2287
|
messages: f.value,
|
2288
|
-
modifiers:
|
2289
|
-
pluralRules:
|
2288
|
+
modifiers: x,
|
2289
|
+
pluralRules: w,
|
2290
2290
|
missing: V === null ? void 0 : V,
|
2291
2291
|
missingWarn: d,
|
2292
2292
|
fallbackWarn: h,
|
2293
2293
|
fallbackFormat: L,
|
2294
2294
|
unresolving: !0,
|
2295
2295
|
postTranslation: g === null ? void 0 : g,
|
2296
|
-
warnHtmlMessage:
|
2296
|
+
warnHtmlMessage: _,
|
2297
2297
|
escapeParameter: M,
|
2298
2298
|
messageResolver: e.messageResolver,
|
2299
2299
|
messageCompiler: e.messageCompiler,
|
2300
2300
|
__meta: { framework: "vue" }
|
2301
2301
|
};
|
2302
|
-
T.datetimeFormats = o.value, T.numberFormats = m.value, T.__datetimeFormatters = c2(
|
2302
|
+
T.datetimeFormats = o.value, T.numberFormats = m.value, T.__datetimeFormatters = c2(C) ? C.__datetimeFormatters : void 0, T.__numberFormatters = c2(C) ? C.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (T.__v_emitter = c2(C) ? C.__v_emitter : void 0);
|
2303
2303
|
const P = DE(T);
|
2304
2304
|
return n && j9(P), P;
|
2305
|
-
})(), C3(
|
2306
|
-
function
|
2305
|
+
})(), C3(C, r.value, l.value);
|
2306
|
+
function A() {
|
2307
2307
|
return [
|
2308
2308
|
r.value,
|
2309
2309
|
l.value,
|
@@ -2312,79 +2312,79 @@ function A0(e = {}, c) {
|
|
2312
2312
|
m.value
|
2313
2313
|
];
|
2314
2314
|
}
|
2315
|
-
const
|
2315
|
+
const F = E({
|
2316
2316
|
get: () => r.value,
|
2317
2317
|
set: (T) => {
|
2318
|
-
r.value = T,
|
2318
|
+
r.value = T, C.locale = r.value;
|
2319
2319
|
}
|
2320
2320
|
}), W = E({
|
2321
2321
|
get: () => l.value,
|
2322
2322
|
set: (T) => {
|
2323
|
-
l.value = T,
|
2323
|
+
l.value = T, C.fallbackLocale = l.value, C3(C, r.value, T);
|
2324
2324
|
}
|
2325
|
-
}), R = E(() => f.value), j = /* @__PURE__ */ E(() => o.value),
|
2326
|
-
function
|
2325
|
+
}), R = E(() => f.value), j = /* @__PURE__ */ E(() => o.value), r2 = /* @__PURE__ */ E(() => m.value);
|
2326
|
+
function l2() {
|
2327
2327
|
return V2(g) ? g : null;
|
2328
2328
|
}
|
2329
|
-
function
|
2330
|
-
g = T,
|
2329
|
+
function a2(T) {
|
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
|
-
const v2 = (T, P,
|
2342
|
-
|
2341
|
+
const v2 = (T, P, o2, _2, R1, v4) => {
|
2342
|
+
A();
|
2343
2343
|
let c3;
|
2344
2344
|
try {
|
2345
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (
|
2345
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = a ? EE() : void 0), c3 = T(C);
|
2346
2346
|
} finally {
|
2347
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (
|
2347
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, n || (C.fallbackContext = void 0);
|
2348
2348
|
}
|
2349
|
-
if (
|
2350
|
-
S2(c3) && c3 === B4 ||
|
2349
|
+
if (o2 !== "translate exists" && // for not `te` (e.g `t`)
|
2350
|
+
S2(c3) && c3 === B4 || o2 === "translate exists" && !c3) {
|
2351
2351
|
const [$1, sI] = P();
|
2352
|
-
if (process.env.NODE_ENV !== "production" && a &&
|
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
|
-
type:
|
2354
|
+
type: o2
|
2355
2355
|
})), process.env.NODE_ENV !== "production")) {
|
2356
|
-
const { __v_emitter: L9 } =
|
2357
|
-
L9 &&
|
2358
|
-
type:
|
2356
|
+
const { __v_emitter: L9 } = C;
|
2357
|
+
L9 && b && L9.emit("fallback", {
|
2358
|
+
type: o2,
|
2359
2359
|
key: $1,
|
2360
2360
|
to: "global",
|
2361
|
-
groupId: `${
|
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;
|
2368
|
-
throw w2(
|
2368
|
+
throw w2(f2.UNEXPECTED_RETURN_TYPE);
|
2369
2369
|
}
|
2370
2370
|
};
|
2371
2371
|
function A2(...T) {
|
2372
|
-
return v2((P) => Reflect.apply(U9, null, [P, ...T]), () => K6(...T), "translate", (P) => Reflect.apply(P.t, P, [...T]), (P) => P, (P) =>
|
2372
|
+
return v2((P) => Reflect.apply(U9, null, [P, ...T]), () => K6(...T), "translate", (P) => Reflect.apply(P.t, P, [...T]), (P) => P, (P) => $(P));
|
2373
2373
|
}
|
2374
2374
|
function k2(...T) {
|
2375
|
-
const [P,
|
2375
|
+
const [P, o2, _2] = T;
|
2376
2376
|
if (_2 && !m2(_2))
|
2377
|
-
throw w2(
|
2378
|
-
return A2(P,
|
2377
|
+
throw w2(f2.INVALID_ARGUMENT);
|
2378
|
+
return A2(P, o2, P2({ resolvedMessage: !0 }, _2 || {}));
|
2379
2379
|
}
|
2380
2380
|
function C2(...T) {
|
2381
|
-
return v2((P) => Reflect.apply(W9, null, [P, ...T]), () => Z6(...T), "datetime format", (P) => Reflect.apply(P.d, P, [...T]), () => k4, (P) =>
|
2381
|
+
return v2((P) => Reflect.apply(W9, null, [P, ...T]), () => Z6(...T), "datetime format", (P) => Reflect.apply(P.d, P, [...T]), () => k4, (P) => $(P));
|
2382
2382
|
}
|
2383
2383
|
function I2(...T) {
|
2384
|
-
return v2((P) => Reflect.apply(Y9, null, [P, ...T]), () => J6(...T), "number format", (P) => Reflect.apply(P.n, P, [...T]), () => k4, (P) =>
|
2384
|
+
return v2((P) => Reflect.apply(Y9, null, [P, ...T]), () => J6(...T), "number format", (P) => Reflect.apply(P.n, P, [...T]), () => k4, (P) => $(P));
|
2385
2385
|
}
|
2386
2386
|
function j2(T) {
|
2387
|
-
return T.map((P) =>
|
2387
|
+
return T.map((P) => $(P) || S2(P) || n2(P) ? X9(String(P)) : P);
|
2388
2388
|
}
|
2389
2389
|
const f1 = {
|
2390
2390
|
normalize: j2,
|
@@ -2394,14 +2394,14 @@ function A0(e = {}, c) {
|
|
2394
2394
|
function R2(...T) {
|
2395
2395
|
return v2(
|
2396
2396
|
(P) => {
|
2397
|
-
let
|
2397
|
+
let o2;
|
2398
2398
|
const _2 = P;
|
2399
2399
|
try {
|
2400
|
-
_2.processor = f1,
|
2400
|
+
_2.processor = f1, o2 = Reflect.apply(U9, null, [_2, ...T]);
|
2401
2401
|
} finally {
|
2402
2402
|
_2.processor = null;
|
2403
2403
|
}
|
2404
|
-
return
|
2404
|
+
return o2;
|
2405
2405
|
},
|
2406
2406
|
() => K6(...T),
|
2407
2407
|
"translate",
|
@@ -2419,7 +2419,7 @@ function A0(e = {}, c) {
|
|
2419
2419
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2420
2420
|
(P) => P[t0](...T),
|
2421
2421
|
Z9,
|
2422
|
-
(P) =>
|
2422
|
+
(P) => $(P) || p2(P)
|
2423
2423
|
);
|
2424
2424
|
}
|
2425
2425
|
function u1(...T) {
|
@@ -2430,25 +2430,25 @@ function A0(e = {}, c) {
|
|
2430
2430
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2431
2431
|
(P) => P[a0](...T),
|
2432
2432
|
Z9,
|
2433
|
-
(P) =>
|
2433
|
+
(P) => $(P) || p2(P)
|
2434
2434
|
);
|
2435
2435
|
}
|
2436
2436
|
function s1(T) {
|
2437
|
-
|
2437
|
+
w = T, C.pluralRules = w;
|
2438
2438
|
}
|
2439
2439
|
function F1(T, P) {
|
2440
2440
|
return v2(() => {
|
2441
2441
|
if (!T)
|
2442
2442
|
return !1;
|
2443
|
-
const
|
2444
|
-
return E1(R1) || e1(R1) ||
|
2445
|
-
}, () => [T], "translate exists", (
|
2443
|
+
const o2 = $(P) ? P : r.value, _2 = S(o2), R1 = C.messageResolver(_2, T);
|
2444
|
+
return E1(R1) || e1(R1) || $(R1);
|
2445
|
+
}, () => [T], "translate exists", (o2) => Reflect.apply(o2.te, o2, [T, P]), iD, (o2) => n2(o2));
|
2446
2446
|
}
|
2447
2447
|
function z(T) {
|
2448
2448
|
let P = null;
|
2449
|
-
const
|
2450
|
-
for (let _2 = 0; _2 <
|
2451
|
-
const R1 = f.value[
|
2449
|
+
const o2 = di(C, l.value, r.value);
|
2450
|
+
for (let _2 = 0; _2 < o2.length; _2++) {
|
2451
|
+
const R1 = f.value[o2[_2]] || {}, v4 = C.messageResolver(R1, T);
|
2452
2452
|
if (v4 != null) {
|
2453
2453
|
P = v4;
|
2454
2454
|
break;
|
@@ -2463,64 +2463,64 @@ function A0(e = {}, c) {
|
|
2463
2463
|
function S(T) {
|
2464
2464
|
return f.value[T] || {};
|
2465
2465
|
}
|
2466
|
-
function
|
2466
|
+
function U(T, P) {
|
2467
2467
|
if (i) {
|
2468
|
-
const
|
2469
|
-
for (const _2 in
|
2470
|
-
T3(
|
2471
|
-
P =
|
2468
|
+
const o2 = { [T]: P };
|
2469
|
+
for (const _2 in o2)
|
2470
|
+
T3(o2, _2) && D3(o2[_2]);
|
2471
|
+
P = o2[T];
|
2472
2472
|
}
|
2473
|
-
f.value[T] = P,
|
2473
|
+
f.value[T] = P, C.messages = f.value;
|
2474
2474
|
}
|
2475
2475
|
function Z(T, P) {
|
2476
2476
|
f.value[T] = f.value[T] || {};
|
2477
|
-
const
|
2478
|
-
for (const _2 in
|
2479
|
-
T3(
|
2480
|
-
P =
|
2477
|
+
const o2 = { [T]: P };
|
2478
|
+
for (const _2 in o2)
|
2479
|
+
T3(o2, _2) && D3(o2[_2]);
|
2480
|
+
P = o2[T], A3(P, f.value[T]), C.messages = f.value;
|
2481
2481
|
}
|
2482
2482
|
function u2(T) {
|
2483
2483
|
return o.value[T] || {};
|
2484
2484
|
}
|
2485
2485
|
function J2(T, P) {
|
2486
|
-
o.value[T] = P,
|
2486
|
+
o.value[T] = P, C.datetimeFormats = o.value, G9(C, T, P);
|
2487
2487
|
}
|
2488
2488
|
function O2(T, P) {
|
2489
|
-
o.value[T] = P2(o.value[T] || {}, P),
|
2489
|
+
o.value[T] = P2(o.value[T] || {}, P), C.datetimeFormats = o.value, G9(C, T, P);
|
2490
2490
|
}
|
2491
2491
|
function e3(T) {
|
2492
2492
|
return m.value[T] || {};
|
2493
2493
|
}
|
2494
2494
|
function m4(T, P) {
|
2495
|
-
m.value[T] = P,
|
2495
|
+
m.value[T] = P, C.numberFormats = m.value, Q9(C, T, P);
|
2496
2496
|
}
|
2497
2497
|
function d4(T, P) {
|
2498
|
-
m.value[T] = P2(m.value[T] || {}, P),
|
2498
|
+
m.value[T] = P2(m.value[T] || {}, P), C.numberFormats = m.value, Q9(C, T, P);
|
2499
2499
|
}
|
2500
2500
|
J9++, a && p1 && (s2(a.locale, (T) => {
|
2501
|
-
s && (r.value = T,
|
2501
|
+
s && (r.value = T, C.locale = T, C3(C, r.value, l.value));
|
2502
2502
|
}), s2(a.fallbackLocale, (T) => {
|
2503
|
-
s && (l.value = T,
|
2503
|
+
s && (l.value = T, C.fallbackLocale = T, C3(C, r.value, l.value));
|
2504
2504
|
}));
|
2505
2505
|
const L2 = {
|
2506
2506
|
id: J9,
|
2507
|
-
locale:
|
2507
|
+
locale: F,
|
2508
2508
|
fallbackLocale: W,
|
2509
2509
|
get inheritLocale() {
|
2510
2510
|
return s;
|
2511
2511
|
},
|
2512
2512
|
set inheritLocale(T) {
|
2513
|
-
s = T, T && a && (r.value = a.locale.value, l.value = a.fallbackLocale.value, C3(
|
2513
|
+
s = T, T && a && (r.value = a.locale.value, l.value = a.fallbackLocale.value, C3(C, r.value, l.value));
|
2514
2514
|
},
|
2515
2515
|
get availableLocales() {
|
2516
2516
|
return Object.keys(f.value).sort();
|
2517
2517
|
},
|
2518
2518
|
messages: R,
|
2519
2519
|
get modifiers() {
|
2520
|
-
return
|
2520
|
+
return x;
|
2521
2521
|
},
|
2522
2522
|
get pluralRules() {
|
2523
|
-
return
|
2523
|
+
return w || {};
|
2524
2524
|
},
|
2525
2525
|
get isGlobal() {
|
2526
2526
|
return n;
|
@@ -2529,73 +2529,73 @@ function A0(e = {}, c) {
|
|
2529
2529
|
return d;
|
2530
2530
|
},
|
2531
2531
|
set missingWarn(T) {
|
2532
|
-
d = T,
|
2532
|
+
d = T, C.missingWarn = d;
|
2533
2533
|
},
|
2534
2534
|
get fallbackWarn() {
|
2535
2535
|
return h;
|
2536
2536
|
},
|
2537
2537
|
set fallbackWarn(T) {
|
2538
|
-
h = T,
|
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
2547
|
return L;
|
2548
2548
|
},
|
2549
2549
|
set fallbackFormat(T) {
|
2550
|
-
L = T,
|
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
2559
|
return M;
|
2560
2560
|
},
|
2561
2561
|
set escapeParameter(T) {
|
2562
|
-
M = T,
|
2562
|
+
M = T, C.escapeParameter = T;
|
2563
2563
|
},
|
2564
2564
|
t: A2,
|
2565
2565
|
getLocaleMessage: S,
|
2566
|
-
setLocaleMessage:
|
2566
|
+
setLocaleMessage: U,
|
2567
2567
|
mergeLocaleMessage: Z,
|
2568
|
-
getPostTranslationHandler:
|
2569
|
-
setPostTranslationHandler:
|
2568
|
+
getPostTranslationHandler: l2,
|
2569
|
+
setPostTranslationHandler: a2,
|
2570
2570
|
getMissingHandler: h2,
|
2571
2571
|
setMissingHandler: F2,
|
2572
2572
|
[wi]: s1
|
2573
2573
|
};
|
2574
|
-
return L2.datetimeFormats = j, L2.numberFormats =
|
2575
|
-
|
2574
|
+
return L2.datetimeFormats = j, L2.numberFormats = r2, L2.rt = k2, L2.te = F1, L2.tm = v, L2.d = C2, L2.n = I2, L2.getDateTimeFormat = u2, L2.setDateTimeFormat = J2, L2.mergeDateTimeFormat = O2, L2.getNumberFormat = e3, L2.setNumberFormat = m4, L2.mergeNumberFormat = d4, L2[Ti] = t, L2[c0] = R2, L2[a0] = u1, L2[t0] = i1, process.env.NODE_ENV !== "production" && (L2[X1] = (T) => {
|
2575
|
+
C.__v_emitter = T;
|
2576
2576
|
}, L2[E3] = () => {
|
2577
|
-
|
2577
|
+
C.__v_emitter = void 0;
|
2578
2578
|
}), L2;
|
2579
2579
|
}
|
2580
2580
|
function rD(e) {
|
2581
|
-
const c =
|
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
|
-
const
|
2586
|
-
|
2587
|
-
const
|
2588
|
-
return P2(
|
2589
|
-
},
|
2585
|
+
const x = e.sharedMessages;
|
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: L, __root:
|
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:
|
2595
|
+
messages: b,
|
2596
2596
|
flatJson: M,
|
2597
2597
|
datetimeFormats: g,
|
2598
|
-
numberFormats:
|
2598
|
+
numberFormats: _,
|
2599
2599
|
missing: t,
|
2600
2600
|
missingWarn: n,
|
2601
2601
|
fallbackWarn: i,
|
@@ -2609,7 +2609,7 @@ function rD(e) {
|
|
2609
2609
|
messageResolver: e.messageResolver,
|
2610
2610
|
inheritLocale: h,
|
2611
2611
|
__i18n: L,
|
2612
|
-
__root:
|
2612
|
+
__root: N,
|
2613
2613
|
__injectWithOption: V
|
2614
2614
|
};
|
2615
2615
|
}
|
@@ -2736,10 +2736,10 @@ function i0(e = {}, c) {
|
|
2736
2736
|
t(...i) {
|
2737
2737
|
const [s, r, l] = i, f = {};
|
2738
2738
|
let o = null, m = null;
|
2739
|
-
if (
|
2740
|
-
throw w2(
|
2739
|
+
if (!$(s))
|
2740
|
+
throw w2(f2.INVALID_ARGUMENT);
|
2741
2741
|
const d = s;
|
2742
|
-
return
|
2742
|
+
return $(r) ? f.locale = r : p2(r) ? o = r : c2(r) && (m = r), p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
|
2743
2743
|
d,
|
2744
2744
|
o || m || {},
|
2745
2745
|
f
|
@@ -2752,10 +2752,10 @@ function i0(e = {}, c) {
|
|
2752
2752
|
tc(...i) {
|
2753
2753
|
const [s, r, l] = i, f = { plural: 1 };
|
2754
2754
|
let o = null, m = null;
|
2755
|
-
if (
|
2756
|
-
throw w2(
|
2755
|
+
if (!$(s))
|
2756
|
+
throw w2(f2.INVALID_ARGUMENT);
|
2757
2757
|
const d = s;
|
2758
|
-
return
|
2758
|
+
return $(r) ? f.locale = r : S2(r) ? f.plural = r : p2(r) ? o = r : c2(r) && (m = r), $(l) ? f.locale = l : p2(l) ? o = l : c2(l) && (m = l), Reflect.apply(a.t, a, [
|
2759
2759
|
d,
|
2760
2760
|
o || m || {},
|
2761
2761
|
f
|
@@ -2850,14 +2850,14 @@ function lD({ slots: e }, c) {
|
|
2850
2850
|
return c.length === 1 && c[0] === "default" ? (e.default ? e.default() : []).reduce((t, n) => [
|
2851
2851
|
...t,
|
2852
2852
|
// prettier-ignore
|
2853
|
-
...n.type ===
|
2853
|
+
...n.type === t2 ? n.children : [n]
|
2854
2854
|
], []) : c.reduce((a, t) => {
|
2855
2855
|
const n = e[t];
|
2856
2856
|
return n && (a[t] = n()), a;
|
2857
2857
|
}, {});
|
2858
2858
|
}
|
2859
2859
|
function Di(e) {
|
2860
|
-
return
|
2860
|
+
return t2;
|
2861
2861
|
}
|
2862
2862
|
const oD = /* @__PURE__ */ Q({
|
2863
2863
|
/* eslint-disable */
|
@@ -2882,28 +2882,28 @@ const oD = /* @__PURE__ */ Q({
|
|
2882
2882
|
});
|
2883
2883
|
return () => {
|
2884
2884
|
const i = Object.keys(a).filter((m) => m !== "_"), s = {};
|
2885
|
-
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural =
|
2886
|
-
const r = lD(c, i), l = n[c0](e.keypath, r, s), f = P2({}, t), o =
|
2885
|
+
e.locale && (s.locale = e.locale), e.plural !== void 0 && (s.plural = $(e.plural) ? +e.plural : e.plural);
|
2886
|
+
const r = lD(c, i), l = n[c0](e.keypath, r, s), f = P2({}, t), o = $(e.tag) || m2(e.tag) ? e.tag : Di();
|
2887
2887
|
return M1(o, f, l);
|
2888
2888
|
};
|
2889
2889
|
}
|
2890
2890
|
}), R6 = oD;
|
2891
2891
|
function fD(e) {
|
2892
|
-
return p2(e) &&
|
2892
|
+
return p2(e) && !$(e[0]);
|
2893
2893
|
}
|
2894
2894
|
function Oi(e, c, a, t) {
|
2895
2895
|
const { slots: n, attrs: i } = c;
|
2896
2896
|
return () => {
|
2897
2897
|
const s = { part: !0 };
|
2898
2898
|
let r = {};
|
2899
|
-
e.locale && (s.locale = e.locale),
|
2899
|
+
e.locale && (s.locale = e.locale), $(e.format) ? s.key = e.format : m2(e.format) && ($(e.format.key) && (s.key = e.format.key), r = Object.keys(e.format).reduce((d, h) => a.includes(h) ? P2({}, d, { [h]: e.format[h] }) : d, {}));
|
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
|
2903
|
+
const b = n[d.type], L = b ? b({ [d.type]: d.value, index: h, parts: l }) : [d.value];
|
2904
2904
|
return fD(L) && (L[0].key = `${d.type}-${h}`), L;
|
2905
|
-
}) :
|
2906
|
-
const o = P2({}, i), m =
|
2905
|
+
}) : $(l) && (f = [l]);
|
2906
|
+
const o = P2({}, i), m = $(e.tag) || m2(e.tag) ? e.tag : Di();
|
2907
2907
|
return M1(m, o, f);
|
2908
2908
|
};
|
2909
2909
|
}
|
@@ -2969,7 +2969,7 @@ function vD(e) {
|
|
2969
2969
|
const c = (s) => {
|
2970
2970
|
const { instance: r, modifiers: l, value: f } = s;
|
2971
2971
|
if (!r || !r.$)
|
2972
|
-
throw w2(
|
2972
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
2973
2973
|
const o = dD(e, r.$);
|
2974
2974
|
process.env.NODE_ENV !== "production" && l.preserve && E2(Q2(N2.NOT_SUPPORTED_PRESERVE));
|
2975
2975
|
const m = tn(f);
|
@@ -3003,18 +3003,18 @@ function vD(e) {
|
|
3003
3003
|
};
|
3004
3004
|
}
|
3005
3005
|
function tn(e) {
|
3006
|
-
if (
|
3006
|
+
if ($(e))
|
3007
3007
|
return { path: e };
|
3008
3008
|
if (c2(e)) {
|
3009
3009
|
if (!("path" in e))
|
3010
|
-
throw w2(
|
3010
|
+
throw w2(f2.REQUIRED_VALUE, "path");
|
3011
3011
|
return e;
|
3012
3012
|
} else
|
3013
|
-
throw w2(
|
3013
|
+
throw w2(f2.INVALID_VALUE);
|
3014
3014
|
}
|
3015
3015
|
function nn(e) {
|
3016
3016
|
const { path: c, locale: a, args: t, choice: n, plural: i } = e, s = {}, r = t || {};
|
3017
|
-
return
|
3017
|
+
return $(a) && (s.locale = a), S2(n) && (s.plural = n), S2(i) && (s.plural = i), [c, r, s];
|
3018
3018
|
}
|
3019
3019
|
function pD(e, c, ...a) {
|
3020
3020
|
const t = c2(a[0]) ? a[0] : {}, n = !!t.useI18nComponentName, i = n2(t.globalInstall) ? t.globalInstall : !0;
|
@@ -3294,7 +3294,7 @@ function ND(e, c) {
|
|
3294
3294
|
const a = ji(e.nodeId, c);
|
3295
3295
|
if (a) {
|
3296
3296
|
const [t] = e.path;
|
3297
|
-
t === "locale" &&
|
3297
|
+
t === "locale" && $(e.state.value) ? a.locale.value = e.state.value : t === "fallbackLocale" && ($(e.state.value) || p2(e.state.value) || m2(e.state.value)) ? a.fallbackLocale.value = e.state.value : t === "inheritLocale" && n2(e.state.value) && (a.inheritLocale = e.state.value);
|
3298
3298
|
}
|
3299
3299
|
}
|
3300
3300
|
function xD(e, c, a) {
|
@@ -3302,7 +3302,7 @@ function xD(e, c, a) {
|
|
3302
3302
|
beforeCreate() {
|
3303
3303
|
const t = w3();
|
3304
3304
|
if (!t)
|
3305
|
-
throw w2(
|
3305
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3306
3306
|
const n = this.$options;
|
3307
3307
|
if (n.i18n) {
|
3308
3308
|
const i = n.i18n;
|
@@ -3341,7 +3341,7 @@ function xD(e, c, a) {
|
|
3341
3341
|
unmounted() {
|
3342
3342
|
const t = w3();
|
3343
3343
|
if (!t)
|
3344
|
-
throw w2(
|
3344
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3345
3345
|
const n = this.$i18n;
|
3346
3346
|
process.env.NODE_ENV !== "production" && this.$el && this.$el.__VUE_I18N__ && (this.__v_emitter && (this.__v_emitter.off("*", O3), delete this.__v_emitter), this.$i18n && (n.__disableEmitter && n.__disableEmitter(), delete this.$el.__VUE_I18N__)), delete this.$t, delete this.$rt, delete this.$tc, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, n.__disposer && (n.__disposer(), delete n.__disposer, delete n.__extender), a.__deleteInstance(t), delete this.$i18n;
|
3347
3347
|
}
|
@@ -3379,26 +3379,26 @@ 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
3387
|
let L = null;
|
3388
|
-
!a && t && (L = FD(h, d.global)), __VUE_I18N_FULL_INSTALL__ && pD(h, d, ...
|
3389
|
-
const
|
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
|
-
L && L(), d.dispose(),
|
3391
|
+
L && L(), d.dispose(), N();
|
3392
3392
|
}, process.env.NODE_ENV !== "production") {
|
3393
3393
|
if (!await zD(h, d))
|
3394
|
-
throw w2(
|
3394
|
+
throw w2(f2.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
3395
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
|
}
|
@@ -3425,13 +3425,13 @@ function SD(e = {}, c) {
|
|
3425
3425
|
function k0(e = {}) {
|
3426
3426
|
const c = w3();
|
3427
3427
|
if (c == null)
|
3428
|
-
throw w2(
|
3428
|
+
throw w2(f2.MUST_BE_CALL_SETUP_TOP);
|
3429
3429
|
if (!c.isCE && c.appContext.app != null && !c.appContext.app.__VUE_I18N_SYMBOL__)
|
3430
|
-
throw w2(
|
3430
|
+
throw w2(f2.NOT_INSTALLED);
|
3431
3431
|
const a = TD(c), t = ED(a), n = Ii(c), i = ID(e, n);
|
3432
3432
|
if (__VUE_I18N_LEGACY_API__ && a.mode === "legacy" && !e.__useComponent) {
|
3433
3433
|
if (!a.allowComposition)
|
3434
|
-
throw w2(
|
3434
|
+
throw w2(f2.NOT_AVAILABLE_IN_LEGACY_MODE);
|
3435
3435
|
return BD(c, i, t, e);
|
3436
3436
|
}
|
3437
3437
|
if (i === "global")
|
@@ -3453,7 +3453,7 @@ function wD(e, c, a) {
|
|
3453
3453
|
{
|
3454
3454
|
const n = __VUE_I18N_LEGACY_API__ && c ? t.run(() => i0(e)) : t.run(() => A0(e));
|
3455
3455
|
if (n == null)
|
3456
|
-
throw w2(
|
3456
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3457
3457
|
return [t, n];
|
3458
3458
|
}
|
3459
3459
|
}
|
@@ -3461,7 +3461,7 @@ function TD(e) {
|
|
3461
3461
|
{
|
3462
3462
|
const c = B2(e.isCE ? kD : e.appContext.app.__VUE_I18N_SYMBOL__);
|
3463
3463
|
if (!c)
|
3464
|
-
throw w2(e.isCE ?
|
3464
|
+
throw w2(e.isCE ? f2.NOT_INSTALLED_WITH_PROVIDE : f2.UNEXPECTED_ERROR);
|
3465
3465
|
return c;
|
3466
3466
|
}
|
3467
3467
|
}
|
@@ -3510,15 +3510,15 @@ function PD(e, c, a) {
|
|
3510
3510
|
function BD(e, c, a, t = {}) {
|
3511
3511
|
const n = c === "local", i = lI(null);
|
3512
3512
|
if (n && e.proxy && !(e.proxy.$options.i18n || e.proxy.$options.__i18n))
|
3513
|
-
throw w2(
|
3514
|
-
const s = n2(t.inheritLocale) ? t.inheritLocale :
|
3513
|
+
throw w2(f2.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);
|
3514
|
+
const s = n2(t.inheritLocale) ? t.inheritLocale : !$(t.locale), r = e2(
|
3515
3515
|
// prettier-ignore
|
3516
|
-
!n || s ? a.locale.value :
|
3516
|
+
!n || s ? a.locale.value : $(t.locale) ? t.locale : f3
|
3517
3517
|
), l = e2(
|
3518
3518
|
// prettier-ignore
|
3519
|
-
!n || s ? a.fallbackLocale.value :
|
3520
|
-
), f = e2(F4(r.value, t)), o = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(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,
|
3521
|
-
function
|
3519
|
+
!n || s ? a.fallbackLocale.value : $(t.fallbackLocale) || p2(t.fallbackLocale) || c2(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r.value
|
3520
|
+
), f = e2(F4(r.value, t)), o = e2(c2(t.datetimeFormats) ? t.datetimeFormats : { [r.value]: {} }), m = e2(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
|
+
function w() {
|
3522
3522
|
return [
|
3523
3523
|
r.value,
|
3524
3524
|
l.value,
|
@@ -3527,43 +3527,43 @@ function BD(e, c, a, t = {}) {
|
|
3527
3527
|
m.value
|
3528
3528
|
];
|
3529
3529
|
}
|
3530
|
-
const
|
3530
|
+
const C = E({
|
3531
3531
|
get: () => i.value ? i.value.locale.value : r.value,
|
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), W = E(() => m.value);
|
3541
3541
|
function R() {
|
3542
3542
|
return i.value ? i.value.getPostTranslationHandler() : V;
|
3543
3543
|
}
|
3544
3544
|
function j(v) {
|
3545
3545
|
i.value && i.value.setPostTranslationHandler(v);
|
3546
3546
|
}
|
3547
|
-
function
|
3548
|
-
return i.value ? i.value.getMissingHandler() :
|
3547
|
+
function r2() {
|
3548
|
+
return i.value ? i.value.getMissingHandler() : N;
|
3549
3549
|
}
|
3550
|
-
function
|
3550
|
+
function l2(v) {
|
3551
3551
|
i.value && i.value.setMissingHandler(v);
|
3552
3552
|
}
|
3553
|
-
function
|
3554
|
-
return
|
3553
|
+
function a2(v) {
|
3554
|
+
return w(), v();
|
3555
3555
|
}
|
3556
3556
|
function h2(...v) {
|
3557
|
-
return i.value ?
|
3557
|
+
return i.value ? a2(() => Reflect.apply(i.value.t, null, [...v])) : a2(() => "");
|
3558
3558
|
}
|
3559
3559
|
function F2(...v) {
|
3560
3560
|
return i.value ? Reflect.apply(i.value.rt, null, [...v]) : "";
|
3561
3561
|
}
|
3562
3562
|
function b2(...v) {
|
3563
|
-
return i.value ?
|
3563
|
+
return i.value ? a2(() => Reflect.apply(i.value.d, null, [...v])) : a2(() => "");
|
3564
3564
|
}
|
3565
3565
|
function v2(...v) {
|
3566
|
-
return i.value ?
|
3566
|
+
return i.value ? a2(() => Reflect.apply(i.value.n, null, [...v])) : a2(() => "");
|
3567
3567
|
}
|
3568
3568
|
function A2(v) {
|
3569
3569
|
return i.value ? i.value.tm(v) : {};
|
@@ -3602,10 +3602,10 @@ function BD(e, c, a, t = {}) {
|
|
3602
3602
|
get id() {
|
3603
3603
|
return i.value ? i.value.id : -1;
|
3604
3604
|
},
|
3605
|
-
locale:
|
3606
|
-
fallbackLocale:
|
3607
|
-
messages:
|
3608
|
-
datetimeFormats:
|
3605
|
+
locale: C,
|
3606
|
+
fallbackLocale: y,
|
3607
|
+
messages: A,
|
3608
|
+
datetimeFormats: F,
|
3609
3609
|
numberFormats: W,
|
3610
3610
|
get inheritLocale() {
|
3611
3611
|
return i.value ? i.value.inheritLocale : s;
|
@@ -3620,7 +3620,7 @@ function BD(e, c, a, t = {}) {
|
|
3620
3620
|
return i.value ? i.value.modifiers : M;
|
3621
3621
|
},
|
3622
3622
|
get pluralRules() {
|
3623
|
-
return i.value ? i.value.pluralRules :
|
3623
|
+
return i.value ? i.value.pluralRules : x;
|
3624
3624
|
},
|
3625
3625
|
get isGlobal() {
|
3626
3626
|
return i.value ? i.value.isGlobal : !1;
|
@@ -3638,7 +3638,7 @@ 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);
|
@@ -3656,7 +3656,7 @@ function BD(e, c, a, t = {}) {
|
|
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);
|
@@ -3664,8 +3664,8 @@ function BD(e, c, a, t = {}) {
|
|
3664
3664
|
t: h2,
|
3665
3665
|
getPostTranslationHandler: R,
|
3666
3666
|
setPostTranslationHandler: j,
|
3667
|
-
getMissingHandler:
|
3668
|
-
setMissingHandler:
|
3667
|
+
getMissingHandler: r2,
|
3668
|
+
setMissingHandler: l2,
|
3669
3669
|
rt: F2,
|
3670
3670
|
d: b2,
|
3671
3671
|
n: v2,
|
@@ -3688,11 +3688,11 @@ 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)
|
3695
|
-
throw w2(
|
3695
|
+
throw w2(f2.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
3696
3696
|
const v = i.value = e.proxy.$i18n.__composer;
|
3697
3697
|
c === "global" ? (r.value = v.locale.value, l.value = v.fallbackLocale.value, f.value = v.messages.value, o.value = v.datetimeFormats.value, m.value = v.numberFormats.value) : n && z(v);
|
3698
3698
|
}), F1;
|
@@ -3707,7 +3707,7 @@ function FD(e, c) {
|
|
3707
3707
|
return jD.forEach((n) => {
|
3708
3708
|
const i = Object.getOwnPropertyDescriptor(c, n);
|
3709
3709
|
if (!i)
|
3710
|
-
throw w2(
|
3710
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3711
3711
|
const s = fI(i.value) ? {
|
3712
3712
|
get() {
|
3713
3713
|
return i.value.value;
|
@@ -3725,7 +3725,7 @@ function FD(e, c) {
|
|
3725
3725
|
}), e.config.globalProperties.$i18n = a, ln.forEach((n) => {
|
3726
3726
|
const i = Object.getOwnPropertyDescriptor(c, n);
|
3727
3727
|
if (!i || !i.value)
|
3728
|
-
throw w2(
|
3728
|
+
throw w2(f2.UNEXPECTED_ERROR);
|
3729
3729
|
Object.defineProperty(e.config.globalProperties, `$${n}`, i);
|
3730
3730
|
}), () => {
|
3731
3731
|
delete e.config.globalProperties.$i18n, ln.forEach((n) => {
|
@@ -4629,6 +4629,7 @@ const RD = {
|
|
4629
4629
|
select_single: "حدد خيارًا واحدًا (1).",
|
4630
4630
|
selected: "المحدد: <b>{selected}</b>",
|
4631
4631
|
your_vote_weight: "قدره ترجيح صوتك {weight}",
|
4632
|
+
exceeded_list_limit: "لقد تجاوز اختيارك الحد الأقصى لعدد الخيارات التي يمكن أن تكون في قائمة {list_name}. يرجى تحديد الحد الأقصى لعدد {max_list_marks} من الخيارات في هذه القائمة",
|
4632
4633
|
errors: {
|
4633
4634
|
too_many: "تم تحديد عدد كبير جدًا من الخيارات",
|
4634
4635
|
blank: "فارغ حصري ولا يمكن دمجه مع خيارات أخرى.",
|
@@ -4651,6 +4652,7 @@ const RD = {
|
|
4651
4652
|
write_in_required: "Du skal udfylde skrivestemmen når den er valgt.",
|
4652
4653
|
write_in_too_long: "Skrivestemme er for lang. Prøv at reducere længden på teksten.",
|
4653
4654
|
exclusive: "Ekslusive valgmuligheder kan ikke kombineres med andre.",
|
4655
|
+
exceeded_list_limit: "Dit valg overskred det maksimale antal muligheder, der kan være på listen {list_name}. Vælg maks. {max_list_marks} muligheder på denne liste",
|
4654
4656
|
cross_party_voting: "Dine valg omfattede mere end én liste. Vælg venligst kun inden for en enkelt liste."
|
4655
4657
|
}
|
4656
4658
|
},
|
@@ -4667,6 +4669,7 @@ const RD = {
|
|
4667
4669
|
write_in_required: "Sie müssen mindestens eine Partei angeben, wenn 'Write in' ausgewählt ist.",
|
4668
4670
|
write_in_too_long: "Der Einschreibewert ist zu lang. Versuchen Sie, seine Länge zu reduzieren.",
|
4669
4671
|
exclusive: "Ungültige Kombination von Optionen.",
|
4672
|
+
exceeded_list_limit: "Ihre Auswahl hat die maximale Anzahl an Optionen überschritten, die in der Liste {list_name} enthalten sein können. Bitte wählen Sie für diese Liste maximal {max_list_marks} Optionen aus",
|
4670
4673
|
cross_party_voting: "Ihre Auswahl umfasste mehr als eine Liste. Bitte wählen Sie nur innerhalb einer einzigen Liste aus."
|
4671
4674
|
}
|
4672
4675
|
},
|
@@ -4682,6 +4685,7 @@ const RD = {
|
|
4682
4685
|
blank: "Blank is exclusive and cannot be combined with other options.",
|
4683
4686
|
write_in_required: "You are required to specify at least a party when 'Write in' is selected.",
|
4684
4687
|
write_in_too_long: "The write in value is too long. Try to reduce its length.",
|
4688
|
+
exceeded_list_limit: "Your selection exceeded the maximum amount of options that can be on {list_name} list. Please select max {max_list_marks} options per this list",
|
4685
4689
|
exclusive: "Exclusive options cannot be combined with other options.",
|
4686
4690
|
cross_party_voting: "Your selection included more than one list. Please select only within a single list."
|
4687
4691
|
}
|
@@ -4695,6 +4699,7 @@ const RD = {
|
|
4695
4699
|
your_vote_weight: "Su voto tiene un peso de {weight}",
|
4696
4700
|
errors: {
|
4697
4701
|
too_many: "Demasiadas opciones seleccionadas.",
|
4702
|
+
exceeded_list_limit: "Su selección superó la cantidad máxima de opciones que pueden estar en la lista {list_name}. Seleccione un máximo de {max_list_marks} opciones según esta lista",
|
4698
4703
|
blank: "El voto en blanco es exclusivo y no se puede combinar con otras opciones.",
|
4699
4704
|
write_in_required: "Es necesario especificar al menos un partido cuando se selecciona «Añadir opción».",
|
4700
4705
|
write_in_too_long: "El valor insertado es demasiado largo. Intente reducir su longitud.",
|
@@ -4710,6 +4715,7 @@ const RD = {
|
|
4710
4715
|
selected: "Valittu: <b>{selected}</b>",
|
4711
4716
|
your_vote_weight: "Äänesi painoarvo on {weight}",
|
4712
4717
|
errors: {
|
4718
|
+
exceeded_list_limit: "Valintasi ylitti luettelossa {list_name} olevien vaihtoehtojen enimmäismäärän. Valitse enintään {max_list_marks} vaihtoehtoa tälle luettelolle",
|
4713
4719
|
too_many: "Liian monta valittua vaihtoehtoa.",
|
4714
4720
|
blank: "Tyhjä on eksklusiivinen, eikä sitä voi yhdistää muihin vaihtoehtoihin.",
|
4715
4721
|
write_in_required: "Sinun on määritettävä vähintään osapuoli, kun Kirjoita on valittuna.",
|
@@ -4726,6 +4732,7 @@ const RD = {
|
|
4726
4732
|
selected: "Sélection: <b>{selected}</b>",
|
4727
4733
|
your_vote_weight: "Votre vote a un poids de {weight}",
|
4728
4734
|
errors: {
|
4735
|
+
exceeded_list_limit: "Votre sélection a dépassé le nombre maximum d'options pouvant figurer sur la liste {list_name}. Veuillez sélectionner un maximum de {max_list_marks} options dans cette liste.",
|
4729
4736
|
too_many: "Trop d'options sélectionnées.",
|
4730
4737
|
blank: "Un blanc est exclusif et ne peut être combiné avec d'autres options.",
|
4731
4738
|
write_in_required: "Vous devez spécifier au moins un parti lorsque «Écriture» est sélectionné.",
|
@@ -4742,6 +4749,7 @@ const RD = {
|
|
4742
4749
|
selected: "Valið: <b>{selected}</b>",
|
4743
4750
|
your_vote_weight: "Vægi atkvæðis þíns er {weight}",
|
4744
4751
|
errors: {
|
4752
|
+
exceeded_list_limit: "Val þitt fór yfir hámarksfjölda valkosta sem geta verið á listanum {list_name}. Vinsamlegast veldu hámark {max_list_marks} valkosti á þessum lista",
|
4745
4753
|
too_many: "Of margir valkostir valdir.",
|
4746
4754
|
blank: "Blank er einkarétt og ekki hægt að sameina það með öðrum valkostum.",
|
4747
4755
|
write_in_required: "Þú þarft að tilgreina að minnsta kosti aðila þegar 'Skrifa inn' er valið.",
|
@@ -4758,6 +4766,7 @@ const RD = {
|
|
4758
4766
|
selected: "Geselecteerd: <b>{selected}</b>",
|
4759
4767
|
your_vote_weight: "Uw stem heeft een gewicht van {weight}",
|
4760
4768
|
errors: {
|
4769
|
+
exceeded_list_limit: "Je selectie heeft het maximale aantal opties overschreden dat op de lijst {list_name} kan staan. Selecteer maximaal {max_list_marks} opties per deze lijst",
|
4761
4770
|
too_many: "Teveel opties geselecteerd.",
|
4762
4771
|
blank: "Blanco is exclusief en kan niet worden gecombineerd met andere opties.",
|
4763
4772
|
write_in_required: "U moet ten minste één partij opgeven wanneer 'Write-in' is geselecteerd.",
|
@@ -4774,6 +4783,7 @@ const RD = {
|
|
4774
4783
|
selected: "Wybrane: <b>{selected}</b>",
|
4775
4784
|
your_vote_weight: "Twój głos ma wagę {weight}",
|
4776
4785
|
errors: {
|
4786
|
+
exceeded_list_limit: "Twój wybór przekroczył maksymalną liczbę opcji, które mogą znajdować się na liście {list_name}. Wybierz maksymalnie {max_list_marks} opcji z tej listy",
|
4777
4787
|
too_many: "Zbyt wiele wybranych opcji.",
|
4778
4788
|
blank: "Puste jest wyłączne i nie może być połączone z innymi opcjami.",
|
4779
4789
|
write_in_required: "Musisz określić co najmniej partię, gdy jest wybrana opcja 'Napisz własną'.",
|
@@ -4790,6 +4800,7 @@ const RD = {
|
|
4790
4800
|
selected: "Selectat: <b>{selected}</b>",
|
4791
4801
|
your_vote_weight: "Votul dvs. are o greutate de {weight}",
|
4792
4802
|
errors: {
|
4803
|
+
exceeded_list_limit: "Selecția dvs. a depășit numărul maxim de opțiuni care pot fi în lista {list_name}. Selectați maximum {max_list_marks} opțiuni din această listă",
|
4793
4804
|
too_many: "Prea multe opțiuni selectate.",
|
4794
4805
|
blank: "Golul este exclusiv și nu poate fi combinat cu alte opțiuni.",
|
4795
4806
|
write_in_required: "Trebuie să specificați cel puțin un partid când este selectată opțiunea „Scrieți în”.",
|
@@ -4806,6 +4817,7 @@ const RD = {
|
|
4806
4817
|
selected: "Выбрано: <b>{selected}</b>",
|
4807
4818
|
your_vote_weight: "Ваш голос имеет вес {weight}",
|
4808
4819
|
errors: {
|
4820
|
+
exceeded_list_limit: "Ваш выбор превысил максимальное количество вариантов, которые могут быть в списке {list_name}. Выберите максимальное количество параметров: {max_list_marks} в этом списке.",
|
4809
4821
|
too_many: "Выбрано слишком много вариантов.",
|
4810
4822
|
blank: "Воздержавшийся голос является эксклюзивным и не может объединяться с другими вариантами.",
|
4811
4823
|
write_in_required: "Вы должны указать хотя бы одну партию, когда выбрано «Записать в».",
|
@@ -4822,6 +4834,7 @@ const RD = {
|
|
4822
4834
|
selected: "Valda: <b>{selected}</b>",
|
4823
4835
|
your_vote_weight: "Din röst har en vikt på {weight}",
|
4824
4836
|
errors: {
|
4837
|
+
exceeded_list_limit: "Ditt val överskred det maximala antalet alternativ som kan finnas på listan {list_name}. Välj max {max_list_marks} alternativ per den här listan",
|
4825
4838
|
too_many: "För många alternativ är valda.",
|
4826
4839
|
blank: "Blank är exklusiv och kan inte kombineras med andra alternativ.",
|
4827
4840
|
write_in_required: "Du måste ange minst ett parti när ”write-in-kandidat” är vald.",
|
@@ -5853,8 +5866,8 @@ var MO = function(c, a) {
|
|
5853
5866
|
function bO(e) {
|
5854
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";
|
5855
5868
|
if (!(!i || !s)) {
|
5856
|
-
var m = MO(n.padding, a), d = T0(i), h = l === "y" ? W2 : G2,
|
5857
|
-
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);
|
5858
5871
|
}
|
5859
5872
|
}
|
5860
5873
|
function CO(e) {
|
@@ -5887,32 +5900,32 @@ function yO(e, c) {
|
|
5887
5900
|
};
|
5888
5901
|
}
|
5889
5902
|
function mn(e) {
|
5890
|
-
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({
|
5891
5904
|
x: h,
|
5892
5905
|
y: L
|
5893
5906
|
}) : {
|
5894
5907
|
x: h,
|
5895
5908
|
y: L
|
5896
5909
|
};
|
5897
|
-
h =
|
5898
|
-
var V = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"),
|
5910
|
+
h = N.x, L = N.y;
|
5911
|
+
var V = s.hasOwnProperty("x"), g = s.hasOwnProperty("y"), _ = G2, M = W2, x = window;
|
5899
5912
|
if (f) {
|
5900
|
-
var
|
5901
|
-
if (
|
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) {
|
5902
5915
|
M = t1;
|
5903
|
-
var
|
5916
|
+
var A = m && w === x && x.visualViewport ? x.visualViewport.height : (
|
5904
5917
|
// $FlowFixMe[prop-missing]
|
5905
|
-
|
5918
|
+
w[C]
|
5906
5919
|
);
|
5907
|
-
L -=
|
5920
|
+
L -= A - t.height, L *= l ? 1 : -1;
|
5908
5921
|
}
|
5909
5922
|
if (n === G2 || (n === W2 || n === t1) && i === P3) {
|
5910
|
-
|
5911
|
-
var
|
5923
|
+
_ = n1;
|
5924
|
+
var F = m && w === x && x.visualViewport ? x.visualViewport.width : (
|
5912
5925
|
// $FlowFixMe[prop-missing]
|
5913
|
-
|
5926
|
+
w[y]
|
5914
5927
|
);
|
5915
|
-
h -=
|
5928
|
+
h -= F - t.width, h *= l ? 1 : -1;
|
5916
5929
|
}
|
5917
5930
|
}
|
5918
5931
|
var W = Object.assign({
|
@@ -5926,9 +5939,9 @@ function mn(e) {
|
|
5926
5939
|
};
|
5927
5940
|
if (h = R.x, L = R.y, l) {
|
5928
5941
|
var j;
|
5929
|
-
return Object.assign({}, W, (j = {}, j[M] = g ? "0" : "", j[
|
5942
|
+
return Object.assign({}, W, (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));
|
5930
5943
|
}
|
5931
|
-
return Object.assign({}, W, (c = {}, c[M] = g ? L + "px" : "", c[
|
5944
|
+
return Object.assign({}, W, (c = {}, c[M] = g ? L + "px" : "", c[_] = V ? h + "px" : "", c.transform = "", c));
|
5932
5945
|
}
|
5933
5946
|
function AO(e) {
|
5934
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 = {
|
@@ -6128,44 +6141,44 @@ function Xi(e) {
|
|
6128
6141
|
}
|
6129
6142
|
function B3(e, c) {
|
6130
6143
|
c === void 0 && (c = {});
|
6131
|
-
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,
|
6132
|
-
reference:
|
6133
|
-
element:
|
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
|
+
reference: w,
|
6146
|
+
element: _,
|
6134
6147
|
strategy: "absolute",
|
6135
6148
|
placement: n
|
6136
|
-
}),
|
6137
|
-
top:
|
6138
|
-
bottom:
|
6139
|
-
left:
|
6140
|
-
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
|
6141
6154
|
}, W = e.modifiersData.offset;
|
6142
6155
|
if (d === L3 && W) {
|
6143
6156
|
var R = W[n];
|
6144
|
-
Object.keys(
|
6145
|
-
var
|
6146
|
-
|
6157
|
+
Object.keys(F).forEach(function(j) {
|
6158
|
+
var r2 = [n1, t1].indexOf(j) >= 0 ? 1 : -1, l2 = [W2, t1].indexOf(j) >= 0 ? "y" : "x";
|
6159
|
+
F[j] += R[l2] * r2;
|
6147
6160
|
});
|
6148
6161
|
}
|
6149
|
-
return
|
6162
|
+
return F;
|
6150
6163
|
}
|
6151
6164
|
function PO(e, c) {
|
6152
6165
|
c === void 0 && (c = {});
|
6153
|
-
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(
|
6154
|
-
return v3(
|
6155
|
-
}) : q3, d = m.filter(function(
|
6156
|
-
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;
|
6157
6170
|
});
|
6158
6171
|
d.length === 0 && (d = m);
|
6159
|
-
var h = d.reduce(function(
|
6160
|
-
return
|
6172
|
+
var h = d.reduce(function(b, L) {
|
6173
|
+
return b[L] = B3(e, {
|
6161
6174
|
placement: L,
|
6162
6175
|
boundary: n,
|
6163
6176
|
rootBoundary: i,
|
6164
6177
|
padding: s
|
6165
|
-
})[v1(L)],
|
6178
|
+
})[v1(L)], b;
|
6166
6179
|
}, {});
|
6167
|
-
return Object.keys(h).sort(function(
|
6168
|
-
return h[
|
6180
|
+
return Object.keys(h).sort(function(b, L) {
|
6181
|
+
return h[b] - h[L];
|
6169
6182
|
});
|
6170
6183
|
}
|
6171
6184
|
function BO(e) {
|
@@ -6177,50 +6190,50 @@ function BO(e) {
|
|
6177
6190
|
function jO(e) {
|
6178
6191
|
var c = e.state, a = e.options, t = e.name;
|
6179
6192
|
if (!c.modifiersData[t]._skip) {
|
6180
|
-
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) {
|
6181
6194
|
return I2.concat(v1(j2) === S0 ? PO(c, {
|
6182
6195
|
placement: j2,
|
6183
6196
|
boundary: o,
|
6184
6197
|
rootBoundary: m,
|
6185
6198
|
padding: f,
|
6186
|
-
flipVariations:
|
6199
|
+
flipVariations: b,
|
6187
6200
|
allowedAutoPlacements: L
|
6188
6201
|
}) : j2);
|
6189
|
-
}, []),
|
6190
|
-
var W = M[
|
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 W = M[F], R = v1(W), j = v3(W) === u3, r2 = [W2, t1].indexOf(R) >= 0, l2 = r2 ? "width" : "height", a2 = B3(c, {
|
6191
6204
|
placement: W,
|
6192
6205
|
boundary: o,
|
6193
6206
|
rootBoundary: m,
|
6194
6207
|
altBoundary: d,
|
6195
6208
|
padding: f
|
6196
|
-
}), h2 =
|
6197
|
-
|
6209
|
+
}), h2 = r2 ? j ? n1 : G2 : j ? t1 : W2;
|
6210
|
+
x[l2] > w[l2] && (h2 = A4(h2));
|
6198
6211
|
var F2 = A4(h2), b2 = [];
|
6199
|
-
if (i && b2.push(
|
6212
|
+
if (i && b2.push(a2[R] <= 0), r && b2.push(a2[h2] <= 0, a2[F2] <= 0), b2.every(function(I2) {
|
6200
6213
|
return I2;
|
6201
6214
|
})) {
|
6202
|
-
|
6215
|
+
A = W, y = !1;
|
6203
6216
|
break;
|
6204
6217
|
}
|
6205
|
-
|
6218
|
+
C.set(W, b2);
|
6206
6219
|
}
|
6207
|
-
if (
|
6208
|
-
for (var v2 =
|
6220
|
+
if (y)
|
6221
|
+
for (var v2 = b ? 3 : 1, A2 = function(j2) {
|
6209
6222
|
var o1 = M.find(function(f1) {
|
6210
|
-
var R2 =
|
6223
|
+
var R2 = C.get(f1);
|
6211
6224
|
if (R2)
|
6212
6225
|
return R2.slice(0, j2).every(function(i1) {
|
6213
6226
|
return i1;
|
6214
6227
|
});
|
6215
6228
|
});
|
6216
6229
|
if (o1)
|
6217
|
-
return
|
6230
|
+
return A = o1, "break";
|
6218
6231
|
}, k2 = v2; k2 > 0; k2--) {
|
6219
6232
|
var C2 = A2(k2);
|
6220
6233
|
if (C2 === "break")
|
6221
6234
|
break;
|
6222
6235
|
}
|
6223
|
-
c.placement !==
|
6236
|
+
c.placement !== A && (c.modifiersData[t]._skip = !0, c.placement = A, c.reset = !0);
|
6224
6237
|
}
|
6225
6238
|
}
|
6226
6239
|
const FO = {
|
@@ -6317,34 +6330,34 @@ function QO(e) {
|
|
6317
6330
|
return e === "x" ? "y" : "x";
|
6318
6331
|
}
|
6319
6332
|
function XO(e) {
|
6320
|
-
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, {
|
6321
6334
|
boundary: l,
|
6322
6335
|
rootBoundary: f,
|
6323
6336
|
padding: m,
|
6324
6337
|
altBoundary: o
|
6325
|
-
}), V = v1(c.placement), g = v3(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, {
|
6326
6339
|
placement: c.placement
|
6327
|
-
})) : L,
|
6328
|
-
mainAxis:
|
6329
|
-
altAxis:
|
6340
|
+
})) : L, F = typeof A == "number" ? {
|
6341
|
+
mainAxis: A,
|
6342
|
+
altAxis: A
|
6330
6343
|
} : Object.assign({
|
6331
6344
|
mainAxis: 0,
|
6332
6345
|
altAxis: 0
|
6333
|
-
},
|
6346
|
+
}, A), W = c.modifiersData.offset ? c.modifiersData.offset[c.placement] : null, R = {
|
6334
6347
|
x: 0,
|
6335
6348
|
y: 0
|
6336
6349
|
};
|
6337
|
-
if (
|
6350
|
+
if (w) {
|
6338
6351
|
if (i) {
|
6339
|
-
var j,
|
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) : {
|
6340
6353
|
width: 0,
|
6341
6354
|
height: 0
|
6342
|
-
}, j2 = c.modifiersData["arrow#persistent"] ? c.modifiersData["arrow#persistent"].padding : Wi(), o1 = j2[
|
6343
|
-
|
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 = W == null ? void 0 : W[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;
|
6344
6357
|
}
|
6345
6358
|
if (r) {
|
6346
|
-
var Z, u2 = M === "x" ? W2 : G2, J2 = M === "x" ? t1 : n1, O2 = x
|
6347
|
-
x
|
6359
|
+
var Z, 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 = (Z = W == null ? void 0 : W[x]) != null ? Z : 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
|
+
w[x] = _2, R[x] = _2 - O2;
|
6348
6361
|
}
|
6349
6362
|
c.modifiersData[t] = R;
|
6350
6363
|
}
|
@@ -6471,10 +6484,10 @@ function sP(e) {
|
|
6471
6484
|
reference: K1(r) ? x3(r) : r.contextElement ? x3(r.contextElement) : [],
|
6472
6485
|
popper: x3(l)
|
6473
6486
|
};
|
6474
|
-
var
|
6475
|
-
return o.orderedModifiers =
|
6487
|
+
var _ = tP(iP([].concat(t, o.options.modifiers)));
|
6488
|
+
return o.orderedModifiers = _.filter(function(M) {
|
6476
6489
|
return M.enabled;
|
6477
|
-
}),
|
6490
|
+
}), b(), h.update();
|
6478
6491
|
},
|
6479
6492
|
// Sync update – it will always be executed, even if not necessary. This
|
6480
6493
|
// is useful for low frequency updates where sync behavior simplifies the
|
@@ -6483,24 +6496,24 @@ function sP(e) {
|
|
6483
6496
|
// prefer the async Popper#update method
|
6484
6497
|
forceUpdate: function() {
|
6485
6498
|
if (!d) {
|
6486
|
-
var V = o.elements, g = V.reference,
|
6487
|
-
if (zn(g,
|
6499
|
+
var V = o.elements, g = V.reference, _ = V.popper;
|
6500
|
+
if (zn(g, _)) {
|
6488
6501
|
o.rects = {
|
6489
|
-
reference: cP(g, W3(
|
6490
|
-
popper: T0(
|
6491
|
-
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(
|
6492
|
-
return o.modifiersData[
|
6502
|
+
reference: cP(g, W3(_), o.options.strategy === "fixed"),
|
6503
|
+
popper: T0(_)
|
6504
|
+
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(F) {
|
6505
|
+
return o.modifiersData[F.name] = Object.assign({}, F.data);
|
6493
6506
|
});
|
6494
6507
|
for (var M = 0; M < o.orderedModifiers.length; M++) {
|
6495
6508
|
if (o.reset === !0) {
|
6496
6509
|
o.reset = !1, M = -1;
|
6497
6510
|
continue;
|
6498
6511
|
}
|
6499
|
-
var
|
6500
|
-
typeof
|
6512
|
+
var x = o.orderedModifiers[M], w = x.fn, C = x.options, y = C === void 0 ? {} : C, A = x.name;
|
6513
|
+
typeof w == "function" && (o = w({
|
6501
6514
|
state: o,
|
6502
|
-
options:
|
6503
|
-
name:
|
6515
|
+
options: y,
|
6516
|
+
name: A,
|
6504
6517
|
instance: h
|
6505
6518
|
}) || o);
|
6506
6519
|
}
|
@@ -6510,8 +6523,8 @@ function sP(e) {
|
|
6510
6523
|
// Async and optimistically optimized update – it will not be executed if
|
6511
6524
|
// not necessary (debounced to run at most once-per-tick)
|
6512
6525
|
update: nP(function() {
|
6513
|
-
return new Promise(function(
|
6514
|
-
h.forceUpdate(),
|
6526
|
+
return new Promise(function(N) {
|
6527
|
+
h.forceUpdate(), N(o);
|
6515
6528
|
});
|
6516
6529
|
}),
|
6517
6530
|
destroy: function() {
|
@@ -6520,27 +6533,27 @@ function sP(e) {
|
|
6520
6533
|
};
|
6521
6534
|
if (!zn(r, l))
|
6522
6535
|
return h;
|
6523
|
-
h.setOptions(f).then(function(
|
6524
|
-
!d && f.onFirstUpdate && f.onFirstUpdate(
|
6536
|
+
h.setOptions(f).then(function(N) {
|
6537
|
+
!d && f.onFirstUpdate && f.onFirstUpdate(N);
|
6525
6538
|
});
|
6526
|
-
function
|
6527
|
-
o.orderedModifiers.forEach(function(
|
6528
|
-
var V =
|
6539
|
+
function b() {
|
6540
|
+
o.orderedModifiers.forEach(function(N) {
|
6541
|
+
var V = N.name, g = N.options, _ = g === void 0 ? {} : g, M = N.effect;
|
6529
6542
|
if (typeof M == "function") {
|
6530
|
-
var
|
6543
|
+
var x = M({
|
6531
6544
|
state: o,
|
6532
6545
|
name: V,
|
6533
6546
|
instance: h,
|
6534
|
-
options:
|
6535
|
-
}),
|
6547
|
+
options: _
|
6548
|
+
}), w = function() {
|
6536
6549
|
};
|
6537
|
-
m.push(
|
6550
|
+
m.push(x || w);
|
6538
6551
|
}
|
6539
6552
|
});
|
6540
6553
|
}
|
6541
6554
|
function L() {
|
6542
|
-
m.forEach(function(
|
6543
|
-
return
|
6555
|
+
m.forEach(function(N) {
|
6556
|
+
return N();
|
6544
6557
|
}), m = [];
|
6545
6558
|
}
|
6546
6559
|
return h;
|
@@ -6616,10 +6629,10 @@ function pP(e, c, a = {}) {
|
|
6616
6629
|
let r = !0;
|
6617
6630
|
const l = (d) => n.some((h) => {
|
6618
6631
|
if (typeof h == "string")
|
6619
|
-
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));
|
6620
6633
|
{
|
6621
|
-
const
|
6622
|
-
return
|
6634
|
+
const b = _3(h);
|
6635
|
+
return b && (d.target === b || d.composedPath().includes(b));
|
6623
6636
|
}
|
6624
6637
|
}), o = [
|
6625
6638
|
U6(t, "click", (d) => {
|
@@ -6638,8 +6651,8 @@ function pP(e, c, a = {}) {
|
|
6638
6651
|
}, { passive: !0 }),
|
6639
6652
|
s && U6(t, "blur", (d) => {
|
6640
6653
|
var h;
|
6641
|
-
const
|
6642
|
-
((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);
|
6643
6656
|
})
|
6644
6657
|
].filter(Boolean);
|
6645
6658
|
return () => o.forEach((d) => d());
|
@@ -6748,37 +6761,37 @@ const An = {
|
|
6748
6761
|
},
|
6749
6762
|
...e
|
6750
6763
|
}, t = e2(void 0), n = e2(void 0), i = e2(void 0), s = e2(!1), r = e2(!1), l = e2(!1), f = e2(a.placement || "top"), o = E(() => {
|
6751
|
-
let { modifiers:
|
6752
|
-
return a.modifiers && (
|
6764
|
+
let { modifiers: y } = An;
|
6765
|
+
return a.modifiers && (y = [...y, ...a.modifiers]), {
|
6753
6766
|
...An,
|
6754
6767
|
strategy: a.strategy,
|
6755
6768
|
placement: a.placement,
|
6756
|
-
modifiers:
|
6769
|
+
modifiers: y,
|
6757
6770
|
...a.popperOptions
|
6758
6771
|
};
|
6759
6772
|
}), m = function() {
|
6760
6773
|
return a.hover === !1 || a.interactive === !1 ? a.closeDelay : a.closeDelay === 0 ? 150 : a.closeDelay;
|
6761
6774
|
}, d = Hn(async () => {
|
6762
|
-
var
|
6763
|
-
const
|
6764
|
-
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;
|
6765
6778
|
}, a.openDelay), h = Hn(() => {
|
6766
6779
|
if (a.hover === !1 || a.interactive === !1) {
|
6767
6780
|
s.value = !1;
|
6768
6781
|
return;
|
6769
6782
|
}
|
6770
6783
|
r.value === !1 && l.value === !1 && (s.value = !1);
|
6771
|
-
}, m()),
|
6772
|
-
let
|
6773
|
-
if (
|
6784
|
+
}, m()), b = (y = "") => {
|
6785
|
+
let A = y;
|
6786
|
+
if (y === "" && (A = s.value ? "close" : "open"), A === "open") {
|
6774
6787
|
d();
|
6775
6788
|
return;
|
6776
6789
|
}
|
6777
6790
|
h();
|
6778
|
-
}, L = (
|
6779
|
-
a.hover !== !1 && (
|
6780
|
-
},
|
6781
|
-
const { slots:
|
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;
|
6782
6795
|
return M1(
|
6783
6796
|
"div",
|
6784
6797
|
{
|
@@ -6788,56 +6801,56 @@ const An = {
|
|
6788
6801
|
onMouseenter: () => L("open", "trigger"),
|
6789
6802
|
onMouseleave: () => L("close", "trigger"),
|
6790
6803
|
onFocus: () => L("open"),
|
6791
|
-
onClick: () =>
|
6804
|
+
onClick: () => b()
|
6792
6805
|
},
|
6793
|
-
|
6806
|
+
F.default ? F.default() : ""
|
6794
6807
|
);
|
6795
6808
|
}, V = E(() => {
|
6796
|
-
const { animation:
|
6797
|
-
if (
|
6809
|
+
const { animation: y } = a;
|
6810
|
+
if (y === "none")
|
6798
6811
|
return {
|
6799
6812
|
outer: "",
|
6800
6813
|
inner: ""
|
6801
6814
|
};
|
6802
|
-
let
|
6803
|
-
return
|
6815
|
+
let A = y;
|
6816
|
+
return y === "fade-slide" && (A = "shift-in"), {
|
6804
6817
|
outer: "fade",
|
6805
|
-
inner:
|
6818
|
+
inner: A
|
6806
6819
|
};
|
6807
6820
|
}), g = E(() => {
|
6808
|
-
const { animationDuration:
|
6809
|
-
if (!Array.isArray(
|
6810
|
-
const W =
|
6821
|
+
const { animationDuration: y } = a;
|
6822
|
+
if (!Array.isArray(y)) {
|
6823
|
+
const W = y || 300;
|
6811
6824
|
return {
|
6812
6825
|
enter: `${W / 1e3}s`,
|
6813
6826
|
leave: `${W / 1e3}s`
|
6814
6827
|
};
|
6815
6828
|
}
|
6816
|
-
const [
|
6829
|
+
const [A, F] = y;
|
6817
6830
|
return {
|
6818
|
-
enter: `${
|
6819
|
-
leave: `${
|
6831
|
+
enter: `${A / 1e3}s`,
|
6832
|
+
leave: `${F / 1e3}s`
|
6820
6833
|
};
|
6821
|
-
}),
|
6822
|
-
const
|
6823
|
-
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];
|
6824
6837
|
}), M = E(() => {
|
6825
|
-
const
|
6826
|
-
return
|
6827
|
-
}),
|
6838
|
+
const y = Object.keys(xn).find((A) => f.value.startsWith(A));
|
6839
|
+
return y === void 0 ? "center center" : xn[y];
|
6840
|
+
}), x = E(() => {
|
6828
6841
|
if (i.value === void 0)
|
6829
6842
|
return "";
|
6830
|
-
const
|
6843
|
+
const y = {
|
6831
6844
|
"--vue-popper-enter-duration": g.value.enter,
|
6832
6845
|
"--vue-popper-leave-duration": g.value.leave,
|
6833
|
-
"--vue-popper-shift-transform":
|
6846
|
+
"--vue-popper-shift-transform": _.value,
|
6834
6847
|
"--vue-popper-scale-transform-origin": M.value
|
6835
|
-
},
|
6836
|
-
return MP(
|
6837
|
-
}),
|
6838
|
-
a.onTransition !== void 0 && a.onTransition(
|
6839
|
-
},
|
6840
|
-
const { slots:
|
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;
|
6841
6854
|
return M1(
|
6842
6855
|
w1,
|
6843
6856
|
{ name: V.value.outer },
|
@@ -6848,7 +6861,7 @@ const An = {
|
|
6848
6861
|
{
|
6849
6862
|
class: "popper-content-wrapper",
|
6850
6863
|
ref: n,
|
6851
|
-
style:
|
6864
|
+
style: x.value,
|
6852
6865
|
onMouseleave: () => {
|
6853
6866
|
a.hover === !1 || a.interactive === !1 || L("close", "tooltip");
|
6854
6867
|
},
|
@@ -6864,22 +6877,22 @@ const An = {
|
|
6864
6877
|
"data-placement": f.value,
|
6865
6878
|
"data-name": V.value.inner,
|
6866
6879
|
onBeforeEnter(W) {
|
6867
|
-
|
6880
|
+
w("before-enter", W);
|
6868
6881
|
},
|
6869
6882
|
onEnter(W) {
|
6870
|
-
V.value.inner === "shift-out" && (W.style.animation = `shift-out ${g.value.enter}`),
|
6883
|
+
V.value.inner === "shift-out" && (W.style.animation = `shift-out ${g.value.enter}`), w("enter", W);
|
6871
6884
|
},
|
6872
6885
|
onAfterEnter(W) {
|
6873
|
-
V.value.inner === "shift-out" && (W.style.transform =
|
6886
|
+
V.value.inner === "shift-out" && (W.style.transform = _.value), w("after-enter", W);
|
6874
6887
|
},
|
6875
6888
|
onBeforeLeave(W) {
|
6876
|
-
V.value.inner === "shift-out" && (W.style.transform =
|
6889
|
+
V.value.inner === "shift-out" && (W.style.transform = _.value, W.style.animation = ""), w("before-leave", W);
|
6877
6890
|
},
|
6878
6891
|
onLeave(W) {
|
6879
|
-
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"),
|
6892
|
+
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"), w("leave", W);
|
6880
6893
|
},
|
6881
6894
|
onAfterLeave(W) {
|
6882
|
-
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"),
|
6895
|
+
V.value.inner === "shift-out" && (W.style.transform = "translate(0, 0)"), w("after-leave", W);
|
6883
6896
|
}
|
6884
6897
|
},
|
6885
6898
|
{
|
@@ -6887,7 +6900,7 @@ const An = {
|
|
6887
6900
|
"div",
|
6888
6901
|
{ class: "popper-content" },
|
6889
6902
|
[
|
6890
|
-
|
6903
|
+
F.default ? F.default() : "",
|
6891
6904
|
M1(
|
6892
6905
|
"div",
|
6893
6906
|
{
|
@@ -6909,7 +6922,7 @@ const An = {
|
|
6909
6922
|
return pP(
|
6910
6923
|
t,
|
6911
6924
|
() => {
|
6912
|
-
a.disableClickOutside !== !0 &&
|
6925
|
+
a.disableClickOutside !== !0 && b("close");
|
6913
6926
|
},
|
6914
6927
|
{ ignore: [n] }
|
6915
6928
|
), M2(() => {
|
@@ -6919,18 +6932,18 @@ const An = {
|
|
6919
6932
|
o.value
|
6920
6933
|
));
|
6921
6934
|
}), ni(() => {
|
6922
|
-
var
|
6923
|
-
(
|
6924
|
-
}), s2(s, (
|
6925
|
-
var
|
6926
|
-
if (
|
6935
|
+
var y;
|
6936
|
+
(y = i.value) == null || y.destroy(), i.value = void 0;
|
6937
|
+
}), s2(s, (y) => {
|
6938
|
+
var A;
|
6939
|
+
if (y === !1) {
|
6927
6940
|
a.onClosed !== void 0 && a.onClosed();
|
6928
6941
|
return;
|
6929
6942
|
}
|
6930
|
-
a.onOpened !== void 0 && a.onOpened(), (
|
6943
|
+
a.onOpened !== void 0 && a.onOpened(), (A = i.value) == null || A.update();
|
6931
6944
|
}), {
|
6932
|
-
triggerElement:
|
6933
|
-
tooltipElement:
|
6945
|
+
triggerElement: N,
|
6946
|
+
tooltipElement: C,
|
6934
6947
|
popperInstance: i,
|
6935
6948
|
isOpened: E(() => s.value)
|
6936
6949
|
};
|
@@ -16563,7 +16576,7 @@ function kn(e, c) {
|
|
16563
16576
|
}
|
16564
16577
|
return a;
|
16565
16578
|
}
|
16566
|
-
function
|
16579
|
+
function q(e) {
|
16567
16580
|
for (var c = 1; c < arguments.length; c++) {
|
16568
16581
|
var a = arguments[c] != null ? arguments[c] : {};
|
16569
16582
|
c % 2 ? kn(Object(a), !0).forEach(function(t) {
|
@@ -16807,7 +16820,7 @@ var DT = {
|
|
16807
16820
|
showMissingIcons: !0
|
16808
16821
|
};
|
16809
16822
|
k3.familyPrefix && (k3.cssPrefix = k3.familyPrefix);
|
16810
|
-
var p3 =
|
16823
|
+
var p3 = q(q({}, DT), k3);
|
16811
16824
|
p3.autoReplaceSvg || (p3.observeMutations = !1);
|
16812
16825
|
var G = {};
|
16813
16826
|
Object.keys(DT).forEach(function(e) {
|
@@ -17761,7 +17774,7 @@ function Bn(e) {
|
|
17761
17774
|
}
|
17762
17775
|
function d0(e, c) {
|
17763
17776
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, t = a.skipHooks, n = t === void 0 ? !1 : t, i = Bn(c);
|
17764
|
-
typeof r1.hooks.addPack == "function" && !n ? r1.hooks.addPack(e, Bn(c)) : r1.styles[e] =
|
17777
|
+
typeof r1.hooks.addPack == "function" && !n ? r1.hooks.addPack(e, Bn(c)) : r1.styles[e] = q(q({}, r1.styles[e] || {}), i), e === "fas" && d0("fa", c);
|
17765
17778
|
}
|
17766
17779
|
var L4, _4, y4, i3 = r1.styles, oB = r1.shims, fB = (L4 = {}, T2(L4, z2, Object.values(R3[z2])), T2(L4, x2, Object.values(R3[x2])), L4), V9 = null, jT = {}, FT = {}, RT = {}, $T = {}, UT = {}, uB = (_4 = {}, T2(_4, z2, Object.keys(j3[z2])), T2(_4, x2, Object.keys(j3[x2])), _4);
|
17767
17780
|
function mB(e) {
|
@@ -17896,7 +17909,7 @@ var hB = /* @__PURE__ */ function() {
|
|
17896
17909
|
n[i] = arguments[i];
|
17897
17910
|
var s = n.reduce(this._pullDefinitions, {});
|
17898
17911
|
Object.keys(s).forEach(function(r) {
|
17899
|
-
a.definitions[r] =
|
17912
|
+
a.definitions[r] = q(q({}, a.definitions[r] || {}), s[r]), d0(r, s[r]);
|
17900
17913
|
var l = R3[z2][r];
|
17901
17914
|
l && d0(l, s[r]), qT();
|
17902
17915
|
});
|
@@ -18053,7 +18066,7 @@ function CB(e) {
|
|
18053
18066
|
x: r / l / 2,
|
18054
18067
|
y: 0.5
|
18055
18068
|
};
|
18056
|
-
n.style = E6(
|
18069
|
+
n.style = E6(q(q({}, i), {}, {
|
18057
18070
|
"transform-origin": "".concat(f.x + s.x / 16, "em ").concat(f.y + s.y / 16, "em")
|
18058
18071
|
}));
|
18059
18072
|
}
|
@@ -18072,7 +18085,7 @@ function LB(e) {
|
|
18072
18085
|
},
|
18073
18086
|
children: [{
|
18074
18087
|
tag: "symbol",
|
18075
|
-
attributes:
|
18088
|
+
attributes: q(q({}, n), {}, {
|
18076
18089
|
id: s
|
18077
18090
|
}),
|
18078
18091
|
children: t
|
@@ -18080,31 +18093,31 @@ function LB(e) {
|
|
18080
18093
|
}];
|
18081
18094
|
}
|
18082
18095
|
function H9(e) {
|
18083
|
-
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,
|
18084
|
-
return m.classes.indexOf(
|
18085
|
-
}).filter(function(
|
18086
|
-
return
|
18087
|
-
}).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(" "), _ = {
|
18088
18101
|
children: [],
|
18089
|
-
attributes:
|
18102
|
+
attributes: q(q({}, m.attributes), {}, {
|
18090
18103
|
"data-prefix": n,
|
18091
18104
|
"data-icon": i,
|
18092
18105
|
class: g,
|
18093
18106
|
role: m.attributes.role || "img",
|
18094
18107
|
xmlns: "http://www.w3.org/2000/svg",
|
18095
|
-
viewBox: "0 0 ".concat(L, " ").concat(
|
18108
|
+
viewBox: "0 0 ".concat(L, " ").concat(N)
|
18096
18109
|
})
|
18097
18110
|
}, M = V && !~m.classes.indexOf("fa-fw") ? {
|
18098
|
-
width: "".concat(L /
|
18111
|
+
width: "".concat(L / N * 16 * 0.0625, "em")
|
18099
18112
|
} : {};
|
18100
|
-
h && (
|
18113
|
+
h && (_.attributes[Z1] = ""), l && (_.children.push({
|
18101
18114
|
tag: "title",
|
18102
18115
|
attributes: {
|
18103
|
-
id:
|
18116
|
+
id: _.attributes["aria-labelledby"] || "title-".concat(o || U3())
|
18104
18117
|
},
|
18105
18118
|
children: [l]
|
18106
|
-
}), delete
|
18107
|
-
var
|
18119
|
+
}), delete _.attributes.title);
|
18120
|
+
var x = q(q({}, _), {}, {
|
18108
18121
|
prefix: n,
|
18109
18122
|
iconName: i,
|
18110
18123
|
main: a,
|
@@ -18112,24 +18125,24 @@ function H9(e) {
|
|
18112
18125
|
maskId: f,
|
18113
18126
|
transform: s,
|
18114
18127
|
symbol: r,
|
18115
|
-
styles:
|
18116
|
-
}),
|
18128
|
+
styles: q(q({}, M), m.styles)
|
18129
|
+
}), w = t.found && a.found ? y1("generateAbstractMask", x) || {
|
18117
18130
|
children: [],
|
18118
18131
|
attributes: {}
|
18119
|
-
} : y1("generateAbstractIcon",
|
18132
|
+
} : y1("generateAbstractIcon", x) || {
|
18120
18133
|
children: [],
|
18121
18134
|
attributes: {}
|
18122
|
-
},
|
18123
|
-
return
|
18135
|
+
}, C = w.children, y = w.attributes;
|
18136
|
+
return x.children = C, x.attributes = y, r ? LB(x) : CB(x);
|
18124
18137
|
}
|
18125
18138
|
function Rn(e) {
|
18126
|
-
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 =
|
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 = q(q(q({}, s.attributes), i ? {
|
18127
18140
|
title: i
|
18128
18141
|
} : {}), {}, {
|
18129
18142
|
class: s.classes.join(" ")
|
18130
18143
|
});
|
18131
18144
|
l && (f[Z1] = "");
|
18132
|
-
var o =
|
18145
|
+
var o = q({}, s.styles);
|
18133
18146
|
h9(n) && (o.transform = cB({
|
18134
18147
|
transform: n,
|
18135
18148
|
startCentered: !0,
|
@@ -18152,7 +18165,7 @@ function Rn(e) {
|
|
18152
18165
|
}), d;
|
18153
18166
|
}
|
18154
18167
|
function _B(e) {
|
18155
|
-
var c = e.content, a = e.title, t = e.extra, n =
|
18168
|
+
var c = e.content, a = e.title, t = e.extra, n = q(q(q({}, t.attributes), a ? {
|
18156
18169
|
title: a
|
18157
18170
|
} : {}), {}, {
|
18158
18171
|
class: t.classes.join(" ")
|
@@ -18226,7 +18239,7 @@ function V0(e, c) {
|
|
18226
18239
|
var s = G6[c][e];
|
18227
18240
|
return t(h0(s));
|
18228
18241
|
}
|
18229
|
-
AB(e, c), t(
|
18242
|
+
AB(e, c), t(q(q({}, yB), {}, {
|
18230
18243
|
icon: G.showMissingIcons && e ? y1("missingIconAbstract") || {} : {}
|
18231
18244
|
}));
|
18232
18245
|
});
|
@@ -18353,8 +18366,8 @@ function Wn(e) {
|
|
18353
18366
|
b3(f).forEach(function(m) {
|
18354
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))
|
18355
18368
|
if (m.attributeName === "class" && xB(m.target)) {
|
18356
|
-
var d = O6(p9(m.target)), h = d.prefix,
|
18357
|
-
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);
|
18358
18371
|
} else
|
18359
18372
|
kB(m.target) && n(m.target);
|
18360
18373
|
});
|
@@ -18412,7 +18425,7 @@ function Gn(e) {
|
|
18412
18425
|
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
18413
18426
|
styleParser: !0
|
18414
18427
|
}, a = OB(e), t = a.iconName, n = a.prefix, i = a.rest, s = PB(e), r = v0("parseNodeAttributes", {}, e), l = c.styleParser ? DB(e) : [];
|
18415
|
-
return
|
18428
|
+
return q({
|
18416
18429
|
iconName: t,
|
18417
18430
|
title: e.getAttribute("title"),
|
18418
18431
|
titleId: e.getAttribute("data-fa-title-id"),
|
@@ -18500,24 +18513,24 @@ function FB(e) {
|
|
18500
18513
|
function RB(e) {
|
18501
18514
|
return function(c) {
|
18502
18515
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = (c || {}).icon ? c : p0(c || {}), n = a.mask;
|
18503
|
-
return n && (n = (n || {}).icon ? n : p0(n || {})), e(t,
|
18516
|
+
return n && (n = (n || {}).icon ? n : p0(n || {})), e(t, q(q({}, a), {}, {
|
18504
18517
|
mask: n
|
18505
18518
|
}));
|
18506
18519
|
};
|
18507
18520
|
}
|
18508
18521
|
var $B = function(c) {
|
18509
|
-
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 ? {} : _;
|
18510
18523
|
if (c) {
|
18511
|
-
var
|
18512
|
-
return P6(
|
18524
|
+
var x = c.prefix, w = c.iconName, C = c.icon;
|
18525
|
+
return P6(q({
|
18513
18526
|
type: "icon"
|
18514
18527
|
}, c), function() {
|
18515
18528
|
return J1("beforeDOMElementCreation", {
|
18516
18529
|
iconDefinition: c,
|
18517
18530
|
params: a
|
18518
|
-
}), G.autoA11y && (d ? g["aria-labelledby"] = "".concat(G.replacementClass, "-title-").concat(
|
18531
|
+
}), G.autoA11y && (d ? g["aria-labelledby"] = "".concat(G.replacementClass, "-title-").concat(b || U3()) : (g["aria-hidden"] = "true", g.focusable = "false")), H9({
|
18519
18532
|
icons: {
|
18520
|
-
main: h0(
|
18533
|
+
main: h0(C),
|
18521
18534
|
mask: l ? h0(l.icon) : {
|
18522
18535
|
found: !1,
|
18523
18536
|
width: null,
|
@@ -18525,17 +18538,17 @@ var $B = function(c) {
|
|
18525
18538
|
icon: {}
|
18526
18539
|
}
|
18527
18540
|
},
|
18528
|
-
prefix:
|
18529
|
-
iconName:
|
18530
|
-
transform:
|
18541
|
+
prefix: x,
|
18542
|
+
iconName: w,
|
18543
|
+
transform: q(q({}, d1), n),
|
18531
18544
|
symbol: s,
|
18532
18545
|
title: d,
|
18533
18546
|
maskId: o,
|
18534
|
-
titleId:
|
18547
|
+
titleId: b,
|
18535
18548
|
extra: {
|
18536
18549
|
attributes: g,
|
18537
18550
|
styles: M,
|
18538
|
-
classes:
|
18551
|
+
classes: N
|
18539
18552
|
}
|
18540
18553
|
});
|
18541
18554
|
});
|
@@ -18560,14 +18573,14 @@ var $B = function(c) {
|
|
18560
18573
|
return Yn(n, s);
|
18561
18574
|
}, c.generateSvgReplacementMutation = function(a, t) {
|
18562
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;
|
18563
|
-
return new Promise(function(h,
|
18576
|
+
return new Promise(function(h, b) {
|
18564
18577
|
Promise.all([V0(n, r), o.iconName ? V0(o.iconName, o.prefix) : Promise.resolve({
|
18565
18578
|
found: !1,
|
18566
18579
|
width: 512,
|
18567
18580
|
height: 512,
|
18568
18581
|
icon: {}
|
18569
18582
|
})]).then(function(L) {
|
18570
|
-
var
|
18583
|
+
var N = f9(L, 2), V = N[0], g = N[1];
|
18571
18584
|
h([a, H9({
|
18572
18585
|
icons: {
|
18573
18586
|
main: V,
|
@@ -18583,7 +18596,7 @@ var $B = function(c) {
|
|
18583
18596
|
extra: d,
|
18584
18597
|
watchable: !0
|
18585
18598
|
})]);
|
18586
|
-
}).catch(
|
18599
|
+
}).catch(b);
|
18587
18600
|
});
|
18588
18601
|
}, c.generateAbstractIcon = function(a) {
|
18589
18602
|
var t = a.children, n = a.attributes, i = a.main, s = a.transform, r = a.styles, l = E6(r);
|
@@ -18667,7 +18680,7 @@ var $B = function(c) {
|
|
18667
18680
|
params: t
|
18668
18681
|
}), Rn({
|
18669
18682
|
content: a,
|
18670
|
-
transform:
|
18683
|
+
transform: q(q({}, d1), i),
|
18671
18684
|
title: r,
|
18672
18685
|
extra: {
|
18673
18686
|
attributes: m,
|
@@ -18710,33 +18723,33 @@ function Xn(e, c) {
|
|
18710
18723
|
return new Promise(function(t, n) {
|
18711
18724
|
if (e.getAttribute(a) !== null)
|
18712
18725
|
return t();
|
18713
|
-
var i = b3(e.children), s = i.filter(function(
|
18714
|
-
return
|
18726
|
+
var i = b3(e.children), s = i.filter(function(C) {
|
18727
|
+
return C.getAttribute(u0) === c;
|
18715
18728
|
})[0], r = D1.getComputedStyle(e, c), l = r.getPropertyValue("font-family").match(RP), f = r.getPropertyValue("font-weight"), o = r.getPropertyValue("content");
|
18716
18729
|
if (s && !l)
|
18717
18730
|
return e.removeChild(s), t();
|
18718
18731
|
if (l && o !== "none" && o !== "") {
|
18719
|
-
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;
|
18720
18733
|
if (V) {
|
18721
18734
|
var M = pB(L);
|
18722
18735
|
M.iconName && M.prefix && (g = M.iconName, h = M.prefix);
|
18723
18736
|
}
|
18724
|
-
if (g && !
|
18725
|
-
e.setAttribute(a,
|
18726
|
-
var
|
18727
|
-
|
18728
|
-
var
|
18737
|
+
if (g && !N && (!s || s.getAttribute(m9) !== h || s.getAttribute(d9) !== _)) {
|
18738
|
+
e.setAttribute(a, _), s && e.removeChild(s);
|
18739
|
+
var x = BB(), w = x.extra;
|
18740
|
+
w.attributes[u0] = c, V0(g, h).then(function(C) {
|
18741
|
+
var y = H9(q(q({}, x), {}, {
|
18729
18742
|
icons: {
|
18730
|
-
main:
|
18743
|
+
main: C,
|
18731
18744
|
mask: g9()
|
18732
18745
|
},
|
18733
18746
|
prefix: h,
|
18734
|
-
iconName:
|
18735
|
-
extra:
|
18747
|
+
iconName: _,
|
18748
|
+
extra: w,
|
18736
18749
|
watchable: !0
|
18737
|
-
})),
|
18738
|
-
c === "::before" ? e.insertBefore(
|
18739
|
-
return u4(
|
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
|
+
return u4(F);
|
18740
18753
|
}).join(`
|
18741
18754
|
`), e.removeAttribute(a), t();
|
18742
18755
|
}).catch(n);
|
@@ -18878,14 +18891,14 @@ var ZB = {
|
|
18878
18891
|
};
|
18879
18892
|
return {
|
18880
18893
|
tag: "g",
|
18881
|
-
attributes:
|
18894
|
+
attributes: q({}, h.outer),
|
18882
18895
|
children: [{
|
18883
18896
|
tag: "g",
|
18884
|
-
attributes:
|
18897
|
+
attributes: q({}, h.inner),
|
18885
18898
|
children: [{
|
18886
18899
|
tag: t.icon.tag,
|
18887
18900
|
children: t.icon.children,
|
18888
|
-
attributes:
|
18901
|
+
attributes: q(q({}, t.icon.attributes), h.path)
|
18889
18902
|
}]
|
18890
18903
|
}]
|
18891
18904
|
};
|
@@ -18921,47 +18934,47 @@ var aj = {
|
|
18921
18934
|
transform: l,
|
18922
18935
|
containerWidth: m,
|
18923
18936
|
iconWidth: f
|
18924
|
-
}),
|
18937
|
+
}), b = {
|
18925
18938
|
tag: "rect",
|
18926
|
-
attributes:
|
18939
|
+
attributes: q(q({}, Y6), {}, {
|
18927
18940
|
fill: "white"
|
18928
18941
|
})
|
18929
18942
|
}, L = o.children ? {
|
18930
18943
|
children: o.children.map(ei)
|
18931
|
-
} : {},
|
18944
|
+
} : {}, N = {
|
18932
18945
|
tag: "g",
|
18933
|
-
attributes:
|
18934
|
-
children: [ei(
|
18946
|
+
attributes: q({}, h.inner),
|
18947
|
+
children: [ei(q({
|
18935
18948
|
tag: o.tag,
|
18936
|
-
attributes:
|
18949
|
+
attributes: q(q({}, o.attributes), h.path)
|
18937
18950
|
}, L))]
|
18938
18951
|
}, V = {
|
18939
18952
|
tag: "g",
|
18940
|
-
attributes:
|
18941
|
-
children: [
|
18942
|
-
}, g = "mask-".concat(r || U3()),
|
18953
|
+
attributes: q({}, h.outer),
|
18954
|
+
children: [N]
|
18955
|
+
}, g = "mask-".concat(r || U3()), _ = "clip-".concat(r || U3()), M = {
|
18943
18956
|
tag: "mask",
|
18944
|
-
attributes:
|
18957
|
+
attributes: q(q({}, Y6), {}, {
|
18945
18958
|
id: g,
|
18946
18959
|
maskUnits: "userSpaceOnUse",
|
18947
18960
|
maskContentUnits: "userSpaceOnUse"
|
18948
18961
|
}),
|
18949
|
-
children: [
|
18950
|
-
},
|
18962
|
+
children: [b, V]
|
18963
|
+
}, x = {
|
18951
18964
|
tag: "defs",
|
18952
18965
|
children: [{
|
18953
18966
|
tag: "clipPath",
|
18954
18967
|
attributes: {
|
18955
|
-
id:
|
18968
|
+
id: _
|
18956
18969
|
},
|
18957
18970
|
children: cj(d)
|
18958
18971
|
}, M]
|
18959
18972
|
};
|
18960
|
-
return t.push(
|
18973
|
+
return t.push(x, {
|
18961
18974
|
tag: "rect",
|
18962
|
-
attributes:
|
18975
|
+
attributes: q({
|
18963
18976
|
fill: "currentColor",
|
18964
|
-
"clip-path": "url(#".concat(
|
18977
|
+
"clip-path": "url(#".concat(_, ")"),
|
18965
18978
|
mask: "url(#".concat(g, ")")
|
18966
18979
|
}, Y6)
|
18967
18980
|
}), {
|
@@ -18983,15 +18996,15 @@ var aj = {
|
|
18983
18996
|
};
|
18984
18997
|
t.push({
|
18985
18998
|
tag: "path",
|
18986
|
-
attributes:
|
18999
|
+
attributes: q(q({}, n), {}, {
|
18987
19000
|
d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"
|
18988
19001
|
})
|
18989
19002
|
});
|
18990
|
-
var s =
|
19003
|
+
var s = q(q({}, i), {}, {
|
18991
19004
|
attributeName: "opacity"
|
18992
19005
|
}), r = {
|
18993
19006
|
tag: "circle",
|
18994
|
-
attributes:
|
19007
|
+
attributes: q(q({}, n), {}, {
|
18995
19008
|
cx: "256",
|
18996
19009
|
cy: "364",
|
18997
19010
|
r: "28"
|
@@ -19000,36 +19013,36 @@ var aj = {
|
|
19000
19013
|
};
|
19001
19014
|
return a || r.children.push({
|
19002
19015
|
tag: "animate",
|
19003
|
-
attributes:
|
19016
|
+
attributes: q(q({}, i), {}, {
|
19004
19017
|
attributeName: "r",
|
19005
19018
|
values: "28;14;28;28;14;28;"
|
19006
19019
|
})
|
19007
19020
|
}, {
|
19008
19021
|
tag: "animate",
|
19009
|
-
attributes:
|
19022
|
+
attributes: q(q({}, s), {}, {
|
19010
19023
|
values: "1;0;1;1;0;1;"
|
19011
19024
|
})
|
19012
19025
|
}), t.push(r), t.push({
|
19013
19026
|
tag: "path",
|
19014
|
-
attributes:
|
19027
|
+
attributes: q(q({}, n), {}, {
|
19015
19028
|
opacity: "1",
|
19016
19029
|
d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"
|
19017
19030
|
}),
|
19018
19031
|
children: a ? [] : [{
|
19019
19032
|
tag: "animate",
|
19020
|
-
attributes:
|
19033
|
+
attributes: q(q({}, s), {}, {
|
19021
19034
|
values: "1;0;0;0;0;1;"
|
19022
19035
|
})
|
19023
19036
|
}]
|
19024
19037
|
}), a || t.push({
|
19025
19038
|
tag: "path",
|
19026
|
-
attributes:
|
19039
|
+
attributes: q(q({}, n), {}, {
|
19027
19040
|
opacity: "0",
|
19028
19041
|
d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"
|
19029
19042
|
}),
|
19030
19043
|
children: [{
|
19031
19044
|
tag: "animate",
|
19032
|
-
attributes:
|
19045
|
+
attributes: q(q({}, s), {}, {
|
19033
19046
|
values: "0;0;1;1;0;0;"
|
19034
19047
|
})
|
19035
19048
|
}]
|
@@ -19082,9 +19095,9 @@ const rj = Q({
|
|
19082
19095
|
if (l.prefix)
|
19083
19096
|
return;
|
19084
19097
|
const m = Object.keys(l.attributes || {}).reduce(
|
19085
|
-
(h,
|
19086
|
-
const L = l.attributes[
|
19087
|
-
return h.attrs[
|
19098
|
+
(h, b) => {
|
19099
|
+
const L = l.attributes[b];
|
19100
|
+
return h.attrs[b] = L, h;
|
19088
19101
|
},
|
19089
19102
|
{
|
19090
19103
|
attrs: {}
|
@@ -19101,7 +19114,7 @@ const rj = Q({
|
|
19101
19114
|
};
|
19102
19115
|
function t(l) {
|
19103
19116
|
let d = `fa-${l}`.split("-").map(
|
19104
|
-
(
|
19117
|
+
(b) => b.charAt(0).toUpperCase() + b.slice(1).toLowerCase()
|
19105
19118
|
).join("");
|
19106
19119
|
return d.charAt(0).toLowerCase() + d.slice(1);
|
19107
19120
|
}
|
@@ -20049,10 +20062,10 @@ const sF = /* @__PURE__ */ X(iF, [["__scopeId", "data-v-ff11beb8"]]), rF = { cla
|
|
20049
20062
|
], 10, oF),
|
20050
20063
|
I(h, null, {
|
20051
20064
|
default: i2(() => [
|
20052
|
-
(p(!0), H(
|
20053
|
-
key:
|
20054
|
-
optionLabel:
|
20055
|
-
onOnSelected: (L) => s(
|
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),
|
20056
20069
|
"data-test": "option"
|
20057
20070
|
}, null, 8, ["optionLabel", "onOnSelected"]))), 128))
|
20058
20071
|
]),
|
@@ -20294,37 +20307,37 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20294
20307
|
}, o = () => {
|
20295
20308
|
i.value = !1;
|
20296
20309
|
}, m = (M) => {
|
20297
|
-
const
|
20298
|
-
for (let
|
20299
|
-
const
|
20300
|
-
if (
|
20301
|
-
`.${
|
20310
|
+
const x = Array.from(M), w = new DataTransfer();
|
20311
|
+
for (let C of x) {
|
20312
|
+
const y = C.name.split(".").pop();
|
20313
|
+
if (b.value.includes(
|
20314
|
+
`.${y.toLowerCase()}`
|
20302
20315
|
)) {
|
20303
|
-
const
|
20304
|
-
type:
|
20305
|
-
lastModified:
|
20316
|
+
const F = new File([C], C.name, {
|
20317
|
+
type: C.type,
|
20318
|
+
lastModified: C.lastModified
|
20306
20319
|
});
|
20307
|
-
|
20320
|
+
w.items.add(F);
|
20308
20321
|
} else
|
20309
|
-
c("fileFormatNotAccepted",
|
20322
|
+
c("fileFormatNotAccepted", C.name);
|
20310
20323
|
}
|
20311
|
-
return
|
20312
|
-
}, d = E(() => a.accept.split(",")), h = E(() => a.accept.split(",").join(", ")),
|
20324
|
+
return w.files;
|
20325
|
+
}, d = E(() => a.accept.split(",")), h = E(() => a.accept.split(",").join(", ")), b = E(
|
20313
20326
|
() => d.value.map((M) => M.toLocaleLowerCase())
|
20314
|
-
), L = (M) => M.split("/").pop(),
|
20327
|
+
), L = (M) => M.split("/").pop(), N = (M) => {
|
20315
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);
|
20316
20329
|
}, V = (M) => {
|
20317
20330
|
r.value.splice(M, 1), c("update", r.value);
|
20318
20331
|
}, g = (M) => {
|
20319
|
-
let
|
20332
|
+
let x = URL.createObjectURL(M);
|
20320
20333
|
return setTimeout(() => {
|
20321
|
-
URL.revokeObjectURL(
|
20322
|
-
}, 1e3),
|
20323
|
-
},
|
20334
|
+
URL.revokeObjectURL(x);
|
20335
|
+
}, 1e3), x;
|
20336
|
+
}, _ = (M) => {
|
20324
20337
|
c("download", M);
|
20325
20338
|
};
|
20326
|
-
return (M,
|
20327
|
-
const
|
20339
|
+
return (M, x) => {
|
20340
|
+
const w = D("AVTooltip"), C = D("AVIcon");
|
20328
20341
|
return p(), H("div", NF, [
|
20329
20342
|
e.disableLabel ? O("", !0) : (p(), H("label", {
|
20330
20343
|
key: 0,
|
@@ -20333,7 +20346,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20333
20346
|
"data-test": "input-label"
|
20334
20347
|
}, [
|
20335
20348
|
u("span", null, k(e.inputLabel), 1),
|
20336
|
-
e.tooltipText ? (p(), K(
|
20349
|
+
e.tooltipText ? (p(), K(w, {
|
20337
20350
|
key: 0,
|
20338
20351
|
id: `${e.id}-info-tooltip`,
|
20339
20352
|
position: "right",
|
@@ -20344,7 +20357,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20344
20357
|
class: Y(`AVFileInput--dropzone-container ${e.error && "error"} ${e.disabled && "disabled"}`),
|
20345
20358
|
onDragover: f,
|
20346
20359
|
onDragleave: o,
|
20347
|
-
onDrop:
|
20360
|
+
onDrop: N
|
20348
20361
|
}, [
|
20349
20362
|
u("input", {
|
20350
20363
|
type: "file",
|
@@ -20359,7 +20372,7 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20359
20372
|
disabled: e.disabled
|
20360
20373
|
}, null, 40, kF),
|
20361
20374
|
u("div", SF, [
|
20362
|
-
I(
|
20375
|
+
I(C, {
|
20363
20376
|
icon: "fa-solid fa-cloud-arrow-up",
|
20364
20377
|
class: "AVFileInput--input-icon",
|
20365
20378
|
"data-test": "input-icon"
|
@@ -20387,8 +20400,8 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20387
20400
|
])),
|
20388
20401
|
r.value.length ? (p(), H("div", jF, [
|
20389
20402
|
u("p", FF, k(B(n)("js.components.AVFileInput.uploading")), 1),
|
20390
|
-
(p(!0), H(
|
20391
|
-
key:
|
20403
|
+
(p(!0), H(t2, null, g2(r.value, (y) => (p(), H("div", {
|
20404
|
+
key: y.name,
|
20392
20405
|
class: Y(`AVFileInput--preview-card ${e.error && "error"}`)
|
20393
20406
|
}, [
|
20394
20407
|
u("div", RF, [
|
@@ -20396,8 +20409,8 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20396
20409
|
e.showPreview ? (p(), H("img", {
|
20397
20410
|
key: 0,
|
20398
20411
|
class: "AVFileInput--preview-img",
|
20399
|
-
src: g(
|
20400
|
-
}, null, 8, UF)) : (p(), K(
|
20412
|
+
src: g(y)
|
20413
|
+
}, null, 8, UF)) : (p(), K(C, {
|
20401
20414
|
key: 1,
|
20402
20415
|
icon: "fa-solid fa-file",
|
20403
20416
|
class: "AVTextInput--preview-icon",
|
@@ -20405,18 +20418,18 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20405
20418
|
}))
|
20406
20419
|
]),
|
20407
20420
|
u("p", qF, [
|
20408
|
-
D2(k(
|
20409
|
-
u("em", null, k(Math.round(
|
20421
|
+
D2(k(y.name) + " ", 1),
|
20422
|
+
u("em", null, k(Math.round(y.size / 1e3) + "kb"), 1)
|
20410
20423
|
])
|
20411
20424
|
]),
|
20412
20425
|
e.disabled ? O("", !0) : (p(), H("button", {
|
20413
20426
|
key: 0,
|
20414
20427
|
class: "AVTextInput--delete-btn",
|
20415
20428
|
type: "button",
|
20416
|
-
onClick: (
|
20429
|
+
onClick: (A) => V(r.value.indexOf(y)),
|
20417
20430
|
title: "Remove file"
|
20418
20431
|
}, [
|
20419
|
-
I(
|
20432
|
+
I(C, {
|
20420
20433
|
icon: "fa-solid fa-trash",
|
20421
20434
|
class: "AVTextInput--delete-icon",
|
20422
20435
|
"data-test": "file-preview-icon"
|
@@ -20426,32 +20439,32 @@ const AF = /* @__PURE__ */ X(yF, [["__scopeId", "data-v-0cc3f6d1"]]), NF = { cla
|
|
20426
20439
|
])) : O("", !0),
|
20427
20440
|
e.currentValue ? (p(), H("div", GF, [
|
20428
20441
|
u("p", YF, k(B(n)("js.components.AVFileInput.current")), 1),
|
20429
|
-
(p(!0), H(
|
20430
|
-
key: `image-${
|
20442
|
+
(p(!0), H(t2, null, g2(e.currentValue, (y) => (p(), H("div", {
|
20443
|
+
key: `image-${y}`
|
20431
20444
|
}, [
|
20432
20445
|
e.showPreview ? (p(), H("img", {
|
20433
20446
|
key: 0,
|
20434
20447
|
class: "AVFileInput--current-img",
|
20435
|
-
src:
|
20448
|
+
src: y,
|
20436
20449
|
alt: B(n)("js.components.AVFileInput.alt_preview")
|
20437
20450
|
}, null, 8, QF)) : (p(), H("div", XF, [
|
20438
20451
|
u("div", KF, [
|
20439
20452
|
u("div", ZF, [
|
20440
|
-
I(
|
20453
|
+
I(C, {
|
20441
20454
|
icon: "fa-solid fa-file",
|
20442
20455
|
class: "AVTextInput--preview-icon",
|
20443
20456
|
"data-test": "file-preview-icon"
|
20444
20457
|
})
|
20445
20458
|
]),
|
20446
|
-
u("p", JF, k(L(
|
20459
|
+
u("p", JF, k(L(y)), 1)
|
20447
20460
|
]),
|
20448
20461
|
u("button", {
|
20449
20462
|
class: "AVTextInput--delete-btn",
|
20450
20463
|
type: "button",
|
20451
20464
|
title: "Download file",
|
20452
|
-
onClick: (
|
20465
|
+
onClick: (A) => _(y)
|
20453
20466
|
}, [
|
20454
|
-
I(
|
20467
|
+
I(C, {
|
20455
20468
|
icon: "fa-solid fa-download",
|
20456
20469
|
class: "AVTextInput--download-icon",
|
20457
20470
|
"data-test": "file-download-icon"
|
@@ -20884,7 +20897,7 @@ const xR = /* @__PURE__ */ X(NR, [["__scopeId", "data-v-f09132ab"]]), kR = { cla
|
|
20884
20897
|
], 8, SR),
|
20885
20898
|
I(l, null, {
|
20886
20899
|
default: i2(() => [
|
20887
|
-
(p(!0), H(
|
20900
|
+
(p(!0), H(t2, null, g2(e.options, (f, o) => (p(), K(r, {
|
20888
20901
|
key: o,
|
20889
20902
|
optionLabel: f.label,
|
20890
20903
|
href: f.href,
|
@@ -21030,7 +21043,7 @@ const BR = /* @__PURE__ */ X(PR, [["__scopeId", "data-v-f770cea1"]]), jR = ["dis
|
|
21030
21043
|
"AVAsyncButton--disabled": !t.value && i.value
|
21031
21044
|
}])
|
21032
21045
|
}, [
|
21033
|
-
t.value ? (p(), H(
|
21046
|
+
t.value ? (p(), H(t2, { key: 1 }, [
|
21034
21047
|
y2(r.$slots, "waitingIcon", {}, () => [
|
21035
21048
|
I(o, {
|
21036
21049
|
style: { color: "inherit", height: "1em", width: "1em" },
|
@@ -21109,11 +21122,11 @@ const RR = /* @__PURE__ */ X(FR, [["__scopeId", "data-v-11042fa9"]]), $R = { cla
|
|
21109
21122
|
() => a.disabled,
|
21110
21123
|
() => l()
|
21111
21124
|
), (m, d) => (p(), H("div", $R, [
|
21112
|
-
(p(!0), H(
|
21125
|
+
(p(!0), H(t2, null, g2(t.value, (h) => (p(), H("button", {
|
21113
21126
|
key: h.value,
|
21114
21127
|
class: Y(`AVTabSwitcher--button ${i.value} ${h.selected && "AVTabSwitcher--button-active"} ${h.disabled && "disabled"}`),
|
21115
21128
|
disabled: h.disabled,
|
21116
|
-
onClick: (
|
21129
|
+
onClick: (b) => f(h.value)
|
21117
21130
|
}, k(h.value), 11, UR))), 128))
|
21118
21131
|
]));
|
21119
21132
|
}
|
@@ -21215,7 +21228,7 @@ const KR = /* @__PURE__ */ X(XR, [["__scopeId", "data-v-607d90fc"]]), ZR = {
|
|
21215
21228
|
}, i = E(() => 100 - t.value / a.timeout * 100), s = E(
|
21216
21229
|
() => Math.floor((a.timeout - t.value) / 60)
|
21217
21230
|
), r = E(() => (a.timeout - t.value) % 60), l = E(() => s.value % 60), f = E(() => r.value < 10 ? `${l.value}:0${r.value}` : `${l.value}:${r.value}`);
|
21218
|
-
return (o, m) => (p(), H(
|
21231
|
+
return (o, m) => (p(), H(t2, null, [
|
21219
21232
|
u("div", {
|
21220
21233
|
class: "AVTimedCard",
|
21221
21234
|
style: l1(`width: ${e.customWidth}px`)
|
@@ -21331,7 +21344,7 @@ const r$ = /* @__PURE__ */ X(s$, [["__scopeId", "data-v-9a6218e9"]]), l$ = { cla
|
|
21331
21344
|
return (s, r) => {
|
21332
21345
|
const l = D("AVIcon");
|
21333
21346
|
return p(), H("div", l$, [
|
21334
|
-
(p(!0), H(
|
21347
|
+
(p(!0), H(t2, null, g2(a.value, (f, o) => (p(), H("div", {
|
21335
21348
|
key: o,
|
21336
21349
|
class: Y(`${a.value.length !== o + 1 ? "AVSteps--step" : "AVSteps--step-last"} ${f.active && "AVSteps--step-active"}`),
|
21337
21350
|
"data-test": "step"
|
@@ -21575,7 +21588,7 @@ const _$ = /* @__PURE__ */ X(L$, [["__scopeId", "data-v-342ba729"]]), y$ = /* @_
|
|
21575
21588
|
};
|
21576
21589
|
return (r, l) => {
|
21577
21590
|
const f = D("AVTransitionSlide");
|
21578
|
-
return e.collapsable ? (p(), H(
|
21591
|
+
return e.collapsable ? (p(), H(t2, { key: 0 }, [
|
21579
21592
|
u("div", {
|
21580
21593
|
role: "button",
|
21581
21594
|
"aria-controls": e.paneId,
|
@@ -21609,7 +21622,7 @@ const _$ = /* @__PURE__ */ X(L$, [["__scopeId", "data-v-342ba729"]]), y$ = /* @_
|
|
21609
21622
|
]),
|
21610
21623
|
_: 3
|
21611
21624
|
}, 8, ["skip-transition"])
|
21612
|
-
], 64)) : (p(), H(
|
21625
|
+
], 64)) : (p(), H(t2, { key: 1 }, [
|
21613
21626
|
y2(r.$slots, "toggle", {
|
21614
21627
|
isOpen: !0,
|
21615
21628
|
collapsable: !1
|
@@ -21717,14 +21730,14 @@ const k$ = /* @__PURE__ */ X(x$, [["__scopeId", "data-v-4e9b2c30"]]), S$ = { cla
|
|
21717
21730
|
class: Y(`AVRadioGroup--${e.orientation}`),
|
21718
21731
|
"data-test": "input-group"
|
21719
21732
|
}, [
|
21720
|
-
(p(!0), H(
|
21733
|
+
(p(!0), H(t2, null, g2(n.value, (d, h) => (p(), K(m, {
|
21721
21734
|
class: "AVRadioGroup--child",
|
21722
21735
|
id: `radio-${e.id}-${h}`,
|
21723
21736
|
key: h,
|
21724
21737
|
value: d.value,
|
21725
21738
|
checked: d.checked,
|
21726
21739
|
disabled: d.disabled,
|
21727
|
-
onUpdate: (
|
21740
|
+
onUpdate: (b) => r(d.value)
|
21728
21741
|
}, null, 8, ["id", "value", "checked", "disabled", "onUpdate"]))), 128))
|
21729
21742
|
], 2),
|
21730
21743
|
e.error && e.errorMessage ? (p(), H("p", T$, k(e.errorMessage), 1)) : O("", !0)
|
@@ -21776,7 +21789,7 @@ const O$ = /* @__PURE__ */ X(D$, [["__scopeId", "data-v-9fd5c53d"]]), P$ = { cla
|
|
21776
21789
|
class: "AVBreadcrumb--icon"
|
21777
21790
|
}))
|
21778
21791
|
], 8, B$),
|
21779
|
-
(p(!0), H(
|
21792
|
+
(p(!0), H(t2, null, g2(e.items, (n, i) => (p(), H("span", {
|
21780
21793
|
key: i,
|
21781
21794
|
class: "AVBreadcrumb--group",
|
21782
21795
|
"data-test": "item-group"
|
@@ -22045,16 +22058,16 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22045
22058
|
}
|
22046
22059
|
), r = E(() => i.value.length < 1 ? "" : i.value.map((o) => o.title[n.value]).reverse()), l = E(() => {
|
22047
22060
|
var o;
|
22048
|
-
return c.blank ?
|
22061
|
+
return c.blank ? t("js.components.AVSummaryOption.blank") : (o = c.option) == null ? void 0 : o.title;
|
22049
22062
|
}), f = E(() => {
|
22050
|
-
var
|
22051
|
-
const o = Array.from(Array((
|
22052
|
-
o.forEach((
|
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);
|
22053
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);
|
22054
22067
|
return h.length ? [d, h] : [d];
|
22055
22068
|
});
|
22056
22069
|
return (o, m) => {
|
22057
|
-
var h,
|
22070
|
+
var h, b, L;
|
22058
22071
|
const d = D("AVOptionCheckbox");
|
22059
22072
|
return p(), H("div", {
|
22060
22073
|
class: "AVSummaryOption",
|
@@ -22062,10 +22075,10 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22062
22075
|
}, [
|
22063
22076
|
r.value ? (p(), H("div", VU, [
|
22064
22077
|
u("ul", zU, [
|
22065
|
-
(p(!0), H(
|
22066
|
-
key:
|
22078
|
+
(p(!0), H(t2, null, g2(r.value, (N, V) => (p(), H("li", {
|
22079
|
+
key: N + V,
|
22067
22080
|
class: "AVSummaryOption--breadcrumb-item"
|
22068
|
-
}, k(
|
22081
|
+
}, k(N), 1))), 128))
|
22069
22082
|
])
|
22070
22083
|
])) : O("", !0),
|
22071
22084
|
u("div", {
|
@@ -22076,7 +22089,7 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22076
22089
|
}, [
|
22077
22090
|
(h = e.option) != null && h.image ? (p(), H("img", {
|
22078
22091
|
key: 0,
|
22079
|
-
src: (
|
22092
|
+
src: (b = e.option) == null ? void 0 : b.image,
|
22080
22093
|
class: "AVSummaryOption--img",
|
22081
22094
|
alt: B(t)("js.components.AVSummaryOption.aria_label.option_image")
|
22082
22095
|
}, null, 8, gU)) : O("", !0),
|
@@ -22092,11 +22105,11 @@ const pU = /* @__PURE__ */ X(vU, [["__scopeId", "data-v-c682a2cf"]]), hU = ["ari
|
|
22092
22105
|
]))
|
22093
22106
|
], 2),
|
22094
22107
|
s.value ? (p(), H("div", CU, [
|
22095
|
-
(p(!0), H(
|
22096
|
-
key:
|
22108
|
+
(p(!0), H(t2, null, g2(f.value, (N) => (p(), H("div", {
|
22109
|
+
key: N.toString(),
|
22097
22110
|
class: "AVSummaryOption--group"
|
22098
22111
|
}, [
|
22099
|
-
(p(!0), H(
|
22112
|
+
(p(!0), H(t2, null, g2(N, (V) => {
|
22100
22113
|
var g;
|
22101
22114
|
return p(), K(d, {
|
22102
22115
|
key: V,
|
@@ -22206,7 +22219,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22206
22219
|
var j;
|
22207
22220
|
return ((j = a.option.description) == null ? void 0 : j[i.value]) ?? "";
|
22208
22221
|
}
|
22209
|
-
),
|
22222
|
+
), b = E(() => {
|
22210
22223
|
var j;
|
22211
22224
|
return ((j = a.option.url) == null ? void 0 : j[i.value]) ?? "";
|
22212
22225
|
}), L = E(
|
@@ -22214,12 +22227,12 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22214
22227
|
var j;
|
22215
22228
|
return ((j = a.option.videoUrl) == null ? void 0 : j[i.value]) ?? "";
|
22216
22229
|
}
|
22217
|
-
),
|
22230
|
+
), N = E(() => a.option.image), g = e2(function() {
|
22218
22231
|
return a.option.randomizeChildren ? a.option.children.slice().sort(() => Math.random() - 0.5) : a.option.children;
|
22219
|
-
}()),
|
22232
|
+
}()), _ = E(() => {
|
22220
22233
|
let j = [];
|
22221
|
-
return
|
22222
|
-
url:
|
22234
|
+
return b.value && j.push({
|
22235
|
+
url: b.value,
|
22223
22236
|
text: n("js.components.AVOption.info_link_text_html")
|
22224
22237
|
}), L.value && j.push({
|
22225
22238
|
url: L.value,
|
@@ -22227,23 +22240,23 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22227
22240
|
}), j;
|
22228
22241
|
}), M = E(
|
22229
22242
|
() => a.option.children && a.option.children.length > 0
|
22230
|
-
),
|
22231
|
-
const j = Array.from(Array(
|
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 ? W(a.option.children) : 0), C = E(() => a.option.exclusive), y = E(() => {
|
22244
|
+
const j = Array.from(Array(x.value).keys());
|
22232
22245
|
j.forEach((h2) => j[h2] = h2 + 1);
|
22233
|
-
const
|
22234
|
-
return
|
22235
|
-
}),
|
22246
|
+
const r2 = j.indexOf(Math.ceil(x.value / 2)) + 1, l2 = j.slice(0, r2), a2 = j.slice(r2);
|
22247
|
+
return a2.length ? [l2, a2] : [l2];
|
22248
|
+
}), A = E(() => a.partialResults ? a.partialResults[a.option.reference] : null), F = (j, r2 = 1) => {
|
22236
22249
|
c("checked", {
|
22237
22250
|
reference: j,
|
22238
|
-
amount:
|
22251
|
+
amount: r2
|
22239
22252
|
});
|
22240
22253
|
}, W = (j) => {
|
22241
22254
|
if (!j)
|
22242
22255
|
return 0;
|
22243
|
-
let
|
22244
|
-
(
|
22256
|
+
let r2 = j.filter(
|
22257
|
+
(l2) => a.selections.map((a2) => a2.reference).includes(l2.reference)
|
22245
22258
|
).length;
|
22246
|
-
return j.reduce((
|
22259
|
+
return j.reduce((l2, a2) => l2 + W(a2.children), r2);
|
22247
22260
|
}, R = (j) => {
|
22248
22261
|
r.value = !1, j === a.option.reference && (c("accordion-open"), VI(() => {
|
22249
22262
|
r.value = !0, l.value.scrollIntoView({ behavior: "smooth", block: "center" });
|
@@ -22252,11 +22265,11 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22252
22265
|
return s2(
|
22253
22266
|
() => s.value.get("highlight-option"),
|
22254
22267
|
(j) => {
|
22255
|
-
const [
|
22256
|
-
R(
|
22268
|
+
const [r2] = j ?? [];
|
22269
|
+
R(r2);
|
22257
22270
|
}
|
22258
|
-
), (j,
|
22259
|
-
const
|
22271
|
+
), (j, r2) => {
|
22272
|
+
const l2 = D("AVIcon"), a2 = D("AVOptionCheckbox"), h2 = D("AVOption", !0), F2 = D("AVCollapser");
|
22260
22273
|
return p(), H("div", {
|
22261
22274
|
class: Y({
|
22262
22275
|
"AVOption--background": !0,
|
@@ -22272,7 +22285,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22272
22285
|
I(F2, {
|
22273
22286
|
collapsable: e.contest.collapsable && M.value,
|
22274
22287
|
"start-collapsed": e.contest.collapseDefault && !e.observerMode,
|
22275
|
-
onAccordionOpen:
|
22288
|
+
onAccordionOpen: r2[1] || (r2[1] = (b2) => c("accordion-open"))
|
22276
22289
|
}, hI({
|
22277
22290
|
toggle: i2(({ isOpen: b2, collapsable: v2 }) => [
|
22278
22291
|
u("section", {
|
@@ -22290,15 +22303,15 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22290
22303
|
}, [
|
22291
22304
|
u("div", {
|
22292
22305
|
class: Y(["AVOption--container", {
|
22293
|
-
"AVOption--container-column":
|
22294
|
-
"AVOption--container-row":
|
22306
|
+
"AVOption--container-column": x.value > 1,
|
22307
|
+
"AVOption--container-row": x.value <= 5
|
22295
22308
|
}])
|
22296
22309
|
}, [
|
22297
22310
|
u("div", AU, [
|
22298
22311
|
u("header", NU, [
|
22299
|
-
|
22312
|
+
N.value ? (p(), H("img", {
|
22300
22313
|
key: 0,
|
22301
|
-
src:
|
22314
|
+
src: N.value,
|
22302
22315
|
alt: B(n)("js.components.AVOption.aria_labels.option_image"),
|
22303
22316
|
class: "AVOption-image"
|
22304
22317
|
}, null, 8, xU)) : O("", !0),
|
@@ -22307,12 +22320,12 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22307
22320
|
textContent: k(d.value)
|
22308
22321
|
}, null, 8, kU)
|
22309
22322
|
]),
|
22310
|
-
h.value ||
|
22323
|
+
h.value || _.value.length || M.value ? (p(), H("div", SU, [
|
22311
22324
|
h.value ? (p(), H("div", wU, [
|
22312
22325
|
u("p", { innerHTML: h.value }, null, 8, TU)
|
22313
22326
|
])) : O("", !0),
|
22314
|
-
|
22315
|
-
(p(!0), H(
|
22327
|
+
_.value.length > 0 ? (p(), H("div", IU, [
|
22328
|
+
(p(!0), H(t2, null, g2(_.value, (A2) => (p(), H("a", {
|
22316
22329
|
key: A2.toString(),
|
22317
22330
|
href: A2.url,
|
22318
22331
|
class: "AVOption--links",
|
@@ -22325,7 +22338,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22325
22338
|
class: "AVOption--expander-container",
|
22326
22339
|
"aria-hidden": "true"
|
22327
22340
|
}, [
|
22328
|
-
I(
|
22341
|
+
I(l2, {
|
22329
22342
|
icon: b2 ? "chevron-down" : f.value ? "chevron-left" : "chevron-right",
|
22330
22343
|
class: "AVOption--expander-icon"
|
22331
22344
|
}, null, 8, ["icon"]),
|
@@ -22334,7 +22347,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22334
22347
|
innerHTML: b2 ? B(n)("js.components.AVOption.collapse_text") : B(n)("js.components.AVOption.expand_text")
|
22335
22348
|
}, null, 8, PU)
|
22336
22349
|
], 8, OU),
|
22337
|
-
|
22350
|
+
w.value && !b2 ? (p(), H("span", {
|
22338
22351
|
key: 0,
|
22339
22352
|
class: Y(["AVOption--suboption-badge", {
|
22340
22353
|
"AVOption--suboption-badge-danger": e.invalid,
|
@@ -22342,26 +22355,26 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22342
22355
|
}])
|
22343
22356
|
}, k(f.value ? `${B(n)(
|
22344
22357
|
"js.components.AVOption.sub_options_select"
|
22345
|
-
)} ${
|
22358
|
+
)} ${w.value}` : `${w.value} ${B(n)(
|
22346
22359
|
"js.components.AVOption.sub_options_select"
|
22347
22360
|
)}`), 3)) : O("", !0)
|
22348
22361
|
])) : O("", !0)
|
22349
22362
|
])) : O("", !0)
|
22350
22363
|
]),
|
22351
|
-
|
22364
|
+
x.value >= 1 ? (p(), H("div", {
|
22352
22365
|
key: 0,
|
22353
22366
|
class: Y({
|
22354
|
-
"AVOption--multivote-aside":
|
22355
|
-
"AVOption--multivote-footer":
|
22356
|
-
"AVOption--singlevote":
|
22367
|
+
"AVOption--multivote-aside": x.value <= 5,
|
22368
|
+
"AVOption--multivote-footer": x.value > 5,
|
22369
|
+
"AVOption--singlevote": x.value === 1
|
22357
22370
|
}),
|
22358
|
-
style: l1(`background-color: ${
|
22371
|
+
style: l1(`background-color: ${x.value === 1 ? "#FFFFFF" : "#f7f7f7"}`)
|
22359
22372
|
}, [
|
22360
|
-
(p(!0), H(
|
22373
|
+
(p(!0), H(t2, null, g2(y.value, (A2) => (p(), H("div", {
|
22361
22374
|
key: A2.toString(),
|
22362
22375
|
class: "AVOption--group"
|
22363
22376
|
}, [
|
22364
|
-
(p(!0), H(
|
22377
|
+
(p(!0), H(t2, null, g2(A2, (k2) => (p(), K(a2, {
|
22365
22378
|
key: k2,
|
22366
22379
|
checked: m.value >= k2,
|
22367
22380
|
rank: o.value ? e.selections.map((C2) => C2.reference).indexOf(e.option.reference) + 1 : null,
|
@@ -22370,19 +22383,19 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22370
22383
|
"option-reference": e.option.reference,
|
22371
22384
|
"check-box-index": k2,
|
22372
22385
|
disabled: e.disabled || e.observerMode,
|
22373
|
-
onToggled: (C2) =>
|
22386
|
+
onToggled: (C2) => F(e.option.reference, k2)
|
22374
22387
|
}, null, 8, ["checked", "rank", "exclusive-error", "invalid", "option-reference", "check-box-index", "disabled", "onToggled"]))), 128))
|
22375
22388
|
]))), 128))
|
22376
22389
|
], 6)) : O("", !0),
|
22377
|
-
|
22378
|
-
I(
|
22390
|
+
A.value && (e.observerMode || e.disabled) ? (p(), H("div", BU, [
|
22391
|
+
I(l2, {
|
22379
22392
|
icon: "user",
|
22380
22393
|
class: "AVOption--realtime-results-icon"
|
22381
22394
|
}),
|
22382
|
-
u("span", null, k(f.value ? `${
|
22383
|
-
|
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 }, [
|
22384
22397
|
jU,
|
22385
|
-
u("span", null, k(`${
|
22398
|
+
u("span", null, k(`${A.value.results.percentage}%`), 1)
|
22386
22399
|
], 64)) : O("", !0)
|
22387
22400
|
])) : O("", !0)
|
22388
22401
|
], 2)
|
@@ -22390,7 +22403,7 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22390
22403
|
]),
|
22391
22404
|
pane: i2(({ toggleCollapse: b2 }) => [
|
22392
22405
|
M.value ? (p(), H("div", $U, [
|
22393
|
-
(p(!0), H(
|
22406
|
+
(p(!0), H(t2, null, g2(g.value, (v2) => (p(), K(h2, {
|
22394
22407
|
key: v2.reference,
|
22395
22408
|
option: v2,
|
22396
22409
|
selections: e.selections,
|
@@ -22400,25 +22413,25 @@ const cI = (e) => (V1("data-v-58afc370"), e = e(), z1(), e), _U = ["id", "href",
|
|
22400
22413
|
"observer-mode": e.observerMode,
|
22401
22414
|
"partial-results": e.partialResults,
|
22402
22415
|
"exclusive-error": v2.exclusive && e.exclusiveError,
|
22403
|
-
onChecked:
|
22416
|
+
onChecked: r2[0] || (r2[0] = (A2) => c("checked", A2)),
|
22404
22417
|
onAccordionOpen: () => b2(!0, !1)
|
22405
22418
|
}, null, 8, ["option", "selections", "contest", "invalid", "disabled", "observer-mode", "partial-results", "exclusive-error", "onAccordionOpen"]))), 128))
|
22406
22419
|
])) : O("", !0)
|
22407
22420
|
]),
|
22408
22421
|
_: 2
|
22409
22422
|
}, [
|
22410
|
-
!e.disabled &&
|
22423
|
+
!e.disabled && A.value && !e.observerMode ? {
|
22411
22424
|
name: "results",
|
22412
22425
|
fn: i2(() => [
|
22413
22426
|
u("div", FU, [
|
22414
|
-
I(
|
22427
|
+
I(l2, {
|
22415
22428
|
icon: "user",
|
22416
22429
|
class: "AVOption--realtime-results-icon"
|
22417
22430
|
}),
|
22418
|
-
u("span", null, k(f.value ? `${
|
22419
|
-
|
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 }, [
|
22420
22433
|
RU,
|
22421
|
-
u("span", null, k(`${
|
22434
|
+
u("span", null, k(`${A.value.results.percentage}%`), 1)
|
22422
22435
|
], 64)) : O("", !0)
|
22423
22436
|
])
|
22424
22437
|
]),
|
@@ -22523,7 +22536,7 @@ const qU = /* @__PURE__ */ X(UU, [["__scopeId", "data-v-58afc370"]]), aI = (e) =
|
|
22523
22536
|
class: "AVBlankOption--realtime-results-icon"
|
22524
22537
|
}),
|
22525
22538
|
u("span", null, k(n.value ? `${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
22526
|
-
e.partialResults.showPercentage ? (p(), H(
|
22539
|
+
e.partialResults.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22527
22540
|
KU,
|
22528
22541
|
u("span", null, k(`${e.partialResults.results.percentage}%`), 1)
|
22529
22542
|
], 64)) : O("", !0)
|
@@ -22536,7 +22549,7 @@ const qU = /* @__PURE__ */ X(UU, [["__scopeId", "data-v-58afc370"]]), aI = (e) =
|
|
22536
22549
|
class: "AVBlankOption--realtime-results-icon"
|
22537
22550
|
}),
|
22538
22551
|
u("span", null, k(n.value ? `${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")} ${e.partialResults.results.count}` : `${e.partialResults.results.count} ${e.partialResults.results.count === 1 ? B(t)("js.components.AVBlankOption.vote_count_singular") : B(t)("js.components.AVBlankOption.vote_count_plural")}`), 1),
|
22539
|
-
e.partialResults.showPercentage ? (p(), H(
|
22552
|
+
e.partialResults.showPercentage ? (p(), H(t2, { key: 0 }, [
|
22540
22553
|
JU,
|
22541
22554
|
u("span", null, k(`${e.partialResults.results.percentage}%`), 1)
|
22542
22555
|
], 64)) : O("", !0)
|
@@ -22624,7 +22637,7 @@ const cq = /* @__PURE__ */ X(eq, [["__scopeId", "data-v-9e7849c2"]]), aq = ["ari
|
|
22624
22637
|
onInput: f[0] || (f[0] = (m) => s(m.target.value))
|
22625
22638
|
}, [
|
22626
22639
|
u("option", lq, k(B(n)("js.components.AVWriteInOption.choose_party")), 1),
|
22627
|
-
(p(!0), H(
|
22640
|
+
(p(!0), H(t2, null, g2(e.parties, (m) => (p(), H("option", {
|
22628
22641
|
key: m.letter,
|
22629
22642
|
value: m.letter,
|
22630
22643
|
selected: m.letter === e.partyValue
|
@@ -22651,7 +22664,7 @@ const cq = /* @__PURE__ */ X(eq, [["__scopeId", "data-v-9e7849c2"]]), aq = ["ari
|
|
22651
22664
|
};
|
22652
22665
|
}
|
22653
22666
|
});
|
22654
|
-
const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) => (V1("data-v-
|
22667
|
+
const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) => (V1("data-v-f0d751c3"), e = e(), z1(), e), vq = { class: "AVSubmissionHelper" }, pq = { key: 1 }, hq = ["textContent"], Vq = /* @__PURE__ */ dq(() => /* @__PURE__ */ u("hr", { class: "AVSubmissionHelper--separator" }, null, -1)), zq = { key: 2 }, gq = { class: "AVSubmissionHelper--help" }, Hq = { key: 0 }, Mq = { key: 1 }, bq = ["innerHTML"], Cq = { key: 3 }, Lq = /* @__PURE__ */ Q({
|
22655
22668
|
__name: "AVSubmissionHelper",
|
22656
22669
|
props: {
|
22657
22670
|
minMarks: {
|
@@ -22696,9 +22709,9 @@ const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) =
|
|
22696
22709
|
},
|
22697
22710
|
{ deep: !0 }
|
22698
22711
|
);
|
22699
|
-
const i = E(() => c.errors.map(
|
22700
|
-
|
22701
|
-
));
|
22712
|
+
const i = E(() => c.errors.map((s) => s.keys ? (Object.keys(s.keys).forEach((r) => {
|
22713
|
+
typeof s.keys[r] == "object" && (s.keys[r] = s.keys[r][n.value]);
|
22714
|
+
}), t(`js.components.AVSubmissionHelper.errors.${s.message}`, s.keys)) : t(`js.components.AVSubmissionHelper.errors.${s.message}`)));
|
22702
22715
|
return (s, r) => (p(), H("div", vq, [
|
22703
22716
|
u("div", {
|
22704
22717
|
class: Y(["AVSubmissionHelper--container", { "AVSubmissionHelper--danger": e.errors.length > 0 }])
|
@@ -22711,7 +22724,7 @@ const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) =
|
|
22711
22724
|
})
|
22712
22725
|
}, k(B(t)("js.components.AVSubmissionHelper.your_vote_weight", { weight: e.weight })), 3)) : O("", !0),
|
22713
22726
|
e.errors.length > 0 ? (p(), H("div", pq, [
|
22714
|
-
(p(!0), H(
|
22727
|
+
(p(!0), H(t2, null, g2(i.value, (l) => (p(), H("div", {
|
22715
22728
|
key: l,
|
22716
22729
|
role: "alert",
|
22717
22730
|
textContent: k(l)
|
@@ -22744,7 +22757,7 @@ const mq = /* @__PURE__ */ X(uq, [["__scopeId", "data-v-9b2049f2"]]), dq = (e) =
|
|
22744
22757
|
]));
|
22745
22758
|
}
|
22746
22759
|
});
|
22747
|
-
const _q = /* @__PURE__ */ X(Lq, [["__scopeId", "data-v-
|
22760
|
+
const _q = /* @__PURE__ */ X(Lq, [["__scopeId", "data-v-f0d751c3"]]);
|
22748
22761
|
function yq(e, c, a) {
|
22749
22762
|
if (typeof a != "function")
|
22750
22763
|
throw new Error("search_by must be a function that returns a string");
|
@@ -22814,7 +22827,7 @@ const Aq = ["aria-label"], Nq = { class: "AVSearchBallot--form-group" }, xq = ["
|
|
22814
22827
|
u("div", kq, [
|
22815
22828
|
T1(u("input", {
|
22816
22829
|
id: "ballot_search",
|
22817
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
22830
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => s.value = b),
|
22818
22831
|
type: "search",
|
22819
22832
|
class: "AVSearchBallot--form-control",
|
22820
22833
|
placeholder: B(t)("js.components.AVSearchBallot.enter_option_name")
|
@@ -22824,28 +22837,28 @@ const Aq = ["aria-label"], Nq = { class: "AVSearchBallot--form-group" }, xq = ["
|
|
22824
22837
|
])
|
22825
22838
|
]),
|
22826
22839
|
u("div", wq, [
|
22827
|
-
(p(!0), H(
|
22828
|
-
key:
|
22829
|
-
"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]
|
22830
22843
|
}, [
|
22831
|
-
l(
|
22844
|
+
l(b).length > 0 ? (p(), H("div", Iq, [
|
22832
22845
|
u("ul", Eq, [
|
22833
|
-
(p(!0), H(
|
22846
|
+
(p(!0), H(t2, null, g2(l(b), (L) => (p(), H("li", {
|
22834
22847
|
key: L.reference,
|
22835
22848
|
class: "AVSeachOptionBallot--breadcrumb-item"
|
22836
22849
|
}, k(L.title[n.value]), 1))), 128))
|
22837
22850
|
])
|
22838
22851
|
])) : O("", !0),
|
22839
22852
|
u("div", {
|
22840
|
-
id: `search_result_${
|
22853
|
+
id: `search_result_${b.reference}`,
|
22841
22854
|
class: "AVSearchBallot--option",
|
22842
22855
|
role: "button",
|
22843
22856
|
"aria-label": B(t)("js.components.AVSearchBallot.aria_labels.go_to_option"),
|
22844
|
-
onClick: S1((L) => m(
|
22857
|
+
onClick: S1((L) => m(b), ["prevent"])
|
22845
22858
|
}, [
|
22846
22859
|
u("span", {
|
22847
22860
|
class: "AVSearchBallot--link",
|
22848
|
-
textContent: k(
|
22861
|
+
textContent: k(b.title[n.value])
|
22849
22862
|
}, null, 8, Oq)
|
22850
22863
|
], 8, Dq)
|
22851
22864
|
], 8, Tq))), 128)),
|
@@ -23117,7 +23130,7 @@ var LW = (
|
|
23117
23130
|
}
|
23118
23131
|
return e.prototype.validate = function(c) {
|
23119
23132
|
var a = [];
|
23120
|
-
return this.referenceMissing(c.optionSelections) && a.push("invalid_reference"), this.tooManySelections(c.optionSelections) && a.push("too_many"), this.blankNotAlone(c.optionSelections, c.explicitBlank) && a.push("blank"), this.exclusiveNotAlone(c.optionSelections) && a.push("exclusive"), a;
|
23133
|
+
return this.referenceMissing(c.optionSelections) && a.push({ message: "invalid_reference" }), this.tooManySelections(c.optionSelections) && a.push({ message: "too_many" }), this.blankNotAlone(c.optionSelections, c.explicitBlank) && a.push({ message: "blank" }), this.exclusiveNotAlone(c.optionSelections) && a.push({ message: "exclusive" }), a.push.apply(a, this.exceededListVotes(c.optionSelections)), a;
|
23121
23134
|
}, e.prototype.isComplete = function(c) {
|
23122
23135
|
var a = c.explicitBlank || this.optionIsExclusive(c) || this.implicitlyBlank(c.optionSelections) || !this.tooFewSelections(c.optionSelections);
|
23123
23136
|
return a && this.validate(c).length == 0;
|
@@ -23152,6 +23165,21 @@ var LW = (
|
|
23152
23165
|
return c.length < this.contest.markingType.minMarks;
|
23153
23166
|
}, e.prototype.tooManySelections = function(c) {
|
23154
23167
|
return c.length > this.contest.markingType.maxMarks;
|
23168
|
+
}, e.prototype.exceededListVotes = function(c) {
|
23169
|
+
var a = this, t = this.recursiveFlattener(this.contest.options), n = t.map(function(s) {
|
23170
|
+
return s != null && s.maxChooseableSuboptions ? s : null;
|
23171
|
+
}), i = [];
|
23172
|
+
return n.forEach(function(s) {
|
23173
|
+
s != null && s.maxChooseableSuboptions && a.selectedChildren(c, [s]) > s.maxChooseableSuboptions && i.push({ message: "exceeded_list_limit", keys: { list_name: s.title, max_list_marks: s.maxChooseableSuboptions } });
|
23174
|
+
}), i;
|
23175
|
+
}, e.prototype.selectedChildren = function(c, a, t) {
|
23176
|
+
var n = this;
|
23177
|
+
return t === void 0 && (t = 0), a && a.forEach(function(i) {
|
23178
|
+
var s, r = (s = i == null ? void 0 : i.children) === null || s === void 0 ? void 0 : s.filter(function(l) {
|
23179
|
+
return n.selectedReferences(c).includes(l.reference);
|
23180
|
+
});
|
23181
|
+
t += (r == null ? void 0 : r.length) || 0, i.children && (t = n.selectedChildren(c, i.children, t));
|
23182
|
+
}), t;
|
23155
23183
|
}, e.prototype.exclusiveNotAlone = function(c) {
|
23156
23184
|
if (this.selectedReferences(c).length < 2)
|
23157
23185
|
return !1;
|
@@ -23211,7 +23239,7 @@ var _W = (
|
|
23211
23239
|
}, e;
|
23212
23240
|
}()
|
23213
23241
|
), yW = nI.default = _W;
|
23214
|
-
const AW = (e) => (V1("data-v-
|
23242
|
+
const AW = (e) => (V1("data-v-a4b04023"), e = e(), z1(), e), NW = ["aria-label", "aria-describedby"], xW = ["id"], kW = /* @__PURE__ */ AW(() => /* @__PURE__ */ u("hr", { class: "AVBallot--separator" }, null, -1)), SW = ["aria-label"], wW = /* @__PURE__ */ Q({
|
23215
23243
|
__name: "AVBallot",
|
23216
23244
|
props: {
|
23217
23245
|
contest: {
|
@@ -23261,80 +23289,82 @@ const AW = (e) => (V1("data-v-7ccc6b9f"), e = e(), z1(), e), NW = ["aria-label",
|
|
23261
23289
|
},
|
23262
23290
|
{ deep: !0 }
|
23263
23291
|
);
|
23264
|
-
const s = e2(!1), r = e2(""), l = e2(""), f = e2(null), o = E(() => a.selectionPile.optionSelections), m = E(() => new tI(a.contest)), d = E(
|
23265
|
-
|
23266
|
-
|
23267
|
-
|
23268
|
-
|
23269
|
-
|
23270
|
-
|
23271
|
-
|
23292
|
+
const s = e2(!1), r = e2(""), l = e2(""), f = e2(null), o = E(() => a.selectionPile.optionSelections), m = E(() => new tI(a.contest)), d = E(
|
23293
|
+
() => a.contest.disregardVoterWeight ? null : a.weight
|
23294
|
+
), h = E(() => {
|
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
|
+
h.value.forEach((F) => {
|
23301
|
+
y.push(...F.validate(a.selectionPile));
|
23272
23302
|
});
|
23273
|
-
const
|
23303
|
+
const A = [
|
23274
23304
|
...m.value.validate(a.selectionPile),
|
23275
|
-
...
|
23305
|
+
...y
|
23276
23306
|
];
|
23277
|
-
if (
|
23278
|
-
let
|
23279
|
-
|
23307
|
+
if (V.value && A.includes("cross_party_voting")) {
|
23308
|
+
let F;
|
23309
|
+
A.includes("exclusive") && (F = A.indexOf("exclusive"), A.splice(F, 1)), A.includes("blank") && (F = A.indexOf("cross_party_voting"), A.splice(F, 1));
|
23280
23310
|
}
|
23281
|
-
return c("update:errors",
|
23282
|
-
}),
|
23283
|
-
var
|
23284
|
-
return (
|
23285
|
-
}),
|
23311
|
+
return c("update:errors", A), A;
|
23312
|
+
}), L = E(() => b.value.length === 0), N = E(() => {
|
23313
|
+
var y;
|
23314
|
+
return (y = a.contest.question) == null ? void 0 : y[i.value];
|
23315
|
+
}), V = E(
|
23286
23316
|
() => {
|
23287
|
-
var
|
23288
|
-
return (
|
23317
|
+
var y;
|
23318
|
+
return (y = a.contest.customRulesets) == null ? void 0 : y.includes("belgian_ballot_rules");
|
23289
23319
|
}
|
23290
|
-
),
|
23291
|
-
(
|
23292
|
-
)),
|
23293
|
-
s2(
|
23294
|
-
var
|
23295
|
-
|
23320
|
+
), g = E(() => a.contest.randomizeOptions ? a.contest.options.slice().sort(() => Math.random() - 0.5) : a.contest.options), _ = E(() => C(a.contest.options).some(
|
23321
|
+
(y) => y.exclusive
|
23322
|
+
)), M = E(() => a.contest);
|
23323
|
+
s2(M, (y, A) => {
|
23324
|
+
var F;
|
23325
|
+
A && y && y.reference !== A.reference && ((F = document.getElementById("content")) == null || F.focus(), A.searchForm && (f.value.value = ""));
|
23296
23326
|
});
|
23297
|
-
const
|
23327
|
+
const x = () => {
|
23298
23328
|
c("update:selectionPile", {
|
23299
23329
|
...a.selectionPile,
|
23300
23330
|
explicitBlank: !a.selectionPile.explicitBlank
|
23301
23331
|
});
|
23302
|
-
},
|
23303
|
-
const
|
23304
|
-
(
|
23332
|
+
}, w = ({ reference: y, amount: A }) => {
|
23333
|
+
const F = o.value.filter(
|
23334
|
+
(R) => R.reference === y
|
23305
23335
|
).length;
|
23306
|
-
|
23307
|
-
const
|
23308
|
-
(
|
23336
|
+
A === F && (A = A - 1);
|
23337
|
+
const W = o.value.filter(
|
23338
|
+
(R) => R.reference !== y
|
23309
23339
|
);
|
23310
|
-
for (let
|
23311
|
-
|
23340
|
+
for (let R = 0; R < A; R++)
|
23341
|
+
W.push({ reference: y });
|
23312
23342
|
c("update:selectionPile", {
|
23313
23343
|
...a.selectionPile,
|
23314
|
-
optionSelections:
|
23344
|
+
optionSelections: W
|
23315
23345
|
});
|
23316
|
-
},
|
23317
|
-
return (
|
23318
|
-
const
|
23346
|
+
}, C = (y, A) => y.flatMap((F) => (A && (F.parentContent = A), F.children ? [F, ...C(F.children, F)] : [F]));
|
23347
|
+
return (y, A) => {
|
23348
|
+
const F = D("AVSearchBallot"), W = D("AVWriteInOption"), R = D("AVOption"), j = D("AVBlankOption"), r2 = D("AVSubmissionHelper");
|
23319
23349
|
return p(), H("div", {
|
23320
23350
|
class: Y({
|
23321
23351
|
AVBallot: !0,
|
23322
|
-
"AVBallot--error": !
|
23352
|
+
"AVBallot--error": !L.value
|
23323
23353
|
}),
|
23324
23354
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot"),
|
23325
23355
|
"aria-describedby": `ballot_${e.contest.reference}`
|
23326
23356
|
}, [
|
23327
|
-
|
23357
|
+
N.value ? (p(), H("h5", {
|
23328
23358
|
key: 0,
|
23329
23359
|
id: `ballot_${e.contest.reference}_question`,
|
23330
23360
|
class: "AVBallot--question",
|
23331
23361
|
"aria-live": "polite"
|
23332
|
-
}, k(
|
23333
|
-
e.contest.searchForm && !e.disabled && !e.observerMode ? (p(), K(
|
23362
|
+
}, k(N.value), 9, xW)) : O("", !0),
|
23363
|
+
e.contest.searchForm && !e.disabled && !e.observerMode ? (p(), K(F, {
|
23334
23364
|
key: 1,
|
23335
23365
|
ref_key: "search",
|
23336
23366
|
ref: f,
|
23337
|
-
options:
|
23367
|
+
options: C(g.value),
|
23338
23368
|
"options-container-id": "ballot_options"
|
23339
23369
|
}, null, 8, ["options"])) : O("", !0),
|
23340
23370
|
kW,
|
@@ -23342,67 +23372,67 @@ const AW = (e) => (V1("data-v-7ccc6b9f"), e = e(), z1(), e), NW = ["aria-label",
|
|
23342
23372
|
id: "ballot_options",
|
23343
23373
|
class: Y({
|
23344
23374
|
"AVBallot--options": !0,
|
23345
|
-
"AVBallot--options-with-list":
|
23346
|
-
(
|
23375
|
+
"AVBallot--options-with-list": g.value.some(
|
23376
|
+
(l2) => l2.children
|
23347
23377
|
)
|
23348
23378
|
}),
|
23349
23379
|
"aria-label": B(n)("js.components.AVBallot.aria_labels.ballot_options")
|
23350
23380
|
}, [
|
23351
|
-
(p(!0), H(
|
23352
|
-
key:
|
23381
|
+
(p(!0), H(t2, null, g2(g.value, (l2) => (p(), H(t2, {
|
23382
|
+
key: l2.reference
|
23353
23383
|
}, [
|
23354
|
-
|
23384
|
+
l2.writeIn ? (p(), K(W, {
|
23355
23385
|
key: 0,
|
23356
23386
|
"candidate-value": l.value,
|
23357
|
-
"onUpdate:candidateValue":
|
23387
|
+
"onUpdate:candidateValue": A[0] || (A[0] = (a2) => l.value = a2),
|
23358
23388
|
"party-value": r.value,
|
23359
|
-
"onUpdate:partyValue":
|
23389
|
+
"onUpdate:partyValue": A[1] || (A[1] = (a2) => r.value = a2),
|
23360
23390
|
"checked-value": s.value,
|
23361
|
-
"onUpdate:checkedValue":
|
23391
|
+
"onUpdate:checkedValue": A[2] || (A[2] = (a2) => s.value = a2),
|
23362
23392
|
parties: [],
|
23363
23393
|
disabled: e.disabled,
|
23364
23394
|
observerMode: e.observerMode
|
23365
|
-
}, null, 8, ["candidate-value", "party-value", "checked-value", "parties", "disabled", "observerMode"])) : (p(), K(
|
23395
|
+
}, null, 8, ["candidate-value", "party-value", "checked-value", "parties", "disabled", "observerMode"])) : (p(), K(R, {
|
23366
23396
|
key: 1,
|
23367
23397
|
selections: o.value,
|
23368
|
-
option:
|
23369
|
-
invalid: !
|
23370
|
-
"exclusive-error": !
|
23398
|
+
option: l2,
|
23399
|
+
invalid: !L.value,
|
23400
|
+
"exclusive-error": !V.value && l2.exclusive && b.value.includes("exclusive"),
|
23371
23401
|
contest: e.contest,
|
23372
23402
|
disabled: e.disabled,
|
23373
23403
|
observerMode: e.observerMode,
|
23374
23404
|
"partial-results": e.partialResults,
|
23375
|
-
onChecked:
|
23405
|
+
onChecked: w
|
23376
23406
|
}, null, 8, ["selections", "option", "invalid", "exclusive-error", "contest", "disabled", "observerMode", "partial-results"]))
|
23377
23407
|
], 64))), 128)),
|
23378
|
-
e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(
|
23408
|
+
e.contest.markingType.blankSubmission === "active_choice" ? (p(), K(j, {
|
23379
23409
|
key: 0,
|
23380
23410
|
checked: e.selectionPile.explicitBlank,
|
23381
|
-
error: !
|
23411
|
+
error: !V.value && b.value.includes("blank"),
|
23382
23412
|
disabled: e.disabled,
|
23383
|
-
invalid: !
|
23413
|
+
invalid: !L.value,
|
23384
23414
|
observerMode: e.observerMode,
|
23385
23415
|
accentColor: e.contest.blankOptionColor,
|
23386
23416
|
"partial-results": e.partialResults ? e.partialResults.blank : null,
|
23387
|
-
onToggleBlank:
|
23417
|
+
onToggleBlank: x
|
23388
23418
|
}, null, 8, ["checked", "error", "disabled", "invalid", "observerMode", "accentColor", "partial-results"])) : O("", !0)
|
23389
23419
|
], 10, SW),
|
23390
|
-
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), K(
|
23420
|
+
e.showSubmissionHelper && !e.disabled && !e.observerMode ? (p(), K(r2, {
|
23391
23421
|
key: 2,
|
23392
23422
|
id: `ballot_${e.contest.reference}`,
|
23393
23423
|
"chosen-count": o.value.length,
|
23394
|
-
errors:
|
23395
|
-
weight:
|
23424
|
+
errors: b.value,
|
23425
|
+
weight: d.value,
|
23396
23426
|
"min-marks": e.contest.markingType.minMarks,
|
23397
23427
|
"max-marks": e.contest.markingType.maxMarks,
|
23398
|
-
"has-exclusive-options":
|
23428
|
+
"has-exclusive-options": _.value,
|
23399
23429
|
class: "AVBallot--helper"
|
23400
23430
|
}, null, 8, ["id", "chosen-count", "errors", "weight", "min-marks", "max-marks", "has-exclusive-options"])) : O("", !0)
|
23401
23431
|
], 10, NW);
|
23402
23432
|
};
|
23403
23433
|
}
|
23404
23434
|
});
|
23405
|
-
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-
|
23435
|
+
const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-a4b04023"]]), IW = (e) => (V1("data-v-b3274830"), e = e(), z1(), e), EW = {
|
23406
23436
|
key: 0,
|
23407
23437
|
class: "AVPileSummary--summary"
|
23408
23438
|
}, DW = {
|
@@ -23470,18 +23500,18 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-7ccc6b9f"]]), IW = (e) =
|
|
23470
23500
|
const s = e2(!1), r = e2([]), l = E(() => a.selectionPile.optionSelections.length === 0), f = E(() => !a.maximumOptionsShown || s.value ? a.selectionPile.optionSelections : a.selectionPile.optionSelections.slice(
|
23471
23501
|
0,
|
23472
23502
|
a.maximumOptionsShown
|
23473
|
-
)), o = E(() => a.selectionPile.optionSelections.length - f.value.length), m = (
|
23474
|
-
L && (
|
23475
|
-
(
|
23503
|
+
)), o = E(() => a.selectionPile.optionSelections.length - f.value.length), m = (b, L) => {
|
23504
|
+
L && (b.parentContent = L), b.selectable && r.value.push(b), b.children && b.children.map(
|
23505
|
+
(N) => m(N, b)
|
23476
23506
|
);
|
23477
|
-
}, d = (
|
23478
|
-
const
|
23507
|
+
}, d = (b, L) => b && b.parentContent ? (L.push(b.parentContent), d(b.parentContent, L)) : L, h = E(() => {
|
23508
|
+
const b = {
|
23479
23509
|
options: [],
|
23480
23510
|
writeIns: []
|
23481
23511
|
};
|
23482
23512
|
return f.value.forEach((L) => {
|
23483
23513
|
if (L.text)
|
23484
|
-
|
23514
|
+
b.writeIns.push({
|
23485
23515
|
partyLetter: "?",
|
23486
23516
|
// TODO: Figure out how this party stuff is supposed to work
|
23487
23517
|
partyName: "?",
|
@@ -23489,27 +23519,27 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-7ccc6b9f"]]), IW = (e) =
|
|
23489
23519
|
candidateName: L.text
|
23490
23520
|
});
|
23491
23521
|
else {
|
23492
|
-
const
|
23522
|
+
const N = b.options.find(
|
23493
23523
|
(g) => g.handle === L.reference
|
23494
23524
|
);
|
23495
23525
|
a.contest.options.map((g) => m(g));
|
23496
23526
|
const V = r.value.find(
|
23497
23527
|
(g) => g.reference === L.reference
|
23498
23528
|
);
|
23499
|
-
|
23529
|
+
N ? N.crosses += 1 : b.options.push({
|
23500
23530
|
title: V.title[i.value],
|
23501
23531
|
handle: L.reference,
|
23502
23532
|
image: V.image,
|
23503
23533
|
crosses: 1,
|
23504
23534
|
parent: V.parentContent,
|
23505
|
-
rank: a.contest.markingType.voteVariation === "ranked" ?
|
23535
|
+
rank: a.contest.markingType.voteVariation === "ranked" ? b.options.length + 1 : null
|
23506
23536
|
});
|
23507
23537
|
}
|
23508
23538
|
r.value = [];
|
23509
|
-
}),
|
23539
|
+
}), b;
|
23510
23540
|
});
|
23511
|
-
return (
|
23512
|
-
const
|
23541
|
+
return (b, L) => {
|
23542
|
+
const N = D("AVSummaryOption"), V = D("AVIcon");
|
23513
23543
|
return e.activeState === "summary" ? (p(), H("div", EW, [
|
23514
23544
|
e.contest.markingType.maxPiles !== 1 ? (p(), H("header", DW, [
|
23515
23545
|
u("span", null, k(B(n)("js.components.AVPileSummary.selection")) + " " + k(e.pileIndex + 1) + " / " + k(e.totalPiles), 1),
|
@@ -23518,13 +23548,13 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-7ccc6b9f"]]), IW = (e) =
|
|
23518
23548
|
u("span", null, k(B(n)("js.components.AVPileSummary.selection")), 1)
|
23519
23549
|
])),
|
23520
23550
|
u("div", BW, [
|
23521
|
-
(p(!0), H(
|
23522
|
-
key:
|
23551
|
+
(p(!0), H(t2, null, g2(h.value.options, (g, _) => (p(), K(N, {
|
23552
|
+
key: _,
|
23523
23553
|
option: g,
|
23524
23554
|
"multiple-votes-allowed": e.contest.markingType.votesAllowedPerOption > 1,
|
23525
23555
|
parents: d(g.parent, g.parent ? [g.parent] : [])
|
23526
23556
|
}, null, 8, ["option", "multiple-votes-allowed", "parents"]))), 128)),
|
23527
|
-
l.value ? (p(), K(
|
23557
|
+
l.value ? (p(), K(N, {
|
23528
23558
|
key: 0,
|
23529
23559
|
blank: l.value
|
23530
23560
|
}, null, 8, ["blank"])) : O("", !0)
|
@@ -23545,12 +23575,12 @@ const TW = /* @__PURE__ */ X(wW, [["__scopeId", "data-v-7ccc6b9f"]]), IW = (e) =
|
|
23545
23575
|
], 8, RW),
|
23546
23576
|
u("div", qW, [
|
23547
23577
|
l.value ? (p(), H("p", WW, k(B(n)("js.components.AVPileSummary.blank")), 1)) : O("", !0),
|
23548
|
-
(p(!0), H(
|
23549
|
-
key:
|
23578
|
+
(p(!0), H(t2, null, g2(h.value.options, (g, _) => (p(), H("p", {
|
23579
|
+
key: _,
|
23550
23580
|
class: "AVPileSummary--assign-text"
|
23551
23581
|
}, k(g.rank ? `${g.rank}: ` : "") + k(g.title), 1))), 128)),
|
23552
|
-
(p(!0), H(
|
23553
|
-
key:
|
23582
|
+
(p(!0), H(t2, null, g2(h.value.writeIns, (g, _) => (p(), H("p", {
|
23583
|
+
key: _,
|
23554
23584
|
class: "AVPileSummary--assign-text"
|
23555
23585
|
}, [
|
23556
23586
|
u("b", null, k(g.partyLetter) + " - " + k(g.partyName), 1),
|
@@ -23618,7 +23648,7 @@ var KW = C9, ZW = (
|
|
23618
23648
|
return c.piles.forEach(function(n) {
|
23619
23649
|
a = ti(ti([], a, !0), t.validate(n), !0);
|
23620
23650
|
}), c.piles.forEach(function(n) {
|
23621
|
-
t.isComplete(n) || a.push("A selection is not complete");
|
23651
|
+
t.isComplete(n) || a.push({ message: "A selection is not complete" });
|
23622
23652
|
}), a;
|
23623
23653
|
}, e.prototype.allWeightUsed = function(c) {
|
23624
23654
|
return this.voterWeight === c.piles.reduce(function(a, t) {
|
@@ -23691,7 +23721,7 @@ const eG = {
|
|
23691
23721
|
), l = e2([]), f = E(() => e.contestSelection.piles), o = E(
|
23692
23722
|
() => {
|
23693
23723
|
var R;
|
23694
|
-
return (R = f.value) == null ? void 0 : R.reduce((j,
|
23724
|
+
return (R = f.value) == null ? void 0 : R.reduce((j, r2) => j - r2.multiplier, e.weight);
|
23695
23725
|
}
|
23696
23726
|
), m = E(
|
23697
23727
|
() => new tI(e.contest)
|
@@ -23702,19 +23732,19 @@ const eG = {
|
|
23702
23732
|
})
|
23703
23733
|
), h = E(() => o.value === 0 && l.value.length == 0 && f.value.every(
|
23704
23734
|
(R) => m.value.isComplete(R)
|
23705
|
-
)),
|
23735
|
+
)), b = E(
|
23706
23736
|
() => {
|
23707
23737
|
var R;
|
23708
|
-
return (R = f.value) == null ? void 0 : R.reduce((j,
|
23738
|
+
return (R = f.value) == null ? void 0 : R.reduce((j, r2) => j + r2.multiplier, 0);
|
23709
23739
|
}
|
23710
23740
|
), L = E(() => {
|
23711
23741
|
var R;
|
23712
23742
|
return (R = s.value) == null ? void 0 : R.multiplier;
|
23713
|
-
}),
|
23743
|
+
}), N = E(
|
23714
23744
|
() => f.value.filter((R, j) => j !== i.value).reduce((R, j) => R - j.multiplier, e.weight)
|
23715
23745
|
), V = E(
|
23716
23746
|
() => e.contest.markingType.maxPiles !== 1 && e.weight > 1
|
23717
|
-
), g = E(() => i.value !== null),
|
23747
|
+
), g = E(() => i.value !== null), _ = (R) => m.value.isComplete(R), M = (R) => m.value.validate(R).length > 0, x = () => {
|
23718
23748
|
if (V.value) {
|
23719
23749
|
const R = [...f.value];
|
23720
23750
|
i.value === null ? R.push({ ...s.value }) : R.splice(i.value, 1, {
|
@@ -23728,46 +23758,46 @@ const eG = {
|
|
23728
23758
|
...e.contestSelection,
|
23729
23759
|
piles: [s.value]
|
23730
23760
|
});
|
23731
|
-
},
|
23732
|
-
s.value = R, V.value ||
|
23733
|
-
},
|
23761
|
+
}, w = (R) => {
|
23762
|
+
s.value = R, V.value || x();
|
23763
|
+
}, C = () => {
|
23734
23764
|
s.value = {
|
23735
23765
|
optionSelections: [],
|
23736
|
-
multiplier:
|
23766
|
+
multiplier: N.value,
|
23737
23767
|
explicitBlank: !1
|
23738
23768
|
}, i.value = null, r.value = "ballot";
|
23739
|
-
},
|
23769
|
+
}, y = (R) => {
|
23740
23770
|
f.value.splice(R, 1);
|
23741
|
-
},
|
23771
|
+
}, A = (R) => {
|
23742
23772
|
s.value = { ...f.value[R] }, i.value = R, r.value = "ballot";
|
23743
|
-
},
|
23773
|
+
}, F = (R) => {
|
23744
23774
|
l.value = R;
|
23745
23775
|
};
|
23746
23776
|
return s2(h, (R) => c("update:complete", R)), s2(L, () => {
|
23747
23777
|
s.value && (s.value.multiplier = Math.max(
|
23748
23778
|
0,
|
23749
|
-
Math.min(L.value,
|
23779
|
+
Math.min(L.value, N.value)
|
23750
23780
|
));
|
23751
23781
|
}), s2(s, (R) => {
|
23752
23782
|
c("update:activePile", R);
|
23753
23783
|
}), s2(r, (R) => c("update:activeState", R)), M2(() => {
|
23754
|
-
e.locale && d2(e.locale), c("update:activePile", s.value), c("update:activeState", r.value), c("update:complete", h.value), V.value ||
|
23784
|
+
e.locale && d2(e.locale), c("update:activePile", s.value), c("update:activeState", r.value), c("update:complete", h.value), V.value || x();
|
23755
23785
|
}), (R, j) => {
|
23756
23786
|
var b2;
|
23757
|
-
const
|
23758
|
-
return p(), H(
|
23787
|
+
const r2 = D("AVSplitWizardHeader"), l2 = D("AVBallot"), a2 = D("AVPileSummary"), h2 = D("AVSplitWeightHelper"), F2 = D("AVIcon");
|
23788
|
+
return p(), H(t2, null, [
|
23759
23789
|
u("h3", eG, k(e.contest.title[n.value]), 1),
|
23760
23790
|
u("div", {
|
23761
23791
|
class: "AVSplitHelper--description",
|
23762
23792
|
innerHTML: (b2 = e.contest.description) == null ? void 0 : b2[n.value]
|
23763
23793
|
}, null, 8, cG),
|
23764
|
-
V.value ? (p(), H(
|
23765
|
-
["ballot", "assign", "overview"].includes(r.value) ? (p(), K(
|
23794
|
+
V.value ? (p(), H(t2, { key: 0 }, [
|
23795
|
+
["ballot", "assign", "overview"].includes(r.value) ? (p(), K(r2, {
|
23766
23796
|
key: 0,
|
23767
23797
|
"active-selection-pile-index": i.value,
|
23768
23798
|
"active-state": r.value,
|
23769
23799
|
"selection-piles": f.value,
|
23770
|
-
"total-weight":
|
23800
|
+
"total-weight": b.value + o.value,
|
23771
23801
|
"is-editing": g.value
|
23772
23802
|
}, null, 8, ["active-selection-pile-index", "active-state", "selection-piles", "total-weight", "is-editing"])) : O("", !0),
|
23773
23803
|
I(w1, {
|
@@ -23778,15 +23808,15 @@ const eG = {
|
|
23778
23808
|
var v2, A2, k2;
|
23779
23809
|
return [
|
23780
23810
|
s.value && r.value === "ballot" ? (p(), H("div", { key: i.value }, [
|
23781
|
-
I(
|
23811
|
+
I(l2, {
|
23782
23812
|
class: "AVSplitHelper--ballot",
|
23783
23813
|
"selection-pile": s.value,
|
23784
23814
|
"partial-results": e.partialResults,
|
23785
23815
|
contest: e.contest,
|
23786
23816
|
weight: e.weight,
|
23787
23817
|
"show-submission-helper": e.showSubmissionHelper,
|
23788
|
-
"onUpdate:selectionPile":
|
23789
|
-
"onUpdate:errors": j[0] || (j[0] = (C2) =>
|
23818
|
+
"onUpdate:selectionPile": w,
|
23819
|
+
"onUpdate:errors": j[0] || (j[0] = (C2) => F(C2))
|
23790
23820
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "show-submission-helper"]),
|
23791
23821
|
u("div", aG, [
|
23792
23822
|
u("div", tG, [
|
@@ -23800,7 +23830,7 @@ const eG = {
|
|
23800
23830
|
u("button", {
|
23801
23831
|
key: "assign",
|
23802
23832
|
class: "AVSplitHelper--btn-primary",
|
23803
|
-
disabled: !
|
23833
|
+
disabled: !_(s.value) || M(s.value),
|
23804
23834
|
onClick: j[2] || (j[2] = (C2) => r.value = "assign")
|
23805
23835
|
}, k(B(t)("js.components.AVSplitHelper.ballot.confirm_button")), 9, iG)
|
23806
23836
|
])
|
@@ -23808,7 +23838,7 @@ const eG = {
|
|
23808
23838
|
])) : r.value === "assign" ? (p(), H("div", sG, [
|
23809
23839
|
u("div", rG, [
|
23810
23840
|
u("h4", lG, k(B(t)("js.components.AVSplitHelper.assign.split_question")), 1),
|
23811
|
-
I(
|
23841
|
+
I(a2, {
|
23812
23842
|
"selection-pile": s.value,
|
23813
23843
|
contest: e.contest,
|
23814
23844
|
"maximum-options-shown": 3,
|
@@ -23829,13 +23859,13 @@ const eG = {
|
|
23829
23859
|
"onUpdate:modelValue": j[4] || (j[4] = (C2) => s.value.multiplier = C2),
|
23830
23860
|
class: "AVSplitHelper--assign-input",
|
23831
23861
|
type: "number",
|
23832
|
-
max:
|
23862
|
+
max: N.value
|
23833
23863
|
}, null, 8, fG), [
|
23834
23864
|
[li, s.value.multiplier]
|
23835
23865
|
])
|
23836
23866
|
]),
|
23837
23867
|
I(h2, {
|
23838
|
-
"assigned-weight":
|
23868
|
+
"assigned-weight": b.value,
|
23839
23869
|
"unused-weight": o.value,
|
23840
23870
|
"active-assigned": (v2 = f.value[i.value]) == null ? void 0 : v2.multiplier
|
23841
23871
|
}, null, 8, ["assigned-weight", "unused-weight", "active-assigned"]),
|
@@ -23851,8 +23881,8 @@ const eG = {
|
|
23851
23881
|
u("button", {
|
23852
23882
|
key: "confirm",
|
23853
23883
|
class: "AVSplitHelper--btn-primary",
|
23854
|
-
disabled: ((A2 = s.value) == null ? void 0 : A2.multiplier) < 1 || ((k2 = s.value) == null ? void 0 : k2.multiplier) >
|
23855
|
-
onClick: j[6] || (j[6] = (C2) =>
|
23884
|
+
disabled: ((A2 = s.value) == null ? void 0 : A2.multiplier) < 1 || ((k2 = s.value) == null ? void 0 : k2.multiplier) > N.value,
|
23885
|
+
onClick: j[6] || (j[6] = (C2) => x())
|
23856
23886
|
}, k(B(t)("js.components.AVSplitHelper.assign.confirm_button")), 9, vG)
|
23857
23887
|
])
|
23858
23888
|
])
|
@@ -23872,24 +23902,24 @@ const eG = {
|
|
23872
23902
|
key: "newSelection",
|
23873
23903
|
class: "AVSplitHelper--overview-new-ballot-btn",
|
23874
23904
|
disabled: o.value === 0,
|
23875
|
-
onClick:
|
23905
|
+
onClick: C
|
23876
23906
|
}, [
|
23877
23907
|
I(F2, { icon: "file-circle-plus" }),
|
23878
23908
|
D2(" " + k(B(t)("js.components.AVSplitHelper.overview.new_ballot_selection")), 1)
|
23879
23909
|
], 8, gG)
|
23880
23910
|
])),
|
23881
|
-
(p(!0), H(
|
23911
|
+
(p(!0), H(t2, null, g2(f.value, (C2, I2) => (p(), H("article", {
|
23882
23912
|
key: `preview-${I2}`,
|
23883
|
-
onClick: (j2) =>
|
23913
|
+
onClick: (j2) => A(I2)
|
23884
23914
|
}, [
|
23885
|
-
I(
|
23915
|
+
I(a2, {
|
23886
23916
|
"selection-pile": C2,
|
23887
23917
|
contest: e.contest,
|
23888
23918
|
"maximum-options-shown": 3,
|
23889
23919
|
"active-state": r.value,
|
23890
23920
|
"pile-index": I2,
|
23891
23921
|
"total-piles": e.contestSelection.piles.length,
|
23892
|
-
onDeleteSelection: (j2) =>
|
23922
|
+
onDeleteSelection: (j2) => y(I2)
|
23893
23923
|
}, null, 8, ["selection-pile", "contest", "active-state", "pile-index", "total-piles", "onDeleteSelection"])
|
23894
23924
|
], 8, HG))), 128))
|
23895
23925
|
])) : O("", !0)
|
@@ -23897,7 +23927,7 @@ const eG = {
|
|
23897
23927
|
}),
|
23898
23928
|
_: 1
|
23899
23929
|
})
|
23900
|
-
], 64)) : (p(), K(
|
23930
|
+
], 64)) : (p(), K(l2, {
|
23901
23931
|
key: 1,
|
23902
23932
|
class: "AVSplitHelper--no-split",
|
23903
23933
|
"selection-pile": s.value,
|
@@ -23905,8 +23935,8 @@ const eG = {
|
|
23905
23935
|
contest: e.contest,
|
23906
23936
|
weight: e.weight,
|
23907
23937
|
"show-submission-helper": e.showSubmissionHelper,
|
23908
|
-
"onUpdate:selectionPile":
|
23909
|
-
"onUpdate:errors": j[7] || (j[7] = (v2) =>
|
23938
|
+
"onUpdate:selectionPile": w,
|
23939
|
+
"onUpdate:errors": j[7] || (j[7] = (v2) => F(v2))
|
23910
23940
|
}, null, 8, ["selection-pile", "partial-results", "contest", "weight", "show-submission-helper"]))
|
23911
23941
|
], 64);
|
23912
23942
|
};
|
@@ -23948,7 +23978,7 @@ var CG = {}, LG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), _G = { clas
|
|
23948
23978
|
], -1);
|
23949
23979
|
function xG(e, c) {
|
23950
23980
|
var a = D("AVNavbarItem"), t = D("AVNavigationItemList"), n = D("AVMenuDropdown"), i = D("AVNavbar"), s = D("AVLabel"), r = D("AVTabSwitcher"), l = D("AVSidebarItem"), f = D("AVButton"), o = D("AVSidebar"), m = D("AVContent"), d = D("AVFooter");
|
23951
|
-
return p(), H(
|
23981
|
+
return p(), H(t2, null, [
|
23952
23982
|
I(i, null, {
|
23953
23983
|
default: i2(function() {
|
23954
23984
|
return [
|
@@ -24144,7 +24174,7 @@ var SG = {}, wG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), TG = { clas
|
|
24144
24174
|
], -1);
|
24145
24175
|
function PG(e, c) {
|
24146
24176
|
var a = D("AVNavbarItem"), t = D("AVNavigationItemList"), n = D("AVMenuDropdown"), i = D("AVNavbar"), s = D("AVLabel"), r = D("AVTabSwitcher"), l = D("AVSidebarItem"), f = D("AVButton"), o = D("AVSidebar"), m = D("AVContent"), d = D("AVFooter");
|
24147
|
-
return p(), H(
|
24177
|
+
return p(), H(t2, null, [
|
24148
24178
|
I(i, null, {
|
24149
24179
|
default: i2(function() {
|
24150
24180
|
return [
|
@@ -24281,7 +24311,7 @@ var jG = {}, FG = /* @__PURE__ */ u("a", { href: "#" }, "LOGO", -1), RG = { clas
|
|
24281
24311
|
], -1);
|
24282
24312
|
function UG(e, c) {
|
24283
24313
|
var a = D("AVNavbarItem"), t = D("AVNavigationItemList"), n = D("AVMenuDropdown"), i = D("AVNavbar"), s = D("AVContent"), r = D("AVFooter");
|
24284
|
-
return p(), H(
|
24314
|
+
return p(), H(t2, null, [
|
24285
24315
|
I(i, null, {
|
24286
24316
|
default: i2(function() {
|
24287
24317
|
return [
|
@@ -24414,7 +24444,7 @@ const qG = /* @__PURE__ */ X(jG, [["render", UG]]), B6 = (e) => (V1("data-v-20fc
|
|
24414
24444
|
];
|
24415
24445
|
return (a, t) => {
|
24416
24446
|
const n = D("AVNavbarItem"), i = D("AVNavigationItemList"), s = D("AVMenuDropdown"), r = D("AVNavbar"), l = D("AVIcon"), f = D("AVCard"), o = D("AVElectionCard"), m = D("AVContent"), d = D("AVFooter");
|
24417
|
-
return p(), H(
|
24447
|
+
return p(), H(t2, null, [
|
24418
24448
|
I(r, null, {
|
24419
24449
|
default: i2(() => [
|
24420
24450
|
WG,
|
@@ -24484,7 +24514,7 @@ const qG = /* @__PURE__ */ X(jG, [["render", UG]]), B6 = (e) => (V1("data-v-20fc
|
|
24484
24514
|
ZG,
|
24485
24515
|
JG
|
24486
24516
|
])) : O("", !0),
|
24487
|
-
(p(), H(
|
24517
|
+
(p(), H(t2, null, g2(c, (h) => I(o, {
|
24488
24518
|
key: h.id,
|
24489
24519
|
id: h.id,
|
24490
24520
|
name: h.name,
|