@avenirs-esr/avenirs-dsav 0.1.39 → 0.1.41
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 +1119 -1106
- package/dist/avenirs-dsav.umd.js +7 -7
- package/dist/components/interaction/inputs/AvInput/AvInput.vue.d.ts +4 -0
- package/dist/components/interaction/selects/AvAutocomplete/AvAutocompleteInput.vue.d.ts +6 -0
- package/dist/components/navigation/AvSideMenu/AvSideMenu.vue.d.ts +1 -1
- package/dist/components/overlay/drawers/AvDrawer/AvDrawer.vue.d.ts +1 -1
- package/dist/components/overlay/popovers/AvPopover/AvPopover.vue.d.ts +1 -1
- 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
|
|
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 te, 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 re, toRef as Ma, ref as J, onMounted as xe, onUnmounted as je, provide as St, resolveComponent as pa, withModifiers as se, mergeModels as ve, useModel as ke, nextTick as Re, createSlots as Le, watch as ce, isRef as At, inject as Na, getCurrentScope as Ta, onScopeDispose as Qa, getCurrentInstance as kt, toValue as ae, shallowRef as Pe, reactive as dt, normalizeProps as Da, guardReactiveProps as 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: {},
|
|
@@ -32,7 +32,7 @@ const vl = {
|
|
|
32
32
|
ellipsis: { type: Boolean }
|
|
33
33
|
},
|
|
34
34
|
setup(e) {
|
|
35
|
-
|
|
35
|
+
te((r) => ({
|
|
36
36
|
v07eeafc6: r.color,
|
|
37
37
|
v406561e2: r.backgroundColor,
|
|
38
38
|
v6fc40bd1: r.borderColor
|
|
@@ -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 },
|
|
@@ -69,18 +69,18 @@ const vl = {
|
|
|
69
69
|
ssr: { type: Boolean }
|
|
70
70
|
},
|
|
71
71
|
setup(e) {
|
|
72
|
-
|
|
73
|
-
v53885778:
|
|
72
|
+
te((r) => ({
|
|
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
|
-
}),
|
|
83
|
+
}), ne = /* @__PURE__ */ V(za, [["__scopeId", "data-v-bc7be51b"]]), xa = /* @__PURE__ */ S({
|
|
84
84
|
__name: "AvIconText",
|
|
85
85
|
props: {
|
|
86
86
|
textColor: { default: "var(--text1)" },
|
|
@@ -92,30 +92,33 @@ const vl = {
|
|
|
92
92
|
inline: { type: Boolean, default: !1 }
|
|
93
93
|
},
|
|
94
94
|
setup(e) {
|
|
95
|
-
|
|
95
|
+
te((r) => ({
|
|
96
96
|
v1b1615da: r.gap,
|
|
97
97
|
v274632b3: r.textColor
|
|
98
98
|
}));
|
|
99
99
|
const t = p(() => e.typographyClass.startsWith("caption") ? 1.125 : e.typographyClass.startsWith("n") || e.typographyClass.startsWith("s") ? 2 : 1.3125), a = p(() => e.inline ? void 0 : "ellipsis-container"), n = p(() => e.inline ? void 0 : "ellipsis");
|
|
100
100
|
return (r, i) => (u(), g("div", {
|
|
101
|
-
class: F(["icon-text--container", [
|
|
101
|
+
class: F(["icon-text--container", [o(a)]])
|
|
102
102
|
}, [
|
|
103
|
-
P(
|
|
103
|
+
P(ne, {
|
|
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" },
|
|
@@ -274,10 +284,10 @@ const Ba = ["innerHTML"], gl = /* @__PURE__ */ S({
|
|
|
274
284
|
onClick: {}
|
|
275
285
|
},
|
|
276
286
|
setup(e, { expose: t }) {
|
|
277
|
-
|
|
278
|
-
|
|
287
|
+
te((c) => ({
|
|
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(
|
|
355
|
-
y("div",
|
|
363
|
+
y("div", qa, [
|
|
364
|
+
y("div", Ya, [
|
|
365
|
+
P(ne, 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,
|
|
424
|
+
(u(!0), g(_, null, re(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",
|
|
439
|
-
(u(!0), g(_, null,
|
|
449
|
+
y("ul", en, [
|
|
450
|
+
(u(!0), g(_, null, re(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
|
-
function
|
|
548
|
-
|
|
558
|
+
function h() {
|
|
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":
|
|
579
|
-
onClick: T[0] || (T[0] = se((z) =>
|
|
580
|
-
}, null, 8,
|
|
581
|
-
|
|
589
|
+
"data-fr-opened": o(l),
|
|
590
|
+
onClick: T[0] || (T[0] = se((z) => h(), ["prevent", "stop"]))
|
|
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: {},
|
|
@@ -705,18 +716,18 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
705
716
|
color: {}
|
|
706
717
|
},
|
|
707
718
|
setup(e) {
|
|
708
|
-
|
|
719
|
+
te((a) => ({
|
|
709
720
|
v1dadd14a: a.color
|
|
710
721
|
}));
|
|
711
722
|
const t = p(() => ({
|
|
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,
|
|
750
|
-
id: `${r}-accordion-${
|
|
751
|
-
key:
|
|
752
|
-
"aria-labelledby": `accordion-title-${
|
|
753
|
-
"aria-describedby": `accordion-content-${
|
|
760
|
+
(u(!0), g(_, null, re(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(ne, {
|
|
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: {},
|
|
@@ -794,7 +805,7 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
794
805
|
onClick: { type: Function }
|
|
795
806
|
},
|
|
796
807
|
setup(e) {
|
|
797
|
-
return
|
|
808
|
+
return te((t) => ({
|
|
798
809
|
v4a373320: t.customPadding
|
|
799
810
|
})), (t, a) => (u(), g("button", {
|
|
800
811
|
class: "av-rich-button",
|
|
@@ -803,9 +814,9 @@ 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",
|
|
808
|
-
e.iconLeft ? (u(), x(
|
|
817
|
+
y("div", Pn, [
|
|
818
|
+
y("div", Wn, [
|
|
819
|
+
e.iconLeft ? (u(), x(ne, {
|
|
809
820
|
key: 0,
|
|
810
821
|
name: e.iconLeft,
|
|
811
822
|
color: "var(--dark-background-primary1)",
|
|
@@ -813,29 +824,29 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
813
824
|
}, null, 8, ["name"])) : O("", !0),
|
|
814
825
|
B(t.$slots, "default", {}, void 0, !0)
|
|
815
826
|
]),
|
|
816
|
-
e.iconRight ? (u(), x(
|
|
827
|
+
e.iconRight ? (u(), x(ne, {
|
|
817
828
|
key: 0,
|
|
818
829
|
name: e.iconRight,
|
|
819
830
|
color: "var(--dark-background-primary1)",
|
|
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
|
} },
|
|
@@ -871,7 +882,7 @@ const Dn = { render: Qn }, On = { class: "svg-wrapper" }, wn = /* @__PURE__ */ S
|
|
|
871
882
|
},
|
|
872
883
|
emits: ["update:modelValue", "update:validMessage", "update:error", "change", "onDropAcceptTypeError"],
|
|
873
884
|
setup(e, { emit: t }) {
|
|
874
|
-
|
|
885
|
+
te((I) => ({
|
|
875
886
|
v38bbeb48: I.maxWidth
|
|
876
887
|
}));
|
|
877
888
|
const a = t, n = p(() => Array.isArray(e.accept) ? e.accept.join(",") : e.accept), r = J(!1);
|
|
@@ -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,58 +919,58 @@ 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
|
-
function
|
|
926
|
+
function h(I) {
|
|
916
927
|
var m;
|
|
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
|
-
P(
|
|
941
|
+
P(ne, {
|
|
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",
|
|
954
|
-
onClick: m[0] || (m[0] = () =>
|
|
955
|
-
}, null, 8, ["label"])) : (u(), x(
|
|
965
|
+
onClick: m[0] || (m[0] = () => h(e.modelValue))
|
|
966
|
+
}, null, 8, ["label"])) : (u(), x(ne, {
|
|
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
|
|
1498
|
-
var d, f,
|
|
1499
|
-
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 = (
|
|
1508
|
+
function Pt(e, t) {
|
|
1509
|
+
var d, f, h, I;
|
|
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 = (h = r.locale) == null ? void 0 : h.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
|
|
2211
|
-
var d, f,
|
|
2212
|
-
const n = Fe(), r = n.locale ??
|
|
2213
|
-
if (!
|
|
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) {
|
|
2222
|
+
var d, f, h, I;
|
|
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 = (h = n.locale) == null ? void 0 : h.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: {},
|
|
@@ -2286,34 +2297,38 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2286
2297
|
minlength: {},
|
|
2287
2298
|
errorMessage: {},
|
|
2288
2299
|
validMessage: {},
|
|
2289
|
-
prefixIcon: {}
|
|
2300
|
+
prefixIcon: {},
|
|
2301
|
+
width: {}
|
|
2290
2302
|
},
|
|
2291
2303
|
emits: ["update:modelValue"],
|
|
2292
2304
|
setup(e, { emit: t }) {
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2305
|
+
te((h) => ({
|
|
2306
|
+
bbb0de5c: h.width
|
|
2307
|
+
}));
|
|
2308
|
+
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));
|
|
2309
|
+
function f(h) {
|
|
2310
|
+
if (!(a.type !== "date" && a.type !== "datetime-local" || h === void 0 || !Bt(h)))
|
|
2311
|
+
return AA(h, "yyyy-MM-dd");
|
|
2297
2312
|
}
|
|
2298
|
-
return (
|
|
2313
|
+
return (h, I) => (u(), g("div", {
|
|
2299
2314
|
class: F(["av-input", { "av-input--date": e.type === "date" }])
|
|
2300
2315
|
}, [
|
|
2301
|
-
y("div",
|
|
2302
|
-
e.prefixIcon ? (u(), g("div",
|
|
2303
|
-
P(
|
|
2316
|
+
y("div", oA, [
|
|
2317
|
+
e.prefixIcon ? (u(), g("div", lA, [
|
|
2318
|
+
P(ne, {
|
|
2304
2319
|
name: e.prefixIcon,
|
|
2305
2320
|
size: 1.2
|
|
2306
2321
|
}, null, 8, ["name"])
|
|
2307
2322
|
])) : O("", !0),
|
|
2308
|
-
P(
|
|
2309
|
-
id:
|
|
2323
|
+
P(o(ua), ee({
|
|
2324
|
+
id: o(l),
|
|
2310
2325
|
"model-value": e.modelValue,
|
|
2311
2326
|
label: e.label,
|
|
2312
2327
|
"label-visible": e.labelVisible,
|
|
2313
2328
|
"label-class": e.labelClass,
|
|
2314
2329
|
hint: e.hint,
|
|
2315
2330
|
"description-id": a.descriptionId,
|
|
2316
|
-
"is-invalid": s
|
|
2331
|
+
"is-invalid": o(s),
|
|
2317
2332
|
"is-valid": e.isValid,
|
|
2318
2333
|
"is-textarea": e.isTextarea,
|
|
2319
2334
|
"wrapper-class": "av-input__wrapper",
|
|
@@ -2323,9 +2338,9 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2323
2338
|
required: e.required,
|
|
2324
2339
|
maxlength: e.maxlength,
|
|
2325
2340
|
minlength: e.minlength
|
|
2326
|
-
},
|
|
2327
|
-
max:
|
|
2328
|
-
min:
|
|
2341
|
+
}, h.$attrs, {
|
|
2342
|
+
max: o(d),
|
|
2343
|
+
min: o(c),
|
|
2329
2344
|
"onUpdate:modelValue": I[0] || (I[0] = (m) => n("update:modelValue", m))
|
|
2330
2345
|
}), Le({ _: 2 }, [
|
|
2331
2346
|
r.requiredTip ? {
|
|
@@ -2336,35 +2351,35 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2336
2351
|
key: "0"
|
|
2337
2352
|
} : void 0
|
|
2338
2353
|
]), 1040, ["id", "model-value", "label", "label-visible", "label-class", "hint", "description-id", "is-invalid", "is-valid", "is-textarea", "placeholder", "type", "disabled", "required", "maxlength", "minlength", "max", "min"]),
|
|
2339
|
-
B(
|
|
2354
|
+
B(h.$slots, "customCaptions", {
|
|
2340
2355
|
currentValue: e.modelValue,
|
|
2341
2356
|
maxlength: e.maxlength
|
|
2342
2357
|
}, () => {
|
|
2343
2358
|
var m;
|
|
2344
2359
|
return [
|
|
2345
|
-
e.maxlength ? (u(), g("span",
|
|
2360
|
+
e.maxlength ? (u(), g("span", sA, Z((m = e.modelValue) == null ? void 0 : m.toString().length) + " / " + Z(e.maxlength), 1)) : O("", !0)
|
|
2346
2361
|
];
|
|
2347
2362
|
}, !0)
|
|
2348
2363
|
]),
|
|
2349
|
-
|
|
2350
|
-
(u(!0), g(_, null,
|
|
2364
|
+
o(i).length > 0 ? (u(), g("div", cA, [
|
|
2365
|
+
(u(!0), g(_, null, re(o(i), (m, C) => (u(), g("div", {
|
|
2351
2366
|
key: C,
|
|
2352
2367
|
class: "av-input__error-message"
|
|
2353
2368
|
}, Z(m), 1))), 128))
|
|
2354
2369
|
])) : O("", !0),
|
|
2355
|
-
|
|
2356
|
-
(u(!0), g(_, null,
|
|
2370
|
+
o(A).length > 0 ? (u(), g("div", uA, [
|
|
2371
|
+
(u(!0), g(_, null, re(o(A), (m, C) => (u(), g("div", {
|
|
2357
2372
|
key: C,
|
|
2358
2373
|
class: "av-input__valid-message"
|
|
2359
2374
|
}, Z(m), 1))), 128))
|
|
2360
2375
|
])) : O("", !0)
|
|
2361
2376
|
], 2));
|
|
2362
2377
|
}
|
|
2363
|
-
}),
|
|
2378
|
+
}), fA = /* @__PURE__ */ V(dA, [["__scopeId", "data-v-055da9a3"]]), Ll = {
|
|
2364
2379
|
name: "AvList",
|
|
2365
2380
|
props: ["size"],
|
|
2366
2381
|
template: '<div class="av-list"><slot /></div>'
|
|
2367
|
-
},
|
|
2382
|
+
}, vA = ["role", "aria-label", "aria-labelledby", "aria-describedby"], mA = /* @__PURE__ */ S({
|
|
2368
2383
|
__name: "AvList",
|
|
2369
2384
|
props: {
|
|
2370
2385
|
backgroundColor: { default: "transparent" },
|
|
@@ -2380,7 +2395,7 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2380
2395
|
role: { default: "list" }
|
|
2381
2396
|
},
|
|
2382
2397
|
setup(e) {
|
|
2383
|
-
|
|
2398
|
+
te((r) => ({
|
|
2384
2399
|
v667a1c12: r.backgroundColor,
|
|
2385
2400
|
v4da6b808: r.borderRadius,
|
|
2386
2401
|
v61717933: r.padding,
|
|
@@ -2388,30 +2403,30 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2388
2403
|
}));
|
|
2389
2404
|
const t = p(() => `av-list--${e.size}`), a = p(() => e.bordered ? "av-list--bordered" : ""), n = p(() => e.divided ? "av-list--divided" : "");
|
|
2390
2405
|
return (r, i) => (u(), g("div", {
|
|
2391
|
-
class: F(["av-list", [
|
|
2406
|
+
class: F(["av-list", [o(t), o(a), o(n)]]),
|
|
2392
2407
|
role: e.role,
|
|
2393
2408
|
"aria-label": e.ariaLabel,
|
|
2394
2409
|
"aria-labelledby": e.ariaLabelledby,
|
|
2395
2410
|
"aria-describedby": e.ariaDescribedby
|
|
2396
2411
|
}, [
|
|
2397
2412
|
B(r.$slots, "default", {}, void 0, !0)
|
|
2398
|
-
], 10,
|
|
2413
|
+
], 10, vA));
|
|
2399
2414
|
}
|
|
2400
|
-
}),
|
|
2415
|
+
}), Vt = /* @__PURE__ */ V(mA, [["__scopeId", "data-v-f74989f7"]]), Sl = {
|
|
2401
2416
|
name: "AvListItem",
|
|
2402
2417
|
props: ["clickable", "hoverBackgroundColor", "selected", "icon", "iconSize", "iconColor", "colorOnHover"],
|
|
2403
2418
|
emits: ["click"],
|
|
2404
2419
|
template: `<div class="av-list-item-stub" @click="$emit('click')"><slot /></div>`
|
|
2405
|
-
},
|
|
2420
|
+
}, gA = ["role"], IA = {
|
|
2406
2421
|
key: 0,
|
|
2407
2422
|
class: "av-list-item__icon"
|
|
2408
|
-
},
|
|
2423
|
+
}, hA = { class: "av-list-item__content" }, bA = {
|
|
2409
2424
|
key: 0,
|
|
2410
2425
|
class: "av-list-item__title"
|
|
2411
|
-
},
|
|
2426
|
+
}, CA = {
|
|
2412
2427
|
key: 1,
|
|
2413
2428
|
class: "av-list-item__description"
|
|
2414
|
-
},
|
|
2429
|
+
}, yA = { key: 2 }, EA = /* @__PURE__ */ S({
|
|
2415
2430
|
__name: "AvListItem",
|
|
2416
2431
|
props: {
|
|
2417
2432
|
icon: {},
|
|
@@ -2436,7 +2451,7 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2436
2451
|
role: { default: "listitem" }
|
|
2437
2452
|
},
|
|
2438
2453
|
setup(e) {
|
|
2439
|
-
|
|
2454
|
+
te((c) => ({
|
|
2440
2455
|
v2a637eba: c.colorOnHover,
|
|
2441
2456
|
v09ecd263: c.color,
|
|
2442
2457
|
v479455c7: c.descriptionColor,
|
|
@@ -2458,49 +2473,42 @@ const AA = { class: "av-input__wrapper" }, iA = {
|
|
|
2458
2473
|
(d = e.onClick) == null || d.call(e, f);
|
|
2459
2474
|
}
|
|
2460
2475
|
}
|
|
2461
|
-
const A = p(() => e.clickable ? "av-list-item--clickable" : ""),
|
|
2476
|
+
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
2477
|
return (c, d) => (u(), g("div", { role: e.role }, [
|
|
2463
|
-
(u(), x(ue(
|
|
2464
|
-
class: F(["av-list-item", [
|
|
2478
|
+
(u(), x(ue(o(a)), {
|
|
2479
|
+
class: F(["av-list-item", [o(A), o(l), o(s)]]),
|
|
2465
2480
|
tabindex: e.clickable && !e.disabled ? 0 : void 0,
|
|
2466
|
-
"aria-label": e.clickable ?
|
|
2481
|
+
"aria-label": e.clickable ? o(n) : void 0,
|
|
2467
2482
|
"aria-describedby": e.ariaDescribedby,
|
|
2468
2483
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
2469
|
-
disabled: e.disabled &&
|
|
2470
|
-
href:
|
|
2471
|
-
target:
|
|
2472
|
-
rel:
|
|
2484
|
+
disabled: e.disabled && o(a) === "button" ? !0 : void 0,
|
|
2485
|
+
href: o(a) === "a" ? e.href : void 0,
|
|
2486
|
+
target: o(a) === "a" ? e.target : void 0,
|
|
2487
|
+
rel: o(a) === "a" ? e.rel : void 0,
|
|
2473
2488
|
onClick: r,
|
|
2474
2489
|
onKeydown: i
|
|
2475
2490
|
}, {
|
|
2476
2491
|
default: Y(() => [
|
|
2477
|
-
e.icon ? (u(), g("div",
|
|
2478
|
-
P(
|
|
2492
|
+
e.icon ? (u(), g("div", IA, [
|
|
2493
|
+
P(ne, {
|
|
2479
2494
|
name: e.icon,
|
|
2480
2495
|
color: e.iconColor ?? e.color,
|
|
2481
2496
|
size: e.iconSize
|
|
2482
2497
|
}, null, 8, ["name", "color", "size"])
|
|
2483
2498
|
])) : O("", !0),
|
|
2484
|
-
y("div",
|
|
2485
|
-
e.title ? (u(), g("div",
|
|
2486
|
-
e.description ? (u(), g("div",
|
|
2487
|
-
t.default ? (u(), g("div",
|
|
2499
|
+
y("div", hA, [
|
|
2500
|
+
e.title ? (u(), g("div", bA, Z(e.title), 1)) : O("", !0),
|
|
2501
|
+
e.description ? (u(), g("div", CA, Z(e.description), 1)) : O("", !0),
|
|
2502
|
+
t.default ? (u(), g("div", yA, [
|
|
2488
2503
|
B(c.$slots, "default", {}, void 0, !0)
|
|
2489
2504
|
])) : O("", !0)
|
|
2490
2505
|
])
|
|
2491
2506
|
]),
|
|
2492
2507
|
_: 3
|
|
2493
2508
|
}, 40, ["class", "tabindex", "aria-label", "aria-describedby", "aria-disabled", "disabled", "href", "target", "rel"]))
|
|
2494
|
-
], 8,
|
|
2509
|
+
], 8, gA));
|
|
2495
2510
|
}
|
|
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({
|
|
2511
|
+
}), Ut = /* @__PURE__ */ V(EA, [["__scopeId", "data-v-b9106d17"]]), MA = { class: "av-select-container" }, pA = /* @__PURE__ */ S({
|
|
2504
2512
|
__name: "AvTagPicker",
|
|
2505
2513
|
props: {
|
|
2506
2514
|
multiple: { type: Boolean },
|
|
@@ -2512,8 +2520,8 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2512
2520
|
labelTypographyClass: { default: "b2-regular" }
|
|
2513
2521
|
},
|
|
2514
2522
|
setup(e) {
|
|
2515
|
-
|
|
2516
|
-
v68aa0dfa:
|
|
2523
|
+
te((C) => ({
|
|
2524
|
+
v68aa0dfa: o(n)
|
|
2517
2525
|
}));
|
|
2518
2526
|
const t = e, {
|
|
2519
2527
|
label: a,
|
|
@@ -2521,8 +2529,8 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2521
2529
|
labelTypographyClass: r,
|
|
2522
2530
|
selected: i,
|
|
2523
2531
|
multiple: A,
|
|
2524
|
-
handleSelectChange:
|
|
2525
|
-
} = t,
|
|
2532
|
+
handleSelectChange: l
|
|
2533
|
+
} = t, s = p(() => Xa(t.options));
|
|
2526
2534
|
function c(C) {
|
|
2527
2535
|
return C ? Array.isArray(C) ? C : [C] : [];
|
|
2528
2536
|
}
|
|
@@ -2530,10 +2538,10 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2530
2538
|
function f(C) {
|
|
2531
2539
|
return d.value.some((M) => M.value === C.value);
|
|
2532
2540
|
}
|
|
2533
|
-
function
|
|
2541
|
+
function h(C) {
|
|
2534
2542
|
A ? (f(C) ? d.value = d.value.filter(
|
|
2535
2543
|
(T) => T.value !== C.value
|
|
2536
|
-
) : d.value.push(C),
|
|
2544
|
+
) : d.value.push(C), l([...d.value])) : (d.value = [C], l(C));
|
|
2537
2545
|
}
|
|
2538
2546
|
function I(C) {
|
|
2539
2547
|
return f(C) ? R.CHECK : void 0;
|
|
@@ -2544,13 +2552,13 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2544
2552
|
return ce(() => t.selected, (C) => {
|
|
2545
2553
|
d.value = c(C);
|
|
2546
2554
|
}, { immediate: !0 }), (C, M) => {
|
|
2547
|
-
const T =
|
|
2548
|
-
return u(), g("div",
|
|
2549
|
-
|
|
2555
|
+
const T = da;
|
|
2556
|
+
return u(), g("div", MA, [
|
|
2557
|
+
o(a) ? (u(), g("span", {
|
|
2550
2558
|
key: 0,
|
|
2551
|
-
class: F(["av-select-label", [
|
|
2552
|
-
}, Z(
|
|
2553
|
-
(u(!0), g(_, null,
|
|
2559
|
+
class: F(["av-select-label", [o(r)]])
|
|
2560
|
+
}, Z(o(a)), 3)) : O("", !0),
|
|
2561
|
+
(u(!0), g(_, null, re(o(s), (Q) => (u(), g("div", {
|
|
2554
2562
|
key: Q.value,
|
|
2555
2563
|
class: "tag-wrapper"
|
|
2556
2564
|
}, [
|
|
@@ -2564,20 +2572,20 @@ const EA = { class: "av-select-container" }, MA = /* @__PURE__ */ S({
|
|
|
2564
2572
|
disabled: m(Q),
|
|
2565
2573
|
selectable: "",
|
|
2566
2574
|
selected: f(Q),
|
|
2567
|
-
onSelect: () =>
|
|
2575
|
+
onSelect: () => h(Q)
|
|
2568
2576
|
}, null, 8, ["class", "label", "icon", "disabled", "selected", "onSelect"])
|
|
2569
2577
|
]))), 128))
|
|
2570
2578
|
]);
|
|
2571
2579
|
};
|
|
2572
2580
|
}
|
|
2573
|
-
}),
|
|
2574
|
-
var
|
|
2575
|
-
const
|
|
2581
|
+
}), NA = /* @__PURE__ */ V(pA, [["__scopeId", "data-v-b70ffc0f"]]);
|
|
2582
|
+
var Xt = /* @__PURE__ */ ((e) => (e[e.FOUR = 4] = "FOUR", e[e.EIGHT = 8] = "EIGHT", e[e.TWELVE = 12] = "TWELVE", e))(Xt || {});
|
|
2583
|
+
const kl = [
|
|
2576
2584
|
4,
|
|
2577
2585
|
8,
|
|
2578
2586
|
12
|
|
2579
2587
|
/* TWELVE */
|
|
2580
|
-
],
|
|
2588
|
+
], TA = { class: "pagination-size-picker-container" }, QA = /* @__PURE__ */ S({
|
|
2581
2589
|
__name: "AvPageSizePicker",
|
|
2582
2590
|
props: {
|
|
2583
2591
|
label: {},
|
|
@@ -2585,17 +2593,17 @@ const Sl = [
|
|
|
2585
2593
|
handleSelectChange: { type: Function }
|
|
2586
2594
|
},
|
|
2587
2595
|
setup(e) {
|
|
2588
|
-
const t = p(() => Object.values(
|
|
2596
|
+
const t = p(() => Object.values(Xt).filter((n) => typeof n == "number").map((n) => ({
|
|
2589
2597
|
label: n.toString(),
|
|
2590
2598
|
value: n.toString()
|
|
2591
2599
|
}))), a = p(() => ({
|
|
2592
2600
|
label: e.pageSizeSelected.toString(),
|
|
2593
2601
|
value: e.pageSizeSelected.toString()
|
|
2594
2602
|
}));
|
|
2595
|
-
return (n, r) => (u(), g("div",
|
|
2596
|
-
P(
|
|
2597
|
-
options:
|
|
2598
|
-
selected:
|
|
2603
|
+
return (n, r) => (u(), g("div", TA, [
|
|
2604
|
+
P(NA, {
|
|
2605
|
+
options: o(t),
|
|
2606
|
+
selected: o(a),
|
|
2599
2607
|
"handle-select-change": e.handleSelectChange,
|
|
2600
2608
|
multiple: !1,
|
|
2601
2609
|
label: e.label,
|
|
@@ -2604,7 +2612,7 @@ const Sl = [
|
|
|
2604
2612
|
}, null, 8, ["options", "selected", "handle-select-change", "label"])
|
|
2605
2613
|
]));
|
|
2606
2614
|
}
|
|
2607
|
-
}),
|
|
2615
|
+
}), zl = /* @__PURE__ */ V(QA, [["__scopeId", "data-v-d72fe5ab"]]), xl = {
|
|
2608
2616
|
name: "AvTagPicker",
|
|
2609
2617
|
props: [
|
|
2610
2618
|
"label",
|
|
@@ -2624,7 +2632,7 @@ const Sl = [
|
|
|
2624
2632
|
</button>
|
|
2625
2633
|
</div>
|
|
2626
2634
|
`
|
|
2627
|
-
},
|
|
2635
|
+
}, DA = /* @__PURE__ */ S({
|
|
2628
2636
|
__name: "AvRadioButton",
|
|
2629
2637
|
props: {
|
|
2630
2638
|
value: { type: [String, Number, Boolean] },
|
|
@@ -2635,7 +2643,7 @@ const Sl = [
|
|
|
2635
2643
|
setup(e) {
|
|
2636
2644
|
return (t, a) => B(t.$slots, "default");
|
|
2637
2645
|
}
|
|
2638
|
-
}),
|
|
2646
|
+
}), jl = /* @__PURE__ */ S({
|
|
2639
2647
|
__name: "AvRadioButtonSet",
|
|
2640
2648
|
props: {
|
|
2641
2649
|
name: {},
|
|
@@ -2653,29 +2661,29 @@ const Sl = [
|
|
|
2653
2661
|
setup(e, { expose: t, emit: a }) {
|
|
2654
2662
|
const n = e, r = a, i = ie();
|
|
2655
2663
|
function A(d) {
|
|
2656
|
-
return d != null && typeof d == "object" && "type" in d && d.type ===
|
|
2664
|
+
return d != null && typeof d == "object" && "type" in d && d.type === DA;
|
|
2657
2665
|
}
|
|
2658
|
-
function
|
|
2659
|
-
return d ? d.flatMap((f) => !f || typeof f != "object" || !("type" in f) ? [] : f.type === _ && Array.isArray(f.children) ?
|
|
2666
|
+
function l(d) {
|
|
2667
|
+
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
2668
|
}
|
|
2661
|
-
const
|
|
2669
|
+
const s = p(() => {
|
|
2662
2670
|
var d;
|
|
2663
|
-
return
|
|
2671
|
+
return l((d = i.default) == null ? void 0 : d.call(i));
|
|
2664
2672
|
}), c = J(n.modelValue);
|
|
2665
2673
|
return ce(() => n.modelValue, (d) => {
|
|
2666
2674
|
c.value = d;
|
|
2667
2675
|
}), ce(c, (d) => {
|
|
2668
2676
|
d && r("update:modelValue", d);
|
|
2669
|
-
}), t({ selected: c }), (d, f) => (u(), x(
|
|
2677
|
+
}), t({ selected: c }), (d, f) => (u(), x(o(fa), ee(n, { "model-value": o(c) }), {
|
|
2670
2678
|
default: Y(() => [
|
|
2671
|
-
(u(!0), g(_, null,
|
|
2679
|
+
(u(!0), g(_, null, re(o(s), (h, I) => {
|
|
2672
2680
|
var m, C;
|
|
2673
|
-
return u(), x(
|
|
2681
|
+
return u(), x(o(va), {
|
|
2674
2682
|
key: I,
|
|
2675
|
-
modelValue:
|
|
2676
|
-
"onUpdate:modelValue": f[0] || (f[0] = (M) =>
|
|
2677
|
-
value: (m =
|
|
2678
|
-
disabled: ((C =
|
|
2683
|
+
modelValue: o(c),
|
|
2684
|
+
"onUpdate:modelValue": f[0] || (f[0] = (M) => At(c) ? c.value = M : null),
|
|
2685
|
+
value: (m = h.props) == null ? void 0 : m.value,
|
|
2686
|
+
disabled: ((C = h.props) == null ? void 0 : C.disabled) ?? n.disabled,
|
|
2679
2687
|
small: n.small,
|
|
2680
2688
|
inline: n.inline,
|
|
2681
2689
|
name: n.name
|
|
@@ -2683,7 +2691,7 @@ const Sl = [
|
|
|
2683
2691
|
label: Y(() => {
|
|
2684
2692
|
var M;
|
|
2685
2693
|
return [
|
|
2686
|
-
(u(), x(ue((M =
|
|
2694
|
+
(u(), x(ue((M = h.children) == null ? void 0 : M.default)))
|
|
2687
2695
|
];
|
|
2688
2696
|
}),
|
|
2689
2697
|
_: 2
|
|
@@ -2693,7 +2701,7 @@ const Sl = [
|
|
|
2693
2701
|
_: 1
|
|
2694
2702
|
}, 16, ["model-value"]));
|
|
2695
2703
|
}
|
|
2696
|
-
}),
|
|
2704
|
+
}), Bl = {
|
|
2697
2705
|
name: "AvAutocomplete",
|
|
2698
2706
|
props: [
|
|
2699
2707
|
"modelValue",
|
|
@@ -2711,21 +2719,21 @@ const Sl = [
|
|
|
2711
2719
|
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
2720
|
};
|
|
2713
2721
|
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 =
|
|
2722
|
+
const Ht = Symbol("AvAutocompleteContext");
|
|
2723
|
+
function lt() {
|
|
2724
|
+
const e = Na(Ht);
|
|
2717
2725
|
if (!e)
|
|
2718
2726
|
throw new Error("useAutocompleteContext must be used within AvAutocomplete component");
|
|
2719
2727
|
return e;
|
|
2720
2728
|
}
|
|
2721
|
-
function
|
|
2722
|
-
return
|
|
2729
|
+
function Zt(e) {
|
|
2730
|
+
return Ta() ? (Qa(e), !0) : !1;
|
|
2723
2731
|
}
|
|
2724
|
-
const
|
|
2732
|
+
const OA = typeof window < "u" && typeof document < "u";
|
|
2725
2733
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2726
|
-
const
|
|
2734
|
+
const wA = (e) => e != null, LA = Object.prototype.toString, SA = (e) => LA.call(e) === "[object Object]", pe = () => {
|
|
2727
2735
|
};
|
|
2728
|
-
function
|
|
2736
|
+
function qt(e, t) {
|
|
2729
2737
|
function a(...n) {
|
|
2730
2738
|
return new Promise((r, i) => {
|
|
2731
2739
|
Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(r).catch(i);
|
|
@@ -2733,62 +2741,62 @@ function Zt(e, t) {
|
|
|
2733
2741
|
}
|
|
2734
2742
|
return a;
|
|
2735
2743
|
}
|
|
2736
|
-
function
|
|
2744
|
+
function kA(e, t = {}) {
|
|
2737
2745
|
let a, n, r = pe;
|
|
2738
|
-
const i = (
|
|
2739
|
-
clearTimeout(
|
|
2746
|
+
const i = (s) => {
|
|
2747
|
+
clearTimeout(s), r(), r = pe;
|
|
2740
2748
|
};
|
|
2741
2749
|
let A;
|
|
2742
|
-
return (
|
|
2743
|
-
const c =
|
|
2744
|
-
return a && i(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = void 0), Promise.resolve(
|
|
2745
|
-
r = t.rejectOnCancel ?
|
|
2750
|
+
return (s) => {
|
|
2751
|
+
const c = ae(e), d = ae(t.maxWait);
|
|
2752
|
+
return a && i(a), c <= 0 || d !== void 0 && d <= 0 ? (n && (i(n), n = void 0), Promise.resolve(s())) : new Promise((f, h) => {
|
|
2753
|
+
r = t.rejectOnCancel ? h : f, A = s, d && !n && (n = setTimeout(() => {
|
|
2746
2754
|
a && i(a), n = void 0, f(A());
|
|
2747
2755
|
}, d)), a = setTimeout(() => {
|
|
2748
|
-
n && i(n), n = void 0, f(
|
|
2756
|
+
n && i(n), n = void 0, f(s());
|
|
2749
2757
|
}, c);
|
|
2750
2758
|
});
|
|
2751
2759
|
};
|
|
2752
2760
|
}
|
|
2753
|
-
function
|
|
2754
|
-
let t = 0, a, n = !0, r = pe, i, A,
|
|
2755
|
-
!
|
|
2761
|
+
function zA(...e) {
|
|
2762
|
+
let t = 0, a, n = !0, r = pe, i, A, l, s, c;
|
|
2763
|
+
!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
2764
|
const d = () => {
|
|
2757
2765
|
a && (clearTimeout(a), a = void 0, r(), r = pe);
|
|
2758
2766
|
};
|
|
2759
|
-
return (
|
|
2760
|
-
const I =
|
|
2761
|
-
return d(), I <= 0 ? (t = Date.now(), C()) : (m > I && (
|
|
2767
|
+
return (h) => {
|
|
2768
|
+
const I = ae(A), m = Date.now() - t, C = () => i = h();
|
|
2769
|
+
return d(), I <= 0 ? (t = Date.now(), C()) : (m > I && (s || !n) ? (t = Date.now(), C()) : l && (i = new Promise((M, T) => {
|
|
2762
2770
|
r = c ? T : M, a = setTimeout(() => {
|
|
2763
2771
|
t = Date.now(), n = !0, M(C()), d();
|
|
2764
2772
|
}, Math.max(0, I - m));
|
|
2765
|
-
})), !
|
|
2773
|
+
})), !s && !a && (a = setTimeout(() => n = !0, I)), n = !1, i);
|
|
2766
2774
|
};
|
|
2767
2775
|
}
|
|
2768
2776
|
function We(e) {
|
|
2769
2777
|
return Array.isArray(e) ? e : [e];
|
|
2770
2778
|
}
|
|
2771
|
-
function
|
|
2772
|
-
return
|
|
2779
|
+
function xA(e) {
|
|
2780
|
+
return kt();
|
|
2773
2781
|
}
|
|
2774
2782
|
// @__NO_SIDE_EFFECTS__
|
|
2775
|
-
function
|
|
2776
|
-
return
|
|
2777
|
-
|
|
2783
|
+
function jA(e, t = 200, a = {}) {
|
|
2784
|
+
return qt(
|
|
2785
|
+
kA(t, a),
|
|
2778
2786
|
e
|
|
2779
2787
|
);
|
|
2780
2788
|
}
|
|
2781
2789
|
// @__NO_SIDE_EFFECTS__
|
|
2782
|
-
function
|
|
2783
|
-
return
|
|
2784
|
-
|
|
2790
|
+
function BA(e, t = 200, a = !1, n = !0, r = !1) {
|
|
2791
|
+
return qt(
|
|
2792
|
+
zA(t, a, n, r),
|
|
2785
2793
|
e
|
|
2786
2794
|
);
|
|
2787
2795
|
}
|
|
2788
|
-
function
|
|
2789
|
-
|
|
2796
|
+
function PA(e, t = !0, a) {
|
|
2797
|
+
xA() ? xe(e, a) : t ? e() : Re(e);
|
|
2790
2798
|
}
|
|
2791
|
-
function
|
|
2799
|
+
function WA(e, t, a) {
|
|
2792
2800
|
return ce(
|
|
2793
2801
|
e,
|
|
2794
2802
|
t,
|
|
@@ -2798,37 +2806,37 @@ function PA(e, t, a) {
|
|
|
2798
2806
|
}
|
|
2799
2807
|
);
|
|
2800
2808
|
}
|
|
2801
|
-
const
|
|
2802
|
-
function
|
|
2809
|
+
const st = OA ? window : void 0;
|
|
2810
|
+
function ct(e) {
|
|
2803
2811
|
var t;
|
|
2804
|
-
const a =
|
|
2812
|
+
const a = ae(e);
|
|
2805
2813
|
return (t = a == null ? void 0 : a.$el) != null ? t : a;
|
|
2806
2814
|
}
|
|
2807
|
-
function
|
|
2815
|
+
function yt(...e) {
|
|
2808
2816
|
const t = [], a = () => {
|
|
2809
|
-
t.forEach((
|
|
2810
|
-
}, n = (
|
|
2811
|
-
const
|
|
2812
|
-
return
|
|
2813
|
-
}), i =
|
|
2817
|
+
t.forEach((l) => l()), t.length = 0;
|
|
2818
|
+
}, n = (l, s, c, d) => (l.addEventListener(s, c, d), () => l.removeEventListener(s, c, d)), r = p(() => {
|
|
2819
|
+
const l = We(ae(e[0])).filter((s) => s != null);
|
|
2820
|
+
return l.every((s) => typeof s != "string") ? l : void 0;
|
|
2821
|
+
}), i = WA(
|
|
2814
2822
|
() => {
|
|
2815
|
-
var
|
|
2823
|
+
var l, s;
|
|
2816
2824
|
return [
|
|
2817
|
-
(
|
|
2818
|
-
We(
|
|
2819
|
-
We(
|
|
2825
|
+
(s = (l = r.value) == null ? void 0 : l.map((c) => ct(c))) != null ? s : [st].filter((c) => c != null),
|
|
2826
|
+
We(ae(r.value ? e[1] : e[0])),
|
|
2827
|
+
We(o(r.value ? e[2] : e[1])),
|
|
2820
2828
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
2821
|
-
|
|
2829
|
+
ae(r.value ? e[3] : e[2])
|
|
2822
2830
|
];
|
|
2823
2831
|
},
|
|
2824
|
-
([
|
|
2825
|
-
if (a(), !(
|
|
2832
|
+
([l, s, c, d]) => {
|
|
2833
|
+
if (a(), !(l != null && l.length) || !(s != null && s.length) || !(c != null && c.length))
|
|
2826
2834
|
return;
|
|
2827
|
-
const f =
|
|
2835
|
+
const f = SA(d) ? { ...d } : d;
|
|
2828
2836
|
t.push(
|
|
2829
|
-
...
|
|
2830
|
-
(
|
|
2831
|
-
(I) => c.map((m) => n(
|
|
2837
|
+
...l.flatMap(
|
|
2838
|
+
(h) => s.flatMap(
|
|
2839
|
+
(I) => c.map((m) => n(h, I, m, f))
|
|
2832
2840
|
)
|
|
2833
2841
|
)
|
|
2834
2842
|
);
|
|
@@ -2837,45 +2845,45 @@ function Ct(...e) {
|
|
|
2837
2845
|
), A = () => {
|
|
2838
2846
|
i(), a();
|
|
2839
2847
|
};
|
|
2840
|
-
return
|
|
2848
|
+
return Zt(a), A;
|
|
2841
2849
|
}
|
|
2842
2850
|
// @__NO_SIDE_EFFECTS__
|
|
2843
|
-
function
|
|
2844
|
-
const e = Pe(!1), t =
|
|
2851
|
+
function VA() {
|
|
2852
|
+
const e = Pe(!1), t = kt();
|
|
2845
2853
|
return t && xe(() => {
|
|
2846
2854
|
e.value = !0;
|
|
2847
2855
|
}, t), e;
|
|
2848
2856
|
}
|
|
2849
2857
|
// @__NO_SIDE_EFFECTS__
|
|
2850
|
-
function
|
|
2851
|
-
const t = /* @__PURE__ */
|
|
2858
|
+
function UA(e) {
|
|
2859
|
+
const t = /* @__PURE__ */ VA();
|
|
2852
2860
|
return p(() => (t.value, !!e()));
|
|
2853
2861
|
}
|
|
2854
|
-
function
|
|
2855
|
-
const { window: n =
|
|
2862
|
+
function XA(e, t, a = {}) {
|
|
2863
|
+
const { window: n = st, ...r } = a;
|
|
2856
2864
|
let i;
|
|
2857
|
-
const A = /* @__PURE__ */
|
|
2865
|
+
const A = /* @__PURE__ */ UA(() => n && "MutationObserver" in n), l = () => {
|
|
2858
2866
|
i && (i.disconnect(), i = void 0);
|
|
2859
|
-
},
|
|
2860
|
-
const
|
|
2867
|
+
}, s = p(() => {
|
|
2868
|
+
const h = ae(e), I = We(h).map(ct).filter(wA);
|
|
2861
2869
|
return new Set(I);
|
|
2862
2870
|
}), c = ce(
|
|
2863
|
-
|
|
2864
|
-
(
|
|
2865
|
-
|
|
2871
|
+
s,
|
|
2872
|
+
(h) => {
|
|
2873
|
+
l(), A.value && h.size && (i = new MutationObserver(t), h.forEach((I) => i.observe(I, r)));
|
|
2866
2874
|
},
|
|
2867
2875
|
{ immediate: !0, flush: "post" }
|
|
2868
2876
|
), d = () => i == null ? void 0 : i.takeRecords(), f = () => {
|
|
2869
|
-
c(),
|
|
2877
|
+
c(), l();
|
|
2870
2878
|
};
|
|
2871
|
-
return
|
|
2879
|
+
return Zt(f), {
|
|
2872
2880
|
isSupported: A,
|
|
2873
2881
|
stop: f,
|
|
2874
2882
|
takeRecords: d
|
|
2875
2883
|
};
|
|
2876
2884
|
}
|
|
2877
|
-
const
|
|
2878
|
-
function
|
|
2885
|
+
const Et = 1;
|
|
2886
|
+
function HA(e, t = {}) {
|
|
2879
2887
|
const {
|
|
2880
2888
|
throttle: a = 0,
|
|
2881
2889
|
idle: n = 200,
|
|
@@ -2887,21 +2895,21 @@ function XA(e, t = {}) {
|
|
|
2887
2895
|
top: 0,
|
|
2888
2896
|
bottom: 0
|
|
2889
2897
|
},
|
|
2890
|
-
observe:
|
|
2898
|
+
observe: l = {
|
|
2891
2899
|
mutation: !1
|
|
2892
2900
|
},
|
|
2893
|
-
eventListenerOptions:
|
|
2901
|
+
eventListenerOptions: s = {
|
|
2894
2902
|
capture: !1,
|
|
2895
2903
|
passive: !0
|
|
2896
2904
|
},
|
|
2897
2905
|
behavior: c = "auto",
|
|
2898
|
-
window: d =
|
|
2906
|
+
window: d = st,
|
|
2899
2907
|
onError: f = (w) => {
|
|
2900
2908
|
console.error(w);
|
|
2901
2909
|
}
|
|
2902
|
-
} = t,
|
|
2903
|
-
mutation:
|
|
2904
|
-
} :
|
|
2910
|
+
} = t, h = typeof l == "boolean" ? {
|
|
2911
|
+
mutation: l
|
|
2912
|
+
} : l, I = Pe(0), m = Pe(0), C = p({
|
|
2905
2913
|
get() {
|
|
2906
2914
|
return I.value;
|
|
2907
2915
|
},
|
|
@@ -2917,43 +2925,43 @@ function XA(e, t = {}) {
|
|
|
2917
2925
|
}
|
|
2918
2926
|
});
|
|
2919
2927
|
function T(w, oe) {
|
|
2920
|
-
var $, X, v,
|
|
2928
|
+
var $, X, v, b;
|
|
2921
2929
|
if (!d)
|
|
2922
2930
|
return;
|
|
2923
|
-
const N =
|
|
2931
|
+
const N = ae(e);
|
|
2924
2932
|
if (!N)
|
|
2925
2933
|
return;
|
|
2926
2934
|
(v = N instanceof Document ? d.document.body : N) == null || v.scrollTo({
|
|
2927
|
-
top: ($ =
|
|
2928
|
-
left: (X =
|
|
2929
|
-
behavior:
|
|
2935
|
+
top: ($ = ae(oe)) != null ? $ : M.value,
|
|
2936
|
+
left: (X = ae(w)) != null ? X : C.value,
|
|
2937
|
+
behavior: ae(c)
|
|
2930
2938
|
});
|
|
2931
|
-
const k = ((
|
|
2939
|
+
const k = ((b = N == null ? void 0 : N.document) == null ? void 0 : b.documentElement) || (N == null ? void 0 : N.documentElement) || N;
|
|
2932
2940
|
C != null && (I.value = k.scrollLeft), M != null && (m.value = k.scrollTop);
|
|
2933
2941
|
}
|
|
2934
|
-
const Q = Pe(!1), E =
|
|
2942
|
+
const Q = Pe(!1), E = dt({
|
|
2935
2943
|
left: !0,
|
|
2936
2944
|
right: !1,
|
|
2937
2945
|
top: !0,
|
|
2938
2946
|
bottom: !1
|
|
2939
|
-
}), D =
|
|
2947
|
+
}), D = dt({
|
|
2940
2948
|
left: !1,
|
|
2941
2949
|
right: !1,
|
|
2942
2950
|
top: !1,
|
|
2943
2951
|
bottom: !1
|
|
2944
2952
|
}), j = (w) => {
|
|
2945
2953
|
Q.value && (Q.value = !1, D.left = !1, D.right = !1, D.top = !1, D.bottom = !1, r(w));
|
|
2946
|
-
}, W = /* @__PURE__ */
|
|
2954
|
+
}, W = /* @__PURE__ */ jA(j, a + n), z = (w) => {
|
|
2947
2955
|
var oe;
|
|
2948
2956
|
if (!d)
|
|
2949
2957
|
return;
|
|
2950
|
-
const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) ||
|
|
2958
|
+
const $ = ((oe = w == null ? void 0 : w.document) == null ? void 0 : oe.documentElement) || (w == null ? void 0 : w.documentElement) || ct(w), { display: X, flexDirection: v, direction: b } = getComputedStyle($), N = b === "rtl" ? -1 : 1, k = $.scrollLeft;
|
|
2951
2959
|
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) -
|
|
2960
|
+
const U = Math.abs(k * N) <= (A.left || 0), q = Math.abs(k * N) + $.clientWidth >= $.scrollWidth - (A.right || 0) - Et;
|
|
2953
2961
|
X === "flex" && v === "row-reverse" ? (E.left = q, E.right = U) : (E.left = U, E.right = q), I.value = k;
|
|
2954
2962
|
let L = $.scrollTop;
|
|
2955
2963
|
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) -
|
|
2964
|
+
const K = Math.abs(L) <= (A.top || 0), G = Math.abs(L) + $.clientHeight >= $.scrollHeight - (A.bottom || 0) - Et;
|
|
2957
2965
|
X === "flex" && v === "column-reverse" ? (E.top = G, E.bottom = K) : (E.top = K, E.bottom = G), m.value = L;
|
|
2958
2966
|
}, Ae = (w) => {
|
|
2959
2967
|
var oe;
|
|
@@ -2962,24 +2970,24 @@ function XA(e, t = {}) {
|
|
|
2962
2970
|
const $ = (oe = w.target.documentElement) != null ? oe : w.target;
|
|
2963
2971
|
z($), Q.value = !0, W(w), i(w);
|
|
2964
2972
|
};
|
|
2965
|
-
return
|
|
2973
|
+
return yt(
|
|
2966
2974
|
e,
|
|
2967
2975
|
"scroll",
|
|
2968
|
-
a ? /* @__PURE__ */
|
|
2969
|
-
|
|
2970
|
-
),
|
|
2976
|
+
a ? /* @__PURE__ */ BA(Ae, a, !0, !1) : Ae,
|
|
2977
|
+
s
|
|
2978
|
+
), PA(() => {
|
|
2971
2979
|
try {
|
|
2972
|
-
const w =
|
|
2980
|
+
const w = ae(e);
|
|
2973
2981
|
if (!w)
|
|
2974
2982
|
return;
|
|
2975
2983
|
z(w);
|
|
2976
2984
|
} catch (w) {
|
|
2977
2985
|
f(w);
|
|
2978
2986
|
}
|
|
2979
|
-
}),
|
|
2987
|
+
}), h != null && h.mutation && e != null && e !== d && e !== document && XA(
|
|
2980
2988
|
e,
|
|
2981
2989
|
() => {
|
|
2982
|
-
const w =
|
|
2990
|
+
const w = ae(e);
|
|
2983
2991
|
w && z(w);
|
|
2984
2992
|
},
|
|
2985
2993
|
{
|
|
@@ -2987,11 +2995,11 @@ function XA(e, t = {}) {
|
|
|
2987
2995
|
childList: !0,
|
|
2988
2996
|
subtree: !0
|
|
2989
2997
|
}
|
|
2990
|
-
),
|
|
2998
|
+
), yt(
|
|
2991
2999
|
e,
|
|
2992
3000
|
"scrollend",
|
|
2993
3001
|
j,
|
|
2994
|
-
|
|
3002
|
+
s
|
|
2995
3003
|
), {
|
|
2996
3004
|
x: C,
|
|
2997
3005
|
y: M,
|
|
@@ -2999,158 +3007,158 @@ function XA(e, t = {}) {
|
|
|
2999
3007
|
arrivedState: E,
|
|
3000
3008
|
directions: D,
|
|
3001
3009
|
measure() {
|
|
3002
|
-
const w =
|
|
3010
|
+
const w = ae(e);
|
|
3003
3011
|
d && w && z(w);
|
|
3004
3012
|
}
|
|
3005
3013
|
};
|
|
3006
3014
|
}
|
|
3007
|
-
var
|
|
3008
|
-
function
|
|
3009
|
-
var t =
|
|
3015
|
+
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;
|
|
3016
|
+
function FA(e) {
|
|
3017
|
+
var t = YA.call(e, Oe), a = e[Oe];
|
|
3010
3018
|
try {
|
|
3011
3019
|
e[Oe] = void 0;
|
|
3012
3020
|
var n = !0;
|
|
3013
3021
|
} catch {
|
|
3014
3022
|
}
|
|
3015
|
-
var r =
|
|
3023
|
+
var r = RA.call(e);
|
|
3016
3024
|
return n && (t ? e[Oe] = a : delete e[Oe]), r;
|
|
3017
3025
|
}
|
|
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);
|
|
3026
|
+
var KA = Object.prototype, GA = KA.toString;
|
|
3027
|
+
function JA(e) {
|
|
3028
|
+
return GA.call(e);
|
|
3025
3029
|
}
|
|
3030
|
+
var _A = "[object Null]", $A = "[object Undefined]", Mt = Xe ? Xe.toStringTag : void 0;
|
|
3026
3031
|
function ei(e) {
|
|
3032
|
+
return e == null ? e === void 0 ? $A : _A : Mt && Mt in Object(e) ? FA(e) : JA(e);
|
|
3033
|
+
}
|
|
3034
|
+
function ti(e) {
|
|
3027
3035
|
return e != null && typeof e == "object";
|
|
3028
3036
|
}
|
|
3029
|
-
var
|
|
3030
|
-
function
|
|
3031
|
-
return typeof e == "symbol" ||
|
|
3037
|
+
var ai = "[object Symbol]";
|
|
3038
|
+
function ni(e) {
|
|
3039
|
+
return typeof e == "symbol" || ti(e) && ei(e) == ai;
|
|
3032
3040
|
}
|
|
3033
|
-
var
|
|
3034
|
-
function
|
|
3035
|
-
for (var t = e.length; t-- &&
|
|
3041
|
+
var ri = /\s/;
|
|
3042
|
+
function Ai(e) {
|
|
3043
|
+
for (var t = e.length; t-- && ri.test(e.charAt(t)); )
|
|
3036
3044
|
;
|
|
3037
3045
|
return t;
|
|
3038
3046
|
}
|
|
3039
|
-
var
|
|
3040
|
-
function
|
|
3041
|
-
return e && e.slice(0,
|
|
3047
|
+
var ii = /^\s+/;
|
|
3048
|
+
function oi(e) {
|
|
3049
|
+
return e && e.slice(0, Ai(e) + 1).replace(ii, "");
|
|
3042
3050
|
}
|
|
3043
|
-
function
|
|
3051
|
+
function tt(e) {
|
|
3044
3052
|
var t = typeof e;
|
|
3045
3053
|
return e != null && (t == "object" || t == "function");
|
|
3046
3054
|
}
|
|
3047
|
-
var
|
|
3048
|
-
function
|
|
3055
|
+
var pt = NaN, li = /^[-+]0x[0-9a-f]+$/i, si = /^0b[01]+$/i, ci = /^0o[0-7]+$/i, ui = parseInt;
|
|
3056
|
+
function Nt(e) {
|
|
3049
3057
|
if (typeof e == "number")
|
|
3050
3058
|
return e;
|
|
3051
|
-
if (
|
|
3052
|
-
return
|
|
3053
|
-
if (
|
|
3059
|
+
if (ni(e))
|
|
3060
|
+
return pt;
|
|
3061
|
+
if (tt(e)) {
|
|
3054
3062
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
3055
|
-
e =
|
|
3063
|
+
e = tt(t) ? t + "" : t;
|
|
3056
3064
|
}
|
|
3057
3065
|
if (typeof e != "string")
|
|
3058
3066
|
return e === 0 ? e : +e;
|
|
3059
|
-
e =
|
|
3060
|
-
var a =
|
|
3061
|
-
return a ||
|
|
3067
|
+
e = oi(e);
|
|
3068
|
+
var a = si.test(e);
|
|
3069
|
+
return a || ci.test(e) ? ui(e.slice(2), a ? 2 : 8) : li.test(e) ? pt : +e;
|
|
3062
3070
|
}
|
|
3063
|
-
var
|
|
3064
|
-
return
|
|
3065
|
-
},
|
|
3066
|
-
function
|
|
3067
|
-
var n, r, i, A,
|
|
3071
|
+
var $e = function() {
|
|
3072
|
+
return Yt.Date.now();
|
|
3073
|
+
}, di = "Expected a function", fi = Math.max, vi = Math.min;
|
|
3074
|
+
function Ft(e, t, a) {
|
|
3075
|
+
var n, r, i, A, l, s, c = 0, d = !1, f = !1, h = !0;
|
|
3068
3076
|
if (typeof e != "function")
|
|
3069
|
-
throw new TypeError(
|
|
3070
|
-
t =
|
|
3077
|
+
throw new TypeError(di);
|
|
3078
|
+
t = Nt(t) || 0, tt(a) && (d = !!a.leading, f = "maxWait" in a, i = f ? fi(Nt(a.maxWait) || 0, t) : i, h = "trailing" in a ? !!a.trailing : h);
|
|
3071
3079
|
function I(W) {
|
|
3072
3080
|
var z = n, Ae = r;
|
|
3073
3081
|
return n = r = void 0, c = W, A = e.apply(Ae, z), A;
|
|
3074
3082
|
}
|
|
3075
3083
|
function m(W) {
|
|
3076
|
-
return c = W,
|
|
3084
|
+
return c = W, l = setTimeout(T, t), d ? I(W) : A;
|
|
3077
3085
|
}
|
|
3078
3086
|
function C(W) {
|
|
3079
|
-
var z = W -
|
|
3080
|
-
return f ?
|
|
3087
|
+
var z = W - s, Ae = W - c, w = t - z;
|
|
3088
|
+
return f ? vi(w, i - Ae) : w;
|
|
3081
3089
|
}
|
|
3082
3090
|
function M(W) {
|
|
3083
|
-
var z = W -
|
|
3084
|
-
return
|
|
3091
|
+
var z = W - s, Ae = W - c;
|
|
3092
|
+
return s === void 0 || z >= t || z < 0 || f && Ae >= i;
|
|
3085
3093
|
}
|
|
3086
3094
|
function T() {
|
|
3087
|
-
var W =
|
|
3095
|
+
var W = $e();
|
|
3088
3096
|
if (M(W))
|
|
3089
3097
|
return Q(W);
|
|
3090
|
-
|
|
3098
|
+
l = setTimeout(T, C(W));
|
|
3091
3099
|
}
|
|
3092
3100
|
function Q(W) {
|
|
3093
|
-
return
|
|
3101
|
+
return l = void 0, h && n ? I(W) : (n = r = void 0, A);
|
|
3094
3102
|
}
|
|
3095
3103
|
function E() {
|
|
3096
|
-
|
|
3104
|
+
l !== void 0 && clearTimeout(l), c = 0, n = s = r = l = void 0;
|
|
3097
3105
|
}
|
|
3098
3106
|
function D() {
|
|
3099
|
-
return
|
|
3107
|
+
return l === void 0 ? A : Q($e());
|
|
3100
3108
|
}
|
|
3101
3109
|
function j() {
|
|
3102
|
-
var W =
|
|
3103
|
-
if (n = arguments, r = this,
|
|
3104
|
-
if (
|
|
3105
|
-
return m(
|
|
3110
|
+
var W = $e(), z = M(W);
|
|
3111
|
+
if (n = arguments, r = this, s = W, z) {
|
|
3112
|
+
if (l === void 0)
|
|
3113
|
+
return m(s);
|
|
3106
3114
|
if (f)
|
|
3107
|
-
return clearTimeout(
|
|
3115
|
+
return clearTimeout(l), l = setTimeout(T, t), I(s);
|
|
3108
3116
|
}
|
|
3109
|
-
return
|
|
3117
|
+
return l === void 0 && (l = setTimeout(T, t)), A;
|
|
3110
3118
|
}
|
|
3111
3119
|
return j.cancel = E, j.flush = D, j;
|
|
3112
3120
|
}
|
|
3113
|
-
const
|
|
3121
|
+
const mi = {
|
|
3114
3122
|
key: 0,
|
|
3115
3123
|
class: "av-autocomplete-dropdown__loading"
|
|
3116
|
-
},
|
|
3124
|
+
}, gi = {
|
|
3117
3125
|
key: 1,
|
|
3118
3126
|
class: "av-autocomplete-dropdown__empty"
|
|
3119
|
-
},
|
|
3127
|
+
}, Ii = {
|
|
3120
3128
|
key: 1,
|
|
3121
3129
|
class: "av-autocomplete-dropdown__empty-text"
|
|
3122
|
-
},
|
|
3130
|
+
}, hi = /* @__PURE__ */ S({
|
|
3123
3131
|
__name: "AvAutocompleteDropdown",
|
|
3124
3132
|
emits: ["loadMore"],
|
|
3125
3133
|
setup(e, { expose: t, emit: a }) {
|
|
3126
3134
|
const n = a, r = ie(), {
|
|
3127
3135
|
selectedItems: i,
|
|
3128
3136
|
searchQuery: A,
|
|
3129
|
-
isOpen:
|
|
3130
|
-
props:
|
|
3137
|
+
isOpen: l,
|
|
3138
|
+
props: s,
|
|
3131
3139
|
getOptionId: c,
|
|
3132
3140
|
getDisplayLabel: d
|
|
3133
|
-
} =
|
|
3134
|
-
if (!
|
|
3141
|
+
} = lt(), f = J(), h = J(), I = p(() => {
|
|
3142
|
+
if (!s.options)
|
|
3135
3143
|
return [];
|
|
3136
|
-
if (
|
|
3137
|
-
return
|
|
3144
|
+
if (s.serverSideFiltering)
|
|
3145
|
+
return s.maxResults ? s.options.slice(0, s.maxResults) : s.options;
|
|
3138
3146
|
const E = A.value.toLowerCase().trim();
|
|
3139
3147
|
if (!E) {
|
|
3140
|
-
const j =
|
|
3141
|
-
return
|
|
3148
|
+
const j = s.options;
|
|
3149
|
+
return s.maxResults ? j.slice(0, s.maxResults) : j;
|
|
3142
3150
|
}
|
|
3143
3151
|
let D;
|
|
3144
|
-
return
|
|
3145
|
-
}), m = p(() =>
|
|
3152
|
+
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;
|
|
3153
|
+
}), 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
3154
|
function C(E) {
|
|
3147
3155
|
return i.value.some(
|
|
3148
3156
|
(D) => c(D) === c(E)
|
|
3149
3157
|
);
|
|
3150
3158
|
}
|
|
3151
3159
|
function M(E) {
|
|
3152
|
-
if (!
|
|
3153
|
-
i.value = [E],
|
|
3160
|
+
if (!s.multiSelect) {
|
|
3161
|
+
i.value = [E], l.value = !1, A.value = "";
|
|
3154
3162
|
return;
|
|
3155
3163
|
}
|
|
3156
3164
|
const D = i.value, j = c(E);
|
|
@@ -3160,53 +3168,53 @@ const vi = {
|
|
|
3160
3168
|
(z) => c(z) !== j
|
|
3161
3169
|
) : i.value = [...D, E];
|
|
3162
3170
|
}
|
|
3163
|
-
const { arrivedState: T } =
|
|
3171
|
+
const { arrivedState: T } = HA(h, {
|
|
3164
3172
|
throttle: 100
|
|
3165
|
-
}), Q =
|
|
3173
|
+
}), Q = Ft(() => {
|
|
3166
3174
|
n("loadMore");
|
|
3167
|
-
},
|
|
3175
|
+
}, s.loadMoreThrottleDelay);
|
|
3168
3176
|
return ce(() => T.bottom, (E) => {
|
|
3169
|
-
|
|
3177
|
+
s.enableLoadMore && E && l.value && Q();
|
|
3170
3178
|
}), je(() => {
|
|
3171
3179
|
Q.cancel();
|
|
3172
3180
|
}), t({
|
|
3173
3181
|
dropdownRef: f
|
|
3174
|
-
}), (E, D) =>
|
|
3182
|
+
}), (E, D) => o(l) ? (u(), g("div", {
|
|
3175
3183
|
key: 0,
|
|
3176
3184
|
ref_key: "dropdownRef",
|
|
3177
3185
|
ref: f,
|
|
3178
|
-
class: F(["av-autocomplete-dropdown", s
|
|
3179
|
-
style: Ve({ width: s
|
|
3186
|
+
class: F(["av-autocomplete-dropdown", o(s).dropdownClass]),
|
|
3187
|
+
style: Ve({ width: o(s).dropdownWidth, maxHeight: o(s).maxDropdownHeight })
|
|
3180
3188
|
}, [
|
|
3181
|
-
|
|
3182
|
-
P(
|
|
3183
|
-
name:
|
|
3189
|
+
o(m) === o(Me).LOADING ? (u(), g("div", mi, [
|
|
3190
|
+
P(ne, {
|
|
3191
|
+
name: o(R).LOADING_OUTLINE,
|
|
3184
3192
|
size: 1.5,
|
|
3185
3193
|
class: "av-autocomplete-dropdown__spinner"
|
|
3186
3194
|
}, null, 8, ["name"]),
|
|
3187
3195
|
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(
|
|
3196
|
+
])) : o(m) === o(Me).NO_OPTIONS ? (u(), g("div", gi, [
|
|
3197
|
+
r.empty ? B(E.$slots, "empty", { key: 0 }, void 0, !0) : (u(), g("div", Ii, " No results found "))
|
|
3198
|
+
])) : (u(), x(Vt, ee({
|
|
3191
3199
|
key: 2,
|
|
3192
3200
|
ref_key: "listRef",
|
|
3193
|
-
ref:
|
|
3194
|
-
}, s
|
|
3195
|
-
class: ["av-autocomplete-dropdown__options", s
|
|
3201
|
+
ref: h
|
|
3202
|
+
}, o(s).listOptions, {
|
|
3203
|
+
class: ["av-autocomplete-dropdown__options", o(s).scrollbarClass]
|
|
3196
3204
|
}), {
|
|
3197
3205
|
default: Y(() => [
|
|
3198
|
-
(u(!0), g(_, null,
|
|
3199
|
-
key:
|
|
3206
|
+
(u(!0), g(_, null, re(o(I), (j) => (u(), g(_, {
|
|
3207
|
+
key: o(c)(j)
|
|
3200
3208
|
}, [
|
|
3201
3209
|
r.item ? B(E.$slots, "item", {
|
|
3202
3210
|
key: 0,
|
|
3203
3211
|
option: j,
|
|
3204
3212
|
isSelected: C(j),
|
|
3205
3213
|
toggle: () => M(j)
|
|
3206
|
-
}, void 0, !0) : (u(), x(
|
|
3214
|
+
}, void 0, !0) : (u(), x(Ut, {
|
|
3207
3215
|
key: 1,
|
|
3208
|
-
title:
|
|
3209
|
-
icon: C(j) ?
|
|
3216
|
+
title: o(d)(j),
|
|
3217
|
+
icon: C(j) ? o(R).CHECK : void 0,
|
|
3210
3218
|
selected: C(j),
|
|
3211
3219
|
clickable: "",
|
|
3212
3220
|
"on-click": () => M(j),
|
|
@@ -3219,32 +3227,32 @@ const vi = {
|
|
|
3219
3227
|
}, 16, ["class"]))
|
|
3220
3228
|
], 6)) : O("", !0);
|
|
3221
3229
|
}
|
|
3222
|
-
}),
|
|
3230
|
+
}), bi = /* @__PURE__ */ V(hi, [["__scopeId", "data-v-b59b9163"]]), Ci = { class: "av-autocomplete-input" }, yi = {
|
|
3223
3231
|
key: 0,
|
|
3224
3232
|
class: "av-autocomplete-input__suffix"
|
|
3225
|
-
},
|
|
3233
|
+
}, Ei = /* @__PURE__ */ S({
|
|
3226
3234
|
__name: "AvAutocompleteInput",
|
|
3227
3235
|
emits: ["search", "clear"],
|
|
3228
3236
|
setup(e, { expose: t, emit: a }) {
|
|
3229
3237
|
const n = a, r = ie(), {
|
|
3230
3238
|
selectedItems: i,
|
|
3231
3239
|
searchQuery: A,
|
|
3232
|
-
isOpen:
|
|
3233
|
-
props:
|
|
3240
|
+
isOpen: l,
|
|
3241
|
+
props: s,
|
|
3234
3242
|
inputId: c,
|
|
3235
3243
|
handleBlur: d,
|
|
3236
3244
|
getDisplayLabel: f
|
|
3237
|
-
} =
|
|
3245
|
+
} = lt(), h = J(), I = p(() => !s.multiSelect && i.value.length > 0 ? f(i.value[0]) : s.multiSelect && i.value.length > 0 ? s.showSelectedSection ? `${i.value.length} element(s) selected` : i.value.map(f).join(", ") : A.value), m = p(() => {
|
|
3238
3246
|
var E;
|
|
3239
|
-
return ((E =
|
|
3240
|
-
}), C =
|
|
3247
|
+
return ((E = s.inputOptions) == null ? void 0 : E.placeholder) || "Search...";
|
|
3248
|
+
}), C = Ft((E) => {
|
|
3241
3249
|
A.value = E, n("search", E);
|
|
3242
|
-
},
|
|
3250
|
+
}, s.debounceDelay);
|
|
3243
3251
|
function M(E) {
|
|
3244
3252
|
A.value = String(E || ""), C(A.value);
|
|
3245
3253
|
}
|
|
3246
3254
|
function T() {
|
|
3247
|
-
|
|
3255
|
+
l.value = !0;
|
|
3248
3256
|
}
|
|
3249
3257
|
function Q() {
|
|
3250
3258
|
i.value = [], A.value = "", n("clear");
|
|
@@ -3252,19 +3260,19 @@ const vi = {
|
|
|
3252
3260
|
return je(() => {
|
|
3253
3261
|
C.cancel();
|
|
3254
3262
|
}), t({
|
|
3255
|
-
inputRef:
|
|
3263
|
+
inputRef: h,
|
|
3256
3264
|
searchQuery: p(() => A.value)
|
|
3257
|
-
}), (E, D) => (u(), g("div",
|
|
3258
|
-
P(
|
|
3259
|
-
id:
|
|
3265
|
+
}), (E, D) => (u(), g("div", Ci, [
|
|
3266
|
+
P(fA, ee({
|
|
3267
|
+
id: o(c),
|
|
3260
3268
|
ref_key: "inputRef",
|
|
3261
|
-
ref:
|
|
3262
|
-
"model-value":
|
|
3263
|
-
placeholder:
|
|
3264
|
-
}, s
|
|
3269
|
+
ref: h,
|
|
3270
|
+
"model-value": o(I),
|
|
3271
|
+
placeholder: o(m)
|
|
3272
|
+
}, o(s).inputOptions, {
|
|
3265
3273
|
"onUpdate:modelValue": M,
|
|
3266
3274
|
onFocus: T,
|
|
3267
|
-
onBlur:
|
|
3275
|
+
onBlur: o(d),
|
|
3268
3276
|
onClick: T
|
|
3269
3277
|
}), Le({ _: 2 }, [
|
|
3270
3278
|
r.requiredTip ? {
|
|
@@ -3275,10 +3283,10 @@ const vi = {
|
|
|
3275
3283
|
key: "0"
|
|
3276
3284
|
} : void 0
|
|
3277
3285
|
]), 1040, ["id", "model-value", "placeholder", "onBlur"]),
|
|
3278
|
-
|
|
3286
|
+
o(i).length > 0 ? (u(), g("div", yi, [
|
|
3279
3287
|
P(Ce, {
|
|
3280
3288
|
label: "Clear selected items",
|
|
3281
|
-
icon:
|
|
3289
|
+
icon: o(R).CLOSE_CIRCLE_OUTLINE,
|
|
3282
3290
|
"icon-only": "",
|
|
3283
3291
|
"icon-scale": 0.8,
|
|
3284
3292
|
size: "sm",
|
|
@@ -3289,10 +3297,10 @@ const vi = {
|
|
|
3289
3297
|
])) : O("", !0)
|
|
3290
3298
|
]));
|
|
3291
3299
|
}
|
|
3292
|
-
}),
|
|
3300
|
+
}), Mi = /* @__PURE__ */ V(Ei, [["__scopeId", "data-v-24fd377c"]]), pi = {
|
|
3293
3301
|
key: 0,
|
|
3294
3302
|
class: "av-autocomplete-selected-tags"
|
|
3295
|
-
},
|
|
3303
|
+
}, Ni = /* @__PURE__ */ S({
|
|
3296
3304
|
__name: "AvAutocompleteSelectedTags",
|
|
3297
3305
|
setup(e) {
|
|
3298
3306
|
const t = ie(), {
|
|
@@ -3300,26 +3308,26 @@ const vi = {
|
|
|
3300
3308
|
props: n,
|
|
3301
3309
|
getOptionId: r,
|
|
3302
3310
|
getDisplayLabel: i
|
|
3303
|
-
} =
|
|
3304
|
-
function A(
|
|
3305
|
-
const
|
|
3306
|
-
a.value =
|
|
3311
|
+
} = lt();
|
|
3312
|
+
function A(l) {
|
|
3313
|
+
const s = a.value, c = r(l);
|
|
3314
|
+
a.value = s.filter(
|
|
3307
3315
|
(d) => r(d) !== c
|
|
3308
3316
|
);
|
|
3309
3317
|
}
|
|
3310
|
-
return (
|
|
3311
|
-
(u(!0), g(_, null,
|
|
3312
|
-
key:
|
|
3318
|
+
return (l, s) => o(n).multiSelect && o(a).length > 0 && o(n).showSelectedSection ? (u(), g("div", pi, [
|
|
3319
|
+
(u(!0), g(_, null, re(o(a), (c) => (u(), g("div", {
|
|
3320
|
+
key: o(r)(c),
|
|
3313
3321
|
class: "av-autocomplete-selected-tags__item"
|
|
3314
3322
|
}, [
|
|
3315
|
-
t.selectedItem ? B(
|
|
3323
|
+
t.selectedItem ? B(l.$slots, "selectedItem", {
|
|
3316
3324
|
key: 0,
|
|
3317
3325
|
option: c,
|
|
3318
3326
|
remove: () => A(c)
|
|
3319
3327
|
}, void 0, !0) : (u(), x(Ce, {
|
|
3320
3328
|
key: 1,
|
|
3321
|
-
label:
|
|
3322
|
-
icon:
|
|
3329
|
+
label: o(i)(c),
|
|
3330
|
+
icon: o(R).CLOSE_CIRCLE_OUTLINE,
|
|
3323
3331
|
"icon-right": "",
|
|
3324
3332
|
size: "sm",
|
|
3325
3333
|
variant: "OUTLINED",
|
|
@@ -3329,7 +3337,7 @@ const vi = {
|
|
|
3329
3337
|
]))), 128))
|
|
3330
3338
|
])) : O("", !0);
|
|
3331
3339
|
}
|
|
3332
|
-
}),
|
|
3340
|
+
}), Ti = /* @__PURE__ */ V(Ni, [["__scopeId", "data-v-c00c128b"]]), Qi = { class: "av-autocomplete" }, Di = /* @__PURE__ */ S({
|
|
3333
3341
|
__name: "AvAutocomplete",
|
|
3334
3342
|
props: /* @__PURE__ */ ve({
|
|
3335
3343
|
id: {},
|
|
@@ -3361,9 +3369,9 @@ const vi = {
|
|
|
3361
3369
|
}),
|
|
3362
3370
|
emits: /* @__PURE__ */ ve(["search", "loadMore", "clear"], ["update:modelValue"]),
|
|
3363
3371
|
setup(e, { emit: t }) {
|
|
3364
|
-
const a = e, n = t, r = ie(), i = ke(e, "modelValue"), A = J(!1),
|
|
3365
|
-
function
|
|
3366
|
-
|
|
3372
|
+
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()}`);
|
|
3373
|
+
function h(Q) {
|
|
3374
|
+
l.value = Q, n("search", Q);
|
|
3367
3375
|
}
|
|
3368
3376
|
function I(Q) {
|
|
3369
3377
|
var E, D;
|
|
@@ -3377,9 +3385,9 @@ const vi = {
|
|
|
3377
3385
|
function C(Q) {
|
|
3378
3386
|
return a.getOptionLabel ? a.getOptionLabel(Q) : Q.label;
|
|
3379
3387
|
}
|
|
3380
|
-
|
|
3388
|
+
St(Ht, {
|
|
3381
3389
|
selectedItems: i,
|
|
3382
|
-
searchQuery:
|
|
3390
|
+
searchQuery: l,
|
|
3383
3391
|
isOpen: A,
|
|
3384
3392
|
props: a,
|
|
3385
3393
|
inputId: f,
|
|
@@ -3390,22 +3398,22 @@ const vi = {
|
|
|
3390
3398
|
function T(Q) {
|
|
3391
3399
|
var j, W, z, Ae, w;
|
|
3392
3400
|
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 =
|
|
3401
|
+
!((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
3402
|
}
|
|
3395
3403
|
return xe(() => {
|
|
3396
3404
|
document.addEventListener("click", T);
|
|
3397
3405
|
}), je(() => {
|
|
3398
3406
|
document.removeEventListener("click", T);
|
|
3399
|
-
}), (Q, E) => (u(), g("div",
|
|
3407
|
+
}), (Q, E) => (u(), g("div", Qi, [
|
|
3400
3408
|
y("div", {
|
|
3401
3409
|
ref_key: "wrapperRef",
|
|
3402
|
-
ref:
|
|
3410
|
+
ref: s,
|
|
3403
3411
|
class: "av-autocomplete__wrapper"
|
|
3404
3412
|
}, [
|
|
3405
|
-
P(
|
|
3413
|
+
P(Mi, {
|
|
3406
3414
|
ref_key: "inputRef",
|
|
3407
3415
|
ref: c,
|
|
3408
|
-
onSearch:
|
|
3416
|
+
onSearch: h,
|
|
3409
3417
|
onClear: E[0] || (E[0] = (D) => n("clear"))
|
|
3410
3418
|
}, Le({ _: 2 }, [
|
|
3411
3419
|
r.requiredTip ? {
|
|
@@ -3416,7 +3424,7 @@ const vi = {
|
|
|
3416
3424
|
key: "0"
|
|
3417
3425
|
} : void 0
|
|
3418
3426
|
]), 1536),
|
|
3419
|
-
P(
|
|
3427
|
+
P(bi, {
|
|
3420
3428
|
ref_key: "dropdownRef",
|
|
3421
3429
|
ref: d,
|
|
3422
3430
|
onLoadMore: E[1] || (E[1] = (D) => n("loadMore"))
|
|
@@ -3441,7 +3449,7 @@ const vi = {
|
|
|
3441
3449
|
} : void 0
|
|
3442
3450
|
]), 1536)
|
|
3443
3451
|
], 512),
|
|
3444
|
-
P(
|
|
3452
|
+
P(Ti, null, Le({ _: 2 }, [
|
|
3445
3453
|
r.selectedItem ? {
|
|
3446
3454
|
name: "selectedItem",
|
|
3447
3455
|
fn: Y(({ option: D, remove: j }) => [
|
|
@@ -3455,7 +3463,7 @@ const vi = {
|
|
|
3455
3463
|
]), 1024)
|
|
3456
3464
|
]));
|
|
3457
3465
|
}
|
|
3458
|
-
}),
|
|
3466
|
+
}), Pl = /* @__PURE__ */ V(Di, [["__scopeId", "data-v-fd810890"]]), Oi = { class: "item-container" }, wi = /* @__PURE__ */ S({
|
|
3459
3467
|
__name: "AvMultiselect",
|
|
3460
3468
|
props: {
|
|
3461
3469
|
disabled: { type: Boolean },
|
|
@@ -3477,8 +3485,8 @@ const vi = {
|
|
|
3477
3485
|
},
|
|
3478
3486
|
emits: ["update:modelValue"],
|
|
3479
3487
|
setup(e, { emit: t }) {
|
|
3480
|
-
|
|
3481
|
-
|
|
3488
|
+
te((f) => ({
|
|
3489
|
+
v5e495a53: f.width
|
|
3482
3490
|
}));
|
|
3483
3491
|
const a = e, n = t, r = p(() => a.modelValue.map((f) => f.value)), i = p(() => {
|
|
3484
3492
|
if (!a.modelValue || a.modelValue.length === 0)
|
|
@@ -3489,12 +3497,12 @@ const vi = {
|
|
|
3489
3497
|
return `${a.modelValue.length} option${f} sélectionnée${f}`;
|
|
3490
3498
|
});
|
|
3491
3499
|
function A(f) {
|
|
3492
|
-
return a.modelValue.some((
|
|
3500
|
+
return a.modelValue.some((h) => h.value === f.value);
|
|
3493
3501
|
}
|
|
3494
|
-
function
|
|
3502
|
+
function l(f) {
|
|
3495
3503
|
return A(f) ? R.CHECKBOX_MARKED : R.CHECKBOX_BLANK_OUTLINE;
|
|
3496
3504
|
}
|
|
3497
|
-
function
|
|
3505
|
+
function s(f) {
|
|
3498
3506
|
return A(f) ? "var(--dark-background-primary1)" : "var(--icon)";
|
|
3499
3507
|
}
|
|
3500
3508
|
function c(f) {
|
|
@@ -3502,37 +3510,41 @@ const vi = {
|
|
|
3502
3510
|
}
|
|
3503
3511
|
function d(f) {
|
|
3504
3512
|
var I;
|
|
3505
|
-
const
|
|
3513
|
+
const h = ((I = a.options) == null ? void 0 : I.filter(
|
|
3506
3514
|
(m) => f.includes(m.value)
|
|
3507
3515
|
)) ?? [];
|
|
3508
|
-
n("update:modelValue",
|
|
3516
|
+
n("update:modelValue", h);
|
|
3509
3517
|
}
|
|
3510
|
-
return (f,
|
|
3511
|
-
const I =
|
|
3518
|
+
return (f, h) => {
|
|
3519
|
+
const I = ne;
|
|
3512
3520
|
return u(), g("div", {
|
|
3513
|
-
class: F({
|
|
3521
|
+
class: F({
|
|
3522
|
+
"fr-multiselect--dense": a.dense,
|
|
3523
|
+
"fr-multiselect--unselected": a.modelValue.length === 0,
|
|
3524
|
+
"fr-multiselect--selected": a.modelValue.length > 0
|
|
3525
|
+
})
|
|
3514
3526
|
}, [
|
|
3515
|
-
P(
|
|
3516
|
-
"model-value":
|
|
3517
|
-
title:
|
|
3518
|
-
"button-label":
|
|
3527
|
+
P(o(ma), ee(a, {
|
|
3528
|
+
"model-value": o(r),
|
|
3529
|
+
title: o(i),
|
|
3530
|
+
"button-label": o(i),
|
|
3519
3531
|
"id-key": "value",
|
|
3520
3532
|
"filtering-keys": ["label"],
|
|
3521
|
-
"onUpdate:modelValue":
|
|
3533
|
+
"onUpdate:modelValue": h[0] || (h[0] = (m) => d(m))
|
|
3522
3534
|
}), {
|
|
3523
3535
|
"checkbox-label": Y(({ option: m }) => [
|
|
3524
|
-
y("div",
|
|
3536
|
+
y("div", Oi, [
|
|
3525
3537
|
P(I, {
|
|
3526
3538
|
class: "option-checkbox",
|
|
3527
|
-
name:
|
|
3528
|
-
color:
|
|
3539
|
+
name: l(m),
|
|
3540
|
+
color: s(m),
|
|
3529
3541
|
size: 1.5
|
|
3530
3542
|
}, null, 8, ["name", "color"]),
|
|
3531
3543
|
m.icon ? (u(), x(I, {
|
|
3532
3544
|
key: 0,
|
|
3533
3545
|
class: "option-icon",
|
|
3534
3546
|
name: m.icon,
|
|
3535
|
-
color:
|
|
3547
|
+
color: s(m),
|
|
3536
3548
|
size: 1.5
|
|
3537
3549
|
}, null, 8, ["name", "color"])) : O("", !0),
|
|
3538
3550
|
y("span", {
|
|
@@ -3545,7 +3557,7 @@ const vi = {
|
|
|
3545
3557
|
], 2);
|
|
3546
3558
|
};
|
|
3547
3559
|
}
|
|
3548
|
-
}),
|
|
3560
|
+
}), Wl = /* @__PURE__ */ V(wi, [["__scopeId", "data-v-4cc765fa"]]), Vl = {
|
|
3549
3561
|
name: "AvSelect",
|
|
3550
3562
|
props: {
|
|
3551
3563
|
modelValue: [String, Number],
|
|
@@ -3569,7 +3581,7 @@ const vi = {
|
|
|
3569
3581
|
</option>
|
|
3570
3582
|
</select>
|
|
3571
3583
|
`
|
|
3572
|
-
},
|
|
3584
|
+
}, Li = /* @__PURE__ */ S({
|
|
3573
3585
|
__name: "AvSelect",
|
|
3574
3586
|
props: {
|
|
3575
3587
|
required: { type: Boolean },
|
|
@@ -3591,19 +3603,19 @@ const vi = {
|
|
|
3591
3603
|
var A;
|
|
3592
3604
|
if (!a.modelValue)
|
|
3593
3605
|
return a.defaultUnselectedText;
|
|
3594
|
-
const i = (A = a.options) == null ? void 0 : A.find((
|
|
3606
|
+
const i = (A = a.options) == null ? void 0 : A.find((l) => String(l.value) === String(a.modelValue));
|
|
3595
3607
|
return i ? i.text : a.defaultUnselectedText;
|
|
3596
3608
|
});
|
|
3597
3609
|
return (i, A) => (u(), g("div", {
|
|
3598
3610
|
class: F({ "fr-select--dense": a.dense })
|
|
3599
3611
|
}, [
|
|
3600
|
-
P(
|
|
3601
|
-
title:
|
|
3602
|
-
"onUpdate:modelValue": A[0] || (A[0] = (
|
|
3612
|
+
P(o(ga), ee(a, {
|
|
3613
|
+
title: o(r),
|
|
3614
|
+
"onUpdate:modelValue": A[0] || (A[0] = (l) => n("update:modelValue", l))
|
|
3603
3615
|
}), null, 16, ["title"])
|
|
3604
3616
|
], 2));
|
|
3605
3617
|
}
|
|
3606
|
-
}),
|
|
3618
|
+
}), Ul = /* @__PURE__ */ V(Li, [["__scopeId", "data-v-d230e734"]]), Xl = /* @__PURE__ */ S({
|
|
3607
3619
|
__name: "AvTab",
|
|
3608
3620
|
props: {
|
|
3609
3621
|
title: {},
|
|
@@ -3612,7 +3624,7 @@ const vi = {
|
|
|
3612
3624
|
setup(e) {
|
|
3613
3625
|
return (t, a) => B(t.$slots, "default");
|
|
3614
3626
|
}
|
|
3615
|
-
}),
|
|
3627
|
+
}), Si = /* @__PURE__ */ S({
|
|
3616
3628
|
__name: "AvTabs",
|
|
3617
3629
|
props: {
|
|
3618
3630
|
ariaLabel: {},
|
|
@@ -3622,18 +3634,18 @@ const vi = {
|
|
|
3622
3634
|
emits: ["update:modelValue"],
|
|
3623
3635
|
setup(e, { expose: t, emit: a }) {
|
|
3624
3636
|
const n = a, r = ie(), i = J(e.modelValue), A = p(() => {
|
|
3625
|
-
var
|
|
3626
|
-
return ((
|
|
3637
|
+
var h;
|
|
3638
|
+
return ((h = r.default) == null ? void 0 : h.call(r)) || [];
|
|
3627
3639
|
});
|
|
3628
|
-
function
|
|
3640
|
+
function l(h) {
|
|
3629
3641
|
const I = A.value.length;
|
|
3630
|
-
i.value = (i.value +
|
|
3642
|
+
i.value = (i.value + h + I) % I;
|
|
3631
3643
|
}
|
|
3632
|
-
function
|
|
3633
|
-
|
|
3644
|
+
function s() {
|
|
3645
|
+
l(-1);
|
|
3634
3646
|
}
|
|
3635
3647
|
function c() {
|
|
3636
|
-
|
|
3648
|
+
l(1);
|
|
3637
3649
|
}
|
|
3638
3650
|
function d() {
|
|
3639
3651
|
i.value = 0;
|
|
@@ -3641,21 +3653,21 @@ const vi = {
|
|
|
3641
3653
|
function f() {
|
|
3642
3654
|
i.value = A.value.length - 1;
|
|
3643
3655
|
}
|
|
3644
|
-
return ce(() => e.modelValue, (
|
|
3645
|
-
|
|
3646
|
-
}), ce(i, (
|
|
3647
|
-
n("update:modelValue",
|
|
3648
|
-
}), t({ activeTab: i }), (
|
|
3649
|
-
const m =
|
|
3656
|
+
return ce(() => e.modelValue, (h) => {
|
|
3657
|
+
h !== void 0 && (i.value = h);
|
|
3658
|
+
}), ce(i, (h) => {
|
|
3659
|
+
n("update:modelValue", h);
|
|
3660
|
+
}), t({ activeTab: i }), (h, I) => {
|
|
3661
|
+
const m = ba, C = ha, M = Ia;
|
|
3650
3662
|
return u(), x(M, {
|
|
3651
|
-
modelValue:
|
|
3652
|
-
"onUpdate:modelValue": I[0] || (I[0] = (T) =>
|
|
3663
|
+
modelValue: o(i),
|
|
3664
|
+
"onUpdate:modelValue": I[0] || (I[0] = (T) => At(i) ? i.value = T : null),
|
|
3653
3665
|
class: F({ compact: e.compact }),
|
|
3654
3666
|
"tab-list-name": e.ariaLabel ?? "Liste d’onglets",
|
|
3655
3667
|
"tab-titles": []
|
|
3656
3668
|
}, {
|
|
3657
3669
|
"tab-items": Y(() => [
|
|
3658
|
-
(u(!0), g(_, null,
|
|
3670
|
+
(u(!0), g(_, null, re(o(A), (T, Q) => {
|
|
3659
3671
|
var E;
|
|
3660
3672
|
return u(), x(m, {
|
|
3661
3673
|
key: Q,
|
|
@@ -3665,14 +3677,14 @@ const vi = {
|
|
|
3665
3677
|
icon: (E = T.props) == null ? void 0 : E.icon,
|
|
3666
3678
|
onClick: (D) => i.value = Q,
|
|
3667
3679
|
onNext: c,
|
|
3668
|
-
onPrevious:
|
|
3680
|
+
onPrevious: s,
|
|
3669
3681
|
onFirst: d,
|
|
3670
3682
|
onLast: f
|
|
3671
3683
|
}, {
|
|
3672
3684
|
default: Y(() => {
|
|
3673
3685
|
var D;
|
|
3674
3686
|
return [
|
|
3675
|
-
|
|
3687
|
+
rt(Z((D = T.props) == null ? void 0 : D.title), 1)
|
|
3676
3688
|
];
|
|
3677
3689
|
}),
|
|
3678
3690
|
_: 2
|
|
@@ -3680,7 +3692,7 @@ const vi = {
|
|
|
3680
3692
|
}), 128))
|
|
3681
3693
|
]),
|
|
3682
3694
|
default: Y(() => [
|
|
3683
|
-
(u(!0), g(_, null,
|
|
3695
|
+
(u(!0), g(_, null, re(o(A), (T, Q) => (u(), x(C, {
|
|
3684
3696
|
key: Q,
|
|
3685
3697
|
"panel-id": `panel-${Q}`,
|
|
3686
3698
|
"tab-id": `tab-${Q}`
|
|
@@ -3695,16 +3707,16 @@ const vi = {
|
|
|
3695
3707
|
}, 8, ["modelValue", "class", "tab-list-name"]);
|
|
3696
3708
|
};
|
|
3697
3709
|
}
|
|
3698
|
-
}),
|
|
3710
|
+
}), 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
3711
|
width: "34",
|
|
3700
3712
|
height: "14"
|
|
3701
|
-
},
|
|
3713
|
+
}, Bi = ["href"], Pi = {
|
|
3702
3714
|
key: 0,
|
|
3703
3715
|
class: "caption-bold no-select"
|
|
3704
|
-
},
|
|
3716
|
+
}, Wi = {
|
|
3705
3717
|
key: 1,
|
|
3706
3718
|
class: "caption-regular no-select"
|
|
3707
|
-
},
|
|
3719
|
+
}, Vi = { class: "caption-regular" }, Ui = ["id", "disabled", "aria-disabled", "checked", "data-testid", "aria-describedby", "name"], Xi = /* @__PURE__ */ S({
|
|
3708
3720
|
__name: "AvToggle",
|
|
3709
3721
|
props: {
|
|
3710
3722
|
modelValue: { type: Boolean },
|
|
@@ -3720,8 +3732,8 @@ const vi = {
|
|
|
3720
3732
|
const t = e, a = p(() => t.id ?? crypto.randomUUID()), n = p(() => `${a.value}-label`);
|
|
3721
3733
|
return (r, i) => (u(), g(_, null, [
|
|
3722
3734
|
y("label", {
|
|
3723
|
-
id:
|
|
3724
|
-
for:
|
|
3735
|
+
id: o(n),
|
|
3736
|
+
for: o(a),
|
|
3725
3737
|
class: F(["av-toggle", {
|
|
3726
3738
|
"av-toggle--disabled": e.disabled
|
|
3727
3739
|
}])
|
|
@@ -3731,35 +3743,35 @@ const vi = {
|
|
|
3731
3743
|
"toggle--disabled": e.disabled
|
|
3732
3744
|
}])
|
|
3733
3745
|
}, [
|
|
3734
|
-
(u(), g("svg",
|
|
3746
|
+
(u(), g("svg", ji, [
|
|
3735
3747
|
y("image", {
|
|
3736
|
-
href: e.modelValue ?
|
|
3748
|
+
href: e.modelValue ? o(ki) : o(zi),
|
|
3737
3749
|
width: "34",
|
|
3738
3750
|
height: "14"
|
|
3739
|
-
}, null, 8,
|
|
3751
|
+
}, null, 8, Bi)
|
|
3740
3752
|
])),
|
|
3741
|
-
e.modelValue ? (u(), g("span",
|
|
3753
|
+
e.modelValue ? (u(), g("span", Pi, Z(e.activeText), 1)) : (u(), g("span", Wi, Z(e.inactiveText), 1))
|
|
3742
3754
|
], 2),
|
|
3743
|
-
y("span",
|
|
3744
|
-
], 10,
|
|
3755
|
+
y("span", Vi, Z(e.description), 1)
|
|
3756
|
+
], 10, xi),
|
|
3745
3757
|
y("input", {
|
|
3746
|
-
id:
|
|
3758
|
+
id: o(a),
|
|
3747
3759
|
style: { visibility: "hidden" },
|
|
3748
3760
|
disabled: e.disabled,
|
|
3749
3761
|
"aria-disabled": e.disabled,
|
|
3750
3762
|
type: "checkbox",
|
|
3751
3763
|
checked: e.modelValue,
|
|
3752
|
-
"data-testid":
|
|
3753
|
-
"aria-describedby":
|
|
3764
|
+
"data-testid": o(a),
|
|
3765
|
+
"aria-describedby": o(n),
|
|
3754
3766
|
name: e.name,
|
|
3755
3767
|
onInput: i[0] || (i[0] = (A) => r.$emit("update:modelValue", A.target.checked))
|
|
3756
|
-
}, null, 40,
|
|
3768
|
+
}, null, 40, Ui)
|
|
3757
3769
|
], 64));
|
|
3758
3770
|
}
|
|
3759
|
-
}),
|
|
3771
|
+
}), Zl = /* @__PURE__ */ V(Xi, [["__scopeId", "data-v-0aabed11"]]), Hi = {
|
|
3760
3772
|
style: { position: "relative" },
|
|
3761
3773
|
class: "my-nav-wrapper"
|
|
3762
|
-
},
|
|
3774
|
+
}, Zi = /* @__PURE__ */ S({
|
|
3763
3775
|
__name: "AvNavigation",
|
|
3764
3776
|
props: {
|
|
3765
3777
|
navItems: {}
|
|
@@ -3767,19 +3779,19 @@ const vi = {
|
|
|
3767
3779
|
setup(e) {
|
|
3768
3780
|
const t = e;
|
|
3769
3781
|
return (a, n) => {
|
|
3770
|
-
const r =
|
|
3771
|
-
return u(), g("div",
|
|
3772
|
-
P(r,
|
|
3782
|
+
const r = Ca;
|
|
3783
|
+
return u(), g("div", Hi, [
|
|
3784
|
+
P(r, Da(Oa(t)), null, 16)
|
|
3773
3785
|
]);
|
|
3774
3786
|
};
|
|
3775
3787
|
}
|
|
3776
|
-
}),
|
|
3788
|
+
}), 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
3789
|
key: 0,
|
|
3778
3790
|
class: "caption-regular fr-hidden fr-unhidden-md"
|
|
3779
|
-
},
|
|
3791
|
+
}, $i = ["href", "title", "aria-current", "onClick"], eo = { key: 0 }, to = { key: 1 }, ao = ["href", "title", "disabled", "aria-disabled"], no = {
|
|
3780
3792
|
key: 0,
|
|
3781
3793
|
class: "caption-regular fr-hidden fr-unhidden-md"
|
|
3782
|
-
},
|
|
3794
|
+
}, ro = ["href", "title", "disabled", "aria-disabled"], Ao = { class: "fr-sr-only" }, io = /* @__PURE__ */ S({
|
|
3783
3795
|
__name: "AvPagination",
|
|
3784
3796
|
props: {
|
|
3785
3797
|
compact: { type: Boolean, default: !1 },
|
|
@@ -3795,7 +3807,7 @@ const vi = {
|
|
|
3795
3807
|
},
|
|
3796
3808
|
emits: ["update:current-page"],
|
|
3797
3809
|
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),
|
|
3810
|
+
const a = t, n = p(() => Math.min(e.pages.length - 1 - e.truncLimit, Math.max(e.currentPage - (e.truncLimit - e.truncLimit % 2) / 2, 0))), r = p(() => Math.min(e.pages.length - 1, n.value + e.truncLimit)), i = p(() => e.pages.length > e.truncLimit ? e.pages.slice(n.value, r.value + 1) : e.pages), A = (I) => a("update:current-page", I), l = (I) => A(I), s = () => l(0), c = () => l(Math.max(0, e.currentPage - 1)), d = () => l(Math.min(e.pages.length - 1, e.currentPage + 1)), f = () => l(e.pages.length - 1), h = (I) => e.pages.indexOf(I) === e.currentPage;
|
|
3799
3811
|
return (I, m) => {
|
|
3800
3812
|
var C, M, T, Q;
|
|
3801
3813
|
return u(), g("nav", {
|
|
@@ -3803,9 +3815,9 @@ const vi = {
|
|
|
3803
3815
|
class: "fr-pagination",
|
|
3804
3816
|
"aria-label": e.ariaLabel
|
|
3805
3817
|
}, [
|
|
3806
|
-
y("ul",
|
|
3807
|
-
e.compact && e.compactCurrentPageLabel ? (u(), g("li",
|
|
3808
|
-
y("span",
|
|
3818
|
+
y("ul", Yi, [
|
|
3819
|
+
e.compact && e.compactCurrentPageLabel ? (u(), g("li", Ri, [
|
|
3820
|
+
y("span", Fi, Z(e.compactCurrentPageLabel), 1)
|
|
3809
3821
|
])) : O("", !0),
|
|
3810
3822
|
y("li", null, [
|
|
3811
3823
|
e.compact ? O("", !0) : (u(), g("a", {
|
|
@@ -3814,15 +3826,15 @@ const vi = {
|
|
|
3814
3826
|
class: "fr-pagination__link",
|
|
3815
3827
|
title: e.firstPageLabel,
|
|
3816
3828
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
3817
|
-
onClick: m[0] || (m[0] = se((E) =>
|
|
3829
|
+
onClick: m[0] || (m[0] = se((E) => s(), ["prevent"]))
|
|
3818
3830
|
}, [
|
|
3819
|
-
P(
|
|
3820
|
-
name:
|
|
3831
|
+
P(ne, {
|
|
3832
|
+
name: o(R).PAGE_FIRST,
|
|
3821
3833
|
size: 1.5,
|
|
3822
3834
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3823
3835
|
}, null, 8, ["name", "color"]),
|
|
3824
|
-
y("span",
|
|
3825
|
-
], 8,
|
|
3836
|
+
y("span", Gi, Z(e.firstPageLabel), 1)
|
|
3837
|
+
], 8, Ki))
|
|
3826
3838
|
]),
|
|
3827
3839
|
y("li", null, [
|
|
3828
3840
|
y("a", {
|
|
@@ -3832,26 +3844,26 @@ const vi = {
|
|
|
3832
3844
|
"aria-disabled": e.currentPage === 0 ? !0 : void 0,
|
|
3833
3845
|
onClick: m[1] || (m[1] = se((E) => c(), ["prevent"]))
|
|
3834
3846
|
}, [
|
|
3835
|
-
P(
|
|
3836
|
-
name:
|
|
3847
|
+
P(ne, {
|
|
3848
|
+
name: o(R).NAVIGATE_BEFORE,
|
|
3837
3849
|
size: 1.5,
|
|
3838
3850
|
color: e.currentPage === 0 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3839
3851
|
}, null, 8, ["name", "color"]),
|
|
3840
|
-
e.compact ? O("", !0) : (u(), g("span",
|
|
3841
|
-
], 8,
|
|
3852
|
+
e.compact ? O("", !0) : (u(), g("span", _i, Z(e.prevPageLabel), 1))
|
|
3853
|
+
], 8, Ji)
|
|
3842
3854
|
]),
|
|
3843
|
-
e.compact ? O("", !0) : (u(!0), g(_, { key: 1 },
|
|
3855
|
+
e.compact ? O("", !0) : (u(!0), g(_, { key: 1 }, re(o(i), (E, D) => (u(), g("li", { key: D }, [
|
|
3844
3856
|
y("a", {
|
|
3845
3857
|
href: E == null ? void 0 : E.href,
|
|
3846
3858
|
class: "fr-pagination__link fr-unhidden-lg",
|
|
3847
3859
|
title: E.title,
|
|
3848
|
-
"aria-current":
|
|
3849
|
-
onClick: se((j) =>
|
|
3860
|
+
"aria-current": h(E) ? "page" : void 0,
|
|
3861
|
+
onClick: se((j) => l(e.pages.indexOf(E)), ["prevent"])
|
|
3850
3862
|
}, [
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
], 8,
|
|
3863
|
+
o(i).indexOf(E) === 0 && o(n) > 0 ? (u(), g("span", eo, "...")) : O("", !0),
|
|
3864
|
+
rt(" " + Z(E.label) + " ", 1),
|
|
3865
|
+
o(i).indexOf(E) === o(i).length - 1 && o(r) < e.pages.length - 1 ? (u(), g("span", to, "...")) : O("", !0)
|
|
3866
|
+
], 8, $i)
|
|
3855
3867
|
]))), 128)),
|
|
3856
3868
|
y("li", null, [
|
|
3857
3869
|
y("a", {
|
|
@@ -3862,13 +3874,13 @@ const vi = {
|
|
|
3862
3874
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
3863
3875
|
onClick: m[2] || (m[2] = se((E) => d(), ["prevent"]))
|
|
3864
3876
|
}, [
|
|
3865
|
-
e.compact ? O("", !0) : (u(), g("span",
|
|
3866
|
-
P(
|
|
3867
|
-
name:
|
|
3877
|
+
e.compact ? O("", !0) : (u(), g("span", no, Z(e.nextPageLabel), 1)),
|
|
3878
|
+
P(ne, {
|
|
3879
|
+
name: o(R).NAVIGATE_NEXT,
|
|
3868
3880
|
size: 1.5,
|
|
3869
3881
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3870
3882
|
}, null, 8, ["name", "color"])
|
|
3871
|
-
], 8,
|
|
3883
|
+
], 8, ao)
|
|
3872
3884
|
]),
|
|
3873
3885
|
y("li", null, [
|
|
3874
3886
|
e.compact ? O("", !0) : (u(), g("a", {
|
|
@@ -3880,20 +3892,20 @@ const vi = {
|
|
|
3880
3892
|
"aria-disabled": e.currentPage === e.pages.length - 1 ? !0 : void 0,
|
|
3881
3893
|
onClick: m[3] || (m[3] = se((E) => f(), ["prevent"]))
|
|
3882
3894
|
}, [
|
|
3883
|
-
y("span",
|
|
3884
|
-
P(
|
|
3885
|
-
name:
|
|
3895
|
+
y("span", Ao, Z(e.lastPageLabel), 1),
|
|
3896
|
+
P(ne, {
|
|
3897
|
+
name: o(R).PAGE_LAST,
|
|
3886
3898
|
size: 1.5,
|
|
3887
3899
|
color: e.currentPage === e.pages.length - 1 ? "var(--dark-background-neutral)" : "var(--dark-background-primary1)"
|
|
3888
3900
|
}, null, 8, ["name", "color"])
|
|
3889
|
-
], 8,
|
|
3901
|
+
], 8, ro))
|
|
3890
3902
|
])
|
|
3891
3903
|
])
|
|
3892
|
-
], 8,
|
|
3904
|
+
], 8, qi);
|
|
3893
3905
|
};
|
|
3894
3906
|
}
|
|
3895
|
-
}),
|
|
3896
|
-
function
|
|
3907
|
+
}), Yl = /* @__PURE__ */ V(io, [["__scopeId", "data-v-ccfe7c3a"]]);
|
|
3908
|
+
function Rl(e) {
|
|
3897
3909
|
return Array.from({ length: e.value }, (t, a) => {
|
|
3898
3910
|
const n = a + 1;
|
|
3899
3911
|
return {
|
|
@@ -3903,10 +3915,10 @@ function Yl(e) {
|
|
|
3903
3915
|
};
|
|
3904
3916
|
});
|
|
3905
3917
|
}
|
|
3906
|
-
const
|
|
3918
|
+
const oo = ["id", "aria-label"], lo = {
|
|
3907
3919
|
key: 0,
|
|
3908
3920
|
class: "av-side-menu__header"
|
|
3909
|
-
},
|
|
3921
|
+
}, so = { class: "av-side-menu__content" }, co = /* @__PURE__ */ S({
|
|
3910
3922
|
__name: "AvSideMenu",
|
|
3911
3923
|
props: /* @__PURE__ */ ve({
|
|
3912
3924
|
id: {},
|
|
@@ -3921,41 +3933,41 @@ const io = ["id", "aria-label"], oo = {
|
|
|
3921
3933
|
}),
|
|
3922
3934
|
emits: /* @__PURE__ */ ve(["update:collapsed"], ["update:collapsed"]),
|
|
3923
3935
|
setup(e) {
|
|
3924
|
-
|
|
3925
|
-
v4d5b7c17: s
|
|
3936
|
+
te((d) => ({
|
|
3937
|
+
v4d5b7c17: o(s),
|
|
3926
3938
|
v4a813d87: d.padding
|
|
3927
3939
|
}));
|
|
3928
|
-
const t = e, a = ke(e, "collapsed"), { width: n, collapsedWidth: r } =
|
|
3940
|
+
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
3941
|
get: () => t.collapsible ? a.value : !1,
|
|
3930
3942
|
set: (d) => {
|
|
3931
3943
|
t.collapsible && (a.value = d);
|
|
3932
3944
|
}
|
|
3933
|
-
}),
|
|
3945
|
+
}), s = p(() => t.collapsible && l.value ? r.value : n.value);
|
|
3934
3946
|
function c() {
|
|
3935
|
-
t.collapsible && (
|
|
3947
|
+
t.collapsible && (l.value = !l.value);
|
|
3936
3948
|
}
|
|
3937
3949
|
return (d, f) => (u(), g("nav", {
|
|
3938
|
-
id:
|
|
3939
|
-
class: F(["av-side-menu", { "av-side-menu--collapsed":
|
|
3940
|
-
"aria-label":
|
|
3950
|
+
id: o(i),
|
|
3951
|
+
class: F(["av-side-menu", { "av-side-menu--collapsed": o(l) }]),
|
|
3952
|
+
"aria-label": o(A)
|
|
3941
3953
|
}, [
|
|
3942
|
-
t.collapsible ? (u(), g("div",
|
|
3954
|
+
t.collapsible ? (u(), g("div", lo, [
|
|
3943
3955
|
P(Ce, {
|
|
3944
|
-
"aria-expanded": !
|
|
3945
|
-
"aria-controls":
|
|
3946
|
-
icon:
|
|
3956
|
+
"aria-expanded": !o(l),
|
|
3957
|
+
"aria-controls": o(i),
|
|
3958
|
+
icon: o(l) ? o(R).CHEVRON_DOUBLE_RIGHT : o(R).CHEVRON_DOUBLE_LEFT,
|
|
3947
3959
|
class: "av-side-menu__collapse-button",
|
|
3948
|
-
label:
|
|
3960
|
+
label: o(l) ? `${o(i)}-expand-button` : `${o(i)}-collapse-button`,
|
|
3949
3961
|
"icon-only": "",
|
|
3950
3962
|
onClick: c
|
|
3951
3963
|
}, null, 8, ["aria-expanded", "aria-controls", "icon", "label"])
|
|
3952
3964
|
])) : O("", !0),
|
|
3953
|
-
y("div",
|
|
3965
|
+
y("div", so, [
|
|
3954
3966
|
B(d.$slots, "default", {}, void 0, !0)
|
|
3955
3967
|
])
|
|
3956
|
-
], 10,
|
|
3968
|
+
], 10, oo));
|
|
3957
3969
|
}
|
|
3958
|
-
}),
|
|
3970
|
+
}), uo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-23242ccc"]]), Fl = {
|
|
3959
3971
|
name: "AvSideNavigation",
|
|
3960
3972
|
props: {
|
|
3961
3973
|
items: Array,
|
|
@@ -3965,7 +3977,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
3965
3977
|
},
|
|
3966
3978
|
emits: ["update:selectedItem", "update:isSideMenuCollapsed"],
|
|
3967
3979
|
template: `<div class="av-side-navigation-stub" @click="$emit('update:isSideMenuCollapsed', !isSideMenuCollapsed)" />`
|
|
3968
|
-
},
|
|
3980
|
+
}, fo = /* @__PURE__ */ S({
|
|
3969
3981
|
__name: "AvSideNavigation",
|
|
3970
3982
|
props: /* @__PURE__ */ ve({
|
|
3971
3983
|
items: {},
|
|
@@ -3987,19 +3999,19 @@ const io = ["id", "aria-label"], oo = {
|
|
|
3987
3999
|
function n(r) {
|
|
3988
4000
|
t.value = r;
|
|
3989
4001
|
}
|
|
3990
|
-
return (r, i) => (u(), x(
|
|
4002
|
+
return (r, i) => (u(), x(uo, {
|
|
3991
4003
|
collapsed: a.value,
|
|
3992
4004
|
"onUpdate:collapsed": i[0] || (i[0] = (A) => a.value = A),
|
|
3993
4005
|
"collapsed-width": e.collapsedWidth,
|
|
3994
4006
|
color: e.selectedItemColor
|
|
3995
4007
|
}, {
|
|
3996
4008
|
default: Y(() => [
|
|
3997
|
-
P(
|
|
4009
|
+
P(o(Vt), {
|
|
3998
4010
|
size: "small",
|
|
3999
4011
|
role: "menu"
|
|
4000
4012
|
}, {
|
|
4001
4013
|
default: Y(() => [
|
|
4002
|
-
(u(!0), g(_, null,
|
|
4014
|
+
(u(!0), g(_, null, re(e.items, (A) => (u(), x(o(Ut), {
|
|
4003
4015
|
key: A.id,
|
|
4004
4016
|
title: a.value ? void 0 : A.label,
|
|
4005
4017
|
icon: A.icon,
|
|
@@ -4012,7 +4024,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4012
4024
|
"av-side-navigation__menu-item--collapsed": a.value
|
|
4013
4025
|
}]),
|
|
4014
4026
|
clickable: "",
|
|
4015
|
-
onClick: (
|
|
4027
|
+
onClick: (l) => n(A.id)
|
|
4016
4028
|
}, null, 8, ["title", "icon", "selected", "hover-background-color", "class", "onClick"]))), 128))
|
|
4017
4029
|
]),
|
|
4018
4030
|
_: 1
|
|
@@ -4021,7 +4033,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4021
4033
|
_: 1
|
|
4022
4034
|
}, 8, ["collapsed", "collapsed-width", "color"]));
|
|
4023
4035
|
}
|
|
4024
|
-
}),
|
|
4036
|
+
}), Kl = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-3c5a1abd"]]), Gl = {
|
|
4025
4037
|
name: "AvStepper",
|
|
4026
4038
|
props: {
|
|
4027
4039
|
steps: {
|
|
@@ -4045,7 +4057,7 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4045
4057
|
</div>
|
|
4046
4058
|
</div>
|
|
4047
4059
|
`
|
|
4048
|
-
},
|
|
4060
|
+
}, 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
4061
|
__name: "AvStepper",
|
|
4050
4062
|
props: {
|
|
4051
4063
|
steps: {},
|
|
@@ -4053,62 +4065,62 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4053
4065
|
width: { default: "100%" }
|
|
4054
4066
|
},
|
|
4055
4067
|
setup(e) {
|
|
4056
|
-
|
|
4057
|
-
v06d1bdf1:
|
|
4068
|
+
te((i) => ({
|
|
4069
|
+
v06d1bdf1: o(r)
|
|
4058
4070
|
}));
|
|
4059
|
-
const t = e, { steps: a, currentStep: n, width: r } =
|
|
4060
|
-
return (i, A) => (u(), g("div",
|
|
4061
|
-
y("div",
|
|
4062
|
-
y("div",
|
|
4071
|
+
const t = e, { steps: a, currentStep: n, width: r } = it(t);
|
|
4072
|
+
return (i, A) => (u(), g("div", vo, [
|
|
4073
|
+
y("div", mo, [
|
|
4074
|
+
y("div", go, [
|
|
4063
4075
|
y("div", {
|
|
4064
4076
|
class: "step step--active",
|
|
4065
|
-
"aria-current":
|
|
4077
|
+
"aria-current": o(n) === 0 ? "step" : void 0
|
|
4066
4078
|
}, [...A[0] || (A[0] = [
|
|
4067
4079
|
y("span", { class: "b1-regular" }, "1", -1)
|
|
4068
|
-
])], 8,
|
|
4069
|
-
(u(!0), g(_, null,
|
|
4070
|
-
key:
|
|
4080
|
+
])], 8, Io),
|
|
4081
|
+
(u(!0), g(_, null, re(o(a).slice(1, o(a).length), (l, s) => (u(), g("div", {
|
|
4082
|
+
key: s,
|
|
4071
4083
|
class: "steps-container"
|
|
4072
4084
|
}, [
|
|
4073
4085
|
y("div", {
|
|
4074
|
-
class: F(["separator", { "separator--active":
|
|
4086
|
+
class: F(["separator", { "separator--active": s + 1 <= o(n) }])
|
|
4075
4087
|
}, null, 2),
|
|
4076
4088
|
y("div", {
|
|
4077
|
-
class: F(["step", { "step--active":
|
|
4078
|
-
"aria-current":
|
|
4089
|
+
class: F(["step", { "step--active": s + 1 <= o(n) }]),
|
|
4090
|
+
"aria-current": s + 1 === o(n) ? "step" : void 0
|
|
4079
4091
|
}, [
|
|
4080
|
-
y("span",
|
|
4081
|
-
], 10,
|
|
4092
|
+
y("span", bo, Z(s + 2), 1)
|
|
4093
|
+
], 10, ho)
|
|
4082
4094
|
]))), 128))
|
|
4083
4095
|
]),
|
|
4084
|
-
y("div",
|
|
4085
|
-
(u(!0), g(_, null,
|
|
4086
|
-
key:
|
|
4096
|
+
y("div", Co, [
|
|
4097
|
+
(u(!0), g(_, null, re(o(a), (l, s) => (u(), g("div", {
|
|
4098
|
+
key: s,
|
|
4087
4099
|
class: "label-container"
|
|
4088
4100
|
}, [
|
|
4089
4101
|
y("span", {
|
|
4090
4102
|
class: F(["label", {
|
|
4091
|
-
"b1-bold":
|
|
4092
|
-
"b1-light":
|
|
4103
|
+
"b1-bold": s <= o(n),
|
|
4104
|
+
"b1-light": s > o(n)
|
|
4093
4105
|
}])
|
|
4094
|
-
}, Z(
|
|
4106
|
+
}, Z(l), 3)
|
|
4095
4107
|
]))), 128))
|
|
4096
4108
|
])
|
|
4097
4109
|
])
|
|
4098
4110
|
]));
|
|
4099
4111
|
}
|
|
4100
|
-
}),
|
|
4112
|
+
}), Jl = /* @__PURE__ */ V(yo, [["__scopeId", "data-v-26a5b40e"]]), _l = {
|
|
4101
4113
|
name: "AvDrawer",
|
|
4102
4114
|
props: ["show", "position", "width"],
|
|
4103
4115
|
emits: ["escape-pressed"],
|
|
4104
4116
|
template: '<div class="av-drawer-stub"><slot /><slot name="footer" /></div>'
|
|
4105
|
-
},
|
|
4117
|
+
}, Eo = { key: 0 }, Mo = {
|
|
4106
4118
|
key: 0,
|
|
4107
4119
|
class: "av-drawer-backdrop"
|
|
4108
|
-
},
|
|
4120
|
+
}, po = ["aria-label"], No = { class: "av-drawer__content-wrapper" }, To = { class: "av-drawer__content" }, Qo = {
|
|
4109
4121
|
key: 0,
|
|
4110
4122
|
class: "footer-container"
|
|
4111
|
-
},
|
|
4123
|
+
}, Do = /* @__PURE__ */ S({
|
|
4112
4124
|
__name: "AvDrawer",
|
|
4113
4125
|
props: {
|
|
4114
4126
|
show: { type: Boolean },
|
|
@@ -4120,35 +4132,35 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4120
4132
|
},
|
|
4121
4133
|
emits: ["escapePressed"],
|
|
4122
4134
|
setup(e, { emit: t }) {
|
|
4123
|
-
|
|
4124
|
-
b9426bca:
|
|
4125
|
-
v7249d1b4:
|
|
4135
|
+
te((s) => ({
|
|
4136
|
+
b9426bca: o(A),
|
|
4137
|
+
v7249d1b4: o(l)
|
|
4126
4138
|
}));
|
|
4127
|
-
const a = e, n = t, r = ie(), { position: i, width: A, padding:
|
|
4128
|
-
return (
|
|
4129
|
-
e.backdrop ? (u(), g("div",
|
|
4139
|
+
const a = e, n = t, r = ie(), { position: i, width: A, padding: l } = it(a);
|
|
4140
|
+
return (s, c) => e.show ? (u(), g("div", Eo, [
|
|
4141
|
+
e.backdrop ? (u(), g("div", Mo)) : O("", !0),
|
|
4130
4142
|
y("div", {
|
|
4131
|
-
class: F(["av-drawer", `av-drawer--${
|
|
4143
|
+
class: F(["av-drawer", `av-drawer--${o(i)}`]),
|
|
4132
4144
|
role: "dialog",
|
|
4133
4145
|
"aria-modal": "true",
|
|
4134
4146
|
"aria-label": e.ariaLabel,
|
|
4135
|
-
onKeydown: c[0] || (c[0] =
|
|
4147
|
+
onKeydown: c[0] || (c[0] = ot((d) => n("escapePressed"), ["esc"]))
|
|
4136
4148
|
}, [
|
|
4137
|
-
y("div",
|
|
4138
|
-
y("div",
|
|
4139
|
-
B(
|
|
4149
|
+
y("div", No, [
|
|
4150
|
+
y("div", To, [
|
|
4151
|
+
B(s.$slots, "default", {}, void 0, !0)
|
|
4140
4152
|
]),
|
|
4141
|
-
r.footer ? (u(), g("div",
|
|
4142
|
-
B(
|
|
4153
|
+
r.footer ? (u(), g("div", Qo, [
|
|
4154
|
+
B(s.$slots, "footer", {}, void 0, !0)
|
|
4143
4155
|
])) : O("", !0)
|
|
4144
4156
|
])
|
|
4145
|
-
], 42,
|
|
4157
|
+
], 42, po)
|
|
4146
4158
|
])) : O("", !0);
|
|
4147
4159
|
}
|
|
4148
|
-
}),
|
|
4160
|
+
}), $l = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-4b1b7481"]]), Oo = {
|
|
4149
4161
|
key: 0,
|
|
4150
4162
|
class: "header"
|
|
4151
|
-
},
|
|
4163
|
+
}, wo = { class: "footer" }, Lo = /* @__PURE__ */ S({
|
|
4152
4164
|
__name: "AvModal",
|
|
4153
4165
|
props: {
|
|
4154
4166
|
closeButtonVariant: {},
|
|
@@ -4163,30 +4175,30 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4163
4175
|
},
|
|
4164
4176
|
emits: ["close"],
|
|
4165
4177
|
setup(e, { emit: t }) {
|
|
4166
|
-
const a =
|
|
4167
|
-
return (A,
|
|
4168
|
-
const
|
|
4169
|
-
return u(), x(
|
|
4170
|
-
P(
|
|
4178
|
+
const a = Lt(e, ["isLoading"]), n = t, r = ie(), i = p(() => a.closeButtonVariant ?? "DEFAULT");
|
|
4179
|
+
return (A, l) => {
|
|
4180
|
+
const s = ya;
|
|
4181
|
+
return u(), x(zt, { to: "body" }, [
|
|
4182
|
+
P(s, ee(a, {
|
|
4171
4183
|
title: "",
|
|
4172
|
-
onKeydown:
|
|
4184
|
+
onKeydown: l[1] || (l[1] = ot((c) => n("close"), ["esc"]))
|
|
4173
4185
|
}), {
|
|
4174
4186
|
default: Y(() => [
|
|
4175
|
-
r.header ? (u(), g("div",
|
|
4187
|
+
r.header ? (u(), g("div", Oo, [
|
|
4176
4188
|
B(A.$slots, "header", {}, void 0, !0)
|
|
4177
4189
|
])) : O("", !0),
|
|
4178
4190
|
B(A.$slots, "default", {}, void 0, !0)
|
|
4179
4191
|
]),
|
|
4180
4192
|
footer: Y(() => [
|
|
4181
|
-
y("div",
|
|
4182
|
-
P(
|
|
4183
|
-
icon:
|
|
4193
|
+
y("div", wo, [
|
|
4194
|
+
P(o(Ce), {
|
|
4195
|
+
icon: o(R).CLOSE_CIRCLE_OUTLINE,
|
|
4184
4196
|
label: a.closeButtonLabel,
|
|
4185
4197
|
title: a.closeButtonLabel,
|
|
4186
|
-
variant:
|
|
4198
|
+
variant: o(i),
|
|
4187
4199
|
"is-loading": e.isLoading,
|
|
4188
4200
|
size: "sm",
|
|
4189
|
-
onClick:
|
|
4201
|
+
onClick: l[0] || (l[0] = () => n("close"))
|
|
4190
4202
|
}, null, 8, ["icon", "label", "title", "variant", "is-loading"]),
|
|
4191
4203
|
B(A.$slots, "footer", {}, void 0, !0)
|
|
4192
4204
|
])
|
|
@@ -4196,23 +4208,23 @@ const io = ["id", "aria-label"], oo = {
|
|
|
4196
4208
|
]);
|
|
4197
4209
|
};
|
|
4198
4210
|
}
|
|
4199
|
-
}),
|
|
4200
|
-
function
|
|
4211
|
+
}), es = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-3153ca6f"]]);
|
|
4212
|
+
function So(e, t) {
|
|
4201
4213
|
const a = J(!1), n = J({ top: 0, left: 0 }), r = async () => {
|
|
4202
4214
|
if (a.value = !a.value, a.value && e.value) {
|
|
4203
4215
|
await Re();
|
|
4204
|
-
const
|
|
4205
|
-
let c =
|
|
4216
|
+
const l = e.value.getBoundingClientRect(), s = l.bottom + window.scrollY + 4;
|
|
4217
|
+
let c = l.left + window.scrollX;
|
|
4206
4218
|
if (t.value) {
|
|
4207
4219
|
const d = t.value.getBoundingClientRect(), f = window.innerWidth;
|
|
4208
4220
|
c + d.width > f && (c = f - d.width - 16, c < 0 && (c = 16));
|
|
4209
4221
|
}
|
|
4210
|
-
n.value = { top:
|
|
4222
|
+
n.value = { top: s / 16, left: c / 16 };
|
|
4211
4223
|
}
|
|
4212
4224
|
}, i = () => {
|
|
4213
4225
|
a.value = !1;
|
|
4214
|
-
}, A = (
|
|
4215
|
-
e.value && !e.value.contains(
|
|
4226
|
+
}, A = (l) => {
|
|
4227
|
+
e.value && !e.value.contains(l.target) && i();
|
|
4216
4228
|
};
|
|
4217
4229
|
return xe(() => {
|
|
4218
4230
|
document.addEventListener("click", A);
|
|
@@ -4229,8 +4241,8 @@ function Lo(e, t) {
|
|
|
4229
4241
|
* tabbable 6.2.0
|
|
4230
4242
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4231
4243
|
*/
|
|
4232
|
-
var
|
|
4233
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ze = !
|
|
4244
|
+
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() {
|
|
4245
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ze = !Gt && Element.prototype.getRootNode ? function(e) {
|
|
4234
4246
|
var t;
|
|
4235
4247
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
4236
4248
|
} : function(e) {
|
|
@@ -4240,20 +4252,20 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4240
4252
|
a === void 0 && (a = !0);
|
|
4241
4253
|
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
4254
|
return A;
|
|
4243
|
-
},
|
|
4255
|
+
}, ko = function(t) {
|
|
4244
4256
|
var a, n = t == null || (a = t.getAttribute) === null || a === void 0 ? void 0 : a.call(t, "contenteditable");
|
|
4245
4257
|
return n === "" || n === "true";
|
|
4246
|
-
},
|
|
4258
|
+
}, Jt = function(t, a, n) {
|
|
4247
4259
|
if (qe(t))
|
|
4248
4260
|
return [];
|
|
4249
4261
|
var r = Array.prototype.slice.apply(t.querySelectorAll(He));
|
|
4250
4262
|
return a && be.call(t, He) && r.unshift(t), r = r.filter(n), r;
|
|
4251
|
-
},
|
|
4263
|
+
}, _t = function e(t, a, n) {
|
|
4252
4264
|
for (var r = [], i = Array.from(t); i.length; ) {
|
|
4253
4265
|
var A = i.shift();
|
|
4254
4266
|
if (!qe(A, !1))
|
|
4255
4267
|
if (A.tagName === "SLOT") {
|
|
4256
|
-
var
|
|
4268
|
+
var l = A.assignedElements(), s = l.length ? l : A.children, c = e(s, !0, n);
|
|
4257
4269
|
n.flatten ? r.push.apply(r, c) : r.push({
|
|
4258
4270
|
scopeParent: A,
|
|
4259
4271
|
candidates: c
|
|
@@ -4262,8 +4274,8 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4262
4274
|
var d = be.call(A, He);
|
|
4263
4275
|
d && n.filter(A) && (a || !t.includes(A)) && r.push(A);
|
|
4264
4276
|
var f = A.shadowRoot || // check for an undisclosed shadow
|
|
4265
|
-
typeof n.getShadowRoot == "function" && n.getShadowRoot(A),
|
|
4266
|
-
if (f &&
|
|
4277
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(A), h = !qe(f, !1) && (!n.shadowRootFilter || n.shadowRootFilter(A));
|
|
4278
|
+
if (f && h) {
|
|
4267
4279
|
var I = e(f === !0 ? A.children : f.children, !0, n);
|
|
4268
4280
|
n.flatten ? r.push.apply(r, I) : r.push({
|
|
4269
4281
|
scopeParent: A,
|
|
@@ -4274,35 +4286,35 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4274
4286
|
}
|
|
4275
4287
|
}
|
|
4276
4288
|
return r;
|
|
4277
|
-
},
|
|
4289
|
+
}, $t = function(t) {
|
|
4278
4290
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
4279
4291
|
}, he = function(t) {
|
|
4280
4292
|
if (!t)
|
|
4281
4293
|
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;
|
|
4294
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || ko(t)) && !$t(t) ? 0 : t.tabIndex;
|
|
4286
4295
|
}, zo = function(t, a) {
|
|
4296
|
+
var n = he(t);
|
|
4297
|
+
return n < 0 && a && !$t(t) ? 0 : n;
|
|
4298
|
+
}, xo = function(t, a) {
|
|
4287
4299
|
return t.tabIndex === a.tabIndex ? t.documentOrder - a.documentOrder : t.tabIndex - a.tabIndex;
|
|
4288
|
-
},
|
|
4300
|
+
}, ea = function(t) {
|
|
4289
4301
|
return t.tagName === "INPUT";
|
|
4290
|
-
}, xo = function(t) {
|
|
4291
|
-
return $t(t) && t.type === "hidden";
|
|
4292
4302
|
}, jo = function(t) {
|
|
4303
|
+
return ea(t) && t.type === "hidden";
|
|
4304
|
+
}, Bo = function(t) {
|
|
4293
4305
|
var a = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
4294
4306
|
return n.tagName === "SUMMARY";
|
|
4295
4307
|
});
|
|
4296
4308
|
return a;
|
|
4297
|
-
},
|
|
4309
|
+
}, Po = function(t, a) {
|
|
4298
4310
|
for (var n = 0; n < t.length; n++)
|
|
4299
4311
|
if (t[n].checked && t[n].form === a)
|
|
4300
4312
|
return t[n];
|
|
4301
|
-
},
|
|
4313
|
+
}, Wo = function(t) {
|
|
4302
4314
|
if (!t.name)
|
|
4303
4315
|
return !0;
|
|
4304
|
-
var a = t.form || Ze(t), n = function(
|
|
4305
|
-
return a.querySelectorAll('input[type="radio"][name="' +
|
|
4316
|
+
var a = t.form || Ze(t), n = function(l) {
|
|
4317
|
+
return a.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
4306
4318
|
}, r;
|
|
4307
4319
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
4308
4320
|
r = n(window.CSS.escape(t.name));
|
|
@@ -4312,26 +4324,26 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4312
4324
|
} catch (A) {
|
|
4313
4325
|
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
4326
|
}
|
|
4315
|
-
var i =
|
|
4327
|
+
var i = Po(r, t.form);
|
|
4316
4328
|
return !i || i === t;
|
|
4317
|
-
}, Wo = function(t) {
|
|
4318
|
-
return $t(t) && t.type === "radio";
|
|
4319
4329
|
}, Vo = function(t) {
|
|
4320
|
-
return
|
|
4330
|
+
return ea(t) && t.type === "radio";
|
|
4321
4331
|
}, Uo = function(t) {
|
|
4332
|
+
return Vo(t) && !Wo(t);
|
|
4333
|
+
}, Xo = function(t) {
|
|
4322
4334
|
var a, n = t && Ze(t), r = (a = n) === null || a === void 0 ? void 0 : a.host, i = !1;
|
|
4323
4335
|
if (n && n !== t) {
|
|
4324
|
-
var A,
|
|
4325
|
-
for (i = !!((A = r) !== null && A !== void 0 && (
|
|
4336
|
+
var A, l, s;
|
|
4337
|
+
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
4338
|
var c, d, f;
|
|
4327
4339
|
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
4340
|
}
|
|
4329
4341
|
}
|
|
4330
4342
|
return i;
|
|
4331
|
-
},
|
|
4343
|
+
}, Tt = function(t) {
|
|
4332
4344
|
var a = t.getBoundingClientRect(), n = a.width, r = a.height;
|
|
4333
4345
|
return n === 0 && r === 0;
|
|
4334
|
-
},
|
|
4346
|
+
}, Ho = function(t, a) {
|
|
4335
4347
|
var n = a.displayCheck, r = a.getShadowRoot;
|
|
4336
4348
|
if (getComputedStyle(t).visibility === "hidden")
|
|
4337
4349
|
return !0;
|
|
@@ -4340,22 +4352,22 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4340
4352
|
return !0;
|
|
4341
4353
|
if (!n || n === "full" || n === "legacy-full") {
|
|
4342
4354
|
if (typeof r == "function") {
|
|
4343
|
-
for (var
|
|
4344
|
-
var
|
|
4345
|
-
if (
|
|
4346
|
-
return
|
|
4347
|
-
t.assignedSlot ? t = t.assignedSlot : !
|
|
4355
|
+
for (var l = t; t; ) {
|
|
4356
|
+
var s = t.parentElement, c = Ze(t);
|
|
4357
|
+
if (s && !s.shadowRoot && r(s) === !0)
|
|
4358
|
+
return Tt(t);
|
|
4359
|
+
t.assignedSlot ? t = t.assignedSlot : !s && c !== t.ownerDocument ? t = c.host : t = s;
|
|
4348
4360
|
}
|
|
4349
|
-
t =
|
|
4361
|
+
t = l;
|
|
4350
4362
|
}
|
|
4351
|
-
if (
|
|
4363
|
+
if (Xo(t))
|
|
4352
4364
|
return !t.getClientRects().length;
|
|
4353
4365
|
if (n !== "legacy-full")
|
|
4354
4366
|
return !0;
|
|
4355
4367
|
} else if (n === "non-zero-area")
|
|
4356
|
-
return
|
|
4368
|
+
return Tt(t);
|
|
4357
4369
|
return !1;
|
|
4358
|
-
},
|
|
4370
|
+
}, Zo = function(t) {
|
|
4359
4371
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
4360
4372
|
for (var a = t.parentElement; a; ) {
|
|
4361
4373
|
if (a.tagName === "FIELDSET" && a.disabled) {
|
|
@@ -4373,81 +4385,81 @@ var Ft = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4373
4385
|
return !(a.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
4374
4386
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
4375
4387
|
// note related to `candidateSelectors`)
|
|
4376
|
-
qe(a) ||
|
|
4377
|
-
|
|
4378
|
-
},
|
|
4379
|
-
return !(
|
|
4380
|
-
},
|
|
4388
|
+
qe(a) || jo(a) || Ho(a, t) || // For a details element with a summary, the summary element gets the focus
|
|
4389
|
+
Bo(a) || Zo(a));
|
|
4390
|
+
}, at = function(t, a) {
|
|
4391
|
+
return !(Uo(a) || he(a) < 0 || !Ye(t, a));
|
|
4392
|
+
}, qo = function(t) {
|
|
4381
4393
|
var a = parseInt(t.getAttribute("tabindex"), 10);
|
|
4382
4394
|
return !!(isNaN(a) || a >= 0);
|
|
4383
|
-
},
|
|
4395
|
+
}, Yo = function e(t) {
|
|
4384
4396
|
var a = [], n = [];
|
|
4385
4397
|
return t.forEach(function(r, i) {
|
|
4386
|
-
var A = !!r.scopeParent,
|
|
4387
|
-
|
|
4398
|
+
var A = !!r.scopeParent, l = A ? r.scopeParent : r, s = zo(l, A), c = A ? e(r.candidates) : l;
|
|
4399
|
+
s === 0 ? A ? a.push.apply(a, c) : a.push(l) : n.push({
|
|
4388
4400
|
documentOrder: i,
|
|
4389
|
-
tabIndex:
|
|
4401
|
+
tabIndex: s,
|
|
4390
4402
|
item: r,
|
|
4391
4403
|
isScope: A,
|
|
4392
4404
|
content: c
|
|
4393
4405
|
});
|
|
4394
|
-
}), n.sort(
|
|
4406
|
+
}), n.sort(xo).reduce(function(r, i) {
|
|
4395
4407
|
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
4396
4408
|
}, []).concat(a);
|
|
4397
|
-
},
|
|
4409
|
+
}, Ro = function(t, a) {
|
|
4398
4410
|
a = a || {};
|
|
4399
4411
|
var n;
|
|
4400
|
-
return a.getShadowRoot ? n =
|
|
4401
|
-
filter:
|
|
4412
|
+
return a.getShadowRoot ? n = _t([t], a.includeContainer, {
|
|
4413
|
+
filter: at.bind(null, a),
|
|
4402
4414
|
flatten: !1,
|
|
4403
4415
|
getShadowRoot: a.getShadowRoot,
|
|
4404
|
-
shadowRootFilter:
|
|
4405
|
-
}) : n =
|
|
4406
|
-
},
|
|
4416
|
+
shadowRootFilter: qo
|
|
4417
|
+
}) : n = Jt(t, a.includeContainer, at.bind(null, a)), Yo(n);
|
|
4418
|
+
}, Fo = function(t, a) {
|
|
4407
4419
|
a = a || {};
|
|
4408
4420
|
var n;
|
|
4409
|
-
return a.getShadowRoot ? n =
|
|
4421
|
+
return a.getShadowRoot ? n = _t([t], a.includeContainer, {
|
|
4410
4422
|
filter: Ye.bind(null, a),
|
|
4411
4423
|
flatten: !0,
|
|
4412
4424
|
getShadowRoot: a.getShadowRoot
|
|
4413
|
-
}) : n =
|
|
4425
|
+
}) : n = Jt(t, a.includeContainer, Ye.bind(null, a)), n;
|
|
4414
4426
|
}, Ee = function(t, a) {
|
|
4415
4427
|
if (a = a || {}, !t)
|
|
4416
4428
|
throw new Error("No node provided");
|
|
4417
|
-
return be.call(t, He) === !1 ? !1 :
|
|
4418
|
-
},
|
|
4429
|
+
return be.call(t, He) === !1 ? !1 : at(a, t);
|
|
4430
|
+
}, Ko = /* @__PURE__ */ Kt.concat("iframe").join(","), et = function(t, a) {
|
|
4419
4431
|
if (a = a || {}, !t)
|
|
4420
4432
|
throw new Error("No node provided");
|
|
4421
|
-
return be.call(t,
|
|
4433
|
+
return be.call(t, Ko) === !1 ? !1 : Ye(a, t);
|
|
4422
4434
|
};
|
|
4423
4435
|
/*!
|
|
4424
4436
|
* focus-trap 7.6.5
|
|
4425
4437
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
4426
4438
|
*/
|
|
4427
|
-
function
|
|
4439
|
+
function nt(e, t) {
|
|
4428
4440
|
(t == null || t > e.length) && (t = e.length);
|
|
4429
4441
|
for (var a = 0, n = Array(t); a < t; a++) n[a] = e[a];
|
|
4430
4442
|
return n;
|
|
4431
4443
|
}
|
|
4432
|
-
function
|
|
4433
|
-
if (Array.isArray(e)) return
|
|
4444
|
+
function Go(e) {
|
|
4445
|
+
if (Array.isArray(e)) return nt(e);
|
|
4434
4446
|
}
|
|
4435
|
-
function
|
|
4436
|
-
return (t =
|
|
4447
|
+
function Jo(e, t, a) {
|
|
4448
|
+
return (t = al(t)) in e ? Object.defineProperty(e, t, {
|
|
4437
4449
|
value: a,
|
|
4438
4450
|
enumerable: !0,
|
|
4439
4451
|
configurable: !0,
|
|
4440
4452
|
writable: !0
|
|
4441
4453
|
}) : e[t] = a, e;
|
|
4442
4454
|
}
|
|
4443
|
-
function
|
|
4455
|
+
function _o(e) {
|
|
4444
4456
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
4445
4457
|
}
|
|
4446
|
-
function
|
|
4458
|
+
function $o() {
|
|
4447
4459
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4448
4460
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
4449
4461
|
}
|
|
4450
|
-
function
|
|
4462
|
+
function Qt(e, t) {
|
|
4451
4463
|
var a = Object.keys(e);
|
|
4452
4464
|
if (Object.getOwnPropertySymbols) {
|
|
4453
4465
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -4457,21 +4469,21 @@ function Tt(e, t) {
|
|
|
4457
4469
|
}
|
|
4458
4470
|
return a;
|
|
4459
4471
|
}
|
|
4460
|
-
function
|
|
4472
|
+
function Dt(e) {
|
|
4461
4473
|
for (var t = 1; t < arguments.length; t++) {
|
|
4462
4474
|
var a = arguments[t] != null ? arguments[t] : {};
|
|
4463
|
-
t % 2 ?
|
|
4464
|
-
|
|
4465
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) :
|
|
4475
|
+
t % 2 ? Qt(Object(a), !0).forEach(function(n) {
|
|
4476
|
+
Jo(e, n, a[n]);
|
|
4477
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Qt(Object(a)).forEach(function(n) {
|
|
4466
4478
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(a, n));
|
|
4467
4479
|
});
|
|
4468
4480
|
}
|
|
4469
4481
|
return e;
|
|
4470
4482
|
}
|
|
4471
|
-
function
|
|
4472
|
-
return
|
|
4483
|
+
function el(e) {
|
|
4484
|
+
return Go(e) || _o(e) || nl(e) || $o();
|
|
4473
4485
|
}
|
|
4474
|
-
function
|
|
4486
|
+
function tl(e, t) {
|
|
4475
4487
|
if (typeof e != "object" || !e) return e;
|
|
4476
4488
|
var a = e[Symbol.toPrimitive];
|
|
4477
4489
|
if (a !== void 0) {
|
|
@@ -4481,18 +4493,18 @@ function el(e, t) {
|
|
|
4481
4493
|
}
|
|
4482
4494
|
return (t === "string" ? String : Number)(e);
|
|
4483
4495
|
}
|
|
4484
|
-
function
|
|
4485
|
-
var t =
|
|
4496
|
+
function al(e) {
|
|
4497
|
+
var t = tl(e, "string");
|
|
4486
4498
|
return typeof t == "symbol" ? t : t + "";
|
|
4487
4499
|
}
|
|
4488
|
-
function
|
|
4500
|
+
function nl(e, t) {
|
|
4489
4501
|
if (e) {
|
|
4490
|
-
if (typeof e == "string") return
|
|
4502
|
+
if (typeof e == "string") return nt(e, t);
|
|
4491
4503
|
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) ?
|
|
4504
|
+
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
4505
|
}
|
|
4494
4506
|
}
|
|
4495
|
-
var
|
|
4507
|
+
var Ot = {
|
|
4496
4508
|
activateTrap: function(t, a) {
|
|
4497
4509
|
if (t.length > 0) {
|
|
4498
4510
|
var n = t[t.length - 1];
|
|
@@ -4505,17 +4517,17 @@ var Dt = {
|
|
|
4505
4517
|
var n = t.indexOf(a);
|
|
4506
4518
|
n !== -1 && t.splice(n, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
4507
4519
|
}
|
|
4508
|
-
}, nl = function(t) {
|
|
4509
|
-
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
4510
4520
|
}, rl = function(t) {
|
|
4521
|
+
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
4522
|
+
}, Al = function(t) {
|
|
4511
4523
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
4512
4524
|
}, Se = function(t) {
|
|
4513
4525
|
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
4526
|
}, il = function(t) {
|
|
4527
|
+
return Se(t) && !t.shiftKey;
|
|
4528
|
+
}, ol = function(t) {
|
|
4517
4529
|
return Se(t) && t.shiftKey;
|
|
4518
|
-
},
|
|
4530
|
+
}, wt = function(t) {
|
|
4519
4531
|
return setTimeout(t, 0);
|
|
4520
4532
|
}, we = function(t) {
|
|
4521
4533
|
for (var a = arguments.length, n = new Array(a > 1 ? a - 1 : 0), r = 1; r < a; r++)
|
|
@@ -4523,13 +4535,13 @@ var Dt = {
|
|
|
4523
4535
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
4524
4536
|
}, Be = function(t) {
|
|
4525
4537
|
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) ||
|
|
4538
|
+
}, ll = [], sl = function(t, a) {
|
|
4539
|
+
var n = (a == null ? void 0 : a.document) || document, r = (a == null ? void 0 : a.trapStack) || ll, i = Dt({
|
|
4528
4540
|
returnFocusOnDeactivate: !0,
|
|
4529
4541
|
escapeDeactivates: !0,
|
|
4530
4542
|
delayInitialFocus: !0,
|
|
4531
|
-
isKeyForward:
|
|
4532
|
-
isKeyBackward:
|
|
4543
|
+
isKeyForward: il,
|
|
4544
|
+
isKeyBackward: ol
|
|
4533
4545
|
}, a), A = {
|
|
4534
4546
|
// containers given to createFocusTrap()
|
|
4535
4547
|
// @type {Array<HTMLElement>}
|
|
@@ -4567,10 +4579,10 @@ var Dt = {
|
|
|
4567
4579
|
delayInitialFocusTimer: void 0,
|
|
4568
4580
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
4569
4581
|
recentNavEvent: void 0
|
|
4570
|
-
},
|
|
4571
|
-
return v && v[
|
|
4572
|
-
}, c = function(v,
|
|
4573
|
-
var N = typeof (
|
|
4582
|
+
}, l, s = function(v, b, N) {
|
|
4583
|
+
return v && v[b] !== void 0 ? v[b] : i[N || b];
|
|
4584
|
+
}, c = function(v, b) {
|
|
4585
|
+
var N = typeof (b == null ? void 0 : b.composedPath) == "function" ? b.composedPath() : void 0;
|
|
4574
4586
|
return A.containerGroups.findIndex(function(k) {
|
|
4575
4587
|
var U = k.container, q = k.tabbableNodes;
|
|
4576
4588
|
return U.contains(v) || // fall back to explicit tabbable search which will take into consideration any
|
|
@@ -4582,8 +4594,8 @@ var Dt = {
|
|
|
4582
4594
|
});
|
|
4583
4595
|
});
|
|
4584
4596
|
}, d = function(v) {
|
|
4585
|
-
var
|
|
4586
|
-
if (typeof L == "function" && (L = L.apply(void 0,
|
|
4597
|
+
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, N = b.hasFallback, k = N === void 0 ? !1 : N, U = b.params, q = U === void 0 ? [] : U, L = i[v];
|
|
4598
|
+
if (typeof L == "function" && (L = L.apply(void 0, el(q))), L === !0 && (L = void 0), !L) {
|
|
4587
4599
|
if (L === void 0 || L === !1)
|
|
4588
4600
|
return L;
|
|
4589
4601
|
throw new Error("`".concat(v, "` was specified but was not a node, or did not return a node"));
|
|
@@ -4605,29 +4617,29 @@ var Dt = {
|
|
|
4605
4617
|
});
|
|
4606
4618
|
if (v === !1)
|
|
4607
4619
|
return !1;
|
|
4608
|
-
if (v === void 0 || v &&
|
|
4620
|
+
if (v === void 0 || v && !et(v, i.tabbableOptions))
|
|
4609
4621
|
if (c(n.activeElement) >= 0)
|
|
4610
4622
|
v = n.activeElement;
|
|
4611
4623
|
else {
|
|
4612
|
-
var
|
|
4624
|
+
var b = A.tabbableGroups[0], N = b && b.firstTabbableNode;
|
|
4613
4625
|
v = N || d("fallbackFocus");
|
|
4614
4626
|
}
|
|
4615
4627
|
else v === null && (v = d("fallbackFocus"));
|
|
4616
4628
|
if (!v)
|
|
4617
4629
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
4618
4630
|
return v;
|
|
4619
|
-
},
|
|
4631
|
+
}, h = function() {
|
|
4620
4632
|
if (A.containerGroups = A.containers.map(function(v) {
|
|
4621
|
-
var
|
|
4633
|
+
var b = Ro(v, i.tabbableOptions), N = Fo(v, i.tabbableOptions), k = b.length > 0 ? b[0] : void 0, U = b.length > 0 ? b[b.length - 1] : void 0, q = N.find(function(G) {
|
|
4622
4634
|
return Ee(G);
|
|
4623
4635
|
}), L = N.slice().reverse().find(function(G) {
|
|
4624
4636
|
return Ee(G);
|
|
4625
|
-
}), K = !!
|
|
4637
|
+
}), K = !!b.find(function(G) {
|
|
4626
4638
|
return he(G) > 0;
|
|
4627
4639
|
});
|
|
4628
4640
|
return {
|
|
4629
4641
|
container: v,
|
|
4630
|
-
tabbableNodes:
|
|
4642
|
+
tabbableNodes: b,
|
|
4631
4643
|
focusableNodes: N,
|
|
4632
4644
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
4633
4645
|
posTabIndexesFound: K,
|
|
@@ -4655,12 +4667,12 @@ var Dt = {
|
|
|
4655
4667
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
4656
4668
|
*/
|
|
4657
4669
|
nextTabbableNode: function(ge) {
|
|
4658
|
-
var Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, de =
|
|
4670
|
+
var Ne = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, de = b.indexOf(ge);
|
|
4659
4671
|
return de < 0 ? Ne ? N.slice(N.indexOf(ge) + 1).find(function(Te) {
|
|
4660
4672
|
return Ee(Te);
|
|
4661
4673
|
}) : N.slice(0, N.indexOf(ge)).reverse().find(function(Te) {
|
|
4662
4674
|
return Ee(Te);
|
|
4663
|
-
}) :
|
|
4675
|
+
}) : b[de + (Ne ? 1 : -1)];
|
|
4664
4676
|
}
|
|
4665
4677
|
};
|
|
4666
4678
|
}), A.tabbableGroups = A.containerGroups.filter(function(v) {
|
|
@@ -4672,9 +4684,9 @@ var Dt = {
|
|
|
4672
4684
|
}) && A.containerGroups.length > 1)
|
|
4673
4685
|
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
4674
4686
|
}, I = function(v) {
|
|
4675
|
-
var
|
|
4676
|
-
if (
|
|
4677
|
-
return
|
|
4687
|
+
var b = v.activeElement;
|
|
4688
|
+
if (b)
|
|
4689
|
+
return b.shadowRoot && b.shadowRoot.activeElement !== null ? I(b.shadowRoot) : b;
|
|
4678
4690
|
}, m = function(v) {
|
|
4679
4691
|
if (v !== !1 && v !== I(document)) {
|
|
4680
4692
|
if (!v || !v.focus) {
|
|
@@ -4683,48 +4695,48 @@ var Dt = {
|
|
|
4683
4695
|
}
|
|
4684
4696
|
v.focus({
|
|
4685
4697
|
preventScroll: !!i.preventScroll
|
|
4686
|
-
}), A.mostRecentlyFocusedNode = v,
|
|
4698
|
+
}), A.mostRecentlyFocusedNode = v, rl(v) && v.select();
|
|
4687
4699
|
}
|
|
4688
4700
|
}, C = function(v) {
|
|
4689
|
-
var
|
|
4701
|
+
var b = d("setReturnFocus", {
|
|
4690
4702
|
params: [v]
|
|
4691
4703
|
});
|
|
4692
|
-
return
|
|
4704
|
+
return b || (b === !1 ? !1 : v);
|
|
4693
4705
|
}, M = function(v) {
|
|
4694
|
-
var
|
|
4695
|
-
|
|
4706
|
+
var b = v.target, N = v.event, k = v.isBackward, U = k === void 0 ? !1 : k;
|
|
4707
|
+
b = b || Be(N), h();
|
|
4696
4708
|
var q = null;
|
|
4697
4709
|
if (A.tabbableGroups.length > 0) {
|
|
4698
|
-
var L = c(
|
|
4710
|
+
var L = c(b, N), K = L >= 0 ? A.containerGroups[L] : void 0;
|
|
4699
4711
|
if (L < 0)
|
|
4700
4712
|
U ? q = A.tabbableGroups[A.tabbableGroups.length - 1].lastTabbableNode : q = A.tabbableGroups[0].firstTabbableNode;
|
|
4701
4713
|
else if (U) {
|
|
4702
4714
|
var G = A.tabbableGroups.findIndex(function(Ke) {
|
|
4703
4715
|
var Ge = Ke.firstTabbableNode;
|
|
4704
|
-
return
|
|
4716
|
+
return b === Ge;
|
|
4705
4717
|
});
|
|
4706
|
-
if (G < 0 && (K.container ===
|
|
4718
|
+
if (G < 0 && (K.container === b || et(b, i.tabbableOptions) && !Ee(b, i.tabbableOptions) && !K.nextTabbableNode(b, !1)) && (G = L), G >= 0) {
|
|
4707
4719
|
var ge = G === 0 ? A.tabbableGroups.length - 1 : G - 1, Ne = A.tabbableGroups[ge];
|
|
4708
|
-
q = he(
|
|
4709
|
-
} else Se(N) || (q = K.nextTabbableNode(
|
|
4720
|
+
q = he(b) >= 0 ? Ne.lastTabbableNode : Ne.lastDomTabbableNode;
|
|
4721
|
+
} else Se(N) || (q = K.nextTabbableNode(b, !1));
|
|
4710
4722
|
} else {
|
|
4711
4723
|
var de = A.tabbableGroups.findIndex(function(Ke) {
|
|
4712
4724
|
var Ge = Ke.lastTabbableNode;
|
|
4713
|
-
return
|
|
4725
|
+
return b === Ge;
|
|
4714
4726
|
});
|
|
4715
|
-
if (de < 0 && (K.container ===
|
|
4716
|
-
var Te = de === A.tabbableGroups.length - 1 ? 0 : de + 1,
|
|
4717
|
-
q = he(
|
|
4718
|
-
} else Se(N) || (q = K.nextTabbableNode(
|
|
4727
|
+
if (de < 0 && (K.container === b || et(b, i.tabbableOptions) && !Ee(b, i.tabbableOptions) && !K.nextTabbableNode(b)) && (de = L), de >= 0) {
|
|
4728
|
+
var Te = de === A.tabbableGroups.length - 1 ? 0 : de + 1, ut = A.tabbableGroups[Te];
|
|
4729
|
+
q = he(b) >= 0 ? ut.firstTabbableNode : ut.firstDomTabbableNode;
|
|
4730
|
+
} else Se(N) || (q = K.nextTabbableNode(b));
|
|
4719
4731
|
}
|
|
4720
4732
|
} else
|
|
4721
4733
|
q = d("fallbackFocus");
|
|
4722
4734
|
return q;
|
|
4723
4735
|
}, T = function(v) {
|
|
4724
|
-
var
|
|
4725
|
-
if (!(c(
|
|
4736
|
+
var b = Be(v);
|
|
4737
|
+
if (!(c(b, v) >= 0)) {
|
|
4726
4738
|
if (we(i.clickOutsideDeactivates, v)) {
|
|
4727
|
-
|
|
4739
|
+
l.deactivate({
|
|
4728
4740
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
4729
4741
|
// which will result in the outside click setting focus to the node
|
|
4730
4742
|
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
@@ -4738,9 +4750,9 @@ var Dt = {
|
|
|
4738
4750
|
we(i.allowOutsideClick, v) || v.preventDefault();
|
|
4739
4751
|
}
|
|
4740
4752
|
}, Q = function(v) {
|
|
4741
|
-
var
|
|
4742
|
-
if (N ||
|
|
4743
|
-
N && (A.mostRecentlyFocusedNode =
|
|
4753
|
+
var b = Be(v), N = c(b, v) >= 0;
|
|
4754
|
+
if (N || b instanceof Document)
|
|
4755
|
+
N && (A.mostRecentlyFocusedNode = b);
|
|
4744
4756
|
else {
|
|
4745
4757
|
v.stopImmediatePropagation();
|
|
4746
4758
|
var k, U = !0;
|
|
@@ -4770,23 +4782,23 @@ var Dt = {
|
|
|
4770
4782
|
}
|
|
4771
4783
|
A.recentNavEvent = void 0;
|
|
4772
4784
|
}, E = function(v) {
|
|
4773
|
-
var
|
|
4785
|
+
var b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
4774
4786
|
A.recentNavEvent = v;
|
|
4775
4787
|
var N = M({
|
|
4776
4788
|
event: v,
|
|
4777
|
-
isBackward:
|
|
4789
|
+
isBackward: b
|
|
4778
4790
|
});
|
|
4779
4791
|
N && (Se(v) && v.preventDefault(), m(N));
|
|
4780
4792
|
}, D = function(v) {
|
|
4781
4793
|
(i.isKeyForward(v) || i.isKeyBackward(v)) && E(v, i.isKeyBackward(v));
|
|
4782
4794
|
}, j = function(v) {
|
|
4783
|
-
|
|
4795
|
+
Al(v) && we(i.escapeDeactivates, v) !== !1 && (v.preventDefault(), l.deactivate());
|
|
4784
4796
|
}, W = function(v) {
|
|
4785
|
-
var
|
|
4786
|
-
c(
|
|
4797
|
+
var b = Be(v);
|
|
4798
|
+
c(b, v) >= 0 || we(i.clickOutsideDeactivates, v) || we(i.allowOutsideClick, v) || (v.preventDefault(), v.stopImmediatePropagation());
|
|
4787
4799
|
}, z = function() {
|
|
4788
4800
|
if (A.active)
|
|
4789
|
-
return
|
|
4801
|
+
return Ot.activateTrap(r, l), A.delayInitialFocusTimer = i.delayInitialFocus ? wt(function() {
|
|
4790
4802
|
m(f());
|
|
4791
4803
|
}) : m(f()), n.addEventListener("focusin", Q, !0), n.addEventListener("mousedown", T, {
|
|
4792
4804
|
capture: !0,
|
|
@@ -4800,18 +4812,18 @@ var Dt = {
|
|
|
4800
4812
|
}), n.addEventListener("keydown", D, {
|
|
4801
4813
|
capture: !0,
|
|
4802
4814
|
passive: !1
|
|
4803
|
-
}), n.addEventListener("keydown", j),
|
|
4815
|
+
}), n.addEventListener("keydown", j), l;
|
|
4804
4816
|
}, Ae = function() {
|
|
4805
4817
|
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),
|
|
4818
|
+
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
4819
|
}, w = function(v) {
|
|
4808
|
-
var
|
|
4820
|
+
var b = v.some(function(N) {
|
|
4809
4821
|
var k = Array.from(N.removedNodes);
|
|
4810
4822
|
return k.some(function(U) {
|
|
4811
4823
|
return U === A.mostRecentlyFocusedNode;
|
|
4812
4824
|
});
|
|
4813
4825
|
});
|
|
4814
|
-
|
|
4826
|
+
b && m(f());
|
|
4815
4827
|
}, oe = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(w) : void 0, $ = function() {
|
|
4816
4828
|
oe && (oe.disconnect(), A.active && !A.paused && A.containers.map(function(v) {
|
|
4817
4829
|
oe.observe(v, {
|
|
@@ -4820,7 +4832,7 @@ var Dt = {
|
|
|
4820
4832
|
});
|
|
4821
4833
|
}));
|
|
4822
4834
|
};
|
|
4823
|
-
return
|
|
4835
|
+
return l = {
|
|
4824
4836
|
get active() {
|
|
4825
4837
|
return A.active;
|
|
4826
4838
|
},
|
|
@@ -4830,26 +4842,26 @@ var Dt = {
|
|
|
4830
4842
|
activate: function(v) {
|
|
4831
4843
|
if (A.active)
|
|
4832
4844
|
return this;
|
|
4833
|
-
var
|
|
4834
|
-
k ||
|
|
4845
|
+
var b = s(v, "onActivate"), N = s(v, "onPostActivate"), k = s(v, "checkCanFocusTrap");
|
|
4846
|
+
k || h(), A.active = !0, A.paused = !1, A.nodeFocusedBeforeActivation = I(n), b == null || b();
|
|
4835
4847
|
var U = function() {
|
|
4836
|
-
k &&
|
|
4848
|
+
k && h(), z(), $(), N == null || N();
|
|
4837
4849
|
};
|
|
4838
4850
|
return k ? (k(A.containers.concat()).then(U, U), this) : (U(), this);
|
|
4839
4851
|
},
|
|
4840
4852
|
deactivate: function(v) {
|
|
4841
4853
|
if (!A.active)
|
|
4842
4854
|
return this;
|
|
4843
|
-
var
|
|
4855
|
+
var b = Dt({
|
|
4844
4856
|
onDeactivate: i.onDeactivate,
|
|
4845
4857
|
onPostDeactivate: i.onPostDeactivate,
|
|
4846
4858
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
4847
4859
|
}, v);
|
|
4848
|
-
clearTimeout(A.delayInitialFocusTimer), A.delayInitialFocusTimer = void 0, Ae(), A.active = !1, A.paused = !1, $(),
|
|
4849
|
-
var N =
|
|
4860
|
+
clearTimeout(A.delayInitialFocusTimer), A.delayInitialFocusTimer = void 0, Ae(), A.active = !1, A.paused = !1, $(), Ot.deactivateTrap(r, l);
|
|
4861
|
+
var N = s(b, "onDeactivate"), k = s(b, "onPostDeactivate"), U = s(b, "checkCanReturnFocus"), q = s(b, "returnFocus", "returnFocusOnDeactivate");
|
|
4850
4862
|
N == null || N();
|
|
4851
4863
|
var L = function() {
|
|
4852
|
-
|
|
4864
|
+
wt(function() {
|
|
4853
4865
|
q && m(C(A.nodeFocusedBeforeActivation)), k == null || k();
|
|
4854
4866
|
});
|
|
4855
4867
|
};
|
|
@@ -4862,39 +4874,39 @@ var Dt = {
|
|
|
4862
4874
|
return A.active ? (A.manuallyPaused = !1, r[r.length - 1] !== this ? this : this._setPausedState(!1, v)) : this;
|
|
4863
4875
|
},
|
|
4864
4876
|
updateContainerElements: function(v) {
|
|
4865
|
-
var
|
|
4866
|
-
return A.containers =
|
|
4877
|
+
var b = [].concat(v).filter(Boolean);
|
|
4878
|
+
return A.containers = b.map(function(N) {
|
|
4867
4879
|
return typeof N == "string" ? n.querySelector(N) : N;
|
|
4868
|
-
}), A.active &&
|
|
4880
|
+
}), A.active && h(), $(), this;
|
|
4869
4881
|
}
|
|
4870
|
-
}, Object.defineProperties(
|
|
4882
|
+
}, Object.defineProperties(l, {
|
|
4871
4883
|
_isManuallyPaused: {
|
|
4872
4884
|
value: function() {
|
|
4873
4885
|
return A.manuallyPaused;
|
|
4874
4886
|
}
|
|
4875
4887
|
},
|
|
4876
4888
|
_setPausedState: {
|
|
4877
|
-
value: function(v,
|
|
4889
|
+
value: function(v, b) {
|
|
4878
4890
|
if (A.paused === v)
|
|
4879
4891
|
return this;
|
|
4880
4892
|
if (A.paused = v, v) {
|
|
4881
|
-
var N =
|
|
4893
|
+
var N = s(b, "onPause"), k = s(b, "onPostPause");
|
|
4882
4894
|
N == null || N(), Ae(), $(), k == null || k();
|
|
4883
4895
|
} else {
|
|
4884
|
-
var U =
|
|
4885
|
-
U == null || U(),
|
|
4896
|
+
var U = s(b, "onUnpause"), q = s(b, "onPostUnpause");
|
|
4897
|
+
U == null || U(), h(), z(), $(), q == null || q();
|
|
4886
4898
|
}
|
|
4887
4899
|
return this;
|
|
4888
4900
|
}
|
|
4889
4901
|
}
|
|
4890
|
-
}),
|
|
4902
|
+
}), l.updateContainerElements(t), l;
|
|
4891
4903
|
};
|
|
4892
|
-
function
|
|
4904
|
+
function cl(e, t) {
|
|
4893
4905
|
let a = null;
|
|
4894
4906
|
function n() {
|
|
4895
4907
|
!e.value || !e.value.querySelector(
|
|
4896
4908
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
4897
|
-
) || (a =
|
|
4909
|
+
) || (a = sl(e.value, {
|
|
4898
4910
|
escapeDeactivates: !0,
|
|
4899
4911
|
onDeactivate: t,
|
|
4900
4912
|
returnFocusOnDeactivate: !0,
|
|
@@ -4909,18 +4921,18 @@ function sl(e, t) {
|
|
|
4909
4921
|
cleanupFocusTrap: r
|
|
4910
4922
|
};
|
|
4911
4923
|
}
|
|
4912
|
-
const
|
|
4924
|
+
const ul = { class: "av-popover-wrapper" }, dl = /* @__PURE__ */ S({
|
|
4913
4925
|
__name: "AvPopover",
|
|
4914
4926
|
props: {
|
|
4915
4927
|
width: { default: "12.5rem" },
|
|
4916
4928
|
padding: { default: "var(--spacing-md)" }
|
|
4917
4929
|
},
|
|
4918
4930
|
setup(e, { expose: t }) {
|
|
4919
|
-
|
|
4931
|
+
te((f) => ({
|
|
4920
4932
|
v75959032: f.width,
|
|
4921
4933
|
v330e9906: f.padding
|
|
4922
4934
|
}));
|
|
4923
|
-
const a = J(null), n = J(null), { showPopover: r, popoverPosition: i, togglePopover: A, closePopover:
|
|
4935
|
+
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
4936
|
function d(f) {
|
|
4925
4937
|
if (!f) {
|
|
4926
4938
|
a.value = null;
|
|
@@ -4930,44 +4942,44 @@ const cl = { class: "av-popover-wrapper" }, ul = /* @__PURE__ */ S({
|
|
|
4930
4942
|
a.value = f;
|
|
4931
4943
|
return;
|
|
4932
4944
|
}
|
|
4933
|
-
const
|
|
4934
|
-
|
|
4945
|
+
const h = f.$el;
|
|
4946
|
+
h instanceof HTMLElement ? a.value = h : a.value = null;
|
|
4935
4947
|
}
|
|
4936
4948
|
return t({ setTriggerRef: d, triggerRef: a }), ce(r, async (f) => {
|
|
4937
|
-
f ? (await Re(),
|
|
4938
|
-
}),
|
|
4949
|
+
f ? (await Re(), s()) : c();
|
|
4950
|
+
}), wa(() => {
|
|
4939
4951
|
c();
|
|
4940
|
-
}), (f,
|
|
4952
|
+
}), (f, h) => (u(), g("div", ul, [
|
|
4941
4953
|
y("div", {
|
|
4942
4954
|
ref: d,
|
|
4943
4955
|
class: "av-popover-trigger-wrapper"
|
|
4944
4956
|
}, [
|
|
4945
|
-
B(f.$slots, "trigger", { toggle:
|
|
4957
|
+
B(f.$slots, "trigger", { toggle: o(A) }, void 0, !0)
|
|
4946
4958
|
]),
|
|
4947
|
-
(u(), x(
|
|
4948
|
-
|
|
4959
|
+
(u(), x(zt, { to: "body" }, [
|
|
4960
|
+
o(r) ? (u(), g("div", {
|
|
4949
4961
|
key: 0,
|
|
4950
4962
|
ref_key: "popoverRef",
|
|
4951
4963
|
ref: n,
|
|
4952
4964
|
tabindex: "-1",
|
|
4953
4965
|
class: "av-popover",
|
|
4954
|
-
style: Ve(`top: ${
|
|
4955
|
-
onKeydown:
|
|
4966
|
+
style: Ve(`top: ${o(i).top}rem; left: ${o(i).left}rem;`),
|
|
4967
|
+
onKeydown: h[0] || (h[0] = ot(se(
|
|
4956
4968
|
//@ts-ignore
|
|
4957
|
-
(...I) =>
|
|
4969
|
+
(...I) => o(l) && o(l)(...I),
|
|
4958
4970
|
["prevent"]
|
|
4959
4971
|
), ["esc"]))
|
|
4960
4972
|
}, [
|
|
4961
|
-
B(f.$slots, "popover", { close:
|
|
4973
|
+
B(f.$slots, "popover", { close: o(l) }, void 0, !0)
|
|
4962
4974
|
], 36)) : O("", !0)
|
|
4963
4975
|
]))
|
|
4964
4976
|
]));
|
|
4965
4977
|
}
|
|
4966
|
-
}),
|
|
4978
|
+
}), ts = /* @__PURE__ */ V(dl, [["__scopeId", "data-v-6a5eaa47"]]), as = {
|
|
4967
4979
|
name: "DsfrBadge",
|
|
4968
4980
|
template: '<div class="dsfr-badge" />',
|
|
4969
4981
|
props: ["label", "type", "small", "ellipsis"]
|
|
4970
|
-
},
|
|
4982
|
+
}, ns = {
|
|
4971
4983
|
name: "DsfrModal",
|
|
4972
4984
|
props: ["opened", "title"],
|
|
4973
4985
|
template: '<div class="dsfr-modal"><slot /><slot name="footer" /></div>',
|
|
@@ -4977,80 +4989,81 @@ const cl = { class: "av-popover-wrapper" }, ul = /* @__PURE__ */ S({
|
|
|
4977
4989
|
this.$emit("keydown", { key: "Escape" });
|
|
4978
4990
|
}
|
|
4979
4991
|
}
|
|
4980
|
-
},
|
|
4992
|
+
}, rs = {
|
|
4981
4993
|
name: "DsfrNavigation",
|
|
4982
4994
|
props: {
|
|
4983
4995
|
navItems: Array
|
|
4984
4996
|
},
|
|
4985
4997
|
template: '<nav class="dsfr-navigation-mock"><slot /></nav>'
|
|
4986
|
-
},
|
|
4998
|
+
}, As = {
|
|
4987
4999
|
name: "VIcon",
|
|
4988
5000
|
props: ["name", "size", "color"],
|
|
4989
5001
|
template: '<div class="v-icon-stub"></div>'
|
|
4990
5002
|
};
|
|
4991
5003
|
export {
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
5004
|
+
Tl as AvAccordion,
|
|
5005
|
+
Ql as AvAccordionsGroup,
|
|
5006
|
+
Ga as AvAlert,
|
|
5007
|
+
Pl as AvAutocomplete,
|
|
5008
|
+
Bl as AvAutocompleteStub,
|
|
5009
|
+
gl as AvBadge,
|
|
5010
|
+
ml as AvBadgeStub,
|
|
4999
5011
|
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
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5012
|
+
Dl as AvButtonStub,
|
|
5013
|
+
bl as AvCard,
|
|
5014
|
+
$l as AvDrawer,
|
|
5015
|
+
_l as AvDrawerStub,
|
|
5016
|
+
wl as AvFileUpload,
|
|
5017
|
+
pl as AvHeader,
|
|
5018
|
+
ft as AvHeaderMenuLinks,
|
|
5019
|
+
ja as AvIconText,
|
|
5020
|
+
fA as AvInput,
|
|
5021
|
+
Vt as AvList,
|
|
5022
|
+
Ut as AvListItem,
|
|
5023
|
+
Sl as AvListItemStub,
|
|
5024
|
+
Ll as AvListStub,
|
|
5025
|
+
rn as AvLogo,
|
|
5026
|
+
es as AvModal,
|
|
5027
|
+
Wl as AvMultiselect,
|
|
5028
|
+
ql as AvNavigation,
|
|
5029
|
+
Il as AvNotice,
|
|
5030
|
+
zl as AvPageSizePicker,
|
|
5031
|
+
Yl as AvPagination,
|
|
5032
|
+
ts as AvPopover,
|
|
5033
|
+
DA as AvRadioButton,
|
|
5034
|
+
jl as AvRadioButtonSet,
|
|
5035
|
+
Ol as AvRichButton,
|
|
5036
|
+
Ul as AvSelect,
|
|
5037
|
+
Vl as AvSelectStub,
|
|
5038
|
+
uo as AvSideMenu,
|
|
5039
|
+
Kl as AvSideNavigation,
|
|
5040
|
+
Fl as AvSideNavigationStub,
|
|
5041
|
+
Jl as AvStepper,
|
|
5042
|
+
Gl as AvStepperStub,
|
|
5043
|
+
Xl as AvTab,
|
|
5044
|
+
Hl as AvTabs,
|
|
5045
|
+
NA as AvTagPicker,
|
|
5046
|
+
xl as AvTagPickerStub,
|
|
5047
|
+
Ml as AvToaster,
|
|
5048
|
+
Zl as AvToggle,
|
|
5049
|
+
ne as AvVIcon,
|
|
5050
|
+
hl as AvVIconStub,
|
|
5039
5051
|
Me as DropdownState,
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5052
|
+
as as DsfrBadgeStub,
|
|
5053
|
+
ns as DsfrModalStub,
|
|
5054
|
+
rs as DsfrNavigationStub,
|
|
5055
|
+
Nl as EsupLogo,
|
|
5056
|
+
yl as ICONS_DATA_URL,
|
|
5045
5057
|
R as MDI_ICONS,
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5058
|
+
Xt as PageSizes,
|
|
5059
|
+
Cl as RI_ICONS,
|
|
5060
|
+
As as VIconStub,
|
|
5061
|
+
Ba as formatTextToHtml,
|
|
5062
|
+
Rl as getPaginationPages,
|
|
5063
|
+
El as isValidEmail,
|
|
5064
|
+
kl as pageSizeValues,
|
|
5065
|
+
ls as registerNavigationLinkKey,
|
|
5066
|
+
Xa as removeDuplicates,
|
|
5067
|
+
Je as toSentenceCase,
|
|
5068
|
+
cl as useFocusTrap
|
|
5056
5069
|
};
|