@cere/cere-design-system 0.0.15 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +162 -2
- package/dist/index.d.ts +162 -2
- package/dist/index.js +1042 -356
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +987 -299
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -62,7 +62,39 @@ var colors = {
|
|
|
62
62
|
selected: "rgba(123, 44, 191, 0.1)"
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
var
|
|
65
|
+
var deploymentEntityColors = {
|
|
66
|
+
workspace: "#aa44f2",
|
|
67
|
+
stream: "#53b96a",
|
|
68
|
+
deployment: "#eeb510",
|
|
69
|
+
engagement: "#f941e6",
|
|
70
|
+
agent: "#77c3ff"
|
|
71
|
+
};
|
|
72
|
+
var deploymentStatusColors = {
|
|
73
|
+
normal: "#53b96a",
|
|
74
|
+
warning: "#eeb510",
|
|
75
|
+
error: "#ef5059",
|
|
76
|
+
disabled: "#ffffff",
|
|
77
|
+
disabledDim: "#ded8e1"
|
|
78
|
+
};
|
|
79
|
+
var deploymentSurfaceTokens = {
|
|
80
|
+
/** Surface/high background (Figma #fefcff) */
|
|
81
|
+
surfaceHigh: "#fefcff",
|
|
82
|
+
/** Stroke/Outside border (Figma #e6e6e6) */
|
|
83
|
+
strokeOutside: "#e6e6e6",
|
|
84
|
+
/** Default card border (Figma #cdcccd) */
|
|
85
|
+
borderDefault: "#cdcccd",
|
|
86
|
+
/** Primary text (Figma #1d1b20) */
|
|
87
|
+
textPrimary: "#1d1b20",
|
|
88
|
+
/** Secondary/muted text (Figma #818083) */
|
|
89
|
+
textSecondary: "#818083",
|
|
90
|
+
/** Accent blue for workspace border, capacity bar, chevrons (Figma #5865f2) */
|
|
91
|
+
accentBlue: "#5865f2",
|
|
92
|
+
/** Workspace card shadow */
|
|
93
|
+
workspaceShadow: "0px 8px 12px rgba(26, 10, 124, 0.1)",
|
|
94
|
+
/** Hover state for context menu items */
|
|
95
|
+
hoverLight: "#F0F1FF"
|
|
96
|
+
};
|
|
97
|
+
var baseTheme = createTheme({
|
|
66
98
|
palette: {
|
|
67
99
|
mode: "light",
|
|
68
100
|
primary: colors.primary,
|
|
@@ -225,6 +257,14 @@ var theme = createTheme({
|
|
|
225
257
|
}
|
|
226
258
|
}
|
|
227
259
|
});
|
|
260
|
+
var theme = createTheme(baseTheme, {
|
|
261
|
+
palette: {
|
|
262
|
+
deployment: {
|
|
263
|
+
entity: deploymentEntityColors,
|
|
264
|
+
status: deploymentStatusColors
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
});
|
|
228
268
|
|
|
229
269
|
// src/animations/CheckMarkAnimation/CheckMarkAnimation.tsx
|
|
230
270
|
import Lottie from "lottie-react";
|
|
@@ -3431,11 +3471,11 @@ SideNav.displayName = "SideNav";
|
|
|
3431
3471
|
|
|
3432
3472
|
// src/components/navigation/SideNav/SideNavHeader.tsx
|
|
3433
3473
|
import React4 from "react";
|
|
3434
|
-
import { Box as Box5, Typography as Typography4, IconButton as IconButton4, Tooltip as Tooltip2 } from "@mui/material";
|
|
3474
|
+
import { Box as Box5, Typography as Typography4, IconButton as IconButton4, Tooltip as Tooltip2, ButtonBase } from "@mui/material";
|
|
3435
3475
|
import { styled as styled12 } from "@mui/material/styles";
|
|
3436
3476
|
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
3437
3477
|
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
3438
|
-
import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3478
|
+
import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3439
3479
|
var HeaderContainer = styled12(Box5, {
|
|
3440
3480
|
shouldForwardProp: (prop) => prop !== "isCollapsed"
|
|
3441
3481
|
})(({ theme: theme2, isCollapsed }) => ({
|
|
@@ -3450,15 +3490,60 @@ var HeaderContainer = styled12(Box5, {
|
|
|
3450
3490
|
duration: theme2.transitions.duration.shorter
|
|
3451
3491
|
})
|
|
3452
3492
|
}));
|
|
3493
|
+
var BrandingButton = styled12(ButtonBase)(({ theme: theme2 }) => ({
|
|
3494
|
+
display: "flex",
|
|
3495
|
+
alignItems: "center",
|
|
3496
|
+
gap: theme2.spacing(1.5),
|
|
3497
|
+
minWidth: 0,
|
|
3498
|
+
padding: 0,
|
|
3499
|
+
borderRadius: theme2.shape.borderRadius,
|
|
3500
|
+
// Subtle hover feedback only when clickable
|
|
3501
|
+
"&:hover": {
|
|
3502
|
+
opacity: 0.8
|
|
3503
|
+
},
|
|
3504
|
+
"&:focus-visible": {
|
|
3505
|
+
outline: `2px solid ${theme2.palette.primary.main}`,
|
|
3506
|
+
outlineOffset: 2
|
|
3507
|
+
}
|
|
3508
|
+
}));
|
|
3453
3509
|
var SideNavHeader = React4.memo(({
|
|
3454
3510
|
logo,
|
|
3455
3511
|
title,
|
|
3456
3512
|
showCollapseButton = true,
|
|
3457
3513
|
onCollapse,
|
|
3514
|
+
onLogoClick,
|
|
3458
3515
|
ariaLabel,
|
|
3459
3516
|
collapsed = false
|
|
3460
3517
|
}) => {
|
|
3461
3518
|
const headerAriaLabel = ariaLabel || `${title} navigation header`;
|
|
3519
|
+
const brandingContent = /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
3520
|
+
logo && /* @__PURE__ */ jsx22(
|
|
3521
|
+
Box5,
|
|
3522
|
+
{
|
|
3523
|
+
sx: {
|
|
3524
|
+
display: "flex",
|
|
3525
|
+
alignItems: "center",
|
|
3526
|
+
justifyContent: "center",
|
|
3527
|
+
flexShrink: 0
|
|
3528
|
+
},
|
|
3529
|
+
children: logo
|
|
3530
|
+
}
|
|
3531
|
+
),
|
|
3532
|
+
!collapsed && /* @__PURE__ */ jsx22(
|
|
3533
|
+
Typography4,
|
|
3534
|
+
{
|
|
3535
|
+
variant: "subtitle1",
|
|
3536
|
+
sx: {
|
|
3537
|
+
fontWeight: 700,
|
|
3538
|
+
overflow: "hidden",
|
|
3539
|
+
textOverflow: "ellipsis",
|
|
3540
|
+
whiteSpace: "nowrap",
|
|
3541
|
+
minWidth: 0
|
|
3542
|
+
},
|
|
3543
|
+
children: title
|
|
3544
|
+
}
|
|
3545
|
+
)
|
|
3546
|
+
] });
|
|
3462
3547
|
return /* @__PURE__ */ jsxs8(
|
|
3463
3548
|
HeaderContainer,
|
|
3464
3549
|
{
|
|
@@ -3466,31 +3551,24 @@ var SideNavHeader = React4.memo(({
|
|
|
3466
3551
|
"aria-label": headerAriaLabel,
|
|
3467
3552
|
isCollapsed: collapsed,
|
|
3468
3553
|
children: [
|
|
3469
|
-
|
|
3554
|
+
onLogoClick ? /* @__PURE__ */ jsx22(
|
|
3555
|
+
BrandingButton,
|
|
3556
|
+
{
|
|
3557
|
+
onClick: onLogoClick,
|
|
3558
|
+
"aria-label": `Go to ${title} home`,
|
|
3559
|
+
"data-testid": "sidenav-home-link",
|
|
3560
|
+
children: brandingContent
|
|
3561
|
+
}
|
|
3562
|
+
) : /* @__PURE__ */ jsx22(
|
|
3470
3563
|
Box5,
|
|
3471
3564
|
{
|
|
3472
3565
|
sx: {
|
|
3473
3566
|
display: "flex",
|
|
3474
3567
|
alignItems: "center",
|
|
3475
|
-
|
|
3476
|
-
flexShrink: 0
|
|
3477
|
-
},
|
|
3478
|
-
children: logo
|
|
3479
|
-
}
|
|
3480
|
-
),
|
|
3481
|
-
!collapsed && /* @__PURE__ */ jsx22(
|
|
3482
|
-
Typography4,
|
|
3483
|
-
{
|
|
3484
|
-
variant: "subtitle1",
|
|
3485
|
-
sx: {
|
|
3486
|
-
flexGrow: 1,
|
|
3487
|
-
fontWeight: 700,
|
|
3488
|
-
overflow: "hidden",
|
|
3489
|
-
textOverflow: "ellipsis",
|
|
3490
|
-
whiteSpace: "nowrap",
|
|
3568
|
+
gap: 1.5,
|
|
3491
3569
|
minWidth: 0
|
|
3492
3570
|
},
|
|
3493
|
-
children:
|
|
3571
|
+
children: brandingContent
|
|
3494
3572
|
}
|
|
3495
3573
|
),
|
|
3496
3574
|
showCollapseButton && /* @__PURE__ */ jsx22(
|
|
@@ -3508,6 +3586,7 @@ var SideNavHeader = React4.memo(({
|
|
|
3508
3586
|
size: "small",
|
|
3509
3587
|
sx: {
|
|
3510
3588
|
flexShrink: 0,
|
|
3589
|
+
marginLeft: collapsed ? 0 : "auto",
|
|
3511
3590
|
color: "text.secondary",
|
|
3512
3591
|
"&:hover": {
|
|
3513
3592
|
backgroundColor: "action.hover",
|
|
@@ -4246,7 +4325,7 @@ import {
|
|
|
4246
4325
|
Divider
|
|
4247
4326
|
} from "@mui/material";
|
|
4248
4327
|
import { styled as styled21 } from "@mui/material/styles";
|
|
4249
|
-
import { Fragment as
|
|
4328
|
+
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4250
4329
|
var StyledMenu = styled21(MuiMenu)({
|
|
4251
4330
|
"& .MuiPaper-root": {
|
|
4252
4331
|
borderRadius: 8,
|
|
@@ -4287,7 +4366,7 @@ var MenuItem = ({
|
|
|
4287
4366
|
disabled = false,
|
|
4288
4367
|
divider = false
|
|
4289
4368
|
}) => {
|
|
4290
|
-
return /* @__PURE__ */ jsxs12(
|
|
4369
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
4291
4370
|
/* @__PURE__ */ jsxs12(MuiMenuItem, { onClick, disabled, children: [
|
|
4292
4371
|
icon && /* @__PURE__ */ jsx32(ListItemIcon3, { children: icon }),
|
|
4293
4372
|
/* @__PURE__ */ jsx32(ListItemText5, { children: label })
|
|
@@ -4351,7 +4430,7 @@ var Link3 = ({ underline = "hover", ...props }) => {
|
|
|
4351
4430
|
};
|
|
4352
4431
|
|
|
4353
4432
|
// src/components/navigation/Selector.tsx
|
|
4354
|
-
import { Fragment as
|
|
4433
|
+
import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4355
4434
|
var Selector = ({
|
|
4356
4435
|
options: options2,
|
|
4357
4436
|
selectedId,
|
|
@@ -4388,7 +4467,7 @@ var Selector = ({
|
|
|
4388
4467
|
/* @__PURE__ */ jsx35(Typography7, { variant: "body2", children: option.name })
|
|
4389
4468
|
] });
|
|
4390
4469
|
if (compact) {
|
|
4391
|
-
return /* @__PURE__ */ jsxs13(
|
|
4470
|
+
return /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4392
4471
|
/* @__PURE__ */ jsx35(IconButton, { onClick: handleOpen, size: "small", children: selectedOption ? selectedOption.avatar ? /* @__PURE__ */ jsx35(Avatar4, { src: selectedOption.avatar, sx: { width: 32, height: 32 } }) : /* @__PURE__ */ jsx35(Avatar4, { sx: { width: 32, height: 32, bgcolor: colors.primary.main }, children: selectedOption.name.charAt(0) }) : /* @__PURE__ */ jsx35(Avatar4, { sx: { width: 32, height: 32, bgcolor: colors.grey[400] }, children: "?" }) }),
|
|
4393
4472
|
/* @__PURE__ */ jsx35(
|
|
4394
4473
|
Menu4,
|
|
@@ -4399,7 +4478,7 @@ var Selector = ({
|
|
|
4399
4478
|
PaperProps: {
|
|
4400
4479
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4401
4480
|
},
|
|
4402
|
-
children: loading ? /* @__PURE__ */ jsx35(Box9, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx35(CircularProgress2, { size: 24 }) }) : /* @__PURE__ */ jsxs13(
|
|
4481
|
+
children: loading ? /* @__PURE__ */ jsx35(Box9, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx35(CircularProgress2, { size: 24 }) }) : /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4403
4482
|
options2.length > 5 && /* @__PURE__ */ jsx35(Box9, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ jsx35(
|
|
4404
4483
|
TextField,
|
|
4405
4484
|
{
|
|
@@ -4446,7 +4525,7 @@ var Selector = ({
|
|
|
4446
4525
|
)
|
|
4447
4526
|
] });
|
|
4448
4527
|
}
|
|
4449
|
-
return /* @__PURE__ */ jsxs13(
|
|
4528
|
+
return /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4450
4529
|
/* @__PURE__ */ jsxs13(Box9, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
4451
4530
|
selectedOption ? renderSelected ? /* @__PURE__ */ jsx35(Link3, { onClick: handleOpen, underline: "hover", children: renderSelected(selectedOption) }) : /* @__PURE__ */ jsx35(Link3, { onClick: handleOpen, underline: "hover", children: defaultRenderSelected(selectedOption) }) : /* @__PURE__ */ jsx35(Typography7, { variant: "body2", color: "text.secondary", children: placeholder }),
|
|
4452
4531
|
/* @__PURE__ */ jsx35(IconButton, { onClick: handleOpen, size: "small", sx: { p: 0.2, ml: 0.5 }, children: /* @__PURE__ */ jsx35(KeyboardArrowDownIcon3, { fontSize: "small" }) })
|
|
@@ -4460,7 +4539,7 @@ var Selector = ({
|
|
|
4460
4539
|
PaperProps: {
|
|
4461
4540
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4462
4541
|
},
|
|
4463
|
-
children: loading ? /* @__PURE__ */ jsx35(Box9, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx35(CircularProgress2, { size: 24 }) }) : /* @__PURE__ */ jsxs13(
|
|
4542
|
+
children: loading ? /* @__PURE__ */ jsx35(Box9, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx35(CircularProgress2, { size: 24 }) }) : /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4464
4543
|
options2.length > 5 && /* @__PURE__ */ jsx35(Box9, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ jsx35(
|
|
4465
4544
|
TextField,
|
|
4466
4545
|
{
|
|
@@ -4557,7 +4636,7 @@ import {
|
|
|
4557
4636
|
CircularProgress as CircularProgress3
|
|
4558
4637
|
} from "@mui/material";
|
|
4559
4638
|
import CloseIcon from "@mui/icons-material/Close";
|
|
4560
|
-
import { Fragment as
|
|
4639
|
+
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4561
4640
|
var Dialog = ({
|
|
4562
4641
|
open,
|
|
4563
4642
|
title,
|
|
@@ -4616,9 +4695,9 @@ var Dialog = ({
|
|
|
4616
4695
|
] }),
|
|
4617
4696
|
dividers && /* @__PURE__ */ jsx38(Divider2, {}),
|
|
4618
4697
|
/* @__PURE__ */ jsx38(DialogContent, { dividers, children }),
|
|
4619
|
-
(showActions || customActions) && /* @__PURE__ */ jsxs16(
|
|
4698
|
+
(showActions || customActions) && /* @__PURE__ */ jsxs16(Fragment7, { children: [
|
|
4620
4699
|
dividers && /* @__PURE__ */ jsx38(Divider2, {}),
|
|
4621
|
-
/* @__PURE__ */ jsx38(DialogActions, { children: customActions || /* @__PURE__ */ jsxs16(
|
|
4700
|
+
/* @__PURE__ */ jsx38(DialogActions, { children: customActions || /* @__PURE__ */ jsxs16(Fragment7, { children: [
|
|
4622
4701
|
/* @__PURE__ */ jsx38(
|
|
4623
4702
|
Button6,
|
|
4624
4703
|
{
|
|
@@ -4650,7 +4729,7 @@ import MuiDrawer from "@mui/material/Drawer";
|
|
|
4650
4729
|
import { styled as styled25 } from "@mui/material/styles";
|
|
4651
4730
|
import { Box as Box11, IconButton as IconButton7, Typography as Typography9, Divider as Divider3, Tabs, Tab as Tab2 } from "@mui/material";
|
|
4652
4731
|
import CloseIcon2 from "@mui/icons-material/Close";
|
|
4653
|
-
import { Fragment as
|
|
4732
|
+
import { Fragment as Fragment8, jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4654
4733
|
var StyledDrawer2 = styled25(MuiDrawer, {
|
|
4655
4734
|
shouldForwardProp: (prop) => prop !== "width" && prop !== "miniWidth" && prop !== "collapsed" && prop !== "topOffset"
|
|
4656
4735
|
})(({ theme: theme2, width = 240, miniWidth = 72, collapsed, topOffset = 0 }) => ({
|
|
@@ -4722,7 +4801,7 @@ var Drawer2 = ({
|
|
|
4722
4801
|
},
|
|
4723
4802
|
...props,
|
|
4724
4803
|
children: [
|
|
4725
|
-
hasHeader && /* @__PURE__ */ jsxs17(
|
|
4804
|
+
hasHeader && /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
4726
4805
|
/* @__PURE__ */ jsx39(
|
|
4727
4806
|
Box11,
|
|
4728
4807
|
{
|
|
@@ -4735,7 +4814,7 @@ var Drawer2 = ({
|
|
|
4735
4814
|
borderBottom: 1,
|
|
4736
4815
|
borderColor: "divider"
|
|
4737
4816
|
},
|
|
4738
|
-
children: header || /* @__PURE__ */ jsxs17(
|
|
4817
|
+
children: header || /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
4739
4818
|
/* @__PURE__ */ jsx39(Box11, { sx: { flex: 1 }, children: typeof title === "string" ? /* @__PURE__ */ jsx39(Typography9, { variant: "h6", children: title }) : title }),
|
|
4740
4819
|
shouldShowClose && onClose && /* @__PURE__ */ jsx39(
|
|
4741
4820
|
IconButton7,
|
|
@@ -4785,7 +4864,7 @@ var Drawer2 = ({
|
|
|
4785
4864
|
children
|
|
4786
4865
|
}
|
|
4787
4866
|
),
|
|
4788
|
-
footer && /* @__PURE__ */ jsxs17(
|
|
4867
|
+
footer && /* @__PURE__ */ jsxs17(Fragment8, { children: [
|
|
4789
4868
|
/* @__PURE__ */ jsx39(Divider3, {}),
|
|
4790
4869
|
/* @__PURE__ */ jsx39(
|
|
4791
4870
|
Box11,
|
|
@@ -4888,16 +4967,620 @@ var ListItem4 = ({
|
|
|
4888
4967
|
] });
|
|
4889
4968
|
};
|
|
4890
4969
|
|
|
4970
|
+
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
4971
|
+
import {
|
|
4972
|
+
Paper,
|
|
4973
|
+
Box as Box12,
|
|
4974
|
+
Typography as Typography10,
|
|
4975
|
+
IconButton as IconButton8,
|
|
4976
|
+
useTheme as useTheme2,
|
|
4977
|
+
LinearProgress as LinearProgress2
|
|
4978
|
+
} from "@mui/material";
|
|
4979
|
+
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
|
4980
|
+
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
4981
|
+
import ChevronRightIcon2 from "@mui/icons-material/ChevronRight";
|
|
4982
|
+
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
|
4983
|
+
import WorkOutlineIcon from "@mui/icons-material/WorkOutline";
|
|
4984
|
+
import WavesIcon from "@mui/icons-material/Waves";
|
|
4985
|
+
import RocketLaunchOutlinedIcon from "@mui/icons-material/RocketLaunchOutlined";
|
|
4986
|
+
import InsertLinkIcon from "@mui/icons-material/InsertLink";
|
|
4987
|
+
import SmartToyOutlinedIcon from "@mui/icons-material/SmartToyOutlined";
|
|
4988
|
+
import { styled as styled28 } from "@mui/material/styles";
|
|
4989
|
+
|
|
4990
|
+
// src/hooks/useControlledExpand.ts
|
|
4991
|
+
import { useState as useState7 } from "react";
|
|
4992
|
+
function useControlledExpand(controlledExpanded, onToggle, defaultExpanded = false) {
|
|
4993
|
+
const [internal, setInternal] = useState7(defaultExpanded);
|
|
4994
|
+
const isControlled = controlledExpanded !== void 0 && onToggle != null;
|
|
4995
|
+
const expanded = isControlled ? controlledExpanded : internal;
|
|
4996
|
+
const toggle = isControlled ? () => onToggle() : () => setInternal((prev) => !prev);
|
|
4997
|
+
return { expanded, toggle };
|
|
4998
|
+
}
|
|
4999
|
+
|
|
5000
|
+
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
5001
|
+
import { Fragment as Fragment9, jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5002
|
+
var ENTITY_LABELS = {
|
|
5003
|
+
workspace: "Workspace",
|
|
5004
|
+
stream: "Stream",
|
|
5005
|
+
deployment: "Deployment",
|
|
5006
|
+
engagement: "Engagement",
|
|
5007
|
+
agent: "Agent"
|
|
5008
|
+
};
|
|
5009
|
+
var ENTITY_ICON_SIZE = 24;
|
|
5010
|
+
var ENTITY_ICONS = {
|
|
5011
|
+
workspace: /* @__PURE__ */ jsx42(WorkOutlineIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5012
|
+
stream: /* @__PURE__ */ jsx42(WavesIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5013
|
+
deployment: /* @__PURE__ */ jsx42(RocketLaunchOutlinedIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5014
|
+
engagement: /* @__PURE__ */ jsx42(InsertLinkIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5015
|
+
agent: /* @__PURE__ */ jsx42(SmartToyOutlinedIcon, { sx: { fontSize: ENTITY_ICON_SIZE } })
|
|
5016
|
+
};
|
|
5017
|
+
var STATUS_DOT_COLORS = {
|
|
5018
|
+
normal: deploymentStatusColors.normal,
|
|
5019
|
+
warning: deploymentStatusColors.warning,
|
|
5020
|
+
error: deploymentStatusColors.error,
|
|
5021
|
+
disabled: deploymentStatusColors.disabledDim
|
|
5022
|
+
};
|
|
5023
|
+
var CHEVRON_SIZE = 16;
|
|
5024
|
+
var StatusDot = styled28(Box12, {
|
|
5025
|
+
shouldForwardProp: (p) => p !== "status"
|
|
5026
|
+
})(({ status }) => ({
|
|
5027
|
+
width: 8,
|
|
5028
|
+
height: 8,
|
|
5029
|
+
borderRadius: "50%",
|
|
5030
|
+
backgroundColor: status ? STATUS_DOT_COLORS[status] ?? "transparent" : "transparent",
|
|
5031
|
+
flexShrink: 0
|
|
5032
|
+
}));
|
|
5033
|
+
var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs19(
|
|
5034
|
+
Box12,
|
|
5035
|
+
{
|
|
5036
|
+
sx: {
|
|
5037
|
+
display: "inline-flex",
|
|
5038
|
+
alignItems: "center",
|
|
5039
|
+
gap: 0.5,
|
|
5040
|
+
pl: 1,
|
|
5041
|
+
pr: 1.5,
|
|
5042
|
+
py: 0.5,
|
|
5043
|
+
borderRadius: "16px",
|
|
5044
|
+
backgroundColor: deploymentSurfaceTokens.surfaceHigh,
|
|
5045
|
+
border: `2px solid ${color}`,
|
|
5046
|
+
flexShrink: 0
|
|
5047
|
+
},
|
|
5048
|
+
children: [
|
|
5049
|
+
/* @__PURE__ */ jsx42(Box12, { sx: { color, display: "flex", alignItems: "center" }, children: ENTITY_ICONS[entityType] }),
|
|
5050
|
+
/* @__PURE__ */ jsx42(
|
|
5051
|
+
Typography10,
|
|
5052
|
+
{
|
|
5053
|
+
variant: "body2",
|
|
5054
|
+
fontWeight: 500,
|
|
5055
|
+
sx: { color: "black", lineHeight: 1.42, fontSize: "14px", letterSpacing: "0.07px" },
|
|
5056
|
+
children: ENTITY_LABELS[entityType]
|
|
5057
|
+
}
|
|
5058
|
+
)
|
|
5059
|
+
]
|
|
5060
|
+
}
|
|
5061
|
+
);
|
|
5062
|
+
var IdBadge = ({ id, onCopy }) => /* @__PURE__ */ jsxs19(
|
|
5063
|
+
Box12,
|
|
5064
|
+
{
|
|
5065
|
+
sx: {
|
|
5066
|
+
display: "inline-flex",
|
|
5067
|
+
alignItems: "center",
|
|
5068
|
+
gap: 0.5,
|
|
5069
|
+
px: 2,
|
|
5070
|
+
py: 1,
|
|
5071
|
+
borderRadius: "8px",
|
|
5072
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5073
|
+
bgcolor: "white",
|
|
5074
|
+
flexShrink: 0
|
|
5075
|
+
},
|
|
5076
|
+
children: [
|
|
5077
|
+
/* @__PURE__ */ jsxs19(
|
|
5078
|
+
Typography10,
|
|
5079
|
+
{
|
|
5080
|
+
variant: "body2",
|
|
5081
|
+
fontWeight: 500,
|
|
5082
|
+
sx: { color: deploymentSurfaceTokens.textPrimary, whiteSpace: "nowrap" },
|
|
5083
|
+
children: [
|
|
5084
|
+
"ID: ",
|
|
5085
|
+
id
|
|
5086
|
+
]
|
|
5087
|
+
}
|
|
5088
|
+
),
|
|
5089
|
+
onCopy && /* @__PURE__ */ jsx42(IconButton8, { size: "small", onClick: onCopy, "aria-label": "Copy ID", sx: { p: 0 }, children: /* @__PURE__ */ jsx42(ContentCopyIcon, { sx: { fontSize: 14, color: deploymentSurfaceTokens.textSecondary } }) })
|
|
5090
|
+
]
|
|
5091
|
+
}
|
|
5092
|
+
);
|
|
5093
|
+
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ jsxs19(Box12, { sx: { pl: indented ? "40px" : 0, pr: "20px", py: 1 }, children: [
|
|
5094
|
+
/* @__PURE__ */ jsxs19(Box12, { sx: { display: "flex", justifyContent: "space-between", mb: 1 }, children: [
|
|
5095
|
+
/* @__PURE__ */ jsx42(Typography10, { variant: "body2", sx: { color: deploymentSurfaceTokens.textPrimary }, children: "Capacity" }),
|
|
5096
|
+
/* @__PURE__ */ jsxs19(Typography10, { variant: "body2", sx: { color: deploymentSurfaceTokens.accentBlue }, children: [
|
|
5097
|
+
value,
|
|
5098
|
+
"%"
|
|
5099
|
+
] })
|
|
5100
|
+
] }),
|
|
5101
|
+
/* @__PURE__ */ jsx42(
|
|
5102
|
+
LinearProgress2,
|
|
5103
|
+
{
|
|
5104
|
+
variant: "determinate",
|
|
5105
|
+
value,
|
|
5106
|
+
sx: {
|
|
5107
|
+
height: 4,
|
|
5108
|
+
borderRadius: "20px",
|
|
5109
|
+
backgroundColor: deploymentSurfaceTokens.strokeOutside,
|
|
5110
|
+
"& .MuiLinearProgress-bar": {
|
|
5111
|
+
borderRadius: "20px",
|
|
5112
|
+
backgroundColor: deploymentSurfaceTokens.accentBlue
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
5116
|
+
)
|
|
5117
|
+
] });
|
|
5118
|
+
var CardActionList = ({ actions }) => /* @__PURE__ */ jsx42(Fragment9, { children: actions.map((action) => /* @__PURE__ */ jsxs19(
|
|
5119
|
+
Box12,
|
|
5120
|
+
{
|
|
5121
|
+
component: action.onClick ? "button" : "span",
|
|
5122
|
+
onClick: action.onClick,
|
|
5123
|
+
sx: {
|
|
5124
|
+
display: "inline-flex",
|
|
5125
|
+
alignItems: "center",
|
|
5126
|
+
gap: 0.5,
|
|
5127
|
+
cursor: action.onClick ? "pointer" : "default",
|
|
5128
|
+
background: "none",
|
|
5129
|
+
border: "none",
|
|
5130
|
+
p: 0,
|
|
5131
|
+
font: "inherit",
|
|
5132
|
+
color: deploymentSurfaceTokens.textPrimary,
|
|
5133
|
+
whiteSpace: "nowrap",
|
|
5134
|
+
"&:hover": action.onClick ? { opacity: 0.7 } : void 0
|
|
5135
|
+
},
|
|
5136
|
+
children: [
|
|
5137
|
+
action.icon && /* @__PURE__ */ jsx42(Box12, { component: "span", sx: { display: "flex", alignItems: "center" }, children: action.icon }),
|
|
5138
|
+
/* @__PURE__ */ jsx42(Typography10, { variant: "body2", fontWeight: 500, component: "span", sx: { fontSize: "14px" }, children: action.label })
|
|
5139
|
+
]
|
|
5140
|
+
},
|
|
5141
|
+
action.id
|
|
5142
|
+
)) });
|
|
5143
|
+
var DeploymentDashboardCard = ({
|
|
5144
|
+
entityType,
|
|
5145
|
+
title,
|
|
5146
|
+
id: idDisplay,
|
|
5147
|
+
createdAt,
|
|
5148
|
+
updatedAt,
|
|
5149
|
+
capacity,
|
|
5150
|
+
actions = [],
|
|
5151
|
+
statusIndicator = null,
|
|
5152
|
+
expandable = false,
|
|
5153
|
+
expanded: controlledExpanded,
|
|
5154
|
+
onExpandToggle,
|
|
5155
|
+
onCopyId,
|
|
5156
|
+
onContextMenu,
|
|
5157
|
+
className,
|
|
5158
|
+
children
|
|
5159
|
+
}) => {
|
|
5160
|
+
const theme2 = useTheme2();
|
|
5161
|
+
const entityColor = theme2.palette.deployment?.entity?.[entityType] ?? deploymentEntityColors[entityType];
|
|
5162
|
+
const { expanded, toggle } = useControlledExpand(
|
|
5163
|
+
expandable && onExpandToggle != null ? controlledExpanded : void 0,
|
|
5164
|
+
expandable && onExpandToggle != null ? onExpandToggle : void 0
|
|
5165
|
+
);
|
|
5166
|
+
const isWorkspace = entityType === "workspace";
|
|
5167
|
+
const isDeployment = entityType === "deployment";
|
|
5168
|
+
const isAgent = entityType === "agent";
|
|
5169
|
+
const capacityClamped = isDeployment && capacity != null ? Math.min(100, Math.max(0, capacity)) : void 0;
|
|
5170
|
+
return /* @__PURE__ */ jsxs19(
|
|
5171
|
+
Paper,
|
|
5172
|
+
{
|
|
5173
|
+
className,
|
|
5174
|
+
elevation: 0,
|
|
5175
|
+
sx: {
|
|
5176
|
+
border: `1px solid ${isWorkspace ? deploymentSurfaceTokens.accentBlue : deploymentSurfaceTokens.borderDefault}`,
|
|
5177
|
+
borderRadius: isWorkspace ? "4px" : "12px",
|
|
5178
|
+
boxShadow: isWorkspace ? deploymentSurfaceTokens.workspaceShadow : "none",
|
|
5179
|
+
px: 1,
|
|
5180
|
+
py: isDeployment ? 2 : 1,
|
|
5181
|
+
pl: isAgent && !expandable ? 2 : 1,
|
|
5182
|
+
display: "flex",
|
|
5183
|
+
flexDirection: "column",
|
|
5184
|
+
gap: 0
|
|
5185
|
+
},
|
|
5186
|
+
children: [
|
|
5187
|
+
/* @__PURE__ */ jsxs19(
|
|
5188
|
+
Box12,
|
|
5189
|
+
{
|
|
5190
|
+
sx: {
|
|
5191
|
+
display: "flex",
|
|
5192
|
+
justifyContent: "space-between",
|
|
5193
|
+
alignItems: isDeployment ? "flex-start" : "center",
|
|
5194
|
+
width: "100%"
|
|
5195
|
+
},
|
|
5196
|
+
children: [
|
|
5197
|
+
/* @__PURE__ */ jsxs19(Box12, { sx: { display: "flex", flexDirection: "column", gap: 0.5, minWidth: 0 }, children: [
|
|
5198
|
+
/* @__PURE__ */ jsxs19(Box12, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
5199
|
+
expandable && /* @__PURE__ */ jsx42(
|
|
5200
|
+
IconButton8,
|
|
5201
|
+
{
|
|
5202
|
+
size: "small",
|
|
5203
|
+
onClick: toggle,
|
|
5204
|
+
"aria-label": expanded ? "Collapse" : "Expand",
|
|
5205
|
+
sx: { p: "5px" },
|
|
5206
|
+
children: expanded ? /* @__PURE__ */ jsx42(ExpandMoreIcon, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } }) : /* @__PURE__ */ jsx42(ChevronRightIcon2, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } })
|
|
5207
|
+
}
|
|
5208
|
+
),
|
|
5209
|
+
/* @__PURE__ */ jsx42(EntityChip, { entityType, color: entityColor }),
|
|
5210
|
+
/* @__PURE__ */ jsx42(
|
|
5211
|
+
Typography10,
|
|
5212
|
+
{
|
|
5213
|
+
variant: "subtitle1",
|
|
5214
|
+
fontWeight: 500,
|
|
5215
|
+
noWrap: true,
|
|
5216
|
+
sx: { color: deploymentSurfaceTokens.textPrimary, fontSize: "16px", letterSpacing: "0.08px" },
|
|
5217
|
+
children: title
|
|
5218
|
+
}
|
|
5219
|
+
),
|
|
5220
|
+
idDisplay != null && /* @__PURE__ */ jsx42(IdBadge, { id: idDisplay, onCopy: onCopyId })
|
|
5221
|
+
] }),
|
|
5222
|
+
(createdAt != null || updatedAt != null) && /* @__PURE__ */ jsxs19(
|
|
5223
|
+
Box12,
|
|
5224
|
+
{
|
|
5225
|
+
sx: {
|
|
5226
|
+
display: "flex",
|
|
5227
|
+
gap: 2,
|
|
5228
|
+
px: expandable ? "36px" : 0,
|
|
5229
|
+
color: deploymentSurfaceTokens.textSecondary
|
|
5230
|
+
},
|
|
5231
|
+
children: [
|
|
5232
|
+
createdAt != null && /* @__PURE__ */ jsxs19(Typography10, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
5233
|
+
"Created: ",
|
|
5234
|
+
createdAt
|
|
5235
|
+
] }),
|
|
5236
|
+
updatedAt != null && /* @__PURE__ */ jsxs19(Typography10, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
5237
|
+
"Last Updated: ",
|
|
5238
|
+
updatedAt
|
|
5239
|
+
] })
|
|
5240
|
+
]
|
|
5241
|
+
}
|
|
5242
|
+
),
|
|
5243
|
+
capacityClamped !== void 0 && /* @__PURE__ */ jsx42(CapacityBar, { value: capacityClamped, indented: expandable })
|
|
5244
|
+
] }),
|
|
5245
|
+
/* @__PURE__ */ jsxs19(Box12, { sx: { display: "flex", gap: 1, alignItems: "center", flexShrink: 0 }, children: [
|
|
5246
|
+
statusIndicator != null && /* @__PURE__ */ jsx42(StatusDot, { status: statusIndicator, "aria-hidden": true }),
|
|
5247
|
+
/* @__PURE__ */ jsx42(CardActionList, { actions }),
|
|
5248
|
+
onContextMenu && /* @__PURE__ */ jsx42(
|
|
5249
|
+
IconButton8,
|
|
5250
|
+
{
|
|
5251
|
+
size: "small",
|
|
5252
|
+
onClick: onContextMenu,
|
|
5253
|
+
"aria-label": "Open menu",
|
|
5254
|
+
sx: {
|
|
5255
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5256
|
+
borderRadius: "8px",
|
|
5257
|
+
p: 1,
|
|
5258
|
+
bgcolor: "white"
|
|
5259
|
+
},
|
|
5260
|
+
children: /* @__PURE__ */ jsx42(MoreHorizIcon, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.textPrimary } })
|
|
5261
|
+
}
|
|
5262
|
+
)
|
|
5263
|
+
] })
|
|
5264
|
+
]
|
|
5265
|
+
}
|
|
5266
|
+
),
|
|
5267
|
+
children && /* @__PURE__ */ jsx42(Box12, { sx: { mt: 1.5, display: "flex", flexDirection: "column", gap: 1 }, children })
|
|
5268
|
+
]
|
|
5269
|
+
}
|
|
5270
|
+
);
|
|
5271
|
+
};
|
|
5272
|
+
|
|
5273
|
+
// src/components/layout/DeploymentEntityContextMenu/DeploymentEntityContextMenu.tsx
|
|
5274
|
+
import { Menu as Menu5, Switch as Switch2 } from "@mui/material";
|
|
5275
|
+
import { styled as styled29 } from "@mui/material/styles";
|
|
5276
|
+
import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5277
|
+
var StyledMenu2 = styled29(Menu5)({
|
|
5278
|
+
"& .MuiPaper-root": {
|
|
5279
|
+
borderRadius: 10,
|
|
5280
|
+
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.15)",
|
|
5281
|
+
minWidth: 220,
|
|
5282
|
+
border: "1px solid",
|
|
5283
|
+
borderColor: "grey.200"
|
|
5284
|
+
}
|
|
5285
|
+
});
|
|
5286
|
+
var MenuListWrapper = styled29("div")({
|
|
5287
|
+
"& .MuiList-root": {
|
|
5288
|
+
padding: 8
|
|
5289
|
+
},
|
|
5290
|
+
"& .MuiListItem-root": {
|
|
5291
|
+
borderRadius: 8,
|
|
5292
|
+
marginBottom: 4,
|
|
5293
|
+
"&:hover": {
|
|
5294
|
+
backgroundColor: deploymentSurfaceTokens.hoverLight
|
|
5295
|
+
}
|
|
5296
|
+
}
|
|
5297
|
+
});
|
|
5298
|
+
var DeploymentEntityContextMenu = ({
|
|
5299
|
+
open,
|
|
5300
|
+
anchorEl,
|
|
5301
|
+
onClose,
|
|
5302
|
+
items,
|
|
5303
|
+
enableToggle = false,
|
|
5304
|
+
enableChecked = false,
|
|
5305
|
+
onEnableChange
|
|
5306
|
+
}) => {
|
|
5307
|
+
return /* @__PURE__ */ jsx43(
|
|
5308
|
+
StyledMenu2,
|
|
5309
|
+
{
|
|
5310
|
+
anchorEl,
|
|
5311
|
+
open,
|
|
5312
|
+
onClose,
|
|
5313
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
5314
|
+
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
5315
|
+
slotProps: { paper: { "aria-label": "Entity context menu" } },
|
|
5316
|
+
children: /* @__PURE__ */ jsx43(MenuListWrapper, { children: /* @__PURE__ */ jsxs20(List6, { disablePadding: true, children: [
|
|
5317
|
+
items.map(
|
|
5318
|
+
(item) => item.type === "toggle" ? /* @__PURE__ */ jsx43(
|
|
5319
|
+
ListItem4,
|
|
5320
|
+
{
|
|
5321
|
+
primary: item.label,
|
|
5322
|
+
icon: item.icon,
|
|
5323
|
+
action: onEnableChange ? /* @__PURE__ */ jsx43(
|
|
5324
|
+
Switch2,
|
|
5325
|
+
{
|
|
5326
|
+
size: "small",
|
|
5327
|
+
checked: enableChecked,
|
|
5328
|
+
onChange: (_, checked) => onEnableChange(checked),
|
|
5329
|
+
color: "success"
|
|
5330
|
+
}
|
|
5331
|
+
) : void 0,
|
|
5332
|
+
hoverable: true,
|
|
5333
|
+
sx: { cursor: "default" }
|
|
5334
|
+
},
|
|
5335
|
+
item.id
|
|
5336
|
+
) : /* @__PURE__ */ jsx43(
|
|
5337
|
+
ListItem4,
|
|
5338
|
+
{
|
|
5339
|
+
primary: item.label,
|
|
5340
|
+
icon: item.icon,
|
|
5341
|
+
onClick: () => {
|
|
5342
|
+
item.onClick?.();
|
|
5343
|
+
onClose();
|
|
5344
|
+
},
|
|
5345
|
+
hoverable: true
|
|
5346
|
+
},
|
|
5347
|
+
item.id
|
|
5348
|
+
)
|
|
5349
|
+
),
|
|
5350
|
+
enableToggle && /* @__PURE__ */ jsx43(
|
|
5351
|
+
ListItem4,
|
|
5352
|
+
{
|
|
5353
|
+
primary: "Enable",
|
|
5354
|
+
action: onEnableChange ? /* @__PURE__ */ jsx43(
|
|
5355
|
+
Switch2,
|
|
5356
|
+
{
|
|
5357
|
+
size: "small",
|
|
5358
|
+
checked: enableChecked,
|
|
5359
|
+
onChange: (_, checked) => onEnableChange(checked),
|
|
5360
|
+
color: "success"
|
|
5361
|
+
}
|
|
5362
|
+
) : void 0,
|
|
5363
|
+
hoverable: true,
|
|
5364
|
+
sx: { cursor: "default" }
|
|
5365
|
+
}
|
|
5366
|
+
)
|
|
5367
|
+
] }) })
|
|
5368
|
+
}
|
|
5369
|
+
);
|
|
5370
|
+
};
|
|
5371
|
+
|
|
5372
|
+
// src/components/layout/DeploymentEntityContextMenu/contextMenuItems.tsx
|
|
5373
|
+
import AddCircleOutlineIcon from "@mui/icons-material/AddCircleOutline";
|
|
5374
|
+
import EditIcon from "@mui/icons-material/Edit";
|
|
5375
|
+
import ContentCopyIcon2 from "@mui/icons-material/ContentCopy";
|
|
5376
|
+
import AccountTreeIcon from "@mui/icons-material/AccountTree";
|
|
5377
|
+
import DescriptionIcon from "@mui/icons-material/Description";
|
|
5378
|
+
import SettingsIcon2 from "@mui/icons-material/Settings";
|
|
5379
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
5380
|
+
var contextMenuItems = {
|
|
5381
|
+
addEngagement: (onClick) => ({
|
|
5382
|
+
id: "add-engagement",
|
|
5383
|
+
label: "Add Engagement",
|
|
5384
|
+
icon: /* @__PURE__ */ jsx44(AddCircleOutlineIcon, { fontSize: "small" }),
|
|
5385
|
+
onClick
|
|
5386
|
+
}),
|
|
5387
|
+
addAgent: (onClick) => ({
|
|
5388
|
+
id: "add-agent",
|
|
5389
|
+
label: "Add Agent",
|
|
5390
|
+
icon: /* @__PURE__ */ jsx44(AddCircleOutlineIcon, { fontSize: "small" }),
|
|
5391
|
+
onClick
|
|
5392
|
+
}),
|
|
5393
|
+
addStream: (onClick) => ({
|
|
5394
|
+
id: "add-stream",
|
|
5395
|
+
label: "Add Stream",
|
|
5396
|
+
icon: /* @__PURE__ */ jsx44(AddCircleOutlineIcon, { fontSize: "small" }),
|
|
5397
|
+
onClick
|
|
5398
|
+
}),
|
|
5399
|
+
edit: (onClick) => ({
|
|
5400
|
+
id: "edit",
|
|
5401
|
+
label: "Edit",
|
|
5402
|
+
icon: /* @__PURE__ */ jsx44(EditIcon, { fontSize: "small" }),
|
|
5403
|
+
onClick
|
|
5404
|
+
}),
|
|
5405
|
+
copyId: (onClick) => ({
|
|
5406
|
+
id: "copy-id",
|
|
5407
|
+
label: "Copy ID",
|
|
5408
|
+
icon: /* @__PURE__ */ jsx44(ContentCopyIcon2, { fontSize: "small" }),
|
|
5409
|
+
onClick
|
|
5410
|
+
}),
|
|
5411
|
+
agentFlowVisualization: (onClick) => ({
|
|
5412
|
+
id: "agent-flow",
|
|
5413
|
+
label: "Agent Flow Visualization",
|
|
5414
|
+
icon: /* @__PURE__ */ jsx44(AccountTreeIcon, { fontSize: "small" }),
|
|
5415
|
+
onClick
|
|
5416
|
+
}),
|
|
5417
|
+
viewLogs: (onClick) => ({
|
|
5418
|
+
id: "view-logs",
|
|
5419
|
+
label: "View Logs",
|
|
5420
|
+
icon: /* @__PURE__ */ jsx44(DescriptionIcon, { fontSize: "small" }),
|
|
5421
|
+
onClick
|
|
5422
|
+
}),
|
|
5423
|
+
settings: (onClick) => ({
|
|
5424
|
+
id: "settings",
|
|
5425
|
+
label: "Settings",
|
|
5426
|
+
icon: /* @__PURE__ */ jsx44(SettingsIcon2, { fontSize: "small" }),
|
|
5427
|
+
onClick
|
|
5428
|
+
})
|
|
5429
|
+
};
|
|
5430
|
+
|
|
5431
|
+
// src/components/layout/DeploymentDashboardTree/DeploymentDashboardTree.tsx
|
|
5432
|
+
import { Box as Box13 } from "@mui/material";
|
|
5433
|
+
import { styled as styled30, alpha } from "@mui/material/styles";
|
|
5434
|
+
import { jsx as jsx45, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5435
|
+
var TREE_SP = {
|
|
5436
|
+
/** Vertical gap between sibling rows (Figma S / sp-8) */
|
|
5437
|
+
rowGap: 8,
|
|
5438
|
+
/** Gap between rail and children column (Figma sp-12) */
|
|
5439
|
+
railGap: 12,
|
|
5440
|
+
/** Rail width (Figma) */
|
|
5441
|
+
railWidth: 4,
|
|
5442
|
+
/** Total horizontal indent per level = railWidth + railGap (Figma M = 16) */
|
|
5443
|
+
indentPerLevel: 4 + 12
|
|
5444
|
+
};
|
|
5445
|
+
var RAIL_OPACITY = {
|
|
5446
|
+
workspace: 0.5,
|
|
5447
|
+
stream: 0.5,
|
|
5448
|
+
deployment: 0.4,
|
|
5449
|
+
engagement: 0.4,
|
|
5450
|
+
agent: 0.4
|
|
5451
|
+
};
|
|
5452
|
+
var Rail = styled30(Box13, {
|
|
5453
|
+
shouldForwardProp: (p) => p !== "railColor"
|
|
5454
|
+
})(({ railColor }) => ({
|
|
5455
|
+
width: TREE_SP.railWidth,
|
|
5456
|
+
borderRadius: TREE_SP.railWidth / 2,
|
|
5457
|
+
backgroundColor: railColor,
|
|
5458
|
+
flexShrink: 0,
|
|
5459
|
+
alignSelf: "stretch"
|
|
5460
|
+
}));
|
|
5461
|
+
var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCard }) => {
|
|
5462
|
+
const hasChildren = Boolean(node.children && node.children.length > 0);
|
|
5463
|
+
const { expanded, toggle } = useControlledExpand(
|
|
5464
|
+
onExpandToggle != null ? node.expanded : void 0,
|
|
5465
|
+
onExpandToggle ? () => onExpandToggle(node.id) : void 0,
|
|
5466
|
+
node.expanded ?? false
|
|
5467
|
+
);
|
|
5468
|
+
const entityColor = deploymentEntityColors[node.entityType] ?? deploymentEntityColors.workspace;
|
|
5469
|
+
const railOpacity = RAIL_OPACITY[node.entityType] ?? 0.5;
|
|
5470
|
+
const railColor = alpha(entityColor, railOpacity);
|
|
5471
|
+
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */ jsxs21(Box13, { sx: { display: "flex", gap: `${TREE_SP.railGap}px` }, children: [
|
|
5472
|
+
/* @__PURE__ */ jsx45(Rail, { railColor, "aria-hidden": true, "data-rail": true }),
|
|
5473
|
+
/* @__PURE__ */ jsx45(
|
|
5474
|
+
Box13,
|
|
5475
|
+
{
|
|
5476
|
+
role: "group",
|
|
5477
|
+
sx: {
|
|
5478
|
+
flex: 1,
|
|
5479
|
+
minWidth: 0,
|
|
5480
|
+
display: "flex",
|
|
5481
|
+
flexDirection: "column",
|
|
5482
|
+
gap: `${TREE_SP.rowGap}px`
|
|
5483
|
+
},
|
|
5484
|
+
children: node.children.map((child) => /* @__PURE__ */ jsx45(
|
|
5485
|
+
TreeRow,
|
|
5486
|
+
{
|
|
5487
|
+
node: child,
|
|
5488
|
+
depth: depth + 1,
|
|
5489
|
+
onExpandToggle,
|
|
5490
|
+
onCopyId,
|
|
5491
|
+
onContextMenu,
|
|
5492
|
+
renderCard
|
|
5493
|
+
},
|
|
5494
|
+
child.id
|
|
5495
|
+
))
|
|
5496
|
+
}
|
|
5497
|
+
)
|
|
5498
|
+
] }) : null;
|
|
5499
|
+
const cardContent = renderCard?.(node) ?? /* @__PURE__ */ jsx45(
|
|
5500
|
+
DeploymentDashboardCard,
|
|
5501
|
+
{
|
|
5502
|
+
entityType: node.entityType,
|
|
5503
|
+
title: node.title,
|
|
5504
|
+
id: node.idDisplay,
|
|
5505
|
+
createdAt: node.createdAt,
|
|
5506
|
+
updatedAt: node.updatedAt,
|
|
5507
|
+
capacity: node.capacity,
|
|
5508
|
+
actions: node.actions,
|
|
5509
|
+
statusIndicator: node.statusIndicator,
|
|
5510
|
+
expandable: hasChildren,
|
|
5511
|
+
expanded,
|
|
5512
|
+
onExpandToggle: hasChildren ? toggle : void 0,
|
|
5513
|
+
onCopyId: onCopyId && node.idDisplay ? () => onCopyId(node.id) : void 0,
|
|
5514
|
+
onContextMenu: onContextMenu ? (e) => onContextMenu(node.id, e) : void 0,
|
|
5515
|
+
children: renderedChildren
|
|
5516
|
+
}
|
|
5517
|
+
);
|
|
5518
|
+
return /* @__PURE__ */ jsx45(Box13, { role: "treeitem", children: cardContent });
|
|
5519
|
+
};
|
|
5520
|
+
var DeploymentDashboardTree = ({
|
|
5521
|
+
nodes,
|
|
5522
|
+
onExpandToggle,
|
|
5523
|
+
onCopyId,
|
|
5524
|
+
onContextMenu,
|
|
5525
|
+
renderCard
|
|
5526
|
+
}) => {
|
|
5527
|
+
return /* @__PURE__ */ jsx45(
|
|
5528
|
+
Box13,
|
|
5529
|
+
{
|
|
5530
|
+
role: "tree",
|
|
5531
|
+
sx: {
|
|
5532
|
+
display: "flex",
|
|
5533
|
+
flexDirection: "column",
|
|
5534
|
+
gap: `${TREE_SP.rowGap}px`,
|
|
5535
|
+
p: `${TREE_SP.rowGap}px`
|
|
5536
|
+
},
|
|
5537
|
+
children: nodes.map((node) => /* @__PURE__ */ jsx45(
|
|
5538
|
+
TreeRow,
|
|
5539
|
+
{
|
|
5540
|
+
node,
|
|
5541
|
+
depth: 0,
|
|
5542
|
+
onExpandToggle,
|
|
5543
|
+
onCopyId,
|
|
5544
|
+
onContextMenu,
|
|
5545
|
+
renderCard
|
|
5546
|
+
},
|
|
5547
|
+
node.id
|
|
5548
|
+
))
|
|
5549
|
+
}
|
|
5550
|
+
);
|
|
5551
|
+
};
|
|
5552
|
+
|
|
5553
|
+
// src/components/layout/DeploymentDashboardPanel/DeploymentDashboardPanel.tsx
|
|
5554
|
+
import { Box as Box14 } from "@mui/material";
|
|
5555
|
+
import { styled as styled31 } from "@mui/material/styles";
|
|
5556
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
5557
|
+
var PANEL_RADIUS = 12;
|
|
5558
|
+
var PANEL_SHADOW = "0px 1px 3px rgba(0, 0, 0, 0.08)";
|
|
5559
|
+
var StyledPanel = styled31(Box14)({
|
|
5560
|
+
backgroundColor: deploymentSurfaceTokens.surfaceHigh,
|
|
5561
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5562
|
+
borderRadius: PANEL_RADIUS,
|
|
5563
|
+
boxShadow: PANEL_SHADOW,
|
|
5564
|
+
overflow: "hidden"
|
|
5565
|
+
});
|
|
5566
|
+
var DeploymentDashboardPanel = ({
|
|
5567
|
+
children,
|
|
5568
|
+
className,
|
|
5569
|
+
padding = 2
|
|
5570
|
+
}) => {
|
|
5571
|
+
return /* @__PURE__ */ jsx46(StyledPanel, { className, sx: { p: padding }, children });
|
|
5572
|
+
};
|
|
5573
|
+
|
|
4891
5574
|
// src/components/layout/Avatar.tsx
|
|
4892
5575
|
import MuiAvatar from "@mui/material/Avatar";
|
|
4893
|
-
import { styled as
|
|
4894
|
-
import { jsx as
|
|
5576
|
+
import { styled as styled32 } from "@mui/material/styles";
|
|
5577
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4895
5578
|
var sizeMap = {
|
|
4896
5579
|
small: 32,
|
|
4897
5580
|
medium: 40,
|
|
4898
5581
|
large: 56
|
|
4899
5582
|
};
|
|
4900
|
-
var StyledAvatar =
|
|
5583
|
+
var StyledAvatar = styled32(MuiAvatar, {
|
|
4901
5584
|
shouldForwardProp: (prop) => prop !== "avatarSize"
|
|
4902
5585
|
})(({ avatarSize = 40 }) => ({
|
|
4903
5586
|
width: avatarSize,
|
|
@@ -4908,7 +5591,7 @@ var StyledAvatar = styled28(MuiAvatar, {
|
|
|
4908
5591
|
}));
|
|
4909
5592
|
var Avatar5 = ({ size: size3 = "medium", ...props }) => {
|
|
4910
5593
|
const avatarSize = typeof size3 === "number" ? size3 : sizeMap[size3];
|
|
4911
|
-
return /* @__PURE__ */
|
|
5594
|
+
return /* @__PURE__ */ jsx47(StyledAvatar, { avatarSize, ...props });
|
|
4912
5595
|
};
|
|
4913
5596
|
|
|
4914
5597
|
// src/components/layout/Table.tsx
|
|
@@ -4921,13 +5604,13 @@ import {
|
|
|
4921
5604
|
TableRow,
|
|
4922
5605
|
TableSortLabel
|
|
4923
5606
|
} from "@mui/material";
|
|
4924
|
-
import { styled as
|
|
4925
|
-
import { jsx as
|
|
4926
|
-
var StyledTableContainer =
|
|
5607
|
+
import { styled as styled33 } from "@mui/material/styles";
|
|
5608
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
5609
|
+
var StyledTableContainer = styled33(TableContainer)({
|
|
4927
5610
|
borderRadius: 8,
|
|
4928
5611
|
border: `1px solid ${colors.grey[200]}`
|
|
4929
5612
|
});
|
|
4930
|
-
var StyledTableHead =
|
|
5613
|
+
var StyledTableHead = styled33(TableHead)({
|
|
4931
5614
|
backgroundColor: colors.grey[50],
|
|
4932
5615
|
"& .MuiTableCell-head": {
|
|
4933
5616
|
fontWeight: 600,
|
|
@@ -4935,7 +5618,7 @@ var StyledTableHead = styled29(TableHead)({
|
|
|
4935
5618
|
}
|
|
4936
5619
|
});
|
|
4937
5620
|
var Table = ({ stickyHeader = false, children, ...props }) => {
|
|
4938
|
-
return /* @__PURE__ */
|
|
5621
|
+
return /* @__PURE__ */ jsx48(StyledTableContainer, { children: /* @__PURE__ */ jsx48(MuiTable, { stickyHeader, ...props, children }) });
|
|
4939
5622
|
};
|
|
4940
5623
|
var TableHeader = ({
|
|
4941
5624
|
columns,
|
|
@@ -4943,7 +5626,7 @@ var TableHeader = ({
|
|
|
4943
5626
|
order = "asc",
|
|
4944
5627
|
onSort
|
|
4945
5628
|
}) => {
|
|
4946
|
-
return /* @__PURE__ */
|
|
5629
|
+
return /* @__PURE__ */ jsx48(StyledTableHead, { children: /* @__PURE__ */ jsx48(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx48(TableCell, { align: column.align || "left", children: column.sortable && onSort ? /* @__PURE__ */ jsx48(
|
|
4947
5630
|
TableSortLabel,
|
|
4948
5631
|
{
|
|
4949
5632
|
active: orderBy === column.id,
|
|
@@ -4960,10 +5643,10 @@ import { Grid2 } from "@mui/material";
|
|
|
4960
5643
|
// src/components/layout/Breadcrumbs.tsx
|
|
4961
5644
|
import MuiBreadcrumbs from "@mui/material/Breadcrumbs";
|
|
4962
5645
|
import Link4 from "@mui/material/Link";
|
|
4963
|
-
import
|
|
4964
|
-
import { styled as
|
|
4965
|
-
import { jsx as
|
|
4966
|
-
var StyledBreadcrumbs =
|
|
5646
|
+
import Typography11 from "@mui/material/Typography";
|
|
5647
|
+
import { styled as styled34 } from "@mui/material/styles";
|
|
5648
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5649
|
+
var StyledBreadcrumbs = styled34(MuiBreadcrumbs)({
|
|
4967
5650
|
"& .MuiBreadcrumbs-ol": {
|
|
4968
5651
|
flexWrap: "nowrap"
|
|
4969
5652
|
},
|
|
@@ -4971,7 +5654,7 @@ var StyledBreadcrumbs = styled30(MuiBreadcrumbs)({
|
|
|
4971
5654
|
color: colors.text.secondary
|
|
4972
5655
|
}
|
|
4973
5656
|
});
|
|
4974
|
-
var StyledLink2 =
|
|
5657
|
+
var StyledLink2 = styled34(Link4)({
|
|
4975
5658
|
color: colors.primary.main,
|
|
4976
5659
|
textDecoration: "none",
|
|
4977
5660
|
"&:hover": {
|
|
@@ -4979,12 +5662,12 @@ var StyledLink2 = styled30(Link4)({
|
|
|
4979
5662
|
}
|
|
4980
5663
|
});
|
|
4981
5664
|
var Breadcrumbs = ({ items, ...props }) => {
|
|
4982
|
-
return /* @__PURE__ */
|
|
5665
|
+
return /* @__PURE__ */ jsx49(StyledBreadcrumbs, { ...props, children: items.map((item, index) => {
|
|
4983
5666
|
const isLast = index === items.length - 1;
|
|
4984
5667
|
if (isLast || !item.href && !item.onClick) {
|
|
4985
|
-
return /* @__PURE__ */
|
|
5668
|
+
return /* @__PURE__ */ jsx49(Typography11, { color: "text.primary", children: item.label }, index);
|
|
4986
5669
|
}
|
|
4987
|
-
return /* @__PURE__ */
|
|
5670
|
+
return /* @__PURE__ */ jsx49(
|
|
4988
5671
|
StyledLink2,
|
|
4989
5672
|
{
|
|
4990
5673
|
href: item.href,
|
|
@@ -5007,10 +5690,10 @@ import {
|
|
|
5007
5690
|
AccordionSummary,
|
|
5008
5691
|
AccordionDetails
|
|
5009
5692
|
} from "@mui/material";
|
|
5010
|
-
import
|
|
5011
|
-
import { styled as
|
|
5012
|
-
import { jsx as
|
|
5013
|
-
var StyledAccordion =
|
|
5693
|
+
import ExpandMoreIcon2 from "@mui/icons-material/ExpandMore";
|
|
5694
|
+
import { styled as styled35 } from "@mui/material/styles";
|
|
5695
|
+
import { jsx as jsx50, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5696
|
+
var StyledAccordion = styled35(MuiAccordion)({
|
|
5014
5697
|
borderRadius: 8,
|
|
5015
5698
|
boxShadow: "none",
|
|
5016
5699
|
border: `1px solid ${colors.grey[200]}`,
|
|
@@ -5021,7 +5704,7 @@ var StyledAccordion = styled31(MuiAccordion)({
|
|
|
5021
5704
|
margin: 0
|
|
5022
5705
|
}
|
|
5023
5706
|
});
|
|
5024
|
-
var StyledAccordionSummary =
|
|
5707
|
+
var StyledAccordionSummary = styled35(AccordionSummary)({
|
|
5025
5708
|
backgroundColor: colors.grey[50],
|
|
5026
5709
|
borderRadius: "8px 8px 0 0",
|
|
5027
5710
|
"&.Mui-expanded": {
|
|
@@ -5031,7 +5714,7 @@ var StyledAccordionSummary = styled31(AccordionSummary)({
|
|
|
5031
5714
|
margin: "12px 0"
|
|
5032
5715
|
}
|
|
5033
5716
|
});
|
|
5034
|
-
var StyledAccordionDetails =
|
|
5717
|
+
var StyledAccordionDetails = styled35(AccordionDetails)({
|
|
5035
5718
|
padding: "16px"
|
|
5036
5719
|
});
|
|
5037
5720
|
var Accordion = ({
|
|
@@ -5040,17 +5723,17 @@ var Accordion = ({
|
|
|
5040
5723
|
defaultExpanded = false,
|
|
5041
5724
|
...props
|
|
5042
5725
|
}) => {
|
|
5043
|
-
return /* @__PURE__ */
|
|
5044
|
-
/* @__PURE__ */
|
|
5045
|
-
/* @__PURE__ */
|
|
5726
|
+
return /* @__PURE__ */ jsxs22(StyledAccordion, { defaultExpanded, ...props, children: [
|
|
5727
|
+
/* @__PURE__ */ jsx50(StyledAccordionSummary, { expandIcon: /* @__PURE__ */ jsx50(ExpandMoreIcon2, {}), children: title }),
|
|
5728
|
+
/* @__PURE__ */ jsx50(StyledAccordionDetails, { children })
|
|
5046
5729
|
] });
|
|
5047
5730
|
};
|
|
5048
5731
|
|
|
5049
5732
|
// src/components/layout/Paper.tsx
|
|
5050
5733
|
import MuiPaper from "@mui/material/Paper";
|
|
5051
|
-
import { styled as
|
|
5052
|
-
import { jsx as
|
|
5053
|
-
var StyledPaper =
|
|
5734
|
+
import { styled as styled36 } from "@mui/material/styles";
|
|
5735
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
5736
|
+
var StyledPaper = styled36(MuiPaper)({
|
|
5054
5737
|
borderRadius: 8,
|
|
5055
5738
|
"&.MuiPaper-elevation": {
|
|
5056
5739
|
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.08)"
|
|
@@ -5060,29 +5743,29 @@ var StyledPaper = styled32(MuiPaper)({
|
|
|
5060
5743
|
boxShadow: "none"
|
|
5061
5744
|
}
|
|
5062
5745
|
});
|
|
5063
|
-
var
|
|
5064
|
-
return /* @__PURE__ */
|
|
5746
|
+
var Paper2 = ({ variant = "elevation", ...props }) => {
|
|
5747
|
+
return /* @__PURE__ */ jsx51(StyledPaper, { variant, elevation: variant === "elevation" ? 1 : 0, ...props });
|
|
5065
5748
|
};
|
|
5066
5749
|
|
|
5067
5750
|
// src/components/layout/Divider.tsx
|
|
5068
5751
|
import MuiDivider from "@mui/material/Divider";
|
|
5069
|
-
import { styled as
|
|
5070
|
-
import { jsx as
|
|
5071
|
-
var StyledDivider =
|
|
5752
|
+
import { styled as styled37 } from "@mui/material/styles";
|
|
5753
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
5754
|
+
var StyledDivider = styled37(MuiDivider)({
|
|
5072
5755
|
borderColor: colors.grey[200]
|
|
5073
5756
|
});
|
|
5074
5757
|
var Divider4 = ({ ...props }) => {
|
|
5075
|
-
return /* @__PURE__ */
|
|
5758
|
+
return /* @__PURE__ */ jsx52(StyledDivider, { ...props });
|
|
5076
5759
|
};
|
|
5077
5760
|
|
|
5078
5761
|
// src/components/layout/Stack.tsx
|
|
5079
5762
|
import { Stack as Stack3 } from "@mui/material";
|
|
5080
5763
|
|
|
5081
5764
|
// src/components/layout/Box.tsx
|
|
5082
|
-
import { Box as
|
|
5765
|
+
import { Box as Box15 } from "@mui/material";
|
|
5083
5766
|
|
|
5084
5767
|
// src/components/layout/Typography.tsx
|
|
5085
|
-
import { Typography as
|
|
5768
|
+
import { Typography as Typography12 } from "@mui/material";
|
|
5086
5769
|
|
|
5087
5770
|
// src/components/layout/Container.tsx
|
|
5088
5771
|
import { Container as Container2 } from "@mui/material";
|
|
@@ -5092,9 +5775,9 @@ import {
|
|
|
5092
5775
|
AppBar as MuiAppBar,
|
|
5093
5776
|
Toolbar
|
|
5094
5777
|
} from "@mui/material";
|
|
5095
|
-
import { styled as
|
|
5096
|
-
import { jsx as
|
|
5097
|
-
var StyledAppBar =
|
|
5778
|
+
import { styled as styled38 } from "@mui/material/styles";
|
|
5779
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
5780
|
+
var StyledAppBar = styled38(MuiAppBar, {
|
|
5098
5781
|
shouldForwardProp: (prop) => prop !== "appBarHeight"
|
|
5099
5782
|
})(({ appBarHeight = 64 }) => ({
|
|
5100
5783
|
backgroundColor: colors.background.paper,
|
|
@@ -5103,23 +5786,23 @@ var StyledAppBar = styled34(MuiAppBar, {
|
|
|
5103
5786
|
height: appBarHeight,
|
|
5104
5787
|
zIndex: 1300
|
|
5105
5788
|
}));
|
|
5106
|
-
var StyledToolbar =
|
|
5789
|
+
var StyledToolbar = styled38(Toolbar)(({ theme: theme2 }) => ({
|
|
5107
5790
|
height: "100%",
|
|
5108
5791
|
paddingLeft: theme2.spacing(2),
|
|
5109
5792
|
paddingRight: theme2.spacing(2),
|
|
5110
5793
|
gap: theme2.spacing(2)
|
|
5111
5794
|
}));
|
|
5112
5795
|
var AppBar = ({ height = 64, children, ...props }) => {
|
|
5113
|
-
return /* @__PURE__ */
|
|
5796
|
+
return /* @__PURE__ */ jsx53(StyledAppBar, { position: "fixed", appBarHeight: height, ...props, children: /* @__PURE__ */ jsx53(StyledToolbar, { children }) });
|
|
5114
5797
|
};
|
|
5115
5798
|
|
|
5116
5799
|
// src/components/layout/Collapse.tsx
|
|
5117
5800
|
import {
|
|
5118
5801
|
Collapse as MuiCollapse
|
|
5119
5802
|
} from "@mui/material";
|
|
5120
|
-
import { jsx as
|
|
5803
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
5121
5804
|
var Collapse = (props) => {
|
|
5122
|
-
return /* @__PURE__ */
|
|
5805
|
+
return /* @__PURE__ */ jsx54(MuiCollapse, { ...props });
|
|
5123
5806
|
};
|
|
5124
5807
|
|
|
5125
5808
|
// src/components/feedback/Alert.tsx
|
|
@@ -5127,9 +5810,9 @@ import React10 from "react";
|
|
|
5127
5810
|
import MuiAlert from "@mui/material/Alert";
|
|
5128
5811
|
import { AlertTitle as MuiAlertTitle } from "@mui/material";
|
|
5129
5812
|
import MuiSnackbar from "@mui/material/Snackbar";
|
|
5130
|
-
import { styled as
|
|
5131
|
-
import { jsx as
|
|
5132
|
-
var StyledAlert =
|
|
5813
|
+
import { styled as styled39 } from "@mui/material/styles";
|
|
5814
|
+
import { jsx as jsx55, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5815
|
+
var StyledAlert = styled39(MuiAlert)({
|
|
5133
5816
|
borderRadius: 8,
|
|
5134
5817
|
"&.MuiAlert-filled": {
|
|
5135
5818
|
borderRadius: 8
|
|
@@ -5141,12 +5824,12 @@ var Alert2 = ({
|
|
|
5141
5824
|
children,
|
|
5142
5825
|
...props
|
|
5143
5826
|
}) => {
|
|
5144
|
-
return /* @__PURE__ */
|
|
5145
|
-
title && /* @__PURE__ */
|
|
5827
|
+
return /* @__PURE__ */ jsxs23(StyledAlert, { severity, ...props, children: [
|
|
5828
|
+
title && /* @__PURE__ */ jsx55(MuiAlertTitle, { children: title }),
|
|
5146
5829
|
children
|
|
5147
5830
|
] });
|
|
5148
5831
|
};
|
|
5149
|
-
var StyledSnackbar =
|
|
5832
|
+
var StyledSnackbar = styled39(MuiSnackbar)({});
|
|
5150
5833
|
var Snackbar2 = ({
|
|
5151
5834
|
message,
|
|
5152
5835
|
severity = "info",
|
|
@@ -5164,7 +5847,7 @@ var Snackbar2 = ({
|
|
|
5164
5847
|
}
|
|
5165
5848
|
onClose?.();
|
|
5166
5849
|
};
|
|
5167
|
-
const content = children || (message ? /* @__PURE__ */
|
|
5850
|
+
const content = children || (message ? /* @__PURE__ */ jsx55(
|
|
5168
5851
|
Alert2,
|
|
5169
5852
|
{
|
|
5170
5853
|
onClose: onClose ? handleClose : void 0,
|
|
@@ -5190,7 +5873,7 @@ var Snackbar2 = ({
|
|
|
5190
5873
|
}
|
|
5191
5874
|
);
|
|
5192
5875
|
NoTransition.displayName = "NoTransition";
|
|
5193
|
-
return /* @__PURE__ */
|
|
5876
|
+
return /* @__PURE__ */ jsx55(
|
|
5194
5877
|
StyledSnackbar,
|
|
5195
5878
|
{
|
|
5196
5879
|
anchorOrigin,
|
|
@@ -5210,16 +5893,16 @@ var Snackbar2 = ({
|
|
|
5210
5893
|
};
|
|
5211
5894
|
|
|
5212
5895
|
// src/components/feedback/EmptyState.tsx
|
|
5213
|
-
import { Box as
|
|
5214
|
-
import { jsx as
|
|
5896
|
+
import { Box as Box16, Typography as Typography13 } from "@mui/material";
|
|
5897
|
+
import { jsx as jsx56, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5215
5898
|
var EmptyState = ({
|
|
5216
5899
|
title = "No items found",
|
|
5217
5900
|
description,
|
|
5218
5901
|
icon,
|
|
5219
5902
|
action
|
|
5220
5903
|
}) => {
|
|
5221
|
-
return /* @__PURE__ */
|
|
5222
|
-
|
|
5904
|
+
return /* @__PURE__ */ jsxs24(
|
|
5905
|
+
Box16,
|
|
5223
5906
|
{
|
|
5224
5907
|
sx: {
|
|
5225
5908
|
display: "flex",
|
|
@@ -5231,8 +5914,8 @@ var EmptyState = ({
|
|
|
5231
5914
|
minHeight: 200
|
|
5232
5915
|
},
|
|
5233
5916
|
children: [
|
|
5234
|
-
icon && /* @__PURE__ */
|
|
5235
|
-
|
|
5917
|
+
icon && /* @__PURE__ */ jsx56(
|
|
5918
|
+
Box16,
|
|
5236
5919
|
{
|
|
5237
5920
|
sx: {
|
|
5238
5921
|
color: colors.text.secondary,
|
|
@@ -5242,24 +5925,24 @@ var EmptyState = ({
|
|
|
5242
5925
|
children: icon
|
|
5243
5926
|
}
|
|
5244
5927
|
),
|
|
5245
|
-
/* @__PURE__ */
|
|
5246
|
-
description && /* @__PURE__ */
|
|
5247
|
-
action && /* @__PURE__ */
|
|
5928
|
+
/* @__PURE__ */ jsx56(Typography13, { variant: "h6", sx: { marginBottom: 1, color: colors.text.primary }, children: title }),
|
|
5929
|
+
description && /* @__PURE__ */ jsx56(Typography13, { variant: "body2", sx: { color: colors.text.secondary, marginBottom: 3 }, children: description }),
|
|
5930
|
+
action && /* @__PURE__ */ jsx56(Box16, { children: action })
|
|
5248
5931
|
]
|
|
5249
5932
|
}
|
|
5250
5933
|
);
|
|
5251
5934
|
};
|
|
5252
5935
|
|
|
5253
5936
|
// src/components/feedback/Loading.tsx
|
|
5254
|
-
import { Box as
|
|
5255
|
-
import { jsx as
|
|
5937
|
+
import { Box as Box17, CircularProgress as CircularProgress4, Typography as Typography14 } from "@mui/material";
|
|
5938
|
+
import { jsx as jsx57, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5256
5939
|
var Loading = ({
|
|
5257
5940
|
message = "Loading...",
|
|
5258
5941
|
size: size3 = 40,
|
|
5259
5942
|
fullScreen = false
|
|
5260
5943
|
}) => {
|
|
5261
|
-
const content = /* @__PURE__ */
|
|
5262
|
-
|
|
5944
|
+
const content = /* @__PURE__ */ jsxs25(
|
|
5945
|
+
Box17,
|
|
5263
5946
|
{
|
|
5264
5947
|
sx: {
|
|
5265
5948
|
display: "flex",
|
|
@@ -5281,8 +5964,8 @@ var Loading = ({
|
|
|
5281
5964
|
}
|
|
5282
5965
|
},
|
|
5283
5966
|
children: [
|
|
5284
|
-
/* @__PURE__ */
|
|
5285
|
-
message && /* @__PURE__ */
|
|
5967
|
+
/* @__PURE__ */ jsx57(CircularProgress4, { size: size3, thickness: 4 }),
|
|
5968
|
+
message && /* @__PURE__ */ jsx57(Typography14, { variant: "body2", color: "text.secondary", children: message })
|
|
5286
5969
|
]
|
|
5287
5970
|
}
|
|
5288
5971
|
);
|
|
@@ -5290,15 +5973,15 @@ var Loading = ({
|
|
|
5290
5973
|
};
|
|
5291
5974
|
|
|
5292
5975
|
// src/components/feedback/AppLoading.tsx
|
|
5293
|
-
import { Box as
|
|
5294
|
-
import { jsx as
|
|
5976
|
+
import { Box as Box18, CircularProgress as CircularProgress5, Typography as Typography15 } from "@mui/material";
|
|
5977
|
+
import { jsx as jsx58, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5295
5978
|
var AppLoading = ({
|
|
5296
5979
|
message = "Loading...",
|
|
5297
5980
|
logo = "/icons/logo.png",
|
|
5298
5981
|
sx = {}
|
|
5299
5982
|
}) => {
|
|
5300
|
-
return /* @__PURE__ */
|
|
5301
|
-
|
|
5983
|
+
return /* @__PURE__ */ jsxs26(
|
|
5984
|
+
Box18,
|
|
5302
5985
|
{
|
|
5303
5986
|
sx: {
|
|
5304
5987
|
display: "flex",
|
|
@@ -5316,8 +5999,8 @@ var AppLoading = ({
|
|
|
5316
5999
|
...sx
|
|
5317
6000
|
},
|
|
5318
6001
|
children: [
|
|
5319
|
-
logo && /* @__PURE__ */
|
|
5320
|
-
|
|
6002
|
+
logo && /* @__PURE__ */ jsx58(
|
|
6003
|
+
Box18,
|
|
5321
6004
|
{
|
|
5322
6005
|
component: "img",
|
|
5323
6006
|
src: logo,
|
|
@@ -5329,8 +6012,8 @@ var AppLoading = ({
|
|
|
5329
6012
|
}
|
|
5330
6013
|
}
|
|
5331
6014
|
),
|
|
5332
|
-
/* @__PURE__ */
|
|
5333
|
-
/* @__PURE__ */
|
|
6015
|
+
/* @__PURE__ */ jsx58(CircularProgress5, { size: 40, thickness: 4, sx: { mb: 2 } }),
|
|
6016
|
+
/* @__PURE__ */ jsx58(Typography15, { variant: "body1", color: "text.secondary", children: message })
|
|
5334
6017
|
]
|
|
5335
6018
|
}
|
|
5336
6019
|
);
|
|
@@ -5340,22 +6023,22 @@ var AppLoading = ({
|
|
|
5340
6023
|
import {
|
|
5341
6024
|
CircularProgress as MuiCircularProgress
|
|
5342
6025
|
} from "@mui/material";
|
|
5343
|
-
import { jsx as
|
|
6026
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
5344
6027
|
var CircularProgress6 = ({
|
|
5345
6028
|
size: size3 = 40,
|
|
5346
6029
|
thickness = 4,
|
|
5347
6030
|
...props
|
|
5348
6031
|
}) => {
|
|
5349
|
-
return /* @__PURE__ */
|
|
6032
|
+
return /* @__PURE__ */ jsx59(MuiCircularProgress, { size: size3, thickness, ...props });
|
|
5350
6033
|
};
|
|
5351
6034
|
|
|
5352
6035
|
// src/components/icons/ActivityAppIcon.tsx
|
|
5353
6036
|
import { memo as memo2 } from "react";
|
|
5354
6037
|
import { SvgIcon as SvgIcon2 } from "@mui/material";
|
|
5355
|
-
import { jsx as
|
|
5356
|
-
var ActivityAppIcon = memo2((props) => /* @__PURE__ */
|
|
5357
|
-
/* @__PURE__ */
|
|
5358
|
-
/* @__PURE__ */
|
|
6038
|
+
import { jsx as jsx60, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6039
|
+
var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs27(SvgIcon2, { ...props, viewBox: "0 0 36 36", children: [
|
|
6040
|
+
/* @__PURE__ */ jsx60("rect", { fill: "none", stroke: "currentColor", width: 34, height: 34, x: 1, y: 1, strokeWidth: 1.5, rx: 6.8 }),
|
|
6041
|
+
/* @__PURE__ */ jsx60(
|
|
5359
6042
|
"rect",
|
|
5360
6043
|
{
|
|
5361
6044
|
fill: "none",
|
|
@@ -5368,7 +6051,7 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs24(SvgIcon2, { ...pro
|
|
|
5368
6051
|
rx: 1.7
|
|
5369
6052
|
}
|
|
5370
6053
|
),
|
|
5371
|
-
/* @__PURE__ */
|
|
6054
|
+
/* @__PURE__ */ jsx60(
|
|
5372
6055
|
"rect",
|
|
5373
6056
|
{
|
|
5374
6057
|
fill: "none",
|
|
@@ -5381,7 +6064,7 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs24(SvgIcon2, { ...pro
|
|
|
5381
6064
|
rx: 1.7
|
|
5382
6065
|
}
|
|
5383
6066
|
),
|
|
5384
|
-
/* @__PURE__ */
|
|
6067
|
+
/* @__PURE__ */ jsx60(
|
|
5385
6068
|
"rect",
|
|
5386
6069
|
{
|
|
5387
6070
|
fill: "none",
|
|
@@ -5398,9 +6081,9 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs24(SvgIcon2, { ...pro
|
|
|
5398
6081
|
|
|
5399
6082
|
// src/components/icons/ArrowLeft.tsx
|
|
5400
6083
|
import { SvgIcon as SvgIcon3 } from "@mui/material";
|
|
5401
|
-
import { jsx as
|
|
6084
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
5402
6085
|
var LeftArrowIcon = (props) => {
|
|
5403
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ jsx61(SvgIcon3, { ...props, width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx61("g", { id: " Arrow Left", children: /* @__PURE__ */ jsx61(
|
|
5404
6087
|
"path",
|
|
5405
6088
|
{
|
|
5406
6089
|
id: "Vector (Stroke)",
|
|
@@ -5414,9 +6097,9 @@ var LeftArrowIcon = (props) => {
|
|
|
5414
6097
|
|
|
5415
6098
|
// src/components/icons/ArrowRight.tsx
|
|
5416
6099
|
import { SvgIcon as SvgIcon4 } from "@mui/material";
|
|
5417
|
-
import { jsx as
|
|
6100
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5418
6101
|
var RightArrowIcon = (props) => {
|
|
5419
|
-
return /* @__PURE__ */
|
|
6102
|
+
return /* @__PURE__ */ jsx62(SvgIcon4, { ...props, width: "25", height: "24", viewBox: "0 0 25 24", children: /* @__PURE__ */ jsx62(
|
|
5420
6103
|
"path",
|
|
5421
6104
|
{
|
|
5422
6105
|
fillRule: "evenodd",
|
|
@@ -5429,10 +6112,10 @@ var RightArrowIcon = (props) => {
|
|
|
5429
6112
|
|
|
5430
6113
|
// src/components/icons/AvatarIcon.tsx
|
|
5431
6114
|
import { SvgIcon as SvgIcon5 } from "@mui/material";
|
|
5432
|
-
import { jsx as
|
|
6115
|
+
import { jsx as jsx63, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5433
6116
|
var AvatarIcon = (props) => {
|
|
5434
|
-
return /* @__PURE__ */
|
|
5435
|
-
/* @__PURE__ */
|
|
6117
|
+
return /* @__PURE__ */ jsxs28(SvgIcon5, { ...props, viewBox: "0 0 16 16", children: [
|
|
6118
|
+
/* @__PURE__ */ jsx63(
|
|
5436
6119
|
"path",
|
|
5437
6120
|
{
|
|
5438
6121
|
fillRule: "evenodd",
|
|
@@ -5441,7 +6124,7 @@ var AvatarIcon = (props) => {
|
|
|
5441
6124
|
fill: "#1D1B20"
|
|
5442
6125
|
}
|
|
5443
6126
|
),
|
|
5444
|
-
/* @__PURE__ */
|
|
6127
|
+
/* @__PURE__ */ jsx63(
|
|
5445
6128
|
"path",
|
|
5446
6129
|
{
|
|
5447
6130
|
fillRule: "evenodd",
|
|
@@ -5456,9 +6139,9 @@ var AvatarIcon = (props) => {
|
|
|
5456
6139
|
// src/components/icons/BarTrackingIcon.tsx
|
|
5457
6140
|
import { memo as memo3 } from "react";
|
|
5458
6141
|
import { SvgIcon as SvgIcon6 } from "@mui/material";
|
|
5459
|
-
import { jsx as
|
|
5460
|
-
var BarTrackingIcon = memo3((props) => /* @__PURE__ */
|
|
5461
|
-
/* @__PURE__ */
|
|
6142
|
+
import { jsx as jsx64, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6143
|
+
var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs29(SvgIcon6, { ...props, viewBox: "0 0 96 97", children: [
|
|
6144
|
+
/* @__PURE__ */ jsx64(
|
|
5462
6145
|
"rect",
|
|
5463
6146
|
{
|
|
5464
6147
|
x: "7.19922",
|
|
@@ -5471,7 +6154,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs26(SvgIcon6, { ...pro
|
|
|
5471
6154
|
fill: "none"
|
|
5472
6155
|
}
|
|
5473
6156
|
),
|
|
5474
|
-
/* @__PURE__ */
|
|
6157
|
+
/* @__PURE__ */ jsx64(
|
|
5475
6158
|
"rect",
|
|
5476
6159
|
{
|
|
5477
6160
|
x: "21.0371",
|
|
@@ -5484,7 +6167,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs26(SvgIcon6, { ...pro
|
|
|
5484
6167
|
strokeWidth: "2"
|
|
5485
6168
|
}
|
|
5486
6169
|
),
|
|
5487
|
-
/* @__PURE__ */
|
|
6170
|
+
/* @__PURE__ */ jsx64(
|
|
5488
6171
|
"rect",
|
|
5489
6172
|
{
|
|
5490
6173
|
x: "40.4746",
|
|
@@ -5497,7 +6180,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs26(SvgIcon6, { ...pro
|
|
|
5497
6180
|
strokeWidth: "2"
|
|
5498
6181
|
}
|
|
5499
6182
|
),
|
|
5500
|
-
/* @__PURE__ */
|
|
6183
|
+
/* @__PURE__ */ jsx64(
|
|
5501
6184
|
"rect",
|
|
5502
6185
|
{
|
|
5503
6186
|
x: "59.8828",
|
|
@@ -5515,8 +6198,8 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs26(SvgIcon6, { ...pro
|
|
|
5515
6198
|
// src/components/icons/ClockIcon.tsx
|
|
5516
6199
|
import { memo as memo4 } from "react";
|
|
5517
6200
|
import { SvgIcon as SvgIcon7 } from "@mui/material";
|
|
5518
|
-
import { jsx as
|
|
5519
|
-
var ClockIcon = memo4((props) => /* @__PURE__ */
|
|
6201
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
6202
|
+
var ClockIcon = memo4((props) => /* @__PURE__ */ jsx65(SvgIcon7, { ...props, viewBox: "0 0 22 22", children: /* @__PURE__ */ jsx65(
|
|
5520
6203
|
"path",
|
|
5521
6204
|
{
|
|
5522
6205
|
fill: "currentColor",
|
|
@@ -5529,9 +6212,9 @@ var ClockIcon = memo4((props) => /* @__PURE__ */ jsx60(SvgIcon7, { ...props, vie
|
|
|
5529
6212
|
// src/components/icons/CloudFlashIcon.tsx
|
|
5530
6213
|
import { memo as memo5 } from "react";
|
|
5531
6214
|
import { SvgIcon as SvgIcon8 } from "@mui/material";
|
|
5532
|
-
import { jsx as
|
|
5533
|
-
var CloudFlashIcon = memo5((props) => /* @__PURE__ */
|
|
5534
|
-
/* @__PURE__ */
|
|
6215
|
+
import { jsx as jsx66, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6216
|
+
var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs30(SvgIcon8, { ...props, fill: "none", viewBox: "0 0 96 97", children: [
|
|
6217
|
+
/* @__PURE__ */ jsx66(
|
|
5535
6218
|
"path",
|
|
5536
6219
|
{
|
|
5537
6220
|
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",
|
|
@@ -5540,7 +6223,7 @@ var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs27(SvgIcon8, { ...prop
|
|
|
5540
6223
|
strokeWidth: "2"
|
|
5541
6224
|
}
|
|
5542
6225
|
),
|
|
5543
|
-
/* @__PURE__ */
|
|
6226
|
+
/* @__PURE__ */ jsx66(
|
|
5544
6227
|
"path",
|
|
5545
6228
|
{
|
|
5546
6229
|
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",
|
|
@@ -5554,9 +6237,9 @@ var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs27(SvgIcon8, { ...prop
|
|
|
5554
6237
|
// src/components/icons/DecentralizedServerIcon.tsx
|
|
5555
6238
|
import { memo as memo6 } from "react";
|
|
5556
6239
|
import { SvgIcon as SvgIcon9 } from "@mui/material";
|
|
5557
|
-
import { jsx as
|
|
5558
|
-
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */
|
|
5559
|
-
/* @__PURE__ */
|
|
6240
|
+
import { jsx as jsx67, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6241
|
+
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs31(SvgIcon9, { ...props, viewBox: "0 0 96 97", children: [
|
|
6242
|
+
/* @__PURE__ */ jsx67(
|
|
5560
6243
|
"path",
|
|
5561
6244
|
{
|
|
5562
6245
|
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",
|
|
@@ -5567,7 +6250,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5567
6250
|
strokeLinejoin: "round"
|
|
5568
6251
|
}
|
|
5569
6252
|
),
|
|
5570
|
-
/* @__PURE__ */
|
|
6253
|
+
/* @__PURE__ */ jsx67(
|
|
5571
6254
|
"path",
|
|
5572
6255
|
{
|
|
5573
6256
|
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",
|
|
@@ -5578,7 +6261,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5578
6261
|
strokeLinejoin: "round"
|
|
5579
6262
|
}
|
|
5580
6263
|
),
|
|
5581
|
-
/* @__PURE__ */
|
|
6264
|
+
/* @__PURE__ */ jsx67(
|
|
5582
6265
|
"path",
|
|
5583
6266
|
{
|
|
5584
6267
|
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",
|
|
@@ -5589,7 +6272,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5589
6272
|
strokeLinejoin: "round"
|
|
5590
6273
|
}
|
|
5591
6274
|
),
|
|
5592
|
-
/* @__PURE__ */
|
|
6275
|
+
/* @__PURE__ */ jsx67(
|
|
5593
6276
|
"path",
|
|
5594
6277
|
{
|
|
5595
6278
|
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",
|
|
@@ -5600,7 +6283,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5600
6283
|
strokeLinejoin: "round"
|
|
5601
6284
|
}
|
|
5602
6285
|
),
|
|
5603
|
-
/* @__PURE__ */
|
|
6286
|
+
/* @__PURE__ */ jsx67(
|
|
5604
6287
|
"path",
|
|
5605
6288
|
{
|
|
5606
6289
|
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",
|
|
@@ -5611,7 +6294,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5611
6294
|
strokeLinejoin: "round"
|
|
5612
6295
|
}
|
|
5613
6296
|
),
|
|
5614
|
-
/* @__PURE__ */
|
|
6297
|
+
/* @__PURE__ */ jsx67(
|
|
5615
6298
|
"path",
|
|
5616
6299
|
{
|
|
5617
6300
|
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",
|
|
@@ -5622,7 +6305,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5622
6305
|
strokeLinejoin: "round"
|
|
5623
6306
|
}
|
|
5624
6307
|
),
|
|
5625
|
-
/* @__PURE__ */
|
|
6308
|
+
/* @__PURE__ */ jsx67(
|
|
5626
6309
|
"path",
|
|
5627
6310
|
{
|
|
5628
6311
|
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",
|
|
@@ -5633,7 +6316,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5633
6316
|
strokeLinejoin: "round"
|
|
5634
6317
|
}
|
|
5635
6318
|
),
|
|
5636
|
-
/* @__PURE__ */
|
|
6319
|
+
/* @__PURE__ */ jsx67(
|
|
5637
6320
|
"path",
|
|
5638
6321
|
{
|
|
5639
6322
|
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",
|
|
@@ -5644,7 +6327,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5644
6327
|
strokeLinejoin: "round"
|
|
5645
6328
|
}
|
|
5646
6329
|
),
|
|
5647
|
-
/* @__PURE__ */
|
|
6330
|
+
/* @__PURE__ */ jsx67(
|
|
5648
6331
|
"path",
|
|
5649
6332
|
{
|
|
5650
6333
|
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",
|
|
@@ -5655,7 +6338,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5655
6338
|
strokeLinejoin: "round"
|
|
5656
6339
|
}
|
|
5657
6340
|
),
|
|
5658
|
-
/* @__PURE__ */
|
|
6341
|
+
/* @__PURE__ */ jsx67(
|
|
5659
6342
|
"rect",
|
|
5660
6343
|
{
|
|
5661
6344
|
x: "22.623",
|
|
@@ -5668,7 +6351,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5668
6351
|
strokeWidth: "2"
|
|
5669
6352
|
}
|
|
5670
6353
|
),
|
|
5671
|
-
/* @__PURE__ */
|
|
6354
|
+
/* @__PURE__ */ jsx67(
|
|
5672
6355
|
"rect",
|
|
5673
6356
|
{
|
|
5674
6357
|
x: "22.623",
|
|
@@ -5681,7 +6364,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5681
6364
|
strokeWidth: "2"
|
|
5682
6365
|
}
|
|
5683
6366
|
),
|
|
5684
|
-
/* @__PURE__ */
|
|
6367
|
+
/* @__PURE__ */ jsx67(
|
|
5685
6368
|
"rect",
|
|
5686
6369
|
{
|
|
5687
6370
|
x: "22.623",
|
|
@@ -5694,7 +6377,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5694
6377
|
strokeWidth: "2"
|
|
5695
6378
|
}
|
|
5696
6379
|
),
|
|
5697
|
-
/* @__PURE__ */
|
|
6380
|
+
/* @__PURE__ */ jsx67(
|
|
5698
6381
|
"path",
|
|
5699
6382
|
{
|
|
5700
6383
|
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",
|
|
@@ -5704,7 +6387,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5704
6387
|
strokeMiterlimit: "10"
|
|
5705
6388
|
}
|
|
5706
6389
|
),
|
|
5707
|
-
/* @__PURE__ */
|
|
6390
|
+
/* @__PURE__ */ jsx67(
|
|
5708
6391
|
"path",
|
|
5709
6392
|
{
|
|
5710
6393
|
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",
|
|
@@ -5714,7 +6397,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5714
6397
|
strokeMiterlimit: "10"
|
|
5715
6398
|
}
|
|
5716
6399
|
),
|
|
5717
|
-
/* @__PURE__ */
|
|
6400
|
+
/* @__PURE__ */ jsx67(
|
|
5718
6401
|
"path",
|
|
5719
6402
|
{
|
|
5720
6403
|
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",
|
|
@@ -5729,8 +6412,8 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs28(SvgIcon9,
|
|
|
5729
6412
|
// src/components/icons/DiscordIcon.tsx
|
|
5730
6413
|
import { memo as memo7 } from "react";
|
|
5731
6414
|
import { SvgIcon as SvgIcon10 } from "@mui/material";
|
|
5732
|
-
import { jsx as
|
|
5733
|
-
var DiscordIcon = memo7((props) => /* @__PURE__ */
|
|
6415
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
6416
|
+
var DiscordIcon = memo7((props) => /* @__PURE__ */ jsx68(SvgIcon10, { ...props, viewBox: "0 0 15 12", children: /* @__PURE__ */ jsx68(
|
|
5734
6417
|
"path",
|
|
5735
6418
|
{
|
|
5736
6419
|
fill: "currentColor",
|
|
@@ -5741,16 +6424,16 @@ var DiscordIcon = memo7((props) => /* @__PURE__ */ jsx63(SvgIcon10, { ...props,
|
|
|
5741
6424
|
// src/components/icons/DownloadIcon.tsx
|
|
5742
6425
|
import { memo as memo8 } from "react";
|
|
5743
6426
|
import { SvgIcon as SvgIcon11 } from "@mui/material";
|
|
5744
|
-
import { jsx as
|
|
5745
|
-
var DownloadIcon = memo8((props) => /* @__PURE__ */
|
|
5746
|
-
/* @__PURE__ */
|
|
6427
|
+
import { jsx as jsx69, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6428
|
+
var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs32(SvgIcon11, { ...props, viewBox: "0 0 17 16", fill: "none", children: [
|
|
6429
|
+
/* @__PURE__ */ jsx69(
|
|
5747
6430
|
"path",
|
|
5748
6431
|
{
|
|
5749
6432
|
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",
|
|
5750
6433
|
fill: "currentColor"
|
|
5751
6434
|
}
|
|
5752
6435
|
),
|
|
5753
|
-
/* @__PURE__ */
|
|
6436
|
+
/* @__PURE__ */ jsx69(
|
|
5754
6437
|
"path",
|
|
5755
6438
|
{
|
|
5756
6439
|
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",
|
|
@@ -5762,11 +6445,11 @@ var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs29(SvgIcon11, { ...props
|
|
|
5762
6445
|
// src/components/icons/FilledFolderIcon.tsx
|
|
5763
6446
|
import { memo as memo9 } from "react";
|
|
5764
6447
|
import { SvgIcon as SvgIcon12 } from "@mui/material";
|
|
5765
|
-
import { jsx as
|
|
5766
|
-
var FilledFolderIcon = memo9((props) => /* @__PURE__ */
|
|
5767
|
-
/* @__PURE__ */
|
|
5768
|
-
/* @__PURE__ */
|
|
5769
|
-
/* @__PURE__ */
|
|
6448
|
+
import { jsx as jsx70, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6449
|
+
var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs33(SvgIcon12, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
6450
|
+
/* @__PURE__ */ jsx70("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#FCF8EC" }),
|
|
6451
|
+
/* @__PURE__ */ jsx70("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E1B43E" }),
|
|
6452
|
+
/* @__PURE__ */ jsx70(
|
|
5770
6453
|
"path",
|
|
5771
6454
|
{
|
|
5772
6455
|
fillRule: "evenodd",
|
|
@@ -5780,11 +6463,11 @@ var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs30(SvgIcon12, { sx:
|
|
|
5780
6463
|
// src/components/icons/FolderIcon.tsx
|
|
5781
6464
|
import { memo as memo10 } from "react";
|
|
5782
6465
|
import { SvgIcon as SvgIcon13 } from "@mui/material";
|
|
5783
|
-
import { jsx as
|
|
5784
|
-
var FolderIcon = memo10((props) => /* @__PURE__ */
|
|
5785
|
-
/* @__PURE__ */
|
|
5786
|
-
/* @__PURE__ */
|
|
5787
|
-
/* @__PURE__ */
|
|
6466
|
+
import { jsx as jsx71, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6467
|
+
var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs34(SvgIcon13, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
6468
|
+
/* @__PURE__ */ jsx71("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#F5F7FA" }),
|
|
6469
|
+
/* @__PURE__ */ jsx71("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E6E6E6" }),
|
|
6470
|
+
/* @__PURE__ */ jsx71(
|
|
5788
6471
|
"path",
|
|
5789
6472
|
{
|
|
5790
6473
|
fillRule: "evenodd",
|
|
@@ -5800,16 +6483,16 @@ var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs31(SvgIcon13, { sx: { fil
|
|
|
5800
6483
|
// src/components/icons/GithubLogoIcon.tsx
|
|
5801
6484
|
import { memo as memo11 } from "react";
|
|
5802
6485
|
import { SvgIcon as SvgIcon14 } from "@mui/material";
|
|
5803
|
-
import { jsx as
|
|
5804
|
-
var GithubLogoIcon = memo11((props) => /* @__PURE__ */
|
|
5805
|
-
/* @__PURE__ */
|
|
6486
|
+
import { jsx as jsx72, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6487
|
+
var GithubLogoIcon = memo11((props) => /* @__PURE__ */ jsxs35(SvgIcon14, { ...props, viewBox: "0 0 17 16", sx: { fill: "none" }, children: [
|
|
6488
|
+
/* @__PURE__ */ jsx72(
|
|
5806
6489
|
"path",
|
|
5807
6490
|
{
|
|
5808
6491
|
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",
|
|
5809
6492
|
fill: "white"
|
|
5810
6493
|
}
|
|
5811
6494
|
),
|
|
5812
|
-
/* @__PURE__ */
|
|
6495
|
+
/* @__PURE__ */ jsx72(
|
|
5813
6496
|
"path",
|
|
5814
6497
|
{
|
|
5815
6498
|
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",
|
|
@@ -5821,8 +6504,8 @@ var GithubLogoIcon = memo11((props) => /* @__PURE__ */ jsxs32(SvgIcon14, { ...pr
|
|
|
5821
6504
|
// src/components/icons/ShareIcon.tsx
|
|
5822
6505
|
import { memo as memo12 } from "react";
|
|
5823
6506
|
import { SvgIcon as SvgIcon15 } from "@mui/material";
|
|
5824
|
-
import { jsx as
|
|
5825
|
-
var ShareIcon = memo12((props) => /* @__PURE__ */
|
|
6507
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
6508
|
+
var ShareIcon = memo12((props) => /* @__PURE__ */ jsx73(SvgIcon15, { ...props, viewBox: "0 0 17 16", fill: "none", children: /* @__PURE__ */ jsx73(
|
|
5826
6509
|
"path",
|
|
5827
6510
|
{
|
|
5828
6511
|
fillRule: "evenodd",
|
|
@@ -5835,9 +6518,9 @@ var ShareIcon = memo12((props) => /* @__PURE__ */ jsx68(SvgIcon15, { ...props, v
|
|
|
5835
6518
|
// src/components/icons/StorageAppIcon.tsx
|
|
5836
6519
|
import { memo as memo13 } from "react";
|
|
5837
6520
|
import { SvgIcon as SvgIcon16 } from "@mui/material";
|
|
5838
|
-
import { jsx as
|
|
5839
|
-
var StorageAppIcon = memo13((props) => /* @__PURE__ */
|
|
5840
|
-
/* @__PURE__ */
|
|
6521
|
+
import { jsx as jsx74, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6522
|
+
var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs36(SvgIcon16, { ...props, viewBox: "0 0 38 29", fill: "none", children: [
|
|
6523
|
+
/* @__PURE__ */ jsx74(
|
|
5841
6524
|
"path",
|
|
5842
6525
|
{
|
|
5843
6526
|
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",
|
|
@@ -5846,7 +6529,7 @@ var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs33(SvgIcon16, { ...pr
|
|
|
5846
6529
|
fill: "none"
|
|
5847
6530
|
}
|
|
5848
6531
|
),
|
|
5849
|
-
/* @__PURE__ */
|
|
6532
|
+
/* @__PURE__ */ jsx74(
|
|
5850
6533
|
"path",
|
|
5851
6534
|
{
|
|
5852
6535
|
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",
|
|
@@ -5860,8 +6543,8 @@ var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs33(SvgIcon16, { ...pr
|
|
|
5860
6543
|
// src/components/icons/UploadFileIcon.tsx
|
|
5861
6544
|
import { memo as memo14 } from "react";
|
|
5862
6545
|
import { SvgIcon as SvgIcon17 } from "@mui/material";
|
|
5863
|
-
import { jsx as
|
|
5864
|
-
var UploadFileIcon = memo14((props) => /* @__PURE__ */
|
|
6546
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
6547
|
+
var UploadFileIcon = memo14((props) => /* @__PURE__ */ jsx75(SvgIcon17, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx75(
|
|
5865
6548
|
"path",
|
|
5866
6549
|
{
|
|
5867
6550
|
fillRule: "evenodd",
|
|
@@ -5876,8 +6559,8 @@ var UploadFileIcon = memo14((props) => /* @__PURE__ */ jsx70(SvgIcon17, { ...pro
|
|
|
5876
6559
|
// src/components/icons/UploadFolderIcon.tsx
|
|
5877
6560
|
import { memo as memo15 } from "react";
|
|
5878
6561
|
import { SvgIcon as SvgIcon18 } from "@mui/material";
|
|
5879
|
-
import { jsx as
|
|
5880
|
-
var UploadFolderIcon = memo15((props) => /* @__PURE__ */
|
|
6562
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
6563
|
+
var UploadFolderIcon = memo15((props) => /* @__PURE__ */ jsx76(SvgIcon18, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx76(
|
|
5881
6564
|
"path",
|
|
5882
6565
|
{
|
|
5883
6566
|
fillRule: "evenodd",
|
|
@@ -5890,14 +6573,14 @@ var UploadFolderIcon = memo15((props) => /* @__PURE__ */ jsx71(SvgIcon18, { ...p
|
|
|
5890
6573
|
) }));
|
|
5891
6574
|
|
|
5892
6575
|
// src/components/utilities/Markdown/Markdown.tsx
|
|
5893
|
-
import { Box as
|
|
6576
|
+
import { Box as Box19, styled as styled40 } from "@mui/material";
|
|
5894
6577
|
import "highlight.js/styles/github.css";
|
|
5895
6578
|
import "github-markdown-css/github-markdown-light.css";
|
|
5896
6579
|
import MD from "react-markdown";
|
|
5897
6580
|
import highlight from "rehype-highlight";
|
|
5898
6581
|
import rehypeRaw from "rehype-raw";
|
|
5899
|
-
import { jsx as
|
|
5900
|
-
var Content =
|
|
6582
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
6583
|
+
var Content = styled40(Box19)(({ theme: theme2 }) => ({
|
|
5901
6584
|
backgroundColor: "transparent",
|
|
5902
6585
|
...theme2.typography.body1,
|
|
5903
6586
|
color: theme2.palette.text.primary,
|
|
@@ -5914,11 +6597,11 @@ var Content = styled36(Box16)(({ theme: theme2 }) => ({
|
|
|
5914
6597
|
backgroundColor: theme2.palette.background.paper
|
|
5915
6598
|
}
|
|
5916
6599
|
}));
|
|
5917
|
-
var Markdown = ({ content, children }) => /* @__PURE__ */
|
|
6600
|
+
var Markdown = ({ content, children }) => /* @__PURE__ */ jsx77(Content, { className: "markdown-body", children: /* @__PURE__ */ jsx77(MD, { rehypePlugins: [highlight, rehypeRaw], children: content || children }) });
|
|
5918
6601
|
|
|
5919
6602
|
// src/components/utilities/OnboardingProvider/OnboardingProvider.tsx
|
|
5920
|
-
import { createContext as createContext2, useContext as useContext2, useState as
|
|
5921
|
-
import { jsx as
|
|
6603
|
+
import { createContext as createContext2, useContext as useContext2, useState as useState8, useCallback as useCallback6, useEffect as useEffect2 } from "react";
|
|
6604
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
5922
6605
|
var OnboardingContext = createContext2(void 0);
|
|
5923
6606
|
var useOnboarding = () => {
|
|
5924
6607
|
const context = useContext2(OnboardingContext);
|
|
@@ -5928,7 +6611,7 @@ var useOnboarding = () => {
|
|
|
5928
6611
|
return context;
|
|
5929
6612
|
};
|
|
5930
6613
|
var OnboardingProvider = ({ children }) => {
|
|
5931
|
-
const [isOnboardingActive, setIsOnboardingActive] =
|
|
6614
|
+
const [isOnboardingActive, setIsOnboardingActive] = useState8(() => {
|
|
5932
6615
|
const savedState = localStorage.getItem("isOnboardingActive");
|
|
5933
6616
|
return savedState !== null ? JSON.parse(savedState) : true;
|
|
5934
6617
|
});
|
|
@@ -5943,7 +6626,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
5943
6626
|
setIsOnboardingActive(false);
|
|
5944
6627
|
setTimeout(() => setIsOnboardingActive(true), 0);
|
|
5945
6628
|
}, []);
|
|
5946
|
-
return /* @__PURE__ */
|
|
6629
|
+
return /* @__PURE__ */ jsx78(
|
|
5947
6630
|
OnboardingContext.Provider,
|
|
5948
6631
|
{
|
|
5949
6632
|
value: {
|
|
@@ -5958,7 +6641,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
5958
6641
|
};
|
|
5959
6642
|
|
|
5960
6643
|
// src/components/utilities/Truncate/Truncate.tsx
|
|
5961
|
-
import { jsx as
|
|
6644
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
5962
6645
|
var getDefaultEndingLength = ({ text, variant, maxLength = text.length }) => {
|
|
5963
6646
|
if (variant === "hex") {
|
|
5964
6647
|
return 4;
|
|
@@ -5982,30 +6665,30 @@ var Truncate = ({
|
|
|
5982
6665
|
const truncated = text.slice(0, maxLength - endingLength);
|
|
5983
6666
|
truncatedText = [truncated, ending].filter(Boolean).join("...");
|
|
5984
6667
|
}
|
|
5985
|
-
return /* @__PURE__ */
|
|
6668
|
+
return /* @__PURE__ */ jsx79("span", { ...props, "data-full": text, children: truncatedText });
|
|
5986
6669
|
};
|
|
5987
6670
|
|
|
5988
6671
|
// src/components/utilities/BytesSize/BytesSize.tsx
|
|
5989
6672
|
import size from "byte-size";
|
|
5990
|
-
import { Fragment as
|
|
6673
|
+
import { Fragment as Fragment10, jsx as jsx80 } from "react/jsx-runtime";
|
|
5991
6674
|
var BytesSize = ({ bytes }) => {
|
|
5992
|
-
return /* @__PURE__ */
|
|
6675
|
+
return /* @__PURE__ */ jsx80(Fragment10, { children: size(bytes).toString() });
|
|
5993
6676
|
};
|
|
5994
6677
|
|
|
5995
6678
|
// src/components/utilities/QRCode/QRCode.tsx
|
|
5996
6679
|
import { forwardRef as forwardRef2 } from "react";
|
|
5997
6680
|
import QR from "react-qr-code";
|
|
5998
|
-
import { jsx as
|
|
5999
|
-
var QRCode = forwardRef2(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */
|
|
6681
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
6682
|
+
var QRCode = forwardRef2(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */ jsx81(QR, { ref, size: size3, ...props }));
|
|
6000
6683
|
QRCode.displayName = "QRCode";
|
|
6001
6684
|
|
|
6002
6685
|
// src/components/charts/ChartWidget/ChartWidget.tsx
|
|
6003
|
-
import { Box as
|
|
6686
|
+
import { Box as Box20, Stack as Stack4, Typography as Typography16, styled as styled41, useTheme as useTheme3 } from "@mui/material";
|
|
6004
6687
|
import { LineChart } from "@mui/x-charts";
|
|
6005
6688
|
import size2 from "byte-size";
|
|
6006
6689
|
import { format } from "date-fns";
|
|
6007
|
-
import { jsx as
|
|
6008
|
-
var Chart =
|
|
6690
|
+
import { jsx as jsx82, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6691
|
+
var Chart = styled41(Box20)(() => ({
|
|
6009
6692
|
height: 200
|
|
6010
6693
|
}));
|
|
6011
6694
|
var ChartWidget = ({
|
|
@@ -6014,11 +6697,11 @@ var ChartWidget = ({
|
|
|
6014
6697
|
history,
|
|
6015
6698
|
formatValue = (value2) => size2(value2 || 0).toString()
|
|
6016
6699
|
}) => {
|
|
6017
|
-
const theme2 =
|
|
6018
|
-
return /* @__PURE__ */
|
|
6019
|
-
/* @__PURE__ */
|
|
6020
|
-
/* @__PURE__ */
|
|
6021
|
-
/* @__PURE__ */
|
|
6700
|
+
const theme2 = useTheme3();
|
|
6701
|
+
return /* @__PURE__ */ jsxs37(Stack4, { spacing: 1, children: [
|
|
6702
|
+
/* @__PURE__ */ jsx82(Typography16, { variant: "caption", color: "text.secondary", children: title }),
|
|
6703
|
+
/* @__PURE__ */ jsx82(Typography16, { fontWeight: "bold", children: value }),
|
|
6704
|
+
/* @__PURE__ */ jsx82(Chart, { children: /* @__PURE__ */ jsx82(
|
|
6022
6705
|
LineChart,
|
|
6023
6706
|
{
|
|
6024
6707
|
dataset: history || [],
|
|
@@ -6076,11 +6759,11 @@ var ChartWidget = ({
|
|
|
6076
6759
|
import { format as format2, startOfDay, subHours, subWeeks, subMonths } from "date-fns";
|
|
6077
6760
|
import { LineChart as LineChart2 } from "@mui/x-charts";
|
|
6078
6761
|
import { useDrawingArea, useYScale } from "@mui/x-charts/hooks";
|
|
6079
|
-
import { Box as
|
|
6762
|
+
import { Box as Box21, Card as Card2, CardHeader as CardHeader2, CardMedia, Divider as Divider5, Stack as Stack5, styled as styled42, Typography as Typography17, useTheme as useTheme4 } from "@mui/material";
|
|
6080
6763
|
|
|
6081
6764
|
// src/components/charts/MetricsChart/PeriodSelect.tsx
|
|
6082
6765
|
import { MenuItem as MenuItem2, TextField as TextField4 } from "@mui/material";
|
|
6083
|
-
import { jsx as
|
|
6766
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
6084
6767
|
var options = [
|
|
6085
6768
|
/**
|
|
6086
6769
|
* TODO: Enable the options below when the backend supports them
|
|
@@ -6090,7 +6773,7 @@ var options = [
|
|
|
6090
6773
|
{ value: "week", label: "1 week" },
|
|
6091
6774
|
{ value: "month", label: "1 month" }
|
|
6092
6775
|
];
|
|
6093
|
-
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */
|
|
6776
|
+
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ jsx83(
|
|
6094
6777
|
TextField4,
|
|
6095
6778
|
{
|
|
6096
6779
|
select: true,
|
|
@@ -6098,13 +6781,13 @@ var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ jsx78(
|
|
|
6098
6781
|
value,
|
|
6099
6782
|
defaultValue: options[0].value,
|
|
6100
6783
|
onChange: (e) => onChange?.(e.target.value),
|
|
6101
|
-
children: options.map(({ value: value2, label }) => /* @__PURE__ */
|
|
6784
|
+
children: options.map(({ value: value2, label }) => /* @__PURE__ */ jsx83(MenuItem2, { value: value2, children: label }, value2))
|
|
6102
6785
|
}
|
|
6103
6786
|
);
|
|
6104
6787
|
|
|
6105
6788
|
// src/components/charts/MetricsChart/MetricsChart.tsx
|
|
6106
|
-
import { useMemo, useState as
|
|
6107
|
-
import { jsx as
|
|
6789
|
+
import { useMemo, useState as useState9 } from "react";
|
|
6790
|
+
import { jsx as jsx84, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6108
6791
|
var mapPeriodToFromDate = (period = "month") => {
|
|
6109
6792
|
const date = /* @__PURE__ */ new Date();
|
|
6110
6793
|
if (period === "hour") {
|
|
@@ -6118,14 +6801,14 @@ var mapPeriodToFromDate = (period = "month") => {
|
|
|
6118
6801
|
}
|
|
6119
6802
|
return startOfDay(subMonths(date, 1));
|
|
6120
6803
|
};
|
|
6121
|
-
var Chart2 =
|
|
6804
|
+
var Chart2 = styled42(LineChart2)({
|
|
6122
6805
|
height: 320,
|
|
6123
6806
|
marginBottom: 16
|
|
6124
6807
|
});
|
|
6125
|
-
var NoDataRect =
|
|
6808
|
+
var NoDataRect = styled42("rect")({
|
|
6126
6809
|
fill: "#F5F6FF"
|
|
6127
6810
|
});
|
|
6128
|
-
var LoadingText =
|
|
6811
|
+
var LoadingText = styled42("text")(({ theme: theme2 }) => ({
|
|
6129
6812
|
stroke: "none",
|
|
6130
6813
|
fill: theme2.palette.text.primary,
|
|
6131
6814
|
shapeRendering: "crispEdges",
|
|
@@ -6133,8 +6816,8 @@ var LoadingText = styled38("text")(({ theme: theme2 }) => ({
|
|
|
6133
6816
|
dominantBaseline: "middle"
|
|
6134
6817
|
}));
|
|
6135
6818
|
var MetricsChart = ({ history = [] }) => {
|
|
6136
|
-
const theme2 =
|
|
6137
|
-
const [period, setPeriod] =
|
|
6819
|
+
const theme2 = useTheme4();
|
|
6820
|
+
const [period, setPeriod] = useState9("week");
|
|
6138
6821
|
const periodFrom = useMemo(() => mapPeriodToFromDate(period), [period]);
|
|
6139
6822
|
const periodHistory = useMemo(
|
|
6140
6823
|
() => history.filter((record) => record.recordTime > periodFrom),
|
|
@@ -6164,15 +6847,15 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
6164
6847
|
const backgroundHeight = textHeight + padding.top + padding.bottom;
|
|
6165
6848
|
const rectX = left + (width - backgroundWidth) / 2;
|
|
6166
6849
|
const rectY = top + (height - backgroundHeight) / 2;
|
|
6167
|
-
return /* @__PURE__ */
|
|
6168
|
-
/* @__PURE__ */
|
|
6169
|
-
/* @__PURE__ */
|
|
6850
|
+
return /* @__PURE__ */ jsxs38("g", { children: [
|
|
6851
|
+
/* @__PURE__ */ jsx84(NoDataRect, { x: rectX, y: rectY, width: backgroundWidth, height: backgroundHeight }),
|
|
6852
|
+
/* @__PURE__ */ jsx84(LoadingText, { style: { ...theme2.typography.subtitle1 }, x: left + width / 2, y: top + height / 2, children: text })
|
|
6170
6853
|
] });
|
|
6171
6854
|
};
|
|
6172
|
-
return /* @__PURE__ */
|
|
6173
|
-
/* @__PURE__ */
|
|
6174
|
-
/* @__PURE__ */
|
|
6175
|
-
/* @__PURE__ */
|
|
6855
|
+
return /* @__PURE__ */ jsxs38(Card2, { children: [
|
|
6856
|
+
/* @__PURE__ */ jsx84(CardHeader2, { title: "GET / PUT Requests", action: /* @__PURE__ */ jsx84(PeriodSelect, { value: period, onChange: setPeriod }) }),
|
|
6857
|
+
/* @__PURE__ */ jsxs38(CardMedia, { children: [
|
|
6858
|
+
/* @__PURE__ */ jsx84(
|
|
6176
6859
|
Chart2,
|
|
6177
6860
|
{
|
|
6178
6861
|
skipAnimation: true,
|
|
@@ -6233,35 +6916,35 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
6233
6916
|
]
|
|
6234
6917
|
}
|
|
6235
6918
|
),
|
|
6236
|
-
periodHistory.length > 0 && /* @__PURE__ */
|
|
6237
|
-
/* @__PURE__ */
|
|
6238
|
-
/* @__PURE__ */
|
|
6239
|
-
/* @__PURE__ */
|
|
6919
|
+
periodHistory.length > 0 && /* @__PURE__ */ jsxs38(Stack5, { direction: "row", spacing: 2, marginY: 3, justifyContent: "center", children: [
|
|
6920
|
+
/* @__PURE__ */ jsxs38(Stack5, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
6921
|
+
/* @__PURE__ */ jsx84(Box21, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.primary.main } }),
|
|
6922
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "body2", children: "Get" })
|
|
6240
6923
|
] }),
|
|
6241
|
-
/* @__PURE__ */
|
|
6242
|
-
/* @__PURE__ */
|
|
6243
|
-
/* @__PURE__ */
|
|
6924
|
+
/* @__PURE__ */ jsxs38(Stack5, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
6925
|
+
/* @__PURE__ */ jsx84(Box21, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.success.main } }),
|
|
6926
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "body2", children: "Put" })
|
|
6244
6927
|
] })
|
|
6245
6928
|
] })
|
|
6246
6929
|
] }),
|
|
6247
|
-
/* @__PURE__ */
|
|
6248
|
-
/* @__PURE__ */
|
|
6249
|
-
/* @__PURE__ */
|
|
6250
|
-
/* @__PURE__ */
|
|
6251
|
-
/* @__PURE__ */
|
|
6252
|
-
/* @__PURE__ */
|
|
6930
|
+
/* @__PURE__ */ jsxs38(CardMedia, { children: [
|
|
6931
|
+
/* @__PURE__ */ jsx84(Divider5, { flexItem: true }),
|
|
6932
|
+
/* @__PURE__ */ jsxs38(Stack5, { direction: "row", spacing: 2, padding: 2, children: [
|
|
6933
|
+
/* @__PURE__ */ jsxs38(Stack5, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6934
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "body2", color: "secondary", children: "GET Requests per account" }),
|
|
6935
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "h3", children: total.gets })
|
|
6253
6936
|
] }),
|
|
6254
|
-
/* @__PURE__ */
|
|
6255
|
-
/* @__PURE__ */
|
|
6256
|
-
/* @__PURE__ */
|
|
6937
|
+
/* @__PURE__ */ jsxs38(Stack5, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6938
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "body2", color: "secondary", children: "PUT Requests per account" }),
|
|
6939
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "h3", children: total.puts })
|
|
6257
6940
|
] }),
|
|
6258
|
-
/* @__PURE__ */
|
|
6259
|
-
/* @__PURE__ */
|
|
6260
|
-
/* @__PURE__ */
|
|
6941
|
+
/* @__PURE__ */ jsxs38(Stack5, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6942
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "body2", color: "secondary", children: "Total Consumed per account" }),
|
|
6943
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "h3", children: /* @__PURE__ */ jsx84(BytesSize, { bytes: total.transferredBytes }) })
|
|
6261
6944
|
] }),
|
|
6262
|
-
/* @__PURE__ */
|
|
6263
|
-
/* @__PURE__ */
|
|
6264
|
-
/* @__PURE__ */
|
|
6945
|
+
/* @__PURE__ */ jsxs38(Stack5, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
6946
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "body2", color: "secondary", children: "Total Stored per account" }),
|
|
6947
|
+
/* @__PURE__ */ jsx84(Typography17, { variant: "h3", children: /* @__PURE__ */ jsx84(BytesSize, { bytes: total.storedBytes }) })
|
|
6265
6948
|
] })
|
|
6266
6949
|
] })
|
|
6267
6950
|
] })
|
|
@@ -6278,10 +6961,10 @@ import ReactFlow, {
|
|
|
6278
6961
|
BackgroundVariant,
|
|
6279
6962
|
ConnectionLineType
|
|
6280
6963
|
} from "reactflow";
|
|
6281
|
-
import { Box as
|
|
6282
|
-
import { useTheme as
|
|
6964
|
+
import { Box as Box22 } from "@mui/material";
|
|
6965
|
+
import { useTheme as useTheme5 } from "@mui/material/styles";
|
|
6283
6966
|
import { Background as Background2, Controls as Controls2, MiniMap as MiniMap2, Panel, BackgroundVariant as BackgroundVariant2, ConnectionLineType as ConnectionLineType2 } from "reactflow";
|
|
6284
|
-
import { jsx as
|
|
6967
|
+
import { jsx as jsx85, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6285
6968
|
var FlowEditor = ({
|
|
6286
6969
|
nodes,
|
|
6287
6970
|
edges,
|
|
@@ -6298,7 +6981,7 @@ var FlowEditor = ({
|
|
|
6298
6981
|
onInit,
|
|
6299
6982
|
...reactFlowProps
|
|
6300
6983
|
}) => {
|
|
6301
|
-
const theme2 =
|
|
6984
|
+
const theme2 = useTheme5();
|
|
6302
6985
|
const handleInit = useCallback7(
|
|
6303
6986
|
(instance) => {
|
|
6304
6987
|
if (onInit) {
|
|
@@ -6307,8 +6990,8 @@ var FlowEditor = ({
|
|
|
6307
6990
|
},
|
|
6308
6991
|
[onInit]
|
|
6309
6992
|
);
|
|
6310
|
-
return /* @__PURE__ */
|
|
6311
|
-
|
|
6993
|
+
return /* @__PURE__ */ jsx85(ReactFlowProvider, { children: /* @__PURE__ */ jsx85(
|
|
6994
|
+
Box22,
|
|
6312
6995
|
{
|
|
6313
6996
|
sx: {
|
|
6314
6997
|
width: "100%",
|
|
@@ -6320,7 +7003,7 @@ var FlowEditor = ({
|
|
|
6320
7003
|
...containerProps?.sx
|
|
6321
7004
|
},
|
|
6322
7005
|
...containerProps,
|
|
6323
|
-
children: /* @__PURE__ */
|
|
7006
|
+
children: /* @__PURE__ */ jsxs39(
|
|
6324
7007
|
ReactFlow,
|
|
6325
7008
|
{
|
|
6326
7009
|
nodes,
|
|
@@ -6342,7 +7025,7 @@ var FlowEditor = ({
|
|
|
6342
7025
|
},
|
|
6343
7026
|
...reactFlowProps,
|
|
6344
7027
|
children: [
|
|
6345
|
-
showBackground && /* @__PURE__ */
|
|
7028
|
+
showBackground && /* @__PURE__ */ jsx85(
|
|
6346
7029
|
Background,
|
|
6347
7030
|
{
|
|
6348
7031
|
variant: backgroundVariant,
|
|
@@ -6351,8 +7034,8 @@ var FlowEditor = ({
|
|
|
6351
7034
|
color: theme2.palette.divider
|
|
6352
7035
|
}
|
|
6353
7036
|
),
|
|
6354
|
-
showControls && /* @__PURE__ */
|
|
6355
|
-
showMinimap && /* @__PURE__ */
|
|
7037
|
+
showControls && /* @__PURE__ */ jsx85(Controls, {}),
|
|
7038
|
+
showMinimap && /* @__PURE__ */ jsx85(
|
|
6356
7039
|
MiniMap,
|
|
6357
7040
|
{
|
|
6358
7041
|
nodeColor: (node) => {
|
|
@@ -6375,15 +7058,15 @@ var FlowEditor = ({
|
|
|
6375
7058
|
};
|
|
6376
7059
|
|
|
6377
7060
|
// src/components/third-party/CodeEditor.tsx
|
|
6378
|
-
import { useCallback as useCallback8, useEffect as useEffect3, useState as
|
|
7061
|
+
import { useCallback as useCallback8, useEffect as useEffect3, useState as useState10, useRef as useRef2 } from "react";
|
|
6379
7062
|
import Editor from "@monaco-editor/react";
|
|
6380
|
-
import { Box as
|
|
7063
|
+
import { Box as Box23, IconButton as IconButton9, Tooltip as Tooltip7 } from "@mui/material";
|
|
6381
7064
|
import FullscreenIcon from "@mui/icons-material/Fullscreen";
|
|
6382
7065
|
import FullscreenExitIcon from "@mui/icons-material/FullscreenExit";
|
|
6383
7066
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
|
6384
|
-
import
|
|
7067
|
+
import ExpandMoreIcon3 from "@mui/icons-material/ExpandMore";
|
|
6385
7068
|
import ExpandLessIcon from "@mui/icons-material/ExpandLess";
|
|
6386
|
-
import { jsx as
|
|
7069
|
+
import { jsx as jsx86, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6387
7070
|
var configureTypeScript = (monaco) => {
|
|
6388
7071
|
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
6389
7072
|
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
@@ -6427,15 +7110,15 @@ var CodeEditor = ({
|
|
|
6427
7110
|
containerProps,
|
|
6428
7111
|
typeDefinitions
|
|
6429
7112
|
}) => {
|
|
6430
|
-
const [isEditorReady, setIsEditorReady] =
|
|
6431
|
-
const [validationErrors, setValidationErrors] =
|
|
6432
|
-
const [isFullscreen, setIsFullscreen] =
|
|
6433
|
-
const [tsCode, setTsCode] =
|
|
6434
|
-
const [actualHeight, setActualHeight] =
|
|
7113
|
+
const [isEditorReady, setIsEditorReady] = useState10(false);
|
|
7114
|
+
const [validationErrors, setValidationErrors] = useState10([]);
|
|
7115
|
+
const [isFullscreen, setIsFullscreen] = useState10(false);
|
|
7116
|
+
const [tsCode, setTsCode] = useState10(value);
|
|
7117
|
+
const [actualHeight, setActualHeight] = useState10(
|
|
6435
7118
|
typeof height === "number" ? `${height}px` : height
|
|
6436
7119
|
);
|
|
6437
|
-
const [showProblems, setShowProblems] =
|
|
6438
|
-
const [hasUserToggledProblems, setHasUserToggledProblems] =
|
|
7120
|
+
const [showProblems, setShowProblems] = useState10(false);
|
|
7121
|
+
const [hasUserToggledProblems, setHasUserToggledProblems] = useState10(false);
|
|
6439
7122
|
useEffect3(() => {
|
|
6440
7123
|
if (hasUserToggledProblems) return;
|
|
6441
7124
|
if (validationErrors.length > 0) {
|
|
@@ -6595,8 +7278,8 @@ var CodeEditor = ({
|
|
|
6595
7278
|
theme: themeProp || "vs",
|
|
6596
7279
|
...options2
|
|
6597
7280
|
};
|
|
6598
|
-
return /* @__PURE__ */
|
|
6599
|
-
|
|
7281
|
+
return /* @__PURE__ */ jsx86(
|
|
7282
|
+
Box23,
|
|
6600
7283
|
{
|
|
6601
7284
|
sx: {
|
|
6602
7285
|
display: "flex",
|
|
@@ -6616,8 +7299,8 @@ var CodeEditor = ({
|
|
|
6616
7299
|
pb: isFullscreen ? 2 : 0,
|
|
6617
7300
|
overflow: isFullscreen ? "hidden" : "visible"
|
|
6618
7301
|
},
|
|
6619
|
-
children: /* @__PURE__ */
|
|
6620
|
-
|
|
7302
|
+
children: /* @__PURE__ */ jsxs40(
|
|
7303
|
+
Box23,
|
|
6621
7304
|
{
|
|
6622
7305
|
sx: {
|
|
6623
7306
|
flex: 1,
|
|
@@ -6632,8 +7315,8 @@ var CodeEditor = ({
|
|
|
6632
7315
|
},
|
|
6633
7316
|
...containerProps,
|
|
6634
7317
|
children: [
|
|
6635
|
-
/* @__PURE__ */
|
|
6636
|
-
|
|
7318
|
+
/* @__PURE__ */ jsx86(Tooltip7, { title: isFullscreen ? "Exit Fullscreen" : "Fullscreen", children: /* @__PURE__ */ jsx86(
|
|
7319
|
+
IconButton9,
|
|
6637
7320
|
{
|
|
6638
7321
|
onClick: toggleFullscreen,
|
|
6639
7322
|
size: "small",
|
|
@@ -6650,11 +7333,11 @@ var CodeEditor = ({
|
|
|
6650
7333
|
},
|
|
6651
7334
|
boxShadow: 1
|
|
6652
7335
|
},
|
|
6653
|
-
children: isFullscreen ? /* @__PURE__ */
|
|
7336
|
+
children: isFullscreen ? /* @__PURE__ */ jsx86(FullscreenExitIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx86(FullscreenIcon, { fontSize: "small" })
|
|
6654
7337
|
}
|
|
6655
7338
|
) }),
|
|
6656
|
-
/* @__PURE__ */
|
|
6657
|
-
|
|
7339
|
+
/* @__PURE__ */ jsx86(
|
|
7340
|
+
Box23,
|
|
6658
7341
|
{
|
|
6659
7342
|
sx: {
|
|
6660
7343
|
flex: 1,
|
|
@@ -6665,7 +7348,7 @@ var CodeEditor = ({
|
|
|
6665
7348
|
position: "relative",
|
|
6666
7349
|
height: isFullscreen ? "100%" : actualHeight
|
|
6667
7350
|
},
|
|
6668
|
-
children: /* @__PURE__ */
|
|
7351
|
+
children: /* @__PURE__ */ jsx86(
|
|
6669
7352
|
Editor,
|
|
6670
7353
|
{
|
|
6671
7354
|
height: "100%",
|
|
@@ -6676,7 +7359,7 @@ var CodeEditor = ({
|
|
|
6676
7359
|
onMount: handleEditorDidMount,
|
|
6677
7360
|
theme: themeProp || "vs",
|
|
6678
7361
|
options: defaultOptions,
|
|
6679
|
-
loading: /* @__PURE__ */
|
|
7362
|
+
loading: /* @__PURE__ */ jsx86(Box23, { sx: { p: 2, textAlign: "center" }, children: "Loading Monaco Editor..." }),
|
|
6680
7363
|
beforeMount: (monaco) => {
|
|
6681
7364
|
console.log("CodeEditor: beforeMount called", { monaco: !!monaco });
|
|
6682
7365
|
}
|
|
@@ -6684,8 +7367,8 @@ var CodeEditor = ({
|
|
|
6684
7367
|
)
|
|
6685
7368
|
}
|
|
6686
7369
|
),
|
|
6687
|
-
validationErrors.length > 0 && /* @__PURE__ */
|
|
6688
|
-
|
|
7370
|
+
validationErrors.length > 0 && /* @__PURE__ */ jsxs40(
|
|
7371
|
+
Box23,
|
|
6689
7372
|
{
|
|
6690
7373
|
sx: {
|
|
6691
7374
|
borderTop: 1,
|
|
@@ -6698,8 +7381,8 @@ var CodeEditor = ({
|
|
|
6698
7381
|
transition: "max-height 0.2s ease"
|
|
6699
7382
|
},
|
|
6700
7383
|
children: [
|
|
6701
|
-
/* @__PURE__ */
|
|
6702
|
-
|
|
7384
|
+
/* @__PURE__ */ jsxs40(
|
|
7385
|
+
Box23,
|
|
6703
7386
|
{
|
|
6704
7387
|
sx: {
|
|
6705
7388
|
display: "flex",
|
|
@@ -6713,16 +7396,16 @@ var CodeEditor = ({
|
|
|
6713
7396
|
color: "text.secondary"
|
|
6714
7397
|
},
|
|
6715
7398
|
children: [
|
|
6716
|
-
/* @__PURE__ */
|
|
6717
|
-
/* @__PURE__ */
|
|
6718
|
-
/* @__PURE__ */
|
|
7399
|
+
/* @__PURE__ */ jsx86(ErrorOutlineIcon, { color: "error", fontSize: "small" }),
|
|
7400
|
+
/* @__PURE__ */ jsx86(Box23, { sx: { fontWeight: 600, color: "text.primary" }, children: "Problems" }),
|
|
7401
|
+
/* @__PURE__ */ jsxs40(Box23, { sx: { ml: 1 }, children: [
|
|
6719
7402
|
validationErrors.length,
|
|
6720
7403
|
" error",
|
|
6721
7404
|
validationErrors.length > 1 ? "s" : ""
|
|
6722
7405
|
] }),
|
|
6723
|
-
/* @__PURE__ */
|
|
6724
|
-
/* @__PURE__ */
|
|
6725
|
-
|
|
7406
|
+
/* @__PURE__ */ jsx86(Box23, { sx: { flex: 1 } }),
|
|
7407
|
+
/* @__PURE__ */ jsx86(
|
|
7408
|
+
IconButton9,
|
|
6726
7409
|
{
|
|
6727
7410
|
size: "small",
|
|
6728
7411
|
"aria-label": "Toggle problems panel",
|
|
@@ -6730,14 +7413,14 @@ var CodeEditor = ({
|
|
|
6730
7413
|
setHasUserToggledProblems(true);
|
|
6731
7414
|
setShowProblems((s) => !s);
|
|
6732
7415
|
},
|
|
6733
|
-
children: showProblems ? /* @__PURE__ */
|
|
7416
|
+
children: showProblems ? /* @__PURE__ */ jsx86(ExpandMoreIcon3, { fontSize: "small" }) : /* @__PURE__ */ jsx86(ExpandLessIcon, { fontSize: "small" })
|
|
6734
7417
|
}
|
|
6735
7418
|
)
|
|
6736
7419
|
]
|
|
6737
7420
|
}
|
|
6738
7421
|
),
|
|
6739
|
-
showProblems && /* @__PURE__ */
|
|
6740
|
-
|
|
7422
|
+
showProblems && /* @__PURE__ */ jsx86(Box23, { sx: { overflow: "auto" }, children: validationErrors.map((error, index) => /* @__PURE__ */ jsxs40(
|
|
7423
|
+
Box23,
|
|
6741
7424
|
{
|
|
6742
7425
|
onClick: () => gotoMarker(error),
|
|
6743
7426
|
sx: {
|
|
@@ -6753,12 +7436,12 @@ var CodeEditor = ({
|
|
|
6753
7436
|
fontSize: "0.85rem"
|
|
6754
7437
|
},
|
|
6755
7438
|
children: [
|
|
6756
|
-
/* @__PURE__ */
|
|
6757
|
-
/* @__PURE__ */
|
|
7439
|
+
/* @__PURE__ */ jsx86(ErrorOutlineIcon, { color: "error", sx: { fontSize: 18 } }),
|
|
7440
|
+
/* @__PURE__ */ jsxs40(Box23, { sx: { color: "text.secondary", width: 64 }, children: [
|
|
6758
7441
|
"Line ",
|
|
6759
7442
|
error.startLineNumber
|
|
6760
7443
|
] }),
|
|
6761
|
-
/* @__PURE__ */
|
|
7444
|
+
/* @__PURE__ */ jsx86(Box23, { sx: { color: "text.primary", flex: 1, minWidth: 0 }, children: error.message })
|
|
6762
7445
|
]
|
|
6763
7446
|
},
|
|
6764
7447
|
`${error.startLineNumber}-${error.startColumn}-${index}`
|
|
@@ -6788,7 +7471,7 @@ export {
|
|
|
6788
7471
|
BackgroundVariant2 as BackgroundVariant,
|
|
6789
7472
|
Badge,
|
|
6790
7473
|
BarTrackingIcon,
|
|
6791
|
-
|
|
7474
|
+
Box15 as Box,
|
|
6792
7475
|
Breadcrumbs,
|
|
6793
7476
|
Button,
|
|
6794
7477
|
ButtonGroup,
|
|
@@ -6812,6 +7495,10 @@ export {
|
|
|
6812
7495
|
Container2 as Container,
|
|
6813
7496
|
Controls2 as Controls,
|
|
6814
7497
|
DecentralizedServerIcon,
|
|
7498
|
+
DeploymentDashboardCard,
|
|
7499
|
+
DeploymentDashboardPanel,
|
|
7500
|
+
DeploymentDashboardTree,
|
|
7501
|
+
DeploymentEntityContextMenu,
|
|
6815
7502
|
Dialog,
|
|
6816
7503
|
DiscordIcon,
|
|
6817
7504
|
Divider4 as Divider,
|
|
@@ -6854,7 +7541,7 @@ export {
|
|
|
6854
7541
|
OnboardingProvider,
|
|
6855
7542
|
Pagination,
|
|
6856
7543
|
Panel2 as Panel,
|
|
6857
|
-
Paper,
|
|
7544
|
+
Paper2 as Paper,
|
|
6858
7545
|
PeriodSelect,
|
|
6859
7546
|
Progress,
|
|
6860
7547
|
QRCode,
|
|
@@ -6887,11 +7574,12 @@ export {
|
|
|
6887
7574
|
Toolbar,
|
|
6888
7575
|
Tooltip6 as Tooltip,
|
|
6889
7576
|
Truncate,
|
|
6890
|
-
|
|
7577
|
+
Typography12 as Typography,
|
|
6891
7578
|
UploadFileIcon,
|
|
6892
7579
|
UploadFolderIcon,
|
|
6893
7580
|
WorkspaceSelectorButton,
|
|
6894
7581
|
colors,
|
|
7582
|
+
contextMenuItems,
|
|
6895
7583
|
theme,
|
|
6896
7584
|
useIsDesktop,
|
|
6897
7585
|
useIsMobile,
|