@avenirs-esr/avenirs-dsav 0.1.58 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avenirs-dsav.css +1 -1
- package/dist/components/badges/AvTag/AvTag.stub.d.ts +6 -6
- package/dist/components/base/AvIcon/AvIcon.stub.d.ts +2 -2
- package/dist/components/interaction/buttons/AvButton/AvButton.stub.d.ts +4 -4
- package/dist/components/interaction/checkboxes/AvCheckbox/AvCheckbox.stub.d.ts +1 -1
- package/dist/components/interaction/lists/AvListItem/AvListItem.stub.d.ts +2 -2
- package/dist/components/interaction/pickers/AvTagPicker/AvTagPicker.stub.d.ts +2 -2
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stories.d.ts +24 -22
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.stub.d.ts +5 -5
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocomplete.vue.d.ts +11 -11
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteDropdown.vue.d.ts +1 -1
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +7 -7
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteSelectedTags.vue.d.ts +1 -1
- package/dist/components/interaction/toggles/AvToggle/AvToggle.stub.d.ts +2 -2
- package/dist/components/overlay/dropdowns/AvDropdown/AvDropdown.stories.d.ts +61 -0
- package/dist/components/overlay/dropdowns/AvDropdown/AvDropdown.stub.d.ts +19 -0
- package/dist/components/overlay/dropdowns/AvDropdown/AvDropdown.vue.d.ts +81 -0
- package/dist/components/overlay/index.d.ts +1 -0
- package/dist/index.cjs.js +8 -8
- package/dist/index.es.js +982 -924
- package/dist/test-utils.cjs.js +19 -8
- package/dist/test-utils.es.js +33 -16
- package/dist/tests/index.d.ts +2 -1
- package/dist/tokens/icons.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, useCssVars as ce, computed as E, createElementBlock as g, openBlock as A, normalizeStyle as fe, normalizeClass as
|
|
1
|
+
import { defineComponent as j, useCssVars as ce, computed as E, createElementBlock as g, openBlock as A, normalizeStyle as fe, normalizeClass as H, unref as d, createElementVNode as p, toDisplayString as z, h as dn, ref as q, watch as ie, nextTick as De, onMounted as ue, createVNode as X, createPropsRestProxy as Gn, createBlock as R, resolveDynamicComponent as Ce, mergeProps as te, withCtx as G, createCommentVNode as w, Fragment as J, createTextVNode as le, useSlots as ge, renderSlot as F, normalizeProps as Ue, TransitionGroup as qa, renderList as ae, withModifiers as de, withKeys as Ae, toRef as Ct, onUnmounted as ve, provide as Et, resolveComponent as Mt, reactive as Wt, inject as He, useTemplateRef as Ra, useId as Xa, hasInjectionContext as Gt, onBeforeUnmount as Jt, Comment as Za, cloneVNode as Ya, Transition as Ka, withDirectives as Jn, vShow as Ga, mergeModels as pe, useModel as Pe, vModelCheckbox as Ja, isRef as Tt, getCurrentScope as $a, onScopeDispose as _a, getCurrentInstance as $t, toValue as re, shallowRef as Me, watchEffect as ei, createSlots as lt, guardReactiveProps as $n, toRefs as _t, Teleport as _n } from "vue";
|
|
2
2
|
import { r as ea } from "./injection-key.es.js";
|
|
3
3
|
const ti = ["title"], ni = /* @__PURE__ */ j({
|
|
4
4
|
__name: "AvBadge",
|
|
@@ -23,7 +23,7 @@ const ti = ["title"], ni = /* @__PURE__ */ j({
|
|
|
23
23
|
"--icon-path": `url(${e.iconPath})`
|
|
24
24
|
}));
|
|
25
25
|
return (n, a) => (A(), g("p", {
|
|
26
|
-
class:
|
|
26
|
+
class: H(["av-badge fr-badge", {
|
|
27
27
|
[`fr-badge--${e.type}`]: e.type,
|
|
28
28
|
"fr-badge--no-icon": e.noIcon,
|
|
29
29
|
"fr-badge--sm": e.small,
|
|
@@ -33,7 +33,7 @@ const ti = ["title"], ni = /* @__PURE__ */ j({
|
|
|
33
33
|
style: fe(d(t))
|
|
34
34
|
}, [
|
|
35
35
|
p("span", {
|
|
36
|
-
class:
|
|
36
|
+
class: H(e.ellipsis ? "fr-ellipsis" : "")
|
|
37
37
|
}, z(e.label), 3)
|
|
38
38
|
], 14, ti));
|
|
39
39
|
}
|
|
@@ -42,7 +42,7 @@ const ti = ["title"], ni = /* @__PURE__ */ j({
|
|
|
42
42
|
for (const [a, i] of t)
|
|
43
43
|
n[a] = i;
|
|
44
44
|
return n;
|
|
45
|
-
},
|
|
45
|
+
}, Xf = /* @__PURE__ */ Y(ni, [["__scopeId", "data-v-97b734d8"]]), ta = /^[a-z0-9]+(-[a-z0-9]+)*$/, Nt = (e, t, n, a = "") => {
|
|
46
46
|
const i = e.split(":");
|
|
47
47
|
if (e.slice(0, 1) === "@") {
|
|
48
48
|
if (i.length < 2 || i.length > 3)
|
|
@@ -229,14 +229,14 @@ function la(e) {
|
|
|
229
229
|
return typeof e == "boolean" && (tt = e), tt;
|
|
230
230
|
}
|
|
231
231
|
function ci(e) {
|
|
232
|
-
const t = typeof e == "string" ?
|
|
232
|
+
const t = typeof e == "string" ? Nt(e, !0, tt) : e;
|
|
233
233
|
if (t) {
|
|
234
234
|
const n = We(t.provider, t.prefix), a = t.name;
|
|
235
235
|
return n.icons[a] || (n.missing.has(a) ? null : void 0);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
function ui(e, t) {
|
|
239
|
-
const n =
|
|
239
|
+
const n = Nt(e, !0, tt);
|
|
240
240
|
if (!n)
|
|
241
241
|
return !1;
|
|
242
242
|
const a = We(n.provider, n.prefix);
|
|
@@ -332,18 +332,18 @@ function bi(e, t) {
|
|
|
332
332
|
};
|
|
333
333
|
let r = n.body;
|
|
334
334
|
[n, a].forEach((b) => {
|
|
335
|
-
const C = [],
|
|
335
|
+
const C = [], x = b.hFlip, D = b.vFlip;
|
|
336
336
|
let k = b.rotate;
|
|
337
|
-
|
|
337
|
+
x ? D ? k += 2 : (C.push(
|
|
338
338
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
|
339
339
|
), C.push("scale(-1 1)"), i.top = i.left = 0) : D && (C.push(
|
|
340
340
|
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
|
341
341
|
), C.push("scale(1 -1)"), i.top = i.left = 0);
|
|
342
|
-
let
|
|
342
|
+
let N;
|
|
343
343
|
switch (k < 0 && (k -= Math.floor(k / 4) * 4), k = k % 4, k) {
|
|
344
344
|
case 1:
|
|
345
|
-
|
|
346
|
-
"rotate(90 " +
|
|
345
|
+
N = i.height / 2 + i.top, C.unshift(
|
|
346
|
+
"rotate(90 " + N.toString() + " " + N.toString() + ")"
|
|
347
347
|
);
|
|
348
348
|
break;
|
|
349
349
|
case 2:
|
|
@@ -352,12 +352,12 @@ function bi(e, t) {
|
|
|
352
352
|
);
|
|
353
353
|
break;
|
|
354
354
|
case 3:
|
|
355
|
-
|
|
356
|
-
"rotate(-90 " +
|
|
355
|
+
N = i.width / 2 + i.left, C.unshift(
|
|
356
|
+
"rotate(-90 " + N.toString() + " " + N.toString() + ")"
|
|
357
357
|
);
|
|
358
358
|
break;
|
|
359
359
|
}
|
|
360
|
-
k % 2 === 1 && (i.left !== i.top && (
|
|
360
|
+
k % 2 === 1 && (i.left !== i.top && (N = i.left, i.left = i.top, i.top = N), i.width !== i.height && (N = i.width, i.width = i.height, i.height = N)), C.length && (r = gi(
|
|
361
361
|
r,
|
|
362
362
|
'<g transform="' + C.join(" ") + '">',
|
|
363
363
|
"</g>"
|
|
@@ -401,7 +401,7 @@ const Ut = /* @__PURE__ */ Object.create(null);
|
|
|
401
401
|
function Ei(e, t) {
|
|
402
402
|
Ut[e] = t;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Ht(e) {
|
|
405
405
|
return Ut[e] || Ut[""];
|
|
406
406
|
}
|
|
407
407
|
function en(e) {
|
|
@@ -445,7 +445,7 @@ function Mi(e, t) {
|
|
|
445
445
|
function nn(e) {
|
|
446
446
|
return tn[e];
|
|
447
447
|
}
|
|
448
|
-
const
|
|
448
|
+
const Ti = () => {
|
|
449
449
|
let e;
|
|
450
450
|
try {
|
|
451
451
|
if (e = fetch, typeof e == "function")
|
|
@@ -453,8 +453,8 @@ const Ni = () => {
|
|
|
453
453
|
} catch {
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
|
-
let mn =
|
|
457
|
-
function
|
|
456
|
+
let mn = Ti();
|
|
457
|
+
function Ni(e, t) {
|
|
458
458
|
const n = nn(e);
|
|
459
459
|
if (!n)
|
|
460
460
|
return 0;
|
|
@@ -475,7 +475,7 @@ function ki(e) {
|
|
|
475
475
|
return e === 404;
|
|
476
476
|
}
|
|
477
477
|
const wi = (e, t, n) => {
|
|
478
|
-
const a = [], i =
|
|
478
|
+
const a = [], i = Ni(e, t), r = "icons";
|
|
479
479
|
let l = {
|
|
480
480
|
type: r,
|
|
481
481
|
provider: e,
|
|
@@ -499,7 +499,7 @@ function Oi(e) {
|
|
|
499
499
|
}
|
|
500
500
|
return "/";
|
|
501
501
|
}
|
|
502
|
-
const
|
|
502
|
+
const Li = (e, t, n) => {
|
|
503
503
|
if (!mn) {
|
|
504
504
|
n("abort", 424);
|
|
505
505
|
return;
|
|
@@ -545,9 +545,9 @@ const xi = (e, t, n) => {
|
|
|
545
545
|
}).catch(() => {
|
|
546
546
|
n("next", i);
|
|
547
547
|
});
|
|
548
|
-
},
|
|
548
|
+
}, xi = {
|
|
549
549
|
prepare: wi,
|
|
550
|
-
send:
|
|
550
|
+
send: Li
|
|
551
551
|
};
|
|
552
552
|
function Di(e) {
|
|
553
553
|
const t = {
|
|
@@ -638,7 +638,7 @@ function zi(e, t, n) {
|
|
|
638
638
|
function Bi(e, t = !0, n = !1) {
|
|
639
639
|
const a = [];
|
|
640
640
|
return e.forEach((i) => {
|
|
641
|
-
const r = typeof i == "string" ?
|
|
641
|
+
const r = typeof i == "string" ? Nt(i, t, n) : i;
|
|
642
642
|
r && a.push(r);
|
|
643
643
|
}), a;
|
|
644
644
|
}
|
|
@@ -654,12 +654,12 @@ function Pi(e, t, n, a) {
|
|
|
654
654
|
const i = e.resources.length, r = e.random ? Math.floor(Math.random() * i) : e.index;
|
|
655
655
|
let l;
|
|
656
656
|
if (e.random) {
|
|
657
|
-
let
|
|
658
|
-
for (l = [];
|
|
659
|
-
const W = Math.floor(Math.random() *
|
|
660
|
-
l.push(
|
|
657
|
+
let L = e.resources.slice(0);
|
|
658
|
+
for (l = []; L.length > 1; ) {
|
|
659
|
+
const W = Math.floor(Math.random() * L.length);
|
|
660
|
+
l.push(L[W]), L = L.slice(0, W).concat(L.slice(W + 1));
|
|
661
661
|
}
|
|
662
|
-
l = l.concat(
|
|
662
|
+
l = l.concat(L);
|
|
663
663
|
} else
|
|
664
664
|
l = e.resources.slice(r).concat(e.resources.slice(0, r));
|
|
665
665
|
const o = Date.now();
|
|
@@ -669,14 +669,14 @@ function Pi(e, t, n, a) {
|
|
|
669
669
|
v && (clearTimeout(v), v = null);
|
|
670
670
|
}
|
|
671
671
|
function b() {
|
|
672
|
-
s === "pending" && (s = "aborted"), f(), y.forEach((
|
|
673
|
-
|
|
672
|
+
s === "pending" && (s = "aborted"), f(), y.forEach((L) => {
|
|
673
|
+
L.status === "pending" && (L.status = "aborted");
|
|
674
674
|
}), y = [];
|
|
675
675
|
}
|
|
676
|
-
function C(
|
|
677
|
-
W && (m = []), typeof
|
|
676
|
+
function C(L, W) {
|
|
677
|
+
W && (m = []), typeof L == "function" && m.push(L);
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function x() {
|
|
680
680
|
return {
|
|
681
681
|
startTime: o,
|
|
682
682
|
payload: t,
|
|
@@ -688,18 +688,18 @@ function Pi(e, t, n, a) {
|
|
|
688
688
|
};
|
|
689
689
|
}
|
|
690
690
|
function D() {
|
|
691
|
-
s = "failed", m.forEach((
|
|
692
|
-
|
|
691
|
+
s = "failed", m.forEach((L) => {
|
|
692
|
+
L(void 0, c);
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
function k() {
|
|
696
|
-
y.forEach((
|
|
697
|
-
|
|
696
|
+
y.forEach((L) => {
|
|
697
|
+
L.status === "pending" && (L.status = "aborted");
|
|
698
698
|
}), y = [];
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function N(L, W, K) {
|
|
701
701
|
const Q = W !== "success";
|
|
702
|
-
switch (y = y.filter((B) => B !==
|
|
702
|
+
switch (y = y.filter((B) => B !== L), s) {
|
|
703
703
|
case "pending":
|
|
704
704
|
break;
|
|
705
705
|
case "failed":
|
|
@@ -718,7 +718,7 @@ function Pi(e, t, n, a) {
|
|
|
718
718
|
return;
|
|
719
719
|
}
|
|
720
720
|
if (f(), k(), !e.random) {
|
|
721
|
-
const B = e.resources.indexOf(
|
|
721
|
+
const B = e.resources.indexOf(L.resource);
|
|
722
722
|
B !== -1 && B !== e.index && (e.index = B);
|
|
723
723
|
}
|
|
724
724
|
s = "completed", m.forEach((B) => {
|
|
@@ -729,8 +729,8 @@ function Pi(e, t, n, a) {
|
|
|
729
729
|
if (s !== "pending")
|
|
730
730
|
return;
|
|
731
731
|
f();
|
|
732
|
-
const
|
|
733
|
-
if (
|
|
732
|
+
const L = l.shift();
|
|
733
|
+
if (L === void 0) {
|
|
734
734
|
if (y.length) {
|
|
735
735
|
v = setTimeout(() => {
|
|
736
736
|
f(), s === "pending" && (k(), D());
|
|
@@ -742,14 +742,14 @@ function Pi(e, t, n, a) {
|
|
|
742
742
|
}
|
|
743
743
|
const W = {
|
|
744
744
|
status: "pending",
|
|
745
|
-
resource:
|
|
745
|
+
resource: L,
|
|
746
746
|
callback: (K, Q) => {
|
|
747
|
-
|
|
747
|
+
N(W, K, Q);
|
|
748
748
|
}
|
|
749
749
|
};
|
|
750
|
-
y.push(W), u++, v = setTimeout(S, e.rotate), n(
|
|
750
|
+
y.push(W), u++, v = setTimeout(S, e.rotate), n(L, t, W.callback);
|
|
751
751
|
}
|
|
752
|
-
return setTimeout(S),
|
|
752
|
+
return setTimeout(S), x;
|
|
753
753
|
}
|
|
754
754
|
function ua(e) {
|
|
755
755
|
const t = {
|
|
@@ -803,7 +803,7 @@ function Wi(e) {
|
|
|
803
803
|
function Vi(e, t, n) {
|
|
804
804
|
let a, i;
|
|
805
805
|
if (typeof e == "string") {
|
|
806
|
-
const r =
|
|
806
|
+
const r = Ht(e);
|
|
807
807
|
if (!r)
|
|
808
808
|
return n(void 0, 424), gn;
|
|
809
809
|
i = r.send;
|
|
@@ -813,7 +813,7 @@ function Vi(e, t, n) {
|
|
|
813
813
|
const r = en(e);
|
|
814
814
|
if (r) {
|
|
815
815
|
a = ua(r);
|
|
816
|
-
const l = e.resources ? e.resources[0] : "", o =
|
|
816
|
+
const l = e.resources ? e.resources[0] : "", o = Ht(l);
|
|
817
817
|
o && (i = o.send);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
@@ -826,7 +826,7 @@ function Ui(e) {
|
|
|
826
826
|
e.iconsLoaderFlag = !1, Qi(e);
|
|
827
827
|
}));
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function Hi(e) {
|
|
830
830
|
const t = [], n = [];
|
|
831
831
|
return e.forEach((a) => {
|
|
832
832
|
(a.match(ta) ? t : n).push(a);
|
|
@@ -860,7 +860,7 @@ function bn(e, t) {
|
|
|
860
860
|
t(null);
|
|
861
861
|
}) : t(e);
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function Fi(e, t) {
|
|
864
864
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
865
865
|
e.iconsQueueFlag = !1;
|
|
866
866
|
const { provider: n, prefix: a } = e, i = e.iconsToLoad;
|
|
@@ -891,10 +891,10 @@ function Hi(e, t) {
|
|
|
891
891
|
});
|
|
892
892
|
return;
|
|
893
893
|
}
|
|
894
|
-
const { valid: l, invalid: o } =
|
|
894
|
+
const { valid: l, invalid: o } = Hi(i);
|
|
895
895
|
if (o.length && Re(e, o, null), !l.length)
|
|
896
896
|
return;
|
|
897
|
-
const s = a.match(ta) ?
|
|
897
|
+
const s = a.match(ta) ? Ht(n) : null;
|
|
898
898
|
if (!s) {
|
|
899
899
|
Re(e, l, null);
|
|
900
900
|
return;
|
|
@@ -935,7 +935,7 @@ const qi = (e, t) => {
|
|
|
935
935
|
m.has(v) || (m.add(v), i[u][c].push(v));
|
|
936
936
|
}), r.forEach((s) => {
|
|
937
937
|
const u = i[s.provider][s.prefix];
|
|
938
|
-
u.length &&
|
|
938
|
+
u.length && Fi(s, u);
|
|
939
939
|
}), t ? zi(t, a, r) : hn;
|
|
940
940
|
};
|
|
941
941
|
function Ri(e, t) {
|
|
@@ -1012,7 +1012,7 @@ const In = {
|
|
|
1012
1012
|
role: "img"
|
|
1013
1013
|
}, er = {
|
|
1014
1014
|
display: "inline-block"
|
|
1015
|
-
},
|
|
1015
|
+
}, Ft = {
|
|
1016
1016
|
backgroundColor: "currentColor"
|
|
1017
1017
|
}, da = {
|
|
1018
1018
|
backgroundColor: "transparent"
|
|
@@ -1021,8 +1021,8 @@ const In = {
|
|
|
1021
1021
|
Repeat: "no-repeat",
|
|
1022
1022
|
Size: "100% 100%"
|
|
1023
1023
|
}, pn = {
|
|
1024
|
-
webkitMask:
|
|
1025
|
-
mask:
|
|
1024
|
+
webkitMask: Ft,
|
|
1025
|
+
mask: Ft,
|
|
1026
1026
|
background: da
|
|
1027
1027
|
};
|
|
1028
1028
|
for (const e in pn) {
|
|
@@ -1075,8 +1075,8 @@ const En = (e, t) => {
|
|
|
1075
1075
|
C !== !0 && C !== "true" && delete a["aria-hidden"];
|
|
1076
1076
|
break;
|
|
1077
1077
|
default: {
|
|
1078
|
-
const
|
|
1079
|
-
|
|
1078
|
+
const x = ct[b];
|
|
1079
|
+
x ? (C === !0 || C === "true" || C === 1) && (n[x] = !0) : In[b] === void 0 && (a[b] = C);
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
@@ -1100,12 +1100,12 @@ const En = (e, t) => {
|
|
|
1100
1100
|
width: Cn(u.width),
|
|
1101
1101
|
height: Cn(u.height),
|
|
1102
1102
|
...er,
|
|
1103
|
-
...m ?
|
|
1103
|
+
...m ? Ft : da,
|
|
1104
1104
|
...o
|
|
1105
1105
|
}, dn("span", a);
|
|
1106
1106
|
};
|
|
1107
1107
|
la(!0);
|
|
1108
|
-
Ei("",
|
|
1108
|
+
Ei("", xi);
|
|
1109
1109
|
if (typeof document < "u" && typeof window < "u") {
|
|
1110
1110
|
const e = window;
|
|
1111
1111
|
if (e.IconifyPreload !== void 0) {
|
|
@@ -1173,7 +1173,7 @@ const tr = {
|
|
|
1173
1173
|
data: e
|
|
1174
1174
|
};
|
|
1175
1175
|
let a;
|
|
1176
|
-
if (typeof e != "string" || (a =
|
|
1176
|
+
if (typeof e != "string" || (a = Nt(e, !1, !0)) === null)
|
|
1177
1177
|
return this.abortLoading(), null;
|
|
1178
1178
|
let i = ci(a);
|
|
1179
1179
|
if (!i)
|
|
@@ -1244,7 +1244,7 @@ const tr = {
|
|
|
1244
1244
|
icon: e.name,
|
|
1245
1245
|
style: fe({ fontSize: d(n), display: "inline-block", color: e.color }),
|
|
1246
1246
|
"aria-label": e.label,
|
|
1247
|
-
class:
|
|
1247
|
+
class: H(["vicon", {
|
|
1248
1248
|
"vicon-spin": e.animation === "spin",
|
|
1249
1249
|
"vicon-wrench": e.animation === "wrench",
|
|
1250
1250
|
"vicon-pulse": e.animation === "pulse",
|
|
@@ -1286,14 +1286,14 @@ const tr = {
|
|
|
1286
1286
|
}, { ...d(i), ...l.$attrs }, {
|
|
1287
1287
|
onClick: o[0] || (o[0] = (s) => !e.disabled && t.selectable && l.$emit("select", [t.value, t.selected ?? !1]))
|
|
1288
1288
|
}), {
|
|
1289
|
-
default:
|
|
1289
|
+
default: G(() => [
|
|
1290
1290
|
e.icon ? (A(), R(se, {
|
|
1291
1291
|
key: 0,
|
|
1292
1292
|
label: e.iconOnly ? e.label : void 0,
|
|
1293
1293
|
size: d(r),
|
|
1294
1294
|
name: e.icon
|
|
1295
1295
|
}, null, 8, ["label", "size", "name"])) : w("", !0),
|
|
1296
|
-
e.iconOnly ? w("", !0) : (A(), g(
|
|
1296
|
+
e.iconOnly ? w("", !0) : (A(), g(J, { key: 1 }, [
|
|
1297
1297
|
le(z(e.label), 1)
|
|
1298
1298
|
], 64))
|
|
1299
1299
|
]),
|
|
@@ -1313,26 +1313,26 @@ const tr = {
|
|
|
1313
1313
|
hintClass: { default: "" }
|
|
1314
1314
|
},
|
|
1315
1315
|
setup(e) {
|
|
1316
|
-
const t =
|
|
1316
|
+
const t = ge();
|
|
1317
1317
|
return (n, a) => (A(), g("fieldset", lr, [
|
|
1318
1318
|
e.legend || t.legend ? (A(), g("legend", {
|
|
1319
1319
|
key: 0,
|
|
1320
1320
|
id: e.legendId,
|
|
1321
|
-
class:
|
|
1321
|
+
class: H(["fr-fieldset__legend", e.legendClass])
|
|
1322
1322
|
}, [
|
|
1323
1323
|
le(z(e.legend) + " ", 1),
|
|
1324
|
-
|
|
1324
|
+
F(n.$slots, "legend")
|
|
1325
1325
|
], 10, or)) : w("", !0),
|
|
1326
1326
|
e.hint || t.hint ? (A(), g("div", sr, [
|
|
1327
1327
|
p("span", {
|
|
1328
|
-
class:
|
|
1328
|
+
class: H(["fr-hint-text", e.hintClass])
|
|
1329
1329
|
}, [
|
|
1330
1330
|
le(z(e.hint) + " ", 1),
|
|
1331
|
-
|
|
1331
|
+
F(n.$slots, "hint")
|
|
1332
1332
|
], 2)
|
|
1333
1333
|
])) : w("", !0),
|
|
1334
1334
|
p("div", cr, [
|
|
1335
|
-
|
|
1335
|
+
F(n.$slots, "default")
|
|
1336
1336
|
])
|
|
1337
1337
|
]));
|
|
1338
1338
|
}
|
|
@@ -1354,7 +1354,7 @@ const tr = {
|
|
|
1354
1354
|
}));
|
|
1355
1355
|
const t = E(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), n = E(() => e.inline ? void 0 : "ellipsis-container"), a = E(() => e.inline ? void 0 : "ellipsis");
|
|
1356
1356
|
return (i, r) => (A(), g("div", {
|
|
1357
|
-
class:
|
|
1357
|
+
class: H(["icon-text--container", [d(n)]])
|
|
1358
1358
|
}, [
|
|
1359
1359
|
X(se, {
|
|
1360
1360
|
class: "icon-text--icon",
|
|
@@ -1363,7 +1363,7 @@ const tr = {
|
|
|
1363
1363
|
size: d(t)
|
|
1364
1364
|
}, null, 8, ["name", "color", "size"]),
|
|
1365
1365
|
p("span", {
|
|
1366
|
-
class:
|
|
1366
|
+
class: H(["icon-text--text", [d(a), e.typographyClass]])
|
|
1367
1367
|
}, z(e.text), 3)
|
|
1368
1368
|
], 2));
|
|
1369
1369
|
}
|
|
@@ -1374,7 +1374,7 @@ function fr(e, t = "var(--dark-background-primary1)") {
|
|
|
1374
1374
|
function vr(e) {
|
|
1375
1375
|
return e ? e[0].toUpperCase() + e.slice(1).toLowerCase() : "";
|
|
1376
1376
|
}
|
|
1377
|
-
const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = { class: "fr-notice__title" }, br = { class: "fr-notice__desc" }, Ir = ["innerHTML"],
|
|
1377
|
+
const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = { class: "fr-notice__title" }, br = { class: "fr-notice__desc" }, Ir = ["innerHTML"], Zf = /* @__PURE__ */ j({
|
|
1378
1378
|
__name: "AvNotice",
|
|
1379
1379
|
props: {
|
|
1380
1380
|
title: { default: "" },
|
|
@@ -1384,7 +1384,7 @@ const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = {
|
|
|
1384
1384
|
setup(e) {
|
|
1385
1385
|
const t = E(() => fr(e.text));
|
|
1386
1386
|
return (n, a) => (A(), g("div", {
|
|
1387
|
-
class:
|
|
1387
|
+
class: H(["fr-notice", `fr-notice--${e.type}`])
|
|
1388
1388
|
}, [
|
|
1389
1389
|
p("div", mr, [
|
|
1390
1390
|
p("div", gr, [
|
|
@@ -1413,7 +1413,7 @@ const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = {
|
|
|
1413
1413
|
titleHeight: {}
|
|
1414
1414
|
},
|
|
1415
1415
|
setup(e) {
|
|
1416
|
-
const t =
|
|
1416
|
+
const t = ge();
|
|
1417
1417
|
return (n, a) => (A(), g("div", {
|
|
1418
1418
|
class: "av-card",
|
|
1419
1419
|
style: fe({ borderColor: e.borderColor, background: e.backgroundColor })
|
|
@@ -1423,18 +1423,18 @@ const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = {
|
|
|
1423
1423
|
class: "av-card__title",
|
|
1424
1424
|
style: fe({ background: e.titleBackground, height: e.titleHeight })
|
|
1425
1425
|
}, [
|
|
1426
|
-
|
|
1426
|
+
F(n.$slots, "title", {}, void 0, !0)
|
|
1427
1427
|
], 4)) : w("", !0),
|
|
1428
|
-
|
|
1428
|
+
F(n.$slots, "default", {}, void 0, !0),
|
|
1429
1429
|
t.body ? (A(), g("div", yr, [
|
|
1430
|
-
|
|
1430
|
+
F(n.$slots, "body", {}, void 0, !0)
|
|
1431
1431
|
])) : w("", !0),
|
|
1432
1432
|
t.footer ? (A(), g("div", pr, [
|
|
1433
|
-
|
|
1433
|
+
F(n.$slots, "footer", {}, void 0, !0)
|
|
1434
1434
|
])) : w("", !0)
|
|
1435
1435
|
], 4));
|
|
1436
1436
|
}
|
|
1437
|
-
}),
|
|
1437
|
+
}), Yf = /* @__PURE__ */ Y(Cr, [["__scopeId", "data-v-740c9a3b"]]), $ = {
|
|
1438
1438
|
ACCOUNT_CIRCLE_OUTLINE: "mdi:account-circle-outline",
|
|
1439
1439
|
ACCOUNT_STUDENT_OUTLINE: "mdi:account-student-outline",
|
|
1440
1440
|
ALERT_CIRCLE_OUTLINE: "mdi:alert-circle-outline",
|
|
@@ -1442,6 +1442,7 @@ const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = {
|
|
|
1442
1442
|
ARROW_DECISION: "mdi:arrow-decision",
|
|
1443
1443
|
ARROW_LEFT_THIN: "mdi:arrow-left-thin",
|
|
1444
1444
|
ARROW_RIGHT: "mdi:arrow-right",
|
|
1445
|
+
ARROW_RIGHT_BOTTOM: "mdi:arrow-right-bottom",
|
|
1445
1446
|
ARROW_RIGHT_THIN: "mdi:arrow-right-thin",
|
|
1446
1447
|
ARROW_TOP_RIGHT_THICK: "mdi:arrow-top-right-thick",
|
|
1447
1448
|
ATTACH_FILE: "mdi:attach-file",
|
|
@@ -1460,6 +1461,7 @@ const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = {
|
|
|
1460
1461
|
CHECKBOX_MARKED: "mdi:checkbox-marked",
|
|
1461
1462
|
CHEVRON_DOUBLE_LEFT: "mdi:chevron-double-left",
|
|
1462
1463
|
CHEVRON_DOUBLE_RIGHT: "mdi:chevron-double-right",
|
|
1464
|
+
CIRCLE: "mdi:circle",
|
|
1463
1465
|
CLOSE_CIRCLE_OUTLINE: "mdi:close-circle-outline",
|
|
1464
1466
|
CONTENT_SAVE_OUTLINE: "mdi:content-save-outline",
|
|
1465
1467
|
DOTS_VERTICAL: "mdi:dots-vertical",
|
|
@@ -1506,10 +1508,11 @@ const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = {
|
|
|
1506
1508
|
TRAY_UPLOAD: "mdi:tray-upload",
|
|
1507
1509
|
VECTOR_POLYGON_VARIANT: "mdi:vector-polygon-variant",
|
|
1508
1510
|
WARNING_OUTLINE: "mdi:warning-outline"
|
|
1509
|
-
},
|
|
1511
|
+
}, Kf = {
|
|
1510
1512
|
DICE_1_LINE: "ri:dice-1-line",
|
|
1511
|
-
DICE_4_LINE: "ri:dice-4-line"
|
|
1512
|
-
|
|
1513
|
+
DICE_4_LINE: "ri:dice-4-line",
|
|
1514
|
+
LOADER_LINE: "ri:loader-line"
|
|
1515
|
+
}, Gf = {
|
|
1513
1516
|
AMS_SAE: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0iY3VycmVudENvbG9yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNS4yNSAxNy41SDExLjM3NVYxOS4yNUg1LjI1QzQuMjc4NzUgMTkuMjUgMy41IDE4LjQ3MTMgMy41IDE3LjVWMy41QzMuNSAzLjAzNTg3IDMuNjg0MzcgMi41OTA3NSA0LjAxMjU2IDIuMjYyNTZDNC4zNDA3NSAxLjkzNDM3IDQuNzg1ODcgMS43NSA1LjI1IDEuNzVIMTUuNzVDMTYuMjE0MSAxLjc1IDE2LjY1OTIgMS45MzQzNyAxNi45ODc0IDIuMjYyNTZDMTcuMzE1NiAyLjU5MDc1IDE3LjUgMy4wMzU4NyAxNy41IDMuNVYxMC45NzI1TDE2LjE4NzUgMTAuMjU1TDE1Ljc1IDEwLjVWMy41SDExLjM3NVYxMC41TDkuMTg3NSA4LjUzMTI1TDcgMTAuNVYzLjVINS4yNVYxNy41Wk0yMSAxNC44NzVMMTYuMTg3NSAxMi4yNUwxMS4zNzUgMTQuODc1TDE2LjE4NzUgMTcuNUwyMSAxNC44NzVaTTEzLjEyNSAxNi43MDM4VjE4LjQ1MzhMMTYuMTg3NSAyMC4xMjVMMTkuMjUgMTguNDUzOFYxNi43MDM4TDE2LjE4NzUgMTguMzc1TDEzLjEyNSAxNi43MDM4WiIgZmlsbD0iY3VycmVudENvbG9yIiAvPgo8L3N2Zz4K",
|
|
1514
1517
|
CLOCK_ALMOST_CHECK: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzQwMDA4NTQzXzI2OTE5IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfNDAwMDg1NDNfMjY5MTkpIj4KPHBhdGggZD0iTTguMDAwMzMgMTQuMzMyN0M3LjEyMjU1IDE0LjMzMjcgNi4yOTc2NiAxNC4xNjYgNS41MjU2NiAxMy44MzI3QzQuNzUzMjEgMTMuNDk5MyA0LjA4MzY2IDEzLjA0OTMgMy41MTY5OSAxMi40ODI3QzIuOTUwMzMgMTEuOTE2IDIuNTAwMzMgMTEuMjQ2NSAyLjE2Njk5IDEwLjQ3NEMxLjgzMzY2IDkuNzAyMDEgMS42NjY5OSA4Ljg3NzEzIDEuNjY2OTkgNy45OTkzNUMxLjY2Njk5IDcuMTIxNTcgMS44MzM2NiA2LjI5NjQ2IDIuMTY2OTkgNS41MjQwMkMyLjUwMDMzIDQuNzUyMDIgMi45NTAzMyA0LjA4MjY4IDMuNTE2OTkgMy41MTYwMkM0LjA4MzY2IDIuOTQ5MzUgNC43NTMyMSAyLjQ5OTM1IDUuNTI1NjYgMi4xNjYwMkM2LjI5NzY2IDEuODMyNjggNy4xMjI1NSAxLjY2NjAyIDguMDAwMzMgMS42NjYwMkM4Ljg3ODEgMS42NjYwMiA5LjcwMzIxIDEuODMyNjggMTAuNDc1NyAyLjE2NjAyQzExLjI0NzcgMi40OTkzNSAxMS45MTcgMi45NDkzNSAxMi40ODM3IDMuNTE2MDJDMTMuMDUwMyA0LjA4MjY4IDEzLjUwMDMgNC43NTIwMiAxMy44MzM3IDUuNTI0MDJDMTQuMTY3IDYuMjk2NDYgMTQuMzMzNyA3LjEyMTU3IDE0LjMzMzcgNy45OTkzNUMxNC4zMzM3IDguODc3MTMgMTQuMTY3IDkuNzAyMDEgMTMuODMzNyAxMC40NzRDMTMuNTAwMyAxMS4yNDY1IDEzLjA1MDMgMTEuOTE2IDEyLjQ4MzcgMTIuNDgyN0MxMS45MTcgMTMuMDQ5MyAxMS4yNDc3IDEzLjQ5OTMgMTAuNDc1NyAxMy44MzI3QzkuNzAzMjEgMTQuMTY2IDguODc4MSAxNC4zMzI3IDguMDAwMzMgMTQuMzMyN1pNNC4yMTY5OSA0LjIxNjAyTDguMDAwMzMgNy45OTkzNVYyLjY2NjAyQzcuMjg5MjEgMi42NjYwMiA2LjYwNTg4IDIuNzk5MzUgNS45NTAzMyAzLjA2NjAyQzUuMjk0NzcgMy4zMzI2OCA0LjcxNjk5IDMuNzE2MDIgNC4yMTY5OSA0LjIxNjAyWiIgZmlsbD0iY3VycmVudENvbG9yIi8+CjwvZz4KPC9zdmc+Cg==",
|
|
1515
1518
|
CLOCK_HALF_PLUS_CHECK: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzQwMDA4NTMxXzMxMzY5IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfNDAwMDg1MzFfMzEzNjkpIj4KPHBhdGggZD0iTTguMDAwMzMgMTQuMzMyN0M3LjEyMjU1IDE0LjMzMjcgNi4yOTc2NiAxNC4xNjYgNS41MjU2NiAxMy44MzI3QzQuNzUzMjEgMTMuNDk5MyA0LjA4MzY2IDEzLjA0OTMgMy41MTY5OSAxMi40ODI3QzIuOTUwMzMgMTEuOTE2IDIuNTAwMzMgMTEuMjQ2NSAyLjE2Njk5IDEwLjQ3NEMxLjgzMzY2IDkuNzAyMDEgMS42NjY5OSA4Ljg3NzEzIDEuNjY2OTkgNy45OTkzNUMxLjY2Njk5IDcuMTIxNTcgMS44MzM2NiA2LjI5NjQ2IDIuMTY2OTkgNS41MjQwMkMyLjUwMDMzIDQuNzUyMDIgMi45NTAzMyA0LjA4MjY4IDMuNTE2OTkgMy41MTYwMkM0LjA4MzY2IDIuOTQ5MzUgNC43NTMyMSAyLjQ5OTM1IDUuNTI1NjYgMi4xNjYwMkM2LjI5NzY2IDEuODMyNjggNy4xMjI1NSAxLjY2NjAyIDguMDAwMzMgMS42NjYwMkM4Ljg3ODEgMS42NjYwMiA5LjcwMzIxIDEuODMyNjggMTAuNDc1NyAyLjE2NjAyQzExLjI0NzcgMi40OTkzNSAxMS45MTcgMi45NDkzNSAxMi40ODM3IDMuNTE2MDJDMTMuMDUwMyA0LjA4MjY4IDEzLjUwMDMgNC43NTIwMiAxMy44MzM3IDUuNTI0MDJDMTQuMTY3IDYuMjk2NDYgMTQuMzMzNyA3LjEyMTU3IDE0LjMzMzcgNy45OTkzNUMxNC4zMzM3IDguODc3MTMgMTQuMTY3IDkuNzAyMDEgMTMuODMzNyAxMC40NzRDMTMuNTAwMyAxMS4yNDY1IDEzLjA1MDMgMTEuOTE2IDEyLjQ4MzcgMTIuNDgyN0MxMS45MTcgMTMuMDQ5MyAxMS4yNDc3IDEzLjQ5OTMgMTAuNDc1NyAxMy44MzI3QzkuNzAzMjEgMTQuMTY2IDguODc4MSAxNC4zMzI3IDguMDAwMzMgMTQuMzMyN1pNNC4yMTY5OSAxMS43ODI3TDguMDAwMzMgNy45OTkzNVYyLjY2NjAyQzYuNTExNDQgMi42NjYwMiA1LjI1MDMzIDMuMTgyNjggNC4yMTY5OSA0LjIxNjAyQzMuMTgzNjYgNS4yNDkzNSAyLjY2Njk5IDYuNTEwNDYgMi42NjY5OSA3Ljk5OTM1QzIuNjY2OTkgOC43MTA0NiAyLjgwMDMzIDkuMzkzNzkgMy4wNjY5OSAxMC4wNDkzQzMuMzMzNjYgMTAuNzA0OSAzLjcxNjk5IDExLjI4MjcgNC4yMTY5OSAxMS43ODI3WiIgZmlsbD0iY3VycmVudENvbG9yIi8+CjwvZz4KPC9zdmc+Cg==",
|
|
@@ -1521,10 +1524,10 @@ const mr = { class: "fr-container" }, gr = { class: "fr-notice__body" }, hr = {
|
|
|
1521
1524
|
function Er(e) {
|
|
1522
1525
|
return [...new Set(e)];
|
|
1523
1526
|
}
|
|
1524
|
-
function
|
|
1527
|
+
function Jf(e) {
|
|
1525
1528
|
return /^[^\s@]+@[^\s.@]+\.[^\s@]+$/.test(e);
|
|
1526
1529
|
}
|
|
1527
|
-
const Mr = ["title", "disabled", "aria-disabled", "aria-label"],
|
|
1530
|
+
const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Tr = { key: 1 }, Nr = /* @__PURE__ */ j({
|
|
1528
1531
|
__name: "AvButton",
|
|
1529
1532
|
props: {
|
|
1530
1533
|
variant: { default: "DEFAULT" },
|
|
@@ -1547,7 +1550,7 @@ const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Nr = { key: 1 }
|
|
|
1547
1550
|
(f = n.value) == null || f.focus();
|
|
1548
1551
|
}
|
|
1549
1552
|
t({ focus: a });
|
|
1550
|
-
const i = { name:
|
|
1553
|
+
const i = { name: $.LOADING_OUTLINE, animation: "spin" }, r = E(() => ["sm", "small"].includes(e.size)), l = E(() => ["md", "medium"].includes(e.size)), o = E(() => ["lg", "large"].includes(e.size)), s = E(() => e.iconScale && !Number.isNaN(e.iconScale) ? e.iconScale : r.value ? 1 : o.value ? 2 : 1.5), u = E(() => {
|
|
1551
1554
|
if (e.isLoading)
|
|
1552
1555
|
return { ...i, size: s.value };
|
|
1553
1556
|
if (typeof e.icon == "string" && e.icon.trim())
|
|
@@ -1560,7 +1563,7 @@ const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Nr = { key: 1 }
|
|
|
1560
1563
|
return A(), g("button", {
|
|
1561
1564
|
ref_key: "btn",
|
|
1562
1565
|
ref: n,
|
|
1563
|
-
class:
|
|
1566
|
+
class: H(["av-button fr-btn inline-flex", [
|
|
1564
1567
|
{
|
|
1565
1568
|
"fr-btn--tertiary": e.variant !== "DEFAULT",
|
|
1566
1569
|
"fr-btn--tertiary-no-outline": e.variant === "DEFAULT",
|
|
@@ -1579,15 +1582,15 @@ const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Nr = { key: 1 }
|
|
|
1579
1582
|
"aria-disabled": d(v),
|
|
1580
1583
|
"aria-label": d(c),
|
|
1581
1584
|
style: fe(e.iconOnly ? { "padding-inline": "0.5rem" } : {}),
|
|
1582
|
-
onClick: b[0] || (b[0] = (
|
|
1585
|
+
onClick: b[0] || (b[0] = (x) => e.onClick ? e.onClick(x) : () => {
|
|
1583
1586
|
})
|
|
1584
1587
|
}, [
|
|
1585
1588
|
d(u) ? (A(), R(C, Ue(te({ key: 0 }, d(u))), null, 16)) : w("", !0),
|
|
1586
|
-
e.iconOnly ? w("", !0) : (A(), g("span",
|
|
1589
|
+
e.iconOnly ? w("", !0) : (A(), g("span", Tr, z(d(c)), 1))
|
|
1587
1590
|
], 14, Mr);
|
|
1588
1591
|
};
|
|
1589
1592
|
}
|
|
1590
|
-
}),
|
|
1593
|
+
}), me = /* @__PURE__ */ Y(Nr, [["__scopeId", "data-v-ed18b35d"]]), kr = ["id", "role"], wr = { class: "av-alert--container" }, Or = { class: "av-alert--content" }, Lr = { class: "av-alert--title" }, xr = { class: "b1-regular" }, Dr = /* @__PURE__ */ j({
|
|
1591
1594
|
__name: "AvAlert",
|
|
1592
1595
|
props: {
|
|
1593
1596
|
alert: { type: Boolean, default: !1 },
|
|
@@ -1613,44 +1616,44 @@ const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Nr = { key: 1 }
|
|
|
1613
1616
|
), r = E(() => {
|
|
1614
1617
|
switch (e.type) {
|
|
1615
1618
|
case "error":
|
|
1616
|
-
return { name:
|
|
1619
|
+
return { name: $.ALERT_CIRCLE_OUTLINE, color: "var(--dark-background-error)" };
|
|
1617
1620
|
case "success":
|
|
1618
|
-
return { name:
|
|
1621
|
+
return { name: $.CHECK_CIRCLE, color: "var(--dark-background-success)" };
|
|
1619
1622
|
case "warning":
|
|
1620
|
-
return { name:
|
|
1623
|
+
return { name: $.WARNING_OUTLINE, color: "var(--dark-background-warn)" };
|
|
1621
1624
|
case "info":
|
|
1622
1625
|
default:
|
|
1623
|
-
return { name:
|
|
1626
|
+
return { name: $.INFORMATION_OUTLINE, color: "var(--dark-background-primary1)" };
|
|
1624
1627
|
}
|
|
1625
1628
|
});
|
|
1626
1629
|
return (l, o) => e.closed ? w("", !0) : (A(), g("div", {
|
|
1627
1630
|
key: 0,
|
|
1628
1631
|
id: e.id,
|
|
1629
|
-
class:
|
|
1632
|
+
class: H(["fr-alert", d(i)]),
|
|
1630
1633
|
role: e.alert ? "alert" : void 0
|
|
1631
1634
|
}, [
|
|
1632
1635
|
p("div", wr, [
|
|
1633
1636
|
p("div", Or, [
|
|
1634
1637
|
X(se, te(d(r), { size: 3 }), null, 16),
|
|
1635
|
-
p("div",
|
|
1638
|
+
p("div", Lr, [
|
|
1636
1639
|
e.small ? w("", !0) : (A(), R(Ce(e.titleTag), {
|
|
1637
1640
|
key: 0,
|
|
1638
1641
|
class: "fr-alert__title"
|
|
1639
1642
|
}, {
|
|
1640
|
-
default:
|
|
1643
|
+
default: G(() => [
|
|
1641
1644
|
le(z(e.title), 1)
|
|
1642
1645
|
]),
|
|
1643
1646
|
_: 1
|
|
1644
1647
|
})),
|
|
1645
|
-
|
|
1646
|
-
p("span",
|
|
1648
|
+
F(l.$slots, "default", {}, () => [
|
|
1649
|
+
p("span", xr, z(e.description), 1)
|
|
1647
1650
|
], !0)
|
|
1648
1651
|
])
|
|
1649
1652
|
]),
|
|
1650
|
-
e.closeable ? (A(), R(
|
|
1653
|
+
e.closeable ? (A(), R(me, {
|
|
1651
1654
|
key: 0,
|
|
1652
1655
|
"icon-only": "",
|
|
1653
|
-
icon: d(
|
|
1656
|
+
icon: d($).CLOSE_CIRCLE_OUTLINE,
|
|
1654
1657
|
label: e.closeButtonLabel,
|
|
1655
1658
|
small: "",
|
|
1656
1659
|
"on-click": a
|
|
@@ -1689,8 +1692,8 @@ const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Nr = { key: 1 }
|
|
|
1689
1692
|
tag: "div",
|
|
1690
1693
|
class: "toasters"
|
|
1691
1694
|
}, {
|
|
1692
|
-
default:
|
|
1693
|
-
(A(!0), g(
|
|
1695
|
+
default: G(() => [
|
|
1696
|
+
(A(!0), g(J, null, ae(e.messages, (r) => (A(), R(Qr, te({
|
|
1694
1697
|
key: r.id,
|
|
1695
1698
|
class: ["av-toaster", t(r.type)]
|
|
1696
1699
|
}, { ref_for: !0 }, r, {
|
|
@@ -1702,7 +1705,7 @@ const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Nr = { key: 1 }
|
|
|
1702
1705
|
})
|
|
1703
1706
|
]));
|
|
1704
1707
|
}
|
|
1705
|
-
}),
|
|
1708
|
+
}), $f = /* @__PURE__ */ Y(zr, [["__scopeId", "data-v-202438c7"]]), Br = Symbol("header"), jr = ["aria-label"], Pr = { class: "fr-btns-group" }, Mn = /* @__PURE__ */ j({
|
|
1706
1709
|
__name: "AvHeaderMenuLinks",
|
|
1707
1710
|
props: {
|
|
1708
1711
|
links: {},
|
|
@@ -1716,8 +1719,8 @@ const Mr = ["title", "disabled", "aria-disabled", "aria-label"], Nr = { key: 1 }
|
|
|
1716
1719
|
"aria-label": e.navAriaLabel
|
|
1717
1720
|
}, [
|
|
1718
1721
|
p("ul", Pr, [
|
|
1719
|
-
(A(!0), g(
|
|
1720
|
-
X(
|
|
1722
|
+
(A(!0), g(J, null, ae(e.links, (r, l) => (A(), g("li", { key: l }, [
|
|
1723
|
+
X(me, {
|
|
1721
1724
|
icon: r.icon,
|
|
1722
1725
|
label: r.label ?? "",
|
|
1723
1726
|
"on-click": (o) => {
|
|
@@ -1766,7 +1769,7 @@ function Ur(e, t) {
|
|
|
1766
1769
|
], -1)
|
|
1767
1770
|
])]);
|
|
1768
1771
|
}
|
|
1769
|
-
const
|
|
1772
|
+
const Hr = /* @__PURE__ */ Y(Wr, [["render", Ur]]);
|
|
1770
1773
|
function an() {
|
|
1771
1774
|
const e = q(), t = q(!1), n = q(!1), a = () => {
|
|
1772
1775
|
if (!e.value)
|
|
@@ -1793,10 +1796,10 @@ function an() {
|
|
|
1793
1796
|
}
|
|
1794
1797
|
};
|
|
1795
1798
|
}
|
|
1796
|
-
const
|
|
1799
|
+
const Fr = {
|
|
1797
1800
|
role: "navigation",
|
|
1798
1801
|
class: "fr-translate fr-nav"
|
|
1799
|
-
}, qr = { class: "fr-nav__item" }, Rr = ["aria-controls", "aria-expanded", "title"], Xr = { class: "fr-hidden-lg" }, Zr = ["id"], Yr = { class: "fr-menu__list" }, Kr = ["hreflang", "lang", "aria-current", "href", "onClick"],
|
|
1802
|
+
}, qr = { class: "fr-nav__item" }, Rr = ["aria-controls", "aria-expanded", "title"], Xr = { class: "fr-hidden-lg" }, Zr = ["id"], Yr = { class: "fr-menu__list" }, Kr = ["hreflang", "lang", "aria-current", "href", "onClick"], Tn = /* @__PURE__ */ j({
|
|
1800
1803
|
__name: "AvLanguageSelector",
|
|
1801
1804
|
props: {
|
|
1802
1805
|
id: { default: () => crypto.randomUUID() },
|
|
@@ -1823,7 +1826,7 @@ const Hr = {
|
|
|
1823
1826
|
v !== y && l(v);
|
|
1824
1827
|
}), (v, y) => {
|
|
1825
1828
|
var m, f;
|
|
1826
|
-
return A(), g("nav",
|
|
1829
|
+
return A(), g("nav", Fr, [
|
|
1827
1830
|
p("div", qr, [
|
|
1828
1831
|
p("button", {
|
|
1829
1832
|
class: "fr-translate__btn fr-btn fr-btn--tertiary",
|
|
@@ -1840,18 +1843,18 @@ const Hr = {
|
|
|
1840
1843
|
id: e.id,
|
|
1841
1844
|
ref_key: "collapse",
|
|
1842
1845
|
ref: a,
|
|
1843
|
-
class:
|
|
1846
|
+
class: H(["fr-collapse fr-translate__menu fr-menu", { "fr-collapse--expanded": d(r), "fr-collapsing": d(i) }]),
|
|
1844
1847
|
onTransitionend: y[1] || (y[1] = (b) => d(o)(d(s)))
|
|
1845
1848
|
}, [
|
|
1846
1849
|
p("ul", Yr, [
|
|
1847
|
-
(A(!0), g(
|
|
1850
|
+
(A(!0), g(J, null, ae(e.languages, (b, C) => (A(), g("li", { key: C }, [
|
|
1848
1851
|
p("a", {
|
|
1849
1852
|
class: "fr-translate__language fr-nav__link",
|
|
1850
1853
|
hreflang: b.codeIso,
|
|
1851
1854
|
lang: b.codeIso,
|
|
1852
1855
|
"aria-current": e.currentLanguage === b.codeIso ? !0 : void 0,
|
|
1853
1856
|
href: `#${b.codeIso}`,
|
|
1854
|
-
onClick: de((
|
|
1857
|
+
onClick: de((x) => u(b), ["prevent", "stop"])
|
|
1855
1858
|
}, z(`${b.codeIso.toUpperCase()} - ${b.label}`), 9, Kr)
|
|
1856
1859
|
]))), 128))
|
|
1857
1860
|
])
|
|
@@ -1860,12 +1863,12 @@ const Hr = {
|
|
|
1860
1863
|
]);
|
|
1861
1864
|
};
|
|
1862
1865
|
}
|
|
1863
|
-
}), fa = 6048e5, Gr = 864e5,
|
|
1864
|
-
function
|
|
1865
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
1866
|
+
}), fa = 6048e5, Gr = 864e5, Nn = Symbol.for("constructDateFrom");
|
|
1867
|
+
function Te(e, t) {
|
|
1868
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && Nn in e ? e[Nn](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
1866
1869
|
}
|
|
1867
1870
|
function be(e, t) {
|
|
1868
|
-
return
|
|
1871
|
+
return Te(t || e, e);
|
|
1869
1872
|
}
|
|
1870
1873
|
let Jr = {};
|
|
1871
1874
|
function wt() {
|
|
@@ -1880,9 +1883,9 @@ function At(e, t) {
|
|
|
1880
1883
|
return nt(e, { ...t, weekStartsOn: 1 });
|
|
1881
1884
|
}
|
|
1882
1885
|
function va(e, t) {
|
|
1883
|
-
const n = be(e, t == null ? void 0 : t.in), a = n.getFullYear(), i =
|
|
1886
|
+
const n = be(e, t == null ? void 0 : t.in), a = n.getFullYear(), i = Te(n, 0);
|
|
1884
1887
|
i.setFullYear(a + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
1885
|
-
const r = At(i), l =
|
|
1888
|
+
const r = At(i), l = Te(n, 0);
|
|
1886
1889
|
l.setFullYear(a, 0, 4), l.setHours(0, 0, 0, 0);
|
|
1887
1890
|
const o = At(l);
|
|
1888
1891
|
return n.getTime() >= r.getTime() ? a + 1 : n.getTime() >= o.getTime() ? a : a - 1;
|
|
@@ -1902,7 +1905,7 @@ function kn(e) {
|
|
|
1902
1905
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
1903
1906
|
}
|
|
1904
1907
|
function $r(e, ...t) {
|
|
1905
|
-
const n =
|
|
1908
|
+
const n = Te.bind(
|
|
1906
1909
|
null,
|
|
1907
1910
|
t.find((a) => typeof a == "object")
|
|
1908
1911
|
);
|
|
@@ -1921,7 +1924,7 @@ function _r(e, t, n) {
|
|
|
1921
1924
|
return Math.round((o - s) / Gr);
|
|
1922
1925
|
}
|
|
1923
1926
|
function el(e, t) {
|
|
1924
|
-
const n = va(e, t), a =
|
|
1927
|
+
const n = va(e, t), a = Te(e, 0);
|
|
1925
1928
|
return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), At(a);
|
|
1926
1929
|
}
|
|
1927
1930
|
function tl(e) {
|
|
@@ -2253,9 +2256,9 @@ const Cl = /^(\d+)(th|st|nd|rd)?/i, El = /\d+/i, Ml = {
|
|
|
2253
2256
|
narrow: /^(b|a)/i,
|
|
2254
2257
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
2255
2258
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
2256
|
-
}, Nl = {
|
|
2257
|
-
any: [/^b/i, /^(a|c)/i]
|
|
2258
2259
|
}, Tl = {
|
|
2260
|
+
any: [/^b/i, /^(a|c)/i]
|
|
2261
|
+
}, Nl = {
|
|
2259
2262
|
narrow: /^[1234]/i,
|
|
2260
2263
|
abbreviated: /^q[1234]/i,
|
|
2261
2264
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
@@ -2294,12 +2297,12 @@ const Cl = /^(\d+)(th|st|nd|rd)?/i, El = /\d+/i, Ml = {
|
|
|
2294
2297
|
/^n/i,
|
|
2295
2298
|
/^d/i
|
|
2296
2299
|
]
|
|
2297
|
-
},
|
|
2300
|
+
}, Ll = {
|
|
2298
2301
|
narrow: /^[smtwf]/i,
|
|
2299
2302
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
2300
2303
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
2301
2304
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
2302
|
-
},
|
|
2305
|
+
}, xl = {
|
|
2303
2306
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
2304
2307
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
2305
2308
|
}, Dl = {
|
|
@@ -2325,11 +2328,11 @@ const Cl = /^(\d+)(th|st|nd|rd)?/i, El = /\d+/i, Ml = {
|
|
|
2325
2328
|
era: Ze({
|
|
2326
2329
|
matchPatterns: Ml,
|
|
2327
2330
|
defaultMatchWidth: "wide",
|
|
2328
|
-
parsePatterns:
|
|
2331
|
+
parsePatterns: Tl,
|
|
2329
2332
|
defaultParseWidth: "any"
|
|
2330
2333
|
}),
|
|
2331
2334
|
quarter: Ze({
|
|
2332
|
-
matchPatterns:
|
|
2335
|
+
matchPatterns: Nl,
|
|
2333
2336
|
defaultMatchWidth: "wide",
|
|
2334
2337
|
parsePatterns: kl,
|
|
2335
2338
|
defaultParseWidth: "any",
|
|
@@ -2342,9 +2345,9 @@ const Cl = /^(\d+)(th|st|nd|rd)?/i, El = /\d+/i, Ml = {
|
|
|
2342
2345
|
defaultParseWidth: "any"
|
|
2343
2346
|
}),
|
|
2344
2347
|
day: Ze({
|
|
2345
|
-
matchPatterns:
|
|
2348
|
+
matchPatterns: Ll,
|
|
2346
2349
|
defaultMatchWidth: "wide",
|
|
2347
|
-
parsePatterns:
|
|
2350
|
+
parsePatterns: xl,
|
|
2348
2351
|
defaultParseWidth: "any"
|
|
2349
2352
|
}),
|
|
2350
2353
|
dayPeriod: Ze({
|
|
@@ -2375,23 +2378,23 @@ function jl(e, t) {
|
|
|
2375
2378
|
}
|
|
2376
2379
|
function ga(e, t) {
|
|
2377
2380
|
var c, v, y, m;
|
|
2378
|
-
const n = be(e, t == null ? void 0 : t.in), a = n.getFullYear(), i = wt(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((v = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : v.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((m = (y = i.locale) == null ? void 0 : y.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, l =
|
|
2381
|
+
const n = be(e, t == null ? void 0 : t.in), a = n.getFullYear(), i = wt(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((v = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : v.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((m = (y = i.locale) == null ? void 0 : y.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, l = Te((t == null ? void 0 : t.in) || e, 0);
|
|
2379
2382
|
l.setFullYear(a + 1, 0, r), l.setHours(0, 0, 0, 0);
|
|
2380
|
-
const o = nt(l, t), s =
|
|
2383
|
+
const o = nt(l, t), s = Te((t == null ? void 0 : t.in) || e, 0);
|
|
2381
2384
|
s.setFullYear(a, 0, r), s.setHours(0, 0, 0, 0);
|
|
2382
2385
|
const u = nt(s, t);
|
|
2383
2386
|
return +n >= +o ? a + 1 : +n >= +u ? a : a - 1;
|
|
2384
2387
|
}
|
|
2385
2388
|
function Pl(e, t) {
|
|
2386
2389
|
var o, s, u, c;
|
|
2387
|
-
const n = wt(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : s.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, i = ga(e, t), r =
|
|
2390
|
+
const n = wt(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : s.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, i = ga(e, t), r = Te((t == null ? void 0 : t.in) || e, 0);
|
|
2388
2391
|
return r.setFullYear(i, 0, a), r.setHours(0, 0, 0, 0), nt(r, t);
|
|
2389
2392
|
}
|
|
2390
2393
|
function Wl(e, t) {
|
|
2391
2394
|
const n = be(e, t == null ? void 0 : t.in), a = +nt(n, t) - +Pl(n, t);
|
|
2392
2395
|
return Math.round(a / fa) + 1;
|
|
2393
2396
|
}
|
|
2394
|
-
function
|
|
2397
|
+
function ee(e, t) {
|
|
2395
2398
|
const n = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(t, "0");
|
|
2396
2399
|
return n + a;
|
|
2397
2400
|
}
|
|
@@ -2399,16 +2402,16 @@ const Ee = {
|
|
|
2399
2402
|
// Year
|
|
2400
2403
|
y(e, t) {
|
|
2401
2404
|
const n = e.getFullYear(), a = n > 0 ? n : 1 - n;
|
|
2402
|
-
return
|
|
2405
|
+
return ee(t === "yy" ? a % 100 : a, t.length);
|
|
2403
2406
|
},
|
|
2404
2407
|
// Month
|
|
2405
2408
|
M(e, t) {
|
|
2406
2409
|
const n = e.getMonth();
|
|
2407
|
-
return t === "M" ? String(n + 1) :
|
|
2410
|
+
return t === "M" ? String(n + 1) : ee(n + 1, 2);
|
|
2408
2411
|
},
|
|
2409
2412
|
// Day of the month
|
|
2410
2413
|
d(e, t) {
|
|
2411
|
-
return
|
|
2414
|
+
return ee(e.getDate(), t.length);
|
|
2412
2415
|
},
|
|
2413
2416
|
// AM or PM
|
|
2414
2417
|
a(e, t) {
|
|
@@ -2428,26 +2431,26 @@ const Ee = {
|
|
|
2428
2431
|
},
|
|
2429
2432
|
// Hour [1-12]
|
|
2430
2433
|
h(e, t) {
|
|
2431
|
-
return
|
|
2434
|
+
return ee(e.getHours() % 12 || 12, t.length);
|
|
2432
2435
|
},
|
|
2433
2436
|
// Hour [0-23]
|
|
2434
2437
|
H(e, t) {
|
|
2435
|
-
return
|
|
2438
|
+
return ee(e.getHours(), t.length);
|
|
2436
2439
|
},
|
|
2437
2440
|
// Minute
|
|
2438
2441
|
m(e, t) {
|
|
2439
|
-
return
|
|
2442
|
+
return ee(e.getMinutes(), t.length);
|
|
2440
2443
|
},
|
|
2441
2444
|
// Second
|
|
2442
2445
|
s(e, t) {
|
|
2443
|
-
return
|
|
2446
|
+
return ee(e.getSeconds(), t.length);
|
|
2444
2447
|
},
|
|
2445
2448
|
// Fraction of second
|
|
2446
2449
|
S(e, t) {
|
|
2447
2450
|
const n = t.length, a = e.getMilliseconds(), i = Math.trunc(
|
|
2448
2451
|
a * Math.pow(10, n - 3)
|
|
2449
2452
|
);
|
|
2450
|
-
return
|
|
2453
|
+
return ee(i, t.length);
|
|
2451
2454
|
}
|
|
2452
2455
|
}, Se = {
|
|
2453
2456
|
midnight: "midnight",
|
|
@@ -2488,14 +2491,14 @@ const Ee = {
|
|
|
2488
2491
|
const i = ga(e, a), r = i > 0 ? i : 1 - i;
|
|
2489
2492
|
if (t === "YY") {
|
|
2490
2493
|
const l = r % 100;
|
|
2491
|
-
return
|
|
2494
|
+
return ee(l, 2);
|
|
2492
2495
|
}
|
|
2493
|
-
return t === "Yo" ? n.ordinalNumber(r, { unit: "year" }) :
|
|
2496
|
+
return t === "Yo" ? n.ordinalNumber(r, { unit: "year" }) : ee(r, t.length);
|
|
2494
2497
|
},
|
|
2495
2498
|
// ISO week-numbering year
|
|
2496
2499
|
R: function(e, t) {
|
|
2497
2500
|
const n = va(e);
|
|
2498
|
-
return
|
|
2501
|
+
return ee(n, t.length);
|
|
2499
2502
|
},
|
|
2500
2503
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
2501
2504
|
// The main difference between `y` and `u` localizers are B.C. years:
|
|
@@ -2508,7 +2511,7 @@ const Ee = {
|
|
|
2508
2511
|
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
2509
2512
|
u: function(e, t) {
|
|
2510
2513
|
const n = e.getFullYear();
|
|
2511
|
-
return
|
|
2514
|
+
return ee(n, t.length);
|
|
2512
2515
|
},
|
|
2513
2516
|
// Quarter
|
|
2514
2517
|
Q: function(e, t, n) {
|
|
@@ -2519,7 +2522,7 @@ const Ee = {
|
|
|
2519
2522
|
return String(a);
|
|
2520
2523
|
// 01, 02, 03, 04
|
|
2521
2524
|
case "QQ":
|
|
2522
|
-
return
|
|
2525
|
+
return ee(a, 2);
|
|
2523
2526
|
// 1st, 2nd, 3rd, 4th
|
|
2524
2527
|
case "Qo":
|
|
2525
2528
|
return n.ordinalNumber(a, { unit: "quarter" });
|
|
@@ -2553,7 +2556,7 @@ const Ee = {
|
|
|
2553
2556
|
return String(a);
|
|
2554
2557
|
// 01, 02, 03, 04
|
|
2555
2558
|
case "qq":
|
|
2556
|
-
return
|
|
2559
|
+
return ee(a, 2);
|
|
2557
2560
|
// 1st, 2nd, 3rd, 4th
|
|
2558
2561
|
case "qo":
|
|
2559
2562
|
return n.ordinalNumber(a, { unit: "quarter" });
|
|
@@ -2615,7 +2618,7 @@ const Ee = {
|
|
|
2615
2618
|
return String(a + 1);
|
|
2616
2619
|
// 01, 02, ..., 12
|
|
2617
2620
|
case "LL":
|
|
2618
|
-
return
|
|
2621
|
+
return ee(a + 1, 2);
|
|
2619
2622
|
// 1st, 2nd, ..., 12th
|
|
2620
2623
|
case "Lo":
|
|
2621
2624
|
return n.ordinalNumber(a + 1, { unit: "month" });
|
|
@@ -2640,12 +2643,12 @@ const Ee = {
|
|
|
2640
2643
|
// Local week of year
|
|
2641
2644
|
w: function(e, t, n, a) {
|
|
2642
2645
|
const i = Wl(e, a);
|
|
2643
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
2646
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : ee(i, t.length);
|
|
2644
2647
|
},
|
|
2645
2648
|
// ISO week of year
|
|
2646
2649
|
I: function(e, t, n) {
|
|
2647
2650
|
const a = jl(e);
|
|
2648
|
-
return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) :
|
|
2651
|
+
return t === "Io" ? n.ordinalNumber(a, { unit: "week" }) : ee(a, t.length);
|
|
2649
2652
|
},
|
|
2650
2653
|
// Day of the month
|
|
2651
2654
|
d: function(e, t, n) {
|
|
@@ -2654,7 +2657,7 @@ const Ee = {
|
|
|
2654
2657
|
// Day of year
|
|
2655
2658
|
D: function(e, t, n) {
|
|
2656
2659
|
const a = Bl(e);
|
|
2657
|
-
return t === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) :
|
|
2660
|
+
return t === "Do" ? n.ordinalNumber(a, { unit: "dayOfYear" }) : ee(a, t.length);
|
|
2658
2661
|
},
|
|
2659
2662
|
// Day of week
|
|
2660
2663
|
E: function(e, t, n) {
|
|
@@ -2698,7 +2701,7 @@ const Ee = {
|
|
|
2698
2701
|
return String(r);
|
|
2699
2702
|
// Padded numerical value
|
|
2700
2703
|
case "ee":
|
|
2701
|
-
return
|
|
2704
|
+
return ee(r, 2);
|
|
2702
2705
|
// 1st, 2nd, ..., 7th
|
|
2703
2706
|
case "eo":
|
|
2704
2707
|
return n.ordinalNumber(r, { unit: "day" });
|
|
@@ -2737,7 +2740,7 @@ const Ee = {
|
|
|
2737
2740
|
return String(r);
|
|
2738
2741
|
// Padded numerical value
|
|
2739
2742
|
case "cc":
|
|
2740
|
-
return
|
|
2743
|
+
return ee(r, t.length);
|
|
2741
2744
|
// 1st, 2nd, ..., 7th
|
|
2742
2745
|
case "co":
|
|
2743
2746
|
return n.ordinalNumber(r, { unit: "day" });
|
|
@@ -2776,7 +2779,7 @@ const Ee = {
|
|
|
2776
2779
|
return String(i);
|
|
2777
2780
|
// 02
|
|
2778
2781
|
case "ii":
|
|
2779
|
-
return
|
|
2782
|
+
return ee(i, t.length);
|
|
2780
2783
|
// 2nd
|
|
2781
2784
|
case "io":
|
|
2782
2785
|
return n.ordinalNumber(i, { unit: "day" });
|
|
@@ -2904,12 +2907,12 @@ const Ee = {
|
|
|
2904
2907
|
// Hour [0-11]
|
|
2905
2908
|
K: function(e, t, n) {
|
|
2906
2909
|
const a = e.getHours() % 12;
|
|
2907
|
-
return t === "Ko" ? n.ordinalNumber(a, { unit: "hour" }) :
|
|
2910
|
+
return t === "Ko" ? n.ordinalNumber(a, { unit: "hour" }) : ee(a, t.length);
|
|
2908
2911
|
},
|
|
2909
2912
|
// Hour [1-24]
|
|
2910
2913
|
k: function(e, t, n) {
|
|
2911
2914
|
let a = e.getHours();
|
|
2912
|
-
return a === 0 && (a = 24), t === "ko" ? n.ordinalNumber(a, { unit: "hour" }) :
|
|
2915
|
+
return a === 0 && (a = 24), t === "ko" ? n.ordinalNumber(a, { unit: "hour" }) : ee(a, t.length);
|
|
2913
2916
|
},
|
|
2914
2917
|
// Minute
|
|
2915
2918
|
m: function(e, t, n) {
|
|
@@ -2931,7 +2934,7 @@ const Ee = {
|
|
|
2931
2934
|
switch (t) {
|
|
2932
2935
|
// Hours and optional minutes
|
|
2933
2936
|
case "X":
|
|
2934
|
-
return
|
|
2937
|
+
return xn(a);
|
|
2935
2938
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
2936
2939
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2937
2940
|
// so this token always has the same output as `XX`
|
|
@@ -2954,7 +2957,7 @@ const Ee = {
|
|
|
2954
2957
|
switch (t) {
|
|
2955
2958
|
// Hours and optional minutes
|
|
2956
2959
|
case "x":
|
|
2957
|
-
return
|
|
2960
|
+
return xn(a);
|
|
2958
2961
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
2959
2962
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2960
2963
|
// so this token always has the same output as `xx`
|
|
@@ -2979,7 +2982,7 @@ const Ee = {
|
|
|
2979
2982
|
case "O":
|
|
2980
2983
|
case "OO":
|
|
2981
2984
|
case "OOO":
|
|
2982
|
-
return "GMT" +
|
|
2985
|
+
return "GMT" + Ln(a, ":");
|
|
2983
2986
|
// Long
|
|
2984
2987
|
case "OOOO":
|
|
2985
2988
|
default:
|
|
@@ -2994,7 +2997,7 @@ const Ee = {
|
|
|
2994
2997
|
case "z":
|
|
2995
2998
|
case "zz":
|
|
2996
2999
|
case "zzz":
|
|
2997
|
-
return "GMT" +
|
|
3000
|
+
return "GMT" + Ln(a, ":");
|
|
2998
3001
|
// Long
|
|
2999
3002
|
case "zzzz":
|
|
3000
3003
|
default:
|
|
@@ -3004,22 +3007,22 @@ const Ee = {
|
|
|
3004
3007
|
// Seconds timestamp
|
|
3005
3008
|
t: function(e, t, n) {
|
|
3006
3009
|
const a = Math.trunc(+e / 1e3);
|
|
3007
|
-
return
|
|
3010
|
+
return ee(a, t.length);
|
|
3008
3011
|
},
|
|
3009
3012
|
// Milliseconds timestamp
|
|
3010
3013
|
T: function(e, t, n) {
|
|
3011
|
-
return
|
|
3014
|
+
return ee(+e, t.length);
|
|
3012
3015
|
}
|
|
3013
3016
|
};
|
|
3014
|
-
function
|
|
3017
|
+
function Ln(e, t = "") {
|
|
3015
3018
|
const n = e > 0 ? "-" : "+", a = Math.abs(e), i = Math.trunc(a / 60), r = a % 60;
|
|
3016
|
-
return r === 0 ? n + String(i) : n + String(i) + t +
|
|
3019
|
+
return r === 0 ? n + String(i) : n + String(i) + t + ee(r, 2);
|
|
3017
3020
|
}
|
|
3018
|
-
function
|
|
3019
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") +
|
|
3021
|
+
function xn(e, t) {
|
|
3022
|
+
return e % 60 === 0 ? (e > 0 ? "-" : "+") + ee(Math.abs(e) / 60, 2) : ke(e, t);
|
|
3020
3023
|
}
|
|
3021
3024
|
function ke(e, t = "") {
|
|
3022
|
-
const n = e > 0 ? "-" : "+", a = Math.abs(e), i =
|
|
3025
|
+
const n = e > 0 ? "-" : "+", a = Math.abs(e), i = ee(Math.trunc(a / 60), 2), r = ee(a % 60, 2);
|
|
3023
3026
|
return n + i + t + r;
|
|
3024
3027
|
}
|
|
3025
3028
|
const Dn = (e, t) => {
|
|
@@ -3070,12 +3073,12 @@ const Dn = (e, t) => {
|
|
|
3070
3073
|
}, Ul = {
|
|
3071
3074
|
p: ha,
|
|
3072
3075
|
P: Vl
|
|
3073
|
-
},
|
|
3076
|
+
}, Hl = /^D+$/, Fl = /^Y+$/, ql = ["D", "DD", "YY", "YYYY"];
|
|
3074
3077
|
function Rl(e) {
|
|
3075
|
-
return
|
|
3078
|
+
return Hl.test(e);
|
|
3076
3079
|
}
|
|
3077
3080
|
function Xl(e) {
|
|
3078
|
-
return
|
|
3081
|
+
return Fl.test(e);
|
|
3079
3082
|
}
|
|
3080
3083
|
function Zl(e, t, n) {
|
|
3081
3084
|
const a = Yl(e, t, n);
|
|
@@ -3196,7 +3199,7 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3196
3199
|
return t({
|
|
3197
3200
|
focus: v
|
|
3198
3201
|
}), (f, b) => (A(), g("div", {
|
|
3199
|
-
class:
|
|
3202
|
+
class: H(["av-input", {
|
|
3200
3203
|
"av-input--date": e.type === "date",
|
|
3201
3204
|
"av-input--no-radius": e.noRadius
|
|
3202
3205
|
}])
|
|
@@ -3209,21 +3212,21 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3209
3212
|
}, null, 8, ["name"])
|
|
3210
3213
|
])) : w("", !0),
|
|
3211
3214
|
p("label", {
|
|
3212
|
-
class:
|
|
3215
|
+
class: H(d(m)),
|
|
3213
3216
|
for: e.id
|
|
3214
3217
|
}, [
|
|
3215
3218
|
p("span", {
|
|
3216
|
-
class:
|
|
3219
|
+
class: H(e.labelClass)
|
|
3217
3220
|
}, [
|
|
3218
3221
|
le(z(e.label) + " ", 1),
|
|
3219
|
-
|
|
3222
|
+
F(f.$slots, "requiredTip", {}, () => [
|
|
3220
3223
|
e.required === !0 ? (A(), g("span", ro, " * ")) : w("", !0)
|
|
3221
3224
|
], !0),
|
|
3222
3225
|
e.hint ? (A(), g("span", lo, z(e.hint), 1)) : w("", !0)
|
|
3223
3226
|
], 2)
|
|
3224
3227
|
], 10, io),
|
|
3225
3228
|
p("div", {
|
|
3226
|
-
class:
|
|
3229
|
+
class: H(["av-input__wrapper", [
|
|
3227
3230
|
{ "fr-input-wrap": e.type === "date" }
|
|
3228
3231
|
]])
|
|
3229
3232
|
}, [
|
|
@@ -3249,7 +3252,7 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3249
3252
|
onInput: b[0] || (b[0] = (C) => a("update:modelValue", C.target.value))
|
|
3250
3253
|
}), null, 16, ["id", "placeholder", "type", "disabled", "maxlength", "minlength", "required", "max", "min", "class", "value", "aria-describedby"]))
|
|
3251
3254
|
], 2),
|
|
3252
|
-
|
|
3255
|
+
F(f.$slots, "customCaptions", {
|
|
3253
3256
|
currentValue: e.modelValue,
|
|
3254
3257
|
maxlength: e.maxlength
|
|
3255
3258
|
}, () => {
|
|
@@ -3260,14 +3263,14 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3260
3263
|
}, !0)
|
|
3261
3264
|
]),
|
|
3262
3265
|
d(i).length > 0 ? (A(), g("div", so, [
|
|
3263
|
-
(A(!0), g(
|
|
3264
|
-
key:
|
|
3266
|
+
(A(!0), g(J, null, ae(d(i), (C, x) => (A(), g("div", {
|
|
3267
|
+
key: x,
|
|
3265
3268
|
class: "av-input__error-message"
|
|
3266
3269
|
}, z(C), 1))), 128))
|
|
3267
3270
|
])) : w("", !0),
|
|
3268
3271
|
d(r).length > 0 ? (A(), g("div", co, [
|
|
3269
|
-
(A(!0), g(
|
|
3270
|
-
key:
|
|
3272
|
+
(A(!0), g(J, null, ae(d(r), (C, x) => (A(), g("div", {
|
|
3273
|
+
key: x,
|
|
3271
3274
|
class: "av-input__valid-message"
|
|
3272
3275
|
}, z(C), 1))), 128))
|
|
3273
3276
|
])) : w("", !0)
|
|
@@ -3289,7 +3292,7 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3289
3292
|
setup(e, { emit: t }) {
|
|
3290
3293
|
const n = t;
|
|
3291
3294
|
return (a, i) => {
|
|
3292
|
-
const r = rn, l =
|
|
3295
|
+
const r = rn, l = me;
|
|
3293
3296
|
return A(), g("div", Ao, [
|
|
3294
3297
|
X(r, {
|
|
3295
3298
|
id: e.id,
|
|
@@ -3325,10 +3328,10 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3325
3328
|
}, po = ["aria-label", "title", "data-fr-opened"], Co = ["aria-label", "title"], Eo = {
|
|
3326
3329
|
key: 0,
|
|
3327
3330
|
class: "fr-header__service"
|
|
3328
|
-
}, Mo = { class: "fr-header__service-title" },
|
|
3331
|
+
}, Mo = { class: "fr-header__service-title" }, To = { class: "fr-header__tools" }, No = { class: "fr-header__tools-links" }, ko = {
|
|
3329
3332
|
key: 0,
|
|
3330
3333
|
class: "fr-header__search fr-modal demo-display-none"
|
|
3331
|
-
}, wo = ["aria-label"], Oo = { class: "fr-container" },
|
|
3334
|
+
}, wo = ["aria-label"], Oo = { class: "fr-container" }, Lo = { class: "fr-header__menu-links" }, xo = {
|
|
3332
3335
|
key: 1,
|
|
3333
3336
|
class: "flex justify-center items-center demo-display-none"
|
|
3334
3337
|
}, Do = { class: "fr-header__menu fr-modal" }, Qo = {
|
|
@@ -3357,7 +3360,7 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3357
3360
|
},
|
|
3358
3361
|
emits: ["update:modelValue", "search", "languageSelect"],
|
|
3359
3362
|
setup(e, { emit: t }) {
|
|
3360
|
-
const n = t, a =
|
|
3363
|
+
const n = t, a = ge(), i = Ct(() => e.languageSelector), r = q(!1), l = q(!1), o = q(!1);
|
|
3361
3364
|
function s() {
|
|
3362
3365
|
var b;
|
|
3363
3366
|
o.value = !1, r.value = !1, l.value = !1, (b = document.getElementById("button-menu")) == null || b.focus();
|
|
@@ -3382,7 +3385,7 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3382
3385
|
const y = s, m = E(() => [e.homeLabel, e.serviceTitle].filter((b) => b).join(" - ")), f = E(() => !!a.mainnav);
|
|
3383
3386
|
return Et(Br, () => s), (b, C) => {
|
|
3384
3387
|
var D, k;
|
|
3385
|
-
const
|
|
3388
|
+
const x = Mt("RouterLink");
|
|
3386
3389
|
return A(), g("header", fo, [
|
|
3387
3390
|
p("div", vo, [
|
|
3388
3391
|
p("div", mo, [
|
|
@@ -3390,12 +3393,12 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3390
3393
|
p("div", ho, [
|
|
3391
3394
|
p("div", bo, [
|
|
3392
3395
|
p("div", Io, [
|
|
3393
|
-
X(
|
|
3396
|
+
X(x, {
|
|
3394
3397
|
to: e.homeTo,
|
|
3395
3398
|
title: d(m)
|
|
3396
3399
|
}, {
|
|
3397
|
-
default:
|
|
3398
|
-
X(
|
|
3400
|
+
default: G(() => [
|
|
3401
|
+
X(Hr, { "data-testid": "header-logo" })
|
|
3399
3402
|
]),
|
|
3400
3403
|
_: 1
|
|
3401
3404
|
}, 8, ["to", "title"])
|
|
@@ -3408,7 +3411,7 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3408
3411
|
"aria-label": e.showSearchLabel,
|
|
3409
3412
|
title: e.showSearchLabel,
|
|
3410
3413
|
"data-fr-opened": d(l),
|
|
3411
|
-
onClick: C[0] || (C[0] = de((
|
|
3414
|
+
onClick: C[0] || (C[0] = de((N) => v(), ["prevent", "stop"]))
|
|
3412
3415
|
}, null, 8, po)) : w("", !0),
|
|
3413
3416
|
d(f) || (k = e.quickLinks) != null && k.length ? (A(), g("button", {
|
|
3414
3417
|
key: 1,
|
|
@@ -3420,26 +3423,26 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3420
3423
|
"aria-label": e.menuLabel,
|
|
3421
3424
|
title: e.menuLabel,
|
|
3422
3425
|
"data-testid": "open-menu-btn",
|
|
3423
|
-
onClick: C[1] || (C[1] = de((
|
|
3426
|
+
onClick: C[1] || (C[1] = de((N) => c(), ["prevent", "stop"]))
|
|
3424
3427
|
}, null, 8, Co)) : w("", !0)
|
|
3425
3428
|
])) : w("", !0)
|
|
3426
3429
|
]),
|
|
3427
3430
|
e.serviceTitle ? (A(), g("div", Eo, [
|
|
3428
3431
|
p("p", Mo, z(e.serviceTitle), 1),
|
|
3429
|
-
|
|
3432
|
+
F(b.$slots, "serviceDescription", {}, void 0, !0)
|
|
3430
3433
|
])) : w("", !0)
|
|
3431
3434
|
]),
|
|
3432
|
-
p("div",
|
|
3433
|
-
p("div",
|
|
3434
|
-
|
|
3435
|
+
p("div", To, [
|
|
3436
|
+
p("div", No, [
|
|
3437
|
+
F(b.$slots, "before-quick-links", {}, void 0, !0),
|
|
3435
3438
|
d(r) ? w("", !0) : (A(), R(Mn, {
|
|
3436
3439
|
key: 0,
|
|
3437
3440
|
links: e.quickLinks,
|
|
3438
3441
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
3439
3442
|
}, null, 8, ["links", "nav-aria-label"])),
|
|
3440
|
-
|
|
3441
|
-
d(i) ? (A(), R(
|
|
3442
|
-
onSelect: C[2] || (C[2] = (
|
|
3443
|
+
F(b.$slots, "after-quick-links", {}, void 0, !0),
|
|
3444
|
+
d(i) ? (A(), R(Tn, te({ key: 1 }, d(i), {
|
|
3445
|
+
onSelect: C[2] || (C[2] = (N) => n("languageSelect", N))
|
|
3443
3446
|
}), null, 16)) : w("", !0)
|
|
3444
3447
|
]),
|
|
3445
3448
|
e.showSearch ? (A(), g("div", ko, [
|
|
@@ -3449,8 +3452,8 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3449
3452
|
"model-value": e.modelValue,
|
|
3450
3453
|
placeholder: e.placeholder,
|
|
3451
3454
|
style: { "justify-content": "flex-end" },
|
|
3452
|
-
"onUpdate:modelValue": C[3] || (C[3] = (
|
|
3453
|
-
onSearch: C[4] || (C[4] = (
|
|
3455
|
+
"onUpdate:modelValue": C[3] || (C[3] = (N) => n("update:modelValue", N)),
|
|
3456
|
+
onSearch: C[4] || (C[4] = (N) => n("search", N))
|
|
3454
3457
|
}, null, 8, ["id", "label", "model-value", "placeholder"])
|
|
3455
3458
|
])) : w("", !0)
|
|
3456
3459
|
])
|
|
@@ -3458,7 +3461,7 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3458
3461
|
e.showSearch || d(f) || e.quickLinks && e.quickLinks.length || d(i) ? (A(), g("div", {
|
|
3459
3462
|
key: 0,
|
|
3460
3463
|
id: "header-navigation",
|
|
3461
|
-
class:
|
|
3464
|
+
class: H(["fr-header__menu fr-modal", { "fr-modal--opened": d(o) }]),
|
|
3462
3465
|
"aria-label": e.menuModalLabel,
|
|
3463
3466
|
role: "dialog",
|
|
3464
3467
|
"aria-modal": "true"
|
|
@@ -3469,13 +3472,13 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3469
3472
|
class: "fr-btn fr-btn--close",
|
|
3470
3473
|
"aria-controls": "header-navigation",
|
|
3471
3474
|
"data-testid": "close-modal-btn",
|
|
3472
|
-
onClick: C[5] || (C[5] = de((
|
|
3475
|
+
onClick: C[5] || (C[5] = de((N) => s(), ["prevent", "stop"]))
|
|
3473
3476
|
}, z(e.closeMenuModalLabel), 1),
|
|
3474
|
-
p("div",
|
|
3475
|
-
d(i) ? (A(), R(
|
|
3476
|
-
onSelect: C[6] || (C[6] = (
|
|
3477
|
+
p("div", Lo, [
|
|
3478
|
+
d(i) ? (A(), R(Tn, te({ key: 0 }, d(i), {
|
|
3479
|
+
onSelect: C[6] || (C[6] = (N) => d(i).currentLanguage = N.codeIso)
|
|
3477
3480
|
}), null, 16)) : w("", !0),
|
|
3478
|
-
|
|
3481
|
+
F(b.$slots, "before-quick-links", {}, void 0, !0),
|
|
3479
3482
|
d(r) ? (A(), R(Mn, {
|
|
3480
3483
|
key: 1,
|
|
3481
3484
|
role: "navigation",
|
|
@@ -3483,35 +3486,35 @@ const no = { class: "av-input__wrapper" }, ao = {
|
|
|
3483
3486
|
"nav-aria-label": e.quickLinksAriaLabel,
|
|
3484
3487
|
onLinkClick: d(y)
|
|
3485
3488
|
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) : w("", !0),
|
|
3486
|
-
|
|
3489
|
+
F(b.$slots, "after-quick-links", {}, void 0, !0)
|
|
3487
3490
|
]),
|
|
3488
|
-
d(o) ?
|
|
3491
|
+
d(o) ? F(b.$slots, "mainnav", {
|
|
3489
3492
|
key: 0,
|
|
3490
3493
|
hidemodal: s
|
|
3491
3494
|
}, void 0, !0) : w("", !0),
|
|
3492
|
-
d(l) ? (A(), g("div",
|
|
3495
|
+
d(l) ? (A(), g("div", xo, [
|
|
3493
3496
|
X(Qn, {
|
|
3494
3497
|
"searchbar-id": e.searchbarId,
|
|
3495
3498
|
"model-value": e.modelValue,
|
|
3496
3499
|
placeholder: e.placeholder,
|
|
3497
|
-
"onUpdate:modelValue": C[7] || (C[7] = (
|
|
3498
|
-
onSearch: C[8] || (C[8] = (
|
|
3500
|
+
"onUpdate:modelValue": C[7] || (C[7] = (N) => n("update:modelValue", N)),
|
|
3501
|
+
onSearch: C[8] || (C[8] = (N) => n("search", N))
|
|
3499
3502
|
}, null, 8, ["searchbar-id", "model-value", "placeholder"])
|
|
3500
3503
|
])) : w("", !0)
|
|
3501
3504
|
])
|
|
3502
3505
|
], 10, wo)) : w("", !0),
|
|
3503
|
-
|
|
3506
|
+
F(b.$slots, "default", {}, void 0, !0)
|
|
3504
3507
|
])
|
|
3505
3508
|
]),
|
|
3506
3509
|
p("div", Do, [
|
|
3507
3510
|
d(f) && !d(o) ? (A(), g("div", Qo, [
|
|
3508
|
-
|
|
3511
|
+
F(b.$slots, "mainnav", { hidemodal: s }, void 0, !0)
|
|
3509
3512
|
])) : w("", !0)
|
|
3510
3513
|
])
|
|
3511
3514
|
]);
|
|
3512
3515
|
};
|
|
3513
3516
|
}
|
|
3514
|
-
}),
|
|
3517
|
+
}), _f = /* @__PURE__ */ Y(So, [["__scopeId", "data-v-e54683cc"]]), zo = {
|
|
3515
3518
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3516
3519
|
viewBox: "0 0 106.703 44.429"
|
|
3517
3520
|
};
|
|
@@ -3548,7 +3551,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3548
3551
|
X(d(jo), te(d(t), { class: "logo" }), null, 16)
|
|
3549
3552
|
]));
|
|
3550
3553
|
}
|
|
3551
|
-
}),
|
|
3554
|
+
}), ev = /* @__PURE__ */ Y(Wo, [["__scopeId", "data-v-0e512b24"]]), Vo = Symbol("header"), ln = Symbol("tabs"), on = () => {
|
|
3552
3555
|
const e = q(), t = q(!1), n = q(!1), a = () => {
|
|
3553
3556
|
if (!e.value)
|
|
3554
3557
|
return;
|
|
@@ -3573,12 +3576,12 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3573
3576
|
t.value = !1, r && ((o = (l = e.value) == null ? void 0 : l.querySelector("a")) == null || o.focus()), e.value && i === !1 && e.value.style.removeProperty("--collapse-max-height");
|
|
3574
3577
|
}
|
|
3575
3578
|
};
|
|
3576
|
-
}, Ie = (e = "", t = "") => (e ? `${e}-` : "") + Xa() + (t ? `-${t}` : ""),
|
|
3579
|
+
}, Ie = (e = "", t = "") => (e ? `${e}-` : "") + Xa() + (t ? `-${t}` : ""), Fe = (e, t) => {
|
|
3577
3580
|
const n = e.__vccOpts || e;
|
|
3578
3581
|
for (const [a, i] of t)
|
|
3579
3582
|
n[a] = i;
|
|
3580
3583
|
return n;
|
|
3581
|
-
}, Uo = ["aria-label"],
|
|
3584
|
+
}, Uo = ["aria-label"], Ho = ["aria-expanded", "aria-controls"], Fo = ["id"], qo = { class: "fr-breadcrumb__list" }, Ro = ["aria-current"], Xo = /* @__PURE__ */ j({
|
|
3582
3585
|
__name: "DsfrBreadcrumb",
|
|
3583
3586
|
props: {
|
|
3584
3587
|
breadcrumbId: { default: () => Ie("breadcrumb") },
|
|
@@ -3609,12 +3612,12 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3609
3612
|
"aria-expanded": l.value,
|
|
3610
3613
|
"aria-controls": o.breadcrumbId,
|
|
3611
3614
|
onClick: s[0] || (s[0] = (c) => l.value = !l.value)
|
|
3612
|
-
}, z(o.showBreadcrumbLabel), 9,
|
|
3615
|
+
}, z(o.showBreadcrumbLabel), 9, Ho)),
|
|
3613
3616
|
p("div", {
|
|
3614
3617
|
id: o.breadcrumbId,
|
|
3615
3618
|
ref_key: "collapse",
|
|
3616
3619
|
ref: t,
|
|
3617
|
-
class:
|
|
3620
|
+
class: H(["fr-collapse", {
|
|
3618
3621
|
"fr-collapse--expanded": d(a),
|
|
3619
3622
|
// Need to use a separate data to add/remove the class after a RAF
|
|
3620
3623
|
"fr-collapsing": d(n)
|
|
@@ -3622,7 +3625,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3622
3625
|
onTransitionend: s[1] || (s[1] = (c) => d(r)(l.value))
|
|
3623
3626
|
}, [
|
|
3624
3627
|
p("ol", qo, [
|
|
3625
|
-
(A(!0), g(
|
|
3628
|
+
(A(!0), g(J, null, ae(o.links, (c, v) => (A(), g("li", {
|
|
3626
3629
|
key: v,
|
|
3627
3630
|
class: "fr-breadcrumb__item",
|
|
3628
3631
|
"data-testid": "lis"
|
|
@@ -3633,7 +3636,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3633
3636
|
to: c.to,
|
|
3634
3637
|
"aria-current": v === o.links.length - 1 ? "page" : void 0
|
|
3635
3638
|
}, {
|
|
3636
|
-
default:
|
|
3639
|
+
default: G(() => [
|
|
3637
3640
|
le(z(c.text), 1)
|
|
3638
3641
|
]),
|
|
3639
3642
|
_: 2
|
|
@@ -3645,7 +3648,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3645
3648
|
}, z(c.text), 9, Ro))
|
|
3646
3649
|
]))), 128))
|
|
3647
3650
|
])
|
|
3648
|
-
], 42,
|
|
3651
|
+
], 42, Fo)
|
|
3649
3652
|
], 8, Uo);
|
|
3650
3653
|
};
|
|
3651
3654
|
}
|
|
@@ -3691,7 +3694,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3691
3694
|
icon: l.value,
|
|
3692
3695
|
style: fe({ fontSize: a.value, verticalAlign: s.verticalAlign, display: s.display, color: o.value }),
|
|
3693
3696
|
"aria-label": s.label,
|
|
3694
|
-
class:
|
|
3697
|
+
class: H(["vicon", {
|
|
3695
3698
|
"vicon-spin": t.animation === "spin",
|
|
3696
3699
|
"vicon-wrench": t.animation === "wrench",
|
|
3697
3700
|
"vicon-pulse": t.animation === "pulse",
|
|
@@ -3707,7 +3710,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3707
3710
|
ssr: s.ssr
|
|
3708
3711
|
}, null, 8, ["icon", "style", "aria-label", "class", "flip", "ssr"]));
|
|
3709
3712
|
}
|
|
3710
|
-
}), Ot = /* @__PURE__ */
|
|
3713
|
+
}), Ot = /* @__PURE__ */ Fe(Zo, [["__scopeId", "data-v-6e09e524"]]), Yo = ["title", "disabled", "aria-disabled"], Ko = { key: 1 }, Go = /* @__PURE__ */ j({
|
|
3711
3714
|
__name: "DsfrButton",
|
|
3712
3715
|
props: {
|
|
3713
3716
|
disabled: { type: Boolean },
|
|
@@ -3734,7 +3737,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3734
3737
|
return (c, v) => (A(), g("button", {
|
|
3735
3738
|
ref_key: "btn",
|
|
3736
3739
|
ref: l,
|
|
3737
|
-
class:
|
|
3740
|
+
class: H(["fr-btn", {
|
|
3738
3741
|
"fr-btn--secondary": c.secondary && !c.tertiary,
|
|
3739
3742
|
"fr-btn--tertiary": c.tertiary && !c.secondary && !c.noOutline,
|
|
3740
3743
|
"fr-btn--tertiary-no-outline": c.tertiary && !c.secondary && c.noOutline,
|
|
@@ -3758,11 +3761,11 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3758
3761
|
c.icon && !o.value ? (A(), R(Ot, Ue(te({ key: 0 }, u.value)), null, 16)) : w("", !0),
|
|
3759
3762
|
c.iconOnly ? w("", !0) : (A(), g("span", Ko, [
|
|
3760
3763
|
le(z(c.label) + " ", 1),
|
|
3761
|
-
|
|
3764
|
+
F(c.$slots, "default", {}, void 0, !0)
|
|
3762
3765
|
]))
|
|
3763
3766
|
], 14, Yo));
|
|
3764
3767
|
}
|
|
3765
|
-
}), Jo = /* @__PURE__ */
|
|
3768
|
+
}), Jo = /* @__PURE__ */ Fe(Go, [["__scopeId", "data-v-118397f5"]]), $o = /* @__PURE__ */ j({
|
|
3766
3769
|
__name: "DsfrButtonGroup",
|
|
3767
3770
|
props: {
|
|
3768
3771
|
buttons: { default: () => [] },
|
|
@@ -3777,10 +3780,10 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3777
3780
|
const t = e, n = q(null), a = E(() => ["sm", "small"].includes(t.size)), i = E(() => ["md", "medium"].includes(t.size)), r = E(() => ["lg", "large"].includes(t.size)), l = E(() => ["always", "", !0].includes(t.inlineLayoutWhen)), o = E(() => ["sm", "small"].includes(t.inlineLayoutWhen)), s = E(() => ["md", "medium"].includes(t.inlineLayoutWhen)), u = E(() => ["lg", "large"].includes(t.inlineLayoutWhen)), c = E(() => t.align === "center"), v = E(() => t.align === "right"), y = q("auto"), m = E(() => `--equisized-width: ${y.value};`), f = async () => {
|
|
3778
3781
|
var b;
|
|
3779
3782
|
let C = 0;
|
|
3780
|
-
await new Promise((
|
|
3781
|
-
const D =
|
|
3783
|
+
await new Promise((x) => setTimeout(x, 100)), (b = n.value) == null || b.querySelectorAll(".fr-btn").forEach((x) => {
|
|
3784
|
+
const D = x, k = D.offsetWidth, N = window.getComputedStyle(D), S = +N.marginLeft.replace("px", ""), L = +N.marginRight.replace("px", "");
|
|
3782
3785
|
D.style.width = "var(--equisized-width)";
|
|
3783
|
-
const W = k + S +
|
|
3786
|
+
const W = k + S + L;
|
|
3784
3787
|
W > C && (C = W);
|
|
3785
3788
|
}), y.value = `${C}px`;
|
|
3786
3789
|
};
|
|
@@ -3790,7 +3793,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3790
3793
|
ref_key: "buttonsEl",
|
|
3791
3794
|
ref: n,
|
|
3792
3795
|
style: fe(m.value),
|
|
3793
|
-
class:
|
|
3796
|
+
class: H(["fr-btns-group", {
|
|
3794
3797
|
"fr-btns-group--equisized": b.equisized,
|
|
3795
3798
|
"fr-btns-group--sm": a.value,
|
|
3796
3799
|
"fr-btns-group--md": i.value,
|
|
@@ -3805,10 +3808,10 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3805
3808
|
}]),
|
|
3806
3809
|
"data-testid": "fr-btns"
|
|
3807
3810
|
}, [
|
|
3808
|
-
(A(!0), g(
|
|
3809
|
-
X(Jo, te({ ref_for: !0 }, D, { onClick:
|
|
3811
|
+
(A(!0), g(J, null, ae(b.buttons, ({ onClick: x, ...D }, k) => (A(), g("li", { key: k }, [
|
|
3812
|
+
X(Jo, te({ ref_for: !0 }, D, { onClick: x }), null, 16, ["onClick"])
|
|
3810
3813
|
]))), 128)),
|
|
3811
|
-
|
|
3814
|
+
F(b.$slots, "default")
|
|
3812
3815
|
], 6));
|
|
3813
3816
|
}
|
|
3814
3817
|
});
|
|
@@ -3816,7 +3819,7 @@ const jo = { render: Bo }, Po = { class: "svg-wrapper" }, Wo = /* @__PURE__ */ j
|
|
|
3816
3819
|
* tabbable 6.2.0
|
|
3817
3820
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3818
3821
|
*/
|
|
3819
|
-
var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ft = /* @__PURE__ */ ba.join(","), Ia = typeof Element > "u",
|
|
3822
|
+
var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], ft = /* @__PURE__ */ ba.join(","), Ia = typeof Element > "u", Le = Ia ? function() {
|
|
3820
3823
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, vt = !Ia && Element.prototype.getRootNode ? function(e) {
|
|
3821
3824
|
var t;
|
|
3822
3825
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -3834,7 +3837,7 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3834
3837
|
if (mt(e))
|
|
3835
3838
|
return [];
|
|
3836
3839
|
var a = Array.prototype.slice.apply(e.querySelectorAll(ft));
|
|
3837
|
-
return t &&
|
|
3840
|
+
return t && Le.call(e, ft) && a.unshift(e), a = a.filter(n), a;
|
|
3838
3841
|
}, pa = function e(t, n, a) {
|
|
3839
3842
|
for (var i = [], r = Array.from(t); r.length; ) {
|
|
3840
3843
|
var l = r.shift();
|
|
@@ -3846,7 +3849,7 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3846
3849
|
candidates: u
|
|
3847
3850
|
});
|
|
3848
3851
|
} else {
|
|
3849
|
-
var c =
|
|
3852
|
+
var c = Le.call(l, ft);
|
|
3850
3853
|
c && a.filter(l) && (n || !t.includes(l)) && i.push(l);
|
|
3851
3854
|
var v = l.shadowRoot || // check for an undisclosed shadow
|
|
3852
3855
|
typeof a.getShadowRoot == "function" && a.getShadowRoot(l), y = !mt(v, !1) && (!a.shadowRootFilter || a.shadowRootFilter(l));
|
|
@@ -3922,8 +3925,8 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3922
3925
|
var n = t.displayCheck, a = t.getShadowRoot;
|
|
3923
3926
|
if (getComputedStyle(e).visibility === "hidden")
|
|
3924
3927
|
return !0;
|
|
3925
|
-
var i =
|
|
3926
|
-
if (
|
|
3928
|
+
var i = Le.call(e, "details>summary:first-of-type"), r = i ? e.parentElement : e;
|
|
3929
|
+
if (Le.call(r, "details:not([open]) *"))
|
|
3927
3930
|
return !0;
|
|
3928
3931
|
if (!n || n === "full" || n === "legacy-full") {
|
|
3929
3932
|
if (typeof a == "function") {
|
|
@@ -3949,7 +3952,7 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3949
3952
|
for (var n = 0; n < t.children.length; n++) {
|
|
3950
3953
|
var a = t.children.item(n);
|
|
3951
3954
|
if (a.tagName === "LEGEND")
|
|
3952
|
-
return
|
|
3955
|
+
return Le.call(t, "fieldset[disabled] *") ? !0 : !a.contains(e);
|
|
3953
3956
|
}
|
|
3954
3957
|
return !0;
|
|
3955
3958
|
}
|
|
@@ -4001,11 +4004,11 @@ var ba = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4001
4004
|
}, ze = function(e, t) {
|
|
4002
4005
|
if (t = t || {}, !e)
|
|
4003
4006
|
throw new Error("No node provided");
|
|
4004
|
-
return
|
|
4007
|
+
return Le.call(e, ft) === !1 ? !1 : qt(t, e);
|
|
4005
4008
|
}, ms = /* @__PURE__ */ ba.concat("iframe").join(","), zt = function(e, t) {
|
|
4006
4009
|
if (t = t || {}, !e)
|
|
4007
4010
|
throw new Error("No node provided");
|
|
4008
|
-
return
|
|
4011
|
+
return Le.call(e, ms) === !1 ? !1 : gt(t, e);
|
|
4009
4012
|
};
|
|
4010
4013
|
/*!
|
|
4011
4014
|
* focus-trap 7.6.4
|
|
@@ -4094,11 +4097,11 @@ var jn = {
|
|
|
4094
4097
|
}
|
|
4095
4098
|
}, Ms = function(e) {
|
|
4096
4099
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
4097
|
-
},
|
|
4100
|
+
}, Ts = function(e) {
|
|
4098
4101
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
4099
4102
|
}, $e = function(e) {
|
|
4100
4103
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
4101
|
-
},
|
|
4104
|
+
}, Ns = function(e) {
|
|
4102
4105
|
return $e(e) && !e.shiftKey;
|
|
4103
4106
|
}, ks = function(e) {
|
|
4104
4107
|
return $e(e) && e.shiftKey;
|
|
@@ -4115,7 +4118,7 @@ var jn = {
|
|
|
4115
4118
|
returnFocusOnDeactivate: !0,
|
|
4116
4119
|
escapeDeactivates: !0,
|
|
4117
4120
|
delayInitialFocus: !0,
|
|
4118
|
-
isKeyForward:
|
|
4121
|
+
isKeyForward: Ns,
|
|
4119
4122
|
isKeyBackward: ks
|
|
4120
4123
|
}, t), r = {
|
|
4121
4124
|
// containers given to createFocusTrap()
|
|
@@ -4158,8 +4161,8 @@ var jn = {
|
|
|
4158
4161
|
return h && h[M] !== void 0 ? h[M] : i[I || M];
|
|
4159
4162
|
}, s = function(h, M) {
|
|
4160
4163
|
var I = typeof (M == null ? void 0 : M.composedPath) == "function" ? M.composedPath() : void 0;
|
|
4161
|
-
return r.containerGroups.findIndex(function(
|
|
4162
|
-
var O =
|
|
4164
|
+
return r.containerGroups.findIndex(function(T) {
|
|
4165
|
+
var O = T.container, V = T.tabbableNodes;
|
|
4163
4166
|
return O.contains(h) || // fall back to explicit tabbable search which will take into consideration any
|
|
4164
4167
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
4165
4168
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
@@ -4169,7 +4172,7 @@ var jn = {
|
|
|
4169
4172
|
});
|
|
4170
4173
|
});
|
|
4171
4174
|
}, u = function(h) {
|
|
4172
|
-
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = M.hasFallback,
|
|
4175
|
+
var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = M.hasFallback, T = I === void 0 ? !1 : I, O = M.params, V = O === void 0 ? [] : O, P = i[h];
|
|
4173
4176
|
if (typeof P == "function" && (P = P.apply(void 0, ys(V))), P === !0 && (P = void 0), !P) {
|
|
4174
4177
|
if (P === void 0 || P === !1)
|
|
4175
4178
|
return P;
|
|
@@ -4182,7 +4185,7 @@ var jn = {
|
|
|
4182
4185
|
} catch (U) {
|
|
4183
4186
|
throw new Error("`".concat(h, '` appears to be an invalid selector; error="').concat(U.message, '"'));
|
|
4184
4187
|
}
|
|
4185
|
-
if (!Z && !
|
|
4188
|
+
if (!Z && !T)
|
|
4186
4189
|
throw new Error("`".concat(h, "` as selector refers to no known node"));
|
|
4187
4190
|
}
|
|
4188
4191
|
return Z;
|
|
@@ -4205,7 +4208,7 @@ var jn = {
|
|
|
4205
4208
|
return h;
|
|
4206
4209
|
}, v = function() {
|
|
4207
4210
|
if (r.containerGroups = r.containers.map(function(h) {
|
|
4208
|
-
var M = fs(h, i.tabbableOptions), I = vs(h, i.tabbableOptions),
|
|
4211
|
+
var M = fs(h, i.tabbableOptions), I = vs(h, i.tabbableOptions), T = M.length > 0 ? M[0] : void 0, O = M.length > 0 ? M[M.length - 1] : void 0, V = I.find(function(U) {
|
|
4209
4212
|
return ze(U);
|
|
4210
4213
|
}), P = I.slice().reverse().find(function(U) {
|
|
4211
4214
|
return ze(U);
|
|
@@ -4219,7 +4222,7 @@ var jn = {
|
|
|
4219
4222
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
4220
4223
|
posTabIndexesFound: Z,
|
|
4221
4224
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
4222
|
-
firstTabbableNode:
|
|
4225
|
+
firstTabbableNode: T,
|
|
4223
4226
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
4224
4227
|
lastTabbableNode: O,
|
|
4225
4228
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -4242,12 +4245,12 @@ var jn = {
|
|
|
4242
4245
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
4243
4246
|
*/
|
|
4244
4247
|
nextTabbableNode: function(U) {
|
|
4245
|
-
var
|
|
4246
|
-
return ne < 0 ?
|
|
4248
|
+
var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, ne = M.indexOf(U);
|
|
4249
|
+
return ne < 0 ? _ ? I.slice(I.indexOf(U) + 1).find(function(oe) {
|
|
4247
4250
|
return ze(oe);
|
|
4248
4251
|
}) : I.slice(0, I.indexOf(U)).reverse().find(function(oe) {
|
|
4249
4252
|
return ze(oe);
|
|
4250
|
-
}) : M[ne + (
|
|
4253
|
+
}) : M[ne + (_ ? 1 : -1)];
|
|
4251
4254
|
}
|
|
4252
4255
|
};
|
|
4253
4256
|
}), r.tabbableGroups = r.containerGroups.filter(function(h) {
|
|
@@ -4278,7 +4281,7 @@ var jn = {
|
|
|
4278
4281
|
});
|
|
4279
4282
|
return M || (M === !1 ? !1 : h);
|
|
4280
4283
|
}, b = function(h) {
|
|
4281
|
-
var M = h.target, I = h.event,
|
|
4284
|
+
var M = h.target, I = h.event, T = h.isBackward, O = T === void 0 ? !1 : T;
|
|
4282
4285
|
M = M || it(I), v();
|
|
4283
4286
|
var V = null;
|
|
4284
4287
|
if (r.tabbableGroups.length > 0) {
|
|
@@ -4291,7 +4294,7 @@ var jn = {
|
|
|
4291
4294
|
return M === Qe;
|
|
4292
4295
|
});
|
|
4293
4296
|
if (U < 0 && (Z.container === M || zt(M, i.tabbableOptions) && !ze(M, i.tabbableOptions) && !Z.nextTabbableNode(M, !1)) && (U = P), U >= 0) {
|
|
4294
|
-
var
|
|
4297
|
+
var _ = U === 0 ? r.tabbableGroups.length - 1 : U - 1, ne = r.tabbableGroups[_];
|
|
4295
4298
|
V = we(M) >= 0 ? ne.lastTabbableNode : ne.lastDomTabbableNode;
|
|
4296
4299
|
} else $e(I) || (V = Z.nextTabbableNode(M, !1));
|
|
4297
4300
|
} else {
|
|
@@ -4300,8 +4303,8 @@ var jn = {
|
|
|
4300
4303
|
return M === Qe;
|
|
4301
4304
|
});
|
|
4302
4305
|
if (oe < 0 && (Z.container === M || zt(M, i.tabbableOptions) && !ze(M, i.tabbableOptions) && !Z.nextTabbableNode(M)) && (oe = P), oe >= 0) {
|
|
4303
|
-
var
|
|
4304
|
-
V = we(M) >= 0 ?
|
|
4306
|
+
var Ne = oe === r.tabbableGroups.length - 1 ? 0 : oe + 1, he = r.tabbableGroups[Ne];
|
|
4307
|
+
V = we(M) >= 0 ? he.firstTabbableNode : he.firstDomTabbableNode;
|
|
4305
4308
|
} else $e(I) || (V = Z.nextTabbableNode(M));
|
|
4306
4309
|
}
|
|
4307
4310
|
} else
|
|
@@ -4324,13 +4327,13 @@ var jn = {
|
|
|
4324
4327
|
}
|
|
4325
4328
|
Ye(i.allowOutsideClick, h) || h.preventDefault();
|
|
4326
4329
|
}
|
|
4327
|
-
},
|
|
4330
|
+
}, x = function(h) {
|
|
4328
4331
|
var M = it(h), I = s(M, h) >= 0;
|
|
4329
4332
|
if (I || M instanceof Document)
|
|
4330
4333
|
I && (r.mostRecentlyFocusedNode = M);
|
|
4331
4334
|
else {
|
|
4332
4335
|
h.stopImmediatePropagation();
|
|
4333
|
-
var
|
|
4336
|
+
var T, O = !0;
|
|
4334
4337
|
if (r.mostRecentlyFocusedNode)
|
|
4335
4338
|
if (we(r.mostRecentlyFocusedNode) > 0) {
|
|
4336
4339
|
var V = s(r.mostRecentlyFocusedNode), P = r.containerGroups[V].tabbableNodes;
|
|
@@ -4338,22 +4341,22 @@ var jn = {
|
|
|
4338
4341
|
var Z = P.findIndex(function(U) {
|
|
4339
4342
|
return U === r.mostRecentlyFocusedNode;
|
|
4340
4343
|
});
|
|
4341
|
-
Z >= 0 && (i.isKeyForward(r.recentNavEvent) ? Z + 1 < P.length && (
|
|
4344
|
+
Z >= 0 && (i.isKeyForward(r.recentNavEvent) ? Z + 1 < P.length && (T = P[Z + 1], O = !1) : Z - 1 >= 0 && (T = P[Z - 1], O = !1));
|
|
4342
4345
|
}
|
|
4343
4346
|
} else
|
|
4344
4347
|
r.containerGroups.some(function(U) {
|
|
4345
|
-
return U.tabbableNodes.some(function(
|
|
4346
|
-
return we(
|
|
4348
|
+
return U.tabbableNodes.some(function(_) {
|
|
4349
|
+
return we(_) > 0;
|
|
4347
4350
|
});
|
|
4348
4351
|
}) || (O = !1);
|
|
4349
4352
|
else
|
|
4350
4353
|
O = !1;
|
|
4351
|
-
O && (
|
|
4354
|
+
O && (T = b({
|
|
4352
4355
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
4353
4356
|
// outside the trap causing the focus escape we're trying to fix)
|
|
4354
4357
|
target: r.mostRecentlyFocusedNode,
|
|
4355
4358
|
isBackward: i.isKeyBackward(r.recentNavEvent)
|
|
4356
|
-
})), m(
|
|
4359
|
+
})), m(T || r.mostRecentlyFocusedNode || c());
|
|
4357
4360
|
}
|
|
4358
4361
|
r.recentNavEvent = void 0;
|
|
4359
4362
|
}, D = function(h) {
|
|
@@ -4366,16 +4369,16 @@ var jn = {
|
|
|
4366
4369
|
I && ($e(h) && h.preventDefault(), m(I));
|
|
4367
4370
|
}, k = function(h) {
|
|
4368
4371
|
(i.isKeyForward(h) || i.isKeyBackward(h)) && D(h, i.isKeyBackward(h));
|
|
4369
|
-
},
|
|
4370
|
-
|
|
4372
|
+
}, N = function(h) {
|
|
4373
|
+
Ts(h) && Ye(i.escapeDeactivates, h) !== !1 && (h.preventDefault(), l.deactivate());
|
|
4371
4374
|
}, S = function(h) {
|
|
4372
4375
|
var M = it(h);
|
|
4373
4376
|
s(M, h) >= 0 || Ye(i.clickOutsideDeactivates, h) || Ye(i.allowOutsideClick, h) || (h.preventDefault(), h.stopImmediatePropagation());
|
|
4374
|
-
},
|
|
4377
|
+
}, L = function() {
|
|
4375
4378
|
if (r.active)
|
|
4376
4379
|
return jn.activateTrap(a, l), r.delayInitialFocusTimer = i.delayInitialFocus ? Pn(function() {
|
|
4377
4380
|
m(c());
|
|
4378
|
-
}) : m(c()), n.addEventListener("focusin",
|
|
4381
|
+
}) : m(c()), n.addEventListener("focusin", x, !0), n.addEventListener("mousedown", C, {
|
|
4379
4382
|
capture: !0,
|
|
4380
4383
|
passive: !1
|
|
4381
4384
|
}), n.addEventListener("touchstart", C, {
|
|
@@ -4387,14 +4390,14 @@ var jn = {
|
|
|
4387
4390
|
}), n.addEventListener("keydown", k, {
|
|
4388
4391
|
capture: !0,
|
|
4389
4392
|
passive: !1
|
|
4390
|
-
}), n.addEventListener("keydown",
|
|
4393
|
+
}), n.addEventListener("keydown", N), l;
|
|
4391
4394
|
}, W = function() {
|
|
4392
4395
|
if (r.active)
|
|
4393
|
-
return n.removeEventListener("focusin",
|
|
4396
|
+
return n.removeEventListener("focusin", x, !0), n.removeEventListener("mousedown", C, !0), n.removeEventListener("touchstart", C, !0), n.removeEventListener("click", S, !0), n.removeEventListener("keydown", k, !0), n.removeEventListener("keydown", N), l;
|
|
4394
4397
|
}, K = function(h) {
|
|
4395
4398
|
var M = h.some(function(I) {
|
|
4396
|
-
var
|
|
4397
|
-
return
|
|
4399
|
+
var T = Array.from(I.removedNodes);
|
|
4400
|
+
return T.some(function(O) {
|
|
4398
4401
|
return O === r.mostRecentlyFocusedNode;
|
|
4399
4402
|
});
|
|
4400
4403
|
});
|
|
@@ -4417,12 +4420,12 @@ var jn = {
|
|
|
4417
4420
|
activate: function(h) {
|
|
4418
4421
|
if (r.active)
|
|
4419
4422
|
return this;
|
|
4420
|
-
var M = o(h, "onActivate"), I = o(h, "onPostActivate"),
|
|
4421
|
-
|
|
4423
|
+
var M = o(h, "onActivate"), I = o(h, "onPostActivate"), T = o(h, "checkCanFocusTrap");
|
|
4424
|
+
T || v(), r.active = !0, r.paused = !1, r.nodeFocusedBeforeActivation = n.activeElement, M == null || M();
|
|
4422
4425
|
var O = function() {
|
|
4423
|
-
|
|
4426
|
+
T && v(), L(), B(), I == null || I();
|
|
4424
4427
|
};
|
|
4425
|
-
return
|
|
4428
|
+
return T ? (T(r.containers.concat()).then(O, O), this) : (O(), this);
|
|
4426
4429
|
},
|
|
4427
4430
|
deactivate: function(h) {
|
|
4428
4431
|
if (!r.active)
|
|
@@ -4433,11 +4436,11 @@ var jn = {
|
|
|
4433
4436
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
4434
4437
|
}, h);
|
|
4435
4438
|
clearTimeout(r.delayInitialFocusTimer), r.delayInitialFocusTimer = void 0, W(), r.active = !1, r.paused = !1, B(), jn.deactivateTrap(a, l);
|
|
4436
|
-
var I = o(M, "onDeactivate"),
|
|
4439
|
+
var I = o(M, "onDeactivate"), T = o(M, "onPostDeactivate"), O = o(M, "checkCanReturnFocus"), V = o(M, "returnFocus", "returnFocusOnDeactivate");
|
|
4437
4440
|
I == null || I();
|
|
4438
4441
|
var P = function() {
|
|
4439
4442
|
Pn(function() {
|
|
4440
|
-
V && m(f(r.nodeFocusedBeforeActivation)),
|
|
4443
|
+
V && m(f(r.nodeFocusedBeforeActivation)), T == null || T();
|
|
4441
4444
|
});
|
|
4442
4445
|
};
|
|
4443
4446
|
return V && O ? (O(f(r.nodeFocusedBeforeActivation)).then(P, P), this) : (P(), this);
|
|
@@ -4465,11 +4468,11 @@ var jn = {
|
|
|
4465
4468
|
if (r.paused === h)
|
|
4466
4469
|
return this;
|
|
4467
4470
|
if (r.paused = h, h) {
|
|
4468
|
-
var I = o(M, "onPause"),
|
|
4469
|
-
I == null || I(), W(), B(),
|
|
4471
|
+
var I = o(M, "onPause"), T = o(M, "onPostPause");
|
|
4472
|
+
I == null || I(), W(), B(), T == null || T();
|
|
4470
4473
|
} else {
|
|
4471
4474
|
var O = o(M, "onUnpause"), V = o(M, "onPostUnpause");
|
|
4472
|
-
O == null || O(), v(),
|
|
4475
|
+
O == null || O(), v(), L(), B(), V == null || V();
|
|
4473
4476
|
}
|
|
4474
4477
|
return this;
|
|
4475
4478
|
}
|
|
@@ -4481,7 +4484,7 @@ var jn = {
|
|
|
4481
4484
|
* (c) 2023 Eduardo San Martin Morote
|
|
4482
4485
|
* @license MIT
|
|
4483
4486
|
*/
|
|
4484
|
-
const
|
|
4487
|
+
const Ls = {
|
|
4485
4488
|
escapeDeactivates: {
|
|
4486
4489
|
type: Boolean,
|
|
4487
4490
|
default: !0
|
|
@@ -4507,14 +4510,14 @@ const xs = {
|
|
|
4507
4510
|
preventScroll: Boolean,
|
|
4508
4511
|
setReturnFocus: [Object, String, Boolean, Function],
|
|
4509
4512
|
tabbableOptions: Object
|
|
4510
|
-
},
|
|
4513
|
+
}, xs = j({
|
|
4511
4514
|
props: Object.assign({
|
|
4512
4515
|
active: {
|
|
4513
4516
|
// TODO: could be options for activate but what about the options for deactivating?
|
|
4514
4517
|
type: Boolean,
|
|
4515
4518
|
default: !0
|
|
4516
4519
|
}
|
|
4517
|
-
},
|
|
4520
|
+
}, Ls),
|
|
4518
4521
|
emits: [
|
|
4519
4522
|
"update:active",
|
|
4520
4523
|
"activate",
|
|
@@ -4599,8 +4602,8 @@ const xs = {
|
|
|
4599
4602
|
ie(() => n.opened, (f) => {
|
|
4600
4603
|
var b, C;
|
|
4601
4604
|
f ? ((b = o.value) == null || b.showModal(), setTimeout(() => {
|
|
4602
|
-
var
|
|
4603
|
-
(
|
|
4605
|
+
var x;
|
|
4606
|
+
(x = l.value) == null || x.focus();
|
|
4604
4607
|
}, 100)) : (C = o.value) == null || C.close(), s(f);
|
|
4605
4608
|
});
|
|
4606
4609
|
function s(f) {
|
|
@@ -4624,9 +4627,9 @@ const xs = {
|
|
|
4624
4627
|
const y = E(() => typeof n.icon == "string" && n.icon.startsWith("fr-icon-")), m = E(
|
|
4625
4628
|
() => y.value ? void 0 : typeof n.icon == "string" ? { name: n.icon, scale: Wn } : { scale: Wn, ...n.icon ?? {} }
|
|
4626
4629
|
);
|
|
4627
|
-
return (f, b) => f.opened ? (A(), R(d(
|
|
4628
|
-
default:
|
|
4629
|
-
var C,
|
|
4630
|
+
return (f, b) => f.opened ? (A(), R(d(xs), { key: 0 }, {
|
|
4631
|
+
default: G(() => {
|
|
4632
|
+
var C, x;
|
|
4630
4633
|
return [
|
|
4631
4634
|
p("dialog", {
|
|
4632
4635
|
id: "fr-modal-1",
|
|
@@ -4635,13 +4638,13 @@ const xs = {
|
|
|
4635
4638
|
"aria-modal": "true",
|
|
4636
4639
|
"aria-labelledby": f.modalId,
|
|
4637
4640
|
role: r.value,
|
|
4638
|
-
class:
|
|
4641
|
+
class: H(["fr-modal", { "fr-modal--opened": f.opened }]),
|
|
4639
4642
|
open: f.opened
|
|
4640
4643
|
}, [
|
|
4641
4644
|
p("div", Qs, [
|
|
4642
4645
|
p("div", Ss, [
|
|
4643
4646
|
p("div", {
|
|
4644
|
-
class:
|
|
4647
|
+
class: H(["fr-col-12", {
|
|
4645
4648
|
"fr-col-md-8": f.size === "lg",
|
|
4646
4649
|
"fr-col-md-6": f.size === "md",
|
|
4647
4650
|
"fr-col-md-4": f.size === "sm"
|
|
@@ -4668,7 +4671,7 @@ const xs = {
|
|
|
4668
4671
|
}, [
|
|
4669
4672
|
y.value || m.value ? (A(), g("span", {
|
|
4670
4673
|
key: 0,
|
|
4671
|
-
class:
|
|
4674
|
+
class: H({
|
|
4672
4675
|
[String(f.icon)]: y.value
|
|
4673
4676
|
})
|
|
4674
4677
|
}, [
|
|
@@ -4676,11 +4679,11 @@ const xs = {
|
|
|
4676
4679
|
], 2)) : w("", !0),
|
|
4677
4680
|
le(" " + z(f.title), 1)
|
|
4678
4681
|
], 8, Ws),
|
|
4679
|
-
|
|
4682
|
+
F(f.$slots, "default", {}, void 0, !0)
|
|
4680
4683
|
]),
|
|
4681
4684
|
(C = f.actions) != null && C.length || f.$slots.footer ? (A(), g("div", Vs, [
|
|
4682
|
-
|
|
4683
|
-
(
|
|
4685
|
+
F(f.$slots, "footer", {}, void 0, !0),
|
|
4686
|
+
(x = f.actions) != null && x.length ? (A(), R($o, {
|
|
4684
4687
|
key: 0,
|
|
4685
4688
|
align: "right",
|
|
4686
4689
|
buttons: f.actions,
|
|
@@ -4698,7 +4701,7 @@ const xs = {
|
|
|
4698
4701
|
_: 3
|
|
4699
4702
|
})) : w("", !0);
|
|
4700
4703
|
}
|
|
4701
|
-
}),
|
|
4704
|
+
}), Hs = /* @__PURE__ */ Fe(Us, [["__scopeId", "data-v-70fe954b"]]), Fs = ["id", "aria-current"], qs = /* @__PURE__ */ j({
|
|
4702
4705
|
__name: "DsfrNavigationItem",
|
|
4703
4706
|
props: {
|
|
4704
4707
|
id: { default: () => Ie("nav", "item") },
|
|
@@ -4710,10 +4713,10 @@ const xs = {
|
|
|
4710
4713
|
class: "fr-nav__item",
|
|
4711
4714
|
"aria-current": t.active ? "page" : void 0
|
|
4712
4715
|
}, [
|
|
4713
|
-
|
|
4714
|
-
], 8,
|
|
4716
|
+
F(t.$slots, "default", {}, void 0, !0)
|
|
4717
|
+
], 8, Fs));
|
|
4715
4718
|
}
|
|
4716
|
-
}), Rs = /* @__PURE__ */
|
|
4719
|
+
}), Rs = /* @__PURE__ */ Fe(qs, [["__scopeId", "data-v-aa4076c4"]]), Xs = ["href"], Vn = 2, sn = /* @__PURE__ */ j({
|
|
4717
4720
|
__name: "DsfrNavigationMenuLink",
|
|
4718
4721
|
props: {
|
|
4719
4722
|
id: { default: () => Ie("menu-link") },
|
|
@@ -4727,7 +4730,7 @@ const xs = {
|
|
|
4727
4730
|
setup(e) {
|
|
4728
4731
|
const t = e, n = E(() => typeof t.to == "string" && t.to.startsWith("http")), a = E(() => t.icon && typeof t.icon == "string" && t.icon.startsWith("fr-icon-")), i = E(
|
|
4729
4732
|
() => a.value || !t.icon ? void 0 : typeof t.icon == "string" ? { scale: Vn, name: t.icon } : { scale: Vn, ...t.icon || {} }
|
|
4730
|
-
), r = Gt() ?
|
|
4733
|
+
), r = Gt() ? He(Vo) : void 0, l = (r == null ? void 0 : r()) ?? (() => {
|
|
4731
4734
|
});
|
|
4732
4735
|
return (o, s) => {
|
|
4733
4736
|
const u = Mt("RouterLink");
|
|
@@ -4741,7 +4744,7 @@ const xs = {
|
|
|
4741
4744
|
})
|
|
4742
4745
|
}, z(o.text), 9, Xs)) : (A(), R(u, {
|
|
4743
4746
|
key: 1,
|
|
4744
|
-
class:
|
|
4747
|
+
class: H(["fr-nav__link", {
|
|
4745
4748
|
[String(o.icon)]: a.value
|
|
4746
4749
|
}]),
|
|
4747
4750
|
"data-testid": "nav-router-link",
|
|
@@ -4751,7 +4754,7 @@ const xs = {
|
|
|
4751
4754
|
d(l)(), o.$emit("toggleId", o.id), (v = o.onClick) == null || v.call(o, c);
|
|
4752
4755
|
})
|
|
4753
4756
|
}, {
|
|
4754
|
-
default:
|
|
4757
|
+
default: G(() => [
|
|
4755
4758
|
o.icon && i.value ? (A(), R(Ot, Ue(te({ key: 0 }, i.value)), null, 16)) : w("", !0),
|
|
4756
4759
|
le(" " + z(o.text), 1)
|
|
4757
4760
|
]),
|
|
@@ -4777,7 +4780,7 @@ const xs = {
|
|
|
4777
4780
|
}, z(t.title), 1)
|
|
4778
4781
|
]),
|
|
4779
4782
|
p("ul", Ks, [
|
|
4780
|
-
(A(!0), g(
|
|
4783
|
+
(A(!0), g(J, null, ae(t.links, (a, i) => (A(), g("li", {
|
|
4781
4784
|
key: i,
|
|
4782
4785
|
class: "fr-nav__link"
|
|
4783
4786
|
}, [
|
|
@@ -4812,7 +4815,7 @@ const xs = {
|
|
|
4812
4815
|
o.value && r(!0);
|
|
4813
4816
|
}), (s, u) => {
|
|
4814
4817
|
const c = Mt("RouterLink");
|
|
4815
|
-
return A(), g(
|
|
4818
|
+
return A(), g(J, null, [
|
|
4816
4819
|
p("button", {
|
|
4817
4820
|
class: "fr-nav__btn",
|
|
4818
4821
|
"aria-expanded": o.value,
|
|
@@ -4825,7 +4828,7 @@ const xs = {
|
|
|
4825
4828
|
ref_key: "collapse",
|
|
4826
4829
|
ref: n,
|
|
4827
4830
|
"data-testid": "mega-menu-wrapper",
|
|
4828
|
-
class:
|
|
4831
|
+
class: H(["fr-collapse fr-mega-menu", {
|
|
4829
4832
|
"fr-collapse--expanded": d(i),
|
|
4830
4833
|
// Need to use a separate data to add/remove the class after a RAF
|
|
4831
4834
|
"fr-collapsing": d(a)
|
|
@@ -4845,21 +4848,21 @@ const xs = {
|
|
|
4845
4848
|
p("h4", ac, z(s.title), 1),
|
|
4846
4849
|
p("p", ic, [
|
|
4847
4850
|
le(z(s.description) + " ", 1),
|
|
4848
|
-
|
|
4851
|
+
F(s.$slots, "description", {}, void 0, !0)
|
|
4849
4852
|
]),
|
|
4850
4853
|
X(c, {
|
|
4851
4854
|
class: "fr-link fr-icon-arrow-right-line fr-link--icon-right fr-link--align-on-content",
|
|
4852
4855
|
to: s.link.to
|
|
4853
4856
|
}, {
|
|
4854
|
-
default:
|
|
4857
|
+
default: G(() => [
|
|
4855
4858
|
le(z(s.link.text), 1)
|
|
4856
4859
|
]),
|
|
4857
4860
|
_: 1
|
|
4858
4861
|
}, 8, ["to"])
|
|
4859
4862
|
])
|
|
4860
4863
|
]),
|
|
4861
|
-
|
|
4862
|
-
(A(!0), g(
|
|
4864
|
+
F(s.$slots, "default", {}, void 0, !0),
|
|
4865
|
+
(A(!0), g(J, null, ae(s.menus, (v, y) => (A(), R(Gs, te({
|
|
4863
4866
|
key: y,
|
|
4864
4867
|
ref_for: !0
|
|
4865
4868
|
}, v), null, 16))), 128))
|
|
@@ -4869,7 +4872,7 @@ const xs = {
|
|
|
4869
4872
|
], 64);
|
|
4870
4873
|
};
|
|
4871
4874
|
}
|
|
4872
|
-
}), lc = /* @__PURE__ */
|
|
4875
|
+
}), lc = /* @__PURE__ */ Fe(rc, [["__scopeId", "data-v-1e103394"]]), oc = ["id", "aria-current"], sc = /* @__PURE__ */ j({
|
|
4873
4876
|
__name: "DsfrNavigationMenuItem",
|
|
4874
4877
|
props: {
|
|
4875
4878
|
id: { default: () => Ie("menu", "item") },
|
|
@@ -4881,7 +4884,7 @@ const xs = {
|
|
|
4881
4884
|
class: "fr-menu__item",
|
|
4882
4885
|
"aria-current": t.active ? "page" : void 0
|
|
4883
4886
|
}, [
|
|
4884
|
-
|
|
4887
|
+
F(t.$slots, "default")
|
|
4885
4888
|
], 8, oc));
|
|
4886
4889
|
}
|
|
4887
4890
|
}), cc = ["aria-expanded", "aria-current", "aria-controls"], uc = ["id"], dc = { class: "fr-menu__list" }, Ac = /* @__PURE__ */ j({
|
|
@@ -4906,7 +4909,7 @@ const xs = {
|
|
|
4906
4909
|
s !== u && r(s);
|
|
4907
4910
|
}), ue(() => {
|
|
4908
4911
|
o.value && r(!0);
|
|
4909
|
-
}), (s, u) => (A(), g(
|
|
4912
|
+
}), (s, u) => (A(), g(J, null, [
|
|
4910
4913
|
p("button", {
|
|
4911
4914
|
class: "fr-nav__btn",
|
|
4912
4915
|
"aria-expanded": o.value,
|
|
@@ -4920,14 +4923,14 @@ const xs = {
|
|
|
4920
4923
|
id: s.id,
|
|
4921
4924
|
ref_key: "collapse",
|
|
4922
4925
|
ref: n,
|
|
4923
|
-
class:
|
|
4926
|
+
class: H(["fr-collapse fr-menu", { "fr-collapse--expanded": d(i), "fr-collapsing": d(a) }]),
|
|
4924
4927
|
"data-testid": "navigation-menu",
|
|
4925
4928
|
onTransitionend: u[2] || (u[2] = (c) => d(l)(o.value))
|
|
4926
4929
|
}, [
|
|
4927
4930
|
p("ul", dc, [
|
|
4928
|
-
|
|
4929
|
-
(A(!0), g(
|
|
4930
|
-
default:
|
|
4931
|
+
F(s.$slots, "default"),
|
|
4932
|
+
(A(!0), g(J, null, ae(s.links, (c, v) => (A(), R(sc, { key: v }, {
|
|
4933
|
+
default: G(() => [
|
|
4931
4934
|
X(sn, te({ ref_for: !0 }, c, {
|
|
4932
4935
|
onToggleId: u[1] || (u[1] = (y) => s.$emit("toggleId", s.expandedId))
|
|
4933
4936
|
}), null, 16)
|
|
@@ -4976,12 +4979,12 @@ const xs = {
|
|
|
4976
4979
|
"aria-label": o.label
|
|
4977
4980
|
}, [
|
|
4978
4981
|
p("ul", vc, [
|
|
4979
|
-
|
|
4980
|
-
(A(!0), g(
|
|
4982
|
+
F(o.$slots, "default"),
|
|
4983
|
+
(A(!0), g(J, null, ae(o.navItems, (u, c) => (A(), R(Rs, {
|
|
4981
4984
|
id: u.id,
|
|
4982
4985
|
key: c
|
|
4983
4986
|
}, {
|
|
4984
|
-
default:
|
|
4987
|
+
default: G(() => [
|
|
4985
4988
|
u.to && u.text ? (A(), R(sn, te({
|
|
4986
4989
|
key: 0,
|
|
4987
4990
|
ref_for: !0
|
|
@@ -5038,15 +5041,15 @@ const xs = {
|
|
|
5038
5041
|
);
|
|
5039
5042
|
const n = E(() => t.errorMessage || t.successMessage), a = E(() => t.errorMessage ? "error" : "valid");
|
|
5040
5043
|
return (i, r) => (A(), g("div", {
|
|
5041
|
-
class:
|
|
5044
|
+
class: H(["fr-select-group", { [`fr-select-group--${a.value}`]: n.value }])
|
|
5042
5045
|
}, [
|
|
5043
5046
|
p("label", {
|
|
5044
5047
|
class: "fr-label",
|
|
5045
5048
|
for: i.selectId
|
|
5046
5049
|
}, [
|
|
5047
|
-
|
|
5050
|
+
F(i.$slots, "label", {}, () => [
|
|
5048
5051
|
le(z(i.label) + " ", 1),
|
|
5049
|
-
|
|
5052
|
+
F(i.$slots, "required-tip", {}, () => [
|
|
5050
5053
|
i.required ? (A(), g("span", hc, " *")) : w("", !0)
|
|
5051
5054
|
])
|
|
5052
5055
|
]),
|
|
@@ -5071,7 +5074,7 @@ const xs = {
|
|
|
5071
5074
|
value: "",
|
|
5072
5075
|
hidden: ""
|
|
5073
5076
|
}, z(i.defaultUnselectedText), 9, yc),
|
|
5074
|
-
(A(!0), g(
|
|
5077
|
+
(A(!0), g(J, null, ae(i.options, (l, o) => (A(), g("option", {
|
|
5075
5078
|
key: o,
|
|
5076
5079
|
selected: i.modelValue === l || typeof l == "object" && l.value === i.modelValue,
|
|
5077
5080
|
value: typeof l == "object" ? l.value : l,
|
|
@@ -5082,11 +5085,11 @@ const xs = {
|
|
|
5082
5085
|
n.value ? (A(), g("p", {
|
|
5083
5086
|
key: 0,
|
|
5084
5087
|
id: `select-${a.value}-desc-${a.value}`,
|
|
5085
|
-
class:
|
|
5088
|
+
class: H(`fr-${a.value}-text`)
|
|
5086
5089
|
}, z(n.value), 11, Cc)) : w("", !0)
|
|
5087
5090
|
], 2));
|
|
5088
5091
|
}
|
|
5089
|
-
}), Mc = ["id", "aria-labelledby", "tabindex"],
|
|
5092
|
+
}), Mc = ["id", "aria-labelledby", "tabindex"], Tc = /* @__PURE__ */ j({
|
|
5090
5093
|
__name: "DsfrTabContent",
|
|
5091
5094
|
props: {
|
|
5092
5095
|
panelId: {},
|
|
@@ -5097,22 +5100,22 @@ const xs = {
|
|
|
5097
5100
|
"7152af7e": l.value,
|
|
5098
5101
|
"2a62e962": o.value
|
|
5099
5102
|
}));
|
|
5100
|
-
const t = e, n = { true: "100%", false: "-100%" }, a =
|
|
5103
|
+
const t = e, n = { true: "100%", false: "-100%" }, a = He(ln), { isVisible: i, asc: r } = a(Ct(() => t.tabId)), l = E(() => n[String(r == null ? void 0 : r.value)]), o = E(() => n[String(!(r != null && r.value))]);
|
|
5101
5104
|
return (s, u) => (A(), R(Ka, {
|
|
5102
5105
|
name: "slide-fade",
|
|
5103
5106
|
mode: "in-out"
|
|
5104
5107
|
}, {
|
|
5105
|
-
default:
|
|
5108
|
+
default: G(() => [
|
|
5106
5109
|
Jn(p("div", {
|
|
5107
5110
|
id: s.panelId,
|
|
5108
|
-
class:
|
|
5111
|
+
class: H(["fr-tabs__panel", {
|
|
5109
5112
|
"fr-tabs__panel--selected": d(i)
|
|
5110
5113
|
}]),
|
|
5111
5114
|
role: "tabpanel",
|
|
5112
5115
|
"aria-labelledby": s.tabId,
|
|
5113
5116
|
tabindex: d(i) ? 0 : -1
|
|
5114
5117
|
}, [
|
|
5115
|
-
|
|
5118
|
+
F(s.$slots, "default", {}, void 0, !0)
|
|
5116
5119
|
], 10, Mc), [
|
|
5117
5120
|
[Ga, d(i)]
|
|
5118
5121
|
])
|
|
@@ -5120,10 +5123,10 @@ const xs = {
|
|
|
5120
5123
|
_: 3
|
|
5121
5124
|
}));
|
|
5122
5125
|
}
|
|
5123
|
-
}), Ma = /* @__PURE__ */
|
|
5126
|
+
}), Ma = /* @__PURE__ */ Fe(Tc, [["__scopeId", "data-v-5774b16c"]]), Nc = { role: "presentation" }, kc = ["id", "data-testid", "tabindex", "aria-selected", "aria-controls"], wc = {
|
|
5124
5127
|
key: 0,
|
|
5125
5128
|
style: { "margin-left": "-0.25rem", "margin-right": "0.5rem", "font-size": "0.95rem" }
|
|
5126
|
-
},
|
|
5129
|
+
}, Ta = /* @__PURE__ */ j({
|
|
5127
5130
|
__name: "DsfrTabItem",
|
|
5128
5131
|
props: {
|
|
5129
5132
|
panelId: {},
|
|
@@ -5142,11 +5145,11 @@ const xs = {
|
|
|
5142
5145
|
const v = c == null ? void 0 : c.key, y = r[v];
|
|
5143
5146
|
y && a(y);
|
|
5144
5147
|
}
|
|
5145
|
-
const o =
|
|
5148
|
+
const o = He(ln), { isVisible: s } = o(Ct(() => n.tabId)), u = Ra("button");
|
|
5146
5149
|
return ie(s, () => {
|
|
5147
5150
|
var c;
|
|
5148
5151
|
s.value && ((c = u.value) == null || c.focus());
|
|
5149
|
-
}), (c, v) => (A(), g("li",
|
|
5152
|
+
}), (c, v) => (A(), g("li", Nc, [
|
|
5150
5153
|
p("button", te(c.$attrs, {
|
|
5151
5154
|
id: c.tabId,
|
|
5152
5155
|
ref_key: "button",
|
|
@@ -5164,11 +5167,11 @@ const xs = {
|
|
|
5164
5167
|
c.icon ? (A(), g("span", wc, [
|
|
5165
5168
|
X(Ot, { name: c.icon }, null, 8, ["name"])
|
|
5166
5169
|
])) : w("", !0),
|
|
5167
|
-
|
|
5170
|
+
F(c.$slots, "default")
|
|
5168
5171
|
], 16, kc)
|
|
5169
5172
|
]));
|
|
5170
5173
|
}
|
|
5171
|
-
}), Oc = ["aria-label"],
|
|
5174
|
+
}), Oc = ["aria-label"], Lc = /* @__PURE__ */ j({
|
|
5172
5175
|
__name: "DsfrTabs",
|
|
5173
5176
|
props: {
|
|
5174
5177
|
modelValue: { default: 0 },
|
|
@@ -5180,117 +5183,117 @@ const xs = {
|
|
|
5180
5183
|
setup(e, { expose: t, emit: n }) {
|
|
5181
5184
|
const a = e, i = n, r = q(!1), l = E({
|
|
5182
5185
|
get: () => a.modelValue,
|
|
5183
|
-
set(
|
|
5184
|
-
i("update:modelValue",
|
|
5186
|
+
set(N) {
|
|
5187
|
+
i("update:modelValue", N);
|
|
5185
5188
|
}
|
|
5186
5189
|
}), o = q(/* @__PURE__ */ new Map()), s = q(0);
|
|
5187
|
-
Et(ln, (
|
|
5190
|
+
Et(ln, (N) => {
|
|
5188
5191
|
const S = q(!0);
|
|
5189
5192
|
if (ie(l, (K, Q) => {
|
|
5190
5193
|
S.value = K > Q;
|
|
5191
|
-
}), [...o.value.values()].includes(
|
|
5192
|
-
return { isVisible: E(() => o.value.get(l.value) ===
|
|
5193
|
-
const
|
|
5194
|
-
o.value.set(
|
|
5195
|
-
const W = E(() =>
|
|
5196
|
-
return ie(
|
|
5197
|
-
o.value.set(
|
|
5194
|
+
}), [...o.value.values()].includes(N.value))
|
|
5195
|
+
return { isVisible: E(() => o.value.get(l.value) === N.value), asc: S };
|
|
5196
|
+
const L = s.value++;
|
|
5197
|
+
o.value.set(L, N.value);
|
|
5198
|
+
const W = E(() => L === l.value);
|
|
5199
|
+
return ie(N, () => {
|
|
5200
|
+
o.value.set(L, N.value);
|
|
5198
5201
|
}), ve(() => {
|
|
5199
|
-
o.value.delete(
|
|
5202
|
+
o.value.delete(L);
|
|
5200
5203
|
}), { isVisible: W };
|
|
5201
5204
|
});
|
|
5202
|
-
const u = q(null), c = q(null), v = Wt({}), y = (
|
|
5203
|
-
if (v[
|
|
5204
|
-
return v[
|
|
5205
|
+
const u = q(null), c = q(null), v = Wt({}), y = (N) => {
|
|
5206
|
+
if (v[N])
|
|
5207
|
+
return v[N];
|
|
5205
5208
|
const S = Ie("tab");
|
|
5206
|
-
return v[
|
|
5209
|
+
return v[N] = S, S;
|
|
5207
5210
|
}, m = async () => {
|
|
5208
|
-
const
|
|
5209
|
-
r.value = !1, l.value =
|
|
5211
|
+
const N = l.value === 0 ? a.tabTitles.length - 1 : l.value - 1;
|
|
5212
|
+
r.value = !1, l.value = N;
|
|
5210
5213
|
}, f = async () => {
|
|
5211
|
-
const
|
|
5212
|
-
r.value = !0, l.value =
|
|
5214
|
+
const N = l.value === a.tabTitles.length - 1 ? 0 : l.value + 1;
|
|
5215
|
+
r.value = !0, l.value = N;
|
|
5213
5216
|
}, b = async () => {
|
|
5214
5217
|
l.value = 0;
|
|
5215
5218
|
}, C = async () => {
|
|
5216
5219
|
l.value = a.tabTitles.length - 1;
|
|
5217
|
-
},
|
|
5218
|
-
var
|
|
5220
|
+
}, x = q({ "--tabs-height": "100px" }), D = () => {
|
|
5221
|
+
var N;
|
|
5219
5222
|
if (l.value < 0 || !c.value || !c.value.offsetHeight)
|
|
5220
5223
|
return;
|
|
5221
|
-
const S = c.value.offsetHeight,
|
|
5222
|
-
if (!
|
|
5224
|
+
const S = c.value.offsetHeight, L = (N = u.value) == null ? void 0 : N.querySelectorAll(".fr-tabs__panel")[l.value];
|
|
5225
|
+
if (!L || !L.offsetHeight)
|
|
5223
5226
|
return;
|
|
5224
|
-
const W =
|
|
5225
|
-
|
|
5227
|
+
const W = L.offsetHeight;
|
|
5228
|
+
x.value["--tabs-height"] = `${S + W}px`;
|
|
5226
5229
|
}, k = q(null);
|
|
5227
5230
|
return ue(() => {
|
|
5228
|
-
var
|
|
5231
|
+
var N;
|
|
5229
5232
|
window.ResizeObserver && (k.value = new window.ResizeObserver(() => {
|
|
5230
5233
|
D();
|
|
5231
|
-
})), (
|
|
5232
|
-
var
|
|
5233
|
-
S && ((
|
|
5234
|
+
})), (N = u.value) == null || N.querySelectorAll(".fr-tabs__panel").forEach((S) => {
|
|
5235
|
+
var L;
|
|
5236
|
+
S && ((L = k.value) == null || L.observe(S));
|
|
5234
5237
|
});
|
|
5235
5238
|
}), ve(() => {
|
|
5236
|
-
var
|
|
5237
|
-
(
|
|
5238
|
-
var
|
|
5239
|
-
S && ((
|
|
5239
|
+
var N;
|
|
5240
|
+
(N = u.value) == null || N.querySelectorAll(".fr-tabs__panel").forEach((S) => {
|
|
5241
|
+
var L;
|
|
5242
|
+
S && ((L = k.value) == null || L.unobserve(S));
|
|
5240
5243
|
});
|
|
5241
5244
|
}), t({
|
|
5242
5245
|
renderTabs: D,
|
|
5243
5246
|
selectFirst: b,
|
|
5244
5247
|
selectLast: C
|
|
5245
|
-
}), (
|
|
5248
|
+
}), (N, S) => (A(), g("div", {
|
|
5246
5249
|
ref_key: "$el",
|
|
5247
5250
|
ref: u,
|
|
5248
5251
|
class: "fr-tabs",
|
|
5249
|
-
style: fe(
|
|
5252
|
+
style: fe(x.value)
|
|
5250
5253
|
}, [
|
|
5251
5254
|
p("ul", {
|
|
5252
5255
|
ref_key: "tablist",
|
|
5253
5256
|
ref: c,
|
|
5254
5257
|
class: "fr-tabs__list",
|
|
5255
5258
|
role: "tablist",
|
|
5256
|
-
"aria-label":
|
|
5259
|
+
"aria-label": N.tabListName
|
|
5257
5260
|
}, [
|
|
5258
|
-
|
|
5259
|
-
(A(!0), g(
|
|
5261
|
+
F(N.$slots, "tab-items", {}, () => [
|
|
5262
|
+
(A(!0), g(J, null, ae(N.tabTitles, (L, W) => (A(), R(Ta, {
|
|
5260
5263
|
key: W,
|
|
5261
|
-
icon:
|
|
5262
|
-
"panel-id":
|
|
5263
|
-
"tab-id":
|
|
5264
|
+
icon: L.icon,
|
|
5265
|
+
"panel-id": L.panelId || `${y(W)}-panel`,
|
|
5266
|
+
"tab-id": L.tabId || y(W),
|
|
5264
5267
|
onClick: (K) => l.value = W,
|
|
5265
5268
|
onNext: S[0] || (S[0] = (K) => f()),
|
|
5266
5269
|
onPrevious: S[1] || (S[1] = (K) => m()),
|
|
5267
5270
|
onFirst: S[2] || (S[2] = (K) => b()),
|
|
5268
5271
|
onLast: S[3] || (S[3] = (K) => C())
|
|
5269
5272
|
}, {
|
|
5270
|
-
default:
|
|
5271
|
-
le(z(
|
|
5273
|
+
default: G(() => [
|
|
5274
|
+
le(z(L.title), 1)
|
|
5272
5275
|
]),
|
|
5273
5276
|
_: 2
|
|
5274
5277
|
}, 1032, ["icon", "panel-id", "tab-id", "onClick"]))), 128))
|
|
5275
5278
|
])
|
|
5276
5279
|
], 8, Oc),
|
|
5277
|
-
(A(!0), g(
|
|
5280
|
+
(A(!0), g(J, null, ae(N.tabContents, (L, W) => {
|
|
5278
5281
|
var K, Q, B, h;
|
|
5279
5282
|
return A(), R(Ma, {
|
|
5280
5283
|
key: W,
|
|
5281
|
-
"panel-id": ((Q = (K =
|
|
5282
|
-
"tab-id": ((h = (B =
|
|
5284
|
+
"panel-id": ((Q = (K = N.tabTitles) == null ? void 0 : K[W]) == null ? void 0 : Q.panelId) || `${y(W)}-panel`,
|
|
5285
|
+
"tab-id": ((h = (B = N.tabTitles) == null ? void 0 : B[W]) == null ? void 0 : h.tabId) || y(W)
|
|
5283
5286
|
}, {
|
|
5284
|
-
default:
|
|
5285
|
-
le(z(
|
|
5287
|
+
default: G(() => [
|
|
5288
|
+
le(z(L), 1)
|
|
5286
5289
|
]),
|
|
5287
5290
|
_: 2
|
|
5288
5291
|
}, 1032, ["panel-id", "tab-id"]);
|
|
5289
5292
|
}), 128)),
|
|
5290
|
-
|
|
5293
|
+
F(N.$slots, "default")
|
|
5291
5294
|
], 4));
|
|
5292
5295
|
}
|
|
5293
|
-
}),
|
|
5296
|
+
}), xc = { class: "av-accordion fr-accordion" }, Dc = { class: "fr-accordion__title" }, Qc = ["aria-expanded", "aria-controls"], Sc = { class: "title-container" }, zc = { class: "n6" }, Bc = ["id"], jc = { class: "accordion-content-container" }, Pc = /* @__PURE__ */ j({
|
|
5294
5297
|
__name: "AvAccordion",
|
|
5295
5298
|
props: {
|
|
5296
5299
|
id: { default: () => crypto.randomUUID() },
|
|
@@ -5304,7 +5307,7 @@ const xs = {
|
|
|
5304
5307
|
cssExpanded: a,
|
|
5305
5308
|
doExpand: i,
|
|
5306
5309
|
onTransitionEnd: r
|
|
5307
|
-
} = an(), l = q(), o =
|
|
5310
|
+
} = an(), l = q(), o = He(ea), { isActive: s, expand: u } = (o == null ? void 0 : o(Ct(() => e.title))) ?? {
|
|
5308
5311
|
isActive: l,
|
|
5309
5312
|
expand: () => l.value = !l.value
|
|
5310
5313
|
};
|
|
@@ -5314,7 +5317,7 @@ const xs = {
|
|
|
5314
5317
|
c !== v && i(c);
|
|
5315
5318
|
}), (c, v) => {
|
|
5316
5319
|
const y = se;
|
|
5317
|
-
return A(), g("section",
|
|
5320
|
+
return A(), g("section", xc, [
|
|
5318
5321
|
p("h3", Dc, [
|
|
5319
5322
|
p("button", {
|
|
5320
5323
|
class: "fr-accordion__btn",
|
|
@@ -5339,7 +5342,7 @@ const xs = {
|
|
|
5339
5342
|
id: e.id,
|
|
5340
5343
|
ref_key: "collapse",
|
|
5341
5344
|
ref: t,
|
|
5342
|
-
class:
|
|
5345
|
+
class: H(["fr-collapse", {
|
|
5343
5346
|
"fr-collapse--expanded": d(a),
|
|
5344
5347
|
// Need to use a separate data to add/remove the class after a RAF
|
|
5345
5348
|
"fr-collapsing": d(n)
|
|
@@ -5347,17 +5350,17 @@ const xs = {
|
|
|
5347
5350
|
onTransitionend: v[1] || (v[1] = (m) => d(r)(d(s), !1))
|
|
5348
5351
|
}, [
|
|
5349
5352
|
p("div", jc, [
|
|
5350
|
-
|
|
5353
|
+
F(c.$slots, "default", {}, void 0, !0)
|
|
5351
5354
|
])
|
|
5352
5355
|
], 42, Bc)
|
|
5353
5356
|
]);
|
|
5354
5357
|
};
|
|
5355
5358
|
}
|
|
5356
|
-
}),
|
|
5359
|
+
}), tv = /* @__PURE__ */ Y(Pc, [["__scopeId", "data-v-241b77d7"]]), Wc = {
|
|
5357
5360
|
class: "fr-accordions-group",
|
|
5358
5361
|
role: "group",
|
|
5359
5362
|
"aria-label": "Accordion group"
|
|
5360
|
-
},
|
|
5363
|
+
}, nv = /* @__PURE__ */ j({
|
|
5361
5364
|
__name: "AvAccordionsGroup",
|
|
5362
5365
|
props: {
|
|
5363
5366
|
activeAccordion: {}
|
|
@@ -5388,18 +5391,18 @@ const xs = {
|
|
|
5388
5391
|
r.value.delete(s);
|
|
5389
5392
|
}), { isActive: u, expand: c };
|
|
5390
5393
|
}), (o, s) => (A(), g("div", Wc, [
|
|
5391
|
-
|
|
5394
|
+
F(o.$slots, "default")
|
|
5392
5395
|
]));
|
|
5393
5396
|
}
|
|
5394
5397
|
}), Vc = { class: "av-cancel-confirm-buttons-container" }, Uc = /* @__PURE__ */ j({
|
|
5395
5398
|
__name: "AvCancelConfirmButtons",
|
|
5396
5399
|
props: {
|
|
5397
5400
|
cancelLabel: {},
|
|
5398
|
-
cancelIcon: { default: () =>
|
|
5401
|
+
cancelIcon: { default: () => $.CLOSE_CIRCLE_OUTLINE },
|
|
5399
5402
|
cancelDisabled: { type: Boolean },
|
|
5400
5403
|
cancelIsLoading: { type: Boolean },
|
|
5401
5404
|
confirmLabel: {},
|
|
5402
|
-
confirmIcon: { default: () =>
|
|
5405
|
+
confirmIcon: { default: () => $.CLOSE_CIRCLE_OUTLINE },
|
|
5403
5406
|
confirmDisabled: { type: Boolean },
|
|
5404
5407
|
confirmIsLoading: { type: Boolean }
|
|
5405
5408
|
},
|
|
@@ -5407,7 +5410,7 @@ const xs = {
|
|
|
5407
5410
|
setup(e, { emit: t }) {
|
|
5408
5411
|
const n = t;
|
|
5409
5412
|
return (a, i) => (A(), g("div", Vc, [
|
|
5410
|
-
e.cancelLabel ? (A(), R(d(
|
|
5413
|
+
e.cancelLabel ? (A(), R(d(me), {
|
|
5411
5414
|
key: 0,
|
|
5412
5415
|
icon: e.cancelIcon,
|
|
5413
5416
|
label: e.cancelLabel,
|
|
@@ -5418,7 +5421,7 @@ const xs = {
|
|
|
5418
5421
|
size: "sm",
|
|
5419
5422
|
onClick: i[0] || (i[0] = () => n("cancel"))
|
|
5420
5423
|
}, null, 8, ["icon", "label", "title", "is-loading", "disabled"])) : w("", !0),
|
|
5421
|
-
e.confirmLabel ? (A(), R(d(
|
|
5424
|
+
e.confirmLabel ? (A(), R(d(me), {
|
|
5422
5425
|
key: 1,
|
|
5423
5426
|
icon: e.confirmIcon,
|
|
5424
5427
|
label: e.confirmLabel,
|
|
@@ -5431,7 +5434,7 @@ const xs = {
|
|
|
5431
5434
|
}, null, 8, ["icon", "label", "title", "is-loading", "disabled"])) : w("", !0)
|
|
5432
5435
|
]));
|
|
5433
5436
|
}
|
|
5434
|
-
}),
|
|
5437
|
+
}), Hc = /* @__PURE__ */ Y(Uc, [["__scopeId", "data-v-b2b6579f"]]), Fc = ["title", "aria-label"], qc = { class: "av-rich-button__line" }, Rc = { class: "av-rich-button__left" }, Xc = /* @__PURE__ */ j({
|
|
5435
5438
|
__name: "AvRichButton",
|
|
5436
5439
|
props: {
|
|
5437
5440
|
label: {},
|
|
@@ -5460,7 +5463,7 @@ const xs = {
|
|
|
5460
5463
|
color: "var(--dark-background-primary1)",
|
|
5461
5464
|
size: 1.5
|
|
5462
5465
|
}, null, 8, ["name"])) : w("", !0),
|
|
5463
|
-
|
|
5466
|
+
F(t.$slots, "default", {}, void 0, !0)
|
|
5464
5467
|
]),
|
|
5465
5468
|
e.iconRight ? (A(), R(se, {
|
|
5466
5469
|
key: 0,
|
|
@@ -5469,9 +5472,9 @@ const xs = {
|
|
|
5469
5472
|
size: 1.5
|
|
5470
5473
|
}, null, 8, ["name"])) : w("", !0)
|
|
5471
5474
|
])
|
|
5472
|
-
], 8,
|
|
5475
|
+
], 8, Fc));
|
|
5473
5476
|
}
|
|
5474
|
-
}),
|
|
5477
|
+
}), av = /* @__PURE__ */ Y(Xc, [["__scopeId", "data-v-5907eac1"]]), Zc = ["id", "name", "value", "checked", "required", "data-testid", "data-test", "tabindex", "aria-describedby"], Yc = ["for"], Kc = { class: "label-container" }, Gc = {
|
|
5475
5478
|
key: 0,
|
|
5476
5479
|
class: "fr-hint-text"
|
|
5477
5480
|
}, Jc = ["id"], $c = /* @__PURE__ */ j({
|
|
@@ -5496,17 +5499,17 @@ const xs = {
|
|
|
5496
5499
|
}),
|
|
5497
5500
|
emits: ["update:modelValue"],
|
|
5498
5501
|
setup(e) {
|
|
5499
|
-
const t = E(() => e.errorMessage || e.validMessage), n = E(() => t.value ? `message-${e.id}` : void 0), a = E(() => e.errorMessage ? "fr-error-text" : "fr-valid-text"), i = Pe(e, "modelValue"), r = E(() => i.value.includes(e.value)), l = E(() => r.value ?
|
|
5502
|
+
const t = E(() => e.errorMessage || e.validMessage), n = E(() => t.value ? `message-${e.id}` : void 0), a = E(() => e.errorMessage ? "fr-error-text" : "fr-valid-text"), i = Pe(e, "modelValue"), r = E(() => i.value.includes(e.value)), l = E(() => r.value ? $.CHECKBOX_MARKED : $.CHECKBOX_BLANK_OUTLINE), o = E(() => r.value ? "var(--dark-background-primary1)" : "var(--icon)"), s = E(() => e.small ? 1 : 1.5), u = E(() => e.small ? r.value ? "caption-bold" : "caption-regular" : r.value ? "b2-bold" : "b2-regular");
|
|
5500
5503
|
return (c, v) => {
|
|
5501
5504
|
const y = se;
|
|
5502
5505
|
return A(), g("div", {
|
|
5503
|
-
class:
|
|
5506
|
+
class: H(["fr-fieldset__element", {
|
|
5504
5507
|
"fr-fieldset__element--inline": e.inline,
|
|
5505
5508
|
"fr-fieldset__element--disabled": e.disabled
|
|
5506
5509
|
}])
|
|
5507
5510
|
}, [
|
|
5508
5511
|
p("div", {
|
|
5509
|
-
class:
|
|
5512
|
+
class: H(["fr-checkbox-group", {
|
|
5510
5513
|
"fr-checkbox-group--error": e.errorMessage,
|
|
5511
5514
|
"fr-checkbox-group--valid": !e.errorMessage && e.validMessage,
|
|
5512
5515
|
"fr-checkbox-group--sm": e.small
|
|
@@ -5547,11 +5550,11 @@ const xs = {
|
|
|
5547
5550
|
size: d(s)
|
|
5548
5551
|
}, null, 8, ["name", "color", "size"])) : w("", !0),
|
|
5549
5552
|
p("span", {
|
|
5550
|
-
class:
|
|
5553
|
+
class: H(["label", d(u)])
|
|
5551
5554
|
}, z(e.label), 3),
|
|
5552
5555
|
e.required ? (A(), g("span", {
|
|
5553
5556
|
key: 1,
|
|
5554
|
-
class:
|
|
5557
|
+
class: H(["required", d(u)])
|
|
5555
5558
|
}, " *", 2)) : w("", !0)
|
|
5556
5559
|
]),
|
|
5557
5560
|
e.hint ? (A(), g("span", Gc, z(e.hint), 1)) : w("", !0)
|
|
@@ -5564,7 +5567,7 @@ const xs = {
|
|
|
5564
5567
|
role: "alert"
|
|
5565
5568
|
}, [
|
|
5566
5569
|
p("p", {
|
|
5567
|
-
class:
|
|
5570
|
+
class: H(["fr-message--info flex items-center", d(a)])
|
|
5568
5571
|
}, z(d(t)), 3)
|
|
5569
5572
|
], 8, Jc)) : w("", !0)
|
|
5570
5573
|
], 2)
|
|
@@ -5584,7 +5587,7 @@ const xs = {
|
|
|
5584
5587
|
setup(e) {
|
|
5585
5588
|
return (t, n) => e.error || e.validMessage ? (A(), g("div", eu, [
|
|
5586
5589
|
X(Ar, {
|
|
5587
|
-
icon: e.error ? d(
|
|
5590
|
+
icon: e.error ? d($).CLOSE_CIRCLE_OUTLINE : d($).CHECK_CIRCLE_OUTLINE,
|
|
5588
5591
|
"icon-color": e.error ? "var(--dark-background-error)" : "var(--dark-background-success)",
|
|
5589
5592
|
text: e.error ? e.error : e.validMessage,
|
|
5590
5593
|
"text-color": e.error ? "var(--dark-background-error)" : "var(--dark-background-success)",
|
|
@@ -5665,20 +5668,20 @@ const xs = {
|
|
|
5665
5668
|
var f;
|
|
5666
5669
|
m ? (n("update:modelValue", null), n("update:validMessage", null), n("update:error", null), n("change", [])) : (f = e.onDeleteFile) == null || f.call(e);
|
|
5667
5670
|
}
|
|
5668
|
-
return (m, f) => (A(), g(
|
|
5671
|
+
return (m, f) => (A(), g(J, null, [
|
|
5669
5672
|
(A(), R(Ce(d(c) ? "div" : "label"), te(d(c) ? {} : d(v), {
|
|
5670
5673
|
class: d(c) ? "file-preview-container" : ""
|
|
5671
5674
|
}), {
|
|
5672
|
-
default:
|
|
5675
|
+
default: G(() => [
|
|
5673
5676
|
p("div", {
|
|
5674
|
-
class:
|
|
5677
|
+
class: H(d(c) ? "" : "file-upload-container")
|
|
5675
5678
|
}, [
|
|
5676
5679
|
p("div", nu, [
|
|
5677
5680
|
p("div", au, [
|
|
5678
|
-
|
|
5681
|
+
F(m.$slots, "left", {}, () => [
|
|
5679
5682
|
X(se, {
|
|
5680
5683
|
size: 2.5,
|
|
5681
|
-
name: d(
|
|
5684
|
+
name: d($).ATTACHMENT_PLUS,
|
|
5682
5685
|
color: "var(--icon)"
|
|
5683
5686
|
}, null, 8, ["name"])
|
|
5684
5687
|
], !0)
|
|
@@ -5696,7 +5699,7 @@ const xs = {
|
|
|
5696
5699
|
}, null, 8, ["valid-message", "error"])
|
|
5697
5700
|
]),
|
|
5698
5701
|
e.disabled ? w("", !0) : (A(), g("div", uu, [
|
|
5699
|
-
d(c) ? (A(), R(
|
|
5702
|
+
d(c) ? (A(), R(me, {
|
|
5700
5703
|
key: 0,
|
|
5701
5704
|
label: e.deleteButtonLabel,
|
|
5702
5705
|
theme: "SECONDARY",
|
|
@@ -5704,7 +5707,7 @@ const xs = {
|
|
|
5704
5707
|
}, null, 8, ["label"])) : (A(), R(se, {
|
|
5705
5708
|
key: 1,
|
|
5706
5709
|
size: 1.5,
|
|
5707
|
-
name: d(
|
|
5710
|
+
name: d($).TRAY_UPLOAD,
|
|
5708
5711
|
color: "var(--dark-background-primary1)"
|
|
5709
5712
|
}, null, 8, ["name"]))
|
|
5710
5713
|
])),
|
|
@@ -5726,11 +5729,11 @@ const xs = {
|
|
|
5726
5729
|
_: 3
|
|
5727
5730
|
}, 16, ["class"])),
|
|
5728
5731
|
p("span", Au, [
|
|
5729
|
-
|
|
5732
|
+
F(m.$slots, "hint", {}, void 0, !0)
|
|
5730
5733
|
])
|
|
5731
5734
|
], 64));
|
|
5732
5735
|
}
|
|
5733
|
-
}),
|
|
5736
|
+
}), iv = /* @__PURE__ */ Y(fu, [["__scopeId", "data-v-adf6887e"]]), vu = ["role", "aria-label", "aria-labelledby", "aria-describedby"], mu = /* @__PURE__ */ j({
|
|
5734
5737
|
__name: "AvList",
|
|
5735
5738
|
props: {
|
|
5736
5739
|
backgroundColor: { default: "transparent" },
|
|
@@ -5754,16 +5757,16 @@ const xs = {
|
|
|
5754
5757
|
}));
|
|
5755
5758
|
const t = E(() => `av-list--${e.size}`), n = E(() => e.bordered ? "av-list--bordered" : ""), a = E(() => e.divided ? "av-list--divided" : "");
|
|
5756
5759
|
return (i, r) => (A(), g("div", {
|
|
5757
|
-
class:
|
|
5760
|
+
class: H(["av-list", [d(t), d(n), d(a)]]),
|
|
5758
5761
|
role: e.role,
|
|
5759
5762
|
"aria-label": e.ariaLabel,
|
|
5760
5763
|
"aria-labelledby": e.ariaLabelledby,
|
|
5761
5764
|
"aria-describedby": e.ariaDescribedby
|
|
5762
5765
|
}, [
|
|
5763
|
-
|
|
5766
|
+
F(i.$slots, "default", {}, void 0, !0)
|
|
5764
5767
|
], 10, vu));
|
|
5765
5768
|
}
|
|
5766
|
-
}),
|
|
5769
|
+
}), Na = /* @__PURE__ */ Y(mu, [["__scopeId", "data-v-f74989f7"]]), gu = ["role"], hu = {
|
|
5767
5770
|
key: 0,
|
|
5768
5771
|
class: "av-list-item__icon"
|
|
5769
5772
|
}, bu = { class: "av-list-item__content" }, Iu = {
|
|
@@ -5803,7 +5806,7 @@ const xs = {
|
|
|
5803
5806
|
b9991e40: u.descriptionColor,
|
|
5804
5807
|
v547ba992: u.hoverBackgroundColor
|
|
5805
5808
|
}));
|
|
5806
|
-
const t =
|
|
5809
|
+
const t = ge(), n = E(() => e.clickable ? e.tag : "div"), a = E(() => e.ariaLabel ? e.ariaLabel : e.title && e.description ? `${e.title}, ${e.description}` : e.title || e.description || void 0);
|
|
5807
5810
|
function i(u) {
|
|
5808
5811
|
var c;
|
|
5809
5812
|
!e.clickable || e.disabled || (c = e.onClick) == null || c.call(e, u);
|
|
@@ -5822,7 +5825,7 @@ const xs = {
|
|
|
5822
5825
|
const l = E(() => e.clickable ? "av-list-item--clickable" : ""), o = E(() => e.disabled ? "av-list-item--disabled" : ""), s = E(() => e.selected ? "av-list-item--selected" : "");
|
|
5823
5826
|
return (u, c) => (A(), g("div", { role: e.role }, [
|
|
5824
5827
|
(A(), R(Ce(d(n)), {
|
|
5825
|
-
class:
|
|
5828
|
+
class: H(["av-list-item", [d(l), d(o), d(s)]]),
|
|
5826
5829
|
tabindex: e.clickable && !e.disabled ? 0 : void 0,
|
|
5827
5830
|
"aria-label": e.clickable ? d(a) : void 0,
|
|
5828
5831
|
"aria-describedby": e.ariaDescribedby,
|
|
@@ -5834,7 +5837,7 @@ const xs = {
|
|
|
5834
5837
|
onClick: i,
|
|
5835
5838
|
onKeydown: r
|
|
5836
5839
|
}, {
|
|
5837
|
-
default:
|
|
5840
|
+
default: G(() => [
|
|
5838
5841
|
e.icon ? (A(), g("div", hu, [
|
|
5839
5842
|
X(se, {
|
|
5840
5843
|
name: e.icon,
|
|
@@ -5846,7 +5849,7 @@ const xs = {
|
|
|
5846
5849
|
e.title ? (A(), g("div", Iu, z(e.title), 1)) : w("", !0),
|
|
5847
5850
|
e.description ? (A(), g("div", yu, z(e.description), 1)) : w("", !0),
|
|
5848
5851
|
t.default ? (A(), g("div", pu, [
|
|
5849
|
-
|
|
5852
|
+
F(u.$slots, "default", {}, void 0, !0)
|
|
5850
5853
|
])) : w("", !0)
|
|
5851
5854
|
])
|
|
5852
5855
|
]),
|
|
@@ -5886,11 +5889,11 @@ const xs = {
|
|
|
5886
5889
|
}
|
|
5887
5890
|
function y(b) {
|
|
5888
5891
|
l ? (v(b) ? c.value = c.value.filter(
|
|
5889
|
-
(
|
|
5892
|
+
(x) => x.value !== b.value
|
|
5890
5893
|
) : c.value.push(b), o([...c.value])) : (c.value = [b], o(b));
|
|
5891
5894
|
}
|
|
5892
5895
|
function m(b) {
|
|
5893
|
-
return v(b) ?
|
|
5896
|
+
return v(b) ? $.CHECK : void 0;
|
|
5894
5897
|
}
|
|
5895
5898
|
function f(b) {
|
|
5896
5899
|
return v(b) && !l;
|
|
@@ -5900,35 +5903,35 @@ const xs = {
|
|
|
5900
5903
|
}, { immediate: !0 }), (b, C) => (A(), g("div", Eu, [
|
|
5901
5904
|
d(n) ? (A(), g("span", {
|
|
5902
5905
|
key: 0,
|
|
5903
|
-
class:
|
|
5906
|
+
class: H(["av-select-label", [d(i)]])
|
|
5904
5907
|
}, z(d(n)), 3)) : w("", !0),
|
|
5905
|
-
(A(!0), g(
|
|
5906
|
-
key:
|
|
5908
|
+
(A(!0), g(J, null, ae(d(s), (x) => (A(), g("div", {
|
|
5909
|
+
key: x.value,
|
|
5907
5910
|
class: "tag-wrapper"
|
|
5908
5911
|
}, [
|
|
5909
5912
|
X(rr, {
|
|
5910
|
-
class:
|
|
5911
|
-
"fr-tag--selected": v(
|
|
5912
|
-
"fr-tag--disabled": f(
|
|
5913
|
+
class: H({
|
|
5914
|
+
"fr-tag--selected": v(x),
|
|
5915
|
+
"fr-tag--disabled": f(x)
|
|
5913
5916
|
}),
|
|
5914
|
-
label:
|
|
5915
|
-
icon: m(
|
|
5916
|
-
disabled: f(
|
|
5917
|
+
label: x.label,
|
|
5918
|
+
icon: m(x),
|
|
5919
|
+
disabled: f(x),
|
|
5917
5920
|
selectable: "",
|
|
5918
|
-
selected: v(
|
|
5919
|
-
onSelect: () => y(
|
|
5921
|
+
selected: v(x),
|
|
5922
|
+
onSelect: () => y(x)
|
|
5920
5923
|
}, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
|
|
5921
5924
|
]))), 128))
|
|
5922
5925
|
]));
|
|
5923
5926
|
}
|
|
5924
|
-
}),
|
|
5927
|
+
}), Tu = /* @__PURE__ */ Y(Mu, [["__scopeId", "data-v-109d63a2"]]);
|
|
5925
5928
|
var wa = /* @__PURE__ */ ((e) => (e[e.FOUR = 4] = "FOUR", e[e.EIGHT = 8] = "EIGHT", e[e.TWELVE = 12] = "TWELVE", e))(wa || {});
|
|
5926
|
-
const
|
|
5929
|
+
const rv = [
|
|
5927
5930
|
4,
|
|
5928
5931
|
8,
|
|
5929
5932
|
12
|
|
5930
5933
|
/* TWELVE */
|
|
5931
|
-
],
|
|
5934
|
+
], Nu = { class: "pagination-size-picker-container" }, ku = /* @__PURE__ */ j({
|
|
5932
5935
|
__name: "AvPageSizePicker",
|
|
5933
5936
|
props: {
|
|
5934
5937
|
label: {},
|
|
@@ -5943,8 +5946,8 @@ const nv = [
|
|
|
5943
5946
|
label: e.pageSizeSelected.toString(),
|
|
5944
5947
|
value: e.pageSizeSelected.toString()
|
|
5945
5948
|
}));
|
|
5946
|
-
return (a, i) => (A(), g("div",
|
|
5947
|
-
X(
|
|
5949
|
+
return (a, i) => (A(), g("div", Nu, [
|
|
5950
|
+
X(Tu, {
|
|
5948
5951
|
options: d(t),
|
|
5949
5952
|
selected: d(n),
|
|
5950
5953
|
"handle-select-change": e.handleSelectChange,
|
|
@@ -5955,7 +5958,7 @@ const nv = [
|
|
|
5955
5958
|
}, null, 8, ["options", "selected", "handle-select-change", "label"])
|
|
5956
5959
|
]));
|
|
5957
5960
|
}
|
|
5958
|
-
}),
|
|
5961
|
+
}), lv = /* @__PURE__ */ Y(ku, [["__scopeId", "data-v-d72fe5ab"]]), wu = /* @__PURE__ */ j({
|
|
5959
5962
|
__name: "AvRadioButton",
|
|
5960
5963
|
props: {
|
|
5961
5964
|
value: { type: [String, Number, Boolean] },
|
|
@@ -5964,9 +5967,9 @@ const nv = [
|
|
|
5964
5967
|
disabled: { type: Boolean }
|
|
5965
5968
|
},
|
|
5966
5969
|
setup(e) {
|
|
5967
|
-
return (t, n) =>
|
|
5970
|
+
return (t, n) => F(t.$slots, "default");
|
|
5968
5971
|
}
|
|
5969
|
-
}), Ou = ["id", "name", "value", "checked", "disabled"],
|
|
5972
|
+
}), Ou = ["id", "name", "value", "checked", "disabled"], Lu = ["for"], xu = /* @__PURE__ */ j({
|
|
5970
5973
|
__name: "RadioButton",
|
|
5971
5974
|
props: {
|
|
5972
5975
|
value: { type: [String, Number, Boolean] },
|
|
@@ -5980,10 +5983,10 @@ const nv = [
|
|
|
5980
5983
|
setup(e, { emit: t }) {
|
|
5981
5984
|
const n = t, a = q(`av-radio-button-${crypto.randomUUID()}`);
|
|
5982
5985
|
return (i, r) => (A(), g("div", {
|
|
5983
|
-
class:
|
|
5986
|
+
class: H(["fr-fieldset__element", { "fr-fieldset__element--inline": e.inline }])
|
|
5984
5987
|
}, [
|
|
5985
5988
|
p("div", {
|
|
5986
|
-
class:
|
|
5989
|
+
class: H(["fr-radio-group", {
|
|
5987
5990
|
"fr-radio-group--sm": e.small
|
|
5988
5991
|
}])
|
|
5989
5992
|
}, [
|
|
@@ -6001,8 +6004,8 @@ const nv = [
|
|
|
6001
6004
|
for: d(a),
|
|
6002
6005
|
class: "fr-label"
|
|
6003
6006
|
}, [
|
|
6004
|
-
|
|
6005
|
-
], 8,
|
|
6007
|
+
F(i.$slots, "default")
|
|
6008
|
+
], 8, Lu)
|
|
6006
6009
|
], 2)
|
|
6007
6010
|
], 2));
|
|
6008
6011
|
}
|
|
@@ -6012,7 +6015,7 @@ const nv = [
|
|
|
6012
6015
|
}, ju = {
|
|
6013
6016
|
key: 1,
|
|
6014
6017
|
class: "caption-regular required"
|
|
6015
|
-
}, Pu = ["id"],
|
|
6018
|
+
}, Pu = ["id"], ov = /* @__PURE__ */ j({
|
|
6016
6019
|
__name: "AvRadioButtonSet",
|
|
6017
6020
|
props: {
|
|
6018
6021
|
id: { default: `av-radio-button-set-${crypto.randomUUID()}` },
|
|
@@ -6033,12 +6036,12 @@ const nv = [
|
|
|
6033
6036
|
function l(m) {
|
|
6034
6037
|
m !== e.modelValue && a("update:modelValue", m);
|
|
6035
6038
|
}
|
|
6036
|
-
const o = E(() => i.value ? `messages-${e.id}` : void 0), s =
|
|
6039
|
+
const o = E(() => i.value ? `messages-${e.id}` : void 0), s = ge();
|
|
6037
6040
|
function u(m) {
|
|
6038
6041
|
return m != null && typeof m == "object" && "type" in m && m.type === wu;
|
|
6039
6042
|
}
|
|
6040
6043
|
function c(m) {
|
|
6041
|
-
return m ? m.flatMap((f) => !f || typeof f != "object" || !("type" in f) ? [] : f.type ===
|
|
6044
|
+
return m ? m.flatMap((f) => !f || typeof f != "object" || !("type" in f) ? [] : f.type === J && Array.isArray(f.children) ? c(f.children) : u(f) ? [f] : []) : [];
|
|
6042
6045
|
}
|
|
6043
6046
|
const v = E(() => {
|
|
6044
6047
|
var m;
|
|
@@ -6050,7 +6053,7 @@ const nv = [
|
|
|
6050
6053
|
m && a("update:modelValue", m);
|
|
6051
6054
|
}), t({ selected: y }), (m, f) => (A(), g("div", Du, [
|
|
6052
6055
|
p("fieldset", {
|
|
6053
|
-
class:
|
|
6056
|
+
class: H(["fr-fieldset", {
|
|
6054
6057
|
"fr-fieldset--error": e.errorMessage,
|
|
6055
6058
|
"fr-fieldset--valid": e.validMessage
|
|
6056
6059
|
}]),
|
|
@@ -6068,22 +6071,22 @@ const nv = [
|
|
|
6068
6071
|
e.hint ? (A(), g("span", Bu, z(e.hint), 1)) : w("", !0),
|
|
6069
6072
|
e.required ? (A(), g("span", ju, " *")) : w("", !0)
|
|
6070
6073
|
], 8, Su)) : w("", !0),
|
|
6071
|
-
(A(!0), g(
|
|
6072
|
-
var
|
|
6073
|
-
return A(), R(
|
|
6074
|
+
(A(!0), g(J, null, ae(d(v), (b, C) => {
|
|
6075
|
+
var x, D;
|
|
6076
|
+
return A(), R(xu, {
|
|
6074
6077
|
key: C,
|
|
6075
6078
|
modelValue: d(y),
|
|
6076
6079
|
"onUpdate:modelValue": [
|
|
6077
|
-
f[0] || (f[0] = (k) =>
|
|
6080
|
+
f[0] || (f[0] = (k) => Tt(y) ? y.value = k : null),
|
|
6078
6081
|
f[1] || (f[1] = (k) => l(k))
|
|
6079
6082
|
],
|
|
6080
|
-
value: (
|
|
6083
|
+
value: (x = b.props) == null ? void 0 : x.value,
|
|
6081
6084
|
disabled: ((D = b.props) == null ? void 0 : D.disabled) ?? e.disabled,
|
|
6082
6085
|
small: e.small,
|
|
6083
6086
|
inline: e.inline,
|
|
6084
6087
|
name: e.name
|
|
6085
6088
|
}, {
|
|
6086
|
-
default:
|
|
6089
|
+
default: G(() => {
|
|
6087
6090
|
var k;
|
|
6088
6091
|
return [
|
|
6089
6092
|
(A(), R(Ce((k = b.children) == null ? void 0 : k.default)))
|
|
@@ -6100,7 +6103,7 @@ const nv = [
|
|
|
6100
6103
|
role: "alert"
|
|
6101
6104
|
}, [
|
|
6102
6105
|
p("p", {
|
|
6103
|
-
class:
|
|
6106
|
+
class: H(["fr-message fr-message--info flex items-center", d(r)])
|
|
6104
6107
|
}, z(d(i)), 3)
|
|
6105
6108
|
], 8, Pu)) : w("", !0)
|
|
6106
6109
|
], 10, Qu)
|
|
@@ -6110,12 +6113,12 @@ const nv = [
|
|
|
6110
6113
|
var je = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.NO_OPTIONS = "no-options", e.HAS_OPTIONS = "has-options", e))(je || {});
|
|
6111
6114
|
const Oa = Symbol("AvAutocompleteContext");
|
|
6112
6115
|
function cn() {
|
|
6113
|
-
const e =
|
|
6116
|
+
const e = He(Oa);
|
|
6114
6117
|
if (!e)
|
|
6115
6118
|
throw new Error("useAutocompleteContext must be used within AvAutocomplete component");
|
|
6116
6119
|
return e;
|
|
6117
6120
|
}
|
|
6118
|
-
function
|
|
6121
|
+
function La(e) {
|
|
6119
6122
|
return $a() ? (_a(e), !0) : !1;
|
|
6120
6123
|
}
|
|
6121
6124
|
const Bt = /* @__PURE__ */ new WeakMap(), Wu = /* @__NO_SIDE_EFFECTS__ */ (...e) => {
|
|
@@ -6123,12 +6126,12 @@ const Bt = /* @__PURE__ */ new WeakMap(), Wu = /* @__NO_SIDE_EFFECTS__ */ (...e)
|
|
|
6123
6126
|
const n = e[0], a = (t = $t()) == null ? void 0 : t.proxy;
|
|
6124
6127
|
if (a == null && !Gt())
|
|
6125
6128
|
throw new Error("injectLocal must be called in setup");
|
|
6126
|
-
return a && Bt.has(a) && n in Bt.get(a) ? Bt.get(a)[n] :
|
|
6129
|
+
return a && Bt.has(a) && n in Bt.get(a) ? Bt.get(a)[n] : He(...e);
|
|
6127
6130
|
}, Vu = typeof window < "u" && typeof document < "u";
|
|
6128
6131
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
6129
|
-
const Uu = (e) => e != null,
|
|
6132
|
+
const Uu = (e) => e != null, Hu = Object.prototype.toString, Fu = (e) => Hu.call(e) === "[object Object]", Ve = () => {
|
|
6130
6133
|
};
|
|
6131
|
-
function
|
|
6134
|
+
function xa(e, t) {
|
|
6132
6135
|
function n(...a) {
|
|
6133
6136
|
return new Promise((i, r) => {
|
|
6134
6137
|
Promise.resolve(e(() => t.apply(this, a), { fn: t, thisArg: this, args: a })).then(i).catch(r);
|
|
@@ -6155,14 +6158,14 @@ function qu(e, t = {}) {
|
|
|
6155
6158
|
}
|
|
6156
6159
|
function Ru(...e) {
|
|
6157
6160
|
let t = 0, n, a = !0, i = Ve, r, l, o, s, u;
|
|
6158
|
-
!
|
|
6161
|
+
!Tt(e[0]) && typeof e[0] == "object" ? { delay: l, trailing: o = !0, leading: s = !0, rejectOnCancel: u = !1 } = e[0] : [l, o = !0, s = !0, u = !1] = e;
|
|
6159
6162
|
const c = () => {
|
|
6160
6163
|
n && (clearTimeout(n), n = void 0, i(), i = Ve);
|
|
6161
6164
|
};
|
|
6162
6165
|
return (y) => {
|
|
6163
6166
|
const m = re(l), f = Date.now() - t, b = () => r = y();
|
|
6164
|
-
return c(), m <= 0 ? (t = Date.now(), b()) : (f > m && (s || !a) ? (t = Date.now(), b()) : o && (r = new Promise((C,
|
|
6165
|
-
i = u ?
|
|
6167
|
+
return c(), m <= 0 ? (t = Date.now(), b()) : (f > m && (s || !a) ? (t = Date.now(), b()) : o && (r = new Promise((C, x) => {
|
|
6168
|
+
i = u ? x : C, n = setTimeout(() => {
|
|
6166
6169
|
t = Date.now(), a = !0, C(b()), c();
|
|
6167
6170
|
}, Math.max(0, m - f));
|
|
6168
6171
|
})), !s && !n && (n = setTimeout(() => a = !0, m)), a = !1, r);
|
|
@@ -6186,14 +6189,14 @@ function Zu(e) {
|
|
|
6186
6189
|
}
|
|
6187
6190
|
// @__NO_SIDE_EFFECTS__
|
|
6188
6191
|
function Yu(e, t = 200, n = {}) {
|
|
6189
|
-
return
|
|
6192
|
+
return xa(
|
|
6190
6193
|
qu(t, n),
|
|
6191
6194
|
e
|
|
6192
6195
|
);
|
|
6193
6196
|
}
|
|
6194
6197
|
// @__NO_SIDE_EFFECTS__
|
|
6195
6198
|
function Ku(e, t = 200, n = !1, a = !0, i = !1) {
|
|
6196
|
-
return
|
|
6199
|
+
return xa(
|
|
6197
6200
|
Ru(t, n, a, i),
|
|
6198
6201
|
e
|
|
6199
6202
|
);
|
|
@@ -6237,7 +6240,7 @@ function Xt(...e) {
|
|
|
6237
6240
|
([o, s, u, c]) => {
|
|
6238
6241
|
if (n(), !(o != null && o.length) || !(s != null && s.length) || !(u != null && u.length))
|
|
6239
6242
|
return;
|
|
6240
|
-
const v =
|
|
6243
|
+
const v = Fu(c) ? { ...c } : c;
|
|
6241
6244
|
t.push(
|
|
6242
6245
|
...o.flatMap(
|
|
6243
6246
|
(y) => s.flatMap(
|
|
@@ -6250,7 +6253,7 @@ function Xt(...e) {
|
|
|
6250
6253
|
), l = () => {
|
|
6251
6254
|
r(), n();
|
|
6252
6255
|
};
|
|
6253
|
-
return
|
|
6256
|
+
return La(n), l;
|
|
6254
6257
|
}
|
|
6255
6258
|
// @__NO_SIDE_EFFECTS__
|
|
6256
6259
|
function Ju() {
|
|
@@ -6281,7 +6284,7 @@ function $u(e, t, n = {}) {
|
|
|
6281
6284
|
), c = () => r == null ? void 0 : r.takeRecords(), v = () => {
|
|
6282
6285
|
u(), o();
|
|
6283
6286
|
};
|
|
6284
|
-
return
|
|
6287
|
+
return La(v), {
|
|
6285
6288
|
isSupported: l,
|
|
6286
6289
|
stop: v,
|
|
6287
6290
|
takeRecords: c
|
|
@@ -6397,18 +6400,18 @@ function td(e, t = {}) {
|
|
|
6397
6400
|
return m.value;
|
|
6398
6401
|
},
|
|
6399
6402
|
set(Q) {
|
|
6400
|
-
|
|
6403
|
+
x(Q, void 0);
|
|
6401
6404
|
}
|
|
6402
6405
|
}), C = E({
|
|
6403
6406
|
get() {
|
|
6404
6407
|
return f.value;
|
|
6405
6408
|
},
|
|
6406
6409
|
set(Q) {
|
|
6407
|
-
|
|
6410
|
+
x(void 0, Q);
|
|
6408
6411
|
}
|
|
6409
6412
|
});
|
|
6410
|
-
function
|
|
6411
|
-
var h, M, I,
|
|
6413
|
+
function x(Q, B) {
|
|
6414
|
+
var h, M, I, T;
|
|
6412
6415
|
if (!c)
|
|
6413
6416
|
return;
|
|
6414
6417
|
const O = re(e);
|
|
@@ -6419,7 +6422,7 @@ function td(e, t = {}) {
|
|
|
6419
6422
|
left: (M = re(Q)) != null ? M : b.value,
|
|
6420
6423
|
behavior: re(u)
|
|
6421
6424
|
});
|
|
6422
|
-
const V = ((
|
|
6425
|
+
const V = ((T = O == null ? void 0 : O.document) == null ? void 0 : T.documentElement) || (O == null ? void 0 : O.documentElement) || O;
|
|
6423
6426
|
b != null && (m.value = V.scrollLeft), C != null && (f.value = V.scrollTop);
|
|
6424
6427
|
}
|
|
6425
6428
|
const D = Me(!1), k = Wt({
|
|
@@ -6427,31 +6430,31 @@ function td(e, t = {}) {
|
|
|
6427
6430
|
right: !1,
|
|
6428
6431
|
top: !0,
|
|
6429
6432
|
bottom: !1
|
|
6430
|
-
}),
|
|
6433
|
+
}), N = Wt({
|
|
6431
6434
|
left: !1,
|
|
6432
6435
|
right: !1,
|
|
6433
6436
|
top: !1,
|
|
6434
6437
|
bottom: !1
|
|
6435
6438
|
}), S = (Q) => {
|
|
6436
|
-
D.value && (D.value = !1,
|
|
6437
|
-
},
|
|
6439
|
+
D.value && (D.value = !1, N.left = !1, N.right = !1, N.top = !1, N.bottom = !1, i(Q));
|
|
6440
|
+
}, L = /* @__PURE__ */ Yu(S, n + a), W = (Q) => {
|
|
6438
6441
|
var B;
|
|
6439
6442
|
if (!c)
|
|
6440
6443
|
return;
|
|
6441
|
-
const h = ((B = Q == null ? void 0 : Q.document) == null ? void 0 : B.documentElement) || (Q == null ? void 0 : Q.documentElement) || un(Q), { display: M, flexDirection: I, direction:
|
|
6442
|
-
|
|
6444
|
+
const h = ((B = Q == null ? void 0 : Q.document) == null ? void 0 : B.documentElement) || (Q == null ? void 0 : Q.documentElement) || un(Q), { display: M, flexDirection: I, direction: T } = getComputedStyle(h), O = T === "rtl" ? -1 : 1, V = h.scrollLeft;
|
|
6445
|
+
N.left = V < m.value, N.right = V > m.value;
|
|
6443
6446
|
const P = Math.abs(V * O) <= (l.left || 0), Z = Math.abs(V * O) + h.clientWidth >= h.scrollWidth - (l.right || 0) - Un;
|
|
6444
6447
|
M === "flex" && I === "row-reverse" ? (k.left = Z, k.right = P) : (k.left = P, k.right = Z), m.value = V;
|
|
6445
6448
|
let U = h.scrollTop;
|
|
6446
|
-
Q === c.document && !U && (U = c.document.body.scrollTop),
|
|
6447
|
-
const
|
|
6448
|
-
M === "flex" && I === "column-reverse" ? (k.top = ne, k.bottom =
|
|
6449
|
+
Q === c.document && !U && (U = c.document.body.scrollTop), N.top = U < f.value, N.bottom = U > f.value;
|
|
6450
|
+
const _ = Math.abs(U) <= (l.top || 0), ne = Math.abs(U) + h.clientHeight >= h.scrollHeight - (l.bottom || 0) - Un;
|
|
6451
|
+
M === "flex" && I === "column-reverse" ? (k.top = ne, k.bottom = _) : (k.top = _, k.bottom = ne), f.value = U;
|
|
6449
6452
|
}, K = (Q) => {
|
|
6450
6453
|
var B;
|
|
6451
6454
|
if (!c)
|
|
6452
6455
|
return;
|
|
6453
6456
|
const h = (B = Q.target.documentElement) != null ? B : Q.target;
|
|
6454
|
-
W(h), D.value = !0,
|
|
6457
|
+
W(h), D.value = !0, L(Q), r(Q);
|
|
6455
6458
|
};
|
|
6456
6459
|
return Xt(
|
|
6457
6460
|
e,
|
|
@@ -6488,7 +6491,7 @@ function td(e, t = {}) {
|
|
|
6488
6491
|
y: C,
|
|
6489
6492
|
isScrolling: D,
|
|
6490
6493
|
arrivedState: k,
|
|
6491
|
-
directions:
|
|
6494
|
+
directions: N,
|
|
6492
6495
|
measure() {
|
|
6493
6496
|
const Q = re(e);
|
|
6494
6497
|
c && Q && W(Q);
|
|
@@ -6510,9 +6513,9 @@ var od = Object.prototype, sd = od.toString;
|
|
|
6510
6513
|
function cd(e) {
|
|
6511
6514
|
return sd.call(e);
|
|
6512
6515
|
}
|
|
6513
|
-
var ud = "[object Null]", dd = "[object Undefined]",
|
|
6516
|
+
var ud = "[object Null]", dd = "[object Undefined]", Hn = ht ? ht.toStringTag : void 0;
|
|
6514
6517
|
function Ad(e) {
|
|
6515
|
-
return e == null ? e === void 0 ? dd : ud :
|
|
6518
|
+
return e == null ? e === void 0 ? dd : ud : Hn && Hn in Object(e) ? ld(e) : cd(e);
|
|
6516
6519
|
}
|
|
6517
6520
|
function fd(e) {
|
|
6518
6521
|
return e != null && typeof e == "object";
|
|
@@ -6535,12 +6538,12 @@ function Zt(e) {
|
|
|
6535
6538
|
var t = typeof e;
|
|
6536
6539
|
return e != null && (t == "object" || t == "function");
|
|
6537
6540
|
}
|
|
6538
|
-
var
|
|
6541
|
+
var Fn = NaN, yd = /^[-+]0x[0-9a-f]+$/i, pd = /^0b[01]+$/i, Cd = /^0o[0-7]+$/i, Ed = parseInt;
|
|
6539
6542
|
function qn(e) {
|
|
6540
6543
|
if (typeof e == "number")
|
|
6541
6544
|
return e;
|
|
6542
6545
|
if (md(e))
|
|
6543
|
-
return
|
|
6546
|
+
return Fn;
|
|
6544
6547
|
if (Zt(e)) {
|
|
6545
6548
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
6546
6549
|
e = Zt(t) ? t + "" : t;
|
|
@@ -6549,57 +6552,57 @@ function qn(e) {
|
|
|
6549
6552
|
return e === 0 ? e : +e;
|
|
6550
6553
|
e = Id(e);
|
|
6551
6554
|
var n = pd.test(e);
|
|
6552
|
-
return n || Cd.test(e) ? Ed(e.slice(2), n ? 2 : 8) : yd.test(e) ?
|
|
6555
|
+
return n || Cd.test(e) ? Ed(e.slice(2), n ? 2 : 8) : yd.test(e) ? Fn : +e;
|
|
6553
6556
|
}
|
|
6554
6557
|
var jt = function() {
|
|
6555
6558
|
return za.Date.now();
|
|
6556
|
-
}, Md = "Expected a function",
|
|
6559
|
+
}, Md = "Expected a function", Td = Math.max, Nd = Math.min;
|
|
6557
6560
|
function ja(e, t, n) {
|
|
6558
6561
|
var a, i, r, l, o, s, u = 0, c = !1, v = !1, y = !0;
|
|
6559
6562
|
if (typeof e != "function")
|
|
6560
6563
|
throw new TypeError(Md);
|
|
6561
|
-
t = qn(t) || 0, Zt(n) && (c = !!n.leading, v = "maxWait" in n, r = v ?
|
|
6562
|
-
function m(
|
|
6564
|
+
t = qn(t) || 0, Zt(n) && (c = !!n.leading, v = "maxWait" in n, r = v ? Td(qn(n.maxWait) || 0, t) : r, y = "trailing" in n ? !!n.trailing : y);
|
|
6565
|
+
function m(L) {
|
|
6563
6566
|
var W = a, K = i;
|
|
6564
|
-
return a = i = void 0, u =
|
|
6567
|
+
return a = i = void 0, u = L, l = e.apply(K, W), l;
|
|
6565
6568
|
}
|
|
6566
|
-
function f(
|
|
6567
|
-
return u =
|
|
6569
|
+
function f(L) {
|
|
6570
|
+
return u = L, o = setTimeout(x, t), c ? m(L) : l;
|
|
6568
6571
|
}
|
|
6569
|
-
function b(
|
|
6570
|
-
var W =
|
|
6571
|
-
return v ?
|
|
6572
|
+
function b(L) {
|
|
6573
|
+
var W = L - s, K = L - u, Q = t - W;
|
|
6574
|
+
return v ? Nd(Q, r - K) : Q;
|
|
6572
6575
|
}
|
|
6573
|
-
function C(
|
|
6574
|
-
var W =
|
|
6576
|
+
function C(L) {
|
|
6577
|
+
var W = L - s, K = L - u;
|
|
6575
6578
|
return s === void 0 || W >= t || W < 0 || v && K >= r;
|
|
6576
6579
|
}
|
|
6577
|
-
function
|
|
6578
|
-
var
|
|
6579
|
-
if (C(
|
|
6580
|
-
return D(
|
|
6581
|
-
o = setTimeout(
|
|
6580
|
+
function x() {
|
|
6581
|
+
var L = jt();
|
|
6582
|
+
if (C(L))
|
|
6583
|
+
return D(L);
|
|
6584
|
+
o = setTimeout(x, b(L));
|
|
6582
6585
|
}
|
|
6583
|
-
function D(
|
|
6584
|
-
return o = void 0, y && a ? m(
|
|
6586
|
+
function D(L) {
|
|
6587
|
+
return o = void 0, y && a ? m(L) : (a = i = void 0, l);
|
|
6585
6588
|
}
|
|
6586
6589
|
function k() {
|
|
6587
6590
|
o !== void 0 && clearTimeout(o), u = 0, a = s = i = o = void 0;
|
|
6588
6591
|
}
|
|
6589
|
-
function
|
|
6592
|
+
function N() {
|
|
6590
6593
|
return o === void 0 ? l : D(jt());
|
|
6591
6594
|
}
|
|
6592
6595
|
function S() {
|
|
6593
|
-
var
|
|
6594
|
-
if (a = arguments, i = this, s =
|
|
6596
|
+
var L = jt(), W = C(L);
|
|
6597
|
+
if (a = arguments, i = this, s = L, W) {
|
|
6595
6598
|
if (o === void 0)
|
|
6596
6599
|
return f(s);
|
|
6597
6600
|
if (v)
|
|
6598
|
-
return clearTimeout(o), o = setTimeout(
|
|
6601
|
+
return clearTimeout(o), o = setTimeout(x, t), m(s);
|
|
6599
6602
|
}
|
|
6600
|
-
return o === void 0 && (o = setTimeout(
|
|
6603
|
+
return o === void 0 && (o = setTimeout(x, t)), l;
|
|
6601
6604
|
}
|
|
6602
|
-
return S.cancel = k, S.flush =
|
|
6605
|
+
return S.cancel = k, S.flush = N, S;
|
|
6603
6606
|
}
|
|
6604
6607
|
const kd = {
|
|
6605
6608
|
key: 0,
|
|
@@ -6610,11 +6613,11 @@ const kd = {
|
|
|
6610
6613
|
}, Od = {
|
|
6611
6614
|
key: 1,
|
|
6612
6615
|
class: "av-autocomplete-dropdown__empty-text"
|
|
6613
|
-
},
|
|
6616
|
+
}, Ld = /* @__PURE__ */ j({
|
|
6614
6617
|
__name: "AvAutocompleteDropdown",
|
|
6615
6618
|
emits: ["loadMore"],
|
|
6616
6619
|
setup(e, { expose: t, emit: n }) {
|
|
6617
|
-
const a = n, i =
|
|
6620
|
+
const a = n, i = ge(), {
|
|
6618
6621
|
selectedItems: r,
|
|
6619
6622
|
searchQuery: l,
|
|
6620
6623
|
isOpen: o,
|
|
@@ -6631,12 +6634,12 @@ const kd = {
|
|
|
6631
6634
|
const S = s.options;
|
|
6632
6635
|
return s.maxResults ? S.slice(0, s.maxResults) : S;
|
|
6633
6636
|
}
|
|
6634
|
-
let
|
|
6635
|
-
return s.filterOptions ?
|
|
6637
|
+
let N;
|
|
6638
|
+
return s.filterOptions ? N = s.filterOptions(s.options, k) : N = s.options.filter((S) => c(S).toLowerCase().includes(k)), s.maxResults ? N.slice(0, s.maxResults) : N;
|
|
6636
6639
|
}), f = E(() => s.loading ? je.LOADING : o.value && s.options && s.options.length > 0 && m.value.length > 0 ? je.HAS_OPTIONS : je.NO_OPTIONS);
|
|
6637
6640
|
function b(k) {
|
|
6638
6641
|
return r.value.some(
|
|
6639
|
-
(
|
|
6642
|
+
(N) => u(N) === u(k)
|
|
6640
6643
|
);
|
|
6641
6644
|
}
|
|
6642
6645
|
function C(k) {
|
|
@@ -6644,52 +6647,52 @@ const kd = {
|
|
|
6644
6647
|
r.value = [k], o.value = !1, l.value = "";
|
|
6645
6648
|
return;
|
|
6646
6649
|
}
|
|
6647
|
-
const
|
|
6648
|
-
|
|
6650
|
+
const N = r.value, S = u(k);
|
|
6651
|
+
N.some(
|
|
6649
6652
|
(W) => u(W) === S
|
|
6650
|
-
) ? r.value =
|
|
6653
|
+
) ? r.value = N.filter(
|
|
6651
6654
|
(W) => u(W) !== S
|
|
6652
|
-
) : r.value = [...
|
|
6655
|
+
) : r.value = [...N, k];
|
|
6653
6656
|
}
|
|
6654
|
-
const { arrivedState:
|
|
6657
|
+
const { arrivedState: x } = td(y, {
|
|
6655
6658
|
throttle: 100
|
|
6656
6659
|
}), D = ja(() => {
|
|
6657
6660
|
a("loadMore");
|
|
6658
6661
|
}, s.loadMoreThrottleDelay);
|
|
6659
|
-
return ie(() =>
|
|
6662
|
+
return ie(() => x.bottom, (k) => {
|
|
6660
6663
|
s.enableLoadMore && k && o.value && D();
|
|
6661
6664
|
}), ve(() => {
|
|
6662
6665
|
D.cancel();
|
|
6663
6666
|
}), t({
|
|
6664
6667
|
dropdownRef: v
|
|
6665
|
-
}), (k,
|
|
6668
|
+
}), (k, N) => d(o) ? (A(), g("div", {
|
|
6666
6669
|
key: 0,
|
|
6667
6670
|
ref_key: "dropdownRef",
|
|
6668
6671
|
ref: v,
|
|
6669
|
-
class:
|
|
6672
|
+
class: H(["av-autocomplete-dropdown", d(s).dropdownClass]),
|
|
6670
6673
|
style: fe({ width: d(s).dropdownWidth, maxHeight: d(s).maxDropdownHeight })
|
|
6671
6674
|
}, [
|
|
6672
6675
|
d(f) === d(je).LOADING ? (A(), g("div", kd, [
|
|
6673
6676
|
X(se, {
|
|
6674
|
-
name: d(
|
|
6677
|
+
name: d($).LOADING_OUTLINE,
|
|
6675
6678
|
size: 1.5,
|
|
6676
6679
|
class: "av-autocomplete-dropdown__spinner"
|
|
6677
6680
|
}, null, 8, ["name"]),
|
|
6678
|
-
|
|
6681
|
+
N[0] || (N[0] = p("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
6679
6682
|
])) : d(f) === d(je).NO_OPTIONS ? (A(), g("div", wd, [
|
|
6680
|
-
i.empty ?
|
|
6681
|
-
])) : (A(), R(
|
|
6683
|
+
i.empty ? F(k.$slots, "empty", { key: 0 }, void 0, !0) : (A(), g("div", Od, " No results found "))
|
|
6684
|
+
])) : (A(), R(Na, te({
|
|
6682
6685
|
key: 2,
|
|
6683
6686
|
ref_key: "listRef",
|
|
6684
6687
|
ref: y
|
|
6685
6688
|
}, d(s).listOptions, {
|
|
6686
6689
|
class: ["av-autocomplete-dropdown__options", d(s).scrollbarClass]
|
|
6687
6690
|
}), {
|
|
6688
|
-
default:
|
|
6689
|
-
(A(!0), g(
|
|
6691
|
+
default: G(() => [
|
|
6692
|
+
(A(!0), g(J, null, ae(d(m), (S) => (A(), g(J, {
|
|
6690
6693
|
key: d(u)(S)
|
|
6691
6694
|
}, [
|
|
6692
|
-
i.item ?
|
|
6695
|
+
i.item ? F(k.$slots, "item", {
|
|
6693
6696
|
key: 0,
|
|
6694
6697
|
option: S,
|
|
6695
6698
|
isSelected: b(S),
|
|
@@ -6697,7 +6700,7 @@ const kd = {
|
|
|
6697
6700
|
}, void 0, !0) : (A(), R(ka, {
|
|
6698
6701
|
key: 1,
|
|
6699
6702
|
title: d(c)(S),
|
|
6700
|
-
icon: b(S) ? d(
|
|
6703
|
+
icon: b(S) ? d($).CHECK : void 0,
|
|
6701
6704
|
selected: b(S),
|
|
6702
6705
|
clickable: "",
|
|
6703
6706
|
"on-click": () => C(S),
|
|
@@ -6710,14 +6713,14 @@ const kd = {
|
|
|
6710
6713
|
}, 16, ["class"]))
|
|
6711
6714
|
], 6)) : w("", !0);
|
|
6712
6715
|
}
|
|
6713
|
-
}),
|
|
6716
|
+
}), xd = /* @__PURE__ */ Y(Ld, [["__scopeId", "data-v-3471432d"]]), Dd = { class: "av-autocomplete-input" }, Qd = {
|
|
6714
6717
|
key: 0,
|
|
6715
6718
|
class: "av-autocomplete-input__suffix"
|
|
6716
6719
|
}, Sd = /* @__PURE__ */ j({
|
|
6717
6720
|
__name: "AvAutocompleteInput",
|
|
6718
6721
|
emits: ["search", "clear"],
|
|
6719
6722
|
setup(e, { expose: t, emit: n }) {
|
|
6720
|
-
const a = n, i =
|
|
6723
|
+
const a = n, i = ge(), {
|
|
6721
6724
|
selectedItems: r,
|
|
6722
6725
|
searchQuery: l,
|
|
6723
6726
|
isOpen: o,
|
|
@@ -6734,7 +6737,7 @@ const kd = {
|
|
|
6734
6737
|
function C(k) {
|
|
6735
6738
|
l.value = String(k || ""), b(l.value);
|
|
6736
6739
|
}
|
|
6737
|
-
function
|
|
6740
|
+
function x() {
|
|
6738
6741
|
o.value = !0;
|
|
6739
6742
|
}
|
|
6740
6743
|
function D() {
|
|
@@ -6745,7 +6748,7 @@ const kd = {
|
|
|
6745
6748
|
}), t({
|
|
6746
6749
|
inputRef: y,
|
|
6747
6750
|
searchQuery: E(() => l.value)
|
|
6748
|
-
}), (k,
|
|
6751
|
+
}), (k, N) => (A(), g("div", Dd, [
|
|
6749
6752
|
X(rn, te({
|
|
6750
6753
|
id: d(u),
|
|
6751
6754
|
ref_key: "inputRef",
|
|
@@ -6754,22 +6757,22 @@ const kd = {
|
|
|
6754
6757
|
placeholder: d(f)
|
|
6755
6758
|
}, d(s).inputOptions, {
|
|
6756
6759
|
"onUpdate:modelValue": C,
|
|
6757
|
-
onFocus:
|
|
6760
|
+
onFocus: x,
|
|
6758
6761
|
onBlur: d(c),
|
|
6759
|
-
onClick:
|
|
6762
|
+
onClick: x
|
|
6760
6763
|
}), lt({ _: 2 }, [
|
|
6761
6764
|
i.requiredTip ? {
|
|
6762
6765
|
name: "requiredTip",
|
|
6763
|
-
fn:
|
|
6766
|
+
fn: G(() => [
|
|
6764
6767
|
(A(), R(Ce(i.requiredTip)))
|
|
6765
6768
|
]),
|
|
6766
6769
|
key: "0"
|
|
6767
6770
|
} : void 0
|
|
6768
6771
|
]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
|
|
6769
6772
|
d(r).length > 0 ? (A(), g("div", Qd, [
|
|
6770
|
-
X(
|
|
6773
|
+
X(me, {
|
|
6771
6774
|
label: "Clear selected items",
|
|
6772
|
-
icon: d(
|
|
6775
|
+
icon: d($).CLOSE_CIRCLE_OUTLINE,
|
|
6773
6776
|
"icon-only": "",
|
|
6774
6777
|
"icon-scale": 0.8,
|
|
6775
6778
|
size: "sm",
|
|
@@ -6786,7 +6789,7 @@ const kd = {
|
|
|
6786
6789
|
}, jd = /* @__PURE__ */ j({
|
|
6787
6790
|
__name: "AvAutocompleteSelectedTags",
|
|
6788
6791
|
setup(e) {
|
|
6789
|
-
const t =
|
|
6792
|
+
const t = ge(), {
|
|
6790
6793
|
selectedItems: n,
|
|
6791
6794
|
props: a,
|
|
6792
6795
|
getOptionId: i,
|
|
@@ -6799,18 +6802,18 @@ const kd = {
|
|
|
6799
6802
|
);
|
|
6800
6803
|
}
|
|
6801
6804
|
return (o, s) => d(a).multiSelect && d(n).length > 0 && d(a).showSelectedSection ? (A(), g("div", Bd, [
|
|
6802
|
-
(A(!0), g(
|
|
6805
|
+
(A(!0), g(J, null, ae(d(n), (u) => (A(), g("div", {
|
|
6803
6806
|
key: d(i)(u),
|
|
6804
6807
|
class: "av-autocomplete-selected-tags__item"
|
|
6805
6808
|
}, [
|
|
6806
|
-
t.selectedItem ?
|
|
6809
|
+
t.selectedItem ? F(o.$slots, "selectedItem", {
|
|
6807
6810
|
key: 0,
|
|
6808
6811
|
option: u,
|
|
6809
6812
|
remove: () => l(u)
|
|
6810
|
-
}, void 0, !0) : (A(), R(
|
|
6813
|
+
}, void 0, !0) : (A(), R(me, {
|
|
6811
6814
|
key: 1,
|
|
6812
6815
|
label: d(r)(u),
|
|
6813
|
-
icon: d(
|
|
6816
|
+
icon: d($).CLOSE_CIRCLE_OUTLINE,
|
|
6814
6817
|
"icon-right": "",
|
|
6815
6818
|
size: "sm",
|
|
6816
6819
|
variant: "OUTLINED",
|
|
@@ -6852,13 +6855,13 @@ const kd = {
|
|
|
6852
6855
|
}),
|
|
6853
6856
|
emits: /* @__PURE__ */ pe(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
6854
6857
|
setup(e, { emit: t }) {
|
|
6855
|
-
const n = e, a = t, i =
|
|
6858
|
+
const n = e, a = t, i = ge(), r = Pe(e, "modelValue"), l = q(!1), o = q(""), s = q(), u = q(), c = q(), v = E(() => n.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
6856
6859
|
function y(D) {
|
|
6857
6860
|
o.value = D, a("search", D);
|
|
6858
6861
|
}
|
|
6859
6862
|
function m(D) {
|
|
6860
|
-
var k,
|
|
6861
|
-
(
|
|
6863
|
+
var k, N;
|
|
6864
|
+
(N = (k = c.value) == null ? void 0 : k.dropdownRef) != null && N.contains(D.relatedTarget) || setTimeout(() => {
|
|
6862
6865
|
l.value = !1;
|
|
6863
6866
|
}, n.blurCloseDelay);
|
|
6864
6867
|
}
|
|
@@ -6878,15 +6881,15 @@ const kd = {
|
|
|
6878
6881
|
getOptionId: f,
|
|
6879
6882
|
getDisplayLabel: b
|
|
6880
6883
|
});
|
|
6881
|
-
function
|
|
6882
|
-
var S,
|
|
6883
|
-
const k = D.target,
|
|
6884
|
-
!((
|
|
6884
|
+
function x(D) {
|
|
6885
|
+
var S, L, W, K, Q;
|
|
6886
|
+
const k = D.target, N = (S = u.value) == null ? void 0 : S.inputRef;
|
|
6887
|
+
!((L = N == null ? void 0 : N.contains) != null && L.call(N, k)) && !((W = s.value) != null && W.contains(k)) && !((Q = (K = c.value) == null ? void 0 : K.dropdownRef) != null && Q.contains(k)) && (l.value = !1);
|
|
6885
6888
|
}
|
|
6886
6889
|
return ue(() => {
|
|
6887
|
-
document.addEventListener("click",
|
|
6890
|
+
document.addEventListener("click", x);
|
|
6888
6891
|
}), ve(() => {
|
|
6889
|
-
document.removeEventListener("click",
|
|
6892
|
+
document.removeEventListener("click", x);
|
|
6890
6893
|
}), (D, k) => (A(), g("div", Wd, [
|
|
6891
6894
|
p("div", {
|
|
6892
6895
|
ref_key: "wrapperRef",
|
|
@@ -6897,36 +6900,36 @@ const kd = {
|
|
|
6897
6900
|
ref_key: "inputRef",
|
|
6898
6901
|
ref: u,
|
|
6899
6902
|
onSearch: y,
|
|
6900
|
-
onClear: k[0] || (k[0] = (
|
|
6903
|
+
onClear: k[0] || (k[0] = (N) => a("clear"))
|
|
6901
6904
|
}, lt({ _: 2 }, [
|
|
6902
6905
|
i.requiredTip ? {
|
|
6903
6906
|
name: "requiredTip",
|
|
6904
|
-
fn:
|
|
6907
|
+
fn: G(() => [
|
|
6905
6908
|
(A(), R(Ce(i.requiredTip)))
|
|
6906
6909
|
]),
|
|
6907
6910
|
key: "0"
|
|
6908
6911
|
} : void 0
|
|
6909
6912
|
]), 1536),
|
|
6910
|
-
X(
|
|
6913
|
+
X(xd, {
|
|
6911
6914
|
ref_key: "dropdownRef",
|
|
6912
6915
|
ref: c,
|
|
6913
|
-
onLoadMore: k[1] || (k[1] = (
|
|
6916
|
+
onLoadMore: k[1] || (k[1] = (N) => a("loadMore"))
|
|
6914
6917
|
}, lt({ _: 2 }, [
|
|
6915
6918
|
i.item ? {
|
|
6916
6919
|
name: "item",
|
|
6917
|
-
fn:
|
|
6918
|
-
|
|
6919
|
-
option:
|
|
6920
|
+
fn: G(({ option: N, isSelected: S, toggle: L }) => [
|
|
6921
|
+
F(D.$slots, "item", {
|
|
6922
|
+
option: N,
|
|
6920
6923
|
isSelected: S,
|
|
6921
|
-
toggle:
|
|
6924
|
+
toggle: L
|
|
6922
6925
|
}, void 0, !0)
|
|
6923
6926
|
]),
|
|
6924
6927
|
key: "0"
|
|
6925
6928
|
} : void 0,
|
|
6926
6929
|
i.empty ? {
|
|
6927
6930
|
name: "empty",
|
|
6928
|
-
fn:
|
|
6929
|
-
|
|
6931
|
+
fn: G(() => [
|
|
6932
|
+
F(D.$slots, "empty", {}, void 0, !0)
|
|
6930
6933
|
]),
|
|
6931
6934
|
key: "1"
|
|
6932
6935
|
} : void 0
|
|
@@ -6935,9 +6938,9 @@ const kd = {
|
|
|
6935
6938
|
X(Pd, null, lt({ _: 2 }, [
|
|
6936
6939
|
i.selectedItem ? {
|
|
6937
6940
|
name: "selectedItem",
|
|
6938
|
-
fn:
|
|
6939
|
-
|
|
6940
|
-
option:
|
|
6941
|
+
fn: G(({ option: N, remove: S }) => [
|
|
6942
|
+
F(D.$slots, "selectedItem", {
|
|
6943
|
+
option: N,
|
|
6941
6944
|
remove: S
|
|
6942
6945
|
}, void 0, !0)
|
|
6943
6946
|
]),
|
|
@@ -6946,7 +6949,7 @@ const kd = {
|
|
|
6946
6949
|
]), 1024)
|
|
6947
6950
|
]));
|
|
6948
6951
|
}
|
|
6949
|
-
}),
|
|
6952
|
+
}), sv = /* @__PURE__ */ Y(Vd, [["__scopeId", "data-v-a8c4de33"]]), Ud = ["id"], Hd = ["id"], Fd = {
|
|
6950
6953
|
key: 0,
|
|
6951
6954
|
class: "fr-btns-group"
|
|
6952
6955
|
}, qd = {
|
|
@@ -6995,7 +6998,7 @@ const kd = {
|
|
|
6995
6998
|
const h = B.target;
|
|
6996
6999
|
!((M = i.value) != null && M.$el.contains(h)) && !((I = u.value) != null && I.contains(h)) && n("close");
|
|
6997
7000
|
}
|
|
6998
|
-
function
|
|
7001
|
+
function x() {
|
|
6999
7002
|
for (; s.length; ) {
|
|
7000
7003
|
const B = s.pop();
|
|
7001
7004
|
B && B();
|
|
@@ -7005,7 +7008,7 @@ const kd = {
|
|
|
7005
7008
|
const D = E(
|
|
7006
7009
|
() => e.options.filter((B) => typeof B == "object" && B !== null ? `${B[Yd]}`.toLowerCase().includes(f.value.toLowerCase()) : `${B}`.toLowerCase().includes(f.value.toLowerCase()))
|
|
7007
7010
|
), k = E(() => e.selected.length < D.value.length ? !1 : D.value.every((B) => e.selected.includes(B)));
|
|
7008
|
-
function
|
|
7011
|
+
function N() {
|
|
7009
7012
|
const B = new Set(l.value || []);
|
|
7010
7013
|
k.value ? D.value.forEach((h) => {
|
|
7011
7014
|
B.delete(h.value);
|
|
@@ -7017,20 +7020,20 @@ const kd = {
|
|
|
7017
7020
|
const [h] = m();
|
|
7018
7021
|
h && (B.preventDefault(), h.focus());
|
|
7019
7022
|
}
|
|
7020
|
-
function
|
|
7023
|
+
function L(B) {
|
|
7021
7024
|
B.preventDefault();
|
|
7022
7025
|
const h = m(), M = document.activeElement, I = Array.from(h).indexOf(M);
|
|
7023
7026
|
if (I !== -1) {
|
|
7024
|
-
const
|
|
7025
|
-
h[
|
|
7027
|
+
const T = (I + 1) % h.length;
|
|
7028
|
+
h[T].focus();
|
|
7026
7029
|
}
|
|
7027
7030
|
}
|
|
7028
7031
|
function W(B) {
|
|
7029
7032
|
B.preventDefault();
|
|
7030
7033
|
const h = m(), M = document.activeElement, I = Array.from(h).indexOf(M);
|
|
7031
7034
|
if (I !== -1) {
|
|
7032
|
-
const
|
|
7033
|
-
h[
|
|
7035
|
+
const T = (I - 1 + h.length) % h.length;
|
|
7036
|
+
h[T].focus();
|
|
7034
7037
|
}
|
|
7035
7038
|
}
|
|
7036
7039
|
function K(B) {
|
|
@@ -7043,9 +7046,9 @@ const kd = {
|
|
|
7043
7046
|
B.shiftKey && h === ((M = i.value) == null ? void 0 : M.$el) && n("close");
|
|
7044
7047
|
}
|
|
7045
7048
|
return ve(() => {
|
|
7046
|
-
|
|
7049
|
+
x();
|
|
7047
7050
|
}), (B, h) => {
|
|
7048
|
-
const M =
|
|
7051
|
+
const M = me, I = rn;
|
|
7049
7052
|
return e.isVisible ? (A(), g("div", {
|
|
7050
7053
|
key: 0,
|
|
7051
7054
|
id: `${e.id}-collapse`,
|
|
@@ -7054,22 +7057,22 @@ const kd = {
|
|
|
7054
7057
|
style: fe({
|
|
7055
7058
|
"--width-host": `${d(o)}px`
|
|
7056
7059
|
}),
|
|
7057
|
-
class:
|
|
7058
|
-
onTransitionend: h[2] || (h[2] = (
|
|
7060
|
+
class: H(["fr-multiselect__collapse fr-collapse", { "fr-collapse--expanded": d(v), "fr-collapsing": d(c) }]),
|
|
7061
|
+
onTransitionend: h[2] || (h[2] = (T) => d(y)(d(r)))
|
|
7059
7062
|
}, [
|
|
7060
7063
|
p("p", {
|
|
7061
7064
|
id: `${e.id}-text-hint`,
|
|
7062
7065
|
class: "fr-sr-only"
|
|
7063
|
-
}, z(e.hint), 9,
|
|
7064
|
-
e.selectAll ? (A(), g("ul",
|
|
7066
|
+
}, z(e.hint), 9, Hd),
|
|
7067
|
+
e.selectAll ? (A(), g("ul", Fd, [
|
|
7065
7068
|
p("li", null, [
|
|
7066
7069
|
X(M, {
|
|
7067
7070
|
name: "select-all",
|
|
7068
7071
|
size: "sm",
|
|
7069
7072
|
disabled: d(D).length === 0,
|
|
7070
7073
|
label: e.selectAllLabel[d(k) ? 1 : 0],
|
|
7071
|
-
icon: d(k) ? d(
|
|
7072
|
-
onClick:
|
|
7074
|
+
icon: d(k) ? d($).CLOSE_CIRCLE_OUTLINE : d($).CHECK_CIRCLE_OUTLINE,
|
|
7075
|
+
onClick: N,
|
|
7073
7076
|
onKeydown: Ae(de(Q, ["shift"]), ["tab"])
|
|
7074
7077
|
}, null, 8, ["disabled", "label", "icon", "onKeydown"])
|
|
7075
7078
|
])
|
|
@@ -7078,7 +7081,7 @@ const kd = {
|
|
|
7078
7081
|
p("div", Rd, [
|
|
7079
7082
|
X(I, {
|
|
7080
7083
|
modelValue: d(f),
|
|
7081
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
7084
|
+
"onUpdate:modelValue": h[0] || (h[0] = (T) => Tt(f) ? f.value = T : null),
|
|
7082
7085
|
"aria-describedby": `${e.id}-text-hint`,
|
|
7083
7086
|
"aria-controls": `${e.id}-checkboxes`,
|
|
7084
7087
|
"aria-live": "polite",
|
|
@@ -7104,24 +7107,24 @@ const kd = {
|
|
|
7104
7107
|
legend: e.legend,
|
|
7105
7108
|
"legend-id": `${e.id}-checkboxes-legend`
|
|
7106
7109
|
}, {
|
|
7107
|
-
default:
|
|
7108
|
-
|
|
7109
|
-
(A(!0), g(
|
|
7110
|
-
key: `${a(
|
|
7110
|
+
default: G(() => [
|
|
7111
|
+
F(B.$slots, "legend", {}, void 0, !0),
|
|
7112
|
+
(A(!0), g(J, null, ae(d(D), (T) => (A(), g("div", {
|
|
7113
|
+
key: `${a(T, e.id)}-checkbox`,
|
|
7111
7114
|
class: "fr-fieldset__element"
|
|
7112
7115
|
}, [
|
|
7113
7116
|
p("div", Xd, [
|
|
7114
7117
|
X(_c, {
|
|
7115
|
-
id: `${a(
|
|
7118
|
+
id: `${a(T, e.id)}-checkbox`,
|
|
7116
7119
|
modelValue: l.value,
|
|
7117
7120
|
"onUpdate:modelValue": h[1] || (h[1] = (O) => l.value = O),
|
|
7118
|
-
value:
|
|
7119
|
-
label:
|
|
7120
|
-
icon:
|
|
7121
|
-
name: `${a(
|
|
7121
|
+
value: T.value,
|
|
7122
|
+
label: T.label,
|
|
7123
|
+
icon: T.icon,
|
|
7124
|
+
name: `${a(T, e.id)}-checkbox`,
|
|
7122
7125
|
onKeydown: [
|
|
7123
|
-
Ae(
|
|
7124
|
-
Ae(
|
|
7126
|
+
Ae(L, ["down"]),
|
|
7127
|
+
Ae(L, ["right"]),
|
|
7125
7128
|
Ae(W, ["up"]),
|
|
7126
7129
|
Ae(W, ["left"]),
|
|
7127
7130
|
Ae(K, ["tab"])
|
|
@@ -7133,7 +7136,7 @@ const kd = {
|
|
|
7133
7136
|
_: 3
|
|
7134
7137
|
}, 8, ["id", "style", "legend", "legend-id"]),
|
|
7135
7138
|
d(D).length === 0 ? (A(), g("div", Zd, [
|
|
7136
|
-
|
|
7139
|
+
F(B.$slots, "no-results", {}, () => [
|
|
7137
7140
|
le(z(e.noResultLabel), 1)
|
|
7138
7141
|
], !0)
|
|
7139
7142
|
])) : w("", !0)
|
|
@@ -7198,13 +7201,13 @@ const kd = {
|
|
|
7198
7201
|
function C(Q) {
|
|
7199
7202
|
Q.key === "Escape" && k();
|
|
7200
7203
|
}
|
|
7201
|
-
function
|
|
7204
|
+
function x(Q) {
|
|
7202
7205
|
var h, M;
|
|
7203
7206
|
const B = Q.target;
|
|
7204
7207
|
!((h = a.value) != null && h.$el.contains(B)) && !((M = o.value) != null && M.contains(B)) && k();
|
|
7205
7208
|
}
|
|
7206
7209
|
function D() {
|
|
7207
|
-
i.value = !0, b.value = !0, document.addEventListener("click",
|
|
7210
|
+
i.value = !0, b.value = !0, document.addEventListener("click", x), document.addEventListener("keydown", C), setTimeout(() => {
|
|
7208
7211
|
c(!0);
|
|
7209
7212
|
}, 100);
|
|
7210
7213
|
}
|
|
@@ -7213,13 +7216,13 @@ const kd = {
|
|
|
7213
7216
|
b.value = !1;
|
|
7214
7217
|
}, 300), S();
|
|
7215
7218
|
}
|
|
7216
|
-
async function
|
|
7219
|
+
async function N() {
|
|
7217
7220
|
b.value ? k() : D();
|
|
7218
7221
|
}
|
|
7219
7222
|
function S() {
|
|
7220
|
-
document.removeEventListener("click",
|
|
7223
|
+
document.removeEventListener("click", x), document.removeEventListener("keydown", C);
|
|
7221
7224
|
}
|
|
7222
|
-
function
|
|
7225
|
+
function L(Q) {
|
|
7223
7226
|
var h;
|
|
7224
7227
|
const B = document.activeElement;
|
|
7225
7228
|
Q.shiftKey && B === ((h = a.value) == null ? void 0 : h.$el) && k();
|
|
@@ -7240,20 +7243,20 @@ const kd = {
|
|
|
7240
7243
|
e.labelClass
|
|
7241
7244
|
]);
|
|
7242
7245
|
return (Q, B) => {
|
|
7243
|
-
const h =
|
|
7246
|
+
const h = me;
|
|
7244
7247
|
return A(), g("div", {
|
|
7245
|
-
class:
|
|
7248
|
+
class: H({
|
|
7246
7249
|
"fr-multiselect--dense": e.dense,
|
|
7247
7250
|
"fr-multiselect--unselected": e.modelValue.length === 0,
|
|
7248
7251
|
"fr-multiselect--selected": e.modelValue.length > 0
|
|
7249
7252
|
})
|
|
7250
7253
|
}, [
|
|
7251
7254
|
p("div", {
|
|
7252
|
-
class:
|
|
7255
|
+
class: H(["fr-select-group", { [`fr-select-group--${d(l)}`]: d(r) }]),
|
|
7253
7256
|
title: d(f)
|
|
7254
7257
|
}, [
|
|
7255
7258
|
p("label", {
|
|
7256
|
-
class:
|
|
7259
|
+
class: H(d(K)),
|
|
7257
7260
|
for: e.id
|
|
7258
7261
|
}, [
|
|
7259
7262
|
p("span", _d, z(e.label), 1),
|
|
@@ -7276,8 +7279,8 @@ const kd = {
|
|
|
7276
7279
|
"aria-expanded": d(i),
|
|
7277
7280
|
"aria-controls": `${e.id}-collapse`,
|
|
7278
7281
|
size: e.dense ? "sm" : "md",
|
|
7279
|
-
onClick:
|
|
7280
|
-
onKeydown: Ae(de(
|
|
7282
|
+
onClick: N,
|
|
7283
|
+
onKeydown: Ae(de(L, ["shift"]), ["tab"])
|
|
7281
7284
|
}), null, 16, ["id", "label", "disabled", "aria-expanded", "aria-controls", "class", "size", "onKeydown"]),
|
|
7282
7285
|
X(Gd, {
|
|
7283
7286
|
id: e.id,
|
|
@@ -7299,12 +7302,12 @@ const kd = {
|
|
|
7299
7302
|
d(r) ? (A(), g("p", {
|
|
7300
7303
|
key: 0,
|
|
7301
7304
|
id: `select-${d(l)}-desc-${d(l)}`,
|
|
7302
|
-
class:
|
|
7305
|
+
class: H(`fr-${d(l)}-text`)
|
|
7303
7306
|
}, z(d(r)), 11, nA)) : w("", !0)
|
|
7304
7307
|
], 2);
|
|
7305
7308
|
};
|
|
7306
7309
|
}
|
|
7307
|
-
}),
|
|
7310
|
+
}), cv = /* @__PURE__ */ Y(aA, [["__scopeId", "data-v-2e45fb78"]]), iA = /* @__PURE__ */ j({
|
|
7308
7311
|
__name: "AvSelect",
|
|
7309
7312
|
props: {
|
|
7310
7313
|
required: { type: Boolean },
|
|
@@ -7330,7 +7333,7 @@ const kd = {
|
|
|
7330
7333
|
return r ? r.text : n.defaultUnselectedText;
|
|
7331
7334
|
});
|
|
7332
7335
|
return (r, l) => (A(), g("div", {
|
|
7333
|
-
class:
|
|
7336
|
+
class: H({ "fr-select--dense": n.dense })
|
|
7334
7337
|
}, [
|
|
7335
7338
|
X(d(Ec), te(n, {
|
|
7336
7339
|
title: d(i),
|
|
@@ -7338,14 +7341,14 @@ const kd = {
|
|
|
7338
7341
|
}), null, 16, ["title"])
|
|
7339
7342
|
], 2));
|
|
7340
7343
|
}
|
|
7341
|
-
}),
|
|
7344
|
+
}), uv = /* @__PURE__ */ Y(iA, [["__scopeId", "data-v-d230e734"]]), dv = /* @__PURE__ */ j({
|
|
7342
7345
|
__name: "AvTab",
|
|
7343
7346
|
props: {
|
|
7344
7347
|
title: {},
|
|
7345
7348
|
icon: {}
|
|
7346
7349
|
},
|
|
7347
7350
|
setup(e) {
|
|
7348
|
-
return (t, n) =>
|
|
7351
|
+
return (t, n) => F(t.$slots, "default");
|
|
7349
7352
|
}
|
|
7350
7353
|
}), rA = /* @__PURE__ */ j({
|
|
7351
7354
|
__name: "AvTabs",
|
|
@@ -7356,7 +7359,7 @@ const kd = {
|
|
|
7356
7359
|
},
|
|
7357
7360
|
emits: ["update:modelValue"],
|
|
7358
7361
|
setup(e, { expose: t, emit: n }) {
|
|
7359
|
-
const a = n, i =
|
|
7362
|
+
const a = n, i = ge(), r = q(e.modelValue), l = E(() => {
|
|
7360
7363
|
var y;
|
|
7361
7364
|
return ((y = i.default) == null ? void 0 : y.call(i)) || [];
|
|
7362
7365
|
});
|
|
@@ -7381,47 +7384,47 @@ const kd = {
|
|
|
7381
7384
|
}), ie(r, (y) => {
|
|
7382
7385
|
a("update:modelValue", y);
|
|
7383
7386
|
}), t({ activeTab: r }), (y, m) => {
|
|
7384
|
-
const f =
|
|
7387
|
+
const f = Ta, b = Ma, C = Lc;
|
|
7385
7388
|
return A(), R(C, {
|
|
7386
7389
|
modelValue: d(r),
|
|
7387
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
7388
|
-
class:
|
|
7390
|
+
"onUpdate:modelValue": m[0] || (m[0] = (x) => Tt(r) ? r.value = x : null),
|
|
7391
|
+
class: H({ compact: e.compact }),
|
|
7389
7392
|
"tab-list-name": e.ariaLabel ?? "Liste d’onglets",
|
|
7390
7393
|
"tab-titles": []
|
|
7391
7394
|
}, {
|
|
7392
|
-
"tab-items":
|
|
7393
|
-
(A(!0), g(
|
|
7395
|
+
"tab-items": G(() => [
|
|
7396
|
+
(A(!0), g(J, null, ae(d(l), (x, D) => {
|
|
7394
7397
|
var k;
|
|
7395
7398
|
return A(), R(f, {
|
|
7396
7399
|
key: D,
|
|
7397
|
-
class:
|
|
7400
|
+
class: H({ compact: e.compact }),
|
|
7398
7401
|
"tab-id": `tab-${D}`,
|
|
7399
7402
|
"panel-id": `panel-${D}`,
|
|
7400
|
-
icon: (k =
|
|
7401
|
-
onClick: (
|
|
7403
|
+
icon: (k = x.props) == null ? void 0 : k.icon,
|
|
7404
|
+
onClick: (N) => r.value = D,
|
|
7402
7405
|
onNext: u,
|
|
7403
7406
|
onPrevious: s,
|
|
7404
7407
|
onFirst: c,
|
|
7405
7408
|
onLast: v
|
|
7406
7409
|
}, {
|
|
7407
|
-
default:
|
|
7408
|
-
var
|
|
7410
|
+
default: G(() => {
|
|
7411
|
+
var N;
|
|
7409
7412
|
return [
|
|
7410
|
-
le(z((
|
|
7413
|
+
le(z((N = x.props) == null ? void 0 : N.title), 1)
|
|
7411
7414
|
];
|
|
7412
7415
|
}),
|
|
7413
7416
|
_: 2
|
|
7414
7417
|
}, 1032, ["class", "tab-id", "panel-id", "icon", "onClick"]);
|
|
7415
7418
|
}), 128))
|
|
7416
7419
|
]),
|
|
7417
|
-
default:
|
|
7418
|
-
(A(!0), g(
|
|
7420
|
+
default: G(() => [
|
|
7421
|
+
(A(!0), g(J, null, ae(d(l), (x, D) => (A(), R(b, {
|
|
7419
7422
|
key: D,
|
|
7420
7423
|
"panel-id": `panel-${D}`,
|
|
7421
7424
|
"tab-id": `tab-${D}`
|
|
7422
7425
|
}, {
|
|
7423
|
-
default:
|
|
7424
|
-
(A(), R(Ce(
|
|
7426
|
+
default: G(() => [
|
|
7427
|
+
(A(), R(Ce(x.children.default)))
|
|
7425
7428
|
]),
|
|
7426
7429
|
_: 2
|
|
7427
7430
|
}, 1032, ["panel-id", "tab-id"]))), 128))
|
|
@@ -7430,7 +7433,7 @@ const kd = {
|
|
|
7430
7433
|
}, 8, ["modelValue", "class", "tab-list-name"]);
|
|
7431
7434
|
};
|
|
7432
7435
|
}
|
|
7433
|
-
}),
|
|
7436
|
+
}), Av = /* @__PURE__ */ Y(rA, [["__scopeId", "data-v-dbd71c5f"]]), lA = "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", oA = "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", sA = ["id", "for"], cA = {
|
|
7434
7437
|
width: "34",
|
|
7435
7438
|
height: "14"
|
|
7436
7439
|
}, uA = ["href"], dA = {
|
|
@@ -7453,16 +7456,16 @@ const kd = {
|
|
|
7453
7456
|
emits: ["update:modelValue"],
|
|
7454
7457
|
setup(e) {
|
|
7455
7458
|
const t = e, n = E(() => t.id ?? crypto.randomUUID()), a = E(() => `${n.value}-label`);
|
|
7456
|
-
return (i, r) => (A(), g(
|
|
7459
|
+
return (i, r) => (A(), g(J, null, [
|
|
7457
7460
|
p("label", {
|
|
7458
7461
|
id: d(a),
|
|
7459
7462
|
for: d(n),
|
|
7460
|
-
class:
|
|
7463
|
+
class: H(["av-toggle", {
|
|
7461
7464
|
"av-toggle--disabled": e.disabled
|
|
7462
7465
|
}])
|
|
7463
7466
|
}, [
|
|
7464
7467
|
p("div", {
|
|
7465
|
-
class:
|
|
7468
|
+
class: H(["toggle", {
|
|
7466
7469
|
"toggle--disabled": e.disabled
|
|
7467
7470
|
}])
|
|
7468
7471
|
}, [
|
|
@@ -7491,7 +7494,7 @@ const kd = {
|
|
|
7491
7494
|
}, null, 40, vA)
|
|
7492
7495
|
], 64));
|
|
7493
7496
|
}
|
|
7494
|
-
}),
|
|
7497
|
+
}), fv = /* @__PURE__ */ Y(mA, [["__scopeId", "data-v-c27aa110"]]), vv = /* @__PURE__ */ j({
|
|
7495
7498
|
__name: "AvBreadcrumb",
|
|
7496
7499
|
props: {
|
|
7497
7500
|
links: {},
|
|
@@ -7519,13 +7522,13 @@ const kd = {
|
|
|
7519
7522
|
]);
|
|
7520
7523
|
};
|
|
7521
7524
|
}
|
|
7522
|
-
}),
|
|
7525
|
+
}), mv = /* @__PURE__ */ Y(hA, [["__scopeId", "data-v-433349ab"]]), bA = ["aria-label"], IA = { class: "fr-pagination__list" }, yA = { key: 0 }, pA = { class: "b2-regular" }, CA = ["href", "title", "aria-disabled"], EA = { class: "fr-sr-only" }, MA = ["href", "title", "aria-disabled"], TA = {
|
|
7523
7526
|
key: 0,
|
|
7524
7527
|
class: "caption-regular fr-hidden fr-unhidden-md"
|
|
7525
|
-
},
|
|
7528
|
+
}, NA = ["href", "title", "aria-current", "onClick"], kA = { key: 0 }, wA = { key: 1 }, OA = ["href", "title", "disabled", "aria-disabled"], LA = {
|
|
7526
7529
|
key: 0,
|
|
7527
7530
|
class: "caption-regular fr-hidden fr-unhidden-md"
|
|
7528
|
-
},
|
|
7531
|
+
}, xA = ["href", "title", "disabled", "aria-disabled"], DA = { class: "fr-sr-only" }, QA = /* @__PURE__ */ j({
|
|
7529
7532
|
__name: "AvPagination",
|
|
7530
7533
|
props: {
|
|
7531
7534
|
compact: { type: Boolean, default: !1 },
|
|
@@ -7543,7 +7546,7 @@ const kd = {
|
|
|
7543
7546
|
setup(e, { emit: t }) {
|
|
7544
7547
|
const n = t, a = E(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), i = E(() => Math.min(e.pages.length - 1, a.value + e.truncLimit)), r = E(() => e.pages.length > e.truncLimit ? e.pages.slice(a.value, i.value + 1) : e.pages), l = (m) => n("update:current-page", m), o = (m) => l(m), s = () => o(0), u = () => o(Math.max(0, e.currentPage - 1)), c = () => o(Math.min(e.pages.length - 1, e.currentPage + 1)), v = () => o(e.pages.length - 1), y = (m) => e.pages.indexOf(m) === e.currentPage;
|
|
7545
7548
|
return (m, f) => {
|
|
7546
|
-
var b, C,
|
|
7549
|
+
var b, C, x, D;
|
|
7547
7550
|
return A(), g("nav", {
|
|
7548
7551
|
role: "navigation",
|
|
7549
7552
|
class: "fr-pagination",
|
|
@@ -7563,7 +7566,7 @@ const kd = {
|
|
|
7563
7566
|
onClick: f[0] || (f[0] = de((k) => s(), ["prevent"]))
|
|
7564
7567
|
}, [
|
|
7565
7568
|
X(se, {
|
|
7566
|
-
name: d(
|
|
7569
|
+
name: d($).PAGE_FIRST,
|
|
7567
7570
|
size: 1.5,
|
|
7568
7571
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
7569
7572
|
}, null, 8, ["name", "color"]),
|
|
@@ -7579,14 +7582,14 @@ const kd = {
|
|
|
7579
7582
|
onClick: f[1] || (f[1] = de((k) => u(), ["prevent"]))
|
|
7580
7583
|
}, [
|
|
7581
7584
|
X(se, {
|
|
7582
|
-
name: d(
|
|
7585
|
+
name: d($).NAVIGATE_BEFORE,
|
|
7583
7586
|
size: 1.5,
|
|
7584
7587
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
7585
7588
|
}, null, 8, ["name", "color"]),
|
|
7586
|
-
e.compact ? w("", !0) : (A(), g("span",
|
|
7589
|
+
e.compact ? w("", !0) : (A(), g("span", TA, z(e.prevPageLabel), 1))
|
|
7587
7590
|
], 8, MA)
|
|
7588
7591
|
]),
|
|
7589
|
-
e.compact ? w("", !0) : (A(!0), g(
|
|
7592
|
+
e.compact ? w("", !0) : (A(!0), g(J, { key: 1 }, ae(d(r), (k, N) => (A(), g("li", { key: N }, [
|
|
7590
7593
|
p("a", {
|
|
7591
7594
|
href: k == null ? void 0 : k.href,
|
|
7592
7595
|
class: "fr-pagination__link fr-unhidden-lg",
|
|
@@ -7597,20 +7600,20 @@ const kd = {
|
|
|
7597
7600
|
d(r).indexOf(k) === 0 && d(a) > 0 ? (A(), g("span", kA, "...")) : w("", !0),
|
|
7598
7601
|
le(" " + z(k.label) + " ", 1),
|
|
7599
7602
|
d(r).indexOf(k) === d(r).length - 1 && d(i) < e.pages.length - 1 ? (A(), g("span", wA, "...")) : w("", !0)
|
|
7600
|
-
], 8,
|
|
7603
|
+
], 8, NA)
|
|
7601
7604
|
]))), 128)),
|
|
7602
7605
|
p("li", null, [
|
|
7603
7606
|
p("a", {
|
|
7604
|
-
href: (
|
|
7607
|
+
href: (x = e.pages[Math.min(e.currentPage + 1, e.pages.length - 1)]) == null ? void 0 : x.href,
|
|
7605
7608
|
class: "fr-pagination__link fr-pagination__link--lg-label",
|
|
7606
7609
|
title: e.nextPageLabel,
|
|
7607
7610
|
disabled: e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
7608
7611
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
7609
7612
|
onClick: f[2] || (f[2] = de((k) => c(), ["prevent"]))
|
|
7610
7613
|
}, [
|
|
7611
|
-
e.compact ? w("", !0) : (A(), g("span",
|
|
7614
|
+
e.compact ? w("", !0) : (A(), g("span", LA, z(e.nextPageLabel), 1)),
|
|
7612
7615
|
X(se, {
|
|
7613
|
-
name: d(
|
|
7616
|
+
name: d($).NAVIGATE_NEXT,
|
|
7614
7617
|
size: 1.5,
|
|
7615
7618
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
7616
7619
|
}, null, 8, ["name", "color"])
|
|
@@ -7628,18 +7631,18 @@ const kd = {
|
|
|
7628
7631
|
}, [
|
|
7629
7632
|
p("span", DA, z(e.lastPageLabel), 1),
|
|
7630
7633
|
X(se, {
|
|
7631
|
-
name: d(
|
|
7634
|
+
name: d($).PAGE_LAST,
|
|
7632
7635
|
size: 1.5,
|
|
7633
7636
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
7634
7637
|
}, null, 8, ["name", "color"])
|
|
7635
|
-
], 8,
|
|
7638
|
+
], 8, xA))
|
|
7636
7639
|
])
|
|
7637
7640
|
])
|
|
7638
7641
|
], 8, bA);
|
|
7639
7642
|
};
|
|
7640
7643
|
}
|
|
7641
|
-
}),
|
|
7642
|
-
function
|
|
7644
|
+
}), gv = /* @__PURE__ */ Y(QA, [["__scopeId", "data-v-b95a4c48"]]);
|
|
7645
|
+
function hv(e) {
|
|
7643
7646
|
return Array.from({ length: e.value }, (t, n) => {
|
|
7644
7647
|
const a = n + 1;
|
|
7645
7648
|
return {
|
|
@@ -7682,14 +7685,14 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7682
7685
|
}
|
|
7683
7686
|
return (c, v) => (A(), g("nav", {
|
|
7684
7687
|
id: d(r),
|
|
7685
|
-
class:
|
|
7688
|
+
class: H(["av-side-menu", { "av-side-menu--collapsed": d(o) }]),
|
|
7686
7689
|
"aria-label": d(l)
|
|
7687
7690
|
}, [
|
|
7688
7691
|
t.collapsible ? (A(), g("div", zA, [
|
|
7689
|
-
X(
|
|
7692
|
+
X(me, {
|
|
7690
7693
|
"aria-expanded": !d(o),
|
|
7691
7694
|
"aria-controls": d(r),
|
|
7692
|
-
icon: d(o) ? d(
|
|
7695
|
+
icon: d(o) ? d($).CHEVRON_DOUBLE_RIGHT : d($).CHEVRON_DOUBLE_LEFT,
|
|
7693
7696
|
class: "av-side-menu__collapse-button",
|
|
7694
7697
|
label: d(o) ? `${d(r)}-expand-button` : `${d(r)}-collapse-button`,
|
|
7695
7698
|
"icon-only": "",
|
|
@@ -7697,7 +7700,7 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7697
7700
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
7698
7701
|
])) : w("", !0),
|
|
7699
7702
|
p("div", BA, [
|
|
7700
|
-
|
|
7703
|
+
F(c.$slots, "default", {}, void 0, !0)
|
|
7701
7704
|
])
|
|
7702
7705
|
], 10, SA));
|
|
7703
7706
|
}
|
|
@@ -7729,13 +7732,13 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7729
7732
|
"collapsed-width": e.collapsedWidth,
|
|
7730
7733
|
color: e.selectedItemColor
|
|
7731
7734
|
}, {
|
|
7732
|
-
default:
|
|
7733
|
-
X(d(
|
|
7735
|
+
default: G(() => [
|
|
7736
|
+
X(d(Na), {
|
|
7734
7737
|
size: "small",
|
|
7735
7738
|
role: "menu"
|
|
7736
7739
|
}, {
|
|
7737
|
-
default:
|
|
7738
|
-
(A(!0), g(
|
|
7740
|
+
default: G(() => [
|
|
7741
|
+
(A(!0), g(J, null, ae(e.items, (l) => (A(), R(d(ka), {
|
|
7739
7742
|
key: l.id,
|
|
7740
7743
|
title: n.value ? void 0 : l.label,
|
|
7741
7744
|
icon: l.icon,
|
|
@@ -7744,7 +7747,7 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7744
7747
|
"hover-background-color": e.selectedItemColor,
|
|
7745
7748
|
tag: "button",
|
|
7746
7749
|
role: "menuitem",
|
|
7747
|
-
class:
|
|
7750
|
+
class: H(["av-side-navigation__menu-item", {
|
|
7748
7751
|
"av-side-navigation__menu-item--collapsed": n.value
|
|
7749
7752
|
}]),
|
|
7750
7753
|
clickable: "",
|
|
@@ -7757,7 +7760,7 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7757
7760
|
_: 1
|
|
7758
7761
|
}, 8, ["collapsed", "collapsed-width", "color"]));
|
|
7759
7762
|
}
|
|
7760
|
-
}),
|
|
7763
|
+
}), bv = /* @__PURE__ */ Y(WA, [["__scopeId", "data-v-3c5a1abd"]]), VA = { class: "custom-width-container" }, UA = { class: "block-container" }, HA = { class: "main-container" }, FA = ["aria-current"], qA = ["aria-current"], RA = { class: "b1-regular" }, XA = { class: "main-labels-container" }, ZA = /* @__PURE__ */ j({
|
|
7761
7764
|
__name: "AvStepper",
|
|
7762
7765
|
props: {
|
|
7763
7766
|
steps: {},
|
|
@@ -7771,22 +7774,22 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7771
7774
|
const t = e, { steps: n, currentStep: a, width: i } = _t(t);
|
|
7772
7775
|
return (r, l) => (A(), g("div", VA, [
|
|
7773
7776
|
p("div", UA, [
|
|
7774
|
-
p("div",
|
|
7777
|
+
p("div", HA, [
|
|
7775
7778
|
p("div", {
|
|
7776
7779
|
class: "step step--active",
|
|
7777
7780
|
"aria-current": d(a) === 0 ? "step" : void 0
|
|
7778
7781
|
}, [...l[0] || (l[0] = [
|
|
7779
7782
|
p("span", { class: "b1-regular" }, "1", -1)
|
|
7780
|
-
])], 8,
|
|
7781
|
-
(A(!0), g(
|
|
7783
|
+
])], 8, FA),
|
|
7784
|
+
(A(!0), g(J, null, ae(d(n).slice(1, d(n).length), (o, s) => (A(), g("div", {
|
|
7782
7785
|
key: s,
|
|
7783
7786
|
class: "steps-container"
|
|
7784
7787
|
}, [
|
|
7785
7788
|
p("div", {
|
|
7786
|
-
class:
|
|
7789
|
+
class: H(["separator", { "separator--active": s + 1 <= d(a) }])
|
|
7787
7790
|
}, null, 2),
|
|
7788
7791
|
p("div", {
|
|
7789
|
-
class:
|
|
7792
|
+
class: H(["step", { "step--active": s + 1 <= d(a) }]),
|
|
7790
7793
|
"aria-current": s + 1 === d(a) ? "step" : void 0
|
|
7791
7794
|
}, [
|
|
7792
7795
|
p("span", RA, z(s + 2), 1)
|
|
@@ -7794,12 +7797,12 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7794
7797
|
]))), 128))
|
|
7795
7798
|
]),
|
|
7796
7799
|
p("div", XA, [
|
|
7797
|
-
(A(!0), g(
|
|
7800
|
+
(A(!0), g(J, null, ae(d(n), (o, s) => (A(), g("div", {
|
|
7798
7801
|
key: s,
|
|
7799
7802
|
class: "label-container"
|
|
7800
7803
|
}, [
|
|
7801
7804
|
p("span", {
|
|
7802
|
-
class:
|
|
7805
|
+
class: H(["label", {
|
|
7803
7806
|
"b1-bold": s <= d(a),
|
|
7804
7807
|
"b1-light": s > d(a)
|
|
7805
7808
|
}])
|
|
@@ -7809,7 +7812,7 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7809
7812
|
])
|
|
7810
7813
|
]));
|
|
7811
7814
|
}
|
|
7812
|
-
}),
|
|
7815
|
+
}), Iv = /* @__PURE__ */ Y(ZA, [["__scopeId", "data-v-26a5b40e"]]), YA = { key: 0 }, KA = {
|
|
7813
7816
|
key: 0,
|
|
7814
7817
|
class: "av-drawer-backdrop"
|
|
7815
7818
|
}, GA = ["aria-label"], JA = { class: "av-drawer__content-wrapper" }, $A = { class: "av-drawer__content" }, _A = {
|
|
@@ -7831,7 +7834,7 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7831
7834
|
v52ac02d7: d(l),
|
|
7832
7835
|
v5085de3c: d(o)
|
|
7833
7836
|
}));
|
|
7834
|
-
const n = e, a = t, i =
|
|
7837
|
+
const n = e, a = t, i = ge(), { position: r, width: l, padding: o, show: s } = _t(n);
|
|
7835
7838
|
function u(c) {
|
|
7836
7839
|
c.key === "Escape" && a("escapePressed");
|
|
7837
7840
|
}
|
|
@@ -7846,82 +7849,24 @@ const SA = ["id", "aria-label"], zA = {
|
|
|
7846
7849
|
}), (c, v) => d(s) ? (A(), g("div", YA, [
|
|
7847
7850
|
e.backdrop ? (A(), g("div", KA)) : w("", !0),
|
|
7848
7851
|
p("div", {
|
|
7849
|
-
class:
|
|
7852
|
+
class: H(["av-drawer", `av-drawer--${d(r)}`]),
|
|
7850
7853
|
role: "dialog",
|
|
7851
7854
|
"aria-modal": "true",
|
|
7852
7855
|
"aria-label": e.ariaLabel
|
|
7853
7856
|
}, [
|
|
7854
7857
|
p("div", JA, [
|
|
7855
7858
|
p("div", $A, [
|
|
7856
|
-
|
|
7859
|
+
F(c.$slots, "default", {}, void 0, !0)
|
|
7857
7860
|
]),
|
|
7858
7861
|
i.footer ? (A(), g("div", _A, [
|
|
7859
|
-
|
|
7862
|
+
F(c.$slots, "footer", {}, void 0, !0)
|
|
7860
7863
|
])) : w("", !0)
|
|
7861
7864
|
])
|
|
7862
7865
|
], 10, GA)
|
|
7863
7866
|
])) : w("", !0);
|
|
7864
7867
|
}
|
|
7865
|
-
}),
|
|
7866
|
-
|
|
7867
|
-
class: "header"
|
|
7868
|
-
}, nf = { class: "footer" }, af = /* @__PURE__ */ j({
|
|
7869
|
-
__name: "AvModal",
|
|
7870
|
-
props: {
|
|
7871
|
-
modalId: {},
|
|
7872
|
-
opened: { type: Boolean },
|
|
7873
|
-
isAlert: { type: Boolean },
|
|
7874
|
-
origin: {},
|
|
7875
|
-
icon: {},
|
|
7876
|
-
size: {},
|
|
7877
|
-
closeButtonLabel: {},
|
|
7878
|
-
closeButtonIcon: {},
|
|
7879
|
-
closeButtonDisabled: { type: Boolean },
|
|
7880
|
-
confirmButtonLabel: {},
|
|
7881
|
-
confirmButtonIcon: {},
|
|
7882
|
-
confirmButtonDisabled: { type: Boolean },
|
|
7883
|
-
isLoading: { type: Boolean }
|
|
7884
|
-
},
|
|
7885
|
-
emits: ["close", "confirm"],
|
|
7886
|
-
setup(e, { emit: t }) {
|
|
7887
|
-
const n = Gn(e, ["isLoading"]), a = t, i = me(), r = E(() => n.closeButtonIcon ?? ee.CLOSE_CIRCLE_OUTLINE), l = E(() => n.confirmButtonIcon ?? ee.CHECK_CIRCLE_OUTLINE);
|
|
7888
|
-
return (o, s) => {
|
|
7889
|
-
const u = Fc, c = Fs;
|
|
7890
|
-
return A(), R(_n, { to: "body" }, [
|
|
7891
|
-
X(c, te(n, {
|
|
7892
|
-
title: "",
|
|
7893
|
-
onKeydown: s[2] || (s[2] = Ae((v) => a("close"), ["esc"]))
|
|
7894
|
-
}), {
|
|
7895
|
-
default: J(() => [
|
|
7896
|
-
i.header ? (A(), g("div", tf, [
|
|
7897
|
-
H(o.$slots, "header", {}, void 0, !0)
|
|
7898
|
-
])) : w("", !0),
|
|
7899
|
-
H(o.$slots, "default", {}, void 0, !0)
|
|
7900
|
-
]),
|
|
7901
|
-
footer: J(() => [
|
|
7902
|
-
p("div", nf, [
|
|
7903
|
-
X(u, {
|
|
7904
|
-
"cancel-label": n.closeButtonLabel,
|
|
7905
|
-
"cancel-icon": d(r),
|
|
7906
|
-
"cancel-disabled": n.closeButtonDisabled,
|
|
7907
|
-
"cancel-is-loading": e.isLoading,
|
|
7908
|
-
"confirm-label": n.confirmButtonLabel,
|
|
7909
|
-
"confirm-icon": d(l),
|
|
7910
|
-
"confirm-disabled": n.confirmButtonDisabled,
|
|
7911
|
-
"confirm-is-loading": e.isLoading,
|
|
7912
|
-
onCancel: s[0] || (s[0] = () => a("close")),
|
|
7913
|
-
onConfirm: s[1] || (s[1] = () => a("confirm"))
|
|
7914
|
-
}, null, 8, ["cancel-label", "cancel-icon", "cancel-disabled", "cancel-is-loading", "confirm-label", "confirm-icon", "confirm-disabled", "confirm-is-loading"]),
|
|
7915
|
-
H(o.$slots, "footer", {}, void 0, !0)
|
|
7916
|
-
])
|
|
7917
|
-
]),
|
|
7918
|
-
_: 3
|
|
7919
|
-
}, 16)
|
|
7920
|
-
]);
|
|
7921
|
-
};
|
|
7922
|
-
}
|
|
7923
|
-
}), bv = /* @__PURE__ */ Y(af, [["__scopeId", "data-v-aef6262c"]]);
|
|
7924
|
-
function rf(e, t) {
|
|
7868
|
+
}), yv = /* @__PURE__ */ Y(ef, [["__scopeId", "data-v-2f06b4d1"]]);
|
|
7869
|
+
function tf(e, t) {
|
|
7925
7870
|
const n = q(!1), a = q({ top: 0, left: 0 }), i = async () => {
|
|
7926
7871
|
if (n.value = !n.value, n.value && e.value) {
|
|
7927
7872
|
await De();
|
|
@@ -7949,7 +7894,7 @@ function rf(e, t) {
|
|
|
7949
7894
|
closePopover: r
|
|
7950
7895
|
};
|
|
7951
7896
|
}
|
|
7952
|
-
const
|
|
7897
|
+
const nf = {
|
|
7953
7898
|
sm: 576,
|
|
7954
7899
|
/* 36rem */
|
|
7955
7900
|
md: 768,
|
|
@@ -7959,8 +7904,8 @@ const lf = {
|
|
|
7959
7904
|
xl: 1440
|
|
7960
7905
|
/* 90rem */
|
|
7961
7906
|
};
|
|
7962
|
-
function
|
|
7963
|
-
const e = /* @__PURE__ */ ed(
|
|
7907
|
+
function pv() {
|
|
7908
|
+
const e = /* @__PURE__ */ ed(nf), t = e.smaller("sm"), n = e.smaller("md"), a = e.smaller("lg"), i = e.smaller("xl"), r = e.greater("md"), l = e.greater("lg"), o = n, s = E(() => r.value && a.value);
|
|
7964
7909
|
return {
|
|
7965
7910
|
isMobile: o,
|
|
7966
7911
|
isTablet: s,
|
|
@@ -7977,7 +7922,7 @@ function Iv() {
|
|
|
7977
7922
|
* tabbable 6.2.0
|
|
7978
7923
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
7979
7924
|
*/
|
|
7980
|
-
var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], bt = /* @__PURE__ */ Pa.join(","), Wa = typeof Element > "u",
|
|
7925
|
+
var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], bt = /* @__PURE__ */ Pa.join(","), Wa = typeof Element > "u", xe = Wa ? function() {
|
|
7981
7926
|
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, It = !Wa && Element.prototype.getRootNode ? function(e) {
|
|
7982
7927
|
var t;
|
|
7983
7928
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
@@ -7988,14 +7933,14 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
7988
7933
|
n === void 0 && (n = !0);
|
|
7989
7934
|
var i = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "inert"), r = i === "" || i === "true", l = r || n && t && e(t.parentNode);
|
|
7990
7935
|
return l;
|
|
7991
|
-
},
|
|
7936
|
+
}, af = function(t) {
|
|
7992
7937
|
var n, a = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
7993
7938
|
return a === "" || a === "true";
|
|
7994
7939
|
}, Va = function(t, n, a) {
|
|
7995
7940
|
if (yt(t))
|
|
7996
7941
|
return [];
|
|
7997
7942
|
var i = Array.prototype.slice.apply(t.querySelectorAll(bt));
|
|
7998
|
-
return n &&
|
|
7943
|
+
return n && xe.call(t, bt) && i.unshift(t), i = i.filter(a), i;
|
|
7999
7944
|
}, Ua = function e(t, n, a) {
|
|
8000
7945
|
for (var i = [], r = Array.from(t); r.length; ) {
|
|
8001
7946
|
var l = r.shift();
|
|
@@ -8007,7 +7952,7 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8007
7952
|
candidates: u
|
|
8008
7953
|
});
|
|
8009
7954
|
} else {
|
|
8010
|
-
var c =
|
|
7955
|
+
var c = xe.call(l, bt);
|
|
8011
7956
|
c && a.filter(l) && (n || !t.includes(l)) && i.push(l);
|
|
8012
7957
|
var v = l.shadowRoot || // check for an undisclosed shadow
|
|
8013
7958
|
typeof a.getShadowRoot == "function" && a.getShadowRoot(l), y = !yt(v, !1) && (!a.shadowRootFilter || a.shadowRootFilter(l));
|
|
@@ -8022,31 +7967,31 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8022
7967
|
}
|
|
8023
7968
|
}
|
|
8024
7969
|
return i;
|
|
8025
|
-
},
|
|
7970
|
+
}, Ha = function(t) {
|
|
8026
7971
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
8027
7972
|
}, Oe = function(t) {
|
|
8028
7973
|
if (!t)
|
|
8029
7974
|
throw new Error("No node provided");
|
|
8030
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
8031
|
-
},
|
|
7975
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || af(t)) && !Ha(t) ? 0 : t.tabIndex;
|
|
7976
|
+
}, rf = function(t, n) {
|
|
8032
7977
|
var a = Oe(t);
|
|
8033
|
-
return a < 0 && n && !
|
|
8034
|
-
},
|
|
7978
|
+
return a < 0 && n && !Ha(t) ? 0 : a;
|
|
7979
|
+
}, lf = function(t, n) {
|
|
8035
7980
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
8036
|
-
},
|
|
7981
|
+
}, Fa = function(t) {
|
|
8037
7982
|
return t.tagName === "INPUT";
|
|
8038
|
-
},
|
|
8039
|
-
return
|
|
8040
|
-
},
|
|
7983
|
+
}, of = function(t) {
|
|
7984
|
+
return Fa(t) && t.type === "hidden";
|
|
7985
|
+
}, sf = function(t) {
|
|
8041
7986
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(a) {
|
|
8042
7987
|
return a.tagName === "SUMMARY";
|
|
8043
7988
|
});
|
|
8044
7989
|
return n;
|
|
8045
|
-
},
|
|
7990
|
+
}, cf = function(t, n) {
|
|
8046
7991
|
for (var a = 0; a < t.length; a++)
|
|
8047
7992
|
if (t[a].checked && t[a].form === n)
|
|
8048
7993
|
return t[a];
|
|
8049
|
-
},
|
|
7994
|
+
}, uf = function(t) {
|
|
8050
7995
|
if (!t.name)
|
|
8051
7996
|
return !0;
|
|
8052
7997
|
var n = t.form || It(t), a = function(o) {
|
|
@@ -8060,13 +8005,13 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8060
8005
|
} catch (l) {
|
|
8061
8006
|
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", l.message), !1;
|
|
8062
8007
|
}
|
|
8063
|
-
var r =
|
|
8008
|
+
var r = cf(i, t.form);
|
|
8064
8009
|
return !r || r === t;
|
|
8065
|
-
},
|
|
8066
|
-
return
|
|
8067
|
-
},
|
|
8068
|
-
return
|
|
8069
|
-
},
|
|
8010
|
+
}, df = function(t) {
|
|
8011
|
+
return Fa(t) && t.type === "radio";
|
|
8012
|
+
}, Af = function(t) {
|
|
8013
|
+
return df(t) && !uf(t);
|
|
8014
|
+
}, ff = function(t) {
|
|
8070
8015
|
var n, a = t && It(t), i = (n = a) === null || n === void 0 ? void 0 : n.host, r = !1;
|
|
8071
8016
|
if (a && a !== t) {
|
|
8072
8017
|
var l, o, s;
|
|
@@ -8079,12 +8024,12 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8079
8024
|
}, Rn = function(t) {
|
|
8080
8025
|
var n = t.getBoundingClientRect(), a = n.width, i = n.height;
|
|
8081
8026
|
return a === 0 && i === 0;
|
|
8082
|
-
},
|
|
8027
|
+
}, vf = function(t, n) {
|
|
8083
8028
|
var a = n.displayCheck, i = n.getShadowRoot;
|
|
8084
8029
|
if (getComputedStyle(t).visibility === "hidden")
|
|
8085
8030
|
return !0;
|
|
8086
|
-
var r =
|
|
8087
|
-
if (
|
|
8031
|
+
var r = xe.call(t, "details>summary:first-of-type"), l = r ? t.parentElement : t;
|
|
8032
|
+
if (xe.call(l, "details:not([open]) *"))
|
|
8088
8033
|
return !0;
|
|
8089
8034
|
if (!a || a === "full" || a === "legacy-full") {
|
|
8090
8035
|
if (typeof i == "function") {
|
|
@@ -8096,21 +8041,21 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8096
8041
|
}
|
|
8097
8042
|
t = o;
|
|
8098
8043
|
}
|
|
8099
|
-
if (
|
|
8044
|
+
if (ff(t))
|
|
8100
8045
|
return !t.getClientRects().length;
|
|
8101
8046
|
if (a !== "legacy-full")
|
|
8102
8047
|
return !0;
|
|
8103
8048
|
} else if (a === "non-zero-area")
|
|
8104
8049
|
return Rn(t);
|
|
8105
8050
|
return !1;
|
|
8106
|
-
},
|
|
8051
|
+
}, mf = function(t) {
|
|
8107
8052
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
8108
8053
|
for (var n = t.parentElement; n; ) {
|
|
8109
8054
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
8110
8055
|
for (var a = 0; a < n.children.length; a++) {
|
|
8111
8056
|
var i = n.children.item(a);
|
|
8112
8057
|
if (i.tagName === "LEGEND")
|
|
8113
|
-
return
|
|
8058
|
+
return xe.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t);
|
|
8114
8059
|
}
|
|
8115
8060
|
return !0;
|
|
8116
8061
|
}
|
|
@@ -8121,17 +8066,17 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8121
8066
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
8122
8067
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
8123
8068
|
// note related to `candidateSelectors`)
|
|
8124
|
-
yt(n) ||
|
|
8125
|
-
|
|
8069
|
+
yt(n) || of(n) || vf(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
8070
|
+
sf(n) || mf(n));
|
|
8126
8071
|
}, Yt = function(t, n) {
|
|
8127
|
-
return !(
|
|
8128
|
-
},
|
|
8072
|
+
return !(Af(n) || Oe(n) < 0 || !pt(t, n));
|
|
8073
|
+
}, gf = function(t) {
|
|
8129
8074
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
8130
8075
|
return !!(isNaN(n) || n >= 0);
|
|
8131
|
-
},
|
|
8076
|
+
}, hf = function e(t) {
|
|
8132
8077
|
var n = [], a = [];
|
|
8133
8078
|
return t.forEach(function(i, r) {
|
|
8134
|
-
var l = !!i.scopeParent, o = l ? i.scopeParent : i, s =
|
|
8079
|
+
var l = !!i.scopeParent, o = l ? i.scopeParent : i, s = rf(o, l), u = l ? e(i.candidates) : o;
|
|
8135
8080
|
s === 0 ? l ? n.push.apply(n, u) : n.push(o) : a.push({
|
|
8136
8081
|
documentOrder: r,
|
|
8137
8082
|
tabIndex: s,
|
|
@@ -8139,19 +8084,19 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8139
8084
|
isScope: l,
|
|
8140
8085
|
content: u
|
|
8141
8086
|
});
|
|
8142
|
-
}), a.sort(
|
|
8087
|
+
}), a.sort(lf).reduce(function(i, r) {
|
|
8143
8088
|
return r.isScope ? i.push.apply(i, r.content) : i.push(r.content), i;
|
|
8144
8089
|
}, []).concat(n);
|
|
8145
|
-
},
|
|
8090
|
+
}, bf = function(t, n) {
|
|
8146
8091
|
n = n || {};
|
|
8147
8092
|
var a;
|
|
8148
8093
|
return n.getShadowRoot ? a = Ua([t], n.includeContainer, {
|
|
8149
8094
|
filter: Yt.bind(null, n),
|
|
8150
8095
|
flatten: !1,
|
|
8151
8096
|
getShadowRoot: n.getShadowRoot,
|
|
8152
|
-
shadowRootFilter:
|
|
8153
|
-
}) : a = Va(t, n.includeContainer, Yt.bind(null, n)),
|
|
8154
|
-
},
|
|
8097
|
+
shadowRootFilter: gf
|
|
8098
|
+
}) : a = Va(t, n.includeContainer, Yt.bind(null, n)), hf(a);
|
|
8099
|
+
}, If = function(t, n) {
|
|
8155
8100
|
n = n || {};
|
|
8156
8101
|
var a;
|
|
8157
8102
|
return n.getShadowRoot ? a = Ua([t], n.includeContainer, {
|
|
@@ -8162,11 +8107,11 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
8162
8107
|
}, Be = function(t, n) {
|
|
8163
8108
|
if (n = n || {}, !t)
|
|
8164
8109
|
throw new Error("No node provided");
|
|
8165
|
-
return
|
|
8166
|
-
},
|
|
8110
|
+
return xe.call(t, bt) === !1 ? !1 : Yt(n, t);
|
|
8111
|
+
}, yf = /* @__PURE__ */ Pa.concat("iframe").join(","), Pt = function(t, n) {
|
|
8167
8112
|
if (n = n || {}, !t)
|
|
8168
8113
|
throw new Error("No node provided");
|
|
8169
|
-
return
|
|
8114
|
+
return xe.call(t, yf) === !1 ? !1 : pt(n, t);
|
|
8170
8115
|
};
|
|
8171
8116
|
/*!
|
|
8172
8117
|
* focus-trap 7.6.5
|
|
@@ -8177,21 +8122,21 @@ function Kt(e, t) {
|
|
|
8177
8122
|
for (var n = 0, a = Array(t); n < t; n++) a[n] = e[n];
|
|
8178
8123
|
return a;
|
|
8179
8124
|
}
|
|
8180
|
-
function
|
|
8125
|
+
function pf(e) {
|
|
8181
8126
|
if (Array.isArray(e)) return Kt(e);
|
|
8182
8127
|
}
|
|
8183
|
-
function
|
|
8184
|
-
return (t =
|
|
8128
|
+
function Cf(e, t, n) {
|
|
8129
|
+
return (t = kf(t)) in e ? Object.defineProperty(e, t, {
|
|
8185
8130
|
value: n,
|
|
8186
8131
|
enumerable: !0,
|
|
8187
8132
|
configurable: !0,
|
|
8188
8133
|
writable: !0
|
|
8189
8134
|
}) : e[t] = n, e;
|
|
8190
8135
|
}
|
|
8191
|
-
function
|
|
8136
|
+
function Ef(e) {
|
|
8192
8137
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
8193
8138
|
}
|
|
8194
|
-
function
|
|
8139
|
+
function Mf() {
|
|
8195
8140
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
8196
8141
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
8197
8142
|
}
|
|
@@ -8209,17 +8154,17 @@ function Zn(e) {
|
|
|
8209
8154
|
for (var t = 1; t < arguments.length; t++) {
|
|
8210
8155
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8211
8156
|
t % 2 ? Xn(Object(n), !0).forEach(function(a) {
|
|
8212
|
-
|
|
8157
|
+
Cf(e, a, n[a]);
|
|
8213
8158
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Xn(Object(n)).forEach(function(a) {
|
|
8214
8159
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
8215
8160
|
});
|
|
8216
8161
|
}
|
|
8217
8162
|
return e;
|
|
8218
8163
|
}
|
|
8219
|
-
function
|
|
8220
|
-
return
|
|
8164
|
+
function Tf(e) {
|
|
8165
|
+
return pf(e) || Ef(e) || wf(e) || Mf();
|
|
8221
8166
|
}
|
|
8222
|
-
function
|
|
8167
|
+
function Nf(e, t) {
|
|
8223
8168
|
if (typeof e != "object" || !e) return e;
|
|
8224
8169
|
var n = e[Symbol.toPrimitive];
|
|
8225
8170
|
if (n !== void 0) {
|
|
@@ -8229,11 +8174,11 @@ function Of(e, t) {
|
|
|
8229
8174
|
}
|
|
8230
8175
|
return (t === "string" ? String : Number)(e);
|
|
8231
8176
|
}
|
|
8232
|
-
function
|
|
8233
|
-
var t =
|
|
8177
|
+
function kf(e) {
|
|
8178
|
+
var t = Nf(e, "string");
|
|
8234
8179
|
return typeof t == "symbol" ? t : t + "";
|
|
8235
8180
|
}
|
|
8236
|
-
function
|
|
8181
|
+
function wf(e, t) {
|
|
8237
8182
|
if (e) {
|
|
8238
8183
|
if (typeof e == "string") return Kt(e, t);
|
|
8239
8184
|
var n = {}.toString.call(e).slice(8, -1);
|
|
@@ -8253,15 +8198,15 @@ var Yn = {
|
|
|
8253
8198
|
var a = t.indexOf(n);
|
|
8254
8199
|
a !== -1 && t.splice(a, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
8255
8200
|
}
|
|
8256
|
-
},
|
|
8201
|
+
}, Of = function(t) {
|
|
8257
8202
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
8258
|
-
},
|
|
8203
|
+
}, Lf = function(t) {
|
|
8259
8204
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
8260
8205
|
}, et = function(t) {
|
|
8261
8206
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
8262
|
-
},
|
|
8207
|
+
}, xf = function(t) {
|
|
8263
8208
|
return et(t) && !t.shiftKey;
|
|
8264
|
-
},
|
|
8209
|
+
}, Df = function(t) {
|
|
8265
8210
|
return et(t) && t.shiftKey;
|
|
8266
8211
|
}, Kn = function(t) {
|
|
8267
8212
|
return setTimeout(t, 0);
|
|
@@ -8271,13 +8216,13 @@ var Yn = {
|
|
|
8271
8216
|
return typeof t == "function" ? t.apply(void 0, a) : t;
|
|
8272
8217
|
}, rt = function(t) {
|
|
8273
8218
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
8274
|
-
},
|
|
8275
|
-
var a = (n == null ? void 0 : n.document) || document, i = (n == null ? void 0 : n.trapStack) ||
|
|
8219
|
+
}, Qf = [], Sf = function(t, n) {
|
|
8220
|
+
var a = (n == null ? void 0 : n.document) || document, i = (n == null ? void 0 : n.trapStack) || Qf, r = Zn({
|
|
8276
8221
|
returnFocusOnDeactivate: !0,
|
|
8277
8222
|
escapeDeactivates: !0,
|
|
8278
8223
|
delayInitialFocus: !0,
|
|
8279
|
-
isKeyForward:
|
|
8280
|
-
isKeyBackward:
|
|
8224
|
+
isKeyForward: xf,
|
|
8225
|
+
isKeyBackward: Df
|
|
8281
8226
|
}, n), l = {
|
|
8282
8227
|
// containers given to createFocusTrap()
|
|
8283
8228
|
// @type {Array<HTMLElement>}
|
|
@@ -8315,10 +8260,10 @@ var Yn = {
|
|
|
8315
8260
|
delayInitialFocusTimer: void 0,
|
|
8316
8261
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
8317
8262
|
recentNavEvent: void 0
|
|
8318
|
-
}, o, s = function(I,
|
|
8319
|
-
return I && I[
|
|
8320
|
-
}, u = function(I,
|
|
8321
|
-
var O = typeof (
|
|
8263
|
+
}, o, s = function(I, T, O) {
|
|
8264
|
+
return I && I[T] !== void 0 ? I[T] : r[O || T];
|
|
8265
|
+
}, u = function(I, T) {
|
|
8266
|
+
var O = typeof (T == null ? void 0 : T.composedPath) == "function" ? T.composedPath() : void 0;
|
|
8322
8267
|
return l.containerGroups.findIndex(function(V) {
|
|
8323
8268
|
var P = V.container, Z = V.tabbableNodes;
|
|
8324
8269
|
return P.contains(I) || // fall back to explicit tabbable search which will take into consideration any
|
|
@@ -8330,23 +8275,23 @@ var Yn = {
|
|
|
8330
8275
|
});
|
|
8331
8276
|
});
|
|
8332
8277
|
}, c = function(I) {
|
|
8333
|
-
var
|
|
8334
|
-
if (typeof U == "function" && (U = U.apply(void 0,
|
|
8278
|
+
var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, O = T.hasFallback, V = O === void 0 ? !1 : O, P = T.params, Z = P === void 0 ? [] : P, U = r[I];
|
|
8279
|
+
if (typeof U == "function" && (U = U.apply(void 0, Tf(Z))), U === !0 && (U = void 0), !U) {
|
|
8335
8280
|
if (U === void 0 || U === !1)
|
|
8336
8281
|
return U;
|
|
8337
8282
|
throw new Error("`".concat(I, "` was specified but was not a node, or did not return a node"));
|
|
8338
8283
|
}
|
|
8339
|
-
var
|
|
8284
|
+
var _ = U;
|
|
8340
8285
|
if (typeof U == "string") {
|
|
8341
8286
|
try {
|
|
8342
|
-
|
|
8287
|
+
_ = a.querySelector(U);
|
|
8343
8288
|
} catch (ne) {
|
|
8344
8289
|
throw new Error("`".concat(I, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
|
|
8345
8290
|
}
|
|
8346
|
-
if (
|
|
8291
|
+
if (!_ && !V)
|
|
8347
8292
|
throw new Error("`".concat(I, "` as selector refers to no known node"));
|
|
8348
8293
|
}
|
|
8349
|
-
return
|
|
8294
|
+
return _;
|
|
8350
8295
|
}, v = function() {
|
|
8351
8296
|
var I = c("initialFocus", {
|
|
8352
8297
|
hasFallback: !0
|
|
@@ -8357,7 +8302,7 @@ var Yn = {
|
|
|
8357
8302
|
if (u(a.activeElement) >= 0)
|
|
8358
8303
|
I = a.activeElement;
|
|
8359
8304
|
else {
|
|
8360
|
-
var
|
|
8305
|
+
var T = l.tabbableGroups[0], O = T && T.firstTabbableNode;
|
|
8361
8306
|
I = O || c("fallbackFocus");
|
|
8362
8307
|
}
|
|
8363
8308
|
else I === null && (I = c("fallbackFocus"));
|
|
@@ -8366,19 +8311,19 @@ var Yn = {
|
|
|
8366
8311
|
return I;
|
|
8367
8312
|
}, y = function() {
|
|
8368
8313
|
if (l.containerGroups = l.containers.map(function(I) {
|
|
8369
|
-
var
|
|
8314
|
+
var T = bf(I, r.tabbableOptions), O = If(I, r.tabbableOptions), V = T.length > 0 ? T[0] : void 0, P = T.length > 0 ? T[T.length - 1] : void 0, Z = O.find(function(ne) {
|
|
8370
8315
|
return Be(ne);
|
|
8371
8316
|
}), U = O.slice().reverse().find(function(ne) {
|
|
8372
8317
|
return Be(ne);
|
|
8373
|
-
}),
|
|
8318
|
+
}), _ = !!T.find(function(ne) {
|
|
8374
8319
|
return Oe(ne) > 0;
|
|
8375
8320
|
});
|
|
8376
8321
|
return {
|
|
8377
8322
|
container: I,
|
|
8378
|
-
tabbableNodes:
|
|
8323
|
+
tabbableNodes: T,
|
|
8379
8324
|
focusableNodes: O,
|
|
8380
8325
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
8381
|
-
posTabIndexesFound:
|
|
8326
|
+
posTabIndexesFound: _,
|
|
8382
8327
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
8383
8328
|
firstTabbableNode: V,
|
|
8384
8329
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -8403,12 +8348,12 @@ var Yn = {
|
|
|
8403
8348
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
8404
8349
|
*/
|
|
8405
8350
|
nextTabbableNode: function(oe) {
|
|
8406
|
-
var
|
|
8407
|
-
return
|
|
8351
|
+
var Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, he = T.indexOf(oe);
|
|
8352
|
+
return he < 0 ? Ne ? O.slice(O.indexOf(oe) + 1).find(function(ye) {
|
|
8408
8353
|
return Be(ye);
|
|
8409
8354
|
}) : O.slice(0, O.indexOf(oe)).reverse().find(function(ye) {
|
|
8410
8355
|
return Be(ye);
|
|
8411
|
-
}) :
|
|
8356
|
+
}) : T[he + (Ne ? 1 : -1)];
|
|
8412
8357
|
}
|
|
8413
8358
|
};
|
|
8414
8359
|
}), l.tabbableGroups = l.containerGroups.filter(function(I) {
|
|
@@ -8420,9 +8365,9 @@ var Yn = {
|
|
|
8420
8365
|
}) && l.containerGroups.length > 1)
|
|
8421
8366
|
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.");
|
|
8422
8367
|
}, m = function(I) {
|
|
8423
|
-
var
|
|
8424
|
-
if (
|
|
8425
|
-
return
|
|
8368
|
+
var T = I.activeElement;
|
|
8369
|
+
if (T)
|
|
8370
|
+
return T.shadowRoot && T.shadowRoot.activeElement !== null ? m(T.shadowRoot) : T;
|
|
8426
8371
|
}, f = function(I) {
|
|
8427
8372
|
if (I !== !1 && I !== m(document)) {
|
|
8428
8373
|
if (!I || !I.focus) {
|
|
@@ -8431,46 +8376,46 @@ var Yn = {
|
|
|
8431
8376
|
}
|
|
8432
8377
|
I.focus({
|
|
8433
8378
|
preventScroll: !!r.preventScroll
|
|
8434
|
-
}), l.mostRecentlyFocusedNode = I,
|
|
8379
|
+
}), l.mostRecentlyFocusedNode = I, Of(I) && I.select();
|
|
8435
8380
|
}
|
|
8436
8381
|
}, b = function(I) {
|
|
8437
|
-
var
|
|
8382
|
+
var T = c("setReturnFocus", {
|
|
8438
8383
|
params: [I]
|
|
8439
8384
|
});
|
|
8440
|
-
return
|
|
8385
|
+
return T || (T === !1 ? !1 : I);
|
|
8441
8386
|
}, C = function(I) {
|
|
8442
|
-
var
|
|
8443
|
-
|
|
8387
|
+
var T = I.target, O = I.event, V = I.isBackward, P = V === void 0 ? !1 : V;
|
|
8388
|
+
T = T || rt(O), y();
|
|
8444
8389
|
var Z = null;
|
|
8445
8390
|
if (l.tabbableGroups.length > 0) {
|
|
8446
|
-
var U = u(
|
|
8391
|
+
var U = u(T, O), _ = U >= 0 ? l.containerGroups[U] : void 0;
|
|
8447
8392
|
if (U < 0)
|
|
8448
8393
|
P ? Z = l.tabbableGroups[l.tabbableGroups.length - 1].lastTabbableNode : Z = l.tabbableGroups[0].firstTabbableNode;
|
|
8449
8394
|
else if (P) {
|
|
8450
|
-
var ne = l.tabbableGroups.findIndex(function(
|
|
8451
|
-
var
|
|
8452
|
-
return
|
|
8395
|
+
var ne = l.tabbableGroups.findIndex(function(Lt) {
|
|
8396
|
+
var xt = Lt.firstTabbableNode;
|
|
8397
|
+
return T === xt;
|
|
8453
8398
|
});
|
|
8454
|
-
if (ne < 0 && (
|
|
8455
|
-
var oe = ne === 0 ? l.tabbableGroups.length - 1 : ne - 1,
|
|
8456
|
-
Z = Oe(
|
|
8457
|
-
} else et(O) || (Z =
|
|
8399
|
+
if (ne < 0 && (_.container === T || Pt(T, r.tabbableOptions) && !Be(T, r.tabbableOptions) && !_.nextTabbableNode(T, !1)) && (ne = U), ne >= 0) {
|
|
8400
|
+
var oe = ne === 0 ? l.tabbableGroups.length - 1 : ne - 1, Ne = l.tabbableGroups[oe];
|
|
8401
|
+
Z = Oe(T) >= 0 ? Ne.lastTabbableNode : Ne.lastDomTabbableNode;
|
|
8402
|
+
} else et(O) || (Z = _.nextTabbableNode(T, !1));
|
|
8458
8403
|
} else {
|
|
8459
|
-
var
|
|
8460
|
-
var
|
|
8461
|
-
return
|
|
8404
|
+
var he = l.tabbableGroups.findIndex(function(Lt) {
|
|
8405
|
+
var xt = Lt.lastTabbableNode;
|
|
8406
|
+
return T === xt;
|
|
8462
8407
|
});
|
|
8463
|
-
if (
|
|
8464
|
-
var ye =
|
|
8465
|
-
Z = Oe(
|
|
8466
|
-
} else et(O) || (Z =
|
|
8408
|
+
if (he < 0 && (_.container === T || Pt(T, r.tabbableOptions) && !Be(T, r.tabbableOptions) && !_.nextTabbableNode(T)) && (he = U), he >= 0) {
|
|
8409
|
+
var ye = he === l.tabbableGroups.length - 1 ? 0 : he + 1, Qe = l.tabbableGroups[ye];
|
|
8410
|
+
Z = Oe(T) >= 0 ? Qe.firstTabbableNode : Qe.firstDomTabbableNode;
|
|
8411
|
+
} else et(O) || (Z = _.nextTabbableNode(T));
|
|
8467
8412
|
}
|
|
8468
8413
|
} else
|
|
8469
8414
|
Z = c("fallbackFocus");
|
|
8470
8415
|
return Z;
|
|
8471
|
-
},
|
|
8472
|
-
var
|
|
8473
|
-
if (!(u(
|
|
8416
|
+
}, x = function(I) {
|
|
8417
|
+
var T = rt(I);
|
|
8418
|
+
if (!(u(T, I) >= 0)) {
|
|
8474
8419
|
if (Je(r.clickOutsideDeactivates, I)) {
|
|
8475
8420
|
o.deactivate({
|
|
8476
8421
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
@@ -8486,9 +8431,9 @@ var Yn = {
|
|
|
8486
8431
|
Je(r.allowOutsideClick, I) || I.preventDefault();
|
|
8487
8432
|
}
|
|
8488
8433
|
}, D = function(I) {
|
|
8489
|
-
var
|
|
8490
|
-
if (O ||
|
|
8491
|
-
O && (l.mostRecentlyFocusedNode =
|
|
8434
|
+
var T = rt(I), O = u(T, I) >= 0;
|
|
8435
|
+
if (O || T instanceof Document)
|
|
8436
|
+
O && (l.mostRecentlyFocusedNode = T);
|
|
8492
8437
|
else {
|
|
8493
8438
|
I.stopImmediatePropagation();
|
|
8494
8439
|
var V, P = !0;
|
|
@@ -8496,10 +8441,10 @@ var Yn = {
|
|
|
8496
8441
|
if (Oe(l.mostRecentlyFocusedNode) > 0) {
|
|
8497
8442
|
var Z = u(l.mostRecentlyFocusedNode), U = l.containerGroups[Z].tabbableNodes;
|
|
8498
8443
|
if (U.length > 0) {
|
|
8499
|
-
var
|
|
8444
|
+
var _ = U.findIndex(function(ne) {
|
|
8500
8445
|
return ne === l.mostRecentlyFocusedNode;
|
|
8501
8446
|
});
|
|
8502
|
-
|
|
8447
|
+
_ >= 0 && (r.isKeyForward(l.recentNavEvent) ? _ + 1 < U.length && (V = U[_ + 1], P = !1) : _ - 1 >= 0 && (V = U[_ - 1], P = !1));
|
|
8503
8448
|
}
|
|
8504
8449
|
} else
|
|
8505
8450
|
l.containerGroups.some(function(ne) {
|
|
@@ -8518,48 +8463,48 @@ var Yn = {
|
|
|
8518
8463
|
}
|
|
8519
8464
|
l.recentNavEvent = void 0;
|
|
8520
8465
|
}, k = function(I) {
|
|
8521
|
-
var
|
|
8466
|
+
var T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
8522
8467
|
l.recentNavEvent = I;
|
|
8523
8468
|
var O = C({
|
|
8524
8469
|
event: I,
|
|
8525
|
-
isBackward:
|
|
8470
|
+
isBackward: T
|
|
8526
8471
|
});
|
|
8527
8472
|
O && (et(I) && I.preventDefault(), f(O));
|
|
8528
|
-
},
|
|
8473
|
+
}, N = function(I) {
|
|
8529
8474
|
(r.isKeyForward(I) || r.isKeyBackward(I)) && k(I, r.isKeyBackward(I));
|
|
8530
8475
|
}, S = function(I) {
|
|
8531
|
-
|
|
8532
|
-
},
|
|
8533
|
-
var
|
|
8534
|
-
u(
|
|
8476
|
+
Lf(I) && Je(r.escapeDeactivates, I) !== !1 && (I.preventDefault(), o.deactivate());
|
|
8477
|
+
}, L = function(I) {
|
|
8478
|
+
var T = rt(I);
|
|
8479
|
+
u(T, I) >= 0 || Je(r.clickOutsideDeactivates, I) || Je(r.allowOutsideClick, I) || (I.preventDefault(), I.stopImmediatePropagation());
|
|
8535
8480
|
}, W = function() {
|
|
8536
8481
|
if (l.active)
|
|
8537
8482
|
return Yn.activateTrap(i, o), l.delayInitialFocusTimer = r.delayInitialFocus ? Kn(function() {
|
|
8538
8483
|
f(v());
|
|
8539
|
-
}) : f(v()), a.addEventListener("focusin", D, !0), a.addEventListener("mousedown",
|
|
8484
|
+
}) : f(v()), a.addEventListener("focusin", D, !0), a.addEventListener("mousedown", x, {
|
|
8540
8485
|
capture: !0,
|
|
8541
8486
|
passive: !1
|
|
8542
|
-
}), a.addEventListener("touchstart",
|
|
8487
|
+
}), a.addEventListener("touchstart", x, {
|
|
8543
8488
|
capture: !0,
|
|
8544
8489
|
passive: !1
|
|
8545
|
-
}), a.addEventListener("click",
|
|
8490
|
+
}), a.addEventListener("click", L, {
|
|
8546
8491
|
capture: !0,
|
|
8547
8492
|
passive: !1
|
|
8548
|
-
}), a.addEventListener("keydown",
|
|
8493
|
+
}), a.addEventListener("keydown", N, {
|
|
8549
8494
|
capture: !0,
|
|
8550
8495
|
passive: !1
|
|
8551
8496
|
}), a.addEventListener("keydown", S), o;
|
|
8552
8497
|
}, K = function() {
|
|
8553
8498
|
if (l.active)
|
|
8554
|
-
return a.removeEventListener("focusin", D, !0), a.removeEventListener("mousedown",
|
|
8499
|
+
return a.removeEventListener("focusin", D, !0), a.removeEventListener("mousedown", x, !0), a.removeEventListener("touchstart", x, !0), a.removeEventListener("click", L, !0), a.removeEventListener("keydown", N, !0), a.removeEventListener("keydown", S), o;
|
|
8555
8500
|
}, Q = function(I) {
|
|
8556
|
-
var
|
|
8501
|
+
var T = I.some(function(O) {
|
|
8557
8502
|
var V = Array.from(O.removedNodes);
|
|
8558
8503
|
return V.some(function(P) {
|
|
8559
8504
|
return P === l.mostRecentlyFocusedNode;
|
|
8560
8505
|
});
|
|
8561
8506
|
});
|
|
8562
|
-
|
|
8507
|
+
T && f(v());
|
|
8563
8508
|
}, B = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0, h = function() {
|
|
8564
8509
|
B && (B.disconnect(), l.active && !l.paused && l.containers.map(function(I) {
|
|
8565
8510
|
B.observe(I, {
|
|
@@ -8578,8 +8523,8 @@ var Yn = {
|
|
|
8578
8523
|
activate: function(I) {
|
|
8579
8524
|
if (l.active)
|
|
8580
8525
|
return this;
|
|
8581
|
-
var
|
|
8582
|
-
V || y(), l.active = !0, l.paused = !1, l.nodeFocusedBeforeActivation = m(a),
|
|
8526
|
+
var T = s(I, "onActivate"), O = s(I, "onPostActivate"), V = s(I, "checkCanFocusTrap");
|
|
8527
|
+
V || y(), l.active = !0, l.paused = !1, l.nodeFocusedBeforeActivation = m(a), T == null || T();
|
|
8583
8528
|
var P = function() {
|
|
8584
8529
|
V && y(), W(), h(), O == null || O();
|
|
8585
8530
|
};
|
|
@@ -8588,13 +8533,13 @@ var Yn = {
|
|
|
8588
8533
|
deactivate: function(I) {
|
|
8589
8534
|
if (!l.active)
|
|
8590
8535
|
return this;
|
|
8591
|
-
var
|
|
8536
|
+
var T = Zn({
|
|
8592
8537
|
onDeactivate: r.onDeactivate,
|
|
8593
8538
|
onPostDeactivate: r.onPostDeactivate,
|
|
8594
8539
|
checkCanReturnFocus: r.checkCanReturnFocus
|
|
8595
8540
|
}, I);
|
|
8596
8541
|
clearTimeout(l.delayInitialFocusTimer), l.delayInitialFocusTimer = void 0, K(), l.active = !1, l.paused = !1, h(), Yn.deactivateTrap(i, o);
|
|
8597
|
-
var O = s(
|
|
8542
|
+
var O = s(T, "onDeactivate"), V = s(T, "onPostDeactivate"), P = s(T, "checkCanReturnFocus"), Z = s(T, "returnFocus", "returnFocusOnDeactivate");
|
|
8598
8543
|
O == null || O();
|
|
8599
8544
|
var U = function() {
|
|
8600
8545
|
Kn(function() {
|
|
@@ -8610,8 +8555,8 @@ var Yn = {
|
|
|
8610
8555
|
return l.active ? (l.manuallyPaused = !1, i[i.length - 1] !== this ? this : this._setPausedState(!1, I)) : this;
|
|
8611
8556
|
},
|
|
8612
8557
|
updateContainerElements: function(I) {
|
|
8613
|
-
var
|
|
8614
|
-
return l.containers =
|
|
8558
|
+
var T = [].concat(I).filter(Boolean);
|
|
8559
|
+
return l.containers = T.map(function(O) {
|
|
8615
8560
|
return typeof O == "string" ? a.querySelector(O) : O;
|
|
8616
8561
|
}), l.active && y(), h(), this;
|
|
8617
8562
|
}
|
|
@@ -8622,14 +8567,14 @@ var Yn = {
|
|
|
8622
8567
|
}
|
|
8623
8568
|
},
|
|
8624
8569
|
_setPausedState: {
|
|
8625
|
-
value: function(I,
|
|
8570
|
+
value: function(I, T) {
|
|
8626
8571
|
if (l.paused === I)
|
|
8627
8572
|
return this;
|
|
8628
8573
|
if (l.paused = I, I) {
|
|
8629
|
-
var O = s(
|
|
8574
|
+
var O = s(T, "onPause"), V = s(T, "onPostPause");
|
|
8630
8575
|
O == null || O(), K(), h(), V == null || V();
|
|
8631
8576
|
} else {
|
|
8632
|
-
var P = s(
|
|
8577
|
+
var P = s(T, "onUnpause"), Z = s(T, "onPostUnpause");
|
|
8633
8578
|
P == null || P(), y(), W(), h(), Z == null || Z();
|
|
8634
8579
|
}
|
|
8635
8580
|
return this;
|
|
@@ -8637,12 +8582,12 @@ var Yn = {
|
|
|
8637
8582
|
}
|
|
8638
8583
|
}), o.updateContainerElements(t), o;
|
|
8639
8584
|
};
|
|
8640
|
-
function
|
|
8585
|
+
function zf(e, t) {
|
|
8641
8586
|
let n = null;
|
|
8642
8587
|
function a() {
|
|
8643
8588
|
!e.value || !e.value.querySelector(
|
|
8644
8589
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
8645
|
-
) || (n =
|
|
8590
|
+
) || (n = Sf(e.value, {
|
|
8646
8591
|
escapeDeactivates: !0,
|
|
8647
8592
|
onDeactivate: t,
|
|
8648
8593
|
returnFocusOnDeactivate: !0,
|
|
@@ -8657,14 +8602,14 @@ function Pf(e, t) {
|
|
|
8657
8602
|
cleanupFocusTrap: i
|
|
8658
8603
|
};
|
|
8659
8604
|
}
|
|
8660
|
-
function
|
|
8605
|
+
function Cv(e) {
|
|
8661
8606
|
ue(() => {
|
|
8662
8607
|
document.documentElement.style.setProperty("--global-background-color", e);
|
|
8663
8608
|
}), ve(() => {
|
|
8664
8609
|
document.documentElement.style.setProperty("--global-background-color", "var(--default-global-background-color)");
|
|
8665
8610
|
});
|
|
8666
8611
|
}
|
|
8667
|
-
const
|
|
8612
|
+
const Bf = { class: "av-popover-wrapper" }, jf = /* @__PURE__ */ j({
|
|
8668
8613
|
__name: "AvPopover",
|
|
8669
8614
|
props: {
|
|
8670
8615
|
width: { default: "12.5rem" },
|
|
@@ -8675,7 +8620,7 @@ const Wf = { class: "av-popover-wrapper" }, Vf = /* @__PURE__ */ j({
|
|
|
8675
8620
|
v19879f70: v.width,
|
|
8676
8621
|
v5623eb3b: v.padding
|
|
8677
8622
|
}));
|
|
8678
|
-
const n = q(null), a = q(null), { showPopover: i, popoverPosition: r, togglePopover: l, closePopover: o } =
|
|
8623
|
+
const n = q(null), a = q(null), { showPopover: i, popoverPosition: r, togglePopover: l, closePopover: o } = tf(n, a), { initializeFocusTrap: s, cleanupFocusTrap: u } = zf(a, o);
|
|
8679
8624
|
function c(v) {
|
|
8680
8625
|
if (!v) {
|
|
8681
8626
|
n.value = null;
|
|
@@ -8692,12 +8637,12 @@ const Wf = { class: "av-popover-wrapper" }, Vf = /* @__PURE__ */ j({
|
|
|
8692
8637
|
v ? (await De(), s()) : u();
|
|
8693
8638
|
}), Jt(() => {
|
|
8694
8639
|
u();
|
|
8695
|
-
}), (v, y) => (A(), g("div",
|
|
8640
|
+
}), (v, y) => (A(), g("div", Bf, [
|
|
8696
8641
|
p("div", {
|
|
8697
8642
|
ref: c,
|
|
8698
8643
|
class: "av-popover-trigger-wrapper"
|
|
8699
8644
|
}, [
|
|
8700
|
-
|
|
8645
|
+
F(v.$slots, "trigger", { toggle: d(l) }, void 0, !0)
|
|
8701
8646
|
]),
|
|
8702
8647
|
(A(), R(_n, { to: "body" }, [
|
|
8703
8648
|
d(i) ? (A(), g("div", {
|
|
@@ -8713,72 +8658,185 @@ const Wf = { class: "av-popover-wrapper" }, Vf = /* @__PURE__ */ j({
|
|
|
8713
8658
|
["prevent"]
|
|
8714
8659
|
), ["esc"]))
|
|
8715
8660
|
}, [
|
|
8716
|
-
|
|
8661
|
+
F(v.$slots, "popover", { close: d(o) }, void 0, !0)
|
|
8717
8662
|
], 36)) : w("", !0)
|
|
8718
8663
|
]))
|
|
8719
8664
|
]));
|
|
8720
8665
|
}
|
|
8721
|
-
}),
|
|
8666
|
+
}), Pf = /* @__PURE__ */ Y(jf, [["__scopeId", "data-v-08e87c92"]]), Wf = { class: "av-dropdown" }, Vf = /* @__PURE__ */ j({
|
|
8667
|
+
__name: "AvDropdown",
|
|
8668
|
+
props: {
|
|
8669
|
+
items: {},
|
|
8670
|
+
triggerAriaLabel: {},
|
|
8671
|
+
triggerIcon: { default: () => $.DOTS_VERTICAL },
|
|
8672
|
+
triggerLabel: {},
|
|
8673
|
+
triggerVariant: { default: "OUTLINED" },
|
|
8674
|
+
triggerSize: { default: "sm" },
|
|
8675
|
+
width: { default: "15rem" },
|
|
8676
|
+
padding: { default: "var(--spacing-xs)" },
|
|
8677
|
+
itemSize: { default: "sm" },
|
|
8678
|
+
itemTheme: { default: "SECONDARY" },
|
|
8679
|
+
itemIconScale: { default: 1.3 }
|
|
8680
|
+
},
|
|
8681
|
+
emits: ["itemSelected"],
|
|
8682
|
+
setup(e, { emit: t }) {
|
|
8683
|
+
const n = t;
|
|
8684
|
+
function a(i, r) {
|
|
8685
|
+
n("itemSelected", i), r();
|
|
8686
|
+
}
|
|
8687
|
+
return (i, r) => (A(), R(Pf, {
|
|
8688
|
+
width: e.width,
|
|
8689
|
+
padding: e.padding
|
|
8690
|
+
}, {
|
|
8691
|
+
trigger: G(({ toggle: l }) => [
|
|
8692
|
+
X(me, {
|
|
8693
|
+
icon: e.triggerIcon,
|
|
8694
|
+
label: e.triggerLabel || e.triggerAriaLabel,
|
|
8695
|
+
"aria-label": e.triggerAriaLabel,
|
|
8696
|
+
variant: e.triggerVariant,
|
|
8697
|
+
size: e.triggerSize,
|
|
8698
|
+
onClick: l
|
|
8699
|
+
}, null, 8, ["icon", "label", "aria-label", "variant", "size", "onClick"])
|
|
8700
|
+
]),
|
|
8701
|
+
popover: G(({ close: l }) => [
|
|
8702
|
+
p("div", Wf, [
|
|
8703
|
+
(A(!0), g(J, null, ae(e.items, (o) => (A(), R(me, {
|
|
8704
|
+
key: o.name,
|
|
8705
|
+
class: "av-dropdown__menu-item",
|
|
8706
|
+
icon: o.icon,
|
|
8707
|
+
label: o.label,
|
|
8708
|
+
"aria-label": o.label,
|
|
8709
|
+
size: e.itemSize,
|
|
8710
|
+
theme: e.itemTheme,
|
|
8711
|
+
"icon-scale": e.itemIconScale,
|
|
8712
|
+
"no-radius": "",
|
|
8713
|
+
onClick: (s) => a(o.name, l)
|
|
8714
|
+
}, null, 8, ["icon", "label", "aria-label", "size", "theme", "icon-scale", "onClick"]))), 128))
|
|
8715
|
+
])
|
|
8716
|
+
]),
|
|
8717
|
+
_: 1
|
|
8718
|
+
}, 8, ["width", "padding"]));
|
|
8719
|
+
}
|
|
8720
|
+
}), Ev = /* @__PURE__ */ Y(Vf, [["__scopeId", "data-v-59887d17"]]), Uf = {
|
|
8721
|
+
key: 0,
|
|
8722
|
+
class: "header"
|
|
8723
|
+
}, Hf = { class: "footer" }, Ff = /* @__PURE__ */ j({
|
|
8724
|
+
__name: "AvModal",
|
|
8725
|
+
props: {
|
|
8726
|
+
modalId: {},
|
|
8727
|
+
opened: { type: Boolean },
|
|
8728
|
+
isAlert: { type: Boolean },
|
|
8729
|
+
origin: {},
|
|
8730
|
+
icon: {},
|
|
8731
|
+
size: {},
|
|
8732
|
+
closeButtonLabel: {},
|
|
8733
|
+
closeButtonIcon: {},
|
|
8734
|
+
closeButtonDisabled: { type: Boolean },
|
|
8735
|
+
confirmButtonLabel: {},
|
|
8736
|
+
confirmButtonIcon: {},
|
|
8737
|
+
confirmButtonDisabled: { type: Boolean },
|
|
8738
|
+
isLoading: { type: Boolean }
|
|
8739
|
+
},
|
|
8740
|
+
emits: ["close", "confirm"],
|
|
8741
|
+
setup(e, { emit: t }) {
|
|
8742
|
+
const n = Gn(e, ["isLoading"]), a = t, i = ge(), r = E(() => n.closeButtonIcon ?? $.CLOSE_CIRCLE_OUTLINE), l = E(() => n.confirmButtonIcon ?? $.CHECK_CIRCLE_OUTLINE);
|
|
8743
|
+
return (o, s) => {
|
|
8744
|
+
const u = Hc, c = Hs;
|
|
8745
|
+
return A(), R(_n, { to: "body" }, [
|
|
8746
|
+
X(c, te(n, {
|
|
8747
|
+
title: "",
|
|
8748
|
+
onKeydown: s[2] || (s[2] = Ae((v) => a("close"), ["esc"]))
|
|
8749
|
+
}), {
|
|
8750
|
+
default: G(() => [
|
|
8751
|
+
i.header ? (A(), g("div", Uf, [
|
|
8752
|
+
F(o.$slots, "header", {}, void 0, !0)
|
|
8753
|
+
])) : w("", !0),
|
|
8754
|
+
F(o.$slots, "default", {}, void 0, !0)
|
|
8755
|
+
]),
|
|
8756
|
+
footer: G(() => [
|
|
8757
|
+
p("div", Hf, [
|
|
8758
|
+
X(u, {
|
|
8759
|
+
"cancel-label": n.closeButtonLabel,
|
|
8760
|
+
"cancel-icon": d(r),
|
|
8761
|
+
"cancel-disabled": n.closeButtonDisabled,
|
|
8762
|
+
"cancel-is-loading": e.isLoading,
|
|
8763
|
+
"confirm-label": n.confirmButtonLabel,
|
|
8764
|
+
"confirm-icon": d(l),
|
|
8765
|
+
"confirm-disabled": n.confirmButtonDisabled,
|
|
8766
|
+
"confirm-is-loading": e.isLoading,
|
|
8767
|
+
onCancel: s[0] || (s[0] = () => a("close")),
|
|
8768
|
+
onConfirm: s[1] || (s[1] = () => a("confirm"))
|
|
8769
|
+
}, null, 8, ["cancel-label", "cancel-icon", "cancel-disabled", "cancel-is-loading", "confirm-label", "confirm-icon", "confirm-disabled", "confirm-is-loading"]),
|
|
8770
|
+
F(o.$slots, "footer", {}, void 0, !0)
|
|
8771
|
+
])
|
|
8772
|
+
]),
|
|
8773
|
+
_: 3
|
|
8774
|
+
}, 16)
|
|
8775
|
+
]);
|
|
8776
|
+
};
|
|
8777
|
+
}
|
|
8778
|
+
}), Mv = /* @__PURE__ */ Y(Ff, [["__scopeId", "data-v-aef6262c"]]);
|
|
8722
8779
|
export {
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8780
|
+
nf as AV_BREAKPOINTS,
|
|
8781
|
+
tv as AvAccordion,
|
|
8782
|
+
nv as AvAccordionsGroup,
|
|
8726
8783
|
Qr as AvAlert,
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8784
|
+
sv as AvAutocomplete,
|
|
8785
|
+
Xf as AvBadge,
|
|
8786
|
+
vv as AvBreadcrumb,
|
|
8787
|
+
me as AvButton,
|
|
8788
|
+
Hc as AvCancelConfirmButtons,
|
|
8789
|
+
Yf as AvCard,
|
|
8733
8790
|
_c as AvCheckbox,
|
|
8734
|
-
|
|
8791
|
+
yv as AvDrawer,
|
|
8792
|
+
Ev as AvDropdown,
|
|
8735
8793
|
ur as AvFieldset,
|
|
8736
|
-
|
|
8737
|
-
|
|
8794
|
+
iv as AvFileUpload,
|
|
8795
|
+
_f as AvHeader,
|
|
8738
8796
|
Mn as AvHeaderMenuLinks,
|
|
8739
8797
|
se as AvIcon,
|
|
8740
8798
|
Ar as AvIconText,
|
|
8741
8799
|
rn as AvInput,
|
|
8742
|
-
|
|
8743
|
-
|
|
8800
|
+
Tn as AvLanguageSelector,
|
|
8801
|
+
Na as AvList,
|
|
8744
8802
|
ka as AvListItem,
|
|
8745
|
-
|
|
8746
|
-
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8751
|
-
|
|
8752
|
-
|
|
8803
|
+
Hr as AvLogo,
|
|
8804
|
+
Mv as AvModal,
|
|
8805
|
+
cv as AvMultiselect,
|
|
8806
|
+
mv as AvNavigation,
|
|
8807
|
+
Zf as AvNotice,
|
|
8808
|
+
lv as AvPageSizePicker,
|
|
8809
|
+
gv as AvPagination,
|
|
8810
|
+
Pf as AvPopover,
|
|
8753
8811
|
wu as AvRadioButton,
|
|
8754
|
-
|
|
8755
|
-
|
|
8812
|
+
ov as AvRadioButtonSet,
|
|
8813
|
+
av as AvRichButton,
|
|
8756
8814
|
Qn as AvSearchBar,
|
|
8757
|
-
|
|
8815
|
+
uv as AvSelect,
|
|
8758
8816
|
PA as AvSideMenu,
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
|
|
8762
|
-
|
|
8817
|
+
bv as AvSideNavigation,
|
|
8818
|
+
Iv as AvStepper,
|
|
8819
|
+
dv as AvTab,
|
|
8820
|
+
Av as AvTabs,
|
|
8763
8821
|
rr as AvTag,
|
|
8764
|
-
|
|
8765
|
-
|
|
8766
|
-
|
|
8822
|
+
Tu as AvTagPicker,
|
|
8823
|
+
$f as AvToaster,
|
|
8824
|
+
fv as AvToggle,
|
|
8767
8825
|
je as DropdownState,
|
|
8768
|
-
|
|
8769
|
-
|
|
8770
|
-
|
|
8826
|
+
ev as EsupLogo,
|
|
8827
|
+
Gf as ICONS_DATA_URL,
|
|
8828
|
+
$ as MDI_ICONS,
|
|
8771
8829
|
wa as PageSizes,
|
|
8772
|
-
|
|
8830
|
+
Kf as RI_ICONS,
|
|
8773
8831
|
fr as formatTextToHtml,
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8832
|
+
hv as getPaginationPages,
|
|
8833
|
+
Jf as isValidEmail,
|
|
8834
|
+
rv as pageSizeValues,
|
|
8777
8835
|
Vo as registerNavigationLinkKey,
|
|
8778
8836
|
Er as removeDuplicates,
|
|
8779
8837
|
vr as toSentenceCase,
|
|
8780
|
-
|
|
8838
|
+
pv as useAvBreakpoints,
|
|
8781
8839
|
an as useCollapsable,
|
|
8782
|
-
|
|
8783
|
-
|
|
8840
|
+
zf as useFocusTrap,
|
|
8841
|
+
Cv as useGlobalBackgroundColor
|
|
8784
8842
|
};
|