@trinityui/design-system 2.4.0 → 2.10.2
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/CHANGELOG.md +34 -455
- package/dist/{Legend.js → IllustratedMessage.js} +1247 -1204
- package/dist/app-shell.js +32 -32
- package/dist/assets/index.d.ts +1 -1
- package/dist/charts.js +3267 -3144
- package/dist/components/AI/QueryInput.d.ts +3 -3
- package/dist/components/AIDigestCard/AIDigestCard.d.ts +29 -0
- package/dist/components/AIDigestCard/AIDigestCard.d.ts.map +1 -0
- package/dist/components/AIDigestCard/index.d.ts +9 -0
- package/dist/components/AIDigestCard/index.d.ts.map +1 -0
- package/dist/components/AIDigestCard/types.d.ts +70 -0
- package/dist/components/AIDigestCard/types.d.ts.map +1 -0
- package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +1 -1
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts +23 -0
- package/dist/components/AssessmentDrawer/AssessmentDrawer.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/index.d.ts +9 -0
- package/dist/components/AssessmentDrawer/index.d.ts.map +1 -0
- package/dist/components/AssessmentDrawer/types.d.ts +88 -0
- package/dist/components/AssessmentDrawer/types.d.ts.map +1 -0
- package/dist/components/AuditDrawer/AuditDrawer.d.ts +37 -0
- package/dist/components/AuditDrawer/AuditDrawer.d.ts.map +1 -0
- package/dist/components/AuditDrawer/index.d.ts +9 -0
- package/dist/components/AuditDrawer/index.d.ts.map +1 -0
- package/dist/components/AuditDrawer/types.d.ts +116 -0
- package/dist/components/AuditDrawer/types.d.ts.map +1 -0
- package/dist/components/BulkActionDock/BulkActionDock.d.ts +30 -0
- package/dist/components/BulkActionDock/BulkActionDock.d.ts.map +1 -0
- package/dist/components/BulkActionDock/index.d.ts +9 -0
- package/dist/components/BulkActionDock/index.d.ts.map +1 -0
- package/dist/components/BulkActionDock/types.d.ts +71 -0
- package/dist/components/BulkActionDock/types.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +20 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DateRangePicker/index.d.ts +9 -0
- package/dist/components/DateRangePicker/index.d.ts.map +1 -0
- package/dist/components/DateRangePicker/types.d.ts +72 -0
- package/dist/components/DateRangePicker/types.d.ts.map +1 -0
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts +17 -0
- package/dist/components/EntityDetailPanel/EntityDetailPanel.d.ts.map +1 -0
- package/dist/components/EntityDetailPanel/index.d.ts +9 -0
- package/dist/components/EntityDetailPanel/index.d.ts.map +1 -0
- package/dist/components/EntityDetailPanel/types.d.ts +108 -0
- package/dist/components/EntityDetailPanel/types.d.ts.map +1 -0
- package/dist/components/GanttView/GanttView.d.ts +25 -0
- package/dist/components/GanttView/GanttView.d.ts.map +1 -0
- package/dist/components/GanttView/index.d.ts +9 -0
- package/dist/components/GanttView/index.d.ts.map +1 -0
- package/dist/components/GanttView/types.d.ts +110 -0
- package/dist/components/GanttView/types.d.ts.map +1 -0
- package/dist/components/GaugeCard/GaugeCard.d.ts +34 -0
- package/dist/components/GaugeCard/GaugeCard.d.ts.map +1 -0
- package/dist/components/GaugeCard/index.d.ts +9 -0
- package/dist/components/GaugeCard/index.d.ts.map +1 -0
- package/dist/components/GaugeCard/types.d.ts +85 -0
- package/dist/components/GaugeCard/types.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts +17 -0
- package/dist/components/GeoStatusMap/GeoStatusMap.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/index.d.ts +9 -0
- package/dist/components/GeoStatusMap/index.d.ts.map +1 -0
- package/dist/components/GeoStatusMap/types.d.ts +117 -0
- package/dist/components/GeoStatusMap/types.d.ts.map +1 -0
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts +22 -0
- package/dist/components/HierarchicalDrillDown/HierarchicalDrillDown.d.ts.map +1 -0
- package/dist/components/HierarchicalDrillDown/index.d.ts +9 -0
- package/dist/components/HierarchicalDrillDown/index.d.ts.map +1 -0
- package/dist/components/HierarchicalDrillDown/types.d.ts +81 -0
- package/dist/components/HierarchicalDrillDown/types.d.ts.map +1 -0
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts +21 -0
- package/dist/components/HistoricalDataIndicator/HistoricalDataIndicator.d.ts.map +1 -0
- package/dist/components/HistoricalDataIndicator/index.d.ts +9 -0
- package/dist/components/HistoricalDataIndicator/index.d.ts.map +1 -0
- package/dist/components/HistoricalDataIndicator/types.d.ts +58 -0
- package/dist/components/HistoricalDataIndicator/types.d.ts.map +1 -0
- package/dist/components/InsightCard/InsightCard.d.ts +27 -0
- package/dist/components/InsightCard/InsightCard.d.ts.map +1 -0
- package/dist/components/InsightCard/index.d.ts +9 -0
- package/dist/components/InsightCard/index.d.ts.map +1 -0
- package/dist/components/InsightCard/types.d.ts +62 -0
- package/dist/components/InsightCard/types.d.ts.map +1 -0
- package/dist/components/NotificationCenter/NotificationCenter.d.ts +31 -0
- package/dist/components/NotificationCenter/NotificationCenter.d.ts.map +1 -0
- package/dist/components/NotificationCenter/index.d.ts +9 -0
- package/dist/components/NotificationCenter/index.d.ts.map +1 -0
- package/dist/components/NotificationCenter/types.d.ts +91 -0
- package/dist/components/NotificationCenter/types.d.ts.map +1 -0
- package/dist/components/OrgChart/OrgChart.d.ts +23 -0
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -0
- package/dist/components/OrgChart/index.d.ts +9 -0
- package/dist/components/OrgChart/index.d.ts.map +1 -0
- package/dist/components/OrgChart/types.d.ts +81 -0
- package/dist/components/OrgChart/types.d.ts.map +1 -0
- package/dist/components/PageTOC/PageTOC.d.ts +33 -0
- package/dist/components/PageTOC/PageTOC.d.ts.map +1 -0
- package/dist/components/PageTOC/index.d.ts +9 -0
- package/dist/components/PageTOC/index.d.ts.map +1 -0
- package/dist/components/PageTOC/types.d.ts +58 -0
- package/dist/components/PageTOC/types.d.ts.map +1 -0
- package/dist/components/StatusHero/StatusHero.d.ts +31 -0
- package/dist/components/StatusHero/StatusHero.d.ts.map +1 -0
- package/dist/components/StatusHero/index.d.ts +9 -0
- package/dist/components/StatusHero/index.d.ts.map +1 -0
- package/dist/components/StatusHero/types.d.ts +57 -0
- package/dist/components/StatusHero/types.d.ts.map +1 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts +28 -0
- package/dist/components/SystemBanner/SystemBanner.d.ts.map +1 -0
- package/dist/components/SystemBanner/index.d.ts +9 -0
- package/dist/components/SystemBanner/index.d.ts.map +1 -0
- package/dist/components/SystemBanner/types.d.ts +58 -0
- package/dist/components/SystemBanner/types.d.ts.map +1 -0
- package/dist/components/TopRisksStrip/TopRisksStrip.d.ts +26 -0
- package/dist/components/TopRisksStrip/TopRisksStrip.d.ts.map +1 -0
- package/dist/components/TopRisksStrip/index.d.ts +9 -0
- package/dist/components/TopRisksStrip/index.d.ts.map +1 -0
- package/dist/components/TopRisksStrip/types.d.ts +61 -0
- package/dist/components/TopRisksStrip/types.d.ts.map +1 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts +28 -0
- package/dist/components/templates/Auth/AuthTemplate.d.ts.map +1 -0
- package/dist/components/templates/Auth/index.d.ts +3 -0
- package/dist/components/templates/Auth/index.d.ts.map +1 -0
- package/dist/components/templates/Auth/types.d.ts +67 -0
- package/dist/components/templates/Auth/types.d.ts.map +1 -0
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts +19 -0
- package/dist/components/templates/Catalog/CatalogTemplate.d.ts.map +1 -0
- package/dist/components/templates/Catalog/index.d.ts +3 -0
- package/dist/components/templates/Catalog/index.d.ts.map +1 -0
- package/dist/components/templates/Catalog/types.d.ts +85 -0
- package/dist/components/templates/Catalog/types.d.ts.map +1 -0
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts +83 -0
- package/dist/components/templates/ConnectorWizard/ConnectorWizardTemplate.d.ts.map +1 -0
- package/dist/components/templates/ConnectorWizard/index.d.ts +2 -0
- package/dist/components/templates/ConnectorWizard/index.d.ts.map +1 -0
- package/dist/components/templates/ErrorPage/ErrorPageTemplate.d.ts +53 -0
- package/dist/components/templates/ErrorPage/ErrorPageTemplate.d.ts.map +1 -0
- package/dist/components/templates/ErrorPage/index.d.ts +2 -0
- package/dist/components/templates/ErrorPage/index.d.ts.map +1 -0
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts +64 -0
- package/dist/components/templates/InsightsCenter/InsightsCenterTemplate.d.ts.map +1 -0
- package/dist/components/templates/InsightsCenter/index.d.ts +2 -0
- package/dist/components/templates/InsightsCenter/index.d.ts.map +1 -0
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts +60 -0
- package/dist/components/templates/IntegrationDetail/IntegrationDetailTemplate.d.ts.map +1 -0
- package/dist/components/templates/IntegrationDetail/index.d.ts +2 -0
- package/dist/components/templates/IntegrationDetail/index.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts +63 -0
- package/dist/components/templates/Onboarding/OnboardingTemplate.d.ts.map +1 -0
- package/dist/components/templates/Onboarding/index.d.ts +2 -0
- package/dist/components/templates/Onboarding/index.d.ts.map +1 -0
- package/dist/components/templates/PlanHero/PlanHero.d.ts +20 -0
- package/dist/components/templates/PlanHero/PlanHero.d.ts.map +1 -0
- package/dist/components/templates/PlanHero/index.d.ts +3 -0
- package/dist/components/templates/PlanHero/index.d.ts.map +1 -0
- package/dist/components/templates/PlanHero/types.d.ts +69 -0
- package/dist/components/templates/PlanHero/types.d.ts.map +1 -0
- package/dist/components/templates/Report/ReportTemplate.d.ts +74 -0
- package/dist/components/templates/Report/ReportTemplate.d.ts.map +1 -0
- package/dist/components/templates/Report/index.d.ts +2 -0
- package/dist/components/templates/Report/index.d.ts.map +1 -0
- package/dist/components/templates/Wizard/WizardTemplate.d.ts +81 -0
- package/dist/components/templates/Wizard/WizardTemplate.d.ts.map +1 -0
- package/dist/components/templates/Wizard/index.d.ts +2 -0
- package/dist/components/templates/Wizard/index.d.ts.map +1 -0
- package/dist/components/templates/index.d.ts +10 -0
- package/dist/components/templates/index.d.ts.map +1 -1
- package/dist/data-table2.js +41131 -37299
- package/dist/essentials.js +1 -1
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +49347 -41359
- package/dist/trinity.css +1 -1
- package/package.json +42 -34
|
@@ -1,849 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import Ce from "@mui/icons-material/
|
|
1
|
+
import { jsx as e, jsxs as f, Fragment as re } from "react/jsx-runtime";
|
|
2
|
+
import M, { useState as O, useCallback as I, useRef as oe, createContext as ne, useContext as le } from "react";
|
|
3
|
+
import { Stack as P, Typography as S, Badge as ce, Box as C, Chip as ae, useTheme as se, Dialog as de, DialogTitle as he, IconButton as ge, DialogContent as fe, DialogContentText as ue, DialogActions as pe, Button as E, CircularProgress as xe, Portal as ye, Snackbar as me, Alert as we, AlertTitle as be, Slide as ke, Fade as ve, Grow as Se, Link as U } from "@mui/material";
|
|
4
|
+
import { s as W, I as B, b as d } from "./app-shell.js";
|
|
5
|
+
import Ce from "@mui/icons-material/Close";
|
|
6
|
+
import Le from "@mui/icons-material/CheckCircle";
|
|
6
7
|
import We from "@mui/icons-material/Error";
|
|
7
8
|
import Ie from "@mui/icons-material/Warning";
|
|
8
9
|
import ze from "@mui/icons-material/Info";
|
|
9
10
|
import De from "@mui/icons-material/HelpOutlined";
|
|
10
|
-
|
|
11
|
-
function Me(r) {
|
|
12
|
-
const i = r.palette.trinity;
|
|
13
|
-
return {
|
|
14
|
-
default: {
|
|
15
|
-
icon: null,
|
|
16
|
-
color: i.interactive.default,
|
|
17
|
-
primaryColor: "primary"
|
|
18
|
-
},
|
|
19
|
-
info: {
|
|
20
|
-
icon: /* @__PURE__ */ e(ze, {}),
|
|
21
|
-
color: i.status.info.text,
|
|
22
|
-
primaryColor: "info"
|
|
23
|
-
},
|
|
24
|
-
success: {
|
|
25
|
-
icon: /* @__PURE__ */ e(Ce, {}),
|
|
26
|
-
color: i.status.success.text,
|
|
27
|
-
primaryColor: "success"
|
|
28
|
-
},
|
|
29
|
-
warning: {
|
|
30
|
-
icon: /* @__PURE__ */ e(Ie, {}),
|
|
31
|
-
color: i.status.warning.text,
|
|
32
|
-
primaryColor: "warning"
|
|
33
|
-
},
|
|
34
|
-
danger: {
|
|
35
|
-
icon: /* @__PURE__ */ e(We, {}),
|
|
36
|
-
color: i.status.error.text,
|
|
37
|
-
primaryColor: "error"
|
|
38
|
-
},
|
|
39
|
-
confirm: {
|
|
40
|
-
icon: /* @__PURE__ */ e(De, {}),
|
|
41
|
-
color: i.interactive.default,
|
|
42
|
-
primaryColor: "primary"
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
const Pe = D.forwardRef(function({
|
|
47
|
-
open: i,
|
|
48
|
-
onClose: t,
|
|
49
|
-
title: o,
|
|
50
|
-
children: n,
|
|
51
|
-
variant: l = "default",
|
|
52
|
-
primaryAction: a,
|
|
53
|
-
onPrimaryAction: s,
|
|
54
|
-
secondaryAction: g = "Cancel",
|
|
55
|
-
onSecondaryAction: x,
|
|
56
|
-
loading: p = !1,
|
|
57
|
-
primaryDisabled: v = !1,
|
|
58
|
-
showCloseButton: w = !0,
|
|
59
|
-
disableBackdropClick: h = !1,
|
|
60
|
-
disableEscapeKeyDown: L = !1,
|
|
61
|
-
maxWidth: z = "sm",
|
|
62
|
-
fullWidth: m = !0,
|
|
63
|
-
fullScreenMobile: F = !1,
|
|
64
|
-
footer: Q,
|
|
65
|
-
hideFooter: u = !1,
|
|
66
|
-
sx: y
|
|
67
|
-
}, b) {
|
|
68
|
-
const j = ce(), [$, _] = O(!1), R = Me(j)[l], ee = (Z, G) => {
|
|
69
|
-
G === "backdropClick" && h || G === "escapeKeyDown" && L || t();
|
|
70
|
-
}, ie = async () => {
|
|
71
|
-
if (s) {
|
|
72
|
-
const Z = s();
|
|
73
|
-
if (Z instanceof Promise) {
|
|
74
|
-
_(!0);
|
|
75
|
-
try {
|
|
76
|
-
await Z;
|
|
77
|
-
} finally {
|
|
78
|
-
_(!1);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}, te = () => {
|
|
83
|
-
x?.(), t();
|
|
84
|
-
}, V = p || $, A = D.useId(), N = D.useId();
|
|
85
|
-
return /* @__PURE__ */ f(
|
|
86
|
-
ae,
|
|
87
|
-
{
|
|
88
|
-
ref: b,
|
|
89
|
-
open: i,
|
|
90
|
-
onClose: ee,
|
|
91
|
-
maxWidth: z,
|
|
92
|
-
fullWidth: m,
|
|
93
|
-
fullScreen: F ? void 0 : !1,
|
|
94
|
-
"aria-labelledby": o ? A : void 0,
|
|
95
|
-
"aria-describedby": n ? N : void 0,
|
|
96
|
-
sx: {
|
|
97
|
-
"& .MuiDialog-paper": {
|
|
98
|
-
borderRadius: I.borders.radiusPx.lg,
|
|
99
|
-
// 12px
|
|
100
|
-
...y
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
children: [
|
|
104
|
-
(o || w) && /* @__PURE__ */ f(
|
|
105
|
-
se,
|
|
106
|
-
{
|
|
107
|
-
id: A,
|
|
108
|
-
sx: {
|
|
109
|
-
display: "flex",
|
|
110
|
-
alignItems: "center",
|
|
111
|
-
gap: 1.5,
|
|
112
|
-
pr: w ? 6 : 3
|
|
113
|
-
},
|
|
114
|
-
children: [
|
|
115
|
-
R.icon && /* @__PURE__ */ e(
|
|
116
|
-
C,
|
|
117
|
-
{
|
|
118
|
-
sx: {
|
|
119
|
-
width: I.iconSize.display + 4,
|
|
120
|
-
// 40px - prominent icon with frame
|
|
121
|
-
height: I.iconSize.display + 4,
|
|
122
|
-
borderRadius: `${I.borders.radius.circle}px`,
|
|
123
|
-
// Perfect circle
|
|
124
|
-
bgcolor: "action.selected",
|
|
125
|
-
// Theme-aware 12% overlay
|
|
126
|
-
display: "flex",
|
|
127
|
-
alignItems: "center",
|
|
128
|
-
justifyContent: "center",
|
|
129
|
-
"& .MuiSvgIcon-root": {
|
|
130
|
-
color: R.color,
|
|
131
|
-
fontSize: I.iconSize.prominent
|
|
132
|
-
// 24px
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
children: R.icon
|
|
136
|
-
}
|
|
137
|
-
),
|
|
138
|
-
/* @__PURE__ */ e(S, { variant: "h6", component: "span", sx: { fontWeight: 600 }, children: o }),
|
|
139
|
-
w && /* @__PURE__ */ e(
|
|
140
|
-
de,
|
|
141
|
-
{
|
|
142
|
-
onClick: t,
|
|
143
|
-
disabled: V,
|
|
144
|
-
"aria-label": "Close dialog",
|
|
145
|
-
sx: {
|
|
146
|
-
position: "absolute",
|
|
147
|
-
right: 8,
|
|
148
|
-
top: 8,
|
|
149
|
-
color: "text.secondary"
|
|
150
|
-
},
|
|
151
|
-
children: /* @__PURE__ */ e(Le, {})
|
|
152
|
-
}
|
|
153
|
-
)
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
),
|
|
157
|
-
/* @__PURE__ */ e(he, { id: N, dividers: l === "default", children: typeof n == "string" ? /* @__PURE__ */ e(ge, { children: n }) : n }),
|
|
158
|
-
!u && /* @__PURE__ */ e(fe, { sx: { px: 3, py: 2 }, children: Q || /* @__PURE__ */ f(re, { children: [
|
|
159
|
-
g && /* @__PURE__ */ e(
|
|
160
|
-
T,
|
|
161
|
-
{
|
|
162
|
-
onClick: te,
|
|
163
|
-
disabled: V,
|
|
164
|
-
color: "inherit",
|
|
165
|
-
children: g
|
|
166
|
-
}
|
|
167
|
-
),
|
|
168
|
-
a && /* @__PURE__ */ e(
|
|
169
|
-
T,
|
|
170
|
-
{
|
|
171
|
-
onClick: ie,
|
|
172
|
-
disabled: v || V,
|
|
173
|
-
variant: "contained",
|
|
174
|
-
color: R.primaryColor,
|
|
175
|
-
startIcon: V ? /* @__PURE__ */ e(ue, { size: 16, color: "inherit" }) : void 0,
|
|
176
|
-
children: a
|
|
177
|
-
}
|
|
178
|
-
)
|
|
179
|
-
] }) })
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
}), Si = ({
|
|
184
|
-
open: r,
|
|
185
|
-
onClose: i,
|
|
186
|
-
onConfirm: t,
|
|
187
|
-
title: o = "Confirm Action",
|
|
188
|
-
message: n = "Are you sure you want to proceed?",
|
|
189
|
-
confirmLabel: l = "Confirm",
|
|
190
|
-
cancelLabel: a = "Cancel",
|
|
191
|
-
variant: s = "default",
|
|
192
|
-
loading: g = !1
|
|
193
|
-
}) => /* @__PURE__ */ e(
|
|
194
|
-
Pe,
|
|
195
|
-
{
|
|
196
|
-
open: r,
|
|
197
|
-
onClose: i,
|
|
198
|
-
title: o,
|
|
199
|
-
variant: s === "default" ? "confirm" : s,
|
|
200
|
-
primaryAction: l,
|
|
201
|
-
onPrimaryAction: t,
|
|
202
|
-
secondaryAction: a,
|
|
203
|
-
loading: g,
|
|
204
|
-
maxWidth: "xs",
|
|
205
|
-
children: /* @__PURE__ */ e(S, { color: "text.secondary", children: n })
|
|
206
|
-
}
|
|
207
|
-
), H = {
|
|
208
|
-
isOpen: !1,
|
|
209
|
-
title: "Confirm Action",
|
|
210
|
-
message: "Are you sure you want to proceed?",
|
|
211
|
-
variant: "default",
|
|
212
|
-
confirmLabel: "Confirm",
|
|
213
|
-
onConfirm: () => {
|
|
214
|
-
}
|
|
215
|
-
}, Li = () => {
|
|
216
|
-
const [r, i] = O(H), t = W(
|
|
217
|
-
(n) => {
|
|
218
|
-
i({
|
|
219
|
-
...H,
|
|
220
|
-
...n,
|
|
221
|
-
isOpen: !0
|
|
222
|
-
});
|
|
223
|
-
},
|
|
224
|
-
[]
|
|
225
|
-
), o = W(() => {
|
|
226
|
-
i((n) => ({ ...n, isOpen: !1 }));
|
|
227
|
-
}, []);
|
|
228
|
-
return { confirm: t, close: o, state: r };
|
|
229
|
-
}, J = ne(null), q = (r) => /* @__PURE__ */ e(we, { ...r, direction: "left" }), Be = (r) => /* @__PURE__ */ e(ke, { ...r }), Te = (r) => /* @__PURE__ */ e(be, { ...r }), Ee = (r) => {
|
|
230
|
-
const [i, t] = r.split("-");
|
|
231
|
-
return { vertical: i, horizontal: t };
|
|
232
|
-
}, $e = (r) => {
|
|
233
|
-
switch (r) {
|
|
234
|
-
case "slide":
|
|
235
|
-
return q;
|
|
236
|
-
case "grow":
|
|
237
|
-
return Be;
|
|
238
|
-
case "fade":
|
|
239
|
-
return Te;
|
|
240
|
-
default:
|
|
241
|
-
return q;
|
|
242
|
-
}
|
|
243
|
-
}, Re = D.forwardRef(function({
|
|
244
|
-
id: i,
|
|
245
|
-
message: t,
|
|
246
|
-
title: o,
|
|
247
|
-
severity: n = "info",
|
|
248
|
-
duration: l = 5e3,
|
|
249
|
-
action: a,
|
|
250
|
-
onAction: s,
|
|
251
|
-
position: g = "top-right",
|
|
252
|
-
transition: x = "slide",
|
|
253
|
-
dismissible: p = !0,
|
|
254
|
-
open: v,
|
|
255
|
-
onClose: w
|
|
256
|
-
}, h) {
|
|
257
|
-
const L = Ee(g), z = $e(x);
|
|
258
|
-
return /* @__PURE__ */ e(
|
|
259
|
-
xe,
|
|
260
|
-
{
|
|
261
|
-
ref: h,
|
|
262
|
-
open: v,
|
|
263
|
-
autoHideDuration: l,
|
|
264
|
-
onClose: w,
|
|
265
|
-
anchorOrigin: L,
|
|
266
|
-
slots: { transition: z },
|
|
267
|
-
children: /* @__PURE__ */ f(
|
|
268
|
-
ye,
|
|
269
|
-
{
|
|
270
|
-
severity: n,
|
|
271
|
-
variant: "filled",
|
|
272
|
-
onClose: p ? w : void 0,
|
|
273
|
-
action: a ? /* @__PURE__ */ e(T, { color: "inherit", size: "small", onClick: () => {
|
|
274
|
-
s?.(), w();
|
|
275
|
-
}, children: a }) : void 0,
|
|
276
|
-
sx: {
|
|
277
|
-
width: "100%",
|
|
278
|
-
minWidth: 300,
|
|
279
|
-
maxWidth: 500,
|
|
280
|
-
boxShadow: 3,
|
|
281
|
-
"& .MuiAlert-message": {
|
|
282
|
-
flex: 1
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
children: [
|
|
286
|
-
o && /* @__PURE__ */ e(me, { children: o }),
|
|
287
|
-
t
|
|
288
|
-
]
|
|
289
|
-
}
|
|
290
|
-
)
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
}), Ci = ({
|
|
294
|
-
children: r,
|
|
295
|
-
defaultPosition: i = "top-right",
|
|
296
|
-
defaultDuration: t = 5e3,
|
|
297
|
-
maxToasts: o = 5,
|
|
298
|
-
defaultTransition: n = "slide"
|
|
299
|
-
}) => {
|
|
300
|
-
const [l, a] = O([]), s = oe(0), g = W(() => (s.current += 1, `toast-${s.current}-${Date.now()}`), []), x = W(
|
|
301
|
-
(u) => {
|
|
302
|
-
const y = g(), b = {
|
|
303
|
-
...u,
|
|
304
|
-
id: y,
|
|
305
|
-
open: !0,
|
|
306
|
-
position: u.position ?? i,
|
|
307
|
-
duration: u.duration ?? t,
|
|
308
|
-
transition: u.transition ?? n,
|
|
309
|
-
dismissible: u.dismissible ?? !0
|
|
310
|
-
};
|
|
311
|
-
return a((j) => {
|
|
312
|
-
const $ = [...j, b];
|
|
313
|
-
return $.length > o ? $.slice(-o) : $;
|
|
314
|
-
}), y;
|
|
315
|
-
},
|
|
316
|
-
[g, i, t, n, o]
|
|
317
|
-
), p = W((u) => {
|
|
318
|
-
a(
|
|
319
|
-
(y) => y.map((b) => b.id === u ? { ...b, open: !1 } : b)
|
|
320
|
-
), setTimeout(() => {
|
|
321
|
-
a((y) => y.filter((b) => b.id !== u));
|
|
322
|
-
}, 300);
|
|
323
|
-
}, []), v = W(() => {
|
|
324
|
-
a((u) => u.map((y) => ({ ...y, open: !1 }))), setTimeout(() => {
|
|
325
|
-
a([]);
|
|
326
|
-
}, 300);
|
|
327
|
-
}, []), w = W(
|
|
328
|
-
(u) => x(u),
|
|
329
|
-
[x]
|
|
330
|
-
), h = W(
|
|
331
|
-
(u, y) => x({ message: u, severity: "success", ...y }),
|
|
332
|
-
[x]
|
|
333
|
-
), L = W(
|
|
334
|
-
(u, y) => x({ message: u, severity: "info", ...y }),
|
|
335
|
-
[x]
|
|
336
|
-
), z = W(
|
|
337
|
-
(u, y) => x({ message: u, severity: "warning", ...y }),
|
|
338
|
-
[x]
|
|
339
|
-
), m = W(
|
|
340
|
-
(u, y) => x({ message: u, severity: "error", ...y }),
|
|
341
|
-
[x]
|
|
342
|
-
), F = {
|
|
343
|
-
toast: w,
|
|
344
|
-
success: h,
|
|
345
|
-
info: L,
|
|
346
|
-
warning: z,
|
|
347
|
-
error: m,
|
|
348
|
-
dismiss: p,
|
|
349
|
-
dismissAll: v
|
|
350
|
-
}, Q = l.reduce((u, y) => {
|
|
351
|
-
const b = y.position || i;
|
|
352
|
-
return u[b] || (u[b] = []), u[b].push(y), u;
|
|
353
|
-
}, {});
|
|
354
|
-
return /* @__PURE__ */ f(J.Provider, { value: F, children: [
|
|
355
|
-
r,
|
|
356
|
-
/* @__PURE__ */ e(pe, { children: Object.entries(Q).map(([u, y]) => /* @__PURE__ */ e(
|
|
357
|
-
C,
|
|
358
|
-
{
|
|
359
|
-
sx: {
|
|
360
|
-
position: "fixed",
|
|
361
|
-
zIndex: 9999,
|
|
362
|
-
...Ve(u),
|
|
363
|
-
display: "flex",
|
|
364
|
-
flexDirection: "column",
|
|
365
|
-
gap: 1,
|
|
366
|
-
pointerEvents: "none",
|
|
367
|
-
"& > *": {
|
|
368
|
-
pointerEvents: "auto"
|
|
369
|
-
}
|
|
370
|
-
},
|
|
371
|
-
children: y.map((b) => /* @__PURE__ */ e(Re, { ...b, onClose: () => p(b.id) }, b.id))
|
|
372
|
-
},
|
|
373
|
-
u
|
|
374
|
-
)) })
|
|
375
|
-
] });
|
|
376
|
-
}, Ve = (r) => {
|
|
377
|
-
const i = {};
|
|
378
|
-
return r.startsWith("top") && (i.top = 16), r.startsWith("bottom") && (i.bottom = 16), r.endsWith("left") && (i.left = 16), r.endsWith("right") && (i.right = 16), r.endsWith("center") && (i.left = "50%", i.transform = "translateX(-50%)"), i;
|
|
379
|
-
}, Wi = () => {
|
|
380
|
-
const r = le(J);
|
|
381
|
-
if (!r)
|
|
382
|
-
throw new Error("useToast must be used within a ToastProvider");
|
|
383
|
-
return r;
|
|
384
|
-
}, k = {
|
|
385
|
-
// Error/danger - Tailwind red-500
|
|
386
|
-
error: {
|
|
387
|
-
main: "#EF4444",
|
|
388
|
-
light: "#FEE2E2"
|
|
389
|
-
},
|
|
390
|
-
// Warning/caution - Tailwind amber-500
|
|
391
|
-
warning: {
|
|
392
|
-
main: "#F59E0B",
|
|
393
|
-
light: "#FEF3C7"
|
|
394
|
-
},
|
|
395
|
-
// Success/positive - Tailwind emerald-500
|
|
396
|
-
success: {
|
|
397
|
-
main: "#10B981",
|
|
398
|
-
light: "#D1FAE5"
|
|
399
|
-
},
|
|
400
|
-
// Accent/highlight - Yellow for flames/sparks
|
|
401
|
-
accent: {
|
|
402
|
-
flame: "#FFD93D"
|
|
403
|
-
}
|
|
404
|
-
}, K = {
|
|
405
|
-
small: {
|
|
406
|
-
illustrationSize: 120,
|
|
407
|
-
titleVariant: "subtitle1",
|
|
408
|
-
descriptionVariant: "body2",
|
|
409
|
-
spacing: 2,
|
|
410
|
-
padding: 3
|
|
411
|
-
},
|
|
412
|
-
medium: {
|
|
413
|
-
illustrationSize: 180,
|
|
414
|
-
titleVariant: "h6",
|
|
415
|
-
descriptionVariant: "body1",
|
|
416
|
-
spacing: 3,
|
|
417
|
-
padding: 4
|
|
418
|
-
},
|
|
419
|
-
large: {
|
|
420
|
-
illustrationSize: 240,
|
|
421
|
-
titleVariant: "h5",
|
|
422
|
-
descriptionVariant: "body1",
|
|
423
|
-
spacing: 4,
|
|
424
|
-
padding: 6
|
|
425
|
-
}
|
|
426
|
-
}, Fe = ({
|
|
427
|
-
size: r = 180,
|
|
428
|
-
primaryColor: i = d.primary.main,
|
|
429
|
-
secondaryColor: t = d.neutral.gray100,
|
|
430
|
-
accentColor: o = d.secondary.main
|
|
431
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
432
|
-
/* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill: t }),
|
|
433
|
-
/* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill: i, opacity: "0.2" }),
|
|
434
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill: t, opacity: "0.8" }),
|
|
435
|
-
/* @__PURE__ */ e("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill: t, opacity: "0.6" }),
|
|
436
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.8" }),
|
|
437
|
-
/* @__PURE__ */ e("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.6" }),
|
|
438
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill: t, opacity: "0.8" }),
|
|
439
|
-
/* @__PURE__ */ e("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill: t, opacity: "0.6" }),
|
|
440
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "35", fill: "white", stroke: i, strokeWidth: "3", strokeDasharray: "6 4" }),
|
|
441
|
-
/* @__PURE__ */ e("text", { x: "100", y: "122", textAnchor: "middle", fill: i, fontSize: "32", fontWeight: "300", children: "?" })
|
|
442
|
-
] }), Qe = ({
|
|
443
|
-
size: r = 180,
|
|
444
|
-
primaryColor: i = d.primary.main,
|
|
445
|
-
secondaryColor: t = d.neutral.gray100,
|
|
446
|
-
accentColor: o = d.secondary.main
|
|
447
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
448
|
-
/* @__PURE__ */ e("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill: t, transform: "rotate(-5 50 50)" }),
|
|
449
|
-
/* @__PURE__ */ e("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: "white", stroke: t, strokeWidth: "2" }),
|
|
450
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill: t }),
|
|
451
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill: t, opacity: "0.6" }),
|
|
452
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill: t, opacity: "0.4" }),
|
|
453
|
-
/* @__PURE__ */ f("g", { transform: "translate(120, 100) rotate(45)", children: [
|
|
454
|
-
/* @__PURE__ */ e("rect", { x: "0", y: "0", width: "50", height: "10", fill: o }),
|
|
455
|
-
/* @__PURE__ */ e("polygon", { points: "50,0 60,5 50,10", fill: o, opacity: "0.7" }),
|
|
456
|
-
/* @__PURE__ */ e("rect", { x: "-5", y: "2", width: "5", height: "6", fill: i })
|
|
457
|
-
] })
|
|
458
|
-
] }), je = ({
|
|
459
|
-
size: r = 180,
|
|
460
|
-
primaryColor: i = d.primary.main,
|
|
461
|
-
secondaryColor: t = d.neutral.gray100,
|
|
462
|
-
accentColor: o = d.secondary.main
|
|
463
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
464
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill: i }),
|
|
465
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "12", fill: "white" }),
|
|
466
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "8", fill: o, opacity: "0.3" }),
|
|
467
|
-
/* @__PURE__ */ e("path", { d: "M70 120 L50 150 L70 140 Z", fill: o }),
|
|
468
|
-
/* @__PURE__ */ e("path", { d: "M130 120 L150 150 L130 140 Z", fill: o }),
|
|
469
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "160", rx: "15", ry: "25", fill: o, opacity: "0.8" }),
|
|
470
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "155", rx: "10", ry: "18", fill: k.accent.flame }),
|
|
471
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "150", rx: "5", ry: "10", fill: "white" }),
|
|
472
|
-
/* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "3", fill: i, opacity: "0.5" }),
|
|
473
|
-
/* @__PURE__ */ e("circle", { cx: "160", cy: "40", r: "2", fill: i, opacity: "0.5" }),
|
|
474
|
-
/* @__PURE__ */ e("circle", { cx: "30", cy: "120", r: "2", fill: o, opacity: "0.5" }),
|
|
475
|
-
/* @__PURE__ */ e("circle", { cx: "170", cy: "100", r: "3", fill: o, opacity: "0.5" })
|
|
476
|
-
] }), Ze = ({
|
|
477
|
-
size: r = 180,
|
|
478
|
-
primaryColor: i = d.primary.main,
|
|
479
|
-
secondaryColor: t = d.neutral.gray100
|
|
480
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
481
|
-
/* @__PURE__ */ e("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill: t }),
|
|
482
|
-
/* @__PURE__ */ e("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: "white", stroke: t, strokeWidth: "2" }),
|
|
483
|
-
/* @__PURE__ */ e("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
484
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill: t }),
|
|
485
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill: t, opacity: "0.6" }),
|
|
486
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill: t, opacity: "0.4" }),
|
|
487
|
-
/* @__PURE__ */ e("circle", { cx: "140", cy: "130", r: "20", fill: i }),
|
|
488
|
-
/* @__PURE__ */ e("rect", { x: "132", y: "127", width: "16", height: "6", rx: "3", fill: "white" }),
|
|
489
|
-
/* @__PURE__ */ e("rect", { x: "137", y: "122", width: "6", height: "16", rx: "3", fill: "white" })
|
|
490
|
-
] }), Oe = ({
|
|
491
|
-
size: r = 180,
|
|
492
|
-
primaryColor: i = d.primary.main,
|
|
493
|
-
secondaryColor: t = d.neutral.gray100,
|
|
494
|
-
accentColor: o = d.secondary.main
|
|
495
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
496
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: "white", stroke: t, strokeWidth: "2" }),
|
|
497
|
-
/* @__PURE__ */ e("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
|
|
498
|
-
/* @__PURE__ */ e("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
|
|
499
|
-
/* @__PURE__ */ e("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill: t, opacity: "0.5" }),
|
|
500
|
-
/* @__PURE__ */ e("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill: t, opacity: "0.5" }),
|
|
501
|
-
/* @__PURE__ */ e("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill: t, opacity: "0.5" }),
|
|
502
|
-
/* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "25", fill: o, opacity: "0.2" }),
|
|
503
|
-
/* @__PURE__ */ e("path", { d: "M160 45 L160 55 M148 52 L155 58 M172 52 L165 58", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
|
|
504
|
-
/* @__PURE__ */ e("circle", { cx: "160", cy: "65", r: "10", fill: o }),
|
|
505
|
-
/* @__PURE__ */ e("rect", { x: "155", y: "75", width: "10", height: "8", rx: "2", fill: i })
|
|
506
|
-
] }), _e = ({
|
|
507
|
-
size: r = 180,
|
|
508
|
-
primaryColor: i = d.primary.main,
|
|
509
|
-
secondaryColor: t = d.neutral.gray100
|
|
510
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
511
|
-
/* @__PURE__ */ e("circle", { cx: "85", cy: "85", r: "45", fill: "white", stroke: i, strokeWidth: "4" }),
|
|
512
|
-
/* @__PURE__ */ e("line", { x1: "118", y1: "118", x2: "160", y2: "160", stroke: i, strokeWidth: "8", strokeLinecap: "round" }),
|
|
513
|
-
/* @__PURE__ */ e("line", { x1: "65", y1: "65", x2: "105", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
|
|
514
|
-
/* @__PURE__ */ e("line", { x1: "105", y1: "65", x2: "65", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
|
|
515
|
-
/* @__PURE__ */ e("text", { x: "155", y: "50", fill: t, fontSize: "20", fontWeight: "bold", children: "?" }),
|
|
516
|
-
/* @__PURE__ */ e("text", { x: "40", y: "160", fill: t, fontSize: "16", fontWeight: "bold", children: "?" })
|
|
517
|
-
] }), Ae = ({
|
|
518
|
-
size: r = 180,
|
|
519
|
-
primaryColor: i = d.primary.main,
|
|
520
|
-
secondaryColor: t = d.neutral.gray100
|
|
521
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
522
|
-
/* @__PURE__ */ e("path", { d: "M100 30 L170 150 L30 150 Z", fill: k.warning.light, stroke: k.warning.main, strokeWidth: "3" }),
|
|
523
|
-
/* @__PURE__ */ e("rect", { x: "94", y: "70", width: "12", height: "45", rx: "6", fill: k.warning.main }),
|
|
524
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "130", r: "7", fill: k.warning.main }),
|
|
525
|
-
/* @__PURE__ */ e("circle", { cx: "30", cy: "60", r: "8", fill: t, opacity: "0.5" }),
|
|
526
|
-
/* @__PURE__ */ e("circle", { cx: "170", cy: "80", r: "6", fill: t, opacity: "0.5" }),
|
|
527
|
-
/* @__PURE__ */ e("rect", { x: "160", y: "130", width: "20", height: "4", rx: "2", fill: t, opacity: "0.3" }),
|
|
528
|
-
/* @__PURE__ */ e("rect", { x: "20", y: "120", width: "15", height: "4", rx: "2", fill: t, opacity: "0.3" })
|
|
529
|
-
] }), Ne = ({
|
|
530
|
-
size: r = 180,
|
|
531
|
-
primaryColor: i = d.primary.main,
|
|
532
|
-
secondaryColor: t = d.neutral.gray100,
|
|
533
|
-
accentColor: o = d.secondary.main
|
|
534
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
535
|
-
/* @__PURE__ */ e("text", { x: "100", y: "100", textAnchor: "middle", fill: i, fontSize: "48", fontWeight: "bold", children: "404" }),
|
|
536
|
-
/* @__PURE__ */ e("path", { d: "M60 130 Q40 130 40 150 Q40 170 60 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
|
|
537
|
-
/* @__PURE__ */ e("path", { d: "M140 130 Q160 130 160 150 Q160 170 140 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
|
|
538
|
-
/* @__PURE__ */ e("line", { x1: "85", y1: "150", x2: "95", y2: "140", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
|
|
539
|
-
/* @__PURE__ */ e("line", { x1: "105", y1: "160", x2: "115", y2: "150", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
|
|
540
|
-
/* @__PURE__ */ e("circle", { cx: "75", cy: "60", r: "5", fill: i }),
|
|
541
|
-
/* @__PURE__ */ e("circle", { cx: "125", cy: "60", r: "5", fill: i }),
|
|
542
|
-
/* @__PURE__ */ e("path", { d: "M80 75 Q100 65 120 75", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round" })
|
|
543
|
-
] }), Ge = ({
|
|
544
|
-
size: r = 180,
|
|
545
|
-
primaryColor: i = d.primary.main,
|
|
546
|
-
secondaryColor: t = d.neutral.gray100,
|
|
547
|
-
accentColor: o = d.secondary.main
|
|
548
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
549
|
-
/* @__PURE__ */ e("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill: t }),
|
|
550
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "50", width: "60", height: "25", rx: "4", fill: "white" }),
|
|
551
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "85", width: "60", height: "25", rx: "4", fill: "white" }),
|
|
552
|
-
/* @__PURE__ */ e("rect", { x: "70", y: "120", width: "60", height: "25", rx: "4", fill: "white" }),
|
|
553
|
-
/* @__PURE__ */ e("circle", { cx: "80", cy: "62", r: "4", fill: k.error.main }),
|
|
554
|
-
/* @__PURE__ */ e("circle", { cx: "92", cy: "62", r: "4", fill: k.error.main }),
|
|
555
|
-
/* @__PURE__ */ e("circle", { cx: "80", cy: "97", r: "4", fill: k.error.main }),
|
|
556
|
-
/* @__PURE__ */ e("circle", { cx: "92", cy: "97", r: "4", fill: o, opacity: "0.5" }),
|
|
557
|
-
/* @__PURE__ */ e("circle", { cx: "80", cy: "132", r: "4", fill: o, opacity: "0.5" }),
|
|
558
|
-
/* @__PURE__ */ e("circle", { cx: "92", cy: "132", r: "4", fill: o, opacity: "0.5" }),
|
|
559
|
-
/* @__PURE__ */ e("path", { d: "M150 50 L135 90 L150 90 L130 130 L155 80 L140 80 Z", fill: o }),
|
|
560
|
-
/* @__PURE__ */ f("g", { transform: "translate(40, 70)", children: [
|
|
561
|
-
/* @__PURE__ */ e("line", { x1: "0", y1: "0", x2: "15", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" }),
|
|
562
|
-
/* @__PURE__ */ e("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" })
|
|
563
|
-
] })
|
|
564
|
-
] }), Ue = ({
|
|
565
|
-
size: r = 180,
|
|
566
|
-
primaryColor: i = d.primary.main,
|
|
567
|
-
secondaryColor: t = d.neutral.gray100,
|
|
568
|
-
accentColor: o = d.secondary.main
|
|
569
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
570
|
-
/* @__PURE__ */ e("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill: i }),
|
|
571
|
-
/* @__PURE__ */ e("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke: i, strokeWidth: "10", fill: "none", strokeLinecap: "round" }),
|
|
572
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "12", fill: "white" }),
|
|
573
|
-
/* @__PURE__ */ e("rect", { x: "95", y: "115", width: "10", height: "20", rx: "3", fill: "white" }),
|
|
574
|
-
/* @__PURE__ */ e("path", { d: "M100 25 L140 45 L140 85 Q140 115 100 135 Q60 115 60 85 L60 45 Z", fill: o, opacity: "0.15" }),
|
|
575
|
-
/* @__PURE__ */ e("circle", { cx: "155", cy: "65", r: "20", fill: k.error.light, stroke: k.error.main, strokeWidth: "2" }),
|
|
576
|
-
/* @__PURE__ */ e("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill: k.error.main })
|
|
577
|
-
] }), X = ({
|
|
578
|
-
size: r = 180,
|
|
579
|
-
primaryColor: i = d.primary.main,
|
|
580
|
-
secondaryColor: t = d.neutral.gray100,
|
|
581
|
-
accentColor: o = d.secondary.main
|
|
582
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
583
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill: t }),
|
|
584
|
-
/* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill: t }),
|
|
585
|
-
/* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill: t }),
|
|
586
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill: t }),
|
|
587
|
-
/* @__PURE__ */ e("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill: i }),
|
|
588
|
-
/* @__PURE__ */ e("polygon", { points: "100,85 75,120 125,120", fill: i }),
|
|
589
|
-
/* @__PURE__ */ e("rect", { x: "30", y: "140", width: "140", height: "50", rx: "8", fill: "white", stroke: o, strokeWidth: "2", strokeDasharray: "8 4" }),
|
|
590
|
-
/* @__PURE__ */ e("rect", { x: "85", y: "150", width: "30", height: "35", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
591
|
-
/* @__PURE__ */ e("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill: i, opacity: "0.2" })
|
|
592
|
-
] }), He = ({
|
|
593
|
-
size: r = 180,
|
|
594
|
-
primaryColor: i = d.primary.main,
|
|
595
|
-
secondaryColor: t = d.neutral.gray100,
|
|
596
|
-
accentColor: o = d.secondary.main
|
|
597
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
598
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70", fill: k.success.light }),
|
|
599
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "55", fill: k.success.main }),
|
|
600
|
-
/* @__PURE__ */ e("path", { d: "M65 100 L90 125 L135 75", stroke: "white", strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
|
|
601
|
-
/* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "6", fill: o, opacity: "0.6" }),
|
|
602
|
-
/* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "4", fill: o, opacity: "0.6" }),
|
|
603
|
-
/* @__PURE__ */ e("circle", { cx: "170", cy: "130", r: "5", fill: i, opacity: "0.4" }),
|
|
604
|
-
/* @__PURE__ */ e("circle", { cx: "30", cy: "140", r: "4", fill: i, opacity: "0.4" }),
|
|
605
|
-
/* @__PURE__ */ e("path", { d: "M45 170 L50 180 L55 170 L60 180", stroke: o, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" }),
|
|
606
|
-
/* @__PURE__ */ e("path", { d: "M140 170 L145 180 L150 170 L155 180", stroke: i, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
|
|
607
|
-
] }), qe = ({
|
|
608
|
-
size: r = 180,
|
|
609
|
-
primaryColor: i = d.primary.main,
|
|
610
|
-
secondaryColor: t = d.neutral.gray100
|
|
611
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
612
|
-
/* @__PURE__ */ e("path", { d: "M100 40 Q130 40 140 80 L145 120 L55 120 L60 80 Q70 40 100 40 Z", fill: t }),
|
|
613
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "120", rx: "50", ry: "12", fill: t }),
|
|
614
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "145", r: "12", fill: t }),
|
|
615
|
-
/* @__PURE__ */ e("path", { d: "M100 40 L100 25", stroke: i, strokeWidth: "4", strokeLinecap: "round" }),
|
|
616
|
-
/* @__PURE__ */ e("text", { x: "145", y: "60", fill: i, fontSize: "20", fontWeight: "bold", opacity: "0.6", children: "Z" }),
|
|
617
|
-
/* @__PURE__ */ e("text", { x: "155", y: "45", fill: i, fontSize: "16", fontWeight: "bold", opacity: "0.4", children: "z" }),
|
|
618
|
-
/* @__PURE__ */ e("text", { x: "165", y: "35", fill: i, fontSize: "12", fontWeight: "bold", opacity: "0.2", children: "z" })
|
|
619
|
-
] }), Je = ({
|
|
620
|
-
size: r = 180,
|
|
621
|
-
primaryColor: i = d.primary.main,
|
|
622
|
-
secondaryColor: t = d.neutral.gray100
|
|
623
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
624
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: t }),
|
|
625
|
-
/* @__PURE__ */ e("rect", { x: "50", y: "60", width: "100", height: "80", fill: t }),
|
|
626
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: t }),
|
|
627
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
628
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
629
|
-
/* @__PURE__ */ e("line", { x1: "50", y1: "60", x2: "50", y2: "140", stroke: i, strokeWidth: "2" }),
|
|
630
|
-
/* @__PURE__ */ e("line", { x1: "150", y1: "60", x2: "150", y2: "140", stroke: i, strokeWidth: "2" }),
|
|
631
|
-
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "25", fill: "white", stroke: i, strokeWidth: "2", strokeDasharray: "5 3" }),
|
|
632
|
-
/* @__PURE__ */ e("text", { x: "100", y: "108", textAnchor: "middle", fill: i, fontSize: "24", fontWeight: "300", children: "0" })
|
|
633
|
-
] }), Ke = ({
|
|
634
|
-
size: r = 180,
|
|
635
|
-
primaryColor: i = d.primary.main,
|
|
636
|
-
secondaryColor: t = d.neutral.gray100
|
|
637
|
-
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
638
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "55", ry: "35", fill: t }),
|
|
639
|
-
/* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "30", ry: "22", fill: t }),
|
|
640
|
-
/* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "30", ry: "22", fill: t }),
|
|
641
|
-
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "45", ry: "25", fill: t }),
|
|
642
|
-
/* @__PURE__ */ e("line", { x1: "75", y1: "70", x2: "125", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
|
|
643
|
-
/* @__PURE__ */ e("line", { x1: "125", y1: "70", x2: "75", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
|
|
644
|
-
/* @__PURE__ */ e("path", { d: "M45 140 Q45 160 65 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
|
|
645
|
-
/* @__PURE__ */ e("path", { d: "M35 145 Q35 170 65 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" }),
|
|
646
|
-
/* @__PURE__ */ e("path", { d: "M155 140 Q155 160 135 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
|
|
647
|
-
/* @__PURE__ */ e("path", { d: "M165 145 Q165 170 135 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" })
|
|
648
|
-
] }), Xe = {
|
|
649
|
-
"empty-table": Fe,
|
|
650
|
-
"empty-drafts": Qe,
|
|
651
|
-
"getting-started": je,
|
|
652
|
-
"empty-documents": Ze,
|
|
653
|
-
"empty-insights": Oe,
|
|
654
|
-
"no-results": _e,
|
|
655
|
-
"error-generic": Ae,
|
|
656
|
-
"error-404": Ne,
|
|
657
|
-
"error-500": Ge,
|
|
658
|
-
"error-permission": Ue,
|
|
659
|
-
upload: X,
|
|
660
|
-
success: He,
|
|
661
|
-
"no-notifications": qe,
|
|
662
|
-
"no-data": Je,
|
|
663
|
-
offline: Ke
|
|
664
|
-
}, Ii = D.forwardRef(
|
|
665
|
-
function({ illustration: i, title: t, description: o, primaryAction: n, secondaryAction: l, size: a = "medium", customIllustration: s, sx: g }, x) {
|
|
666
|
-
const p = K[a], v = Xe[i];
|
|
667
|
-
return /* @__PURE__ */ f(
|
|
668
|
-
C,
|
|
669
|
-
{
|
|
670
|
-
ref: x,
|
|
671
|
-
sx: {
|
|
672
|
-
textAlign: "center",
|
|
673
|
-
p: p.padding,
|
|
674
|
-
maxWidth: a === "small" ? 300 : a === "large" ? 500 : 400,
|
|
675
|
-
mx: "auto",
|
|
676
|
-
...g
|
|
677
|
-
},
|
|
678
|
-
children: [
|
|
679
|
-
/* @__PURE__ */ e(
|
|
680
|
-
C,
|
|
681
|
-
{
|
|
682
|
-
sx: {
|
|
683
|
-
mb: p.spacing,
|
|
684
|
-
display: "flex",
|
|
685
|
-
justifyContent: "center",
|
|
686
|
-
alignItems: "center"
|
|
687
|
-
},
|
|
688
|
-
role: "img",
|
|
689
|
-
"aria-hidden": "true",
|
|
690
|
-
children: s || /* @__PURE__ */ e(v, { size: p.illustrationSize })
|
|
691
|
-
}
|
|
692
|
-
),
|
|
693
|
-
/* @__PURE__ */ e(
|
|
694
|
-
S,
|
|
695
|
-
{
|
|
696
|
-
variant: p.titleVariant,
|
|
697
|
-
sx: { mb: 1, fontWeight: 600 },
|
|
698
|
-
children: t
|
|
699
|
-
}
|
|
700
|
-
),
|
|
701
|
-
o && /* @__PURE__ */ e(
|
|
702
|
-
S,
|
|
703
|
-
{
|
|
704
|
-
variant: p.descriptionVariant,
|
|
705
|
-
color: "text.secondary",
|
|
706
|
-
sx: { mb: p.spacing },
|
|
707
|
-
children: o
|
|
708
|
-
}
|
|
709
|
-
),
|
|
710
|
-
(n || l) && /* @__PURE__ */ f(
|
|
711
|
-
P,
|
|
712
|
-
{
|
|
713
|
-
spacing: 1.5,
|
|
714
|
-
sx: { mt: p.spacing, alignItems: "center" },
|
|
715
|
-
children: [
|
|
716
|
-
n && (n.href ? /* @__PURE__ */ e(
|
|
717
|
-
T,
|
|
718
|
-
{
|
|
719
|
-
variant: "contained",
|
|
720
|
-
href: n.href,
|
|
721
|
-
onClick: n.onClick,
|
|
722
|
-
children: n.label
|
|
723
|
-
}
|
|
724
|
-
) : /* @__PURE__ */ e(
|
|
725
|
-
T,
|
|
726
|
-
{
|
|
727
|
-
variant: "contained",
|
|
728
|
-
onClick: n.onClick,
|
|
729
|
-
children: n.label
|
|
730
|
-
}
|
|
731
|
-
)),
|
|
732
|
-
l && (l.href ? /* @__PURE__ */ e(
|
|
733
|
-
U,
|
|
734
|
-
{
|
|
735
|
-
href: l.href,
|
|
736
|
-
onClick: l.onClick,
|
|
737
|
-
underline: "hover",
|
|
738
|
-
sx: { cursor: "pointer" },
|
|
739
|
-
children: l.label
|
|
740
|
-
}
|
|
741
|
-
) : /* @__PURE__ */ e(
|
|
742
|
-
U,
|
|
743
|
-
{
|
|
744
|
-
component: "button",
|
|
745
|
-
onClick: l.onClick,
|
|
746
|
-
underline: "hover",
|
|
747
|
-
sx: { cursor: "pointer" },
|
|
748
|
-
children: l.label
|
|
749
|
-
}
|
|
750
|
-
))
|
|
751
|
-
]
|
|
752
|
-
}
|
|
753
|
-
)
|
|
754
|
-
]
|
|
755
|
-
}
|
|
756
|
-
);
|
|
757
|
-
}
|
|
758
|
-
), zi = D.forwardRef(
|
|
759
|
-
function({
|
|
760
|
-
title: i = "Drag and drop your file",
|
|
761
|
-
description: t = "or click to browse from your computer",
|
|
762
|
-
acceptedTypes: o = "PNG, JPG, PDF up to 10MB",
|
|
763
|
-
browseLabel: n = "Browse Files",
|
|
764
|
-
onDrop: l,
|
|
765
|
-
onBrowse: a,
|
|
766
|
-
isDragging: s = !1,
|
|
767
|
-
size: g = "medium",
|
|
768
|
-
sx: x
|
|
769
|
-
}, p) {
|
|
770
|
-
const [v, w] = D.useState(s), h = K[g], L = (m) => {
|
|
771
|
-
m.preventDefault(), m.stopPropagation(), m.type === "dragenter" || m.type === "dragover" ? w(!0) : m.type === "dragleave" && w(!1);
|
|
772
|
-
};
|
|
773
|
-
return /* @__PURE__ */ f(
|
|
774
|
-
C,
|
|
775
|
-
{
|
|
776
|
-
ref: p,
|
|
777
|
-
onDragEnter: L,
|
|
778
|
-
onDragLeave: L,
|
|
779
|
-
onDragOver: L,
|
|
780
|
-
onDrop: (m) => {
|
|
781
|
-
m.preventDefault(), m.stopPropagation(), w(!1), m.dataTransfer.files && m.dataTransfer.files.length > 0 && l?.(m.dataTransfer.files);
|
|
782
|
-
},
|
|
783
|
-
sx: {
|
|
784
|
-
p: h.padding,
|
|
785
|
-
border: "2px dashed",
|
|
786
|
-
borderColor: v ? "primary.main" : "grey.300",
|
|
787
|
-
borderRadius: 3,
|
|
788
|
-
// 12px - consistent with cards
|
|
789
|
-
bgcolor: v ? "primary.50" : "grey.50",
|
|
790
|
-
textAlign: "center",
|
|
791
|
-
cursor: "pointer",
|
|
792
|
-
transition: "all 0.2s ease",
|
|
793
|
-
"&:hover": {
|
|
794
|
-
borderColor: "primary.main",
|
|
795
|
-
bgcolor: "primary.50"
|
|
796
|
-
},
|
|
797
|
-
...x
|
|
798
|
-
},
|
|
799
|
-
onClick: a,
|
|
800
|
-
children: [
|
|
801
|
-
/* @__PURE__ */ e(C, { sx: { mb: 2 }, children: /* @__PURE__ */ e(X, { size: h.illustrationSize * 0.7 }) }),
|
|
802
|
-
/* @__PURE__ */ e(S, { variant: h.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
|
|
803
|
-
/* @__PURE__ */ e(S, { variant: h.descriptionVariant, color: "text.secondary", sx: { mb: 2 }, children: t }),
|
|
804
|
-
/* @__PURE__ */ e(T, { variant: "outlined", size: g === "small" ? "small" : "medium", children: n }),
|
|
805
|
-
o && /* @__PURE__ */ e(S, { variant: "caption", color: "text.secondary", sx: { mt: 2, display: "block" }, children: o })
|
|
806
|
-
]
|
|
807
|
-
}
|
|
808
|
-
);
|
|
809
|
-
}
|
|
810
|
-
), c = I.colors.indicator, M = {
|
|
11
|
+
const a = W.colors.indicator, z = {
|
|
811
12
|
// High Attention - Red
|
|
812
13
|
error: {
|
|
813
|
-
color:
|
|
814
|
-
backgroundColor:
|
|
14
|
+
color: a.error.fg,
|
|
15
|
+
backgroundColor: a.error.bg,
|
|
815
16
|
icon: "error",
|
|
816
17
|
shape: "circle",
|
|
817
18
|
severity: "high",
|
|
818
19
|
label: "Error"
|
|
819
20
|
},
|
|
820
21
|
critical: {
|
|
821
|
-
color:
|
|
822
|
-
backgroundColor:
|
|
22
|
+
color: a.critical.fg,
|
|
23
|
+
backgroundColor: a.critical.bg,
|
|
823
24
|
icon: "warning",
|
|
824
25
|
shape: "hexagon",
|
|
825
26
|
severity: "high",
|
|
826
27
|
label: "Critical"
|
|
827
28
|
},
|
|
828
29
|
failed: {
|
|
829
|
-
color:
|
|
830
|
-
backgroundColor:
|
|
30
|
+
color: a.failed.fg,
|
|
31
|
+
backgroundColor: a.failed.bg,
|
|
831
32
|
icon: "close",
|
|
832
33
|
shape: "circle",
|
|
833
34
|
severity: "high",
|
|
834
35
|
label: "Failed"
|
|
835
36
|
},
|
|
836
37
|
rejected: {
|
|
837
|
-
color:
|
|
838
|
-
backgroundColor:
|
|
38
|
+
color: a.rejected.fg,
|
|
39
|
+
backgroundColor: a.rejected.bg,
|
|
839
40
|
icon: "close",
|
|
840
41
|
shape: "circle",
|
|
841
42
|
severity: "high",
|
|
842
43
|
label: "Rejected"
|
|
843
44
|
},
|
|
844
45
|
cancelled: {
|
|
845
|
-
color:
|
|
846
|
-
backgroundColor:
|
|
46
|
+
color: a.cancelled.fg,
|
|
47
|
+
backgroundColor: a.cancelled.bg,
|
|
847
48
|
icon: "close",
|
|
848
49
|
shape: "circle",
|
|
849
50
|
severity: "neutral",
|
|
@@ -851,43 +52,43 @@ const Pe = D.forwardRef(function({
|
|
|
851
52
|
},
|
|
852
53
|
// Medium Attention - Orange/Yellow
|
|
853
54
|
warning: {
|
|
854
|
-
color:
|
|
855
|
-
backgroundColor:
|
|
856
|
-
outlineColor:
|
|
55
|
+
color: a.warning.fg,
|
|
56
|
+
backgroundColor: a.warning.bg,
|
|
57
|
+
outlineColor: a.warning.outline,
|
|
857
58
|
icon: "warning",
|
|
858
59
|
shape: "triangle",
|
|
859
60
|
severity: "medium",
|
|
860
61
|
label: "Warning"
|
|
861
62
|
},
|
|
862
63
|
caution: {
|
|
863
|
-
color:
|
|
864
|
-
backgroundColor:
|
|
865
|
-
outlineColor:
|
|
64
|
+
color: a.caution.fg,
|
|
65
|
+
backgroundColor: a.caution.bg,
|
|
66
|
+
outlineColor: a.caution.outline,
|
|
866
67
|
icon: "warning",
|
|
867
68
|
shape: "triangle",
|
|
868
69
|
severity: "medium",
|
|
869
70
|
label: "Caution"
|
|
870
71
|
},
|
|
871
72
|
pending: {
|
|
872
|
-
color:
|
|
873
|
-
backgroundColor:
|
|
874
|
-
outlineColor:
|
|
73
|
+
color: a.pending.fg,
|
|
74
|
+
backgroundColor: a.pending.bg,
|
|
75
|
+
outlineColor: a.pending.outline,
|
|
875
76
|
icon: "clock",
|
|
876
77
|
shape: "circle",
|
|
877
78
|
severity: "medium",
|
|
878
79
|
label: "Pending"
|
|
879
80
|
},
|
|
880
81
|
"in-progress": {
|
|
881
|
-
color:
|
|
882
|
-
backgroundColor:
|
|
82
|
+
color: a.inProgress.fg,
|
|
83
|
+
backgroundColor: a.inProgress.bg,
|
|
883
84
|
icon: "refresh",
|
|
884
85
|
shape: "circle",
|
|
885
86
|
severity: "medium",
|
|
886
87
|
label: "In Progress"
|
|
887
88
|
},
|
|
888
89
|
running: {
|
|
889
|
-
color:
|
|
890
|
-
backgroundColor:
|
|
90
|
+
color: a.running.fg,
|
|
91
|
+
backgroundColor: a.running.bg,
|
|
891
92
|
icon: "play",
|
|
892
93
|
shape: "circle",
|
|
893
94
|
severity: "medium",
|
|
@@ -895,40 +96,40 @@ const Pe = D.forwardRef(function({
|
|
|
895
96
|
},
|
|
896
97
|
// Low Attention - Green
|
|
897
98
|
success: {
|
|
898
|
-
color:
|
|
899
|
-
backgroundColor:
|
|
99
|
+
color: a.success.fg,
|
|
100
|
+
backgroundColor: a.success.bg,
|
|
900
101
|
icon: "check-circle",
|
|
901
102
|
shape: "circle",
|
|
902
103
|
severity: "low",
|
|
903
104
|
label: "Success"
|
|
904
105
|
},
|
|
905
106
|
complete: {
|
|
906
|
-
color:
|
|
907
|
-
backgroundColor:
|
|
107
|
+
color: a.complete.fg,
|
|
108
|
+
backgroundColor: a.complete.bg,
|
|
908
109
|
icon: "check",
|
|
909
110
|
shape: "circle",
|
|
910
111
|
severity: "low",
|
|
911
112
|
label: "Complete"
|
|
912
113
|
},
|
|
913
114
|
approved: {
|
|
914
|
-
color:
|
|
915
|
-
backgroundColor:
|
|
115
|
+
color: a.approved.fg,
|
|
116
|
+
backgroundColor: a.approved.bg,
|
|
916
117
|
icon: "check-circle",
|
|
917
118
|
shape: "circle",
|
|
918
119
|
severity: "low",
|
|
919
120
|
label: "Approved"
|
|
920
121
|
},
|
|
921
122
|
active: {
|
|
922
|
-
color:
|
|
923
|
-
backgroundColor:
|
|
123
|
+
color: a.active.fg,
|
|
124
|
+
backgroundColor: a.active.bg,
|
|
924
125
|
icon: "check",
|
|
925
126
|
shape: "circle",
|
|
926
127
|
severity: "low",
|
|
927
128
|
label: "Active"
|
|
928
129
|
},
|
|
929
130
|
enabled: {
|
|
930
|
-
color:
|
|
931
|
-
backgroundColor:
|
|
131
|
+
color: a.enabled.fg,
|
|
132
|
+
backgroundColor: a.enabled.bg,
|
|
932
133
|
icon: "check",
|
|
933
134
|
shape: "circle",
|
|
934
135
|
severity: "low",
|
|
@@ -936,24 +137,24 @@ const Pe = D.forwardRef(function({
|
|
|
936
137
|
},
|
|
937
138
|
// Informational - Blue
|
|
938
139
|
info: {
|
|
939
|
-
color:
|
|
940
|
-
backgroundColor:
|
|
140
|
+
color: a.info.fg,
|
|
141
|
+
backgroundColor: a.info.bg,
|
|
941
142
|
icon: "info",
|
|
942
143
|
shape: "circle",
|
|
943
144
|
severity: "info",
|
|
944
145
|
label: "Info"
|
|
945
146
|
},
|
|
946
147
|
new: {
|
|
947
|
-
color:
|
|
948
|
-
backgroundColor:
|
|
148
|
+
color: a.new.fg,
|
|
149
|
+
backgroundColor: a.new.bg,
|
|
949
150
|
icon: "star",
|
|
950
151
|
shape: "circle",
|
|
951
152
|
severity: "info",
|
|
952
153
|
label: "New"
|
|
953
154
|
},
|
|
954
155
|
updated: {
|
|
955
|
-
color:
|
|
956
|
-
backgroundColor:
|
|
156
|
+
color: a.updated.fg,
|
|
157
|
+
backgroundColor: a.updated.bg,
|
|
957
158
|
icon: "refresh",
|
|
958
159
|
shape: "circle",
|
|
959
160
|
severity: "info",
|
|
@@ -961,32 +162,32 @@ const Pe = D.forwardRef(function({
|
|
|
961
162
|
},
|
|
962
163
|
// Neutral - Gray
|
|
963
164
|
draft: {
|
|
964
|
-
color:
|
|
965
|
-
backgroundColor:
|
|
165
|
+
color: a.draft.fg,
|
|
166
|
+
backgroundColor: a.draft.bg,
|
|
966
167
|
icon: "edit",
|
|
967
168
|
shape: "circle",
|
|
968
169
|
severity: "neutral",
|
|
969
170
|
label: "Draft"
|
|
970
171
|
},
|
|
971
172
|
inactive: {
|
|
972
|
-
color:
|
|
973
|
-
backgroundColor:
|
|
173
|
+
color: a.inactive.fg,
|
|
174
|
+
backgroundColor: a.inactive.bg,
|
|
974
175
|
icon: "remove",
|
|
975
176
|
shape: "circle",
|
|
976
177
|
severity: "neutral",
|
|
977
178
|
label: "Inactive"
|
|
978
179
|
},
|
|
979
180
|
disabled: {
|
|
980
|
-
color:
|
|
981
|
-
backgroundColor:
|
|
181
|
+
color: a.disabled.fg,
|
|
182
|
+
backgroundColor: a.disabled.bg,
|
|
982
183
|
icon: "close",
|
|
983
184
|
shape: "circle",
|
|
984
185
|
severity: "neutral",
|
|
985
186
|
label: "Disabled"
|
|
986
187
|
},
|
|
987
188
|
unknown: {
|
|
988
|
-
color:
|
|
989
|
-
backgroundColor:
|
|
189
|
+
color: a.unknown.fg,
|
|
190
|
+
backgroundColor: a.unknown.bg,
|
|
990
191
|
icon: "help",
|
|
991
192
|
shape: "circle",
|
|
992
193
|
severity: "neutral",
|
|
@@ -994,26 +195,26 @@ const Pe = D.forwardRef(function({
|
|
|
994
195
|
},
|
|
995
196
|
// Special - Purple
|
|
996
197
|
beta: {
|
|
997
|
-
color:
|
|
998
|
-
backgroundColor:
|
|
198
|
+
color: a.beta.fg,
|
|
199
|
+
backgroundColor: a.beta.bg,
|
|
999
200
|
icon: "zap",
|
|
1000
201
|
shape: "diamond",
|
|
1001
202
|
severity: "info",
|
|
1002
203
|
label: "Beta"
|
|
1003
204
|
},
|
|
1004
205
|
experimental: {
|
|
1005
|
-
color:
|
|
1006
|
-
backgroundColor:
|
|
206
|
+
color: a.experimental.fg,
|
|
207
|
+
backgroundColor: a.experimental.bg,
|
|
1007
208
|
icon: "code",
|
|
1008
209
|
shape: "diamond",
|
|
1009
210
|
severity: "info",
|
|
1010
211
|
label: "Experimental"
|
|
1011
212
|
}
|
|
1012
|
-
},
|
|
213
|
+
}, T = {
|
|
1013
214
|
small: { icon: 16, shape: 8, fontSize: "0.75rem", dotSize: 8 },
|
|
1014
215
|
medium: { icon: 20, shape: 10, fontSize: "0.875rem", dotSize: 10 },
|
|
1015
216
|
large: { icon: 24, shape: 12, fontSize: "1rem", dotSize: 12 }
|
|
1016
|
-
},
|
|
217
|
+
}, Si = (r) => z[r], Me = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "7", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), Pe = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e("rect", { x: "2", y: "2", width: "12", height: "12", rx: "2", fill: i, stroke: t, strokeWidth: t ? 1.5 : 0 }) }), Be = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
1017
218
|
"rect",
|
|
1018
219
|
{
|
|
1019
220
|
x: "3",
|
|
@@ -1026,7 +227,7 @@ const Pe = D.forwardRef(function({
|
|
|
1026
227
|
strokeWidth: t ? 1.5 : 0,
|
|
1027
228
|
transform: "rotate(45 8 8)"
|
|
1028
229
|
}
|
|
1029
|
-
) }),
|
|
230
|
+
) }), Te = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
1030
231
|
"path",
|
|
1031
232
|
{
|
|
1032
233
|
d: "M8 2L14 14H2L8 2Z",
|
|
@@ -1035,7 +236,7 @@ const Pe = D.forwardRef(function({
|
|
|
1035
236
|
strokeWidth: t ? 1.5 : 0,
|
|
1036
237
|
strokeLinejoin: "round"
|
|
1037
238
|
}
|
|
1038
|
-
) }),
|
|
239
|
+
) }), Ee = ({ size: r, color: i, outline: t }) => /* @__PURE__ */ e("svg", { width: r, height: r, viewBox: "0 0 16 16", children: /* @__PURE__ */ e(
|
|
1039
240
|
"polygon",
|
|
1040
241
|
{
|
|
1041
242
|
points: "8,1 14,4.5 14,11.5 8,15 2,11.5 2,4.5",
|
|
@@ -1043,26 +244,326 @@ const Pe = D.forwardRef(function({
|
|
|
1043
244
|
stroke: t,
|
|
1044
245
|
strokeWidth: t ? 1.5 : 0
|
|
1045
246
|
}
|
|
1046
|
-
) }),
|
|
1047
|
-
circle:
|
|
1048
|
-
square:
|
|
1049
|
-
diamond:
|
|
1050
|
-
triangle:
|
|
1051
|
-
hexagon:
|
|
1052
|
-
},
|
|
1053
|
-
const
|
|
1054
|
-
return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
|
|
247
|
+
) }), J = {
|
|
248
|
+
circle: Me,
|
|
249
|
+
square: Pe,
|
|
250
|
+
diamond: Be,
|
|
251
|
+
triangle: Te,
|
|
252
|
+
hexagon: Ee
|
|
253
|
+
}, $e = (r, i, t, o, n, l) => {
|
|
254
|
+
const c = z[r], s = T[i];
|
|
255
|
+
return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
|
|
256
|
+
/* @__PURE__ */ e(
|
|
257
|
+
B,
|
|
258
|
+
{
|
|
259
|
+
name: c.icon,
|
|
260
|
+
size: i,
|
|
261
|
+
sx: { color: c.backgroundColor },
|
|
262
|
+
"aria-hidden": "true"
|
|
263
|
+
}
|
|
264
|
+
),
|
|
265
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
|
|
266
|
+
] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
|
|
267
|
+
/* @__PURE__ */ e(
|
|
268
|
+
C,
|
|
269
|
+
{
|
|
270
|
+
sx: {
|
|
271
|
+
display: "flex",
|
|
272
|
+
alignItems: "center",
|
|
273
|
+
justifyContent: "center",
|
|
274
|
+
width: s.icon + 8,
|
|
275
|
+
height: s.icon + 8,
|
|
276
|
+
borderRadius: `${W.borders.radius.circle}px`,
|
|
277
|
+
// Perfect circle
|
|
278
|
+
backgroundColor: c.backgroundColor,
|
|
279
|
+
color: c.color
|
|
280
|
+
},
|
|
281
|
+
"aria-hidden": "true",
|
|
282
|
+
children: /* @__PURE__ */ e(B, { name: c.icon, size: i === "large" ? "medium" : "small" })
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: t })
|
|
286
|
+
] });
|
|
287
|
+
}, Re = (r, i, t, o, n, l, c) => {
|
|
288
|
+
const s = z[r], h = T[i], x = n || s.shape, p = J[x];
|
|
289
|
+
return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...c, alignItems: "center" }, role: "status", children: [
|
|
290
|
+
/* @__PURE__ */ e(C, { "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
291
|
+
p,
|
|
292
|
+
{
|
|
293
|
+
size: h.shape * 1.6,
|
|
294
|
+
color: s.backgroundColor,
|
|
295
|
+
outline: l ? s.outlineColor : void 0
|
|
296
|
+
}
|
|
297
|
+
) }),
|
|
298
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: h.fontSize }, children: t })
|
|
299
|
+
] });
|
|
300
|
+
}, Ve = (r, i, t, o) => {
|
|
301
|
+
const n = z[r], l = T[i];
|
|
302
|
+
return /* @__PURE__ */ e(
|
|
303
|
+
C,
|
|
304
|
+
{
|
|
305
|
+
role: "status",
|
|
306
|
+
"aria-label": n.label,
|
|
307
|
+
sx: {
|
|
308
|
+
width: l.dotSize,
|
|
309
|
+
height: l.dotSize,
|
|
310
|
+
borderRadius: `${W.borders.radius.circle}px`,
|
|
311
|
+
// Perfect circle
|
|
312
|
+
backgroundColor: n.backgroundColor,
|
|
313
|
+
flexShrink: 0,
|
|
314
|
+
...t && {
|
|
315
|
+
animation: "statusPulse 2s infinite",
|
|
316
|
+
"@keyframes statusPulse": {
|
|
317
|
+
"0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
|
|
318
|
+
"70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
|
|
319
|
+
"100%": { boxShadow: "0 0 0 0 transparent" }
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
...o
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
);
|
|
326
|
+
}, Fe = (r, i, t, o, n, l, c) => {
|
|
327
|
+
const s = z[r];
|
|
328
|
+
return /* @__PURE__ */ e(
|
|
329
|
+
ae,
|
|
330
|
+
{
|
|
331
|
+
label: t,
|
|
332
|
+
size: i,
|
|
333
|
+
icon: o ? /* @__PURE__ */ e(B, { name: s.icon, size: "small", "aria-hidden": "true" }) : void 0,
|
|
334
|
+
onClick: n,
|
|
335
|
+
onDelete: l,
|
|
336
|
+
role: "status",
|
|
337
|
+
sx: {
|
|
338
|
+
backgroundColor: `${s.backgroundColor}20`,
|
|
339
|
+
color: s.backgroundColor,
|
|
340
|
+
borderColor: s.backgroundColor,
|
|
341
|
+
"& .MuiChip-icon": {
|
|
342
|
+
color: s.backgroundColor
|
|
343
|
+
},
|
|
344
|
+
"& .MuiChip-deleteIcon": {
|
|
345
|
+
color: s.backgroundColor,
|
|
346
|
+
"&:hover": {
|
|
347
|
+
color: s.backgroundColor
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
...c
|
|
351
|
+
},
|
|
352
|
+
variant: "outlined"
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
}, Qe = (r, i, t, o, n, l) => {
|
|
356
|
+
const c = z[r], s = T[i];
|
|
357
|
+
return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, role: "status", children: [
|
|
358
|
+
o && /* @__PURE__ */ e(
|
|
359
|
+
C,
|
|
360
|
+
{
|
|
361
|
+
"aria-hidden": "true",
|
|
362
|
+
sx: {
|
|
363
|
+
width: s.dotSize,
|
|
364
|
+
height: s.dotSize,
|
|
365
|
+
borderRadius: `${W.borders.radius.circle}px`,
|
|
366
|
+
// Perfect circle
|
|
367
|
+
backgroundColor: c.backgroundColor,
|
|
368
|
+
flexShrink: 0
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
),
|
|
372
|
+
n && !o && /* @__PURE__ */ e(
|
|
373
|
+
B,
|
|
374
|
+
{
|
|
375
|
+
name: c.icon,
|
|
376
|
+
size: i === "large" ? "medium" : "small",
|
|
377
|
+
sx: { color: c.backgroundColor },
|
|
378
|
+
"aria-hidden": "true"
|
|
379
|
+
}
|
|
380
|
+
),
|
|
381
|
+
/* @__PURE__ */ e(
|
|
382
|
+
S,
|
|
383
|
+
{
|
|
384
|
+
variant: "body2",
|
|
385
|
+
sx: {
|
|
386
|
+
fontSize: s.fontSize,
|
|
387
|
+
color: c.backgroundColor,
|
|
388
|
+
fontWeight: 500
|
|
389
|
+
},
|
|
390
|
+
children: t
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
] });
|
|
394
|
+
}, je = (r, i, t, o, n, l, c) => {
|
|
395
|
+
const s = z[r];
|
|
396
|
+
return /* @__PURE__ */ e(
|
|
397
|
+
ce,
|
|
398
|
+
{
|
|
399
|
+
badgeContent: o ? void 0 : t,
|
|
400
|
+
max: n,
|
|
401
|
+
variant: o ? "dot" : "standard",
|
|
402
|
+
invisible: l,
|
|
403
|
+
sx: {
|
|
404
|
+
"& .MuiBadge-badge": {
|
|
405
|
+
backgroundColor: s.backgroundColor,
|
|
406
|
+
color: s.color,
|
|
407
|
+
fontSize: "0.7rem",
|
|
408
|
+
minWidth: o ? 8 : 18,
|
|
409
|
+
height: o ? 8 : 18,
|
|
410
|
+
padding: o ? 0 : "0 4px"
|
|
411
|
+
},
|
|
412
|
+
...c
|
|
413
|
+
},
|
|
414
|
+
children: i
|
|
415
|
+
}
|
|
416
|
+
);
|
|
417
|
+
}, Ze = (r, i, t, o, n, l, c, s, h) => {
|
|
418
|
+
const x = T[i], p = r >= 0, g = l !== !1 ? p ? c || "#24a148" : s || "#da1e28" : "inherit", L = () => {
|
|
419
|
+
const D = Math.abs(r), m = p ? "+" : "-";
|
|
420
|
+
return o ? `${m}${o}${D.toLocaleString()}` : t ? `${m}${D}%` : `${m}${D.toLocaleString()}`;
|
|
421
|
+
};
|
|
422
|
+
return /* @__PURE__ */ f(
|
|
423
|
+
P,
|
|
424
|
+
{
|
|
425
|
+
direction: "row",
|
|
426
|
+
spacing: 0.5,
|
|
427
|
+
sx: { color: g, ...h, alignItems: "center" },
|
|
428
|
+
role: "status",
|
|
429
|
+
"aria-label": `${p ? "Increased" : "Decreased"} by ${L()}`,
|
|
430
|
+
children: [
|
|
431
|
+
n !== !1 && /* @__PURE__ */ e(
|
|
432
|
+
B,
|
|
433
|
+
{
|
|
434
|
+
name: p ? "trending-up" : "trending-down",
|
|
435
|
+
size: i === "large" ? "medium" : "small",
|
|
436
|
+
"aria-hidden": "true"
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
/* @__PURE__ */ e(
|
|
440
|
+
S,
|
|
441
|
+
{
|
|
442
|
+
variant: "body2",
|
|
443
|
+
sx: {
|
|
444
|
+
fontSize: x.fontSize,
|
|
445
|
+
fontWeight: 500,
|
|
446
|
+
fontFamily: "monospace"
|
|
447
|
+
},
|
|
448
|
+
children: L()
|
|
449
|
+
}
|
|
450
|
+
)
|
|
451
|
+
]
|
|
452
|
+
}
|
|
453
|
+
);
|
|
454
|
+
}, Ci = M.forwardRef(
|
|
455
|
+
function(i, t) {
|
|
456
|
+
const {
|
|
457
|
+
variant: o = "icon",
|
|
458
|
+
status: n = "info",
|
|
459
|
+
size: l = "medium",
|
|
460
|
+
label: c,
|
|
461
|
+
showLabel: s = !0,
|
|
462
|
+
sx: h,
|
|
463
|
+
"aria-label": x
|
|
464
|
+
} = i, p = z[n], v = c || p.label, w = (() => {
|
|
465
|
+
switch (o) {
|
|
466
|
+
case "icon":
|
|
467
|
+
case void 0:
|
|
468
|
+
return $e(
|
|
469
|
+
n,
|
|
470
|
+
l,
|
|
471
|
+
v,
|
|
472
|
+
s,
|
|
473
|
+
i.iconOnly || !1,
|
|
474
|
+
h
|
|
475
|
+
);
|
|
476
|
+
case "shape": {
|
|
477
|
+
const g = i;
|
|
478
|
+
return Re(
|
|
479
|
+
n,
|
|
480
|
+
l,
|
|
481
|
+
v,
|
|
482
|
+
s,
|
|
483
|
+
g.shape,
|
|
484
|
+
g.showOutline ?? !0,
|
|
485
|
+
h
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
case "dot":
|
|
489
|
+
return Ve(n, l, i.pulse || !1, h);
|
|
490
|
+
case "chip": {
|
|
491
|
+
const g = i;
|
|
492
|
+
return Fe(
|
|
493
|
+
n,
|
|
494
|
+
l === "large" ? "medium" : l,
|
|
495
|
+
v,
|
|
496
|
+
g.showIcon ?? !0,
|
|
497
|
+
g.onClick,
|
|
498
|
+
g.onDelete,
|
|
499
|
+
h
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
case "inline": {
|
|
503
|
+
const g = i;
|
|
504
|
+
return Qe(
|
|
505
|
+
n,
|
|
506
|
+
l,
|
|
507
|
+
v,
|
|
508
|
+
g.showDot ?? !0,
|
|
509
|
+
g.showIcon ?? !1,
|
|
510
|
+
h
|
|
511
|
+
);
|
|
512
|
+
}
|
|
513
|
+
case "badge": {
|
|
514
|
+
const g = i;
|
|
515
|
+
return je(
|
|
516
|
+
n,
|
|
517
|
+
g.children,
|
|
518
|
+
g.count,
|
|
519
|
+
g.dot,
|
|
520
|
+
g.max ?? 999,
|
|
521
|
+
g.invisible,
|
|
522
|
+
h
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
case "differential": {
|
|
526
|
+
const g = i;
|
|
527
|
+
return Ze(
|
|
528
|
+
g.value,
|
|
529
|
+
l,
|
|
530
|
+
g.percentage || !1,
|
|
531
|
+
g.currency,
|
|
532
|
+
g.showIcon,
|
|
533
|
+
g.showColor,
|
|
534
|
+
g.positiveColor,
|
|
535
|
+
g.negativeColor,
|
|
536
|
+
h
|
|
537
|
+
);
|
|
538
|
+
}
|
|
539
|
+
default:
|
|
540
|
+
return null;
|
|
541
|
+
}
|
|
542
|
+
})();
|
|
543
|
+
return !w || !M.isValidElement(w) ? w : M.cloneElement(w, {
|
|
544
|
+
ref: t
|
|
545
|
+
});
|
|
546
|
+
}
|
|
547
|
+
), Li = ({
|
|
548
|
+
status: r,
|
|
549
|
+
size: i = "medium",
|
|
550
|
+
label: t,
|
|
551
|
+
showLabel: o = !0,
|
|
552
|
+
iconOnly: n = !1,
|
|
553
|
+
sx: l
|
|
554
|
+
}) => {
|
|
555
|
+
const c = z[r], s = T[i], h = t || c.label;
|
|
556
|
+
return n ? /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, children: [
|
|
1055
557
|
/* @__PURE__ */ e(
|
|
1056
|
-
|
|
558
|
+
B,
|
|
1057
559
|
{
|
|
1058
|
-
name:
|
|
560
|
+
name: c.icon,
|
|
1059
561
|
size: i,
|
|
1060
|
-
sx: { color:
|
|
1061
|
-
"aria-hidden": "true"
|
|
562
|
+
sx: { color: c.backgroundColor }
|
|
1062
563
|
}
|
|
1063
564
|
),
|
|
1064
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children:
|
|
1065
|
-
] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" },
|
|
565
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: h })
|
|
566
|
+
] }) : /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { ...l, alignItems: "center" }, children: [
|
|
1066
567
|
/* @__PURE__ */ e(
|
|
1067
568
|
C,
|
|
1068
569
|
{
|
|
@@ -1072,47 +573,35 @@ const Pe = D.forwardRef(function({
|
|
|
1072
573
|
justifyContent: "center",
|
|
1073
574
|
width: s.icon + 8,
|
|
1074
575
|
height: s.icon + 8,
|
|
1075
|
-
borderRadius: `${
|
|
576
|
+
borderRadius: `${W.borders.radius.circle}px`,
|
|
1076
577
|
// Perfect circle
|
|
1077
|
-
backgroundColor:
|
|
1078
|
-
color:
|
|
578
|
+
backgroundColor: c.backgroundColor,
|
|
579
|
+
color: c.color
|
|
1079
580
|
},
|
|
1080
|
-
"
|
|
1081
|
-
children: /* @__PURE__ */ e(E, { name: a.icon, size: i === "large" ? "medium" : "small" })
|
|
581
|
+
children: /* @__PURE__ */ e(B, { name: c.icon, size: i === "large" ? "medium" : "small" })
|
|
1082
582
|
}
|
|
1083
583
|
),
|
|
1084
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children:
|
|
584
|
+
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: s.fontSize }, children: h })
|
|
1085
585
|
] });
|
|
1086
|
-
},
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
color: s.backgroundColor,
|
|
1094
|
-
outline: l ? s.outlineColor : void 0
|
|
1095
|
-
}
|
|
1096
|
-
) }),
|
|
1097
|
-
o && /* @__PURE__ */ e(S, { variant: "body2", sx: { fontSize: g.fontSize }, children: t })
|
|
1098
|
-
] });
|
|
1099
|
-
}, li = (r, i, t, o) => {
|
|
1100
|
-
const n = M[r], l = B[i];
|
|
586
|
+
}, Oe = ({
|
|
587
|
+
status: r,
|
|
588
|
+
size: i = "medium",
|
|
589
|
+
pulse: t = !1,
|
|
590
|
+
sx: o
|
|
591
|
+
}) => {
|
|
592
|
+
const n = z[r], l = T[i];
|
|
1101
593
|
return /* @__PURE__ */ e(
|
|
1102
594
|
C,
|
|
1103
595
|
{
|
|
1104
|
-
role: "status",
|
|
1105
|
-
"aria-label": n.label,
|
|
1106
596
|
sx: {
|
|
1107
597
|
width: l.dotSize,
|
|
1108
598
|
height: l.dotSize,
|
|
1109
|
-
borderRadius: `${
|
|
599
|
+
borderRadius: `${W.borders.radius.circle}px`,
|
|
1110
600
|
// Perfect circle
|
|
1111
601
|
backgroundColor: n.backgroundColor,
|
|
1112
|
-
flexShrink: 0,
|
|
1113
602
|
...t && {
|
|
1114
|
-
animation: "
|
|
1115
|
-
"@keyframes
|
|
603
|
+
animation: "pulse 2s infinite",
|
|
604
|
+
"@keyframes pulse": {
|
|
1116
605
|
"0%": { boxShadow: `0 0 0 0 ${n.backgroundColor}80` },
|
|
1117
606
|
"70%": { boxShadow: `0 0 0 ${l.dotSize}px transparent` },
|
|
1118
607
|
"100%": { boxShadow: "0 0 0 0 transparent" }
|
|
@@ -1122,335 +611,889 @@ const Pe = D.forwardRef(function({
|
|
|
1122
611
|
}
|
|
1123
612
|
}
|
|
1124
613
|
);
|
|
1125
|
-
},
|
|
1126
|
-
|
|
614
|
+
}, Wi = ({
|
|
615
|
+
items: r,
|
|
616
|
+
variant: i = "dot",
|
|
617
|
+
direction: t = "row",
|
|
618
|
+
size: o = "small",
|
|
619
|
+
sx: n
|
|
620
|
+
}) => {
|
|
621
|
+
const l = T[o];
|
|
1127
622
|
return /* @__PURE__ */ e(
|
|
1128
|
-
|
|
623
|
+
P,
|
|
1129
624
|
{
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
625
|
+
direction: t,
|
|
626
|
+
spacing: t === "row" ? 3 : 1,
|
|
627
|
+
useFlexGap: !0,
|
|
628
|
+
sx: { ...n, flexWrap: "wrap" },
|
|
629
|
+
children: r.map((c, s) => {
|
|
630
|
+
const h = z[c.status], x = c.label || h.label;
|
|
631
|
+
return /* @__PURE__ */ f(P, { direction: "row", spacing: 1, sx: { alignItems: "center" }, children: [
|
|
632
|
+
i === "icon" && /* @__PURE__ */ e(
|
|
633
|
+
C,
|
|
634
|
+
{
|
|
635
|
+
sx: {
|
|
636
|
+
display: "flex",
|
|
637
|
+
alignItems: "center",
|
|
638
|
+
justifyContent: "center",
|
|
639
|
+
width: l.icon + 4,
|
|
640
|
+
height: l.icon + 4,
|
|
641
|
+
borderRadius: `${W.borders.radius.circle}px`,
|
|
642
|
+
// Perfect circle
|
|
643
|
+
backgroundColor: h.backgroundColor,
|
|
644
|
+
color: h.color
|
|
645
|
+
},
|
|
646
|
+
children: /* @__PURE__ */ e(B, { name: h.icon, size: "small" })
|
|
647
|
+
}
|
|
648
|
+
),
|
|
649
|
+
i === "shape" && (() => {
|
|
650
|
+
const p = J[h.shape];
|
|
651
|
+
return /* @__PURE__ */ e(
|
|
652
|
+
p,
|
|
653
|
+
{
|
|
654
|
+
size: l.shape * 1.4,
|
|
655
|
+
color: h.backgroundColor,
|
|
656
|
+
outline: h.outlineColor
|
|
657
|
+
}
|
|
658
|
+
);
|
|
659
|
+
})(),
|
|
660
|
+
i === "dot" && /* @__PURE__ */ e(Oe, { status: c.status, size: o }),
|
|
661
|
+
/* @__PURE__ */ f(S, { variant: "body2", sx: { fontSize: l.fontSize }, children: [
|
|
662
|
+
x,
|
|
663
|
+
c.count !== void 0 && /* @__PURE__ */ f(
|
|
664
|
+
S,
|
|
665
|
+
{
|
|
666
|
+
component: "span",
|
|
667
|
+
sx: {
|
|
668
|
+
ml: 0.5,
|
|
669
|
+
color: "text.secondary",
|
|
670
|
+
fontSize: l.fontSize
|
|
671
|
+
},
|
|
672
|
+
children: [
|
|
673
|
+
"(",
|
|
674
|
+
c.count,
|
|
675
|
+
")"
|
|
676
|
+
]
|
|
677
|
+
}
|
|
678
|
+
)
|
|
679
|
+
] })
|
|
680
|
+
] }, s);
|
|
681
|
+
})
|
|
1152
682
|
}
|
|
1153
683
|
);
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
684
|
+
};
|
|
685
|
+
function _e(r) {
|
|
686
|
+
const i = r.palette.trinity;
|
|
687
|
+
return {
|
|
688
|
+
default: {
|
|
689
|
+
icon: null,
|
|
690
|
+
color: i.interactive.default,
|
|
691
|
+
primaryColor: "primary"
|
|
692
|
+
},
|
|
693
|
+
info: {
|
|
694
|
+
icon: /* @__PURE__ */ e(ze, {}),
|
|
695
|
+
color: i.status.info.text,
|
|
696
|
+
primaryColor: "info"
|
|
697
|
+
},
|
|
698
|
+
success: {
|
|
699
|
+
icon: /* @__PURE__ */ e(Le, {}),
|
|
700
|
+
color: i.status.success.text,
|
|
701
|
+
primaryColor: "success"
|
|
702
|
+
},
|
|
703
|
+
warning: {
|
|
704
|
+
icon: /* @__PURE__ */ e(Ie, {}),
|
|
705
|
+
color: i.status.warning.text,
|
|
706
|
+
primaryColor: "warning"
|
|
707
|
+
},
|
|
708
|
+
danger: {
|
|
709
|
+
icon: /* @__PURE__ */ e(We, {}),
|
|
710
|
+
color: i.status.error.text,
|
|
711
|
+
primaryColor: "error"
|
|
712
|
+
},
|
|
713
|
+
confirm: {
|
|
714
|
+
icon: /* @__PURE__ */ e(De, {}),
|
|
715
|
+
color: i.interactive.default,
|
|
716
|
+
primaryColor: "primary"
|
|
717
|
+
}
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
const Ae = M.forwardRef(function({
|
|
721
|
+
open: i,
|
|
722
|
+
onClose: t,
|
|
723
|
+
title: o,
|
|
724
|
+
children: n,
|
|
725
|
+
variant: l = "default",
|
|
726
|
+
primaryAction: c,
|
|
727
|
+
onPrimaryAction: s,
|
|
728
|
+
secondaryAction: h = "Cancel",
|
|
729
|
+
onSecondaryAction: x,
|
|
730
|
+
loading: p = !1,
|
|
731
|
+
primaryDisabled: v = !1,
|
|
732
|
+
showCloseButton: w = !0,
|
|
733
|
+
disableBackdropClick: g = !1,
|
|
734
|
+
disableEscapeKeyDown: L = !1,
|
|
735
|
+
maxWidth: D = "sm",
|
|
736
|
+
fullWidth: m = !0,
|
|
737
|
+
fullScreenMobile: F = !1,
|
|
738
|
+
footer: Q,
|
|
739
|
+
hideFooter: u = !1,
|
|
740
|
+
sx: y
|
|
741
|
+
}, b) {
|
|
742
|
+
const j = se(), [$, _] = O(!1), R = _e(j)[l], ee = (Z, G) => {
|
|
743
|
+
G === "backdropClick" && g || G === "escapeKeyDown" && L || t();
|
|
744
|
+
}, ie = async () => {
|
|
745
|
+
if (s) {
|
|
746
|
+
const Z = s();
|
|
747
|
+
if (Z instanceof Promise) {
|
|
748
|
+
_(!0);
|
|
749
|
+
try {
|
|
750
|
+
await Z;
|
|
751
|
+
} finally {
|
|
752
|
+
_(!1);
|
|
1168
753
|
}
|
|
1169
754
|
}
|
|
1170
|
-
),
|
|
1171
|
-
n && !o && /* @__PURE__ */ e(
|
|
1172
|
-
E,
|
|
1173
|
-
{
|
|
1174
|
-
name: a.icon,
|
|
1175
|
-
size: i === "large" ? "medium" : "small",
|
|
1176
|
-
sx: { color: a.backgroundColor },
|
|
1177
|
-
"aria-hidden": "true"
|
|
1178
|
-
}
|
|
1179
|
-
),
|
|
1180
|
-
/* @__PURE__ */ e(
|
|
1181
|
-
S,
|
|
1182
|
-
{
|
|
1183
|
-
variant: "body2",
|
|
1184
|
-
sx: {
|
|
1185
|
-
fontSize: s.fontSize,
|
|
1186
|
-
color: a.backgroundColor,
|
|
1187
|
-
fontWeight: 500
|
|
1188
|
-
},
|
|
1189
|
-
children: t
|
|
1190
|
-
}
|
|
1191
|
-
)
|
|
1192
|
-
] });
|
|
1193
|
-
}, si = (r, i, t, o, n, l, a) => {
|
|
1194
|
-
const s = M[r];
|
|
1195
|
-
return /* @__PURE__ */ e(
|
|
1196
|
-
ve,
|
|
1197
|
-
{
|
|
1198
|
-
badgeContent: o ? void 0 : t,
|
|
1199
|
-
max: n,
|
|
1200
|
-
variant: o ? "dot" : "standard",
|
|
1201
|
-
invisible: l,
|
|
1202
|
-
sx: {
|
|
1203
|
-
"& .MuiBadge-badge": {
|
|
1204
|
-
backgroundColor: s.backgroundColor,
|
|
1205
|
-
color: s.color,
|
|
1206
|
-
fontSize: "0.7rem",
|
|
1207
|
-
minWidth: o ? 8 : 18,
|
|
1208
|
-
height: o ? 8 : 18,
|
|
1209
|
-
padding: o ? 0 : "0 4px"
|
|
1210
|
-
},
|
|
1211
|
-
...a
|
|
1212
|
-
},
|
|
1213
|
-
children: i
|
|
1214
755
|
}
|
|
1215
|
-
)
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
const z = Math.abs(r), m = p ? "+" : "-";
|
|
1219
|
-
return o ? `${m}${o}${z.toLocaleString()}` : t ? `${m}${z}%` : `${m}${z.toLocaleString()}`;
|
|
1220
|
-
};
|
|
756
|
+
}, te = () => {
|
|
757
|
+
x?.(), t();
|
|
758
|
+
}, V = p || $, A = M.useId(), N = M.useId();
|
|
1221
759
|
return /* @__PURE__ */ f(
|
|
1222
|
-
|
|
760
|
+
de,
|
|
1223
761
|
{
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
762
|
+
ref: b,
|
|
763
|
+
open: i,
|
|
764
|
+
onClose: ee,
|
|
765
|
+
maxWidth: D,
|
|
766
|
+
fullWidth: m,
|
|
767
|
+
fullScreen: F ? void 0 : !1,
|
|
768
|
+
"aria-labelledby": o ? A : void 0,
|
|
769
|
+
"aria-describedby": n ? N : void 0,
|
|
770
|
+
sx: {
|
|
771
|
+
"& .MuiDialog-paper": {
|
|
772
|
+
borderRadius: W.borders.radiusPx.lg,
|
|
773
|
+
// 12px
|
|
774
|
+
...y
|
|
775
|
+
}
|
|
776
|
+
},
|
|
1229
777
|
children: [
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
{
|
|
1233
|
-
name: p ? "trending-up" : "trending-down",
|
|
1234
|
-
size: i === "large" ? "medium" : "small",
|
|
1235
|
-
"aria-hidden": "true"
|
|
1236
|
-
}
|
|
1237
|
-
),
|
|
1238
|
-
/* @__PURE__ */ e(
|
|
1239
|
-
S,
|
|
778
|
+
(o || w) && /* @__PURE__ */ f(
|
|
779
|
+
he,
|
|
1240
780
|
{
|
|
1241
|
-
|
|
781
|
+
id: A,
|
|
1242
782
|
sx: {
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
783
|
+
display: "flex",
|
|
784
|
+
alignItems: "center",
|
|
785
|
+
gap: 1.5,
|
|
786
|
+
pr: w ? 6 : 3
|
|
1246
787
|
},
|
|
1247
|
-
children:
|
|
788
|
+
children: [
|
|
789
|
+
R.icon && /* @__PURE__ */ e(
|
|
790
|
+
C,
|
|
791
|
+
{
|
|
792
|
+
sx: {
|
|
793
|
+
width: W.iconSize.display + 4,
|
|
794
|
+
// 40px - prominent icon with frame
|
|
795
|
+
height: W.iconSize.display + 4,
|
|
796
|
+
borderRadius: `${W.borders.radius.circle}px`,
|
|
797
|
+
// Perfect circle
|
|
798
|
+
bgcolor: "action.selected",
|
|
799
|
+
// Theme-aware 12% overlay
|
|
800
|
+
display: "flex",
|
|
801
|
+
alignItems: "center",
|
|
802
|
+
justifyContent: "center",
|
|
803
|
+
"& .MuiSvgIcon-root": {
|
|
804
|
+
color: R.color,
|
|
805
|
+
fontSize: W.iconSize.prominent
|
|
806
|
+
// 24px
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
children: R.icon
|
|
810
|
+
}
|
|
811
|
+
),
|
|
812
|
+
/* @__PURE__ */ e(S, { variant: "h6", component: "span", sx: { fontWeight: 600 }, children: o }),
|
|
813
|
+
w && /* @__PURE__ */ e(
|
|
814
|
+
ge,
|
|
815
|
+
{
|
|
816
|
+
onClick: t,
|
|
817
|
+
disabled: V,
|
|
818
|
+
"aria-label": "Close dialog",
|
|
819
|
+
sx: {
|
|
820
|
+
position: "absolute",
|
|
821
|
+
right: 8,
|
|
822
|
+
top: 8,
|
|
823
|
+
color: "text.secondary"
|
|
824
|
+
},
|
|
825
|
+
children: /* @__PURE__ */ e(Ce, {})
|
|
826
|
+
}
|
|
827
|
+
)
|
|
828
|
+
]
|
|
1248
829
|
}
|
|
1249
|
-
)
|
|
830
|
+
),
|
|
831
|
+
/* @__PURE__ */ e(fe, { id: N, dividers: l === "default", children: typeof n == "string" ? /* @__PURE__ */ e(ue, { children: n }) : n }),
|
|
832
|
+
!u && /* @__PURE__ */ e(pe, { sx: { px: 3, py: 2 }, children: Q || /* @__PURE__ */ f(re, { children: [
|
|
833
|
+
h && /* @__PURE__ */ e(
|
|
834
|
+
E,
|
|
835
|
+
{
|
|
836
|
+
onClick: te,
|
|
837
|
+
disabled: V,
|
|
838
|
+
color: "inherit",
|
|
839
|
+
children: h
|
|
840
|
+
}
|
|
841
|
+
),
|
|
842
|
+
c && /* @__PURE__ */ e(
|
|
843
|
+
E,
|
|
844
|
+
{
|
|
845
|
+
onClick: ie,
|
|
846
|
+
disabled: v || V,
|
|
847
|
+
variant: "contained",
|
|
848
|
+
color: R.primaryColor,
|
|
849
|
+
startIcon: V ? /* @__PURE__ */ e(xe, { size: 16, color: "inherit" }) : void 0,
|
|
850
|
+
children: c
|
|
851
|
+
}
|
|
852
|
+
)
|
|
853
|
+
] }) })
|
|
1250
854
|
]
|
|
1251
855
|
}
|
|
1252
856
|
);
|
|
1253
|
-
},
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
const h = i;
|
|
1277
|
-
return ni(
|
|
1278
|
-
n,
|
|
1279
|
-
l,
|
|
1280
|
-
v,
|
|
1281
|
-
s,
|
|
1282
|
-
h.shape,
|
|
1283
|
-
h.showOutline ?? !0,
|
|
1284
|
-
g
|
|
1285
|
-
);
|
|
1286
|
-
}
|
|
1287
|
-
case "dot":
|
|
1288
|
-
return li(n, l, i.pulse || !1, g);
|
|
1289
|
-
case "chip": {
|
|
1290
|
-
const h = i;
|
|
1291
|
-
return ci(
|
|
1292
|
-
n,
|
|
1293
|
-
l === "large" ? "medium" : l,
|
|
1294
|
-
v,
|
|
1295
|
-
h.showIcon ?? !0,
|
|
1296
|
-
h.onClick,
|
|
1297
|
-
h.onDelete,
|
|
1298
|
-
g
|
|
1299
|
-
);
|
|
1300
|
-
}
|
|
1301
|
-
case "inline": {
|
|
1302
|
-
const h = i;
|
|
1303
|
-
return ai(
|
|
1304
|
-
n,
|
|
1305
|
-
l,
|
|
1306
|
-
v,
|
|
1307
|
-
h.showDot ?? !0,
|
|
1308
|
-
h.showIcon ?? !1,
|
|
1309
|
-
g
|
|
1310
|
-
);
|
|
1311
|
-
}
|
|
1312
|
-
case "badge": {
|
|
1313
|
-
const h = i;
|
|
1314
|
-
return si(
|
|
1315
|
-
n,
|
|
1316
|
-
h.children,
|
|
1317
|
-
h.count,
|
|
1318
|
-
h.dot,
|
|
1319
|
-
h.max ?? 999,
|
|
1320
|
-
h.invisible,
|
|
1321
|
-
g
|
|
1322
|
-
);
|
|
1323
|
-
}
|
|
1324
|
-
case "differential": {
|
|
1325
|
-
const h = i;
|
|
1326
|
-
return di(
|
|
1327
|
-
h.value,
|
|
1328
|
-
l,
|
|
1329
|
-
h.percentage || !1,
|
|
1330
|
-
h.currency,
|
|
1331
|
-
h.showIcon,
|
|
1332
|
-
h.showColor,
|
|
1333
|
-
h.positiveColor,
|
|
1334
|
-
h.negativeColor,
|
|
1335
|
-
g
|
|
1336
|
-
);
|
|
1337
|
-
}
|
|
1338
|
-
default:
|
|
1339
|
-
return null;
|
|
1340
|
-
}
|
|
1341
|
-
})();
|
|
1342
|
-
return !w || !D.isValidElement(w) ? w : D.cloneElement(w, {
|
|
1343
|
-
ref: t
|
|
1344
|
-
});
|
|
857
|
+
}), Ii = ({
|
|
858
|
+
open: r,
|
|
859
|
+
onClose: i,
|
|
860
|
+
onConfirm: t,
|
|
861
|
+
title: o = "Confirm Action",
|
|
862
|
+
message: n = "Are you sure you want to proceed?",
|
|
863
|
+
confirmLabel: l = "Confirm",
|
|
864
|
+
cancelLabel: c = "Cancel",
|
|
865
|
+
variant: s = "default",
|
|
866
|
+
loading: h = !1
|
|
867
|
+
}) => /* @__PURE__ */ e(
|
|
868
|
+
Ae,
|
|
869
|
+
{
|
|
870
|
+
open: r,
|
|
871
|
+
onClose: i,
|
|
872
|
+
title: o,
|
|
873
|
+
variant: s === "default" ? "confirm" : s,
|
|
874
|
+
primaryAction: l,
|
|
875
|
+
onPrimaryAction: t,
|
|
876
|
+
secondaryAction: c,
|
|
877
|
+
loading: h,
|
|
878
|
+
maxWidth: "xs",
|
|
879
|
+
children: /* @__PURE__ */ e(S, { color: "text.secondary", children: n })
|
|
1345
880
|
}
|
|
1346
|
-
),
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
881
|
+
), H = {
|
|
882
|
+
isOpen: !1,
|
|
883
|
+
title: "Confirm Action",
|
|
884
|
+
message: "Are you sure you want to proceed?",
|
|
885
|
+
variant: "default",
|
|
886
|
+
confirmLabel: "Confirm",
|
|
887
|
+
onConfirm: () => {
|
|
888
|
+
}
|
|
889
|
+
}, zi = () => {
|
|
890
|
+
const [r, i] = O(H), t = I(
|
|
891
|
+
(n) => {
|
|
892
|
+
i({
|
|
893
|
+
...H,
|
|
894
|
+
...n,
|
|
895
|
+
isOpen: !0
|
|
896
|
+
});
|
|
897
|
+
},
|
|
898
|
+
[]
|
|
899
|
+
), o = I(() => {
|
|
900
|
+
i((n) => ({ ...n, isOpen: !1 }));
|
|
901
|
+
}, []);
|
|
902
|
+
return { confirm: t, close: o, state: r };
|
|
903
|
+
}, K = ne(null), q = (r) => /* @__PURE__ */ e(ke, { ...r, direction: "left" }), Ne = (r) => /* @__PURE__ */ e(Se, { ...r }), Ge = (r) => /* @__PURE__ */ e(ve, { ...r }), Ue = (r) => {
|
|
904
|
+
const [i, t] = r.split("-");
|
|
905
|
+
return { vertical: i, horizontal: t };
|
|
906
|
+
}, He = (r) => {
|
|
907
|
+
switch (r) {
|
|
908
|
+
case "slide":
|
|
909
|
+
return q;
|
|
910
|
+
case "grow":
|
|
911
|
+
return Ne;
|
|
912
|
+
case "fade":
|
|
913
|
+
return Ge;
|
|
914
|
+
default:
|
|
915
|
+
return q;
|
|
916
|
+
}
|
|
917
|
+
}, qe = M.forwardRef(function({
|
|
918
|
+
id: i,
|
|
919
|
+
message: t,
|
|
920
|
+
title: o,
|
|
921
|
+
severity: n = "info",
|
|
922
|
+
duration: l = 5e3,
|
|
923
|
+
action: c,
|
|
924
|
+
onAction: s,
|
|
925
|
+
position: h = "top-right",
|
|
926
|
+
transition: x = "slide",
|
|
927
|
+
dismissible: p = !0,
|
|
928
|
+
open: v,
|
|
929
|
+
onClose: w
|
|
930
|
+
}, g) {
|
|
931
|
+
const L = Ue(h), D = He(x);
|
|
932
|
+
return /* @__PURE__ */ e(
|
|
933
|
+
me,
|
|
934
|
+
{
|
|
935
|
+
ref: g,
|
|
936
|
+
open: v,
|
|
937
|
+
autoHideDuration: l,
|
|
938
|
+
onClose: w,
|
|
939
|
+
anchorOrigin: L,
|
|
940
|
+
slots: { transition: D },
|
|
941
|
+
children: /* @__PURE__ */ f(
|
|
942
|
+
we,
|
|
943
|
+
{
|
|
944
|
+
severity: n,
|
|
945
|
+
variant: "filled",
|
|
946
|
+
onClose: p ? w : void 0,
|
|
947
|
+
action: c ? /* @__PURE__ */ e(E, { color: "inherit", size: "small", onClick: () => {
|
|
948
|
+
s?.(), w();
|
|
949
|
+
}, children: c }) : void 0,
|
|
950
|
+
sx: {
|
|
951
|
+
width: "100%",
|
|
952
|
+
minWidth: 300,
|
|
953
|
+
maxWidth: 500,
|
|
954
|
+
boxShadow: 3,
|
|
955
|
+
"& .MuiAlert-message": {
|
|
956
|
+
flex: 1
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
children: [
|
|
960
|
+
o && /* @__PURE__ */ e(be, { children: o }),
|
|
961
|
+
t
|
|
962
|
+
]
|
|
963
|
+
}
|
|
964
|
+
)
|
|
965
|
+
}
|
|
966
|
+
);
|
|
967
|
+
}), Di = ({
|
|
968
|
+
children: r,
|
|
969
|
+
defaultPosition: i = "top-right",
|
|
970
|
+
defaultDuration: t = 5e3,
|
|
971
|
+
maxToasts: o = 5,
|
|
972
|
+
defaultTransition: n = "slide"
|
|
1351
973
|
}) => {
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
974
|
+
const [l, c] = O([]), s = oe(0), h = I(() => (s.current += 1, `toast-${s.current}-${Date.now()}`), []), x = I(
|
|
975
|
+
(u) => {
|
|
976
|
+
const y = h(), b = {
|
|
977
|
+
...u,
|
|
978
|
+
id: y,
|
|
979
|
+
open: !0,
|
|
980
|
+
position: u.position ?? i,
|
|
981
|
+
duration: u.duration ?? t,
|
|
982
|
+
transition: u.transition ?? n,
|
|
983
|
+
dismissible: u.dismissible ?? !0
|
|
984
|
+
};
|
|
985
|
+
return c((j) => {
|
|
986
|
+
const $ = [...j, b];
|
|
987
|
+
return $.length > o ? $.slice(-o) : $;
|
|
988
|
+
}), y;
|
|
989
|
+
},
|
|
990
|
+
[h, i, t, n, o]
|
|
991
|
+
), p = I((u) => {
|
|
992
|
+
c(
|
|
993
|
+
(y) => y.map((b) => b.id === u ? { ...b, open: !1 } : b)
|
|
994
|
+
), setTimeout(() => {
|
|
995
|
+
c((y) => y.filter((b) => b.id !== u));
|
|
996
|
+
}, 300);
|
|
997
|
+
}, []), v = I(() => {
|
|
998
|
+
c((u) => u.map((y) => ({ ...y, open: !1 }))), setTimeout(() => {
|
|
999
|
+
c([]);
|
|
1000
|
+
}, 300);
|
|
1001
|
+
}, []), w = I(
|
|
1002
|
+
(u) => x(u),
|
|
1003
|
+
[x]
|
|
1004
|
+
), g = I(
|
|
1005
|
+
(u, y) => x({ message: u, severity: "success", ...y }),
|
|
1006
|
+
[x]
|
|
1007
|
+
), L = I(
|
|
1008
|
+
(u, y) => x({ message: u, severity: "info", ...y }),
|
|
1009
|
+
[x]
|
|
1010
|
+
), D = I(
|
|
1011
|
+
(u, y) => x({ message: u, severity: "warning", ...y }),
|
|
1012
|
+
[x]
|
|
1013
|
+
), m = I(
|
|
1014
|
+
(u, y) => x({ message: u, severity: "error", ...y }),
|
|
1015
|
+
[x]
|
|
1016
|
+
), F = {
|
|
1017
|
+
toast: w,
|
|
1018
|
+
success: g,
|
|
1019
|
+
info: L,
|
|
1020
|
+
warning: D,
|
|
1021
|
+
error: m,
|
|
1022
|
+
dismiss: p,
|
|
1023
|
+
dismissAll: v
|
|
1024
|
+
}, Q = l.reduce((u, y) => {
|
|
1025
|
+
const b = y.position || i;
|
|
1026
|
+
return u[b] || (u[b] = []), u[b].push(y), u;
|
|
1027
|
+
}, {});
|
|
1028
|
+
return /* @__PURE__ */ f(K.Provider, { value: F, children: [
|
|
1029
|
+
r,
|
|
1030
|
+
/* @__PURE__ */ e(ye, { children: Object.entries(Q).map(([u, y]) => /* @__PURE__ */ e(
|
|
1031
|
+
C,
|
|
1032
|
+
{
|
|
1033
|
+
sx: {
|
|
1034
|
+
position: "fixed",
|
|
1035
|
+
zIndex: 9999,
|
|
1036
|
+
...Je(u),
|
|
1037
|
+
display: "flex",
|
|
1038
|
+
flexDirection: "column",
|
|
1039
|
+
gap: 1,
|
|
1040
|
+
pointerEvents: "none",
|
|
1041
|
+
"& > *": {
|
|
1042
|
+
pointerEvents: "auto"
|
|
1368
1043
|
}
|
|
1369
1044
|
},
|
|
1370
|
-
...
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1045
|
+
children: y.map((b) => /* @__PURE__ */ e(qe, { ...b, onClose: () => p(b.id) }, b.id))
|
|
1046
|
+
},
|
|
1047
|
+
u
|
|
1048
|
+
)) })
|
|
1049
|
+
] });
|
|
1050
|
+
}, Je = (r) => {
|
|
1051
|
+
const i = {};
|
|
1052
|
+
return r.startsWith("top") && (i.top = 16), r.startsWith("bottom") && (i.bottom = 16), r.endsWith("left") && (i.left = 16), r.endsWith("right") && (i.right = 16), r.endsWith("center") && (i.left = "50%", i.transform = "translateX(-50%)"), i;
|
|
1053
|
+
}, Mi = () => {
|
|
1054
|
+
const r = le(K);
|
|
1055
|
+
if (!r)
|
|
1056
|
+
throw new Error("useToast must be used within a ToastProvider");
|
|
1057
|
+
return r;
|
|
1058
|
+
}, k = {
|
|
1059
|
+
// Error/danger - Tailwind red-500
|
|
1060
|
+
error: {
|
|
1061
|
+
main: "#EF4444",
|
|
1062
|
+
light: "#FEE2E2"
|
|
1063
|
+
},
|
|
1064
|
+
// Warning/caution - Tailwind amber-500
|
|
1065
|
+
warning: {
|
|
1066
|
+
main: "#F59E0B",
|
|
1067
|
+
light: "#FEF3C7"
|
|
1068
|
+
},
|
|
1069
|
+
// Success/positive - Tailwind emerald-500
|
|
1070
|
+
success: {
|
|
1071
|
+
main: "#10B981",
|
|
1072
|
+
light: "#D1FAE5"
|
|
1073
|
+
},
|
|
1074
|
+
// Accent/highlight - Yellow for flames/sparks
|
|
1075
|
+
accent: {
|
|
1076
|
+
flame: "#FFD93D"
|
|
1077
|
+
}
|
|
1078
|
+
}, X = {
|
|
1079
|
+
small: {
|
|
1080
|
+
illustrationSize: 120,
|
|
1081
|
+
titleVariant: "subtitle1",
|
|
1082
|
+
descriptionVariant: "body2",
|
|
1083
|
+
spacing: 2,
|
|
1084
|
+
padding: 3
|
|
1085
|
+
},
|
|
1086
|
+
medium: {
|
|
1087
|
+
illustrationSize: 180,
|
|
1088
|
+
titleVariant: "h6",
|
|
1089
|
+
descriptionVariant: "body1",
|
|
1090
|
+
spacing: 3,
|
|
1091
|
+
padding: 4
|
|
1092
|
+
},
|
|
1093
|
+
large: {
|
|
1094
|
+
illustrationSize: 240,
|
|
1095
|
+
titleVariant: "h5",
|
|
1096
|
+
descriptionVariant: "body1",
|
|
1097
|
+
spacing: 4,
|
|
1098
|
+
padding: 6
|
|
1099
|
+
}
|
|
1100
|
+
}, Ke = ({
|
|
1101
|
+
size: r = 180,
|
|
1102
|
+
primaryColor: i = d.primary.main,
|
|
1103
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1104
|
+
accentColor: o = d.secondary.main
|
|
1105
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1106
|
+
/* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "100", rx: "8", fill: t }),
|
|
1107
|
+
/* @__PURE__ */ e("rect", { x: "20", y: "60", width: "160", height: "24", rx: "8", fill: i, opacity: "0.2" }),
|
|
1108
|
+
/* @__PURE__ */ e("rect", { x: "30", y: "94", width: "60", height: "8", rx: "4", fill: t, opacity: "0.8" }),
|
|
1109
|
+
/* @__PURE__ */ e("rect", { x: "100", y: "94", width: "70", height: "8", rx: "4", fill: t, opacity: "0.6" }),
|
|
1110
|
+
/* @__PURE__ */ e("rect", { x: "30", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.8" }),
|
|
1111
|
+
/* @__PURE__ */ e("rect", { x: "100", y: "114", width: "50", height: "8", rx: "4", fill: t, opacity: "0.6" }),
|
|
1112
|
+
/* @__PURE__ */ e("rect", { x: "30", y: "134", width: "70", height: "8", rx: "4", fill: t, opacity: "0.8" }),
|
|
1113
|
+
/* @__PURE__ */ e("rect", { x: "100", y: "134", width: "60", height: "8", rx: "4", fill: t, opacity: "0.6" }),
|
|
1114
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "35", fill: "white", stroke: i, strokeWidth: "3", strokeDasharray: "6 4" }),
|
|
1115
|
+
/* @__PURE__ */ e("text", { x: "100", y: "122", textAnchor: "middle", fill: i, fontSize: "32", fontWeight: "300", children: "?" })
|
|
1116
|
+
] }), Xe = ({
|
|
1117
|
+
size: r = 180,
|
|
1118
|
+
primaryColor: i = d.primary.main,
|
|
1119
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1120
|
+
accentColor: o = d.secondary.main
|
|
1121
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1122
|
+
/* @__PURE__ */ e("rect", { x: "50", y: "50", width: "100", height: "120", rx: "6", fill: t, transform: "rotate(-5 50 50)" }),
|
|
1123
|
+
/* @__PURE__ */ e("rect", { x: "55", y: "45", width: "100", height: "120", rx: "6", fill: "white", stroke: t, strokeWidth: "2" }),
|
|
1124
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "65", width: "60", height: "6", rx: "3", fill: t }),
|
|
1125
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "80", width: "70", height: "6", rx: "3", fill: t, opacity: "0.6" }),
|
|
1126
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "95", width: "50", height: "6", rx: "3", fill: t, opacity: "0.4" }),
|
|
1127
|
+
/* @__PURE__ */ f("g", { transform: "translate(120, 100) rotate(45)", children: [
|
|
1128
|
+
/* @__PURE__ */ e("rect", { x: "0", y: "0", width: "50", height: "10", fill: o }),
|
|
1129
|
+
/* @__PURE__ */ e("polygon", { points: "50,0 60,5 50,10", fill: o, opacity: "0.7" }),
|
|
1130
|
+
/* @__PURE__ */ e("rect", { x: "-5", y: "2", width: "5", height: "6", fill: i })
|
|
1131
|
+
] })
|
|
1132
|
+
] }), Ye = ({
|
|
1133
|
+
size: r = 180,
|
|
1134
|
+
primaryColor: i = d.primary.main,
|
|
1135
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1136
|
+
accentColor: o = d.secondary.main
|
|
1137
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1138
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "30", ry: "50", fill: i }),
|
|
1139
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "12", fill: "white" }),
|
|
1140
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "85", r: "8", fill: o, opacity: "0.3" }),
|
|
1141
|
+
/* @__PURE__ */ e("path", { d: "M70 120 L50 150 L70 140 Z", fill: o }),
|
|
1142
|
+
/* @__PURE__ */ e("path", { d: "M130 120 L150 150 L130 140 Z", fill: o }),
|
|
1143
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "160", rx: "15", ry: "25", fill: o, opacity: "0.8" }),
|
|
1144
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "155", rx: "10", ry: "18", fill: k.accent.flame }),
|
|
1145
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "150", rx: "5", ry: "10", fill: "white" }),
|
|
1146
|
+
/* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "3", fill: i, opacity: "0.5" }),
|
|
1147
|
+
/* @__PURE__ */ e("circle", { cx: "160", cy: "40", r: "2", fill: i, opacity: "0.5" }),
|
|
1148
|
+
/* @__PURE__ */ e("circle", { cx: "30", cy: "120", r: "2", fill: o, opacity: "0.5" }),
|
|
1149
|
+
/* @__PURE__ */ e("circle", { cx: "170", cy: "100", r: "3", fill: o, opacity: "0.5" })
|
|
1150
|
+
] }), ei = ({
|
|
1151
|
+
size: r = 180,
|
|
1152
|
+
primaryColor: i = d.primary.main,
|
|
1153
|
+
secondaryColor: t = d.neutral.gray100
|
|
1154
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1155
|
+
/* @__PURE__ */ e("path", { d: "M30 70 L30 160 L170 160 L170 70 L100 70 L90 55 L30 55 Z", fill: t }),
|
|
1156
|
+
/* @__PURE__ */ e("path", { d: "M30 70 L170 70 L170 160 L30 160 Z", fill: "white", stroke: t, strokeWidth: "2" }),
|
|
1157
|
+
/* @__PURE__ */ e("rect", { x: "60", y: "85", width: "50", height: "60", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
1158
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "95", width: "30", height: "4", rx: "2", fill: t }),
|
|
1159
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "105", width: "25", height: "4", rx: "2", fill: t, opacity: "0.6" }),
|
|
1160
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "115", width: "30", height: "4", rx: "2", fill: t, opacity: "0.4" }),
|
|
1161
|
+
/* @__PURE__ */ e("circle", { cx: "140", cy: "130", r: "20", fill: i }),
|
|
1162
|
+
/* @__PURE__ */ e("rect", { x: "132", y: "127", width: "16", height: "6", rx: "3", fill: "white" }),
|
|
1163
|
+
/* @__PURE__ */ e("rect", { x: "137", y: "122", width: "6", height: "16", rx: "3", fill: "white" })
|
|
1164
|
+
] }), ii = ({
|
|
1165
|
+
size: r = 180,
|
|
1166
|
+
primaryColor: i = d.primary.main,
|
|
1167
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1168
|
+
accentColor: o = d.secondary.main
|
|
1169
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1170
|
+
/* @__PURE__ */ e("rect", { x: "30", y: "40", width: "140", height: "120", rx: "8", fill: "white", stroke: t, strokeWidth: "2" }),
|
|
1171
|
+
/* @__PURE__ */ e("line", { x1: "30", y1: "80", x2: "170", y2: "80", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
|
|
1172
|
+
/* @__PURE__ */ e("line", { x1: "30", y1: "120", x2: "170", y2: "120", stroke: t, strokeWidth: "1", strokeDasharray: "4" }),
|
|
1173
|
+
/* @__PURE__ */ e("rect", { x: "50", y: "100", width: "20", height: "50", rx: "4", fill: t, opacity: "0.5" }),
|
|
1174
|
+
/* @__PURE__ */ e("rect", { x: "90", y: "80", width: "20", height: "70", rx: "4", fill: t, opacity: "0.5" }),
|
|
1175
|
+
/* @__PURE__ */ e("rect", { x: "130", y: "90", width: "20", height: "60", rx: "4", fill: t, opacity: "0.5" }),
|
|
1176
|
+
/* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "25", fill: o, opacity: "0.2" }),
|
|
1177
|
+
/* @__PURE__ */ e("path", { d: "M160 45 L160 55 M148 52 L155 58 M172 52 L165 58", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
|
|
1178
|
+
/* @__PURE__ */ e("circle", { cx: "160", cy: "65", r: "10", fill: o }),
|
|
1179
|
+
/* @__PURE__ */ e("rect", { x: "155", y: "75", width: "10", height: "8", rx: "2", fill: i })
|
|
1180
|
+
] }), ti = ({
|
|
1181
|
+
size: r = 180,
|
|
1182
|
+
primaryColor: i = d.primary.main,
|
|
1183
|
+
secondaryColor: t = d.neutral.gray100
|
|
1184
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1185
|
+
/* @__PURE__ */ e("circle", { cx: "85", cy: "85", r: "45", fill: "white", stroke: i, strokeWidth: "4" }),
|
|
1186
|
+
/* @__PURE__ */ e("line", { x1: "118", y1: "118", x2: "160", y2: "160", stroke: i, strokeWidth: "8", strokeLinecap: "round" }),
|
|
1187
|
+
/* @__PURE__ */ e("line", { x1: "65", y1: "65", x2: "105", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
|
|
1188
|
+
/* @__PURE__ */ e("line", { x1: "105", y1: "65", x2: "65", y2: "105", stroke: t, strokeWidth: "6", strokeLinecap: "round" }),
|
|
1189
|
+
/* @__PURE__ */ e("text", { x: "155", y: "50", fill: t, fontSize: "20", fontWeight: "bold", children: "?" }),
|
|
1190
|
+
/* @__PURE__ */ e("text", { x: "40", y: "160", fill: t, fontSize: "16", fontWeight: "bold", children: "?" })
|
|
1191
|
+
] }), ri = ({
|
|
1192
|
+
size: r = 180,
|
|
1193
|
+
primaryColor: i = d.primary.main,
|
|
1194
|
+
secondaryColor: t = d.neutral.gray100
|
|
1195
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1196
|
+
/* @__PURE__ */ e("path", { d: "M100 30 L170 150 L30 150 Z", fill: k.warning.light, stroke: k.warning.main, strokeWidth: "3" }),
|
|
1197
|
+
/* @__PURE__ */ e("rect", { x: "94", y: "70", width: "12", height: "45", rx: "6", fill: k.warning.main }),
|
|
1198
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "130", r: "7", fill: k.warning.main }),
|
|
1199
|
+
/* @__PURE__ */ e("circle", { cx: "30", cy: "60", r: "8", fill: t, opacity: "0.5" }),
|
|
1200
|
+
/* @__PURE__ */ e("circle", { cx: "170", cy: "80", r: "6", fill: t, opacity: "0.5" }),
|
|
1201
|
+
/* @__PURE__ */ e("rect", { x: "160", y: "130", width: "20", height: "4", rx: "2", fill: t, opacity: "0.3" }),
|
|
1202
|
+
/* @__PURE__ */ e("rect", { x: "20", y: "120", width: "15", height: "4", rx: "2", fill: t, opacity: "0.3" })
|
|
1203
|
+
] }), oi = ({
|
|
1204
|
+
size: r = 180,
|
|
1205
|
+
primaryColor: i = d.primary.main,
|
|
1206
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1207
|
+
accentColor: o = d.secondary.main
|
|
1208
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1209
|
+
/* @__PURE__ */ e("text", { x: "100", y: "100", textAnchor: "middle", fill: i, fontSize: "48", fontWeight: "bold", children: "404" }),
|
|
1210
|
+
/* @__PURE__ */ e("path", { d: "M60 130 Q40 130 40 150 Q40 170 60 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
|
|
1211
|
+
/* @__PURE__ */ e("path", { d: "M140 130 Q160 130 160 150 Q160 170 140 170", stroke: t, strokeWidth: "4", fill: "none", strokeLinecap: "round" }),
|
|
1212
|
+
/* @__PURE__ */ e("line", { x1: "85", y1: "150", x2: "95", y2: "140", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
|
|
1213
|
+
/* @__PURE__ */ e("line", { x1: "105", y1: "160", x2: "115", y2: "150", stroke: o, strokeWidth: "3", strokeLinecap: "round" }),
|
|
1214
|
+
/* @__PURE__ */ e("circle", { cx: "75", cy: "60", r: "5", fill: i }),
|
|
1215
|
+
/* @__PURE__ */ e("circle", { cx: "125", cy: "60", r: "5", fill: i }),
|
|
1216
|
+
/* @__PURE__ */ e("path", { d: "M80 75 Q100 65 120 75", stroke: i, strokeWidth: "3", fill: "none", strokeLinecap: "round" })
|
|
1217
|
+
] }), ni = ({
|
|
1218
|
+
size: r = 180,
|
|
1219
|
+
primaryColor: i = d.primary.main,
|
|
1220
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1221
|
+
accentColor: o = d.secondary.main
|
|
1222
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1223
|
+
/* @__PURE__ */ e("rect", { x: "60", y: "40", width: "80", height: "120", rx: "8", fill: t }),
|
|
1224
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "50", width: "60", height: "25", rx: "4", fill: "white" }),
|
|
1225
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "85", width: "60", height: "25", rx: "4", fill: "white" }),
|
|
1226
|
+
/* @__PURE__ */ e("rect", { x: "70", y: "120", width: "60", height: "25", rx: "4", fill: "white" }),
|
|
1227
|
+
/* @__PURE__ */ e("circle", { cx: "80", cy: "62", r: "4", fill: k.error.main }),
|
|
1228
|
+
/* @__PURE__ */ e("circle", { cx: "92", cy: "62", r: "4", fill: k.error.main }),
|
|
1229
|
+
/* @__PURE__ */ e("circle", { cx: "80", cy: "97", r: "4", fill: k.error.main }),
|
|
1230
|
+
/* @__PURE__ */ e("circle", { cx: "92", cy: "97", r: "4", fill: o, opacity: "0.5" }),
|
|
1231
|
+
/* @__PURE__ */ e("circle", { cx: "80", cy: "132", r: "4", fill: o, opacity: "0.5" }),
|
|
1232
|
+
/* @__PURE__ */ e("circle", { cx: "92", cy: "132", r: "4", fill: o, opacity: "0.5" }),
|
|
1233
|
+
/* @__PURE__ */ e("path", { d: "M150 50 L135 90 L150 90 L130 130 L155 80 L140 80 Z", fill: o }),
|
|
1234
|
+
/* @__PURE__ */ f("g", { transform: "translate(40, 70)", children: [
|
|
1235
|
+
/* @__PURE__ */ e("line", { x1: "0", y1: "0", x2: "15", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" }),
|
|
1236
|
+
/* @__PURE__ */ e("line", { x1: "15", y1: "0", x2: "0", y2: "15", stroke: k.error.main, strokeWidth: "3", strokeLinecap: "round" })
|
|
1237
|
+
] })
|
|
1238
|
+
] }), li = ({
|
|
1239
|
+
size: r = 180,
|
|
1240
|
+
primaryColor: i = d.primary.main,
|
|
1241
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1242
|
+
accentColor: o = d.secondary.main
|
|
1243
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1244
|
+
/* @__PURE__ */ e("rect", { x: "60", y: "90", width: "80", height: "70", rx: "10", fill: i }),
|
|
1245
|
+
/* @__PURE__ */ e("path", { d: "M75 90 L75 60 Q75 40 100 40 Q125 40 125 60 L125 90", stroke: i, strokeWidth: "10", fill: "none", strokeLinecap: "round" }),
|
|
1246
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "115", r: "12", fill: "white" }),
|
|
1247
|
+
/* @__PURE__ */ e("rect", { x: "95", y: "115", width: "10", height: "20", rx: "3", fill: "white" }),
|
|
1248
|
+
/* @__PURE__ */ e("path", { d: "M100 25 L140 45 L140 85 Q140 115 100 135 Q60 115 60 85 L60 45 Z", fill: o, opacity: "0.15" }),
|
|
1249
|
+
/* @__PURE__ */ e("circle", { cx: "155", cy: "65", r: "20", fill: k.error.light, stroke: k.error.main, strokeWidth: "2" }),
|
|
1250
|
+
/* @__PURE__ */ e("rect", { x: "147", y: "55", width: "16", height: "20", rx: "4", fill: k.error.main })
|
|
1251
|
+
] }), Y = ({
|
|
1252
|
+
size: r = 180,
|
|
1253
|
+
primaryColor: i = d.primary.main,
|
|
1254
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1255
|
+
accentColor: o = d.secondary.main
|
|
1256
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1257
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "60", ry: "40", fill: t }),
|
|
1258
|
+
/* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "35", ry: "25", fill: t }),
|
|
1259
|
+
/* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "35", ry: "25", fill: t }),
|
|
1260
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "50", ry: "30", fill: t }),
|
|
1261
|
+
/* @__PURE__ */ e("rect", { x: "92", y: "110", width: "16", height: "50", rx: "4", fill: i }),
|
|
1262
|
+
/* @__PURE__ */ e("polygon", { points: "100,85 75,120 125,120", fill: i }),
|
|
1263
|
+
/* @__PURE__ */ e("rect", { x: "30", y: "140", width: "140", height: "50", rx: "8", fill: "white", stroke: o, strokeWidth: "2", strokeDasharray: "8 4" }),
|
|
1264
|
+
/* @__PURE__ */ e("rect", { x: "85", y: "150", width: "30", height: "35", rx: "4", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
1265
|
+
/* @__PURE__ */ e("path", { d: "M100 150 L115 150 L115 165 L100 165 L100 150 Z", fill: i, opacity: "0.2" })
|
|
1266
|
+
] }), ci = ({
|
|
1267
|
+
size: r = 180,
|
|
1268
|
+
primaryColor: i = d.primary.main,
|
|
1269
|
+
secondaryColor: t = d.neutral.gray100,
|
|
1270
|
+
accentColor: o = d.secondary.main
|
|
1271
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1272
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "70", fill: k.success.light }),
|
|
1273
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "55", fill: k.success.main }),
|
|
1274
|
+
/* @__PURE__ */ e("path", { d: "M65 100 L90 125 L135 75", stroke: "white", strokeWidth: "10", strokeLinecap: "round", strokeLinejoin: "round", fill: "none" }),
|
|
1275
|
+
/* @__PURE__ */ e("circle", { cx: "40", cy: "50", r: "6", fill: o, opacity: "0.6" }),
|
|
1276
|
+
/* @__PURE__ */ e("circle", { cx: "160", cy: "60", r: "4", fill: o, opacity: "0.6" }),
|
|
1277
|
+
/* @__PURE__ */ e("circle", { cx: "170", cy: "130", r: "5", fill: i, opacity: "0.4" }),
|
|
1278
|
+
/* @__PURE__ */ e("circle", { cx: "30", cy: "140", r: "4", fill: i, opacity: "0.4" }),
|
|
1279
|
+
/* @__PURE__ */ e("path", { d: "M45 170 L50 180 L55 170 L60 180", stroke: o, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" }),
|
|
1280
|
+
/* @__PURE__ */ e("path", { d: "M140 170 L145 180 L150 170 L155 180", stroke: i, strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
|
|
1281
|
+
] }), ai = ({
|
|
1282
|
+
size: r = 180,
|
|
1283
|
+
primaryColor: i = d.primary.main,
|
|
1284
|
+
secondaryColor: t = d.neutral.gray100
|
|
1285
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1286
|
+
/* @__PURE__ */ e("path", { d: "M100 40 Q130 40 140 80 L145 120 L55 120 L60 80 Q70 40 100 40 Z", fill: t }),
|
|
1287
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "120", rx: "50", ry: "12", fill: t }),
|
|
1288
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "145", r: "12", fill: t }),
|
|
1289
|
+
/* @__PURE__ */ e("path", { d: "M100 40 L100 25", stroke: i, strokeWidth: "4", strokeLinecap: "round" }),
|
|
1290
|
+
/* @__PURE__ */ e("text", { x: "145", y: "60", fill: i, fontSize: "20", fontWeight: "bold", opacity: "0.6", children: "Z" }),
|
|
1291
|
+
/* @__PURE__ */ e("text", { x: "155", y: "45", fill: i, fontSize: "16", fontWeight: "bold", opacity: "0.4", children: "z" }),
|
|
1292
|
+
/* @__PURE__ */ e("text", { x: "165", y: "35", fill: i, fontSize: "12", fontWeight: "bold", opacity: "0.2", children: "z" })
|
|
1293
|
+
] }), si = ({
|
|
1294
|
+
size: r = 180,
|
|
1295
|
+
primaryColor: i = d.primary.main,
|
|
1296
|
+
secondaryColor: t = d.neutral.gray100
|
|
1297
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1298
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: t }),
|
|
1299
|
+
/* @__PURE__ */ e("rect", { x: "50", y: "60", width: "100", height: "80", fill: t }),
|
|
1300
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: t }),
|
|
1301
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "60", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
1302
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "140", rx: "50", ry: "20", fill: "white", stroke: i, strokeWidth: "2" }),
|
|
1303
|
+
/* @__PURE__ */ e("line", { x1: "50", y1: "60", x2: "50", y2: "140", stroke: i, strokeWidth: "2" }),
|
|
1304
|
+
/* @__PURE__ */ e("line", { x1: "150", y1: "60", x2: "150", y2: "140", stroke: i, strokeWidth: "2" }),
|
|
1305
|
+
/* @__PURE__ */ e("circle", { cx: "100", cy: "100", r: "25", fill: "white", stroke: i, strokeWidth: "2", strokeDasharray: "5 3" }),
|
|
1306
|
+
/* @__PURE__ */ e("text", { x: "100", y: "108", textAnchor: "middle", fill: i, fontSize: "24", fontWeight: "300", children: "0" })
|
|
1307
|
+
] }), di = ({
|
|
1308
|
+
size: r = 180,
|
|
1309
|
+
primaryColor: i = d.primary.main,
|
|
1310
|
+
secondaryColor: t = d.neutral.gray100
|
|
1311
|
+
}) => /* @__PURE__ */ f("svg", { width: r, height: r, viewBox: "0 0 200 200", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1312
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "80", rx: "55", ry: "35", fill: t }),
|
|
1313
|
+
/* @__PURE__ */ e("ellipse", { cx: "60", cy: "95", rx: "30", ry: "22", fill: t }),
|
|
1314
|
+
/* @__PURE__ */ e("ellipse", { cx: "140", cy: "95", rx: "30", ry: "22", fill: t }),
|
|
1315
|
+
/* @__PURE__ */ e("ellipse", { cx: "100", cy: "100", rx: "45", ry: "25", fill: t }),
|
|
1316
|
+
/* @__PURE__ */ e("line", { x1: "75", y1: "70", x2: "125", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
|
|
1317
|
+
/* @__PURE__ */ e("line", { x1: "125", y1: "70", x2: "75", y2: "110", stroke: k.error.main, strokeWidth: "8", strokeLinecap: "round" }),
|
|
1318
|
+
/* @__PURE__ */ e("path", { d: "M45 140 Q45 160 65 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
|
|
1319
|
+
/* @__PURE__ */ e("path", { d: "M35 145 Q35 170 65 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" }),
|
|
1320
|
+
/* @__PURE__ */ e("path", { d: "M155 140 Q155 160 135 160", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round" }),
|
|
1321
|
+
/* @__PURE__ */ e("path", { d: "M165 145 Q165 170 135 170", stroke: t, strokeWidth: "3", fill: "none", strokeLinecap: "round", opacity: "0.6" })
|
|
1322
|
+
] }), hi = {
|
|
1323
|
+
"empty-table": Ke,
|
|
1324
|
+
"empty-drafts": Xe,
|
|
1325
|
+
"getting-started": Ye,
|
|
1326
|
+
"empty-documents": ei,
|
|
1327
|
+
"empty-insights": ii,
|
|
1328
|
+
"no-results": ti,
|
|
1329
|
+
"error-generic": ri,
|
|
1330
|
+
"error-404": oi,
|
|
1331
|
+
"error-500": ni,
|
|
1332
|
+
"error-permission": li,
|
|
1333
|
+
upload: Y,
|
|
1334
|
+
success: ci,
|
|
1335
|
+
"no-notifications": ai,
|
|
1336
|
+
"no-data": si,
|
|
1337
|
+
offline: di
|
|
1338
|
+
}, Pi = M.forwardRef(
|
|
1339
|
+
function({ illustration: i, title: t, description: o, primaryAction: n, secondaryAction: l, size: c = "medium", customIllustration: s, sx: h }, x) {
|
|
1340
|
+
const p = X[c], v = hi[i];
|
|
1341
|
+
return /* @__PURE__ */ f(
|
|
1342
|
+
C,
|
|
1343
|
+
{
|
|
1344
|
+
ref: x,
|
|
1345
|
+
sx: {
|
|
1346
|
+
textAlign: "center",
|
|
1347
|
+
p: p.padding,
|
|
1348
|
+
maxWidth: c === "small" ? 300 : c === "large" ? 500 : 400,
|
|
1349
|
+
mx: "auto",
|
|
1350
|
+
...h
|
|
1351
|
+
},
|
|
1352
|
+
children: [
|
|
1353
|
+
/* @__PURE__ */ e(
|
|
1393
1354
|
C,
|
|
1394
1355
|
{
|
|
1395
1356
|
sx: {
|
|
1357
|
+
mb: p.spacing,
|
|
1396
1358
|
display: "flex",
|
|
1397
|
-
alignItems: "center",
|
|
1398
1359
|
justifyContent: "center",
|
|
1399
|
-
|
|
1400
|
-
height: l.icon + 4,
|
|
1401
|
-
borderRadius: `${I.borders.radius.circle}px`,
|
|
1402
|
-
// Perfect circle
|
|
1403
|
-
backgroundColor: g.backgroundColor,
|
|
1404
|
-
color: g.color
|
|
1360
|
+
alignItems: "center"
|
|
1405
1361
|
},
|
|
1406
|
-
|
|
1362
|
+
role: "img",
|
|
1363
|
+
"aria-hidden": "true",
|
|
1364
|
+
children: s || /* @__PURE__ */ e(v, { size: p.illustrationSize })
|
|
1407
1365
|
}
|
|
1408
1366
|
),
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
p,
|
|
1413
|
-
{
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1367
|
+
/* @__PURE__ */ e(
|
|
1368
|
+
S,
|
|
1369
|
+
{
|
|
1370
|
+
variant: p.titleVariant,
|
|
1371
|
+
sx: { mb: 1, fontWeight: 600 },
|
|
1372
|
+
children: t
|
|
1373
|
+
}
|
|
1374
|
+
),
|
|
1375
|
+
o && /* @__PURE__ */ e(
|
|
1376
|
+
S,
|
|
1377
|
+
{
|
|
1378
|
+
variant: p.descriptionVariant,
|
|
1379
|
+
color: "text.secondary",
|
|
1380
|
+
sx: { mb: p.spacing },
|
|
1381
|
+
children: o
|
|
1382
|
+
}
|
|
1383
|
+
),
|
|
1384
|
+
(n || l) && /* @__PURE__ */ f(
|
|
1385
|
+
P,
|
|
1386
|
+
{
|
|
1387
|
+
spacing: 1.5,
|
|
1388
|
+
sx: { mt: p.spacing, alignItems: "center" },
|
|
1389
|
+
children: [
|
|
1390
|
+
n && (n.href ? /* @__PURE__ */ e(
|
|
1391
|
+
E,
|
|
1392
|
+
{
|
|
1393
|
+
variant: "contained",
|
|
1394
|
+
href: n.href,
|
|
1395
|
+
onClick: n.onClick,
|
|
1396
|
+
children: n.label
|
|
1397
|
+
}
|
|
1398
|
+
) : /* @__PURE__ */ e(
|
|
1399
|
+
E,
|
|
1400
|
+
{
|
|
1401
|
+
variant: "contained",
|
|
1402
|
+
onClick: n.onClick,
|
|
1403
|
+
children: n.label
|
|
1404
|
+
}
|
|
1405
|
+
)),
|
|
1406
|
+
l && (l.href ? /* @__PURE__ */ e(
|
|
1407
|
+
U,
|
|
1408
|
+
{
|
|
1409
|
+
href: l.href,
|
|
1410
|
+
onClick: l.onClick,
|
|
1411
|
+
underline: "hover",
|
|
1412
|
+
sx: { cursor: "pointer" },
|
|
1413
|
+
children: l.label
|
|
1414
|
+
}
|
|
1415
|
+
) : /* @__PURE__ */ e(
|
|
1416
|
+
U,
|
|
1417
|
+
{
|
|
1418
|
+
component: "button",
|
|
1419
|
+
onClick: l.onClick,
|
|
1420
|
+
underline: "hover",
|
|
1421
|
+
sx: { cursor: "pointer" },
|
|
1422
|
+
children: l.label
|
|
1423
|
+
}
|
|
1424
|
+
))
|
|
1425
|
+
]
|
|
1426
|
+
}
|
|
1427
|
+
)
|
|
1428
|
+
]
|
|
1429
|
+
}
|
|
1430
|
+
);
|
|
1431
|
+
}
|
|
1432
|
+
), Bi = M.forwardRef(
|
|
1433
|
+
function({
|
|
1434
|
+
title: i = "Drag and drop your file",
|
|
1435
|
+
description: t = "or click to browse from your computer",
|
|
1436
|
+
acceptedTypes: o = "PNG, JPG, PDF up to 10MB",
|
|
1437
|
+
browseLabel: n = "Browse Files",
|
|
1438
|
+
onDrop: l,
|
|
1439
|
+
onBrowse: c,
|
|
1440
|
+
isDragging: s = !1,
|
|
1441
|
+
size: h = "medium",
|
|
1442
|
+
sx: x
|
|
1443
|
+
}, p) {
|
|
1444
|
+
const [v, w] = M.useState(s), g = X[h], L = (m) => {
|
|
1445
|
+
m.preventDefault(), m.stopPropagation(), m.type === "dragenter" || m.type === "dragover" ? w(!0) : m.type === "dragleave" && w(!1);
|
|
1446
|
+
};
|
|
1447
|
+
return /* @__PURE__ */ f(
|
|
1448
|
+
C,
|
|
1449
|
+
{
|
|
1450
|
+
ref: p,
|
|
1451
|
+
onDragEnter: L,
|
|
1452
|
+
onDragLeave: L,
|
|
1453
|
+
onDragOver: L,
|
|
1454
|
+
onDrop: (m) => {
|
|
1455
|
+
m.preventDefault(), m.stopPropagation(), w(!1), m.dataTransfer.files && m.dataTransfer.files.length > 0 && l?.(m.dataTransfer.files);
|
|
1456
|
+
},
|
|
1457
|
+
sx: {
|
|
1458
|
+
p: g.padding,
|
|
1459
|
+
border: "2px dashed",
|
|
1460
|
+
borderColor: v ? "primary.main" : "grey.300",
|
|
1461
|
+
borderRadius: 3,
|
|
1462
|
+
// 12px - consistent with cards
|
|
1463
|
+
bgcolor: v ? "primary.50" : "grey.50",
|
|
1464
|
+
textAlign: "center",
|
|
1465
|
+
cursor: "pointer",
|
|
1466
|
+
transition: "all 0.2s ease",
|
|
1467
|
+
"&:hover": {
|
|
1468
|
+
borderColor: "primary.main",
|
|
1469
|
+
bgcolor: "primary.50"
|
|
1470
|
+
},
|
|
1471
|
+
...x
|
|
1472
|
+
},
|
|
1473
|
+
onClick: c,
|
|
1474
|
+
children: [
|
|
1475
|
+
/* @__PURE__ */ e(C, { sx: { mb: 2 }, children: /* @__PURE__ */ e(Y, { size: g.illustrationSize * 0.7 }) }),
|
|
1476
|
+
/* @__PURE__ */ e(S, { variant: g.titleVariant, sx: { mb: 0.5, fontWeight: 600 }, children: i }),
|
|
1477
|
+
/* @__PURE__ */ e(S, { variant: g.descriptionVariant, color: "text.secondary", sx: { mb: 2 }, children: t }),
|
|
1478
|
+
/* @__PURE__ */ e(E, { variant: "outlined", size: h === "small" ? "small" : "medium", children: n }),
|
|
1479
|
+
o && /* @__PURE__ */ e(S, { variant: "caption", color: "text.secondary", sx: { mt: 2, display: "block" }, children: o })
|
|
1480
|
+
]
|
|
1481
|
+
}
|
|
1482
|
+
);
|
|
1483
|
+
}
|
|
1484
|
+
);
|
|
1445
1485
|
export {
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
Li as
|
|
1486
|
+
Ii as C,
|
|
1487
|
+
Pi as I,
|
|
1488
|
+
Ae as M,
|
|
1489
|
+
Ci as S,
|
|
1490
|
+
Di as T,
|
|
1491
|
+
Bi as U,
|
|
1492
|
+
Wi as a,
|
|
1493
|
+
Mi as b,
|
|
1494
|
+
qe as c,
|
|
1495
|
+
Li as d,
|
|
1496
|
+
Si as g,
|
|
1497
|
+
T as s,
|
|
1498
|
+
zi as u
|
|
1456
1499
|
};
|