@avenirs-esr/avenirs-dsav 0.1.95 → 0.1.97
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/inputs/AvInput/AvInput.stub.d.ts +2 -0
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +4 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +1 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +6 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +558 -554
- package/dist/test-utils.cjs.js +4 -4
- package/dist/test-utils.es.js +2 -1
- package/dist/tokens/icons.d.ts +1 -0
- package/package.json +1 -1
- package/src/styles/components/_icons.scss +1 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, useCssVars as se, computed 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 k, 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 oe, 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 ka, resolveComponent as Mt, Teleport as Kt, Comment as pa, 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",
|
|
@@ -17,10 +17,10 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
17
17
|
v667d0b12: i.backgroundColor,
|
|
18
18
|
v23262b39: i.borderColor
|
|
19
19
|
}));
|
|
20
|
-
const t =
|
|
20
|
+
const t = b(() => {
|
|
21
21
|
var i, o;
|
|
22
22
|
return (i = e.icon) != null && i.startsWith("data:") ? null : (o = e.icon) == null ? void 0 : o.replace(":", "-");
|
|
23
|
-
}), a =
|
|
23
|
+
}), a = b(() => `--icon-${t.value}`), n = b(() => t.value ? { "--icon-path": `var(${a.value})` } : e.icon ? { "--icon-path": `url(${e.icon})` } : {});
|
|
24
24
|
return (i, o) => (u(), I("p", {
|
|
25
25
|
class: j(["av-badge", {
|
|
26
26
|
"av-badge--sm": e.small,
|
|
@@ -30,7 +30,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
30
30
|
title: e.ellipsis ? e.label : void 0,
|
|
31
31
|
style: ce(l(n))
|
|
32
32
|
}, [
|
|
33
|
-
|
|
33
|
+
g("span", {
|
|
34
34
|
class: j({
|
|
35
35
|
"av-ellipsis": e.ellipsis,
|
|
36
36
|
"caption-bold": e.small,
|
|
@@ -60,7 +60,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
60
60
|
v45e97e25: l(t),
|
|
61
61
|
v7f7f664e: i.color
|
|
62
62
|
}));
|
|
63
|
-
const t =
|
|
63
|
+
const t = b(() => `${e.size}rem`), a = b(() => e.name.replace(":", "-")), n = b(() => `--icon-${a.value}`);
|
|
64
64
|
return (i, o) => (u(), I("div", {
|
|
65
65
|
class: j(["av-icon", {
|
|
66
66
|
"av-icon--spin": e.animation === "spin",
|
|
@@ -78,7 +78,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
78
78
|
}),
|
|
79
79
|
title: e.title
|
|
80
80
|
}, [
|
|
81
|
-
|
|
81
|
+
g("span", {
|
|
82
82
|
class: "av-icon__icon",
|
|
83
83
|
style: ce({ "--icon": `var(${l(n)})`, width: l(t), height: l(t) })
|
|
84
84
|
}, null, 4)
|
|
@@ -151,6 +151,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
151
151
|
MINUS: "mdi:minus",
|
|
152
152
|
NAVIGATE_BEFORE: "mdi:navigate-before",
|
|
153
153
|
NAVIGATE_NEXT: "mdi:navigate-next",
|
|
154
|
+
NEWSPAPER_VARIANT: "mdi:newspaper-variant",
|
|
154
155
|
NOTEBOOK_CHECK: "mdi:notebook-check",
|
|
155
156
|
NOTIFICATIONS_NONE: "mdi:notifications-none",
|
|
156
157
|
PAGE_FIRST: "mdi:page-first",
|
|
@@ -228,7 +229,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
228
229
|
},
|
|
229
230
|
emits: ["select"],
|
|
230
231
|
setup(e) {
|
|
231
|
-
const t = Da(e, ["label", "tagName", "icon", "disabled", "small", "iconOnly"]), a =
|
|
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(() => ({
|
|
232
233
|
"--icon-path": `url(${me.MDI_CHECK_CIRCLE_OUTLINE})`
|
|
233
234
|
}));
|
|
234
235
|
return (i, o) => (u(), k(Me(l(a)), ee({
|
|
@@ -272,7 +273,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
272
273
|
v7e6d040d: i.gap,
|
|
273
274
|
v19519e2d: i.textColor
|
|
274
275
|
}));
|
|
275
|
-
const t =
|
|
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");
|
|
276
277
|
return (i, o) => (u(), I("div", {
|
|
277
278
|
class: j(["icon-text--container", [l(a)]])
|
|
278
279
|
}, [
|
|
@@ -282,7 +283,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
282
283
|
color: e.iconColor,
|
|
283
284
|
size: l(t)
|
|
284
285
|
}, null, 8, ["name", "color", "size"]),
|
|
285
|
-
|
|
286
|
+
g("span", {
|
|
286
287
|
class: j(["icon-text--text", [l(n), e.typographyClass]])
|
|
287
288
|
}, B(e.text), 3)
|
|
288
289
|
], 2));
|
|
@@ -298,7 +299,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
298
299
|
message: {}
|
|
299
300
|
},
|
|
300
301
|
setup(e) {
|
|
301
|
-
const t =
|
|
302
|
+
const t = b(() => e.messageId ?? `message-${crypto.randomUUID()}`), a = b(() => {
|
|
302
303
|
switch (e.type) {
|
|
303
304
|
case "success":
|
|
304
305
|
return {
|
|
@@ -329,7 +330,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
329
330
|
typographyClass: "caption-regular"
|
|
330
331
|
};
|
|
331
332
|
}
|
|
332
|
-
}), n =
|
|
333
|
+
}), n = b(() => e.message ? Array.isArray(e.message) ? e.message : [e.message ?? ""] : []);
|
|
333
334
|
return (i, o) => {
|
|
334
335
|
const r = Ra;
|
|
335
336
|
return u(), I("div", Za, [
|
|
@@ -361,7 +362,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
361
362
|
required: { type: Boolean, default: !1 }
|
|
362
363
|
},
|
|
363
364
|
setup(e) {
|
|
364
|
-
const t = fe(), a =
|
|
365
|
+
const t = fe(), a = b(() => e.errorMessage || e.successMessage);
|
|
365
366
|
return (n, i) => {
|
|
366
367
|
const o = ke;
|
|
367
368
|
return u(), I("fieldset", {
|
|
@@ -371,7 +372,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
371
372
|
"av-fieldset--inline": e.inline
|
|
372
373
|
}])
|
|
373
374
|
}, [
|
|
374
|
-
|
|
375
|
+
g("div", null, [
|
|
375
376
|
e.legend || t.legend ? (u(), I("legend", {
|
|
376
377
|
key: 0,
|
|
377
378
|
id: e.legendId,
|
|
@@ -381,7 +382,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
381
382
|
P(n.$slots, "legend", {}, void 0, !0)
|
|
382
383
|
], 10, Ya)) : D("", !0),
|
|
383
384
|
e.hint || t.hint ? (u(), I("div", qa, [
|
|
384
|
-
|
|
385
|
+
g("span", {
|
|
385
386
|
class: j(["av-hint-text", e.hintClass])
|
|
386
387
|
}, [
|
|
387
388
|
De(B(e.hint) + " ", 1),
|
|
@@ -389,7 +390,7 @@ const za = ["title"], Ba = /* @__PURE__ */ Q({
|
|
|
389
390
|
], 2),
|
|
390
391
|
e.required ? (u(), I("span", Fa, " *")) : D("", !0)
|
|
391
392
|
])) : D("", !0),
|
|
392
|
-
|
|
393
|
+
g("div", Ka, [
|
|
393
394
|
P(n.$slots, "default", {}, void 0, !0)
|
|
394
395
|
]),
|
|
395
396
|
W(o, {
|
|
@@ -429,7 +430,7 @@ const en = { class: "b2-bold" }, tn = { class: "b2-regular" }, an = ["innerHTML"
|
|
|
429
430
|
type: {}
|
|
430
431
|
},
|
|
431
432
|
setup(e) {
|
|
432
|
-
const t =
|
|
433
|
+
const t = b(() => $a(e.text)), a = b(() => {
|
|
433
434
|
switch (e.type) {
|
|
434
435
|
case "warning":
|
|
435
436
|
return { name: R.WARNING, color: "var(--dark-background-warn)" };
|
|
@@ -446,10 +447,10 @@ const en = { class: "b2-bold" }, tn = { class: "b2-regular" }, an = ["innerHTML"
|
|
|
446
447
|
class: j(["av-notice", `av-notice--${e.type}`])
|
|
447
448
|
}, [
|
|
448
449
|
W(o, ee(l(a), { size: 1.5 }), null, 16),
|
|
449
|
-
|
|
450
|
+
g("span", en, [
|
|
450
451
|
De(B(e.title) + " ", 1),
|
|
451
|
-
|
|
452
|
-
|
|
452
|
+
g("span", tn, [
|
|
453
|
+
g("span", { innerHTML: l(t) }, null, 8, an)
|
|
453
454
|
])
|
|
454
455
|
])
|
|
455
456
|
], 2);
|
|
@@ -485,14 +486,14 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
485
486
|
(f = a.value) == null || f.focus();
|
|
486
487
|
}
|
|
487
488
|
t({ focus: n });
|
|
488
|
-
const i = { name: R.LOADING, animation: "spin" }, o =
|
|
489
|
+
const i = { name: R.LOADING, animation: "spin" }, o = b(() => e.iconScale && !Number.isNaN(e.iconScale) ? e.iconScale : e.small ? 1 : 1.5), r = b(() => {
|
|
489
490
|
if (e.isLoading)
|
|
490
491
|
return { ...i, size: o.value };
|
|
491
492
|
if (typeof e.icon == "string" && e.icon.trim())
|
|
492
493
|
return { name: e.icon, size: o.value };
|
|
493
494
|
if (e.icon && typeof e.icon != "string")
|
|
494
495
|
return { ...e.icon, size: o.value };
|
|
495
|
-
}), s =
|
|
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()}`);
|
|
496
497
|
return (f, C) => {
|
|
497
498
|
const m = ne;
|
|
498
499
|
return u(), I("button", {
|
|
@@ -561,7 +562,7 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
561
562
|
onClick: i[0] || (i[0] = (r) => a.value = !l(a))
|
|
562
563
|
}, null, 8, ["icon"])) : D("", !0)
|
|
563
564
|
], 6)) : D("", !0),
|
|
564
|
-
It(
|
|
565
|
+
It(g("div", sn, [
|
|
565
566
|
P(n.$slots, "default", {}, void 0, !0),
|
|
566
567
|
t.body ? (u(), I("div", cn, [
|
|
567
568
|
P(n.$slots, "body", {}, void 0, !0)
|
|
@@ -593,14 +594,14 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
593
594
|
},
|
|
594
595
|
emits: ["close"],
|
|
595
596
|
setup(e, { emit: t }) {
|
|
596
|
-
const a = t, n =
|
|
597
|
+
const a = t, n = b(() => e.id ?? `alert-${crypto.randomUUID()}`), i = () => a("close"), o = b(
|
|
597
598
|
() => [
|
|
598
599
|
`av-alert--${e.type}`,
|
|
599
600
|
{
|
|
600
601
|
"av-alert--sm": e.small
|
|
601
602
|
}
|
|
602
603
|
]
|
|
603
|
-
), r =
|
|
604
|
+
), r = b(() => {
|
|
604
605
|
switch (e.type) {
|
|
605
606
|
case "error":
|
|
606
607
|
return { name: R.ALERT_CIRCLE_OUTLINE, color: "var(--dark-background-error)" };
|
|
@@ -619,13 +620,13 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
619
620
|
class: j(["av-alert", l(o)]),
|
|
620
621
|
role: e.alert ? "alert" : void 0
|
|
621
622
|
}, [
|
|
622
|
-
|
|
623
|
-
|
|
623
|
+
g("div", fn, [
|
|
624
|
+
g("div", vn, [
|
|
624
625
|
W(ne, ee(l(r), { size: 3 }), null, 16),
|
|
625
|
-
|
|
626
|
+
g("div", mn, [
|
|
626
627
|
e.small ? D("", !0) : (u(), I("span", In, B(e.title), 1)),
|
|
627
628
|
P(s.$slots, "default", {}, () => [
|
|
628
|
-
|
|
629
|
+
g("span", gn, B(e.description), 1)
|
|
629
630
|
], !0)
|
|
630
631
|
])
|
|
631
632
|
]),
|
|
@@ -719,14 +720,14 @@ const on = ["title", "disabled", "aria-disabled", "aria-label"], rn = /* @__PURE
|
|
|
719
720
|
window.removeEventListener("keydown", A);
|
|
720
721
|
}), (d, f) => l(c) ? (u(), I("div", Mn, [
|
|
721
722
|
e.backdrop ? (u(), I("div", En)) : D("", !0),
|
|
722
|
-
|
|
723
|
+
g("div", {
|
|
723
724
|
class: j(["av-drawer", `av-drawer--${l(o)}`]),
|
|
724
725
|
role: "dialog",
|
|
725
726
|
"aria-modal": "true",
|
|
726
727
|
"aria-label": e.ariaLabel
|
|
727
728
|
}, [
|
|
728
|
-
|
|
729
|
-
|
|
729
|
+
g("div", Tn, [
|
|
730
|
+
g("div", Dn, [
|
|
730
731
|
P(d.$slots, "default", {}, void 0, !0)
|
|
731
732
|
]),
|
|
732
733
|
i.footer ? (u(), I("div", Ln, [
|
|
@@ -777,10 +778,10 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
777
778
|
cssExpanded: n,
|
|
778
779
|
doExpand: i,
|
|
779
780
|
onTransitionEnd: o
|
|
780
|
-
} = Ze(), r =
|
|
781
|
+
} = Ze(), r = b(() => e.id ?? `accordion-${crypto.randomUUID()}`), s = U(), c = tt(Gt), { isActive: A, expand: d } = (c == null ? void 0 : c(Ft(() => e.title))) ?? {
|
|
781
782
|
isActive: s,
|
|
782
783
|
expand: () => s.value = !s.value
|
|
783
|
-
}, f =
|
|
784
|
+
}, f = b(() => ({
|
|
784
785
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
785
786
|
}));
|
|
786
787
|
return de(() => {
|
|
@@ -790,28 +791,28 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
790
791
|
}), (C, m) => {
|
|
791
792
|
const v = ne;
|
|
792
793
|
return u(), I("section", Sn, [
|
|
793
|
-
|
|
794
|
-
|
|
794
|
+
g("h3", Qn, [
|
|
795
|
+
g("button", {
|
|
795
796
|
class: "av-accordion__btn",
|
|
796
797
|
"aria-expanded": l(A),
|
|
797
798
|
"aria-controls": l(r),
|
|
798
799
|
type: "button",
|
|
799
800
|
style: ce(l(f)),
|
|
800
801
|
onClick: m[0] || (m[0] = //@ts-ignore
|
|
801
|
-
(...
|
|
802
|
+
(...y) => l(d) && l(d)(...y))
|
|
802
803
|
}, [
|
|
803
|
-
|
|
804
|
+
g("div", kn, [
|
|
804
805
|
e.icon ? (u(), k(v, {
|
|
805
806
|
key: 0,
|
|
806
807
|
size: 2,
|
|
807
808
|
name: e.icon,
|
|
808
809
|
color: "var(--icon)"
|
|
809
810
|
}, null, 8, ["name"])) : D("", !0),
|
|
810
|
-
|
|
811
|
+
g("h6", pn, B(e.title), 1)
|
|
811
812
|
])
|
|
812
813
|
], 12, xn)
|
|
813
814
|
]),
|
|
814
|
-
|
|
815
|
+
g("div", {
|
|
815
816
|
id: l(r),
|
|
816
817
|
ref_key: "collapse",
|
|
817
818
|
ref: t,
|
|
@@ -820,9 +821,9 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
820
821
|
// Need to use a separate data to add/remove the class after a RAF
|
|
821
822
|
"av-collapsing": l(a)
|
|
822
823
|
}]),
|
|
823
|
-
onTransitionend: m[1] || (m[1] = (
|
|
824
|
+
onTransitionend: m[1] || (m[1] = (y) => l(o)(l(A), !1))
|
|
824
825
|
}, [
|
|
825
|
-
|
|
826
|
+
g("div", zn, [
|
|
826
827
|
P(C.$slots, "default", {}, void 0, !0)
|
|
827
828
|
])
|
|
828
829
|
], 42, jn)
|
|
@@ -840,7 +841,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
840
841
|
},
|
|
841
842
|
emits: ["update:activeAccordion"],
|
|
842
843
|
setup(e, { emit: t }) {
|
|
843
|
-
const a = t, n = U(e.activeAccordion ?? -1), i =
|
|
844
|
+
const a = t, n = U(e.activeAccordion ?? -1), i = b({
|
|
844
845
|
get: () => n.value,
|
|
845
846
|
set(s) {
|
|
846
847
|
n.value = s, a("update:activeAccordion", s);
|
|
@@ -849,7 +850,7 @@ const Sn = { class: "av-accordion" }, Qn = { class: "av-accordion__title" }, xn
|
|
|
849
850
|
return bt(Gt, (s) => {
|
|
850
851
|
const c = r.value++;
|
|
851
852
|
o.value.set(c, s.value);
|
|
852
|
-
const A =
|
|
853
|
+
const A = b(() => c === i.value);
|
|
853
854
|
oe(s, () => {
|
|
854
855
|
o.value.set(c, s.value);
|
|
855
856
|
});
|
|
@@ -913,10 +914,10 @@ function Xn(...e) {
|
|
|
913
914
|
a && (clearTimeout(a), a = void 0, i(), i = xe);
|
|
914
915
|
};
|
|
915
916
|
return (C) => {
|
|
916
|
-
const m = le(r), v = Date.now() - t,
|
|
917
|
-
return d(), m <= 0 ? (t = Date.now(),
|
|
918
|
-
i = A ?
|
|
919
|
-
t = Date.now(), n = !0,
|
|
917
|
+
const m = le(r), v = Date.now() - t, y = () => o = C();
|
|
918
|
+
return d(), m <= 0 ? (t = Date.now(), y()) : (v > m && (c || !n) ? (t = Date.now(), y()) : s && (o = new Promise((M, T) => {
|
|
919
|
+
i = A ? T : M, a = setTimeout(() => {
|
|
920
|
+
t = Date.now(), n = !0, M(y()), d();
|
|
920
921
|
}, Math.max(0, m - v));
|
|
921
922
|
})), !c && !a && (a = setTimeout(() => n = !0, m)), n = !1, o);
|
|
922
923
|
};
|
|
@@ -973,7 +974,7 @@ function Et(e) {
|
|
|
973
974
|
function dt(...e) {
|
|
974
975
|
const t = [], a = () => {
|
|
975
976
|
t.forEach((s) => s()), t.length = 0;
|
|
976
|
-
}, n = (s, c, A, d) => (s.addEventListener(c, A, d), () => s.removeEventListener(c, A, d)), i =
|
|
977
|
+
}, n = (s, c, A, d) => (s.addEventListener(c, A, d), () => s.removeEventListener(c, A, d)), i = b(() => {
|
|
977
978
|
const s = Fe(le(e[0])).filter((c) => c != null);
|
|
978
979
|
return s.every((c) => typeof c != "string") ? s : void 0;
|
|
979
980
|
}), o = Gn(
|
|
@@ -1015,14 +1016,14 @@ function Jn() {
|
|
|
1015
1016
|
// @__NO_SIDE_EFFECTS__
|
|
1016
1017
|
function aa(e) {
|
|
1017
1018
|
const t = /* @__PURE__ */ Jn();
|
|
1018
|
-
return
|
|
1019
|
+
return b(() => (t.value, !!e()));
|
|
1019
1020
|
}
|
|
1020
1021
|
function $n(e, t, a = {}) {
|
|
1021
1022
|
const { window: n = Xe, ...i } = a;
|
|
1022
1023
|
let o;
|
|
1023
1024
|
const r = /* @__PURE__ */ aa(() => n && "MutationObserver" in n), s = () => {
|
|
1024
1025
|
o && (o.disconnect(), o = void 0);
|
|
1025
|
-
}, c =
|
|
1026
|
+
}, c = b(() => {
|
|
1026
1027
|
const C = le(e), m = Fe(C).map(Et).filter(Vn);
|
|
1027
1028
|
return new Set(m);
|
|
1028
1029
|
}), A = oe(
|
|
@@ -1062,13 +1063,13 @@ function ze(e, t = {}) {
|
|
|
1062
1063
|
return;
|
|
1063
1064
|
}
|
|
1064
1065
|
i.value && (r.value = a.matchMedia(le(e)), s.value = r.value.matches);
|
|
1065
|
-
}), dt(r, "change", c, { passive: !0 }),
|
|
1066
|
+
}), dt(r, "change", c, { passive: !0 }), b(() => s.value);
|
|
1066
1067
|
}
|
|
1067
1068
|
// @__NO_SIDE_EFFECTS__
|
|
1068
1069
|
function ei(e, t = {}) {
|
|
1069
1070
|
function a(m, v) {
|
|
1070
|
-
let
|
|
1071
|
-
return v != null && (
|
|
1071
|
+
let y = le(e[le(m)]);
|
|
1072
|
+
return v != null && (y = Yn(y, v)), typeof y == "number" && (y = `${y}px`), y;
|
|
1072
1073
|
}
|
|
1073
1074
|
const { window: n = Xe, strategy: i = "min-width", ssrWidth: o = /* @__PURE__ */ na() } = t, r = typeof o == "number", s = r ? ye(!1) : { value: !0 };
|
|
1074
1075
|
r && ta(() => s.value = !!n);
|
|
@@ -1081,8 +1082,8 @@ function ei(e, t = {}) {
|
|
|
1081
1082
|
configurable: !0
|
|
1082
1083
|
}), m), {});
|
|
1083
1084
|
function C() {
|
|
1084
|
-
const m = Object.keys(e).map((v) => [v, f[v], Ve(a(v))]).sort((v,
|
|
1085
|
-
return
|
|
1085
|
+
const m = Object.keys(e).map((v) => [v, f[v], Ve(a(v))]).sort((v, y) => v[2] - y[2]);
|
|
1086
|
+
return b(() => m.filter(([, v]) => v.value).map(([v]) => v));
|
|
1086
1087
|
}
|
|
1087
1088
|
return Object.assign(f, {
|
|
1088
1089
|
greaterOrEqual: A,
|
|
@@ -1114,7 +1115,7 @@ function ei(e, t = {}) {
|
|
|
1114
1115
|
current: C,
|
|
1115
1116
|
active() {
|
|
1116
1117
|
const m = C();
|
|
1117
|
-
return
|
|
1118
|
+
return b(() => m.value.length === 0 ? "" : m.value.at(i === "min-width" ? -1 : 0));
|
|
1118
1119
|
}
|
|
1119
1120
|
});
|
|
1120
1121
|
}
|
|
@@ -1145,37 +1146,37 @@ function ti(e, t = {}) {
|
|
|
1145
1146
|
}
|
|
1146
1147
|
} = t, C = typeof s == "boolean" ? {
|
|
1147
1148
|
mutation: s
|
|
1148
|
-
} : s, m = ye(0), v = ye(0),
|
|
1149
|
+
} : s, m = ye(0), v = ye(0), y = b({
|
|
1149
1150
|
get() {
|
|
1150
1151
|
return m.value;
|
|
1151
1152
|
},
|
|
1152
1153
|
set(x) {
|
|
1153
|
-
|
|
1154
|
+
T(x, void 0);
|
|
1154
1155
|
}
|
|
1155
|
-
}),
|
|
1156
|
+
}), M = b({
|
|
1156
1157
|
get() {
|
|
1157
1158
|
return v.value;
|
|
1158
1159
|
},
|
|
1159
1160
|
set(x) {
|
|
1160
|
-
|
|
1161
|
+
T(void 0, x);
|
|
1161
1162
|
}
|
|
1162
1163
|
});
|
|
1163
|
-
function
|
|
1164
|
-
var w, p, h,
|
|
1164
|
+
function T(x, H) {
|
|
1165
|
+
var w, p, h, E;
|
|
1165
1166
|
if (!d)
|
|
1166
1167
|
return;
|
|
1167
1168
|
const S = le(e);
|
|
1168
1169
|
if (!S)
|
|
1169
1170
|
return;
|
|
1170
1171
|
(h = S instanceof Document ? d.document.body : S) == null || h.scrollTo({
|
|
1171
|
-
top: (w = le(H)) != null ? w :
|
|
1172
|
-
left: (p = le(x)) != null ? p :
|
|
1172
|
+
top: (w = le(H)) != null ? w : M.value,
|
|
1173
|
+
left: (p = le(x)) != null ? p : y.value,
|
|
1173
1174
|
behavior: le(A)
|
|
1174
1175
|
});
|
|
1175
|
-
const Y = ((
|
|
1176
|
-
|
|
1176
|
+
const Y = ((E = S == null ? void 0 : S.document) == null ? void 0 : E.documentElement) || (S == null ? void 0 : S.documentElement) || S;
|
|
1177
|
+
y != null && (m.value = Y.scrollLeft), M != null && (v.value = Y.scrollTop);
|
|
1177
1178
|
}
|
|
1178
|
-
const L = ye(!1),
|
|
1179
|
+
const L = ye(!1), N = ut({
|
|
1179
1180
|
left: !0,
|
|
1180
1181
|
right: !1,
|
|
1181
1182
|
top: !0,
|
|
@@ -1191,14 +1192,14 @@ function ti(e, t = {}) {
|
|
|
1191
1192
|
var H;
|
|
1192
1193
|
if (!d)
|
|
1193
1194
|
return;
|
|
1194
|
-
const w = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Et(x), { display: p, flexDirection: h, direction:
|
|
1195
|
+
const w = ((H = x == null ? void 0 : x.document) == null ? void 0 : H.documentElement) || (x == null ? void 0 : x.documentElement) || Et(x), { display: p, flexDirection: h, direction: E } = getComputedStyle(w), S = E === "rtl" ? -1 : 1, Y = w.scrollLeft;
|
|
1195
1196
|
O.left = Y < m.value, O.right = Y > m.value;
|
|
1196
1197
|
const q = Math.abs(Y * S) <= (r.left || 0), J = Math.abs(Y * S) + w.clientWidth >= w.scrollWidth - (r.right || 0) - Lt;
|
|
1197
|
-
p === "flex" && h === "row-reverse" ? (
|
|
1198
|
+
p === "flex" && h === "row-reverse" ? (N.left = J, N.right = q) : (N.left = q, N.right = J), m.value = Y;
|
|
1198
1199
|
let X = w.scrollTop;
|
|
1199
1200
|
x === d.document && !X && (X = d.document.body.scrollTop), O.top = X < v.value, O.bottom = X > v.value;
|
|
1200
1201
|
const _ = Math.abs(X) <= (r.top || 0), ae = Math.abs(X) + w.clientHeight >= w.scrollHeight - (r.bottom || 0) - Lt;
|
|
1201
|
-
p === "flex" && h === "column-reverse" ? (
|
|
1202
|
+
p === "flex" && h === "column-reverse" ? (N.top = ae, N.bottom = _) : (N.top = _, N.bottom = ae), v.value = X;
|
|
1202
1203
|
}, te = (x) => {
|
|
1203
1204
|
var H;
|
|
1204
1205
|
if (!d)
|
|
@@ -1237,10 +1238,10 @@ function ti(e, t = {}) {
|
|
|
1237
1238
|
V,
|
|
1238
1239
|
c
|
|
1239
1240
|
), {
|
|
1240
|
-
x:
|
|
1241
|
-
y:
|
|
1241
|
+
x: y,
|
|
1242
|
+
y: M,
|
|
1242
1243
|
isScrolling: L,
|
|
1243
|
-
arrivedState:
|
|
1244
|
+
arrivedState: N,
|
|
1244
1245
|
directions: O,
|
|
1245
1246
|
measure() {
|
|
1246
1247
|
const x = le(e);
|
|
@@ -1259,7 +1260,7 @@ const ai = {
|
|
|
1259
1260
|
/* 90rem */
|
|
1260
1261
|
};
|
|
1261
1262
|
function nt() {
|
|
1262
|
-
const e = /* @__PURE__ */ ei(ai), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), i = e.smaller("xl"), o = e.greater("md"), r = e.greater("lg"), s = a, c =
|
|
1263
|
+
const e = /* @__PURE__ */ ei(ai), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), i = e.smaller("xl"), o = e.greater("md"), r = e.greater("lg"), s = a, c = b(() => o.value && n.value), A = r, d = e.active();
|
|
1263
1264
|
return {
|
|
1264
1265
|
isMobile: s,
|
|
1265
1266
|
isTablet: c,
|
|
@@ -1615,10 +1616,10 @@ var Qt = {
|
|
|
1615
1616
|
delayInitialFocusTimer: void 0,
|
|
1616
1617
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1617
1618
|
recentNavEvent: void 0
|
|
1618
|
-
}, s, c = function(h,
|
|
1619
|
-
return h && h[
|
|
1620
|
-
}, A = function(h,
|
|
1621
|
-
var S = typeof (
|
|
1619
|
+
}, s, c = function(h, E, S) {
|
|
1620
|
+
return h && h[E] !== void 0 ? h[E] : o[S || E];
|
|
1621
|
+
}, A = function(h, E) {
|
|
1622
|
+
var S = typeof (E == null ? void 0 : E.composedPath) == "function" ? E.composedPath() : void 0;
|
|
1622
1623
|
return r.containerGroups.findIndex(function(Y) {
|
|
1623
1624
|
var q = Y.container, J = Y.tabbableNodes;
|
|
1624
1625
|
return q.contains(h) || // fall back to explicit tabbable search which will take into consideration any
|
|
@@ -1630,7 +1631,7 @@ var Qt = {
|
|
|
1630
1631
|
});
|
|
1631
1632
|
});
|
|
1632
1633
|
}, d = function(h) {
|
|
1633
|
-
var
|
|
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 = o[h];
|
|
1634
1635
|
if (typeof X == "function" && (X = X.apply(void 0, Ni(J))), X === !0 && (X = void 0), !X) {
|
|
1635
1636
|
if (X === void 0 || X === !1)
|
|
1636
1637
|
return X;
|
|
@@ -1657,7 +1658,7 @@ var Qt = {
|
|
|
1657
1658
|
if (A(n.activeElement) >= 0)
|
|
1658
1659
|
h = n.activeElement;
|
|
1659
1660
|
else {
|
|
1660
|
-
var
|
|
1661
|
+
var E = r.tabbableGroups[0], S = E && E.firstTabbableNode;
|
|
1661
1662
|
h = S || d("fallbackFocus");
|
|
1662
1663
|
}
|
|
1663
1664
|
else h === null && (h = d("fallbackFocus"));
|
|
@@ -1666,16 +1667,16 @@ var Qt = {
|
|
|
1666
1667
|
return h;
|
|
1667
1668
|
}, C = function() {
|
|
1668
1669
|
if (r.containerGroups = r.containers.map(function(h) {
|
|
1669
|
-
var
|
|
1670
|
+
var E = gi(h, o.tabbableOptions), S = bi(h, o.tabbableOptions), Y = E.length > 0 ? E[0] : void 0, q = E.length > 0 ? E[E.length - 1] : void 0, J = S.find(function(ae) {
|
|
1670
1671
|
return Oe(ae);
|
|
1671
1672
|
}), X = S.slice().reverse().find(function(ae) {
|
|
1672
1673
|
return Oe(ae);
|
|
1673
|
-
}), _ = !!
|
|
1674
|
+
}), _ = !!E.find(function(ae) {
|
|
1674
1675
|
return Te(ae) > 0;
|
|
1675
1676
|
});
|
|
1676
1677
|
return {
|
|
1677
1678
|
container: h,
|
|
1678
|
-
tabbableNodes:
|
|
1679
|
+
tabbableNodes: E,
|
|
1679
1680
|
focusableNodes: S,
|
|
1680
1681
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1681
1682
|
posTabIndexesFound: _,
|
|
@@ -1703,12 +1704,12 @@ var Qt = {
|
|
|
1703
1704
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
1704
1705
|
*/
|
|
1705
1706
|
nextTabbableNode: function(Ee) {
|
|
1706
|
-
var pe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, be =
|
|
1707
|
+
var pe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, be = E.indexOf(Ee);
|
|
1707
1708
|
return be < 0 ? pe ? S.slice(S.indexOf(Ee) + 1).find(function(je) {
|
|
1708
1709
|
return Oe(je);
|
|
1709
1710
|
}) : S.slice(0, S.indexOf(Ee)).reverse().find(function(je) {
|
|
1710
1711
|
return Oe(je);
|
|
1711
|
-
}) :
|
|
1712
|
+
}) : E[be + (pe ? 1 : -1)];
|
|
1712
1713
|
}
|
|
1713
1714
|
};
|
|
1714
1715
|
}), r.tabbableGroups = r.containerGroups.filter(function(h) {
|
|
@@ -1720,9 +1721,9 @@ var Qt = {
|
|
|
1720
1721
|
}) && r.containerGroups.length > 1)
|
|
1721
1722
|
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.");
|
|
1722
1723
|
}, m = function(h) {
|
|
1723
|
-
var
|
|
1724
|
-
if (
|
|
1725
|
-
return
|
|
1724
|
+
var E = h.activeElement;
|
|
1725
|
+
if (E)
|
|
1726
|
+
return E.shadowRoot && E.shadowRoot.activeElement !== null ? m(E.shadowRoot) : E;
|
|
1726
1727
|
}, v = function(h) {
|
|
1727
1728
|
if (h !== !1 && h !== m(document)) {
|
|
1728
1729
|
if (!h || !h.focus) {
|
|
@@ -1733,44 +1734,44 @@ var Qt = {
|
|
|
1733
1734
|
preventScroll: !!o.preventScroll
|
|
1734
1735
|
}), r.mostRecentlyFocusedNode = h, wi(h) && h.select();
|
|
1735
1736
|
}
|
|
1736
|
-
},
|
|
1737
|
-
var
|
|
1737
|
+
}, y = function(h) {
|
|
1738
|
+
var E = d("setReturnFocus", {
|
|
1738
1739
|
params: [h]
|
|
1739
1740
|
});
|
|
1740
|
-
return
|
|
1741
|
-
},
|
|
1742
|
-
var
|
|
1743
|
-
|
|
1741
|
+
return E || (E === !1 ? !1 : h);
|
|
1742
|
+
}, M = function(h) {
|
|
1743
|
+
var E = h.target, S = h.event, Y = h.isBackward, q = Y === void 0 ? !1 : Y;
|
|
1744
|
+
E = E || Ye(S), C();
|
|
1744
1745
|
var J = null;
|
|
1745
1746
|
if (r.tabbableGroups.length > 0) {
|
|
1746
|
-
var X = A(
|
|
1747
|
+
var X = A(E, S), _ = X >= 0 ? r.containerGroups[X] : void 0;
|
|
1747
1748
|
if (X < 0)
|
|
1748
1749
|
q ? J = r.tabbableGroups[r.tabbableGroups.length - 1].lastTabbableNode : J = r.tabbableGroups[0].firstTabbableNode;
|
|
1749
1750
|
else if (q) {
|
|
1750
1751
|
var ae = r.tabbableGroups.findIndex(function(lt) {
|
|
1751
1752
|
var ot = lt.firstTabbableNode;
|
|
1752
|
-
return
|
|
1753
|
+
return E === ot;
|
|
1753
1754
|
});
|
|
1754
|
-
if (ae < 0 && (_.container ===
|
|
1755
|
+
if (ae < 0 && (_.container === E || st(E, o.tabbableOptions) && !Oe(E, o.tabbableOptions) && !_.nextTabbableNode(E, !1)) && (ae = X), ae >= 0) {
|
|
1755
1756
|
var Ee = ae === 0 ? r.tabbableGroups.length - 1 : ae - 1, pe = r.tabbableGroups[Ee];
|
|
1756
|
-
J = Te(
|
|
1757
|
-
} else He(S) || (J = _.nextTabbableNode(
|
|
1757
|
+
J = Te(E) >= 0 ? pe.lastTabbableNode : pe.lastDomTabbableNode;
|
|
1758
|
+
} else He(S) || (J = _.nextTabbableNode(E, !1));
|
|
1758
1759
|
} else {
|
|
1759
1760
|
var be = r.tabbableGroups.findIndex(function(lt) {
|
|
1760
1761
|
var ot = lt.lastTabbableNode;
|
|
1761
|
-
return
|
|
1762
|
+
return E === ot;
|
|
1762
1763
|
});
|
|
1763
|
-
if (be < 0 && (_.container ===
|
|
1764
|
+
if (be < 0 && (_.container === E || st(E, o.tabbableOptions) && !Oe(E, o.tabbableOptions) && !_.nextTabbableNode(E)) && (be = X), be >= 0) {
|
|
1764
1765
|
var je = be === r.tabbableGroups.length - 1 ? 0 : be + 1, Dt = r.tabbableGroups[je];
|
|
1765
|
-
J = Te(
|
|
1766
|
-
} else He(S) || (J = _.nextTabbableNode(
|
|
1766
|
+
J = Te(E) >= 0 ? Dt.firstTabbableNode : Dt.firstDomTabbableNode;
|
|
1767
|
+
} else He(S) || (J = _.nextTabbableNode(E));
|
|
1767
1768
|
}
|
|
1768
1769
|
} else
|
|
1769
1770
|
J = d("fallbackFocus");
|
|
1770
1771
|
return J;
|
|
1771
|
-
},
|
|
1772
|
-
var
|
|
1773
|
-
if (!(A(
|
|
1772
|
+
}, T = function(h) {
|
|
1773
|
+
var E = Ye(h);
|
|
1774
|
+
if (!(A(E, h) >= 0)) {
|
|
1774
1775
|
if (Be(o.clickOutsideDeactivates, h)) {
|
|
1775
1776
|
s.deactivate({
|
|
1776
1777
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -1786,9 +1787,9 @@ var Qt = {
|
|
|
1786
1787
|
Be(o.allowOutsideClick, h) || h.preventDefault();
|
|
1787
1788
|
}
|
|
1788
1789
|
}, L = function(h) {
|
|
1789
|
-
var
|
|
1790
|
-
if (S ||
|
|
1791
|
-
S && (r.mostRecentlyFocusedNode =
|
|
1790
|
+
var E = Ye(h), S = A(E, h) >= 0;
|
|
1791
|
+
if (S || E instanceof Document)
|
|
1792
|
+
S && (r.mostRecentlyFocusedNode = E);
|
|
1792
1793
|
else {
|
|
1793
1794
|
h.stopImmediatePropagation();
|
|
1794
1795
|
var Y, q = !0;
|
|
@@ -1809,7 +1810,7 @@ var Qt = {
|
|
|
1809
1810
|
}) || (q = !1);
|
|
1810
1811
|
else
|
|
1811
1812
|
q = !1;
|
|
1812
|
-
q && (Y =
|
|
1813
|
+
q && (Y = M({
|
|
1813
1814
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1814
1815
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1815
1816
|
target: r.mostRecentlyFocusedNode,
|
|
@@ -1817,29 +1818,29 @@ var Qt = {
|
|
|
1817
1818
|
})), v(Y || r.mostRecentlyFocusedNode || f());
|
|
1818
1819
|
}
|
|
1819
1820
|
r.recentNavEvent = void 0;
|
|
1820
|
-
},
|
|
1821
|
-
var
|
|
1821
|
+
}, N = function(h) {
|
|
1822
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1822
1823
|
r.recentNavEvent = h;
|
|
1823
|
-
var S =
|
|
1824
|
+
var S = M({
|
|
1824
1825
|
event: h,
|
|
1825
|
-
isBackward:
|
|
1826
|
+
isBackward: E
|
|
1826
1827
|
});
|
|
1827
1828
|
S && (He(h) && h.preventDefault(), v(S));
|
|
1828
1829
|
}, O = function(h) {
|
|
1829
|
-
(o.isKeyForward(h) || o.isKeyBackward(h)) &&
|
|
1830
|
+
(o.isKeyForward(h) || o.isKeyBackward(h)) && N(h, o.isKeyBackward(h));
|
|
1830
1831
|
}, V = function(h) {
|
|
1831
1832
|
Oi(h) && Be(o.escapeDeactivates, h) !== !1 && (h.preventDefault(), s.deactivate());
|
|
1832
1833
|
}, Z = function(h) {
|
|
1833
|
-
var
|
|
1834
|
-
A(
|
|
1834
|
+
var E = Ye(h);
|
|
1835
|
+
A(E, h) >= 0 || Be(o.clickOutsideDeactivates, h) || Be(o.allowOutsideClick, h) || (h.preventDefault(), h.stopImmediatePropagation());
|
|
1835
1836
|
}, F = function() {
|
|
1836
1837
|
if (r.active)
|
|
1837
1838
|
return Qt.activateTrap(i, s), r.delayInitialFocusTimer = o.delayInitialFocus ? xt(function() {
|
|
1838
1839
|
v(f());
|
|
1839
|
-
}) : v(f()), n.addEventListener("focusin", L, !0), n.addEventListener("mousedown",
|
|
1840
|
+
}) : v(f()), n.addEventListener("focusin", L, !0), n.addEventListener("mousedown", T, {
|
|
1840
1841
|
capture: !0,
|
|
1841
1842
|
passive: !1
|
|
1842
|
-
}), n.addEventListener("touchstart",
|
|
1843
|
+
}), n.addEventListener("touchstart", T, {
|
|
1843
1844
|
capture: !0,
|
|
1844
1845
|
passive: !1
|
|
1845
1846
|
}), n.addEventListener("click", Z, {
|
|
@@ -1851,15 +1852,15 @@ var Qt = {
|
|
|
1851
1852
|
}), n.addEventListener("keydown", V), s;
|
|
1852
1853
|
}, te = function() {
|
|
1853
1854
|
if (r.active)
|
|
1854
|
-
return n.removeEventListener("focusin", L, !0), n.removeEventListener("mousedown",
|
|
1855
|
+
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;
|
|
1855
1856
|
}, x = function(h) {
|
|
1856
|
-
var
|
|
1857
|
+
var E = h.some(function(S) {
|
|
1857
1858
|
var Y = Array.from(S.removedNodes);
|
|
1858
1859
|
return Y.some(function(q) {
|
|
1859
1860
|
return q === r.mostRecentlyFocusedNode;
|
|
1860
1861
|
});
|
|
1861
1862
|
});
|
|
1862
|
-
|
|
1863
|
+
E && v(f());
|
|
1863
1864
|
}, H = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(x) : void 0, w = function() {
|
|
1864
1865
|
H && (H.disconnect(), r.active && !r.paused && r.containers.map(function(h) {
|
|
1865
1866
|
H.observe(h, {
|
|
@@ -1878,8 +1879,8 @@ var Qt = {
|
|
|
1878
1879
|
activate: function(h) {
|
|
1879
1880
|
if (r.active)
|
|
1880
1881
|
return this;
|
|
1881
|
-
var
|
|
1882
|
-
Y || C(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = m(n),
|
|
1882
|
+
var E = c(h, "onActivate"), S = c(h, "onPostActivate"), Y = c(h, "checkCanFocusTrap");
|
|
1883
|
+
Y || C(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = m(n), E == null || E();
|
|
1883
1884
|
var q = function() {
|
|
1884
1885
|
Y && C(), F(), w(), S == null || S();
|
|
1885
1886
|
};
|
|
@@ -1888,20 +1889,20 @@ var Qt = {
|
|
|
1888
1889
|
deactivate: function(h) {
|
|
1889
1890
|
if (!r.active)
|
|
1890
1891
|
return this;
|
|
1891
|
-
var
|
|
1892
|
+
var E = St({
|
|
1892
1893
|
onDeactivate: o.onDeactivate,
|
|
1893
1894
|
onPostDeactivate: o.onPostDeactivate,
|
|
1894
1895
|
checkCanReturnFocus: o.checkCanReturnFocus
|
|
1895
1896
|
}, h);
|
|
1896
1897
|
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, te(), r.active = !1, r.paused = !1, w(), Qt.deactivateTrap(i, s);
|
|
1897
|
-
var S = c(
|
|
1898
|
+
var S = c(E, "onDeactivate"), Y = c(E, "onPostDeactivate"), q = c(E, "checkCanReturnFocus"), J = c(E, "returnFocus", "returnFocusOnDeactivate");
|
|
1898
1899
|
S == null || S();
|
|
1899
1900
|
var X = function() {
|
|
1900
1901
|
xt(function() {
|
|
1901
|
-
J && v(
|
|
1902
|
+
J && v(y(r.nodeFocusedBeforeActivation)), Y == null || Y();
|
|
1902
1903
|
});
|
|
1903
1904
|
};
|
|
1904
|
-
return J && q ? (q(
|
|
1905
|
+
return J && q ? (q(y(r.nodeFocusedBeforeActivation)).then(X, X), this) : (X(), this);
|
|
1905
1906
|
},
|
|
1906
1907
|
pause: function(h) {
|
|
1907
1908
|
return r.active ? (r.manuallyPaused = !0, this._setPausedState(!0, h)) : this;
|
|
@@ -1910,8 +1911,8 @@ var Qt = {
|
|
|
1910
1911
|
return r.active ? (r.manuallyPaused = !1, i[i.length - 1] !== this ? this : this._setPausedState(!1, h)) : this;
|
|
1911
1912
|
},
|
|
1912
1913
|
updateContainerElements: function(h) {
|
|
1913
|
-
var
|
|
1914
|
-
return r.containers =
|
|
1914
|
+
var E = [].concat(h).filter(Boolean);
|
|
1915
|
+
return r.containers = E.map(function(S) {
|
|
1915
1916
|
return typeof S == "string" ? n.querySelector(S) : S;
|
|
1916
1917
|
}), r.active && C(), w(), this;
|
|
1917
1918
|
}
|
|
@@ -1922,14 +1923,14 @@ var Qt = {
|
|
|
1922
1923
|
}
|
|
1923
1924
|
},
|
|
1924
1925
|
_setPausedState: {
|
|
1925
|
-
value: function(h,
|
|
1926
|
+
value: function(h, E) {
|
|
1926
1927
|
if (r.paused === h)
|
|
1927
1928
|
return this;
|
|
1928
1929
|
if (r.paused = h, h) {
|
|
1929
|
-
var S = c(
|
|
1930
|
+
var S = c(E, "onPause"), Y = c(E, "onPostPause");
|
|
1930
1931
|
S == null || S(), te(), w(), Y == null || Y();
|
|
1931
1932
|
} else {
|
|
1932
|
-
var q = c(
|
|
1933
|
+
var q = c(E, "onUnpause"), J = c(E, "onPostUnpause");
|
|
1933
1934
|
q == null || q(), C(), F(), w(), J == null || J();
|
|
1934
1935
|
}
|
|
1935
1936
|
return this;
|
|
@@ -1983,25 +1984,25 @@ const pi = {
|
|
|
1983
1984
|
cssExpanded: o,
|
|
1984
1985
|
doExpand: r,
|
|
1985
1986
|
onTransitionEnd: s
|
|
1986
|
-
} = Ze(), { isBelowLg: c } = nt(), A =
|
|
1987
|
-
() => e.languages.find(({ codeIso:
|
|
1988
|
-
), f =
|
|
1989
|
-
var
|
|
1990
|
-
const
|
|
1991
|
-
return c.value ?
|
|
1992
|
-
}), C = U(!1), m =
|
|
1987
|
+
} = Ze(), { isBelowLg: c } = nt(), A = b(() => e.id ?? `language-selector-${crypto.randomUUID()}`), d = b(
|
|
1988
|
+
() => e.languages.find(({ codeIso: y }) => y === e.currentLanguage)
|
|
1989
|
+
), f = b(() => {
|
|
1990
|
+
var T, L;
|
|
1991
|
+
const y = ((T = d.value) == null ? void 0 : T.codeIso.toUpperCase()) ?? "", M = `${y} - ${(L = d.value) == null ? void 0 : L.label}`;
|
|
1992
|
+
return c.value ? M : y;
|
|
1993
|
+
}), C = U(!1), m = b(() => ({
|
|
1993
1994
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
1994
1995
|
}));
|
|
1995
|
-
function v(
|
|
1996
|
-
C.value = !1, a("select",
|
|
1996
|
+
function v(y) {
|
|
1997
|
+
C.value = !1, a("select", y);
|
|
1997
1998
|
}
|
|
1998
|
-
return oe(C, (
|
|
1999
|
-
|
|
2000
|
-
}), (
|
|
2001
|
-
const
|
|
1999
|
+
return oe(C, (y, M) => {
|
|
2000
|
+
y !== M && r(y);
|
|
2001
|
+
}), (y, M) => {
|
|
2002
|
+
const T = re;
|
|
2002
2003
|
return u(), I("nav", pi, [
|
|
2003
|
-
|
|
2004
|
-
W(
|
|
2004
|
+
g("div", ji, [
|
|
2005
|
+
W(T, {
|
|
2005
2006
|
class: "av-translate__btn",
|
|
2006
2007
|
label: l(f),
|
|
2007
2008
|
variant: "OUTLINED",
|
|
@@ -2013,9 +2014,9 @@ const pi = {
|
|
|
2013
2014
|
type: "button",
|
|
2014
2015
|
style: ce(l(m)),
|
|
2015
2016
|
small: "",
|
|
2016
|
-
onClick:
|
|
2017
|
+
onClick: M[0] || (M[0] = ue((L) => C.value = !l(C), ["prevent", "stop"]))
|
|
2017
2018
|
}, null, 8, ["label", "aria-controls", "aria-expanded", "icon", "title", "style"]),
|
|
2018
|
-
|
|
2019
|
+
g("div", {
|
|
2019
2020
|
id: l(A),
|
|
2020
2021
|
ref_key: "collapse",
|
|
2021
2022
|
ref: n,
|
|
@@ -2023,11 +2024,11 @@ const pi = {
|
|
|
2023
2024
|
"av-collapse--expanded": l(o),
|
|
2024
2025
|
"av-collapsing": l(i)
|
|
2025
2026
|
}]),
|
|
2026
|
-
onTransitionend:
|
|
2027
|
+
onTransitionend: M[1] || (M[1] = (L) => l(s)(l(C)))
|
|
2027
2028
|
}, [
|
|
2028
|
-
|
|
2029
|
-
(u(!0), I($, null, ie(e.languages, (L,
|
|
2030
|
-
|
|
2029
|
+
g("ul", Bi, [
|
|
2030
|
+
(u(!0), I($, null, ie(e.languages, (L, N) => (u(), I("li", { key: N }, [
|
|
2031
|
+
g("a", {
|
|
2031
2032
|
class: "av-translate__language av-nav__link",
|
|
2032
2033
|
hreflang: L.codeIso,
|
|
2033
2034
|
lang: L.codeIso,
|
|
@@ -2063,8 +2064,8 @@ const pi = {
|
|
|
2063
2064
|
onClick: a[0] || (a[0] = (n) => e.onClick ? e.onClick(n) : () => {
|
|
2064
2065
|
})
|
|
2065
2066
|
}, [
|
|
2066
|
-
|
|
2067
|
-
|
|
2067
|
+
g("div", Vi, [
|
|
2068
|
+
g("div", Hi, [
|
|
2068
2069
|
e.iconLeft ? (u(), k(ne, {
|
|
2069
2070
|
key: 0,
|
|
2070
2071
|
name: e.iconLeft,
|
|
@@ -2107,7 +2108,7 @@ const pi = {
|
|
|
2107
2108
|
}),
|
|
2108
2109
|
emits: ["update:modelValue"],
|
|
2109
2110
|
setup(e) {
|
|
2110
|
-
const t =
|
|
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"), o = b(() => i.value.includes(e.value)), r = b(() => o.value ? R.CHECKBOX_MARKED : R.CHECKBOX_BLANK_OUTLINE), s = b(() => o.value ? "var(--dark-background-primary1)" : "var(--icon)"), c = b(() => e.small ? 1 : 1.5), A = b(() => e.small ? o.value ? "caption-bold" : "caption-regular" : o.value ? "b2-bold" : "b2-regular");
|
|
2111
2112
|
return (d, f) => {
|
|
2112
2113
|
const C = ne, m = ke, v = $t;
|
|
2113
2114
|
return u(), k(v, {
|
|
@@ -2115,9 +2116,9 @@ const pi = {
|
|
|
2115
2116
|
disabled: e.disabled
|
|
2116
2117
|
}, {
|
|
2117
2118
|
default: G(() => [
|
|
2118
|
-
It(
|
|
2119
|
+
It(g("input", ee({
|
|
2119
2120
|
id: l(t),
|
|
2120
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
2121
|
+
"onUpdate:modelValue": f[0] || (f[0] = (y) => i.value = y),
|
|
2121
2122
|
name: e.name,
|
|
2122
2123
|
class: "av-sr-only",
|
|
2123
2124
|
type: "checkbox",
|
|
@@ -2132,11 +2133,11 @@ const pi = {
|
|
|
2132
2133
|
}), null, 16, Zi), [
|
|
2133
2134
|
[xa, i.value]
|
|
2134
2135
|
]),
|
|
2135
|
-
|
|
2136
|
+
g("label", {
|
|
2136
2137
|
for: l(t),
|
|
2137
2138
|
class: "av-label"
|
|
2138
2139
|
}, [
|
|
2139
|
-
|
|
2140
|
+
g("div", Yi, [
|
|
2140
2141
|
W(C, {
|
|
2141
2142
|
class: "option-checkbox",
|
|
2142
2143
|
name: l(r),
|
|
@@ -2150,7 +2151,7 @@ const pi = {
|
|
|
2150
2151
|
color: l(s),
|
|
2151
2152
|
size: l(c)
|
|
2152
2153
|
}, null, 8, ["name", "color", "size"])) : D("", !0),
|
|
2153
|
-
|
|
2154
|
+
g("span", {
|
|
2154
2155
|
class: j(["label", l(A)])
|
|
2155
2156
|
}, [
|
|
2156
2157
|
P(d.$slots, "label", {}, () => [
|
|
@@ -2186,7 +2187,7 @@ const pi = {
|
|
|
2186
2187
|
inline: { type: Boolean, default: !1 }
|
|
2187
2188
|
},
|
|
2188
2189
|
setup(e) {
|
|
2189
|
-
const t =
|
|
2190
|
+
const t = b(() => e.id ?? `checkboxes-group-${crypto.randomUUID()}`);
|
|
2190
2191
|
return (a, n) => {
|
|
2191
2192
|
const i = Jt;
|
|
2192
2193
|
return u(), k(i, {
|
|
@@ -2200,7 +2201,7 @@ const pi = {
|
|
|
2200
2201
|
"aria-live": "polite"
|
|
2201
2202
|
}, {
|
|
2202
2203
|
default: G(() => [
|
|
2203
|
-
|
|
2204
|
+
g("div", {
|
|
2204
2205
|
class: j(["av-checkboxes-group", {
|
|
2205
2206
|
"av-checkboxes-group--inline": e.inline
|
|
2206
2207
|
}])
|
|
@@ -2258,17 +2259,17 @@ const pi = {
|
|
|
2258
2259
|
se((v) => ({
|
|
2259
2260
|
v8df8b300: v.maxWidth
|
|
2260
2261
|
}));
|
|
2261
|
-
const a = t, n =
|
|
2262
|
+
const a = t, n = b(() => e.id ?? `file-upload-${crypto.randomUUID()}`), i = b(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), o = U(!1);
|
|
2262
2263
|
function r(v) {
|
|
2263
|
-
const
|
|
2264
|
-
return
|
|
2264
|
+
const y = i.value;
|
|
2265
|
+
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;
|
|
2265
2266
|
}
|
|
2266
2267
|
async function s(v) {
|
|
2267
|
-
var
|
|
2268
|
-
if (v.preventDefault(), o.value = !1, e.disabled || !((
|
|
2268
|
+
var M, T;
|
|
2269
|
+
if (v.preventDefault(), o.value = !1, e.disabled || !((T = (M = v.dataTransfer) == null ? void 0 : M.files) != null && T.length))
|
|
2269
2270
|
return;
|
|
2270
|
-
const
|
|
2271
|
-
await at(),
|
|
2271
|
+
const y = Array.from(v.dataTransfer.files).filter(r);
|
|
2272
|
+
await at(), y.length ? (a("change", y), a("update:modelValue", y[0] ?? "")) : a("onDropAcceptTypeError");
|
|
2272
2273
|
}
|
|
2273
2274
|
function c(v) {
|
|
2274
2275
|
v.preventDefault(), e.disabled || (o.value = !0);
|
|
@@ -2277,10 +2278,10 @@ const pi = {
|
|
|
2277
2278
|
o.value = !1;
|
|
2278
2279
|
}
|
|
2279
2280
|
function d(v) {
|
|
2280
|
-
const
|
|
2281
|
-
a("change",
|
|
2281
|
+
const y = v.target.files;
|
|
2282
|
+
a("change", y), a("update:modelValue", (y == null ? void 0 : y[0]) ?? null);
|
|
2282
2283
|
}
|
|
2283
|
-
const f =
|
|
2284
|
+
const f = b(() => e.fileName || e.modelValue && !e.enableMultiple), C = b(() => ({
|
|
2284
2285
|
for: n.value,
|
|
2285
2286
|
class: [
|
|
2286
2287
|
"av-upload-group",
|
|
@@ -2297,19 +2298,19 @@ const pi = {
|
|
|
2297
2298
|
onDrop: s
|
|
2298
2299
|
}));
|
|
2299
2300
|
function m(v) {
|
|
2300
|
-
var
|
|
2301
|
-
v ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (
|
|
2301
|
+
var y;
|
|
2302
|
+
v ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (y = e.onDeleteFile) == null || y.call(e);
|
|
2302
2303
|
}
|
|
2303
|
-
return (v,
|
|
2304
|
+
return (v, y) => (u(), I($, null, [
|
|
2304
2305
|
(u(), k(Me(l(f) ? "div" : "label"), ee(l(f) ? {} : l(C), {
|
|
2305
2306
|
class: l(f) ? "file-preview-container" : ""
|
|
2306
2307
|
}), {
|
|
2307
2308
|
default: G(() => [
|
|
2308
|
-
|
|
2309
|
+
g("div", {
|
|
2309
2310
|
class: j(l(f) ? "" : "file-upload-container")
|
|
2310
2311
|
}, [
|
|
2311
|
-
|
|
2312
|
-
|
|
2312
|
+
g("div", _i, [
|
|
2313
|
+
g("div", el, [
|
|
2313
2314
|
P(v.$slots, "left", {}, () => [
|
|
2314
2315
|
W(ne, {
|
|
2315
2316
|
size: 2.5,
|
|
@@ -2318,12 +2319,12 @@ const pi = {
|
|
|
2318
2319
|
}, null, 8, ["name"])
|
|
2319
2320
|
], !0)
|
|
2320
2321
|
]),
|
|
2321
|
-
|
|
2322
|
+
g("div", tl, [
|
|
2322
2323
|
l(f) ? (u(), I("div", al, [
|
|
2323
|
-
|
|
2324
|
+
g("span", nl, B(e.fileName || e.modelValue.name), 1)
|
|
2324
2325
|
])) : (u(), I("div", il, [
|
|
2325
|
-
|
|
2326
|
-
|
|
2326
|
+
g("span", ll, B(e.title), 1),
|
|
2327
|
+
g("span", ol, B(e.description), 1)
|
|
2327
2328
|
])),
|
|
2328
2329
|
W($i, {
|
|
2329
2330
|
"valid-message": e.validMessage,
|
|
@@ -2335,7 +2336,7 @@ const pi = {
|
|
|
2335
2336
|
key: 0,
|
|
2336
2337
|
label: e.deleteButtonLabel,
|
|
2337
2338
|
theme: "SECONDARY",
|
|
2338
|
-
onClick:
|
|
2339
|
+
onClick: y[0] || (y[0] = () => m(e.modelValue))
|
|
2339
2340
|
}, null, 8, ["label"])) : (u(), k(ne, {
|
|
2340
2341
|
key: 1,
|
|
2341
2342
|
size: 1.5,
|
|
@@ -2353,14 +2354,14 @@ const pi = {
|
|
|
2353
2354
|
disabled: e.disabled,
|
|
2354
2355
|
"aria-disabled": e.disabled,
|
|
2355
2356
|
accept: l(i),
|
|
2356
|
-
onChange:
|
|
2357
|
+
onChange: y[1] || (y[1] = (M) => d(M))
|
|
2357
2358
|
}), null, 16, sl))
|
|
2358
2359
|
])
|
|
2359
2360
|
], 2)
|
|
2360
2361
|
]),
|
|
2361
2362
|
_: 3
|
|
2362
2363
|
}, 16, ["class"])),
|
|
2363
|
-
|
|
2364
|
+
g("span", cl, [
|
|
2364
2365
|
P(v.$slots, "hint", {}, void 0, !0)
|
|
2365
2366
|
])
|
|
2366
2367
|
], 64));
|
|
@@ -3597,23 +3598,23 @@ function Io(e, t, a) {
|
|
|
3597
3598
|
if (!fa(s))
|
|
3598
3599
|
throw new RangeError("Invalid time value");
|
|
3599
3600
|
let c = t.match(uo).map((v) => {
|
|
3600
|
-
const
|
|
3601
|
-
if (
|
|
3602
|
-
const
|
|
3603
|
-
return
|
|
3601
|
+
const y = v[0];
|
|
3602
|
+
if (y === "p" || y === "P") {
|
|
3603
|
+
const M = ao[y];
|
|
3604
|
+
return M(v, i.formatLong);
|
|
3604
3605
|
}
|
|
3605
3606
|
return v;
|
|
3606
3607
|
}).join("").match(Ao).map((v) => {
|
|
3607
3608
|
if (v === "''")
|
|
3608
3609
|
return { isToken: !1, value: "'" };
|
|
3609
|
-
const
|
|
3610
|
-
if (
|
|
3610
|
+
const y = v[0];
|
|
3611
|
+
if (y === "'")
|
|
3611
3612
|
return { isToken: !1, value: go(v) };
|
|
3612
|
-
if (Bt[
|
|
3613
|
+
if (Bt[y])
|
|
3613
3614
|
return { isToken: !0, value: v };
|
|
3614
|
-
if (
|
|
3615
|
+
if (y.match(mo))
|
|
3615
3616
|
throw new RangeError(
|
|
3616
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
3617
|
+
"Format string contains an unescaped latin alphabet character `" + y + "`"
|
|
3617
3618
|
);
|
|
3618
3619
|
return { isToken: !1, value: v };
|
|
3619
3620
|
});
|
|
@@ -3625,10 +3626,10 @@ function Io(e, t, a) {
|
|
|
3625
3626
|
};
|
|
3626
3627
|
return c.map((v) => {
|
|
3627
3628
|
if (!v.isToken) return v.value;
|
|
3628
|
-
const
|
|
3629
|
-
(ro(
|
|
3630
|
-
const
|
|
3631
|
-
return
|
|
3629
|
+
const y = v.value;
|
|
3630
|
+
(ro(y) || oo(y)) && so(y, t, String(e));
|
|
3631
|
+
const M = Bt[y[0]];
|
|
3632
|
+
return M(s, y, i.localize, A);
|
|
3632
3633
|
}).join("");
|
|
3633
3634
|
}
|
|
3634
3635
|
function go(e) {
|
|
@@ -3674,53 +3675,56 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3674
3675
|
errorMessage: {},
|
|
3675
3676
|
validMessage: {},
|
|
3676
3677
|
prefixIcon: {},
|
|
3678
|
+
textareaMinHeight: { default: "var(--dimension-5xl)" },
|
|
3677
3679
|
width: {},
|
|
3678
3680
|
noRadius: { type: Boolean, default: !1 }
|
|
3679
3681
|
},
|
|
3680
3682
|
emits: ["update:modelValue"],
|
|
3681
3683
|
setup(e, { expose: t, emit: a }) {
|
|
3682
|
-
se((
|
|
3683
|
-
|
|
3684
|
+
se((M) => ({
|
|
3685
|
+
v7b443b5f: M.width,
|
|
3686
|
+
v74ffa07a: l(y),
|
|
3687
|
+
c75a0fd0: M.textareaMinHeight
|
|
3684
3688
|
}));
|
|
3685
|
-
const n = a, i =
|
|
3686
|
-
function d(
|
|
3687
|
-
if (!(e.type !== "date" && e.type !== "datetime-local" ||
|
|
3688
|
-
return Io(
|
|
3689
|
+
const n = a, i = b(() => e.id ?? `input-${crypto.randomUUID()}`), o = b(() => e.errorMessage ? Array.isArray(e.errorMessage) ? e.errorMessage : [e.errorMessage] : []), r = 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
|
+
function d(M) {
|
|
3691
|
+
if (!(e.type !== "date" && e.type !== "datetime-local" || M === void 0 || !fa(M)))
|
|
3692
|
+
return Io(M, "yyyy-MM-dd");
|
|
3689
3693
|
}
|
|
3690
3694
|
const f = U(null), C = () => {
|
|
3691
|
-
var
|
|
3692
|
-
return (
|
|
3693
|
-
}, m =
|
|
3695
|
+
var M;
|
|
3696
|
+
return (M = f.value) == null ? void 0 : M.focus();
|
|
3697
|
+
}, m = b(() => e.isTextarea ? "textarea" : "input"), v = b(() => [
|
|
3694
3698
|
"av-label",
|
|
3695
3699
|
{ invisible: !e.labelVisible }
|
|
3696
|
-
]);
|
|
3700
|
+
]), y = b(() => e.labelVisible ? "69%" : "55%");
|
|
3697
3701
|
return t({
|
|
3698
3702
|
focus: C
|
|
3699
|
-
}), (
|
|
3700
|
-
const
|
|
3703
|
+
}), (M, T) => {
|
|
3704
|
+
const L = ke;
|
|
3701
3705
|
return u(), I("div", {
|
|
3702
3706
|
class: j(["av-input", {
|
|
3703
3707
|
"av-input--date": e.type === "date",
|
|
3704
3708
|
"av-input--no-radius": e.noRadius
|
|
3705
3709
|
}])
|
|
3706
3710
|
}, [
|
|
3707
|
-
|
|
3708
|
-
|
|
3711
|
+
g("div", bo, [
|
|
3712
|
+
g("div", ho, [
|
|
3709
3713
|
e.prefixIcon ? (u(), I("div", yo, [
|
|
3710
3714
|
W(ne, {
|
|
3711
3715
|
name: e.prefixIcon,
|
|
3712
3716
|
size: 1.2
|
|
3713
3717
|
}, null, 8, ["name"])
|
|
3714
3718
|
])) : D("", !0),
|
|
3715
|
-
|
|
3719
|
+
g("label", {
|
|
3716
3720
|
class: j(l(v)),
|
|
3717
3721
|
for: l(i)
|
|
3718
3722
|
}, [
|
|
3719
|
-
|
|
3723
|
+
g("span", {
|
|
3720
3724
|
class: j(e.labelClass)
|
|
3721
3725
|
}, [
|
|
3722
3726
|
De(B(e.label) + " ", 1),
|
|
3723
|
-
P(
|
|
3727
|
+
P(M.$slots, "requiredTip", {}, () => [
|
|
3724
3728
|
e.required ? (u(), I("span", Mo, "*")) : D("", !0)
|
|
3725
3729
|
], !0),
|
|
3726
3730
|
e.hint ? (u(), I("span", Eo, B(e.hint), 1)) : D("", !0)
|
|
@@ -3740,32 +3744,32 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3740
3744
|
maxlength: e.maxlength,
|
|
3741
3745
|
minlength: e.minlength,
|
|
3742
3746
|
required: e.required
|
|
3743
|
-
},
|
|
3747
|
+
}, M.$attrs, {
|
|
3744
3748
|
max: l(A),
|
|
3745
3749
|
min: l(c),
|
|
3746
3750
|
value: e.modelValue,
|
|
3747
3751
|
"aria-describedby": e.descriptionId || void 0,
|
|
3748
|
-
onInput:
|
|
3752
|
+
onInput: T[0] || (T[0] = (N) => n("update:modelValue", N.target.value))
|
|
3749
3753
|
}), null, 16, ["id", "class", "placeholder", "type", "disabled", "maxlength", "minlength", "required", "max", "min", "value", "aria-describedby"]))
|
|
3750
3754
|
]),
|
|
3751
|
-
P(
|
|
3755
|
+
P(M.$slots, "customCaptions", {
|
|
3752
3756
|
currentValue: e.modelValue,
|
|
3753
3757
|
maxlength: e.maxlength
|
|
3754
3758
|
}, () => {
|
|
3755
|
-
var
|
|
3759
|
+
var N;
|
|
3756
3760
|
return [
|
|
3757
|
-
e.maxlength ? (u(), I("span", No, B((
|
|
3761
|
+
e.maxlength ? (u(), I("span", No, B((N = e.modelValue) == null ? void 0 : N.toString().length) + " / " + B(e.maxlength), 1)) : D("", !0)
|
|
3758
3762
|
];
|
|
3759
3763
|
}, !0)
|
|
3760
3764
|
]),
|
|
3761
3765
|
l(o).length > 0 ? (u(), I("div", To, [
|
|
3762
|
-
W(
|
|
3766
|
+
W(L, {
|
|
3763
3767
|
message: l(o),
|
|
3764
3768
|
type: "error"
|
|
3765
3769
|
}, null, 8, ["message"])
|
|
3766
3770
|
])) : D("", !0),
|
|
3767
3771
|
l(r).length > 0 ? (u(), I("div", Do, [
|
|
3768
|
-
W(
|
|
3772
|
+
W(L, {
|
|
3769
3773
|
message: l(r),
|
|
3770
3774
|
type: "success"
|
|
3771
3775
|
}, null, 8, ["message"])
|
|
@@ -3773,7 +3777,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3773
3777
|
], 2);
|
|
3774
3778
|
};
|
|
3775
3779
|
}
|
|
3776
|
-
}), Nt = /* @__PURE__ */ z(Lo, [["__scopeId", "data-v-
|
|
3780
|
+
}), Nt = /* @__PURE__ */ z(Lo, [["__scopeId", "data-v-dc99341b"]]), wo = {
|
|
3777
3781
|
class: "av-search-bar",
|
|
3778
3782
|
role: "search"
|
|
3779
3783
|
}, Oo = /* @__PURE__ */ Q({
|
|
@@ -3787,11 +3791,11 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3787
3791
|
},
|
|
3788
3792
|
emits: ["update:modelValue", "search"],
|
|
3789
3793
|
setup(e, { emit: t }) {
|
|
3790
|
-
const a = t, n =
|
|
3794
|
+
const a = t, n = b(() => e.id ?? `search-bar-${crypto.randomUUID()}`);
|
|
3791
3795
|
return (i, o) => {
|
|
3792
3796
|
const r = Nt, s = re;
|
|
3793
3797
|
return u(), I("div", wo, [
|
|
3794
|
-
|
|
3798
|
+
g("div", null, [
|
|
3795
3799
|
W(r, {
|
|
3796
3800
|
id: l(n),
|
|
3797
3801
|
type: "search",
|
|
@@ -3841,7 +3845,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3841
3845
|
v61717933: i.padding,
|
|
3842
3846
|
v718f62b9: i.borderColor
|
|
3843
3847
|
}));
|
|
3844
|
-
const t =
|
|
3848
|
+
const t = b(() => `av-list--${e.size}`), a = b(() => e.bordered ? "av-list--bordered" : ""), n = b(() => e.divided ? "av-list--divided" : "");
|
|
3845
3849
|
return (i, o) => (u(), I("div", {
|
|
3846
3850
|
class: j(["av-list", [l(t), l(a), l(n)]]),
|
|
3847
3851
|
role: e.role,
|
|
@@ -3892,7 +3896,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3892
3896
|
v304bbb39: A.descriptionColor,
|
|
3893
3897
|
a575c12a: A.hoverBackgroundColor
|
|
3894
3898
|
}));
|
|
3895
|
-
const t = fe(), a =
|
|
3899
|
+
const t = fe(), a = b(() => e.clickable ? e.tag : "div"), n = b(() => e.ariaLabel ? e.ariaLabel : e.title && e.description ? `${e.title}, ${e.description}` : e.title || e.description || void 0);
|
|
3896
3900
|
function i(A) {
|
|
3897
3901
|
var d;
|
|
3898
3902
|
!e.clickable || e.disabled || (d = e.onClick) == null || d.call(e, A);
|
|
@@ -3908,7 +3912,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3908
3912
|
(d = e.onClick) == null || d.call(e, f);
|
|
3909
3913
|
}
|
|
3910
3914
|
}
|
|
3911
|
-
const r =
|
|
3915
|
+
const r = b(() => e.clickable ? "av-list-item--clickable" : ""), s = b(() => e.disabled ? "av-list-item--disabled" : ""), c = b(() => e.selected ? "av-list-item--selected" : "");
|
|
3912
3916
|
return (A, d) => (u(), I("div", { role: e.role }, [
|
|
3913
3917
|
(u(), k(Me(l(a)), {
|
|
3914
3918
|
class: j(["av-list-item", [l(r), l(s), l(c)]]),
|
|
@@ -3931,7 +3935,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3931
3935
|
size: e.iconSize
|
|
3932
3936
|
}, null, 8, ["name", "color", "size"])
|
|
3933
3937
|
])) : D("", !0),
|
|
3934
|
-
|
|
3938
|
+
g("div", po, [
|
|
3935
3939
|
e.title ? (u(), I("div", jo, B(e.title), 1)) : D("", !0),
|
|
3936
3940
|
e.description ? (u(), I("div", zo, B(e.description), 1)) : D("", !0),
|
|
3937
3941
|
t.default ? (u(), I("div", Bo, [
|
|
@@ -3955,7 +3959,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3955
3959
|
labelTypographyClass: { default: "b2-regular" }
|
|
3956
3960
|
},
|
|
3957
3961
|
setup(e) {
|
|
3958
|
-
se((
|
|
3962
|
+
se((y) => ({
|
|
3959
3963
|
v67603a32: l(n)
|
|
3960
3964
|
}));
|
|
3961
3965
|
const t = e, {
|
|
@@ -3965,47 +3969,47 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3965
3969
|
selected: o,
|
|
3966
3970
|
multiple: r,
|
|
3967
3971
|
handleSelectChange: s
|
|
3968
|
-
} = t, c =
|
|
3969
|
-
function A(
|
|
3970
|
-
return
|
|
3972
|
+
} = t, c = b(() => ln(t.options));
|
|
3973
|
+
function A(y) {
|
|
3974
|
+
return y ? Array.isArray(y) ? y : [y] : [];
|
|
3971
3975
|
}
|
|
3972
3976
|
const d = U(A(o));
|
|
3973
|
-
function f(
|
|
3974
|
-
return d.value.some((
|
|
3977
|
+
function f(y) {
|
|
3978
|
+
return d.value.some((M) => M.value === y.value);
|
|
3975
3979
|
}
|
|
3976
|
-
function C(
|
|
3977
|
-
r ? (f(
|
|
3978
|
-
(
|
|
3979
|
-
) : d.value.push(
|
|
3980
|
+
function C(y) {
|
|
3981
|
+
r ? (f(y) ? d.value = d.value.filter(
|
|
3982
|
+
(T) => T.value !== y.value
|
|
3983
|
+
) : d.value.push(y), s([...d.value])) : (d.value = [y], s(y));
|
|
3980
3984
|
}
|
|
3981
|
-
function m(
|
|
3982
|
-
return f(
|
|
3985
|
+
function m(y) {
|
|
3986
|
+
return f(y) ? R.CHECK : void 0;
|
|
3983
3987
|
}
|
|
3984
|
-
function v(
|
|
3985
|
-
return f(
|
|
3988
|
+
function v(y) {
|
|
3989
|
+
return f(y) && !r;
|
|
3986
3990
|
}
|
|
3987
|
-
return oe(() => t.selected, (
|
|
3988
|
-
d.value = A(
|
|
3989
|
-
}, { immediate: !0 }), (
|
|
3991
|
+
return oe(() => t.selected, (y) => {
|
|
3992
|
+
d.value = A(y);
|
|
3993
|
+
}, { immediate: !0 }), (y, M) => (u(), I("div", Wo, [
|
|
3990
3994
|
l(a) ? (u(), I("span", {
|
|
3991
3995
|
key: 0,
|
|
3992
3996
|
class: j(["av-select-label", [l(i)]])
|
|
3993
3997
|
}, B(l(a)), 3)) : D("", !0),
|
|
3994
|
-
(u(!0), I($, null, ie(l(c), (
|
|
3995
|
-
key:
|
|
3998
|
+
(u(!0), I($, null, ie(l(c), (T) => (u(), I("div", {
|
|
3999
|
+
key: T.value,
|
|
3996
4000
|
class: "tag-wrapper"
|
|
3997
4001
|
}, [
|
|
3998
4002
|
W(Va, {
|
|
3999
4003
|
class: j({
|
|
4000
|
-
"av-tag--selected": f(
|
|
4001
|
-
"av-tag--disabled": v(
|
|
4004
|
+
"av-tag--selected": f(T),
|
|
4005
|
+
"av-tag--disabled": v(T)
|
|
4002
4006
|
}),
|
|
4003
|
-
label:
|
|
4004
|
-
icon: m(
|
|
4005
|
-
disabled: v(
|
|
4007
|
+
label: T.label,
|
|
4008
|
+
icon: m(T),
|
|
4009
|
+
disabled: v(T),
|
|
4006
4010
|
selectable: "",
|
|
4007
|
-
selected: f(
|
|
4008
|
-
onSelect: () => C(
|
|
4011
|
+
selected: f(T),
|
|
4012
|
+
onSelect: () => C(T)
|
|
4009
4013
|
}, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
|
|
4010
4014
|
]))), 128))
|
|
4011
4015
|
]));
|
|
@@ -4025,10 +4029,10 @@ const DA = [
|
|
|
4025
4029
|
handleSelectChange: { type: Function }
|
|
4026
4030
|
},
|
|
4027
4031
|
setup(e) {
|
|
4028
|
-
const t =
|
|
4032
|
+
const t = b(() => Object.values(ba).filter((n) => typeof n == "number").map((n) => ({
|
|
4029
4033
|
label: n.toString(),
|
|
4030
4034
|
value: n.toString()
|
|
4031
|
-
}))), a =
|
|
4035
|
+
}))), a = b(() => ({
|
|
4032
4036
|
label: e.pageSizeSelected.toString(),
|
|
4033
4037
|
value: e.pageSizeSelected.toString()
|
|
4034
4038
|
}));
|
|
@@ -4075,12 +4079,12 @@ const DA = [
|
|
|
4075
4079
|
disabled: e.disabled
|
|
4076
4080
|
}, {
|
|
4077
4081
|
default: G(() => [
|
|
4078
|
-
|
|
4082
|
+
g("div", {
|
|
4079
4083
|
class: j(["av-radio-group", {
|
|
4080
4084
|
"av-radio-group--sm": e.small
|
|
4081
4085
|
}])
|
|
4082
4086
|
}, [
|
|
4083
|
-
|
|
4087
|
+
g("input", ee({
|
|
4084
4088
|
id: l(n),
|
|
4085
4089
|
type: "radio",
|
|
4086
4090
|
name: e.name,
|
|
@@ -4090,7 +4094,7 @@ const DA = [
|
|
|
4090
4094
|
}, i.$attrs, {
|
|
4091
4095
|
onClick: o[0] || (o[0] = (s) => a("update:modelValue", e.value))
|
|
4092
4096
|
}), null, 16, Xo),
|
|
4093
|
-
|
|
4097
|
+
g("label", {
|
|
4094
4098
|
for: l(n),
|
|
4095
4099
|
class: "av-label"
|
|
4096
4100
|
}, [
|
|
@@ -4119,18 +4123,18 @@ const DA = [
|
|
|
4119
4123
|
},
|
|
4120
4124
|
emits: ["update:modelValue"],
|
|
4121
4125
|
setup(e, { expose: t, emit: a }) {
|
|
4122
|
-
const n = a, i =
|
|
4126
|
+
const n = a, i = b(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`), o = b(() => e.errorMessage || e.validMessage);
|
|
4123
4127
|
function r(m) {
|
|
4124
4128
|
m !== e.modelValue && n("update:modelValue", m);
|
|
4125
4129
|
}
|
|
4126
|
-
const s =
|
|
4130
|
+
const s = b(() => o.value ? `messages-${i.value}` : void 0), c = fe();
|
|
4127
4131
|
function A(m) {
|
|
4128
4132
|
return m != null && typeof m == "object" && "type" in m && m.type === Zo;
|
|
4129
4133
|
}
|
|
4130
4134
|
function d(m) {
|
|
4131
4135
|
return m ? m.flatMap((v) => !v || typeof v != "object" || !("type" in v) ? [] : v.type === $ && Array.isArray(v.children) ? d(v.children) : A(v) ? [v] : []) : [];
|
|
4132
4136
|
}
|
|
4133
|
-
const f =
|
|
4137
|
+
const f = b(() => {
|
|
4134
4138
|
var m;
|
|
4135
4139
|
return d((m = c.default) == null ? void 0 : m.call(c));
|
|
4136
4140
|
}), C = U(e.modelValue);
|
|
@@ -4139,8 +4143,8 @@ const DA = [
|
|
|
4139
4143
|
}), oe(C, (m) => {
|
|
4140
4144
|
m && n("update:modelValue", m);
|
|
4141
4145
|
}), t({ selected: C }), (m, v) => {
|
|
4142
|
-
const
|
|
4143
|
-
return u(), k(
|
|
4146
|
+
const y = Jt;
|
|
4147
|
+
return u(), k(y, {
|
|
4144
4148
|
id: l(i),
|
|
4145
4149
|
legend: e.legend,
|
|
4146
4150
|
hint: e.hint,
|
|
@@ -4154,17 +4158,17 @@ const DA = [
|
|
|
4154
4158
|
inline: e.inline
|
|
4155
4159
|
}, {
|
|
4156
4160
|
default: G(() => [
|
|
4157
|
-
(u(!0), I($, null, ie(l(f), (
|
|
4158
|
-
var L,
|
|
4161
|
+
(u(!0), I($, null, ie(l(f), (M, T) => {
|
|
4162
|
+
var L, N;
|
|
4159
4163
|
return u(), k(Fo, {
|
|
4160
|
-
key:
|
|
4164
|
+
key: T,
|
|
4161
4165
|
modelValue: l(C),
|
|
4162
4166
|
"onUpdate:modelValue": [
|
|
4163
4167
|
v[0] || (v[0] = (O) => Ct(C) ? C.value = O : null),
|
|
4164
4168
|
v[1] || (v[1] = (O) => r(O))
|
|
4165
4169
|
],
|
|
4166
|
-
value: (L =
|
|
4167
|
-
disabled: ((
|
|
4170
|
+
value: (L = M.props) == null ? void 0 : L.value,
|
|
4171
|
+
disabled: ((N = M.props) == null ? void 0 : N.disabled) ?? e.disabled,
|
|
4168
4172
|
small: e.small,
|
|
4169
4173
|
inline: e.inline,
|
|
4170
4174
|
name: e.name
|
|
@@ -4172,7 +4176,7 @@ const DA = [
|
|
|
4172
4176
|
default: G(() => {
|
|
4173
4177
|
var O;
|
|
4174
4178
|
return [
|
|
4175
|
-
(u(), k(Me((O =
|
|
4179
|
+
(u(), k(Me((O = M.children) == null ? void 0 : O.default)))
|
|
4176
4180
|
];
|
|
4177
4181
|
}),
|
|
4178
4182
|
_: 2
|
|
@@ -4261,42 +4265,42 @@ function Ma(e, t, a) {
|
|
|
4261
4265
|
return n = i = void 0, A = Z, r = e.apply(te, F), r;
|
|
4262
4266
|
}
|
|
4263
4267
|
function v(Z) {
|
|
4264
|
-
return A = Z, s = setTimeout(
|
|
4268
|
+
return A = Z, s = setTimeout(T, t), d ? m(Z) : r;
|
|
4265
4269
|
}
|
|
4266
|
-
function
|
|
4270
|
+
function y(Z) {
|
|
4267
4271
|
var F = Z - c, te = Z - A, x = t - F;
|
|
4268
4272
|
return f ? hr(x, o - te) : x;
|
|
4269
4273
|
}
|
|
4270
|
-
function
|
|
4274
|
+
function M(Z) {
|
|
4271
4275
|
var F = Z - c, te = Z - A;
|
|
4272
4276
|
return c === void 0 || F >= t || F < 0 || f && te >= o;
|
|
4273
4277
|
}
|
|
4274
|
-
function
|
|
4278
|
+
function T() {
|
|
4275
4279
|
var Z = At();
|
|
4276
|
-
if (
|
|
4280
|
+
if (M(Z))
|
|
4277
4281
|
return L(Z);
|
|
4278
|
-
s = setTimeout(
|
|
4282
|
+
s = setTimeout(T, y(Z));
|
|
4279
4283
|
}
|
|
4280
4284
|
function L(Z) {
|
|
4281
4285
|
return s = void 0, C && n ? m(Z) : (n = i = void 0, r);
|
|
4282
4286
|
}
|
|
4283
|
-
function
|
|
4287
|
+
function N() {
|
|
4284
4288
|
s !== void 0 && clearTimeout(s), A = 0, n = c = i = s = void 0;
|
|
4285
4289
|
}
|
|
4286
4290
|
function O() {
|
|
4287
4291
|
return s === void 0 ? r : L(At());
|
|
4288
4292
|
}
|
|
4289
4293
|
function V() {
|
|
4290
|
-
var Z = At(), F =
|
|
4294
|
+
var Z = At(), F = M(Z);
|
|
4291
4295
|
if (n = arguments, i = this, c = Z, F) {
|
|
4292
4296
|
if (s === void 0)
|
|
4293
4297
|
return v(c);
|
|
4294
4298
|
if (f)
|
|
4295
|
-
return clearTimeout(s), s = setTimeout(
|
|
4299
|
+
return clearTimeout(s), s = setTimeout(T, t), m(c);
|
|
4296
4300
|
}
|
|
4297
|
-
return s === void 0 && (s = setTimeout(
|
|
4301
|
+
return s === void 0 && (s = setTimeout(T, t)), r;
|
|
4298
4302
|
}
|
|
4299
|
-
return V.cancel =
|
|
4303
|
+
return V.cancel = N, V.flush = O, V;
|
|
4300
4304
|
}
|
|
4301
4305
|
const yr = {
|
|
4302
4306
|
key: 0,
|
|
@@ -4318,48 +4322,48 @@ const yr = {
|
|
|
4318
4322
|
props: c,
|
|
4319
4323
|
getOptionId: A,
|
|
4320
4324
|
getDisplayLabel: d
|
|
4321
|
-
} = Tt(), f = U(), C = U(), m =
|
|
4325
|
+
} = Tt(), f = U(), C = U(), m = b(() => {
|
|
4322
4326
|
if (!c.options)
|
|
4323
4327
|
return [];
|
|
4324
4328
|
if (c.serverSideFiltering)
|
|
4325
4329
|
return c.maxResults ? c.options.slice(0, c.maxResults) : c.options;
|
|
4326
|
-
const
|
|
4327
|
-
if (!
|
|
4330
|
+
const N = r.value.toLowerCase().trim();
|
|
4331
|
+
if (!N) {
|
|
4328
4332
|
const V = c.options;
|
|
4329
4333
|
return c.maxResults ? V.slice(0, c.maxResults) : V;
|
|
4330
4334
|
}
|
|
4331
4335
|
let O;
|
|
4332
|
-
return c.filterOptions ? O = c.filterOptions(c.options,
|
|
4333
|
-
}), v =
|
|
4334
|
-
function
|
|
4336
|
+
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
|
+
}), 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
|
+
function y(N) {
|
|
4335
4339
|
return o.value.some(
|
|
4336
|
-
(O) => A(O) === A(
|
|
4340
|
+
(O) => A(O) === A(N)
|
|
4337
4341
|
);
|
|
4338
4342
|
}
|
|
4339
|
-
function
|
|
4343
|
+
function M(N) {
|
|
4340
4344
|
if (!c.multiSelect) {
|
|
4341
|
-
o.value = [
|
|
4345
|
+
o.value = [N], s.value = !1, r.value = "";
|
|
4342
4346
|
return;
|
|
4343
4347
|
}
|
|
4344
|
-
const O = o.value, V = A(
|
|
4348
|
+
const O = o.value, V = A(N);
|
|
4345
4349
|
O.some(
|
|
4346
4350
|
(F) => A(F) === V
|
|
4347
4351
|
) ? o.value = O.filter(
|
|
4348
4352
|
(F) => A(F) !== V
|
|
4349
|
-
) : o.value = [...O,
|
|
4353
|
+
) : o.value = [...O, N];
|
|
4350
4354
|
}
|
|
4351
|
-
const { arrivedState:
|
|
4355
|
+
const { arrivedState: T } = ti(C, {
|
|
4352
4356
|
throttle: 100
|
|
4353
4357
|
}), L = Ma(() => {
|
|
4354
4358
|
n("loadMore");
|
|
4355
4359
|
}, c.loadMoreThrottleDelay);
|
|
4356
|
-
return oe(() =>
|
|
4357
|
-
c.enableLoadMore &&
|
|
4360
|
+
return oe(() => T.bottom, (N) => {
|
|
4361
|
+
c.enableLoadMore && N && s.value && L();
|
|
4358
4362
|
}), ve(() => {
|
|
4359
4363
|
L.cancel();
|
|
4360
4364
|
}), t({
|
|
4361
4365
|
dropdownRef: f
|
|
4362
|
-
}), (
|
|
4366
|
+
}), (N, O) => l(s) ? (u(), I("div", {
|
|
4363
4367
|
key: 0,
|
|
4364
4368
|
ref_key: "dropdownRef",
|
|
4365
4369
|
ref: f,
|
|
@@ -4372,9 +4376,9 @@ const yr = {
|
|
|
4372
4376
|
size: 1.5,
|
|
4373
4377
|
class: "av-autocomplete-dropdown__spinner"
|
|
4374
4378
|
}, null, 8, ["name"]),
|
|
4375
|
-
O[0] || (O[0] =
|
|
4379
|
+
O[0] || (O[0] = g("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
4376
4380
|
])) : l(v) === l(Qe).NO_OPTIONS ? (u(), I("div", Cr, [
|
|
4377
|
-
i.empty ? P(
|
|
4381
|
+
i.empty ? P(N.$slots, "empty", { key: 0 }, void 0, !0) : (u(), I("div", Mr, " No results found "))
|
|
4378
4382
|
])) : (u(), k(Ia, ee({
|
|
4379
4383
|
key: 2,
|
|
4380
4384
|
ref_key: "listRef",
|
|
@@ -4386,18 +4390,18 @@ const yr = {
|
|
|
4386
4390
|
(u(!0), I($, null, ie(l(m), (V) => (u(), I($, {
|
|
4387
4391
|
key: l(A)(V)
|
|
4388
4392
|
}, [
|
|
4389
|
-
i.item ? P(
|
|
4393
|
+
i.item ? P(N.$slots, "item", {
|
|
4390
4394
|
key: 0,
|
|
4391
4395
|
option: V,
|
|
4392
|
-
isSelected:
|
|
4393
|
-
toggle: () =>
|
|
4396
|
+
isSelected: y(V),
|
|
4397
|
+
toggle: () => M(V)
|
|
4394
4398
|
}, void 0, !0) : (u(), k(ga, {
|
|
4395
4399
|
key: 1,
|
|
4396
4400
|
title: l(d)(V),
|
|
4397
|
-
icon:
|
|
4398
|
-
selected:
|
|
4401
|
+
icon: y(V) ? l(R).CHECK : void 0,
|
|
4402
|
+
selected: y(V),
|
|
4399
4403
|
clickable: "",
|
|
4400
|
-
"on-click": () =>
|
|
4404
|
+
"on-click": () => M(V),
|
|
4401
4405
|
"hover-background-color": "var(--light-background-neutral)",
|
|
4402
4406
|
"color-on-hover": "var(--base)"
|
|
4403
4407
|
}, null, 8, ["title", "icon", "selected", "on-click"]))
|
|
@@ -4422,27 +4426,27 @@ const yr = {
|
|
|
4422
4426
|
inputId: A,
|
|
4423
4427
|
handleBlur: d,
|
|
4424
4428
|
getDisplayLabel: f
|
|
4425
|
-
} = Tt(), C = U(), m =
|
|
4426
|
-
var
|
|
4427
|
-
return ((
|
|
4428
|
-
}),
|
|
4429
|
-
r.value =
|
|
4429
|
+
} = Tt(), C = U(), m = b(() => !c.multiSelect && o.value.length > 0 ? f(o.value[0]) : c.multiSelect && o.value.length > 0 ? c.showSelectedSection ? `${o.value.length} element(s) selected` : o.value.map(f).join(", ") : r.value), v = b(() => {
|
|
4430
|
+
var N;
|
|
4431
|
+
return ((N = c.inputOptions) == null ? void 0 : N.placeholder) || "Search...";
|
|
4432
|
+
}), y = Ma((N) => {
|
|
4433
|
+
r.value = N, n("search", N);
|
|
4430
4434
|
}, c.debounceDelay);
|
|
4431
|
-
function
|
|
4432
|
-
r.value = String(
|
|
4435
|
+
function M(N) {
|
|
4436
|
+
r.value = String(N || ""), y(r.value);
|
|
4433
4437
|
}
|
|
4434
|
-
function
|
|
4438
|
+
function T() {
|
|
4435
4439
|
s.value = !0;
|
|
4436
4440
|
}
|
|
4437
4441
|
function L() {
|
|
4438
4442
|
o.value = [], r.value = "", n("clear");
|
|
4439
4443
|
}
|
|
4440
4444
|
return ve(() => {
|
|
4441
|
-
|
|
4445
|
+
y.cancel();
|
|
4442
4446
|
}), t({
|
|
4443
4447
|
inputRef: C,
|
|
4444
|
-
searchQuery:
|
|
4445
|
-
}), (
|
|
4448
|
+
searchQuery: b(() => r.value)
|
|
4449
|
+
}), (N, O) => (u(), I("div", Tr, [
|
|
4446
4450
|
W(Nt, ee({
|
|
4447
4451
|
id: l(A),
|
|
4448
4452
|
ref_key: "inputRef",
|
|
@@ -4450,10 +4454,10 @@ const yr = {
|
|
|
4450
4454
|
"model-value": l(m),
|
|
4451
4455
|
placeholder: l(v)
|
|
4452
4456
|
}, l(c).inputOptions, {
|
|
4453
|
-
"onUpdate:modelValue":
|
|
4454
|
-
onFocus:
|
|
4457
|
+
"onUpdate:modelValue": M,
|
|
4458
|
+
onFocus: T,
|
|
4455
4459
|
onBlur: l(d),
|
|
4456
|
-
onClick:
|
|
4460
|
+
onClick: T
|
|
4457
4461
|
}), qe({ _: 2 }, [
|
|
4458
4462
|
i.requiredTip ? {
|
|
4459
4463
|
name: "requiredTip",
|
|
@@ -4548,20 +4552,20 @@ const yr = {
|
|
|
4548
4552
|
}),
|
|
4549
4553
|
emits: /* @__PURE__ */ ge(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
4550
4554
|
setup(e, { emit: t }) {
|
|
4551
|
-
const a = e, n = t, i = fe(), o = Le(e, "modelValue"), r = U(!1), s = U(""), c = U(), A = U(), d = U(), f =
|
|
4555
|
+
const a = e, n = t, i = fe(), o = Le(e, "modelValue"), r = U(!1), s = U(""), c = U(), A = U(), d = U(), f = b(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
4552
4556
|
function C(L) {
|
|
4553
4557
|
s.value = L, n("search", L);
|
|
4554
4558
|
}
|
|
4555
4559
|
function m(L) {
|
|
4556
|
-
var
|
|
4557
|
-
(O = (
|
|
4560
|
+
var N, O;
|
|
4561
|
+
(O = (N = d.value) == null ? void 0 : N.dropdownRef) != null && O.contains(L.relatedTarget) || setTimeout(() => {
|
|
4558
4562
|
r.value = !1;
|
|
4559
4563
|
}, a.blurCloseDelay);
|
|
4560
4564
|
}
|
|
4561
4565
|
function v(L) {
|
|
4562
4566
|
return a.getOptionKey ? a.getOptionKey(L) : L.value;
|
|
4563
4567
|
}
|
|
4564
|
-
function
|
|
4568
|
+
function y(L) {
|
|
4565
4569
|
return a.getOptionLabel ? a.getOptionLabel(L) : L.label;
|
|
4566
4570
|
}
|
|
4567
4571
|
bt(ha, {
|
|
@@ -4572,19 +4576,19 @@ const yr = {
|
|
|
4572
4576
|
inputId: f,
|
|
4573
4577
|
handleBlur: m,
|
|
4574
4578
|
getOptionId: v,
|
|
4575
|
-
getDisplayLabel:
|
|
4579
|
+
getDisplayLabel: y
|
|
4576
4580
|
});
|
|
4577
|
-
function
|
|
4581
|
+
function T(L) {
|
|
4578
4582
|
var V, Z, F, te, x;
|
|
4579
|
-
const
|
|
4580
|
-
!((Z = O == null ? void 0 : O.contains) != null && Z.call(O,
|
|
4583
|
+
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)) && (r.value = !1);
|
|
4581
4585
|
}
|
|
4582
4586
|
return de(() => {
|
|
4583
|
-
document.addEventListener("click",
|
|
4587
|
+
document.addEventListener("click", T);
|
|
4584
4588
|
}), ve(() => {
|
|
4585
|
-
document.removeEventListener("click",
|
|
4586
|
-
}), (L,
|
|
4587
|
-
|
|
4589
|
+
document.removeEventListener("click", T);
|
|
4590
|
+
}), (L, N) => (u(), I("div", xr, [
|
|
4591
|
+
g("div", {
|
|
4588
4592
|
ref_key: "wrapperRef",
|
|
4589
4593
|
ref: c,
|
|
4590
4594
|
class: "av-autocomplete__wrapper"
|
|
@@ -4593,7 +4597,7 @@ const yr = {
|
|
|
4593
4597
|
ref_key: "inputRef",
|
|
4594
4598
|
ref: A,
|
|
4595
4599
|
onSearch: C,
|
|
4596
|
-
onClear:
|
|
4600
|
+
onClear: N[0] || (N[0] = (O) => n("clear"))
|
|
4597
4601
|
}, qe({ _: 2 }, [
|
|
4598
4602
|
i.requiredTip ? {
|
|
4599
4603
|
name: "requiredTip",
|
|
@@ -4606,7 +4610,7 @@ const yr = {
|
|
|
4606
4610
|
W(Nr, {
|
|
4607
4611
|
ref_key: "dropdownRef",
|
|
4608
4612
|
ref: d,
|
|
4609
|
-
onLoadMore:
|
|
4613
|
+
onLoadMore: N[1] || (N[1] = (O) => n("loadMore"))
|
|
4610
4614
|
}, qe({ _: 2 }, [
|
|
4611
4615
|
i.item ? {
|
|
4612
4616
|
name: "item",
|
|
@@ -4679,27 +4683,27 @@ const yr = {
|
|
|
4679
4683
|
return document.querySelectorAll(`[id^="${e.id}-"][id$="-checkbox"]`);
|
|
4680
4684
|
}
|
|
4681
4685
|
const v = U("");
|
|
4682
|
-
function
|
|
4686
|
+
function y(H) {
|
|
4683
4687
|
H.key === "Escape" && a("close");
|
|
4684
4688
|
}
|
|
4685
|
-
function
|
|
4689
|
+
function M(H) {
|
|
4686
4690
|
var p, h;
|
|
4687
4691
|
const w = H.target;
|
|
4688
4692
|
!((p = i.value) != null && p.$el.contains(w)) && !((h = A.value) != null && h.contains(w)) && a("close");
|
|
4689
4693
|
}
|
|
4690
|
-
function
|
|
4694
|
+
function T() {
|
|
4691
4695
|
for (; c.length; ) {
|
|
4692
4696
|
const H = c.pop();
|
|
4693
4697
|
H && H();
|
|
4694
4698
|
}
|
|
4695
|
-
document.removeEventListener("click",
|
|
4699
|
+
document.removeEventListener("click", M), document.removeEventListener("keydown", y);
|
|
4696
4700
|
}
|
|
4697
|
-
const L =
|
|
4701
|
+
const L = b(
|
|
4698
4702
|
() => e.options.filter((H) => typeof H == "object" && H !== null ? `${H[Wr]}`.toLowerCase().includes(v.value.toLowerCase()) : `${H}`.toLowerCase().includes(v.value.toLowerCase()))
|
|
4699
|
-
),
|
|
4703
|
+
), N = b(() => e.selected.length < L.value.length ? !1 : L.value.every((H) => e.selected.includes(H)));
|
|
4700
4704
|
function O() {
|
|
4701
4705
|
const H = new Set(r.value || []);
|
|
4702
|
-
|
|
4706
|
+
N.value ? L.value.forEach((w) => {
|
|
4703
4707
|
H.delete(w.value);
|
|
4704
4708
|
}) : L.value.forEach((w) => {
|
|
4705
4709
|
H.add(w.value);
|
|
@@ -4713,16 +4717,16 @@ const yr = {
|
|
|
4713
4717
|
H.preventDefault();
|
|
4714
4718
|
const w = m(), p = document.activeElement, h = Array.from(w).indexOf(p);
|
|
4715
4719
|
if (h !== -1) {
|
|
4716
|
-
const
|
|
4717
|
-
w[
|
|
4720
|
+
const E = (h + 1) % w.length;
|
|
4721
|
+
w[E].focus();
|
|
4718
4722
|
}
|
|
4719
4723
|
}
|
|
4720
4724
|
function F(H) {
|
|
4721
4725
|
H.preventDefault();
|
|
4722
4726
|
const w = m(), p = document.activeElement, h = Array.from(w).indexOf(p);
|
|
4723
4727
|
if (h !== -1) {
|
|
4724
|
-
const
|
|
4725
|
-
w[
|
|
4728
|
+
const E = (h - 1 + w.length) % w.length;
|
|
4729
|
+
w[E].focus();
|
|
4726
4730
|
}
|
|
4727
4731
|
}
|
|
4728
4732
|
function te(H) {
|
|
@@ -4735,7 +4739,7 @@ const yr = {
|
|
|
4735
4739
|
H.shiftKey && w === ((p = i.value) == null ? void 0 : p.$el) && a("close");
|
|
4736
4740
|
}
|
|
4737
4741
|
return ve(() => {
|
|
4738
|
-
|
|
4742
|
+
T();
|
|
4739
4743
|
}), (H, w) => {
|
|
4740
4744
|
const p = re, h = Nt;
|
|
4741
4745
|
return e.isVisible ? (u(), I("div", {
|
|
@@ -4747,20 +4751,20 @@ const yr = {
|
|
|
4747
4751
|
"--width-host": `${l(s)}px`
|
|
4748
4752
|
}),
|
|
4749
4753
|
class: j(["av-multiselect__collapse av-collapse", { "av-collapse--expanded": l(f), "av-collapsing": l(d) }]),
|
|
4750
|
-
onTransitionend: w[2] || (w[2] = (
|
|
4754
|
+
onTransitionend: w[2] || (w[2] = (E) => l(C)(l(o)))
|
|
4751
4755
|
}, [
|
|
4752
|
-
|
|
4756
|
+
g("p", {
|
|
4753
4757
|
id: `${e.id}-text-hint`,
|
|
4754
4758
|
class: "av-sr-only"
|
|
4755
4759
|
}, B(e.hint), 9, jr),
|
|
4756
4760
|
e.selectAll ? (u(), I("ul", zr, [
|
|
4757
|
-
|
|
4761
|
+
g("li", null, [
|
|
4758
4762
|
W(p, {
|
|
4759
4763
|
name: "select-all",
|
|
4760
4764
|
size: "sm",
|
|
4761
4765
|
disabled: l(L).length === 0,
|
|
4762
|
-
label: e.selectAllLabel[l(
|
|
4763
|
-
icon: l(
|
|
4766
|
+
label: e.selectAllLabel[l(N) ? 1 : 0],
|
|
4767
|
+
icon: l(N) ? l(R).CLOSE_CIRCLE_OUTLINE : l(R).CHECK_CIRCLE_OUTLINE,
|
|
4764
4768
|
onClick: O,
|
|
4765
4769
|
onKeydown: Ae(ue(x, ["shift"]), ["tab"])
|
|
4766
4770
|
}, null, 8, ["disabled", "label", "icon", "onKeydown"])
|
|
@@ -4769,7 +4773,7 @@ const yr = {
|
|
|
4769
4773
|
e.search ? (u(), I("div", Br, [
|
|
4770
4774
|
W(h, {
|
|
4771
4775
|
modelValue: l(v),
|
|
4772
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
4776
|
+
"onUpdate:modelValue": w[0] || (w[0] = (E) => Ct(v) ? v.value = E : null),
|
|
4773
4777
|
"aria-describedby": `${e.id}-text-hint`,
|
|
4774
4778
|
"aria-controls": `${e.id}-checkboxes`,
|
|
4775
4779
|
"prefix-icon": l(R).MAGNIFY,
|
|
@@ -4790,15 +4794,15 @@ const yr = {
|
|
|
4790
4794
|
"legend-id": `${e.id}-checkboxes-legend`
|
|
4791
4795
|
}, {
|
|
4792
4796
|
default: G(() => [
|
|
4793
|
-
(u(!0), I($, null, ie(l(L), (
|
|
4794
|
-
id: `${n(
|
|
4795
|
-
key: `${n(
|
|
4797
|
+
(u(!0), I($, null, ie(l(L), (E) => (u(), k(Ki, {
|
|
4798
|
+
id: `${n(E, e.id)}-checkbox`,
|
|
4799
|
+
key: `${n(E, e.id)}-fieldset`,
|
|
4796
4800
|
modelValue: r.value,
|
|
4797
4801
|
"onUpdate:modelValue": w[1] || (w[1] = (S) => r.value = S),
|
|
4798
|
-
value:
|
|
4799
|
-
label:
|
|
4800
|
-
icon:
|
|
4801
|
-
name: `${n(
|
|
4802
|
+
value: E.value,
|
|
4803
|
+
label: E.label,
|
|
4804
|
+
icon: E.icon,
|
|
4805
|
+
name: `${n(E, e.id)}-checkbox`,
|
|
4802
4806
|
onKeydown: [
|
|
4803
4807
|
Ae(Z, ["down"]),
|
|
4804
4808
|
Ae(Z, ["right"]),
|
|
@@ -4850,7 +4854,7 @@ const yr = {
|
|
|
4850
4854
|
v7d3d0889: w.width,
|
|
4851
4855
|
v10950ec4: w.height
|
|
4852
4856
|
}));
|
|
4853
|
-
const a = t, n =
|
|
4857
|
+
const a = t, n = b(() => e.id ?? `multi-select-${crypto.randomUUID()}`), i = U(null), o = U(!1), r = b(() => e.errorMessage || e.successMessage), s = b(() => e.errorMessage ? "error" : "success"), {
|
|
4854
4858
|
collapse: c,
|
|
4855
4859
|
collapsing: A,
|
|
4856
4860
|
cssExpanded: d,
|
|
@@ -4862,37 +4866,37 @@ const yr = {
|
|
|
4862
4866
|
cssExpanded: d,
|
|
4863
4867
|
doExpand: f,
|
|
4864
4868
|
onTransitionEnd: C
|
|
4865
|
-
}, v =
|
|
4869
|
+
}, v = b(() => e.modelValue.map((w) => w.value)), y = b(() => {
|
|
4866
4870
|
if (!e.modelValue || e.modelValue.length === 0)
|
|
4867
4871
|
return e.placeholder;
|
|
4868
4872
|
if (e.selectedText)
|
|
4869
4873
|
return e.selectedText;
|
|
4870
4874
|
const w = e.modelValue.length > 1 ? "s" : "";
|
|
4871
4875
|
return `${e.modelValue.length} option${w} sélectionnée${w}`;
|
|
4872
|
-
}),
|
|
4873
|
-
function
|
|
4876
|
+
}), M = U(!1);
|
|
4877
|
+
function T(w) {
|
|
4874
4878
|
w.key === "Escape" && O();
|
|
4875
4879
|
}
|
|
4876
4880
|
function L(w) {
|
|
4877
|
-
var h,
|
|
4881
|
+
var h, E;
|
|
4878
4882
|
const p = w.target;
|
|
4879
|
-
!((h = i.value) != null && h.$el.contains(p)) && !((
|
|
4883
|
+
!((h = i.value) != null && h.$el.contains(p)) && !((E = c.value) != null && E.contains(p)) && O();
|
|
4880
4884
|
}
|
|
4881
|
-
function
|
|
4882
|
-
o.value = !0,
|
|
4885
|
+
function N() {
|
|
4886
|
+
o.value = !0, M.value = !0, document.addEventListener("click", L), document.addEventListener("keydown", T), setTimeout(() => {
|
|
4883
4887
|
f(!0);
|
|
4884
4888
|
}, 100);
|
|
4885
4889
|
}
|
|
4886
4890
|
function O() {
|
|
4887
4891
|
o.value = !1, f(!1), setTimeout(() => {
|
|
4888
|
-
|
|
4892
|
+
M.value = !1;
|
|
4889
4893
|
}, 300), Z();
|
|
4890
4894
|
}
|
|
4891
4895
|
async function V() {
|
|
4892
|
-
|
|
4896
|
+
M.value ? O() : N();
|
|
4893
4897
|
}
|
|
4894
4898
|
function Z() {
|
|
4895
|
-
document.removeEventListener("click", L), document.removeEventListener("keydown",
|
|
4899
|
+
document.removeEventListener("click", L), document.removeEventListener("keydown", T);
|
|
4896
4900
|
}
|
|
4897
4901
|
function F(w) {
|
|
4898
4902
|
var h;
|
|
@@ -4902,32 +4906,32 @@ const yr = {
|
|
|
4902
4906
|
function te(w) {
|
|
4903
4907
|
var h;
|
|
4904
4908
|
const p = ((h = e.options) == null ? void 0 : h.filter(
|
|
4905
|
-
(
|
|
4909
|
+
(E) => w.includes(E.value)
|
|
4906
4910
|
)) ?? [];
|
|
4907
4911
|
a("update:modelValue", p);
|
|
4908
4912
|
}
|
|
4909
4913
|
ve(() => {
|
|
4910
4914
|
Z();
|
|
4911
4915
|
});
|
|
4912
|
-
const x =
|
|
4916
|
+
const x = b(() => [
|
|
4913
4917
|
"av-label",
|
|
4914
4918
|
{ invisible: !e.labelVisible },
|
|
4915
4919
|
e.labelClass
|
|
4916
|
-
]), H =
|
|
4920
|
+
]), H = b(() => ({
|
|
4917
4921
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
4918
4922
|
}));
|
|
4919
4923
|
return (w, p) => {
|
|
4920
|
-
const h = re,
|
|
4924
|
+
const h = re, E = ke;
|
|
4921
4925
|
return u(), I($, null, [
|
|
4922
|
-
|
|
4926
|
+
g("div", {
|
|
4923
4927
|
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(r) }]),
|
|
4924
|
-
title: l(
|
|
4928
|
+
title: l(y)
|
|
4925
4929
|
}, [
|
|
4926
|
-
|
|
4930
|
+
g("label", {
|
|
4927
4931
|
class: j(l(x)),
|
|
4928
4932
|
for: l(n)
|
|
4929
4933
|
}, [
|
|
4930
|
-
|
|
4934
|
+
g("span", Zr, B(e.label), 1),
|
|
4931
4935
|
"required" in w.$attrs && w.$attrs.required !== !1 ? (u(), I("span", Xr)) : D("", !0),
|
|
4932
4936
|
e.hint ? (u(), I("span", Yr, B(e.hint), 1)) : D("", !0)
|
|
4933
4937
|
], 10, Rr),
|
|
@@ -4938,7 +4942,7 @@ const yr = {
|
|
|
4938
4942
|
type: "button",
|
|
4939
4943
|
variant: "OUTLINED"
|
|
4940
4944
|
}, w.$attrs, {
|
|
4941
|
-
label: l(
|
|
4945
|
+
label: l(y),
|
|
4942
4946
|
class: ["av-multiselect", {
|
|
4943
4947
|
"av-multiselect--is-open": l(o),
|
|
4944
4948
|
"av-multiselect--dense": e.dense,
|
|
@@ -4958,7 +4962,7 @@ const yr = {
|
|
|
4958
4962
|
legend: e.legend,
|
|
4959
4963
|
hint: e.collapseHint,
|
|
4960
4964
|
"model-value": l(v),
|
|
4961
|
-
"is-visible": l(
|
|
4965
|
+
"is-visible": l(M),
|
|
4962
4966
|
"select-all": e.selectAll,
|
|
4963
4967
|
"select-all-label": e.selectAllLabel,
|
|
4964
4968
|
search: e.search,
|
|
@@ -4969,7 +4973,7 @@ const yr = {
|
|
|
4969
4973
|
"onUpdate:modelValue": te
|
|
4970
4974
|
}, null, 8, ["id", "legend", "hint", "model-value", "is-visible", "select-all", "select-all-label", "search", "options", "selected"])
|
|
4971
4975
|
], 10, Hr),
|
|
4972
|
-
W(
|
|
4976
|
+
W(E, {
|
|
4973
4977
|
"message-id": `multiselect-${l(s)}-desc-${l(s)}`,
|
|
4974
4978
|
type: l(s),
|
|
4975
4979
|
message: l(r)
|
|
@@ -5001,32 +5005,32 @@ const yr = {
|
|
|
5001
5005
|
},
|
|
5002
5006
|
emits: ["update:modelValue"],
|
|
5003
5007
|
setup(e, { emit: t }) {
|
|
5004
|
-
const a = t, n =
|
|
5008
|
+
const a = t, n = b(() => e.id ?? `select-${crypto.randomUUID()}`), i = b(() => {
|
|
5005
5009
|
var A;
|
|
5006
5010
|
if (!e.modelValue)
|
|
5007
5011
|
return e.placeholder;
|
|
5008
5012
|
const c = (A = e.options) == null ? void 0 : A.find((d) => String(d.value) === String(e.modelValue));
|
|
5009
5013
|
return c ? c.text : e.placeholder;
|
|
5010
|
-
}), o =
|
|
5014
|
+
}), o = b(() => ({
|
|
5011
5015
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5012
|
-
})), r =
|
|
5016
|
+
})), r = b(() => e.errorMessage || e.successMessage), s = b(() => e.errorMessage ? "error" : "success");
|
|
5013
5017
|
return (c, A) => {
|
|
5014
5018
|
const d = ke;
|
|
5015
5019
|
return u(), I("div", {
|
|
5016
5020
|
class: j({ "av-select--dense": e.dense })
|
|
5017
5021
|
}, [
|
|
5018
|
-
|
|
5022
|
+
g("div", {
|
|
5019
5023
|
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(r) }])
|
|
5020
5024
|
}, [
|
|
5021
|
-
|
|
5025
|
+
g("label", {
|
|
5022
5026
|
class: "av-label b2-light",
|
|
5023
5027
|
for: l(n)
|
|
5024
5028
|
}, [
|
|
5025
|
-
|
|
5029
|
+
g("span", null, B(e.label), 1),
|
|
5026
5030
|
e.required ? (u(), I("span", Kr, " *")) : D("", !0),
|
|
5027
5031
|
e.hint ? (u(), I("span", Gr, B(e.hint), 1)) : D("", !0)
|
|
5028
5032
|
], 8, Fr),
|
|
5029
|
-
|
|
5033
|
+
g("select", ee({
|
|
5030
5034
|
id: l(n),
|
|
5031
5035
|
class: [{ [`av-select--${l(s)}`]: l(r) }, "av-select"],
|
|
5032
5036
|
name: e.name || l(n),
|
|
@@ -5042,7 +5046,7 @@ const yr = {
|
|
|
5042
5046
|
return a("update:modelValue", (C = f.target) == null ? void 0 : C.value);
|
|
5043
5047
|
})
|
|
5044
5048
|
}), [
|
|
5045
|
-
|
|
5049
|
+
g("option", {
|
|
5046
5050
|
selected: !e.options.some((f) => f.value === e.modelValue),
|
|
5047
5051
|
disabled: "",
|
|
5048
5052
|
value: "",
|
|
@@ -5108,7 +5112,7 @@ const yr = {
|
|
|
5108
5112
|
},
|
|
5109
5113
|
emits: ["click", "next", "previous", "first", "last"],
|
|
5110
5114
|
setup(e, { emit: t }) {
|
|
5111
|
-
const a = t, n = U(null), i = ka("button"), o =
|
|
5115
|
+
const a = t, n = U(null), i = ka("button"), o = b(() => e.isSelected ? "s2-bold" : "s2-regular"), r = {
|
|
5112
5116
|
ArrowRight: "next",
|
|
5113
5117
|
ArrowLeft: "previous",
|
|
5114
5118
|
Home: "first",
|
|
@@ -5141,7 +5145,7 @@ const yr = {
|
|
|
5141
5145
|
class: j(["av-tab-item", { "av-tab-item--compact": e.compact }]),
|
|
5142
5146
|
role: "presentation"
|
|
5143
5147
|
}, [
|
|
5144
|
-
|
|
5148
|
+
g("button", ee(c.$attrs, {
|
|
5145
5149
|
id: e.tabId,
|
|
5146
5150
|
ref_key: "button",
|
|
5147
5151
|
ref: n,
|
|
@@ -5160,7 +5164,7 @@ const yr = {
|
|
|
5160
5164
|
name: e.icon,
|
|
5161
5165
|
size: 2
|
|
5162
5166
|
}, null, 8, ["name"])) : D("", !0),
|
|
5163
|
-
|
|
5167
|
+
g("span", {
|
|
5164
5168
|
class: j(l(o))
|
|
5165
5169
|
}, B(e.title), 3)
|
|
5166
5170
|
], 16, is)
|
|
@@ -5192,26 +5196,26 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5192
5196
|
}),
|
|
5193
5197
|
emits: ["update:modelValue"],
|
|
5194
5198
|
setup(e) {
|
|
5195
|
-
const t = fe(), a =
|
|
5196
|
-
var
|
|
5197
|
-
return ((
|
|
5199
|
+
const t = fe(), a = b(() => {
|
|
5200
|
+
var M;
|
|
5201
|
+
return ((M = t.default) == null ? void 0 : M.call(t)) || [];
|
|
5198
5202
|
}), n = Le(e, "modelValue"), i = U(null), o = U(null), r = ut({}), { tabsStyle: s, updateTabsStyle: c } = rs(
|
|
5199
5203
|
o,
|
|
5200
|
-
|
|
5201
|
-
var
|
|
5202
|
-
return Array.from(((
|
|
5204
|
+
b(() => {
|
|
5205
|
+
var M;
|
|
5206
|
+
return Array.from(((M = i.value) == null ? void 0 : M.querySelectorAll(".av-tab-content")) || []);
|
|
5203
5207
|
}),
|
|
5204
5208
|
n
|
|
5205
5209
|
);
|
|
5206
|
-
function A(
|
|
5207
|
-
if (r[
|
|
5208
|
-
return r[
|
|
5209
|
-
const
|
|
5210
|
-
return r[
|
|
5210
|
+
function A(M) {
|
|
5211
|
+
if (r[M])
|
|
5212
|
+
return r[M];
|
|
5213
|
+
const T = `tab-${crypto.randomUUID()}`;
|
|
5214
|
+
return r[M] = T, T;
|
|
5211
5215
|
}
|
|
5212
|
-
function d(
|
|
5213
|
-
const
|
|
5214
|
-
n.value = (n.value +
|
|
5216
|
+
function d(M) {
|
|
5217
|
+
const T = a.value.length;
|
|
5218
|
+
n.value = (n.value + M + T) % T;
|
|
5215
5219
|
}
|
|
5216
5220
|
function f() {
|
|
5217
5221
|
d(-1);
|
|
@@ -5225,22 +5229,22 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5225
5229
|
function v() {
|
|
5226
5230
|
n.value = a.value.length - 1;
|
|
5227
5231
|
}
|
|
5228
|
-
const
|
|
5232
|
+
const y = U(null);
|
|
5229
5233
|
return de(() => {
|
|
5230
|
-
var
|
|
5231
|
-
window.ResizeObserver && (
|
|
5234
|
+
var M;
|
|
5235
|
+
window.ResizeObserver && (y.value = new window.ResizeObserver(() => {
|
|
5232
5236
|
c();
|
|
5233
|
-
})), (
|
|
5237
|
+
})), (M = i.value) == null || M.querySelectorAll(".av-tab-content").forEach((T) => {
|
|
5234
5238
|
var L;
|
|
5235
|
-
|
|
5239
|
+
T && ((L = y.value) == null || L.observe(T));
|
|
5236
5240
|
});
|
|
5237
5241
|
}), ve(() => {
|
|
5238
|
-
var
|
|
5239
|
-
(
|
|
5240
|
-
var
|
|
5241
|
-
L && ((
|
|
5242
|
-
}), (
|
|
5243
|
-
}), (
|
|
5242
|
+
var M, T;
|
|
5243
|
+
(M = i.value) == null || M.querySelectorAll(".av-tab-content").forEach((L) => {
|
|
5244
|
+
var N;
|
|
5245
|
+
L && ((N = y.value) == null || N.unobserve(L));
|
|
5246
|
+
}), (T = y.value) == null || T.disconnect();
|
|
5247
|
+
}), (M, T) => (u(), I("div", {
|
|
5244
5248
|
ref_key: "$el",
|
|
5245
5249
|
ref: i,
|
|
5246
5250
|
class: j(["av-tabs", {
|
|
@@ -5248,7 +5252,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5248
5252
|
}]),
|
|
5249
5253
|
style: ce(l(s))
|
|
5250
5254
|
}, [
|
|
5251
|
-
|
|
5255
|
+
g("ul", {
|
|
5252
5256
|
ref_key: "tablist",
|
|
5253
5257
|
ref: o,
|
|
5254
5258
|
class: j(["av-tabs__list", {
|
|
@@ -5257,17 +5261,17 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5257
5261
|
role: "tablist",
|
|
5258
5262
|
"aria-label": e.ariaLabel ?? "Liste d’onglets"
|
|
5259
5263
|
}, [
|
|
5260
|
-
(u(!0), I($, null, ie(l(a), (L,
|
|
5264
|
+
(u(!0), I($, null, ie(l(a), (L, N) => {
|
|
5261
5265
|
var O, V;
|
|
5262
5266
|
return u(), k(os, {
|
|
5263
|
-
key:
|
|
5264
|
-
"tab-id": A(
|
|
5265
|
-
"panel-id": `${A(
|
|
5267
|
+
key: N,
|
|
5268
|
+
"tab-id": A(N),
|
|
5269
|
+
"panel-id": `${A(N)}-panel`,
|
|
5266
5270
|
title: (O = L.props) == null ? void 0 : O.title,
|
|
5267
5271
|
icon: (V = L.props) == null ? void 0 : V.icon,
|
|
5268
5272
|
compact: e.compact,
|
|
5269
|
-
"is-selected": n.value ===
|
|
5270
|
-
onClick: (Z) => n.value =
|
|
5273
|
+
"is-selected": n.value === N,
|
|
5274
|
+
onClick: (Z) => n.value = N,
|
|
5271
5275
|
onNext: C,
|
|
5272
5276
|
onPrevious: f,
|
|
5273
5277
|
onFirst: m,
|
|
@@ -5275,14 +5279,14 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5275
5279
|
}, null, 8, ["tab-id", "panel-id", "title", "icon", "compact", "is-selected", "onClick"]);
|
|
5276
5280
|
}), 128))
|
|
5277
5281
|
], 10, ss),
|
|
5278
|
-
(u(!0), I($, null, ie(l(a), (L,
|
|
5279
|
-
key:
|
|
5280
|
-
"panel-id": `${A(
|
|
5281
|
-
"tab-id": A(
|
|
5282
|
-
"is-visible": n.value ===
|
|
5282
|
+
(u(!0), I($, null, ie(l(a), (L, N) => (u(), k(ns, {
|
|
5283
|
+
key: N,
|
|
5284
|
+
"panel-id": `${A(N)}-panel`,
|
|
5285
|
+
"tab-id": A(N),
|
|
5286
|
+
"is-visible": n.value === N
|
|
5283
5287
|
}, {
|
|
5284
5288
|
default: G(() => [
|
|
5285
|
-
n.value ===
|
|
5289
|
+
n.value === N ? (u(), k(Me(L.children.default), { key: 0 })) : D("", !0)
|
|
5286
5290
|
]),
|
|
5287
5291
|
_: 2
|
|
5288
5292
|
}, 1032, ["panel-id", "tab-id", "is-visible"]))), 128))
|
|
@@ -5310,22 +5314,22 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5310
5314
|
},
|
|
5311
5315
|
emits: ["update:modelValue"],
|
|
5312
5316
|
setup(e) {
|
|
5313
|
-
const t =
|
|
5317
|
+
const t = b(() => e.id ?? `toggle-${crypto.randomUUID()}`), a = b(() => `${t.value}-label`);
|
|
5314
5318
|
return (n, i) => (u(), I($, null, [
|
|
5315
|
-
|
|
5319
|
+
g("label", {
|
|
5316
5320
|
id: l(a),
|
|
5317
5321
|
for: l(t),
|
|
5318
5322
|
class: j(["av-toggle", {
|
|
5319
5323
|
"av-toggle--disabled": e.disabled
|
|
5320
5324
|
}])
|
|
5321
5325
|
}, [
|
|
5322
|
-
|
|
5326
|
+
g("div", {
|
|
5323
5327
|
class: j(["toggle", {
|
|
5324
5328
|
"toggle--disabled": e.disabled
|
|
5325
5329
|
}])
|
|
5326
5330
|
}, [
|
|
5327
5331
|
(u(), I("svg", fs, [
|
|
5328
|
-
|
|
5332
|
+
g("image", {
|
|
5329
5333
|
href: e.modelValue ? l(As) : l(us),
|
|
5330
5334
|
width: "34",
|
|
5331
5335
|
height: "14"
|
|
@@ -5333,9 +5337,9 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5333
5337
|
])),
|
|
5334
5338
|
e.modelValue ? (u(), I("span", ms, B(e.activeText), 1)) : (u(), I("span", Is, B(e.inactiveText), 1))
|
|
5335
5339
|
], 2),
|
|
5336
|
-
|
|
5340
|
+
g("span", gs, B(e.description), 1)
|
|
5337
5341
|
], 10, ds),
|
|
5338
|
-
|
|
5342
|
+
g("input", {
|
|
5339
5343
|
id: l(t),
|
|
5340
5344
|
style: { display: "none" },
|
|
5341
5345
|
disabled: e.disabled,
|
|
@@ -5405,7 +5409,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5405
5409
|
role: "navigation",
|
|
5406
5410
|
"aria-label": e.navAriaLabel
|
|
5407
5411
|
}, [
|
|
5408
|
-
|
|
5412
|
+
g("ul", Es, [
|
|
5409
5413
|
(u(!0), I($, null, ie(e.links, (o, r) => (u(), I("li", { key: r }, [
|
|
5410
5414
|
W(re, {
|
|
5411
5415
|
icon: o.icon,
|
|
@@ -5429,24 +5433,24 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5429
5433
|
};
|
|
5430
5434
|
function Ds(e, t) {
|
|
5431
5435
|
return u(), I("svg", Ts, [...t[0] || (t[0] = [
|
|
5432
|
-
|
|
5436
|
+
g("rect", {
|
|
5433
5437
|
width: "213.732",
|
|
5434
5438
|
height: "96.9",
|
|
5435
5439
|
fill: "url(#pattern0_40000620_15397)"
|
|
5436
5440
|
}, null, -1),
|
|
5437
|
-
|
|
5438
|
-
|
|
5441
|
+
g("defs", null, [
|
|
5442
|
+
g("pattern", {
|
|
5439
5443
|
id: "pattern0_40000620_15397",
|
|
5440
5444
|
patternContentUnits: "objectBoundingBox",
|
|
5441
5445
|
width: "1",
|
|
5442
5446
|
height: "1"
|
|
5443
5447
|
}, [
|
|
5444
|
-
|
|
5448
|
+
g("use", {
|
|
5445
5449
|
"xlink:href": "#image0_40000620_15397",
|
|
5446
5450
|
transform: "matrix(0.00087108 0 0 0.00192134 0 -0.0139577)"
|
|
5447
5451
|
})
|
|
5448
5452
|
]),
|
|
5449
|
-
|
|
5453
|
+
g("image", {
|
|
5450
5454
|
id: "image0_40000620_15397",
|
|
5451
5455
|
width: "1148",
|
|
5452
5456
|
height: "535",
|
|
@@ -5499,11 +5503,11 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5499
5503
|
setup(e, { emit: t }) {
|
|
5500
5504
|
const a = t, n = fe(), { isBelowLg: i } = nt(), o = Ft(() => e.languageSelector), r = U(!1), s = U(!1), c = U(!1);
|
|
5501
5505
|
function A() {
|
|
5502
|
-
var
|
|
5503
|
-
c.value = !1, r.value = !1, s.value = !1, (
|
|
5506
|
+
var M;
|
|
5507
|
+
c.value = !1, r.value = !1, s.value = !1, (M = document.getElementById("button-menu")) == null || M.focus();
|
|
5504
5508
|
}
|
|
5505
|
-
function d(
|
|
5506
|
-
|
|
5509
|
+
function d(M) {
|
|
5510
|
+
M.key === "Escape" && A();
|
|
5507
5511
|
}
|
|
5508
5512
|
de(() => {
|
|
5509
5513
|
document.addEventListener("keydown", d);
|
|
@@ -5512,24 +5516,24 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5512
5516
|
});
|
|
5513
5517
|
function f() {
|
|
5514
5518
|
c.value = !0, r.value = !0, s.value = !1, setTimeout(() => {
|
|
5515
|
-
var
|
|
5516
|
-
(
|
|
5519
|
+
var M;
|
|
5520
|
+
(M = document.getElementById("close-button")) == null || M.focus();
|
|
5517
5521
|
});
|
|
5518
5522
|
}
|
|
5519
5523
|
function C() {
|
|
5520
5524
|
c.value = !0, r.value = !1, s.value = !0;
|
|
5521
5525
|
}
|
|
5522
|
-
const m = A, v =
|
|
5523
|
-
return bt(Na, () => A), (
|
|
5526
|
+
const m = A, v = b(() => [e.homeLabel, e.serviceTitle].filter((M) => M).join(" - ")), y = b(() => !!n.mainnav);
|
|
5527
|
+
return bt(Na, () => A), (M, T) => {
|
|
5524
5528
|
var Z, F, te;
|
|
5525
|
-
const L = Mt("RouterLink"),
|
|
5529
|
+
const L = Mt("RouterLink"), N = re, O = Ea, V = On;
|
|
5526
5530
|
return u(), I("header", ws, [
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5531
|
+
g("div", Os, [
|
|
5532
|
+
g("div", Ss, [
|
|
5533
|
+
g("div", Qs, [
|
|
5534
|
+
g("div", xs, [
|
|
5535
|
+
g("div", ks, [
|
|
5536
|
+
g("div", ps, [
|
|
5533
5537
|
W(L, {
|
|
5534
5538
|
to: e.homeTo,
|
|
5535
5539
|
title: l(v)
|
|
@@ -5540,8 +5544,8 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5540
5544
|
_: 1
|
|
5541
5545
|
}, 8, ["to", "title"])
|
|
5542
5546
|
]),
|
|
5543
|
-
e.showSearch || l(
|
|
5544
|
-
e.showSearch ? (u(), k(
|
|
5547
|
+
e.showSearch || l(y) || (Z = e.quickLinks) != null && Z.length ? (u(), I("div", js, [
|
|
5548
|
+
e.showSearch ? (u(), k(N, {
|
|
5545
5549
|
key: 0,
|
|
5546
5550
|
class: "search-button",
|
|
5547
5551
|
label: e.showSearchLabel,
|
|
@@ -5550,9 +5554,9 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5550
5554
|
title: e.showSearchLabel,
|
|
5551
5555
|
icon: l(R).MAGNIFY,
|
|
5552
5556
|
"icon-only": "",
|
|
5553
|
-
onClick:
|
|
5557
|
+
onClick: T[0] || (T[0] = ue((x) => C(), ["prevent", "stop"]))
|
|
5554
5558
|
}, null, 8, ["label", "aria-label", "title", "icon"])) : D("", !0),
|
|
5555
|
-
l(
|
|
5559
|
+
l(y) || (F = e.quickLinks) != null && F.length ? (u(), k(N, {
|
|
5556
5560
|
key: 1,
|
|
5557
5561
|
id: "button-menu",
|
|
5558
5562
|
variant: "OUTLINED",
|
|
@@ -5564,26 +5568,26 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5564
5568
|
title: e.menuLabel,
|
|
5565
5569
|
"data-testid": "open-menu-btn",
|
|
5566
5570
|
"icon-only": "",
|
|
5567
|
-
onClick:
|
|
5571
|
+
onClick: T[1] || (T[1] = ue((x) => f(), ["prevent", "stop"]))
|
|
5568
5572
|
}, null, 8, ["icon", "label", "aria-label", "title"])) : D("", !0)
|
|
5569
5573
|
])) : D("", !0)
|
|
5570
5574
|
]),
|
|
5571
5575
|
e.serviceTitle ? (u(), I("div", zs, [
|
|
5572
|
-
|
|
5573
|
-
P(
|
|
5576
|
+
g("span", Bs, B(e.serviceTitle), 1),
|
|
5577
|
+
P(M.$slots, "serviceDescription", {}, void 0, !0)
|
|
5574
5578
|
])) : D("", !0)
|
|
5575
5579
|
]),
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
P(
|
|
5580
|
+
g("div", Ps, [
|
|
5581
|
+
g("div", Ws, [
|
|
5582
|
+
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5579
5583
|
!l(r) && ((te = e.quickLinks) != null && te.length) ? (u(), k(Xt, {
|
|
5580
5584
|
key: 0,
|
|
5581
5585
|
links: e.quickLinks,
|
|
5582
5586
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
5583
5587
|
}, null, 8, ["links", "nav-aria-label"])) : D("", !0),
|
|
5584
|
-
P(
|
|
5588
|
+
P(M.$slots, "after-quick-links", {}, void 0, !0),
|
|
5585
5589
|
l(o) ? (u(), k(kt, ee({ key: 1 }, l(o), {
|
|
5586
|
-
onSelect:
|
|
5590
|
+
onSelect: T[2] || (T[2] = (x) => a("languageSelect", x))
|
|
5587
5591
|
}), null, 16)) : D("", !0)
|
|
5588
5592
|
]),
|
|
5589
5593
|
e.showSearch ? (u(), I("div", Us, [
|
|
@@ -5593,21 +5597,21 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5593
5597
|
"model-value": e.modelValue,
|
|
5594
5598
|
placeholder: e.placeholder,
|
|
5595
5599
|
style: { "justify-content": "flex-end" },
|
|
5596
|
-
"onUpdate:modelValue":
|
|
5597
|
-
onSearch:
|
|
5600
|
+
"onUpdate:modelValue": T[3] || (T[3] = (x) => a("update:modelValue", x)),
|
|
5601
|
+
onSearch: T[4] || (T[4] = (x) => a("search", x))
|
|
5598
5602
|
}, null, 8, ["id", "label", "model-value", "placeholder"])
|
|
5599
5603
|
])) : D("", !0)
|
|
5600
5604
|
])
|
|
5601
5605
|
]),
|
|
5602
|
-
P(
|
|
5606
|
+
P(M.$slots, "default", {}, void 0, !0)
|
|
5603
5607
|
])
|
|
5604
5608
|
]),
|
|
5605
|
-
|
|
5606
|
-
l(
|
|
5607
|
-
P(
|
|
5609
|
+
g("div", Vs, [
|
|
5610
|
+
l(y) && !l(c) ? (u(), I("div", Hs, [
|
|
5611
|
+
P(M.$slots, "mainnav", { hidemodal: A }, void 0, !0)
|
|
5608
5612
|
])) : D("", !0)
|
|
5609
5613
|
]),
|
|
5610
|
-
l(i) && (e.showSearch || l(
|
|
5614
|
+
l(i) && (e.showSearch || l(y) || e.quickLinks && e.quickLinks.length || l(o)) ? (u(), k(V, {
|
|
5611
5615
|
key: 0,
|
|
5612
5616
|
id: "header-navigation",
|
|
5613
5617
|
show: l(c),
|
|
@@ -5621,19 +5625,19 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5621
5625
|
onClose: A
|
|
5622
5626
|
}, {
|
|
5623
5627
|
default: G(() => [
|
|
5624
|
-
|
|
5628
|
+
g("div", Rs, [
|
|
5625
5629
|
W(O, {
|
|
5626
5630
|
"cancel-label": e.closeMenuModalLabel,
|
|
5627
5631
|
"cancel-icon": l(R).CLOSE_CIRCLE_OUTLINE,
|
|
5628
5632
|
onCancel: A
|
|
5629
5633
|
}, null, 8, ["cancel-label", "cancel-icon"])
|
|
5630
5634
|
]),
|
|
5631
|
-
|
|
5632
|
-
|
|
5635
|
+
g("div", Zs, [
|
|
5636
|
+
g("div", Xs, [
|
|
5633
5637
|
l(o) ? (u(), k(kt, ee({ key: 0 }, l(o), {
|
|
5634
|
-
onSelect:
|
|
5638
|
+
onSelect: T[5] || (T[5] = (x) => l(o).currentLanguage = x.codeIso)
|
|
5635
5639
|
}), null, 16)) : D("", !0),
|
|
5636
|
-
P(
|
|
5640
|
+
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5637
5641
|
l(r) ? (u(), k(Xt, {
|
|
5638
5642
|
key: 1,
|
|
5639
5643
|
role: "navigation",
|
|
@@ -5641,9 +5645,9 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5641
5645
|
"nav-aria-label": e.quickLinksAriaLabel,
|
|
5642
5646
|
onLinkClick: l(m)
|
|
5643
5647
|
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) : D("", !0),
|
|
5644
|
-
P(
|
|
5648
|
+
P(M.$slots, "after-quick-links", {}, void 0, !0)
|
|
5645
5649
|
]),
|
|
5646
|
-
l(c) ? P(
|
|
5650
|
+
l(c) ? P(M.$slots, "mainnav", {
|
|
5647
5651
|
key: 0,
|
|
5648
5652
|
hidemodal: A
|
|
5649
5653
|
}, void 0, !0) : D("", !0),
|
|
@@ -5652,8 +5656,8 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5652
5656
|
"searchbar-id": e.searchbarId,
|
|
5653
5657
|
"model-value": e.modelValue,
|
|
5654
5658
|
placeholder: e.placeholder,
|
|
5655
|
-
"onUpdate:modelValue":
|
|
5656
|
-
onSearch:
|
|
5659
|
+
"onUpdate:modelValue": T[6] || (T[6] = (x) => a("update:modelValue", x)),
|
|
5660
|
+
onSearch: T[7] || (T[7] = (x) => a("search", x))
|
|
5657
5661
|
}, null, 8, ["searchbar-id", "model-value", "placeholder"])
|
|
5658
5662
|
])) : D("", !0)
|
|
5659
5663
|
])
|
|
@@ -5669,12 +5673,12 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5669
5673
|
};
|
|
5670
5674
|
function Ks(e, t) {
|
|
5671
5675
|
return u(), I("svg", Fs, [...t[0] || (t[0] = [
|
|
5672
|
-
|
|
5676
|
+
g("path", {
|
|
5673
5677
|
d: "M33.63 110.595q-.883.002-1.403.293a1.95 1.95 0 0 0-.781.783 3.1 3.1 0 0 0-.34 1.087q-.08.597-.08 1.21.001.499.091 1.086.09.589.374 1.098.283.506.792.85.51.339 1.347.339t1.347-.34q.51-.341.78-.85.271-.508.363-1.096.09-.588.09-1.087 0-.498-.09-1.087a3.4 3.4 0 0 0-.363-1.097 2.3 2.3 0 0 0-.78-.85q-.51-.339-1.347-.339m-5.296 3.394q0-1.425.294-2.547c.196-.744.51-1.38.94-1.898a4.2 4.2 0 0 1 1.64-1.2q.997-.422 2.422-.42 1.493.046 2.67.678.498.274.985.702.487.43.86 1.076.373.645.61 1.528.24.882.24 2.06 0 1.175-.216 2.06a6.2 6.2 0 0 1-.565 1.517 4.37 4.37 0 0 1-1.71 1.74q-1.086.613-2.49.634a4.6 4.6 0 0 1-1.357-.292 4.3 4.3 0 0 1-1.155-.724q-.588-.502-.973-1.45l.498.657v5.386h-2.693zM45.625 110.595q-.837 0-1.347.339-.51.338-.78.85a3.4 3.4 0 0 0-.363 1.097 7 7 0 0 0-.09 1.087q0 .499.09 1.086.09.589.362 1.098.273.506.781.85.51.339 1.347.339t1.347-.34q.51-.341.78-.85.271-.508.363-1.096.09-.588.09-1.087 0-.498-.09-1.087a3.4 3.4 0 0 0-.363-1.097 2.3 2.3 0 0 0-.78-.85q-.51-.339-1.347-.339m-5.364 3.373q0-1.178.227-2.06.225-.883.6-1.528.372-.646.859-1.076.487-.427.984-.702c.785-.42 1.683-.649 2.694-.677.996.028 1.885.257 2.67.677q.499.274.985.702.488.43.86 1.076.374.645.611 1.528c.159.589.239 1.273.239 2.06q0 1.175-.239 2.06a6.2 6.2 0 0 1-.61 1.517q-.375.632-.86 1.051a5.7 5.7 0 0 1-.985.688q-1.178.615-2.671.635-1.516-.02-2.694-.635-.497-.27-.984-.688a4.2 4.2 0 0 1-.86-1.05 5.9 5.9 0 0 1-.6-1.518q-.225-.884-.226-2.06M52.347 111.57q0-1.18.497-1.846c.333-.444.695-.783 1.087-1.009a3.9 3.9 0 0 1 1.584-.497h3.17v2.737h-2.128q-.453 0-.736.159-.283.158-.442.342-.18.222-.249.498v7.74h-2.783zM62.78 110.913v5.045q.07.275.25.497.158.184.442.342.282.159.735.159h1.72v2.738h-2.761a3.9 3.9 0 0 1-1.584-.498q-.59-.337-1.076-1.009-.487-.665-.486-1.845v-11.2h2.76v3.076h2.604v2.695zM72.558 110.595q-.838 0-1.347.339-.51.338-.78.85a3.4 3.4 0 0 0-.363 1.097 7 7 0 0 0-.09 1.087q0 .499.09 1.086.09.589.362 1.098.271.506.781.85.51.339 1.347.339t1.347-.34q.51-.341.792-.85t.373-1.096.09-1.087q0-.613-.079-1.21a3.2 3.2 0 0 0-.339-1.087 1.96 1.96 0 0 0-.781-.783q-.52-.292-1.403-.293m5.296 9.099h-2.693v-1.584l.498-.657q-.385.948-.974 1.45a4.3 4.3 0 0 1-1.154.723q-.656.25-1.358.293-1.404-.02-2.49-.635a4.8 4.8 0 0 1-.917-.688 4.4 4.4 0 0 1-.791-1.05 6.2 6.2 0 0 1-.566-1.518q-.215-.885-.215-2.06 0-1.179.226-2.06.226-.883.6-1.528.374-.646.86-1.076.487-.427.984-.702c.784-.42 1.683-.649 2.694-.677.95 0 1.758.137 2.421.42a4.2 4.2 0 0 1 1.642 1.2q.645.779.939 1.897.293 1.123.294 2.547zM82.086 108.218v11.476h-2.761v-11.476zm-2.761-2.558q0-.497.01-.744c.008-.166.053-.29.137-.364q.123-.112.408-.123a22 22 0 0 1 1.651 0q.284.012.408.123c.082.074.128.198.136.364q.01.247.01.744 0 .498-.01.748-.012.248-.136.363-.125.112-.408.124-.282.01-.826.01-.543 0-.825-.01-.285-.012-.408-.124-.126-.115-.136-.363-.01-.25-.011-.748M86.409 104.415v15.279h-2.761v-15.28z",
|
|
5674
5678
|
style: { fill: "#ed184e", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
5675
5679
|
transform: "translate(20.294 -79.068)"
|
|
5676
5680
|
}, null, -1),
|
|
5677
|
-
|
|
5681
|
+
g("path", {
|
|
5678
5682
|
d: "M-7.05 88.543v-2.07c-.042-2.414-.677-3.176-2.877-3.176-2.75 0-2.623 2.117-2.623 4.273v.973zm-11.001-.635c-.254-5.627 2.623-8.84 8.04-8.84 7.658 0 8.462 3.975 8.462 10.491v3.218H-12.55v3.467c.042 3.133 1.226 3.726 2.876 3.726 2.032 0 2.624-1.482 2.54-4.488h5.5c.212 5.334-1.989 8.718-7.616 8.718-6.347 0-8.928-3.003-8.801-10.026zM6.498 95.606v1.68c0 1.364.443 2.567 2.22 2.567 1.3 0 1.87-1.17 1.87-2.377 0-1.997-1.649-2.76-3.108-3.648-1.712-.98-3.17-1.902-4.217-3.108-1.015-1.203-1.618-2.664-1.618-4.756 0-4.473 2.696-6.755 7.01-6.755 4.851 0 7.324 3.235 7.07 7.708H10.59c-.064-1.397 0-3.299-1.84-3.426-1.142-.095-1.808.54-1.934 1.584-.159 1.43.57 2.16 1.68 2.918 2.094 1.333 3.902 2.159 5.201 3.362 1.3 1.206 2.062 2.79 2.062 5.676 0 4.569-2.537 7.105-7.167 7.105-5.107 0-7.263-2.854-7.263-5.994v-2.536zM18.202 79.78h5.58v17.95c0 1.143.35 2.123 1.936 2.123 1.459 0 1.902-1.266 1.902-2.282V79.78h5.582v17.218c0 4.03-1.808 7.137-7.516 7.137-4.725 0-7.484-2.25-7.484-7.137zM41.959 90.025c1.046-.032 2.251.095 3.139-.603.57-.635.697-1.588.697-2.41 0-.92-.095-2.318-1.046-2.759-.539-.19-1.3-.19-2.188-.19h-.602Zm-5.582 13.54V79.78h6.628c2.156 0 5.265.19 6.818 1.965 1.3 1.46 1.554 3.235 1.554 5.172 0 2.568-.602 5.454-3.14 6.625-1.934.953-4.185.667-6.278.762v9.26zM-.829 110.698c6.226-2.653 13.474-2.755 18.015-.755 4.673 1.965 5.629 4.963 5.558 4.861.038-.032-2.698-.748-6.348-.176-3.67.472-8.091 2.317-13.293 4.483-1.086.448-3.113 1.306-4.954 1.61-1.847.398-3.718.387-5.407.21a17.95 17.95 0 0 1-8.026-2.934c-3.85-2.632-4.992-5.51-5.01-5.475-.015-.018 2.773.769 6.675 1.02 1.938.126 4.122.056 6.191-.396 1.034-.23 2.059-.476 3.046-.903 1.04-.37 1.78-.8 3.553-1.545",
|
|
5679
5683
|
style: { fill: "#3871c1", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
5680
5684
|
transform: "translate(20.294 -79.068)"
|
|
@@ -5692,7 +5696,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5692
5696
|
se((a) => ({
|
|
5693
5697
|
v1dadd14a: a.color
|
|
5694
5698
|
}));
|
|
5695
|
-
const t =
|
|
5699
|
+
const t = b(() => ({
|
|
5696
5700
|
...e.width && { width: e.width },
|
|
5697
5701
|
...e.height && { height: e.height }
|
|
5698
5702
|
}));
|
|
@@ -5714,7 +5718,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5714
5718
|
collapsing: a,
|
|
5715
5719
|
cssExpanded: n,
|
|
5716
5720
|
doExpand: i
|
|
5717
|
-
} = Ze(), { isAboveMd: o } = nt(), r =
|
|
5721
|
+
} = Ze(), { isAboveMd: o } = nt(), r = b(() => e.id ?? `breadcrumb-${crypto.randomUUID()}`), s = b(() => ({
|
|
5718
5722
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_RIGHT})`
|
|
5719
5723
|
})), c = U(o.value);
|
|
5720
5724
|
return oe(c, (A, d) => {
|
|
@@ -5740,7 +5744,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5740
5744
|
small: "",
|
|
5741
5745
|
onClick: d[0] || (d[0] = (m) => c.value = !l(c))
|
|
5742
5746
|
}, null, 8, ["label", "aria-expanded", "aria-controls"])),
|
|
5743
|
-
|
|
5747
|
+
g("div", {
|
|
5744
5748
|
id: l(r),
|
|
5745
5749
|
ref_key: "collapse",
|
|
5746
5750
|
ref: t,
|
|
@@ -5749,7 +5753,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5749
5753
|
"av-collapsing": l(a)
|
|
5750
5754
|
}])
|
|
5751
5755
|
}, [
|
|
5752
|
-
|
|
5756
|
+
g("ol", tc, [
|
|
5753
5757
|
(u(!0), I($, null, ie(e.links, (m, v) => (u(), I("li", {
|
|
5754
5758
|
key: v,
|
|
5755
5759
|
class: "av-breadcrumb__item",
|
|
@@ -5784,7 +5788,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5784
5788
|
active: { type: Boolean }
|
|
5785
5789
|
},
|
|
5786
5790
|
setup(e) {
|
|
5787
|
-
const t =
|
|
5791
|
+
const t = b(() => e.id ?? `nav-item-${crypto.randomUUID()}`);
|
|
5788
5792
|
return (a, n) => (u(), I("li", {
|
|
5789
5793
|
id: l(t),
|
|
5790
5794
|
class: j(["av-nav__item", { "av-nav__item--active": e.active }]),
|
|
@@ -5800,7 +5804,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5800
5804
|
active: { type: Boolean }
|
|
5801
5805
|
},
|
|
5802
5806
|
setup(e) {
|
|
5803
|
-
const t =
|
|
5807
|
+
const t = b(() => e.id ?? `nav-menu-item-${crypto.randomUUID()}`);
|
|
5804
5808
|
return (a, n) => (u(), I("li", {
|
|
5805
5809
|
id: l(t),
|
|
5806
5810
|
class: "av-menu__item",
|
|
@@ -5822,7 +5826,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5822
5826
|
},
|
|
5823
5827
|
emits: ["toggleId"],
|
|
5824
5828
|
setup(e) {
|
|
5825
|
-
const { isBelowLg: t } = nt(), a =
|
|
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, o = (i == null ? void 0 : i()) ?? (() => {
|
|
5826
5830
|
});
|
|
5827
5831
|
return (r, s) => {
|
|
5828
5832
|
const c = ne, A = Mt("RouterLink");
|
|
@@ -5838,7 +5842,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5838
5842
|
r.$emit("toggleId", l(a)), e.onClick(d);
|
|
5839
5843
|
})
|
|
5840
5844
|
}, [
|
|
5841
|
-
|
|
5845
|
+
g("span", uc, B(e.text), 1)
|
|
5842
5846
|
], 10, Ac)) : (u(), k(A, {
|
|
5843
5847
|
key: 1,
|
|
5844
5848
|
class: "av-nav__link",
|
|
@@ -5855,7 +5859,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5855
5859
|
name: e.icon,
|
|
5856
5860
|
size: 1.5
|
|
5857
5861
|
}, null, 8, ["name"])) : D("", !0),
|
|
5858
|
-
|
|
5862
|
+
g("span", dc, B(e.text), 1)
|
|
5859
5863
|
]),
|
|
5860
5864
|
_: 1
|
|
5861
5865
|
}, 8, ["to"]));
|
|
@@ -5878,7 +5882,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5878
5882
|
cssExpanded: n,
|
|
5879
5883
|
doExpand: i,
|
|
5880
5884
|
onTransitionEnd: o
|
|
5881
|
-
} = Ze(), r =
|
|
5885
|
+
} = Ze(), r = b(() => e.id ?? `menu-${crypto.randomUUID()}`), s = b(() => r.value === e.expandedId), c = b(() => ({
|
|
5882
5886
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5883
5887
|
}));
|
|
5884
5888
|
return oe(s, (A, d) => {
|
|
@@ -5886,7 +5890,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5886
5890
|
}), de(() => {
|
|
5887
5891
|
s.value && i(!0);
|
|
5888
5892
|
}), (A, d) => (u(), I($, null, [
|
|
5889
|
-
|
|
5893
|
+
g("button", {
|
|
5890
5894
|
class: "av-nav__btn",
|
|
5891
5895
|
"aria-expanded": l(s),
|
|
5892
5896
|
"aria-current": e.active || void 0,
|
|
@@ -5894,9 +5898,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5894
5898
|
style: ce(l(c)),
|
|
5895
5899
|
onClick: d[0] || (d[0] = (f) => A.$emit("toggleId", l(r)))
|
|
5896
5900
|
}, [
|
|
5897
|
-
|
|
5901
|
+
g("span", null, B(e.title), 1)
|
|
5898
5902
|
], 12, vc),
|
|
5899
|
-
|
|
5903
|
+
g("div", {
|
|
5900
5904
|
id: l(r),
|
|
5901
5905
|
ref_key: "collapse",
|
|
5902
5906
|
ref: t,
|
|
@@ -5904,7 +5908,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5904
5908
|
"data-testid": "navigation-menu",
|
|
5905
5909
|
onTransitionend: d[2] || (d[2] = (f) => l(o)(l(s)))
|
|
5906
5910
|
}, [
|
|
5907
|
-
|
|
5911
|
+
g("ul", Ic, [
|
|
5908
5912
|
(u(!0), I($, null, ie(e.links, (f, C) => (u(), k(cc, { key: C }, {
|
|
5909
5913
|
default: G(() => [
|
|
5910
5914
|
W(Ta, ee({ ref_for: !0 }, f, {
|
|
@@ -5928,7 +5932,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5928
5932
|
navItems: {}
|
|
5929
5933
|
},
|
|
5930
5934
|
setup(e) {
|
|
5931
|
-
const t =
|
|
5935
|
+
const t = b(() => e.id ?? `nav-${crypto.randomUUID()}`), a = U(void 0);
|
|
5932
5936
|
function n(s) {
|
|
5933
5937
|
if (s === a.value) {
|
|
5934
5938
|
a.value = void 0;
|
|
@@ -5956,13 +5960,13 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5956
5960
|
}), ve(() => {
|
|
5957
5961
|
document.removeEventListener("click", o), document.removeEventListener("keydown", r);
|
|
5958
5962
|
}), (s, c) => (u(), I("div", hc, [
|
|
5959
|
-
|
|
5963
|
+
g("nav", {
|
|
5960
5964
|
id: l(t),
|
|
5961
5965
|
class: "av-nav",
|
|
5962
5966
|
role: "navigation",
|
|
5963
5967
|
"aria-label": e.label
|
|
5964
5968
|
}, [
|
|
5965
|
-
|
|
5969
|
+
g("ul", Cc, [
|
|
5966
5970
|
(u(!0), I($, null, ie(e.navItems, (A, d) => (u(), k(oc, { key: d }, {
|
|
5967
5971
|
default: G(() => [
|
|
5968
5972
|
A.to && A.text ? (u(), k(Ta, ee({
|
|
@@ -6007,41 +6011,41 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6007
6011
|
},
|
|
6008
6012
|
emits: ["update:current-page"],
|
|
6009
6013
|
setup(e, { emit: t }) {
|
|
6010
|
-
const a = t, n =
|
|
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)), o = b(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, i.value + 1) : e.pages), r = (m) => a("update:current-page", m), s = (m) => r(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;
|
|
6011
6015
|
return (m, v) => {
|
|
6012
|
-
var
|
|
6016
|
+
var y, M, T, L;
|
|
6013
6017
|
return u(), I("nav", {
|
|
6014
6018
|
role: "navigation",
|
|
6015
6019
|
class: "av-pagination av-nav",
|
|
6016
6020
|
"aria-label": e.ariaLabel
|
|
6017
6021
|
}, [
|
|
6018
|
-
|
|
6022
|
+
g("ul", Ec, [
|
|
6019
6023
|
e.compact && e.compactCurrentPageLabel ? (u(), I("li", Nc, [
|
|
6020
|
-
|
|
6024
|
+
g("span", Tc, B(e.compactCurrentPageLabel), 1)
|
|
6021
6025
|
])) : D("", !0),
|
|
6022
|
-
|
|
6026
|
+
g("li", null, [
|
|
6023
6027
|
e.compact ? D("", !0) : (u(), I("a", {
|
|
6024
6028
|
key: 0,
|
|
6025
|
-
href: (
|
|
6029
|
+
href: (y = e.pages[0]) == null ? void 0 : y.href,
|
|
6026
6030
|
class: "av-pagination__link",
|
|
6027
6031
|
title: e.firstPageLabel,
|
|
6028
6032
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6029
|
-
onClick: v[0] || (v[0] = ue((
|
|
6033
|
+
onClick: v[0] || (v[0] = ue((N) => c(), ["prevent"]))
|
|
6030
6034
|
}, [
|
|
6031
6035
|
W(ne, {
|
|
6032
6036
|
name: l(R).PAGE_FIRST,
|
|
6033
6037
|
size: 1.5
|
|
6034
6038
|
}, null, 8, ["name"]),
|
|
6035
|
-
|
|
6039
|
+
g("span", Lc, B(e.firstPageLabel), 1)
|
|
6036
6040
|
], 8, Dc))
|
|
6037
6041
|
]),
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
href: (
|
|
6042
|
+
g("li", null, [
|
|
6043
|
+
g("a", {
|
|
6044
|
+
href: (M = e.pages[Math.max(e.currentPage - 1, 0)]) == null ? void 0 : M.href,
|
|
6041
6045
|
class: "av-pagination__link",
|
|
6042
6046
|
title: e.prevPageLabel,
|
|
6043
6047
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6044
|
-
onClick: v[1] || (v[1] = ue((
|
|
6048
|
+
onClick: v[1] || (v[1] = ue((N) => A(), ["prevent"]))
|
|
6045
6049
|
}, [
|
|
6046
6050
|
W(ne, {
|
|
6047
6051
|
name: l(R).NAVIGATE_BEFORE,
|
|
@@ -6050,27 +6054,27 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6050
6054
|
e.compact ? D("", !0) : (u(), I("span", Oc, B(e.prevPageLabel), 1))
|
|
6051
6055
|
], 8, wc)
|
|
6052
6056
|
]),
|
|
6053
|
-
e.compact ? D("", !0) : (u(!0), I($, { key: 1 }, ie(l(o), (
|
|
6054
|
-
|
|
6055
|
-
href:
|
|
6057
|
+
e.compact ? D("", !0) : (u(!0), I($, { key: 1 }, ie(l(o), (N, O) => (u(), I("li", { key: O }, [
|
|
6058
|
+
g("a", {
|
|
6059
|
+
href: N == null ? void 0 : N.href,
|
|
6056
6060
|
class: "av-pagination__link",
|
|
6057
|
-
title:
|
|
6058
|
-
"aria-current": C(
|
|
6059
|
-
onClick: ue((V) => s(e.pages.indexOf(
|
|
6061
|
+
title: N.title,
|
|
6062
|
+
"aria-current": C(N) ? "page" : void 0,
|
|
6063
|
+
onClick: ue((V) => s(e.pages.indexOf(N)), ["prevent"])
|
|
6060
6064
|
}, [
|
|
6061
|
-
l(o).indexOf(
|
|
6062
|
-
De(" " + B(
|
|
6063
|
-
l(o).indexOf(
|
|
6065
|
+
l(o).indexOf(N) === 0 && l(n) > 0 ? (u(), I("span", Qc, "...")) : D("", !0),
|
|
6066
|
+
De(" " + B(N.label) + " ", 1),
|
|
6067
|
+
l(o).indexOf(N) === l(o).length - 1 && l(i) < e.pages.length - 1 ? (u(), I("span", xc, "...")) : D("", !0)
|
|
6064
6068
|
], 8, Sc)
|
|
6065
6069
|
]))), 128)),
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
href: (
|
|
6070
|
+
g("li", null, [
|
|
6071
|
+
g("a", {
|
|
6072
|
+
href: (T = e.pages[Math.min(e.currentPage + 1, e.pages.length - 1)]) == null ? void 0 : T.href,
|
|
6069
6073
|
class: "av-pagination__link",
|
|
6070
6074
|
title: e.nextPageLabel,
|
|
6071
6075
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6072
6076
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6073
|
-
onClick: v[2] || (v[2] = ue((
|
|
6077
|
+
onClick: v[2] || (v[2] = ue((N) => d(), ["prevent"]))
|
|
6074
6078
|
}, [
|
|
6075
6079
|
e.compact ? D("", !0) : (u(), I("span", pc, B(e.nextPageLabel), 1)),
|
|
6076
6080
|
W(ne, {
|
|
@@ -6079,7 +6083,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6079
6083
|
}, null, 8, ["name"])
|
|
6080
6084
|
], 8, kc)
|
|
6081
6085
|
]),
|
|
6082
|
-
|
|
6086
|
+
g("li", null, [
|
|
6083
6087
|
e.compact ? D("", !0) : (u(), I("a", {
|
|
6084
6088
|
key: 0,
|
|
6085
6089
|
class: "av-pagination__link",
|
|
@@ -6087,9 +6091,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6087
6091
|
title: e.lastPageLabel,
|
|
6088
6092
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6089
6093
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6090
|
-
onClick: v[3] || (v[3] = ue((
|
|
6094
|
+
onClick: v[3] || (v[3] = ue((N) => f(), ["prevent"]))
|
|
6091
6095
|
}, [
|
|
6092
|
-
|
|
6096
|
+
g("span", zc, B(e.lastPageLabel), 1),
|
|
6093
6097
|
W(ne, {
|
|
6094
6098
|
name: l(R).PAGE_LAST,
|
|
6095
6099
|
size: 1.5
|
|
@@ -6133,12 +6137,12 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6133
6137
|
v4d5b7c17: l(c),
|
|
6134
6138
|
v4a813d87: d.padding
|
|
6135
6139
|
}));
|
|
6136
|
-
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: i } = qt(t), o =
|
|
6140
|
+
const t = e, a = Le(e, "collapsed"), { width: n, collapsedWidth: i } = qt(t), o = b(() => t.id ?? crypto.randomUUID()), r = b(() => `${o.value} navigation`), s = b({
|
|
6137
6141
|
get: () => t.collapsible ? a.value : !1,
|
|
6138
6142
|
set: (d) => {
|
|
6139
6143
|
t.collapsible && (a.value = d);
|
|
6140
6144
|
}
|
|
6141
|
-
}), c =
|
|
6145
|
+
}), c = b(() => t.collapsible && s.value ? i.value : n.value);
|
|
6142
6146
|
function A() {
|
|
6143
6147
|
t.collapsible && (s.value = !s.value);
|
|
6144
6148
|
}
|
|
@@ -6158,7 +6162,7 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6158
6162
|
onClick: A
|
|
6159
6163
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
6160
6164
|
])) : D("", !0),
|
|
6161
|
-
|
|
6165
|
+
g("div", Uc, [
|
|
6162
6166
|
P(d.$slots, "default", {}, void 0, !0)
|
|
6163
6167
|
])
|
|
6164
6168
|
], 10, Pc));
|
|
@@ -6230,34 +6234,34 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6230
6234
|
return se((t) => ({
|
|
6231
6235
|
v2cd1b68a: t.width
|
|
6232
6236
|
})), (t, a) => (u(), I("div", Zc, [
|
|
6233
|
-
|
|
6234
|
-
|
|
6237
|
+
g("div", Xc, [
|
|
6238
|
+
g("div", {
|
|
6235
6239
|
class: "step step--active",
|
|
6236
6240
|
"aria-current": e.currentStep === 0 ? "step" : void 0
|
|
6237
6241
|
}, [...a[0] || (a[0] = [
|
|
6238
|
-
|
|
6242
|
+
g("span", { class: "b1-regular" }, "1", -1)
|
|
6239
6243
|
])], 8, Yc),
|
|
6240
6244
|
(u(!0), I($, null, ie(e.steps.slice(1, e.steps.length), (n, i) => (u(), I("div", {
|
|
6241
6245
|
key: i,
|
|
6242
6246
|
class: "steps-container"
|
|
6243
6247
|
}, [
|
|
6244
|
-
|
|
6248
|
+
g("div", {
|
|
6245
6249
|
class: j(["separator", { "separator--active": i + 1 <= e.currentStep }])
|
|
6246
6250
|
}, null, 2),
|
|
6247
|
-
|
|
6251
|
+
g("div", {
|
|
6248
6252
|
class: j(["step", { "step--active": i + 1 <= e.currentStep }]),
|
|
6249
6253
|
"aria-current": i + 1 === e.currentStep ? "step" : void 0
|
|
6250
6254
|
}, [
|
|
6251
|
-
|
|
6255
|
+
g("span", Fc, B(i + 2), 1)
|
|
6252
6256
|
], 10, qc)
|
|
6253
6257
|
]))), 128))
|
|
6254
6258
|
]),
|
|
6255
|
-
|
|
6259
|
+
g("div", Kc, [
|
|
6256
6260
|
(u(!0), I($, null, ie(e.steps, (n, i) => (u(), I("div", {
|
|
6257
6261
|
key: i,
|
|
6258
6262
|
class: "label-container"
|
|
6259
6263
|
}, [
|
|
6260
|
-
|
|
6264
|
+
g("span", {
|
|
6261
6265
|
class: j(["label", {
|
|
6262
6266
|
"b1-bold": i <= e.currentStep,
|
|
6263
6267
|
"b1-light": i > e.currentStep
|
|
@@ -6325,7 +6329,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6325
6329
|
}), gt(() => {
|
|
6326
6330
|
A();
|
|
6327
6331
|
}), (f, C) => (u(), I("div", $c, [
|
|
6328
|
-
|
|
6332
|
+
g("div", {
|
|
6329
6333
|
ref: d,
|
|
6330
6334
|
class: "av-popover-trigger-wrapper"
|
|
6331
6335
|
}, [
|
|
@@ -6387,7 +6391,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6387
6391
|
}, null, 8, ["icon", "label", "aria-label", "variant", "small", "icon-only", "onClick"])
|
|
6388
6392
|
]),
|
|
6389
6393
|
popover: G(({ close: r }) => [
|
|
6390
|
-
|
|
6394
|
+
g("div", tA, [
|
|
6391
6395
|
(u(!0), I($, null, ie(e.items, (s) => (u(), k(re, {
|
|
6392
6396
|
key: s.name,
|
|
6393
6397
|
class: "av-dropdown__menu-item",
|
|
@@ -6458,7 +6462,7 @@ const nA = {
|
|
|
6458
6462
|
},
|
|
6459
6463
|
setup(e, { slots: t, emit: a }) {
|
|
6460
6464
|
let n;
|
|
6461
|
-
const i = U(null), o =
|
|
6465
|
+
const i = U(null), o = b(() => {
|
|
6462
6466
|
const s = i.value;
|
|
6463
6467
|
return s && (s instanceof HTMLElement ? s : s.$el);
|
|
6464
6468
|
});
|
|
@@ -6523,7 +6527,7 @@ const nA = {
|
|
|
6523
6527
|
},
|
|
6524
6528
|
emits: ["close", "confirm"],
|
|
6525
6529
|
setup(e, { emit: t }) {
|
|
6526
|
-
const a = t, n = fe(), i =
|
|
6530
|
+
const a = t, n = fe(), i = b(() => e.id ?? `modal-${crypto.randomUUID()}`), o = b(() => e.isAlert ? "alertdialog" : "dialog"), r = U(null), s = U();
|
|
6527
6531
|
oe(() => e.opened, (A) => {
|
|
6528
6532
|
var d, f, C;
|
|
6529
6533
|
A ? ((d = s.value) == null || d.showModal(), (f = r.value) == null || f.focus()) : (C = s.value) == null || C.close(), c(A);
|
|
@@ -6540,7 +6544,7 @@ const nA = {
|
|
|
6540
6544
|
return u(), k(Kt, { to: "body" }, [
|
|
6541
6545
|
e.opened ? (u(), k(l(iA), { key: 0 }, {
|
|
6542
6546
|
default: G(() => [
|
|
6543
|
-
|
|
6547
|
+
g("dialog", {
|
|
6544
6548
|
id: l(i),
|
|
6545
6549
|
ref_key: "modal",
|
|
6546
6550
|
ref: s,
|
|
@@ -6551,16 +6555,16 @@ const nA = {
|
|
|
6551
6555
|
open: e.opened,
|
|
6552
6556
|
onKeydown: d[2] || (d[2] = Ae((C) => a("close"), ["esc"]))
|
|
6553
6557
|
}, [
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
+
g("div", oA, [
|
|
6559
|
+
g("div", rA, [
|
|
6560
|
+
g("div", sA, [
|
|
6561
|
+
g("div", cA, [
|
|
6558
6562
|
n.header ? (u(), I("div", AA, [
|
|
6559
6563
|
P(A.$slots, "header", {}, void 0, !0)
|
|
6560
6564
|
])) : D("", !0),
|
|
6561
6565
|
P(A.$slots, "default", {}, void 0, !0)
|
|
6562
6566
|
]),
|
|
6563
|
-
|
|
6567
|
+
g("div", uA, [
|
|
6564
6568
|
W(f, {
|
|
6565
6569
|
ref_key: "closeBtn",
|
|
6566
6570
|
ref: r,
|