@cere/cere-design-system 0.0.13 → 0.0.17
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/README.md +0 -19
- package/dist/index.d.mts +452 -1
- package/dist/index.d.ts +452 -1
- package/dist/index.js +1364 -497
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1300 -433
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,17 +31,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
Accordion: () => Accordion,
|
|
34
|
+
AccountSection: () => AccountSection,
|
|
34
35
|
ActivityAppIcon: () => ActivityAppIcon,
|
|
35
36
|
Alert: () => Alert2,
|
|
36
37
|
AppBar: () => AppBar,
|
|
37
38
|
AppLoading: () => AppLoading,
|
|
38
|
-
Avatar: () =>
|
|
39
|
+
Avatar: () => Avatar5,
|
|
39
40
|
AvatarIcon: () => AvatarIcon,
|
|
40
41
|
Background: () => import_reactflow2.Background,
|
|
41
42
|
BackgroundVariant: () => import_reactflow2.BackgroundVariant,
|
|
42
43
|
Badge: () => Badge,
|
|
43
44
|
BarTrackingIcon: () => BarTrackingIcon,
|
|
44
|
-
Box: () =>
|
|
45
|
+
Box: () => import_material31.Box,
|
|
45
46
|
Breadcrumbs: () => Breadcrumbs,
|
|
46
47
|
Button: () => Button,
|
|
47
48
|
ButtonGroup: () => ButtonGroup,
|
|
@@ -61,7 +62,8 @@ __export(index_exports, {
|
|
|
61
62
|
CodeEditor: () => CodeEditor,
|
|
62
63
|
Collapse: () => Collapse,
|
|
63
64
|
ConnectionLineType: () => import_reactflow2.ConnectionLineType,
|
|
64
|
-
|
|
65
|
+
ConnectionStatus: () => ConnectionStatus,
|
|
66
|
+
Container: () => import_material33.Container,
|
|
65
67
|
Controls: () => import_reactflow2.Controls,
|
|
66
68
|
DecentralizedServerIcon: () => DecentralizedServerIcon,
|
|
67
69
|
Dialog: () => Dialog,
|
|
@@ -80,17 +82,17 @@ __export(index_exports, {
|
|
|
80
82
|
FormHelperText: () => import_material4.FormHelperText,
|
|
81
83
|
FormLabel: () => import_material4.FormLabel,
|
|
82
84
|
GithubLogoIcon: () => GithubLogoIcon,
|
|
83
|
-
Grid: () =>
|
|
85
|
+
Grid: () => import_material28.Grid2,
|
|
84
86
|
IconButton: () => IconButton,
|
|
85
87
|
InputAdornment: () => import_material4.InputAdornment,
|
|
86
88
|
InputLabel: () => import_material4.InputLabel,
|
|
87
89
|
LeftArrowIcon: () => LeftArrowIcon,
|
|
88
90
|
Link: () => Link3,
|
|
89
|
-
List: () =>
|
|
90
|
-
ListItem: () =>
|
|
91
|
-
ListItemIcon: () =>
|
|
92
|
-
ListItemSecondaryAction: () =>
|
|
93
|
-
ListItemText: () =>
|
|
91
|
+
List: () => List6,
|
|
92
|
+
ListItem: () => ListItem4,
|
|
93
|
+
ListItemIcon: () => import_material26.ListItemIcon,
|
|
94
|
+
ListItemSecondaryAction: () => import_material26.ListItemSecondaryAction,
|
|
95
|
+
ListItemText: () => import_material26.ListItemText,
|
|
94
96
|
Loading: () => Loading,
|
|
95
97
|
LoadingAnimation: () => LoadingAnimation,
|
|
96
98
|
LoadingButton: () => LoadingButton,
|
|
@@ -101,6 +103,8 @@ __export(index_exports, {
|
|
|
101
103
|
MessagesProvider: () => MessagesProvider,
|
|
102
104
|
MetricsChart: () => MetricsChart,
|
|
103
105
|
MiniMap: () => import_reactflow2.MiniMap,
|
|
106
|
+
NavigationItem: () => NavigationItem,
|
|
107
|
+
NavigationList: () => NavigationList,
|
|
104
108
|
OnboardingProvider: () => OnboardingProvider,
|
|
105
109
|
Pagination: () => Pagination,
|
|
106
110
|
Panel: () => import_reactflow3.Panel,
|
|
@@ -115,10 +119,12 @@ __export(index_exports, {
|
|
|
115
119
|
Selector: () => Selector,
|
|
116
120
|
ServiceSelectorButton: () => ServiceSelectorButton,
|
|
117
121
|
ShareIcon: () => ShareIcon,
|
|
122
|
+
SideNav: () => SideNav,
|
|
123
|
+
SideNavHeader: () => SideNavHeader,
|
|
118
124
|
Sidebar: () => Sidebar,
|
|
119
125
|
SidebarItem: () => SidebarItem,
|
|
120
126
|
Snackbar: () => Snackbar2,
|
|
121
|
-
Stack: () =>
|
|
127
|
+
Stack: () => import_material30.Stack,
|
|
122
128
|
Step: () => Step,
|
|
123
129
|
StepButton: () => StepButton,
|
|
124
130
|
StepContent: () => StepContent,
|
|
@@ -132,10 +138,10 @@ __export(index_exports, {
|
|
|
132
138
|
TextField: () => TextField,
|
|
133
139
|
ToggleButton: () => ToggleButton,
|
|
134
140
|
ToggleButtonGroup: () => ToggleButtonGroup,
|
|
135
|
-
Toolbar: () =>
|
|
136
|
-
Tooltip: () =>
|
|
141
|
+
Toolbar: () => import_material34.Toolbar,
|
|
142
|
+
Tooltip: () => Tooltip6,
|
|
137
143
|
Truncate: () => Truncate,
|
|
138
|
-
Typography: () =>
|
|
144
|
+
Typography: () => import_material32.Typography,
|
|
139
145
|
UploadFileIcon: () => UploadFileIcon,
|
|
140
146
|
UploadFolderIcon: () => UploadFolderIcon,
|
|
141
147
|
WorkspaceSelectorButton: () => WorkspaceSelectorButton,
|
|
@@ -3361,10 +3367,865 @@ var StepButton = (props) => {
|
|
|
3361
3367
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_material12.StepButton, { ...props });
|
|
3362
3368
|
};
|
|
3363
3369
|
|
|
3364
|
-
// src/components/
|
|
3365
|
-
var
|
|
3370
|
+
// src/components/navigation/SideNav/SideNav.tsx
|
|
3371
|
+
var import_react6 = __toESM(require("react"));
|
|
3372
|
+
var import_material13 = require("@mui/material");
|
|
3366
3373
|
var import_styles9 = require("@mui/material/styles");
|
|
3374
|
+
|
|
3375
|
+
// src/components/navigation/SideNav/styles.ts
|
|
3376
|
+
var scrollbarStyles = {
|
|
3377
|
+
"&::-webkit-scrollbar": {
|
|
3378
|
+
width: "8px"
|
|
3379
|
+
},
|
|
3380
|
+
"&::-webkit-scrollbar-track": {
|
|
3381
|
+
backgroundColor: "transparent"
|
|
3382
|
+
},
|
|
3383
|
+
"&::-webkit-scrollbar-thumb": {
|
|
3384
|
+
backgroundColor: "rgba(0, 0, 0, 0.2)",
|
|
3385
|
+
borderRadius: "4px",
|
|
3386
|
+
"&:hover": {
|
|
3387
|
+
backgroundColor: "rgba(0, 0, 0, 0.3)"
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
};
|
|
3391
|
+
|
|
3392
|
+
// src/components/navigation/SideNav/SideNav.tsx
|
|
3367
3393
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3394
|
+
var SideNavContext = import_react6.default.createContext({
|
|
3395
|
+
collapsed: false,
|
|
3396
|
+
showTooltips: true
|
|
3397
|
+
});
|
|
3398
|
+
var SideNavContainer = (0, import_styles9.styled)(import_material13.Box, {
|
|
3399
|
+
shouldForwardProp: (prop) => !["navWidth", "navPosition", "showBorder", "backgroundColor", "isCollapsed", "collapsedWidth", "transitionDuration"].includes(prop)
|
|
3400
|
+
})(({ theme: theme2, navWidth = 280, navPosition = "left", showBorder = true, backgroundColor, isCollapsed = false, collapsedWidth = 68, transitionDuration = 300 }) => ({
|
|
3401
|
+
width: isCollapsed ? collapsedWidth : navWidth,
|
|
3402
|
+
height: "100%",
|
|
3403
|
+
display: "flex",
|
|
3404
|
+
flexDirection: "column",
|
|
3405
|
+
backgroundColor: backgroundColor || theme2.palette.background.paper,
|
|
3406
|
+
overflow: "hidden",
|
|
3407
|
+
transition: `width ${transitionDuration}ms ${theme2.transitions.easing.easeInOut}`,
|
|
3408
|
+
// Disable transition for reduced motion preference
|
|
3409
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
3410
|
+
transition: "none"
|
|
3411
|
+
},
|
|
3412
|
+
// Border on the appropriate side
|
|
3413
|
+
...showBorder && {
|
|
3414
|
+
borderRight: navPosition === "left" ? `1px solid ${theme2.palette.divider}` : "none",
|
|
3415
|
+
borderLeft: navPosition === "right" ? `1px solid ${theme2.palette.divider}` : "none"
|
|
3416
|
+
}
|
|
3417
|
+
}));
|
|
3418
|
+
var HeaderSection = (0, import_styles9.styled)(import_material13.Box)(({ theme: theme2 }) => ({
|
|
3419
|
+
flexShrink: 0,
|
|
3420
|
+
backgroundColor: theme2.palette.background.paper
|
|
3421
|
+
}));
|
|
3422
|
+
var NavigationSection = (0, import_styles9.styled)(import_material13.Box)(() => ({
|
|
3423
|
+
flexGrow: 1,
|
|
3424
|
+
overflowY: "auto",
|
|
3425
|
+
overflowX: "hidden",
|
|
3426
|
+
...scrollbarStyles
|
|
3427
|
+
}));
|
|
3428
|
+
var FooterSection = (0, import_styles9.styled)(import_material13.Box)(({ theme: theme2 }) => ({
|
|
3429
|
+
flexShrink: 0,
|
|
3430
|
+
backgroundColor: theme2.palette.background.paper
|
|
3431
|
+
}));
|
|
3432
|
+
var Header = import_react6.default.memo(({ children, className }) => {
|
|
3433
|
+
const { collapsed, onToggleCollapse } = import_react6.default.useContext(SideNavContext);
|
|
3434
|
+
const enhancedChildren = import_react6.default.Children.map(children, (child) => {
|
|
3435
|
+
if (import_react6.default.isValidElement(child)) {
|
|
3436
|
+
return import_react6.default.cloneElement(child, {
|
|
3437
|
+
collapsed,
|
|
3438
|
+
onCollapse: onToggleCollapse
|
|
3439
|
+
});
|
|
3440
|
+
}
|
|
3441
|
+
return child;
|
|
3442
|
+
});
|
|
3443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HeaderSection, { className, "data-testid": "sidenav-header", children: enhancedChildren });
|
|
3444
|
+
});
|
|
3445
|
+
Header.displayName = "SideNav.Header";
|
|
3446
|
+
var Navigation = import_react6.default.memo(({ children, className }) => {
|
|
3447
|
+
const { collapsed, showTooltips } = import_react6.default.useContext(SideNavContext);
|
|
3448
|
+
const enhancedChildren = import_react6.default.Children.map(children, (child) => {
|
|
3449
|
+
if (import_react6.default.isValidElement(child)) {
|
|
3450
|
+
return import_react6.default.cloneElement(child, {
|
|
3451
|
+
collapsed,
|
|
3452
|
+
showTooltips
|
|
3453
|
+
});
|
|
3454
|
+
}
|
|
3455
|
+
return child;
|
|
3456
|
+
});
|
|
3457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(NavigationSection, { className, "data-testid": "sidenav-navigation", children: enhancedChildren });
|
|
3458
|
+
});
|
|
3459
|
+
Navigation.displayName = "SideNav.Navigation";
|
|
3460
|
+
var Footer = import_react6.default.memo(({ children, className }) => {
|
|
3461
|
+
const { collapsed } = import_react6.default.useContext(SideNavContext);
|
|
3462
|
+
const enhancedChildren = import_react6.default.Children.map(children, (child) => {
|
|
3463
|
+
if (import_react6.default.isValidElement(child)) {
|
|
3464
|
+
return import_react6.default.cloneElement(child, {
|
|
3465
|
+
compact: collapsed
|
|
3466
|
+
});
|
|
3467
|
+
}
|
|
3468
|
+
return child;
|
|
3469
|
+
});
|
|
3470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FooterSection, { className, "data-testid": "sidenav-footer", children: enhancedChildren });
|
|
3471
|
+
});
|
|
3472
|
+
Footer.displayName = "SideNav.Footer";
|
|
3473
|
+
var SideNav = Object.assign(
|
|
3474
|
+
import_react6.default.memo(({
|
|
3475
|
+
width = 280,
|
|
3476
|
+
collapsedWidth = 68,
|
|
3477
|
+
collapsed: controlledCollapsed,
|
|
3478
|
+
defaultCollapsed = false,
|
|
3479
|
+
onCollapseChange,
|
|
3480
|
+
transitionDuration = 300,
|
|
3481
|
+
showTooltips = true,
|
|
3482
|
+
position = "left",
|
|
3483
|
+
showBorder = true,
|
|
3484
|
+
backgroundColor,
|
|
3485
|
+
children,
|
|
3486
|
+
className,
|
|
3487
|
+
ariaLabel = "Main navigation"
|
|
3488
|
+
}) => {
|
|
3489
|
+
const [internalCollapsed, setInternalCollapsed] = (0, import_react6.useState)(defaultCollapsed);
|
|
3490
|
+
const isControlled = controlledCollapsed !== void 0;
|
|
3491
|
+
const collapsed = isControlled ? controlledCollapsed : internalCollapsed;
|
|
3492
|
+
const handleToggleCollapse = (0, import_react6.useCallback)(() => {
|
|
3493
|
+
const newCollapsed = !collapsed;
|
|
3494
|
+
if (!isControlled) {
|
|
3495
|
+
setInternalCollapsed(newCollapsed);
|
|
3496
|
+
}
|
|
3497
|
+
if (onCollapseChange) {
|
|
3498
|
+
onCollapseChange(newCollapsed);
|
|
3499
|
+
}
|
|
3500
|
+
}, [collapsed, isControlled, onCollapseChange]);
|
|
3501
|
+
const contextValue = {
|
|
3502
|
+
collapsed,
|
|
3503
|
+
showTooltips,
|
|
3504
|
+
onToggleCollapse: handleToggleCollapse
|
|
3505
|
+
};
|
|
3506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SideNavContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
3507
|
+
SideNavContainer,
|
|
3508
|
+
{
|
|
3509
|
+
role: "navigation",
|
|
3510
|
+
"aria-label": ariaLabel,
|
|
3511
|
+
navWidth: width,
|
|
3512
|
+
collapsedWidth,
|
|
3513
|
+
isCollapsed: collapsed,
|
|
3514
|
+
transitionDuration,
|
|
3515
|
+
navPosition: position,
|
|
3516
|
+
showBorder,
|
|
3517
|
+
backgroundColor,
|
|
3518
|
+
className,
|
|
3519
|
+
children
|
|
3520
|
+
}
|
|
3521
|
+
) });
|
|
3522
|
+
}),
|
|
3523
|
+
{
|
|
3524
|
+
Header,
|
|
3525
|
+
Navigation,
|
|
3526
|
+
Footer
|
|
3527
|
+
}
|
|
3528
|
+
);
|
|
3529
|
+
SideNav.displayName = "SideNav";
|
|
3530
|
+
|
|
3531
|
+
// src/components/navigation/SideNav/SideNavHeader.tsx
|
|
3532
|
+
var import_react7 = __toESM(require("react"));
|
|
3533
|
+
var import_material14 = require("@mui/material");
|
|
3534
|
+
var import_styles11 = require("@mui/material/styles");
|
|
3535
|
+
var import_ChevronLeft = __toESM(require("@mui/icons-material/ChevronLeft"));
|
|
3536
|
+
var import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"));
|
|
3537
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3538
|
+
var HeaderContainer = (0, import_styles11.styled)(import_material14.Box, {
|
|
3539
|
+
shouldForwardProp: (prop) => prop !== "isCollapsed"
|
|
3540
|
+
})(({ theme: theme2, isCollapsed }) => ({
|
|
3541
|
+
display: "flex",
|
|
3542
|
+
flexDirection: isCollapsed ? "column" : "row",
|
|
3543
|
+
alignItems: "center",
|
|
3544
|
+
justifyContent: isCollapsed ? "center" : "flex-start",
|
|
3545
|
+
gap: isCollapsed ? theme2.spacing(1) : theme2.spacing(1.5),
|
|
3546
|
+
padding: theme2.spacing(2),
|
|
3547
|
+
borderBottom: `1px solid ${theme2.palette.divider}`,
|
|
3548
|
+
transition: theme2.transitions.create(["gap", "justify-content", "flex-direction"], {
|
|
3549
|
+
duration: theme2.transitions.duration.shorter
|
|
3550
|
+
})
|
|
3551
|
+
}));
|
|
3552
|
+
var BrandingButton = (0, import_styles11.styled)(import_material14.ButtonBase)(({ theme: theme2 }) => ({
|
|
3553
|
+
display: "flex",
|
|
3554
|
+
alignItems: "center",
|
|
3555
|
+
gap: theme2.spacing(1.5),
|
|
3556
|
+
minWidth: 0,
|
|
3557
|
+
padding: 0,
|
|
3558
|
+
borderRadius: theme2.shape.borderRadius,
|
|
3559
|
+
// Subtle hover feedback only when clickable
|
|
3560
|
+
"&:hover": {
|
|
3561
|
+
opacity: 0.8
|
|
3562
|
+
},
|
|
3563
|
+
"&:focus-visible": {
|
|
3564
|
+
outline: `2px solid ${theme2.palette.primary.main}`,
|
|
3565
|
+
outlineOffset: 2
|
|
3566
|
+
}
|
|
3567
|
+
}));
|
|
3568
|
+
var SideNavHeader = import_react7.default.memo(({
|
|
3569
|
+
logo,
|
|
3570
|
+
title,
|
|
3571
|
+
showCollapseButton = true,
|
|
3572
|
+
onCollapse,
|
|
3573
|
+
onLogoClick,
|
|
3574
|
+
ariaLabel,
|
|
3575
|
+
collapsed = false
|
|
3576
|
+
}) => {
|
|
3577
|
+
const headerAriaLabel = ariaLabel || `${title} navigation header`;
|
|
3578
|
+
const brandingContent = /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
3579
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3580
|
+
import_material14.Box,
|
|
3581
|
+
{
|
|
3582
|
+
sx: {
|
|
3583
|
+
display: "flex",
|
|
3584
|
+
alignItems: "center",
|
|
3585
|
+
justifyContent: "center",
|
|
3586
|
+
flexShrink: 0
|
|
3587
|
+
},
|
|
3588
|
+
children: logo
|
|
3589
|
+
}
|
|
3590
|
+
),
|
|
3591
|
+
!collapsed && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3592
|
+
import_material14.Typography,
|
|
3593
|
+
{
|
|
3594
|
+
variant: "subtitle1",
|
|
3595
|
+
sx: {
|
|
3596
|
+
fontWeight: 700,
|
|
3597
|
+
overflow: "hidden",
|
|
3598
|
+
textOverflow: "ellipsis",
|
|
3599
|
+
whiteSpace: "nowrap",
|
|
3600
|
+
minWidth: 0
|
|
3601
|
+
},
|
|
3602
|
+
children: title
|
|
3603
|
+
}
|
|
3604
|
+
)
|
|
3605
|
+
] });
|
|
3606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
3607
|
+
HeaderContainer,
|
|
3608
|
+
{
|
|
3609
|
+
"data-testid": "sidenav-header-content",
|
|
3610
|
+
"aria-label": headerAriaLabel,
|
|
3611
|
+
isCollapsed: collapsed,
|
|
3612
|
+
children: [
|
|
3613
|
+
onLogoClick ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3614
|
+
BrandingButton,
|
|
3615
|
+
{
|
|
3616
|
+
onClick: onLogoClick,
|
|
3617
|
+
"aria-label": `Go to ${title} home`,
|
|
3618
|
+
"data-testid": "sidenav-home-link",
|
|
3619
|
+
children: brandingContent
|
|
3620
|
+
}
|
|
3621
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3622
|
+
import_material14.Box,
|
|
3623
|
+
{
|
|
3624
|
+
sx: {
|
|
3625
|
+
display: "flex",
|
|
3626
|
+
alignItems: "center",
|
|
3627
|
+
gap: 1.5,
|
|
3628
|
+
minWidth: 0
|
|
3629
|
+
},
|
|
3630
|
+
children: brandingContent
|
|
3631
|
+
}
|
|
3632
|
+
),
|
|
3633
|
+
showCollapseButton && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3634
|
+
import_material14.Tooltip,
|
|
3635
|
+
{
|
|
3636
|
+
title: collapsed ? "Expand navigation" : "Collapse navigation",
|
|
3637
|
+
placement: "right",
|
|
3638
|
+
arrow: true,
|
|
3639
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3640
|
+
import_material14.IconButton,
|
|
3641
|
+
{
|
|
3642
|
+
onClick: onCollapse,
|
|
3643
|
+
"aria-label": collapsed ? "Expand navigation" : "Collapse navigation",
|
|
3644
|
+
"aria-expanded": !collapsed,
|
|
3645
|
+
size: "small",
|
|
3646
|
+
sx: {
|
|
3647
|
+
flexShrink: 0,
|
|
3648
|
+
marginLeft: collapsed ? 0 : "auto",
|
|
3649
|
+
color: "text.secondary",
|
|
3650
|
+
"&:hover": {
|
|
3651
|
+
backgroundColor: "action.hover",
|
|
3652
|
+
color: "text.primary"
|
|
3653
|
+
}
|
|
3654
|
+
},
|
|
3655
|
+
children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_ChevronRight.default, {}) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_ChevronLeft.default, {})
|
|
3656
|
+
}
|
|
3657
|
+
)
|
|
3658
|
+
}
|
|
3659
|
+
)
|
|
3660
|
+
]
|
|
3661
|
+
}
|
|
3662
|
+
);
|
|
3663
|
+
});
|
|
3664
|
+
SideNavHeader.displayName = "SideNavHeader";
|
|
3665
|
+
|
|
3666
|
+
// src/components/navigation/SideNav/NavigationList.tsx
|
|
3667
|
+
var import_react9 = __toESM(require("react"));
|
|
3668
|
+
var import_material16 = require("@mui/material");
|
|
3669
|
+
|
|
3670
|
+
// src/components/navigation/SideNav/NavigationItem.tsx
|
|
3671
|
+
var import_react8 = __toESM(require("react"));
|
|
3672
|
+
var import_material15 = require("@mui/material");
|
|
3673
|
+
var import_styles12 = require("@mui/material/styles");
|
|
3674
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
3675
|
+
var StyledListItemButton2 = (0, import_styles12.styled)(import_material15.ListItemButton, {
|
|
3676
|
+
shouldForwardProp: (prop) => !["selected", "size", "iconPosition", "isCollapsed"].includes(prop)
|
|
3677
|
+
})(({ theme: theme2, selected, size: size3, isCollapsed }) => {
|
|
3678
|
+
const heights = {
|
|
3679
|
+
small: 40,
|
|
3680
|
+
medium: 48,
|
|
3681
|
+
large: 56
|
|
3682
|
+
};
|
|
3683
|
+
return {
|
|
3684
|
+
minHeight: heights[size3] || heights.medium,
|
|
3685
|
+
padding: theme2.spacing(1, 1.5),
|
|
3686
|
+
// 8px 12px
|
|
3687
|
+
margin: theme2.spacing(0.5, 1),
|
|
3688
|
+
// 4px 8px
|
|
3689
|
+
borderRadius: theme2.shape.borderRadius,
|
|
3690
|
+
gap: isCollapsed ? 0 : theme2.spacing(1),
|
|
3691
|
+
// No gap in collapsed mode
|
|
3692
|
+
justifyContent: isCollapsed ? "center" : "flex-start",
|
|
3693
|
+
transition: theme2.transitions.create(
|
|
3694
|
+
["background-color", "color", "justify-content"],
|
|
3695
|
+
{ duration: theme2.transitions.duration.shortest }
|
|
3696
|
+
),
|
|
3697
|
+
// Default state
|
|
3698
|
+
color: theme2.palette.text.primary,
|
|
3699
|
+
backgroundColor: "transparent",
|
|
3700
|
+
"& .MuiListItemIcon-root": {
|
|
3701
|
+
minWidth: "auto",
|
|
3702
|
+
color: theme2.palette.text.secondary
|
|
3703
|
+
},
|
|
3704
|
+
// Hover state
|
|
3705
|
+
"&:hover": {
|
|
3706
|
+
backgroundColor: theme2.palette.action.hover,
|
|
3707
|
+
"& .MuiListItemIcon-root": {
|
|
3708
|
+
color: theme2.palette.text.primary
|
|
3709
|
+
}
|
|
3710
|
+
},
|
|
3711
|
+
// Selected state
|
|
3712
|
+
...selected && {
|
|
3713
|
+
color: theme2.palette.primary.main,
|
|
3714
|
+
backgroundColor: theme2.palette.action.selected,
|
|
3715
|
+
"& .MuiListItemIcon-root": {
|
|
3716
|
+
minWidth: "auto",
|
|
3717
|
+
color: theme2.palette.primary.main
|
|
3718
|
+
},
|
|
3719
|
+
"&:hover": {
|
|
3720
|
+
backgroundColor: theme2.palette.action.selected,
|
|
3721
|
+
"& .MuiListItemIcon-root": {
|
|
3722
|
+
color: theme2.palette.primary.main
|
|
3723
|
+
}
|
|
3724
|
+
}
|
|
3725
|
+
},
|
|
3726
|
+
// Disabled state
|
|
3727
|
+
"&.Mui-disabled": {
|
|
3728
|
+
opacity: 1,
|
|
3729
|
+
color: theme2.palette.text.disabled,
|
|
3730
|
+
"& .MuiListItemIcon-root": {
|
|
3731
|
+
color: theme2.palette.action.disabled
|
|
3732
|
+
}
|
|
3733
|
+
}
|
|
3734
|
+
};
|
|
3735
|
+
});
|
|
3736
|
+
var NavigationItem = import_react8.default.memo(({
|
|
3737
|
+
id,
|
|
3738
|
+
label,
|
|
3739
|
+
icon,
|
|
3740
|
+
iconPosition = "left",
|
|
3741
|
+
selected = false,
|
|
3742
|
+
disabled = false,
|
|
3743
|
+
onClick,
|
|
3744
|
+
endContent,
|
|
3745
|
+
href,
|
|
3746
|
+
ariaLabel,
|
|
3747
|
+
size: size3 = "medium",
|
|
3748
|
+
collapsed = false,
|
|
3749
|
+
showTooltip = true,
|
|
3750
|
+
tooltipPlacement = "right",
|
|
3751
|
+
...rest
|
|
3752
|
+
}) => {
|
|
3753
|
+
const handleClick = () => {
|
|
3754
|
+
if (!disabled && onClick) {
|
|
3755
|
+
onClick(id);
|
|
3756
|
+
}
|
|
3757
|
+
};
|
|
3758
|
+
const iconElement = icon && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3759
|
+
import_material15.ListItemIcon,
|
|
3760
|
+
{
|
|
3761
|
+
sx: {
|
|
3762
|
+
fontSize: 24,
|
|
3763
|
+
width: 24,
|
|
3764
|
+
height: 24,
|
|
3765
|
+
display: "flex",
|
|
3766
|
+
alignItems: "center",
|
|
3767
|
+
justifyContent: "center"
|
|
3768
|
+
},
|
|
3769
|
+
children: icon
|
|
3770
|
+
}
|
|
3771
|
+
);
|
|
3772
|
+
const labelElement = /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3773
|
+
import_material15.ListItemText,
|
|
3774
|
+
{
|
|
3775
|
+
primary: label,
|
|
3776
|
+
primaryTypographyProps: {
|
|
3777
|
+
sx: {
|
|
3778
|
+
fontWeight: 400,
|
|
3779
|
+
fontSize: 16,
|
|
3780
|
+
lineHeight: 1.5,
|
|
3781
|
+
letterSpacing: "0.0168em",
|
|
3782
|
+
display: collapsed ? "none" : "block",
|
|
3783
|
+
opacity: collapsed ? 0 : 1,
|
|
3784
|
+
transition: (theme2) => theme2.transitions.create(["opacity"], {
|
|
3785
|
+
duration: theme2.transitions.duration.shorter
|
|
3786
|
+
})
|
|
3787
|
+
}
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
);
|
|
3791
|
+
const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
3792
|
+
StyledListItemButton2,
|
|
3793
|
+
{
|
|
3794
|
+
selected,
|
|
3795
|
+
disabled,
|
|
3796
|
+
onClick: handleClick,
|
|
3797
|
+
...href && { component: "a", href },
|
|
3798
|
+
"aria-label": ariaLabel || label,
|
|
3799
|
+
"aria-current": selected ? "page" : void 0,
|
|
3800
|
+
"aria-disabled": disabled,
|
|
3801
|
+
size: size3,
|
|
3802
|
+
isCollapsed: collapsed,
|
|
3803
|
+
...rest,
|
|
3804
|
+
children: [
|
|
3805
|
+
icon && iconPosition === "left" && iconElement,
|
|
3806
|
+
labelElement,
|
|
3807
|
+
icon && iconPosition === "right" && iconElement,
|
|
3808
|
+
endContent && !collapsed && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3809
|
+
import_material15.Box,
|
|
3810
|
+
{
|
|
3811
|
+
sx: {
|
|
3812
|
+
marginLeft: "auto",
|
|
3813
|
+
display: "flex",
|
|
3814
|
+
alignItems: "center"
|
|
3815
|
+
},
|
|
3816
|
+
children: endContent
|
|
3817
|
+
}
|
|
3818
|
+
)
|
|
3819
|
+
]
|
|
3820
|
+
}
|
|
3821
|
+
);
|
|
3822
|
+
if (collapsed && showTooltip) {
|
|
3823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
3824
|
+
import_material15.Tooltip,
|
|
3825
|
+
{
|
|
3826
|
+
title: label,
|
|
3827
|
+
placement: tooltipPlacement,
|
|
3828
|
+
enterDelay: 200,
|
|
3829
|
+
leaveDelay: 0,
|
|
3830
|
+
arrow: true,
|
|
3831
|
+
children: buttonContent
|
|
3832
|
+
}
|
|
3833
|
+
);
|
|
3834
|
+
}
|
|
3835
|
+
return buttonContent;
|
|
3836
|
+
});
|
|
3837
|
+
NavigationItem.displayName = "NavigationItem";
|
|
3838
|
+
|
|
3839
|
+
// src/components/navigation/SideNav/NavigationList.tsx
|
|
3840
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
3841
|
+
var NavigationList = import_react9.default.memo(({
|
|
3842
|
+
items,
|
|
3843
|
+
selectedId,
|
|
3844
|
+
onSelectionChange,
|
|
3845
|
+
maxHeight = "auto",
|
|
3846
|
+
ariaLabel = "Navigation menu",
|
|
3847
|
+
collapsed = false,
|
|
3848
|
+
showTooltips = true
|
|
3849
|
+
}) => {
|
|
3850
|
+
const [internalSelectedId, setInternalSelectedId] = (0, import_react9.useState)(
|
|
3851
|
+
selectedId
|
|
3852
|
+
);
|
|
3853
|
+
const isControlled = selectedId !== void 0;
|
|
3854
|
+
const currentSelectedId = isControlled ? selectedId : internalSelectedId;
|
|
3855
|
+
const handleItemClick = (id) => {
|
|
3856
|
+
if (!isControlled) {
|
|
3857
|
+
setInternalSelectedId(id);
|
|
3858
|
+
}
|
|
3859
|
+
if (onSelectionChange) {
|
|
3860
|
+
onSelectionChange(id);
|
|
3861
|
+
}
|
|
3862
|
+
};
|
|
3863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3864
|
+
import_material16.List,
|
|
3865
|
+
{
|
|
3866
|
+
role: "list",
|
|
3867
|
+
"aria-label": ariaLabel,
|
|
3868
|
+
sx: {
|
|
3869
|
+
padding: 0,
|
|
3870
|
+
maxHeight,
|
|
3871
|
+
overflowY: maxHeight !== "auto" ? "auto" : "visible",
|
|
3872
|
+
overflowX: "hidden",
|
|
3873
|
+
...maxHeight !== "auto" ? scrollbarStyles : {}
|
|
3874
|
+
},
|
|
3875
|
+
children: items.map((item, index) => {
|
|
3876
|
+
const isSelected = currentSelectedId === item.id;
|
|
3877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3878
|
+
import_material16.ListItem,
|
|
3879
|
+
{
|
|
3880
|
+
role: "listitem",
|
|
3881
|
+
sx: {
|
|
3882
|
+
padding: 0,
|
|
3883
|
+
display: "block"
|
|
3884
|
+
},
|
|
3885
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3886
|
+
NavigationItem,
|
|
3887
|
+
{
|
|
3888
|
+
...item,
|
|
3889
|
+
selected: isSelected,
|
|
3890
|
+
collapsed,
|
|
3891
|
+
showTooltip: showTooltips,
|
|
3892
|
+
onClick: (id) => {
|
|
3893
|
+
if (item.disabled) {
|
|
3894
|
+
return;
|
|
3895
|
+
}
|
|
3896
|
+
if (item.onClick) {
|
|
3897
|
+
item.onClick(id);
|
|
3898
|
+
}
|
|
3899
|
+
handleItemClick(id);
|
|
3900
|
+
}
|
|
3901
|
+
}
|
|
3902
|
+
)
|
|
3903
|
+
},
|
|
3904
|
+
`${item.id}-${index}`
|
|
3905
|
+
);
|
|
3906
|
+
})
|
|
3907
|
+
}
|
|
3908
|
+
);
|
|
3909
|
+
});
|
|
3910
|
+
NavigationList.displayName = "NavigationList";
|
|
3911
|
+
|
|
3912
|
+
// src/components/navigation/SideNav/ConnectionStatus.tsx
|
|
3913
|
+
var import_react10 = __toESM(require("react"));
|
|
3914
|
+
var import_material17 = require("@mui/material");
|
|
3915
|
+
var import_styles14 = require("@mui/material/styles");
|
|
3916
|
+
var import_Power = __toESM(require("@mui/icons-material/Power"));
|
|
3917
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
3918
|
+
var StatusPill = (0, import_styles14.styled)(import_material17.Box, {
|
|
3919
|
+
shouldForwardProp: (prop) => !["variant", "interactive"].includes(prop)
|
|
3920
|
+
})(({ theme: theme2, variant = "info", interactive }) => {
|
|
3921
|
+
const variantColors = {
|
|
3922
|
+
success: {
|
|
3923
|
+
background: theme2.palette.success.light + "20",
|
|
3924
|
+
text: theme2.palette.success.dark
|
|
3925
|
+
},
|
|
3926
|
+
warning: {
|
|
3927
|
+
background: theme2.palette.warning.light + "20",
|
|
3928
|
+
text: theme2.palette.warning.dark
|
|
3929
|
+
},
|
|
3930
|
+
error: {
|
|
3931
|
+
background: theme2.palette.error.light + "20",
|
|
3932
|
+
text: theme2.palette.error.dark
|
|
3933
|
+
},
|
|
3934
|
+
info: {
|
|
3935
|
+
background: theme2.palette.grey[100],
|
|
3936
|
+
text: theme2.palette.text.primary
|
|
3937
|
+
}
|
|
3938
|
+
};
|
|
3939
|
+
const colors2 = variantColors[variant] || variantColors.info;
|
|
3940
|
+
return {
|
|
3941
|
+
display: "inline-flex",
|
|
3942
|
+
alignItems: "center",
|
|
3943
|
+
justifyContent: "center",
|
|
3944
|
+
gap: theme2.spacing(1),
|
|
3945
|
+
padding: theme2.spacing(0.75, 1.5),
|
|
3946
|
+
// 6px 12px
|
|
3947
|
+
borderRadius: 16,
|
|
3948
|
+
// Always pill-shaped
|
|
3949
|
+
backgroundColor: colors2.background,
|
|
3950
|
+
cursor: interactive ? "pointer" : "default",
|
|
3951
|
+
transition: theme2.transitions.create(["background-color", "transform"], {
|
|
3952
|
+
duration: theme2.transitions.duration.shortest
|
|
3953
|
+
}),
|
|
3954
|
+
maxWidth: "100%",
|
|
3955
|
+
...interactive && {
|
|
3956
|
+
"&:hover": {
|
|
3957
|
+
backgroundColor: colors2.background + "40",
|
|
3958
|
+
// Slightly darker on hover
|
|
3959
|
+
transform: "scale(1.02)"
|
|
3960
|
+
},
|
|
3961
|
+
"&:active": {
|
|
3962
|
+
transform: "scale(0.98)"
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
"& .status-text": {
|
|
3966
|
+
color: colors2.text,
|
|
3967
|
+
fontWeight: 500,
|
|
3968
|
+
fontSize: 14,
|
|
3969
|
+
lineHeight: 1.5,
|
|
3970
|
+
whiteSpace: "nowrap",
|
|
3971
|
+
overflow: "hidden",
|
|
3972
|
+
textOverflow: "ellipsis",
|
|
3973
|
+
minWidth: 0
|
|
3974
|
+
// Allow text to shrink and truncate in flex container
|
|
3975
|
+
}
|
|
3976
|
+
};
|
|
3977
|
+
});
|
|
3978
|
+
var ConnectionStatus = import_react10.default.memo(({
|
|
3979
|
+
status,
|
|
3980
|
+
variant = "info",
|
|
3981
|
+
icon,
|
|
3982
|
+
onClick,
|
|
3983
|
+
compact = false,
|
|
3984
|
+
compactText
|
|
3985
|
+
}) => {
|
|
3986
|
+
const interactive = !!onClick;
|
|
3987
|
+
const handleClick = () => {
|
|
3988
|
+
if (onClick) {
|
|
3989
|
+
onClick();
|
|
3990
|
+
}
|
|
3991
|
+
};
|
|
3992
|
+
const statusContent = /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
3993
|
+
StatusPill,
|
|
3994
|
+
{
|
|
3995
|
+
role: "status",
|
|
3996
|
+
"aria-live": "polite",
|
|
3997
|
+
"aria-atomic": "true",
|
|
3998
|
+
"aria-label": compact ? status : void 0,
|
|
3999
|
+
variant,
|
|
4000
|
+
interactive,
|
|
4001
|
+
onClick: handleClick,
|
|
4002
|
+
children: [
|
|
4003
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4004
|
+
import_material17.Box,
|
|
4005
|
+
{
|
|
4006
|
+
sx: {
|
|
4007
|
+
display: "flex",
|
|
4008
|
+
alignItems: "center",
|
|
4009
|
+
fontSize: 16,
|
|
4010
|
+
color: "inherit"
|
|
4011
|
+
},
|
|
4012
|
+
children: icon || /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_Power.default, { fontSize: "small" })
|
|
4013
|
+
}
|
|
4014
|
+
),
|
|
4015
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material17.Typography, { className: "status-text", variant: "body2", children: compact ? compactText ?? status : status })
|
|
4016
|
+
]
|
|
4017
|
+
}
|
|
4018
|
+
);
|
|
4019
|
+
if (compact) {
|
|
4020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4021
|
+
import_material17.Box,
|
|
4022
|
+
{
|
|
4023
|
+
sx: {
|
|
4024
|
+
display: "flex",
|
|
4025
|
+
justifyContent: "center",
|
|
4026
|
+
padding: 1
|
|
4027
|
+
},
|
|
4028
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_material17.Tooltip, { title: status, placement: "right", arrow: true, children: statusContent })
|
|
4029
|
+
}
|
|
4030
|
+
);
|
|
4031
|
+
}
|
|
4032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4033
|
+
import_material17.Box,
|
|
4034
|
+
{
|
|
4035
|
+
sx: {
|
|
4036
|
+
display: "flex",
|
|
4037
|
+
justifyContent: "center",
|
|
4038
|
+
padding: 1
|
|
4039
|
+
},
|
|
4040
|
+
children: statusContent
|
|
4041
|
+
}
|
|
4042
|
+
);
|
|
4043
|
+
});
|
|
4044
|
+
ConnectionStatus.displayName = "ConnectionStatus";
|
|
4045
|
+
|
|
4046
|
+
// src/components/navigation/SideNav/AccountSection.tsx
|
|
4047
|
+
var import_react11 = __toESM(require("react"));
|
|
4048
|
+
var import_material18 = require("@mui/material");
|
|
4049
|
+
var import_styles15 = require("@mui/material/styles");
|
|
4050
|
+
var import_Logout = __toESM(require("@mui/icons-material/Logout"));
|
|
4051
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
4052
|
+
var AccountContainer = (0, import_styles15.styled)(import_material18.Box, {
|
|
4053
|
+
shouldForwardProp: (prop) => !["layout", "isCompact"].includes(prop)
|
|
4054
|
+
})(({ theme: theme2, layout = "horizontal", isCompact }) => ({
|
|
4055
|
+
display: "flex",
|
|
4056
|
+
flexDirection: isCompact ? "column" : "row",
|
|
4057
|
+
alignItems: "center",
|
|
4058
|
+
justifyContent: isCompact ? "center" : "flex-start",
|
|
4059
|
+
gap: isCompact ? theme2.spacing(1) : theme2.spacing(1.5),
|
|
4060
|
+
padding: theme2.spacing(2),
|
|
4061
|
+
borderTop: `1px solid ${theme2.palette.divider}`,
|
|
4062
|
+
transition: theme2.transitions.create(["gap", "justify-content"], {
|
|
4063
|
+
duration: theme2.transitions.duration.shorter
|
|
4064
|
+
}),
|
|
4065
|
+
...layout === "vertical" && !isCompact && {
|
|
4066
|
+
flexDirection: "column",
|
|
4067
|
+
textAlign: "center"
|
|
4068
|
+
}
|
|
4069
|
+
}));
|
|
4070
|
+
var deriveInitials = (name) => {
|
|
4071
|
+
if (!name || name.trim() === "") {
|
|
4072
|
+
return "?";
|
|
4073
|
+
}
|
|
4074
|
+
const words = name.trim().split(/\s+/);
|
|
4075
|
+
if (words.length === 1) {
|
|
4076
|
+
return words[0][0].toUpperCase();
|
|
4077
|
+
}
|
|
4078
|
+
if (words.length === 2) {
|
|
4079
|
+
return (words[0][0] + words[1][0]).toUpperCase();
|
|
4080
|
+
}
|
|
4081
|
+
return (words[0][0] + words[words.length - 1][0]).toUpperCase();
|
|
4082
|
+
};
|
|
4083
|
+
var AccountSection = import_react11.default.memo(({
|
|
4084
|
+
user,
|
|
4085
|
+
onLogout,
|
|
4086
|
+
showEmail = false,
|
|
4087
|
+
layout = "horizontal",
|
|
4088
|
+
compact = false
|
|
4089
|
+
}) => {
|
|
4090
|
+
const initials = user.initials || deriveInitials(user.name);
|
|
4091
|
+
const avatarSrc = user.avatarUrl;
|
|
4092
|
+
if (compact) {
|
|
4093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AccountContainer, { layout, isCompact: true, "aria-label": "Account section", children: [
|
|
4094
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4095
|
+
import_material18.Tooltip,
|
|
4096
|
+
{
|
|
4097
|
+
title: `${user.name}${user.email ? ` (${user.email})` : ""}`,
|
|
4098
|
+
placement: "right",
|
|
4099
|
+
arrow: true,
|
|
4100
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4101
|
+
import_material18.Avatar,
|
|
4102
|
+
{
|
|
4103
|
+
src: avatarSrc,
|
|
4104
|
+
alt: user.name,
|
|
4105
|
+
sx: {
|
|
4106
|
+
width: 40,
|
|
4107
|
+
height: 40,
|
|
4108
|
+
backgroundColor: "primary.main",
|
|
4109
|
+
fontSize: 16,
|
|
4110
|
+
fontWeight: 600,
|
|
4111
|
+
flexShrink: 0,
|
|
4112
|
+
cursor: "default"
|
|
4113
|
+
},
|
|
4114
|
+
children: initials
|
|
4115
|
+
}
|
|
4116
|
+
)
|
|
4117
|
+
}
|
|
4118
|
+
),
|
|
4119
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_material18.Tooltip, { title: "Logout", placement: "right", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4120
|
+
import_material18.IconButton,
|
|
4121
|
+
{
|
|
4122
|
+
onClick: onLogout,
|
|
4123
|
+
"aria-label": "Logout",
|
|
4124
|
+
size: "small",
|
|
4125
|
+
sx: {
|
|
4126
|
+
color: "text.secondary",
|
|
4127
|
+
"&:hover": {
|
|
4128
|
+
backgroundColor: "action.hover",
|
|
4129
|
+
color: "text.primary"
|
|
4130
|
+
}
|
|
4131
|
+
},
|
|
4132
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_Logout.default, { fontSize: "small" })
|
|
4133
|
+
}
|
|
4134
|
+
) })
|
|
4135
|
+
] });
|
|
4136
|
+
}
|
|
4137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(AccountContainer, { layout, isCompact: false, "aria-label": "Account section", children: [
|
|
4138
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4139
|
+
import_material18.Avatar,
|
|
4140
|
+
{
|
|
4141
|
+
src: avatarSrc,
|
|
4142
|
+
alt: user.name,
|
|
4143
|
+
sx: {
|
|
4144
|
+
width: 40,
|
|
4145
|
+
height: 40,
|
|
4146
|
+
backgroundColor: "primary.main",
|
|
4147
|
+
fontSize: 16,
|
|
4148
|
+
fontWeight: 600,
|
|
4149
|
+
flexShrink: 0
|
|
4150
|
+
},
|
|
4151
|
+
children: initials
|
|
4152
|
+
}
|
|
4153
|
+
),
|
|
4154
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
|
|
4155
|
+
import_material18.Box,
|
|
4156
|
+
{
|
|
4157
|
+
sx: {
|
|
4158
|
+
display: "flex",
|
|
4159
|
+
flexDirection: "column",
|
|
4160
|
+
gap: 0.5,
|
|
4161
|
+
flexGrow: 1,
|
|
4162
|
+
minWidth: 0
|
|
4163
|
+
// Allow text truncation
|
|
4164
|
+
},
|
|
4165
|
+
children: [
|
|
4166
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4167
|
+
import_material18.Typography,
|
|
4168
|
+
{
|
|
4169
|
+
variant: "body2",
|
|
4170
|
+
sx: {
|
|
4171
|
+
fontWeight: 600,
|
|
4172
|
+
lineHeight: 1.5,
|
|
4173
|
+
overflow: "hidden",
|
|
4174
|
+
textOverflow: "ellipsis",
|
|
4175
|
+
whiteSpace: "nowrap"
|
|
4176
|
+
},
|
|
4177
|
+
children: user.name
|
|
4178
|
+
}
|
|
4179
|
+
),
|
|
4180
|
+
showEmail && user.email && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4181
|
+
import_material18.Typography,
|
|
4182
|
+
{
|
|
4183
|
+
variant: "caption",
|
|
4184
|
+
sx: {
|
|
4185
|
+
color: "text.secondary",
|
|
4186
|
+
lineHeight: 1.5,
|
|
4187
|
+
overflow: "hidden",
|
|
4188
|
+
textOverflow: "ellipsis",
|
|
4189
|
+
whiteSpace: "nowrap",
|
|
4190
|
+
display: "block"
|
|
4191
|
+
},
|
|
4192
|
+
children: user.email
|
|
4193
|
+
}
|
|
4194
|
+
),
|
|
4195
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4196
|
+
import_material18.Button,
|
|
4197
|
+
{
|
|
4198
|
+
onClick: onLogout,
|
|
4199
|
+
"aria-label": "Logout",
|
|
4200
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_Logout.default, { fontSize: "small" }),
|
|
4201
|
+
sx: {
|
|
4202
|
+
color: "text.secondary",
|
|
4203
|
+
textTransform: "none",
|
|
4204
|
+
fontSize: "14px",
|
|
4205
|
+
fontWeight: 400,
|
|
4206
|
+
padding: "4px 8px",
|
|
4207
|
+
justifyContent: "flex-start",
|
|
4208
|
+
alignSelf: "flex-start",
|
|
4209
|
+
minWidth: "auto",
|
|
4210
|
+
"&:hover": {
|
|
4211
|
+
backgroundColor: "action.hover",
|
|
4212
|
+
color: "text.primary"
|
|
4213
|
+
}
|
|
4214
|
+
},
|
|
4215
|
+
children: "Logout"
|
|
4216
|
+
}
|
|
4217
|
+
)
|
|
4218
|
+
]
|
|
4219
|
+
}
|
|
4220
|
+
)
|
|
4221
|
+
] });
|
|
4222
|
+
});
|
|
4223
|
+
AccountSection.displayName = "AccountSection";
|
|
4224
|
+
|
|
4225
|
+
// src/components/feedback/Badge.tsx
|
|
4226
|
+
var import_Badge = __toESM(require("@mui/material/Badge"));
|
|
4227
|
+
var import_styles16 = require("@mui/material/styles");
|
|
4228
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
3368
4229
|
var getBadgeColor = (variant) => {
|
|
3369
4230
|
switch (variant) {
|
|
3370
4231
|
case "primary":
|
|
@@ -3377,7 +4238,7 @@ var getBadgeColor = (variant) => {
|
|
|
3377
4238
|
return colors.grey[400];
|
|
3378
4239
|
}
|
|
3379
4240
|
};
|
|
3380
|
-
var StyledBadge = (0,
|
|
4241
|
+
var StyledBadge = (0, import_styles16.styled)(import_Badge.default, {
|
|
3381
4242
|
shouldForwardProp: (prop) => prop !== "badgeVariant"
|
|
3382
4243
|
})(({ badgeVariant = "default" }) => ({
|
|
3383
4244
|
"& .MuiBadge-badge": {
|
|
@@ -3391,21 +4252,21 @@ var Badge = ({
|
|
|
3391
4252
|
badgeContent,
|
|
3392
4253
|
...props
|
|
3393
4254
|
}) => {
|
|
3394
|
-
return /* @__PURE__ */ (0,
|
|
4255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(StyledBadge, { badgeVariant: variant, badgeContent, ...props, children });
|
|
3395
4256
|
};
|
|
3396
4257
|
|
|
3397
4258
|
// src/components/feedback/Chip.tsx
|
|
3398
4259
|
var import_Chip = __toESM(require("@mui/material/Chip"));
|
|
3399
|
-
var
|
|
3400
|
-
var
|
|
3401
|
-
var StyledDefaultChip = (0,
|
|
4260
|
+
var import_styles17 = require("@mui/material/styles");
|
|
4261
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
4262
|
+
var StyledDefaultChip = (0, import_styles17.styled)(import_Chip.default)({
|
|
3402
4263
|
backgroundColor: colors.grey[100],
|
|
3403
4264
|
color: colors.text.primary,
|
|
3404
4265
|
"&:hover": {
|
|
3405
4266
|
backgroundColor: colors.grey[200]
|
|
3406
4267
|
}
|
|
3407
4268
|
});
|
|
3408
|
-
var StyledActiveChip = (0,
|
|
4269
|
+
var StyledActiveChip = (0, import_styles17.styled)(import_Chip.default)({
|
|
3409
4270
|
backgroundColor: colors.background.selected,
|
|
3410
4271
|
color: colors.primary.main,
|
|
3411
4272
|
"&:hover": {
|
|
@@ -3417,16 +4278,16 @@ var Chip2 = ({
|
|
|
3417
4278
|
...props
|
|
3418
4279
|
}) => {
|
|
3419
4280
|
if (variant === "active") {
|
|
3420
|
-
return /* @__PURE__ */ (0,
|
|
4281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledActiveChip, { ...props });
|
|
3421
4282
|
}
|
|
3422
|
-
return /* @__PURE__ */ (0,
|
|
4283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledDefaultChip, { ...props });
|
|
3423
4284
|
};
|
|
3424
4285
|
|
|
3425
4286
|
// src/components/feedback/Tooltip.tsx
|
|
3426
4287
|
var import_Tooltip = __toESM(require("@mui/material/Tooltip"));
|
|
3427
|
-
var
|
|
3428
|
-
var
|
|
3429
|
-
var StyledTooltip = (0,
|
|
4288
|
+
var import_styles18 = require("@mui/material/styles");
|
|
4289
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
4290
|
+
var StyledTooltip = (0, import_styles18.styled)(import_Tooltip.default)({
|
|
3430
4291
|
"& .MuiTooltip-tooltip": {
|
|
3431
4292
|
backgroundColor: colors.grey[800],
|
|
3432
4293
|
color: "#FFFFFF",
|
|
@@ -3438,14 +4299,14 @@ var StyledTooltip = (0, import_styles11.styled)(import_Tooltip.default)({
|
|
|
3438
4299
|
color: colors.grey[800]
|
|
3439
4300
|
}
|
|
3440
4301
|
});
|
|
3441
|
-
var
|
|
3442
|
-
return /* @__PURE__ */ (0,
|
|
4302
|
+
var Tooltip6 = (props) => {
|
|
4303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StyledTooltip, { ...props });
|
|
3443
4304
|
};
|
|
3444
4305
|
|
|
3445
4306
|
// src/components/feedback/Progress.tsx
|
|
3446
|
-
var
|
|
3447
|
-
var
|
|
3448
|
-
var StyledLinearProgress = (0,
|
|
4307
|
+
var import_material19 = require("@mui/material");
|
|
4308
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
4309
|
+
var StyledLinearProgress = (0, import_material19.styled)(import_material19.LinearProgress)({
|
|
3449
4310
|
height: 4,
|
|
3450
4311
|
borderRadius: 2,
|
|
3451
4312
|
backgroundColor: colors.grey[200],
|
|
@@ -3454,7 +4315,7 @@ var StyledLinearProgress = (0, import_material13.styled)(import_material13.Linea
|
|
|
3454
4315
|
borderRadius: 2
|
|
3455
4316
|
}
|
|
3456
4317
|
});
|
|
3457
|
-
var StyledCircularProgress = (0,
|
|
4318
|
+
var StyledCircularProgress = (0, import_material19.styled)(import_material19.CircularProgress)({
|
|
3458
4319
|
color: colors.primary.main
|
|
3459
4320
|
});
|
|
3460
4321
|
var Progress = ({
|
|
@@ -3464,9 +4325,9 @@ var Progress = ({
|
|
|
3464
4325
|
thickness = 4
|
|
3465
4326
|
}) => {
|
|
3466
4327
|
if (variant === "circular") {
|
|
3467
|
-
return /* @__PURE__ */ (0,
|
|
4328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StyledCircularProgress, { size: size3, thickness });
|
|
3468
4329
|
}
|
|
3469
|
-
return /* @__PURE__ */ (0,
|
|
4330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
3470
4331
|
StyledLinearProgress,
|
|
3471
4332
|
{
|
|
3472
4333
|
variant: value !== void 0 ? "determinate" : "indeterminate",
|
|
@@ -3477,9 +4338,9 @@ var Progress = ({
|
|
|
3477
4338
|
|
|
3478
4339
|
// src/components/navigation/Tab.tsx
|
|
3479
4340
|
var import_Tab = __toESM(require("@mui/material/Tab"));
|
|
3480
|
-
var
|
|
3481
|
-
var
|
|
3482
|
-
var StyledTab = (0,
|
|
4341
|
+
var import_styles19 = require("@mui/material/styles");
|
|
4342
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
4343
|
+
var StyledTab = (0, import_styles19.styled)(import_Tab.default)({
|
|
3483
4344
|
textTransform: "none",
|
|
3484
4345
|
minHeight: "48px",
|
|
3485
4346
|
fontWeight: 400,
|
|
@@ -3500,15 +4361,15 @@ var Tab = ({
|
|
|
3500
4361
|
label,
|
|
3501
4362
|
...props
|
|
3502
4363
|
}) => {
|
|
3503
|
-
const tabLabel = badge !== void 0 ? /* @__PURE__ */ (0,
|
|
3504
|
-
return /* @__PURE__ */ (0,
|
|
4364
|
+
const tabLabel = badge !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Badge, { variant: badgeVariant, badgeContent: badge, children: label }) : label;
|
|
4365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StyledTab, { label: tabLabel, ...props });
|
|
3505
4366
|
};
|
|
3506
4367
|
|
|
3507
4368
|
// src/components/navigation/Menu.tsx
|
|
3508
|
-
var
|
|
3509
|
-
var
|
|
3510
|
-
var
|
|
3511
|
-
var StyledMenu = (0,
|
|
4369
|
+
var import_material20 = require("@mui/material");
|
|
4370
|
+
var import_styles20 = require("@mui/material/styles");
|
|
4371
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4372
|
+
var StyledMenu = (0, import_styles20.styled)(import_material20.Menu)({
|
|
3512
4373
|
"& .MuiPaper-root": {
|
|
3513
4374
|
borderRadius: 8,
|
|
3514
4375
|
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.15)",
|
|
@@ -3522,7 +4383,7 @@ var StyledMenu = (0, import_styles13.styled)(import_material14.Menu)({
|
|
|
3522
4383
|
}
|
|
3523
4384
|
});
|
|
3524
4385
|
var Menu3 = ({ anchorEl, onClose, children, ...props }) => {
|
|
3525
|
-
return /* @__PURE__ */ (0,
|
|
4386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3526
4387
|
StyledMenu,
|
|
3527
4388
|
{
|
|
3528
4389
|
anchorEl,
|
|
@@ -3548,20 +4409,20 @@ var MenuItem = ({
|
|
|
3548
4409
|
disabled = false,
|
|
3549
4410
|
divider = false
|
|
3550
4411
|
}) => {
|
|
3551
|
-
return /* @__PURE__ */ (0,
|
|
3552
|
-
/* @__PURE__ */ (0,
|
|
3553
|
-
icon && /* @__PURE__ */ (0,
|
|
3554
|
-
/* @__PURE__ */ (0,
|
|
4412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
4413
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material20.MenuItem, { onClick, disabled, children: [
|
|
4414
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material20.ListItemIcon, { children: icon }),
|
|
4415
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material20.ListItemText, { children: label })
|
|
3555
4416
|
] }),
|
|
3556
|
-
divider && /* @__PURE__ */ (0,
|
|
4417
|
+
divider && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material20.Divider, {})
|
|
3557
4418
|
] });
|
|
3558
4419
|
};
|
|
3559
4420
|
|
|
3560
4421
|
// src/components/navigation/Pagination.tsx
|
|
3561
4422
|
var import_Pagination = __toESM(require("@mui/material/Pagination"));
|
|
3562
|
-
var
|
|
3563
|
-
var
|
|
3564
|
-
var StyledPagination = (0,
|
|
4423
|
+
var import_styles21 = require("@mui/material/styles");
|
|
4424
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4425
|
+
var StyledPagination = (0, import_styles21.styled)(import_Pagination.default)({
|
|
3565
4426
|
"& .MuiPaginationItem-root": {
|
|
3566
4427
|
"&.Mui-selected": {
|
|
3567
4428
|
backgroundColor: colors.primary.main,
|
|
@@ -3576,32 +4437,32 @@ var StyledPagination = (0, import_styles14.styled)(import_Pagination.default)({
|
|
|
3576
4437
|
}
|
|
3577
4438
|
});
|
|
3578
4439
|
var Pagination = ({ color = "primary", ...props }) => {
|
|
3579
|
-
return /* @__PURE__ */ (0,
|
|
4440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(StyledPagination, { color, ...props });
|
|
3580
4441
|
};
|
|
3581
4442
|
|
|
3582
4443
|
// src/components/navigation/Selector.tsx
|
|
3583
|
-
var
|
|
3584
|
-
var
|
|
4444
|
+
var import_react12 = require("react");
|
|
4445
|
+
var import_material21 = require("@mui/material");
|
|
3585
4446
|
var import_KeyboardArrowDown3 = __toESM(require("@mui/icons-material/KeyboardArrowDown"));
|
|
3586
4447
|
var import_Search4 = __toESM(require("@mui/icons-material/Search"));
|
|
3587
4448
|
var import_Add3 = __toESM(require("@mui/icons-material/Add"));
|
|
3588
4449
|
|
|
3589
4450
|
// src/components/layout/Link.tsx
|
|
3590
4451
|
var import_Link = __toESM(require("@mui/material/Link"));
|
|
3591
|
-
var
|
|
3592
|
-
var
|
|
3593
|
-
var StyledLink = (0,
|
|
4452
|
+
var import_styles22 = require("@mui/material/styles");
|
|
4453
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4454
|
+
var StyledLink = (0, import_styles22.styled)(import_Link.default)({
|
|
3594
4455
|
color: colors.primary.main,
|
|
3595
4456
|
"&:hover": {
|
|
3596
4457
|
color: colors.primary.light
|
|
3597
4458
|
}
|
|
3598
4459
|
});
|
|
3599
4460
|
var Link3 = ({ underline = "hover", ...props }) => {
|
|
3600
|
-
return /* @__PURE__ */ (0,
|
|
4461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(StyledLink, { underline, ...props });
|
|
3601
4462
|
};
|
|
3602
4463
|
|
|
3603
4464
|
// src/components/navigation/Selector.tsx
|
|
3604
|
-
var
|
|
4465
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
3605
4466
|
var Selector = ({
|
|
3606
4467
|
options: options2,
|
|
3607
4468
|
selectedId,
|
|
@@ -3614,8 +4475,8 @@ var Selector = ({
|
|
|
3614
4475
|
renderSelected,
|
|
3615
4476
|
width = 350
|
|
3616
4477
|
}) => {
|
|
3617
|
-
const [anchorEl, setAnchorEl] = (0,
|
|
3618
|
-
const [searchTerm, setSearchTerm] = (0,
|
|
4478
|
+
const [anchorEl, setAnchorEl] = (0, import_react12.useState)(null);
|
|
4479
|
+
const [searchTerm, setSearchTerm] = (0, import_react12.useState)("");
|
|
3619
4480
|
const open = Boolean(anchorEl);
|
|
3620
4481
|
const selectedOption = options2.find((opt) => opt.id === selectedId);
|
|
3621
4482
|
const filteredOptions = options2.filter(
|
|
@@ -3633,15 +4494,15 @@ var Selector = ({
|
|
|
3633
4494
|
onSelect(id);
|
|
3634
4495
|
handleClose();
|
|
3635
4496
|
};
|
|
3636
|
-
const defaultRenderSelected = (option) => /* @__PURE__ */ (0,
|
|
3637
|
-
option.avatar ? /* @__PURE__ */ (0,
|
|
3638
|
-
/* @__PURE__ */ (0,
|
|
4497
|
+
const defaultRenderSelected = (option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_material21.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
4498
|
+
option.avatar ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { src: option.avatar, sx: { width: 20, height: 20 } }) : option.icon ? option.icon : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { sx: { width: 20, height: 20, bgcolor: colors.primary.main, fontSize: "0.7rem" }, children: option.name.charAt(0) }),
|
|
4499
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Typography, { variant: "body2", children: option.name })
|
|
3639
4500
|
] });
|
|
3640
4501
|
if (compact) {
|
|
3641
|
-
return /* @__PURE__ */ (0,
|
|
3642
|
-
/* @__PURE__ */ (0,
|
|
3643
|
-
/* @__PURE__ */ (0,
|
|
3644
|
-
|
|
4502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
4503
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(IconButton, { onClick: handleOpen, size: "small", children: selectedOption ? selectedOption.avatar ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { src: selectedOption.avatar, sx: { width: 32, height: 32 } }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { sx: { width: 32, height: 32, bgcolor: colors.primary.main }, children: selectedOption.name.charAt(0) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { sx: { width: 32, height: 32, bgcolor: colors.grey[400] }, children: "?" }) }),
|
|
4504
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4505
|
+
import_material21.Menu,
|
|
3645
4506
|
{
|
|
3646
4507
|
anchorEl,
|
|
3647
4508
|
open,
|
|
@@ -3649,8 +4510,8 @@ var Selector = ({
|
|
|
3649
4510
|
PaperProps: {
|
|
3650
4511
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
3651
4512
|
},
|
|
3652
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
3653
|
-
options2.length > 5 && /* @__PURE__ */ (0,
|
|
4513
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.CircularProgress, { size: 24 }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
4514
|
+
options2.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3654
4515
|
TextField,
|
|
3655
4516
|
{
|
|
3656
4517
|
size: "small",
|
|
@@ -3659,31 +4520,31 @@ var Selector = ({
|
|
|
3659
4520
|
value: searchTerm,
|
|
3660
4521
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
3661
4522
|
InputProps: {
|
|
3662
|
-
startAdornment: /* @__PURE__ */ (0,
|
|
4523
|
+
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_Search4.default, { fontSize: "small" }) })
|
|
3663
4524
|
}
|
|
3664
4525
|
}
|
|
3665
4526
|
) }),
|
|
3666
|
-
/* @__PURE__ */ (0,
|
|
3667
|
-
filteredOptions.map((option) => /* @__PURE__ */ (0,
|
|
3668
|
-
|
|
4527
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_material21.List, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4528
|
+
filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
4529
|
+
import_material21.ListItemButton,
|
|
3669
4530
|
{
|
|
3670
4531
|
selected: option.id === selectedId,
|
|
3671
4532
|
onClick: () => handleSelect(option.id),
|
|
3672
4533
|
disabled: option.disabled,
|
|
3673
4534
|
children: [
|
|
3674
|
-
option.avatar ? /* @__PURE__ */ (0,
|
|
3675
|
-
/* @__PURE__ */ (0,
|
|
4535
|
+
option.avatar ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { src: option.avatar }) }) : option.icon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemAvatar, { children: option.icon }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { sx: { bgcolor: colors.primary.main }, children: option.name.charAt(0) }) }),
|
|
4536
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemText, { primary: option.name, secondary: option.description })
|
|
3676
4537
|
]
|
|
3677
4538
|
},
|
|
3678
4539
|
option.id
|
|
3679
4540
|
)),
|
|
3680
|
-
filteredOptions.length === 0 && /* @__PURE__ */ (0,
|
|
4541
|
+
filteredOptions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Typography, { variant: "body2", color: "text.secondary", children: emptyMessage }) })
|
|
3681
4542
|
] }),
|
|
3682
|
-
onCreate && /* @__PURE__ */ (0,
|
|
4543
|
+
onCreate && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { p: 1, borderTop: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3683
4544
|
Button,
|
|
3684
4545
|
{
|
|
3685
4546
|
fullWidth: true,
|
|
3686
|
-
startIcon: /* @__PURE__ */ (0,
|
|
4547
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_Add3.default, {}),
|
|
3687
4548
|
onClick: () => {
|
|
3688
4549
|
onCreate();
|
|
3689
4550
|
handleClose();
|
|
@@ -3696,13 +4557,13 @@ var Selector = ({
|
|
|
3696
4557
|
)
|
|
3697
4558
|
] });
|
|
3698
4559
|
}
|
|
3699
|
-
return /* @__PURE__ */ (0,
|
|
3700
|
-
/* @__PURE__ */ (0,
|
|
3701
|
-
selectedOption ? renderSelected ? /* @__PURE__ */ (0,
|
|
3702
|
-
/* @__PURE__ */ (0,
|
|
4560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
4561
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_material21.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
4562
|
+
selectedOption ? renderSelected ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Link3, { onClick: handleOpen, underline: "hover", children: renderSelected(selectedOption) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Link3, { onClick: handleOpen, underline: "hover", children: defaultRenderSelected(selectedOption) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Typography, { variant: "body2", color: "text.secondary", children: placeholder }),
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(IconButton, { onClick: handleOpen, size: "small", sx: { p: 0.2, ml: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_KeyboardArrowDown3.default, { fontSize: "small" }) })
|
|
3703
4564
|
] }),
|
|
3704
|
-
/* @__PURE__ */ (0,
|
|
3705
|
-
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
4566
|
+
import_material21.Menu,
|
|
3706
4567
|
{
|
|
3707
4568
|
anchorEl,
|
|
3708
4569
|
open,
|
|
@@ -3710,8 +4571,8 @@ var Selector = ({
|
|
|
3710
4571
|
PaperProps: {
|
|
3711
4572
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
3712
4573
|
},
|
|
3713
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
3714
|
-
options2.length > 5 && /* @__PURE__ */ (0,
|
|
4574
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.CircularProgress, { size: 24 }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
|
|
4575
|
+
options2.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3715
4576
|
TextField,
|
|
3716
4577
|
{
|
|
3717
4578
|
size: "small",
|
|
@@ -3720,31 +4581,31 @@ var Selector = ({
|
|
|
3720
4581
|
value: searchTerm,
|
|
3721
4582
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
3722
4583
|
InputProps: {
|
|
3723
|
-
startAdornment: /* @__PURE__ */ (0,
|
|
4584
|
+
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_Search4.default, { fontSize: "small" }) })
|
|
3724
4585
|
}
|
|
3725
4586
|
}
|
|
3726
4587
|
) }),
|
|
3727
|
-
/* @__PURE__ */ (0,
|
|
3728
|
-
filteredOptions.map((option) => /* @__PURE__ */ (0,
|
|
3729
|
-
|
|
4588
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_material21.List, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4589
|
+
filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
4590
|
+
import_material21.ListItemButton,
|
|
3730
4591
|
{
|
|
3731
4592
|
selected: option.id === selectedId,
|
|
3732
4593
|
onClick: () => handleSelect(option.id),
|
|
3733
4594
|
disabled: option.disabled,
|
|
3734
4595
|
children: [
|
|
3735
|
-
option.avatar ? /* @__PURE__ */ (0,
|
|
3736
|
-
/* @__PURE__ */ (0,
|
|
4596
|
+
option.avatar ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { src: option.avatar }) }) : option.icon ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemAvatar, { children: option.icon }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Avatar, { sx: { bgcolor: colors.primary.main }, children: option.name.charAt(0) }) }),
|
|
4597
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.ListItemText, { primary: option.name, secondary: option.description })
|
|
3737
4598
|
]
|
|
3738
4599
|
},
|
|
3739
4600
|
option.id
|
|
3740
4601
|
)),
|
|
3741
|
-
filteredOptions.length === 0 && /* @__PURE__ */ (0,
|
|
4602
|
+
filteredOptions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Typography, { variant: "body2", color: "text.secondary", children: emptyMessage }) })
|
|
3742
4603
|
] }),
|
|
3743
|
-
onCreate && /* @__PURE__ */ (0,
|
|
4604
|
+
onCreate && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material21.Box, { sx: { p: 1, borderTop: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
3744
4605
|
Button,
|
|
3745
4606
|
{
|
|
3746
4607
|
fullWidth: true,
|
|
3747
|
-
startIcon: /* @__PURE__ */ (0,
|
|
4608
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_Add3.default, {}),
|
|
3748
4609
|
onClick: () => {
|
|
3749
4610
|
onCreate();
|
|
3750
4611
|
handleClose();
|
|
@@ -3759,44 +4620,44 @@ var Selector = ({
|
|
|
3759
4620
|
};
|
|
3760
4621
|
|
|
3761
4622
|
// src/components/layout/Logo.tsx
|
|
3762
|
-
var
|
|
4623
|
+
var import_material23 = require("@mui/material");
|
|
3763
4624
|
|
|
3764
4625
|
// src/components/icons/CereIcon.tsx
|
|
3765
|
-
var
|
|
3766
|
-
var
|
|
3767
|
-
var
|
|
3768
|
-
var CereIcon = (0,
|
|
3769
|
-
/* @__PURE__ */ (0,
|
|
4626
|
+
var import_react13 = require("react");
|
|
4627
|
+
var import_material22 = require("@mui/material");
|
|
4628
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4629
|
+
var CereIcon = (0, import_react13.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_material22.SvgIcon, { ...props, viewBox: "0 0 24 28", children: [
|
|
4630
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("g", { clipPath: "url(#a)", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
3770
4631
|
"path",
|
|
3771
4632
|
{
|
|
3772
4633
|
d: "M12.77 26.848c-5.95 0-10.572-2.88-12.063-7.515l-.334-1.037.978-.471c.103-.051 2.668-1.35 2.509-3.901-.169-2.695-2.339-3.96-2.431-4.012L.475 9.37l.412-1.025C2.838 3.601 7.28.77 12.77.77c4.314 0 8.095 1.698 10.37 4.658l.575.748-4.535 6.146-1.013-.984c-.02-.019-2.175-2.069-4.678-2.08-2.411-.012-3.362.902-3.401.941L8.3 8.473c.164-.175 1.695-1.733 5.199-1.707 2.232.01 4.161 1.084 5.3 1.896l1.778-2.41c-1.845-1.91-4.636-2.99-7.808-2.99-4.095 0-7.459 1.91-9.182 5.155 1.042.879 2.57 2.62 2.742 5.35.185 2.95-1.692 4.806-2.913 5.692 1.445 3.043 4.932 4.895 9.354 4.895 3.063 0 6.198-1.2 8.134-3.053l-2.023-2.55c-1.077.768-2.917 1.764-5.323 1.89-3.416.177-5.436-1.404-5.52-1.471l1.536-1.954c.047.035 1.42 1.065 3.855.936 2.884-.15 4.734-2.012 4.75-2.032l.98-1.002.874 1.094 4.088 5.155-.627.779c-2.3 2.856-6.508 4.702-10.726 4.702Z",
|
|
3773
4634
|
fill: "currentColor"
|
|
3774
4635
|
}
|
|
3775
4636
|
) }),
|
|
3776
|
-
/* @__PURE__ */ (0,
|
|
4637
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("clipPath", { id: "a", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { fill: "currentColor", transform: "translate(.373 .77)", d: "M0 0h23.615v26.36H0z" }) }) })
|
|
3777
4638
|
] }));
|
|
3778
4639
|
|
|
3779
4640
|
// src/components/layout/Logo.tsx
|
|
3780
|
-
var
|
|
4641
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3781
4642
|
var sizesMap = {
|
|
3782
4643
|
large: 38,
|
|
3783
4644
|
medium: 32,
|
|
3784
4645
|
small: 24
|
|
3785
4646
|
};
|
|
3786
|
-
var Container = (0,
|
|
3787
|
-
[`& .${
|
|
4647
|
+
var Container = (0, import_material23.styled)(import_material23.Stack)({
|
|
4648
|
+
[`& .${import_material23.svgIconClasses.root}`]: {
|
|
3788
4649
|
fontSize: "inherit"
|
|
3789
4650
|
}
|
|
3790
4651
|
});
|
|
3791
|
-
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */ (0,
|
|
4652
|
+
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CereIcon, { color: "primary" }) }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Container, { direction: "row", alignItems: "center", spacing: 2, fontSize: sizesMap[size3], children: [
|
|
3792
4653
|
icon,
|
|
3793
|
-
children && /* @__PURE__ */ (0,
|
|
4654
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material23.Stack, { children })
|
|
3794
4655
|
] });
|
|
3795
4656
|
|
|
3796
4657
|
// src/components/layout/Dialog.tsx
|
|
3797
|
-
var
|
|
4658
|
+
var import_material24 = require("@mui/material");
|
|
3798
4659
|
var import_Close = __toESM(require("@mui/icons-material/Close"));
|
|
3799
|
-
var
|
|
4660
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3800
4661
|
var Dialog = ({
|
|
3801
4662
|
open,
|
|
3802
4663
|
title,
|
|
@@ -3820,8 +4681,8 @@ var Dialog = ({
|
|
|
3820
4681
|
if (e) e.stopPropagation();
|
|
3821
4682
|
onClose();
|
|
3822
4683
|
};
|
|
3823
|
-
return /* @__PURE__ */ (0,
|
|
3824
|
-
|
|
4684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
4685
|
+
import_material24.Dialog,
|
|
3825
4686
|
{
|
|
3826
4687
|
open,
|
|
3827
4688
|
onClose: (_, reason) => {
|
|
@@ -3837,43 +4698,43 @@ var Dialog = ({
|
|
|
3837
4698
|
...dialogProps.PaperProps
|
|
3838
4699
|
},
|
|
3839
4700
|
children: [
|
|
3840
|
-
/* @__PURE__ */ (0,
|
|
3841
|
-
/* @__PURE__ */ (0,
|
|
3842
|
-
/* @__PURE__ */ (0,
|
|
4701
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_material24.DialogTitle, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", p: 2 }, children: [
|
|
4702
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.Box, { sx: { display: "flex", alignItems: "center" }, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.Typography, { variant: "h6", children: title }) : title }),
|
|
4703
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_material24.Box, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
3843
4704
|
headerAction,
|
|
3844
|
-
/* @__PURE__ */ (0,
|
|
3845
|
-
|
|
4705
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4706
|
+
import_material24.IconButton,
|
|
3846
4707
|
{
|
|
3847
4708
|
edge: "end",
|
|
3848
4709
|
color: "inherit",
|
|
3849
4710
|
onClick: handleCloseAttempt,
|
|
3850
4711
|
"aria-label": "close",
|
|
3851
|
-
children: /* @__PURE__ */ (0,
|
|
4712
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_Close.default, {})
|
|
3852
4713
|
}
|
|
3853
4714
|
)
|
|
3854
4715
|
] })
|
|
3855
4716
|
] }),
|
|
3856
|
-
dividers && /* @__PURE__ */ (0,
|
|
3857
|
-
/* @__PURE__ */ (0,
|
|
3858
|
-
(showActions || customActions) && /* @__PURE__ */ (0,
|
|
3859
|
-
dividers && /* @__PURE__ */ (0,
|
|
3860
|
-
/* @__PURE__ */ (0,
|
|
3861
|
-
/* @__PURE__ */ (0,
|
|
3862
|
-
|
|
4717
|
+
dividers && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.Divider, {}),
|
|
4718
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.DialogContent, { dividers, children }),
|
|
4719
|
+
(showActions || customActions) && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
4720
|
+
dividers && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.Divider, {}),
|
|
4721
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.DialogActions, { children: customActions || /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
4722
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4723
|
+
import_material24.Button,
|
|
3863
4724
|
{
|
|
3864
4725
|
onClick: handleCloseAttempt,
|
|
3865
4726
|
disabled: isLoading,
|
|
3866
4727
|
children: cancelLabel
|
|
3867
4728
|
}
|
|
3868
4729
|
),
|
|
3869
|
-
onSubmit && /* @__PURE__ */ (0,
|
|
3870
|
-
|
|
4730
|
+
onSubmit && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4731
|
+
import_material24.Button,
|
|
3871
4732
|
{
|
|
3872
4733
|
variant: "contained",
|
|
3873
4734
|
color: "primary",
|
|
3874
4735
|
onClick: onSubmit,
|
|
3875
4736
|
disabled: disableSubmit || isLoading,
|
|
3876
|
-
startIcon: isLoading ? /* @__PURE__ */ (0,
|
|
4737
|
+
startIcon: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_material24.CircularProgress, { size: 20 }) : void 0,
|
|
3877
4738
|
children: submitLabel
|
|
3878
4739
|
}
|
|
3879
4740
|
)
|
|
@@ -3886,11 +4747,11 @@ var Dialog = ({
|
|
|
3886
4747
|
|
|
3887
4748
|
// src/components/layout/Drawer.tsx
|
|
3888
4749
|
var import_Drawer = __toESM(require("@mui/material/Drawer"));
|
|
3889
|
-
var
|
|
3890
|
-
var
|
|
4750
|
+
var import_styles23 = require("@mui/material/styles");
|
|
4751
|
+
var import_material25 = require("@mui/material");
|
|
3891
4752
|
var import_Close2 = __toESM(require("@mui/icons-material/Close"));
|
|
3892
|
-
var
|
|
3893
|
-
var StyledDrawer2 = (0,
|
|
4753
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4754
|
+
var StyledDrawer2 = (0, import_styles23.styled)(import_Drawer.default, {
|
|
3894
4755
|
shouldForwardProp: (prop) => prop !== "width" && prop !== "miniWidth" && prop !== "collapsed" && prop !== "topOffset"
|
|
3895
4756
|
})(({ theme: theme2, width = 240, miniWidth = 72, collapsed, topOffset = 0 }) => ({
|
|
3896
4757
|
width: collapsed ? miniWidth : width,
|
|
@@ -3936,7 +4797,7 @@ var Drawer2 = ({
|
|
|
3936
4797
|
const finalWidth = width ?? defaultWidth;
|
|
3937
4798
|
const shouldShowClose = showCloseButton ?? (variant === "temporary" || variant === "persistent");
|
|
3938
4799
|
const hasHeader = title || header || shouldShowClose || tabs;
|
|
3939
|
-
return /* @__PURE__ */ (0,
|
|
4800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
3940
4801
|
StyledDrawer2,
|
|
3941
4802
|
{
|
|
3942
4803
|
width: finalWidth,
|
|
@@ -3961,9 +4822,9 @@ var Drawer2 = ({
|
|
|
3961
4822
|
},
|
|
3962
4823
|
...props,
|
|
3963
4824
|
children: [
|
|
3964
|
-
hasHeader && /* @__PURE__ */ (0,
|
|
3965
|
-
/* @__PURE__ */ (0,
|
|
3966
|
-
|
|
4825
|
+
hasHeader && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
4826
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4827
|
+
import_material25.Box,
|
|
3967
4828
|
{
|
|
3968
4829
|
sx: {
|
|
3969
4830
|
display: "flex",
|
|
@@ -3974,10 +4835,10 @@ var Drawer2 = ({
|
|
|
3974
4835
|
borderBottom: 1,
|
|
3975
4836
|
borderColor: "divider"
|
|
3976
4837
|
},
|
|
3977
|
-
children: header || /* @__PURE__ */ (0,
|
|
3978
|
-
/* @__PURE__ */ (0,
|
|
3979
|
-
shouldShowClose && onClose && /* @__PURE__ */ (0,
|
|
3980
|
-
|
|
4838
|
+
children: header || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
4839
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_material25.Box, { sx: { flex: 1 }, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_material25.Typography, { variant: "h6", children: title }) : title }),
|
|
4840
|
+
shouldShowClose && onClose && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4841
|
+
import_material25.IconButton,
|
|
3981
4842
|
{
|
|
3982
4843
|
onClick: (e) => {
|
|
3983
4844
|
e.stopPropagation();
|
|
@@ -3986,14 +4847,14 @@ var Drawer2 = ({
|
|
|
3986
4847
|
size: "small",
|
|
3987
4848
|
sx: { ml: 1 },
|
|
3988
4849
|
"aria-label": "close",
|
|
3989
|
-
children: /* @__PURE__ */ (0,
|
|
4850
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_Close2.default, {})
|
|
3990
4851
|
}
|
|
3991
4852
|
)
|
|
3992
4853
|
] })
|
|
3993
4854
|
}
|
|
3994
4855
|
),
|
|
3995
|
-
tabs && tabs.length > 0 && /* @__PURE__ */ (0,
|
|
3996
|
-
|
|
4856
|
+
tabs && tabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4857
|
+
import_material25.Tabs,
|
|
3997
4858
|
{
|
|
3998
4859
|
value: activeTab,
|
|
3999
4860
|
onChange: (_, newValue) => onTabChange?.(newValue),
|
|
@@ -4007,12 +4868,12 @@ var Drawer2 = ({
|
|
|
4007
4868
|
overflow: "auto"
|
|
4008
4869
|
}
|
|
4009
4870
|
},
|
|
4010
|
-
children: tabs.map((tab, index) => /* @__PURE__ */ (0,
|
|
4871
|
+
children: tabs.map((tab, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_material25.Tab, { label: tab }, index))
|
|
4011
4872
|
}
|
|
4012
4873
|
)
|
|
4013
4874
|
] }),
|
|
4014
|
-
/* @__PURE__ */ (0,
|
|
4015
|
-
|
|
4875
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4876
|
+
import_material25.Box,
|
|
4016
4877
|
{
|
|
4017
4878
|
sx: {
|
|
4018
4879
|
flex: 1,
|
|
@@ -4024,10 +4885,10 @@ var Drawer2 = ({
|
|
|
4024
4885
|
children
|
|
4025
4886
|
}
|
|
4026
4887
|
),
|
|
4027
|
-
footer && /* @__PURE__ */ (0,
|
|
4028
|
-
/* @__PURE__ */ (0,
|
|
4029
|
-
/* @__PURE__ */ (0,
|
|
4030
|
-
|
|
4888
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
4889
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_material25.Divider, {}),
|
|
4890
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4891
|
+
import_material25.Box,
|
|
4031
4892
|
{
|
|
4032
4893
|
sx: {
|
|
4033
4894
|
p: 2,
|
|
@@ -4048,9 +4909,9 @@ var import_Card = __toESM(require("@mui/material/Card"));
|
|
|
4048
4909
|
var import_CardContent = __toESM(require("@mui/material/CardContent"));
|
|
4049
4910
|
var import_CardHeader = __toESM(require("@mui/material/CardHeader"));
|
|
4050
4911
|
var import_CardActions = __toESM(require("@mui/material/CardActions"));
|
|
4051
|
-
var
|
|
4052
|
-
var
|
|
4053
|
-
var StyledCard = (0,
|
|
4912
|
+
var import_styles24 = require("@mui/material/styles");
|
|
4913
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4914
|
+
var StyledCard = (0, import_styles24.styled)(import_Card.default, {
|
|
4054
4915
|
shouldForwardProp: (prop) => prop !== "hoverable" && prop !== "clickable"
|
|
4055
4916
|
})(({ hoverable, clickable }) => ({
|
|
4056
4917
|
borderRadius: 8,
|
|
@@ -4067,26 +4928,26 @@ var StyledCard = (0, import_styles17.styled)(import_Card.default, {
|
|
|
4067
4928
|
}
|
|
4068
4929
|
}));
|
|
4069
4930
|
var Card = ({ hoverable = false, clickable = false, children, ...props }) => {
|
|
4070
|
-
return /* @__PURE__ */ (0,
|
|
4931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(StyledCard, { hoverable, clickable, ...props, children });
|
|
4071
4932
|
};
|
|
4072
4933
|
var CardContent = (props) => {
|
|
4073
|
-
return /* @__PURE__ */ (0,
|
|
4934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_CardContent.default, { ...props });
|
|
4074
4935
|
};
|
|
4075
4936
|
var CardHeader = (props) => {
|
|
4076
|
-
return /* @__PURE__ */ (0,
|
|
4937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_CardHeader.default, { ...props });
|
|
4077
4938
|
};
|
|
4078
4939
|
var CardActions = (props) => {
|
|
4079
|
-
return /* @__PURE__ */ (0,
|
|
4940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_CardActions.default, { ...props });
|
|
4080
4941
|
};
|
|
4081
4942
|
|
|
4082
4943
|
// src/components/layout/List.tsx
|
|
4083
|
-
var
|
|
4084
|
-
var
|
|
4085
|
-
var
|
|
4086
|
-
var
|
|
4087
|
-
return /* @__PURE__ */ (0,
|
|
4944
|
+
var import_material26 = require("@mui/material");
|
|
4945
|
+
var import_styles25 = require("@mui/material/styles");
|
|
4946
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4947
|
+
var List6 = (props) => {
|
|
4948
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material26.List, { ...props });
|
|
4088
4949
|
};
|
|
4089
|
-
var StyledListItem = (0,
|
|
4950
|
+
var StyledListItem = (0, import_styles25.styled)(import_material26.ListItem, {
|
|
4090
4951
|
shouldForwardProp: (prop) => prop !== "hoverable"
|
|
4091
4952
|
})(({ hoverable = true }) => ({
|
|
4092
4953
|
border: `1px solid ${colors.grey[200]}`,
|
|
@@ -4098,7 +4959,7 @@ var StyledListItem = (0, import_styles18.styled)(import_material20.ListItem, {
|
|
|
4098
4959
|
}
|
|
4099
4960
|
}
|
|
4100
4961
|
}));
|
|
4101
|
-
var
|
|
4962
|
+
var ListItem4 = ({
|
|
4102
4963
|
primary,
|
|
4103
4964
|
secondary,
|
|
4104
4965
|
icon,
|
|
@@ -4107,10 +4968,10 @@ var ListItem3 = ({
|
|
|
4107
4968
|
children,
|
|
4108
4969
|
...props
|
|
4109
4970
|
}) => {
|
|
4110
|
-
return /* @__PURE__ */ (0,
|
|
4111
|
-
icon && /* @__PURE__ */ (0,
|
|
4112
|
-
(primary || secondary) && /* @__PURE__ */ (0,
|
|
4113
|
-
|
|
4971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(StyledListItem, { hoverable, ...props, children: [
|
|
4972
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material26.ListItemIcon, { children: icon }),
|
|
4973
|
+
(primary || secondary) && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4974
|
+
import_material26.ListItemText,
|
|
4114
4975
|
{
|
|
4115
4976
|
primary,
|
|
4116
4977
|
secondary
|
|
@@ -4123,14 +4984,14 @@ var ListItem3 = ({
|
|
|
4123
4984
|
|
|
4124
4985
|
// src/components/layout/Avatar.tsx
|
|
4125
4986
|
var import_Avatar = __toESM(require("@mui/material/Avatar"));
|
|
4126
|
-
var
|
|
4127
|
-
var
|
|
4987
|
+
var import_styles26 = require("@mui/material/styles");
|
|
4988
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
4128
4989
|
var sizeMap = {
|
|
4129
4990
|
small: 32,
|
|
4130
4991
|
medium: 40,
|
|
4131
4992
|
large: 56
|
|
4132
4993
|
};
|
|
4133
|
-
var StyledAvatar = (0,
|
|
4994
|
+
var StyledAvatar = (0, import_styles26.styled)(import_Avatar.default, {
|
|
4134
4995
|
shouldForwardProp: (prop) => prop !== "avatarSize"
|
|
4135
4996
|
})(({ avatarSize = 40 }) => ({
|
|
4136
4997
|
width: avatarSize,
|
|
@@ -4139,20 +5000,20 @@ var StyledAvatar = (0, import_styles19.styled)(import_Avatar.default, {
|
|
|
4139
5000
|
color: colors.primary.contrastText,
|
|
4140
5001
|
fontWeight: 600
|
|
4141
5002
|
}));
|
|
4142
|
-
var
|
|
5003
|
+
var Avatar5 = ({ size: size3 = "medium", ...props }) => {
|
|
4143
5004
|
const avatarSize = typeof size3 === "number" ? size3 : sizeMap[size3];
|
|
4144
|
-
return /* @__PURE__ */ (0,
|
|
5005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(StyledAvatar, { avatarSize, ...props });
|
|
4145
5006
|
};
|
|
4146
5007
|
|
|
4147
5008
|
// src/components/layout/Table.tsx
|
|
4148
|
-
var
|
|
4149
|
-
var
|
|
4150
|
-
var
|
|
4151
|
-
var StyledTableContainer = (0,
|
|
5009
|
+
var import_material27 = require("@mui/material");
|
|
5010
|
+
var import_styles27 = require("@mui/material/styles");
|
|
5011
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5012
|
+
var StyledTableContainer = (0, import_styles27.styled)(import_material27.TableContainer)({
|
|
4152
5013
|
borderRadius: 8,
|
|
4153
5014
|
border: `1px solid ${colors.grey[200]}`
|
|
4154
5015
|
});
|
|
4155
|
-
var StyledTableHead = (0,
|
|
5016
|
+
var StyledTableHead = (0, import_styles27.styled)(import_material27.TableHead)({
|
|
4156
5017
|
backgroundColor: colors.grey[50],
|
|
4157
5018
|
"& .MuiTableCell-head": {
|
|
4158
5019
|
fontWeight: 600,
|
|
@@ -4160,7 +5021,7 @@ var StyledTableHead = (0, import_styles20.styled)(import_material21.TableHead)({
|
|
|
4160
5021
|
}
|
|
4161
5022
|
});
|
|
4162
5023
|
var Table = ({ stickyHeader = false, children, ...props }) => {
|
|
4163
|
-
return /* @__PURE__ */ (0,
|
|
5024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(StyledTableContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_material27.Table, { stickyHeader, ...props, children }) });
|
|
4164
5025
|
};
|
|
4165
5026
|
var TableHeader = ({
|
|
4166
5027
|
columns,
|
|
@@ -4168,8 +5029,8 @@ var TableHeader = ({
|
|
|
4168
5029
|
order = "asc",
|
|
4169
5030
|
onSort
|
|
4170
5031
|
}) => {
|
|
4171
|
-
return /* @__PURE__ */ (0,
|
|
4172
|
-
|
|
5032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(StyledTableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_material27.TableRow, { children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_material27.TableCell, { align: column.align || "left", children: column.sortable && onSort ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
5033
|
+
import_material27.TableSortLabel,
|
|
4173
5034
|
{
|
|
4174
5035
|
active: orderBy === column.id,
|
|
4175
5036
|
direction: orderBy === column.id ? order : "asc",
|
|
@@ -4180,15 +5041,15 @@ var TableHeader = ({
|
|
|
4180
5041
|
};
|
|
4181
5042
|
|
|
4182
5043
|
// src/components/layout/Grid.tsx
|
|
4183
|
-
var
|
|
5044
|
+
var import_material28 = require("@mui/material");
|
|
4184
5045
|
|
|
4185
5046
|
// src/components/layout/Breadcrumbs.tsx
|
|
4186
5047
|
var import_Breadcrumbs = __toESM(require("@mui/material/Breadcrumbs"));
|
|
4187
5048
|
var import_Link3 = __toESM(require("@mui/material/Link"));
|
|
4188
5049
|
var import_Typography = __toESM(require("@mui/material/Typography"));
|
|
4189
|
-
var
|
|
4190
|
-
var
|
|
4191
|
-
var StyledBreadcrumbs = (0,
|
|
5050
|
+
var import_styles28 = require("@mui/material/styles");
|
|
5051
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
5052
|
+
var StyledBreadcrumbs = (0, import_styles28.styled)(import_Breadcrumbs.default)({
|
|
4192
5053
|
"& .MuiBreadcrumbs-ol": {
|
|
4193
5054
|
flexWrap: "nowrap"
|
|
4194
5055
|
},
|
|
@@ -4196,7 +5057,7 @@ var StyledBreadcrumbs = (0, import_styles21.styled)(import_Breadcrumbs.default)(
|
|
|
4196
5057
|
color: colors.text.secondary
|
|
4197
5058
|
}
|
|
4198
5059
|
});
|
|
4199
|
-
var StyledLink2 = (0,
|
|
5060
|
+
var StyledLink2 = (0, import_styles28.styled)(import_Link3.default)({
|
|
4200
5061
|
color: colors.primary.main,
|
|
4201
5062
|
textDecoration: "none",
|
|
4202
5063
|
"&:hover": {
|
|
@@ -4204,12 +5065,12 @@ var StyledLink2 = (0, import_styles21.styled)(import_Link3.default)({
|
|
|
4204
5065
|
}
|
|
4205
5066
|
});
|
|
4206
5067
|
var Breadcrumbs = ({ items, ...props }) => {
|
|
4207
|
-
return /* @__PURE__ */ (0,
|
|
5068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(StyledBreadcrumbs, { ...props, children: items.map((item, index) => {
|
|
4208
5069
|
const isLast = index === items.length - 1;
|
|
4209
5070
|
if (isLast || !item.href && !item.onClick) {
|
|
4210
|
-
return /* @__PURE__ */ (0,
|
|
5071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_Typography.default, { color: "text.primary", children: item.label }, index);
|
|
4211
5072
|
}
|
|
4212
|
-
return /* @__PURE__ */ (0,
|
|
5073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
4213
5074
|
StyledLink2,
|
|
4214
5075
|
{
|
|
4215
5076
|
href: item.href,
|
|
@@ -4227,11 +5088,11 @@ var Breadcrumbs = ({ items, ...props }) => {
|
|
|
4227
5088
|
};
|
|
4228
5089
|
|
|
4229
5090
|
// src/components/layout/Accordion.tsx
|
|
4230
|
-
var
|
|
5091
|
+
var import_material29 = require("@mui/material");
|
|
4231
5092
|
var import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"));
|
|
4232
|
-
var
|
|
4233
|
-
var
|
|
4234
|
-
var StyledAccordion = (0,
|
|
5093
|
+
var import_styles29 = require("@mui/material/styles");
|
|
5094
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5095
|
+
var StyledAccordion = (0, import_styles29.styled)(import_material29.Accordion)({
|
|
4235
5096
|
borderRadius: 8,
|
|
4236
5097
|
boxShadow: "none",
|
|
4237
5098
|
border: `1px solid ${colors.grey[200]}`,
|
|
@@ -4242,7 +5103,7 @@ var StyledAccordion = (0, import_styles22.styled)(import_material23.Accordion)({
|
|
|
4242
5103
|
margin: 0
|
|
4243
5104
|
}
|
|
4244
5105
|
});
|
|
4245
|
-
var StyledAccordionSummary = (0,
|
|
5106
|
+
var StyledAccordionSummary = (0, import_styles29.styled)(import_material29.AccordionSummary)({
|
|
4246
5107
|
backgroundColor: colors.grey[50],
|
|
4247
5108
|
borderRadius: "8px 8px 0 0",
|
|
4248
5109
|
"&.Mui-expanded": {
|
|
@@ -4252,7 +5113,7 @@ var StyledAccordionSummary = (0, import_styles22.styled)(import_material23.Accor
|
|
|
4252
5113
|
margin: "12px 0"
|
|
4253
5114
|
}
|
|
4254
5115
|
});
|
|
4255
|
-
var StyledAccordionDetails = (0,
|
|
5116
|
+
var StyledAccordionDetails = (0, import_styles29.styled)(import_material29.AccordionDetails)({
|
|
4256
5117
|
padding: "16px"
|
|
4257
5118
|
});
|
|
4258
5119
|
var Accordion = ({
|
|
@@ -4261,17 +5122,17 @@ var Accordion = ({
|
|
|
4261
5122
|
defaultExpanded = false,
|
|
4262
5123
|
...props
|
|
4263
5124
|
}) => {
|
|
4264
|
-
return /* @__PURE__ */ (0,
|
|
4265
|
-
/* @__PURE__ */ (0,
|
|
4266
|
-
/* @__PURE__ */ (0,
|
|
5125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(StyledAccordion, { defaultExpanded, ...props, children: [
|
|
5126
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(StyledAccordionSummary, { expandIcon: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_ExpandMore.default, {}), children: title }),
|
|
5127
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(StyledAccordionDetails, { children })
|
|
4267
5128
|
] });
|
|
4268
5129
|
};
|
|
4269
5130
|
|
|
4270
5131
|
// src/components/layout/Paper.tsx
|
|
4271
5132
|
var import_Paper = __toESM(require("@mui/material/Paper"));
|
|
4272
|
-
var
|
|
4273
|
-
var
|
|
4274
|
-
var StyledPaper = (0,
|
|
5133
|
+
var import_styles30 = require("@mui/material/styles");
|
|
5134
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5135
|
+
var StyledPaper = (0, import_styles30.styled)(import_Paper.default)({
|
|
4275
5136
|
borderRadius: 8,
|
|
4276
5137
|
"&.MuiPaper-elevation": {
|
|
4277
5138
|
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.08)"
|
|
@@ -4282,37 +5143,37 @@ var StyledPaper = (0, import_styles23.styled)(import_Paper.default)({
|
|
|
4282
5143
|
}
|
|
4283
5144
|
});
|
|
4284
5145
|
var Paper = ({ variant = "elevation", ...props }) => {
|
|
4285
|
-
return /* @__PURE__ */ (0,
|
|
5146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(StyledPaper, { variant, elevation: variant === "elevation" ? 1 : 0, ...props });
|
|
4286
5147
|
};
|
|
4287
5148
|
|
|
4288
5149
|
// src/components/layout/Divider.tsx
|
|
4289
5150
|
var import_Divider = __toESM(require("@mui/material/Divider"));
|
|
4290
|
-
var
|
|
4291
|
-
var
|
|
4292
|
-
var StyledDivider = (0,
|
|
5151
|
+
var import_styles31 = require("@mui/material/styles");
|
|
5152
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5153
|
+
var StyledDivider = (0, import_styles31.styled)(import_Divider.default)({
|
|
4293
5154
|
borderColor: colors.grey[200]
|
|
4294
5155
|
});
|
|
4295
5156
|
var Divider4 = ({ ...props }) => {
|
|
4296
|
-
return /* @__PURE__ */ (0,
|
|
5157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(StyledDivider, { ...props });
|
|
4297
5158
|
};
|
|
4298
5159
|
|
|
4299
5160
|
// src/components/layout/Stack.tsx
|
|
4300
|
-
var
|
|
5161
|
+
var import_material30 = require("@mui/material");
|
|
4301
5162
|
|
|
4302
5163
|
// src/components/layout/Box.tsx
|
|
4303
|
-
var
|
|
5164
|
+
var import_material31 = require("@mui/material");
|
|
4304
5165
|
|
|
4305
5166
|
// src/components/layout/Typography.tsx
|
|
4306
|
-
var
|
|
5167
|
+
var import_material32 = require("@mui/material");
|
|
4307
5168
|
|
|
4308
5169
|
// src/components/layout/Container.tsx
|
|
4309
|
-
var
|
|
5170
|
+
var import_material33 = require("@mui/material");
|
|
4310
5171
|
|
|
4311
5172
|
// src/components/layout/AppBar.tsx
|
|
4312
|
-
var
|
|
4313
|
-
var
|
|
4314
|
-
var
|
|
4315
|
-
var StyledAppBar = (0,
|
|
5173
|
+
var import_material34 = require("@mui/material");
|
|
5174
|
+
var import_styles32 = require("@mui/material/styles");
|
|
5175
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5176
|
+
var StyledAppBar = (0, import_styles32.styled)(import_material34.AppBar, {
|
|
4316
5177
|
shouldForwardProp: (prop) => prop !== "appBarHeight"
|
|
4317
5178
|
})(({ appBarHeight = 64 }) => ({
|
|
4318
5179
|
backgroundColor: colors.background.paper,
|
|
@@ -4321,31 +5182,31 @@ var StyledAppBar = (0, import_styles25.styled)(import_material28.AppBar, {
|
|
|
4321
5182
|
height: appBarHeight,
|
|
4322
5183
|
zIndex: 1300
|
|
4323
5184
|
}));
|
|
4324
|
-
var StyledToolbar = (0,
|
|
5185
|
+
var StyledToolbar = (0, import_styles32.styled)(import_material34.Toolbar)(({ theme: theme2 }) => ({
|
|
4325
5186
|
height: "100%",
|
|
4326
5187
|
paddingLeft: theme2.spacing(2),
|
|
4327
5188
|
paddingRight: theme2.spacing(2),
|
|
4328
5189
|
gap: theme2.spacing(2)
|
|
4329
5190
|
}));
|
|
4330
5191
|
var AppBar = ({ height = 64, children, ...props }) => {
|
|
4331
|
-
return /* @__PURE__ */ (0,
|
|
5192
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(StyledAppBar, { position: "fixed", appBarHeight: height, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(StyledToolbar, { children }) });
|
|
4332
5193
|
};
|
|
4333
5194
|
|
|
4334
5195
|
// src/components/layout/Collapse.tsx
|
|
4335
|
-
var
|
|
4336
|
-
var
|
|
5196
|
+
var import_material35 = require("@mui/material");
|
|
5197
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4337
5198
|
var Collapse = (props) => {
|
|
4338
|
-
return /* @__PURE__ */ (0,
|
|
5199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_material35.Collapse, { ...props });
|
|
4339
5200
|
};
|
|
4340
5201
|
|
|
4341
5202
|
// src/components/feedback/Alert.tsx
|
|
4342
|
-
var
|
|
5203
|
+
var import_react14 = __toESM(require("react"));
|
|
4343
5204
|
var import_Alert = __toESM(require("@mui/material/Alert"));
|
|
4344
|
-
var
|
|
5205
|
+
var import_material36 = require("@mui/material");
|
|
4345
5206
|
var import_Snackbar = __toESM(require("@mui/material/Snackbar"));
|
|
4346
|
-
var
|
|
4347
|
-
var
|
|
4348
|
-
var StyledAlert = (0,
|
|
5207
|
+
var import_styles33 = require("@mui/material/styles");
|
|
5208
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5209
|
+
var StyledAlert = (0, import_styles33.styled)(import_Alert.default)({
|
|
4349
5210
|
borderRadius: 8,
|
|
4350
5211
|
"&.MuiAlert-filled": {
|
|
4351
5212
|
borderRadius: 8
|
|
@@ -4357,12 +5218,12 @@ var Alert2 = ({
|
|
|
4357
5218
|
children,
|
|
4358
5219
|
...props
|
|
4359
5220
|
}) => {
|
|
4360
|
-
return /* @__PURE__ */ (0,
|
|
4361
|
-
title && /* @__PURE__ */ (0,
|
|
5221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(StyledAlert, { severity, ...props, children: [
|
|
5222
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_material36.AlertTitle, { children: title }),
|
|
4362
5223
|
children
|
|
4363
5224
|
] });
|
|
4364
5225
|
};
|
|
4365
|
-
var StyledSnackbar = (0,
|
|
5226
|
+
var StyledSnackbar = (0, import_styles33.styled)(import_Snackbar.default)({});
|
|
4366
5227
|
var Snackbar2 = ({
|
|
4367
5228
|
message,
|
|
4368
5229
|
severity = "info",
|
|
@@ -4380,7 +5241,7 @@ var Snackbar2 = ({
|
|
|
4380
5241
|
}
|
|
4381
5242
|
onClose?.();
|
|
4382
5243
|
};
|
|
4383
|
-
const content = children || (message ? /* @__PURE__ */ (0,
|
|
5244
|
+
const content = children || (message ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4384
5245
|
Alert2,
|
|
4385
5246
|
{
|
|
4386
5247
|
onClose: onClose ? handleClose : void 0,
|
|
@@ -4394,9 +5255,9 @@ var Snackbar2 = ({
|
|
|
4394
5255
|
if (!content) {
|
|
4395
5256
|
return null;
|
|
4396
5257
|
}
|
|
4397
|
-
const NoTransition =
|
|
5258
|
+
const NoTransition = import_react14.default.forwardRef(
|
|
4398
5259
|
(props2, ref) => {
|
|
4399
|
-
return
|
|
5260
|
+
return import_react14.default.cloneElement(props2.children, {
|
|
4400
5261
|
ref,
|
|
4401
5262
|
style: {
|
|
4402
5263
|
...props2.children.props.style,
|
|
@@ -4406,7 +5267,7 @@ var Snackbar2 = ({
|
|
|
4406
5267
|
}
|
|
4407
5268
|
);
|
|
4408
5269
|
NoTransition.displayName = "NoTransition";
|
|
4409
|
-
return /* @__PURE__ */ (0,
|
|
5270
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
4410
5271
|
StyledSnackbar,
|
|
4411
5272
|
{
|
|
4412
5273
|
anchorOrigin,
|
|
@@ -4426,16 +5287,16 @@ var Snackbar2 = ({
|
|
|
4426
5287
|
};
|
|
4427
5288
|
|
|
4428
5289
|
// src/components/feedback/EmptyState.tsx
|
|
4429
|
-
var
|
|
4430
|
-
var
|
|
5290
|
+
var import_material37 = require("@mui/material");
|
|
5291
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4431
5292
|
var EmptyState = ({
|
|
4432
5293
|
title = "No items found",
|
|
4433
5294
|
description,
|
|
4434
5295
|
icon,
|
|
4435
5296
|
action
|
|
4436
5297
|
}) => {
|
|
4437
|
-
return /* @__PURE__ */ (0,
|
|
4438
|
-
|
|
5298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
5299
|
+
import_material37.Box,
|
|
4439
5300
|
{
|
|
4440
5301
|
sx: {
|
|
4441
5302
|
display: "flex",
|
|
@@ -4447,8 +5308,8 @@ var EmptyState = ({
|
|
|
4447
5308
|
minHeight: 200
|
|
4448
5309
|
},
|
|
4449
5310
|
children: [
|
|
4450
|
-
icon && /* @__PURE__ */ (0,
|
|
4451
|
-
|
|
5311
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5312
|
+
import_material37.Box,
|
|
4452
5313
|
{
|
|
4453
5314
|
sx: {
|
|
4454
5315
|
color: colors.text.secondary,
|
|
@@ -4458,24 +5319,24 @@ var EmptyState = ({
|
|
|
4458
5319
|
children: icon
|
|
4459
5320
|
}
|
|
4460
5321
|
),
|
|
4461
|
-
/* @__PURE__ */ (0,
|
|
4462
|
-
description && /* @__PURE__ */ (0,
|
|
4463
|
-
action && /* @__PURE__ */ (0,
|
|
5322
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_material37.Typography, { variant: "h6", sx: { marginBottom: 1, color: colors.text.primary }, children: title }),
|
|
5323
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_material37.Typography, { variant: "body2", sx: { color: colors.text.secondary, marginBottom: 3 }, children: description }),
|
|
5324
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_material37.Box, { children: action })
|
|
4464
5325
|
]
|
|
4465
5326
|
}
|
|
4466
5327
|
);
|
|
4467
5328
|
};
|
|
4468
5329
|
|
|
4469
5330
|
// src/components/feedback/Loading.tsx
|
|
4470
|
-
var
|
|
4471
|
-
var
|
|
5331
|
+
var import_material38 = require("@mui/material");
|
|
5332
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
4472
5333
|
var Loading = ({
|
|
4473
5334
|
message = "Loading...",
|
|
4474
5335
|
size: size3 = 40,
|
|
4475
5336
|
fullScreen = false
|
|
4476
5337
|
}) => {
|
|
4477
|
-
const content = /* @__PURE__ */ (0,
|
|
4478
|
-
|
|
5338
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
5339
|
+
import_material38.Box,
|
|
4479
5340
|
{
|
|
4480
5341
|
sx: {
|
|
4481
5342
|
display: "flex",
|
|
@@ -4497,8 +5358,8 @@ var Loading = ({
|
|
|
4497
5358
|
}
|
|
4498
5359
|
},
|
|
4499
5360
|
children: [
|
|
4500
|
-
/* @__PURE__ */ (0,
|
|
4501
|
-
message && /* @__PURE__ */ (0,
|
|
5361
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_material38.CircularProgress, { size: size3, thickness: 4 }),
|
|
5362
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_material38.Typography, { variant: "body2", color: "text.secondary", children: message })
|
|
4502
5363
|
]
|
|
4503
5364
|
}
|
|
4504
5365
|
);
|
|
@@ -4506,15 +5367,15 @@ var Loading = ({
|
|
|
4506
5367
|
};
|
|
4507
5368
|
|
|
4508
5369
|
// src/components/feedback/AppLoading.tsx
|
|
4509
|
-
var
|
|
4510
|
-
var
|
|
5370
|
+
var import_material39 = require("@mui/material");
|
|
5371
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
4511
5372
|
var AppLoading = ({
|
|
4512
5373
|
message = "Loading...",
|
|
4513
5374
|
logo = "/icons/logo.png",
|
|
4514
5375
|
sx = {}
|
|
4515
5376
|
}) => {
|
|
4516
|
-
return /* @__PURE__ */ (0,
|
|
4517
|
-
|
|
5377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
5378
|
+
import_material39.Box,
|
|
4518
5379
|
{
|
|
4519
5380
|
sx: {
|
|
4520
5381
|
display: "flex",
|
|
@@ -4532,8 +5393,8 @@ var AppLoading = ({
|
|
|
4532
5393
|
...sx
|
|
4533
5394
|
},
|
|
4534
5395
|
children: [
|
|
4535
|
-
logo && /* @__PURE__ */ (0,
|
|
4536
|
-
|
|
5396
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
5397
|
+
import_material39.Box,
|
|
4537
5398
|
{
|
|
4538
5399
|
component: "img",
|
|
4539
5400
|
src: logo,
|
|
@@ -4545,31 +5406,31 @@ var AppLoading = ({
|
|
|
4545
5406
|
}
|
|
4546
5407
|
}
|
|
4547
5408
|
),
|
|
4548
|
-
/* @__PURE__ */ (0,
|
|
4549
|
-
/* @__PURE__ */ (0,
|
|
5409
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_material39.CircularProgress, { size: 40, thickness: 4, sx: { mb: 2 } }),
|
|
5410
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_material39.Typography, { variant: "body1", color: "text.secondary", children: message })
|
|
4550
5411
|
]
|
|
4551
5412
|
}
|
|
4552
5413
|
);
|
|
4553
5414
|
};
|
|
4554
5415
|
|
|
4555
5416
|
// src/components/feedback/CircularProgress.tsx
|
|
4556
|
-
var
|
|
4557
|
-
var
|
|
5417
|
+
var import_material40 = require("@mui/material");
|
|
5418
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
4558
5419
|
var CircularProgress6 = ({
|
|
4559
5420
|
size: size3 = 40,
|
|
4560
5421
|
thickness = 4,
|
|
4561
5422
|
...props
|
|
4562
5423
|
}) => {
|
|
4563
|
-
return /* @__PURE__ */ (0,
|
|
5424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_material40.CircularProgress, { size: size3, thickness, ...props });
|
|
4564
5425
|
};
|
|
4565
5426
|
|
|
4566
5427
|
// src/components/icons/ActivityAppIcon.tsx
|
|
4567
|
-
var
|
|
4568
|
-
var
|
|
4569
|
-
var
|
|
4570
|
-
var ActivityAppIcon = (0,
|
|
4571
|
-
/* @__PURE__ */ (0,
|
|
4572
|
-
/* @__PURE__ */ (0,
|
|
5428
|
+
var import_react15 = require("react");
|
|
5429
|
+
var import_material41 = require("@mui/material");
|
|
5430
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
5431
|
+
var ActivityAppIcon = (0, import_react15.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_material41.SvgIcon, { ...props, viewBox: "0 0 36 36", children: [
|
|
5432
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("rect", { fill: "none", stroke: "currentColor", width: 34, height: 34, x: 1, y: 1, strokeWidth: 1.5, rx: 6.8 }),
|
|
5433
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4573
5434
|
"rect",
|
|
4574
5435
|
{
|
|
4575
5436
|
fill: "none",
|
|
@@ -4582,7 +5443,7 @@ var ActivityAppIcon = (0, import_react9.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
4582
5443
|
rx: 1.7
|
|
4583
5444
|
}
|
|
4584
5445
|
),
|
|
4585
|
-
/* @__PURE__ */ (0,
|
|
5446
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4586
5447
|
"rect",
|
|
4587
5448
|
{
|
|
4588
5449
|
fill: "none",
|
|
@@ -4595,7 +5456,7 @@ var ActivityAppIcon = (0, import_react9.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
4595
5456
|
rx: 1.7
|
|
4596
5457
|
}
|
|
4597
5458
|
),
|
|
4598
|
-
/* @__PURE__ */ (0,
|
|
5459
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
4599
5460
|
"rect",
|
|
4600
5461
|
{
|
|
4601
5462
|
fill: "none",
|
|
@@ -4611,10 +5472,10 @@ var ActivityAppIcon = (0, import_react9.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
4611
5472
|
] }));
|
|
4612
5473
|
|
|
4613
5474
|
// src/components/icons/ArrowLeft.tsx
|
|
4614
|
-
var
|
|
4615
|
-
var
|
|
5475
|
+
var import_material42 = require("@mui/material");
|
|
5476
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
4616
5477
|
var LeftArrowIcon = (props) => {
|
|
4617
|
-
return /* @__PURE__ */ (0,
|
|
5478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_material42.SvgIcon, { ...props, width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("g", { id: " Arrow Left", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
4618
5479
|
"path",
|
|
4619
5480
|
{
|
|
4620
5481
|
id: "Vector (Stroke)",
|
|
@@ -4627,10 +5488,10 @@ var LeftArrowIcon = (props) => {
|
|
|
4627
5488
|
};
|
|
4628
5489
|
|
|
4629
5490
|
// src/components/icons/ArrowRight.tsx
|
|
4630
|
-
var
|
|
4631
|
-
var
|
|
5491
|
+
var import_material43 = require("@mui/material");
|
|
5492
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4632
5493
|
var RightArrowIcon = (props) => {
|
|
4633
|
-
return /* @__PURE__ */ (0,
|
|
5494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_material43.SvgIcon, { ...props, width: "25", height: "24", viewBox: "0 0 25 24", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4634
5495
|
"path",
|
|
4635
5496
|
{
|
|
4636
5497
|
fillRule: "evenodd",
|
|
@@ -4642,11 +5503,11 @@ var RightArrowIcon = (props) => {
|
|
|
4642
5503
|
};
|
|
4643
5504
|
|
|
4644
5505
|
// src/components/icons/AvatarIcon.tsx
|
|
4645
|
-
var
|
|
4646
|
-
var
|
|
5506
|
+
var import_material44 = require("@mui/material");
|
|
5507
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4647
5508
|
var AvatarIcon = (props) => {
|
|
4648
|
-
return /* @__PURE__ */ (0,
|
|
4649
|
-
/* @__PURE__ */ (0,
|
|
5509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_material44.SvgIcon, { ...props, viewBox: "0 0 16 16", children: [
|
|
5510
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4650
5511
|
"path",
|
|
4651
5512
|
{
|
|
4652
5513
|
fillRule: "evenodd",
|
|
@@ -4655,7 +5516,7 @@ var AvatarIcon = (props) => {
|
|
|
4655
5516
|
fill: "#1D1B20"
|
|
4656
5517
|
}
|
|
4657
5518
|
),
|
|
4658
|
-
/* @__PURE__ */ (0,
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4659
5520
|
"path",
|
|
4660
5521
|
{
|
|
4661
5522
|
fillRule: "evenodd",
|
|
@@ -4668,11 +5529,11 @@ var AvatarIcon = (props) => {
|
|
|
4668
5529
|
};
|
|
4669
5530
|
|
|
4670
5531
|
// src/components/icons/BarTrackingIcon.tsx
|
|
4671
|
-
var
|
|
4672
|
-
var
|
|
4673
|
-
var
|
|
4674
|
-
var BarTrackingIcon = (0,
|
|
4675
|
-
/* @__PURE__ */ (0,
|
|
5532
|
+
var import_react16 = require("react");
|
|
5533
|
+
var import_material45 = require("@mui/material");
|
|
5534
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5535
|
+
var BarTrackingIcon = (0, import_react16.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_material45.SvgIcon, { ...props, viewBox: "0 0 96 97", children: [
|
|
5536
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4676
5537
|
"rect",
|
|
4677
5538
|
{
|
|
4678
5539
|
x: "7.19922",
|
|
@@ -4685,7 +5546,7 @@ var BarTrackingIcon = (0, import_react10.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
4685
5546
|
fill: "none"
|
|
4686
5547
|
}
|
|
4687
5548
|
),
|
|
4688
|
-
/* @__PURE__ */ (0,
|
|
5549
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4689
5550
|
"rect",
|
|
4690
5551
|
{
|
|
4691
5552
|
x: "21.0371",
|
|
@@ -4698,7 +5559,7 @@ var BarTrackingIcon = (0, import_react10.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
4698
5559
|
strokeWidth: "2"
|
|
4699
5560
|
}
|
|
4700
5561
|
),
|
|
4701
|
-
/* @__PURE__ */ (0,
|
|
5562
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4702
5563
|
"rect",
|
|
4703
5564
|
{
|
|
4704
5565
|
x: "40.4746",
|
|
@@ -4711,7 +5572,7 @@ var BarTrackingIcon = (0, import_react10.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
4711
5572
|
strokeWidth: "2"
|
|
4712
5573
|
}
|
|
4713
5574
|
),
|
|
4714
|
-
/* @__PURE__ */ (0,
|
|
5575
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4715
5576
|
"rect",
|
|
4716
5577
|
{
|
|
4717
5578
|
x: "59.8828",
|
|
@@ -4727,10 +5588,10 @@ var BarTrackingIcon = (0, import_react10.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
4727
5588
|
] }));
|
|
4728
5589
|
|
|
4729
5590
|
// src/components/icons/ClockIcon.tsx
|
|
4730
|
-
var
|
|
4731
|
-
var
|
|
4732
|
-
var
|
|
4733
|
-
var ClockIcon = (0,
|
|
5591
|
+
var import_react17 = require("react");
|
|
5592
|
+
var import_material46 = require("@mui/material");
|
|
5593
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5594
|
+
var ClockIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_material46.SvgIcon, { ...props, viewBox: "0 0 22 22", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4734
5595
|
"path",
|
|
4735
5596
|
{
|
|
4736
5597
|
fill: "currentColor",
|
|
@@ -4741,11 +5602,11 @@ var ClockIcon = (0, import_react11.memo)((props) => /* @__PURE__ */ (0, import_j
|
|
|
4741
5602
|
) }));
|
|
4742
5603
|
|
|
4743
5604
|
// src/components/icons/CloudFlashIcon.tsx
|
|
4744
|
-
var
|
|
4745
|
-
var
|
|
4746
|
-
var
|
|
4747
|
-
var CloudFlashIcon = (0,
|
|
4748
|
-
/* @__PURE__ */ (0,
|
|
5605
|
+
var import_react18 = require("react");
|
|
5606
|
+
var import_material47 = require("@mui/material");
|
|
5607
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5608
|
+
var CloudFlashIcon = (0, import_react18.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_material47.SvgIcon, { ...props, fill: "none", viewBox: "0 0 96 97", children: [
|
|
5609
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4749
5610
|
"path",
|
|
4750
5611
|
{
|
|
4751
5612
|
d: "M18.8029 43.3396V43.2933H19.8029C20.3752 43.2933 20.9384 43.328 21.4908 43.3937C21.9111 39.4438 22.9817 34.2181 25.6601 29.8138C28.6259 24.937 33.5595 21.0898 41.5689 21.0898C46.9417 21.0898 50.8839 22.9055 53.7292 25.6773C56.5498 28.4249 58.2303 32.0495 59.2307 35.5901C60.1768 38.9386 60.5315 42.2718 60.6446 44.8476C60.891 44.4671 61.1651 44.0792 61.4696 43.691C63.7235 40.8178 67.6089 37.9824 74.0317 37.9824C77.222 37.9824 79.8196 38.6871 81.9219 39.7574L81.9232 39.7581C86.8327 42.2671 89.793 47.4136 89.793 52.8846V54.7368C89.793 65.644 80.9404 74.4889 70.0269 74.4889H18.865C11.867 74.4889 6.19295 68.8202 6.19295 61.8256V57.184C6.19295 49.9845 11.6911 43.8799 18.8029 43.3396Z",
|
|
@@ -4754,7 +5615,7 @@ var CloudFlashIcon = (0, import_react12.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
4754
5615
|
strokeWidth: "2"
|
|
4755
5616
|
}
|
|
4756
5617
|
),
|
|
4757
|
-
/* @__PURE__ */ (0,
|
|
5618
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4758
5619
|
"path",
|
|
4759
5620
|
{
|
|
4760
5621
|
d: "M79.1804 45.7001C79.1804 45.7001 60.7908 47.259 60.7908 10.0898C60.7908 10.0898 60.9856 45.7768 43.1934 45.7768C43.1934 45.7768 61.1933 48.1151 61.1933 67.6899C61.1933 67.6899 61.1933 45.7001 79.1934 45.7001H79.1804Z",
|
|
@@ -4766,11 +5627,11 @@ var CloudFlashIcon = (0, import_react12.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
4766
5627
|
] }));
|
|
4767
5628
|
|
|
4768
5629
|
// src/components/icons/DecentralizedServerIcon.tsx
|
|
4769
|
-
var
|
|
4770
|
-
var
|
|
4771
|
-
var
|
|
4772
|
-
var DecentralizedServerIcon = (0,
|
|
4773
|
-
/* @__PURE__ */ (0,
|
|
5630
|
+
var import_react19 = require("react");
|
|
5631
|
+
var import_material48 = require("@mui/material");
|
|
5632
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5633
|
+
var DecentralizedServerIcon = (0, import_react19.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_material48.SvgIcon, { ...props, viewBox: "0 0 96 97", children: [
|
|
5634
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4774
5635
|
"path",
|
|
4775
5636
|
{
|
|
4776
5637
|
d: "M14.5706 15.0858L48.016 8.29688L81.3694 15.0858L88.2242 48.3742L81.3694 81.6556L48.016 88.4445L14.5706 81.6556L7.80078 48.3742L14.5706 15.0858Z",
|
|
@@ -4781,7 +5642,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4781
5642
|
strokeLinejoin: "round"
|
|
4782
5643
|
}
|
|
4783
5644
|
),
|
|
4784
|
-
/* @__PURE__ */ (0,
|
|
5645
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4785
5646
|
"path",
|
|
4786
5647
|
{
|
|
4787
5648
|
d: "M48.0118 11.2609C49.6622 11.2609 51.0001 9.92755 51.0001 8.28279C51.0001 6.63803 49.6622 5.30469 48.0118 5.30469C46.3614 5.30469 45.0234 6.63803 45.0234 8.28279C45.0234 9.92755 46.3614 11.2609 48.0118 11.2609Z",
|
|
@@ -4792,7 +5653,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4792
5653
|
strokeLinejoin: "round"
|
|
4793
5654
|
}
|
|
4794
5655
|
),
|
|
4795
|
-
/* @__PURE__ */ (0,
|
|
5656
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4796
5657
|
"path",
|
|
4797
5658
|
{
|
|
4798
5659
|
d: "M48.0118 91.4132C49.6622 91.4132 51.0001 90.0799 51.0001 88.4351C51.0001 86.7904 49.6622 85.457 48.0118 85.457C46.3614 85.457 45.0234 86.7904 45.0234 88.4351C45.0234 90.0799 46.3614 91.4132 48.0118 91.4132Z",
|
|
@@ -4803,7 +5664,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4803
5664
|
strokeLinejoin: "round"
|
|
4804
5665
|
}
|
|
4805
5666
|
),
|
|
4806
|
-
/* @__PURE__ */ (0,
|
|
5667
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4807
5668
|
"path",
|
|
4808
5669
|
{
|
|
4809
5670
|
d: "M7.79304 51.339C9.44346 51.339 10.7814 50.0057 10.7814 48.3609C10.7814 46.7162 9.44346 45.3828 7.79304 45.3828C6.14262 45.3828 4.80469 46.7162 4.80469 48.3609C4.80469 50.0057 6.14262 51.339 7.79304 51.339Z",
|
|
@@ -4814,7 +5675,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4814
5675
|
strokeLinejoin: "round"
|
|
4815
5676
|
}
|
|
4816
5677
|
),
|
|
4817
|
-
/* @__PURE__ */ (0,
|
|
5678
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4818
5679
|
"path",
|
|
4819
5680
|
{
|
|
4820
5681
|
d: "M88.2247 51.339C89.8751 51.339 91.213 50.0057 91.213 48.3609C91.213 46.7162 89.8751 45.3828 88.2247 45.3828C86.5743 45.3828 85.2363 46.7162 85.2363 48.3609C85.2363 50.0057 86.5743 51.339 88.2247 51.339Z",
|
|
@@ -4825,7 +5686,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4825
5686
|
strokeLinejoin: "round"
|
|
4826
5687
|
}
|
|
4827
5688
|
),
|
|
4828
|
-
/* @__PURE__ */ (0,
|
|
5689
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4829
5690
|
"path",
|
|
4830
5691
|
{
|
|
4831
5692
|
d: "M81.3477 18.0539C82.9982 18.0539 84.3361 16.7205 84.3361 15.0758C84.3361 13.431 82.9982 12.0977 81.3477 12.0977C79.6973 12.0977 78.3594 13.431 78.3594 15.0758C78.3594 16.7205 79.6973 18.0539 81.3477 18.0539Z",
|
|
@@ -4836,7 +5697,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4836
5697
|
strokeLinejoin: "round"
|
|
4837
5698
|
}
|
|
4838
5699
|
),
|
|
4839
|
-
/* @__PURE__ */ (0,
|
|
5700
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4840
5701
|
"path",
|
|
4841
5702
|
{
|
|
4842
5703
|
d: "M14.5508 84.6203C16.2013 84.6203 17.5392 83.2869 17.5392 81.6422C17.5392 79.9974 16.2013 78.6641 14.5508 78.6641C12.9004 78.6641 11.5625 79.9974 11.5625 81.6422C11.5625 83.2869 12.9004 84.6203 14.5508 84.6203Z",
|
|
@@ -4847,7 +5708,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4847
5708
|
strokeLinejoin: "round"
|
|
4848
5709
|
}
|
|
4849
5710
|
),
|
|
4850
|
-
/* @__PURE__ */ (0,
|
|
5711
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4851
5712
|
"path",
|
|
4852
5713
|
{
|
|
4853
5714
|
d: "M81.3477 84.6203C82.9982 84.6203 84.3361 83.2869 84.3361 81.6422C84.3361 79.9974 82.9982 78.6641 81.3477 78.6641C79.6973 78.6641 78.3594 79.9974 78.3594 81.6422C78.3594 83.2869 79.6973 84.6203 81.3477 84.6203Z",
|
|
@@ -4858,7 +5719,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4858
5719
|
strokeLinejoin: "round"
|
|
4859
5720
|
}
|
|
4860
5721
|
),
|
|
4861
|
-
/* @__PURE__ */ (0,
|
|
5722
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4862
5723
|
"path",
|
|
4863
5724
|
{
|
|
4864
5725
|
d: "M14.5508 18.0539C16.2013 18.0539 17.5392 16.7205 17.5392 15.0758C17.5392 13.431 16.2013 12.0977 14.5508 12.0977C12.9004 12.0977 11.5625 13.431 11.5625 15.0758C11.5625 16.7205 12.9004 18.0539 14.5508 18.0539Z",
|
|
@@ -4869,7 +5730,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4869
5730
|
strokeLinejoin: "round"
|
|
4870
5731
|
}
|
|
4871
5732
|
),
|
|
4872
|
-
/* @__PURE__ */ (0,
|
|
5733
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4873
5734
|
"rect",
|
|
4874
5735
|
{
|
|
4875
5736
|
x: "22.623",
|
|
@@ -4882,7 +5743,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4882
5743
|
strokeWidth: "2"
|
|
4883
5744
|
}
|
|
4884
5745
|
),
|
|
4885
|
-
/* @__PURE__ */ (0,
|
|
5746
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4886
5747
|
"rect",
|
|
4887
5748
|
{
|
|
4888
5749
|
x: "22.623",
|
|
@@ -4895,7 +5756,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4895
5756
|
strokeWidth: "2"
|
|
4896
5757
|
}
|
|
4897
5758
|
),
|
|
4898
|
-
/* @__PURE__ */ (0,
|
|
5759
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4899
5760
|
"rect",
|
|
4900
5761
|
{
|
|
4901
5762
|
x: "22.623",
|
|
@@ -4908,7 +5769,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4908
5769
|
strokeWidth: "2"
|
|
4909
5770
|
}
|
|
4910
5771
|
),
|
|
4911
|
-
/* @__PURE__ */ (0,
|
|
5772
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4912
5773
|
"path",
|
|
4913
5774
|
{
|
|
4914
5775
|
d: "M29.612 37.1542C31.2803 37.1542 32.634 35.8026 32.634 34.1337C32.634 32.4649 31.2803 31.1133 29.612 31.1133C27.9437 31.1133 26.5901 32.4649 26.5901 34.1337C26.5901 35.8026 27.9437 37.1542 29.612 37.1542Z",
|
|
@@ -4918,7 +5779,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4918
5779
|
strokeMiterlimit: "10"
|
|
4919
5780
|
}
|
|
4920
5781
|
),
|
|
4921
|
-
/* @__PURE__ */ (0,
|
|
5782
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4922
5783
|
"path",
|
|
4923
5784
|
{
|
|
4924
5785
|
d: "M40.3464 37.1542C42.0147 37.1542 43.3684 35.8026 43.3684 34.1337C43.3684 32.4649 42.0147 31.1133 40.3464 31.1133C38.6782 31.1133 37.3245 32.4649 37.3245 34.1337C37.3245 35.8026 38.6782 37.1542 40.3464 37.1542Z",
|
|
@@ -4928,7 +5789,7 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4928
5789
|
strokeMiterlimit: "10"
|
|
4929
5790
|
}
|
|
4930
5791
|
),
|
|
4931
|
-
/* @__PURE__ */ (0,
|
|
5792
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4932
5793
|
"path",
|
|
4933
5794
|
{
|
|
4934
5795
|
d: "M51.0808 37.1542C52.7491 37.1542 54.1028 35.8026 54.1028 34.1337C54.1028 32.4649 52.7491 31.1133 51.0808 31.1133C49.4125 31.1133 48.0588 32.4649 48.0588 34.1337C48.0588 35.8026 49.4125 37.1542 51.0808 37.1542Z",
|
|
@@ -4941,10 +5802,10 @@ var DecentralizedServerIcon = (0, import_react13.memo)((props) => /* @__PURE__ *
|
|
|
4941
5802
|
] }));
|
|
4942
5803
|
|
|
4943
5804
|
// src/components/icons/DiscordIcon.tsx
|
|
4944
|
-
var
|
|
4945
|
-
var
|
|
4946
|
-
var
|
|
4947
|
-
var DiscordIcon = (0,
|
|
5805
|
+
var import_react20 = require("react");
|
|
5806
|
+
var import_material49 = require("@mui/material");
|
|
5807
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5808
|
+
var DiscordIcon = (0, import_react20.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material49.SvgIcon, { ...props, viewBox: "0 0 15 12", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4948
5809
|
"path",
|
|
4949
5810
|
{
|
|
4950
5811
|
fill: "currentColor",
|
|
@@ -4953,18 +5814,18 @@ var DiscordIcon = (0, import_react14.memo)((props) => /* @__PURE__ */ (0, import
|
|
|
4953
5814
|
) }));
|
|
4954
5815
|
|
|
4955
5816
|
// src/components/icons/DownloadIcon.tsx
|
|
4956
|
-
var
|
|
4957
|
-
var
|
|
4958
|
-
var
|
|
4959
|
-
var DownloadIcon = (0,
|
|
4960
|
-
/* @__PURE__ */ (0,
|
|
5817
|
+
var import_react21 = require("react");
|
|
5818
|
+
var import_material50 = require("@mui/material");
|
|
5819
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5820
|
+
var DownloadIcon = (0, import_react21.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_material50.SvgIcon, { ...props, viewBox: "0 0 17 16", fill: "none", children: [
|
|
5821
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4961
5822
|
"path",
|
|
4962
5823
|
{
|
|
4963
5824
|
d: "M8.86902 11.0041C8.77429 11.1077 8.64038 11.1667 8.5 11.1667C8.35962 11.1667 8.22571 11.1077 8.13099 11.0041L5.46432 8.08738C5.27799 7.88358 5.29215 7.56732 5.49595 7.38099C5.69975 7.19465 6.01602 7.20881 6.20235 7.41262L8 9.3788V2C8 1.72386 8.22386 1.5 8.5 1.5C8.77614 1.5 9 1.72386 9 2V9.3788L10.7977 7.41262C10.984 7.20881 11.3003 7.19465 11.5041 7.38099C11.7079 7.56732 11.722 7.88358 11.5357 8.08738L8.86902 11.0041Z",
|
|
4964
5825
|
fill: "currentColor"
|
|
4965
5826
|
}
|
|
4966
5827
|
),
|
|
4967
|
-
/* @__PURE__ */ (0,
|
|
5828
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4968
5829
|
"path",
|
|
4969
5830
|
{
|
|
4970
5831
|
d: "M3 10C3 9.72386 2.77614 9.5 2.5 9.5C2.22386 9.5 2 9.72386 2 10V10.0366C1.99999 10.9483 1.99998 11.6832 2.07768 12.2612C2.15836 12.8612 2.33096 13.3665 2.73223 13.7678C3.13351 14.169 3.63876 14.3416 4.23883 14.4223C4.81681 14.5 5.55169 14.5 6.46342 14.5H10.5366C11.4483 14.5 12.1832 14.5 12.7612 14.4223C13.3612 14.3416 13.8665 14.169 14.2678 13.7678C14.669 13.3665 14.8416 12.8612 14.9223 12.2612C15 11.6832 15 10.9483 15 10.0366V10C15 9.72386 14.7761 9.5 14.5 9.5C14.2239 9.5 14 9.72386 14 10C14 10.9569 13.9989 11.6244 13.9312 12.1279C13.8655 12.6171 13.7452 12.8762 13.5607 13.0607C13.3762 13.2452 13.1171 13.3655 12.6279 13.4312C12.1244 13.4989 11.4569 13.5 10.5 13.5H6.5C5.54306 13.5 4.87565 13.4989 4.37208 13.4312C3.8829 13.3655 3.62385 13.2452 3.43934 13.0607C3.25483 12.8762 3.13453 12.6171 3.06877 12.1279C3.00106 11.6244 3 10.9569 3 10Z",
|
|
@@ -4974,13 +5835,13 @@ var DownloadIcon = (0, import_react15.memo)((props) => /* @__PURE__ */ (0, impor
|
|
|
4974
5835
|
] }));
|
|
4975
5836
|
|
|
4976
5837
|
// src/components/icons/FilledFolderIcon.tsx
|
|
4977
|
-
var
|
|
4978
|
-
var
|
|
4979
|
-
var
|
|
4980
|
-
var FilledFolderIcon = (0,
|
|
4981
|
-
/* @__PURE__ */ (0,
|
|
4982
|
-
/* @__PURE__ */ (0,
|
|
4983
|
-
/* @__PURE__ */ (0,
|
|
5838
|
+
var import_react22 = require("react");
|
|
5839
|
+
var import_material51 = require("@mui/material");
|
|
5840
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5841
|
+
var FilledFolderIcon = (0, import_react22.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_material51.SvgIcon, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
5842
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#FCF8EC" }),
|
|
5843
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E1B43E" }),
|
|
5844
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
4984
5845
|
"path",
|
|
4985
5846
|
{
|
|
4986
5847
|
fillRule: "evenodd",
|
|
@@ -4992,13 +5853,13 @@ var FilledFolderIcon = (0, import_react16.memo)((props) => /* @__PURE__ */ (0, i
|
|
|
4992
5853
|
] }));
|
|
4993
5854
|
|
|
4994
5855
|
// src/components/icons/FolderIcon.tsx
|
|
4995
|
-
var
|
|
4996
|
-
var
|
|
4997
|
-
var
|
|
4998
|
-
var FolderIcon = (0,
|
|
4999
|
-
/* @__PURE__ */ (0,
|
|
5000
|
-
/* @__PURE__ */ (0,
|
|
5001
|
-
/* @__PURE__ */ (0,
|
|
5856
|
+
var import_react23 = require("react");
|
|
5857
|
+
var import_material52 = require("@mui/material");
|
|
5858
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5859
|
+
var FolderIcon = (0, import_react23.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_material52.SvgIcon, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
5860
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#F5F7FA" }),
|
|
5861
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E6E6E6" }),
|
|
5862
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5002
5863
|
"path",
|
|
5003
5864
|
{
|
|
5004
5865
|
fillRule: "evenodd",
|
|
@@ -5012,18 +5873,18 @@ var FolderIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0, import_
|
|
|
5012
5873
|
] }));
|
|
5013
5874
|
|
|
5014
5875
|
// src/components/icons/GithubLogoIcon.tsx
|
|
5015
|
-
var
|
|
5016
|
-
var
|
|
5017
|
-
var
|
|
5018
|
-
var GithubLogoIcon = (0,
|
|
5019
|
-
/* @__PURE__ */ (0,
|
|
5876
|
+
var import_react24 = require("react");
|
|
5877
|
+
var import_material53 = require("@mui/material");
|
|
5878
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5879
|
+
var GithubLogoIcon = (0, import_react24.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_material53.SvgIcon, { ...props, viewBox: "0 0 17 16", sx: { fill: "none" }, children: [
|
|
5880
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5020
5881
|
"path",
|
|
5021
5882
|
{
|
|
5022
5883
|
d: "M8.79754 0C4.268 0 0.595032 3.67233 0.595032 8.20251C0.595032 11.8267 2.9453 14.9013 6.20443 15.9859C6.61435 16.0618 6.76488 15.808 6.76488 15.5913C6.76488 15.3957 6.75723 14.7495 6.75375 14.0642C4.47174 14.5603 3.99022 13.0964 3.99022 13.0964C3.61711 12.1483 3.07949 11.8962 3.07949 11.8962C2.33531 11.3871 3.13559 11.3975 3.13559 11.3975C3.95928 11.4554 4.393 12.2428 4.393 12.2428C5.12457 13.4968 6.31186 13.1343 6.77993 12.9247C6.85353 12.3945 7.06614 12.0327 7.30069 11.8279C5.47884 11.6204 3.56358 10.9171 3.56358 7.77413C3.56358 6.87865 3.88401 6.14688 4.40876 5.57247C4.32359 5.36584 4.04285 4.5316 4.48821 3.40175C4.48821 3.40175 5.177 3.18129 6.74449 4.24256C7.39873 4.06076 8.10045 3.96967 8.79754 3.96658C9.49463 3.96967 10.1969 4.06076 10.8524 4.24256C12.418 3.18129 13.1059 3.40175 13.1059 3.40175C13.5523 4.5316 13.2714 5.36584 13.1863 5.57247C13.7122 6.14688 14.0304 6.87858 14.0304 7.77413C14.0304 10.9245 12.1116 11.6183 10.2851 11.8213C10.5793 12.0759 10.8414 12.5751 10.8414 13.3403C10.8414 14.4378 10.8319 15.3211 10.8319 15.5913C10.8319 15.8096 10.9795 16.0654 11.3954 15.9848C14.6527 14.899 17 11.8254 17 8.20251C17 3.67233 13.3275 0 8.79754 0Z",
|
|
5023
5884
|
fill: "white"
|
|
5024
5885
|
}
|
|
5025
5886
|
),
|
|
5026
|
-
/* @__PURE__ */ (0,
|
|
5887
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
5027
5888
|
"path",
|
|
5028
5889
|
{
|
|
5029
5890
|
d: "M3.66696 11.6845C3.64895 11.7252 3.58474 11.7374 3.5264 11.7095C3.46689 11.6828 3.43344 11.6272 3.45274 11.5863C3.47043 11.5443 3.53463 11.5326 3.59401 11.5608C3.65364 11.5875 3.68761 11.6436 3.66696 11.6845ZM4.07044 12.0445C4.03133 12.0808 3.95484 12.0639 3.90292 12.0066C3.84927 11.9494 3.83924 11.873 3.87893 11.8361C3.91926 11.7999 3.99344 11.8168 4.04722 11.8741C4.10087 11.9319 4.11129 12.0079 4.07038 12.0446M4.34726 12.5051C4.29695 12.54 4.21474 12.5073 4.16398 12.4343C4.11374 12.3615 4.11374 12.274 4.16507 12.2389C4.21602 12.2038 4.29695 12.2354 4.34842 12.3077C4.39859 12.3819 4.39859 12.4694 4.34719 12.5052M4.81533 13.0386C4.77036 13.0881 4.67464 13.0749 4.60452 13.0072C4.53285 12.9411 4.51285 12.8472 4.55794 12.7976C4.60342 12.748 4.69973 12.7619 4.77036 12.829C4.84158 12.895 4.86332 12.9896 4.81539 13.0386M5.4203 13.2187C5.40055 13.2829 5.3083 13.3121 5.2154 13.2849C5.12264 13.2568 5.06191 13.1815 5.08063 13.1166C5.09993 13.0519 5.19257 13.0215 5.28617 13.0507C5.37881 13.0787 5.43966 13.1534 5.42036 13.2187M6.1089 13.2951C6.11121 13.3628 6.03241 13.4189 5.93488 13.4201C5.83678 13.4222 5.75746 13.3675 5.75643 13.3009C5.75643 13.2326 5.83343 13.177 5.93147 13.1754C6.029 13.1735 6.1089 13.2279 6.1089 13.2951ZM6.78527 13.2692C6.79698 13.3352 6.72918 13.403 6.63236 13.421C6.53715 13.4384 6.44901 13.3976 6.43686 13.3322C6.42502 13.2645 6.49411 13.1968 6.58913 13.1792C6.68614 13.1624 6.77292 13.2021 6.78527 13.2692Z",
|
|
@@ -5033,10 +5894,10 @@ var GithubLogoIcon = (0, import_react18.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
5033
5894
|
] }));
|
|
5034
5895
|
|
|
5035
5896
|
// src/components/icons/ShareIcon.tsx
|
|
5036
|
-
var
|
|
5037
|
-
var
|
|
5038
|
-
var
|
|
5039
|
-
var ShareIcon = (0,
|
|
5897
|
+
var import_react25 = require("react");
|
|
5898
|
+
var import_material54 = require("@mui/material");
|
|
5899
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5900
|
+
var ShareIcon = (0, import_react25.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_material54.SvgIcon, { ...props, viewBox: "0 0 17 16", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5040
5901
|
"path",
|
|
5041
5902
|
{
|
|
5042
5903
|
fillRule: "evenodd",
|
|
@@ -5047,11 +5908,11 @@ var ShareIcon = (0, import_react19.memo)((props) => /* @__PURE__ */ (0, import_j
|
|
|
5047
5908
|
) }));
|
|
5048
5909
|
|
|
5049
5910
|
// src/components/icons/StorageAppIcon.tsx
|
|
5050
|
-
var
|
|
5051
|
-
var
|
|
5052
|
-
var
|
|
5053
|
-
var StorageAppIcon = (0,
|
|
5054
|
-
/* @__PURE__ */ (0,
|
|
5911
|
+
var import_react26 = require("react");
|
|
5912
|
+
var import_material55 = require("@mui/material");
|
|
5913
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5914
|
+
var StorageAppIcon = (0, import_react26.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material55.SvgIcon, { ...props, viewBox: "0 0 38 29", fill: "none", children: [
|
|
5915
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5055
5916
|
"path",
|
|
5056
5917
|
{
|
|
5057
5918
|
d: "M6.25415 13.3371V13.2515H7.25415C7.31809 13.2515 7.38176 13.2524 7.44516 13.2543C7.66366 11.6446 8.14354 9.64623 9.19625 7.91521C10.5234 5.73296 12.756 4 16.3233 4C18.7076 4 20.4981 4.81149 21.7972 6.07693C23.0714 7.31823 23.8108 8.93436 24.2437 10.4665C24.4895 11.3363 24.6426 12.2007 24.7362 12.9909C25.8141 11.9297 27.4506 11.0385 29.8495 11.0385C31.2681 11.0385 32.4415 11.3528 33.4017 11.8416L33.4031 11.8423C35.655 12.9932 37 15.3454 37 17.8312V18.6029C37 23.4701 33.0499 27.4163 28.1808 27.4163H6.86335C3.62577 27.4163 1 24.7935 1 21.5565V19.6226C1 16.5122 3.24401 13.8341 6.25415 13.3371Z",
|
|
@@ -5060,7 +5921,7 @@ var StorageAppIcon = (0, import_react20.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
5060
5921
|
fill: "none"
|
|
5061
5922
|
}
|
|
5062
5923
|
),
|
|
5063
|
-
/* @__PURE__ */ (0,
|
|
5924
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5064
5925
|
"path",
|
|
5065
5926
|
{
|
|
5066
5927
|
d: "M31.9946 14.8376C31.9946 14.8376 24.3322 15.4871 24.3322 0C24.3322 0 24.4134 14.8696 17 14.8696C17 14.8696 24.5 15.8438 24.5 24C24.5 24 24.5 14.8376 32 14.8376H31.9946Z",
|
|
@@ -5072,10 +5933,10 @@ var StorageAppIcon = (0, import_react20.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
5072
5933
|
] }));
|
|
5073
5934
|
|
|
5074
5935
|
// src/components/icons/UploadFileIcon.tsx
|
|
5075
|
-
var
|
|
5076
|
-
var
|
|
5077
|
-
var
|
|
5078
|
-
var UploadFileIcon = (0,
|
|
5936
|
+
var import_react27 = require("react");
|
|
5937
|
+
var import_material56 = require("@mui/material");
|
|
5938
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5939
|
+
var UploadFileIcon = (0, import_react27.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_material56.SvgIcon, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5079
5940
|
"path",
|
|
5080
5941
|
{
|
|
5081
5942
|
fillRule: "evenodd",
|
|
@@ -5088,10 +5949,10 @@ var UploadFileIcon = (0, import_react21.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
5088
5949
|
) }));
|
|
5089
5950
|
|
|
5090
5951
|
// src/components/icons/UploadFolderIcon.tsx
|
|
5091
|
-
var
|
|
5092
|
-
var
|
|
5093
|
-
var
|
|
5094
|
-
var UploadFolderIcon = (0,
|
|
5952
|
+
var import_react28 = require("react");
|
|
5953
|
+
var import_material57 = require("@mui/material");
|
|
5954
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
5955
|
+
var UploadFolderIcon = (0, import_react28.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material57.SvgIcon, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
5095
5956
|
"path",
|
|
5096
5957
|
{
|
|
5097
5958
|
fillRule: "evenodd",
|
|
@@ -5104,14 +5965,14 @@ var UploadFolderIcon = (0, import_react22.memo)((props) => /* @__PURE__ */ (0, i
|
|
|
5104
5965
|
) }));
|
|
5105
5966
|
|
|
5106
5967
|
// src/components/utilities/Markdown/Markdown.tsx
|
|
5107
|
-
var
|
|
5968
|
+
var import_material58 = require("@mui/material");
|
|
5108
5969
|
var import_github = require("highlight.js/styles/github.css");
|
|
5109
5970
|
var import_github_markdown_light = require("github-markdown-css/github-markdown-light.css");
|
|
5110
5971
|
var import_react_markdown = __toESM(require("react-markdown"));
|
|
5111
5972
|
var import_rehype_highlight = __toESM(require("rehype-highlight"));
|
|
5112
5973
|
var import_rehype_raw = __toESM(require("rehype-raw"));
|
|
5113
|
-
var
|
|
5114
|
-
var Content = (0,
|
|
5974
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
5975
|
+
var Content = (0, import_material58.styled)(import_material58.Box)(({ theme: theme2 }) => ({
|
|
5115
5976
|
backgroundColor: "transparent",
|
|
5116
5977
|
...theme2.typography.body1,
|
|
5117
5978
|
color: theme2.palette.text.primary,
|
|
@@ -5128,36 +5989,36 @@ var Content = (0, import_material52.styled)(import_material52.Box)(({ theme: the
|
|
|
5128
5989
|
backgroundColor: theme2.palette.background.paper
|
|
5129
5990
|
}
|
|
5130
5991
|
}));
|
|
5131
|
-
var Markdown = ({ content, children }) => /* @__PURE__ */ (0,
|
|
5992
|
+
var Markdown = ({ content, children }) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Content, { className: "markdown-body", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_markdown.default, { rehypePlugins: [import_rehype_highlight.default, import_rehype_raw.default], children: content || children }) });
|
|
5132
5993
|
|
|
5133
5994
|
// src/components/utilities/OnboardingProvider/OnboardingProvider.tsx
|
|
5134
|
-
var
|
|
5135
|
-
var
|
|
5136
|
-
var OnboardingContext = (0,
|
|
5995
|
+
var import_react29 = require("react");
|
|
5996
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
5997
|
+
var OnboardingContext = (0, import_react29.createContext)(void 0);
|
|
5137
5998
|
var useOnboarding = () => {
|
|
5138
|
-
const context = (0,
|
|
5999
|
+
const context = (0, import_react29.useContext)(OnboardingContext);
|
|
5139
6000
|
if (!context) {
|
|
5140
6001
|
throw new Error("useOnboarding should be used inside OnboardingProvider");
|
|
5141
6002
|
}
|
|
5142
6003
|
return context;
|
|
5143
6004
|
};
|
|
5144
6005
|
var OnboardingProvider = ({ children }) => {
|
|
5145
|
-
const [isOnboardingActive, setIsOnboardingActive] = (0,
|
|
6006
|
+
const [isOnboardingActive, setIsOnboardingActive] = (0, import_react29.useState)(() => {
|
|
5146
6007
|
const savedState = localStorage.getItem("isOnboardingActive");
|
|
5147
6008
|
return savedState !== null ? JSON.parse(savedState) : true;
|
|
5148
6009
|
});
|
|
5149
|
-
(0,
|
|
6010
|
+
(0, import_react29.useEffect)(() => {
|
|
5150
6011
|
localStorage.setItem("isOnboardingActive", JSON.stringify(isOnboardingActive));
|
|
5151
6012
|
}, [isOnboardingActive]);
|
|
5152
|
-
const startOnboarding = (0,
|
|
5153
|
-
const stopOnboarding = (0,
|
|
6013
|
+
const startOnboarding = (0, import_react29.useCallback)(() => setIsOnboardingActive(true), []);
|
|
6014
|
+
const stopOnboarding = (0, import_react29.useCallback)(() => {
|
|
5154
6015
|
setIsOnboardingActive(false);
|
|
5155
6016
|
}, []);
|
|
5156
|
-
const restartOnboarding = (0,
|
|
6017
|
+
const restartOnboarding = (0, import_react29.useCallback)(() => {
|
|
5157
6018
|
setIsOnboardingActive(false);
|
|
5158
6019
|
setTimeout(() => setIsOnboardingActive(true), 0);
|
|
5159
6020
|
}, []);
|
|
5160
|
-
return /* @__PURE__ */ (0,
|
|
6021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
5161
6022
|
OnboardingContext.Provider,
|
|
5162
6023
|
{
|
|
5163
6024
|
value: {
|
|
@@ -5172,7 +6033,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
5172
6033
|
};
|
|
5173
6034
|
|
|
5174
6035
|
// src/components/utilities/Truncate/Truncate.tsx
|
|
5175
|
-
var
|
|
6036
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
5176
6037
|
var getDefaultEndingLength = ({ text, variant, maxLength = text.length }) => {
|
|
5177
6038
|
if (variant === "hex") {
|
|
5178
6039
|
return 4;
|
|
@@ -5196,30 +6057,30 @@ var Truncate = ({
|
|
|
5196
6057
|
const truncated = text.slice(0, maxLength - endingLength);
|
|
5197
6058
|
truncatedText = [truncated, ending].filter(Boolean).join("...");
|
|
5198
6059
|
}
|
|
5199
|
-
return /* @__PURE__ */ (0,
|
|
6060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { ...props, "data-full": text, children: truncatedText });
|
|
5200
6061
|
};
|
|
5201
6062
|
|
|
5202
6063
|
// src/components/utilities/BytesSize/BytesSize.tsx
|
|
5203
6064
|
var import_byte_size = __toESM(require("byte-size"));
|
|
5204
|
-
var
|
|
6065
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
5205
6066
|
var BytesSize = ({ bytes }) => {
|
|
5206
|
-
return /* @__PURE__ */ (0,
|
|
6067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_jsx_runtime75.Fragment, { children: (0, import_byte_size.default)(bytes).toString() });
|
|
5207
6068
|
};
|
|
5208
6069
|
|
|
5209
6070
|
// src/components/utilities/QRCode/QRCode.tsx
|
|
5210
|
-
var
|
|
6071
|
+
var import_react30 = require("react");
|
|
5211
6072
|
var import_react_qr_code = __toESM(require("react-qr-code"));
|
|
5212
|
-
var
|
|
5213
|
-
var QRCode = (0,
|
|
6073
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6074
|
+
var QRCode = (0, import_react30.forwardRef)(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_qr_code.default, { ref, size: size3, ...props }));
|
|
5214
6075
|
QRCode.displayName = "QRCode";
|
|
5215
6076
|
|
|
5216
6077
|
// src/components/charts/ChartWidget/ChartWidget.tsx
|
|
5217
|
-
var
|
|
6078
|
+
var import_material59 = require("@mui/material");
|
|
5218
6079
|
var import_x_charts = require("@mui/x-charts");
|
|
5219
6080
|
var import_byte_size2 = __toESM(require("byte-size"));
|
|
5220
6081
|
var import_date_fns = require("date-fns");
|
|
5221
|
-
var
|
|
5222
|
-
var Chart = (0,
|
|
6082
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
6083
|
+
var Chart = (0, import_material59.styled)(import_material59.Box)(() => ({
|
|
5223
6084
|
height: 200
|
|
5224
6085
|
}));
|
|
5225
6086
|
var ChartWidget = ({
|
|
@@ -5228,11 +6089,11 @@ var ChartWidget = ({
|
|
|
5228
6089
|
history,
|
|
5229
6090
|
formatValue = (value2) => (0, import_byte_size2.default)(value2 || 0).toString()
|
|
5230
6091
|
}) => {
|
|
5231
|
-
const theme2 = (0,
|
|
5232
|
-
return /* @__PURE__ */ (0,
|
|
5233
|
-
/* @__PURE__ */ (0,
|
|
5234
|
-
/* @__PURE__ */ (0,
|
|
5235
|
-
/* @__PURE__ */ (0,
|
|
6092
|
+
const theme2 = (0, import_material59.useTheme)();
|
|
6093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_material59.Stack, { spacing: 1, children: [
|
|
6094
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_material59.Typography, { variant: "caption", color: "text.secondary", children: title }),
|
|
6095
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_material59.Typography, { fontWeight: "bold", children: value }),
|
|
6096
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Chart, { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
5236
6097
|
import_x_charts.LineChart,
|
|
5237
6098
|
{
|
|
5238
6099
|
dataset: history || [],
|
|
@@ -5290,11 +6151,11 @@ var ChartWidget = ({
|
|
|
5290
6151
|
var import_date_fns2 = require("date-fns");
|
|
5291
6152
|
var import_x_charts2 = require("@mui/x-charts");
|
|
5292
6153
|
var import_hooks = require("@mui/x-charts/hooks");
|
|
5293
|
-
var
|
|
6154
|
+
var import_material61 = require("@mui/material");
|
|
5294
6155
|
|
|
5295
6156
|
// src/components/charts/MetricsChart/PeriodSelect.tsx
|
|
5296
|
-
var
|
|
5297
|
-
var
|
|
6157
|
+
var import_material60 = require("@mui/material");
|
|
6158
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5298
6159
|
var options = [
|
|
5299
6160
|
/**
|
|
5300
6161
|
* TODO: Enable the options below when the backend supports them
|
|
@@ -5304,21 +6165,21 @@ var options = [
|
|
|
5304
6165
|
{ value: "week", label: "1 week" },
|
|
5305
6166
|
{ value: "month", label: "1 month" }
|
|
5306
6167
|
];
|
|
5307
|
-
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ (0,
|
|
5308
|
-
|
|
6168
|
+
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6169
|
+
import_material60.TextField,
|
|
5309
6170
|
{
|
|
5310
6171
|
select: true,
|
|
5311
6172
|
size: "small",
|
|
5312
6173
|
value,
|
|
5313
6174
|
defaultValue: options[0].value,
|
|
5314
6175
|
onChange: (e) => onChange?.(e.target.value),
|
|
5315
|
-
children: options.map(({ value: value2, label }) => /* @__PURE__ */ (0,
|
|
6176
|
+
children: options.map(({ value: value2, label }) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_material60.MenuItem, { value: value2, children: label }, value2))
|
|
5316
6177
|
}
|
|
5317
6178
|
);
|
|
5318
6179
|
|
|
5319
6180
|
// src/components/charts/MetricsChart/MetricsChart.tsx
|
|
5320
|
-
var
|
|
5321
|
-
var
|
|
6181
|
+
var import_react31 = require("react");
|
|
6182
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
5322
6183
|
var mapPeriodToFromDate = (period = "month") => {
|
|
5323
6184
|
const date = /* @__PURE__ */ new Date();
|
|
5324
6185
|
if (period === "hour") {
|
|
@@ -5332,14 +6193,14 @@ var mapPeriodToFromDate = (period = "month") => {
|
|
|
5332
6193
|
}
|
|
5333
6194
|
return (0, import_date_fns2.startOfDay)((0, import_date_fns2.subMonths)(date, 1));
|
|
5334
6195
|
};
|
|
5335
|
-
var Chart2 = (0,
|
|
6196
|
+
var Chart2 = (0, import_material61.styled)(import_x_charts2.LineChart)({
|
|
5336
6197
|
height: 320,
|
|
5337
6198
|
marginBottom: 16
|
|
5338
6199
|
});
|
|
5339
|
-
var NoDataRect = (0,
|
|
6200
|
+
var NoDataRect = (0, import_material61.styled)("rect")({
|
|
5340
6201
|
fill: "#F5F6FF"
|
|
5341
6202
|
});
|
|
5342
|
-
var LoadingText = (0,
|
|
6203
|
+
var LoadingText = (0, import_material61.styled)("text")(({ theme: theme2 }) => ({
|
|
5343
6204
|
stroke: "none",
|
|
5344
6205
|
fill: theme2.palette.text.primary,
|
|
5345
6206
|
shapeRendering: "crispEdges",
|
|
@@ -5347,14 +6208,14 @@ var LoadingText = (0, import_material55.styled)("text")(({ theme: theme2 }) => (
|
|
|
5347
6208
|
dominantBaseline: "middle"
|
|
5348
6209
|
}));
|
|
5349
6210
|
var MetricsChart = ({ history = [] }) => {
|
|
5350
|
-
const theme2 = (0,
|
|
5351
|
-
const [period, setPeriod] = (0,
|
|
5352
|
-
const periodFrom = (0,
|
|
5353
|
-
const periodHistory = (0,
|
|
6211
|
+
const theme2 = (0, import_material61.useTheme)();
|
|
6212
|
+
const [period, setPeriod] = (0, import_react31.useState)("week");
|
|
6213
|
+
const periodFrom = (0, import_react31.useMemo)(() => mapPeriodToFromDate(period), [period]);
|
|
6214
|
+
const periodHistory = (0, import_react31.useMemo)(
|
|
5354
6215
|
() => history.filter((record) => record.recordTime > periodFrom),
|
|
5355
6216
|
[history, periodFrom]
|
|
5356
6217
|
);
|
|
5357
|
-
const total = (0,
|
|
6218
|
+
const total = (0, import_react31.useMemo)(
|
|
5358
6219
|
() => periodHistory.reduce(
|
|
5359
6220
|
(acc, record) => ({
|
|
5360
6221
|
gets: acc.gets + record.gets,
|
|
@@ -5378,15 +6239,15 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
5378
6239
|
const backgroundHeight = textHeight + padding.top + padding.bottom;
|
|
5379
6240
|
const rectX = left + (width - backgroundWidth) / 2;
|
|
5380
6241
|
const rectY = top + (height - backgroundHeight) / 2;
|
|
5381
|
-
return /* @__PURE__ */ (0,
|
|
5382
|
-
/* @__PURE__ */ (0,
|
|
5383
|
-
/* @__PURE__ */ (0,
|
|
6242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("g", { children: [
|
|
6243
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(NoDataRect, { x: rectX, y: rectY, width: backgroundWidth, height: backgroundHeight }),
|
|
6244
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(LoadingText, { style: { ...theme2.typography.subtitle1 }, x: left + width / 2, y: top + height / 2, children: text })
|
|
5384
6245
|
] });
|
|
5385
6246
|
};
|
|
5386
|
-
return /* @__PURE__ */ (0,
|
|
5387
|
-
/* @__PURE__ */ (0,
|
|
5388
|
-
/* @__PURE__ */ (0,
|
|
5389
|
-
/* @__PURE__ */ (0,
|
|
6247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Card, { children: [
|
|
6248
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.CardHeader, { title: "GET / PUT Requests", action: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(PeriodSelect, { value: period, onChange: setPeriod }) }),
|
|
6249
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.CardMedia, { children: [
|
|
6250
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5390
6251
|
Chart2,
|
|
5391
6252
|
{
|
|
5392
6253
|
skipAnimation: true,
|
|
@@ -5447,35 +6308,35 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
5447
6308
|
]
|
|
5448
6309
|
}
|
|
5449
6310
|
),
|
|
5450
|
-
periodHistory.length > 0 && /* @__PURE__ */ (0,
|
|
5451
|
-
/* @__PURE__ */ (0,
|
|
5452
|
-
/* @__PURE__ */ (0,
|
|
5453
|
-
/* @__PURE__ */ (0,
|
|
6311
|
+
periodHistory.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", spacing: 2, marginY: 3, justifyContent: "center", children: [
|
|
6312
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
6313
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Box, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.primary.main } }),
|
|
6314
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "body2", children: "Get" })
|
|
5454
6315
|
] }),
|
|
5455
|
-
/* @__PURE__ */ (0,
|
|
5456
|
-
/* @__PURE__ */ (0,
|
|
5457
|
-
/* @__PURE__ */ (0,
|
|
6316
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
6317
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Box, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.success.main } }),
|
|
6318
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "body2", children: "Put" })
|
|
5458
6319
|
] })
|
|
5459
6320
|
] })
|
|
5460
6321
|
] }),
|
|
5461
|
-
/* @__PURE__ */ (0,
|
|
5462
|
-
/* @__PURE__ */ (0,
|
|
5463
|
-
/* @__PURE__ */ (0,
|
|
5464
|
-
/* @__PURE__ */ (0,
|
|
5465
|
-
/* @__PURE__ */ (0,
|
|
5466
|
-
/* @__PURE__ */ (0,
|
|
6322
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.CardMedia, { children: [
|
|
6323
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Divider, { flexItem: true }),
|
|
6324
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", spacing: 2, padding: 2, children: [
|
|
6325
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6326
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "body2", color: "secondary", children: "GET Requests per account" }),
|
|
6327
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "h3", children: total.gets })
|
|
5467
6328
|
] }),
|
|
5468
|
-
/* @__PURE__ */ (0,
|
|
5469
|
-
/* @__PURE__ */ (0,
|
|
5470
|
-
/* @__PURE__ */ (0,
|
|
6329
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6330
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "body2", color: "secondary", children: "PUT Requests per account" }),
|
|
6331
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "h3", children: total.puts })
|
|
5471
6332
|
] }),
|
|
5472
|
-
/* @__PURE__ */ (0,
|
|
5473
|
-
/* @__PURE__ */ (0,
|
|
5474
|
-
/* @__PURE__ */ (0,
|
|
6333
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6334
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "body2", color: "secondary", children: "Total Consumed per account" }),
|
|
6335
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "h3", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(BytesSize, { bytes: total.transferredBytes }) })
|
|
5475
6336
|
] }),
|
|
5476
|
-
/* @__PURE__ */ (0,
|
|
5477
|
-
/* @__PURE__ */ (0,
|
|
5478
|
-
/* @__PURE__ */ (0,
|
|
6337
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material61.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6338
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "body2", color: "secondary", children: "Total Stored per account" }),
|
|
6339
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.Typography, { variant: "h3", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(BytesSize, { bytes: total.storedBytes }) })
|
|
5479
6340
|
] })
|
|
5480
6341
|
] })
|
|
5481
6342
|
] })
|
|
@@ -5483,12 +6344,12 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
5483
6344
|
};
|
|
5484
6345
|
|
|
5485
6346
|
// src/components/third-party/FlowEditor.tsx
|
|
5486
|
-
var
|
|
6347
|
+
var import_react32 = require("react");
|
|
5487
6348
|
var import_reactflow = __toESM(require("reactflow"));
|
|
5488
|
-
var
|
|
5489
|
-
var
|
|
6349
|
+
var import_material62 = require("@mui/material");
|
|
6350
|
+
var import_styles34 = require("@mui/material/styles");
|
|
5490
6351
|
var import_reactflow2 = require("reactflow");
|
|
5491
|
-
var
|
|
6352
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
5492
6353
|
var FlowEditor = ({
|
|
5493
6354
|
nodes,
|
|
5494
6355
|
edges,
|
|
@@ -5505,8 +6366,8 @@ var FlowEditor = ({
|
|
|
5505
6366
|
onInit,
|
|
5506
6367
|
...reactFlowProps
|
|
5507
6368
|
}) => {
|
|
5508
|
-
const theme2 = (0,
|
|
5509
|
-
const handleInit = (0,
|
|
6369
|
+
const theme2 = (0, import_styles34.useTheme)();
|
|
6370
|
+
const handleInit = (0, import_react32.useCallback)(
|
|
5510
6371
|
(instance) => {
|
|
5511
6372
|
if (onInit) {
|
|
5512
6373
|
onInit(instance);
|
|
@@ -5514,8 +6375,8 @@ var FlowEditor = ({
|
|
|
5514
6375
|
},
|
|
5515
6376
|
[onInit]
|
|
5516
6377
|
);
|
|
5517
|
-
return /* @__PURE__ */ (0,
|
|
5518
|
-
|
|
6378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_reactflow.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
6379
|
+
import_material62.Box,
|
|
5519
6380
|
{
|
|
5520
6381
|
sx: {
|
|
5521
6382
|
width: "100%",
|
|
@@ -5527,7 +6388,7 @@ var FlowEditor = ({
|
|
|
5527
6388
|
...containerProps?.sx
|
|
5528
6389
|
},
|
|
5529
6390
|
...containerProps,
|
|
5530
|
-
children: /* @__PURE__ */ (0,
|
|
6391
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
5531
6392
|
import_reactflow.default,
|
|
5532
6393
|
{
|
|
5533
6394
|
nodes,
|
|
@@ -5549,7 +6410,7 @@ var FlowEditor = ({
|
|
|
5549
6410
|
},
|
|
5550
6411
|
...reactFlowProps,
|
|
5551
6412
|
children: [
|
|
5552
|
-
showBackground && /* @__PURE__ */ (0,
|
|
6413
|
+
showBackground && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5553
6414
|
import_reactflow.Background,
|
|
5554
6415
|
{
|
|
5555
6416
|
variant: backgroundVariant,
|
|
@@ -5558,8 +6419,8 @@ var FlowEditor = ({
|
|
|
5558
6419
|
color: theme2.palette.divider
|
|
5559
6420
|
}
|
|
5560
6421
|
),
|
|
5561
|
-
showControls && /* @__PURE__ */ (0,
|
|
5562
|
-
showMinimap && /* @__PURE__ */ (0,
|
|
6422
|
+
showControls && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_reactflow.Controls, {}),
|
|
6423
|
+
showMinimap && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5563
6424
|
import_reactflow.MiniMap,
|
|
5564
6425
|
{
|
|
5565
6426
|
nodeColor: (node) => {
|
|
@@ -5582,15 +6443,15 @@ var FlowEditor = ({
|
|
|
5582
6443
|
};
|
|
5583
6444
|
|
|
5584
6445
|
// src/components/third-party/CodeEditor.tsx
|
|
5585
|
-
var
|
|
5586
|
-
var
|
|
5587
|
-
var
|
|
6446
|
+
var import_react33 = require("react");
|
|
6447
|
+
var import_react34 = __toESM(require("@monaco-editor/react"));
|
|
6448
|
+
var import_material63 = require("@mui/material");
|
|
5588
6449
|
var import_Fullscreen = __toESM(require("@mui/icons-material/Fullscreen"));
|
|
5589
6450
|
var import_FullscreenExit = __toESM(require("@mui/icons-material/FullscreenExit"));
|
|
5590
6451
|
var import_ErrorOutline = __toESM(require("@mui/icons-material/ErrorOutline"));
|
|
5591
6452
|
var import_ExpandMore2 = __toESM(require("@mui/icons-material/ExpandMore"));
|
|
5592
6453
|
var import_ExpandLess = __toESM(require("@mui/icons-material/ExpandLess"));
|
|
5593
|
-
var
|
|
6454
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5594
6455
|
var configureTypeScript = (monaco) => {
|
|
5595
6456
|
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
5596
6457
|
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
@@ -5634,16 +6495,16 @@ var CodeEditor = ({
|
|
|
5634
6495
|
containerProps,
|
|
5635
6496
|
typeDefinitions
|
|
5636
6497
|
}) => {
|
|
5637
|
-
const [isEditorReady, setIsEditorReady] = (0,
|
|
5638
|
-
const [validationErrors, setValidationErrors] = (0,
|
|
5639
|
-
const [isFullscreen, setIsFullscreen] = (0,
|
|
5640
|
-
const [tsCode, setTsCode] = (0,
|
|
5641
|
-
const [actualHeight, setActualHeight] = (0,
|
|
6498
|
+
const [isEditorReady, setIsEditorReady] = (0, import_react33.useState)(false);
|
|
6499
|
+
const [validationErrors, setValidationErrors] = (0, import_react33.useState)([]);
|
|
6500
|
+
const [isFullscreen, setIsFullscreen] = (0, import_react33.useState)(false);
|
|
6501
|
+
const [tsCode, setTsCode] = (0, import_react33.useState)(value);
|
|
6502
|
+
const [actualHeight, setActualHeight] = (0, import_react33.useState)(
|
|
5642
6503
|
typeof height === "number" ? `${height}px` : height
|
|
5643
6504
|
);
|
|
5644
|
-
const [showProblems, setShowProblems] = (0,
|
|
5645
|
-
const [hasUserToggledProblems, setHasUserToggledProblems] = (0,
|
|
5646
|
-
(0,
|
|
6505
|
+
const [showProblems, setShowProblems] = (0, import_react33.useState)(false);
|
|
6506
|
+
const [hasUserToggledProblems, setHasUserToggledProblems] = (0, import_react33.useState)(false);
|
|
6507
|
+
(0, import_react33.useEffect)(() => {
|
|
5647
6508
|
if (hasUserToggledProblems) return;
|
|
5648
6509
|
if (validationErrors.length > 0) {
|
|
5649
6510
|
setShowProblems(true);
|
|
@@ -5651,25 +6512,25 @@ var CodeEditor = ({
|
|
|
5651
6512
|
setShowProblems(false);
|
|
5652
6513
|
}
|
|
5653
6514
|
}, [validationErrors, hasUserToggledProblems]);
|
|
5654
|
-
const internalEditorRef = (0,
|
|
5655
|
-
const internalMonacoRef = (0,
|
|
6515
|
+
const internalEditorRef = (0, import_react33.useRef)(null);
|
|
6516
|
+
const internalMonacoRef = (0, import_react33.useRef)(null);
|
|
5656
6517
|
const finalEditorRef = editorRef || internalEditorRef;
|
|
5657
6518
|
const finalMonacoRef = monacoRef || internalMonacoRef;
|
|
5658
|
-
(0,
|
|
6519
|
+
(0, import_react33.useEffect)(() => {
|
|
5659
6520
|
if (isFullscreen) {
|
|
5660
6521
|
setActualHeight("calc(100vh - 80px)");
|
|
5661
6522
|
} else {
|
|
5662
6523
|
setActualHeight(typeof height === "number" ? `${height}px` : height);
|
|
5663
6524
|
}
|
|
5664
6525
|
}, [height, isFullscreen]);
|
|
5665
|
-
const toggleFullscreen = (0,
|
|
6526
|
+
const toggleFullscreen = (0, import_react33.useCallback)(() => {
|
|
5666
6527
|
const newFullscreenState = !isFullscreen;
|
|
5667
6528
|
setIsFullscreen(newFullscreenState);
|
|
5668
6529
|
if (onFullscreenChange) {
|
|
5669
6530
|
onFullscreenChange(newFullscreenState);
|
|
5670
6531
|
}
|
|
5671
6532
|
}, [isFullscreen, onFullscreenChange]);
|
|
5672
|
-
const gotoMarker = (0,
|
|
6533
|
+
const gotoMarker = (0, import_react33.useCallback)(
|
|
5673
6534
|
(marker) => {
|
|
5674
6535
|
const ed = finalEditorRef?.current;
|
|
5675
6536
|
if (!ed) return;
|
|
@@ -5684,7 +6545,7 @@ var CodeEditor = ({
|
|
|
5684
6545
|
},
|
|
5685
6546
|
[finalEditorRef]
|
|
5686
6547
|
);
|
|
5687
|
-
(0,
|
|
6548
|
+
(0, import_react33.useEffect)(() => {
|
|
5688
6549
|
if (!isFullscreen) return;
|
|
5689
6550
|
function escapeHandler(event) {
|
|
5690
6551
|
if (event.key === "Escape") {
|
|
@@ -5701,7 +6562,7 @@ var CodeEditor = ({
|
|
|
5701
6562
|
window.removeEventListener("keydown", escapeHandler, { capture: true });
|
|
5702
6563
|
};
|
|
5703
6564
|
}, [isFullscreen, onFullscreenChange]);
|
|
5704
|
-
const handleEditorDidMount = (0,
|
|
6565
|
+
const handleEditorDidMount = (0, import_react33.useCallback)(
|
|
5705
6566
|
(editor, monaco) => {
|
|
5706
6567
|
console.log("CodeEditor: onMount called", { editor: !!editor, monaco: !!monaco });
|
|
5707
6568
|
try {
|
|
@@ -5755,7 +6616,7 @@ var CodeEditor = ({
|
|
|
5755
6616
|
},
|
|
5756
6617
|
[isFullscreen, onFullscreenChange, onValidate, onMount, finalEditorRef, finalMonacoRef]
|
|
5757
6618
|
);
|
|
5758
|
-
(0,
|
|
6619
|
+
(0, import_react33.useEffect)(() => {
|
|
5759
6620
|
if (!isEditorReady || !finalMonacoRef?.current || !typeDefinitions) return;
|
|
5760
6621
|
const monaco = finalMonacoRef.current;
|
|
5761
6622
|
const definitions = Array.isArray(typeDefinitions) ? typeDefinitions : [typeDefinitions];
|
|
@@ -5777,7 +6638,7 @@ var CodeEditor = ({
|
|
|
5777
6638
|
setTsCode(valueStr);
|
|
5778
6639
|
onChange(valueStr);
|
|
5779
6640
|
};
|
|
5780
|
-
(0,
|
|
6641
|
+
(0, import_react33.useEffect)(() => {
|
|
5781
6642
|
if (value !== tsCode) {
|
|
5782
6643
|
setTsCode(value);
|
|
5783
6644
|
if (isEditorReady && finalEditorRef?.current) {
|
|
@@ -5802,8 +6663,8 @@ var CodeEditor = ({
|
|
|
5802
6663
|
theme: themeProp || "vs",
|
|
5803
6664
|
...options2
|
|
5804
6665
|
};
|
|
5805
|
-
return /* @__PURE__ */ (0,
|
|
5806
|
-
|
|
6666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6667
|
+
import_material63.Box,
|
|
5807
6668
|
{
|
|
5808
6669
|
sx: {
|
|
5809
6670
|
display: "flex",
|
|
@@ -5823,8 +6684,8 @@ var CodeEditor = ({
|
|
|
5823
6684
|
pb: isFullscreen ? 2 : 0,
|
|
5824
6685
|
overflow: isFullscreen ? "hidden" : "visible"
|
|
5825
6686
|
},
|
|
5826
|
-
children: /* @__PURE__ */ (0,
|
|
5827
|
-
|
|
6687
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
6688
|
+
import_material63.Box,
|
|
5828
6689
|
{
|
|
5829
6690
|
sx: {
|
|
5830
6691
|
flex: 1,
|
|
@@ -5839,8 +6700,8 @@ var CodeEditor = ({
|
|
|
5839
6700
|
},
|
|
5840
6701
|
...containerProps,
|
|
5841
6702
|
children: [
|
|
5842
|
-
/* @__PURE__ */ (0,
|
|
5843
|
-
|
|
6703
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material63.Tooltip, { title: isFullscreen ? "Exit Fullscreen" : "Fullscreen", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6704
|
+
import_material63.IconButton,
|
|
5844
6705
|
{
|
|
5845
6706
|
onClick: toggleFullscreen,
|
|
5846
6707
|
size: "small",
|
|
@@ -5857,11 +6718,11 @@ var CodeEditor = ({
|
|
|
5857
6718
|
},
|
|
5858
6719
|
boxShadow: 1
|
|
5859
6720
|
},
|
|
5860
|
-
children: isFullscreen ? /* @__PURE__ */ (0,
|
|
6721
|
+
children: isFullscreen ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_FullscreenExit.default, { fontSize: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_Fullscreen.default, { fontSize: "small" })
|
|
5861
6722
|
}
|
|
5862
6723
|
) }),
|
|
5863
|
-
/* @__PURE__ */ (0,
|
|
5864
|
-
|
|
6724
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6725
|
+
import_material63.Box,
|
|
5865
6726
|
{
|
|
5866
6727
|
sx: {
|
|
5867
6728
|
flex: 1,
|
|
@@ -5872,8 +6733,8 @@ var CodeEditor = ({
|
|
|
5872
6733
|
position: "relative",
|
|
5873
6734
|
height: isFullscreen ? "100%" : actualHeight
|
|
5874
6735
|
},
|
|
5875
|
-
children: /* @__PURE__ */ (0,
|
|
5876
|
-
|
|
6736
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6737
|
+
import_react34.default,
|
|
5877
6738
|
{
|
|
5878
6739
|
height: "100%",
|
|
5879
6740
|
defaultLanguage: language,
|
|
@@ -5883,7 +6744,7 @@ var CodeEditor = ({
|
|
|
5883
6744
|
onMount: handleEditorDidMount,
|
|
5884
6745
|
theme: themeProp || "vs",
|
|
5885
6746
|
options: defaultOptions,
|
|
5886
|
-
loading: /* @__PURE__ */ (0,
|
|
6747
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material63.Box, { sx: { p: 2, textAlign: "center" }, children: "Loading Monaco Editor..." }),
|
|
5887
6748
|
beforeMount: (monaco) => {
|
|
5888
6749
|
console.log("CodeEditor: beforeMount called", { monaco: !!monaco });
|
|
5889
6750
|
}
|
|
@@ -5891,8 +6752,8 @@ var CodeEditor = ({
|
|
|
5891
6752
|
)
|
|
5892
6753
|
}
|
|
5893
6754
|
),
|
|
5894
|
-
validationErrors.length > 0 && /* @__PURE__ */ (0,
|
|
5895
|
-
|
|
6755
|
+
validationErrors.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
6756
|
+
import_material63.Box,
|
|
5896
6757
|
{
|
|
5897
6758
|
sx: {
|
|
5898
6759
|
borderTop: 1,
|
|
@@ -5905,8 +6766,8 @@ var CodeEditor = ({
|
|
|
5905
6766
|
transition: "max-height 0.2s ease"
|
|
5906
6767
|
},
|
|
5907
6768
|
children: [
|
|
5908
|
-
/* @__PURE__ */ (0,
|
|
5909
|
-
|
|
6769
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
6770
|
+
import_material63.Box,
|
|
5910
6771
|
{
|
|
5911
6772
|
sx: {
|
|
5912
6773
|
display: "flex",
|
|
@@ -5920,16 +6781,16 @@ var CodeEditor = ({
|
|
|
5920
6781
|
color: "text.secondary"
|
|
5921
6782
|
},
|
|
5922
6783
|
children: [
|
|
5923
|
-
/* @__PURE__ */ (0,
|
|
5924
|
-
/* @__PURE__ */ (0,
|
|
5925
|
-
/* @__PURE__ */ (0,
|
|
6784
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_ErrorOutline.default, { color: "error", fontSize: "small" }),
|
|
6785
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material63.Box, { sx: { fontWeight: 600, color: "text.primary" }, children: "Problems" }),
|
|
6786
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_material63.Box, { sx: { ml: 1 }, children: [
|
|
5926
6787
|
validationErrors.length,
|
|
5927
6788
|
" error",
|
|
5928
6789
|
validationErrors.length > 1 ? "s" : ""
|
|
5929
6790
|
] }),
|
|
5930
|
-
/* @__PURE__ */ (0,
|
|
5931
|
-
/* @__PURE__ */ (0,
|
|
5932
|
-
|
|
6791
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material63.Box, { sx: { flex: 1 } }),
|
|
6792
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6793
|
+
import_material63.IconButton,
|
|
5933
6794
|
{
|
|
5934
6795
|
size: "small",
|
|
5935
6796
|
"aria-label": "Toggle problems panel",
|
|
@@ -5937,14 +6798,14 @@ var CodeEditor = ({
|
|
|
5937
6798
|
setHasUserToggledProblems(true);
|
|
5938
6799
|
setShowProblems((s) => !s);
|
|
5939
6800
|
},
|
|
5940
|
-
children: showProblems ? /* @__PURE__ */ (0,
|
|
6801
|
+
children: showProblems ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_ExpandMore2.default, { fontSize: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_ExpandLess.default, { fontSize: "small" })
|
|
5941
6802
|
}
|
|
5942
6803
|
)
|
|
5943
6804
|
]
|
|
5944
6805
|
}
|
|
5945
6806
|
),
|
|
5946
|
-
showProblems && /* @__PURE__ */ (0,
|
|
5947
|
-
|
|
6807
|
+
showProblems && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material63.Box, { sx: { overflow: "auto" }, children: validationErrors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
|
|
6808
|
+
import_material63.Box,
|
|
5948
6809
|
{
|
|
5949
6810
|
onClick: () => gotoMarker(error),
|
|
5950
6811
|
sx: {
|
|
@@ -5960,12 +6821,12 @@ var CodeEditor = ({
|
|
|
5960
6821
|
fontSize: "0.85rem"
|
|
5961
6822
|
},
|
|
5962
6823
|
children: [
|
|
5963
|
-
/* @__PURE__ */ (0,
|
|
5964
|
-
/* @__PURE__ */ (0,
|
|
6824
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_ErrorOutline.default, { color: "error", sx: { fontSize: 18 } }),
|
|
6825
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_material63.Box, { sx: { color: "text.secondary", width: 64 }, children: [
|
|
5965
6826
|
"Line ",
|
|
5966
6827
|
error.startLineNumber
|
|
5967
6828
|
] }),
|
|
5968
|
-
/* @__PURE__ */ (0,
|
|
6829
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material63.Box, { sx: { color: "text.primary", flex: 1, minWidth: 0 }, children: error.message })
|
|
5969
6830
|
]
|
|
5970
6831
|
},
|
|
5971
6832
|
`${error.startLineNumber}-${error.startColumn}-${index}`
|
|
@@ -5985,6 +6846,7 @@ var import_reactflow3 = require("reactflow");
|
|
|
5985
6846
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5986
6847
|
0 && (module.exports = {
|
|
5987
6848
|
Accordion,
|
|
6849
|
+
AccountSection,
|
|
5988
6850
|
ActivityAppIcon,
|
|
5989
6851
|
Alert,
|
|
5990
6852
|
AppBar,
|
|
@@ -6015,6 +6877,7 @@ var import_reactflow3 = require("reactflow");
|
|
|
6015
6877
|
CodeEditor,
|
|
6016
6878
|
Collapse,
|
|
6017
6879
|
ConnectionLineType,
|
|
6880
|
+
ConnectionStatus,
|
|
6018
6881
|
Container,
|
|
6019
6882
|
Controls,
|
|
6020
6883
|
DecentralizedServerIcon,
|
|
@@ -6055,6 +6918,8 @@ var import_reactflow3 = require("reactflow");
|
|
|
6055
6918
|
MessagesProvider,
|
|
6056
6919
|
MetricsChart,
|
|
6057
6920
|
MiniMap,
|
|
6921
|
+
NavigationItem,
|
|
6922
|
+
NavigationList,
|
|
6058
6923
|
OnboardingProvider,
|
|
6059
6924
|
Pagination,
|
|
6060
6925
|
Panel,
|
|
@@ -6069,6 +6934,8 @@ var import_reactflow3 = require("reactflow");
|
|
|
6069
6934
|
Selector,
|
|
6070
6935
|
ServiceSelectorButton,
|
|
6071
6936
|
ShareIcon,
|
|
6937
|
+
SideNav,
|
|
6938
|
+
SideNavHeader,
|
|
6072
6939
|
Sidebar,
|
|
6073
6940
|
SidebarItem,
|
|
6074
6941
|
Snackbar,
|