@avenirs-esr/avenirs-dsav 0.1.42 → 0.1.43

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.
@@ -1,7 +1,7 @@
1
- import { DsfrBadge as ta, VIcon as aa, DsfrNotice as na, DsfrButton as ra, registerNavigationLinkKey as Aa, DsfrLanguageSelector as ia, DsfrSearchBar as oa, DsfrAccordionsGroup as la, DsfrAccordion as sa, useRandomId as ca, DsfrInput as ua, DsfrTag as da, DsfrRadioButtonSet as fa, DsfrRadioButton as va, DsfrMultiselect as ma, DsfrSelect as ga, DsfrTabs as Ia, DsfrTabContent as ha, DsfrTabItem as ba, DsfrNavigation as Ca, DsfrModal as ya } from "@gouvminint/vue-dsfr";
1
+ import { DsfrBadge as ta, VIcon as aa, DsfrNotice as na, DsfrButton as ra, registerNavigationLinkKey as ia, DsfrLanguageSelector as Aa, DsfrSearchBar as oa, DsfrAccordionsGroup as la, DsfrAccordion as sa, useRandomId as ca, DsfrInput as ua, DsfrTag as da, DsfrRadioButtonSet as fa, DsfrRadioButton as va, DsfrMultiselect as ma, DsfrSelect as ga, DsfrTabs as Ia, DsfrTabContent as ba, DsfrTabItem as ha, DsfrNavigation as Ca, DsfrModal as ya } from "@gouvminint/vue-dsfr";
2
2
  import { registerNavigationLinkKey as us } from "@gouvminint/vue-dsfr";
