@avenirs-esr/avenirs-dsav 0.1.96 → 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/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +1 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +557 -555
- 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) {
|
|
@@ -3680,49 +3681,50 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3680
3681
|
},
|
|
3681
3682
|
emits: ["update:modelValue"],
|
|
3682
3683
|
setup(e, { expose: t, emit: a }) {
|
|
3683
|
-
se((
|
|
3684
|
-
|
|
3685
|
-
|
|
3684
|
+
se((M) => ({
|
|
3685
|
+
v7b443b5f: M.width,
|
|
3686
|
+
v74ffa07a: l(y),
|
|
3687
|
+
c75a0fd0: M.textareaMinHeight
|
|
3686
3688
|
}));
|
|
3687
|
-
const n = a, i =
|
|
3688
|
-
function d(
|
|
3689
|
-
if (!(e.type !== "date" && e.type !== "datetime-local" ||
|
|
3690
|
-
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");
|
|
3691
3693
|
}
|
|
3692
3694
|
const f = U(null), C = () => {
|
|
3693
|
-
var
|
|
3694
|
-
return (
|
|
3695
|
-
}, m =
|
|
3695
|
+
var M;
|
|
3696
|
+
return (M = f.value) == null ? void 0 : M.focus();
|
|
3697
|
+
}, m = b(() => e.isTextarea ? "textarea" : "input"), v = b(() => [
|
|
3696
3698
|
"av-label",
|
|
3697
3699
|
{ invisible: !e.labelVisible }
|
|
3698
|
-
]);
|
|
3700
|
+
]), y = b(() => e.labelVisible ? "69%" : "55%");
|
|
3699
3701
|
return t({
|
|
3700
3702
|
focus: C
|
|
3701
|
-
}), (
|
|
3702
|
-
const
|
|
3703
|
+
}), (M, T) => {
|
|
3704
|
+
const L = ke;
|
|
3703
3705
|
return u(), I("div", {
|
|
3704
3706
|
class: j(["av-input", {
|
|
3705
3707
|
"av-input--date": e.type === "date",
|
|
3706
3708
|
"av-input--no-radius": e.noRadius
|
|
3707
3709
|
}])
|
|
3708
3710
|
}, [
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
+
g("div", bo, [
|
|
3712
|
+
g("div", ho, [
|
|
3711
3713
|
e.prefixIcon ? (u(), I("div", yo, [
|
|
3712
3714
|
W(ne, {
|
|
3713
3715
|
name: e.prefixIcon,
|
|
3714
3716
|
size: 1.2
|
|
3715
3717
|
}, null, 8, ["name"])
|
|
3716
3718
|
])) : D("", !0),
|
|
3717
|
-
|
|
3719
|
+
g("label", {
|
|
3718
3720
|
class: j(l(v)),
|
|
3719
3721
|
for: l(i)
|
|
3720
3722
|
}, [
|
|
3721
|
-
|
|
3723
|
+
g("span", {
|
|
3722
3724
|
class: j(e.labelClass)
|
|
3723
3725
|
}, [
|
|
3724
3726
|
De(B(e.label) + " ", 1),
|
|
3725
|
-
P(
|
|
3727
|
+
P(M.$slots, "requiredTip", {}, () => [
|
|
3726
3728
|
e.required ? (u(), I("span", Mo, "*")) : D("", !0)
|
|
3727
3729
|
], !0),
|
|
3728
3730
|
e.hint ? (u(), I("span", Eo, B(e.hint), 1)) : D("", !0)
|
|
@@ -3742,32 +3744,32 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3742
3744
|
maxlength: e.maxlength,
|
|
3743
3745
|
minlength: e.minlength,
|
|
3744
3746
|
required: e.required
|
|
3745
|
-
},
|
|
3747
|
+
}, M.$attrs, {
|
|
3746
3748
|
max: l(A),
|
|
3747
3749
|
min: l(c),
|
|
3748
3750
|
value: e.modelValue,
|
|
3749
3751
|
"aria-describedby": e.descriptionId || void 0,
|
|
3750
|
-
onInput:
|
|
3752
|
+
onInput: T[0] || (T[0] = (N) => n("update:modelValue", N.target.value))
|
|
3751
3753
|
}), null, 16, ["id", "class", "placeholder", "type", "disabled", "maxlength", "minlength", "required", "max", "min", "value", "aria-describedby"]))
|
|
3752
3754
|
]),
|
|
3753
|
-
P(
|
|
3755
|
+
P(M.$slots, "customCaptions", {
|
|
3754
3756
|
currentValue: e.modelValue,
|
|
3755
3757
|
maxlength: e.maxlength
|
|
3756
3758
|
}, () => {
|
|
3757
|
-
var
|
|
3759
|
+
var N;
|
|
3758
3760
|
return [
|
|
3759
|
-
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)
|
|
3760
3762
|
];
|
|
3761
3763
|
}, !0)
|
|
3762
3764
|
]),
|
|
3763
3765
|
l(o).length > 0 ? (u(), I("div", To, [
|
|
3764
|
-
W(
|
|
3766
|
+
W(L, {
|
|
3765
3767
|
message: l(o),
|
|
3766
3768
|
type: "error"
|
|
3767
3769
|
}, null, 8, ["message"])
|
|
3768
3770
|
])) : D("", !0),
|
|
3769
3771
|
l(r).length > 0 ? (u(), I("div", Do, [
|
|
3770
|
-
W(
|
|
3772
|
+
W(L, {
|
|
3771
3773
|
message: l(r),
|
|
3772
3774
|
type: "success"
|
|
3773
3775
|
}, null, 8, ["message"])
|
|
@@ -3775,7 +3777,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3775
3777
|
], 2);
|
|
3776
3778
|
};
|
|
3777
3779
|
}
|
|
3778
|
-
}), Nt = /* @__PURE__ */ z(Lo, [["__scopeId", "data-v-
|
|
3780
|
+
}), Nt = /* @__PURE__ */ z(Lo, [["__scopeId", "data-v-dc99341b"]]), wo = {
|
|
3779
3781
|
class: "av-search-bar",
|
|
3780
3782
|
role: "search"
|
|
3781
3783
|
}, Oo = /* @__PURE__ */ Q({
|
|
@@ -3789,11 +3791,11 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3789
3791
|
},
|
|
3790
3792
|
emits: ["update:modelValue", "search"],
|
|
3791
3793
|
setup(e, { emit: t }) {
|
|
3792
|
-
const a = t, n =
|
|
3794
|
+
const a = t, n = b(() => e.id ?? `search-bar-${crypto.randomUUID()}`);
|
|
3793
3795
|
return (i, o) => {
|
|
3794
3796
|
const r = Nt, s = re;
|
|
3795
3797
|
return u(), I("div", wo, [
|
|
3796
|
-
|
|
3798
|
+
g("div", null, [
|
|
3797
3799
|
W(r, {
|
|
3798
3800
|
id: l(n),
|
|
3799
3801
|
type: "search",
|
|
@@ -3843,7 +3845,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3843
3845
|
v61717933: i.padding,
|
|
3844
3846
|
v718f62b9: i.borderColor
|
|
3845
3847
|
}));
|
|
3846
|
-
const t =
|
|
3848
|
+
const t = b(() => `av-list--${e.size}`), a = b(() => e.bordered ? "av-list--bordered" : ""), n = b(() => e.divided ? "av-list--divided" : "");
|
|
3847
3849
|
return (i, o) => (u(), I("div", {
|
|
3848
3850
|
class: j(["av-list", [l(t), l(a), l(n)]]),
|
|
3849
3851
|
role: e.role,
|
|
@@ -3894,7 +3896,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3894
3896
|
v304bbb39: A.descriptionColor,
|
|
3895
3897
|
a575c12a: A.hoverBackgroundColor
|
|
3896
3898
|
}));
|
|
3897
|
-
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);
|
|
3898
3900
|
function i(A) {
|
|
3899
3901
|
var d;
|
|
3900
3902
|
!e.clickable || e.disabled || (d = e.onClick) == null || d.call(e, A);
|
|
@@ -3910,7 +3912,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3910
3912
|
(d = e.onClick) == null || d.call(e, f);
|
|
3911
3913
|
}
|
|
3912
3914
|
}
|
|
3913
|
-
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" : "");
|
|
3914
3916
|
return (A, d) => (u(), I("div", { role: e.role }, [
|
|
3915
3917
|
(u(), k(Me(l(a)), {
|
|
3916
3918
|
class: j(["av-list-item", [l(r), l(s), l(c)]]),
|
|
@@ -3933,7 +3935,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3933
3935
|
size: e.iconSize
|
|
3934
3936
|
}, null, 8, ["name", "color", "size"])
|
|
3935
3937
|
])) : D("", !0),
|
|
3936
|
-
|
|
3938
|
+
g("div", po, [
|
|
3937
3939
|
e.title ? (u(), I("div", jo, B(e.title), 1)) : D("", !0),
|
|
3938
3940
|
e.description ? (u(), I("div", zo, B(e.description), 1)) : D("", !0),
|
|
3939
3941
|
t.default ? (u(), I("div", Bo, [
|
|
@@ -3957,7 +3959,7 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3957
3959
|
labelTypographyClass: { default: "b2-regular" }
|
|
3958
3960
|
},
|
|
3959
3961
|
setup(e) {
|
|
3960
|
-
se((
|
|
3962
|
+
se((y) => ({
|
|
3961
3963
|
v67603a32: l(n)
|
|
3962
3964
|
}));
|
|
3963
3965
|
const t = e, {
|
|
@@ -3967,47 +3969,47 @@ const bo = { class: "av-input__wrapper" }, ho = { class: "av-input__control" },
|
|
|
3967
3969
|
selected: o,
|
|
3968
3970
|
multiple: r,
|
|
3969
3971
|
handleSelectChange: s
|
|
3970
|
-
} = t, c =
|
|
3971
|
-
function A(
|
|
3972
|
-
return
|
|
3972
|
+
} = t, c = b(() => ln(t.options));
|
|
3973
|
+
function A(y) {
|
|
3974
|
+
return y ? Array.isArray(y) ? y : [y] : [];
|
|
3973
3975
|
}
|
|
3974
3976
|
const d = U(A(o));
|
|
3975
|
-
function f(
|
|
3976
|
-
return d.value.some((
|
|
3977
|
+
function f(y) {
|
|
3978
|
+
return d.value.some((M) => M.value === y.value);
|
|
3977
3979
|
}
|
|
3978
|
-
function C(
|
|
3979
|
-
r ? (f(
|
|
3980
|
-
(
|
|
3981
|
-
) : 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));
|
|
3982
3984
|
}
|
|
3983
|
-
function m(
|
|
3984
|
-
return f(
|
|
3985
|
+
function m(y) {
|
|
3986
|
+
return f(y) ? R.CHECK : void 0;
|
|
3985
3987
|
}
|
|
3986
|
-
function v(
|
|
3987
|
-
return f(
|
|
3988
|
+
function v(y) {
|
|
3989
|
+
return f(y) && !r;
|
|
3988
3990
|
}
|
|
3989
|
-
return oe(() => t.selected, (
|
|
3990
|
-
d.value = A(
|
|
3991
|
-
}, { immediate: !0 }), (
|
|
3991
|
+
return oe(() => t.selected, (y) => {
|
|
3992
|
+
d.value = A(y);
|
|
3993
|
+
}, { immediate: !0 }), (y, M) => (u(), I("div", Wo, [
|
|
3992
3994
|
l(a) ? (u(), I("span", {
|
|
3993
3995
|
key: 0,
|
|
3994
3996
|
class: j(["av-select-label", [l(i)]])
|
|
3995
3997
|
}, B(l(a)), 3)) : D("", !0),
|
|
3996
|
-
(u(!0), I($, null, ie(l(c), (
|
|
3997
|
-
key:
|
|
3998
|
+
(u(!0), I($, null, ie(l(c), (T) => (u(), I("div", {
|
|
3999
|
+
key: T.value,
|
|
3998
4000
|
class: "tag-wrapper"
|
|
3999
4001
|
}, [
|
|
4000
4002
|
W(Va, {
|
|
4001
4003
|
class: j({
|
|
4002
|
-
"av-tag--selected": f(
|
|
4003
|
-
"av-tag--disabled": v(
|
|
4004
|
+
"av-tag--selected": f(T),
|
|
4005
|
+
"av-tag--disabled": v(T)
|
|
4004
4006
|
}),
|
|
4005
|
-
label:
|
|
4006
|
-
icon: m(
|
|
4007
|
-
disabled: v(
|
|
4007
|
+
label: T.label,
|
|
4008
|
+
icon: m(T),
|
|
4009
|
+
disabled: v(T),
|
|
4008
4010
|
selectable: "",
|
|
4009
|
-
selected: f(
|
|
4010
|
-
onSelect: () => C(
|
|
4011
|
+
selected: f(T),
|
|
4012
|
+
onSelect: () => C(T)
|
|
4011
4013
|
}, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
|
|
4012
4014
|
]))), 128))
|
|
4013
4015
|
]));
|
|
@@ -4027,10 +4029,10 @@ const DA = [
|
|
|
4027
4029
|
handleSelectChange: { type: Function }
|
|
4028
4030
|
},
|
|
4029
4031
|
setup(e) {
|
|
4030
|
-
const t =
|
|
4032
|
+
const t = b(() => Object.values(ba).filter((n) => typeof n == "number").map((n) => ({
|
|
4031
4033
|
label: n.toString(),
|
|
4032
4034
|
value: n.toString()
|
|
4033
|
-
}))), a =
|
|
4035
|
+
}))), a = b(() => ({
|
|
4034
4036
|
label: e.pageSizeSelected.toString(),
|
|
4035
4037
|
value: e.pageSizeSelected.toString()
|
|
4036
4038
|
}));
|
|
@@ -4077,12 +4079,12 @@ const DA = [
|
|
|
4077
4079
|
disabled: e.disabled
|
|
4078
4080
|
}, {
|
|
4079
4081
|
default: G(() => [
|
|
4080
|
-
|
|
4082
|
+
g("div", {
|
|
4081
4083
|
class: j(["av-radio-group", {
|
|
4082
4084
|
"av-radio-group--sm": e.small
|
|
4083
4085
|
}])
|
|
4084
4086
|
}, [
|
|
4085
|
-
|
|
4087
|
+
g("input", ee({
|
|
4086
4088
|
id: l(n),
|
|
4087
4089
|
type: "radio",
|
|
4088
4090
|
name: e.name,
|
|
@@ -4092,7 +4094,7 @@ const DA = [
|
|
|
4092
4094
|
}, i.$attrs, {
|
|
4093
4095
|
onClick: o[0] || (o[0] = (s) => a("update:modelValue", e.value))
|
|
4094
4096
|
}), null, 16, Xo),
|
|
4095
|
-
|
|
4097
|
+
g("label", {
|
|
4096
4098
|
for: l(n),
|
|
4097
4099
|
class: "av-label"
|
|
4098
4100
|
}, [
|
|
@@ -4121,18 +4123,18 @@ const DA = [
|
|
|
4121
4123
|
},
|
|
4122
4124
|
emits: ["update:modelValue"],
|
|
4123
4125
|
setup(e, { expose: t, emit: a }) {
|
|
4124
|
-
const n = a, i =
|
|
4126
|
+
const n = a, i = b(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`), o = b(() => e.errorMessage || e.validMessage);
|
|
4125
4127
|
function r(m) {
|
|
4126
4128
|
m !== e.modelValue && n("update:modelValue", m);
|
|
4127
4129
|
}
|
|
4128
|
-
const s =
|
|
4130
|
+
const s = b(() => o.value ? `messages-${i.value}` : void 0), c = fe();
|
|
4129
4131
|
function A(m) {
|
|
4130
4132
|
return m != null && typeof m == "object" && "type" in m && m.type === Zo;
|
|
4131
4133
|
}
|
|
4132
4134
|
function d(m) {
|
|
4133
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] : []) : [];
|
|
4134
4136
|
}
|
|
4135
|
-
const f =
|
|
4137
|
+
const f = b(() => {
|
|
4136
4138
|
var m;
|
|
4137
4139
|
return d((m = c.default) == null ? void 0 : m.call(c));
|
|
4138
4140
|
}), C = U(e.modelValue);
|
|
@@ -4141,8 +4143,8 @@ const DA = [
|
|
|
4141
4143
|
}), oe(C, (m) => {
|
|
4142
4144
|
m && n("update:modelValue", m);
|
|
4143
4145
|
}), t({ selected: C }), (m, v) => {
|
|
4144
|
-
const
|
|
4145
|
-
return u(), k(
|
|
4146
|
+
const y = Jt;
|
|
4147
|
+
return u(), k(y, {
|
|
4146
4148
|
id: l(i),
|
|
4147
4149
|
legend: e.legend,
|
|
4148
4150
|
hint: e.hint,
|
|
@@ -4156,17 +4158,17 @@ const DA = [
|
|
|
4156
4158
|
inline: e.inline
|
|
4157
4159
|
}, {
|
|
4158
4160
|
default: G(() => [
|
|
4159
|
-
(u(!0), I($, null, ie(l(f), (
|
|
4160
|
-
var L,
|
|
4161
|
+
(u(!0), I($, null, ie(l(f), (M, T) => {
|
|
4162
|
+
var L, N;
|
|
4161
4163
|
return u(), k(Fo, {
|
|
4162
|
-
key:
|
|
4164
|
+
key: T,
|
|
4163
4165
|
modelValue: l(C),
|
|
4164
4166
|
"onUpdate:modelValue": [
|
|
4165
4167
|
v[0] || (v[0] = (O) => Ct(C) ? C.value = O : null),
|
|
4166
4168
|
v[1] || (v[1] = (O) => r(O))
|
|
4167
4169
|
],
|
|
4168
|
-
value: (L =
|
|
4169
|
-
disabled: ((
|
|
4170
|
+
value: (L = M.props) == null ? void 0 : L.value,
|
|
4171
|
+
disabled: ((N = M.props) == null ? void 0 : N.disabled) ?? e.disabled,
|
|
4170
4172
|
small: e.small,
|
|
4171
4173
|
inline: e.inline,
|
|
4172
4174
|
name: e.name
|
|
@@ -4174,7 +4176,7 @@ const DA = [
|
|
|
4174
4176
|
default: G(() => {
|
|
4175
4177
|
var O;
|
|
4176
4178
|
return [
|
|
4177
|
-
(u(), k(Me((O =
|
|
4179
|
+
(u(), k(Me((O = M.children) == null ? void 0 : O.default)))
|
|
4178
4180
|
];
|
|
4179
4181
|
}),
|
|
4180
4182
|
_: 2
|
|
@@ -4263,42 +4265,42 @@ function Ma(e, t, a) {
|
|
|
4263
4265
|
return n = i = void 0, A = Z, r = e.apply(te, F), r;
|
|
4264
4266
|
}
|
|
4265
4267
|
function v(Z) {
|
|
4266
|
-
return A = Z, s = setTimeout(
|
|
4268
|
+
return A = Z, s = setTimeout(T, t), d ? m(Z) : r;
|
|
4267
4269
|
}
|
|
4268
|
-
function
|
|
4270
|
+
function y(Z) {
|
|
4269
4271
|
var F = Z - c, te = Z - A, x = t - F;
|
|
4270
4272
|
return f ? hr(x, o - te) : x;
|
|
4271
4273
|
}
|
|
4272
|
-
function
|
|
4274
|
+
function M(Z) {
|
|
4273
4275
|
var F = Z - c, te = Z - A;
|
|
4274
4276
|
return c === void 0 || F >= t || F < 0 || f && te >= o;
|
|
4275
4277
|
}
|
|
4276
|
-
function
|
|
4278
|
+
function T() {
|
|
4277
4279
|
var Z = At();
|
|
4278
|
-
if (
|
|
4280
|
+
if (M(Z))
|
|
4279
4281
|
return L(Z);
|
|
4280
|
-
s = setTimeout(
|
|
4282
|
+
s = setTimeout(T, y(Z));
|
|
4281
4283
|
}
|
|
4282
4284
|
function L(Z) {
|
|
4283
4285
|
return s = void 0, C && n ? m(Z) : (n = i = void 0, r);
|
|
4284
4286
|
}
|
|
4285
|
-
function
|
|
4287
|
+
function N() {
|
|
4286
4288
|
s !== void 0 && clearTimeout(s), A = 0, n = c = i = s = void 0;
|
|
4287
4289
|
}
|
|
4288
4290
|
function O() {
|
|
4289
4291
|
return s === void 0 ? r : L(At());
|
|
4290
4292
|
}
|
|
4291
4293
|
function V() {
|
|
4292
|
-
var Z = At(), F =
|
|
4294
|
+
var Z = At(), F = M(Z);
|
|
4293
4295
|
if (n = arguments, i = this, c = Z, F) {
|
|
4294
4296
|
if (s === void 0)
|
|
4295
4297
|
return v(c);
|
|
4296
4298
|
if (f)
|
|
4297
|
-
return clearTimeout(s), s = setTimeout(
|
|
4299
|
+
return clearTimeout(s), s = setTimeout(T, t), m(c);
|
|
4298
4300
|
}
|
|
4299
|
-
return s === void 0 && (s = setTimeout(
|
|
4301
|
+
return s === void 0 && (s = setTimeout(T, t)), r;
|
|
4300
4302
|
}
|
|
4301
|
-
return V.cancel =
|
|
4303
|
+
return V.cancel = N, V.flush = O, V;
|
|
4302
4304
|
}
|
|
4303
4305
|
const yr = {
|
|
4304
4306
|
key: 0,
|
|
@@ -4320,48 +4322,48 @@ const yr = {
|
|
|
4320
4322
|
props: c,
|
|
4321
4323
|
getOptionId: A,
|
|
4322
4324
|
getDisplayLabel: d
|
|
4323
|
-
} = Tt(), f = U(), C = U(), m =
|
|
4325
|
+
} = Tt(), f = U(), C = U(), m = b(() => {
|
|
4324
4326
|
if (!c.options)
|
|
4325
4327
|
return [];
|
|
4326
4328
|
if (c.serverSideFiltering)
|
|
4327
4329
|
return c.maxResults ? c.options.slice(0, c.maxResults) : c.options;
|
|
4328
|
-
const
|
|
4329
|
-
if (!
|
|
4330
|
+
const N = r.value.toLowerCase().trim();
|
|
4331
|
+
if (!N) {
|
|
4330
4332
|
const V = c.options;
|
|
4331
4333
|
return c.maxResults ? V.slice(0, c.maxResults) : V;
|
|
4332
4334
|
}
|
|
4333
4335
|
let O;
|
|
4334
|
-
return c.filterOptions ? O = c.filterOptions(c.options,
|
|
4335
|
-
}), v =
|
|
4336
|
-
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) {
|
|
4337
4339
|
return o.value.some(
|
|
4338
|
-
(O) => A(O) === A(
|
|
4340
|
+
(O) => A(O) === A(N)
|
|
4339
4341
|
);
|
|
4340
4342
|
}
|
|
4341
|
-
function
|
|
4343
|
+
function M(N) {
|
|
4342
4344
|
if (!c.multiSelect) {
|
|
4343
|
-
o.value = [
|
|
4345
|
+
o.value = [N], s.value = !1, r.value = "";
|
|
4344
4346
|
return;
|
|
4345
4347
|
}
|
|
4346
|
-
const O = o.value, V = A(
|
|
4348
|
+
const O = o.value, V = A(N);
|
|
4347
4349
|
O.some(
|
|
4348
4350
|
(F) => A(F) === V
|
|
4349
4351
|
) ? o.value = O.filter(
|
|
4350
4352
|
(F) => A(F) !== V
|
|
4351
|
-
) : o.value = [...O,
|
|
4353
|
+
) : o.value = [...O, N];
|
|
4352
4354
|
}
|
|
4353
|
-
const { arrivedState:
|
|
4355
|
+
const { arrivedState: T } = ti(C, {
|
|
4354
4356
|
throttle: 100
|
|
4355
4357
|
}), L = Ma(() => {
|
|
4356
4358
|
n("loadMore");
|
|
4357
4359
|
}, c.loadMoreThrottleDelay);
|
|
4358
|
-
return oe(() =>
|
|
4359
|
-
c.enableLoadMore &&
|
|
4360
|
+
return oe(() => T.bottom, (N) => {
|
|
4361
|
+
c.enableLoadMore && N && s.value && L();
|
|
4360
4362
|
}), ve(() => {
|
|
4361
4363
|
L.cancel();
|
|
4362
4364
|
}), t({
|
|
4363
4365
|
dropdownRef: f
|
|
4364
|
-
}), (
|
|
4366
|
+
}), (N, O) => l(s) ? (u(), I("div", {
|
|
4365
4367
|
key: 0,
|
|
4366
4368
|
ref_key: "dropdownRef",
|
|
4367
4369
|
ref: f,
|
|
@@ -4374,9 +4376,9 @@ const yr = {
|
|
|
4374
4376
|
size: 1.5,
|
|
4375
4377
|
class: "av-autocomplete-dropdown__spinner"
|
|
4376
4378
|
}, null, 8, ["name"]),
|
|
4377
|
-
O[0] || (O[0] =
|
|
4379
|
+
O[0] || (O[0] = g("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
4378
4380
|
])) : l(v) === l(Qe).NO_OPTIONS ? (u(), I("div", Cr, [
|
|
4379
|
-
i.empty ? P(
|
|
4381
|
+
i.empty ? P(N.$slots, "empty", { key: 0 }, void 0, !0) : (u(), I("div", Mr, " No results found "))
|
|
4380
4382
|
])) : (u(), k(Ia, ee({
|
|
4381
4383
|
key: 2,
|
|
4382
4384
|
ref_key: "listRef",
|
|
@@ -4388,18 +4390,18 @@ const yr = {
|
|
|
4388
4390
|
(u(!0), I($, null, ie(l(m), (V) => (u(), I($, {
|
|
4389
4391
|
key: l(A)(V)
|
|
4390
4392
|
}, [
|
|
4391
|
-
i.item ? P(
|
|
4393
|
+
i.item ? P(N.$slots, "item", {
|
|
4392
4394
|
key: 0,
|
|
4393
4395
|
option: V,
|
|
4394
|
-
isSelected:
|
|
4395
|
-
toggle: () =>
|
|
4396
|
+
isSelected: y(V),
|
|
4397
|
+
toggle: () => M(V)
|
|
4396
4398
|
}, void 0, !0) : (u(), k(ga, {
|
|
4397
4399
|
key: 1,
|
|
4398
4400
|
title: l(d)(V),
|
|
4399
|
-
icon:
|
|
4400
|
-
selected:
|
|
4401
|
+
icon: y(V) ? l(R).CHECK : void 0,
|
|
4402
|
+
selected: y(V),
|
|
4401
4403
|
clickable: "",
|
|
4402
|
-
"on-click": () =>
|
|
4404
|
+
"on-click": () => M(V),
|
|
4403
4405
|
"hover-background-color": "var(--light-background-neutral)",
|
|
4404
4406
|
"color-on-hover": "var(--base)"
|
|
4405
4407
|
}, null, 8, ["title", "icon", "selected", "on-click"]))
|
|
@@ -4424,27 +4426,27 @@ const yr = {
|
|
|
4424
4426
|
inputId: A,
|
|
4425
4427
|
handleBlur: d,
|
|
4426
4428
|
getDisplayLabel: f
|
|
4427
|
-
} = Tt(), C = U(), m =
|
|
4428
|
-
var
|
|
4429
|
-
return ((
|
|
4430
|
-
}),
|
|
4431
|
-
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);
|
|
4432
4434
|
}, c.debounceDelay);
|
|
4433
|
-
function
|
|
4434
|
-
r.value = String(
|
|
4435
|
+
function M(N) {
|
|
4436
|
+
r.value = String(N || ""), y(r.value);
|
|
4435
4437
|
}
|
|
4436
|
-
function
|
|
4438
|
+
function T() {
|
|
4437
4439
|
s.value = !0;
|
|
4438
4440
|
}
|
|
4439
4441
|
function L() {
|
|
4440
4442
|
o.value = [], r.value = "", n("clear");
|
|
4441
4443
|
}
|
|
4442
4444
|
return ve(() => {
|
|
4443
|
-
|
|
4445
|
+
y.cancel();
|
|
4444
4446
|
}), t({
|
|
4445
4447
|
inputRef: C,
|
|
4446
|
-
searchQuery:
|
|
4447
|
-
}), (
|
|
4448
|
+
searchQuery: b(() => r.value)
|
|
4449
|
+
}), (N, O) => (u(), I("div", Tr, [
|
|
4448
4450
|
W(Nt, ee({
|
|
4449
4451
|
id: l(A),
|
|
4450
4452
|
ref_key: "inputRef",
|
|
@@ -4452,10 +4454,10 @@ const yr = {
|
|
|
4452
4454
|
"model-value": l(m),
|
|
4453
4455
|
placeholder: l(v)
|
|
4454
4456
|
}, l(c).inputOptions, {
|
|
4455
|
-
"onUpdate:modelValue":
|
|
4456
|
-
onFocus:
|
|
4457
|
+
"onUpdate:modelValue": M,
|
|
4458
|
+
onFocus: T,
|
|
4457
4459
|
onBlur: l(d),
|
|
4458
|
-
onClick:
|
|
4460
|
+
onClick: T
|
|
4459
4461
|
}), qe({ _: 2 }, [
|
|
4460
4462
|
i.requiredTip ? {
|
|
4461
4463
|
name: "requiredTip",
|
|
@@ -4550,20 +4552,20 @@ const yr = {
|
|
|
4550
4552
|
}),
|
|
4551
4553
|
emits: /* @__PURE__ */ ge(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
4552
4554
|
setup(e, { emit: t }) {
|
|
4553
|
-
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()}`);
|
|
4554
4556
|
function C(L) {
|
|
4555
4557
|
s.value = L, n("search", L);
|
|
4556
4558
|
}
|
|
4557
4559
|
function m(L) {
|
|
4558
|
-
var
|
|
4559
|
-
(O = (
|
|
4560
|
+
var N, O;
|
|
4561
|
+
(O = (N = d.value) == null ? void 0 : N.dropdownRef) != null && O.contains(L.relatedTarget) || setTimeout(() => {
|
|
4560
4562
|
r.value = !1;
|
|
4561
4563
|
}, a.blurCloseDelay);
|
|
4562
4564
|
}
|
|
4563
4565
|
function v(L) {
|
|
4564
4566
|
return a.getOptionKey ? a.getOptionKey(L) : L.value;
|
|
4565
4567
|
}
|
|
4566
|
-
function
|
|
4568
|
+
function y(L) {
|
|
4567
4569
|
return a.getOptionLabel ? a.getOptionLabel(L) : L.label;
|
|
4568
4570
|
}
|
|
4569
4571
|
bt(ha, {
|
|
@@ -4574,19 +4576,19 @@ const yr = {
|
|
|
4574
4576
|
inputId: f,
|
|
4575
4577
|
handleBlur: m,
|
|
4576
4578
|
getOptionId: v,
|
|
4577
|
-
getDisplayLabel:
|
|
4579
|
+
getDisplayLabel: y
|
|
4578
4580
|
});
|
|
4579
|
-
function
|
|
4581
|
+
function T(L) {
|
|
4580
4582
|
var V, Z, F, te, x;
|
|
4581
|
-
const
|
|
4582
|
-
!((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);
|
|
4583
4585
|
}
|
|
4584
4586
|
return de(() => {
|
|
4585
|
-
document.addEventListener("click",
|
|
4587
|
+
document.addEventListener("click", T);
|
|
4586
4588
|
}), ve(() => {
|
|
4587
|
-
document.removeEventListener("click",
|
|
4588
|
-
}), (L,
|
|
4589
|
-
|
|
4589
|
+
document.removeEventListener("click", T);
|
|
4590
|
+
}), (L, N) => (u(), I("div", xr, [
|
|
4591
|
+
g("div", {
|
|
4590
4592
|
ref_key: "wrapperRef",
|
|
4591
4593
|
ref: c,
|
|
4592
4594
|
class: "av-autocomplete__wrapper"
|
|
@@ -4595,7 +4597,7 @@ const yr = {
|
|
|
4595
4597
|
ref_key: "inputRef",
|
|
4596
4598
|
ref: A,
|
|
4597
4599
|
onSearch: C,
|
|
4598
|
-
onClear:
|
|
4600
|
+
onClear: N[0] || (N[0] = (O) => n("clear"))
|
|
4599
4601
|
}, qe({ _: 2 }, [
|
|
4600
4602
|
i.requiredTip ? {
|
|
4601
4603
|
name: "requiredTip",
|
|
@@ -4608,7 +4610,7 @@ const yr = {
|
|
|
4608
4610
|
W(Nr, {
|
|
4609
4611
|
ref_key: "dropdownRef",
|
|
4610
4612
|
ref: d,
|
|
4611
|
-
onLoadMore:
|
|
4613
|
+
onLoadMore: N[1] || (N[1] = (O) => n("loadMore"))
|
|
4612
4614
|
}, qe({ _: 2 }, [
|
|
4613
4615
|
i.item ? {
|
|
4614
4616
|
name: "item",
|
|
@@ -4681,27 +4683,27 @@ const yr = {
|
|
|
4681
4683
|
return document.querySelectorAll(`[id^="${e.id}-"][id$="-checkbox"]`);
|
|
4682
4684
|
}
|
|
4683
4685
|
const v = U("");
|
|
4684
|
-
function
|
|
4686
|
+
function y(H) {
|
|
4685
4687
|
H.key === "Escape" && a("close");
|
|
4686
4688
|
}
|
|
4687
|
-
function
|
|
4689
|
+
function M(H) {
|
|
4688
4690
|
var p, h;
|
|
4689
4691
|
const w = H.target;
|
|
4690
4692
|
!((p = i.value) != null && p.$el.contains(w)) && !((h = A.value) != null && h.contains(w)) && a("close");
|
|
4691
4693
|
}
|
|
4692
|
-
function
|
|
4694
|
+
function T() {
|
|
4693
4695
|
for (; c.length; ) {
|
|
4694
4696
|
const H = c.pop();
|
|
4695
4697
|
H && H();
|
|
4696
4698
|
}
|
|
4697
|
-
document.removeEventListener("click",
|
|
4699
|
+
document.removeEventListener("click", M), document.removeEventListener("keydown", y);
|
|
4698
4700
|
}
|
|
4699
|
-
const L =
|
|
4701
|
+
const L = b(
|
|
4700
4702
|
() => e.options.filter((H) => typeof H == "object" && H !== null ? `${H[Wr]}`.toLowerCase().includes(v.value.toLowerCase()) : `${H}`.toLowerCase().includes(v.value.toLowerCase()))
|
|
4701
|
-
),
|
|
4703
|
+
), N = b(() => e.selected.length < L.value.length ? !1 : L.value.every((H) => e.selected.includes(H)));
|
|
4702
4704
|
function O() {
|
|
4703
4705
|
const H = new Set(r.value || []);
|
|
4704
|
-
|
|
4706
|
+
N.value ? L.value.forEach((w) => {
|
|
4705
4707
|
H.delete(w.value);
|
|
4706
4708
|
}) : L.value.forEach((w) => {
|
|
4707
4709
|
H.add(w.value);
|
|
@@ -4715,16 +4717,16 @@ const yr = {
|
|
|
4715
4717
|
H.preventDefault();
|
|
4716
4718
|
const w = m(), p = document.activeElement, h = Array.from(w).indexOf(p);
|
|
4717
4719
|
if (h !== -1) {
|
|
4718
|
-
const
|
|
4719
|
-
w[
|
|
4720
|
+
const E = (h + 1) % w.length;
|
|
4721
|
+
w[E].focus();
|
|
4720
4722
|
}
|
|
4721
4723
|
}
|
|
4722
4724
|
function F(H) {
|
|
4723
4725
|
H.preventDefault();
|
|
4724
4726
|
const w = m(), p = document.activeElement, h = Array.from(w).indexOf(p);
|
|
4725
4727
|
if (h !== -1) {
|
|
4726
|
-
const
|
|
4727
|
-
w[
|
|
4728
|
+
const E = (h - 1 + w.length) % w.length;
|
|
4729
|
+
w[E].focus();
|
|
4728
4730
|
}
|
|
4729
4731
|
}
|
|
4730
4732
|
function te(H) {
|
|
@@ -4737,7 +4739,7 @@ const yr = {
|
|
|
4737
4739
|
H.shiftKey && w === ((p = i.value) == null ? void 0 : p.$el) && a("close");
|
|
4738
4740
|
}
|
|
4739
4741
|
return ve(() => {
|
|
4740
|
-
|
|
4742
|
+
T();
|
|
4741
4743
|
}), (H, w) => {
|
|
4742
4744
|
const p = re, h = Nt;
|
|
4743
4745
|
return e.isVisible ? (u(), I("div", {
|
|
@@ -4749,20 +4751,20 @@ const yr = {
|
|
|
4749
4751
|
"--width-host": `${l(s)}px`
|
|
4750
4752
|
}),
|
|
4751
4753
|
class: j(["av-multiselect__collapse av-collapse", { "av-collapse--expanded": l(f), "av-collapsing": l(d) }]),
|
|
4752
|
-
onTransitionend: w[2] || (w[2] = (
|
|
4754
|
+
onTransitionend: w[2] || (w[2] = (E) => l(C)(l(o)))
|
|
4753
4755
|
}, [
|
|
4754
|
-
|
|
4756
|
+
g("p", {
|
|
4755
4757
|
id: `${e.id}-text-hint`,
|
|
4756
4758
|
class: "av-sr-only"
|
|
4757
4759
|
}, B(e.hint), 9, jr),
|
|
4758
4760
|
e.selectAll ? (u(), I("ul", zr, [
|
|
4759
|
-
|
|
4761
|
+
g("li", null, [
|
|
4760
4762
|
W(p, {
|
|
4761
4763
|
name: "select-all",
|
|
4762
4764
|
size: "sm",
|
|
4763
4765
|
disabled: l(L).length === 0,
|
|
4764
|
-
label: e.selectAllLabel[l(
|
|
4765
|
-
icon: l(
|
|
4766
|
+
label: e.selectAllLabel[l(N) ? 1 : 0],
|
|
4767
|
+
icon: l(N) ? l(R).CLOSE_CIRCLE_OUTLINE : l(R).CHECK_CIRCLE_OUTLINE,
|
|
4766
4768
|
onClick: O,
|
|
4767
4769
|
onKeydown: Ae(ue(x, ["shift"]), ["tab"])
|
|
4768
4770
|
}, null, 8, ["disabled", "label", "icon", "onKeydown"])
|
|
@@ -4771,7 +4773,7 @@ const yr = {
|
|
|
4771
4773
|
e.search ? (u(), I("div", Br, [
|
|
4772
4774
|
W(h, {
|
|
4773
4775
|
modelValue: l(v),
|
|
4774
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
4776
|
+
"onUpdate:modelValue": w[0] || (w[0] = (E) => Ct(v) ? v.value = E : null),
|
|
4775
4777
|
"aria-describedby": `${e.id}-text-hint`,
|
|
4776
4778
|
"aria-controls": `${e.id}-checkboxes`,
|
|
4777
4779
|
"prefix-icon": l(R).MAGNIFY,
|
|
@@ -4792,15 +4794,15 @@ const yr = {
|
|
|
4792
4794
|
"legend-id": `${e.id}-checkboxes-legend`
|
|
4793
4795
|
}, {
|
|
4794
4796
|
default: G(() => [
|
|
4795
|
-
(u(!0), I($, null, ie(l(L), (
|
|
4796
|
-
id: `${n(
|
|
4797
|
-
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`,
|
|
4798
4800
|
modelValue: r.value,
|
|
4799
4801
|
"onUpdate:modelValue": w[1] || (w[1] = (S) => r.value = S),
|
|
4800
|
-
value:
|
|
4801
|
-
label:
|
|
4802
|
-
icon:
|
|
4803
|
-
name: `${n(
|
|
4802
|
+
value: E.value,
|
|
4803
|
+
label: E.label,
|
|
4804
|
+
icon: E.icon,
|
|
4805
|
+
name: `${n(E, e.id)}-checkbox`,
|
|
4804
4806
|
onKeydown: [
|
|
4805
4807
|
Ae(Z, ["down"]),
|
|
4806
4808
|
Ae(Z, ["right"]),
|
|
@@ -4852,7 +4854,7 @@ const yr = {
|
|
|
4852
4854
|
v7d3d0889: w.width,
|
|
4853
4855
|
v10950ec4: w.height
|
|
4854
4856
|
}));
|
|
4855
|
-
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"), {
|
|
4856
4858
|
collapse: c,
|
|
4857
4859
|
collapsing: A,
|
|
4858
4860
|
cssExpanded: d,
|
|
@@ -4864,37 +4866,37 @@ const yr = {
|
|
|
4864
4866
|
cssExpanded: d,
|
|
4865
4867
|
doExpand: f,
|
|
4866
4868
|
onTransitionEnd: C
|
|
4867
|
-
}, v =
|
|
4869
|
+
}, v = b(() => e.modelValue.map((w) => w.value)), y = b(() => {
|
|
4868
4870
|
if (!e.modelValue || e.modelValue.length === 0)
|
|
4869
4871
|
return e.placeholder;
|
|
4870
4872
|
if (e.selectedText)
|
|
4871
4873
|
return e.selectedText;
|
|
4872
4874
|
const w = e.modelValue.length > 1 ? "s" : "";
|
|
4873
4875
|
return `${e.modelValue.length} option${w} sélectionnée${w}`;
|
|
4874
|
-
}),
|
|
4875
|
-
function
|
|
4876
|
+
}), M = U(!1);
|
|
4877
|
+
function T(w) {
|
|
4876
4878
|
w.key === "Escape" && O();
|
|
4877
4879
|
}
|
|
4878
4880
|
function L(w) {
|
|
4879
|
-
var h,
|
|
4881
|
+
var h, E;
|
|
4880
4882
|
const p = w.target;
|
|
4881
|
-
!((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();
|
|
4882
4884
|
}
|
|
4883
|
-
function
|
|
4884
|
-
o.value = !0,
|
|
4885
|
+
function N() {
|
|
4886
|
+
o.value = !0, M.value = !0, document.addEventListener("click", L), document.addEventListener("keydown", T), setTimeout(() => {
|
|
4885
4887
|
f(!0);
|
|
4886
4888
|
}, 100);
|
|
4887
4889
|
}
|
|
4888
4890
|
function O() {
|
|
4889
4891
|
o.value = !1, f(!1), setTimeout(() => {
|
|
4890
|
-
|
|
4892
|
+
M.value = !1;
|
|
4891
4893
|
}, 300), Z();
|
|
4892
4894
|
}
|
|
4893
4895
|
async function V() {
|
|
4894
|
-
|
|
4896
|
+
M.value ? O() : N();
|
|
4895
4897
|
}
|
|
4896
4898
|
function Z() {
|
|
4897
|
-
document.removeEventListener("click", L), document.removeEventListener("keydown",
|
|
4899
|
+
document.removeEventListener("click", L), document.removeEventListener("keydown", T);
|
|
4898
4900
|
}
|
|
4899
4901
|
function F(w) {
|
|
4900
4902
|
var h;
|
|
@@ -4904,32 +4906,32 @@ const yr = {
|
|
|
4904
4906
|
function te(w) {
|
|
4905
4907
|
var h;
|
|
4906
4908
|
const p = ((h = e.options) == null ? void 0 : h.filter(
|
|
4907
|
-
(
|
|
4909
|
+
(E) => w.includes(E.value)
|
|
4908
4910
|
)) ?? [];
|
|
4909
4911
|
a("update:modelValue", p);
|
|
4910
4912
|
}
|
|
4911
4913
|
ve(() => {
|
|
4912
4914
|
Z();
|
|
4913
4915
|
});
|
|
4914
|
-
const x =
|
|
4916
|
+
const x = b(() => [
|
|
4915
4917
|
"av-label",
|
|
4916
4918
|
{ invisible: !e.labelVisible },
|
|
4917
4919
|
e.labelClass
|
|
4918
|
-
]), H =
|
|
4920
|
+
]), H = b(() => ({
|
|
4919
4921
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
4920
4922
|
}));
|
|
4921
4923
|
return (w, p) => {
|
|
4922
|
-
const h = re,
|
|
4924
|
+
const h = re, E = ke;
|
|
4923
4925
|
return u(), I($, null, [
|
|
4924
|
-
|
|
4926
|
+
g("div", {
|
|
4925
4927
|
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(r) }]),
|
|
4926
|
-
title: l(
|
|
4928
|
+
title: l(y)
|
|
4927
4929
|
}, [
|
|
4928
|
-
|
|
4930
|
+
g("label", {
|
|
4929
4931
|
class: j(l(x)),
|
|
4930
4932
|
for: l(n)
|
|
4931
4933
|
}, [
|
|
4932
|
-
|
|
4934
|
+
g("span", Zr, B(e.label), 1),
|
|
4933
4935
|
"required" in w.$attrs && w.$attrs.required !== !1 ? (u(), I("span", Xr)) : D("", !0),
|
|
4934
4936
|
e.hint ? (u(), I("span", Yr, B(e.hint), 1)) : D("", !0)
|
|
4935
4937
|
], 10, Rr),
|
|
@@ -4940,7 +4942,7 @@ const yr = {
|
|
|
4940
4942
|
type: "button",
|
|
4941
4943
|
variant: "OUTLINED"
|
|
4942
4944
|
}, w.$attrs, {
|
|
4943
|
-
label: l(
|
|
4945
|
+
label: l(y),
|
|
4944
4946
|
class: ["av-multiselect", {
|
|
4945
4947
|
"av-multiselect--is-open": l(o),
|
|
4946
4948
|
"av-multiselect--dense": e.dense,
|
|
@@ -4960,7 +4962,7 @@ const yr = {
|
|
|
4960
4962
|
legend: e.legend,
|
|
4961
4963
|
hint: e.collapseHint,
|
|
4962
4964
|
"model-value": l(v),
|
|
4963
|
-
"is-visible": l(
|
|
4965
|
+
"is-visible": l(M),
|
|
4964
4966
|
"select-all": e.selectAll,
|
|
4965
4967
|
"select-all-label": e.selectAllLabel,
|
|
4966
4968
|
search: e.search,
|
|
@@ -4971,7 +4973,7 @@ const yr = {
|
|
|
4971
4973
|
"onUpdate:modelValue": te
|
|
4972
4974
|
}, null, 8, ["id", "legend", "hint", "model-value", "is-visible", "select-all", "select-all-label", "search", "options", "selected"])
|
|
4973
4975
|
], 10, Hr),
|
|
4974
|
-
W(
|
|
4976
|
+
W(E, {
|
|
4975
4977
|
"message-id": `multiselect-${l(s)}-desc-${l(s)}`,
|
|
4976
4978
|
type: l(s),
|
|
4977
4979
|
message: l(r)
|
|
@@ -5003,32 +5005,32 @@ const yr = {
|
|
|
5003
5005
|
},
|
|
5004
5006
|
emits: ["update:modelValue"],
|
|
5005
5007
|
setup(e, { emit: t }) {
|
|
5006
|
-
const a = t, n =
|
|
5008
|
+
const a = t, n = b(() => e.id ?? `select-${crypto.randomUUID()}`), i = b(() => {
|
|
5007
5009
|
var A;
|
|
5008
5010
|
if (!e.modelValue)
|
|
5009
5011
|
return e.placeholder;
|
|
5010
5012
|
const c = (A = e.options) == null ? void 0 : A.find((d) => String(d.value) === String(e.modelValue));
|
|
5011
5013
|
return c ? c.text : e.placeholder;
|
|
5012
|
-
}), o =
|
|
5014
|
+
}), o = b(() => ({
|
|
5013
5015
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5014
|
-
})), r =
|
|
5016
|
+
})), r = b(() => e.errorMessage || e.successMessage), s = b(() => e.errorMessage ? "error" : "success");
|
|
5015
5017
|
return (c, A) => {
|
|
5016
5018
|
const d = ke;
|
|
5017
5019
|
return u(), I("div", {
|
|
5018
5020
|
class: j({ "av-select--dense": e.dense })
|
|
5019
5021
|
}, [
|
|
5020
|
-
|
|
5022
|
+
g("div", {
|
|
5021
5023
|
class: j(["av-select-group", { [`av-select-group--${l(s)}`]: l(r) }])
|
|
5022
5024
|
}, [
|
|
5023
|
-
|
|
5025
|
+
g("label", {
|
|
5024
5026
|
class: "av-label b2-light",
|
|
5025
5027
|
for: l(n)
|
|
5026
5028
|
}, [
|
|
5027
|
-
|
|
5029
|
+
g("span", null, B(e.label), 1),
|
|
5028
5030
|
e.required ? (u(), I("span", Kr, " *")) : D("", !0),
|
|
5029
5031
|
e.hint ? (u(), I("span", Gr, B(e.hint), 1)) : D("", !0)
|
|
5030
5032
|
], 8, Fr),
|
|
5031
|
-
|
|
5033
|
+
g("select", ee({
|
|
5032
5034
|
id: l(n),
|
|
5033
5035
|
class: [{ [`av-select--${l(s)}`]: l(r) }, "av-select"],
|
|
5034
5036
|
name: e.name || l(n),
|
|
@@ -5044,7 +5046,7 @@ const yr = {
|
|
|
5044
5046
|
return a("update:modelValue", (C = f.target) == null ? void 0 : C.value);
|
|
5045
5047
|
})
|
|
5046
5048
|
}), [
|
|
5047
|
-
|
|
5049
|
+
g("option", {
|
|
5048
5050
|
selected: !e.options.some((f) => f.value === e.modelValue),
|
|
5049
5051
|
disabled: "",
|
|
5050
5052
|
value: "",
|
|
@@ -5110,7 +5112,7 @@ const yr = {
|
|
|
5110
5112
|
},
|
|
5111
5113
|
emits: ["click", "next", "previous", "first", "last"],
|
|
5112
5114
|
setup(e, { emit: t }) {
|
|
5113
|
-
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 = {
|
|
5114
5116
|
ArrowRight: "next",
|
|
5115
5117
|
ArrowLeft: "previous",
|
|
5116
5118
|
Home: "first",
|
|
@@ -5143,7 +5145,7 @@ const yr = {
|
|
|
5143
5145
|
class: j(["av-tab-item", { "av-tab-item--compact": e.compact }]),
|
|
5144
5146
|
role: "presentation"
|
|
5145
5147
|
}, [
|
|
5146
|
-
|
|
5148
|
+
g("button", ee(c.$attrs, {
|
|
5147
5149
|
id: e.tabId,
|
|
5148
5150
|
ref_key: "button",
|
|
5149
5151
|
ref: n,
|
|
@@ -5162,7 +5164,7 @@ const yr = {
|
|
|
5162
5164
|
name: e.icon,
|
|
5163
5165
|
size: 2
|
|
5164
5166
|
}, null, 8, ["name"])) : D("", !0),
|
|
5165
|
-
|
|
5167
|
+
g("span", {
|
|
5166
5168
|
class: j(l(o))
|
|
5167
5169
|
}, B(e.title), 3)
|
|
5168
5170
|
], 16, is)
|
|
@@ -5194,26 +5196,26 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5194
5196
|
}),
|
|
5195
5197
|
emits: ["update:modelValue"],
|
|
5196
5198
|
setup(e) {
|
|
5197
|
-
const t = fe(), a =
|
|
5198
|
-
var
|
|
5199
|
-
return ((
|
|
5199
|
+
const t = fe(), a = b(() => {
|
|
5200
|
+
var M;
|
|
5201
|
+
return ((M = t.default) == null ? void 0 : M.call(t)) || [];
|
|
5200
5202
|
}), n = Le(e, "modelValue"), i = U(null), o = U(null), r = ut({}), { tabsStyle: s, updateTabsStyle: c } = rs(
|
|
5201
5203
|
o,
|
|
5202
|
-
|
|
5203
|
-
var
|
|
5204
|
-
return Array.from(((
|
|
5204
|
+
b(() => {
|
|
5205
|
+
var M;
|
|
5206
|
+
return Array.from(((M = i.value) == null ? void 0 : M.querySelectorAll(".av-tab-content")) || []);
|
|
5205
5207
|
}),
|
|
5206
5208
|
n
|
|
5207
5209
|
);
|
|
5208
|
-
function A(
|
|
5209
|
-
if (r[
|
|
5210
|
-
return r[
|
|
5211
|
-
const
|
|
5212
|
-
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;
|
|
5213
5215
|
}
|
|
5214
|
-
function d(
|
|
5215
|
-
const
|
|
5216
|
-
n.value = (n.value +
|
|
5216
|
+
function d(M) {
|
|
5217
|
+
const T = a.value.length;
|
|
5218
|
+
n.value = (n.value + M + T) % T;
|
|
5217
5219
|
}
|
|
5218
5220
|
function f() {
|
|
5219
5221
|
d(-1);
|
|
@@ -5227,22 +5229,22 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5227
5229
|
function v() {
|
|
5228
5230
|
n.value = a.value.length - 1;
|
|
5229
5231
|
}
|
|
5230
|
-
const
|
|
5232
|
+
const y = U(null);
|
|
5231
5233
|
return de(() => {
|
|
5232
|
-
var
|
|
5233
|
-
window.ResizeObserver && (
|
|
5234
|
+
var M;
|
|
5235
|
+
window.ResizeObserver && (y.value = new window.ResizeObserver(() => {
|
|
5234
5236
|
c();
|
|
5235
|
-
})), (
|
|
5237
|
+
})), (M = i.value) == null || M.querySelectorAll(".av-tab-content").forEach((T) => {
|
|
5236
5238
|
var L;
|
|
5237
|
-
|
|
5239
|
+
T && ((L = y.value) == null || L.observe(T));
|
|
5238
5240
|
});
|
|
5239
5241
|
}), ve(() => {
|
|
5240
|
-
var
|
|
5241
|
-
(
|
|
5242
|
-
var
|
|
5243
|
-
L && ((
|
|
5244
|
-
}), (
|
|
5245
|
-
}), (
|
|
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", {
|
|
5246
5248
|
ref_key: "$el",
|
|
5247
5249
|
ref: i,
|
|
5248
5250
|
class: j(["av-tabs", {
|
|
@@ -5250,7 +5252,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5250
5252
|
}]),
|
|
5251
5253
|
style: ce(l(s))
|
|
5252
5254
|
}, [
|
|
5253
|
-
|
|
5255
|
+
g("ul", {
|
|
5254
5256
|
ref_key: "tablist",
|
|
5255
5257
|
ref: o,
|
|
5256
5258
|
class: j(["av-tabs__list", {
|
|
@@ -5259,17 +5261,17 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5259
5261
|
role: "tablist",
|
|
5260
5262
|
"aria-label": e.ariaLabel ?? "Liste d’onglets"
|
|
5261
5263
|
}, [
|
|
5262
|
-
(u(!0), I($, null, ie(l(a), (L,
|
|
5264
|
+
(u(!0), I($, null, ie(l(a), (L, N) => {
|
|
5263
5265
|
var O, V;
|
|
5264
5266
|
return u(), k(os, {
|
|
5265
|
-
key:
|
|
5266
|
-
"tab-id": A(
|
|
5267
|
-
"panel-id": `${A(
|
|
5267
|
+
key: N,
|
|
5268
|
+
"tab-id": A(N),
|
|
5269
|
+
"panel-id": `${A(N)}-panel`,
|
|
5268
5270
|
title: (O = L.props) == null ? void 0 : O.title,
|
|
5269
5271
|
icon: (V = L.props) == null ? void 0 : V.icon,
|
|
5270
5272
|
compact: e.compact,
|
|
5271
|
-
"is-selected": n.value ===
|
|
5272
|
-
onClick: (Z) => n.value =
|
|
5273
|
+
"is-selected": n.value === N,
|
|
5274
|
+
onClick: (Z) => n.value = N,
|
|
5273
5275
|
onNext: C,
|
|
5274
5276
|
onPrevious: f,
|
|
5275
5277
|
onFirst: m,
|
|
@@ -5277,14 +5279,14 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5277
5279
|
}, null, 8, ["tab-id", "panel-id", "title", "icon", "compact", "is-selected", "onClick"]);
|
|
5278
5280
|
}), 128))
|
|
5279
5281
|
], 10, ss),
|
|
5280
|
-
(u(!0), I($, null, ie(l(a), (L,
|
|
5281
|
-
key:
|
|
5282
|
-
"panel-id": `${A(
|
|
5283
|
-
"tab-id": A(
|
|
5284
|
-
"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
|
|
5285
5287
|
}, {
|
|
5286
5288
|
default: G(() => [
|
|
5287
|
-
n.value ===
|
|
5289
|
+
n.value === N ? (u(), k(Me(L.children.default), { key: 0 })) : D("", !0)
|
|
5288
5290
|
]),
|
|
5289
5291
|
_: 2
|
|
5290
5292
|
}, 1032, ["panel-id", "tab-id", "is-visible"]))), 128))
|
|
@@ -5312,22 +5314,22 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5312
5314
|
},
|
|
5313
5315
|
emits: ["update:modelValue"],
|
|
5314
5316
|
setup(e) {
|
|
5315
|
-
const t =
|
|
5317
|
+
const t = b(() => e.id ?? `toggle-${crypto.randomUUID()}`), a = b(() => `${t.value}-label`);
|
|
5316
5318
|
return (n, i) => (u(), I($, null, [
|
|
5317
|
-
|
|
5319
|
+
g("label", {
|
|
5318
5320
|
id: l(a),
|
|
5319
5321
|
for: l(t),
|
|
5320
5322
|
class: j(["av-toggle", {
|
|
5321
5323
|
"av-toggle--disabled": e.disabled
|
|
5322
5324
|
}])
|
|
5323
5325
|
}, [
|
|
5324
|
-
|
|
5326
|
+
g("div", {
|
|
5325
5327
|
class: j(["toggle", {
|
|
5326
5328
|
"toggle--disabled": e.disabled
|
|
5327
5329
|
}])
|
|
5328
5330
|
}, [
|
|
5329
5331
|
(u(), I("svg", fs, [
|
|
5330
|
-
|
|
5332
|
+
g("image", {
|
|
5331
5333
|
href: e.modelValue ? l(As) : l(us),
|
|
5332
5334
|
width: "34",
|
|
5333
5335
|
height: "14"
|
|
@@ -5335,9 +5337,9 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5335
5337
|
])),
|
|
5336
5338
|
e.modelValue ? (u(), I("span", ms, B(e.activeText), 1)) : (u(), I("span", Is, B(e.inactiveText), 1))
|
|
5337
5339
|
], 2),
|
|
5338
|
-
|
|
5340
|
+
g("span", gs, B(e.description), 1)
|
|
5339
5341
|
], 10, ds),
|
|
5340
|
-
|
|
5342
|
+
g("input", {
|
|
5341
5343
|
id: l(t),
|
|
5342
5344
|
style: { display: "none" },
|
|
5343
5345
|
disabled: e.disabled,
|
|
@@ -5407,7 +5409,7 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5407
5409
|
role: "navigation",
|
|
5408
5410
|
"aria-label": e.navAriaLabel
|
|
5409
5411
|
}, [
|
|
5410
|
-
|
|
5412
|
+
g("ul", Es, [
|
|
5411
5413
|
(u(!0), I($, null, ie(e.links, (o, r) => (u(), I("li", { key: r }, [
|
|
5412
5414
|
W(re, {
|
|
5413
5415
|
icon: o.icon,
|
|
@@ -5431,24 +5433,24 @@ const ss = ["aria-label"], cs = /* @__PURE__ */ Q({
|
|
|
5431
5433
|
};
|
|
5432
5434
|
function Ds(e, t) {
|
|
5433
5435
|
return u(), I("svg", Ts, [...t[0] || (t[0] = [
|
|
5434
|
-
|
|
5436
|
+
g("rect", {
|
|
5435
5437
|
width: "213.732",
|
|
5436
5438
|
height: "96.9",
|
|
5437
5439
|
fill: "url(#pattern0_40000620_15397)"
|
|
5438
5440
|
}, null, -1),
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
+
g("defs", null, [
|
|
5442
|
+
g("pattern", {
|
|
5441
5443
|
id: "pattern0_40000620_15397",
|
|
5442
5444
|
patternContentUnits: "objectBoundingBox",
|
|
5443
5445
|
width: "1",
|
|
5444
5446
|
height: "1"
|
|
5445
5447
|
}, [
|
|
5446
|
-
|
|
5448
|
+
g("use", {
|
|
5447
5449
|
"xlink:href": "#image0_40000620_15397",
|
|
5448
5450
|
transform: "matrix(0.00087108 0 0 0.00192134 0 -0.0139577)"
|
|
5449
5451
|
})
|
|
5450
5452
|
]),
|
|
5451
|
-
|
|
5453
|
+
g("image", {
|
|
5452
5454
|
id: "image0_40000620_15397",
|
|
5453
5455
|
width: "1148",
|
|
5454
5456
|
height: "535",
|
|
@@ -5501,11 +5503,11 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5501
5503
|
setup(e, { emit: t }) {
|
|
5502
5504
|
const a = t, n = fe(), { isBelowLg: i } = nt(), o = Ft(() => e.languageSelector), r = U(!1), s = U(!1), c = U(!1);
|
|
5503
5505
|
function A() {
|
|
5504
|
-
var
|
|
5505
|
-
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();
|
|
5506
5508
|
}
|
|
5507
|
-
function d(
|
|
5508
|
-
|
|
5509
|
+
function d(M) {
|
|
5510
|
+
M.key === "Escape" && A();
|
|
5509
5511
|
}
|
|
5510
5512
|
de(() => {
|
|
5511
5513
|
document.addEventListener("keydown", d);
|
|
@@ -5514,24 +5516,24 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5514
5516
|
});
|
|
5515
5517
|
function f() {
|
|
5516
5518
|
c.value = !0, r.value = !0, s.value = !1, setTimeout(() => {
|
|
5517
|
-
var
|
|
5518
|
-
(
|
|
5519
|
+
var M;
|
|
5520
|
+
(M = document.getElementById("close-button")) == null || M.focus();
|
|
5519
5521
|
});
|
|
5520
5522
|
}
|
|
5521
5523
|
function C() {
|
|
5522
5524
|
c.value = !0, r.value = !1, s.value = !0;
|
|
5523
5525
|
}
|
|
5524
|
-
const m = A, v =
|
|
5525
|
-
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) => {
|
|
5526
5528
|
var Z, F, te;
|
|
5527
|
-
const L = Mt("RouterLink"),
|
|
5529
|
+
const L = Mt("RouterLink"), N = re, O = Ea, V = On;
|
|
5528
5530
|
return u(), I("header", ws, [
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5531
|
+
g("div", Os, [
|
|
5532
|
+
g("div", Ss, [
|
|
5533
|
+
g("div", Qs, [
|
|
5534
|
+
g("div", xs, [
|
|
5535
|
+
g("div", ks, [
|
|
5536
|
+
g("div", ps, [
|
|
5535
5537
|
W(L, {
|
|
5536
5538
|
to: e.homeTo,
|
|
5537
5539
|
title: l(v)
|
|
@@ -5542,8 +5544,8 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5542
5544
|
_: 1
|
|
5543
5545
|
}, 8, ["to", "title"])
|
|
5544
5546
|
]),
|
|
5545
|
-
e.showSearch || l(
|
|
5546
|
-
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, {
|
|
5547
5549
|
key: 0,
|
|
5548
5550
|
class: "search-button",
|
|
5549
5551
|
label: e.showSearchLabel,
|
|
@@ -5552,9 +5554,9 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5552
5554
|
title: e.showSearchLabel,
|
|
5553
5555
|
icon: l(R).MAGNIFY,
|
|
5554
5556
|
"icon-only": "",
|
|
5555
|
-
onClick:
|
|
5557
|
+
onClick: T[0] || (T[0] = ue((x) => C(), ["prevent", "stop"]))
|
|
5556
5558
|
}, null, 8, ["label", "aria-label", "title", "icon"])) : D("", !0),
|
|
5557
|
-
l(
|
|
5559
|
+
l(y) || (F = e.quickLinks) != null && F.length ? (u(), k(N, {
|
|
5558
5560
|
key: 1,
|
|
5559
5561
|
id: "button-menu",
|
|
5560
5562
|
variant: "OUTLINED",
|
|
@@ -5566,26 +5568,26 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5566
5568
|
title: e.menuLabel,
|
|
5567
5569
|
"data-testid": "open-menu-btn",
|
|
5568
5570
|
"icon-only": "",
|
|
5569
|
-
onClick:
|
|
5571
|
+
onClick: T[1] || (T[1] = ue((x) => f(), ["prevent", "stop"]))
|
|
5570
5572
|
}, null, 8, ["icon", "label", "aria-label", "title"])) : D("", !0)
|
|
5571
5573
|
])) : D("", !0)
|
|
5572
5574
|
]),
|
|
5573
5575
|
e.serviceTitle ? (u(), I("div", zs, [
|
|
5574
|
-
|
|
5575
|
-
P(
|
|
5576
|
+
g("span", Bs, B(e.serviceTitle), 1),
|
|
5577
|
+
P(M.$slots, "serviceDescription", {}, void 0, !0)
|
|
5576
5578
|
])) : D("", !0)
|
|
5577
5579
|
]),
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
P(
|
|
5580
|
+
g("div", Ps, [
|
|
5581
|
+
g("div", Ws, [
|
|
5582
|
+
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5581
5583
|
!l(r) && ((te = e.quickLinks) != null && te.length) ? (u(), k(Xt, {
|
|
5582
5584
|
key: 0,
|
|
5583
5585
|
links: e.quickLinks,
|
|
5584
5586
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
5585
5587
|
}, null, 8, ["links", "nav-aria-label"])) : D("", !0),
|
|
5586
|
-
P(
|
|
5588
|
+
P(M.$slots, "after-quick-links", {}, void 0, !0),
|
|
5587
5589
|
l(o) ? (u(), k(kt, ee({ key: 1 }, l(o), {
|
|
5588
|
-
onSelect:
|
|
5590
|
+
onSelect: T[2] || (T[2] = (x) => a("languageSelect", x))
|
|
5589
5591
|
}), null, 16)) : D("", !0)
|
|
5590
5592
|
]),
|
|
5591
5593
|
e.showSearch ? (u(), I("div", Us, [
|
|
@@ -5595,21 +5597,21 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5595
5597
|
"model-value": e.modelValue,
|
|
5596
5598
|
placeholder: e.placeholder,
|
|
5597
5599
|
style: { "justify-content": "flex-end" },
|
|
5598
|
-
"onUpdate:modelValue":
|
|
5599
|
-
onSearch:
|
|
5600
|
+
"onUpdate:modelValue": T[3] || (T[3] = (x) => a("update:modelValue", x)),
|
|
5601
|
+
onSearch: T[4] || (T[4] = (x) => a("search", x))
|
|
5600
5602
|
}, null, 8, ["id", "label", "model-value", "placeholder"])
|
|
5601
5603
|
])) : D("", !0)
|
|
5602
5604
|
])
|
|
5603
5605
|
]),
|
|
5604
|
-
P(
|
|
5606
|
+
P(M.$slots, "default", {}, void 0, !0)
|
|
5605
5607
|
])
|
|
5606
5608
|
]),
|
|
5607
|
-
|
|
5608
|
-
l(
|
|
5609
|
-
P(
|
|
5609
|
+
g("div", Vs, [
|
|
5610
|
+
l(y) && !l(c) ? (u(), I("div", Hs, [
|
|
5611
|
+
P(M.$slots, "mainnav", { hidemodal: A }, void 0, !0)
|
|
5610
5612
|
])) : D("", !0)
|
|
5611
5613
|
]),
|
|
5612
|
-
l(i) && (e.showSearch || l(
|
|
5614
|
+
l(i) && (e.showSearch || l(y) || e.quickLinks && e.quickLinks.length || l(o)) ? (u(), k(V, {
|
|
5613
5615
|
key: 0,
|
|
5614
5616
|
id: "header-navigation",
|
|
5615
5617
|
show: l(c),
|
|
@@ -5623,19 +5625,19 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5623
5625
|
onClose: A
|
|
5624
5626
|
}, {
|
|
5625
5627
|
default: G(() => [
|
|
5626
|
-
|
|
5628
|
+
g("div", Rs, [
|
|
5627
5629
|
W(O, {
|
|
5628
5630
|
"cancel-label": e.closeMenuModalLabel,
|
|
5629
5631
|
"cancel-icon": l(R).CLOSE_CIRCLE_OUTLINE,
|
|
5630
5632
|
onCancel: A
|
|
5631
5633
|
}, null, 8, ["cancel-label", "cancel-icon"])
|
|
5632
5634
|
]),
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
+
g("div", Zs, [
|
|
5636
|
+
g("div", Xs, [
|
|
5635
5637
|
l(o) ? (u(), k(kt, ee({ key: 0 }, l(o), {
|
|
5636
|
-
onSelect:
|
|
5638
|
+
onSelect: T[5] || (T[5] = (x) => l(o).currentLanguage = x.codeIso)
|
|
5637
5639
|
}), null, 16)) : D("", !0),
|
|
5638
|
-
P(
|
|
5640
|
+
P(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
5639
5641
|
l(r) ? (u(), k(Xt, {
|
|
5640
5642
|
key: 1,
|
|
5641
5643
|
role: "navigation",
|
|
@@ -5643,9 +5645,9 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5643
5645
|
"nav-aria-label": e.quickLinksAriaLabel,
|
|
5644
5646
|
onLinkClick: l(m)
|
|
5645
5647
|
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) : D("", !0),
|
|
5646
|
-
P(
|
|
5648
|
+
P(M.$slots, "after-quick-links", {}, void 0, !0)
|
|
5647
5649
|
]),
|
|
5648
|
-
l(c) ? P(
|
|
5650
|
+
l(c) ? P(M.$slots, "mainnav", {
|
|
5649
5651
|
key: 0,
|
|
5650
5652
|
hidemodal: A
|
|
5651
5653
|
}, void 0, !0) : D("", !0),
|
|
@@ -5654,8 +5656,8 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5654
5656
|
"searchbar-id": e.searchbarId,
|
|
5655
5657
|
"model-value": e.modelValue,
|
|
5656
5658
|
placeholder: e.placeholder,
|
|
5657
|
-
"onUpdate:modelValue":
|
|
5658
|
-
onSearch:
|
|
5659
|
+
"onUpdate:modelValue": T[6] || (T[6] = (x) => a("update:modelValue", x)),
|
|
5660
|
+
onSearch: T[7] || (T[7] = (x) => a("search", x))
|
|
5659
5661
|
}, null, 8, ["searchbar-id", "model-value", "placeholder"])
|
|
5660
5662
|
])) : D("", !0)
|
|
5661
5663
|
])
|
|
@@ -5671,12 +5673,12 @@ const Ls = /* @__PURE__ */ z(Ns, [["render", Ds]]), ws = {
|
|
|
5671
5673
|
};
|
|
5672
5674
|
function Ks(e, t) {
|
|
5673
5675
|
return u(), I("svg", Fs, [...t[0] || (t[0] = [
|
|
5674
|
-
|
|
5676
|
+
g("path", {
|
|
5675
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",
|
|
5676
5678
|
style: { fill: "#ed184e", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
5677
5679
|
transform: "translate(20.294 -79.068)"
|
|
5678
5680
|
}, null, -1),
|
|
5679
|
-
|
|
5681
|
+
g("path", {
|
|
5680
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",
|
|
5681
5683
|
style: { fill: "#3871c1", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
5682
5684
|
transform: "translate(20.294 -79.068)"
|
|
@@ -5694,7 +5696,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5694
5696
|
se((a) => ({
|
|
5695
5697
|
v1dadd14a: a.color
|
|
5696
5698
|
}));
|
|
5697
|
-
const t =
|
|
5699
|
+
const t = b(() => ({
|
|
5698
5700
|
...e.width && { width: e.width },
|
|
5699
5701
|
...e.height && { height: e.height }
|
|
5700
5702
|
}));
|
|
@@ -5716,7 +5718,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5716
5718
|
collapsing: a,
|
|
5717
5719
|
cssExpanded: n,
|
|
5718
5720
|
doExpand: i
|
|
5719
|
-
} = Ze(), { isAboveMd: o } = nt(), r =
|
|
5721
|
+
} = Ze(), { isAboveMd: o } = nt(), r = b(() => e.id ?? `breadcrumb-${crypto.randomUUID()}`), s = b(() => ({
|
|
5720
5722
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_RIGHT})`
|
|
5721
5723
|
})), c = U(o.value);
|
|
5722
5724
|
return oe(c, (A, d) => {
|
|
@@ -5742,7 +5744,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5742
5744
|
small: "",
|
|
5743
5745
|
onClick: d[0] || (d[0] = (m) => c.value = !l(c))
|
|
5744
5746
|
}, null, 8, ["label", "aria-expanded", "aria-controls"])),
|
|
5745
|
-
|
|
5747
|
+
g("div", {
|
|
5746
5748
|
id: l(r),
|
|
5747
5749
|
ref_key: "collapse",
|
|
5748
5750
|
ref: t,
|
|
@@ -5751,7 +5753,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5751
5753
|
"av-collapsing": l(a)
|
|
5752
5754
|
}])
|
|
5753
5755
|
}, [
|
|
5754
|
-
|
|
5756
|
+
g("ol", tc, [
|
|
5755
5757
|
(u(!0), I($, null, ie(e.links, (m, v) => (u(), I("li", {
|
|
5756
5758
|
key: v,
|
|
5757
5759
|
class: "av-breadcrumb__item",
|
|
@@ -5786,7 +5788,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5786
5788
|
active: { type: Boolean }
|
|
5787
5789
|
},
|
|
5788
5790
|
setup(e) {
|
|
5789
|
-
const t =
|
|
5791
|
+
const t = b(() => e.id ?? `nav-item-${crypto.randomUUID()}`);
|
|
5790
5792
|
return (a, n) => (u(), I("li", {
|
|
5791
5793
|
id: l(t),
|
|
5792
5794
|
class: j(["av-nav__item", { "av-nav__item--active": e.active }]),
|
|
@@ -5802,7 +5804,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5802
5804
|
active: { type: Boolean }
|
|
5803
5805
|
},
|
|
5804
5806
|
setup(e) {
|
|
5805
|
-
const t =
|
|
5807
|
+
const t = b(() => e.id ?? `nav-menu-item-${crypto.randomUUID()}`);
|
|
5806
5808
|
return (a, n) => (u(), I("li", {
|
|
5807
5809
|
id: l(t),
|
|
5808
5810
|
class: "av-menu__item",
|
|
@@ -5824,7 +5826,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5824
5826
|
},
|
|
5825
5827
|
emits: ["toggleId"],
|
|
5826
5828
|
setup(e) {
|
|
5827
|
-
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()) ?? (() => {
|
|
5828
5830
|
});
|
|
5829
5831
|
return (r, s) => {
|
|
5830
5832
|
const c = ne, A = Mt("RouterLink");
|
|
@@ -5840,7 +5842,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5840
5842
|
r.$emit("toggleId", l(a)), e.onClick(d);
|
|
5841
5843
|
})
|
|
5842
5844
|
}, [
|
|
5843
|
-
|
|
5845
|
+
g("span", uc, B(e.text), 1)
|
|
5844
5846
|
], 10, Ac)) : (u(), k(A, {
|
|
5845
5847
|
key: 1,
|
|
5846
5848
|
class: "av-nav__link",
|
|
@@ -5857,7 +5859,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5857
5859
|
name: e.icon,
|
|
5858
5860
|
size: 1.5
|
|
5859
5861
|
}, null, 8, ["name"])) : D("", !0),
|
|
5860
|
-
|
|
5862
|
+
g("span", dc, B(e.text), 1)
|
|
5861
5863
|
]),
|
|
5862
5864
|
_: 1
|
|
5863
5865
|
}, 8, ["to"]));
|
|
@@ -5880,7 +5882,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5880
5882
|
cssExpanded: n,
|
|
5881
5883
|
doExpand: i,
|
|
5882
5884
|
onTransitionEnd: o
|
|
5883
|
-
} = Ze(), r =
|
|
5885
|
+
} = Ze(), r = b(() => e.id ?? `menu-${crypto.randomUUID()}`), s = b(() => r.value === e.expandedId), c = b(() => ({
|
|
5884
5886
|
"--icon-path": `url(${me.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5885
5887
|
}));
|
|
5886
5888
|
return oe(s, (A, d) => {
|
|
@@ -5888,7 +5890,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5888
5890
|
}), de(() => {
|
|
5889
5891
|
s.value && i(!0);
|
|
5890
5892
|
}), (A, d) => (u(), I($, null, [
|
|
5891
|
-
|
|
5893
|
+
g("button", {
|
|
5892
5894
|
class: "av-nav__btn",
|
|
5893
5895
|
"aria-expanded": l(s),
|
|
5894
5896
|
"aria-current": e.active || void 0,
|
|
@@ -5896,9 +5898,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5896
5898
|
style: ce(l(c)),
|
|
5897
5899
|
onClick: d[0] || (d[0] = (f) => A.$emit("toggleId", l(r)))
|
|
5898
5900
|
}, [
|
|
5899
|
-
|
|
5901
|
+
g("span", null, B(e.title), 1)
|
|
5900
5902
|
], 12, vc),
|
|
5901
|
-
|
|
5903
|
+
g("div", {
|
|
5902
5904
|
id: l(r),
|
|
5903
5905
|
ref_key: "collapse",
|
|
5904
5906
|
ref: t,
|
|
@@ -5906,7 +5908,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5906
5908
|
"data-testid": "navigation-menu",
|
|
5907
5909
|
onTransitionend: d[2] || (d[2] = (f) => l(o)(l(s)))
|
|
5908
5910
|
}, [
|
|
5909
|
-
|
|
5911
|
+
g("ul", Ic, [
|
|
5910
5912
|
(u(!0), I($, null, ie(e.links, (f, C) => (u(), k(cc, { key: C }, {
|
|
5911
5913
|
default: G(() => [
|
|
5912
5914
|
W(Ta, ee({ ref_for: !0 }, f, {
|
|
@@ -5930,7 +5932,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5930
5932
|
navItems: {}
|
|
5931
5933
|
},
|
|
5932
5934
|
setup(e) {
|
|
5933
|
-
const t =
|
|
5935
|
+
const t = b(() => e.id ?? `nav-${crypto.randomUUID()}`), a = U(void 0);
|
|
5934
5936
|
function n(s) {
|
|
5935
5937
|
if (s === a.value) {
|
|
5936
5938
|
a.value = void 0;
|
|
@@ -5958,13 +5960,13 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
5958
5960
|
}), ve(() => {
|
|
5959
5961
|
document.removeEventListener("click", o), document.removeEventListener("keydown", r);
|
|
5960
5962
|
}), (s, c) => (u(), I("div", hc, [
|
|
5961
|
-
|
|
5963
|
+
g("nav", {
|
|
5962
5964
|
id: l(t),
|
|
5963
5965
|
class: "av-nav",
|
|
5964
5966
|
role: "navigation",
|
|
5965
5967
|
"aria-label": e.label
|
|
5966
5968
|
}, [
|
|
5967
|
-
|
|
5969
|
+
g("ul", Cc, [
|
|
5968
5970
|
(u(!0), I($, null, ie(e.navItems, (A, d) => (u(), k(oc, { key: d }, {
|
|
5969
5971
|
default: G(() => [
|
|
5970
5972
|
A.to && A.text ? (u(), k(Ta, ee({
|
|
@@ -6009,41 +6011,41 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6009
6011
|
},
|
|
6010
6012
|
emits: ["update:current-page"],
|
|
6011
6013
|
setup(e, { emit: t }) {
|
|
6012
|
-
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;
|
|
6013
6015
|
return (m, v) => {
|
|
6014
|
-
var
|
|
6016
|
+
var y, M, T, L;
|
|
6015
6017
|
return u(), I("nav", {
|
|
6016
6018
|
role: "navigation",
|
|
6017
6019
|
class: "av-pagination av-nav",
|
|
6018
6020
|
"aria-label": e.ariaLabel
|
|
6019
6021
|
}, [
|
|
6020
|
-
|
|
6022
|
+
g("ul", Ec, [
|
|
6021
6023
|
e.compact && e.compactCurrentPageLabel ? (u(), I("li", Nc, [
|
|
6022
|
-
|
|
6024
|
+
g("span", Tc, B(e.compactCurrentPageLabel), 1)
|
|
6023
6025
|
])) : D("", !0),
|
|
6024
|
-
|
|
6026
|
+
g("li", null, [
|
|
6025
6027
|
e.compact ? D("", !0) : (u(), I("a", {
|
|
6026
6028
|
key: 0,
|
|
6027
|
-
href: (
|
|
6029
|
+
href: (y = e.pages[0]) == null ? void 0 : y.href,
|
|
6028
6030
|
class: "av-pagination__link",
|
|
6029
6031
|
title: e.firstPageLabel,
|
|
6030
6032
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6031
|
-
onClick: v[0] || (v[0] = ue((
|
|
6033
|
+
onClick: v[0] || (v[0] = ue((N) => c(), ["prevent"]))
|
|
6032
6034
|
}, [
|
|
6033
6035
|
W(ne, {
|
|
6034
6036
|
name: l(R).PAGE_FIRST,
|
|
6035
6037
|
size: 1.5
|
|
6036
6038
|
}, null, 8, ["name"]),
|
|
6037
|
-
|
|
6039
|
+
g("span", Lc, B(e.firstPageLabel), 1)
|
|
6038
6040
|
], 8, Dc))
|
|
6039
6041
|
]),
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
href: (
|
|
6042
|
+
g("li", null, [
|
|
6043
|
+
g("a", {
|
|
6044
|
+
href: (M = e.pages[Math.max(e.currentPage - 1, 0)]) == null ? void 0 : M.href,
|
|
6043
6045
|
class: "av-pagination__link",
|
|
6044
6046
|
title: e.prevPageLabel,
|
|
6045
6047
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6046
|
-
onClick: v[1] || (v[1] = ue((
|
|
6048
|
+
onClick: v[1] || (v[1] = ue((N) => A(), ["prevent"]))
|
|
6047
6049
|
}, [
|
|
6048
6050
|
W(ne, {
|
|
6049
6051
|
name: l(R).NAVIGATE_BEFORE,
|
|
@@ -6052,27 +6054,27 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6052
6054
|
e.compact ? D("", !0) : (u(), I("span", Oc, B(e.prevPageLabel), 1))
|
|
6053
6055
|
], 8, wc)
|
|
6054
6056
|
]),
|
|
6055
|
-
e.compact ? D("", !0) : (u(!0), I($, { key: 1 }, ie(l(o), (
|
|
6056
|
-
|
|
6057
|
-
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,
|
|
6058
6060
|
class: "av-pagination__link",
|
|
6059
|
-
title:
|
|
6060
|
-
"aria-current": C(
|
|
6061
|
-
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"])
|
|
6062
6064
|
}, [
|
|
6063
|
-
l(o).indexOf(
|
|
6064
|
-
De(" " + B(
|
|
6065
|
-
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)
|
|
6066
6068
|
], 8, Sc)
|
|
6067
6069
|
]))), 128)),
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
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,
|
|
6071
6073
|
class: "av-pagination__link",
|
|
6072
6074
|
title: e.nextPageLabel,
|
|
6073
6075
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6074
6076
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6075
|
-
onClick: v[2] || (v[2] = ue((
|
|
6077
|
+
onClick: v[2] || (v[2] = ue((N) => d(), ["prevent"]))
|
|
6076
6078
|
}, [
|
|
6077
6079
|
e.compact ? D("", !0) : (u(), I("span", pc, B(e.nextPageLabel), 1)),
|
|
6078
6080
|
W(ne, {
|
|
@@ -6081,7 +6083,7 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6081
6083
|
}, null, 8, ["name"])
|
|
6082
6084
|
], 8, kc)
|
|
6083
6085
|
]),
|
|
6084
|
-
|
|
6086
|
+
g("li", null, [
|
|
6085
6087
|
e.compact ? D("", !0) : (u(), I("a", {
|
|
6086
6088
|
key: 0,
|
|
6087
6089
|
class: "av-pagination__link",
|
|
@@ -6089,9 +6091,9 @@ const Gs = { render: Ks }, Js = { class: "svg-wrapper" }, $s = /* @__PURE__ */ Q
|
|
|
6089
6091
|
title: e.lastPageLabel,
|
|
6090
6092
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6091
6093
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6092
|
-
onClick: v[3] || (v[3] = ue((
|
|
6094
|
+
onClick: v[3] || (v[3] = ue((N) => f(), ["prevent"]))
|
|
6093
6095
|
}, [
|
|
6094
|
-
|
|
6096
|
+
g("span", zc, B(e.lastPageLabel), 1),
|
|
6095
6097
|
W(ne, {
|
|
6096
6098
|
name: l(R).PAGE_LAST,
|
|
6097
6099
|
size: 1.5
|
|
@@ -6135,12 +6137,12 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6135
6137
|
v4d5b7c17: l(c),
|
|
6136
6138
|
v4a813d87: d.padding
|
|
6137
6139
|
}));
|
|
6138
|
-
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({
|
|
6139
6141
|
get: () => t.collapsible ? a.value : !1,
|
|
6140
6142
|
set: (d) => {
|
|
6141
6143
|
t.collapsible && (a.value = d);
|
|
6142
6144
|
}
|
|
6143
|
-
}), c =
|
|
6145
|
+
}), c = b(() => t.collapsible && s.value ? i.value : n.value);
|
|
6144
6146
|
function A() {
|
|
6145
6147
|
t.collapsible && (s.value = !s.value);
|
|
6146
6148
|
}
|
|
@@ -6160,7 +6162,7 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6160
6162
|
onClick: A
|
|
6161
6163
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
6162
6164
|
])) : D("", !0),
|
|
6163
|
-
|
|
6165
|
+
g("div", Uc, [
|
|
6164
6166
|
P(d.$slots, "default", {}, void 0, !0)
|
|
6165
6167
|
])
|
|
6166
6168
|
], 10, Pc));
|
|
@@ -6232,34 +6234,34 @@ const Pc = ["id", "aria-label"], Wc = {
|
|
|
6232
6234
|
return se((t) => ({
|
|
6233
6235
|
v2cd1b68a: t.width
|
|
6234
6236
|
})), (t, a) => (u(), I("div", Zc, [
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
+
g("div", Xc, [
|
|
6238
|
+
g("div", {
|
|
6237
6239
|
class: "step step--active",
|
|
6238
6240
|
"aria-current": e.currentStep === 0 ? "step" : void 0
|
|
6239
6241
|
}, [...a[0] || (a[0] = [
|
|
6240
|
-
|
|
6242
|
+
g("span", { class: "b1-regular" }, "1", -1)
|
|
6241
6243
|
])], 8, Yc),
|
|
6242
6244
|
(u(!0), I($, null, ie(e.steps.slice(1, e.steps.length), (n, i) => (u(), I("div", {
|
|
6243
6245
|
key: i,
|
|
6244
6246
|
class: "steps-container"
|
|
6245
6247
|
}, [
|
|
6246
|
-
|
|
6248
|
+
g("div", {
|
|
6247
6249
|
class: j(["separator", { "separator--active": i + 1 <= e.currentStep }])
|
|
6248
6250
|
}, null, 2),
|
|
6249
|
-
|
|
6251
|
+
g("div", {
|
|
6250
6252
|
class: j(["step", { "step--active": i + 1 <= e.currentStep }]),
|
|
6251
6253
|
"aria-current": i + 1 === e.currentStep ? "step" : void 0
|
|
6252
6254
|
}, [
|
|
6253
|
-
|
|
6255
|
+
g("span", Fc, B(i + 2), 1)
|
|
6254
6256
|
], 10, qc)
|
|
6255
6257
|
]))), 128))
|
|
6256
6258
|
]),
|
|
6257
|
-
|
|
6259
|
+
g("div", Kc, [
|
|
6258
6260
|
(u(!0), I($, null, ie(e.steps, (n, i) => (u(), I("div", {
|
|
6259
6261
|
key: i,
|
|
6260
6262
|
class: "label-container"
|
|
6261
6263
|
}, [
|
|
6262
|
-
|
|
6264
|
+
g("span", {
|
|
6263
6265
|
class: j(["label", {
|
|
6264
6266
|
"b1-bold": i <= e.currentStep,
|
|
6265
6267
|
"b1-light": i > e.currentStep
|
|
@@ -6327,7 +6329,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6327
6329
|
}), gt(() => {
|
|
6328
6330
|
A();
|
|
6329
6331
|
}), (f, C) => (u(), I("div", $c, [
|
|
6330
|
-
|
|
6332
|
+
g("div", {
|
|
6331
6333
|
ref: d,
|
|
6332
6334
|
class: "av-popover-trigger-wrapper"
|
|
6333
6335
|
}, [
|
|
@@ -6389,7 +6391,7 @@ const $c = { class: "av-popover-wrapper" }, _c = /* @__PURE__ */ Q({
|
|
|
6389
6391
|
}, null, 8, ["icon", "label", "aria-label", "variant", "small", "icon-only", "onClick"])
|
|
6390
6392
|
]),
|
|
6391
6393
|
popover: G(({ close: r }) => [
|
|
6392
|
-
|
|
6394
|
+
g("div", tA, [
|
|
6393
6395
|
(u(!0), I($, null, ie(e.items, (s) => (u(), k(re, {
|
|
6394
6396
|
key: s.name,
|
|
6395
6397
|
class: "av-dropdown__menu-item",
|
|
@@ -6460,7 +6462,7 @@ const nA = {
|
|
|
6460
6462
|
},
|
|
6461
6463
|
setup(e, { slots: t, emit: a }) {
|
|
6462
6464
|
let n;
|
|
6463
|
-
const i = U(null), o =
|
|
6465
|
+
const i = U(null), o = b(() => {
|
|
6464
6466
|
const s = i.value;
|
|
6465
6467
|
return s && (s instanceof HTMLElement ? s : s.$el);
|
|
6466
6468
|
});
|
|
@@ -6525,7 +6527,7 @@ const nA = {
|
|
|
6525
6527
|
},
|
|
6526
6528
|
emits: ["close", "confirm"],
|
|
6527
6529
|
setup(e, { emit: t }) {
|
|
6528
|
-
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();
|
|
6529
6531
|
oe(() => e.opened, (A) => {
|
|
6530
6532
|
var d, f, C;
|
|
6531
6533
|
A ? ((d = s.value) == null || d.showModal(), (f = r.value) == null || f.focus()) : (C = s.value) == null || C.close(), c(A);
|
|
@@ -6542,7 +6544,7 @@ const nA = {
|
|
|
6542
6544
|
return u(), k(Kt, { to: "body" }, [
|
|
6543
6545
|
e.opened ? (u(), k(l(iA), { key: 0 }, {
|
|
6544
6546
|
default: G(() => [
|
|
6545
|
-
|
|
6547
|
+
g("dialog", {
|
|
6546
6548
|
id: l(i),
|
|
6547
6549
|
ref_key: "modal",
|
|
6548
6550
|
ref: s,
|
|
@@ -6553,16 +6555,16 @@ const nA = {
|
|
|
6553
6555
|
open: e.opened,
|
|
6554
6556
|
onKeydown: d[2] || (d[2] = Ae((C) => a("close"), ["esc"]))
|
|
6555
6557
|
}, [
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6558
|
+
g("div", oA, [
|
|
6559
|
+
g("div", rA, [
|
|
6560
|
+
g("div", sA, [
|
|
6561
|
+
g("div", cA, [
|
|
6560
6562
|
n.header ? (u(), I("div", AA, [
|
|
6561
6563
|
P(A.$slots, "header", {}, void 0, !0)
|
|
6562
6564
|
])) : D("", !0),
|
|
6563
6565
|
P(A.$slots, "default", {}, void 0, !0)
|
|
6564
6566
|
]),
|
|
6565
|
-
|
|
6567
|
+
g("div", uA, [
|
|
6566
6568
|
W(f, {
|
|
6567
6569
|
ref_key: "closeBtn",
|
|
6568
6570
|
ref: r,
|