@avenirs-esr/avenirs-dsav 0.1.121 → 0.1.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avenirs-dsav.css +1 -1
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +2 -2
- package/dist/components/interaction/inputs/AvPeriodInput/AvPeriodInput.stub.d.ts +40 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +6 -6
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +822 -825
- package/dist/test-utils.cjs.js +9 -9
- package/dist/test-utils.es.js +49 -27
- package/dist/tests/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, useCssVars as
|
|
1
|
+
import { defineComponent as p, useCssVars as re, computed as I, createElementBlock as b, openBlock as d, normalizeStyle as de, normalizeClass as Q, unref as r, createElementVNode as M, toDisplayString as W, createPropsRestProxy as Ba, createBlock as S, resolveDynamicComponent as he, mergeProps as _, withCtx as K, createCommentVNode as L, createVNode as V, Fragment as $, renderList as ie, useSlots as me, createTextVNode as Le, renderSlot as U, ref as z, normalizeProps as Pa, withDirectives as Et, vShow as $t, TransitionGroup as Wa, onMounted as ve, watch as se, onUnmounted as ge, Comment as Ua, cloneVNode as Va, toRefs as _t, withModifiers as ue, inject as it, toRef as ea, provide as Nt, nextTick as rt, getCurrentScope as Ha, onScopeDispose as Ra, getCurrentInstance as Tt, hasInjectionContext as Dt, isRef as Lt, toValue as le, shallowRef as Ee, reactive as bt, watchEffect as Za, onBeforeUnmount as ta, Teleport as aa, withKeys as Ae, mergeModels as ye, useModel as we, vModelCheckbox as Ya, useAttrs as Xa, createSlots as Je, useTemplateRef as qa, resolveComponent as wt } from "vue";
|
|
2
2
|
import { r as na } from "./injection-key.es.js";
|
|
3
3
|
const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
4
4
|
__name: "AvBadge",
|
|
@@ -12,15 +12,15 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
12
12
|
ellipsis: { type: Boolean, default: !1 }
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
|
|
15
|
+
re((l) => ({
|
|
16
16
|
v9916578e: l.color,
|
|
17
17
|
v5013efaa: l.backgroundColor,
|
|
18
18
|
v418db2ed: l.borderColor
|
|
19
19
|
}));
|
|
20
|
-
const t =
|
|
20
|
+
const t = I(() => {
|
|
21
21
|
var l, i;
|
|
22
22
|
return (l = e.icon) != null && l.startsWith("data:") ? null : (i = e.icon) == null ? void 0 : i.replace(":", "-");
|
|
23
|
-
}), a =
|
|
23
|
+
}), a = I(() => `--icon-${t.value}`), n = I(() => t.value ? { "--icon-path": `var(${a.value})` } : e.icon ? { "--icon-path": `url(${e.icon})` } : {});
|
|
24
24
|
return (l, i) => (d(), b("p", {
|
|
25
25
|
class: Q(["av-badge av-row av-align-center av-py-none av-m-none", {
|
|
26
26
|
"av-badge--sm av-px-xxs": e.small,
|
|
@@ -29,9 +29,9 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
29
29
|
"av-badge--no-icon": !e.icon
|
|
30
30
|
}]),
|
|
31
31
|
title: e.ellipsis ? e.label : void 0,
|
|
32
|
-
style:
|
|
32
|
+
style: de(r(n))
|
|
33
33
|
}, [
|
|
34
|
-
|
|
34
|
+
M("span", {
|
|
35
35
|
class: Q({
|
|
36
36
|
"av-ellipsis": e.ellipsis,
|
|
37
37
|
"caption-regular": e.small,
|
|
@@ -57,11 +57,11 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
57
57
|
color: { default: "currentColor" }
|
|
58
58
|
},
|
|
59
59
|
setup(e) {
|
|
60
|
-
|
|
60
|
+
re((l) => ({
|
|
61
61
|
v741cd552: r(t),
|
|
62
62
|
v5dce2641: l.color
|
|
63
63
|
}));
|
|
64
|
-
const t =
|
|
64
|
+
const t = I(() => `${e.size}rem`), a = I(() => e.name.replace(":", "-")), n = I(() => `--icon-${a.value}`);
|
|
65
65
|
return (l, i) => (d(), b("div", {
|
|
66
66
|
class: Q(["av-icon", {
|
|
67
67
|
"av-icon--spin": e.animation === "spin",
|
|
@@ -74,15 +74,15 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
74
74
|
"av-icon--slow": e.speed === "slow",
|
|
75
75
|
"av-icon--fast": e.speed === "fast"
|
|
76
76
|
}]),
|
|
77
|
-
style:
|
|
77
|
+
style: de({
|
|
78
78
|
transform: e.flip === "horizontal" ? "scaleX(-1)" : e.flip === "vertical" ? "scaleY(-1)" : e.flip === "both" ? "scale(-1,-1)" : "none"
|
|
79
79
|
}),
|
|
80
80
|
title: e.title,
|
|
81
81
|
"aria-hidden": "true"
|
|
82
82
|
}, [
|
|
83
|
-
|
|
83
|
+
M("span", {
|
|
84
84
|
class: "av-icon__icon",
|
|
85
|
-
style:
|
|
85
|
+
style: de({ "--icon": `var(${r(n)})`, width: r(t), height: r(t) })
|
|
86
86
|
}, null, 4)
|
|
87
87
|
], 14, Ga));
|
|
88
88
|
}
|
|
@@ -253,7 +253,7 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
253
253
|
},
|
|
254
254
|
emits: ["select"],
|
|
255
255
|
setup(e) {
|
|
256
|
-
const t = Ba(e, ["label", "tagName", "icon", "disabled", "small", "iconOnly"]), a =
|
|
256
|
+
const t = Ba(e, ["label", "tagName", "icon", "disabled", "small", "iconOnly"]), a = I(() => e.disabled && e.tagName === "p" || t.selectable ? "button" : e.tagName), n = I(() => ({
|
|
257
257
|
"--icon-path": `url(${be.MDI_CHECK_CIRCLE_OUTLINE})`
|
|
258
258
|
}));
|
|
259
259
|
return (l, i) => (d(), S(he(r(a)), _({
|
|
@@ -273,8 +273,8 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
273
273
|
title: e.iconOnly ? e.label : void 0,
|
|
274
274
|
size: e.small ? 0.875 : 1,
|
|
275
275
|
name: e.icon
|
|
276
|
-
}, null, 8, ["title", "size", "name"])) :
|
|
277
|
-
e.iconOnly ?
|
|
276
|
+
}, null, 8, ["title", "size", "name"])) : L("", !0),
|
|
277
|
+
e.iconOnly ? L("", !0) : (d(), b("span", {
|
|
278
278
|
key: 1,
|
|
279
279
|
class: Q(e.small ? "caption-regular" : "b2-regular")
|
|
280
280
|
}, W(e.label), 3))
|
|
@@ -294,11 +294,11 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
294
294
|
inline: { type: Boolean, default: !1 }
|
|
295
295
|
},
|
|
296
296
|
setup(e) {
|
|
297
|
-
|
|
297
|
+
re((l) => ({
|
|
298
298
|
v1b7e4a75: l.gap,
|
|
299
299
|
v575e7695: l.textColor
|
|
300
300
|
}));
|
|
301
|
-
const t =
|
|
301
|
+
const t = I(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), a = I(() => e.inline ? void 0 : "ellipsis-container"), n = I(() => e.inline ? void 0 : "ellipsis");
|
|
302
302
|
return (l, i) => (d(), b("div", {
|
|
303
303
|
class: Q(["icon-text--container av-row av-align-center", [r(a)]])
|
|
304
304
|
}, [
|
|
@@ -308,7 +308,7 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
308
308
|
color: e.iconColor,
|
|
309
309
|
size: r(t)
|
|
310
310
|
}, null, 8, ["name", "color", "size"]),
|
|
311
|
-
|
|
311
|
+
M("span", {
|
|
312
312
|
class: Q(["icon-text--text", [r(n), e.typographyClass]])
|
|
313
313
|
}, W(e.text), 3)
|
|
314
314
|
], 2));
|
|
@@ -321,7 +321,7 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
321
321
|
message: {}
|
|
322
322
|
},
|
|
323
323
|
setup(e) {
|
|
324
|
-
const t =
|
|
324
|
+
const t = I(() => e.messageId ?? `message-${crypto.randomUUID()}`), a = I(() => {
|
|
325
325
|
switch (e.type) {
|
|
326
326
|
case "success":
|
|
327
327
|
return {
|
|
@@ -352,7 +352,7 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
352
352
|
typographyClass: "caption-regular"
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
}), n =
|
|
355
|
+
}), n = I(() => e.message ? Array.isArray(e.message) ? e.message : [e.message] : []), l = I(() => e.type === "error" || e.type === "warning" ? "alert" : "status");
|
|
356
356
|
return (i, o) => {
|
|
357
357
|
const s = tn;
|
|
358
358
|
return d(), b("div", {
|
|
@@ -387,7 +387,7 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
387
387
|
required: { type: Boolean, default: !1 }
|
|
388
388
|
},
|
|
389
389
|
setup(e) {
|
|
390
|
-
const t = me(), a =
|
|
390
|
+
const t = me(), a = I(() => e.errorMessage || e.successMessage);
|
|
391
391
|
return (n, l) => {
|
|
392
392
|
const i = Qe;
|
|
393
393
|
return d(), b("fieldset", {
|
|
@@ -396,7 +396,7 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
396
396
|
"av-fieldset--success": e.successMessage && !e.errorMessage
|
|
397
397
|
}])
|
|
398
398
|
}, [
|
|
399
|
-
|
|
399
|
+
M("div", null, [
|
|
400
400
|
e.legend || t.legend ? (d(), b("legend", {
|
|
401
401
|
key: 0,
|
|
402
402
|
id: e.legendId,
|
|
@@ -404,17 +404,17 @@ const Fa = ["title"], Ka = /* @__PURE__ */ p({
|
|
|
404
404
|
}, [
|
|
405
405
|
Le(W(e.legend) + " ", 1),
|
|
406
406
|
U(n.$slots, "legend", {}, void 0, !0)
|
|
407
|
-
], 10, ln)) :
|
|
407
|
+
], 10, ln)) : L("", !0),
|
|
408
408
|
e.hint || t.hint ? (d(), b("div", rn, [
|
|
409
|
-
|
|
409
|
+
M("span", {
|
|
410
410
|
class: Q(["av-hint-text", e.hintClass])
|
|
411
411
|
}, [
|
|
412
412
|
Le(W(e.hint) + " ", 1),
|
|
413
413
|
U(n.$slots, "hint", {}, void 0, !0)
|
|
414
414
|
], 2),
|
|
415
|
-
e.required ? (d(), b("span", on, " *")) :
|
|
416
|
-
])) :
|
|
417
|
-
|
|
415
|
+
e.required ? (d(), b("span", on, " *")) : L("", !0)
|
|
416
|
+
])) : L("", !0),
|
|
417
|
+
M("div", {
|
|
418
418
|
class: Q(["av-fieldset__content av-col av-gap-xs", {
|
|
419
419
|
"av-col": !e.inline,
|
|
420
420
|
"av-row av-row-wrap av-justify-start": e.inline
|
|
@@ -459,7 +459,7 @@ const dn = { class: "b2-bold" }, fn = { class: "b2-regular" }, vn = ["innerHTML"
|
|
|
459
459
|
type: {}
|
|
460
460
|
},
|
|
461
461
|
setup(e) {
|
|
462
|
-
const t =
|
|
462
|
+
const t = I(() => An(e.text)), a = I(() => {
|
|
463
463
|
switch (e.type) {
|
|
464
464
|
case "warning":
|
|
465
465
|
return { name: H.WARNING, color: "var(--dark-background-warn)" };
|
|
@@ -476,10 +476,10 @@ const dn = { class: "b2-bold" }, fn = { class: "b2-regular" }, vn = ["innerHTML"
|
|
|
476
476
|
class: Q(["av-notice av-row av-align-center av-gap-sm av-p-sm", `av-notice--${e.type}`])
|
|
477
477
|
}, [
|
|
478
478
|
V(i, _(r(a), { size: 1.5 }), null, 16),
|
|
479
|
-
|
|
479
|
+
M("span", dn, [
|
|
480
480
|
Le(W(e.title) + " ", 1),
|
|
481
|
-
|
|
482
|
-
|
|
481
|
+
M("span", fn, [
|
|
482
|
+
M("span", { innerHTML: r(t) }, null, 8, vn)
|
|
483
483
|
])
|
|
484
484
|
])
|
|
485
485
|
], 2);
|
|
@@ -515,15 +515,15 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
515
515
|
(f = a.value) == null || f.focus();
|
|
516
516
|
}
|
|
517
517
|
t({ focus: n });
|
|
518
|
-
const l = { name: H.LOADING, animation: "spin" }, i =
|
|
518
|
+
const l = { name: H.LOADING, animation: "spin" }, i = I(() => e.iconScale && !Number.isNaN(e.iconScale) ? e.iconScale : e.small ? 1 : 1.5), o = I(() => {
|
|
519
519
|
if (e.isLoading)
|
|
520
520
|
return { ...l, size: i.value };
|
|
521
521
|
if (typeof e.icon == "string" && e.icon.trim())
|
|
522
522
|
return { name: e.icon, size: i.value };
|
|
523
523
|
if (e.icon && typeof e.icon != "string")
|
|
524
524
|
return { ...e.icon, size: i.value };
|
|
525
|
-
}), s =
|
|
526
|
-
return (f,
|
|
525
|
+
}), s = I(() => e.noSentenceCase ? e.label : un(e.label)), c = I(() => e.disabled || e.isLoading), A = I(() => `av-button--variant-${e.variant.toLowerCase()}`), u = I(() => `av-button--theme-${e.theme.toLowerCase()}`);
|
|
526
|
+
return (f, g) => {
|
|
527
527
|
const m = ne;
|
|
528
528
|
return d(), b("button", {
|
|
529
529
|
ref_key: "btn",
|
|
@@ -545,18 +545,18 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
545
545
|
r(u)
|
|
546
546
|
]]),
|
|
547
547
|
disabled: r(c),
|
|
548
|
-
style:
|
|
549
|
-
onClick:
|
|
548
|
+
style: de(e.iconOnly ? { "padding-inline": "var(--spacing-xs)" } : {}),
|
|
549
|
+
onClick: g[0] || (g[0] = (v) => f.$emit("click", v))
|
|
550
550
|
}, [
|
|
551
|
-
r(o) ? (d(), S(m, Pa(_({ key: 0 }, r(o))), null, 16)) :
|
|
552
|
-
e.iconOnly ?
|
|
551
|
+
r(o) ? (d(), S(m, Pa(_({ key: 0 }, r(o))), null, 16)) : L("", !0),
|
|
552
|
+
e.iconOnly ? L("", !0) : (d(), b("span", {
|
|
553
553
|
key: 1,
|
|
554
554
|
class: Q(e.small ? "b2-regular" : "b1-regular")
|
|
555
555
|
}, W(r(s)), 3))
|
|
556
556
|
], 14, In);
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
559
|
+
}), oe = /* @__PURE__ */ P(bn, [["__scopeId", "data-v-78a6125f"]]), hn = ["id", "aria-hidden"], yn = {
|
|
560
560
|
key: 0,
|
|
561
561
|
class: "av-card__body"
|
|
562
562
|
}, Cn = {
|
|
@@ -574,19 +574,19 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
574
574
|
collapsed: { type: Boolean, default: !1 }
|
|
575
575
|
},
|
|
576
576
|
setup(e) {
|
|
577
|
-
|
|
577
|
+
re((A) => ({
|
|
578
578
|
v0b2ce2f9: A.borderColor
|
|
579
579
|
}));
|
|
580
|
-
const t = me(), a = z(e.collapsed), n = z(!1), l =
|
|
580
|
+
const t = me(), a = z(e.collapsed), n = z(!1), l = I(() => `av-card-${crypto.randomUUID()}`), i = z(null);
|
|
581
581
|
function o(A) {
|
|
582
582
|
const u = ["A", "BUTTON", "INPUT", "SELECT", "TEXTAREA"], f = ["button", "link", "checkbox", "radio", "textbox", "tab", "menuitem"];
|
|
583
583
|
if (u.includes(A.tagName))
|
|
584
584
|
return !0;
|
|
585
|
-
const
|
|
586
|
-
return !!(
|
|
585
|
+
const g = A.getAttribute("role");
|
|
586
|
+
return !!(g && f.includes(g) || A.hasAttribute("tabindex") && A.getAttribute("tabindex") !== "-1");
|
|
587
587
|
}
|
|
588
588
|
function s(A) {
|
|
589
|
-
var
|
|
589
|
+
var g;
|
|
590
590
|
const u = A.target;
|
|
591
591
|
if (i.value && (u === i.value.$el || i.value.$el.contains(u)))
|
|
592
592
|
return;
|
|
@@ -596,7 +596,7 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
596
596
|
return;
|
|
597
597
|
f = f.parentElement;
|
|
598
598
|
}
|
|
599
|
-
e.collapsible && (a.value = !a.value, (
|
|
599
|
+
e.collapsible && (a.value = !a.value, (g = i.value) == null || g.$el.focus());
|
|
600
600
|
}
|
|
601
601
|
function c(A) {
|
|
602
602
|
if (!e.collapsible)
|
|
@@ -617,13 +617,13 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
617
617
|
n.value = !1;
|
|
618
618
|
}
|
|
619
619
|
return (A, u) => {
|
|
620
|
-
const f =
|
|
620
|
+
const f = oe;
|
|
621
621
|
return d(), b("div", {
|
|
622
622
|
class: Q(["av-card av-col av-p-sm av-justify-start", {
|
|
623
623
|
"av-card--collapsible": e.collapsible,
|
|
624
624
|
"av-card--hovering-interactive": r(n)
|
|
625
625
|
}]),
|
|
626
|
-
style:
|
|
626
|
+
style: de({ borderColor: e.borderColor, background: e.backgroundColor }),
|
|
627
627
|
onClick: s,
|
|
628
628
|
onMousemove: c
|
|
629
629
|
}, [
|
|
@@ -633,7 +633,7 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
633
633
|
"av-card__title--collapsed": r(a),
|
|
634
634
|
"av-card__title--title-only": e.titleOnly
|
|
635
635
|
}]),
|
|
636
|
-
style:
|
|
636
|
+
style: de({ background: e.titleBackground, minHeight: e.titleHeight, maxHeight: e.titleHeight })
|
|
637
637
|
}, [
|
|
638
638
|
U(A.$slots, "title", {}, void 0, !0),
|
|
639
639
|
e.collapsible ? (d(), S(f, {
|
|
@@ -645,10 +645,10 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
645
645
|
icon: r(a) ? r(H).CHEVRON_DOWN : r(H).CHEVRON_LEFT,
|
|
646
646
|
"icon-only": "",
|
|
647
647
|
label: "Details",
|
|
648
|
-
onClick: u[0] || (u[0] = (
|
|
649
|
-
}, null, 8, ["aria-controls", "aria-expanded", "icon"])) :
|
|
650
|
-
], 6)) :
|
|
651
|
-
e.titleOnly ?
|
|
648
|
+
onClick: u[0] || (u[0] = (g) => a.value = !r(a))
|
|
649
|
+
}, null, 8, ["aria-controls", "aria-expanded", "icon"])) : L("", !0)
|
|
650
|
+
], 6)) : L("", !0),
|
|
651
|
+
e.titleOnly ? L("", !0) : Et((d(), b("div", {
|
|
652
652
|
key: 1,
|
|
653
653
|
id: `${r(l)}-content`,
|
|
654
654
|
"aria-hidden": e.collapsible && r(a),
|
|
@@ -657,10 +657,10 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
657
657
|
U(A.$slots, "default", {}, void 0, !0),
|
|
658
658
|
t.body ? (d(), b("div", yn, [
|
|
659
659
|
U(A.$slots, "body", {}, void 0, !0)
|
|
660
|
-
])) :
|
|
660
|
+
])) : L("", !0),
|
|
661
661
|
t.footer ? (d(), b("div", Cn, [
|
|
662
662
|
U(A.$slots, "footer", {}, void 0, !0)
|
|
663
|
-
])) :
|
|
663
|
+
])) : L("", !0)
|
|
664
664
|
], 10, hn)), [
|
|
665
665
|
[$t, !e.collapsible || !r(a)]
|
|
666
666
|
])
|
|
@@ -684,7 +684,7 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
684
684
|
},
|
|
685
685
|
emits: ["close"],
|
|
686
686
|
setup(e, { emit: t }) {
|
|
687
|
-
const a = t, n =
|
|
687
|
+
const a = t, n = I(() => e.id ?? `alert-${crypto.randomUUID()}`), l = () => a("close"), i = I(
|
|
688
688
|
() => [
|
|
689
689
|
`av-alert--${e.type}`,
|
|
690
690
|
{
|
|
@@ -692,7 +692,7 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
692
692
|
"av-p-md": !e.small
|
|
693
693
|
}
|
|
694
694
|
]
|
|
695
|
-
), o =
|
|
695
|
+
), o = I(() => {
|
|
696
696
|
switch (e.type) {
|
|
697
697
|
case "error":
|
|
698
698
|
return { name: H.ALERT_CIRCLE_OUTLINE, color: "var(--dark-background-error)" };
|
|
@@ -704,31 +704,31 @@ const In = ["title", "aria-label", "aria-disabled", "disabled"], bn = /* @__PURE
|
|
|
704
704
|
default:
|
|
705
705
|
return { name: H.INFORMATION_OUTLINE, color: "var(--dark-background-primary1)" };
|
|
706
706
|
}
|
|
707
|
-
}), s =
|
|
708
|
-
return (c, A) => e.closed ?
|
|
707
|
+
}), s = I(() => e.type === "error" || e.type === "warning" ? "alert" : "status");
|
|
708
|
+
return (c, A) => e.closed ? L("", !0) : (d(), b("div", {
|
|
709
709
|
key: 0,
|
|
710
710
|
id: r(n),
|
|
711
711
|
class: Q(["av-alert", r(i)]),
|
|
712
712
|
role: r(s)
|
|
713
713
|
}, [
|
|
714
|
-
|
|
715
|
-
|
|
714
|
+
M("div", Nn, [
|
|
715
|
+
M("div", Tn, [
|
|
716
716
|
V(ne, _(r(o), { size: 3 }), null, 16),
|
|
717
|
-
|
|
718
|
-
e.small ?
|
|
717
|
+
M("div", Dn, [
|
|
718
|
+
e.small ? L("", !0) : (d(), b("span", Ln, W(e.title), 1)),
|
|
719
719
|
U(c.$slots, "default", {}, () => [
|
|
720
|
-
|
|
720
|
+
M("span", wn, W(e.description), 1)
|
|
721
721
|
], !0)
|
|
722
722
|
])
|
|
723
723
|
]),
|
|
724
|
-
e.closeable ? (d(), S(
|
|
724
|
+
e.closeable ? (d(), S(oe, {
|
|
725
725
|
key: 0,
|
|
726
726
|
"icon-only": "",
|
|
727
727
|
icon: r(H).CLOSE_CIRCLE_OUTLINE,
|
|
728
728
|
label: e.closeButtonLabel,
|
|
729
729
|
small: e.small,
|
|
730
730
|
onClick: l
|
|
731
|
-
}, null, 8, ["icon", "label", "small"])) :
|
|
731
|
+
}, null, 8, ["icon", "label", "small"])) : L("", !0)
|
|
732
732
|
])
|
|
733
733
|
], 10, En));
|
|
734
734
|
}
|
|
@@ -813,8 +813,8 @@ var ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
813
813
|
var u = Oe.call(o, _e);
|
|
814
814
|
u && n.filter(o) && (a || !t.includes(o)) && l.push(o);
|
|
815
815
|
var f = o.shadowRoot || // check for an undisclosed shadow
|
|
816
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(o),
|
|
817
|
-
if (f &&
|
|
816
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(o), g = !tt(f, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
817
|
+
if (f && g) {
|
|
818
818
|
var m = e(f === !0 ? o.children : f.children, !0, n);
|
|
819
819
|
n.flatten ? l.push.apply(l, m) : l.push({
|
|
820
820
|
scopeParent: o,
|
|
@@ -1118,10 +1118,10 @@ var jt = {
|
|
|
1118
1118
|
delayInitialFocusTimer: void 0,
|
|
1119
1119
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
1120
1120
|
recentNavEvent: void 0
|
|
1121
|
-
}, s, c = function(y,
|
|
1122
|
-
return y && y[
|
|
1123
|
-
}, A = function(y,
|
|
1124
|
-
var x = typeof (
|
|
1121
|
+
}, s, c = function(y, E, x) {
|
|
1122
|
+
return y && y[E] !== void 0 ? y[E] : i[x || E];
|
|
1123
|
+
}, A = function(y, E) {
|
|
1124
|
+
var x = typeof (E == null ? void 0 : E.composedPath) == "function" ? E.composedPath() : void 0;
|
|
1125
1125
|
return o.containerGroups.findIndex(function(X) {
|
|
1126
1126
|
var q = X.container, J = X.tabbableNodes;
|
|
1127
1127
|
return q.contains(y) || // fall back to explicit tabbable search which will take into consideration any
|
|
@@ -1133,7 +1133,7 @@ var jt = {
|
|
|
1133
1133
|
});
|
|
1134
1134
|
});
|
|
1135
1135
|
}, u = function(y) {
|
|
1136
|
-
var
|
|
1136
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = E.hasFallback, X = x === void 0 ? !1 : x, q = E.params, J = q === void 0 ? [] : q, Y = i[y];
|
|
1137
1137
|
if (typeof Y == "function" && (Y = Y.apply(void 0, el(J))), Y === !0 && (Y = void 0), !Y) {
|
|
1138
1138
|
if (Y === void 0 || Y === !1)
|
|
1139
1139
|
return Y;
|
|
@@ -1160,25 +1160,25 @@ var jt = {
|
|
|
1160
1160
|
if (A(n.activeElement) >= 0)
|
|
1161
1161
|
y = n.activeElement;
|
|
1162
1162
|
else {
|
|
1163
|
-
var
|
|
1163
|
+
var E = o.tabbableGroups[0], x = E && E.firstTabbableNode;
|
|
1164
1164
|
y = x || u("fallbackFocus");
|
|
1165
1165
|
}
|
|
1166
1166
|
else y === null && (y = u("fallbackFocus"));
|
|
1167
1167
|
if (!y)
|
|
1168
1168
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
1169
1169
|
return y;
|
|
1170
|
-
},
|
|
1170
|
+
}, g = function() {
|
|
1171
1171
|
if (o.containerGroups = o.containers.map(function(y) {
|
|
1172
|
-
var
|
|
1172
|
+
var E = qn(y, i.tabbableOptions), x = Fn(y, i.tabbableOptions), X = E.length > 0 ? E[0] : void 0, q = E.length > 0 ? E[E.length - 1] : void 0, J = x.find(function(ae) {
|
|
1173
1173
|
return xe(ae);
|
|
1174
1174
|
}), Y = x.slice().reverse().find(function(ae) {
|
|
1175
1175
|
return xe(ae);
|
|
1176
|
-
}), ee = !!
|
|
1176
|
+
}), ee = !!E.find(function(ae) {
|
|
1177
1177
|
return De(ae) > 0;
|
|
1178
1178
|
});
|
|
1179
1179
|
return {
|
|
1180
1180
|
container: y,
|
|
1181
|
-
tabbableNodes:
|
|
1181
|
+
tabbableNodes: E,
|
|
1182
1182
|
focusableNodes: x,
|
|
1183
1183
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
1184
1184
|
posTabIndexesFound: ee,
|
|
@@ -1206,12 +1206,12 @@ var jt = {
|
|
|
1206
1206
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
1207
1207
|
*/
|
|
1208
1208
|
nextTabbableNode: function(Ne) {
|
|
1209
|
-
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Ce =
|
|
1209
|
+
var je = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Ce = E.indexOf(Ne);
|
|
1210
1210
|
return Ce < 0 ? je ? x.slice(x.indexOf(Ne) + 1).find(function(ze) {
|
|
1211
1211
|
return xe(ze);
|
|
1212
1212
|
}) : x.slice(0, x.indexOf(Ne)).reverse().find(function(ze) {
|
|
1213
1213
|
return xe(ze);
|
|
1214
|
-
}) :
|
|
1214
|
+
}) : E[Ce + (je ? 1 : -1)];
|
|
1215
1215
|
}
|
|
1216
1216
|
};
|
|
1217
1217
|
}), o.tabbableGroups = o.containerGroups.filter(function(y) {
|
|
@@ -1223,9 +1223,9 @@ var jt = {
|
|
|
1223
1223
|
}) && o.containerGroups.length > 1)
|
|
1224
1224
|
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.");
|
|
1225
1225
|
}, m = function(y) {
|
|
1226
|
-
var
|
|
1227
|
-
if (
|
|
1228
|
-
return
|
|
1226
|
+
var E = y.activeElement;
|
|
1227
|
+
if (E)
|
|
1228
|
+
return E.shadowRoot && E.shadowRoot.activeElement !== null ? m(E.shadowRoot) : E;
|
|
1229
1229
|
}, v = function(y) {
|
|
1230
1230
|
if (y !== !1 && y !== m(document)) {
|
|
1231
1231
|
if (!y || !y.focus) {
|
|
@@ -1237,43 +1237,43 @@ var jt = {
|
|
|
1237
1237
|
}), o.mostRecentlyFocusedNode = y, ll(y) && y.select();
|
|
1238
1238
|
}
|
|
1239
1239
|
}, h = function(y) {
|
|
1240
|
-
var
|
|
1240
|
+
var E = u("setReturnFocus", {
|
|
1241
1241
|
params: [y]
|
|
1242
1242
|
});
|
|
1243
|
-
return
|
|
1244
|
-
},
|
|
1245
|
-
var
|
|
1246
|
-
|
|
1243
|
+
return E || (E === !1 ? !1 : y);
|
|
1244
|
+
}, N = function(y) {
|
|
1245
|
+
var E = y.target, x = y.event, X = y.isBackward, q = X === void 0 ? !1 : X;
|
|
1246
|
+
E = E || Ke(x), g();
|
|
1247
1247
|
var J = null;
|
|
1248
1248
|
if (o.tabbableGroups.length > 0) {
|
|
1249
|
-
var Y = A(
|
|
1249
|
+
var Y = A(E, x), ee = Y >= 0 ? o.containerGroups[Y] : void 0;
|
|
1250
1250
|
if (Y < 0)
|
|
1251
1251
|
q ? J = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : J = o.tabbableGroups[0].firstTabbableNode;
|
|
1252
1252
|
else if (q) {
|
|
1253
1253
|
var ae = o.tabbableGroups.findIndex(function(ut) {
|
|
1254
1254
|
var dt = ut.firstTabbableNode;
|
|
1255
|
-
return
|
|
1255
|
+
return E === dt;
|
|
1256
1256
|
});
|
|
1257
|
-
if (ae < 0 && (ee.container ===
|
|
1257
|
+
if (ae < 0 && (ee.container === E || ft(E, i.tabbableOptions) && !xe(E, i.tabbableOptions) && !ee.nextTabbableNode(E, !1)) && (ae = Y), ae >= 0) {
|
|
1258
1258
|
var Ne = ae === 0 ? o.tabbableGroups.length - 1 : ae - 1, je = o.tabbableGroups[Ne];
|
|
1259
|
-
J = De(
|
|
1260
|
-
} else Re(x) || (J = ee.nextTabbableNode(
|
|
1259
|
+
J = De(E) >= 0 ? je.lastTabbableNode : je.lastDomTabbableNode;
|
|
1260
|
+
} else Re(x) || (J = ee.nextTabbableNode(E, !1));
|
|
1261
1261
|
} else {
|
|
1262
1262
|
var Ce = o.tabbableGroups.findIndex(function(ut) {
|
|
1263
1263
|
var dt = ut.lastTabbableNode;
|
|
1264
|
-
return
|
|
1264
|
+
return E === dt;
|
|
1265
1265
|
});
|
|
1266
|
-
if (Ce < 0 && (ee.container ===
|
|
1266
|
+
if (Ce < 0 && (ee.container === E || ft(E, i.tabbableOptions) && !xe(E, i.tabbableOptions) && !ee.nextTabbableNode(E)) && (Ce = Y), Ce >= 0) {
|
|
1267
1267
|
var ze = Ce === o.tabbableGroups.length - 1 ? 0 : Ce + 1, St = o.tabbableGroups[ze];
|
|
1268
|
-
J = De(
|
|
1269
|
-
} else Re(x) || (J = ee.nextTabbableNode(
|
|
1268
|
+
J = De(E) >= 0 ? St.firstTabbableNode : St.firstDomTabbableNode;
|
|
1269
|
+
} else Re(x) || (J = ee.nextTabbableNode(E));
|
|
1270
1270
|
}
|
|
1271
1271
|
} else
|
|
1272
1272
|
J = u("fallbackFocus");
|
|
1273
1273
|
return J;
|
|
1274
|
-
},
|
|
1275
|
-
var
|
|
1276
|
-
if (!(A(
|
|
1274
|
+
}, C = function(y) {
|
|
1275
|
+
var E = Ke(y);
|
|
1276
|
+
if (!(A(E, y) >= 0)) {
|
|
1277
1277
|
if (Be(i.clickOutsideDeactivates, y)) {
|
|
1278
1278
|
s.deactivate({
|
|
1279
1279
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -1288,10 +1288,10 @@ var jt = {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
Be(i.allowOutsideClick, y) || y.preventDefault();
|
|
1290
1290
|
}
|
|
1291
|
-
},
|
|
1292
|
-
var
|
|
1293
|
-
if (x ||
|
|
1294
|
-
x && (o.mostRecentlyFocusedNode =
|
|
1291
|
+
}, T = function(y) {
|
|
1292
|
+
var E = Ke(y), x = A(E, y) >= 0;
|
|
1293
|
+
if (x || E instanceof Document)
|
|
1294
|
+
x && (o.mostRecentlyFocusedNode = E);
|
|
1295
1295
|
else {
|
|
1296
1296
|
y.stopImmediatePropagation();
|
|
1297
1297
|
var X, q = !0;
|
|
@@ -1312,7 +1312,7 @@ var jt = {
|
|
|
1312
1312
|
}) || (q = !1);
|
|
1313
1313
|
else
|
|
1314
1314
|
q = !1;
|
|
1315
|
-
q && (X =
|
|
1315
|
+
q && (X = N({
|
|
1316
1316
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
1317
1317
|
// outside the trap causing the focus escape we're trying to fix)
|
|
1318
1318
|
target: o.mostRecentlyFocusedNode,
|
|
@@ -1320,49 +1320,49 @@ var jt = {
|
|
|
1320
1320
|
})), v(X || o.mostRecentlyFocusedNode || f());
|
|
1321
1321
|
}
|
|
1322
1322
|
o.recentNavEvent = void 0;
|
|
1323
|
-
},
|
|
1324
|
-
var
|
|
1323
|
+
}, D = function(y) {
|
|
1324
|
+
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1325
1325
|
o.recentNavEvent = y;
|
|
1326
|
-
var x =
|
|
1326
|
+
var x = N({
|
|
1327
1327
|
event: y,
|
|
1328
|
-
isBackward:
|
|
1328
|
+
isBackward: E
|
|
1329
1329
|
});
|
|
1330
1330
|
x && (Re(y) && y.preventDefault(), v(x));
|
|
1331
|
-
},
|
|
1332
|
-
(i.isKeyForward(y) || i.isKeyBackward(y)) &&
|
|
1331
|
+
}, w = function(y) {
|
|
1332
|
+
(i.isKeyForward(y) || i.isKeyBackward(y)) && D(y, i.isKeyBackward(y));
|
|
1333
1333
|
}, B = function(y) {
|
|
1334
1334
|
il(y) && Be(i.escapeDeactivates, y) !== !1 && (y.preventDefault(), s.deactivate());
|
|
1335
1335
|
}, Z = function(y) {
|
|
1336
|
-
var
|
|
1337
|
-
A(
|
|
1336
|
+
var E = Ke(y);
|
|
1337
|
+
A(E, y) >= 0 || Be(i.clickOutsideDeactivates, y) || Be(i.allowOutsideClick, y) || (y.preventDefault(), y.stopImmediatePropagation());
|
|
1338
1338
|
}, F = function() {
|
|
1339
1339
|
if (o.active)
|
|
1340
1340
|
return jt.activateTrap(l, s), o.delayInitialFocusTimer = i.delayInitialFocus ? zt(function() {
|
|
1341
1341
|
v(f());
|
|
1342
|
-
}) : v(f()), n.addEventListener("focusin",
|
|
1342
|
+
}) : v(f()), n.addEventListener("focusin", T, !0), n.addEventListener("mousedown", C, {
|
|
1343
1343
|
capture: !0,
|
|
1344
1344
|
passive: !1
|
|
1345
|
-
}), n.addEventListener("touchstart",
|
|
1345
|
+
}), n.addEventListener("touchstart", C, {
|
|
1346
1346
|
capture: !0,
|
|
1347
1347
|
passive: !1
|
|
1348
1348
|
}), n.addEventListener("click", Z, {
|
|
1349
1349
|
capture: !0,
|
|
1350
1350
|
passive: !1
|
|
1351
|
-
}), n.addEventListener("keydown",
|
|
1351
|
+
}), n.addEventListener("keydown", w, {
|
|
1352
1352
|
capture: !0,
|
|
1353
1353
|
passive: !1
|
|
1354
1354
|
}), n.addEventListener("keydown", B), s;
|
|
1355
1355
|
}, te = function() {
|
|
1356
1356
|
if (o.active)
|
|
1357
|
-
return n.removeEventListener("focusin",
|
|
1357
|
+
return n.removeEventListener("focusin", T, !0), n.removeEventListener("mousedown", C, !0), n.removeEventListener("touchstart", C, !0), n.removeEventListener("click", Z, !0), n.removeEventListener("keydown", w, !0), n.removeEventListener("keydown", B), s;
|
|
1358
1358
|
}, k = function(y) {
|
|
1359
|
-
var
|
|
1359
|
+
var E = y.some(function(x) {
|
|
1360
1360
|
var X = Array.from(x.removedNodes);
|
|
1361
1361
|
return X.some(function(q) {
|
|
1362
1362
|
return q === o.mostRecentlyFocusedNode;
|
|
1363
1363
|
});
|
|
1364
1364
|
});
|
|
1365
|
-
|
|
1365
|
+
E && v(f());
|
|
1366
1366
|
}, R = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(k) : void 0, O = function() {
|
|
1367
1367
|
R && (R.disconnect(), o.active && !o.paused && o.containers.map(function(y) {
|
|
1368
1368
|
R.observe(y, {
|
|
@@ -1381,23 +1381,23 @@ var jt = {
|
|
|
1381
1381
|
activate: function(y) {
|
|
1382
1382
|
if (o.active)
|
|
1383
1383
|
return this;
|
|
1384
|
-
var
|
|
1385
|
-
X ||
|
|
1384
|
+
var E = c(y, "onActivate"), x = c(y, "onPostActivate"), X = c(y, "checkCanFocusTrap");
|
|
1385
|
+
X || g(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = m(n), E == null || E();
|
|
1386
1386
|
var q = function() {
|
|
1387
|
-
X &&
|
|
1387
|
+
X && g(), F(), O(), x == null || x();
|
|
1388
1388
|
};
|
|
1389
1389
|
return X ? (X(o.containers.concat()).then(q, q), this) : (q(), this);
|
|
1390
1390
|
},
|
|
1391
1391
|
deactivate: function(y) {
|
|
1392
1392
|
if (!o.active)
|
|
1393
1393
|
return this;
|
|
1394
|
-
var
|
|
1394
|
+
var E = Qt({
|
|
1395
1395
|
onDeactivate: i.onDeactivate,
|
|
1396
1396
|
onPostDeactivate: i.onPostDeactivate,
|
|
1397
1397
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
1398
1398
|
}, y);
|
|
1399
1399
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, te(), o.active = !1, o.paused = !1, O(), jt.deactivateTrap(l, s);
|
|
1400
|
-
var x = c(
|
|
1400
|
+
var x = c(E, "onDeactivate"), X = c(E, "onPostDeactivate"), q = c(E, "checkCanReturnFocus"), J = c(E, "returnFocus", "returnFocusOnDeactivate");
|
|
1401
1401
|
x == null || x();
|
|
1402
1402
|
var Y = function() {
|
|
1403
1403
|
zt(function() {
|
|
@@ -1413,10 +1413,10 @@ var jt = {
|
|
|
1413
1413
|
return o.active ? (o.manuallyPaused = !1, l[l.length - 1] !== this ? this : this._setPausedState(!1, y)) : this;
|
|
1414
1414
|
},
|
|
1415
1415
|
updateContainerElements: function(y) {
|
|
1416
|
-
var
|
|
1417
|
-
return o.containers =
|
|
1416
|
+
var E = [].concat(y).filter(Boolean);
|
|
1417
|
+
return o.containers = E.map(function(x) {
|
|
1418
1418
|
return typeof x == "string" ? n.querySelector(x) : x;
|
|
1419
|
-
}), o.active &&
|
|
1419
|
+
}), o.active && g(), O(), this;
|
|
1420
1420
|
}
|
|
1421
1421
|
}, Object.defineProperties(s, {
|
|
1422
1422
|
_isManuallyPaused: {
|
|
@@ -1425,15 +1425,15 @@ var jt = {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
},
|
|
1427
1427
|
_setPausedState: {
|
|
1428
|
-
value: function(y,
|
|
1428
|
+
value: function(y, E) {
|
|
1429
1429
|
if (o.paused === y)
|
|
1430
1430
|
return this;
|
|
1431
1431
|
if (o.paused = y, y) {
|
|
1432
|
-
var x = c(
|
|
1432
|
+
var x = c(E, "onPause"), X = c(E, "onPostPause");
|
|
1433
1433
|
x == null || x(), te(), O(), X == null || X();
|
|
1434
1434
|
} else {
|
|
1435
|
-
var q = c(
|
|
1436
|
-
q == null || q(),
|
|
1435
|
+
var q = c(E, "onUnpause"), J = c(E, "onPostUnpause");
|
|
1436
|
+
q == null || q(), g(), F(), O(), J == null || J();
|
|
1437
1437
|
}
|
|
1438
1438
|
return this;
|
|
1439
1439
|
}
|
|
@@ -1492,7 +1492,7 @@ const cl = {
|
|
|
1492
1492
|
},
|
|
1493
1493
|
setup(e, { slots: t, emit: a }) {
|
|
1494
1494
|
let n;
|
|
1495
|
-
const l = z(null), i =
|
|
1495
|
+
const l = z(null), i = I(() => {
|
|
1496
1496
|
const s = l.value;
|
|
1497
1497
|
return s && (s instanceof HTMLElement ? s : s.$el);
|
|
1498
1498
|
});
|
|
@@ -1547,8 +1547,8 @@ function Al({ scrollableSelector: e }) {
|
|
|
1547
1547
|
o.preventDefault();
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
|
-
const { scrollTop: u, scrollHeight: f, clientHeight:
|
|
1551
|
-
(f <=
|
|
1550
|
+
const { scrollTop: u, scrollHeight: f, clientHeight: g } = A, m = u === 0, v = u + g >= f - 1, h = s < 0, N = s > 0;
|
|
1551
|
+
(f <= g || h && m || N && v) && o.preventDefault();
|
|
1552
1552
|
}
|
|
1553
1553
|
function n(o) {
|
|
1554
1554
|
a(o, o.deltaY);
|
|
@@ -1580,28 +1580,28 @@ const ul = { key: 0 }, dl = ["aria-label"], fl = { class: "av-drawer__content-wr
|
|
|
1580
1580
|
},
|
|
1581
1581
|
emits: ["escapePressed"],
|
|
1582
1582
|
setup(e, { emit: t }) {
|
|
1583
|
-
|
|
1583
|
+
re((m) => ({
|
|
1584
1584
|
c0ad7c42: r(o),
|
|
1585
1585
|
v4b32a42c: r(s)
|
|
1586
1586
|
}));
|
|
1587
|
-
const a = e, n = t, l = me(), { position: i, width: o, padding: s, show: c } = _t(a), { onWheel: A, onTouchMove: u, onTouchStart: f } = Al({ scrollableSelector: ".av-drawer__content" }),
|
|
1587
|
+
const a = e, n = t, l = me(), { position: i, width: o, padding: s, show: c } = _t(a), { onWheel: A, onTouchMove: u, onTouchStart: f } = Al({ scrollableSelector: ".av-drawer__content" }), g = z(null);
|
|
1588
1588
|
return (m, v) => r(c) ? (d(), b("div", ul, [
|
|
1589
1589
|
e.backdrop ? (d(), b("div", {
|
|
1590
1590
|
key: 0,
|
|
1591
1591
|
class: "av-drawer-backdrop",
|
|
1592
|
-
onWheel: v[0] || (v[0] =
|
|
1592
|
+
onWheel: v[0] || (v[0] = ue(() => {
|
|
1593
1593
|
}, ["prevent"])),
|
|
1594
|
-
onTouchmove: v[1] || (v[1] =
|
|
1594
|
+
onTouchmove: v[1] || (v[1] = ue(() => {
|
|
1595
1595
|
}, ["prevent"]))
|
|
1596
|
-
}, null, 32)) :
|
|
1596
|
+
}, null, 32)) : L("", !0),
|
|
1597
1597
|
V(r(fa), {
|
|
1598
1598
|
"initial-focus": "drawerRef",
|
|
1599
1599
|
onDeactivate: v[5] || (v[5] = (h) => n("escapePressed"))
|
|
1600
1600
|
}, {
|
|
1601
1601
|
default: K(() => [
|
|
1602
|
-
|
|
1602
|
+
M("div", {
|
|
1603
1603
|
ref_key: "drawerRef",
|
|
1604
|
-
ref:
|
|
1604
|
+
ref: g,
|
|
1605
1605
|
class: Q(["av-drawer av-col", `av-drawer--${r(i)}`]),
|
|
1606
1606
|
role: "dialog",
|
|
1607
1607
|
"aria-modal": "true",
|
|
@@ -1614,19 +1614,19 @@ const ul = { key: 0 }, dl = ["aria-label"], fl = { class: "av-drawer__content-wr
|
|
|
1614
1614
|
onTouchmove: v[4] || (v[4] = //@ts-ignore
|
|
1615
1615
|
(...h) => r(u) && r(u)(...h))
|
|
1616
1616
|
}, [
|
|
1617
|
-
|
|
1618
|
-
|
|
1617
|
+
M("div", fl, [
|
|
1618
|
+
M("div", vl, [
|
|
1619
1619
|
U(m.$slots, "default", {}, void 0, !0)
|
|
1620
1620
|
]),
|
|
1621
1621
|
l.footer ? (d(), b("div", ml, [
|
|
1622
1622
|
U(m.$slots, "footer", {}, void 0, !0)
|
|
1623
|
-
])) :
|
|
1623
|
+
])) : L("", !0)
|
|
1624
1624
|
])
|
|
1625
1625
|
], 42, dl)
|
|
1626
1626
|
]),
|
|
1627
1627
|
_: 3
|
|
1628
1628
|
})
|
|
1629
|
-
])) :
|
|
1629
|
+
])) : L("", !0);
|
|
1630
1630
|
}
|
|
1631
1631
|
}), Il = /* @__PURE__ */ P(gl, [["__scopeId", "data-v-f421bf22"]]);
|
|
1632
1632
|
function ot() {
|
|
@@ -1670,24 +1670,24 @@ const bl = { class: "av-accordion" }, hl = ["id", "aria-expanded", "aria-control
|
|
|
1670
1670
|
cssExpanded: n,
|
|
1671
1671
|
doExpand: l,
|
|
1672
1672
|
onTransitionEnd: i
|
|
1673
|
-
} = ot(), o =
|
|
1673
|
+
} = ot(), o = I(() => e.id ?? `accordion-${crypto.randomUUID()}`), s = I(() => `${o.value}-panel`), c = z(), A = z(null), u = it(na), { isActive: f, expand: g, onKeydown: m, setTriggerRef: v } = (u == null ? void 0 : u(ea(() => e.title))) ?? {
|
|
1674
1674
|
isActive: c,
|
|
1675
1675
|
expand: () => c.value = !c.value,
|
|
1676
1676
|
onKeydown: void 0,
|
|
1677
1677
|
setTriggerRef: void 0
|
|
1678
|
-
}, h =
|
|
1678
|
+
}, h = I(() => ({
|
|
1679
1679
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_DOWN})`
|
|
1680
1680
|
}));
|
|
1681
1681
|
return ve(() => {
|
|
1682
1682
|
v == null || v(A.value), f.value && l(!0);
|
|
1683
|
-
}), se(f, (
|
|
1684
|
-
|
|
1685
|
-
}), (
|
|
1686
|
-
const
|
|
1683
|
+
}), se(f, (N, C) => {
|
|
1684
|
+
N !== C && l(N);
|
|
1685
|
+
}), (N, C) => {
|
|
1686
|
+
const T = ne;
|
|
1687
1687
|
return d(), b("section", bl, [
|
|
1688
1688
|
(d(), S(he(e.headingLevel), { class: "av-accordion__header" }, {
|
|
1689
1689
|
default: K(() => [
|
|
1690
|
-
|
|
1690
|
+
M("button", {
|
|
1691
1691
|
id: r(o),
|
|
1692
1692
|
ref_key: "triggerRef",
|
|
1693
1693
|
ref: A,
|
|
@@ -1695,26 +1695,26 @@ const bl = { class: "av-accordion" }, hl = ["id", "aria-expanded", "aria-control
|
|
|
1695
1695
|
"aria-expanded": r(f),
|
|
1696
1696
|
"aria-controls": r(s),
|
|
1697
1697
|
class: "av-accordion__trigger av-row av-align-center av-p-sm av-w-full",
|
|
1698
|
-
style:
|
|
1699
|
-
onClick:
|
|
1700
|
-
(...
|
|
1701
|
-
onKeydown:
|
|
1702
|
-
(...
|
|
1698
|
+
style: de(r(h)),
|
|
1699
|
+
onClick: C[0] || (C[0] = //@ts-ignore
|
|
1700
|
+
(...D) => r(g) && r(g)(...D)),
|
|
1701
|
+
onKeydown: C[1] || (C[1] = //@ts-ignore
|
|
1702
|
+
(...D) => r(m) && r(m)(...D))
|
|
1703
1703
|
}, [
|
|
1704
|
-
|
|
1705
|
-
e.icon ? (d(), S(
|
|
1704
|
+
M("div", yl, [
|
|
1705
|
+
e.icon ? (d(), S(T, {
|
|
1706
1706
|
key: 0,
|
|
1707
1707
|
size: 2,
|
|
1708
1708
|
name: e.icon,
|
|
1709
1709
|
color: "var(--icon)"
|
|
1710
|
-
}, null, 8, ["name"])) :
|
|
1711
|
-
|
|
1710
|
+
}, null, 8, ["name"])) : L("", !0),
|
|
1711
|
+
M("span", Cl, W(e.title), 1)
|
|
1712
1712
|
])
|
|
1713
1713
|
], 44, hl)
|
|
1714
1714
|
]),
|
|
1715
1715
|
_: 1
|
|
1716
1716
|
})),
|
|
1717
|
-
|
|
1717
|
+
M("div", {
|
|
1718
1718
|
id: r(s),
|
|
1719
1719
|
ref_key: "collapse",
|
|
1720
1720
|
ref: t,
|
|
@@ -1725,10 +1725,10 @@ const bl = { class: "av-accordion" }, hl = ["id", "aria-expanded", "aria-control
|
|
|
1725
1725
|
// Need to use a separate data to add/remove the class after a RAF
|
|
1726
1726
|
"av-collapsing": r(a)
|
|
1727
1727
|
}]),
|
|
1728
|
-
onTransitionend:
|
|
1728
|
+
onTransitionend: C[2] || (C[2] = (D) => r(i)(r(f), !1))
|
|
1729
1729
|
}, [
|
|
1730
|
-
|
|
1731
|
-
U(
|
|
1730
|
+
M("div", El, [
|
|
1731
|
+
U(N.$slots, "default", {}, void 0, !0)
|
|
1732
1732
|
])
|
|
1733
1733
|
], 42, Ml)
|
|
1734
1734
|
]);
|
|
@@ -1745,63 +1745,63 @@ const bl = { class: "av-accordion" }, hl = ["id", "aria-expanded", "aria-control
|
|
|
1745
1745
|
},
|
|
1746
1746
|
emits: ["update:activeAccordion"],
|
|
1747
1747
|
setup(e, { emit: t }) {
|
|
1748
|
-
const a = t, n = z(e.activeAccordion ?? -1), l =
|
|
1748
|
+
const a = t, n = z(e.activeAccordion ?? -1), l = I({
|
|
1749
1749
|
get: () => n.value,
|
|
1750
1750
|
set(f) {
|
|
1751
1751
|
n.value = f, a("update:activeAccordion", f);
|
|
1752
1752
|
}
|
|
1753
1753
|
}), i = z(/* @__PURE__ */ new Map()), o = z(0), s = z([]);
|
|
1754
|
-
function c(f,
|
|
1755
|
-
s.value[
|
|
1754
|
+
function c(f, g) {
|
|
1755
|
+
s.value[g] = f;
|
|
1756
1756
|
}
|
|
1757
1757
|
function A(f) {
|
|
1758
|
-
var
|
|
1759
|
-
(
|
|
1758
|
+
var g;
|
|
1759
|
+
(g = s.value[f]) == null || g.focus();
|
|
1760
1760
|
}
|
|
1761
|
-
function u(f,
|
|
1761
|
+
function u(f, g) {
|
|
1762
1762
|
const m = s.value.length;
|
|
1763
1763
|
if (!m)
|
|
1764
1764
|
return;
|
|
1765
|
-
const v = (f +
|
|
1765
|
+
const v = (f + g + m) % m;
|
|
1766
1766
|
A(v);
|
|
1767
1767
|
}
|
|
1768
1768
|
return Nt(na, (f) => {
|
|
1769
|
-
const
|
|
1770
|
-
i.value.set(
|
|
1771
|
-
const m =
|
|
1769
|
+
const g = o.value++;
|
|
1770
|
+
i.value.set(g, f.value);
|
|
1771
|
+
const m = I(() => g === l.value);
|
|
1772
1772
|
se(f, () => {
|
|
1773
|
-
i.value.set(
|
|
1773
|
+
i.value.set(g, f.value);
|
|
1774
1774
|
});
|
|
1775
1775
|
function v() {
|
|
1776
|
-
if (l.value ===
|
|
1776
|
+
if (l.value === g) {
|
|
1777
1777
|
l.value = -1;
|
|
1778
1778
|
return;
|
|
1779
1779
|
}
|
|
1780
|
-
l.value =
|
|
1780
|
+
l.value = g;
|
|
1781
1781
|
}
|
|
1782
|
-
function h(
|
|
1783
|
-
switch (
|
|
1782
|
+
function h(C) {
|
|
1783
|
+
switch (C.key) {
|
|
1784
1784
|
case "ArrowDown":
|
|
1785
|
-
|
|
1785
|
+
C.preventDefault(), u(g, 1);
|
|
1786
1786
|
break;
|
|
1787
1787
|
case "ArrowUp":
|
|
1788
|
-
|
|
1788
|
+
C.preventDefault(), u(g, -1);
|
|
1789
1789
|
break;
|
|
1790
1790
|
case "Home":
|
|
1791
|
-
|
|
1791
|
+
C.preventDefault(), A(0);
|
|
1792
1792
|
break;
|
|
1793
1793
|
case "End":
|
|
1794
|
-
|
|
1794
|
+
C.preventDefault(), A(s.value.length - 1);
|
|
1795
1795
|
break;
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1799
|
-
|
|
1798
|
+
function N(C) {
|
|
1799
|
+
C && c(C, g);
|
|
1800
1800
|
}
|
|
1801
1801
|
return ge(() => {
|
|
1802
|
-
i.value.delete(
|
|
1803
|
-
}), { isActive: m, expand: v, onKeydown: h, setTriggerRef:
|
|
1804
|
-
}), (f,
|
|
1802
|
+
i.value.delete(g);
|
|
1803
|
+
}), { isActive: m, expand: v, onKeydown: h, setTriggerRef: N };
|
|
1804
|
+
}), (f, g) => (d(), b("div", Tl, [
|
|
1805
1805
|
U(f.$slots, "default")
|
|
1806
1806
|
]));
|
|
1807
1807
|
}
|
|
@@ -1863,8 +1863,8 @@ function pl(e, t = {}) {
|
|
|
1863
1863
|
let o;
|
|
1864
1864
|
return (c) => {
|
|
1865
1865
|
const A = le(e), u = le(t.maxWait);
|
|
1866
|
-
return a && i(a), A <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = void 0), Promise.resolve(c())) : new Promise((f,
|
|
1867
|
-
l = t.rejectOnCancel ?
|
|
1866
|
+
return a && i(a), A <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = void 0), Promise.resolve(c())) : new Promise((f, g) => {
|
|
1867
|
+
l = t.rejectOnCancel ? g : f, o = c, u && !n && (n = setTimeout(() => {
|
|
1868
1868
|
a && i(a), n = void 0, f(o());
|
|
1869
1869
|
}, u)), a = setTimeout(() => {
|
|
1870
1870
|
n && i(n), n = void 0, f(c());
|
|
@@ -1878,11 +1878,11 @@ function kl(...e) {
|
|
|
1878
1878
|
const u = () => {
|
|
1879
1879
|
a && (clearTimeout(a), a = void 0, l(), l = ke);
|
|
1880
1880
|
};
|
|
1881
|
-
return (
|
|
1882
|
-
const m = le(o), v = Date.now() - t, h = () => i =
|
|
1883
|
-
return u(), m <= 0 ? (t = Date.now(), h()) : (v > m && (c || !n) ? (t = Date.now(), h()) : s && (i = new Promise((
|
|
1884
|
-
l = A ?
|
|
1885
|
-
t = Date.now(), n = !0,
|
|
1881
|
+
return (g) => {
|
|
1882
|
+
const m = le(o), v = Date.now() - t, h = () => i = g();
|
|
1883
|
+
return u(), m <= 0 ? (t = Date.now(), h()) : (v > m && (c || !n) ? (t = Date.now(), h()) : s && (i = new Promise((N, C) => {
|
|
1884
|
+
l = A ? C : N, a = setTimeout(() => {
|
|
1885
|
+
t = Date.now(), n = !0, N(h()), u();
|
|
1886
1886
|
}, Math.max(0, m - v));
|
|
1887
1887
|
})), !c && !a && (a = setTimeout(() => n = !0, m)), n = !1, i);
|
|
1888
1888
|
};
|
|
@@ -1939,7 +1939,7 @@ function Ot(e) {
|
|
|
1939
1939
|
function Ct(...e) {
|
|
1940
1940
|
const t = [], a = () => {
|
|
1941
1941
|
t.forEach((s) => s()), t.length = 0;
|
|
1942
|
-
}, n = (s, c, A, u) => (s.addEventListener(c, A, u), () => s.removeEventListener(c, A, u)), l =
|
|
1942
|
+
}, n = (s, c, A, u) => (s.addEventListener(c, A, u), () => s.removeEventListener(c, A, u)), l = I(() => {
|
|
1943
1943
|
const s = $e(le(e[0])).filter((c) => c != null);
|
|
1944
1944
|
return s.every((c) => typeof c != "string") ? s : void 0;
|
|
1945
1945
|
}), i = Pl(
|
|
@@ -1959,8 +1959,8 @@ function Ct(...e) {
|
|
|
1959
1959
|
const f = Sl(u) ? { ...u } : u;
|
|
1960
1960
|
t.push(
|
|
1961
1961
|
...s.flatMap(
|
|
1962
|
-
(
|
|
1963
|
-
(m) => A.map((v) => n(
|
|
1962
|
+
(g) => c.flatMap(
|
|
1963
|
+
(m) => A.map((v) => n(g, m, v, f))
|
|
1964
1964
|
)
|
|
1965
1965
|
)
|
|
1966
1966
|
);
|
|
@@ -1981,20 +1981,20 @@ function Wl() {
|
|
|
1981
1981
|
// @__NO_SIDE_EFFECTS__
|
|
1982
1982
|
function Ia(e) {
|
|
1983
1983
|
const t = /* @__PURE__ */ Wl();
|
|
1984
|
-
return
|
|
1984
|
+
return I(() => (t.value, !!e()));
|
|
1985
1985
|
}
|
|
1986
1986
|
function Ul(e, t, a = {}) {
|
|
1987
1987
|
const { window: n = Fe, ...l } = a;
|
|
1988
1988
|
let i;
|
|
1989
1989
|
const o = /* @__PURE__ */ Ia(() => n && "MutationObserver" in n), s = () => {
|
|
1990
1990
|
i && (i.disconnect(), i = void 0);
|
|
1991
|
-
}, c =
|
|
1992
|
-
const
|
|
1991
|
+
}, c = I(() => {
|
|
1992
|
+
const g = le(e), m = $e(g).map(Ot).filter(Ol);
|
|
1993
1993
|
return new Set(m);
|
|
1994
1994
|
}), A = se(
|
|
1995
1995
|
c,
|
|
1996
|
-
(
|
|
1997
|
-
s(), o.value &&
|
|
1996
|
+
(g) => {
|
|
1997
|
+
s(), o.value && g.size && (i = new MutationObserver(t), g.forEach((m) => i.observe(m, l)));
|
|
1998
1998
|
},
|
|
1999
1999
|
{ immediate: !0, flush: "post" }
|
|
2000
2000
|
), u = () => i == null ? void 0 : i.takeRecords(), f = () => {
|
|
@@ -2021,14 +2021,14 @@ function Pe(e, t = {}) {
|
|
|
2021
2021
|
i.value = !l.value;
|
|
2022
2022
|
const A = le(e).split(",");
|
|
2023
2023
|
s.value = A.some((u) => {
|
|
2024
|
-
const f = u.includes("not all"),
|
|
2025
|
-
let v = !!(
|
|
2026
|
-
return
|
|
2024
|
+
const f = u.includes("not all"), g = u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), m = u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
|
|
2025
|
+
let v = !!(g || m);
|
|
2026
|
+
return g && v && (v = n >= Ze(g[1])), m && v && (v = n <= Ze(m[1])), f ? !v : v;
|
|
2027
2027
|
});
|
|
2028
2028
|
return;
|
|
2029
2029
|
}
|
|
2030
2030
|
l.value && (o.value = a.matchMedia(le(e)), s.value = o.value.matches);
|
|
2031
|
-
}), Ct(o, "change", c, { passive: !0 }),
|
|
2031
|
+
}), Ct(o, "change", c, { passive: !0 }), I(() => s.value);
|
|
2032
2032
|
}
|
|
2033
2033
|
// @__NO_SIDE_EFFECTS__
|
|
2034
2034
|
function Hl(e, t = {}) {
|
|
@@ -2046,9 +2046,9 @@ function Hl(e, t = {}) {
|
|
|
2046
2046
|
enumerable: !0,
|
|
2047
2047
|
configurable: !0
|
|
2048
2048
|
}), m), {});
|
|
2049
|
-
function
|
|
2049
|
+
function g() {
|
|
2050
2050
|
const m = Object.keys(e).map((v) => [v, f[v], Ze(a(v))]).sort((v, h) => v[2] - h[2]);
|
|
2051
|
-
return
|
|
2051
|
+
return I(() => m.filter(([, v]) => v.value).map(([v]) => v));
|
|
2052
2052
|
}
|
|
2053
2053
|
return Object.assign(f, {
|
|
2054
2054
|
greaterOrEqual: A,
|
|
@@ -2077,10 +2077,10 @@ function Hl(e, t = {}) {
|
|
|
2077
2077
|
isInBetween(m, v) {
|
|
2078
2078
|
return c("min", a(m)) && c("max", a(v, -0.1));
|
|
2079
2079
|
},
|
|
2080
|
-
current:
|
|
2080
|
+
current: g,
|
|
2081
2081
|
active() {
|
|
2082
|
-
const m =
|
|
2083
|
-
return
|
|
2082
|
+
const m = g();
|
|
2083
|
+
return I(() => m.value.length === 0 ? "" : m.value.at(l === "min-width" ? -1 : 0));
|
|
2084
2084
|
}
|
|
2085
2085
|
});
|
|
2086
2086
|
}
|
|
@@ -2109,68 +2109,68 @@ function Rl(e, t = {}) {
|
|
|
2109
2109
|
onError: f = (k) => {
|
|
2110
2110
|
console.error(k);
|
|
2111
2111
|
}
|
|
2112
|
-
} = t,
|
|
2112
|
+
} = t, g = typeof s == "boolean" ? {
|
|
2113
2113
|
mutation: s
|
|
2114
|
-
} : s, m = Ee(0), v = Ee(0), h =
|
|
2114
|
+
} : s, m = Ee(0), v = Ee(0), h = I({
|
|
2115
2115
|
get() {
|
|
2116
2116
|
return m.value;
|
|
2117
2117
|
},
|
|
2118
2118
|
set(k) {
|
|
2119
|
-
|
|
2119
|
+
C(k, void 0);
|
|
2120
2120
|
}
|
|
2121
|
-
}),
|
|
2121
|
+
}), N = I({
|
|
2122
2122
|
get() {
|
|
2123
2123
|
return v.value;
|
|
2124
2124
|
},
|
|
2125
2125
|
set(k) {
|
|
2126
|
-
|
|
2126
|
+
C(void 0, k);
|
|
2127
2127
|
}
|
|
2128
2128
|
});
|
|
2129
|
-
function
|
|
2130
|
-
var O, j, y,
|
|
2129
|
+
function C(k, R) {
|
|
2130
|
+
var O, j, y, E;
|
|
2131
2131
|
if (!u)
|
|
2132
2132
|
return;
|
|
2133
2133
|
const x = le(e);
|
|
2134
2134
|
if (!x)
|
|
2135
2135
|
return;
|
|
2136
2136
|
(y = x instanceof Document ? u.document.body : x) == null || y.scrollTo({
|
|
2137
|
-
top: (O = le(R)) != null ? O :
|
|
2137
|
+
top: (O = le(R)) != null ? O : N.value,
|
|
2138
2138
|
left: (j = le(k)) != null ? j : h.value,
|
|
2139
2139
|
behavior: le(A)
|
|
2140
2140
|
});
|
|
2141
|
-
const X = ((
|
|
2142
|
-
h != null && (m.value = X.scrollLeft),
|
|
2141
|
+
const X = ((E = x == null ? void 0 : x.document) == null ? void 0 : E.documentElement) || (x == null ? void 0 : x.documentElement) || x;
|
|
2142
|
+
h != null && (m.value = X.scrollLeft), N != null && (v.value = X.scrollTop);
|
|
2143
2143
|
}
|
|
2144
|
-
const
|
|
2144
|
+
const T = Ee(!1), D = bt({
|
|
2145
2145
|
left: !0,
|
|
2146
2146
|
right: !1,
|
|
2147
2147
|
top: !0,
|
|
2148
2148
|
bottom: !1
|
|
2149
|
-
}),
|
|
2149
|
+
}), w = bt({
|
|
2150
2150
|
left: !1,
|
|
2151
2151
|
right: !1,
|
|
2152
2152
|
top: !1,
|
|
2153
2153
|
bottom: !1
|
|
2154
2154
|
}), B = (k) => {
|
|
2155
|
-
|
|
2155
|
+
T.value && (T.value = !1, w.left = !1, w.right = !1, w.top = !1, w.bottom = !1, l(k));
|
|
2156
2156
|
}, Z = /* @__PURE__ */ zl(B, a + n), F = (k) => {
|
|
2157
2157
|
var R;
|
|
2158
2158
|
if (!u)
|
|
2159
2159
|
return;
|
|
2160
|
-
const O = ((R = k == null ? void 0 : k.document) == null ? void 0 : R.documentElement) || (k == null ? void 0 : k.documentElement) || Ot(k), { display: j, flexDirection: y, direction:
|
|
2161
|
-
|
|
2160
|
+
const O = ((R = k == null ? void 0 : k.document) == null ? void 0 : R.documentElement) || (k == null ? void 0 : k.documentElement) || Ot(k), { display: j, flexDirection: y, direction: E } = getComputedStyle(O), x = E === "rtl" ? -1 : 1, X = O.scrollLeft;
|
|
2161
|
+
w.left = X < m.value, w.right = X > m.value;
|
|
2162
2162
|
const q = Math.abs(X * x) <= (o.left || 0), J = Math.abs(X * x) + O.clientWidth >= O.scrollWidth - (o.right || 0) - Bt;
|
|
2163
|
-
j === "flex" && y === "row-reverse" ? (
|
|
2163
|
+
j === "flex" && y === "row-reverse" ? (D.left = J, D.right = q) : (D.left = q, D.right = J), m.value = X;
|
|
2164
2164
|
let Y = O.scrollTop;
|
|
2165
|
-
k === u.document && !Y && (Y = u.document.body.scrollTop),
|
|
2165
|
+
k === u.document && !Y && (Y = u.document.body.scrollTop), w.top = Y < v.value, w.bottom = Y > v.value;
|
|
2166
2166
|
const ee = Math.abs(Y) <= (o.top || 0), ae = Math.abs(Y) + O.clientHeight >= O.scrollHeight - (o.bottom || 0) - Bt;
|
|
2167
|
-
j === "flex" && y === "column-reverse" ? (
|
|
2167
|
+
j === "flex" && y === "column-reverse" ? (D.top = ae, D.bottom = ee) : (D.top = ee, D.bottom = ae), v.value = Y;
|
|
2168
2168
|
}, te = (k) => {
|
|
2169
2169
|
var R;
|
|
2170
2170
|
if (!u)
|
|
2171
2171
|
return;
|
|
2172
2172
|
const O = (R = k.target.documentElement) != null ? R : k.target;
|
|
2173
|
-
F(O),
|
|
2173
|
+
F(O), T.value = !0, Z(k), i(k);
|
|
2174
2174
|
};
|
|
2175
2175
|
return Ct(
|
|
2176
2176
|
e,
|
|
@@ -2186,7 +2186,7 @@ function Rl(e, t = {}) {
|
|
|
2186
2186
|
} catch (k) {
|
|
2187
2187
|
f(k);
|
|
2188
2188
|
}
|
|
2189
|
-
}),
|
|
2189
|
+
}), g != null && g.mutation && e != null && e !== u && e !== document && Ul(
|
|
2190
2190
|
e,
|
|
2191
2191
|
() => {
|
|
2192
2192
|
const k = le(e);
|
|
@@ -2204,10 +2204,10 @@ function Rl(e, t = {}) {
|
|
|
2204
2204
|
c
|
|
2205
2205
|
), {
|
|
2206
2206
|
x: h,
|
|
2207
|
-
y:
|
|
2208
|
-
isScrolling:
|
|
2209
|
-
arrivedState:
|
|
2210
|
-
directions:
|
|
2207
|
+
y: N,
|
|
2208
|
+
isScrolling: T,
|
|
2209
|
+
arrivedState: D,
|
|
2210
|
+
directions: w,
|
|
2211
2211
|
measure() {
|
|
2212
2212
|
const k = le(e);
|
|
2213
2213
|
u && k && F(k);
|
|
@@ -2225,7 +2225,7 @@ const Zl = {
|
|
|
2225
2225
|
/* 90rem */
|
|
2226
2226
|
};
|
|
2227
2227
|
function st() {
|
|
2228
|
-
const e = /* @__PURE__ */ Hl(Zl), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), l = e.smaller("xl"), i = e.greater("md"), o = e.greater("lg"), s = a, c =
|
|
2228
|
+
const e = /* @__PURE__ */ Hl(Zl), t = e.smaller("sm"), a = e.smaller("md"), n = e.smaller("lg"), l = e.smaller("xl"), i = e.greater("md"), o = e.greater("lg"), s = a, c = I(() => i.value && n.value), A = o, u = e.active();
|
|
2229
2229
|
return {
|
|
2230
2230
|
isMobile: s,
|
|
2231
2231
|
isTablet: c,
|
|
@@ -2273,7 +2273,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2273
2273
|
padding: { default: "var(--spacing-md)" }
|
|
2274
2274
|
},
|
|
2275
2275
|
setup(e, { expose: t }) {
|
|
2276
|
-
|
|
2276
|
+
re((f) => ({
|
|
2277
2277
|
v553324d8: f.width,
|
|
2278
2278
|
d4f07f42: f.padding
|
|
2279
2279
|
}));
|
|
@@ -2287,15 +2287,15 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2287
2287
|
a.value = f;
|
|
2288
2288
|
return;
|
|
2289
2289
|
}
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2290
|
+
const g = f.$el;
|
|
2291
|
+
g instanceof HTMLElement ? a.value = g : a.value = null;
|
|
2292
2292
|
}
|
|
2293
2293
|
return t({ setTriggerRef: u, triggerRef: a }), se(l, async (f) => {
|
|
2294
2294
|
f ? (await rt(), c()) : A();
|
|
2295
2295
|
}), ta(() => {
|
|
2296
2296
|
A();
|
|
2297
|
-
}), (f,
|
|
2298
|
-
|
|
2297
|
+
}), (f, g) => (d(), b("div", Xl, [
|
|
2298
|
+
M("div", {
|
|
2299
2299
|
ref: u,
|
|
2300
2300
|
class: "av-popover-trigger-wrapper"
|
|
2301
2301
|
}, [
|
|
@@ -2308,15 +2308,15 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2308
2308
|
ref: n,
|
|
2309
2309
|
tabindex: "-1",
|
|
2310
2310
|
class: "av-popover",
|
|
2311
|
-
style:
|
|
2312
|
-
onKeydown:
|
|
2311
|
+
style: de(`top: ${r(i).top}rem; left: ${r(i).left}rem;`),
|
|
2312
|
+
onKeydown: g[0] || (g[0] = Ae(ue(
|
|
2313
2313
|
//@ts-ignore
|
|
2314
2314
|
(...m) => r(s) && r(s)(...m),
|
|
2315
2315
|
["prevent"]
|
|
2316
2316
|
), ["esc"]))
|
|
2317
2317
|
}, [
|
|
2318
2318
|
U(f.$slots, "popover", { close: r(s) }, void 0, !0)
|
|
2319
|
-
], 36)) :
|
|
2319
|
+
], 36)) : L("", !0)
|
|
2320
2320
|
]))
|
|
2321
2321
|
]));
|
|
2322
2322
|
}
|
|
@@ -2347,7 +2347,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2347
2347
|
padding: e.padding
|
|
2348
2348
|
}, {
|
|
2349
2349
|
trigger: K(({ toggle: o }) => [
|
|
2350
|
-
V(
|
|
2350
|
+
V(oe, {
|
|
2351
2351
|
icon: e.triggerIcon,
|
|
2352
2352
|
label: e.triggerLabel || e.triggerAriaLabel,
|
|
2353
2353
|
"aria-label": e.triggerAriaLabel,
|
|
@@ -2359,8 +2359,8 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2359
2359
|
}, null, 8, ["icon", "label", "aria-label", "variant", "small", "no-sentence-case", "icon-only", "onClick"])
|
|
2360
2360
|
]),
|
|
2361
2361
|
popover: K(({ close: o }) => [
|
|
2362
|
-
|
|
2363
|
-
(d(!0), b($, null, ie(e.items, (s) => (d(), S(
|
|
2362
|
+
M("div", Kl, [
|
|
2363
|
+
(d(!0), b($, null, ie(e.items, (s) => (d(), S(oe, {
|
|
2364
2364
|
key: s.name,
|
|
2365
2365
|
class: "av-dropdown__menu-item",
|
|
2366
2366
|
icon: s.icon,
|
|
@@ -2390,13 +2390,13 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2390
2390
|
},
|
|
2391
2391
|
emits: ["select"],
|
|
2392
2392
|
setup(e, { emit: t }) {
|
|
2393
|
-
const a = t, { isBelowLg: n } = st(), l =
|
|
2393
|
+
const a = t, { isBelowLg: n } = st(), l = I(() => e.id ?? `language-selector-${crypto.randomUUID()}`), i = I(
|
|
2394
2394
|
() => e.languages.find(({ codeIso: A }) => A === e.currentLanguage)
|
|
2395
|
-
), o =
|
|
2396
|
-
var f,
|
|
2397
|
-
const A = ((f = i.value) == null ? void 0 : f.codeIso.toUpperCase()) ?? "", u = `${A} - ${(
|
|
2395
|
+
), o = I(() => {
|
|
2396
|
+
var f, g;
|
|
2397
|
+
const A = ((f = i.value) == null ? void 0 : f.codeIso.toUpperCase()) ?? "", u = `${A} - ${(g = i.value) == null ? void 0 : g.label}`;
|
|
2398
2398
|
return n.value ? u : A;
|
|
2399
|
-
}), s =
|
|
2399
|
+
}), s = I(() => e.languages.map((A) => ({
|
|
2400
2400
|
name: A.codeIso,
|
|
2401
2401
|
label: `${A.codeIso.toUpperCase()} - ${A.label}`
|
|
2402
2402
|
})));
|
|
@@ -2436,7 +2436,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2436
2436
|
},
|
|
2437
2437
|
emits: ["click"],
|
|
2438
2438
|
setup(e) {
|
|
2439
|
-
return
|
|
2439
|
+
return re((t) => ({
|
|
2440
2440
|
v2deb83d4: t.customPadding
|
|
2441
2441
|
})), (t, a) => (d(), b("button", {
|
|
2442
2442
|
title: e.label,
|
|
@@ -2444,14 +2444,14 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2444
2444
|
class: "av-rich-button av-row av-w-full av-align-center av-justify-between",
|
|
2445
2445
|
onClick: a[0] || (a[0] = (n) => t.$emit("click", n))
|
|
2446
2446
|
}, [
|
|
2447
|
-
|
|
2448
|
-
|
|
2447
|
+
M("div", ei, [
|
|
2448
|
+
M("div", ti, [
|
|
2449
2449
|
e.iconLeft ? (d(), S(ne, {
|
|
2450
2450
|
key: 0,
|
|
2451
2451
|
name: e.iconLeft,
|
|
2452
2452
|
color: "var(--dark-background-primary1)",
|
|
2453
2453
|
size: 1.5
|
|
2454
|
-
}, null, 8, ["name"])) :
|
|
2454
|
+
}, null, 8, ["name"])) : L("", !0),
|
|
2455
2455
|
U(t.$slots, "default", {}, void 0, !0)
|
|
2456
2456
|
]),
|
|
2457
2457
|
e.iconRight ? (d(), S(ne, {
|
|
@@ -2459,7 +2459,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2459
2459
|
name: e.iconRight,
|
|
2460
2460
|
color: "var(--dark-background-primary1)",
|
|
2461
2461
|
size: 1.5
|
|
2462
|
-
}, null, 8, ["name"])) :
|
|
2462
|
+
}, null, 8, ["name"])) : L("", !0)
|
|
2463
2463
|
])
|
|
2464
2464
|
], 8, _l));
|
|
2465
2465
|
}
|
|
@@ -2488,15 +2488,15 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2488
2488
|
}),
|
|
2489
2489
|
emits: ["update:modelValue"],
|
|
2490
2490
|
setup(e) {
|
|
2491
|
-
const t =
|
|
2491
|
+
const t = I(() => e.id ?? `checkbox-${crypto.randomUUID()}`), a = I(() => e.errorMessage || e.validMessage), n = I(() => a.value ? `message-${t.value}` : void 0), l = we(e, "modelValue"), i = I(() => l.value.includes(e.value)), o = I(() => i.value ? H.CHECKBOX_MARKED : H.CHECKBOX_BLANK_OUTLINE), s = I(() => i.value ? "var(--dark-background-primary1)" : "var(--icon)"), c = I(() => e.small ? 1 : 1.5), A = I(() => e.small ? i.value ? "caption-bold" : "caption-regular" : i.value ? "b2-bold" : "b2-regular");
|
|
2492
2492
|
return (u, f) => {
|
|
2493
|
-
const
|
|
2493
|
+
const g = ne, m = Qe, v = ia;
|
|
2494
2494
|
return d(), S(v, {
|
|
2495
2495
|
inline: e.inline,
|
|
2496
2496
|
disabled: e.disabled
|
|
2497
2497
|
}, {
|
|
2498
2498
|
default: K(() => [
|
|
2499
|
-
Et(
|
|
2499
|
+
Et(M("input", _({
|
|
2500
2500
|
id: r(t),
|
|
2501
2501
|
"onUpdate:modelValue": f[0] || (f[0] = (h) => l.value = h),
|
|
2502
2502
|
name: e.name,
|
|
@@ -2513,25 +2513,25 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2513
2513
|
}), null, 16, ni), [
|
|
2514
2514
|
[Ya, l.value]
|
|
2515
2515
|
]),
|
|
2516
|
-
|
|
2516
|
+
M("label", {
|
|
2517
2517
|
for: r(t),
|
|
2518
2518
|
class: "av-label av-pb-none"
|
|
2519
2519
|
}, [
|
|
2520
|
-
|
|
2521
|
-
V(
|
|
2520
|
+
M("div", ii, [
|
|
2521
|
+
V(g, {
|
|
2522
2522
|
class: "option-checkbox",
|
|
2523
2523
|
name: r(o),
|
|
2524
2524
|
color: r(s),
|
|
2525
2525
|
size: r(c)
|
|
2526
2526
|
}, null, 8, ["name", "color", "size"]),
|
|
2527
|
-
e.icon ? (d(), S(
|
|
2527
|
+
e.icon ? (d(), S(g, {
|
|
2528
2528
|
key: 0,
|
|
2529
2529
|
class: "option-icon",
|
|
2530
2530
|
name: e.icon,
|
|
2531
2531
|
color: r(s),
|
|
2532
2532
|
size: r(c)
|
|
2533
|
-
}, null, 8, ["name", "color", "size"])) :
|
|
2534
|
-
|
|
2533
|
+
}, null, 8, ["name", "color", "size"])) : L("", !0),
|
|
2534
|
+
M("span", {
|
|
2535
2535
|
class: Q(["label", r(A)])
|
|
2536
2536
|
}, [
|
|
2537
2537
|
U(u.$slots, "label", {}, () => [
|
|
@@ -2541,9 +2541,9 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2541
2541
|
e.required ? (d(), b("span", {
|
|
2542
2542
|
key: 1,
|
|
2543
2543
|
class: Q(["required", r(A)])
|
|
2544
|
-
}, " *", 2)) :
|
|
2544
|
+
}, " *", 2)) : L("", !0)
|
|
2545
2545
|
]),
|
|
2546
|
-
e.hint ? (d(), b("span", ri, W(e.hint), 1)) :
|
|
2546
|
+
e.hint ? (d(), b("span", ri, W(e.hint), 1)) : L("", !0)
|
|
2547
2547
|
], 8, li),
|
|
2548
2548
|
V(m, {
|
|
2549
2549
|
"message-id": r(n),
|
|
@@ -2567,7 +2567,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2567
2567
|
inline: { type: Boolean, default: !1 }
|
|
2568
2568
|
},
|
|
2569
2569
|
setup(e) {
|
|
2570
|
-
const t =
|
|
2570
|
+
const t = I(() => e.id ?? `checkboxes-group-${crypto.randomUUID()}`);
|
|
2571
2571
|
return (a, n) => {
|
|
2572
2572
|
const l = la;
|
|
2573
2573
|
return d(), S(l, {
|
|
@@ -2581,7 +2581,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2581
2581
|
"aria-live": "polite"
|
|
2582
2582
|
}, {
|
|
2583
2583
|
default: K(() => [
|
|
2584
|
-
|
|
2584
|
+
M("div", {
|
|
2585
2585
|
class: Q(["av-checkboxes-group av-gap-sm", {
|
|
2586
2586
|
"av-checkboxes-group--inline av-row av-row-wrap": e.inline,
|
|
2587
2587
|
"av-col": !e.inline
|
|
@@ -2637,17 +2637,17 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2637
2637
|
},
|
|
2638
2638
|
emits: ["update:modelValue", "update:validMessage", "update:error", "change", "onDropAcceptTypeError"],
|
|
2639
2639
|
setup(e, { emit: t }) {
|
|
2640
|
-
|
|
2640
|
+
re((v) => ({
|
|
2641
2641
|
v8df8b300: v.maxWidth
|
|
2642
2642
|
}));
|
|
2643
|
-
const a = t, n =
|
|
2643
|
+
const a = t, n = I(() => e.id ?? `file-upload-${crypto.randomUUID()}`), l = I(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), i = z(!1);
|
|
2644
2644
|
function o(v) {
|
|
2645
2645
|
const h = l.value;
|
|
2646
|
-
return h ? h.split(",").map((
|
|
2646
|
+
return h ? h.split(",").map((C) => C.trim().toLowerCase()).some((C) => C.startsWith(".") ? v.name.toLowerCase().endsWith(C) : C.includes("/") ? v.type === C || v.type.startsWith(`${C.split("/")[0]}/`) : !1) : !0;
|
|
2647
2647
|
}
|
|
2648
2648
|
async function s(v) {
|
|
2649
|
-
var
|
|
2650
|
-
if (v.preventDefault(), i.value = !1, e.disabled || !((
|
|
2649
|
+
var N, C;
|
|
2650
|
+
if (v.preventDefault(), i.value = !1, e.disabled || !((C = (N = v.dataTransfer) == null ? void 0 : N.files) != null && C.length))
|
|
2651
2651
|
return;
|
|
2652
2652
|
const h = Array.from(v.dataTransfer.files).filter(o);
|
|
2653
2653
|
await rt(), h.length ? (a("change", h), a("update:modelValue", h[0] ?? "")) : a("onDropAcceptTypeError");
|
|
@@ -2662,7 +2662,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2662
2662
|
const h = v.target.files;
|
|
2663
2663
|
a("change", h), a("update:modelValue", (h == null ? void 0 : h[0]) ?? null);
|
|
2664
2664
|
}
|
|
2665
|
-
const f =
|
|
2665
|
+
const f = I(() => e.fileName || e.modelValue && !e.enableMultiple), g = I(() => ({
|
|
2666
2666
|
for: n.value,
|
|
2667
2667
|
class: [
|
|
2668
2668
|
"av-upload-group",
|
|
@@ -2683,15 +2683,15 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2683
2683
|
v ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (h = e.onDeleteFile) == null || h.call(e);
|
|
2684
2684
|
}
|
|
2685
2685
|
return (v, h) => (d(), b($, null, [
|
|
2686
|
-
(d(), S(he(r(f) ? "div" : "label"), _(r(f) ? {} : r(
|
|
2686
|
+
(d(), S(he(r(f) ? "div" : "label"), _(r(f) ? {} : r(g), {
|
|
2687
2687
|
class: r(f) ? "file-preview-container" : ""
|
|
2688
2688
|
}), {
|
|
2689
2689
|
default: K(() => [
|
|
2690
|
-
|
|
2690
|
+
M("div", {
|
|
2691
2691
|
class: Q(r(f) ? "" : "file-upload-container")
|
|
2692
2692
|
}, [
|
|
2693
|
-
|
|
2694
|
-
|
|
2693
|
+
M("div", ui, [
|
|
2694
|
+
M("div", di, [
|
|
2695
2695
|
U(v.$slots, "left", {}, () => [
|
|
2696
2696
|
V(ne, {
|
|
2697
2697
|
size: 2.5,
|
|
@@ -2700,20 +2700,20 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2700
2700
|
}, null, 8, ["name"])
|
|
2701
2701
|
], !0)
|
|
2702
2702
|
]),
|
|
2703
|
-
|
|
2703
|
+
M("div", fi, [
|
|
2704
2704
|
r(f) ? (d(), b("div", vi, [
|
|
2705
|
-
|
|
2705
|
+
M("span", mi, W(e.fileName || e.modelValue.name), 1)
|
|
2706
2706
|
])) : (d(), b("div", gi, [
|
|
2707
|
-
|
|
2708
|
-
|
|
2707
|
+
M("span", Ii, W(e.title), 1),
|
|
2708
|
+
M("span", bi, W(e.description), 1)
|
|
2709
2709
|
])),
|
|
2710
2710
|
V(Ai, {
|
|
2711
2711
|
"valid-message": e.validMessage,
|
|
2712
2712
|
error: e.error
|
|
2713
2713
|
}, null, 8, ["valid-message", "error"])
|
|
2714
2714
|
]),
|
|
2715
|
-
e.disabled ?
|
|
2716
|
-
r(f) ? (d(), S(
|
|
2715
|
+
e.disabled ? L("", !0) : (d(), b("div", hi, [
|
|
2716
|
+
r(f) ? (d(), S(oe, {
|
|
2717
2717
|
key: 0,
|
|
2718
2718
|
label: e.deleteButtonLabel,
|
|
2719
2719
|
theme: "SECONDARY",
|
|
@@ -2725,7 +2725,7 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2725
2725
|
color: "var(--dark-background-primary1)"
|
|
2726
2726
|
}, null, 8, ["name"]))
|
|
2727
2727
|
])),
|
|
2728
|
-
r(f) ?
|
|
2728
|
+
r(f) ? L("", !0) : (d(), b("input", _({
|
|
2729
2729
|
key: 1,
|
|
2730
2730
|
id: r(n),
|
|
2731
2731
|
class: "av-upload",
|
|
@@ -2735,14 +2735,14 @@ const Xl = { class: "av-popover-wrapper" }, ql = /* @__PURE__ */ p({
|
|
|
2735
2735
|
disabled: e.disabled,
|
|
2736
2736
|
"aria-disabled": e.disabled,
|
|
2737
2737
|
accept: r(l),
|
|
2738
|
-
onChange: h[1] || (h[1] = (
|
|
2738
|
+
onChange: h[1] || (h[1] = (N) => u(N))
|
|
2739
2739
|
}), null, 16, yi))
|
|
2740
2740
|
])
|
|
2741
2741
|
], 2)
|
|
2742
2742
|
]),
|
|
2743
2743
|
_: 3
|
|
2744
2744
|
}, 16, ["class"])),
|
|
2745
|
-
|
|
2745
|
+
M("span", Ci, [
|
|
2746
2746
|
U(v.$slots, "hint", {}, void 0, !0)
|
|
2747
2747
|
])
|
|
2748
2748
|
], 64));
|
|
@@ -3277,8 +3277,8 @@ function dr(e, t) {
|
|
|
3277
3277
|
return Math.round(n / ha) + 1;
|
|
3278
3278
|
}
|
|
3279
3279
|
function Ea(e, t) {
|
|
3280
|
-
var u, f,
|
|
3281
|
-
const a = ce(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = ct(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((m = (
|
|
3280
|
+
var u, f, g, m;
|
|
3281
|
+
const a = ce(e, t == null ? void 0 : t.in), n = a.getFullYear(), l = ct(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? l.firstWeekContainsDate ?? ((m = (g = l.locale) == null ? void 0 : g.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, o = fe((t == null ? void 0 : t.in) || e, 0);
|
|
3282
3282
|
o.setFullYear(n + 1, 0, i), o.setHours(0, 0, 0, 0);
|
|
3283
3283
|
const s = Xe(o, t), c = fe((t == null ? void 0 : t.in) || e, 0);
|
|
3284
3284
|
c.setFullYear(n, 0, i), c.setHours(0, 0, 0, 0);
|
|
@@ -3990,15 +3990,15 @@ function Er(e, t, a) {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
const Nr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Tr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Dr = /^'([^]*?)'?$/, Lr = /''/g, wr = /[a-zA-Z]/;
|
|
3992
3992
|
function Ie(e, t, a) {
|
|
3993
|
-
var u, f,
|
|
3994
|
-
const n = ct(), l = n.locale ?? Ar, i = n.firstWeekContainsDate ?? ((f = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = n.weekStartsOn ?? ((m = (
|
|
3993
|
+
var u, f, g, m;
|
|
3994
|
+
const n = ct(), l = n.locale ?? Ar, i = n.firstWeekContainsDate ?? ((f = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, o = n.weekStartsOn ?? ((m = (g = n.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? 0, s = ce(e, a == null ? void 0 : a.in);
|
|
3995
3995
|
if (!At(s))
|
|
3996
3996
|
throw new RangeError("Invalid time value");
|
|
3997
3997
|
let c = t.match(Tr).map((v) => {
|
|
3998
3998
|
const h = v[0];
|
|
3999
3999
|
if (h === "p" || h === "P") {
|
|
4000
|
-
const
|
|
4001
|
-
return
|
|
4000
|
+
const N = gr[h];
|
|
4001
|
+
return N(v, l.formatLong);
|
|
4002
4002
|
}
|
|
4003
4003
|
return v;
|
|
4004
4004
|
}).join("").match(Nr).map((v) => {
|
|
@@ -4025,8 +4025,8 @@ function Ie(e, t, a) {
|
|
|
4025
4025
|
if (!v.isToken) return v.value;
|
|
4026
4026
|
const h = v.value;
|
|
4027
4027
|
(Cr(h) || yr(h)) && Mr(h, t, String(e));
|
|
4028
|
-
const
|
|
4029
|
-
return
|
|
4028
|
+
const N = Ht[h[0]];
|
|
4029
|
+
return N(s, h, l.localize, A);
|
|
4030
4030
|
}).join("");
|
|
4031
4031
|
}
|
|
4032
4032
|
function Or(e) {
|
|
@@ -4275,27 +4275,27 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4275
4275
|
},
|
|
4276
4276
|
emits: ["update:modelValue"],
|
|
4277
4277
|
setup(e, { expose: t, emit: a }) {
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4278
|
+
re((T) => ({
|
|
4279
|
+
v25007232: T.width,
|
|
4280
|
+
v8d48996a: r(v),
|
|
4281
|
+
v683177a0: T.textareaMinHeight
|
|
4282
4282
|
}));
|
|
4283
|
-
const n = a, l = Xa(), i =
|
|
4284
|
-
var
|
|
4285
|
-
return (
|
|
4283
|
+
const n = a, l = Xa(), i = I(() => e.id ?? `input-${crypto.randomUUID()}`), o = I(() => e.errorMessage ? Array.isArray(e.errorMessage) ? e.errorMessage : [e.errorMessage] : []), s = I(() => e.validMessage ? Array.isArray(e.validMessage) ? e.validMessage : [e.validMessage] : []), c = I(() => !!e.errorMessage), A = z(null), u = () => {
|
|
4284
|
+
var T;
|
|
4285
|
+
return (T = A.value) == null ? void 0 : T.focus();
|
|
4286
4286
|
};
|
|
4287
4287
|
function f() {
|
|
4288
|
-
var
|
|
4289
|
-
(
|
|
4288
|
+
var T;
|
|
4289
|
+
(T = A.value) == null || T.showPicker();
|
|
4290
4290
|
}
|
|
4291
|
-
const
|
|
4291
|
+
const g = I(() => e.isTextarea ? "textarea" : "input"), m = I(() => [
|
|
4292
4292
|
"av-label",
|
|
4293
4293
|
{ invisible: !e.labelVisible }
|
|
4294
|
-
]), v =
|
|
4294
|
+
]), v = I(() => e.labelVisible ? "69%" : "55%"), h = I(() => ({
|
|
4295
4295
|
"av-input__input av-col av-align-center av-w-full b2-light": !0,
|
|
4296
4296
|
"av-input__input--error": c.value,
|
|
4297
4297
|
"av-input__input--valid": e.isValid
|
|
4298
|
-
})),
|
|
4298
|
+
})), N = I(() => ({
|
|
4299
4299
|
...l,
|
|
4300
4300
|
disabled: e.disabled,
|
|
4301
4301
|
maxlength: e.maxlength,
|
|
@@ -4306,40 +4306,40 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4306
4306
|
max: Xt(e.type, e.maxDate),
|
|
4307
4307
|
min: Xt(e.type, e.minDate),
|
|
4308
4308
|
ariaDescribedBy: e.descriptionId || void 0
|
|
4309
|
-
})),
|
|
4309
|
+
})), C = I(() => Ye(e.type) ? Kr(e.type) : e.prefixIcon);
|
|
4310
4310
|
return t({
|
|
4311
4311
|
focus: u
|
|
4312
|
-
}), (
|
|
4313
|
-
const
|
|
4312
|
+
}), (T, D) => {
|
|
4313
|
+
const w = Qe;
|
|
4314
4314
|
return d(), b("div", {
|
|
4315
4315
|
class: Q(["av-input av-col av-gap-xxs", {
|
|
4316
4316
|
"av-input--date": e.type === "date",
|
|
4317
4317
|
"av-input--no-radius": e.noRadius
|
|
4318
4318
|
}])
|
|
4319
4319
|
}, [
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
r(
|
|
4320
|
+
M("div", Gr, [
|
|
4321
|
+
M("div", Jr, [
|
|
4322
|
+
r(C) ? (d(), b("div", $r, [
|
|
4323
4323
|
V(ne, {
|
|
4324
|
-
name: r(
|
|
4324
|
+
name: r(C),
|
|
4325
4325
|
size: 1.2
|
|
4326
4326
|
}, null, 8, ["name"])
|
|
4327
|
-
])) :
|
|
4328
|
-
|
|
4327
|
+
])) : L("", !0),
|
|
4328
|
+
M("label", {
|
|
4329
4329
|
class: Q(r(m)),
|
|
4330
4330
|
for: r(i)
|
|
4331
4331
|
}, [
|
|
4332
|
-
|
|
4332
|
+
M("span", {
|
|
4333
4333
|
class: Q(e.labelClass)
|
|
4334
4334
|
}, [
|
|
4335
4335
|
Le(W(e.label) + " ", 1),
|
|
4336
|
-
U(
|
|
4337
|
-
e.required ? (d(), b("span", eo, "*")) :
|
|
4336
|
+
U(T.$slots, "requiredTip", {}, () => [
|
|
4337
|
+
e.required ? (d(), b("span", eo, "*")) : L("", !0)
|
|
4338
4338
|
], !0),
|
|
4339
|
-
e.hint ? (d(), b("span", to, W(e.hint), 1)) :
|
|
4339
|
+
e.hint ? (d(), b("span", to, W(e.hint), 1)) : L("", !0)
|
|
4340
4340
|
], 2)
|
|
4341
4341
|
], 10, _r),
|
|
4342
|
-
(d(), S(he(r(
|
|
4342
|
+
(d(), S(he(r(g)), _(r(N), {
|
|
4343
4343
|
id: r(i),
|
|
4344
4344
|
ref_key: "__input",
|
|
4345
4345
|
ref: A,
|
|
@@ -4348,43 +4348,44 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4348
4348
|
"av-sr-only": r(Ye)(e.type)
|
|
4349
4349
|
},
|
|
4350
4350
|
value: e.modelValue,
|
|
4351
|
-
onInput:
|
|
4351
|
+
onInput: D[0] || (D[0] = (B) => n("update:modelValue", B.target.value))
|
|
4352
4352
|
}), null, 16, ["id", "class", "value"])),
|
|
4353
|
-
r(Ye)(e.type) ? (d(), S(he(r(
|
|
4353
|
+
r(Ye)(e.type) ? (d(), S(he(r(g)), _({
|
|
4354
4354
|
key: 1,
|
|
4355
4355
|
class: r(h)
|
|
4356
|
-
}, r(
|
|
4356
|
+
}, r(N), {
|
|
4357
4357
|
placeholder: r(Fr)(e.type),
|
|
4358
4358
|
type: "text",
|
|
4359
4359
|
readonly: "",
|
|
4360
4360
|
value: r(qr)(e.type, e.modelValue, e.formatDateStr),
|
|
4361
4361
|
onClick: f
|
|
4362
|
-
}), null, 16, ["class", "placeholder", "value"])) :
|
|
4362
|
+
}), null, 16, ["class", "placeholder", "value"])) : L("", !0)
|
|
4363
4363
|
]),
|
|
4364
|
-
U(
|
|
4364
|
+
e.disabled ? L("", !0) : U(T.$slots, "maxLengthCaption", {
|
|
4365
|
+
key: 0,
|
|
4365
4366
|
currentValue: e.modelValue,
|
|
4366
4367
|
maxlength: e.maxlength
|
|
4367
4368
|
}, () => {
|
|
4368
4369
|
var B;
|
|
4369
4370
|
return [
|
|
4370
|
-
e.maxlength ? (d(), b("span", ao, W((B = e.modelValue) == null ? void 0 : B.toString().length) + " / " + W(e.maxlength), 1)) :
|
|
4371
|
+
e.maxlength ? (d(), b("span", ao, W((B = e.modelValue) == null ? void 0 : B.toString().length) + " / " + W(e.maxlength), 1)) : L("", !0)
|
|
4371
4372
|
];
|
|
4372
4373
|
}, !0)
|
|
4373
4374
|
]),
|
|
4374
|
-
r(o).length > 0 ? (d(), S(
|
|
4375
|
+
r(o).length > 0 ? (d(), S(w, {
|
|
4375
4376
|
key: 0,
|
|
4376
4377
|
message: r(o),
|
|
4377
4378
|
type: "error"
|
|
4378
|
-
}, null, 8, ["message"])) :
|
|
4379
|
-
r(s).length > 0 ? (d(), S(
|
|
4379
|
+
}, null, 8, ["message"])) : L("", !0),
|
|
4380
|
+
r(s).length > 0 ? (d(), S(w, {
|
|
4380
4381
|
key: 1,
|
|
4381
4382
|
message: r(s),
|
|
4382
4383
|
type: "success"
|
|
4383
|
-
}, null, 8, ["message"])) :
|
|
4384
|
+
}, null, 8, ["message"])) : L("", !0)
|
|
4384
4385
|
], 2);
|
|
4385
4386
|
};
|
|
4386
4387
|
}
|
|
4387
|
-
}), qe = /* @__PURE__ */ P(no, [["__scopeId", "data-v-
|
|
4388
|
+
}), qe = /* @__PURE__ */ P(no, [["__scopeId", "data-v-9cca3bd6"]]), lo = ["for"], io = /* @__PURE__ */ p({
|
|
4388
4389
|
__name: "AvPeriodInput",
|
|
4389
4390
|
props: {
|
|
4390
4391
|
id: {},
|
|
@@ -4405,37 +4406,40 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4405
4406
|
},
|
|
4406
4407
|
emits: ["update:startModelValue", "update:endModelValue", "change"],
|
|
4407
4408
|
setup(e, { emit: t }) {
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4409
|
+
re((C) => ({
|
|
4410
|
+
fb8ac81e: C.separatorSpacing
|
|
4411
|
+
}));
|
|
4412
|
+
const a = t, n = I(() => e.id ?? `period-input-${crypto.randomUUID()}`), l = I(() => `${n.value}__start`), i = I(() => `${n.value}__end`);
|
|
4413
|
+
function o(C) {
|
|
4414
|
+
if (!C)
|
|
4411
4415
|
return;
|
|
4412
|
-
const
|
|
4413
|
-
return At(
|
|
4416
|
+
const T = Ta(C);
|
|
4417
|
+
return At(T) ? T : void 0;
|
|
4414
4418
|
}
|
|
4415
|
-
function
|
|
4416
|
-
return
|
|
4419
|
+
function s(C, T) {
|
|
4420
|
+
return C && T ? wi([C, T]) : C ?? T;
|
|
4417
4421
|
}
|
|
4418
|
-
function
|
|
4419
|
-
return
|
|
4422
|
+
function c(C, T) {
|
|
4423
|
+
return C && T ? Oi([C, T]) : C ?? T;
|
|
4420
4424
|
}
|
|
4421
|
-
const
|
|
4422
|
-
function
|
|
4423
|
-
const
|
|
4424
|
-
a("update:startModelValue",
|
|
4425
|
+
const A = I(() => o(e.startModelValue)), u = I(() => o(e.endModelValue)), f = I(() => e.startMinDate), g = I(() => c(e.startMaxDate, u.value)), m = I(() => s(e.endMinDate, A.value)), v = I(() => e.endMaxDate);
|
|
4426
|
+
function h(C) {
|
|
4427
|
+
const T = (C == null ? void 0 : C.toString()) ?? "";
|
|
4428
|
+
a("update:startModelValue", T), a("change", { start: T, end: e.endModelValue });
|
|
4425
4429
|
}
|
|
4426
|
-
function
|
|
4427
|
-
const
|
|
4428
|
-
a("update:endModelValue",
|
|
4430
|
+
function N(C) {
|
|
4431
|
+
const T = (C == null ? void 0 : C.toString()) ?? "";
|
|
4432
|
+
a("update:endModelValue", T), a("change", { start: e.startModelValue, end: T });
|
|
4429
4433
|
}
|
|
4430
|
-
return (
|
|
4434
|
+
return (C, T) => (d(), b("div", {
|
|
4431
4435
|
class: Q(["av-period-input av-col av-gap-xxs", { "av-period-input--stacked": e.stacked }])
|
|
4432
4436
|
}, [
|
|
4433
|
-
|
|
4437
|
+
M("label", {
|
|
4434
4438
|
class: Q(e.labelClass),
|
|
4435
4439
|
for: r(l),
|
|
4436
4440
|
"data-testid": "common-label"
|
|
4437
4441
|
}, W(e.label), 11, lo),
|
|
4438
|
-
|
|
4442
|
+
M("div", {
|
|
4439
4443
|
class: Q(["av-period-input__row", {
|
|
4440
4444
|
"av-row av-align-end": !e.stacked,
|
|
4441
4445
|
"av-col av-align-stretch": e.stacked
|
|
@@ -4448,18 +4452,12 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4448
4452
|
label: e.startLabel,
|
|
4449
4453
|
"label-visible": !1,
|
|
4450
4454
|
disabled: e.disabled,
|
|
4451
|
-
"aria-disabled": e.disabled,
|
|
4452
4455
|
width: e.width,
|
|
4453
|
-
"min-date": r(
|
|
4454
|
-
"max-date": r(
|
|
4456
|
+
"min-date": r(f),
|
|
4457
|
+
"max-date": r(g),
|
|
4455
4458
|
"data-testid": "start-date-input",
|
|
4456
|
-
"onUpdate:modelValue":
|
|
4457
|
-
}, null, 8, ["id", "model-value", "label", "disabled", "
|
|
4458
|
-
C("div", {
|
|
4459
|
-
class: "av-period-input__separator",
|
|
4460
|
-
"aria-hidden": "true",
|
|
4461
|
-
style: Ae(r(o))
|
|
4462
|
-
}, null, 4),
|
|
4459
|
+
"onUpdate:modelValue": T[0] || (T[0] = (D) => h(D))
|
|
4460
|
+
}, null, 8, ["id", "model-value", "label", "disabled", "width", "min-date", "max-date"]),
|
|
4463
4461
|
V(qe, {
|
|
4464
4462
|
id: r(i),
|
|
4465
4463
|
type: "date",
|
|
@@ -4467,17 +4465,16 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4467
4465
|
label: e.endLabel,
|
|
4468
4466
|
"label-visible": !1,
|
|
4469
4467
|
disabled: e.disabled,
|
|
4470
|
-
"aria-disabled": e.disabled,
|
|
4471
4468
|
width: e.width,
|
|
4472
|
-
"min-date": r(
|
|
4473
|
-
"max-date": r(
|
|
4469
|
+
"min-date": r(m),
|
|
4470
|
+
"max-date": r(v),
|
|
4474
4471
|
"data-testid": "end-date-input",
|
|
4475
|
-
"onUpdate:modelValue":
|
|
4476
|
-
}, null, 8, ["id", "model-value", "label", "disabled", "
|
|
4472
|
+
"onUpdate:modelValue": T[1] || (T[1] = (D) => N(D))
|
|
4473
|
+
}, null, 8, ["id", "model-value", "label", "disabled", "width", "min-date", "max-date"])
|
|
4477
4474
|
], 2)
|
|
4478
4475
|
], 2));
|
|
4479
4476
|
}
|
|
4480
|
-
}), FA = /* @__PURE__ */ P(io, [["__scopeId", "data-v-
|
|
4477
|
+
}), FA = /* @__PURE__ */ P(io, [["__scopeId", "data-v-e9c8185b"]]), ro = {
|
|
4481
4478
|
class: "av-search-bar",
|
|
4482
4479
|
role: "search"
|
|
4483
4480
|
}, oo = /* @__PURE__ */ p({
|
|
@@ -4491,11 +4488,11 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4491
4488
|
},
|
|
4492
4489
|
emits: ["update:modelValue", "search"],
|
|
4493
4490
|
setup(e, { emit: t }) {
|
|
4494
|
-
const a = t, n =
|
|
4491
|
+
const a = t, n = I(() => e.id ?? `search-bar-${crypto.randomUUID()}`);
|
|
4495
4492
|
return (l, i) => {
|
|
4496
|
-
const o = qe, s =
|
|
4493
|
+
const o = qe, s = oe;
|
|
4497
4494
|
return d(), b("div", ro, [
|
|
4498
|
-
|
|
4495
|
+
M("div", null, [
|
|
4499
4496
|
V(o, {
|
|
4500
4497
|
id: r(n),
|
|
4501
4498
|
type: "search",
|
|
@@ -4507,7 +4504,7 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4507
4504
|
"aria-disabled": e.disabled,
|
|
4508
4505
|
"label-visible": !1,
|
|
4509
4506
|
"onUpdate:modelValue": i[0] || (i[0] = (c) => a("update:modelValue", (c == null ? void 0 : c.toString()) ?? "")),
|
|
4510
|
-
onKeydown: i[1] || (i[1] =
|
|
4507
|
+
onKeydown: i[1] || (i[1] = Ae((c) => a("search", e.modelValue), ["enter"]))
|
|
4511
4508
|
}, null, 8, ["id", "placeholder", "model-value", "label", "disabled", "aria-disabled"])
|
|
4512
4509
|
]),
|
|
4513
4510
|
V(s, {
|
|
@@ -4539,13 +4536,13 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4539
4536
|
role: { default: "list" }
|
|
4540
4537
|
},
|
|
4541
4538
|
setup(e) {
|
|
4542
|
-
|
|
4539
|
+
re((l) => ({
|
|
4543
4540
|
befe11a4: l.backgroundColor,
|
|
4544
4541
|
v6be6fbb6: l.borderRadius,
|
|
4545
4542
|
v2530b52c: l.padding,
|
|
4546
4543
|
fcd2c920: l.borderColor
|
|
4547
4544
|
}));
|
|
4548
|
-
const t =
|
|
4545
|
+
const t = I(() => `av-list--${e.size}`), a = I(() => e.bordered ? "av-list--bordered" : ""), n = I(() => e.divided ? "av-list--divided" : "");
|
|
4549
4546
|
return (l, i) => (d(), b("div", {
|
|
4550
4547
|
class: Q(["av-list av-col av-gap-xxxs", [r(t), r(a), r(n)]]),
|
|
4551
4548
|
role: e.role,
|
|
@@ -4590,21 +4587,21 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4590
4587
|
role: { default: "listitem" }
|
|
4591
4588
|
},
|
|
4592
4589
|
setup(e) {
|
|
4593
|
-
|
|
4594
|
-
v26a198a9:
|
|
4595
|
-
v342d1158:
|
|
4596
|
-
v6245e036:
|
|
4597
|
-
v5b7a7de8:
|
|
4590
|
+
re((g) => ({
|
|
4591
|
+
v26a198a9: g.colorOnHover,
|
|
4592
|
+
v342d1158: g.color,
|
|
4593
|
+
v6245e036: g.descriptionColor,
|
|
4594
|
+
v5b7a7de8: g.hoverBackgroundColor
|
|
4598
4595
|
}));
|
|
4599
|
-
const t = me(), a =
|
|
4600
|
-
function u(
|
|
4596
|
+
const t = me(), a = I(() => e.href || e.target || e.rel ? "a" : e.onClick ? "button" : "div"), n = I(() => a.value === "a"), l = I(() => a.value === "button"), i = I(() => n.value || l.value), o = I(() => e.ariaLabel ? e.ariaLabel : e.title && e.description ? `${e.title}, ${e.description}` : e.title || e.description || void 0), s = I(() => i.value ? "av-list-item--clickable" : ""), c = I(() => e.disabled && l.value ? "av-list-item--disabled" : ""), A = I(() => e.selected ? "av-list-item--selected" : "");
|
|
4597
|
+
function u(g) {
|
|
4601
4598
|
var m;
|
|
4602
|
-
!i.value || e.disabled || (m = e.onClick) == null || m.call(e,
|
|
4599
|
+
!i.value || e.disabled || (m = e.onClick) == null || m.call(e, g);
|
|
4603
4600
|
}
|
|
4604
|
-
function f(
|
|
4601
|
+
function f(g) {
|
|
4605
4602
|
var m;
|
|
4606
|
-
if (!(!i.value || e.disabled) && (
|
|
4607
|
-
|
|
4603
|
+
if (!(!i.value || e.disabled) && (g.key === "Enter" || g.key === " ")) {
|
|
4604
|
+
g.preventDefault();
|
|
4608
4605
|
const v = new MouseEvent("click", {
|
|
4609
4606
|
bubbles: !0,
|
|
4610
4607
|
cancelable: !0
|
|
@@ -4612,7 +4609,7 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4612
4609
|
(m = e.onClick) == null || m.call(e, v);
|
|
4613
4610
|
}
|
|
4614
4611
|
}
|
|
4615
|
-
return (
|
|
4612
|
+
return (g, m) => (d(), b("div", { role: e.role }, [
|
|
4616
4613
|
(d(), S(he(r(a)), {
|
|
4617
4614
|
"aria-label": r(i) ? r(o) : void 0,
|
|
4618
4615
|
"aria-describedby": e.ariaDescribedby,
|
|
@@ -4633,13 +4630,13 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4633
4630
|
color: e.iconColor ?? e.color,
|
|
4634
4631
|
size: e.iconSize
|
|
4635
4632
|
}, null, 8, ["name", "color", "size"])
|
|
4636
|
-
])) :
|
|
4637
|
-
|
|
4638
|
-
e.title ? (d(), b("span", vo, W(e.title), 1)) :
|
|
4639
|
-
e.description ? (d(), b("span", mo, W(e.description), 1)) :
|
|
4633
|
+
])) : L("", !0),
|
|
4634
|
+
M("div", fo, [
|
|
4635
|
+
e.title ? (d(), b("span", vo, W(e.title), 1)) : L("", !0),
|
|
4636
|
+
e.description ? (d(), b("span", mo, W(e.description), 1)) : L("", !0),
|
|
4640
4637
|
t.default ? (d(), b("div", go, [
|
|
4641
|
-
U(
|
|
4642
|
-
])) :
|
|
4638
|
+
U(g.$slots, "default", {}, void 0, !0)
|
|
4639
|
+
])) : L("", !0)
|
|
4643
4640
|
])
|
|
4644
4641
|
]),
|
|
4645
4642
|
_: 3
|
|
@@ -4658,7 +4655,7 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4658
4655
|
labelTypographyClass: { default: "b2-regular" }
|
|
4659
4656
|
},
|
|
4660
4657
|
setup(e) {
|
|
4661
|
-
|
|
4658
|
+
re((h) => ({
|
|
4662
4659
|
d85f140e: r(n)
|
|
4663
4660
|
}));
|
|
4664
4661
|
const t = e, {
|
|
@@ -4668,17 +4665,17 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4668
4665
|
selected: i,
|
|
4669
4666
|
multiple: o,
|
|
4670
4667
|
handleSelectChange: s
|
|
4671
|
-
} = t, c =
|
|
4668
|
+
} = t, c = I(() => gn(t.options));
|
|
4672
4669
|
function A(h) {
|
|
4673
4670
|
return h ? Array.isArray(h) ? h : [h] : [];
|
|
4674
4671
|
}
|
|
4675
4672
|
const u = z(A(i));
|
|
4676
4673
|
function f(h) {
|
|
4677
|
-
return u.value.some((
|
|
4674
|
+
return u.value.some((N) => N.value === h.value);
|
|
4678
4675
|
}
|
|
4679
|
-
function
|
|
4676
|
+
function g(h) {
|
|
4680
4677
|
o ? (f(h) ? u.value = u.value.filter(
|
|
4681
|
-
(
|
|
4678
|
+
(C) => C.value !== h.value
|
|
4682
4679
|
) : u.value.push(h), s([...u.value])) : (u.value = [h], s(h));
|
|
4683
4680
|
}
|
|
4684
4681
|
function m(h) {
|
|
@@ -4689,26 +4686,26 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4689
4686
|
}
|
|
4690
4687
|
return se(() => t.selected, (h) => {
|
|
4691
4688
|
u.value = A(h);
|
|
4692
|
-
}, { immediate: !0 }), (h,
|
|
4689
|
+
}, { immediate: !0 }), (h, N) => (d(), b("div", bo, [
|
|
4693
4690
|
r(a) ? (d(), b("span", {
|
|
4694
4691
|
key: 0,
|
|
4695
4692
|
class: Q(["av-select-label av-row av-align-center", [r(l)]])
|
|
4696
|
-
}, W(r(a)), 3)) :
|
|
4697
|
-
(d(!0), b($, null, ie(r(c), (
|
|
4698
|
-
key:
|
|
4693
|
+
}, W(r(a)), 3)) : L("", !0),
|
|
4694
|
+
(d(!0), b($, null, ie(r(c), (C) => (d(), b("div", {
|
|
4695
|
+
key: C.value,
|
|
4699
4696
|
class: "tag-wrapper"
|
|
4700
4697
|
}, [
|
|
4701
4698
|
V(_a, {
|
|
4702
4699
|
class: Q({
|
|
4703
|
-
"av-tag--selected": f(
|
|
4704
|
-
"av-tag--disabled": v(
|
|
4700
|
+
"av-tag--selected": f(C),
|
|
4701
|
+
"av-tag--disabled": v(C)
|
|
4705
4702
|
}),
|
|
4706
|
-
label:
|
|
4707
|
-
icon: m(
|
|
4708
|
-
disabled: v(
|
|
4703
|
+
label: C.label,
|
|
4704
|
+
icon: m(C),
|
|
4705
|
+
disabled: v(C),
|
|
4709
4706
|
selectable: "",
|
|
4710
|
-
selected: f(
|
|
4711
|
-
onSelect: () =>
|
|
4707
|
+
selected: f(C),
|
|
4708
|
+
onSelect: () => g(C)
|
|
4712
4709
|
}, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
|
|
4713
4710
|
]))), 128))
|
|
4714
4711
|
]));
|
|
@@ -4728,10 +4725,10 @@ const KA = [
|
|
|
4728
4725
|
handleSelectChange: { type: Function }
|
|
4729
4726
|
},
|
|
4730
4727
|
setup(e) {
|
|
4731
|
-
const t =
|
|
4728
|
+
const t = I(() => Object.values(Oa).filter((n) => typeof n == "number").map((n) => ({
|
|
4732
4729
|
label: n.toString(),
|
|
4733
4730
|
value: n.toString()
|
|
4734
|
-
}))), a =
|
|
4731
|
+
}))), a = I(() => ({
|
|
4735
4732
|
label: e.pageSizeSelected.toString(),
|
|
4736
4733
|
value: e.pageSizeSelected.toString()
|
|
4737
4734
|
}));
|
|
@@ -4778,12 +4775,12 @@ const KA = [
|
|
|
4778
4775
|
disabled: e.disabled
|
|
4779
4776
|
}, {
|
|
4780
4777
|
default: K(() => [
|
|
4781
|
-
|
|
4778
|
+
M("div", {
|
|
4782
4779
|
class: Q(["av-radio-group av-row av-align-center av-gap-xs", {
|
|
4783
4780
|
"av-radio-group--sm": e.small
|
|
4784
4781
|
}])
|
|
4785
4782
|
}, [
|
|
4786
|
-
|
|
4783
|
+
M("input", _({
|
|
4787
4784
|
id: r(n),
|
|
4788
4785
|
type: "radio",
|
|
4789
4786
|
name: e.name,
|
|
@@ -4793,7 +4790,7 @@ const KA = [
|
|
|
4793
4790
|
}, l.$attrs, {
|
|
4794
4791
|
onClick: i[0] || (i[0] = (s) => a("update:modelValue", e.value))
|
|
4795
4792
|
}), null, 16, Eo),
|
|
4796
|
-
|
|
4793
|
+
M("label", {
|
|
4797
4794
|
for: r(n),
|
|
4798
4795
|
class: "av-label"
|
|
4799
4796
|
}, [
|
|
@@ -4822,26 +4819,26 @@ const KA = [
|
|
|
4822
4819
|
},
|
|
4823
4820
|
emits: ["update:modelValue"],
|
|
4824
4821
|
setup(e, { expose: t, emit: a }) {
|
|
4825
|
-
const n = a, l =
|
|
4822
|
+
const n = a, l = I(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`), i = I(() => e.errorMessage || e.validMessage);
|
|
4826
4823
|
function o(m) {
|
|
4827
4824
|
m !== e.modelValue && n("update:modelValue", m);
|
|
4828
4825
|
}
|
|
4829
|
-
const s =
|
|
4826
|
+
const s = I(() => i.value ? `messages-${l.value}` : void 0), c = me();
|
|
4830
4827
|
function A(m) {
|
|
4831
4828
|
return m != null && typeof m == "object" && "type" in m && m.type === Mo;
|
|
4832
4829
|
}
|
|
4833
4830
|
function u(m) {
|
|
4834
4831
|
return m ? m.flatMap((v) => !v || typeof v != "object" || !("type" in v) ? [] : v.type === $ && Array.isArray(v.children) ? u(v.children) : A(v) ? [v] : []) : [];
|
|
4835
4832
|
}
|
|
4836
|
-
const f =
|
|
4833
|
+
const f = I(() => {
|
|
4837
4834
|
var m;
|
|
4838
4835
|
return u((m = c.default) == null ? void 0 : m.call(c));
|
|
4839
|
-
}),
|
|
4836
|
+
}), g = z(e.modelValue);
|
|
4840
4837
|
return se(() => e.modelValue, (m) => {
|
|
4841
|
-
|
|
4842
|
-
}), se(
|
|
4838
|
+
g.value = m;
|
|
4839
|
+
}), se(g, (m) => {
|
|
4843
4840
|
m && n("update:modelValue", m);
|
|
4844
|
-
}), t({ selected:
|
|
4841
|
+
}), t({ selected: g }), (m, v) => {
|
|
4845
4842
|
const h = la;
|
|
4846
4843
|
return d(), S(h, {
|
|
4847
4844
|
id: r(l),
|
|
@@ -4857,25 +4854,25 @@ const KA = [
|
|
|
4857
4854
|
inline: e.inline
|
|
4858
4855
|
}, {
|
|
4859
4856
|
default: K(() => [
|
|
4860
|
-
(d(!0), b($, null, ie(r(f), (
|
|
4861
|
-
var
|
|
4857
|
+
(d(!0), b($, null, ie(r(f), (N, C) => {
|
|
4858
|
+
var T, D;
|
|
4862
4859
|
return d(), S(Do, {
|
|
4863
|
-
key:
|
|
4864
|
-
modelValue: r(
|
|
4860
|
+
key: C,
|
|
4861
|
+
modelValue: r(g),
|
|
4865
4862
|
"onUpdate:modelValue": [
|
|
4866
|
-
v[0] || (v[0] = (
|
|
4867
|
-
v[1] || (v[1] = (
|
|
4863
|
+
v[0] || (v[0] = (w) => Lt(g) ? g.value = w : null),
|
|
4864
|
+
v[1] || (v[1] = (w) => o(w))
|
|
4868
4865
|
],
|
|
4869
|
-
value: (
|
|
4870
|
-
disabled: ((
|
|
4866
|
+
value: (T = N.props) == null ? void 0 : T.value,
|
|
4867
|
+
disabled: ((D = N.props) == null ? void 0 : D.disabled) ?? e.disabled,
|
|
4871
4868
|
small: e.small,
|
|
4872
4869
|
inline: e.inline,
|
|
4873
4870
|
name: e.name
|
|
4874
4871
|
}, {
|
|
4875
4872
|
default: K(() => {
|
|
4876
|
-
var
|
|
4873
|
+
var w;
|
|
4877
4874
|
return [
|
|
4878
|
-
(d(), S(he((
|
|
4875
|
+
(d(), S(he((w = N.children) == null ? void 0 : w.default)))
|
|
4879
4876
|
];
|
|
4880
4877
|
}),
|
|
4881
4878
|
_: 2
|
|
@@ -4955,51 +4952,51 @@ var It = function() {
|
|
|
4955
4952
|
return Sa.Date.now();
|
|
4956
4953
|
}, Ko = "Expected a function", Go = Math.max, Jo = Math.min;
|
|
4957
4954
|
function ka(e, t, a) {
|
|
4958
|
-
var n, l, i, o, s, c, A = 0, u = !1, f = !1,
|
|
4955
|
+
var n, l, i, o, s, c, A = 0, u = !1, f = !1, g = !0;
|
|
4959
4956
|
if (typeof e != "function")
|
|
4960
4957
|
throw new TypeError(Ko);
|
|
4961
|
-
t = Gt(t) || 0, Mt(a) && (u = !!a.leading, f = "maxWait" in a, i = f ? Go(Gt(a.maxWait) || 0, t) : i,
|
|
4958
|
+
t = Gt(t) || 0, Mt(a) && (u = !!a.leading, f = "maxWait" in a, i = f ? Go(Gt(a.maxWait) || 0, t) : i, g = "trailing" in a ? !!a.trailing : g);
|
|
4962
4959
|
function m(Z) {
|
|
4963
4960
|
var F = n, te = l;
|
|
4964
4961
|
return n = l = void 0, A = Z, o = e.apply(te, F), o;
|
|
4965
4962
|
}
|
|
4966
4963
|
function v(Z) {
|
|
4967
|
-
return A = Z, s = setTimeout(
|
|
4964
|
+
return A = Z, s = setTimeout(C, t), u ? m(Z) : o;
|
|
4968
4965
|
}
|
|
4969
4966
|
function h(Z) {
|
|
4970
4967
|
var F = Z - c, te = Z - A, k = t - F;
|
|
4971
4968
|
return f ? Jo(k, i - te) : k;
|
|
4972
4969
|
}
|
|
4973
|
-
function
|
|
4970
|
+
function N(Z) {
|
|
4974
4971
|
var F = Z - c, te = Z - A;
|
|
4975
4972
|
return c === void 0 || F >= t || F < 0 || f && te >= i;
|
|
4976
4973
|
}
|
|
4977
|
-
function
|
|
4974
|
+
function C() {
|
|
4978
4975
|
var Z = It();
|
|
4979
|
-
if (
|
|
4980
|
-
return
|
|
4981
|
-
s = setTimeout(
|
|
4976
|
+
if (N(Z))
|
|
4977
|
+
return T(Z);
|
|
4978
|
+
s = setTimeout(C, h(Z));
|
|
4982
4979
|
}
|
|
4983
|
-
function
|
|
4984
|
-
return s = void 0,
|
|
4980
|
+
function T(Z) {
|
|
4981
|
+
return s = void 0, g && n ? m(Z) : (n = l = void 0, o);
|
|
4985
4982
|
}
|
|
4986
|
-
function
|
|
4983
|
+
function D() {
|
|
4987
4984
|
s !== void 0 && clearTimeout(s), A = 0, n = c = l = s = void 0;
|
|
4988
4985
|
}
|
|
4989
|
-
function
|
|
4990
|
-
return s === void 0 ? o :
|
|
4986
|
+
function w() {
|
|
4987
|
+
return s === void 0 ? o : T(It());
|
|
4991
4988
|
}
|
|
4992
4989
|
function B() {
|
|
4993
|
-
var Z = It(), F =
|
|
4990
|
+
var Z = It(), F = N(Z);
|
|
4994
4991
|
if (n = arguments, l = this, c = Z, F) {
|
|
4995
4992
|
if (s === void 0)
|
|
4996
4993
|
return v(c);
|
|
4997
4994
|
if (f)
|
|
4998
|
-
return clearTimeout(s), s = setTimeout(
|
|
4995
|
+
return clearTimeout(s), s = setTimeout(C, t), m(c);
|
|
4999
4996
|
}
|
|
5000
|
-
return s === void 0 && (s = setTimeout(
|
|
4997
|
+
return s === void 0 && (s = setTimeout(C, t)), o;
|
|
5001
4998
|
}
|
|
5002
|
-
return B.cancel =
|
|
4999
|
+
return B.cancel = D, B.flush = w, B;
|
|
5003
5000
|
}
|
|
5004
5001
|
const $o = {
|
|
5005
5002
|
key: 0,
|
|
@@ -5021,53 +5018,53 @@ const $o = {
|
|
|
5021
5018
|
props: c,
|
|
5022
5019
|
getOptionId: A,
|
|
5023
5020
|
getDisplayLabel: u
|
|
5024
|
-
} = xt(), f = z(),
|
|
5021
|
+
} = xt(), f = z(), g = z(), m = I(() => {
|
|
5025
5022
|
if (!c.options)
|
|
5026
5023
|
return [];
|
|
5027
5024
|
if (c.serverSideFiltering)
|
|
5028
5025
|
return c.maxResults ? c.options.slice(0, c.maxResults) : c.options;
|
|
5029
|
-
const
|
|
5030
|
-
if (!
|
|
5026
|
+
const D = o.value.toLowerCase().trim();
|
|
5027
|
+
if (!D) {
|
|
5031
5028
|
const B = c.options;
|
|
5032
5029
|
return c.maxResults ? B.slice(0, c.maxResults) : B;
|
|
5033
5030
|
}
|
|
5034
|
-
let
|
|
5035
|
-
return c.filterOptions ?
|
|
5036
|
-
}), v =
|
|
5037
|
-
function h(
|
|
5031
|
+
let w;
|
|
5032
|
+
return c.filterOptions ? w = c.filterOptions(c.options, D) : w = c.options.filter((B) => u(B).toLowerCase().includes(D)), c.maxResults ? w.slice(0, c.maxResults) : w;
|
|
5033
|
+
}), v = I(() => c.loading ? pe.LOADING : s.value && c.options && c.options.length > 0 && m.value.length > 0 ? pe.HAS_OPTIONS : pe.NO_OPTIONS);
|
|
5034
|
+
function h(D) {
|
|
5038
5035
|
return i.value.some(
|
|
5039
|
-
(
|
|
5036
|
+
(w) => A(w) === A(D)
|
|
5040
5037
|
);
|
|
5041
5038
|
}
|
|
5042
|
-
function
|
|
5039
|
+
function N(D) {
|
|
5043
5040
|
if (!c.multiSelect) {
|
|
5044
|
-
i.value = [
|
|
5041
|
+
i.value = [D], s.value = !1, o.value = "";
|
|
5045
5042
|
return;
|
|
5046
5043
|
}
|
|
5047
|
-
const
|
|
5048
|
-
|
|
5044
|
+
const w = i.value, B = A(D);
|
|
5045
|
+
w.some(
|
|
5049
5046
|
(F) => A(F) === B
|
|
5050
|
-
) ? i.value =
|
|
5047
|
+
) ? i.value = w.filter(
|
|
5051
5048
|
(F) => A(F) !== B
|
|
5052
|
-
) : i.value = [...
|
|
5049
|
+
) : i.value = [...w, D];
|
|
5053
5050
|
}
|
|
5054
|
-
const { arrivedState:
|
|
5051
|
+
const { arrivedState: C } = Rl(g, {
|
|
5055
5052
|
throttle: 100
|
|
5056
|
-
}),
|
|
5053
|
+
}), T = ka(() => {
|
|
5057
5054
|
n("loadMore");
|
|
5058
5055
|
}, c.loadMoreThrottleDelay);
|
|
5059
|
-
return se(() =>
|
|
5060
|
-
c.enableLoadMore &&
|
|
5056
|
+
return se(() => C.bottom, (D) => {
|
|
5057
|
+
c.enableLoadMore && D && s.value && T();
|
|
5061
5058
|
}), ge(() => {
|
|
5062
|
-
|
|
5059
|
+
T.cancel();
|
|
5063
5060
|
}), t({
|
|
5064
5061
|
dropdownRef: f
|
|
5065
|
-
}), (
|
|
5062
|
+
}), (D, w) => r(s) ? (d(), b("div", {
|
|
5066
5063
|
key: 0,
|
|
5067
5064
|
ref_key: "dropdownRef",
|
|
5068
5065
|
ref: f,
|
|
5069
5066
|
class: Q(["av-autocomplete-dropdown", r(c).dropdownClass]),
|
|
5070
|
-
style:
|
|
5067
|
+
style: de({ width: r(c).dropdownWidth, maxHeight: r(c).maxDropdownHeight })
|
|
5071
5068
|
}, [
|
|
5072
5069
|
r(v) === r(pe).LOADING ? (d(), b("div", $o, [
|
|
5073
5070
|
V(ne, {
|
|
@@ -5075,13 +5072,13 @@ const $o = {
|
|
|
5075
5072
|
size: 1.5,
|
|
5076
5073
|
class: "av-autocomplete-dropdown__spinner"
|
|
5077
5074
|
}, null, 8, ["name"]),
|
|
5078
|
-
|
|
5075
|
+
w[0] || (w[0] = M("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
5079
5076
|
])) : r(v) === r(pe).NO_OPTIONS ? (d(), b("div", _o, [
|
|
5080
|
-
l.empty ? U(
|
|
5077
|
+
l.empty ? U(D.$slots, "empty", { key: 0 }, void 0, !0) : (d(), b("div", es, " No results found "))
|
|
5081
5078
|
])) : (d(), S(La, _({
|
|
5082
5079
|
key: 2,
|
|
5083
5080
|
ref_key: "listRef",
|
|
5084
|
-
ref:
|
|
5081
|
+
ref: g
|
|
5085
5082
|
}, r(c).listOptions, {
|
|
5086
5083
|
class: ["av-autocomplete-dropdown__options", r(c).scrollbarClass]
|
|
5087
5084
|
}), {
|
|
@@ -5089,11 +5086,11 @@ const $o = {
|
|
|
5089
5086
|
(d(!0), b($, null, ie(r(m), (B) => (d(), b($, {
|
|
5090
5087
|
key: r(A)(B)
|
|
5091
5088
|
}, [
|
|
5092
|
-
l.item ? U(
|
|
5089
|
+
l.item ? U(D.$slots, "item", {
|
|
5093
5090
|
key: 0,
|
|
5094
5091
|
option: B,
|
|
5095
5092
|
isSelected: h(B),
|
|
5096
|
-
toggle: () =>
|
|
5093
|
+
toggle: () => N(B)
|
|
5097
5094
|
}, void 0, !0) : (d(), S(wa, {
|
|
5098
5095
|
key: 1,
|
|
5099
5096
|
title: r(u)(B),
|
|
@@ -5101,13 +5098,13 @@ const $o = {
|
|
|
5101
5098
|
selected: h(B),
|
|
5102
5099
|
"hover-background-color": "var(--light-background-neutral)",
|
|
5103
5100
|
"color-on-hover": "var(--base)",
|
|
5104
|
-
onClick: () =>
|
|
5101
|
+
onClick: () => N(B)
|
|
5105
5102
|
}, null, 8, ["title", "icon", "selected", "onClick"]))
|
|
5106
5103
|
], 64))), 128))
|
|
5107
5104
|
]),
|
|
5108
5105
|
_: 3
|
|
5109
5106
|
}, 16, ["class"]))
|
|
5110
|
-
], 6)) :
|
|
5107
|
+
], 6)) : L("", !0);
|
|
5111
5108
|
}
|
|
5112
5109
|
}), as = /* @__PURE__ */ P(ts, [["__scopeId", "data-v-c0c74316"]]), ns = { class: "av-autocomplete-input" }, ls = {
|
|
5113
5110
|
key: 0,
|
|
@@ -5124,38 +5121,38 @@ const $o = {
|
|
|
5124
5121
|
inputId: A,
|
|
5125
5122
|
handleBlur: u,
|
|
5126
5123
|
getDisplayLabel: f
|
|
5127
|
-
} = xt(),
|
|
5128
|
-
var
|
|
5129
|
-
return ((
|
|
5130
|
-
}), h = ka((
|
|
5131
|
-
o.value =
|
|
5124
|
+
} = xt(), g = z(), m = I(() => !c.multiSelect && i.value.length > 0 ? f(i.value[0]) : c.multiSelect && i.value.length > 0 ? c.showSelectedSection ? `${i.value.length} element(s) selected` : i.value.map(f).join(", ") : o.value), v = I(() => {
|
|
5125
|
+
var D;
|
|
5126
|
+
return ((D = c.inputOptions) == null ? void 0 : D.placeholder) || "Search...";
|
|
5127
|
+
}), h = ka((D) => {
|
|
5128
|
+
o.value = D, n("search", D);
|
|
5132
5129
|
}, c.debounceDelay);
|
|
5133
|
-
function
|
|
5134
|
-
o.value = String(
|
|
5130
|
+
function N(D) {
|
|
5131
|
+
o.value = String(D || ""), h(o.value);
|
|
5135
5132
|
}
|
|
5136
|
-
function
|
|
5133
|
+
function C() {
|
|
5137
5134
|
s.value = !0;
|
|
5138
5135
|
}
|
|
5139
|
-
function
|
|
5136
|
+
function T() {
|
|
5140
5137
|
i.value = [], o.value = "", n("clear");
|
|
5141
5138
|
}
|
|
5142
5139
|
return ge(() => {
|
|
5143
5140
|
h.cancel();
|
|
5144
5141
|
}), t({
|
|
5145
|
-
inputRef:
|
|
5146
|
-
searchQuery:
|
|
5147
|
-
}), (
|
|
5142
|
+
inputRef: g,
|
|
5143
|
+
searchQuery: I(() => o.value)
|
|
5144
|
+
}), (D, w) => (d(), b("div", ns, [
|
|
5148
5145
|
V(qe, _({
|
|
5149
5146
|
id: r(A),
|
|
5150
5147
|
ref_key: "inputRef",
|
|
5151
|
-
ref:
|
|
5148
|
+
ref: g,
|
|
5152
5149
|
"model-value": r(m),
|
|
5153
5150
|
placeholder: r(v)
|
|
5154
5151
|
}, r(c).inputOptions, {
|
|
5155
|
-
"onUpdate:modelValue":
|
|
5156
|
-
onFocus:
|
|
5152
|
+
"onUpdate:modelValue": N,
|
|
5153
|
+
onFocus: C,
|
|
5157
5154
|
onBlur: r(u),
|
|
5158
|
-
onClick:
|
|
5155
|
+
onClick: C
|
|
5159
5156
|
}), Je({ _: 2 }, [
|
|
5160
5157
|
l.requiredTip ? {
|
|
5161
5158
|
name: "requiredTip",
|
|
@@ -5166,16 +5163,16 @@ const $o = {
|
|
|
5166
5163
|
} : void 0
|
|
5167
5164
|
]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
|
|
5168
5165
|
r(i).length > 0 ? (d(), b("div", ls, [
|
|
5169
|
-
V(
|
|
5166
|
+
V(oe, {
|
|
5170
5167
|
label: "Clear selected items",
|
|
5171
5168
|
icon: r(H).CLOSE_CIRCLE_OUTLINE,
|
|
5172
5169
|
"icon-only": "",
|
|
5173
5170
|
"icon-scale": 1.25,
|
|
5174
5171
|
variant: "DEFAULT",
|
|
5175
5172
|
theme: "SECONDARY",
|
|
5176
|
-
onClick:
|
|
5173
|
+
onClick: T
|
|
5177
5174
|
}, null, 8, ["icon"])
|
|
5178
|
-
])) :
|
|
5175
|
+
])) : L("", !0)
|
|
5179
5176
|
]));
|
|
5180
5177
|
}
|
|
5181
5178
|
}), rs = /* @__PURE__ */ P(is, [["__scopeId", "data-v-318a09bc"]]), os = {
|
|
@@ -5205,7 +5202,7 @@ const $o = {
|
|
|
5205
5202
|
key: 0,
|
|
5206
5203
|
option: A,
|
|
5207
5204
|
remove: () => o(A)
|
|
5208
|
-
}, void 0, !0) : (d(), S(
|
|
5205
|
+
}, void 0, !0) : (d(), S(oe, {
|
|
5209
5206
|
key: 1,
|
|
5210
5207
|
label: r(i)(A),
|
|
5211
5208
|
icon: r(H).CLOSE_CIRCLE_OUTLINE,
|
|
@@ -5216,7 +5213,7 @@ const $o = {
|
|
|
5216
5213
|
onClick: () => o(A)
|
|
5217
5214
|
}, null, 8, ["label", "icon", "onClick"]))
|
|
5218
5215
|
]))), 128))
|
|
5219
|
-
])) :
|
|
5216
|
+
])) : L("", !0);
|
|
5220
5217
|
}
|
|
5221
5218
|
}), cs = /* @__PURE__ */ P(ss, [["__scopeId", "data-v-c42c1ff5"]]), As = { class: "av-autocomplete" }, us = /* @__PURE__ */ p({
|
|
5222
5219
|
__name: "AvAutocomplete",
|
|
@@ -5250,21 +5247,21 @@ const $o = {
|
|
|
5250
5247
|
}),
|
|
5251
5248
|
emits: /* @__PURE__ */ ye(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
5252
5249
|
setup(e, { emit: t }) {
|
|
5253
|
-
const a = e, n = t, l = me(), i = we(e, "modelValue"), o = z(!1), s = z(""), c = z(), A = z(), u = z(), f =
|
|
5254
|
-
function
|
|
5255
|
-
s.value =
|
|
5250
|
+
const a = e, n = t, l = me(), i = we(e, "modelValue"), o = z(!1), s = z(""), c = z(), A = z(), u = z(), f = I(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
5251
|
+
function g(T) {
|
|
5252
|
+
s.value = T, n("search", T);
|
|
5256
5253
|
}
|
|
5257
|
-
function m(
|
|
5258
|
-
var
|
|
5259
|
-
(
|
|
5254
|
+
function m(T) {
|
|
5255
|
+
var D, w;
|
|
5256
|
+
(w = (D = u.value) == null ? void 0 : D.dropdownRef) != null && w.contains(T.relatedTarget) || setTimeout(() => {
|
|
5260
5257
|
o.value = !1;
|
|
5261
5258
|
}, a.blurCloseDelay);
|
|
5262
5259
|
}
|
|
5263
|
-
function v(
|
|
5264
|
-
return a.getOptionKey ? a.getOptionKey(
|
|
5260
|
+
function v(T) {
|
|
5261
|
+
return a.getOptionKey ? a.getOptionKey(T) : T.value;
|
|
5265
5262
|
}
|
|
5266
|
-
function h(
|
|
5267
|
-
return a.getOptionLabel ? a.getOptionLabel(
|
|
5263
|
+
function h(T) {
|
|
5264
|
+
return a.getOptionLabel ? a.getOptionLabel(T) : T.label;
|
|
5268
5265
|
}
|
|
5269
5266
|
Nt(xa, {
|
|
5270
5267
|
selectedItems: i,
|
|
@@ -5276,17 +5273,17 @@ const $o = {
|
|
|
5276
5273
|
getOptionId: v,
|
|
5277
5274
|
getDisplayLabel: h
|
|
5278
5275
|
});
|
|
5279
|
-
function
|
|
5276
|
+
function C(T) {
|
|
5280
5277
|
var B, Z, F, te, k;
|
|
5281
|
-
const
|
|
5282
|
-
!((Z =
|
|
5278
|
+
const D = T.target, w = (B = A.value) == null ? void 0 : B.inputRef;
|
|
5279
|
+
!((Z = w == null ? void 0 : w.contains) != null && Z.call(w, D)) && !((F = c.value) != null && F.contains(D)) && !((k = (te = u.value) == null ? void 0 : te.dropdownRef) != null && k.contains(D)) && (o.value = !1);
|
|
5283
5280
|
}
|
|
5284
5281
|
return ve(() => {
|
|
5285
|
-
document.addEventListener("click",
|
|
5282
|
+
document.addEventListener("click", C);
|
|
5286
5283
|
}), ge(() => {
|
|
5287
|
-
document.removeEventListener("click",
|
|
5288
|
-
}), (
|
|
5289
|
-
|
|
5284
|
+
document.removeEventListener("click", C);
|
|
5285
|
+
}), (T, D) => (d(), b("div", As, [
|
|
5286
|
+
M("div", {
|
|
5290
5287
|
ref_key: "wrapperRef",
|
|
5291
5288
|
ref: c,
|
|
5292
5289
|
class: "av-autocomplete__wrapper"
|
|
@@ -5294,8 +5291,8 @@ const $o = {
|
|
|
5294
5291
|
V(rs, {
|
|
5295
5292
|
ref_key: "inputRef",
|
|
5296
5293
|
ref: A,
|
|
5297
|
-
onSearch:
|
|
5298
|
-
onClear:
|
|
5294
|
+
onSearch: g,
|
|
5295
|
+
onClear: D[0] || (D[0] = (w) => n("clear"))
|
|
5299
5296
|
}, Je({ _: 2 }, [
|
|
5300
5297
|
l.requiredTip ? {
|
|
5301
5298
|
name: "requiredTip",
|
|
@@ -5308,13 +5305,13 @@ const $o = {
|
|
|
5308
5305
|
V(as, {
|
|
5309
5306
|
ref_key: "dropdownRef",
|
|
5310
5307
|
ref: u,
|
|
5311
|
-
onLoadMore:
|
|
5308
|
+
onLoadMore: D[1] || (D[1] = (w) => n("loadMore"))
|
|
5312
5309
|
}, Je({ _: 2 }, [
|
|
5313
5310
|
l.item ? {
|
|
5314
5311
|
name: "item",
|
|
5315
|
-
fn: K(({ option:
|
|
5316
|
-
U(
|
|
5317
|
-
option:
|
|
5312
|
+
fn: K(({ option: w, isSelected: B, toggle: Z }) => [
|
|
5313
|
+
U(T.$slots, "item", {
|
|
5314
|
+
option: w,
|
|
5318
5315
|
isSelected: B,
|
|
5319
5316
|
toggle: Z
|
|
5320
5317
|
}, void 0, !0)
|
|
@@ -5324,7 +5321,7 @@ const $o = {
|
|
|
5324
5321
|
l.empty ? {
|
|
5325
5322
|
name: "empty",
|
|
5326
5323
|
fn: K(() => [
|
|
5327
|
-
U(
|
|
5324
|
+
U(T.$slots, "empty", {}, void 0, !0)
|
|
5328
5325
|
]),
|
|
5329
5326
|
key: "1"
|
|
5330
5327
|
} : void 0
|
|
@@ -5333,9 +5330,9 @@ const $o = {
|
|
|
5333
5330
|
V(cs, null, Je({ _: 2 }, [
|
|
5334
5331
|
l.selectedItem ? {
|
|
5335
5332
|
name: "selectedItem",
|
|
5336
|
-
fn: K(({ option:
|
|
5337
|
-
U(
|
|
5338
|
-
option:
|
|
5333
|
+
fn: K(({ option: w, remove: B }) => [
|
|
5334
|
+
U(T.$slots, "selectedItem", {
|
|
5335
|
+
option: w,
|
|
5339
5336
|
remove: B
|
|
5340
5337
|
}, void 0, !0)
|
|
5341
5338
|
]),
|
|
@@ -5375,7 +5372,7 @@ const $o = {
|
|
|
5375
5372
|
collapse: A,
|
|
5376
5373
|
collapsing: u,
|
|
5377
5374
|
cssExpanded: f,
|
|
5378
|
-
onTransitionEnd:
|
|
5375
|
+
onTransitionEnd: g
|
|
5379
5376
|
} = e.useCollapsableReturn;
|
|
5380
5377
|
function m() {
|
|
5381
5378
|
return document.querySelectorAll(`[id^="${e.id}-"][id$="-checkbox"]`);
|
|
@@ -5384,26 +5381,26 @@ const $o = {
|
|
|
5384
5381
|
function h(R) {
|
|
5385
5382
|
R.key === "Escape" && a("close");
|
|
5386
5383
|
}
|
|
5387
|
-
function
|
|
5384
|
+
function N(R) {
|
|
5388
5385
|
var j, y;
|
|
5389
5386
|
const O = R.target;
|
|
5390
5387
|
!((j = l.value) != null && j.$el.contains(O)) && !((y = A.value) != null && y.contains(O)) && a("close");
|
|
5391
5388
|
}
|
|
5392
|
-
function
|
|
5389
|
+
function C() {
|
|
5393
5390
|
for (; c.length; ) {
|
|
5394
5391
|
const R = c.pop();
|
|
5395
5392
|
R && R();
|
|
5396
5393
|
}
|
|
5397
|
-
document.removeEventListener("click",
|
|
5394
|
+
document.removeEventListener("click", N), document.removeEventListener("keydown", h);
|
|
5398
5395
|
}
|
|
5399
|
-
const
|
|
5396
|
+
const T = I(
|
|
5400
5397
|
() => e.options.filter((R) => typeof R == "object" && R !== null ? `${R[Is]}`.toLowerCase().includes(v.value.toLowerCase()) : `${R}`.toLowerCase().includes(v.value.toLowerCase()))
|
|
5401
|
-
),
|
|
5402
|
-
function
|
|
5398
|
+
), D = I(() => e.selected.length < T.value.length ? !1 : T.value.every((R) => e.selected.includes(R)));
|
|
5399
|
+
function w() {
|
|
5403
5400
|
const R = new Set(o.value || []);
|
|
5404
|
-
|
|
5401
|
+
D.value ? T.value.forEach((O) => {
|
|
5405
5402
|
R.delete(O.value);
|
|
5406
|
-
}) :
|
|
5403
|
+
}) : T.value.forEach((O) => {
|
|
5407
5404
|
R.add(O.value);
|
|
5408
5405
|
}), o.value = Array.from(R);
|
|
5409
5406
|
}
|
|
@@ -5415,16 +5412,16 @@ const $o = {
|
|
|
5415
5412
|
R.preventDefault();
|
|
5416
5413
|
const O = m(), j = document.activeElement, y = Array.from(O).indexOf(j);
|
|
5417
5414
|
if (y !== -1) {
|
|
5418
|
-
const
|
|
5419
|
-
O[
|
|
5415
|
+
const E = (y + 1) % O.length;
|
|
5416
|
+
O[E].focus();
|
|
5420
5417
|
}
|
|
5421
5418
|
}
|
|
5422
5419
|
function F(R) {
|
|
5423
5420
|
R.preventDefault();
|
|
5424
5421
|
const O = m(), j = document.activeElement, y = Array.from(O).indexOf(j);
|
|
5425
5422
|
if (y !== -1) {
|
|
5426
|
-
const
|
|
5427
|
-
O[
|
|
5423
|
+
const E = (y - 1 + O.length) % O.length;
|
|
5424
|
+
O[E].focus();
|
|
5428
5425
|
}
|
|
5429
5426
|
}
|
|
5430
5427
|
function te(R) {
|
|
@@ -5437,41 +5434,41 @@ const $o = {
|
|
|
5437
5434
|
R.shiftKey && O === ((j = l.value) == null ? void 0 : j.$el) && a("close");
|
|
5438
5435
|
}
|
|
5439
5436
|
return ge(() => {
|
|
5440
|
-
|
|
5437
|
+
C();
|
|
5441
5438
|
}), (R, O) => {
|
|
5442
|
-
const j =
|
|
5439
|
+
const j = oe, y = qe;
|
|
5443
5440
|
return e.isVisible ? (d(), b("div", {
|
|
5444
5441
|
key: 0,
|
|
5445
5442
|
id: `${e.id}-collapse`,
|
|
5446
5443
|
ref_key: "collapse",
|
|
5447
5444
|
ref: A,
|
|
5448
|
-
style:
|
|
5445
|
+
style: de({
|
|
5449
5446
|
"--width-host": `${r(s)}px`
|
|
5450
5447
|
}),
|
|
5451
5448
|
class: Q(["av-multiselect__collapse av-collapse av-p-xs av-ml-xxs", { "av-collapse--expanded": r(f), "av-collapsing": r(u) }]),
|
|
5452
|
-
onTransitionend: O[2] || (O[2] = (
|
|
5449
|
+
onTransitionend: O[2] || (O[2] = (E) => r(g)(r(i)))
|
|
5453
5450
|
}, [
|
|
5454
|
-
|
|
5451
|
+
M("p", {
|
|
5455
5452
|
id: `${e.id}-text-hint`,
|
|
5456
5453
|
class: "av-sr-only"
|
|
5457
5454
|
}, W(e.hint), 9, fs),
|
|
5458
5455
|
e.selectAll ? (d(), b("ul", vs, [
|
|
5459
|
-
|
|
5456
|
+
M("li", null, [
|
|
5460
5457
|
V(j, {
|
|
5461
5458
|
name: "select-all",
|
|
5462
5459
|
size: "sm",
|
|
5463
|
-
disabled: r(
|
|
5464
|
-
label: e.selectAllLabel[r(
|
|
5465
|
-
icon: r(
|
|
5466
|
-
onClick:
|
|
5467
|
-
onKeydown: ue(
|
|
5460
|
+
disabled: r(T).length === 0,
|
|
5461
|
+
label: e.selectAllLabel[r(D) ? 1 : 0],
|
|
5462
|
+
icon: r(D) ? r(H).CLOSE_CIRCLE_OUTLINE : r(H).CHECK_CIRCLE_OUTLINE,
|
|
5463
|
+
onClick: w,
|
|
5464
|
+
onKeydown: Ae(ue(k, ["shift"]), ["tab"])
|
|
5468
5465
|
}, null, 8, ["disabled", "label", "icon", "onKeydown"])
|
|
5469
5466
|
])
|
|
5470
|
-
])) :
|
|
5467
|
+
])) : L("", !0),
|
|
5471
5468
|
e.search ? (d(), b("div", ms, [
|
|
5472
5469
|
V(y, {
|
|
5473
5470
|
modelValue: r(v),
|
|
5474
|
-
"onUpdate:modelValue": O[0] || (O[0] = (
|
|
5471
|
+
"onUpdate:modelValue": O[0] || (O[0] = (E) => Lt(v) ? v.value = E : null),
|
|
5475
5472
|
"aria-describedby": `${e.id}-text-hint`,
|
|
5476
5473
|
"aria-controls": `${e.id}-checkboxes`,
|
|
5477
5474
|
"prefix-icon": r(H).MAGNIFY,
|
|
@@ -5479,12 +5476,12 @@ const $o = {
|
|
|
5479
5476
|
placeholder: "Rechercher",
|
|
5480
5477
|
type: "search",
|
|
5481
5478
|
onKeydown: [
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5479
|
+
Ae(B, ["down"]),
|
|
5480
|
+
Ae(B, ["right"]),
|
|
5481
|
+
Ae(k, ["tab"])
|
|
5485
5482
|
]
|
|
5486
5483
|
}, null, 8, ["modelValue", "aria-describedby", "aria-controls", "prefix-icon"])
|
|
5487
|
-
])) :
|
|
5484
|
+
])) : L("", !0),
|
|
5488
5485
|
V(ci, {
|
|
5489
5486
|
id: `${e.id}-checkboxes`,
|
|
5490
5487
|
class: "av-multiselect__collapse__fieldset",
|
|
@@ -5492,28 +5489,28 @@ const $o = {
|
|
|
5492
5489
|
"legend-id": `${e.id}-checkboxes-legend`
|
|
5493
5490
|
}, {
|
|
5494
5491
|
default: K(() => [
|
|
5495
|
-
(d(!0), b($, null, ie(r(
|
|
5496
|
-
id: `${n(
|
|
5497
|
-
key: `${n(
|
|
5492
|
+
(d(!0), b($, null, ie(r(T), (E) => (d(), S(si, {
|
|
5493
|
+
id: `${n(E, e.id)}-checkbox`,
|
|
5494
|
+
key: `${n(E, e.id)}-fieldset`,
|
|
5498
5495
|
modelValue: o.value,
|
|
5499
5496
|
"onUpdate:modelValue": O[1] || (O[1] = (x) => o.value = x),
|
|
5500
|
-
value:
|
|
5501
|
-
label:
|
|
5502
|
-
icon:
|
|
5503
|
-
name: `${n(
|
|
5497
|
+
value: E.value,
|
|
5498
|
+
label: E.label,
|
|
5499
|
+
icon: E.icon,
|
|
5500
|
+
name: `${n(E, e.id)}-checkbox`,
|
|
5504
5501
|
onKeydown: [
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5502
|
+
Ae(Z, ["down"]),
|
|
5503
|
+
Ae(Z, ["right"]),
|
|
5504
|
+
Ae(F, ["up"]),
|
|
5505
|
+
Ae(F, ["left"]),
|
|
5506
|
+
Ae(te, ["tab"])
|
|
5510
5507
|
]
|
|
5511
5508
|
}, null, 8, ["id", "modelValue", "value", "label", "icon", "name"]))), 128))
|
|
5512
5509
|
]),
|
|
5513
5510
|
_: 1
|
|
5514
5511
|
}, 8, ["id", "legend", "legend-id"]),
|
|
5515
|
-
r(
|
|
5516
|
-
], 46, ds)) :
|
|
5512
|
+
r(T).length === 0 ? (d(), b("div", gs, W(e.noResultLabel), 1)) : L("", !0)
|
|
5513
|
+
], 46, ds)) : L("", !0);
|
|
5517
5514
|
};
|
|
5518
5515
|
}
|
|
5519
5516
|
}), hs = /* @__PURE__ */ P(bs, [["__scopeId", "data-v-2d33e581"]]), ys = ["title"], Cs = ["for"], Ms = { class: "b2-light" }, Es = {
|
|
@@ -5548,90 +5545,90 @@ const $o = {
|
|
|
5548
5545
|
},
|
|
5549
5546
|
emits: ["update:modelValue"],
|
|
5550
5547
|
setup(e, { emit: t }) {
|
|
5551
|
-
|
|
5548
|
+
re((O) => ({
|
|
5552
5549
|
v2d665760: O.width,
|
|
5553
5550
|
v65959acd: O.height
|
|
5554
5551
|
}));
|
|
5555
|
-
const a = t, n =
|
|
5552
|
+
const a = t, n = I(() => e.id ?? `multi-select-${crypto.randomUUID()}`), l = z(null), i = z(!1), o = I(() => e.errorMessage || e.successMessage), s = I(() => e.errorMessage ? "error" : "success"), {
|
|
5556
5553
|
collapse: c,
|
|
5557
5554
|
collapsing: A,
|
|
5558
5555
|
cssExpanded: u,
|
|
5559
5556
|
doExpand: f,
|
|
5560
|
-
onTransitionEnd:
|
|
5557
|
+
onTransitionEnd: g
|
|
5561
5558
|
} = ot(), m = {
|
|
5562
5559
|
collapse: c,
|
|
5563
5560
|
collapsing: A,
|
|
5564
5561
|
cssExpanded: u,
|
|
5565
5562
|
doExpand: f,
|
|
5566
|
-
onTransitionEnd:
|
|
5567
|
-
}, v =
|
|
5563
|
+
onTransitionEnd: g
|
|
5564
|
+
}, v = I(() => e.modelValue.map((O) => O.value)), h = I(() => {
|
|
5568
5565
|
if (!e.modelValue || e.modelValue.length === 0)
|
|
5569
5566
|
return e.placeholder;
|
|
5570
5567
|
if (e.selectedText)
|
|
5571
5568
|
return e.selectedText;
|
|
5572
5569
|
const O = e.modelValue.length > 1 ? "s" : "";
|
|
5573
5570
|
return `${e.modelValue.length} option${O} sélectionnée${O}`;
|
|
5574
|
-
}),
|
|
5575
|
-
function
|
|
5576
|
-
O.key === "Escape" &&
|
|
5571
|
+
}), N = z(!1);
|
|
5572
|
+
function C(O) {
|
|
5573
|
+
O.key === "Escape" && w();
|
|
5577
5574
|
}
|
|
5578
|
-
function
|
|
5579
|
-
var y,
|
|
5575
|
+
function T(O) {
|
|
5576
|
+
var y, E;
|
|
5580
5577
|
const j = O.target;
|
|
5581
|
-
!((y = l.value) != null && y.$el.contains(j)) && !((
|
|
5578
|
+
!((y = l.value) != null && y.$el.contains(j)) && !((E = c.value) != null && E.contains(j)) && w();
|
|
5582
5579
|
}
|
|
5583
|
-
function
|
|
5584
|
-
i.value = !0,
|
|
5580
|
+
function D() {
|
|
5581
|
+
i.value = !0, N.value = !0, document.addEventListener("click", T), document.addEventListener("keydown", C), setTimeout(() => {
|
|
5585
5582
|
f(!0);
|
|
5586
5583
|
}, 100);
|
|
5587
5584
|
}
|
|
5588
|
-
function
|
|
5585
|
+
function w() {
|
|
5589
5586
|
i.value = !1, f(!1), setTimeout(() => {
|
|
5590
|
-
|
|
5587
|
+
N.value = !1;
|
|
5591
5588
|
}, 300), Z();
|
|
5592
5589
|
}
|
|
5593
5590
|
async function B() {
|
|
5594
|
-
|
|
5591
|
+
N.value ? w() : D();
|
|
5595
5592
|
}
|
|
5596
5593
|
function Z() {
|
|
5597
|
-
document.removeEventListener("click",
|
|
5594
|
+
document.removeEventListener("click", T), document.removeEventListener("keydown", C);
|
|
5598
5595
|
}
|
|
5599
5596
|
function F(O) {
|
|
5600
5597
|
var y;
|
|
5601
5598
|
const j = document.activeElement;
|
|
5602
|
-
O.shiftKey && j === ((y = l.value) == null ? void 0 : y.$el) &&
|
|
5599
|
+
O.shiftKey && j === ((y = l.value) == null ? void 0 : y.$el) && w();
|
|
5603
5600
|
}
|
|
5604
5601
|
function te(O) {
|
|
5605
5602
|
var y;
|
|
5606
5603
|
const j = ((y = e.options) == null ? void 0 : y.filter(
|
|
5607
|
-
(
|
|
5604
|
+
(E) => O.includes(E.value)
|
|
5608
5605
|
)) ?? [];
|
|
5609
5606
|
a("update:modelValue", j);
|
|
5610
5607
|
}
|
|
5611
5608
|
ge(() => {
|
|
5612
5609
|
Z();
|
|
5613
5610
|
});
|
|
5614
|
-
const k =
|
|
5611
|
+
const k = I(() => [
|
|
5615
5612
|
"av-label",
|
|
5616
5613
|
{ invisible: !e.labelVisible },
|
|
5617
5614
|
e.labelClass
|
|
5618
|
-
]), R =
|
|
5615
|
+
]), R = I(() => ({
|
|
5619
5616
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5620
5617
|
}));
|
|
5621
5618
|
return (O, j) => {
|
|
5622
|
-
const y =
|
|
5619
|
+
const y = oe, E = Qe;
|
|
5623
5620
|
return d(), b($, null, [
|
|
5624
|
-
|
|
5621
|
+
M("div", {
|
|
5625
5622
|
class: Q(["av-select-group", { [`av-select-group--${r(s)}`]: r(o) }]),
|
|
5626
5623
|
title: r(h)
|
|
5627
5624
|
}, [
|
|
5628
|
-
|
|
5625
|
+
M("label", {
|
|
5629
5626
|
class: Q(r(k)),
|
|
5630
5627
|
for: r(n)
|
|
5631
5628
|
}, [
|
|
5632
|
-
|
|
5633
|
-
"required" in O.$attrs && O.$attrs.required !== !1 ? (d(), b("span", Es)) :
|
|
5634
|
-
e.hint ? (d(), b("span", Ns, W(e.hint), 1)) :
|
|
5629
|
+
M("span", Ms, W(e.label), 1),
|
|
5630
|
+
"required" in O.$attrs && O.$attrs.required !== !1 ? (d(), b("span", Es)) : L("", !0),
|
|
5631
|
+
e.hint ? (d(), b("span", Ns, W(e.hint), 1)) : L("", !0)
|
|
5635
5632
|
], 10, Cs),
|
|
5636
5633
|
V(y, _({
|
|
5637
5634
|
id: r(n),
|
|
@@ -5653,25 +5650,25 @@ const $o = {
|
|
|
5653
5650
|
small: e.dense,
|
|
5654
5651
|
style: r(R),
|
|
5655
5652
|
onClick: B,
|
|
5656
|
-
onKeydown: ue(
|
|
5653
|
+
onKeydown: Ae(ue(F, ["shift"]), ["tab"])
|
|
5657
5654
|
}), null, 16, ["id", "label", "disabled", "aria-expanded", "aria-controls", "class", "small", "style", "onKeydown"]),
|
|
5658
5655
|
V(hs, {
|
|
5659
5656
|
id: r(n),
|
|
5660
5657
|
legend: e.legend,
|
|
5661
5658
|
hint: e.collapseHint,
|
|
5662
5659
|
"model-value": r(v),
|
|
5663
|
-
"is-visible": r(
|
|
5660
|
+
"is-visible": r(N),
|
|
5664
5661
|
"select-all": e.selectAll,
|
|
5665
5662
|
"select-all-label": e.selectAllLabel,
|
|
5666
5663
|
search: e.search,
|
|
5667
5664
|
options: e.options,
|
|
5668
5665
|
selected: e.modelValue,
|
|
5669
5666
|
"use-collapsable-return": m,
|
|
5670
|
-
onClose:
|
|
5667
|
+
onClose: w,
|
|
5671
5668
|
"onUpdate:modelValue": te
|
|
5672
5669
|
}, null, 8, ["id", "legend", "hint", "model-value", "is-visible", "select-all", "select-all-label", "search", "options", "selected"])
|
|
5673
5670
|
], 10, ys),
|
|
5674
|
-
V(
|
|
5671
|
+
V(E, {
|
|
5675
5672
|
"message-id": `multiselect-${r(s)}-desc-${r(s)}`,
|
|
5676
5673
|
type: r(s),
|
|
5677
5674
|
message: r(o)
|
|
@@ -5703,32 +5700,32 @@ const $o = {
|
|
|
5703
5700
|
},
|
|
5704
5701
|
emits: ["update:modelValue"],
|
|
5705
5702
|
setup(e, { emit: t }) {
|
|
5706
|
-
const a = t, n =
|
|
5703
|
+
const a = t, n = I(() => e.id ?? `select-${crypto.randomUUID()}`), l = I(() => {
|
|
5707
5704
|
var A;
|
|
5708
5705
|
if (!e.modelValue)
|
|
5709
5706
|
return e.placeholder;
|
|
5710
5707
|
const c = (A = e.options) == null ? void 0 : A.find((u) => String(u.value) === String(e.modelValue));
|
|
5711
5708
|
return c ? c.text : e.placeholder;
|
|
5712
|
-
}), i =
|
|
5709
|
+
}), i = I(() => ({
|
|
5713
5710
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5714
|
-
})), o =
|
|
5711
|
+
})), o = I(() => e.errorMessage || e.successMessage), s = I(() => e.errorMessage ? "error" : "success");
|
|
5715
5712
|
return (c, A) => {
|
|
5716
5713
|
const u = Qe;
|
|
5717
5714
|
return d(), b("div", {
|
|
5718
5715
|
class: Q({ "av-select--dense": e.dense })
|
|
5719
5716
|
}, [
|
|
5720
|
-
|
|
5717
|
+
M("div", {
|
|
5721
5718
|
class: Q(["av-select-group", { [`av-select-group--${r(s)}`]: r(o) }])
|
|
5722
5719
|
}, [
|
|
5723
|
-
|
|
5720
|
+
M("label", {
|
|
5724
5721
|
class: "av-label b2-light",
|
|
5725
5722
|
for: r(n)
|
|
5726
5723
|
}, [
|
|
5727
|
-
|
|
5728
|
-
e.required ? (d(), b("span", Ls, " *")) :
|
|
5729
|
-
e.hint ? (d(), b("span", ws, W(e.hint), 1)) :
|
|
5724
|
+
M("span", null, W(e.label), 1),
|
|
5725
|
+
e.required ? (d(), b("span", Ls, " *")) : L("", !0),
|
|
5726
|
+
e.hint ? (d(), b("span", ws, W(e.hint), 1)) : L("", !0)
|
|
5730
5727
|
], 8, Ds),
|
|
5731
|
-
|
|
5728
|
+
M("select", _({
|
|
5732
5729
|
id: r(n),
|
|
5733
5730
|
class: [{
|
|
5734
5731
|
[`av-select--${r(s)}`]: r(o),
|
|
@@ -5744,18 +5741,18 @@ const $o = {
|
|
|
5744
5741
|
}, c.$attrs, {
|
|
5745
5742
|
style: r(i),
|
|
5746
5743
|
onChange: A[0] || (A[0] = (f) => {
|
|
5747
|
-
var
|
|
5748
|
-
return a("update:modelValue", (
|
|
5744
|
+
var g;
|
|
5745
|
+
return a("update:modelValue", (g = f.target) == null ? void 0 : g.value);
|
|
5749
5746
|
})
|
|
5750
5747
|
}), [
|
|
5751
|
-
|
|
5748
|
+
M("option", {
|
|
5752
5749
|
selected: !e.options.some((f) => f.value === e.modelValue),
|
|
5753
5750
|
disabled: "",
|
|
5754
5751
|
value: "",
|
|
5755
5752
|
hidden: ""
|
|
5756
5753
|
}, W(e.placeholder), 9, xs),
|
|
5757
|
-
(d(!0), b($, null, ie(e.options, (f,
|
|
5758
|
-
key:
|
|
5754
|
+
(d(!0), b($, null, ie(e.options, (f, g) => (d(), b("option", {
|
|
5755
|
+
key: g,
|
|
5759
5756
|
selected: e.modelValue === f.value,
|
|
5760
5757
|
value: f.value,
|
|
5761
5758
|
disabled: f.disabled,
|
|
@@ -5814,7 +5811,7 @@ const $o = {
|
|
|
5814
5811
|
},
|
|
5815
5812
|
emits: ["click", "next", "previous", "first", "last"],
|
|
5816
5813
|
setup(e, { emit: t }) {
|
|
5817
|
-
const a = t, n = z(null), l = qa("button"), i =
|
|
5814
|
+
const a = t, n = z(null), l = qa("button"), i = I(() => e.isSelected ? "s2-bold" : "s2-regular"), o = {
|
|
5818
5815
|
ArrowRight: "next",
|
|
5819
5816
|
ArrowLeft: "previous",
|
|
5820
5817
|
Home: "first",
|
|
@@ -5847,7 +5844,7 @@ const $o = {
|
|
|
5847
5844
|
class: Q(["av-tab-item", { "av-tab-item--compact": e.compact }]),
|
|
5848
5845
|
role: "presentation"
|
|
5849
5846
|
}, [
|
|
5850
|
-
|
|
5847
|
+
M("button", _(c.$attrs, {
|
|
5851
5848
|
id: e.tabId,
|
|
5852
5849
|
ref_key: "button",
|
|
5853
5850
|
ref: n,
|
|
@@ -5858,15 +5855,15 @@ const $o = {
|
|
|
5858
5855
|
type: "button",
|
|
5859
5856
|
"aria-selected": e.isSelected,
|
|
5860
5857
|
"aria-controls": e.panelId,
|
|
5861
|
-
onClick: A[0] || (A[0] =
|
|
5858
|
+
onClick: A[0] || (A[0] = ue((f) => c.$emit("click", e.tabId), ["prevent"])),
|
|
5862
5859
|
onKeydown: A[1] || (A[1] = (f) => s(f))
|
|
5863
5860
|
}), [
|
|
5864
5861
|
e.icon ? (d(), S(u, {
|
|
5865
5862
|
key: 0,
|
|
5866
5863
|
name: e.icon,
|
|
5867
5864
|
size: 2
|
|
5868
|
-
}, null, 8, ["name"])) :
|
|
5869
|
-
|
|
5865
|
+
}, null, 8, ["name"])) : L("", !0),
|
|
5866
|
+
M("span", {
|
|
5870
5867
|
class: Q(r(i))
|
|
5871
5868
|
}, W(e.title), 3)
|
|
5872
5869
|
], 16, zs)
|
|
@@ -5898,31 +5895,31 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
5898
5895
|
}),
|
|
5899
5896
|
emits: ["update:modelValue"],
|
|
5900
5897
|
setup(e) {
|
|
5901
|
-
const t = me(), a =
|
|
5902
|
-
var
|
|
5903
|
-
return ((
|
|
5898
|
+
const t = me(), a = I(() => {
|
|
5899
|
+
var N;
|
|
5900
|
+
return ((N = t.default) == null ? void 0 : N.call(t)) || [];
|
|
5904
5901
|
}), n = we(e, "modelValue"), l = z(null), i = z(null), o = bt({}), { tabsStyle: s, updateTabsStyle: c } = Ws(
|
|
5905
5902
|
i,
|
|
5906
|
-
|
|
5907
|
-
var
|
|
5908
|
-
return Array.from(((
|
|
5903
|
+
I(() => {
|
|
5904
|
+
var N;
|
|
5905
|
+
return Array.from(((N = l.value) == null ? void 0 : N.querySelectorAll(".av-tab-content")) || []);
|
|
5909
5906
|
}),
|
|
5910
5907
|
n
|
|
5911
5908
|
);
|
|
5912
|
-
function A(
|
|
5913
|
-
if (o[
|
|
5914
|
-
return o[
|
|
5915
|
-
const
|
|
5916
|
-
return o[
|
|
5909
|
+
function A(N) {
|
|
5910
|
+
if (o[N])
|
|
5911
|
+
return o[N];
|
|
5912
|
+
const C = `tab-${crypto.randomUUID()}`;
|
|
5913
|
+
return o[N] = C, C;
|
|
5917
5914
|
}
|
|
5918
|
-
function u(
|
|
5919
|
-
const
|
|
5920
|
-
n.value = (n.value +
|
|
5915
|
+
function u(N) {
|
|
5916
|
+
const C = a.value.length;
|
|
5917
|
+
n.value = (n.value + N + C) % C;
|
|
5921
5918
|
}
|
|
5922
5919
|
function f() {
|
|
5923
5920
|
u(-1);
|
|
5924
5921
|
}
|
|
5925
|
-
function
|
|
5922
|
+
function g() {
|
|
5926
5923
|
u(1);
|
|
5927
5924
|
}
|
|
5928
5925
|
function m() {
|
|
@@ -5933,28 +5930,28 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
5933
5930
|
}
|
|
5934
5931
|
const h = z(null);
|
|
5935
5932
|
return ve(() => {
|
|
5936
|
-
var
|
|
5933
|
+
var N;
|
|
5937
5934
|
window.ResizeObserver && (h.value = new window.ResizeObserver(() => {
|
|
5938
5935
|
c();
|
|
5939
|
-
})), (
|
|
5940
|
-
var
|
|
5941
|
-
|
|
5936
|
+
})), (N = l.value) == null || N.querySelectorAll(".av-tab-content").forEach((C) => {
|
|
5937
|
+
var T;
|
|
5938
|
+
C && ((T = h.value) == null || T.observe(C));
|
|
5942
5939
|
});
|
|
5943
5940
|
}), ge(() => {
|
|
5944
|
-
var
|
|
5945
|
-
(
|
|
5946
|
-
var
|
|
5947
|
-
|
|
5948
|
-
}), (
|
|
5949
|
-
}), (
|
|
5941
|
+
var N, C;
|
|
5942
|
+
(N = l.value) == null || N.querySelectorAll(".av-tab-content").forEach((T) => {
|
|
5943
|
+
var D;
|
|
5944
|
+
T && ((D = h.value) == null || D.unobserve(T));
|
|
5945
|
+
}), (C = h.value) == null || C.disconnect();
|
|
5946
|
+
}), (N, C) => (d(), b("div", {
|
|
5950
5947
|
ref_key: "$el",
|
|
5951
5948
|
ref: l,
|
|
5952
5949
|
class: Q(["av-tabs", {
|
|
5953
5950
|
"av-tabs--compact": e.compact
|
|
5954
5951
|
}]),
|
|
5955
|
-
style:
|
|
5952
|
+
style: de(r(s))
|
|
5956
5953
|
}, [
|
|
5957
|
-
|
|
5954
|
+
M("ul", {
|
|
5958
5955
|
ref_key: "tablist",
|
|
5959
5956
|
ref: i,
|
|
5960
5957
|
class: Q(["av-tabs__list av-row av-px-xs av-py-none av-align-center av-gap-sm", {
|
|
@@ -5964,32 +5961,32 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
5964
5961
|
role: "tablist",
|
|
5965
5962
|
"aria-label": e.ariaLabel ?? "Liste d’onglets"
|
|
5966
5963
|
}, [
|
|
5967
|
-
(d(!0), b($, null, ie(r(a), (
|
|
5968
|
-
var
|
|
5964
|
+
(d(!0), b($, null, ie(r(a), (T, D) => {
|
|
5965
|
+
var w, B;
|
|
5969
5966
|
return d(), S(Ps, {
|
|
5970
|
-
key:
|
|
5971
|
-
"tab-id": A(
|
|
5972
|
-
"panel-id": `${A(
|
|
5973
|
-
title: (
|
|
5974
|
-
icon: (B =
|
|
5967
|
+
key: D,
|
|
5968
|
+
"tab-id": A(D),
|
|
5969
|
+
"panel-id": `${A(D)}-panel`,
|
|
5970
|
+
title: (w = T.props) == null ? void 0 : w.title,
|
|
5971
|
+
icon: (B = T.props) == null ? void 0 : B.icon,
|
|
5975
5972
|
compact: e.compact,
|
|
5976
|
-
"is-selected": n.value ===
|
|
5977
|
-
onClick: (Z) => n.value =
|
|
5978
|
-
onNext:
|
|
5973
|
+
"is-selected": n.value === D,
|
|
5974
|
+
onClick: (Z) => n.value = D,
|
|
5975
|
+
onNext: g,
|
|
5979
5976
|
onPrevious: f,
|
|
5980
5977
|
onFirst: m,
|
|
5981
5978
|
onLast: v
|
|
5982
5979
|
}, null, 8, ["tab-id", "panel-id", "title", "icon", "compact", "is-selected", "onClick"]);
|
|
5983
5980
|
}), 128))
|
|
5984
5981
|
], 10, Us),
|
|
5985
|
-
(d(!0), b($, null, ie(r(a), (
|
|
5986
|
-
key:
|
|
5987
|
-
"panel-id": `${A(
|
|
5988
|
-
"tab-id": A(
|
|
5989
|
-
"is-visible": n.value ===
|
|
5982
|
+
(d(!0), b($, null, ie(r(a), (T, D) => (d(), S(js, {
|
|
5983
|
+
key: D,
|
|
5984
|
+
"panel-id": `${A(D)}-panel`,
|
|
5985
|
+
"tab-id": A(D),
|
|
5986
|
+
"is-visible": n.value === D
|
|
5990
5987
|
}, {
|
|
5991
5988
|
default: K(() => [
|
|
5992
|
-
n.value ===
|
|
5989
|
+
n.value === D ? (d(), S(he(T.children.default), { key: 0 })) : L("", !0)
|
|
5993
5990
|
]),
|
|
5994
5991
|
_: 2
|
|
5995
5992
|
}, 1032, ["panel-id", "tab-id", "is-visible"]))), 128))
|
|
@@ -6017,22 +6014,22 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6017
6014
|
},
|
|
6018
6015
|
emits: ["update:modelValue"],
|
|
6019
6016
|
setup(e) {
|
|
6020
|
-
const t =
|
|
6017
|
+
const t = I(() => e.id ?? `toggle-${crypto.randomUUID()}`), a = I(() => `${t.value}-label`);
|
|
6021
6018
|
return (n, l) => (d(), b($, null, [
|
|
6022
|
-
|
|
6019
|
+
M("label", {
|
|
6023
6020
|
id: r(a),
|
|
6024
6021
|
for: r(t),
|
|
6025
6022
|
class: Q(["av-toggle av-row av-justify-center av-gap-xs av-align-start", {
|
|
6026
6023
|
"av-toggle--disabled": e.disabled
|
|
6027
6024
|
}])
|
|
6028
6025
|
}, [
|
|
6029
|
-
|
|
6026
|
+
M("div", {
|
|
6030
6027
|
class: Q(["toggle av-row av-justify-center av-align-center av-gap-xxs", {
|
|
6031
6028
|
"toggle--disabled": e.disabled
|
|
6032
6029
|
}])
|
|
6033
6030
|
}, [
|
|
6034
6031
|
(d(), b("svg", Ys, [
|
|
6035
|
-
|
|
6032
|
+
M("image", {
|
|
6036
6033
|
href: e.modelValue ? r(Hs) : r(Rs),
|
|
6037
6034
|
width: "34",
|
|
6038
6035
|
height: "14"
|
|
@@ -6040,9 +6037,9 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6040
6037
|
])),
|
|
6041
6038
|
e.modelValue ? (d(), b("span", qs, W(e.activeText), 1)) : (d(), b("span", Fs, W(e.inactiveText), 1))
|
|
6042
6039
|
], 2),
|
|
6043
|
-
|
|
6040
|
+
M("span", Ks, W(e.description), 1)
|
|
6044
6041
|
], 10, Zs),
|
|
6045
|
-
|
|
6042
|
+
M("input", {
|
|
6046
6043
|
id: r(t),
|
|
6047
6044
|
style: { display: "none" },
|
|
6048
6045
|
disabled: e.disabled,
|
|
@@ -6074,7 +6071,7 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6074
6071
|
setup(e, { emit: t }) {
|
|
6075
6072
|
const a = t;
|
|
6076
6073
|
return (n, l) => (d(), b("div", $s, [
|
|
6077
|
-
e.cancelLabel ? (d(), S(r(
|
|
6074
|
+
e.cancelLabel ? (d(), S(r(oe), {
|
|
6078
6075
|
key: 0,
|
|
6079
6076
|
icon: e.cancelIcon,
|
|
6080
6077
|
label: e.cancelLabel,
|
|
@@ -6085,8 +6082,8 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6085
6082
|
"icon-only": e.iconOnly,
|
|
6086
6083
|
small: "",
|
|
6087
6084
|
onClick: l[0] || (l[0] = (i) => a("cancel"))
|
|
6088
|
-
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "icon-only"])) :
|
|
6089
|
-
e.confirmLabel ? (d(), S(r(
|
|
6085
|
+
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "icon-only"])) : L("", !0),
|
|
6086
|
+
e.confirmLabel ? (d(), S(r(oe), {
|
|
6090
6087
|
key: 1,
|
|
6091
6088
|
icon: e.confirmIcon,
|
|
6092
6089
|
label: e.confirmLabel,
|
|
@@ -6099,7 +6096,7 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6099
6096
|
small: "",
|
|
6100
6097
|
"icon-only": e.iconOnly,
|
|
6101
6098
|
onClick: l[1] || (l[1] = (i) => a("confirm"))
|
|
6102
|
-
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "type", "form", "icon-only"])) :
|
|
6099
|
+
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "type", "form", "icon-only"])) : L("", !0)
|
|
6103
6100
|
]));
|
|
6104
6101
|
}
|
|
6105
6102
|
}), ja = Symbol("header"), _s = ["aria-label"], ec = { class: "av-btns-group" }, Jt = /* @__PURE__ */ p({
|
|
@@ -6115,9 +6112,9 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6115
6112
|
role: "navigation",
|
|
6116
6113
|
"aria-label": e.navAriaLabel
|
|
6117
6114
|
}, [
|
|
6118
|
-
|
|
6115
|
+
M("ul", ec, [
|
|
6119
6116
|
(d(!0), b($, null, ie(e.links, (i, o) => (d(), b("li", { key: o }, [
|
|
6120
|
-
V(
|
|
6117
|
+
V(oe, {
|
|
6121
6118
|
icon: i.icon,
|
|
6122
6119
|
label: i.label ?? "",
|
|
6123
6120
|
onClick: (s) => {
|
|
@@ -6139,24 +6136,24 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6139
6136
|
};
|
|
6140
6137
|
function nc(e, t) {
|
|
6141
6138
|
return d(), b("svg", ac, [...t[0] || (t[0] = [
|
|
6142
|
-
|
|
6139
|
+
M("rect", {
|
|
6143
6140
|
width: "213.732",
|
|
6144
6141
|
height: "96.9",
|
|
6145
6142
|
fill: "url(#pattern0_40000620_15397)"
|
|
6146
6143
|
}, null, -1),
|
|
6147
|
-
|
|
6148
|
-
|
|
6144
|
+
M("defs", null, [
|
|
6145
|
+
M("pattern", {
|
|
6149
6146
|
id: "pattern0_40000620_15397",
|
|
6150
6147
|
patternContentUnits: "objectBoundingBox",
|
|
6151
6148
|
width: "1",
|
|
6152
6149
|
height: "1"
|
|
6153
6150
|
}, [
|
|
6154
|
-
|
|
6151
|
+
M("use", {
|
|
6155
6152
|
"xlink:href": "#image0_40000620_15397",
|
|
6156
6153
|
transform: "matrix(0.00087108 0 0 0.00192134 0 -0.0139577)"
|
|
6157
6154
|
})
|
|
6158
6155
|
]),
|
|
6159
|
-
|
|
6156
|
+
M("image", {
|
|
6160
6157
|
id: "image0_40000620_15397",
|
|
6161
6158
|
width: "1148",
|
|
6162
6159
|
height: "535",
|
|
@@ -6209,11 +6206,11 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6209
6206
|
setup(e, { emit: t }) {
|
|
6210
6207
|
const a = t, n = me(), { isBelowLg: l } = st(), i = ea(() => e.languageSelector), o = z(!1), s = z(!1), c = z(!1);
|
|
6211
6208
|
function A() {
|
|
6212
|
-
var
|
|
6213
|
-
c.value = !1, o.value = !1, s.value = !1, (
|
|
6209
|
+
var N;
|
|
6210
|
+
c.value = !1, o.value = !1, s.value = !1, (N = document.getElementById("button-menu")) == null || N.focus();
|
|
6214
6211
|
}
|
|
6215
|
-
function u(
|
|
6216
|
-
|
|
6212
|
+
function u(N) {
|
|
6213
|
+
N.key === "Escape" && A();
|
|
6217
6214
|
}
|
|
6218
6215
|
ve(() => {
|
|
6219
6216
|
document.addEventListener("keydown", u);
|
|
@@ -6222,25 +6219,25 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6222
6219
|
});
|
|
6223
6220
|
function f() {
|
|
6224
6221
|
c.value = !0, o.value = !0, s.value = !1, setTimeout(() => {
|
|
6225
|
-
var
|
|
6226
|
-
(
|
|
6222
|
+
var N;
|
|
6223
|
+
(N = document.getElementById("close-button")) == null || N.focus();
|
|
6227
6224
|
});
|
|
6228
6225
|
}
|
|
6229
|
-
function
|
|
6226
|
+
function g() {
|
|
6230
6227
|
c.value = !0, o.value = !1, s.value = !0;
|
|
6231
6228
|
}
|
|
6232
|
-
const m = A, v =
|
|
6233
|
-
return Nt(ja, () => A), (
|
|
6229
|
+
const m = A, v = I(() => [e.homeLabel, e.serviceTitle].filter((N) => N).join(" - ")), h = I(() => !!n.mainnav);
|
|
6230
|
+
return Nt(ja, () => A), (N, C) => {
|
|
6234
6231
|
var Z, F, te;
|
|
6235
|
-
const
|
|
6232
|
+
const T = wt("RouterLink"), D = oe, w = Qa, B = Il;
|
|
6236
6233
|
return d(), b("header", ic, [
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
V(
|
|
6234
|
+
M("div", rc, [
|
|
6235
|
+
M("div", oc, [
|
|
6236
|
+
M("div", sc, [
|
|
6237
|
+
M("div", cc, [
|
|
6238
|
+
M("div", Ac, [
|
|
6239
|
+
M("div", uc, [
|
|
6240
|
+
V(T, {
|
|
6244
6241
|
to: e.homeTo,
|
|
6245
6242
|
title: r(v)
|
|
6246
6243
|
}, {
|
|
@@ -6251,7 +6248,7 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6251
6248
|
}, 8, ["to", "title"])
|
|
6252
6249
|
]),
|
|
6253
6250
|
e.showSearch || r(h) || (Z = e.quickLinks) != null && Z.length ? (d(), b("div", dc, [
|
|
6254
|
-
e.showSearch ? (d(), S(
|
|
6251
|
+
e.showSearch ? (d(), S(D, {
|
|
6255
6252
|
key: 0,
|
|
6256
6253
|
class: "search-button",
|
|
6257
6254
|
label: e.showSearchLabel,
|
|
@@ -6260,9 +6257,9 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6260
6257
|
title: e.showSearchLabel,
|
|
6261
6258
|
icon: r(H).MAGNIFY,
|
|
6262
6259
|
"icon-only": "",
|
|
6263
|
-
onClick:
|
|
6264
|
-
}, null, 8, ["label", "aria-label", "title", "icon"])) :
|
|
6265
|
-
r(h) || (F = e.quickLinks) != null && F.length ? (d(), S(
|
|
6260
|
+
onClick: C[0] || (C[0] = ue((k) => g(), ["prevent", "stop"]))
|
|
6261
|
+
}, null, 8, ["label", "aria-label", "title", "icon"])) : L("", !0),
|
|
6262
|
+
r(h) || (F = e.quickLinks) != null && F.length ? (d(), S(D, {
|
|
6266
6263
|
key: 1,
|
|
6267
6264
|
id: "button-menu",
|
|
6268
6265
|
variant: "OUTLINED",
|
|
@@ -6274,27 +6271,27 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6274
6271
|
title: e.menuLabel,
|
|
6275
6272
|
"data-testid": "open-menu-btn",
|
|
6276
6273
|
"icon-only": "",
|
|
6277
|
-
onClick:
|
|
6278
|
-
}, null, 8, ["icon", "label", "aria-label", "title"])) :
|
|
6279
|
-
])) :
|
|
6274
|
+
onClick: C[1] || (C[1] = ue((k) => f(), ["prevent", "stop"]))
|
|
6275
|
+
}, null, 8, ["icon", "label", "aria-label", "title"])) : L("", !0)
|
|
6276
|
+
])) : L("", !0)
|
|
6280
6277
|
]),
|
|
6281
6278
|
e.serviceTitle ? (d(), b("div", fc, [
|
|
6282
|
-
|
|
6283
|
-
U(
|
|
6284
|
-
])) :
|
|
6279
|
+
M("span", vc, W(e.serviceTitle), 1),
|
|
6280
|
+
U(N.$slots, "serviceDescription", {}, void 0, !0)
|
|
6281
|
+
])) : L("", !0)
|
|
6285
6282
|
]),
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
U(
|
|
6283
|
+
M("div", mc, [
|
|
6284
|
+
M("div", gc, [
|
|
6285
|
+
U(N.$slots, "before-quick-links", {}, void 0, !0),
|
|
6289
6286
|
!r(o) && ((te = e.quickLinks) != null && te.length) ? (d(), S(Jt, {
|
|
6290
6287
|
key: 0,
|
|
6291
6288
|
links: e.quickLinks,
|
|
6292
6289
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
6293
|
-
}, null, 8, ["links", "nav-aria-label"])) :
|
|
6294
|
-
U(
|
|
6290
|
+
}, null, 8, ["links", "nav-aria-label"])) : L("", !0),
|
|
6291
|
+
U(N.$slots, "after-quick-links", {}, void 0, !0),
|
|
6295
6292
|
r(i) ? (d(), S(Pt, _({ key: 1 }, r(i), {
|
|
6296
|
-
onSelect:
|
|
6297
|
-
}), null, 16)) :
|
|
6293
|
+
onSelect: C[2] || (C[2] = (k) => a("languageSelect", k))
|
|
6294
|
+
}), null, 16)) : L("", !0)
|
|
6298
6295
|
]),
|
|
6299
6296
|
e.showSearch ? (d(), b("div", Ic, [
|
|
6300
6297
|
V(qt, {
|
|
@@ -6303,19 +6300,19 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6303
6300
|
"model-value": e.modelValue,
|
|
6304
6301
|
placeholder: e.placeholder,
|
|
6305
6302
|
style: { "justify-content": "flex-end" },
|
|
6306
|
-
"onUpdate:modelValue":
|
|
6307
|
-
onSearch:
|
|
6303
|
+
"onUpdate:modelValue": C[3] || (C[3] = (k) => a("update:modelValue", k)),
|
|
6304
|
+
onSearch: C[4] || (C[4] = (k) => a("search", k))
|
|
6308
6305
|
}, null, 8, ["id", "label", "model-value", "placeholder"])
|
|
6309
|
-
])) :
|
|
6306
|
+
])) : L("", !0)
|
|
6310
6307
|
])
|
|
6311
6308
|
]),
|
|
6312
|
-
U(
|
|
6309
|
+
U(N.$slots, "default", {}, void 0, !0)
|
|
6313
6310
|
])
|
|
6314
6311
|
]),
|
|
6315
|
-
|
|
6312
|
+
M("div", bc, [
|
|
6316
6313
|
r(h) && !r(c) ? (d(), b("div", hc, [
|
|
6317
|
-
U(
|
|
6318
|
-
])) :
|
|
6314
|
+
U(N.$slots, "mainnav", { hidemodal: A }, void 0, !0)
|
|
6315
|
+
])) : L("", !0)
|
|
6319
6316
|
]),
|
|
6320
6317
|
r(l) && (e.showSearch || r(h) || e.quickLinks && e.quickLinks.length || r(i)) ? (d(), S(B, {
|
|
6321
6318
|
key: 0,
|
|
@@ -6328,46 +6325,46 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6328
6325
|
width: "75%"
|
|
6329
6326
|
}, {
|
|
6330
6327
|
default: K(() => [
|
|
6331
|
-
|
|
6332
|
-
V(
|
|
6328
|
+
M("div", yc, [
|
|
6329
|
+
V(w, {
|
|
6333
6330
|
"cancel-label": e.closeMenuModalLabel,
|
|
6334
6331
|
"cancel-icon": r(H).CLOSE_CIRCLE_OUTLINE,
|
|
6335
6332
|
"icon-only": "",
|
|
6336
6333
|
onCancel: A
|
|
6337
6334
|
}, null, 8, ["cancel-label", "cancel-icon"])
|
|
6338
6335
|
]),
|
|
6339
|
-
|
|
6340
|
-
|
|
6336
|
+
M("div", Cc, [
|
|
6337
|
+
M("div", Mc, [
|
|
6341
6338
|
r(i) ? (d(), S(Pt, _({ key: 0 }, r(i), {
|
|
6342
|
-
onSelect:
|
|
6343
|
-
}), null, 16)) :
|
|
6344
|
-
U(
|
|
6339
|
+
onSelect: C[5] || (C[5] = (k) => a("languageSelect", k))
|
|
6340
|
+
}), null, 16)) : L("", !0),
|
|
6341
|
+
U(N.$slots, "before-quick-links", {}, void 0, !0),
|
|
6345
6342
|
r(o) ? (d(), S(Jt, {
|
|
6346
6343
|
key: 1,
|
|
6347
6344
|
role: "navigation",
|
|
6348
6345
|
links: e.quickLinks,
|
|
6349
6346
|
"nav-aria-label": e.quickLinksAriaLabel,
|
|
6350
6347
|
onLinkClick: r(m)
|
|
6351
|
-
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) :
|
|
6352
|
-
U(
|
|
6348
|
+
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) : L("", !0),
|
|
6349
|
+
U(N.$slots, "after-quick-links", {}, void 0, !0)
|
|
6353
6350
|
]),
|
|
6354
|
-
r(c) ? U(
|
|
6351
|
+
r(c) ? U(N.$slots, "mainnav", {
|
|
6355
6352
|
key: 0,
|
|
6356
6353
|
hidemodal: A
|
|
6357
|
-
}, void 0, !0) :
|
|
6354
|
+
}, void 0, !0) : L("", !0),
|
|
6358
6355
|
r(s) ? (d(), b("div", Ec, [
|
|
6359
6356
|
V(qt, {
|
|
6360
6357
|
"searchbar-id": e.searchbarId,
|
|
6361
6358
|
"model-value": e.modelValue,
|
|
6362
6359
|
placeholder: e.placeholder,
|
|
6363
|
-
"onUpdate:modelValue":
|
|
6364
|
-
onSearch:
|
|
6360
|
+
"onUpdate:modelValue": C[6] || (C[6] = (k) => a("update:modelValue", k)),
|
|
6361
|
+
onSearch: C[7] || (C[7] = (k) => a("search", k))
|
|
6365
6362
|
}, null, 8, ["searchbar-id", "model-value", "placeholder"])
|
|
6366
|
-
])) :
|
|
6363
|
+
])) : L("", !0)
|
|
6367
6364
|
])
|
|
6368
6365
|
]),
|
|
6369
6366
|
_: 3
|
|
6370
|
-
}, 8, ["show", "aria-label"])) :
|
|
6367
|
+
}, 8, ["show", "aria-label"])) : L("", !0)
|
|
6371
6368
|
]);
|
|
6372
6369
|
};
|
|
6373
6370
|
}
|
|
@@ -6377,12 +6374,12 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6377
6374
|
};
|
|
6378
6375
|
function Dc(e, t) {
|
|
6379
6376
|
return d(), b("svg", Tc, [...t[0] || (t[0] = [
|
|
6380
|
-
|
|
6377
|
+
M("path", {
|
|
6381
6378
|
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",
|
|
6382
6379
|
style: { fill: "#ed184e", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
6383
6380
|
transform: "translate(20.294 -79.068)"
|
|
6384
6381
|
}, null, -1),
|
|
6385
|
-
|
|
6382
|
+
M("path", {
|
|
6386
6383
|
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",
|
|
6387
6384
|
style: { fill: "#3871c1", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
6388
6385
|
transform: "translate(20.294 -79.068)"
|
|
@@ -6397,10 +6394,10 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6397
6394
|
color: {}
|
|
6398
6395
|
},
|
|
6399
6396
|
setup(e) {
|
|
6400
|
-
|
|
6397
|
+
re((a) => ({
|
|
6401
6398
|
c873d74e: a.color
|
|
6402
6399
|
}));
|
|
6403
|
-
const t =
|
|
6400
|
+
const t = I(() => ({
|
|
6404
6401
|
...e.width && { width: e.width },
|
|
6405
6402
|
...e.height && { height: e.height }
|
|
6406
6403
|
}));
|
|
@@ -6426,7 +6423,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6426
6423
|
collapsing: a,
|
|
6427
6424
|
cssExpanded: n,
|
|
6428
6425
|
doExpand: l
|
|
6429
|
-
} = ot(), { isAboveMd: i } = st(), o =
|
|
6426
|
+
} = ot(), { isAboveMd: i } = st(), o = I(() => e.id ?? `breadcrumb-${crypto.randomUUID()}`), s = I(() => ({
|
|
6430
6427
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_RIGHT})`
|
|
6431
6428
|
})), c = z(i.value);
|
|
6432
6429
|
return se(c, (A, u) => {
|
|
@@ -6436,14 +6433,14 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6436
6433
|
}), ve(() => {
|
|
6437
6434
|
l(c.value);
|
|
6438
6435
|
}), (A, u) => {
|
|
6439
|
-
const f =
|
|
6436
|
+
const f = oe, g = wt("RouterLink");
|
|
6440
6437
|
return e.links && e.links.length ? (d(), b("nav", {
|
|
6441
6438
|
key: 0,
|
|
6442
6439
|
role: "navigation",
|
|
6443
6440
|
"aria-label": e.navigationLabel,
|
|
6444
6441
|
class: "av-breadcrumb"
|
|
6445
6442
|
}, [
|
|
6446
|
-
r(c) ?
|
|
6443
|
+
r(c) ? L("", !0) : (d(), S(f, {
|
|
6447
6444
|
key: 0,
|
|
6448
6445
|
"aria-expanded": r(c),
|
|
6449
6446
|
"aria-controls": r(o),
|
|
@@ -6453,7 +6450,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6453
6450
|
"no-sentence-case": "",
|
|
6454
6451
|
onClick: u[0] || (u[0] = (m) => c.value = !r(c))
|
|
6455
6452
|
}, null, 8, ["aria-expanded", "aria-controls", "label"])),
|
|
6456
|
-
|
|
6453
|
+
M("div", {
|
|
6457
6454
|
id: r(o),
|
|
6458
6455
|
ref_key: "collapse",
|
|
6459
6456
|
ref: t,
|
|
@@ -6462,13 +6459,13 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6462
6459
|
"av-collapsing": r(a)
|
|
6463
6460
|
}])
|
|
6464
6461
|
}, [
|
|
6465
|
-
|
|
6462
|
+
M("ol", pc, [
|
|
6466
6463
|
(d(!0), b($, null, ie(e.links, (m, v) => (d(), b("li", {
|
|
6467
6464
|
key: v,
|
|
6468
6465
|
class: "av-breadcrumb__item",
|
|
6469
|
-
style:
|
|
6466
|
+
style: de(r(s))
|
|
6470
6467
|
}, [
|
|
6471
|
-
m.to ? (d(), S(
|
|
6468
|
+
m.to ? (d(), S(g, {
|
|
6472
6469
|
key: 0,
|
|
6473
6470
|
"aria-current": v === e.links.length - 1 ? "page" : void 0,
|
|
6474
6471
|
class: "b2-regular av-breadcrumb__link",
|
|
@@ -6486,7 +6483,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6486
6483
|
], 4))), 128))
|
|
6487
6484
|
])
|
|
6488
6485
|
], 10, Sc)
|
|
6489
|
-
], 8, xc)) :
|
|
6486
|
+
], 8, xc)) : L("", !0);
|
|
6490
6487
|
};
|
|
6491
6488
|
}
|
|
6492
6489
|
}), ru = /* @__PURE__ */ P(Qc, [["__scopeId", "data-v-7edf8c6c"]]), jc = ["id", "aria-current"], zc = /* @__PURE__ */ p({
|
|
@@ -6496,7 +6493,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6496
6493
|
active: { type: Boolean }
|
|
6497
6494
|
},
|
|
6498
6495
|
setup(e) {
|
|
6499
|
-
const t =
|
|
6496
|
+
const t = I(() => e.id ?? `nav-item-${crypto.randomUUID()}`);
|
|
6500
6497
|
return (a, n) => (d(), b("li", {
|
|
6501
6498
|
id: r(t),
|
|
6502
6499
|
class: Q(["av-nav__item", { "av-nav__item--active": e.active }]),
|
|
@@ -6512,7 +6509,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6512
6509
|
active: { type: Boolean }
|
|
6513
6510
|
},
|
|
6514
6511
|
setup(e) {
|
|
6515
|
-
const t =
|
|
6512
|
+
const t = I(() => e.id ?? `nav-menu-item-${crypto.randomUUID()}`);
|
|
6516
6513
|
return (a, n) => (d(), b("li", {
|
|
6517
6514
|
id: r(t),
|
|
6518
6515
|
class: "av-menu__item",
|
|
@@ -6534,7 +6531,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6534
6531
|
},
|
|
6535
6532
|
emits: ["toggleId"],
|
|
6536
6533
|
setup(e) {
|
|
6537
|
-
const { isBelowLg: t } = st(), a =
|
|
6534
|
+
const { isBelowLg: t } = st(), a = I(() => e.id ?? `menu-link-${crypto.randomUUID()}`), n = I(() => typeof e.to == "string" && e.to.startsWith("http")), l = Dt() ? it(ja) : void 0, i = (l == null ? void 0 : l()) ?? (() => {
|
|
6538
6535
|
});
|
|
6539
6536
|
return (o, s) => {
|
|
6540
6537
|
const c = ne, A = wt("RouterLink");
|
|
@@ -6550,7 +6547,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6550
6547
|
o.$emit("toggleId", r(a)), e.onClick(u);
|
|
6551
6548
|
})
|
|
6552
6549
|
}, [
|
|
6553
|
-
|
|
6550
|
+
M("span", Hc, W(e.text), 1)
|
|
6554
6551
|
], 10, Vc)) : (d(), S(A, {
|
|
6555
6552
|
key: 1,
|
|
6556
6553
|
class: "av-nav__link",
|
|
@@ -6566,8 +6563,8 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6566
6563
|
key: 0,
|
|
6567
6564
|
name: e.icon,
|
|
6568
6565
|
size: 1.5
|
|
6569
|
-
}, null, 8, ["name"])) :
|
|
6570
|
-
|
|
6566
|
+
}, null, 8, ["name"])) : L("", !0),
|
|
6567
|
+
M("span", Rc, W(e.text), 1)
|
|
6571
6568
|
]),
|
|
6572
6569
|
_: 1
|
|
6573
6570
|
}, 8, ["to"]));
|
|
@@ -6590,7 +6587,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6590
6587
|
cssExpanded: n,
|
|
6591
6588
|
doExpand: l,
|
|
6592
6589
|
onTransitionEnd: i
|
|
6593
|
-
} = ot(), o =
|
|
6590
|
+
} = ot(), o = I(() => e.id ?? `menu-${crypto.randomUUID()}`), s = I(() => o.value === e.expandedId), c = I(() => ({
|
|
6594
6591
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_DOWN})`
|
|
6595
6592
|
}));
|
|
6596
6593
|
return se(s, (A, u) => {
|
|
@@ -6598,17 +6595,17 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6598
6595
|
}), ve(() => {
|
|
6599
6596
|
s.value && l(!0);
|
|
6600
6597
|
}), (A, u) => (d(), b($, null, [
|
|
6601
|
-
|
|
6598
|
+
M("button", {
|
|
6602
6599
|
class: "av-nav__btn",
|
|
6603
6600
|
"aria-expanded": r(s),
|
|
6604
6601
|
"aria-current": e.active || void 0,
|
|
6605
6602
|
"aria-controls": r(o),
|
|
6606
|
-
style:
|
|
6603
|
+
style: de(r(c)),
|
|
6607
6604
|
onClick: u[0] || (u[0] = (f) => A.$emit("toggleId", r(o)))
|
|
6608
6605
|
}, [
|
|
6609
|
-
|
|
6606
|
+
M("span", null, W(e.title), 1)
|
|
6610
6607
|
], 12, Yc),
|
|
6611
|
-
|
|
6608
|
+
M("div", {
|
|
6612
6609
|
id: r(o),
|
|
6613
6610
|
ref_key: "collapse",
|
|
6614
6611
|
ref: t,
|
|
@@ -6616,8 +6613,8 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6616
6613
|
"data-testid": "navigation-menu",
|
|
6617
6614
|
onTransitionend: u[2] || (u[2] = (f) => r(i)(r(s)))
|
|
6618
6615
|
}, [
|
|
6619
|
-
|
|
6620
|
-
(d(!0), b($, null, ie(e.links, (f,
|
|
6616
|
+
M("ul", qc, [
|
|
6617
|
+
(d(!0), b($, null, ie(e.links, (f, g) => (d(), S(Uc, { key: g }, {
|
|
6621
6618
|
default: K(() => [
|
|
6622
6619
|
V(za, _({ ref_for: !0 }, f, {
|
|
6623
6620
|
onToggleId: u[1] || (u[1] = (m) => A.$emit("toggleId", e.expandedId))
|
|
@@ -6640,7 +6637,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6640
6637
|
navItems: {}
|
|
6641
6638
|
},
|
|
6642
6639
|
setup(e) {
|
|
6643
|
-
const t =
|
|
6640
|
+
const t = I(() => e.id ?? `nav-${crypto.randomUUID()}`), a = z(void 0);
|
|
6644
6641
|
function n(s) {
|
|
6645
6642
|
if (s === a.value) {
|
|
6646
6643
|
a.value = void 0;
|
|
@@ -6668,13 +6665,13 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6668
6665
|
}), ge(() => {
|
|
6669
6666
|
document.removeEventListener("click", i), document.removeEventListener("keydown", o);
|
|
6670
6667
|
}), (s, c) => (d(), b("div", Gc, [
|
|
6671
|
-
|
|
6668
|
+
M("nav", {
|
|
6672
6669
|
id: r(t),
|
|
6673
6670
|
class: "av-nav",
|
|
6674
6671
|
role: "navigation",
|
|
6675
6672
|
"aria-label": e.label
|
|
6676
6673
|
}, [
|
|
6677
|
-
|
|
6674
|
+
M("ul", $c, [
|
|
6678
6675
|
(d(!0), b($, null, ie(e.navItems, (A, u) => (d(), S(Bc, { key: u }, {
|
|
6679
6676
|
default: K(() => [
|
|
6680
6677
|
A.to && A.text ? (d(), S(za, _({
|
|
@@ -6689,7 +6686,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6689
6686
|
}, A, {
|
|
6690
6687
|
"expanded-id": r(a),
|
|
6691
6688
|
onToggleId: c[1] || (c[1] = (f) => n(f))
|
|
6692
|
-
}), null, 16, ["expanded-id"])) :
|
|
6689
|
+
}), null, 16, ["expanded-id"])) : L("", !0)
|
|
6693
6690
|
]),
|
|
6694
6691
|
_: 2
|
|
6695
6692
|
}, 1024))), 128))
|
|
@@ -6719,90 +6716,90 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6719
6716
|
},
|
|
6720
6717
|
emits: ["update:current-page"],
|
|
6721
6718
|
setup(e, { emit: t }) {
|
|
6722
|
-
const a = t, n =
|
|
6719
|
+
const a = t, n = I(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), l = I(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), i = I(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, l.value + 1) : e.pages), o = I(() => e.pages.length > 0), s = (v) => a("update:current-page", v), c = (v) => s(v), A = () => c(0), u = () => c(Math.max(0, e.currentPage - 1)), f = () => c(Math.min(e.pages.length - 1, e.currentPage + 1)), g = () => c(e.pages.length - 1), m = (v) => e.pages.indexOf(v) === e.currentPage;
|
|
6723
6720
|
return (v, h) => {
|
|
6724
|
-
var
|
|
6721
|
+
var N, C, T, D;
|
|
6725
6722
|
return r(o) ? (d(), b("nav", {
|
|
6726
6723
|
key: 0,
|
|
6727
6724
|
role: "navigation",
|
|
6728
6725
|
class: "av-pagination av-nav",
|
|
6729
6726
|
"aria-label": e.ariaLabel
|
|
6730
6727
|
}, [
|
|
6731
|
-
|
|
6728
|
+
M("ul", eA, [
|
|
6732
6729
|
e.compact && e.compactCurrentPageLabel ? (d(), b("li", tA, [
|
|
6733
|
-
|
|
6734
|
-
])) :
|
|
6735
|
-
|
|
6736
|
-
e.compact ?
|
|
6730
|
+
M("span", aA, W(e.compactCurrentPageLabel), 1)
|
|
6731
|
+
])) : L("", !0),
|
|
6732
|
+
M("li", null, [
|
|
6733
|
+
e.compact ? L("", !0) : (d(), b("a", {
|
|
6737
6734
|
key: 0,
|
|
6738
|
-
href: (
|
|
6735
|
+
href: (N = e.pages[0]) == null ? void 0 : N.href,
|
|
6739
6736
|
class: "av-pagination__link",
|
|
6740
6737
|
title: e.firstPageLabel,
|
|
6741
6738
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6742
|
-
onClick: h[0] || (h[0] =
|
|
6739
|
+
onClick: h[0] || (h[0] = ue((w) => A(), ["prevent"]))
|
|
6743
6740
|
}, [
|
|
6744
6741
|
V(ne, {
|
|
6745
6742
|
name: r(H).PAGE_FIRST,
|
|
6746
6743
|
size: 1.5
|
|
6747
6744
|
}, null, 8, ["name"]),
|
|
6748
|
-
|
|
6745
|
+
M("span", lA, W(e.firstPageLabel), 1)
|
|
6749
6746
|
], 8, nA))
|
|
6750
6747
|
]),
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
href: (
|
|
6748
|
+
M("li", null, [
|
|
6749
|
+
M("a", {
|
|
6750
|
+
href: (C = e.pages[Math.max(e.currentPage - 1, 0)]) == null ? void 0 : C.href,
|
|
6754
6751
|
class: "av-pagination__link",
|
|
6755
6752
|
title: e.prevPageLabel,
|
|
6756
6753
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6757
|
-
onClick: h[1] || (h[1] =
|
|
6754
|
+
onClick: h[1] || (h[1] = ue((w) => u(), ["prevent"]))
|
|
6758
6755
|
}, [
|
|
6759
6756
|
V(ne, {
|
|
6760
6757
|
name: r(H).NAVIGATE_BEFORE,
|
|
6761
6758
|
size: 1.5
|
|
6762
6759
|
}, null, 8, ["name"]),
|
|
6763
|
-
e.compact ?
|
|
6760
|
+
e.compact ? L("", !0) : (d(), b("span", rA, W(e.prevPageLabel), 1))
|
|
6764
6761
|
], 8, iA)
|
|
6765
6762
|
]),
|
|
6766
|
-
e.compact ?
|
|
6767
|
-
|
|
6768
|
-
href:
|
|
6763
|
+
e.compact ? L("", !0) : (d(!0), b($, { key: 1 }, ie(r(i), (w, B) => (d(), b("li", { key: B }, [
|
|
6764
|
+
M("a", {
|
|
6765
|
+
href: w == null ? void 0 : w.href,
|
|
6769
6766
|
class: "av-pagination__link",
|
|
6770
|
-
title:
|
|
6771
|
-
"aria-current": m(
|
|
6772
|
-
onClick:
|
|
6767
|
+
title: w.title,
|
|
6768
|
+
"aria-current": m(w) ? "page" : void 0,
|
|
6769
|
+
onClick: ue((Z) => c(e.pages.indexOf(w)), ["prevent"])
|
|
6773
6770
|
}, [
|
|
6774
|
-
r(i).indexOf(
|
|
6775
|
-
Le(" " + W(
|
|
6776
|
-
r(i).indexOf(
|
|
6771
|
+
r(i).indexOf(w) === 0 && r(n) > 0 ? (d(), b("span", sA, "...")) : L("", !0),
|
|
6772
|
+
Le(" " + W(w.label) + " ", 1),
|
|
6773
|
+
r(i).indexOf(w) === r(i).length - 1 && r(l) < e.pages.length - 1 ? (d(), b("span", cA, "...")) : L("", !0)
|
|
6777
6774
|
], 8, oA)
|
|
6778
6775
|
]))), 128)),
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
href: (
|
|
6776
|
+
M("li", null, [
|
|
6777
|
+
M("a", {
|
|
6778
|
+
href: (T = e.pages[Math.min(e.currentPage + 1, e.pages.length - 1)]) == null ? void 0 : T.href,
|
|
6782
6779
|
class: "av-pagination__link",
|
|
6783
6780
|
title: e.nextPageLabel,
|
|
6784
6781
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6785
6782
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6786
|
-
onClick: h[2] || (h[2] =
|
|
6783
|
+
onClick: h[2] || (h[2] = ue((w) => f(), ["prevent"]))
|
|
6787
6784
|
}, [
|
|
6788
|
-
e.compact ?
|
|
6785
|
+
e.compact ? L("", !0) : (d(), b("span", uA, W(e.nextPageLabel), 1)),
|
|
6789
6786
|
V(ne, {
|
|
6790
6787
|
name: r(H).NAVIGATE_NEXT,
|
|
6791
6788
|
size: 1.5
|
|
6792
6789
|
}, null, 8, ["name"])
|
|
6793
6790
|
], 8, AA)
|
|
6794
6791
|
]),
|
|
6795
|
-
|
|
6796
|
-
e.compact ?
|
|
6792
|
+
M("li", null, [
|
|
6793
|
+
e.compact ? L("", !0) : (d(), b("a", {
|
|
6797
6794
|
key: 0,
|
|
6798
6795
|
class: "av-pagination__link",
|
|
6799
|
-
href: (
|
|
6796
|
+
href: (D = e.pages[e.pages.length - 1]) == null ? void 0 : D.href,
|
|
6800
6797
|
title: e.lastPageLabel,
|
|
6801
6798
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6802
6799
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6803
|
-
onClick: h[3] || (h[3] =
|
|
6800
|
+
onClick: h[3] || (h[3] = ue((w) => g(), ["prevent"]))
|
|
6804
6801
|
}, [
|
|
6805
|
-
|
|
6802
|
+
M("span", fA, W(e.lastPageLabel), 1),
|
|
6806
6803
|
V(ne, {
|
|
6807
6804
|
name: r(H).PAGE_LAST,
|
|
6808
6805
|
size: 1.5
|
|
@@ -6810,7 +6807,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6810
6807
|
], 8, dA))
|
|
6811
6808
|
])
|
|
6812
6809
|
])
|
|
6813
|
-
], 8, _c)) :
|
|
6810
|
+
], 8, _c)) : L("", !0);
|
|
6814
6811
|
};
|
|
6815
6812
|
}
|
|
6816
6813
|
}), su = /* @__PURE__ */ P(vA, [["__scopeId", "data-v-e50ee994"]]);
|
|
@@ -6842,16 +6839,16 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6842
6839
|
}),
|
|
6843
6840
|
emits: /* @__PURE__ */ ye(["update:collapsed"], ["update:collapsed"]),
|
|
6844
6841
|
setup(e) {
|
|
6845
|
-
|
|
6842
|
+
re((u) => ({
|
|
6846
6843
|
v4d5b7c17: r(c),
|
|
6847
6844
|
v4a813d87: u.padding
|
|
6848
6845
|
}));
|
|
6849
|
-
const t = e, a = we(e, "collapsed"), { width: n, collapsedWidth: l } = _t(t), i =
|
|
6846
|
+
const t = e, a = we(e, "collapsed"), { width: n, collapsedWidth: l } = _t(t), i = I(() => t.id ?? crypto.randomUUID()), o = I(() => `${i.value} navigation`), s = I({
|
|
6850
6847
|
get: () => t.collapsible ? a.value : !1,
|
|
6851
6848
|
set: (u) => {
|
|
6852
6849
|
t.collapsible && (a.value = u);
|
|
6853
6850
|
}
|
|
6854
|
-
}), c =
|
|
6851
|
+
}), c = I(() => t.collapsible && s.value ? l.value : n.value);
|
|
6855
6852
|
function A() {
|
|
6856
6853
|
t.collapsible && (s.value = !s.value);
|
|
6857
6854
|
}
|
|
@@ -6861,7 +6858,7 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6861
6858
|
"aria-label": r(o)
|
|
6862
6859
|
}, [
|
|
6863
6860
|
t.collapsible ? (d(), b("div", gA, [
|
|
6864
|
-
V(
|
|
6861
|
+
V(oe, {
|
|
6865
6862
|
"aria-expanded": !r(s),
|
|
6866
6863
|
"aria-controls": r(i),
|
|
6867
6864
|
icon: r(s) ? r(H).CHEVRON_DOUBLE_RIGHT : r(H).CHEVRON_DOUBLE_LEFT,
|
|
@@ -6870,8 +6867,8 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6870
6867
|
"icon-only": "",
|
|
6871
6868
|
onClick: A
|
|
6872
6869
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
6873
|
-
])) :
|
|
6874
|
-
|
|
6870
|
+
])) : L("", !0),
|
|
6871
|
+
M("div", IA, [
|
|
6875
6872
|
U(u.$slots, "default", {}, void 0, !0)
|
|
6876
6873
|
])
|
|
6877
6874
|
], 10, mA));
|
|
@@ -6938,37 +6935,37 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6938
6935
|
width: { default: "100%" }
|
|
6939
6936
|
},
|
|
6940
6937
|
setup(e) {
|
|
6941
|
-
return
|
|
6938
|
+
return re((t) => ({
|
|
6942
6939
|
v4b4d4496: t.width
|
|
6943
6940
|
})), (t, a) => (d(), b("div", CA, [
|
|
6944
|
-
|
|
6945
|
-
|
|
6941
|
+
M("div", MA, [
|
|
6942
|
+
M("div", {
|
|
6946
6943
|
class: "step step--active",
|
|
6947
6944
|
"aria-current": e.currentStep === 0 ? "step" : void 0
|
|
6948
6945
|
}, [...a[0] || (a[0] = [
|
|
6949
|
-
|
|
6946
|
+
M("span", { class: "b1-regular" }, "1", -1)
|
|
6950
6947
|
])], 8, EA),
|
|
6951
6948
|
(d(!0), b($, null, ie(e.steps.slice(1, e.steps.length), (n, l) => (d(), b("div", {
|
|
6952
6949
|
key: l,
|
|
6953
6950
|
class: "steps-container av-row av-align-center"
|
|
6954
6951
|
}, [
|
|
6955
|
-
|
|
6952
|
+
M("div", {
|
|
6956
6953
|
class: Q(["separator", { "separator--active": l + 1 <= e.currentStep }])
|
|
6957
6954
|
}, null, 2),
|
|
6958
|
-
|
|
6955
|
+
M("div", {
|
|
6959
6956
|
class: Q(["step av-col av-align-center av-justify-center", { "step--active": l + 1 <= e.currentStep }]),
|
|
6960
6957
|
"aria-current": l + 1 === e.currentStep ? "step" : void 0
|
|
6961
6958
|
}, [
|
|
6962
|
-
|
|
6959
|
+
M("span", TA, W(l + 2), 1)
|
|
6963
6960
|
], 10, NA)
|
|
6964
6961
|
]))), 128))
|
|
6965
6962
|
]),
|
|
6966
|
-
|
|
6963
|
+
M("div", DA, [
|
|
6967
6964
|
(d(!0), b($, null, ie(e.steps, (n, l) => (d(), b("div", {
|
|
6968
6965
|
key: l,
|
|
6969
6966
|
class: "label-container av-col av-align-center av-justify-center"
|
|
6970
6967
|
}, [
|
|
6971
|
-
|
|
6968
|
+
M("span", {
|
|
6972
6969
|
class: Q(["label av-col av-align-center", {
|
|
6973
6970
|
"b1-bold": l <= e.currentStep,
|
|
6974
6971
|
"b1-light": l > e.currentStep
|
|
@@ -6997,10 +6994,10 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6997
6994
|
},
|
|
6998
6995
|
emits: ["close", "confirm"],
|
|
6999
6996
|
setup(e, { emit: t }) {
|
|
7000
|
-
const a = t, n = me(), l =
|
|
6997
|
+
const a = t, n = me(), l = I(() => e.id ?? `modal-${crypto.randomUUID()}`), i = I(() => e.isAlert ? "alertdialog" : "dialog"), o = z(null), s = z();
|
|
7001
6998
|
se(() => e.opened, (A) => {
|
|
7002
|
-
var u, f,
|
|
7003
|
-
A ? ((u = s.value) == null || u.showModal(), (f = o.value) == null || f.focus()) : (
|
|
6999
|
+
var u, f, g;
|
|
7000
|
+
A ? ((u = s.value) == null || u.showModal(), (f = o.value) == null || f.focus()) : (g = s.value) == null || g.close(), c(A);
|
|
7004
7001
|
});
|
|
7005
7002
|
function c(A) {
|
|
7006
7003
|
typeof window < "u" && document.body.classList.toggle("modal-open", A);
|
|
@@ -7014,7 +7011,7 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
7014
7011
|
return d(), S(aa, { to: "body" }, [
|
|
7015
7012
|
e.opened ? (d(), S(r(fa), { key: 0 }, {
|
|
7016
7013
|
default: K(() => [
|
|
7017
|
-
|
|
7014
|
+
M("dialog", {
|
|
7018
7015
|
id: r(l),
|
|
7019
7016
|
ref_key: "modal",
|
|
7020
7017
|
ref: s,
|
|
@@ -7023,17 +7020,17 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
7023
7020
|
role: r(i),
|
|
7024
7021
|
class: Q(["av-modal", { "av-modal--opened": e.opened }]),
|
|
7025
7022
|
open: e.opened,
|
|
7026
|
-
onKeydown: u[2] || (u[2] =
|
|
7023
|
+
onKeydown: u[2] || (u[2] = Ae((g) => a("close"), ["esc"]))
|
|
7027
7024
|
}, [
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7025
|
+
M("div", OA, [
|
|
7026
|
+
M("div", xA, [
|
|
7027
|
+
M("div", SA, [
|
|
7031
7028
|
n.header ? (d(), b("div", pA, [
|
|
7032
7029
|
U(A.$slots, "header", {}, void 0, !0)
|
|
7033
|
-
])) :
|
|
7030
|
+
])) : L("", !0),
|
|
7034
7031
|
U(A.$slots, "default", {}, void 0, !0)
|
|
7035
7032
|
]),
|
|
7036
|
-
|
|
7033
|
+
M("div", kA, [
|
|
7037
7034
|
V(f, {
|
|
7038
7035
|
ref_key: "closeBtn",
|
|
7039
7036
|
ref: o,
|
|
@@ -7055,7 +7052,7 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
7055
7052
|
], 42, wA)
|
|
7056
7053
|
]),
|
|
7057
7054
|
_: 3
|
|
7058
|
-
})) :
|
|
7055
|
+
})) : L("", !0)
|
|
7059
7056
|
]);
|
|
7060
7057
|
};
|
|
7061
7058
|
}
|
|
@@ -7068,7 +7065,7 @@ export {
|
|
|
7068
7065
|
$A as AvAutocomplete,
|
|
7069
7066
|
BA as AvBadge,
|
|
7070
7067
|
ru as AvBreadcrumb,
|
|
7071
|
-
|
|
7068
|
+
oe as AvButton,
|
|
7072
7069
|
Qa as AvCancelConfirmButtons,
|
|
7073
7070
|
VA as AvCard,
|
|
7074
7071
|
si as AvCheckbox,
|