3
- import { defineComponent as O, useCssVars as te, computed as p, createBlock as k, openBlock as u, mergeProps as ee, unref as o, createPropsRestProxy as wt, createElementBlock as g, createVNode as P, normalizeClass as F, createElementVNode as y, toDisplayString as Z, withCtx as R, useSlots as ie, normalizeStyle as Ve, createCommentVNode as D, renderSlot as B, resolveDynamicComponent as ue, createTextVNode as rt, TransitionGroup as Ea, Fragment as _, renderList as re, toRef as Ma, ref as J, onMounted as xe, onUnmounted as je, provide as St, resolveComponent as pa, withModifiers as se, mergeModels as ve, useModel as ke, nextTick as Re, createSlots as we, watch as ce, isRef as At, inject as Na, getCurrentScope as Ta, onScopeDispose as Qa, getCurrentInstance as kt, toValue as ae, shallowRef as Pe, reactive as dt, normalizeProps as Da, guardReactiveProps as La, toRefs as it, withKeys as ot, Teleport as zt, onBeforeUnmount as Oa } from "vue";
4
- const hl = {
3
+ import { defineComponent as O, useCssVars as te, computed as p, createBlock as k, openBlock as u, mergeProps as ee, unref as l, createPropsRestProxy as wt, createElementBlock as g, createVNode as P, normalizeClass as F, createElementVNode as y, toDisplayString as Z, withCtx as R, useSlots as Ae, normalizeStyle as Ve, createCommentVNode as D, renderSlot as j, resolveDynamicComponent as ue, createTextVNode as rt, TransitionGroup as Ea, Fragment as _, renderList as re, toRef as Ma, ref as J, onMounted as xe, onUnmounted as Be, provide as St, resolveComponent as pa, withModifiers as se, mergeModels as ve, useModel as ke, nextTick as Re, createSlots as we, watch as ce, isRef as it, inject as Na, getCurrentScope as Ta, onScopeDispose as Qa, getCurrentInstance as kt, toValue as ae, shallowRef as Pe, reactive as dt, normalizeProps as Da, guardReactiveProps as La, toRefs as At, withKeys as ot, Teleport as zt, onBeforeUnmount as Oa } from "vue";
4
+ const bl = {
5
5
  name: "AvBadge",
6
6
  template: '<div class="av-badge"/>',
7
7
  props: {
@@ -40,11 +40,11 @@ const hl = {
40
40
  const t = e, a = p(() => t.iconPath && !t.noIcon ? "av-badge--customIcon" : void 0), n = p(() => ({
41
41
  "--icon-path": `url(${t.iconPath})`
42
42
  }));
43
- return (r, i) => {
44
- const A = ta;
45
- return u(), k(A, ee(t, {
46
- class: ["av-badge", [o(a)]],
47
- style: o(n)
43
+ return (r, A) => {
44
+ const i = ta;
45
+ return u(), k(i, ee(t, {
46
+ class: ["av-badge", [l(a)]],
47
+ style: l(n)
48
48
  }), null, 16, ["class", "style"]);
49
49
  };
50
50
  }
@@ -53,7 +53,7 @@ const hl = {
53
53
  for (const [n, r] of t)
54
54
  a[n] = r;
55
55
  return a;
56
- }, bl = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-844b9e93"]]), Sa = { class: "av-icon-vicon--container" }, ka = 16 / 19.19, za = /* @__PURE__ */ O({
56
+ }, hl = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-844b9e93"]]), Sa = { class: "av-icon-vicon--container" }, ka = 16 / 19.19, za = /* @__PURE__ */ O({
57
57
  __name: "AvVIcon",
58
58
  props: {
59
59
  size: { default: 1 },
@@ -70,13 +70,13 @@ const hl = {
70
70
  },
71
71
  setup(e) {
72
72
  te((r) => ({
73
- v53885778: o(n)
73
+ v53885778: l(n)
74
74
  }));
75
75
  const t = wt(e, ["size"]), a = p(() => ka * e.size), n = p(() => `${e.size}rem`);
76
- return (r, i) => {
77
- const A = aa;
76
+ return (r, A) => {
77
+ const i = aa;
78
78
  return u(), g("div", Sa, [
79
- P(A, ee(t, { scale: o(a) }), null, 16, ["scale"])
79
+ P(i, ee(t, { scale: l(a) }), null, 16, ["scale"])
80
80
  ]);
81
81
  };
82
82
  }
@@ -97,22 +97,22 @@ const hl = {
97
97
  v274632b3: r.textColor
98
98
  }));
99
99
  const t = p(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), a = p(() => e.inline ? void 0 : "ellipsis-container"), n = p(() => e.inline ? void 0 : "ellipsis");
100
- return (r, i) => (u(), g("div", {
101
- class: F(["icon-text--container", [o(a)]])
100
+ return (r, A) => (u(), g("div", {
101
+ class: F(["icon-text--container", [l(a)]])
102
102
  }, [
103
103
  P(ne, {
104
104
  class: "icon-text--icon",
105
105
  name: e.icon,
106
106
  color: e.iconColor,
107
- size: o(t)
107
+ size: l(t)
108
108
  }, null, 8, ["name", "color", "size"]),
109
109
  y("span", {
110
- class: F(["icon-text--text", [o(n), e.typographyClass]])
110
+ class: F(["icon-text--text", [l(n), e.typographyClass]])
111
111
  }, Z(e.text), 3)
112
112
  ], 2));
113
113
  }
114
- }), ja = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-dec33472"]]);
115
- function Ba(e, t = "var(--dark-background-primary1)") {
114
+ }), Ba = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-dec33472"]]);
115
+ function ja(e, t = "var(--dark-background-primary1)") {
116
116
  return e.replace(/###(.+?)###/gs, `<h1 style="display:flex;flex-direction:row;justify-content:start;font-size:var(--font-size-n6);line-height:var(--line-height-n5);color:${t}">$1</h1>`).replace(/@@([\s\S]+?)@@/g, "<div>$1</div>").replace(/^\s*--\s+(.*)$/gm, '<li class="indented-list">$1</li>').replace(/(\r\n|\n|\r|\\n|\\r)/g, '<div class="line-break"></div>').replace(/__(.+?)__/g, '<span class="text-underline">$1</span>').replace(/\*\*(.+?)\*\*/g, `<strong style="color: ${t}">$1</strong>`);
117
117
  }
118
118
  function Je(e) {
@@ -126,13 +126,13 @@ const Pa = ["innerHTML"], Cl = /* @__PURE__ */ O({
126
126
  type: {}
127
127
  },
128
128
  setup(e) {
129
- const t = p(() => Ba(e.text));
130
- return (a, n) => (u(), k(o(na), {
129
+ const t = p(() => ja(e.text));
130
+ return (a, n) => (u(), k(l(na), {
131
131
  title: e.title,
132
132
  type: e.type
133
133
  }, {
134
134
  desc: R(() => [
135
- y("span", { innerHTML: o(t) }, null, 8, Pa)
135
+ y("span", { innerHTML: l(t) }, null, 8, Pa)
136
136
  ]),
137
137
  _: 1
138
138
  }, 8, ["title", "type"]));
@@ -156,7 +156,7 @@ const Pa = ["innerHTML"], Cl = /* @__PURE__ */ O({
156
156
  titleHeight: {}
157
157
  },
158
158
  setup(e) {
159
- const t = ie();
159
+ const t = Ae();
160
160
  return (a, n) => (u(), g("div", {
161
161
  class: "av-card",
162
162
  style: Ve({ borderColor: e.borderColor, background: e.backgroundColor })
@@ -166,14 +166,14 @@ const Pa = ["innerHTML"], Cl = /* @__PURE__ */ O({
166
166
  class: "av-card__title",
167
167
  style: Ve({ background: e.titleBackground, height: e.titleHeight })
168
168
  }, [
169
- B(a.$slots, "title", {}, void 0, !0)
169
+ j(a.$slots, "title", {}, void 0, !0)
170
170
  ], 4)) : D("", !0),
171
- B(a.$slots, "default", {}, void 0, !0),
171
+ j(a.$slots, "default", {}, void 0, !0),
172
172
  t.body ? (u(), g("div", Wa, [
173
- B(a.$slots, "body", {}, void 0, !0)
173
+ j(a.$slots, "body", {}, void 0, !0)
174
174
  ])) : D("", !0),
175
175
  t.footer ? (u(), g("div", Va, [
176
- B(a.$slots, "footer", {}, void 0, !0)
176
+ j(a.$slots, "footer", {}, void 0, !0)
177
177
  ])) : D("", !0)
178
178
  ], 4));
179
179
  }
@@ -285,9 +285,9 @@ const Ha = /* @__PURE__ */ O({
285
285
  },
286
286
  setup(e, { expose: t }) {
287
287
  te((c) => ({
288
- v8ea3f2fe: o(s)
288
+ v8ea3f2fe: l(o)
289
289
  }));
290
- const a = e, n = { name: Y.LOADING_OUTLINE, animation: "spin" }, r = p(() => a.isLoading ? n : a.icon), i = p(() => `av-button--variant-${a.variant.toLowerCase()}`), A = p(() => `av-button--theme-${a.theme.toLowerCase()}`), l = p(() => a.noRadius ? "av-button--no-radius" : ""), s = p(() => {
290
+ const a = e, n = { name: Y.LOADING_OUTLINE, animation: "spin" }, r = p(() => a.isLoading ? n : a.icon), A = p(() => `av-button--variant-${a.variant.toLowerCase()}`), i = p(() => `av-button--theme-${a.theme.toLowerCase()}`), s = p(() => a.noRadius ? "av-button--no-radius" : ""), o = p(() => {
291
291
  if (a.iconScale && !Number.isNaN(a.iconScale))
292
292
  return a.iconScale;
293
293
  switch (a.size) {
@@ -304,17 +304,17 @@ const Ha = /* @__PURE__ */ O({
304
304
  return 1.5;
305
305
  }
306
306
  });
307
- return t({ computedSvgScale: s }), (c, d) => {
307
+ return t({ computedSvgScale: o }), (c, d) => {
308
308
  const f = ra;
309
309
  return u(), k(f, ee(a, {
310
- class: ["av-button", [o(i), o(A), o(l)]],
310
+ class: ["av-button", [l(A), l(i), l(s)]],
311
311
  disabled: a.disabled || e.isLoading,
312
- icon: o(r),
312
+ icon: l(r),
313
313
  "no-outline": a.variant === "DEFAULT",
314
314
  tertiary: !0,
315
- "aria-label": o(Je)(a.label),
316
- title: o(Je)(a.label),
317
- label: o(Je)(a.label)
315
+ "aria-label": l(Je)(a.label),
316
+ title: l(Je)(a.label),
317
+ label: l(Je)(a.label)
318
318
  }), null, 16, ["class", "disabled", "icon", "no-outline", "aria-label", "title", "label"]);
319
319
  };
320
320
  }
@@ -341,7 +341,7 @@ const Ha = /* @__PURE__ */ O({
341
341
  "fr-alert--sm": e.small
342
342
  }
343
343
  ]
344
- ), i = p(() => {
344
+ ), A = p(() => {
345
345
  switch (e.type) {
346
346
  case "error":
347
347
  return { name: Y.ALERT_CIRCLE_OUTLINE, color: "var(--dark-background-error)" };
@@ -354,15 +354,15 @@ const Ha = /* @__PURE__ */ O({
354
354
  return { name: Y.INFORMATION_OUTLINE, color: "var(--dark-background-primary1)" };
355
355
  }
356
356
  });
357
- return (A, l) => e.closed ? D("", !0) : (u(), g("div", {
357
+ return (i, s) => e.closed ? D("", !0) : (u(), g("div", {
358
358
  key: 0,
359
359
  id: e.id,
360
- class: F(["fr-alert", o(r)]),
360
+ class: F(["fr-alert", l(r)]),
361
361
  role: e.alert ? "alert" : void 0
362
362
  }, [
363
363
  y("div", qa, [
364
364
  y("div", Ya, [
365
- P(ne, ee(o(i), { size: 3 }), null, 16),
365
+ P(ne, ee(l(A), { size: 3 }), null, 16),
366
366
  y("div", Ra, [
367
367
  e.small ? D("", !0) : (u(), k(ue(e.titleTag), {
368
368
  key: 0,
@@ -373,7 +373,7 @@ const Ha = /* @__PURE__ */ O({
373
373
  ]),
374
374
  _: 1
375
375
  })),
376
- B(A.$slots, "default", {}, () => [
376
+ j(i.$slots, "default", {}, () => [
377
377
  y("span", Fa, Z(e.description), 1)
378
378
  ], !0)
379
379
  ])
@@ -381,7 +381,7 @@ const Ha = /* @__PURE__ */ O({
381
381
  e.closeable ? (u(), k(me, {
382
382
  key: 0,
383
383
  "icon-only": "",
384
- icon: o(Y).CLOSE_CIRCLE_OUTLINE,
384
+ icon: l(Y).CLOSE_CIRCLE_OUTLINE,
385
385
  label: e.closeButtonLabel,
386
386
  small: "",
387
387
  "on-click": n
@@ -421,12 +421,12 @@ const Ha = /* @__PURE__ */ O({
421
421
  class: "toasters"
422
422
  }, {
423
423
  default: R(() => [
424
- (u(!0), g(_, null, re(e.messages, (i) => (u(), k(Ga, ee({
425
- key: i.id,
426
- class: ["av-toaster", t(i.type)]
427
- }, { ref_for: !0 }, i, {
428
- style: a(i.type),
429
- onClose: (A) => e.onRemoveMessage(i.id)
424
+ (u(!0), g(_, null, re(e.messages, (A) => (u(), k(Ga, ee({
425
+ key: A.id,
426
+ class: ["av-toaster", t(A.type)]
427
+ }, { ref_for: !0 }, A, {
428
+ style: a(A.type),
429
+ onClose: (i) => e.onRemoveMessage(A.id)
430
430
  }), null, 16, ["class", "style", "onClose"]))), 128))
431
431
  ]),
432
432
  _: 1
@@ -447,13 +447,13 @@ const Ha = /* @__PURE__ */ O({
447
447
  "aria-label": e.navAriaLabel
448
448
  }, [
449
449
  y("ul", en, [
450
- (u(!0), g(_, null, re(e.links, (i, A) => (u(), g("li", { key: A }, [
450
+ (u(!0), g(_, null, re(e.links, (A, i) => (u(), g("li", { key: i }, [
451
451
  P(me, {
452
- icon: i.icon,
453
- label: i.label ?? "",
454
- "on-click": (l) => {
455
- var s;
456
- a("linkClick", l), (s = i.onClick) == null || s.call(i, l);
452
+ icon: A.icon,
453
+ label: A.label ?? "",
454
+ "on-click": (s) => {
455
+ var o;
456
+ a("linkClick", s), (o = A.onClick) == null || o.call(A, s);
457
457
  }
458
458
  }, null, 8, ["icon", "label", "on-click"])
459
459
  ]))), 128))
@@ -506,7 +506,7 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
506
506
  }, vn = ["aria-label", "title", "data-fr-opened"], mn = ["aria-label", "title"], gn = {
507
507
  key: 0,
508
508
  class: "fr-header__service"
509
- }, In = { class: "fr-header__service-title" }, hn = { class: "fr-header__tools" }, bn = { class: "fr-header__tools-links" }, Cn = {
509
+ }, In = { class: "fr-header__service-title" }, bn = { class: "fr-header__tools" }, hn = { class: "fr-header__tools-links" }, Cn = {
510
510
  key: 0,
511
511
  class: "fr-header__search fr-modal demo-display-none"
512
512
  }, yn = ["aria-label"], En = { class: "fr-container" }, Mn = { class: "fr-header__menu-links" }, pn = {
@@ -536,32 +536,32 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
536
536
  },
537
537
  emits: ["update:modelValue", "search", "languageSelect"],
538
538
  setup(e, { emit: t }) {
539
- const a = e, n = t, r = ie(), i = Ma(a, "languageSelector"), A = J(!1), l = J(!1), s = J(!1);
539
+ const a = e, n = t, r = Ae(), A = Ma(a, "languageSelector"), i = J(!1), s = J(!1), o = J(!1);
540
540
  function c() {
541
541
  var M;
542
- s.value = !1, A.value = !1, l.value = !1, (M = document.getElementById("button-menu")) == null || M.focus();
542
+ o.value = !1, i.value = !1, s.value = !1, (M = document.getElementById("button-menu")) == null || M.focus();
543
543
  }
544
544
  function d(M) {
545
545
  M.key === "Escape" && c();
546
546
  }
547
547
  xe(() => {
548
548
  document.addEventListener("keydown", d);
549
- }), je(() => {
549
+ }), Be(() => {
550
550
  document.removeEventListener("keydown", d);
551
551
  });
552
552
  function f() {
553
- s.value = !0, A.value = !0, l.value = !1, setTimeout(() => {
553
+ o.value = !0, i.value = !0, s.value = !1, setTimeout(() => {
554
554
  var M;
555
555
  (M = document.getElementById("close-button")) == null || M.focus();
556
556
  });
557
557
  }
558
- function h() {
559
- s.value = !0, A.value = !1, l.value = !0;
558
+ function b() {
559
+ o.value = !0, i.value = !1, s.value = !0;
560
560
  }
561
561
  const I = c, m = p(() => [a.homeLabel, a.serviceTitle].filter((M) => M).join(" - ")), C = p(() => !!r.mainnav);
562
- return St(Aa, () => c), (M, T) => {
563
- var j, V;
564
- const Q = pa("RouterLink"), E = ia, L = oa;
562
+ return St(ia, () => c), (M, T) => {
563
+ var B, V;
564
+ const Q = pa("RouterLink"), E = Aa, L = oa;
565
565
  return u(), g("header", An, [
566
566
  y("div", on, [
567
567
  y("div", ln, [
@@ -571,7 +571,7 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
571
571
  y("div", dn, [
572
572
  P(Q, {
573
573
  to: e.homeTo,
574
- title: o(m)
574
+ title: l(m)
575
575
  }, {
576
576
  default: R(() => [
577
577
  P(rn, { "data-testid": "header-logo" })
@@ -579,17 +579,17 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
579
579
  _: 1
580
580
  }, 8, ["to", "title"])
581
581
  ]),
582
- e.showSearch || o(C) || (j = e.quickLinks) != null && j.length ? (u(), g("div", fn, [
582
+ e.showSearch || l(C) || (B = e.quickLinks) != null && B.length ? (u(), g("div", fn, [
583
583
  e.showSearch ? (u(), g("button", {
584
584
  key: 0,
585
585
  class: "fr-btn fr-btn--search",
586
586
  "aria-controls": "header-search",
587
587
  "aria-label": e.showSearchLabel,
588
588
  title: e.showSearchLabel,
589
- "data-fr-opened": o(l),
590
- onClick: T[0] || (T[0] = se((x) => h(), ["prevent", "stop"]))
589
+ "data-fr-opened": l(s),
590
+ onClick: T[0] || (T[0] = se((x) => b(), ["prevent", "stop"]))
591
591
  }, null, 8, vn)) : D("", !0),
592
- o(C) || (V = e.quickLinks) != null && V.length ? (u(), g("button", {
592
+ l(C) || (V = e.quickLinks) != null && V.length ? (u(), g("button", {
593
593
  key: 1,
594
594
  id: "button-menu",
595
595
  class: "fr-btn--menu fr-btn",
@@ -605,19 +605,19 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
605
605
  ]),
606
606
  e.serviceTitle ? (u(), g("div", gn, [
607
607
  y("p", In, Z(e.serviceTitle), 1),
608
- B(M.$slots, "serviceDescription", {}, void 0, !0)
608
+ j(M.$slots, "serviceDescription", {}, void 0, !0)
609
609
  ])) : D("", !0)
610
610
  ]),
611
- y("div", hn, [
612
- y("div", bn, [
613
- B(M.$slots, "before-quick-links", {}, void 0, !0),
614
- o(A) ? D("", !0) : (u(), k(ft, {
611
+ y("div", bn, [
612
+ y("div", hn, [
613
+ j(M.$slots, "before-quick-links", {}, void 0, !0),
614
+ l(i) ? D("", !0) : (u(), k(ft, {
615
615
  key: 0,
616
616
  links: e.quickLinks,
617
617
  "nav-aria-label": e.quickLinksAriaLabel
618
618
  }, null, 8, ["links", "nav-aria-label"])),
619
- B(M.$slots, "after-quick-links", {}, void 0, !0),
620
- o(i) ? (u(), k(E, ee({ key: 1 }, o(i), {
619
+ j(M.$slots, "after-quick-links", {}, void 0, !0),
620
+ l(A) ? (u(), k(E, ee({ key: 1 }, l(A), {
621
621
  onSelect: T[2] || (T[2] = (x) => n("languageSelect", x))
622
622
  }), null, 16)) : D("", !0)
623
623
  ]),
@@ -634,10 +634,10 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
634
634
  ])) : D("", !0)
635
635
  ])
636
636
  ]),
637
- e.showSearch || o(C) || e.quickLinks && e.quickLinks.length || o(i) ? (u(), g("div", {
637
+ e.showSearch || l(C) || e.quickLinks && e.quickLinks.length || l(A) ? (u(), g("div", {
638
638
  key: 0,
639
639
  id: "header-navigation",
640
- class: F(["fr-header__menu fr-modal", { "fr-modal--opened": o(s) }]),
640
+ class: F(["fr-header__menu fr-modal", { "fr-modal--opened": l(o) }]),
641
641
  "aria-label": e.menuModalLabel,
642
642
  role: "dialog",
643
643
  "aria-modal": "true"
@@ -651,24 +651,24 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
651
651
  onClick: T[5] || (T[5] = se((x) => c(), ["prevent", "stop"]))
652
652
  }, Z(e.closeMenuModalLabel), 1),
653
653
  y("div", Mn, [
654
- o(i) ? (u(), k(E, ee({ key: 0 }, o(i), {
655
- onSelect: T[6] || (T[6] = (x) => o(i).currentLanguage = x.codeIso)
654
+ l(A) ? (u(), k(E, ee({ key: 0 }, l(A), {
655
+ onSelect: T[6] || (T[6] = (x) => l(A).currentLanguage = x.codeIso)
656
656
  }), null, 16)) : D("", !0),
657
- B(M.$slots, "before-quick-links", {}, void 0, !0),
658
- o(A) ? (u(), k(ft, {
657
+ j(M.$slots, "before-quick-links", {}, void 0, !0),
658
+ l(i) ? (u(), k(ft, {
659
659
  key: 1,
660
660
  role: "navigation",
661
661
  links: e.quickLinks,
662
662
  "nav-aria-label": e.quickLinksAriaLabel,
663
- onLinkClick: o(I)
663
+ onLinkClick: l(I)
664
664
  }, null, 8, ["links", "nav-aria-label", "onLinkClick"])) : D("", !0),
665
- B(M.$slots, "after-quick-links", {}, void 0, !0)
665
+ j(M.$slots, "after-quick-links", {}, void 0, !0)
666
666
  ]),
667
- o(s) ? B(M.$slots, "mainnav", {
667
+ l(o) ? j(M.$slots, "mainnav", {
668
668
  key: 0,
669
669
  hidemodal: c
670
670
  }, void 0, !0) : D("", !0),
671
- o(l) ? (u(), g("div", pn, [
671
+ l(s) ? (u(), g("div", pn, [
672
672
  P(L, {
673
673
  "searchbar-id": e.searchbarId,
674
674
  "model-value": e.modelValue,
@@ -679,12 +679,12 @@ const rn = /* @__PURE__ */ W(tn, [["render", nn]]), An = {
679
679
  ])) : D("", !0)
680
680
  ])
681
681
  ], 10, yn)) : D("", !0),
682
- B(M.$slots, "default", {}, void 0, !0)
682
+ j(M.$slots, "default", {}, void 0, !0)
683
683
  ])
684
684
  ]),
685
685
  y("div", Nn, [
686
- o(C) && !o(s) ? (u(), g("div", Tn, [
687
- B(M.$slots, "mainnav", { hidemodal: c }, void 0, !0)
686
+ l(C) && !l(o) ? (u(), g("div", Tn, [
687
+ j(M.$slots, "mainnav", { hidemodal: c }, void 0, !0)
688
688
  ])) : D("", !0)
689
689
  ])
690
690
  ]);
@@ -724,7 +724,7 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
724
724
  ...e.height && { height: e.height }
725
725
  }));
726
726
  return (a, n) => (u(), g("div", wn, [
727
- P(o(On), ee(o(t), { class: "logo" }), null, 16)
727
+ P(l(On), ee(l(t), { class: "logo" }), null, 16)
728
728
  ]));
729
729
  }
730
730
  }), Dl = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-0e512b24"]]), Ll = /* @__PURE__ */ O({
@@ -734,9 +734,9 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
734
734
  icon: {}
735
735
  },
736
736
  setup(e) {
737
- return (t, a) => B(t.$slots, "default");
737
+ return (t, a) => j(t.$slots, "default");
738
738
  }
739
- }), kn = { class: "title-container" }, zn = { class: "n6" }, xn = { class: "accordion-content-container" }, jn = /* @__PURE__ */ O({
739
+ }), kn = { class: "title-container" }, zn = { class: "n6" }, xn = { class: "accordion-content-container" }, Bn = /* @__PURE__ */ O({
740
740
  __name: "AvAccordionsGroup",
741
741
  props: /* @__PURE__ */ ve({
742
742
  activeAccordion: {}
@@ -746,40 +746,40 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
746
746
  }),
747
747
  emits: /* @__PURE__ */ ve(["update:activeAccordion"], ["update:activeAccordion"]),
748
748
  setup(e) {
749
- const t = ie(), a = p(() => {
750
- var i;
751
- return ((i = t.default) == null ? void 0 : i.call(t)) || [];
749
+ const t = Ae(), a = p(() => {
750
+ var A;
751
+ return ((A = t.default) == null ? void 0 : A.call(t)) || [];
752
752
  }), n = ke(e, "activeAccordion"), r = `accordion-group-${crypto.randomUUID()}`;
753
- return (i, A) => (u(), k(o(la), {
753
+ return (A, i) => (u(), k(l(la), {
754
754
  modelValue: n.value,
755
- "onUpdate:modelValue": A[0] || (A[0] = (l) => n.value = l),
755
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => n.value = s),
756
756
  role: "group",
757
757
  "aria-label": "Accordion group"
758
758
  }, {
759
759
  default: R(() => [
760
- (u(!0), g(_, null, re(o(a), (l, s) => (u(), k(o(sa), {
761
- id: `${r}-accordion-${s}`,
762
- key: s,
763
- "aria-labelledby": `accordion-title-${s}`,
764
- "aria-describedby": `accordion-content-${s}`
760
+ (u(!0), g(_, null, re(l(a), (s, o) => (u(), k(l(sa), {
761
+ id: `${r}-accordion-${o}`,
762
+ key: o,
763
+ "aria-labelledby": `accordion-title-${o}`,
764
+ "aria-describedby": `accordion-content-${o}`
765
765
  }, {
766
766
  title: R(() => {
767
767
  var c, d, f;
768
768
  return [
769
769
  y("div", kn, [
770
- (c = l.props) != null && c.icon ? (u(), k(ne, {
770
+ (c = s.props) != null && c.icon ? (u(), k(ne, {
771
771
  key: 0,
772
772
  size: 2,
773
- name: (d = l.props) == null ? void 0 : d.icon,
773
+ name: (d = s.props) == null ? void 0 : d.icon,
774
774
  color: "var(--icon)"
775
775
  }, null, 8, ["name"])) : D("", !0),
776
- y("h6", zn, Z((f = l.props) == null ? void 0 : f.title), 1)
776
+ y("h6", zn, Z((f = s.props) == null ? void 0 : f.title), 1)
777
777
  ])
778
778
  ];
779
779
  }),
780
780
  default: R(() => [
781
781
  y("div", xn, [
782
- (u(), k(ue(l.children.default)))
782
+ (u(), k(ue(s.children.default)))
783
783
  ])
784
784
  ]),
785
785
  _: 2
@@ -788,47 +788,52 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
788
788
  _: 1
789
789
  }, 8, ["modelValue"]));
790
790
  }
791
- }), Ol = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-efeab1a6"]]), wl = {
791
+ }), Ol = /* @__PURE__ */ W(Bn, [["__scopeId", "data-v-efeab1a6"]]), wl = {
792
792
  name: "AvButton",
793
793
  props: ["label", "variant", "type", "disabled", "isLoading"],
794
794
  emits: ["click"],
795
795
  template: `<button :disabled="disabled" @click="$emit('click')">{{ label }}</button>`
796
- }, Bn = { class: "av-cancel-confirm-buttons-container" }, Pn = /* @__PURE__ */ O({
796
+ }, jn = { class: "av-cancel-confirm-buttons-container" }, Pn = /* @__PURE__ */ O({
797
797
  __name: "AvCancelConfirmButtons",
798
798
  props: {
799
799
  cancelLabel: {},
800
800
  cancelIcon: { default: () => Y.CLOSE_CIRCLE_OUTLINE },
801
+ cancelDisabled: { type: Boolean },
802
+ cancelIsLoading: { type: Boolean },
801
803
  confirmLabel: {},
802
804
  confirmIcon: { default: () => Y.CLOSE_CIRCLE_OUTLINE },
803
- isLoading: { type: Boolean }
805
+ confirmDisabled: { type: Boolean },
806
+ confirmIsLoading: { type: Boolean }
804
807
  },
805
808
  emits: ["cancel", "confirm"],
806
809
  setup(e, { emit: t }) {
807
810
  const a = t;
808
- return (n, r) => (u(), g("div", Bn, [
809
- e.cancelLabel ? (u(), k(o(me), {
811
+ return (n, r) => (u(), g("div", jn, [
812
+ e.cancelLabel ? (u(), k(l(me), {
810
813
  key: 0,
811
814
  icon: e.cancelIcon,
812
815
  label: e.cancelLabel,
813
816
  title: e.cancelLabel,
814
817
  variant: "OUTLINED",
815
- "is-loading": e.isLoading,
818
+ "is-loading": e.cancelIsLoading,
819
+ disabled: e.cancelDisabled,
816
820
  size: "sm",
817
821
  onClick: r[0] || (r[0] = () => a("cancel"))
818
- }, null, 8, ["icon", "label", "title", "is-loading"])) : D("", !0),
819
- e.confirmLabel ? (u(), k(o(me), {
822
+ }, null, 8, ["icon", "label", "title", "is-loading", "disabled"])) : D("", !0),
823
+ e.confirmLabel ? (u(), k(l(me), {
820
824
  key: 1,
821
825
  icon: e.confirmIcon,
822
826
  label: e.confirmLabel,
823
827
  title: e.confirmLabel,
824
828
  variant: "FLAT",
825
- "is-loading": e.isLoading,
829
+ "is-loading": e.confirmIsLoading,
830
+ disabled: e.confirmDisabled,
826
831
  size: "sm",
827
832
  onClick: r[1] || (r[1] = () => a("confirm"))
828
- }, null, 8, ["icon", "label", "title", "is-loading"])) : D("", !0)
833
+ }, null, 8, ["icon", "label", "title", "is-loading", "disabled"])) : D("", !0)
829
834
  ]));
830
835
  }
831
- }), Wn = /* @__PURE__ */ W(Pn, [["__scopeId", "data-v-60461bd3"]]), Vn = ["title", "aria-label"], Un = { class: "av-rich-button__line" }, Xn = { class: "av-rich-button__left" }, Hn = /* @__PURE__ */ O({
836
+ }), Wn = /* @__PURE__ */ W(Pn, [["__scopeId", "data-v-b2b6579f"]]), Vn = ["title", "aria-label"], Un = { class: "av-rich-button__line" }, Xn = { class: "av-rich-button__left" }, Hn = /* @__PURE__ */ O({
832
837
  __name: "AvRichButton",
833
838
  props: {
834
839
  label: {},
@@ -857,7 +862,7 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
857
862
  color: "var(--dark-background-primary1)",
858
863
  size: 1.5
859
864
  }, null, 8, ["name"])) : D("", !0),
860
- B(t.$slots, "default", {}, void 0, !0)
865
+ j(t.$slots, "default", {}, void 0, !0)
861
866
  ]),
862
867
  e.iconRight ? (u(), k(ne, {
863
868
  key: 0,
@@ -880,8 +885,8 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
880
885
  },
881
886
  setup(e) {
882
887
  return (t, a) => e.error || e.validMessage ? (u(), g("div", Zn, [
883
- P(ja, {
884
- icon: e.error ? o(Y).CLOSE_CIRCLE_OUTLINE : o(Y).CHECK_CIRCLE_OUTLINE,
888
+ P(Ba, {
889
+ icon: e.error ? l(Y).CLOSE_CIRCLE_OUTLINE : l(Y).CHECK_CIRCLE_OUTLINE,
885
890
  "icon-color": e.error ? "var(--dark-background-error)" : "var(--dark-background-success)",
886
891
  text: e.error ? e.error : e.validMessage,
887
892
  "text-color": e.error ? "var(--dark-background-error)" : "var(--dark-background-success)",
@@ -921,21 +926,21 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
921
926
  v38bbeb48: I.maxWidth
922
927
  }));
923
928
  const a = t, n = p(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), r = J(!1);
924
- function i(I) {
929
+ function A(I) {
925
930
  const m = n.value;
926
931
  return m ? m.split(",").map((M) => M.trim().toLowerCase()).some((M) => M.startsWith(".") ? I.name.toLowerCase().endsWith(M) : M.includes("/") ? I.type === M || I.type.startsWith(`${M.split("/")[0]}/`) : !1) : !0;
927
932
  }
928
- async function A(I) {
933
+ async function i(I) {
929
934
  var C, M;
930
935
  if (I.preventDefault(), r.value = !1, e.disabled || !((M = (C = I.dataTransfer) == null ? void 0 : C.files) != null && M.length))
931
936
  return;
932
- const m = Array.from(I.dataTransfer.files).filter(i);
937
+ const m = Array.from(I.dataTransfer.files).filter(A);
933
938
  await Re(), m.length ? (a("change", m), a("update:modelValue", m[0] ?? "")) : a("onDropAcceptTypeError");
934
939
  }
935
- function l(I) {
940
+ function s(I) {
936
941
  I.preventDefault(), e.disabled || (r.value = !0);
937
942
  }
938
- function s() {
943
+ function o() {
939
944
  r.value = !1;
940
945
  }
941
946
  function c(I) {
@@ -954,34 +959,34 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
954
959
  }
955
960
  ],
956
961
  "aria-label": e.ariaLabel,
957
- onDragover: l,
958
- onDragleave: s,
959
- onDrop: A
962
+ onDragover: s,
963
+ onDragleave: o,
964
+ onDrop: i
960
965
  }));
961
- function h(I) {
966
+ function b(I) {
962
967
  var m;
963
968
  I ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (m = e.onDeleteFile) == null || m.call(e);
964
969
  }
965
970
  return (I, m) => (u(), g(_, null, [
966
- (u(), k(ue(o(d) ? "div" : "label"), ee(o(d) ? {} : o(f), {
967
- class: o(d) ? "file-preview-container" : ""
971
+ (u(), k(ue(l(d) ? "div" : "label"), ee(l(d) ? {} : l(f), {
972
+ class: l(d) ? "file-preview-container" : ""
968
973
  }), {
969
974
  default: R(() => [
970
975
  y("div", {
971
- class: F(o(d) ? "" : "file-upload-container")
976
+ class: F(l(d) ? "" : "file-upload-container")
972
977
  }, [
973
978
  y("div", Yn, [
974
979
  y("div", Rn, [
975
- B(I.$slots, "left", {}, () => [
980
+ j(I.$slots, "left", {}, () => [
976
981
  P(ne, {
977
982
  size: 2.5,
978
- name: o(Y).ATTACHMENT_PLUS,
983
+ name: l(Y).ATTACHMENT_PLUS,
979
984
  color: "var(--icon)"
980
985
  }, null, 8, ["name"])
981
986
  ], !0)
982
987
  ]),
983
988
  y("div", Fn, [
984
- o(d) ? (u(), g("div", Kn, [
989
+ l(d) ? (u(), g("div", Kn, [
985
990
  y("span", Gn, Z(e.fileName || e.modelValue.name), 1)
986
991
  ])) : (u(), g("div", Jn, [
987
992
  y("span", _n, Z(e.title), 1),
@@ -993,19 +998,19 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
993
998
  }, null, 8, ["valid-message", "error"])
994
999
  ]),
995
1000
  e.disabled ? D("", !0) : (u(), g("div", er, [
996
- o(d) ? (u(), k(me, {
1001
+ l(d) ? (u(), k(me, {
997
1002
  key: 0,
998
1003
  label: e.deleteButtonLabel,
999
1004
  theme: "SECONDARY",
1000
- onClick: m[0] || (m[0] = () => h(e.modelValue))
1005
+ onClick: m[0] || (m[0] = () => b(e.modelValue))
1001
1006
  }, null, 8, ["label"])) : (u(), k(ne, {
1002
1007
  key: 1,
1003
1008
  size: 1.5,
1004
- name: o(Y).TRAY_UPLOAD,
1009
+ name: l(Y).TRAY_UPLOAD,
1005
1010
  color: "var(--dark-background-primary1)"
1006
1011
  }, null, 8, ["name"]))
1007
1012
  ])),
1008
- o(d) ? D("", !0) : (u(), g("input", ee({
1013
+ l(d) ? D("", !0) : (u(), g("input", ee({
1009
1014
  key: 1,
1010
1015
  id: e.id,
1011
1016
  class: "fr-upload",
@@ -1014,7 +1019,7 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
1014
1019
  }, I.$attrs, {
1015
1020
  disabled: e.disabled,
1016
1021
  "aria-disabled": e.disabled,
1017
- accept: o(n),
1022
+ accept: l(n),
1018
1023
  onChange: m[1] || (m[1] = (C) => c(C))
1019
1024
  }), null, 16, tr))
1020
1025
  ])
@@ -1023,7 +1028,7 @@ const On = { render: Ln }, wn = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ O
1023
1028
  _: 3
1024
1029
  }, 16, ["class"])),
1025
1030
  y("span", ar, [
1026
- B(I.$slots, "hint", {}, void 0, !0)
1031
+ j(I.$slots, "hint", {}, void 0, !0)
1027
1032
  ])
1028
1033
  ], 64));
1029
1034
  }
@@ -1034,25 +1039,25 @@ function ge(e, t) {
1034
1039
  function le(e, t) {
1035
1040
  return ge(t || e, e);
1036
1041
  }
1037
- let Ar = {};
1042
+ let ir = {};
1038
1043
  function Fe() {
1039
- return Ar;
1044
+ return ir;
1040
1045
  }
1041
1046
  function ze(e, t) {
1042
- var l, s, c, d;
1043
- const a = Fe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((d = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = le(e, t == null ? void 0 : t.in), i = r.getDay(), A = (i < n ? 7 : 0) + i - n;
1044
- return r.setDate(r.getDate() - A), r.setHours(0, 0, 0, 0), r;
1047
+ var s, o, c, d;
1048
+ const a = Fe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((o = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : o.weekStartsOn) ?? a.weekStartsOn ?? ((d = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = le(e, t == null ? void 0 : t.in), A = r.getDay(), i = (A < n ? 7 : 0) + A - n;
1049
+ return r.setDate(r.getDate() - i), r.setHours(0, 0, 0, 0), r;
1045
1050
  }
1046
1051
  function Ue(e, t) {
1047
1052
  return ze(e, { ...t, weekStartsOn: 1 });
1048
1053
  }
1049
- function jt(e, t) {
1054
+ function Bt(e, t) {
1050
1055
  const a = le(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = ge(a, 0);
1051
1056
  r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
1052
- const i = Ue(r), A = ge(a, 0);
1053
- A.setFullYear(n, 0, 4), A.setHours(0, 0, 0, 0);
1054
- const l = Ue(A);
1055
- return a.getTime() >= i.getTime() ? n + 1 : a.getTime() >= l.getTime() ? n : n - 1;
1057
+ const A = Ue(r), i = ge(a, 0);
1058
+ i.setFullYear(n, 0, 4), i.setHours(0, 0, 0, 0);
1059
+ const s = Ue(i);
1060
+ return a.getTime() >= A.getTime() ? n + 1 : a.getTime() >= s.getTime() ? n : n - 1;
1056
1061
  }
1057
1062
  function mt(e) {
1058
1063
  const t = le(e), a = new Date(
@@ -1068,7 +1073,7 @@ function mt(e) {
1068
1073
  );
1069
1074
  return a.setUTCFullYear(t.getFullYear()), +e - +a;
1070
1075
  }
1071
- function ir(e, ...t) {
1076
+ function Ar(e, ...t) {
1072
1077
  const a = ge.bind(
1073
1078
  null,
1074
1079
  t.find((n) => typeof n == "object")
@@ -1080,21 +1085,21 @@ function gt(e, t) {
1080
1085
  return a.setHours(0, 0, 0, 0), a;
1081
1086
  }
1082
1087
  function or(e, t, a) {
1083
- const [n, r] = ir(
1088
+ const [n, r] = Ar(
1084
1089
  a == null ? void 0 : a.in,
1085
1090
  e,
1086
1091
  t
1087
- ), i = gt(n), A = gt(r), l = +i - mt(i), s = +A - mt(A);
1088
- return Math.round((l - s) / rr);
1092
+ ), A = gt(n), i = gt(r), s = +A - mt(A), o = +i - mt(i);
1093
+ return Math.round((s - o) / rr);
1089
1094
  }
1090
1095
  function lr(e, t) {
1091
- const a = jt(e, t), n = ge(e, 0);
1096
+ const a = Bt(e, t), n = ge(e, 0);
1092
1097
  return n.setFullYear(a, 0, 4), n.setHours(0, 0, 0, 0), Ue(n);
1093
1098
  }
1094
1099
  function sr(e) {
1095
1100
  return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
1096
1101
  }
1097
- function Bt(e) {
1102
+ function jt(e) {
1098
1103
  return !(!sr(e) && typeof e != "number" || isNaN(+le(e)));
1099
1104
  }
1100
1105
  function cr(e, t) {
@@ -1209,23 +1214,23 @@ const fr = {
1209
1214
  tomorrow: "'tomorrow at' p",
1210
1215
  nextWeek: "eeee 'at' p",
1211
1216
  other: "P"
1212
- }, hr = (e, t, a, n) => Ir[e];
1217
+ }, br = (e, t, a, n) => Ir[e];
1213
1218
  function Qe(e) {
1214
1219
  return (t, a) => {
1215
1220
  const n = a != null && a.context ? String(a.context) : "standalone";
1216
1221
  let r;
1217
1222
  if (n === "formatting" && e.formattingValues) {
1218
- const A = e.defaultFormattingWidth || e.defaultWidth, l = a != null && a.width ? String(a.width) : A;
1219
- r = e.formattingValues[l] || e.formattingValues[A];
1223
+ const i = e.defaultFormattingWidth || e.defaultWidth, s = a != null && a.width ? String(a.width) : i;
1224
+ r = e.formattingValues[s] || e.formattingValues[i];
1220
1225
  } else {
1221
- const A = e.defaultWidth, l = a != null && a.width ? String(a.width) : e.defaultWidth;
1222
- r = e.values[l] || e.values[A];
1226
+ const i = e.defaultWidth, s = a != null && a.width ? String(a.width) : e.defaultWidth;
1227
+ r = e.values[s] || e.values[i];
1223
1228
  }
1224
- const i = e.argumentCallback ? e.argumentCallback(t) : t;
1225
- return r[i];
1229
+ const A = e.argumentCallback ? e.argumentCallback(t) : t;
1230
+ return r[A];
1226
1231
  };
1227
1232
  }
1228
- const br = {
1233
+ const hr = {
1229
1234
  narrow: ["B", "A"],
1230
1235
  abbreviated: ["BC", "AD"],
1231
1236
  wide: ["Before Christ", "Anno Domini"]
@@ -1353,7 +1358,7 @@ const br = {
1353
1358
  }, Tr = {
1354
1359
  ordinalNumber: Nr,
1355
1360
  era: Qe({
1356
- values: br,
1361
+ values: hr,
1357
1362
  defaultWidth: "wide"
1358
1363
  }),
1359
1364
  quarter: Qe({
@@ -1378,19 +1383,19 @@ const br = {
1378
1383
  };
1379
1384
  function De(e) {
1380
1385
  return (t, a = {}) => {
1381
- const n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
1382
- if (!i)
1386
+ const n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], A = t.match(r);
1387
+ if (!A)
1383
1388
  return null;
1384
- const A = i[0], l = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(l) ? Dr(l, (f) => f.test(A)) : (
1389
+ const i = A[0], s = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], o = Array.isArray(s) ? Dr(s, (f) => f.test(i)) : (
1385
1390
  // [TODO] -- I challenge you to fix the type
1386
- Qr(l, (f) => f.test(A))
1391
+ Qr(s, (f) => f.test(i))
1387
1392
  );
1388
1393
  let c;
1389
- c = e.valueCallback ? e.valueCallback(s) : s, c = a.valueCallback ? (
1394
+ c = e.valueCallback ? e.valueCallback(o) : o, c = a.valueCallback ? (
1390
1395
  // [TODO] -- I challenge you to fix the type
1391
1396
  a.valueCallback(c)
1392
1397
  ) : c;
1393
- const d = t.slice(A.length);
1398
+ const d = t.slice(i.length);
1394
1399
  return { value: c, rest: d };
1395
1400
  };
1396
1401
  }
@@ -1408,12 +1413,12 @@ function Lr(e) {
1408
1413
  return (t, a = {}) => {
1409
1414
  const n = t.match(e.matchPattern);
1410
1415
  if (!n) return null;
1411
- const r = n[0], i = t.match(e.parsePattern);
1412
- if (!i) return null;
1413
- let A = e.valueCallback ? e.valueCallback(i[0]) : i[0];
1414
- A = a.valueCallback ? a.valueCallback(A) : A;
1415
- const l = t.slice(r.length);
1416
- return { value: A, rest: l };
1416
+ const r = n[0], A = t.match(e.parsePattern);
1417
+ if (!A) return null;
1418
+ let i = e.valueCallback ? e.valueCallback(A[0]) : A[0];
1419
+ i = a.valueCallback ? a.valueCallback(i) : i;
1420
+ const s = t.slice(r.length);
1421
+ return { value: i, rest: s };
1417
1422
  };
1418
1423
  }
1419
1424
  const Or = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, Sr = {
@@ -1428,11 +1433,11 @@ const Or = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, Sr = {
1428
1433
  wide: /^[1234](th|st|nd|rd)? quarter/i
1429
1434
  }, xr = {
1430
1435
  any: [/1/i, /2/i, /3/i, /4/i]
1431
- }, jr = {
1436
+ }, Br = {
1432
1437
  narrow: /^[jfmasond]/i,
1433
1438
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1434
1439
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1435
- }, Br = {
1440
+ }, jr = {
1436
1441
  narrow: [
1437
1442
  /^j/i,
1438
1443
  /^f/i,
@@ -1503,9 +1508,9 @@ const Or = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, Sr = {
1503
1508
  valueCallback: (e) => e + 1
1504
1509
  }),
1505
1510
  month: De({
1506
- matchPatterns: jr,
1511
+ matchPatterns: Br,
1507
1512
  defaultMatchWidth: "wide",
1508
- parsePatterns: Br,
1513
+ parsePatterns: jr,
1509
1514
  defaultParseWidth: "any"
1510
1515
  }),
1511
1516
  day: De({
@@ -1524,7 +1529,7 @@ const Or = /^(\d+)(th|st|nd|rd)?/i, wr = /\d+/i, Sr = {
1524
1529
  code: "en-US",
1525
1530
  formatDistance: dr,
1526
1531
  formatLong: gr,
1527
- formatRelative: hr,
1532
+ formatRelative: br,
1528
1533
  localize: Tr,
1529
1534
  match: Xr,
1530
1535
  options: {
@@ -1541,18 +1546,18 @@ function qr(e, t) {
1541
1546
  return Math.round(n / xt) + 1;
1542
1547
  }
1543
1548
  function Pt(e, t) {
1544
- var d, f, h, I;
1545
- const a = le(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = Fe(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, A = ge((t == null ? void 0 : t.in) || e, 0);
1546
- A.setFullYear(n + 1, 0, i), A.setHours(0, 0, 0, 0);
1547
- const l = ze(A, t), s = ge((t == null ? void 0 : t.in) || e, 0);
1548
- s.setFullYear(n, 0, i), s.setHours(0, 0, 0, 0);
1549
- const c = ze(s, t);
1550
- return +a >= +l ? n + 1 : +a >= +c ? n : n - 1;
1549
+ var d, f, b, I;
1550
+ const a = le(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = Fe(), A = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, i = ge((t == null ? void 0 : t.in) || e, 0);
1551
+ i.setFullYear(n + 1, 0, A), i.setHours(0, 0, 0, 0);
1552
+ const s = ze(i, t), o = ge((t == null ? void 0 : t.in) || e, 0);
1553
+ o.setFullYear(n, 0, A), o.setHours(0, 0, 0, 0);
1554
+ const c = ze(o, t);
1555
+ return +a >= +s ? n + 1 : +a >= +c ? n : n - 1;
1551
1556
  }
1552
1557
  function Yr(e, t) {
1553
- var l, s, c, d;
1554
- const a = Fe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((d = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = Pt(e, t), i = ge((t == null ? void 0 : t.in) || e, 0);
1555
- return i.setFullYear(r, 0, n), i.setHours(0, 0, 0, 0), ze(i, t);
1558
+ var s, o, c, d;
1559
+ const a = Fe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((o = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : o.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((d = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = Pt(e, t), A = ge((t == null ? void 0 : t.in) || e, 0);
1560
+ return A.setFullYear(r, 0, n), A.setHours(0, 0, 0, 0), ze(A, t);
1556
1561
  }
1557
1562
  function Rr(e, t) {
1558
1563
  const a = le(e, t == null ? void 0 : t.in), n = +ze(a, t) - +Yr(a, t);
@@ -1652,16 +1657,16 @@ const fe = {
1652
1657
  },
1653
1658
  // Local week-numbering year
1654
1659
  Y: function(e, t, a, n) {
1655
- const r = Pt(e, n), i = r > 0 ? r : 1 - r;
1660
+ const r = Pt(e, n), A = r > 0 ? r : 1 - r;
1656
1661
  if (t === "YY") {
1657
- const A = i % 100;
1658
- return H(A, 2);
1662
+ const i = A % 100;
1663
+ return H(i, 2);
1659
1664
  }
1660
- return t === "Yo" ? a.ordinalNumber(i, { unit: "year" }) : H(i, t.length);
1665
+ return t === "Yo" ? a.ordinalNumber(A, { unit: "year" }) : H(A, t.length);
1661
1666
  },
1662
1667
  // ISO week-numbering year
1663
1668
  R: function(e, t) {
1664
- const a = jt(e);
1669
+ const a = Bt(e);
1665
1670
  return H(a, t.length);
1666
1671
  },
1667
1672
  // Extended year. This is a single number designating the year of this calendar system.
@@ -1858,17 +1863,17 @@ const fe = {
1858
1863
  },
1859
1864
  // Local day of week
1860
1865
  e: function(e, t, a, n) {
1861
- const r = e.getDay(), i = (r - n.weekStartsOn + 8) % 7 || 7;
1866
+ const r = e.getDay(), A = (r - n.weekStartsOn + 8) % 7 || 7;
1862
1867
  switch (t) {
1863
1868
  // Numerical value (Nth day of week with current locale or weekStartsOn)
1864
1869
  case "e":
1865
- return String(i);
1870
+ return String(A);
1866
1871
  // Padded numerical value
1867
1872
  case "ee":
1868
- return H(i, 2);
1873
+ return H(A, 2);
1869
1874
  // 1st, 2nd, ..., 7th
1870
1875
  case "eo":
1871
- return a.ordinalNumber(i, { unit: "day" });
1876
+ return a.ordinalNumber(A, { unit: "day" });
1872
1877
  case "eee":
1873
1878
  return a.day(r, {
1874
1879
  width: "abbreviated",
@@ -1897,17 +1902,17 @@ const fe = {
1897
1902
  },
1898
1903
  // Stand-alone local day of week
1899
1904
  c: function(e, t, a, n) {
1900
- const r = e.getDay(), i = (r - n.weekStartsOn + 8) % 7 || 7;
1905
+ const r = e.getDay(), A = (r - n.weekStartsOn + 8) % 7 || 7;
1901
1906
  switch (t) {
1902
1907
  // Numerical value (same as in `e`)
1903
1908
  case "c":
1904
- return String(i);
1909
+ return String(A);
1905
1910
  // Padded numerical value
1906
1911
  case "cc":
1907
- return H(i, t.length);
1912
+ return H(A, t.length);
1908
1913
  // 1st, 2nd, ..., 7th
1909
1914
  case "co":
1910
- return a.ordinalNumber(i, { unit: "day" });
1915
+ return a.ordinalNumber(A, { unit: "day" });
1911
1916
  case "ccc":
1912
1917
  return a.day(r, {
1913
1918
  width: "abbreviated",
@@ -2098,13 +2103,13 @@ const fe = {
2098
2103
  switch (t) {
2099
2104
  // Hours and optional minutes
2100
2105
  case "X":
2101
- return bt(n);
2106
+ return ht(n);
2102
2107
  // Hours, minutes and optional seconds without `:` delimiter
2103
2108
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2104
2109
  // so this token always has the same output as `XX`
2105
2110
  case "XXXX":
2106
2111
  case "XX":
2107
- return he(n);
2112
+ return be(n);
2108
2113
  // Hours, minutes and optional seconds with `:` delimiter
2109
2114
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2110
2115
  // so this token always has the same output as `XXX`
@@ -2112,7 +2117,7 @@ const fe = {
2112
2117
  case "XXX":
2113
2118
  // Hours and minutes with `:` delimiter
2114
2119
  default:
2115
- return he(n, ":");
2120
+ return be(n, ":");
2116
2121
  }
2117
2122
  },
2118
2123
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2121,13 +2126,13 @@ const fe = {
2121
2126
  switch (t) {
2122
2127
  // Hours and optional minutes
2123
2128
  case "x":
2124
- return bt(n);
2129
+ return ht(n);
2125
2130
  // Hours, minutes and optional seconds without `:` delimiter
2126
2131
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2127
2132
  // so this token always has the same output as `xx`
2128
2133
  case "xxxx":
2129
2134
  case "xx":
2130
- return he(n);
2135
+ return be(n);
2131
2136
  // Hours, minutes and optional seconds with `:` delimiter
2132
2137
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2133
2138
  // so this token always has the same output as `xxx`
@@ -2135,7 +2140,7 @@ const fe = {
2135
2140
  case "xxx":
2136
2141
  // Hours and minutes with `:` delimiter
2137
2142
  default:
2138
- return he(n, ":");
2143
+ return be(n, ":");
2139
2144
  }
2140
2145
  },
2141
2146
  // Timezone (GMT)
@@ -2146,11 +2151,11 @@ const fe = {
2146
2151
  case "O":
2147
2152
  case "OO":
2148
2153
  case "OOO":
2149
- return "GMT" + ht(n, ":");
2154
+ return "GMT" + bt(n, ":");
2150
2155
  // Long
2151
2156
  case "OOOO":
2152
2157
  default:
2153
- return "GMT" + he(n, ":");
2158
+ return "GMT" + be(n, ":");
2154
2159
  }
2155
2160
  },
2156
2161
  // Timezone (specific non-location)
@@ -2161,11 +2166,11 @@ const fe = {
2161
2166
  case "z":
2162
2167
  case "zz":
2163
2168
  case "zzz":
2164
- return "GMT" + ht(n, ":");
2169
+ return "GMT" + bt(n, ":");
2165
2170
  // Long
2166
2171
  case "zzzz":
2167
2172
  default:
2168
- return "GMT" + he(n, ":");
2173
+ return "GMT" + be(n, ":");
2169
2174
  }
2170
2175
  },
2171
2176
  // Seconds timestamp
@@ -2178,16 +2183,16 @@ const fe = {
2178
2183
  return H(+e, t.length);
2179
2184
  }
2180
2185
  };
2181
- function ht(e, t = "") {
2182
- const a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.trunc(n / 60), i = n % 60;
2183
- return i === 0 ? a + String(r) : a + String(r) + t + H(i, 2);
2186
+ function bt(e, t = "") {
2187
+ const a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.trunc(n / 60), A = n % 60;
2188
+ return A === 0 ? a + String(r) : a + String(r) + t + H(A, 2);
2184
2189
  }
2185
- function bt(e, t) {
2186
- return e % 60 === 0 ? (e > 0 ? "-" : "+") + H(Math.abs(e) / 60, 2) : he(e, t);
2190
+ function ht(e, t) {
2191
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + H(Math.abs(e) / 60, 2) : be(e, t);
2187
2192
  }
2188
- function he(e, t = "") {
2189
- const a = e > 0 ? "-" : "+", n = Math.abs(e), r = H(Math.trunc(n / 60), 2), i = H(n % 60, 2);
2190
- return a + r + t + i;
2193
+ function be(e, t = "") {
2194
+ const a = e > 0 ? "-" : "+", n = Math.abs(e), r = H(Math.trunc(n / 60), 2), A = H(n % 60, 2);
2195
+ return a + r + t + A;
2191
2196
  }
2192
2197
  const Ct = (e, t) => {
2193
2198
  switch (e) {
@@ -2217,23 +2222,23 @@ const Ct = (e, t) => {
2217
2222
  const a = e.match(/(P+)(p+)?/) || [], n = a[1], r = a[2];
2218
2223
  if (!r)
2219
2224
  return Ct(e, t);
2220
- let i;
2225
+ let A;
2221
2226
  switch (n) {
2222
2227
  case "P":
2223
- i = t.dateTime({ width: "short" });
2228
+ A = t.dateTime({ width: "short" });
2224
2229
  break;
2225
2230
  case "PP":
2226
- i = t.dateTime({ width: "medium" });
2231
+ A = t.dateTime({ width: "medium" });
2227
2232
  break;
2228
2233
  case "PPP":
2229
- i = t.dateTime({ width: "long" });
2234
+ A = t.dateTime({ width: "long" });
2230
2235
  break;
2231
2236
  case "PPPP":
2232
2237
  default:
2233
- i = t.dateTime({ width: "full" });
2238
+ A = t.dateTime({ width: "full" });
2234
2239
  break;
2235
2240
  }
2236
- return i.replace("{{date}}", Ct(n, t)).replace("{{time}}", Wt(r, t));
2241
+ return A.replace("{{date}}", Ct(n, t)).replace("{{time}}", Wt(r, t));
2237
2242
  }, Kr = {
2238
2243
  p: Wt,
2239
2244
  P: Fr
@@ -2241,76 +2246,76 @@ const Ct = (e, t) => {
2241
2246
  function $r(e) {
2242
2247
  return Gr.test(e);
2243
2248
  }
2244
- function eA(e) {
2249
+ function ei(e) {
2245
2250
  return Jr.test(e);
2246
2251
  }
2247
- function tA(e, t, a) {
2248
- const n = aA(e, t, a);
2252
+ function ti(e, t, a) {
2253
+ const n = ai(e, t, a);
2249
2254
  if (console.warn(n), _r.includes(e)) throw new RangeError(n);
2250
2255
  }
2251
- function aA(e, t, a) {
2256
+ function ai(e, t, a) {
2252
2257
  const n = e[0] === "Y" ? "years" : "days of the month";
2253
2258
  return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
2254
2259
  }
2255
- const nA = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, rA = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, AA = /^'([^]*?)'?$/, iA = /''/g, oA = /[a-zA-Z]/;
2256
- function lA(e, t, a) {
2257
- var d, f, h, I;
2258
- const n = Fe(), r = n.locale ?? Hr, i = n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, A = n.weekStartsOn ?? ((I = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : I.weekStartsOn) ?? 0, l = le(e, a == null ? void 0 : a.in);
2259
- if (!Bt(l))
2260
+ const ni = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ri = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ii = /^'([^]*?)'?$/, Ai = /''/g, oi = /[a-zA-Z]/;
2261
+ function li(e, t, a) {
2262
+ var d, f, b, I;
2263
+ const n = Fe(), r = n.locale ?? Hr, A = n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = n.weekStartsOn ?? ((I = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : I.weekStartsOn) ?? 0, s = le(e, a == null ? void 0 : a.in);
2264
+ if (!jt(s))
2260
2265
  throw new RangeError("Invalid time value");
2261
- let s = t.match(rA).map((m) => {
2266
+ let o = t.match(ri).map((m) => {
2262
2267
  const C = m[0];
2263
2268
  if (C === "p" || C === "P") {
2264
2269
  const M = Kr[C];
2265
2270
  return M(m, r.formatLong);
2266
2271
  }
2267
2272
  return m;
2268
- }).join("").match(nA).map((m) => {
2273
+ }).join("").match(ni).map((m) => {
2269
2274
  if (m === "''")
2270
2275
  return { isToken: !1, value: "'" };
2271
2276
  const C = m[0];
2272
2277
  if (C === "'")
2273
- return { isToken: !1, value: sA(m) };
2278
+ return { isToken: !1, value: si(m) };
2274
2279
  if (It[C])
2275
2280
  return { isToken: !0, value: m };
2276
- if (C.match(oA))
2281
+ if (C.match(oi))
2277
2282
  throw new RangeError(
2278
2283
  "Format string contains an unescaped latin alphabet character `" + C + "`"
2279
2284
  );
2280
2285
  return { isToken: !1, value: m };
2281
2286
  });
2282
- r.localize.preprocessor && (s = r.localize.preprocessor(l, s));
2287
+ r.localize.preprocessor && (o = r.localize.preprocessor(s, o));
2283
2288
  const c = {
2284
- firstWeekContainsDate: i,
2285
- weekStartsOn: A,
2289
+ firstWeekContainsDate: A,
2290
+ weekStartsOn: i,
2286
2291
  locale: r
2287
2292
  };
2288
- return s.map((m) => {
2293
+ return o.map((m) => {
2289
2294
  if (!m.isToken) return m.value;
2290
2295
  const C = m.value;
2291
- (eA(C) || $r(C)) && tA(C, t, String(e));
2296
+ (ei(C) || $r(C)) && ti(C, t, String(e));
2292
2297
  const M = It[C[0]];
2293
- return M(l, C, r.localize, c);
2298
+ return M(s, C, r.localize, c);
2294
2299
  }).join("");
2295
2300
  }
2296
- function sA(e) {
2297
- const t = e.match(AA);
2298
- return t ? t[1].replace(iA, "'") : e;
2301
+ function si(e) {
2302
+ const t = e.match(ii);
2303
+ return t ? t[1].replace(Ai, "'") : e;
2299
2304
  }
2300
- const cA = { class: "av-input__wrapper" }, uA = {
2305
+ const ci = { class: "av-input__wrapper" }, ui = {
2301
2306
  key: 0,
2302
2307
  class: "av-input__prefix"
2303
- }, dA = {
2308
+ }, di = {
2304
2309
  key: 0,
2305
2310
  class: "caption-light"
2306
- }, fA = {
2311
+ }, fi = {
2307
2312
  key: 0,
2308
2313
  class: "av-input__error",
2309
2314
  role: "alert"
2310
- }, vA = {
2315
+ }, vi = {
2311
2316
  key: 1,
2312
2317
  class: "av-input__valid"
2313
- }, mA = /* @__PURE__ */ O({
2318
+ }, mi = /* @__PURE__ */ O({
2314
2319
  __name: "AvInput",
2315
2320
  props: {
2316
2321
  id: {},
@@ -2337,33 +2342,33 @@ const cA = { class: "av-input__wrapper" }, uA = {
2337
2342
  },
2338
2343
  emits: ["update:modelValue"],
2339
2344
  setup(e, { emit: t }) {
2340
- te((h) => ({
2341
- bbb0de5c: h.width
2345
+ te((b) => ({
2346
+ bbb0de5c: b.width
2342
2347
  }));
2343
- const a = e, n = t, r = ie(), i = p(() => a.errorMessage ? Array.isArray(a.errorMessage) ? a.errorMessage : [a.errorMessage] : []), A = p(() => a.validMessage ? Array.isArray(a.validMessage) ? a.validMessage : [a.validMessage] : []), l = p(() => a.id || `av-input-${crypto.randomUUID()}`), s = p(() => !!a.errorMessage), c = p(() => f(a.minDate)), d = p(() => f(a.maxDate));
2344
- function f(h) {
2345
- if (!(a.type !== "date" && a.type !== "datetime-local" || h === void 0 || !Bt(h)))
2346
- return lA(h, "yyyy-MM-dd");
2348
+ const a = e, n = t, r = Ae(), A = p(() => a.errorMessage ? Array.isArray(a.errorMessage) ? a.errorMessage : [a.errorMessage] : []), i = p(() => a.validMessage ? Array.isArray(a.validMessage) ? a.validMessage : [a.validMessage] : []), s = p(() => a.id || `av-input-${crypto.randomUUID()}`), o = p(() => !!a.errorMessage), c = p(() => f(a.minDate)), d = p(() => f(a.maxDate));
2349
+ function f(b) {
2350
+ if (!(a.type !== "date" && a.type !== "datetime-local" || b === void 0 || !jt(b)))
2351
+ return li(b, "yyyy-MM-dd");
2347
2352
  }
2348
- return (h, I) => (u(), g("div", {
2353
+ return (b, I) => (u(), g("div", {
2349
2354
  class: F(["av-input", { "av-input--date": e.type === "date" }])
2350
2355
  }, [
2351
- y("div", cA, [
2352
- e.prefixIcon ? (u(), g("div", uA, [
2356
+ y("div", ci, [
2357
+ e.prefixIcon ? (u(), g("div", ui, [
2353
2358
  P(ne, {
2354
2359
  name: e.prefixIcon,
2355
2360
  size: 1.2
2356
2361
  }, null, 8, ["name"])
2357
2362
  ])) : D("", !0),
2358
- P(o(ua), ee({
2359
- id: o(l),
2363
+ P(l(ua), ee({
2364
+ id: l(s),
2360
2365
  "model-value": e.modelValue,
2361
2366
  label: e.label,
2362
2367
  "label-visible": e.labelVisible,
2363
2368
  "label-class": e.labelClass,
2364
2369
  hint: e.hint,
2365
2370
  "description-id": a.descriptionId,
2366
- "is-invalid": o(s),
2371
+ "is-invalid": l(o),
2367
2372
  "is-valid": e.isValid,
2368
2373
  "is-textarea": e.isTextarea,
2369
2374
  "wrapper-class": "av-input__wrapper",
@@ -2373,9 +2378,9 @@ const cA = { class: "av-input__wrapper" }, uA = {
2373
2378
  required: e.required,
2374
2379
  maxlength: e.maxlength,
2375
2380
  minlength: e.minlength
2376
- }, h.$attrs, {
2377
- max: o(d),
2378
- min: o(c),
2381
+ }, b.$attrs, {
2382
+ max: l(d),
2383
+ min: l(c),
2379
2384
  "onUpdate:modelValue": I[0] || (I[0] = (m) => n("update:modelValue", m))
2380
2385
  }), we({ _: 2 }, [
2381
2386
  r.requiredTip ? {
@@ -2386,35 +2391,35 @@ const cA = { class: "av-input__wrapper" }, uA = {
2386
2391
  key: "0"
2387
2392
  } : void 0
2388
2393
  ]), 1040, ["id", "model-value", "label", "label-visible", "label-class", "hint", "description-id", "is-invalid", "is-valid", "is-textarea", "placeholder", "type", "disabled", "required", "maxlength", "minlength", "max", "min"]),
2389
- B(h.$slots, "customCaptions", {
2394
+ j(b.$slots, "customCaptions", {
2390
2395
  currentValue: e.modelValue,
2391
2396
  maxlength: e.maxlength
2392
2397
  }, () => {
2393
2398
  var m;
2394
2399
  return [
2395
- e.maxlength ? (u(), g("span", dA, Z((m = e.modelValue) == null ? void 0 : m.toString().length) + " / " + Z(e.maxlength), 1)) : D("", !0)
2400
+ e.maxlength ? (u(), g("span", di, Z((m = e.modelValue) == null ? void 0 : m.toString().length) + " / " + Z(e.maxlength), 1)) : D("", !0)
2396
2401
  ];
2397
2402
  }, !0)
2398
2403
  ]),
2399
- o(i).length > 0 ? (u(), g("div", fA, [
2400
- (u(!0), g(_, null, re(o(i), (m, C) => (u(), g("div", {
2404
+ l(A).length > 0 ? (u(), g("div", fi, [
2405
+ (u(!0), g(_, null, re(l(A), (m, C) => (u(), g("div", {
2401
2406
  key: C,
2402
2407
  class: "av-input__error-message"
2403
2408
  }, Z(m), 1))), 128))
2404
2409
  ])) : D("", !0),
2405
- o(A).length > 0 ? (u(), g("div", vA, [
2406
- (u(!0), g(_, null, re(o(A), (m, C) => (u(), g("div", {
2410
+ l(i).length > 0 ? (u(), g("div", vi, [
2411
+ (u(!0), g(_, null, re(l(i), (m, C) => (u(), g("div", {
2407
2412
  key: C,
2408
2413
  class: "av-input__valid-message"
2409
2414
  }, Z(m), 1))), 128))
2410
2415
  ])) : D("", !0)
2411
2416
  ], 2));
2412
2417
  }
2413
- }), gA = /* @__PURE__ */ W(mA, [["__scopeId", "data-v-055da9a3"]]), zl = {
2418
+ }), gi = /* @__PURE__ */ W(mi, [["__scopeId", "data-v-055da9a3"]]), zl = {
2414
2419
  name: "AvList",
2415
2420
  props: ["size"],
2416
2421
  template: '<div class="av-list"><slot /></div>'
2417
- }, IA = ["role", "aria-label", "aria-labelledby", "aria-describedby"], hA = /* @__PURE__ */ O({
2422
+ }, Ii = ["role", "aria-label", "aria-labelledby", "aria-describedby"], bi = /* @__PURE__ */ O({
2418
2423
  __name: "AvList",
2419
2424
  props: {
2420
2425
  backgroundColor: { default: "transparent" },
@@ -2437,31 +2442,31 @@ const cA = { class: "av-input__wrapper" }, uA = {
2437
2442
  v718f62b9: r.borderColor
2438
2443
  }));
2439
2444
  const t = p(() => `av-list--${e.size}`), a = p(() => e.bordered ? "av-list--bordered" : ""), n = p(() => e.divided ? "av-list--divided" : "");
2440
- return (r, i) => (u(), g("div", {
2441
- class: F(["av-list", [o(t), o(a), o(n)]]),
2445
+ return (r, A) => (u(), g("div", {
2446
+ class: F(["av-list", [l(t), l(a), l(n)]]),
2442
2447
  role: e.role,
2443
2448
  "aria-label": e.ariaLabel,
2444
2449
  "aria-labelledby": e.ariaLabelledby,
2445
2450
  "aria-describedby": e.ariaDescribedby
2446
2451
  }, [
2447
- B(r.$slots, "default", {}, void 0, !0)
2448
- ], 10, IA));
2452
+ j(r.$slots, "default", {}, void 0, !0)
2453
+ ], 10, Ii));
2449
2454
  }
2450
- }), Vt = /* @__PURE__ */ W(hA, [["__scopeId", "data-v-f74989f7"]]), xl = {
2455
+ }), Vt = /* @__PURE__ */ W(bi, [["__scopeId", "data-v-f74989f7"]]), xl = {
2451
2456
  name: "AvListItem",
2452
2457
  props: ["clickable", "hoverBackgroundColor", "selected", "icon", "iconSize", "iconColor", "colorOnHover"],
2453
2458
  emits: ["click"],
2454
2459
  template: `<div class="av-list-item-stub" @click="$emit('click')"><slot /></div>`
2455
- }, bA = ["role"], CA = {
2460
+ }, hi = ["role"], Ci = {
2456
2461
  key: 0,
2457
2462
  class: "av-list-item__icon"
2458
- }, yA = { class: "av-list-item__content" }, EA = {
2463
+ }, yi = { class: "av-list-item__content" }, Ei = {
2459
2464
  key: 0,
2460
2465
  class: "av-list-item__title"
2461
- }, MA = {
2466
+ }, Mi = {
2462
2467
  key: 1,
2463
2468
  class: "av-list-item__description"
2464
- }, pA = { key: 2 }, NA = /* @__PURE__ */ O({
2469
+ }, pi = { key: 2 }, Ni = /* @__PURE__ */ O({
2465
2470
  __name: "AvListItem",
2466
2471
  props: {
2467
2472
  icon: {},
@@ -2492,12 +2497,12 @@ const cA = { class: "av-input__wrapper" }, uA = {
2492
2497
  v479455c7: c.descriptionColor,
2493
2498
  v6281c2f9: c.hoverBackgroundColor
2494
2499
  }));
2495
- const t = ie(), a = p(() => e.clickable ? e.tag : "div"), n = p(() => e.ariaLabel ? e.ariaLabel : e.title && e.description ? `${e.title}, ${e.description}` : e.title || e.description || void 0);
2500
+ const t = Ae(), a = p(() => e.clickable ? e.tag : "div"), n = p(() => e.ariaLabel ? e.ariaLabel : e.title && e.description ? `${e.title}, ${e.description}` : e.title || e.description || void 0);
2496
2501
  function r(c) {
2497
2502
  var d;
2498
2503
  !e.clickable || e.disabled || (d = e.onClick) == null || d.call(e, c);
2499
2504
  }
2500
- function i(c) {
2505
+ function A(c) {
2501
2506
  var d;
2502
2507
  if (!(!e.clickable || e.disabled) && (c.key === "Enter" || c.key === " ")) {
2503
2508
  c.preventDefault();
@@ -2508,42 +2513,42 @@ const cA = { class: "av-input__wrapper" }, uA = {
2508
2513
  (d = e.onClick) == null || d.call(e, f);
2509
2514
  }
2510
2515
  }
2511
- const A = p(() => e.clickable ? "av-list-item--clickable" : ""), l = p(() => e.disabled ? "av-list-item--disabled" : ""), s = p(() => e.selected ? "av-list-item--selected" : "");
2516
+ const i = p(() => e.clickable ? "av-list-item--clickable" : ""), s = p(() => e.disabled ? "av-list-item--disabled" : ""), o = p(() => e.selected ? "av-list-item--selected" : "");
2512
2517
  return (c, d) => (u(), g("div", { role: e.role }, [
2513
- (u(), k(ue(o(a)), {
2514
- class: F(["av-list-item", [o(A), o(l), o(s)]]),
2518
+ (u(), k(ue(l(a)), {
2519
+ class: F(["av-list-item", [l(i), l(s), l(o)]]),
2515
2520
  tabindex: e.clickable && !e.disabled ? 0 : void 0,
2516
- "aria-label": e.clickable ? o(n) : void 0,
2521
+ "aria-label": e.clickable ? l(n) : void 0,
2517
2522
  "aria-describedby": e.ariaDescribedby,
2518
2523
  "aria-disabled": e.disabled ? "true" : void 0,
2519
- disabled: e.disabled && o(a) === "button" ? !0 : void 0,
2520
- href: o(a) === "a" ? e.href : void 0,
2521
- target: o(a) === "a" ? e.target : void 0,
2522
- rel: o(a) === "a" ? e.rel : void 0,
2524
+ disabled: e.disabled && l(a) === "button" ? !0 : void 0,
2525
+ href: l(a) === "a" ? e.href : void 0,
2526
+ target: l(a) === "a" ? e.target : void 0,
2527
+ rel: l(a) === "a" ? e.rel : void 0,
2523
2528
  onClick: r,
2524
- onKeydown: i
2529
+ onKeydown: A
2525
2530
  }, {
2526
2531
  default: R(() => [
2527
- e.icon ? (u(), g("div", CA, [
2532
+ e.icon ? (u(), g("div", Ci, [
2528
2533
  P(ne, {
2529
2534
  name: e.icon,
2530
2535
  color: e.iconColor ?? e.color,
2531
2536
  size: e.iconSize
2532
2537
  }, null, 8, ["name", "color", "size"])
2533
2538
  ])) : D("", !0),
2534
- y("div", yA, [
2535
- e.title ? (u(), g("div", EA, Z(e.title), 1)) : D("", !0),
2536
- e.description ? (u(), g("div", MA, Z(e.description), 1)) : D("", !0),
2537
- t.default ? (u(), g("div", pA, [
2538
- B(c.$slots, "default", {}, void 0, !0)
2539
+ y("div", yi, [
2540
+ e.title ? (u(), g("div", Ei, Z(e.title), 1)) : D("", !0),
2541
+ e.description ? (u(), g("div", Mi, Z(e.description), 1)) : D("", !0),
2542
+ t.default ? (u(), g("div", pi, [
2543
+ j(c.$slots, "default", {}, void 0, !0)
2539
2544
  ])) : D("", !0)
2540
2545
  ])
2541
2546
  ]),
2542
2547
  _: 3
2543
2548
  }, 40, ["class", "tabindex", "aria-label", "aria-describedby", "aria-disabled", "disabled", "href", "target", "rel"]))
2544
- ], 8, bA));
2549
+ ], 8, hi));
2545
2550
  }
2546
- }), Ut = /* @__PURE__ */ W(NA, [["__scopeId", "data-v-b9106d17"]]), TA = { class: "av-select-container" }, QA = /* @__PURE__ */ O({
2551
+ }), Ut = /* @__PURE__ */ W(Ni, [["__scopeId", "data-v-b9106d17"]]), Ti = { class: "av-select-container" }, Qi = /* @__PURE__ */ O({
2547
2552
  __name: "AvTagPicker",
2548
2553
  props: {
2549
2554
  multiple: { type: Boolean },
@@ -2556,44 +2561,44 @@ const cA = { class: "av-input__wrapper" }, uA = {
2556
2561
  },
2557
2562
  setup(e) {
2558
2563
  te((C) => ({
2559
- v68aa0dfa: o(n)
2564
+ v68aa0dfa: l(n)
2560
2565
  }));
2561
2566
  const t = e, {
2562
2567
  label: a,
2563
2568
  labelColor: n,
2564
2569
  labelTypographyClass: r,
2565
- selected: i,
2566
- multiple: A,
2567
- handleSelectChange: l
2568
- } = t, s = p(() => Xa(t.options));
2570
+ selected: A,
2571
+ multiple: i,
2572
+ handleSelectChange: s
2573
+ } = t, o = p(() => Xa(t.options));
2569
2574
  function c(C) {
2570
2575
  return C ? Array.isArray(C) ? C : [C] : [];
2571
2576
  }
2572
- const d = J(c(i));
2577
+ const d = J(c(A));
2573
2578
  function f(C) {
2574
2579
  return d.value.some((M) => M.value === C.value);
2575
2580
  }
2576
- function h(C) {
2577
- A ? (f(C) ? d.value = d.value.filter(
2581
+ function b(C) {
2582
+ i ? (f(C) ? d.value = d.value.filter(
2578
2583
  (T) => T.value !== C.value
2579
- ) : d.value.push(C), l([...d.value])) : (d.value = [C], l(C));
2584
+ ) : d.value.push(C), s([...d.value])) : (d.value = [C], s(C));
2580
2585
  }
2581
2586
  function I(C) {
2582
2587
  return f(C) ? Y.CHECK : void 0;
2583
2588
  }
2584
2589
  function m(C) {
2585
- return f(C) && !A;
2590
+ return f(C) && !i;
2586
2591
  }
2587
2592
  return ce(() => t.selected, (C) => {
2588
2593
  d.value = c(C);
2589
2594
  }, { immediate: !0 }), (C, M) => {
2590
2595
  const T = da;
2591
- return u(), g("div", TA, [
2592
- o(a) ? (u(), g("span", {
2596
+ return u(), g("div", Ti, [
2597
+ l(a) ? (u(), g("span", {
2593
2598
  key: 0,
2594
- class: F(["av-select-label", [o(r)]])
2595
- }, Z(o(a)), 3)) : D("", !0),
2596
- (u(!0), g(_, null, re(o(s), (Q) => (u(), g("div", {
2599
+ class: F(["av-select-label", [l(r)]])
2600
+ }, Z(l(a)), 3)) : D("", !0),
2601
+ (u(!0), g(_, null, re(l(o), (Q) => (u(), g("div", {
2597
2602
  key: Q.value,
2598
2603
  class: "tag-wrapper"
2599
2604
  }, [
@@ -2607,20 +2612,20 @@ const cA = { class: "av-input__wrapper" }, uA = {
2607
2612
  disabled: m(Q),
2608
2613
  selectable: "",
2609
2614
  selected: f(Q),
2610
- onSelect: () => h(Q)
2615
+ onSelect: () => b(Q)
2611
2616
  }, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
2612
2617
  ]))), 128))
2613
2618
  ]);
2614
2619
  };
2615
2620
  }
2616
- }), DA = /* @__PURE__ */ W(QA, [["__scopeId", "data-v-b70ffc0f"]]);
2621
+ }), Di = /* @__PURE__ */ W(Qi, [["__scopeId", "data-v-b70ffc0f"]]);
2617
2622
  var Xt = /* @__PURE__ */ ((e) => (e[e.FOUR = 4] = "FOUR", e[e.EIGHT = 8] = "EIGHT", e[e.TWELVE = 12] = "TWELVE", e))(Xt || {});
2618
- const jl = [
2623
+ const Bl = [
2619
2624
  4,
2620
2625
  8,
2621
2626
  12
2622
2627
  /* TWELVE */
2623
- ], LA = { class: "pagination-size-picker-container" }, OA = /* @__PURE__ */ O({
2628
+ ], Li = { class: "pagination-size-picker-container" }, Oi = /* @__PURE__ */ O({
2624
2629
  __name: "AvPageSizePicker",
2625
2630
  props: {
2626
2631
  label: {},
@@ -2635,10 +2640,10 @@ const jl = [
2635
2640
  label: e.pageSizeSelected.toString(),
2636
2641
  value: e.pageSizeSelected.toString()
2637
2642
  }));
2638
- return (n, r) => (u(), g("div", LA, [
2639
- P(DA, {
2640
- options: o(t),
2641
- selected: o(a),
2643
+ return (n, r) => (u(), g("div", Li, [
2644
+ P(Di, {
2645
+ options: l(t),
2646
+ selected: l(a),
2642
2647
  "handle-select-change": e.handleSelectChange,
2643
2648
  multiple: !1,
2644
2649
  label: e.label,
@@ -2647,7 +2652,7 @@ const jl = [
2647
2652
  }, null, 8, ["options", "selected", "handle-select-change", "label"])
2648
2653
  ]));
2649
2654
  }
2650
- }), Bl = /* @__PURE__ */ W(OA, [["__scopeId", "data-v-d72fe5ab"]]), Pl = {
2655
+ }), jl = /* @__PURE__ */ W(Oi, [["__scopeId", "data-v-d72fe5ab"]]), Pl = {
2651
2656
  name: "AvTagPicker",
2652
2657
  props: [
2653
2658
  "label",
@@ -2667,7 +2672,7 @@ const jl = [
2667
2672
  </button>
2668
2673
  </div>
2669
2674
  `
2670
- }, wA = /* @__PURE__ */ O({
2675
+ }, wi = /* @__PURE__ */ O({
2671
2676
  __name: "AvRadioButton",
2672
2677
  props: {
2673
2678
  value: { type: [String, Number, Boolean] },
@@ -2676,7 +2681,7 @@ const jl = [
2676
2681
  disabled: { type: Boolean }
2677
2682
  },
2678
2683
  setup(e) {
2679
- return (t, a) => B(t.$slots, "default");
2684
+ return (t, a) => j(t.$slots, "default");
2680
2685
  }
2681
2686
  }), Wl = /* @__PURE__ */ O({
2682
2687
  __name: "AvRadioButtonSet",
@@ -2694,31 +2699,31 @@ const jl = [
2694
2699
  },
2695
2700
  emits: ["update:modelValue"],
2696
2701
  setup(e, { expose: t, emit: a }) {
2697
- const n = e, r = a, i = ie();
2698
- function A(d) {
2699
- return d != null && typeof d == "object" && "type" in d && d.type === wA;
2702
+ const n = e, r = a, A = Ae();
2703
+ function i(d) {
2704
+ return d != null && typeof d == "object" && "type" in d && d.type === wi;
2700
2705
  }
2701
- function l(d) {
2702
- return d ? d.flatMap((f) => !f || typeof f != "object" || !("type" in f) ? [] : f.type === _ && Array.isArray(f.children) ? l(f.children) : A(f) ? [f] : []) : [];
2706
+ function s(d) {
2707
+ return d ? d.flatMap((f) => !f || typeof f != "object" || !("type" in f) ? [] : f.type === _ && Array.isArray(f.children) ? s(f.children) : i(f) ? [f] : []) : [];
2703
2708
  }
2704
- const s = p(() => {
2709
+ const o = p(() => {
2705
2710
  var d;
2706
- return l((d = i.default) == null ? void 0 : d.call(i));
2711
+ return s((d = A.default) == null ? void 0 : d.call(A));
2707
2712
  }), c = J(n.modelValue);
2708
2713
  return ce(() => n.modelValue, (d) => {
2709
2714
  c.value = d;
2710
2715
  }), ce(c, (d) => {
2711
2716
  d && r("update:modelValue", d);
2712
- }), t({ selected: c }), (d, f) => (u(), k(o(fa), ee(n, { "model-value": o(c) }), {
2717
+ }), t({ selected: c }), (d, f) => (u(), k(l(fa), ee(n, { "model-value": l(c) }), {
2713
2718
  default: R(() => [
2714
- (u(!0), g(_, null, re(o(s), (h, I) => {
2719
+ (u(!0), g(_, null, re(l(o), (b, I) => {
2715
2720
  var m, C;
2716
- return u(), k(o(va), {
2721
+ return u(), k(l(va), {
2717
2722
  key: I,
2718
- modelValue: o(c),
2719
- "onUpdate:modelValue": f[0] || (f[0] = (M) => At(c) ? c.value = M : null),
2720
- value: (m = h.props) == null ? void 0 : m.value,
2721
- disabled: ((C = h.props) == null ? void 0 : C.disabled) ?? n.disabled,
2723
+ modelValue: l(c),
2724
+ "onUpdate:modelValue": f[0] || (f[0] = (M) => it(c) ? c.value = M : null),
2725
+ value: (m = b.props) == null ? void 0 : m.value,
2726
+ disabled: ((C = b.props) == null ? void 0 : C.disabled) ?? n.disabled,
2722
2727
  small: n.small,
2723
2728
  inline: n.inline,
2724
2729
  name: n.name
@@ -2726,7 +2731,7 @@ const jl = [
2726
2731
  label: R(() => {
2727
2732
  var M;
2728
2733
  return [
2729
- (u(), k(ue((M = h.children) == null ? void 0 : M.default)))
2734
+ (u(), k(ue((M = b.children) == null ? void 0 : M.default)))
2730
2735
  ];
2731
2736
  }),
2732
2737
  _: 2
@@ -2764,74 +2769,74 @@ function lt() {
2764
2769
  function Zt(e) {
2765
2770
  return Ta() ? (Qa(e), !0) : !1;
2766
2771
  }
2767
- const SA = typeof window < "u" && typeof document < "u";
2772
+ const Si = typeof window < "u" && typeof document < "u";
2768
2773
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2769
- const kA = (e) => e != null, zA = Object.prototype.toString, xA = (e) => zA.call(e) === "[object Object]", pe = () => {
2774
+ const ki = (e) => e != null, zi = Object.prototype.toString, xi = (e) => zi.call(e) === "[object Object]", pe = () => {
2770
2775
  };
2771
2776
  function qt(e, t) {
2772
2777
  function a(...n) {
2773
- return new Promise((r, i) => {
2774
- Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(r).catch(i);
2778
+ return new Promise((r, A) => {
2779
+ Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(r).catch(A);
2775
2780
  });
2776
2781
  }
2777
2782
  return a;
2778
2783
  }
2779
- function jA(e, t = {}) {
2784
+ function Bi(e, t = {}) {
2780
2785
  let a, n, r = pe;
2781
- const i = (s) => {
2782
- clearTimeout(s), r(), r = pe;
2786
+ const A = (o) => {
2787
+ clearTimeout(o), r(), r = pe;
2783
2788
  };
2784
- let A;
2785
- return (s) => {
2789
+ let i;
2790
+ return (o) => {
2786
2791
  const c = ae(e), d = ae(t.maxWait);
2787
- return a && i(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((f, h) => {
2788
- r = t.rejectOnCancel ? h : f, A = s, d && !n && (n = setTimeout(() => {
2789
- a && i(a), n = void 0, f(A());
2792
+ return a && A(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (A(n), n = void 0), Promise.resolve(o())) : new Promise((f, b) => {
2793
+ r = t.rejectOnCancel ? b : f, i = o, d && !n && (n = setTimeout(() => {
2794
+ a && A(a), n = void 0, f(i());
2790
2795
  }, d)), a = setTimeout(() => {
2791
- n && i(n), n = void 0, f(s());
2796
+ n && A(n), n = void 0, f(o());
2792
2797
  }, c);
2793
2798
  });
2794
2799
  };
2795
2800
  }
2796
- function BA(...e) {
2797
- let t = 0, a, n = !0, r = pe, i, A, l, s, c;
2798
- !At(e[0]) && typeof e[0] == "object" ? { delay: A, trailing: l = !0, leading: s = !0, rejectOnCancel: c = !1 } = e[0] : [A, l = !0, s = !0, c = !1] = e;
2801
+ function ji(...e) {
2802
+ let t = 0, a, n = !0, r = pe, A, i, s, o, c;
2803
+ !it(e[0]) && typeof e[0] == "object" ? { delay: i, trailing: s = !0, leading: o = !0, rejectOnCancel: c = !1 } = e[0] : [i, s = !0, o = !0, c = !1] = e;
2799
2804
  const d = () => {
2800
2805
  a && (clearTimeout(a), a = void 0, r(), r = pe);
2801
2806
  };
2802
- return (h) => {
2803
- const I = ae(A), m = Date.now() - t, C = () => i = h();
2804
- return d(), I <= 0 ? (t = Date.now(), C()) : (m > I && (s || !n) ? (t = Date.now(), C()) : l && (i = new Promise((M, T) => {
2807
+ return (b) => {
2808
+ const I = ae(i), m = Date.now() - t, C = () => A = b();
2809
+ return d(), I <= 0 ? (t = Date.now(), C()) : (m > I && (o || !n) ? (t = Date.now(), C()) : s && (A = new Promise((M, T) => {
2805
2810
  r = c ? T : M, a = setTimeout(() => {
2806
2811
  t = Date.now(), n = !0, M(C()), d();
2807
2812
  }, Math.max(0, I - m));
2808
- })), !s && !a && (a = setTimeout(() => n = !0, I)), n = !1, i);
2813
+ })), !o && !a && (a = setTimeout(() => n = !0, I)), n = !1, A);
2809
2814
  };
2810
2815
  }
2811
2816
  function We(e) {
2812
2817
  return Array.isArray(e) ? e : [e];
2813
2818
  }
2814
- function PA(e) {
2819
+ function Pi(e) {
2815
2820
  return kt();
2816
2821
  }
2817
2822
  // @__NO_SIDE_EFFECTS__
2818
- function WA(e, t = 200, a = {}) {
2823
+ function Wi(e, t = 200, a = {}) {
2819
2824
  return qt(
2820
- jA(t, a),
2825
+ Bi(t, a),
2821
2826
  e
2822
2827
  );
2823
2828
  }
2824
2829
  // @__NO_SIDE_EFFECTS__
2825
- function VA(e, t = 200, a = !1, n = !0, r = !1) {
2830
+ function Vi(e, t = 200, a = !1, n = !0, r = !1) {
2826
2831
  return qt(
2827
- BA(t, a, n, r),
2832
+ ji(t, a, n, r),
2828
2833
  e
2829
2834
  );
2830
2835
  }
2831
- function UA(e, t = !0, a) {
2832
- PA() ? xe(e, a) : t ? e() : Re(e);
2836
+ function Ui(e, t = !0, a) {
2837
+ Pi() ? xe(e, a) : t ? e() : Re(e);
2833
2838
  }
2834
- function XA(e, t, a) {
2839
+ function Xi(e, t, a) {
2835
2840
  return ce(
2836
2841
  e,
2837
2842
  t,
@@ -2841,7 +2846,7 @@ function XA(e, t, a) {
2841
2846
  }
2842
2847
  );
2843
2848
  }
2844
- const st = SA ? window : void 0;
2849
+ const st = Si ? window : void 0;
2845
2850
  function ct(e) {
2846
2851
  var t;
2847
2852
  const a = ae(e);
@@ -2849,91 +2854,91 @@ function ct(e) {
2849
2854
  }
2850
2855
  function yt(...e) {
2851
2856
  const t = [], a = () => {
2852
- t.forEach((l) => l()), t.length = 0;
2853
- }, n = (l, s, c, d) => (l.addEventListener(s, c, d), () => l.removeEventListener(s, c, d)), r = p(() => {
2854
- const l = We(ae(e[0])).filter((s) => s != null);
2855
- return l.every((s) => typeof s != "string") ? l : void 0;
2856
- }), i = XA(
2857
+ t.forEach((s) => s()), t.length = 0;
2858
+ }, n = (s, o, c, d) => (s.addEventListener(o, c, d), () => s.removeEventListener(o, c, d)), r = p(() => {
2859
+ const s = We(ae(e[0])).filter((o) => o != null);
2860
+ return s.every((o) => typeof o != "string") ? s : void 0;
2861
+ }), A = Xi(
2857
2862
  () => {
2858
- var l, s;
2863
+ var s, o;
2859
2864
  return [
2860
- (s = (l = r.value) == null ? void 0 : l.map((c) => ct(c))) != null ? s : [st].filter((c) => c != null),
2865
+ (o = (s = r.value) == null ? void 0 : s.map((c) => ct(c))) != null ? o : [st].filter((c) => c != null),
2861
2866
  We(ae(r.value ? e[1] : e[0])),
2862
- We(o(r.value ? e[2] : e[1])),
2867
+ We(l(r.value ? e[2] : e[1])),
2863
2868
  // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
2864
2869
  ae(r.value ? e[3] : e[2])
2865
2870
  ];
2866
2871
  },
2867
- ([l, s, c, d]) => {
2868
- if (a(), !(l != null && l.length) || !(s != null && s.length) || !(c != null && c.length))
2872
+ ([s, o, c, d]) => {
2873
+ if (a(), !(s != null && s.length) || !(o != null && o.length) || !(c != null && c.length))
2869
2874
  return;
2870
- const f = xA(d) ? { ...d } : d;
2875
+ const f = xi(d) ? { ...d } : d;
2871
2876
  t.push(
2872
- ...l.flatMap(
2873
- (h) => s.flatMap(
2874
- (I) => c.map((m) => n(h, I, m, f))
2877
+ ...s.flatMap(
2878
+ (b) => o.flatMap(
2879
+ (I) => c.map((m) => n(b, I, m, f))
2875
2880
  )
2876
2881
  )
2877
2882
  );
2878
2883
  },
2879
2884
  { flush: "post" }
2880
- ), A = () => {
2881
- i(), a();
2885
+ ), i = () => {
2886
+ A(), a();
2882
2887
  };
2883
- return Zt(a), A;
2888
+ return Zt(a), i;
2884
2889
  }
2885
2890
  // @__NO_SIDE_EFFECTS__
2886
- function HA() {
2891
+ function Hi() {
2887
2892
  const e = Pe(!1), t = kt();
2888
2893
  return t && xe(() => {
2889
2894
  e.value = !0;
2890
2895
  }, t), e;
2891
2896
  }
2892
2897
  // @__NO_SIDE_EFFECTS__
2893
- function ZA(e) {
2894
- const t = /* @__PURE__ */ HA();
2898
+ function Zi(e) {
2899
+ const t = /* @__PURE__ */ Hi();
2895
2900
  return p(() => (t.value, !!e()));
2896
2901
  }
2897
- function qA(e, t, a = {}) {
2902
+ function qi(e, t, a = {}) {
2898
2903
  const { window: n = st, ...r } = a;
2899
- let i;
2900
- const A = /* @__PURE__ */ ZA(() => n && "MutationObserver" in n), l = () => {
2901
- i && (i.disconnect(), i = void 0);
2902
- }, s = p(() => {
2903
- const h = ae(e), I = We(h).map(ct).filter(kA);
2904
+ let A;
2905
+ const i = /* @__PURE__ */ Zi(() => n && "MutationObserver" in n), s = () => {
2906
+ A && (A.disconnect(), A = void 0);
2907
+ }, o = p(() => {
2908
+ const b = ae(e), I = We(b).map(ct).filter(ki);
2904
2909
  return new Set(I);
2905
2910
  }), c = ce(
2906
- s,
2907
- (h) => {
2908
- l(), A.value && h.size && (i = new MutationObserver(t), h.forEach((I) => i.observe(I, r)));
2911
+ o,
2912
+ (b) => {
2913
+ s(), i.value && b.size && (A = new MutationObserver(t), b.forEach((I) => A.observe(I, r)));
2909
2914
  },
2910
2915
  { immediate: !0, flush: "post" }
2911
- ), d = () => i == null ? void 0 : i.takeRecords(), f = () => {
2912
- c(), l();
2916
+ ), d = () => A == null ? void 0 : A.takeRecords(), f = () => {
2917
+ c(), s();
2913
2918
  };
2914
2919
  return Zt(f), {
2915
- isSupported: A,
2920
+ isSupported: i,
2916
2921
  stop: f,
2917
2922
  takeRecords: d
2918
2923
  };
2919
2924
  }
2920
2925
  const Et = 1;
2921
- function YA(e, t = {}) {
2926
+ function Yi(e, t = {}) {
2922
2927
  const {
2923
2928
  throttle: a = 0,
2924
2929
  idle: n = 200,
2925
2930
  onStop: r = pe,
2926
- onScroll: i = pe,
2927
- offset: A = {
2931
+ onScroll: A = pe,
2932
+ offset: i = {
2928
2933
  left: 0,
2929
2934
  right: 0,
2930
2935
  top: 0,
2931
2936
  bottom: 0
2932
2937
  },
2933
- observe: l = {
2938
+ observe: s = {
2934
2939
  mutation: !1
2935
2940
  },
2936
- eventListenerOptions: s = {
2941
+ eventListenerOptions: o = {
2937
2942
  capture: !1,
2938
2943
  passive: !0
2939
2944
  },
@@ -2942,9 +2947,9 @@ function YA(e, t = {}) {
2942
2947
  onError: f = (w) => {
2943
2948
  console.error(w);
2944
2949
  }
2945
- } = t, h = typeof l == "boolean" ? {
2946
- mutation: l
2947
- } : l, I = Pe(0), m = Pe(0), C = p({
2950
+ } = t, b = typeof s == "boolean" ? {
2951
+ mutation: s
2952
+ } : s, I = Pe(0), m = Pe(0), C = p({
2948
2953
  get() {
2949
2954
  return I.value;
2950
2955
  },
@@ -2960,7 +2965,7 @@ function YA(e, t = {}) {
2960
2965
  }
2961
2966
  });
2962
2967
  function T(w, oe) {
2963
- var $, X, v, b;
2968
+ var $, X, v, h;
2964
2969
  if (!d)
2965
2970
  return;
2966
2971
  const N = ae(e);
@@ -2971,7 +2976,7 @@ function YA(e, t = {}) {
2971
2976
  left: (X = ae(w)) != null ? X : C.value,
2972
2977
  behavior: ae(c)
2973
2978
  });
2974
- const z = ((b = N == null ? void 0 : N.document) == null ? void 0 : b.documentElement) || (N == null ? void 0 : N.documentElement) || N;
2979
+ const z = ((h = N == null ? void 0 : N.document) == null ? void 0 : h.documentElement) || (N == null ? void 0 : N.documentElement) || N;
2975
2980
  C != null && (I.value = z.scrollLeft), M != null && (m.value = z.scrollTop);
2976
2981
  }
2977
2982
  const Q = Pe(!1), E = dt({
@@ -2984,33 +2989,33 @@ function YA(e, t = {}) {
2984
2989
  right: !1,
2985
2990
  top: !1,
2986
2991
  bottom: !1
2987
- }), j = (w) => {
2992
+ }), B = (w) => {
2988
2993
  Q.value && (Q.value = !1, L.left = !1, L.right = !1, L.top = !1, L.bottom = !1, r(w));
2989
- }, V = /* @__PURE__ */ WA(j, a + n), x = (w) => {
2994
+ }, V = /* @__PURE__ */ Wi(B, a + n), x = (w) => {
2990
2995
  var oe;
2991
2996
  if (!d)
2992
2997
  return;
2993
- const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) || ct(w), { display: X, flexDirection: v, direction: b } = getComputedStyle($), N = b === "rtl" ? -1 : 1, z = $.scrollLeft;
2998
+ const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) || ct(w), { display: X, flexDirection: v, direction: h } = getComputedStyle($), N = h === "rtl" ? -1 : 1, z = $.scrollLeft;
2994
2999
  L.left = z < I.value, L.right = z > I.value;
2995
- const U = Math.abs(z * N) <= (A.left || 0), q = Math.abs(z * N) + $.clientWidth >= $.scrollWidth - (A.right || 0) - Et;
3000
+ const U = Math.abs(z * N) <= (i.left || 0), q = Math.abs(z * N) + $.clientWidth >= $.scrollWidth - (i.right || 0) - Et;
2996
3001
  X === "flex" && v === "row-reverse" ? (E.left = q, E.right = U) : (E.left = U, E.right = q), I.value = z;
2997
3002
  let S = $.scrollTop;
2998
3003
  w === d.document && !S && (S = d.document.body.scrollTop), L.top = S < m.value, L.bottom = S > m.value;
2999
- const K = Math.abs(S) <= (A.top || 0), G = Math.abs(S) + $.clientHeight >= $.scrollHeight - (A.bottom || 0) - Et;
3004
+ const K = Math.abs(S) <= (i.top || 0), G = Math.abs(S) + $.clientHeight >= $.scrollHeight - (i.bottom || 0) - Et;
3000
3005
  X === "flex" && v === "column-reverse" ? (E.top = G, E.bottom = K) : (E.top = K, E.bottom = G), m.value = S;
3001
- }, Ae = (w) => {
3006
+ }, ie = (w) => {
3002
3007
  var oe;
3003
3008
  if (!d)
3004
3009
  return;
3005
3010
  const $ = (oe = w.target.documentElement) != null ? oe : w.target;
3006
- x($), Q.value = !0, V(w), i(w);
3011
+ x($), Q.value = !0, V(w), A(w);
3007
3012
  };
3008
3013
  return yt(
3009
3014
  e,
3010
3015
  "scroll",
3011
- a ? /* @__PURE__ */ VA(Ae, a, !0, !1) : Ae,
3012
- s
3013
- ), UA(() => {
3016
+ a ? /* @__PURE__ */ Vi(ie, a, !0, !1) : ie,
3017
+ o
3018
+ ), Ui(() => {
3014
3019
  try {
3015
3020
  const w = ae(e);
3016
3021
  if (!w)
@@ -3019,7 +3024,7 @@ function YA(e, t = {}) {
3019
3024
  } catch (w) {
3020
3025
  f(w);
3021
3026
  }
3022
- }), h != null && h.mutation && e != null && e !== d && e !== document && qA(
3027
+ }), b != null && b.mutation && e != null && e !== d && e !== document && qi(
3023
3028
  e,
3024
3029
  () => {
3025
3030
  const w = ae(e);
@@ -3033,8 +3038,8 @@ function YA(e, t = {}) {
3033
3038
  ), yt(
3034
3039
  e,
3035
3040
  "scrollend",
3036
- j,
3037
- s
3041
+ B,
3042
+ o
3038
3043
  ), {
3039
3044
  x: C,
3040
3045
  y: M,
@@ -3047,51 +3052,51 @@ function YA(e, t = {}) {
3047
3052
  }
3048
3053
  };
3049
3054
  }
3050
- var RA = typeof global == "object" && global && global.Object === Object && global, FA = typeof self == "object" && self && self.Object === Object && self, Yt = RA || FA || Function("return this")(), Xe = Yt.Symbol, Rt = Object.prototype, KA = Rt.hasOwnProperty, GA = Rt.toString, Le = Xe ? Xe.toStringTag : void 0;
3051
- function JA(e) {
3052
- var t = KA.call(e, Le), a = e[Le];
3055
+ var Ri = typeof global == "object" && global && global.Object === Object && global, Fi = typeof self == "object" && self && self.Object === Object && self, Yt = Ri || Fi || Function("return this")(), Xe = Yt.Symbol, Rt = Object.prototype, Ki = Rt.hasOwnProperty, Gi = Rt.toString, Le = Xe ? Xe.toStringTag : void 0;
3056
+ function Ji(e) {
3057
+ var t = Ki.call(e, Le), a = e[Le];
3053
3058
  try {
3054
3059
  e[Le] = void 0;
3055
3060
  var n = !0;
3056
3061
  } catch {
3057
3062
  }
3058
- var r = GA.call(e);
3063
+ var r = Gi.call(e);
3059
3064
  return n && (t ? e[Le] = a : delete e[Le]), r;
3060
3065
  }
3061
- var _A = Object.prototype, $A = _A.toString;
3062
- function ei(e) {
3063
- return $A.call(e);
3066
+ var _i = Object.prototype, $i = _i.toString;
3067
+ function eA(e) {
3068
+ return $i.call(e);
3064
3069
  }
3065
- var ti = "[object Null]", ai = "[object Undefined]", Mt = Xe ? Xe.toStringTag : void 0;
3066
- function ni(e) {
3067
- return e == null ? e === void 0 ? ai : ti : Mt && Mt in Object(e) ? JA(e) : ei(e);
3070
+ var tA = "[object Null]", aA = "[object Undefined]", Mt = Xe ? Xe.toStringTag : void 0;
3071
+ function nA(e) {
3072
+ return e == null ? e === void 0 ? aA : tA : Mt && Mt in Object(e) ? Ji(e) : eA(e);
3068
3073
  }
3069
- function ri(e) {
3074
+ function rA(e) {
3070
3075
  return e != null && typeof e == "object";
3071
3076
  }
3072
- var Ai = "[object Symbol]";
3073
- function ii(e) {
3074
- return typeof e == "symbol" || ri(e) && ni(e) == Ai;
3077
+ var iA = "[object Symbol]";
3078
+ function AA(e) {
3079
+ return typeof e == "symbol" || rA(e) && nA(e) == iA;
3075
3080
  }
3076
- var oi = /\s/;
3077
- function li(e) {
3078
- for (var t = e.length; t-- && oi.test(e.charAt(t)); )
3081
+ var oA = /\s/;
3082
+ function lA(e) {
3083
+ for (var t = e.length; t-- && oA.test(e.charAt(t)); )
3079
3084
  ;
3080
3085
  return t;
3081
3086
  }
3082
- var si = /^\s+/;
3083
- function ci(e) {
3084
- return e && e.slice(0, li(e) + 1).replace(si, "");
3087
+ var sA = /^\s+/;
3088
+ function cA(e) {
3089
+ return e && e.slice(0, lA(e) + 1).replace(sA, "");
3085
3090
  }
3086
3091
  function tt(e) {
3087
3092
  var t = typeof e;
3088
3093
  return e != null && (t == "object" || t == "function");
3089
3094
  }
3090
- var pt = NaN, ui = /^[-+]0x[0-9a-f]+$/i, di = /^0b[01]+$/i, fi = /^0o[0-7]+$/i, vi = parseInt;
3095
+ var pt = NaN, uA = /^[-+]0x[0-9a-f]+$/i, dA = /^0b[01]+$/i, fA = /^0o[0-7]+$/i, vA = parseInt;
3091
3096
  function Nt(e) {
3092
3097
  if (typeof e == "number")
3093
3098
  return e;
3094
- if (ii(e))
3099
+ if (AA(e))
3095
3100
  return pt;
3096
3101
  if (tt(e)) {
3097
3102
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
@@ -3099,160 +3104,160 @@ function Nt(e) {
3099
3104
  }
3100
3105
  if (typeof e != "string")
3101
3106
  return e === 0 ? e : +e;
3102
- e = ci(e);
3103
- var a = di.test(e);
3104
- return a || fi.test(e) ? vi(e.slice(2), a ? 2 : 8) : ui.test(e) ? pt : +e;
3107
+ e = cA(e);
3108
+ var a = dA.test(e);
3109
+ return a || fA.test(e) ? vA(e.slice(2), a ? 2 : 8) : uA.test(e) ? pt : +e;
3105
3110
  }
3106
3111
  var $e = function() {
3107
3112
  return Yt.Date.now();
3108
- }, mi = "Expected a function", gi = Math.max, Ii = Math.min;
3113
+ }, mA = "Expected a function", gA = Math.max, IA = Math.min;
3109
3114
  function Ft(e, t, a) {
3110
- var n, r, i, A, l, s, c = 0, d = !1, f = !1, h = !0;
3115
+ var n, r, A, i, s, o, c = 0, d = !1, f = !1, b = !0;
3111
3116
  if (typeof e != "function")
3112
- throw new TypeError(mi);
3113
- t = Nt(t) || 0, tt(a) && (d = !!a.leading, f = "maxWait" in a, i = f ? gi(Nt(a.maxWait) || 0, t) : i, h = "trailing" in a ? !!a.trailing : h);
3117
+ throw new TypeError(mA);
3118
+ t = Nt(t) || 0, tt(a) && (d = !!a.leading, f = "maxWait" in a, A = f ? gA(Nt(a.maxWait) || 0, t) : A, b = "trailing" in a ? !!a.trailing : b);
3114
3119
  function I(V) {
3115
- var x = n, Ae = r;
3116
- return n = r = void 0, c = V, A = e.apply(Ae, x), A;
3120
+ var x = n, ie = r;
3121
+ return n = r = void 0, c = V, i = e.apply(ie, x), i;
3117
3122
  }
3118
3123
  function m(V) {
3119
- return c = V, l = setTimeout(T, t), d ? I(V) : A;
3124
+ return c = V, s = setTimeout(T, t), d ? I(V) : i;
3120
3125
  }
3121
3126
  function C(V) {
3122
- var x = V - s, Ae = V - c, w = t - x;
3123
- return f ? Ii(w, i - Ae) : w;
3127
+ var x = V - o, ie = V - c, w = t - x;
3128
+ return f ? IA(w, A - ie) : w;
3124
3129
  }
3125
3130
  function M(V) {
3126
- var x = V - s, Ae = V - c;
3127
- return s === void 0 || x >= t || x < 0 || f && Ae >= i;
3131
+ var x = V - o, ie = V - c;
3132
+ return o === void 0 || x >= t || x < 0 || f && ie >= A;
3128
3133
  }
3129
3134
  function T() {
3130
3135
  var V = $e();
3131
3136
  if (M(V))
3132
3137
  return Q(V);
3133
- l = setTimeout(T, C(V));
3138
+ s = setTimeout(T, C(V));
3134
3139
  }
3135
3140
  function Q(V) {
3136
- return l = void 0, h && n ? I(V) : (n = r = void 0, A);
3141
+ return s = void 0, b && n ? I(V) : (n = r = void 0, i);
3137
3142
  }
3138
3143
  function E() {
3139
- l !== void 0 && clearTimeout(l), c = 0, n = s = r = l = void 0;
3144
+ s !== void 0 && clearTimeout(s), c = 0, n = o = r = s = void 0;
3140
3145
  }
3141
3146
  function L() {
3142
- return l === void 0 ? A : Q($e());
3147
+ return s === void 0 ? i : Q($e());
3143
3148
  }
3144
- function j() {
3149
+ function B() {
3145
3150
  var V = $e(), x = M(V);
3146
- if (n = arguments, r = this, s = V, x) {
3147
- if (l === void 0)
3148
- return m(s);
3151
+ if (n = arguments, r = this, o = V, x) {
3152
+ if (s === void 0)
3153
+ return m(o);
3149
3154
  if (f)
3150
- return clearTimeout(l), l = setTimeout(T, t), I(s);
3155
+ return clearTimeout(s), s = setTimeout(T, t), I(o);
3151
3156
  }
3152
- return l === void 0 && (l = setTimeout(T, t)), A;
3157
+ return s === void 0 && (s = setTimeout(T, t)), i;
3153
3158
  }
3154
- return j.cancel = E, j.flush = L, j;
3159
+ return B.cancel = E, B.flush = L, B;
3155
3160
  }
3156
- const hi = {
3161
+ const bA = {
3157
3162
  key: 0,
3158
3163
  class: "av-autocomplete-dropdown__loading"
3159
- }, bi = {
3164
+ }, hA = {
3160
3165
  key: 1,
3161
3166
  class: "av-autocomplete-dropdown__empty"
3162
- }, Ci = {
3167
+ }, CA = {
3163
3168
  key: 1,
3164
3169
  class: "av-autocomplete-dropdown__empty-text"
3165
- }, yi = /* @__PURE__ */ O({
3170
+ }, yA = /* @__PURE__ */ O({
3166
3171
  __name: "AvAutocompleteDropdown",
3167
3172
  emits: ["loadMore"],
3168
3173
  setup(e, { expose: t, emit: a }) {
3169
- const n = a, r = ie(), {
3170
- selectedItems: i,
3171
- searchQuery: A,
3172
- isOpen: l,
3173
- props: s,
3174
+ const n = a, r = Ae(), {
3175
+ selectedItems: A,
3176
+ searchQuery: i,
3177
+ isOpen: s,
3178
+ props: o,
3174
3179
  getOptionId: c,
3175
3180
  getDisplayLabel: d
3176
- } = lt(), f = J(), h = J(), I = p(() => {
3177
- if (!s.options)
3181
+ } = lt(), f = J(), b = J(), I = p(() => {
3182
+ if (!o.options)
3178
3183
  return [];
3179
- if (s.serverSideFiltering)
3180
- return s.maxResults ? s.options.slice(0, s.maxResults) : s.options;
3181
- const E = A.value.toLowerCase().trim();
3184
+ if (o.serverSideFiltering)
3185
+ return o.maxResults ? o.options.slice(0, o.maxResults) : o.options;
3186
+ const E = i.value.toLowerCase().trim();
3182
3187
  if (!E) {
3183
- const j = s.options;
3184
- return s.maxResults ? j.slice(0, s.maxResults) : j;
3188
+ const B = o.options;
3189
+ return o.maxResults ? B.slice(0, o.maxResults) : B;
3185
3190
  }
3186
3191
  let L;
3187
- return s.filterOptions ? L = s.filterOptions(s.options, E) : L = s.options.filter((j) => d(j).toLowerCase().includes(E)), s.maxResults ? L.slice(0, s.maxResults) : L;
3188
- }), m = p(() => s.loading ? Me.LOADING : l.value && s.options && s.options.length > 0 && I.value.length > 0 ? Me.HAS_OPTIONS : Me.NO_OPTIONS);
3192
+ return o.filterOptions ? L = o.filterOptions(o.options, E) : L = o.options.filter((B) => d(B).toLowerCase().includes(E)), o.maxResults ? L.slice(0, o.maxResults) : L;
3193
+ }), m = p(() => o.loading ? Me.LOADING : s.value && o.options && o.options.length > 0 && I.value.length > 0 ? Me.HAS_OPTIONS : Me.NO_OPTIONS);
3189
3194
  function C(E) {
3190
- return i.value.some(
3195
+ return A.value.some(
3191
3196
  (L) => c(L) === c(E)
3192
3197
  );
3193
3198
  }
3194
3199
  function M(E) {
3195
- if (!s.multiSelect) {
3196
- i.value = [E], l.value = !1, A.value = "";
3200
+ if (!o.multiSelect) {
3201
+ A.value = [E], s.value = !1, i.value = "";
3197
3202
  return;
3198
3203
  }
3199
- const L = i.value, j = c(E);
3204
+ const L = A.value, B = c(E);
3200
3205
  L.some(
3201
- (x) => c(x) === j
3202
- ) ? i.value = L.filter(
3203
- (x) => c(x) !== j
3204
- ) : i.value = [...L, E];
3206
+ (x) => c(x) === B
3207
+ ) ? A.value = L.filter(
3208
+ (x) => c(x) !== B
3209
+ ) : A.value = [...L, E];
3205
3210
  }
3206
- const { arrivedState: T } = YA(h, {
3211
+ const { arrivedState: T } = Yi(b, {
3207
3212
  throttle: 100
3208
3213
  }), Q = Ft(() => {
3209
3214
  n("loadMore");
3210
- }, s.loadMoreThrottleDelay);
3215
+ }, o.loadMoreThrottleDelay);
3211
3216
  return ce(() => T.bottom, (E) => {
3212
- s.enableLoadMore && E && l.value && Q();
3213
- }), je(() => {
3217
+ o.enableLoadMore && E && s.value && Q();
3218
+ }), Be(() => {
3214
3219
  Q.cancel();
3215
3220
  }), t({
3216
3221
  dropdownRef: f
3217
- }), (E, L) => o(l) ? (u(), g("div", {
3222
+ }), (E, L) => l(s) ? (u(), g("div", {
3218
3223
  key: 0,
3219
3224
  ref_key: "dropdownRef",
3220
3225
  ref: f,
3221
- class: F(["av-autocomplete-dropdown", o(s).dropdownClass]),
3222
- style: Ve({ width: o(s).dropdownWidth, maxHeight: o(s).maxDropdownHeight })
3226
+ class: F(["av-autocomplete-dropdown", l(o).dropdownClass]),
3227
+ style: Ve({ width: l(o).dropdownWidth, maxHeight: l(o).maxDropdownHeight })
3223
3228
  }, [
3224
- o(m) === o(Me).LOADING ? (u(), g("div", hi, [
3229
+ l(m) === l(Me).LOADING ? (u(), g("div", bA, [
3225
3230
  P(ne, {
3226
- name: o(Y).LOADING_OUTLINE,
3231
+ name: l(Y).LOADING_OUTLINE,
3227
3232
  size: 1.5,
3228
3233
  class: "av-autocomplete-dropdown__spinner"
3229
3234
  }, null, 8, ["name"]),
3230
3235
  L[0] || (L[0] = y("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
3231
- ])) : o(m) === o(Me).NO_OPTIONS ? (u(), g("div", bi, [
3232
- r.empty ? B(E.$slots, "empty", { key: 0 }, void 0, !0) : (u(), g("div", Ci, " No results found "))
3236
+ ])) : l(m) === l(Me).NO_OPTIONS ? (u(), g("div", hA, [
3237
+ r.empty ? j(E.$slots, "empty", { key: 0 }, void 0, !0) : (u(), g("div", CA, " No results found "))
3233
3238
  ])) : (u(), k(Vt, ee({
3234
3239
  key: 2,
3235
3240
  ref_key: "listRef",
3236
- ref: h
3237
- }, o(s).listOptions, {
3238
- class: ["av-autocomplete-dropdown__options", o(s).scrollbarClass]
3241
+ ref: b
3242
+ }, l(o).listOptions, {
3243
+ class: ["av-autocomplete-dropdown__options", l(o).scrollbarClass]
3239
3244
  }), {
3240
3245
  default: R(() => [
3241
- (u(!0), g(_, null, re(o(I), (j) => (u(), g(_, {
3242
- key: o(c)(j)
3246
+ (u(!0), g(_, null, re(l(I), (B) => (u(), g(_, {
3247
+ key: l(c)(B)
3243
3248
  }, [
3244
- r.item ? B(E.$slots, "item", {
3249
+ r.item ? j(E.$slots, "item", {
3245
3250
  key: 0,
3246
- option: j,
3247
- isSelected: C(j),
3248
- toggle: () => M(j)
3251
+ option: B,
3252
+ isSelected: C(B),
3253
+ toggle: () => M(B)
3249
3254
  }, void 0, !0) : (u(), k(Ut, {
3250
3255
  key: 1,
3251
- title: o(d)(j),
3252
- icon: C(j) ? o(Y).CHECK : void 0,
3253
- selected: C(j),
3256
+ title: l(d)(B),
3257
+ icon: C(B) ? l(Y).CHECK : void 0,
3258
+ selected: C(B),
3254
3259
  clickable: "",
3255
- "on-click": () => M(j),
3260
+ "on-click": () => M(B),
3256
3261
  "hover-background-color": "var(--light-background-neutral)",
3257
3262
  "color-on-hover": "var(--base)"
3258
3263
  }, null, 8, ["title", "icon", "selected", "on-click"]))
@@ -3262,52 +3267,52 @@ const hi = {
3262
3267
  }, 16, ["class"]))
3263
3268
  ], 6)) : D("", !0);
3264
3269
  }
3265
- }), Ei = /* @__PURE__ */ W(yi, [["__scopeId", "data-v-b59b9163"]]), Mi = { class: "av-autocomplete-input" }, pi = {
3270
+ }), EA = /* @__PURE__ */ W(yA, [["__scopeId", "data-v-b59b9163"]]), MA = { class: "av-autocomplete-input" }, pA = {
3266
3271
  key: 0,
3267
3272
  class: "av-autocomplete-input__suffix"
3268
- }, Ni = /* @__PURE__ */ O({
3273
+ }, NA = /* @__PURE__ */ O({
3269
3274
  __name: "AvAutocompleteInput",
3270
3275
  emits: ["search", "clear"],
3271
3276
  setup(e, { expose: t, emit: a }) {
3272
- const n = a, r = ie(), {
3273
- selectedItems: i,
3274
- searchQuery: A,
3275
- isOpen: l,
3276
- props: s,
3277
+ const n = a, r = Ae(), {
3278
+ selectedItems: A,
3279
+ searchQuery: i,
3280
+ isOpen: s,
3281
+ props: o,
3277
3282
  inputId: c,
3278
3283
  handleBlur: d,
3279
3284
  getDisplayLabel: f
3280
- } = lt(), h = J(), I = p(() => !s.multiSelect && i.value.length > 0 ? f(i.value[0]) : s.multiSelect && i.value.length > 0 ? s.showSelectedSection ? `${i.value.length} element(s) selected` : i.value.map(f).join(", ") : A.value), m = p(() => {
3285
+ } = lt(), b = J(), I = p(() => !o.multiSelect && A.value.length > 0 ? f(A.value[0]) : o.multiSelect && A.value.length > 0 ? o.showSelectedSection ? `${A.value.length} element(s) selected` : A.value.map(f).join(", ") : i.value), m = p(() => {
3281
3286
  var E;
3282
- return ((E = s.inputOptions) == null ? void 0 : E.placeholder) || "Search...";
3287
+ return ((E = o.inputOptions) == null ? void 0 : E.placeholder) || "Search...";
3283
3288
  }), C = Ft((E) => {
3284
- A.value = E, n("search", E);
3285
- }, s.debounceDelay);
3289
+ i.value = E, n("search", E);
3290
+ }, o.debounceDelay);
3286
3291
  function M(E) {
3287
- A.value = String(E || ""), C(A.value);
3292
+ i.value = String(E || ""), C(i.value);
3288
3293
  }
3289
3294
  function T() {
3290
- l.value = !0;
3295
+ s.value = !0;
3291
3296
  }
3292
3297
  function Q() {
3293
- i.value = [], A.value = "", n("clear");
3298
+ A.value = [], i.value = "", n("clear");
3294
3299
  }
3295
- return je(() => {
3300
+ return Be(() => {
3296
3301
  C.cancel();
3297
3302
  }), t({
3298
- inputRef: h,
3299
- searchQuery: p(() => A.value)
3300
- }), (E, L) => (u(), g("div", Mi, [
3301
- P(gA, ee({
3302
- id: o(c),
3303
+ inputRef: b,
3304
+ searchQuery: p(() => i.value)
3305
+ }), (E, L) => (u(), g("div", MA, [
3306
+ P(gi, ee({
3307
+ id: l(c),
3303
3308
  ref_key: "inputRef",
3304
- ref: h,
3305
- "model-value": o(I),
3306
- placeholder: o(m)
3307
- }, o(s).inputOptions, {
3309
+ ref: b,
3310
+ "model-value": l(I),
3311
+ placeholder: l(m)
3312
+ }, l(o).inputOptions, {
3308
3313
  "onUpdate:modelValue": M,
3309
3314
  onFocus: T,
3310
- onBlur: o(d),
3315
+ onBlur: l(d),
3311
3316
  onClick: T
3312
3317
  }), we({ _: 2 }, [
3313
3318
  r.requiredTip ? {
@@ -3318,10 +3323,10 @@ const hi = {
3318
3323
  key: "0"
3319
3324
  } : void 0
3320
3325
  ]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
3321
- o(i).length > 0 ? (u(), g("div", pi, [
3326
+ l(A).length > 0 ? (u(), g("div", pA, [
3322
3327
  P(me, {
3323
3328
  label: "Clear selected items",
3324
- icon: o(Y).CLOSE_CIRCLE_OUTLINE,
3329
+ icon: l(Y).CLOSE_CIRCLE_OUTLINE,
3325
3330
  "icon-only": "",
3326
3331
  "icon-scale": 0.8,
3327
3332
  size: "sm",
@@ -3332,47 +3337,47 @@ const hi = {
3332
3337
  ])) : D("", !0)
3333
3338
  ]));
3334
3339
  }
3335
- }), Ti = /* @__PURE__ */ W(Ni, [["__scopeId", "data-v-24fd377c"]]), Qi = {
3340
+ }), TA = /* @__PURE__ */ W(NA, [["__scopeId", "data-v-24fd377c"]]), QA = {
3336
3341
  key: 0,
3337
3342
  class: "av-autocomplete-selected-tags"
3338
- }, Di = /* @__PURE__ */ O({
3343
+ }, DA = /* @__PURE__ */ O({
3339
3344
  __name: "AvAutocompleteSelectedTags",
3340
3345
  setup(e) {
3341
- const t = ie(), {
3346
+ const t = Ae(), {
3342
3347
  selectedItems: a,
3343
3348
  props: n,
3344
3349
  getOptionId: r,
3345
- getDisplayLabel: i
3350
+ getDisplayLabel: A
3346
3351
  } = lt();
3347
- function A(l) {
3348
- const s = a.value, c = r(l);
3349
- a.value = s.filter(
3352
+ function i(s) {
3353
+ const o = a.value, c = r(s);
3354
+ a.value = o.filter(
3350
3355
  (d) => r(d) !== c
3351
3356
  );
3352
3357
  }
3353
- return (l, s) => o(n).multiSelect && o(a).length > 0 && o(n).showSelectedSection ? (u(), g("div", Qi, [
3354
- (u(!0), g(_, null, re(o(a), (c) => (u(), g("div", {
3355
- key: o(r)(c),
3358
+ return (s, o) => l(n).multiSelect && l(a).length > 0 && l(n).showSelectedSection ? (u(), g("div", QA, [
3359
+ (u(!0), g(_, null, re(l(a), (c) => (u(), g("div", {
3360
+ key: l(r)(c),
3356
3361
  class: "av-autocomplete-selected-tags__item"
3357
3362
  }, [
3358
- t.selectedItem ? B(l.$slots, "selectedItem", {
3363
+ t.selectedItem ? j(s.$slots, "selectedItem", {
3359
3364
  key: 0,
3360
3365
  option: c,
3361
- remove: () => A(c)
3366
+ remove: () => i(c)
3362
3367
  }, void 0, !0) : (u(), k(me, {
3363
3368
  key: 1,
3364
- label: o(i)(c),
3365
- icon: o(Y).CLOSE_CIRCLE_OUTLINE,
3369
+ label: l(A)(c),
3370
+ icon: l(Y).CLOSE_CIRCLE_OUTLINE,
3366
3371
  "icon-right": "",
3367
3372
  size: "sm",
3368
3373
  variant: "OUTLINED",
3369
3374
  theme: "SECONDARY",
3370
- "on-click": () => A(c)
3375
+ "on-click": () => i(c)
3371
3376
  }, null, 8, ["label", "icon", "on-click"]))
3372
3377
  ]))), 128))
3373
3378
  ])) : D("", !0);
3374
3379
  }
3375
- }), Li = /* @__PURE__ */ W(Di, [["__scopeId", "data-v-c00c128b"]]), Oi = { class: "av-autocomplete" }, wi = /* @__PURE__ */ O({
3380
+ }), LA = /* @__PURE__ */ W(DA, [["__scopeId", "data-v-c00c128b"]]), OA = { class: "av-autocomplete" }, wA = /* @__PURE__ */ O({
3376
3381
  __name: "AvAutocomplete",
3377
3382
  props: /* @__PURE__ */ ve({
3378
3383
  id: {},
@@ -3404,14 +3409,14 @@ const hi = {
3404
3409
  }),
3405
3410
  emits: /* @__PURE__ */ ve(["search", "loadMore", "clear"], ["update:modelValue"]),
3406
3411
  setup(e, { emit: t }) {
3407
- const a = e, n = t, r = ie(), i = ke(e, "modelValue"), A = J(!1), l = J(""), s = J(), c = J(), d = J(), f = p(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
3408
- function h(Q) {
3409
- l.value = Q, n("search", Q);
3412
+ const a = e, n = t, r = Ae(), A = ke(e, "modelValue"), i = J(!1), s = J(""), o = J(), c = J(), d = J(), f = p(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
3413
+ function b(Q) {
3414
+ s.value = Q, n("search", Q);
3410
3415
  }
3411
3416
  function I(Q) {
3412
3417
  var E, L;
3413
3418
  (L = (E = d.value) == null ? void 0 : E.dropdownRef) != null && L.contains(Q.relatedTarget) || setTimeout(() => {
3414
- A.value = !1;
3419
+ i.value = !1;
3415
3420
  }, a.blurCloseDelay);
3416
3421
  }
3417
3422
  function m(Q) {
@@ -3421,9 +3426,9 @@ const hi = {
3421
3426
  return a.getOptionLabel ? a.getOptionLabel(Q) : Q.label;
3422
3427
  }
3423
3428
  St(Ht, {
3424
- selectedItems: i,
3425
- searchQuery: l,
3426
- isOpen: A,
3429
+ selectedItems: A,
3430
+ searchQuery: s,
3431
+ isOpen: i,
3427
3432
  props: a,
3428
3433
  inputId: f,
3429
3434
  handleBlur: I,
@@ -3431,24 +3436,24 @@ const hi = {
3431
3436
  getDisplayLabel: C
3432
3437
  });
3433
3438
  function T(Q) {
3434
- var j, V, x, Ae, w;
3435
- const E = Q.target, L = (j = c.value) == null ? void 0 : j.inputRef;
3436
- !((V = L == null ? void 0 : L.contains) != null && V.call(L, E)) && !((x = s.value) != null && x.contains(E)) && !((w = (Ae = d.value) == null ? void 0 : Ae.dropdownRef) != null && w.contains(E)) && (A.value = !1);
3439
+ var B, V, x, ie, w;
3440
+ const E = Q.target, L = (B = c.value) == null ? void 0 : B.inputRef;
3441
+ !((V = L == null ? void 0 : L.contains) != null && V.call(L, E)) && !((x = o.value) != null && x.contains(E)) && !((w = (ie = d.value) == null ? void 0 : ie.dropdownRef) != null && w.contains(E)) && (i.value = !1);
3437
3442
  }
3438
3443
  return xe(() => {
3439
3444
  document.addEventListener("click", T);
3440
- }), je(() => {
3445
+ }), Be(() => {
3441
3446
  document.removeEventListener("click", T);
3442
- }), (Q, E) => (u(), g("div", Oi, [
3447
+ }), (Q, E) => (u(), g("div", OA, [
3443
3448
  y("div", {
3444
3449
  ref_key: "wrapperRef",
3445
- ref: s,
3450
+ ref: o,
3446
3451
  class: "av-autocomplete__wrapper"
3447
3452
  }, [
3448
- P(Ti, {
3453
+ P(TA, {
3449
3454
  ref_key: "inputRef",
3450
3455
  ref: c,
3451
- onSearch: h,
3456
+ onSearch: b,
3452
3457
  onClear: E[0] || (E[0] = (L) => n("clear"))
3453
3458
  }, we({ _: 2 }, [
3454
3459
  r.requiredTip ? {
@@ -3459,17 +3464,17 @@ const hi = {
3459
3464
  key: "0"
3460
3465
  } : void 0
3461
3466
  ]), 1536),
3462
- P(Ei, {
3467
+ P(EA, {
3463
3468
  ref_key: "dropdownRef",
3464
3469
  ref: d,
3465
3470
  onLoadMore: E[1] || (E[1] = (L) => n("loadMore"))
3466
3471
  }, we({ _: 2 }, [
3467
3472
  r.item ? {
3468
3473
  name: "item",
3469
- fn: R(({ option: L, isSelected: j, toggle: V }) => [
3470
- B(Q.$slots, "item", {
3474
+ fn: R(({ option: L, isSelected: B, toggle: V }) => [
3475
+ j(Q.$slots, "item", {
3471
3476
  option: L,
3472
- isSelected: j,
3477
+ isSelected: B,
3473
3478
  toggle: V
3474
3479
  }, void 0, !0)
3475
3480
  ]),
@@ -3478,19 +3483,19 @@ const hi = {
3478
3483
  r.empty ? {
3479
3484
  name: "empty",
3480
3485
  fn: R(() => [
3481
- B(Q.$slots, "empty", {}, void 0, !0)
3486
+ j(Q.$slots, "empty", {}, void 0, !0)
3482
3487
  ]),
3483
3488
  key: "1"
3484
3489
  } : void 0
3485
3490
  ]), 1536)
3486
3491
  ], 512),
3487
- P(Li, null, we({ _: 2 }, [
3492
+ P(LA, null, we({ _: 2 }, [
3488
3493
  r.selectedItem ? {
3489
3494
  name: "selectedItem",
3490
- fn: R(({ option: L, remove: j }) => [
3491
- B(Q.$slots, "selectedItem", {
3495
+ fn: R(({ option: L, remove: B }) => [
3496
+ j(Q.$slots, "selectedItem", {
3492
3497
  option: L,
3493
- remove: j
3498
+ remove: B
3494
3499
  }, void 0, !0)
3495
3500
  ]),
3496
3501
  key: "0"
@@ -3498,7 +3503,7 @@ const hi = {
3498
3503
  ]), 1024)
3499
3504
  ]));
3500
3505
  }
3501
- }), Ul = /* @__PURE__ */ W(wi, [["__scopeId", "data-v-fd810890"]]), Si = { class: "item-container" }, ki = /* @__PURE__ */ O({
3506
+ }), Ul = /* @__PURE__ */ W(wA, [["__scopeId", "data-v-fd810890"]]), SA = { class: "item-container" }, kA = /* @__PURE__ */ O({
3502
3507
  __name: "AvMultiselect",
3503
3508
  props: {
3504
3509
  disabled: { type: Boolean },
@@ -3523,7 +3528,7 @@ const hi = {
3523
3528
  te((f) => ({
3524
3529
  v5e495a53: f.width
3525
3530
  }));
3526
- const a = e, n = t, r = p(() => a.modelValue.map((f) => f.value)), i = p(() => {
3531
+ const a = e, n = t, r = p(() => a.modelValue.map((f) => f.value)), A = p(() => {
3527
3532
  if (!a.modelValue || a.modelValue.length === 0)
3528
3533
  return a.defaultUnselectedText;
3529
3534
  if (a.selectedText)
@@ -3531,26 +3536,26 @@ const hi = {
3531
3536
  const f = a.modelValue.length > 1 ? "s" : "";
3532
3537
  return `${a.modelValue.length} option${f} sélectionnée${f}`;
3533
3538
  });
3534
- function A(f) {
3535
- return a.modelValue.some((h) => h.value === f.value);
3536
- }
3537
- function l(f) {
3538
- return A(f) ? Y.CHECKBOX_MARKED : Y.CHECKBOX_BLANK_OUTLINE;
3539
+ function i(f) {
3540
+ return a.modelValue.some((b) => b.value === f.value);
3539
3541
  }
3540
3542
  function s(f) {
3541
- return A(f) ? "var(--dark-background-primary1)" : "var(--icon)";
3543
+ return i(f) ? Y.CHECKBOX_MARKED : Y.CHECKBOX_BLANK_OUTLINE;
3544
+ }
3545
+ function o(f) {
3546
+ return i(f) ? "var(--dark-background-primary1)" : "var(--icon)";
3542
3547
  }
3543
3548
  function c(f) {
3544
- return A(f) ? "b2-bold" : "b2-regular";
3549
+ return i(f) ? "b2-bold" : "b2-regular";
3545
3550
  }
3546
3551
  function d(f) {
3547
3552
  var I;
3548
- const h = ((I = a.options) == null ? void 0 : I.filter(
3553
+ const b = ((I = a.options) == null ? void 0 : I.filter(
3549
3554
  (m) => f.includes(m.value)
3550
3555
  )) ?? [];
3551
- n("update:modelValue", h);
3556
+ n("update:modelValue", b);
3552
3557
  }
3553
- return (f, h) => {
3558
+ return (f, b) => {
3554
3559
  const I = ne;
3555
3560
  return u(), g("div", {
3556
3561
  class: F({
@@ -3559,27 +3564,27 @@ const hi = {
3559
3564
  "fr-multiselect--selected": a.modelValue.length > 0
3560
3565
  })
3561
3566
  }, [
3562
- P(o(ma), ee(a, {
3563
- "model-value": o(r),
3564
- title: o(i),
3565
- "button-label": o(i),
3567
+ P(l(ma), ee(a, {
3568
+ "model-value": l(r),
3569
+ title: l(A),
3570
+ "button-label": l(A),
3566
3571
  "id-key": "value",
3567
3572
  "filtering-keys": ["label"],
3568
- "onUpdate:modelValue": h[0] || (h[0] = (m) => d(m))
3573
+ "onUpdate:modelValue": b[0] || (b[0] = (m) => d(m))
3569
3574
  }), {
3570
3575
  "checkbox-label": R(({ option: m }) => [
3571
- y("div", Si, [
3576
+ y("div", SA, [
3572
3577
  P(I, {
3573
3578
  class: "option-checkbox",
3574
- name: l(m),
3575
- color: s(m),
3579
+ name: s(m),
3580
+ color: o(m),
3576
3581
  size: 1.5
3577
3582
  }, null, 8, ["name", "color"]),
3578
3583
  m.icon ? (u(), k(I, {
3579
3584
  key: 0,
3580
3585
  class: "option-icon",
3581
3586
  name: m.icon,
3582
- color: s(m),
3587
+ color: o(m),
3583
3588
  size: 1.5
3584
3589
  }, null, 8, ["name", "color"])) : D("", !0),
3585
3590
  y("span", {
@@ -3592,7 +3597,7 @@ const hi = {
3592
3597
  ], 2);
3593
3598
  };
3594
3599
  }
3595
- }), Xl = /* @__PURE__ */ W(ki, [["__scopeId", "data-v-4cc765fa"]]), Hl = {
3600
+ }), Xl = /* @__PURE__ */ W(kA, [["__scopeId", "data-v-4cc765fa"]]), Hl = {
3596
3601
  name: "AvSelect",
3597
3602
  props: {
3598
3603
  modelValue: [String, Number],
@@ -3616,7 +3621,7 @@ const hi = {
3616
3621
  </option>
3617
3622
  </select>
3618
3623
  `
3619
- }, zi = /* @__PURE__ */ O({
3624
+ }, zA = /* @__PURE__ */ O({
3620
3625
  __name: "AvSelect",
3621
3626
  props: {
3622
3627
  required: { type: Boolean },
@@ -3635,31 +3640,31 @@ const hi = {
3635
3640
  emits: ["update:modelValue"],
3636
3641
  setup(e, { emit: t }) {
3637
3642
  const a = e, n = t, r = p(() => {
3638
- var A;
3643
+ var i;
3639
3644
  if (!a.modelValue)
3640
3645
  return a.defaultUnselectedText;
3641
- const i = (A = a.options) == null ? void 0 : A.find((l) => String(l.value) === String(a.modelValue));
3642
- return i ? i.text : a.defaultUnselectedText;
3646
+ const A = (i = a.options) == null ? void 0 : i.find((s) => String(s.value) === String(a.modelValue));
3647
+ return A ? A.text : a.defaultUnselectedText;
3643
3648
  });
3644
- return (i, A) => (u(), g("div", {
3649
+ return (A, i) => (u(), g("div", {
3645
3650
  class: F({ "fr-select--dense": a.dense })
3646
3651
  }, [
3647
- P(o(ga), ee(a, {
3648
- title: o(r),
3649
- "onUpdate:modelValue": A[0] || (A[0] = (l) => n("update:modelValue", l))
3652
+ P(l(ga), ee(a, {
3653
+ title: l(r),
3654
+ "onUpdate:modelValue": i[0] || (i[0] = (s) => n("update:modelValue", s))
3650
3655
  }), null, 16, ["title"])
3651
3656
  ], 2));
3652
3657
  }
3653
- }), Zl = /* @__PURE__ */ W(zi, [["__scopeId", "data-v-d230e734"]]), ql = /* @__PURE__ */ O({
3658
+ }), Zl = /* @__PURE__ */ W(zA, [["__scopeId", "data-v-d230e734"]]), ql = /* @__PURE__ */ O({
3654
3659
  __name: "AvTab",
3655
3660
  props: {
3656
3661
  title: {},
3657
3662
  icon: {}
3658
3663
  },
3659
3664
  setup(e) {
3660
- return (t, a) => B(t.$slots, "default");
3665
+ return (t, a) => j(t.$slots, "default");
3661
3666
  }
3662
- }), xi = /* @__PURE__ */ O({
3667
+ }), xA = /* @__PURE__ */ O({
3663
3668
  __name: "AvTabs",
3664
3669
  props: {
3665
3670
  ariaLabel: {},
@@ -3668,41 +3673,41 @@ const hi = {
3668
3673
  },
3669
3674
  emits: ["update:modelValue"],
3670
3675
  setup(e, { expose: t, emit: a }) {
3671
- const n = a, r = ie(), i = J(e.modelValue), A = p(() => {
3672
- var h;
3673
- return ((h = r.default) == null ? void 0 : h.call(r)) || [];
3676
+ const n = a, r = Ae(), A = J(e.modelValue), i = p(() => {
3677
+ var b;
3678
+ return ((b = r.default) == null ? void 0 : b.call(r)) || [];
3674
3679
  });
3675
- function l(h) {
3676
- const I = A.value.length;
3677
- i.value = (i.value + h + I) % I;
3680
+ function s(b) {
3681
+ const I = i.value.length;
3682
+ A.value = (A.value + b + I) % I;
3678
3683
  }
3679
- function s() {
3680
- l(-1);
3684
+ function o() {
3685
+ s(-1);
3681
3686
  }
3682
3687
  function c() {
3683
- l(1);
3688
+ s(1);
3684
3689
  }
3685
3690
  function d() {
3686
- i.value = 0;
3691
+ A.value = 0;
3687
3692
  }
3688
3693
  function f() {
3689
- i.value = A.value.length - 1;
3694
+ A.value = i.value.length - 1;
3690
3695
  }
3691
- return ce(() => e.modelValue, (h) => {
3692
- h !== void 0 && (i.value = h);
3693
- }), ce(i, (h) => {
3694
- n("update:modelValue", h);
3695
- }), t({ activeTab: i }), (h, I) => {
3696
- const m = ba, C = ha, M = Ia;
3696
+ return ce(() => e.modelValue, (b) => {
3697
+ b !== void 0 && (A.value = b);
3698
+ }), ce(A, (b) => {
3699
+ n("update:modelValue", b);
3700
+ }), t({ activeTab: A }), (b, I) => {
3701
+ const m = ha, C = ba, M = Ia;
3697
3702
  return u(), k(M, {
3698
- modelValue: o(i),
3699
- "onUpdate:modelValue": I[0] || (I[0] = (T) => At(i) ? i.value = T : null),
3703
+ modelValue: l(A),
3704
+ "onUpdate:modelValue": I[0] || (I[0] = (T) => it(A) ? A.value = T : null),
3700
3705
  class: F({ compact: e.compact }),
3701
3706
  "tab-list-name": e.ariaLabel ?? "Liste d’onglets",
3702
3707
  "tab-titles": []
3703
3708
  }, {
3704
3709
  "tab-items": R(() => [
3705
- (u(!0), g(_, null, re(o(A), (T, Q) => {
3710
+ (u(!0), g(_, null, re(l(i), (T, Q) => {
3706
3711
  var E;
3707
3712
  return u(), k(m, {
3708
3713
  key: Q,
@@ -3710,9 +3715,9 @@ const hi = {
3710
3715
  "tab-id": `tab-${Q}`,
3711
3716
  "panel-id": `panel-${Q}`,
3712
3717
  icon: (E = T.props) == null ? void 0 : E.icon,
3713
- onClick: (L) => i.value = Q,
3718
+ onClick: (L) => A.value = Q,
3714
3719
  onNext: c,
3715
- onPrevious: s,
3720
+ onPrevious: o,
3716
3721
  onFirst: d,
3717
3722
  onLast: f
3718
3723
  }, {
@@ -3727,7 +3732,7 @@ const hi = {
3727
3732
  }), 128))
3728
3733
  ]),
3729
3734
  default: R(() => [
3730
- (u(!0), g(_, null, re(o(A), (T, Q) => (u(), k(C, {
3735
+ (u(!0), g(_, null, re(l(i), (T, Q) => (u(), k(C, {
3731
3736
  key: Q,
3732
3737
  "panel-id": `panel-${Q}`,
3733
3738
  "tab-id": `tab-${Q}`
@@ -3742,16 +3747,16 @@ const hi = {
3742
3747
  }, 8, ["modelValue", "class", "tab-list-name"]);
3743
3748
  };
3744
3749
  }
3745
- }), Yl = /* @__PURE__ */ W(xi, [["__scopeId", "data-v-dbd71c5f"]]), ji = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2035%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.6'%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%23D4D4EC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.5%2020C30.0228%2020%2034.5%2015.5228%2034.5%2010C34.5%204.47715%2030.0228%200%2024.5%200C18.9772%200%2014.5%204.47715%2014.5%2010C14.5%2015.5228%2018.9772%2020%2024.5%2020Z'%20fill='%23000091'/%3e%3c/svg%3e", Bi = "data:image/svg+xml,%3csvg%20width='34'%20height='20'%20viewBox='0%200%2034%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%2314171A'%20fill-opacity='0.36'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2020C15.5228%2020%2020%2015.5228%2020%2010C20%204.47715%2015.5228%200%2010%200C4.47715%200%200%204.47715%200%2010C0%2015.5228%204.47715%2020%2010%2020Z'%20fill='%23F6F6F6'/%3e%3cpath%20d='M10%200.5C15.2467%200.5%2019.5%204.75329%2019.5%2010C19.5%2015.2467%2015.2467%2019.5%2010%2019.5C4.75329%2019.5%200.5%2015.2467%200.5%2010C0.5%204.75329%204.75329%200.5%2010%200.5Z'%20stroke='%2314171A'%20stroke-opacity='0.36'/%3e%3c/svg%3e", Pi = ["id", "for"], Wi = {
3750
+ }), Yl = /* @__PURE__ */ W(xA, [["__scopeId", "data-v-dbd71c5f"]]), BA = "data:image/svg+xml,%3csvg%20width='35'%20height='20'%20viewBox='0%200%2035%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.6'%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%23D4D4EC'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.5%2020C30.0228%2020%2034.5%2015.5228%2034.5%2010C34.5%204.47715%2030.0228%200%2024.5%200C18.9772%200%2014.5%204.47715%2014.5%2010C14.5%2015.5228%2018.9772%2020%2024.5%2020Z'%20fill='%23000091'/%3e%3c/svg%3e", jA = "data:image/svg+xml,%3csvg%20width='34'%20height='20'%20viewBox='0%200%2034%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20y='3'%20width='34'%20height='14'%20rx='7'%20fill='%2314171A'%20fill-opacity='0.36'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10%2020C15.5228%2020%2020%2015.5228%2020%2010C20%204.47715%2015.5228%200%2010%200C4.47715%200%200%204.47715%200%2010C0%2015.5228%204.47715%2020%2010%2020Z'%20fill='%23F6F6F6'/%3e%3cpath%20d='M10%200.5C15.2467%200.5%2019.5%204.75329%2019.5%2010C19.5%2015.2467%2015.2467%2019.5%2010%2019.5C4.75329%2019.5%200.5%2015.2467%200.5%2010C0.5%204.75329%204.75329%200.5%2010%200.5Z'%20stroke='%2314171A'%20stroke-opacity='0.36'/%3e%3c/svg%3e", PA = ["id", "for"], WA = {
3746
3751
  width: "34",
3747
3752
  height: "14"
3748
- }, Vi = ["href"], Ui = {
3753
+ }, VA = ["href"], UA = {
3749
3754
  key: 0,
3750
3755
  class: "caption-bold no-select"
3751
- }, Xi = {
3756
+ }, XA = {
3752
3757
  key: 1,
3753
3758
  class: "caption-regular no-select"
3754
- }, Hi = { class: "caption-regular" }, Zi = ["id", "disabled", "aria-disabled", "checked", "data-testid", "aria-describedby", "name"], qi = /* @__PURE__ */ O({
3759
+ }, HA = { class: "caption-regular" }, ZA = ["id", "disabled", "aria-disabled", "checked", "data-testid", "aria-describedby", "name"], qA = /* @__PURE__ */ O({
3755
3760
  __name: "AvToggle",
3756
3761
  props: {
3757
3762
  modelValue: { type: Boolean },
@@ -3765,10 +3770,10 @@ const hi = {
3765
3770
  emits: ["update:modelValue"],
3766
3771
  setup(e) {
3767
3772
  const t = e, a = p(() => t.id ?? crypto.randomUUID()), n = p(() => `${a.value}-label`);
3768
- return (r, i) => (u(), g(_, null, [
3773
+ return (r, A) => (u(), g(_, null, [
3769
3774
  y("label", {
3770
- id: o(n),
3771
- for: o(a),
3775
+ id: l(n),
3776
+ for: l(a),
3772
3777
  class: F(["av-toggle", {
3773
3778
  "av-toggle--disabled": e.disabled
3774
3779
  }])
@@ -3778,35 +3783,35 @@ const hi = {
3778
3783
  "toggle--disabled": e.disabled
3779
3784
  }])
3780
3785
  }, [
3781
- (u(), g("svg", Wi, [
3786
+ (u(), g("svg", WA, [
3782
3787
  y("image", {
3783
- href: e.modelValue ? o(ji) : o(Bi),
3788
+ href: e.modelValue ? l(BA) : l(jA),
3784
3789
  width: "34",
3785
3790
  height: "14"
3786
- }, null, 8, Vi)
3791
+ }, null, 8, VA)
3787
3792
  ])),
3788
- e.modelValue ? (u(), g("span", Ui, Z(e.activeText), 1)) : (u(), g("span", Xi, Z(e.inactiveText), 1))
3793
+ e.modelValue ? (u(), g("span", UA, Z(e.activeText), 1)) : (u(), g("span", XA, Z(e.inactiveText), 1))
3789
3794
  ], 2),
3790
- y("span", Hi, Z(e.description), 1)
3791
- ], 10, Pi),
3795
+ y("span", HA, Z(e.description), 1)
3796
+ ], 10, PA),
3792
3797
  y("input", {
3793
- id: o(a),
3798
+ id: l(a),
3794
3799
  style: { visibility: "hidden" },
3795
3800
  disabled: e.disabled,
3796
3801
  "aria-disabled": e.disabled,
3797
3802
  type: "checkbox",
3798
3803
  checked: e.modelValue,
3799
- "data-testid": o(a),
3800
- "aria-describedby": o(n),
3804
+ "data-testid": l(a),
3805
+ "aria-describedby": l(n),
3801
3806
  name: e.name,
3802
- onInput: i[0] || (i[0] = (A) => r.$emit("update:modelValue", A.target.checked))
3803
- }, null, 40, Zi)
3807
+ onInput: A[0] || (A[0] = (i) => r.$emit("update:modelValue", i.target.checked))
3808
+ }, null, 40, ZA)
3804
3809
  ], 64));
3805
3810
  }
3806
- }), Rl = /* @__PURE__ */ W(qi, [["__scopeId", "data-v-0aabed11"]]), Yi = {
3811
+ }), Rl = /* @__PURE__ */ W(qA, [["__scopeId", "data-v-0aabed11"]]), YA = {
3807
3812
  style: { position: "relative" },
3808
3813
  class: "my-nav-wrapper"
3809
- }, Ri = /* @__PURE__ */ O({
3814
+ }, RA = /* @__PURE__ */ O({
3810
3815
  __name: "AvNavigation",
3811
3816
  props: {
3812
3817
  navItems: {}
@@ -3815,15 +3820,15 @@ const hi = {
3815
3820
  const t = e;
3816
3821
  return (a, n) => {
3817
3822
  const r = Ca;
3818
- return u(), g("div", Yi, [
3823
+ return u(), g("div", YA, [
3819
3824
  P(r, Da(La(t)), null, 16)
3820
3825
  ]);
3821
3826
  };
3822
3827
  }
3823
- }), Fl = /* @__PURE__ */ W(Ri, [["__scopeId", "data-v-433349ab"]]), Fi = ["aria-label"], Ki = { class: "fr-pagination__list" }, Gi = { key: 0 }, Ji = { class: "b2-regular" }, _i = ["href", "title", "aria-disabled"], $i = { class: "fr-sr-only" }, eo = ["href", "title", "aria-disabled"], to = {
3828
+ }), Fl = /* @__PURE__ */ W(RA, [["__scopeId", "data-v-433349ab"]]), FA = ["aria-label"], KA = { class: "fr-pagination__list" }, GA = { key: 0 }, JA = { class: "b2-regular" }, _A = ["href", "title", "aria-disabled"], $A = { class: "fr-sr-only" }, eo = ["href", "title", "aria-disabled"], to = {
3824
3829
  key: 0,
3825
3830
  class: "caption-regular fr-hidden fr-unhidden-md"
3826
- }, ao = ["href", "title", "aria-current", "onClick"], no = { key: 0 }, ro = { key: 1 }, Ao = ["href", "title", "disabled", "aria-disabled"], io = {
3831
+ }, ao = ["href", "title", "aria-current", "onClick"], no = { key: 0 }, ro = { key: 1 }, io = ["href", "title", "disabled", "aria-disabled"], Ao = {
3827
3832
  key: 0,
3828
3833
  class: "caption-regular fr-hidden fr-unhidden-md"
3829
3834
  }, oo = ["href", "title", "disabled", "aria-disabled"], lo = { class: "fr-sr-only" }, so = /* @__PURE__ */ O({
@@ -3842,7 +3847,7 @@ const hi = {
3842
3847
  },
3843
3848
  emits: ["update:current-page"],
3844
3849
  setup(e, { emit: t }) {
3845
- const a = t, n = p(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), r = p(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), i = p(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, r.value + 1) : e.pages), A = (I) => a("update:current-page", I), l = (I) => A(I), s = () => l(0), c = () => l(Math.max(0, e.currentPage - 1)), d = () => l(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => l(e.pages.length - 1), h = (I) => e.pages.indexOf(I) === e.currentPage;
3850
+ const a = t, n = p(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), r = p(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), A = p(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, r.value + 1) : e.pages), i = (I) => a("update:current-page", I), s = (I) => i(I), o = () => s(0), c = () => s(Math.max(0, e.currentPage - 1)), d = () => s(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => s(e.pages.length - 1), b = (I) => e.pages.indexOf(I) === e.currentPage;
3846
3851
  return (I, m) => {
3847
3852
  var C, M, T, Q;
3848
3853
  return u(), g("nav", {
@@ -3850,9 +3855,9 @@ const hi = {
3850
3855
  class: "fr-pagination",
3851
3856
  "aria-label": e.ariaLabel
3852
3857
  }, [
3853
- y("ul", Ki, [
3854
- e.compact && e.compactCurrentPageLabel ? (u(), g("li", Gi, [
3855
- y("span", Ji, Z(e.compactCurrentPageLabel), 1)
3858
+ y("ul", KA, [
3859
+ e.compact && e.compactCurrentPageLabel ? (u(), g("li", GA, [
3860
+ y("span", JA, Z(e.compactCurrentPageLabel), 1)
3856
3861
  ])) : D("", !0),
3857
3862
  y("li", null, [
3858
3863
  e.compact ? D("", !0) : (u(), g("a", {
@@ -3861,15 +3866,15 @@ const hi = {
3861
3866
  class: "fr-pagination__link",
3862
3867
  title: e.firstPageLabel,
3863
3868
  "aria-disabled": e.currentPage === 0 ? !0 : void 0,
3864
- onClick: m[0] || (m[0] = se((E) => s(), ["prevent"]))
3869
+ onClick: m[0] || (m[0] = se((E) => o(), ["prevent"]))
3865
3870
  }, [
3866
3871
  P(ne, {
3867
- name: o(Y).PAGE_FIRST,
3872
+ name: l(Y).PAGE_FIRST,
3868
3873
  size: 1.5,
3869
3874
  color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
3870
3875
  }, null, 8, ["name", "color"]),
3871
- y("span", $i, Z(e.firstPageLabel), 1)
3872
- ], 8, _i))
3876
+ y("span", $A, Z(e.firstPageLabel), 1)
3877
+ ], 8, _A))
3873
3878
  ]),
3874
3879
  y("li", null, [
3875
3880
  y("a", {
@@ -3880,24 +3885,24 @@ const hi = {
3880
3885
  onClick: m[1] || (m[1] = se((E) => c(), ["prevent"]))
3881
3886
  }, [
3882
3887
  P(ne, {
3883
- name: o(Y).NAVIGATE_BEFORE,
3888
+ name: l(Y).NAVIGATE_BEFORE,
3884
3889
  size: 1.5,
3885
3890
  color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
3886
3891
  }, null, 8, ["name", "color"]),
3887
3892
  e.compact ? D("", !0) : (u(), g("span", to, Z(e.prevPageLabel), 1))
3888
3893
  ], 8, eo)
3889
3894
  ]),
3890
- e.compact ? D("", !0) : (u(!0), g(_, { key: 1 }, re(o(i), (E, L) => (u(), g("li", { key: L }, [
3895
+ e.compact ? D("", !0) : (u(!0), g(_, { key: 1 }, re(l(A), (E, L) => (u(), g("li", { key: L }, [
3891
3896
  y("a", {
3892
3897
  href: E == null ? void 0 : E.href,
3893
3898
  class: "fr-pagination__link fr-unhidden-lg",
3894
3899
  title: E.title,
3895
- "aria-current": h(E) ? "page" : void 0,
3896
- onClick: se((j) => l(e.pages.indexOf(E)), ["prevent"])
3900
+ "aria-current": b(E) ? "page" : void 0,
3901
+ onClick: se((B) => s(e.pages.indexOf(E)), ["prevent"])
3897
3902
  }, [
3898
- o(i).indexOf(E) === 0 && o(n) > 0 ? (u(), g("span", no, "...")) : D("", !0),
3903
+ l(A).indexOf(E) === 0 && l(n) > 0 ? (u(), g("span", no, "...")) : D("", !0),
3899
3904
  rt(" " + Z(E.label) + " ", 1),
3900
- o(i).indexOf(E) === o(i).length - 1 && o(r) < e.pages.length - 1 ? (u(), g("span", ro, "...")) : D("", !0)
3905
+ l(A).indexOf(E) === l(A).length - 1 && l(r) < e.pages.length - 1 ? (u(), g("span", ro, "...")) : D("", !0)
3901
3906
  ], 8, ao)
3902
3907
  ]))), 128)),
3903
3908
  y("li", null, [
@@ -3909,13 +3914,13 @@ const hi = {
3909
3914
  "aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
3910
3915
  onClick: m[2] || (m[2] = se((E) => d(), ["prevent"]))
3911
3916
  }, [
3912
- e.compact ? D("", !0) : (u(), g("span", io, Z(e.nextPageLabel), 1)),
3917
+ e.compact ? D("", !0) : (u(), g("span", Ao, Z(e.nextPageLabel), 1)),
3913
3918
  P(ne, {
3914
- name: o(Y).NAVIGATE_NEXT,
3919
+ name: l(Y).NAVIGATE_NEXT,
3915
3920
  size: 1.5,
3916
3921
  color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
3917
3922
  }, null, 8, ["name", "color"])
3918
- ], 8, Ao)
3923
+ ], 8, io)
3919
3924
  ]),
3920
3925
  y("li", null, [
3921
3926
  e.compact ? D("", !0) : (u(), g("a", {
@@ -3929,14 +3934,14 @@ const hi = {
3929
3934
  }, [
3930
3935
  y("span", lo, Z(e.lastPageLabel), 1),
3931
3936
  P(ne, {
3932
- name: o(Y).PAGE_LAST,
3937
+ name: l(Y).PAGE_LAST,
3933
3938
  size: 1.5,
3934
3939
  color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
3935
3940
  }, null, 8, ["name", "color"])
3936
3941
  ], 8, oo))
3937
3942
  ])
3938
3943
  ])
3939
- ], 8, Fi);
3944
+ ], 8, FA);
3940
3945
  };
3941
3946
  }
3942
3947
  }), Kl = /* @__PURE__ */ W(so, [["__scopeId", "data-v-ccfe7c3a"]]);
@@ -3969,36 +3974,36 @@ const co = ["id", "aria-label"], uo = {
3969
3974
  emits: /* @__PURE__ */ ve(["update:collapsed"], ["update:collapsed"]),
3970
3975
  setup(e) {
3971
3976
  te((d) => ({
3972
- v4d5b7c17: o(s),
3977
+ v4d5b7c17: l(o),
3973
3978
  v4a813d87: d.padding
3974
3979
  }));
3975
- const t = e, a = ke(e, "collapsed"), { width: n, collapsedWidth: r } = it(t), i = p(() => t.id ?? crypto.randomUUID()), A = p(() => `${i.value} navigation`), l = p({
3980
+ const t = e, a = ke(e, "collapsed"), { width: n, collapsedWidth: r } = At(t), A = p(() => t.id ?? crypto.randomUUID()), i = p(() => `${A.value} navigation`), s = p({
3976
3981
  get: () => t.collapsible ? a.value : !1,
3977
3982
  set: (d) => {
3978
3983
  t.collapsible && (a.value = d);
3979
3984
  }
3980
- }), s = p(() => t.collapsible && l.value ? r.value : n.value);
3985
+ }), o = p(() => t.collapsible && s.value ? r.value : n.value);
3981
3986
  function c() {
3982
- t.collapsible && (l.value = !l.value);
3987
+ t.collapsible && (s.value = !s.value);
3983
3988
  }
3984
3989
  return (d, f) => (u(), g("nav", {
3985
- id: o(i),
3986
- class: F(["av-side-menu", { "av-side-menu--collapsed": o(l) }]),
3987
- "aria-label": o(A)
3990
+ id: l(A),
3991
+ class: F(["av-side-menu", { "av-side-menu--collapsed": l(s) }]),
3992
+ "aria-label": l(i)
3988
3993
  }, [
3989
3994
  t.collapsible ? (u(), g("div", uo, [
3990
3995
  P(me, {
3991
- "aria-expanded": !o(l),
3992
- "aria-controls": o(i),
3993
- icon: o(l) ? o(Y).CHEVRON_DOUBLE_RIGHT : o(Y).CHEVRON_DOUBLE_LEFT,
3996
+ "aria-expanded": !l(s),
3997
+ "aria-controls": l(A),
3998
+ icon: l(s) ? l(Y).CHEVRON_DOUBLE_RIGHT : l(Y).CHEVRON_DOUBLE_LEFT,
3994
3999
  class: "av-side-menu__collapse-button",
3995
- label: o(l) ? `${o(i)}-expand-button` : `${o(i)}-collapse-button`,
4000
+ label: l(s) ? `${l(A)}-expand-button` : `${l(A)}-collapse-button`,
3996
4001
  "icon-only": "",
3997
4002
  onClick: c
3998
4003
  }, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
3999
4004
  ])) : D("", !0),
4000
4005
  y("div", fo, [
4001
- B(d.$slots, "default", {}, void 0, !0)
4006
+ j(d.$slots, "default", {}, void 0, !0)
4002
4007
  ])
4003
4008
  ], 10, co));
4004
4009
  }
@@ -4034,24 +4039,24 @@ const co = ["id", "aria-label"], uo = {
4034
4039
  function n(r) {
4035
4040
  t.value = r;
4036
4041
  }
4037
- return (r, i) => (u(), k(mo, {
4042
+ return (r, A) => (u(), k(mo, {
4038
4043
  collapsed: a.value,
4039
- "onUpdate:collapsed": i[0] || (i[0] = (A) => a.value = A),
4044
+ "onUpdate:collapsed": A[0] || (A[0] = (i) => a.value = i),
4040
4045
  "collapsed-width": e.collapsedWidth,
4041
4046
  color: e.selectedItemColor
4042
4047
  }, {
4043
4048
  default: R(() => [
4044
- P(o(Vt), {
4049
+ P(l(Vt), {
4045
4050
  size: "small",
4046
4051
  role: "menu"
4047
4052
  }, {
4048
4053
  default: R(() => [
4049
- (u(!0), g(_, null, re(e.items, (A) => (u(), k(o(Ut), {
4050
- key: A.id,
4051
- title: a.value ? void 0 : A.label,
4052
- icon: A.icon,
4054
+ (u(!0), g(_, null, re(e.items, (i) => (u(), k(l(Ut), {
4055
+ key: i.id,
4056
+ title: a.value ? void 0 : i.label,
4057
+ icon: i.icon,
4053
4058
  "icon-size": 1.8,
4054
- selected: t.value === A.id,
4059
+ selected: t.value === i.id,
4055
4060
  "hover-background-color": e.selectedItemColor,
4056
4061
  tag: "button",
4057
4062
  role: "menuitem",
@@ -4059,7 +4064,7 @@ const co = ["id", "aria-label"], uo = {
4059
4064
  "av-side-navigation__menu-item--collapsed": a.value
4060
4065
  }]),
4061
4066
  clickable: "",
4062
- onClick: (l) => n(A.id)
4067
+ onClick: (s) => n(i.id)
4063
4068
  }, null, 8, ["title", "icon", "selected", "hover-background-color", "class", "onClick"]))), 128))
4064
4069
  ]),
4065
4070
  _: 1
@@ -4092,7 +4097,7 @@ const co = ["id", "aria-label"], uo = {
4092
4097
  </div>
4093
4098
  </div>
4094
4099
  `
4095
- }, Io = { class: "custom-width-container" }, ho = { class: "block-container" }, bo = { class: "main-container" }, Co = ["aria-current"], yo = ["aria-current"], Eo = { class: "b1-regular" }, Mo = { class: "main-labels-container" }, po = /* @__PURE__ */ O({
4100
+ }, Io = { class: "custom-width-container" }, bo = { class: "block-container" }, ho = { class: "main-container" }, Co = ["aria-current"], yo = ["aria-current"], Eo = { class: "b1-regular" }, Mo = { class: "main-labels-container" }, po = /* @__PURE__ */ O({
4096
4101
  __name: "AvStepper",
4097
4102
  props: {
4098
4103
  steps: {},
@@ -4100,45 +4105,45 @@ const co = ["id", "aria-label"], uo = {
4100
4105
  width: { default: "100%" }
4101
4106
  },
4102
4107
  setup(e) {
4103
- te((i) => ({
4104
- v06d1bdf1: o(r)
4108
+ te((A) => ({
4109
+ v06d1bdf1: l(r)
4105
4110
  }));
4106
- const t = e, { steps: a, currentStep: n, width: r } = it(t);
4107
- return (i, A) => (u(), g("div", Io, [
4108
- y("div", ho, [
4109
- y("div", bo, [
4111
+ const t = e, { steps: a, currentStep: n, width: r } = At(t);
4112
+ return (A, i) => (u(), g("div", Io, [
4113
+ y("div", bo, [
4114
+ y("div", ho, [
4110
4115
  y("div", {
4111
4116
  class: "step step--active",
4112
- "aria-current": o(n) === 0 ? "step" : void 0
4113
- }, [...A[0] || (A[0] = [
4117
+ "aria-current": l(n) === 0 ? "step" : void 0
4118
+ }, [...i[0] || (i[0] = [
4114
4119
  y("span", { class: "b1-regular" }, "1", -1)
4115
4120
  ])], 8, Co),
4116
- (u(!0), g(_, null, re(o(a).slice(1, o(a).length), (l, s) => (u(), g("div", {
4117
- key: s,
4121
+ (u(!0), g(_, null, re(l(a).slice(1, l(a).length), (s, o) => (u(), g("div", {
4122
+ key: o,
4118
4123
  class: "steps-container"
4119
4124
  }, [
4120
4125
  y("div", {
4121
- class: F(["separator", { "separator--active": s + 1 <= o(n) }])
4126
+ class: F(["separator", { "separator--active": o + 1 <= l(n) }])
4122
4127
  }, null, 2),
4123
4128
  y("div", {
4124
- class: F(["step", { "step--active": s + 1 <= o(n) }]),
4125
- "aria-current": s + 1 === o(n) ? "step" : void 0
4129
+ class: F(["step", { "step--active": o + 1 <= l(n) }]),
4130
+ "aria-current": o + 1 === l(n) ? "step" : void 0
4126
4131
  }, [
4127
- y("span", Eo, Z(s + 2), 1)
4132
+ y("span", Eo, Z(o + 2), 1)
4128
4133
  ], 10, yo)
4129
4134
  ]))), 128))
4130
4135
  ]),
4131
4136
  y("div", Mo, [
4132
- (u(!0), g(_, null, re(o(a), (l, s) => (u(), g("div", {
4133
- key: s,
4137
+ (u(!0), g(_, null, re(l(a), (s, o) => (u(), g("div", {
4138
+ key: o,
4134
4139
  class: "label-container"
4135
4140
  }, [
4136
4141
  y("span", {
4137
4142
  class: F(["label", {
4138
- "b1-bold": s <= o(n),
4139
- "b1-light": s > o(n)
4143
+ "b1-bold": o <= l(n),
4144
+ "b1-light": o > l(n)
4140
4145
  }])
4141
- }, Z(l), 3)
4146
+ }, Z(s), 3)
4142
4147
  ]))), 128))
4143
4148
  ])
4144
4149
  ])
@@ -4167,15 +4172,15 @@ const co = ["id", "aria-label"], uo = {
4167
4172
  },
4168
4173
  emits: ["escapePressed"],
4169
4174
  setup(e, { emit: t }) {
4170
- te((s) => ({
4171
- b9426bca: o(A),
4172
- v7249d1b4: o(l)
4175
+ te((o) => ({
4176
+ b9426bca: l(i),
4177
+ v7249d1b4: l(s)
4173
4178
  }));
4174
- const a = e, n = t, r = ie(), { position: i, width: A, padding: l } = it(a);
4175
- return (s, c) => e.show ? (u(), g("div", No, [
4179
+ const a = e, n = t, r = Ae(), { position: A, width: i, padding: s } = At(a);
4180
+ return (o, c) => e.show ? (u(), g("div", No, [
4176
4181
  e.backdrop ? (u(), g("div", To)) : D("", !0),
4177
4182
  y("div", {
4178
- class: F(["av-drawer", `av-drawer--${o(i)}`]),
4183
+ class: F(["av-drawer", `av-drawer--${l(A)}`]),
4179
4184
  role: "dialog",
4180
4185
  "aria-modal": "true",
4181
4186
  "aria-label": e.ariaLabel,
@@ -4183,10 +4188,10 @@ const co = ["id", "aria-label"], uo = {
4183
4188
  }, [
4184
4189
  y("div", Do, [
4185
4190
  y("div", Lo, [
4186
- B(s.$slots, "default", {}, void 0, !0)
4191
+ j(o.$slots, "default", {}, void 0, !0)
4187
4192
  ]),
4188
4193
  r.footer ? (u(), g("div", Oo, [
4189
- B(s.$slots, "footer", {}, void 0, !0)
4194
+ j(o.$slots, "footer", {}, void 0, !0)
4190
4195
  ])) : D("", !0)
4191
4196
  ])
4192
4197
  ], 42, Qo)
@@ -4205,38 +4210,44 @@ const co = ["id", "aria-label"], uo = {
4205
4210
  icon: {},
4206
4211
  size: {},
4207
4212
  closeButtonLabel: {},
4213
+ closeButtonIcon: {},
4214
+ closeButtonDisabled: { type: Boolean },
4208
4215
  confirmButtonLabel: {},
4209
4216
  confirmButtonIcon: {},
4217
+ confirmButtonDisabled: { type: Boolean },
4210
4218
  isLoading: { type: Boolean }
4211
4219
  },
4212
4220
  emits: ["close", "confirm"],
4213
4221
  setup(e, { emit: t }) {
4214
- const a = wt(e, ["isLoading"]), n = t, r = ie(), i = p(() => a.confirmButtonIcon ?? Y.CHECK_CIRCLE_OUTLINE);
4215
- return (A, l) => {
4216
- const s = Wn, c = ya;
4222
+ const a = wt(e, ["isLoading"]), n = t, r = Ae(), A = p(() => a.closeButtonIcon ?? Y.CLOSE_CIRCLE_OUTLINE), i = p(() => a.confirmButtonIcon ?? Y.CHECK_CIRCLE_OUTLINE);
4223
+ return (s, o) => {
4224
+ const c = Wn, d = ya;
4217
4225
  return u(), k(zt, { to: "body" }, [
4218
- P(c, ee(a, {
4226
+ P(d, ee(a, {
4219
4227
  title: "",
4220
- onKeydown: l[2] || (l[2] = ot((d) => n("close"), ["esc"]))
4228
+ onKeydown: o[2] || (o[2] = ot((f) => n("close"), ["esc"]))
4221
4229
  }), {
4222
4230
  default: R(() => [
4223
4231
  r.header ? (u(), g("div", So, [
4224
- B(A.$slots, "header", {}, void 0, !0)
4232
+ j(s.$slots, "header", {}, void 0, !0)
4225
4233
  ])) : D("", !0),
4226
- B(A.$slots, "default", {}, void 0, !0)
4234
+ j(s.$slots, "default", {}, void 0, !0)
4227
4235
  ]),
4228
4236
  footer: R(() => [
4229
4237
  y("div", ko, [
4230
- P(s, {
4238
+ P(c, {
4231
4239
  "cancel-label": a.closeButtonLabel,
4232
- "cancel-icon": o(Y).CLOSE_CIRCLE_OUTLINE,
4240
+ "cancel-icon": l(A),
4241
+ "cancel-disabled": a.closeButtonDisabled,
4242
+ "cancel-is-loading": e.isLoading,
4233
4243
  "confirm-label": a.confirmButtonLabel,
4234
- "confirm-icon": o(i),
4235
- "is-loading": e.isLoading,
4236
- onCancel: l[0] || (l[0] = () => n("close")),
4237
- onConfirm: l[1] || (l[1] = () => n("confirm"))
4238
- }, null, 8, ["cancel-label", "cancel-icon", "confirm-label", "confirm-icon", "is-loading"]),
4239
- B(A.$slots, "footer", {}, void 0, !0)
4244
+ "confirm-icon": l(i),
4245
+ "confirm-disabled": a.confirmButtonDisabled,
4246
+ "confirm-is-loading": e.isLoading,
4247
+ onCancel: o[0] || (o[0] = () => n("close")),
4248
+ onConfirm: o[1] || (o[1] = () => n("confirm"))
4249
+ }, null, 8, ["cancel-label", "cancel-icon", "cancel-disabled", "cancel-is-loading", "confirm-label", "confirm-icon", "confirm-disabled", "confirm-is-loading"]),
4250
+ j(s.$slots, "footer", {}, void 0, !0)
4240
4251
  ])
4241
4252
  ]),
4242
4253
  _: 3
@@ -4244,33 +4255,33 @@ const co = ["id", "aria-label"], uo = {
4244
4255
  ]);
4245
4256
  };
4246
4257
  }
4247
- }), ns = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-3dea2f11"]]);
4258
+ }), ns = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-aef6262c"]]);
4248
4259
  function xo(e, t) {
4249
4260
  const a = J(!1), n = J({ top: 0, left: 0 }), r = async () => {
4250
4261
  if (a.value = !a.value, a.value && e.value) {
4251
4262
  await Re();
4252
- const l = e.value.getBoundingClientRect(), s = l.bottom + window.scrollY + 4;
4253
- let c = l.left + window.scrollX;
4263
+ const s = e.value.getBoundingClientRect(), o = s.bottom + window.scrollY + 4;
4264
+ let c = s.left + window.scrollX;
4254
4265
  if (t.value) {
4255
4266
  const d = t.value.getBoundingClientRect(), f = window.innerWidth;
4256
4267
  c + d.width > f && (c = f - d.width - 16, c < 0 && (c = 16));
4257
4268
  }
4258
- n.value = { top: s / 16, left: c / 16 };
4269
+ n.value = { top: o / 16, left: c / 16 };
4259
4270
  }
4260
- }, i = () => {
4271
+ }, A = () => {
4261
4272
  a.value = !1;
4262
- }, A = (l) => {
4263
- e.value && !e.value.contains(l.target) && i();
4273
+ }, i = (s) => {
4274
+ e.value && !e.value.contains(s.target) && A();
4264
4275
  };
4265
4276
  return xe(() => {
4266
- document.addEventListener("click", A);
4267
- }), je(() => {
4268
- document.removeEventListener("click", A);
4277
+ document.addEventListener("click", i);
4278
+ }), Be(() => {
4279
+ document.removeEventListener("click", i);
4269
4280
  }), {
4270
4281
  showPopover: a,
4271
4282
  popoverPosition: n,
4272
4283
  togglePopover: r,
4273
- closePopover: i
4284
+ closePopover: A
4274
4285
  };
4275
4286
  }
4276
4287
  /*!
@@ -4286,9 +4297,9 @@ var Kt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4286
4297
  }, qe = function e(t, a) {
4287
4298
  var n;
4288
4299
  a === void 0 && (a = !0);
4289
- var r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), i = r === "" || r === "true", A = i || a && t && e(t.parentNode);
4290
- return A;
4291
- }, jo = function(t) {
4300
+ var r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), A = r === "" || r === "true", i = A || a && t && e(t.parentNode);
4301
+ return i;
4302
+ }, Bo = function(t) {
4292
4303
  var a, n = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
4293
4304
  return n === "" || n === "true";
4294
4305
  }, Jt = function(t, a, n) {
@@ -4297,39 +4308,39 @@ var Kt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4297
4308
  var r = Array.prototype.slice.apply(t.querySelectorAll(He));
4298
4309
  return a && Ce.call(t, He) && r.unshift(t), r = r.filter(n), r;
4299
4310
  }, _t = function e(t, a, n) {
4300
- for (var r = [], i = Array.from(t); i.length; ) {
4301
- var A = i.shift();
4302
- if (!qe(A, !1))
4303
- if (A.tagName === "SLOT") {
4304
- var l = A.assignedElements(), s = l.length ? l : A.children, c = e(s, !0, n);
4311
+ for (var r = [], A = Array.from(t); A.length; ) {
4312
+ var i = A.shift();
4313
+ if (!qe(i, !1))
4314
+ if (i.tagName === "SLOT") {
4315
+ var s = i.assignedElements(), o = s.length ? s : i.children, c = e(o, !0, n);
4305
4316
  n.flatten ? r.push.apply(r, c) : r.push({
4306
- scopeParent: A,
4317
+ scopeParent: i,
4307
4318
  candidates: c
4308
4319
  });
4309
4320
  } else {
4310
- var d = Ce.call(A, He);
4311
- d && n.filter(A) && (a || !t.includes(A)) && r.push(A);
4312
- var f = A.shadowRoot || // check for an undisclosed shadow
4313
- typeof n.getShadowRoot == "function" && n.getShadowRoot(A), h = !qe(f, !1) && (!n.shadowRootFilter || n.shadowRootFilter(A));
4314
- if (f && h) {
4315
- var I = e(f === !0 ? A.children : f.children, !0, n);
4321
+ var d = Ce.call(i, He);
4322
+ d && n.filter(i) && (a || !t.includes(i)) && r.push(i);
4323
+ var f = i.shadowRoot || // check for an undisclosed shadow
4324
+ typeof n.getShadowRoot == "function" && n.getShadowRoot(i), b = !qe(f, !1) && (!n.shadowRootFilter || n.shadowRootFilter(i));
4325
+ if (f && b) {
4326
+ var I = e(f === !0 ? i.children : f.children, !0, n);
4316
4327
  n.flatten ? r.push.apply(r, I) : r.push({
4317
- scopeParent: A,
4328
+ scopeParent: i,
4318
4329
  candidates: I
4319
4330
  });
4320
4331
  } else
4321
- i.unshift.apply(i, A.children);
4332
+ A.unshift.apply(A, i.children);
4322
4333
  }
4323
4334
  }
4324
4335
  return r;
4325
4336
  }, $t = function(t) {
4326
4337
  return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
4327
- }, be = function(t) {
4338
+ }, he = function(t) {
4328
4339
  if (!t)
4329
4340
  throw new Error("No node provided");
4330
- return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || jo(t)) && !$t(t) ? 0 : t.tabIndex;
4331
- }, Bo = function(t, a) {
4332
- var n = be(t);
4341
+ return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Bo(t)) && !$t(t) ? 0 : t.tabIndex;
4342
+ }, jo = function(t, a) {
4343
+ var n = he(t);
4333
4344
  return n < 0 && a && !$t(t) ? 0 : n;
4334
4345
  }, Po = function(t, a) {
4335
4346
  return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
@@ -4349,33 +4360,33 @@ var Kt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4349
4360
  }, Xo = function(t) {
4350
4361
  if (!t.name)
4351
4362
  return !0;
4352
- var a = t.form || Ze(t), n = function(l) {
4353
- return a.querySelectorAll('input[type="radio"][name="' + l + '"]');
4363
+ var a = t.form || Ze(t), n = function(s) {
4364
+ return a.querySelectorAll('input[type="radio"][name="' + s + '"]');
4354
4365
  }, r;
4355
4366
  if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
4356
4367
  r = n(window.CSS.escape(t.name));
4357
4368
  else
4358
4369
  try {
4359
4370
  r = n(t.name);
4360
- } catch (A) {
4361
- return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", A.message), !1;
4371
+ } catch (i) {
4372
+ return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", i.message), !1;
4362
4373
  }
4363
- var i = Uo(r, t.form);
4364
- return !i || i === t;
4374
+ var A = Uo(r, t.form);
4375
+ return !A || A === t;
4365
4376
  }, Ho = function(t) {
4366
4377
  return ea(t) && t.type === "radio";
4367
4378
  }, Zo = function(t) {
4368
4379
  return Ho(t) && !Xo(t);
4369
4380
  }, qo = function(t) {
4370
- var a, n = t && Ze(t), r = (a = n) === null || a === void 0 ? void 0 : a.host, i = !1;
4381
+ var a, n = t && Ze(t), r = (a = n) === null || a === void 0 ? void 0 : a.host, A = !1;
4371
4382
  if (n && n !== t) {
4372
- var A, l, s;
4373
- for (i = !!((A = r) !== null && A !== void 0 && (l = A.ownerDocument) !== null && l !== void 0 && l.contains(r) || t != null && (s = t.ownerDocument) !== null && s !== void 0 && s.contains(t)); !i && r; ) {
4383
+ var i, s, o;
4384
+ for (A = !!((i = r) !== null && i !== void 0 && (s = i.ownerDocument) !== null && s !== void 0 && s.contains(r) || t != null && (o = t.ownerDocument) !== null && o !== void 0 && o.contains(t)); !A && r; ) {
4374
4385
  var c, d, f;
4375
- n = Ze(r), r = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((d = r) !== null && d !== void 0 && (f = d.ownerDocument) !== null && f !== void 0 && f.contains(r));
4386
+ n = Ze(r), r = (c = n) === null || c === void 0 ? void 0 : c.host, A = !!((d = r) !== null && d !== void 0 && (f = d.ownerDocument) !== null && f !== void 0 && f.contains(r));
4376
4387
  }
4377
4388
  }
4378
- return i;
4389
+ return A;
4379
4390
  }, Tt = function(t) {
4380
4391
  var a = t.getBoundingClientRect(), n = a.width, r = a.height;
4381
4392
  return n === 0 && r === 0;
@@ -4383,18 +4394,18 @@ var Kt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4383
4394
  var n = a.displayCheck, r = a.getShadowRoot;
4384
4395
  if (getComputedStyle(t).visibility === "hidden")
4385
4396
  return !0;
4386
- var i = Ce.call(t, "details>summary:first-of-type"), A = i ? t.parentElement : t;
4387
- if (Ce.call(A, "details:not([open]) *"))
4397
+ var A = Ce.call(t, "details>summary:first-of-type"), i = A ? t.parentElement : t;
4398
+ if (Ce.call(i, "details:not([open]) *"))
4388
4399
  return !0;
4389
4400
  if (!n || n === "full" || n === "legacy-full") {
4390
4401
  if (typeof r == "function") {
4391
- for (var l = t; t; ) {
4392
- var s = t.parentElement, c = Ze(t);
4393
- if (s && !s.shadowRoot && r(s) === !0)
4402
+ for (var s = t; t; ) {
4403
+ var o = t.parentElement, c = Ze(t);
4404
+ if (o && !o.shadowRoot && r(o) === !0)
4394
4405
  return Tt(t);
4395
- t.assignedSlot ? t = t.assignedSlot : !s && c !== t.ownerDocument ? t = c.host : t = s;
4406
+ t.assignedSlot ? t = t.assignedSlot : !o && c !== t.ownerDocument ? t = c.host : t = o;
4396
4407
  }
4397
- t = l;
4408
+ t = s;
4398
4409
  }
4399
4410
  if (qo(t))
4400
4411
  return !t.getClientRects().length;
@@ -4424,23 +4435,23 @@ var Kt = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4424
4435
  qe(a) || Wo(a) || Yo(a, t) || // For a details element with a summary, the summary element gets the focus
4425
4436
  Vo(a) || Ro(a));
4426
4437
  }, at = function(t, a) {
4427
- return !(Zo(a) || be(a) < 0 || !Ye(t, a));
4438
+ return !(Zo(a) || he(a) < 0 || !Ye(t, a));
4428
4439
  }, Fo = function(t) {
4429
4440
  var a = parseInt(t.getAttribute("tabindex"), 10);
4430
4441
  return !!(isNaN(a) || a >= 0);
4431
4442
  }, Ko = function e(t) {
4432
4443
  var a = [], n = [];
4433
- return t.forEach(function(r, i) {
4434
- var A = !!r.scopeParent, l = A ? r.scopeParent : r, s = Bo(l, A), c = A ? e(r.candidates) : l;
4435
- s === 0 ? A ? a.push.apply(a, c) : a.push(l) : n.push({
4436
- documentOrder: i,
4437
- tabIndex: s,
4444
+ return t.forEach(function(r, A) {
4445
+ var i = !!r.scopeParent, s = i ? r.scopeParent : r, o = jo(s, i), c = i ? e(r.candidates) : s;
4446
+ o === 0 ? i ? a.push.apply(a, c) : a.push(s) : n.push({
4447
+ documentOrder: A,
4448
+ tabIndex: o,
4438
4449
  item: r,
4439
- isScope: A,
4450
+ isScope: i,
4440
4451
  content: c
4441
4452
  });
4442
- }), n.sort(Po).reduce(function(r, i) {
4443
- return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
4453
+ }), n.sort(Po).reduce(function(r, A) {
4454
+ return A.isScope ? r.push.apply(r, A.content) : r.push(A.content), r;
4444
4455
  }, []).concat(a);
4445
4456
  }, Go = function(t, a) {
4446
4457
  a = a || {};
@@ -4481,7 +4492,7 @@ function $o(e) {
4481
4492
  if (Array.isArray(e)) return nt(e);
4482
4493
  }
4483
4494
  function el(e, t, a) {
4484
- return (t = Al(t)) in e ? Object.defineProperty(e, t, {
4495
+ return (t = il(t)) in e ? Object.defineProperty(e, t, {
4485
4496
  value: a,
4486
4497
  enumerable: !0,
4487
4498
  configurable: !0,
@@ -4517,7 +4528,7 @@ function Dt(e) {
4517
4528
  return e;
4518
4529
  }
4519
4530
  function nl(e) {
4520
- return $o(e) || tl(e) || il(e) || al();
4531
+ return $o(e) || tl(e) || Al(e) || al();
4521
4532
  }
4522
4533
  function rl(e, t) {
4523
4534
  if (typeof e != "object" || !e) return e;
@@ -4529,11 +4540,11 @@ function rl(e, t) {
4529
4540
  }
4530
4541
  return (t === "string" ? String : Number)(e);
4531
4542
  }
4532
- function Al(e) {
4543
+ function il(e) {
4533
4544
  var t = rl(e, "string");
4534
4545
  return typeof t == "symbol" ? t : t + "";
4535
4546
  }
4536
- function il(e, t) {
4547
+ function Al(e, t) {
4537
4548
  if (e) {
4538
4549
  if (typeof e == "string") return nt(e, t);
4539
4550
  var a = {}.toString.call(e).slice(8, -1);
@@ -4569,16 +4580,16 @@ var Lt = {
4569
4580
  for (var a = arguments.length, n = new Array(a > 1 ? a - 1 : 0), r = 1; r < a; r++)
4570
4581
  n[r - 1] = arguments[r];
4571
4582
  return typeof t == "function" ? t.apply(void 0, n) : t;
4572
- }, Be = function(t) {
4583
+ }, je = function(t) {
4573
4584
  return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
4574
4585
  }, ul = [], dl = function(t, a) {
4575
- var n = (a == null ? void 0 : a.document) || document, r = (a == null ? void 0 : a.trapStack) || ul, i = Dt({
4586
+ var n = (a == null ? void 0 : a.document) || document, r = (a == null ? void 0 : a.trapStack) || ul, A = Dt({
4576
4587
  returnFocusOnDeactivate: !0,
4577
4588
  escapeDeactivates: !0,
4578
4589
  delayInitialFocus: !0,
4579
4590
  isKeyForward: sl,
4580
4591
  isKeyBackward: cl
4581
- }, a), A = {
4592
+ }, a), i = {
4582
4593
  // containers given to createFocusTrap()
4583
4594
  // @type {Array<HTMLElement>}
4584
4595
  containers: [],
@@ -4615,11 +4626,11 @@ var Lt = {
4615
4626
  delayInitialFocusTimer: void 0,
4616
4627
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
4617
4628
  recentNavEvent: void 0
4618
- }, l, s = function(v, b, N) {
4619
- return v && v[b] !== void 0 ? v[b] : i[N || b];
4620
- }, c = function(v, b) {
4621
- var N = typeof (b == null ? void 0 : b.composedPath) == "function" ? b.composedPath() : void 0;
4622
- return A.containerGroups.findIndex(function(z) {
4629
+ }, s, o = function(v, h, N) {
4630
+ return v && v[h] !== void 0 ? v[h] : A[N || h];
4631
+ }, c = function(v, h) {
4632
+ var N = typeof (h == null ? void 0 : h.composedPath) == "function" ? h.composedPath() : void 0;
4633
+ return i.containerGroups.findIndex(function(z) {
4623
4634
  var U = z.container, q = z.tabbableNodes;
4624
4635
  return U.contains(v) || // fall back to explicit tabbable search which will take into consideration any
4625
4636
  // web components if the `tabbableOptions.getShadowRoot` option was used for
@@ -4630,7 +4641,7 @@ var Lt = {
4630
4641
  });
4631
4642
  });
4632
4643
  }, d = function(v) {
4633
- var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = b.hasFallback, z = N === void 0 ? !1 : N, U = b.params, q = U === void 0 ? [] : U, S = i[v];
4644
+ var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = h.hasFallback, z = N === void 0 ? !1 : N, U = h.params, q = U === void 0 ? [] : U, S = A[v];
4634
4645
  if (typeof S == "function" && (S = S.apply(void 0, nl(q))), S === !0 && (S = void 0), !S) {
4635
4646
  if (S === void 0 || S === !1)
4636
4647
  return S;
@@ -4653,29 +4664,29 @@ var Lt = {
4653
4664
  });
4654
4665
  if (v === !1)
4655
4666
  return !1;
4656
- if (v === void 0 || v && !et(v, i.tabbableOptions))
4667
+ if (v === void 0 || v && !et(v, A.tabbableOptions))
4657
4668
  if (c(n.activeElement) >= 0)
4658
4669
  v = n.activeElement;
4659
4670
  else {
4660
- var b = A.tabbableGroups[0], N = b && b.firstTabbableNode;
4671
+ var h = i.tabbableGroups[0], N = h && h.firstTabbableNode;
4661
4672
  v = N || d("fallbackFocus");
4662
4673
  }
4663
4674
  else v === null && (v = d("fallbackFocus"));
4664
4675
  if (!v)
4665
4676
  throw new Error("Your focus-trap needs to have at least one focusable element");
4666
4677
  return v;
4667
- }, h = function() {
4668
- if (A.containerGroups = A.containers.map(function(v) {
4669
- var b = Go(v, i.tabbableOptions), N = Jo(v, i.tabbableOptions), z = b.length > 0 ? b[0] : void 0, U = b.length > 0 ? b[b.length - 1] : void 0, q = N.find(function(G) {
4678
+ }, b = function() {
4679
+ if (i.containerGroups = i.containers.map(function(v) {
4680
+ var h = Go(v, A.tabbableOptions), N = Jo(v, A.tabbableOptions), z = h.length > 0 ? h[0] : void 0, U = h.length > 0 ? h[h.length - 1] : void 0, q = N.find(function(G) {
4670
4681
  return Ee(G);
4671
4682
  }), S = N.slice().reverse().find(function(G) {
4672
4683
  return Ee(G);
4673
- }), K = !!b.find(function(G) {
4674
- return be(G) > 0;
4684
+ }), K = !!h.find(function(G) {
4685
+ return he(G) > 0;
4675
4686
  });
4676
4687
  return {
4677
4688
  container: v,
4678
- tabbableNodes: b,
4689
+ tabbableNodes: h,
4679
4690
  focusableNodes: N,
4680
4691
  /** True if at least one node with positive `tabindex` was found in this container. */
4681
4692
  posTabIndexesFound: K,
@@ -4703,26 +4714,26 @@ var Lt = {
4703
4714
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
4704
4715
  */
4705
4716
  nextTabbableNode: function(Ie) {
4706
- var Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, de = b.indexOf(Ie);
4717
+ var Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, de = h.indexOf(Ie);
4707
4718
  return de < 0 ? Ne ? N.slice(N.indexOf(Ie) + 1).find(function(Te) {
4708
4719
  return Ee(Te);
4709
4720
  }) : N.slice(0, N.indexOf(Ie)).reverse().find(function(Te) {
4710
4721
  return Ee(Te);
4711
- }) : b[de + (Ne ? 1 : -1)];
4722
+ }) : h[de + (Ne ? 1 : -1)];
4712
4723
  }
4713
4724
  };
4714
- }), A.tabbableGroups = A.containerGroups.filter(function(v) {
4725
+ }), i.tabbableGroups = i.containerGroups.filter(function(v) {
4715
4726
  return v.tabbableNodes.length > 0;
4716
- }), A.tabbableGroups.length <= 0 && !d("fallbackFocus"))
4727
+ }), i.tabbableGroups.length <= 0 && !d("fallbackFocus"))
4717
4728
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
4718
- if (A.containerGroups.find(function(v) {
4729
+ if (i.containerGroups.find(function(v) {
4719
4730
  return v.posTabIndexesFound;
4720
- }) && A.containerGroups.length > 1)
4731
+ }) && i.containerGroups.length > 1)
4721
4732
  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.");
4722
4733
  }, I = function(v) {
4723
- var b = v.activeElement;
4724
- if (b)
4725
- return b.shadowRoot && b.shadowRoot.activeElement !== null ? I(b.shadowRoot) : b;
4734
+ var h = v.activeElement;
4735
+ if (h)
4736
+ return h.shadowRoot && h.shadowRoot.activeElement !== null ? I(h.shadowRoot) : h;
4726
4737
  }, m = function(v) {
4727
4738
  if (v !== !1 && v !== I(document)) {
4728
4739
  if (!v || !v.focus) {
@@ -4730,81 +4741,81 @@ var Lt = {
4730
4741
  return;
4731
4742
  }
4732
4743
  v.focus({
4733
- preventScroll: !!i.preventScroll
4734
- }), A.mostRecentlyFocusedNode = v, ol(v) && v.select();
4744
+ preventScroll: !!A.preventScroll
4745
+ }), i.mostRecentlyFocusedNode = v, ol(v) && v.select();
4735
4746
  }
4736
4747
  }, C = function(v) {
4737
- var b = d("setReturnFocus", {
4748
+ var h = d("setReturnFocus", {
4738
4749
  params: [v]
4739
4750
  });
4740
- return b || (b === !1 ? !1 : v);
4751
+ return h || (h === !1 ? !1 : v);
4741
4752
  }, M = function(v) {
4742
- var b = v.target, N = v.event, z = v.isBackward, U = z === void 0 ? !1 : z;
4743
- b = b || Be(N), h();
4753
+ var h = v.target, N = v.event, z = v.isBackward, U = z === void 0 ? !1 : z;
4754
+ h = h || je(N), b();
4744
4755
  var q = null;
4745
- if (A.tabbableGroups.length > 0) {
4746
- var S = c(b, N), K = S >= 0 ? A.containerGroups[S] : void 0;
4756
+ if (i.tabbableGroups.length > 0) {
4757
+ var S = c(h, N), K = S >= 0 ? i.containerGroups[S] : void 0;
4747
4758
  if (S < 0)
4748
- U ? q = A.tabbableGroups[A.tabbableGroups.length - 1].lastTabbableNode : q = A.tabbableGroups[0].firstTabbableNode;
4759
+ U ? q = i.tabbableGroups[i.tabbableGroups.length - 1].lastTabbableNode : q = i.tabbableGroups[0].firstTabbableNode;
4749
4760
  else if (U) {
4750
- var G = A.tabbableGroups.findIndex(function(Ke) {
4761
+ var G = i.tabbableGroups.findIndex(function(Ke) {
4751
4762
  var Ge = Ke.firstTabbableNode;
4752
- return b === Ge;
4763
+ return h === Ge;
4753
4764
  });
4754
- if (G < 0 && (K.container === b || et(b, i.tabbableOptions) && !Ee(b, i.tabbableOptions) && !K.nextTabbableNode(b, !1)) && (G = S), G >= 0) {
4755
- var Ie = G === 0 ? A.tabbableGroups.length - 1 : G - 1, Ne = A.tabbableGroups[Ie];
4756
- q = be(b) >= 0 ? Ne.lastTabbableNode : Ne.lastDomTabbableNode;
4757
- } else Se(N) || (q = K.nextTabbableNode(b, !1));
4765
+ if (G < 0 && (K.container === h || et(h, A.tabbableOptions) && !Ee(h, A.tabbableOptions) && !K.nextTabbableNode(h, !1)) && (G = S), G >= 0) {
4766
+ var Ie = G === 0 ? i.tabbableGroups.length - 1 : G - 1, Ne = i.tabbableGroups[Ie];
4767
+ q = he(h) >= 0 ? Ne.lastTabbableNode : Ne.lastDomTabbableNode;
4768
+ } else Se(N) || (q = K.nextTabbableNode(h, !1));
4758
4769
  } else {
4759
- var de = A.tabbableGroups.findIndex(function(Ke) {
4770
+ var de = i.tabbableGroups.findIndex(function(Ke) {
4760
4771
  var Ge = Ke.lastTabbableNode;
4761
- return b === Ge;
4772
+ return h === Ge;
4762
4773
  });
4763
- if (de < 0 && (K.container === b || et(b, i.tabbableOptions) && !Ee(b, i.tabbableOptions) && !K.nextTabbableNode(b)) && (de = S), de >= 0) {
4764
- var Te = de === A.tabbableGroups.length - 1 ? 0 : de + 1, ut = A.tabbableGroups[Te];
4765
- q = be(b) >= 0 ? ut.firstTabbableNode : ut.firstDomTabbableNode;
4766
- } else Se(N) || (q = K.nextTabbableNode(b));
4774
+ if (de < 0 && (K.container === h || et(h, A.tabbableOptions) && !Ee(h, A.tabbableOptions) && !K.nextTabbableNode(h)) && (de = S), de >= 0) {
4775
+ var Te = de === i.tabbableGroups.length - 1 ? 0 : de + 1, ut = i.tabbableGroups[Te];
4776
+ q = he(h) >= 0 ? ut.firstTabbableNode : ut.firstDomTabbableNode;
4777
+ } else Se(N) || (q = K.nextTabbableNode(h));
4767
4778
  }
4768
4779
  } else
4769
4780
  q = d("fallbackFocus");
4770
4781
  return q;
4771
4782
  }, T = function(v) {
4772
- var b = Be(v);
4773
- if (!(c(b, v) >= 0)) {
4774
- if (Oe(i.clickOutsideDeactivates, v)) {
4775
- l.deactivate({
4783
+ var h = je(v);
4784
+ if (!(c(h, v) >= 0)) {
4785
+ if (Oe(A.clickOutsideDeactivates, v)) {
4786
+ s.deactivate({
4776
4787
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
4777
4788
  // which will result in the outside click setting focus to the node
4778
4789
  // that was clicked (and if not focusable, to "nothing"); by setting
4779
4790
  // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
4780
4791
  // on activation (or the configured `setReturnFocus` node), whether the
4781
4792
  // outside click was on a focusable node or not
4782
- returnFocus: i.returnFocusOnDeactivate
4793
+ returnFocus: A.returnFocusOnDeactivate
4783
4794
  });
4784
4795
  return;
4785
4796
  }
4786
- Oe(i.allowOutsideClick, v) || v.preventDefault();
4797
+ Oe(A.allowOutsideClick, v) || v.preventDefault();
4787
4798
  }
4788
4799
  }, Q = function(v) {
4789
- var b = Be(v), N = c(b, v) >= 0;
4790
- if (N || b instanceof Document)
4791
- N && (A.mostRecentlyFocusedNode = b);
4800
+ var h = je(v), N = c(h, v) >= 0;
4801
+ if (N || h instanceof Document)
4802
+ N && (i.mostRecentlyFocusedNode = h);
4792
4803
  else {
4793
4804
  v.stopImmediatePropagation();
4794
4805
  var z, U = !0;
4795
- if (A.mostRecentlyFocusedNode)
4796
- if (be(A.mostRecentlyFocusedNode) > 0) {
4797
- var q = c(A.mostRecentlyFocusedNode), S = A.containerGroups[q].tabbableNodes;
4806
+ if (i.mostRecentlyFocusedNode)
4807
+ if (he(i.mostRecentlyFocusedNode) > 0) {
4808
+ var q = c(i.mostRecentlyFocusedNode), S = i.containerGroups[q].tabbableNodes;
4798
4809
  if (S.length > 0) {
4799
4810
  var K = S.findIndex(function(G) {
4800
- return G === A.mostRecentlyFocusedNode;
4811
+ return G === i.mostRecentlyFocusedNode;
4801
4812
  });
4802
- K >= 0 && (i.isKeyForward(A.recentNavEvent) ? K + 1 < S.length && (z = S[K + 1], U = !1) : K - 1 >= 0 && (z = S[K - 1], U = !1));
4813
+ K >= 0 && (A.isKeyForward(i.recentNavEvent) ? K + 1 < S.length && (z = S[K + 1], U = !1) : K - 1 >= 0 && (z = S[K - 1], U = !1));
4803
4814
  }
4804
4815
  } else
4805
- A.containerGroups.some(function(G) {
4816
+ i.containerGroups.some(function(G) {
4806
4817
  return G.tabbableNodes.some(function(Ie) {
4807
- return be(Ie) > 0;
4818
+ return he(Ie) > 0;
4808
4819
  });
4809
4820
  }) || (U = !1);
4810
4821
  else
@@ -4812,29 +4823,29 @@ var Lt = {
4812
4823
  U && (z = M({
4813
4824
  // move FROM the MRU node, not event-related node (which will be the node that is
4814
4825
  // outside the trap causing the focus escape we're trying to fix)
4815
- target: A.mostRecentlyFocusedNode,
4816
- isBackward: i.isKeyBackward(A.recentNavEvent)
4817
- })), m(z || A.mostRecentlyFocusedNode || f());
4826
+ target: i.mostRecentlyFocusedNode,
4827
+ isBackward: A.isKeyBackward(i.recentNavEvent)
4828
+ })), m(z || i.mostRecentlyFocusedNode || f());
4818
4829
  }
4819
- A.recentNavEvent = void 0;
4830
+ i.recentNavEvent = void 0;
4820
4831
  }, E = function(v) {
4821
- var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4822
- A.recentNavEvent = v;
4832
+ var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4833
+ i.recentNavEvent = v;
4823
4834
  var N = M({
4824
4835
  event: v,
4825
- isBackward: b
4836
+ isBackward: h
4826
4837
  });
4827
4838
  N && (Se(v) && v.preventDefault(), m(N));
4828
4839
  }, L = function(v) {
4829
- (i.isKeyForward(v) || i.isKeyBackward(v)) && E(v, i.isKeyBackward(v));
4830
- }, j = function(v) {
4831
- ll(v) && Oe(i.escapeDeactivates, v) !== !1 && (v.preventDefault(), l.deactivate());
4840
+ (A.isKeyForward(v) || A.isKeyBackward(v)) && E(v, A.isKeyBackward(v));
4841
+ }, B = function(v) {
4842
+ ll(v) && Oe(A.escapeDeactivates, v) !== !1 && (v.preventDefault(), s.deactivate());
4832
4843
  }, V = function(v) {
4833
- var b = Be(v);
4834
- c(b, v) >= 0 || Oe(i.clickOutsideDeactivates, v) || Oe(i.allowOutsideClick, v) || (v.preventDefault(), v.stopImmediatePropagation());
4844
+ var h = je(v);
4845
+ c(h, v) >= 0 || Oe(A.clickOutsideDeactivates, v) || Oe(A.allowOutsideClick, v) || (v.preventDefault(), v.stopImmediatePropagation());
4835
4846
  }, x = function() {
4836
- if (A.active)
4837
- return Lt.activateTrap(r, l), A.delayInitialFocusTimer = i.delayInitialFocus ? Ot(function() {
4847
+ if (i.active)
4848
+ return Lt.activateTrap(r, s), i.delayInitialFocusTimer = A.delayInitialFocus ? Ot(function() {
4838
4849
  m(f());
4839
4850
  }) : m(f()), n.addEventListener("focusin", Q, !0), n.addEventListener("mousedown", T, {
4840
4851
  capture: !0,
@@ -4848,94 +4859,94 @@ var Lt = {
4848
4859
  }), n.addEventListener("keydown", L, {
4849
4860
  capture: !0,
4850
4861
  passive: !1
4851
- }), n.addEventListener("keydown", j), l;
4852
- }, Ae = function() {
4853
- if (A.active)
4854
- return n.removeEventListener("focusin", Q, !0), n.removeEventListener("mousedown", T, !0), n.removeEventListener("touchstart", T, !0), n.removeEventListener("click", V, !0), n.removeEventListener("keydown", L, !0), n.removeEventListener("keydown", j), l;
4862
+ }), n.addEventListener("keydown", B), s;
4863
+ }, ie = function() {
4864
+ if (i.active)
4865
+ return n.removeEventListener("focusin", Q, !0), n.removeEventListener("mousedown", T, !0), n.removeEventListener("touchstart", T, !0), n.removeEventListener("click", V, !0), n.removeEventListener("keydown", L, !0), n.removeEventListener("keydown", B), s;
4855
4866
  }, w = function(v) {
4856
- var b = v.some(function(N) {
4867
+ var h = v.some(function(N) {
4857
4868
  var z = Array.from(N.removedNodes);
4858
4869
  return z.some(function(U) {
4859
- return U === A.mostRecentlyFocusedNode;
4870
+ return U === i.mostRecentlyFocusedNode;
4860
4871
  });
4861
4872
  });
4862
- b && m(f());
4873
+ h && m(f());
4863
4874
  }, oe = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(w) : void 0, $ = function() {
4864
- oe && (oe.disconnect(), A.active && !A.paused && A.containers.map(function(v) {
4875
+ oe && (oe.disconnect(), i.active && !i.paused && i.containers.map(function(v) {
4865
4876
  oe.observe(v, {
4866
4877
  subtree: !0,
4867
4878
  childList: !0
4868
4879
  });
4869
4880
  }));
4870
4881
  };
4871
- return l = {
4882
+ return s = {
4872
4883
  get active() {
4873
- return A.active;
4884
+ return i.active;
4874
4885
  },
4875
4886
  get paused() {
4876
- return A.paused;
4887
+ return i.paused;
4877
4888
  },
4878
4889
  activate: function(v) {
4879
- if (A.active)
4890
+ if (i.active)
4880
4891
  return this;
4881
- var b = s(v, "onActivate"), N = s(v, "onPostActivate"), z = s(v, "checkCanFocusTrap");
4882
- z || h(), A.active = !0, A.paused = !1, A.nodeFocusedBeforeActivation = I(n), b == null || b();
4892
+ var h = o(v, "onActivate"), N = o(v, "onPostActivate"), z = o(v, "checkCanFocusTrap");
4893
+ z || b(), i.active = !0, i.paused = !1, i.nodeFocusedBeforeActivation = I(n), h == null || h();
4883
4894
  var U = function() {
4884
- z && h(), x(), $(), N == null || N();
4895
+ z && b(), x(), $(), N == null || N();
4885
4896
  };
4886
- return z ? (z(A.containers.concat()).then(U, U), this) : (U(), this);
4897
+ return z ? (z(i.containers.concat()).then(U, U), this) : (U(), this);
4887
4898
  },
4888
4899
  deactivate: function(v) {
4889
- if (!A.active)
4900
+ if (!i.active)
4890
4901
  return this;
4891
- var b = Dt({
4892
- onDeactivate: i.onDeactivate,
4893
- onPostDeactivate: i.onPostDeactivate,
4894
- checkCanReturnFocus: i.checkCanReturnFocus
4902
+ var h = Dt({
4903
+ onDeactivate: A.onDeactivate,
4904
+ onPostDeactivate: A.onPostDeactivate,
4905
+ checkCanReturnFocus: A.checkCanReturnFocus
4895
4906
  }, v);
4896
- clearTimeout(A.delayInitialFocusTimer), A.delayInitialFocusTimer = void 0, Ae(), A.active = !1, A.paused = !1, $(), Lt.deactivateTrap(r, l);
4897
- var N = s(b, "onDeactivate"), z = s(b, "onPostDeactivate"), U = s(b, "checkCanReturnFocus"), q = s(b, "returnFocus", "returnFocusOnDeactivate");
4907
+ clearTimeout(i.delayInitialFocusTimer), i.delayInitialFocusTimer = void 0, ie(), i.active = !1, i.paused = !1, $(), Lt.deactivateTrap(r, s);
4908
+ var N = o(h, "onDeactivate"), z = o(h, "onPostDeactivate"), U = o(h, "checkCanReturnFocus"), q = o(h, "returnFocus", "returnFocusOnDeactivate");
4898
4909
  N == null || N();
4899
4910
  var S = function() {
4900
4911
  Ot(function() {
4901
- q && m(C(A.nodeFocusedBeforeActivation)), z == null || z();
4912
+ q && m(C(i.nodeFocusedBeforeActivation)), z == null || z();
4902
4913
  });
4903
4914
  };
4904
- return q && U ? (U(C(A.nodeFocusedBeforeActivation)).then(S, S), this) : (S(), this);
4915
+ return q && U ? (U(C(i.nodeFocusedBeforeActivation)).then(S, S), this) : (S(), this);
4905
4916
  },
4906
4917
  pause: function(v) {
4907
- return A.active ? (A.manuallyPaused = !0, this._setPausedState(!0, v)) : this;
4918
+ return i.active ? (i.manuallyPaused = !0, this._setPausedState(!0, v)) : this;
4908
4919
  },
4909
4920
  unpause: function(v) {
4910
- return A.active ? (A.manuallyPaused = !1, r[r.length - 1] !== this ? this : this._setPausedState(!1, v)) : this;
4921
+ return i.active ? (i.manuallyPaused = !1, r[r.length - 1] !== this ? this : this._setPausedState(!1, v)) : this;
4911
4922
  },
4912
4923
  updateContainerElements: function(v) {
4913
- var b = [].concat(v).filter(Boolean);
4914
- return A.containers = b.map(function(N) {
4924
+ var h = [].concat(v).filter(Boolean);
4925
+ return i.containers = h.map(function(N) {
4915
4926
  return typeof N == "string" ? n.querySelector(N) : N;
4916
- }), A.active && h(), $(), this;
4927
+ }), i.active && b(), $(), this;
4917
4928
  }
4918
- }, Object.defineProperties(l, {
4929
+ }, Object.defineProperties(s, {
4919
4930
  _isManuallyPaused: {
4920
4931
  value: function() {
4921
- return A.manuallyPaused;
4932
+ return i.manuallyPaused;
4922
4933
  }
4923
4934
  },
4924
4935
  _setPausedState: {
4925
- value: function(v, b) {
4926
- if (A.paused === v)
4936
+ value: function(v, h) {
4937
+ if (i.paused === v)
4927
4938
  return this;
4928
- if (A.paused = v, v) {
4929
- var N = s(b, "onPause"), z = s(b, "onPostPause");
4930
- N == null || N(), Ae(), $(), z == null || z();
4939
+ if (i.paused = v, v) {
4940
+ var N = o(h, "onPause"), z = o(h, "onPostPause");
4941
+ N == null || N(), ie(), $(), z == null || z();
4931
4942
  } else {
4932
- var U = s(b, "onUnpause"), q = s(b, "onPostUnpause");
4933
- U == null || U(), h(), x(), $(), q == null || q();
4943
+ var U = o(h, "onUnpause"), q = o(h, "onPostUnpause");
4944
+ U == null || U(), b(), x(), $(), q == null || q();
4934
4945
  }
4935
4946
  return this;
4936
4947
  }
4937
4948
  }
4938
- }), l.updateContainerElements(t), l;
4949
+ }), s.updateContainerElements(t), s;
4939
4950
  };
4940
4951
  function fl(e, t) {
4941
4952
  let a = null;
@@ -4968,7 +4979,7 @@ const vl = { class: "av-popover-wrapper" }, ml = /* @__PURE__ */ O({
4968
4979
  v75959032: f.width,
4969
4980
  v330e9906: f.padding
4970
4981
  }));
4971
- const a = J(null), n = J(null), { showPopover: r, popoverPosition: i, togglePopover: A, closePopover: l } = xo(a, n), { initializeFocusTrap: s, cleanupFocusTrap: c } = fl(n, l);
4982
+ const a = J(null), n = J(null), { showPopover: r, popoverPosition: A, togglePopover: i, closePopover: s } = xo(a, n), { initializeFocusTrap: o, cleanupFocusTrap: c } = fl(n, s);
4972
4983
  function d(f) {
4973
4984
  if (!f) {
4974
4985
  a.value = null;
@@ -4978,44 +4989,44 @@ const vl = { class: "av-popover-wrapper" }, ml = /* @__PURE__ */ O({
4978
4989
  a.value = f;
4979
4990
  return;
4980
4991
  }
4981
- const h = f.$el;
4982
- h instanceof HTMLElement ? a.value = h : a.value = null;
4992
+ const b = f.$el;
4993
+ b instanceof HTMLElement ? a.value = b : a.value = null;
4983
4994
  }
4984
4995
  return t({ setTriggerRef: d, triggerRef: a }), ce(r, async (f) => {
4985
- f ? (await Re(), s()) : c();
4996
+ f ? (await Re(), o()) : c();
4986
4997
  }), Oa(() => {
4987
4998
  c();
4988
- }), (f, h) => (u(), g("div", vl, [
4999
+ }), (f, b) => (u(), g("div", vl, [
4989
5000
  y("div", {
4990
5001
  ref: d,
4991
5002
  class: "av-popover-trigger-wrapper"
4992
5003
  }, [
4993
- B(f.$slots, "trigger", { toggle: o(A) }, void 0, !0)
5004
+ j(f.$slots, "trigger", { toggle: l(i) }, void 0, !0)
4994
5005
  ]),
4995
5006
  (u(), k(zt, { to: "body" }, [
4996
- o(r) ? (u(), g("div", {
5007
+ l(r) ? (u(), g("div", {
4997
5008
  key: 0,
4998
5009
  ref_key: "popoverRef",
4999
5010
  ref: n,
5000
5011
  tabindex: "-1",
5001
5012
  class: "av-popover",
5002
- style: Ve(`top: ${o(i).top}rem; left: ${o(i).left}rem;`),
5003
- onKeydown: h[0] || (h[0] = ot(se(
5013
+ style: Ve(`top: ${l(A).top}rem; left: ${l(A).left}rem;`),
5014
+ onKeydown: b[0] || (b[0] = ot(se(
5004
5015
  //@ts-ignore
5005
- (...I) => o(l) && o(l)(...I),
5016
+ (...I) => l(s) && l(s)(...I),
5006
5017
  ["prevent"]
5007
5018
  ), ["esc"]))
5008
5019
  }, [
5009
- B(f.$slots, "popover", { close: o(l) }, void 0, !0)
5020
+ j(f.$slots, "popover", { close: l(s) }, void 0, !0)
5010
5021
  ], 36)) : D("", !0)
5011
5022
  ]))
5012
5023
  ]));
5013
5024
  }
5014
- }), rs = /* @__PURE__ */ W(ml, [["__scopeId", "data-v-6a5eaa47"]]), As = {
5025
+ }), rs = /* @__PURE__ */ W(ml, [["__scopeId", "data-v-6a5eaa47"]]), is = {
5015
5026
  name: "DsfrBadge",
5016
5027
  template: '<div class="dsfr-badge" />',
5017
5028
  props: ["label", "type", "small", "ellipsis"]
5018
- }, is = {
5029
+ }, As = {
5019
5030
  name: "DsfrModal",
5020
5031
  props: ["opened", "title"],
5021
5032
  template: '<div class="dsfr-modal"><slot /><slot name="footer" /></div>',
@@ -5042,8 +5053,8 @@ export {
5042
5053
  Ga as AvAlert,
5043
5054
  Ul as AvAutocomplete,
5044
5055
  Vl as AvAutocompleteStub,
5045
- bl as AvBadge,
5046
- hl as AvBadgeStub,
5056
+ hl as AvBadge,
5057
+ bl as AvBadgeStub,
5047
5058
  me as AvButton,
5048
5059
  wl as AvButtonStub,
5049
5060
  Wn as AvCancelConfirmButtons,
@@ -5053,8 +5064,8 @@ export {
5053
5064
  kl as AvFileUpload,
5054
5065
  Ql as AvHeader,
5055
5066
  ft as AvHeaderMenuLinks,
5056
- ja as AvIconText,
5057
- gA as AvInput,
5067
+ Ba as AvIconText,
5068
+ gi as AvInput,
5058
5069
  Vt as AvList,
5059
5070
  Ut as AvListItem,
5060
5071
  xl as AvListItemStub,
@@ -5064,10 +5075,10 @@ export {
5064
5075
  Xl as AvMultiselect,
5065
5076
  Fl as AvNavigation,
5066
5077
  Cl as AvNotice,
5067
- Bl as AvPageSizePicker,
5078
+ jl as AvPageSizePicker,
5068
5079
  Kl as AvPagination,
5069
5080
  rs as AvPopover,
5070
- wA as AvRadioButton,
5081
+ wi as AvRadioButton,
5071
5082
  Wl as AvRadioButtonSet,
5072
5083
  Sl as AvRichButton,
5073
5084
  Zl as AvSelect,
@@ -5079,15 +5090,15 @@ export {
5079
5090
  $l as AvStepperStub,
5080
5091
  ql as AvTab,
5081
5092
  Yl as AvTabs,
5082
- DA as AvTagPicker,
5093
+ Di as AvTagPicker,
5083
5094
  Pl as AvTagPickerStub,
5084
5095
  Tl as AvToaster,
5085
5096
  Rl as AvToggle,
5086
5097
  ne as AvVIcon,
5087
5098
  yl as AvVIconStub,
5088
5099
  Me as DropdownState,
5089
- As as DsfrBadgeStub,
5090
- is as DsfrModalStub,
5100
+ is as DsfrBadgeStub,
5101
+ As as DsfrModalStub,
5091
5102
  os as DsfrNavigationStub,
5092
5103
  Dl as EsupLogo,
5093
5104
  pl as ICONS_DATA_URL,
@@ -5095,10 +5106,10 @@ export {
5095
5106
  Xt as PageSizes,
5096
5107
  Ml as RI_ICONS,
5097
5108
  ls as VIconStub,
5098
- Ba as formatTextToHtml,
5109
+ ja as formatTextToHtml,
5099
5110
  Gl as getPaginationPages,
5100
5111
  Nl as isValidEmail,
5101
- jl as pageSizeValues,
5112
+ Bl as pageSizeValues,
5102
5113
  us as registerNavigationLinkKey,
5103
5114
  Xa as removeDuplicates,
5104
5115
  Je as toSentenceCase,