@aseguragonzalez/ui 1.0.4 → 1.0.5
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/components/AppShell/AppShell.cjs +1 -0
- package/dist/components/AppShell/AppShell.js +37 -0
- package/dist/components/AppShell/AppShell.module.css.cjs +1 -0
- package/dist/components/AppShell/AppShell.module.css.js +12 -0
- package/dist/components/Banner/Banner.cjs +1 -0
- package/dist/components/Banner/Banner.js +200 -0
- package/dist/components/Banner/Banner.module.css.cjs +1 -0
- package/dist/components/Banner/Banner.module.css.js +18 -0
- package/dist/components/BarChart/BarChart.cjs +1 -0
- package/dist/components/BarChart/BarChart.js +104 -0
- package/dist/components/BarChart/BarChart.module.css.cjs +1 -0
- package/dist/components/BarChart/BarChart.module.css.js +13 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +33 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +10 -0
- package/dist/components/Card/Card.cjs +1 -0
- package/dist/components/Card/Card.js +54 -0
- package/dist/components/Card/Card.module.css.cjs +1 -0
- package/dist/components/Card/Card.module.css.js +16 -0
- package/dist/components/Carousel/Carousel.cjs +1 -0
- package/dist/components/Carousel/Carousel.js +146 -0
- package/dist/components/Carousel/Carousel.module.css.cjs +1 -0
- package/dist/components/Carousel/Carousel.module.css.js +15 -0
- package/dist/components/CheckboxField/CheckboxField.cjs +1 -0
- package/dist/components/CheckboxField/CheckboxField.js +43 -0
- package/dist/components/CheckboxField/CheckboxField.module.css.cjs +1 -0
- package/dist/components/CheckboxField/CheckboxField.module.css.js +9 -0
- package/dist/components/Container/Container.cjs +1 -0
- package/dist/components/Container/Container.js +20 -0
- package/dist/components/Container/Container.module.css.cjs +1 -0
- package/dist/components/Container/Container.module.css.js +12 -0
- package/dist/components/DataTable/DataTable.cjs +1 -0
- package/dist/components/DataTable/DataTable.js +109 -0
- package/dist/components/DataTable/DataTable.module.css.cjs +1 -0
- package/dist/components/DataTable/DataTable.module.css.js +22 -0
- package/dist/components/DateField/DateField.cjs +1 -0
- package/dist/components/DateField/DateField.js +52 -0
- package/dist/components/DateField/DateField.module.css.cjs +1 -0
- package/dist/components/DateField/DateField.module.css.js +7 -0
- package/dist/components/DonutChart/DonutChart.cjs +1 -0
- package/dist/components/DonutChart/DonutChart.js +98 -0
- package/dist/components/DonutChart/DonutChart.module.css.cjs +1 -0
- package/dist/components/DonutChart/DonutChart.module.css.js +15 -0
- package/dist/components/EmailField/EmailField.cjs +1 -0
- package/dist/components/EmailField/EmailField.js +51 -0
- package/dist/components/EmailField/EmailField.module.css.cjs +1 -0
- package/dist/components/EmailField/EmailField.module.css.js +7 -0
- package/dist/components/Grid/Grid.cjs +1 -0
- package/dist/components/Grid/Grid.js +42 -0
- package/dist/components/Grid/Grid.module.css.cjs +1 -0
- package/dist/components/Grid/Grid.module.css.js +7 -0
- package/dist/components/LineChart/LineChart.cjs +1 -0
- package/dist/components/LineChart/LineChart.js +112 -0
- package/dist/components/LineChart/LineChart.module.css.cjs +1 -0
- package/dist/components/LineChart/LineChart.module.css.js +12 -0
- package/dist/components/Navbar/Navbar.cjs +1 -0
- package/dist/components/Navbar/Navbar.js +101 -0
- package/dist/components/Navbar/Navbar.module.css.cjs +1 -0
- package/dist/components/Navbar/Navbar.module.css.js +22 -0
- package/dist/components/NumberField/NumberField.cjs +1 -0
- package/dist/components/NumberField/NumberField.js +54 -0
- package/dist/components/NumberField/NumberField.module.css.cjs +1 -0
- package/dist/components/NumberField/NumberField.module.css.js +7 -0
- package/dist/components/PageLayout/PageLayout.cjs +1 -0
- package/dist/components/PageLayout/PageLayout.js +42 -0
- package/dist/components/PageLayout/PageLayout.module.css.cjs +1 -0
- package/dist/components/PageLayout/PageLayout.module.css.js +12 -0
- package/dist/components/PasswordField/PasswordField.cjs +1 -0
- package/dist/components/PasswordField/PasswordField.js +50 -0
- package/dist/components/PasswordField/PasswordField.module.css.cjs +1 -0
- package/dist/components/PasswordField/PasswordField.module.css.js +4 -0
- package/dist/components/PhoneField/PhoneField.cjs +1 -0
- package/dist/components/PhoneField/PhoneField.js +51 -0
- package/dist/components/PhoneField/PhoneField.module.css.cjs +1 -0
- package/dist/components/PhoneField/PhoneField.module.css.js +7 -0
- package/dist/components/RadarChart/RadarChart.cjs +1 -0
- package/dist/components/RadarChart/RadarChart.js +101 -0
- package/dist/components/RadarChart/RadarChart.module.css.cjs +1 -0
- package/dist/components/RadarChart/RadarChart.module.css.js +15 -0
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +63 -0
- package/dist/components/RadioGroup/RadioGroup.module.css.cjs +1 -0
- package/dist/components/RadioGroup/RadioGroup.module.css.js +12 -0
- package/dist/components/ScatterPlot/ScatterPlot.cjs +1 -0
- package/dist/components/ScatterPlot/ScatterPlot.js +134 -0
- package/dist/components/ScatterPlot/ScatterPlot.module.css.cjs +1 -0
- package/dist/components/ScatterPlot/ScatterPlot.module.css.js +14 -0
- package/dist/components/SearchField/SearchField.cjs +1 -0
- package/dist/components/SearchField/SearchField.js +51 -0
- package/dist/components/SearchField/SearchField.module.css.cjs +1 -0
- package/dist/components/SearchField/SearchField.module.css.js +7 -0
- package/dist/components/Section/Section.cjs +1 -0
- package/dist/components/Section/Section.js +41 -0
- package/dist/components/Section/Section.module.css.cjs +1 -0
- package/dist/components/Section/Section.module.css.js +12 -0
- package/dist/components/SelectField/SelectField.cjs +1 -0
- package/dist/components/SelectField/SelectField.js +57 -0
- package/dist/components/SelectField/SelectField.module.css.cjs +1 -0
- package/dist/components/SelectField/SelectField.module.css.js +4 -0
- package/dist/components/Sidebar/Sidebar.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.js +150 -0
- package/dist/components/Sidebar/Sidebar.module.css.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.module.css.js +25 -0
- package/dist/components/Stack/Stack.cjs +1 -0
- package/dist/components/Stack/Stack.js +42 -0
- package/dist/components/Stack/Stack.module.css.cjs +1 -0
- package/dist/components/Stack/Stack.module.css.js +4 -0
- package/dist/components/TextAreaField/TextAreaField.cjs +1 -0
- package/dist/components/TextAreaField/TextAreaField.js +49 -0
- package/dist/components/TextAreaField/TextAreaField.module.css.cjs +1 -0
- package/dist/components/TextAreaField/TextAreaField.module.css.js +4 -0
- package/dist/components/TextField/TextField.cjs +1 -0
- package/dist/components/TextField/TextField.js +51 -0
- package/dist/components/TextField/TextField.module.css.cjs +1 -0
- package/dist/components/TextField/TextField.module.css.js +7 -0
- package/dist/components/ThemeProvider/ThemeProvider.cjs +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.js +33 -0
- package/dist/components/ThemeProvider/useTheme.cjs +1 -0
- package/dist/components/ThemeProvider/useTheme.js +10 -0
- package/dist/components/ToggleField/ToggleField.cjs +1 -0
- package/dist/components/ToggleField/ToggleField.js +47 -0
- package/dist/components/ToggleField/ToggleField.module.css.cjs +1 -0
- package/dist/components/ToggleField/ToggleField.module.css.js +7 -0
- package/dist/components/shared/useFieldIds.cjs +1 -0
- package/dist/components/shared/useFieldIds.js +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -3653
- package/dist/patterns/AuthLayout/AuthLayout.cjs +1 -0
- package/dist/patterns/AuthLayout/AuthLayout.js +59 -0
- package/dist/patterns/AuthLayout/AuthLayout.module.css.cjs +1 -0
- package/dist/patterns/AuthLayout/AuthLayout.module.css.js +13 -0
- package/dist/primitives/Alert/Alert.cjs +1 -0
- package/dist/primitives/Alert/Alert.js +170 -0
- package/dist/primitives/Alert/Alert.module.css.cjs +1 -0
- package/dist/primitives/Alert/Alert.module.css.js +15 -0
- package/dist/primitives/Avatar/Avatar.cjs +1 -0
- package/dist/primitives/Avatar/Avatar.js +41 -0
- package/dist/primitives/Avatar/Avatar.module.css.cjs +1 -0
- package/dist/primitives/Avatar/Avatar.module.css.js +15 -0
- package/dist/primitives/Badge/Badge.cjs +1 -0
- package/dist/primitives/Badge/Badge.js +20 -0
- package/dist/primitives/Badge/Badge.module.css.cjs +1 -0
- package/dist/primitives/Badge/Badge.module.css.js +16 -0
- package/dist/primitives/Button/Button.cjs +1 -0
- package/dist/primitives/Button/Button.js +33 -0
- package/dist/primitives/Button/Button.module.css.cjs +1 -0
- package/dist/primitives/Button/Button.module.css.js +16 -0
- package/dist/primitives/Checkbox/Checkbox.cjs +1 -0
- package/dist/primitives/Checkbox/Checkbox.js +22 -0
- package/dist/primitives/Checkbox/Checkbox.module.css.cjs +1 -0
- package/dist/primitives/Checkbox/Checkbox.module.css.js +9 -0
- package/dist/primitives/DateInput/DateInput.cjs +1 -0
- package/dist/primitives/DateInput/DateInput.js +22 -0
- package/dist/primitives/Divider/Divider.cjs +1 -0
- package/dist/primitives/Divider/Divider.js +22 -0
- package/dist/primitives/Divider/Divider.module.css.cjs +1 -0
- package/dist/primitives/Divider/Divider.module.css.js +8 -0
- package/dist/primitives/EmailInput/EmailInput.cjs +1 -0
- package/dist/primitives/EmailInput/EmailInput.js +22 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.cjs +1 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.js +13 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.module.css.cjs +1 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.module.css.js +4 -0
- package/dist/primitives/Heading/Heading.cjs +1 -0
- package/dist/primitives/Heading/Heading.js +52 -0
- package/dist/primitives/Heading/Heading.module.css.cjs +1 -0
- package/dist/primitives/Heading/Heading.module.css.js +13 -0
- package/dist/primitives/Hint/Hint.cjs +1 -0
- package/dist/primitives/Hint/Hint.js +13 -0
- package/dist/primitives/Hint/Hint.module.css.cjs +1 -0
- package/dist/primitives/Hint/Hint.module.css.js +4 -0
- package/dist/primitives/Label/Label.cjs +1 -0
- package/dist/primitives/Label/Label.js +22 -0
- package/dist/primitives/Label/Label.module.css.cjs +1 -0
- package/dist/primitives/Label/Label.module.css.js +8 -0
- package/dist/primitives/Modal/Modal.cjs +1 -0
- package/dist/primitives/Modal/Modal.js +111 -0
- package/dist/primitives/Modal/Modal.module.css.cjs +1 -0
- package/dist/primitives/Modal/Modal.module.css.js +15 -0
- package/dist/primitives/NumberInput/NumberInput.cjs +1 -0
- package/dist/primitives/NumberInput/NumberInput.js +27 -0
- package/dist/primitives/NumberInput/NumberInput.module.css.cjs +1 -0
- package/dist/primitives/NumberInput/NumberInput.module.css.js +4 -0
- package/dist/primitives/PasswordInput/PasswordInput.cjs +1 -0
- package/dist/primitives/PasswordInput/PasswordInput.js +65 -0
- package/dist/primitives/PasswordInput/PasswordInput.module.css.cjs +1 -0
- package/dist/primitives/PasswordInput/PasswordInput.module.css.js +12 -0
- package/dist/primitives/PhoneInput/PhoneInput.cjs +1 -0
- package/dist/primitives/PhoneInput/PhoneInput.js +22 -0
- package/dist/primitives/ProgressBar/ProgressBar.cjs +1 -0
- package/dist/primitives/ProgressBar/ProgressBar.js +32 -0
- package/dist/primitives/ProgressBar/ProgressBar.module.css.cjs +1 -0
- package/dist/primitives/ProgressBar/ProgressBar.module.css.js +18 -0
- package/dist/primitives/RadioButton/RadioButton.cjs +1 -0
- package/dist/primitives/RadioButton/RadioButton.js +22 -0
- package/dist/primitives/RadioButton/RadioButton.module.css.cjs +1 -0
- package/dist/primitives/RadioButton/RadioButton.module.css.js +9 -0
- package/dist/primitives/SearchInput/SearchInput.cjs +1 -0
- package/dist/primitives/SearchInput/SearchInput.js +22 -0
- package/dist/primitives/Select/Select.cjs +1 -0
- package/dist/primitives/Select/Select.js +25 -0
- package/dist/primitives/Select/Select.module.css.cjs +1 -0
- package/dist/primitives/Select/Select.module.css.js +11 -0
- package/dist/primitives/Skeleton/Skeleton.cjs +1 -0
- package/dist/primitives/Skeleton/Skeleton.js +43 -0
- package/dist/primitives/Skeleton/Skeleton.module.css.cjs +1 -0
- package/dist/primitives/Skeleton/Skeleton.module.css.js +11 -0
- package/dist/primitives/Spinner/Spinner.cjs +1 -0
- package/dist/primitives/Spinner/Spinner.js +24 -0
- package/dist/primitives/Spinner/Spinner.module.css.cjs +1 -0
- package/dist/primitives/Spinner/Spinner.module.css.js +11 -0
- package/dist/primitives/Tabs/Tabs.cjs +1 -0
- package/dist/primitives/Tabs/Tabs.js +110 -0
- package/dist/primitives/Tabs/Tabs.module.css.cjs +1 -0
- package/dist/primitives/Tabs/Tabs.module.css.js +9 -0
- package/dist/primitives/Text/Text.cjs +1 -0
- package/dist/primitives/Text/Text.js +21 -0
- package/dist/primitives/Text/Text.module.css.cjs +1 -0
- package/dist/primitives/Text/Text.module.css.js +20 -0
- package/dist/primitives/TextArea/TextArea.cjs +1 -0
- package/dist/primitives/TextArea/TextArea.js +32 -0
- package/dist/primitives/TextArea/TextArea.module.css.cjs +1 -0
- package/dist/primitives/TextArea/TextArea.module.css.js +11 -0
- package/dist/primitives/TextInput/TextInput.cjs +1 -0
- package/dist/primitives/TextInput/TextInput.js +22 -0
- package/dist/primitives/TextInput/TextInput.module.css.cjs +1 -0
- package/dist/primitives/TextInput/TextInput.module.css.js +10 -0
- package/dist/primitives/Toast/Toast.cjs +1 -0
- package/dist/primitives/Toast/Toast.js +178 -0
- package/dist/primitives/Toast/Toast.module.css.cjs +1 -0
- package/dist/primitives/Toast/Toast.module.css.js +14 -0
- package/dist/primitives/Toggle/Toggle.cjs +1 -0
- package/dist/primitives/Toggle/Toggle.js +26 -0
- package/dist/primitives/Toggle/Toggle.module.css.cjs +1 -0
- package/dist/primitives/Toggle/Toggle.module.css.js +12 -0
- package/dist/primitives/Tooltip/Tooltip.cjs +1 -0
- package/dist/primitives/Tooltip/Tooltip.js +95 -0
- package/dist/primitives/Tooltip/Tooltip.module.css.cjs +1 -0
- package/dist/primitives/Tooltip/Tooltip.module.css.js +11 -0
- package/package.json +4 -14
package/dist/index.js
CHANGED
|
@@ -1,3653 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
});
|
|
66
|
-
y.displayName = "Button";
|
|
67
|
-
var b = {
|
|
68
|
-
input: "_input_1i1n1_1",
|
|
69
|
-
error: "_error_1i1n1_40",
|
|
70
|
-
sm: "_sm_1i1n1_76",
|
|
71
|
-
md: "_md_1i1n1_82",
|
|
72
|
-
lg: "_lg_1i1n1_88"
|
|
73
|
-
}, x = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
74
|
-
let a = [
|
|
75
|
-
b.input,
|
|
76
|
-
b[t],
|
|
77
|
-
e ? b.error : "",
|
|
78
|
-
n ?? ""
|
|
79
|
-
].filter(Boolean).join(" ");
|
|
80
|
-
return /* @__PURE__ */ f("input", {
|
|
81
|
-
ref: i,
|
|
82
|
-
type: "text",
|
|
83
|
-
"aria-invalid": e || void 0,
|
|
84
|
-
className: a,
|
|
85
|
-
...r
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
x.displayName = "TextInput";
|
|
89
|
-
var S = {
|
|
90
|
-
checkbox: "_checkbox_6awz6_1",
|
|
91
|
-
error: "_error_6awz6_99",
|
|
92
|
-
sm: "_sm_6awz6_122",
|
|
93
|
-
lg: "_lg_6awz6_132"
|
|
94
|
-
}, C = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
95
|
-
let a = [
|
|
96
|
-
S.checkbox,
|
|
97
|
-
t === "md" ? "" : S[t],
|
|
98
|
-
e ? S.error : "",
|
|
99
|
-
n ?? ""
|
|
100
|
-
].filter(Boolean).join(" ");
|
|
101
|
-
return /* @__PURE__ */ f("input", {
|
|
102
|
-
ref: i,
|
|
103
|
-
type: "checkbox",
|
|
104
|
-
"aria-invalid": e || void 0,
|
|
105
|
-
className: a,
|
|
106
|
-
...r
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
C.displayName = "Checkbox";
|
|
110
|
-
var w = {
|
|
111
|
-
radio: "_radio_v17m3_1",
|
|
112
|
-
error: "_error_v17m3_70",
|
|
113
|
-
sm: "_sm_v17m3_93",
|
|
114
|
-
lg: "_lg_v17m3_103"
|
|
115
|
-
}, T = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
116
|
-
let a = [
|
|
117
|
-
w.radio,
|
|
118
|
-
t === "md" ? "" : w[t],
|
|
119
|
-
e ? w.error : "",
|
|
120
|
-
n ?? ""
|
|
121
|
-
].filter(Boolean).join(" ");
|
|
122
|
-
return /* @__PURE__ */ f("input", {
|
|
123
|
-
ref: i,
|
|
124
|
-
type: "radio",
|
|
125
|
-
"aria-invalid": e || void 0,
|
|
126
|
-
className: a,
|
|
127
|
-
...r
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
T.displayName = "RadioButton";
|
|
131
|
-
var E = {
|
|
132
|
-
wrapper: "_wrapper_vgmp4_1",
|
|
133
|
-
select: "_select_vgmp4_7",
|
|
134
|
-
error: "_error_vgmp4_63",
|
|
135
|
-
sm: "_sm_vgmp4_88",
|
|
136
|
-
md: "_md_vgmp4_96",
|
|
137
|
-
lg: "_lg_vgmp4_104"
|
|
138
|
-
}, D = r(({ hasError: e = !1, size: t = "md", className: n, children: r, ...i }, a) => {
|
|
139
|
-
let o = [
|
|
140
|
-
E.wrapper,
|
|
141
|
-
E[t],
|
|
142
|
-
e ? E.error : "",
|
|
143
|
-
n ?? ""
|
|
144
|
-
].filter(Boolean).join(" ");
|
|
145
|
-
return /* @__PURE__ */ f("div", {
|
|
146
|
-
className: o,
|
|
147
|
-
children: /* @__PURE__ */ f("select", {
|
|
148
|
-
ref: a,
|
|
149
|
-
"aria-invalid": e || void 0,
|
|
150
|
-
className: E.select,
|
|
151
|
-
...i,
|
|
152
|
-
children: r
|
|
153
|
-
})
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
D.displayName = "Select";
|
|
157
|
-
var O = {
|
|
158
|
-
textarea: "_textarea_1l4wd_1",
|
|
159
|
-
error: "_error_1l4wd_42",
|
|
160
|
-
autoResize: "_autoResize_1l4wd_67",
|
|
161
|
-
sm: "_sm_1l4wd_74",
|
|
162
|
-
md: "_md_1l4wd_79",
|
|
163
|
-
lg: "_lg_1l4wd_84"
|
|
164
|
-
}, ee = r(({ hasError: e = !1, size: t = "md", autoResize: n = !1, className: r, onChange: a, ...s }, c) => {
|
|
165
|
-
let u = l(null), d = i((e) => {
|
|
166
|
-
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
167
|
-
}, [c]);
|
|
168
|
-
o(() => {
|
|
169
|
-
let e = u.current;
|
|
170
|
-
e && (n ? (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`) : e.style.height = "");
|
|
171
|
-
}, [n]);
|
|
172
|
-
let p = i((e) => {
|
|
173
|
-
n && (e.currentTarget.style.height = "auto", e.currentTarget.style.height = `${e.currentTarget.scrollHeight}px`), a?.(e);
|
|
174
|
-
}, [n, a]), m = [
|
|
175
|
-
O.textarea,
|
|
176
|
-
O[t],
|
|
177
|
-
e ? O.error : "",
|
|
178
|
-
n ? O.autoResize : "",
|
|
179
|
-
r ?? ""
|
|
180
|
-
].filter(Boolean).join(" ");
|
|
181
|
-
return /* @__PURE__ */ f("textarea", {
|
|
182
|
-
ref: d,
|
|
183
|
-
"aria-invalid": e || void 0,
|
|
184
|
-
className: m,
|
|
185
|
-
onChange: p,
|
|
186
|
-
...s
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
ee.displayName = "TextArea";
|
|
190
|
-
var k = {
|
|
191
|
-
root: "_root_16qku_3",
|
|
192
|
-
input: "_input_16qku_18",
|
|
193
|
-
track: "_track_16qku_36",
|
|
194
|
-
thumb: "_thumb_16qku_56",
|
|
195
|
-
md: "_md_16qku_127",
|
|
196
|
-
sm: "_sm_16qku_131",
|
|
197
|
-
lg: "_lg_16qku_138"
|
|
198
|
-
}, A = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => /* @__PURE__ */ p("span", {
|
|
199
|
-
className: [
|
|
200
|
-
k.root,
|
|
201
|
-
k[t],
|
|
202
|
-
n ?? ""
|
|
203
|
-
].filter(Boolean).join(" "),
|
|
204
|
-
children: [/* @__PURE__ */ f("input", {
|
|
205
|
-
ref: i,
|
|
206
|
-
type: "checkbox",
|
|
207
|
-
role: "switch",
|
|
208
|
-
"aria-invalid": e || void 0,
|
|
209
|
-
className: k.input,
|
|
210
|
-
...r
|
|
211
|
-
}), /* @__PURE__ */ f("span", {
|
|
212
|
-
className: k.track,
|
|
213
|
-
"aria-hidden": "true",
|
|
214
|
-
children: /* @__PURE__ */ f("span", { className: k.thumb })
|
|
215
|
-
})]
|
|
216
|
-
}));
|
|
217
|
-
A.displayName = "Toggle";
|
|
218
|
-
var j = {
|
|
219
|
-
root: "_root_1erf6_3",
|
|
220
|
-
input: "_input_1erf6_15",
|
|
221
|
-
error: "_error_1erf6_55",
|
|
222
|
-
toggle: "_toggle_1erf6_80",
|
|
223
|
-
sm: "_sm_1erf6_126",
|
|
224
|
-
md: "_md_1erf6_137",
|
|
225
|
-
lg: "_lg_1erf6_143"
|
|
226
|
-
}, te = () => /* @__PURE__ */ p("svg", {
|
|
227
|
-
viewBox: "0 0 24 24",
|
|
228
|
-
fill: "none",
|
|
229
|
-
stroke: "currentColor",
|
|
230
|
-
strokeWidth: "2",
|
|
231
|
-
strokeLinecap: "round",
|
|
232
|
-
strokeLinejoin: "round",
|
|
233
|
-
"aria-hidden": "true",
|
|
234
|
-
children: [/* @__PURE__ */ f("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ f("circle", {
|
|
235
|
-
cx: "12",
|
|
236
|
-
cy: "12",
|
|
237
|
-
r: "3"
|
|
238
|
-
})]
|
|
239
|
-
}), ne = () => /* @__PURE__ */ p("svg", {
|
|
240
|
-
viewBox: "0 0 24 24",
|
|
241
|
-
fill: "none",
|
|
242
|
-
stroke: "currentColor",
|
|
243
|
-
strokeWidth: "2",
|
|
244
|
-
strokeLinecap: "round",
|
|
245
|
-
strokeLinejoin: "round",
|
|
246
|
-
"aria-hidden": "true",
|
|
247
|
-
children: [/* @__PURE__ */ f("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }), /* @__PURE__ */ f("line", {
|
|
248
|
-
x1: "1",
|
|
249
|
-
y1: "1",
|
|
250
|
-
x2: "23",
|
|
251
|
-
y2: "23"
|
|
252
|
-
})]
|
|
253
|
-
}), re = r(({ hasError: e = !1, size: t = "md", disabled: n = !1, showPasswordLabel: r = "Show password", hidePasswordLabel: a = "Hide password", className: o, ...s }, c) => {
|
|
254
|
-
let [d, m] = u(!1), h = l(null), g = i((e) => {
|
|
255
|
-
h.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
256
|
-
}, [c]), _ = () => {
|
|
257
|
-
m((e) => !e), h.current?.focus();
|
|
258
|
-
}, v = [
|
|
259
|
-
j.root,
|
|
260
|
-
j[t],
|
|
261
|
-
o ?? ""
|
|
262
|
-
].filter(Boolean).join(" "), y = [j.input, e ? j.error : ""].filter(Boolean).join(" ");
|
|
263
|
-
return /* @__PURE__ */ p("div", {
|
|
264
|
-
className: v,
|
|
265
|
-
children: [/* @__PURE__ */ f("input", {
|
|
266
|
-
ref: g,
|
|
267
|
-
type: d ? "text" : "password",
|
|
268
|
-
"aria-invalid": e || void 0,
|
|
269
|
-
disabled: n,
|
|
270
|
-
className: y,
|
|
271
|
-
...s
|
|
272
|
-
}), /* @__PURE__ */ f("button", {
|
|
273
|
-
type: "button",
|
|
274
|
-
className: j.toggle,
|
|
275
|
-
"aria-label": d ? a : r,
|
|
276
|
-
"aria-pressed": d,
|
|
277
|
-
onClick: _,
|
|
278
|
-
disabled: n,
|
|
279
|
-
tabIndex: n ? -1 : void 0,
|
|
280
|
-
children: f(d ? ne : te, {})
|
|
281
|
-
})]
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
re.displayName = "PasswordInput";
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region src/primitives/EmailInput/EmailInput.tsx
|
|
287
|
-
var ie = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
288
|
-
let a = [
|
|
289
|
-
b.input,
|
|
290
|
-
b[t],
|
|
291
|
-
e ? b.error : "",
|
|
292
|
-
n ?? ""
|
|
293
|
-
].filter(Boolean).join(" ");
|
|
294
|
-
return /* @__PURE__ */ f("input", {
|
|
295
|
-
ref: i,
|
|
296
|
-
type: "email",
|
|
297
|
-
"aria-invalid": e || void 0,
|
|
298
|
-
className: a,
|
|
299
|
-
...r
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
ie.displayName = "EmailInput";
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region src/primitives/PhoneInput/PhoneInput.tsx
|
|
305
|
-
var ae = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
306
|
-
let a = [
|
|
307
|
-
b.input,
|
|
308
|
-
b[t],
|
|
309
|
-
e ? b.error : "",
|
|
310
|
-
n ?? ""
|
|
311
|
-
].filter(Boolean).join(" ");
|
|
312
|
-
return /* @__PURE__ */ f("input", {
|
|
313
|
-
ref: i,
|
|
314
|
-
type: "tel",
|
|
315
|
-
"aria-invalid": e || void 0,
|
|
316
|
-
className: a,
|
|
317
|
-
...r
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
ae.displayName = "PhoneInput";
|
|
321
|
-
//#endregion
|
|
322
|
-
//#region src/primitives/SearchInput/SearchInput.tsx
|
|
323
|
-
var oe = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
324
|
-
let a = [
|
|
325
|
-
b.input,
|
|
326
|
-
b[t],
|
|
327
|
-
e ? b.error : "",
|
|
328
|
-
n ?? ""
|
|
329
|
-
].filter(Boolean).join(" ");
|
|
330
|
-
return /* @__PURE__ */ f("input", {
|
|
331
|
-
ref: i,
|
|
332
|
-
type: "search",
|
|
333
|
-
"aria-invalid": e || void 0,
|
|
334
|
-
className: a,
|
|
335
|
-
...r
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
oe.displayName = "SearchInput";
|
|
339
|
-
var se = {
|
|
340
|
-
heading: "_heading_1lqf4_1",
|
|
341
|
-
xl: "_xl_1lqf4_13",
|
|
342
|
-
lg: "_lg_1lqf4_16",
|
|
343
|
-
md: "_md_1lqf4_19",
|
|
344
|
-
sm: "_sm_1lqf4_22",
|
|
345
|
-
xs: "_xs_1lqf4_25",
|
|
346
|
-
muted: "_muted_1lqf4_29",
|
|
347
|
-
inherit: "_inherit_1lqf4_30"
|
|
348
|
-
}, ce = {
|
|
349
|
-
1: "xl",
|
|
350
|
-
2: "lg",
|
|
351
|
-
3: "md",
|
|
352
|
-
4: "sm",
|
|
353
|
-
5: "xs",
|
|
354
|
-
6: "xs"
|
|
355
|
-
}, le = r(({ level: e, size: t, color: n = "default", className: r, children: i, ...a }, o) => {
|
|
356
|
-
let s = t ?? ce[e], c = {
|
|
357
|
-
ref: o,
|
|
358
|
-
className: [
|
|
359
|
-
se.heading,
|
|
360
|
-
se[s],
|
|
361
|
-
n === "default" ? "" : se[n],
|
|
362
|
-
r ?? ""
|
|
363
|
-
].filter(Boolean).join(" "),
|
|
364
|
-
...a
|
|
365
|
-
};
|
|
366
|
-
switch (e) {
|
|
367
|
-
case 1: return /* @__PURE__ */ f("h1", {
|
|
368
|
-
...c,
|
|
369
|
-
children: i
|
|
370
|
-
});
|
|
371
|
-
case 2: return /* @__PURE__ */ f("h2", {
|
|
372
|
-
...c,
|
|
373
|
-
children: i
|
|
374
|
-
});
|
|
375
|
-
case 3: return /* @__PURE__ */ f("h3", {
|
|
376
|
-
...c,
|
|
377
|
-
children: i
|
|
378
|
-
});
|
|
379
|
-
case 4: return /* @__PURE__ */ f("h4", {
|
|
380
|
-
...c,
|
|
381
|
-
children: i
|
|
382
|
-
});
|
|
383
|
-
case 5: return /* @__PURE__ */ f("h5", {
|
|
384
|
-
...c,
|
|
385
|
-
children: i
|
|
386
|
-
});
|
|
387
|
-
case 6: return /* @__PURE__ */ f("h6", {
|
|
388
|
-
...c,
|
|
389
|
-
children: i
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
});
|
|
393
|
-
le.displayName = "Heading";
|
|
394
|
-
var ue = {
|
|
395
|
-
text: "_text_nmm1v_1",
|
|
396
|
-
lg: "_lg_nmm1v_11",
|
|
397
|
-
md: "_md_nmm1v_12",
|
|
398
|
-
sm: "_sm_nmm1v_13",
|
|
399
|
-
xs: "_xs_nmm1v_14",
|
|
400
|
-
regular: "_regular_nmm1v_18",
|
|
401
|
-
medium: "_medium_nmm1v_19",
|
|
402
|
-
semibold: "_semibold_nmm1v_20",
|
|
403
|
-
bold: "_bold_nmm1v_21",
|
|
404
|
-
muted: "_muted_nmm1v_25",
|
|
405
|
-
disabled: "_disabled_nmm1v_26",
|
|
406
|
-
error: "_error_nmm1v_27",
|
|
407
|
-
success: "_success_nmm1v_28",
|
|
408
|
-
warning: "_warning_nmm1v_29",
|
|
409
|
-
inherit: "_inherit_nmm1v_30"
|
|
410
|
-
}, de = r(({ as: e = "p", size: t = "md", weight: n = "regular", color: r = "default", className: i, ...a }, o) => {
|
|
411
|
-
let s = [
|
|
412
|
-
ue.text,
|
|
413
|
-
ue[t],
|
|
414
|
-
ue[n],
|
|
415
|
-
r === "default" ? "" : ue[r],
|
|
416
|
-
i ?? ""
|
|
417
|
-
].filter(Boolean).join(" ");
|
|
418
|
-
return /* @__PURE__ */ f(e, {
|
|
419
|
-
ref: o,
|
|
420
|
-
className: s,
|
|
421
|
-
...a
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
de.displayName = "Text";
|
|
425
|
-
var fe = {
|
|
426
|
-
root: "_root_vxg1r_1",
|
|
427
|
-
error: "_error_vxg1r_12",
|
|
428
|
-
warning: "_warning_vxg1r_18",
|
|
429
|
-
success: "_success_vxg1r_24",
|
|
430
|
-
info: "_info_vxg1r_30",
|
|
431
|
-
icon: "_icon_vxg1r_38",
|
|
432
|
-
content: "_content_vxg1r_48",
|
|
433
|
-
title: "_title_vxg1r_56",
|
|
434
|
-
description: "_description_vxg1r_65",
|
|
435
|
-
dismiss: "_dismiss_vxg1r_74"
|
|
436
|
-
}, pe = {
|
|
437
|
-
error: /* @__PURE__ */ p("svg", {
|
|
438
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
439
|
-
width: "20",
|
|
440
|
-
height: "20",
|
|
441
|
-
viewBox: "0 0 24 24",
|
|
442
|
-
fill: "none",
|
|
443
|
-
stroke: "currentColor",
|
|
444
|
-
strokeWidth: "2",
|
|
445
|
-
strokeLinecap: "round",
|
|
446
|
-
strokeLinejoin: "round",
|
|
447
|
-
children: [
|
|
448
|
-
/* @__PURE__ */ f("circle", {
|
|
449
|
-
cx: "12",
|
|
450
|
-
cy: "12",
|
|
451
|
-
r: "10"
|
|
452
|
-
}),
|
|
453
|
-
/* @__PURE__ */ f("line", {
|
|
454
|
-
x1: "15",
|
|
455
|
-
y1: "9",
|
|
456
|
-
x2: "9",
|
|
457
|
-
y2: "15"
|
|
458
|
-
}),
|
|
459
|
-
/* @__PURE__ */ f("line", {
|
|
460
|
-
x1: "9",
|
|
461
|
-
y1: "9",
|
|
462
|
-
x2: "15",
|
|
463
|
-
y2: "15"
|
|
464
|
-
})
|
|
465
|
-
]
|
|
466
|
-
}),
|
|
467
|
-
warning: /* @__PURE__ */ p("svg", {
|
|
468
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
469
|
-
width: "20",
|
|
470
|
-
height: "20",
|
|
471
|
-
viewBox: "0 0 24 24",
|
|
472
|
-
fill: "none",
|
|
473
|
-
stroke: "currentColor",
|
|
474
|
-
strokeWidth: "2",
|
|
475
|
-
strokeLinecap: "round",
|
|
476
|
-
strokeLinejoin: "round",
|
|
477
|
-
children: [
|
|
478
|
-
/* @__PURE__ */ f("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
479
|
-
/* @__PURE__ */ f("line", {
|
|
480
|
-
x1: "12",
|
|
481
|
-
y1: "9",
|
|
482
|
-
x2: "12",
|
|
483
|
-
y2: "13"
|
|
484
|
-
}),
|
|
485
|
-
/* @__PURE__ */ f("line", {
|
|
486
|
-
x1: "12",
|
|
487
|
-
y1: "17",
|
|
488
|
-
x2: "12.01",
|
|
489
|
-
y2: "17"
|
|
490
|
-
})
|
|
491
|
-
]
|
|
492
|
-
}),
|
|
493
|
-
success: /* @__PURE__ */ p("svg", {
|
|
494
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
495
|
-
width: "20",
|
|
496
|
-
height: "20",
|
|
497
|
-
viewBox: "0 0 24 24",
|
|
498
|
-
fill: "none",
|
|
499
|
-
stroke: "currentColor",
|
|
500
|
-
strokeWidth: "2",
|
|
501
|
-
strokeLinecap: "round",
|
|
502
|
-
strokeLinejoin: "round",
|
|
503
|
-
children: [/* @__PURE__ */ f("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ f("polyline", { points: "22 4 12 14.01 9 11.01" })]
|
|
504
|
-
}),
|
|
505
|
-
info: /* @__PURE__ */ p("svg", {
|
|
506
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
507
|
-
width: "20",
|
|
508
|
-
height: "20",
|
|
509
|
-
viewBox: "0 0 24 24",
|
|
510
|
-
fill: "none",
|
|
511
|
-
stroke: "currentColor",
|
|
512
|
-
strokeWidth: "2",
|
|
513
|
-
strokeLinecap: "round",
|
|
514
|
-
strokeLinejoin: "round",
|
|
515
|
-
children: [
|
|
516
|
-
/* @__PURE__ */ f("circle", {
|
|
517
|
-
cx: "12",
|
|
518
|
-
cy: "12",
|
|
519
|
-
r: "10"
|
|
520
|
-
}),
|
|
521
|
-
/* @__PURE__ */ f("line", {
|
|
522
|
-
x1: "12",
|
|
523
|
-
y1: "8",
|
|
524
|
-
x2: "12",
|
|
525
|
-
y2: "12"
|
|
526
|
-
}),
|
|
527
|
-
/* @__PURE__ */ f("line", {
|
|
528
|
-
x1: "12",
|
|
529
|
-
y1: "16",
|
|
530
|
-
x2: "12.01",
|
|
531
|
-
y2: "16"
|
|
532
|
-
})
|
|
533
|
-
]
|
|
534
|
-
})
|
|
535
|
-
}, me = {
|
|
536
|
-
error: "alert",
|
|
537
|
-
warning: "alert",
|
|
538
|
-
success: "status",
|
|
539
|
-
info: "status"
|
|
540
|
-
}, he = r(({ variant: e, title: t, children: n, onDismiss: r, dismissLabel: i = "Close alert", role: a, className: o, ...s }, c) => {
|
|
541
|
-
let l = a ?? me[e], u = [
|
|
542
|
-
fe.root,
|
|
543
|
-
fe[e],
|
|
544
|
-
o ?? ""
|
|
545
|
-
].filter(Boolean).join(" ");
|
|
546
|
-
return /* @__PURE__ */ p("div", {
|
|
547
|
-
ref: c,
|
|
548
|
-
role: l,
|
|
549
|
-
className: u,
|
|
550
|
-
...s,
|
|
551
|
-
children: [
|
|
552
|
-
/* @__PURE__ */ f("span", {
|
|
553
|
-
className: fe.icon,
|
|
554
|
-
"aria-hidden": "true",
|
|
555
|
-
children: pe[e]
|
|
556
|
-
}),
|
|
557
|
-
/* @__PURE__ */ p("div", {
|
|
558
|
-
className: fe.content,
|
|
559
|
-
children: [t && /* @__PURE__ */ f("p", {
|
|
560
|
-
className: fe.title,
|
|
561
|
-
children: t
|
|
562
|
-
}), /* @__PURE__ */ f("div", {
|
|
563
|
-
className: fe.description,
|
|
564
|
-
children: n
|
|
565
|
-
})]
|
|
566
|
-
}),
|
|
567
|
-
r && /* @__PURE__ */ f("button", {
|
|
568
|
-
type: "button",
|
|
569
|
-
className: fe.dismiss,
|
|
570
|
-
"aria-label": i,
|
|
571
|
-
onClick: r,
|
|
572
|
-
children: /* @__PURE__ */ p("svg", {
|
|
573
|
-
"aria-hidden": "true",
|
|
574
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
575
|
-
width: "16",
|
|
576
|
-
height: "16",
|
|
577
|
-
viewBox: "0 0 24 24",
|
|
578
|
-
fill: "none",
|
|
579
|
-
stroke: "currentColor",
|
|
580
|
-
strokeWidth: "2",
|
|
581
|
-
strokeLinecap: "round",
|
|
582
|
-
strokeLinejoin: "round",
|
|
583
|
-
children: [/* @__PURE__ */ f("line", {
|
|
584
|
-
x1: "18",
|
|
585
|
-
y1: "6",
|
|
586
|
-
x2: "6",
|
|
587
|
-
y2: "18"
|
|
588
|
-
}), /* @__PURE__ */ f("line", {
|
|
589
|
-
x1: "6",
|
|
590
|
-
y1: "6",
|
|
591
|
-
x2: "18",
|
|
592
|
-
y2: "18"
|
|
593
|
-
})]
|
|
594
|
-
})
|
|
595
|
-
})
|
|
596
|
-
]
|
|
597
|
-
});
|
|
598
|
-
});
|
|
599
|
-
he.displayName = "Alert";
|
|
600
|
-
var ge = {
|
|
601
|
-
badge: "_badge_1qsea_1",
|
|
602
|
-
sm: "_sm_1qsea_13",
|
|
603
|
-
md: "_md_1qsea_18",
|
|
604
|
-
lg: "_lg_1qsea_23",
|
|
605
|
-
neutral: "_neutral_1qsea_30",
|
|
606
|
-
brand: "_brand_1qsea_35",
|
|
607
|
-
accent: "_accent_1qsea_40",
|
|
608
|
-
error: "_error_1qsea_45",
|
|
609
|
-
warning: "_warning_1qsea_50",
|
|
610
|
-
success: "_success_1qsea_55",
|
|
611
|
-
info: "_info_1qsea_60"
|
|
612
|
-
}, _e = r(({ variant: e = "neutral", size: t = "md", className: n, ...r }, i) => {
|
|
613
|
-
let a = [
|
|
614
|
-
ge.badge,
|
|
615
|
-
ge[e],
|
|
616
|
-
ge[t],
|
|
617
|
-
n ?? ""
|
|
618
|
-
].filter(Boolean).join(" ");
|
|
619
|
-
return /* @__PURE__ */ f("span", {
|
|
620
|
-
ref: i,
|
|
621
|
-
className: a,
|
|
622
|
-
...r
|
|
623
|
-
});
|
|
624
|
-
});
|
|
625
|
-
_e.displayName = "Badge";
|
|
626
|
-
var ve = {
|
|
627
|
-
skeleton: "_skeleton_3y1ju_1",
|
|
628
|
-
"ds-skeleton-shimmer": "_ds-skeleton-shimmer_3y1ju_1",
|
|
629
|
-
circle: "_circle_3y1ju_30",
|
|
630
|
-
text: "_text_3y1ju_35",
|
|
631
|
-
textGroup: "_textGroup_3y1ju_42",
|
|
632
|
-
"ds-skeleton-pulse": "_ds-skeleton-pulse_3y1ju_1"
|
|
633
|
-
};
|
|
634
|
-
//#endregion
|
|
635
|
-
//#region src/primitives/Skeleton/Skeleton.tsx
|
|
636
|
-
function ye(e) {
|
|
637
|
-
return typeof e == "number" ? `${e}px` : e;
|
|
638
|
-
}
|
|
639
|
-
var be = r(({ shape: e = "rect", width: t, height: n, lines: r = 1, className: i, style: a, ...o }, s) => {
|
|
640
|
-
if (e === "text" && r > 1) return /* @__PURE__ */ f("span", {
|
|
641
|
-
ref: s,
|
|
642
|
-
"aria-hidden": "true",
|
|
643
|
-
className: [ve.textGroup, i ?? ""].filter(Boolean).join(" "),
|
|
644
|
-
style: t ? {
|
|
645
|
-
width: ye(t),
|
|
646
|
-
...a
|
|
647
|
-
} : a,
|
|
648
|
-
...o,
|
|
649
|
-
children: Array.from({ length: r }, (e, t) => /* @__PURE__ */ f("span", {
|
|
650
|
-
className: ve.skeleton,
|
|
651
|
-
style: { width: t === r - 1 ? "70%" : "100%" }
|
|
652
|
-
}, t))
|
|
653
|
-
});
|
|
654
|
-
let c = [
|
|
655
|
-
ve.skeleton,
|
|
656
|
-
e === "circle" ? ve.circle : "",
|
|
657
|
-
e === "text" ? ve.text : "",
|
|
658
|
-
i ?? ""
|
|
659
|
-
].filter(Boolean).join(" ");
|
|
660
|
-
return /* @__PURE__ */ f("span", {
|
|
661
|
-
ref: s,
|
|
662
|
-
"aria-hidden": "true",
|
|
663
|
-
className: c,
|
|
664
|
-
style: {
|
|
665
|
-
...t !== void 0 && { width: ye(t) },
|
|
666
|
-
...n !== void 0 && { height: ye(n) },
|
|
667
|
-
...a
|
|
668
|
-
},
|
|
669
|
-
...o
|
|
670
|
-
});
|
|
671
|
-
});
|
|
672
|
-
be.displayName = "Skeleton";
|
|
673
|
-
var xe = {
|
|
674
|
-
track: "_track_15xhr_3",
|
|
675
|
-
sm: "_sm_15xhr_13",
|
|
676
|
-
md: "_md_15xhr_14",
|
|
677
|
-
lg: "_lg_15xhr_15",
|
|
678
|
-
fill: "_fill_15xhr_19",
|
|
679
|
-
default: "_default_15xhr_27",
|
|
680
|
-
accent: "_accent_15xhr_28",
|
|
681
|
-
success: "_success_15xhr_29",
|
|
682
|
-
error: "_error_15xhr_30",
|
|
683
|
-
warning: "_warning_15xhr_31",
|
|
684
|
-
indeterminate: "_indeterminate_15xhr_35",
|
|
685
|
-
"ds-progress-slide": "_ds-progress-slide_15xhr_1",
|
|
686
|
-
"ds-progress-pulse": "_ds-progress-pulse_15xhr_1"
|
|
687
|
-
};
|
|
688
|
-
//#endregion
|
|
689
|
-
//#region src/primitives/ProgressBar/ProgressBar.tsx
|
|
690
|
-
function Se(e, t, n) {
|
|
691
|
-
return Math.min(Math.max(e, t), n);
|
|
692
|
-
}
|
|
693
|
-
var Ce = r(({ label: e, value: t, variant: n = "default", size: r = "md", className: i, ...a }, o) => {
|
|
694
|
-
let s = t === void 0, c = s ? void 0 : Se(t, 0, 100), l = [
|
|
695
|
-
xe.track,
|
|
696
|
-
xe[r],
|
|
697
|
-
xe[n],
|
|
698
|
-
i ?? ""
|
|
699
|
-
].filter(Boolean).join(" "), u = [xe.fill, s ? xe.indeterminate : ""].filter(Boolean).join(" ");
|
|
700
|
-
return /* @__PURE__ */ f("div", {
|
|
701
|
-
ref: o,
|
|
702
|
-
role: "progressbar",
|
|
703
|
-
"aria-label": e,
|
|
704
|
-
"aria-valuenow": c,
|
|
705
|
-
"aria-valuemin": s ? void 0 : 0,
|
|
706
|
-
"aria-valuemax": s ? void 0 : 100,
|
|
707
|
-
className: l,
|
|
708
|
-
...a,
|
|
709
|
-
children: /* @__PURE__ */ f("div", {
|
|
710
|
-
className: u,
|
|
711
|
-
style: c === void 0 ? void 0 : { width: `${c}%` }
|
|
712
|
-
})
|
|
713
|
-
});
|
|
714
|
-
});
|
|
715
|
-
Ce.displayName = "ProgressBar";
|
|
716
|
-
var we = {
|
|
717
|
-
divider: "_divider_1djxi_1",
|
|
718
|
-
horizontal: "_horizontal_1djxi_9",
|
|
719
|
-
vertical: "_vertical_1djxi_17"
|
|
720
|
-
}, Te = r(({ orientation: e = "horizontal", decorative: t = !0, label: n, className: r, ...i }, a) => {
|
|
721
|
-
let o = [
|
|
722
|
-
we.divider,
|
|
723
|
-
we[e],
|
|
724
|
-
r ?? ""
|
|
725
|
-
].filter(Boolean).join(" ");
|
|
726
|
-
return /* @__PURE__ */ f("hr", {
|
|
727
|
-
ref: a,
|
|
728
|
-
"aria-hidden": t ? !0 : void 0,
|
|
729
|
-
"aria-orientation": !t && e === "vertical" ? "vertical" : void 0,
|
|
730
|
-
"aria-label": t ? void 0 : n,
|
|
731
|
-
className: o,
|
|
732
|
-
...i
|
|
733
|
-
});
|
|
734
|
-
});
|
|
735
|
-
Te.displayName = "Divider";
|
|
736
|
-
var Ee = { numberInput: "_numberInput_1wkbh_2" }, De = r(({ hasError: e = !1, size: t = "md", min: n, max: r, step: i, className: a, ...o }, s) => {
|
|
737
|
-
let c = [
|
|
738
|
-
b.input,
|
|
739
|
-
b[t],
|
|
740
|
-
e ? b.error : "",
|
|
741
|
-
Ee.numberInput,
|
|
742
|
-
a ?? ""
|
|
743
|
-
].filter(Boolean).join(" ");
|
|
744
|
-
return /* @__PURE__ */ f("input", {
|
|
745
|
-
ref: s,
|
|
746
|
-
type: "number",
|
|
747
|
-
min: n,
|
|
748
|
-
max: r,
|
|
749
|
-
step: i,
|
|
750
|
-
"aria-invalid": e || void 0,
|
|
751
|
-
className: c,
|
|
752
|
-
...o
|
|
753
|
-
});
|
|
754
|
-
});
|
|
755
|
-
De.displayName = "NumberInput";
|
|
756
|
-
//#endregion
|
|
757
|
-
//#region src/primitives/DateInput/DateInput.tsx
|
|
758
|
-
var Oe = r(({ hasError: e = !1, size: t = "md", className: n, ...r }, i) => {
|
|
759
|
-
let a = [
|
|
760
|
-
b.input,
|
|
761
|
-
b[t],
|
|
762
|
-
e ? b.error : "",
|
|
763
|
-
n ?? ""
|
|
764
|
-
].filter(Boolean).join(" ");
|
|
765
|
-
return /* @__PURE__ */ f("input", {
|
|
766
|
-
ref: i,
|
|
767
|
-
type: "date",
|
|
768
|
-
"aria-invalid": e || void 0,
|
|
769
|
-
className: a,
|
|
770
|
-
...r
|
|
771
|
-
});
|
|
772
|
-
});
|
|
773
|
-
Oe.displayName = "DateInput";
|
|
774
|
-
var ke = {
|
|
775
|
-
avatar: "_avatar_1hkk0_2",
|
|
776
|
-
xs: "_xs_1hkk0_7",
|
|
777
|
-
sm: "_sm_1hkk0_8",
|
|
778
|
-
md: "_md_1hkk0_9",
|
|
779
|
-
lg: "_lg_1hkk0_10",
|
|
780
|
-
xl: "_xl_1hkk0_11",
|
|
781
|
-
circle: "_circle_1hkk0_33",
|
|
782
|
-
square: "_square_1hkk0_34",
|
|
783
|
-
image: "_image_1hkk0_38",
|
|
784
|
-
initials: "_initials_1hkk0_47"
|
|
785
|
-
};
|
|
786
|
-
//#endregion
|
|
787
|
-
//#region src/primitives/Avatar/Avatar.tsx
|
|
788
|
-
function Ae(e) {
|
|
789
|
-
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
790
|
-
return t.length === 0 ? "?" : t.length === 1 ? t[0][0].toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
|
|
791
|
-
}
|
|
792
|
-
var je = r(({ name: e, src: t, size: n = "md", shape: r = "circle", className: i, ...a }, s) => {
|
|
793
|
-
let [c, l] = u(!1);
|
|
794
|
-
o(() => {
|
|
795
|
-
l(!1);
|
|
796
|
-
}, [t]);
|
|
797
|
-
let d = !!t && !c, p = [
|
|
798
|
-
ke.avatar,
|
|
799
|
-
ke[n],
|
|
800
|
-
ke[r],
|
|
801
|
-
i ?? ""
|
|
802
|
-
].filter(Boolean).join(" ");
|
|
803
|
-
return /* @__PURE__ */ f("span", {
|
|
804
|
-
ref: s,
|
|
805
|
-
role: "img",
|
|
806
|
-
"aria-label": e,
|
|
807
|
-
className: p,
|
|
808
|
-
...a,
|
|
809
|
-
children: d ? /* @__PURE__ */ f("img", {
|
|
810
|
-
src: t,
|
|
811
|
-
alt: "",
|
|
812
|
-
"aria-hidden": "true",
|
|
813
|
-
className: ke.image,
|
|
814
|
-
onError: () => l(!0)
|
|
815
|
-
}) : /* @__PURE__ */ f("span", {
|
|
816
|
-
"aria-hidden": "true",
|
|
817
|
-
className: ke.initials,
|
|
818
|
-
children: Ae(e)
|
|
819
|
-
})
|
|
820
|
-
});
|
|
821
|
-
});
|
|
822
|
-
je.displayName = "Avatar";
|
|
823
|
-
var Me = {
|
|
824
|
-
tabs: "_tabs_g9je2_1",
|
|
825
|
-
tabList: "_tabList_g9je2_8",
|
|
826
|
-
tab: "_tab_g9je2_1",
|
|
827
|
-
tabPanel: "_tabPanel_g9je2_64"
|
|
828
|
-
}, Ne = n(null);
|
|
829
|
-
function Pe() {
|
|
830
|
-
let e = a(Ne);
|
|
831
|
-
if (!e) throw Error("Tabs sub-components must be rendered inside <Tabs>.");
|
|
832
|
-
return e;
|
|
833
|
-
}
|
|
834
|
-
var Fe = r(({ children: e, value: t, defaultValue: n = "", onChange: r, className: a }, o) => {
|
|
835
|
-
let [c, d] = u(n), p = t ?? c, m = s(), h = i((e) => `${m}-tab-${e}`, [m]), g = i((e) => `${m}-panel-${e}`, [m]), _ = l([]), v = l(/* @__PURE__ */ new Map()), y = l(/* @__PURE__ */ new Set()), b = i((e) => {
|
|
836
|
-
t === void 0 && d(e), r?.(e);
|
|
837
|
-
}, [t, r]), x = i((e) => (_.current = [..._.current, e], () => {
|
|
838
|
-
_.current = _.current.filter((t) => t !== e);
|
|
839
|
-
}), []), S = i((e, t) => {
|
|
840
|
-
t ? v.current.set(e, t) : v.current.delete(e);
|
|
841
|
-
}, []), C = i((e, t) => {
|
|
842
|
-
t ? y.current.add(e) : y.current.delete(e);
|
|
843
|
-
}, []);
|
|
844
|
-
return /* @__PURE__ */ f(Ne.Provider, {
|
|
845
|
-
value: {
|
|
846
|
-
activeTab: p,
|
|
847
|
-
setActiveTab: b,
|
|
848
|
-
getTabId: h,
|
|
849
|
-
getPanelId: g,
|
|
850
|
-
tabValuesRef: _,
|
|
851
|
-
tabRefsRef: v,
|
|
852
|
-
disabledTabsRef: y,
|
|
853
|
-
registerTab: x,
|
|
854
|
-
registerTabRef: S,
|
|
855
|
-
setTabDisabled: C
|
|
856
|
-
},
|
|
857
|
-
children: /* @__PURE__ */ f("div", {
|
|
858
|
-
ref: o,
|
|
859
|
-
className: [Me.tabs, a ?? ""].filter(Boolean).join(" "),
|
|
860
|
-
children: e
|
|
861
|
-
})
|
|
862
|
-
});
|
|
863
|
-
});
|
|
864
|
-
Fe.displayName = "Tabs";
|
|
865
|
-
var Ie = r(({ children: e, label: t, className: n }, r) => /* @__PURE__ */ f("div", {
|
|
866
|
-
ref: r,
|
|
867
|
-
role: "tablist",
|
|
868
|
-
"aria-label": t,
|
|
869
|
-
className: [Me.tabList, n ?? ""].filter(Boolean).join(" "),
|
|
870
|
-
children: e
|
|
871
|
-
}));
|
|
872
|
-
Ie.displayName = "TabList";
|
|
873
|
-
var Le = r(({ value: e, children: t, disabled: n = !1, className: r }, i) => {
|
|
874
|
-
let { activeTab: a, setActiveTab: s, getTabId: c, getPanelId: l, tabValuesRef: u, tabRefsRef: d, disabledTabsRef: p, registerTab: m, registerTabRef: h, setTabDisabled: g } = Pe(), _ = a === e;
|
|
875
|
-
return o(() => m(e), [e, m]), o(() => (g(e, n), () => g(e, !1)), [
|
|
876
|
-
e,
|
|
877
|
-
n,
|
|
878
|
-
g
|
|
879
|
-
]), /* @__PURE__ */ f("button", {
|
|
880
|
-
ref: (t) => {
|
|
881
|
-
h(e, t), typeof i == "function" ? i(t) : i && (i.current = t);
|
|
882
|
-
},
|
|
883
|
-
role: "tab",
|
|
884
|
-
id: c(e),
|
|
885
|
-
"aria-selected": _,
|
|
886
|
-
"aria-controls": l(e),
|
|
887
|
-
tabIndex: _ ? 0 : -1,
|
|
888
|
-
disabled: n,
|
|
889
|
-
onClick: () => !n && s(e),
|
|
890
|
-
onKeyDown: (t) => {
|
|
891
|
-
let r = u.current.filter((e) => !p.current.has(e)), i = r.indexOf(e), a = (e) => {
|
|
892
|
-
d.current.get(e)?.focus();
|
|
893
|
-
};
|
|
894
|
-
switch (t.key) {
|
|
895
|
-
case "ArrowRight":
|
|
896
|
-
case "ArrowDown":
|
|
897
|
-
t.preventDefault(), i !== -1 && a(r[(i + 1) % r.length]);
|
|
898
|
-
break;
|
|
899
|
-
case "ArrowLeft":
|
|
900
|
-
case "ArrowUp":
|
|
901
|
-
t.preventDefault(), i !== -1 && a(r[(i - 1 + r.length) % r.length]);
|
|
902
|
-
break;
|
|
903
|
-
case "Home":
|
|
904
|
-
t.preventDefault(), a(r[0]);
|
|
905
|
-
break;
|
|
906
|
-
case "End":
|
|
907
|
-
t.preventDefault(), a(r[r.length - 1]);
|
|
908
|
-
break;
|
|
909
|
-
case "Enter":
|
|
910
|
-
case " ": t.preventDefault(), n || s(e);
|
|
911
|
-
}
|
|
912
|
-
},
|
|
913
|
-
className: [Me.tab, r ?? ""].filter(Boolean).join(" "),
|
|
914
|
-
children: t
|
|
915
|
-
});
|
|
916
|
-
});
|
|
917
|
-
Le.displayName = "Tab";
|
|
918
|
-
var Re = r(({ value: e, children: t, className: n }, r) => {
|
|
919
|
-
let { activeTab: i, getTabId: a, getPanelId: o } = Pe(), s = i === e;
|
|
920
|
-
return /* @__PURE__ */ f("div", {
|
|
921
|
-
ref: r,
|
|
922
|
-
role: "tabpanel",
|
|
923
|
-
id: o(e),
|
|
924
|
-
"aria-labelledby": a(e),
|
|
925
|
-
tabIndex: 0,
|
|
926
|
-
hidden: !s,
|
|
927
|
-
className: [Me.tabPanel, n ?? ""].filter(Boolean).join(" "),
|
|
928
|
-
children: t
|
|
929
|
-
});
|
|
930
|
-
});
|
|
931
|
-
Re.displayName = "TabPanel";
|
|
932
|
-
var ze = {
|
|
933
|
-
tooltip: "_tooltip_1dtlh_1",
|
|
934
|
-
visible: "_visible_1dtlh_18",
|
|
935
|
-
top: "_top_1dtlh_30",
|
|
936
|
-
bottom: "_bottom_1dtlh_42",
|
|
937
|
-
left: "_left_1dtlh_54",
|
|
938
|
-
right: "_right_1dtlh_66"
|
|
939
|
-
};
|
|
940
|
-
//#endregion
|
|
941
|
-
//#region src/primitives/Tooltip/Tooltip.tsx
|
|
942
|
-
function Be(...e) {
|
|
943
|
-
return (t) => {
|
|
944
|
-
for (let n of e) typeof n == "function" ? n(t) : n && "current" in n && (n.current = t);
|
|
945
|
-
};
|
|
946
|
-
}
|
|
947
|
-
function Ve({ content: e, children: n, placement: r = "top", delayMs: a = 200 }) {
|
|
948
|
-
let c = s(), h = l(null), g = l(void 0), [_, v] = u(!1), [y, b] = u({
|
|
949
|
-
top: 0,
|
|
950
|
-
left: 0
|
|
951
|
-
}), x = i(() => {
|
|
952
|
-
let e = h.current?.getBoundingClientRect();
|
|
953
|
-
if (e) switch (r) {
|
|
954
|
-
case "top":
|
|
955
|
-
b({
|
|
956
|
-
top: e.top,
|
|
957
|
-
left: e.left + e.width / 2
|
|
958
|
-
});
|
|
959
|
-
break;
|
|
960
|
-
case "bottom":
|
|
961
|
-
b({
|
|
962
|
-
top: e.bottom,
|
|
963
|
-
left: e.left + e.width / 2
|
|
964
|
-
});
|
|
965
|
-
break;
|
|
966
|
-
case "left":
|
|
967
|
-
b({
|
|
968
|
-
top: e.top + e.height / 2,
|
|
969
|
-
left: e.left
|
|
970
|
-
});
|
|
971
|
-
break;
|
|
972
|
-
case "right": b({
|
|
973
|
-
top: e.top + e.height / 2,
|
|
974
|
-
left: e.right
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}, [r]), S = i(() => {
|
|
978
|
-
clearTimeout(g.current), g.current = setTimeout(() => {
|
|
979
|
-
x(), v(!0);
|
|
980
|
-
}, a);
|
|
981
|
-
}, [x, a]), C = i(() => {
|
|
982
|
-
clearTimeout(g.current), v(!1);
|
|
983
|
-
}, []);
|
|
984
|
-
o(() => {
|
|
985
|
-
if (!_) return;
|
|
986
|
-
let e = () => x();
|
|
987
|
-
return window.addEventListener("scroll", e, {
|
|
988
|
-
capture: !0,
|
|
989
|
-
passive: !0
|
|
990
|
-
}), window.addEventListener("resize", e, { passive: !0 }), () => {
|
|
991
|
-
window.removeEventListener("scroll", e, { capture: !0 }), window.removeEventListener("resize", e);
|
|
992
|
-
};
|
|
993
|
-
}, [_, x]);
|
|
994
|
-
let w = n, T = t(w, {
|
|
995
|
-
ref: Be(h, w.props.ref),
|
|
996
|
-
"aria-describedby": c,
|
|
997
|
-
onMouseEnter: (e) => {
|
|
998
|
-
S(), w.props.onMouseEnter?.(e);
|
|
999
|
-
},
|
|
1000
|
-
onMouseLeave: (e) => {
|
|
1001
|
-
C(), w.props.onMouseLeave?.(e);
|
|
1002
|
-
},
|
|
1003
|
-
onFocus: (e) => {
|
|
1004
|
-
S(), w.props.onFocus?.(e);
|
|
1005
|
-
},
|
|
1006
|
-
onBlur: (e) => {
|
|
1007
|
-
C(), w.props.onBlur?.(e);
|
|
1008
|
-
},
|
|
1009
|
-
onKeyDown: (e) => {
|
|
1010
|
-
e.key === "Escape" && C(), w.props.onKeyDown?.(e);
|
|
1011
|
-
}
|
|
1012
|
-
}), E = /* @__PURE__ */ f("div", {
|
|
1013
|
-
id: c,
|
|
1014
|
-
role: "tooltip",
|
|
1015
|
-
hidden: !_,
|
|
1016
|
-
style: {
|
|
1017
|
-
top: y.top,
|
|
1018
|
-
left: y.left
|
|
1019
|
-
},
|
|
1020
|
-
className: [
|
|
1021
|
-
ze.tooltip,
|
|
1022
|
-
ze[r],
|
|
1023
|
-
_ ? ze.visible : ""
|
|
1024
|
-
].filter(Boolean).join(" "),
|
|
1025
|
-
children: e
|
|
1026
|
-
});
|
|
1027
|
-
return /* @__PURE__ */ p(d, { children: [T, m(E, document.body)] });
|
|
1028
|
-
}
|
|
1029
|
-
Ve.displayName = "Tooltip";
|
|
1030
|
-
var M = {
|
|
1031
|
-
dialog: "_dialog_5uqyu_1",
|
|
1032
|
-
panel: "_panel_5uqyu_23",
|
|
1033
|
-
sm: "_sm_5uqyu_36",
|
|
1034
|
-
md: "_md_5uqyu_41",
|
|
1035
|
-
lg: "_lg_5uqyu_46",
|
|
1036
|
-
header: "_header_5uqyu_55",
|
|
1037
|
-
title: "_title_5uqyu_64",
|
|
1038
|
-
closeButton: "_closeButton_5uqyu_73",
|
|
1039
|
-
body: "_body_5uqyu_99",
|
|
1040
|
-
footer: "_footer_5uqyu_108"
|
|
1041
|
-
};
|
|
1042
|
-
//#endregion
|
|
1043
|
-
//#region src/primitives/Modal/Modal.tsx
|
|
1044
|
-
function He({ children: e, titleId: t, onClose: n, closeLabel: r }) {
|
|
1045
|
-
return /* @__PURE__ */ p("div", {
|
|
1046
|
-
className: M.header,
|
|
1047
|
-
children: [/* @__PURE__ */ f("h2", {
|
|
1048
|
-
id: t,
|
|
1049
|
-
className: M.title,
|
|
1050
|
-
children: e
|
|
1051
|
-
}), /* @__PURE__ */ f("button", {
|
|
1052
|
-
type: "button",
|
|
1053
|
-
"aria-label": r,
|
|
1054
|
-
className: M.closeButton,
|
|
1055
|
-
onClick: n,
|
|
1056
|
-
children: /* @__PURE__ */ f("svg", {
|
|
1057
|
-
width: "16",
|
|
1058
|
-
height: "16",
|
|
1059
|
-
viewBox: "0 0 16 16",
|
|
1060
|
-
fill: "none",
|
|
1061
|
-
"aria-hidden": "true",
|
|
1062
|
-
children: /* @__PURE__ */ f("path", {
|
|
1063
|
-
d: "M12 4L4 12M4 4l8 8",
|
|
1064
|
-
stroke: "currentColor",
|
|
1065
|
-
strokeWidth: "1.5",
|
|
1066
|
-
strokeLinecap: "round"
|
|
1067
|
-
})
|
|
1068
|
-
})
|
|
1069
|
-
})]
|
|
1070
|
-
});
|
|
1071
|
-
}
|
|
1072
|
-
function Ue({ children: e, id: t }) {
|
|
1073
|
-
return /* @__PURE__ */ f("div", {
|
|
1074
|
-
className: M.body,
|
|
1075
|
-
id: t,
|
|
1076
|
-
children: e
|
|
1077
|
-
});
|
|
1078
|
-
}
|
|
1079
|
-
Ue.displayName = "ModalBody";
|
|
1080
|
-
function We({ children: e }) {
|
|
1081
|
-
return /* @__PURE__ */ f("div", {
|
|
1082
|
-
className: M.footer,
|
|
1083
|
-
children: e
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
We.displayName = "ModalFooter";
|
|
1087
|
-
var Ge = [
|
|
1088
|
-
"a[href]",
|
|
1089
|
-
"button:not([disabled])",
|
|
1090
|
-
"input:not([disabled])",
|
|
1091
|
-
"select:not([disabled])",
|
|
1092
|
-
"textarea:not([disabled])",
|
|
1093
|
-
"[tabindex]:not([tabindex=\"-1\"])"
|
|
1094
|
-
].join(", "), Ke = r(function({ open: e, onClose: t, title: n, children: r, "aria-describedby": a, size: c = "md", closeLabel: u = "Close" }, d) {
|
|
1095
|
-
let h = s(), g = l(null), _ = l(null), v = i((e) => {
|
|
1096
|
-
g.current = e, typeof d == "function" ? d(e) : d && (d.current = e);
|
|
1097
|
-
}, [d]);
|
|
1098
|
-
o(() => {
|
|
1099
|
-
if (e) {
|
|
1100
|
-
_.current = document.activeElement, document.body.style.overflow = "hidden";
|
|
1101
|
-
let e = g.current;
|
|
1102
|
-
if (!e) return;
|
|
1103
|
-
(e.querySelectorAll(Ge)[0] ?? e).focus();
|
|
1104
|
-
} else document.body.style.overflow = "", _.current?.focus();
|
|
1105
|
-
return () => {
|
|
1106
|
-
document.body.style.overflow = "";
|
|
1107
|
-
};
|
|
1108
|
-
}, [e]);
|
|
1109
|
-
let y = i((e) => {
|
|
1110
|
-
if (e.key === "Escape") {
|
|
1111
|
-
e.preventDefault(), t();
|
|
1112
|
-
return;
|
|
1113
|
-
}
|
|
1114
|
-
if (e.key !== "Tab") return;
|
|
1115
|
-
let n = g.current;
|
|
1116
|
-
if (!n) return;
|
|
1117
|
-
let r = Array.from(n.querySelectorAll(Ge));
|
|
1118
|
-
if (r.length === 0) return;
|
|
1119
|
-
let i = r[0], a = r[r.length - 1];
|
|
1120
|
-
e.shiftKey ? document.activeElement === i && (e.preventDefault(), a.focus()) : document.activeElement === a && (e.preventDefault(), i.focus());
|
|
1121
|
-
}, [t]), b = i((e) => {
|
|
1122
|
-
e.target === g.current && t();
|
|
1123
|
-
}, [t]);
|
|
1124
|
-
if (!e) return null;
|
|
1125
|
-
let x = /* @__PURE__ */ f("dialog", {
|
|
1126
|
-
ref: v,
|
|
1127
|
-
role: "dialog",
|
|
1128
|
-
"aria-modal": "true",
|
|
1129
|
-
"aria-labelledby": h,
|
|
1130
|
-
"aria-describedby": a,
|
|
1131
|
-
open: !0,
|
|
1132
|
-
className: [M.dialog, M[c]].join(" "),
|
|
1133
|
-
onKeyDown: y,
|
|
1134
|
-
onClick: b,
|
|
1135
|
-
children: /* @__PURE__ */ p("div", {
|
|
1136
|
-
className: M.panel,
|
|
1137
|
-
children: [/* @__PURE__ */ f(He, {
|
|
1138
|
-
titleId: h,
|
|
1139
|
-
onClose: t,
|
|
1140
|
-
closeLabel: u,
|
|
1141
|
-
children: n
|
|
1142
|
-
}), r]
|
|
1143
|
-
})
|
|
1144
|
-
});
|
|
1145
|
-
return m(x, document.body);
|
|
1146
|
-
});
|
|
1147
|
-
Ke.displayName = "Modal";
|
|
1148
|
-
var qe = {
|
|
1149
|
-
region: "_region_j5e79_1",
|
|
1150
|
-
toast: "_toast_j5e79_14",
|
|
1151
|
-
info: "_info_j5e79_30",
|
|
1152
|
-
icon: "_icon_j5e79_35",
|
|
1153
|
-
success: "_success_j5e79_39",
|
|
1154
|
-
error: "_error_j5e79_47",
|
|
1155
|
-
warning: "_warning_j5e79_55",
|
|
1156
|
-
message: "_message_j5e79_69",
|
|
1157
|
-
closeButton: "_closeButton_j5e79_74"
|
|
1158
|
-
}, Je = n(null), Ye = {
|
|
1159
|
-
info: /* @__PURE__ */ p("svg", {
|
|
1160
|
-
width: "16",
|
|
1161
|
-
height: "16",
|
|
1162
|
-
viewBox: "0 0 16 16",
|
|
1163
|
-
fill: "none",
|
|
1164
|
-
"aria-hidden": "true",
|
|
1165
|
-
children: [/* @__PURE__ */ f("circle", {
|
|
1166
|
-
cx: "8",
|
|
1167
|
-
cy: "8",
|
|
1168
|
-
r: "7",
|
|
1169
|
-
stroke: "currentColor",
|
|
1170
|
-
strokeWidth: "1.5"
|
|
1171
|
-
}), /* @__PURE__ */ f("path", {
|
|
1172
|
-
d: "M8 7v4M8 5v.5",
|
|
1173
|
-
stroke: "currentColor",
|
|
1174
|
-
strokeWidth: "1.5",
|
|
1175
|
-
strokeLinecap: "round"
|
|
1176
|
-
})]
|
|
1177
|
-
}),
|
|
1178
|
-
success: /* @__PURE__ */ p("svg", {
|
|
1179
|
-
width: "16",
|
|
1180
|
-
height: "16",
|
|
1181
|
-
viewBox: "0 0 16 16",
|
|
1182
|
-
fill: "none",
|
|
1183
|
-
"aria-hidden": "true",
|
|
1184
|
-
children: [/* @__PURE__ */ f("circle", {
|
|
1185
|
-
cx: "8",
|
|
1186
|
-
cy: "8",
|
|
1187
|
-
r: "7",
|
|
1188
|
-
stroke: "currentColor",
|
|
1189
|
-
strokeWidth: "1.5"
|
|
1190
|
-
}), /* @__PURE__ */ f("path", {
|
|
1191
|
-
d: "M5 8l2 2 4-4",
|
|
1192
|
-
stroke: "currentColor",
|
|
1193
|
-
strokeWidth: "1.5",
|
|
1194
|
-
strokeLinecap: "round",
|
|
1195
|
-
strokeLinejoin: "round"
|
|
1196
|
-
})]
|
|
1197
|
-
}),
|
|
1198
|
-
error: /* @__PURE__ */ p("svg", {
|
|
1199
|
-
width: "16",
|
|
1200
|
-
height: "16",
|
|
1201
|
-
viewBox: "0 0 16 16",
|
|
1202
|
-
fill: "none",
|
|
1203
|
-
"aria-hidden": "true",
|
|
1204
|
-
children: [/* @__PURE__ */ f("circle", {
|
|
1205
|
-
cx: "8",
|
|
1206
|
-
cy: "8",
|
|
1207
|
-
r: "7",
|
|
1208
|
-
stroke: "currentColor",
|
|
1209
|
-
strokeWidth: "1.5"
|
|
1210
|
-
}), /* @__PURE__ */ f("path", {
|
|
1211
|
-
d: "M10 6L6 10M6 6l4 4",
|
|
1212
|
-
stroke: "currentColor",
|
|
1213
|
-
strokeWidth: "1.5",
|
|
1214
|
-
strokeLinecap: "round"
|
|
1215
|
-
})]
|
|
1216
|
-
}),
|
|
1217
|
-
warning: /* @__PURE__ */ p("svg", {
|
|
1218
|
-
width: "16",
|
|
1219
|
-
height: "16",
|
|
1220
|
-
viewBox: "0 0 16 16",
|
|
1221
|
-
fill: "none",
|
|
1222
|
-
"aria-hidden": "true",
|
|
1223
|
-
children: [/* @__PURE__ */ f("path", {
|
|
1224
|
-
d: "M8 2L14.9 14H1.1L8 2z",
|
|
1225
|
-
stroke: "currentColor",
|
|
1226
|
-
strokeWidth: "1.5",
|
|
1227
|
-
strokeLinejoin: "round"
|
|
1228
|
-
}), /* @__PURE__ */ f("path", {
|
|
1229
|
-
d: "M8 6.5v3M8 11v.5",
|
|
1230
|
-
stroke: "currentColor",
|
|
1231
|
-
strokeWidth: "1.5",
|
|
1232
|
-
strokeLinecap: "round"
|
|
1233
|
-
})]
|
|
1234
|
-
})
|
|
1235
|
-
};
|
|
1236
|
-
function Xe({ item: e, onDismiss: t, onPause: n, onResume: r }) {
|
|
1237
|
-
return /* @__PURE__ */ p("div", {
|
|
1238
|
-
className: [qe.toast, qe[e.variant]].join(" "),
|
|
1239
|
-
role: "status",
|
|
1240
|
-
onMouseEnter: () => n(e.id),
|
|
1241
|
-
onMouseLeave: () => r(e.id),
|
|
1242
|
-
onFocus: () => n(e.id),
|
|
1243
|
-
onBlur: () => r(e.id),
|
|
1244
|
-
children: [
|
|
1245
|
-
/* @__PURE__ */ f("span", {
|
|
1246
|
-
className: qe.icon,
|
|
1247
|
-
children: Ye[e.variant]
|
|
1248
|
-
}),
|
|
1249
|
-
/* @__PURE__ */ f("span", {
|
|
1250
|
-
className: qe.message,
|
|
1251
|
-
children: e.message
|
|
1252
|
-
}),
|
|
1253
|
-
/* @__PURE__ */ f("button", {
|
|
1254
|
-
type: "button",
|
|
1255
|
-
"aria-label": "Close notification",
|
|
1256
|
-
className: qe.closeButton,
|
|
1257
|
-
onClick: () => t(e.id),
|
|
1258
|
-
children: /* @__PURE__ */ f("svg", {
|
|
1259
|
-
width: "12",
|
|
1260
|
-
height: "12",
|
|
1261
|
-
viewBox: "0 0 12 12",
|
|
1262
|
-
fill: "none",
|
|
1263
|
-
"aria-hidden": "true",
|
|
1264
|
-
children: /* @__PURE__ */ f("path", {
|
|
1265
|
-
d: "M9 3L3 9M3 3l6 6",
|
|
1266
|
-
stroke: "currentColor",
|
|
1267
|
-
strokeWidth: "1.5",
|
|
1268
|
-
strokeLinecap: "round"
|
|
1269
|
-
})
|
|
1270
|
-
})
|
|
1271
|
-
})
|
|
1272
|
-
]
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
function Ze({ children: e, maxToasts: t = 5 }) {
|
|
1276
|
-
let [n, r] = u([]), a = l(/* @__PURE__ */ new Map()), o = l(/* @__PURE__ */ new Map()), s = l(/* @__PURE__ */ new Map()), c = l(0), d = i((e) => {
|
|
1277
|
-
let t = a.current.get(e);
|
|
1278
|
-
t !== void 0 && (clearTimeout(t), a.current.delete(e)), o.current.delete(e), s.current.delete(e), r((t) => t.filter((t) => t.id !== e));
|
|
1279
|
-
}, []), h = i((e, t) => {
|
|
1280
|
-
let n = setTimeout(() => d(e), t);
|
|
1281
|
-
a.current.set(e, n);
|
|
1282
|
-
}, [d]), g = i((e) => {
|
|
1283
|
-
let t = a.current.get(e);
|
|
1284
|
-
t !== void 0 && (clearTimeout(t), a.current.delete(e), o.current.set(e, Date.now()));
|
|
1285
|
-
}, []), _ = i((e) => {
|
|
1286
|
-
let t = o.current.get(e);
|
|
1287
|
-
if (t === void 0) return;
|
|
1288
|
-
let n = Date.now() - t, r = Math.max(0, (s.current.get(e) ?? 0) - n);
|
|
1289
|
-
o.current.delete(e), s.current.set(e, r), r > 0 ? h(e, r) : d(e);
|
|
1290
|
-
}, [d, h]), v = i((e) => {
|
|
1291
|
-
let n = `toast-${++c.current}`, i = e.variant ?? "info", a = e.duration ?? 5e3, o = {
|
|
1292
|
-
id: n,
|
|
1293
|
-
message: e.message,
|
|
1294
|
-
variant: i,
|
|
1295
|
-
duration: a
|
|
1296
|
-
};
|
|
1297
|
-
return r((e) => {
|
|
1298
|
-
let n = [...e, o];
|
|
1299
|
-
return n.length > t ? n.slice(n.length - t) : n;
|
|
1300
|
-
}), a > 0 && (s.current.set(n, a), h(n, a)), n;
|
|
1301
|
-
}, [t, h]);
|
|
1302
|
-
return /* @__PURE__ */ p(Je.Provider, {
|
|
1303
|
-
value: {
|
|
1304
|
-
show: v,
|
|
1305
|
-
dismiss: d
|
|
1306
|
-
},
|
|
1307
|
-
children: [e, m(/* @__PURE__ */ f("div", {
|
|
1308
|
-
role: "region",
|
|
1309
|
-
className: qe.region,
|
|
1310
|
-
"aria-label": "Notifications",
|
|
1311
|
-
"aria-live": "polite",
|
|
1312
|
-
"aria-atomic": "false",
|
|
1313
|
-
"aria-relevant": "additions text",
|
|
1314
|
-
children: n.map((e) => /* @__PURE__ */ f(Xe, {
|
|
1315
|
-
item: e,
|
|
1316
|
-
onDismiss: d,
|
|
1317
|
-
onPause: g,
|
|
1318
|
-
onResume: _
|
|
1319
|
-
}, e.id))
|
|
1320
|
-
}), document.body)]
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
Ze.displayName = "ToastProvider";
|
|
1324
|
-
function Qe() {
|
|
1325
|
-
let e = a(Je);
|
|
1326
|
-
if (!e) throw Error("useToast must be used inside a <ToastProvider>");
|
|
1327
|
-
return e;
|
|
1328
|
-
}
|
|
1329
|
-
var $e = {
|
|
1330
|
-
label: "_label_1vrme_1",
|
|
1331
|
-
disabled: "_disabled_1vrme_15",
|
|
1332
|
-
required: "_required_1vrme_19"
|
|
1333
|
-
};
|
|
1334
|
-
//#endregion
|
|
1335
|
-
//#region src/primitives/Label/Label.tsx
|
|
1336
|
-
function N({ required: e, disabled: t, children: n, className: r, ...i }) {
|
|
1337
|
-
let a = [
|
|
1338
|
-
$e.label,
|
|
1339
|
-
t ? $e.disabled : "",
|
|
1340
|
-
r ?? ""
|
|
1341
|
-
].filter(Boolean).join(" ");
|
|
1342
|
-
return /* @__PURE__ */ p("label", {
|
|
1343
|
-
className: a,
|
|
1344
|
-
...i,
|
|
1345
|
-
children: [n, e && /* @__PURE__ */ f("span", {
|
|
1346
|
-
className: $e.required,
|
|
1347
|
-
"aria-hidden": "true",
|
|
1348
|
-
children: "*"
|
|
1349
|
-
})]
|
|
1350
|
-
});
|
|
1351
|
-
}
|
|
1352
|
-
N.displayName = "Label";
|
|
1353
|
-
var et = { hint: "_hint_pqi9h_1" };
|
|
1354
|
-
//#endregion
|
|
1355
|
-
//#region src/primitives/Hint/Hint.tsx
|
|
1356
|
-
function P({ children: e, className: t, ...n }) {
|
|
1357
|
-
return /* @__PURE__ */ f("span", {
|
|
1358
|
-
className: [et.hint, t ?? ""].filter(Boolean).join(" "),
|
|
1359
|
-
...n,
|
|
1360
|
-
children: e
|
|
1361
|
-
});
|
|
1362
|
-
}
|
|
1363
|
-
P.displayName = "Hint";
|
|
1364
|
-
var tt = { error: "_error_13txc_1" };
|
|
1365
|
-
//#endregion
|
|
1366
|
-
//#region src/primitives/ErrorMessage/ErrorMessage.tsx
|
|
1367
|
-
function F({ children: e, className: t, ...n }) {
|
|
1368
|
-
return /* @__PURE__ */ f("span", {
|
|
1369
|
-
className: [tt.error, t ?? ""].filter(Boolean).join(" "),
|
|
1370
|
-
...n,
|
|
1371
|
-
children: e
|
|
1372
|
-
});
|
|
1373
|
-
}
|
|
1374
|
-
F.displayName = "ErrorMessage";
|
|
1375
|
-
//#endregion
|
|
1376
|
-
//#region src/components/shared/useFieldIds.ts
|
|
1377
|
-
function I({ inputId: e, hint: t, error: n }) {
|
|
1378
|
-
let r = s(), i = e ?? r, a = t ? `${i}-hint` : void 0, o = n ? `${i}-error` : void 0;
|
|
1379
|
-
return {
|
|
1380
|
-
id: i,
|
|
1381
|
-
hintId: a,
|
|
1382
|
-
errorId: o,
|
|
1383
|
-
describedBy: o ?? a
|
|
1384
|
-
};
|
|
1385
|
-
}
|
|
1386
|
-
var nt = {
|
|
1387
|
-
root: "_root_123no_1",
|
|
1388
|
-
inputWrapper: "_inputWrapper_123no_7"
|
|
1389
|
-
}, rt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1390
|
-
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1391
|
-
inputId: o,
|
|
1392
|
-
hint: t,
|
|
1393
|
-
error: n
|
|
1394
|
-
});
|
|
1395
|
-
return /* @__PURE__ */ p("div", {
|
|
1396
|
-
className: [nt.root, s ?? ""].filter(Boolean).join(" "),
|
|
1397
|
-
children: [
|
|
1398
|
-
/* @__PURE__ */ f(N, {
|
|
1399
|
-
htmlFor: u,
|
|
1400
|
-
required: i,
|
|
1401
|
-
disabled: a,
|
|
1402
|
-
children: e
|
|
1403
|
-
}),
|
|
1404
|
-
/* @__PURE__ */ f("div", {
|
|
1405
|
-
className: nt.inputWrapper,
|
|
1406
|
-
children: /* @__PURE__ */ f(x, {
|
|
1407
|
-
ref: l,
|
|
1408
|
-
id: u,
|
|
1409
|
-
size: r,
|
|
1410
|
-
hasError: !!n,
|
|
1411
|
-
disabled: a,
|
|
1412
|
-
required: i,
|
|
1413
|
-
"aria-required": i,
|
|
1414
|
-
"aria-describedby": h,
|
|
1415
|
-
...c
|
|
1416
|
-
})
|
|
1417
|
-
}),
|
|
1418
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1419
|
-
id: m,
|
|
1420
|
-
children: n
|
|
1421
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1422
|
-
id: d,
|
|
1423
|
-
children: t
|
|
1424
|
-
}) : null
|
|
1425
|
-
]
|
|
1426
|
-
});
|
|
1427
|
-
});
|
|
1428
|
-
rt.displayName = "TextField";
|
|
1429
|
-
var it = {
|
|
1430
|
-
root: "_root_1sjfo_1",
|
|
1431
|
-
row: "_row_1sjfo_8",
|
|
1432
|
-
label: "_label_1sjfo_16",
|
|
1433
|
-
disabled: "_disabled_1sjfo_23"
|
|
1434
|
-
}, at = r(({ label: e, hint: t, error: n, size: r = "md", disabled: i = !1, inputId: a, className: o, ...s }, c) => {
|
|
1435
|
-
let { id: l, hintId: u, errorId: d, describedBy: m } = I({
|
|
1436
|
-
inputId: a,
|
|
1437
|
-
hint: t,
|
|
1438
|
-
error: n
|
|
1439
|
-
});
|
|
1440
|
-
return /* @__PURE__ */ p("div", {
|
|
1441
|
-
className: [it.root, o ?? ""].filter(Boolean).join(" "),
|
|
1442
|
-
children: [/* @__PURE__ */ p("div", {
|
|
1443
|
-
className: it.row,
|
|
1444
|
-
children: [/* @__PURE__ */ f(C, {
|
|
1445
|
-
ref: c,
|
|
1446
|
-
id: l,
|
|
1447
|
-
size: r,
|
|
1448
|
-
hasError: !!n,
|
|
1449
|
-
disabled: i,
|
|
1450
|
-
"aria-describedby": m,
|
|
1451
|
-
...s
|
|
1452
|
-
}), /* @__PURE__ */ f("label", {
|
|
1453
|
-
htmlFor: l,
|
|
1454
|
-
className: [it.label, i ? it.disabled : ""].filter(Boolean).join(" "),
|
|
1455
|
-
children: e
|
|
1456
|
-
})]
|
|
1457
|
-
}), n ? /* @__PURE__ */ f(F, {
|
|
1458
|
-
id: d,
|
|
1459
|
-
children: n
|
|
1460
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1461
|
-
id: u,
|
|
1462
|
-
children: t
|
|
1463
|
-
}) : null]
|
|
1464
|
-
});
|
|
1465
|
-
});
|
|
1466
|
-
at.displayName = "CheckboxField";
|
|
1467
|
-
var ot = { root: "_root_1oeo1_1" }, st = r(({ label: e, options: t, placeholder: n, hint: r, error: i, size: a = "md", required: o = !1, disabled: s = !1, inputId: c, className: l, children: u, ...d }, m) => {
|
|
1468
|
-
let { id: h, hintId: g, errorId: _, describedBy: v } = I({
|
|
1469
|
-
inputId: c,
|
|
1470
|
-
hint: r,
|
|
1471
|
-
error: i
|
|
1472
|
-
});
|
|
1473
|
-
return /* @__PURE__ */ p("div", {
|
|
1474
|
-
className: [ot.root, l ?? ""].filter(Boolean).join(" "),
|
|
1475
|
-
children: [
|
|
1476
|
-
/* @__PURE__ */ f(N, {
|
|
1477
|
-
htmlFor: h,
|
|
1478
|
-
required: o,
|
|
1479
|
-
disabled: s,
|
|
1480
|
-
children: e
|
|
1481
|
-
}),
|
|
1482
|
-
/* @__PURE__ */ p(D, {
|
|
1483
|
-
ref: m,
|
|
1484
|
-
id: h,
|
|
1485
|
-
size: a,
|
|
1486
|
-
hasError: !!i,
|
|
1487
|
-
disabled: s,
|
|
1488
|
-
required: o,
|
|
1489
|
-
"aria-required": o,
|
|
1490
|
-
"aria-describedby": v,
|
|
1491
|
-
...d,
|
|
1492
|
-
children: [n && /* @__PURE__ */ f("option", {
|
|
1493
|
-
value: "",
|
|
1494
|
-
disabled: !0,
|
|
1495
|
-
children: n
|
|
1496
|
-
}), t ? t.map((e) => /* @__PURE__ */ f("option", {
|
|
1497
|
-
value: e.value,
|
|
1498
|
-
disabled: e.disabled,
|
|
1499
|
-
children: e.label
|
|
1500
|
-
}, e.value)) : u]
|
|
1501
|
-
}),
|
|
1502
|
-
i ? /* @__PURE__ */ f(F, {
|
|
1503
|
-
id: _,
|
|
1504
|
-
children: i
|
|
1505
|
-
}) : r ? /* @__PURE__ */ f(P, {
|
|
1506
|
-
id: g,
|
|
1507
|
-
children: r
|
|
1508
|
-
}) : null
|
|
1509
|
-
]
|
|
1510
|
-
});
|
|
1511
|
-
});
|
|
1512
|
-
st.displayName = "SelectField";
|
|
1513
|
-
var L = {
|
|
1514
|
-
fieldset: "_fieldset_8eiqw_1",
|
|
1515
|
-
legend: "_legend_8eiqw_12",
|
|
1516
|
-
disabled: "_disabled_8eiqw_26",
|
|
1517
|
-
required: "_required_8eiqw_30",
|
|
1518
|
-
option: "_option_8eiqw_35",
|
|
1519
|
-
optionLabel: "_optionLabel_8eiqw_41",
|
|
1520
|
-
footer: "_footer_8eiqw_56"
|
|
1521
|
-
};
|
|
1522
|
-
//#endregion
|
|
1523
|
-
//#region src/components/RadioGroup/RadioGroup.tsx
|
|
1524
|
-
function ct({ legend: e, name: t, options: n, value: r, defaultValue: i, onChange: a, hint: o, error: s, required: c = !1, disabled: l = !1, size: u = "md", className: d }) {
|
|
1525
|
-
let { id: m, hintId: h, errorId: g, describedBy: _ } = I({
|
|
1526
|
-
hint: o,
|
|
1527
|
-
error: s
|
|
1528
|
-
});
|
|
1529
|
-
return /* @__PURE__ */ p("fieldset", {
|
|
1530
|
-
className: [L.fieldset, d ?? ""].filter(Boolean).join(" "),
|
|
1531
|
-
"aria-describedby": _,
|
|
1532
|
-
disabled: l,
|
|
1533
|
-
children: [
|
|
1534
|
-
/* @__PURE__ */ p("legend", {
|
|
1535
|
-
className: [L.legend, l ? L.disabled : ""].filter(Boolean).join(" "),
|
|
1536
|
-
children: [e, c && /* @__PURE__ */ f("span", {
|
|
1537
|
-
className: L.required,
|
|
1538
|
-
"aria-hidden": "true",
|
|
1539
|
-
children: "*"
|
|
1540
|
-
})]
|
|
1541
|
-
}),
|
|
1542
|
-
n.map((e, n) => {
|
|
1543
|
-
let o = `${m}-${e.value}`, d = l || e.disabled;
|
|
1544
|
-
return /* @__PURE__ */ p("div", {
|
|
1545
|
-
className: L.option,
|
|
1546
|
-
children: [/* @__PURE__ */ f(T, {
|
|
1547
|
-
id: o,
|
|
1548
|
-
name: t,
|
|
1549
|
-
value: e.value,
|
|
1550
|
-
size: u,
|
|
1551
|
-
hasError: !!s,
|
|
1552
|
-
disabled: d,
|
|
1553
|
-
required: c && n === 0,
|
|
1554
|
-
checked: r === void 0 ? void 0 : r === e.value,
|
|
1555
|
-
defaultChecked: i === void 0 ? void 0 : i === e.value,
|
|
1556
|
-
onChange: a ? () => a(e.value) : void 0
|
|
1557
|
-
}), /* @__PURE__ */ f("label", {
|
|
1558
|
-
htmlFor: o,
|
|
1559
|
-
className: [L.optionLabel, d ? L.disabled : ""].filter(Boolean).join(" "),
|
|
1560
|
-
children: e.label
|
|
1561
|
-
})]
|
|
1562
|
-
}, e.value);
|
|
1563
|
-
}),
|
|
1564
|
-
(s || o) && /* @__PURE__ */ f("div", {
|
|
1565
|
-
className: L.footer,
|
|
1566
|
-
children: s ? /* @__PURE__ */ f(F, {
|
|
1567
|
-
id: g,
|
|
1568
|
-
children: s
|
|
1569
|
-
}) : o ? /* @__PURE__ */ f(P, {
|
|
1570
|
-
id: h,
|
|
1571
|
-
children: o
|
|
1572
|
-
}) : null
|
|
1573
|
-
})
|
|
1574
|
-
]
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
ct.displayName = "RadioGroup";
|
|
1578
|
-
var lt = { root: "_root_1oeo1_1" }, ut = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, autoResize: o = !1, inputId: s, className: c, ...l }, u) => {
|
|
1579
|
-
let { id: d, hintId: m, errorId: h, describedBy: g } = I({
|
|
1580
|
-
inputId: s,
|
|
1581
|
-
hint: t,
|
|
1582
|
-
error: n
|
|
1583
|
-
});
|
|
1584
|
-
return /* @__PURE__ */ p("div", {
|
|
1585
|
-
className: [lt.root, c ?? ""].filter(Boolean).join(" "),
|
|
1586
|
-
children: [
|
|
1587
|
-
/* @__PURE__ */ f(N, {
|
|
1588
|
-
htmlFor: d,
|
|
1589
|
-
required: i,
|
|
1590
|
-
disabled: a,
|
|
1591
|
-
children: e
|
|
1592
|
-
}),
|
|
1593
|
-
/* @__PURE__ */ f(ee, {
|
|
1594
|
-
ref: u,
|
|
1595
|
-
id: d,
|
|
1596
|
-
size: r,
|
|
1597
|
-
hasError: !!n,
|
|
1598
|
-
disabled: a,
|
|
1599
|
-
required: i,
|
|
1600
|
-
"aria-required": i,
|
|
1601
|
-
"aria-describedby": g,
|
|
1602
|
-
autoResize: o,
|
|
1603
|
-
...l
|
|
1604
|
-
}),
|
|
1605
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1606
|
-
id: h,
|
|
1607
|
-
children: n
|
|
1608
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1609
|
-
id: m,
|
|
1610
|
-
children: t
|
|
1611
|
-
}) : null
|
|
1612
|
-
]
|
|
1613
|
-
});
|
|
1614
|
-
});
|
|
1615
|
-
ut.displayName = "TextAreaField";
|
|
1616
|
-
var dt = {
|
|
1617
|
-
root: "_root_108wn_1",
|
|
1618
|
-
field: "_field_108wn_7"
|
|
1619
|
-
}, ft = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1620
|
-
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1621
|
-
inputId: o,
|
|
1622
|
-
hint: t,
|
|
1623
|
-
error: n
|
|
1624
|
-
});
|
|
1625
|
-
return /* @__PURE__ */ p("div", {
|
|
1626
|
-
className: [dt.root, s ?? ""].filter(Boolean).join(" "),
|
|
1627
|
-
children: [/* @__PURE__ */ p("div", {
|
|
1628
|
-
className: dt.field,
|
|
1629
|
-
children: [/* @__PURE__ */ f(N, {
|
|
1630
|
-
htmlFor: u,
|
|
1631
|
-
required: i,
|
|
1632
|
-
disabled: a,
|
|
1633
|
-
children: e
|
|
1634
|
-
}), /* @__PURE__ */ f(A, {
|
|
1635
|
-
ref: l,
|
|
1636
|
-
id: u,
|
|
1637
|
-
size: r,
|
|
1638
|
-
hasError: !!n,
|
|
1639
|
-
disabled: a,
|
|
1640
|
-
required: i,
|
|
1641
|
-
"aria-required": i,
|
|
1642
|
-
"aria-describedby": h,
|
|
1643
|
-
...c
|
|
1644
|
-
})]
|
|
1645
|
-
}), n ? /* @__PURE__ */ f(F, {
|
|
1646
|
-
id: m,
|
|
1647
|
-
children: n
|
|
1648
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1649
|
-
id: d,
|
|
1650
|
-
children: t
|
|
1651
|
-
}) : null]
|
|
1652
|
-
});
|
|
1653
|
-
});
|
|
1654
|
-
ft.displayName = "ToggleField";
|
|
1655
|
-
var pt = { root: "_root_1oeo1_1" }, mt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, showPasswordLabel: o, hidePasswordLabel: s, inputId: c, className: l, ...u }, d) => {
|
|
1656
|
-
let { id: m, hintId: h, errorId: g, describedBy: _ } = I({
|
|
1657
|
-
inputId: c,
|
|
1658
|
-
hint: t,
|
|
1659
|
-
error: n
|
|
1660
|
-
});
|
|
1661
|
-
return /* @__PURE__ */ p("div", {
|
|
1662
|
-
className: [pt.root, l ?? ""].filter(Boolean).join(" "),
|
|
1663
|
-
children: [
|
|
1664
|
-
/* @__PURE__ */ f(N, {
|
|
1665
|
-
htmlFor: m,
|
|
1666
|
-
required: i,
|
|
1667
|
-
disabled: a,
|
|
1668
|
-
children: e
|
|
1669
|
-
}),
|
|
1670
|
-
/* @__PURE__ */ f(re, {
|
|
1671
|
-
ref: d,
|
|
1672
|
-
id: m,
|
|
1673
|
-
size: r,
|
|
1674
|
-
hasError: !!n,
|
|
1675
|
-
disabled: a,
|
|
1676
|
-
required: i,
|
|
1677
|
-
"aria-required": i,
|
|
1678
|
-
"aria-describedby": _,
|
|
1679
|
-
showPasswordLabel: o,
|
|
1680
|
-
hidePasswordLabel: s,
|
|
1681
|
-
...u
|
|
1682
|
-
}),
|
|
1683
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1684
|
-
id: g,
|
|
1685
|
-
children: n
|
|
1686
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1687
|
-
id: h,
|
|
1688
|
-
children: t
|
|
1689
|
-
}) : null
|
|
1690
|
-
]
|
|
1691
|
-
});
|
|
1692
|
-
});
|
|
1693
|
-
mt.displayName = "PasswordField";
|
|
1694
|
-
var ht = {
|
|
1695
|
-
root: "_root_123no_1",
|
|
1696
|
-
inputWrapper: "_inputWrapper_123no_7"
|
|
1697
|
-
}, gt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1698
|
-
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1699
|
-
inputId: o,
|
|
1700
|
-
hint: t,
|
|
1701
|
-
error: n
|
|
1702
|
-
});
|
|
1703
|
-
return /* @__PURE__ */ p("div", {
|
|
1704
|
-
className: [ht.root, s ?? ""].filter(Boolean).join(" "),
|
|
1705
|
-
children: [
|
|
1706
|
-
/* @__PURE__ */ f(N, {
|
|
1707
|
-
htmlFor: u,
|
|
1708
|
-
required: i,
|
|
1709
|
-
disabled: a,
|
|
1710
|
-
children: e
|
|
1711
|
-
}),
|
|
1712
|
-
/* @__PURE__ */ f("div", {
|
|
1713
|
-
className: ht.inputWrapper,
|
|
1714
|
-
children: /* @__PURE__ */ f(ie, {
|
|
1715
|
-
ref: l,
|
|
1716
|
-
id: u,
|
|
1717
|
-
size: r,
|
|
1718
|
-
hasError: !!n,
|
|
1719
|
-
disabled: a,
|
|
1720
|
-
required: i,
|
|
1721
|
-
"aria-required": i,
|
|
1722
|
-
"aria-describedby": h,
|
|
1723
|
-
...c
|
|
1724
|
-
})
|
|
1725
|
-
}),
|
|
1726
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1727
|
-
id: m,
|
|
1728
|
-
children: n
|
|
1729
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1730
|
-
id: d,
|
|
1731
|
-
children: t
|
|
1732
|
-
}) : null
|
|
1733
|
-
]
|
|
1734
|
-
});
|
|
1735
|
-
});
|
|
1736
|
-
gt.displayName = "EmailField";
|
|
1737
|
-
var _t = {
|
|
1738
|
-
root: "_root_123no_1",
|
|
1739
|
-
inputWrapper: "_inputWrapper_123no_7"
|
|
1740
|
-
}, vt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1741
|
-
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1742
|
-
inputId: o,
|
|
1743
|
-
hint: t,
|
|
1744
|
-
error: n
|
|
1745
|
-
});
|
|
1746
|
-
return /* @__PURE__ */ p("div", {
|
|
1747
|
-
className: [_t.root, s ?? ""].filter(Boolean).join(" "),
|
|
1748
|
-
children: [
|
|
1749
|
-
/* @__PURE__ */ f(N, {
|
|
1750
|
-
htmlFor: u,
|
|
1751
|
-
required: i,
|
|
1752
|
-
disabled: a,
|
|
1753
|
-
children: e
|
|
1754
|
-
}),
|
|
1755
|
-
/* @__PURE__ */ f("div", {
|
|
1756
|
-
className: _t.inputWrapper,
|
|
1757
|
-
children: /* @__PURE__ */ f(ae, {
|
|
1758
|
-
ref: l,
|
|
1759
|
-
id: u,
|
|
1760
|
-
size: r,
|
|
1761
|
-
hasError: !!n,
|
|
1762
|
-
disabled: a,
|
|
1763
|
-
required: i,
|
|
1764
|
-
"aria-required": i,
|
|
1765
|
-
"aria-describedby": h,
|
|
1766
|
-
...c
|
|
1767
|
-
})
|
|
1768
|
-
}),
|
|
1769
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1770
|
-
id: m,
|
|
1771
|
-
children: n
|
|
1772
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1773
|
-
id: d,
|
|
1774
|
-
children: t
|
|
1775
|
-
}) : null
|
|
1776
|
-
]
|
|
1777
|
-
});
|
|
1778
|
-
});
|
|
1779
|
-
vt.displayName = "PhoneField";
|
|
1780
|
-
var yt = {
|
|
1781
|
-
root: "_root_123no_1",
|
|
1782
|
-
inputWrapper: "_inputWrapper_123no_7"
|
|
1783
|
-
}, bt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, ...c }, l) => {
|
|
1784
|
-
let { id: u, hintId: d, errorId: m, describedBy: h } = I({
|
|
1785
|
-
inputId: o,
|
|
1786
|
-
hint: t,
|
|
1787
|
-
error: n
|
|
1788
|
-
});
|
|
1789
|
-
return /* @__PURE__ */ p("div", {
|
|
1790
|
-
className: [yt.root, s ?? ""].filter(Boolean).join(" "),
|
|
1791
|
-
children: [
|
|
1792
|
-
/* @__PURE__ */ f(N, {
|
|
1793
|
-
htmlFor: u,
|
|
1794
|
-
required: i,
|
|
1795
|
-
disabled: a,
|
|
1796
|
-
children: e
|
|
1797
|
-
}),
|
|
1798
|
-
/* @__PURE__ */ f("div", {
|
|
1799
|
-
className: yt.inputWrapper,
|
|
1800
|
-
children: /* @__PURE__ */ f(oe, {
|
|
1801
|
-
ref: l,
|
|
1802
|
-
id: u,
|
|
1803
|
-
size: r,
|
|
1804
|
-
hasError: !!n,
|
|
1805
|
-
disabled: a,
|
|
1806
|
-
required: i,
|
|
1807
|
-
"aria-required": i,
|
|
1808
|
-
"aria-describedby": h,
|
|
1809
|
-
...c
|
|
1810
|
-
})
|
|
1811
|
-
}),
|
|
1812
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1813
|
-
id: m,
|
|
1814
|
-
children: n
|
|
1815
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1816
|
-
id: d,
|
|
1817
|
-
children: t
|
|
1818
|
-
}) : null
|
|
1819
|
-
]
|
|
1820
|
-
});
|
|
1821
|
-
});
|
|
1822
|
-
bt.displayName = "SearchField";
|
|
1823
|
-
var xt = {
|
|
1824
|
-
root: "_root_123no_1",
|
|
1825
|
-
inputWrapper: "_inputWrapper_123no_7"
|
|
1826
|
-
}, St = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, min: s, max: c, step: l, className: u, ...d }, m) => {
|
|
1827
|
-
let { id: h, hintId: g, errorId: _, describedBy: v } = I({
|
|
1828
|
-
inputId: o,
|
|
1829
|
-
hint: t,
|
|
1830
|
-
error: n
|
|
1831
|
-
});
|
|
1832
|
-
return /* @__PURE__ */ p("div", {
|
|
1833
|
-
className: [xt.root, u ?? ""].filter(Boolean).join(" "),
|
|
1834
|
-
children: [
|
|
1835
|
-
/* @__PURE__ */ f(N, {
|
|
1836
|
-
htmlFor: h,
|
|
1837
|
-
required: i,
|
|
1838
|
-
disabled: a,
|
|
1839
|
-
children: e
|
|
1840
|
-
}),
|
|
1841
|
-
/* @__PURE__ */ f("div", {
|
|
1842
|
-
className: xt.inputWrapper,
|
|
1843
|
-
children: /* @__PURE__ */ f(De, {
|
|
1844
|
-
ref: m,
|
|
1845
|
-
id: h,
|
|
1846
|
-
size: r,
|
|
1847
|
-
hasError: !!n,
|
|
1848
|
-
disabled: a,
|
|
1849
|
-
required: i,
|
|
1850
|
-
"aria-required": i,
|
|
1851
|
-
"aria-describedby": v,
|
|
1852
|
-
min: s,
|
|
1853
|
-
max: c,
|
|
1854
|
-
step: l,
|
|
1855
|
-
...d
|
|
1856
|
-
})
|
|
1857
|
-
}),
|
|
1858
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1859
|
-
id: _,
|
|
1860
|
-
children: n
|
|
1861
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1862
|
-
id: g,
|
|
1863
|
-
children: t
|
|
1864
|
-
}) : null
|
|
1865
|
-
]
|
|
1866
|
-
});
|
|
1867
|
-
});
|
|
1868
|
-
St.displayName = "NumberField";
|
|
1869
|
-
var Ct = {
|
|
1870
|
-
root: "_root_123no_1",
|
|
1871
|
-
inputWrapper: "_inputWrapper_123no_7"
|
|
1872
|
-
}, wt = r(({ label: e, hint: t, error: n, size: r = "md", required: i = !1, disabled: a = !1, inputId: o, className: s, value: c, ...l }, u) => {
|
|
1873
|
-
let { id: d, hintId: m, errorId: h, describedBy: g } = I({
|
|
1874
|
-
inputId: o,
|
|
1875
|
-
hint: t,
|
|
1876
|
-
error: n
|
|
1877
|
-
});
|
|
1878
|
-
return /* @__PURE__ */ p("div", {
|
|
1879
|
-
className: [Ct.root, s ?? ""].filter(Boolean).join(" "),
|
|
1880
|
-
children: [
|
|
1881
|
-
/* @__PURE__ */ f(N, {
|
|
1882
|
-
htmlFor: d,
|
|
1883
|
-
required: i,
|
|
1884
|
-
disabled: a,
|
|
1885
|
-
children: e
|
|
1886
|
-
}),
|
|
1887
|
-
/* @__PURE__ */ f("div", {
|
|
1888
|
-
className: Ct.inputWrapper,
|
|
1889
|
-
children: /* @__PURE__ */ f(Oe, {
|
|
1890
|
-
ref: u,
|
|
1891
|
-
id: d,
|
|
1892
|
-
size: r,
|
|
1893
|
-
value: c,
|
|
1894
|
-
hasError: !!n,
|
|
1895
|
-
disabled: a,
|
|
1896
|
-
required: i,
|
|
1897
|
-
"aria-required": i,
|
|
1898
|
-
"aria-describedby": g,
|
|
1899
|
-
...l
|
|
1900
|
-
})
|
|
1901
|
-
}),
|
|
1902
|
-
n ? /* @__PURE__ */ f(F, {
|
|
1903
|
-
id: h,
|
|
1904
|
-
children: n
|
|
1905
|
-
}) : t ? /* @__PURE__ */ f(P, {
|
|
1906
|
-
id: m,
|
|
1907
|
-
children: t
|
|
1908
|
-
}) : null
|
|
1909
|
-
]
|
|
1910
|
-
});
|
|
1911
|
-
});
|
|
1912
|
-
wt.displayName = "DateField";
|
|
1913
|
-
//#endregion
|
|
1914
|
-
//#region src/components/ThemeProvider/ThemeProvider.tsx
|
|
1915
|
-
var Tt = n(null), Et = "ds-theme";
|
|
1916
|
-
function Dt(e, t) {
|
|
1917
|
-
e === "system" ? document.documentElement.removeAttribute("data-theme") : document.documentElement.setAttribute("data-theme", t);
|
|
1918
|
-
}
|
|
1919
|
-
function Ot({ children: e, defaultTheme: t = "system", storageKey: n = Et }) {
|
|
1920
|
-
let [r, i] = u(() => typeof window > "u" ? t : localStorage.getItem(n) ?? t), [a, s] = u(() => typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches), c = r === "system" ? a ? "dark" : "light" : r;
|
|
1921
|
-
o(() => {
|
|
1922
|
-
Dt(r, c);
|
|
1923
|
-
}, [r, c]), o(() => {
|
|
1924
|
-
let e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1925
|
-
function t() {
|
|
1926
|
-
s(e.matches);
|
|
1927
|
-
}
|
|
1928
|
-
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
1929
|
-
}, []);
|
|
1930
|
-
function l(e) {
|
|
1931
|
-
localStorage.setItem(n, e), i(e);
|
|
1932
|
-
}
|
|
1933
|
-
return /* @__PURE__ */ f(Tt.Provider, {
|
|
1934
|
-
value: {
|
|
1935
|
-
theme: r,
|
|
1936
|
-
resolvedTheme: c,
|
|
1937
|
-
setTheme: l
|
|
1938
|
-
},
|
|
1939
|
-
children: e
|
|
1940
|
-
});
|
|
1941
|
-
}
|
|
1942
|
-
Ot.displayName = "ThemeProvider";
|
|
1943
|
-
//#endregion
|
|
1944
|
-
//#region src/components/ThemeProvider/useTheme.ts
|
|
1945
|
-
function kt() {
|
|
1946
|
-
let e = a(Tt);
|
|
1947
|
-
if (!e) throw Error("useTheme must be used inside a <ThemeProvider>");
|
|
1948
|
-
return e;
|
|
1949
|
-
}
|
|
1950
|
-
var At = { stack: "_stack_bluv1_1" }, jt = {
|
|
1951
|
-
0: "0",
|
|
1952
|
-
1: "var(--ds-space-1)",
|
|
1953
|
-
2: "var(--ds-space-2)",
|
|
1954
|
-
3: "var(--ds-space-3)",
|
|
1955
|
-
4: "var(--ds-space-4)",
|
|
1956
|
-
5: "var(--ds-space-5)",
|
|
1957
|
-
6: "var(--ds-space-6)",
|
|
1958
|
-
8: "var(--ds-space-8)",
|
|
1959
|
-
10: "var(--ds-space-10)",
|
|
1960
|
-
12: "var(--ds-space-12)",
|
|
1961
|
-
16: "var(--ds-space-16)"
|
|
1962
|
-
}, Mt = {
|
|
1963
|
-
start: "flex-start",
|
|
1964
|
-
center: "center",
|
|
1965
|
-
end: "flex-end",
|
|
1966
|
-
between: "space-between",
|
|
1967
|
-
around: "space-around",
|
|
1968
|
-
evenly: "space-evenly"
|
|
1969
|
-
}, Nt = r(({ direction: e = "column", gap: t = 4, align: n = "stretch", justify: r = "start", wrap: i = !1, className: a, style: o, ...s }, c) => {
|
|
1970
|
-
let l = [At.stack, a ?? ""].filter(Boolean).join(" ");
|
|
1971
|
-
return /* @__PURE__ */ f("div", {
|
|
1972
|
-
ref: c,
|
|
1973
|
-
className: l,
|
|
1974
|
-
style: {
|
|
1975
|
-
flexDirection: e,
|
|
1976
|
-
gap: jt[t],
|
|
1977
|
-
alignItems: n,
|
|
1978
|
-
justifyContent: Mt[r],
|
|
1979
|
-
flexWrap: i ? "wrap" : "nowrap",
|
|
1980
|
-
...o
|
|
1981
|
-
},
|
|
1982
|
-
...s
|
|
1983
|
-
});
|
|
1984
|
-
});
|
|
1985
|
-
Nt.displayName = "Stack";
|
|
1986
|
-
var Pt = {
|
|
1987
|
-
grid: "_grid_nas2v_1",
|
|
1988
|
-
responsive: "_responsive_nas2v_7"
|
|
1989
|
-
}, Ft = {
|
|
1990
|
-
0: "0",
|
|
1991
|
-
1: "var(--ds-space-1)",
|
|
1992
|
-
2: "var(--ds-space-2)",
|
|
1993
|
-
3: "var(--ds-space-3)",
|
|
1994
|
-
4: "var(--ds-space-4)",
|
|
1995
|
-
5: "var(--ds-space-5)",
|
|
1996
|
-
6: "var(--ds-space-6)",
|
|
1997
|
-
8: "var(--ds-space-8)",
|
|
1998
|
-
10: "var(--ds-space-10)",
|
|
1999
|
-
12: "var(--ds-space-12)",
|
|
2000
|
-
16: "var(--ds-space-16)"
|
|
2001
|
-
}, It = r(({ cols: e = 1, gap: t = 4, columnGap: n, rowGap: r, className: i, style: a, ...o }, s) => {
|
|
2002
|
-
let c = typeof e != "number", l = c ? {
|
|
2003
|
-
...e.mobile !== void 0 && { "--grid-cols-mobile": String(e.mobile) },
|
|
2004
|
-
...e.tablet !== void 0 && { "--grid-cols-tablet": String(e.tablet) },
|
|
2005
|
-
...e.desktop !== void 0 && { "--grid-cols-desktop": String(e.desktop) }
|
|
2006
|
-
} : { gridTemplateColumns: `repeat(${e}, minmax(0, 1fr))` }, u = [
|
|
2007
|
-
Pt.grid,
|
|
2008
|
-
c ? Pt.responsive : "",
|
|
2009
|
-
i ?? ""
|
|
2010
|
-
].filter(Boolean).join(" ");
|
|
2011
|
-
return /* @__PURE__ */ f("div", {
|
|
2012
|
-
ref: s,
|
|
2013
|
-
className: u,
|
|
2014
|
-
style: {
|
|
2015
|
-
...l,
|
|
2016
|
-
gap: Ft[t],
|
|
2017
|
-
...n !== void 0 && { columnGap: Ft[n] },
|
|
2018
|
-
...r !== void 0 && { rowGap: Ft[r] },
|
|
2019
|
-
...a
|
|
2020
|
-
},
|
|
2021
|
-
...o
|
|
2022
|
-
});
|
|
2023
|
-
});
|
|
2024
|
-
It.displayName = "Grid";
|
|
2025
|
-
var Lt = {
|
|
2026
|
-
container: "_container_1evbj_1",
|
|
2027
|
-
padding: "_padding_1evbj_6",
|
|
2028
|
-
sm: "_sm_1evbj_12",
|
|
2029
|
-
md: "_md_1evbj_13",
|
|
2030
|
-
lg: "_lg_1evbj_14",
|
|
2031
|
-
xl: "_xl_1evbj_15",
|
|
2032
|
-
full: "_full_1evbj_16"
|
|
2033
|
-
}, Rt = r(({ size: e = "lg", padding: t = !0, className: n, ...r }, i) => {
|
|
2034
|
-
let a = [
|
|
2035
|
-
Lt.container,
|
|
2036
|
-
Lt[e],
|
|
2037
|
-
t ? Lt.padding : "",
|
|
2038
|
-
n ?? ""
|
|
2039
|
-
].filter(Boolean).join(" ");
|
|
2040
|
-
return /* @__PURE__ */ f("div", {
|
|
2041
|
-
ref: i,
|
|
2042
|
-
className: a,
|
|
2043
|
-
...r
|
|
2044
|
-
});
|
|
2045
|
-
});
|
|
2046
|
-
Rt.displayName = "Container";
|
|
2047
|
-
var R = {
|
|
2048
|
-
root: "_root_1jo5p_3",
|
|
2049
|
-
outlined: "_outlined_1jo5p_14",
|
|
2050
|
-
elevated: "_elevated_1jo5p_18",
|
|
2051
|
-
flat: "_flat_1jo5p_22",
|
|
2052
|
-
paddingSm: "_paddingSm_1jo5p_28",
|
|
2053
|
-
paddingMd: "_paddingMd_1jo5p_29",
|
|
2054
|
-
paddingLg: "_paddingLg_1jo5p_30",
|
|
2055
|
-
media: "_media_1jo5p_34",
|
|
2056
|
-
header: "_header_1jo5p_47",
|
|
2057
|
-
body: "_body_1jo5p_48",
|
|
2058
|
-
footer: "_footer_1jo5p_49"
|
|
2059
|
-
}, zt = {
|
|
2060
|
-
sm: R.paddingSm,
|
|
2061
|
-
md: R.paddingMd,
|
|
2062
|
-
lg: R.paddingLg
|
|
2063
|
-
}, Bt = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2064
|
-
ref: n,
|
|
2065
|
-
className: [R.media, e ?? ""].filter(Boolean).join(" "),
|
|
2066
|
-
...t
|
|
2067
|
-
}));
|
|
2068
|
-
Bt.displayName = "Card.Media";
|
|
2069
|
-
var Vt = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2070
|
-
ref: n,
|
|
2071
|
-
className: [R.header, e ?? ""].filter(Boolean).join(" "),
|
|
2072
|
-
...t
|
|
2073
|
-
}));
|
|
2074
|
-
Vt.displayName = "Card.Header";
|
|
2075
|
-
var Ht = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2076
|
-
ref: n,
|
|
2077
|
-
className: [R.body, e ?? ""].filter(Boolean).join(" "),
|
|
2078
|
-
...t
|
|
2079
|
-
}));
|
|
2080
|
-
Ht.displayName = "Card.Body";
|
|
2081
|
-
var Ut = r(({ className: e, ...t }, n) => /* @__PURE__ */ f("div", {
|
|
2082
|
-
ref: n,
|
|
2083
|
-
className: [R.footer, e ?? ""].filter(Boolean).join(" "),
|
|
2084
|
-
...t
|
|
2085
|
-
}));
|
|
2086
|
-
Ut.displayName = "Card.Footer";
|
|
2087
|
-
var Wt = r(({ variant: e = "outlined", padding: t = "md", className: n, ...r }, i) => {
|
|
2088
|
-
let a = [
|
|
2089
|
-
R.root,
|
|
2090
|
-
R[e],
|
|
2091
|
-
zt[t],
|
|
2092
|
-
n ?? ""
|
|
2093
|
-
].filter(Boolean).join(" ");
|
|
2094
|
-
return /* @__PURE__ */ f("div", {
|
|
2095
|
-
ref: i,
|
|
2096
|
-
className: a,
|
|
2097
|
-
...r
|
|
2098
|
-
});
|
|
2099
|
-
});
|
|
2100
|
-
Wt.displayName = "Card";
|
|
2101
|
-
var Gt = Object.assign(Wt, {
|
|
2102
|
-
Media: Bt,
|
|
2103
|
-
Header: Vt,
|
|
2104
|
-
Body: Ht,
|
|
2105
|
-
Footer: Ut
|
|
2106
|
-
}), z = {
|
|
2107
|
-
root: "_root_xmnn0_3",
|
|
2108
|
-
info: "_info_xmnn0_16",
|
|
2109
|
-
success: "_success_xmnn0_22",
|
|
2110
|
-
warning: "_warning_xmnn0_28",
|
|
2111
|
-
error: "_error_xmnn0_34",
|
|
2112
|
-
promotional: "_promotional_xmnn0_40",
|
|
2113
|
-
stacked: "_stacked_xmnn0_48",
|
|
2114
|
-
icon: "_icon_xmnn0_52",
|
|
2115
|
-
content: "_content_xmnn0_68",
|
|
2116
|
-
headline: "_headline_xmnn0_76",
|
|
2117
|
-
description: "_description_xmnn0_85",
|
|
2118
|
-
actions: "_actions_xmnn0_95",
|
|
2119
|
-
dismiss: "_dismiss_xmnn0_108"
|
|
2120
|
-
}, Kt = {
|
|
2121
|
-
error: "alert",
|
|
2122
|
-
warning: "alert",
|
|
2123
|
-
success: "status",
|
|
2124
|
-
info: "status",
|
|
2125
|
-
promotional: "region"
|
|
2126
|
-
}, qt = {
|
|
2127
|
-
info: /* @__PURE__ */ p("svg", {
|
|
2128
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2129
|
-
width: "20",
|
|
2130
|
-
height: "20",
|
|
2131
|
-
viewBox: "0 0 24 24",
|
|
2132
|
-
fill: "none",
|
|
2133
|
-
stroke: "currentColor",
|
|
2134
|
-
strokeWidth: "2",
|
|
2135
|
-
strokeLinecap: "round",
|
|
2136
|
-
strokeLinejoin: "round",
|
|
2137
|
-
"aria-hidden": "true",
|
|
2138
|
-
children: [
|
|
2139
|
-
/* @__PURE__ */ f("circle", {
|
|
2140
|
-
cx: "12",
|
|
2141
|
-
cy: "12",
|
|
2142
|
-
r: "10"
|
|
2143
|
-
}),
|
|
2144
|
-
/* @__PURE__ */ f("line", {
|
|
2145
|
-
x1: "12",
|
|
2146
|
-
y1: "8",
|
|
2147
|
-
x2: "12",
|
|
2148
|
-
y2: "12"
|
|
2149
|
-
}),
|
|
2150
|
-
/* @__PURE__ */ f("line", {
|
|
2151
|
-
x1: "12",
|
|
2152
|
-
y1: "16",
|
|
2153
|
-
x2: "12.01",
|
|
2154
|
-
y2: "16"
|
|
2155
|
-
})
|
|
2156
|
-
]
|
|
2157
|
-
}),
|
|
2158
|
-
success: /* @__PURE__ */ p("svg", {
|
|
2159
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2160
|
-
width: "20",
|
|
2161
|
-
height: "20",
|
|
2162
|
-
viewBox: "0 0 24 24",
|
|
2163
|
-
fill: "none",
|
|
2164
|
-
stroke: "currentColor",
|
|
2165
|
-
strokeWidth: "2",
|
|
2166
|
-
strokeLinecap: "round",
|
|
2167
|
-
strokeLinejoin: "round",
|
|
2168
|
-
"aria-hidden": "true",
|
|
2169
|
-
children: [/* @__PURE__ */ f("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ f("polyline", { points: "22 4 12 14.01 9 11.01" })]
|
|
2170
|
-
}),
|
|
2171
|
-
warning: /* @__PURE__ */ p("svg", {
|
|
2172
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2173
|
-
width: "20",
|
|
2174
|
-
height: "20",
|
|
2175
|
-
viewBox: "0 0 24 24",
|
|
2176
|
-
fill: "none",
|
|
2177
|
-
stroke: "currentColor",
|
|
2178
|
-
strokeWidth: "2",
|
|
2179
|
-
strokeLinecap: "round",
|
|
2180
|
-
strokeLinejoin: "round",
|
|
2181
|
-
"aria-hidden": "true",
|
|
2182
|
-
children: [
|
|
2183
|
-
/* @__PURE__ */ f("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
2184
|
-
/* @__PURE__ */ f("line", {
|
|
2185
|
-
x1: "12",
|
|
2186
|
-
y1: "9",
|
|
2187
|
-
x2: "12",
|
|
2188
|
-
y2: "13"
|
|
2189
|
-
}),
|
|
2190
|
-
/* @__PURE__ */ f("line", {
|
|
2191
|
-
x1: "12",
|
|
2192
|
-
y1: "17",
|
|
2193
|
-
x2: "12.01",
|
|
2194
|
-
y2: "17"
|
|
2195
|
-
})
|
|
2196
|
-
]
|
|
2197
|
-
}),
|
|
2198
|
-
error: /* @__PURE__ */ p("svg", {
|
|
2199
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2200
|
-
width: "20",
|
|
2201
|
-
height: "20",
|
|
2202
|
-
viewBox: "0 0 24 24",
|
|
2203
|
-
fill: "none",
|
|
2204
|
-
stroke: "currentColor",
|
|
2205
|
-
strokeWidth: "2",
|
|
2206
|
-
strokeLinecap: "round",
|
|
2207
|
-
strokeLinejoin: "round",
|
|
2208
|
-
"aria-hidden": "true",
|
|
2209
|
-
children: [
|
|
2210
|
-
/* @__PURE__ */ f("circle", {
|
|
2211
|
-
cx: "12",
|
|
2212
|
-
cy: "12",
|
|
2213
|
-
r: "10"
|
|
2214
|
-
}),
|
|
2215
|
-
/* @__PURE__ */ f("line", {
|
|
2216
|
-
x1: "15",
|
|
2217
|
-
y1: "9",
|
|
2218
|
-
x2: "9",
|
|
2219
|
-
y2: "15"
|
|
2220
|
-
}),
|
|
2221
|
-
/* @__PURE__ */ f("line", {
|
|
2222
|
-
x1: "9",
|
|
2223
|
-
y1: "9",
|
|
2224
|
-
x2: "15",
|
|
2225
|
-
y2: "15"
|
|
2226
|
-
})
|
|
2227
|
-
]
|
|
2228
|
-
}),
|
|
2229
|
-
promotional: /* @__PURE__ */ f("svg", {
|
|
2230
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2231
|
-
width: "20",
|
|
2232
|
-
height: "20",
|
|
2233
|
-
viewBox: "0 0 24 24",
|
|
2234
|
-
fill: "none",
|
|
2235
|
-
stroke: "currentColor",
|
|
2236
|
-
strokeWidth: "2",
|
|
2237
|
-
strokeLinecap: "round",
|
|
2238
|
-
strokeLinejoin: "round",
|
|
2239
|
-
"aria-hidden": "true",
|
|
2240
|
-
children: /* @__PURE__ */ f("path", { d: "M22 12h-4l-3 9L9 3l-3 9H2" })
|
|
2241
|
-
})
|
|
2242
|
-
}, Jt = () => /* @__PURE__ */ p("svg", {
|
|
2243
|
-
"aria-hidden": "true",
|
|
2244
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2245
|
-
width: "16",
|
|
2246
|
-
height: "16",
|
|
2247
|
-
viewBox: "0 0 24 24",
|
|
2248
|
-
fill: "none",
|
|
2249
|
-
stroke: "currentColor",
|
|
2250
|
-
strokeWidth: "2",
|
|
2251
|
-
strokeLinecap: "round",
|
|
2252
|
-
strokeLinejoin: "round",
|
|
2253
|
-
children: [/* @__PURE__ */ f("line", {
|
|
2254
|
-
x1: "18",
|
|
2255
|
-
y1: "6",
|
|
2256
|
-
x2: "6",
|
|
2257
|
-
y2: "18"
|
|
2258
|
-
}), /* @__PURE__ */ f("line", {
|
|
2259
|
-
x1: "6",
|
|
2260
|
-
y1: "6",
|
|
2261
|
-
x2: "18",
|
|
2262
|
-
y2: "18"
|
|
2263
|
-
})]
|
|
2264
|
-
}), Yt = r(({ headline: e, description: t, variant: n = "info", layout: r = "horizontal", media: i, actions: a, onDismiss: o, dismissLabel: s = "Close banner", role: c, className: l, ...u }, d) => {
|
|
2265
|
-
let m = c ?? Kt[n], h = [
|
|
2266
|
-
z.root,
|
|
2267
|
-
z[n],
|
|
2268
|
-
r === "stacked" ? z.stacked : "",
|
|
2269
|
-
l ?? ""
|
|
2270
|
-
].filter(Boolean).join(" ");
|
|
2271
|
-
return /* @__PURE__ */ p("div", {
|
|
2272
|
-
ref: d,
|
|
2273
|
-
role: m,
|
|
2274
|
-
"aria-label": m === "region" ? e : void 0,
|
|
2275
|
-
...u,
|
|
2276
|
-
className: h,
|
|
2277
|
-
children: [
|
|
2278
|
-
/* @__PURE__ */ f("span", {
|
|
2279
|
-
className: z.icon,
|
|
2280
|
-
children: i ?? qt[n]
|
|
2281
|
-
}),
|
|
2282
|
-
/* @__PURE__ */ p("div", {
|
|
2283
|
-
className: z.content,
|
|
2284
|
-
children: [
|
|
2285
|
-
/* @__PURE__ */ f("p", {
|
|
2286
|
-
className: z.headline,
|
|
2287
|
-
children: e
|
|
2288
|
-
}),
|
|
2289
|
-
t && /* @__PURE__ */ f("p", {
|
|
2290
|
-
className: z.description,
|
|
2291
|
-
children: t
|
|
2292
|
-
}),
|
|
2293
|
-
r === "stacked" && a && /* @__PURE__ */ f("div", {
|
|
2294
|
-
className: z.actions,
|
|
2295
|
-
children: a
|
|
2296
|
-
})
|
|
2297
|
-
]
|
|
2298
|
-
}),
|
|
2299
|
-
r === "horizontal" && a && /* @__PURE__ */ f("div", {
|
|
2300
|
-
className: z.actions,
|
|
2301
|
-
children: a
|
|
2302
|
-
}),
|
|
2303
|
-
o && /* @__PURE__ */ f("button", {
|
|
2304
|
-
type: "button",
|
|
2305
|
-
className: z.dismiss,
|
|
2306
|
-
"aria-label": s,
|
|
2307
|
-
onClick: o,
|
|
2308
|
-
children: /* @__PURE__ */ f(Jt, {})
|
|
2309
|
-
})
|
|
2310
|
-
]
|
|
2311
|
-
});
|
|
2312
|
-
});
|
|
2313
|
-
Yt.displayName = "Banner";
|
|
2314
|
-
var B = {
|
|
2315
|
-
root: "_root_cjxe3_3",
|
|
2316
|
-
srOnly: "_srOnly_cjxe3_11",
|
|
2317
|
-
viewport: "_viewport_cjxe3_25",
|
|
2318
|
-
track: "_track_cjxe3_32",
|
|
2319
|
-
slide: "_slide_cjxe3_46",
|
|
2320
|
-
controls: "_controls_cjxe3_53",
|
|
2321
|
-
navBtn: "_navBtn_cjxe3_60",
|
|
2322
|
-
dots: "_dots_cjxe3_66",
|
|
2323
|
-
dot: "_dot_cjxe3_66",
|
|
2324
|
-
dotActive: "_dotActive_cjxe3_96"
|
|
2325
|
-
}, Xt = () => /* @__PURE__ */ f("svg", {
|
|
2326
|
-
width: "16",
|
|
2327
|
-
height: "16",
|
|
2328
|
-
viewBox: "0 0 24 24",
|
|
2329
|
-
fill: "none",
|
|
2330
|
-
stroke: "currentColor",
|
|
2331
|
-
strokeWidth: "2",
|
|
2332
|
-
strokeLinecap: "round",
|
|
2333
|
-
strokeLinejoin: "round",
|
|
2334
|
-
"aria-hidden": "true",
|
|
2335
|
-
children: /* @__PURE__ */ f("polyline", { points: "15 18 9 12 15 6" })
|
|
2336
|
-
}), Zt = () => /* @__PURE__ */ f("svg", {
|
|
2337
|
-
width: "16",
|
|
2338
|
-
height: "16",
|
|
2339
|
-
viewBox: "0 0 24 24",
|
|
2340
|
-
fill: "none",
|
|
2341
|
-
stroke: "currentColor",
|
|
2342
|
-
strokeWidth: "2",
|
|
2343
|
-
strokeLinecap: "round",
|
|
2344
|
-
strokeLinejoin: "round",
|
|
2345
|
-
"aria-hidden": "true",
|
|
2346
|
-
children: /* @__PURE__ */ f("polyline", { points: "9 18 15 12 9 6" })
|
|
2347
|
-
}), Qt = r(({ children: t, "aria-label": n, loop: r = !1, autoplay: a, visibleSlides: s = 1, prevLabel: d = "Previous", nextLabel: m = "Next", className: h, onKeyDown: g, ..._ }, v) => {
|
|
2348
|
-
let b = e.toArray(t), x = b.length, S = Math.min(s, x), C = Math.max(0, x - S), w = C + 1, [T, E] = u(0), [D, O] = u(!1), ee = l(!1), k = l(!1);
|
|
2349
|
-
c(() => {
|
|
2350
|
-
if (!D) return;
|
|
2351
|
-
let e = requestAnimationFrame(() => requestAnimationFrame(() => O(!1)));
|
|
2352
|
-
return () => cancelAnimationFrame(e);
|
|
2353
|
-
}, [D]);
|
|
2354
|
-
let A = i((e) => {
|
|
2355
|
-
r ? ((e < 0 || e >= x) && O(!0), E((e % x + x) % x)) : E(Math.max(0, Math.min(C, e)));
|
|
2356
|
-
}, [
|
|
2357
|
-
r,
|
|
2358
|
-
x,
|
|
2359
|
-
C
|
|
2360
|
-
]), j = i(() => A(T - 1), [T, A]), te = i(() => A(T + 1), [T, A]);
|
|
2361
|
-
o(() => {
|
|
2362
|
-
if (!a) return;
|
|
2363
|
-
let e = setInterval(() => {
|
|
2364
|
-
ee.current || k.current || (r ? A(T + 1) : E((e) => e < C ? e + 1 : 0));
|
|
2365
|
-
}, a);
|
|
2366
|
-
return () => clearInterval(e);
|
|
2367
|
-
}, [
|
|
2368
|
-
a,
|
|
2369
|
-
T,
|
|
2370
|
-
A,
|
|
2371
|
-
r,
|
|
2372
|
-
C
|
|
2373
|
-
]);
|
|
2374
|
-
let ne = i((e) => {
|
|
2375
|
-
e.key === "ArrowLeft" && (e.preventDefault(), j()), e.key === "ArrowRight" && (e.preventDefault(), te()), g?.(e);
|
|
2376
|
-
}, [
|
|
2377
|
-
j,
|
|
2378
|
-
te,
|
|
2379
|
-
g
|
|
2380
|
-
]), re = !r && T === 0, ie = !r && T >= C, ae = x > 0 ? T / x * 100 : 0, oe = x > 0 ? x / S * 100 : 100, se = x > 0 ? 100 / x : 100, ce = [B.root, h ?? ""].filter(Boolean).join(" ");
|
|
2381
|
-
return /* @__PURE__ */ p("div", {
|
|
2382
|
-
ref: v,
|
|
2383
|
-
role: "region",
|
|
2384
|
-
"aria-label": n,
|
|
2385
|
-
className: ce,
|
|
2386
|
-
onKeyDown: ne,
|
|
2387
|
-
onMouseEnter: () => {
|
|
2388
|
-
ee.current = !0;
|
|
2389
|
-
},
|
|
2390
|
-
onMouseLeave: () => {
|
|
2391
|
-
ee.current = !1;
|
|
2392
|
-
},
|
|
2393
|
-
onFocus: () => {
|
|
2394
|
-
k.current = !0;
|
|
2395
|
-
},
|
|
2396
|
-
onBlur: () => {
|
|
2397
|
-
k.current = !1;
|
|
2398
|
-
},
|
|
2399
|
-
..._,
|
|
2400
|
-
children: [
|
|
2401
|
-
/* @__PURE__ */ f("span", {
|
|
2402
|
-
className: B.srOnly,
|
|
2403
|
-
"aria-live": "polite",
|
|
2404
|
-
"aria-atomic": "true",
|
|
2405
|
-
children: `Slide ${T + 1} of ${x}`
|
|
2406
|
-
}),
|
|
2407
|
-
/* @__PURE__ */ f("div", {
|
|
2408
|
-
className: B.viewport,
|
|
2409
|
-
children: /* @__PURE__ */ f("div", {
|
|
2410
|
-
className: B.track,
|
|
2411
|
-
style: {
|
|
2412
|
-
width: `${oe}%`,
|
|
2413
|
-
transform: `translateX(-${ae}%)`,
|
|
2414
|
-
...D ? { transition: "none" } : {}
|
|
2415
|
-
},
|
|
2416
|
-
children: b.map((e, t) => /* @__PURE__ */ f("div", {
|
|
2417
|
-
role: "group",
|
|
2418
|
-
"aria-roledescription": "slide",
|
|
2419
|
-
"aria-label": `Slide ${t + 1} of ${x}`,
|
|
2420
|
-
className: B.slide,
|
|
2421
|
-
style: { width: `${se}%` },
|
|
2422
|
-
children: e
|
|
2423
|
-
}, t))
|
|
2424
|
-
})
|
|
2425
|
-
}),
|
|
2426
|
-
/* @__PURE__ */ p("div", {
|
|
2427
|
-
className: B.controls,
|
|
2428
|
-
children: [
|
|
2429
|
-
/* @__PURE__ */ f(y, {
|
|
2430
|
-
variant: "secondary",
|
|
2431
|
-
size: "sm",
|
|
2432
|
-
"aria-label": d,
|
|
2433
|
-
disabled: re,
|
|
2434
|
-
onClick: j,
|
|
2435
|
-
className: B.navBtn,
|
|
2436
|
-
children: /* @__PURE__ */ f(Xt, {})
|
|
2437
|
-
}),
|
|
2438
|
-
/* @__PURE__ */ f("ul", {
|
|
2439
|
-
className: B.dots,
|
|
2440
|
-
"aria-label": "Slides",
|
|
2441
|
-
children: Array.from({ length: w }).map((e, t) => /* @__PURE__ */ f("li", { children: /* @__PURE__ */ f("button", {
|
|
2442
|
-
type: "button",
|
|
2443
|
-
"aria-label": `Go to slide ${t + 1}`,
|
|
2444
|
-
"aria-current": t === T || void 0,
|
|
2445
|
-
className: [B.dot, t === T ? B.dotActive : ""].filter(Boolean).join(" "),
|
|
2446
|
-
onClick: () => A(t)
|
|
2447
|
-
}) }, t))
|
|
2448
|
-
}),
|
|
2449
|
-
/* @__PURE__ */ f(y, {
|
|
2450
|
-
variant: "secondary",
|
|
2451
|
-
size: "sm",
|
|
2452
|
-
"aria-label": m,
|
|
2453
|
-
disabled: ie,
|
|
2454
|
-
onClick: te,
|
|
2455
|
-
className: B.navBtn,
|
|
2456
|
-
children: /* @__PURE__ */ f(Zt, {})
|
|
2457
|
-
})
|
|
2458
|
-
]
|
|
2459
|
-
})
|
|
2460
|
-
]
|
|
2461
|
-
});
|
|
2462
|
-
});
|
|
2463
|
-
Qt.displayName = "Carousel";
|
|
2464
|
-
var $t = {
|
|
2465
|
-
nav: "_nav_1eaxa_1",
|
|
2466
|
-
list: "_list_1eaxa_5",
|
|
2467
|
-
item: "_item_1eaxa_14",
|
|
2468
|
-
link: "_link_1eaxa_29",
|
|
2469
|
-
current: "_current_1eaxa_47"
|
|
2470
|
-
}, en = r(({ items: e, "aria-label": t = "Breadcrumb", className: n }, r) => /* @__PURE__ */ f("nav", {
|
|
2471
|
-
ref: r,
|
|
2472
|
-
"aria-label": t,
|
|
2473
|
-
className: [$t.nav, n ?? ""].filter(Boolean).join(" "),
|
|
2474
|
-
children: /* @__PURE__ */ f("ol", {
|
|
2475
|
-
className: $t.list,
|
|
2476
|
-
children: e.map((t, n) => {
|
|
2477
|
-
let r = n === e.length - 1;
|
|
2478
|
-
return /* @__PURE__ */ f("li", {
|
|
2479
|
-
className: $t.item,
|
|
2480
|
-
children: r ? /* @__PURE__ */ f("span", {
|
|
2481
|
-
className: $t.current,
|
|
2482
|
-
"aria-current": "page",
|
|
2483
|
-
children: t.label
|
|
2484
|
-
}) : t.href ? /* @__PURE__ */ f("a", {
|
|
2485
|
-
href: t.href,
|
|
2486
|
-
className: $t.link,
|
|
2487
|
-
children: t.label
|
|
2488
|
-
}) : /* @__PURE__ */ f("span", {
|
|
2489
|
-
className: $t.link,
|
|
2490
|
-
children: t.label
|
|
2491
|
-
})
|
|
2492
|
-
}, `${t.label}-${n}`);
|
|
2493
|
-
})
|
|
2494
|
-
})
|
|
2495
|
-
}));
|
|
2496
|
-
en.displayName = "Breadcrumb";
|
|
2497
|
-
var V = {
|
|
2498
|
-
navbar: "_navbar_1bewp_1",
|
|
2499
|
-
sticky: "_sticky_1bewp_7",
|
|
2500
|
-
inner: "_inner_1bewp_12",
|
|
2501
|
-
brand: "_brand_1bewp_22",
|
|
2502
|
-
nav: "_nav_1bewp_1",
|
|
2503
|
-
navList: "_navList_1bewp_34",
|
|
2504
|
-
navItem: "_navItem_1bewp_43",
|
|
2505
|
-
navLink: "_navLink_1bewp_47",
|
|
2506
|
-
navLinkActive: "_navLinkActive_1bewp_72",
|
|
2507
|
-
actions: "_actions_1bewp_82",
|
|
2508
|
-
menuButton: "_menuButton_1bewp_90",
|
|
2509
|
-
mobileMenu: "_mobileMenu_1bewp_116",
|
|
2510
|
-
mobileNavList: "_mobileNavList_1bewp_124",
|
|
2511
|
-
mobileNavItem: "_mobileNavItem_1bewp_133",
|
|
2512
|
-
mobileNavLink: "_mobileNavLink_1bewp_137",
|
|
2513
|
-
mobileNavLinkActive: "_mobileNavLinkActive_1bewp_160",
|
|
2514
|
-
mobileMenuOpen: "_mobileMenuOpen_1bewp_189"
|
|
2515
|
-
}, tn = () => /* @__PURE__ */ f("svg", {
|
|
2516
|
-
width: "20",
|
|
2517
|
-
height: "20",
|
|
2518
|
-
viewBox: "0 0 20 20",
|
|
2519
|
-
fill: "currentColor",
|
|
2520
|
-
"aria-hidden": "true",
|
|
2521
|
-
children: /* @__PURE__ */ f("path", {
|
|
2522
|
-
fillRule: "evenodd",
|
|
2523
|
-
d: "M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Zm0 5.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",
|
|
2524
|
-
clipRule: "evenodd"
|
|
2525
|
-
})
|
|
2526
|
-
}), nn = () => /* @__PURE__ */ f("svg", {
|
|
2527
|
-
width: "20",
|
|
2528
|
-
height: "20",
|
|
2529
|
-
viewBox: "0 0 20 20",
|
|
2530
|
-
fill: "currentColor",
|
|
2531
|
-
"aria-hidden": "true",
|
|
2532
|
-
children: /* @__PURE__ */ f("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
|
|
2533
|
-
}), rn = r(({ brand: e, items: t = [], actions: n, sticky: r = !1, "aria-label": i = "Main navigation", defaultMobileOpen: a = !1, isMobileOpen: o, onMobileOpenChange: c, className: l }, d) => {
|
|
2534
|
-
let [m, h] = u(a), g = o ?? m, _ = s(), v = () => {
|
|
2535
|
-
let e = !g;
|
|
2536
|
-
o === void 0 && h(e), c?.(e);
|
|
2537
|
-
}, y = () => {
|
|
2538
|
-
o === void 0 && h(!1), c?.(!1);
|
|
2539
|
-
}, b = [
|
|
2540
|
-
V.navbar,
|
|
2541
|
-
r ? V.sticky : "",
|
|
2542
|
-
l ?? ""
|
|
2543
|
-
].filter(Boolean).join(" ");
|
|
2544
|
-
return /* @__PURE__ */ p("header", {
|
|
2545
|
-
ref: d,
|
|
2546
|
-
className: b,
|
|
2547
|
-
children: [/* @__PURE__ */ p("div", {
|
|
2548
|
-
className: V.inner,
|
|
2549
|
-
children: [
|
|
2550
|
-
e && /* @__PURE__ */ f("div", {
|
|
2551
|
-
className: V.brand,
|
|
2552
|
-
children: e
|
|
2553
|
-
}),
|
|
2554
|
-
t.length > 0 && /* @__PURE__ */ f("nav", {
|
|
2555
|
-
className: V.nav,
|
|
2556
|
-
"aria-label": i,
|
|
2557
|
-
children: /* @__PURE__ */ f("ul", {
|
|
2558
|
-
className: V.navList,
|
|
2559
|
-
children: t.map((e) => /* @__PURE__ */ f("li", {
|
|
2560
|
-
className: V.navItem,
|
|
2561
|
-
children: /* @__PURE__ */ f("a", {
|
|
2562
|
-
href: e.href,
|
|
2563
|
-
onClick: e.onClick,
|
|
2564
|
-
className: [V.navLink, e.isActive ? V.navLinkActive : ""].filter(Boolean).join(" "),
|
|
2565
|
-
"aria-current": e.isActive ? "page" : void 0,
|
|
2566
|
-
children: e.label
|
|
2567
|
-
})
|
|
2568
|
-
}, e.key))
|
|
2569
|
-
})
|
|
2570
|
-
}),
|
|
2571
|
-
n && /* @__PURE__ */ f("div", {
|
|
2572
|
-
className: V.actions,
|
|
2573
|
-
children: n
|
|
2574
|
-
}),
|
|
2575
|
-
/* @__PURE__ */ f("button", {
|
|
2576
|
-
type: "button",
|
|
2577
|
-
className: V.menuButton,
|
|
2578
|
-
onClick: v,
|
|
2579
|
-
"aria-expanded": g,
|
|
2580
|
-
"aria-controls": _,
|
|
2581
|
-
"aria-label": g ? "Close menu" : "Open menu",
|
|
2582
|
-
children: f(g ? nn : tn, {})
|
|
2583
|
-
})
|
|
2584
|
-
]
|
|
2585
|
-
}), /* @__PURE__ */ f("div", {
|
|
2586
|
-
id: _,
|
|
2587
|
-
className: [V.mobileMenu, g ? V.mobileMenuOpen : ""].filter(Boolean).join(" "),
|
|
2588
|
-
children: /* @__PURE__ */ f("nav", {
|
|
2589
|
-
"aria-label": `${i} — menu`,
|
|
2590
|
-
children: /* @__PURE__ */ f("ul", {
|
|
2591
|
-
className: V.mobileNavList,
|
|
2592
|
-
children: t.map((e) => /* @__PURE__ */ f("li", {
|
|
2593
|
-
className: V.mobileNavItem,
|
|
2594
|
-
children: /* @__PURE__ */ f("a", {
|
|
2595
|
-
href: e.href,
|
|
2596
|
-
onClick: () => {
|
|
2597
|
-
e.onClick?.(), y();
|
|
2598
|
-
},
|
|
2599
|
-
className: [V.mobileNavLink, e.isActive ? V.mobileNavLinkActive : ""].filter(Boolean).join(" "),
|
|
2600
|
-
"aria-current": e.isActive ? "page" : void 0,
|
|
2601
|
-
children: e.label
|
|
2602
|
-
})
|
|
2603
|
-
}, e.key))
|
|
2604
|
-
})
|
|
2605
|
-
})
|
|
2606
|
-
})]
|
|
2607
|
-
});
|
|
2608
|
-
});
|
|
2609
|
-
rn.displayName = "Navbar";
|
|
2610
|
-
var H = {
|
|
2611
|
-
sidebar: "_sidebar_zpuep_3",
|
|
2612
|
-
collapsed: "_collapsed_zpuep_13",
|
|
2613
|
-
panel: "_panel_zpuep_18",
|
|
2614
|
-
backdrop: "_backdrop_zpuep_33",
|
|
2615
|
-
panelTop: "_panelTop_zpuep_42",
|
|
2616
|
-
logoRow: "_logoRow_zpuep_59",
|
|
2617
|
-
logoSlot: "_logoSlot_zpuep_73",
|
|
2618
|
-
headerContent: "_headerContent_zpuep_81",
|
|
2619
|
-
mobileCloseRow: "_mobileCloseRow_zpuep_99",
|
|
2620
|
-
mobileCloseButton: "_mobileCloseButton_zpuep_107",
|
|
2621
|
-
nav: "_nav_zpuep_134",
|
|
2622
|
-
navList: "_navList_zpuep_141",
|
|
2623
|
-
navItem: "_navItem_zpuep_153",
|
|
2624
|
-
navLink: "_navLink_zpuep_157",
|
|
2625
|
-
navLinkActive: "_navLinkActive_zpuep_184",
|
|
2626
|
-
navLinkIcon: "_navLinkIcon_zpuep_189",
|
|
2627
|
-
navLinkLabel: "_navLinkLabel_zpuep_199",
|
|
2628
|
-
collapseButton: "_collapseButton_zpuep_217",
|
|
2629
|
-
footer: "_footer_zpuep_251",
|
|
2630
|
-
mobileOpen: "_mobileOpen_zpuep_285"
|
|
2631
|
-
}, an = "a[href], button:not([disabled]), input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", on = () => /* @__PURE__ */ f("svg", {
|
|
2632
|
-
width: "16",
|
|
2633
|
-
height: "16",
|
|
2634
|
-
viewBox: "0 0 16 16",
|
|
2635
|
-
fill: "none",
|
|
2636
|
-
"aria-hidden": "true",
|
|
2637
|
-
children: /* @__PURE__ */ f("path", {
|
|
2638
|
-
d: "M10 4L6 8L10 12",
|
|
2639
|
-
stroke: "currentColor",
|
|
2640
|
-
strokeWidth: "1.5",
|
|
2641
|
-
strokeLinecap: "round",
|
|
2642
|
-
strokeLinejoin: "round"
|
|
2643
|
-
})
|
|
2644
|
-
}), sn = () => /* @__PURE__ */ f("svg", {
|
|
2645
|
-
width: "16",
|
|
2646
|
-
height: "16",
|
|
2647
|
-
viewBox: "0 0 16 16",
|
|
2648
|
-
fill: "none",
|
|
2649
|
-
"aria-hidden": "true",
|
|
2650
|
-
children: /* @__PURE__ */ f("path", {
|
|
2651
|
-
d: "M6 4L10 8L6 12",
|
|
2652
|
-
stroke: "currentColor",
|
|
2653
|
-
strokeWidth: "1.5",
|
|
2654
|
-
strokeLinecap: "round",
|
|
2655
|
-
strokeLinejoin: "round"
|
|
2656
|
-
})
|
|
2657
|
-
}), cn = () => /* @__PURE__ */ f("svg", {
|
|
2658
|
-
width: "20",
|
|
2659
|
-
height: "20",
|
|
2660
|
-
viewBox: "0 0 20 20",
|
|
2661
|
-
fill: "currentColor",
|
|
2662
|
-
"aria-hidden": "true",
|
|
2663
|
-
children: /* @__PURE__ */ f("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
|
|
2664
|
-
}), ln = r(({ items: e, logo: t, header: n, footer: r, "aria-label": a = "Sidebar navigation", defaultCollapsed: s = !1, isCollapsed: c, onCollapsedChange: d, defaultMobileOpen: h = !1, isMobileOpen: g, onMobileOpenChange: _, className: v }, y) => {
|
|
2665
|
-
let [b, x] = u(s), S = c ?? b, [C, w] = u(h), T = g ?? C, [E] = u(() => typeof document < "u"), D = l(null), O = l(null);
|
|
2666
|
-
o(() => {
|
|
2667
|
-
if (window.matchMedia?.("(max-width: 767px)")?.matches ?? !1) return T ? (O.current = document.activeElement, document.body.style.overflow = "hidden", (D.current?.querySelector(an))?.focus()) : (document.body.style.overflow = "", O.current?.focus(), O.current = null), () => {
|
|
2668
|
-
document.body.style.overflow = "";
|
|
2669
|
-
};
|
|
2670
|
-
}, [T]);
|
|
2671
|
-
let ee = i(() => {
|
|
2672
|
-
let e = !S;
|
|
2673
|
-
c === void 0 && x(e), d?.(e);
|
|
2674
|
-
}, [
|
|
2675
|
-
S,
|
|
2676
|
-
c,
|
|
2677
|
-
d
|
|
2678
|
-
]), k = i(() => {
|
|
2679
|
-
g === void 0 && w(!1), _?.(!1);
|
|
2680
|
-
}, [g, _]), A = i((e) => {
|
|
2681
|
-
e.key === "Escape" && k();
|
|
2682
|
-
}, [k]), j = [
|
|
2683
|
-
H.sidebar,
|
|
2684
|
-
S ? H.collapsed : "",
|
|
2685
|
-
T ? H.mobileOpen : "",
|
|
2686
|
-
v ?? ""
|
|
2687
|
-
].filter(Boolean).join(" ");
|
|
2688
|
-
return /* @__PURE__ */ p("aside", {
|
|
2689
|
-
ref: y,
|
|
2690
|
-
className: j,
|
|
2691
|
-
children: [E && T && m(/* @__PURE__ */ f("div", {
|
|
2692
|
-
className: H.backdrop,
|
|
2693
|
-
onClick: k,
|
|
2694
|
-
"aria-hidden": "true"
|
|
2695
|
-
}), document.body), /* @__PURE__ */ p("div", {
|
|
2696
|
-
ref: D,
|
|
2697
|
-
className: H.panel,
|
|
2698
|
-
onKeyDown: A,
|
|
2699
|
-
tabIndex: -1,
|
|
2700
|
-
children: [
|
|
2701
|
-
(t || n) && /* @__PURE__ */ p("div", {
|
|
2702
|
-
className: H.panelTop,
|
|
2703
|
-
children: [/* @__PURE__ */ p("div", {
|
|
2704
|
-
className: H.logoRow,
|
|
2705
|
-
children: [t && /* @__PURE__ */ f("div", {
|
|
2706
|
-
className: H.logoSlot,
|
|
2707
|
-
children: t
|
|
2708
|
-
}), n && /* @__PURE__ */ f("div", {
|
|
2709
|
-
className: H.headerContent,
|
|
2710
|
-
children: n
|
|
2711
|
-
})]
|
|
2712
|
-
}), /* @__PURE__ */ f("button", {
|
|
2713
|
-
type: "button",
|
|
2714
|
-
className: H.mobileCloseButton,
|
|
2715
|
-
onClick: k,
|
|
2716
|
-
"aria-label": "Close sidebar",
|
|
2717
|
-
children: /* @__PURE__ */ f(cn, {})
|
|
2718
|
-
})]
|
|
2719
|
-
}),
|
|
2720
|
-
!t && !n && /* @__PURE__ */ f("div", {
|
|
2721
|
-
className: H.mobileCloseRow,
|
|
2722
|
-
children: /* @__PURE__ */ f("button", {
|
|
2723
|
-
type: "button",
|
|
2724
|
-
className: H.mobileCloseButton,
|
|
2725
|
-
onClick: k,
|
|
2726
|
-
"aria-label": "Close sidebar",
|
|
2727
|
-
children: /* @__PURE__ */ f(cn, {})
|
|
2728
|
-
})
|
|
2729
|
-
}),
|
|
2730
|
-
/* @__PURE__ */ f("nav", {
|
|
2731
|
-
"aria-label": a,
|
|
2732
|
-
className: H.nav,
|
|
2733
|
-
children: /* @__PURE__ */ f("ul", {
|
|
2734
|
-
className: H.navList,
|
|
2735
|
-
tabIndex: 0,
|
|
2736
|
-
children: e.map((e) => /* @__PURE__ */ f("li", {
|
|
2737
|
-
className: H.navItem,
|
|
2738
|
-
children: /* @__PURE__ */ p("a", {
|
|
2739
|
-
href: e.href,
|
|
2740
|
-
onClick: e.onClick,
|
|
2741
|
-
className: [H.navLink, e.isActive ? H.navLinkActive : ""].filter(Boolean).join(" "),
|
|
2742
|
-
"aria-current": e.isActive ? "page" : void 0,
|
|
2743
|
-
"aria-label": e.icon && S ? e.label : void 0,
|
|
2744
|
-
title: e.icon && S ? e.label : void 0,
|
|
2745
|
-
children: [e.icon && /* @__PURE__ */ f("span", {
|
|
2746
|
-
className: H.navLinkIcon,
|
|
2747
|
-
"aria-hidden": "true",
|
|
2748
|
-
children: e.icon
|
|
2749
|
-
}), /* @__PURE__ */ f("span", {
|
|
2750
|
-
className: H.navLinkLabel,
|
|
2751
|
-
children: e.label
|
|
2752
|
-
})]
|
|
2753
|
-
})
|
|
2754
|
-
}, e.key))
|
|
2755
|
-
})
|
|
2756
|
-
}),
|
|
2757
|
-
r && /* @__PURE__ */ f("div", {
|
|
2758
|
-
className: H.footer,
|
|
2759
|
-
children: r
|
|
2760
|
-
}),
|
|
2761
|
-
/* @__PURE__ */ f("button", {
|
|
2762
|
-
type: "button",
|
|
2763
|
-
className: H.collapseButton,
|
|
2764
|
-
onClick: ee,
|
|
2765
|
-
"aria-label": S ? "Expand sidebar" : "Collapse sidebar",
|
|
2766
|
-
"aria-expanded": !S,
|
|
2767
|
-
children: f(S ? sn : on, {})
|
|
2768
|
-
})
|
|
2769
|
-
]
|
|
2770
|
-
})]
|
|
2771
|
-
});
|
|
2772
|
-
});
|
|
2773
|
-
ln.displayName = "Sidebar";
|
|
2774
|
-
var U = {
|
|
2775
|
-
srOnly: "_srOnly_1ug4t_1",
|
|
2776
|
-
wrapper: "_wrapper_1ug4t_13",
|
|
2777
|
-
table: "_table_1ug4t_21",
|
|
2778
|
-
caption: "_caption_1ug4t_28",
|
|
2779
|
-
thead: "_thead_1ug4t_43",
|
|
2780
|
-
th: "_th_1ug4t_43",
|
|
2781
|
-
thSortable: "_thSortable_1ug4t_55",
|
|
2782
|
-
thActive: "_thActive_1ug4t_59",
|
|
2783
|
-
sortButton: "_sortButton_1ug4t_63",
|
|
2784
|
-
sortIcon: "_sortIcon_1ug4t_89",
|
|
2785
|
-
tbody: "_tbody_1ug4t_98",
|
|
2786
|
-
tr: "_tr_1ug4t_102",
|
|
2787
|
-
td: "_td_1ug4t_115",
|
|
2788
|
-
emptyState: "_emptyState_1ug4t_123",
|
|
2789
|
-
alignLeft: "_alignLeft_1ug4t_132",
|
|
2790
|
-
alignCenter: "_alignCenter_1ug4t_136",
|
|
2791
|
-
alignRight: "_alignRight_1ug4t_140"
|
|
2792
|
-
}, un = {
|
|
2793
|
-
left: U.alignLeft,
|
|
2794
|
-
center: U.alignCenter,
|
|
2795
|
-
right: U.alignRight
|
|
2796
|
-
}, dn = () => /* @__PURE__ */ f("svg", {
|
|
2797
|
-
width: "12",
|
|
2798
|
-
height: "12",
|
|
2799
|
-
viewBox: "0 0 12 12",
|
|
2800
|
-
fill: "currentColor",
|
|
2801
|
-
"aria-hidden": "true",
|
|
2802
|
-
children: /* @__PURE__ */ f("path", { d: "M6 2L10 8H2L6 2Z" })
|
|
2803
|
-
}), fn = () => /* @__PURE__ */ f("svg", {
|
|
2804
|
-
width: "12",
|
|
2805
|
-
height: "12",
|
|
2806
|
-
viewBox: "0 0 12 12",
|
|
2807
|
-
fill: "currentColor",
|
|
2808
|
-
"aria-hidden": "true",
|
|
2809
|
-
children: /* @__PURE__ */ f("path", { d: "M6 10L2 4H10L6 10Z" })
|
|
2810
|
-
}), pn = () => /* @__PURE__ */ p("svg", {
|
|
2811
|
-
width: "12",
|
|
2812
|
-
height: "14",
|
|
2813
|
-
viewBox: "0 0 12 14",
|
|
2814
|
-
fill: "currentColor",
|
|
2815
|
-
"aria-hidden": "true",
|
|
2816
|
-
children: [/* @__PURE__ */ f("path", {
|
|
2817
|
-
d: "M6 1L10 5H2L6 1Z",
|
|
2818
|
-
opacity: "0.4"
|
|
2819
|
-
}), /* @__PURE__ */ f("path", {
|
|
2820
|
-
d: "M6 13L2 9H10L6 13Z",
|
|
2821
|
-
opacity: "0.4"
|
|
2822
|
-
})]
|
|
2823
|
-
}), mn = r(function({ caption: e, columns: t, data: n, defaultSortKey: r, defaultSortDirection: i = "asc", sortKey: a, sortDirection: o, onSort: c, rowKey: l, emptyMessage: d = "No data available.", className: m }, h) {
|
|
2824
|
-
let g = s(), [_, v] = u(""), [y, b] = u(r), [x, S] = u(i), C = a ?? y, w = o ?? x, T = (e) => {
|
|
2825
|
-
let n = C === e && w === "asc" ? "desc" : "asc";
|
|
2826
|
-
a === void 0 && (b(e), S(n)), c?.(e, n);
|
|
2827
|
-
let r = t.find((t) => t.key === e);
|
|
2828
|
-
r && v(`Table sorted by ${r.header}, ${n === "asc" ? "ascending" : "descending"}.`);
|
|
2829
|
-
}, E = a !== void 0 || !C ? n : [...n].sort((e, t) => {
|
|
2830
|
-
let n = e[C], r = t[C], i = typeof n == "number" && typeof r == "number" ? n - r : String(n ?? "").localeCompare(String(r ?? ""));
|
|
2831
|
-
return w === "asc" ? i : -i;
|
|
2832
|
-
}), D = (e) => {
|
|
2833
|
-
if (e.sortable) return C === e.key ? w === "asc" ? "ascending" : "descending" : "none";
|
|
2834
|
-
};
|
|
2835
|
-
return /* @__PURE__ */ p("div", {
|
|
2836
|
-
ref: h,
|
|
2837
|
-
className: [U.wrapper, m ?? ""].filter(Boolean).join(" "),
|
|
2838
|
-
role: "region",
|
|
2839
|
-
"aria-label": e,
|
|
2840
|
-
children: [/* @__PURE__ */ f("div", {
|
|
2841
|
-
id: g,
|
|
2842
|
-
role: "status",
|
|
2843
|
-
"aria-live": "polite",
|
|
2844
|
-
"aria-atomic": "true",
|
|
2845
|
-
className: U.srOnly,
|
|
2846
|
-
children: _
|
|
2847
|
-
}), /* @__PURE__ */ p("table", {
|
|
2848
|
-
className: U.table,
|
|
2849
|
-
children: [
|
|
2850
|
-
/* @__PURE__ */ f("caption", {
|
|
2851
|
-
className: U.caption,
|
|
2852
|
-
children: e
|
|
2853
|
-
}),
|
|
2854
|
-
/* @__PURE__ */ f("thead", {
|
|
2855
|
-
className: U.thead,
|
|
2856
|
-
children: /* @__PURE__ */ f("tr", { children: t.map((e) => /* @__PURE__ */ f("th", {
|
|
2857
|
-
scope: "col",
|
|
2858
|
-
className: [
|
|
2859
|
-
U.th,
|
|
2860
|
-
e.sortable ? U.thSortable : "",
|
|
2861
|
-
C === e.key ? U.thActive : "",
|
|
2862
|
-
un[e.align ?? "left"]
|
|
2863
|
-
].filter(Boolean).join(" "),
|
|
2864
|
-
"aria-sort": D(e),
|
|
2865
|
-
children: e.sortable ? /* @__PURE__ */ p("button", {
|
|
2866
|
-
type: "button",
|
|
2867
|
-
className: U.sortButton,
|
|
2868
|
-
onClick: () => T(e.key),
|
|
2869
|
-
children: [e.header, /* @__PURE__ */ f("span", {
|
|
2870
|
-
className: U.sortIcon,
|
|
2871
|
-
children: C === e.key ? f(w === "asc" ? dn : fn, {}) : /* @__PURE__ */ f(pn, {})
|
|
2872
|
-
})]
|
|
2873
|
-
}) : e.header
|
|
2874
|
-
}, e.key)) })
|
|
2875
|
-
}),
|
|
2876
|
-
/* @__PURE__ */ f("tbody", {
|
|
2877
|
-
className: U.tbody,
|
|
2878
|
-
children: E.length === 0 ? /* @__PURE__ */ f("tr", { children: /* @__PURE__ */ f("td", {
|
|
2879
|
-
className: [U.td, U.emptyState].join(" "),
|
|
2880
|
-
colSpan: t.length,
|
|
2881
|
-
children: d
|
|
2882
|
-
}) }) : E.map((e, n) => /* @__PURE__ */ f("tr", {
|
|
2883
|
-
className: U.tr,
|
|
2884
|
-
children: t.map((t) => /* @__PURE__ */ f("td", {
|
|
2885
|
-
className: [U.td, un[t.align ?? "left"]].filter(Boolean).join(" "),
|
|
2886
|
-
children: t.render ? t.render(e[t.key], e) : String(e[t.key] ?? "")
|
|
2887
|
-
}, t.key))
|
|
2888
|
-
}, l ? String(e[l]) : n))
|
|
2889
|
-
})
|
|
2890
|
-
]
|
|
2891
|
-
})]
|
|
2892
|
-
});
|
|
2893
|
-
});
|
|
2894
|
-
mn.displayName = "DataTable";
|
|
2895
|
-
var W = {
|
|
2896
|
-
wrapper: "_wrapper_1ke2z_1",
|
|
2897
|
-
svg: "_svg_1ke2z_6",
|
|
2898
|
-
bar: "_bar_1ke2z_12",
|
|
2899
|
-
axisLabel: "_axisLabel_1ke2z_20",
|
|
2900
|
-
legend: "_legend_1ke2z_26",
|
|
2901
|
-
legendItem: "_legendItem_1ke2z_37",
|
|
2902
|
-
legendSwatch: "_legendSwatch_1ke2z_46",
|
|
2903
|
-
empty: "_empty_1ke2z_53"
|
|
2904
|
-
}, hn = 480, gn = 280, G = {
|
|
2905
|
-
top: 20,
|
|
2906
|
-
right: 20,
|
|
2907
|
-
bottom: 56,
|
|
2908
|
-
left: 48
|
|
2909
|
-
}, _n = hn - G.left - G.right, vn = gn - G.top - G.bottom, yn = 4, bn = 2;
|
|
2910
|
-
function xn(e) {
|
|
2911
|
-
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Math.round(e));
|
|
2912
|
-
}
|
|
2913
|
-
function Sn(e, t) {
|
|
2914
|
-
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
2915
|
-
}
|
|
2916
|
-
var Cn = r(({ title: e, series: t, className: n }, r) => {
|
|
2917
|
-
let i = s();
|
|
2918
|
-
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
2919
|
-
className: [W.empty, n ?? ""].filter(Boolean).join(" "),
|
|
2920
|
-
children: [e, " — no data"]
|
|
2921
|
-
});
|
|
2922
|
-
let a = t[0].data.map((e) => e.label), o = a.length, c = t.length, l = Math.max(...t.flatMap((e) => e.data.map((e) => e.value)), 0), u = _n / o, d = Math.min(Math.max((u * .8 - bn * (c - 1)) / c, 4), c === 1 ? 60 : 40);
|
|
2923
|
-
return /* @__PURE__ */ p("div", {
|
|
2924
|
-
ref: r,
|
|
2925
|
-
className: [W.wrapper, n ?? ""].filter(Boolean).join(" "),
|
|
2926
|
-
children: [/* @__PURE__ */ p("svg", {
|
|
2927
|
-
role: "img",
|
|
2928
|
-
"aria-labelledby": i,
|
|
2929
|
-
viewBox: `0 0 ${hn} ${gn}`,
|
|
2930
|
-
className: W.svg,
|
|
2931
|
-
children: [
|
|
2932
|
-
/* @__PURE__ */ f("title", {
|
|
2933
|
-
id: i,
|
|
2934
|
-
children: e
|
|
2935
|
-
}),
|
|
2936
|
-
Array.from({ length: 5 }, (e, t) => {
|
|
2937
|
-
let n = t / yn, r = G.top + vn - n * vn, i = l * n;
|
|
2938
|
-
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
2939
|
-
x1: G.left,
|
|
2940
|
-
y1: r,
|
|
2941
|
-
x2: hn - G.right,
|
|
2942
|
-
y2: r,
|
|
2943
|
-
stroke: "var(--ds-chart-grid)",
|
|
2944
|
-
strokeWidth: "1"
|
|
2945
|
-
}), /* @__PURE__ */ f("text", {
|
|
2946
|
-
x: G.left - 6,
|
|
2947
|
-
y: r,
|
|
2948
|
-
textAnchor: "end",
|
|
2949
|
-
dominantBaseline: "middle",
|
|
2950
|
-
className: W.axisLabel,
|
|
2951
|
-
children: xn(i)
|
|
2952
|
-
})] }, t);
|
|
2953
|
-
}),
|
|
2954
|
-
a.map((e, n) => {
|
|
2955
|
-
let r = d * c + bn * (c - 1), i = G.left + n * u, a = i + (u - r) / 2, o = i + u / 2;
|
|
2956
|
-
return /* @__PURE__ */ p("g", { children: [t.map((t, r) => {
|
|
2957
|
-
let i = t.data[n];
|
|
2958
|
-
if (!i) return null;
|
|
2959
|
-
let o = l > 0 ? i.value / l * vn : 0, s = a + r * (d + bn), c = G.top + vn - o, u = Sn(t, r);
|
|
2960
|
-
return /* @__PURE__ */ f("rect", {
|
|
2961
|
-
x: s,
|
|
2962
|
-
y: c,
|
|
2963
|
-
width: d,
|
|
2964
|
-
height: o,
|
|
2965
|
-
fill: u,
|
|
2966
|
-
rx: "3",
|
|
2967
|
-
className: W.bar,
|
|
2968
|
-
children: /* @__PURE__ */ f("title", { children: `${t.label} — ${e}: ${xn(i.value)}` })
|
|
2969
|
-
}, t.id);
|
|
2970
|
-
}), /* @__PURE__ */ f("text", {
|
|
2971
|
-
x: o,
|
|
2972
|
-
y: gn - G.bottom + 16,
|
|
2973
|
-
textAnchor: "middle",
|
|
2974
|
-
className: W.axisLabel,
|
|
2975
|
-
children: e
|
|
2976
|
-
})] }, e);
|
|
2977
|
-
}),
|
|
2978
|
-
/* @__PURE__ */ f("line", {
|
|
2979
|
-
x1: G.left,
|
|
2980
|
-
y1: G.top + vn,
|
|
2981
|
-
x2: hn - G.right,
|
|
2982
|
-
y2: G.top + vn,
|
|
2983
|
-
stroke: "var(--ds-chart-axis)",
|
|
2984
|
-
strokeWidth: "1"
|
|
2985
|
-
})
|
|
2986
|
-
]
|
|
2987
|
-
}), c > 1 && /* @__PURE__ */ f("ul", {
|
|
2988
|
-
className: W.legend,
|
|
2989
|
-
"aria-label": "Chart legend",
|
|
2990
|
-
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
2991
|
-
className: W.legendItem,
|
|
2992
|
-
children: [/* @__PURE__ */ f("span", {
|
|
2993
|
-
className: W.legendSwatch,
|
|
2994
|
-
style: { background: Sn(e, t) },
|
|
2995
|
-
"aria-hidden": "true"
|
|
2996
|
-
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
2997
|
-
}, e.id))
|
|
2998
|
-
})]
|
|
2999
|
-
});
|
|
3000
|
-
});
|
|
3001
|
-
Cn.displayName = "BarChart";
|
|
3002
|
-
var K = {
|
|
3003
|
-
root: "_root_18xxx_1",
|
|
3004
|
-
svg: "_svg_18xxx_8",
|
|
3005
|
-
centerLabel: "_centerLabel_18xxx_15",
|
|
3006
|
-
centerSubLabel: "_centerSubLabel_18xxx_22",
|
|
3007
|
-
legend: "_legend_18xxx_28",
|
|
3008
|
-
legendItem: "_legendItem_18xxx_39",
|
|
3009
|
-
legendSwatch: "_legendSwatch_18xxx_46",
|
|
3010
|
-
legendLabel: "_legendLabel_18xxx_53",
|
|
3011
|
-
legendValue: "_legendValue_18xxx_61",
|
|
3012
|
-
empty: "_empty_18xxx_67"
|
|
3013
|
-
}, wn = [
|
|
3014
|
-
"var(--ds-chart-1)",
|
|
3015
|
-
"var(--ds-chart-2)",
|
|
3016
|
-
"var(--ds-chart-3)",
|
|
3017
|
-
"var(--ds-chart-4)",
|
|
3018
|
-
"var(--ds-chart-5)",
|
|
3019
|
-
"var(--ds-chart-6)"
|
|
3020
|
-
], Tn = 100, En = 100, Dn = 72, On = 28, kn = 2 * Math.PI * Dn, An = r(({ title: e, segments: t, centerLabel: n, centerSubLabel: r, className: i }, a) => {
|
|
3021
|
-
let o = s(), c = t.reduce((e, t) => e + t.value, 0);
|
|
3022
|
-
if (t.length === 0 || c === 0) return /* @__PURE__ */ p("div", {
|
|
3023
|
-
className: [K.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3024
|
-
children: [e, " — no data"]
|
|
3025
|
-
});
|
|
3026
|
-
let l = 0;
|
|
3027
|
-
return /* @__PURE__ */ p("div", {
|
|
3028
|
-
className: [K.root, i ?? ""].filter(Boolean).join(" "),
|
|
3029
|
-
children: [/* @__PURE__ */ p("svg", {
|
|
3030
|
-
ref: a,
|
|
3031
|
-
role: "img",
|
|
3032
|
-
"aria-labelledby": o,
|
|
3033
|
-
viewBox: "0 0 200 200",
|
|
3034
|
-
className: K.svg,
|
|
3035
|
-
children: [
|
|
3036
|
-
/* @__PURE__ */ f("title", {
|
|
3037
|
-
id: o,
|
|
3038
|
-
children: e
|
|
3039
|
-
}),
|
|
3040
|
-
/* @__PURE__ */ f("circle", {
|
|
3041
|
-
cx: Tn,
|
|
3042
|
-
cy: En,
|
|
3043
|
-
r: Dn,
|
|
3044
|
-
fill: "none",
|
|
3045
|
-
stroke: "var(--ds-chart-grid)",
|
|
3046
|
-
strokeWidth: On
|
|
3047
|
-
}),
|
|
3048
|
-
t.map((e, t) => {
|
|
3049
|
-
let n = e.value / c * kn, r = -l;
|
|
3050
|
-
return l += n, /* @__PURE__ */ f("circle", {
|
|
3051
|
-
cx: Tn,
|
|
3052
|
-
cy: En,
|
|
3053
|
-
r: Dn,
|
|
3054
|
-
fill: "none",
|
|
3055
|
-
stroke: e.color ?? wn[t % wn.length],
|
|
3056
|
-
strokeWidth: On,
|
|
3057
|
-
strokeDasharray: `${n} ${kn - n}`,
|
|
3058
|
-
strokeDashoffset: r,
|
|
3059
|
-
transform: `rotate(-90 ${Tn} ${En})`,
|
|
3060
|
-
children: /* @__PURE__ */ f("title", { children: `${e.label}: ${e.value} (${Math.round(e.value / c * 100)}%)` })
|
|
3061
|
-
}, e.label);
|
|
3062
|
-
}),
|
|
3063
|
-
n && /* @__PURE__ */ f("text", {
|
|
3064
|
-
x: Tn,
|
|
3065
|
-
y: En - (r ? 8 : 0),
|
|
3066
|
-
textAnchor: "middle",
|
|
3067
|
-
dominantBaseline: "middle",
|
|
3068
|
-
className: K.centerLabel,
|
|
3069
|
-
children: n
|
|
3070
|
-
}),
|
|
3071
|
-
r && /* @__PURE__ */ f("text", {
|
|
3072
|
-
x: Tn,
|
|
3073
|
-
y: 116,
|
|
3074
|
-
textAnchor: "middle",
|
|
3075
|
-
dominantBaseline: "middle",
|
|
3076
|
-
className: K.centerSubLabel,
|
|
3077
|
-
children: r
|
|
3078
|
-
})
|
|
3079
|
-
]
|
|
3080
|
-
}), /* @__PURE__ */ f("ul", {
|
|
3081
|
-
className: K.legend,
|
|
3082
|
-
"aria-label": `${e} legend`,
|
|
3083
|
-
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3084
|
-
className: K.legendItem,
|
|
3085
|
-
children: [
|
|
3086
|
-
/* @__PURE__ */ f("span", {
|
|
3087
|
-
className: K.legendSwatch,
|
|
3088
|
-
style: { background: e.color ?? wn[t % wn.length] },
|
|
3089
|
-
"aria-hidden": "true"
|
|
3090
|
-
}),
|
|
3091
|
-
/* @__PURE__ */ f("span", {
|
|
3092
|
-
className: K.legendLabel,
|
|
3093
|
-
children: e.label
|
|
3094
|
-
}),
|
|
3095
|
-
/* @__PURE__ */ p("span", {
|
|
3096
|
-
className: K.legendValue,
|
|
3097
|
-
children: [Math.round(e.value / c * 100), "%"]
|
|
3098
|
-
})
|
|
3099
|
-
]
|
|
3100
|
-
}, e.label))
|
|
3101
|
-
})]
|
|
3102
|
-
});
|
|
3103
|
-
});
|
|
3104
|
-
An.displayName = "DonutChart";
|
|
3105
|
-
var q = {
|
|
3106
|
-
wrapper: "_wrapper_h55fh_1",
|
|
3107
|
-
svg: "_svg_h55fh_6",
|
|
3108
|
-
axisLabel: "_axisLabel_h55fh_12",
|
|
3109
|
-
legend: "_legend_h55fh_18",
|
|
3110
|
-
legendItem: "_legendItem_h55fh_29",
|
|
3111
|
-
legendSwatch: "_legendSwatch_h55fh_38",
|
|
3112
|
-
empty: "_empty_h55fh_45"
|
|
3113
|
-
}, jn = 480, Mn = 280, J = {
|
|
3114
|
-
top: 20,
|
|
3115
|
-
right: 20,
|
|
3116
|
-
bottom: 56,
|
|
3117
|
-
left: 48
|
|
3118
|
-
}, Nn = jn - J.left - J.right, Pn = Mn - J.top - J.bottom, Fn = 4;
|
|
3119
|
-
function In(e) {
|
|
3120
|
-
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Math.round(e));
|
|
3121
|
-
}
|
|
3122
|
-
function Ln(e, t) {
|
|
3123
|
-
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
3124
|
-
}
|
|
3125
|
-
var Rn = r(({ title: e, series: t, showArea: n = !1, className: r }, i) => {
|
|
3126
|
-
let a = s();
|
|
3127
|
-
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
3128
|
-
className: [q.empty, r ?? ""].filter(Boolean).join(" "),
|
|
3129
|
-
children: [e, " — no data"]
|
|
3130
|
-
});
|
|
3131
|
-
let o = t.flatMap((e) => e.data.map((e) => e.value)), c = Math.max(...o, 0), l = t[0].data.map((e) => e.label), u = l.length, d = (e) => u === 1 ? J.left + Nn / 2 : J.left + e / (u - 1) * Nn, m = (e) => J.top + Pn - (c > 0 ? e / c * Pn : 0);
|
|
3132
|
-
return /* @__PURE__ */ p("div", {
|
|
3133
|
-
ref: i,
|
|
3134
|
-
className: [q.wrapper, r ?? ""].filter(Boolean).join(" "),
|
|
3135
|
-
children: [/* @__PURE__ */ p("svg", {
|
|
3136
|
-
role: "img",
|
|
3137
|
-
"aria-labelledby": a,
|
|
3138
|
-
viewBox: `0 0 ${jn} ${Mn}`,
|
|
3139
|
-
className: q.svg,
|
|
3140
|
-
children: [
|
|
3141
|
-
/* @__PURE__ */ f("title", {
|
|
3142
|
-
id: a,
|
|
3143
|
-
children: e
|
|
3144
|
-
}),
|
|
3145
|
-
Array.from({ length: 5 }, (e, t) => {
|
|
3146
|
-
let n = t / Fn, r = J.top + Pn - n * Pn, i = c * n;
|
|
3147
|
-
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3148
|
-
x1: J.left,
|
|
3149
|
-
y1: r,
|
|
3150
|
-
x2: jn - J.right,
|
|
3151
|
-
y2: r,
|
|
3152
|
-
stroke: "var(--ds-chart-grid)",
|
|
3153
|
-
strokeWidth: "1"
|
|
3154
|
-
}), /* @__PURE__ */ f("text", {
|
|
3155
|
-
x: J.left - 6,
|
|
3156
|
-
y: r,
|
|
3157
|
-
textAnchor: "end",
|
|
3158
|
-
dominantBaseline: "middle",
|
|
3159
|
-
className: q.axisLabel,
|
|
3160
|
-
children: In(i)
|
|
3161
|
-
})] }, t);
|
|
3162
|
-
}),
|
|
3163
|
-
t.map((e, t) => {
|
|
3164
|
-
let r = Ln(e, t), i = e.showArea ?? n, a = e.data.map((e, t) => `${d(t)},${m(e.value)}`).join(" "), o = `${d(0)},${J.top + Pn} ` + a + ` ${d(e.data.length - 1)},${J.top + Pn}`;
|
|
3165
|
-
return /* @__PURE__ */ p("g", { children: [
|
|
3166
|
-
i && /* @__PURE__ */ f("polygon", {
|
|
3167
|
-
points: o,
|
|
3168
|
-
fill: r,
|
|
3169
|
-
fillOpacity: "0.12"
|
|
3170
|
-
}),
|
|
3171
|
-
/* @__PURE__ */ f("polyline", {
|
|
3172
|
-
points: a,
|
|
3173
|
-
fill: "none",
|
|
3174
|
-
stroke: r,
|
|
3175
|
-
strokeWidth: "2",
|
|
3176
|
-
strokeLinejoin: "round",
|
|
3177
|
-
strokeLinecap: "round"
|
|
3178
|
-
}),
|
|
3179
|
-
e.data.map((t, n) => /* @__PURE__ */ f("circle", {
|
|
3180
|
-
cx: d(n),
|
|
3181
|
-
cy: m(t.value),
|
|
3182
|
-
r: "4",
|
|
3183
|
-
fill: r,
|
|
3184
|
-
children: /* @__PURE__ */ f("title", { children: `${e.label} — ${t.label}: ${t.value}` })
|
|
3185
|
-
}, t.label))
|
|
3186
|
-
] }, e.id);
|
|
3187
|
-
}),
|
|
3188
|
-
l.map((e, t) => /* @__PURE__ */ f("text", {
|
|
3189
|
-
x: d(t),
|
|
3190
|
-
y: Mn - J.bottom + 16,
|
|
3191
|
-
textAnchor: "middle",
|
|
3192
|
-
className: q.axisLabel,
|
|
3193
|
-
children: e
|
|
3194
|
-
}, e)),
|
|
3195
|
-
/* @__PURE__ */ f("line", {
|
|
3196
|
-
x1: J.left,
|
|
3197
|
-
y1: J.top + Pn,
|
|
3198
|
-
x2: jn - J.right,
|
|
3199
|
-
y2: J.top + Pn,
|
|
3200
|
-
stroke: "var(--ds-chart-axis)",
|
|
3201
|
-
strokeWidth: "1"
|
|
3202
|
-
})
|
|
3203
|
-
]
|
|
3204
|
-
}), t.length > 1 && /* @__PURE__ */ f("ul", {
|
|
3205
|
-
className: q.legend,
|
|
3206
|
-
"aria-label": "Chart legend",
|
|
3207
|
-
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3208
|
-
className: q.legendItem,
|
|
3209
|
-
children: [/* @__PURE__ */ f("span", {
|
|
3210
|
-
className: q.legendSwatch,
|
|
3211
|
-
style: { background: Ln(e, t) },
|
|
3212
|
-
"aria-hidden": "true"
|
|
3213
|
-
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
3214
|
-
}, e.id))
|
|
3215
|
-
})]
|
|
3216
|
-
});
|
|
3217
|
-
});
|
|
3218
|
-
Rn.displayName = "LineChart";
|
|
3219
|
-
var Y = {
|
|
3220
|
-
wrapper: "_wrapper_kmbah_1",
|
|
3221
|
-
svg: "_svg_kmbah_6",
|
|
3222
|
-
point: "_point_kmbah_12",
|
|
3223
|
-
axisLabel: "_axisLabel_kmbah_21",
|
|
3224
|
-
axisTitle: "_axisTitle_kmbah_27",
|
|
3225
|
-
legend: "_legend_kmbah_34",
|
|
3226
|
-
legendItem: "_legendItem_kmbah_45",
|
|
3227
|
-
legendSwatch: "_legendSwatch_kmbah_54",
|
|
3228
|
-
empty: "_empty_kmbah_61"
|
|
3229
|
-
}, zn = 480, Bn = 320, X = {
|
|
3230
|
-
top: 20,
|
|
3231
|
-
right: 20,
|
|
3232
|
-
bottom: 64,
|
|
3233
|
-
left: 56
|
|
3234
|
-
}, Vn = zn - X.left - X.right, Z = Bn - X.top - X.bottom, Hn = 4, Un = .1;
|
|
3235
|
-
function Wn(e) {
|
|
3236
|
-
return Math.abs(e) >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Number.isInteger(e) ? e : e.toFixed(1));
|
|
3237
|
-
}
|
|
3238
|
-
function Gn(e, t) {
|
|
3239
|
-
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
3240
|
-
}
|
|
3241
|
-
var Kn = r(({ title: e, series: t, xLabel: n, yLabel: r, className: i }, a) => {
|
|
3242
|
-
let o = s();
|
|
3243
|
-
if (t.length === 0 || t.every((e) => e.data.length === 0)) return /* @__PURE__ */ p("div", {
|
|
3244
|
-
className: [Y.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3245
|
-
children: [e, " — no data"]
|
|
3246
|
-
});
|
|
3247
|
-
let c = t.flatMap((e) => e.data.map((e) => e.x)), l = t.flatMap((e) => e.data.map((e) => e.y)), u = Math.min(...c), d = Math.max(...c), m = Math.min(...l), h = Math.max(...l), g = d - u || 1, _ = h - m || 1, v = u - g * Un, y = d + g * Un, b = m - _ * Un, x = h + _ * Un, S = (e) => X.left + (e - v) / (y - v) * Vn, C = (e) => X.top + Z - (e - b) / (x - b) * Z;
|
|
3248
|
-
return /* @__PURE__ */ p("div", {
|
|
3249
|
-
ref: a,
|
|
3250
|
-
className: [Y.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
3251
|
-
children: [/* @__PURE__ */ p("svg", {
|
|
3252
|
-
role: "img",
|
|
3253
|
-
"aria-labelledby": o,
|
|
3254
|
-
viewBox: `0 0 ${zn} ${Bn}`,
|
|
3255
|
-
className: Y.svg,
|
|
3256
|
-
children: [
|
|
3257
|
-
/* @__PURE__ */ f("title", {
|
|
3258
|
-
id: o,
|
|
3259
|
-
children: e
|
|
3260
|
-
}),
|
|
3261
|
-
Array.from({ length: 5 }, (e, t) => {
|
|
3262
|
-
let n = t / Hn, r = X.top + Z - n * Z, i = b + (x - b) * n;
|
|
3263
|
-
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3264
|
-
x1: X.left,
|
|
3265
|
-
y1: r,
|
|
3266
|
-
x2: zn - X.right,
|
|
3267
|
-
y2: r,
|
|
3268
|
-
stroke: "var(--ds-chart-grid)",
|
|
3269
|
-
strokeWidth: "1"
|
|
3270
|
-
}), /* @__PURE__ */ f("text", {
|
|
3271
|
-
x: X.left - 6,
|
|
3272
|
-
y: r,
|
|
3273
|
-
textAnchor: "end",
|
|
3274
|
-
dominantBaseline: "middle",
|
|
3275
|
-
className: Y.axisLabel,
|
|
3276
|
-
children: Wn(i)
|
|
3277
|
-
})] }, `gy-${t}`);
|
|
3278
|
-
}),
|
|
3279
|
-
Array.from({ length: 5 }, (e, t) => {
|
|
3280
|
-
let n = t / Hn, r = X.left + n * Vn, i = v + (y - v) * n;
|
|
3281
|
-
return /* @__PURE__ */ p("g", { children: [/* @__PURE__ */ f("line", {
|
|
3282
|
-
x1: r,
|
|
3283
|
-
y1: X.top,
|
|
3284
|
-
x2: r,
|
|
3285
|
-
y2: X.top + Z,
|
|
3286
|
-
stroke: "var(--ds-chart-grid)",
|
|
3287
|
-
strokeWidth: "1"
|
|
3288
|
-
}), /* @__PURE__ */ f("text", {
|
|
3289
|
-
x: r,
|
|
3290
|
-
y: X.top + Z + 16,
|
|
3291
|
-
textAnchor: "middle",
|
|
3292
|
-
className: Y.axisLabel,
|
|
3293
|
-
children: Wn(i)
|
|
3294
|
-
})] }, `gx-${t}`);
|
|
3295
|
-
}),
|
|
3296
|
-
t.map((e, t) => {
|
|
3297
|
-
let n = Gn(e, t);
|
|
3298
|
-
return /* @__PURE__ */ f("g", { children: e.data.map((t, r) => /* @__PURE__ */ f("circle", {
|
|
3299
|
-
cx: S(t.x),
|
|
3300
|
-
cy: C(t.y),
|
|
3301
|
-
r: "5",
|
|
3302
|
-
fill: n,
|
|
3303
|
-
fillOpacity: "0.7",
|
|
3304
|
-
stroke: n,
|
|
3305
|
-
strokeWidth: "1",
|
|
3306
|
-
className: Y.point,
|
|
3307
|
-
children: /* @__PURE__ */ f("title", { children: t.label ? `${e.label} — ${t.label}: (${t.x}, ${t.y})` : `${e.label}: (${t.x}, ${t.y})` })
|
|
3308
|
-
}, r)) }, e.id);
|
|
3309
|
-
}),
|
|
3310
|
-
/* @__PURE__ */ f("line", {
|
|
3311
|
-
x1: X.left,
|
|
3312
|
-
y1: X.top + Z,
|
|
3313
|
-
x2: zn - X.right,
|
|
3314
|
-
y2: X.top + Z,
|
|
3315
|
-
stroke: "var(--ds-chart-axis)",
|
|
3316
|
-
strokeWidth: "1"
|
|
3317
|
-
}),
|
|
3318
|
-
/* @__PURE__ */ f("line", {
|
|
3319
|
-
x1: X.left,
|
|
3320
|
-
y1: X.top,
|
|
3321
|
-
x2: X.left,
|
|
3322
|
-
y2: X.top + Z,
|
|
3323
|
-
stroke: "var(--ds-chart-axis)",
|
|
3324
|
-
strokeWidth: "1"
|
|
3325
|
-
}),
|
|
3326
|
-
n && /* @__PURE__ */ f("text", {
|
|
3327
|
-
x: X.left + Vn / 2,
|
|
3328
|
-
y: 312,
|
|
3329
|
-
textAnchor: "middle",
|
|
3330
|
-
className: Y.axisTitle,
|
|
3331
|
-
children: n
|
|
3332
|
-
}),
|
|
3333
|
-
r && /* @__PURE__ */ f("text", {
|
|
3334
|
-
x: 12,
|
|
3335
|
-
y: X.top + Z / 2,
|
|
3336
|
-
textAnchor: "middle",
|
|
3337
|
-
transform: `rotate(-90 12 ${X.top + Z / 2})`,
|
|
3338
|
-
className: Y.axisTitle,
|
|
3339
|
-
children: r
|
|
3340
|
-
})
|
|
3341
|
-
]
|
|
3342
|
-
}), t.length > 1 && /* @__PURE__ */ f("ul", {
|
|
3343
|
-
className: Y.legend,
|
|
3344
|
-
"aria-label": "Chart legend",
|
|
3345
|
-
children: t.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3346
|
-
className: Y.legendItem,
|
|
3347
|
-
children: [/* @__PURE__ */ f("span", {
|
|
3348
|
-
className: Y.legendSwatch,
|
|
3349
|
-
style: { background: Gn(e, t) },
|
|
3350
|
-
"aria-hidden": "true"
|
|
3351
|
-
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
3352
|
-
}, e.id))
|
|
3353
|
-
})]
|
|
3354
|
-
});
|
|
3355
|
-
});
|
|
3356
|
-
Kn.displayName = "ScatterPlot";
|
|
3357
|
-
var Q = {
|
|
3358
|
-
wrapper: "_wrapper_1k1rg_1",
|
|
3359
|
-
svg: "_svg_1k1rg_6",
|
|
3360
|
-
ring: "_ring_1k1rg_12",
|
|
3361
|
-
axisLine: "_axisLine_1k1rg_18",
|
|
3362
|
-
axisLabel: "_axisLabel_1k1rg_23",
|
|
3363
|
-
seriesPolygon: "_seriesPolygon_1k1rg_29",
|
|
3364
|
-
legend: "_legend_1k1rg_37",
|
|
3365
|
-
legendItem: "_legendItem_1k1rg_48",
|
|
3366
|
-
legendSwatch: "_legendSwatch_1k1rg_57",
|
|
3367
|
-
empty: "_empty_1k1rg_64"
|
|
3368
|
-
}, qn = 320, Jn = 320, Yn = qn / 2, Xn = Jn / 2, Zn = 110, Qn = 4;
|
|
3369
|
-
function $n(e, t) {
|
|
3370
|
-
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
3371
|
-
}
|
|
3372
|
-
function er(e, t) {
|
|
3373
|
-
return -Math.PI / 2 + 2 * Math.PI * e / t;
|
|
3374
|
-
}
|
|
3375
|
-
function tr(e, t) {
|
|
3376
|
-
return [Yn + e * Math.cos(t), Xn + e * Math.sin(t)];
|
|
3377
|
-
}
|
|
3378
|
-
function nr(e, t, n) {
|
|
3379
|
-
return e.map((e, r) => {
|
|
3380
|
-
let [i, a] = tr(t > 0 ? e / t * Zn : 0, er(r, n));
|
|
3381
|
-
return `${i},${a}`;
|
|
3382
|
-
}).join(" ");
|
|
3383
|
-
}
|
|
3384
|
-
var rr = r(({ title: e, axes: t, series: n, maxValue: r, className: i }, a) => {
|
|
3385
|
-
let o = s();
|
|
3386
|
-
if (t.length === 0 || n.length === 0) return /* @__PURE__ */ p("div", {
|
|
3387
|
-
className: [Q.empty, i ?? ""].filter(Boolean).join(" "),
|
|
3388
|
-
children: [e, " — no data"]
|
|
3389
|
-
});
|
|
3390
|
-
let c = t.length, l = Math.max(...n.flatMap((e) => e.values), 0), u = r ?? l;
|
|
3391
|
-
return /* @__PURE__ */ p("div", {
|
|
3392
|
-
ref: a,
|
|
3393
|
-
className: [Q.wrapper, i ?? ""].filter(Boolean).join(" "),
|
|
3394
|
-
children: [/* @__PURE__ */ p("svg", {
|
|
3395
|
-
role: "img",
|
|
3396
|
-
"aria-labelledby": o,
|
|
3397
|
-
viewBox: `0 0 ${qn} ${Jn}`,
|
|
3398
|
-
className: Q.svg,
|
|
3399
|
-
children: [
|
|
3400
|
-
/* @__PURE__ */ f("title", {
|
|
3401
|
-
id: o,
|
|
3402
|
-
children: e
|
|
3403
|
-
}),
|
|
3404
|
-
Array.from({ length: Qn }, (e, t) => {
|
|
3405
|
-
let n = (t + 1) / Qn * Zn, r = Array.from({ length: c }, (e, t) => {
|
|
3406
|
-
let [r, i] = tr(n, er(t, c));
|
|
3407
|
-
return `${r},${i}`;
|
|
3408
|
-
}).join(" ");
|
|
3409
|
-
return /* @__PURE__ */ f("polygon", {
|
|
3410
|
-
points: r,
|
|
3411
|
-
className: Q.ring
|
|
3412
|
-
}, t);
|
|
3413
|
-
}),
|
|
3414
|
-
t.map((e, t) => {
|
|
3415
|
-
let [n, r] = tr(Zn, er(t, c));
|
|
3416
|
-
return /* @__PURE__ */ f("line", {
|
|
3417
|
-
x1: Yn,
|
|
3418
|
-
y1: Xn,
|
|
3419
|
-
x2: n,
|
|
3420
|
-
y2: r,
|
|
3421
|
-
className: Q.axisLine
|
|
3422
|
-
}, e);
|
|
3423
|
-
}),
|
|
3424
|
-
n.map((e, t) => {
|
|
3425
|
-
let n = $n(e, t), r = nr(e.values, u, c);
|
|
3426
|
-
return /* @__PURE__ */ f("polygon", {
|
|
3427
|
-
points: r,
|
|
3428
|
-
fill: n,
|
|
3429
|
-
fillOpacity: "0.15",
|
|
3430
|
-
stroke: n,
|
|
3431
|
-
strokeWidth: "2",
|
|
3432
|
-
strokeLinejoin: "round",
|
|
3433
|
-
className: Q.seriesPolygon
|
|
3434
|
-
}, `${e.id}-fill`);
|
|
3435
|
-
}),
|
|
3436
|
-
t.map((e, t) => {
|
|
3437
|
-
let n = er(t, c), [r, i] = tr(130, n), a = "middle";
|
|
3438
|
-
return Math.cos(n) > .1 ? a = "start" : Math.cos(n) < -.1 && (a = "end"), /* @__PURE__ */ f("text", {
|
|
3439
|
-
x: r,
|
|
3440
|
-
y: i,
|
|
3441
|
-
textAnchor: a,
|
|
3442
|
-
dominantBaseline: "middle",
|
|
3443
|
-
className: Q.axisLabel,
|
|
3444
|
-
children: e
|
|
3445
|
-
}, e);
|
|
3446
|
-
})
|
|
3447
|
-
]
|
|
3448
|
-
}), /* @__PURE__ */ f("ul", {
|
|
3449
|
-
className: Q.legend,
|
|
3450
|
-
"aria-label": "Chart legend",
|
|
3451
|
-
children: n.map((e, t) => /* @__PURE__ */ p("li", {
|
|
3452
|
-
className: Q.legendItem,
|
|
3453
|
-
children: [/* @__PURE__ */ f("span", {
|
|
3454
|
-
className: Q.legendSwatch,
|
|
3455
|
-
style: { background: $n(e, t) },
|
|
3456
|
-
"aria-hidden": "true"
|
|
3457
|
-
}), /* @__PURE__ */ f("span", { children: e.label })]
|
|
3458
|
-
}, e.id))
|
|
3459
|
-
})]
|
|
3460
|
-
});
|
|
3461
|
-
});
|
|
3462
|
-
rr.displayName = "RadarChart";
|
|
3463
|
-
var ir = {
|
|
3464
|
-
section: "_section_c3tl4_1",
|
|
3465
|
-
surface: "_surface_c3tl4_9",
|
|
3466
|
-
flat: "_flat_c3tl4_15",
|
|
3467
|
-
paddingNone: "_paddingNone_c3tl4_21",
|
|
3468
|
-
paddingSm: "_paddingSm_c3tl4_22",
|
|
3469
|
-
paddingMd: "_paddingMd_c3tl4_23",
|
|
3470
|
-
paddingLg: "_paddingLg_c3tl4_24"
|
|
3471
|
-
}, ar = {
|
|
3472
|
-
0: "0",
|
|
3473
|
-
1: "var(--ds-space-1)",
|
|
3474
|
-
2: "var(--ds-space-2)",
|
|
3475
|
-
3: "var(--ds-space-3)",
|
|
3476
|
-
4: "var(--ds-space-4)",
|
|
3477
|
-
5: "var(--ds-space-5)",
|
|
3478
|
-
6: "var(--ds-space-6)",
|
|
3479
|
-
8: "var(--ds-space-8)",
|
|
3480
|
-
10: "var(--ds-space-10)",
|
|
3481
|
-
12: "var(--ds-space-12)",
|
|
3482
|
-
16: "var(--ds-space-16)"
|
|
3483
|
-
}, or = {
|
|
3484
|
-
none: ir.paddingNone,
|
|
3485
|
-
sm: ir.paddingSm,
|
|
3486
|
-
md: ir.paddingMd,
|
|
3487
|
-
lg: ir.paddingLg
|
|
3488
|
-
}, sr = r(({ variant: e = "surface", padding: t = "md", gap: n = 4, className: r, style: i, ...a }, o) => {
|
|
3489
|
-
let s = [
|
|
3490
|
-
ir.section,
|
|
3491
|
-
ir[e],
|
|
3492
|
-
or[t],
|
|
3493
|
-
r ?? ""
|
|
3494
|
-
].filter(Boolean).join(" ");
|
|
3495
|
-
return /* @__PURE__ */ f("div", {
|
|
3496
|
-
ref: o,
|
|
3497
|
-
className: s,
|
|
3498
|
-
style: {
|
|
3499
|
-
gap: ar[n],
|
|
3500
|
-
...i
|
|
3501
|
-
},
|
|
3502
|
-
...a
|
|
3503
|
-
});
|
|
3504
|
-
});
|
|
3505
|
-
sr.displayName = "Section";
|
|
3506
|
-
var cr = {
|
|
3507
|
-
pageLayout: "_pageLayout_1d3bu_1",
|
|
3508
|
-
padding: "_padding_1d3bu_8",
|
|
3509
|
-
sm: "_sm_1d3bu_15",
|
|
3510
|
-
md: "_md_1d3bu_16",
|
|
3511
|
-
lg: "_lg_1d3bu_17",
|
|
3512
|
-
xl: "_xl_1d3bu_18",
|
|
3513
|
-
full: "_full_1d3bu_19"
|
|
3514
|
-
}, lr = {
|
|
3515
|
-
0: "0",
|
|
3516
|
-
1: "var(--ds-space-1)",
|
|
3517
|
-
2: "var(--ds-space-2)",
|
|
3518
|
-
3: "var(--ds-space-3)",
|
|
3519
|
-
4: "var(--ds-space-4)",
|
|
3520
|
-
5: "var(--ds-space-5)",
|
|
3521
|
-
6: "var(--ds-space-6)",
|
|
3522
|
-
8: "var(--ds-space-8)",
|
|
3523
|
-
10: "var(--ds-space-10)",
|
|
3524
|
-
12: "var(--ds-space-12)",
|
|
3525
|
-
16: "var(--ds-space-16)"
|
|
3526
|
-
}, ur = {
|
|
3527
|
-
sm: cr.sm,
|
|
3528
|
-
md: cr.md,
|
|
3529
|
-
lg: cr.lg,
|
|
3530
|
-
xl: cr.xl,
|
|
3531
|
-
full: cr.full
|
|
3532
|
-
}, dr = r(({ maxWidth: e = "xl", padding: t = !0, gap: n = 6, className: r, style: i, ...a }, o) => {
|
|
3533
|
-
let s = [
|
|
3534
|
-
cr.pageLayout,
|
|
3535
|
-
ur[e],
|
|
3536
|
-
t ? cr.padding : "",
|
|
3537
|
-
r ?? ""
|
|
3538
|
-
].filter(Boolean).join(" ");
|
|
3539
|
-
return /* @__PURE__ */ f("div", {
|
|
3540
|
-
ref: o,
|
|
3541
|
-
className: s,
|
|
3542
|
-
style: {
|
|
3543
|
-
gap: lr[n],
|
|
3544
|
-
...i
|
|
3545
|
-
},
|
|
3546
|
-
...a
|
|
3547
|
-
});
|
|
3548
|
-
});
|
|
3549
|
-
dr.displayName = "PageLayout";
|
|
3550
|
-
var fr = {
|
|
3551
|
-
shell: "_shell_5ehfr_1",
|
|
3552
|
-
sidebarOnly: "_sidebarOnly_5ehfr_9",
|
|
3553
|
-
mainArea: "_mainArea_5ehfr_13",
|
|
3554
|
-
navbarOnly: "_navbarOnly_5ehfr_19",
|
|
3555
|
-
navbarSlot: "_navbarSlot_5ehfr_23",
|
|
3556
|
-
both: "_both_5ehfr_33",
|
|
3557
|
-
sidebarSlot: "_sidebarSlot_5ehfr_38"
|
|
3558
|
-
}, pr = {
|
|
3559
|
-
"sidebar-only": fr.sidebarOnly,
|
|
3560
|
-
"navbar-only": fr.navbarOnly,
|
|
3561
|
-
both: fr.both
|
|
3562
|
-
}, mr = r(({ variant: e, sidebar: t, navbar: n, children: r, className: i, ...a }, o) => {
|
|
3563
|
-
let s = e ?? (t && n ? "both" : t ? "sidebar-only" : "navbar-only"), c = [
|
|
3564
|
-
fr.shell,
|
|
3565
|
-
pr[s],
|
|
3566
|
-
i ?? ""
|
|
3567
|
-
].filter(Boolean).join(" ");
|
|
3568
|
-
return /* @__PURE__ */ p("div", {
|
|
3569
|
-
ref: o,
|
|
3570
|
-
className: c,
|
|
3571
|
-
...a,
|
|
3572
|
-
children: [
|
|
3573
|
-
t && /* @__PURE__ */ f("div", {
|
|
3574
|
-
className: fr.sidebarSlot,
|
|
3575
|
-
children: t
|
|
3576
|
-
}),
|
|
3577
|
-
n && /* @__PURE__ */ f("div", {
|
|
3578
|
-
className: fr.navbarSlot,
|
|
3579
|
-
children: n
|
|
3580
|
-
}),
|
|
3581
|
-
/* @__PURE__ */ f("main", {
|
|
3582
|
-
className: fr.mainArea,
|
|
3583
|
-
children: r
|
|
3584
|
-
})
|
|
3585
|
-
]
|
|
3586
|
-
});
|
|
3587
|
-
});
|
|
3588
|
-
mr.displayName = "AppShell";
|
|
3589
|
-
var $ = {
|
|
3590
|
-
layout: "_layout_14fpw_1",
|
|
3591
|
-
brandPanel: "_brandPanel_14fpw_9",
|
|
3592
|
-
brandContent: "_brandContent_14fpw_15",
|
|
3593
|
-
brandLogo: "_brandLogo_14fpw_23",
|
|
3594
|
-
brandTagline: "_brandTagline_14fpw_27",
|
|
3595
|
-
formPanel: "_formPanel_14fpw_38",
|
|
3596
|
-
formContent: "_formContent_14fpw_46",
|
|
3597
|
-
mobileLogo: "_mobileLogo_14fpw_53"
|
|
3598
|
-
}, hr = () => /* @__PURE__ */ p("svg", {
|
|
3599
|
-
width: "36",
|
|
3600
|
-
height: "36",
|
|
3601
|
-
viewBox: "0 0 36 36",
|
|
3602
|
-
fill: "none",
|
|
3603
|
-
"aria-hidden": "true",
|
|
3604
|
-
children: [/* @__PURE__ */ f("rect", {
|
|
3605
|
-
width: "36",
|
|
3606
|
-
height: "36",
|
|
3607
|
-
rx: "8",
|
|
3608
|
-
fill: "var(--ds-color-action-primary)"
|
|
3609
|
-
}), /* @__PURE__ */ f("path", {
|
|
3610
|
-
d: "M10 12h16M10 18h11M10 24h8",
|
|
3611
|
-
stroke: "white",
|
|
3612
|
-
strokeWidth: "2.5",
|
|
3613
|
-
strokeLinecap: "round"
|
|
3614
|
-
})]
|
|
3615
|
-
});
|
|
3616
|
-
function gr({ children: e, branding: t, logo: n, brandingLabel: r = "Product branding" }) {
|
|
3617
|
-
let i = n ?? /* @__PURE__ */ f(hr, {});
|
|
3618
|
-
return /* @__PURE__ */ p("div", {
|
|
3619
|
-
className: $.layout,
|
|
3620
|
-
children: [/* @__PURE__ */ f("aside", {
|
|
3621
|
-
className: $.brandPanel,
|
|
3622
|
-
"aria-label": r,
|
|
3623
|
-
"aria-hidden": "true",
|
|
3624
|
-
children: /* @__PURE__ */ f("div", {
|
|
3625
|
-
className: $.brandContent,
|
|
3626
|
-
children: t ?? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("div", {
|
|
3627
|
-
className: $.brandLogo,
|
|
3628
|
-
children: i
|
|
3629
|
-
}), /* @__PURE__ */ p("p", {
|
|
3630
|
-
className: $.brandTagline,
|
|
3631
|
-
children: [
|
|
3632
|
-
"Build better products,",
|
|
3633
|
-
/* @__PURE__ */ f("br", {}),
|
|
3634
|
-
"together."
|
|
3635
|
-
]
|
|
3636
|
-
})] })
|
|
3637
|
-
})
|
|
3638
|
-
}), /* @__PURE__ */ f("main", {
|
|
3639
|
-
className: $.formPanel,
|
|
3640
|
-
children: /* @__PURE__ */ p("div", {
|
|
3641
|
-
className: $.formContent,
|
|
3642
|
-
children: [/* @__PURE__ */ f("div", {
|
|
3643
|
-
className: $.mobileLogo,
|
|
3644
|
-
"aria-hidden": "true",
|
|
3645
|
-
children: i
|
|
3646
|
-
}), e]
|
|
3647
|
-
})
|
|
3648
|
-
})]
|
|
3649
|
-
});
|
|
3650
|
-
}
|
|
3651
|
-
gr.displayName = "AuthLayout";
|
|
3652
|
-
//#endregion
|
|
3653
|
-
export { he as Alert, mr as AppShell, gr as AuthLayout, je as Avatar, _e as Badge, Yt as Banner, Cn as BarChart, en as Breadcrumb, y as Button, Gt as Card, Qt as Carousel, C as Checkbox, at as CheckboxField, Rt as Container, mn as DataTable, wt as DateField, Oe as DateInput, Te as Divider, An as DonutChart, gt as EmailField, ie as EmailInput, F as ErrorMessage, It as Grid, le as Heading, P as Hint, N as Label, Rn as LineChart, Ke as Modal, Ue as ModalBody, We as ModalFooter, rn as Navbar, St as NumberField, De as NumberInput, dr as PageLayout, mt as PasswordField, re as PasswordInput, vt as PhoneField, ae as PhoneInput, Ce as ProgressBar, rr as RadarChart, T as RadioButton, ct as RadioGroup, Kn as ScatterPlot, bt as SearchField, oe as SearchInput, sr as Section, D as Select, st as SelectField, ln as Sidebar, be as Skeleton, g as Spinner, Nt as Stack, Le as Tab, Ie as TabList, Re as TabPanel, Fe as Tabs, de as Text, ee as TextArea, ut as TextAreaField, rt as TextField, x as TextInput, Ot as ThemeProvider, Ze as ToastProvider, A as Toggle, ft as ToggleField, Ve as Tooltip, kt as useTheme, Qe as useToast };
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { Spinner as e } from "./primitives/Spinner/Spinner.js";
|
|
3
|
+
import { Button as t } from "./primitives/Button/Button.js";
|
|
4
|
+
import { TextInput as n } from "./primitives/TextInput/TextInput.js";
|
|
5
|
+
import { Checkbox as r } from "./primitives/Checkbox/Checkbox.js";
|
|
6
|
+
import { RadioButton as i } from "./primitives/RadioButton/RadioButton.js";
|
|
7
|
+
import { Select as a } from "./primitives/Select/Select.js";
|
|
8
|
+
import { TextArea as o } from "./primitives/TextArea/TextArea.js";
|
|
9
|
+
import { Toggle as s } from "./primitives/Toggle/Toggle.js";
|
|
10
|
+
import { PasswordInput as c } from "./primitives/PasswordInput/PasswordInput.js";
|
|
11
|
+
import { EmailInput as l } from "./primitives/EmailInput/EmailInput.js";
|
|
12
|
+
import { PhoneInput as u } from "./primitives/PhoneInput/PhoneInput.js";
|
|
13
|
+
import { SearchInput as d } from "./primitives/SearchInput/SearchInput.js";
|
|
14
|
+
import { Heading as f } from "./primitives/Heading/Heading.js";
|
|
15
|
+
import { Text as p } from "./primitives/Text/Text.js";
|
|
16
|
+
import { Alert as m } from "./primitives/Alert/Alert.js";
|
|
17
|
+
import { Badge as h } from "./primitives/Badge/Badge.js";
|
|
18
|
+
import { Skeleton as g } from "./primitives/Skeleton/Skeleton.js";
|
|
19
|
+
import { ProgressBar as _ } from "./primitives/ProgressBar/ProgressBar.js";
|
|
20
|
+
import { Divider as v } from "./primitives/Divider/Divider.js";
|
|
21
|
+
import { NumberInput as y } from "./primitives/NumberInput/NumberInput.js";
|
|
22
|
+
import { DateInput as b } from "./primitives/DateInput/DateInput.js";
|
|
23
|
+
import { Avatar as x } from "./primitives/Avatar/Avatar.js";
|
|
24
|
+
import { Tab as S, TabList as C, TabPanel as w, Tabs as T } from "./primitives/Tabs/Tabs.js";
|
|
25
|
+
import { Tooltip as E } from "./primitives/Tooltip/Tooltip.js";
|
|
26
|
+
import { Modal as D, ModalBody as O, ModalFooter as k } from "./primitives/Modal/Modal.js";
|
|
27
|
+
import { ToastProvider as A, useToast as j } from "./primitives/Toast/Toast.js";
|
|
28
|
+
import { Label as M } from "./primitives/Label/Label.js";
|
|
29
|
+
import { Hint as N } from "./primitives/Hint/Hint.js";
|
|
30
|
+
import { ErrorMessage as P } from "./primitives/ErrorMessage/ErrorMessage.js";
|
|
31
|
+
import { TextField as F } from "./components/TextField/TextField.js";
|
|
32
|
+
import { CheckboxField as I } from "./components/CheckboxField/CheckboxField.js";
|
|
33
|
+
import { SelectField as L } from "./components/SelectField/SelectField.js";
|
|
34
|
+
import { RadioGroup as R } from "./components/RadioGroup/RadioGroup.js";
|
|
35
|
+
import { TextAreaField as z } from "./components/TextAreaField/TextAreaField.js";
|
|
36
|
+
import { ToggleField as B } from "./components/ToggleField/ToggleField.js";
|
|
37
|
+
import { PasswordField as V } from "./components/PasswordField/PasswordField.js";
|
|
38
|
+
import { EmailField as H } from "./components/EmailField/EmailField.js";
|
|
39
|
+
import { PhoneField as U } from "./components/PhoneField/PhoneField.js";
|
|
40
|
+
import { SearchField as W } from "./components/SearchField/SearchField.js";
|
|
41
|
+
import { NumberField as G } from "./components/NumberField/NumberField.js";
|
|
42
|
+
import { DateField as K } from "./components/DateField/DateField.js";
|
|
43
|
+
import { ThemeProvider as q } from "./components/ThemeProvider/ThemeProvider.js";
|
|
44
|
+
import { useTheme as J } from "./components/ThemeProvider/useTheme.js";
|
|
45
|
+
import { Stack as Y } from "./components/Stack/Stack.js";
|
|
46
|
+
import { Grid as X } from "./components/Grid/Grid.js";
|
|
47
|
+
import { Container as Z } from "./components/Container/Container.js";
|
|
48
|
+
import { Card as Q } from "./components/Card/Card.js";
|
|
49
|
+
import { Banner as $ } from "./components/Banner/Banner.js";
|
|
50
|
+
import { Carousel as ee } from "./components/Carousel/Carousel.js";
|
|
51
|
+
import { Breadcrumb as te } from "./components/Breadcrumb/Breadcrumb.js";
|
|
52
|
+
import { Navbar as ne } from "./components/Navbar/Navbar.js";
|
|
53
|
+
import { Sidebar as re } from "./components/Sidebar/Sidebar.js";
|
|
54
|
+
import { DataTable as ie } from "./components/DataTable/DataTable.js";
|
|
55
|
+
import { BarChart as ae } from "./components/BarChart/BarChart.js";
|
|
56
|
+
import { DonutChart as oe } from "./components/DonutChart/DonutChart.js";
|
|
57
|
+
import { LineChart as se } from "./components/LineChart/LineChart.js";
|
|
58
|
+
import { ScatterPlot as ce } from "./components/ScatterPlot/ScatterPlot.js";
|
|
59
|
+
import { RadarChart as le } from "./components/RadarChart/RadarChart.js";
|
|
60
|
+
import { Section as ue } from "./components/Section/Section.js";
|
|
61
|
+
import { PageLayout as de } from "./components/PageLayout/PageLayout.js";
|
|
62
|
+
import { AppShell as fe } from "./components/AppShell/AppShell.js";
|
|
63
|
+
import { AuthLayout as pe } from "./patterns/AuthLayout/AuthLayout.js";
|
|
64
|
+
export { m as Alert, fe as AppShell, pe as AuthLayout, x as Avatar, h as Badge, $ as Banner, ae as BarChart, te as Breadcrumb, t as Button, Q as Card, ee as Carousel, r as Checkbox, I as CheckboxField, Z as Container, ie as DataTable, K as DateField, b as DateInput, v as Divider, oe as DonutChart, H as EmailField, l as EmailInput, P as ErrorMessage, X as Grid, f as Heading, N as Hint, M as Label, se as LineChart, D as Modal, O as ModalBody, k as ModalFooter, ne as Navbar, G as NumberField, y as NumberInput, de as PageLayout, V as PasswordField, c as PasswordInput, U as PhoneField, u as PhoneInput, _ as ProgressBar, le as RadarChart, i as RadioButton, R as RadioGroup, ce as ScatterPlot, W as SearchField, d as SearchInput, ue as Section, a as Select, L as SelectField, re as Sidebar, g as Skeleton, e as Spinner, Y as Stack, S as Tab, C as TabList, w as TabPanel, T as Tabs, p as Text, o as TextArea, z as TextAreaField, F as TextField, n as TextInput, q as ThemeProvider, A as ToastProvider, s as Toggle, B as ToggleField, E as Tooltip, J as useTheme, j as useToast };
|