@avenirs-esr/avenirs-dsav 0.1.39 → 0.1.40
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/avenirs-dsav.es.js +982 -977
- package/dist/avenirs-dsav.umd.js +7 -7
- package/dist/utils/string/string.d.ts +6 -0
- package/package.json +1 -1
- package/src/styles/breakpoints.scss +32 -0
- package/src/styles/main.scss +1 -0
package/dist/avenirs-dsav.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DsfrBadge as
|
|
2
|
-
import { registerNavigationLinkKey as
|
|
3
|
-
import { defineComponent as S, useCssVars as re, computed as p, createBlock as x, openBlock as u, mergeProps as ee, unref as
|
|
4
|
-
const
|
|
1
|
+
import { DsfrBadge as ta, VIcon as aa, DsfrNotice as na, DsfrButton as ra, registerNavigationLinkKey as Aa, DsfrLanguageSelector as ia, DsfrSearchBar as oa, DsfrAccordionsGroup as la, DsfrAccordion as sa, useRandomId as ca, DsfrInput as ua, DsfrTag as da, DsfrRadioButtonSet as fa, DsfrRadioButton as va, DsfrMultiselect as ma, DsfrSelect as ga, DsfrTabs as Ia, DsfrTabContent as ha, DsfrTabItem as ba, DsfrNavigation as Ca, DsfrModal as ya } from "@gouvminint/vue-dsfr";
|
|
2
|
+
import { registerNavigationLinkKey as ls } from "@gouvminint/vue-dsfr";
|
|
3
|
+
import { defineComponent as S, useCssVars as re, computed as p, createBlock as x, openBlock as u, mergeProps as ee, unref as o, createPropsRestProxy as Lt, createElementBlock as g, createVNode as P, normalizeClass as F, createElementVNode as y, toDisplayString as Z, withCtx as Y, useSlots as ie, normalizeStyle as Ve, createCommentVNode as O, renderSlot as B, resolveDynamicComponent as ue, createTextVNode as rt, TransitionGroup as Ea, Fragment as _, renderList as ne, toRef as Ma, ref as J, onMounted as xe, onUnmounted as je, provide as St, resolveComponent as pa, withModifiers as se, mergeModels as ve, useModel as ke, nextTick as Re, createSlots as Le, watch as ce, isRef as At, inject as Na, getCurrentScope as Ta, onScopeDispose as Qa, getCurrentInstance as kt, toValue as te, shallowRef as Pe, reactive as dt, normalizeProps as Da, guardReactiveProps as Oa, toRefs as it, withKeys as ot, Teleport as zt, onBeforeUnmount as wa } from "vue";
|
|
4
|
+
const ml = {
|
|
5
5
|
name: "AvBadge",
|
|
6
6
|
template: '<div class="av-badge"/>',
|
|
7
7
|
props: {
|
|
@@ -18,7 +18,7 @@ const vl = {
|
|
|
18
18
|
backgroundColor: String,
|
|
19
19
|
iconPath: String
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, La = /* @__PURE__ */ S({
|
|
22
22
|
__name: "AvBadge",
|
|
23
23
|
props: {
|
|
24
24
|
color: {},
|
|
@@ -41,10 +41,10 @@ const vl = {
|
|
|
41
41
|
"--icon-path": `url(${t.iconPath})`
|
|
42
42
|
}));
|
|
43
43
|
return (r, i) => {
|
|
44
|
-
const A =
|
|
44
|
+
const A = ta;
|
|
45
45
|
return u(), x(A, ee(t, {
|
|
46
|
-
class: ["av-badge", [
|
|
47
|
-
style:
|
|
46
|
+
class: ["av-badge", [o(a)]],
|
|
47
|
+
style: o(n)
|
|
48
48
|
}), null, 16, ["class", "style"]);
|
|
49
49
|
};
|
|
50
50
|
}
|
|
@@ -53,7 +53,7 @@ const vl = {
|
|
|
53
53
|
for (const [n, r] of t)
|
|
54
54
|
a[n] = r;
|
|
55
55
|
return a;
|
|
56
|
-
},
|
|
56
|
+
}, gl = /* @__PURE__ */ V(La, [["__scopeId", "data-v-844b9e93"]]), Sa = { class: "av-icon-vicon--container" }, ka = 16 / 19.19, za = /* @__PURE__ */ S({
|
|
57
57
|
__name: "AvVIcon",
|
|
58
58
|
props: {
|
|
59
59
|
size: { default: 1 },
|
|
@@ -70,17 +70,17 @@ const vl = {
|
|
|
70
70
|
},
|
|
71
71
|
setup(e) {
|
|
72
72
|
re((r) => ({
|
|
73
|
-
v53885778:
|
|
73
|
+
v53885778: o(n)
|
|
74
74
|
}));
|
|
75
|
-
const t =
|
|
75
|
+
const t = Lt(e, ["size"]), a = p(() => ka * e.size), n = p(() => `${e.size}rem`);
|
|
76
76
|
return (r, i) => {
|
|
77
|
-
const A =
|
|
78
|
-
return u(), g("div",
|
|
79
|
-
P(A, ee(t, { scale:
|
|
77
|
+
const A = aa;
|
|
78
|
+
return u(), g("div", Sa, [
|
|
79
|
+
P(A, ee(t, { scale: o(a) }), null, 16, ["scale"])
|
|
80
80
|
]);
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
}), ae = /* @__PURE__ */ V(
|
|
83
|
+
}), ae = /* @__PURE__ */ V(za, [["__scopeId", "data-v-bc7be51b"]]), xa = /* @__PURE__ */ S({
|
|
84
84
|
__name: "AvIconText",
|
|
85
85
|
props: {
|
|
86
86
|
textColor: { default: "var(--text1)" },
|
|
@@ -98,24 +98,27 @@ const vl = {
|
|
|
98
98
|
}));
|
|
99
99
|
const t = p(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), a = p(() => e.inline ? void 0 : "ellipsis-container"), n = p(() => e.inline ? void 0 : "ellipsis");
|
|
100
100
|
return (r, i) => (u(), g("div", {
|
|
101
|
-
class: F(["icon-text--container", [
|
|
101
|
+
class: F(["icon-text--container", [o(a)]])
|
|
102
102
|
}, [
|
|
103
103
|
P(ae, {
|
|
104
104
|
class: "icon-text--icon",
|
|
105
105
|
name: e.icon,
|
|
106
106
|
color: e.iconColor,
|
|
107
|
-
size:
|
|
107
|
+
size: o(t)
|
|
108
108
|
}, null, 8, ["name", "color", "size"]),
|
|
109
109
|
y("span", {
|
|
110
|
-
class: F(["icon-text--text", [
|
|
110
|
+
class: F(["icon-text--text", [o(n), e.typographyClass]])
|
|
111
111
|
}, Z(e.text), 3)
|
|
112
112
|
], 2));
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
115
|
-
function
|
|
114
|
+
}), ja = /* @__PURE__ */ V(xa, [["__scopeId", "data-v-dec33472"]]);
|
|
115
|
+
function Ba(e, t = "var(--dark-background-primary1)") {
|
|
116
116
|
return e.replace(/###(.+?)###/gs, `<h1 style="display:flex;flex-direction:row;justify-content:start;font-size:var(--font-size-n6);line-height:var(--line-height-n5);color:${t}">$1</h1>`).replace(/@@([\s\S]+?)@@/g, "<div>$1</div>").replace(/^\s*--\s+(.*)$/gm, '<li class="indented-list">$1</li>').replace(/(\r\n|\n|\r|\\n|\\r)/g, '<div class="line-break"></div>').replace(/__(.+?)__/g, '<span class="text-underline">$1</span>').replace(/\*\*(.+?)\*\*/g, `<strong style="color: ${t}">$1</strong>`);
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
function Je(e) {
|
|
119
|
+
return e ? e[0].toUpperCase() + e.slice(1).toLowerCase() : "";
|
|
120
|
+
}
|
|
121
|
+
const Pa = ["innerHTML"], Il = /* @__PURE__ */ S({
|
|
119
122
|
__name: "AvNotice",
|
|
120
123
|
props: {
|
|
121
124
|
title: { default: "" },
|
|
@@ -123,28 +126,28 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
123
126
|
type: {}
|
|
124
127
|
},
|
|
125
128
|
setup(e) {
|
|
126
|
-
const t = p(() =>
|
|
127
|
-
return (a, n) => (u(), x(
|
|
129
|
+
const t = p(() => Ba(e.text));
|
|
130
|
+
return (a, n) => (u(), x(o(na), {
|
|
128
131
|
title: e.title,
|
|
129
132
|
type: e.type
|
|
130
133
|
}, {
|
|
131
134
|
desc: Y(() => [
|
|
132
|
-
y("span", { innerHTML:
|
|
135
|
+
y("span", { innerHTML: o(t) }, null, 8, Pa)
|
|
133
136
|
]),
|
|
134
137
|
_: 1
|
|
135
138
|
}, 8, ["title", "type"]));
|
|
136
139
|
}
|
|
137
|
-
}),
|
|
140
|
+
}), hl = {
|
|
138
141
|
name: "AvVIcon",
|
|
139
142
|
props: ["name", "color", "size"],
|
|
140
143
|
template: '<div class="av-vicon" />'
|
|
141
|
-
},
|
|
144
|
+
}, Wa = {
|
|
142
145
|
key: 1,
|
|
143
146
|
class: "av-card__body"
|
|
144
|
-
},
|
|
147
|
+
}, Va = {
|
|
145
148
|
key: 2,
|
|
146
149
|
class: "av-card__footer"
|
|
147
|
-
},
|
|
150
|
+
}, Ua = /* @__PURE__ */ S({
|
|
148
151
|
__name: "AvCard",
|
|
149
152
|
props: {
|
|
150
153
|
backgroundColor: { default: "var(--card)" },
|
|
@@ -166,15 +169,15 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
166
169
|
B(a.$slots, "title", {}, void 0, !0)
|
|
167
170
|
], 4)) : O("", !0),
|
|
168
171
|
B(a.$slots, "default", {}, void 0, !0),
|
|
169
|
-
t.body ? (u(), g("div",
|
|
172
|
+
t.body ? (u(), g("div", Wa, [
|
|
170
173
|
B(a.$slots, "body", {}, void 0, !0)
|
|
171
174
|
])) : O("", !0),
|
|
172
|
-
t.footer ? (u(), g("div",
|
|
175
|
+
t.footer ? (u(), g("div", Va, [
|
|
173
176
|
B(a.$slots, "footer", {}, void 0, !0)
|
|
174
177
|
])) : O("", !0)
|
|
175
178
|
], 4));
|
|
176
179
|
}
|
|
177
|
-
}),
|
|
180
|
+
}), bl = /* @__PURE__ */ V(Ua, [["__scopeId", "data-v-740c9a3b"]]), R = {
|
|
178
181
|
ACCOUNT_CIRCLE_OUTLINE: "mdi:account-circle-outline",
|
|
179
182
|
ACCOUNT_STUDENT_OUTLINE: "mdi:account-student-outline",
|
|
180
183
|
ALERT_CIRCLE_OUTLINE: "mdi:alert-circle-outline",
|
|
@@ -246,10 +249,10 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
246
249
|
TRAY_UPLOAD: "mdi:tray-upload",
|
|
247
250
|
VECTOR_POLYGON_VARIANT: "mdi:vector-polygon-variant",
|
|
248
251
|
WARNING_OUTLINE: "mdi:warning-outline"
|
|
249
|
-
},
|
|
252
|
+
}, Cl = {
|
|
250
253
|
DICE_1_LINE: "ri:dice-1-line",
|
|
251
254
|
DICE_4_LINE: "ri:dice-4-line"
|
|
252
|
-
},
|
|
255
|
+
}, yl = {
|
|
253
256
|
AMS_SAE: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgZmlsbD0iY3VycmVudENvbG9yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNS4yNSAxNy41SDExLjM3NVYxOS4yNUg1LjI1QzQuMjc4NzUgMTkuMjUgMy41IDE4LjQ3MTMgMy41IDE3LjVWMy41QzMuNSAzLjAzNTg3IDMuNjg0MzcgMi41OTA3NSA0LjAxMjU2IDIuMjYyNTZDNC4zNDA3NSAxLjkzNDM3IDQuNzg1ODcgMS43NSA1LjI1IDEuNzVIMTUuNzVDMTYuMjE0MSAxLjc1IDE2LjY1OTIgMS45MzQzNyAxNi45ODc0IDIuMjYyNTZDMTcuMzE1NiAyLjU5MDc1IDE3LjUgMy4wMzU4NyAxNy41IDMuNVYxMC45NzI1TDE2LjE4NzUgMTAuMjU1TDE1Ljc1IDEwLjVWMy41SDExLjM3NVYxMC41TDkuMTg3NSA4LjUzMTI1TDcgMTAuNVYzLjVINS4yNVYxNy41Wk0yMSAxNC44NzVMMTYuMTg3NSAxMi4yNUwxMS4zNzUgMTQuODc1TDE2LjE4NzUgMTcuNUwyMSAxNC44NzVaTTEzLjEyNSAxNi43MDM4VjE4LjQ1MzhMMTYuMTg3NSAyMC4xMjVMMTkuMjUgMTguNDUzOFYxNi43MDM4TDE2LjE4NzUgMTguMzc1TDEzLjEyNSAxNi43MDM4WiIgZmlsbD0iY3VycmVudENvbG9yIiAvPgo8L3N2Zz4K",
|
|
254
257
|
CLOCK_ALMOST_CHECK: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzQwMDA4NTQzXzI2OTE5IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfNDAwMDg1NDNfMjY5MTkpIj4KPHBhdGggZD0iTTguMDAwMzMgMTQuMzMyN0M3LjEyMjU1IDE0LjMzMjcgNi4yOTc2NiAxNC4xNjYgNS41MjU2NiAxMy44MzI3QzQuNzUzMjEgMTMuNDk5MyA0LjA4MzY2IDEzLjA0OTMgMy41MTY5OSAxMi40ODI3QzIuOTUwMzMgMTEuOTE2IDIuNTAwMzMgMTEuMjQ2NSAyLjE2Njk5IDEwLjQ3NEMxLjgzMzY2IDkuNzAyMDEgMS42NjY5OSA4Ljg3NzEzIDEuNjY2OTkgNy45OTkzNUMxLjY2Njk5IDcuMTIxNTcgMS44MzM2NiA2LjI5NjQ2IDIuMTY2OTkgNS41MjQwMkMyLjUwMDMzIDQuNzUyMDIgMi45NTAzMyA0LjA4MjY4IDMuNTE2OTkgMy41MTYwMkM0LjA4MzY2IDIuOTQ5MzUgNC43NTMyMSAyLjQ5OTM1IDUuNTI1NjYgMi4xNjYwMkM2LjI5NzY2IDEuODMyNjggNy4xMjI1NSAxLjY2NjAyIDguMDAwMzMgMS42NjYwMkM4Ljg3ODEgMS42NjYwMiA5LjcwMzIxIDEuODMyNjggMTAuNDc1NyAyLjE2NjAyQzExLjI0NzcgMi40OTkzNSAxMS45MTcgMi45NDkzNSAxMi40ODM3IDMuNTE2MDJDMTMuMDUwMyA0LjA4MjY4IDEzLjUwMDMgNC43NTIwMiAxMy44MzM3IDUuNTI0MDJDMTQuMTY3IDYuMjk2NDYgMTQuMzMzNyA3LjEyMTU3IDE0LjMzMzcgNy45OTkzNUMxNC4zMzM3IDguODc3MTMgMTQuMTY3IDkuNzAyMDEgMTMuODMzNyAxMC40NzRDMTMuNTAwMyAxMS4yNDY1IDEzLjA1MDMgMTEuOTE2IDEyLjQ4MzcgMTIuNDgyN0MxMS45MTcgMTMuMDQ5MyAxMS4yNDc3IDEzLjQ5OTMgMTAuNDc1NyAxMy44MzI3QzkuNzAzMjEgMTQuMTY2IDguODc4MSAxNC4zMzI3IDguMDAwMzMgMTQuMzMyN1pNNC4yMTY5OSA0LjIxNjAyTDguMDAwMzMgNy45OTkzNVYyLjY2NjAyQzcuMjg5MjEgMi42NjYwMiA2LjYwNTg4IDIuNzk5MzUgNS45NTAzMyAzLjA2NjAyQzUuMjk0NzcgMy4zMzI2OCA0LjcxNjk5IDMuNzE2MDIgNC4yMTY5OSA0LjIxNjAyWiIgZmlsbD0iY3VycmVudENvbG9yIi8+CjwvZz4KPC9zdmc+Cg==",
|
|
255
258
|
CLOCK_HALF_PLUS_CHECK: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzQwMDA4NTMxXzMxMzY5IiBzdHlsZT0ibWFzay10eXBlOmFscGhhIiBtYXNrVW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4PSIwIiB5PSIwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPgo8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9ImN1cnJlbnRDb2xvciIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfNDAwMDg1MzFfMzEzNjkpIj4KPHBhdGggZD0iTTguMDAwMzMgMTQuMzMyN0M3LjEyMjU1IDE0LjMzMjcgNi4yOTc2NiAxNC4xNjYgNS41MjU2NiAxMy44MzI3QzQuNzUzMjEgMTMuNDk5MyA0LjA4MzY2IDEzLjA0OTMgMy41MTY5OSAxMi40ODI3QzIuOTUwMzMgMTEuOTE2IDIuNTAwMzMgMTEuMjQ2NSAyLjE2Njk5IDEwLjQ3NEMxLjgzMzY2IDkuNzAyMDEgMS42NjY5OSA4Ljg3NzEzIDEuNjY2OTkgNy45OTkzNUMxLjY2Njk5IDcuMTIxNTcgMS44MzM2NiA2LjI5NjQ2IDIuMTY2OTkgNS41MjQwMkMyLjUwMDMzIDQuNzUyMDIgMi45NTAzMyA0LjA4MjY4IDMuNTE2OTkgMy41MTYwMkM0LjA4MzY2IDIuOTQ5MzUgNC43NTMyMSAyLjQ5OTM1IDUuNTI1NjYgMi4xNjYwMkM2LjI5NzY2IDEuODMyNjggNy4xMjI1NSAxLjY2NjAyIDguMDAwMzMgMS42NjYwMkM4Ljg3ODEgMS42NjYwMiA5LjcwMzIxIDEuODMyNjggMTAuNDc1NyAyLjE2NjAyQzExLjI0NzcgMi40OTkzNSAxMS45MTcgMi45NDkzNSAxMi40ODM3IDMuNTE2MDJDMTMuMDUwMyA0LjA4MjY4IDEzLjUwMDMgNC43NTIwMiAxMy44MzM3IDUuNTI0MDJDMTQuMTY3IDYuMjk2NDYgMTQuMzMzNyA3LjEyMTU3IDE0LjMzMzcgNy45OTkzNUMxNC4zMzM3IDguODc3MTMgMTQuMTY3IDkuNzAyMDEgMTMuODMzNyAxMC40NzRDMTMuNTAwMyAxMS4yNDY1IDEzLjA1MDMgMTEuOTE2IDEyLjQ4MzcgMTIuNDgyN0MxMS45MTcgMTMuMDQ5MyAxMS4yNDc3IDEzLjQ5OTMgMTAuNDc1NyAxMy44MzI3QzkuNzAzMjEgMTQuMTY2IDguODc4MSAxNC4zMzI3IDguMDAwMzMgMTQuMzMyN1pNNC4yMTY5OSAxMS43ODI3TDguMDAwMzMgNy45OTkzNVYyLjY2NjAyQzYuNTExNDQgMi42NjYwMiA1LjI1MDMzIDMuMTgyNjggNC4yMTY5OSA0LjIxNjAyQzMuMTgzNjYgNS4yNDkzNSAyLjY2Njk5IDYuNTEwNDYgMi42NjY5OSA3Ljk5OTM1QzIuNjY2OTkgOC43MTA0NiAyLjgwMDMzIDkuMzkzNzkgMy4wNjY5OSAxMC4wNDkzQzMuMzMzNjYgMTAuNzA0OSAzLjcxNjk5IDExLjI4MjcgNC4yMTY5OSAxMS43ODI3WiIgZmlsbD0iY3VycmVudENvbG9yIi8+CjwvZz4KPC9zdmc+Cg==",
|
|
@@ -257,7 +260,14 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
257
260
|
CLOCK_THIRD_CHECK: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzQwMDA4NDkyXzkzNDciIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+CjxyZWN0IHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF80MDAwODQ5Ml85MzQ3KSI+CjxwYXRoIGQ9Ik04LjAwMDMzIDE0LjMzMjdDNy4xMjI1NSAxNC4zMzI3IDYuMjk3NjYgMTQuMTY2IDUuNTI1NjYgMTMuODMyN0M0Ljc1MzIxIDEzLjQ5OTMgNC4wODM2NiAxMy4wNDkzIDMuNTE2OTkgMTIuNDgyN0MyLjk1MDMzIDExLjkxNiAyLjUwMDMzIDExLjI0NjUgMi4xNjY5OSAxMC40NzRDMS44MzM2NiA5LjcwMjAxIDEuNjY2OTkgOC44NzcxMyAxLjY2Njk5IDcuOTk5MzVDMS42NjY5OSA3LjEyMTU3IDEuODMzNjYgNi4yOTY0NiAyLjE2Njk5IDUuNTI0MDJDMi41MDAzMyA0Ljc1MjAyIDIuOTUwMzMgNC4wODI2OCAzLjUxNjk5IDMuNTE2MDJDNC4wODM2NiAyLjk0OTM1IDQuNzUzMjEgMi40OTkzNSA1LjUyNTY2IDIuMTY2MDJDNi4yOTc2NiAxLjgzMjY4IDcuMTIyNTUgMS42NjYwMiA4LjAwMDMzIDEuNjY2MDJDOC44NzgxIDEuNjY2MDIgOS43MDMyMSAxLjgzMjY4IDEwLjQ3NTcgMi4xNjYwMkMxMS4yNDc3IDIuNDk5MzUgMTEuOTE3IDIuOTQ5MzUgMTIuNDgzNyAzLjUxNjAyQzEzLjA1MDMgNC4wODI2OCAxMy41MDAzIDQuNzUyMDIgMTMuODMzNyA1LjUyNDAyQzE0LjE2NyA2LjI5NjQ2IDE0LjMzMzcgNy4xMjE1NyAxNC4zMzM3IDcuOTk5MzVDMTQuMzMzNyA4Ljg3NzEzIDE0LjE2NyA5LjcwMjAxIDEzLjgzMzcgMTAuNDc0QzEzLjUwMDMgMTEuMjQ2NSAxMy4wNTAzIDExLjkxNiAxMi40ODM3IDEyLjQ4MjdDMTEuOTE3IDEzLjA0OTMgMTEuMjQ3NyAxMy40OTkzIDEwLjQ3NTcgMTMuODMyN0M5LjcwMzIxIDE0LjE2NiA4Ljg3ODEgMTQuMzMyNyA4LjAwMDMzIDE0LjMzMjdaTTguMDAwMzMgMTMuMzMyN0M4LjcxMTQ0IDEzLjMzMjcgOS4zOTQ3NyAxMy4xOTkzIDEwLjA1MDMgMTIuOTMyN0MxMC43MDU5IDEyLjY2NiAxMS4yODM3IDEyLjI4MjcgMTEuNzgzNyAxMS43ODI3TDguMDAwMzMgNy45OTkzNVYyLjY2NjAyQzYuNTExNDQgMi42NjYwMiA1LjI1MDMzIDMuMTgyNjggNC4yMTY5OSA0LjIxNjAyQzMuMTgzNjYgNS4yNDkzNSAyLjY2Njk5IDYuNTEwNDYgMi42NjY5OSA3Ljk5OTM1QzIuNjY2OTkgOS40ODgyNCAzLjE4MzY2IDEwLjc0OTMgNC4yMTY5OSAxMS43ODI3QzUuMjUwMzMgMTIuODE2IDYuNTExNDQgMTMuMzMyNyA4LjAwMDMzIDEzLjMzMjdaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9nPgo8L3N2Zz4K",
|
|
258
261
|
FILE_DOCUMENT_MULTIPLE_OUTLINE: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xNiAwSDhDNi45IDAgNiAuOSA2IDJ2MTZjMCAxLjEuOSAyIDIgMmgxMmMxLjEgMCAyLS45IDItMlY2em00IDE4SDhWMmg3djVoNXpNNCA0djE4aDE2djJINGMtMS4xIDAtMi0uOS0yLTJWNHptNiA2djJoOHYtMnptMCA0djJoNXYtMnoiLz48L3N2Zz4=",
|
|
259
262
|
MDI_CHECK_CIRCLE: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xMiAyQzYuNSAyIDIgNi41IDIgMTJzNC41IDEwIDEwIDEwczEwLTQuNSAxMC0xMFMxNy41IDIgMTIgMm0tMiAxNWwtNS01bDEuNDEtMS40MUwxMCAxNC4xN2w3LjU5LTcuNTlMMTkgOHoiLz48L3N2Zz4="
|
|
260
|
-
}
|
|
263
|
+
};
|
|
264
|
+
function Xa(e) {
|
|
265
|
+
return [...new Set(e)];
|
|
266
|
+
}
|
|
267
|
+
function El(e) {
|
|
268
|
+
return /^[^\s@]+@[^\s.@]+\.[^\s@]+$/.test(e);
|
|
269
|
+
}
|
|
270
|
+
const Ha = /* @__PURE__ */ S({
|
|
261
271
|
__name: "AvButton",
|
|
262
272
|
props: {
|
|
263
273
|
variant: { default: "DEFAULT" },
|
|
@@ -275,9 +285,9 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
275
285
|
},
|
|
276
286
|
setup(e, { expose: t }) {
|
|
277
287
|
re((c) => ({
|
|
278
|
-
|
|
288
|
+
v8ea3f2fe: o(s)
|
|
279
289
|
}));
|
|
280
|
-
const a = e, n = { name: R.LOADING_OUTLINE, animation: "spin" }, r = p(() => a.isLoading ? n : a.icon), i = p(() => `av-button--variant-${a.variant.toLowerCase()}`), A = p(() => `av-button--theme-${a.theme.toLowerCase()}`),
|
|
290
|
+
const a = e, n = { name: R.LOADING_OUTLINE, animation: "spin" }, r = p(() => a.isLoading ? n : a.icon), i = p(() => `av-button--variant-${a.variant.toLowerCase()}`), A = p(() => `av-button--theme-${a.theme.toLowerCase()}`), l = p(() => a.noRadius ? "av-button--no-radius" : ""), s = p(() => {
|
|
281
291
|
if (a.iconScale && !Number.isNaN(a.iconScale))
|
|
282
292
|
return a.iconScale;
|
|
283
293
|
switch (a.size) {
|
|
@@ -294,20 +304,21 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
294
304
|
return 1.5;
|
|
295
305
|
}
|
|
296
306
|
});
|
|
297
|
-
return t({ computedSvgScale:
|
|
298
|
-
const f =
|
|
307
|
+
return t({ computedSvgScale: s }), (c, d) => {
|
|
308
|
+
const f = ra;
|
|
299
309
|
return u(), x(f, ee(a, {
|
|
300
|
-
class: ["av-button", [
|
|
310
|
+
class: ["av-button", [o(i), o(A), o(l)]],
|
|
301
311
|
disabled: a.disabled || e.isLoading,
|
|
302
|
-
icon:
|
|
312
|
+
icon: o(r),
|
|
303
313
|
"no-outline": a.variant === "DEFAULT",
|
|
304
314
|
tertiary: !0,
|
|
305
|
-
"aria-label": a.label,
|
|
306
|
-
title: a.label
|
|
307
|
-
|
|
315
|
+
"aria-label": o(Je)(a.label),
|
|
316
|
+
title: o(Je)(a.label),
|
|
317
|
+
label: o(Je)(a.label)
|
|
318
|
+
}), null, 16, ["class", "disabled", "icon", "no-outline", "aria-label", "title", "label"]);
|
|
308
319
|
};
|
|
309
320
|
}
|
|
310
|
-
}), Ce = /* @__PURE__ */ V(
|
|
321
|
+
}), Ce = /* @__PURE__ */ V(Ha, [["__scopeId", "data-v-2d2e30b8"]]), Za = ["id", "role"], qa = { class: "av-alert--container" }, Ya = { class: "av-alert--content" }, Ra = { class: "av-alert--title" }, Fa = { class: "b1-regular" }, Ka = /* @__PURE__ */ S({
|
|
311
322
|
__name: "AvAlert",
|
|
312
323
|
props: {
|
|
313
324
|
alert: { type: Boolean, default: !1 },
|
|
@@ -343,42 +354,42 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
343
354
|
return { name: R.INFORMATION_OUTLINE, color: "var(--dark-background-primary1)" };
|
|
344
355
|
}
|
|
345
356
|
});
|
|
346
|
-
return (A,
|
|
357
|
+
return (A, l) => e.closed ? O("", !0) : (u(), g("div", {
|
|
347
358
|
key: 0,
|
|
348
359
|
id: e.id,
|
|
349
|
-
class: F(["fr-alert",
|
|
360
|
+
class: F(["fr-alert", o(r)]),
|
|
350
361
|
role: e.alert ? "alert" : void 0
|
|
351
362
|
}, [
|
|
352
|
-
y("div",
|
|
353
|
-
y("div",
|
|
354
|
-
P(ae, ee(
|
|
355
|
-
y("div",
|
|
363
|
+
y("div", qa, [
|
|
364
|
+
y("div", Ya, [
|
|
365
|
+
P(ae, ee(o(i), { size: 3 }), null, 16),
|
|
366
|
+
y("div", Ra, [
|
|
356
367
|
e.small ? O("", !0) : (u(), x(ue(e.titleTag), {
|
|
357
368
|
key: 0,
|
|
358
369
|
class: "fr-alert__title"
|
|
359
370
|
}, {
|
|
360
371
|
default: Y(() => [
|
|
361
|
-
|
|
372
|
+
rt(Z(e.title), 1)
|
|
362
373
|
]),
|
|
363
374
|
_: 1
|
|
364
375
|
})),
|
|
365
376
|
B(A.$slots, "default", {}, () => [
|
|
366
|
-
y("span",
|
|
377
|
+
y("span", Fa, Z(e.description), 1)
|
|
367
378
|
], !0)
|
|
368
379
|
])
|
|
369
380
|
]),
|
|
370
381
|
e.closeable ? (u(), x(Ce, {
|
|
371
382
|
key: 0,
|
|
372
383
|
"icon-only": "",
|
|
373
|
-
icon:
|
|
384
|
+
icon: o(R).CLOSE_CIRCLE_OUTLINE,
|
|
374
385
|
label: e.closeButtonLabel,
|
|
375
386
|
small: "",
|
|
376
387
|
"on-click": n
|
|
377
388
|
}, null, 8, ["icon", "label"])) : O("", !0)
|
|
378
389
|
])
|
|
379
|
-
], 10,
|
|
390
|
+
], 10, Za));
|
|
380
391
|
}
|
|
381
|
-
}),
|
|
392
|
+
}), Ga = /* @__PURE__ */ V(Ka, [["__scopeId", "data-v-e4e8790e"]]), Ja = { class: "toaster-container" }, _a = /* @__PURE__ */ S({
|
|
382
393
|
__name: "AvToaster",
|
|
383
394
|
props: {
|
|
384
395
|
messages: {},
|
|
@@ -402,15 +413,15 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
402
413
|
return { "--icon-path": `url(${e.basePath}assets/icons/message-badge.svg)` };
|
|
403
414
|
}
|
|
404
415
|
}
|
|
405
|
-
return (n, r) => (u(), g("div",
|
|
406
|
-
P(
|
|
416
|
+
return (n, r) => (u(), g("div", Ja, [
|
|
417
|
+
P(Ea, {
|
|
407
418
|
mode: "out-in",
|
|
408
419
|
name: "list",
|
|
409
420
|
tag: "div",
|
|
410
421
|
class: "toasters"
|
|
411
422
|
}, {
|
|
412
423
|
default: Y(() => [
|
|
413
|
-
(u(!0), g(_, null, ne(e.messages, (i) => (u(), x(
|
|
424
|
+
(u(!0), g(_, null, ne(e.messages, (i) => (u(), x(Ga, ee({
|
|
414
425
|
key: i.id,
|
|
415
426
|
class: ["av-toaster", t(i.type)]
|
|
416
427
|
}, { ref_for: !0 }, i, {
|
|
@@ -422,7 +433,7 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
422
433
|
})
|
|
423
434
|
]));
|
|
424
435
|
}
|
|
425
|
-
}),
|
|
436
|
+
}), Ml = /* @__PURE__ */ V(_a, [["__scopeId", "data-v-202438c7"]]), $a = ["aria-label"], en = { class: "fr-btns-group" }, ft = /* @__PURE__ */ S({
|
|
426
437
|
__name: "AvHeaderMenuLinks",
|
|
427
438
|
props: {
|
|
428
439
|
links: {},
|
|
@@ -435,21 +446,21 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
435
446
|
role: "navigation",
|
|
436
447
|
"aria-label": e.navAriaLabel
|
|
437
448
|
}, [
|
|
438
|
-
y("ul",
|
|
449
|
+
y("ul", en, [
|
|
439
450
|
(u(!0), g(_, null, ne(e.links, (i, A) => (u(), g("li", { key: A }, [
|
|
440
451
|
P(Ce, {
|
|
441
452
|
icon: i.icon,
|
|
442
453
|
label: i.label ?? "",
|
|
443
|
-
"on-click": (
|
|
444
|
-
var
|
|
445
|
-
a("linkClick",
|
|
454
|
+
"on-click": (l) => {
|
|
455
|
+
var s;
|
|
456
|
+
a("linkClick", l), (s = i.onClick) == null || s.call(i, l);
|
|
446
457
|
}
|
|
447
458
|
}, null, 8, ["icon", "label", "on-click"])
|
|
448
459
|
]))), 128))
|
|
449
460
|
])
|
|
450
|
-
], 8,
|
|
461
|
+
], 8, $a));
|
|
451
462
|
}
|
|
452
|
-
}),
|
|
463
|
+
}), tn = {}, an = {
|
|
453
464
|
width: "214",
|
|
454
465
|
height: "97",
|
|
455
466
|
viewBox: "0 0 214 97",
|
|
@@ -457,8 +468,8 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
457
468
|
xmlns: "http://www.w3.org/2000/svg",
|
|
458
469
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
459
470
|
};
|
|
460
|
-
function
|
|
461
|
-
return u(), g("svg",
|
|
471
|
+
function nn(e, t) {
|
|
472
|
+
return u(), g("svg", an, [...t[0] || (t[0] = [
|
|
462
473
|
y("rect", {
|
|
463
474
|
width: "213.732",
|
|
464
475
|
height: "96.9",
|
|
@@ -486,25 +497,25 @@ function tn(e, t) {
|
|
|
486
497
|
], -1)
|
|
487
498
|
])]);
|
|
488
499
|
}
|
|
489
|
-
const
|
|
500
|
+
const rn = /* @__PURE__ */ V(tn, [["render", nn]]), An = {
|
|
490
501
|
role: "banner",
|
|
491
502
|
class: "fr-header"
|
|
492
|
-
},
|
|
503
|
+
}, on = { class: "fr-header__body" }, ln = { class: "fr-container width-inherit" }, sn = { class: "fr-header__body-row" }, cn = { class: "fr-header__brand" }, un = { class: "fr-header__brand-top" }, dn = { class: "fr-header__logo fr-enlarge-link" }, fn = {
|
|
493
504
|
key: 0,
|
|
494
505
|
class: "fr-header__navbar"
|
|
495
|
-
},
|
|
506
|
+
}, vn = ["aria-label", "title", "data-fr-opened"], mn = ["aria-label", "title"], gn = {
|
|
496
507
|
key: 0,
|
|
497
508
|
class: "fr-header__service"
|
|
498
|
-
},
|
|
509
|
+
}, In = { class: "fr-header__service-title" }, hn = { class: "fr-header__tools" }, bn = { class: "fr-header__tools-links" }, Cn = {
|
|
499
510
|
key: 0,
|
|
500
511
|
class: "fr-header__search fr-modal demo-display-none"
|
|
501
|
-
},
|
|
512
|
+
}, yn = ["aria-label"], En = { class: "fr-container" }, Mn = { class: "fr-header__menu-links" }, pn = {
|
|
502
513
|
key: 1,
|
|
503
514
|
class: "flex justify-center items-center demo-display-none"
|
|
504
|
-
},
|
|
515
|
+
}, Nn = { class: "fr-header__menu fr-modal" }, Tn = {
|
|
505
516
|
key: 0,
|
|
506
517
|
class: "fr-container"
|
|
507
|
-
},
|
|
518
|
+
}, Qn = /* @__PURE__ */ S({
|
|
508
519
|
__name: "AvHeader",
|
|
509
520
|
props: {
|
|
510
521
|
searchbarId: { default: "searchbar-header" },
|
|
@@ -525,10 +536,10 @@ const an = /* @__PURE__ */ V($a, [["render", tn]]), nn = {
|
|
|
525
536
|
},
|
|
526
537
|
emits: ["update:modelValue", "search", "languageSelect"],
|
|
527
538
|
setup(e, { emit: t }) {
|
|
528
|
-
const a = e, n = t, r = ie(), i =
|
|
539
|
+
const a = e, n = t, r = ie(), i = Ma(a, "languageSelector"), A = J(!1), l = J(!1), s = J(!1);
|
|
529
540
|
function c() {
|
|
530
541
|
var M;
|
|
531
|
-
|
|
542
|
+
s.value = !1, A.value = !1, l.value = !1, (M = document.getElementById("button-menu")) == null || M.focus();
|
|
532
543
|
}
|
|
533
544
|
function d(M) {
|
|
534
545
|
M.key === "Escape" && c();
|
|
@@ -539,46 +550,46 @@ const an = /* @__PURE__ */ V($a, [["render", tn]]), nn = {
|
|
|
539
550
|
document.removeEventListener("keydown", d);
|
|
540
551
|
});
|
|
541
552
|
function f() {
|
|
542
|
-
|
|
553
|
+
s.value = !0, A.value = !0, l.value = !1, setTimeout(() => {
|
|
543
554
|
var M;
|
|
544
555
|
(M = document.getElementById("close-button")) == null || M.focus();
|
|
545
556
|
});
|
|
546
557
|
}
|
|
547
558
|
function b() {
|
|
548
|
-
|
|
559
|
+
s.value = !0, A.value = !1, l.value = !0;
|
|
549
560
|
}
|
|
550
561
|
const I = c, m = p(() => [a.homeLabel, a.serviceTitle].filter((M) => M).join(" - ")), C = p(() => !!r.mainnav);
|
|
551
|
-
return
|
|
562
|
+
return St(Aa, () => c), (M, T) => {
|
|
552
563
|
var j, W;
|
|
553
|
-
const Q =
|
|
554
|
-
return u(), g("header",
|
|
555
|
-
y("div",
|
|
556
|
-
y("div",
|
|
557
|
-
y("div",
|
|
558
|
-
y("div",
|
|
559
|
-
y("div",
|
|
560
|
-
y("div",
|
|
564
|
+
const Q = pa("RouterLink"), E = ia, D = oa;
|
|
565
|
+
return u(), g("header", An, [
|
|
566
|
+
y("div", on, [
|
|
567
|
+
y("div", ln, [
|
|
568
|
+
y("div", sn, [
|
|
569
|
+
y("div", cn, [
|
|
570
|
+
y("div", un, [
|
|
571
|
+
y("div", dn, [
|
|
561
572
|
P(Q, {
|
|
562
573
|
to: e.homeTo,
|
|
563
|
-
title:
|
|
574
|
+
title: o(m)
|
|
564
575
|
}, {
|
|
565
576
|
default: Y(() => [
|
|
566
|
-
P(
|
|
577
|
+
P(rn, { "data-testid": "header-logo" })
|
|
567
578
|
]),
|
|
568
579
|
_: 1
|
|
569
580
|
}, 8, ["to", "title"])
|
|
570
581
|
]),
|
|
571
|
-
e.showSearch ||
|
|
582
|
+
e.showSearch || o(C) || (j = e.quickLinks) != null && j.length ? (u(), g("div", fn, [
|
|
572
583
|
e.showSearch ? (u(), g("button", {
|
|
573
584
|
key: 0,
|
|
574
585
|
class: "fr-btn fr-btn--search",
|
|
575
586
|
"aria-controls": "header-search",
|
|
576
587
|
"aria-label": e.showSearchLabel,
|
|
577
588
|
title: e.showSearchLabel,
|
|
578
|
-
"data-fr-opened":
|
|
589
|
+
"data-fr-opened": o(l),
|
|
579
590
|
onClick: T[0] || (T[0] = se((z) => b(), ["prevent", "stop"]))
|
|
580
|
-
}, null, 8,
|
|
581
|
-
|
|
591
|
+
}, null, 8, vn)) : O("", !0),
|
|
592
|
+
o(C) || (W = e.quickLinks) != null && W.length ? (u(), g("button", {
|
|
582
593
|
key: 1,
|
|
583
594
|
id: "button-menu",
|
|
584
595
|
class: "fr-btn--menu fr-btn",
|
|
@@ -589,28 +600,28 @@ const an = /* @__PURE__ */ V($a, [["render", tn]]), nn = {
|
|
|
589
600
|
title: e.menuLabel,
|
|
590
601
|
"data-testid": "open-menu-btn",
|
|
591
602
|
onClick: T[1] || (T[1] = se((z) => f(), ["prevent", "stop"]))
|
|
592
|
-
}, null, 8,
|
|
603
|
+
}, null, 8, mn)) : O("", !0)
|
|
593
604
|
])) : O("", !0)
|
|
594
605
|
]),
|
|
595
|
-
e.serviceTitle ? (u(), g("div",
|
|
596
|
-
y("p",
|
|
606
|
+
e.serviceTitle ? (u(), g("div", gn, [
|
|
607
|
+
y("p", In, Z(e.serviceTitle), 1),
|
|
597
608
|
B(M.$slots, "serviceDescription", {}, void 0, !0)
|
|
598
609
|
])) : O("", !0)
|
|
599
610
|
]),
|
|
600
|
-
y("div",
|
|
601
|
-
y("div",
|
|
611
|
+
y("div", hn, [
|
|
612
|
+
y("div", bn, [
|
|
602
613
|
B(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
603
|
-
|
|
614
|
+
o(A) ? O("", !0) : (u(), x(ft, {
|
|
604
615
|
key: 0,
|
|
605
616
|
links: e.quickLinks,
|
|
606
617
|
"nav-aria-label": e.quickLinksAriaLabel
|
|
607
618
|
}, null, 8, ["links", "nav-aria-label"])),
|
|
608
619
|
B(M.$slots, "after-quick-links", {}, void 0, !0),
|
|
609
|
-
|
|
620
|
+
o(i) ? (u(), x(E, ee({ key: 1 }, o(i), {
|
|
610
621
|
onSelect: T[2] || (T[2] = (z) => n("languageSelect", z))
|
|
611
622
|
}), null, 16)) : O("", !0)
|
|
612
623
|
]),
|
|
613
|
-
e.showSearch ? (u(), g("div",
|
|
624
|
+
e.showSearch ? (u(), g("div", Cn, [
|
|
614
625
|
P(D, {
|
|
615
626
|
id: e.searchbarId,
|
|
616
627
|
label: e.searchLabel,
|
|
@@ -623,15 +634,15 @@ const an = /* @__PURE__ */ V($a, [["render", tn]]), nn = {
|
|
|
623
634
|
])) : O("", !0)
|
|
624
635
|
])
|
|
625
636
|
]),
|
|
626
|
-
e.showSearch ||
|
|
637
|
+
e.showSearch || o(C) || e.quickLinks && e.quickLinks.length || o(i) ? (u(), g("div", {
|
|
627
638
|
key: 0,
|
|
628
639
|
id: "header-navigation",
|
|
629
|
-
class: F(["fr-header__menu fr-modal", { "fr-modal--opened": s
|
|
640
|
+
class: F(["fr-header__menu fr-modal", { "fr-modal--opened": o(s) }]),
|
|
630
641
|
"aria-label": e.menuModalLabel,
|
|
631
642
|
role: "dialog",
|
|
632
643
|
"aria-modal": "true"
|
|
633
644
|
}, [
|
|
634
|
-
y("div",
|
|
645
|
+
y("div", En, [
|
|
635
646
|
y("button", {
|
|
636
647
|
id: "close-button",
|
|
637
648
|
class: "fr-btn fr-btn--close",
|
|
@@ -639,25 +650,25 @@ const an = /* @__PURE__ */ V($a, [["render", tn]]), nn = {
|
|
|
639
650
|
"data-testid": "close-modal-btn",
|
|
640
651
|
onClick: T[5] || (T[5] = se((z) => c(), ["prevent", "stop"]))
|
|
641
652
|
}, Z(e.closeMenuModalLabel), 1),
|
|
642
|
-
y("div",
|
|
643
|
-
|
|
644
|
-
onSelect: T[6] || (T[6] = (z) =>
|
|
653
|
+
y("div", Mn, [
|
|
654
|
+
o(i) ? (u(), x(E, ee({ key: 0 }, o(i), {
|
|
655
|
+
onSelect: T[6] || (T[6] = (z) => o(i).currentLanguage = z.codeIso)
|
|
645
656
|
}), null, 16)) : O("", !0),
|
|
646
657
|
B(M.$slots, "before-quick-links", {}, void 0, !0),
|
|
647
|
-
|
|
658
|
+
o(A) ? (u(), x(ft, {
|
|
648
659
|
key: 1,
|
|
649
660
|
role: "navigation",
|
|
650
661
|
links: e.quickLinks,
|
|
651
662
|
"nav-aria-label": e.quickLinksAriaLabel,
|
|
652
|
-
onLinkClick:
|
|
663
|
+
onLinkClick: o(I)
|
|
653
664
|
}, null, 8, ["links", "nav-aria-label", "onLinkClick"])) : O("", !0),
|
|
654
665
|
B(M.$slots, "after-quick-links", {}, void 0, !0)
|
|
655
666
|
]),
|
|
656
|
-
s
|
|
667
|
+
o(s) ? B(M.$slots, "mainnav", {
|
|
657
668
|
key: 0,
|
|
658
669
|
hidemodal: c
|
|
659
670
|
}, void 0, !0) : O("", !0),
|
|
660
|
-
|
|
671
|
+
o(l) ? (u(), g("div", pn, [
|
|
661
672
|
P(D, {
|
|
662
673
|
"searchbar-id": e.searchbarId,
|
|
663
674
|
"model-value": e.modelValue,
|
|
@@ -667,24 +678,24 @@ const an = /* @__PURE__ */ V($a, [["render", tn]]), nn = {
|
|
|
667
678
|
}, null, 8, ["searchbar-id", "model-value", "placeholder"])
|
|
668
679
|
])) : O("", !0)
|
|
669
680
|
])
|
|
670
|
-
], 10,
|
|
681
|
+
], 10, yn)) : O("", !0),
|
|
671
682
|
B(M.$slots, "default", {}, void 0, !0)
|
|
672
683
|
])
|
|
673
684
|
]),
|
|
674
|
-
y("div",
|
|
675
|
-
|
|
685
|
+
y("div", Nn, [
|
|
686
|
+
o(C) && !o(s) ? (u(), g("div", Tn, [
|
|
676
687
|
B(M.$slots, "mainnav", { hidemodal: c }, void 0, !0)
|
|
677
688
|
])) : O("", !0)
|
|
678
689
|
])
|
|
679
690
|
]);
|
|
680
691
|
};
|
|
681
692
|
}
|
|
682
|
-
}),
|
|
693
|
+
}), pl = /* @__PURE__ */ V(Qn, [["__scopeId", "data-v-40671897"]]), Dn = {
|
|
683
694
|
xmlns: "http://www.w3.org/2000/svg",
|
|
684
695
|
viewBox: "0 0 106.703 44.429"
|
|
685
696
|
};
|
|
686
|
-
function
|
|
687
|
-
return u(), g("svg",
|
|
697
|
+
function On(e, t) {
|
|
698
|
+
return u(), g("svg", Dn, [...t[0] || (t[0] = [
|
|
688
699
|
y("path", {
|
|
689
700
|
d: "M33.63 110.595q-.883.002-1.403.293a1.95 1.95 0 0 0-.781.783 3.1 3.1 0 0 0-.34 1.087q-.08.597-.08 1.21.001.499.091 1.086.09.589.374 1.098.283.506.792.85.51.339 1.347.339t1.347-.34q.51-.341.78-.85.271-.508.363-1.096.09-.588.09-1.087 0-.498-.09-1.087a3.4 3.4 0 0 0-.363-1.097 2.3 2.3 0 0 0-.78-.85q-.51-.339-1.347-.339m-5.296 3.394q0-1.425.294-2.547c.196-.744.51-1.38.94-1.898a4.2 4.2 0 0 1 1.64-1.2q.997-.422 2.422-.42 1.493.046 2.67.678.498.274.985.702.487.43.86 1.076.373.645.61 1.528.24.882.24 2.06 0 1.175-.216 2.06a6.2 6.2 0 0 1-.565 1.517 4.37 4.37 0 0 1-1.71 1.74q-1.086.613-2.49.634a4.6 4.6 0 0 1-1.357-.292 4.3 4.3 0 0 1-1.155-.724q-.588-.502-.973-1.45l.498.657v5.386h-2.693zM45.625 110.595q-.837 0-1.347.339-.51.338-.78.85a3.4 3.4 0 0 0-.363 1.097 7 7 0 0 0-.09 1.087q0 .499.09 1.086.09.589.362 1.098.273.506.781.85.51.339 1.347.339t1.347-.34q.51-.341.78-.85.271-.508.363-1.096.09-.588.09-1.087 0-.498-.09-1.087a3.4 3.4 0 0 0-.363-1.097 2.3 2.3 0 0 0-.78-.85q-.51-.339-1.347-.339m-5.364 3.373q0-1.178.227-2.06.225-.883.6-1.528.372-.646.859-1.076.487-.427.984-.702c.785-.42 1.683-.649 2.694-.677.996.028 1.885.257 2.67.677q.499.274.985.702.488.43.86 1.076.374.645.611 1.528c.159.589.239 1.273.239 2.06q0 1.175-.239 2.06a6.2 6.2 0 0 1-.61 1.517q-.375.632-.86 1.051a5.7 5.7 0 0 1-.985.688q-1.178.615-2.671.635-1.516-.02-2.694-.635-.497-.27-.984-.688a4.2 4.2 0 0 1-.86-1.05 5.9 5.9 0 0 1-.6-1.518q-.225-.884-.226-2.06M52.347 111.57q0-1.18.497-1.846c.333-.444.695-.783 1.087-1.009a3.9 3.9 0 0 1 1.584-.497h3.17v2.737h-2.128q-.453 0-.736.159-.283.158-.442.342-.18.222-.249.498v7.74h-2.783zM62.78 110.913v5.045q.07.275.25.497.158.184.442.342.282.159.735.159h1.72v2.738h-2.761a3.9 3.9 0 0 1-1.584-.498q-.59-.337-1.076-1.009-.487-.665-.486-1.845v-11.2h2.76v3.076h2.604v2.695zM72.558 110.595q-.838 0-1.347.339-.51.338-.78.85a3.4 3.4 0 0 0-.363 1.097 7 7 0 0 0-.09 1.087q0 .499.09 1.086.09.589.362 1.098.271.506.781.85.51.339 1.347.339t1.347-.34q.51-.341.792-.85t.373-1.096.09-1.087q0-.613-.079-1.21a3.2 3.2 0 0 0-.339-1.087 1.96 1.96 0 0 0-.781-.783q-.52-.292-1.403-.293m5.296 9.099h-2.693v-1.584l.498-.657q-.385.948-.974 1.45a4.3 4.3 0 0 1-1.154.723q-.656.25-1.358.293-1.404-.02-2.49-.635a4.8 4.8 0 0 1-.917-.688 4.4 4.4 0 0 1-.791-1.05 6.2 6.2 0 0 1-.566-1.518q-.215-.885-.215-2.06 0-1.179.226-2.06.226-.883.6-1.528.374-.646.86-1.076.487-.427.984-.702c.784-.42 1.683-.649 2.694-.677.95 0 1.758.137 2.421.42a4.2 4.2 0 0 1 1.642 1.2q.645.779.939 1.897.293 1.123.294 2.547zM82.086 108.218v11.476h-2.761v-11.476zm-2.761-2.558q0-.497.01-.744c.008-.166.053-.29.137-.364q.123-.112.408-.123a22 22 0 0 1 1.651 0q.284.012.408.123c.082.074.128.198.136.364q.01.247.01.744 0 .498-.01.748-.012.248-.136.363-.125.112-.408.124-.282.01-.826.01-.543 0-.825-.01-.285-.012-.408-.124-.126-.115-.136-.363-.01-.25-.011-.748M86.409 104.415v15.279h-2.761v-15.28z",
|
|
690
701
|
style: { fill: "#ed184e", "fill-opacity": "1", "fill-rule": "nonzero", stroke: "none", "stroke-width": ".0352778" },
|
|
@@ -697,7 +708,7 @@ function Qn(e, t) {
|
|
|
697
708
|
}, null, -1)
|
|
698
709
|
])]);
|
|
699
710
|
}
|
|
700
|
-
const
|
|
711
|
+
const wn = { render: On }, Ln = { class: "svg-wrapper" }, Sn = /* @__PURE__ */ S({
|
|
701
712
|
__name: "EsupLogo",
|
|
702
713
|
props: {
|
|
703
714
|
width: {},
|
|
@@ -712,11 +723,11 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
712
723
|
...e.width && { width: e.width },
|
|
713
724
|
...e.height && { height: e.height }
|
|
714
725
|
}));
|
|
715
|
-
return (a, n) => (u(), g("div",
|
|
716
|
-
P(
|
|
726
|
+
return (a, n) => (u(), g("div", Ln, [
|
|
727
|
+
P(o(wn), ee(o(t), { class: "logo" }), null, 16)
|
|
717
728
|
]));
|
|
718
729
|
}
|
|
719
|
-
}),
|
|
730
|
+
}), Nl = /* @__PURE__ */ V(Sn, [["__scopeId", "data-v-0e512b24"]]), Tl = /* @__PURE__ */ S({
|
|
720
731
|
__name: "AvAccordion",
|
|
721
732
|
props: {
|
|
722
733
|
title: {},
|
|
@@ -725,7 +736,7 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
725
736
|
setup(e) {
|
|
726
737
|
return (t, a) => B(t.$slots, "default");
|
|
727
738
|
}
|
|
728
|
-
}),
|
|
739
|
+
}), kn = { class: "title-container" }, zn = { class: "n6" }, xn = { class: "accordion-content-container" }, jn = /* @__PURE__ */ S({
|
|
729
740
|
__name: "AvAccordionsGroup",
|
|
730
741
|
props: /* @__PURE__ */ ve({
|
|
731
742
|
activeAccordion: {}
|
|
@@ -739,36 +750,36 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
739
750
|
var i;
|
|
740
751
|
return ((i = t.default) == null ? void 0 : i.call(t)) || [];
|
|
741
752
|
}), n = ke(e, "activeAccordion"), r = `accordion-group-${crypto.randomUUID()}`;
|
|
742
|
-
return (i, A) => (u(), x(
|
|
753
|
+
return (i, A) => (u(), x(o(la), {
|
|
743
754
|
modelValue: n.value,
|
|
744
|
-
"onUpdate:modelValue": A[0] || (A[0] = (
|
|
755
|
+
"onUpdate:modelValue": A[0] || (A[0] = (l) => n.value = l),
|
|
745
756
|
role: "group",
|
|
746
757
|
"aria-label": "Accordion group"
|
|
747
758
|
}, {
|
|
748
759
|
default: Y(() => [
|
|
749
|
-
(u(!0), g(_, null, ne(
|
|
750
|
-
id: `${r}-accordion-${
|
|
751
|
-
key:
|
|
752
|
-
"aria-labelledby": `accordion-title-${
|
|
753
|
-
"aria-describedby": `accordion-content-${
|
|
760
|
+
(u(!0), g(_, null, ne(o(a), (l, s) => (u(), x(o(sa), {
|
|
761
|
+
id: `${r}-accordion-${s}`,
|
|
762
|
+
key: s,
|
|
763
|
+
"aria-labelledby": `accordion-title-${s}`,
|
|
764
|
+
"aria-describedby": `accordion-content-${s}`
|
|
754
765
|
}, {
|
|
755
766
|
title: Y(() => {
|
|
756
767
|
var c, d, f;
|
|
757
768
|
return [
|
|
758
|
-
y("div",
|
|
759
|
-
(c =
|
|
769
|
+
y("div", kn, [
|
|
770
|
+
(c = l.props) != null && c.icon ? (u(), x(ae, {
|
|
760
771
|
key: 0,
|
|
761
772
|
size: 2,
|
|
762
|
-
name: (d =
|
|
773
|
+
name: (d = l.props) == null ? void 0 : d.icon,
|
|
763
774
|
color: "var(--icon)"
|
|
764
775
|
}, null, 8, ["name"])) : O("", !0),
|
|
765
|
-
y("h6",
|
|
776
|
+
y("h6", zn, Z((f = l.props) == null ? void 0 : f.title), 1)
|
|
766
777
|
])
|
|
767
778
|
];
|
|
768
779
|
}),
|
|
769
780
|
default: Y(() => [
|
|
770
|
-
y("div",
|
|
771
|
-
(u(), x(ue(
|
|
781
|
+
y("div", xn, [
|
|
782
|
+
(u(), x(ue(l.children.default)))
|
|
772
783
|
])
|
|
773
784
|
]),
|
|
774
785
|
_: 2
|
|
@@ -777,12 +788,12 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
777
788
|
_: 1
|
|
778
789
|
}, 8, ["modelValue"]));
|
|
779
790
|
}
|
|
780
|
-
}),
|
|
791
|
+
}), Ql = /* @__PURE__ */ V(jn, [["__scopeId", "data-v-efeab1a6"]]), Dl = {
|
|
781
792
|
name: "AvButton",
|
|
782
793
|
props: ["label", "variant", "type", "disabled", "isLoading"],
|
|
783
794
|
emits: ["click"],
|
|
784
795
|
template: `<button :disabled="disabled" @click="$emit('click')">{{ label }}</button>`
|
|
785
|
-
},
|
|
796
|
+
}, Bn = ["title", "aria-label"], Pn = { class: "av-rich-button__line" }, Wn = { class: "av-rich-button__left" }, Vn = /* @__PURE__ */ S({
|
|
786
797
|
__name: "AvRichButton",
|
|
787
798
|
props: {
|
|
788
799
|
label: {},
|
|
@@ -803,8 +814,8 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
803
814
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
804
815
|
(...n) => e.onClick && e.onClick(...n))
|
|
805
816
|
}, [
|
|
806
|
-
y("div",
|
|
807
|
-
y("div",
|
|
817
|
+
y("div", Pn, [
|
|
818
|
+
y("div", Wn, [
|
|
808
819
|
e.iconLeft ? (u(), x(ae, {
|
|
809
820
|
key: 0,
|
|
810
821
|
name: e.iconLeft,
|
|
@@ -820,22 +831,22 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
820
831
|
size: 1.5
|
|
821
832
|
}, null, 8, ["name"])) : O("", !0)
|
|
822
833
|
])
|
|
823
|
-
], 8,
|
|
834
|
+
], 8, Bn));
|
|
824
835
|
}
|
|
825
|
-
}),
|
|
836
|
+
}), Ol = /* @__PURE__ */ V(Vn, [["__scopeId", "data-v-f0871dc1"]]), Un = {
|
|
826
837
|
key: 0,
|
|
827
838
|
class: "messages-group",
|
|
828
839
|
role: "alert"
|
|
829
|
-
},
|
|
840
|
+
}, Xn = /* @__PURE__ */ S({
|
|
830
841
|
__name: "AvFileUploadAlert",
|
|
831
842
|
props: {
|
|
832
843
|
error: { default: void 0 },
|
|
833
844
|
validMessage: { default: void 0 }
|
|
834
845
|
},
|
|
835
846
|
setup(e) {
|
|
836
|
-
return (t, a) => e.error || e.validMessage ? (u(), g("div",
|
|
837
|
-
P(
|
|
838
|
-
icon: e.error ?
|
|
847
|
+
return (t, a) => e.error || e.validMessage ? (u(), g("div", Un, [
|
|
848
|
+
P(ja, {
|
|
849
|
+
icon: e.error ? o(R).CLOSE_CIRCLE_OUTLINE : o(R).CHECK_CIRCLE_OUTLINE,
|
|
839
850
|
"icon-color": e.error ? "var(--dark-background-error)" : "var(--dark-background-success)",
|
|
840
851
|
text: e.error ? e.error : e.validMessage,
|
|
841
852
|
"text-color": e.error ? "var(--dark-background-error)" : "var(--dark-background-success)",
|
|
@@ -843,17 +854,17 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
843
854
|
}, null, 8, ["icon", "icon-color", "text", "text-color"])
|
|
844
855
|
])) : O("", !0);
|
|
845
856
|
}
|
|
846
|
-
}),
|
|
857
|
+
}), Hn = { class: "file-upload-content" }, Zn = { class: "left-content-container" }, qn = { class: "content-container" }, Yn = { key: 0 }, Rn = { class: "b2-bold" }, Fn = {
|
|
847
858
|
key: 1,
|
|
848
859
|
class: "title-container"
|
|
849
|
-
},
|
|
860
|
+
}, Kn = { class: "b2-regular" }, Gn = { class: "caption-light" }, Jn = {
|
|
850
861
|
key: 0,
|
|
851
862
|
class: "right-icon-container"
|
|
852
|
-
},
|
|
863
|
+
}, _n = ["id", "aria-describedby", "disabled", "aria-disabled", "accept"], $n = { class: "caption-light" }, er = /* @__PURE__ */ S({
|
|
853
864
|
inheritAttrs: !1,
|
|
854
865
|
__name: "AvFileUpload",
|
|
855
866
|
props: {
|
|
856
|
-
id: { default: () =>
|
|
867
|
+
id: { default: () => ca("file-upload") },
|
|
857
868
|
ariaLabel: { default: "" },
|
|
858
869
|
accept: { default: () => {
|
|
859
870
|
} },
|
|
@@ -886,10 +897,10 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
886
897
|
const m = Array.from(I.dataTransfer.files).filter(i);
|
|
887
898
|
await Re(), m.length ? (a("change", m), a("update:modelValue", m[0] ?? "")) : a("onDropAcceptTypeError");
|
|
888
899
|
}
|
|
889
|
-
function
|
|
900
|
+
function l(I) {
|
|
890
901
|
I.preventDefault(), e.disabled || (r.value = !0);
|
|
891
902
|
}
|
|
892
|
-
function
|
|
903
|
+
function s() {
|
|
893
904
|
r.value = !1;
|
|
894
905
|
}
|
|
895
906
|
function c(I) {
|
|
@@ -908,8 +919,8 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
908
919
|
}
|
|
909
920
|
],
|
|
910
921
|
"aria-label": e.ariaLabel,
|
|
911
|
-
onDragover:
|
|
912
|
-
onDragleave:
|
|
922
|
+
onDragover: l,
|
|
923
|
+
onDragleave: s,
|
|
913
924
|
onDrop: A
|
|
914
925
|
}));
|
|
915
926
|
function b(I) {
|
|
@@ -917,37 +928,37 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
917
928
|
I ? (a("update:modelValue", null), a("update:validMessage", null), a("update:error", null), a("change", [])) : (m = e.onDeleteFile) == null || m.call(e);
|
|
918
929
|
}
|
|
919
930
|
return (I, m) => (u(), g(_, null, [
|
|
920
|
-
(u(), x(ue(
|
|
921
|
-
class:
|
|
931
|
+
(u(), x(ue(o(d) ? "div" : "label"), ee(o(d) ? {} : o(f), {
|
|
932
|
+
class: o(d) ? "file-preview-container" : ""
|
|
922
933
|
}), {
|
|
923
934
|
default: Y(() => [
|
|
924
935
|
y("div", {
|
|
925
|
-
class: F(
|
|
936
|
+
class: F(o(d) ? "" : "file-upload-container")
|
|
926
937
|
}, [
|
|
927
|
-
y("div",
|
|
928
|
-
y("div",
|
|
938
|
+
y("div", Hn, [
|
|
939
|
+
y("div", Zn, [
|
|
929
940
|
B(I.$slots, "left", {}, () => [
|
|
930
941
|
P(ae, {
|
|
931
942
|
size: 2.5,
|
|
932
|
-
name:
|
|
943
|
+
name: o(R).ATTACHMENT_PLUS,
|
|
933
944
|
color: "var(--icon)"
|
|
934
945
|
}, null, 8, ["name"])
|
|
935
946
|
], !0)
|
|
936
947
|
]),
|
|
937
|
-
y("div",
|
|
938
|
-
|
|
939
|
-
y("span",
|
|
940
|
-
])) : (u(), g("div",
|
|
941
|
-
y("span",
|
|
942
|
-
y("span",
|
|
948
|
+
y("div", qn, [
|
|
949
|
+
o(d) ? (u(), g("div", Yn, [
|
|
950
|
+
y("span", Rn, Z(e.fileName || e.modelValue.name), 1)
|
|
951
|
+
])) : (u(), g("div", Fn, [
|
|
952
|
+
y("span", Kn, Z(e.title), 1),
|
|
953
|
+
y("span", Gn, Z(e.description), 1)
|
|
943
954
|
])),
|
|
944
|
-
P(
|
|
955
|
+
P(Xn, {
|
|
945
956
|
"valid-message": e.validMessage,
|
|
946
957
|
error: e.error
|
|
947
958
|
}, null, 8, ["valid-message", "error"])
|
|
948
959
|
]),
|
|
949
|
-
e.disabled ? O("", !0) : (u(), g("div",
|
|
950
|
-
|
|
960
|
+
e.disabled ? O("", !0) : (u(), g("div", Jn, [
|
|
961
|
+
o(d) ? (u(), x(Ce, {
|
|
951
962
|
key: 0,
|
|
952
963
|
label: e.deleteButtonLabel,
|
|
953
964
|
theme: "SECONDARY",
|
|
@@ -955,11 +966,11 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
955
966
|
}, null, 8, ["label"])) : (u(), x(ae, {
|
|
956
967
|
key: 1,
|
|
957
968
|
size: 1.5,
|
|
958
|
-
name:
|
|
969
|
+
name: o(R).TRAY_UPLOAD,
|
|
959
970
|
color: "var(--dark-background-primary1)"
|
|
960
971
|
}, null, 8, ["name"]))
|
|
961
972
|
])),
|
|
962
|
-
|
|
973
|
+
o(d) ? O("", !0) : (u(), g("input", ee({
|
|
963
974
|
key: 1,
|
|
964
975
|
id: e.id,
|
|
965
976
|
class: "fr-upload",
|
|
@@ -968,47 +979,47 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
968
979
|
}, I.$attrs, {
|
|
969
980
|
disabled: e.disabled,
|
|
970
981
|
"aria-disabled": e.disabled,
|
|
971
|
-
accept:
|
|
982
|
+
accept: o(n),
|
|
972
983
|
onChange: m[1] || (m[1] = (C) => c(C))
|
|
973
|
-
}), null, 16,
|
|
984
|
+
}), null, 16, _n))
|
|
974
985
|
])
|
|
975
986
|
], 2)
|
|
976
987
|
]),
|
|
977
988
|
_: 3
|
|
978
989
|
}, 16, ["class"])),
|
|
979
|
-
y("span",
|
|
990
|
+
y("span", $n, [
|
|
980
991
|
B(I.$slots, "hint", {}, void 0, !0)
|
|
981
992
|
])
|
|
982
993
|
], 64));
|
|
983
994
|
}
|
|
984
|
-
}),
|
|
995
|
+
}), wl = /* @__PURE__ */ V(er, [["__scopeId", "data-v-2c0c549f"]]), xt = 6048e5, tr = 864e5, vt = Symbol.for("constructDateFrom");
|
|
985
996
|
function me(e, t) {
|
|
986
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
997
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && vt in e ? e[vt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
987
998
|
}
|
|
988
999
|
function le(e, t) {
|
|
989
1000
|
return me(t || e, e);
|
|
990
1001
|
}
|
|
991
|
-
let
|
|
1002
|
+
let ar = {};
|
|
992
1003
|
function Fe() {
|
|
993
|
-
return
|
|
1004
|
+
return ar;
|
|
994
1005
|
}
|
|
995
1006
|
function ze(e, t) {
|
|
996
|
-
var
|
|
997
|
-
const a = Fe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((
|
|
1007
|
+
var l, s, c, d;
|
|
1008
|
+
const a = Fe(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : s.weekStartsOn) ?? a.weekStartsOn ?? ((d = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : d.weekStartsOn) ?? 0, r = le(e, t == null ? void 0 : t.in), i = r.getDay(), A = (i < n ? 7 : 0) + i - n;
|
|
998
1009
|
return r.setDate(r.getDate() - A), r.setHours(0, 0, 0, 0), r;
|
|
999
1010
|
}
|
|
1000
1011
|
function Ue(e, t) {
|
|
1001
1012
|
return ze(e, { ...t, weekStartsOn: 1 });
|
|
1002
1013
|
}
|
|
1003
|
-
function
|
|
1014
|
+
function jt(e, t) {
|
|
1004
1015
|
const a = le(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = me(a, 0);
|
|
1005
1016
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
1006
1017
|
const i = Ue(r), A = me(a, 0);
|
|
1007
1018
|
A.setFullYear(n, 0, 4), A.setHours(0, 0, 0, 0);
|
|
1008
|
-
const
|
|
1009
|
-
return a.getTime() >= i.getTime() ? n + 1 : a.getTime() >=
|
|
1019
|
+
const l = Ue(A);
|
|
1020
|
+
return a.getTime() >= i.getTime() ? n + 1 : a.getTime() >= l.getTime() ? n : n - 1;
|
|
1010
1021
|
}
|
|
1011
|
-
function
|
|
1022
|
+
function mt(e) {
|
|
1012
1023
|
const t = le(e), a = new Date(
|
|
1013
1024
|
Date.UTC(
|
|
1014
1025
|
t.getFullYear(),
|
|
@@ -1022,40 +1033,40 @@ function vt(e) {
|
|
|
1022
1033
|
);
|
|
1023
1034
|
return a.setUTCFullYear(t.getFullYear()), +e - +a;
|
|
1024
1035
|
}
|
|
1025
|
-
function
|
|
1036
|
+
function nr(e, ...t) {
|
|
1026
1037
|
const a = me.bind(
|
|
1027
1038
|
null,
|
|
1028
1039
|
t.find((n) => typeof n == "object")
|
|
1029
1040
|
);
|
|
1030
1041
|
return t.map(a);
|
|
1031
1042
|
}
|
|
1032
|
-
function
|
|
1043
|
+
function gt(e, t) {
|
|
1033
1044
|
const a = le(e, t == null ? void 0 : t.in);
|
|
1034
1045
|
return a.setHours(0, 0, 0, 0), a;
|
|
1035
1046
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const [n, r] =
|
|
1047
|
+
function rr(e, t, a) {
|
|
1048
|
+
const [n, r] = nr(
|
|
1038
1049
|
a == null ? void 0 : a.in,
|
|
1039
1050
|
e,
|
|
1040
1051
|
t
|
|
1041
|
-
), i =
|
|
1042
|
-
return Math.round((
|
|
1052
|
+
), i = gt(n), A = gt(r), l = +i - mt(i), s = +A - mt(A);
|
|
1053
|
+
return Math.round((l - s) / tr);
|
|
1043
1054
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const a =
|
|
1055
|
+
function Ar(e, t) {
|
|
1056
|
+
const a = jt(e, t), n = me(e, 0);
|
|
1046
1057
|
return n.setFullYear(a, 0, 4), n.setHours(0, 0, 0, 0), Ue(n);
|
|
1047
1058
|
}
|
|
1048
|
-
function
|
|
1059
|
+
function ir(e) {
|
|
1049
1060
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
1050
1061
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return !(!
|
|
1062
|
+
function Bt(e) {
|
|
1063
|
+
return !(!ir(e) && typeof e != "number" || isNaN(+le(e)));
|
|
1053
1064
|
}
|
|
1054
|
-
function
|
|
1065
|
+
function or(e, t) {
|
|
1055
1066
|
const a = le(e, t == null ? void 0 : t.in);
|
|
1056
1067
|
return a.setFullYear(a.getFullYear(), 0, 1), a.setHours(0, 0, 0, 0), a;
|
|
1057
1068
|
}
|
|
1058
|
-
const
|
|
1069
|
+
const lr = {
|
|
1059
1070
|
lessThanXSeconds: {
|
|
1060
1071
|
one: "less than a second",
|
|
1061
1072
|
other: "less than {{count}} seconds"
|
|
@@ -1117,77 +1128,77 @@ const ir = {
|
|
|
1117
1128
|
one: "almost 1 year",
|
|
1118
1129
|
other: "almost {{count}} years"
|
|
1119
1130
|
}
|
|
1120
|
-
},
|
|
1131
|
+
}, sr = (e, t, a) => {
|
|
1121
1132
|
let n;
|
|
1122
|
-
const r =
|
|
1133
|
+
const r = lr[e];
|
|
1123
1134
|
return typeof r == "string" ? n = r : t === 1 ? n = r.one : n = r.other.replace("{{count}}", t.toString()), a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "in " + n : n + " ago" : n;
|
|
1124
1135
|
};
|
|
1125
|
-
function
|
|
1136
|
+
function _e(e) {
|
|
1126
1137
|
return (t = {}) => {
|
|
1127
1138
|
const a = t.width ? String(t.width) : e.defaultWidth;
|
|
1128
1139
|
return e.formats[a] || e.formats[e.defaultWidth];
|
|
1129
1140
|
};
|
|
1130
1141
|
}
|
|
1131
|
-
const
|
|
1142
|
+
const cr = {
|
|
1132
1143
|
full: "EEEE, MMMM do, y",
|
|
1133
1144
|
long: "MMMM do, y",
|
|
1134
1145
|
medium: "MMM d, y",
|
|
1135
1146
|
short: "MM/dd/yyyy"
|
|
1136
|
-
},
|
|
1147
|
+
}, ur = {
|
|
1137
1148
|
full: "h:mm:ss a zzzz",
|
|
1138
1149
|
long: "h:mm:ss a z",
|
|
1139
1150
|
medium: "h:mm:ss a",
|
|
1140
1151
|
short: "h:mm a"
|
|
1141
|
-
},
|
|
1152
|
+
}, dr = {
|
|
1142
1153
|
full: "{{date}} 'at' {{time}}",
|
|
1143
1154
|
long: "{{date}} 'at' {{time}}",
|
|
1144
1155
|
medium: "{{date}}, {{time}}",
|
|
1145
1156
|
short: "{{date}}, {{time}}"
|
|
1146
|
-
},
|
|
1147
|
-
date:
|
|
1148
|
-
formats:
|
|
1157
|
+
}, fr = {
|
|
1158
|
+
date: _e({
|
|
1159
|
+
formats: cr,
|
|
1149
1160
|
defaultWidth: "full"
|
|
1150
1161
|
}),
|
|
1151
|
-
time:
|
|
1152
|
-
formats:
|
|
1162
|
+
time: _e({
|
|
1163
|
+
formats: ur,
|
|
1153
1164
|
defaultWidth: "full"
|
|
1154
1165
|
}),
|
|
1155
|
-
dateTime:
|
|
1156
|
-
formats:
|
|
1166
|
+
dateTime: _e({
|
|
1167
|
+
formats: dr,
|
|
1157
1168
|
defaultWidth: "full"
|
|
1158
1169
|
})
|
|
1159
|
-
},
|
|
1170
|
+
}, vr = {
|
|
1160
1171
|
lastWeek: "'last' eeee 'at' p",
|
|
1161
1172
|
yesterday: "'yesterday at' p",
|
|
1162
1173
|
today: "'today at' p",
|
|
1163
1174
|
tomorrow: "'tomorrow at' p",
|
|
1164
1175
|
nextWeek: "eeee 'at' p",
|
|
1165
1176
|
other: "P"
|
|
1166
|
-
},
|
|
1177
|
+
}, mr = (e, t, a, n) => vr[e];
|
|
1167
1178
|
function Qe(e) {
|
|
1168
1179
|
return (t, a) => {
|
|
1169
1180
|
const n = a != null && a.context ? String(a.context) : "standalone";
|
|
1170
1181
|
let r;
|
|
1171
1182
|
if (n === "formatting" && e.formattingValues) {
|
|
1172
|
-
const A = e.defaultFormattingWidth || e.defaultWidth,
|
|
1173
|
-
r = e.formattingValues[
|
|
1183
|
+
const A = e.defaultFormattingWidth || e.defaultWidth, l = a != null && a.width ? String(a.width) : A;
|
|
1184
|
+
r = e.formattingValues[l] || e.formattingValues[A];
|
|
1174
1185
|
} else {
|
|
1175
|
-
const A = e.defaultWidth,
|
|
1176
|
-
r = e.values[
|
|
1186
|
+
const A = e.defaultWidth, l = a != null && a.width ? String(a.width) : e.defaultWidth;
|
|
1187
|
+
r = e.values[l] || e.values[A];
|
|
1177
1188
|
}
|
|
1178
1189
|
const i = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
1179
1190
|
return r[i];
|
|
1180
1191
|
};
|
|
1181
1192
|
}
|
|
1182
|
-
const
|
|
1193
|
+
const gr = {
|
|
1183
1194
|
narrow: ["B", "A"],
|
|
1184
1195
|
abbreviated: ["BC", "AD"],
|
|
1185
1196
|
wide: ["Before Christ", "Anno Domini"]
|
|
1186
|
-
},
|
|
1197
|
+
}, Ir = {
|
|
1187
1198
|
narrow: ["1", "2", "3", "4"],
|
|
1188
1199
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1189
1200
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1190
|
-
},
|
|
1201
|
+
}, hr = {
|
|
1191
1202
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1192
1203
|
abbreviated: [
|
|
1193
1204
|
"Jan",
|
|
@@ -1217,7 +1228,7 @@ const vr = {
|
|
|
1217
1228
|
"November",
|
|
1218
1229
|
"December"
|
|
1219
1230
|
]
|
|
1220
|
-
},
|
|
1231
|
+
}, br = {
|
|
1221
1232
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1222
1233
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1223
1234
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -1230,7 +1241,7 @@ const vr = {
|
|
|
1230
1241
|
"Friday",
|
|
1231
1242
|
"Saturday"
|
|
1232
1243
|
]
|
|
1233
|
-
},
|
|
1244
|
+
}, Cr = {
|
|
1234
1245
|
narrow: {
|
|
1235
1246
|
am: "a",
|
|
1236
1247
|
pm: "p",
|
|
@@ -1261,7 +1272,7 @@ const vr = {
|
|
|
1261
1272
|
evening: "evening",
|
|
1262
1273
|
night: "night"
|
|
1263
1274
|
}
|
|
1264
|
-
},
|
|
1275
|
+
}, yr = {
|
|
1265
1276
|
narrow: {
|
|
1266
1277
|
am: "a",
|
|
1267
1278
|
pm: "p",
|
|
@@ -1292,7 +1303,7 @@ const vr = {
|
|
|
1292
1303
|
evening: "in the evening",
|
|
1293
1304
|
night: "at night"
|
|
1294
1305
|
}
|
|
1295
|
-
},
|
|
1306
|
+
}, Er = (e, t) => {
|
|
1296
1307
|
const a = Number(e), n = a % 100;
|
|
1297
1308
|
if (n > 20 || n < 10)
|
|
1298
1309
|
switch (n % 10) {
|
|
@@ -1304,29 +1315,29 @@ const vr = {
|
|
|
1304
1315
|
return a + "rd";
|
|
1305
1316
|
}
|
|
1306
1317
|
return a + "th";
|
|
1307
|
-
},
|
|
1308
|
-
ordinalNumber:
|
|
1318
|
+
}, Mr = {
|
|
1319
|
+
ordinalNumber: Er,
|
|
1309
1320
|
era: Qe({
|
|
1310
|
-
values:
|
|
1321
|
+
values: gr,
|
|
1311
1322
|
defaultWidth: "wide"
|
|
1312
1323
|
}),
|
|
1313
1324
|
quarter: Qe({
|
|
1314
|
-
values:
|
|
1325
|
+
values: Ir,
|
|
1315
1326
|
defaultWidth: "wide",
|
|
1316
1327
|
argumentCallback: (e) => e - 1
|
|
1317
1328
|
}),
|
|
1318
1329
|
month: Qe({
|
|
1319
|
-
values:
|
|
1330
|
+
values: hr,
|
|
1320
1331
|
defaultWidth: "wide"
|
|
1321
1332
|
}),
|
|
1322
1333
|
day: Qe({
|
|
1323
|
-
values:
|
|
1334
|
+
values: br,
|
|
1324
1335
|
defaultWidth: "wide"
|
|
1325
1336
|
}),
|
|
1326
1337
|
dayPeriod: Qe({
|
|
1327
|
-
values:
|
|
1338
|
+
values: Cr,
|
|
1328
1339
|
defaultWidth: "wide",
|
|
1329
|
-
formattingValues:
|
|
1340
|
+
formattingValues: yr,
|
|
1330
1341
|
defaultFormattingWidth: "wide"
|
|
1331
1342
|
})
|
|
1332
1343
|
};
|
|
@@ -1335,12 +1346,12 @@ function De(e) {
|
|
|
1335
1346
|
const n = a.width, r = n && e.matchPatterns[n] || e.matchPatterns[e.defaultMatchWidth], i = t.match(r);
|
|
1336
1347
|
if (!i)
|
|
1337
1348
|
return null;
|
|
1338
|
-
const A = i[0],
|
|
1349
|
+
const A = i[0], l = n && e.parsePatterns[n] || e.parsePatterns[e.defaultParseWidth], s = Array.isArray(l) ? Nr(l, (f) => f.test(A)) : (
|
|
1339
1350
|
// [TODO] -- I challenge you to fix the type
|
|
1340
|
-
|
|
1351
|
+
pr(l, (f) => f.test(A))
|
|
1341
1352
|
);
|
|
1342
1353
|
let c;
|
|
1343
|
-
c = e.valueCallback ? e.valueCallback(
|
|
1354
|
+
c = e.valueCallback ? e.valueCallback(s) : s, c = a.valueCallback ? (
|
|
1344
1355
|
// [TODO] -- I challenge you to fix the type
|
|
1345
1356
|
a.valueCallback(c)
|
|
1346
1357
|
) : c;
|
|
@@ -1348,17 +1359,17 @@ function De(e) {
|
|
|
1348
1359
|
return { value: c, rest: d };
|
|
1349
1360
|
};
|
|
1350
1361
|
}
|
|
1351
|
-
function
|
|
1362
|
+
function pr(e, t) {
|
|
1352
1363
|
for (const a in e)
|
|
1353
1364
|
if (Object.prototype.hasOwnProperty.call(e, a) && t(e[a]))
|
|
1354
1365
|
return a;
|
|
1355
1366
|
}
|
|
1356
|
-
function
|
|
1367
|
+
function Nr(e, t) {
|
|
1357
1368
|
for (let a = 0; a < e.length; a++)
|
|
1358
1369
|
if (t(e[a]))
|
|
1359
1370
|
return a;
|
|
1360
1371
|
}
|
|
1361
|
-
function
|
|
1372
|
+
function Tr(e) {
|
|
1362
1373
|
return (t, a = {}) => {
|
|
1363
1374
|
const n = t.match(e.matchPattern);
|
|
1364
1375
|
if (!n) return null;
|
|
@@ -1366,27 +1377,27 @@ function pr(e) {
|
|
|
1366
1377
|
if (!i) return null;
|
|
1367
1378
|
let A = e.valueCallback ? e.valueCallback(i[0]) : i[0];
|
|
1368
1379
|
A = a.valueCallback ? a.valueCallback(A) : A;
|
|
1369
|
-
const
|
|
1370
|
-
return { value: A, rest:
|
|
1380
|
+
const l = t.slice(r.length);
|
|
1381
|
+
return { value: A, rest: l };
|
|
1371
1382
|
};
|
|
1372
1383
|
}
|
|
1373
|
-
const
|
|
1384
|
+
const Qr = /^(\d+)(th|st|nd|rd)?/i, Dr = /\d+/i, Or = {
|
|
1374
1385
|
narrow: /^(b|a)/i,
|
|
1375
1386
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1376
1387
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1377
|
-
},
|
|
1388
|
+
}, wr = {
|
|
1378
1389
|
any: [/^b/i, /^(a|c)/i]
|
|
1379
|
-
},
|
|
1390
|
+
}, Lr = {
|
|
1380
1391
|
narrow: /^[1234]/i,
|
|
1381
1392
|
abbreviated: /^q[1234]/i,
|
|
1382
1393
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1383
|
-
},
|
|
1394
|
+
}, Sr = {
|
|
1384
1395
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1385
|
-
},
|
|
1396
|
+
}, kr = {
|
|
1386
1397
|
narrow: /^[jfmasond]/i,
|
|
1387
1398
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1388
1399
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1389
|
-
},
|
|
1400
|
+
}, zr = {
|
|
1390
1401
|
narrow: [
|
|
1391
1402
|
/^j/i,
|
|
1392
1403
|
/^f/i,
|
|
@@ -1415,18 +1426,18 @@ const Nr = /^(\d+)(th|st|nd|rd)?/i, Tr = /\d+/i, Qr = {
|
|
|
1415
1426
|
/^n/i,
|
|
1416
1427
|
/^d/i
|
|
1417
1428
|
]
|
|
1418
|
-
},
|
|
1429
|
+
}, xr = {
|
|
1419
1430
|
narrow: /^[smtwf]/i,
|
|
1420
1431
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1421
1432
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1422
1433
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1423
|
-
},
|
|
1434
|
+
}, jr = {
|
|
1424
1435
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1425
1436
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1426
|
-
},
|
|
1437
|
+
}, Br = {
|
|
1427
1438
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1428
1439
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1429
|
-
},
|
|
1440
|
+
}, Pr = {
|
|
1430
1441
|
any: {
|
|
1431
1442
|
am: /^a/i,
|
|
1432
1443
|
pm: /^p/i,
|
|
@@ -1437,80 +1448,80 @@ const Nr = /^(\d+)(th|st|nd|rd)?/i, Tr = /\d+/i, Qr = {
|
|
|
1437
1448
|
evening: /evening/i,
|
|
1438
1449
|
night: /night/i
|
|
1439
1450
|
}
|
|
1440
|
-
},
|
|
1441
|
-
ordinalNumber:
|
|
1442
|
-
matchPattern:
|
|
1443
|
-
parsePattern:
|
|
1451
|
+
}, Wr = {
|
|
1452
|
+
ordinalNumber: Tr({
|
|
1453
|
+
matchPattern: Qr,
|
|
1454
|
+
parsePattern: Dr,
|
|
1444
1455
|
valueCallback: (e) => parseInt(e, 10)
|
|
1445
1456
|
}),
|
|
1446
1457
|
era: De({
|
|
1447
|
-
matchPatterns:
|
|
1458
|
+
matchPatterns: Or,
|
|
1448
1459
|
defaultMatchWidth: "wide",
|
|
1449
|
-
parsePatterns:
|
|
1460
|
+
parsePatterns: wr,
|
|
1450
1461
|
defaultParseWidth: "any"
|
|
1451
1462
|
}),
|
|
1452
1463
|
quarter: De({
|
|
1453
|
-
matchPatterns:
|
|
1464
|
+
matchPatterns: Lr,
|
|
1454
1465
|
defaultMatchWidth: "wide",
|
|
1455
|
-
parsePatterns:
|
|
1466
|
+
parsePatterns: Sr,
|
|
1456
1467
|
defaultParseWidth: "any",
|
|
1457
1468
|
valueCallback: (e) => e + 1
|
|
1458
1469
|
}),
|
|
1459
1470
|
month: De({
|
|
1460
|
-
matchPatterns:
|
|
1471
|
+
matchPatterns: kr,
|
|
1461
1472
|
defaultMatchWidth: "wide",
|
|
1462
|
-
parsePatterns:
|
|
1473
|
+
parsePatterns: zr,
|
|
1463
1474
|
defaultParseWidth: "any"
|
|
1464
1475
|
}),
|
|
1465
1476
|
day: De({
|
|
1466
|
-
matchPatterns:
|
|
1477
|
+
matchPatterns: xr,
|
|
1467
1478
|
defaultMatchWidth: "wide",
|
|
1468
|
-
parsePatterns:
|
|
1479
|
+
parsePatterns: jr,
|
|
1469
1480
|
defaultParseWidth: "any"
|
|
1470
1481
|
}),
|
|
1471
1482
|
dayPeriod: De({
|
|
1472
|
-
matchPatterns:
|
|
1483
|
+
matchPatterns: Br,
|
|
1473
1484
|
defaultMatchWidth: "any",
|
|
1474
|
-
parsePatterns:
|
|
1485
|
+
parsePatterns: Pr,
|
|
1475
1486
|
defaultParseWidth: "any"
|
|
1476
1487
|
})
|
|
1477
|
-
},
|
|
1488
|
+
}, Vr = {
|
|
1478
1489
|
code: "en-US",
|
|
1479
|
-
formatDistance:
|
|
1480
|
-
formatLong:
|
|
1481
|
-
formatRelative:
|
|
1482
|
-
localize:
|
|
1483
|
-
match:
|
|
1490
|
+
formatDistance: sr,
|
|
1491
|
+
formatLong: fr,
|
|
1492
|
+
formatRelative: mr,
|
|
1493
|
+
localize: Mr,
|
|
1494
|
+
match: Wr,
|
|
1484
1495
|
options: {
|
|
1485
1496
|
weekStartsOn: 0,
|
|
1486
1497
|
firstWeekContainsDate: 1
|
|
1487
1498
|
}
|
|
1488
1499
|
};
|
|
1489
|
-
function
|
|
1500
|
+
function Ur(e, t) {
|
|
1490
1501
|
const a = le(e, t == null ? void 0 : t.in);
|
|
1491
|
-
return
|
|
1502
|
+
return rr(a, or(a)) + 1;
|
|
1492
1503
|
}
|
|
1493
|
-
function
|
|
1494
|
-
const a = le(e, t == null ? void 0 : t.in), n = +Ue(a) - +
|
|
1495
|
-
return Math.round(n /
|
|
1504
|
+
function Xr(e, t) {
|
|
1505
|
+
const a = le(e, t == null ? void 0 : t.in), n = +Ue(a) - +Ar(a);
|
|
1506
|
+
return Math.round(n / xt) + 1;
|
|
1496
1507
|
}
|
|
1497
|
-
function
|
|
1508
|
+
function Pt(e, t) {
|
|
1498
1509
|
var d, f, b, I;
|
|
1499
1510
|
const a = le(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = Fe(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, A = me((t == null ? void 0 : t.in) || e, 0);
|
|
1500
1511
|
A.setFullYear(n + 1, 0, i), A.setHours(0, 0, 0, 0);
|
|
1501
|
-
const
|
|
1502
|
-
|
|
1503
|
-
const c = ze(
|
|
1504
|
-
return +a >= +
|
|
1512
|
+
const l = ze(A, t), s = me((t == null ? void 0 : t.in) || e, 0);
|
|
1513
|
+
s.setFullYear(n, 0, i), s.setHours(0, 0, 0, 0);
|
|
1514
|
+
const c = ze(s, t);
|
|
1515
|
+
return +a >= +l ? n + 1 : +a >= +c ? n : n - 1;
|
|
1505
1516
|
}
|
|
1506
|
-
function
|
|
1507
|
-
var
|
|
1508
|
-
const a = Fe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((
|
|
1517
|
+
function Hr(e, t) {
|
|
1518
|
+
var l, s, c, d;
|
|
1519
|
+
const a = Fe(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (l = t == null ? void 0 : t.locale) == null ? void 0 : l.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((d = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : d.firstWeekContainsDate) ?? 1, r = Pt(e, t), i = me((t == null ? void 0 : t.in) || e, 0);
|
|
1509
1520
|
return i.setFullYear(r, 0, n), i.setHours(0, 0, 0, 0), ze(i, t);
|
|
1510
1521
|
}
|
|
1511
|
-
function
|
|
1512
|
-
const a = le(e, t == null ? void 0 : t.in), n = +ze(a, t) - +
|
|
1513
|
-
return Math.round(n /
|
|
1522
|
+
function Zr(e, t) {
|
|
1523
|
+
const a = le(e, t == null ? void 0 : t.in), n = +ze(a, t) - +Hr(a, t);
|
|
1524
|
+
return Math.round(n / xt) + 1;
|
|
1514
1525
|
}
|
|
1515
1526
|
function H(e, t) {
|
|
1516
1527
|
const a = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
|
|
@@ -1577,7 +1588,7 @@ const fe = {
|
|
|
1577
1588
|
afternoon: "afternoon",
|
|
1578
1589
|
evening: "evening",
|
|
1579
1590
|
night: "night"
|
|
1580
|
-
},
|
|
1591
|
+
}, It = {
|
|
1581
1592
|
// Era
|
|
1582
1593
|
G: function(e, t, a) {
|
|
1583
1594
|
const n = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -1606,7 +1617,7 @@ const fe = {
|
|
|
1606
1617
|
},
|
|
1607
1618
|
// Local week-numbering year
|
|
1608
1619
|
Y: function(e, t, a, n) {
|
|
1609
|
-
const r =
|
|
1620
|
+
const r = Pt(e, n), i = r > 0 ? r : 1 - r;
|
|
1610
1621
|
if (t === "YY") {
|
|
1611
1622
|
const A = i % 100;
|
|
1612
1623
|
return H(A, 2);
|
|
@@ -1615,7 +1626,7 @@ const fe = {
|
|
|
1615
1626
|
},
|
|
1616
1627
|
// ISO week-numbering year
|
|
1617
1628
|
R: function(e, t) {
|
|
1618
|
-
const a =
|
|
1629
|
+
const a = jt(e);
|
|
1619
1630
|
return H(a, t.length);
|
|
1620
1631
|
},
|
|
1621
1632
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -1760,12 +1771,12 @@ const fe = {
|
|
|
1760
1771
|
},
|
|
1761
1772
|
// Local week of year
|
|
1762
1773
|
w: function(e, t, a, n) {
|
|
1763
|
-
const r =
|
|
1774
|
+
const r = Zr(e, n);
|
|
1764
1775
|
return t === "wo" ? a.ordinalNumber(r, { unit: "week" }) : H(r, t.length);
|
|
1765
1776
|
},
|
|
1766
1777
|
// ISO week of year
|
|
1767
1778
|
I: function(e, t, a) {
|
|
1768
|
-
const n =
|
|
1779
|
+
const n = Xr(e);
|
|
1769
1780
|
return t === "Io" ? a.ordinalNumber(n, { unit: "week" }) : H(n, t.length);
|
|
1770
1781
|
},
|
|
1771
1782
|
// Day of the month
|
|
@@ -1774,7 +1785,7 @@ const fe = {
|
|
|
1774
1785
|
},
|
|
1775
1786
|
// Day of year
|
|
1776
1787
|
D: function(e, t, a) {
|
|
1777
|
-
const n =
|
|
1788
|
+
const n = Ur(e);
|
|
1778
1789
|
return t === "Do" ? a.ordinalNumber(n, { unit: "dayOfYear" }) : H(n, t.length);
|
|
1779
1790
|
},
|
|
1780
1791
|
// Day of week
|
|
@@ -2052,7 +2063,7 @@ const fe = {
|
|
|
2052
2063
|
switch (t) {
|
|
2053
2064
|
// Hours and optional minutes
|
|
2054
2065
|
case "X":
|
|
2055
|
-
return
|
|
2066
|
+
return bt(n);
|
|
2056
2067
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
2057
2068
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2058
2069
|
// so this token always has the same output as `XX`
|
|
@@ -2075,7 +2086,7 @@ const fe = {
|
|
|
2075
2086
|
switch (t) {
|
|
2076
2087
|
// Hours and optional minutes
|
|
2077
2088
|
case "x":
|
|
2078
|
-
return
|
|
2089
|
+
return bt(n);
|
|
2079
2090
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
2080
2091
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2081
2092
|
// so this token always has the same output as `xx`
|
|
@@ -2100,7 +2111,7 @@ const fe = {
|
|
|
2100
2111
|
case "O":
|
|
2101
2112
|
case "OO":
|
|
2102
2113
|
case "OOO":
|
|
2103
|
-
return "GMT" +
|
|
2114
|
+
return "GMT" + ht(n, ":");
|
|
2104
2115
|
// Long
|
|
2105
2116
|
case "OOOO":
|
|
2106
2117
|
default:
|
|
@@ -2115,7 +2126,7 @@ const fe = {
|
|
|
2115
2126
|
case "z":
|
|
2116
2127
|
case "zz":
|
|
2117
2128
|
case "zzz":
|
|
2118
|
-
return "GMT" +
|
|
2129
|
+
return "GMT" + ht(n, ":");
|
|
2119
2130
|
// Long
|
|
2120
2131
|
case "zzzz":
|
|
2121
2132
|
default:
|
|
@@ -2132,18 +2143,18 @@ const fe = {
|
|
|
2132
2143
|
return H(+e, t.length);
|
|
2133
2144
|
}
|
|
2134
2145
|
};
|
|
2135
|
-
function
|
|
2146
|
+
function ht(e, t = "") {
|
|
2136
2147
|
const a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.trunc(n / 60), i = n % 60;
|
|
2137
2148
|
return i === 0 ? a + String(r) : a + String(r) + t + H(i, 2);
|
|
2138
2149
|
}
|
|
2139
|
-
function
|
|
2150
|
+
function bt(e, t) {
|
|
2140
2151
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + H(Math.abs(e) / 60, 2) : Ie(e, t);
|
|
2141
2152
|
}
|
|
2142
2153
|
function Ie(e, t = "") {
|
|
2143
2154
|
const a = e > 0 ? "-" : "+", n = Math.abs(e), r = H(Math.trunc(n / 60), 2), i = H(n % 60, 2);
|
|
2144
2155
|
return a + r + t + i;
|
|
2145
2156
|
}
|
|
2146
|
-
const
|
|
2157
|
+
const Ct = (e, t) => {
|
|
2147
2158
|
switch (e) {
|
|
2148
2159
|
case "P":
|
|
2149
2160
|
return t.date({ width: "short" });
|
|
@@ -2155,7 +2166,7 @@ const bt = (e, t) => {
|
|
|
2155
2166
|
default:
|
|
2156
2167
|
return t.date({ width: "full" });
|
|
2157
2168
|
}
|
|
2158
|
-
},
|
|
2169
|
+
}, Wt = (e, t) => {
|
|
2159
2170
|
switch (e) {
|
|
2160
2171
|
case "p":
|
|
2161
2172
|
return t.time({ width: "short" });
|
|
@@ -2167,10 +2178,10 @@ const bt = (e, t) => {
|
|
|
2167
2178
|
default:
|
|
2168
2179
|
return t.time({ width: "full" });
|
|
2169
2180
|
}
|
|
2170
|
-
},
|
|
2181
|
+
}, qr = (e, t) => {
|
|
2171
2182
|
const a = e.match(/(P+)(p+)?/) || [], n = a[1], r = a[2];
|
|
2172
2183
|
if (!r)
|
|
2173
|
-
return
|
|
2184
|
+
return Ct(e, t);
|
|
2174
2185
|
let i;
|
|
2175
2186
|
switch (n) {
|
|
2176
2187
|
case "P":
|
|
@@ -2187,84 +2198,84 @@ const bt = (e, t) => {
|
|
|
2187
2198
|
i = t.dateTime({ width: "full" });
|
|
2188
2199
|
break;
|
|
2189
2200
|
}
|
|
2190
|
-
return i.replace("{{date}}",
|
|
2191
|
-
},
|
|
2192
|
-
p:
|
|
2193
|
-
P:
|
|
2194
|
-
},
|
|
2195
|
-
function
|
|
2196
|
-
return
|
|
2201
|
+
return i.replace("{{date}}", Ct(n, t)).replace("{{time}}", Wt(r, t));
|
|
2202
|
+
}, Yr = {
|
|
2203
|
+
p: Wt,
|
|
2204
|
+
P: qr
|
|
2205
|
+
}, Rr = /^D+$/, Fr = /^Y+$/, Kr = ["D", "DD", "YY", "YYYY"];
|
|
2206
|
+
function Gr(e) {
|
|
2207
|
+
return Rr.test(e);
|
|
2197
2208
|
}
|
|
2198
|
-
function
|
|
2199
|
-
return
|
|
2209
|
+
function Jr(e) {
|
|
2210
|
+
return Fr.test(e);
|
|
2200
2211
|
}
|
|
2201
|
-
function
|
|
2202
|
-
const n =
|
|
2203
|
-
if (console.warn(n),
|
|
2212
|
+
function _r(e, t, a) {
|
|
2213
|
+
const n = $r(e, t, a);
|
|
2214
|
+
if (console.warn(n), Kr.includes(e)) throw new RangeError(n);
|
|
2204
2215
|
}
|
|
2205
|
-
function
|
|
2216
|
+
function $r(e, t, a) {
|
|
2206
2217
|
const n = e[0] === "Y" ? "years" : "days of the month";
|
|
2207
2218
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2208
2219
|
}
|
|
2209
|
-
const
|
|
2210
|
-
function
|
|
2220
|
+
const eA = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tA = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, aA = /^'([^]*?)'?$/, nA = /''/g, rA = /[a-zA-Z]/;
|
|
2221
|
+
function AA(e, t, a) {
|
|
2211
2222
|
var d, f, b, I;
|
|
2212
|
-
const n = Fe(), r = n.locale ??
|
|
2213
|
-
if (!
|
|
2223
|
+
const n = Fe(), r = n.locale ?? Vr, i = n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, A = n.weekStartsOn ?? ((I = (b = n.locale) == null ? void 0 : b.options) == null ? void 0 : I.weekStartsOn) ?? 0, l = le(e, a == null ? void 0 : a.in);
|
|
2224
|
+
if (!Bt(l))
|
|
2214
2225
|
throw new RangeError("Invalid time value");
|
|
2215
|
-
let
|
|
2226
|
+
let s = t.match(tA).map((m) => {
|
|
2216
2227
|
const C = m[0];
|
|
2217
2228
|
if (C === "p" || C === "P") {
|
|
2218
|
-
const M =
|
|
2229
|
+
const M = Yr[C];
|
|
2219
2230
|
return M(m, r.formatLong);
|
|
2220
2231
|
}
|
|
2221
2232
|
return m;
|
|
2222
|
-
}).join("").match(
|
|
2233
|
+
}).join("").match(eA).map((m) => {
|
|
2223
2234
|
if (m === "''")
|
|
2224
2235
|
return { isToken: !1, value: "'" };
|
|
2225
2236
|
const C = m[0];
|
|
2226
2237
|
if (C === "'")
|
|
2227
|
-
return { isToken: !1, value:
|
|
2228
|
-
if (
|
|
2238
|
+
return { isToken: !1, value: iA(m) };
|
|
2239
|
+
if (It[C])
|
|
2229
2240
|
return { isToken: !0, value: m };
|
|
2230
|
-
if (C.match(
|
|
2241
|
+
if (C.match(rA))
|
|
2231
2242
|
throw new RangeError(
|
|
2232
2243
|
"Format string contains an unescaped latin alphabet character `" + C + "`"
|
|
2233
2244
|
);
|
|
2234
2245
|
return { isToken: !1, value: m };
|
|
2235
2246
|
});
|
|
2236
|
-
r.localize.preprocessor && (
|
|
2247
|
+
r.localize.preprocessor && (s = r.localize.preprocessor(l, s));
|
|
2237
2248
|
const c = {
|
|
2238
2249
|
firstWeekContainsDate: i,
|
|
2239
2250
|
weekStartsOn: A,
|
|
2240
2251
|
locale: r
|
|
2241
2252
|
};
|
|
2242
|
-
return
|
|
2253
|
+
return s.map((m) => {
|
|
2243
2254
|
if (!m.isToken) return m.value;
|
|
2244
2255
|
const C = m.value;
|
|
2245
|
-
(
|
|
2246
|
-
const M =
|
|
2247
|
-
return M(
|
|
2256
|
+
(Jr(C) || Gr(C)) && _r(C, t, String(e));
|
|
2257
|
+
const M = It[C[0]];
|
|
2258
|
+
return M(l, C, r.localize, c);
|
|
2248
2259
|
}).join("");
|
|
2249
2260
|
}
|
|
2250
|
-
function
|
|
2251
|
-
const t = e.match(
|
|
2252
|
-
return t ? t[1].replace(
|
|
2261
|
+
function iA(e) {
|
|
2262
|
+
const t = e.match(aA);
|
|
2263
|
+
return t ? t[1].replace(nA, "'") : e;
|
|
2253
2264
|
}
|
|
2254
|
-
const
|
|
2265
|
+
const oA = { class: "av-input__wrapper" }, lA = {
|
|
2255
2266
|
key: 0,
|
|
2256
2267
|
class: "av-input__prefix"
|
|
2257
|
-
},
|
|
2268
|
+
}, sA = {
|
|
2258
2269
|
key: 0,
|
|
2259
2270
|
class: "caption-light"
|
|
2260
|
-
},
|
|
2271
|
+
}, cA = {
|
|
2261
2272
|
key: 0,
|
|
2262
2273
|
class: "av-input__error",
|
|
2263
2274
|
role: "alert"
|
|
2264
|
-
},
|
|
2275
|
+
}, uA = {
|
|
2265
2276
|
key: 1,
|
|
2266
2277
|
class: "av-input__valid"
|
|
2267
|
-
},
|
|
2278
|
+
}, dA = /* @__PURE__ */ S({
|
|
2268
2279
|
__name: "AvInput",
|
|
2269
2280
|
props: {
|
|
2270
2281
|
id: {},
|
|
@@ -2290,30 +2301,30 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2290
2301
|
},
|
|
2291
2302
|
emits: ["update:modelValue"],
|
|
2292
2303
|
setup(e, { emit: t }) {
|
|
2293
|
-
const a = e, n = t, r = ie(), i = p(() => a.errorMessage ? Array.isArray(a.errorMessage) ? a.errorMessage : [a.errorMessage] : []), A = p(() => a.validMessage ? Array.isArray(a.validMessage) ? a.validMessage : [a.validMessage] : []),
|
|
2304
|
+
const a = e, n = t, r = ie(), i = p(() => a.errorMessage ? Array.isArray(a.errorMessage) ? a.errorMessage : [a.errorMessage] : []), A = p(() => a.validMessage ? Array.isArray(a.validMessage) ? a.validMessage : [a.validMessage] : []), l = p(() => a.id || `av-input-${crypto.randomUUID()}`), s = p(() => !!a.errorMessage), c = p(() => f(a.minDate)), d = p(() => f(a.maxDate));
|
|
2294
2305
|
function f(b) {
|
|
2295
|
-
if (!(a.type !== "date" && a.type !== "datetime-local" || b === void 0 || !
|
|
2296
|
-
return
|
|
2306
|
+
if (!(a.type !== "date" && a.type !== "datetime-local" || b === void 0 || !Bt(b)))
|
|
2307
|
+
return AA(b, "yyyy-MM-dd");
|
|
2297
2308
|
}
|
|
2298
2309
|
return (b, I) => (u(), g("div", {
|
|
2299
2310
|
class: F(["av-input", { "av-input--date": e.type === "date" }])
|
|
2300
2311
|
}, [
|
|
2301
|
-
y("div",
|
|
2302
|
-
e.prefixIcon ? (u(), g("div",
|
|
2312
|
+
y("div", oA, [
|
|
2313
|
+
e.prefixIcon ? (u(), g("div", lA, [
|
|
2303
2314
|
P(ae, {
|
|
2304
2315
|
name: e.prefixIcon,
|
|
2305
2316
|
size: 1.2
|
|
2306
2317
|
}, null, 8, ["name"])
|
|
2307
2318
|
])) : O("", !0),
|
|
2308
|
-
P(
|
|
2309
|
-
id:
|
|
2319
|
+
P(o(ua), ee({
|
|
2320
|
+
id: o(l),
|
|
2310
2321
|
"model-value": e.modelValue,
|
|
2311
2322
|
label: e.label,
|
|
2312
2323
|
"label-visible": e.labelVisible,
|
|
2313
2324
|
"label-class": e.labelClass,
|
|
2314
2325
|
hint: e.hint,
|
|
2315
2326
|
"description-id": a.descriptionId,
|
|
2316
|
-
"is-invalid": s
|
|
2327
|
+
"is-invalid": o(s),
|
|
2317
2328
|
"is-valid": e.isValid,
|
|
2318
2329
|
"is-textarea": e.isTextarea,
|
|
2319
2330
|
"wrapper-class": "av-input__wrapper",
|
|
@@ -2324,8 +2335,8 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2324
2335
|
maxlength: e.maxlength,
|
|
2325
2336
|
minlength: e.minlength
|
|
2326
2337
|
}, b.$attrs, {
|
|
2327
|
-
max:
|
|
2328
|
-
min:
|
|
2338
|
+
max: o(d),
|
|
2339
|
+
min: o(c),
|
|
2329
2340
|
"onUpdate:modelValue": I[0] || (I[0] = (m) => n("update:modelValue", m))
|
|
2330
2341
|
}), Le({ _: 2 }, [
|
|
2331
2342
|
r.requiredTip ? {
|
|
@@ -2342,29 +2353,29 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2342
2353
|
}, () => {
|
|
2343
2354
|
var m;
|
|
2344
2355
|
return [
|
|
2345
|
-
e.maxlength ? (u(), g("span",
|
|
2356
|
+
e.maxlength ? (u(), g("span", sA, Z((m = e.modelValue) == null ? void 0 : m.toString().length) + " / " + Z(e.maxlength), 1)) : O("", !0)
|
|
2346
2357
|
];
|
|
2347
2358
|
}, !0)
|
|
2348
2359
|
]),
|
|
2349
|
-
|
|
2350
|
-
(u(!0), g(_, null, ne(
|
|
2360
|
+
o(i).length > 0 ? (u(), g("div", cA, [
|
|
2361
|
+
(u(!0), g(_, null, ne(o(i), (m, C) => (u(), g("div", {
|
|
2351
2362
|
key: C,
|
|
2352
2363
|
class: "av-input__error-message"
|
|
2353
2364
|
}, Z(m), 1))), 128))
|
|
2354
2365
|
])) : O("", !0),
|
|
2355
|
-
|
|
2356
|
-
(u(!0), g(_, null, ne(
|
|
2366
|
+
o(A).length > 0 ? (u(), g("div", uA, [
|
|
2367
|
+
(u(!0), g(_, null, ne(o(A), (m, C) => (u(), g("div", {
|
|
2357
2368
|
key: C,
|
|
2358
2369
|
class: "av-input__valid-message"
|
|
2359
2370
|
}, Z(m), 1))), 128))
|
|
2360
2371
|
])) : O("", !0)
|
|
2361
2372
|
], 2));
|
|
2362
2373
|
}
|
|
2363
|
-
}),
|
|
2374
|
+
}), fA = /* @__PURE__ */ V(dA, [["__scopeId", "data-v-0a8b3809"]]), Ll = {
|
|
2364
2375
|
name: "AvList",
|
|
2365
2376
|
props: ["size"],
|
|
2366
2377
|
template: '<div class="av-list"><slot /></div>'
|
|
2367
|
-
},
|
|
2378
|
+
}, vA = ["role", "aria-label", "aria-labelledby", "aria-describedby"], mA = /* @__PURE__ */ S({
|
|
2368
2379
|
__name: "AvList",
|
|
2369
2380
|
props: {
|
|
2370
2381
|
backgroundColor: { default: "transparent" },
|
|
@@ -2388,30 +2399,30 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2388
2399
|
}));
|
|
2389
2400
|
const t = p(() => `av-list--${e.size}`), a = p(() => e.bordered ? "av-list--bordered" : ""), n = p(() => e.divided ? "av-list--divided" : "");
|
|
2390
2401
|
return (r, i) => (u(), g("div", {
|
|
2391
|
-
class: F(["av-list", [
|
|
2402
|
+
class: F(["av-list", [o(t), o(a), o(n)]]),
|
|
2392
2403
|
role: e.role,
|
|
2393
2404
|
"aria-label": e.ariaLabel,
|
|
2394
2405
|
"aria-labelledby": e.ariaLabelledby,
|
|
2395
2406
|
"aria-describedby": e.ariaDescribedby
|
|
2396
2407
|
}, [
|
|
2397
2408
|
B(r.$slots, "default", {}, void 0, !0)
|
|
2398
|
-
], 10,
|
|
2409
|
+
], 10, vA));
|
|
2399
2410
|
}
|
|
2400
|
-
}),
|
|
2411
|
+
}), Vt = /* @__PURE__ */ V(mA, [["__scopeId", "data-v-f74989f7"]]), Sl = {
|
|
2401
2412
|
name: "AvListItem",
|
|
2402
2413
|
props: ["clickable", "hoverBackgroundColor", "selected", "icon", "iconSize", "iconColor", "colorOnHover"],
|
|
2403
2414
|
emits: ["click"],
|
|
2404
2415
|
template: `<div class="av-list-item-stub" @click="$emit('click')"><slot /></div>`
|
|
2405
|
-
},
|
|
2416
|
+
}, gA = ["role"], IA = {
|
|
2406
2417
|
key: 0,
|
|
2407
2418
|
class: "av-list-item__icon"
|
|
2408
|
-
},
|
|
2419
|
+
}, hA = { class: "av-list-item__content" }, bA = {
|
|
2409
2420
|
key: 0,
|
|
2410
2421
|
class: "av-list-item__title"
|
|
2411
|
-
},
|
|
2422
|
+
}, CA = {
|
|
2412
2423
|
key: 1,
|
|
2413
2424
|
class: "av-list-item__description"
|
|
2414
|
-
},
|
|
2425
|
+
}, yA = { key: 2 }, EA = /* @__PURE__ */ S({
|
|
2415
2426
|
__name: "AvListItem",
|
|
2416
2427
|
props: {
|
|
2417
2428
|
icon: {},
|
|
@@ -2458,49 +2469,42 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2458
2469
|
(d = e.onClick) == null || d.call(e, f);
|
|
2459
2470
|
}
|
|
2460
2471
|
}
|
|
2461
|
-
const A = p(() => e.clickable ? "av-list-item--clickable" : ""),
|
|
2472
|
+
const A = p(() => e.clickable ? "av-list-item--clickable" : ""), l = p(() => e.disabled ? "av-list-item--disabled" : ""), s = p(() => e.selected ? "av-list-item--selected" : "");
|
|
2462
2473
|
return (c, d) => (u(), g("div", { role: e.role }, [
|
|
2463
|
-
(u(), x(ue(
|
|
2464
|
-
class: F(["av-list-item", [
|
|
2474
|
+
(u(), x(ue(o(a)), {
|
|
2475
|
+
class: F(["av-list-item", [o(A), o(l), o(s)]]),
|
|
2465
2476
|
tabindex: e.clickable && !e.disabled ? 0 : void 0,
|
|
2466
|
-
"aria-label": e.clickable ?
|
|
2477
|
+
"aria-label": e.clickable ? o(n) : void 0,
|
|
2467
2478
|
"aria-describedby": e.ariaDescribedby,
|
|
2468
2479
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
2469
|
-
disabled: e.disabled &&
|
|
2470
|
-
href:
|
|
2471
|
-
target:
|
|
2472
|
-
rel:
|
|
2480
|
+
disabled: e.disabled && o(a) === "button" ? !0 : void 0,
|
|
2481
|
+
href: o(a) === "a" ? e.href : void 0,
|
|
2482
|
+
target: o(a) === "a" ? e.target : void 0,
|
|
2483
|
+
rel: o(a) === "a" ? e.rel : void 0,
|
|
2473
2484
|
onClick: r,
|
|
2474
2485
|
onKeydown: i
|
|
2475
2486
|
}, {
|
|
2476
2487
|
default: Y(() => [
|
|
2477
|
-
e.icon ? (u(), g("div",
|
|
2488
|
+
e.icon ? (u(), g("div", IA, [
|
|
2478
2489
|
P(ae, {
|
|
2479
2490
|
name: e.icon,
|
|
2480
2491
|
color: e.iconColor ?? e.color,
|
|
2481
2492
|
size: e.iconSize
|
|
2482
2493
|
}, null, 8, ["name", "color", "size"])
|
|
2483
2494
|
])) : O("", !0),
|
|
2484
|
-
y("div",
|
|
2485
|
-
e.title ? (u(), g("div",
|
|
2486
|
-
e.description ? (u(), g("div",
|
|
2487
|
-
t.default ? (u(), g("div",
|
|
2495
|
+
y("div", hA, [
|
|
2496
|
+
e.title ? (u(), g("div", bA, Z(e.title), 1)) : O("", !0),
|
|
2497
|
+
e.description ? (u(), g("div", CA, Z(e.description), 1)) : O("", !0),
|
|
2498
|
+
t.default ? (u(), g("div", yA, [
|
|
2488
2499
|
B(c.$slots, "default", {}, void 0, !0)
|
|
2489
2500
|
])) : O("", !0)
|
|
2490
2501
|
])
|
|
2491
2502
|
]),
|
|
2492
2503
|
_: 3
|
|
2493
2504
|
}, 40, ["class", "tabindex", "aria-label", "aria-describedby", "aria-disabled", "disabled", "href", "target", "rel"]))
|
|
2494
|
-
], 8,
|
|
2505
|
+
], 8, gA));
|
|
2495
2506
|
}
|
|
2496
|
-
}),
|
|
2497
|
-
function yA(e) {
|
|
2498
|
-
return [...new Set(e)];
|
|
2499
|
-
}
|
|
2500
|
-
function Ll(e) {
|
|
2501
|
-
return /^[^\s@]+@[^\s.@]+\.[^\s@]+$/.test(e);
|
|
2502
|
-
}
|
|
2503
|
-
const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
2507
|
+
}), Ut = /* @__PURE__ */ V(EA, [["__scopeId", "data-v-b9106d17"]]), MA = { class: "av-select-container" }, pA = /* @__PURE__ */ S({
|
|
2504
2508
|
__name: "AvTagPicker",
|
|
2505
2509
|
props: {
|
|
2506
2510
|
multiple: { type: Boolean },
|
|
@@ -2513,7 +2517,7 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2513
2517
|
},
|
|
2514
2518
|
setup(e) {
|
|
2515
2519
|
re((C) => ({
|
|
2516
|
-
v68aa0dfa:
|
|
2520
|
+
v68aa0dfa: o(n)
|
|
2517
2521
|
}));
|
|
2518
2522
|
const t = e, {
|
|
2519
2523
|
label: a,
|
|
@@ -2521,8 +2525,8 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2521
2525
|
labelTypographyClass: r,
|
|
2522
2526
|
selected: i,
|
|
2523
2527
|
multiple: A,
|
|
2524
|
-
handleSelectChange:
|
|
2525
|
-
} = t,
|
|
2528
|
+
handleSelectChange: l
|
|
2529
|
+
} = t, s = p(() => Xa(t.options));
|
|
2526
2530
|
function c(C) {
|
|
2527
2531
|
return C ? Array.isArray(C) ? C : [C] : [];
|
|
2528
2532
|
}
|
|
@@ -2533,7 +2537,7 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2533
2537
|
function b(C) {
|
|
2534
2538
|
A ? (f(C) ? d.value = d.value.filter(
|
|
2535
2539
|
(T) => T.value !== C.value
|
|
2536
|
-
) : d.value.push(C),
|
|
2540
|
+
) : d.value.push(C), l([...d.value])) : (d.value = [C], l(C));
|
|
2537
2541
|
}
|
|
2538
2542
|
function I(C) {
|
|
2539
2543
|
return f(C) ? R.CHECK : void 0;
|
|
@@ -2544,13 +2548,13 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2544
2548
|
return ce(() => t.selected, (C) => {
|
|
2545
2549
|
d.value = c(C);
|
|
2546
2550
|
}, { immediate: !0 }), (C, M) => {
|
|
2547
|
-
const T =
|
|
2548
|
-
return u(), g("div",
|
|
2549
|
-
|
|
2551
|
+
const T = da;
|
|
2552
|
+
return u(), g("div", MA, [
|
|
2553
|
+
o(a) ? (u(), g("span", {
|
|
2550
2554
|
key: 0,
|
|
2551
|
-
class: F(["av-select-label", [
|
|
2552
|
-
}, Z(
|
|
2553
|
-
(u(!0), g(_, null, ne(s
|
|
2555
|
+
class: F(["av-select-label", [o(r)]])
|
|
2556
|
+
}, Z(o(a)), 3)) : O("", !0),
|
|
2557
|
+
(u(!0), g(_, null, ne(o(s), (Q) => (u(), g("div", {
|
|
2554
2558
|
key: Q.value,
|
|
2555
2559
|
class: "tag-wrapper"
|
|
2556
2560
|
}, [
|
|
@@ -2570,14 +2574,14 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2570
2574
|
]);
|
|
2571
2575
|
};
|
|
2572
2576
|
}
|
|
2573
|
-
}),
|
|
2574
|
-
var
|
|
2575
|
-
const
|
|
2577
|
+
}), NA = /* @__PURE__ */ V(pA, [["__scopeId", "data-v-b70ffc0f"]]);
|
|
2578
|
+
var Xt = /* @__PURE__ */ ((e) => (e[e.FOUR = 4] = "FOUR", e[e.EIGHT = 8] = "EIGHT", e[e.TWELVE = 12] = "TWELVE", e))(Xt || {});
|
|
2579
|
+
const kl = [
|
|
2576
2580
|
4,
|
|
2577
2581
|
8,
|
|
2578
2582
|
12
|
|
2579
2583
|
/* TWELVE */
|
|
2580
|
-
],
|
|
2584
|
+
], TA = { class: "pagination-size-picker-container" }, QA = /* @__PURE__ */ S({
|
|
2581
2585
|
__name: "AvPageSizePicker",
|
|
2582
2586
|
props: {
|
|
2583
2587
|
label: {},
|
|
@@ -2585,17 +2589,17 @@ const Sl = [
|
|
|
2585
2589
|
handleSelectChange: { type: Function }
|
|
2586
2590
|
},
|
|
2587
2591
|
setup(e) {
|
|
2588
|
-
const t = p(() => Object.values(
|
|
2592
|
+
const t = p(() => Object.values(Xt).filter((n) => typeof n == "number").map((n) => ({
|
|
2589
2593
|
label: n.toString(),
|
|
2590
2594
|
value: n.toString()
|
|
2591
2595
|
}))), a = p(() => ({
|
|
2592
2596
|
label: e.pageSizeSelected.toString(),
|
|
2593
2597
|
value: e.pageSizeSelected.toString()
|
|
2594
2598
|
}));
|
|
2595
|
-
return (n, r) => (u(), g("div",
|
|
2596
|
-
P(
|
|
2597
|
-
options:
|
|
2598
|
-
selected:
|
|
2599
|
+
return (n, r) => (u(), g("div", TA, [
|
|
2600
|
+
P(NA, {
|
|
2601
|
+
options: o(t),
|
|
2602
|
+
selected: o(a),
|
|
2599
2603
|
"handle-select-change": e.handleSelectChange,
|
|
2600
2604
|
multiple: !1,
|
|
2601
2605
|
label: e.label,
|
|
@@ -2604,7 +2608,7 @@ const Sl = [
|
|
|
2604
2608
|
}, null, 8, ["options", "selected", "handle-select-change", "label"])
|
|
2605
2609
|
]));
|
|
2606
2610
|
}
|
|
2607
|
-
}),
|
|
2611
|
+
}), zl = /* @__PURE__ */ V(QA, [["__scopeId", "data-v-d72fe5ab"]]), xl = {
|
|
2608
2612
|
name: "AvTagPicker",
|
|
2609
2613
|
props: [
|
|
2610
2614
|
"label",
|
|
@@ -2624,7 +2628,7 @@ const Sl = [
|
|
|
2624
2628
|
</button>
|
|
2625
2629
|
</div>
|
|
2626
2630
|
`
|
|
2627
|
-
},
|
|
2631
|
+
}, DA = /* @__PURE__ */ S({
|
|
2628
2632
|
__name: "AvRadioButton",
|
|
2629
2633
|
props: {
|
|
2630
2634
|
value: { type: [String, Number, Boolean] },
|
|
@@ -2635,7 +2639,7 @@ const Sl = [
|
|
|
2635
2639
|
setup(e) {
|
|
2636
2640
|
return (t, a) => B(t.$slots, "default");
|
|
2637
2641
|
}
|
|
2638
|
-
}),
|
|
2642
|
+
}), jl = /* @__PURE__ */ S({
|
|
2639
2643
|
__name: "AvRadioButtonSet",
|
|
2640
2644
|
props: {
|
|
2641
2645
|
name: {},
|
|
@@ -2653,27 +2657,27 @@ const Sl = [
|
|
|
2653
2657
|
setup(e, { expose: t, emit: a }) {
|
|
2654
2658
|
const n = e, r = a, i = ie();
|
|
2655
2659
|
function A(d) {
|
|
2656
|
-
return d != null && typeof d == "object" && "type" in d && d.type ===
|
|
2660
|
+
return d != null && typeof d == "object" && "type" in d && d.type === DA;
|
|
2657
2661
|
}
|
|
2658
|
-
function
|
|
2659
|
-
return d ? d.flatMap((f) => !f || typeof f != "object" || !("type" in f) ? [] : f.type === _ && Array.isArray(f.children) ?
|
|
2662
|
+
function l(d) {
|
|
2663
|
+
return d ? d.flatMap((f) => !f || typeof f != "object" || !("type" in f) ? [] : f.type === _ && Array.isArray(f.children) ? l(f.children) : A(f) ? [f] : []) : [];
|
|
2660
2664
|
}
|
|
2661
|
-
const
|
|
2665
|
+
const s = p(() => {
|
|
2662
2666
|
var d;
|
|
2663
|
-
return
|
|
2667
|
+
return l((d = i.default) == null ? void 0 : d.call(i));
|
|
2664
2668
|
}), c = J(n.modelValue);
|
|
2665
2669
|
return ce(() => n.modelValue, (d) => {
|
|
2666
2670
|
c.value = d;
|
|
2667
2671
|
}), ce(c, (d) => {
|
|
2668
2672
|
d && r("update:modelValue", d);
|
|
2669
|
-
}), t({ selected: c }), (d, f) => (u(), x(
|
|
2673
|
+
}), t({ selected: c }), (d, f) => (u(), x(o(fa), ee(n, { "model-value": o(c) }), {
|
|
2670
2674
|
default: Y(() => [
|
|
2671
|
-
(u(!0), g(_, null, ne(s
|
|
2675
|
+
(u(!0), g(_, null, ne(o(s), (b, I) => {
|
|
2672
2676
|
var m, C;
|
|
2673
|
-
return u(), x(
|
|
2677
|
+
return u(), x(o(va), {
|
|
2674
2678
|
key: I,
|
|
2675
|
-
modelValue:
|
|
2676
|
-
"onUpdate:modelValue": f[0] || (f[0] = (M) =>
|
|
2679
|
+
modelValue: o(c),
|
|
2680
|
+
"onUpdate:modelValue": f[0] || (f[0] = (M) => At(c) ? c.value = M : null),
|
|
2677
2681
|
value: (m = b.props) == null ? void 0 : m.value,
|
|
2678
2682
|
disabled: ((C = b.props) == null ? void 0 : C.disabled) ?? n.disabled,
|
|
2679
2683
|
small: n.small,
|
|
@@ -2693,7 +2697,7 @@ const Sl = [
|
|
|
2693
2697
|
_: 1
|
|
2694
2698
|
}, 16, ["model-value"]));
|
|
2695
2699
|
}
|
|
2696
|
-
}),
|
|
2700
|
+
}), Bl = {
|
|
2697
2701
|
name: "AvAutocomplete",
|
|
2698
2702
|
props: [
|
|
2699
2703
|
"modelValue",
|
|
@@ -2711,21 +2715,21 @@ const Sl = [
|
|
|
2711
2715
|
template: '<div class="av-autocomplete-stub"><slot name="item" v-for="option in options" :key="option.id" :option="option" :is-selected="false" :toggle="() => {}" /></div>'
|
|
2712
2716
|
};
|
|
2713
2717
|
var Me = /* @__PURE__ */ ((e) => (e.LOADING = "loading", e.NO_OPTIONS = "no-options", e.HAS_OPTIONS = "has-options", e))(Me || {});
|
|
2714
|
-
const
|
|
2715
|
-
function
|
|
2716
|
-
const e =
|
|
2718
|
+
const Ht = Symbol("AvAutocompleteContext");
|
|
2719
|
+
function lt() {
|
|
2720
|
+
const e = Na(Ht);
|
|
2717
2721
|
if (!e)
|
|
2718
2722
|
throw new Error("useAutocompleteContext must be used within AvAutocomplete component");
|
|
2719
2723
|
return e;
|
|
2720
2724
|
}
|
|
2721
|
-
function
|
|
2722
|
-
return
|
|
2725
|
+
function Zt(e) {
|
|
2726
|
+
return Ta() ? (Qa(e), !0) : !1;
|
|
2723
2727
|
}
|
|
2724
|
-
const
|
|
2728
|
+
const OA = typeof window < "u" && typeof document < "u";
|
|
2725
2729
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2726
|
-
const
|
|
2730
|
+
const wA = (e) => e != null, LA = Object.prototype.toString, SA = (e) => LA.call(e) === "[object Object]", pe = () => {
|
|
2727
2731
|
};
|
|
2728
|
-
function
|
|
2732
|
+
function qt(e, t) {
|
|
2729
2733
|
function a(...n) {
|
|
2730
2734
|
return new Promise((r, i) => {
|
|
2731
2735
|
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(r).catch(i);
|
|
@@ -2733,62 +2737,62 @@ function Zt(e, t) {
|
|
|
2733
2737
|
}
|
|
2734
2738
|
return a;
|
|
2735
2739
|
}
|
|
2736
|
-
function
|
|
2740
|
+
function kA(e, t = {}) {
|
|
2737
2741
|
let a, n, r = pe;
|
|
2738
|
-
const i = (
|
|
2739
|
-
clearTimeout(
|
|
2742
|
+
const i = (s) => {
|
|
2743
|
+
clearTimeout(s), r(), r = pe;
|
|
2740
2744
|
};
|
|
2741
2745
|
let A;
|
|
2742
|
-
return (
|
|
2746
|
+
return (s) => {
|
|
2743
2747
|
const c = te(e), d = te(t.maxWait);
|
|
2744
|
-
return a && i(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = void 0), Promise.resolve(
|
|
2745
|
-
r = t.rejectOnCancel ? b : f, A =
|
|
2748
|
+
return a && i(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((f, b) => {
|
|
2749
|
+
r = t.rejectOnCancel ? b : f, A = s, d && !n && (n = setTimeout(() => {
|
|
2746
2750
|
a && i(a), n = void 0, f(A());
|
|
2747
2751
|
}, d)), a = setTimeout(() => {
|
|
2748
|
-
n && i(n), n = void 0, f(
|
|
2752
|
+
n && i(n), n = void 0, f(s());
|
|
2749
2753
|
}, c);
|
|
2750
2754
|
});
|
|
2751
2755
|
};
|
|
2752
2756
|
}
|
|
2753
|
-
function
|
|
2754
|
-
let t = 0, a, n = !0, r = pe, i, A,
|
|
2755
|
-
!
|
|
2757
|
+
function zA(...e) {
|
|
2758
|
+
let t = 0, a, n = !0, r = pe, i, A, l, s, c;
|
|
2759
|
+
!At(e[0]) && typeof e[0] == "object" ? { delay: A, trailing: l = !0, leading: s = !0, rejectOnCancel: c = !1 } = e[0] : [A, l = !0, s = !0, c = !1] = e;
|
|
2756
2760
|
const d = () => {
|
|
2757
2761
|
a && (clearTimeout(a), a = void 0, r(), r = pe);
|
|
2758
2762
|
};
|
|
2759
2763
|
return (b) => {
|
|
2760
2764
|
const I = te(A), m = Date.now() - t, C = () => i = b();
|
|
2761
|
-
return d(), I <= 0 ? (t = Date.now(), C()) : (m > I && (
|
|
2765
|
+
return d(), I <= 0 ? (t = Date.now(), C()) : (m > I && (s || !n) ? (t = Date.now(), C()) : l && (i = new Promise((M, T) => {
|
|
2762
2766
|
r = c ? T : M, a = setTimeout(() => {
|
|
2763
2767
|
t = Date.now(), n = !0, M(C()), d();
|
|
2764
2768
|
}, Math.max(0, I - m));
|
|
2765
|
-
})), !
|
|
2769
|
+
})), !s && !a && (a = setTimeout(() => n = !0, I)), n = !1, i);
|
|
2766
2770
|
};
|
|
2767
2771
|
}
|
|
2768
2772
|
function We(e) {
|
|
2769
2773
|
return Array.isArray(e) ? e : [e];
|
|
2770
2774
|
}
|
|
2771
|
-
function
|
|
2772
|
-
return
|
|
2775
|
+
function xA(e) {
|
|
2776
|
+
return kt();
|
|
2773
2777
|
}
|
|
2774
2778
|
// @__NO_SIDE_EFFECTS__
|
|
2775
|
-
function
|
|
2776
|
-
return
|
|
2777
|
-
|
|
2779
|
+
function jA(e, t = 200, a = {}) {
|
|
2780
|
+
return qt(
|
|
2781
|
+
kA(t, a),
|
|
2778
2782
|
e
|
|
2779
2783
|
);
|
|
2780
2784
|
}
|
|
2781
2785
|
// @__NO_SIDE_EFFECTS__
|
|
2782
|
-
function
|
|
2783
|
-
return
|
|
2784
|
-
|
|
2786
|
+
function BA(e, t = 200, a = !1, n = !0, r = !1) {
|
|
2787
|
+
return qt(
|
|
2788
|
+
zA(t, a, n, r),
|
|
2785
2789
|
e
|
|
2786
2790
|
);
|
|
2787
2791
|
}
|
|
2788
|
-
function
|
|
2789
|
-
|
|
2792
|
+
function PA(e, t = !0, a) {
|
|
2793
|
+
xA() ? xe(e, a) : t ? e() : Re(e);
|
|
2790
2794
|
}
|
|
2791
|
-
function
|
|
2795
|
+
function WA(e, t, a) {
|
|
2792
2796
|
return ce(
|
|
2793
2797
|
e,
|
|
2794
2798
|
t,
|
|
@@ -2798,36 +2802,36 @@ function PA(e, t, a) {
|
|
|
2798
2802
|
}
|
|
2799
2803
|
);
|
|
2800
2804
|
}
|
|
2801
|
-
const
|
|
2802
|
-
function
|
|
2805
|
+
const st = OA ? window : void 0;
|
|
2806
|
+
function ct(e) {
|
|
2803
2807
|
var t;
|
|
2804
2808
|
const a = te(e);
|
|
2805
2809
|
return (t = a == null ? void 0 : a.$el) != null ? t : a;
|
|
2806
2810
|
}
|
|
2807
|
-
function
|
|
2811
|
+
function yt(...e) {
|
|
2808
2812
|
const t = [], a = () => {
|
|
2809
|
-
t.forEach((
|
|
2810
|
-
}, n = (
|
|
2811
|
-
const
|
|
2812
|
-
return
|
|
2813
|
-
}), i =
|
|
2813
|
+
t.forEach((l) => l()), t.length = 0;
|
|
2814
|
+
}, n = (l, s, c, d) => (l.addEventListener(s, c, d), () => l.removeEventListener(s, c, d)), r = p(() => {
|
|
2815
|
+
const l = We(te(e[0])).filter((s) => s != null);
|
|
2816
|
+
return l.every((s) => typeof s != "string") ? l : void 0;
|
|
2817
|
+
}), i = WA(
|
|
2814
2818
|
() => {
|
|
2815
|
-
var
|
|
2819
|
+
var l, s;
|
|
2816
2820
|
return [
|
|
2817
|
-
(
|
|
2821
|
+
(s = (l = r.value) == null ? void 0 : l.map((c) => ct(c))) != null ? s : [st].filter((c) => c != null),
|
|
2818
2822
|
We(te(r.value ? e[1] : e[0])),
|
|
2819
|
-
We(
|
|
2823
|
+
We(o(r.value ? e[2] : e[1])),
|
|
2820
2824
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
2821
2825
|
te(r.value ? e[3] : e[2])
|
|
2822
2826
|
];
|
|
2823
2827
|
},
|
|
2824
|
-
([
|
|
2825
|
-
if (a(), !(
|
|
2828
|
+
([l, s, c, d]) => {
|
|
2829
|
+
if (a(), !(l != null && l.length) || !(s != null && s.length) || !(c != null && c.length))
|
|
2826
2830
|
return;
|
|
2827
|
-
const f =
|
|
2831
|
+
const f = SA(d) ? { ...d } : d;
|
|
2828
2832
|
t.push(
|
|
2829
|
-
...
|
|
2830
|
-
(b) =>
|
|
2833
|
+
...l.flatMap(
|
|
2834
|
+
(b) => s.flatMap(
|
|
2831
2835
|
(I) => c.map((m) => n(b, I, m, f))
|
|
2832
2836
|
)
|
|
2833
2837
|
)
|
|
@@ -2837,45 +2841,45 @@ function Ct(...e) {
|
|
|
2837
2841
|
), A = () => {
|
|
2838
2842
|
i(), a();
|
|
2839
2843
|
};
|
|
2840
|
-
return
|
|
2844
|
+
return Zt(a), A;
|
|
2841
2845
|
}
|
|
2842
2846
|
// @__NO_SIDE_EFFECTS__
|
|
2843
|
-
function
|
|
2844
|
-
const e = Pe(!1), t =
|
|
2847
|
+
function VA() {
|
|
2848
|
+
const e = Pe(!1), t = kt();
|
|
2845
2849
|
return t && xe(() => {
|
|
2846
2850
|
e.value = !0;
|
|
2847
2851
|
}, t), e;
|
|
2848
2852
|
}
|
|
2849
2853
|
// @__NO_SIDE_EFFECTS__
|
|
2850
|
-
function
|
|
2851
|
-
const t = /* @__PURE__ */
|
|
2854
|
+
function UA(e) {
|
|
2855
|
+
const t = /* @__PURE__ */ VA();
|
|
2852
2856
|
return p(() => (t.value, !!e()));
|
|
2853
2857
|
}
|
|
2854
|
-
function
|
|
2855
|
-
const { window: n =
|
|
2858
|
+
function XA(e, t, a = {}) {
|
|
2859
|
+
const { window: n = st, ...r } = a;
|
|
2856
2860
|
let i;
|
|
2857
|
-
const A = /* @__PURE__ */
|
|
2861
|
+
const A = /* @__PURE__ */ UA(() => n && "MutationObserver" in n), l = () => {
|
|
2858
2862
|
i && (i.disconnect(), i = void 0);
|
|
2859
|
-
},
|
|
2860
|
-
const b = te(e), I = We(b).map(
|
|
2863
|
+
}, s = p(() => {
|
|
2864
|
+
const b = te(e), I = We(b).map(ct).filter(wA);
|
|
2861
2865
|
return new Set(I);
|
|
2862
2866
|
}), c = ce(
|
|
2863
|
-
|
|
2867
|
+
s,
|
|
2864
2868
|
(b) => {
|
|
2865
|
-
|
|
2869
|
+
l(), A.value && b.size && (i = new MutationObserver(t), b.forEach((I) => i.observe(I, r)));
|
|
2866
2870
|
},
|
|
2867
2871
|
{ immediate: !0, flush: "post" }
|
|
2868
2872
|
), d = () => i == null ? void 0 : i.takeRecords(), f = () => {
|
|
2869
|
-
c(),
|
|
2873
|
+
c(), l();
|
|
2870
2874
|
};
|
|
2871
|
-
return
|
|
2875
|
+
return Zt(f), {
|
|
2872
2876
|
isSupported: A,
|
|
2873
2877
|
stop: f,
|
|
2874
2878
|
takeRecords: d
|
|
2875
2879
|
};
|
|
2876
2880
|
}
|
|
2877
|
-
const
|
|
2878
|
-
function
|
|
2881
|
+
const Et = 1;
|
|
2882
|
+
function HA(e, t = {}) {
|
|
2879
2883
|
const {
|
|
2880
2884
|
throttle: a = 0,
|
|
2881
2885
|
idle: n = 200,
|
|
@@ -2887,21 +2891,21 @@ function XA(e, t = {}) {
|
|
|
2887
2891
|
top: 0,
|
|
2888
2892
|
bottom: 0
|
|
2889
2893
|
},
|
|
2890
|
-
observe:
|
|
2894
|
+
observe: l = {
|
|
2891
2895
|
mutation: !1
|
|
2892
2896
|
},
|
|
2893
|
-
eventListenerOptions:
|
|
2897
|
+
eventListenerOptions: s = {
|
|
2894
2898
|
capture: !1,
|
|
2895
2899
|
passive: !0
|
|
2896
2900
|
},
|
|
2897
2901
|
behavior: c = "auto",
|
|
2898
|
-
window: d =
|
|
2902
|
+
window: d = st,
|
|
2899
2903
|
onError: f = (w) => {
|
|
2900
2904
|
console.error(w);
|
|
2901
2905
|
}
|
|
2902
|
-
} = t, b = typeof
|
|
2903
|
-
mutation:
|
|
2904
|
-
} :
|
|
2906
|
+
} = t, b = typeof l == "boolean" ? {
|
|
2907
|
+
mutation: l
|
|
2908
|
+
} : l, I = Pe(0), m = Pe(0), C = p({
|
|
2905
2909
|
get() {
|
|
2906
2910
|
return I.value;
|
|
2907
2911
|
},
|
|
@@ -2931,29 +2935,29 @@ function XA(e, t = {}) {
|
|
|
2931
2935
|
const k = ((h = N == null ? void 0 : N.document) == null ? void 0 : h.documentElement) || (N == null ? void 0 : N.documentElement) || N;
|
|
2932
2936
|
C != null && (I.value = k.scrollLeft), M != null && (m.value = k.scrollTop);
|
|
2933
2937
|
}
|
|
2934
|
-
const Q = Pe(!1), E =
|
|
2938
|
+
const Q = Pe(!1), E = dt({
|
|
2935
2939
|
left: !0,
|
|
2936
2940
|
right: !1,
|
|
2937
2941
|
top: !0,
|
|
2938
2942
|
bottom: !1
|
|
2939
|
-
}), D =
|
|
2943
|
+
}), D = dt({
|
|
2940
2944
|
left: !1,
|
|
2941
2945
|
right: !1,
|
|
2942
2946
|
top: !1,
|
|
2943
2947
|
bottom: !1
|
|
2944
2948
|
}), j = (w) => {
|
|
2945
2949
|
Q.value && (Q.value = !1, D.left = !1, D.right = !1, D.top = !1, D.bottom = !1, r(w));
|
|
2946
|
-
}, W = /* @__PURE__ */
|
|
2950
|
+
}, W = /* @__PURE__ */ jA(j, a + n), z = (w) => {
|
|
2947
2951
|
var oe;
|
|
2948
2952
|
if (!d)
|
|
2949
2953
|
return;
|
|
2950
|
-
const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) ||
|
|
2954
|
+
const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) || ct(w), { display: X, flexDirection: v, direction: h } = getComputedStyle($), N = h === "rtl" ? -1 : 1, k = $.scrollLeft;
|
|
2951
2955
|
D.left = k < I.value, D.right = k > I.value;
|
|
2952
|
-
const U = Math.abs(k * N) <= (A.left || 0), q = Math.abs(k * N) + $.clientWidth >= $.scrollWidth - (A.right || 0) -
|
|
2956
|
+
const U = Math.abs(k * N) <= (A.left || 0), q = Math.abs(k * N) + $.clientWidth >= $.scrollWidth - (A.right || 0) - Et;
|
|
2953
2957
|
X === "flex" && v === "row-reverse" ? (E.left = q, E.right = U) : (E.left = U, E.right = q), I.value = k;
|
|
2954
2958
|
let L = $.scrollTop;
|
|
2955
2959
|
w === d.document && !L && (L = d.document.body.scrollTop), D.top = L < m.value, D.bottom = L > m.value;
|
|
2956
|
-
const K = Math.abs(L) <= (A.top || 0), G = Math.abs(L) + $.clientHeight >= $.scrollHeight - (A.bottom || 0) -
|
|
2960
|
+
const K = Math.abs(L) <= (A.top || 0), G = Math.abs(L) + $.clientHeight >= $.scrollHeight - (A.bottom || 0) - Et;
|
|
2957
2961
|
X === "flex" && v === "column-reverse" ? (E.top = G, E.bottom = K) : (E.top = K, E.bottom = G), m.value = L;
|
|
2958
2962
|
}, Ae = (w) => {
|
|
2959
2963
|
var oe;
|
|
@@ -2962,12 +2966,12 @@ function XA(e, t = {}) {
|
|
|
2962
2966
|
const $ = (oe = w.target.documentElement) != null ? oe : w.target;
|
|
2963
2967
|
z($), Q.value = !0, W(w), i(w);
|
|
2964
2968
|
};
|
|
2965
|
-
return
|
|
2969
|
+
return yt(
|
|
2966
2970
|
e,
|
|
2967
2971
|
"scroll",
|
|
2968
|
-
a ? /* @__PURE__ */
|
|
2969
|
-
|
|
2970
|
-
),
|
|
2972
|
+
a ? /* @__PURE__ */ BA(Ae, a, !0, !1) : Ae,
|
|
2973
|
+
s
|
|
2974
|
+
), PA(() => {
|
|
2971
2975
|
try {
|
|
2972
2976
|
const w = te(e);
|
|
2973
2977
|
if (!w)
|
|
@@ -2976,7 +2980,7 @@ function XA(e, t = {}) {
|
|
|
2976
2980
|
} catch (w) {
|
|
2977
2981
|
f(w);
|
|
2978
2982
|
}
|
|
2979
|
-
}), b != null && b.mutation && e != null && e !== d && e !== document &&
|
|
2983
|
+
}), b != null && b.mutation && e != null && e !== d && e !== document && XA(
|
|
2980
2984
|
e,
|
|
2981
2985
|
() => {
|
|
2982
2986
|
const w = te(e);
|
|
@@ -2987,11 +2991,11 @@ function XA(e, t = {}) {
|
|
|
2987
2991
|
childList: !0,
|
|
2988
2992
|
subtree: !0
|
|
2989
2993
|
}
|
|
2990
|
-
),
|
|
2994
|
+
), yt(
|
|
2991
2995
|
e,
|
|
2992
2996
|
"scrollend",
|
|
2993
2997
|
j,
|
|
2994
|
-
|
|
2998
|
+
s
|
|
2995
2999
|
), {
|
|
2996
3000
|
x: C,
|
|
2997
3001
|
y: M,
|
|
@@ -3004,153 +3008,153 @@ function XA(e, t = {}) {
|
|
|
3004
3008
|
}
|
|
3005
3009
|
};
|
|
3006
3010
|
}
|
|
3007
|
-
var
|
|
3008
|
-
function
|
|
3009
|
-
var t =
|
|
3011
|
+
var ZA = typeof global == "object" && global && global.Object === Object && global, qA = typeof self == "object" && self && self.Object === Object && self, Yt = ZA || qA || Function("return this")(), Xe = Yt.Symbol, Rt = Object.prototype, YA = Rt.hasOwnProperty, RA = Rt.toString, Oe = Xe ? Xe.toStringTag : void 0;
|
|
3012
|
+
function FA(e) {
|
|
3013
|
+
var t = YA.call(e, Oe), a = e[Oe];
|
|
3010
3014
|
try {
|
|
3011
3015
|
e[Oe] = void 0;
|
|
3012
3016
|
var n = !0;
|
|
3013
3017
|
} catch {
|
|
3014
3018
|
}
|
|
3015
|
-
var r =
|
|
3019
|
+
var r = RA.call(e);
|
|
3016
3020
|
return n && (t ? e[Oe] = a : delete e[Oe]), r;
|
|
3017
3021
|
}
|
|
3018
|
-
var
|
|
3019
|
-
function
|
|
3020
|
-
return
|
|
3021
|
-
}
|
|
3022
|
-
var JA = "[object Null]", _A = "[object Undefined]", Et = Xe ? Xe.toStringTag : void 0;
|
|
3023
|
-
function $A(e) {
|
|
3024
|
-
return e == null ? e === void 0 ? _A : JA : Et && Et in Object(e) ? RA(e) : GA(e);
|
|
3022
|
+
var KA = Object.prototype, GA = KA.toString;
|
|
3023
|
+
function JA(e) {
|
|
3024
|
+
return GA.call(e);
|
|
3025
3025
|
}
|
|
3026
|
+
var _A = "[object Null]", $A = "[object Undefined]", Mt = Xe ? Xe.toStringTag : void 0;
|
|
3026
3027
|
function ei(e) {
|
|
3028
|
+
return e == null ? e === void 0 ? $A : _A : Mt && Mt in Object(e) ? FA(e) : JA(e);
|
|
3029
|
+
}
|
|
3030
|
+
function ti(e) {
|
|
3027
3031
|
return e != null && typeof e == "object";
|
|
3028
3032
|
}
|
|
3029
|
-
var
|
|
3030
|
-
function
|
|
3031
|
-
return typeof e == "symbol" ||
|
|
3033
|
+
var ai = "[object Symbol]";
|
|
3034
|
+
function ni(e) {
|
|
3035
|
+
return typeof e == "symbol" || ti(e) && ei(e) == ai;
|
|
3032
3036
|
}
|
|
3033
|
-
var
|
|
3034
|
-
function
|
|
3035
|
-
for (var t = e.length; t-- &&
|
|
3037
|
+
var ri = /\s/;
|
|
3038
|
+
function Ai(e) {
|
|
3039
|
+
for (var t = e.length; t-- && ri.test(e.charAt(t)); )
|
|
3036
3040
|
;
|
|
3037
3041
|
return t;
|
|
3038
3042
|
}
|
|
3039
|
-
var
|
|
3040
|
-
function
|
|
3041
|
-
return e && e.slice(0,
|
|
3043
|
+
var ii = /^\s+/;
|
|
3044
|
+
function oi(e) {
|
|
3045
|
+
return e && e.slice(0, Ai(e) + 1).replace(ii, "");
|
|
3042
3046
|
}
|
|
3043
|
-
function
|
|
3047
|
+
function tt(e) {
|
|
3044
3048
|
var t = typeof e;
|
|
3045
3049
|
return e != null && (t == "object" || t == "function");
|
|
3046
3050
|
}
|
|
3047
|
-
var
|
|
3048
|
-
function
|
|
3051
|
+
var pt = NaN, li = /^[-+]0x[0-9a-f]+$/i, si = /^0b[01]+$/i, ci = /^0o[0-7]+$/i, ui = parseInt;
|
|
3052
|
+
function Nt(e) {
|
|
3049
3053
|
if (typeof e == "number")
|
|
3050
3054
|
return e;
|
|
3051
|
-
if (
|
|
3052
|
-
return
|
|
3053
|
-
if (
|
|
3055
|
+
if (ni(e))
|
|
3056
|
+
return pt;
|
|
3057
|
+
if (tt(e)) {
|
|
3054
3058
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
3055
|
-
e =
|
|
3059
|
+
e = tt(t) ? t + "" : t;
|
|
3056
3060
|
}
|
|
3057
3061
|
if (typeof e != "string")
|
|
3058
3062
|
return e === 0 ? e : +e;
|
|
3059
|
-
e =
|
|
3060
|
-
var a =
|
|
3061
|
-
return a ||
|
|
3063
|
+
e = oi(e);
|
|
3064
|
+
var a = si.test(e);
|
|
3065
|
+
return a || ci.test(e) ? ui(e.slice(2), a ? 2 : 8) : li.test(e) ? pt : +e;
|
|
3062
3066
|
}
|
|
3063
|
-
var
|
|
3064
|
-
return
|
|
3065
|
-
},
|
|
3066
|
-
function
|
|
3067
|
-
var n, r, i, A,
|
|
3067
|
+
var $e = function() {
|
|
3068
|
+
return Yt.Date.now();
|
|
3069
|
+
}, di = "Expected a function", fi = Math.max, vi = Math.min;
|
|
3070
|
+
function Ft(e, t, a) {
|
|
3071
|
+
var n, r, i, A, l, s, c = 0, d = !1, f = !1, b = !0;
|
|
3068
3072
|
if (typeof e != "function")
|
|
3069
|
-
throw new TypeError(
|
|
3070
|
-
t =
|
|
3073
|
+
throw new TypeError(di);
|
|
3074
|
+
t = Nt(t) || 0, tt(a) && (d = !!a.leading, f = "maxWait" in a, i = f ? fi(Nt(a.maxWait) || 0, t) : i, b = "trailing" in a ? !!a.trailing : b);
|
|
3071
3075
|
function I(W) {
|
|
3072
3076
|
var z = n, Ae = r;
|
|
3073
3077
|
return n = r = void 0, c = W, A = e.apply(Ae, z), A;
|
|
3074
3078
|
}
|
|
3075
3079
|
function m(W) {
|
|
3076
|
-
return c = W,
|
|
3080
|
+
return c = W, l = setTimeout(T, t), d ? I(W) : A;
|
|
3077
3081
|
}
|
|
3078
3082
|
function C(W) {
|
|
3079
|
-
var z = W -
|
|
3080
|
-
return f ?
|
|
3083
|
+
var z = W - s, Ae = W - c, w = t - z;
|
|
3084
|
+
return f ? vi(w, i - Ae) : w;
|
|
3081
3085
|
}
|
|
3082
3086
|
function M(W) {
|
|
3083
|
-
var z = W -
|
|
3084
|
-
return
|
|
3087
|
+
var z = W - s, Ae = W - c;
|
|
3088
|
+
return s === void 0 || z >= t || z < 0 || f && Ae >= i;
|
|
3085
3089
|
}
|
|
3086
3090
|
function T() {
|
|
3087
|
-
var W =
|
|
3091
|
+
var W = $e();
|
|
3088
3092
|
if (M(W))
|
|
3089
3093
|
return Q(W);
|
|
3090
|
-
|
|
3094
|
+
l = setTimeout(T, C(W));
|
|
3091
3095
|
}
|
|
3092
3096
|
function Q(W) {
|
|
3093
|
-
return
|
|
3097
|
+
return l = void 0, b && n ? I(W) : (n = r = void 0, A);
|
|
3094
3098
|
}
|
|
3095
3099
|
function E() {
|
|
3096
|
-
|
|
3100
|
+
l !== void 0 && clearTimeout(l), c = 0, n = s = r = l = void 0;
|
|
3097
3101
|
}
|
|
3098
3102
|
function D() {
|
|
3099
|
-
return
|
|
3103
|
+
return l === void 0 ? A : Q($e());
|
|
3100
3104
|
}
|
|
3101
3105
|
function j() {
|
|
3102
|
-
var W =
|
|
3103
|
-
if (n = arguments, r = this,
|
|
3104
|
-
if (
|
|
3105
|
-
return m(
|
|
3106
|
+
var W = $e(), z = M(W);
|
|
3107
|
+
if (n = arguments, r = this, s = W, z) {
|
|
3108
|
+
if (l === void 0)
|
|
3109
|
+
return m(s);
|
|
3106
3110
|
if (f)
|
|
3107
|
-
return clearTimeout(
|
|
3111
|
+
return clearTimeout(l), l = setTimeout(T, t), I(s);
|
|
3108
3112
|
}
|
|
3109
|
-
return
|
|
3113
|
+
return l === void 0 && (l = setTimeout(T, t)), A;
|
|
3110
3114
|
}
|
|
3111
3115
|
return j.cancel = E, j.flush = D, j;
|
|
3112
3116
|
}
|
|
3113
|
-
const
|
|
3117
|
+
const mi = {
|
|
3114
3118
|
key: 0,
|
|
3115
3119
|
class: "av-autocomplete-dropdown__loading"
|
|
3116
|
-
},
|
|
3120
|
+
}, gi = {
|
|
3117
3121
|
key: 1,
|
|
3118
3122
|
class: "av-autocomplete-dropdown__empty"
|
|
3119
|
-
},
|
|
3123
|
+
}, Ii = {
|
|
3120
3124
|
key: 1,
|
|
3121
3125
|
class: "av-autocomplete-dropdown__empty-text"
|
|
3122
|
-
},
|
|
3126
|
+
}, hi = /* @__PURE__ */ S({
|
|
3123
3127
|
__name: "AvAutocompleteDropdown",
|
|
3124
3128
|
emits: ["loadMore"],
|
|
3125
3129
|
setup(e, { expose: t, emit: a }) {
|
|
3126
3130
|
const n = a, r = ie(), {
|
|
3127
3131
|
selectedItems: i,
|
|
3128
3132
|
searchQuery: A,
|
|
3129
|
-
isOpen:
|
|
3130
|
-
props:
|
|
3133
|
+
isOpen: l,
|
|
3134
|
+
props: s,
|
|
3131
3135
|
getOptionId: c,
|
|
3132
3136
|
getDisplayLabel: d
|
|
3133
|
-
} =
|
|
3134
|
-
if (!
|
|
3137
|
+
} = lt(), f = J(), b = J(), I = p(() => {
|
|
3138
|
+
if (!s.options)
|
|
3135
3139
|
return [];
|
|
3136
|
-
if (
|
|
3137
|
-
return
|
|
3140
|
+
if (s.serverSideFiltering)
|
|
3141
|
+
return s.maxResults ? s.options.slice(0, s.maxResults) : s.options;
|
|
3138
3142
|
const E = A.value.toLowerCase().trim();
|
|
3139
3143
|
if (!E) {
|
|
3140
|
-
const j =
|
|
3141
|
-
return
|
|
3144
|
+
const j = s.options;
|
|
3145
|
+
return s.maxResults ? j.slice(0, s.maxResults) : j;
|
|
3142
3146
|
}
|
|
3143
3147
|
let D;
|
|
3144
|
-
return
|
|
3145
|
-
}), m = p(() =>
|
|
3148
|
+
return s.filterOptions ? D = s.filterOptions(s.options, E) : D = s.options.filter((j) => d(j).toLowerCase().includes(E)), s.maxResults ? D.slice(0, s.maxResults) : D;
|
|
3149
|
+
}), m = p(() => s.loading ? Me.LOADING : l.value && s.options && s.options.length > 0 && I.value.length > 0 ? Me.HAS_OPTIONS : Me.NO_OPTIONS);
|
|
3146
3150
|
function C(E) {
|
|
3147
3151
|
return i.value.some(
|
|
3148
3152
|
(D) => c(D) === c(E)
|
|
3149
3153
|
);
|
|
3150
3154
|
}
|
|
3151
3155
|
function M(E) {
|
|
3152
|
-
if (!
|
|
3153
|
-
i.value = [E],
|
|
3156
|
+
if (!s.multiSelect) {
|
|
3157
|
+
i.value = [E], l.value = !1, A.value = "";
|
|
3154
3158
|
return;
|
|
3155
3159
|
}
|
|
3156
3160
|
const D = i.value, j = c(E);
|
|
@@ -3160,53 +3164,53 @@ const vi = {
|
|
|
3160
3164
|
(z) => c(z) !== j
|
|
3161
3165
|
) : i.value = [...D, E];
|
|
3162
3166
|
}
|
|
3163
|
-
const { arrivedState: T } =
|
|
3167
|
+
const { arrivedState: T } = HA(b, {
|
|
3164
3168
|
throttle: 100
|
|
3165
|
-
}), Q =
|
|
3169
|
+
}), Q = Ft(() => {
|
|
3166
3170
|
n("loadMore");
|
|
3167
|
-
},
|
|
3171
|
+
}, s.loadMoreThrottleDelay);
|
|
3168
3172
|
return ce(() => T.bottom, (E) => {
|
|
3169
|
-
|
|
3173
|
+
s.enableLoadMore && E && l.value && Q();
|
|
3170
3174
|
}), je(() => {
|
|
3171
3175
|
Q.cancel();
|
|
3172
3176
|
}), t({
|
|
3173
3177
|
dropdownRef: f
|
|
3174
|
-
}), (E, D) =>
|
|
3178
|
+
}), (E, D) => o(l) ? (u(), g("div", {
|
|
3175
3179
|
key: 0,
|
|
3176
3180
|
ref_key: "dropdownRef",
|
|
3177
3181
|
ref: f,
|
|
3178
|
-
class: F(["av-autocomplete-dropdown", s
|
|
3179
|
-
style: Ve({ width: s
|
|
3182
|
+
class: F(["av-autocomplete-dropdown", o(s).dropdownClass]),
|
|
3183
|
+
style: Ve({ width: o(s).dropdownWidth, maxHeight: o(s).maxDropdownHeight })
|
|
3180
3184
|
}, [
|
|
3181
|
-
|
|
3185
|
+
o(m) === o(Me).LOADING ? (u(), g("div", mi, [
|
|
3182
3186
|
P(ae, {
|
|
3183
|
-
name:
|
|
3187
|
+
name: o(R).LOADING_OUTLINE,
|
|
3184
3188
|
size: 1.5,
|
|
3185
3189
|
class: "av-autocomplete-dropdown__spinner"
|
|
3186
3190
|
}, null, 8, ["name"]),
|
|
3187
3191
|
D[0] || (D[0] = y("span", { class: "av-autocomplete-dropdown__loading-text" }, "Loading...", -1))
|
|
3188
|
-
])) :
|
|
3189
|
-
r.empty ? B(E.$slots, "empty", { key: 0 }, void 0, !0) : (u(), g("div",
|
|
3190
|
-
])) : (u(), x(
|
|
3192
|
+
])) : o(m) === o(Me).NO_OPTIONS ? (u(), g("div", gi, [
|
|
3193
|
+
r.empty ? B(E.$slots, "empty", { key: 0 }, void 0, !0) : (u(), g("div", Ii, " No results found "))
|
|
3194
|
+
])) : (u(), x(Vt, ee({
|
|
3191
3195
|
key: 2,
|
|
3192
3196
|
ref_key: "listRef",
|
|
3193
3197
|
ref: b
|
|
3194
|
-
}, s
|
|
3195
|
-
class: ["av-autocomplete-dropdown__options", s
|
|
3198
|
+
}, o(s).listOptions, {
|
|
3199
|
+
class: ["av-autocomplete-dropdown__options", o(s).scrollbarClass]
|
|
3196
3200
|
}), {
|
|
3197
3201
|
default: Y(() => [
|
|
3198
|
-
(u(!0), g(_, null, ne(
|
|
3199
|
-
key:
|
|
3202
|
+
(u(!0), g(_, null, ne(o(I), (j) => (u(), g(_, {
|
|
3203
|
+
key: o(c)(j)
|
|
3200
3204
|
}, [
|
|
3201
3205
|
r.item ? B(E.$slots, "item", {
|
|
3202
3206
|
key: 0,
|
|
3203
3207
|
option: j,
|
|
3204
3208
|
isSelected: C(j),
|
|
3205
3209
|
toggle: () => M(j)
|
|
3206
|
-
}, void 0, !0) : (u(), x(
|
|
3210
|
+
}, void 0, !0) : (u(), x(Ut, {
|
|
3207
3211
|
key: 1,
|
|
3208
|
-
title:
|
|
3209
|
-
icon: C(j) ?
|
|
3212
|
+
title: o(d)(j),
|
|
3213
|
+
icon: C(j) ? o(R).CHECK : void 0,
|
|
3210
3214
|
selected: C(j),
|
|
3211
3215
|
clickable: "",
|
|
3212
3216
|
"on-click": () => M(j),
|
|
@@ -3219,32 +3223,32 @@ const vi = {
|
|
|
3219
3223
|
}, 16, ["class"]))
|
|
3220
3224
|
], 6)) : O("", !0);
|
|
3221
3225
|
}
|
|
3222
|
-
}),
|
|
3226
|
+
}), bi = /* @__PURE__ */ V(hi, [["__scopeId", "data-v-b59b9163"]]), Ci = { class: "av-autocomplete-input" }, yi = {
|
|
3223
3227
|
key: 0,
|
|
3224
3228
|
class: "av-autocomplete-input__suffix"
|
|
3225
|
-
},
|
|
3229
|
+
}, Ei = /* @__PURE__ */ S({
|
|
3226
3230
|
__name: "AvAutocompleteInput",
|
|
3227
3231
|
emits: ["search", "clear"],
|
|
3228
3232
|
setup(e, { expose: t, emit: a }) {
|
|
3229
3233
|
const n = a, r = ie(), {
|
|
3230
3234
|
selectedItems: i,
|
|
3231
3235
|
searchQuery: A,
|
|
3232
|
-
isOpen:
|
|
3233
|
-
props:
|
|
3236
|
+
isOpen: l,
|
|
3237
|
+
props: s,
|
|
3234
3238
|
inputId: c,
|
|
3235
3239
|
handleBlur: d,
|
|
3236
3240
|
getDisplayLabel: f
|
|
3237
|
-
} =
|
|
3241
|
+
} = lt(), b = J(), I = p(() => !s.multiSelect && i.value.length > 0 ? f(i.value[0]) : s.multiSelect && i.value.length > 0 ? s.showSelectedSection ? `${i.value.length} element(s) selected` : i.value.map(f).join(", ") : A.value), m = p(() => {
|
|
3238
3242
|
var E;
|
|
3239
|
-
return ((E =
|
|
3240
|
-
}), C =
|
|
3243
|
+
return ((E = s.inputOptions) == null ? void 0 : E.placeholder) || "Search...";
|
|
3244
|
+
}), C = Ft((E) => {
|
|
3241
3245
|
A.value = E, n("search", E);
|
|
3242
|
-
},
|
|
3246
|
+
}, s.debounceDelay);
|
|
3243
3247
|
function M(E) {
|
|
3244
3248
|
A.value = String(E || ""), C(A.value);
|
|
3245
3249
|
}
|
|
3246
3250
|
function T() {
|
|
3247
|
-
|
|
3251
|
+
l.value = !0;
|
|
3248
3252
|
}
|
|
3249
3253
|
function Q() {
|
|
3250
3254
|
i.value = [], A.value = "", n("clear");
|
|
@@ -3254,17 +3258,17 @@ const vi = {
|
|
|
3254
3258
|
}), t({
|
|
3255
3259
|
inputRef: b,
|
|
3256
3260
|
searchQuery: p(() => A.value)
|
|
3257
|
-
}), (E, D) => (u(), g("div",
|
|
3258
|
-
P(
|
|
3259
|
-
id:
|
|
3261
|
+
}), (E, D) => (u(), g("div", Ci, [
|
|
3262
|
+
P(fA, ee({
|
|
3263
|
+
id: o(c),
|
|
3260
3264
|
ref_key: "inputRef",
|
|
3261
3265
|
ref: b,
|
|
3262
|
-
"model-value":
|
|
3263
|
-
placeholder:
|
|
3264
|
-
}, s
|
|
3266
|
+
"model-value": o(I),
|
|
3267
|
+
placeholder: o(m)
|
|
3268
|
+
}, o(s).inputOptions, {
|
|
3265
3269
|
"onUpdate:modelValue": M,
|
|
3266
3270
|
onFocus: T,
|
|
3267
|
-
onBlur:
|
|
3271
|
+
onBlur: o(d),
|
|
3268
3272
|
onClick: T
|
|
3269
3273
|
}), Le({ _: 2 }, [
|
|
3270
3274
|
r.requiredTip ? {
|
|
@@ -3275,10 +3279,10 @@ const vi = {
|
|
|
3275
3279
|
key: "0"
|
|
3276
3280
|
} : void 0
|
|
3277
3281
|
]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
|
|
3278
|
-
|
|
3282
|
+
o(i).length > 0 ? (u(), g("div", yi, [
|
|
3279
3283
|
P(Ce, {
|
|
3280
3284
|
label: "Clear selected items",
|
|
3281
|
-
icon:
|
|
3285
|
+
icon: o(R).CLOSE_CIRCLE_OUTLINE,
|
|
3282
3286
|
"icon-only": "",
|
|
3283
3287
|
"icon-scale": 0.8,
|
|
3284
3288
|
size: "sm",
|
|
@@ -3289,10 +3293,10 @@ const vi = {
|
|
|
3289
3293
|
])) : O("", !0)
|
|
3290
3294
|
]));
|
|
3291
3295
|
}
|
|
3292
|
-
}),
|
|
3296
|
+
}), Mi = /* @__PURE__ */ V(Ei, [["__scopeId", "data-v-24fd377c"]]), pi = {
|
|
3293
3297
|
key: 0,
|
|
3294
3298
|
class: "av-autocomplete-selected-tags"
|
|
3295
|
-
},
|
|
3299
|
+
}, Ni = /* @__PURE__ */ S({
|
|
3296
3300
|
__name: "AvAutocompleteSelectedTags",
|
|
3297
3301
|
setup(e) {
|
|
3298
3302
|
const t = ie(), {
|
|
@@ -3300,26 +3304,26 @@ const vi = {
|
|
|
3300
3304
|
props: n,
|
|
3301
3305
|
getOptionId: r,
|
|
3302
3306
|
getDisplayLabel: i
|
|
3303
|
-
} =
|
|
3304
|
-
function A(
|
|
3305
|
-
const
|
|
3306
|
-
a.value =
|
|
3307
|
+
} = lt();
|
|
3308
|
+
function A(l) {
|
|
3309
|
+
const s = a.value, c = r(l);
|
|
3310
|
+
a.value = s.filter(
|
|
3307
3311
|
(d) => r(d) !== c
|
|
3308
3312
|
);
|
|
3309
3313
|
}
|
|
3310
|
-
return (
|
|
3311
|
-
(u(!0), g(_, null, ne(
|
|
3312
|
-
key:
|
|
3314
|
+
return (l, s) => o(n).multiSelect && o(a).length > 0 && o(n).showSelectedSection ? (u(), g("div", pi, [
|
|
3315
|
+
(u(!0), g(_, null, ne(o(a), (c) => (u(), g("div", {
|
|
3316
|
+
key: o(r)(c),
|
|
3313
3317
|
class: "av-autocomplete-selected-tags__item"
|
|
3314
3318
|
}, [
|
|
3315
|
-
t.selectedItem ? B(
|
|
3319
|
+
t.selectedItem ? B(l.$slots, "selectedItem", {
|
|
3316
3320
|
key: 0,
|
|
3317
3321
|
option: c,
|
|
3318
3322
|
remove: () => A(c)
|
|
3319
3323
|
}, void 0, !0) : (u(), x(Ce, {
|
|
3320
3324
|
key: 1,
|
|
3321
|
-
label:
|
|
3322
|
-
icon:
|
|
3325
|
+
label: o(i)(c),
|
|
3326
|
+
icon: o(R).CLOSE_CIRCLE_OUTLINE,
|
|
3323
3327
|
"icon-right": "",
|
|
3324
3328
|
size: "sm",
|
|
3325
3329
|
variant: "OUTLINED",
|
|
@@ -3329,7 +3333,7 @@ const vi = {
|
|
|
3329
3333
|
]))), 128))
|
|
3330
3334
|
])) : O("", !0);
|
|
3331
3335
|
}
|
|
3332
|
-
}),
|
|
3336
|
+
}), Ti = /* @__PURE__ */ V(Ni, [["__scopeId", "data-v-c00c128b"]]), Qi = { class: "av-autocomplete" }, Di = /* @__PURE__ */ S({
|
|
3333
3337
|
__name: "AvAutocomplete",
|
|
3334
3338
|
props: /* @__PURE__ */ ve({
|
|
3335
3339
|
id: {},
|
|
@@ -3361,9 +3365,9 @@ const vi = {
|
|
|
3361
3365
|
}),
|
|
3362
3366
|
emits: /* @__PURE__ */ ve(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
3363
3367
|
setup(e, { emit: t }) {
|
|
3364
|
-
const a = e, n = t, r = ie(), i = ke(e, "modelValue"), A = J(!1),
|
|
3368
|
+
const a = e, n = t, r = ie(), i = ke(e, "modelValue"), A = J(!1), l = J(""), s = J(), c = J(), d = J(), f = p(() => a.id || `av-autocomplete-${crypto.randomUUID()}`);
|
|
3365
3369
|
function b(Q) {
|
|
3366
|
-
|
|
3370
|
+
l.value = Q, n("search", Q);
|
|
3367
3371
|
}
|
|
3368
3372
|
function I(Q) {
|
|
3369
3373
|
var E, D;
|
|
@@ -3377,9 +3381,9 @@ const vi = {
|
|
|
3377
3381
|
function C(Q) {
|
|
3378
3382
|
return a.getOptionLabel ? a.getOptionLabel(Q) : Q.label;
|
|
3379
3383
|
}
|
|
3380
|
-
|
|
3384
|
+
St(Ht, {
|
|
3381
3385
|
selectedItems: i,
|
|
3382
|
-
searchQuery:
|
|
3386
|
+
searchQuery: l,
|
|
3383
3387
|
isOpen: A,
|
|
3384
3388
|
props: a,
|
|
3385
3389
|
inputId: f,
|
|
@@ -3390,19 +3394,19 @@ const vi = {
|
|
|
3390
3394
|
function T(Q) {
|
|
3391
3395
|
var j, W, z, Ae, w;
|
|
3392
3396
|
const E = Q.target, D = (j = c.value) == null ? void 0 : j.inputRef;
|
|
3393
|
-
!((W = D == null ? void 0 : D.contains) != null && W.call(D, E)) && !((z =
|
|
3397
|
+
!((W = D == null ? void 0 : D.contains) != null && W.call(D, E)) && !((z = s.value) != null && z.contains(E)) && !((w = (Ae = d.value) == null ? void 0 : Ae.dropdownRef) != null && w.contains(E)) && (A.value = !1);
|
|
3394
3398
|
}
|
|
3395
3399
|
return xe(() => {
|
|
3396
3400
|
document.addEventListener("click", T);
|
|
3397
3401
|
}), je(() => {
|
|
3398
3402
|
document.removeEventListener("click", T);
|
|
3399
|
-
}), (Q, E) => (u(), g("div",
|
|
3403
|
+
}), (Q, E) => (u(), g("div", Qi, [
|
|
3400
3404
|
y("div", {
|
|
3401
3405
|
ref_key: "wrapperRef",
|
|
3402
|
-
ref:
|
|
3406
|
+
ref: s,
|
|
3403
3407
|
class: "av-autocomplete__wrapper"
|
|
3404
3408
|
}, [
|
|
3405
|
-
P(
|
|
3409
|
+
P(Mi, {
|
|
3406
3410
|
ref_key: "inputRef",
|
|
3407
3411
|
ref: c,
|
|
3408
3412
|
onSearch: b,
|
|
@@ -3416,7 +3420,7 @@ const vi = {
|
|
|
3416
3420
|
key: "0"
|
|
3417
3421
|
} : void 0
|
|
3418
3422
|
]), 1536),
|
|
3419
|
-
P(
|
|
3423
|
+
P(bi, {
|
|
3420
3424
|
ref_key: "dropdownRef",
|
|
3421
3425
|
ref: d,
|
|
3422
3426
|
onLoadMore: E[1] || (E[1] = (D) => n("loadMore"))
|
|
@@ -3441,7 +3445,7 @@ const vi = {
|
|
|
3441
3445
|
} : void 0
|
|
3442
3446
|
]), 1536)
|
|
3443
3447
|
], 512),
|
|
3444
|
-
P(
|
|
3448
|
+
P(Ti, null, Le({ _: 2 }, [
|
|
3445
3449
|
r.selectedItem ? {
|
|
3446
3450
|
name: "selectedItem",
|
|
3447
3451
|
fn: Y(({ option: D, remove: j }) => [
|
|
@@ -3455,7 +3459,7 @@ const vi = {
|
|
|
3455
3459
|
]), 1024)
|
|
3456
3460
|
]));
|
|
3457
3461
|
}
|
|
3458
|
-
}),
|
|
3462
|
+
}), Pl = /* @__PURE__ */ V(Di, [["__scopeId", "data-v-fd810890"]]), Oi = { class: "item-container" }, wi = /* @__PURE__ */ S({
|
|
3459
3463
|
__name: "AvMultiselect",
|
|
3460
3464
|
props: {
|
|
3461
3465
|
disabled: { type: Boolean },
|
|
@@ -3491,10 +3495,10 @@ const vi = {
|
|
|
3491
3495
|
function A(f) {
|
|
3492
3496
|
return a.modelValue.some((b) => b.value === f.value);
|
|
3493
3497
|
}
|
|
3494
|
-
function
|
|
3498
|
+
function l(f) {
|
|
3495
3499
|
return A(f) ? R.CHECKBOX_MARKED : R.CHECKBOX_BLANK_OUTLINE;
|
|
3496
3500
|
}
|
|
3497
|
-
function
|
|
3501
|
+
function s(f) {
|
|
3498
3502
|
return A(f) ? "var(--dark-background-primary1)" : "var(--icon)";
|
|
3499
3503
|
}
|
|
3500
3504
|
function c(f) {
|
|
@@ -3512,27 +3516,27 @@ const vi = {
|
|
|
3512
3516
|
return u(), g("div", {
|
|
3513
3517
|
class: F({ "fr-multiselect--dense": a.dense })
|
|
3514
3518
|
}, [
|
|
3515
|
-
P(
|
|
3516
|
-
"model-value":
|
|
3517
|
-
title:
|
|
3518
|
-
"button-label":
|
|
3519
|
+
P(o(ma), ee(a, {
|
|
3520
|
+
"model-value": o(r),
|
|
3521
|
+
title: o(i),
|
|
3522
|
+
"button-label": o(i),
|
|
3519
3523
|
"id-key": "value",
|
|
3520
3524
|
"filtering-keys": ["label"],
|
|
3521
3525
|
"onUpdate:modelValue": b[0] || (b[0] = (m) => d(m))
|
|
3522
3526
|
}), {
|
|
3523
3527
|
"checkbox-label": Y(({ option: m }) => [
|
|
3524
|
-
y("div",
|
|
3528
|
+
y("div", Oi, [
|
|
3525
3529
|
P(I, {
|
|
3526
3530
|
class: "option-checkbox",
|
|
3527
|
-
name:
|
|
3528
|
-
color:
|
|
3531
|
+
name: l(m),
|
|
3532
|
+
color: s(m),
|
|
3529
3533
|
size: 1.5
|
|
3530
3534
|
}, null, 8, ["name", "color"]),
|
|
3531
3535
|
m.icon ? (u(), x(I, {
|
|
3532
3536
|
key: 0,
|
|
3533
3537
|
class: "option-icon",
|
|
3534
3538
|
name: m.icon,
|
|
3535
|
-
color:
|
|
3539
|
+
color: s(m),
|
|
3536
3540
|
size: 1.5
|
|
3537
3541
|
}, null, 8, ["name", "color"])) : O("", !0),
|
|
3538
3542
|
y("span", {
|
|
@@ -3545,7 +3549,7 @@ const vi = {
|
|
|
3545
3549
|
], 2);
|
|
3546
3550
|
};
|
|
3547
3551
|
}
|
|
3548
|
-
}),
|
|
3552
|
+
}), Wl = /* @__PURE__ */ V(wi, [["__scopeId", "data-v-55714083"]]), Vl = {
|
|
3549
3553
|
name: "AvSelect",
|
|
3550
3554
|
props: {
|
|
3551
3555
|
modelValue: [String, Number],
|
|
@@ -3569,7 +3573,7 @@ const vi = {
|
|
|
3569
3573
|
</option>
|
|
3570
3574
|
</select>
|
|
3571
3575
|
`
|
|
3572
|
-
},
|
|
3576
|
+
}, Li = /* @__PURE__ */ S({
|
|
3573
3577
|
__name: "AvSelect",
|
|
3574
3578
|
props: {
|
|
3575
3579
|
required: { type: Boolean },
|
|
@@ -3591,19 +3595,19 @@ const vi = {
|
|
|
3591
3595
|
var A;
|
|
3592
3596
|
if (!a.modelValue)
|
|
3593
3597
|
return a.defaultUnselectedText;
|
|
3594
|
-
const i = (A = a.options) == null ? void 0 : A.find((
|
|
3598
|
+
const i = (A = a.options) == null ? void 0 : A.find((l) => String(l.value) === String(a.modelValue));
|
|
3595
3599
|
return i ? i.text : a.defaultUnselectedText;
|
|
3596
3600
|
});
|
|
3597
3601
|
return (i, A) => (u(), g("div", {
|
|
3598
3602
|
class: F({ "fr-select--dense": a.dense })
|
|
3599
3603
|
}, [
|
|
3600
|
-
P(
|
|
3601
|
-
title:
|
|
3602
|
-
"onUpdate:modelValue": A[0] || (A[0] = (
|
|
3604
|
+
P(o(ga), ee(a, {
|
|
3605
|
+
title: o(r),
|
|
3606
|
+
"onUpdate:modelValue": A[0] || (A[0] = (l) => n("update:modelValue", l))
|
|
3603
3607
|
}), null, 16, ["title"])
|
|
3604
3608
|
], 2));
|
|
3605
3609
|
}
|
|
3606
|
-
}),
|
|
3610
|
+
}), Ul = /* @__PURE__ */ V(Li, [["__scopeId", "data-v-d230e734"]]), Xl = /* @__PURE__ */ S({
|
|
3607
3611
|
__name: "AvTab",
|
|
3608
3612
|
props: {
|
|
3609
3613
|
title: {},
|
|
@@ -3612,7 +3616,7 @@ const vi = {
|
|
|
3612
3616
|
setup(e) {
|
|
3613
3617
|
return (t, a) => B(t.$slots, "default");
|
|
3614
3618
|
}
|
|
3615
|
-
}),
|
|
3619
|
+
}), Si = /* @__PURE__ */ S({
|
|
3616
3620
|
__name: "AvTabs",
|
|
3617
3621
|
props: {
|
|
3618
3622
|
ariaLabel: {},
|
|
@@ -3625,15 +3629,15 @@ const vi = {
|
|
|
3625
3629
|
var b;
|
|
3626
3630
|
return ((b = r.default) == null ? void 0 : b.call(r)) || [];
|
|
3627
3631
|
});
|
|
3628
|
-
function
|
|
3632
|
+
function l(b) {
|
|
3629
3633
|
const I = A.value.length;
|
|
3630
3634
|
i.value = (i.value + b + I) % I;
|
|
3631
3635
|
}
|
|
3632
|
-
function
|
|
3633
|
-
|
|
3636
|
+
function s() {
|
|
3637
|
+
l(-1);
|
|
3634
3638
|
}
|
|
3635
3639
|
function c() {
|
|
3636
|
-
|
|
3640
|
+
l(1);
|
|
3637
3641
|
}
|
|
3638
3642
|
function d() {
|
|
3639
3643
|
i.value = 0;
|
|
@@ -3646,16 +3650,16 @@ const vi = {
|
|
|
3646
3650
|
}), ce(i, (b) => {
|
|
3647
3651
|
n("update:modelValue", b);
|
|
3648
3652
|
}), t({ activeTab: i }), (b, I) => {
|
|
3649
|
-
const m =
|
|
3653
|
+
const m = ba, C = ha, M = Ia;
|
|
3650
3654
|
return u(), x(M, {
|
|
3651
|
-
modelValue:
|
|
3652
|
-
"onUpdate:modelValue": I[0] || (I[0] = (T) =>
|
|
3655
|
+
modelValue: o(i),
|
|
3656
|
+
"onUpdate:modelValue": I[0] || (I[0] = (T) => At(i) ? i.value = T : null),
|
|
3653
3657
|
class: F({ compact: e.compact }),
|
|
3654
3658
|
"tab-list-name": e.ariaLabel ?? "Liste d’onglets",
|
|
3655
3659
|
"tab-titles": []
|
|
3656
3660
|
}, {
|
|
3657
3661
|
"tab-items": Y(() => [
|
|
3658
|
-
(u(!0), g(_, null, ne(
|
|
3662
|
+
(u(!0), g(_, null, ne(o(A), (T, Q) => {
|
|
3659
3663
|
var E;
|
|
3660
3664
|
return u(), x(m, {
|
|
3661
3665
|
key: Q,
|
|
@@ -3665,14 +3669,14 @@ const vi = {
|
|
|
3665
3669
|
icon: (E = T.props) == null ? void 0 : E.icon,
|
|
3666
3670
|
onClick: (D) => i.value = Q,
|
|
3667
3671
|
onNext: c,
|
|
3668
|
-
onPrevious:
|
|
3672
|
+
onPrevious: s,
|
|
3669
3673
|
onFirst: d,
|
|
3670
3674
|
onLast: f
|
|
3671
3675
|
}, {
|
|
3672
3676
|
default: Y(() => {
|
|
3673
3677
|
var D;
|
|
3674
3678
|
return [
|
|
3675
|
-
|
|
3679
|
+
rt(Z((D = T.props) == null ? void 0 : D.title), 1)
|
|
3676
3680
|
];
|
|
3677
3681
|
}),
|
|
3678
3682
|
_: 2
|
|
@@ -3680,7 +3684,7 @@ const vi = {
|
|
|
3680
3684
|
}), 128))
|
|
3681
3685
|
]),
|
|
3682
3686
|
default: Y(() => [
|
|
3683
|
-
(u(!0), g(_, null, ne(
|
|
3687
|
+
(u(!0), g(_, null, ne(o(A), (T, Q) => (u(), x(C, {
|
|
3684
3688
|
key: Q,
|
|
3685
3689
|
"panel-id": `panel-${Q}`,
|
|
3686
3690
|
"tab-id": `tab-${Q}`
|
|
@@ -3695,16 +3699,16 @@ const vi = {
|
|
|
3695
3699
|
}, 8, ["modelValue", "class", "tab-list-name"]);
|
|
3696
3700
|
};
|
|
3697
3701
|
}
|
|
3698
|
-
}),
|
|
3702
|
+
}), Hl = /* @__PURE__ */ V(Si, [["__scopeId", "data-v-dbd71c5f"]]), ki = "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", zi = "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", xi = ["id", "for"], ji = {
|
|
3699
3703
|
width: "34",
|
|
3700
3704
|
height: "14"
|
|
3701
|
-
},
|
|
3705
|
+
}, Bi = ["href"], Pi = {
|
|
3702
3706
|
key: 0,
|
|
3703
3707
|
class: "caption-bold no-select"
|
|
3704
|
-
},
|
|
3708
|
+
}, Wi = {
|
|
3705
3709
|
key: 1,
|
|
3706
3710
|
class: "caption-regular no-select"
|
|
3707
|
-
},
|
|
3711
|
+
}, Vi = { class: "caption-regular" }, Ui = ["id", "disabled", "aria-disabled", "checked", "data-testid", "aria-describedby", "name"], Xi = /* @__PURE__ */ S({
|
|
3708
3712
|
__name: "AvToggle",
|
|
3709
3713
|
props: {
|
|
3710
3714
|
modelValue: { type: Boolean },
|
|
@@ -3720,8 +3724,8 @@ const vi = {
|
|
|
3720
3724
|
const t = e, a = p(() => t.id ?? crypto.randomUUID()), n = p(() => `${a.value}-label`);
|
|
3721
3725
|
return (r, i) => (u(), g(_, null, [
|
|
3722
3726
|
y("label", {
|
|
3723
|
-
id:
|
|
3724
|
-
for:
|
|
3727
|
+
id: o(n),
|
|
3728
|
+
for: o(a),
|
|
3725
3729
|
class: F(["av-toggle", {
|
|
3726
3730
|
"av-toggle--disabled": e.disabled
|
|
3727
3731
|
}])
|
|
@@ -3731,35 +3735,35 @@ const vi = {
|
|
|
3731
3735
|
"toggle--disabled": e.disabled
|
|
3732
3736
|
}])
|
|
3733
3737
|
}, [
|
|
3734
|
-
(u(), g("svg",
|
|
3738
|
+
(u(), g("svg", ji, [
|
|
3735
3739
|
y("image", {
|
|
3736
|
-
href: e.modelValue ?
|
|
3740
|
+
href: e.modelValue ? o(ki) : o(zi),
|
|
3737
3741
|
width: "34",
|
|
3738
3742
|
height: "14"
|
|
3739
|
-
}, null, 8,
|
|
3743
|
+
}, null, 8, Bi)
|
|
3740
3744
|
])),
|
|
3741
|
-
e.modelValue ? (u(), g("span",
|
|
3745
|
+
e.modelValue ? (u(), g("span", Pi, Z(e.activeText), 1)) : (u(), g("span", Wi, Z(e.inactiveText), 1))
|
|
3742
3746
|
], 2),
|
|
3743
|
-
y("span",
|
|
3744
|
-
], 10,
|
|
3747
|
+
y("span", Vi, Z(e.description), 1)
|
|
3748
|
+
], 10, xi),
|
|
3745
3749
|
y("input", {
|
|
3746
|
-
id:
|
|
3750
|
+
id: o(a),
|
|
3747
3751
|
style: { visibility: "hidden" },
|
|
3748
3752
|
disabled: e.disabled,
|
|
3749
3753
|
"aria-disabled": e.disabled,
|
|
3750
3754
|
type: "checkbox",
|
|
3751
3755
|
checked: e.modelValue,
|
|
3752
|
-
"data-testid":
|
|
3753
|
-
"aria-describedby":
|
|
3756
|
+
"data-testid": o(a),
|
|
3757
|
+
"aria-describedby": o(n),
|
|
3754
3758
|
name: e.name,
|
|
3755
3759
|
onInput: i[0] || (i[0] = (A) => r.$emit("update:modelValue", A.target.checked))
|
|
3756
|
-
}, null, 40,
|
|
3760
|
+
}, null, 40, Ui)
|
|
3757
3761
|
], 64));
|
|
3758
3762
|
}
|
|
3759
|
-
}),
|
|
3763
|
+
}), Zl = /* @__PURE__ */ V(Xi, [["__scopeId", "data-v-0aabed11"]]), Hi = {
|
|
3760
3764
|
style: { position: "relative" },
|
|
3761
3765
|
class: "my-nav-wrapper"
|
|
3762
|
-
},
|
|
3766
|
+
}, Zi = /* @__PURE__ */ S({
|
|
3763
3767
|
__name: "AvNavigation",
|
|
3764
3768
|
props: {
|
|
3765
3769
|
navItems: {}
|
|
@@ -3767,19 +3771,19 @@ const vi = {
|
|
|
3767
3771
|
setup(e) {
|
|
3768
3772
|
const t = e;
|
|
3769
3773
|
return (a, n) => {
|
|
3770
|
-
const r =
|
|
3771
|
-
return u(), g("div",
|
|
3772
|
-
P(r,
|
|
3774
|
+
const r = Ca;
|
|
3775
|
+
return u(), g("div", Hi, [
|
|
3776
|
+
P(r, Da(Oa(t)), null, 16)
|
|
3773
3777
|
]);
|
|
3774
3778
|
};
|
|
3775
3779
|
}
|
|
3776
|
-
}),
|
|
3780
|
+
}), ql = /* @__PURE__ */ V(Zi, [["__scopeId", "data-v-433349ab"]]), qi = ["aria-label"], Yi = { class: "fr-pagination__list" }, Ri = { key: 0 }, Fi = { class: "b2-regular" }, Ki = ["href", "title", "aria-disabled"], Gi = { class: "fr-sr-only" }, Ji = ["href", "title", "aria-disabled"], _i = {
|
|
3777
3781
|
key: 0,
|
|
3778
3782
|
class: "caption-regular fr-hidden fr-unhidden-md"
|
|
3779
|
-
},
|
|
3783
|
+
}, $i = ["href", "title", "aria-current", "onClick"], eo = { key: 0 }, to = { key: 1 }, ao = ["href", "title", "disabled", "aria-disabled"], no = {
|
|
3780
3784
|
key: 0,
|
|
3781
3785
|
class: "caption-regular fr-hidden fr-unhidden-md"
|
|
3782
|
-
},
|
|
3786
|
+
}, ro = ["href", "title", "disabled", "aria-disabled"], Ao = { class: "fr-sr-only" }, io = /* @__PURE__ */ S({
|
|
3783
3787
|
__name: "AvPagination",
|
|
3784
3788
|
props: {
|
|
3785
3789
|
compact: { type: Boolean, default: !1 },
|
|
@@ -3795,7 +3799,7 @@ const vi = {
|
|
|
3795
3799
|
},
|
|
3796
3800
|
emits: ["update:current-page"],
|
|
3797
3801
|
setup(e, { emit: t }) {
|
|
3798
|
-
const a = t, n = p(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), r = p(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), i = p(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, r.value + 1) : e.pages), A = (I) => a("update:current-page", I),
|
|
3802
|
+
const a = t, n = p(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), r = p(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), i = p(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, r.value + 1) : e.pages), A = (I) => a("update:current-page", I), l = (I) => A(I), s = () => l(0), c = () => l(Math.max(0, e.currentPage - 1)), d = () => l(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => l(e.pages.length - 1), b = (I) => e.pages.indexOf(I) === e.currentPage;
|
|
3799
3803
|
return (I, m) => {
|
|
3800
3804
|
var C, M, T, Q;
|
|
3801
3805
|
return u(), g("nav", {
|
|
@@ -3803,9 +3807,9 @@ const vi = {
|
|
|
3803
3807
|
class: "fr-pagination",
|
|
3804
3808
|
"aria-label": e.ariaLabel
|
|
3805
3809
|
}, [
|
|
3806
|
-
y("ul",
|
|
3807
|
-
e.compact && e.compactCurrentPageLabel ? (u(), g("li",
|
|
3808
|
-
y("span",
|
|
3810
|
+
y("ul", Yi, [
|
|
3811
|
+
e.compact && e.compactCurrentPageLabel ? (u(), g("li", Ri, [
|
|
3812
|
+
y("span", Fi, Z(e.compactCurrentPageLabel), 1)
|
|
3809
3813
|
])) : O("", !0),
|
|
3810
3814
|
y("li", null, [
|
|
3811
3815
|
e.compact ? O("", !0) : (u(), g("a", {
|
|
@@ -3814,15 +3818,15 @@ const vi = {
|
|
|
3814
3818
|
class: "fr-pagination__link",
|
|
3815
3819
|
title: e.firstPageLabel,
|
|
3816
3820
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
3817
|
-
onClick: m[0] || (m[0] = se((E) =>
|
|
3821
|
+
onClick: m[0] || (m[0] = se((E) => s(), ["prevent"]))
|
|
3818
3822
|
}, [
|
|
3819
3823
|
P(ae, {
|
|
3820
|
-
name:
|
|
3824
|
+
name: o(R).PAGE_FIRST,
|
|
3821
3825
|
size: 1.5,
|
|
3822
3826
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3823
3827
|
}, null, 8, ["name", "color"]),
|
|
3824
|
-
y("span",
|
|
3825
|
-
], 8,
|
|
3828
|
+
y("span", Gi, Z(e.firstPageLabel), 1)
|
|
3829
|
+
], 8, Ki))
|
|
3826
3830
|
]),
|
|
3827
3831
|
y("li", null, [
|
|
3828
3832
|
y("a", {
|
|
@@ -3833,25 +3837,25 @@ const vi = {
|
|
|
3833
3837
|
onClick: m[1] || (m[1] = se((E) => c(), ["prevent"]))
|
|
3834
3838
|
}, [
|
|
3835
3839
|
P(ae, {
|
|
3836
|
-
name:
|
|
3840
|
+
name: o(R).NAVIGATE_BEFORE,
|
|
3837
3841
|
size: 1.5,
|
|
3838
3842
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3839
3843
|
}, null, 8, ["name", "color"]),
|
|
3840
|
-
e.compact ? O("", !0) : (u(), g("span",
|
|
3841
|
-
], 8,
|
|
3844
|
+
e.compact ? O("", !0) : (u(), g("span", _i, Z(e.prevPageLabel), 1))
|
|
3845
|
+
], 8, Ji)
|
|
3842
3846
|
]),
|
|
3843
|
-
e.compact ? O("", !0) : (u(!0), g(_, { key: 1 }, ne(
|
|
3847
|
+
e.compact ? O("", !0) : (u(!0), g(_, { key: 1 }, ne(o(i), (E, D) => (u(), g("li", { key: D }, [
|
|
3844
3848
|
y("a", {
|
|
3845
3849
|
href: E == null ? void 0 : E.href,
|
|
3846
3850
|
class: "fr-pagination__link fr-unhidden-lg",
|
|
3847
3851
|
title: E.title,
|
|
3848
3852
|
"aria-current": b(E) ? "page" : void 0,
|
|
3849
|
-
onClick: se((j) =>
|
|
3853
|
+
onClick: se((j) => l(e.pages.indexOf(E)), ["prevent"])
|
|
3850
3854
|
}, [
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
], 8,
|
|
3855
|
+
o(i).indexOf(E) === 0 && o(n) > 0 ? (u(), g("span", eo, "...")) : O("", !0),
|
|
3856
|
+
rt(" " + Z(E.label) + " ", 1),
|
|
3857
|
+
o(i).indexOf(E) === o(i).length - 1 && o(r) < e.pages.length - 1 ? (u(), g("span", to, "...")) : O("", !0)
|
|
3858
|
+
], 8, $i)
|
|
3855
3859
|
]))), 128)),
|
|
3856
3860
|
y("li", null, [
|
|
3857
3861
|
y("a", {
|
|
@@ -3862,13 +3866,13 @@ const vi = {
|
|
|
3862
3866
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
3863
3867
|
onClick: m[2] || (m[2] = se((E) => d(), ["prevent"]))
|
|
3864
3868
|
}, [
|
|
3865
|
-
e.compact ? O("", !0) : (u(), g("span",
|
|
3869
|
+
e.compact ? O("", !0) : (u(), g("span", no, Z(e.nextPageLabel), 1)),
|
|
3866
3870
|
P(ae, {
|
|
3867
|
-
name:
|
|
3871
|
+
name: o(R).NAVIGATE_NEXT,
|
|
3868
3872
|
size: 1.5,
|
|
3869
3873
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3870
3874
|
}, null, 8, ["name", "color"])
|
|
3871
|
-
], 8,
|
|
3875
|
+
], 8, ao)
|
|
3872
3876
|
]),
|
|
3873
3877
|
y("li", null, [
|
|
3874
3878
|
e.compact ? O("", !0) : (u(), g("a", {
|
|
@@ -3880,20 +3884,20 @@ const vi = {
|
|
|
3880
3884
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
3881
3885
|
onClick: m[3] || (m[3] = se((E) => f(), ["prevent"]))
|
|
3882
3886
|
}, [
|
|
3883
|
-
y("span",
|
|
3887
|
+
y("span", Ao, Z(e.lastPageLabel), 1),
|
|
3884
3888
|
P(ae, {
|
|
3885
|
-
name:
|
|
3889
|
+
name: o(R).PAGE_LAST,
|
|
3886
3890
|
size: 1.5,
|
|
3887
3891
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3888
3892
|
}, null, 8, ["name", "color"])
|
|
3889
|
-
], 8,
|
|
3893
|
+
], 8, ro))
|
|
3890
3894
|
])
|
|
3891
3895
|
])
|
|
3892
|
-
], 8,
|
|
3896
|
+
], 8, qi);
|
|
3893
3897
|
};
|
|
3894
3898
|
}
|
|
3895
|
-
}),
|
|
3896
|
-
function
|
|
3899
|
+
}), Yl = /* @__PURE__ */ V(io, [["__scopeId", "data-v-ccfe7c3a"]]);
|
|
3900
|
+
function Rl(e) {
|
|
3897
3901
|
return Array.from({ length: e.value }, (t, a) => {
|
|
3898
3902
|
const n = a + 1;
|
|
3899
3903
|
return {
|
|
@@ -3903,10 +3907,10 @@ function Yl(e) {
|
|
|
3903
3907
|
};
|
|
3904
3908
|
});
|
|
3905
3909
|
}
|
|
3906
|
-
const
|
|
3910
|
+
const oo = ["id", "aria-label"], lo = {
|
|
3907
3911
|
key: 0,
|
|
3908
3912
|
class: "av-side-menu__header"
|
|
3909
|
-
},
|
|
3913
|
+
}, so = { class: "av-side-menu__content" }, co = /* @__PURE__ */ S({
|
|
3910
3914
|
__name: "AvSideMenu",
|
|
3911
3915
|
props: /* @__PURE__ */ ve({
|
|
3912
3916
|
id: {},
|
|
@@ -3922,40 +3926,40 @@ const io = ["id", "aria-label"], oo = {
|
|
|
3922
3926
|
emits: /* @__PURE__ */ ve(["update:collapsed"], ["update:collapsed"]),
|
|
3923
3927
|
setup(e) {
|
|
3924
3928
|
re((d) => ({
|
|
3925
|
-
v4d5b7c17: s
|
|
3929
|
+
v4d5b7c17: o(s),
|
|
3926
3930
|
v4a813d87: d.padding
|
|
3927
3931
|
}));
|
|
3928
|
-
const t = e, a = ke(e, "collapsed"), { width: n, collapsedWidth: r } =
|
|
3932
|
+
const t = e, a = ke(e, "collapsed"), { width: n, collapsedWidth: r } = it(t), i = p(() => t.id ?? crypto.randomUUID()), A = p(() => `${i.value} navigation`), l = p({
|
|
3929
3933
|
get: () => t.collapsible ? a.value : !1,
|
|
3930
3934
|
set: (d) => {
|
|
3931
3935
|
t.collapsible && (a.value = d);
|
|
3932
3936
|
}
|
|
3933
|
-
}),
|
|
3937
|
+
}), s = p(() => t.collapsible && l.value ? r.value : n.value);
|
|
3934
3938
|
function c() {
|
|
3935
|
-
t.collapsible && (
|
|
3939
|
+
t.collapsible && (l.value = !l.value);
|
|
3936
3940
|
}
|
|
3937
3941
|
return (d, f) => (u(), g("nav", {
|
|
3938
|
-
id:
|
|
3939
|
-
class: F(["av-side-menu", { "av-side-menu--collapsed":
|
|
3940
|
-
"aria-label":
|
|
3942
|
+
id: o(i),
|
|
3943
|
+
class: F(["av-side-menu", { "av-side-menu--collapsed": o(l) }]),
|
|
3944
|
+
"aria-label": o(A)
|
|
3941
3945
|
}, [
|
|
3942
|
-
t.collapsible ? (u(), g("div",
|
|
3946
|
+
t.collapsible ? (u(), g("div", lo, [
|
|
3943
3947
|
P(Ce, {
|
|
3944
|
-
"aria-expanded": !
|
|
3945
|
-
"aria-controls":
|
|
3946
|
-
icon:
|
|
3948
|
+
"aria-expanded": !o(l),
|
|
3949
|
+
"aria-controls": o(i),
|
|
3950
|
+
icon: o(l) ? o(R).CHEVRON_DOUBLE_RIGHT : o(R).CHEVRON_DOUBLE_LEFT,
|
|
3947
3951
|
class: "av-side-menu__collapse-button",
|
|
3948
|
-
label:
|
|
3952
|
+
label: o(l) ? `${o(i)}-expand-button` : `${o(i)}-collapse-button`,
|
|
3949
3953
|
"icon-only": "",
|
|
3950
3954
|
onClick: c
|
|
3951
3955
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
3952
3956
|
])) : O("", !0),
|
|
3953
|
-
y("div",
|
|
3957
|
+
y("div", so, [
|
|
3954
3958
|
B(d.$slots, "default", {}, void 0, !0)
|
|
3955
3959
|
])
|
|
3956
|
-
], 10,
|
|
3960
|
+
], 10, oo));
|
|
3957
3961
|
}
|
|
3958
|
-
}),
|
|
3962
|
+
}), uo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-23242ccc"]]), Fl = {
|
|
3959
3963
|
name: "AvSideNavigation",
|
|
3960
3964
|
props: {
|
|
3961
3965
|
items: Array,
|
|
@@ -3965,7 +3969,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
3965
3969
|
},
|
|
3966
3970
|
emits: ["update:selectedItem", "update:isSideMenuCollapsed"],
|
|
3967
3971
|
template: `<div class="av-side-navigation-stub" @click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)" />`
|
|
3968
|
-
},
|
|
3972
|
+
}, fo = /* @__PURE__ */ S({
|
|
3969
3973
|
__name: "AvSideNavigation",
|
|
3970
3974
|
props: /* @__PURE__ */ ve({
|
|
3971
3975
|
items: {},
|
|
@@ -3987,19 +3991,19 @@ const io = ["id", "aria-label"], oo = {
|
|
|
3987
3991
|
function n(r) {
|
|
3988
3992
|
t.value = r;
|
|
3989
3993
|
}
|
|
3990
|
-
return (r, i) => (u(), x(
|
|
3994
|
+
return (r, i) => (u(), x(uo, {
|
|
3991
3995
|
collapsed: a.value,
|
|
3992
3996
|
"onUpdate:collapsed": i[0] || (i[0] = (A) => a.value = A),
|
|
3993
3997
|
"collapsed-width": e.collapsedWidth,
|
|
3994
3998
|
color: e.selectedItemColor
|
|
3995
3999
|
}, {
|
|
3996
4000
|
default: Y(() => [
|
|
3997
|
-
P(
|
|
4001
|
+
P(o(Vt), {
|
|
3998
4002
|
size: "small",
|
|
3999
4003
|
role: "menu"
|
|
4000
4004
|
}, {
|
|
4001
4005
|
default: Y(() => [
|
|
4002
|
-
(u(!0), g(_, null, ne(e.items, (A) => (u(), x(
|
|
4006
|
+
(u(!0), g(_, null, ne(e.items, (A) => (u(), x(o(Ut), {
|
|
4003
4007
|
key: A.id,
|
|
4004
4008
|
title: a.value ? void 0 : A.label,
|
|
4005
4009
|
icon: A.icon,
|
|
@@ -4012,7 +4016,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4012
4016
|
"av-side-navigation__menu-item--collapsed": a.value
|
|
4013
4017
|
}]),
|
|
4014
4018
|
clickable: "",
|
|
4015
|
-
onClick: (
|
|
4019
|
+
onClick: (l) => n(A.id)
|
|
4016
4020
|
}, null, 8, ["title", "icon", "selected", "hover-background-color", "class", "onClick"]))), 128))
|
|
4017
4021
|
]),
|
|
4018
4022
|
_: 1
|
|
@@ -4021,7 +4025,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4021
4025
|
_: 1
|
|
4022
4026
|
}, 8, ["collapsed", "collapsed-width", "color"]));
|
|
4023
4027
|
}
|
|
4024
|
-
}),
|
|
4028
|
+
}), Kl = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-3c5a1abd"]]), Gl = {
|
|
4025
4029
|
name: "AvStepper",
|
|
4026
4030
|
props: {
|
|
4027
4031
|
steps: {
|
|
@@ -4045,7 +4049,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4045
4049
|
</div>
|
|
4046
4050
|
</div>
|
|
4047
4051
|
`
|
|
4048
|
-
},
|
|
4052
|
+
}, vo = { class: "custom-width-container" }, mo = { class: "block-container" }, go = { class: "main-container" }, Io = ["aria-current"], ho = ["aria-current"], bo = { class: "b1-regular" }, Co = { class: "main-labels-container" }, yo = /* @__PURE__ */ S({
|
|
4049
4053
|
__name: "AvStepper",
|
|
4050
4054
|
props: {
|
|
4051
4055
|
steps: {},
|
|
@@ -4054,61 +4058,61 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4054
4058
|
},
|
|
4055
4059
|
setup(e) {
|
|
4056
4060
|
re((i) => ({
|
|
4057
|
-
v06d1bdf1:
|
|
4061
|
+
v06d1bdf1: o(r)
|
|
4058
4062
|
}));
|
|
4059
|
-
const t = e, { steps: a, currentStep: n, width: r } =
|
|
4060
|
-
return (i, A) => (u(), g("div",
|
|
4061
|
-
y("div",
|
|
4062
|
-
y("div",
|
|
4063
|
+
const t = e, { steps: a, currentStep: n, width: r } = it(t);
|
|
4064
|
+
return (i, A) => (u(), g("div", vo, [
|
|
4065
|
+
y("div", mo, [
|
|
4066
|
+
y("div", go, [
|
|
4063
4067
|
y("div", {
|
|
4064
4068
|
class: "step step--active",
|
|
4065
|
-
"aria-current":
|
|
4069
|
+
"aria-current": o(n) === 0 ? "step" : void 0
|
|
4066
4070
|
}, [...A[0] || (A[0] = [
|
|
4067
4071
|
y("span", { class: "b1-regular" }, "1", -1)
|
|
4068
|
-
])], 8,
|
|
4069
|
-
(u(!0), g(_, null, ne(
|
|
4070
|
-
key:
|
|
4072
|
+
])], 8, Io),
|
|
4073
|
+
(u(!0), g(_, null, ne(o(a).slice(1, o(a).length), (l, s) => (u(), g("div", {
|
|
4074
|
+
key: s,
|
|
4071
4075
|
class: "steps-container"
|
|
4072
4076
|
}, [
|
|
4073
4077
|
y("div", {
|
|
4074
|
-
class: F(["separator", { "separator--active":
|
|
4078
|
+
class: F(["separator", { "separator--active": s + 1 <= o(n) }])
|
|
4075
4079
|
}, null, 2),
|
|
4076
4080
|
y("div", {
|
|
4077
|
-
class: F(["step", { "step--active":
|
|
4078
|
-
"aria-current":
|
|
4081
|
+
class: F(["step", { "step--active": s + 1 <= o(n) }]),
|
|
4082
|
+
"aria-current": s + 1 === o(n) ? "step" : void 0
|
|
4079
4083
|
}, [
|
|
4080
|
-
y("span",
|
|
4081
|
-
], 10,
|
|
4084
|
+
y("span", bo, Z(s + 2), 1)
|
|
4085
|
+
], 10, ho)
|
|
4082
4086
|
]))), 128))
|
|
4083
4087
|
]),
|
|
4084
|
-
y("div",
|
|
4085
|
-
(u(!0), g(_, null, ne(
|
|
4086
|
-
key:
|
|
4088
|
+
y("div", Co, [
|
|
4089
|
+
(u(!0), g(_, null, ne(o(a), (l, s) => (u(), g("div", {
|
|
4090
|
+
key: s,
|
|
4087
4091
|
class: "label-container"
|
|
4088
4092
|
}, [
|
|
4089
4093
|
y("span", {
|
|
4090
4094
|
class: F(["label", {
|
|
4091
|
-
"b1-bold":
|
|
4092
|
-
"b1-light":
|
|
4095
|
+
"b1-bold": s <= o(n),
|
|
4096
|
+
"b1-light": s > o(n)
|
|
4093
4097
|
}])
|
|
4094
|
-
}, Z(
|
|
4098
|
+
}, Z(l), 3)
|
|
4095
4099
|
]))), 128))
|
|
4096
4100
|
])
|
|
4097
4101
|
])
|
|
4098
4102
|
]));
|
|
4099
4103
|
}
|
|
4100
|
-
}),
|
|
4104
|
+
}), Jl = /* @__PURE__ */ V(yo, [["__scopeId", "data-v-26a5b40e"]]), _l = {
|
|
4101
4105
|
name: "AvDrawer",
|
|
4102
4106
|
props: ["show", "position", "width"],
|
|
4103
4107
|
emits: ["escape-pressed"],
|
|
4104
4108
|
template: '<div class="av-drawer-stub"><slot /><slot name="footer" /></div>'
|
|
4105
|
-
},
|
|
4109
|
+
}, Eo = { key: 0 }, Mo = {
|
|
4106
4110
|
key: 0,
|
|
4107
4111
|
class: "av-drawer-backdrop"
|
|
4108
|
-
},
|
|
4112
|
+
}, po = ["aria-label"], No = { class: "av-drawer__content-wrapper" }, To = { class: "av-drawer__content" }, Qo = {
|
|
4109
4113
|
key: 0,
|
|
4110
4114
|
class: "footer-container"
|
|
4111
|
-
},
|
|
4115
|
+
}, Do = /* @__PURE__ */ S({
|
|
4112
4116
|
__name: "AvDrawer",
|
|
4113
4117
|
props: {
|
|
4114
4118
|
show: { type: Boolean },
|
|
@@ -4120,35 +4124,35 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4120
4124
|
},
|
|
4121
4125
|
emits: ["escapePressed"],
|
|
4122
4126
|
setup(e, { emit: t }) {
|
|
4123
|
-
re((
|
|
4124
|
-
b9426bca:
|
|
4125
|
-
v7249d1b4:
|
|
4127
|
+
re((s) => ({
|
|
4128
|
+
b9426bca: o(A),
|
|
4129
|
+
v7249d1b4: o(l)
|
|
4126
4130
|
}));
|
|
4127
|
-
const a = e, n = t, r = ie(), { position: i, width: A, padding:
|
|
4128
|
-
return (
|
|
4129
|
-
e.backdrop ? (u(), g("div",
|
|
4131
|
+
const a = e, n = t, r = ie(), { position: i, width: A, padding: l } = it(a);
|
|
4132
|
+
return (s, c) => e.show ? (u(), g("div", Eo, [
|
|
4133
|
+
e.backdrop ? (u(), g("div", Mo)) : O("", !0),
|
|
4130
4134
|
y("div", {
|
|
4131
|
-
class: F(["av-drawer", `av-drawer--${
|
|
4135
|
+
class: F(["av-drawer", `av-drawer--${o(i)}`]),
|
|
4132
4136
|
role: "dialog",
|
|
4133
4137
|
"aria-modal": "true",
|
|
4134
4138
|
"aria-label": e.ariaLabel,
|
|
4135
|
-
onKeydown: c[0] || (c[0] =
|
|
4139
|
+
onKeydown: c[0] || (c[0] = ot((d) => n("escapePressed"), ["esc"]))
|
|
4136
4140
|
}, [
|
|
4137
|
-
y("div",
|
|
4138
|
-
y("div",
|
|
4139
|
-
B(
|
|
4141
|
+
y("div", No, [
|
|
4142
|
+
y("div", To, [
|
|
4143
|
+
B(s.$slots, "default", {}, void 0, !0)
|
|
4140
4144
|
]),
|
|
4141
|
-
r.footer ? (u(), g("div",
|
|
4142
|
-
B(
|
|
4145
|
+
r.footer ? (u(), g("div", Qo, [
|
|
4146
|
+
B(s.$slots, "footer", {}, void 0, !0)
|
|
4143
4147
|
])) : O("", !0)
|
|
4144
4148
|
])
|
|
4145
|
-
], 42,
|
|
4149
|
+
], 42, po)
|
|
4146
4150
|
])) : O("", !0);
|
|
4147
4151
|
}
|
|
4148
|
-
}),
|
|
4152
|
+
}), $l = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-4b1b7481"]]), Oo = {
|
|
4149
4153
|
key: 0,
|
|
4150
4154
|
class: "header"
|
|
4151
|
-
},
|
|
4155
|
+
}, wo = { class: "footer" }, Lo = /* @__PURE__ */ S({
|
|
4152
4156
|
__name: "AvModal",
|
|
4153
4157
|
props: {
|
|
4154
4158
|
closeButtonVariant: {},
|
|
@@ -4163,30 +4167,30 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4163
4167
|
},
|
|
4164
4168
|
emits: ["close"],
|
|
4165
4169
|
setup(e, { emit: t }) {
|
|
4166
|
-
const a =
|
|
4167
|
-
return (A,
|
|
4168
|
-
const
|
|
4169
|
-
return u(), x(
|
|
4170
|
-
P(
|
|
4170
|
+
const a = Lt(e, ["isLoading"]), n = t, r = ie(), i = p(() => a.closeButtonVariant ?? "DEFAULT");
|
|
4171
|
+
return (A, l) => {
|
|
4172
|
+
const s = ya;
|
|
4173
|
+
return u(), x(zt, { to: "body" }, [
|
|
4174
|
+
P(s, ee(a, {
|
|
4171
4175
|
title: "",
|
|
4172
|
-
onKeydown:
|
|
4176
|
+
onKeydown: l[1] || (l[1] = ot((c) => n("close"), ["esc"]))
|
|
4173
4177
|
}), {
|
|
4174
4178
|
default: Y(() => [
|
|
4175
|
-
r.header ? (u(), g("div",
|
|
4179
|
+
r.header ? (u(), g("div", Oo, [
|
|
4176
4180
|
B(A.$slots, "header", {}, void 0, !0)
|
|
4177
4181
|
])) : O("", !0),
|
|
4178
4182
|
B(A.$slots, "default", {}, void 0, !0)
|
|
4179
4183
|
]),
|
|
4180
4184
|
footer: Y(() => [
|
|
4181
|
-
y("div",
|
|
4182
|
-
P(
|
|
4183
|
-
icon:
|
|
4185
|
+
y("div", wo, [
|
|
4186
|
+
P(o(Ce), {
|
|
4187
|
+
icon: o(R).CLOSE_CIRCLE_OUTLINE,
|
|
4184
4188
|
label: a.closeButtonLabel,
|
|
4185
4189
|
title: a.closeButtonLabel,
|
|
4186
|
-
variant:
|
|
4190
|
+
variant: o(i),
|
|
4187
4191
|
"is-loading": e.isLoading,
|
|
4188
4192
|
size: "sm",
|
|
4189
|
-
onClick:
|
|
4193
|
+
onClick: l[0] || (l[0] = () => n("close"))
|
|
4190
4194
|
}, null, 8, ["icon", "label", "title", "variant", "is-loading"]),
|
|
4191
4195
|
B(A.$slots, "footer", {}, void 0, !0)
|
|
4192
4196
|
])
|
|
@@ -4196,23 +4200,23 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4196
4200
|
]);
|
|
4197
4201
|
};
|
|
4198
4202
|
}
|
|
4199
|
-
}),
|
|
4200
|
-
function
|
|
4203
|
+
}), es = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-3153ca6f"]]);
|
|
4204
|
+
function So(e, t) {
|
|
4201
4205
|
const a = J(!1), n = J({ top: 0, left: 0 }), r = async () => {
|
|
4202
4206
|
if (a.value = !a.value, a.value && e.value) {
|
|
4203
4207
|
await Re();
|
|
4204
|
-
const
|
|
4205
|
-
let c =
|
|
4208
|
+
const l = e.value.getBoundingClientRect(), s = l.bottom + window.scrollY + 4;
|
|
4209
|
+
let c = l.left + window.scrollX;
|
|
4206
4210
|
if (t.value) {
|
|
4207
4211
|
const d = t.value.getBoundingClientRect(), f = window.innerWidth;
|
|
4208
4212
|
c + d.width > f && (c = f - d.width - 16, c < 0 && (c = 16));
|
|
4209
4213
|
}
|
|
4210
|
-
n.value = { top:
|
|
4214
|
+
n.value = { top: s / 16, left: c / 16 };
|
|
4211
4215
|
}
|
|
4212
4216
|
}, i = () => {
|
|
4213
4217
|
a.value = !1;
|
|
4214
|
-
}, A = (
|
|
4215
|
-
e.value && !e.value.contains(
|
|
4218
|
+
}, A = (l) => {
|
|
4219
|
+
e.value && !e.value.contains(l.target) && i();
|
|
4216
4220
|
};
|
|
4217
4221
|
return xe(() => {
|
|
4218
4222
|
document.addEventListener("click", A);
|
|
@@ -4229,8 +4233,8 @@ function Lo(e, t) {
|
|
|
4229
4233
|
* tabbable 6.2.0
|
|
4230
4234
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4231
4235
|
*/
|
|
4232
|
-
var
|
|
4233
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ze = !
|
|
4236
|
+
var Kt = ["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])"], He = /* @__PURE__ */ Kt.join(","), Gt = typeof Element > "u", be = Gt ? function() {
|
|
4237
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ze = !Gt && Element.prototype.getRootNode ? function(e) {
|
|
4234
4238
|
var t;
|
|
4235
4239
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
4236
4240
|
} : function(e) {
|
|
@@ -4240,20 +4244,20 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4240
4244
|
a === void 0 && (a = !0);
|
|
4241
4245
|
var r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), i = r === "" || r === "true", A = i || a && t && e(t.parentNode);
|
|
4242
4246
|
return A;
|
|
4243
|
-
},
|
|
4247
|
+
}, ko = function(t) {
|
|
4244
4248
|
var a, n = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
4245
4249
|
return n === "" || n === "true";
|
|
4246
|
-
},
|
|
4250
|
+
}, Jt = function(t, a, n) {
|
|
4247
4251
|
if (qe(t))
|
|
4248
4252
|
return [];
|
|
4249
4253
|
var r = Array.prototype.slice.apply(t.querySelectorAll(He));
|
|
4250
4254
|
return a && be.call(t, He) && r.unshift(t), r = r.filter(n), r;
|
|
4251
|
-
},
|
|
4255
|
+
}, _t = function e(t, a, n) {
|
|
4252
4256
|
for (var r = [], i = Array.from(t); i.length; ) {
|
|
4253
4257
|
var A = i.shift();
|
|
4254
4258
|
if (!qe(A, !1))
|
|
4255
4259
|
if (A.tagName === "SLOT") {
|
|
4256
|
-
var
|
|
4260
|
+
var l = A.assignedElements(), s = l.length ? l : A.children, c = e(s, !0, n);
|
|
4257
4261
|
n.flatten ? r.push.apply(r, c) : r.push({
|
|
4258
4262
|
scopeParent: A,
|
|
4259
4263
|
candidates: c
|
|
@@ -4274,35 +4278,35 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4274
4278
|
}
|
|
4275
4279
|
}
|
|
4276
4280
|
return r;
|
|
4277
|
-
},
|
|
4281
|
+
}, $t = function(t) {
|
|
4278
4282
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
4279
4283
|
}, he = function(t) {
|
|
4280
4284
|
if (!t)
|
|
4281
4285
|
throw new Error("No node provided");
|
|
4282
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
4283
|
-
}, ko = function(t, a) {
|
|
4284
|
-
var n = he(t);
|
|
4285
|
-
return n < 0 && a && !_t(t) ? 0 : n;
|
|
4286
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || ko(t)) && !$t(t) ? 0 : t.tabIndex;
|
|
4286
4287
|
}, zo = function(t, a) {
|
|
4288
|
+
var n = he(t);
|
|
4289
|
+
return n < 0 && a && !$t(t) ? 0 : n;
|
|
4290
|
+
}, xo = function(t, a) {
|
|
4287
4291
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
4288
|
-
},
|
|
4292
|
+
}, ea = function(t) {
|
|
4289
4293
|
return t.tagName === "INPUT";
|
|
4290
|
-
}, xo = function(t) {
|
|
4291
|
-
return $t(t) && t.type === "hidden";
|
|
4292
4294
|
}, jo = function(t) {
|
|
4295
|
+
return ea(t) && t.type === "hidden";
|
|
4296
|
+
}, Bo = function(t) {
|
|
4293
4297
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
4294
4298
|
return n.tagName === "SUMMARY";
|
|
4295
4299
|
});
|
|
4296
4300
|
return a;
|
|
4297
|
-
},
|
|
4301
|
+
}, Po = function(t, a) {
|
|
4298
4302
|
for (var n = 0; n < t.length; n++)
|
|
4299
4303
|
if (t[n].checked && t[n].form === a)
|
|
4300
4304
|
return t[n];
|
|
4301
|
-
},
|
|
4305
|
+
}, Wo = function(t) {
|
|
4302
4306
|
if (!t.name)
|
|
4303
4307
|
return !0;
|
|
4304
|
-
var a = t.form || Ze(t), n = function(
|
|
4305
|
-
return a.querySelectorAll('input[type="radio"][name="' +
|
|
4308
|
+
var a = t.form || Ze(t), n = function(l) {
|
|
4309
|
+
return a.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
4306
4310
|
}, r;
|
|
4307
4311
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
4308
4312
|
r = n(window.CSS.escape(t.name));
|
|
@@ -4312,26 +4316,26 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4312
4316
|
} catch (A) {
|
|
4313
4317
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", A.message), !1;
|
|
4314
4318
|
}
|
|
4315
|
-
var i =
|
|
4319
|
+
var i = Po(r, t.form);
|
|
4316
4320
|
return !i || i === t;
|
|
4317
|
-
}, Wo = function(t) {
|
|
4318
|
-
return $t(t) && t.type === "radio";
|
|
4319
4321
|
}, Vo = function(t) {
|
|
4320
|
-
return
|
|
4322
|
+
return ea(t) && t.type === "radio";
|
|
4321
4323
|
}, Uo = function(t) {
|
|
4324
|
+
return Vo(t) && !Wo(t);
|
|
4325
|
+
}, Xo = function(t) {
|
|
4322
4326
|
var a, n = t && Ze(t), r = (a = n) === null || a === void 0 ? void 0 : a.host, i = !1;
|
|
4323
4327
|
if (n && n !== t) {
|
|
4324
|
-
var A,
|
|
4325
|
-
for (i = !!((A = r) !== null && A !== void 0 && (
|
|
4328
|
+
var A, l, s;
|
|
4329
|
+
for (i = !!((A = r) !== null && A !== void 0 && (l = A.ownerDocument) !== null && l !== void 0 && l.contains(r) || t != null && (s = t.ownerDocument) !== null && s !== void 0 && s.contains(t)); !i && r; ) {
|
|
4326
4330
|
var c, d, f;
|
|
4327
4331
|
n = Ze(r), r = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((d = r) !== null && d !== void 0 && (f = d.ownerDocument) !== null && f !== void 0 && f.contains(r));
|
|
4328
4332
|
}
|
|
4329
4333
|
}
|
|
4330
4334
|
return i;
|
|
4331
|
-
},
|
|
4335
|
+
}, Tt = function(t) {
|
|
4332
4336
|
var a = t.getBoundingClientRect(), n = a.width, r = a.height;
|
|
4333
4337
|
return n === 0 && r === 0;
|
|
4334
|
-
},
|
|
4338
|
+
}, Ho = function(t, a) {
|
|
4335
4339
|
var n = a.displayCheck, r = a.getShadowRoot;
|
|
4336
4340
|
if (getComputedStyle(t).visibility === "hidden")
|
|
4337
4341
|
return !0;
|
|
@@ -4340,22 +4344,22 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4340
4344
|
return !0;
|
|
4341
4345
|
if (!n || n === "full" || n === "legacy-full") {
|
|
4342
4346
|
if (typeof r == "function") {
|
|
4343
|
-
for (var
|
|
4344
|
-
var
|
|
4345
|
-
if (
|
|
4346
|
-
return
|
|
4347
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
4347
|
+
for (var l = t; t; ) {
|
|
4348
|
+
var s = t.parentElement, c = Ze(t);
|
|
4349
|
+
if (s && !s.shadowRoot && r(s) === !0)
|
|
4350
|
+
return Tt(t);
|
|
4351
|
+
t.assignedSlot ? t = t.assignedSlot : !s && c !== t.ownerDocument ? t = c.host : t = s;
|
|
4348
4352
|
}
|
|
4349
|
-
t =
|
|
4353
|
+
t = l;
|
|
4350
4354
|
}
|
|
4351
|
-
if (
|
|
4355
|
+
if (Xo(t))
|
|
4352
4356
|
return !t.getClientRects().length;
|
|
4353
4357
|
if (n !== "legacy-full")
|
|
4354
4358
|
return !0;
|
|
4355
4359
|
} else if (n === "non-zero-area")
|
|
4356
|
-
return
|
|
4360
|
+
return Tt(t);
|
|
4357
4361
|
return !1;
|
|
4358
|
-
},
|
|
4362
|
+
}, Zo = function(t) {
|
|
4359
4363
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
4360
4364
|
for (var a = t.parentElement; a; ) {
|
|
4361
4365
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
@@ -4373,81 +4377,81 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4373
4377
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
4374
4378
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
4375
4379
|
// note related to `candidateSelectors`)
|
|
4376
|
-
qe(a) ||
|
|
4377
|
-
|
|
4378
|
-
},
|
|
4379
|
-
return !(
|
|
4380
|
-
},
|
|
4380
|
+
qe(a) || jo(a) || Ho(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
4381
|
+
Bo(a) || Zo(a));
|
|
4382
|
+
}, at = function(t, a) {
|
|
4383
|
+
return !(Uo(a) || he(a) < 0 || !Ye(t, a));
|
|
4384
|
+
}, qo = function(t) {
|
|
4381
4385
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
4382
4386
|
return !!(isNaN(a) || a >= 0);
|
|
4383
|
-
},
|
|
4387
|
+
}, Yo = function e(t) {
|
|
4384
4388
|
var a = [], n = [];
|
|
4385
4389
|
return t.forEach(function(r, i) {
|
|
4386
|
-
var A = !!r.scopeParent,
|
|
4387
|
-
|
|
4390
|
+
var A = !!r.scopeParent, l = A ? r.scopeParent : r, s = zo(l, A), c = A ? e(r.candidates) : l;
|
|
4391
|
+
s === 0 ? A ? a.push.apply(a, c) : a.push(l) : n.push({
|
|
4388
4392
|
documentOrder: i,
|
|
4389
|
-
tabIndex:
|
|
4393
|
+
tabIndex: s,
|
|
4390
4394
|
item: r,
|
|
4391
4395
|
isScope: A,
|
|
4392
4396
|
content: c
|
|
4393
4397
|
});
|
|
4394
|
-
}), n.sort(
|
|
4398
|
+
}), n.sort(xo).reduce(function(r, i) {
|
|
4395
4399
|
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
4396
4400
|
}, []).concat(a);
|
|
4397
|
-
},
|
|
4401
|
+
}, Ro = function(t, a) {
|
|
4398
4402
|
a = a || {};
|
|
4399
4403
|
var n;
|
|
4400
|
-
return a.getShadowRoot ? n =
|
|
4401
|
-
filter:
|
|
4404
|
+
return a.getShadowRoot ? n = _t([t], a.includeContainer, {
|
|
4405
|
+
filter: at.bind(null, a),
|
|
4402
4406
|
flatten: !1,
|
|
4403
4407
|
getShadowRoot: a.getShadowRoot,
|
|
4404
|
-
shadowRootFilter:
|
|
4405
|
-
}) : n =
|
|
4406
|
-
},
|
|
4408
|
+
shadowRootFilter: qo
|
|
4409
|
+
}) : n = Jt(t, a.includeContainer, at.bind(null, a)), Yo(n);
|
|
4410
|
+
}, Fo = function(t, a) {
|
|
4407
4411
|
a = a || {};
|
|
4408
4412
|
var n;
|
|
4409
|
-
return a.getShadowRoot ? n =
|
|
4413
|
+
return a.getShadowRoot ? n = _t([t], a.includeContainer, {
|
|
4410
4414
|
filter: Ye.bind(null, a),
|
|
4411
4415
|
flatten: !0,
|
|
4412
4416
|
getShadowRoot: a.getShadowRoot
|
|
4413
|
-
}) : n =
|
|
4417
|
+
}) : n = Jt(t, a.includeContainer, Ye.bind(null, a)), n;
|
|
4414
4418
|
}, Ee = function(t, a) {
|
|
4415
4419
|
if (a = a || {}, !t)
|
|
4416
4420
|
throw new Error("No node provided");
|
|
4417
|
-
return be.call(t, He) === !1 ? !1 :
|
|
4418
|
-
},
|
|
4421
|
+
return be.call(t, He) === !1 ? !1 : at(a, t);
|
|
4422
|
+
}, Ko = /* @__PURE__ */ Kt.concat("iframe").join(","), et = function(t, a) {
|
|
4419
4423
|
if (a = a || {}, !t)
|
|
4420
4424
|
throw new Error("No node provided");
|
|
4421
|
-
return be.call(t,
|
|
4425
|
+
return be.call(t, Ko) === !1 ? !1 : Ye(a, t);
|
|
4422
4426
|
};
|
|
4423
4427
|
/*!
|
|
4424
4428
|
* focus-trap 7.6.5
|
|
4425
4429
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
4426
4430
|
*/
|
|
4427
|
-
function
|
|
4431
|
+
function nt(e, t) {
|
|
4428
4432
|
(t == null || t > e.length) && (t = e.length);
|
|
4429
4433
|
for (var a = 0, n = Array(t); a < t; a++) n[a] = e[a];
|
|
4430
4434
|
return n;
|
|
4431
4435
|
}
|
|
4432
|
-
function
|
|
4433
|
-
if (Array.isArray(e)) return
|
|
4436
|
+
function Go(e) {
|
|
4437
|
+
if (Array.isArray(e)) return nt(e);
|
|
4434
4438
|
}
|
|
4435
|
-
function
|
|
4436
|
-
return (t =
|
|
4439
|
+
function Jo(e, t, a) {
|
|
4440
|
+
return (t = al(t)) in e ? Object.defineProperty(e, t, {
|
|
4437
4441
|
value: a,
|
|
4438
4442
|
enumerable: !0,
|
|
4439
4443
|
configurable: !0,
|
|
4440
4444
|
writable: !0
|
|
4441
4445
|
}) : e[t] = a, e;
|
|
4442
4446
|
}
|
|
4443
|
-
function
|
|
4447
|
+
function _o(e) {
|
|
4444
4448
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4445
4449
|
}
|
|
4446
|
-
function
|
|
4450
|
+
function $o() {
|
|
4447
4451
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4448
4452
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4449
4453
|
}
|
|
4450
|
-
function
|
|
4454
|
+
function Qt(e, t) {
|
|
4451
4455
|
var a = Object.keys(e);
|
|
4452
4456
|
if (Object.getOwnPropertySymbols) {
|
|
4453
4457
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4457,21 +4461,21 @@ function Tt(e, t) {
|
|
|
4457
4461
|
}
|
|
4458
4462
|
return a;
|
|
4459
4463
|
}
|
|
4460
|
-
function
|
|
4464
|
+
function Dt(e) {
|
|
4461
4465
|
for (var t = 1; t < arguments.length; t++) {
|
|
4462
4466
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
4463
|
-
t % 2 ?
|
|
4464
|
-
|
|
4465
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) :
|
|
4467
|
+
t % 2 ? Qt(Object(a), !0).forEach(function(n) {
|
|
4468
|
+
Jo(e, n, a[n]);
|
|
4469
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Qt(Object(a)).forEach(function(n) {
|
|
4466
4470
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(a, n));
|
|
4467
4471
|
});
|
|
4468
4472
|
}
|
|
4469
4473
|
return e;
|
|
4470
4474
|
}
|
|
4471
|
-
function
|
|
4472
|
-
return
|
|
4475
|
+
function el(e) {
|
|
4476
|
+
return Go(e) || _o(e) || nl(e) || $o();
|
|
4473
4477
|
}
|
|
4474
|
-
function
|
|
4478
|
+
function tl(e, t) {
|
|
4475
4479
|
if (typeof e != "object" || !e) return e;
|
|
4476
4480
|
var a = e[Symbol.toPrimitive];
|
|
4477
4481
|
if (a !== void 0) {
|
|
@@ -4481,18 +4485,18 @@ function el(e, t) {
|
|
|
4481
4485
|
}
|
|
4482
4486
|
return (t === "string" ? String : Number)(e);
|
|
4483
4487
|
}
|
|
4484
|
-
function
|
|
4485
|
-
var t =
|
|
4488
|
+
function al(e) {
|
|
4489
|
+
var t = tl(e, "string");
|
|
4486
4490
|
return typeof t == "symbol" ? t : t + "";
|
|
4487
4491
|
}
|
|
4488
|
-
function
|
|
4492
|
+
function nl(e, t) {
|
|
4489
4493
|
if (e) {
|
|
4490
|
-
if (typeof e == "string") return
|
|
4494
|
+
if (typeof e == "string") return nt(e, t);
|
|
4491
4495
|
var a = {}.toString.call(e).slice(8, -1);
|
|
4492
|
-
return a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set" ? Array.from(e) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ?
|
|
4496
|
+
return a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set" ? Array.from(e) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? nt(e, t) : void 0;
|
|
4493
4497
|
}
|
|
4494
4498
|
}
|
|
4495
|
-
var
|
|
4499
|
+
var Ot = {
|
|
4496
4500
|
activateTrap: function(t, a) {
|
|
4497
4501
|
if (t.length > 0) {
|
|
4498
4502
|
var n = t[t.length - 1];
|
|
@@ -4505,17 +4509,17 @@ var Dt = {
|
|
|
4505
4509
|
var n = t.indexOf(a);
|
|
4506
4510
|
n !== -1 && t.splice(n, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
4507
4511
|
}
|
|
4508
|
-
}, nl = function(t) {
|
|
4509
|
-
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
4510
4512
|
}, rl = function(t) {
|
|
4513
|
+
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
4514
|
+
}, Al = function(t) {
|
|
4511
4515
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
4512
4516
|
}, Se = function(t) {
|
|
4513
4517
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
4514
|
-
}, Al = function(t) {
|
|
4515
|
-
return Se(t) && !t.shiftKey;
|
|
4516
4518
|
}, il = function(t) {
|
|
4519
|
+
return Se(t) && !t.shiftKey;
|
|
4520
|
+
}, ol = function(t) {
|
|
4517
4521
|
return Se(t) && t.shiftKey;
|
|
4518
|
-
},
|
|
4522
|
+
}, wt = function(t) {
|
|
4519
4523
|
return setTimeout(t, 0);
|
|
4520
4524
|
}, we = function(t) {
|
|
4521
4525
|
for (var a = arguments.length, n = new Array(a > 1 ? a - 1 : 0), r = 1; r < a; r++)
|
|
@@ -4523,13 +4527,13 @@ var Dt = {
|
|
|
4523
4527
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
4524
4528
|
}, Be = function(t) {
|
|
4525
4529
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
4526
|
-
},
|
|
4527
|
-
var n = (a == null ? void 0 : a.document) || document, r = (a == null ? void 0 : a.trapStack) ||
|
|
4530
|
+
}, ll = [], sl = function(t, a) {
|
|
4531
|
+
var n = (a == null ? void 0 : a.document) || document, r = (a == null ? void 0 : a.trapStack) || ll, i = Dt({
|
|
4528
4532
|
returnFocusOnDeactivate: !0,
|
|
4529
4533
|
escapeDeactivates: !0,
|
|
4530
4534
|
delayInitialFocus: !0,
|
|
4531
|
-
isKeyForward:
|
|
4532
|
-
isKeyBackward:
|
|
4535
|
+
isKeyForward: il,
|
|
4536
|
+
isKeyBackward: ol
|
|
4533
4537
|
}, a), A = {
|
|
4534
4538
|
// containers given to createFocusTrap()
|
|
4535
4539
|
// @type {Array<HTMLElement>}
|
|
@@ -4567,7 +4571,7 @@ var Dt = {
|
|
|
4567
4571
|
delayInitialFocusTimer: void 0,
|
|
4568
4572
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
4569
4573
|
recentNavEvent: void 0
|
|
4570
|
-
},
|
|
4574
|
+
}, l, s = function(v, h, N) {
|
|
4571
4575
|
return v && v[h] !== void 0 ? v[h] : i[N || h];
|
|
4572
4576
|
}, c = function(v, h) {
|
|
4573
4577
|
var N = typeof (h == null ? void 0 : h.composedPath) == "function" ? h.composedPath() : void 0;
|
|
@@ -4583,7 +4587,7 @@ var Dt = {
|
|
|
4583
4587
|
});
|
|
4584
4588
|
}, d = function(v) {
|
|
4585
4589
|
var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = h.hasFallback, k = N === void 0 ? !1 : N, U = h.params, q = U === void 0 ? [] : U, L = i[v];
|
|
4586
|
-
if (typeof L == "function" && (L = L.apply(void 0,
|
|
4590
|
+
if (typeof L == "function" && (L = L.apply(void 0, el(q))), L === !0 && (L = void 0), !L) {
|
|
4587
4591
|
if (L === void 0 || L === !1)
|
|
4588
4592
|
return L;
|
|
4589
4593
|
throw new Error("`".concat(v, "` was specified but was not a node, or did not return a node"));
|
|
@@ -4605,7 +4609,7 @@ var Dt = {
|
|
|
4605
4609
|
});
|
|
4606
4610
|
if (v === !1)
|
|
4607
4611
|
return !1;
|
|
4608
|
-
if (v === void 0 || v &&
|
|
4612
|
+
if (v === void 0 || v && !et(v, i.tabbableOptions))
|
|
4609
4613
|
if (c(n.activeElement) >= 0)
|
|
4610
4614
|
v = n.activeElement;
|
|
4611
4615
|
else {
|
|
@@ -4618,7 +4622,7 @@ var Dt = {
|
|
|
4618
4622
|
return v;
|
|
4619
4623
|
}, b = function() {
|
|
4620
4624
|
if (A.containerGroups = A.containers.map(function(v) {
|
|
4621
|
-
var h =
|
|
4625
|
+
var h = Ro(v, i.tabbableOptions), N = Fo(v, i.tabbableOptions), k = h.length > 0 ? h[0] : void 0, U = h.length > 0 ? h[h.length - 1] : void 0, q = N.find(function(G) {
|
|
4622
4626
|
return Ee(G);
|
|
4623
4627
|
}), L = N.slice().reverse().find(function(G) {
|
|
4624
4628
|
return Ee(G);
|
|
@@ -4683,7 +4687,7 @@ var Dt = {
|
|
|
4683
4687
|
}
|
|
4684
4688
|
v.focus({
|
|
4685
4689
|
preventScroll: !!i.preventScroll
|
|
4686
|
-
}), A.mostRecentlyFocusedNode = v,
|
|
4690
|
+
}), A.mostRecentlyFocusedNode = v, rl(v) && v.select();
|
|
4687
4691
|
}
|
|
4688
4692
|
}, C = function(v) {
|
|
4689
4693
|
var h = d("setReturnFocus", {
|
|
@@ -4703,7 +4707,7 @@ var Dt = {
|
|
|
4703
4707
|
var Ge = Ke.firstTabbableNode;
|
|
4704
4708
|
return h === Ge;
|
|
4705
4709
|
});
|
|
4706
|
-
if (G < 0 && (K.container === h ||
|
|
4710
|
+
if (G < 0 && (K.container === h || et(h, i.tabbableOptions) && !Ee(h, i.tabbableOptions) && !K.nextTabbableNode(h, !1)) && (G = L), G >= 0) {
|
|
4707
4711
|
var ge = G === 0 ? A.tabbableGroups.length - 1 : G - 1, Ne = A.tabbableGroups[ge];
|
|
4708
4712
|
q = he(h) >= 0 ? Ne.lastTabbableNode : Ne.lastDomTabbableNode;
|
|
4709
4713
|
} else Se(N) || (q = K.nextTabbableNode(h, !1));
|
|
@@ -4712,9 +4716,9 @@ var Dt = {
|
|
|
4712
4716
|
var Ge = Ke.lastTabbableNode;
|
|
4713
4717
|
return h === Ge;
|
|
4714
4718
|
});
|
|
4715
|
-
if (de < 0 && (K.container === h ||
|
|
4716
|
-
var Te = de === A.tabbableGroups.length - 1 ? 0 : de + 1,
|
|
4717
|
-
q = he(h) >= 0 ?
|
|
4719
|
+
if (de < 0 && (K.container === h || et(h, i.tabbableOptions) && !Ee(h, i.tabbableOptions) && !K.nextTabbableNode(h)) && (de = L), de >= 0) {
|
|
4720
|
+
var Te = de === A.tabbableGroups.length - 1 ? 0 : de + 1, ut = A.tabbableGroups[Te];
|
|
4721
|
+
q = he(h) >= 0 ? ut.firstTabbableNode : ut.firstDomTabbableNode;
|
|
4718
4722
|
} else Se(N) || (q = K.nextTabbableNode(h));
|
|
4719
4723
|
}
|
|
4720
4724
|
} else
|
|
@@ -4724,7 +4728,7 @@ var Dt = {
|
|
|
4724
4728
|
var h = Be(v);
|
|
4725
4729
|
if (!(c(h, v) >= 0)) {
|
|
4726
4730
|
if (we(i.clickOutsideDeactivates, v)) {
|
|
4727
|
-
|
|
4731
|
+
l.deactivate({
|
|
4728
4732
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
4729
4733
|
// which will result in the outside click setting focus to the node
|
|
4730
4734
|
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
@@ -4780,13 +4784,13 @@ var Dt = {
|
|
|
4780
4784
|
}, D = function(v) {
|
|
4781
4785
|
(i.isKeyForward(v) || i.isKeyBackward(v)) && E(v, i.isKeyBackward(v));
|
|
4782
4786
|
}, j = function(v) {
|
|
4783
|
-
|
|
4787
|
+
Al(v) && we(i.escapeDeactivates, v) !== !1 && (v.preventDefault(), l.deactivate());
|
|
4784
4788
|
}, W = function(v) {
|
|
4785
4789
|
var h = Be(v);
|
|
4786
4790
|
c(h, v) >= 0 || we(i.clickOutsideDeactivates, v) || we(i.allowOutsideClick, v) || (v.preventDefault(), v.stopImmediatePropagation());
|
|
4787
4791
|
}, z = function() {
|
|
4788
4792
|
if (A.active)
|
|
4789
|
-
return
|
|
4793
|
+
return Ot.activateTrap(r, l), A.delayInitialFocusTimer = i.delayInitialFocus ? wt(function() {
|
|
4790
4794
|
m(f());
|
|
4791
4795
|
}) : m(f()), n.addEventListener("focusin", Q, !0), n.addEventListener("mousedown", T, {
|
|
4792
4796
|
capture: !0,
|
|
@@ -4800,10 +4804,10 @@ var Dt = {
|
|
|
4800
4804
|
}), n.addEventListener("keydown", D, {
|
|
4801
4805
|
capture: !0,
|
|
4802
4806
|
passive: !1
|
|
4803
|
-
}), n.addEventListener("keydown", j),
|
|
4807
|
+
}), n.addEventListener("keydown", j), l;
|
|
4804
4808
|
}, Ae = function() {
|
|
4805
4809
|
if (A.active)
|
|
4806
|
-
return n.removeEventListener("focusin", Q, !0), n.removeEventListener("mousedown", T, !0), n.removeEventListener("touchstart", T, !0), n.removeEventListener("click", W, !0), n.removeEventListener("keydown", D, !0), n.removeEventListener("keydown", j),
|
|
4810
|
+
return n.removeEventListener("focusin", Q, !0), n.removeEventListener("mousedown", T, !0), n.removeEventListener("touchstart", T, !0), n.removeEventListener("click", W, !0), n.removeEventListener("keydown", D, !0), n.removeEventListener("keydown", j), l;
|
|
4807
4811
|
}, w = function(v) {
|
|
4808
4812
|
var h = v.some(function(N) {
|
|
4809
4813
|
var k = Array.from(N.removedNodes);
|
|
@@ -4820,7 +4824,7 @@ var Dt = {
|
|
|
4820
4824
|
});
|
|
4821
4825
|
}));
|
|
4822
4826
|
};
|
|
4823
|
-
return
|
|
4827
|
+
return l = {
|
|
4824
4828
|
get active() {
|
|
4825
4829
|
return A.active;
|
|
4826
4830
|
},
|
|
@@ -4830,7 +4834,7 @@ var Dt = {
|
|
|
4830
4834
|
activate: function(v) {
|
|
4831
4835
|
if (A.active)
|
|
4832
4836
|
return this;
|
|
4833
|
-
var h =
|
|
4837
|
+
var h = s(v, "onActivate"), N = s(v, "onPostActivate"), k = s(v, "checkCanFocusTrap");
|
|
4834
4838
|
k || b(), A.active = !0, A.paused = !1, A.nodeFocusedBeforeActivation = I(n), h == null || h();
|
|
4835
4839
|
var U = function() {
|
|
4836
4840
|
k && b(), z(), $(), N == null || N();
|
|
@@ -4840,16 +4844,16 @@ var Dt = {
|
|
|
4840
4844
|
deactivate: function(v) {
|
|
4841
4845
|
if (!A.active)
|
|
4842
4846
|
return this;
|
|
4843
|
-
var h =
|
|
4847
|
+
var h = Dt({
|
|
4844
4848
|
onDeactivate: i.onDeactivate,
|
|
4845
4849
|
onPostDeactivate: i.onPostDeactivate,
|
|
4846
4850
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
4847
4851
|
}, v);
|
|
4848
|
-
clearTimeout(A.delayInitialFocusTimer), A.delayInitialFocusTimer = void 0, Ae(), A.active = !1, A.paused = !1, $(),
|
|
4849
|
-
var N =
|
|
4852
|
+
clearTimeout(A.delayInitialFocusTimer), A.delayInitialFocusTimer = void 0, Ae(), A.active = !1, A.paused = !1, $(), Ot.deactivateTrap(r, l);
|
|
4853
|
+
var N = s(h, "onDeactivate"), k = s(h, "onPostDeactivate"), U = s(h, "checkCanReturnFocus"), q = s(h, "returnFocus", "returnFocusOnDeactivate");
|
|
4850
4854
|
N == null || N();
|
|
4851
4855
|
var L = function() {
|
|
4852
|
-
|
|
4856
|
+
wt(function() {
|
|
4853
4857
|
q && m(C(A.nodeFocusedBeforeActivation)), k == null || k();
|
|
4854
4858
|
});
|
|
4855
4859
|
};
|
|
@@ -4867,7 +4871,7 @@ var Dt = {
|
|
|
4867
4871
|
return typeof N == "string" ? n.querySelector(N) : N;
|
|
4868
4872
|
}), A.active && b(), $(), this;
|
|
4869
4873
|
}
|
|
4870
|
-
}, Object.defineProperties(
|
|
4874
|
+
}, Object.defineProperties(l, {
|
|
4871
4875
|
_isManuallyPaused: {
|
|
4872
4876
|
value: function() {
|
|
4873
4877
|
return A.manuallyPaused;
|
|
@@ -4878,23 +4882,23 @@ var Dt = {
|
|
|
4878
4882
|
if (A.paused === v)
|
|
4879
4883
|
return this;
|
|
4880
4884
|
if (A.paused = v, v) {
|
|
4881
|
-
var N =
|
|
4885
|
+
var N = s(h, "onPause"), k = s(h, "onPostPause");
|
|
4882
4886
|
N == null || N(), Ae(), $(), k == null || k();
|
|
4883
4887
|
} else {
|
|
4884
|
-
var U =
|
|
4888
|
+
var U = s(h, "onUnpause"), q = s(h, "onPostUnpause");
|
|
4885
4889
|
U == null || U(), b(), z(), $(), q == null || q();
|
|
4886
4890
|
}
|
|
4887
4891
|
return this;
|
|
4888
4892
|
}
|
|
4889
4893
|
}
|
|
4890
|
-
}),
|
|
4894
|
+
}), l.updateContainerElements(t), l;
|
|
4891
4895
|
};
|
|
4892
|
-
function
|
|
4896
|
+
function cl(e, t) {
|
|
4893
4897
|
let a = null;
|
|
4894
4898
|
function n() {
|
|
4895
4899
|
!e.value || !e.value.querySelector(
|
|
4896
4900
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
4897
|
-
) || (a =
|
|
4901
|
+
) || (a = sl(e.value, {
|
|
4898
4902
|
escapeDeactivates: !0,
|
|
4899
4903
|
onDeactivate: t,
|
|
4900
4904
|
returnFocusOnDeactivate: !0,
|
|
@@ -4909,7 +4913,7 @@ function sl(e, t) {
|
|
|
4909
4913
|
cleanupFocusTrap: r
|
|
4910
4914
|
};
|
|
4911
4915
|
}
|
|
4912
|
-
const
|
|
4916
|
+
const ul = { class: "av-popover-wrapper" }, dl = /* @__PURE__ */ S({
|
|
4913
4917
|
__name: "AvPopover",
|
|
4914
4918
|
props: {
|
|
4915
4919
|
width: { default: "12.5rem" },
|
|
@@ -4920,7 +4924,7 @@ const cl = { class: "av-popover-wrapper" }, ul = /* @__PURE__ */ S({
|
|
|
4920
4924
|
v75959032: f.width,
|
|
4921
4925
|
v330e9906: f.padding
|
|
4922
4926
|
}));
|
|
4923
|
-
const a = J(null), n = J(null), { showPopover: r, popoverPosition: i, togglePopover: A, closePopover:
|
|
4927
|
+
const a = J(null), n = J(null), { showPopover: r, popoverPosition: i, togglePopover: A, closePopover: l } = So(a, n), { initializeFocusTrap: s, cleanupFocusTrap: c } = cl(n, l);
|
|
4924
4928
|
function d(f) {
|
|
4925
4929
|
if (!f) {
|
|
4926
4930
|
a.value = null;
|
|
@@ -4934,40 +4938,40 @@ const cl = { class: "av-popover-wrapper" }, ul = /* @__PURE__ */ S({
|
|
|
4934
4938
|
b instanceof HTMLElement ? a.value = b : a.value = null;
|
|
4935
4939
|
}
|
|
4936
4940
|
return t({ setTriggerRef: d, triggerRef: a }), ce(r, async (f) => {
|
|
4937
|
-
f ? (await Re(),
|
|
4938
|
-
}),
|
|
4941
|
+
f ? (await Re(), s()) : c();
|
|
4942
|
+
}), wa(() => {
|
|
4939
4943
|
c();
|
|
4940
|
-
}), (f, b) => (u(), g("div",
|
|
4944
|
+
}), (f, b) => (u(), g("div", ul, [
|
|
4941
4945
|
y("div", {
|
|
4942
4946
|
ref: d,
|
|
4943
4947
|
class: "av-popover-trigger-wrapper"
|
|
4944
4948
|
}, [
|
|
4945
|
-
B(f.$slots, "trigger", { toggle:
|
|
4949
|
+
B(f.$slots, "trigger", { toggle: o(A) }, void 0, !0)
|
|
4946
4950
|
]),
|
|
4947
|
-
(u(), x(
|
|
4948
|
-
|
|
4951
|
+
(u(), x(zt, { to: "body" }, [
|
|
4952
|
+
o(r) ? (u(), g("div", {
|
|
4949
4953
|
key: 0,
|
|
4950
4954
|
ref_key: "popoverRef",
|
|
4951
4955
|
ref: n,
|
|
4952
4956
|
tabindex: "-1",
|
|
4953
4957
|
class: "av-popover",
|
|
4954
|
-
style: Ve(`top: ${
|
|
4955
|
-
onKeydown: b[0] || (b[0] =
|
|
4958
|
+
style: Ve(`top: ${o(i).top}rem; left: ${o(i).left}rem;`),
|
|
4959
|
+
onKeydown: b[0] || (b[0] = ot(se(
|
|
4956
4960
|
//@ts-ignore
|
|
4957
|
-
(...I) =>
|
|
4961
|
+
(...I) => o(l) && o(l)(...I),
|
|
4958
4962
|
["prevent"]
|
|
4959
4963
|
), ["esc"]))
|
|
4960
4964
|
}, [
|
|
4961
|
-
B(f.$slots, "popover", { close:
|
|
4965
|
+
B(f.$slots, "popover", { close: o(l) }, void 0, !0)
|
|
4962
4966
|
], 36)) : O("", !0)
|
|
4963
4967
|
]))
|
|
4964
4968
|
]));
|
|
4965
4969
|
}
|
|
4966
|
-
}),
|
|
4970
|
+
}), ts = /* @__PURE__ */ V(dl, [["__scopeId", "data-v-6a5eaa47"]]), as = {
|
|
4967
4971
|
name: "DsfrBadge",
|
|
4968
4972
|
template: '<div class="dsfr-badge" />',
|
|
4969
4973
|
props: ["label", "type", "small", "ellipsis"]
|
|
4970
|
-
},
|
|
4974
|
+
}, ns = {
|
|
4971
4975
|
name: "DsfrModal",
|
|
4972
4976
|
props: ["opened", "title"],
|
|
4973
4977
|
template: '<div class="dsfr-modal"><slot /><slot name="footer" /></div>',
|
|
@@ -4977,80 +4981,81 @@ const cl = { class: "av-popover-wrapper" }, ul = /* @__PURE__ */ S({
|
|
|
4977
4981
|
this.$emit("keydown", { key: "Escape" });
|
|
4978
4982
|
}
|
|
4979
4983
|
}
|
|
4980
|
-
},
|
|
4984
|
+
}, rs = {
|
|
4981
4985
|
name: "DsfrNavigation",
|
|
4982
4986
|
props: {
|
|
4983
4987
|
navItems: Array
|
|
4984
4988
|
},
|
|
4985
4989
|
template: '<nav class="dsfr-navigation-mock"><slot /></nav>'
|
|
4986
|
-
},
|
|
4990
|
+
}, As = {
|
|
4987
4991
|
name: "VIcon",
|
|
4988
4992
|
props: ["name", "size", "color"],
|
|
4989
4993
|
template: '<div class="v-icon-stub"></div>'
|
|
4990
4994
|
};
|
|
4991
4995
|
export {
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4996
|
+
Tl as AvAccordion,
|
|
4997
|
+
Ql as AvAccordionsGroup,
|
|
4998
|
+
Ga as AvAlert,
|
|
4999
|
+
Pl as AvAutocomplete,
|
|
5000
|
+
Bl as AvAutocompleteStub,
|
|
5001
|
+
gl as AvBadge,
|
|
5002
|
+
ml as AvBadgeStub,
|
|
4999
5003
|
Ce as AvButton,
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5004
|
+
Dl as AvButtonStub,
|
|
5005
|
+
bl as AvCard,
|
|
5006
|
+
$l as AvDrawer,
|
|
5007
|
+
_l as AvDrawerStub,
|
|
5008
|
+
wl as AvFileUpload,
|
|
5009
|
+
pl as AvHeader,
|
|
5010
|
+
ft as AvHeaderMenuLinks,
|
|
5011
|
+
ja as AvIconText,
|
|
5012
|
+
fA as AvInput,
|
|
5013
|
+
Vt as AvList,
|
|
5014
|
+
Ut as AvListItem,
|
|
5015
|
+
Sl as AvListItemStub,
|
|
5016
|
+
Ll as AvListStub,
|
|
5017
|
+
rn as AvLogo,
|
|
5018
|
+
es as AvModal,
|
|
5019
|
+
Wl as AvMultiselect,
|
|
5020
|
+
ql as AvNavigation,
|
|
5021
|
+
Il as AvNotice,
|
|
5022
|
+
zl as AvPageSizePicker,
|
|
5023
|
+
Yl as AvPagination,
|
|
5024
|
+
ts as AvPopover,
|
|
5025
|
+
DA as AvRadioButton,
|
|
5026
|
+
jl as AvRadioButtonSet,
|
|
5027
|
+
Ol as AvRichButton,
|
|
5028
|
+
Ul as AvSelect,
|
|
5029
|
+
Vl as AvSelectStub,
|
|
5030
|
+
uo as AvSideMenu,
|
|
5031
|
+
Kl as AvSideNavigation,
|
|
5032
|
+
Fl as AvSideNavigationStub,
|
|
5033
|
+
Jl as AvStepper,
|
|
5034
|
+
Gl as AvStepperStub,
|
|
5035
|
+
Xl as AvTab,
|
|
5036
|
+
Hl as AvTabs,
|
|
5037
|
+
NA as AvTagPicker,
|
|
5038
|
+
xl as AvTagPickerStub,
|
|
5039
|
+
Ml as AvToaster,
|
|
5040
|
+
Zl as AvToggle,
|
|
5037
5041
|
ae as AvVIcon,
|
|
5038
|
-
|
|
5042
|
+
hl as AvVIconStub,
|
|
5039
5043
|
Me as DropdownState,
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5044
|
+
as as DsfrBadgeStub,
|
|
5045
|
+
ns as DsfrModalStub,
|
|
5046
|
+
rs as DsfrNavigationStub,
|
|
5047
|
+
Nl as EsupLogo,
|
|
5048
|
+
yl as ICONS_DATA_URL,
|
|
5045
5049
|
R as MDI_ICONS,
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5050
|
+
Xt as PageSizes,
|
|
5051
|
+
Cl as RI_ICONS,
|
|
5052
|
+
As as VIconStub,
|
|
5053
|
+
Ba as formatTextToHtml,
|
|
5054
|
+
Rl as getPaginationPages,
|
|
5055
|
+
El as isValidEmail,
|
|
5056
|
+
kl as pageSizeValues,
|
|
5057
|
+
ls as registerNavigationLinkKey,
|
|
5058
|
+
Xa as removeDuplicates,
|
|
5059
|
+
Je as toSentenceCase,
|
|
5060
|
+
cl as useFocusTrap
|
|
5056
5061
|
};
|