@avenirs-esr/avenirs-dsav 0.1.121 → 0.1.122
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/AvPeriodInput/AvPeriodInput.stub.d.ts +40 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +819 -823
- package/dist/test-utils.cjs.js +9 -9
- package/dist/test-utils.es.js +40 -18
- 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
|
-
v37c0b3e0:
|
|
4278
|
+
re((T) => ({
|
|
4279
|
+
v37c0b3e0: T.width,
|
|
4280
4280
|
v06bb4d18: r(v),
|
|
4281
|
-
v84123d6e:
|
|
4281
|
+
v84123d6e: 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,39 +4348,39 @@ 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
|
+
U(T.$slots, "customCaptions", {
|
|
4365
4365
|
currentValue: e.modelValue,
|
|
4366
4366
|
maxlength: e.maxlength
|
|
4367
4367
|
}, () => {
|
|
4368
4368
|
var B;
|
|
4369
4369
|
return [
|
|
4370
|
-
e.maxlength ? (d(), b("span", ao, W((B = e.modelValue) == null ? void 0 : B.toString().length) + " / " + W(e.maxlength), 1)) :
|
|
4370
|
+
e.maxlength ? (d(), b("span", ao, W((B = e.modelValue) == null ? void 0 : B.toString().length) + " / " + W(e.maxlength), 1)) : L("", !0)
|
|
4371
4371
|
];
|
|
4372
4372
|
}, !0)
|
|
4373
4373
|
]),
|
|
4374
|
-
r(o).length > 0 ? (d(), S(
|
|
4374
|
+
r(o).length > 0 ? (d(), S(w, {
|
|
4375
4375
|
key: 0,
|
|
4376
4376
|
message: r(o),
|
|
4377
4377
|
type: "error"
|
|
4378
|
-
}, null, 8, ["message"])) :
|
|
4379
|
-
r(s).length > 0 ? (d(), S(
|
|
4378
|
+
}, null, 8, ["message"])) : L("", !0),
|
|
4379
|
+
r(s).length > 0 ? (d(), S(w, {
|
|
4380
4380
|
key: 1,
|
|
4381
4381
|
message: r(s),
|
|
4382
4382
|
type: "success"
|
|
4383
|
-
}, null, 8, ["message"])) :
|
|
4383
|
+
}, null, 8, ["message"])) : L("", !0)
|
|
4384
4384
|
], 2);
|
|
4385
4385
|
};
|
|
4386
4386
|
}
|
|
@@ -4405,37 +4405,40 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4405
4405
|
},
|
|
4406
4406
|
emits: ["update:startModelValue", "update:endModelValue", "change"],
|
|
4407
4407
|
setup(e, { emit: t }) {
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4408
|
+
re((C) => ({
|
|
4409
|
+
fb8ac81e: C.separatorSpacing
|
|
4410
|
+
}));
|
|
4411
|
+
const a = t, n = I(() => e.id ?? `period-input-${crypto.randomUUID()}`), l = I(() => `${n.value}__start`), i = I(() => `${n.value}__end`);
|
|
4412
|
+
function o(C) {
|
|
4413
|
+
if (!C)
|
|
4411
4414
|
return;
|
|
4412
|
-
const
|
|
4413
|
-
return At(
|
|
4415
|
+
const T = Ta(C);
|
|
4416
|
+
return At(T) ? T : void 0;
|
|
4414
4417
|
}
|
|
4415
|
-
function
|
|
4416
|
-
return
|
|
4418
|
+
function s(C, T) {
|
|
4419
|
+
return C && T ? wi([C, T]) : C ?? T;
|
|
4417
4420
|
}
|
|
4418
|
-
function
|
|
4419
|
-
return
|
|
4421
|
+
function c(C, T) {
|
|
4422
|
+
return C && T ? Oi([C, T]) : C ?? T;
|
|
4420
4423
|
}
|
|
4421
|
-
const
|
|
4422
|
-
function
|
|
4423
|
-
const
|
|
4424
|
-
a("update:startModelValue",
|
|
4424
|
+
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);
|
|
4425
|
+
function h(C) {
|
|
4426
|
+
const T = (C == null ? void 0 : C.toString()) ?? "";
|
|
4427
|
+
a("update:startModelValue", T), a("change", { start: T, end: e.endModelValue });
|
|
4425
4428
|
}
|
|
4426
|
-
function
|
|
4427
|
-
const
|
|
4428
|
-
a("update:endModelValue",
|
|
4429
|
+
function N(C) {
|
|
4430
|
+
const T = (C == null ? void 0 : C.toString()) ?? "";
|
|
4431
|
+
a("update:endModelValue", T), a("change", { start: e.startModelValue, end: T });
|
|
4429
4432
|
}
|
|
4430
|
-
return (
|
|
4433
|
+
return (C, T) => (d(), b("div", {
|
|
4431
4434
|
class: Q(["av-period-input av-col av-gap-xxs", { "av-period-input--stacked": e.stacked }])
|
|
4432
4435
|
}, [
|
|
4433
|
-
|
|
4436
|
+
M("label", {
|
|
4434
4437
|
class: Q(e.labelClass),
|
|
4435
4438
|
for: r(l),
|
|
4436
4439
|
"data-testid": "common-label"
|
|
4437
4440
|
}, W(e.label), 11, lo),
|
|
4438
|
-
|
|
4441
|
+
M("div", {
|
|
4439
4442
|
class: Q(["av-period-input__row", {
|
|
4440
4443
|
"av-row av-align-end": !e.stacked,
|
|
4441
4444
|
"av-col av-align-stretch": e.stacked
|
|
@@ -4448,18 +4451,12 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4448
4451
|
label: e.startLabel,
|
|
4449
4452
|
"label-visible": !1,
|
|
4450
4453
|
disabled: e.disabled,
|
|
4451
|
-
"aria-disabled": e.disabled,
|
|
4452
4454
|
width: e.width,
|
|
4453
|
-
"min-date": r(
|
|
4454
|
-
"max-date": r(
|
|
4455
|
+
"min-date": r(f),
|
|
4456
|
+
"max-date": r(g),
|
|
4455
4457
|
"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),
|
|
4458
|
+
"onUpdate:modelValue": T[0] || (T[0] = (D) => h(D))
|
|
4459
|
+
}, null, 8, ["id", "model-value", "label", "disabled", "width", "min-date", "max-date"]),
|
|
4463
4460
|
V(qe, {
|
|
4464
4461
|
id: r(i),
|
|
4465
4462
|
type: "date",
|
|
@@ -4467,17 +4464,16 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4467
4464
|
label: e.endLabel,
|
|
4468
4465
|
"label-visible": !1,
|
|
4469
4466
|
disabled: e.disabled,
|
|
4470
|
-
"aria-disabled": e.disabled,
|
|
4471
4467
|
width: e.width,
|
|
4472
|
-
"min-date": r(
|
|
4473
|
-
"max-date": r(
|
|
4468
|
+
"min-date": r(m),
|
|
4469
|
+
"max-date": r(v),
|
|
4474
4470
|
"data-testid": "end-date-input",
|
|
4475
|
-
"onUpdate:modelValue":
|
|
4476
|
-
}, null, 8, ["id", "model-value", "label", "disabled", "
|
|
4471
|
+
"onUpdate:modelValue": T[1] || (T[1] = (D) => N(D))
|
|
4472
|
+
}, null, 8, ["id", "model-value", "label", "disabled", "width", "min-date", "max-date"])
|
|
4477
4473
|
], 2)
|
|
4478
4474
|
], 2));
|
|
4479
4475
|
}
|
|
4480
|
-
}), FA = /* @__PURE__ */ P(io, [["__scopeId", "data-v-
|
|
4476
|
+
}), FA = /* @__PURE__ */ P(io, [["__scopeId", "data-v-e9c8185b"]]), ro = {
|
|
4481
4477
|
class: "av-search-bar",
|
|
4482
4478
|
role: "search"
|
|
4483
4479
|
}, oo = /* @__PURE__ */ p({
|
|
@@ -4491,11 +4487,11 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4491
4487
|
},
|
|
4492
4488
|
emits: ["update:modelValue", "search"],
|
|
4493
4489
|
setup(e, { emit: t }) {
|
|
4494
|
-
const a = t, n =
|
|
4490
|
+
const a = t, n = I(() => e.id ?? `search-bar-${crypto.randomUUID()}`);
|
|
4495
4491
|
return (l, i) => {
|
|
4496
|
-
const o = qe, s =
|
|
4492
|
+
const o = qe, s = oe;
|
|
4497
4493
|
return d(), b("div", ro, [
|
|
4498
|
-
|
|
4494
|
+
M("div", null, [
|
|
4499
4495
|
V(o, {
|
|
4500
4496
|
id: r(n),
|
|
4501
4497
|
type: "search",
|
|
@@ -4507,7 +4503,7 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4507
4503
|
"aria-disabled": e.disabled,
|
|
4508
4504
|
"label-visible": !1,
|
|
4509
4505
|
"onUpdate:modelValue": i[0] || (i[0] = (c) => a("update:modelValue", (c == null ? void 0 : c.toString()) ?? "")),
|
|
4510
|
-
onKeydown: i[1] || (i[1] =
|
|
4506
|
+
onKeydown: i[1] || (i[1] = Ae((c) => a("search", e.modelValue), ["enter"]))
|
|
4511
4507
|
}, null, 8, ["id", "placeholder", "model-value", "label", "disabled", "aria-disabled"])
|
|
4512
4508
|
]),
|
|
4513
4509
|
V(s, {
|
|
@@ -4539,13 +4535,13 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4539
4535
|
role: { default: "list" }
|
|
4540
4536
|
},
|
|
4541
4537
|
setup(e) {
|
|
4542
|
-
|
|
4538
|
+
re((l) => ({
|
|
4543
4539
|
befe11a4: l.backgroundColor,
|
|
4544
4540
|
v6be6fbb6: l.borderRadius,
|
|
4545
4541
|
v2530b52c: l.padding,
|
|
4546
4542
|
fcd2c920: l.borderColor
|
|
4547
4543
|
}));
|
|
4548
|
-
const t =
|
|
4544
|
+
const t = I(() => `av-list--${e.size}`), a = I(() => e.bordered ? "av-list--bordered" : ""), n = I(() => e.divided ? "av-list--divided" : "");
|
|
4549
4545
|
return (l, i) => (d(), b("div", {
|
|
4550
4546
|
class: Q(["av-list av-col av-gap-xxxs", [r(t), r(a), r(n)]]),
|
|
4551
4547
|
role: e.role,
|
|
@@ -4590,21 +4586,21 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4590
4586
|
role: { default: "listitem" }
|
|
4591
4587
|
},
|
|
4592
4588
|
setup(e) {
|
|
4593
|
-
|
|
4594
|
-
v26a198a9:
|
|
4595
|
-
v342d1158:
|
|
4596
|
-
v6245e036:
|
|
4597
|
-
v5b7a7de8:
|
|
4589
|
+
re((g) => ({
|
|
4590
|
+
v26a198a9: g.colorOnHover,
|
|
4591
|
+
v342d1158: g.color,
|
|
4592
|
+
v6245e036: g.descriptionColor,
|
|
4593
|
+
v5b7a7de8: g.hoverBackgroundColor
|
|
4598
4594
|
}));
|
|
4599
|
-
const t = me(), a =
|
|
4600
|
-
function u(
|
|
4595
|
+
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" : "");
|
|
4596
|
+
function u(g) {
|
|
4601
4597
|
var m;
|
|
4602
|
-
!i.value || e.disabled || (m = e.onClick) == null || m.call(e,
|
|
4598
|
+
!i.value || e.disabled || (m = e.onClick) == null || m.call(e, g);
|
|
4603
4599
|
}
|
|
4604
|
-
function f(
|
|
4600
|
+
function f(g) {
|
|
4605
4601
|
var m;
|
|
4606
|
-
if (!(!i.value || e.disabled) && (
|
|
4607
|
-
|
|
4602
|
+
if (!(!i.value || e.disabled) && (g.key === "Enter" || g.key === " ")) {
|
|
4603
|
+
g.preventDefault();
|
|
4608
4604
|
const v = new MouseEvent("click", {
|
|
4609
4605
|
bubbles: !0,
|
|
4610
4606
|
cancelable: !0
|
|
@@ -4612,7 +4608,7 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4612
4608
|
(m = e.onClick) == null || m.call(e, v);
|
|
4613
4609
|
}
|
|
4614
4610
|
}
|
|
4615
|
-
return (
|
|
4611
|
+
return (g, m) => (d(), b("div", { role: e.role }, [
|
|
4616
4612
|
(d(), S(he(r(a)), {
|
|
4617
4613
|
"aria-label": r(i) ? r(o) : void 0,
|
|
4618
4614
|
"aria-describedby": e.ariaDescribedby,
|
|
@@ -4633,13 +4629,13 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4633
4629
|
color: e.iconColor ?? e.color,
|
|
4634
4630
|
size: e.iconSize
|
|
4635
4631
|
}, 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)) :
|
|
4632
|
+
])) : L("", !0),
|
|
4633
|
+
M("div", fo, [
|
|
4634
|
+
e.title ? (d(), b("span", vo, W(e.title), 1)) : L("", !0),
|
|
4635
|
+
e.description ? (d(), b("span", mo, W(e.description), 1)) : L("", !0),
|
|
4640
4636
|
t.default ? (d(), b("div", go, [
|
|
4641
|
-
U(
|
|
4642
|
-
])) :
|
|
4637
|
+
U(g.$slots, "default", {}, void 0, !0)
|
|
4638
|
+
])) : L("", !0)
|
|
4643
4639
|
])
|
|
4644
4640
|
]),
|
|
4645
4641
|
_: 3
|
|
@@ -4658,7 +4654,7 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4658
4654
|
labelTypographyClass: { default: "b2-regular" }
|
|
4659
4655
|
},
|
|
4660
4656
|
setup(e) {
|
|
4661
|
-
|
|
4657
|
+
re((h) => ({
|
|
4662
4658
|
d85f140e: r(n)
|
|
4663
4659
|
}));
|
|
4664
4660
|
const t = e, {
|
|
@@ -4668,17 +4664,17 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4668
4664
|
selected: i,
|
|
4669
4665
|
multiple: o,
|
|
4670
4666
|
handleSelectChange: s
|
|
4671
|
-
} = t, c =
|
|
4667
|
+
} = t, c = I(() => gn(t.options));
|
|
4672
4668
|
function A(h) {
|
|
4673
4669
|
return h ? Array.isArray(h) ? h : [h] : [];
|
|
4674
4670
|
}
|
|
4675
4671
|
const u = z(A(i));
|
|
4676
4672
|
function f(h) {
|
|
4677
|
-
return u.value.some((
|
|
4673
|
+
return u.value.some((N) => N.value === h.value);
|
|
4678
4674
|
}
|
|
4679
|
-
function
|
|
4675
|
+
function g(h) {
|
|
4680
4676
|
o ? (f(h) ? u.value = u.value.filter(
|
|
4681
|
-
(
|
|
4677
|
+
(C) => C.value !== h.value
|
|
4682
4678
|
) : u.value.push(h), s([...u.value])) : (u.value = [h], s(h));
|
|
4683
4679
|
}
|
|
4684
4680
|
function m(h) {
|
|
@@ -4689,26 +4685,26 @@ const Gr = { class: "av-input__wrapper av-col av-gap-xxs" }, Jr = { class: "av-i
|
|
|
4689
4685
|
}
|
|
4690
4686
|
return se(() => t.selected, (h) => {
|
|
4691
4687
|
u.value = A(h);
|
|
4692
|
-
}, { immediate: !0 }), (h,
|
|
4688
|
+
}, { immediate: !0 }), (h, N) => (d(), b("div", bo, [
|
|
4693
4689
|
r(a) ? (d(), b("span", {
|
|
4694
4690
|
key: 0,
|
|
4695
4691
|
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:
|
|
4692
|
+
}, W(r(a)), 3)) : L("", !0),
|
|
4693
|
+
(d(!0), b($, null, ie(r(c), (C) => (d(), b("div", {
|
|
4694
|
+
key: C.value,
|
|
4699
4695
|
class: "tag-wrapper"
|
|
4700
4696
|
}, [
|
|
4701
4697
|
V(_a, {
|
|
4702
4698
|
class: Q({
|
|
4703
|
-
"av-tag--selected": f(
|
|
4704
|
-
"av-tag--disabled": v(
|
|
4699
|
+
"av-tag--selected": f(C),
|
|
4700
|
+
"av-tag--disabled": v(C)
|
|
4705
4701
|
}),
|
|
4706
|
-
label:
|
|
4707
|
-
icon: m(
|
|
4708
|
-
disabled: v(
|
|
4702
|
+
label: C.label,
|
|
4703
|
+
icon: m(C),
|
|
4704
|
+
disabled: v(C),
|
|
4709
4705
|
selectable: "",
|
|
4710
|
-
selected: f(
|
|
4711
|
-
onSelect: () =>
|
|
4706
|
+
selected: f(C),
|
|
4707
|
+
onSelect: () => g(C)
|
|
4712
4708
|
}, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
|
|
4713
4709
|
]))), 128))
|
|
4714
4710
|
]));
|
|
@@ -4728,10 +4724,10 @@ const KA = [
|
|
|
4728
4724
|
handleSelectChange: { type: Function }
|
|
4729
4725
|
},
|
|
4730
4726
|
setup(e) {
|
|
4731
|
-
const t =
|
|
4727
|
+
const t = I(() => Object.values(Oa).filter((n) => typeof n == "number").map((n) => ({
|
|
4732
4728
|
label: n.toString(),
|
|
4733
4729
|
value: n.toString()
|
|
4734
|
-
}))), a =
|
|
4730
|
+
}))), a = I(() => ({
|
|
4735
4731
|
label: e.pageSizeSelected.toString(),
|
|
4736
4732
|
value: e.pageSizeSelected.toString()
|
|
4737
4733
|
}));
|
|
@@ -4778,12 +4774,12 @@ const KA = [
|
|
|
4778
4774
|
disabled: e.disabled
|
|
4779
4775
|
}, {
|
|
4780
4776
|
default: K(() => [
|
|
4781
|
-
|
|
4777
|
+
M("div", {
|
|
4782
4778
|
class: Q(["av-radio-group av-row av-align-center av-gap-xs", {
|
|
4783
4779
|
"av-radio-group--sm": e.small
|
|
4784
4780
|
}])
|
|
4785
4781
|
}, [
|
|
4786
|
-
|
|
4782
|
+
M("input", _({
|
|
4787
4783
|
id: r(n),
|
|
4788
4784
|
type: "radio",
|
|
4789
4785
|
name: e.name,
|
|
@@ -4793,7 +4789,7 @@ const KA = [
|
|
|
4793
4789
|
}, l.$attrs, {
|
|
4794
4790
|
onClick: i[0] || (i[0] = (s) => a("update:modelValue", e.value))
|
|
4795
4791
|
}), null, 16, Eo),
|
|
4796
|
-
|
|
4792
|
+
M("label", {
|
|
4797
4793
|
for: r(n),
|
|
4798
4794
|
class: "av-label"
|
|
4799
4795
|
}, [
|
|
@@ -4822,26 +4818,26 @@ const KA = [
|
|
|
4822
4818
|
},
|
|
4823
4819
|
emits: ["update:modelValue"],
|
|
4824
4820
|
setup(e, { expose: t, emit: a }) {
|
|
4825
|
-
const n = a, l =
|
|
4821
|
+
const n = a, l = I(() => e.id ?? `radio-button-set-${crypto.randomUUID()}`), i = I(() => e.errorMessage || e.validMessage);
|
|
4826
4822
|
function o(m) {
|
|
4827
4823
|
m !== e.modelValue && n("update:modelValue", m);
|
|
4828
4824
|
}
|
|
4829
|
-
const s =
|
|
4825
|
+
const s = I(() => i.value ? `messages-${l.value}` : void 0), c = me();
|
|
4830
4826
|
function A(m) {
|
|
4831
4827
|
return m != null && typeof m == "object" && "type" in m && m.type === Mo;
|
|
4832
4828
|
}
|
|
4833
4829
|
function u(m) {
|
|
4834
4830
|
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
4831
|
}
|
|
4836
|
-
const f =
|
|
4832
|
+
const f = I(() => {
|
|
4837
4833
|
var m;
|
|
4838
4834
|
return u((m = c.default) == null ? void 0 : m.call(c));
|
|
4839
|
-
}),
|
|
4835
|
+
}), g = z(e.modelValue);
|
|
4840
4836
|
return se(() => e.modelValue, (m) => {
|
|
4841
|
-
|
|
4842
|
-
}), se(
|
|
4837
|
+
g.value = m;
|
|
4838
|
+
}), se(g, (m) => {
|
|
4843
4839
|
m && n("update:modelValue", m);
|
|
4844
|
-
}), t({ selected:
|
|
4840
|
+
}), t({ selected: g }), (m, v) => {
|
|
4845
4841
|
const h = la;
|
|
4846
4842
|
return d(), S(h, {
|
|
4847
4843
|
id: r(l),
|
|
@@ -4857,25 +4853,25 @@ const KA = [
|
|
|
4857
4853
|
inline: e.inline
|
|
4858
4854
|
}, {
|
|
4859
4855
|
default: K(() => [
|
|
4860
|
-
(d(!0), b($, null, ie(r(f), (
|
|
4861
|
-
var
|
|
4856
|
+
(d(!0), b($, null, ie(r(f), (N, C) => {
|
|
4857
|
+
var T, D;
|
|
4862
4858
|
return d(), S(Do, {
|
|
4863
|
-
key:
|
|
4864
|
-
modelValue: r(
|
|
4859
|
+
key: C,
|
|
4860
|
+
modelValue: r(g),
|
|
4865
4861
|
"onUpdate:modelValue": [
|
|
4866
|
-
v[0] || (v[0] = (
|
|
4867
|
-
v[1] || (v[1] = (
|
|
4862
|
+
v[0] || (v[0] = (w) => Lt(g) ? g.value = w : null),
|
|
4863
|
+
v[1] || (v[1] = (w) => o(w))
|
|
4868
4864
|
],
|
|
4869
|
-
value: (
|
|
4870
|
-
disabled: ((
|
|
4865
|
+
value: (T = N.props) == null ? void 0 : T.value,
|
|
4866
|
+
disabled: ((D = N.props) == null ? void 0 : D.disabled) ?? e.disabled,
|
|
4871
4867
|
small: e.small,
|
|
4872
4868
|
inline: e.inline,
|
|
4873
4869
|
name: e.name
|
|
4874
4870
|
}, {
|
|
4875
4871
|
default: K(() => {
|
|
4876
|
-
var
|
|
4872
|
+
var w;
|
|
4877
4873
|
return [
|
|
4878
|
-
(d(), S(he((
|
|
4874
|
+
(d(), S(he((w = N.children) == null ? void 0 : w.default)))
|
|
4879
4875
|
];
|
|
4880
4876
|
}),
|
|
4881
4877
|
_: 2
|
|
@@ -4955,51 +4951,51 @@ var It = function() {
|
|
|
4955
4951
|
return Sa.Date.now();
|
|
4956
4952
|
}, Ko = "Expected a function", Go = Math.max, Jo = Math.min;
|
|
4957
4953
|
function ka(e, t, a) {
|
|
4958
|
-
var n, l, i, o, s, c, A = 0, u = !1, f = !1,
|
|
4954
|
+
var n, l, i, o, s, c, A = 0, u = !1, f = !1, g = !0;
|
|
4959
4955
|
if (typeof e != "function")
|
|
4960
4956
|
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,
|
|
4957
|
+
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
4958
|
function m(Z) {
|
|
4963
4959
|
var F = n, te = l;
|
|
4964
4960
|
return n = l = void 0, A = Z, o = e.apply(te, F), o;
|
|
4965
4961
|
}
|
|
4966
4962
|
function v(Z) {
|
|
4967
|
-
return A = Z, s = setTimeout(
|
|
4963
|
+
return A = Z, s = setTimeout(C, t), u ? m(Z) : o;
|
|
4968
4964
|
}
|
|
4969
4965
|
function h(Z) {
|
|
4970
4966
|
var F = Z - c, te = Z - A, k = t - F;
|
|
4971
4967
|
return f ? Jo(k, i - te) : k;
|
|
4972
4968
|
}
|
|
4973
|
-
function
|
|
4969
|
+
function N(Z) {
|
|
4974
4970
|
var F = Z - c, te = Z - A;
|
|
4975
4971
|
return c === void 0 || F >= t || F < 0 || f && te >= i;
|
|
4976
4972
|
}
|
|
4977
|
-
function
|
|
4973
|
+
function C() {
|
|
4978
4974
|
var Z = It();
|
|
4979
|
-
if (
|
|
4980
|
-
return
|
|
4981
|
-
s = setTimeout(
|
|
4975
|
+
if (N(Z))
|
|
4976
|
+
return T(Z);
|
|
4977
|
+
s = setTimeout(C, h(Z));
|
|
4982
4978
|
}
|
|
4983
|
-
function
|
|
4984
|
-
return s = void 0,
|
|
4979
|
+
function T(Z) {
|
|
4980
|
+
return s = void 0, g && n ? m(Z) : (n = l = void 0, o);
|
|
4985
4981
|
}
|
|
4986
|
-
function
|
|
4982
|
+
function D() {
|
|
4987
4983
|
s !== void 0 && clearTimeout(s), A = 0, n = c = l = s = void 0;
|
|
4988
4984
|
}
|
|
4989
|
-
function
|
|
4990
|
-
return s === void 0 ? o :
|
|
4985
|
+
function w() {
|
|
4986
|
+
return s === void 0 ? o : T(It());
|
|
4991
4987
|
}
|
|
4992
4988
|
function B() {
|
|
4993
|
-
var Z = It(), F =
|
|
4989
|
+
var Z = It(), F = N(Z);
|
|
4994
4990
|
if (n = arguments, l = this, c = Z, F) {
|
|
4995
4991
|
if (s === void 0)
|
|
4996
4992
|
return v(c);
|
|
4997
4993
|
if (f)
|
|
4998
|
-
return clearTimeout(s), s = setTimeout(
|
|
4994
|
+
return clearTimeout(s), s = setTimeout(C, t), m(c);
|
|
4999
4995
|
}
|
|
5000
|
-
return s === void 0 && (s = setTimeout(
|
|
4996
|
+
return s === void 0 && (s = setTimeout(C, t)), o;
|
|
5001
4997
|
}
|
|
5002
|
-
return B.cancel =
|
|
4998
|
+
return B.cancel = D, B.flush = w, B;
|
|
5003
4999
|
}
|
|
5004
5000
|
const $o = {
|
|
5005
5001
|
key: 0,
|
|
@@ -5021,53 +5017,53 @@ const $o = {
|
|
|
5021
5017
|
props: c,
|
|
5022
5018
|
getOptionId: A,
|
|
5023
5019
|
getDisplayLabel: u
|
|
5024
|
-
} = xt(), f = z(),
|
|
5020
|
+
} = xt(), f = z(), g = z(), m = I(() => {
|
|
5025
5021
|
if (!c.options)
|
|
5026
5022
|
return [];
|
|
5027
5023
|
if (c.serverSideFiltering)
|
|
5028
5024
|
return c.maxResults ? c.options.slice(0, c.maxResults) : c.options;
|
|
5029
|
-
const
|
|
5030
|
-
if (!
|
|
5025
|
+
const D = o.value.toLowerCase().trim();
|
|
5026
|
+
if (!D) {
|
|
5031
5027
|
const B = c.options;
|
|
5032
5028
|
return c.maxResults ? B.slice(0, c.maxResults) : B;
|
|
5033
5029
|
}
|
|
5034
|
-
let
|
|
5035
|
-
return c.filterOptions ?
|
|
5036
|
-
}), v =
|
|
5037
|
-
function h(
|
|
5030
|
+
let w;
|
|
5031
|
+
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;
|
|
5032
|
+
}), v = I(() => c.loading ? pe.LOADING : s.value && c.options && c.options.length > 0 && m.value.length > 0 ? pe.HAS_OPTIONS : pe.NO_OPTIONS);
|
|
5033
|
+
function h(D) {
|
|
5038
5034
|
return i.value.some(
|
|
5039
|
-
(
|
|
5035
|
+
(w) => A(w) === A(D)
|
|
5040
5036
|
);
|
|
5041
5037
|
}
|
|
5042
|
-
function
|
|
5038
|
+
function N(D) {
|
|
5043
5039
|
if (!c.multiSelect) {
|
|
5044
|
-
i.value = [
|
|
5040
|
+
i.value = [D], s.value = !1, o.value = "";
|
|
5045
5041
|
return;
|
|
5046
5042
|
}
|
|
5047
|
-
const
|
|
5048
|
-
|
|
5043
|
+
const w = i.value, B = A(D);
|
|
5044
|
+
w.some(
|
|
5049
5045
|
(F) => A(F) === B
|
|
5050
|
-
) ? i.value =
|
|
5046
|
+
) ? i.value = w.filter(
|
|
5051
5047
|
(F) => A(F) !== B
|
|
5052
|
-
) : i.value = [...
|
|
5048
|
+
) : i.value = [...w, D];
|
|
5053
5049
|
}
|
|
5054
|
-
const { arrivedState:
|
|
5050
|
+
const { arrivedState: C } = Rl(g, {
|
|
5055
5051
|
throttle: 100
|
|
5056
|
-
}),
|
|
5052
|
+
}), T = ka(() => {
|
|
5057
5053
|
n("loadMore");
|
|
5058
5054
|
}, c.loadMoreThrottleDelay);
|
|
5059
|
-
return se(() =>
|
|
5060
|
-
c.enableLoadMore &&
|
|
5055
|
+
return se(() => C.bottom, (D) => {
|
|
5056
|
+
c.enableLoadMore && D && s.value && T();
|
|
5061
5057
|
}), ge(() => {
|
|
5062
|
-
|
|
5058
|
+
T.cancel();
|
|
5063
5059
|
}), t({
|
|
5064
5060
|
dropdownRef: f
|
|
5065
|
-
}), (
|
|
5061
|
+
}), (D, w) => r(s) ? (d(), b("div", {
|
|
5066
5062
|
key: 0,
|
|
5067
5063
|
ref_key: "dropdownRef",
|
|
5068
5064
|
ref: f,
|
|
5069
5065
|
class: Q(["av-autocomplete-dropdown", r(c).dropdownClass]),
|
|
5070
|
-
style:
|
|
5066
|
+
style: de({ width: r(c).dropdownWidth, maxHeight: r(c).maxDropdownHeight })
|
|
5071
5067
|
}, [
|
|
5072
5068
|
r(v) === r(pe).LOADING ? (d(), b("div", $o, [
|
|
5073
5069
|
V(ne, {
|
|
@@ -5075,13 +5071,13 @@ const $o = {
|
|
|
5075
5071
|
size: 1.5,
|
|
5076
5072
|
class: "av-autocomplete-dropdown__spinner"
|
|
5077
5073
|
}, null, 8, ["name"]),
|
|
5078
|
-
|
|
5074
|
+
w[0] || (w[0] = M("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
5079
5075
|
])) : r(v) === r(pe).NO_OPTIONS ? (d(), b("div", _o, [
|
|
5080
|
-
l.empty ? U(
|
|
5076
|
+
l.empty ? U(D.$slots, "empty", { key: 0 }, void 0, !0) : (d(), b("div", es, " No results found "))
|
|
5081
5077
|
])) : (d(), S(La, _({
|
|
5082
5078
|
key: 2,
|
|
5083
5079
|
ref_key: "listRef",
|
|
5084
|
-
ref:
|
|
5080
|
+
ref: g
|
|
5085
5081
|
}, r(c).listOptions, {
|
|
5086
5082
|
class: ["av-autocomplete-dropdown__options", r(c).scrollbarClass]
|
|
5087
5083
|
}), {
|
|
@@ -5089,11 +5085,11 @@ const $o = {
|
|
|
5089
5085
|
(d(!0), b($, null, ie(r(m), (B) => (d(), b($, {
|
|
5090
5086
|
key: r(A)(B)
|
|
5091
5087
|
}, [
|
|
5092
|
-
l.item ? U(
|
|
5088
|
+
l.item ? U(D.$slots, "item", {
|
|
5093
5089
|
key: 0,
|
|
5094
5090
|
option: B,
|
|
5095
5091
|
isSelected: h(B),
|
|
5096
|
-
toggle: () =>
|
|
5092
|
+
toggle: () => N(B)
|
|
5097
5093
|
}, void 0, !0) : (d(), S(wa, {
|
|
5098
5094
|
key: 1,
|
|
5099
5095
|
title: r(u)(B),
|
|
@@ -5101,13 +5097,13 @@ const $o = {
|
|
|
5101
5097
|
selected: h(B),
|
|
5102
5098
|
"hover-background-color": "var(--light-background-neutral)",
|
|
5103
5099
|
"color-on-hover": "var(--base)",
|
|
5104
|
-
onClick: () =>
|
|
5100
|
+
onClick: () => N(B)
|
|
5105
5101
|
}, null, 8, ["title", "icon", "selected", "onClick"]))
|
|
5106
5102
|
], 64))), 128))
|
|
5107
5103
|
]),
|
|
5108
5104
|
_: 3
|
|
5109
5105
|
}, 16, ["class"]))
|
|
5110
|
-
], 6)) :
|
|
5106
|
+
], 6)) : L("", !0);
|
|
5111
5107
|
}
|
|
5112
5108
|
}), as = /* @__PURE__ */ P(ts, [["__scopeId", "data-v-c0c74316"]]), ns = { class: "av-autocomplete-input" }, ls = {
|
|
5113
5109
|
key: 0,
|
|
@@ -5124,38 +5120,38 @@ const $o = {
|
|
|
5124
5120
|
inputId: A,
|
|
5125
5121
|
handleBlur: u,
|
|
5126
5122
|
getDisplayLabel: f
|
|
5127
|
-
} = xt(),
|
|
5128
|
-
var
|
|
5129
|
-
return ((
|
|
5130
|
-
}), h = ka((
|
|
5131
|
-
o.value =
|
|
5123
|
+
} = 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(() => {
|
|
5124
|
+
var D;
|
|
5125
|
+
return ((D = c.inputOptions) == null ? void 0 : D.placeholder) || "Search...";
|
|
5126
|
+
}), h = ka((D) => {
|
|
5127
|
+
o.value = D, n("search", D);
|
|
5132
5128
|
}, c.debounceDelay);
|
|
5133
|
-
function
|
|
5134
|
-
o.value = String(
|
|
5129
|
+
function N(D) {
|
|
5130
|
+
o.value = String(D || ""), h(o.value);
|
|
5135
5131
|
}
|
|
5136
|
-
function
|
|
5132
|
+
function C() {
|
|
5137
5133
|
s.value = !0;
|
|
5138
5134
|
}
|
|
5139
|
-
function
|
|
5135
|
+
function T() {
|
|
5140
5136
|
i.value = [], o.value = "", n("clear");
|
|
5141
5137
|
}
|
|
5142
5138
|
return ge(() => {
|
|
5143
5139
|
h.cancel();
|
|
5144
5140
|
}), t({
|
|
5145
|
-
inputRef:
|
|
5146
|
-
searchQuery:
|
|
5147
|
-
}), (
|
|
5141
|
+
inputRef: g,
|
|
5142
|
+
searchQuery: I(() => o.value)
|
|
5143
|
+
}), (D, w) => (d(), b("div", ns, [
|
|
5148
5144
|
V(qe, _({
|
|
5149
5145
|
id: r(A),
|
|
5150
5146
|
ref_key: "inputRef",
|
|
5151
|
-
ref:
|
|
5147
|
+
ref: g,
|
|
5152
5148
|
"model-value": r(m),
|
|
5153
5149
|
placeholder: r(v)
|
|
5154
5150
|
}, r(c).inputOptions, {
|
|
5155
|
-
"onUpdate:modelValue":
|
|
5156
|
-
onFocus:
|
|
5151
|
+
"onUpdate:modelValue": N,
|
|
5152
|
+
onFocus: C,
|
|
5157
5153
|
onBlur: r(u),
|
|
5158
|
-
onClick:
|
|
5154
|
+
onClick: C
|
|
5159
5155
|
}), Je({ _: 2 }, [
|
|
5160
5156
|
l.requiredTip ? {
|
|
5161
5157
|
name: "requiredTip",
|
|
@@ -5166,16 +5162,16 @@ const $o = {
|
|
|
5166
5162
|
} : void 0
|
|
5167
5163
|
]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
|
|
5168
5164
|
r(i).length > 0 ? (d(), b("div", ls, [
|
|
5169
|
-
V(
|
|
5165
|
+
V(oe, {
|
|
5170
5166
|
label: "Clear selected items",
|
|
5171
5167
|
icon: r(H).CLOSE_CIRCLE_OUTLINE,
|
|
5172
5168
|
"icon-only": "",
|
|
5173
5169
|
"icon-scale": 1.25,
|
|
5174
5170
|
variant: "DEFAULT",
|
|
5175
5171
|
theme: "SECONDARY",
|
|
5176
|
-
onClick:
|
|
5172
|
+
onClick: T
|
|
5177
5173
|
}, null, 8, ["icon"])
|
|
5178
|
-
])) :
|
|
5174
|
+
])) : L("", !0)
|
|
5179
5175
|
]));
|
|
5180
5176
|
}
|
|
5181
5177
|
}), rs = /* @__PURE__ */ P(is, [["__scopeId", "data-v-318a09bc"]]), os = {
|
|
@@ -5205,7 +5201,7 @@ const $o = {
|
|
|
5205
5201
|
key: 0,
|
|
5206
5202
|
option: A,
|
|
5207
5203
|
remove: () => o(A)
|
|
5208
|
-
}, void 0, !0) : (d(), S(
|
|
5204
|
+
}, void 0, !0) : (d(), S(oe, {
|
|
5209
5205
|
key: 1,
|
|
5210
5206
|
label: r(i)(A),
|
|
5211
5207
|
icon: r(H).CLOSE_CIRCLE_OUTLINE,
|
|
@@ -5216,7 +5212,7 @@ const $o = {
|
|
|
5216
5212
|
onClick: () => o(A)
|
|
5217
5213
|
}, null, 8, ["label", "icon", "onClick"]))
|
|
5218
5214
|
]))), 128))
|
|
5219
|
-
])) :
|
|
5215
|
+
])) : L("", !0);
|
|
5220
5216
|
}
|
|
5221
5217
|
}), cs = /* @__PURE__ */ P(ss, [["__scopeId", "data-v-c42c1ff5"]]), As = { class: "av-autocomplete" }, us = /* @__PURE__ */ p({
|
|
5222
5218
|
__name: "AvAutocomplete",
|
|
@@ -5250,21 +5246,21 @@ const $o = {
|
|
|
5250
5246
|
}),
|
|
5251
5247
|
emits: /* @__PURE__ */ ye(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
5252
5248
|
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 =
|
|
5249
|
+
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()}`);
|
|
5250
|
+
function g(T) {
|
|
5251
|
+
s.value = T, n("search", T);
|
|
5256
5252
|
}
|
|
5257
|
-
function m(
|
|
5258
|
-
var
|
|
5259
|
-
(
|
|
5253
|
+
function m(T) {
|
|
5254
|
+
var D, w;
|
|
5255
|
+
(w = (D = u.value) == null ? void 0 : D.dropdownRef) != null && w.contains(T.relatedTarget) || setTimeout(() => {
|
|
5260
5256
|
o.value = !1;
|
|
5261
5257
|
}, a.blurCloseDelay);
|
|
5262
5258
|
}
|
|
5263
|
-
function v(
|
|
5264
|
-
return a.getOptionKey ? a.getOptionKey(
|
|
5259
|
+
function v(T) {
|
|
5260
|
+
return a.getOptionKey ? a.getOptionKey(T) : T.value;
|
|
5265
5261
|
}
|
|
5266
|
-
function h(
|
|
5267
|
-
return a.getOptionLabel ? a.getOptionLabel(
|
|
5262
|
+
function h(T) {
|
|
5263
|
+
return a.getOptionLabel ? a.getOptionLabel(T) : T.label;
|
|
5268
5264
|
}
|
|
5269
5265
|
Nt(xa, {
|
|
5270
5266
|
selectedItems: i,
|
|
@@ -5276,17 +5272,17 @@ const $o = {
|
|
|
5276
5272
|
getOptionId: v,
|
|
5277
5273
|
getDisplayLabel: h
|
|
5278
5274
|
});
|
|
5279
|
-
function
|
|
5275
|
+
function C(T) {
|
|
5280
5276
|
var B, Z, F, te, k;
|
|
5281
|
-
const
|
|
5282
|
-
!((Z =
|
|
5277
|
+
const D = T.target, w = (B = A.value) == null ? void 0 : B.inputRef;
|
|
5278
|
+
!((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
5279
|
}
|
|
5284
5280
|
return ve(() => {
|
|
5285
|
-
document.addEventListener("click",
|
|
5281
|
+
document.addEventListener("click", C);
|
|
5286
5282
|
}), ge(() => {
|
|
5287
|
-
document.removeEventListener("click",
|
|
5288
|
-
}), (
|
|
5289
|
-
|
|
5283
|
+
document.removeEventListener("click", C);
|
|
5284
|
+
}), (T, D) => (d(), b("div", As, [
|
|
5285
|
+
M("div", {
|
|
5290
5286
|
ref_key: "wrapperRef",
|
|
5291
5287
|
ref: c,
|
|
5292
5288
|
class: "av-autocomplete__wrapper"
|
|
@@ -5294,8 +5290,8 @@ const $o = {
|
|
|
5294
5290
|
V(rs, {
|
|
5295
5291
|
ref_key: "inputRef",
|
|
5296
5292
|
ref: A,
|
|
5297
|
-
onSearch:
|
|
5298
|
-
onClear:
|
|
5293
|
+
onSearch: g,
|
|
5294
|
+
onClear: D[0] || (D[0] = (w) => n("clear"))
|
|
5299
5295
|
}, Je({ _: 2 }, [
|
|
5300
5296
|
l.requiredTip ? {
|
|
5301
5297
|
name: "requiredTip",
|
|
@@ -5308,13 +5304,13 @@ const $o = {
|
|
|
5308
5304
|
V(as, {
|
|
5309
5305
|
ref_key: "dropdownRef",
|
|
5310
5306
|
ref: u,
|
|
5311
|
-
onLoadMore:
|
|
5307
|
+
onLoadMore: D[1] || (D[1] = (w) => n("loadMore"))
|
|
5312
5308
|
}, Je({ _: 2 }, [
|
|
5313
5309
|
l.item ? {
|
|
5314
5310
|
name: "item",
|
|
5315
|
-
fn: K(({ option:
|
|
5316
|
-
U(
|
|
5317
|
-
option:
|
|
5311
|
+
fn: K(({ option: w, isSelected: B, toggle: Z }) => [
|
|
5312
|
+
U(T.$slots, "item", {
|
|
5313
|
+
option: w,
|
|
5318
5314
|
isSelected: B,
|
|
5319
5315
|
toggle: Z
|
|
5320
5316
|
}, void 0, !0)
|
|
@@ -5324,7 +5320,7 @@ const $o = {
|
|
|
5324
5320
|
l.empty ? {
|
|
5325
5321
|
name: "empty",
|
|
5326
5322
|
fn: K(() => [
|
|
5327
|
-
U(
|
|
5323
|
+
U(T.$slots, "empty", {}, void 0, !0)
|
|
5328
5324
|
]),
|
|
5329
5325
|
key: "1"
|
|
5330
5326
|
} : void 0
|
|
@@ -5333,9 +5329,9 @@ const $o = {
|
|
|
5333
5329
|
V(cs, null, Je({ _: 2 }, [
|
|
5334
5330
|
l.selectedItem ? {
|
|
5335
5331
|
name: "selectedItem",
|
|
5336
|
-
fn: K(({ option:
|
|
5337
|
-
U(
|
|
5338
|
-
option:
|
|
5332
|
+
fn: K(({ option: w, remove: B }) => [
|
|
5333
|
+
U(T.$slots, "selectedItem", {
|
|
5334
|
+
option: w,
|
|
5339
5335
|
remove: B
|
|
5340
5336
|
}, void 0, !0)
|
|
5341
5337
|
]),
|
|
@@ -5375,7 +5371,7 @@ const $o = {
|
|
|
5375
5371
|
collapse: A,
|
|
5376
5372
|
collapsing: u,
|
|
5377
5373
|
cssExpanded: f,
|
|
5378
|
-
onTransitionEnd:
|
|
5374
|
+
onTransitionEnd: g
|
|
5379
5375
|
} = e.useCollapsableReturn;
|
|
5380
5376
|
function m() {
|
|
5381
5377
|
return document.querySelectorAll(`[id^="${e.id}-"][id$="-checkbox"]`);
|
|
@@ -5384,26 +5380,26 @@ const $o = {
|
|
|
5384
5380
|
function h(R) {
|
|
5385
5381
|
R.key === "Escape" && a("close");
|
|
5386
5382
|
}
|
|
5387
|
-
function
|
|
5383
|
+
function N(R) {
|
|
5388
5384
|
var j, y;
|
|
5389
5385
|
const O = R.target;
|
|
5390
5386
|
!((j = l.value) != null && j.$el.contains(O)) && !((y = A.value) != null && y.contains(O)) && a("close");
|
|
5391
5387
|
}
|
|
5392
|
-
function
|
|
5388
|
+
function C() {
|
|
5393
5389
|
for (; c.length; ) {
|
|
5394
5390
|
const R = c.pop();
|
|
5395
5391
|
R && R();
|
|
5396
5392
|
}
|
|
5397
|
-
document.removeEventListener("click",
|
|
5393
|
+
document.removeEventListener("click", N), document.removeEventListener("keydown", h);
|
|
5398
5394
|
}
|
|
5399
|
-
const
|
|
5395
|
+
const T = I(
|
|
5400
5396
|
() => 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
|
|
5397
|
+
), D = I(() => e.selected.length < T.value.length ? !1 : T.value.every((R) => e.selected.includes(R)));
|
|
5398
|
+
function w() {
|
|
5403
5399
|
const R = new Set(o.value || []);
|
|
5404
|
-
|
|
5400
|
+
D.value ? T.value.forEach((O) => {
|
|
5405
5401
|
R.delete(O.value);
|
|
5406
|
-
}) :
|
|
5402
|
+
}) : T.value.forEach((O) => {
|
|
5407
5403
|
R.add(O.value);
|
|
5408
5404
|
}), o.value = Array.from(R);
|
|
5409
5405
|
}
|
|
@@ -5415,16 +5411,16 @@ const $o = {
|
|
|
5415
5411
|
R.preventDefault();
|
|
5416
5412
|
const O = m(), j = document.activeElement, y = Array.from(O).indexOf(j);
|
|
5417
5413
|
if (y !== -1) {
|
|
5418
|
-
const
|
|
5419
|
-
O[
|
|
5414
|
+
const E = (y + 1) % O.length;
|
|
5415
|
+
O[E].focus();
|
|
5420
5416
|
}
|
|
5421
5417
|
}
|
|
5422
5418
|
function F(R) {
|
|
5423
5419
|
R.preventDefault();
|
|
5424
5420
|
const O = m(), j = document.activeElement, y = Array.from(O).indexOf(j);
|
|
5425
5421
|
if (y !== -1) {
|
|
5426
|
-
const
|
|
5427
|
-
O[
|
|
5422
|
+
const E = (y - 1 + O.length) % O.length;
|
|
5423
|
+
O[E].focus();
|
|
5428
5424
|
}
|
|
5429
5425
|
}
|
|
5430
5426
|
function te(R) {
|
|
@@ -5437,41 +5433,41 @@ const $o = {
|
|
|
5437
5433
|
R.shiftKey && O === ((j = l.value) == null ? void 0 : j.$el) && a("close");
|
|
5438
5434
|
}
|
|
5439
5435
|
return ge(() => {
|
|
5440
|
-
|
|
5436
|
+
C();
|
|
5441
5437
|
}), (R, O) => {
|
|
5442
|
-
const j =
|
|
5438
|
+
const j = oe, y = qe;
|
|
5443
5439
|
return e.isVisible ? (d(), b("div", {
|
|
5444
5440
|
key: 0,
|
|
5445
5441
|
id: `${e.id}-collapse`,
|
|
5446
5442
|
ref_key: "collapse",
|
|
5447
5443
|
ref: A,
|
|
5448
|
-
style:
|
|
5444
|
+
style: de({
|
|
5449
5445
|
"--width-host": `${r(s)}px`
|
|
5450
5446
|
}),
|
|
5451
5447
|
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] = (
|
|
5448
|
+
onTransitionend: O[2] || (O[2] = (E) => r(g)(r(i)))
|
|
5453
5449
|
}, [
|
|
5454
|
-
|
|
5450
|
+
M("p", {
|
|
5455
5451
|
id: `${e.id}-text-hint`,
|
|
5456
5452
|
class: "av-sr-only"
|
|
5457
5453
|
}, W(e.hint), 9, fs),
|
|
5458
5454
|
e.selectAll ? (d(), b("ul", vs, [
|
|
5459
|
-
|
|
5455
|
+
M("li", null, [
|
|
5460
5456
|
V(j, {
|
|
5461
5457
|
name: "select-all",
|
|
5462
5458
|
size: "sm",
|
|
5463
|
-
disabled: r(
|
|
5464
|
-
label: e.selectAllLabel[r(
|
|
5465
|
-
icon: r(
|
|
5466
|
-
onClick:
|
|
5467
|
-
onKeydown: ue(
|
|
5459
|
+
disabled: r(T).length === 0,
|
|
5460
|
+
label: e.selectAllLabel[r(D) ? 1 : 0],
|
|
5461
|
+
icon: r(D) ? r(H).CLOSE_CIRCLE_OUTLINE : r(H).CHECK_CIRCLE_OUTLINE,
|
|
5462
|
+
onClick: w,
|
|
5463
|
+
onKeydown: Ae(ue(k, ["shift"]), ["tab"])
|
|
5468
5464
|
}, null, 8, ["disabled", "label", "icon", "onKeydown"])
|
|
5469
5465
|
])
|
|
5470
|
-
])) :
|
|
5466
|
+
])) : L("", !0),
|
|
5471
5467
|
e.search ? (d(), b("div", ms, [
|
|
5472
5468
|
V(y, {
|
|
5473
5469
|
modelValue: r(v),
|
|
5474
|
-
"onUpdate:modelValue": O[0] || (O[0] = (
|
|
5470
|
+
"onUpdate:modelValue": O[0] || (O[0] = (E) => Lt(v) ? v.value = E : null),
|
|
5475
5471
|
"aria-describedby": `${e.id}-text-hint`,
|
|
5476
5472
|
"aria-controls": `${e.id}-checkboxes`,
|
|
5477
5473
|
"prefix-icon": r(H).MAGNIFY,
|
|
@@ -5479,12 +5475,12 @@ const $o = {
|
|
|
5479
5475
|
placeholder: "Rechercher",
|
|
5480
5476
|
type: "search",
|
|
5481
5477
|
onKeydown: [
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5478
|
+
Ae(B, ["down"]),
|
|
5479
|
+
Ae(B, ["right"]),
|
|
5480
|
+
Ae(k, ["tab"])
|
|
5485
5481
|
]
|
|
5486
5482
|
}, null, 8, ["modelValue", "aria-describedby", "aria-controls", "prefix-icon"])
|
|
5487
|
-
])) :
|
|
5483
|
+
])) : L("", !0),
|
|
5488
5484
|
V(ci, {
|
|
5489
5485
|
id: `${e.id}-checkboxes`,
|
|
5490
5486
|
class: "av-multiselect__collapse__fieldset",
|
|
@@ -5492,28 +5488,28 @@ const $o = {
|
|
|
5492
5488
|
"legend-id": `${e.id}-checkboxes-legend`
|
|
5493
5489
|
}, {
|
|
5494
5490
|
default: K(() => [
|
|
5495
|
-
(d(!0), b($, null, ie(r(
|
|
5496
|
-
id: `${n(
|
|
5497
|
-
key: `${n(
|
|
5491
|
+
(d(!0), b($, null, ie(r(T), (E) => (d(), S(si, {
|
|
5492
|
+
id: `${n(E, e.id)}-checkbox`,
|
|
5493
|
+
key: `${n(E, e.id)}-fieldset`,
|
|
5498
5494
|
modelValue: o.value,
|
|
5499
5495
|
"onUpdate:modelValue": O[1] || (O[1] = (x) => o.value = x),
|
|
5500
|
-
value:
|
|
5501
|
-
label:
|
|
5502
|
-
icon:
|
|
5503
|
-
name: `${n(
|
|
5496
|
+
value: E.value,
|
|
5497
|
+
label: E.label,
|
|
5498
|
+
icon: E.icon,
|
|
5499
|
+
name: `${n(E, e.id)}-checkbox`,
|
|
5504
5500
|
onKeydown: [
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5501
|
+
Ae(Z, ["down"]),
|
|
5502
|
+
Ae(Z, ["right"]),
|
|
5503
|
+
Ae(F, ["up"]),
|
|
5504
|
+
Ae(F, ["left"]),
|
|
5505
|
+
Ae(te, ["tab"])
|
|
5510
5506
|
]
|
|
5511
5507
|
}, null, 8, ["id", "modelValue", "value", "label", "icon", "name"]))), 128))
|
|
5512
5508
|
]),
|
|
5513
5509
|
_: 1
|
|
5514
5510
|
}, 8, ["id", "legend", "legend-id"]),
|
|
5515
|
-
r(
|
|
5516
|
-
], 46, ds)) :
|
|
5511
|
+
r(T).length === 0 ? (d(), b("div", gs, W(e.noResultLabel), 1)) : L("", !0)
|
|
5512
|
+
], 46, ds)) : L("", !0);
|
|
5517
5513
|
};
|
|
5518
5514
|
}
|
|
5519
5515
|
}), hs = /* @__PURE__ */ P(bs, [["__scopeId", "data-v-2d33e581"]]), ys = ["title"], Cs = ["for"], Ms = { class: "b2-light" }, Es = {
|
|
@@ -5548,90 +5544,90 @@ const $o = {
|
|
|
5548
5544
|
},
|
|
5549
5545
|
emits: ["update:modelValue"],
|
|
5550
5546
|
setup(e, { emit: t }) {
|
|
5551
|
-
|
|
5547
|
+
re((O) => ({
|
|
5552
5548
|
v2d665760: O.width,
|
|
5553
5549
|
v65959acd: O.height
|
|
5554
5550
|
}));
|
|
5555
|
-
const a = t, n =
|
|
5551
|
+
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
5552
|
collapse: c,
|
|
5557
5553
|
collapsing: A,
|
|
5558
5554
|
cssExpanded: u,
|
|
5559
5555
|
doExpand: f,
|
|
5560
|
-
onTransitionEnd:
|
|
5556
|
+
onTransitionEnd: g
|
|
5561
5557
|
} = ot(), m = {
|
|
5562
5558
|
collapse: c,
|
|
5563
5559
|
collapsing: A,
|
|
5564
5560
|
cssExpanded: u,
|
|
5565
5561
|
doExpand: f,
|
|
5566
|
-
onTransitionEnd:
|
|
5567
|
-
}, v =
|
|
5562
|
+
onTransitionEnd: g
|
|
5563
|
+
}, v = I(() => e.modelValue.map((O) => O.value)), h = I(() => {
|
|
5568
5564
|
if (!e.modelValue || e.modelValue.length === 0)
|
|
5569
5565
|
return e.placeholder;
|
|
5570
5566
|
if (e.selectedText)
|
|
5571
5567
|
return e.selectedText;
|
|
5572
5568
|
const O = e.modelValue.length > 1 ? "s" : "";
|
|
5573
5569
|
return `${e.modelValue.length} option${O} sélectionnée${O}`;
|
|
5574
|
-
}),
|
|
5575
|
-
function
|
|
5576
|
-
O.key === "Escape" &&
|
|
5570
|
+
}), N = z(!1);
|
|
5571
|
+
function C(O) {
|
|
5572
|
+
O.key === "Escape" && w();
|
|
5577
5573
|
}
|
|
5578
|
-
function
|
|
5579
|
-
var y,
|
|
5574
|
+
function T(O) {
|
|
5575
|
+
var y, E;
|
|
5580
5576
|
const j = O.target;
|
|
5581
|
-
!((y = l.value) != null && y.$el.contains(j)) && !((
|
|
5577
|
+
!((y = l.value) != null && y.$el.contains(j)) && !((E = c.value) != null && E.contains(j)) && w();
|
|
5582
5578
|
}
|
|
5583
|
-
function
|
|
5584
|
-
i.value = !0,
|
|
5579
|
+
function D() {
|
|
5580
|
+
i.value = !0, N.value = !0, document.addEventListener("click", T), document.addEventListener("keydown", C), setTimeout(() => {
|
|
5585
5581
|
f(!0);
|
|
5586
5582
|
}, 100);
|
|
5587
5583
|
}
|
|
5588
|
-
function
|
|
5584
|
+
function w() {
|
|
5589
5585
|
i.value = !1, f(!1), setTimeout(() => {
|
|
5590
|
-
|
|
5586
|
+
N.value = !1;
|
|
5591
5587
|
}, 300), Z();
|
|
5592
5588
|
}
|
|
5593
5589
|
async function B() {
|
|
5594
|
-
|
|
5590
|
+
N.value ? w() : D();
|
|
5595
5591
|
}
|
|
5596
5592
|
function Z() {
|
|
5597
|
-
document.removeEventListener("click",
|
|
5593
|
+
document.removeEventListener("click", T), document.removeEventListener("keydown", C);
|
|
5598
5594
|
}
|
|
5599
5595
|
function F(O) {
|
|
5600
5596
|
var y;
|
|
5601
5597
|
const j = document.activeElement;
|
|
5602
|
-
O.shiftKey && j === ((y = l.value) == null ? void 0 : y.$el) &&
|
|
5598
|
+
O.shiftKey && j === ((y = l.value) == null ? void 0 : y.$el) && w();
|
|
5603
5599
|
}
|
|
5604
5600
|
function te(O) {
|
|
5605
5601
|
var y;
|
|
5606
5602
|
const j = ((y = e.options) == null ? void 0 : y.filter(
|
|
5607
|
-
(
|
|
5603
|
+
(E) => O.includes(E.value)
|
|
5608
5604
|
)) ?? [];
|
|
5609
5605
|
a("update:modelValue", j);
|
|
5610
5606
|
}
|
|
5611
5607
|
ge(() => {
|
|
5612
5608
|
Z();
|
|
5613
5609
|
});
|
|
5614
|
-
const k =
|
|
5610
|
+
const k = I(() => [
|
|
5615
5611
|
"av-label",
|
|
5616
5612
|
{ invisible: !e.labelVisible },
|
|
5617
5613
|
e.labelClass
|
|
5618
|
-
]), R =
|
|
5614
|
+
]), R = I(() => ({
|
|
5619
5615
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5620
5616
|
}));
|
|
5621
5617
|
return (O, j) => {
|
|
5622
|
-
const y =
|
|
5618
|
+
const y = oe, E = Qe;
|
|
5623
5619
|
return d(), b($, null, [
|
|
5624
|
-
|
|
5620
|
+
M("div", {
|
|
5625
5621
|
class: Q(["av-select-group", { [`av-select-group--${r(s)}`]: r(o) }]),
|
|
5626
5622
|
title: r(h)
|
|
5627
5623
|
}, [
|
|
5628
|
-
|
|
5624
|
+
M("label", {
|
|
5629
5625
|
class: Q(r(k)),
|
|
5630
5626
|
for: r(n)
|
|
5631
5627
|
}, [
|
|
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)) :
|
|
5628
|
+
M("span", Ms, W(e.label), 1),
|
|
5629
|
+
"required" in O.$attrs && O.$attrs.required !== !1 ? (d(), b("span", Es)) : L("", !0),
|
|
5630
|
+
e.hint ? (d(), b("span", Ns, W(e.hint), 1)) : L("", !0)
|
|
5635
5631
|
], 10, Cs),
|
|
5636
5632
|
V(y, _({
|
|
5637
5633
|
id: r(n),
|
|
@@ -5653,25 +5649,25 @@ const $o = {
|
|
|
5653
5649
|
small: e.dense,
|
|
5654
5650
|
style: r(R),
|
|
5655
5651
|
onClick: B,
|
|
5656
|
-
onKeydown: ue(
|
|
5652
|
+
onKeydown: Ae(ue(F, ["shift"]), ["tab"])
|
|
5657
5653
|
}), null, 16, ["id", "label", "disabled", "aria-expanded", "aria-controls", "class", "small", "style", "onKeydown"]),
|
|
5658
5654
|
V(hs, {
|
|
5659
5655
|
id: r(n),
|
|
5660
5656
|
legend: e.legend,
|
|
5661
5657
|
hint: e.collapseHint,
|
|
5662
5658
|
"model-value": r(v),
|
|
5663
|
-
"is-visible": r(
|
|
5659
|
+
"is-visible": r(N),
|
|
5664
5660
|
"select-all": e.selectAll,
|
|
5665
5661
|
"select-all-label": e.selectAllLabel,
|
|
5666
5662
|
search: e.search,
|
|
5667
5663
|
options: e.options,
|
|
5668
5664
|
selected: e.modelValue,
|
|
5669
5665
|
"use-collapsable-return": m,
|
|
5670
|
-
onClose:
|
|
5666
|
+
onClose: w,
|
|
5671
5667
|
"onUpdate:modelValue": te
|
|
5672
5668
|
}, null, 8, ["id", "legend", "hint", "model-value", "is-visible", "select-all", "select-all-label", "search", "options", "selected"])
|
|
5673
5669
|
], 10, ys),
|
|
5674
|
-
V(
|
|
5670
|
+
V(E, {
|
|
5675
5671
|
"message-id": `multiselect-${r(s)}-desc-${r(s)}`,
|
|
5676
5672
|
type: r(s),
|
|
5677
5673
|
message: r(o)
|
|
@@ -5703,32 +5699,32 @@ const $o = {
|
|
|
5703
5699
|
},
|
|
5704
5700
|
emits: ["update:modelValue"],
|
|
5705
5701
|
setup(e, { emit: t }) {
|
|
5706
|
-
const a = t, n =
|
|
5702
|
+
const a = t, n = I(() => e.id ?? `select-${crypto.randomUUID()}`), l = I(() => {
|
|
5707
5703
|
var A;
|
|
5708
5704
|
if (!e.modelValue)
|
|
5709
5705
|
return e.placeholder;
|
|
5710
5706
|
const c = (A = e.options) == null ? void 0 : A.find((u) => String(u.value) === String(e.modelValue));
|
|
5711
5707
|
return c ? c.text : e.placeholder;
|
|
5712
|
-
}), i =
|
|
5708
|
+
}), i = I(() => ({
|
|
5713
5709
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_DOWN})`
|
|
5714
|
-
})), o =
|
|
5710
|
+
})), o = I(() => e.errorMessage || e.successMessage), s = I(() => e.errorMessage ? "error" : "success");
|
|
5715
5711
|
return (c, A) => {
|
|
5716
5712
|
const u = Qe;
|
|
5717
5713
|
return d(), b("div", {
|
|
5718
5714
|
class: Q({ "av-select--dense": e.dense })
|
|
5719
5715
|
}, [
|
|
5720
|
-
|
|
5716
|
+
M("div", {
|
|
5721
5717
|
class: Q(["av-select-group", { [`av-select-group--${r(s)}`]: r(o) }])
|
|
5722
5718
|
}, [
|
|
5723
|
-
|
|
5719
|
+
M("label", {
|
|
5724
5720
|
class: "av-label b2-light",
|
|
5725
5721
|
for: r(n)
|
|
5726
5722
|
}, [
|
|
5727
|
-
|
|
5728
|
-
e.required ? (d(), b("span", Ls, " *")) :
|
|
5729
|
-
e.hint ? (d(), b("span", ws, W(e.hint), 1)) :
|
|
5723
|
+
M("span", null, W(e.label), 1),
|
|
5724
|
+
e.required ? (d(), b("span", Ls, " *")) : L("", !0),
|
|
5725
|
+
e.hint ? (d(), b("span", ws, W(e.hint), 1)) : L("", !0)
|
|
5730
5726
|
], 8, Ds),
|
|
5731
|
-
|
|
5727
|
+
M("select", _({
|
|
5732
5728
|
id: r(n),
|
|
5733
5729
|
class: [{
|
|
5734
5730
|
[`av-select--${r(s)}`]: r(o),
|
|
@@ -5744,18 +5740,18 @@ const $o = {
|
|
|
5744
5740
|
}, c.$attrs, {
|
|
5745
5741
|
style: r(i),
|
|
5746
5742
|
onChange: A[0] || (A[0] = (f) => {
|
|
5747
|
-
var
|
|
5748
|
-
return a("update:modelValue", (
|
|
5743
|
+
var g;
|
|
5744
|
+
return a("update:modelValue", (g = f.target) == null ? void 0 : g.value);
|
|
5749
5745
|
})
|
|
5750
5746
|
}), [
|
|
5751
|
-
|
|
5747
|
+
M("option", {
|
|
5752
5748
|
selected: !e.options.some((f) => f.value === e.modelValue),
|
|
5753
5749
|
disabled: "",
|
|
5754
5750
|
value: "",
|
|
5755
5751
|
hidden: ""
|
|
5756
5752
|
}, W(e.placeholder), 9, xs),
|
|
5757
|
-
(d(!0), b($, null, ie(e.options, (f,
|
|
5758
|
-
key:
|
|
5753
|
+
(d(!0), b($, null, ie(e.options, (f, g) => (d(), b("option", {
|
|
5754
|
+
key: g,
|
|
5759
5755
|
selected: e.modelValue === f.value,
|
|
5760
5756
|
value: f.value,
|
|
5761
5757
|
disabled: f.disabled,
|
|
@@ -5814,7 +5810,7 @@ const $o = {
|
|
|
5814
5810
|
},
|
|
5815
5811
|
emits: ["click", "next", "previous", "first", "last"],
|
|
5816
5812
|
setup(e, { emit: t }) {
|
|
5817
|
-
const a = t, n = z(null), l = qa("button"), i =
|
|
5813
|
+
const a = t, n = z(null), l = qa("button"), i = I(() => e.isSelected ? "s2-bold" : "s2-regular"), o = {
|
|
5818
5814
|
ArrowRight: "next",
|
|
5819
5815
|
ArrowLeft: "previous",
|
|
5820
5816
|
Home: "first",
|
|
@@ -5847,7 +5843,7 @@ const $o = {
|
|
|
5847
5843
|
class: Q(["av-tab-item", { "av-tab-item--compact": e.compact }]),
|
|
5848
5844
|
role: "presentation"
|
|
5849
5845
|
}, [
|
|
5850
|
-
|
|
5846
|
+
M("button", _(c.$attrs, {
|
|
5851
5847
|
id: e.tabId,
|
|
5852
5848
|
ref_key: "button",
|
|
5853
5849
|
ref: n,
|
|
@@ -5858,15 +5854,15 @@ const $o = {
|
|
|
5858
5854
|
type: "button",
|
|
5859
5855
|
"aria-selected": e.isSelected,
|
|
5860
5856
|
"aria-controls": e.panelId,
|
|
5861
|
-
onClick: A[0] || (A[0] =
|
|
5857
|
+
onClick: A[0] || (A[0] = ue((f) => c.$emit("click", e.tabId), ["prevent"])),
|
|
5862
5858
|
onKeydown: A[1] || (A[1] = (f) => s(f))
|
|
5863
5859
|
}), [
|
|
5864
5860
|
e.icon ? (d(), S(u, {
|
|
5865
5861
|
key: 0,
|
|
5866
5862
|
name: e.icon,
|
|
5867
5863
|
size: 2
|
|
5868
|
-
}, null, 8, ["name"])) :
|
|
5869
|
-
|
|
5864
|
+
}, null, 8, ["name"])) : L("", !0),
|
|
5865
|
+
M("span", {
|
|
5870
5866
|
class: Q(r(i))
|
|
5871
5867
|
}, W(e.title), 3)
|
|
5872
5868
|
], 16, zs)
|
|
@@ -5898,31 +5894,31 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
5898
5894
|
}),
|
|
5899
5895
|
emits: ["update:modelValue"],
|
|
5900
5896
|
setup(e) {
|
|
5901
|
-
const t = me(), a =
|
|
5902
|
-
var
|
|
5903
|
-
return ((
|
|
5897
|
+
const t = me(), a = I(() => {
|
|
5898
|
+
var N;
|
|
5899
|
+
return ((N = t.default) == null ? void 0 : N.call(t)) || [];
|
|
5904
5900
|
}), n = we(e, "modelValue"), l = z(null), i = z(null), o = bt({}), { tabsStyle: s, updateTabsStyle: c } = Ws(
|
|
5905
5901
|
i,
|
|
5906
|
-
|
|
5907
|
-
var
|
|
5908
|
-
return Array.from(((
|
|
5902
|
+
I(() => {
|
|
5903
|
+
var N;
|
|
5904
|
+
return Array.from(((N = l.value) == null ? void 0 : N.querySelectorAll(".av-tab-content")) || []);
|
|
5909
5905
|
}),
|
|
5910
5906
|
n
|
|
5911
5907
|
);
|
|
5912
|
-
function A(
|
|
5913
|
-
if (o[
|
|
5914
|
-
return o[
|
|
5915
|
-
const
|
|
5916
|
-
return o[
|
|
5908
|
+
function A(N) {
|
|
5909
|
+
if (o[N])
|
|
5910
|
+
return o[N];
|
|
5911
|
+
const C = `tab-${crypto.randomUUID()}`;
|
|
5912
|
+
return o[N] = C, C;
|
|
5917
5913
|
}
|
|
5918
|
-
function u(
|
|
5919
|
-
const
|
|
5920
|
-
n.value = (n.value +
|
|
5914
|
+
function u(N) {
|
|
5915
|
+
const C = a.value.length;
|
|
5916
|
+
n.value = (n.value + N + C) % C;
|
|
5921
5917
|
}
|
|
5922
5918
|
function f() {
|
|
5923
5919
|
u(-1);
|
|
5924
5920
|
}
|
|
5925
|
-
function
|
|
5921
|
+
function g() {
|
|
5926
5922
|
u(1);
|
|
5927
5923
|
}
|
|
5928
5924
|
function m() {
|
|
@@ -5933,28 +5929,28 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
5933
5929
|
}
|
|
5934
5930
|
const h = z(null);
|
|
5935
5931
|
return ve(() => {
|
|
5936
|
-
var
|
|
5932
|
+
var N;
|
|
5937
5933
|
window.ResizeObserver && (h.value = new window.ResizeObserver(() => {
|
|
5938
5934
|
c();
|
|
5939
|
-
})), (
|
|
5940
|
-
var
|
|
5941
|
-
|
|
5935
|
+
})), (N = l.value) == null || N.querySelectorAll(".av-tab-content").forEach((C) => {
|
|
5936
|
+
var T;
|
|
5937
|
+
C && ((T = h.value) == null || T.observe(C));
|
|
5942
5938
|
});
|
|
5943
5939
|
}), ge(() => {
|
|
5944
|
-
var
|
|
5945
|
-
(
|
|
5946
|
-
var
|
|
5947
|
-
|
|
5948
|
-
}), (
|
|
5949
|
-
}), (
|
|
5940
|
+
var N, C;
|
|
5941
|
+
(N = l.value) == null || N.querySelectorAll(".av-tab-content").forEach((T) => {
|
|
5942
|
+
var D;
|
|
5943
|
+
T && ((D = h.value) == null || D.unobserve(T));
|
|
5944
|
+
}), (C = h.value) == null || C.disconnect();
|
|
5945
|
+
}), (N, C) => (d(), b("div", {
|
|
5950
5946
|
ref_key: "$el",
|
|
5951
5947
|
ref: l,
|
|
5952
5948
|
class: Q(["av-tabs", {
|
|
5953
5949
|
"av-tabs--compact": e.compact
|
|
5954
5950
|
}]),
|
|
5955
|
-
style:
|
|
5951
|
+
style: de(r(s))
|
|
5956
5952
|
}, [
|
|
5957
|
-
|
|
5953
|
+
M("ul", {
|
|
5958
5954
|
ref_key: "tablist",
|
|
5959
5955
|
ref: i,
|
|
5960
5956
|
class: Q(["av-tabs__list av-row av-px-xs av-py-none av-align-center av-gap-sm", {
|
|
@@ -5964,32 +5960,32 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
5964
5960
|
role: "tablist",
|
|
5965
5961
|
"aria-label": e.ariaLabel ?? "Liste d’onglets"
|
|
5966
5962
|
}, [
|
|
5967
|
-
(d(!0), b($, null, ie(r(a), (
|
|
5968
|
-
var
|
|
5963
|
+
(d(!0), b($, null, ie(r(a), (T, D) => {
|
|
5964
|
+
var w, B;
|
|
5969
5965
|
return d(), S(Ps, {
|
|
5970
|
-
key:
|
|
5971
|
-
"tab-id": A(
|
|
5972
|
-
"panel-id": `${A(
|
|
5973
|
-
title: (
|
|
5974
|
-
icon: (B =
|
|
5966
|
+
key: D,
|
|
5967
|
+
"tab-id": A(D),
|
|
5968
|
+
"panel-id": `${A(D)}-panel`,
|
|
5969
|
+
title: (w = T.props) == null ? void 0 : w.title,
|
|
5970
|
+
icon: (B = T.props) == null ? void 0 : B.icon,
|
|
5975
5971
|
compact: e.compact,
|
|
5976
|
-
"is-selected": n.value ===
|
|
5977
|
-
onClick: (Z) => n.value =
|
|
5978
|
-
onNext:
|
|
5972
|
+
"is-selected": n.value === D,
|
|
5973
|
+
onClick: (Z) => n.value = D,
|
|
5974
|
+
onNext: g,
|
|
5979
5975
|
onPrevious: f,
|
|
5980
5976
|
onFirst: m,
|
|
5981
5977
|
onLast: v
|
|
5982
5978
|
}, null, 8, ["tab-id", "panel-id", "title", "icon", "compact", "is-selected", "onClick"]);
|
|
5983
5979
|
}), 128))
|
|
5984
5980
|
], 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 ===
|
|
5981
|
+
(d(!0), b($, null, ie(r(a), (T, D) => (d(), S(js, {
|
|
5982
|
+
key: D,
|
|
5983
|
+
"panel-id": `${A(D)}-panel`,
|
|
5984
|
+
"tab-id": A(D),
|
|
5985
|
+
"is-visible": n.value === D
|
|
5990
5986
|
}, {
|
|
5991
5987
|
default: K(() => [
|
|
5992
|
-
n.value ===
|
|
5988
|
+
n.value === D ? (d(), S(he(T.children.default), { key: 0 })) : L("", !0)
|
|
5993
5989
|
]),
|
|
5994
5990
|
_: 2
|
|
5995
5991
|
}, 1032, ["panel-id", "tab-id", "is-visible"]))), 128))
|
|
@@ -6017,22 +6013,22 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6017
6013
|
},
|
|
6018
6014
|
emits: ["update:modelValue"],
|
|
6019
6015
|
setup(e) {
|
|
6020
|
-
const t =
|
|
6016
|
+
const t = I(() => e.id ?? `toggle-${crypto.randomUUID()}`), a = I(() => `${t.value}-label`);
|
|
6021
6017
|
return (n, l) => (d(), b($, null, [
|
|
6022
|
-
|
|
6018
|
+
M("label", {
|
|
6023
6019
|
id: r(a),
|
|
6024
6020
|
for: r(t),
|
|
6025
6021
|
class: Q(["av-toggle av-row av-justify-center av-gap-xs av-align-start", {
|
|
6026
6022
|
"av-toggle--disabled": e.disabled
|
|
6027
6023
|
}])
|
|
6028
6024
|
}, [
|
|
6029
|
-
|
|
6025
|
+
M("div", {
|
|
6030
6026
|
class: Q(["toggle av-row av-justify-center av-align-center av-gap-xxs", {
|
|
6031
6027
|
"toggle--disabled": e.disabled
|
|
6032
6028
|
}])
|
|
6033
6029
|
}, [
|
|
6034
6030
|
(d(), b("svg", Ys, [
|
|
6035
|
-
|
|
6031
|
+
M("image", {
|
|
6036
6032
|
href: e.modelValue ? r(Hs) : r(Rs),
|
|
6037
6033
|
width: "34",
|
|
6038
6034
|
height: "14"
|
|
@@ -6040,9 +6036,9 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6040
6036
|
])),
|
|
6041
6037
|
e.modelValue ? (d(), b("span", qs, W(e.activeText), 1)) : (d(), b("span", Fs, W(e.inactiveText), 1))
|
|
6042
6038
|
], 2),
|
|
6043
|
-
|
|
6039
|
+
M("span", Ks, W(e.description), 1)
|
|
6044
6040
|
], 10, Zs),
|
|
6045
|
-
|
|
6041
|
+
M("input", {
|
|
6046
6042
|
id: r(t),
|
|
6047
6043
|
style: { display: "none" },
|
|
6048
6044
|
disabled: e.disabled,
|
|
@@ -6074,7 +6070,7 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6074
6070
|
setup(e, { emit: t }) {
|
|
6075
6071
|
const a = t;
|
|
6076
6072
|
return (n, l) => (d(), b("div", $s, [
|
|
6077
|
-
e.cancelLabel ? (d(), S(r(
|
|
6073
|
+
e.cancelLabel ? (d(), S(r(oe), {
|
|
6078
6074
|
key: 0,
|
|
6079
6075
|
icon: e.cancelIcon,
|
|
6080
6076
|
label: e.cancelLabel,
|
|
@@ -6085,8 +6081,8 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6085
6081
|
"icon-only": e.iconOnly,
|
|
6086
6082
|
small: "",
|
|
6087
6083
|
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(
|
|
6084
|
+
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "icon-only"])) : L("", !0),
|
|
6085
|
+
e.confirmLabel ? (d(), S(r(oe), {
|
|
6090
6086
|
key: 1,
|
|
6091
6087
|
icon: e.confirmIcon,
|
|
6092
6088
|
label: e.confirmLabel,
|
|
@@ -6099,7 +6095,7 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6099
6095
|
small: "",
|
|
6100
6096
|
"icon-only": e.iconOnly,
|
|
6101
6097
|
onClick: l[1] || (l[1] = (i) => a("confirm"))
|
|
6102
|
-
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "type", "form", "icon-only"])) :
|
|
6098
|
+
}, null, 8, ["icon", "label", "title", "is-loading", "disabled", "type", "form", "icon-only"])) : L("", !0)
|
|
6103
6099
|
]));
|
|
6104
6100
|
}
|
|
6105
6101
|
}), ja = Symbol("header"), _s = ["aria-label"], ec = { class: "av-btns-group" }, Jt = /* @__PURE__ */ p({
|
|
@@ -6115,9 +6111,9 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6115
6111
|
role: "navigation",
|
|
6116
6112
|
"aria-label": e.navAriaLabel
|
|
6117
6113
|
}, [
|
|
6118
|
-
|
|
6114
|
+
M("ul", ec, [
|
|
6119
6115
|
(d(!0), b($, null, ie(e.links, (i, o) => (d(), b("li", { key: o }, [
|
|
6120
|
-
V(
|
|
6116
|
+
V(oe, {
|
|
6121
6117
|
icon: i.icon,
|
|
6122
6118
|
label: i.label ?? "",
|
|
6123
6119
|
onClick: (s) => {
|
|
@@ -6139,24 +6135,24 @@ const Us = ["aria-label"], Vs = /* @__PURE__ */ p({
|
|
|
6139
6135
|
};
|
|
6140
6136
|
function nc(e, t) {
|
|
6141
6137
|
return d(), b("svg", ac, [...t[0] || (t[0] = [
|
|
6142
|
-
|
|
6138
|
+
M("rect", {
|
|
6143
6139
|
width: "213.732",
|
|
6144
6140
|
height: "96.9",
|
|
6145
6141
|
fill: "url(#pattern0_40000620_15397)"
|
|
6146
6142
|
}, null, -1),
|
|
6147
|
-
|
|
6148
|
-
|
|
6143
|
+
M("defs", null, [
|
|
6144
|
+
M("pattern", {
|
|
6149
6145
|
id: "pattern0_40000620_15397",
|
|
6150
6146
|
patternContentUnits: "objectBoundingBox",
|
|
6151
6147
|
width: "1",
|
|
6152
6148
|
height: "1"
|
|
6153
6149
|
}, [
|
|
6154
|
-
|
|
6150
|
+
M("use", {
|
|
6155
6151
|
"xlink:href": "#image0_40000620_15397",
|
|
6156
6152
|
transform: "matrix(0.00087108 0 0 0.00192134 0 -0.0139577)"
|
|
6157
6153
|
})
|
|
6158
6154
|
]),
|
|
6159
|
-
|
|
6155
|
+
M("image", {
|
|
6160
6156
|
id: "image0_40000620_15397",
|
|
6161
6157
|
width: "1148",
|
|
6162
6158
|
height: "535",
|
|
@@ -6209,11 +6205,11 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6209
6205
|
setup(e, { emit: t }) {
|
|
6210
6206
|
const a = t, n = me(), { isBelowLg: l } = st(), i = ea(() => e.languageSelector), o = z(!1), s = z(!1), c = z(!1);
|
|
6211
6207
|
function A() {
|
|
6212
|
-
var
|
|
6213
|
-
c.value = !1, o.value = !1, s.value = !1, (
|
|
6208
|
+
var N;
|
|
6209
|
+
c.value = !1, o.value = !1, s.value = !1, (N = document.getElementById("button-menu")) == null || N.focus();
|
|
6214
6210
|
}
|
|
6215
|
-
function u(
|
|
6216
|
-
|
|
6211
|
+
function u(N) {
|
|
6212
|
+
N.key === "Escape" && A();
|
|
6217
6213
|
}
|
|
6218
6214
|
ve(() => {
|
|
6219
6215
|
document.addEventListener("keydown", u);
|
|
@@ -6222,25 +6218,25 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6222
6218
|
});
|
|
6223
6219
|
function f() {
|
|
6224
6220
|
c.value = !0, o.value = !0, s.value = !1, setTimeout(() => {
|
|
6225
|
-
var
|
|
6226
|
-
(
|
|
6221
|
+
var N;
|
|
6222
|
+
(N = document.getElementById("close-button")) == null || N.focus();
|
|
6227
6223
|
});
|
|
6228
6224
|
}
|
|
6229
|
-
function
|
|
6225
|
+
function g() {
|
|
6230
6226
|
c.value = !0, o.value = !1, s.value = !0;
|
|
6231
6227
|
}
|
|
6232
|
-
const m = A, v =
|
|
6233
|
-
return Nt(ja, () => A), (
|
|
6228
|
+
const m = A, v = I(() => [e.homeLabel, e.serviceTitle].filter((N) => N).join(" - ")), h = I(() => !!n.mainnav);
|
|
6229
|
+
return Nt(ja, () => A), (N, C) => {
|
|
6234
6230
|
var Z, F, te;
|
|
6235
|
-
const
|
|
6231
|
+
const T = wt("RouterLink"), D = oe, w = Qa, B = Il;
|
|
6236
6232
|
return d(), b("header", ic, [
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
V(
|
|
6233
|
+
M("div", rc, [
|
|
6234
|
+
M("div", oc, [
|
|
6235
|
+
M("div", sc, [
|
|
6236
|
+
M("div", cc, [
|
|
6237
|
+
M("div", Ac, [
|
|
6238
|
+
M("div", uc, [
|
|
6239
|
+
V(T, {
|
|
6244
6240
|
to: e.homeTo,
|
|
6245
6241
|
title: r(v)
|
|
6246
6242
|
}, {
|
|
@@ -6251,7 +6247,7 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6251
6247
|
}, 8, ["to", "title"])
|
|
6252
6248
|
]),
|
|
6253
6249
|
e.showSearch || r(h) || (Z = e.quickLinks) != null && Z.length ? (d(), b("div", dc, [
|
|
6254
|
-
e.showSearch ? (d(), S(
|
|
6250
|
+
e.showSearch ? (d(), S(D, {
|
|
6255
6251
|
key: 0,
|
|
6256
6252
|
class: "search-button",
|
|
6257
6253
|
label: e.showSearchLabel,
|
|
@@ -6260,9 +6256,9 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6260
6256
|
title: e.showSearchLabel,
|
|
6261
6257
|
icon: r(H).MAGNIFY,
|
|
6262
6258
|
"icon-only": "",
|
|
6263
|
-
onClick:
|
|
6264
|
-
}, null, 8, ["label", "aria-label", "title", "icon"])) :
|
|
6265
|
-
r(h) || (F = e.quickLinks) != null && F.length ? (d(), S(
|
|
6259
|
+
onClick: C[0] || (C[0] = ue((k) => g(), ["prevent", "stop"]))
|
|
6260
|
+
}, null, 8, ["label", "aria-label", "title", "icon"])) : L("", !0),
|
|
6261
|
+
r(h) || (F = e.quickLinks) != null && F.length ? (d(), S(D, {
|
|
6266
6262
|
key: 1,
|
|
6267
6263
|
id: "button-menu",
|
|
6268
6264
|
variant: "OUTLINED",
|
|
@@ -6274,27 +6270,27 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6274
6270
|
title: e.menuLabel,
|
|
6275
6271
|
"data-testid": "open-menu-btn",
|
|
6276
6272
|
"icon-only": "",
|
|
6277
|
-
onClick:
|
|
6278
|
-
}, null, 8, ["icon", "label", "aria-label", "title"])) :
|
|
6279
|
-
])) :
|
|
6273
|
+
onClick: C[1] || (C[1] = ue((k) => f(), ["prevent", "stop"]))
|
|
6274
|
+
}, null, 8, ["icon", "label", "aria-label", "title"])) : L("", !0)
|
|
6275
|
+
])) : L("", !0)
|
|
6280
6276
|
]),
|
|
6281
6277
|
e.serviceTitle ? (d(), b("div", fc, [
|
|
6282
|
-
|
|
6283
|
-
U(
|
|
6284
|
-
])) :
|
|
6278
|
+
M("span", vc, W(e.serviceTitle), 1),
|
|
6279
|
+
U(N.$slots, "serviceDescription", {}, void 0, !0)
|
|
6280
|
+
])) : L("", !0)
|
|
6285
6281
|
]),
|
|
6286
|
-
|
|
6287
|
-
|
|
6288
|
-
U(
|
|
6282
|
+
M("div", mc, [
|
|
6283
|
+
M("div", gc, [
|
|
6284
|
+
U(N.$slots, "before-quick-links", {}, void 0, !0),
|
|
6289
6285
|
!r(o) && ((te = e.quickLinks) != null && te.length) ? (d(), S(Jt, {
|
|
6290
6286
|
key: 0,
|
|
6291
6287
|
links: e.quickLinks,
|
|
6292
6288
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
6293
|
-
}, null, 8, ["links", "nav-aria-label"])) :
|
|
6294
|
-
U(
|
|
6289
|
+
}, null, 8, ["links", "nav-aria-label"])) : L("", !0),
|
|
6290
|
+
U(N.$slots, "after-quick-links", {}, void 0, !0),
|
|
6295
6291
|
r(i) ? (d(), S(Pt, _({ key: 1 }, r(i), {
|
|
6296
|
-
onSelect:
|
|
6297
|
-
}), null, 16)) :
|
|
6292
|
+
onSelect: C[2] || (C[2] = (k) => a("languageSelect", k))
|
|
6293
|
+
}), null, 16)) : L("", !0)
|
|
6298
6294
|
]),
|
|
6299
6295
|
e.showSearch ? (d(), b("div", Ic, [
|
|
6300
6296
|
V(qt, {
|
|
@@ -6303,19 +6299,19 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6303
6299
|
"model-value": e.modelValue,
|
|
6304
6300
|
placeholder: e.placeholder,
|
|
6305
6301
|
style: { "justify-content": "flex-end" },
|
|
6306
|
-
"onUpdate:modelValue":
|
|
6307
|
-
onSearch:
|
|
6302
|
+
"onUpdate:modelValue": C[3] || (C[3] = (k) => a("update:modelValue", k)),
|
|
6303
|
+
onSearch: C[4] || (C[4] = (k) => a("search", k))
|
|
6308
6304
|
}, null, 8, ["id", "label", "model-value", "placeholder"])
|
|
6309
|
-
])) :
|
|
6305
|
+
])) : L("", !0)
|
|
6310
6306
|
])
|
|
6311
6307
|
]),
|
|
6312
|
-
U(
|
|
6308
|
+
U(N.$slots, "default", {}, void 0, !0)
|
|
6313
6309
|
])
|
|
6314
6310
|
]),
|
|
6315
|
-
|
|
6311
|
+
M("div", bc, [
|
|
6316
6312
|
r(h) && !r(c) ? (d(), b("div", hc, [
|
|
6317
|
-
U(
|
|
6318
|
-
])) :
|
|
6313
|
+
U(N.$slots, "mainnav", { hidemodal: A }, void 0, !0)
|
|
6314
|
+
])) : L("", !0)
|
|
6319
6315
|
]),
|
|
6320
6316
|
r(l) && (e.showSearch || r(h) || e.quickLinks && e.quickLinks.length || r(i)) ? (d(), S(B, {
|
|
6321
6317
|
key: 0,
|
|
@@ -6328,46 +6324,46 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6328
6324
|
width: "75%"
|
|
6329
6325
|
}, {
|
|
6330
6326
|
default: K(() => [
|
|
6331
|
-
|
|
6332
|
-
V(
|
|
6327
|
+
M("div", yc, [
|
|
6328
|
+
V(w, {
|
|
6333
6329
|
"cancel-label": e.closeMenuModalLabel,
|
|
6334
6330
|
"cancel-icon": r(H).CLOSE_CIRCLE_OUTLINE,
|
|
6335
6331
|
"icon-only": "",
|
|
6336
6332
|
onCancel: A
|
|
6337
6333
|
}, null, 8, ["cancel-label", "cancel-icon"])
|
|
6338
6334
|
]),
|
|
6339
|
-
|
|
6340
|
-
|
|
6335
|
+
M("div", Cc, [
|
|
6336
|
+
M("div", Mc, [
|
|
6341
6337
|
r(i) ? (d(), S(Pt, _({ key: 0 }, r(i), {
|
|
6342
|
-
onSelect:
|
|
6343
|
-
}), null, 16)) :
|
|
6344
|
-
U(
|
|
6338
|
+
onSelect: C[5] || (C[5] = (k) => a("languageSelect", k))
|
|
6339
|
+
}), null, 16)) : L("", !0),
|
|
6340
|
+
U(N.$slots, "before-quick-links", {}, void 0, !0),
|
|
6345
6341
|
r(o) ? (d(), S(Jt, {
|
|
6346
6342
|
key: 1,
|
|
6347
6343
|
role: "navigation",
|
|
6348
6344
|
links: e.quickLinks,
|
|
6349
6345
|
"nav-aria-label": e.quickLinksAriaLabel,
|
|
6350
6346
|
onLinkClick: r(m)
|
|
6351
|
-
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) :
|
|
6352
|
-
U(
|
|
6347
|
+
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) : L("", !0),
|
|
6348
|
+
U(N.$slots, "after-quick-links", {}, void 0, !0)
|
|
6353
6349
|
]),
|
|
6354
|
-
r(c) ? U(
|
|
6350
|
+
r(c) ? U(N.$slots, "mainnav", {
|
|
6355
6351
|
key: 0,
|
|
6356
6352
|
hidemodal: A
|
|
6357
|
-
}, void 0, !0) :
|
|
6353
|
+
}, void 0, !0) : L("", !0),
|
|
6358
6354
|
r(s) ? (d(), b("div", Ec, [
|
|
6359
6355
|
V(qt, {
|
|
6360
6356
|
"searchbar-id": e.searchbarId,
|
|
6361
6357
|
"model-value": e.modelValue,
|
|
6362
6358
|
placeholder: e.placeholder,
|
|
6363
|
-
"onUpdate:modelValue":
|
|
6364
|
-
onSearch:
|
|
6359
|
+
"onUpdate:modelValue": C[6] || (C[6] = (k) => a("update:modelValue", k)),
|
|
6360
|
+
onSearch: C[7] || (C[7] = (k) => a("search", k))
|
|
6365
6361
|
}, null, 8, ["searchbar-id", "model-value", "placeholder"])
|
|
6366
|
-
])) :
|
|
6362
|
+
])) : L("", !0)
|
|
6367
6363
|
])
|
|
6368
6364
|
]),
|
|
6369
6365
|
_: 3
|
|
6370
|
-
}, 8, ["show", "aria-label"])) :
|
|
6366
|
+
}, 8, ["show", "aria-label"])) : L("", !0)
|
|
6371
6367
|
]);
|
|
6372
6368
|
};
|
|
6373
6369
|
}
|
|
@@ -6377,12 +6373,12 @@ const lc = /* @__PURE__ */ P(tc, [["render", nc]]), ic = {
|
|
|
6377
6373
|
};
|
|
6378
6374
|
function Dc(e, t) {
|
|
6379
6375
|
return d(), b("svg", Tc, [...t[0] || (t[0] = [
|
|
6380
|
-
|
|
6376
|
+
M("path", {
|
|
6381
6377
|
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
6378
|
style: { fill: "#ed184e", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
6383
6379
|
transform: "translate(20.294 -79.068)"
|
|
6384
6380
|
}, null, -1),
|
|
6385
|
-
|
|
6381
|
+
M("path", {
|
|
6386
6382
|
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
6383
|
style: { fill: "#3871c1", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
6388
6384
|
transform: "translate(20.294 -79.068)"
|
|
@@ -6397,10 +6393,10 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6397
6393
|
color: {}
|
|
6398
6394
|
},
|
|
6399
6395
|
setup(e) {
|
|
6400
|
-
|
|
6396
|
+
re((a) => ({
|
|
6401
6397
|
c873d74e: a.color
|
|
6402
6398
|
}));
|
|
6403
|
-
const t =
|
|
6399
|
+
const t = I(() => ({
|
|
6404
6400
|
...e.width && { width: e.width },
|
|
6405
6401
|
...e.height && { height: e.height }
|
|
6406
6402
|
}));
|
|
@@ -6426,7 +6422,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6426
6422
|
collapsing: a,
|
|
6427
6423
|
cssExpanded: n,
|
|
6428
6424
|
doExpand: l
|
|
6429
|
-
} = ot(), { isAboveMd: i } = st(), o =
|
|
6425
|
+
} = ot(), { isAboveMd: i } = st(), o = I(() => e.id ?? `breadcrumb-${crypto.randomUUID()}`), s = I(() => ({
|
|
6430
6426
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_RIGHT})`
|
|
6431
6427
|
})), c = z(i.value);
|
|
6432
6428
|
return se(c, (A, u) => {
|
|
@@ -6436,14 +6432,14 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6436
6432
|
}), ve(() => {
|
|
6437
6433
|
l(c.value);
|
|
6438
6434
|
}), (A, u) => {
|
|
6439
|
-
const f =
|
|
6435
|
+
const f = oe, g = wt("RouterLink");
|
|
6440
6436
|
return e.links && e.links.length ? (d(), b("nav", {
|
|
6441
6437
|
key: 0,
|
|
6442
6438
|
role: "navigation",
|
|
6443
6439
|
"aria-label": e.navigationLabel,
|
|
6444
6440
|
class: "av-breadcrumb"
|
|
6445
6441
|
}, [
|
|
6446
|
-
r(c) ?
|
|
6442
|
+
r(c) ? L("", !0) : (d(), S(f, {
|
|
6447
6443
|
key: 0,
|
|
6448
6444
|
"aria-expanded": r(c),
|
|
6449
6445
|
"aria-controls": r(o),
|
|
@@ -6453,7 +6449,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6453
6449
|
"no-sentence-case": "",
|
|
6454
6450
|
onClick: u[0] || (u[0] = (m) => c.value = !r(c))
|
|
6455
6451
|
}, null, 8, ["aria-expanded", "aria-controls", "label"])),
|
|
6456
|
-
|
|
6452
|
+
M("div", {
|
|
6457
6453
|
id: r(o),
|
|
6458
6454
|
ref_key: "collapse",
|
|
6459
6455
|
ref: t,
|
|
@@ -6462,13 +6458,13 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6462
6458
|
"av-collapsing": r(a)
|
|
6463
6459
|
}])
|
|
6464
6460
|
}, [
|
|
6465
|
-
|
|
6461
|
+
M("ol", pc, [
|
|
6466
6462
|
(d(!0), b($, null, ie(e.links, (m, v) => (d(), b("li", {
|
|
6467
6463
|
key: v,
|
|
6468
6464
|
class: "av-breadcrumb__item",
|
|
6469
|
-
style:
|
|
6465
|
+
style: de(r(s))
|
|
6470
6466
|
}, [
|
|
6471
|
-
m.to ? (d(), S(
|
|
6467
|
+
m.to ? (d(), S(g, {
|
|
6472
6468
|
key: 0,
|
|
6473
6469
|
"aria-current": v === e.links.length - 1 ? "page" : void 0,
|
|
6474
6470
|
class: "b2-regular av-breadcrumb__link",
|
|
@@ -6486,7 +6482,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6486
6482
|
], 4))), 128))
|
|
6487
6483
|
])
|
|
6488
6484
|
], 10, Sc)
|
|
6489
|
-
], 8, xc)) :
|
|
6485
|
+
], 8, xc)) : L("", !0);
|
|
6490
6486
|
};
|
|
6491
6487
|
}
|
|
6492
6488
|
}), ru = /* @__PURE__ */ P(Qc, [["__scopeId", "data-v-7edf8c6c"]]), jc = ["id", "aria-current"], zc = /* @__PURE__ */ p({
|
|
@@ -6496,7 +6492,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6496
6492
|
active: { type: Boolean }
|
|
6497
6493
|
},
|
|
6498
6494
|
setup(e) {
|
|
6499
|
-
const t =
|
|
6495
|
+
const t = I(() => e.id ?? `nav-item-${crypto.randomUUID()}`);
|
|
6500
6496
|
return (a, n) => (d(), b("li", {
|
|
6501
6497
|
id: r(t),
|
|
6502
6498
|
class: Q(["av-nav__item", { "av-nav__item--active": e.active }]),
|
|
@@ -6512,7 +6508,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6512
6508
|
active: { type: Boolean }
|
|
6513
6509
|
},
|
|
6514
6510
|
setup(e) {
|
|
6515
|
-
const t =
|
|
6511
|
+
const t = I(() => e.id ?? `nav-menu-item-${crypto.randomUUID()}`);
|
|
6516
6512
|
return (a, n) => (d(), b("li", {
|
|
6517
6513
|
id: r(t),
|
|
6518
6514
|
class: "av-menu__item",
|
|
@@ -6534,7 +6530,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6534
6530
|
},
|
|
6535
6531
|
emits: ["toggleId"],
|
|
6536
6532
|
setup(e) {
|
|
6537
|
-
const { isBelowLg: t } = st(), a =
|
|
6533
|
+
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
6534
|
});
|
|
6539
6535
|
return (o, s) => {
|
|
6540
6536
|
const c = ne, A = wt("RouterLink");
|
|
@@ -6550,7 +6546,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6550
6546
|
o.$emit("toggleId", r(a)), e.onClick(u);
|
|
6551
6547
|
})
|
|
6552
6548
|
}, [
|
|
6553
|
-
|
|
6549
|
+
M("span", Hc, W(e.text), 1)
|
|
6554
6550
|
], 10, Vc)) : (d(), S(A, {
|
|
6555
6551
|
key: 1,
|
|
6556
6552
|
class: "av-nav__link",
|
|
@@ -6566,8 +6562,8 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6566
6562
|
key: 0,
|
|
6567
6563
|
name: e.icon,
|
|
6568
6564
|
size: 1.5
|
|
6569
|
-
}, null, 8, ["name"])) :
|
|
6570
|
-
|
|
6565
|
+
}, null, 8, ["name"])) : L("", !0),
|
|
6566
|
+
M("span", Rc, W(e.text), 1)
|
|
6571
6567
|
]),
|
|
6572
6568
|
_: 1
|
|
6573
6569
|
}, 8, ["to"]));
|
|
@@ -6590,7 +6586,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6590
6586
|
cssExpanded: n,
|
|
6591
6587
|
doExpand: l,
|
|
6592
6588
|
onTransitionEnd: i
|
|
6593
|
-
} = ot(), o =
|
|
6589
|
+
} = ot(), o = I(() => e.id ?? `menu-${crypto.randomUUID()}`), s = I(() => o.value === e.expandedId), c = I(() => ({
|
|
6594
6590
|
"--icon-path": `url(${be.MDI_KEYBOARD_ARROW_DOWN})`
|
|
6595
6591
|
}));
|
|
6596
6592
|
return se(s, (A, u) => {
|
|
@@ -6598,17 +6594,17 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6598
6594
|
}), ve(() => {
|
|
6599
6595
|
s.value && l(!0);
|
|
6600
6596
|
}), (A, u) => (d(), b($, null, [
|
|
6601
|
-
|
|
6597
|
+
M("button", {
|
|
6602
6598
|
class: "av-nav__btn",
|
|
6603
6599
|
"aria-expanded": r(s),
|
|
6604
6600
|
"aria-current": e.active || void 0,
|
|
6605
6601
|
"aria-controls": r(o),
|
|
6606
|
-
style:
|
|
6602
|
+
style: de(r(c)),
|
|
6607
6603
|
onClick: u[0] || (u[0] = (f) => A.$emit("toggleId", r(o)))
|
|
6608
6604
|
}, [
|
|
6609
|
-
|
|
6605
|
+
M("span", null, W(e.title), 1)
|
|
6610
6606
|
], 12, Yc),
|
|
6611
|
-
|
|
6607
|
+
M("div", {
|
|
6612
6608
|
id: r(o),
|
|
6613
6609
|
ref_key: "collapse",
|
|
6614
6610
|
ref: t,
|
|
@@ -6616,8 +6612,8 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6616
6612
|
"data-testid": "navigation-menu",
|
|
6617
6613
|
onTransitionend: u[2] || (u[2] = (f) => r(i)(r(s)))
|
|
6618
6614
|
}, [
|
|
6619
|
-
|
|
6620
|
-
(d(!0), b($, null, ie(e.links, (f,
|
|
6615
|
+
M("ul", qc, [
|
|
6616
|
+
(d(!0), b($, null, ie(e.links, (f, g) => (d(), S(Uc, { key: g }, {
|
|
6621
6617
|
default: K(() => [
|
|
6622
6618
|
V(za, _({ ref_for: !0 }, f, {
|
|
6623
6619
|
onToggleId: u[1] || (u[1] = (m) => A.$emit("toggleId", e.expandedId))
|
|
@@ -6640,7 +6636,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6640
6636
|
navItems: {}
|
|
6641
6637
|
},
|
|
6642
6638
|
setup(e) {
|
|
6643
|
-
const t =
|
|
6639
|
+
const t = I(() => e.id ?? `nav-${crypto.randomUUID()}`), a = z(void 0);
|
|
6644
6640
|
function n(s) {
|
|
6645
6641
|
if (s === a.value) {
|
|
6646
6642
|
a.value = void 0;
|
|
@@ -6668,13 +6664,13 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6668
6664
|
}), ge(() => {
|
|
6669
6665
|
document.removeEventListener("click", i), document.removeEventListener("keydown", o);
|
|
6670
6666
|
}), (s, c) => (d(), b("div", Gc, [
|
|
6671
|
-
|
|
6667
|
+
M("nav", {
|
|
6672
6668
|
id: r(t),
|
|
6673
6669
|
class: "av-nav",
|
|
6674
6670
|
role: "navigation",
|
|
6675
6671
|
"aria-label": e.label
|
|
6676
6672
|
}, [
|
|
6677
|
-
|
|
6673
|
+
M("ul", $c, [
|
|
6678
6674
|
(d(!0), b($, null, ie(e.navItems, (A, u) => (d(), S(Bc, { key: u }, {
|
|
6679
6675
|
default: K(() => [
|
|
6680
6676
|
A.to && A.text ? (d(), S(za, _({
|
|
@@ -6689,7 +6685,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6689
6685
|
}, A, {
|
|
6690
6686
|
"expanded-id": r(a),
|
|
6691
6687
|
onToggleId: c[1] || (c[1] = (f) => n(f))
|
|
6692
|
-
}), null, 16, ["expanded-id"])) :
|
|
6688
|
+
}), null, 16, ["expanded-id"])) : L("", !0)
|
|
6693
6689
|
]),
|
|
6694
6690
|
_: 2
|
|
6695
6691
|
}, 1024))), 128))
|
|
@@ -6719,90 +6715,90 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6719
6715
|
},
|
|
6720
6716
|
emits: ["update:current-page"],
|
|
6721
6717
|
setup(e, { emit: t }) {
|
|
6722
|
-
const a = t, n =
|
|
6718
|
+
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
6719
|
return (v, h) => {
|
|
6724
|
-
var
|
|
6720
|
+
var N, C, T, D;
|
|
6725
6721
|
return r(o) ? (d(), b("nav", {
|
|
6726
6722
|
key: 0,
|
|
6727
6723
|
role: "navigation",
|
|
6728
6724
|
class: "av-pagination av-nav",
|
|
6729
6725
|
"aria-label": e.ariaLabel
|
|
6730
6726
|
}, [
|
|
6731
|
-
|
|
6727
|
+
M("ul", eA, [
|
|
6732
6728
|
e.compact && e.compactCurrentPageLabel ? (d(), b("li", tA, [
|
|
6733
|
-
|
|
6734
|
-
])) :
|
|
6735
|
-
|
|
6736
|
-
e.compact ?
|
|
6729
|
+
M("span", aA, W(e.compactCurrentPageLabel), 1)
|
|
6730
|
+
])) : L("", !0),
|
|
6731
|
+
M("li", null, [
|
|
6732
|
+
e.compact ? L("", !0) : (d(), b("a", {
|
|
6737
6733
|
key: 0,
|
|
6738
|
-
href: (
|
|
6734
|
+
href: (N = e.pages[0]) == null ? void 0 : N.href,
|
|
6739
6735
|
class: "av-pagination__link",
|
|
6740
6736
|
title: e.firstPageLabel,
|
|
6741
6737
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6742
|
-
onClick: h[0] || (h[0] =
|
|
6738
|
+
onClick: h[0] || (h[0] = ue((w) => A(), ["prevent"]))
|
|
6743
6739
|
}, [
|
|
6744
6740
|
V(ne, {
|
|
6745
6741
|
name: r(H).PAGE_FIRST,
|
|
6746
6742
|
size: 1.5
|
|
6747
6743
|
}, null, 8, ["name"]),
|
|
6748
|
-
|
|
6744
|
+
M("span", lA, W(e.firstPageLabel), 1)
|
|
6749
6745
|
], 8, nA))
|
|
6750
6746
|
]),
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
href: (
|
|
6747
|
+
M("li", null, [
|
|
6748
|
+
M("a", {
|
|
6749
|
+
href: (C = e.pages[Math.max(e.currentPage - 1, 0)]) == null ? void 0 : C.href,
|
|
6754
6750
|
class: "av-pagination__link",
|
|
6755
6751
|
title: e.prevPageLabel,
|
|
6756
6752
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
6757
|
-
onClick: h[1] || (h[1] =
|
|
6753
|
+
onClick: h[1] || (h[1] = ue((w) => u(), ["prevent"]))
|
|
6758
6754
|
}, [
|
|
6759
6755
|
V(ne, {
|
|
6760
6756
|
name: r(H).NAVIGATE_BEFORE,
|
|
6761
6757
|
size: 1.5
|
|
6762
6758
|
}, null, 8, ["name"]),
|
|
6763
|
-
e.compact ?
|
|
6759
|
+
e.compact ? L("", !0) : (d(), b("span", rA, W(e.prevPageLabel), 1))
|
|
6764
6760
|
], 8, iA)
|
|
6765
6761
|
]),
|
|
6766
|
-
e.compact ?
|
|
6767
|
-
|
|
6768
|
-
href:
|
|
6762
|
+
e.compact ? L("", !0) : (d(!0), b($, { key: 1 }, ie(r(i), (w, B) => (d(), b("li", { key: B }, [
|
|
6763
|
+
M("a", {
|
|
6764
|
+
href: w == null ? void 0 : w.href,
|
|
6769
6765
|
class: "av-pagination__link",
|
|
6770
|
-
title:
|
|
6771
|
-
"aria-current": m(
|
|
6772
|
-
onClick:
|
|
6766
|
+
title: w.title,
|
|
6767
|
+
"aria-current": m(w) ? "page" : void 0,
|
|
6768
|
+
onClick: ue((Z) => c(e.pages.indexOf(w)), ["prevent"])
|
|
6773
6769
|
}, [
|
|
6774
|
-
r(i).indexOf(
|
|
6775
|
-
Le(" " + W(
|
|
6776
|
-
r(i).indexOf(
|
|
6770
|
+
r(i).indexOf(w) === 0 && r(n) > 0 ? (d(), b("span", sA, "...")) : L("", !0),
|
|
6771
|
+
Le(" " + W(w.label) + " ", 1),
|
|
6772
|
+
r(i).indexOf(w) === r(i).length - 1 && r(l) < e.pages.length - 1 ? (d(), b("span", cA, "...")) : L("", !0)
|
|
6777
6773
|
], 8, oA)
|
|
6778
6774
|
]))), 128)),
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
href: (
|
|
6775
|
+
M("li", null, [
|
|
6776
|
+
M("a", {
|
|
6777
|
+
href: (T = e.pages[Math.min(e.currentPage + 1, e.pages.length - 1)]) == null ? void 0 : T.href,
|
|
6782
6778
|
class: "av-pagination__link",
|
|
6783
6779
|
title: e.nextPageLabel,
|
|
6784
6780
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6785
6781
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6786
|
-
onClick: h[2] || (h[2] =
|
|
6782
|
+
onClick: h[2] || (h[2] = ue((w) => f(), ["prevent"]))
|
|
6787
6783
|
}, [
|
|
6788
|
-
e.compact ?
|
|
6784
|
+
e.compact ? L("", !0) : (d(), b("span", uA, W(e.nextPageLabel), 1)),
|
|
6789
6785
|
V(ne, {
|
|
6790
6786
|
name: r(H).NAVIGATE_NEXT,
|
|
6791
6787
|
size: 1.5
|
|
6792
6788
|
}, null, 8, ["name"])
|
|
6793
6789
|
], 8, AA)
|
|
6794
6790
|
]),
|
|
6795
|
-
|
|
6796
|
-
e.compact ?
|
|
6791
|
+
M("li", null, [
|
|
6792
|
+
e.compact ? L("", !0) : (d(), b("a", {
|
|
6797
6793
|
key: 0,
|
|
6798
6794
|
class: "av-pagination__link",
|
|
6799
|
-
href: (
|
|
6795
|
+
href: (D = e.pages[e.pages.length - 1]) == null ? void 0 : D.href,
|
|
6800
6796
|
title: e.lastPageLabel,
|
|
6801
6797
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6802
6798
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
6803
|
-
onClick: h[3] || (h[3] =
|
|
6799
|
+
onClick: h[3] || (h[3] = ue((w) => g(), ["prevent"]))
|
|
6804
6800
|
}, [
|
|
6805
|
-
|
|
6801
|
+
M("span", fA, W(e.lastPageLabel), 1),
|
|
6806
6802
|
V(ne, {
|
|
6807
6803
|
name: r(H).PAGE_LAST,
|
|
6808
6804
|
size: 1.5
|
|
@@ -6810,7 +6806,7 @@ const Lc = { render: Dc }, wc = { class: "svg-wrapper" }, Oc = /* @__PURE__ */ p
|
|
|
6810
6806
|
], 8, dA))
|
|
6811
6807
|
])
|
|
6812
6808
|
])
|
|
6813
|
-
], 8, _c)) :
|
|
6809
|
+
], 8, _c)) : L("", !0);
|
|
6814
6810
|
};
|
|
6815
6811
|
}
|
|
6816
6812
|
}), su = /* @__PURE__ */ P(vA, [["__scopeId", "data-v-e50ee994"]]);
|
|
@@ -6842,16 +6838,16 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6842
6838
|
}),
|
|
6843
6839
|
emits: /* @__PURE__ */ ye(["update:collapsed"], ["update:collapsed"]),
|
|
6844
6840
|
setup(e) {
|
|
6845
|
-
|
|
6841
|
+
re((u) => ({
|
|
6846
6842
|
v4d5b7c17: r(c),
|
|
6847
6843
|
v4a813d87: u.padding
|
|
6848
6844
|
}));
|
|
6849
|
-
const t = e, a = we(e, "collapsed"), { width: n, collapsedWidth: l } = _t(t), i =
|
|
6845
|
+
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
6846
|
get: () => t.collapsible ? a.value : !1,
|
|
6851
6847
|
set: (u) => {
|
|
6852
6848
|
t.collapsible && (a.value = u);
|
|
6853
6849
|
}
|
|
6854
|
-
}), c =
|
|
6850
|
+
}), c = I(() => t.collapsible && s.value ? l.value : n.value);
|
|
6855
6851
|
function A() {
|
|
6856
6852
|
t.collapsible && (s.value = !s.value);
|
|
6857
6853
|
}
|
|
@@ -6861,7 +6857,7 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6861
6857
|
"aria-label": r(o)
|
|
6862
6858
|
}, [
|
|
6863
6859
|
t.collapsible ? (d(), b("div", gA, [
|
|
6864
|
-
V(
|
|
6860
|
+
V(oe, {
|
|
6865
6861
|
"aria-expanded": !r(s),
|
|
6866
6862
|
"aria-controls": r(i),
|
|
6867
6863
|
icon: r(s) ? r(H).CHEVRON_DOUBLE_RIGHT : r(H).CHEVRON_DOUBLE_LEFT,
|
|
@@ -6870,8 +6866,8 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6870
6866
|
"icon-only": "",
|
|
6871
6867
|
onClick: A
|
|
6872
6868
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
6873
|
-
])) :
|
|
6874
|
-
|
|
6869
|
+
])) : L("", !0),
|
|
6870
|
+
M("div", IA, [
|
|
6875
6871
|
U(u.$slots, "default", {}, void 0, !0)
|
|
6876
6872
|
])
|
|
6877
6873
|
], 10, mA));
|
|
@@ -6938,37 +6934,37 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6938
6934
|
width: { default: "100%" }
|
|
6939
6935
|
},
|
|
6940
6936
|
setup(e) {
|
|
6941
|
-
return
|
|
6937
|
+
return re((t) => ({
|
|
6942
6938
|
v4b4d4496: t.width
|
|
6943
6939
|
})), (t, a) => (d(), b("div", CA, [
|
|
6944
|
-
|
|
6945
|
-
|
|
6940
|
+
M("div", MA, [
|
|
6941
|
+
M("div", {
|
|
6946
6942
|
class: "step step--active",
|
|
6947
6943
|
"aria-current": e.currentStep === 0 ? "step" : void 0
|
|
6948
6944
|
}, [...a[0] || (a[0] = [
|
|
6949
|
-
|
|
6945
|
+
M("span", { class: "b1-regular" }, "1", -1)
|
|
6950
6946
|
])], 8, EA),
|
|
6951
6947
|
(d(!0), b($, null, ie(e.steps.slice(1, e.steps.length), (n, l) => (d(), b("div", {
|
|
6952
6948
|
key: l,
|
|
6953
6949
|
class: "steps-container av-row av-align-center"
|
|
6954
6950
|
}, [
|
|
6955
|
-
|
|
6951
|
+
M("div", {
|
|
6956
6952
|
class: Q(["separator", { "separator--active": l + 1 <= e.currentStep }])
|
|
6957
6953
|
}, null, 2),
|
|
6958
|
-
|
|
6954
|
+
M("div", {
|
|
6959
6955
|
class: Q(["step av-col av-align-center av-justify-center", { "step--active": l + 1 <= e.currentStep }]),
|
|
6960
6956
|
"aria-current": l + 1 === e.currentStep ? "step" : void 0
|
|
6961
6957
|
}, [
|
|
6962
|
-
|
|
6958
|
+
M("span", TA, W(l + 2), 1)
|
|
6963
6959
|
], 10, NA)
|
|
6964
6960
|
]))), 128))
|
|
6965
6961
|
]),
|
|
6966
|
-
|
|
6962
|
+
M("div", DA, [
|
|
6967
6963
|
(d(!0), b($, null, ie(e.steps, (n, l) => (d(), b("div", {
|
|
6968
6964
|
key: l,
|
|
6969
6965
|
class: "label-container av-col av-align-center av-justify-center"
|
|
6970
6966
|
}, [
|
|
6971
|
-
|
|
6967
|
+
M("span", {
|
|
6972
6968
|
class: Q(["label av-col av-align-center", {
|
|
6973
6969
|
"b1-bold": l <= e.currentStep,
|
|
6974
6970
|
"b1-light": l > e.currentStep
|
|
@@ -6997,10 +6993,10 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
6997
6993
|
},
|
|
6998
6994
|
emits: ["close", "confirm"],
|
|
6999
6995
|
setup(e, { emit: t }) {
|
|
7000
|
-
const a = t, n = me(), l =
|
|
6996
|
+
const a = t, n = me(), l = I(() => e.id ?? `modal-${crypto.randomUUID()}`), i = I(() => e.isAlert ? "alertdialog" : "dialog"), o = z(null), s = z();
|
|
7001
6997
|
se(() => e.opened, (A) => {
|
|
7002
|
-
var u, f,
|
|
7003
|
-
A ? ((u = s.value) == null || u.showModal(), (f = o.value) == null || f.focus()) : (
|
|
6998
|
+
var u, f, g;
|
|
6999
|
+
A ? ((u = s.value) == null || u.showModal(), (f = o.value) == null || f.focus()) : (g = s.value) == null || g.close(), c(A);
|
|
7004
7000
|
});
|
|
7005
7001
|
function c(A) {
|
|
7006
7002
|
typeof window < "u" && document.body.classList.toggle("modal-open", A);
|
|
@@ -7014,7 +7010,7 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
7014
7010
|
return d(), S(aa, { to: "body" }, [
|
|
7015
7011
|
e.opened ? (d(), S(r(fa), { key: 0 }, {
|
|
7016
7012
|
default: K(() => [
|
|
7017
|
-
|
|
7013
|
+
M("dialog", {
|
|
7018
7014
|
id: r(l),
|
|
7019
7015
|
ref_key: "modal",
|
|
7020
7016
|
ref: s,
|
|
@@ -7023,17 +7019,17 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
7023
7019
|
role: r(i),
|
|
7024
7020
|
class: Q(["av-modal", { "av-modal--opened": e.opened }]),
|
|
7025
7021
|
open: e.opened,
|
|
7026
|
-
onKeydown: u[2] || (u[2] =
|
|
7022
|
+
onKeydown: u[2] || (u[2] = Ae((g) => a("close"), ["esc"]))
|
|
7027
7023
|
}, [
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7024
|
+
M("div", OA, [
|
|
7025
|
+
M("div", xA, [
|
|
7026
|
+
M("div", SA, [
|
|
7031
7027
|
n.header ? (d(), b("div", pA, [
|
|
7032
7028
|
U(A.$slots, "header", {}, void 0, !0)
|
|
7033
|
-
])) :
|
|
7029
|
+
])) : L("", !0),
|
|
7034
7030
|
U(A.$slots, "default", {}, void 0, !0)
|
|
7035
7031
|
]),
|
|
7036
|
-
|
|
7032
|
+
M("div", kA, [
|
|
7037
7033
|
V(f, {
|
|
7038
7034
|
ref_key: "closeBtn",
|
|
7039
7035
|
ref: o,
|
|
@@ -7055,7 +7051,7 @@ const mA = ["id", "aria-label"], gA = {
|
|
|
7055
7051
|
], 42, wA)
|
|
7056
7052
|
]),
|
|
7057
7053
|
_: 3
|
|
7058
|
-
})) :
|
|
7054
|
+
})) : L("", !0)
|
|
7059
7055
|
]);
|
|
7060
7056
|
};
|
|
7061
7057
|
}
|
|
@@ -7068,7 +7064,7 @@ export {
|
|
|
7068
7064
|
$A as AvAutocomplete,
|
|
7069
7065
|
BA as AvBadge,
|
|
7070
7066
|
ru as AvBreadcrumb,
|
|
7071
|
-
|
|
7067
|
+
oe as AvButton,
|
|
7072
7068
|
Qa as AvCancelConfirmButtons,
|
|
7073
7069
|
VA as AvCard,
|
|
7074
7070
|
si as AvCheckbox,
|