@dataesr/dsfr-plus 0.0.0
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/components/Accordion/Accordion.d.ts +19 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/AccordionGroup.d.ts +9 -0
- package/dist/components/Accordion/AccordionGroup.d.ts.map +1 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Accordion/useMutationObserver.d.ts +8 -0
- package/dist/components/Accordion/useMutationObserver.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +23 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +15 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/BadgeGroup.d.ts +8 -0
- package/dist/components/Badge/BadgeGroup.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +3 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +15 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +13 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/ButtonGroup.d.ts +15 -0
- package/dist/components/Button/ButtonGroup.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +3 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Fieldset/Fieldset.d.ts +25 -0
- package/dist/components/Fieldset/Fieldset.d.ts.map +1 -0
- package/dist/components/Fieldset/index.d.ts +2 -0
- package/dist/components/Fieldset/index.d.ts.map +1 -0
- package/dist/components/FileUpload/FileUpload.d.ts +20 -0
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -0
- package/dist/components/FileUpload/index.d.ts +2 -0
- package/dist/components/FileUpload/index.d.ts.map +1 -0
- package/dist/components/Grid/Col.d.ts +22 -0
- package/dist/components/Grid/Col.d.ts.map +1 -0
- package/dist/components/Grid/Container.d.ts +10 -0
- package/dist/components/Grid/Container.d.ts.map +1 -0
- package/dist/components/Grid/Row.d.ts +12 -0
- package/dist/components/Grid/Row.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +4 -0
- package/dist/components/Grid/index.d.ts.map +1 -0
- package/dist/components/Header/FastAccess.d.ts +13 -0
- package/dist/components/Header/FastAccess.d.ts.map +1 -0
- package/dist/components/Header/Header.d.ts +23 -0
- package/dist/components/Header/Header.d.ts.map +1 -0
- package/dist/components/Header/Operator.d.ts +13 -0
- package/dist/components/Header/Operator.d.ts.map +1 -0
- package/dist/components/Header/Service.d.ts +17 -0
- package/dist/components/Header/Service.d.ts.map +1 -0
- package/dist/components/Header/index.d.ts +5 -0
- package/dist/components/Header/index.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +28 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +16 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/Logo/Logo.d.ts +6 -0
- package/dist/components/Logo/Logo.d.ts.map +1 -0
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Logo/index.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +14 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/ModalClose.d.ts +10 -0
- package/dist/components/Modal/ModalClose.d.ts.map +1 -0
- package/dist/components/Modal/ModalContent.d.ts +11 -0
- package/dist/components/Modal/ModalContent.d.ts.map +1 -0
- package/dist/components/Modal/ModalFooter.d.ts +8 -0
- package/dist/components/Modal/ModalFooter.d.ts.map +1 -0
- package/dist/components/Modal/ModalTitle.d.ts +13 -0
- package/dist/components/Modal/ModalTitle.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +6 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/useFocusTrap.d.ts +2 -0
- package/dist/components/Modal/useFocusTrap.d.ts.map +1 -0
- package/dist/components/Navigation/Nav.d.ts +14 -0
- package/dist/components/Navigation/Nav.d.ts.map +1 -0
- package/dist/components/Navigation/NavItem.d.ts +17 -0
- package/dist/components/Navigation/NavItem.d.ts.map +1 -0
- package/dist/components/Navigation/index.d.ts +3 -0
- package/dist/components/Navigation/index.d.ts.map +1 -0
- package/dist/components/Notice/Notice.d.ts +21 -0
- package/dist/components/Notice/Notice.d.ts.map +1 -0
- package/dist/components/Notice/index.d.ts +2 -0
- package/dist/components/Notice/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +9 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/PaginationItem.d.ts +9 -0
- package/dist/components/Pagination/PaginationItem.d.ts.map +1 -0
- package/dist/components/Pagination/helpers.d.ts +9 -0
- package/dist/components/Pagination/helpers.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +21 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/SearchBar/SearchBar.d.ts +22 -0
- package/dist/components/SearchBar/SearchBar.d.ts.map +1 -0
- package/dist/components/SearchBar/index.d.ts +2 -0
- package/dist/components/SearchBar/index.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts +21 -0
- package/dist/components/SideMenu/SideMenu.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenuItem.d.ts +20 -0
- package/dist/components/SideMenu/SideMenuItem.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenuLink.d.ts +16 -0
- package/dist/components/SideMenu/SideMenuLink.d.ts.map +1 -0
- package/dist/components/SideMenu/index.d.ts +4 -0
- package/dist/components/SideMenu/index.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +13 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +20 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Stepper/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tab.d.ts +10 -0
- package/dist/components/Tabs/Tab.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +17 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +3 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Tag/Tag.d.ts +22 -0
- package/dist/components/Tag/Tag.d.ts.map +1 -0
- package/dist/components/Tag/TagGroup.d.ts +6 -0
- package/dist/components/Tag/TagGroup.d.ts.map +1 -0
- package/dist/components/Tag/index.d.ts +3 -0
- package/dist/components/Tag/index.d.ts.map +1 -0
- package/dist/components/Toggle/Toggle.d.ts +29 -0
- package/dist/components/Toggle/Toggle.d.ts.map +1 -0
- package/dist/components/Toggle/ToggleGroup.d.ts +8 -0
- package/dist/components/Toggle/ToggleGroup.d.ts.map +1 -0
- package/dist/components/Toggle/index.d.ts +3 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Typography/Text.d.ts +13 -0
- package/dist/components/Typography/Text.d.ts.map +1 -0
- package/dist/components/Typography/Title.d.ts +12 -0
- package/dist/components/Typography/Title.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +3 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/dsfr-4e49221c.js +7 -0
- package/dist/dsfr-plus.js +1895 -0
- package/dist/dsfr.module.min-23ae5258.js +3367 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useDSFRConfig.d.ts +14 -0
- package/dist/hooks/useDSFRConfig.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/style.css +5 -0
- package/dist/types/colors.d.ts +4 -0
- package/dist/types/colors.d.ts.map +1 -0
- package/dist/types/headings.d.ts +2 -0
- package/dist/types/headings.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/polymophic.d.ts +4 -0
- package/dist/types/polymophic.d.ts.map +1 -0
- package/dist/utility-251e9615.js +7 -0
- package/dist/utils/children.d.ts +4 -0
- package/dist/utils/children.d.ts.map +1 -0
- package/dist/utils/props.d.ts +7 -0
- package/dist/utils/props.d.ts.map +1 -0
- package/dist/utils/refs.d.ts +3 -0
- package/dist/utils/refs.d.ts.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,1895 @@
|
|
|
1
|
+
import './style.css';
|
|
2
|
+
import { jsx as i, jsxs as E, Fragment as We } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as er, useState as ne, useEffect as ae, useCallback as Be, useMemo as rr, useContext as tr, forwardRef as B, Children as he, isValidElement as U, useId as D, useRef as oe, cloneElement as re, Fragment as Te } from "react";
|
|
4
|
+
import c from "classnames";
|
|
5
|
+
import Ue from "react-dom";
|
|
6
|
+
const ze = er({}), zr = ({
|
|
7
|
+
children: e,
|
|
8
|
+
routerComponent: n,
|
|
9
|
+
extendRequiredFieldsLabelsWith: r = /* @__PURE__ */ i("span", { style: { color: "var(--text-default-error)" }, children: " *" }),
|
|
10
|
+
extendOptionalFieldsLabelsWith: t = " (optionel)",
|
|
11
|
+
defaultLang: o = "fr",
|
|
12
|
+
verbose: a = !1
|
|
13
|
+
}) => {
|
|
14
|
+
const [s, l] = ne(window.localStorage.getItem("locale") || o), [d, f] = ne(!1);
|
|
15
|
+
ae(() => {
|
|
16
|
+
const _ = async () => {
|
|
17
|
+
var T;
|
|
18
|
+
(T = window == null ? void 0 : window.dsfr) != null && T.isStarted || (window.dsfr = {
|
|
19
|
+
verbose: a,
|
|
20
|
+
mode: "manual"
|
|
21
|
+
}, await import("./dsfr.module.min-23ae5258.js"), await import("./utility-251e9615.js"), await import("./dsfr-4e49221c.js"), window.dsfr.start(), f(!0));
|
|
22
|
+
}, y = window.matchMedia("(prefers-color-scheme: dark)"), N = y != null && y.matches ? "dark" : "light", g = window.localStorage.getItem("theme");
|
|
23
|
+
document.documentElement.setAttribute("data-fr-scheme", g || N), _();
|
|
24
|
+
}, []);
|
|
25
|
+
const u = Be((_) => {
|
|
26
|
+
window.localStorage.setItem("locale", _), document.documentElement.setAttribute("lang", "en"), l(_);
|
|
27
|
+
}, []), v = rr(() => ({
|
|
28
|
+
setLocale: u,
|
|
29
|
+
routerComponent: n,
|
|
30
|
+
locale: s,
|
|
31
|
+
extendRequiredFieldsLabelsWith: r,
|
|
32
|
+
extendOptionalFieldsLabelsWith: t
|
|
33
|
+
}), [n, u, s, r, t]);
|
|
34
|
+
return /* @__PURE__ */ i(ze.Provider, { value: v, children: d ? e : null });
|
|
35
|
+
}, le = () => tr(ze), z = B(({
|
|
36
|
+
children: e,
|
|
37
|
+
className: n,
|
|
38
|
+
icon: r,
|
|
39
|
+
current: t,
|
|
40
|
+
iconPosition: o = "left",
|
|
41
|
+
isSimple: a = !1,
|
|
42
|
+
size: s = "md",
|
|
43
|
+
...l
|
|
44
|
+
}, d) => {
|
|
45
|
+
const { routerComponent: f } = le();
|
|
46
|
+
return /* @__PURE__ */ i(
|
|
47
|
+
f || "a",
|
|
48
|
+
{
|
|
49
|
+
ref: d,
|
|
50
|
+
"aria-current": t || void 0,
|
|
51
|
+
className: c({
|
|
52
|
+
"fr-link": a,
|
|
53
|
+
[`fr-link-${s}`]: s !== "md",
|
|
54
|
+
[`fr-icon-${r}`]: a && !!r,
|
|
55
|
+
[`fr-link--icon-${o}`]: a && r
|
|
56
|
+
}, n),
|
|
57
|
+
...l,
|
|
58
|
+
children: e
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}), nr = B, ar = nr(
|
|
62
|
+
({ as: e, className: n, noIcon: r, color: t = "blue-france", size: o, icon: a, variant: s = "primary", ...l }, d) => {
|
|
63
|
+
const f = e === "a" ? z : e || "p", u = c(
|
|
64
|
+
"fr-badge",
|
|
65
|
+
{
|
|
66
|
+
[`fr-badge--${s}`]: s,
|
|
67
|
+
[`fr-badge--${t}`]: t,
|
|
68
|
+
[`fr-icon-${a}`]: a,
|
|
69
|
+
// Next line is a hack to oblige dsfr to display the icon because otherwise
|
|
70
|
+
// "content: none" is applied on .fr-badge[class^="fr-icon-"]
|
|
71
|
+
"fr-badge--icon-": a,
|
|
72
|
+
"fr-badge--no-icon": r,
|
|
73
|
+
"fr-badge--sm": o === "sm"
|
|
74
|
+
},
|
|
75
|
+
n
|
|
76
|
+
);
|
|
77
|
+
return /* @__PURE__ */ i(f, { className: u, ref: d, ...l });
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
function L(e, n) {
|
|
81
|
+
return he.toArray(e).filter((t) => U(t) && t.type === n);
|
|
82
|
+
}
|
|
83
|
+
function fe(e, n) {
|
|
84
|
+
return he.toArray(e).filter((r) => U(r) && n.includes(r.type));
|
|
85
|
+
}
|
|
86
|
+
function or(e, n) {
|
|
87
|
+
return he.toArray(e).filter((r) => U(r) && !n.includes(r.type));
|
|
88
|
+
}
|
|
89
|
+
const Gr = ({
|
|
90
|
+
children: e,
|
|
91
|
+
className: n,
|
|
92
|
+
...r
|
|
93
|
+
}) => {
|
|
94
|
+
const t = D(), o = c("fr-badges-group", n);
|
|
95
|
+
return /* @__PURE__ */ i("ul", { className: o, ...r, children: L(e, ar).map((a, s) => /* @__PURE__ */ i("li", { children: a }, `${t}-${s}`)) });
|
|
96
|
+
};
|
|
97
|
+
const sr = B, ce = sr(
|
|
98
|
+
({ as: e, className: n, color: r = "blue-france", icon: t, iconPosition: o = "left", size: a = "md", variant: s = "primary", children: l, ...d }, f) => {
|
|
99
|
+
const u = e === "a" ? z : e || "button", v = c(
|
|
100
|
+
"fr-btn",
|
|
101
|
+
{
|
|
102
|
+
[`fr-btn--${a}`]: a !== "md",
|
|
103
|
+
[`dfr-btn--${r}`]: !!r && r !== "blue-france",
|
|
104
|
+
"fr-btn--secondary": s === "secondary",
|
|
105
|
+
"fr-btn--tertiary": s === "tertiary",
|
|
106
|
+
"fr-btn--tertiary-no-outline": s === "text",
|
|
107
|
+
[`fr-icon-${t}`]: !!t,
|
|
108
|
+
[`fr-btn--icon-${o}`]: t && l,
|
|
109
|
+
"fr-btn--icon": t && !l
|
|
110
|
+
},
|
|
111
|
+
n
|
|
112
|
+
);
|
|
113
|
+
return /* @__PURE__ */ i(u, { className: v, ref: f, ...d, children: l });
|
|
114
|
+
}
|
|
115
|
+
), Vr = ({
|
|
116
|
+
align: e = "left",
|
|
117
|
+
children: n,
|
|
118
|
+
className: r,
|
|
119
|
+
isEquisized: t = !1,
|
|
120
|
+
isInlineFrom: o,
|
|
121
|
+
isReversed: a = !1,
|
|
122
|
+
size: s = "md",
|
|
123
|
+
...l
|
|
124
|
+
}) => {
|
|
125
|
+
var y;
|
|
126
|
+
const d = D(), f = (N, g) => N || U(g) && g.props.icon && g.props.children, u = L(n, ce).reduce(f, !1), v = (y = L(n, ce).map((N) => U(N) && N.props.iconPosition)) == null ? void 0 : y[0], _ = c("fr-btns-group", {
|
|
127
|
+
[`fr-btns-group--${s}`]: s !== "md",
|
|
128
|
+
[`fr-btns-group--${e}`]: e !== "left",
|
|
129
|
+
[`fr-btns-group--icon-${v}`]: u,
|
|
130
|
+
"fr-btns-group--inline": o === "xs",
|
|
131
|
+
[`fr-btns-group--inline-${o}`]: o && o !== "xs",
|
|
132
|
+
"fr-btns-group--inline-reverse": a,
|
|
133
|
+
"fr-btns-group--equisized": t
|
|
134
|
+
}, r);
|
|
135
|
+
return /* @__PURE__ */ i("ul", { className: _, ...l, children: L(n, ce).map((N, g) => /* @__PURE__ */ i("li", { children: N }, `${d}-${g}`)) });
|
|
136
|
+
}, ir = B, Hr = ir(({
|
|
137
|
+
as: e = "div",
|
|
138
|
+
className: n,
|
|
139
|
+
fluid: r = !1,
|
|
140
|
+
fluidFrom: t = "xs",
|
|
141
|
+
...o
|
|
142
|
+
}, a) => {
|
|
143
|
+
const s = c({
|
|
144
|
+
"fr-container": !r,
|
|
145
|
+
"fr-container-fluid": r || t === "xs",
|
|
146
|
+
[`fr-container-${t}--fluid`]: !r && t !== "xs"
|
|
147
|
+
}, n);
|
|
148
|
+
return /* @__PURE__ */ i(
|
|
149
|
+
e,
|
|
150
|
+
{
|
|
151
|
+
className: s,
|
|
152
|
+
ref: a,
|
|
153
|
+
...o
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
}), Kr = ({
|
|
157
|
+
gutters: e = !1,
|
|
158
|
+
horizontalAlign: n,
|
|
159
|
+
verticalAlign: r,
|
|
160
|
+
className: t,
|
|
161
|
+
...o
|
|
162
|
+
}) => {
|
|
163
|
+
const a = c("fr-grid-row", {
|
|
164
|
+
"fr-grid-row--gutters": e,
|
|
165
|
+
[`fr-grid-row--${n}`]: n,
|
|
166
|
+
[`fr-grid-row--${r}`]: r
|
|
167
|
+
}, t);
|
|
168
|
+
return /* @__PURE__ */ i("div", { className: a, ...o });
|
|
169
|
+
}, Jr = ({
|
|
170
|
+
xs: e,
|
|
171
|
+
sm: n,
|
|
172
|
+
md: r,
|
|
173
|
+
lg: t,
|
|
174
|
+
xl: o,
|
|
175
|
+
offsetXs: a,
|
|
176
|
+
offsetSm: s,
|
|
177
|
+
offsetMd: l,
|
|
178
|
+
offsetLg: d,
|
|
179
|
+
offsetXl: f,
|
|
180
|
+
className: u,
|
|
181
|
+
...v
|
|
182
|
+
}) => {
|
|
183
|
+
const _ = c("fr-col", {
|
|
184
|
+
[`fr-col-${e}`]: e,
|
|
185
|
+
[`fr-col-sm-${n}`]: n,
|
|
186
|
+
[`fr-col-md-${r}`]: r,
|
|
187
|
+
[`fr-col-lg-${t}`]: t,
|
|
188
|
+
[`fr-col-xl-${o}`]: o,
|
|
189
|
+
[`fr-col-offset-${a}`]: a,
|
|
190
|
+
[`fr-col-offset-sm-${s}`]: s,
|
|
191
|
+
[`fr-col-offset-md-${l}`]: l,
|
|
192
|
+
[`fr-col-offset-lg-${d}`]: d,
|
|
193
|
+
[`fr-col-offset-xl-${f}`]: f
|
|
194
|
+
}, u);
|
|
195
|
+
return /* @__PURE__ */ i("div", { className: _, ...v });
|
|
196
|
+
}, cr = ({ href: e = "/", name: n, tagline: r, className: t, css: o = {}, ...a }) => /* @__PURE__ */ E("div", { className: c("fr-header__service", t), children: [
|
|
197
|
+
/* @__PURE__ */ i("p", { className: c("fr-header__service-title", o["fr-header__service-title"]), children: /* @__PURE__ */ i(z, { href: e, ...a, children: n }) }),
|
|
198
|
+
r && /* @__PURE__ */ i("p", { className: c("fr-header__service-tagline", o["fr-header__service-tagline"]), children: r })
|
|
199
|
+
] }), lr = ({ children: e, className: n, css: r = {}, ...t }) => {
|
|
200
|
+
const o = D(), a = t.id || o;
|
|
201
|
+
return /* @__PURE__ */ E("div", { className: c("fr-header__tools-links", n), ...t, children: [
|
|
202
|
+
/* @__PURE__ */ i("ul", { className: c("fr-btns-group", r["fr-btns-group"]), children: L(e, ce).map((s, l) => /* @__PURE__ */ i("li", { children: s }, `${a}-${l}`)) }),
|
|
203
|
+
or(e, [ce])
|
|
204
|
+
] });
|
|
205
|
+
}, fr = ({ className: e, css: n = {}, ...r }) => /* @__PURE__ */ i("div", { className: c("fr-header__operator", e), children: /* @__PURE__ */ i("img", { className: c("fr-responsive-img", n["fr-responsive-img"]), ...r }) }), Oe = ["__TYPE"];
|
|
206
|
+
function se(e, n = {}) {
|
|
207
|
+
const { include: r, exclude: t } = n;
|
|
208
|
+
if (r)
|
|
209
|
+
return Object.entries(e).reduce((a, [s, l]) => r.includes(s) ? { ...a, [s]: l } : a, {});
|
|
210
|
+
const o = t ? [...Oe, ...t] : Oe;
|
|
211
|
+
return Object.entries(e).reduce((a, [s, l]) => o.includes(s) ? a : { ...a, [s]: l }, {});
|
|
212
|
+
}
|
|
213
|
+
function de(e, n) {
|
|
214
|
+
e && n.forEach((r) => {
|
|
215
|
+
typeof r == "function" ? r(e) : r && (r.current = e);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
const dr = B(({
|
|
219
|
+
className: e,
|
|
220
|
+
css: n = {},
|
|
221
|
+
buttonLabel: r,
|
|
222
|
+
isLarge: t,
|
|
223
|
+
label: o,
|
|
224
|
+
onSearch: a,
|
|
225
|
+
...s
|
|
226
|
+
}, l) => {
|
|
227
|
+
const d = oe(null), f = D(), u = s.id || f, v = (_) => {
|
|
228
|
+
var y;
|
|
229
|
+
return _.key === "Enter" && a((y = d.current) == null ? void 0 : y.value);
|
|
230
|
+
};
|
|
231
|
+
return /* @__PURE__ */ E(
|
|
232
|
+
"div",
|
|
233
|
+
{
|
|
234
|
+
role: "search",
|
|
235
|
+
className: c("fr-search-bar", { "fr-search-bar--lg": t }, e),
|
|
236
|
+
children: [
|
|
237
|
+
o && /* @__PURE__ */ i("label", { className: c("fr-label", n["fr-label"]), htmlFor: u, children: o }),
|
|
238
|
+
/* @__PURE__ */ i(
|
|
239
|
+
"input",
|
|
240
|
+
{
|
|
241
|
+
ref: (_) => de(_, [l, d]),
|
|
242
|
+
className: c("fr-input", n["fr-input"]),
|
|
243
|
+
type: "search",
|
|
244
|
+
id: u,
|
|
245
|
+
onKeyDown: v,
|
|
246
|
+
...se(s)
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
/* @__PURE__ */ i(
|
|
250
|
+
"button",
|
|
251
|
+
{
|
|
252
|
+
type: "button",
|
|
253
|
+
onClick: () => {
|
|
254
|
+
var _;
|
|
255
|
+
return a((_ = d.current) == null ? void 0 : _.value);
|
|
256
|
+
},
|
|
257
|
+
className: c("fr-btn", { "fr-btn--lg": t }, n["fr-btn"]),
|
|
258
|
+
title: r,
|
|
259
|
+
children: r
|
|
260
|
+
}
|
|
261
|
+
)
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
);
|
|
265
|
+
}), Ge = ({
|
|
266
|
+
children: e,
|
|
267
|
+
className: n,
|
|
268
|
+
current: r = !1,
|
|
269
|
+
css: t = {},
|
|
270
|
+
title: o,
|
|
271
|
+
...a
|
|
272
|
+
}) => {
|
|
273
|
+
const s = D(), l = fe(e, [Ge, z]);
|
|
274
|
+
return /* @__PURE__ */ E(We, { children: [
|
|
275
|
+
/* @__PURE__ */ i(
|
|
276
|
+
"button",
|
|
277
|
+
{
|
|
278
|
+
className: c("fr-nav__btn", n),
|
|
279
|
+
"aria-expanded": "false",
|
|
280
|
+
"aria-controls": s,
|
|
281
|
+
"aria-current": r || void 0,
|
|
282
|
+
...a,
|
|
283
|
+
children: o
|
|
284
|
+
}
|
|
285
|
+
),
|
|
286
|
+
/* @__PURE__ */ i("div", { className: c("fr-collapse", "fr-menu", t["fr-menu"]), id: s, children: /* @__PURE__ */ i("ul", { className: c("fr-menu__list", t["fr-menu__list"]), children: l.map((d, f) => /* @__PURE__ */ i("li", { className: "fr-nav__item", children: U(d) && d.type === z ? re(d, { className: c("fr-nav__link", d.props.className) }) : d }, `navitem-${s}-${f}`)) }) })
|
|
287
|
+
] });
|
|
288
|
+
}, ur = ({
|
|
289
|
+
children: e,
|
|
290
|
+
className: n,
|
|
291
|
+
css: r = {},
|
|
292
|
+
...t
|
|
293
|
+
}) => {
|
|
294
|
+
const o = D(), a = t.id || o;
|
|
295
|
+
return /* @__PURE__ */ i("nav", { className: c("fr-nav", n), id: a, role: "navigation", ...t, children: /* @__PURE__ */ i("ul", { className: c("fr-nav__list", r["fr-nav__list"]), children: fe(e, [Ge, z]).map((s, l) => U(s) && /* @__PURE__ */ i("li", { className: c("fr-nav__item", r["fr-nav__item"]), children: s.type === z ? re(s, { className: c("fr-nav__link", s.props.className) }) : s }, `navitem-${a}-${l}`)) }) });
|
|
296
|
+
}, mr = ({ text: e, splitCharacter: n = "|" }) => {
|
|
297
|
+
const t = e.split(n).reduce((o, a, s) => s > 0 ? [...o, /* @__PURE__ */ i("br", {}, `br-${s}`), /* @__PURE__ */ i(Te, { children: a }, s)] : [/* @__PURE__ */ i(Te, { children: a }, s)], []);
|
|
298
|
+
return /* @__PURE__ */ i("div", { className: "fr-header__logo", children: /* @__PURE__ */ i("p", { className: "fr-logo", children: t }) });
|
|
299
|
+
}, Xr = ({ children: e, className: n, css: r = {}, ...t }) => {
|
|
300
|
+
var g, T, P, q;
|
|
301
|
+
const o = D(), a = D(), s = D(), l = D(), d = (g = L(e, cr)) == null ? void 0 : g[0], f = (T = L(e, lr)) == null ? void 0 : T[0], u = (P = L(e, dr)) == null ? void 0 : P[0], v = (q = L(e, ur)) == null ? void 0 : q[0], _ = L(e, mr), y = L(e, fr), N = U(u) ? u.props.title : "Rechercher";
|
|
302
|
+
return /* @__PURE__ */ E("header", { role: "banner", className: c("fr-header", n), ...t, children: [
|
|
303
|
+
/* @__PURE__ */ i("div", { className: c("fr-header__body", r["fr-header__body"]), children: /* @__PURE__ */ i("div", { className: "fr-container", children: /* @__PURE__ */ E("div", { className: c("fr-header__body-row", r["fr-header__body-row"]), children: [
|
|
304
|
+
/* @__PURE__ */ E("div", { className: c("fr-header__brand fr-enlarge-link", r["fr-header__brand"]), children: [
|
|
305
|
+
/* @__PURE__ */ E("div", { className: c("fr-header__brand-top", r["fr-header__brand-top"]), children: [
|
|
306
|
+
_ && _,
|
|
307
|
+
y && y,
|
|
308
|
+
(f || u) && /* @__PURE__ */ E("div", { className: c("fr-header__navbar", r["fr-header__navbar"]), children: [
|
|
309
|
+
u && /* @__PURE__ */ i("button", { className: c("fr-btn--search fr-btn", r["fr-btn--search"]), "data-fr-opened": "false", "aria-controls": a, id: o, title: N, children: N }),
|
|
310
|
+
f && /* @__PURE__ */ i("button", { className: c("fr-btn--menu fr-btn", r["fr-btn--menu"]), "data-fr-opened": "false", "aria-controls": s, "aria-haspopup": "menu", id: l, title: "Menu", children: "Menu" })
|
|
311
|
+
] })
|
|
312
|
+
] }),
|
|
313
|
+
d && d
|
|
314
|
+
] }),
|
|
315
|
+
/* @__PURE__ */ E("div", { className: c("fr-header__tools", r["fr-header__tools"]), children: [
|
|
316
|
+
f,
|
|
317
|
+
u && /* @__PURE__ */ i("div", { className: c("fr-header__search fr-modal", r["fr-header__search"]), id: a, children: /* @__PURE__ */ E("div", { className: "fr-container fr-container-lg--fluid", children: [
|
|
318
|
+
/* @__PURE__ */ i("button", { className: "fr-btn--close fr-btn", "aria-controls": a, title: "Fermer", children: "Fermer" }),
|
|
319
|
+
u
|
|
320
|
+
] }) })
|
|
321
|
+
] })
|
|
322
|
+
] }) }) }),
|
|
323
|
+
/* @__PURE__ */ i("div", { className: c("fr-header__menu fr-modal", r["fr-header__menu"]), id: s, "aria-labelledby": l, children: /* @__PURE__ */ E("div", { className: "fr-container", children: [
|
|
324
|
+
/* @__PURE__ */ i("button", { className: "fr-btn--close fr-btn", "aria-controls": s, title: "Fermer", children: "Fermer" }),
|
|
325
|
+
/* @__PURE__ */ i("div", { className: c("fr-header__menu-links", r["fr-header__menu-links"]) }),
|
|
326
|
+
v && v
|
|
327
|
+
] }) })
|
|
328
|
+
] });
|
|
329
|
+
};
|
|
330
|
+
const Ce = B, we = ({ className: e, color: n, icon: r, iconPosition: t, size: o }) => c("fr-tag", e, {
|
|
331
|
+
"fr-tag--sm": o === "sm",
|
|
332
|
+
[`fr-icon-${r}`]: r,
|
|
333
|
+
[`fr-tag--icon-${t}`]: r && t,
|
|
334
|
+
[`fr-tag--${n}`]: n
|
|
335
|
+
}), pr = Ce(({
|
|
336
|
+
as: e,
|
|
337
|
+
className: n,
|
|
338
|
+
color: r,
|
|
339
|
+
icon: t,
|
|
340
|
+
iconPosition: o = "right",
|
|
341
|
+
size: a,
|
|
342
|
+
...s
|
|
343
|
+
}, l) => {
|
|
344
|
+
const d = we({ className: n, color: r, icon: t, iconPosition: o, size: a });
|
|
345
|
+
return /* @__PURE__ */ i(
|
|
346
|
+
e === "a" ? z : e || "p",
|
|
347
|
+
{
|
|
348
|
+
ref: l,
|
|
349
|
+
className: d,
|
|
350
|
+
...s
|
|
351
|
+
}
|
|
352
|
+
);
|
|
353
|
+
}), vr = Ce(({
|
|
354
|
+
as: e,
|
|
355
|
+
className: n,
|
|
356
|
+
color: r,
|
|
357
|
+
icon: t,
|
|
358
|
+
iconPosition: o = "left",
|
|
359
|
+
size: a,
|
|
360
|
+
selected: s,
|
|
361
|
+
...l
|
|
362
|
+
}, d) => {
|
|
363
|
+
const f = we({ className: n, color: r, icon: t, iconPosition: o, size: a });
|
|
364
|
+
return /* @__PURE__ */ i(
|
|
365
|
+
e === "a" ? z : e || "button",
|
|
366
|
+
{
|
|
367
|
+
"data-fr-js-disable": "true",
|
|
368
|
+
ref: d,
|
|
369
|
+
className: f,
|
|
370
|
+
"aria-pressed": s,
|
|
371
|
+
...l
|
|
372
|
+
}
|
|
373
|
+
);
|
|
374
|
+
}), hr = Ce(({
|
|
375
|
+
as: e,
|
|
376
|
+
className: n,
|
|
377
|
+
color: r,
|
|
378
|
+
icon: t,
|
|
379
|
+
iconPosition: o = "left",
|
|
380
|
+
size: a,
|
|
381
|
+
...s
|
|
382
|
+
}, l) => {
|
|
383
|
+
const d = c("fr-tag--dismiss", we({ className: n, color: r, icon: t, iconPosition: o, size: a }));
|
|
384
|
+
return /* @__PURE__ */ i(
|
|
385
|
+
e === "a" ? z : e || "button",
|
|
386
|
+
{
|
|
387
|
+
ref: l,
|
|
388
|
+
className: d,
|
|
389
|
+
...s
|
|
390
|
+
}
|
|
391
|
+
);
|
|
392
|
+
}), Zr = ({
|
|
393
|
+
className: e,
|
|
394
|
+
children: n,
|
|
395
|
+
...r
|
|
396
|
+
}) => {
|
|
397
|
+
const t = D(), o = c("fr-tags-group", e);
|
|
398
|
+
return /* @__PURE__ */ i("ul", { className: o, ...se(r), children: fe(n, [pr, vr, hr]).map((a, s) => /* @__PURE__ */ i("li", { children: a }, `${t}-${s}`)) });
|
|
399
|
+
}, br = {
|
|
400
|
+
config: { attributes: !0, childList: !1, subtree: !1 }
|
|
401
|
+
};
|
|
402
|
+
function yr(e, n, r = br) {
|
|
403
|
+
const [t, o] = ne(null);
|
|
404
|
+
ae(() => {
|
|
405
|
+
const a = new MutationObserver(n);
|
|
406
|
+
o(a);
|
|
407
|
+
}, [n, r, o]), ae(() => {
|
|
408
|
+
if (!t || !e)
|
|
409
|
+
return;
|
|
410
|
+
const { config: a } = r;
|
|
411
|
+
return t.observe(e, a), () => {
|
|
412
|
+
t && t.disconnect();
|
|
413
|
+
};
|
|
414
|
+
}, [t, e, r]);
|
|
415
|
+
}
|
|
416
|
+
const _r = B(({
|
|
417
|
+
title: e,
|
|
418
|
+
titleAs: n = "h3",
|
|
419
|
+
children: r,
|
|
420
|
+
className: t,
|
|
421
|
+
css: o = {},
|
|
422
|
+
defaultExpanded: a = !1,
|
|
423
|
+
...s
|
|
424
|
+
}, l) => {
|
|
425
|
+
const d = D(), f = oe(null), [u, v] = ne(!!a), _ = Be(
|
|
426
|
+
(y) => {
|
|
427
|
+
var g;
|
|
428
|
+
if (y.find((T) => T.attributeName === "aria-expanded") && ((g = f == null ? void 0 : f.current) != null && g.attributes)) {
|
|
429
|
+
const T = f.current.attributes.getNamedItem("aria-expanded");
|
|
430
|
+
v(T ? T.value === "true" : !1);
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
[f]
|
|
434
|
+
);
|
|
435
|
+
return yr(f == null ? void 0 : f.current, _), /* @__PURE__ */ E("section", { className: c("fr-accordion", t), children: [
|
|
436
|
+
/* @__PURE__ */ i(
|
|
437
|
+
n,
|
|
438
|
+
{
|
|
439
|
+
className: c("fr-accordion__title", o.title),
|
|
440
|
+
children: /* @__PURE__ */ i(
|
|
441
|
+
"button",
|
|
442
|
+
{
|
|
443
|
+
...s,
|
|
444
|
+
ref: (y) => de(y, [l, f]),
|
|
445
|
+
className: c("fr-accordion__btn", o.button),
|
|
446
|
+
"aria-expanded": a,
|
|
447
|
+
"aria-controls": d,
|
|
448
|
+
children: U(e) || typeof e == "string" ? e : typeof e == "function" ? e(u) : null
|
|
449
|
+
}
|
|
450
|
+
)
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
/* @__PURE__ */ i("div", { className: "fr-collapse", id: d, children: r })
|
|
454
|
+
] });
|
|
455
|
+
}), Qr = ({ children: e, className: n, ...r }) => {
|
|
456
|
+
const t = D();
|
|
457
|
+
return /* @__PURE__ */ i("div", { className: c("fr-accordions-group", n), ...r, children: L(e, _r).map((o, a) => /* @__PURE__ */ i(Te, { children: o }, `${t}-d${a}`)) });
|
|
458
|
+
}, et = B(({
|
|
459
|
+
className: e,
|
|
460
|
+
closeMode: n = "disallow",
|
|
461
|
+
description: r,
|
|
462
|
+
size: t,
|
|
463
|
+
onClose: o,
|
|
464
|
+
title: a,
|
|
465
|
+
css: s = {},
|
|
466
|
+
titleAs: l = "h3",
|
|
467
|
+
variant: d = "info",
|
|
468
|
+
...f
|
|
469
|
+
}, u) => {
|
|
470
|
+
const v = oe(null), _ = (y) => {
|
|
471
|
+
var N;
|
|
472
|
+
y.preventDefault(), (N = v.current) == null || N.remove(), o && o(y);
|
|
473
|
+
};
|
|
474
|
+
return /* @__PURE__ */ E(
|
|
475
|
+
"div",
|
|
476
|
+
{
|
|
477
|
+
ref: (y) => de(y, [u, v]),
|
|
478
|
+
className: c(`fr-alert fr-alert--${d}`, { "fr-alert--sm": t === "sm" }, e),
|
|
479
|
+
...f,
|
|
480
|
+
children: [
|
|
481
|
+
a && /* @__PURE__ */ i(l, { className: c("fr-alert__title", s.title), children: a }),
|
|
482
|
+
r && /* @__PURE__ */ i("p", { className: c(s.description), children: r }),
|
|
483
|
+
n === "uncontrolled" && /* @__PURE__ */ i("button", { onClick: _, className: c("fr-btn--close fr-btn", s.button), children: "Masquer le message" }),
|
|
484
|
+
n === "controlled" && /* @__PURE__ */ i("button", { onClick: o, className: c("fr-link--close fr-link", s.button), children: "Masquer le message" })
|
|
485
|
+
]
|
|
486
|
+
}
|
|
487
|
+
);
|
|
488
|
+
});
|
|
489
|
+
const rt = ({
|
|
490
|
+
children: e,
|
|
491
|
+
closeMode: n = "disallow",
|
|
492
|
+
type: r = "info",
|
|
493
|
+
className: t,
|
|
494
|
+
css: o = {},
|
|
495
|
+
onClose: a,
|
|
496
|
+
...s
|
|
497
|
+
}) => {
|
|
498
|
+
const l = oe(null), d = (u) => {
|
|
499
|
+
var v;
|
|
500
|
+
u.preventDefault(), (v = l.current) == null || v.remove(), a && a(u);
|
|
501
|
+
}, f = c("fr-notice", {
|
|
502
|
+
"fr-notice--info": r === "info",
|
|
503
|
+
[`react-dsfr-notice--${r}`]: r !== "info"
|
|
504
|
+
}, t);
|
|
505
|
+
return /* @__PURE__ */ i("div", { ref: l, className: f, ...s, children: /* @__PURE__ */ i("div", { className: c("fr-container", o["fr-container"]), children: /* @__PURE__ */ E("div", { className: c("fr-notice__body", o["fr-notice__body"]), children: [
|
|
506
|
+
/* @__PURE__ */ i("p", { className: c("fr-notice__title", o["fr-notice__title"]), children: e }),
|
|
507
|
+
n !== "disallow" && /* @__PURE__ */ i(
|
|
508
|
+
"button",
|
|
509
|
+
{
|
|
510
|
+
onClick: n === "uncontrolled" ? d : a,
|
|
511
|
+
className: c("fr-btn--close", "fr-btn", o["fr-btn--close"]),
|
|
512
|
+
children: "Masquer le message"
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
] }) }) });
|
|
516
|
+
}, gr = ({
|
|
517
|
+
className: e,
|
|
518
|
+
index: n,
|
|
519
|
+
...r
|
|
520
|
+
}) => /* @__PURE__ */ i(
|
|
521
|
+
"div",
|
|
522
|
+
{
|
|
523
|
+
id: `${n}-panel`,
|
|
524
|
+
className: c("fr-tabs__panel", e),
|
|
525
|
+
role: "tabpanel",
|
|
526
|
+
"aria-labelledby": `${n}-button`,
|
|
527
|
+
tabIndex: r["aria-selected"] ? -1 : 0,
|
|
528
|
+
...r
|
|
529
|
+
}
|
|
530
|
+
), tt = ({
|
|
531
|
+
className: e,
|
|
532
|
+
children: n,
|
|
533
|
+
defaultActiveIndex: r = 0,
|
|
534
|
+
css: t = {},
|
|
535
|
+
onTabChange: o,
|
|
536
|
+
...a
|
|
537
|
+
}) => {
|
|
538
|
+
const s = D(), l = a.id || s, d = L(n, gr).filter((f) => U(f)).map(
|
|
539
|
+
(f, u) => re(
|
|
540
|
+
f,
|
|
541
|
+
{ index: `${l}-${u}` }
|
|
542
|
+
)
|
|
543
|
+
);
|
|
544
|
+
return /* @__PURE__ */ E(
|
|
545
|
+
"div",
|
|
546
|
+
{
|
|
547
|
+
id: l,
|
|
548
|
+
className: c("fr-tabs", e),
|
|
549
|
+
...a,
|
|
550
|
+
children: [
|
|
551
|
+
/* @__PURE__ */ i("ul", { className: c("fr-tabs__list", t.ul), role: "tablist", children: d.map((f, u) => /* @__PURE__ */ i("li", { className: c(t.li), role: "presentation", children: /* @__PURE__ */ i(
|
|
552
|
+
"button",
|
|
553
|
+
{
|
|
554
|
+
onClick: (v) => {
|
|
555
|
+
o && (o(u), v.preventDefault());
|
|
556
|
+
},
|
|
557
|
+
id: `${l}-${u}-button`,
|
|
558
|
+
className: c(
|
|
559
|
+
"fr-tabs__tab",
|
|
560
|
+
{
|
|
561
|
+
[`fr-icon-${f.props.icon}`]: U(f) && f.props.icon,
|
|
562
|
+
"fr-tabs__tab--icon-left": U(f) && f.props.icon
|
|
563
|
+
},
|
|
564
|
+
t.button
|
|
565
|
+
),
|
|
566
|
+
tabIndex: r === u ? 0 : -1,
|
|
567
|
+
role: "tab",
|
|
568
|
+
"aria-selected": r === u ? "true" : "false",
|
|
569
|
+
"aria-controls": `${l}-${u}-panel`,
|
|
570
|
+
children: U(f) && f.props.label
|
|
571
|
+
}
|
|
572
|
+
) }, `${l}-${u}`)) }),
|
|
573
|
+
d
|
|
574
|
+
]
|
|
575
|
+
}
|
|
576
|
+
);
|
|
577
|
+
};
|
|
578
|
+
const nt = ({
|
|
579
|
+
children: e,
|
|
580
|
+
className: n,
|
|
581
|
+
css: r = {},
|
|
582
|
+
fullHeight: t,
|
|
583
|
+
position: o,
|
|
584
|
+
sticky: a,
|
|
585
|
+
title: s,
|
|
586
|
+
...l
|
|
587
|
+
}) => {
|
|
588
|
+
const d = D(), f = c("fr-sidemenu", n, {
|
|
589
|
+
"fr-sidemenu--sticky": a && !t,
|
|
590
|
+
"fr-sidemenu--sticky-full-height": t,
|
|
591
|
+
"fr-sidemenu--right": o === "right"
|
|
592
|
+
});
|
|
593
|
+
return /* @__PURE__ */ i("nav", { className: f, "aria-label": "Menu latéral", ...se(l), children: /* @__PURE__ */ E("div", { className: c("fr-sidemenu__inner", r["fr-sidemenu__inner"]), children: [
|
|
594
|
+
/* @__PURE__ */ i(
|
|
595
|
+
"button",
|
|
596
|
+
{
|
|
597
|
+
type: "button",
|
|
598
|
+
className: c("fr-sidemenu__btn", r["fr-sidemenu__btn"]),
|
|
599
|
+
"aria-controls": d,
|
|
600
|
+
"aria-expanded": !1,
|
|
601
|
+
children: s || "Dans cette rubrique"
|
|
602
|
+
}
|
|
603
|
+
),
|
|
604
|
+
/* @__PURE__ */ E("div", { className: "fr-collapse", id: d, children: [
|
|
605
|
+
s && /* @__PURE__ */ i("div", { className: c("fr-sidemenu__title", r["fr-sidemenu__title"]), children: s }),
|
|
606
|
+
/* @__PURE__ */ i("ul", { className: c("fr-sidemenu__list", r["fr-sidemenu__list"]), children: fe(e, [Ve, z]).map((u, v) => U(u) && /* @__PURE__ */ i("li", { className: c("fr-sidemenu__item", r["fr-sidemenu__item"]), children: u.type === z ? re(u, { className: c("fr-sidemenu__link", u.props.className) }) : u }, `navitem-${d}-${v}`)) })
|
|
607
|
+
] })
|
|
608
|
+
] }) });
|
|
609
|
+
}, Ve = ({
|
|
610
|
+
children: e,
|
|
611
|
+
className: n,
|
|
612
|
+
css: r = {},
|
|
613
|
+
current: t,
|
|
614
|
+
defaultExpanded: o = !1,
|
|
615
|
+
href: a,
|
|
616
|
+
icon: s,
|
|
617
|
+
title: l,
|
|
618
|
+
...d
|
|
619
|
+
}) => {
|
|
620
|
+
const f = D(), u = fe(e, [Ve, z]);
|
|
621
|
+
return /* @__PURE__ */ E(We, { children: [
|
|
622
|
+
/* @__PURE__ */ i(
|
|
623
|
+
"button",
|
|
624
|
+
{
|
|
625
|
+
className: c("fr-sidemenu__btn", n),
|
|
626
|
+
"aria-expanded": o,
|
|
627
|
+
"aria-controls": f,
|
|
628
|
+
"aria-current": t || void 0,
|
|
629
|
+
...d,
|
|
630
|
+
children: /* @__PURE__ */ i("span", { className: s && `react-dsfr-sidemenu-title--icon fr-icon-${s} fr-icon--sm`, children: l })
|
|
631
|
+
}
|
|
632
|
+
),
|
|
633
|
+
/* @__PURE__ */ i("div", { className: "fr-collapse", id: f, children: /* @__PURE__ */ i("ul", { className: c("fr-sidemenu__list", r["fr-sidemenu__list"]), children: u.map((v, _) => /* @__PURE__ */ i("li", { className: c("fr-sidemenu__item", r["fr-sidemenu__item"]), children: U(v) && v.type === z ? re(v, { className: c("fr-sidemenu__link", v.props.className) }) : v }, `navitem-${f}-${_}`)) }) })
|
|
634
|
+
] });
|
|
635
|
+
}, at = ({
|
|
636
|
+
children: e,
|
|
637
|
+
className: n,
|
|
638
|
+
css: r = {},
|
|
639
|
+
current: t,
|
|
640
|
+
icon: o,
|
|
641
|
+
...a
|
|
642
|
+
}) => /* @__PURE__ */ i("li", { className: c("fr-sidemenu__item", n), children: /* @__PURE__ */ i(
|
|
643
|
+
z,
|
|
644
|
+
{
|
|
645
|
+
className: c("fr-sidemenu__link", r["fr-sidemenu__link"]),
|
|
646
|
+
"aria-current": t || void 0,
|
|
647
|
+
...a,
|
|
648
|
+
children: /* @__PURE__ */ i("span", { className: o && `react-dsfr-sidemenu-title--icon fr-icon-${o} fr-icon--sm`, children: e })
|
|
649
|
+
}
|
|
650
|
+
) }), ot = B(({
|
|
651
|
+
className: e,
|
|
652
|
+
css: n = {},
|
|
653
|
+
disableAutoValidation: r = !1,
|
|
654
|
+
hint: t,
|
|
655
|
+
icon: o,
|
|
656
|
+
id: a,
|
|
657
|
+
label: s,
|
|
658
|
+
message: l,
|
|
659
|
+
messageType: d,
|
|
660
|
+
onBlur: f,
|
|
661
|
+
onChange: u,
|
|
662
|
+
disabled: v,
|
|
663
|
+
required: _,
|
|
664
|
+
...y
|
|
665
|
+
}, N) => {
|
|
666
|
+
var J;
|
|
667
|
+
const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: T } = le(), [P, q] = ne(""), k = a || D(), I = oe(null), p = l !== void 0 || d !== void 0, H = c("fr-input", {
|
|
668
|
+
"fr-input--error": p ? d === "error" : P === "error",
|
|
669
|
+
"fr-input--valid": p ? d === "valid" : P === "valid"
|
|
670
|
+
}, n["fr-input"]), X = c("fr-input-group", {
|
|
671
|
+
"fr-input-group--error": p ? d === "error" : P === "error",
|
|
672
|
+
"fr-input-group--valid": p ? d === "valid" : P === "valid",
|
|
673
|
+
"fr-input-group--disabled": v
|
|
674
|
+
}, e), Z = (G) => {
|
|
675
|
+
const V = I.current;
|
|
676
|
+
!r && !p && V && q(V.checkValidity() ? "valid" : "error"), f && f(G);
|
|
677
|
+
}, W = (G) => {
|
|
678
|
+
const V = I.current;
|
|
679
|
+
!r && !p && V && P && q(V.checkValidity() ? "valid" : "error"), u && u(G);
|
|
680
|
+
}, Y = p || r ? d && /* @__PURE__ */ i("p", { className: `fr-${d || "error"}-text`, id: `${k}-message`, children: l }) : P === "error" && !r && /* @__PURE__ */ i("p", { className: `fr-${P || "error"}-text`, id: `${k}-message`, children: (J = I.current) == null ? void 0 : J.validationMessage });
|
|
681
|
+
return /* @__PURE__ */ E("div", { className: X, children: [
|
|
682
|
+
/* @__PURE__ */ E("label", { className: c("fr-label", n["fr-label"]), htmlFor: k, children: [
|
|
683
|
+
s,
|
|
684
|
+
_ ? g : T,
|
|
685
|
+
t && /* @__PURE__ */ i("span", { className: c("fr-hint-text", n["fr-hint-text"]), children: t })
|
|
686
|
+
] }),
|
|
687
|
+
/* @__PURE__ */ i("div", { className: c("fr-input-wrap", { [`fr-icon-${o}`]: o }, n["fr-input-wrap"]), children: /* @__PURE__ */ i(
|
|
688
|
+
"input",
|
|
689
|
+
{
|
|
690
|
+
id: k,
|
|
691
|
+
className: H,
|
|
692
|
+
onBlur: Z,
|
|
693
|
+
onChange: W,
|
|
694
|
+
ref: (G) => de(G, [N, I]),
|
|
695
|
+
"aria-describedby": Y ? `${k}-message` : void 0,
|
|
696
|
+
...y
|
|
697
|
+
}
|
|
698
|
+
) }),
|
|
699
|
+
Y && Y
|
|
700
|
+
] });
|
|
701
|
+
}), st = B(({
|
|
702
|
+
className: e,
|
|
703
|
+
css: n = {},
|
|
704
|
+
disableAutoValidation: r = !1,
|
|
705
|
+
hint: t,
|
|
706
|
+
icon: o,
|
|
707
|
+
id: a,
|
|
708
|
+
label: s,
|
|
709
|
+
message: l,
|
|
710
|
+
messageType: d,
|
|
711
|
+
onBlur: f,
|
|
712
|
+
onChange: u,
|
|
713
|
+
disabled: v,
|
|
714
|
+
required: _,
|
|
715
|
+
...y
|
|
716
|
+
}, N) => {
|
|
717
|
+
var J;
|
|
718
|
+
const { extendRequiredFieldsLabelsWith: g, extendOptionalFieldsLabelsWith: T } = le(), [P, q] = ne(""), k = a || D(), I = oe(null), p = l !== void 0 || d !== void 0, H = c("fr-input", {
|
|
719
|
+
"fr-input--error": p ? d === "error" : P === "error",
|
|
720
|
+
"fr-input--valid": p ? d === "valid" : P === "valid"
|
|
721
|
+
}, n["fr-input"]), X = c("fr-input-group", {
|
|
722
|
+
"fr-input-group--error": p ? d === "error" : P === "error",
|
|
723
|
+
"fr-input-group--valid": p ? d === "valid" : P === "valid",
|
|
724
|
+
"fr-input-group--disabled": v
|
|
725
|
+
}, e), Z = (G) => {
|
|
726
|
+
const V = I.current;
|
|
727
|
+
!r && !p && V && q(V.checkValidity() ? "valid" : "error"), f && f(G);
|
|
728
|
+
}, W = (G) => {
|
|
729
|
+
const V = I.current;
|
|
730
|
+
!r && !p && V && P && q(V.checkValidity() ? "valid" : "error"), u && u(G);
|
|
731
|
+
}, Y = p || r ? d && /* @__PURE__ */ i("p", { className: `fr-${d || "error"}-text`, id: `${k}-message`, children: l }) : P === "error" && !r && /* @__PURE__ */ i("p", { className: `fr-${P || "error"}-text`, id: `${k}-message`, children: (J = I.current) == null ? void 0 : J.validationMessage });
|
|
732
|
+
return /* @__PURE__ */ E("div", { className: X, children: [
|
|
733
|
+
/* @__PURE__ */ E("label", { className: c("fr-label", n["fr-label"]), htmlFor: k, children: [
|
|
734
|
+
s,
|
|
735
|
+
_ ? g : T,
|
|
736
|
+
t && /* @__PURE__ */ i("span", { className: c("fr-hint-text", n["fr-hint-text"]), children: t })
|
|
737
|
+
] }),
|
|
738
|
+
/* @__PURE__ */ i("div", { className: c("fr-input-wrap", { [`fr-icon-${o}`]: o }, n["fr-input-wrap"]), children: /* @__PURE__ */ i(
|
|
739
|
+
"textarea",
|
|
740
|
+
{
|
|
741
|
+
id: k,
|
|
742
|
+
className: H,
|
|
743
|
+
onBlur: Z,
|
|
744
|
+
onChange: W,
|
|
745
|
+
ref: (G) => de(G, [N, I]),
|
|
746
|
+
"aria-describedby": Y ? `${k}-message` : void 0,
|
|
747
|
+
...y
|
|
748
|
+
}
|
|
749
|
+
) }),
|
|
750
|
+
Y && Y
|
|
751
|
+
] });
|
|
752
|
+
});
|
|
753
|
+
function Nr(e) {
|
|
754
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
755
|
+
}
|
|
756
|
+
var Se = { exports: {} }, pe = { exports: {} }, M = {};
|
|
757
|
+
/** @license React v16.13.1
|
|
758
|
+
* react-is.production.min.js
|
|
759
|
+
*
|
|
760
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
761
|
+
*
|
|
762
|
+
* This source code is licensed under the MIT license found in the
|
|
763
|
+
* LICENSE file in the root directory of this source tree.
|
|
764
|
+
*/
|
|
765
|
+
var Ae;
|
|
766
|
+
function Er() {
|
|
767
|
+
if (Ae)
|
|
768
|
+
return M;
|
|
769
|
+
Ae = 1;
|
|
770
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, q = e ? Symbol.for("react.scope") : 60119;
|
|
771
|
+
function k(p) {
|
|
772
|
+
if (typeof p == "object" && p !== null) {
|
|
773
|
+
var H = p.$$typeof;
|
|
774
|
+
switch (H) {
|
|
775
|
+
case n:
|
|
776
|
+
switch (p = p.type, p) {
|
|
777
|
+
case d:
|
|
778
|
+
case f:
|
|
779
|
+
case t:
|
|
780
|
+
case a:
|
|
781
|
+
case o:
|
|
782
|
+
case v:
|
|
783
|
+
return p;
|
|
784
|
+
default:
|
|
785
|
+
switch (p = p && p.$$typeof, p) {
|
|
786
|
+
case l:
|
|
787
|
+
case u:
|
|
788
|
+
case N:
|
|
789
|
+
case y:
|
|
790
|
+
case s:
|
|
791
|
+
return p;
|
|
792
|
+
default:
|
|
793
|
+
return H;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
case r:
|
|
797
|
+
return H;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
function I(p) {
|
|
802
|
+
return k(p) === f;
|
|
803
|
+
}
|
|
804
|
+
return M.AsyncMode = d, M.ConcurrentMode = f, M.ContextConsumer = l, M.ContextProvider = s, M.Element = n, M.ForwardRef = u, M.Fragment = t, M.Lazy = N, M.Memo = y, M.Portal = r, M.Profiler = a, M.StrictMode = o, M.Suspense = v, M.isAsyncMode = function(p) {
|
|
805
|
+
return I(p) || k(p) === d;
|
|
806
|
+
}, M.isConcurrentMode = I, M.isContextConsumer = function(p) {
|
|
807
|
+
return k(p) === l;
|
|
808
|
+
}, M.isContextProvider = function(p) {
|
|
809
|
+
return k(p) === s;
|
|
810
|
+
}, M.isElement = function(p) {
|
|
811
|
+
return typeof p == "object" && p !== null && p.$$typeof === n;
|
|
812
|
+
}, M.isForwardRef = function(p) {
|
|
813
|
+
return k(p) === u;
|
|
814
|
+
}, M.isFragment = function(p) {
|
|
815
|
+
return k(p) === t;
|
|
816
|
+
}, M.isLazy = function(p) {
|
|
817
|
+
return k(p) === N;
|
|
818
|
+
}, M.isMemo = function(p) {
|
|
819
|
+
return k(p) === y;
|
|
820
|
+
}, M.isPortal = function(p) {
|
|
821
|
+
return k(p) === r;
|
|
822
|
+
}, M.isProfiler = function(p) {
|
|
823
|
+
return k(p) === a;
|
|
824
|
+
}, M.isStrictMode = function(p) {
|
|
825
|
+
return k(p) === o;
|
|
826
|
+
}, M.isSuspense = function(p) {
|
|
827
|
+
return k(p) === v;
|
|
828
|
+
}, M.isValidElementType = function(p) {
|
|
829
|
+
return typeof p == "string" || typeof p == "function" || p === t || p === f || p === a || p === o || p === v || p === _ || typeof p == "object" && p !== null && (p.$$typeof === N || p.$$typeof === y || p.$$typeof === s || p.$$typeof === l || p.$$typeof === u || p.$$typeof === T || p.$$typeof === P || p.$$typeof === q || p.$$typeof === g);
|
|
830
|
+
}, M.typeOf = k, M;
|
|
831
|
+
}
|
|
832
|
+
var j = {};
|
|
833
|
+
/** @license React v16.13.1
|
|
834
|
+
* react-is.development.js
|
|
835
|
+
*
|
|
836
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
837
|
+
*
|
|
838
|
+
* This source code is licensed under the MIT license found in the
|
|
839
|
+
* LICENSE file in the root directory of this source tree.
|
|
840
|
+
*/
|
|
841
|
+
var ke;
|
|
842
|
+
function $r() {
|
|
843
|
+
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
844
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, l = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, N = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, q = e ? Symbol.for("react.scope") : 60119;
|
|
845
|
+
function k(h) {
|
|
846
|
+
return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
847
|
+
h === t || h === f || h === a || h === o || h === v || h === _ || typeof h == "object" && h !== null && (h.$$typeof === N || h.$$typeof === y || h.$$typeof === s || h.$$typeof === l || h.$$typeof === u || h.$$typeof === T || h.$$typeof === P || h.$$typeof === q || h.$$typeof === g);
|
|
848
|
+
}
|
|
849
|
+
function I(h) {
|
|
850
|
+
if (typeof h == "object" && h !== null) {
|
|
851
|
+
var ee = h.$$typeof;
|
|
852
|
+
switch (ee) {
|
|
853
|
+
case n:
|
|
854
|
+
var me = h.type;
|
|
855
|
+
switch (me) {
|
|
856
|
+
case d:
|
|
857
|
+
case f:
|
|
858
|
+
case t:
|
|
859
|
+
case a:
|
|
860
|
+
case o:
|
|
861
|
+
case v:
|
|
862
|
+
return me;
|
|
863
|
+
default:
|
|
864
|
+
var Re = me && me.$$typeof;
|
|
865
|
+
switch (Re) {
|
|
866
|
+
case l:
|
|
867
|
+
case u:
|
|
868
|
+
case N:
|
|
869
|
+
case y:
|
|
870
|
+
case s:
|
|
871
|
+
return Re;
|
|
872
|
+
default:
|
|
873
|
+
return ee;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
case r:
|
|
877
|
+
return ee;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
var p = d, H = f, X = l, Z = s, W = n, Y = u, J = t, G = N, V = y, ie = r, be = a, Q = o, te = v, ue = !1;
|
|
882
|
+
function ye(h) {
|
|
883
|
+
return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(h) || I(h) === d;
|
|
884
|
+
}
|
|
885
|
+
function m(h) {
|
|
886
|
+
return I(h) === f;
|
|
887
|
+
}
|
|
888
|
+
function b(h) {
|
|
889
|
+
return I(h) === l;
|
|
890
|
+
}
|
|
891
|
+
function w(h) {
|
|
892
|
+
return I(h) === s;
|
|
893
|
+
}
|
|
894
|
+
function S(h) {
|
|
895
|
+
return typeof h == "object" && h !== null && h.$$typeof === n;
|
|
896
|
+
}
|
|
897
|
+
function $(h) {
|
|
898
|
+
return I(h) === u;
|
|
899
|
+
}
|
|
900
|
+
function R(h) {
|
|
901
|
+
return I(h) === t;
|
|
902
|
+
}
|
|
903
|
+
function x(h) {
|
|
904
|
+
return I(h) === N;
|
|
905
|
+
}
|
|
906
|
+
function C(h) {
|
|
907
|
+
return I(h) === y;
|
|
908
|
+
}
|
|
909
|
+
function O(h) {
|
|
910
|
+
return I(h) === r;
|
|
911
|
+
}
|
|
912
|
+
function F(h) {
|
|
913
|
+
return I(h) === a;
|
|
914
|
+
}
|
|
915
|
+
function A(h) {
|
|
916
|
+
return I(h) === o;
|
|
917
|
+
}
|
|
918
|
+
function K(h) {
|
|
919
|
+
return I(h) === v;
|
|
920
|
+
}
|
|
921
|
+
j.AsyncMode = p, j.ConcurrentMode = H, j.ContextConsumer = X, j.ContextProvider = Z, j.Element = W, j.ForwardRef = Y, j.Fragment = J, j.Lazy = G, j.Memo = V, j.Portal = ie, j.Profiler = be, j.StrictMode = Q, j.Suspense = te, j.isAsyncMode = ye, j.isConcurrentMode = m, j.isContextConsumer = b, j.isContextProvider = w, j.isElement = S, j.isForwardRef = $, j.isFragment = R, j.isLazy = x, j.isMemo = C, j.isPortal = O, j.isProfiler = F, j.isStrictMode = A, j.isSuspense = K, j.isValidElementType = k, j.typeOf = I;
|
|
922
|
+
}()), j;
|
|
923
|
+
}
|
|
924
|
+
var Ie;
|
|
925
|
+
function He() {
|
|
926
|
+
return Ie || (Ie = 1, process.env.NODE_ENV === "production" ? pe.exports = Er() : pe.exports = $r()), pe.exports;
|
|
927
|
+
}
|
|
928
|
+
/*
|
|
929
|
+
object-assign
|
|
930
|
+
(c) Sindre Sorhus
|
|
931
|
+
@license MIT
|
|
932
|
+
*/
|
|
933
|
+
var _e, Me;
|
|
934
|
+
function xr() {
|
|
935
|
+
if (Me)
|
|
936
|
+
return _e;
|
|
937
|
+
Me = 1;
|
|
938
|
+
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
939
|
+
function t(a) {
|
|
940
|
+
if (a == null)
|
|
941
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
942
|
+
return Object(a);
|
|
943
|
+
}
|
|
944
|
+
function o() {
|
|
945
|
+
try {
|
|
946
|
+
if (!Object.assign)
|
|
947
|
+
return !1;
|
|
948
|
+
var a = new String("abc");
|
|
949
|
+
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
950
|
+
return !1;
|
|
951
|
+
for (var s = {}, l = 0; l < 10; l++)
|
|
952
|
+
s["_" + String.fromCharCode(l)] = l;
|
|
953
|
+
var d = Object.getOwnPropertyNames(s).map(function(u) {
|
|
954
|
+
return s[u];
|
|
955
|
+
});
|
|
956
|
+
if (d.join("") !== "0123456789")
|
|
957
|
+
return !1;
|
|
958
|
+
var f = {};
|
|
959
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
960
|
+
f[u] = u;
|
|
961
|
+
}), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
|
|
962
|
+
} catch {
|
|
963
|
+
return !1;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
return _e = o() ? Object.assign : function(a, s) {
|
|
967
|
+
for (var l, d = t(a), f, u = 1; u < arguments.length; u++) {
|
|
968
|
+
l = Object(arguments[u]);
|
|
969
|
+
for (var v in l)
|
|
970
|
+
n.call(l, v) && (d[v] = l[v]);
|
|
971
|
+
if (e) {
|
|
972
|
+
f = e(l);
|
|
973
|
+
for (var _ = 0; _ < f.length; _++)
|
|
974
|
+
r.call(l, f[_]) && (d[f[_]] = l[f[_]]);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
return d;
|
|
978
|
+
}, _e;
|
|
979
|
+
}
|
|
980
|
+
var ge, je;
|
|
981
|
+
function Pe() {
|
|
982
|
+
if (je)
|
|
983
|
+
return ge;
|
|
984
|
+
je = 1;
|
|
985
|
+
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
986
|
+
return ge = e, ge;
|
|
987
|
+
}
|
|
988
|
+
var Ne, Fe;
|
|
989
|
+
function Ke() {
|
|
990
|
+
return Fe || (Fe = 1, Ne = Function.call.bind(Object.prototype.hasOwnProperty)), Ne;
|
|
991
|
+
}
|
|
992
|
+
var Ee, De;
|
|
993
|
+
function Tr() {
|
|
994
|
+
if (De)
|
|
995
|
+
return Ee;
|
|
996
|
+
De = 1;
|
|
997
|
+
var e = function() {
|
|
998
|
+
};
|
|
999
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1000
|
+
var n = Pe(), r = {}, t = Ke();
|
|
1001
|
+
e = function(a) {
|
|
1002
|
+
var s = "Warning: " + a;
|
|
1003
|
+
typeof console < "u" && console.error(s);
|
|
1004
|
+
try {
|
|
1005
|
+
throw new Error(s);
|
|
1006
|
+
} catch {
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
}
|
|
1010
|
+
function o(a, s, l, d, f) {
|
|
1011
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1012
|
+
for (var u in a)
|
|
1013
|
+
if (t(a, u)) {
|
|
1014
|
+
var v;
|
|
1015
|
+
try {
|
|
1016
|
+
if (typeof a[u] != "function") {
|
|
1017
|
+
var _ = Error(
|
|
1018
|
+
(d || "React class") + ": " + l + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1019
|
+
);
|
|
1020
|
+
throw _.name = "Invariant Violation", _;
|
|
1021
|
+
}
|
|
1022
|
+
v = a[u](s, u, d, l, null, n);
|
|
1023
|
+
} catch (N) {
|
|
1024
|
+
v = N;
|
|
1025
|
+
}
|
|
1026
|
+
if (v && !(v instanceof Error) && e(
|
|
1027
|
+
(d || "React class") + ": type specification of " + l + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1028
|
+
), v instanceof Error && !(v.message in r)) {
|
|
1029
|
+
r[v.message] = !0;
|
|
1030
|
+
var y = f ? f() : "";
|
|
1031
|
+
e(
|
|
1032
|
+
"Failed " + l + " type: " + v.message + (y ?? "")
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
return o.resetWarningCache = function() {
|
|
1039
|
+
process.env.NODE_ENV !== "production" && (r = {});
|
|
1040
|
+
}, Ee = o, Ee;
|
|
1041
|
+
}
|
|
1042
|
+
var $e, Le;
|
|
1043
|
+
function Sr() {
|
|
1044
|
+
if (Le)
|
|
1045
|
+
return $e;
|
|
1046
|
+
Le = 1;
|
|
1047
|
+
var e = He(), n = xr(), r = Pe(), t = Ke(), o = Tr(), a = function() {
|
|
1048
|
+
};
|
|
1049
|
+
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
1050
|
+
var d = "Warning: " + l;
|
|
1051
|
+
typeof console < "u" && console.error(d);
|
|
1052
|
+
try {
|
|
1053
|
+
throw new Error(d);
|
|
1054
|
+
} catch {
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
function s() {
|
|
1058
|
+
return null;
|
|
1059
|
+
}
|
|
1060
|
+
return $e = function(l, d) {
|
|
1061
|
+
var f = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1062
|
+
function v(m) {
|
|
1063
|
+
var b = m && (f && m[f] || m[u]);
|
|
1064
|
+
if (typeof b == "function")
|
|
1065
|
+
return b;
|
|
1066
|
+
}
|
|
1067
|
+
var _ = "<<anonymous>>", y = {
|
|
1068
|
+
array: P("array"),
|
|
1069
|
+
bigint: P("bigint"),
|
|
1070
|
+
bool: P("boolean"),
|
|
1071
|
+
func: P("function"),
|
|
1072
|
+
number: P("number"),
|
|
1073
|
+
object: P("object"),
|
|
1074
|
+
string: P("string"),
|
|
1075
|
+
symbol: P("symbol"),
|
|
1076
|
+
any: q(),
|
|
1077
|
+
arrayOf: k,
|
|
1078
|
+
element: I(),
|
|
1079
|
+
elementType: p(),
|
|
1080
|
+
instanceOf: H,
|
|
1081
|
+
node: Y(),
|
|
1082
|
+
objectOf: Z,
|
|
1083
|
+
oneOf: X,
|
|
1084
|
+
oneOfType: W,
|
|
1085
|
+
shape: G,
|
|
1086
|
+
exact: V
|
|
1087
|
+
};
|
|
1088
|
+
function N(m, b) {
|
|
1089
|
+
return m === b ? m !== 0 || 1 / m === 1 / b : m !== m && b !== b;
|
|
1090
|
+
}
|
|
1091
|
+
function g(m, b) {
|
|
1092
|
+
this.message = m, this.data = b && typeof b == "object" ? b : {}, this.stack = "";
|
|
1093
|
+
}
|
|
1094
|
+
g.prototype = Error.prototype;
|
|
1095
|
+
function T(m) {
|
|
1096
|
+
if (process.env.NODE_ENV !== "production")
|
|
1097
|
+
var b = {}, w = 0;
|
|
1098
|
+
function S(R, x, C, O, F, A, K) {
|
|
1099
|
+
if (O = O || _, A = A || C, K !== r) {
|
|
1100
|
+
if (d) {
|
|
1101
|
+
var h = new Error(
|
|
1102
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1103
|
+
);
|
|
1104
|
+
throw h.name = "Invariant Violation", h;
|
|
1105
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1106
|
+
var ee = O + ":" + C;
|
|
1107
|
+
!b[ee] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1108
|
+
w < 3 && (a(
|
|
1109
|
+
"You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + O + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1110
|
+
), b[ee] = !0, w++);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
return x[C] == null ? R ? x[C] === null ? new g("The " + F + " `" + A + "` is marked as required " + ("in `" + O + "`, but its value is `null`.")) : new g("The " + F + " `" + A + "` is marked as required in " + ("`" + O + "`, but its value is `undefined`.")) : null : m(x, C, O, F, A);
|
|
1114
|
+
}
|
|
1115
|
+
var $ = S.bind(null, !1);
|
|
1116
|
+
return $.isRequired = S.bind(null, !0), $;
|
|
1117
|
+
}
|
|
1118
|
+
function P(m) {
|
|
1119
|
+
function b(w, S, $, R, x, C) {
|
|
1120
|
+
var O = w[S], F = Q(O);
|
|
1121
|
+
if (F !== m) {
|
|
1122
|
+
var A = te(O);
|
|
1123
|
+
return new g(
|
|
1124
|
+
"Invalid " + R + " `" + x + "` of type " + ("`" + A + "` supplied to `" + $ + "`, expected ") + ("`" + m + "`."),
|
|
1125
|
+
{ expectedType: m }
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
return null;
|
|
1129
|
+
}
|
|
1130
|
+
return T(b);
|
|
1131
|
+
}
|
|
1132
|
+
function q() {
|
|
1133
|
+
return T(s);
|
|
1134
|
+
}
|
|
1135
|
+
function k(m) {
|
|
1136
|
+
function b(w, S, $, R, x) {
|
|
1137
|
+
if (typeof m != "function")
|
|
1138
|
+
return new g("Property `" + x + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
1139
|
+
var C = w[S];
|
|
1140
|
+
if (!Array.isArray(C)) {
|
|
1141
|
+
var O = Q(C);
|
|
1142
|
+
return new g("Invalid " + R + " `" + x + "` of type " + ("`" + O + "` supplied to `" + $ + "`, expected an array."));
|
|
1143
|
+
}
|
|
1144
|
+
for (var F = 0; F < C.length; F++) {
|
|
1145
|
+
var A = m(C, F, $, R, x + "[" + F + "]", r);
|
|
1146
|
+
if (A instanceof Error)
|
|
1147
|
+
return A;
|
|
1148
|
+
}
|
|
1149
|
+
return null;
|
|
1150
|
+
}
|
|
1151
|
+
return T(b);
|
|
1152
|
+
}
|
|
1153
|
+
function I() {
|
|
1154
|
+
function m(b, w, S, $, R) {
|
|
1155
|
+
var x = b[w];
|
|
1156
|
+
if (!l(x)) {
|
|
1157
|
+
var C = Q(x);
|
|
1158
|
+
return new g("Invalid " + $ + " `" + R + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement."));
|
|
1159
|
+
}
|
|
1160
|
+
return null;
|
|
1161
|
+
}
|
|
1162
|
+
return T(m);
|
|
1163
|
+
}
|
|
1164
|
+
function p() {
|
|
1165
|
+
function m(b, w, S, $, R) {
|
|
1166
|
+
var x = b[w];
|
|
1167
|
+
if (!e.isValidElementType(x)) {
|
|
1168
|
+
var C = Q(x);
|
|
1169
|
+
return new g("Invalid " + $ + " `" + R + "` of type " + ("`" + C + "` supplied to `" + S + "`, expected a single ReactElement type."));
|
|
1170
|
+
}
|
|
1171
|
+
return null;
|
|
1172
|
+
}
|
|
1173
|
+
return T(m);
|
|
1174
|
+
}
|
|
1175
|
+
function H(m) {
|
|
1176
|
+
function b(w, S, $, R, x) {
|
|
1177
|
+
if (!(w[S] instanceof m)) {
|
|
1178
|
+
var C = m.name || _, O = ye(w[S]);
|
|
1179
|
+
return new g("Invalid " + R + " `" + x + "` of type " + ("`" + O + "` supplied to `" + $ + "`, expected ") + ("instance of `" + C + "`."));
|
|
1180
|
+
}
|
|
1181
|
+
return null;
|
|
1182
|
+
}
|
|
1183
|
+
return T(b);
|
|
1184
|
+
}
|
|
1185
|
+
function X(m) {
|
|
1186
|
+
if (!Array.isArray(m))
|
|
1187
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1188
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1189
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
1190
|
+
function b(w, S, $, R, x) {
|
|
1191
|
+
for (var C = w[S], O = 0; O < m.length; O++)
|
|
1192
|
+
if (N(C, m[O]))
|
|
1193
|
+
return null;
|
|
1194
|
+
var F = JSON.stringify(m, function(K, h) {
|
|
1195
|
+
var ee = te(h);
|
|
1196
|
+
return ee === "symbol" ? String(h) : h;
|
|
1197
|
+
});
|
|
1198
|
+
return new g("Invalid " + R + " `" + x + "` of value `" + String(C) + "` " + ("supplied to `" + $ + "`, expected one of " + F + "."));
|
|
1199
|
+
}
|
|
1200
|
+
return T(b);
|
|
1201
|
+
}
|
|
1202
|
+
function Z(m) {
|
|
1203
|
+
function b(w, S, $, R, x) {
|
|
1204
|
+
if (typeof m != "function")
|
|
1205
|
+
return new g("Property `" + x + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
1206
|
+
var C = w[S], O = Q(C);
|
|
1207
|
+
if (O !== "object")
|
|
1208
|
+
return new g("Invalid " + R + " `" + x + "` of type " + ("`" + O + "` supplied to `" + $ + "`, expected an object."));
|
|
1209
|
+
for (var F in C)
|
|
1210
|
+
if (t(C, F)) {
|
|
1211
|
+
var A = m(C, F, $, R, x + "." + F, r);
|
|
1212
|
+
if (A instanceof Error)
|
|
1213
|
+
return A;
|
|
1214
|
+
}
|
|
1215
|
+
return null;
|
|
1216
|
+
}
|
|
1217
|
+
return T(b);
|
|
1218
|
+
}
|
|
1219
|
+
function W(m) {
|
|
1220
|
+
if (!Array.isArray(m))
|
|
1221
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
1222
|
+
for (var b = 0; b < m.length; b++) {
|
|
1223
|
+
var w = m[b];
|
|
1224
|
+
if (typeof w != "function")
|
|
1225
|
+
return a(
|
|
1226
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue(w) + " at index " + b + "."
|
|
1227
|
+
), s;
|
|
1228
|
+
}
|
|
1229
|
+
function S($, R, x, C, O) {
|
|
1230
|
+
for (var F = [], A = 0; A < m.length; A++) {
|
|
1231
|
+
var K = m[A], h = K($, R, x, C, O, r);
|
|
1232
|
+
if (h == null)
|
|
1233
|
+
return null;
|
|
1234
|
+
h.data && t(h.data, "expectedType") && F.push(h.data.expectedType);
|
|
1235
|
+
}
|
|
1236
|
+
var ee = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
1237
|
+
return new g("Invalid " + C + " `" + O + "` supplied to " + ("`" + x + "`" + ee + "."));
|
|
1238
|
+
}
|
|
1239
|
+
return T(S);
|
|
1240
|
+
}
|
|
1241
|
+
function Y() {
|
|
1242
|
+
function m(b, w, S, $, R) {
|
|
1243
|
+
return ie(b[w]) ? null : new g("Invalid " + $ + " `" + R + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
|
|
1244
|
+
}
|
|
1245
|
+
return T(m);
|
|
1246
|
+
}
|
|
1247
|
+
function J(m, b, w, S, $) {
|
|
1248
|
+
return new g(
|
|
1249
|
+
(m || "React class") + ": " + b + " type `" + w + "." + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
1250
|
+
);
|
|
1251
|
+
}
|
|
1252
|
+
function G(m) {
|
|
1253
|
+
function b(w, S, $, R, x) {
|
|
1254
|
+
var C = w[S], O = Q(C);
|
|
1255
|
+
if (O !== "object")
|
|
1256
|
+
return new g("Invalid " + R + " `" + x + "` of type `" + O + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1257
|
+
for (var F in m) {
|
|
1258
|
+
var A = m[F];
|
|
1259
|
+
if (typeof A != "function")
|
|
1260
|
+
return J($, R, x, F, te(A));
|
|
1261
|
+
var K = A(C, F, $, R, x + "." + F, r);
|
|
1262
|
+
if (K)
|
|
1263
|
+
return K;
|
|
1264
|
+
}
|
|
1265
|
+
return null;
|
|
1266
|
+
}
|
|
1267
|
+
return T(b);
|
|
1268
|
+
}
|
|
1269
|
+
function V(m) {
|
|
1270
|
+
function b(w, S, $, R, x) {
|
|
1271
|
+
var C = w[S], O = Q(C);
|
|
1272
|
+
if (O !== "object")
|
|
1273
|
+
return new g("Invalid " + R + " `" + x + "` of type `" + O + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1274
|
+
var F = n({}, w[S], m);
|
|
1275
|
+
for (var A in F) {
|
|
1276
|
+
var K = m[A];
|
|
1277
|
+
if (t(m, A) && typeof K != "function")
|
|
1278
|
+
return J($, R, x, A, te(K));
|
|
1279
|
+
if (!K)
|
|
1280
|
+
return new g(
|
|
1281
|
+
"Invalid " + R + " `" + x + "` key `" + A + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(w[S], null, " ") + `
|
|
1282
|
+
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
1283
|
+
);
|
|
1284
|
+
var h = K(C, A, $, R, x + "." + A, r);
|
|
1285
|
+
if (h)
|
|
1286
|
+
return h;
|
|
1287
|
+
}
|
|
1288
|
+
return null;
|
|
1289
|
+
}
|
|
1290
|
+
return T(b);
|
|
1291
|
+
}
|
|
1292
|
+
function ie(m) {
|
|
1293
|
+
switch (typeof m) {
|
|
1294
|
+
case "number":
|
|
1295
|
+
case "string":
|
|
1296
|
+
case "undefined":
|
|
1297
|
+
return !0;
|
|
1298
|
+
case "boolean":
|
|
1299
|
+
return !m;
|
|
1300
|
+
case "object":
|
|
1301
|
+
if (Array.isArray(m))
|
|
1302
|
+
return m.every(ie);
|
|
1303
|
+
if (m === null || l(m))
|
|
1304
|
+
return !0;
|
|
1305
|
+
var b = v(m);
|
|
1306
|
+
if (b) {
|
|
1307
|
+
var w = b.call(m), S;
|
|
1308
|
+
if (b !== m.entries) {
|
|
1309
|
+
for (; !(S = w.next()).done; )
|
|
1310
|
+
if (!ie(S.value))
|
|
1311
|
+
return !1;
|
|
1312
|
+
} else
|
|
1313
|
+
for (; !(S = w.next()).done; ) {
|
|
1314
|
+
var $ = S.value;
|
|
1315
|
+
if ($ && !ie($[1]))
|
|
1316
|
+
return !1;
|
|
1317
|
+
}
|
|
1318
|
+
} else
|
|
1319
|
+
return !1;
|
|
1320
|
+
return !0;
|
|
1321
|
+
default:
|
|
1322
|
+
return !1;
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
function be(m, b) {
|
|
1326
|
+
return m === "symbol" ? !0 : b ? b["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && b instanceof Symbol : !1;
|
|
1327
|
+
}
|
|
1328
|
+
function Q(m) {
|
|
1329
|
+
var b = typeof m;
|
|
1330
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : be(b, m) ? "symbol" : b;
|
|
1331
|
+
}
|
|
1332
|
+
function te(m) {
|
|
1333
|
+
if (typeof m > "u" || m === null)
|
|
1334
|
+
return "" + m;
|
|
1335
|
+
var b = Q(m);
|
|
1336
|
+
if (b === "object") {
|
|
1337
|
+
if (m instanceof Date)
|
|
1338
|
+
return "date";
|
|
1339
|
+
if (m instanceof RegExp)
|
|
1340
|
+
return "regexp";
|
|
1341
|
+
}
|
|
1342
|
+
return b;
|
|
1343
|
+
}
|
|
1344
|
+
function ue(m) {
|
|
1345
|
+
var b = te(m);
|
|
1346
|
+
switch (b) {
|
|
1347
|
+
case "array":
|
|
1348
|
+
case "object":
|
|
1349
|
+
return "an " + b;
|
|
1350
|
+
case "boolean":
|
|
1351
|
+
case "date":
|
|
1352
|
+
case "regexp":
|
|
1353
|
+
return "a " + b;
|
|
1354
|
+
default:
|
|
1355
|
+
return b;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
function ye(m) {
|
|
1359
|
+
return !m.constructor || !m.constructor.name ? _ : m.constructor.name;
|
|
1360
|
+
}
|
|
1361
|
+
return y.checkPropTypes = o, y.resetWarningCache = o.resetWarningCache, y.PropTypes = y, y;
|
|
1362
|
+
}, $e;
|
|
1363
|
+
}
|
|
1364
|
+
var xe, qe;
|
|
1365
|
+
function Cr() {
|
|
1366
|
+
if (qe)
|
|
1367
|
+
return xe;
|
|
1368
|
+
qe = 1;
|
|
1369
|
+
var e = Pe();
|
|
1370
|
+
function n() {
|
|
1371
|
+
}
|
|
1372
|
+
function r() {
|
|
1373
|
+
}
|
|
1374
|
+
return r.resetWarningCache = n, xe = function() {
|
|
1375
|
+
function t(s, l, d, f, u, v) {
|
|
1376
|
+
if (v !== e) {
|
|
1377
|
+
var _ = new Error(
|
|
1378
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1379
|
+
);
|
|
1380
|
+
throw _.name = "Invariant Violation", _;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
t.isRequired = t;
|
|
1384
|
+
function o() {
|
|
1385
|
+
return t;
|
|
1386
|
+
}
|
|
1387
|
+
var a = {
|
|
1388
|
+
array: t,
|
|
1389
|
+
bigint: t,
|
|
1390
|
+
bool: t,
|
|
1391
|
+
func: t,
|
|
1392
|
+
number: t,
|
|
1393
|
+
object: t,
|
|
1394
|
+
string: t,
|
|
1395
|
+
symbol: t,
|
|
1396
|
+
any: t,
|
|
1397
|
+
arrayOf: o,
|
|
1398
|
+
element: t,
|
|
1399
|
+
elementType: t,
|
|
1400
|
+
instanceOf: o,
|
|
1401
|
+
node: t,
|
|
1402
|
+
objectOf: o,
|
|
1403
|
+
oneOf: o,
|
|
1404
|
+
oneOfType: o,
|
|
1405
|
+
shape: o,
|
|
1406
|
+
exact: o,
|
|
1407
|
+
checkPropTypes: r,
|
|
1408
|
+
resetWarningCache: n
|
|
1409
|
+
};
|
|
1410
|
+
return a.PropTypes = a, a;
|
|
1411
|
+
}, xe;
|
|
1412
|
+
}
|
|
1413
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1414
|
+
var wr = He(), Pr = !0;
|
|
1415
|
+
Se.exports = Sr()(wr.isElement, Pr);
|
|
1416
|
+
} else
|
|
1417
|
+
Se.exports = Cr()();
|
|
1418
|
+
var Rr = Se.exports;
|
|
1419
|
+
const Or = /* @__PURE__ */ Nr(Rr), Ar = "_spinner_1sjgh_5", kr = "_internal_1sjgh_40", Ir = "_external_1sjgh_41", Mr = {
|
|
1420
|
+
spinner: Ar,
|
|
1421
|
+
"internal-circle": "_internal-circle_1sjgh_40",
|
|
1422
|
+
"external-circle": "_external-circle_1sjgh_41",
|
|
1423
|
+
internal: kr,
|
|
1424
|
+
external: Ir,
|
|
1425
|
+
"spinner-overlay": "_spinner-overlay_1sjgh_57"
|
|
1426
|
+
};
|
|
1427
|
+
function Je({ size: e }) {
|
|
1428
|
+
const n = D();
|
|
1429
|
+
return ae(() => {
|
|
1430
|
+
var r, t;
|
|
1431
|
+
(r = document == null ? void 0 : document.getElementById(n)) == null || r.style.setProperty("width", `${e}px`), (t = document == null ? void 0 : document.getElementById(n)) == null || t.style.setProperty("height", `${e}px`);
|
|
1432
|
+
}, [e, n]), /* @__PURE__ */ E("svg", { id: n, className: Mr.spinner, viewBox: "0 0 120 120", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1433
|
+
/* @__PURE__ */ i("circle", { className: "internal-circle", cx: "60", cy: "60", r: "30" }),
|
|
1434
|
+
/* @__PURE__ */ i("circle", { className: "external-circle", cx: "60", cy: "60", r: "50" })
|
|
1435
|
+
] });
|
|
1436
|
+
}
|
|
1437
|
+
Je.propTypes = {
|
|
1438
|
+
size: Or.number
|
|
1439
|
+
};
|
|
1440
|
+
Je.defaultProps = {
|
|
1441
|
+
size: 48
|
|
1442
|
+
};
|
|
1443
|
+
const it = B(({
|
|
1444
|
+
children: e,
|
|
1445
|
+
className: n,
|
|
1446
|
+
css: r = {},
|
|
1447
|
+
hint: t,
|
|
1448
|
+
isInline: o = !1,
|
|
1449
|
+
legend: a,
|
|
1450
|
+
message: s,
|
|
1451
|
+
messageType: l,
|
|
1452
|
+
required: d,
|
|
1453
|
+
...f
|
|
1454
|
+
}, u) => {
|
|
1455
|
+
const v = D(), { extendRequiredFieldsLabelsWith: _, extendOptionalFieldsLabelsWith: y } = le();
|
|
1456
|
+
return /* @__PURE__ */ E(
|
|
1457
|
+
"fieldset",
|
|
1458
|
+
{
|
|
1459
|
+
ref: u,
|
|
1460
|
+
className: c("fr-fieldset", { [`fr-fieldset--${l}`]: l }, n),
|
|
1461
|
+
...se(f),
|
|
1462
|
+
"aria-labelledby": s && l ? `${v}-message` : void 0,
|
|
1463
|
+
children: [
|
|
1464
|
+
a && /* @__PURE__ */ E("legend", { className: c("fr-fieldset__legend fr-text--regular", r.legend), children: [
|
|
1465
|
+
a,
|
|
1466
|
+
d ? _ : y,
|
|
1467
|
+
t && /* @__PURE__ */ i("span", { className: c("fr-hint-text", r.legendHint), children: t })
|
|
1468
|
+
] }),
|
|
1469
|
+
he.toArray(e).map((N, g) => /* @__PURE__ */ i("div", { className: c("fr-fieldset__element", { "fr-fieldset__element--inline": o }, r.element), children: N }, `${v}-${g}`)),
|
|
1470
|
+
s && l && /* @__PURE__ */ i("div", { id: `${v}-message`, className: c("fr-messages-group", r.messageDiv), children: /* @__PURE__ */ i("p", { className: c(`fr-message fr-message--${l}`, r.messageP), children: s }) })
|
|
1471
|
+
]
|
|
1472
|
+
}
|
|
1473
|
+
);
|
|
1474
|
+
}), ct = B(({
|
|
1475
|
+
className: e,
|
|
1476
|
+
css: n = {},
|
|
1477
|
+
hint: r,
|
|
1478
|
+
id: t,
|
|
1479
|
+
label: o,
|
|
1480
|
+
imageComponent: a,
|
|
1481
|
+
...s
|
|
1482
|
+
}, l) => {
|
|
1483
|
+
const d = t || D();
|
|
1484
|
+
return /* @__PURE__ */ E("div", { className: c("fr-radio-group", { "fr-radio-rich": a }, e), children: [
|
|
1485
|
+
/* @__PURE__ */ i(
|
|
1486
|
+
"input",
|
|
1487
|
+
{
|
|
1488
|
+
ref: l,
|
|
1489
|
+
...s,
|
|
1490
|
+
type: "radio",
|
|
1491
|
+
id: d
|
|
1492
|
+
}
|
|
1493
|
+
),
|
|
1494
|
+
/* @__PURE__ */ E(
|
|
1495
|
+
"label",
|
|
1496
|
+
{
|
|
1497
|
+
className: c("fr-label"),
|
|
1498
|
+
htmlFor: d,
|
|
1499
|
+
children: [
|
|
1500
|
+
o,
|
|
1501
|
+
r && /* @__PURE__ */ i("p", { className: c("fr-hint-text"), children: r })
|
|
1502
|
+
]
|
|
1503
|
+
}
|
|
1504
|
+
),
|
|
1505
|
+
a && /* @__PURE__ */ i("div", { className: c("fr-radio-rich__img"), children: a })
|
|
1506
|
+
] });
|
|
1507
|
+
}), lt = B(({
|
|
1508
|
+
className: e,
|
|
1509
|
+
css: n = {},
|
|
1510
|
+
hint: r,
|
|
1511
|
+
id: t,
|
|
1512
|
+
label: o,
|
|
1513
|
+
size: a,
|
|
1514
|
+
...s
|
|
1515
|
+
}, l) => {
|
|
1516
|
+
const d = D(), f = t || d;
|
|
1517
|
+
return /* @__PURE__ */ E("div", { className: c("fr-checkbox-group", { "fr-checkbox-group--sm": a === "sm" }, e), children: [
|
|
1518
|
+
/* @__PURE__ */ i(
|
|
1519
|
+
"input",
|
|
1520
|
+
{
|
|
1521
|
+
ref: l,
|
|
1522
|
+
type: "checkbox",
|
|
1523
|
+
id: f,
|
|
1524
|
+
className: c(n.input),
|
|
1525
|
+
...s
|
|
1526
|
+
}
|
|
1527
|
+
),
|
|
1528
|
+
/* @__PURE__ */ E("label", { className: c("fr-label", n.label), htmlFor: f, children: [
|
|
1529
|
+
o,
|
|
1530
|
+
r && /* @__PURE__ */ i("span", { className: c("fr-hint-text", n.labelHint), children: r })
|
|
1531
|
+
] })
|
|
1532
|
+
] });
|
|
1533
|
+
}), ft = ({
|
|
1534
|
+
className: e,
|
|
1535
|
+
currentStep: n,
|
|
1536
|
+
currentTitle: r,
|
|
1537
|
+
nextStepTitle: t,
|
|
1538
|
+
steps: o,
|
|
1539
|
+
titleAs: a = "h4",
|
|
1540
|
+
...s
|
|
1541
|
+
}) => /* @__PURE__ */ E("div", { className: c("fr-stepper", e), ...s, children: [
|
|
1542
|
+
/* @__PURE__ */ E(a, { className: "fr-stepper__title", children: [
|
|
1543
|
+
/* @__PURE__ */ i("span", { className: "fr-stepper__state", children: `Étape ${n} sur ${o}` }),
|
|
1544
|
+
r
|
|
1545
|
+
] }),
|
|
1546
|
+
/* @__PURE__ */ i("div", { className: "fr-stepper__steps", "data-fr-current-step": n, "data-fr-steps": o }),
|
|
1547
|
+
/* @__PURE__ */ E("p", { className: "fr-stepper__details", children: [
|
|
1548
|
+
/* @__PURE__ */ i("span", { className: "fr-text--bold", children: "Étape suivante : " }),
|
|
1549
|
+
t
|
|
1550
|
+
] })
|
|
1551
|
+
] }), dt = ({
|
|
1552
|
+
as: e = "p",
|
|
1553
|
+
size: n,
|
|
1554
|
+
alt: r,
|
|
1555
|
+
bold: t,
|
|
1556
|
+
className: o,
|
|
1557
|
+
...a
|
|
1558
|
+
}) => {
|
|
1559
|
+
const s = c(o, {
|
|
1560
|
+
"fr-text--alt": n !== "lead" && r,
|
|
1561
|
+
"fr-text--heavy": t,
|
|
1562
|
+
[`fr-text--${n}`]: n && n !== "md"
|
|
1563
|
+
});
|
|
1564
|
+
return /* @__PURE__ */ i(e, { className: s, ...a });
|
|
1565
|
+
}, ut = ({
|
|
1566
|
+
as: e = "h1",
|
|
1567
|
+
className: n,
|
|
1568
|
+
look: r,
|
|
1569
|
+
...t
|
|
1570
|
+
}) => {
|
|
1571
|
+
const o = r && ["xs", "sm", "md", "lg", "xl"].includes(r), a = c(n, {
|
|
1572
|
+
[`fr-${r}`]: !o && r && r !== e,
|
|
1573
|
+
[`fr-display-${r}`]: o
|
|
1574
|
+
});
|
|
1575
|
+
return /* @__PURE__ */ i(e, { className: a, ...t });
|
|
1576
|
+
}, mt = ({
|
|
1577
|
+
buttonLabel: e = "Voir le fil d’Ariane",
|
|
1578
|
+
children: n,
|
|
1579
|
+
className: r,
|
|
1580
|
+
css: t = {},
|
|
1581
|
+
...o
|
|
1582
|
+
}) => {
|
|
1583
|
+
const a = D();
|
|
1584
|
+
return /* @__PURE__ */ E("nav", { role: "navigation", "aria-label": o["aria-label"] || "vous êtes ici:", className: c("fr-breadcrumb", r), ...o, children: [
|
|
1585
|
+
/* @__PURE__ */ i("button", { className: c("fr-breadcrumb__button", t.button), "aria-expanded": "false", "aria-controls": "breadcrumb-1", children: e || "Voir le fil d’Ariane" }),
|
|
1586
|
+
/* @__PURE__ */ i("div", { className: "fr-collapse", id: "breadcrumb-1", children: /* @__PURE__ */ i("ol", { className: c("fr-breadcrumb__list", t.list), children: L(n, z).filter((s) => U(s)).map((s, l, { length: d }) => /* @__PURE__ */ i("li", { className: c(t.item), children: re(s, {
|
|
1587
|
+
className: c("fr-breadcrumb__link"),
|
|
1588
|
+
"aria-current": l + 1 === d ? "page" : void 0
|
|
1589
|
+
}) }, `${a}-${l}`)) }) })
|
|
1590
|
+
] });
|
|
1591
|
+
}, pt = B(({
|
|
1592
|
+
id: e,
|
|
1593
|
+
className: n,
|
|
1594
|
+
css: r = {},
|
|
1595
|
+
errorMessage: t,
|
|
1596
|
+
hint: o,
|
|
1597
|
+
label: a = "Ajouter des fichiers",
|
|
1598
|
+
...s
|
|
1599
|
+
}, l) => {
|
|
1600
|
+
const d = D(), f = e || d, { extendOptionalFieldsLabelsWith: u, extendRequiredFieldsLabelsWith: v } = le();
|
|
1601
|
+
return /* @__PURE__ */ E("div", { className: c("fr-upload-group", { "fr-input-group--error": t, "fr-input-group--disabled": s.disabled }, n), children: [
|
|
1602
|
+
/* @__PURE__ */ E("label", { className: c("fr-label", r.label), htmlFor: f, children: [
|
|
1603
|
+
a,
|
|
1604
|
+
s.required ? v : u,
|
|
1605
|
+
o && /* @__PURE__ */ i("span", { className: "fr-hint-text", children: o })
|
|
1606
|
+
] }),
|
|
1607
|
+
/* @__PURE__ */ i(
|
|
1608
|
+
"input",
|
|
1609
|
+
{
|
|
1610
|
+
ref: l,
|
|
1611
|
+
id: f,
|
|
1612
|
+
className: c("fr-upload", r.input),
|
|
1613
|
+
type: "file",
|
|
1614
|
+
"aria-describedby": t ? `${f}-message` : void 0,
|
|
1615
|
+
...s
|
|
1616
|
+
}
|
|
1617
|
+
),
|
|
1618
|
+
t && /* @__PURE__ */ i("p", { id: `${f}-message`, className: c("fr-error-text", r.errorParagraph), children: t })
|
|
1619
|
+
] });
|
|
1620
|
+
}), Xe = B(({
|
|
1621
|
+
children: e,
|
|
1622
|
+
className: n,
|
|
1623
|
+
icon: r,
|
|
1624
|
+
id: t,
|
|
1625
|
+
...o
|
|
1626
|
+
}, a) => {
|
|
1627
|
+
const s = c("fr-modal__title", n);
|
|
1628
|
+
return /* @__PURE__ */ E(
|
|
1629
|
+
"h1",
|
|
1630
|
+
{
|
|
1631
|
+
ref: a,
|
|
1632
|
+
className: s,
|
|
1633
|
+
id: `${t}-title`,
|
|
1634
|
+
...se(o),
|
|
1635
|
+
children: [
|
|
1636
|
+
r && /* @__PURE__ */ i("span", { className: `fr-icon-${r} fr-icon--lg` }),
|
|
1637
|
+
e
|
|
1638
|
+
]
|
|
1639
|
+
}
|
|
1640
|
+
);
|
|
1641
|
+
}), ve = B(({
|
|
1642
|
+
className: e,
|
|
1643
|
+
controls: n,
|
|
1644
|
+
children: r = "Fermer",
|
|
1645
|
+
...t
|
|
1646
|
+
}, o) => /* @__PURE__ */ i(
|
|
1647
|
+
"button",
|
|
1648
|
+
{
|
|
1649
|
+
ref: o,
|
|
1650
|
+
id: `${n}-close`,
|
|
1651
|
+
"aria-controls": n || void 0,
|
|
1652
|
+
className: c("fr-btn--close fr-btn", e),
|
|
1653
|
+
type: "button",
|
|
1654
|
+
...t,
|
|
1655
|
+
children: r
|
|
1656
|
+
}
|
|
1657
|
+
)), jr = 9, Ye = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
|
|
1658
|
+
function Fr(e, n, r) {
|
|
1659
|
+
function t(o) {
|
|
1660
|
+
var f;
|
|
1661
|
+
const a = [
|
|
1662
|
+
...(f = e.current) == null ? void 0 : f.querySelectorAll(Ye)
|
|
1663
|
+
].filter((u) => !u.hasAttribute("disabled")), s = a[0], l = a[a.length - 1];
|
|
1664
|
+
(o.key === "Tab" || o.keyCode === jr) && (console.log("handleFocus", o), o.shiftKey ? document.activeElement === s && (l.focus(), o.preventDefault()) : (document.activeElement === l || document.activeElement === r) && (s.focus(), o.preventDefault()));
|
|
1665
|
+
}
|
|
1666
|
+
return ae(() => {
|
|
1667
|
+
var o;
|
|
1668
|
+
if (n) {
|
|
1669
|
+
console.log("here");
|
|
1670
|
+
const a = [
|
|
1671
|
+
...(o = e.current) == null ? void 0 : o.querySelectorAll(Ye)
|
|
1672
|
+
].filter((s) => !s.hasAttribute("disabled"));
|
|
1673
|
+
console.log("focusableEls", a[0]), document.addEventListener("keydown", t);
|
|
1674
|
+
} else
|
|
1675
|
+
r == null || r.focus();
|
|
1676
|
+
return () => document.removeEventListener("keydown", t);
|
|
1677
|
+
}, [n, e, r]), e;
|
|
1678
|
+
}
|
|
1679
|
+
const Dr = ({
|
|
1680
|
+
children: e,
|
|
1681
|
+
hide: n,
|
|
1682
|
+
size: r = "md",
|
|
1683
|
+
id: t,
|
|
1684
|
+
className: o,
|
|
1685
|
+
isOpen: a,
|
|
1686
|
+
canClose: s,
|
|
1687
|
+
...l
|
|
1688
|
+
}) => {
|
|
1689
|
+
var H, X, Z;
|
|
1690
|
+
const [d, f] = ne(null), v = { sm: 4, lg: 8, md: 6, xl: 10 }[r], _ = c("fr-modal", o), y = oe(null), N = (H = L(e, Xe)) == null ? void 0 : H[0], g = L(e, Ze), T = (X = L(e, Qe)) == null ? void 0 : X[0], P = (Z = L(e, ve)) == null ? void 0 : Z[0], q = t || D();
|
|
1691
|
+
ae(() => {
|
|
1692
|
+
var Y, J;
|
|
1693
|
+
y.current && (a && (f(document.activeElement), (Y = document == null ? void 0 : document.getElementById(q)) == null || Y.classList.add("fr-modal--opened")), a || (J = document == null ? void 0 : document.getElementById(q)) == null || J.classList.remove("fr-modal--opened"));
|
|
1694
|
+
}, [a]), ae(() => {
|
|
1695
|
+
const W = y.current;
|
|
1696
|
+
if (W)
|
|
1697
|
+
return W.addEventListener("dsfr.conceal", (Y) => Y.stopPropagation()), W.addEventListener("dsfr.disclose", (Y) => Y.stopPropagation()), () => {
|
|
1698
|
+
W.removeEventListener("dsfr.conceal", (Y) => Y.stopPropagation()), W.removeEventListener("dsfr.disclose", (Y) => Y.stopPropagation());
|
|
1699
|
+
};
|
|
1700
|
+
}, []);
|
|
1701
|
+
const k = (W) => {
|
|
1702
|
+
s && (!y.current || y.current === W.target || W.target.className.indexOf("closing-overlay") > -1) && n();
|
|
1703
|
+
};
|
|
1704
|
+
Fr(y, a, d);
|
|
1705
|
+
const I = P ? re(P, { onClick: () => n(), controls: q }) : s ? /* @__PURE__ */ i(ve, { onClick: () => n(), controls: q }) : null, p = /* @__PURE__ */ i(
|
|
1706
|
+
"dialog",
|
|
1707
|
+
{
|
|
1708
|
+
"aria-labelledby": `${q}-title`,
|
|
1709
|
+
"aria-modal": "true",
|
|
1710
|
+
className: _,
|
|
1711
|
+
ref: y,
|
|
1712
|
+
id: q,
|
|
1713
|
+
role: "dialog",
|
|
1714
|
+
onClick: (W) => k(W),
|
|
1715
|
+
...l,
|
|
1716
|
+
children: /* @__PURE__ */ i("div", { className: "fr-container fr-container--fluid fr-container-md", children: /* @__PURE__ */ i("div", { className: "fr-grid-row fr-grid-row--center closing-overlay", children: /* @__PURE__ */ i("div", { className: `fr-col-12 fr-col-md-${v}`, children: /* @__PURE__ */ E("div", { className: "fr-modal__body", children: [
|
|
1717
|
+
/* @__PURE__ */ i("div", { className: "fr-modal__header", children: I }),
|
|
1718
|
+
/* @__PURE__ */ E("div", { className: "fr-modal__content", children: [
|
|
1719
|
+
N && re(N, { id: q }),
|
|
1720
|
+
g ?? null
|
|
1721
|
+
] }),
|
|
1722
|
+
T
|
|
1723
|
+
] }) }) }) })
|
|
1724
|
+
}
|
|
1725
|
+
);
|
|
1726
|
+
return Ue.createPortal(
|
|
1727
|
+
p,
|
|
1728
|
+
document.body
|
|
1729
|
+
);
|
|
1730
|
+
}, Lr = ({
|
|
1731
|
+
children: e,
|
|
1732
|
+
size: n = "md",
|
|
1733
|
+
id: r,
|
|
1734
|
+
className: t,
|
|
1735
|
+
...o
|
|
1736
|
+
}) => {
|
|
1737
|
+
var N, g, T;
|
|
1738
|
+
const s = { sm: 4, lg: 8, md: 6, xl: 10 }[n], l = c("fr-modal", t), d = (N = L(e, Xe)) == null ? void 0 : N[0], f = L(e, Ze), u = (g = L(e, Qe)) == null ? void 0 : g[0], v = (T = L(e, ve)) == null ? void 0 : T[0], _ = v ? re(v, { controls: r }) : /* @__PURE__ */ i(ve, { controls: r }), y = /* @__PURE__ */ i(
|
|
1739
|
+
"dialog",
|
|
1740
|
+
{
|
|
1741
|
+
"aria-labelledby": `${r}-title`,
|
|
1742
|
+
className: l,
|
|
1743
|
+
id: r,
|
|
1744
|
+
role: "dialog",
|
|
1745
|
+
...o,
|
|
1746
|
+
children: /* @__PURE__ */ i("div", { className: "fr-container fr-container--fluid fr-container-md", children: /* @__PURE__ */ i("div", { className: "fr-grid-row fr-grid-row--center closing-overlay", children: /* @__PURE__ */ i("div", { className: `fr-col-12 fr-col-md-${s}`, children: /* @__PURE__ */ E("div", { className: "fr-modal__body", children: [
|
|
1747
|
+
/* @__PURE__ */ i("div", { className: "fr-modal__header", children: _ }),
|
|
1748
|
+
/* @__PURE__ */ E("div", { className: "fr-modal__content", children: [
|
|
1749
|
+
d && re(d, { id: r }),
|
|
1750
|
+
f ?? null
|
|
1751
|
+
] }),
|
|
1752
|
+
u
|
|
1753
|
+
] }) }) }) })
|
|
1754
|
+
}
|
|
1755
|
+
);
|
|
1756
|
+
return Ue.createPortal(
|
|
1757
|
+
y,
|
|
1758
|
+
document.body
|
|
1759
|
+
);
|
|
1760
|
+
}, vt = ({
|
|
1761
|
+
id: e,
|
|
1762
|
+
size: n = "md",
|
|
1763
|
+
hide: r,
|
|
1764
|
+
isOpen: t = !1,
|
|
1765
|
+
className: o,
|
|
1766
|
+
canClose: a = !0,
|
|
1767
|
+
...s
|
|
1768
|
+
}) => e ? /* @__PURE__ */ i(Lr, { id: e, size: n, className: o, ...s }) : /* @__PURE__ */ i(
|
|
1769
|
+
Dr,
|
|
1770
|
+
{
|
|
1771
|
+
id: e,
|
|
1772
|
+
isOpen: t,
|
|
1773
|
+
className: o,
|
|
1774
|
+
size: n,
|
|
1775
|
+
hide: r,
|
|
1776
|
+
canClose: a,
|
|
1777
|
+
...s
|
|
1778
|
+
}
|
|
1779
|
+
), Ze = B(({
|
|
1780
|
+
className: e,
|
|
1781
|
+
...n
|
|
1782
|
+
}, r) => /* @__PURE__ */ i(
|
|
1783
|
+
"div",
|
|
1784
|
+
{
|
|
1785
|
+
ref: r,
|
|
1786
|
+
className: c("fr-modal__content", e),
|
|
1787
|
+
...n
|
|
1788
|
+
}
|
|
1789
|
+
)), Qe = B(({
|
|
1790
|
+
className: e,
|
|
1791
|
+
...n
|
|
1792
|
+
}, r) => /* @__PURE__ */ i(
|
|
1793
|
+
"div",
|
|
1794
|
+
{
|
|
1795
|
+
ref: r,
|
|
1796
|
+
className: c("fr-modal__footer", e),
|
|
1797
|
+
...n
|
|
1798
|
+
}
|
|
1799
|
+
)), qr = B(({
|
|
1800
|
+
className: e,
|
|
1801
|
+
css: n = {},
|
|
1802
|
+
hasSeparator: r,
|
|
1803
|
+
hasLabelLeft: t,
|
|
1804
|
+
label: o,
|
|
1805
|
+
hint: a,
|
|
1806
|
+
...s
|
|
1807
|
+
}, l) => {
|
|
1808
|
+
const d = D(), f = s.id || d, u = c("fr-toggle", {
|
|
1809
|
+
"fr-toggle--border-bottom": r,
|
|
1810
|
+
"fr-toggle--label-left": t
|
|
1811
|
+
}, e);
|
|
1812
|
+
return /* @__PURE__ */ E(
|
|
1813
|
+
"div",
|
|
1814
|
+
{
|
|
1815
|
+
className: u,
|
|
1816
|
+
children: [
|
|
1817
|
+
/* @__PURE__ */ i(
|
|
1818
|
+
"input",
|
|
1819
|
+
{
|
|
1820
|
+
ref: l,
|
|
1821
|
+
type: "checkbox",
|
|
1822
|
+
className: c("fr-toggle__input", n["fr-toggle__input"]),
|
|
1823
|
+
id: f,
|
|
1824
|
+
...se(s, { exclude: ["type"] })
|
|
1825
|
+
}
|
|
1826
|
+
),
|
|
1827
|
+
/* @__PURE__ */ i(
|
|
1828
|
+
"label",
|
|
1829
|
+
{
|
|
1830
|
+
className: c("fr-toggle__label", n["fr-toggle__label"]),
|
|
1831
|
+
htmlFor: f,
|
|
1832
|
+
"data-fr-checked-label": "Activé",
|
|
1833
|
+
"data-fr-unchecked-label": "Désactivé",
|
|
1834
|
+
children: o
|
|
1835
|
+
}
|
|
1836
|
+
),
|
|
1837
|
+
a && /* @__PURE__ */ i("p", { className: c("fr-hint-text", n["fr-hint-text"]), children: a })
|
|
1838
|
+
]
|
|
1839
|
+
}
|
|
1840
|
+
);
|
|
1841
|
+
}), ht = ({ children: e, className: n, ...r }) => {
|
|
1842
|
+
const t = D();
|
|
1843
|
+
return /* @__PURE__ */ i("ul", { className: c("fr-toggle__list", n), ...se(r), children: L(e, qr).map((o, a) => /* @__PURE__ */ i("li", { children: o }, `${t}-${a}`)) });
|
|
1844
|
+
};
|
|
1845
|
+
export {
|
|
1846
|
+
_r as Accordion,
|
|
1847
|
+
Qr as AccordionGroup,
|
|
1848
|
+
et as Alert,
|
|
1849
|
+
ar as Badge,
|
|
1850
|
+
Gr as BadgeGroup,
|
|
1851
|
+
mt as Breadcrumb,
|
|
1852
|
+
ce as Button,
|
|
1853
|
+
Vr as ButtonGroup,
|
|
1854
|
+
lt as Checkbox,
|
|
1855
|
+
Jr as Col,
|
|
1856
|
+
Hr as Container,
|
|
1857
|
+
zr as DSFRConfig,
|
|
1858
|
+
hr as DissmissibleTag,
|
|
1859
|
+
lr as FastAccess,
|
|
1860
|
+
it as Fieldset,
|
|
1861
|
+
pt as FileUpload,
|
|
1862
|
+
Xr as Header,
|
|
1863
|
+
z as Link,
|
|
1864
|
+
mr as Logo,
|
|
1865
|
+
vt as Modal,
|
|
1866
|
+
ve as ModalClose,
|
|
1867
|
+
Ze as ModalContent,
|
|
1868
|
+
Qe as ModalFooter,
|
|
1869
|
+
Xe as ModalTitle,
|
|
1870
|
+
ur as Nav,
|
|
1871
|
+
Ge as NavItem,
|
|
1872
|
+
rt as Notice,
|
|
1873
|
+
fr as Operator,
|
|
1874
|
+
ct as Radio,
|
|
1875
|
+
Kr as Row,
|
|
1876
|
+
dr as SearchBar,
|
|
1877
|
+
vr as SelectableTag,
|
|
1878
|
+
cr as Service,
|
|
1879
|
+
nt as SideMenu,
|
|
1880
|
+
Ve as SideMenuItem,
|
|
1881
|
+
at as SideMenuLink,
|
|
1882
|
+
Je as Spinner,
|
|
1883
|
+
ft as Stepper,
|
|
1884
|
+
gr as Tab,
|
|
1885
|
+
tt as Tabs,
|
|
1886
|
+
pr as Tag,
|
|
1887
|
+
Zr as TagGroup,
|
|
1888
|
+
dt as Text,
|
|
1889
|
+
st as TextArea,
|
|
1890
|
+
ot as TextInput,
|
|
1891
|
+
ut as Title,
|
|
1892
|
+
qr as Toggle,
|
|
1893
|
+
ht as ToggleGroup,
|
|
1894
|
+
le as useDSFRConfig
|
|
1895
|
+
};
|