@avenirs-esr/avenirs-dsav 0.1.97 → 0.1.98
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/avenirs-dsav.css +1 -1
- package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +97 -18
- package/dist/components/interaction/buttons/AvButton/AvButton.vue.d.ts +5 -7
- package/dist/components/interaction/buttons/AvRichButton/AvRichButton.vue.d.ts +5 -7
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +735 -737
- package/dist/test-utils.cjs.js +7 -7
- package/dist/test-utils.es.js +25 -13
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, useCssVars as se, computed as b, createElementBlock as I, openBlock as u, normalizeStyle as ce, normalizeClass as j, unref as l, createElementVNode as g, toDisplayString as B, createPropsRestProxy as Da, createBlock as
|
|
1
|
+
import { defineComponent as Q, useCssVars as se, computed as b, createElementBlock as I, openBlock as u, normalizeStyle as ce, normalizeClass as j, unref as l, createElementVNode as g, toDisplayString as B, createPropsRestProxy as Da, createBlock as p, resolveDynamicComponent as Me, mergeProps as ee, withCtx as G, createCommentVNode as D, createVNode as W, Fragment as $, renderList as ie, useSlots as fe, createTextVNode as De, renderSlot as P, ref as U, normalizeProps as La, withDirectives as It, vShow as Yt, TransitionGroup as wa, toRefs as qt, watch as re, onBeforeUnmount as gt, inject as tt, toRef as Ft, onMounted as de, provide as bt, onUnmounted as ve, nextTick as at, getCurrentScope as Oa, onScopeDispose as Sa, getCurrentInstance as ht, hasInjectionContext as yt, isRef as Ct, toValue as le, shallowRef as ye, reactive as ut, watchEffect as Qa, withModifiers as ue, mergeModels as ge, useModel as Le, vModelCheckbox as xa, withKeys as Ae, createSlots as qe, useTemplateRef as pa, resolveComponent as Mt, Teleport as Kt, Comment as ka, cloneVNode as ja } from "vue";
|
|
2
2
|
import { r as Gt } from "./injection-key.es.js";
|
|
3
3
|
const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
4
4
|
__name: "AvBadge",
|
|
@@ -18,10 +18,10 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
18
18
|
v23262b39: i.borderColor
|
|
19
19
|
}));
|
|
20
20
|
const t = b(() => {
|
|
21
|
-
var i,
|
|
22
|
-
return (i = e.icon) != null && i.startsWith("data:") ? null : (
|
|
21
|
+
var i, r;
|
|
22
|
+
return (i = e.icon) != null && i.startsWith("data:") ? null : (r = e.icon) == null ? void 0 : r.replace(":", "-");
|
|
23
23
|
}), a = b(() => `--icon-${t.value}`), n = b(() => t.value ? { "--icon-path": `var(${a.value})` } : e.icon ? { "--icon-path": `url(${e.icon})` } : {});
|
|
24
|
-
return (i,
|
|
24
|
+
return (i, r) => (u(), I("p", {
|
|
25
25
|
class: j(["av-badge", {
|
|
26
26
|
"av-badge--sm": e.small,
|
|
27
27
|
"av-badge--custom-icon": e.icon,
|
|
@@ -61,7 +61,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
61
61
|
v7f7f664e: i.color
|
|
62
62
|
}));
|
|
63
63
|
const t = b(() => `${e.size}rem`), a = b(() => e.name.replace(":", "-")), n = b(() => `--icon-${a.value}`);
|
|
64
|
-
return (i,
|
|
64
|
+
return (i, r) => (u(), I("div", {
|
|
65
65
|
class: j(["av-icon", {
|
|
66
66
|
"av-icon--spin": e.animation === "spin",
|
|
67
67
|
"av-icon--wrench": e.animation === "wrench",
|
|
@@ -232,7 +232,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
232
232
|
const t = Da(e, ["label", "tagName", "icon", "disabled", "small", "iconOnly"]), a = b(() => e.disabled && e.tagName === "p" || t.selectable ? "button" : e.tagName), n = b(() => ({
|
|
233
233
|
"--icon-path": `url(${me.MDI_CHECK_CIRCLE_OUTLINE})`
|
|
234
234
|
}));
|
|
235
|
-
return (i,
|
|
235
|
+
return (i, r) => (u(), p(Me(l(a)), ee({
|
|
236
236
|
class: ["av-tag", {
|
|
237
237
|
"av-tag--sm": e.small
|
|
238
238
|
}],
|
|
@@ -240,10 +240,10 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
240
240
|
"aria-pressed": t.selectable ? t.selected : void 0
|
|
241
241
|
}, { ...i.$attrs }, {
|
|
242
242
|
style: l(n),
|
|
243
|
-
onClick:
|
|
243
|
+
onClick: r[0] || (r[0] = (o) => !e.disabled && t.selectable && i.$emit("select", [t.value, t.selected ?? !1]))
|
|
244
244
|
}), {
|
|
245
245
|
default: G(() => [
|
|
246
|
-
e.icon ? (u(),
|
|
246
|
+
e.icon ? (u(), p(ne, {
|
|
247
247
|
key: 0,
|
|
248
248
|
title: e.iconOnly ? e.label : void 0,
|
|
249
249
|
size: e.small ? 0.875 : 1,
|
|
@@ -274,7 +274,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
274
274
|
v19519e2d: i.textColor
|
|
275
275
|
}));
|
|
276
276
|
const t = b(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), a = b(() => e.inline ? void 0 : "ellipsis-container"), n = b(() => e.inline ? void 0 : "ellipsis");
|
|
277
|
-
return (i,
|
|
277
|
+
return (i, r) => (u(), I("div", {
|
|
278
278
|
class: j(["icon-text--container", [l(a)]])
|
|
279
279
|
}, [
|
|
280
280
|
W(ne, {
|
|
@@ -331,10 +331,10 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
}), n = b(() => e.message ? Array.isArray(e.message) ? e.message : [e.message ?? ""] : []);
|
|
334
|
-
return (i,
|
|
335
|
-
const
|
|
334
|
+
return (i, r) => {
|
|
335
|
+
const o = Ra;
|
|
336
336
|
return u(), I("div", Za, [
|
|
337
|
-
(u(!0), I($, null, ie(l(n), (s, c) => (u(),
|
|
337
|
+
(u(!0), I($, null, ie(l(n), (s, c) => (u(), p(o, ee({
|
|
338
338
|
id: `${l(t)}-${c}`,
|
|
339
339
|
key: `${l(t)}-${c}`,
|
|
340
340
|
class: `av-message--${e.type}`
|
|
@@ -342,7 +342,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
342
342
|
]);
|
|
343
343
|
};
|
|
344
344
|
}
|
|
345
|
-
}),
|
|
345
|
+
}), pe = /* @__PURE__ */ z(Xa, [["__scopeId", "data-v-8203bafa"]]), Ya = ["id"], qa = {
|
|
346
346
|
key: 1,
|
|
347
347
|
class: "av-fieldset__element"
|
|
348
348
|
}, Fa = {
|
|
@@ -364,7 +364,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
364
364
|
setup(e) {
|
|
365
365
|
const t = fe(), a = b(() => e.errorMessage || e.successMessage);
|
|
366
366
|
return (n, i) => {
|
|
367
|
-
const
|
|
367
|
+
const r = pe;
|
|
368
368
|
return u(), I("fieldset", {
|
|
369
369
|
class: j(["av-fieldset", {
|
|
370
370
|
"av-fieldset--error": e.errorMessage,
|
|
@@ -393,7 +393,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
393
393
|
g("div", Ka, [
|
|
394
394
|
P(n.$slots, "default", {}, void 0, !0)
|
|
395
395
|
]),
|
|
396
|
-
W(
|
|
396
|
+
W(r, {
|
|
397
397
|
type: e.errorMessage ? "error" : "success",
|
|
398
398
|
message: l(a)
|
|
399
399
|
}, null, 8, ["type", "message"])
|
|
@@ -442,11 +442,11 @@ const en = { class: "b2-bold" }, tn = { class: "b2-regular" }, an = ["innerHTML"
|
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
return (n, i) => {
|
|
445
|
-
const
|
|
445
|
+
const r = ne;
|
|
446
446
|
return u(), I("div", {
|
|
447
447
|
class: j(["av-notice", `av-notice--${e.type}`])
|
|
448
448
|
}, [
|
|
449
|
-
W(
|
|
449
|
+
W(r, ee(l(a), { size: 1.5 }), null, 16),
|
|
450
450
|
g("span", en, [
|
|
451
451
|
De(B(e.title) + " ", 1),
|
|
452
452
|
g("span", tn, [
|
|
@@ -463,7 +463,7 @@ function ln(e) {
|
|
|
463
463
|
function bA(e) {
|
|
464
464
|
return /^[^\s@]+@[^\s.@]+\.[^\s@]+$/.test(e);
|
|
465
465
|
}
|
|
466
|
-
const
|
|
466
|
+
const rn = ["title", "disabled", "aria-disabled", "aria-label"], on = /* @__PURE__ */ Q({
|
|
467
467
|
__name: "AvButton",
|
|
468
468
|
props: {
|
|
469
469
|
variant: { default: "DEFAULT" },
|
|
@@ -476,9 +476,9 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
476
476
|
iconOnly: { type: Boolean, default: !1 },
|
|
477
477
|
small: { type: Boolean, default: !1 },
|
|
478
478
|
icon: {},
|
|
479
|
-
noSentenceCase: { type: Boolean, default: !1 }
|
|
480
|
-
onClick: { type: Function }
|
|
479
|
+
noSentenceCase: { type: Boolean, default: !1 }
|
|
481
480
|
},
|
|
481
|
+
emits: ["click"],
|
|
482
482
|
setup(e, { expose: t }) {
|
|
483
483
|
const a = U(null);
|
|
484
484
|
function n() {
|
|
@@ -486,13 +486,13 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
486
486
|
(f = a.value) == null || f.focus();
|
|
487
487
|
}
|
|
488
488
|
t({ focus: n });
|
|
489
|
-
const i = { name: R.LOADING, animation: "spin" },
|
|
489
|
+
const i = { name: R.LOADING, animation: "spin" }, r = b(() => e.iconScale && !Number.isNaN(e.iconScale) ? e.iconScale : e.small ? 1 : 1.5), o = b(() => {
|
|
490
490
|
if (e.isLoading)
|
|
491
|
-
return { ...i, size:
|
|
491
|
+
return { ...i, size: r.value };
|
|
492
492
|
if (typeof e.icon == "string" && e.icon.trim())
|
|
493
|
-
return { name: e.icon, size:
|
|
493
|
+
return { name: e.icon, size: r.value };
|
|
494
494
|
if (e.icon && typeof e.icon != "string")
|
|
495
|
-
return { ...e.icon, size:
|
|
495
|
+
return { ...e.icon, size: r.value };
|
|
496
496
|
}), s = b(() => e.noSentenceCase ? e.label : _a(e.label)), c = b(() => e.disabled || e.isLoading), A = b(() => `av-button--variant-${e.variant.toLowerCase()}`), d = b(() => `av-button--theme-${e.theme.toLowerCase()}`);
|
|
497
497
|
return (f, C) => {
|
|
498
498
|
const m = ne;
|
|
@@ -513,18 +513,17 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
513
513
|
"aria-disabled": l(c),
|
|
514
514
|
"aria-label": l(s),
|
|
515
515
|
style: ce(e.iconOnly ? { "padding-inline": "var(--spacing-xs)" } : {}),
|
|
516
|
-
onClick: C[0] || (C[0] = (v) =>
|
|
517
|
-
})
|
|
516
|
+
onClick: C[0] || (C[0] = (v) => f.$emit("click", v))
|
|
518
517
|
}, [
|
|
519
|
-
l(
|
|
518
|
+
l(o) ? (u(), p(m, La(ee({ key: 0 }, l(o))), null, 16)) : D("", !0),
|
|
520
519
|
e.iconOnly ? D("", !0) : (u(), I("span", {
|
|
521
520
|
key: 1,
|
|
522
521
|
class: j(e.small ? "b2-regular" : "b1-regular")
|
|
523
522
|
}, B(l(s)), 3))
|
|
524
|
-
], 14,
|
|
523
|
+
], 14, rn);
|
|
525
524
|
};
|
|
526
525
|
}
|
|
527
|
-
}),
|
|
526
|
+
}), oe = /* @__PURE__ */ z(on, [["__scopeId", "data-v-72290081"]]), sn = { class: "av-card__content-collapsible" }, cn = {
|
|
528
527
|
key: 0,
|
|
529
528
|
class: "av-card__body"
|
|
530
529
|
}, An = {
|
|
@@ -543,7 +542,7 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
543
542
|
setup(e) {
|
|
544
543
|
const t = fe(), a = U(e.collapsed);
|
|
545
544
|
return (n, i) => {
|
|
546
|
-
const
|
|
545
|
+
const r = oe;
|
|
547
546
|
return u(), I("div", {
|
|
548
547
|
class: "av-card",
|
|
549
548
|
style: ce({ borderColor: e.borderColor, background: e.backgroundColor })
|
|
@@ -554,12 +553,12 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
554
553
|
style: ce({ background: e.titleBackground, minHeight: e.titleHeight, maxHeight: e.titleHeight })
|
|
555
554
|
}, [
|
|
556
555
|
P(n.$slots, "title", {}, void 0, !0),
|
|
557
|
-
e.collapsible ? (u(),
|
|
556
|
+
e.collapsible ? (u(), p(r, {
|
|
558
557
|
key: 0,
|
|
559
558
|
icon: l(a) ? l(R).CHEVRON_DOWN : l(R).CHEVRON_LEFT,
|
|
560
559
|
"icon-only": "",
|
|
561
560
|
label: "",
|
|
562
|
-
onClick: i[0] || (i[0] = (
|
|
561
|
+
onClick: i[0] || (i[0] = (o) => a.value = !l(a))
|
|
563
562
|
}, null, 8, ["icon"])) : D("", !0)
|
|
564
563
|
], 6)) : D("", !0),
|
|
565
564
|
It(g("div", sn, [
|
|
@@ -594,14 +593,14 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
594
593
|
},
|
|
595
594
|
emits: ["close"],
|
|
596
595
|
setup(e, { emit: t }) {
|
|
597
|
-
const a = t, n = b(() => e.id ?? `alert-${crypto.randomUUID()}`), i = () => a("close"),
|
|
596
|
+
const a = t, n = b(() => e.id ?? `alert-${crypto.randomUUID()}`), i = () => a("close"), r = b(
|
|
598
597
|
() => [
|
|
599
598
|
`av-alert--${e.type}`,
|
|
600
599
|
{
|
|
601
600
|
"av-alert--sm": e.small
|
|
602
601
|
}
|
|
603
602
|
]
|
|
604
|
-
),
|
|
603
|
+
), o = b(() => {
|
|
605
604
|
switch (e.type) {
|
|
606
605
|
case "error":
|
|
607
606
|
return { name: R.ALERT_CIRCLE_OUTLINE, color: "var(--dark-background-error)" };
|
|
@@ -617,12 +616,12 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
617
616
|
return (s, c) => e.closed ? D("", !0) : (u(), I("div", {
|
|
618
617
|
key: 0,
|
|
619
618
|
id: l(n),
|
|
620
|
-
class: j(["av-alert", l(
|
|
619
|
+
class: j(["av-alert", l(r)]),
|
|
621
620
|
role: e.alert ? "alert" : void 0
|
|
622
621
|
}, [
|
|
623
622
|
g("div", fn, [
|
|
624
623
|
g("div", vn, [
|
|
625
|
-
W(ne, ee(l(
|
|
624
|
+
W(ne, ee(l(o), { size: 3 }), null, 16),
|
|
626
625
|
g("div", mn, [
|
|
627
626
|
e.small ? D("", !0) : (u(), I("span", In, B(e.title), 1)),
|
|
628
627
|
P(s.$slots, "default", {}, () => [
|
|
@@ -630,7 +629,7 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
630
629
|
], !0)
|
|
631
630
|
])
|
|
632
631
|
]),
|
|
633
|
-
e.closeable ? (u(),
|
|
632
|
+
e.closeable ? (u(), p(oe, {
|
|
634
633
|
key: 0,
|
|
635
634
|
"icon-only": "",
|
|
636
635
|
icon: l(R).CLOSE_CIRCLE_OUTLINE,
|
|
@@ -672,12 +671,12 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
672
671
|
class: "toasters"
|
|
673
672
|
}, {
|
|
674
673
|
default: G(() => [
|
|
675
|
-
(u(!0), I($, null, ie(e.messages, (
|
|
676
|
-
key:
|
|
677
|
-
class: ["av-toaster", t(
|
|
678
|
-
}, { ref_for: !0 },
|
|
679
|
-
style: a(
|
|
680
|
-
onClose: (
|
|
674
|
+
(u(!0), I($, null, ie(e.messages, (r) => (u(), p(hn, ee({
|
|
675
|
+
key: r.id,
|
|
676
|
+
class: ["av-toaster", t(r.type)]
|
|
677
|
+
}, { ref_for: !0 }, r, {
|
|
678
|
+
style: a(r.type),
|
|
679
|
+
onClose: (o) => e.onRemoveMessage(r.id)
|
|
681
680
|
}), null, 16, ["class", "style", "onClose"]))), 128))
|
|
682
681
|
]),
|
|
683
682
|
_: 1
|
|
@@ -703,14 +702,14 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
703
702
|
emits: ["escapePressed"],
|
|
704
703
|
setup(e, { emit: t }) {
|
|
705
704
|
se((d) => ({
|
|
706
|
-
a82a08d0: l(
|
|
705
|
+
a82a08d0: l(o),
|
|
707
706
|
v45be453a: l(s)
|
|
708
707
|
}));
|
|
709
|
-
const a = e, n = t, i = fe(), { position:
|
|
708
|
+
const a = e, n = t, i = fe(), { position: r, width: o, padding: s, show: c } = qt(a);
|
|
710
709
|
function A(d) {
|
|
711
710
|
d.key === "Escape" && n("escapePressed");
|
|
712
711
|
}
|
|
713
|
-
return
|
|
712
|
+
return re(
|
|
714
713
|
c,
|
|
715
714
|
(d) => {
|
|
716
715
|
d ? window.addEventListener("keydown", A) : window.removeEventListener("keydown", A);
|
|
@@ -721,7 +720,7 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
721
720
|
}), (d, f) => l(c) ? (u(), I("div", Mn, [
|
|
722
721
|
e.backdrop ? (u(), I("div", En)) : D("", !0),
|
|
723
722
|
g("div", {
|
|
724
|
-
class: j(["av-drawer", `av-drawer--${l(
|
|
723
|
+
class: j(["av-drawer", `av-drawer--${l(r)}`]),
|
|
725
724
|
role: "dialog",
|
|
726
725
|
"aria-modal": "true",
|
|
727
726
|
"aria-label": e.ariaLabel
|
|
@@ -743,28 +742,28 @@ function Ze() {
|
|
|
743
742
|
if (!e.value)
|
|
744
743
|
return;
|
|
745
744
|
e.value.style.setProperty("--collapser", "none");
|
|
746
|
-
const
|
|
747
|
-
e.value.style.setProperty("--collapse", `${-
|
|
745
|
+
const o = e.value.offsetHeight;
|
|
746
|
+
e.value.style.setProperty("--collapse", `${-o}px`), e.value.style.setProperty("--collapser", "");
|
|
748
747
|
};
|
|
749
748
|
return {
|
|
750
749
|
collapse: e,
|
|
751
750
|
collapsing: t,
|
|
752
751
|
cssExpanded: a,
|
|
753
|
-
doExpand: (
|
|
754
|
-
e.value && (
|
|
752
|
+
doExpand: (o) => {
|
|
753
|
+
e.value && (o === !0 && e.value.style.setProperty("--collapse-max-height", "none"), window.requestAnimationFrame(() => {
|
|
755
754
|
t.value = !0, n(), window.requestAnimationFrame(() => {
|
|
756
|
-
a.value =
|
|
755
|
+
a.value = o;
|
|
757
756
|
});
|
|
758
757
|
}));
|
|
759
758
|
},
|
|
760
759
|
adjust: n,
|
|
761
|
-
onTransitionEnd: (
|
|
760
|
+
onTransitionEnd: (o, s = !0) => {
|
|
762
761
|
var c, A;
|
|
763
|
-
t.value = !1, s && ((A = (c = e.value) == null ? void 0 : c.querySelector("a")) == null || A.focus()), e.value &&
|
|
762
|
+
t.value = !1, s && ((A = (c = e.value) == null ? void 0 : c.querySelector("a")) == null || A.focus()), e.value && o === !1 && e.value.style.removeProperty("--collapse-max-height");
|
|
764
763
|
}
|
|
765
764
|
};
|
|
766
765
|
}
|
|
767
|
-
const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn = ["aria-expanded", "aria-controls"],
|
|
766
|
+
const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn = ["aria-expanded", "aria-controls"], pn = { class: "title-container" }, kn = { class: "n6" }, jn = ["id"], zn = { class: "accordion-content-container" }, Bn = /* @__PURE__ */ Q({
|
|
768
767
|
__name: "AvAccordion",
|
|
769
768
|
props: {
|
|
770
769
|
id: {},
|
|
@@ -777,8 +776,8 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
777
776
|
collapsing: a,
|
|
778
777
|
cssExpanded: n,
|
|
779
778
|
doExpand: i,
|
|
780
|
-
onTransitionEnd:
|
|
781
|
-
} = Ze(),
|
|
779
|
+
onTransitionEnd: r
|
|
780
|
+
} = Ze(), o = b(() => e.id ?? `accordion-${crypto.randomUUID()}`), s = U(), c = tt(Gt), { isActive: A, expand: d } = (c == null ? void 0 : c(Ft(() => e.title))) ?? {
|
|
782
781
|
isActive: s,
|
|
783
782
|
expand: () => s.value = !s.value
|
|
784
783
|
}, f = b(() => ({
|
|
@@ -786,7 +785,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
786
785
|
}));
|
|
787
786
|
return de(() => {
|
|
788
787
|
A.value && i(!0);
|
|
789
|
-
}),
|
|
788
|
+
}), re(A, (C, m) => {
|
|
790
789
|
C !== m && i(C);
|
|
791
790
|
}), (C, m) => {
|
|
792
791
|
const v = ne;
|
|
@@ -795,25 +794,25 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
795
794
|
g("button", {
|
|
796
795
|
class: "av-accordion__btn",
|
|
797
796
|
"aria-expanded": l(A),
|
|
798
|
-
"aria-controls": l(
|
|
797
|
+
"aria-controls": l(o),
|
|
799
798
|
type: "button",
|
|
800
799
|
style: ce(l(f)),
|
|
801
800
|
onClick: m[0] || (m[0] = //@ts-ignore
|
|
802
801
|
(...y) => l(d) && l(d)(...y))
|
|
803
802
|
}, [
|
|
804
|
-
g("div",
|
|
805
|
-
e.icon ? (u(),
|
|
803
|
+
g("div", pn, [
|
|
804
|
+
e.icon ? (u(), p(v, {
|
|
806
805
|
key: 0,
|
|
807
806
|
size: 2,
|
|
808
807
|
name: e.icon,
|
|
809
808
|
color: "var(--icon)"
|
|
810
809
|
}, null, 8, ["name"])) : D("", !0),
|
|
811
|
-
g("h6",
|
|
810
|
+
g("h6", kn, B(e.title), 1)
|
|
812
811
|
])
|
|
813
812
|
], 12, xn)
|
|
814
813
|
]),
|
|
815
814
|
g("div", {
|
|
816
|
-
id: l(
|
|
815
|
+
id: l(o),
|
|
817
816
|
ref_key: "collapse",
|
|
818
817
|
ref: t,
|
|
819
818
|
class: j(["av-collapse", {
|
|
@@ -821,7 +820,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
821
820
|
// Need to use a separate data to add/remove the class after a RAF
|
|
822
821
|
"av-collapsing": l(a)
|
|
823
822
|
}]),
|
|
824
|
-
onTransitionend: m[1] || (m[1] = (y) => l(
|
|
823
|
+
onTransitionend: m[1] || (m[1] = (y) => l(r)(l(A), !1))
|
|
825
824
|
}, [
|
|
826
825
|
g("div", zn, [
|
|
827
826
|
P(C.$slots, "default", {}, void 0, !0)
|
|
@@ -846,13 +845,13 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
846
845
|
set(s) {
|
|
847
846
|
n.value = s, a("update:activeAccordion", s);
|
|
848
847
|
}
|
|
849
|
-
}),
|
|
848
|
+
}), r = U(/* @__PURE__ */ new Map()), o = U(0);
|
|
850
849
|
return bt(Gt, (s) => {
|
|
851
|
-
const c =
|
|
852
|
-
|
|
850
|
+
const c = o.value++;
|
|
851
|
+
r.value.set(c, s.value);
|
|
853
852
|
const A = b(() => c === i.value);
|
|
854
|
-
|
|
855
|
-
|
|
853
|
+
re(s, () => {
|
|
854
|
+
r.value.set(c, s.value);
|
|
856
855
|
});
|
|
857
856
|
function d() {
|
|
858
857
|
if (i.value === c) {
|
|
@@ -862,7 +861,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
862
861
|
i.value = c;
|
|
863
862
|
}
|
|
864
863
|
return ve(() => {
|
|
865
|
-
|
|
864
|
+
r.value.delete(c);
|
|
866
865
|
}), { isActive: A, expand: d };
|
|
867
866
|
}), (s, c) => (u(), I("div", Pn, [
|
|
868
867
|
P(s.$slots, "default")
|
|
@@ -872,62 +871,62 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
872
871
|
function _t(e) {
|
|
873
872
|
return Oa() ? (Sa(e), !0) : !1;
|
|
874
873
|
}
|
|
875
|
-
const
|
|
874
|
+
const ot = /* @__PURE__ */ new WeakMap(), Wn = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
876
875
|
var t;
|
|
877
876
|
const a = e[0], n = (t = ht()) == null ? void 0 : t.proxy;
|
|
878
877
|
if (n == null && !yt())
|
|
879
878
|
throw new Error("injectLocal must be called in setup");
|
|
880
|
-
return n &&
|
|
879
|
+
return n && ot.has(n) && a in ot.get(n) ? ot.get(n)[a] : tt(...e);
|
|
881
880
|
}, Un = typeof window < "u" && typeof document < "u";
|
|
882
881
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
883
882
|
const Vn = (e) => e != null, Hn = Object.prototype.toString, Rn = (e) => Hn.call(e) === "[object Object]", xe = () => {
|
|
884
883
|
};
|
|
885
884
|
function ea(e, t) {
|
|
886
885
|
function a(...n) {
|
|
887
|
-
return new Promise((i,
|
|
888
|
-
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(
|
|
886
|
+
return new Promise((i, r) => {
|
|
887
|
+
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(i).catch(r);
|
|
889
888
|
});
|
|
890
889
|
}
|
|
891
890
|
return a;
|
|
892
891
|
}
|
|
893
892
|
function Zn(e, t = {}) {
|
|
894
893
|
let a, n, i = xe;
|
|
895
|
-
const
|
|
894
|
+
const r = (c) => {
|
|
896
895
|
clearTimeout(c), i(), i = xe;
|
|
897
896
|
};
|
|
898
|
-
let
|
|
897
|
+
let o;
|
|
899
898
|
return (c) => {
|
|
900
899
|
const A = le(e), d = le(t.maxWait);
|
|
901
|
-
return a &&
|
|
902
|
-
i = t.rejectOnCancel ? C : f,
|
|
903
|
-
a &&
|
|
900
|
+
return a && r(a), A <= 0 || d !== void 0 && d <= 0 ? (n && (r(n), n = void 0), Promise.resolve(c())) : new Promise((f, C) => {
|
|
901
|
+
i = t.rejectOnCancel ? C : f, o = c, d && !n && (n = setTimeout(() => {
|
|
902
|
+
a && r(a), n = void 0, f(o());
|
|
904
903
|
}, d)), a = setTimeout(() => {
|
|
905
|
-
n &&
|
|
904
|
+
n && r(n), n = void 0, f(c());
|
|
906
905
|
}, A);
|
|
907
906
|
});
|
|
908
907
|
};
|
|
909
908
|
}
|
|
910
909
|
function Xn(...e) {
|
|
911
|
-
let t = 0, a, n = !0, i = xe,
|
|
912
|
-
!Ct(e[0]) && typeof e[0] == "object" ? { delay:
|
|
910
|
+
let t = 0, a, n = !0, i = xe, r, o, s, c, A;
|
|
911
|
+
!Ct(e[0]) && typeof e[0] == "object" ? { delay: o, trailing: s = !0, leading: c = !0, rejectOnCancel: A = !1 } = e[0] : [o, s = !0, c = !0, A = !1] = e;
|
|
913
912
|
const d = () => {
|
|
914
913
|
a && (clearTimeout(a), a = void 0, i(), i = xe);
|
|
915
914
|
};
|
|
916
915
|
return (C) => {
|
|
917
|
-
const m = le(
|
|
918
|
-
return d(), m <= 0 ? (t = Date.now(), y()) : (v > m && (c || !n) ? (t = Date.now(), y()) : s && (
|
|
916
|
+
const m = le(o), v = Date.now() - t, y = () => r = C();
|
|
917
|
+
return d(), m <= 0 ? (t = Date.now(), y()) : (v > m && (c || !n) ? (t = Date.now(), y()) : s && (r = new Promise((M, T) => {
|
|
919
918
|
i = A ? T : M, a = setTimeout(() => {
|
|
920
919
|
t = Date.now(), n = !0, M(y()), d();
|
|
921
920
|
}, Math.max(0, m - v));
|
|
922
|
-
})), !c && !a && (a = setTimeout(() => n = !0, m)), n = !1,
|
|
921
|
+
})), !c && !a && (a = setTimeout(() => n = !0, m)), n = !1, r);
|
|
923
922
|
};
|
|
924
923
|
}
|
|
925
924
|
function Yn(e, t) {
|
|
926
925
|
var a;
|
|
927
926
|
if (typeof e == "number")
|
|
928
927
|
return e + t;
|
|
929
|
-
const n = ((a = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : a[0]) || "", i = e.slice(n.length),
|
|
930
|
-
return Number.isNaN(
|
|
928
|
+
const n = ((a = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : a[0]) || "", i = e.slice(n.length), r = Number.parseFloat(n) + t;
|
|
929
|
+
return Number.isNaN(r) ? e : r + i;
|
|
931
930
|
}
|
|
932
931
|
function Ve(e) {
|
|
933
932
|
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
@@ -956,7 +955,7 @@ function ta(e, t = !0, a) {
|
|
|
956
955
|
qn() ? de(e, a) : t ? e() : at(e);
|
|
957
956
|
}
|
|
958
957
|
function Gn(e, t, a) {
|
|
959
|
-
return
|
|
958
|
+
return re(
|
|
960
959
|
e,
|
|
961
960
|
t,
|
|
962
961
|
{
|
|
@@ -977,7 +976,7 @@ function dt(...e) {
|
|
|
977
976
|
}, n = (s, c, A, d) => (s.addEventListener(c, A, d), () => s.removeEventListener(c, A, d)), i = b(() => {
|
|
978
977
|
const s = Fe(le(e[0])).filter((c) => c != null);
|
|
979
978
|
return s.every((c) => typeof c != "string") ? s : void 0;
|
|
980
|
-
}),
|
|
979
|
+
}), r = Gn(
|
|
981
980
|
() => {
|
|
982
981
|
var s, c;
|
|
983
982
|
return [
|
|
@@ -1001,10 +1000,10 @@ function dt(...e) {
|
|
|
1001
1000
|
);
|
|
1002
1001
|
},
|
|
1003
1002
|
{ flush: "post" }
|
|
1004
|
-
),
|
|
1005
|
-
|
|
1003
|
+
), o = () => {
|
|
1004
|
+
r(), a();
|
|
1006
1005
|
};
|
|
1007
|
-
return _t(a),
|
|
1006
|
+
return _t(a), o;
|
|
1008
1007
|
}
|
|
1009
1008
|
// @__NO_SIDE_EFFECTS__
|
|
1010
1009
|
function Jn() {
|
|
@@ -1020,23 +1019,23 @@ function aa(e) {
|
|
|
1020
1019
|
}
|
|
1021
1020
|
function $n(e, t, a = {}) {
|
|
1022
1021
|
const { window: n = Xe, ...i } = a;
|
|
1023
|
-
let
|
|
1024
|
-
const
|
|
1025
|
-
|
|
1022
|
+
let r;
|
|
1023
|
+
const o = /* @__PURE__ */ aa(() => n && "MutationObserver" in n), s = () => {
|
|
1024
|
+
r && (r.disconnect(), r = void 0);
|
|
1026
1025
|
}, c = b(() => {
|
|
1027
1026
|
const C = le(e), m = Fe(C).map(Et).filter(Vn);
|
|
1028
1027
|
return new Set(m);
|
|
1029
|
-
}), A =
|
|
1028
|
+
}), A = re(
|
|
1030
1029
|
c,
|
|
1031
1030
|
(C) => {
|
|
1032
|
-
s(),
|
|
1031
|
+
s(), o.value && C.size && (r = new MutationObserver(t), C.forEach((m) => r.observe(m, i)));
|
|
1033
1032
|
},
|
|
1034
1033
|
{ immediate: !0, flush: "post" }
|
|
1035
|
-
), d = () =>
|
|
1034
|
+
), d = () => r == null ? void 0 : r.takeRecords(), f = () => {
|
|
1036
1035
|
A(), s();
|
|
1037
1036
|
};
|
|
1038
1037
|
return _t(f), {
|
|
1039
|
-
isSupported:
|
|
1038
|
+
isSupported: o,
|
|
1040
1039
|
stop: f,
|
|
1041
1040
|
takeRecords: d
|
|
1042
1041
|
};
|
|
@@ -1048,12 +1047,12 @@ function na() {
|
|
|
1048
1047
|
return typeof e == "number" ? e : void 0;
|
|
1049
1048
|
}
|
|
1050
1049
|
function ze(e, t = {}) {
|
|
1051
|
-
const { window: a = Xe, ssrWidth: n = /* @__PURE__ */ na() } = t, i = /* @__PURE__ */ aa(() => a && "matchMedia" in a && typeof a.matchMedia == "function"),
|
|
1050
|
+
const { window: a = Xe, ssrWidth: n = /* @__PURE__ */ na() } = t, i = /* @__PURE__ */ aa(() => a && "matchMedia" in a && typeof a.matchMedia == "function"), r = ye(typeof n == "number"), o = ye(), s = ye(!1), c = (A) => {
|
|
1052
1051
|
s.value = A.matches;
|
|
1053
1052
|
};
|
|
1054
1053
|
return Qa(() => {
|
|
1055
|
-
if (
|
|
1056
|
-
|
|
1054
|
+
if (r.value) {
|
|
1055
|
+
r.value = !i.value;
|
|
1057
1056
|
const A = le(e).split(",");
|
|
1058
1057
|
s.value = A.some((d) => {
|
|
1059
1058
|
const f = d.includes("not all"), C = d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
@@ -1062,8 +1061,8 @@ function ze(e, t = {}) {
|
|
|
1062
1061
|
});
|
|
1063
1062
|
return;
|
|
1064
1063
|
}
|
|
1065
|
-
i.value && (
|
|
1066
|
-
}), dt(
|
|
1064
|
+
i.value && (o.value = a.matchMedia(le(e)), s.value = o.value.matches);
|
|
1065
|
+
}), dt(o, "change", c, { passive: !0 }), b(() => s.value);
|
|
1067
1066
|
}
|
|
1068
1067
|
// @__NO_SIDE_EFFECTS__
|
|
1069
1068
|
function ei(e, t = {}) {
|
|
@@ -1071,10 +1070,10 @@ function ei(e, t = {}) {
|
|
|
1071
1070
|
let y = le(e[le(m)]);
|
|
1072
1071
|
return v != null && (y = Yn(y, v)), typeof y == "number" && (y = `${y}px`), y;
|
|
1073
1072
|
}
|
|
1074
|
-
const { window: n = Xe, strategy: i = "min-width", ssrWidth:
|
|
1075
|
-
|
|
1073
|
+
const { window: n = Xe, strategy: i = "min-width", ssrWidth: r = /* @__PURE__ */ na() } = t, o = typeof r == "number", s = o ? ye(!1) : { value: !0 };
|
|
1074
|
+
o && ta(() => s.value = !!n);
|
|
1076
1075
|
function c(m, v) {
|
|
1077
|
-
return !s.value &&
|
|
1076
|
+
return !s.value && o ? m === "min" ? r >= Ve(v) : r <= Ve(v) : n ? n.matchMedia(`(${m}-width: ${v})`).matches : !1;
|
|
1078
1077
|
}
|
|
1079
1078
|
const A = (m) => ze(() => `(min-width: ${a(m)})`, t), d = (m) => ze(() => `(max-width: ${a(m)})`, t), f = Object.keys(e).reduce((m, v) => (Object.defineProperty(m, v, {
|
|
1080
1079
|
get: () => i === "min-width" ? A(v) : d(v),
|
|
@@ -1125,8 +1124,8 @@ function ti(e, t = {}) {
|
|
|
1125
1124
|
throttle: a = 0,
|
|
1126
1125
|
idle: n = 200,
|
|
1127
1126
|
onStop: i = xe,
|
|
1128
|
-
onScroll:
|
|
1129
|
-
offset:
|
|
1127
|
+
onScroll: r = xe,
|
|
1128
|
+
offset: o = {
|
|
1130
1129
|
left: 0,
|
|
1131
1130
|
right: 0,
|
|
1132
1131
|
top: 0,
|
|
@@ -1162,7 +1161,7 @@ function ti(e, t = {}) {
|
|
|
1162
1161
|
}
|
|
1163
1162
|
});
|
|
1164
1163
|
function T(x, H) {
|
|
1165
|
-
var w,
|
|
1164
|
+
var w, k, h, E;
|
|
1166
1165
|
if (!d)
|
|
1167
1166
|
return;
|
|
1168
1167
|
const S = le(e);
|
|
@@ -1170,7 +1169,7 @@ function ti(e, t = {}) {
|
|
|
1170
1169
|
return;
|
|
1171
1170
|
(h = S instanceof Document ? d.document.body : S) == null || h.scrollTo({
|
|
1172
1171
|
top: (w = le(H)) != null ? w : M.value,
|
|
1173
|
-
left: (
|
|
1172
|
+
left: (k = le(x)) != null ? k : y.value,
|
|
1174
1173
|
behavior: le(A)
|
|
1175
1174
|
});
|
|
1176
1175
|
const Y = ((E = S == null ? void 0 : S.document) == null ? void 0 : E.documentElement) || (S == null ? void 0 : S.documentElement) || S;
|
|
@@ -1192,20 +1191,20 @@ function ti(e, t = {}) {
|
|
|
1192
1191
|
var H;
|
|
1193
1192
|
if (!d)
|
|
1194
1193
|
return;
|
|
1195
|
-
const w = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Et(x), { display:
|
|
1194
|
+
const w = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Et(x), { display: k, flexDirection: h, direction: E } = getComputedStyle(w), S = E === "rtl" ? -1 : 1, Y = w.scrollLeft;
|
|
1196
1195
|
O.left = Y < m.value, O.right = Y > m.value;
|
|
1197
|
-
const q = Math.abs(Y * S) <= (
|
|
1198
|
-
|
|
1196
|
+
const q = Math.abs(Y * S) <= (o.left || 0), J = Math.abs(Y * S) + w.clientWidth >= w.scrollWidth - (o.right || 0) - Lt;
|
|
1197
|
+
k === "flex" && h === "row-reverse" ? (N.left = J, N.right = q) : (N.left = q, N.right = J), m.value = Y;
|
|
1199
1198
|
let X = w.scrollTop;
|
|
1200
1199
|
x === d.document && !X && (X = d.document.body.scrollTop), O.top = X < v.value, O.bottom = X > v.value;
|
|
1201
|
-
const _ = Math.abs(X) <= (
|
|
1202
|
-
|
|
1200
|
+
const _ = Math.abs(X) <= (o.top || 0), ae = Math.abs(X) + w.clientHeight >= w.scrollHeight - (o.bottom || 0) - Lt;
|
|
1201
|
+
k === "flex" && h === "column-reverse" ? (N.top = ae, N.bottom = _) : (N.top = _, N.bottom = ae), v.value = X;
|
|
1203
1202
|
}, te = (x) => {
|
|
1204
1203
|
var H;
|
|
1205
1204
|
if (!d)
|
|
1206
1205
|
return;
|
|
1207
1206
|
const w = (H = x.target.documentElement) != null ? H : x.target;
|
|
1208
|
-
F(w), L.value = !0, Z(x),
|
|
1207
|
+
F(w), L.value = !0, Z(x), r(x);
|
|
1209
1208
|
};
|
|
1210
1209
|
return dt(
|
|
1211
1210
|
e,
|
|
@@ -1260,7 +1259,7 @@ const ai = {
|
|
|
1260
1259
|
/* 90rem */
|
|
1261
1260
|
};
|
|
1262
1261
|
function nt() {
|
|
1263
|
-
const e = /* @__PURE__ */ ei(ai), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), i = e.smaller("xl"),
|
|
1262
|
+
const e = /* @__PURE__ */ ei(ai), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), i = e.smaller("xl"), r = e.greater("md"), o = e.greater("lg"), s = a, c = b(() => r.value && n.value), A = o, d = e.active();
|
|
1264
1263
|
return {
|
|
1265
1264
|
isMobile: s,
|
|
1266
1265
|
isTablet: c,
|
|
@@ -1269,8 +1268,8 @@ function nt() {
|
|
|
1269
1268
|
isBelowMd: a,
|
|
1270
1269
|
isBelowLg: n,
|
|
1271
1270
|
isBelowXl: i,
|
|
1272
|
-
isAboveMd:
|
|
1273
|
-
isAboveLg:
|
|
1271
|
+
isAboveMd: r,
|
|
1272
|
+
isAboveLg: o,
|
|
1274
1273
|
currentBreakpoint: d
|
|
1275
1274
|
};
|
|
1276
1275
|
}
|
|
@@ -1287,39 +1286,39 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1287
1286
|
}, Je = function e(t, a) {
|
|
1288
1287
|
var n;
|
|
1289
1288
|
a === void 0 && (a = !0);
|
|
1290
|
-
var i = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"),
|
|
1291
|
-
return
|
|
1289
|
+
var i = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), r = i === "" || i === "true", o = r || a && t && e(t.parentNode);
|
|
1290
|
+
return o;
|
|
1292
1291
|
}, ni = function(t) {
|
|
1293
1292
|
var a, n = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
1294
1293
|
return n === "" || n === "true";
|
|
1295
|
-
},
|
|
1294
|
+
}, ra = function(t, a, n) {
|
|
1296
1295
|
if (Je(t))
|
|
1297
1296
|
return [];
|
|
1298
1297
|
var i = Array.prototype.slice.apply(t.querySelectorAll(Ke));
|
|
1299
1298
|
return a && we.call(t, Ke) && i.unshift(t), i = i.filter(n), i;
|
|
1300
|
-
},
|
|
1301
|
-
for (var i = [],
|
|
1302
|
-
var
|
|
1303
|
-
if (!Je(
|
|
1304
|
-
if (
|
|
1305
|
-
var s =
|
|
1299
|
+
}, oa = function e(t, a, n) {
|
|
1300
|
+
for (var i = [], r = Array.from(t); r.length; ) {
|
|
1301
|
+
var o = r.shift();
|
|
1302
|
+
if (!Je(o, !1))
|
|
1303
|
+
if (o.tagName === "SLOT") {
|
|
1304
|
+
var s = o.assignedElements(), c = s.length ? s : o.children, A = e(c, !0, n);
|
|
1306
1305
|
n.flatten ? i.push.apply(i, A) : i.push({
|
|
1307
|
-
scopeParent:
|
|
1306
|
+
scopeParent: o,
|
|
1308
1307
|
candidates: A
|
|
1309
1308
|
});
|
|
1310
1309
|
} else {
|
|
1311
|
-
var d = we.call(
|
|
1312
|
-
d && n.filter(
|
|
1313
|
-
var f =
|
|
1314
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(
|
|
1310
|
+
var d = we.call(o, Ke);
|
|
1311
|
+
d && n.filter(o) && (a || !t.includes(o)) && i.push(o);
|
|
1312
|
+
var f = o.shadowRoot || // check for an undisclosed shadow
|
|
1313
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), C = !Je(f, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
1315
1314
|
if (f && C) {
|
|
1316
|
-
var m = e(f === !0 ?
|
|
1315
|
+
var m = e(f === !0 ? o.children : f.children, !0, n);
|
|
1317
1316
|
n.flatten ? i.push.apply(i, m) : i.push({
|
|
1318
|
-
scopeParent:
|
|
1317
|
+
scopeParent: o,
|
|
1319
1318
|
candidates: m
|
|
1320
1319
|
});
|
|
1321
1320
|
} else
|
|
1322
|
-
|
|
1321
|
+
r.unshift.apply(r, o.children);
|
|
1323
1322
|
}
|
|
1324
1323
|
}
|
|
1325
1324
|
return i;
|
|
@@ -1336,9 +1335,9 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1336
1335
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
1337
1336
|
}, ca = function(t) {
|
|
1338
1337
|
return t.tagName === "INPUT";
|
|
1339
|
-
}, oi = function(t) {
|
|
1340
|
-
return ca(t) && t.type === "hidden";
|
|
1341
1338
|
}, ri = function(t) {
|
|
1339
|
+
return ca(t) && t.type === "hidden";
|
|
1340
|
+
}, oi = function(t) {
|
|
1342
1341
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
1343
1342
|
return n.tagName === "SUMMARY";
|
|
1344
1343
|
});
|
|
@@ -1358,25 +1357,25 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1358
1357
|
else
|
|
1359
1358
|
try {
|
|
1360
1359
|
i = n(t.name);
|
|
1361
|
-
} catch (
|
|
1362
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",
|
|
1360
|
+
} catch (o) {
|
|
1361
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
1363
1362
|
}
|
|
1364
|
-
var
|
|
1365
|
-
return !
|
|
1363
|
+
var r = si(i, t.form);
|
|
1364
|
+
return !r || r === t;
|
|
1366
1365
|
}, Ai = function(t) {
|
|
1367
1366
|
return ca(t) && t.type === "radio";
|
|
1368
1367
|
}, ui = function(t) {
|
|
1369
1368
|
return Ai(t) && !ci(t);
|
|
1370
1369
|
}, di = function(t) {
|
|
1371
|
-
var a, n = t && Ge(t), i = (a = n) === null || a === void 0 ? void 0 : a.host,
|
|
1370
|
+
var a, n = t && Ge(t), i = (a = n) === null || a === void 0 ? void 0 : a.host, r = !1;
|
|
1372
1371
|
if (n && n !== t) {
|
|
1373
|
-
var
|
|
1374
|
-
for (
|
|
1372
|
+
var o, s, c;
|
|
1373
|
+
for (r = !!((o = i) !== null && o !== void 0 && (s = o.ownerDocument) !== null && s !== void 0 && s.contains(i) || t != null && (c = t.ownerDocument) !== null && c !== void 0 && c.contains(t)); !r && i; ) {
|
|
1375
1374
|
var A, d, f;
|
|
1376
|
-
n = Ge(i), i = (A = n) === null || A === void 0 ? void 0 : A.host,
|
|
1375
|
+
n = Ge(i), i = (A = n) === null || A === void 0 ? void 0 : A.host, r = !!((d = i) !== null && d !== void 0 && (f = d.ownerDocument) !== null && f !== void 0 && f.contains(i));
|
|
1377
1376
|
}
|
|
1378
1377
|
}
|
|
1379
|
-
return
|
|
1378
|
+
return r;
|
|
1380
1379
|
}, wt = function(t) {
|
|
1381
1380
|
var a = t.getBoundingClientRect(), n = a.width, i = a.height;
|
|
1382
1381
|
return n === 0 && i === 0;
|
|
@@ -1384,8 +1383,8 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1384
1383
|
var n = a.displayCheck, i = a.getShadowRoot;
|
|
1385
1384
|
if (getComputedStyle(t).visibility === "hidden")
|
|
1386
1385
|
return !0;
|
|
1387
|
-
var
|
|
1388
|
-
if (we.call(
|
|
1386
|
+
var r = we.call(t, "details>summary:first-of-type"), o = r ? t.parentElement : t;
|
|
1387
|
+
if (we.call(o, "details:not([open]) *"))
|
|
1389
1388
|
return !0;
|
|
1390
1389
|
if (!n || n === "full" || n === "legacy-full") {
|
|
1391
1390
|
if (typeof i == "function") {
|
|
@@ -1422,8 +1421,8 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1422
1421
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
1423
1422
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
1424
1423
|
// note related to `candidateSelectors`)
|
|
1425
|
-
Je(a) ||
|
|
1426
|
-
|
|
1424
|
+
Je(a) || ri(a) || fi(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
1425
|
+
oi(a) || vi(a));
|
|
1427
1426
|
}, ft = function(t, a) {
|
|
1428
1427
|
return !(ui(a) || Te(a) < 0 || !$e(t, a));
|
|
1429
1428
|
}, mi = function(t) {
|
|
@@ -1431,35 +1430,35 @@ var ia = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
1431
1430
|
return !!(isNaN(a) || a >= 0);
|
|
1432
1431
|
}, Ii = function e(t) {
|
|
1433
1432
|
var a = [], n = [];
|
|
1434
|
-
return t.forEach(function(i,
|
|
1435
|
-
var
|
|
1436
|
-
c === 0 ?
|
|
1437
|
-
documentOrder:
|
|
1433
|
+
return t.forEach(function(i, r) {
|
|
1434
|
+
var o = !!i.scopeParent, s = o ? i.scopeParent : i, c = ii(s, o), A = o ? e(i.candidates) : s;
|
|
1435
|
+
c === 0 ? o ? a.push.apply(a, A) : a.push(s) : n.push({
|
|
1436
|
+
documentOrder: r,
|
|
1438
1437
|
tabIndex: c,
|
|
1439
1438
|
item: i,
|
|
1440
|
-
isScope:
|
|
1439
|
+
isScope: o,
|
|
1441
1440
|
content: A
|
|
1442
1441
|
});
|
|
1443
|
-
}), n.sort(li).reduce(function(i,
|
|
1444
|
-
return
|
|
1442
|
+
}), n.sort(li).reduce(function(i, r) {
|
|
1443
|
+
return r.isScope ? i.push.apply(i, r.content) : i.push(r.content), i;
|
|
1445
1444
|
}, []).concat(a);
|
|
1446
1445
|
}, gi = function(t, a) {
|
|
1447
1446
|
a = a || {};
|
|
1448
1447
|
var n;
|
|
1449
|
-
return a.getShadowRoot ? n =
|
|
1448
|
+
return a.getShadowRoot ? n = oa([t], a.includeContainer, {
|
|
1450
1449
|
filter: ft.bind(null, a),
|
|
1451
1450
|
flatten: !1,
|
|
1452
1451
|
getShadowRoot: a.getShadowRoot,
|
|
1453
1452
|
shadowRootFilter: mi
|
|
1454
|
-
}) : n =
|
|
1453
|
+
}) : n = ra(t, a.includeContainer, ft.bind(null, a)), Ii(n);
|
|
1455
1454
|
}, bi = function(t, a) {
|
|
1456
1455
|
a = a || {};
|
|
1457
1456
|
var n;
|
|
1458
|
-
return a.getShadowRoot ? n =
|
|
1457
|
+
return a.getShadowRoot ? n = oa([t], a.includeContainer, {
|
|
1459
1458
|
filter: $e.bind(null, a),
|
|
1460
1459
|
flatten: !0,
|
|
1461
1460
|
getShadowRoot: a.getShadowRoot
|
|
1462
|
-
}) : n =
|
|
1461
|
+
}) : n = ra(t, a.includeContainer, $e.bind(null, a)), n;
|
|
1463
1462
|
}, Oe = function(t, a) {
|
|
1464
1463
|
if (a = a || {}, !t)
|
|
1465
1464
|
throw new Error("No node provided");
|
|
@@ -1573,13 +1572,13 @@ var Qt = {
|
|
|
1573
1572
|
}, Ye = function(t) {
|
|
1574
1573
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
1575
1574
|
}, xi = [], Aa = function(t, a) {
|
|
1576
|
-
var n = (a == null ? void 0 : a.document) || document, i = (a == null ? void 0 : a.trapStack) || xi,
|
|
1575
|
+
var n = (a == null ? void 0 : a.document) || document, i = (a == null ? void 0 : a.trapStack) || xi, r = St({
|
|
1577
1576
|
returnFocusOnDeactivate: !0,
|
|
1578
1577
|
escapeDeactivates: !0,
|
|
1579
1578
|
delayInitialFocus: !0,
|
|
1580
1579
|
isKeyForward: Si,
|
|
1581
1580
|
isKeyBackward: Qi
|
|
1582
|
-
}, a),
|
|
1581
|
+
}, a), o = {
|
|
1583
1582
|
// containers given to createFocusTrap()
|
|
1584
1583
|
// @type {Array<HTMLElement>}
|
|
1585
1584
|
containers: [],
|
|
@@ -1617,10 +1616,10 @@ var Qt = {
|
|
|
1617
1616
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1618
1617
|
recentNavEvent: void 0
|
|
1619
1618
|
}, s, c = function(h, E, S) {
|
|
1620
|
-
return h && h[E] !== void 0 ? h[E] :
|
|
1619
|
+
return h && h[E] !== void 0 ? h[E] : r[S || E];
|
|
1621
1620
|
}, A = function(h, E) {
|
|
1622
1621
|
var S = typeof (E == null ? void 0 : E.composedPath) == "function" ? E.composedPath() : void 0;
|
|
1623
|
-
return
|
|
1622
|
+
return o.containerGroups.findIndex(function(Y) {
|
|
1624
1623
|
var q = Y.container, J = Y.tabbableNodes;
|
|
1625
1624
|
return q.contains(h) || // fall back to explicit tabbable search which will take into consideration any
|
|
1626
1625
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
@@ -1631,7 +1630,7 @@ var Qt = {
|
|
|
1631
1630
|
});
|
|
1632
1631
|
});
|
|
1633
1632
|
}, d = function(h) {
|
|
1634
|
-
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = E.hasFallback, Y = S === void 0 ? !1 : S, q = E.params, J = q === void 0 ? [] : q, X =
|
|
1633
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, S = E.hasFallback, Y = S === void 0 ? !1 : S, q = E.params, J = q === void 0 ? [] : q, X = r[h];
|
|
1635
1634
|
if (typeof X == "function" && (X = X.apply(void 0, Ni(J))), X === !0 && (X = void 0), !X) {
|
|
1636
1635
|
if (X === void 0 || X === !1)
|
|
1637
1636
|
return X;
|
|
@@ -1654,11 +1653,11 @@ var Qt = {
|
|
|
1654
1653
|
});
|
|
1655
1654
|
if (h === !1)
|
|
1656
1655
|
return !1;
|
|
1657
|
-
if (h === void 0 || h && !st(h,
|
|
1656
|
+
if (h === void 0 || h && !st(h, r.tabbableOptions))
|
|
1658
1657
|
if (A(n.activeElement) >= 0)
|
|
1659
1658
|
h = n.activeElement;
|
|
1660
1659
|
else {
|
|
1661
|
-
var E =
|
|
1660
|
+
var E = o.tabbableGroups[0], S = E && E.firstTabbableNode;
|
|
1662
1661
|
h = S || d("fallbackFocus");
|
|
1663
1662
|
}
|
|
1664
1663
|
else h === null && (h = d("fallbackFocus"));
|
|
@@ -1666,8 +1665,8 @@ var Qt = {
|
|
|
1666
1665
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1667
1666
|
return h;
|
|
1668
1667
|
}, C = function() {
|
|
1669
|
-
if (
|
|
1670
|
-
var E = gi(h,
|
|
1668
|
+
if (o.containerGroups = o.containers.map(function(h) {
|
|
1669
|
+
var E = gi(h, r.tabbableOptions), S = bi(h, r.tabbableOptions), Y = E.length > 0 ? E[0] : void 0, q = E.length > 0 ? E[E.length - 1] : void 0, J = S.find(function(ae) {
|
|
1671
1670
|
return Oe(ae);
|
|
1672
1671
|
}), X = S.slice().reverse().find(function(ae) {
|
|
1673
1672
|
return Oe(ae);
|
|
@@ -1704,21 +1703,21 @@ var Qt = {
|
|
|
1704
1703
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
1705
1704
|
*/
|
|
1706
1705
|
nextTabbableNode: function(Ee) {
|
|
1707
|
-
var
|
|
1708
|
-
return be < 0 ?
|
|
1706
|
+
var ke = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, be = E.indexOf(Ee);
|
|
1707
|
+
return be < 0 ? ke ? S.slice(S.indexOf(Ee) + 1).find(function(je) {
|
|
1709
1708
|
return Oe(je);
|
|
1710
1709
|
}) : S.slice(0, S.indexOf(Ee)).reverse().find(function(je) {
|
|
1711
1710
|
return Oe(je);
|
|
1712
|
-
}) : E[be + (
|
|
1711
|
+
}) : E[be + (ke ? 1 : -1)];
|
|
1713
1712
|
}
|
|
1714
1713
|
};
|
|
1715
|
-
}),
|
|
1714
|
+
}), o.tabbableGroups = o.containerGroups.filter(function(h) {
|
|
1716
1715
|
return h.tabbableNodes.length > 0;
|
|
1717
|
-
}),
|
|
1716
|
+
}), o.tabbableGroups.length <= 0 && !d("fallbackFocus"))
|
|
1718
1717
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
1719
|
-
if (
|
|
1718
|
+
if (o.containerGroups.find(function(h) {
|
|
1720
1719
|
return h.posTabIndexesFound;
|
|
1721
|
-
}) &&
|
|
1720
|
+
}) && o.containerGroups.length > 1)
|
|
1722
1721
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
1723
1722
|
}, m = function(h) {
|
|
1724
1723
|
var E = h.activeElement;
|
|
@@ -1731,8 +1730,8 @@ var Qt = {
|
|
|
1731
1730
|
return;
|
|
1732
1731
|
}
|
|
1733
1732
|
h.focus({
|
|
1734
|
-
preventScroll: !!
|
|
1735
|
-
}),
|
|
1733
|
+
preventScroll: !!r.preventScroll
|
|
1734
|
+
}), o.mostRecentlyFocusedNode = h, wi(h) && h.select();
|
|
1736
1735
|
}
|
|
1737
1736
|
}, y = function(h) {
|
|
1738
1737
|
var E = d("setReturnFocus", {
|
|
@@ -1743,26 +1742,26 @@ var Qt = {
|
|
|
1743
1742
|
var E = h.target, S = h.event, Y = h.isBackward, q = Y === void 0 ? !1 : Y;
|
|
1744
1743
|
E = E || Ye(S), C();
|
|
1745
1744
|
var J = null;
|
|
1746
|
-
if (
|
|
1747
|
-
var X = A(E, S), _ = X >= 0 ?
|
|
1745
|
+
if (o.tabbableGroups.length > 0) {
|
|
1746
|
+
var X = A(E, S), _ = X >= 0 ? o.containerGroups[X] : void 0;
|
|
1748
1747
|
if (X < 0)
|
|
1749
|
-
q ? J =
|
|
1748
|
+
q ? J = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : J = o.tabbableGroups[0].firstTabbableNode;
|
|
1750
1749
|
else if (q) {
|
|
1751
|
-
var ae =
|
|
1752
|
-
var
|
|
1753
|
-
return E ===
|
|
1750
|
+
var ae = o.tabbableGroups.findIndex(function(lt) {
|
|
1751
|
+
var rt = lt.firstTabbableNode;
|
|
1752
|
+
return E === rt;
|
|
1754
1753
|
});
|
|
1755
|
-
if (ae < 0 && (_.container === E || st(E,
|
|
1756
|
-
var Ee = ae === 0 ?
|
|
1757
|
-
J = Te(E) >= 0 ?
|
|
1754
|
+
if (ae < 0 && (_.container === E || st(E, r.tabbableOptions) && !Oe(E, r.tabbableOptions) && !_.nextTabbableNode(E, !1)) && (ae = X), ae >= 0) {
|
|
1755
|
+
var Ee = ae === 0 ? o.tabbableGroups.length - 1 : ae - 1, ke = o.tabbableGroups[Ee];
|
|
1756
|
+
J = Te(E) >= 0 ? ke.lastTabbableNode : ke.lastDomTabbableNode;
|
|
1758
1757
|
} else He(S) || (J = _.nextTabbableNode(E, !1));
|
|
1759
1758
|
} else {
|
|
1760
|
-
var be =
|
|
1761
|
-
var
|
|
1762
|
-
return E ===
|
|
1759
|
+
var be = o.tabbableGroups.findIndex(function(lt) {
|
|
1760
|
+
var rt = lt.lastTabbableNode;
|
|
1761
|
+
return E === rt;
|
|
1763
1762
|
});
|
|
1764
|
-
if (be < 0 && (_.container === E || st(E,
|
|
1765
|
-
var je = be ===
|
|
1763
|
+
if (be < 0 && (_.container === E || st(E, r.tabbableOptions) && !Oe(E, r.tabbableOptions) && !_.nextTabbableNode(E)) && (be = X), be >= 0) {
|
|
1764
|
+
var je = be === o.tabbableGroups.length - 1 ? 0 : be + 1, Dt = o.tabbableGroups[je];
|
|
1766
1765
|
J = Te(E) >= 0 ? Dt.firstTabbableNode : Dt.firstDomTabbableNode;
|
|
1767
1766
|
} else He(S) || (J = _.nextTabbableNode(E));
|
|
1768
1767
|
}
|
|
@@ -1772,7 +1771,7 @@ var Qt = {
|
|
|
1772
1771
|
}, T = function(h) {
|
|
1773
1772
|
var E = Ye(h);
|
|
1774
1773
|
if (!(A(E, h) >= 0)) {
|
|
1775
|
-
if (Be(
|
|
1774
|
+
if (Be(r.clickOutsideDeactivates, h)) {
|
|
1776
1775
|
s.deactivate({
|
|
1777
1776
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
1778
1777
|
// which will result in the outside click setting focus to the node
|
|
@@ -1780,30 +1779,30 @@ var Qt = {
|
|
|
1780
1779
|
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
1781
1780
|
// on activation (or the configured `setReturnFocus` node), whether the
|
|
1782
1781
|
// outside click was on a focusable node or not
|
|
1783
|
-
returnFocus:
|
|
1782
|
+
returnFocus: r.returnFocusOnDeactivate
|
|
1784
1783
|
});
|
|
1785
1784
|
return;
|
|
1786
1785
|
}
|
|
1787
|
-
Be(
|
|
1786
|
+
Be(r.allowOutsideClick, h) || h.preventDefault();
|
|
1788
1787
|
}
|
|
1789
1788
|
}, L = function(h) {
|
|
1790
1789
|
var E = Ye(h), S = A(E, h) >= 0;
|
|
1791
1790
|
if (S || E instanceof Document)
|
|
1792
|
-
S && (
|
|
1791
|
+
S && (o.mostRecentlyFocusedNode = E);
|
|
1793
1792
|
else {
|
|
1794
1793
|
h.stopImmediatePropagation();
|
|
1795
1794
|
var Y, q = !0;
|
|
1796
|
-
if (
|
|
1797
|
-
if (Te(
|
|
1798
|
-
var J = A(
|
|
1795
|
+
if (o.mostRecentlyFocusedNode)
|
|
1796
|
+
if (Te(o.mostRecentlyFocusedNode) > 0) {
|
|
1797
|
+
var J = A(o.mostRecentlyFocusedNode), X = o.containerGroups[J].tabbableNodes;
|
|
1799
1798
|
if (X.length > 0) {
|
|
1800
1799
|
var _ = X.findIndex(function(ae) {
|
|
1801
|
-
return ae ===
|
|
1800
|
+
return ae === o.mostRecentlyFocusedNode;
|
|
1802
1801
|
});
|
|
1803
|
-
_ >= 0 && (
|
|
1802
|
+
_ >= 0 && (r.isKeyForward(o.recentNavEvent) ? _ + 1 < X.length && (Y = X[_ + 1], q = !1) : _ - 1 >= 0 && (Y = X[_ - 1], q = !1));
|
|
1804
1803
|
}
|
|
1805
1804
|
} else
|
|
1806
|
-
|
|
1805
|
+
o.containerGroups.some(function(ae) {
|
|
1807
1806
|
return ae.tabbableNodes.some(function(Ee) {
|
|
1808
1807
|
return Te(Ee) > 0;
|
|
1809
1808
|
});
|
|
@@ -1813,29 +1812,29 @@ var Qt = {
|
|
|
1813
1812
|
q && (Y = M({
|
|
1814
1813
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1815
1814
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1816
|
-
target:
|
|
1817
|
-
isBackward:
|
|
1818
|
-
})), v(Y ||
|
|
1815
|
+
target: o.mostRecentlyFocusedNode,
|
|
1816
|
+
isBackward: r.isKeyBackward(o.recentNavEvent)
|
|
1817
|
+
})), v(Y || o.mostRecentlyFocusedNode || f());
|
|
1819
1818
|
}
|
|
1820
|
-
|
|
1819
|
+
o.recentNavEvent = void 0;
|
|
1821
1820
|
}, N = function(h) {
|
|
1822
1821
|
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1823
|
-
|
|
1822
|
+
o.recentNavEvent = h;
|
|
1824
1823
|
var S = M({
|
|
1825
1824
|
event: h,
|
|
1826
1825
|
isBackward: E
|
|
1827
1826
|
});
|
|
1828
1827
|
S && (He(h) && h.preventDefault(), v(S));
|
|
1829
1828
|
}, O = function(h) {
|
|
1830
|
-
(
|
|
1829
|
+
(r.isKeyForward(h) || r.isKeyBackward(h)) && N(h, r.isKeyBackward(h));
|
|
1831
1830
|
}, V = function(h) {
|
|
1832
|
-
Oi(h) && Be(
|
|
1831
|
+
Oi(h) && Be(r.escapeDeactivates, h) !== !1 && (h.preventDefault(), s.deactivate());
|
|
1833
1832
|
}, Z = function(h) {
|
|
1834
1833
|
var E = Ye(h);
|
|
1835
|
-
A(E, h) >= 0 || Be(
|
|
1834
|
+
A(E, h) >= 0 || Be(r.clickOutsideDeactivates, h) || Be(r.allowOutsideClick, h) || (h.preventDefault(), h.stopImmediatePropagation());
|
|
1836
1835
|
}, F = function() {
|
|
1837
|
-
if (
|
|
1838
|
-
return Qt.activateTrap(i, s),
|
|
1836
|
+
if (o.active)
|
|
1837
|
+
return Qt.activateTrap(i, s), o.delayInitialFocusTimer = r.delayInitialFocus ? xt(function() {
|
|
1839
1838
|
v(f());
|
|
1840
1839
|
}) : v(f()), n.addEventListener("focusin", L, !0), n.addEventListener("mousedown", T, {
|
|
1841
1840
|
capture: !0,
|
|
@@ -1851,18 +1850,18 @@ var Qt = {
|
|
|
1851
1850
|
passive: !1
|
|
1852
1851
|
}), n.addEventListener("keydown", V), s;
|
|
1853
1852
|
}, te = function() {
|
|
1854
|
-
if (
|
|
1853
|
+
if (o.active)
|
|
1855
1854
|
return n.removeEventListener("focusin", L, !0), n.removeEventListener("mousedown", T, !0), n.removeEventListener("touchstart", T, !0), n.removeEventListener("click", Z, !0), n.removeEventListener("keydown", O, !0), n.removeEventListener("keydown", V), s;
|
|
1856
1855
|
}, x = function(h) {
|
|
1857
1856
|
var E = h.some(function(S) {
|
|
1858
1857
|
var Y = Array.from(S.removedNodes);
|
|
1859
1858
|
return Y.some(function(q) {
|
|
1860
|
-
return q ===
|
|
1859
|
+
return q === o.mostRecentlyFocusedNode;
|
|
1861
1860
|
});
|
|
1862
1861
|
});
|
|
1863
1862
|
E && v(f());
|
|
1864
1863
|
}, H = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(x) : void 0, w = function() {
|
|
1865
|
-
H && (H.disconnect(),
|
|
1864
|
+
H && (H.disconnect(), o.active && !o.paused && o.containers.map(function(h) {
|
|
1866
1865
|
H.observe(h, {
|
|
1867
1866
|
subtree: !0,
|
|
1868
1867
|
childList: !0
|
|
@@ -1871,62 +1870,62 @@ var Qt = {
|
|
|
1871
1870
|
};
|
|
1872
1871
|
return s = {
|
|
1873
1872
|
get active() {
|
|
1874
|
-
return
|
|
1873
|
+
return o.active;
|
|
1875
1874
|
},
|
|
1876
1875
|
get paused() {
|
|
1877
|
-
return
|
|
1876
|
+
return o.paused;
|
|
1878
1877
|
},
|
|
1879
1878
|
activate: function(h) {
|
|
1880
|
-
if (
|
|
1879
|
+
if (o.active)
|
|
1881
1880
|
return this;
|
|
1882
1881
|
var E = c(h, "onActivate"), S = c(h, "onPostActivate"), Y = c(h, "checkCanFocusTrap");
|
|
1883
|
-
Y || C(),
|
|
1882
|
+
Y || C(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = m(n), E == null || E();
|
|
1884
1883
|
var q = function() {
|
|
1885
1884
|
Y && C(), F(), w(), S == null || S();
|
|
1886
1885
|
};
|
|
1887
|
-
return Y ? (Y(
|
|
1886
|
+
return Y ? (Y(o.containers.concat()).then(q, q), this) : (q(), this);
|
|
1888
1887
|
},
|
|
1889
1888
|
deactivate: function(h) {
|
|
1890
|
-
if (!
|
|
1889
|
+
if (!o.active)
|
|
1891
1890
|
return this;
|
|
1892
1891
|
var E = St({
|
|
1893
|
-
onDeactivate:
|
|
1894
|
-
onPostDeactivate:
|
|
1895
|
-
checkCanReturnFocus:
|
|
1892
|
+
onDeactivate: r.onDeactivate,
|
|
1893
|
+
onPostDeactivate: r.onPostDeactivate,
|
|
1894
|
+
checkCanReturnFocus: r.checkCanReturnFocus
|
|
1896
1895
|
}, h);
|
|
1897
|
-
clearTimeout(
|
|
1896
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, te(), o.active = !1, o.paused = !1, w(), Qt.deactivateTrap(i, s);
|
|
1898
1897
|
var S = c(E, "onDeactivate"), Y = c(E, "onPostDeactivate"), q = c(E, "checkCanReturnFocus"), J = c(E, "returnFocus", "returnFocusOnDeactivate");
|
|
1899
1898
|
S == null || S();
|
|
1900
1899
|
var X = function() {
|
|
1901
1900
|
xt(function() {
|
|
1902
|
-
J && v(y(
|
|
1901
|
+
J && v(y(o.nodeFocusedBeforeActivation)), Y == null || Y();
|
|
1903
1902
|
});
|
|
1904
1903
|
};
|
|
1905
|
-
return J && q ? (q(y(
|
|
1904
|
+
return J && q ? (q(y(o.nodeFocusedBeforeActivation)).then(X, X), this) : (X(), this);
|
|
1906
1905
|
},
|
|
1907
1906
|
pause: function(h) {
|
|
1908
|
-
return
|
|
1907
|
+
return o.active ? (o.manuallyPaused = !0, this._setPausedState(!0, h)) : this;
|
|
1909
1908
|
},
|
|
1910
1909
|
unpause: function(h) {
|
|
1911
|
-
return
|
|
1910
|
+
return o.active ? (o.manuallyPaused = !1, i[i.length - 1] !== this ? this : this._setPausedState(!1, h)) : this;
|
|
1912
1911
|
},
|
|
1913
1912
|
updateContainerElements: function(h) {
|
|
1914
1913
|
var E = [].concat(h).filter(Boolean);
|
|
1915
|
-
return
|
|
1914
|
+
return o.containers = E.map(function(S) {
|
|
1916
1915
|
return typeof S == "string" ? n.querySelector(S) : S;
|
|
1917
|
-
}),
|
|
1916
|
+
}), o.active && C(), w(), this;
|
|
1918
1917
|
}
|
|
1919
1918
|
}, Object.defineProperties(s, {
|
|
1920
1919
|
_isManuallyPaused: {
|
|
1921
1920
|
value: function() {
|
|
1922
|
-
return
|
|
1921
|
+
return o.manuallyPaused;
|
|
1923
1922
|
}
|
|
1924
1923
|
},
|
|
1925
1924
|
_setPausedState: {
|
|
1926
1925
|
value: function(h, E) {
|
|
1927
|
-
if (
|
|
1926
|
+
if (o.paused === h)
|
|
1928
1927
|
return this;
|
|
1929
|
-
if (
|
|
1928
|
+
if (o.paused = h, h) {
|
|
1930
1929
|
var S = c(E, "onPause"), Y = c(E, "onPostPause");
|
|
1931
1930
|
S == null || S(), te(), w(), Y == null || Y();
|
|
1932
1931
|
} else {
|
|
@@ -1938,7 +1937,7 @@ var Qt = {
|
|
|
1938
1937
|
}
|
|
1939
1938
|
}), s.updateContainerElements(t), s;
|
|
1940
1939
|
};
|
|
1941
|
-
function
|
|
1940
|
+
function pi(e, t) {
|
|
1942
1941
|
let a = null;
|
|
1943
1942
|
function n() {
|
|
1944
1943
|
!e.value || !e.value.querySelector(
|
|
@@ -1965,7 +1964,7 @@ function EA(e) {
|
|
|
1965
1964
|
document.documentElement.style.setProperty("--global-background-color", "var(--default-global-background-color)");
|
|
1966
1965
|
});
|
|
1967
1966
|
}
|
|
1968
|
-
const
|
|
1967
|
+
const ki = {
|
|
1969
1968
|
role: "navigation",
|
|
1970
1969
|
class: "av-translate av-nav"
|
|
1971
1970
|
}, ji = { class: "av-nav__item" }, zi = ["id"], Bi = { class: "av-menu__list" }, Pi = ["hreflang", "lang", "aria-current", "href", "onClick"], Wi = /* @__PURE__ */ Q({
|
|
@@ -1981,8 +1980,8 @@ const pi = {
|
|
|
1981
1980
|
const a = t, {
|
|
1982
1981
|
collapse: n,
|
|
1983
1982
|
collapsing: i,
|
|
1984
|
-
cssExpanded:
|
|
1985
|
-
doExpand:
|
|
1983
|
+
cssExpanded: r,
|
|
1984
|
+
doExpand: o,
|
|
1986
1985
|
onTransitionEnd: s
|
|
1987
1986
|
} = Ze(), { isBelowLg: c } = nt(), A = b(() => e.id ?? `language-selector-${crypto.randomUUID()}`), d = b(
|
|
1988
1987
|
() => e.languages.find(({ codeIso: y }) => y === e.currentLanguage)
|
|
@@ -1996,11 +1995,11 @@ const pi = {
|
|
|
1996
1995
|
function v(y) {
|
|
1997
1996
|
C.value = !1, a("select", y);
|
|
1998
1997
|
}
|
|
1999
|
-
return
|
|
2000
|
-
y !== M &&
|
|
1998
|
+
return re(C, (y, M) => {
|
|
1999
|
+
y !== M && o(y);
|
|
2001
2000
|
}), (y, M) => {
|
|
2002
|
-
const T =
|
|
2003
|
-
return u(), I("nav",
|
|
2001
|
+
const T = oe;
|
|
2002
|
+
return u(), I("nav", ki, [
|
|
2004
2003
|
g("div", ji, [
|
|
2005
2004
|
W(T, {
|
|
2006
2005
|
class: "av-translate__btn",
|
|
@@ -2021,7 +2020,7 @@ const pi = {
|
|
|
2021
2020
|
ref_key: "collapse",
|
|
2022
2021
|
ref: n,
|
|
2023
2022
|
class: j(["av-collapse av-translate__menu av-menu", {
|
|
2024
|
-
"av-collapse--expanded": l(
|
|
2023
|
+
"av-collapse--expanded": l(r),
|
|
2025
2024
|
"av-collapsing": l(i)
|
|
2026
2025
|
}]),
|
|
2027
2026
|
onTransitionend: M[1] || (M[1] = (L) => l(s)(l(C)))
|
|
@@ -2043,7 +2042,7 @@ const pi = {
|
|
|
2043
2042
|
]);
|
|
2044
2043
|
};
|
|
2045
2044
|
}
|
|
2046
|
-
}),
|
|
2045
|
+
}), pt = /* @__PURE__ */ z(Wi, [["__scopeId", "data-v-4cdd2381"]]), Ui = ["title", "aria-label"], Vi = { class: "av-rich-button__line" }, Hi = { class: "av-rich-button__left" }, Ri = /* @__PURE__ */ Q({
|
|
2047
2046
|
__name: "AvRichButton",
|
|
2048
2047
|
props: {
|
|
2049
2048
|
label: {},
|
|
@@ -2051,22 +2050,21 @@ const pi = {
|
|
|
2051
2050
|
} },
|
|
2052
2051
|
iconRight: { default: () => {
|
|
2053
2052
|
} },
|
|
2054
|
-
customPadding: { default: "var(--spacing-sm)" }
|
|
2055
|
-
onClick: { type: Function }
|
|
2053
|
+
customPadding: { default: "var(--spacing-sm)" }
|
|
2056
2054
|
},
|
|
2055
|
+
emits: ["click"],
|
|
2057
2056
|
setup(e) {
|
|
2058
2057
|
return se((t) => ({
|
|
2059
|
-
|
|
2058
|
+
v121e8ff2: t.customPadding
|
|
2060
2059
|
})), (t, a) => (u(), I("button", {
|
|
2061
2060
|
class: "av-rich-button",
|
|
2062
2061
|
title: e.label,
|
|
2063
2062
|
"aria-label": e.label,
|
|
2064
|
-
onClick: a[0] || (a[0] = (n) =>
|
|
2065
|
-
})
|
|
2063
|
+
onClick: a[0] || (a[0] = (n) => t.$emit("click", n))
|
|
2066
2064
|
}, [
|
|
2067
2065
|
g("div", Vi, [
|
|
2068
2066
|
g("div", Hi, [
|
|
2069
|
-
e.iconLeft ? (u(),
|
|
2067
|
+
e.iconLeft ? (u(), p(ne, {
|
|
2070
2068
|
key: 0,
|
|
2071
2069
|
name: e.iconLeft,
|
|
2072
2070
|
color: "var(--dark-background-primary1)",
|
|
@@ -2074,7 +2072,7 @@ const pi = {
|
|
|
2074
2072
|
}, null, 8, ["name"])) : D("", !0),
|
|
2075
2073
|
P(t.$slots, "default", {}, void 0, !0)
|
|
2076
2074
|
]),
|
|
2077
|
-
e.iconRight ? (u(),
|
|
2075
|
+
e.iconRight ? (u(), p(ne, {
|
|
2078
2076
|
key: 0,
|
|
2079
2077
|
name: e.iconRight,
|
|
2080
2078
|
color: "var(--dark-background-primary1)",
|
|
@@ -2083,7 +2081,7 @@ const pi = {
|
|
|
2083
2081
|
])
|
|
2084
2082
|
], 8, Ui));
|
|
2085
2083
|
}
|
|
2086
|
-
}), NA = /* @__PURE__ */ z(Ri, [["__scopeId", "data-v-
|
|
2084
|
+
}), NA = /* @__PURE__ */ z(Ri, [["__scopeId", "data-v-bc95d37c"]]), Zi = ["id", "name", "value", "checked", "required", "data-testid", "data-test", "tabindex", "aria-describedby"], Xi = ["for"], Yi = { class: "label-container" }, qi = {
|
|
2087
2085
|
key: 0,
|
|
2088
2086
|
class: "av-hint-text"
|
|
2089
2087
|
}, Fi = /* @__PURE__ */ Q({
|
|
@@ -2108,10 +2106,10 @@ const pi = {
|
|
|
2108
2106
|
}),
|
|
2109
2107
|
emits: ["update:modelValue"],
|
|
2110
2108
|
setup(e) {
|
|
2111
|
-
const t = b(() => e.id ?? `checkbox-${crypto.randomUUID()}`), a = b(() => e.errorMessage || e.validMessage), n = b(() => a.value ? `message-${t.value}` : void 0), i = Le(e, "modelValue"),
|
|
2109
|
+
const t = b(() => e.id ?? `checkbox-${crypto.randomUUID()}`), a = b(() => e.errorMessage || e.validMessage), n = b(() => a.value ? `message-${t.value}` : void 0), i = Le(e, "modelValue"), r = b(() => i.value.includes(e.value)), o = b(() => r.value ? R.CHECKBOX_MARKED : R.CHECKBOX_BLANK_OUTLINE), s = b(() => r.value ? "var(--dark-background-primary1)" : "var(--icon)"), c = b(() => e.small ? 1 : 1.5), A = b(() => e.small ? r.value ? "caption-bold" : "caption-regular" : r.value ? "b2-bold" : "b2-regular");
|
|
2112
2110
|
return (d, f) => {
|
|
2113
|
-
const C = ne, m =
|
|
2114
|
-
return u(),
|
|
2111
|
+
const C = ne, m = pe, v = $t;
|
|
2112
|
+
return u(), p(v, {
|
|
2115
2113
|
inline: e.inline,
|
|
2116
2114
|
disabled: e.disabled
|
|
2117
2115
|
}, {
|
|
@@ -2123,7 +2121,7 @@ const pi = {
|
|
|
2123
2121
|
class: "av-sr-only",
|
|
2124
2122
|
type: "checkbox",
|
|
2125
2123
|
value: e.value,
|
|
2126
|
-
checked: l(
|
|
2124
|
+
checked: l(r),
|
|
2127
2125
|
required: e.required
|
|
2128
2126
|
}, d.$attrs, {
|
|
2129
2127
|
"data-testid": `input-checkbox-${l(t)}`,
|
|
@@ -2140,11 +2138,11 @@ const pi = {
|
|
|
2140
2138
|
g("div", Yi, [
|
|
2141
2139
|
W(C, {
|
|
2142
2140
|
class: "option-checkbox",
|
|
2143
|
-
name: l(
|
|
2141
|
+
name: l(o),
|
|
2144
2142
|
color: l(s),
|
|
2145
2143
|
size: l(c)
|
|
2146
2144
|
}, null, 8, ["name", "color", "size"]),
|
|
2147
|
-
e.icon ? (u(),
|
|
2145
|
+
e.icon ? (u(), p(C, {
|
|
2148
2146
|
key: 0,
|
|
2149
2147
|
class: "option-icon",
|
|
2150
2148
|
name: e.icon,
|
|
@@ -2190,7 +2188,7 @@ const pi = {
|
|
|
2190
2188
|
const t = b(() => e.id ?? `checkboxes-group-${crypto.randomUUID()}`);
|
|
2191
2189
|
return (a, n) => {
|
|
2192
2190
|
const i = Jt;
|
|
2193
|
-
return u(),
|
|
2191
|
+
return u(), p(i, {
|
|
2194
2192
|
id: l(t),
|
|
2195
2193
|
legend: e.legend,
|
|
2196
2194
|
"legend-id": e.legendId,
|
|
@@ -2221,8 +2219,8 @@ const pi = {
|
|
|
2221
2219
|
},
|
|
2222
2220
|
setup(e) {
|
|
2223
2221
|
return (t, a) => {
|
|
2224
|
-
const n =
|
|
2225
|
-
return u(),
|
|
2222
|
+
const n = pe;
|
|
2223
|
+
return u(), p(n, {
|
|
2226
2224
|
type: e.error ? "error" : "success",
|
|
2227
2225
|
message: e.error ? e.error : e.validMessage
|
|
2228
2226
|
}, null, 8, ["type", "message"]);
|
|
@@ -2231,7 +2229,7 @@ const pi = {
|
|
|
2231
2229
|
}), _i = { class: "file-upload-content" }, el = { class: "left-content-container" }, tl = { class: "content-container" }, al = { key: 0 }, nl = { class: "b2-bold" }, il = {
|
|
2232
2230
|
key: 1,
|
|
2233
2231
|
class: "title-container"
|
|
2234
|
-
}, ll = { class: "b2-regular" },
|
|
2232
|
+
}, ll = { class: "b2-regular" }, rl = { class: "caption-light" }, ol = {
|
|
2235
2233
|
key: 0,
|
|
2236
2234
|
class: "right-icon-container"
|
|
2237
2235
|
}, sl = ["id", "aria-describedby", "disabled", "aria-disabled", "accept"], cl = { class: "caption-light" }, Al = /* @__PURE__ */ Q({
|
|
@@ -2259,23 +2257,23 @@ const pi = {
|
|
|
2259
2257
|
se((v) => ({
|
|
2260
2258
|
v8df8b300: v.maxWidth
|
|
2261
2259
|
}));
|
|
2262
|
-
const a = t, n = b(() => e.id ?? `file-upload-${crypto.randomUUID()}`), i = b(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept),
|
|
2263
|
-
function
|
|
2260
|
+
const a = t, n = b(() => e.id ?? `file-upload-${crypto.randomUUID()}`), i = b(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), r = U(!1);
|
|
2261
|
+
function o(v) {
|
|
2264
2262
|
const y = i.value;
|
|
2265
2263
|
return y ? y.split(",").map((T) => T.trim().toLowerCase()).some((T) => T.startsWith(".") ? v.name.toLowerCase().endsWith(T) : T.includes("/") ? v.type === T || v.type.startsWith(`${T.split("/")[0]}/`) : !1) : !0;
|
|
2266
2264
|
}
|
|
2267
2265
|
async function s(v) {
|
|
2268
2266
|
var M, T;
|
|
2269
|
-
if (v.preventDefault(),
|
|
2267
|
+
if (v.preventDefault(), r.value = !1, e.disabled || !((T = (M = v.dataTransfer) == null ? void 0 : M.files) != null && T.length))
|
|
2270
2268
|
return;
|
|
2271
|
-
const y = Array.from(v.dataTransfer.files).filter(
|
|
2269
|
+
const y = Array.from(v.dataTransfer.files).filter(o);
|
|
2272
2270
|
await at(), y.length ? (a("change", y), a("update:modelValue", y[0] ?? "")) : a("onDropAcceptTypeError");
|
|
2273
2271
|
}
|
|
2274
2272
|
function c(v) {
|
|
2275
|
-
v.preventDefault(), e.disabled || (
|
|
2273
|
+
v.preventDefault(), e.disabled || (r.value = !0);
|
|
2276
2274
|
}
|
|
2277
2275
|
function A() {
|
|
2278
|
-
|
|
2276
|
+
r.value = !1;
|
|
2279
2277
|
}
|
|
2280
2278
|
function d(v) {
|
|
2281
2279
|
const y = v.target.files;
|
|
@@ -2289,7 +2287,7 @@ const pi = {
|
|
|
2289
2287
|
"av-upload-group--error": e.error,
|
|
2290
2288
|
"av-upload-group--valid": e.validMessage,
|
|
2291
2289
|
"av-upload-group--disabled": e.disabled,
|
|
2292
|
-
"drag-over":
|
|
2290
|
+
"drag-over": r.value
|
|
2293
2291
|
}
|
|
2294
2292
|
],
|
|
2295
2293
|
"aria-label": e.ariaLabel,
|
|
@@ -2302,7 +2300,7 @@ const pi = {
|
|
|
2302
2300
|
v ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (y = e.onDeleteFile) == null || y.call(e);
|
|
2303
2301
|
}
|
|
2304
2302
|
return (v, y) => (u(), I($, null, [
|
|
2305
|
-
(u(),
|
|
2303
|
+
(u(), p(Me(l(f) ? "div" : "label"), ee(l(f) ? {} : l(C), {
|
|
2306
2304
|
class: l(f) ? "file-preview-container" : ""
|
|
2307
2305
|
}), {
|
|
2308
2306
|
default: G(() => [
|
|
@@ -2324,20 +2322,20 @@ const pi = {
|
|
|
2324
2322
|
g("span", nl, B(e.fileName || e.modelValue.name), 1)
|
|
2325
2323
|
])) : (u(), I("div", il, [
|
|
2326
2324
|
g("span", ll, B(e.title), 1),
|
|
2327
|
-
g("span",
|
|
2325
|
+
g("span", rl, B(e.description), 1)
|
|
2328
2326
|
])),
|
|
2329
2327
|
W($i, {
|
|
2330
2328
|
"valid-message": e.validMessage,
|
|
2331
2329
|
error: e.error
|
|
2332
2330
|
}, null, 8, ["valid-message", "error"])
|
|
2333
2331
|
]),
|
|
2334
|
-
e.disabled ? D("", !0) : (u(), I("div",
|
|
2335
|
-
l(f) ? (u(),
|
|
2332
|
+
e.disabled ? D("", !0) : (u(), I("div", ol, [
|
|
2333
|
+
l(f) ? (u(), p(oe, {
|
|
2336
2334
|
key: 0,
|
|
2337
2335
|
label: e.deleteButtonLabel,
|
|
2338
2336
|
theme: "SECONDARY",
|
|
2339
2337
|
onClick: y[0] || (y[0] = () => m(e.modelValue))
|
|
2340
|
-
}, null, 8, ["label"])) : (u(),
|
|
2338
|
+
}, null, 8, ["label"])) : (u(), p(ne, {
|
|
2341
2339
|
key: 1,
|
|
2342
2340
|
size: 1.5,
|
|
2343
2341
|
name: l(R).TRAY_UPLOAD,
|
|
@@ -2366,9 +2364,9 @@ const pi = {
|
|
|
2366
2364
|
])
|
|
2367
2365
|
], 64));
|
|
2368
2366
|
}
|
|
2369
|
-
}), TA = /* @__PURE__ */ z(Al, [["__scopeId", "data-v-b3d7bf33"]]), ua = 6048e5, ul = 864e5,
|
|
2367
|
+
}), TA = /* @__PURE__ */ z(Al, [["__scopeId", "data-v-b3d7bf33"]]), ua = 6048e5, ul = 864e5, kt = Symbol.for("constructDateFrom");
|
|
2370
2368
|
function Ce(e, t) {
|
|
2371
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
2369
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && kt in e ? e[kt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
2372
2370
|
}
|
|
2373
2371
|
function Ie(e, t) {
|
|
2374
2372
|
return Ce(t || e, e);
|
|
@@ -2379,8 +2377,8 @@ function it() {
|
|
|
2379
2377
|
}
|
|
2380
2378
|
function Re(e, t) {
|
|
2381
2379
|
var s, c, A, d;
|
|
2382
|
-
const a = it(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.weekStartsOn) ?? a.weekStartsOn ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.weekStartsOn) ?? 0, i = Ie(e, t == null ? void 0 : t.in),
|
|
2383
|
-
return i.setDate(i.getDate() -
|
|
2380
|
+
const a = it(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.weekStartsOn) ?? a.weekStartsOn ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.weekStartsOn) ?? 0, i = Ie(e, t == null ? void 0 : t.in), r = i.getDay(), o = (r < n ? 7 : 0) + r - n;
|
|
2381
|
+
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
2384
2382
|
}
|
|
2385
2383
|
function _e(e, t) {
|
|
2386
2384
|
return Re(e, { ...t, weekStartsOn: 1 });
|
|
@@ -2388,10 +2386,10 @@ function _e(e, t) {
|
|
|
2388
2386
|
function da(e, t) {
|
|
2389
2387
|
const a = Ie(e, t == null ? void 0 : t.in), n = a.getFullYear(), i = Ce(a, 0);
|
|
2390
2388
|
i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2393
|
-
const s = _e(
|
|
2394
|
-
return a.getTime() >=
|
|
2389
|
+
const r = _e(i), o = Ce(a, 0);
|
|
2390
|
+
o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
|
|
2391
|
+
const s = _e(o);
|
|
2392
|
+
return a.getTime() >= r.getTime() ? n + 1 : a.getTime() >= s.getTime() ? n : n - 1;
|
|
2395
2393
|
}
|
|
2396
2394
|
function jt(e) {
|
|
2397
2395
|
const t = Ie(e), a = new Date(
|
|
@@ -2423,7 +2421,7 @@ function vl(e, t, a) {
|
|
|
2423
2421
|
a == null ? void 0 : a.in,
|
|
2424
2422
|
e,
|
|
2425
2423
|
t
|
|
2426
|
-
),
|
|
2424
|
+
), r = zt(n), o = zt(i), s = +r - jt(r), c = +o - jt(o);
|
|
2427
2425
|
return Math.round((s - c) / ul);
|
|
2428
2426
|
}
|
|
2429
2427
|
function ml(e, t) {
|
|
@@ -2554,14 +2552,14 @@ function Pe(e) {
|
|
|
2554
2552
|
const n = a != null && a.context ? String(a.context) : "standalone";
|
|
2555
2553
|
let i;
|
|
2556
2554
|
if (n === "formatting" && e.formattingValues) {
|
|
2557
|
-
const
|
|
2558
|
-
i = e.formattingValues[s] || e.formattingValues[
|
|
2555
|
+
const o = e.defaultFormattingWidth || e.defaultWidth, s = a != null && a.width ? String(a.width) : o;
|
|
2556
|
+
i = e.formattingValues[s] || e.formattingValues[o];
|
|
2559
2557
|
} else {
|
|
2560
|
-
const
|
|
2561
|
-
i = e.values[s] || e.values[
|
|
2558
|
+
const o = e.defaultWidth, s = a != null && a.width ? String(a.width) : e.defaultWidth;
|
|
2559
|
+
i = e.values[s] || e.values[o];
|
|
2562
2560
|
}
|
|
2563
|
-
const
|
|
2564
|
-
return i[
|
|
2561
|
+
const r = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
2562
|
+
return i[r];
|
|
2565
2563
|
};
|
|
2566
2564
|
}
|
|
2567
2565
|
const Dl = {
|
|
@@ -2689,7 +2687,7 @@ const Dl = {
|
|
|
2689
2687
|
return a + "rd";
|
|
2690
2688
|
}
|
|
2691
2689
|
return a + "th";
|
|
2692
|
-
},
|
|
2690
|
+
}, pl = {
|
|
2693
2691
|
ordinalNumber: xl,
|
|
2694
2692
|
era: Pe({
|
|
2695
2693
|
values: Dl,
|
|
@@ -2717,23 +2715,23 @@ const Dl = {
|
|
|
2717
2715
|
};
|
|
2718
2716
|
function We(e) {
|
|
2719
2717
|
return (t, a = {}) => {
|
|
2720
|
-
const n = a.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth],
|
|
2721
|
-
if (!
|
|
2718
|
+
const n = a.width, i = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], r = t.match(i);
|
|
2719
|
+
if (!r)
|
|
2722
2720
|
return null;
|
|
2723
|
-
const
|
|
2721
|
+
const o = r[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? jl(s, (f) => f.test(o)) : (
|
|
2724
2722
|
// [TODO] -- I challenge you to fix the type
|
|
2725
|
-
|
|
2723
|
+
kl(s, (f) => f.test(o))
|
|
2726
2724
|
);
|
|
2727
2725
|
let A;
|
|
2728
2726
|
A = e.valueCallback ? e.valueCallback(c) : c, A = a.valueCallback ? (
|
|
2729
2727
|
// [TODO] -- I challenge you to fix the type
|
|
2730
2728
|
a.valueCallback(A)
|
|
2731
2729
|
) : A;
|
|
2732
|
-
const d = t.slice(
|
|
2730
|
+
const d = t.slice(o.length);
|
|
2733
2731
|
return { value: A, rest: d };
|
|
2734
2732
|
};
|
|
2735
2733
|
}
|
|
2736
|
-
function
|
|
2734
|
+
function kl(e, t) {
|
|
2737
2735
|
for (const a in e)
|
|
2738
2736
|
if (Object.prototype.hasOwnProperty.call(e, a) && t(e[a]))
|
|
2739
2737
|
return a;
|
|
@@ -2747,12 +2745,12 @@ function zl(e) {
|
|
|
2747
2745
|
return (t, a = {}) => {
|
|
2748
2746
|
const n = t.match(e.matchPattern);
|
|
2749
2747
|
if (!n) return null;
|
|
2750
|
-
const i = n[0],
|
|
2751
|
-
if (!
|
|
2752
|
-
let
|
|
2753
|
-
|
|
2748
|
+
const i = n[0], r = t.match(e.parsePattern);
|
|
2749
|
+
if (!r) return null;
|
|
2750
|
+
let o = e.valueCallback ? e.valueCallback(r[0]) : r[0];
|
|
2751
|
+
o = a.valueCallback ? a.valueCallback(o) : o;
|
|
2754
2752
|
const s = t.slice(i.length);
|
|
2755
|
-
return { value:
|
|
2753
|
+
return { value: o, rest: s };
|
|
2756
2754
|
};
|
|
2757
2755
|
}
|
|
2758
2756
|
const Bl = /^(\d+)(th|st|nd|rd)?/i, Pl = /\d+/i, Wl = {
|
|
@@ -2864,7 +2862,7 @@ const Bl = /^(\d+)(th|st|nd|rd)?/i, Pl = /\d+/i, Wl = {
|
|
|
2864
2862
|
formatDistance: hl,
|
|
2865
2863
|
formatLong: El,
|
|
2866
2864
|
formatRelative: Tl,
|
|
2867
|
-
localize:
|
|
2865
|
+
localize: pl,
|
|
2868
2866
|
match: Kl,
|
|
2869
2867
|
options: {
|
|
2870
2868
|
weekStartsOn: 0,
|
|
@@ -2881,19 +2879,19 @@ function $l(e, t) {
|
|
|
2881
2879
|
}
|
|
2882
2880
|
function va(e, t) {
|
|
2883
2881
|
var d, f, C, m;
|
|
2884
|
-
const a = Ie(e, t == null ? void 0 : t.in), n = a.getFullYear(), i = it(),
|
|
2885
|
-
|
|
2886
|
-
const s = Re(
|
|
2887
|
-
c.setFullYear(n, 0,
|
|
2882
|
+
const a = Ie(e, t == null ? void 0 : t.in), n = a.getFullYear(), i = it(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((m = (C = i.locale) == null ? void 0 : C.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, o = Ce((t == null ? void 0 : t.in) || e, 0);
|
|
2883
|
+
o.setFullYear(n + 1, 0, r), o.setHours(0, 0, 0, 0);
|
|
2884
|
+
const s = Re(o, t), c = Ce((t == null ? void 0 : t.in) || e, 0);
|
|
2885
|
+
c.setFullYear(n, 0, r), c.setHours(0, 0, 0, 0);
|
|
2888
2886
|
const A = Re(c, t);
|
|
2889
2887
|
return +a >= +s ? n + 1 : +a >= +A ? n : n - 1;
|
|
2890
2888
|
}
|
|
2891
2889
|
function _l(e, t) {
|
|
2892
2890
|
var s, c, A, d;
|
|
2893
|
-
const a = it(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, i = va(e, t),
|
|
2894
|
-
return
|
|
2891
|
+
const a = it(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((c = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : c.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((d = (A = a.locale) == null ? void 0 : A.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, i = va(e, t), r = Ce((t == null ? void 0 : t.in) || e, 0);
|
|
2892
|
+
return r.setFullYear(i, 0, n), r.setHours(0, 0, 0, 0), Re(r, t);
|
|
2895
2893
|
}
|
|
2896
|
-
function
|
|
2894
|
+
function er(e, t) {
|
|
2897
2895
|
const a = Ie(e, t == null ? void 0 : t.in), n = +Re(a, t) - +_l(a, t);
|
|
2898
2896
|
return Math.round(n / ua) + 1;
|
|
2899
2897
|
}
|
|
@@ -2991,12 +2989,12 @@ const he = {
|
|
|
2991
2989
|
},
|
|
2992
2990
|
// Local week-numbering year
|
|
2993
2991
|
Y: function(e, t, a, n) {
|
|
2994
|
-
const i = va(e, n),
|
|
2992
|
+
const i = va(e, n), r = i > 0 ? i : 1 - i;
|
|
2995
2993
|
if (t === "YY") {
|
|
2996
|
-
const
|
|
2997
|
-
return K(
|
|
2994
|
+
const o = r % 100;
|
|
2995
|
+
return K(o, 2);
|
|
2998
2996
|
}
|
|
2999
|
-
return t === "Yo" ? a.ordinalNumber(
|
|
2997
|
+
return t === "Yo" ? a.ordinalNumber(r, { unit: "year" }) : K(r, t.length);
|
|
3000
2998
|
},
|
|
3001
2999
|
// ISO week-numbering year
|
|
3002
3000
|
R: function(e, t) {
|
|
@@ -3145,7 +3143,7 @@ const he = {
|
|
|
3145
3143
|
},
|
|
3146
3144
|
// Local week of year
|
|
3147
3145
|
w: function(e, t, a, n) {
|
|
3148
|
-
const i =
|
|
3146
|
+
const i = er(e, n);
|
|
3149
3147
|
return t === "wo" ? a.ordinalNumber(i, { unit: "week" }) : K(i, t.length);
|
|
3150
3148
|
},
|
|
3151
3149
|
// ISO week of year
|
|
@@ -3197,17 +3195,17 @@ const he = {
|
|
|
3197
3195
|
},
|
|
3198
3196
|
// Local day of week
|
|
3199
3197
|
e: function(e, t, a, n) {
|
|
3200
|
-
const i = e.getDay(),
|
|
3198
|
+
const i = e.getDay(), r = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
3201
3199
|
switch (t) {
|
|
3202
3200
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
3203
3201
|
case "e":
|
|
3204
|
-
return String(
|
|
3202
|
+
return String(r);
|
|
3205
3203
|
// Padded numerical value
|
|
3206
3204
|
case "ee":
|
|
3207
|
-
return K(
|
|
3205
|
+
return K(r, 2);
|
|
3208
3206
|
// 1st, 2nd, ..., 7th
|
|
3209
3207
|
case "eo":
|
|
3210
|
-
return a.ordinalNumber(
|
|
3208
|
+
return a.ordinalNumber(r, { unit: "day" });
|
|
3211
3209
|
case "eee":
|
|
3212
3210
|
return a.day(i, {
|
|
3213
3211
|
width: "abbreviated",
|
|
@@ -3236,17 +3234,17 @@ const he = {
|
|
|
3236
3234
|
},
|
|
3237
3235
|
// Stand-alone local day of week
|
|
3238
3236
|
c: function(e, t, a, n) {
|
|
3239
|
-
const i = e.getDay(),
|
|
3237
|
+
const i = e.getDay(), r = (i - n.weekStartsOn + 8) % 7 || 7;
|
|
3240
3238
|
switch (t) {
|
|
3241
3239
|
// Numerical value (same as in `e`)
|
|
3242
3240
|
case "c":
|
|
3243
|
-
return String(
|
|
3241
|
+
return String(r);
|
|
3244
3242
|
// Padded numerical value
|
|
3245
3243
|
case "cc":
|
|
3246
|
-
return K(
|
|
3244
|
+
return K(r, t.length);
|
|
3247
3245
|
// 1st, 2nd, ..., 7th
|
|
3248
3246
|
case "co":
|
|
3249
|
-
return a.ordinalNumber(
|
|
3247
|
+
return a.ordinalNumber(r, { unit: "day" });
|
|
3250
3248
|
case "ccc":
|
|
3251
3249
|
return a.day(i, {
|
|
3252
3250
|
width: "abbreviated",
|
|
@@ -3518,15 +3516,15 @@ const he = {
|
|
|
3518
3516
|
}
|
|
3519
3517
|
};
|
|
3520
3518
|
function Pt(e, t = "") {
|
|
3521
|
-
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60),
|
|
3522
|
-
return
|
|
3519
|
+
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = Math.trunc(n / 60), r = n % 60;
|
|
3520
|
+
return r === 0 ? a + String(i) : a + String(i) + t + K(r, 2);
|
|
3523
3521
|
}
|
|
3524
3522
|
function Wt(e, t) {
|
|
3525
3523
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + K(Math.abs(e) / 60, 2) : Ne(e, t);
|
|
3526
3524
|
}
|
|
3527
3525
|
function Ne(e, t = "") {
|
|
3528
|
-
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = K(Math.trunc(n / 60), 2),
|
|
3529
|
-
return a + i + t +
|
|
3526
|
+
const a = e > 0 ? "-" : "+", n = Math.abs(e), i = K(Math.trunc(n / 60), 2), r = K(n % 60, 2);
|
|
3527
|
+
return a + i + t + r;
|
|
3530
3528
|
}
|
|
3531
3529
|
const Ut = (e, t) => {
|
|
3532
3530
|
switch (e) {
|
|
@@ -3552,67 +3550,67 @@ const Ut = (e, t) => {
|
|
|
3552
3550
|
default:
|
|
3553
3551
|
return t.time({ width: "full" });
|
|
3554
3552
|
}
|
|
3555
|
-
},
|
|
3553
|
+
}, tr = (e, t) => {
|
|
3556
3554
|
const a = e.match(/(P+)(p+)?/) || [], n = a[1], i = a[2];
|
|
3557
3555
|
if (!i)
|
|
3558
3556
|
return Ut(e, t);
|
|
3559
|
-
let
|
|
3557
|
+
let r;
|
|
3560
3558
|
switch (n) {
|
|
3561
3559
|
case "P":
|
|
3562
|
-
|
|
3560
|
+
r = t.dateTime({ width: "short" });
|
|
3563
3561
|
break;
|
|
3564
3562
|
case "PP":
|
|
3565
|
-
|
|
3563
|
+
r = t.dateTime({ width: "medium" });
|
|
3566
3564
|
break;
|
|
3567
3565
|
case "PPP":
|
|
3568
|
-
|
|
3566
|
+
r = t.dateTime({ width: "long" });
|
|
3569
3567
|
break;
|
|
3570
3568
|
case "PPPP":
|
|
3571
3569
|
default:
|
|
3572
|
-
|
|
3570
|
+
r = t.dateTime({ width: "full" });
|
|
3573
3571
|
break;
|
|
3574
3572
|
}
|
|
3575
|
-
return
|
|
3576
|
-
},
|
|
3573
|
+
return r.replace("{{date}}", Ut(n, t)).replace("{{time}}", ma(i, t));
|
|
3574
|
+
}, ar = {
|
|
3577
3575
|
p: ma,
|
|
3578
|
-
P:
|
|
3579
|
-
},
|
|
3580
|
-
function
|
|
3581
|
-
return
|
|
3576
|
+
P: tr
|
|
3577
|
+
}, nr = /^D+$/, ir = /^Y+$/, lr = ["D", "DD", "YY", "YYYY"];
|
|
3578
|
+
function rr(e) {
|
|
3579
|
+
return nr.test(e);
|
|
3582
3580
|
}
|
|
3583
|
-
function
|
|
3584
|
-
return
|
|
3581
|
+
function or(e) {
|
|
3582
|
+
return ir.test(e);
|
|
3585
3583
|
}
|
|
3586
|
-
function
|
|
3587
|
-
const n =
|
|
3588
|
-
if (console.warn(n),
|
|
3584
|
+
function sr(e, t, a) {
|
|
3585
|
+
const n = cr(e, t, a);
|
|
3586
|
+
if (console.warn(n), lr.includes(e)) throw new RangeError(n);
|
|
3589
3587
|
}
|
|
3590
|
-
function
|
|
3588
|
+
function cr(e, t, a) {
|
|
3591
3589
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
3592
3590
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
3593
3591
|
}
|
|
3594
|
-
const
|
|
3595
|
-
function
|
|
3592
|
+
const Ar = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ur = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, dr = /^'([^]*?)'?$/, fr = /''/g, vr = /[a-zA-Z]/;
|
|
3593
|
+
function mr(e, t, a) {
|
|
3596
3594
|
var d, f, C, m;
|
|
3597
|
-
const n = it(), i = n.locale ?? Gl,
|
|
3595
|
+
const n = it(), i = n.locale ?? Gl, r = n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = n.weekStartsOn ?? ((m = (C = n.locale) == null ? void 0 : C.options) == null ? void 0 : m.weekStartsOn) ?? 0, s = Ie(e, a == null ? void 0 : a.in);
|
|
3598
3596
|
if (!fa(s))
|
|
3599
3597
|
throw new RangeError("Invalid time value");
|
|
3600
|
-
let c = t.match(
|
|
3598
|
+
let c = t.match(ur).map((v) => {
|
|
3601
3599
|
const y = v[0];
|
|
3602
3600
|
if (y === "p" || y === "P") {
|
|
3603
|
-
const M =
|
|
3601
|
+
const M = ar[y];
|
|
3604
3602
|
return M(v, i.formatLong);
|
|
3605
3603
|
}
|
|
3606
3604
|
return v;
|
|
3607
|
-
}).join("").match(
|
|
3605
|
+
}).join("").match(Ar).map((v) => {
|
|
3608
3606
|
if (v === "''")
|
|
3609
3607
|
return { isToken: !1, value: "'" };
|
|
3610
3608
|
const y = v[0];
|
|
3611
3609
|
if (y === "'")
|
|
3612
|
-
return { isToken: !1, value:
|
|
3610
|
+
return { isToken: !1, value: Ir(v) };
|
|
3613
3611
|
if (Bt[y])
|
|
3614
3612
|
return { isToken: !0, value: v };
|
|
3615
|
-
if (y.match(
|
|
3613
|
+
if (y.match(vr))
|
|
3616
3614
|
throw new RangeError(
|
|
3617
3615
|
"Format string contains an unescaped latin alphabet character `" + y + "`"
|
|
3618
3616
|
);
|
|
@@ -3620,38 +3618,38 @@ function Io(e, t, a) {
|
|
|
3620
3618
|
});
|
|
3621
3619
|
i.localize.preprocessor && (c = i.localize.preprocessor(s, c));
|
|
3622
3620
|
const A = {
|
|
3623
|
-
firstWeekContainsDate:
|
|
3624
|
-
weekStartsOn:
|
|
3621
|
+
firstWeekContainsDate: r,
|
|
3622
|
+
weekStartsOn: o,
|
|
3625
3623
|
locale: i
|
|
3626
3624
|
};
|
|
3627
3625
|
return c.map((v) => {
|
|
3628
3626
|
if (!v.isToken) return v.value;
|
|
3629
3627
|
const y = v.value;
|
|
3630
|
-
(
|
|
3628
|
+
(or(y) || rr(y)) && sr(y, t, String(e));
|
|
3631
3629
|
const M = Bt[y[0]];
|
|
3632
3630
|
return M(s, y, i.localize, A);
|
|
3633
3631
|
}).join("");
|
|
3634
3632
|
}
|
|
3635
|
-
function
|
|
3636
|
-
const t = e.match(
|
|
3637
|
-
return t ? t[1].replace(
|
|
3633
|
+
function Ir(e) {
|
|
3634
|
+
const t = e.match(dr);
|
|
3635
|
+
return t ? t[1].replace(fr, "'") : e;
|
|
3638
3636
|
}
|
|
3639
|
-
const
|
|
3637
|
+
const gr = { class: "av-input__wrapper" }, br = { class: "av-input__control" }, hr = {
|
|
3640
3638
|
key: 0,
|
|
3641
3639
|
class: "av-input__prefix"
|
|
3642
|
-
},
|
|
3640
|
+
}, yr = ["for"], Cr = {
|
|
3643
3641
|
key: 0,
|
|
3644
3642
|
class: "required"
|
|
3645
|
-
},
|
|
3643
|
+
}, Mr = {
|
|
3646
3644
|
key: 0,
|
|
3647
3645
|
class: "av-hint-text"
|
|
3648
|
-
},
|
|
3646
|
+
}, Er = {
|
|
3649
3647
|
key: 0,
|
|
3650
3648
|
class: "caption-light"
|
|
3651
|
-
},
|
|
3649
|
+
}, Nr = {
|
|
3652
3650
|
key: 0,
|
|
3653
3651
|
role: "alert"
|
|
3654
|
-
},
|
|
3652
|
+
}, Tr = { key: 1 }, Dr = /* @__PURE__ */ Q({
|
|
3655
3653
|
inheritAttrs: !1,
|
|
3656
3654
|
__name: "AvInput",
|
|
3657
3655
|
props: {
|
|
@@ -3686,10 +3684,10 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3686
3684
|
v74ffa07a: l(y),
|
|
3687
3685
|
c75a0fd0: M.textareaMinHeight
|
|
3688
3686
|
}));
|
|
3689
|
-
const n = a, i = b(() => e.id ?? `input-${crypto.randomUUID()}`),
|
|
3687
|
+
const n = a, i = b(() => e.id ?? `input-${crypto.randomUUID()}`), r = b(() => e.errorMessage ? Array.isArray(e.errorMessage) ? e.errorMessage : [e.errorMessage] : []), o = b(() => e.validMessage ? Array.isArray(e.validMessage) ? e.validMessage : [e.validMessage] : []), s = b(() => !!e.errorMessage), c = b(() => d(e.minDate)), A = b(() => d(e.maxDate));
|
|
3690
3688
|
function d(M) {
|
|
3691
3689
|
if (!(e.type !== "date" && e.type !== "datetime-local" || M === void 0 || !fa(M)))
|
|
3692
|
-
return
|
|
3690
|
+
return mr(M, "yyyy-MM-dd");
|
|
3693
3691
|
}
|
|
3694
3692
|
const f = U(null), C = () => {
|
|
3695
3693
|
var M;
|
|
@@ -3701,16 +3699,16 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3701
3699
|
return t({
|
|
3702
3700
|
focus: C
|
|
3703
3701
|
}), (M, T) => {
|
|
3704
|
-
const L =
|
|
3702
|
+
const L = pe;
|
|
3705
3703
|
return u(), I("div", {
|
|
3706
3704
|
class: j(["av-input", {
|
|
3707
3705
|
"av-input--date": e.type === "date",
|
|
3708
3706
|
"av-input--no-radius": e.noRadius
|
|
3709
3707
|
}])
|
|
3710
3708
|
}, [
|
|
3711
|
-
g("div",
|
|
3712
|
-
g("div",
|
|
3713
|
-
e.prefixIcon ? (u(), I("div",
|
|
3709
|
+
g("div", gr, [
|
|
3710
|
+
g("div", br, [
|
|
3711
|
+
e.prefixIcon ? (u(), I("div", hr, [
|
|
3714
3712
|
W(ne, {
|
|
3715
3713
|
name: e.prefixIcon,
|
|
3716
3714
|
size: 1.2
|
|
@@ -3725,12 +3723,12 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3725
3723
|
}, [
|
|
3726
3724
|
De(B(e.label) + " ", 1),
|
|
3727
3725
|
P(M.$slots, "requiredTip", {}, () => [
|
|
3728
|
-
e.required ? (u(), I("span",
|
|
3726
|
+
e.required ? (u(), I("span", Cr, "*")) : D("", !0)
|
|
3729
3727
|
], !0),
|
|
3730
|
-
e.hint ? (u(), I("span",
|
|
3728
|
+
e.hint ? (u(), I("span", Mr, B(e.hint), 1)) : D("", !0)
|
|
3731
3729
|
], 2)
|
|
3732
|
-
], 10,
|
|
3733
|
-
(u(),
|
|
3730
|
+
], 10, yr),
|
|
3731
|
+
(u(), p(Me(l(m)), ee({
|
|
3734
3732
|
id: l(i),
|
|
3735
3733
|
ref_key: "__input",
|
|
3736
3734
|
ref: f,
|
|
@@ -3758,29 +3756,29 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3758
3756
|
}, () => {
|
|
3759
3757
|
var N;
|
|
3760
3758
|
return [
|
|
3761
|
-
e.maxlength ? (u(), I("span",
|
|
3759
|
+
e.maxlength ? (u(), I("span", Er, B((N = e.modelValue) == null ? void 0 : N.toString().length) + " / " + B(e.maxlength), 1)) : D("", !0)
|
|
3762
3760
|
];
|
|
3763
3761
|
}, !0)
|
|
3764
3762
|
]),
|
|
3765
|
-
l(
|
|
3763
|
+
l(r).length > 0 ? (u(), I("div", Nr, [
|
|
3766
3764
|
W(L, {
|
|
3767
|
-
message: l(
|
|
3765
|
+
message: l(r),
|
|
3768
3766
|
type: "error"
|
|
3769
3767
|
}, null, 8, ["message"])
|
|
3770
3768
|
])) : D("", !0),
|
|
3771
|
-
l(
|
|
3769
|
+
l(o).length > 0 ? (u(), I("div", Tr, [
|
|
3772
3770
|
W(L, {
|
|
3773
|
-
message: l(
|
|
3771
|
+
message: l(o),
|
|
3774
3772
|
type: "success"
|
|
3775
3773
|
}, null, 8, ["message"])
|
|
3776
3774
|
])) : D("", !0)
|
|
3777
3775
|
], 2);
|
|
3778
3776
|
};
|
|
3779
3777
|
}
|
|
3780
|
-
}), Nt = /* @__PURE__ */ z(
|
|
3778
|
+
}), Nt = /* @__PURE__ */ z(Dr, [["__scopeId", "data-v-dc99341b"]]), Lr = {
|
|
3781
3779
|
class: "av-search-bar",
|
|
3782
3780
|
role: "search"
|
|
3783
|
-
},
|
|
3781
|
+
}, wr = /* @__PURE__ */ Q({
|
|
3784
3782
|
__name: "AvSearchBar",
|
|
3785
3783
|
props: {
|
|
3786
3784
|
id: {},
|
|
@@ -3792,11 +3790,11 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3792
3790
|
emits: ["update:modelValue", "search"],
|
|
3793
3791
|
setup(e, { emit: t }) {
|
|
3794
3792
|
const a = t, n = b(() => e.id ?? `search-bar-${crypto.randomUUID()}`);
|
|
3795
|
-
return (i,
|
|
3796
|
-
const
|
|
3797
|
-
return u(), I("div",
|
|
3793
|
+
return (i, r) => {
|
|
3794
|
+
const o = Nt, s = oe;
|
|
3795
|
+
return u(), I("div", Lr, [
|
|
3798
3796
|
g("div", null, [
|
|
3799
|
-
W(
|
|
3797
|
+
W(o, {
|
|
3800
3798
|
id: l(n),
|
|
3801
3799
|
type: "search",
|
|
3802
3800
|
"no-radius": "",
|
|
@@ -3806,8 +3804,8 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3806
3804
|
disabled: e.disabled,
|
|
3807
3805
|
"aria-disabled": e.disabled,
|
|
3808
3806
|
"label-visible": !1,
|
|
3809
|
-
"onUpdate:modelValue":
|
|
3810
|
-
onKeydown:
|
|
3807
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => a("update:modelValue", (c == null ? void 0 : c.toString()) ?? "")),
|
|
3808
|
+
onKeydown: r[1] || (r[1] = Ae((c) => a("search", e.modelValue), ["enter"]))
|
|
3811
3809
|
}, null, 8, ["id", "placeholder", "model-value", "label", "disabled", "aria-disabled"])
|
|
3812
3810
|
]),
|
|
3813
3811
|
W(s, {
|
|
@@ -3818,12 +3816,12 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3818
3816
|
icon: l(R).MAGNIFY,
|
|
3819
3817
|
disabled: e.disabled,
|
|
3820
3818
|
"aria-disabled": e.disabled,
|
|
3821
|
-
onClick:
|
|
3819
|
+
onClick: r[2] || (r[2] = (c) => a("search", e.modelValue))
|
|
3822
3820
|
}, null, 8, ["label", "icon", "disabled", "aria-disabled"])
|
|
3823
3821
|
]);
|
|
3824
3822
|
};
|
|
3825
3823
|
}
|
|
3826
|
-
}), Vt = /* @__PURE__ */ z(
|
|
3824
|
+
}), Vt = /* @__PURE__ */ z(wr, [["__scopeId", "data-v-ecbc647b"]]), Or = ["role", "aria-label", "aria-labelledby", "aria-describedby"], Sr = /* @__PURE__ */ Q({
|
|
3827
3825
|
__name: "AvList",
|
|
3828
3826
|
props: {
|
|
3829
3827
|
backgroundColor: { default: "transparent" },
|
|
@@ -3846,7 +3844,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3846
3844
|
v718f62b9: i.borderColor
|
|
3847
3845
|
}));
|
|
3848
3846
|
const t = b(() => `av-list--${e.size}`), a = b(() => e.bordered ? "av-list--bordered" : ""), n = b(() => e.divided ? "av-list--divided" : "");
|
|
3849
|
-
return (i,
|
|
3847
|
+
return (i, r) => (u(), I("div", {
|
|
3850
3848
|
class: j(["av-list", [l(t), l(a), l(n)]]),
|
|
3851
3849
|
role: e.role,
|
|
3852
3850
|
"aria-label": e.ariaLabel,
|
|
@@ -3854,18 +3852,18 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3854
3852
|
"aria-describedby": e.ariaDescribedby
|
|
3855
3853
|
}, [
|
|
3856
3854
|
P(i.$slots, "default", {}, void 0, !0)
|
|
3857
|
-
], 10,
|
|
3855
|
+
], 10, Or));
|
|
3858
3856
|
}
|
|
3859
|
-
}), Ia = /* @__PURE__ */ z(
|
|
3857
|
+
}), Ia = /* @__PURE__ */ z(Sr, [["__scopeId", "data-v-f74989f7"]]), Qr = ["role"], xr = {
|
|
3860
3858
|
key: 0,
|
|
3861
3859
|
class: "av-list-item__icon"
|
|
3862
|
-
},
|
|
3860
|
+
}, pr = { class: "av-list-item__content" }, kr = {
|
|
3863
3861
|
key: 0,
|
|
3864
3862
|
class: "av-list-item__title"
|
|
3865
|
-
},
|
|
3863
|
+
}, jr = {
|
|
3866
3864
|
key: 1,
|
|
3867
3865
|
class: "av-list-item__description"
|
|
3868
|
-
},
|
|
3866
|
+
}, zr = { key: 2 }, Br = /* @__PURE__ */ Q({
|
|
3869
3867
|
__name: "AvListItem",
|
|
3870
3868
|
props: {
|
|
3871
3869
|
icon: {},
|
|
@@ -3901,7 +3899,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3901
3899
|
var d;
|
|
3902
3900
|
!e.clickable || e.disabled || (d = e.onClick) == null || d.call(e, A);
|
|
3903
3901
|
}
|
|
3904
|
-
function
|
|
3902
|
+
function r(A) {
|
|
3905
3903
|
var d;
|
|
3906
3904
|
if (!(!e.clickable || e.disabled) && (A.key === "Enter" || A.key === " ")) {
|
|
3907
3905
|
A.preventDefault();
|
|
@@ -3912,10 +3910,10 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3912
3910
|
(d = e.onClick) == null || d.call(e, f);
|
|
3913
3911
|
}
|
|
3914
3912
|
}
|
|
3915
|
-
const
|
|
3913
|
+
const o = b(() => e.clickable ? "av-list-item--clickable" : ""), s = b(() => e.disabled ? "av-list-item--disabled" : ""), c = b(() => e.selected ? "av-list-item--selected" : "");
|
|
3916
3914
|
return (A, d) => (u(), I("div", { role: e.role }, [
|
|
3917
|
-
(u(),
|
|
3918
|
-
class: j(["av-list-item", [l(
|
|
3915
|
+
(u(), p(Me(l(a)), {
|
|
3916
|
+
class: j(["av-list-item", [l(o), l(s), l(c)]]),
|
|
3919
3917
|
tabindex: e.clickable && !e.disabled ? 0 : void 0,
|
|
3920
3918
|
"aria-label": e.clickable ? l(n) : void 0,
|
|
3921
3919
|
"aria-describedby": e.ariaDescribedby,
|
|
@@ -3925,29 +3923,29 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3925
3923
|
target: l(a) === "a" ? e.target : void 0,
|
|
3926
3924
|
rel: l(a) === "a" ? e.rel : void 0,
|
|
3927
3925
|
onClick: i,
|
|
3928
|
-
onKeydown:
|
|
3926
|
+
onKeydown: r
|
|
3929
3927
|
}, {
|
|
3930
3928
|
default: G(() => [
|
|
3931
|
-
e.icon ? (u(), I("div",
|
|
3929
|
+
e.icon ? (u(), I("div", xr, [
|
|
3932
3930
|
W(ne, {
|
|
3933
3931
|
name: e.icon,
|
|
3934
3932
|
color: e.iconColor ?? e.color,
|
|
3935
3933
|
size: e.iconSize
|
|
3936
3934
|
}, null, 8, ["name", "color", "size"])
|
|
3937
3935
|
])) : D("", !0),
|
|
3938
|
-
g("div",
|
|
3939
|
-
e.title ? (u(), I("div",
|
|
3940
|
-
e.description ? (u(), I("div",
|
|
3941
|
-
t.default ? (u(), I("div",
|
|
3936
|
+
g("div", pr, [
|
|
3937
|
+
e.title ? (u(), I("div", kr, B(e.title), 1)) : D("", !0),
|
|
3938
|
+
e.description ? (u(), I("div", jr, B(e.description), 1)) : D("", !0),
|
|
3939
|
+
t.default ? (u(), I("div", zr, [
|
|
3942
3940
|
P(A.$slots, "default", {}, void 0, !0)
|
|
3943
3941
|
])) : D("", !0)
|
|
3944
3942
|
])
|
|
3945
3943
|
]),
|
|
3946
3944
|
_: 3
|
|
3947
3945
|
}, 40, ["class", "tabindex", "aria-label", "aria-describedby", "aria-disabled", "disabled", "href", "target", "rel"]))
|
|
3948
|
-
], 8,
|
|
3946
|
+
], 8, Qr));
|
|
3949
3947
|
}
|
|
3950
|
-
}), ga = /* @__PURE__ */ z(
|
|
3948
|
+
}), ga = /* @__PURE__ */ z(Br, [["__scopeId", "data-v-51545aa6"]]), Pr = { class: "av-select-container" }, Wr = /* @__PURE__ */ Q({
|
|
3951
3949
|
__name: "AvTagPicker",
|
|
3952
3950
|
props: {
|
|
3953
3951
|
multiple: { type: Boolean },
|
|
@@ -3966,19 +3964,19 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3966
3964
|
label: a,
|
|
3967
3965
|
labelColor: n,
|
|
3968
3966
|
labelTypographyClass: i,
|
|
3969
|
-
selected:
|
|
3970
|
-
multiple:
|
|
3967
|
+
selected: r,
|
|
3968
|
+
multiple: o,
|
|
3971
3969
|
handleSelectChange: s
|
|
3972
3970
|
} = t, c = b(() => ln(t.options));
|
|
3973
3971
|
function A(y) {
|
|
3974
3972
|
return y ? Array.isArray(y) ? y : [y] : [];
|
|
3975
3973
|
}
|
|
3976
|
-
const d = U(A(
|
|
3974
|
+
const d = U(A(r));
|
|
3977
3975
|
function f(y) {
|
|
3978
3976
|
return d.value.some((M) => M.value === y.value);
|
|
3979
3977
|
}
|
|
3980
3978
|
function C(y) {
|
|
3981
|
-
|
|
3979
|
+
o ? (f(y) ? d.value = d.value.filter(
|
|
3982
3980
|
(T) => T.value !== y.value
|
|
3983
3981
|
) : d.value.push(y), s([...d.value])) : (d.value = [y], s(y));
|
|
3984
3982
|
}
|
|
@@ -3986,11 +3984,11 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3986
3984
|
return f(y) ? R.CHECK : void 0;
|
|
3987
3985
|
}
|
|
3988
3986
|
function v(y) {
|
|
3989
|
-
return f(y) && !
|
|
3987
|
+
return f(y) && !o;
|
|
3990
3988
|
}
|
|
3991
|
-
return
|
|
3989
|
+
return re(() => t.selected, (y) => {
|
|
3992
3990
|
d.value = A(y);
|
|
3993
|
-
}, { immediate: !0 }), (y, M) => (u(), I("div",
|
|
3991
|
+
}, { immediate: !0 }), (y, M) => (u(), I("div", Pr, [
|
|
3994
3992
|
l(a) ? (u(), I("span", {
|
|
3995
3993
|
key: 0,
|
|
3996
3994
|
class: j(["av-select-label", [l(i)]])
|
|
@@ -4014,14 +4012,14 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
4014
4012
|
]))), 128))
|
|
4015
4013
|
]));
|
|
4016
4014
|
}
|
|
4017
|
-
}),
|
|
4015
|
+
}), Ur = /* @__PURE__ */ z(Wr, [["__scopeId", "data-v-f6ec3112"]]);
|
|
4018
4016
|
var ba = /* @__PURE__ */ ((e) => (e[e.FOUR = 4] = "FOUR", e[e.EIGHT = 8] = "EIGHT", e[e.TWELVE = 12] = "TWELVE", e))(ba || {});
|
|
4019
4017
|
const DA = [
|
|
4020
4018
|
4,
|
|
4021
4019
|
8,
|
|
4022
4020
|
12
|
|
4023
4021
|
/* TWELVE */
|
|
4024
|
-
],
|
|
4022
|
+
], Vr = { class: "pagination-size-picker-container" }, Hr = /* @__PURE__ */ Q({
|
|
4025
4023
|
__name: "AvPageSizePicker",
|
|
4026
4024
|
props: {
|
|
4027
4025
|
label: {},
|
|
@@ -4036,8 +4034,8 @@ const DA = [
|
|
|
4036
4034
|
label: e.pageSizeSelected.toString(),
|
|
4037
4035
|
value: e.pageSizeSelected.toString()
|
|
4038
4036
|
}));
|
|
4039
|
-
return (n, i) => (u(), I("div",
|
|
4040
|
-
W(
|
|
4037
|
+
return (n, i) => (u(), I("div", Vr, [
|
|
4038
|
+
W(Ur, {
|
|
4041
4039
|
options: l(t),
|
|
4042
4040
|
selected: l(a),
|
|
4043
4041
|
"handle-select-change": e.handleSelectChange,
|
|
@@ -4048,7 +4046,7 @@ const DA = [
|
|
|
4048
4046
|
}, null, 8, ["options", "selected", "handle-select-change", "label"])
|
|
4049
4047
|
]));
|
|
4050
4048
|
}
|
|
4051
|
-
}), LA = /* @__PURE__ */ z(
|
|
4049
|
+
}), LA = /* @__PURE__ */ z(Hr, [["__scopeId", "data-v-d72fe5ab"]]), Rr = /* @__PURE__ */ Q({
|
|
4052
4050
|
__name: "AvRadioButton",
|
|
4053
4051
|
props: {
|
|
4054
4052
|
value: { type: [String, Number, Boolean] },
|
|
@@ -4059,7 +4057,7 @@ const DA = [
|
|
|
4059
4057
|
setup(e) {
|
|
4060
4058
|
return (t, a) => P(t.$slots, "default");
|
|
4061
4059
|
}
|
|
4062
|
-
}),
|
|
4060
|
+
}), Zr = ["id", "name", "value", "checked", "disabled"], Xr = ["for"], Yr = /* @__PURE__ */ Q({
|
|
4063
4061
|
__name: "RadioButton",
|
|
4064
4062
|
props: {
|
|
4065
4063
|
value: { type: [String, Number, Boolean] },
|
|
@@ -4072,9 +4070,9 @@ const DA = [
|
|
|
4072
4070
|
emits: ["update:modelValue"],
|
|
4073
4071
|
setup(e, { emit: t }) {
|
|
4074
4072
|
const a = t, n = U(`av-radio-button-${crypto.randomUUID()}`);
|
|
4075
|
-
return (i,
|
|
4076
|
-
const
|
|
4077
|
-
return u(),
|
|
4073
|
+
return (i, r) => {
|
|
4074
|
+
const o = $t;
|
|
4075
|
+
return u(), p(o, {
|
|
4078
4076
|
inline: e.inline,
|
|
4079
4077
|
disabled: e.disabled
|
|
4080
4078
|
}, {
|
|
@@ -4092,21 +4090,21 @@ const DA = [
|
|
|
4092
4090
|
checked: e.modelValue === e.value,
|
|
4093
4091
|
disabled: e.disabled
|
|
4094
4092
|
}, i.$attrs, {
|
|
4095
|
-
onClick:
|
|
4096
|
-
}), null, 16,
|
|
4093
|
+
onClick: r[0] || (r[0] = (s) => a("update:modelValue", e.value))
|
|
4094
|
+
}), null, 16, Zr),
|
|
4097
4095
|
g("label", {
|
|
4098
4096
|
for: l(n),
|
|
4099
4097
|
class: "av-label"
|
|
4100
4098
|
}, [
|
|
4101
4099
|
P(i.$slots, "default", {}, void 0, !0)
|
|
4102
|
-
], 8,
|
|
4100
|
+
], 8, Xr)
|
|
4103
4101
|
], 2)
|
|
4104
4102
|
]),
|
|
4105
4103
|
_: 3
|
|
4106
4104
|
}, 8, ["inline", "disabled"]);
|
|
4107
4105
|
};
|
|
4108
4106
|
}
|
|
4109
|
-
}),
|
|
4107
|
+
}), qr = /* @__PURE__ */ z(Yr, [["__scopeId", "data-v-33d4a9ed"]]), wA = /* @__PURE__ */ Q({
|
|
4110
4108
|
__name: "AvRadioButtonSet",
|
|
4111
4109
|
props: {
|
|
4112
4110
|
id: {},
|
|
@@ -4123,13 +4121,13 @@ const DA = [
|
|
|
4123
4121
|
},
|
|
4124
4122
|
emits: ["update:modelValue"],
|
|
4125
4123
|
setup(e, { expose: t, emit: a }) {
|
|
4126
|
-
const n = a, i = b(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`),
|
|
4127
|
-
function
|
|
4124
|
+
const n = a, i = b(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`), r = b(() => e.errorMessage || e.validMessage);
|
|
4125
|
+
function o(m) {
|
|
4128
4126
|
m !== e.modelValue && n("update:modelValue", m);
|
|
4129
4127
|
}
|
|
4130
|
-
const s = b(() =>
|
|
4128
|
+
const s = b(() => r.value ? `messages-${i.value}` : void 0), c = fe();
|
|
4131
4129
|
function A(m) {
|
|
4132
|
-
return m != null && typeof m == "object" && "type" in m && m.type ===
|
|
4130
|
+
return m != null && typeof m == "object" && "type" in m && m.type === Rr;
|
|
4133
4131
|
}
|
|
4134
4132
|
function d(m) {
|
|
4135
4133
|
return m ? m.flatMap((v) => !v || typeof v != "object" || !("type" in v) ? [] : v.type === $ && Array.isArray(v.children) ? d(v.children) : A(v) ? [v] : []) : [];
|
|
@@ -4138,13 +4136,13 @@ const DA = [
|
|
|
4138
4136
|
var m;
|
|
4139
4137
|
return d((m = c.default) == null ? void 0 : m.call(c));
|
|
4140
4138
|
}), C = U(e.modelValue);
|
|
4141
|
-
return
|
|
4139
|
+
return re(() => e.modelValue, (m) => {
|
|
4142
4140
|
C.value = m;
|
|
4143
|
-
}),
|
|
4141
|
+
}), re(C, (m) => {
|
|
4144
4142
|
m && n("update:modelValue", m);
|
|
4145
4143
|
}), t({ selected: C }), (m, v) => {
|
|
4146
4144
|
const y = Jt;
|
|
4147
|
-
return u(),
|
|
4145
|
+
return u(), p(y, {
|
|
4148
4146
|
id: l(i),
|
|
4149
4147
|
legend: e.legend,
|
|
4150
4148
|
hint: e.hint,
|
|
@@ -4160,12 +4158,12 @@ const DA = [
|
|
|
4160
4158
|
default: G(() => [
|
|
4161
4159
|
(u(!0), I($, null, ie(l(f), (M, T) => {
|
|
4162
4160
|
var L, N;
|
|
4163
|
-
return u(),
|
|
4161
|
+
return u(), p(qr, {
|
|
4164
4162
|
key: T,
|
|
4165
4163
|
modelValue: l(C),
|
|
4166
4164
|
"onUpdate:modelValue": [
|
|
4167
4165
|
v[0] || (v[0] = (O) => Ct(C) ? C.value = O : null),
|
|
4168
|
-
v[1] || (v[1] = (O) =>
|
|
4166
|
+
v[1] || (v[1] = (O) => o(O))
|
|
4169
4167
|
],
|
|
4170
4168
|
value: (L = M.props) == null ? void 0 : L.value,
|
|
4171
4169
|
disabled: ((N = M.props) == null ? void 0 : N.disabled) ?? e.disabled,
|
|
@@ -4176,7 +4174,7 @@ const DA = [
|
|
|
4176
4174
|
default: G(() => {
|
|
4177
4175
|
var O;
|
|
4178
4176
|
return [
|
|
4179
|
-
(u(),
|
|
4177
|
+
(u(), p(Me((O = M.children) == null ? void 0 : O.default)))
|
|
4180
4178
|
];
|
|
4181
4179
|
}),
|
|
4182
4180
|
_: 2
|
|
@@ -4196,51 +4194,51 @@ function Tt() {
|
|
|
4196
4194
|
throw new Error("useAutocompleteContext must be used within AvAutocomplete component");
|
|
4197
4195
|
return e;
|
|
4198
4196
|
}
|
|
4199
|
-
var
|
|
4200
|
-
function
|
|
4201
|
-
var t =
|
|
4197
|
+
var Fr = typeof global == "object" && global && global.Object === Object && global, Kr = typeof self == "object" && self && self.Object === Object && self, ya = Fr || Kr || Function("return this")(), et = ya.Symbol, Ca = Object.prototype, Gr = Ca.hasOwnProperty, Jr = Ca.toString, Ue = et ? et.toStringTag : void 0;
|
|
4198
|
+
function $r(e) {
|
|
4199
|
+
var t = Gr.call(e, Ue), a = e[Ue];
|
|
4202
4200
|
try {
|
|
4203
4201
|
e[Ue] = void 0;
|
|
4204
4202
|
var n = !0;
|
|
4205
4203
|
} catch {
|
|
4206
4204
|
}
|
|
4207
|
-
var i =
|
|
4205
|
+
var i = Jr.call(e);
|
|
4208
4206
|
return n && (t ? e[Ue] = a : delete e[Ue]), i;
|
|
4209
4207
|
}
|
|
4210
|
-
var
|
|
4211
|
-
function
|
|
4212
|
-
return
|
|
4208
|
+
var _r = Object.prototype, eo = _r.toString;
|
|
4209
|
+
function to(e) {
|
|
4210
|
+
return eo.call(e);
|
|
4213
4211
|
}
|
|
4214
|
-
var
|
|
4215
|
-
function
|
|
4216
|
-
return e == null ? e === void 0 ?
|
|
4212
|
+
var ao = "[object Null]", no = "[object Undefined]", Ht = et ? et.toStringTag : void 0;
|
|
4213
|
+
function io(e) {
|
|
4214
|
+
return e == null ? e === void 0 ? no : ao : Ht && Ht in Object(e) ? $r(e) : to(e);
|
|
4217
4215
|
}
|
|
4218
|
-
function
|
|
4216
|
+
function lo(e) {
|
|
4219
4217
|
return e != null && typeof e == "object";
|
|
4220
4218
|
}
|
|
4221
|
-
var
|
|
4222
|
-
function
|
|
4223
|
-
return typeof e == "symbol" ||
|
|
4219
|
+
var ro = "[object Symbol]";
|
|
4220
|
+
function oo(e) {
|
|
4221
|
+
return typeof e == "symbol" || lo(e) && io(e) == ro;
|
|
4224
4222
|
}
|
|
4225
|
-
var
|
|
4226
|
-
function
|
|
4227
|
-
for (var t = e.length; t-- &&
|
|
4223
|
+
var so = /\s/;
|
|
4224
|
+
function co(e) {
|
|
4225
|
+
for (var t = e.length; t-- && so.test(e.charAt(t)); )
|
|
4228
4226
|
;
|
|
4229
4227
|
return t;
|
|
4230
4228
|
}
|
|
4231
|
-
var
|
|
4232
|
-
function
|
|
4233
|
-
return e && e.slice(0,
|
|
4229
|
+
var Ao = /^\s+/;
|
|
4230
|
+
function uo(e) {
|
|
4231
|
+
return e && e.slice(0, co(e) + 1).replace(Ao, "");
|
|
4234
4232
|
}
|
|
4235
4233
|
function mt(e) {
|
|
4236
4234
|
var t = typeof e;
|
|
4237
4235
|
return e != null && (t == "object" || t == "function");
|
|
4238
4236
|
}
|
|
4239
|
-
var Rt = NaN,
|
|
4237
|
+
var Rt = NaN, fo = /^[-+]0x[0-9a-f]+$/i, vo = /^0b[01]+$/i, mo = /^0o[0-7]+$/i, Io = parseInt;
|
|
4240
4238
|
function Zt(e) {
|
|
4241
4239
|
if (typeof e == "number")
|
|
4242
4240
|
return e;
|
|
4243
|
-
if (
|
|
4241
|
+
if (oo(e))
|
|
4244
4242
|
return Rt;
|
|
4245
4243
|
if (mt(e)) {
|
|
4246
4244
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -4248,32 +4246,32 @@ function Zt(e) {
|
|
|
4248
4246
|
}
|
|
4249
4247
|
if (typeof e != "string")
|
|
4250
4248
|
return e === 0 ? e : +e;
|
|
4251
|
-
e =
|
|
4252
|
-
var a =
|
|
4253
|
-
return a ||
|
|
4249
|
+
e = uo(e);
|
|
4250
|
+
var a = vo.test(e);
|
|
4251
|
+
return a || mo.test(e) ? Io(e.slice(2), a ? 2 : 8) : fo.test(e) ? Rt : +e;
|
|
4254
4252
|
}
|
|
4255
4253
|
var At = function() {
|
|
4256
4254
|
return ya.Date.now();
|
|
4257
|
-
},
|
|
4255
|
+
}, go = "Expected a function", bo = Math.max, ho = Math.min;
|
|
4258
4256
|
function Ma(e, t, a) {
|
|
4259
|
-
var n, i,
|
|
4257
|
+
var n, i, r, o, s, c, A = 0, d = !1, f = !1, C = !0;
|
|
4260
4258
|
if (typeof e != "function")
|
|
4261
|
-
throw new TypeError(
|
|
4262
|
-
t = Zt(t) || 0, mt(a) && (d = !!a.leading, f = "maxWait" in a,
|
|
4259
|
+
throw new TypeError(go);
|
|
4260
|
+
t = Zt(t) || 0, mt(a) && (d = !!a.leading, f = "maxWait" in a, r = f ? bo(Zt(a.maxWait) || 0, t) : r, C = "trailing" in a ? !!a.trailing : C);
|
|
4263
4261
|
function m(Z) {
|
|
4264
4262
|
var F = n, te = i;
|
|
4265
|
-
return n = i = void 0, A = Z,
|
|
4263
|
+
return n = i = void 0, A = Z, o = e.apply(te, F), o;
|
|
4266
4264
|
}
|
|
4267
4265
|
function v(Z) {
|
|
4268
|
-
return A = Z, s = setTimeout(T, t), d ? m(Z) :
|
|
4266
|
+
return A = Z, s = setTimeout(T, t), d ? m(Z) : o;
|
|
4269
4267
|
}
|
|
4270
4268
|
function y(Z) {
|
|
4271
4269
|
var F = Z - c, te = Z - A, x = t - F;
|
|
4272
|
-
return f ?
|
|
4270
|
+
return f ? ho(x, r - te) : x;
|
|
4273
4271
|
}
|
|
4274
4272
|
function M(Z) {
|
|
4275
4273
|
var F = Z - c, te = Z - A;
|
|
4276
|
-
return c === void 0 || F >= t || F < 0 || f && te >=
|
|
4274
|
+
return c === void 0 || F >= t || F < 0 || f && te >= r;
|
|
4277
4275
|
}
|
|
4278
4276
|
function T() {
|
|
4279
4277
|
var Z = At();
|
|
@@ -4282,13 +4280,13 @@ function Ma(e, t, a) {
|
|
|
4282
4280
|
s = setTimeout(T, y(Z));
|
|
4283
4281
|
}
|
|
4284
4282
|
function L(Z) {
|
|
4285
|
-
return s = void 0, C && n ? m(Z) : (n = i = void 0,
|
|
4283
|
+
return s = void 0, C && n ? m(Z) : (n = i = void 0, o);
|
|
4286
4284
|
}
|
|
4287
4285
|
function N() {
|
|
4288
4286
|
s !== void 0 && clearTimeout(s), A = 0, n = c = i = s = void 0;
|
|
4289
4287
|
}
|
|
4290
4288
|
function O() {
|
|
4291
|
-
return s === void 0 ?
|
|
4289
|
+
return s === void 0 ? o : L(At());
|
|
4292
4290
|
}
|
|
4293
4291
|
function V() {
|
|
4294
4292
|
var Z = At(), F = M(Z);
|
|
@@ -4298,26 +4296,26 @@ function Ma(e, t, a) {
|
|
|
4298
4296
|
if (f)
|
|
4299
4297
|
return clearTimeout(s), s = setTimeout(T, t), m(c);
|
|
4300
4298
|
}
|
|
4301
|
-
return s === void 0 && (s = setTimeout(T, t)),
|
|
4299
|
+
return s === void 0 && (s = setTimeout(T, t)), o;
|
|
4302
4300
|
}
|
|
4303
4301
|
return V.cancel = N, V.flush = O, V;
|
|
4304
4302
|
}
|
|
4305
|
-
const
|
|
4303
|
+
const yo = {
|
|
4306
4304
|
key: 0,
|
|
4307
4305
|
class: "av-autocomplete-dropdown__loading"
|
|
4308
|
-
},
|
|
4306
|
+
}, Co = {
|
|
4309
4307
|
key: 1,
|
|
4310
4308
|
class: "av-autocomplete-dropdown__empty"
|
|
4311
|
-
},
|
|
4309
|
+
}, Mo = {
|
|
4312
4310
|
key: 1,
|
|
4313
4311
|
class: "av-autocomplete-dropdown__empty-text"
|
|
4314
|
-
},
|
|
4312
|
+
}, Eo = /* @__PURE__ */ Q({
|
|
4315
4313
|
__name: "AvAutocompleteDropdown",
|
|
4316
4314
|
emits: ["loadMore"],
|
|
4317
4315
|
setup(e, { expose: t, emit: a }) {
|
|
4318
4316
|
const n = a, i = fe(), {
|
|
4319
|
-
selectedItems:
|
|
4320
|
-
searchQuery:
|
|
4317
|
+
selectedItems: r,
|
|
4318
|
+
searchQuery: o,
|
|
4321
4319
|
isOpen: s,
|
|
4322
4320
|
props: c,
|
|
4323
4321
|
getOptionId: A,
|
|
@@ -4327,7 +4325,7 @@ const yr = {
|
|
|
4327
4325
|
return [];
|
|
4328
4326
|
if (c.serverSideFiltering)
|
|
4329
4327
|
return c.maxResults ? c.options.slice(0, c.maxResults) : c.options;
|
|
4330
|
-
const N =
|
|
4328
|
+
const N = o.value.toLowerCase().trim();
|
|
4331
4329
|
if (!N) {
|
|
4332
4330
|
const V = c.options;
|
|
4333
4331
|
return c.maxResults ? V.slice(0, c.maxResults) : V;
|
|
@@ -4336,28 +4334,28 @@ const yr = {
|
|
|
4336
4334
|
return c.filterOptions ? O = c.filterOptions(c.options, N) : O = c.options.filter((V) => d(V).toLowerCase().includes(N)), c.maxResults ? O.slice(0, c.maxResults) : O;
|
|
4337
4335
|
}), v = b(() => c.loading ? Qe.LOADING : s.value && c.options && c.options.length > 0 && m.value.length > 0 ? Qe.HAS_OPTIONS : Qe.NO_OPTIONS);
|
|
4338
4336
|
function y(N) {
|
|
4339
|
-
return
|
|
4337
|
+
return r.value.some(
|
|
4340
4338
|
(O) => A(O) === A(N)
|
|
4341
4339
|
);
|
|
4342
4340
|
}
|
|
4343
4341
|
function M(N) {
|
|
4344
4342
|
if (!c.multiSelect) {
|
|
4345
|
-
|
|
4343
|
+
r.value = [N], s.value = !1, o.value = "";
|
|
4346
4344
|
return;
|
|
4347
4345
|
}
|
|
4348
|
-
const O =
|
|
4346
|
+
const O = r.value, V = A(N);
|
|
4349
4347
|
O.some(
|
|
4350
4348
|
(F) => A(F) === V
|
|
4351
|
-
) ?
|
|
4349
|
+
) ? r.value = O.filter(
|
|
4352
4350
|
(F) => A(F) !== V
|
|
4353
|
-
) :
|
|
4351
|
+
) : r.value = [...O, N];
|
|
4354
4352
|
}
|
|
4355
4353
|
const { arrivedState: T } = ti(C, {
|
|
4356
4354
|
throttle: 100
|
|
4357
4355
|
}), L = Ma(() => {
|
|
4358
4356
|
n("loadMore");
|
|
4359
4357
|
}, c.loadMoreThrottleDelay);
|
|
4360
|
-
return
|
|
4358
|
+
return re(() => T.bottom, (N) => {
|
|
4361
4359
|
c.enableLoadMore && N && s.value && L();
|
|
4362
4360
|
}), ve(() => {
|
|
4363
4361
|
L.cancel();
|
|
@@ -4370,16 +4368,16 @@ const yr = {
|
|
|
4370
4368
|
class: j(["av-autocomplete-dropdown", l(c).dropdownClass]),
|
|
4371
4369
|
style: ce({ width: l(c).dropdownWidth, maxHeight: l(c).maxDropdownHeight })
|
|
4372
4370
|
}, [
|
|
4373
|
-
l(v) === l(Qe).LOADING ? (u(), I("div",
|
|
4371
|
+
l(v) === l(Qe).LOADING ? (u(), I("div", yo, [
|
|
4374
4372
|
W(ne, {
|
|
4375
4373
|
name: l(R).LOADING,
|
|
4376
4374
|
size: 1.5,
|
|
4377
4375
|
class: "av-autocomplete-dropdown__spinner"
|
|
4378
4376
|
}, null, 8, ["name"]),
|
|
4379
4377
|
O[0] || (O[0] = g("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
4380
|
-
])) : l(v) === l(Qe).NO_OPTIONS ? (u(), I("div",
|
|
4381
|
-
i.empty ? P(N.$slots, "empty", { key: 0 }, void 0, !0) : (u(), I("div",
|
|
4382
|
-
])) : (u(),
|
|
4378
|
+
])) : l(v) === l(Qe).NO_OPTIONS ? (u(), I("div", Co, [
|
|
4379
|
+
i.empty ? P(N.$slots, "empty", { key: 0 }, void 0, !0) : (u(), I("div", Mo, " No results found "))
|
|
4380
|
+
])) : (u(), p(Ia, ee({
|
|
4383
4381
|
key: 2,
|
|
4384
4382
|
ref_key: "listRef",
|
|
4385
4383
|
ref: C
|
|
@@ -4395,7 +4393,7 @@ const yr = {
|
|
|
4395
4393
|
option: V,
|
|
4396
4394
|
isSelected: y(V),
|
|
4397
4395
|
toggle: () => M(V)
|
|
4398
|
-
}, void 0, !0) : (u(),
|
|
4396
|
+
}, void 0, !0) : (u(), p(ga, {
|
|
4399
4397
|
key: 1,
|
|
4400
4398
|
title: l(d)(V),
|
|
4401
4399
|
icon: y(V) ? l(R).CHECK : void 0,
|
|
@@ -4411,42 +4409,42 @@ const yr = {
|
|
|
4411
4409
|
}, 16, ["class"]))
|
|
4412
4410
|
], 6)) : D("", !0);
|
|
4413
4411
|
}
|
|
4414
|
-
}),
|
|
4412
|
+
}), No = /* @__PURE__ */ z(Eo, [["__scopeId", "data-v-32439dba"]]), To = { class: "av-autocomplete-input" }, Do = {
|
|
4415
4413
|
key: 0,
|
|
4416
4414
|
class: "av-autocomplete-input__suffix"
|
|
4417
|
-
},
|
|
4415
|
+
}, Lo = /* @__PURE__ */ Q({
|
|
4418
4416
|
__name: "AvAutocompleteInput",
|
|
4419
4417
|
emits: ["search", "clear"],
|
|
4420
4418
|
setup(e, { expose: t, emit: a }) {
|
|
4421
4419
|
const n = a, i = fe(), {
|
|
4422
|
-
selectedItems:
|
|
4423
|
-
searchQuery:
|
|
4420
|
+
selectedItems: r,
|
|
4421
|
+
searchQuery: o,
|
|
4424
4422
|
isOpen: s,
|
|
4425
4423
|
props: c,
|
|
4426
4424
|
inputId: A,
|
|
4427
4425
|
handleBlur: d,
|
|
4428
4426
|
getDisplayLabel: f
|
|
4429
|
-
} = Tt(), C = U(), m = b(() => !c.multiSelect &&
|
|
4427
|
+
} = Tt(), C = U(), m = b(() => !c.multiSelect && r.value.length > 0 ? f(r.value[0]) : c.multiSelect && r.value.length > 0 ? c.showSelectedSection ? `${r.value.length} element(s) selected` : r.value.map(f).join(", ") : o.value), v = b(() => {
|
|
4430
4428
|
var N;
|
|
4431
4429
|
return ((N = c.inputOptions) == null ? void 0 : N.placeholder) || "Search...";
|
|
4432
4430
|
}), y = Ma((N) => {
|
|
4433
|
-
|
|
4431
|
+
o.value = N, n("search", N);
|
|
4434
4432
|
}, c.debounceDelay);
|
|
4435
4433
|
function M(N) {
|
|
4436
|
-
|
|
4434
|
+
o.value = String(N || ""), y(o.value);
|
|
4437
4435
|
}
|
|
4438
4436
|
function T() {
|
|
4439
4437
|
s.value = !0;
|
|
4440
4438
|
}
|
|
4441
4439
|
function L() {
|
|
4442
|
-
|
|
4440
|
+
r.value = [], o.value = "", n("clear");
|
|
4443
4441
|
}
|
|
4444
4442
|
return ve(() => {
|
|
4445
4443
|
y.cancel();
|
|
4446
4444
|
}), t({
|
|
4447
4445
|
inputRef: C,
|
|
4448
|
-
searchQuery: b(() =>
|
|
4449
|
-
}), (N, O) => (u(), I("div",
|
|
4446
|
+
searchQuery: b(() => o.value)
|
|
4447
|
+
}), (N, O) => (u(), I("div", To, [
|
|
4450
4448
|
W(Nt, ee({
|
|
4451
4449
|
id: l(A),
|
|
4452
4450
|
ref_key: "inputRef",
|
|
@@ -4462,13 +4460,13 @@ const yr = {
|
|
|
4462
4460
|
i.requiredTip ? {
|
|
4463
4461
|
name: "requiredTip",
|
|
4464
4462
|
fn: G(() => [
|
|
4465
|
-
(u(),
|
|
4463
|
+
(u(), p(Me(i.requiredTip)))
|
|
4466
4464
|
]),
|
|
4467
4465
|
key: "0"
|
|
4468
4466
|
} : void 0
|
|
4469
4467
|
]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
|
|
4470
|
-
l(
|
|
4471
|
-
W(
|
|
4468
|
+
l(r).length > 0 ? (u(), I("div", Do, [
|
|
4469
|
+
W(oe, {
|
|
4472
4470
|
label: "Clear selected items",
|
|
4473
4471
|
icon: l(R).CLOSE_CIRCLE_OUTLINE,
|
|
4474
4472
|
"icon-only": "",
|
|
@@ -4480,25 +4478,25 @@ const yr = {
|
|
|
4480
4478
|
])) : D("", !0)
|
|
4481
4479
|
]));
|
|
4482
4480
|
}
|
|
4483
|
-
}),
|
|
4481
|
+
}), wo = /* @__PURE__ */ z(Lo, [["__scopeId", "data-v-318a09bc"]]), Oo = {
|
|
4484
4482
|
key: 0,
|
|
4485
4483
|
class: "av-autocomplete-selected-tags"
|
|
4486
|
-
},
|
|
4484
|
+
}, So = /* @__PURE__ */ Q({
|
|
4487
4485
|
__name: "AvAutocompleteSelectedTags",
|
|
4488
4486
|
setup(e) {
|
|
4489
4487
|
const t = fe(), {
|
|
4490
4488
|
selectedItems: a,
|
|
4491
4489
|
props: n,
|
|
4492
4490
|
getOptionId: i,
|
|
4493
|
-
getDisplayLabel:
|
|
4491
|
+
getDisplayLabel: r
|
|
4494
4492
|
} = Tt();
|
|
4495
|
-
function
|
|
4493
|
+
function o(s) {
|
|
4496
4494
|
const c = a.value, A = i(s);
|
|
4497
4495
|
a.value = c.filter(
|
|
4498
4496
|
(d) => i(d) !== A
|
|
4499
4497
|
);
|
|
4500
4498
|
}
|
|
4501
|
-
return (s, c) => l(n).multiSelect && l(a).length > 0 && l(n).showSelectedSection ? (u(), I("div",
|
|
4499
|
+
return (s, c) => l(n).multiSelect && l(a).length > 0 && l(n).showSelectedSection ? (u(), I("div", Oo, [
|
|
4502
4500
|
(u(!0), I($, null, ie(l(a), (A) => (u(), I("div", {
|
|
4503
4501
|
key: l(i)(A),
|
|
4504
4502
|
class: "av-autocomplete-selected-tags__item"
|
|
@@ -4506,21 +4504,21 @@ const yr = {
|
|
|
4506
4504
|
t.selectedItem ? P(s.$slots, "selectedItem", {
|
|
4507
4505
|
key: 0,
|
|
4508
4506
|
option: A,
|
|
4509
|
-
remove: () =>
|
|
4510
|
-
}, void 0, !0) : (u(),
|
|
4507
|
+
remove: () => o(A)
|
|
4508
|
+
}, void 0, !0) : (u(), p(oe, {
|
|
4511
4509
|
key: 1,
|
|
4512
|
-
label: l(
|
|
4510
|
+
label: l(r)(A),
|
|
4513
4511
|
icon: l(R).CLOSE_CIRCLE_OUTLINE,
|
|
4514
4512
|
"icon-right": "",
|
|
4515
4513
|
size: "sm",
|
|
4516
4514
|
variant: "OUTLINED",
|
|
4517
4515
|
theme: "SECONDARY",
|
|
4518
|
-
onClick: () =>
|
|
4516
|
+
onClick: () => o(A)
|
|
4519
4517
|
}, null, 8, ["label", "icon", "onClick"]))
|
|
4520
4518
|
]))), 128))
|
|
4521
4519
|
])) : D("", !0);
|
|
4522
4520
|
}
|
|
4523
|
-
}),
|
|
4521
|
+
}), Qo = /* @__PURE__ */ z(So, [["__scopeId", "data-v-c42c1ff5"]]), xo = { class: "av-autocomplete" }, po = /* @__PURE__ */ Q({
|
|
4524
4522
|
__name: "AvAutocomplete",
|
|
4525
4523
|
props: /* @__PURE__ */ ge({
|
|
4526
4524
|
id: {},
|
|
@@ -4552,14 +4550,14 @@ const yr = {
|
|
|
4552
4550
|
}),
|
|
4553
4551
|
emits: /* @__PURE__ */ ge(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
4554
4552
|
setup(e, { emit: t }) {
|
|
4555
|
-
const a = e, n = t, i = fe(),
|
|
4553
|
+
const a = e, n = t, i = fe(), r = Le(e, "modelValue"), o = U(!1), s = U(""), c = U(), A = U(), d = U(), f = b(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
4556
4554
|
function C(L) {
|
|
4557
4555
|
s.value = L, n("search", L);
|
|
4558
4556
|
}
|
|
4559
4557
|
function m(L) {
|
|
4560
4558
|
var N, O;
|
|
4561
4559
|
(O = (N = d.value) == null ? void 0 : N.dropdownRef) != null && O.contains(L.relatedTarget) || setTimeout(() => {
|
|
4562
|
-
|
|
4560
|
+
o.value = !1;
|
|
4563
4561
|
}, a.blurCloseDelay);
|
|
4564
4562
|
}
|
|
4565
4563
|
function v(L) {
|
|
@@ -4569,9 +4567,9 @@ const yr = {
|
|
|
4569
4567
|
return a.getOptionLabel ? a.getOptionLabel(L) : L.label;
|
|
4570
4568
|
}
|
|
4571
4569
|
bt(ha, {
|
|
4572
|
-
selectedItems:
|
|
4570
|
+
selectedItems: r,
|
|
4573
4571
|
searchQuery: s,
|
|
4574
|
-
isOpen:
|
|
4572
|
+
isOpen: o,
|
|
4575
4573
|
props: a,
|
|
4576
4574
|
inputId: f,
|
|
4577
4575
|
handleBlur: m,
|
|
@@ -4581,19 +4579,19 @@ const yr = {
|
|
|
4581
4579
|
function T(L) {
|
|
4582
4580
|
var V, Z, F, te, x;
|
|
4583
4581
|
const N = L.target, O = (V = A.value) == null ? void 0 : V.inputRef;
|
|
4584
|
-
!((Z = O == null ? void 0 : O.contains) != null && Z.call(O, N)) && !((F = c.value) != null && F.contains(N)) && !((x = (te = d.value) == null ? void 0 : te.dropdownRef) != null && x.contains(N)) && (
|
|
4582
|
+
!((Z = O == null ? void 0 : O.contains) != null && Z.call(O, N)) && !((F = c.value) != null && F.contains(N)) && !((x = (te = d.value) == null ? void 0 : te.dropdownRef) != null && x.contains(N)) && (o.value = !1);
|
|
4585
4583
|
}
|
|
4586
4584
|
return de(() => {
|
|
4587
4585
|
document.addEventListener("click", T);
|
|
4588
4586
|
}), ve(() => {
|
|
4589
4587
|
document.removeEventListener("click", T);
|
|
4590
|
-
}), (L, N) => (u(), I("div",
|
|
4588
|
+
}), (L, N) => (u(), I("div", xo, [
|
|
4591
4589
|
g("div", {
|
|
4592
4590
|
ref_key: "wrapperRef",
|
|
4593
4591
|
ref: c,
|
|
4594
4592
|
class: "av-autocomplete__wrapper"
|
|
4595
4593
|
}, [
|
|
4596
|
-
W(
|
|
4594
|
+
W(wo, {
|
|
4597
4595
|
ref_key: "inputRef",
|
|
4598
4596
|
ref: A,
|
|
4599
4597
|
onSearch: C,
|
|
@@ -4602,12 +4600,12 @@ const yr = {
|
|
|
4602
4600
|
i.requiredTip ? {
|
|
4603
4601
|
name: "requiredTip",
|
|
4604
4602
|
fn: G(() => [
|
|
4605
|
-
(u(),
|
|
4603
|
+
(u(), p(Me(i.requiredTip)))
|
|
4606
4604
|
]),
|
|
4607
4605
|
key: "0"
|
|
4608
4606
|
} : void 0
|
|
4609
4607
|
]), 1536),
|
|
4610
|
-
W(
|
|
4608
|
+
W(No, {
|
|
4611
4609
|
ref_key: "dropdownRef",
|
|
4612
4610
|
ref: d,
|
|
4613
4611
|
onLoadMore: N[1] || (N[1] = (O) => n("loadMore"))
|
|
@@ -4632,7 +4630,7 @@ const yr = {
|
|
|
4632
4630
|
} : void 0
|
|
4633
4631
|
]), 1536)
|
|
4634
4632
|
], 512),
|
|
4635
|
-
W(
|
|
4633
|
+
W(Qo, null, qe({ _: 2 }, [
|
|
4636
4634
|
i.selectedItem ? {
|
|
4637
4635
|
name: "selectedItem",
|
|
4638
4636
|
fn: G(({ option: O, remove: V }) => [
|
|
@@ -4646,10 +4644,10 @@ const yr = {
|
|
|
4646
4644
|
]), 1024)
|
|
4647
4645
|
]));
|
|
4648
4646
|
}
|
|
4649
|
-
}), OA = /* @__PURE__ */ z(
|
|
4647
|
+
}), OA = /* @__PURE__ */ z(po, [["__scopeId", "data-v-a8c4de33"]]), ko = ["id"], jo = ["id"], zo = {
|
|
4650
4648
|
key: 0,
|
|
4651
4649
|
class: "av-btns-group"
|
|
4652
|
-
},
|
|
4650
|
+
}, Bo = { key: 1 }, Po = { key: 2 }, Wo = "label", Uo = /* @__PURE__ */ Q({
|
|
4653
4651
|
__name: "MultiselectCollapse",
|
|
4654
4652
|
props: /* @__PURE__ */ ge({
|
|
4655
4653
|
isVisible: { type: Boolean },
|
|
@@ -4673,7 +4671,7 @@ const yr = {
|
|
|
4673
4671
|
function n(H, w) {
|
|
4674
4672
|
return `${w}-${H.value}`;
|
|
4675
4673
|
}
|
|
4676
|
-
const i = U(null),
|
|
4674
|
+
const i = U(null), r = U(!1), o = Le(e, "modelValue"), s = U(0), c = [], {
|
|
4677
4675
|
collapse: A,
|
|
4678
4676
|
collapsing: d,
|
|
4679
4677
|
cssExpanded: f,
|
|
@@ -4687,9 +4685,9 @@ const yr = {
|
|
|
4687
4685
|
H.key === "Escape" && a("close");
|
|
4688
4686
|
}
|
|
4689
4687
|
function M(H) {
|
|
4690
|
-
var
|
|
4688
|
+
var k, h;
|
|
4691
4689
|
const w = H.target;
|
|
4692
|
-
!((
|
|
4690
|
+
!((k = i.value) != null && k.$el.contains(w)) && !((h = A.value) != null && h.contains(w)) && a("close");
|
|
4693
4691
|
}
|
|
4694
4692
|
function T() {
|
|
4695
4693
|
for (; c.length; ) {
|
|
@@ -4699,15 +4697,15 @@ const yr = {
|
|
|
4699
4697
|
document.removeEventListener("click", M), document.removeEventListener("keydown", y);
|
|
4700
4698
|
}
|
|
4701
4699
|
const L = b(
|
|
4702
|
-
() => e.options.filter((H) => typeof H == "object" && H !== null ? `${H[
|
|
4700
|
+
() => e.options.filter((H) => typeof H == "object" && H !== null ? `${H[Wo]}`.toLowerCase().includes(v.value.toLowerCase()) : `${H}`.toLowerCase().includes(v.value.toLowerCase()))
|
|
4703
4701
|
), N = b(() => e.selected.length < L.value.length ? !1 : L.value.every((H) => e.selected.includes(H)));
|
|
4704
4702
|
function O() {
|
|
4705
|
-
const H = new Set(
|
|
4703
|
+
const H = new Set(o.value || []);
|
|
4706
4704
|
N.value ? L.value.forEach((w) => {
|
|
4707
4705
|
H.delete(w.value);
|
|
4708
4706
|
}) : L.value.forEach((w) => {
|
|
4709
4707
|
H.add(w.value);
|
|
4710
|
-
}),
|
|
4708
|
+
}), o.value = Array.from(H);
|
|
4711
4709
|
}
|
|
4712
4710
|
function V(H) {
|
|
4713
4711
|
const [w] = m();
|
|
@@ -4715,7 +4713,7 @@ const yr = {
|
|
|
4715
4713
|
}
|
|
4716
4714
|
function Z(H) {
|
|
4717
4715
|
H.preventDefault();
|
|
4718
|
-
const w = m(),
|
|
4716
|
+
const w = m(), k = document.activeElement, h = Array.from(w).indexOf(k);
|
|
4719
4717
|
if (h !== -1) {
|
|
4720
4718
|
const E = (h + 1) % w.length;
|
|
4721
4719
|
w[E].focus();
|
|
@@ -4723,25 +4721,25 @@ const yr = {
|
|
|
4723
4721
|
}
|
|
4724
4722
|
function F(H) {
|
|
4725
4723
|
H.preventDefault();
|
|
4726
|
-
const w = m(),
|
|
4724
|
+
const w = m(), k = document.activeElement, h = Array.from(w).indexOf(k);
|
|
4727
4725
|
if (h !== -1) {
|
|
4728
4726
|
const E = (h - 1 + w.length) % w.length;
|
|
4729
4727
|
w[E].focus();
|
|
4730
4728
|
}
|
|
4731
4729
|
}
|
|
4732
4730
|
function te(H) {
|
|
4733
|
-
const w = m(),
|
|
4734
|
-
Array.from(w).indexOf(
|
|
4731
|
+
const w = m(), k = document.activeElement;
|
|
4732
|
+
Array.from(w).indexOf(k) + 1 === w.length && i.value && !H.shiftKey && a("close");
|
|
4735
4733
|
}
|
|
4736
4734
|
function x(H) {
|
|
4737
|
-
var
|
|
4735
|
+
var k;
|
|
4738
4736
|
const w = document.activeElement;
|
|
4739
|
-
H.shiftKey && w === ((
|
|
4737
|
+
H.shiftKey && w === ((k = i.value) == null ? void 0 : k.$el) && a("close");
|
|
4740
4738
|
}
|
|
4741
4739
|
return ve(() => {
|
|
4742
4740
|
T();
|
|
4743
4741
|
}), (H, w) => {
|
|
4744
|
-
const
|
|
4742
|
+
const k = oe, h = Nt;
|
|
4745
4743
|
return e.isVisible ? (u(), I("div", {
|
|
4746
4744
|
key: 0,
|
|
4747
4745
|
id: `${e.id}-collapse`,
|
|
@@ -4751,15 +4749,15 @@ const yr = {
|
|
|
4751
4749
|
"--width-host": `${l(s)}px`
|
|
4752
4750
|
}),
|
|
4753
4751
|
class: j(["av-multiselect__collapse av-collapse", { "av-collapse--expanded": l(f), "av-collapsing": l(d) }]),
|
|
4754
|
-
onTransitionend: w[2] || (w[2] = (E) => l(C)(l(
|
|
4752
|
+
onTransitionend: w[2] || (w[2] = (E) => l(C)(l(r)))
|
|
4755
4753
|
}, [
|
|
4756
4754
|
g("p", {
|
|
4757
4755
|
id: `${e.id}-text-hint`,
|
|
4758
4756
|
class: "av-sr-only"
|
|
4759
|
-
}, B(e.hint), 9,
|
|
4760
|
-
e.selectAll ? (u(), I("ul",
|
|
4757
|
+
}, B(e.hint), 9, jo),
|
|
4758
|
+
e.selectAll ? (u(), I("ul", zo, [
|
|
4761
4759
|
g("li", null, [
|
|
4762
|
-
W(
|
|
4760
|
+
W(k, {
|
|
4763
4761
|
name: "select-all",
|
|
4764
4762
|
size: "sm",
|
|
4765
4763
|
disabled: l(L).length === 0,
|
|
@@ -4770,7 +4768,7 @@ const yr = {
|
|
|
4770
4768
|
}, null, 8, ["disabled", "label", "icon", "onKeydown"])
|
|
4771
4769
|
])
|
|
4772
4770
|
])) : D("", !0),
|
|
4773
|
-
e.search ? (u(), I("div",
|
|
4771
|
+
e.search ? (u(), I("div", Bo, [
|
|
4774
4772
|
W(h, {
|
|
4775
4773
|
modelValue: l(v),
|
|
4776
4774
|
"onUpdate:modelValue": w[0] || (w[0] = (E) => Ct(v) ? v.value = E : null),
|
|
@@ -4794,11 +4792,11 @@ const yr = {
|
|
|
4794
4792
|
"legend-id": `${e.id}-checkboxes-legend`
|
|
4795
4793
|
}, {
|
|
4796
4794
|
default: G(() => [
|
|
4797
|
-
(u(!0), I($, null, ie(l(L), (E) => (u(),
|
|
4795
|
+
(u(!0), I($, null, ie(l(L), (E) => (u(), p(Ki, {
|
|
4798
4796
|
id: `${n(E, e.id)}-checkbox`,
|
|
4799
4797
|
key: `${n(E, e.id)}-fieldset`,
|
|
4800
|
-
modelValue:
|
|
4801
|
-
"onUpdate:modelValue": w[1] || (w[1] = (S) =>
|
|
4798
|
+
modelValue: o.value,
|
|
4799
|
+
"onUpdate:modelValue": w[1] || (w[1] = (S) => o.value = S),
|
|
4802
4800
|
value: E.value,
|
|
4803
4801
|
label: E.label,
|
|
4804
4802
|
icon: E.icon,
|
|
@@ -4814,17 +4812,17 @@ const yr = {
|
|
|
4814
4812
|
]),
|
|
4815
4813
|
_: 1
|
|
4816
4814
|
}, 8, ["id", "legend", "legend-id"]),
|
|
4817
|
-
l(L).length === 0 ? (u(), I("div",
|
|
4818
|
-
], 46,
|
|
4815
|
+
l(L).length === 0 ? (u(), I("div", Po, B(e.noResultLabel), 1)) : D("", !0)
|
|
4816
|
+
], 46, ko)) : D("", !0);
|
|
4819
4817
|
};
|
|
4820
4818
|
}
|
|
4821
|
-
}),
|
|
4819
|
+
}), Vo = /* @__PURE__ */ z(Uo, [["__scopeId", "data-v-f71505f2"]]), Ho = ["title"], Ro = ["for"], Zo = { class: "b2-light" }, Xo = {
|
|
4822
4820
|
key: 0,
|
|
4823
4821
|
class: "required"
|
|
4824
|
-
},
|
|
4822
|
+
}, Yo = {
|
|
4825
4823
|
key: 1,
|
|
4826
4824
|
class: "av-hint-text"
|
|
4827
|
-
},
|
|
4825
|
+
}, qo = /* @__PURE__ */ Q({
|
|
4828
4826
|
__name: "AvMultiselect",
|
|
4829
4827
|
props: {
|
|
4830
4828
|
disabled: { type: Boolean },
|
|
@@ -4854,7 +4852,7 @@ const yr = {
|
|
|
4854
4852
|
v7d3d0889: w.width,
|
|
4855
4853
|
v10950ec4: w.height
|
|
4856
4854
|
}));
|
|
4857
|
-
const a = t, n = b(() => e.id ?? `multi-select-${crypto.randomUUID()}`), i = U(null),
|
|
4855
|
+
const a = t, n = b(() => e.id ?? `multi-select-${crypto.randomUUID()}`), i = U(null), r = U(!1), o = b(() => e.errorMessage || e.successMessage), s = b(() => e.errorMessage ? "error" : "success"), {
|
|
4858
4856
|
collapse: c,
|
|
4859
4857
|
collapsing: A,
|
|
4860
4858
|
cssExpanded: d,
|
|
@@ -4879,16 +4877,16 @@ const yr = {
|
|
|
4879
4877
|
}
|
|
4880
4878
|
function L(w) {
|
|
4881
4879
|
var h, E;
|
|
4882
|
-
const
|
|
4883
|
-
!((h = i.value) != null && h.$el.contains(
|
|
4880
|
+
const k = w.target;
|
|
4881
|
+
!((h = i.value) != null && h.$el.contains(k)) && !((E = c.value) != null && E.contains(k)) && O();
|
|
4884
4882
|
}
|
|
4885
4883
|
function N() {
|
|
4886
|
-
|
|
4884
|
+
r.value = !0, M.value = !0, document.addEventListener("click", L), document.addEventListener("keydown", T), setTimeout(() => {
|
|
4887
4885
|
f(!0);
|
|
4888
4886
|
}, 100);
|
|
4889
4887
|
}
|
|
4890
4888
|
function O() {
|
|
4891
|
-
|
|
4889
|
+
r.value = !1, f(!1), setTimeout(() => {
|
|
4892
4890
|
M.value = !1;
|
|
4893
4891
|
}, 300), Z();
|
|
4894
4892
|
}
|
|
@@ -4900,15 +4898,15 @@ const yr = {
|
|
|
4900
4898
|
}
|
|
4901
4899
|
function F(w) {
|
|
4902
4900
|
var h;
|
|
4903
|
-
const
|
|
4904
|
-
w.shiftKey &&
|
|
4901
|
+
const k = document.activeElement;
|
|
4902
|
+
w.shiftKey && k === ((h = i.value) == null ? void 0 : h.$el) && O();
|
|
4905
4903
|
}
|
|
4906
4904
|
function te(w) {
|
|
4907
4905
|
var h;
|
|
4908
|
-
const
|
|
4906
|
+
const k = ((h = e.options) == null ? void 0 : h.filter(
|
|
4909
4907
|
(E) => w.includes(E.value)
|
|
4910
4908
|
)) ?? [];
|
|
4911
|
-
a("update:modelValue",
|
|
4909
|
+
a("update:modelValue", k);
|
|
4912
4910
|
}
|
|
4913
4911
|
ve(() => {
|
|
4914
4912
|
Z();
|
|
@@ -4920,21 +4918,21 @@ const yr = {
|
|
|
4920
4918
|
]), H = b(() => ({
|
|
4921
4919
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
4922
4920
|
}));
|
|
4923
|
-
return (w,
|
|
4924
|
-
const h =
|
|
4921
|
+
return (w, k) => {
|
|
4922
|
+
const h = oe, E = pe;
|
|
4925
4923
|
return u(), I($, null, [
|
|
4926
4924
|
g("div", {
|
|
4927
|
-
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(
|
|
4925
|
+
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(o) }]),
|
|
4928
4926
|
title: l(y)
|
|
4929
4927
|
}, [
|
|
4930
4928
|
g("label", {
|
|
4931
4929
|
class: j(l(x)),
|
|
4932
4930
|
for: l(n)
|
|
4933
4931
|
}, [
|
|
4934
|
-
g("span",
|
|
4935
|
-
"required" in w.$attrs && w.$attrs.required !== !1 ? (u(), I("span",
|
|
4936
|
-
e.hint ? (u(), I("span",
|
|
4937
|
-
], 10,
|
|
4932
|
+
g("span", Zo, B(e.label), 1),
|
|
4933
|
+
"required" in w.$attrs && w.$attrs.required !== !1 ? (u(), I("span", Xo)) : D("", !0),
|
|
4934
|
+
e.hint ? (u(), I("span", Yo, B(e.hint), 1)) : D("", !0)
|
|
4935
|
+
], 10, Ro),
|
|
4938
4936
|
W(h, ee({
|
|
4939
4937
|
id: l(n),
|
|
4940
4938
|
ref_key: "host",
|
|
@@ -4944,20 +4942,20 @@ const yr = {
|
|
|
4944
4942
|
}, w.$attrs, {
|
|
4945
4943
|
label: l(y),
|
|
4946
4944
|
class: ["av-multiselect", {
|
|
4947
|
-
"av-multiselect--is-open": l(
|
|
4945
|
+
"av-multiselect--is-open": l(r),
|
|
4948
4946
|
"av-multiselect--dense": e.dense,
|
|
4949
4947
|
"av-multiselect--unselected": e.modelValue.length === 0,
|
|
4950
4948
|
"av-multiselect--selected": e.modelValue.length > 0
|
|
4951
4949
|
}],
|
|
4952
4950
|
disabled: e.disabled,
|
|
4953
|
-
"aria-expanded": l(
|
|
4951
|
+
"aria-expanded": l(r),
|
|
4954
4952
|
"aria-controls": `${l(n)}-collapse`,
|
|
4955
4953
|
small: e.dense,
|
|
4956
4954
|
style: l(H),
|
|
4957
4955
|
onClick: V,
|
|
4958
4956
|
onKeydown: Ae(ue(F, ["shift"]), ["tab"])
|
|
4959
4957
|
}), null, 16, ["id", "label", "disabled", "aria-expanded", "aria-controls", "class", "small", "style", "onKeydown"]),
|
|
4960
|
-
W(
|
|
4958
|
+
W(Vo, {
|
|
4961
4959
|
id: l(n),
|
|
4962
4960
|
legend: e.legend,
|
|
4963
4961
|
hint: e.collapseHint,
|
|
@@ -4972,22 +4970,22 @@ const yr = {
|
|
|
4972
4970
|
onClose: O,
|
|
4973
4971
|
"onUpdate:modelValue": te
|
|
4974
4972
|
}, null, 8, ["id", "legend", "hint", "model-value", "is-visible", "select-all", "select-all-label", "search", "options", "selected"])
|
|
4975
|
-
], 10,
|
|
4973
|
+
], 10, Ho),
|
|
4976
4974
|
W(E, {
|
|
4977
4975
|
"message-id": `multiselect-${l(s)}-desc-${l(s)}`,
|
|
4978
4976
|
type: l(s),
|
|
4979
|
-
message: l(
|
|
4977
|
+
message: l(o)
|
|
4980
4978
|
}, null, 8, ["message-id", "type", "message"])
|
|
4981
4979
|
], 64);
|
|
4982
4980
|
};
|
|
4983
4981
|
}
|
|
4984
|
-
}), SA = /* @__PURE__ */ z(
|
|
4982
|
+
}), SA = /* @__PURE__ */ z(qo, [["__scopeId", "data-v-4c2f8848"]]), Fo = ["for"], Ko = {
|
|
4985
4983
|
key: 0,
|
|
4986
4984
|
class: "required"
|
|
4987
|
-
},
|
|
4985
|
+
}, Go = {
|
|
4988
4986
|
key: 1,
|
|
4989
4987
|
class: "av-hint-text"
|
|
4990
|
-
},
|
|
4988
|
+
}, Jo = ["id", "name", "disabled", "aria-disabled", "required", "aria-required", "title"], $o = ["selected"], _o = ["selected", "value", "disabled", "aria-disabled"], es = /* @__PURE__ */ Q({
|
|
4991
4989
|
__name: "AvSelect",
|
|
4992
4990
|
props: {
|
|
4993
4991
|
required: { type: Boolean, default: !1 },
|
|
@@ -5011,28 +5009,28 @@ const yr = {
|
|
|
5011
5009
|
return e.placeholder;
|
|
5012
5010
|
const c = (A = e.options) == null ? void 0 : A.find((d) => String(d.value) === String(e.modelValue));
|
|
5013
5011
|
return c ? c.text : e.placeholder;
|
|
5014
|
-
}),
|
|
5012
|
+
}), r = b(() => ({
|
|
5015
5013
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5016
|
-
})),
|
|
5014
|
+
})), o = b(() => e.errorMessage || e.successMessage), s = b(() => e.errorMessage ? "error" : "success");
|
|
5017
5015
|
return (c, A) => {
|
|
5018
|
-
const d =
|
|
5016
|
+
const d = pe;
|
|
5019
5017
|
return u(), I("div", {
|
|
5020
5018
|
class: j({ "av-select--dense": e.dense })
|
|
5021
5019
|
}, [
|
|
5022
5020
|
g("div", {
|
|
5023
|
-
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(
|
|
5021
|
+
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(o) }])
|
|
5024
5022
|
}, [
|
|
5025
5023
|
g("label", {
|
|
5026
5024
|
class: "av-label b2-light",
|
|
5027
5025
|
for: l(n)
|
|
5028
5026
|
}, [
|
|
5029
5027
|
g("span", null, B(e.label), 1),
|
|
5030
|
-
e.required ? (u(), I("span",
|
|
5031
|
-
e.hint ? (u(), I("span",
|
|
5032
|
-
], 8,
|
|
5028
|
+
e.required ? (u(), I("span", Ko, " *")) : D("", !0),
|
|
5029
|
+
e.hint ? (u(), I("span", Go, B(e.hint), 1)) : D("", !0)
|
|
5030
|
+
], 8, Fo),
|
|
5033
5031
|
g("select", ee({
|
|
5034
5032
|
id: l(n),
|
|
5035
|
-
class: [{ [`av-select--${l(s)}`]: l(
|
|
5033
|
+
class: [{ [`av-select--${l(s)}`]: l(o) }, "av-select"],
|
|
5036
5034
|
name: e.name || l(n),
|
|
5037
5035
|
disabled: e.disabled,
|
|
5038
5036
|
"aria-disabled": e.disabled,
|
|
@@ -5040,7 +5038,7 @@ const yr = {
|
|
|
5040
5038
|
"aria-required": e.required,
|
|
5041
5039
|
title: l(i)
|
|
5042
5040
|
}, c.$attrs, {
|
|
5043
|
-
style: l(
|
|
5041
|
+
style: l(r),
|
|
5044
5042
|
onChange: A[0] || (A[0] = (f) => {
|
|
5045
5043
|
var C;
|
|
5046
5044
|
return a("update:modelValue", (C = f.target) == null ? void 0 : C.value);
|
|
@@ -5051,18 +5049,18 @@ const yr = {
|
|
|
5051
5049
|
disabled: "",
|
|
5052
5050
|
value: "",
|
|
5053
5051
|
hidden: ""
|
|
5054
|
-
}, B(e.placeholder), 9, $
|
|
5052
|
+
}, B(e.placeholder), 9, $o),
|
|
5055
5053
|
(u(!0), I($, null, ie(e.options, (f, C) => (u(), I("option", {
|
|
5056
5054
|
key: C,
|
|
5057
5055
|
selected: e.modelValue === f.value,
|
|
5058
5056
|
value: f.value,
|
|
5059
5057
|
disabled: f.disabled,
|
|
5060
5058
|
"aria-disabled": f.disabled
|
|
5061
|
-
}, B(f.text), 9,
|
|
5062
|
-
], 16,
|
|
5059
|
+
}, B(f.text), 9, _o))), 128))
|
|
5060
|
+
], 16, Jo),
|
|
5063
5061
|
W(d, {
|
|
5064
5062
|
"message-id": `select-${l(s)}-desc-${l(s)}`,
|
|
5065
|
-
message: l(
|
|
5063
|
+
message: l(o),
|
|
5066
5064
|
type: l(s)
|
|
5067
5065
|
}, null, 8, ["message-id", "message", "type"])
|
|
5068
5066
|
], 2)
|
|
@@ -5112,14 +5110,14 @@ const yr = {
|
|
|
5112
5110
|
},
|
|
5113
5111
|
emits: ["click", "next", "previous", "first", "last"],
|
|
5114
5112
|
setup(e, { emit: t }) {
|
|
5115
|
-
const a = t, n = U(null), i =
|
|
5113
|
+
const a = t, n = U(null), i = pa("button"), r = b(() => e.isSelected ? "s2-bold" : "s2-regular"), o = {
|
|
5116
5114
|
ArrowRight: "next",
|
|
5117
5115
|
ArrowLeft: "previous",
|
|
5118
5116
|
Home: "first",
|
|
5119
5117
|
End: "last"
|
|
5120
5118
|
};
|
|
5121
5119
|
function s(c) {
|
|
5122
|
-
const A = c == null ? void 0 : c.key, d =
|
|
5120
|
+
const A = c == null ? void 0 : c.key, d = o[A];
|
|
5123
5121
|
if (d)
|
|
5124
5122
|
switch (d) {
|
|
5125
5123
|
case "next":
|
|
@@ -5136,7 +5134,7 @@ const yr = {
|
|
|
5136
5134
|
break;
|
|
5137
5135
|
}
|
|
5138
5136
|
}
|
|
5139
|
-
return
|
|
5137
|
+
return re(() => e.isSelected, () => {
|
|
5140
5138
|
var c;
|
|
5141
5139
|
e.isSelected && ((c = i.value) == null || c.focus());
|
|
5142
5140
|
}), (c, A) => {
|
|
@@ -5159,29 +5157,29 @@ const yr = {
|
|
|
5159
5157
|
onClick: A[0] || (A[0] = ue((f) => c.$emit("click", e.tabId), ["prevent"])),
|
|
5160
5158
|
onKeydown: A[1] || (A[1] = (f) => s(f))
|
|
5161
5159
|
}), [
|
|
5162
|
-
e.icon ? (u(),
|
|
5160
|
+
e.icon ? (u(), p(d, {
|
|
5163
5161
|
key: 0,
|
|
5164
5162
|
name: e.icon,
|
|
5165
5163
|
size: 2
|
|
5166
5164
|
}, null, 8, ["name"])) : D("", !0),
|
|
5167
5165
|
g("span", {
|
|
5168
|
-
class: j(l(
|
|
5166
|
+
class: j(l(r))
|
|
5169
5167
|
}, B(e.title), 3)
|
|
5170
5168
|
], 16, is)
|
|
5171
5169
|
], 2);
|
|
5172
5170
|
};
|
|
5173
5171
|
}
|
|
5174
|
-
}),
|
|
5175
|
-
function
|
|
5172
|
+
}), rs = /* @__PURE__ */ z(ls, [["__scopeId", "data-v-e92501ec"]]);
|
|
5173
|
+
function os(e, t, a) {
|
|
5176
5174
|
const n = U({ "--tabs-height": "100px" });
|
|
5177
5175
|
function i() {
|
|
5178
5176
|
if (a.value < 0 || !e.value || !e.value.offsetHeight)
|
|
5179
5177
|
return;
|
|
5180
|
-
const
|
|
5181
|
-
if (!
|
|
5178
|
+
const r = e.value.offsetHeight, o = t.value[a.value];
|
|
5179
|
+
if (!o || !o.offsetHeight)
|
|
5182
5180
|
return;
|
|
5183
|
-
const s =
|
|
5184
|
-
n.value["--tabs-height"] = `${
|
|
5181
|
+
const s = o.offsetHeight;
|
|
5182
|
+
n.value["--tabs-height"] = `${r + s}px`;
|
|
5185
5183
|
}
|
|
5186
5184
|
return { tabsStyle: n, updateTabsStyle: i };
|
|
5187
5185
|
}
|
|
@@ -5199,8 +5197,8 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5199
5197
|
const t = fe(), a = b(() => {
|
|
5200
5198
|
var M;
|
|
5201
5199
|
return ((M = t.default) == null ? void 0 : M.call(t)) || [];
|
|
5202
|
-
}), n = Le(e, "modelValue"), i = U(null),
|
|
5203
|
-
|
|
5200
|
+
}), n = Le(e, "modelValue"), i = U(null), r = U(null), o = ut({}), { tabsStyle: s, updateTabsStyle: c } = os(
|
|
5201
|
+
r,
|
|
5204
5202
|
b(() => {
|
|
5205
5203
|
var M;
|
|
5206
5204
|
return Array.from(((M = i.value) == null ? void 0 : M.querySelectorAll(".av-tab-content")) || []);
|
|
@@ -5208,10 +5206,10 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5208
5206
|
n
|
|
5209
5207
|
);
|
|
5210
5208
|
function A(M) {
|
|
5211
|
-
if (
|
|
5212
|
-
return
|
|
5209
|
+
if (o[M])
|
|
5210
|
+
return o[M];
|
|
5213
5211
|
const T = `tab-${crypto.randomUUID()}`;
|
|
5214
|
-
return
|
|
5212
|
+
return o[M] = T, T;
|
|
5215
5213
|
}
|
|
5216
5214
|
function d(M) {
|
|
5217
5215
|
const T = a.value.length;
|
|
@@ -5254,7 +5252,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5254
5252
|
}, [
|
|
5255
5253
|
g("ul", {
|
|
5256
5254
|
ref_key: "tablist",
|
|
5257
|
-
ref:
|
|
5255
|
+
ref: r,
|
|
5258
5256
|
class: j(["av-tabs__list", {
|
|
5259
5257
|
"av-tabs__list--compact": e.compact
|
|
5260
5258
|
}]),
|
|
@@ -5263,7 +5261,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5263
5261
|
}, [
|
|
5264
5262
|
(u(!0), I($, null, ie(l(a), (L, N) => {
|
|
5265
5263
|
var O, V;
|
|
5266
|
-
return u(),
|
|
5264
|
+
return u(), p(rs, {
|
|
5267
5265
|
key: N,
|
|
5268
5266
|
"tab-id": A(N),
|
|
5269
5267
|
"panel-id": `${A(N)}-panel`,
|
|
@@ -5279,20 +5277,20 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5279
5277
|
}, null, 8, ["tab-id", "panel-id", "title", "icon", "compact", "is-selected", "onClick"]);
|
|
5280
5278
|
}), 128))
|
|
5281
5279
|
], 10, ss),
|
|
5282
|
-
(u(!0), I($, null, ie(l(a), (L, N) => (u(),
|
|
5280
|
+
(u(!0), I($, null, ie(l(a), (L, N) => (u(), p(ns, {
|
|
5283
5281
|
key: N,
|
|
5284
5282
|
"panel-id": `${A(N)}-panel`,
|
|
5285
5283
|
"tab-id": A(N),
|
|
5286
5284
|
"is-visible": n.value === N
|
|
5287
5285
|
}, {
|
|
5288
5286
|
default: G(() => [
|
|
5289
|
-
n.value === N ? (u(),
|
|
5287
|
+
n.value === N ? (u(), p(Me(L.children.default), { key: 0 })) : D("", !0)
|
|
5290
5288
|
]),
|
|
5291
5289
|
_: 2
|
|
5292
5290
|
}, 1032, ["panel-id", "tab-id", "is-visible"]))), 128))
|
|
5293
5291
|
], 6));
|
|
5294
5292
|
}
|
|
5295
|
-
}),
|
|
5293
|
+
}), pA = /* @__PURE__ */ z(cs, [["__scopeId", "data-v-b408eadc"]]), As = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2035%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.6'%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%23D4D4EC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.5%2020C30.0228%2020%2034.5%2015.5228%2034.5%2010C34.5%204.47715%2030.0228%200%2024.5%200C18.9772%200%2014.5%204.47715%2014.5%2010C14.5%2015.5228%2018.9772%2020%2024.5%2020Z'%20fill='%23000091'/%3e%3c/svg%3e", us = "data:image/svg+xml,%3csvg%20width='34'%20height='20'%20viewBox='0%200%2034%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%2314171A'%20fill-opacity='0.36'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2020C15.5228%2020%2020%2015.5228%2020%2010C20%204.47715%2015.5228%200%2010%200C4.47715%200%200%204.47715%200%2010C0%2015.5228%204.47715%2020%2010%2020Z'%20fill='%23F6F6F6'/%3e%3cpath%20d='M10%200.5C15.2467%200.5%2019.5%204.75329%2019.5%2010C19.5%2015.2467%2015.2467%2019.5%2010%2019.5C4.75329%2019.5%200.5%2015.2467%200.5%2010C0.5%204.75329%204.75329%200.5%2010%200.5Z'%20stroke='%2314171A'%20stroke-opacity='0.36'/%3e%3c/svg%3e", ds = ["id", "for"], fs = {
|
|
5296
5294
|
width: "34",
|
|
5297
5295
|
height: "14"
|
|
5298
5296
|
}, vs = ["href"], ms = {
|
|
@@ -5349,11 +5347,11 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5349
5347
|
"data-testid": l(t),
|
|
5350
5348
|
"aria-describedby": l(a),
|
|
5351
5349
|
name: e.name,
|
|
5352
|
-
onInput: i[0] || (i[0] = (
|
|
5350
|
+
onInput: i[0] || (i[0] = (r) => n.$emit("update:modelValue", r.target.checked))
|
|
5353
5351
|
}, null, 40, bs)
|
|
5354
5352
|
], 64));
|
|
5355
5353
|
}
|
|
5356
|
-
}),
|
|
5354
|
+
}), kA = /* @__PURE__ */ z(hs, [["__scopeId", "data-v-bc5c5235"]]), ys = { class: "av-cancel-confirm-buttons-container" }, Cs = /* @__PURE__ */ Q({
|
|
5357
5355
|
__name: "AvCancelConfirmButtons",
|
|
5358
5356
|
props: {
|
|
5359
5357
|
cancelLabel: {},
|
|
@@ -5370,7 +5368,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5370
5368
|
setup(e, { emit: t }) {
|
|
5371
5369
|
const a = t;
|
|
5372
5370
|
return (n, i) => (u(), I("div", ys, [
|
|
5373
|
-
e.cancelLabel ? (u(),
|
|
5371
|
+
e.cancelLabel ? (u(), p(l(oe), {
|
|
5374
5372
|
key: 0,
|
|
5375
5373
|
icon: e.cancelIcon,
|
|
5376
5374
|
label: e.cancelLabel,
|
|
@@ -5379,9 +5377,9 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5379
5377
|
"is-loading": e.cancelIsLoading,
|
|
5380
5378
|
disabled: e.cancelDisabled,
|
|
5381
5379
|
small: "",
|
|
5382
|
-
onClick: i[0] || (i[0] = (
|
|
5380
|
+
onClick: i[0] || (i[0] = (r) => a("cancel"))
|
|
5383
5381
|
}, null, 8, ["icon", "label", "title", "is-loading", "disabled"])) : D("", !0),
|
|
5384
|
-
e.confirmLabel ? (u(),
|
|
5382
|
+
e.confirmLabel ? (u(), p(l(oe), {
|
|
5385
5383
|
key: 1,
|
|
5386
5384
|
icon: e.confirmIcon,
|
|
5387
5385
|
label: e.confirmLabel,
|
|
@@ -5392,7 +5390,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5392
5390
|
type: e.form ? "submit" : void 0,
|
|
5393
5391
|
form: e.form,
|
|
5394
5392
|
small: "",
|
|
5395
|
-
onClick: i[1] || (i[1] = (
|
|
5393
|
+
onClick: i[1] || (i[1] = (r) => a("confirm"))
|
|
5396
5394
|
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "type", "form"])) : D("", !0)
|
|
5397
5395
|
]));
|
|
5398
5396
|
}
|
|
@@ -5410,13 +5408,13 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5410
5408
|
"aria-label": e.navAriaLabel
|
|
5411
5409
|
}, [
|
|
5412
5410
|
g("ul", Es, [
|
|
5413
|
-
(u(!0), I($, null, ie(e.links, (
|
|
5414
|
-
W(
|
|
5415
|
-
icon:
|
|
5416
|
-
label:
|
|
5411
|
+
(u(!0), I($, null, ie(e.links, (r, o) => (u(), I("li", { key: o }, [
|
|
5412
|
+
W(oe, {
|
|
5413
|
+
icon: r.icon,
|
|
5414
|
+
label: r.label ?? "",
|
|
5417
5415
|
onClick: (s) => {
|
|
5418
5416
|
var c;
|
|
5419
|
-
a("linkClick", s), (c =
|
|
5417
|
+
a("linkClick", s), (c = r.onClick) == null || c.call(r, s);
|
|
5420
5418
|
}
|
|
5421
5419
|
}, null, 8, ["icon", "label", "onClick"])
|
|
5422
5420
|
]))), 128))
|
|
@@ -5463,7 +5461,7 @@ function Ds(e, t) {
|
|
|
5463
5461
|
const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
5464
5462
|
role: "banner",
|
|
5465
5463
|
class: "av-header"
|
|
5466
|
-
}, Os = { class: "av-header__body" }, Ss = { class: "av-container" }, Qs = { class: "av-header__body-row" }, xs = { class: "av-header__brand" },
|
|
5464
|
+
}, Os = { class: "av-header__body" }, Ss = { class: "av-container" }, Qs = { class: "av-header__body-row" }, xs = { class: "av-header__brand" }, ps = { class: "av-header__brand-top" }, ks = { class: "av-header__logo av-enlarge-link" }, js = {
|
|
5467
5465
|
key: 0,
|
|
5468
5466
|
class: "av-header__navbar"
|
|
5469
5467
|
}, zs = {
|
|
@@ -5501,10 +5499,10 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5501
5499
|
},
|
|
5502
5500
|
emits: ["update:modelValue", "search", "languageSelect"],
|
|
5503
5501
|
setup(e, { emit: t }) {
|
|
5504
|
-
const a = t, n = fe(), { isBelowLg: i } = nt(),
|
|
5502
|
+
const a = t, n = fe(), { isBelowLg: i } = nt(), r = Ft(() => e.languageSelector), o = U(!1), s = U(!1), c = U(!1);
|
|
5505
5503
|
function A() {
|
|
5506
5504
|
var M;
|
|
5507
|
-
c.value = !1,
|
|
5505
|
+
c.value = !1, o.value = !1, s.value = !1, (M = document.getElementById("button-menu")) == null || M.focus();
|
|
5508
5506
|
}
|
|
5509
5507
|
function d(M) {
|
|
5510
5508
|
M.key === "Escape" && A();
|
|
@@ -5515,25 +5513,25 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5515
5513
|
document.removeEventListener("keydown", d);
|
|
5516
5514
|
});
|
|
5517
5515
|
function f() {
|
|
5518
|
-
c.value = !0,
|
|
5516
|
+
c.value = !0, o.value = !0, s.value = !1, setTimeout(() => {
|
|
5519
5517
|
var M;
|
|
5520
5518
|
(M = document.getElementById("close-button")) == null || M.focus();
|
|
5521
5519
|
});
|
|
5522
5520
|
}
|
|
5523
5521
|
function C() {
|
|
5524
|
-
c.value = !0,
|
|
5522
|
+
c.value = !0, o.value = !1, s.value = !0;
|
|
5525
5523
|
}
|
|
5526
5524
|
const m = A, v = b(() => [e.homeLabel, e.serviceTitle].filter((M) => M).join(" - ")), y = b(() => !!n.mainnav);
|
|
5527
5525
|
return bt(Na, () => A), (M, T) => {
|
|
5528
5526
|
var Z, F, te;
|
|
5529
|
-
const L = Mt("RouterLink"), N =
|
|
5527
|
+
const L = Mt("RouterLink"), N = oe, O = Ea, V = On;
|
|
5530
5528
|
return u(), I("header", ws, [
|
|
5531
5529
|
g("div", Os, [
|
|
5532
5530
|
g("div", Ss, [
|
|
5533
5531
|
g("div", Qs, [
|
|
5534
5532
|
g("div", xs, [
|
|
5535
|
-
g("div",
|
|
5536
|
-
g("div",
|
|
5533
|
+
g("div", ps, [
|
|
5534
|
+
g("div", ks, [
|
|
5537
5535
|
W(L, {
|
|
5538
5536
|
to: e.homeTo,
|
|
5539
5537
|
title: l(v)
|
|
@@ -5545,7 +5543,7 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5545
5543
|
}, 8, ["to", "title"])
|
|
5546
5544
|
]),
|
|
5547
5545
|
e.showSearch || l(y) || (Z = e.quickLinks) != null && Z.length ? (u(), I("div", js, [
|
|
5548
|
-
e.showSearch ? (u(),
|
|
5546
|
+
e.showSearch ? (u(), p(N, {
|
|
5549
5547
|
key: 0,
|
|
5550
5548
|
class: "search-button",
|
|
5551
5549
|
label: e.showSearchLabel,
|
|
@@ -5556,7 +5554,7 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5556
5554
|
"icon-only": "",
|
|
5557
5555
|
onClick: T[0] || (T[0] = ue((x) => C(), ["prevent", "stop"]))
|
|
5558
5556
|
}, null, 8, ["label", "aria-label", "title", "icon"])) : D("", !0),
|
|
5559
|
-
l(y) || (F = e.quickLinks) != null && F.length ? (u(),
|
|
5557
|
+
l(y) || (F = e.quickLinks) != null && F.length ? (u(), p(N, {
|
|
5560
5558
|
key: 1,
|
|
5561
5559
|
id: "button-menu",
|
|
5562
5560
|
variant: "OUTLINED",
|
|
@@ -5580,13 +5578,13 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5580
5578
|
g("div", Ps, [
|
|
5581
5579
|
g("div", Ws, [
|
|
5582
5580
|
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5583
|
-
!l(
|
|
5581
|
+
!l(o) && ((te = e.quickLinks) != null && te.length) ? (u(), p(Xt, {
|
|
5584
5582
|
key: 0,
|
|
5585
5583
|
links: e.quickLinks,
|
|
5586
5584
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
5587
5585
|
}, null, 8, ["links", "nav-aria-label"])) : D("", !0),
|
|
5588
5586
|
P(M.$slots, "after-quick-links", {}, void 0, !0),
|
|
5589
|
-
l(
|
|
5587
|
+
l(r) ? (u(), p(pt, ee({ key: 1 }, l(r), {
|
|
5590
5588
|
onSelect: T[2] || (T[2] = (x) => a("languageSelect", x))
|
|
5591
5589
|
}), null, 16)) : D("", !0)
|
|
5592
5590
|
]),
|
|
@@ -5611,7 +5609,7 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5611
5609
|
P(M.$slots, "mainnav", { hidemodal: A }, void 0, !0)
|
|
5612
5610
|
])) : D("", !0)
|
|
5613
5611
|
]),
|
|
5614
|
-
l(i) && (e.showSearch || l(y) || e.quickLinks && e.quickLinks.length || l(
|
|
5612
|
+
l(i) && (e.showSearch || l(y) || e.quickLinks && e.quickLinks.length || l(r)) ? (u(), p(V, {
|
|
5615
5613
|
key: 0,
|
|
5616
5614
|
id: "header-navigation",
|
|
5617
5615
|
show: l(c),
|
|
@@ -5634,11 +5632,11 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5634
5632
|
]),
|
|
5635
5633
|
g("div", Zs, [
|
|
5636
5634
|
g("div", Xs, [
|
|
5637
|
-
l(
|
|
5638
|
-
onSelect: T[5] || (T[5] = (x) => l(
|
|
5635
|
+
l(r) ? (u(), p(pt, ee({ key: 0 }, l(r), {
|
|
5636
|
+
onSelect: T[5] || (T[5] = (x) => l(r).currentLanguage = x.codeIso)
|
|
5639
5637
|
}), null, 16)) : D("", !0),
|
|
5640
5638
|
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5641
|
-
l(
|
|
5639
|
+
l(o) ? (u(), p(Xt, {
|
|
5642
5640
|
key: 1,
|
|
5643
5641
|
role: "navigation",
|
|
5644
5642
|
links: e.quickLinks,
|
|
@@ -5718,34 +5716,34 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5718
5716
|
collapsing: a,
|
|
5719
5717
|
cssExpanded: n,
|
|
5720
5718
|
doExpand: i
|
|
5721
|
-
} = Ze(), { isAboveMd:
|
|
5719
|
+
} = Ze(), { isAboveMd: r } = nt(), o = b(() => e.id ?? `breadcrumb-${crypto.randomUUID()}`), s = b(() => ({
|
|
5722
5720
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_RIGHT})`
|
|
5723
|
-
})), c = U(
|
|
5724
|
-
return
|
|
5721
|
+
})), c = U(r.value);
|
|
5722
|
+
return re(c, (A, d) => {
|
|
5725
5723
|
A !== d && i(A);
|
|
5726
|
-
}),
|
|
5724
|
+
}), re(r, (A) => {
|
|
5727
5725
|
c.value = A;
|
|
5728
5726
|
}), de(() => {
|
|
5729
5727
|
i(c.value);
|
|
5730
5728
|
}), (A, d) => {
|
|
5731
|
-
const f =
|
|
5729
|
+
const f = oe, C = Mt("RouterLink");
|
|
5732
5730
|
return e.links && e.links.length ? (u(), I("nav", {
|
|
5733
5731
|
key: 0,
|
|
5734
5732
|
role: "navigation",
|
|
5735
5733
|
class: "av-breadcrumb",
|
|
5736
5734
|
"aria-label": e.navigationLabel
|
|
5737
5735
|
}, [
|
|
5738
|
-
l(c) ? D("", !0) : (u(),
|
|
5736
|
+
l(c) ? D("", !0) : (u(), p(f, {
|
|
5739
5737
|
key: 0,
|
|
5740
5738
|
class: "av-breadcrumb__button",
|
|
5741
5739
|
label: e.showBreadcrumbLabel,
|
|
5742
5740
|
"aria-expanded": l(c),
|
|
5743
|
-
"aria-controls": l(
|
|
5741
|
+
"aria-controls": l(o),
|
|
5744
5742
|
small: "",
|
|
5745
5743
|
onClick: d[0] || (d[0] = (m) => c.value = !l(c))
|
|
5746
5744
|
}, null, 8, ["label", "aria-expanded", "aria-controls"])),
|
|
5747
5745
|
g("div", {
|
|
5748
|
-
id: l(
|
|
5746
|
+
id: l(o),
|
|
5749
5747
|
ref_key: "collapse",
|
|
5750
5748
|
ref: t,
|
|
5751
5749
|
class: j(["av-collapse", {
|
|
@@ -5759,7 +5757,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5759
5757
|
class: "av-breadcrumb__item",
|
|
5760
5758
|
style: ce(l(s))
|
|
5761
5759
|
}, [
|
|
5762
|
-
m.to ? (u(),
|
|
5760
|
+
m.to ? (u(), p(C, {
|
|
5763
5761
|
key: 0,
|
|
5764
5762
|
class: "b2-regular av-breadcrumb__link",
|
|
5765
5763
|
to: m.to,
|
|
@@ -5797,7 +5795,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5797
5795
|
P(a.$slots, "default", {}, void 0, !0)
|
|
5798
5796
|
], 10, ic));
|
|
5799
5797
|
}
|
|
5800
|
-
}),
|
|
5798
|
+
}), rc = /* @__PURE__ */ z(lc, [["__scopeId", "data-v-94f974c7"]]), oc = ["id", "aria-current"], sc = /* @__PURE__ */ Q({
|
|
5801
5799
|
__name: "NavigationMenuItem",
|
|
5802
5800
|
props: {
|
|
5803
5801
|
id: {},
|
|
@@ -5811,7 +5809,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5811
5809
|
"aria-current": e.active ? "page" : void 0
|
|
5812
5810
|
}, [
|
|
5813
5811
|
P(a.$slots, "default", {}, void 0, !0)
|
|
5814
|
-
], 8,
|
|
5812
|
+
], 8, oc));
|
|
5815
5813
|
}
|
|
5816
5814
|
}), cc = /* @__PURE__ */ z(sc, [["__scopeId", "data-v-fe85d2ff"]]), Ac = ["href"], uc = { class: "b1-regular" }, dc = { class: "b1-regular" }, fc = /* @__PURE__ */ Q({
|
|
5817
5815
|
__name: "NavigationMenuLink",
|
|
@@ -5826,9 +5824,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5826
5824
|
},
|
|
5827
5825
|
emits: ["toggleId"],
|
|
5828
5826
|
setup(e) {
|
|
5829
|
-
const { isBelowLg: t } = nt(), a = b(() => e.id ?? `menu-link-${crypto.randomUUID()}`), n = b(() => typeof e.to == "string" && e.to.startsWith("http")), i = yt() ? tt(Na) : void 0,
|
|
5827
|
+
const { isBelowLg: t } = nt(), a = b(() => e.id ?? `menu-link-${crypto.randomUUID()}`), n = b(() => typeof e.to == "string" && e.to.startsWith("http")), i = yt() ? tt(Na) : void 0, r = (i == null ? void 0 : i()) ?? (() => {
|
|
5830
5828
|
});
|
|
5831
|
-
return (
|
|
5829
|
+
return (o, s) => {
|
|
5832
5830
|
const c = ne, A = Mt("RouterLink");
|
|
5833
5831
|
return l(n) ? (u(), I("a", {
|
|
5834
5832
|
key: 0,
|
|
@@ -5839,22 +5837,22 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5839
5837
|
"data-testid": "nav-external-link",
|
|
5840
5838
|
href: e.to,
|
|
5841
5839
|
onClick: s[0] || (s[0] = (d) => {
|
|
5842
|
-
|
|
5840
|
+
o.$emit("toggleId", l(a)), e.onClick(d);
|
|
5843
5841
|
})
|
|
5844
5842
|
}, [
|
|
5845
5843
|
g("span", uc, B(e.text), 1)
|
|
5846
|
-
], 10, Ac)) : (u(),
|
|
5844
|
+
], 10, Ac)) : (u(), p(A, {
|
|
5847
5845
|
key: 1,
|
|
5848
5846
|
class: "av-nav__link",
|
|
5849
5847
|
"data-testid": "nav-router-link",
|
|
5850
5848
|
to: e.to,
|
|
5851
5849
|
onClick: s[1] || (s[1] = (d) => {
|
|
5852
5850
|
var f;
|
|
5853
|
-
l(
|
|
5851
|
+
l(r)(), o.$emit("toggleId", l(a)), (f = e.onClick) == null || f.call(e, d);
|
|
5854
5852
|
})
|
|
5855
5853
|
}, {
|
|
5856
5854
|
default: G(() => [
|
|
5857
|
-
e.icon ? (u(),
|
|
5855
|
+
e.icon ? (u(), p(c, {
|
|
5858
5856
|
key: 0,
|
|
5859
5857
|
name: e.icon,
|
|
5860
5858
|
size: 1.5
|
|
@@ -5881,11 +5879,11 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5881
5879
|
collapsing: a,
|
|
5882
5880
|
cssExpanded: n,
|
|
5883
5881
|
doExpand: i,
|
|
5884
|
-
onTransitionEnd:
|
|
5885
|
-
} = Ze(),
|
|
5882
|
+
onTransitionEnd: r
|
|
5883
|
+
} = Ze(), o = b(() => e.id ?? `menu-${crypto.randomUUID()}`), s = b(() => o.value === e.expandedId), c = b(() => ({
|
|
5886
5884
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5887
5885
|
}));
|
|
5888
|
-
return
|
|
5886
|
+
return re(s, (A, d) => {
|
|
5889
5887
|
A !== d && i(A);
|
|
5890
5888
|
}), de(() => {
|
|
5891
5889
|
s.value && i(!0);
|
|
@@ -5894,22 +5892,22 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5894
5892
|
class: "av-nav__btn",
|
|
5895
5893
|
"aria-expanded": l(s),
|
|
5896
5894
|
"aria-current": e.active || void 0,
|
|
5897
|
-
"aria-controls": l(
|
|
5895
|
+
"aria-controls": l(o),
|
|
5898
5896
|
style: ce(l(c)),
|
|
5899
|
-
onClick: d[0] || (d[0] = (f) => A.$emit("toggleId", l(
|
|
5897
|
+
onClick: d[0] || (d[0] = (f) => A.$emit("toggleId", l(o)))
|
|
5900
5898
|
}, [
|
|
5901
5899
|
g("span", null, B(e.title), 1)
|
|
5902
5900
|
], 12, vc),
|
|
5903
5901
|
g("div", {
|
|
5904
|
-
id: l(
|
|
5902
|
+
id: l(o),
|
|
5905
5903
|
ref_key: "collapse",
|
|
5906
5904
|
ref: t,
|
|
5907
5905
|
class: j(["av-collapse av-menu", { "av-collapse--expanded": l(n), "av-collapsing": l(a) }]),
|
|
5908
5906
|
"data-testid": "navigation-menu",
|
|
5909
|
-
onTransitionend: d[2] || (d[2] = (f) => l(
|
|
5907
|
+
onTransitionend: d[2] || (d[2] = (f) => l(r)(l(s)))
|
|
5910
5908
|
}, [
|
|
5911
5909
|
g("ul", Ic, [
|
|
5912
|
-
(u(!0), I($, null, ie(e.links, (f, C) => (u(),
|
|
5910
|
+
(u(!0), I($, null, ie(e.links, (f, C) => (u(), p(cc, { key: C }, {
|
|
5913
5911
|
default: G(() => [
|
|
5914
5912
|
W(Ta, ee({ ref_for: !0 }, f, {
|
|
5915
5913
|
onToggleId: d[1] || (d[1] = (m) => A.$emit("toggleId", e.expandedId))
|
|
@@ -5949,16 +5947,16 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5949
5947
|
i(s.parentNode);
|
|
5950
5948
|
}
|
|
5951
5949
|
}
|
|
5952
|
-
function
|
|
5950
|
+
function r(s) {
|
|
5953
5951
|
i(s.target);
|
|
5954
5952
|
}
|
|
5955
|
-
function
|
|
5953
|
+
function o(s) {
|
|
5956
5954
|
s.key === "Escape" && n(a.value);
|
|
5957
5955
|
}
|
|
5958
5956
|
return de(() => {
|
|
5959
|
-
document.addEventListener("click",
|
|
5957
|
+
document.addEventListener("click", r), document.addEventListener("keydown", o);
|
|
5960
5958
|
}), ve(() => {
|
|
5961
|
-
document.removeEventListener("click",
|
|
5959
|
+
document.removeEventListener("click", r), document.removeEventListener("keydown", o);
|
|
5962
5960
|
}), (s, c) => (u(), I("div", hc, [
|
|
5963
5961
|
g("nav", {
|
|
5964
5962
|
id: l(t),
|
|
@@ -5967,15 +5965,15 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5967
5965
|
"aria-label": e.label
|
|
5968
5966
|
}, [
|
|
5969
5967
|
g("ul", Cc, [
|
|
5970
|
-
(u(!0), I($, null, ie(e.navItems, (A, d) => (u(),
|
|
5968
|
+
(u(!0), I($, null, ie(e.navItems, (A, d) => (u(), p(rc, { key: d }, {
|
|
5971
5969
|
default: G(() => [
|
|
5972
|
-
A.to && A.text ? (u(),
|
|
5970
|
+
A.to && A.text ? (u(), p(Ta, ee({
|
|
5973
5971
|
key: 0,
|
|
5974
5972
|
ref_for: !0
|
|
5975
5973
|
}, A, {
|
|
5976
5974
|
"active-id": l(a),
|
|
5977
5975
|
onToggleId: c[0] || (c[0] = (f) => n(f))
|
|
5978
|
-
}), null, 16, ["active-id"])) : A.title && A.links ? (u(),
|
|
5976
|
+
}), null, 16, ["active-id"])) : A.title && A.links ? (u(), p(bc, ee({
|
|
5979
5977
|
key: 1,
|
|
5980
5978
|
ref_for: !0
|
|
5981
5979
|
}, A, {
|
|
@@ -5992,7 +5990,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5992
5990
|
}), Mc = ["aria-label"], Ec = { class: "av-pagination__list" }, Nc = { key: 0 }, Tc = { class: "b2-regular" }, Dc = ["href", "title", "aria-disabled"], Lc = { class: "av-sr-only" }, wc = ["href", "title", "aria-disabled"], Oc = {
|
|
5993
5991
|
key: 0,
|
|
5994
5992
|
class: "caption-regular av-hidden av-unhidden-md"
|
|
5995
|
-
}, Sc = ["href", "title", "aria-current", "onClick"], Qc = { key: 0 }, xc = { key: 1 },
|
|
5993
|
+
}, Sc = ["href", "title", "aria-current", "onClick"], Qc = { key: 0 }, xc = { key: 1 }, pc = ["href", "title", "disabled", "aria-disabled"], kc = {
|
|
5996
5994
|
key: 0,
|
|
5997
5995
|
class: "caption-regular av-hidden av-unhidden-md"
|
|
5998
5996
|
}, jc = ["href", "title", "disabled", "aria-disabled"], zc = { class: "av-sr-only" }, Bc = /* @__PURE__ */ Q({
|
|
@@ -6011,7 +6009,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6011
6009
|
},
|
|
6012
6010
|
emits: ["update:current-page"],
|
|
6013
6011
|
setup(e, { emit: t }) {
|
|
6014
|
-
const a = t, n = b(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), i = b(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)),
|
|
6012
|
+
const a = t, n = b(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), i = b(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), r = b(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, i.value + 1) : e.pages), o = (m) => a("update:current-page", m), s = (m) => o(m), c = () => s(0), A = () => s(Math.max(0, e.currentPage - 1)), d = () => s(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => s(e.pages.length - 1), C = (m) => e.pages.indexOf(m) === e.currentPage;
|
|
6015
6013
|
return (m, v) => {
|
|
6016
6014
|
var y, M, T, L;
|
|
6017
6015
|
return u(), I("nav", {
|
|
@@ -6054,7 +6052,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6054
6052
|
e.compact ? D("", !0) : (u(), I("span", Oc, B(e.prevPageLabel), 1))
|
|
6055
6053
|
], 8, wc)
|
|
6056
6054
|
]),
|
|
6057
|
-
e.compact ? D("", !0) : (u(!0), I($, { key: 1 }, ie(l(
|
|
6055
|
+
e.compact ? D("", !0) : (u(!0), I($, { key: 1 }, ie(l(r), (N, O) => (u(), I("li", { key: O }, [
|
|
6058
6056
|
g("a", {
|
|
6059
6057
|
href: N == null ? void 0 : N.href,
|
|
6060
6058
|
class: "av-pagination__link",
|
|
@@ -6062,9 +6060,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6062
6060
|
"aria-current": C(N) ? "page" : void 0,
|
|
6063
6061
|
onClick: ue((V) => s(e.pages.indexOf(N)), ["prevent"])
|
|
6064
6062
|
}, [
|
|
6065
|
-
l(
|
|
6063
|
+
l(r).indexOf(N) === 0 && l(n) > 0 ? (u(), I("span", Qc, "...")) : D("", !0),
|
|
6066
6064
|
De(" " + B(N.label) + " ", 1),
|
|
6067
|
-
l(
|
|
6065
|
+
l(r).indexOf(N) === l(r).length - 1 && l(i) < e.pages.length - 1 ? (u(), I("span", xc, "...")) : D("", !0)
|
|
6068
6066
|
], 8, Sc)
|
|
6069
6067
|
]))), 128)),
|
|
6070
6068
|
g("li", null, [
|
|
@@ -6076,12 +6074,12 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6076
6074
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6077
6075
|
onClick: v[2] || (v[2] = ue((N) => d(), ["prevent"]))
|
|
6078
6076
|
}, [
|
|
6079
|
-
e.compact ? D("", !0) : (u(), I("span",
|
|
6077
|
+
e.compact ? D("", !0) : (u(), I("span", kc, B(e.nextPageLabel), 1)),
|
|
6080
6078
|
W(ne, {
|
|
6081
6079
|
name: l(R).NAVIGATE_NEXT,
|
|
6082
6080
|
size: 1.5
|
|
6083
6081
|
}, null, 8, ["name"])
|
|
6084
|
-
], 8,
|
|
6082
|
+
], 8, pc)
|
|
6085
6083
|
]),
|
|
6086
6084
|
g("li", null, [
|
|
6087
6085
|
e.compact ? D("", !0) : (u(), I("a", {
|
|
@@ -6137,7 +6135,7 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6137
6135
|
v4d5b7c17: l(c),
|
|
6138
6136
|
v4a813d87: d.padding
|
|
6139
6137
|
}));
|
|
6140
|
-
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: i } = qt(t),
|
|
6138
|
+
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: i } = qt(t), r = b(() => t.id ?? crypto.randomUUID()), o = b(() => `${r.value} navigation`), s = b({
|
|
6141
6139
|
get: () => t.collapsible ? a.value : !1,
|
|
6142
6140
|
set: (d) => {
|
|
6143
6141
|
t.collapsible && (a.value = d);
|
|
@@ -6147,17 +6145,17 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6147
6145
|
t.collapsible && (s.value = !s.value);
|
|
6148
6146
|
}
|
|
6149
6147
|
return (d, f) => (u(), I("nav", {
|
|
6150
|
-
id: l(
|
|
6148
|
+
id: l(r),
|
|
6151
6149
|
class: j(["av-side-menu", { "av-side-menu--collapsed": l(s) }]),
|
|
6152
|
-
"aria-label": l(
|
|
6150
|
+
"aria-label": l(o)
|
|
6153
6151
|
}, [
|
|
6154
6152
|
t.collapsible ? (u(), I("div", Wc, [
|
|
6155
|
-
W(
|
|
6153
|
+
W(oe, {
|
|
6156
6154
|
"aria-expanded": !l(s),
|
|
6157
|
-
"aria-controls": l(
|
|
6155
|
+
"aria-controls": l(r),
|
|
6158
6156
|
icon: l(s) ? l(R).CHEVRON_DOUBLE_RIGHT : l(R).CHEVRON_DOUBLE_LEFT,
|
|
6159
6157
|
class: "av-side-menu__collapse-button",
|
|
6160
|
-
label: l(s) ? `${l(
|
|
6158
|
+
label: l(s) ? `${l(r)}-expand-button` : `${l(r)}-collapse-button`,
|
|
6161
6159
|
"icon-only": "",
|
|
6162
6160
|
onClick: A
|
|
6163
6161
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
@@ -6189,9 +6187,9 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6189
6187
|
function n(i) {
|
|
6190
6188
|
t.value = i;
|
|
6191
6189
|
}
|
|
6192
|
-
return (i,
|
|
6190
|
+
return (i, r) => (u(), p(Hc, {
|
|
6193
6191
|
collapsed: a.value,
|
|
6194
|
-
"onUpdate:collapsed":
|
|
6192
|
+
"onUpdate:collapsed": r[0] || (r[0] = (o) => a.value = o),
|
|
6195
6193
|
"collapsed-width": e.collapsedWidth,
|
|
6196
6194
|
color: e.selectedItemColor
|
|
6197
6195
|
}, {
|
|
@@ -6201,12 +6199,12 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6201
6199
|
role: "menu"
|
|
6202
6200
|
}, {
|
|
6203
6201
|
default: G(() => [
|
|
6204
|
-
(u(!0), I($, null, ie(e.items, (
|
|
6205
|
-
key:
|
|
6206
|
-
title: a.value ? void 0 :
|
|
6207
|
-
icon:
|
|
6202
|
+
(u(!0), I($, null, ie(e.items, (o) => (u(), p(l(ga), {
|
|
6203
|
+
key: o.id,
|
|
6204
|
+
title: a.value ? void 0 : o.label,
|
|
6205
|
+
icon: o.icon,
|
|
6208
6206
|
"icon-size": 1.8,
|
|
6209
|
-
selected: t.value ===
|
|
6207
|
+
selected: t.value === o.id,
|
|
6210
6208
|
"hover-background-color": e.selectedItemColor,
|
|
6211
6209
|
tag: "button",
|
|
6212
6210
|
role: "menuitem",
|
|
@@ -6214,7 +6212,7 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6214
6212
|
"av-side-navigation__menu-item--collapsed": a.value
|
|
6215
6213
|
}]),
|
|
6216
6214
|
clickable: "",
|
|
6217
|
-
onClick: (s) => n(
|
|
6215
|
+
onClick: (s) => n(o.id)
|
|
6218
6216
|
}, null, 8, ["title", "icon", "selected", "hover-background-color", "class", "onClick"]))), 128))
|
|
6219
6217
|
]),
|
|
6220
6218
|
_: 1
|
|
@@ -6284,20 +6282,20 @@ function Jc(e, t) {
|
|
|
6284
6282
|
}
|
|
6285
6283
|
n.value = { top: c / 16, left: A / 16 };
|
|
6286
6284
|
}
|
|
6287
|
-
},
|
|
6285
|
+
}, r = () => {
|
|
6288
6286
|
a.value = !1;
|
|
6289
|
-
},
|
|
6290
|
-
e.value && !e.value.contains(s.target) &&
|
|
6287
|
+
}, o = (s) => {
|
|
6288
|
+
e.value && !e.value.contains(s.target) && r();
|
|
6291
6289
|
};
|
|
6292
6290
|
return de(() => {
|
|
6293
|
-
document.addEventListener("click",
|
|
6291
|
+
document.addEventListener("click", o);
|
|
6294
6292
|
}), ve(() => {
|
|
6295
|
-
document.removeEventListener("click",
|
|
6293
|
+
document.removeEventListener("click", o);
|
|
6296
6294
|
}), {
|
|
6297
6295
|
showPopover: a,
|
|
6298
6296
|
popoverPosition: n,
|
|
6299
6297
|
togglePopover: i,
|
|
6300
|
-
closePopover:
|
|
6298
|
+
closePopover: r
|
|
6301
6299
|
};
|
|
6302
6300
|
}
|
|
6303
6301
|
const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
@@ -6311,7 +6309,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6311
6309
|
v553324d8: f.width,
|
|
6312
6310
|
d4f07f42: f.padding
|
|
6313
6311
|
}));
|
|
6314
|
-
const a = U(null), n = U(null), { showPopover: i, popoverPosition:
|
|
6312
|
+
const a = U(null), n = U(null), { showPopover: i, popoverPosition: r, togglePopover: o, closePopover: s } = Jc(a, n), { initializeFocusTrap: c, cleanupFocusTrap: A } = pi(n, s);
|
|
6315
6313
|
function d(f) {
|
|
6316
6314
|
if (!f) {
|
|
6317
6315
|
a.value = null;
|
|
@@ -6324,7 +6322,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6324
6322
|
const C = f.$el;
|
|
6325
6323
|
C instanceof HTMLElement ? a.value = C : a.value = null;
|
|
6326
6324
|
}
|
|
6327
|
-
return t({ setTriggerRef: d, triggerRef: a }),
|
|
6325
|
+
return t({ setTriggerRef: d, triggerRef: a }), re(i, async (f) => {
|
|
6328
6326
|
f ? (await at(), c()) : A();
|
|
6329
6327
|
}), gt(() => {
|
|
6330
6328
|
A();
|
|
@@ -6333,16 +6331,16 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6333
6331
|
ref: d,
|
|
6334
6332
|
class: "av-popover-trigger-wrapper"
|
|
6335
6333
|
}, [
|
|
6336
|
-
P(f.$slots, "trigger", { toggle: l(
|
|
6334
|
+
P(f.$slots, "trigger", { toggle: l(o) }, void 0, !0)
|
|
6337
6335
|
]),
|
|
6338
|
-
(u(),
|
|
6336
|
+
(u(), p(Kt, { to: "body" }, [
|
|
6339
6337
|
l(i) ? (u(), I("div", {
|
|
6340
6338
|
key: 0,
|
|
6341
6339
|
ref_key: "popoverRef",
|
|
6342
6340
|
ref: n,
|
|
6343
6341
|
tabindex: "-1",
|
|
6344
6342
|
class: "av-popover",
|
|
6345
|
-
style: ce(`top: ${l(
|
|
6343
|
+
style: ce(`top: ${l(r).top}rem; left: ${l(r).left}rem;`),
|
|
6346
6344
|
onKeydown: C[0] || (C[0] = Ae(ue(
|
|
6347
6345
|
//@ts-ignore
|
|
6348
6346
|
(...m) => l(s) && l(s)(...m),
|
|
@@ -6372,27 +6370,27 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6372
6370
|
emits: ["itemSelected"],
|
|
6373
6371
|
setup(e, { emit: t }) {
|
|
6374
6372
|
const a = t;
|
|
6375
|
-
function n(i,
|
|
6376
|
-
a("itemSelected", i),
|
|
6373
|
+
function n(i, r) {
|
|
6374
|
+
a("itemSelected", i), r();
|
|
6377
6375
|
}
|
|
6378
|
-
return (i,
|
|
6376
|
+
return (i, r) => (u(), p(eA, {
|
|
6379
6377
|
width: e.width,
|
|
6380
6378
|
padding: e.padding
|
|
6381
6379
|
}, {
|
|
6382
|
-
trigger: G(({ toggle:
|
|
6383
|
-
W(
|
|
6380
|
+
trigger: G(({ toggle: o }) => [
|
|
6381
|
+
W(oe, {
|
|
6384
6382
|
icon: e.triggerIcon,
|
|
6385
6383
|
label: e.triggerLabel || e.triggerAriaLabel,
|
|
6386
6384
|
"aria-label": e.triggerAriaLabel,
|
|
6387
6385
|
variant: e.triggerVariant,
|
|
6388
6386
|
small: e.triggerSmall,
|
|
6389
6387
|
"icon-only": !!e.triggerAriaLabel && !e.triggerLabel,
|
|
6390
|
-
onClick:
|
|
6388
|
+
onClick: o
|
|
6391
6389
|
}, null, 8, ["icon", "label", "aria-label", "variant", "small", "icon-only", "onClick"])
|
|
6392
6390
|
]),
|
|
6393
|
-
popover: G(({ close:
|
|
6391
|
+
popover: G(({ close: o }) => [
|
|
6394
6392
|
g("div", tA, [
|
|
6395
|
-
(u(!0), I($, null, ie(e.items, (s) => (u(),
|
|
6393
|
+
(u(!0), I($, null, ie(e.items, (s) => (u(), p(oe, {
|
|
6396
6394
|
key: s.name,
|
|
6397
6395
|
class: "av-dropdown__menu-item",
|
|
6398
6396
|
icon: s.icon,
|
|
@@ -6402,7 +6400,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6402
6400
|
theme: e.itemTheme,
|
|
6403
6401
|
"icon-scale": e.itemIconScale,
|
|
6404
6402
|
"no-radius": "",
|
|
6405
|
-
onClick: (c) => n(s.name,
|
|
6403
|
+
onClick: (c) => n(s.name, o)
|
|
6406
6404
|
}, null, 8, ["icon", "label", "aria-label", "small", "theme", "icon-scale", "onClick"]))), 128))
|
|
6407
6405
|
])
|
|
6408
6406
|
]),
|
|
@@ -6462,12 +6460,12 @@ const nA = {
|
|
|
6462
6460
|
},
|
|
6463
6461
|
setup(e, { slots: t, emit: a }) {
|
|
6464
6462
|
let n;
|
|
6465
|
-
const i = U(null),
|
|
6463
|
+
const i = U(null), r = b(() => {
|
|
6466
6464
|
const s = i.value;
|
|
6467
6465
|
return s && (s instanceof HTMLElement ? s : s.$el);
|
|
6468
6466
|
});
|
|
6469
|
-
function
|
|
6470
|
-
return n || (n = Aa(
|
|
6467
|
+
function o() {
|
|
6468
|
+
return n || (n = Aa(r.value, {
|
|
6471
6469
|
escapeDeactivates: e.escapeDeactivates,
|
|
6472
6470
|
allowOutsideClick: e.allowOutsideClick,
|
|
6473
6471
|
returnFocusOnDeactivate: e.returnFocusOnDeactivate,
|
|
@@ -6488,14 +6486,14 @@ const nA = {
|
|
|
6488
6486
|
}));
|
|
6489
6487
|
}
|
|
6490
6488
|
return de(() => {
|
|
6491
|
-
|
|
6492
|
-
s &&
|
|
6489
|
+
re(() => e.active, (s) => {
|
|
6490
|
+
s && r.value ? o().activate() : n && (n.deactivate(), (!r.value || r.value.nodeType === Node.COMMENT_NODE) && (n = null));
|
|
6493
6491
|
}, { immediate: !0, flush: "post" });
|
|
6494
6492
|
}), ve(() => {
|
|
6495
6493
|
n && n.deactivate(), n = null;
|
|
6496
6494
|
}), {
|
|
6497
6495
|
activate() {
|
|
6498
|
-
|
|
6496
|
+
o().activate();
|
|
6499
6497
|
},
|
|
6500
6498
|
deactivate() {
|
|
6501
6499
|
n && n.deactivate();
|
|
@@ -6503,12 +6501,12 @@ const nA = {
|
|
|
6503
6501
|
renderImpl() {
|
|
6504
6502
|
if (!t.default)
|
|
6505
6503
|
return null;
|
|
6506
|
-
const s = t.default().filter((A) => A.type !==
|
|
6504
|
+
const s = t.default().filter((A) => A.type !== ka);
|
|
6507
6505
|
return !s || !s.length || s.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), s) : ja(s[0], { ref: i });
|
|
6508
6506
|
}
|
|
6509
6507
|
};
|
|
6510
6508
|
}
|
|
6511
|
-
}), lA = ["id", "aria-labelledby", "role", "open"],
|
|
6509
|
+
}), lA = ["id", "aria-labelledby", "role", "open"], rA = { class: "av-container av-container-md av-container--fluid" }, oA = { class: "av-row-md av-row-md--center" }, sA = { class: "av-modal__body" }, cA = { class: "av-modal__content" }, AA = {
|
|
6512
6510
|
key: 0,
|
|
6513
6511
|
class: "header"
|
|
6514
6512
|
}, uA = { class: "av-modal__footer" }, dA = /* @__PURE__ */ Q({
|
|
@@ -6527,10 +6525,10 @@ const nA = {
|
|
|
6527
6525
|
},
|
|
6528
6526
|
emits: ["close", "confirm"],
|
|
6529
6527
|
setup(e, { emit: t }) {
|
|
6530
|
-
const a = t, n = fe(), i = b(() => e.id ?? `modal-${crypto.randomUUID()}`),
|
|
6531
|
-
|
|
6528
|
+
const a = t, n = fe(), i = b(() => e.id ?? `modal-${crypto.randomUUID()}`), r = b(() => e.isAlert ? "alertdialog" : "dialog"), o = U(null), s = U();
|
|
6529
|
+
re(() => e.opened, (A) => {
|
|
6532
6530
|
var d, f, C;
|
|
6533
|
-
A ? ((d = s.value) == null || d.showModal(), (f =
|
|
6531
|
+
A ? ((d = s.value) == null || d.showModal(), (f = o.value) == null || f.focus()) : (C = s.value) == null || C.close(), c(A);
|
|
6534
6532
|
});
|
|
6535
6533
|
function c(A) {
|
|
6536
6534
|
typeof window < "u" && document.body.classList.toggle("modal-open", A);
|
|
@@ -6541,8 +6539,8 @@ const nA = {
|
|
|
6541
6539
|
c(!1);
|
|
6542
6540
|
}), (A, d) => {
|
|
6543
6541
|
const f = Ea;
|
|
6544
|
-
return u(),
|
|
6545
|
-
e.opened ? (u(),
|
|
6542
|
+
return u(), p(Kt, { to: "body" }, [
|
|
6543
|
+
e.opened ? (u(), p(l(iA), { key: 0 }, {
|
|
6546
6544
|
default: G(() => [
|
|
6547
6545
|
g("dialog", {
|
|
6548
6546
|
id: l(i),
|
|
@@ -6550,13 +6548,13 @@ const nA = {
|
|
|
6550
6548
|
ref: s,
|
|
6551
6549
|
"aria-modal": "true",
|
|
6552
6550
|
"aria-labelledby": l(i),
|
|
6553
|
-
role: l(
|
|
6551
|
+
role: l(r),
|
|
6554
6552
|
class: j(["av-modal", { "av-modal--opened": e.opened }]),
|
|
6555
6553
|
open: e.opened,
|
|
6556
6554
|
onKeydown: d[2] || (d[2] = Ae((C) => a("close"), ["esc"]))
|
|
6557
6555
|
}, [
|
|
6558
|
-
g("div",
|
|
6559
|
-
g("div",
|
|
6556
|
+
g("div", rA, [
|
|
6557
|
+
g("div", oA, [
|
|
6560
6558
|
g("div", sA, [
|
|
6561
6559
|
g("div", cA, [
|
|
6562
6560
|
n.header ? (u(), I("div", AA, [
|
|
@@ -6567,7 +6565,7 @@ const nA = {
|
|
|
6567
6565
|
g("div", uA, [
|
|
6568
6566
|
W(f, {
|
|
6569
6567
|
ref_key: "closeBtn",
|
|
6570
|
-
ref:
|
|
6568
|
+
ref: o,
|
|
6571
6569
|
"cancel-label": e.closeButtonLabel,
|
|
6572
6570
|
"cancel-icon": e.closeButtonIcon,
|
|
6573
6571
|
"cancel-disabled": e.closeButtonDisabled,
|
|
@@ -6600,7 +6598,7 @@ export {
|
|
|
6600
6598
|
OA as AvAutocomplete,
|
|
6601
6599
|
mA as AvBadge,
|
|
6602
6600
|
BA as AvBreadcrumb,
|
|
6603
|
-
|
|
6601
|
+
oe as AvButton,
|
|
6604
6602
|
Ea as AvCancelConfirmButtons,
|
|
6605
6603
|
hA as AvCard,
|
|
6606
6604
|
Ki as AvCheckbox,
|
|
@@ -6615,7 +6613,7 @@ export {
|
|
|
6615
6613
|
ne as AvIcon,
|
|
6616
6614
|
Ra as AvIconText,
|
|
6617
6615
|
Nt as AvInput,
|
|
6618
|
-
|
|
6616
|
+
pt as AvLanguageSelector,
|
|
6619
6617
|
Ia as AvList,
|
|
6620
6618
|
ga as AvListItem,
|
|
6621
6619
|
Ls as AvLogo,
|
|
@@ -6626,7 +6624,7 @@ export {
|
|
|
6626
6624
|
LA as AvPageSizePicker,
|
|
6627
6625
|
WA as AvPagination,
|
|
6628
6626
|
eA as AvPopover,
|
|
6629
|
-
|
|
6627
|
+
Rr as AvRadioButton,
|
|
6630
6628
|
wA as AvRadioButtonSet,
|
|
6631
6629
|
NA as AvRichButton,
|
|
6632
6630
|
Vt as AvSearchBar,
|
|
@@ -6635,11 +6633,11 @@ export {
|
|
|
6635
6633
|
VA as AvSideNavigation,
|
|
6636
6634
|
HA as AvStepper,
|
|
6637
6635
|
xA as AvTab,
|
|
6638
|
-
|
|
6636
|
+
pA as AvTabs,
|
|
6639
6637
|
Va as AvTag,
|
|
6640
|
-
|
|
6638
|
+
Ur as AvTagPicker,
|
|
6641
6639
|
yA as AvToaster,
|
|
6642
|
-
|
|
6640
|
+
kA as AvToggle,
|
|
6643
6641
|
Qe as DropdownState,
|
|
6644
6642
|
zA as EsupLogo,
|
|
6645
6643
|
me as ICONS_DATA_URL,
|
|
@@ -6655,6 +6653,6 @@ export {
|
|
|
6655
6653
|
_a as toSentenceCase,
|
|
6656
6654
|
nt as useAvBreakpoints,
|
|
6657
6655
|
Ze as useCollapsable,
|
|
6658
|
-
|
|
6656
|
+
pi as useFocusTrap,
|
|
6659
6657
|
EA as useGlobalBackgroundColor
|
|
6660
6658
|
};
|