@cere/cere-design-system 0.0.18 → 0.0.20
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 +305 -9
- package/dist/index.d.ts +305 -9
- package/dist/index.js +998 -548
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1053 -608
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,12 +72,13 @@ __export(index_exports, {
|
|
|
72
72
|
DeploymentEntityContextMenu: () => DeploymentEntityContextMenu,
|
|
73
73
|
Dialog: () => Dialog,
|
|
74
74
|
DiscordIcon: () => DiscordIcon,
|
|
75
|
-
Divider: () =>
|
|
75
|
+
Divider: () => Divider6,
|
|
76
76
|
DownloadIcon: () => DownloadIcon,
|
|
77
77
|
Drawer: () => Drawer2,
|
|
78
78
|
Dropdown: () => Dropdown,
|
|
79
79
|
DropdownAnchor: () => DropdownAnchor,
|
|
80
80
|
EmptyState: () => EmptyState,
|
|
81
|
+
EntityHeader: () => EntityHeader,
|
|
81
82
|
FilledFolderIcon: () => FilledFolderIcon,
|
|
82
83
|
FlowEditor: () => FlowEditor,
|
|
83
84
|
FolderIcon: () => FolderIcon,
|
|
@@ -87,6 +88,7 @@ __export(index_exports, {
|
|
|
87
88
|
FormLabel: () => import_material4.FormLabel,
|
|
88
89
|
GithubLogoIcon: () => GithubLogoIcon,
|
|
89
90
|
Grid: () => import_material32.Grid2,
|
|
91
|
+
IDBlock: () => IDBlock,
|
|
90
92
|
IconButton: () => IconButton,
|
|
91
93
|
InputAdornment: () => import_material4.InputAdornment,
|
|
92
94
|
InputLabel: () => import_material4.InputLabel,
|
|
@@ -119,6 +121,7 @@ __export(index_exports, {
|
|
|
119
121
|
Radio: () => Radio,
|
|
120
122
|
RadioGroup: () => import_RadioGroup.default,
|
|
121
123
|
RightArrowIcon: () => RightArrowIcon,
|
|
124
|
+
RoleBadge: () => RoleBadge,
|
|
122
125
|
SearchField: () => SearchField,
|
|
123
126
|
Selector: () => Selector,
|
|
124
127
|
ServiceSelectorButton: () => ServiceSelectorButton,
|
|
@@ -151,6 +154,8 @@ __export(index_exports, {
|
|
|
151
154
|
WorkspaceSelectorButton: () => WorkspaceSelectorButton,
|
|
152
155
|
colors: () => colors,
|
|
153
156
|
contextMenuItems: () => contextMenuItems,
|
|
157
|
+
robPaletteExtended: () => robPaletteExtended,
|
|
158
|
+
robPrimaryPalette: () => robPrimaryPalette,
|
|
154
159
|
theme: () => theme,
|
|
155
160
|
useIsDesktop: () => useIsDesktop,
|
|
156
161
|
useIsMobile: () => useIsMobile,
|
|
@@ -254,7 +259,54 @@ var deploymentSurfaceTokens = {
|
|
|
254
259
|
/** Workspace card shadow */
|
|
255
260
|
workspaceShadow: "0px 8px 12px rgba(26, 10, 124, 0.1)",
|
|
256
261
|
/** Hover state for context menu items */
|
|
257
|
-
hoverLight: "#F0F1FF"
|
|
262
|
+
hoverLight: "#F0F1FF",
|
|
263
|
+
/** Generic hover overlay (buttons, icon-buttons, rows) */
|
|
264
|
+
hoverOverlay: "rgba(0, 0, 0, 0.04)",
|
|
265
|
+
/** Blue-50 highlight background for active menu items (Figma blue-50) */
|
|
266
|
+
highlightBg: "#f5f6ff",
|
|
267
|
+
/** Blue-50 highlight background hover state */
|
|
268
|
+
highlightBgHover: "#eceeff",
|
|
269
|
+
/** Blue-100 highlight border for active menu items (Figma blue-100) */
|
|
270
|
+
highlightBorder: "#cbcffb",
|
|
271
|
+
/** Switch track enabled (Figma basic/green #53b96a) */
|
|
272
|
+
switchGreen: "#53b96a",
|
|
273
|
+
/** Switch track disabled/off (Figma neutral track) */
|
|
274
|
+
switchTrackOff: "#e0e0e0"
|
|
275
|
+
};
|
|
276
|
+
var robPrimaryPalette = {
|
|
277
|
+
/** Primary magenta/pink - Figma node 11-1394 */
|
|
278
|
+
fandango: "#BD32A7",
|
|
279
|
+
/** Vivid purple - Figma node 11-1407 */
|
|
280
|
+
electricViolet: "#8B00EC",
|
|
281
|
+
/** Mid-tone purple - Figma node 11-1420 */
|
|
282
|
+
ultraViolet: "#6750A4",
|
|
283
|
+
/** Light lavender - Figma node 11-1433 */
|
|
284
|
+
periwinkle: "#D0BCFF"
|
|
285
|
+
};
|
|
286
|
+
var robPaletteExtended = {
|
|
287
|
+
// Dark shades (6 colors)
|
|
288
|
+
dark1: "#280e61",
|
|
289
|
+
dark2: "#531584",
|
|
290
|
+
dark3: "#710c7a",
|
|
291
|
+
dark4: "#920269",
|
|
292
|
+
dark5: "#c71454",
|
|
293
|
+
dark6: "#ff6341",
|
|
294
|
+
// Bright shades (4 colors)
|
|
295
|
+
bright1: "#5311e3",
|
|
296
|
+
bright2: "#eb03ff",
|
|
297
|
+
bright3: "#ff17ab",
|
|
298
|
+
bright4: "#ff6a85",
|
|
299
|
+
// Light shades (5 colors)
|
|
300
|
+
light1: "#baa0f4",
|
|
301
|
+
light2: "#d399fc",
|
|
302
|
+
light3: "#f79aff",
|
|
303
|
+
light4: "#faabde",
|
|
304
|
+
light5: "#ffc4ce",
|
|
305
|
+
// Near-black shades (4 colors)
|
|
306
|
+
nearBlack1: "#0b0f18",
|
|
307
|
+
nearBlack2: "#0d0627",
|
|
308
|
+
nearBlack3: "#161d30",
|
|
309
|
+
nearBlack4: "#23194b"
|
|
258
310
|
};
|
|
259
311
|
var baseTheme = (0, import_styles.createTheme)({
|
|
260
312
|
palette: {
|
|
@@ -1956,6 +2008,17 @@ var useIsMobile = () => {
|
|
|
1956
2008
|
var import_Button = __toESM(require("@mui/material/Button"));
|
|
1957
2009
|
var import_styles2 = require("@mui/material/styles");
|
|
1958
2010
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
2011
|
+
var BUTTON_SPACING = {
|
|
2012
|
+
borderRadius: "8px",
|
|
2013
|
+
padding: "8px 16px",
|
|
2014
|
+
iconMargin: "8px"
|
|
2015
|
+
};
|
|
2016
|
+
var BUTTON_TYPOGRAPHY = {
|
|
2017
|
+
fontSize: "16px",
|
|
2018
|
+
fontWeight: 500,
|
|
2019
|
+
lineHeight: 1.5,
|
|
2020
|
+
letterSpacing: "0.8px"
|
|
2021
|
+
};
|
|
1959
2022
|
var StyledPrimaryButton = (0, import_styles2.styled)(import_Button.default)(() => ({
|
|
1960
2023
|
backgroundColor: colors.primary.main,
|
|
1961
2024
|
color: colors.primary.contrastText,
|
|
@@ -1970,21 +2033,42 @@ var StyledPrimaryButton = (0, import_styles2.styled)(import_Button.default)(() =
|
|
|
1970
2033
|
color: colors.grey[500]
|
|
1971
2034
|
}
|
|
1972
2035
|
}));
|
|
2036
|
+
var iconStyles = {
|
|
2037
|
+
"& > *": {
|
|
2038
|
+
fontSize: BUTTON_TYPOGRAPHY.fontSize
|
|
2039
|
+
}
|
|
2040
|
+
};
|
|
1973
2041
|
var StyledSecondaryButton = (0, import_styles2.styled)(import_Button.default)(() => ({
|
|
1974
|
-
backgroundColor:
|
|
1975
|
-
color:
|
|
1976
|
-
border: `1px solid ${
|
|
2042
|
+
backgroundColor: deploymentSurfaceTokens.surfaceHigh,
|
|
2043
|
+
color: deploymentSurfaceTokens.textPrimary,
|
|
2044
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
2045
|
+
borderRadius: BUTTON_SPACING.borderRadius,
|
|
2046
|
+
padding: BUTTON_SPACING.padding,
|
|
2047
|
+
textTransform: "capitalize",
|
|
2048
|
+
letterSpacing: BUTTON_TYPOGRAPHY.letterSpacing,
|
|
2049
|
+
fontSize: BUTTON_TYPOGRAPHY.fontSize,
|
|
2050
|
+
fontWeight: BUTTON_TYPOGRAPHY.fontWeight,
|
|
2051
|
+
lineHeight: BUTTON_TYPOGRAPHY.lineHeight,
|
|
1977
2052
|
"&:hover": {
|
|
1978
2053
|
backgroundColor: colors.background.selected,
|
|
1979
|
-
borderColor:
|
|
2054
|
+
borderColor: deploymentSurfaceTokens.strokeOutside
|
|
1980
2055
|
},
|
|
1981
2056
|
"&:active": {
|
|
1982
2057
|
backgroundColor: colors.background.selected,
|
|
1983
|
-
borderColor:
|
|
2058
|
+
borderColor: deploymentSurfaceTokens.borderDefault
|
|
1984
2059
|
},
|
|
1985
2060
|
"&:disabled": {
|
|
1986
2061
|
borderColor: colors.grey[300],
|
|
1987
|
-
color: colors.grey[500]
|
|
2062
|
+
color: colors.grey[500],
|
|
2063
|
+
backgroundColor: colors.grey[50]
|
|
2064
|
+
},
|
|
2065
|
+
"& .MuiButton-startIcon": {
|
|
2066
|
+
marginRight: BUTTON_SPACING.iconMargin,
|
|
2067
|
+
...iconStyles
|
|
2068
|
+
},
|
|
2069
|
+
"& .MuiButton-endIcon": {
|
|
2070
|
+
marginLeft: BUTTON_SPACING.iconMargin,
|
|
2071
|
+
...iconStyles
|
|
1988
2072
|
}
|
|
1989
2073
|
}));
|
|
1990
2074
|
var StyledTertiaryButton = (0, import_styles2.styled)(import_Button.default)(() => ({
|
|
@@ -2000,6 +2084,11 @@ var StyledTertiaryButton = (0, import_styles2.styled)(import_Button.default)(()
|
|
|
2000
2084
|
color: colors.grey[500]
|
|
2001
2085
|
}
|
|
2002
2086
|
}));
|
|
2087
|
+
var BUTTON_COMPONENTS = {
|
|
2088
|
+
primary: StyledPrimaryButton,
|
|
2089
|
+
secondary: StyledSecondaryButton,
|
|
2090
|
+
tertiary: StyledTertiaryButton
|
|
2091
|
+
};
|
|
2003
2092
|
var Button = ({
|
|
2004
2093
|
variant = "primary",
|
|
2005
2094
|
children,
|
|
@@ -2007,21 +2096,13 @@ var Button = ({
|
|
|
2007
2096
|
endIcon,
|
|
2008
2097
|
...props
|
|
2009
2098
|
}) => {
|
|
2099
|
+
const ButtonComponent = BUTTON_COMPONENTS[variant];
|
|
2010
2100
|
const buttonProps = {
|
|
2011
2101
|
...props,
|
|
2012
2102
|
startIcon,
|
|
2013
2103
|
endIcon
|
|
2014
2104
|
};
|
|
2015
|
-
|
|
2016
|
-
case "primary":
|
|
2017
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledPrimaryButton, { ...buttonProps, children });
|
|
2018
|
-
case "secondary":
|
|
2019
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledSecondaryButton, { ...buttonProps, children });
|
|
2020
|
-
case "tertiary":
|
|
2021
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledTertiaryButton, { ...buttonProps, children });
|
|
2022
|
-
default:
|
|
2023
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(StyledPrimaryButton, { ...buttonProps, children });
|
|
2024
|
-
}
|
|
2105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(ButtonComponent, { ...buttonProps, children });
|
|
2025
2106
|
};
|
|
2026
2107
|
|
|
2027
2108
|
// src/components/buttons/IconButton.tsx
|
|
@@ -4328,11 +4409,151 @@ var Chip2 = ({
|
|
|
4328
4409
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(StyledDefaultChip, { ...props });
|
|
4329
4410
|
};
|
|
4330
4411
|
|
|
4331
|
-
// src/components/feedback/
|
|
4332
|
-
var
|
|
4412
|
+
// src/components/feedback/RoleBadge.tsx
|
|
4413
|
+
var import_Chip2 = __toESM(require("@mui/material/Chip"));
|
|
4333
4414
|
var import_styles18 = require("@mui/material/styles");
|
|
4334
4415
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
4335
|
-
var
|
|
4416
|
+
var StyledRoleBadge = (0, import_styles18.styled)(import_Chip2.default)(() => ({
|
|
4417
|
+
// Pill shape - 100px border radius
|
|
4418
|
+
borderRadius: "100px",
|
|
4419
|
+
// Typography specifications from Figma
|
|
4420
|
+
fontSize: "13px",
|
|
4421
|
+
fontWeight: 400,
|
|
4422
|
+
lineHeight: "18px",
|
|
4423
|
+
letterSpacing: "0.16px",
|
|
4424
|
+
// Padding specifications from Figma
|
|
4425
|
+
padding: "3px 4px",
|
|
4426
|
+
height: "auto",
|
|
4427
|
+
// Outlined style (no background fill)
|
|
4428
|
+
"& .MuiChip-label": {
|
|
4429
|
+
padding: "0 8px"
|
|
4430
|
+
}
|
|
4431
|
+
}));
|
|
4432
|
+
var RoleBadge = ({
|
|
4433
|
+
label,
|
|
4434
|
+
color = "primary",
|
|
4435
|
+
size: size3 = "small",
|
|
4436
|
+
...props
|
|
4437
|
+
}) => {
|
|
4438
|
+
if (!label || label.trim() === "") {
|
|
4439
|
+
return null;
|
|
4440
|
+
}
|
|
4441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4442
|
+
StyledRoleBadge,
|
|
4443
|
+
{
|
|
4444
|
+
label,
|
|
4445
|
+
variant: "outlined",
|
|
4446
|
+
color,
|
|
4447
|
+
size: size3,
|
|
4448
|
+
...props
|
|
4449
|
+
}
|
|
4450
|
+
);
|
|
4451
|
+
};
|
|
4452
|
+
|
|
4453
|
+
// src/components/feedback/IDBlock.tsx
|
|
4454
|
+
var import_Box = __toESM(require("@mui/material/Box"));
|
|
4455
|
+
var import_Typography = __toESM(require("@mui/material/Typography"));
|
|
4456
|
+
var import_IconButton2 = __toESM(require("@mui/material/IconButton"));
|
|
4457
|
+
var import_ContentCopy = __toESM(require("@mui/icons-material/ContentCopy"));
|
|
4458
|
+
var import_styles19 = require("@mui/material/styles");
|
|
4459
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
4460
|
+
var IDContainer = (0, import_styles19.styled)(import_Box.default)(() => ({
|
|
4461
|
+
display: "inline-flex",
|
|
4462
|
+
alignItems: "center",
|
|
4463
|
+
gap: "4px",
|
|
4464
|
+
padding: "8px 16px",
|
|
4465
|
+
backgroundColor: deploymentSurfaceTokens.surfaceHigh,
|
|
4466
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
4467
|
+
borderRadius: "8px"
|
|
4468
|
+
}));
|
|
4469
|
+
var IDBlock = ({
|
|
4470
|
+
id,
|
|
4471
|
+
label = "ID",
|
|
4472
|
+
entityType = "entity",
|
|
4473
|
+
onCopy
|
|
4474
|
+
}) => {
|
|
4475
|
+
const { showMessage } = useMessages();
|
|
4476
|
+
if (!id || id.trim() === "") {
|
|
4477
|
+
return null;
|
|
4478
|
+
}
|
|
4479
|
+
const handleCopy = async () => {
|
|
4480
|
+
try {
|
|
4481
|
+
await navigator.clipboard.writeText(id);
|
|
4482
|
+
showMessage({
|
|
4483
|
+
message: "ID copied to clipboard",
|
|
4484
|
+
appearance: "success",
|
|
4485
|
+
autoDismiss: true
|
|
4486
|
+
});
|
|
4487
|
+
onCopy?.();
|
|
4488
|
+
} catch {
|
|
4489
|
+
showMessage({
|
|
4490
|
+
message: "Failed to copy ID",
|
|
4491
|
+
appearance: "error",
|
|
4492
|
+
autoDismiss: true
|
|
4493
|
+
});
|
|
4494
|
+
}
|
|
4495
|
+
};
|
|
4496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(IDContainer, { children: [
|
|
4497
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
4498
|
+
import_Typography.default,
|
|
4499
|
+
{
|
|
4500
|
+
variant: "body2",
|
|
4501
|
+
sx: {
|
|
4502
|
+
fontSize: "13px",
|
|
4503
|
+
fontWeight: 500,
|
|
4504
|
+
color: deploymentSurfaceTokens.textSecondary
|
|
4505
|
+
},
|
|
4506
|
+
children: [
|
|
4507
|
+
label,
|
|
4508
|
+
":"
|
|
4509
|
+
]
|
|
4510
|
+
}
|
|
4511
|
+
),
|
|
4512
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4513
|
+
import_Typography.default,
|
|
4514
|
+
{
|
|
4515
|
+
variant: "body2",
|
|
4516
|
+
sx: {
|
|
4517
|
+
fontSize: "13px",
|
|
4518
|
+
fontWeight: 500,
|
|
4519
|
+
color: deploymentSurfaceTokens.textPrimary,
|
|
4520
|
+
userSelect: "all"
|
|
4521
|
+
// Allow easy text selection
|
|
4522
|
+
},
|
|
4523
|
+
children: id
|
|
4524
|
+
}
|
|
4525
|
+
),
|
|
4526
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4527
|
+
import_IconButton2.default,
|
|
4528
|
+
{
|
|
4529
|
+
onClick: handleCopy,
|
|
4530
|
+
size: "small",
|
|
4531
|
+
"aria-label": `Copy ${entityType} ID ${id}`,
|
|
4532
|
+
sx: {
|
|
4533
|
+
padding: "4px",
|
|
4534
|
+
"&:hover": {
|
|
4535
|
+
backgroundColor: deploymentSurfaceTokens.hoverOverlay
|
|
4536
|
+
}
|
|
4537
|
+
},
|
|
4538
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
4539
|
+
import_ContentCopy.default,
|
|
4540
|
+
{
|
|
4541
|
+
sx: {
|
|
4542
|
+
fontSize: "16px",
|
|
4543
|
+
color: deploymentSurfaceTokens.textSecondary
|
|
4544
|
+
}
|
|
4545
|
+
}
|
|
4546
|
+
)
|
|
4547
|
+
}
|
|
4548
|
+
)
|
|
4549
|
+
] });
|
|
4550
|
+
};
|
|
4551
|
+
|
|
4552
|
+
// src/components/feedback/Tooltip.tsx
|
|
4553
|
+
var import_Tooltip = __toESM(require("@mui/material/Tooltip"));
|
|
4554
|
+
var import_styles20 = require("@mui/material/styles");
|
|
4555
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
4556
|
+
var StyledTooltip = (0, import_styles20.styled)(import_Tooltip.default)({
|
|
4336
4557
|
"& .MuiTooltip-tooltip": {
|
|
4337
4558
|
backgroundColor: colors.grey[800],
|
|
4338
4559
|
color: "#FFFFFF",
|
|
@@ -4345,12 +4566,12 @@ var StyledTooltip = (0, import_styles18.styled)(import_Tooltip.default)({
|
|
|
4345
4566
|
}
|
|
4346
4567
|
});
|
|
4347
4568
|
var Tooltip6 = (props) => {
|
|
4348
|
-
return /* @__PURE__ */ (0,
|
|
4569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(StyledTooltip, { ...props });
|
|
4349
4570
|
};
|
|
4350
4571
|
|
|
4351
4572
|
// src/components/feedback/Progress.tsx
|
|
4352
4573
|
var import_material19 = require("@mui/material");
|
|
4353
|
-
var
|
|
4574
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
4354
4575
|
var StyledLinearProgress = (0, import_material19.styled)(import_material19.LinearProgress)({
|
|
4355
4576
|
height: 4,
|
|
4356
4577
|
borderRadius: 2,
|
|
@@ -4370,9 +4591,9 @@ var Progress = ({
|
|
|
4370
4591
|
thickness = 4
|
|
4371
4592
|
}) => {
|
|
4372
4593
|
if (variant === "circular") {
|
|
4373
|
-
return /* @__PURE__ */ (0,
|
|
4594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(StyledCircularProgress, { size: size3, thickness });
|
|
4374
4595
|
}
|
|
4375
|
-
return /* @__PURE__ */ (0,
|
|
4596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4376
4597
|
StyledLinearProgress,
|
|
4377
4598
|
{
|
|
4378
4599
|
variant: value !== void 0 ? "determinate" : "indeterminate",
|
|
@@ -4383,9 +4604,9 @@ var Progress = ({
|
|
|
4383
4604
|
|
|
4384
4605
|
// src/components/navigation/Tab.tsx
|
|
4385
4606
|
var import_Tab = __toESM(require("@mui/material/Tab"));
|
|
4386
|
-
var
|
|
4387
|
-
var
|
|
4388
|
-
var StyledTab = (0,
|
|
4607
|
+
var import_styles21 = require("@mui/material/styles");
|
|
4608
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
4609
|
+
var StyledTab = (0, import_styles21.styled)(import_Tab.default)({
|
|
4389
4610
|
textTransform: "none",
|
|
4390
4611
|
minHeight: "48px",
|
|
4391
4612
|
fontWeight: 400,
|
|
@@ -4406,15 +4627,15 @@ var Tab = ({
|
|
|
4406
4627
|
label,
|
|
4407
4628
|
...props
|
|
4408
4629
|
}) => {
|
|
4409
|
-
const tabLabel = badge !== void 0 ? /* @__PURE__ */ (0,
|
|
4410
|
-
return /* @__PURE__ */ (0,
|
|
4630
|
+
const tabLabel = badge !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Badge, { variant: badgeVariant, badgeContent: badge, children: label }) : label;
|
|
4631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(StyledTab, { label: tabLabel, ...props });
|
|
4411
4632
|
};
|
|
4412
4633
|
|
|
4413
4634
|
// src/components/navigation/Menu.tsx
|
|
4414
4635
|
var import_material20 = require("@mui/material");
|
|
4415
|
-
var
|
|
4416
|
-
var
|
|
4417
|
-
var StyledMenu = (0,
|
|
4636
|
+
var import_styles22 = require("@mui/material/styles");
|
|
4637
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
4638
|
+
var StyledMenu = (0, import_styles22.styled)(import_material20.Menu)({
|
|
4418
4639
|
"& .MuiPaper-root": {
|
|
4419
4640
|
borderRadius: 8,
|
|
4420
4641
|
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.15)",
|
|
@@ -4428,7 +4649,7 @@ var StyledMenu = (0, import_styles20.styled)(import_material20.Menu)({
|
|
|
4428
4649
|
}
|
|
4429
4650
|
});
|
|
4430
4651
|
var Menu3 = ({ anchorEl, onClose, children, ...props }) => {
|
|
4431
|
-
return /* @__PURE__ */ (0,
|
|
4652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
4432
4653
|
StyledMenu,
|
|
4433
4654
|
{
|
|
4434
4655
|
anchorEl,
|
|
@@ -4454,20 +4675,20 @@ var MenuItem = ({
|
|
|
4454
4675
|
disabled = false,
|
|
4455
4676
|
divider = false
|
|
4456
4677
|
}) => {
|
|
4457
|
-
return /* @__PURE__ */ (0,
|
|
4458
|
-
/* @__PURE__ */ (0,
|
|
4459
|
-
icon && /* @__PURE__ */ (0,
|
|
4460
|
-
/* @__PURE__ */ (0,
|
|
4678
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
4679
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_material20.MenuItem, { onClick, disabled, children: [
|
|
4680
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material20.ListItemIcon, { children: icon }),
|
|
4681
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material20.ListItemText, { children: label })
|
|
4461
4682
|
] }),
|
|
4462
|
-
divider && /* @__PURE__ */ (0,
|
|
4683
|
+
divider && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material20.Divider, {})
|
|
4463
4684
|
] });
|
|
4464
4685
|
};
|
|
4465
4686
|
|
|
4466
4687
|
// src/components/navigation/Pagination.tsx
|
|
4467
4688
|
var import_Pagination = __toESM(require("@mui/material/Pagination"));
|
|
4468
|
-
var
|
|
4469
|
-
var
|
|
4470
|
-
var StyledPagination = (0,
|
|
4689
|
+
var import_styles23 = require("@mui/material/styles");
|
|
4690
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
4691
|
+
var StyledPagination = (0, import_styles23.styled)(import_Pagination.default)({
|
|
4471
4692
|
"& .MuiPaginationItem-root": {
|
|
4472
4693
|
"&.Mui-selected": {
|
|
4473
4694
|
backgroundColor: colors.primary.main,
|
|
@@ -4482,7 +4703,7 @@ var StyledPagination = (0, import_styles21.styled)(import_Pagination.default)({
|
|
|
4482
4703
|
}
|
|
4483
4704
|
});
|
|
4484
4705
|
var Pagination = ({ color = "primary", ...props }) => {
|
|
4485
|
-
return /* @__PURE__ */ (0,
|
|
4706
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(StyledPagination, { color, ...props });
|
|
4486
4707
|
};
|
|
4487
4708
|
|
|
4488
4709
|
// src/components/navigation/Selector.tsx
|
|
@@ -4494,20 +4715,20 @@ var import_Add3 = __toESM(require("@mui/icons-material/Add"));
|
|
|
4494
4715
|
|
|
4495
4716
|
// src/components/layout/Link.tsx
|
|
4496
4717
|
var import_Link = __toESM(require("@mui/material/Link"));
|
|
4497
|
-
var
|
|
4498
|
-
var
|
|
4499
|
-
var StyledLink = (0,
|
|
4718
|
+
var import_styles24 = require("@mui/material/styles");
|
|
4719
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
4720
|
+
var StyledLink = (0, import_styles24.styled)(import_Link.default)({
|
|
4500
4721
|
color: colors.primary.main,
|
|
4501
4722
|
"&:hover": {
|
|
4502
4723
|
color: colors.primary.light
|
|
4503
4724
|
}
|
|
4504
4725
|
});
|
|
4505
4726
|
var Link3 = ({ underline = "hover", ...props }) => {
|
|
4506
|
-
return /* @__PURE__ */ (0,
|
|
4727
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(StyledLink, { underline, ...props });
|
|
4507
4728
|
};
|
|
4508
4729
|
|
|
4509
4730
|
// src/components/navigation/Selector.tsx
|
|
4510
|
-
var
|
|
4731
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
4511
4732
|
var Selector = ({
|
|
4512
4733
|
options: options2,
|
|
4513
4734
|
selectedId,
|
|
@@ -4539,14 +4760,14 @@ var Selector = ({
|
|
|
4539
4760
|
onSelect(id);
|
|
4540
4761
|
handleClose();
|
|
4541
4762
|
};
|
|
4542
|
-
const defaultRenderSelected = (option) => /* @__PURE__ */ (0,
|
|
4543
|
-
option.avatar ? /* @__PURE__ */ (0,
|
|
4544
|
-
/* @__PURE__ */ (0,
|
|
4763
|
+
const defaultRenderSelected = (option) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_material21.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
4764
|
+
option.avatar ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { src: option.avatar, sx: { width: 20, height: 20 } }) : option.icon ? option.icon : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { sx: { width: 20, height: 20, bgcolor: colors.primary.main, fontSize: "0.7rem" }, children: option.name.charAt(0) }),
|
|
4765
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Typography, { variant: "body2", children: option.name })
|
|
4545
4766
|
] });
|
|
4546
4767
|
if (compact) {
|
|
4547
|
-
return /* @__PURE__ */ (0,
|
|
4548
|
-
/* @__PURE__ */ (0,
|
|
4549
|
-
/* @__PURE__ */ (0,
|
|
4768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
4769
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(IconButton, { onClick: handleOpen, size: "small", children: selectedOption ? selectedOption.avatar ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { src: selectedOption.avatar, sx: { width: 32, height: 32 } }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { sx: { width: 32, height: 32, bgcolor: colors.primary.main }, children: selectedOption.name.charAt(0) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { sx: { width: 32, height: 32, bgcolor: colors.grey[400] }, children: "?" }) }),
|
|
4770
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4550
4771
|
import_material21.Menu,
|
|
4551
4772
|
{
|
|
4552
4773
|
anchorEl,
|
|
@@ -4555,8 +4776,8 @@ var Selector = ({
|
|
|
4555
4776
|
PaperProps: {
|
|
4556
4777
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4557
4778
|
},
|
|
4558
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
4559
|
-
options2.length > 5 && /* @__PURE__ */ (0,
|
|
4779
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.CircularProgress, { size: 24 }) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
4780
|
+
options2.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4560
4781
|
TextField,
|
|
4561
4782
|
{
|
|
4562
4783
|
size: "small",
|
|
@@ -4565,31 +4786,31 @@ var Selector = ({
|
|
|
4565
4786
|
value: searchTerm,
|
|
4566
4787
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
4567
4788
|
InputProps: {
|
|
4568
|
-
startAdornment: /* @__PURE__ */ (0,
|
|
4789
|
+
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_Search4.default, { fontSize: "small" }) })
|
|
4569
4790
|
}
|
|
4570
4791
|
}
|
|
4571
4792
|
) }),
|
|
4572
|
-
/* @__PURE__ */ (0,
|
|
4573
|
-
filteredOptions.map((option) => /* @__PURE__ */ (0,
|
|
4793
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_material21.List, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4794
|
+
filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4574
4795
|
import_material21.ListItemButton,
|
|
4575
4796
|
{
|
|
4576
4797
|
selected: option.id === selectedId,
|
|
4577
4798
|
onClick: () => handleSelect(option.id),
|
|
4578
4799
|
disabled: option.disabled,
|
|
4579
4800
|
children: [
|
|
4580
|
-
option.avatar ? /* @__PURE__ */ (0,
|
|
4581
|
-
/* @__PURE__ */ (0,
|
|
4801
|
+
option.avatar ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { src: option.avatar }) }) : option.icon ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemAvatar, { children: option.icon }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { sx: { bgcolor: colors.primary.main }, children: option.name.charAt(0) }) }),
|
|
4802
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemText, { primary: option.name, secondary: option.description })
|
|
4582
4803
|
]
|
|
4583
4804
|
},
|
|
4584
4805
|
option.id
|
|
4585
4806
|
)),
|
|
4586
|
-
filteredOptions.length === 0 && /* @__PURE__ */ (0,
|
|
4807
|
+
filteredOptions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Typography, { variant: "body2", color: "text.secondary", children: emptyMessage }) })
|
|
4587
4808
|
] }),
|
|
4588
|
-
onCreate && /* @__PURE__ */ (0,
|
|
4809
|
+
onCreate && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { p: 1, borderTop: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4589
4810
|
Button,
|
|
4590
4811
|
{
|
|
4591
4812
|
fullWidth: true,
|
|
4592
|
-
startIcon: /* @__PURE__ */ (0,
|
|
4813
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_Add3.default, {}),
|
|
4593
4814
|
onClick: () => {
|
|
4594
4815
|
onCreate();
|
|
4595
4816
|
handleClose();
|
|
@@ -4602,12 +4823,12 @@ var Selector = ({
|
|
|
4602
4823
|
)
|
|
4603
4824
|
] });
|
|
4604
4825
|
}
|
|
4605
|
-
return /* @__PURE__ */ (0,
|
|
4606
|
-
/* @__PURE__ */ (0,
|
|
4607
|
-
selectedOption ? renderSelected ? /* @__PURE__ */ (0,
|
|
4608
|
-
/* @__PURE__ */ (0,
|
|
4826
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
4827
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_material21.Box, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
4828
|
+
selectedOption ? renderSelected ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Link3, { onClick: handleOpen, underline: "hover", children: renderSelected(selectedOption) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Link3, { onClick: handleOpen, underline: "hover", children: defaultRenderSelected(selectedOption) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Typography, { variant: "body2", color: "text.secondary", children: placeholder }),
|
|
4829
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(IconButton, { onClick: handleOpen, size: "small", sx: { p: 0.2, ml: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_KeyboardArrowDown3.default, { fontSize: "small" }) })
|
|
4609
4830
|
] }),
|
|
4610
|
-
/* @__PURE__ */ (0,
|
|
4831
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4611
4832
|
import_material21.Menu,
|
|
4612
4833
|
{
|
|
4613
4834
|
anchorEl,
|
|
@@ -4616,8 +4837,8 @@ var Selector = ({
|
|
|
4616
4837
|
PaperProps: {
|
|
4617
4838
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4618
4839
|
},
|
|
4619
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
4620
|
-
options2.length > 5 && /* @__PURE__ */ (0,
|
|
4840
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.CircularProgress, { size: 24 }) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
|
|
4841
|
+
options2.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4621
4842
|
TextField,
|
|
4622
4843
|
{
|
|
4623
4844
|
size: "small",
|
|
@@ -4626,31 +4847,31 @@ var Selector = ({
|
|
|
4626
4847
|
value: searchTerm,
|
|
4627
4848
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
4628
4849
|
InputProps: {
|
|
4629
|
-
startAdornment: /* @__PURE__ */ (0,
|
|
4850
|
+
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_Search4.default, { fontSize: "small" }) })
|
|
4630
4851
|
}
|
|
4631
4852
|
}
|
|
4632
4853
|
) }),
|
|
4633
|
-
/* @__PURE__ */ (0,
|
|
4634
|
-
filteredOptions.map((option) => /* @__PURE__ */ (0,
|
|
4854
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_material21.List, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4855
|
+
filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
4635
4856
|
import_material21.ListItemButton,
|
|
4636
4857
|
{
|
|
4637
4858
|
selected: option.id === selectedId,
|
|
4638
4859
|
onClick: () => handleSelect(option.id),
|
|
4639
4860
|
disabled: option.disabled,
|
|
4640
4861
|
children: [
|
|
4641
|
-
option.avatar ? /* @__PURE__ */ (0,
|
|
4642
|
-
/* @__PURE__ */ (0,
|
|
4862
|
+
option.avatar ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { src: option.avatar }) }) : option.icon ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemAvatar, { children: option.icon }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemAvatar, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Avatar, { sx: { bgcolor: colors.primary.main }, children: option.name.charAt(0) }) }),
|
|
4863
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.ListItemText, { primary: option.name, secondary: option.description })
|
|
4643
4864
|
]
|
|
4644
4865
|
},
|
|
4645
4866
|
option.id
|
|
4646
4867
|
)),
|
|
4647
|
-
filteredOptions.length === 0 && /* @__PURE__ */ (0,
|
|
4868
|
+
filteredOptions.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Typography, { variant: "body2", color: "text.secondary", children: emptyMessage }) })
|
|
4648
4869
|
] }),
|
|
4649
|
-
onCreate && /* @__PURE__ */ (0,
|
|
4870
|
+
onCreate && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_material21.Box, { sx: { p: 1, borderTop: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
4650
4871
|
Button,
|
|
4651
4872
|
{
|
|
4652
4873
|
fullWidth: true,
|
|
4653
|
-
startIcon: /* @__PURE__ */ (0,
|
|
4874
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_Add3.default, {}),
|
|
4654
4875
|
onClick: () => {
|
|
4655
4876
|
onCreate();
|
|
4656
4877
|
handleClose();
|
|
@@ -4670,20 +4891,20 @@ var import_material23 = require("@mui/material");
|
|
|
4670
4891
|
// src/components/icons/CereIcon.tsx
|
|
4671
4892
|
var import_react13 = require("react");
|
|
4672
4893
|
var import_material22 = require("@mui/material");
|
|
4673
|
-
var
|
|
4674
|
-
var CereIcon = (0, import_react13.memo)((props) => /* @__PURE__ */ (0,
|
|
4675
|
-
/* @__PURE__ */ (0,
|
|
4894
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
4895
|
+
var CereIcon = (0, import_react13.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_material22.SvgIcon, { ...props, viewBox: "0 0 24 28", children: [
|
|
4896
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("g", { clipPath: "url(#a)", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
4676
4897
|
"path",
|
|
4677
4898
|
{
|
|
4678
4899
|
d: "M12.77 26.848c-5.95 0-10.572-2.88-12.063-7.515l-.334-1.037.978-.471c.103-.051 2.668-1.35 2.509-3.901-.169-2.695-2.339-3.96-2.431-4.012L.475 9.37l.412-1.025C2.838 3.601 7.28.77 12.77.77c4.314 0 8.095 1.698 10.37 4.658l.575.748-4.535 6.146-1.013-.984c-.02-.019-2.175-2.069-4.678-2.08-2.411-.012-3.362.902-3.401.941L8.3 8.473c.164-.175 1.695-1.733 5.199-1.707 2.232.01 4.161 1.084 5.3 1.896l1.778-2.41c-1.845-1.91-4.636-2.99-7.808-2.99-4.095 0-7.459 1.91-9.182 5.155 1.042.879 2.57 2.62 2.742 5.35.185 2.95-1.692 4.806-2.913 5.692 1.445 3.043 4.932 4.895 9.354 4.895 3.063 0 6.198-1.2 8.134-3.053l-2.023-2.55c-1.077.768-2.917 1.764-5.323 1.89-3.416.177-5.436-1.404-5.52-1.471l1.536-1.954c.047.035 1.42 1.065 3.855.936 2.884-.15 4.734-2.012 4.75-2.032l.98-1.002.874 1.094 4.088 5.155-.627.779c-2.3 2.856-6.508 4.702-10.726 4.702Z",
|
|
4679
4900
|
fill: "currentColor"
|
|
4680
4901
|
}
|
|
4681
4902
|
) }),
|
|
4682
|
-
/* @__PURE__ */ (0,
|
|
4903
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("clipPath", { id: "a", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { fill: "currentColor", transform: "translate(.373 .77)", d: "M0 0h23.615v26.36H0z" }) }) })
|
|
4683
4904
|
] }));
|
|
4684
4905
|
|
|
4685
4906
|
// src/components/layout/Logo.tsx
|
|
4686
|
-
var
|
|
4907
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
4687
4908
|
var sizesMap = {
|
|
4688
4909
|
large: 38,
|
|
4689
4910
|
medium: 32,
|
|
@@ -4694,15 +4915,171 @@ var Container = (0, import_material23.styled)(import_material23.Stack)({
|
|
|
4694
4915
|
fontSize: "inherit"
|
|
4695
4916
|
}
|
|
4696
4917
|
});
|
|
4697
|
-
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */ (0,
|
|
4918
|
+
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CereIcon, { color: "primary" }) }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Container, { direction: "row", alignItems: "center", spacing: 2, fontSize: sizesMap[size3], children: [
|
|
4698
4919
|
icon,
|
|
4699
|
-
children && /* @__PURE__ */ (0,
|
|
4920
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_material23.Stack, { children })
|
|
4700
4921
|
] });
|
|
4701
4922
|
|
|
4923
|
+
// src/components/layout/EntityHeader/EntityHeader.tsx
|
|
4924
|
+
var import_Box2 = __toESM(require("@mui/material/Box"));
|
|
4925
|
+
var import_Typography2 = __toESM(require("@mui/material/Typography"));
|
|
4926
|
+
var import_IconButton4 = __toESM(require("@mui/material/IconButton"));
|
|
4927
|
+
var import_Divider = __toESM(require("@mui/material/Divider"));
|
|
4928
|
+
var import_MoreHoriz = __toESM(require("@mui/icons-material/MoreHoriz"));
|
|
4929
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
4930
|
+
var EntityHeader = ({
|
|
4931
|
+
title,
|
|
4932
|
+
subtitle,
|
|
4933
|
+
role,
|
|
4934
|
+
id,
|
|
4935
|
+
primaryAction,
|
|
4936
|
+
onCopyId,
|
|
4937
|
+
onMoreOptions,
|
|
4938
|
+
headingLevel = "h2",
|
|
4939
|
+
divider = true
|
|
4940
|
+
}) => {
|
|
4941
|
+
const getPrimaryActionLabel = () => {
|
|
4942
|
+
if (!primaryAction) return "";
|
|
4943
|
+
const { label, count } = primaryAction;
|
|
4944
|
+
return count !== void 0 ? `${label} (${count})` : label;
|
|
4945
|
+
};
|
|
4946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_Box2.default, { children: [
|
|
4947
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4948
|
+
import_Box2.default,
|
|
4949
|
+
{
|
|
4950
|
+
sx: {
|
|
4951
|
+
display: "flex",
|
|
4952
|
+
alignItems: "center",
|
|
4953
|
+
justifyContent: "space-between",
|
|
4954
|
+
px: 3,
|
|
4955
|
+
py: 2,
|
|
4956
|
+
gap: 1
|
|
4957
|
+
},
|
|
4958
|
+
children: [
|
|
4959
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4960
|
+
import_Box2.default,
|
|
4961
|
+
{
|
|
4962
|
+
sx: {
|
|
4963
|
+
display: "flex",
|
|
4964
|
+
alignItems: "center",
|
|
4965
|
+
gap: 1,
|
|
4966
|
+
flexWrap: "wrap"
|
|
4967
|
+
},
|
|
4968
|
+
children: [
|
|
4969
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
4970
|
+
import_Box2.default,
|
|
4971
|
+
{
|
|
4972
|
+
sx: {
|
|
4973
|
+
display: "flex",
|
|
4974
|
+
flexDirection: "column",
|
|
4975
|
+
gap: 0.5
|
|
4976
|
+
},
|
|
4977
|
+
children: [
|
|
4978
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4979
|
+
import_Typography2.default,
|
|
4980
|
+
{
|
|
4981
|
+
component: headingLevel,
|
|
4982
|
+
sx: {
|
|
4983
|
+
fontSize: "16px",
|
|
4984
|
+
fontWeight: 500,
|
|
4985
|
+
lineHeight: "24px",
|
|
4986
|
+
letterSpacing: "0.15px",
|
|
4987
|
+
color: deploymentSurfaceTokens.textPrimary
|
|
4988
|
+
},
|
|
4989
|
+
children: title
|
|
4990
|
+
}
|
|
4991
|
+
),
|
|
4992
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
4993
|
+
import_Typography2.default,
|
|
4994
|
+
{
|
|
4995
|
+
variant: "body2",
|
|
4996
|
+
sx: {
|
|
4997
|
+
fontSize: "11px",
|
|
4998
|
+
fontWeight: 500,
|
|
4999
|
+
lineHeight: "16px",
|
|
5000
|
+
letterSpacing: "0.5px",
|
|
5001
|
+
color: deploymentSurfaceTokens.textSecondary
|
|
5002
|
+
},
|
|
5003
|
+
children: subtitle
|
|
5004
|
+
}
|
|
5005
|
+
)
|
|
5006
|
+
]
|
|
5007
|
+
}
|
|
5008
|
+
),
|
|
5009
|
+
role && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(RoleBadge, { label: role, color: "primary", size: "small" }),
|
|
5010
|
+
id && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(IDBlock, { id, label: "ID", entityType: "entity", onCopy: onCopyId })
|
|
5011
|
+
]
|
|
5012
|
+
}
|
|
5013
|
+
),
|
|
5014
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
5015
|
+
import_Box2.default,
|
|
5016
|
+
{
|
|
5017
|
+
sx: {
|
|
5018
|
+
display: "flex",
|
|
5019
|
+
alignItems: "center",
|
|
5020
|
+
gap: 1,
|
|
5021
|
+
flexShrink: 0
|
|
5022
|
+
},
|
|
5023
|
+
children: [
|
|
5024
|
+
primaryAction && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5025
|
+
Button,
|
|
5026
|
+
{
|
|
5027
|
+
variant: "primary",
|
|
5028
|
+
startIcon: primaryAction.icon,
|
|
5029
|
+
onClick: primaryAction.onClick,
|
|
5030
|
+
sx: {
|
|
5031
|
+
textTransform: "capitalize"
|
|
5032
|
+
},
|
|
5033
|
+
children: getPrimaryActionLabel()
|
|
5034
|
+
}
|
|
5035
|
+
),
|
|
5036
|
+
onMoreOptions && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5037
|
+
import_IconButton4.default,
|
|
5038
|
+
{
|
|
5039
|
+
onClick: onMoreOptions,
|
|
5040
|
+
size: "small",
|
|
5041
|
+
"aria-label": "More options",
|
|
5042
|
+
sx: {
|
|
5043
|
+
padding: "8px",
|
|
5044
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5045
|
+
borderRadius: "8px",
|
|
5046
|
+
"&:hover": {
|
|
5047
|
+
backgroundColor: deploymentSurfaceTokens.hoverOverlay,
|
|
5048
|
+
borderColor: deploymentSurfaceTokens.borderDefault
|
|
5049
|
+
}
|
|
5050
|
+
},
|
|
5051
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5052
|
+
import_MoreHoriz.default,
|
|
5053
|
+
{
|
|
5054
|
+
sx: {
|
|
5055
|
+
fontSize: "20px",
|
|
5056
|
+
color: deploymentSurfaceTokens.textSecondary
|
|
5057
|
+
}
|
|
5058
|
+
}
|
|
5059
|
+
)
|
|
5060
|
+
}
|
|
5061
|
+
)
|
|
5062
|
+
]
|
|
5063
|
+
}
|
|
5064
|
+
)
|
|
5065
|
+
]
|
|
5066
|
+
}
|
|
5067
|
+
),
|
|
5068
|
+
divider && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
5069
|
+
import_Divider.default,
|
|
5070
|
+
{
|
|
5071
|
+
sx: {
|
|
5072
|
+
borderColor: deploymentSurfaceTokens.strokeOutside
|
|
5073
|
+
}
|
|
5074
|
+
}
|
|
5075
|
+
)
|
|
5076
|
+
] });
|
|
5077
|
+
};
|
|
5078
|
+
|
|
4702
5079
|
// src/components/layout/Dialog.tsx
|
|
4703
5080
|
var import_material24 = require("@mui/material");
|
|
4704
5081
|
var import_Close = __toESM(require("@mui/icons-material/Close"));
|
|
4705
|
-
var
|
|
5082
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
4706
5083
|
var Dialog = ({
|
|
4707
5084
|
open,
|
|
4708
5085
|
title,
|
|
@@ -4726,7 +5103,7 @@ var Dialog = ({
|
|
|
4726
5103
|
if (e) e.stopPropagation();
|
|
4727
5104
|
onClose();
|
|
4728
5105
|
};
|
|
4729
|
-
return /* @__PURE__ */ (0,
|
|
5106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
4730
5107
|
import_material24.Dialog,
|
|
4731
5108
|
{
|
|
4732
5109
|
open,
|
|
@@ -4743,28 +5120,28 @@ var Dialog = ({
|
|
|
4743
5120
|
...dialogProps.PaperProps
|
|
4744
5121
|
},
|
|
4745
5122
|
children: [
|
|
4746
|
-
/* @__PURE__ */ (0,
|
|
4747
|
-
/* @__PURE__ */ (0,
|
|
4748
|
-
/* @__PURE__ */ (0,
|
|
5123
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_material24.DialogTitle, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", p: 2 }, children: [
|
|
5124
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material24.Box, { sx: { display: "flex", alignItems: "center" }, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material24.Typography, { variant: "h6", children: title }) : title }),
|
|
5125
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_material24.Box, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
4749
5126
|
headerAction,
|
|
4750
|
-
/* @__PURE__ */ (0,
|
|
5127
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4751
5128
|
import_material24.IconButton,
|
|
4752
5129
|
{
|
|
4753
5130
|
edge: "end",
|
|
4754
5131
|
color: "inherit",
|
|
4755
5132
|
onClick: handleCloseAttempt,
|
|
4756
5133
|
"aria-label": "close",
|
|
4757
|
-
children: /* @__PURE__ */ (0,
|
|
5134
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_Close.default, {})
|
|
4758
5135
|
}
|
|
4759
5136
|
)
|
|
4760
5137
|
] })
|
|
4761
5138
|
] }),
|
|
4762
|
-
dividers && /* @__PURE__ */ (0,
|
|
4763
|
-
/* @__PURE__ */ (0,
|
|
4764
|
-
(showActions || customActions) && /* @__PURE__ */ (0,
|
|
4765
|
-
dividers && /* @__PURE__ */ (0,
|
|
4766
|
-
/* @__PURE__ */ (0,
|
|
4767
|
-
/* @__PURE__ */ (0,
|
|
5139
|
+
dividers && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material24.Divider, {}),
|
|
5140
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material24.DialogContent, { dividers, children }),
|
|
5141
|
+
(showActions || customActions) && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
|
|
5142
|
+
dividers && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material24.Divider, {}),
|
|
5143
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material24.DialogActions, { children: customActions || /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
|
|
5144
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4768
5145
|
import_material24.Button,
|
|
4769
5146
|
{
|
|
4770
5147
|
onClick: handleCloseAttempt,
|
|
@@ -4772,14 +5149,14 @@ var Dialog = ({
|
|
|
4772
5149
|
children: cancelLabel
|
|
4773
5150
|
}
|
|
4774
5151
|
),
|
|
4775
|
-
onSubmit && /* @__PURE__ */ (0,
|
|
5152
|
+
onSubmit && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
4776
5153
|
import_material24.Button,
|
|
4777
5154
|
{
|
|
4778
5155
|
variant: "contained",
|
|
4779
5156
|
color: "primary",
|
|
4780
5157
|
onClick: onSubmit,
|
|
4781
5158
|
disabled: disableSubmit || isLoading,
|
|
4782
|
-
startIcon: isLoading ? /* @__PURE__ */ (0,
|
|
5159
|
+
startIcon: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_material24.CircularProgress, { size: 20 }) : void 0,
|
|
4783
5160
|
children: submitLabel
|
|
4784
5161
|
}
|
|
4785
5162
|
)
|
|
@@ -4792,11 +5169,11 @@ var Dialog = ({
|
|
|
4792
5169
|
|
|
4793
5170
|
// src/components/layout/Drawer.tsx
|
|
4794
5171
|
var import_Drawer = __toESM(require("@mui/material/Drawer"));
|
|
4795
|
-
var
|
|
5172
|
+
var import_styles25 = require("@mui/material/styles");
|
|
4796
5173
|
var import_material25 = require("@mui/material");
|
|
4797
5174
|
var import_Close2 = __toESM(require("@mui/icons-material/Close"));
|
|
4798
|
-
var
|
|
4799
|
-
var StyledDrawer2 = (0,
|
|
5175
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
5176
|
+
var StyledDrawer2 = (0, import_styles25.styled)(import_Drawer.default, {
|
|
4800
5177
|
shouldForwardProp: (prop) => prop !== "width" && prop !== "miniWidth" && prop !== "collapsed" && prop !== "topOffset"
|
|
4801
5178
|
})(({ theme: theme2, width = 240, miniWidth = 72, collapsed, topOffset = 0 }) => ({
|
|
4802
5179
|
width: collapsed ? miniWidth : width,
|
|
@@ -4842,7 +5219,7 @@ var Drawer2 = ({
|
|
|
4842
5219
|
const finalWidth = width ?? defaultWidth;
|
|
4843
5220
|
const shouldShowClose = showCloseButton ?? (variant === "temporary" || variant === "persistent");
|
|
4844
5221
|
const hasHeader = title || header || shouldShowClose || tabs;
|
|
4845
|
-
return /* @__PURE__ */ (0,
|
|
5222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
4846
5223
|
StyledDrawer2,
|
|
4847
5224
|
{
|
|
4848
5225
|
width: finalWidth,
|
|
@@ -4867,8 +5244,8 @@ var Drawer2 = ({
|
|
|
4867
5244
|
},
|
|
4868
5245
|
...props,
|
|
4869
5246
|
children: [
|
|
4870
|
-
hasHeader && /* @__PURE__ */ (0,
|
|
4871
|
-
/* @__PURE__ */ (0,
|
|
5247
|
+
hasHeader && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
5248
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4872
5249
|
import_material25.Box,
|
|
4873
5250
|
{
|
|
4874
5251
|
sx: {
|
|
@@ -4880,9 +5257,9 @@ var Drawer2 = ({
|
|
|
4880
5257
|
borderBottom: 1,
|
|
4881
5258
|
borderColor: "divider"
|
|
4882
5259
|
},
|
|
4883
|
-
children: header || /* @__PURE__ */ (0,
|
|
4884
|
-
/* @__PURE__ */ (0,
|
|
4885
|
-
shouldShowClose && onClose && /* @__PURE__ */ (0,
|
|
5260
|
+
children: header || /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
5261
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material25.Box, { sx: { flex: 1 }, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material25.Typography, { variant: "h6", children: title }) : title }),
|
|
5262
|
+
shouldShowClose && onClose && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4886
5263
|
import_material25.IconButton,
|
|
4887
5264
|
{
|
|
4888
5265
|
onClick: (e) => {
|
|
@@ -4892,13 +5269,13 @@ var Drawer2 = ({
|
|
|
4892
5269
|
size: "small",
|
|
4893
5270
|
sx: { ml: 1 },
|
|
4894
5271
|
"aria-label": "close",
|
|
4895
|
-
children: /* @__PURE__ */ (0,
|
|
5272
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_Close2.default, {})
|
|
4896
5273
|
}
|
|
4897
5274
|
)
|
|
4898
5275
|
] })
|
|
4899
5276
|
}
|
|
4900
5277
|
),
|
|
4901
|
-
tabs && tabs.length > 0 && /* @__PURE__ */ (0,
|
|
5278
|
+
tabs && tabs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4902
5279
|
import_material25.Tabs,
|
|
4903
5280
|
{
|
|
4904
5281
|
value: activeTab,
|
|
@@ -4913,11 +5290,11 @@ var Drawer2 = ({
|
|
|
4913
5290
|
overflow: "auto"
|
|
4914
5291
|
}
|
|
4915
5292
|
},
|
|
4916
|
-
children: tabs.map((tab, index) => /* @__PURE__ */ (0,
|
|
5293
|
+
children: tabs.map((tab, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material25.Tab, { label: tab }, index))
|
|
4917
5294
|
}
|
|
4918
5295
|
)
|
|
4919
5296
|
] }),
|
|
4920
|
-
/* @__PURE__ */ (0,
|
|
5297
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4921
5298
|
import_material25.Box,
|
|
4922
5299
|
{
|
|
4923
5300
|
sx: {
|
|
@@ -4930,9 +5307,9 @@ var Drawer2 = ({
|
|
|
4930
5307
|
children
|
|
4931
5308
|
}
|
|
4932
5309
|
),
|
|
4933
|
-
footer && /* @__PURE__ */ (0,
|
|
4934
|
-
/* @__PURE__ */ (0,
|
|
4935
|
-
/* @__PURE__ */ (0,
|
|
5310
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
|
|
5311
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material25.Divider, {}),
|
|
5312
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
4936
5313
|
import_material25.Box,
|
|
4937
5314
|
{
|
|
4938
5315
|
sx: {
|
|
@@ -4954,9 +5331,9 @@ var import_Card = __toESM(require("@mui/material/Card"));
|
|
|
4954
5331
|
var import_CardContent = __toESM(require("@mui/material/CardContent"));
|
|
4955
5332
|
var import_CardHeader = __toESM(require("@mui/material/CardHeader"));
|
|
4956
5333
|
var import_CardActions = __toESM(require("@mui/material/CardActions"));
|
|
4957
|
-
var
|
|
4958
|
-
var
|
|
4959
|
-
var StyledCard = (0,
|
|
5334
|
+
var import_styles26 = require("@mui/material/styles");
|
|
5335
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
5336
|
+
var StyledCard = (0, import_styles26.styled)(import_Card.default, {
|
|
4960
5337
|
shouldForwardProp: (prop) => prop !== "hoverable" && prop !== "clickable"
|
|
4961
5338
|
})(({ hoverable, clickable }) => ({
|
|
4962
5339
|
borderRadius: 8,
|
|
@@ -4973,26 +5350,26 @@ var StyledCard = (0, import_styles24.styled)(import_Card.default, {
|
|
|
4973
5350
|
}
|
|
4974
5351
|
}));
|
|
4975
5352
|
var Card = ({ hoverable = false, clickable = false, children, ...props }) => {
|
|
4976
|
-
return /* @__PURE__ */ (0,
|
|
5353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(StyledCard, { hoverable, clickable, ...props, children });
|
|
4977
5354
|
};
|
|
4978
5355
|
var CardContent = (props) => {
|
|
4979
|
-
return /* @__PURE__ */ (0,
|
|
5356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_CardContent.default, { ...props });
|
|
4980
5357
|
};
|
|
4981
5358
|
var CardHeader = (props) => {
|
|
4982
|
-
return /* @__PURE__ */ (0,
|
|
5359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_CardHeader.default, { ...props });
|
|
4983
5360
|
};
|
|
4984
5361
|
var CardActions = (props) => {
|
|
4985
|
-
return /* @__PURE__ */ (0,
|
|
5362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_CardActions.default, { ...props });
|
|
4986
5363
|
};
|
|
4987
5364
|
|
|
4988
5365
|
// src/components/layout/List.tsx
|
|
4989
5366
|
var import_material26 = require("@mui/material");
|
|
4990
|
-
var
|
|
4991
|
-
var
|
|
5367
|
+
var import_styles27 = require("@mui/material/styles");
|
|
5368
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
4992
5369
|
var List6 = (props) => {
|
|
4993
|
-
return /* @__PURE__ */ (0,
|
|
5370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_material26.List, { ...props });
|
|
4994
5371
|
};
|
|
4995
|
-
var StyledListItem = (0,
|
|
5372
|
+
var StyledListItem = (0, import_styles27.styled)(import_material26.ListItem, {
|
|
4996
5373
|
shouldForwardProp: (prop) => prop !== "hoverable"
|
|
4997
5374
|
})(({ hoverable = true }) => ({
|
|
4998
5375
|
border: `1px solid ${colors.grey[200]}`,
|
|
@@ -5013,9 +5390,9 @@ var ListItem4 = ({
|
|
|
5013
5390
|
children,
|
|
5014
5391
|
...props
|
|
5015
5392
|
}) => {
|
|
5016
|
-
return /* @__PURE__ */ (0,
|
|
5017
|
-
icon && /* @__PURE__ */ (0,
|
|
5018
|
-
(primary || secondary) && /* @__PURE__ */ (0,
|
|
5393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(StyledListItem, { hoverable, ...props, children: [
|
|
5394
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_material26.ListItemIcon, { children: icon }),
|
|
5395
|
+
(primary || secondary) && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
5019
5396
|
import_material26.ListItemText,
|
|
5020
5397
|
{
|
|
5021
5398
|
primary,
|
|
@@ -5029,16 +5406,14 @@ var ListItem4 = ({
|
|
|
5029
5406
|
|
|
5030
5407
|
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
5031
5408
|
var import_material27 = require("@mui/material");
|
|
5032
|
-
var import_MoreHoriz = __toESM(require("@mui/icons-material/MoreHoriz"));
|
|
5033
5409
|
var import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"));
|
|
5034
5410
|
var import_ChevronRight2 = __toESM(require("@mui/icons-material/ChevronRight"));
|
|
5035
|
-
var import_ContentCopy = __toESM(require("@mui/icons-material/ContentCopy"));
|
|
5036
5411
|
var import_WorkOutline = __toESM(require("@mui/icons-material/WorkOutline"));
|
|
5037
5412
|
var import_Waves = __toESM(require("@mui/icons-material/Waves"));
|
|
5038
5413
|
var import_RocketLaunchOutlined = __toESM(require("@mui/icons-material/RocketLaunchOutlined"));
|
|
5039
5414
|
var import_InsertLink = __toESM(require("@mui/icons-material/InsertLink"));
|
|
5040
5415
|
var import_SmartToyOutlined = __toESM(require("@mui/icons-material/SmartToyOutlined"));
|
|
5041
|
-
var
|
|
5416
|
+
var import_styles28 = require("@mui/material/styles");
|
|
5042
5417
|
|
|
5043
5418
|
// src/hooks/useControlledExpand.ts
|
|
5044
5419
|
var import_react14 = require("react");
|
|
@@ -5051,7 +5426,7 @@ function useControlledExpand(controlledExpanded, onToggle, defaultExpanded = fal
|
|
|
5051
5426
|
}
|
|
5052
5427
|
|
|
5053
5428
|
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
5054
|
-
var
|
|
5429
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
5055
5430
|
var ENTITY_LABELS = {
|
|
5056
5431
|
workspace: "Workspace",
|
|
5057
5432
|
stream: "Stream",
|
|
@@ -5059,13 +5434,13 @@ var ENTITY_LABELS = {
|
|
|
5059
5434
|
engagement: "Engagement",
|
|
5060
5435
|
agent: "Agent"
|
|
5061
5436
|
};
|
|
5062
|
-
var ENTITY_ICON_SIZE =
|
|
5437
|
+
var ENTITY_ICON_SIZE = 16;
|
|
5063
5438
|
var ENTITY_ICONS = {
|
|
5064
|
-
workspace: /* @__PURE__ */ (0,
|
|
5065
|
-
stream: /* @__PURE__ */ (0,
|
|
5066
|
-
deployment: /* @__PURE__ */ (0,
|
|
5067
|
-
engagement: /* @__PURE__ */ (0,
|
|
5068
|
-
agent: /* @__PURE__ */ (0,
|
|
5439
|
+
workspace: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_WorkOutline.default, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5440
|
+
stream: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_Waves.default, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5441
|
+
deployment: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_RocketLaunchOutlined.default, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5442
|
+
engagement: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_InsertLink.default, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5443
|
+
agent: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_SmartToyOutlined.default, { sx: { fontSize: ENTITY_ICON_SIZE } })
|
|
5069
5444
|
};
|
|
5070
5445
|
var STATUS_DOT_COLORS = {
|
|
5071
5446
|
normal: deploymentStatusColors.normal,
|
|
@@ -5074,7 +5449,19 @@ var STATUS_DOT_COLORS = {
|
|
|
5074
5449
|
disabled: deploymentStatusColors.disabledDim
|
|
5075
5450
|
};
|
|
5076
5451
|
var CHEVRON_SIZE = 16;
|
|
5077
|
-
var
|
|
5452
|
+
var ENTITY_CHIP_STYLES = {
|
|
5453
|
+
borderRadius: "12px",
|
|
5454
|
+
borderWidth: "1.5px",
|
|
5455
|
+
padding: { left: 0.75, right: 1, vertical: 0.25 },
|
|
5456
|
+
gap: 0.5
|
|
5457
|
+
};
|
|
5458
|
+
var ENTITY_CHIP_TYPOGRAPHY = {
|
|
5459
|
+
fontSize: "12px",
|
|
5460
|
+
fontWeight: 500,
|
|
5461
|
+
lineHeight: 1.33,
|
|
5462
|
+
letterSpacing: "0.07px"
|
|
5463
|
+
};
|
|
5464
|
+
var StatusDot = (0, import_styles28.styled)(import_material27.Box, {
|
|
5078
5465
|
shouldForwardProp: (p) => p !== "status"
|
|
5079
5466
|
})(({ status }) => ({
|
|
5080
5467
|
width: 8,
|
|
@@ -5083,75 +5470,49 @@ var StatusDot = (0, import_styles26.styled)(import_material27.Box, {
|
|
|
5083
5470
|
backgroundColor: status ? STATUS_DOT_COLORS[status] ?? "transparent" : "transparent",
|
|
5084
5471
|
flexShrink: 0
|
|
5085
5472
|
}));
|
|
5086
|
-
var EntityChip = ({ entityType, color }) => /* @__PURE__ */ (0,
|
|
5473
|
+
var EntityChip = ({ entityType, color }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
5087
5474
|
import_material27.Box,
|
|
5088
5475
|
{
|
|
5089
5476
|
sx: {
|
|
5090
5477
|
display: "inline-flex",
|
|
5091
5478
|
alignItems: "center",
|
|
5092
|
-
gap:
|
|
5093
|
-
pl:
|
|
5094
|
-
pr:
|
|
5095
|
-
py:
|
|
5096
|
-
borderRadius:
|
|
5479
|
+
gap: ENTITY_CHIP_STYLES.gap,
|
|
5480
|
+
pl: ENTITY_CHIP_STYLES.padding.left,
|
|
5481
|
+
pr: ENTITY_CHIP_STYLES.padding.right,
|
|
5482
|
+
py: ENTITY_CHIP_STYLES.padding.vertical,
|
|
5483
|
+
borderRadius: ENTITY_CHIP_STYLES.borderRadius,
|
|
5097
5484
|
backgroundColor: deploymentSurfaceTokens.surfaceHigh,
|
|
5098
|
-
border:
|
|
5485
|
+
border: `${ENTITY_CHIP_STYLES.borderWidth} solid ${color}`,
|
|
5099
5486
|
flexShrink: 0
|
|
5100
5487
|
},
|
|
5101
5488
|
children: [
|
|
5102
|
-
/* @__PURE__ */ (0,
|
|
5103
|
-
/* @__PURE__ */ (0,
|
|
5489
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_material27.Box, { sx: { color, display: "flex", alignItems: "center" }, children: ENTITY_ICONS[entityType] }),
|
|
5490
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5104
5491
|
import_material27.Typography,
|
|
5105
5492
|
{
|
|
5106
5493
|
variant: "body2",
|
|
5107
|
-
fontWeight:
|
|
5108
|
-
sx: {
|
|
5494
|
+
fontWeight: ENTITY_CHIP_TYPOGRAPHY.fontWeight,
|
|
5495
|
+
sx: {
|
|
5496
|
+
color: "black",
|
|
5497
|
+
lineHeight: ENTITY_CHIP_TYPOGRAPHY.lineHeight,
|
|
5498
|
+
fontSize: ENTITY_CHIP_TYPOGRAPHY.fontSize,
|
|
5499
|
+
letterSpacing: ENTITY_CHIP_TYPOGRAPHY.letterSpacing
|
|
5500
|
+
},
|
|
5109
5501
|
children: ENTITY_LABELS[entityType]
|
|
5110
5502
|
}
|
|
5111
5503
|
)
|
|
5112
5504
|
]
|
|
5113
5505
|
}
|
|
5114
5506
|
);
|
|
5115
|
-
var
|
|
5116
|
-
import_material27.Box,
|
|
5117
|
-
|
|
5118
|
-
sx: {
|
|
5119
|
-
display: "inline-flex",
|
|
5120
|
-
alignItems: "center",
|
|
5121
|
-
gap: 0.5,
|
|
5122
|
-
px: 2,
|
|
5123
|
-
py: 1,
|
|
5124
|
-
borderRadius: "8px",
|
|
5125
|
-
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5126
|
-
bgcolor: "white",
|
|
5127
|
-
flexShrink: 0
|
|
5128
|
-
},
|
|
5129
|
-
children: [
|
|
5130
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
5131
|
-
import_material27.Typography,
|
|
5132
|
-
{
|
|
5133
|
-
variant: "body2",
|
|
5134
|
-
fontWeight: 500,
|
|
5135
|
-
sx: { color: deploymentSurfaceTokens.textPrimary, whiteSpace: "nowrap" },
|
|
5136
|
-
children: [
|
|
5137
|
-
"ID: ",
|
|
5138
|
-
id
|
|
5139
|
-
]
|
|
5140
|
-
}
|
|
5141
|
-
),
|
|
5142
|
-
onCopy && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material27.IconButton, { size: "small", onClick: onCopy, "aria-label": "Copy ID", sx: { p: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_ContentCopy.default, { sx: { fontSize: 14, color: deploymentSurfaceTokens.textSecondary } }) })
|
|
5143
|
-
]
|
|
5144
|
-
}
|
|
5145
|
-
);
|
|
5146
|
-
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_material27.Box, { sx: { pl: indented ? "40px" : 0, pr: "20px", py: 1 }, children: [
|
|
5147
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_material27.Box, { sx: { display: "flex", justifyContent: "space-between", mb: 1 }, children: [
|
|
5148
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material27.Typography, { variant: "body2", sx: { color: deploymentSurfaceTokens.textPrimary }, children: "Capacity" }),
|
|
5149
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_material27.Typography, { variant: "body2", sx: { color: deploymentSurfaceTokens.accentBlue }, children: [
|
|
5507
|
+
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Box, { sx: { pl: indented ? "40px" : 0, pr: "20px", py: 1 }, children: [
|
|
5508
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Box, { sx: { display: "flex", justifyContent: "space-between", mb: 1 }, children: [
|
|
5509
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_material27.Typography, { variant: "body2", sx: { color: deploymentSurfaceTokens.textPrimary }, children: "Capacity" }),
|
|
5510
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Typography, { variant: "body2", sx: { color: deploymentSurfaceTokens.accentBlue }, children: [
|
|
5150
5511
|
value,
|
|
5151
5512
|
"%"
|
|
5152
5513
|
] })
|
|
5153
5514
|
] }),
|
|
5154
|
-
/* @__PURE__ */ (0,
|
|
5515
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5155
5516
|
import_material27.LinearProgress,
|
|
5156
5517
|
{
|
|
5157
5518
|
variant: "determinate",
|
|
@@ -5168,31 +5529,42 @@ var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ (0, import_js
|
|
|
5168
5529
|
}
|
|
5169
5530
|
)
|
|
5170
5531
|
] });
|
|
5171
|
-
var
|
|
5532
|
+
var getActionButtonStyles = (action) => {
|
|
5533
|
+
const baseStyles = {
|
|
5534
|
+
display: "inline-flex",
|
|
5535
|
+
alignItems: "center",
|
|
5536
|
+
gap: 0.5,
|
|
5537
|
+
cursor: action.onClick ? "pointer" : "default",
|
|
5538
|
+
background: "none",
|
|
5539
|
+
font: "inherit",
|
|
5540
|
+
color: deploymentSurfaceTokens.textPrimary,
|
|
5541
|
+
whiteSpace: "nowrap",
|
|
5542
|
+
"&:hover": action.onClick ? { opacity: 0.7 } : void 0
|
|
5543
|
+
};
|
|
5544
|
+
const variantStyles = action.outlined ? {
|
|
5545
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5546
|
+
borderRadius: "8px",
|
|
5547
|
+
p: 1,
|
|
5548
|
+
bgcolor: "white"
|
|
5549
|
+
} : {
|
|
5550
|
+
border: "none",
|
|
5551
|
+
p: 0
|
|
5552
|
+
};
|
|
5553
|
+
return { ...baseStyles, ...variantStyles };
|
|
5554
|
+
};
|
|
5555
|
+
var CardAction = ({ action }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
5172
5556
|
import_material27.Box,
|
|
5173
5557
|
{
|
|
5174
5558
|
component: action.onClick ? "button" : "span",
|
|
5175
5559
|
onClick: action.onClick,
|
|
5176
|
-
sx:
|
|
5177
|
-
display: "inline-flex",
|
|
5178
|
-
alignItems: "center",
|
|
5179
|
-
gap: 0.5,
|
|
5180
|
-
cursor: action.onClick ? "pointer" : "default",
|
|
5181
|
-
background: "none",
|
|
5182
|
-
border: "none",
|
|
5183
|
-
p: 0,
|
|
5184
|
-
font: "inherit",
|
|
5185
|
-
color: deploymentSurfaceTokens.textPrimary,
|
|
5186
|
-
whiteSpace: "nowrap",
|
|
5187
|
-
"&:hover": action.onClick ? { opacity: 0.7 } : void 0
|
|
5188
|
-
},
|
|
5560
|
+
sx: getActionButtonStyles(action),
|
|
5189
5561
|
children: [
|
|
5190
|
-
action.icon && /* @__PURE__ */ (0,
|
|
5191
|
-
/* @__PURE__ */ (0,
|
|
5562
|
+
action.icon && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_material27.Box, { component: "span", sx: { display: "flex", alignItems: "center" }, children: action.icon }),
|
|
5563
|
+
action.label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_material27.Typography, { variant: "body2", fontWeight: 500, component: "span", sx: { fontSize: "14px" }, children: action.label })
|
|
5192
5564
|
]
|
|
5193
|
-
}
|
|
5194
|
-
|
|
5195
|
-
)) });
|
|
5565
|
+
}
|
|
5566
|
+
);
|
|
5567
|
+
var CardActionList = ({ actions }) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CardAction, { action }, action.id)) });
|
|
5196
5568
|
var DeploymentDashboardCard = ({
|
|
5197
5569
|
entityType,
|
|
5198
5570
|
title,
|
|
@@ -5206,21 +5578,26 @@ var DeploymentDashboardCard = ({
|
|
|
5206
5578
|
expanded: controlledExpanded,
|
|
5207
5579
|
onExpandToggle,
|
|
5208
5580
|
onCopyId,
|
|
5209
|
-
onContextMenu,
|
|
5210
5581
|
className,
|
|
5211
5582
|
children
|
|
5212
5583
|
}) => {
|
|
5213
5584
|
const theme2 = (0, import_material27.useTheme)();
|
|
5214
5585
|
const entityColor = theme2.palette.deployment?.entity?.[entityType] ?? deploymentEntityColors[entityType];
|
|
5586
|
+
const isControlled = expandable && onExpandToggle != null;
|
|
5215
5587
|
const { expanded, toggle } = useControlledExpand(
|
|
5216
|
-
|
|
5217
|
-
|
|
5588
|
+
isControlled ? controlledExpanded : void 0,
|
|
5589
|
+
isControlled ? onExpandToggle : void 0
|
|
5218
5590
|
);
|
|
5219
5591
|
const isWorkspace = entityType === "workspace";
|
|
5220
5592
|
const isDeployment = entityType === "deployment";
|
|
5221
|
-
const
|
|
5222
|
-
|
|
5223
|
-
|
|
5593
|
+
const getClampedCapacity = (capacity2) => {
|
|
5594
|
+
if (!isDeployment || capacity2 == null) {
|
|
5595
|
+
return void 0;
|
|
5596
|
+
}
|
|
5597
|
+
return Math.min(100, Math.max(0, capacity2));
|
|
5598
|
+
};
|
|
5599
|
+
const capacityClamped = getClampedCapacity(capacity);
|
|
5600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
5224
5601
|
import_material27.Paper,
|
|
5225
5602
|
{
|
|
5226
5603
|
className,
|
|
@@ -5231,13 +5608,13 @@ var DeploymentDashboardCard = ({
|
|
|
5231
5608
|
boxShadow: isWorkspace ? deploymentSurfaceTokens.workspaceShadow : "none",
|
|
5232
5609
|
px: 1,
|
|
5233
5610
|
py: isDeployment ? 2 : 1,
|
|
5234
|
-
pl:
|
|
5611
|
+
pl: 1,
|
|
5235
5612
|
display: "flex",
|
|
5236
5613
|
flexDirection: "column",
|
|
5237
5614
|
gap: 0
|
|
5238
5615
|
},
|
|
5239
5616
|
children: [
|
|
5240
|
-
/* @__PURE__ */ (0,
|
|
5617
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
5241
5618
|
import_material27.Box,
|
|
5242
5619
|
{
|
|
5243
5620
|
sx: {
|
|
@@ -5247,20 +5624,20 @@ var DeploymentDashboardCard = ({
|
|
|
5247
5624
|
width: "100%"
|
|
5248
5625
|
},
|
|
5249
5626
|
children: [
|
|
5250
|
-
/* @__PURE__ */ (0,
|
|
5251
|
-
/* @__PURE__ */ (0,
|
|
5252
|
-
expandable
|
|
5627
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Box, { sx: { display: "flex", flexDirection: "column", gap: 0.5, minWidth: 0 }, children: [
|
|
5628
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Box, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
5629
|
+
expandable ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5253
5630
|
import_material27.IconButton,
|
|
5254
5631
|
{
|
|
5255
5632
|
size: "small",
|
|
5256
5633
|
onClick: toggle,
|
|
5257
5634
|
"aria-label": expanded ? "Collapse" : "Expand",
|
|
5258
5635
|
sx: { p: "5px" },
|
|
5259
|
-
children: expanded ? /* @__PURE__ */ (0,
|
|
5636
|
+
children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_ExpandMore.default, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_ChevronRight2.default, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } })
|
|
5260
5637
|
}
|
|
5261
|
-
),
|
|
5262
|
-
/* @__PURE__ */ (0,
|
|
5263
|
-
/* @__PURE__ */ (0,
|
|
5638
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_material27.Box, { sx: { width: 26, flexShrink: 0 } }),
|
|
5639
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(EntityChip, { entityType, color: entityColor }),
|
|
5640
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
5264
5641
|
import_material27.Typography,
|
|
5265
5642
|
{
|
|
5266
5643
|
variant: "subtitle1",
|
|
@@ -5270,54 +5647,39 @@ var DeploymentDashboardCard = ({
|
|
|
5270
5647
|
children: title
|
|
5271
5648
|
}
|
|
5272
5649
|
),
|
|
5273
|
-
idDisplay != null && /* @__PURE__ */ (0,
|
|
5650
|
+
idDisplay != null && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(IDBlock, { id: idDisplay, label: "ID", entityType, onCopy: onCopyId })
|
|
5274
5651
|
] }),
|
|
5275
|
-
(createdAt != null || updatedAt != null) && /* @__PURE__ */ (0,
|
|
5652
|
+
(createdAt != null || updatedAt != null) && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
5276
5653
|
import_material27.Box,
|
|
5277
5654
|
{
|
|
5278
5655
|
sx: {
|
|
5279
5656
|
display: "flex",
|
|
5280
5657
|
gap: 2,
|
|
5281
|
-
px:
|
|
5658
|
+
px: "34px",
|
|
5282
5659
|
color: deploymentSurfaceTokens.textSecondary
|
|
5283
5660
|
},
|
|
5284
5661
|
children: [
|
|
5285
|
-
createdAt != null && /* @__PURE__ */ (0,
|
|
5662
|
+
createdAt != null && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Typography, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
5286
5663
|
"Created: ",
|
|
5287
5664
|
createdAt
|
|
5288
5665
|
] }),
|
|
5289
|
-
updatedAt != null && /* @__PURE__ */ (0,
|
|
5666
|
+
updatedAt != null && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Typography, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
5290
5667
|
"Last Updated: ",
|
|
5291
5668
|
updatedAt
|
|
5292
5669
|
] })
|
|
5293
5670
|
]
|
|
5294
5671
|
}
|
|
5295
5672
|
),
|
|
5296
|
-
capacityClamped !== void 0 && /* @__PURE__ */ (0,
|
|
5673
|
+
capacityClamped !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CapacityBar, { value: capacityClamped, indented: expandable })
|
|
5297
5674
|
] }),
|
|
5298
|
-
/* @__PURE__ */ (0,
|
|
5299
|
-
statusIndicator != null && /* @__PURE__ */ (0,
|
|
5300
|
-
/* @__PURE__ */ (0,
|
|
5301
|
-
onContextMenu && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
5302
|
-
import_material27.IconButton,
|
|
5303
|
-
{
|
|
5304
|
-
size: "small",
|
|
5305
|
-
onClick: onContextMenu,
|
|
5306
|
-
"aria-label": "Open menu",
|
|
5307
|
-
sx: {
|
|
5308
|
-
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5309
|
-
borderRadius: "8px",
|
|
5310
|
-
p: 1,
|
|
5311
|
-
bgcolor: "white"
|
|
5312
|
-
},
|
|
5313
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_MoreHoriz.default, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.textPrimary } })
|
|
5314
|
-
}
|
|
5315
|
-
)
|
|
5675
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_material27.Box, { sx: { display: "flex", gap: 1, alignItems: "center", flexShrink: 0 }, children: [
|
|
5676
|
+
statusIndicator != null && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(StatusDot, { status: statusIndicator, "aria-hidden": true }),
|
|
5677
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(CardActionList, { actions })
|
|
5316
5678
|
] })
|
|
5317
5679
|
]
|
|
5318
5680
|
}
|
|
5319
5681
|
),
|
|
5320
|
-
children && /* @__PURE__ */ (0,
|
|
5682
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_material27.Box, { sx: { mt: 1.5, display: "flex", flexDirection: "column", gap: 1 }, children })
|
|
5321
5683
|
]
|
|
5322
5684
|
}
|
|
5323
5685
|
);
|
|
@@ -5325,29 +5687,96 @@ var DeploymentDashboardCard = ({
|
|
|
5325
5687
|
|
|
5326
5688
|
// src/components/layout/DeploymentEntityContextMenu/DeploymentEntityContextMenu.tsx
|
|
5327
5689
|
var import_material28 = require("@mui/material");
|
|
5328
|
-
var
|
|
5329
|
-
var
|
|
5330
|
-
var StyledMenu2 = (0,
|
|
5690
|
+
var import_styles29 = require("@mui/material/styles");
|
|
5691
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
5692
|
+
var StyledMenu2 = (0, import_styles29.styled)(import_material28.Menu)({
|
|
5331
5693
|
"& .MuiPaper-root": {
|
|
5332
|
-
borderRadius:
|
|
5333
|
-
boxShadow:
|
|
5694
|
+
borderRadius: 4,
|
|
5695
|
+
boxShadow: deploymentSurfaceTokens.workspaceShadow,
|
|
5334
5696
|
minWidth: 220,
|
|
5335
|
-
border:
|
|
5336
|
-
|
|
5697
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5698
|
+
padding: 8
|
|
5699
|
+
},
|
|
5700
|
+
"& .MuiList-root": {
|
|
5701
|
+
padding: 0
|
|
5337
5702
|
}
|
|
5338
5703
|
});
|
|
5339
|
-
var
|
|
5340
|
-
|
|
5341
|
-
|
|
5704
|
+
var StyledMenuItem = (0, import_styles29.styled)(import_material28.MenuItem)({
|
|
5705
|
+
gap: 8,
|
|
5706
|
+
padding: "8px 0",
|
|
5707
|
+
borderRadius: 4,
|
|
5708
|
+
minHeight: "auto",
|
|
5709
|
+
"&:hover": {
|
|
5710
|
+
backgroundColor: deploymentSurfaceTokens.hoverLight
|
|
5342
5711
|
},
|
|
5343
|
-
"& .
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
"
|
|
5347
|
-
|
|
5712
|
+
"& .MuiListItemIcon-root": {
|
|
5713
|
+
minWidth: "auto",
|
|
5714
|
+
color: deploymentSurfaceTokens.textPrimary,
|
|
5715
|
+
"& .MuiSvgIcon-root": {
|
|
5716
|
+
fontSize: 24
|
|
5348
5717
|
}
|
|
5718
|
+
},
|
|
5719
|
+
"& .MuiListItemText-root .MuiTypography-root": {
|
|
5720
|
+
fontSize: 16,
|
|
5721
|
+
fontWeight: 500,
|
|
5722
|
+
lineHeight: 1.5,
|
|
5723
|
+
letterSpacing: "0.08px",
|
|
5724
|
+
color: deploymentSurfaceTokens.textPrimary
|
|
5725
|
+
}
|
|
5726
|
+
});
|
|
5727
|
+
var HighlightedMenuItem = (0, import_styles29.styled)(StyledMenuItem)({
|
|
5728
|
+
backgroundColor: deploymentSurfaceTokens.highlightBg,
|
|
5729
|
+
border: `1px solid ${deploymentSurfaceTokens.highlightBorder}`,
|
|
5730
|
+
padding: 8,
|
|
5731
|
+
"&:hover": {
|
|
5732
|
+
backgroundColor: deploymentSurfaceTokens.highlightBgHover
|
|
5733
|
+
}
|
|
5734
|
+
});
|
|
5735
|
+
var ToggleMenuItem = (0, import_styles29.styled)(import_material28.MenuItem)({
|
|
5736
|
+
gap: 8,
|
|
5737
|
+
padding: "8px 0",
|
|
5738
|
+
cursor: "default",
|
|
5739
|
+
minHeight: "auto",
|
|
5740
|
+
"&:hover": {
|
|
5741
|
+
backgroundColor: "transparent"
|
|
5742
|
+
},
|
|
5743
|
+
"& .MuiListItemText-root .MuiTypography-root": {
|
|
5744
|
+
fontSize: 16,
|
|
5745
|
+
fontWeight: 500,
|
|
5746
|
+
lineHeight: 1.5,
|
|
5747
|
+
letterSpacing: "0.08px",
|
|
5748
|
+
color: deploymentSurfaceTokens.textPrimary
|
|
5749
|
+
}
|
|
5750
|
+
});
|
|
5751
|
+
var EnableSwitch = (0, import_styles29.styled)(import_material28.Switch)({
|
|
5752
|
+
width: 32,
|
|
5753
|
+
height: 20,
|
|
5754
|
+
padding: 0,
|
|
5755
|
+
"& .MuiSwitch-switchBase": {
|
|
5756
|
+
padding: 2,
|
|
5757
|
+
"&.Mui-checked": {
|
|
5758
|
+
transform: "translateX(12px)",
|
|
5759
|
+
color: "#fff",
|
|
5760
|
+
"& + .MuiSwitch-track": {
|
|
5761
|
+
backgroundColor: deploymentSurfaceTokens.switchGreen,
|
|
5762
|
+
opacity: 1
|
|
5763
|
+
}
|
|
5764
|
+
}
|
|
5765
|
+
},
|
|
5766
|
+
"& .MuiSwitch-thumb": {
|
|
5767
|
+
width: 16,
|
|
5768
|
+
height: 16
|
|
5769
|
+
},
|
|
5770
|
+
"& .MuiSwitch-track": {
|
|
5771
|
+
borderRadius: 100,
|
|
5772
|
+
backgroundColor: deploymentSurfaceTokens.switchTrackOff,
|
|
5773
|
+
opacity: 1
|
|
5349
5774
|
}
|
|
5350
5775
|
});
|
|
5776
|
+
var StyledDivider = (0, import_styles29.styled)(import_material28.Divider)({
|
|
5777
|
+
margin: "0 !important",
|
|
5778
|
+
borderColor: deploymentSurfaceTokens.strokeOutside
|
|
5779
|
+
});
|
|
5351
5780
|
var DeploymentEntityContextMenu = ({
|
|
5352
5781
|
open,
|
|
5353
5782
|
anchorEl,
|
|
@@ -5357,7 +5786,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
5357
5786
|
enableChecked = false,
|
|
5358
5787
|
onEnableChange
|
|
5359
5788
|
}) => {
|
|
5360
|
-
return /* @__PURE__ */ (0,
|
|
5789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5361
5790
|
StyledMenu2,
|
|
5362
5791
|
{
|
|
5363
5792
|
anchorEl,
|
|
@@ -5366,58 +5795,57 @@ var DeploymentEntityContextMenu = ({
|
|
|
5366
5795
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
5367
5796
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
5368
5797
|
slotProps: { paper: { "aria-label": "Entity context menu" } },
|
|
5369
|
-
children:
|
|
5370
|
-
items.map(
|
|
5371
|
-
(item
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5798
|
+
children: [
|
|
5799
|
+
items.map((item) => {
|
|
5800
|
+
if (item.type === "divider") {
|
|
5801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(StyledDivider, {}, item.id);
|
|
5802
|
+
}
|
|
5803
|
+
if (item.type === "toggle") {
|
|
5804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(ToggleMenuItem, { disableRipple: true, children: [
|
|
5805
|
+
onEnableChange && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5806
|
+
EnableSwitch,
|
|
5378
5807
|
{
|
|
5379
5808
|
size: "small",
|
|
5380
5809
|
checked: enableChecked,
|
|
5381
5810
|
onChange: (_, checked) => onEnableChange(checked),
|
|
5382
|
-
|
|
5811
|
+
inputProps: { "aria-label": item.label }
|
|
5383
5812
|
}
|
|
5384
|
-
)
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5813
|
+
),
|
|
5814
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_material28.ListItemText, { primary: item.label })
|
|
5815
|
+
] }, item.id);
|
|
5816
|
+
}
|
|
5817
|
+
const Row = item.highlighted ? HighlightedMenuItem : StyledMenuItem;
|
|
5818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
5819
|
+
Row,
|
|
5391
5820
|
{
|
|
5392
|
-
primary: item.label,
|
|
5393
|
-
icon: item.icon,
|
|
5394
5821
|
onClick: () => {
|
|
5395
5822
|
item.onClick?.();
|
|
5396
5823
|
onClose();
|
|
5397
5824
|
},
|
|
5398
|
-
|
|
5825
|
+
children: [
|
|
5826
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_material28.ListItemIcon, { children: item.icon }),
|
|
5827
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_material28.ListItemText, { primary: item.label })
|
|
5828
|
+
]
|
|
5399
5829
|
},
|
|
5400
5830
|
item.id
|
|
5401
|
-
)
|
|
5402
|
-
),
|
|
5403
|
-
enableToggle && /* @__PURE__ */ (0,
|
|
5404
|
-
|
|
5405
|
-
{
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
import_material28.Switch,
|
|
5831
|
+
);
|
|
5832
|
+
}),
|
|
5833
|
+
enableToggle && /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
5834
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(StyledDivider, {}),
|
|
5835
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(ToggleMenuItem, { disableRipple: true, children: [
|
|
5836
|
+
onEnableChange && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
5837
|
+
EnableSwitch,
|
|
5409
5838
|
{
|
|
5410
5839
|
size: "small",
|
|
5411
5840
|
checked: enableChecked,
|
|
5412
5841
|
onChange: (_, checked) => onEnableChange(checked),
|
|
5413
|
-
|
|
5842
|
+
inputProps: { "aria-label": "Enable" }
|
|
5414
5843
|
}
|
|
5415
|
-
)
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
] }) })
|
|
5844
|
+
),
|
|
5845
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_material28.ListItemText, { primary: "Enable" })
|
|
5846
|
+
] })
|
|
5847
|
+
] })
|
|
5848
|
+
]
|
|
5421
5849
|
}
|
|
5422
5850
|
);
|
|
5423
5851
|
};
|
|
@@ -5426,65 +5854,86 @@ var DeploymentEntityContextMenu = ({
|
|
|
5426
5854
|
var import_AddCircleOutline = __toESM(require("@mui/icons-material/AddCircleOutline"));
|
|
5427
5855
|
var import_Edit = __toESM(require("@mui/icons-material/Edit"));
|
|
5428
5856
|
var import_ContentCopy2 = __toESM(require("@mui/icons-material/ContentCopy"));
|
|
5429
|
-
var
|
|
5857
|
+
var import_SmartToyOutlined2 = __toESM(require("@mui/icons-material/SmartToyOutlined"));
|
|
5430
5858
|
var import_Description = __toESM(require("@mui/icons-material/Description"));
|
|
5431
5859
|
var import_Settings2 = __toESM(require("@mui/icons-material/Settings"));
|
|
5432
|
-
var
|
|
5860
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
5433
5861
|
var contextMenuItems = {
|
|
5862
|
+
/** Add Engagement action (Add Circle icon) */
|
|
5434
5863
|
addEngagement: (onClick) => ({
|
|
5435
5864
|
id: "add-engagement",
|
|
5436
5865
|
label: "Add Engagement",
|
|
5437
|
-
icon: /* @__PURE__ */ (0,
|
|
5866
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_AddCircleOutline.default, {}),
|
|
5438
5867
|
onClick
|
|
5439
5868
|
}),
|
|
5869
|
+
/** Add Agent action (Add Circle icon) */
|
|
5440
5870
|
addAgent: (onClick) => ({
|
|
5441
5871
|
id: "add-agent",
|
|
5442
5872
|
label: "Add Agent",
|
|
5443
|
-
icon: /* @__PURE__ */ (0,
|
|
5873
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_AddCircleOutline.default, {}),
|
|
5444
5874
|
onClick
|
|
5445
5875
|
}),
|
|
5876
|
+
/** Add Stream action (Add Circle icon) */
|
|
5446
5877
|
addStream: (onClick) => ({
|
|
5447
5878
|
id: "add-stream",
|
|
5448
5879
|
label: "Add Stream",
|
|
5449
|
-
icon: /* @__PURE__ */ (0,
|
|
5880
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_AddCircleOutline.default, {}),
|
|
5450
5881
|
onClick
|
|
5451
5882
|
}),
|
|
5883
|
+
/** Edit action (Pen / Edit icon) */
|
|
5452
5884
|
edit: (onClick) => ({
|
|
5453
5885
|
id: "edit",
|
|
5454
5886
|
label: "Edit",
|
|
5455
|
-
icon: /* @__PURE__ */ (0,
|
|
5887
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_Edit.default, {}),
|
|
5456
5888
|
onClick
|
|
5457
5889
|
}),
|
|
5890
|
+
/** Copy ID action (Copy icon) */
|
|
5458
5891
|
copyId: (onClick) => ({
|
|
5459
5892
|
id: "copy-id",
|
|
5460
5893
|
label: "Copy ID",
|
|
5461
|
-
icon: /* @__PURE__ */ (0,
|
|
5894
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_ContentCopy2.default, {}),
|
|
5462
5895
|
onClick
|
|
5463
5896
|
}),
|
|
5897
|
+
/** Agent Flow Visualization — highlighted action (SmartToy icon) */
|
|
5464
5898
|
agentFlowVisualization: (onClick) => ({
|
|
5465
5899
|
id: "agent-flow",
|
|
5466
5900
|
label: "Agent Flow Visualization",
|
|
5467
|
-
icon: /* @__PURE__ */ (0,
|
|
5468
|
-
onClick
|
|
5901
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_SmartToyOutlined2.default, {}),
|
|
5902
|
+
onClick,
|
|
5903
|
+
highlighted: true
|
|
5469
5904
|
}),
|
|
5905
|
+
/** View Logs action (Document / Description icon) */
|
|
5470
5906
|
viewLogs: (onClick) => ({
|
|
5471
5907
|
id: "view-logs",
|
|
5472
5908
|
label: "View Logs",
|
|
5473
|
-
icon: /* @__PURE__ */ (0,
|
|
5909
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_Description.default, {}),
|
|
5474
5910
|
onClick
|
|
5475
5911
|
}),
|
|
5912
|
+
/** Horizontal divider between sections */
|
|
5913
|
+
divider: () => ({
|
|
5914
|
+
id: "divider",
|
|
5915
|
+
label: "",
|
|
5916
|
+
type: "divider"
|
|
5917
|
+
}),
|
|
5918
|
+
/** Enable toggle row (switch on left + label) */
|
|
5919
|
+
enable: () => ({
|
|
5920
|
+
id: "enable",
|
|
5921
|
+
label: "Enable",
|
|
5922
|
+
type: "toggle"
|
|
5923
|
+
}),
|
|
5924
|
+
/** Settings action (Settings / Gear icon) */
|
|
5476
5925
|
settings: (onClick) => ({
|
|
5477
5926
|
id: "settings",
|
|
5478
5927
|
label: "Settings",
|
|
5479
|
-
icon: /* @__PURE__ */ (0,
|
|
5928
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_Settings2.default, {}),
|
|
5480
5929
|
onClick
|
|
5481
5930
|
})
|
|
5482
5931
|
};
|
|
5483
5932
|
|
|
5484
5933
|
// src/components/layout/DeploymentDashboardTree/DeploymentDashboardTree.tsx
|
|
5485
5934
|
var import_material29 = require("@mui/material");
|
|
5486
|
-
var
|
|
5487
|
-
var
|
|
5935
|
+
var import_styles30 = require("@mui/material/styles");
|
|
5936
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
5488
5937
|
var TREE_SP = {
|
|
5489
5938
|
/** Vertical gap between sibling rows (Figma S / sp-8) */
|
|
5490
5939
|
rowGap: 8,
|
|
@@ -5502,7 +5951,7 @@ var RAIL_OPACITY = {
|
|
|
5502
5951
|
engagement: 0.4,
|
|
5503
5952
|
agent: 0.4
|
|
5504
5953
|
};
|
|
5505
|
-
var Rail = (0,
|
|
5954
|
+
var Rail = (0, import_styles30.styled)(import_material29.Box, {
|
|
5506
5955
|
shouldForwardProp: (p) => p !== "railColor"
|
|
5507
5956
|
})(({ railColor }) => ({
|
|
5508
5957
|
width: TREE_SP.railWidth,
|
|
@@ -5511,7 +5960,7 @@ var Rail = (0, import_styles28.styled)(import_material29.Box, {
|
|
|
5511
5960
|
flexShrink: 0,
|
|
5512
5961
|
alignSelf: "stretch"
|
|
5513
5962
|
}));
|
|
5514
|
-
var TreeRow = ({ node, depth, onExpandToggle, onCopyId,
|
|
5963
|
+
var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
5515
5964
|
const hasChildren = Boolean(node.children && node.children.length > 0);
|
|
5516
5965
|
const { expanded, toggle } = useControlledExpand(
|
|
5517
5966
|
onExpandToggle != null ? node.expanded : void 0,
|
|
@@ -5520,10 +5969,10 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCar
|
|
|
5520
5969
|
);
|
|
5521
5970
|
const entityColor = deploymentEntityColors[node.entityType] ?? deploymentEntityColors.workspace;
|
|
5522
5971
|
const railOpacity = RAIL_OPACITY[node.entityType] ?? 0.5;
|
|
5523
|
-
const railColor = (0,
|
|
5524
|
-
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */ (0,
|
|
5525
|
-
/* @__PURE__ */ (0,
|
|
5526
|
-
/* @__PURE__ */ (0,
|
|
5972
|
+
const railColor = (0, import_styles30.alpha)(entityColor, railOpacity);
|
|
5973
|
+
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_material29.Box, { sx: { display: "flex", gap: `${TREE_SP.railGap}px` }, children: [
|
|
5974
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Rail, { railColor, "aria-hidden": true, "data-rail": true }),
|
|
5975
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5527
5976
|
import_material29.Box,
|
|
5528
5977
|
{
|
|
5529
5978
|
role: "group",
|
|
@@ -5534,14 +5983,13 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCar
|
|
|
5534
5983
|
flexDirection: "column",
|
|
5535
5984
|
gap: `${TREE_SP.rowGap}px`
|
|
5536
5985
|
},
|
|
5537
|
-
children: node.children.map((child) => /* @__PURE__ */ (0,
|
|
5986
|
+
children: node.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5538
5987
|
TreeRow,
|
|
5539
5988
|
{
|
|
5540
5989
|
node: child,
|
|
5541
5990
|
depth: depth + 1,
|
|
5542
5991
|
onExpandToggle,
|
|
5543
5992
|
onCopyId,
|
|
5544
|
-
onContextMenu,
|
|
5545
5993
|
renderCard
|
|
5546
5994
|
},
|
|
5547
5995
|
child.id
|
|
@@ -5549,7 +5997,7 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCar
|
|
|
5549
5997
|
}
|
|
5550
5998
|
)
|
|
5551
5999
|
] }) : null;
|
|
5552
|
-
const cardContent = renderCard?.(node) ?? /* @__PURE__ */ (0,
|
|
6000
|
+
const cardContent = renderCard?.(node) ?? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5553
6001
|
DeploymentDashboardCard,
|
|
5554
6002
|
{
|
|
5555
6003
|
entityType: node.entityType,
|
|
@@ -5564,20 +6012,18 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, onContextMenu, renderCar
|
|
|
5564
6012
|
expanded,
|
|
5565
6013
|
onExpandToggle: hasChildren ? toggle : void 0,
|
|
5566
6014
|
onCopyId: onCopyId && node.idDisplay ? () => onCopyId(node.id) : void 0,
|
|
5567
|
-
onContextMenu: onContextMenu ? (e) => onContextMenu(node.id, e) : void 0,
|
|
5568
6015
|
children: renderedChildren
|
|
5569
6016
|
}
|
|
5570
6017
|
);
|
|
5571
|
-
return /* @__PURE__ */ (0,
|
|
6018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_material29.Box, { role: "treeitem", children: cardContent });
|
|
5572
6019
|
};
|
|
5573
6020
|
var DeploymentDashboardTree = ({
|
|
5574
6021
|
nodes,
|
|
5575
6022
|
onExpandToggle,
|
|
5576
6023
|
onCopyId,
|
|
5577
|
-
onContextMenu,
|
|
5578
6024
|
renderCard
|
|
5579
6025
|
}) => {
|
|
5580
|
-
return /* @__PURE__ */ (0,
|
|
6026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5581
6027
|
import_material29.Box,
|
|
5582
6028
|
{
|
|
5583
6029
|
role: "tree",
|
|
@@ -5587,14 +6033,13 @@ var DeploymentDashboardTree = ({
|
|
|
5587
6033
|
gap: `${TREE_SP.rowGap}px`,
|
|
5588
6034
|
p: `${TREE_SP.rowGap}px`
|
|
5589
6035
|
},
|
|
5590
|
-
children: nodes.map((node) => /* @__PURE__ */ (0,
|
|
6036
|
+
children: nodes.map((node) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
5591
6037
|
TreeRow,
|
|
5592
6038
|
{
|
|
5593
6039
|
node,
|
|
5594
6040
|
depth: 0,
|
|
5595
6041
|
onExpandToggle,
|
|
5596
6042
|
onCopyId,
|
|
5597
|
-
onContextMenu,
|
|
5598
6043
|
renderCard
|
|
5599
6044
|
},
|
|
5600
6045
|
node.id
|
|
@@ -5605,11 +6050,11 @@ var DeploymentDashboardTree = ({
|
|
|
5605
6050
|
|
|
5606
6051
|
// src/components/layout/DeploymentDashboardPanel/DeploymentDashboardPanel.tsx
|
|
5607
6052
|
var import_material30 = require("@mui/material");
|
|
5608
|
-
var
|
|
5609
|
-
var
|
|
6053
|
+
var import_styles31 = require("@mui/material/styles");
|
|
6054
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
5610
6055
|
var PANEL_RADIUS = 12;
|
|
5611
6056
|
var PANEL_SHADOW = "0px 1px 3px rgba(0, 0, 0, 0.08)";
|
|
5612
|
-
var StyledPanel = (0,
|
|
6057
|
+
var StyledPanel = (0, import_styles31.styled)(import_material30.Box)({
|
|
5613
6058
|
backgroundColor: deploymentSurfaceTokens.surfaceHigh,
|
|
5614
6059
|
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
5615
6060
|
borderRadius: PANEL_RADIUS,
|
|
@@ -5621,19 +6066,19 @@ var DeploymentDashboardPanel = ({
|
|
|
5621
6066
|
className,
|
|
5622
6067
|
padding = 2
|
|
5623
6068
|
}) => {
|
|
5624
|
-
return /* @__PURE__ */ (0,
|
|
6069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(StyledPanel, { className, sx: { p: padding }, children });
|
|
5625
6070
|
};
|
|
5626
6071
|
|
|
5627
6072
|
// src/components/layout/Avatar.tsx
|
|
5628
6073
|
var import_Avatar = __toESM(require("@mui/material/Avatar"));
|
|
5629
|
-
var
|
|
5630
|
-
var
|
|
6074
|
+
var import_styles32 = require("@mui/material/styles");
|
|
6075
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
5631
6076
|
var sizeMap = {
|
|
5632
6077
|
small: 32,
|
|
5633
6078
|
medium: 40,
|
|
5634
6079
|
large: 56
|
|
5635
6080
|
};
|
|
5636
|
-
var StyledAvatar = (0,
|
|
6081
|
+
var StyledAvatar = (0, import_styles32.styled)(import_Avatar.default, {
|
|
5637
6082
|
shouldForwardProp: (prop) => prop !== "avatarSize"
|
|
5638
6083
|
})(({ avatarSize = 40 }) => ({
|
|
5639
6084
|
width: avatarSize,
|
|
@@ -5644,18 +6089,18 @@ var StyledAvatar = (0, import_styles30.styled)(import_Avatar.default, {
|
|
|
5644
6089
|
}));
|
|
5645
6090
|
var Avatar5 = ({ size: size3 = "medium", ...props }) => {
|
|
5646
6091
|
const avatarSize = typeof size3 === "number" ? size3 : sizeMap[size3];
|
|
5647
|
-
return /* @__PURE__ */ (0,
|
|
6092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(StyledAvatar, { avatarSize, ...props });
|
|
5648
6093
|
};
|
|
5649
6094
|
|
|
5650
6095
|
// src/components/layout/Table.tsx
|
|
5651
6096
|
var import_material31 = require("@mui/material");
|
|
5652
|
-
var
|
|
5653
|
-
var
|
|
5654
|
-
var StyledTableContainer = (0,
|
|
6097
|
+
var import_styles33 = require("@mui/material/styles");
|
|
6098
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
6099
|
+
var StyledTableContainer = (0, import_styles33.styled)(import_material31.TableContainer)({
|
|
5655
6100
|
borderRadius: 8,
|
|
5656
6101
|
border: `1px solid ${colors.grey[200]}`
|
|
5657
6102
|
});
|
|
5658
|
-
var StyledTableHead = (0,
|
|
6103
|
+
var StyledTableHead = (0, import_styles33.styled)(import_material31.TableHead)({
|
|
5659
6104
|
backgroundColor: colors.grey[50],
|
|
5660
6105
|
"& .MuiTableCell-head": {
|
|
5661
6106
|
fontWeight: 600,
|
|
@@ -5663,7 +6108,7 @@ var StyledTableHead = (0, import_styles31.styled)(import_material31.TableHead)({
|
|
|
5663
6108
|
}
|
|
5664
6109
|
});
|
|
5665
6110
|
var Table = ({ stickyHeader = false, children, ...props }) => {
|
|
5666
|
-
return /* @__PURE__ */ (0,
|
|
6111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(StyledTableContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_material31.Table, { stickyHeader, ...props, children }) });
|
|
5667
6112
|
};
|
|
5668
6113
|
var TableHeader = ({
|
|
5669
6114
|
columns,
|
|
@@ -5671,7 +6116,7 @@ var TableHeader = ({
|
|
|
5671
6116
|
order = "asc",
|
|
5672
6117
|
onSort
|
|
5673
6118
|
}) => {
|
|
5674
|
-
return /* @__PURE__ */ (0,
|
|
6119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(StyledTableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_material31.TableRow, { children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_material31.TableCell, { align: column.align || "left", children: column.sortable && onSort ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
5675
6120
|
import_material31.TableSortLabel,
|
|
5676
6121
|
{
|
|
5677
6122
|
active: orderBy === column.id,
|
|
@@ -5688,10 +6133,10 @@ var import_material32 = require("@mui/material");
|
|
|
5688
6133
|
// src/components/layout/Breadcrumbs.tsx
|
|
5689
6134
|
var import_Breadcrumbs = __toESM(require("@mui/material/Breadcrumbs"));
|
|
5690
6135
|
var import_Link3 = __toESM(require("@mui/material/Link"));
|
|
5691
|
-
var
|
|
5692
|
-
var
|
|
5693
|
-
var
|
|
5694
|
-
var StyledBreadcrumbs = (0,
|
|
6136
|
+
var import_Typography3 = __toESM(require("@mui/material/Typography"));
|
|
6137
|
+
var import_styles34 = require("@mui/material/styles");
|
|
6138
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
6139
|
+
var StyledBreadcrumbs = (0, import_styles34.styled)(import_Breadcrumbs.default)({
|
|
5695
6140
|
"& .MuiBreadcrumbs-ol": {
|
|
5696
6141
|
flexWrap: "nowrap"
|
|
5697
6142
|
},
|
|
@@ -5699,7 +6144,7 @@ var StyledBreadcrumbs = (0, import_styles32.styled)(import_Breadcrumbs.default)(
|
|
|
5699
6144
|
color: colors.text.secondary
|
|
5700
6145
|
}
|
|
5701
6146
|
});
|
|
5702
|
-
var StyledLink2 = (0,
|
|
6147
|
+
var StyledLink2 = (0, import_styles34.styled)(import_Link3.default)({
|
|
5703
6148
|
color: colors.primary.main,
|
|
5704
6149
|
textDecoration: "none",
|
|
5705
6150
|
"&:hover": {
|
|
@@ -5707,12 +6152,12 @@ var StyledLink2 = (0, import_styles32.styled)(import_Link3.default)({
|
|
|
5707
6152
|
}
|
|
5708
6153
|
});
|
|
5709
6154
|
var Breadcrumbs = ({ items, ...props }) => {
|
|
5710
|
-
return /* @__PURE__ */ (0,
|
|
6155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(StyledBreadcrumbs, { ...props, children: items.map((item, index) => {
|
|
5711
6156
|
const isLast = index === items.length - 1;
|
|
5712
6157
|
if (isLast || !item.href && !item.onClick) {
|
|
5713
|
-
return /* @__PURE__ */ (0,
|
|
6158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_Typography3.default, { color: "text.primary", children: item.label }, index);
|
|
5714
6159
|
}
|
|
5715
|
-
return /* @__PURE__ */ (0,
|
|
6160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
5716
6161
|
StyledLink2,
|
|
5717
6162
|
{
|
|
5718
6163
|
href: item.href,
|
|
@@ -5732,9 +6177,9 @@ var Breadcrumbs = ({ items, ...props }) => {
|
|
|
5732
6177
|
// src/components/layout/Accordion.tsx
|
|
5733
6178
|
var import_material33 = require("@mui/material");
|
|
5734
6179
|
var import_ExpandMore2 = __toESM(require("@mui/icons-material/ExpandMore"));
|
|
5735
|
-
var
|
|
5736
|
-
var
|
|
5737
|
-
var StyledAccordion = (0,
|
|
6180
|
+
var import_styles35 = require("@mui/material/styles");
|
|
6181
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
6182
|
+
var StyledAccordion = (0, import_styles35.styled)(import_material33.Accordion)({
|
|
5738
6183
|
borderRadius: 8,
|
|
5739
6184
|
boxShadow: "none",
|
|
5740
6185
|
border: `1px solid ${colors.grey[200]}`,
|
|
@@ -5745,7 +6190,7 @@ var StyledAccordion = (0, import_styles33.styled)(import_material33.Accordion)({
|
|
|
5745
6190
|
margin: 0
|
|
5746
6191
|
}
|
|
5747
6192
|
});
|
|
5748
|
-
var StyledAccordionSummary = (0,
|
|
6193
|
+
var StyledAccordionSummary = (0, import_styles35.styled)(import_material33.AccordionSummary)({
|
|
5749
6194
|
backgroundColor: colors.grey[50],
|
|
5750
6195
|
borderRadius: "8px 8px 0 0",
|
|
5751
6196
|
"&.Mui-expanded": {
|
|
@@ -5755,7 +6200,7 @@ var StyledAccordionSummary = (0, import_styles33.styled)(import_material33.Accor
|
|
|
5755
6200
|
margin: "12px 0"
|
|
5756
6201
|
}
|
|
5757
6202
|
});
|
|
5758
|
-
var StyledAccordionDetails = (0,
|
|
6203
|
+
var StyledAccordionDetails = (0, import_styles35.styled)(import_material33.AccordionDetails)({
|
|
5759
6204
|
padding: "16px"
|
|
5760
6205
|
});
|
|
5761
6206
|
var Accordion = ({
|
|
@@ -5764,17 +6209,17 @@ var Accordion = ({
|
|
|
5764
6209
|
defaultExpanded = false,
|
|
5765
6210
|
...props
|
|
5766
6211
|
}) => {
|
|
5767
|
-
return /* @__PURE__ */ (0,
|
|
5768
|
-
/* @__PURE__ */ (0,
|
|
5769
|
-
/* @__PURE__ */ (0,
|
|
6212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(StyledAccordion, { defaultExpanded, ...props, children: [
|
|
6213
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(StyledAccordionSummary, { expandIcon: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_ExpandMore2.default, {}), children: title }),
|
|
6214
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(StyledAccordionDetails, { children })
|
|
5770
6215
|
] });
|
|
5771
6216
|
};
|
|
5772
6217
|
|
|
5773
6218
|
// src/components/layout/Paper.tsx
|
|
5774
6219
|
var import_Paper = __toESM(require("@mui/material/Paper"));
|
|
5775
|
-
var
|
|
5776
|
-
var
|
|
5777
|
-
var StyledPaper = (0,
|
|
6220
|
+
var import_styles36 = require("@mui/material/styles");
|
|
6221
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
6222
|
+
var StyledPaper = (0, import_styles36.styled)(import_Paper.default)({
|
|
5778
6223
|
borderRadius: 8,
|
|
5779
6224
|
"&.MuiPaper-elevation": {
|
|
5780
6225
|
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.08)"
|
|
@@ -5785,18 +6230,18 @@ var StyledPaper = (0, import_styles34.styled)(import_Paper.default)({
|
|
|
5785
6230
|
}
|
|
5786
6231
|
});
|
|
5787
6232
|
var Paper2 = ({ variant = "elevation", ...props }) => {
|
|
5788
|
-
return /* @__PURE__ */ (0,
|
|
6233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(StyledPaper, { variant, elevation: variant === "elevation" ? 1 : 0, ...props });
|
|
5789
6234
|
};
|
|
5790
6235
|
|
|
5791
6236
|
// src/components/layout/Divider.tsx
|
|
5792
|
-
var
|
|
5793
|
-
var
|
|
5794
|
-
var
|
|
5795
|
-
var
|
|
6237
|
+
var import_Divider2 = __toESM(require("@mui/material/Divider"));
|
|
6238
|
+
var import_styles37 = require("@mui/material/styles");
|
|
6239
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
6240
|
+
var StyledDivider2 = (0, import_styles37.styled)(import_Divider2.default)({
|
|
5796
6241
|
borderColor: colors.grey[200]
|
|
5797
6242
|
});
|
|
5798
|
-
var
|
|
5799
|
-
return /* @__PURE__ */ (0,
|
|
6243
|
+
var Divider6 = ({ ...props }) => {
|
|
6244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(StyledDivider2, { ...props });
|
|
5800
6245
|
};
|
|
5801
6246
|
|
|
5802
6247
|
// src/components/layout/Stack.tsx
|
|
@@ -5813,9 +6258,9 @@ var import_material37 = require("@mui/material");
|
|
|
5813
6258
|
|
|
5814
6259
|
// src/components/layout/AppBar.tsx
|
|
5815
6260
|
var import_material38 = require("@mui/material");
|
|
5816
|
-
var
|
|
5817
|
-
var
|
|
5818
|
-
var StyledAppBar = (0,
|
|
6261
|
+
var import_styles38 = require("@mui/material/styles");
|
|
6262
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
6263
|
+
var StyledAppBar = (0, import_styles38.styled)(import_material38.AppBar, {
|
|
5819
6264
|
shouldForwardProp: (prop) => prop !== "appBarHeight"
|
|
5820
6265
|
})(({ appBarHeight = 64 }) => ({
|
|
5821
6266
|
backgroundColor: colors.background.paper,
|
|
@@ -5824,21 +6269,21 @@ var StyledAppBar = (0, import_styles36.styled)(import_material38.AppBar, {
|
|
|
5824
6269
|
height: appBarHeight,
|
|
5825
6270
|
zIndex: 1300
|
|
5826
6271
|
}));
|
|
5827
|
-
var StyledToolbar = (0,
|
|
6272
|
+
var StyledToolbar = (0, import_styles38.styled)(import_material38.Toolbar)(({ theme: theme2 }) => ({
|
|
5828
6273
|
height: "100%",
|
|
5829
6274
|
paddingLeft: theme2.spacing(2),
|
|
5830
6275
|
paddingRight: theme2.spacing(2),
|
|
5831
6276
|
gap: theme2.spacing(2)
|
|
5832
6277
|
}));
|
|
5833
6278
|
var AppBar = ({ height = 64, children, ...props }) => {
|
|
5834
|
-
return /* @__PURE__ */ (0,
|
|
6279
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(StyledAppBar, { position: "fixed", appBarHeight: height, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(StyledToolbar, { children }) });
|
|
5835
6280
|
};
|
|
5836
6281
|
|
|
5837
6282
|
// src/components/layout/Collapse.tsx
|
|
5838
6283
|
var import_material39 = require("@mui/material");
|
|
5839
|
-
var
|
|
6284
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5840
6285
|
var Collapse = (props) => {
|
|
5841
|
-
return /* @__PURE__ */ (0,
|
|
6286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_material39.Collapse, { ...props });
|
|
5842
6287
|
};
|
|
5843
6288
|
|
|
5844
6289
|
// src/components/feedback/Alert.tsx
|
|
@@ -5846,9 +6291,9 @@ var import_react15 = __toESM(require("react"));
|
|
|
5846
6291
|
var import_Alert = __toESM(require("@mui/material/Alert"));
|
|
5847
6292
|
var import_material40 = require("@mui/material");
|
|
5848
6293
|
var import_Snackbar = __toESM(require("@mui/material/Snackbar"));
|
|
5849
|
-
var
|
|
5850
|
-
var
|
|
5851
|
-
var StyledAlert = (0,
|
|
6294
|
+
var import_styles39 = require("@mui/material/styles");
|
|
6295
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
6296
|
+
var StyledAlert = (0, import_styles39.styled)(import_Alert.default)({
|
|
5852
6297
|
borderRadius: 8,
|
|
5853
6298
|
"&.MuiAlert-filled": {
|
|
5854
6299
|
borderRadius: 8
|
|
@@ -5860,12 +6305,12 @@ var Alert2 = ({
|
|
|
5860
6305
|
children,
|
|
5861
6306
|
...props
|
|
5862
6307
|
}) => {
|
|
5863
|
-
return /* @__PURE__ */ (0,
|
|
5864
|
-
title && /* @__PURE__ */ (0,
|
|
6308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(StyledAlert, { severity, ...props, children: [
|
|
6309
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_material40.AlertTitle, { children: title }),
|
|
5865
6310
|
children
|
|
5866
6311
|
] });
|
|
5867
6312
|
};
|
|
5868
|
-
var StyledSnackbar = (0,
|
|
6313
|
+
var StyledSnackbar = (0, import_styles39.styled)(import_Snackbar.default)({});
|
|
5869
6314
|
var Snackbar2 = ({
|
|
5870
6315
|
message,
|
|
5871
6316
|
severity = "info",
|
|
@@ -5883,7 +6328,7 @@ var Snackbar2 = ({
|
|
|
5883
6328
|
}
|
|
5884
6329
|
onClose?.();
|
|
5885
6330
|
};
|
|
5886
|
-
const content = children || (message ? /* @__PURE__ */ (0,
|
|
6331
|
+
const content = children || (message ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5887
6332
|
Alert2,
|
|
5888
6333
|
{
|
|
5889
6334
|
onClose: onClose ? handleClose : void 0,
|
|
@@ -5909,7 +6354,7 @@ var Snackbar2 = ({
|
|
|
5909
6354
|
}
|
|
5910
6355
|
);
|
|
5911
6356
|
NoTransition.displayName = "NoTransition";
|
|
5912
|
-
return /* @__PURE__ */ (0,
|
|
6357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5913
6358
|
StyledSnackbar,
|
|
5914
6359
|
{
|
|
5915
6360
|
anchorOrigin,
|
|
@@ -5930,14 +6375,14 @@ var Snackbar2 = ({
|
|
|
5930
6375
|
|
|
5931
6376
|
// src/components/feedback/EmptyState.tsx
|
|
5932
6377
|
var import_material41 = require("@mui/material");
|
|
5933
|
-
var
|
|
6378
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5934
6379
|
var EmptyState = ({
|
|
5935
6380
|
title = "No items found",
|
|
5936
6381
|
description,
|
|
5937
6382
|
icon,
|
|
5938
6383
|
action
|
|
5939
6384
|
}) => {
|
|
5940
|
-
return /* @__PURE__ */ (0,
|
|
6385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
5941
6386
|
import_material41.Box,
|
|
5942
6387
|
{
|
|
5943
6388
|
sx: {
|
|
@@ -5950,7 +6395,7 @@ var EmptyState = ({
|
|
|
5950
6395
|
minHeight: 200
|
|
5951
6396
|
},
|
|
5952
6397
|
children: [
|
|
5953
|
-
icon && /* @__PURE__ */ (0,
|
|
6398
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5954
6399
|
import_material41.Box,
|
|
5955
6400
|
{
|
|
5956
6401
|
sx: {
|
|
@@ -5961,9 +6406,9 @@ var EmptyState = ({
|
|
|
5961
6406
|
children: icon
|
|
5962
6407
|
}
|
|
5963
6408
|
),
|
|
5964
|
-
/* @__PURE__ */ (0,
|
|
5965
|
-
description && /* @__PURE__ */ (0,
|
|
5966
|
-
action && /* @__PURE__ */ (0,
|
|
6409
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material41.Typography, { variant: "h6", sx: { marginBottom: 1, color: colors.text.primary }, children: title }),
|
|
6410
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material41.Typography, { variant: "body2", sx: { color: colors.text.secondary, marginBottom: 3 }, children: description }),
|
|
6411
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_material41.Box, { children: action })
|
|
5967
6412
|
]
|
|
5968
6413
|
}
|
|
5969
6414
|
);
|
|
@@ -5971,13 +6416,13 @@ var EmptyState = ({
|
|
|
5971
6416
|
|
|
5972
6417
|
// src/components/feedback/Loading.tsx
|
|
5973
6418
|
var import_material42 = require("@mui/material");
|
|
5974
|
-
var
|
|
6419
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5975
6420
|
var Loading = ({
|
|
5976
6421
|
message = "Loading...",
|
|
5977
6422
|
size: size3 = 40,
|
|
5978
6423
|
fullScreen = false
|
|
5979
6424
|
}) => {
|
|
5980
|
-
const content = /* @__PURE__ */ (0,
|
|
6425
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
5981
6426
|
import_material42.Box,
|
|
5982
6427
|
{
|
|
5983
6428
|
sx: {
|
|
@@ -6000,8 +6445,8 @@ var Loading = ({
|
|
|
6000
6445
|
}
|
|
6001
6446
|
},
|
|
6002
6447
|
children: [
|
|
6003
|
-
/* @__PURE__ */ (0,
|
|
6004
|
-
message && /* @__PURE__ */ (0,
|
|
6448
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_material42.CircularProgress, { size: size3, thickness: 4 }),
|
|
6449
|
+
message && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_material42.Typography, { variant: "body2", color: "text.secondary", children: message })
|
|
6005
6450
|
]
|
|
6006
6451
|
}
|
|
6007
6452
|
);
|
|
@@ -6010,13 +6455,13 @@ var Loading = ({
|
|
|
6010
6455
|
|
|
6011
6456
|
// src/components/feedback/AppLoading.tsx
|
|
6012
6457
|
var import_material43 = require("@mui/material");
|
|
6013
|
-
var
|
|
6458
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
6014
6459
|
var AppLoading = ({
|
|
6015
6460
|
message = "Loading...",
|
|
6016
6461
|
logo = "/icons/logo.png",
|
|
6017
6462
|
sx = {}
|
|
6018
6463
|
}) => {
|
|
6019
|
-
return /* @__PURE__ */ (0,
|
|
6464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
|
|
6020
6465
|
import_material43.Box,
|
|
6021
6466
|
{
|
|
6022
6467
|
sx: {
|
|
@@ -6035,7 +6480,7 @@ var AppLoading = ({
|
|
|
6035
6480
|
...sx
|
|
6036
6481
|
},
|
|
6037
6482
|
children: [
|
|
6038
|
-
logo && /* @__PURE__ */ (0,
|
|
6483
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
6039
6484
|
import_material43.Box,
|
|
6040
6485
|
{
|
|
6041
6486
|
component: "img",
|
|
@@ -6048,8 +6493,8 @@ var AppLoading = ({
|
|
|
6048
6493
|
}
|
|
6049
6494
|
}
|
|
6050
6495
|
),
|
|
6051
|
-
/* @__PURE__ */ (0,
|
|
6052
|
-
/* @__PURE__ */ (0,
|
|
6496
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_material43.CircularProgress, { size: 40, thickness: 4, sx: { mb: 2 } }),
|
|
6497
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_material43.Typography, { variant: "body1", color: "text.secondary", children: message })
|
|
6053
6498
|
]
|
|
6054
6499
|
}
|
|
6055
6500
|
);
|
|
@@ -6057,22 +6502,22 @@ var AppLoading = ({
|
|
|
6057
6502
|
|
|
6058
6503
|
// src/components/feedback/CircularProgress.tsx
|
|
6059
6504
|
var import_material44 = require("@mui/material");
|
|
6060
|
-
var
|
|
6505
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
6061
6506
|
var CircularProgress6 = ({
|
|
6062
6507
|
size: size3 = 40,
|
|
6063
6508
|
thickness = 4,
|
|
6064
6509
|
...props
|
|
6065
6510
|
}) => {
|
|
6066
|
-
return /* @__PURE__ */ (0,
|
|
6511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_material44.CircularProgress, { size: size3, thickness, ...props });
|
|
6067
6512
|
};
|
|
6068
6513
|
|
|
6069
6514
|
// src/components/icons/ActivityAppIcon.tsx
|
|
6070
6515
|
var import_react16 = require("react");
|
|
6071
6516
|
var import_material45 = require("@mui/material");
|
|
6072
|
-
var
|
|
6073
|
-
var ActivityAppIcon = (0, import_react16.memo)((props) => /* @__PURE__ */ (0,
|
|
6074
|
-
/* @__PURE__ */ (0,
|
|
6075
|
-
/* @__PURE__ */ (0,
|
|
6517
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
6518
|
+
var ActivityAppIcon = (0, import_react16.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material45.SvgIcon, { ...props, viewBox: "0 0 36 36", children: [
|
|
6519
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("rect", { fill: "none", stroke: "currentColor", width: 34, height: 34, x: 1, y: 1, strokeWidth: 1.5, rx: 6.8 }),
|
|
6520
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6076
6521
|
"rect",
|
|
6077
6522
|
{
|
|
6078
6523
|
fill: "none",
|
|
@@ -6085,7 +6530,7 @@ var ActivityAppIcon = (0, import_react16.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
6085
6530
|
rx: 1.7
|
|
6086
6531
|
}
|
|
6087
6532
|
),
|
|
6088
|
-
/* @__PURE__ */ (0,
|
|
6533
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6089
6534
|
"rect",
|
|
6090
6535
|
{
|
|
6091
6536
|
fill: "none",
|
|
@@ -6098,7 +6543,7 @@ var ActivityAppIcon = (0, import_react16.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
6098
6543
|
rx: 1.7
|
|
6099
6544
|
}
|
|
6100
6545
|
),
|
|
6101
|
-
/* @__PURE__ */ (0,
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
6102
6547
|
"rect",
|
|
6103
6548
|
{
|
|
6104
6549
|
fill: "none",
|
|
@@ -6115,9 +6560,9 @@ var ActivityAppIcon = (0, import_react16.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
6115
6560
|
|
|
6116
6561
|
// src/components/icons/ArrowLeft.tsx
|
|
6117
6562
|
var import_material46 = require("@mui/material");
|
|
6118
|
-
var
|
|
6563
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
6119
6564
|
var LeftArrowIcon = (props) => {
|
|
6120
|
-
return /* @__PURE__ */ (0,
|
|
6565
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_material46.SvgIcon, { ...props, width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("g", { id: " Arrow Left", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
6121
6566
|
"path",
|
|
6122
6567
|
{
|
|
6123
6568
|
id: "Vector (Stroke)",
|
|
@@ -6131,9 +6576,9 @@ var LeftArrowIcon = (props) => {
|
|
|
6131
6576
|
|
|
6132
6577
|
// src/components/icons/ArrowRight.tsx
|
|
6133
6578
|
var import_material47 = require("@mui/material");
|
|
6134
|
-
var
|
|
6579
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
6135
6580
|
var RightArrowIcon = (props) => {
|
|
6136
|
-
return /* @__PURE__ */ (0,
|
|
6581
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material47.SvgIcon, { ...props, width: "25", height: "24", viewBox: "0 0 25 24", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
6137
6582
|
"path",
|
|
6138
6583
|
{
|
|
6139
6584
|
fillRule: "evenodd",
|
|
@@ -6146,10 +6591,10 @@ var RightArrowIcon = (props) => {
|
|
|
6146
6591
|
|
|
6147
6592
|
// src/components/icons/AvatarIcon.tsx
|
|
6148
6593
|
var import_material48 = require("@mui/material");
|
|
6149
|
-
var
|
|
6594
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
6150
6595
|
var AvatarIcon = (props) => {
|
|
6151
|
-
return /* @__PURE__ */ (0,
|
|
6152
|
-
/* @__PURE__ */ (0,
|
|
6596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_material48.SvgIcon, { ...props, viewBox: "0 0 16 16", children: [
|
|
6597
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6153
6598
|
"path",
|
|
6154
6599
|
{
|
|
6155
6600
|
fillRule: "evenodd",
|
|
@@ -6158,7 +6603,7 @@ var AvatarIcon = (props) => {
|
|
|
6158
6603
|
fill: "#1D1B20"
|
|
6159
6604
|
}
|
|
6160
6605
|
),
|
|
6161
|
-
/* @__PURE__ */ (0,
|
|
6606
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
6162
6607
|
"path",
|
|
6163
6608
|
{
|
|
6164
6609
|
fillRule: "evenodd",
|
|
@@ -6173,9 +6618,9 @@ var AvatarIcon = (props) => {
|
|
|
6173
6618
|
// src/components/icons/BarTrackingIcon.tsx
|
|
6174
6619
|
var import_react17 = require("react");
|
|
6175
6620
|
var import_material49 = require("@mui/material");
|
|
6176
|
-
var
|
|
6177
|
-
var BarTrackingIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0,
|
|
6178
|
-
/* @__PURE__ */ (0,
|
|
6621
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
6622
|
+
var BarTrackingIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_material49.SvgIcon, { ...props, viewBox: "0 0 96 97", children: [
|
|
6623
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6179
6624
|
"rect",
|
|
6180
6625
|
{
|
|
6181
6626
|
x: "7.19922",
|
|
@@ -6188,7 +6633,7 @@ var BarTrackingIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
6188
6633
|
fill: "none"
|
|
6189
6634
|
}
|
|
6190
6635
|
),
|
|
6191
|
-
/* @__PURE__ */ (0,
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6192
6637
|
"rect",
|
|
6193
6638
|
{
|
|
6194
6639
|
x: "21.0371",
|
|
@@ -6201,7 +6646,7 @@ var BarTrackingIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
6201
6646
|
strokeWidth: "2"
|
|
6202
6647
|
}
|
|
6203
6648
|
),
|
|
6204
|
-
/* @__PURE__ */ (0,
|
|
6649
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6205
6650
|
"rect",
|
|
6206
6651
|
{
|
|
6207
6652
|
x: "40.4746",
|
|
@@ -6214,7 +6659,7 @@ var BarTrackingIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
6214
6659
|
strokeWidth: "2"
|
|
6215
6660
|
}
|
|
6216
6661
|
),
|
|
6217
|
-
/* @__PURE__ */ (0,
|
|
6662
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
6218
6663
|
"rect",
|
|
6219
6664
|
{
|
|
6220
6665
|
x: "59.8828",
|
|
@@ -6232,8 +6677,8 @@ var BarTrackingIcon = (0, import_react17.memo)((props) => /* @__PURE__ */ (0, im
|
|
|
6232
6677
|
// src/components/icons/ClockIcon.tsx
|
|
6233
6678
|
var import_react18 = require("react");
|
|
6234
6679
|
var import_material50 = require("@mui/material");
|
|
6235
|
-
var
|
|
6236
|
-
var ClockIcon = (0, import_react18.memo)((props) => /* @__PURE__ */ (0,
|
|
6680
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
6681
|
+
var ClockIcon = (0, import_react18.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_material50.SvgIcon, { ...props, viewBox: "0 0 22 22", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
6237
6682
|
"path",
|
|
6238
6683
|
{
|
|
6239
6684
|
fill: "currentColor",
|
|
@@ -6246,9 +6691,9 @@ var ClockIcon = (0, import_react18.memo)((props) => /* @__PURE__ */ (0, import_j
|
|
|
6246
6691
|
// src/components/icons/CloudFlashIcon.tsx
|
|
6247
6692
|
var import_react19 = require("react");
|
|
6248
6693
|
var import_material51 = require("@mui/material");
|
|
6249
|
-
var
|
|
6250
|
-
var CloudFlashIcon = (0, import_react19.memo)((props) => /* @__PURE__ */ (0,
|
|
6251
|
-
/* @__PURE__ */ (0,
|
|
6694
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
6695
|
+
var CloudFlashIcon = (0, import_react19.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material51.SvgIcon, { ...props, fill: "none", viewBox: "0 0 96 97", children: [
|
|
6696
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6252
6697
|
"path",
|
|
6253
6698
|
{
|
|
6254
6699
|
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",
|
|
@@ -6257,7 +6702,7 @@ var CloudFlashIcon = (0, import_react19.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
6257
6702
|
strokeWidth: "2"
|
|
6258
6703
|
}
|
|
6259
6704
|
),
|
|
6260
|
-
/* @__PURE__ */ (0,
|
|
6705
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
6261
6706
|
"path",
|
|
6262
6707
|
{
|
|
6263
6708
|
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",
|
|
@@ -6271,9 +6716,9 @@ var CloudFlashIcon = (0, import_react19.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
6271
6716
|
// src/components/icons/DecentralizedServerIcon.tsx
|
|
6272
6717
|
var import_react20 = require("react");
|
|
6273
6718
|
var import_material52 = require("@mui/material");
|
|
6274
|
-
var
|
|
6275
|
-
var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ */ (0,
|
|
6276
|
-
/* @__PURE__ */ (0,
|
|
6719
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
6720
|
+
var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_material52.SvgIcon, { ...props, viewBox: "0 0 96 97", children: [
|
|
6721
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6277
6722
|
"path",
|
|
6278
6723
|
{
|
|
6279
6724
|
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",
|
|
@@ -6284,7 +6729,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6284
6729
|
strokeLinejoin: "round"
|
|
6285
6730
|
}
|
|
6286
6731
|
),
|
|
6287
|
-
/* @__PURE__ */ (0,
|
|
6732
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6288
6733
|
"path",
|
|
6289
6734
|
{
|
|
6290
6735
|
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",
|
|
@@ -6295,7 +6740,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6295
6740
|
strokeLinejoin: "round"
|
|
6296
6741
|
}
|
|
6297
6742
|
),
|
|
6298
|
-
/* @__PURE__ */ (0,
|
|
6743
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6299
6744
|
"path",
|
|
6300
6745
|
{
|
|
6301
6746
|
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",
|
|
@@ -6306,7 +6751,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6306
6751
|
strokeLinejoin: "round"
|
|
6307
6752
|
}
|
|
6308
6753
|
),
|
|
6309
|
-
/* @__PURE__ */ (0,
|
|
6754
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6310
6755
|
"path",
|
|
6311
6756
|
{
|
|
6312
6757
|
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",
|
|
@@ -6317,7 +6762,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6317
6762
|
strokeLinejoin: "round"
|
|
6318
6763
|
}
|
|
6319
6764
|
),
|
|
6320
|
-
/* @__PURE__ */ (0,
|
|
6765
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6321
6766
|
"path",
|
|
6322
6767
|
{
|
|
6323
6768
|
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",
|
|
@@ -6328,7 +6773,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6328
6773
|
strokeLinejoin: "round"
|
|
6329
6774
|
}
|
|
6330
6775
|
),
|
|
6331
|
-
/* @__PURE__ */ (0,
|
|
6776
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6332
6777
|
"path",
|
|
6333
6778
|
{
|
|
6334
6779
|
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",
|
|
@@ -6339,7 +6784,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6339
6784
|
strokeLinejoin: "round"
|
|
6340
6785
|
}
|
|
6341
6786
|
),
|
|
6342
|
-
/* @__PURE__ */ (0,
|
|
6787
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6343
6788
|
"path",
|
|
6344
6789
|
{
|
|
6345
6790
|
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",
|
|
@@ -6350,7 +6795,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6350
6795
|
strokeLinejoin: "round"
|
|
6351
6796
|
}
|
|
6352
6797
|
),
|
|
6353
|
-
/* @__PURE__ */ (0,
|
|
6798
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6354
6799
|
"path",
|
|
6355
6800
|
{
|
|
6356
6801
|
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",
|
|
@@ -6361,7 +6806,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6361
6806
|
strokeLinejoin: "round"
|
|
6362
6807
|
}
|
|
6363
6808
|
),
|
|
6364
|
-
/* @__PURE__ */ (0,
|
|
6809
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6365
6810
|
"path",
|
|
6366
6811
|
{
|
|
6367
6812
|
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",
|
|
@@ -6372,7 +6817,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6372
6817
|
strokeLinejoin: "round"
|
|
6373
6818
|
}
|
|
6374
6819
|
),
|
|
6375
|
-
/* @__PURE__ */ (0,
|
|
6820
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6376
6821
|
"rect",
|
|
6377
6822
|
{
|
|
6378
6823
|
x: "22.623",
|
|
@@ -6385,7 +6830,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6385
6830
|
strokeWidth: "2"
|
|
6386
6831
|
}
|
|
6387
6832
|
),
|
|
6388
|
-
/* @__PURE__ */ (0,
|
|
6833
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6389
6834
|
"rect",
|
|
6390
6835
|
{
|
|
6391
6836
|
x: "22.623",
|
|
@@ -6398,7 +6843,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6398
6843
|
strokeWidth: "2"
|
|
6399
6844
|
}
|
|
6400
6845
|
),
|
|
6401
|
-
/* @__PURE__ */ (0,
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6402
6847
|
"rect",
|
|
6403
6848
|
{
|
|
6404
6849
|
x: "22.623",
|
|
@@ -6411,7 +6856,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6411
6856
|
strokeWidth: "2"
|
|
6412
6857
|
}
|
|
6413
6858
|
),
|
|
6414
|
-
/* @__PURE__ */ (0,
|
|
6859
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6415
6860
|
"path",
|
|
6416
6861
|
{
|
|
6417
6862
|
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",
|
|
@@ -6421,7 +6866,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6421
6866
|
strokeMiterlimit: "10"
|
|
6422
6867
|
}
|
|
6423
6868
|
),
|
|
6424
|
-
/* @__PURE__ */ (0,
|
|
6869
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6425
6870
|
"path",
|
|
6426
6871
|
{
|
|
6427
6872
|
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",
|
|
@@ -6431,7 +6876,7 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6431
6876
|
strokeMiterlimit: "10"
|
|
6432
6877
|
}
|
|
6433
6878
|
),
|
|
6434
|
-
/* @__PURE__ */ (0,
|
|
6879
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6435
6880
|
"path",
|
|
6436
6881
|
{
|
|
6437
6882
|
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",
|
|
@@ -6446,8 +6891,8 @@ var DecentralizedServerIcon = (0, import_react20.memo)((props) => /* @__PURE__ *
|
|
|
6446
6891
|
// src/components/icons/DiscordIcon.tsx
|
|
6447
6892
|
var import_react21 = require("react");
|
|
6448
6893
|
var import_material53 = require("@mui/material");
|
|
6449
|
-
var
|
|
6450
|
-
var DiscordIcon = (0, import_react21.memo)((props) => /* @__PURE__ */ (0,
|
|
6894
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
6895
|
+
var DiscordIcon = (0, import_react21.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material53.SvgIcon, { ...props, viewBox: "0 0 15 12", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
6451
6896
|
"path",
|
|
6452
6897
|
{
|
|
6453
6898
|
fill: "currentColor",
|
|
@@ -6458,16 +6903,16 @@ var DiscordIcon = (0, import_react21.memo)((props) => /* @__PURE__ */ (0, import
|
|
|
6458
6903
|
// src/components/icons/DownloadIcon.tsx
|
|
6459
6904
|
var import_react22 = require("react");
|
|
6460
6905
|
var import_material54 = require("@mui/material");
|
|
6461
|
-
var
|
|
6462
|
-
var DownloadIcon = (0, import_react22.memo)((props) => /* @__PURE__ */ (0,
|
|
6463
|
-
/* @__PURE__ */ (0,
|
|
6906
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
6907
|
+
var DownloadIcon = (0, import_react22.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_material54.SvgIcon, { ...props, viewBox: "0 0 17 16", fill: "none", children: [
|
|
6908
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6464
6909
|
"path",
|
|
6465
6910
|
{
|
|
6466
6911
|
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",
|
|
6467
6912
|
fill: "currentColor"
|
|
6468
6913
|
}
|
|
6469
6914
|
),
|
|
6470
|
-
/* @__PURE__ */ (0,
|
|
6915
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
6471
6916
|
"path",
|
|
6472
6917
|
{
|
|
6473
6918
|
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",
|
|
@@ -6479,11 +6924,11 @@ var DownloadIcon = (0, import_react22.memo)((props) => /* @__PURE__ */ (0, impor
|
|
|
6479
6924
|
// src/components/icons/FilledFolderIcon.tsx
|
|
6480
6925
|
var import_react23 = require("react");
|
|
6481
6926
|
var import_material55 = require("@mui/material");
|
|
6482
|
-
var
|
|
6483
|
-
var FilledFolderIcon = (0, import_react23.memo)((props) => /* @__PURE__ */ (0,
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6485
|
-
/* @__PURE__ */ (0,
|
|
6486
|
-
/* @__PURE__ */ (0,
|
|
6927
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
6928
|
+
var FilledFolderIcon = (0, import_react23.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_material55.SvgIcon, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
6929
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#FCF8EC" }),
|
|
6930
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E1B43E" }),
|
|
6931
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
6487
6932
|
"path",
|
|
6488
6933
|
{
|
|
6489
6934
|
fillRule: "evenodd",
|
|
@@ -6497,11 +6942,11 @@ var FilledFolderIcon = (0, import_react23.memo)((props) => /* @__PURE__ */ (0, i
|
|
|
6497
6942
|
// src/components/icons/FolderIcon.tsx
|
|
6498
6943
|
var import_react24 = require("react");
|
|
6499
6944
|
var import_material56 = require("@mui/material");
|
|
6500
|
-
var
|
|
6501
|
-
var FolderIcon = (0, import_react24.memo)((props) => /* @__PURE__ */ (0,
|
|
6502
|
-
/* @__PURE__ */ (0,
|
|
6503
|
-
/* @__PURE__ */ (0,
|
|
6504
|
-
/* @__PURE__ */ (0,
|
|
6945
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
6946
|
+
var FolderIcon = (0, import_react24.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_material56.SvgIcon, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
6947
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#F5F7FA" }),
|
|
6948
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E6E6E6" }),
|
|
6949
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
6505
6950
|
"path",
|
|
6506
6951
|
{
|
|
6507
6952
|
fillRule: "evenodd",
|
|
@@ -6517,16 +6962,16 @@ var FolderIcon = (0, import_react24.memo)((props) => /* @__PURE__ */ (0, import_
|
|
|
6517
6962
|
// src/components/icons/GithubLogoIcon.tsx
|
|
6518
6963
|
var import_react25 = require("react");
|
|
6519
6964
|
var import_material57 = require("@mui/material");
|
|
6520
|
-
var
|
|
6521
|
-
var GithubLogoIcon = (0, import_react25.memo)((props) => /* @__PURE__ */ (0,
|
|
6522
|
-
/* @__PURE__ */ (0,
|
|
6965
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
6966
|
+
var GithubLogoIcon = (0, import_react25.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_material57.SvgIcon, { ...props, viewBox: "0 0 17 16", sx: { fill: "none" }, children: [
|
|
6967
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6523
6968
|
"path",
|
|
6524
6969
|
{
|
|
6525
6970
|
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",
|
|
6526
6971
|
fill: "white"
|
|
6527
6972
|
}
|
|
6528
6973
|
),
|
|
6529
|
-
/* @__PURE__ */ (0,
|
|
6974
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
6530
6975
|
"path",
|
|
6531
6976
|
{
|
|
6532
6977
|
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",
|
|
@@ -6538,8 +6983,8 @@ var GithubLogoIcon = (0, import_react25.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
6538
6983
|
// src/components/icons/ShareIcon.tsx
|
|
6539
6984
|
var import_react26 = require("react");
|
|
6540
6985
|
var import_material58 = require("@mui/material");
|
|
6541
|
-
var
|
|
6542
|
-
var ShareIcon = (0, import_react26.memo)((props) => /* @__PURE__ */ (0,
|
|
6986
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
6987
|
+
var ShareIcon = (0, import_react26.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_material58.SvgIcon, { ...props, viewBox: "0 0 17 16", fill: "none", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
6543
6988
|
"path",
|
|
6544
6989
|
{
|
|
6545
6990
|
fillRule: "evenodd",
|
|
@@ -6552,9 +6997,9 @@ var ShareIcon = (0, import_react26.memo)((props) => /* @__PURE__ */ (0, import_j
|
|
|
6552
6997
|
// src/components/icons/StorageAppIcon.tsx
|
|
6553
6998
|
var import_react27 = require("react");
|
|
6554
6999
|
var import_material59 = require("@mui/material");
|
|
6555
|
-
var
|
|
6556
|
-
var StorageAppIcon = (0, import_react27.memo)((props) => /* @__PURE__ */ (0,
|
|
6557
|
-
/* @__PURE__ */ (0,
|
|
7000
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
7001
|
+
var StorageAppIcon = (0, import_react27.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_material59.SvgIcon, { ...props, viewBox: "0 0 38 29", fill: "none", children: [
|
|
7002
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6558
7003
|
"path",
|
|
6559
7004
|
{
|
|
6560
7005
|
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",
|
|
@@ -6563,7 +7008,7 @@ var StorageAppIcon = (0, import_react27.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
6563
7008
|
fill: "none"
|
|
6564
7009
|
}
|
|
6565
7010
|
),
|
|
6566
|
-
/* @__PURE__ */ (0,
|
|
7011
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
6567
7012
|
"path",
|
|
6568
7013
|
{
|
|
6569
7014
|
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",
|
|
@@ -6577,8 +7022,8 @@ var StorageAppIcon = (0, import_react27.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
6577
7022
|
// src/components/icons/UploadFileIcon.tsx
|
|
6578
7023
|
var import_react28 = require("react");
|
|
6579
7024
|
var import_material60 = require("@mui/material");
|
|
6580
|
-
var
|
|
6581
|
-
var UploadFileIcon = (0, import_react28.memo)((props) => /* @__PURE__ */ (0,
|
|
7025
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
7026
|
+
var UploadFileIcon = (0, import_react28.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_material60.SvgIcon, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
6582
7027
|
"path",
|
|
6583
7028
|
{
|
|
6584
7029
|
fillRule: "evenodd",
|
|
@@ -6593,8 +7038,8 @@ var UploadFileIcon = (0, import_react28.memo)((props) => /* @__PURE__ */ (0, imp
|
|
|
6593
7038
|
// src/components/icons/UploadFolderIcon.tsx
|
|
6594
7039
|
var import_react29 = require("react");
|
|
6595
7040
|
var import_material61 = require("@mui/material");
|
|
6596
|
-
var
|
|
6597
|
-
var UploadFolderIcon = (0, import_react29.memo)((props) => /* @__PURE__ */ (0,
|
|
7041
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
7042
|
+
var UploadFolderIcon = (0, import_react29.memo)((props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material61.SvgIcon, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
6598
7043
|
"path",
|
|
6599
7044
|
{
|
|
6600
7045
|
fillRule: "evenodd",
|
|
@@ -6613,7 +7058,7 @@ var import_github_markdown_light = require("github-markdown-css/github-markdown-
|
|
|
6613
7058
|
var import_react_markdown = __toESM(require("react-markdown"));
|
|
6614
7059
|
var import_rehype_highlight = __toESM(require("rehype-highlight"));
|
|
6615
7060
|
var import_rehype_raw = __toESM(require("rehype-raw"));
|
|
6616
|
-
var
|
|
7061
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
6617
7062
|
var Content = (0, import_material62.styled)(import_material62.Box)(({ theme: theme2 }) => ({
|
|
6618
7063
|
backgroundColor: "transparent",
|
|
6619
7064
|
...theme2.typography.body1,
|
|
@@ -6631,11 +7076,11 @@ var Content = (0, import_material62.styled)(import_material62.Box)(({ theme: the
|
|
|
6631
7076
|
backgroundColor: theme2.palette.background.paper
|
|
6632
7077
|
}
|
|
6633
7078
|
}));
|
|
6634
|
-
var Markdown = ({ content, children }) => /* @__PURE__ */ (0,
|
|
7079
|
+
var Markdown = ({ content, children }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Content, { className: "markdown-body", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_react_markdown.default, { rehypePlugins: [import_rehype_highlight.default, import_rehype_raw.default], children: content || children }) });
|
|
6635
7080
|
|
|
6636
7081
|
// src/components/utilities/OnboardingProvider/OnboardingProvider.tsx
|
|
6637
7082
|
var import_react30 = require("react");
|
|
6638
|
-
var
|
|
7083
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
6639
7084
|
var OnboardingContext = (0, import_react30.createContext)(void 0);
|
|
6640
7085
|
var useOnboarding = () => {
|
|
6641
7086
|
const context = (0, import_react30.useContext)(OnboardingContext);
|
|
@@ -6660,7 +7105,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
6660
7105
|
setIsOnboardingActive(false);
|
|
6661
7106
|
setTimeout(() => setIsOnboardingActive(true), 0);
|
|
6662
7107
|
}, []);
|
|
6663
|
-
return /* @__PURE__ */ (0,
|
|
7108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
6664
7109
|
OnboardingContext.Provider,
|
|
6665
7110
|
{
|
|
6666
7111
|
value: {
|
|
@@ -6675,7 +7120,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
6675
7120
|
};
|
|
6676
7121
|
|
|
6677
7122
|
// src/components/utilities/Truncate/Truncate.tsx
|
|
6678
|
-
var
|
|
7123
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
6679
7124
|
var getDefaultEndingLength = ({ text, variant, maxLength = text.length }) => {
|
|
6680
7125
|
if (variant === "hex") {
|
|
6681
7126
|
return 4;
|
|
@@ -6699,21 +7144,21 @@ var Truncate = ({
|
|
|
6699
7144
|
const truncated = text.slice(0, maxLength - endingLength);
|
|
6700
7145
|
truncatedText = [truncated, ending].filter(Boolean).join("...");
|
|
6701
7146
|
}
|
|
6702
|
-
return /* @__PURE__ */ (0,
|
|
7147
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { ...props, "data-full": text, children: truncatedText });
|
|
6703
7148
|
};
|
|
6704
7149
|
|
|
6705
7150
|
// src/components/utilities/BytesSize/BytesSize.tsx
|
|
6706
7151
|
var import_byte_size = __toESM(require("byte-size"));
|
|
6707
|
-
var
|
|
7152
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
6708
7153
|
var BytesSize = ({ bytes }) => {
|
|
6709
|
-
return /* @__PURE__ */ (0,
|
|
7154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children: (0, import_byte_size.default)(bytes).toString() });
|
|
6710
7155
|
};
|
|
6711
7156
|
|
|
6712
7157
|
// src/components/utilities/QRCode/QRCode.tsx
|
|
6713
7158
|
var import_react31 = require("react");
|
|
6714
7159
|
var import_react_qr_code = __toESM(require("react-qr-code"));
|
|
6715
|
-
var
|
|
6716
|
-
var QRCode = (0, import_react31.forwardRef)(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */ (0,
|
|
7160
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
7161
|
+
var QRCode = (0, import_react31.forwardRef)(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_qr_code.default, { ref, size: size3, ...props }));
|
|
6717
7162
|
QRCode.displayName = "QRCode";
|
|
6718
7163
|
|
|
6719
7164
|
// src/components/charts/ChartWidget/ChartWidget.tsx
|
|
@@ -6721,7 +7166,7 @@ var import_material63 = require("@mui/material");
|
|
|
6721
7166
|
var import_x_charts = require("@mui/x-charts");
|
|
6722
7167
|
var import_byte_size2 = __toESM(require("byte-size"));
|
|
6723
7168
|
var import_date_fns = require("date-fns");
|
|
6724
|
-
var
|
|
7169
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
6725
7170
|
var Chart = (0, import_material63.styled)(import_material63.Box)(() => ({
|
|
6726
7171
|
height: 200
|
|
6727
7172
|
}));
|
|
@@ -6732,10 +7177,10 @@ var ChartWidget = ({
|
|
|
6732
7177
|
formatValue = (value2) => (0, import_byte_size2.default)(value2 || 0).toString()
|
|
6733
7178
|
}) => {
|
|
6734
7179
|
const theme2 = (0, import_material63.useTheme)();
|
|
6735
|
-
return /* @__PURE__ */ (0,
|
|
6736
|
-
/* @__PURE__ */ (0,
|
|
6737
|
-
/* @__PURE__ */ (0,
|
|
6738
|
-
/* @__PURE__ */ (0,
|
|
7180
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_material63.Stack, { spacing: 1, children: [
|
|
7181
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_material63.Typography, { variant: "caption", color: "text.secondary", children: title }),
|
|
7182
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_material63.Typography, { fontWeight: "bold", children: value }),
|
|
7183
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Chart, { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6739
7184
|
import_x_charts.LineChart,
|
|
6740
7185
|
{
|
|
6741
7186
|
dataset: history || [],
|
|
@@ -6797,7 +7242,7 @@ var import_material65 = require("@mui/material");
|
|
|
6797
7242
|
|
|
6798
7243
|
// src/components/charts/MetricsChart/PeriodSelect.tsx
|
|
6799
7244
|
var import_material64 = require("@mui/material");
|
|
6800
|
-
var
|
|
7245
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
6801
7246
|
var options = [
|
|
6802
7247
|
/**
|
|
6803
7248
|
* TODO: Enable the options below when the backend supports them
|
|
@@ -6807,7 +7252,7 @@ var options = [
|
|
|
6807
7252
|
{ value: "week", label: "1 week" },
|
|
6808
7253
|
{ value: "month", label: "1 month" }
|
|
6809
7254
|
];
|
|
6810
|
-
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ (0,
|
|
7255
|
+
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6811
7256
|
import_material64.TextField,
|
|
6812
7257
|
{
|
|
6813
7258
|
select: true,
|
|
@@ -6815,13 +7260,13 @@ var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ (0, import_jsx_runti
|
|
|
6815
7260
|
value,
|
|
6816
7261
|
defaultValue: options[0].value,
|
|
6817
7262
|
onChange: (e) => onChange?.(e.target.value),
|
|
6818
|
-
children: options.map(({ value: value2, label }) => /* @__PURE__ */ (0,
|
|
7263
|
+
children: options.map(({ value: value2, label }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_material64.MenuItem, { value: value2, children: label }, value2))
|
|
6819
7264
|
}
|
|
6820
7265
|
);
|
|
6821
7266
|
|
|
6822
7267
|
// src/components/charts/MetricsChart/MetricsChart.tsx
|
|
6823
7268
|
var import_react32 = require("react");
|
|
6824
|
-
var
|
|
7269
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
6825
7270
|
var mapPeriodToFromDate = (period = "month") => {
|
|
6826
7271
|
const date = /* @__PURE__ */ new Date();
|
|
6827
7272
|
if (period === "hour") {
|
|
@@ -6881,15 +7326,15 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
6881
7326
|
const backgroundHeight = textHeight + padding.top + padding.bottom;
|
|
6882
7327
|
const rectX = left + (width - backgroundWidth) / 2;
|
|
6883
7328
|
const rectY = top + (height - backgroundHeight) / 2;
|
|
6884
|
-
return /* @__PURE__ */ (0,
|
|
6885
|
-
/* @__PURE__ */ (0,
|
|
6886
|
-
/* @__PURE__ */ (0,
|
|
7329
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("g", { children: [
|
|
7330
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(NoDataRect, { x: rectX, y: rectY, width: backgroundWidth, height: backgroundHeight }),
|
|
7331
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(LoadingText, { style: { ...theme2.typography.subtitle1 }, x: left + width / 2, y: top + height / 2, children: text })
|
|
6887
7332
|
] });
|
|
6888
7333
|
};
|
|
6889
|
-
return /* @__PURE__ */ (0,
|
|
6890
|
-
/* @__PURE__ */ (0,
|
|
6891
|
-
/* @__PURE__ */ (0,
|
|
6892
|
-
/* @__PURE__ */ (0,
|
|
7334
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Card, { children: [
|
|
7335
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.CardHeader, { title: "GET / PUT Requests", action: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(PeriodSelect, { value: period, onChange: setPeriod }) }),
|
|
7336
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.CardMedia, { children: [
|
|
7337
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
6893
7338
|
Chart2,
|
|
6894
7339
|
{
|
|
6895
7340
|
skipAnimation: true,
|
|
@@ -6950,35 +7395,35 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
6950
7395
|
]
|
|
6951
7396
|
}
|
|
6952
7397
|
),
|
|
6953
|
-
periodHistory.length > 0 && /* @__PURE__ */ (0,
|
|
6954
|
-
/* @__PURE__ */ (0,
|
|
6955
|
-
/* @__PURE__ */ (0,
|
|
6956
|
-
/* @__PURE__ */ (0,
|
|
7398
|
+
periodHistory.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", spacing: 2, marginY: 3, justifyContent: "center", children: [
|
|
7399
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
7400
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Box, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.primary.main } }),
|
|
7401
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "body2", children: "Get" })
|
|
6957
7402
|
] }),
|
|
6958
|
-
/* @__PURE__ */ (0,
|
|
6959
|
-
/* @__PURE__ */ (0,
|
|
6960
|
-
/* @__PURE__ */ (0,
|
|
7403
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
7404
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Box, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.success.main } }),
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "body2", children: "Put" })
|
|
6961
7406
|
] })
|
|
6962
7407
|
] })
|
|
6963
7408
|
] }),
|
|
6964
|
-
/* @__PURE__ */ (0,
|
|
6965
|
-
/* @__PURE__ */ (0,
|
|
6966
|
-
/* @__PURE__ */ (0,
|
|
6967
|
-
/* @__PURE__ */ (0,
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
6969
|
-
/* @__PURE__ */ (0,
|
|
7409
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.CardMedia, { children: [
|
|
7410
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Divider, { flexItem: true }),
|
|
7411
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", spacing: 2, padding: 2, children: [
|
|
7412
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
7413
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "body2", color: "secondary", children: "GET Requests per account" }),
|
|
7414
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "h3", children: total.gets })
|
|
6970
7415
|
] }),
|
|
6971
|
-
/* @__PURE__ */ (0,
|
|
6972
|
-
/* @__PURE__ */ (0,
|
|
6973
|
-
/* @__PURE__ */ (0,
|
|
7416
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
7417
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "body2", color: "secondary", children: "PUT Requests per account" }),
|
|
7418
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "h3", children: total.puts })
|
|
6974
7419
|
] }),
|
|
6975
|
-
/* @__PURE__ */ (0,
|
|
6976
|
-
/* @__PURE__ */ (0,
|
|
6977
|
-
/* @__PURE__ */ (0,
|
|
7420
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
7421
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "body2", color: "secondary", children: "Total Consumed per account" }),
|
|
7422
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "h3", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(BytesSize, { bytes: total.transferredBytes }) })
|
|
6978
7423
|
] }),
|
|
6979
|
-
/* @__PURE__ */ (0,
|
|
6980
|
-
/* @__PURE__ */ (0,
|
|
6981
|
-
/* @__PURE__ */ (0,
|
|
7424
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_material65.Stack, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
7425
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "body2", color: "secondary", children: "Total Stored per account" }),
|
|
7426
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_material65.Typography, { variant: "h3", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(BytesSize, { bytes: total.storedBytes }) })
|
|
6982
7427
|
] })
|
|
6983
7428
|
] })
|
|
6984
7429
|
] })
|
|
@@ -6989,9 +7434,9 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
6989
7434
|
var import_react33 = require("react");
|
|
6990
7435
|
var import_reactflow = __toESM(require("reactflow"));
|
|
6991
7436
|
var import_material66 = require("@mui/material");
|
|
6992
|
-
var
|
|
7437
|
+
var import_styles40 = require("@mui/material/styles");
|
|
6993
7438
|
var import_reactflow2 = require("reactflow");
|
|
6994
|
-
var
|
|
7439
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
6995
7440
|
var FlowEditor = ({
|
|
6996
7441
|
nodes,
|
|
6997
7442
|
edges,
|
|
@@ -7008,7 +7453,7 @@ var FlowEditor = ({
|
|
|
7008
7453
|
onInit,
|
|
7009
7454
|
...reactFlowProps
|
|
7010
7455
|
}) => {
|
|
7011
|
-
const theme2 = (0,
|
|
7456
|
+
const theme2 = (0, import_styles40.useTheme)();
|
|
7012
7457
|
const handleInit = (0, import_react33.useCallback)(
|
|
7013
7458
|
(instance) => {
|
|
7014
7459
|
if (onInit) {
|
|
@@ -7017,7 +7462,7 @@ var FlowEditor = ({
|
|
|
7017
7462
|
},
|
|
7018
7463
|
[onInit]
|
|
7019
7464
|
);
|
|
7020
|
-
return /* @__PURE__ */ (0,
|
|
7465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_reactflow.ReactFlowProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7021
7466
|
import_material66.Box,
|
|
7022
7467
|
{
|
|
7023
7468
|
sx: {
|
|
@@ -7030,7 +7475,7 @@ var FlowEditor = ({
|
|
|
7030
7475
|
...containerProps?.sx
|
|
7031
7476
|
},
|
|
7032
7477
|
...containerProps,
|
|
7033
|
-
children: /* @__PURE__ */ (0,
|
|
7478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
7034
7479
|
import_reactflow.default,
|
|
7035
7480
|
{
|
|
7036
7481
|
nodes,
|
|
@@ -7052,7 +7497,7 @@ var FlowEditor = ({
|
|
|
7052
7497
|
},
|
|
7053
7498
|
...reactFlowProps,
|
|
7054
7499
|
children: [
|
|
7055
|
-
showBackground && /* @__PURE__ */ (0,
|
|
7500
|
+
showBackground && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7056
7501
|
import_reactflow.Background,
|
|
7057
7502
|
{
|
|
7058
7503
|
variant: backgroundVariant,
|
|
@@ -7061,8 +7506,8 @@ var FlowEditor = ({
|
|
|
7061
7506
|
color: theme2.palette.divider
|
|
7062
7507
|
}
|
|
7063
7508
|
),
|
|
7064
|
-
showControls && /* @__PURE__ */ (0,
|
|
7065
|
-
showMinimap && /* @__PURE__ */ (0,
|
|
7509
|
+
showControls && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_reactflow.Controls, {}),
|
|
7510
|
+
showMinimap && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
7066
7511
|
import_reactflow.MiniMap,
|
|
7067
7512
|
{
|
|
7068
7513
|
nodeColor: (node) => {
|
|
@@ -7093,7 +7538,7 @@ var import_FullscreenExit = __toESM(require("@mui/icons-material/FullscreenExit"
|
|
|
7093
7538
|
var import_ErrorOutline = __toESM(require("@mui/icons-material/ErrorOutline"));
|
|
7094
7539
|
var import_ExpandMore3 = __toESM(require("@mui/icons-material/ExpandMore"));
|
|
7095
7540
|
var import_ExpandLess = __toESM(require("@mui/icons-material/ExpandLess"));
|
|
7096
|
-
var
|
|
7541
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
7097
7542
|
var configureTypeScript = (monaco) => {
|
|
7098
7543
|
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
7099
7544
|
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
@@ -7305,7 +7750,7 @@ var CodeEditor = ({
|
|
|
7305
7750
|
theme: themeProp || "vs",
|
|
7306
7751
|
...options2
|
|
7307
7752
|
};
|
|
7308
|
-
return /* @__PURE__ */ (0,
|
|
7753
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7309
7754
|
import_material67.Box,
|
|
7310
7755
|
{
|
|
7311
7756
|
sx: {
|
|
@@ -7326,7 +7771,7 @@ var CodeEditor = ({
|
|
|
7326
7771
|
pb: isFullscreen ? 2 : 0,
|
|
7327
7772
|
overflow: isFullscreen ? "hidden" : "visible"
|
|
7328
7773
|
},
|
|
7329
|
-
children: /* @__PURE__ */ (0,
|
|
7774
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
7330
7775
|
import_material67.Box,
|
|
7331
7776
|
{
|
|
7332
7777
|
sx: {
|
|
@@ -7342,7 +7787,7 @@ var CodeEditor = ({
|
|
|
7342
7787
|
},
|
|
7343
7788
|
...containerProps,
|
|
7344
7789
|
children: [
|
|
7345
|
-
/* @__PURE__ */ (0,
|
|
7790
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_material67.Tooltip, { title: isFullscreen ? "Exit Fullscreen" : "Fullscreen", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7346
7791
|
import_material67.IconButton,
|
|
7347
7792
|
{
|
|
7348
7793
|
onClick: toggleFullscreen,
|
|
@@ -7360,10 +7805,10 @@ var CodeEditor = ({
|
|
|
7360
7805
|
},
|
|
7361
7806
|
boxShadow: 1
|
|
7362
7807
|
},
|
|
7363
|
-
children: isFullscreen ? /* @__PURE__ */ (0,
|
|
7808
|
+
children: isFullscreen ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_FullscreenExit.default, { fontSize: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_Fullscreen.default, { fontSize: "small" })
|
|
7364
7809
|
}
|
|
7365
7810
|
) }),
|
|
7366
|
-
/* @__PURE__ */ (0,
|
|
7811
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7367
7812
|
import_material67.Box,
|
|
7368
7813
|
{
|
|
7369
7814
|
sx: {
|
|
@@ -7375,7 +7820,7 @@ var CodeEditor = ({
|
|
|
7375
7820
|
position: "relative",
|
|
7376
7821
|
height: isFullscreen ? "100%" : actualHeight
|
|
7377
7822
|
},
|
|
7378
|
-
children: /* @__PURE__ */ (0,
|
|
7823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7379
7824
|
import_react35.default,
|
|
7380
7825
|
{
|
|
7381
7826
|
height: "100%",
|
|
@@ -7386,7 +7831,7 @@ var CodeEditor = ({
|
|
|
7386
7831
|
onMount: handleEditorDidMount,
|
|
7387
7832
|
theme: themeProp || "vs",
|
|
7388
7833
|
options: defaultOptions,
|
|
7389
|
-
loading: /* @__PURE__ */ (0,
|
|
7834
|
+
loading: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_material67.Box, { sx: { p: 2, textAlign: "center" }, children: "Loading Monaco Editor..." }),
|
|
7390
7835
|
beforeMount: (monaco) => {
|
|
7391
7836
|
console.log("CodeEditor: beforeMount called", { monaco: !!monaco });
|
|
7392
7837
|
}
|
|
@@ -7394,7 +7839,7 @@ var CodeEditor = ({
|
|
|
7394
7839
|
)
|
|
7395
7840
|
}
|
|
7396
7841
|
),
|
|
7397
|
-
validationErrors.length > 0 && /* @__PURE__ */ (0,
|
|
7842
|
+
validationErrors.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
7398
7843
|
import_material67.Box,
|
|
7399
7844
|
{
|
|
7400
7845
|
sx: {
|
|
@@ -7408,7 +7853,7 @@ var CodeEditor = ({
|
|
|
7408
7853
|
transition: "max-height 0.2s ease"
|
|
7409
7854
|
},
|
|
7410
7855
|
children: [
|
|
7411
|
-
/* @__PURE__ */ (0,
|
|
7856
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
7412
7857
|
import_material67.Box,
|
|
7413
7858
|
{
|
|
7414
7859
|
sx: {
|
|
@@ -7423,15 +7868,15 @@ var CodeEditor = ({
|
|
|
7423
7868
|
color: "text.secondary"
|
|
7424
7869
|
},
|
|
7425
7870
|
children: [
|
|
7426
|
-
/* @__PURE__ */ (0,
|
|
7427
|
-
/* @__PURE__ */ (0,
|
|
7428
|
-
/* @__PURE__ */ (0,
|
|
7871
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_ErrorOutline.default, { color: "error", fontSize: "small" }),
|
|
7872
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_material67.Box, { sx: { fontWeight: 600, color: "text.primary" }, children: "Problems" }),
|
|
7873
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_material67.Box, { sx: { ml: 1 }, children: [
|
|
7429
7874
|
validationErrors.length,
|
|
7430
7875
|
" error",
|
|
7431
7876
|
validationErrors.length > 1 ? "s" : ""
|
|
7432
7877
|
] }),
|
|
7433
|
-
/* @__PURE__ */ (0,
|
|
7434
|
-
/* @__PURE__ */ (0,
|
|
7878
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_material67.Box, { sx: { flex: 1 } }),
|
|
7879
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7435
7880
|
import_material67.IconButton,
|
|
7436
7881
|
{
|
|
7437
7882
|
size: "small",
|
|
@@ -7440,13 +7885,13 @@ var CodeEditor = ({
|
|
|
7440
7885
|
setHasUserToggledProblems(true);
|
|
7441
7886
|
setShowProblems((s) => !s);
|
|
7442
7887
|
},
|
|
7443
|
-
children: showProblems ? /* @__PURE__ */ (0,
|
|
7888
|
+
children: showProblems ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_ExpandMore3.default, { fontSize: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_ExpandLess.default, { fontSize: "small" })
|
|
7444
7889
|
}
|
|
7445
7890
|
)
|
|
7446
7891
|
]
|
|
7447
7892
|
}
|
|
7448
7893
|
),
|
|
7449
|
-
showProblems && /* @__PURE__ */ (0,
|
|
7894
|
+
showProblems && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_material67.Box, { sx: { overflow: "auto" }, children: validationErrors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
|
|
7450
7895
|
import_material67.Box,
|
|
7451
7896
|
{
|
|
7452
7897
|
onClick: () => gotoMarker(error),
|
|
@@ -7463,12 +7908,12 @@ var CodeEditor = ({
|
|
|
7463
7908
|
fontSize: "0.85rem"
|
|
7464
7909
|
},
|
|
7465
7910
|
children: [
|
|
7466
|
-
/* @__PURE__ */ (0,
|
|
7467
|
-
/* @__PURE__ */ (0,
|
|
7911
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_ErrorOutline.default, { color: "error", sx: { fontSize: 18 } }),
|
|
7912
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_material67.Box, { sx: { color: "text.secondary", width: 64 }, children: [
|
|
7468
7913
|
"Line ",
|
|
7469
7914
|
error.startLineNumber
|
|
7470
7915
|
] }),
|
|
7471
|
-
/* @__PURE__ */ (0,
|
|
7916
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_material67.Box, { sx: { color: "text.primary", flex: 1, minWidth: 0 }, children: error.message })
|
|
7472
7917
|
]
|
|
7473
7918
|
},
|
|
7474
7919
|
`${error.startLineNumber}-${error.startColumn}-${index}`
|
|
@@ -7535,6 +7980,7 @@ var import_reactflow3 = require("reactflow");
|
|
|
7535
7980
|
Dropdown,
|
|
7536
7981
|
DropdownAnchor,
|
|
7537
7982
|
EmptyState,
|
|
7983
|
+
EntityHeader,
|
|
7538
7984
|
FilledFolderIcon,
|
|
7539
7985
|
FlowEditor,
|
|
7540
7986
|
FolderIcon,
|
|
@@ -7544,6 +7990,7 @@ var import_reactflow3 = require("reactflow");
|
|
|
7544
7990
|
FormLabel,
|
|
7545
7991
|
GithubLogoIcon,
|
|
7546
7992
|
Grid,
|
|
7993
|
+
IDBlock,
|
|
7547
7994
|
IconButton,
|
|
7548
7995
|
InputAdornment,
|
|
7549
7996
|
InputLabel,
|
|
@@ -7576,6 +8023,7 @@ var import_reactflow3 = require("reactflow");
|
|
|
7576
8023
|
Radio,
|
|
7577
8024
|
RadioGroup,
|
|
7578
8025
|
RightArrowIcon,
|
|
8026
|
+
RoleBadge,
|
|
7579
8027
|
SearchField,
|
|
7580
8028
|
Selector,
|
|
7581
8029
|
ServiceSelectorButton,
|
|
@@ -7608,6 +8056,8 @@ var import_reactflow3 = require("reactflow");
|
|
|
7608
8056
|
WorkspaceSelectorButton,
|
|
7609
8057
|
colors,
|
|
7610
8058
|
contextMenuItems,
|
|
8059
|
+
robPaletteExtended,
|
|
8060
|
+
robPrimaryPalette,
|
|
7611
8061
|
theme,
|
|
7612
8062
|
useIsDesktop,
|
|
7613
8063
|
useIsMobile,
|