@cere/cere-design-system 0.0.38 → 0.0.42
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/.specify/memory/constitution.md +1 -1
- package/dist/index.d.mts +50 -5
- package/dist/index.d.ts +50 -5
- package/dist/index.js +659 -517
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +743 -604
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,6 +3,18 @@ import { createTheme } from "@mui/material/styles";
|
|
|
3
3
|
|
|
4
4
|
// src/theme/primitives.ts
|
|
5
5
|
var primitives = {
|
|
6
|
+
/**
|
|
7
|
+
* Cere brand violet — the company's primary action color across web
|
|
8
|
+
* surfaces. Use via `semantic.action.primary` rather than reaching for
|
|
9
|
+
* raw hex.
|
|
10
|
+
*/
|
|
11
|
+
violet: {
|
|
12
|
+
100: "#f0e0fb",
|
|
13
|
+
300: "#d0bcff",
|
|
14
|
+
500: "#aa44f2",
|
|
15
|
+
600: "#7c59ac"
|
|
16
|
+
},
|
|
17
|
+
/** Legacy MUI blue. Retained for code paths that still reach for blue tokens by name (e.g. ROB highlights). Not the brand primary. */
|
|
6
18
|
blue: {
|
|
7
19
|
500: "#1976d2",
|
|
8
20
|
600: "#1565c0"
|
|
@@ -144,8 +156,8 @@ var workflowConnectionColors = {
|
|
|
144
156
|
// src/theme/semantic.ts
|
|
145
157
|
var semantic = {
|
|
146
158
|
action: {
|
|
147
|
-
primary: primitives.
|
|
148
|
-
primaryHover: primitives.
|
|
159
|
+
primary: primitives.violet[500],
|
|
160
|
+
primaryHover: primitives.violet[600],
|
|
149
161
|
disabled: primitives.grey[400]
|
|
150
162
|
},
|
|
151
163
|
surface: {
|
|
@@ -5893,15 +5905,52 @@ var ScrollableRow = ({
|
|
|
5893
5905
|
] });
|
|
5894
5906
|
};
|
|
5895
5907
|
|
|
5908
|
+
// src/components/layout/SectionRow.tsx
|
|
5909
|
+
import Box20 from "@mui/material/Box";
|
|
5910
|
+
import Typography16 from "@mui/material/Typography";
|
|
5911
|
+
import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5912
|
+
function SectionRow({
|
|
5913
|
+
title,
|
|
5914
|
+
subtitle,
|
|
5915
|
+
action,
|
|
5916
|
+
leftLabel,
|
|
5917
|
+
rightLabel,
|
|
5918
|
+
children
|
|
5919
|
+
}) {
|
|
5920
|
+
return /* @__PURE__ */ jsxs27(Box20, { component: "section", sx: { mb: 4 }, children: [
|
|
5921
|
+
/* @__PURE__ */ jsxs27(
|
|
5922
|
+
Box20,
|
|
5923
|
+
{
|
|
5924
|
+
component: "header",
|
|
5925
|
+
sx: {
|
|
5926
|
+
display: "flex",
|
|
5927
|
+
alignItems: "flex-end",
|
|
5928
|
+
justifyContent: "space-between",
|
|
5929
|
+
gap: 1.5,
|
|
5930
|
+
mb: 1.5
|
|
5931
|
+
},
|
|
5932
|
+
children: [
|
|
5933
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { minWidth: 0 }, children: [
|
|
5934
|
+
/* @__PURE__ */ jsx51(Typography16, { component: "h2", variant: "h6", sx: { m: 0 }, children: title }),
|
|
5935
|
+
subtitle && /* @__PURE__ */ jsx51(Typography16, { variant: "caption", sx: { color: "text.secondary" }, children: subtitle })
|
|
5936
|
+
] }),
|
|
5937
|
+
action && /* @__PURE__ */ jsx51(Box20, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: action })
|
|
5938
|
+
]
|
|
5939
|
+
}
|
|
5940
|
+
),
|
|
5941
|
+
/* @__PURE__ */ jsx51(ScrollableRow, { leftLabel, rightLabel, children })
|
|
5942
|
+
] });
|
|
5943
|
+
}
|
|
5944
|
+
|
|
5896
5945
|
// src/components/layout/Carousel.tsx
|
|
5897
5946
|
import { useEffect as useEffect5, useState as useState10 } from "react";
|
|
5898
|
-
import
|
|
5947
|
+
import Box21 from "@mui/material/Box";
|
|
5899
5948
|
import IconButton10 from "@mui/material/IconButton";
|
|
5900
|
-
import
|
|
5949
|
+
import Typography17 from "@mui/material/Typography";
|
|
5901
5950
|
import ChevronLeftIcon3 from "@mui/icons-material/ChevronLeft";
|
|
5902
5951
|
import ChevronRightIcon3 from "@mui/icons-material/ChevronRight";
|
|
5903
5952
|
import useEmblaCarousel from "embla-carousel-react";
|
|
5904
|
-
import { Fragment as Fragment10, jsx as
|
|
5953
|
+
import { Fragment as Fragment10, jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5905
5954
|
var pad2 = (n) => String(n).padStart(2, "0");
|
|
5906
5955
|
function Carousel({
|
|
5907
5956
|
slides,
|
|
@@ -5953,8 +6002,8 @@ function Carousel({
|
|
|
5953
6002
|
boxShadow: 1,
|
|
5954
6003
|
"&:hover": { bgcolor: "background.paper" }
|
|
5955
6004
|
};
|
|
5956
|
-
return /* @__PURE__ */
|
|
5957
|
-
|
|
6005
|
+
return /* @__PURE__ */ jsxs28(
|
|
6006
|
+
Box21,
|
|
5958
6007
|
{
|
|
5959
6008
|
role: "region",
|
|
5960
6009
|
"aria-roledescription": "carousel",
|
|
@@ -5963,8 +6012,8 @@ function Carousel({
|
|
|
5963
6012
|
onPointerLeave: pauseOnHover ? () => setPaused(false) : void 0,
|
|
5964
6013
|
sx: { position: "relative", width: "100%" },
|
|
5965
6014
|
children: [
|
|
5966
|
-
/* @__PURE__ */
|
|
5967
|
-
|
|
6015
|
+
/* @__PURE__ */ jsx52(Box21, { ref: emblaRef, sx: { overflow: "hidden" }, children: /* @__PURE__ */ jsx52(Box21, { sx: { display: "flex" }, children: slides.map((item, i) => /* @__PURE__ */ jsx52(
|
|
6016
|
+
Box21,
|
|
5968
6017
|
{
|
|
5969
6018
|
role: "group",
|
|
5970
6019
|
"aria-roledescription": "slide",
|
|
@@ -5974,28 +6023,28 @@ function Carousel({
|
|
|
5974
6023
|
},
|
|
5975
6024
|
getKey ? getKey(item, i) : i
|
|
5976
6025
|
)) }) }),
|
|
5977
|
-
showControls && showArrows && /* @__PURE__ */
|
|
5978
|
-
/* @__PURE__ */
|
|
6026
|
+
showControls && showArrows && /* @__PURE__ */ jsxs28(Fragment10, { children: [
|
|
6027
|
+
/* @__PURE__ */ jsx52(
|
|
5979
6028
|
IconButton10,
|
|
5980
6029
|
{
|
|
5981
6030
|
"aria-label": "Previous slide",
|
|
5982
6031
|
onClick: () => emblaApi?.scrollPrev(),
|
|
5983
6032
|
sx: [arrowBaseSx, { left: 8 }, ...Array.isArray(arrowSx) ? arrowSx : [arrowSx]],
|
|
5984
|
-
children: /* @__PURE__ */
|
|
6033
|
+
children: /* @__PURE__ */ jsx52(ChevronLeftIcon3, {})
|
|
5985
6034
|
}
|
|
5986
6035
|
),
|
|
5987
|
-
/* @__PURE__ */
|
|
6036
|
+
/* @__PURE__ */ jsx52(
|
|
5988
6037
|
IconButton10,
|
|
5989
6038
|
{
|
|
5990
6039
|
"aria-label": "Next slide",
|
|
5991
6040
|
onClick: () => emblaApi?.scrollNext(),
|
|
5992
6041
|
sx: [arrowBaseSx, { right: 8 }, ...Array.isArray(arrowSx) ? arrowSx : [arrowSx]],
|
|
5993
|
-
children: /* @__PURE__ */
|
|
6042
|
+
children: /* @__PURE__ */ jsx52(ChevronRightIcon3, {})
|
|
5994
6043
|
}
|
|
5995
6044
|
)
|
|
5996
6045
|
] }),
|
|
5997
|
-
showControls && showCounter && /* @__PURE__ */
|
|
5998
|
-
|
|
6046
|
+
showControls && showCounter && /* @__PURE__ */ jsxs28(
|
|
6047
|
+
Typography17,
|
|
5999
6048
|
{
|
|
6000
6049
|
variant: "caption",
|
|
6001
6050
|
sx: {
|
|
@@ -6016,8 +6065,8 @@ function Carousel({
|
|
|
6016
6065
|
]
|
|
6017
6066
|
}
|
|
6018
6067
|
),
|
|
6019
|
-
showControls && showDots && /* @__PURE__ */
|
|
6020
|
-
|
|
6068
|
+
showControls && showDots && /* @__PURE__ */ jsx52(
|
|
6069
|
+
Box21,
|
|
6021
6070
|
{
|
|
6022
6071
|
role: "tablist",
|
|
6023
6072
|
"aria-label": "Carousel slides",
|
|
@@ -6030,8 +6079,8 @@ function Carousel({
|
|
|
6030
6079
|
justifyContent: "center",
|
|
6031
6080
|
gap: 1
|
|
6032
6081
|
},
|
|
6033
|
-
children: slides.map((item, i) => /* @__PURE__ */
|
|
6034
|
-
|
|
6082
|
+
children: slides.map((item, i) => /* @__PURE__ */ jsx52(
|
|
6083
|
+
Box21,
|
|
6035
6084
|
{
|
|
6036
6085
|
component: "button",
|
|
6037
6086
|
role: "tab",
|
|
@@ -6059,10 +6108,66 @@ function Carousel({
|
|
|
6059
6108
|
);
|
|
6060
6109
|
}
|
|
6061
6110
|
|
|
6111
|
+
// src/components/layout/GradientSurface.tsx
|
|
6112
|
+
import Box22 from "@mui/material/Box";
|
|
6113
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
6114
|
+
var PALETTES = [
|
|
6115
|
+
{ base: "linear-gradient(115deg, #0d0627 0%, #23194b 55%, #8B00EC 130%)", blobA: "#BD32A7", blobB: "#8B00EC" },
|
|
6116
|
+
{ base: "linear-gradient(115deg, #2a1635 0%, #5b2a55 55%, #c75a8a 130%)", blobA: "#ff7ea8", blobB: "#ffd1a8" },
|
|
6117
|
+
{ base: "linear-gradient(115deg, #0e2a2c 0%, #1d5d63 55%, #59c6c4 130%)", blobA: "#59c6c4", blobB: "#2bb0a0" },
|
|
6118
|
+
{ base: "linear-gradient(115deg, #131534 0%, #2c3a8c 55%, #6088e8 130%)", blobA: "#6088e8", blobB: "#3b5db8" },
|
|
6119
|
+
{ base: "linear-gradient(115deg, #1a0f30 0%, #3d2a78 55%, #8a5cf6 130%)", blobA: "#a892ff", blobB: "#6b4cf0" },
|
|
6120
|
+
{ base: "linear-gradient(115deg, #2b1124 0%, #6d2244 55%, #d44a7a 130%)", blobA: "#d44a7a", blobB: "#a8345e" }
|
|
6121
|
+
];
|
|
6122
|
+
var GRADIENT_PALETTE_COUNT = PALETTES.length;
|
|
6123
|
+
function GradientSurface({ index, children, sx }) {
|
|
6124
|
+
const wrapped = (index % GRADIENT_PALETTE_COUNT + GRADIENT_PALETTE_COUNT) % GRADIENT_PALETTE_COUNT;
|
|
6125
|
+
const palette = PALETTES[wrapped];
|
|
6126
|
+
return /* @__PURE__ */ jsx53(
|
|
6127
|
+
Box22,
|
|
6128
|
+
{
|
|
6129
|
+
"data-gradient-index": wrapped,
|
|
6130
|
+
sx: [
|
|
6131
|
+
{
|
|
6132
|
+
position: "relative",
|
|
6133
|
+
overflow: "hidden",
|
|
6134
|
+
background: palette.base,
|
|
6135
|
+
color: "common.white",
|
|
6136
|
+
"&::before, &::after": {
|
|
6137
|
+
content: '""',
|
|
6138
|
+
position: "absolute",
|
|
6139
|
+
pointerEvents: "none",
|
|
6140
|
+
borderRadius: "50%",
|
|
6141
|
+
filter: "blur(6px)"
|
|
6142
|
+
},
|
|
6143
|
+
"&::before": {
|
|
6144
|
+
width: 460,
|
|
6145
|
+
height: 460,
|
|
6146
|
+
top: -120,
|
|
6147
|
+
right: -120,
|
|
6148
|
+
opacity: 0.7,
|
|
6149
|
+
background: `radial-gradient(circle, ${palette.blobA} 0%, transparent 70%)`
|
|
6150
|
+
},
|
|
6151
|
+
"&::after": {
|
|
6152
|
+
width: 520,
|
|
6153
|
+
height: 520,
|
|
6154
|
+
bottom: -180,
|
|
6155
|
+
left: -160,
|
|
6156
|
+
opacity: 0.55,
|
|
6157
|
+
background: `radial-gradient(circle, ${palette.blobB} 0%, transparent 70%)`
|
|
6158
|
+
}
|
|
6159
|
+
},
|
|
6160
|
+
...Array.isArray(sx) ? sx : [sx]
|
|
6161
|
+
],
|
|
6162
|
+
children
|
|
6163
|
+
}
|
|
6164
|
+
);
|
|
6165
|
+
}
|
|
6166
|
+
|
|
6062
6167
|
// src/components/layout/DefinitionRow.tsx
|
|
6063
|
-
import
|
|
6064
|
-
import
|
|
6065
|
-
import { jsx as
|
|
6168
|
+
import Box23 from "@mui/material/Box";
|
|
6169
|
+
import Typography18 from "@mui/material/Typography";
|
|
6170
|
+
import { jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6066
6171
|
function DefinitionRow({
|
|
6067
6172
|
icon,
|
|
6068
6173
|
label,
|
|
@@ -6072,8 +6177,8 @@ function DefinitionRow({
|
|
|
6072
6177
|
dense = false,
|
|
6073
6178
|
divider = true
|
|
6074
6179
|
}) {
|
|
6075
|
-
return /* @__PURE__ */
|
|
6076
|
-
|
|
6180
|
+
return /* @__PURE__ */ jsxs29(
|
|
6181
|
+
Box23,
|
|
6077
6182
|
{
|
|
6078
6183
|
"data-density": dense ? "dense" : "normal",
|
|
6079
6184
|
sx: {
|
|
@@ -6088,13 +6193,13 @@ function DefinitionRow({
|
|
|
6088
6193
|
}
|
|
6089
6194
|
},
|
|
6090
6195
|
children: [
|
|
6091
|
-
icon && /* @__PURE__ */
|
|
6092
|
-
/* @__PURE__ */
|
|
6093
|
-
/* @__PURE__ */
|
|
6094
|
-
sublabel && /* @__PURE__ */
|
|
6196
|
+
icon && /* @__PURE__ */ jsx54(Box23, { sx: { display: "flex", alignItems: "center", color: "text.secondary" }, children: icon }),
|
|
6197
|
+
/* @__PURE__ */ jsxs29(Box23, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
6198
|
+
/* @__PURE__ */ jsx54(Typography18, { variant: "body2", sx: { fontWeight: 500, lineHeight: 1.2 }, children: label }),
|
|
6199
|
+
sublabel && /* @__PURE__ */ jsx54(Typography18, { variant: "caption", sx: { color: "text.secondary" }, children: sublabel })
|
|
6095
6200
|
] }),
|
|
6096
|
-
(value || hint) && /* @__PURE__ */
|
|
6097
|
-
|
|
6201
|
+
(value || hint) && /* @__PURE__ */ jsxs29(
|
|
6202
|
+
Box23,
|
|
6098
6203
|
{
|
|
6099
6204
|
sx: {
|
|
6100
6205
|
display: "flex",
|
|
@@ -6103,8 +6208,8 @@ function DefinitionRow({
|
|
|
6103
6208
|
textAlign: "right"
|
|
6104
6209
|
},
|
|
6105
6210
|
children: [
|
|
6106
|
-
value && /* @__PURE__ */
|
|
6107
|
-
hint && /* @__PURE__ */
|
|
6211
|
+
value && /* @__PURE__ */ jsx54(Typography18, { variant: "body2", sx: { color: "text.secondary" }, children: value }),
|
|
6212
|
+
hint && /* @__PURE__ */ jsx54(Typography18, { variant: "caption", sx: { color: "text.disabled" }, children: hint })
|
|
6108
6213
|
]
|
|
6109
6214
|
}
|
|
6110
6215
|
)
|
|
@@ -6117,11 +6222,11 @@ function DefinitionRow({
|
|
|
6117
6222
|
import { forwardRef as forwardRef2 } from "react";
|
|
6118
6223
|
import MuiDialog2 from "@mui/material/Dialog";
|
|
6119
6224
|
import IconButton11 from "@mui/material/IconButton";
|
|
6120
|
-
import
|
|
6121
|
-
import
|
|
6225
|
+
import Box24 from "@mui/material/Box";
|
|
6226
|
+
import Typography19 from "@mui/material/Typography";
|
|
6122
6227
|
import Slide from "@mui/material/Slide";
|
|
6123
6228
|
import CloseIcon3 from "@mui/icons-material/Close";
|
|
6124
|
-
import { jsx as
|
|
6229
|
+
import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6125
6230
|
var WIDTH_PX = {
|
|
6126
6231
|
sm: 420,
|
|
6127
6232
|
md: 640,
|
|
@@ -6130,12 +6235,12 @@ var WIDTH_PX = {
|
|
|
6130
6235
|
};
|
|
6131
6236
|
var SlideLeft = forwardRef2(
|
|
6132
6237
|
function SlideLeft2(props, ref) {
|
|
6133
|
-
return /* @__PURE__ */
|
|
6238
|
+
return /* @__PURE__ */ jsx55(Slide, { direction: "left", ref, ...props });
|
|
6134
6239
|
}
|
|
6135
6240
|
);
|
|
6136
6241
|
var SlideUp = forwardRef2(
|
|
6137
6242
|
function SlideUp2(props, ref) {
|
|
6138
|
-
return /* @__PURE__ */
|
|
6243
|
+
return /* @__PURE__ */ jsx55(Slide, { direction: "up", ref, ...props });
|
|
6139
6244
|
}
|
|
6140
6245
|
);
|
|
6141
6246
|
function PanelDialog({
|
|
@@ -6170,7 +6275,7 @@ function PanelDialog({
|
|
|
6170
6275
|
borderRadius: 0
|
|
6171
6276
|
}
|
|
6172
6277
|
};
|
|
6173
|
-
return /* @__PURE__ */
|
|
6278
|
+
return /* @__PURE__ */ jsxs30(
|
|
6174
6279
|
MuiDialog2,
|
|
6175
6280
|
{
|
|
6176
6281
|
open,
|
|
@@ -6184,8 +6289,8 @@ function PanelDialog({
|
|
|
6184
6289
|
...backdropSx ? { backdrop: { sx: backdropSx } } : {}
|
|
6185
6290
|
},
|
|
6186
6291
|
children: [
|
|
6187
|
-
!hideHeader && /* @__PURE__ */
|
|
6188
|
-
|
|
6292
|
+
!hideHeader && /* @__PURE__ */ jsxs30(
|
|
6293
|
+
Box24,
|
|
6189
6294
|
{
|
|
6190
6295
|
sx: {
|
|
6191
6296
|
display: "flex",
|
|
@@ -6198,15 +6303,15 @@ function PanelDialog({
|
|
|
6198
6303
|
borderColor: "divider"
|
|
6199
6304
|
},
|
|
6200
6305
|
children: [
|
|
6201
|
-
/* @__PURE__ */
|
|
6202
|
-
/* @__PURE__ */
|
|
6306
|
+
/* @__PURE__ */ jsx55(Box24, { sx: { display: "flex", alignItems: "center", minWidth: 0 }, children: typeof title === "string" ? /* @__PURE__ */ jsx55(Typography19, { variant: "h6", noWrap: true, children: title }) : title }),
|
|
6307
|
+
/* @__PURE__ */ jsxs30(Box24, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
6203
6308
|
headerActions,
|
|
6204
|
-
/* @__PURE__ */
|
|
6309
|
+
/* @__PURE__ */ jsx55(IconButton11, { "aria-label": "Close", onClick: onClose, edge: "end", size: "small", children: /* @__PURE__ */ jsx55(CloseIcon3, { fontSize: "small" }) })
|
|
6205
6310
|
] })
|
|
6206
6311
|
]
|
|
6207
6312
|
}
|
|
6208
6313
|
),
|
|
6209
|
-
hideHeader && /* @__PURE__ */
|
|
6314
|
+
hideHeader && /* @__PURE__ */ jsx55(
|
|
6210
6315
|
IconButton11,
|
|
6211
6316
|
{
|
|
6212
6317
|
"aria-label": "Close",
|
|
@@ -6221,10 +6326,10 @@ function PanelDialog({
|
|
|
6221
6326
|
boxShadow: 1,
|
|
6222
6327
|
"&:hover": { bgcolor: "background.paper" }
|
|
6223
6328
|
},
|
|
6224
|
-
children: /* @__PURE__ */
|
|
6329
|
+
children: /* @__PURE__ */ jsx55(CloseIcon3, { fontSize: "small" })
|
|
6225
6330
|
}
|
|
6226
6331
|
),
|
|
6227
|
-
/* @__PURE__ */
|
|
6332
|
+
/* @__PURE__ */ jsx55(Box24, { sx: { flex: 1, overflow: "auto", minHeight: 0 }, children })
|
|
6228
6333
|
]
|
|
6229
6334
|
}
|
|
6230
6335
|
);
|
|
@@ -6237,35 +6342,66 @@ import MuiCardHeader from "@mui/material/CardHeader";
|
|
|
6237
6342
|
import MuiCardActions from "@mui/material/CardActions";
|
|
6238
6343
|
import MuiCardMedia from "@mui/material/CardMedia";
|
|
6239
6344
|
import { styled as styled30 } from "@mui/material/styles";
|
|
6240
|
-
import { jsx as
|
|
6241
|
-
var CardMedia = (props) => /* @__PURE__ */
|
|
6345
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6346
|
+
var CardMedia = (props) => /* @__PURE__ */ jsx56(MuiCardMedia, { ...props });
|
|
6242
6347
|
var StyledCard = styled30(MuiCard, {
|
|
6243
|
-
shouldForwardProp: (prop) => prop !== "hoverable" && prop !== "clickable"
|
|
6244
|
-
})(
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
"
|
|
6253
|
-
boxShadow: "
|
|
6254
|
-
|
|
6348
|
+
shouldForwardProp: (prop) => prop !== "hoverable" && prop !== "clickable" && prop !== "dsVariant"
|
|
6349
|
+
})(
|
|
6350
|
+
({ theme: theme2, hoverable, clickable, dsVariant }) => ({
|
|
6351
|
+
borderRadius: 8,
|
|
6352
|
+
transition: "all 0.2s ease-in-out",
|
|
6353
|
+
...dsVariant === "standard" && {
|
|
6354
|
+
boxShadow: "0px 1px 3px rgba(0, 0, 0, 0.12)",
|
|
6355
|
+
backgroundColor: theme2.palette.background.paper
|
|
6356
|
+
},
|
|
6357
|
+
...dsVariant === "tinted" && {
|
|
6358
|
+
boxShadow: "none",
|
|
6359
|
+
backgroundColor: theme2.palette.action.hover,
|
|
6360
|
+
border: `1px solid ${theme2.palette.divider}`
|
|
6361
|
+
},
|
|
6362
|
+
...dsVariant === "outlined" && {
|
|
6363
|
+
boxShadow: "none",
|
|
6364
|
+
backgroundColor: theme2.palette.background.paper,
|
|
6365
|
+
border: `1px solid ${theme2.palette.divider}`
|
|
6366
|
+
},
|
|
6367
|
+
...clickable && {
|
|
6368
|
+
cursor: "pointer"
|
|
6369
|
+
},
|
|
6370
|
+
...hoverable && {
|
|
6371
|
+
"&:hover": {
|
|
6372
|
+
boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.15)",
|
|
6373
|
+
transform: "translateY(-2px)"
|
|
6374
|
+
}
|
|
6255
6375
|
}
|
|
6256
|
-
}
|
|
6257
|
-
|
|
6258
|
-
var Card = ({
|
|
6259
|
-
|
|
6376
|
+
})
|
|
6377
|
+
);
|
|
6378
|
+
var Card = ({
|
|
6379
|
+
variant = "standard",
|
|
6380
|
+
hoverable = false,
|
|
6381
|
+
clickable = false,
|
|
6382
|
+
children,
|
|
6383
|
+
...props
|
|
6384
|
+
}) => {
|
|
6385
|
+
return /* @__PURE__ */ jsx56(
|
|
6386
|
+
StyledCard,
|
|
6387
|
+
{
|
|
6388
|
+
dsVariant: variant,
|
|
6389
|
+
hoverable,
|
|
6390
|
+
clickable,
|
|
6391
|
+
variant: "elevation",
|
|
6392
|
+
...props,
|
|
6393
|
+
children
|
|
6394
|
+
}
|
|
6395
|
+
);
|
|
6260
6396
|
};
|
|
6261
6397
|
var CardContent = (props) => {
|
|
6262
|
-
return /* @__PURE__ */
|
|
6398
|
+
return /* @__PURE__ */ jsx56(MuiCardContent, { ...props });
|
|
6263
6399
|
};
|
|
6264
6400
|
var CardHeader = (props) => {
|
|
6265
|
-
return /* @__PURE__ */
|
|
6401
|
+
return /* @__PURE__ */ jsx56(MuiCardHeader, { ...props });
|
|
6266
6402
|
};
|
|
6267
6403
|
var CardActions = (props) => {
|
|
6268
|
-
return /* @__PURE__ */
|
|
6404
|
+
return /* @__PURE__ */ jsx56(MuiCardActions, { ...props });
|
|
6269
6405
|
};
|
|
6270
6406
|
|
|
6271
6407
|
// src/components/layout/List.tsx
|
|
@@ -6277,9 +6413,9 @@ import {
|
|
|
6277
6413
|
ListItemSecondaryAction
|
|
6278
6414
|
} from "@mui/material";
|
|
6279
6415
|
import { styled as styled31 } from "@mui/material/styles";
|
|
6280
|
-
import { jsx as
|
|
6416
|
+
import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6281
6417
|
var List6 = (props) => {
|
|
6282
|
-
return /* @__PURE__ */
|
|
6418
|
+
return /* @__PURE__ */ jsx57(MuiList, { ...props });
|
|
6283
6419
|
};
|
|
6284
6420
|
var StyledListItem = styled31(MuiListItem, {
|
|
6285
6421
|
shouldForwardProp: (prop) => prop !== "hoverable"
|
|
@@ -6302,9 +6438,9 @@ var ListItem4 = ({
|
|
|
6302
6438
|
children,
|
|
6303
6439
|
...props
|
|
6304
6440
|
}) => {
|
|
6305
|
-
return /* @__PURE__ */
|
|
6306
|
-
icon && /* @__PURE__ */
|
|
6307
|
-
(primary || secondary) && /* @__PURE__ */
|
|
6441
|
+
return /* @__PURE__ */ jsxs31(StyledListItem, { hoverable, ...props, children: [
|
|
6442
|
+
icon && /* @__PURE__ */ jsx57(ListItemIcon4, { children: icon }),
|
|
6443
|
+
(primary || secondary) && /* @__PURE__ */ jsx57(
|
|
6308
6444
|
ListItemText7,
|
|
6309
6445
|
{
|
|
6310
6446
|
primary,
|
|
@@ -6319,7 +6455,7 @@ var ListItem4 = ({
|
|
|
6319
6455
|
// src/components/layout/Avatar.tsx
|
|
6320
6456
|
import MuiAvatar from "@mui/material/Avatar";
|
|
6321
6457
|
import { styled as styled32 } from "@mui/material/styles";
|
|
6322
|
-
import { jsx as
|
|
6458
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
6323
6459
|
var sizeMap = {
|
|
6324
6460
|
small: 32,
|
|
6325
6461
|
medium: 40,
|
|
@@ -6336,7 +6472,7 @@ var StyledAvatar = styled32(MuiAvatar, {
|
|
|
6336
6472
|
}));
|
|
6337
6473
|
var Avatar5 = ({ size: size3 = "medium", ...props }) => {
|
|
6338
6474
|
const avatarSize = typeof size3 === "number" ? size3 : sizeMap[size3];
|
|
6339
|
-
return /* @__PURE__ */
|
|
6475
|
+
return /* @__PURE__ */ jsx58(StyledAvatar, { avatarSize, ...props });
|
|
6340
6476
|
};
|
|
6341
6477
|
|
|
6342
6478
|
// src/components/layout/Table.tsx
|
|
@@ -6350,7 +6486,7 @@ import {
|
|
|
6350
6486
|
TableSortLabel
|
|
6351
6487
|
} from "@mui/material";
|
|
6352
6488
|
import { styled as styled33 } from "@mui/material/styles";
|
|
6353
|
-
import { jsx as
|
|
6489
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
6354
6490
|
var StyledTableContainer = styled33(TableContainer)(({ theme: theme2 }) => ({
|
|
6355
6491
|
borderRadius: 8,
|
|
6356
6492
|
border: `1px solid ${theme2.palette.grey[200]}`
|
|
@@ -6363,7 +6499,7 @@ var StyledTableHead = styled33(TableHead)(({ theme: theme2 }) => ({
|
|
|
6363
6499
|
}
|
|
6364
6500
|
}));
|
|
6365
6501
|
var Table = ({ stickyHeader = false, children, ...props }) => {
|
|
6366
|
-
return /* @__PURE__ */
|
|
6502
|
+
return /* @__PURE__ */ jsx59(StyledTableContainer, { children: /* @__PURE__ */ jsx59(MuiTable, { stickyHeader, ...props, children }) });
|
|
6367
6503
|
};
|
|
6368
6504
|
var TableHeader = ({
|
|
6369
6505
|
columns,
|
|
@@ -6371,7 +6507,7 @@ var TableHeader = ({
|
|
|
6371
6507
|
order = "asc",
|
|
6372
6508
|
onSort
|
|
6373
6509
|
}) => {
|
|
6374
|
-
return /* @__PURE__ */
|
|
6510
|
+
return /* @__PURE__ */ jsx59(StyledTableHead, { children: /* @__PURE__ */ jsx59(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx59(TableCell, { align: column.align || "left", children: column.sortable && onSort ? /* @__PURE__ */ jsx59(
|
|
6375
6511
|
TableSortLabel,
|
|
6376
6512
|
{
|
|
6377
6513
|
active: orderBy === column.id,
|
|
@@ -6388,9 +6524,9 @@ import { Grid2 } from "@mui/material";
|
|
|
6388
6524
|
// src/components/layout/Breadcrumbs.tsx
|
|
6389
6525
|
import MuiBreadcrumbs from "@mui/material/Breadcrumbs";
|
|
6390
6526
|
import Link4 from "@mui/material/Link";
|
|
6391
|
-
import
|
|
6527
|
+
import Typography20 from "@mui/material/Typography";
|
|
6392
6528
|
import { styled as styled34 } from "@mui/material/styles";
|
|
6393
|
-
import { jsx as
|
|
6529
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
6394
6530
|
var StyledBreadcrumbs = styled34(MuiBreadcrumbs)(({ theme: theme2 }) => ({
|
|
6395
6531
|
"& .MuiBreadcrumbs-ol": {
|
|
6396
6532
|
flexWrap: "nowrap"
|
|
@@ -6407,12 +6543,12 @@ var StyledLink2 = styled34(Link4)(({ theme: theme2 }) => ({
|
|
|
6407
6543
|
}
|
|
6408
6544
|
}));
|
|
6409
6545
|
var Breadcrumbs = ({ items, ...props }) => {
|
|
6410
|
-
return /* @__PURE__ */
|
|
6546
|
+
return /* @__PURE__ */ jsx60(StyledBreadcrumbs, { ...props, children: items.map((item, index) => {
|
|
6411
6547
|
const isLast = index === items.length - 1;
|
|
6412
6548
|
if (isLast || !item.href && !item.onClick) {
|
|
6413
|
-
return /* @__PURE__ */
|
|
6549
|
+
return /* @__PURE__ */ jsx60(Typography20, { color: "text.primary", children: item.label }, index);
|
|
6414
6550
|
}
|
|
6415
|
-
return /* @__PURE__ */
|
|
6551
|
+
return /* @__PURE__ */ jsx60(
|
|
6416
6552
|
StyledLink2,
|
|
6417
6553
|
{
|
|
6418
6554
|
href: item.href,
|
|
@@ -6437,7 +6573,7 @@ import {
|
|
|
6437
6573
|
} from "@mui/material";
|
|
6438
6574
|
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
6439
6575
|
import { styled as styled35 } from "@mui/material/styles";
|
|
6440
|
-
import { jsx as
|
|
6576
|
+
import { jsx as jsx61, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6441
6577
|
var StyledAccordion = styled35(MuiAccordion)(({ theme: theme2 }) => ({
|
|
6442
6578
|
borderRadius: 8,
|
|
6443
6579
|
boxShadow: "none",
|
|
@@ -6468,16 +6604,16 @@ var Accordion = ({
|
|
|
6468
6604
|
defaultExpanded = false,
|
|
6469
6605
|
...props
|
|
6470
6606
|
}) => {
|
|
6471
|
-
return /* @__PURE__ */
|
|
6472
|
-
/* @__PURE__ */
|
|
6473
|
-
/* @__PURE__ */
|
|
6607
|
+
return /* @__PURE__ */ jsxs32(StyledAccordion, { defaultExpanded, ...props, children: [
|
|
6608
|
+
/* @__PURE__ */ jsx61(StyledAccordionSummary, { expandIcon: /* @__PURE__ */ jsx61(ExpandMoreIcon, {}), children: title }),
|
|
6609
|
+
/* @__PURE__ */ jsx61(StyledAccordionDetails, { children })
|
|
6474
6610
|
] });
|
|
6475
6611
|
};
|
|
6476
6612
|
|
|
6477
6613
|
// src/components/layout/Paper.tsx
|
|
6478
6614
|
import MuiPaper from "@mui/material/Paper";
|
|
6479
6615
|
import { styled as styled36 } from "@mui/material/styles";
|
|
6480
|
-
import { jsx as
|
|
6616
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
6481
6617
|
var StyledPaper = styled36(MuiPaper)(({ theme: theme2 }) => ({
|
|
6482
6618
|
borderRadius: 8,
|
|
6483
6619
|
"&.MuiPaper-elevation": {
|
|
@@ -6489,28 +6625,28 @@ var StyledPaper = styled36(MuiPaper)(({ theme: theme2 }) => ({
|
|
|
6489
6625
|
}
|
|
6490
6626
|
}));
|
|
6491
6627
|
var Paper = ({ variant = "elevation", ...props }) => {
|
|
6492
|
-
return /* @__PURE__ */
|
|
6628
|
+
return /* @__PURE__ */ jsx62(StyledPaper, { variant, elevation: variant === "elevation" ? 1 : 0, ...props });
|
|
6493
6629
|
};
|
|
6494
6630
|
|
|
6495
6631
|
// src/components/layout/Divider.tsx
|
|
6496
6632
|
import MuiDivider from "@mui/material/Divider";
|
|
6497
6633
|
import { styled as styled37 } from "@mui/material/styles";
|
|
6498
|
-
import { jsx as
|
|
6634
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
6499
6635
|
var StyledDivider = styled37(MuiDivider)(({ theme: theme2 }) => ({
|
|
6500
6636
|
borderColor: theme2.palette.grey[200]
|
|
6501
6637
|
}));
|
|
6502
6638
|
var Divider4 = ({ ...props }) => {
|
|
6503
|
-
return /* @__PURE__ */
|
|
6639
|
+
return /* @__PURE__ */ jsx63(StyledDivider, { ...props });
|
|
6504
6640
|
};
|
|
6505
6641
|
|
|
6506
6642
|
// src/components/layout/Stack.tsx
|
|
6507
6643
|
import { Stack as Stack4 } from "@mui/material";
|
|
6508
6644
|
|
|
6509
6645
|
// src/components/layout/Box.tsx
|
|
6510
|
-
import { Box as
|
|
6646
|
+
import { Box as Box25 } from "@mui/material";
|
|
6511
6647
|
|
|
6512
6648
|
// src/components/layout/Typography.tsx
|
|
6513
|
-
import { Typography as
|
|
6649
|
+
import { Typography as Typography21 } from "@mui/material";
|
|
6514
6650
|
|
|
6515
6651
|
// src/components/layout/Container.tsx
|
|
6516
6652
|
import { Container as Container2 } from "@mui/material";
|
|
@@ -6521,7 +6657,7 @@ import {
|
|
|
6521
6657
|
Toolbar
|
|
6522
6658
|
} from "@mui/material";
|
|
6523
6659
|
import { styled as styled38 } from "@mui/material/styles";
|
|
6524
|
-
import { jsx as
|
|
6660
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
6525
6661
|
var StyledAppBar = styled38(MuiAppBar, {
|
|
6526
6662
|
shouldForwardProp: (prop) => prop !== "appBarHeight"
|
|
6527
6663
|
})(({ appBarHeight = 64, theme: theme2 }) => ({
|
|
@@ -6538,25 +6674,25 @@ var StyledToolbar = styled38(Toolbar)(({ theme: theme2 }) => ({
|
|
|
6538
6674
|
gap: theme2.spacing(2)
|
|
6539
6675
|
}));
|
|
6540
6676
|
var AppBar = ({ height = 64, children, ...props }) => {
|
|
6541
|
-
return /* @__PURE__ */
|
|
6677
|
+
return /* @__PURE__ */ jsx64(StyledAppBar, { position: "fixed", appBarHeight: height, ...props, children: /* @__PURE__ */ jsx64(StyledToolbar, { children }) });
|
|
6542
6678
|
};
|
|
6543
6679
|
|
|
6544
6680
|
// src/components/layout/Collapse.tsx
|
|
6545
6681
|
import {
|
|
6546
6682
|
Collapse as MuiCollapse
|
|
6547
6683
|
} from "@mui/material";
|
|
6548
|
-
import { jsx as
|
|
6684
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
6549
6685
|
var Collapse = (props) => {
|
|
6550
|
-
return /* @__PURE__ */
|
|
6686
|
+
return /* @__PURE__ */ jsx65(MuiCollapse, { ...props });
|
|
6551
6687
|
};
|
|
6552
6688
|
|
|
6553
6689
|
// src/components/layout/EntityHeader/EntityHeader.tsx
|
|
6554
|
-
import
|
|
6555
|
-
import
|
|
6690
|
+
import Box26 from "@mui/material/Box";
|
|
6691
|
+
import Typography22 from "@mui/material/Typography";
|
|
6556
6692
|
import IconButton12 from "@mui/material/IconButton";
|
|
6557
6693
|
import Divider5 from "@mui/material/Divider";
|
|
6558
6694
|
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
|
6559
|
-
import { jsx as
|
|
6695
|
+
import { jsx as jsx66, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6560
6696
|
var EntityHeader = ({
|
|
6561
6697
|
title,
|
|
6562
6698
|
subtitle,
|
|
@@ -6575,9 +6711,9 @@ var EntityHeader = ({
|
|
|
6575
6711
|
const { label, count } = primaryAction;
|
|
6576
6712
|
return count !== void 0 ? `${label} (${count})` : label;
|
|
6577
6713
|
};
|
|
6578
|
-
return /* @__PURE__ */
|
|
6579
|
-
/* @__PURE__ */
|
|
6580
|
-
|
|
6714
|
+
return /* @__PURE__ */ jsxs33(Box26, { children: [
|
|
6715
|
+
/* @__PURE__ */ jsxs33(
|
|
6716
|
+
Box26,
|
|
6581
6717
|
{
|
|
6582
6718
|
sx: {
|
|
6583
6719
|
display: "flex",
|
|
@@ -6588,8 +6724,8 @@ var EntityHeader = ({
|
|
|
6588
6724
|
gap: 1
|
|
6589
6725
|
},
|
|
6590
6726
|
children: [
|
|
6591
|
-
/* @__PURE__ */
|
|
6592
|
-
|
|
6727
|
+
/* @__PURE__ */ jsxs33(
|
|
6728
|
+
Box26,
|
|
6593
6729
|
{
|
|
6594
6730
|
sx: {
|
|
6595
6731
|
display: "flex",
|
|
@@ -6598,8 +6734,8 @@ var EntityHeader = ({
|
|
|
6598
6734
|
flexWrap: "wrap"
|
|
6599
6735
|
},
|
|
6600
6736
|
children: [
|
|
6601
|
-
/* @__PURE__ */
|
|
6602
|
-
|
|
6737
|
+
/* @__PURE__ */ jsxs33(
|
|
6738
|
+
Box26,
|
|
6603
6739
|
{
|
|
6604
6740
|
sx: {
|
|
6605
6741
|
display: "flex",
|
|
@@ -6607,8 +6743,8 @@ var EntityHeader = ({
|
|
|
6607
6743
|
gap: 0.5
|
|
6608
6744
|
},
|
|
6609
6745
|
children: [
|
|
6610
|
-
/* @__PURE__ */
|
|
6611
|
-
|
|
6746
|
+
/* @__PURE__ */ jsx66(
|
|
6747
|
+
Typography22,
|
|
6612
6748
|
{
|
|
6613
6749
|
component: headingLevel,
|
|
6614
6750
|
sx: {
|
|
@@ -6621,8 +6757,8 @@ var EntityHeader = ({
|
|
|
6621
6757
|
children: title
|
|
6622
6758
|
}
|
|
6623
6759
|
),
|
|
6624
|
-
subtitle && /* @__PURE__ */
|
|
6625
|
-
|
|
6760
|
+
subtitle && /* @__PURE__ */ jsx66(
|
|
6761
|
+
Typography22,
|
|
6626
6762
|
{
|
|
6627
6763
|
variant: "body2",
|
|
6628
6764
|
sx: {
|
|
@@ -6638,13 +6774,13 @@ var EntityHeader = ({
|
|
|
6638
6774
|
]
|
|
6639
6775
|
}
|
|
6640
6776
|
),
|
|
6641
|
-
role && /* @__PURE__ */
|
|
6642
|
-
id && /* @__PURE__ */
|
|
6777
|
+
role && /* @__PURE__ */ jsx66(RoleBadge, { label: role, color: "primary", size: "small" }),
|
|
6778
|
+
id && /* @__PURE__ */ jsx66(IDBlock, { id, label: "ID", entityType: "entity", onCopy: onCopyId })
|
|
6643
6779
|
]
|
|
6644
6780
|
}
|
|
6645
6781
|
),
|
|
6646
|
-
/* @__PURE__ */
|
|
6647
|
-
|
|
6782
|
+
/* @__PURE__ */ jsxs33(
|
|
6783
|
+
Box26,
|
|
6648
6784
|
{
|
|
6649
6785
|
sx: {
|
|
6650
6786
|
display: "flex",
|
|
@@ -6654,7 +6790,7 @@ var EntityHeader = ({
|
|
|
6654
6790
|
},
|
|
6655
6791
|
children: [
|
|
6656
6792
|
startActions,
|
|
6657
|
-
primaryAction && /* @__PURE__ */
|
|
6793
|
+
primaryAction && /* @__PURE__ */ jsx66(
|
|
6658
6794
|
Button,
|
|
6659
6795
|
{
|
|
6660
6796
|
variant: "primary",
|
|
@@ -6667,7 +6803,7 @@ var EntityHeader = ({
|
|
|
6667
6803
|
}
|
|
6668
6804
|
),
|
|
6669
6805
|
endActions,
|
|
6670
|
-
onMoreOptions && /* @__PURE__ */
|
|
6806
|
+
onMoreOptions && /* @__PURE__ */ jsx66(
|
|
6671
6807
|
IconButton12,
|
|
6672
6808
|
{
|
|
6673
6809
|
onClick: onMoreOptions,
|
|
@@ -6682,7 +6818,7 @@ var EntityHeader = ({
|
|
|
6682
6818
|
borderColor: deploymentSurfaceTokens.borderDefault
|
|
6683
6819
|
}
|
|
6684
6820
|
},
|
|
6685
|
-
children: /* @__PURE__ */
|
|
6821
|
+
children: /* @__PURE__ */ jsx66(
|
|
6686
6822
|
MoreHorizIcon,
|
|
6687
6823
|
{
|
|
6688
6824
|
sx: {
|
|
@@ -6699,7 +6835,7 @@ var EntityHeader = ({
|
|
|
6699
6835
|
]
|
|
6700
6836
|
}
|
|
6701
6837
|
),
|
|
6702
|
-
divider && /* @__PURE__ */
|
|
6838
|
+
divider && /* @__PURE__ */ jsx66(
|
|
6703
6839
|
Divider5,
|
|
6704
6840
|
{
|
|
6705
6841
|
sx: {
|
|
@@ -6713,8 +6849,8 @@ var EntityHeader = ({
|
|
|
6713
6849
|
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
6714
6850
|
import {
|
|
6715
6851
|
Paper as Paper2,
|
|
6716
|
-
Box as
|
|
6717
|
-
Typography as
|
|
6852
|
+
Box as Box27,
|
|
6853
|
+
Typography as Typography23,
|
|
6718
6854
|
IconButton as IconButton13,
|
|
6719
6855
|
useTheme as useTheme4,
|
|
6720
6856
|
LinearProgress as LinearProgress2
|
|
@@ -6739,7 +6875,7 @@ function useControlledExpand(controlledExpanded, onToggle, defaultExpanded = fal
|
|
|
6739
6875
|
}
|
|
6740
6876
|
|
|
6741
6877
|
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
6742
|
-
import { Fragment as Fragment11, jsx as
|
|
6878
|
+
import { Fragment as Fragment11, jsx as jsx67, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6743
6879
|
var ENTITY_LABELS = {
|
|
6744
6880
|
workspace: "Workspace",
|
|
6745
6881
|
stream: "Stream",
|
|
@@ -6749,11 +6885,11 @@ var ENTITY_LABELS = {
|
|
|
6749
6885
|
};
|
|
6750
6886
|
var ENTITY_ICON_SIZE = 16;
|
|
6751
6887
|
var ENTITY_ICONS = {
|
|
6752
|
-
workspace: /* @__PURE__ */
|
|
6753
|
-
stream: /* @__PURE__ */
|
|
6754
|
-
deployment: /* @__PURE__ */
|
|
6755
|
-
engagement: /* @__PURE__ */
|
|
6756
|
-
agent: /* @__PURE__ */
|
|
6888
|
+
workspace: /* @__PURE__ */ jsx67(WorkOutlineIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
6889
|
+
stream: /* @__PURE__ */ jsx67(WavesIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
6890
|
+
deployment: /* @__PURE__ */ jsx67(RocketLaunchOutlinedIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
6891
|
+
engagement: /* @__PURE__ */ jsx67(InsertLinkIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
6892
|
+
agent: /* @__PURE__ */ jsx67(SmartToyOutlinedIcon, { sx: { fontSize: ENTITY_ICON_SIZE } })
|
|
6757
6893
|
};
|
|
6758
6894
|
var STATUS_DOT_COLORS = {
|
|
6759
6895
|
normal: deploymentStatusColors.normal,
|
|
@@ -6774,7 +6910,7 @@ var ENTITY_CHIP_TYPOGRAPHY = {
|
|
|
6774
6910
|
lineHeight: 1.33,
|
|
6775
6911
|
letterSpacing: "0.07px"
|
|
6776
6912
|
};
|
|
6777
|
-
var StatusDot2 = styled39(
|
|
6913
|
+
var StatusDot2 = styled39(Box27, {
|
|
6778
6914
|
shouldForwardProp: (p) => p !== "status"
|
|
6779
6915
|
})(({ status }) => ({
|
|
6780
6916
|
width: 8,
|
|
@@ -6783,8 +6919,8 @@ var StatusDot2 = styled39(Box25, {
|
|
|
6783
6919
|
backgroundColor: status ? STATUS_DOT_COLORS[status] ?? "transparent" : "transparent",
|
|
6784
6920
|
flexShrink: 0
|
|
6785
6921
|
}));
|
|
6786
|
-
var EntityChip = ({ entityType, color }) => /* @__PURE__ */
|
|
6787
|
-
|
|
6922
|
+
var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs34(
|
|
6923
|
+
Box27,
|
|
6788
6924
|
{
|
|
6789
6925
|
sx: {
|
|
6790
6926
|
display: "inline-flex",
|
|
@@ -6799,9 +6935,9 @@ var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs33(
|
|
|
6799
6935
|
flexShrink: 0
|
|
6800
6936
|
},
|
|
6801
6937
|
children: [
|
|
6802
|
-
/* @__PURE__ */
|
|
6803
|
-
/* @__PURE__ */
|
|
6804
|
-
|
|
6938
|
+
/* @__PURE__ */ jsx67(Box27, { sx: { color, display: "flex", alignItems: "center" }, children: ENTITY_ICONS[entityType] }),
|
|
6939
|
+
/* @__PURE__ */ jsx67(
|
|
6940
|
+
Typography23,
|
|
6805
6941
|
{
|
|
6806
6942
|
variant: "body2",
|
|
6807
6943
|
fontWeight: ENTITY_CHIP_TYPOGRAPHY.fontWeight,
|
|
@@ -6817,15 +6953,15 @@ var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs33(
|
|
|
6817
6953
|
]
|
|
6818
6954
|
}
|
|
6819
6955
|
);
|
|
6820
|
-
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */
|
|
6821
|
-
/* @__PURE__ */
|
|
6822
|
-
/* @__PURE__ */
|
|
6823
|
-
/* @__PURE__ */
|
|
6956
|
+
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ jsxs34(Box27, { sx: { pl: indented ? "40px" : 0, pr: "20px", py: 1 }, children: [
|
|
6957
|
+
/* @__PURE__ */ jsxs34(Box27, { sx: { display: "flex", justifyContent: "space-between", mb: 1 }, children: [
|
|
6958
|
+
/* @__PURE__ */ jsx67(Typography23, { variant: "body2", sx: { color: deploymentSurfaceTokens.textPrimary }, children: "Capacity" }),
|
|
6959
|
+
/* @__PURE__ */ jsxs34(Typography23, { variant: "body2", sx: { color: deploymentSurfaceTokens.accentBlue }, children: [
|
|
6824
6960
|
value,
|
|
6825
6961
|
"%"
|
|
6826
6962
|
] })
|
|
6827
6963
|
] }),
|
|
6828
|
-
/* @__PURE__ */
|
|
6964
|
+
/* @__PURE__ */ jsx67(
|
|
6829
6965
|
LinearProgress2,
|
|
6830
6966
|
{
|
|
6831
6967
|
variant: "determinate",
|
|
@@ -6865,19 +7001,19 @@ var getActionButtonStyles = (action) => {
|
|
|
6865
7001
|
};
|
|
6866
7002
|
return { ...baseStyles, ...variantStyles };
|
|
6867
7003
|
};
|
|
6868
|
-
var CardAction = ({ action }) => /* @__PURE__ */
|
|
6869
|
-
|
|
7004
|
+
var CardAction = ({ action }) => /* @__PURE__ */ jsxs34(
|
|
7005
|
+
Box27,
|
|
6870
7006
|
{
|
|
6871
7007
|
component: action.onClick ? "button" : "span",
|
|
6872
7008
|
onClick: action.onClick,
|
|
6873
7009
|
sx: getActionButtonStyles(action),
|
|
6874
7010
|
children: [
|
|
6875
|
-
action.icon && /* @__PURE__ */
|
|
6876
|
-
action.label && /* @__PURE__ */
|
|
7011
|
+
action.icon && /* @__PURE__ */ jsx67(Box27, { component: "span", sx: { display: "flex", alignItems: "center" }, children: action.icon }),
|
|
7012
|
+
action.label && /* @__PURE__ */ jsx67(Typography23, { variant: "body2", fontWeight: 500, component: "span", sx: { fontSize: "14px" }, children: action.label })
|
|
6877
7013
|
]
|
|
6878
7014
|
}
|
|
6879
7015
|
);
|
|
6880
|
-
var CardActionList = ({ actions }) => /* @__PURE__ */
|
|
7016
|
+
var CardActionList = ({ actions }) => /* @__PURE__ */ jsx67(Fragment11, { children: actions.map((action) => /* @__PURE__ */ jsx67(CardAction, { action }, action.id)) });
|
|
6881
7017
|
var DeploymentDashboardCard = ({
|
|
6882
7018
|
entityType,
|
|
6883
7019
|
title,
|
|
@@ -6910,7 +7046,7 @@ var DeploymentDashboardCard = ({
|
|
|
6910
7046
|
return Math.min(100, Math.max(0, capacity2));
|
|
6911
7047
|
};
|
|
6912
7048
|
const capacityClamped = getClampedCapacity(capacity);
|
|
6913
|
-
return /* @__PURE__ */
|
|
7049
|
+
return /* @__PURE__ */ jsxs34(
|
|
6914
7050
|
Paper2,
|
|
6915
7051
|
{
|
|
6916
7052
|
className,
|
|
@@ -6927,8 +7063,8 @@ var DeploymentDashboardCard = ({
|
|
|
6927
7063
|
gap: 0
|
|
6928
7064
|
},
|
|
6929
7065
|
children: [
|
|
6930
|
-
/* @__PURE__ */
|
|
6931
|
-
|
|
7066
|
+
/* @__PURE__ */ jsxs34(
|
|
7067
|
+
Box27,
|
|
6932
7068
|
{
|
|
6933
7069
|
sx: {
|
|
6934
7070
|
display: "flex",
|
|
@@ -6937,21 +7073,21 @@ var DeploymentDashboardCard = ({
|
|
|
6937
7073
|
width: "100%"
|
|
6938
7074
|
},
|
|
6939
7075
|
children: [
|
|
6940
|
-
/* @__PURE__ */
|
|
6941
|
-
/* @__PURE__ */
|
|
6942
|
-
expandable ? /* @__PURE__ */
|
|
7076
|
+
/* @__PURE__ */ jsxs34(Box27, { sx: { display: "flex", flexDirection: "column", gap: 0.5, minWidth: 0 }, children: [
|
|
7077
|
+
/* @__PURE__ */ jsxs34(Box27, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
7078
|
+
expandable ? /* @__PURE__ */ jsx67(
|
|
6943
7079
|
IconButton13,
|
|
6944
7080
|
{
|
|
6945
7081
|
size: "small",
|
|
6946
7082
|
onClick: toggle,
|
|
6947
7083
|
"aria-label": expanded ? "Collapse" : "Expand",
|
|
6948
7084
|
sx: { p: "5px" },
|
|
6949
|
-
children: expanded ? /* @__PURE__ */
|
|
7085
|
+
children: expanded ? /* @__PURE__ */ jsx67(ExpandMoreIcon2, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } }) : /* @__PURE__ */ jsx67(ChevronRightIcon4, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } })
|
|
6950
7086
|
}
|
|
6951
|
-
) : /* @__PURE__ */
|
|
6952
|
-
/* @__PURE__ */
|
|
6953
|
-
/* @__PURE__ */
|
|
6954
|
-
|
|
7087
|
+
) : /* @__PURE__ */ jsx67(Box27, { sx: { width: 26, flexShrink: 0 } }),
|
|
7088
|
+
/* @__PURE__ */ jsx67(EntityChip, { entityType, color: entityColor }),
|
|
7089
|
+
/* @__PURE__ */ jsx67(
|
|
7090
|
+
Typography23,
|
|
6955
7091
|
{
|
|
6956
7092
|
variant: "subtitle1",
|
|
6957
7093
|
fontWeight: 500,
|
|
@@ -6960,10 +7096,10 @@ var DeploymentDashboardCard = ({
|
|
|
6960
7096
|
children: title
|
|
6961
7097
|
}
|
|
6962
7098
|
),
|
|
6963
|
-
idDisplay != null && /* @__PURE__ */
|
|
7099
|
+
idDisplay != null && /* @__PURE__ */ jsx67(IDBlock, { id: idDisplay, label: "ID", entityType, onCopy: onCopyId })
|
|
6964
7100
|
] }),
|
|
6965
|
-
(createdAt != null || updatedAt != null) && /* @__PURE__ */
|
|
6966
|
-
|
|
7101
|
+
(createdAt != null || updatedAt != null) && /* @__PURE__ */ jsxs34(
|
|
7102
|
+
Box27,
|
|
6967
7103
|
{
|
|
6968
7104
|
sx: {
|
|
6969
7105
|
display: "flex",
|
|
@@ -6972,27 +7108,27 @@ var DeploymentDashboardCard = ({
|
|
|
6972
7108
|
color: deploymentSurfaceTokens.textSecondary
|
|
6973
7109
|
},
|
|
6974
7110
|
children: [
|
|
6975
|
-
createdAt != null && /* @__PURE__ */
|
|
7111
|
+
createdAt != null && /* @__PURE__ */ jsxs34(Typography23, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
6976
7112
|
"Created: ",
|
|
6977
7113
|
createdAt
|
|
6978
7114
|
] }),
|
|
6979
|
-
updatedAt != null && /* @__PURE__ */
|
|
7115
|
+
updatedAt != null && /* @__PURE__ */ jsxs34(Typography23, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
6980
7116
|
"Last Updated: ",
|
|
6981
7117
|
updatedAt
|
|
6982
7118
|
] })
|
|
6983
7119
|
]
|
|
6984
7120
|
}
|
|
6985
7121
|
),
|
|
6986
|
-
capacityClamped !== void 0 && /* @__PURE__ */
|
|
7122
|
+
capacityClamped !== void 0 && /* @__PURE__ */ jsx67(CapacityBar, { value: capacityClamped, indented: expandable })
|
|
6987
7123
|
] }),
|
|
6988
|
-
/* @__PURE__ */
|
|
6989
|
-
statusIndicator != null && /* @__PURE__ */
|
|
6990
|
-
/* @__PURE__ */
|
|
7124
|
+
/* @__PURE__ */ jsxs34(Box27, { sx: { display: "flex", gap: 1, alignItems: "center", flexShrink: 0 }, children: [
|
|
7125
|
+
statusIndicator != null && /* @__PURE__ */ jsx67(StatusDot2, { status: statusIndicator, "aria-hidden": true }),
|
|
7126
|
+
/* @__PURE__ */ jsx67(CardActionList, { actions })
|
|
6991
7127
|
] })
|
|
6992
7128
|
]
|
|
6993
7129
|
}
|
|
6994
7130
|
),
|
|
6995
|
-
children && /* @__PURE__ */
|
|
7131
|
+
children && /* @__PURE__ */ jsx67(Box27, { sx: { mt: 1.5, display: "flex", flexDirection: "column", gap: 1 }, children })
|
|
6996
7132
|
]
|
|
6997
7133
|
}
|
|
6998
7134
|
);
|
|
@@ -7001,7 +7137,7 @@ var DeploymentDashboardCard = ({
|
|
|
7001
7137
|
// src/components/layout/DeploymentEntityContextMenu/DeploymentEntityContextMenu.tsx
|
|
7002
7138
|
import { Menu as Menu5, MenuItem as MenuItem2, Switch as Switch2, Divider as Divider6, ListItemIcon as ListItemIcon5, ListItemText as ListItemText8 } from "@mui/material";
|
|
7003
7139
|
import { styled as styled40 } from "@mui/material/styles";
|
|
7004
|
-
import { Fragment as Fragment12, jsx as
|
|
7140
|
+
import { Fragment as Fragment12, jsx as jsx68, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7005
7141
|
var StyledMenu2 = styled40(Menu5)({
|
|
7006
7142
|
"& .MuiPaper-root": {
|
|
7007
7143
|
borderRadius: 4,
|
|
@@ -7099,7 +7235,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
7099
7235
|
enableChecked = false,
|
|
7100
7236
|
onEnableChange
|
|
7101
7237
|
}) => {
|
|
7102
|
-
return /* @__PURE__ */
|
|
7238
|
+
return /* @__PURE__ */ jsxs35(
|
|
7103
7239
|
StyledMenu2,
|
|
7104
7240
|
{
|
|
7105
7241
|
anchorEl,
|
|
@@ -7111,11 +7247,11 @@ var DeploymentEntityContextMenu = ({
|
|
|
7111
7247
|
children: [
|
|
7112
7248
|
items.map((item) => {
|
|
7113
7249
|
if (item.type === "divider") {
|
|
7114
|
-
return /* @__PURE__ */
|
|
7250
|
+
return /* @__PURE__ */ jsx68(StyledDivider2, {}, item.id);
|
|
7115
7251
|
}
|
|
7116
7252
|
if (item.type === "toggle") {
|
|
7117
|
-
return /* @__PURE__ */
|
|
7118
|
-
onEnableChange && /* @__PURE__ */
|
|
7253
|
+
return /* @__PURE__ */ jsxs35(ToggleMenuItem, { disableRipple: true, children: [
|
|
7254
|
+
onEnableChange && /* @__PURE__ */ jsx68(
|
|
7119
7255
|
EnableSwitch,
|
|
7120
7256
|
{
|
|
7121
7257
|
size: "small",
|
|
@@ -7124,11 +7260,11 @@ var DeploymentEntityContextMenu = ({
|
|
|
7124
7260
|
inputProps: { "aria-label": item.label }
|
|
7125
7261
|
}
|
|
7126
7262
|
),
|
|
7127
|
-
/* @__PURE__ */
|
|
7263
|
+
/* @__PURE__ */ jsx68(ListItemText8, { primary: item.label })
|
|
7128
7264
|
] }, item.id);
|
|
7129
7265
|
}
|
|
7130
7266
|
const Row = item.highlighted ? HighlightedMenuItem : StyledMenuItem;
|
|
7131
|
-
return /* @__PURE__ */
|
|
7267
|
+
return /* @__PURE__ */ jsxs35(
|
|
7132
7268
|
Row,
|
|
7133
7269
|
{
|
|
7134
7270
|
onClick: () => {
|
|
@@ -7136,17 +7272,17 @@ var DeploymentEntityContextMenu = ({
|
|
|
7136
7272
|
onClose();
|
|
7137
7273
|
},
|
|
7138
7274
|
children: [
|
|
7139
|
-
item.icon && /* @__PURE__ */
|
|
7140
|
-
/* @__PURE__ */
|
|
7275
|
+
item.icon && /* @__PURE__ */ jsx68(ListItemIcon5, { children: item.icon }),
|
|
7276
|
+
/* @__PURE__ */ jsx68(ListItemText8, { primary: item.label })
|
|
7141
7277
|
]
|
|
7142
7278
|
},
|
|
7143
7279
|
item.id
|
|
7144
7280
|
);
|
|
7145
7281
|
}),
|
|
7146
|
-
enableToggle && /* @__PURE__ */
|
|
7147
|
-
/* @__PURE__ */
|
|
7148
|
-
/* @__PURE__ */
|
|
7149
|
-
onEnableChange && /* @__PURE__ */
|
|
7282
|
+
enableToggle && /* @__PURE__ */ jsxs35(Fragment12, { children: [
|
|
7283
|
+
/* @__PURE__ */ jsx68(StyledDivider2, {}),
|
|
7284
|
+
/* @__PURE__ */ jsxs35(ToggleMenuItem, { disableRipple: true, children: [
|
|
7285
|
+
onEnableChange && /* @__PURE__ */ jsx68(
|
|
7150
7286
|
EnableSwitch,
|
|
7151
7287
|
{
|
|
7152
7288
|
size: "small",
|
|
@@ -7155,7 +7291,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
7155
7291
|
inputProps: { "aria-label": "Enable" }
|
|
7156
7292
|
}
|
|
7157
7293
|
),
|
|
7158
|
-
/* @__PURE__ */
|
|
7294
|
+
/* @__PURE__ */ jsx68(ListItemText8, { primary: "Enable" })
|
|
7159
7295
|
] })
|
|
7160
7296
|
] })
|
|
7161
7297
|
]
|
|
@@ -7170,48 +7306,48 @@ import ContentCopyIcon3 from "@mui/icons-material/ContentCopy";
|
|
|
7170
7306
|
import SmartToyOutlinedIcon2 from "@mui/icons-material/SmartToyOutlined";
|
|
7171
7307
|
import DescriptionIcon from "@mui/icons-material/Description";
|
|
7172
7308
|
import SettingsIcon2 from "@mui/icons-material/Settings";
|
|
7173
|
-
import { jsx as
|
|
7309
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
7174
7310
|
var contextMenuItems = {
|
|
7175
7311
|
/** Add Engagement action (Add Circle icon) */
|
|
7176
7312
|
addEngagement: (onClick) => ({
|
|
7177
7313
|
id: "add-engagement",
|
|
7178
7314
|
label: "Add Engagement",
|
|
7179
|
-
icon: /* @__PURE__ */
|
|
7315
|
+
icon: /* @__PURE__ */ jsx69(AddCircleOutlineIcon, {}),
|
|
7180
7316
|
onClick
|
|
7181
7317
|
}),
|
|
7182
7318
|
/** Add Agent action (Add Circle icon) */
|
|
7183
7319
|
addAgent: (onClick) => ({
|
|
7184
7320
|
id: "add-agent",
|
|
7185
7321
|
label: "Add Agent",
|
|
7186
|
-
icon: /* @__PURE__ */
|
|
7322
|
+
icon: /* @__PURE__ */ jsx69(AddCircleOutlineIcon, {}),
|
|
7187
7323
|
onClick
|
|
7188
7324
|
}),
|
|
7189
7325
|
/** Add Stream action (Add Circle icon) */
|
|
7190
7326
|
addStream: (onClick) => ({
|
|
7191
7327
|
id: "add-stream",
|
|
7192
7328
|
label: "Add Stream",
|
|
7193
|
-
icon: /* @__PURE__ */
|
|
7329
|
+
icon: /* @__PURE__ */ jsx69(AddCircleOutlineIcon, {}),
|
|
7194
7330
|
onClick
|
|
7195
7331
|
}),
|
|
7196
7332
|
/** Edit action (Pen / Edit icon) */
|
|
7197
7333
|
edit: (onClick) => ({
|
|
7198
7334
|
id: "edit",
|
|
7199
7335
|
label: "Edit",
|
|
7200
|
-
icon: /* @__PURE__ */
|
|
7336
|
+
icon: /* @__PURE__ */ jsx69(EditIcon, {}),
|
|
7201
7337
|
onClick
|
|
7202
7338
|
}),
|
|
7203
7339
|
/** Copy ID action (Copy icon) */
|
|
7204
7340
|
copyId: (onClick) => ({
|
|
7205
7341
|
id: "copy-id",
|
|
7206
7342
|
label: "Copy ID",
|
|
7207
|
-
icon: /* @__PURE__ */
|
|
7343
|
+
icon: /* @__PURE__ */ jsx69(ContentCopyIcon3, {}),
|
|
7208
7344
|
onClick
|
|
7209
7345
|
}),
|
|
7210
7346
|
/** Agent Flow Visualization — highlighted action (SmartToy icon) */
|
|
7211
7347
|
agentFlowVisualization: (onClick) => ({
|
|
7212
7348
|
id: "agent-flow",
|
|
7213
7349
|
label: "Agent Flow Visualization",
|
|
7214
|
-
icon: /* @__PURE__ */
|
|
7350
|
+
icon: /* @__PURE__ */ jsx69(SmartToyOutlinedIcon2, {}),
|
|
7215
7351
|
onClick,
|
|
7216
7352
|
highlighted: true
|
|
7217
7353
|
}),
|
|
@@ -7219,7 +7355,7 @@ var contextMenuItems = {
|
|
|
7219
7355
|
viewLogs: (onClick) => ({
|
|
7220
7356
|
id: "view-logs",
|
|
7221
7357
|
label: "View Logs",
|
|
7222
|
-
icon: /* @__PURE__ */
|
|
7358
|
+
icon: /* @__PURE__ */ jsx69(DescriptionIcon, {}),
|
|
7223
7359
|
onClick
|
|
7224
7360
|
}),
|
|
7225
7361
|
/** Horizontal divider between sections */
|
|
@@ -7238,15 +7374,15 @@ var contextMenuItems = {
|
|
|
7238
7374
|
settings: (onClick) => ({
|
|
7239
7375
|
id: "settings",
|
|
7240
7376
|
label: "Settings",
|
|
7241
|
-
icon: /* @__PURE__ */
|
|
7377
|
+
icon: /* @__PURE__ */ jsx69(SettingsIcon2, {}),
|
|
7242
7378
|
onClick
|
|
7243
7379
|
})
|
|
7244
7380
|
};
|
|
7245
7381
|
|
|
7246
7382
|
// src/components/layout/DeploymentDashboardTree/DeploymentDashboardTree.tsx
|
|
7247
|
-
import { Box as
|
|
7383
|
+
import { Box as Box28 } from "@mui/material";
|
|
7248
7384
|
import { styled as styled41, alpha } from "@mui/material/styles";
|
|
7249
|
-
import { jsx as
|
|
7385
|
+
import { jsx as jsx70, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7250
7386
|
var TREE_SP = {
|
|
7251
7387
|
/** Vertical gap between sibling rows (Figma S / sp-8) */
|
|
7252
7388
|
rowGap: 8,
|
|
@@ -7264,7 +7400,7 @@ var RAIL_OPACITY = {
|
|
|
7264
7400
|
engagement: 0.4,
|
|
7265
7401
|
agent: 0.4
|
|
7266
7402
|
};
|
|
7267
|
-
var Rail = styled41(
|
|
7403
|
+
var Rail = styled41(Box28, {
|
|
7268
7404
|
shouldForwardProp: (p) => p !== "railColor"
|
|
7269
7405
|
})(({ railColor }) => ({
|
|
7270
7406
|
width: TREE_SP.railWidth,
|
|
@@ -7283,10 +7419,10 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
7283
7419
|
const entityColor = deploymentEntityColors[node.entityType] ?? deploymentEntityColors.workspace;
|
|
7284
7420
|
const railOpacity = RAIL_OPACITY[node.entityType] ?? 0.5;
|
|
7285
7421
|
const railColor = alpha(entityColor, railOpacity);
|
|
7286
|
-
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */
|
|
7287
|
-
/* @__PURE__ */
|
|
7288
|
-
/* @__PURE__ */
|
|
7289
|
-
|
|
7422
|
+
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */ jsxs36(Box28, { sx: { display: "flex", gap: `${TREE_SP.railGap}px` }, children: [
|
|
7423
|
+
/* @__PURE__ */ jsx70(Rail, { railColor, "aria-hidden": true, "data-rail": true }),
|
|
7424
|
+
/* @__PURE__ */ jsx70(
|
|
7425
|
+
Box28,
|
|
7290
7426
|
{
|
|
7291
7427
|
role: "group",
|
|
7292
7428
|
sx: {
|
|
@@ -7296,7 +7432,7 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
7296
7432
|
flexDirection: "column",
|
|
7297
7433
|
gap: `${TREE_SP.rowGap}px`
|
|
7298
7434
|
},
|
|
7299
|
-
children: node.children.map((child) => /* @__PURE__ */
|
|
7435
|
+
children: node.children.map((child) => /* @__PURE__ */ jsx70(
|
|
7300
7436
|
TreeRow,
|
|
7301
7437
|
{
|
|
7302
7438
|
node: child,
|
|
@@ -7310,7 +7446,7 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
7310
7446
|
}
|
|
7311
7447
|
)
|
|
7312
7448
|
] }) : null;
|
|
7313
|
-
const cardContent = renderCard?.(node) ?? /* @__PURE__ */
|
|
7449
|
+
const cardContent = renderCard?.(node) ?? /* @__PURE__ */ jsx70(
|
|
7314
7450
|
DeploymentDashboardCard,
|
|
7315
7451
|
{
|
|
7316
7452
|
entityType: node.entityType,
|
|
@@ -7328,7 +7464,7 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
7328
7464
|
children: renderedChildren
|
|
7329
7465
|
}
|
|
7330
7466
|
);
|
|
7331
|
-
return /* @__PURE__ */
|
|
7467
|
+
return /* @__PURE__ */ jsx70(Box28, { role: "treeitem", children: cardContent });
|
|
7332
7468
|
};
|
|
7333
7469
|
var DeploymentDashboardTree = ({
|
|
7334
7470
|
nodes,
|
|
@@ -7336,8 +7472,8 @@ var DeploymentDashboardTree = ({
|
|
|
7336
7472
|
onCopyId,
|
|
7337
7473
|
renderCard
|
|
7338
7474
|
}) => {
|
|
7339
|
-
return /* @__PURE__ */
|
|
7340
|
-
|
|
7475
|
+
return /* @__PURE__ */ jsx70(
|
|
7476
|
+
Box28,
|
|
7341
7477
|
{
|
|
7342
7478
|
role: "tree",
|
|
7343
7479
|
sx: {
|
|
@@ -7346,7 +7482,7 @@ var DeploymentDashboardTree = ({
|
|
|
7346
7482
|
gap: `${TREE_SP.rowGap}px`,
|
|
7347
7483
|
p: `${TREE_SP.rowGap}px`
|
|
7348
7484
|
},
|
|
7349
|
-
children: nodes.map((node) => /* @__PURE__ */
|
|
7485
|
+
children: nodes.map((node) => /* @__PURE__ */ jsx70(
|
|
7350
7486
|
TreeRow,
|
|
7351
7487
|
{
|
|
7352
7488
|
node,
|
|
@@ -7362,12 +7498,12 @@ var DeploymentDashboardTree = ({
|
|
|
7362
7498
|
};
|
|
7363
7499
|
|
|
7364
7500
|
// src/components/layout/DeploymentDashboardPanel/DeploymentDashboardPanel.tsx
|
|
7365
|
-
import { Box as
|
|
7501
|
+
import { Box as Box29 } from "@mui/material";
|
|
7366
7502
|
import { styled as styled42 } from "@mui/material/styles";
|
|
7367
|
-
import { jsx as
|
|
7503
|
+
import { jsx as jsx71 } from "react/jsx-runtime";
|
|
7368
7504
|
var PANEL_RADIUS = 12;
|
|
7369
7505
|
var PANEL_SHADOW = "0px 1px 3px rgba(0, 0, 0, 0.08)";
|
|
7370
|
-
var StyledPanel = styled42(
|
|
7506
|
+
var StyledPanel = styled42(Box29)({
|
|
7371
7507
|
backgroundColor: deploymentSurfaceTokens.surfaceHigh,
|
|
7372
7508
|
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
7373
7509
|
borderRadius: PANEL_RADIUS,
|
|
@@ -7379,11 +7515,11 @@ var DeploymentDashboardPanel = ({
|
|
|
7379
7515
|
className,
|
|
7380
7516
|
padding = 2
|
|
7381
7517
|
}) => {
|
|
7382
|
-
return /* @__PURE__ */
|
|
7518
|
+
return /* @__PURE__ */ jsx71(StyledPanel, { className, sx: { p: padding }, children });
|
|
7383
7519
|
};
|
|
7384
7520
|
|
|
7385
7521
|
// src/components/layout/WorkflowNode/WorkflowNode.tsx
|
|
7386
|
-
import { Paper as Paper3, Box as
|
|
7522
|
+
import { Paper as Paper3, Box as Box30, Typography as Typography24 } from "@mui/material";
|
|
7387
7523
|
import PlayCircleOutlineIcon from "@mui/icons-material/PlayCircleOutline";
|
|
7388
7524
|
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
|
|
7389
7525
|
import WavesIcon2 from "@mui/icons-material/Waves";
|
|
@@ -7400,7 +7536,7 @@ import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
|
|
|
7400
7536
|
import ForkRightIcon from "@mui/icons-material/ForkRight";
|
|
7401
7537
|
import CallMergeIcon from "@mui/icons-material/CallMerge";
|
|
7402
7538
|
import { useTheme as useTheme5 } from "@mui/material";
|
|
7403
|
-
import { jsx as
|
|
7539
|
+
import { jsx as jsx72, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7404
7540
|
var WORKFLOW_NODE_LABELS = {
|
|
7405
7541
|
start: "Start",
|
|
7406
7542
|
input: "Input",
|
|
@@ -7421,21 +7557,21 @@ var WORKFLOW_NODE_LABELS = {
|
|
|
7421
7557
|
var NODE_ICON_SIZE = 18;
|
|
7422
7558
|
var WORKFLOW_NODE_SHADOW = "0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1)";
|
|
7423
7559
|
var WORKFLOW_NODE_ICONS = {
|
|
7424
|
-
start: /* @__PURE__ */
|
|
7425
|
-
input: /* @__PURE__ */
|
|
7426
|
-
stream: /* @__PURE__ */
|
|
7427
|
-
rafts: /* @__PURE__ */
|
|
7428
|
-
cubbies: /* @__PURE__ */
|
|
7429
|
-
events: /* @__PURE__ */
|
|
7430
|
-
trigger: /* @__PURE__ */
|
|
7431
|
-
action: /* @__PURE__ */
|
|
7432
|
-
aiModel: /* @__PURE__ */
|
|
7433
|
-
aiAgent: /* @__PURE__ */
|
|
7434
|
-
condition: /* @__PURE__ */
|
|
7435
|
-
output: /* @__PURE__ */
|
|
7436
|
-
end: /* @__PURE__ */
|
|
7437
|
-
parallel: /* @__PURE__ */
|
|
7438
|
-
merge: /* @__PURE__ */
|
|
7560
|
+
start: /* @__PURE__ */ jsx72(PlayCircleOutlineIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7561
|
+
input: /* @__PURE__ */ jsx72(CloudDownloadIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7562
|
+
stream: /* @__PURE__ */ jsx72(WavesIcon2, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7563
|
+
rafts: /* @__PURE__ */ jsx72(LinkIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7564
|
+
cubbies: /* @__PURE__ */ jsx72(CloudIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7565
|
+
events: /* @__PURE__ */ jsx72(BoltIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7566
|
+
trigger: /* @__PURE__ */ jsx72(FlashOnIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7567
|
+
action: /* @__PURE__ */ jsx72(PlayArrowIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7568
|
+
aiModel: /* @__PURE__ */ jsx72(PsychologyIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7569
|
+
aiAgent: /* @__PURE__ */ jsx72(SmartToyOutlinedIcon3, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7570
|
+
condition: /* @__PURE__ */ jsx72(CallSplitIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7571
|
+
output: /* @__PURE__ */ jsx72(SendIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7572
|
+
end: /* @__PURE__ */ jsx72(CheckCircleOutlineIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7573
|
+
parallel: /* @__PURE__ */ jsx72(ForkRightIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
7574
|
+
merge: /* @__PURE__ */ jsx72(CallMergeIcon, { sx: { fontSize: NODE_ICON_SIZE } })
|
|
7439
7575
|
};
|
|
7440
7576
|
var BADGE_TYPOGRAPHY = {
|
|
7441
7577
|
fontSize: "12px",
|
|
@@ -7445,8 +7581,8 @@ var BADGE_TYPOGRAPHY = {
|
|
|
7445
7581
|
var SideConnectorDot = ({
|
|
7446
7582
|
accentColor,
|
|
7447
7583
|
side
|
|
7448
|
-
}) => /* @__PURE__ */
|
|
7449
|
-
|
|
7584
|
+
}) => /* @__PURE__ */ jsx72(
|
|
7585
|
+
Box30,
|
|
7450
7586
|
{
|
|
7451
7587
|
"data-testid": `workflow-node-dot-${side}`,
|
|
7452
7588
|
sx: (theme2) => ({
|
|
@@ -7465,8 +7601,8 @@ var SideConnectorDot = ({
|
|
|
7465
7601
|
})
|
|
7466
7602
|
}
|
|
7467
7603
|
);
|
|
7468
|
-
var NodeTypeBadge = ({ nodeType, badgeBackground, badgeBorder, badgeText, icon, label }) => /* @__PURE__ */
|
|
7469
|
-
|
|
7604
|
+
var NodeTypeBadge = ({ nodeType, badgeBackground, badgeBorder, badgeText, icon, label }) => /* @__PURE__ */ jsxs37(
|
|
7605
|
+
Box30,
|
|
7470
7606
|
{
|
|
7471
7607
|
sx: {
|
|
7472
7608
|
display: "inline-flex",
|
|
@@ -7481,9 +7617,9 @@ var NodeTypeBadge = ({ nodeType, badgeBackground, badgeBorder, badgeText, icon,
|
|
|
7481
7617
|
flexShrink: 0
|
|
7482
7618
|
},
|
|
7483
7619
|
children: [
|
|
7484
|
-
/* @__PURE__ */
|
|
7485
|
-
/* @__PURE__ */
|
|
7486
|
-
|
|
7620
|
+
/* @__PURE__ */ jsx72(Box30, { sx: { color: badgeText, display: "flex", alignItems: "center" }, children: icon ?? WORKFLOW_NODE_ICONS[nodeType] }),
|
|
7621
|
+
/* @__PURE__ */ jsx72(
|
|
7622
|
+
Typography24,
|
|
7487
7623
|
{
|
|
7488
7624
|
variant: "body2",
|
|
7489
7625
|
component: "span",
|
|
@@ -7515,7 +7651,7 @@ var WorkflowNode = ({
|
|
|
7515
7651
|
const nodeTokens = theme2.palette.workflow.node[nodeType];
|
|
7516
7652
|
const chrome = theme2.palette.workflow.chrome;
|
|
7517
7653
|
const accentColor = nodeTokens.accent;
|
|
7518
|
-
return /* @__PURE__ */
|
|
7654
|
+
return /* @__PURE__ */ jsxs37(
|
|
7519
7655
|
Paper3,
|
|
7520
7656
|
{
|
|
7521
7657
|
elevation: 0,
|
|
@@ -7539,10 +7675,10 @@ var WorkflowNode = ({
|
|
|
7539
7675
|
],
|
|
7540
7676
|
...paperProps,
|
|
7541
7677
|
children: [
|
|
7542
|
-
showSideDots && /* @__PURE__ */
|
|
7543
|
-
showSideDots && /* @__PURE__ */
|
|
7544
|
-
/* @__PURE__ */
|
|
7545
|
-
|
|
7678
|
+
showSideDots && /* @__PURE__ */ jsx72(SideConnectorDot, { accentColor, side: "left" }),
|
|
7679
|
+
showSideDots && /* @__PURE__ */ jsx72(SideConnectorDot, { accentColor, side: "right" }),
|
|
7680
|
+
/* @__PURE__ */ jsxs37(
|
|
7681
|
+
Box30,
|
|
7546
7682
|
{
|
|
7547
7683
|
sx: {
|
|
7548
7684
|
flex: 1,
|
|
@@ -7555,9 +7691,9 @@ var WorkflowNode = ({
|
|
|
7555
7691
|
minWidth: 0
|
|
7556
7692
|
},
|
|
7557
7693
|
children: [
|
|
7558
|
-
/* @__PURE__ */
|
|
7559
|
-
/* @__PURE__ */
|
|
7560
|
-
|
|
7694
|
+
/* @__PURE__ */ jsxs37(Box30, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
7695
|
+
/* @__PURE__ */ jsx72(
|
|
7696
|
+
Typography24,
|
|
7561
7697
|
{
|
|
7562
7698
|
variant: "subtitle2",
|
|
7563
7699
|
noWrap: true,
|
|
@@ -7571,8 +7707,8 @@ var WorkflowNode = ({
|
|
|
7571
7707
|
children: title
|
|
7572
7708
|
}
|
|
7573
7709
|
),
|
|
7574
|
-
description && /* @__PURE__ */
|
|
7575
|
-
|
|
7710
|
+
description && /* @__PURE__ */ jsx72(
|
|
7711
|
+
Typography24,
|
|
7576
7712
|
{
|
|
7577
7713
|
variant: "body2",
|
|
7578
7714
|
sx: {
|
|
@@ -7590,7 +7726,7 @@ var WorkflowNode = ({
|
|
|
7590
7726
|
}
|
|
7591
7727
|
)
|
|
7592
7728
|
] }),
|
|
7593
|
-
/* @__PURE__ */
|
|
7729
|
+
/* @__PURE__ */ jsx72(
|
|
7594
7730
|
NodeTypeBadge,
|
|
7595
7731
|
{
|
|
7596
7732
|
nodeType,
|
|
@@ -7611,17 +7747,17 @@ var WorkflowNode = ({
|
|
|
7611
7747
|
|
|
7612
7748
|
// src/components/layout/WorkflowTopBar/WorkflowTopBar.tsx
|
|
7613
7749
|
import {
|
|
7614
|
-
Box as
|
|
7750
|
+
Box as Box31,
|
|
7615
7751
|
Divider as Divider7,
|
|
7616
7752
|
IconButton as IconButton14,
|
|
7617
7753
|
InputBase,
|
|
7618
|
-
Typography as
|
|
7754
|
+
Typography as Typography25,
|
|
7619
7755
|
alpha as alpha2
|
|
7620
7756
|
} from "@mui/material";
|
|
7621
7757
|
import CloseIcon4 from "@mui/icons-material/Close";
|
|
7622
7758
|
import CancelIcon from "@mui/icons-material/Cancel";
|
|
7623
7759
|
import { useTheme as useTheme6 } from "@mui/material/styles";
|
|
7624
|
-
import { jsx as
|
|
7760
|
+
import { jsx as jsx73, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7625
7761
|
var WorkflowTopBar = ({
|
|
7626
7762
|
title = "Agent visualization flow chart",
|
|
7627
7763
|
executionId,
|
|
@@ -7639,8 +7775,8 @@ var WorkflowTopBar = ({
|
|
|
7639
7775
|
...boxProps
|
|
7640
7776
|
}) => {
|
|
7641
7777
|
const chrome = useTheme6().palette.workflow.chrome;
|
|
7642
|
-
return /* @__PURE__ */
|
|
7643
|
-
|
|
7778
|
+
return /* @__PURE__ */ jsxs38(
|
|
7779
|
+
Box31,
|
|
7644
7780
|
{
|
|
7645
7781
|
sx: [
|
|
7646
7782
|
{
|
|
@@ -7653,8 +7789,8 @@ var WorkflowTopBar = ({
|
|
|
7653
7789
|
],
|
|
7654
7790
|
...boxProps,
|
|
7655
7791
|
children: [
|
|
7656
|
-
/* @__PURE__ */
|
|
7657
|
-
|
|
7792
|
+
/* @__PURE__ */ jsxs38(
|
|
7793
|
+
Box31,
|
|
7658
7794
|
{
|
|
7659
7795
|
sx: {
|
|
7660
7796
|
display: "flex",
|
|
@@ -7666,8 +7802,8 @@ var WorkflowTopBar = ({
|
|
|
7666
7802
|
minHeight: 72
|
|
7667
7803
|
},
|
|
7668
7804
|
children: [
|
|
7669
|
-
/* @__PURE__ */
|
|
7670
|
-
|
|
7805
|
+
/* @__PURE__ */ jsx73(
|
|
7806
|
+
Typography25,
|
|
7671
7807
|
{
|
|
7672
7808
|
variant: "subtitle1",
|
|
7673
7809
|
sx: {
|
|
@@ -7678,8 +7814,8 @@ var WorkflowTopBar = ({
|
|
|
7678
7814
|
children: title
|
|
7679
7815
|
}
|
|
7680
7816
|
),
|
|
7681
|
-
/* @__PURE__ */
|
|
7682
|
-
|
|
7817
|
+
/* @__PURE__ */ jsxs38(
|
|
7818
|
+
Box31,
|
|
7683
7819
|
{
|
|
7684
7820
|
sx: {
|
|
7685
7821
|
display: "flex",
|
|
@@ -7690,8 +7826,8 @@ var WorkflowTopBar = ({
|
|
|
7690
7826
|
minWidth: 0
|
|
7691
7827
|
},
|
|
7692
7828
|
children: [
|
|
7693
|
-
/* @__PURE__ */
|
|
7694
|
-
|
|
7829
|
+
/* @__PURE__ */ jsxs38(
|
|
7830
|
+
Box31,
|
|
7695
7831
|
{
|
|
7696
7832
|
sx: {
|
|
7697
7833
|
display: "flex",
|
|
@@ -7706,9 +7842,9 @@ var WorkflowTopBar = ({
|
|
|
7706
7842
|
minHeight: 56
|
|
7707
7843
|
},
|
|
7708
7844
|
children: [
|
|
7709
|
-
/* @__PURE__ */
|
|
7710
|
-
/* @__PURE__ */
|
|
7711
|
-
|
|
7845
|
+
/* @__PURE__ */ jsxs38(Box31, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
7846
|
+
/* @__PURE__ */ jsx73(
|
|
7847
|
+
Typography25,
|
|
7712
7848
|
{
|
|
7713
7849
|
variant: "caption",
|
|
7714
7850
|
sx: {
|
|
@@ -7719,7 +7855,7 @@ var WorkflowTopBar = ({
|
|
|
7719
7855
|
children: executionIdLabel
|
|
7720
7856
|
}
|
|
7721
7857
|
),
|
|
7722
|
-
/* @__PURE__ */
|
|
7858
|
+
/* @__PURE__ */ jsx73(
|
|
7723
7859
|
InputBase,
|
|
7724
7860
|
{
|
|
7725
7861
|
value: executionId,
|
|
@@ -7738,20 +7874,20 @@ var WorkflowTopBar = ({
|
|
|
7738
7874
|
}
|
|
7739
7875
|
)
|
|
7740
7876
|
] }),
|
|
7741
|
-
/* @__PURE__ */
|
|
7877
|
+
/* @__PURE__ */ jsx73(
|
|
7742
7878
|
IconButton14,
|
|
7743
7879
|
{
|
|
7744
7880
|
size: "small",
|
|
7745
7881
|
"aria-label": `Clear ${executionIdLabel.toLowerCase()}`,
|
|
7746
7882
|
onClick: onClearExecutionId,
|
|
7747
7883
|
sx: { color: chrome.iconColor, ml: 1 },
|
|
7748
|
-
children: /* @__PURE__ */
|
|
7884
|
+
children: /* @__PURE__ */ jsx73(CancelIcon, { fontSize: "small" })
|
|
7749
7885
|
}
|
|
7750
7886
|
)
|
|
7751
7887
|
]
|
|
7752
7888
|
}
|
|
7753
7889
|
),
|
|
7754
|
-
/* @__PURE__ */
|
|
7890
|
+
/* @__PURE__ */ jsx73(
|
|
7755
7891
|
Button,
|
|
7756
7892
|
{
|
|
7757
7893
|
variant: "primary",
|
|
@@ -7768,8 +7904,8 @@ var WorkflowTopBar = ({
|
|
|
7768
7904
|
children: submitLabel
|
|
7769
7905
|
}
|
|
7770
7906
|
),
|
|
7771
|
-
showInspectorToggle && /* @__PURE__ */
|
|
7772
|
-
showCloseButton && /* @__PURE__ */
|
|
7907
|
+
showInspectorToggle && /* @__PURE__ */ jsx73(Button, { variant: "secondary", onClick: onInspectorToggle, children: inspectorLabel }),
|
|
7908
|
+
showCloseButton && /* @__PURE__ */ jsx73(
|
|
7773
7909
|
IconButton14,
|
|
7774
7910
|
{
|
|
7775
7911
|
"aria-label": "Close workflow chrome",
|
|
@@ -7780,7 +7916,7 @@ var WorkflowTopBar = ({
|
|
|
7780
7916
|
backgroundColor: alpha2(chrome.closeBtnBg, 0.28),
|
|
7781
7917
|
color: chrome.iconColor
|
|
7782
7918
|
},
|
|
7783
|
-
children: /* @__PURE__ */
|
|
7919
|
+
children: /* @__PURE__ */ jsx73(CloseIcon4, { fontSize: "small" })
|
|
7784
7920
|
}
|
|
7785
7921
|
)
|
|
7786
7922
|
]
|
|
@@ -7789,7 +7925,7 @@ var WorkflowTopBar = ({
|
|
|
7789
7925
|
]
|
|
7790
7926
|
}
|
|
7791
7927
|
),
|
|
7792
|
-
/* @__PURE__ */
|
|
7928
|
+
/* @__PURE__ */ jsx73(Divider7, { sx: { borderColor: deploymentSurfaceTokens.strokeOutside } })
|
|
7793
7929
|
]
|
|
7794
7930
|
}
|
|
7795
7931
|
);
|
|
@@ -7797,22 +7933,22 @@ var WorkflowTopBar = ({
|
|
|
7797
7933
|
|
|
7798
7934
|
// src/components/layout/WorkflowSideInspector/WorkflowSideInspector.tsx
|
|
7799
7935
|
import {
|
|
7800
|
-
Box as
|
|
7936
|
+
Box as Box32,
|
|
7801
7937
|
Divider as Divider8,
|
|
7802
7938
|
IconButton as IconButton15,
|
|
7803
7939
|
Paper as Paper4,
|
|
7804
|
-
Typography as
|
|
7940
|
+
Typography as Typography26,
|
|
7805
7941
|
alpha as alpha3,
|
|
7806
7942
|
useTheme as useTheme7
|
|
7807
7943
|
} from "@mui/material";
|
|
7808
7944
|
import CloseIcon5 from "@mui/icons-material/Close";
|
|
7809
7945
|
import ContentCopyOutlinedIcon from "@mui/icons-material/ContentCopyOutlined";
|
|
7810
|
-
import { Fragment as Fragment13, jsx as
|
|
7946
|
+
import { Fragment as Fragment13, jsx as jsx74, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7811
7947
|
var INSPECTOR_WIDTH = 320;
|
|
7812
|
-
var InfoBlock = ({ label, value, mutedColor }) => /* @__PURE__ */
|
|
7813
|
-
/* @__PURE__ */
|
|
7814
|
-
/* @__PURE__ */
|
|
7815
|
-
|
|
7948
|
+
var InfoBlock = ({ label, value, mutedColor }) => /* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
7949
|
+
/* @__PURE__ */ jsx74(Typography26, { variant: "body2", sx: { color: mutedColor }, children: label }),
|
|
7950
|
+
/* @__PURE__ */ jsx74(
|
|
7951
|
+
Typography26,
|
|
7816
7952
|
{
|
|
7817
7953
|
variant: "body2",
|
|
7818
7954
|
sx: { color: deploymentSurfaceTokens.textPrimary, whiteSpace: "pre-wrap" },
|
|
@@ -7848,7 +7984,7 @@ var WorkflowSideInspector = ({
|
|
|
7848
7984
|
return null;
|
|
7849
7985
|
}
|
|
7850
7986
|
const accent = theme2.palette.workflow.node[nodeType].accent;
|
|
7851
|
-
return /* @__PURE__ */
|
|
7987
|
+
return /* @__PURE__ */ jsxs39(
|
|
7852
7988
|
Paper4,
|
|
7853
7989
|
{
|
|
7854
7990
|
elevation: 0,
|
|
@@ -7867,10 +8003,10 @@ var WorkflowSideInspector = ({
|
|
|
7867
8003
|
},
|
|
7868
8004
|
...paperProps,
|
|
7869
8005
|
children: [
|
|
7870
|
-
/* @__PURE__ */
|
|
7871
|
-
/* @__PURE__ */
|
|
7872
|
-
/* @__PURE__ */
|
|
7873
|
-
/* @__PURE__ */
|
|
8006
|
+
/* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1.25 }, children: [
|
|
8007
|
+
/* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
8008
|
+
/* @__PURE__ */ jsx74(Typography26, { variant: "subtitle1", sx: { color: deploymentSurfaceTokens.textPrimary }, children: title }),
|
|
8009
|
+
/* @__PURE__ */ jsx74(
|
|
7874
8010
|
IconButton15,
|
|
7875
8011
|
{
|
|
7876
8012
|
"aria-label": "Close inspector",
|
|
@@ -7879,25 +8015,25 @@ var WorkflowSideInspector = ({
|
|
|
7879
8015
|
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
7880
8016
|
borderRadius: 2
|
|
7881
8017
|
},
|
|
7882
|
-
children: /* @__PURE__ */
|
|
8018
|
+
children: /* @__PURE__ */ jsx74(CloseIcon5, { fontSize: "small" })
|
|
7883
8019
|
}
|
|
7884
8020
|
)
|
|
7885
8021
|
] }),
|
|
7886
|
-
/* @__PURE__ */
|
|
8022
|
+
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } })
|
|
7887
8023
|
] }),
|
|
7888
|
-
/* @__PURE__ */
|
|
7889
|
-
/* @__PURE__ */
|
|
7890
|
-
/* @__PURE__ */
|
|
7891
|
-
|
|
8024
|
+
/* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", flexDirection: "column", gap: 3, flex: 1 }, children: [
|
|
8025
|
+
/* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
8026
|
+
/* @__PURE__ */ jsx74(
|
|
8027
|
+
Typography26,
|
|
7892
8028
|
{
|
|
7893
8029
|
variant: "subtitle1",
|
|
7894
8030
|
sx: { color: deploymentSurfaceTokens.textPrimary, fontWeight: 500 },
|
|
7895
8031
|
children: nodeTitle
|
|
7896
8032
|
}
|
|
7897
8033
|
),
|
|
7898
|
-
/* @__PURE__ */
|
|
7899
|
-
/* @__PURE__ */
|
|
7900
|
-
|
|
8034
|
+
/* @__PURE__ */ jsx74(Typography26, { variant: "body2", sx: { color: chrome.mutedText }, children: nodeDescription }),
|
|
8035
|
+
/* @__PURE__ */ jsxs39(
|
|
8036
|
+
Box32,
|
|
7901
8037
|
{
|
|
7902
8038
|
sx: {
|
|
7903
8039
|
display: "inline-flex",
|
|
@@ -7911,8 +8047,8 @@ var WorkflowSideInspector = ({
|
|
|
7911
8047
|
backgroundColor: alpha3(accent, 0.12)
|
|
7912
8048
|
},
|
|
7913
8049
|
children: [
|
|
7914
|
-
/* @__PURE__ */
|
|
7915
|
-
|
|
8050
|
+
/* @__PURE__ */ jsx74(
|
|
8051
|
+
Box32,
|
|
7916
8052
|
{
|
|
7917
8053
|
sx: {
|
|
7918
8054
|
width: 10,
|
|
@@ -7922,43 +8058,43 @@ var WorkflowSideInspector = ({
|
|
|
7922
8058
|
}
|
|
7923
8059
|
}
|
|
7924
8060
|
),
|
|
7925
|
-
/* @__PURE__ */
|
|
8061
|
+
/* @__PURE__ */ jsx74(Typography26, { variant: "caption", sx: { color: accent, fontWeight: 500 }, children: WORKFLOW_NODE_LABELS[nodeType] })
|
|
7926
8062
|
]
|
|
7927
8063
|
}
|
|
7928
8064
|
)
|
|
7929
8065
|
] }),
|
|
7930
|
-
/* @__PURE__ */
|
|
7931
|
-
(showInput || showOutput) && /* @__PURE__ */
|
|
7932
|
-
/* @__PURE__ */
|
|
7933
|
-
showInput && /* @__PURE__ */
|
|
7934
|
-
showOutput && /* @__PURE__ */
|
|
8066
|
+
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } }),
|
|
8067
|
+
(showInput || showOutput) && /* @__PURE__ */ jsxs39(Fragment13, { children: [
|
|
8068
|
+
/* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
8069
|
+
showInput && /* @__PURE__ */ jsx74(InfoBlock, { label: "Input", value: inputValue, mutedColor: chrome.mutedText }),
|
|
8070
|
+
showOutput && /* @__PURE__ */ jsx74(InfoBlock, { label: "Output", value: outputValue, mutedColor: chrome.mutedText })
|
|
7935
8071
|
] }),
|
|
7936
|
-
/* @__PURE__ */
|
|
8072
|
+
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } })
|
|
7937
8073
|
] }),
|
|
7938
|
-
/* @__PURE__ */
|
|
7939
|
-
/* @__PURE__ */
|
|
7940
|
-
/* @__PURE__ */
|
|
8074
|
+
/* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
8075
|
+
/* @__PURE__ */ jsx74(Typography26, { variant: "body2", sx: { color: chrome.mutedText }, children: "Cubby ID" }),
|
|
8076
|
+
/* @__PURE__ */ jsx74(
|
|
7941
8077
|
Button,
|
|
7942
8078
|
{
|
|
7943
8079
|
variant: "secondary",
|
|
7944
8080
|
size: "small",
|
|
7945
|
-
startIcon: /* @__PURE__ */
|
|
8081
|
+
startIcon: /* @__PURE__ */ jsx74(ContentCopyOutlinedIcon, { fontSize: "small" }),
|
|
7946
8082
|
onClick: onCopyCubbyId,
|
|
7947
8083
|
sx: { alignSelf: "flex-start" },
|
|
7948
8084
|
children: cubbyId
|
|
7949
8085
|
}
|
|
7950
8086
|
)
|
|
7951
8087
|
] }),
|
|
7952
|
-
/* @__PURE__ */
|
|
7953
|
-
(showTimestamp || showDuration) && /* @__PURE__ */
|
|
7954
|
-
/* @__PURE__ */
|
|
7955
|
-
showTimestamp && /* @__PURE__ */
|
|
7956
|
-
showDuration && /* @__PURE__ */
|
|
8088
|
+
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } }),
|
|
8089
|
+
(showTimestamp || showDuration) && /* @__PURE__ */ jsxs39(Fragment13, { children: [
|
|
8090
|
+
/* @__PURE__ */ jsxs39(Box32, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
8091
|
+
showTimestamp && /* @__PURE__ */ jsx74(InfoBlock, { label: "Timestamp", value: timestamp, mutedColor: chrome.mutedText }),
|
|
8092
|
+
showDuration && /* @__PURE__ */ jsx74(InfoBlock, { label: "Duration", value: duration, mutedColor: chrome.mutedText })
|
|
7957
8093
|
] }),
|
|
7958
|
-
/* @__PURE__ */
|
|
8094
|
+
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } })
|
|
7959
8095
|
] })
|
|
7960
8096
|
] }),
|
|
7961
|
-
actionLabel && /* @__PURE__ */
|
|
8097
|
+
actionLabel && /* @__PURE__ */ jsx74(Button, { variant: "primary", fullWidth: true, onClick: onAction, children: actionLabel })
|
|
7962
8098
|
]
|
|
7963
8099
|
}
|
|
7964
8100
|
);
|
|
@@ -7966,19 +8102,19 @@ var WorkflowSideInspector = ({
|
|
|
7966
8102
|
|
|
7967
8103
|
// src/components/layout/WorkflowTimeBar/WorkflowTimeBar.tsx
|
|
7968
8104
|
import {
|
|
7969
|
-
Box as
|
|
8105
|
+
Box as Box33,
|
|
7970
8106
|
Divider as Divider9,
|
|
7971
8107
|
IconButton as IconButton16,
|
|
7972
8108
|
LinearProgress as LinearProgress3,
|
|
7973
|
-
Typography as
|
|
8109
|
+
Typography as Typography27
|
|
7974
8110
|
} from "@mui/material";
|
|
7975
8111
|
import StopIcon from "@mui/icons-material/Stop";
|
|
7976
8112
|
import ChevronLeftIcon4 from "@mui/icons-material/ChevronLeft";
|
|
7977
8113
|
import ChevronRightIcon5 from "@mui/icons-material/ChevronRight";
|
|
7978
8114
|
import ReplayIcon from "@mui/icons-material/Replay";
|
|
7979
8115
|
import { useTheme as useTheme8 } from "@mui/material/styles";
|
|
7980
|
-
import { jsx as
|
|
7981
|
-
var SpeedButton = ({ value, selected, onClick }) => /* @__PURE__ */
|
|
8116
|
+
import { jsx as jsx75, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
8117
|
+
var SpeedButton = ({ value, selected, onClick }) => /* @__PURE__ */ jsx75(
|
|
7982
8118
|
Button,
|
|
7983
8119
|
{
|
|
7984
8120
|
variant: selected ? "primary" : "secondary",
|
|
@@ -8014,8 +8150,8 @@ var WorkflowTimeBar = ({
|
|
|
8014
8150
|
const boundedProgress = Math.max(0, Math.min(100, progress));
|
|
8015
8151
|
const atFirstStep = currentStep <= 1;
|
|
8016
8152
|
const atLastStep = currentStep >= totalSteps;
|
|
8017
|
-
return /* @__PURE__ */
|
|
8018
|
-
|
|
8153
|
+
return /* @__PURE__ */ jsxs40(
|
|
8154
|
+
Box33,
|
|
8019
8155
|
{
|
|
8020
8156
|
sx: [
|
|
8021
8157
|
{
|
|
@@ -8031,9 +8167,9 @@ var WorkflowTimeBar = ({
|
|
|
8031
8167
|
],
|
|
8032
8168
|
...boxProps,
|
|
8033
8169
|
children: [
|
|
8034
|
-
/* @__PURE__ */
|
|
8035
|
-
/* @__PURE__ */
|
|
8036
|
-
/* @__PURE__ */
|
|
8170
|
+
/* @__PURE__ */ jsx75(Divider9, { sx: { borderColor: deploymentSurfaceTokens.strokeOutside } }),
|
|
8171
|
+
/* @__PURE__ */ jsxs40(Box33, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
8172
|
+
/* @__PURE__ */ jsx75(
|
|
8037
8173
|
IconButton16,
|
|
8038
8174
|
{
|
|
8039
8175
|
onClick: onStop,
|
|
@@ -8046,19 +8182,19 @@ var WorkflowTimeBar = ({
|
|
|
8046
8182
|
color: deploymentSurfaceTokens.textPrimary,
|
|
8047
8183
|
backgroundColor: deploymentSurfaceTokens.surfaceHigh
|
|
8048
8184
|
},
|
|
8049
|
-
children: /* @__PURE__ */
|
|
8185
|
+
children: /* @__PURE__ */ jsx75(StopIcon, { sx: { fontSize: 16 } })
|
|
8050
8186
|
}
|
|
8051
8187
|
),
|
|
8052
|
-
/* @__PURE__ */
|
|
8053
|
-
/* @__PURE__ */
|
|
8054
|
-
|
|
8188
|
+
/* @__PURE__ */ jsxs40(Box33, { sx: { flex: 1, minWidth: 220, px: 1 }, children: [
|
|
8189
|
+
/* @__PURE__ */ jsx75(
|
|
8190
|
+
Typography27,
|
|
8055
8191
|
{
|
|
8056
8192
|
variant: "body2",
|
|
8057
8193
|
sx: { color: deploymentSurfaceTokens.textPrimary, mb: 0.5 },
|
|
8058
8194
|
children: elapsedTime
|
|
8059
8195
|
}
|
|
8060
8196
|
),
|
|
8061
|
-
/* @__PURE__ */
|
|
8197
|
+
/* @__PURE__ */ jsx75(
|
|
8062
8198
|
LinearProgress3,
|
|
8063
8199
|
{
|
|
8064
8200
|
variant: "determinate",
|
|
@@ -8074,10 +8210,10 @@ var WorkflowTimeBar = ({
|
|
|
8074
8210
|
}
|
|
8075
8211
|
)
|
|
8076
8212
|
] }),
|
|
8077
|
-
/* @__PURE__ */
|
|
8078
|
-
/* @__PURE__ */
|
|
8079
|
-
/* @__PURE__ */
|
|
8080
|
-
/* @__PURE__ */
|
|
8213
|
+
/* @__PURE__ */ jsxs40(Box33, { sx: { display: "flex", alignItems: "center", gap: 3 }, children: [
|
|
8214
|
+
/* @__PURE__ */ jsxs40(Box33, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8215
|
+
/* @__PURE__ */ jsx75(Typography27, { variant: "subtitle1", sx: { fontWeight: 500 }, children: "Steps" }),
|
|
8216
|
+
/* @__PURE__ */ jsx75(
|
|
8081
8217
|
IconButton16,
|
|
8082
8218
|
{
|
|
8083
8219
|
size: "small",
|
|
@@ -8085,11 +8221,11 @@ var WorkflowTimeBar = ({
|
|
|
8085
8221
|
onClick: onPreviousStep,
|
|
8086
8222
|
disabled: atFirstStep,
|
|
8087
8223
|
sx: { backgroundColor: chrome.stepBtnBg },
|
|
8088
|
-
children: /* @__PURE__ */
|
|
8224
|
+
children: /* @__PURE__ */ jsx75(ChevronLeftIcon4, { fontSize: "small" })
|
|
8089
8225
|
}
|
|
8090
8226
|
),
|
|
8091
|
-
/* @__PURE__ */
|
|
8092
|
-
/* @__PURE__ */
|
|
8227
|
+
/* @__PURE__ */ jsx75(Typography27, { variant: "subtitle1", sx: { minWidth: 52, textAlign: "center" }, children: `${currentStep} / ${totalSteps}` }),
|
|
8228
|
+
/* @__PURE__ */ jsx75(
|
|
8093
8229
|
IconButton16,
|
|
8094
8230
|
{
|
|
8095
8231
|
size: "small",
|
|
@@ -8097,13 +8233,13 @@ var WorkflowTimeBar = ({
|
|
|
8097
8233
|
onClick: onNextStep,
|
|
8098
8234
|
disabled: atLastStep,
|
|
8099
8235
|
sx: { backgroundColor: chrome.stepBtnBgHover },
|
|
8100
|
-
children: /* @__PURE__ */
|
|
8236
|
+
children: /* @__PURE__ */ jsx75(ChevronRightIcon5, { fontSize: "small" })
|
|
8101
8237
|
}
|
|
8102
8238
|
)
|
|
8103
8239
|
] }),
|
|
8104
|
-
/* @__PURE__ */
|
|
8105
|
-
/* @__PURE__ */
|
|
8106
|
-
speedOptions.map((option) => /* @__PURE__ */
|
|
8240
|
+
/* @__PURE__ */ jsxs40(Box33, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8241
|
+
/* @__PURE__ */ jsx75(Typography27, { variant: "subtitle1", sx: { fontWeight: 500 }, children: "Speed" }),
|
|
8242
|
+
speedOptions.map((option) => /* @__PURE__ */ jsx75(
|
|
8107
8243
|
SpeedButton,
|
|
8108
8244
|
{
|
|
8109
8245
|
value: option,
|
|
@@ -8112,7 +8248,7 @@ var WorkflowTimeBar = ({
|
|
|
8112
8248
|
},
|
|
8113
8249
|
option
|
|
8114
8250
|
)),
|
|
8115
|
-
/* @__PURE__ */
|
|
8251
|
+
/* @__PURE__ */ jsx75(IconButton16, { "aria-label": "Reset playback", onClick: onReset, size: "small", children: /* @__PURE__ */ jsx75(ReplayIcon, { fontSize: "small" }) })
|
|
8116
8252
|
] })
|
|
8117
8253
|
] })
|
|
8118
8254
|
] })
|
|
@@ -8124,10 +8260,10 @@ var WorkflowTimeBar = ({
|
|
|
8124
8260
|
// src/components/icons/ActivityAppIcon.tsx
|
|
8125
8261
|
import { memo as memo2 } from "react";
|
|
8126
8262
|
import { SvgIcon as SvgIcon2 } from "@mui/material";
|
|
8127
|
-
import { jsx as
|
|
8128
|
-
var ActivityAppIcon = memo2((props) => /* @__PURE__ */
|
|
8129
|
-
/* @__PURE__ */
|
|
8130
|
-
/* @__PURE__ */
|
|
8263
|
+
import { jsx as jsx76, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
8264
|
+
var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs41(SvgIcon2, { ...props, viewBox: "0 0 36 36", children: [
|
|
8265
|
+
/* @__PURE__ */ jsx76("rect", { fill: "none", stroke: "currentColor", width: 34, height: 34, x: 1, y: 1, strokeWidth: 1.5, rx: 6.8 }),
|
|
8266
|
+
/* @__PURE__ */ jsx76(
|
|
8131
8267
|
"rect",
|
|
8132
8268
|
{
|
|
8133
8269
|
fill: "none",
|
|
@@ -8140,7 +8276,7 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs40(SvgIcon2, { ...pro
|
|
|
8140
8276
|
rx: 1.7
|
|
8141
8277
|
}
|
|
8142
8278
|
),
|
|
8143
|
-
/* @__PURE__ */
|
|
8279
|
+
/* @__PURE__ */ jsx76(
|
|
8144
8280
|
"rect",
|
|
8145
8281
|
{
|
|
8146
8282
|
fill: "none",
|
|
@@ -8153,7 +8289,7 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs40(SvgIcon2, { ...pro
|
|
|
8153
8289
|
rx: 1.7
|
|
8154
8290
|
}
|
|
8155
8291
|
),
|
|
8156
|
-
/* @__PURE__ */
|
|
8292
|
+
/* @__PURE__ */ jsx76(
|
|
8157
8293
|
"rect",
|
|
8158
8294
|
{
|
|
8159
8295
|
fill: "none",
|
|
@@ -8170,9 +8306,9 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs40(SvgIcon2, { ...pro
|
|
|
8170
8306
|
|
|
8171
8307
|
// src/components/icons/ArrowLeft.tsx
|
|
8172
8308
|
import { SvgIcon as SvgIcon3 } from "@mui/material";
|
|
8173
|
-
import { jsx as
|
|
8309
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
8174
8310
|
var LeftArrowIcon = (props) => {
|
|
8175
|
-
return /* @__PURE__ */
|
|
8311
|
+
return /* @__PURE__ */ jsx77(SvgIcon3, { ...props, width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx77("g", { id: " Arrow Left", children: /* @__PURE__ */ jsx77(
|
|
8176
8312
|
"path",
|
|
8177
8313
|
{
|
|
8178
8314
|
id: "Vector (Stroke)",
|
|
@@ -8186,9 +8322,9 @@ var LeftArrowIcon = (props) => {
|
|
|
8186
8322
|
|
|
8187
8323
|
// src/components/icons/ArrowRight.tsx
|
|
8188
8324
|
import { SvgIcon as SvgIcon4 } from "@mui/material";
|
|
8189
|
-
import { jsx as
|
|
8325
|
+
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
8190
8326
|
var RightArrowIcon = (props) => {
|
|
8191
|
-
return /* @__PURE__ */
|
|
8327
|
+
return /* @__PURE__ */ jsx78(SvgIcon4, { ...props, width: "25", height: "24", viewBox: "0 0 25 24", children: /* @__PURE__ */ jsx78(
|
|
8192
8328
|
"path",
|
|
8193
8329
|
{
|
|
8194
8330
|
fillRule: "evenodd",
|
|
@@ -8201,10 +8337,10 @@ var RightArrowIcon = (props) => {
|
|
|
8201
8337
|
|
|
8202
8338
|
// src/components/icons/AvatarIcon.tsx
|
|
8203
8339
|
import { SvgIcon as SvgIcon5 } from "@mui/material";
|
|
8204
|
-
import { jsx as
|
|
8340
|
+
import { jsx as jsx79, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
8205
8341
|
var AvatarIcon = (props) => {
|
|
8206
|
-
return /* @__PURE__ */
|
|
8207
|
-
/* @__PURE__ */
|
|
8342
|
+
return /* @__PURE__ */ jsxs42(SvgIcon5, { ...props, viewBox: "0 0 16 16", children: [
|
|
8343
|
+
/* @__PURE__ */ jsx79(
|
|
8208
8344
|
"path",
|
|
8209
8345
|
{
|
|
8210
8346
|
fillRule: "evenodd",
|
|
@@ -8213,7 +8349,7 @@ var AvatarIcon = (props) => {
|
|
|
8213
8349
|
fill: "#1D1B20"
|
|
8214
8350
|
}
|
|
8215
8351
|
),
|
|
8216
|
-
/* @__PURE__ */
|
|
8352
|
+
/* @__PURE__ */ jsx79(
|
|
8217
8353
|
"path",
|
|
8218
8354
|
{
|
|
8219
8355
|
fillRule: "evenodd",
|
|
@@ -8228,9 +8364,9 @@ var AvatarIcon = (props) => {
|
|
|
8228
8364
|
// src/components/icons/BarTrackingIcon.tsx
|
|
8229
8365
|
import { memo as memo3 } from "react";
|
|
8230
8366
|
import { SvgIcon as SvgIcon6 } from "@mui/material";
|
|
8231
|
-
import { jsx as
|
|
8232
|
-
var BarTrackingIcon = memo3((props) => /* @__PURE__ */
|
|
8233
|
-
/* @__PURE__ */
|
|
8367
|
+
import { jsx as jsx80, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
8368
|
+
var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs43(SvgIcon6, { ...props, viewBox: "0 0 96 97", children: [
|
|
8369
|
+
/* @__PURE__ */ jsx80(
|
|
8234
8370
|
"rect",
|
|
8235
8371
|
{
|
|
8236
8372
|
x: "7.19922",
|
|
@@ -8243,7 +8379,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs42(SvgIcon6, { ...pro
|
|
|
8243
8379
|
fill: "none"
|
|
8244
8380
|
}
|
|
8245
8381
|
),
|
|
8246
|
-
/* @__PURE__ */
|
|
8382
|
+
/* @__PURE__ */ jsx80(
|
|
8247
8383
|
"rect",
|
|
8248
8384
|
{
|
|
8249
8385
|
x: "21.0371",
|
|
@@ -8256,7 +8392,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs42(SvgIcon6, { ...pro
|
|
|
8256
8392
|
strokeWidth: "2"
|
|
8257
8393
|
}
|
|
8258
8394
|
),
|
|
8259
|
-
/* @__PURE__ */
|
|
8395
|
+
/* @__PURE__ */ jsx80(
|
|
8260
8396
|
"rect",
|
|
8261
8397
|
{
|
|
8262
8398
|
x: "40.4746",
|
|
@@ -8269,7 +8405,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs42(SvgIcon6, { ...pro
|
|
|
8269
8405
|
strokeWidth: "2"
|
|
8270
8406
|
}
|
|
8271
8407
|
),
|
|
8272
|
-
/* @__PURE__ */
|
|
8408
|
+
/* @__PURE__ */ jsx80(
|
|
8273
8409
|
"rect",
|
|
8274
8410
|
{
|
|
8275
8411
|
x: "59.8828",
|
|
@@ -8287,8 +8423,8 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs42(SvgIcon6, { ...pro
|
|
|
8287
8423
|
// src/components/icons/ClockIcon.tsx
|
|
8288
8424
|
import { memo as memo4 } from "react";
|
|
8289
8425
|
import { SvgIcon as SvgIcon7 } from "@mui/material";
|
|
8290
|
-
import { jsx as
|
|
8291
|
-
var ClockIcon = memo4((props) => /* @__PURE__ */
|
|
8426
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
8427
|
+
var ClockIcon = memo4((props) => /* @__PURE__ */ jsx81(SvgIcon7, { ...props, viewBox: "0 0 22 22", children: /* @__PURE__ */ jsx81(
|
|
8292
8428
|
"path",
|
|
8293
8429
|
{
|
|
8294
8430
|
fill: "currentColor",
|
|
@@ -8301,9 +8437,9 @@ var ClockIcon = memo4((props) => /* @__PURE__ */ jsx79(SvgIcon7, { ...props, vie
|
|
|
8301
8437
|
// src/components/icons/CloudFlashIcon.tsx
|
|
8302
8438
|
import { memo as memo5 } from "react";
|
|
8303
8439
|
import { SvgIcon as SvgIcon8 } from "@mui/material";
|
|
8304
|
-
import { jsx as
|
|
8305
|
-
var CloudFlashIcon = memo5((props) => /* @__PURE__ */
|
|
8306
|
-
/* @__PURE__ */
|
|
8440
|
+
import { jsx as jsx82, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
8441
|
+
var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs44(SvgIcon8, { ...props, fill: "none", viewBox: "0 0 96 97", children: [
|
|
8442
|
+
/* @__PURE__ */ jsx82(
|
|
8307
8443
|
"path",
|
|
8308
8444
|
{
|
|
8309
8445
|
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",
|
|
@@ -8312,7 +8448,7 @@ var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs43(SvgIcon8, { ...prop
|
|
|
8312
8448
|
strokeWidth: "2"
|
|
8313
8449
|
}
|
|
8314
8450
|
),
|
|
8315
|
-
/* @__PURE__ */
|
|
8451
|
+
/* @__PURE__ */ jsx82(
|
|
8316
8452
|
"path",
|
|
8317
8453
|
{
|
|
8318
8454
|
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",
|
|
@@ -8326,9 +8462,9 @@ var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs43(SvgIcon8, { ...prop
|
|
|
8326
8462
|
// src/components/icons/DecentralizedServerIcon.tsx
|
|
8327
8463
|
import { memo as memo6 } from "react";
|
|
8328
8464
|
import { SvgIcon as SvgIcon9 } from "@mui/material";
|
|
8329
|
-
import { jsx as
|
|
8330
|
-
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */
|
|
8331
|
-
/* @__PURE__ */
|
|
8465
|
+
import { jsx as jsx83, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
8466
|
+
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs45(SvgIcon9, { ...props, viewBox: "0 0 96 97", children: [
|
|
8467
|
+
/* @__PURE__ */ jsx83(
|
|
8332
8468
|
"path",
|
|
8333
8469
|
{
|
|
8334
8470
|
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",
|
|
@@ -8339,7 +8475,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8339
8475
|
strokeLinejoin: "round"
|
|
8340
8476
|
}
|
|
8341
8477
|
),
|
|
8342
|
-
/* @__PURE__ */
|
|
8478
|
+
/* @__PURE__ */ jsx83(
|
|
8343
8479
|
"path",
|
|
8344
8480
|
{
|
|
8345
8481
|
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",
|
|
@@ -8350,7 +8486,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8350
8486
|
strokeLinejoin: "round"
|
|
8351
8487
|
}
|
|
8352
8488
|
),
|
|
8353
|
-
/* @__PURE__ */
|
|
8489
|
+
/* @__PURE__ */ jsx83(
|
|
8354
8490
|
"path",
|
|
8355
8491
|
{
|
|
8356
8492
|
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",
|
|
@@ -8361,7 +8497,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8361
8497
|
strokeLinejoin: "round"
|
|
8362
8498
|
}
|
|
8363
8499
|
),
|
|
8364
|
-
/* @__PURE__ */
|
|
8500
|
+
/* @__PURE__ */ jsx83(
|
|
8365
8501
|
"path",
|
|
8366
8502
|
{
|
|
8367
8503
|
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",
|
|
@@ -8372,7 +8508,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8372
8508
|
strokeLinejoin: "round"
|
|
8373
8509
|
}
|
|
8374
8510
|
),
|
|
8375
|
-
/* @__PURE__ */
|
|
8511
|
+
/* @__PURE__ */ jsx83(
|
|
8376
8512
|
"path",
|
|
8377
8513
|
{
|
|
8378
8514
|
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",
|
|
@@ -8383,7 +8519,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8383
8519
|
strokeLinejoin: "round"
|
|
8384
8520
|
}
|
|
8385
8521
|
),
|
|
8386
|
-
/* @__PURE__ */
|
|
8522
|
+
/* @__PURE__ */ jsx83(
|
|
8387
8523
|
"path",
|
|
8388
8524
|
{
|
|
8389
8525
|
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",
|
|
@@ -8394,7 +8530,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8394
8530
|
strokeLinejoin: "round"
|
|
8395
8531
|
}
|
|
8396
8532
|
),
|
|
8397
|
-
/* @__PURE__ */
|
|
8533
|
+
/* @__PURE__ */ jsx83(
|
|
8398
8534
|
"path",
|
|
8399
8535
|
{
|
|
8400
8536
|
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",
|
|
@@ -8405,7 +8541,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8405
8541
|
strokeLinejoin: "round"
|
|
8406
8542
|
}
|
|
8407
8543
|
),
|
|
8408
|
-
/* @__PURE__ */
|
|
8544
|
+
/* @__PURE__ */ jsx83(
|
|
8409
8545
|
"path",
|
|
8410
8546
|
{
|
|
8411
8547
|
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",
|
|
@@ -8416,7 +8552,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8416
8552
|
strokeLinejoin: "round"
|
|
8417
8553
|
}
|
|
8418
8554
|
),
|
|
8419
|
-
/* @__PURE__ */
|
|
8555
|
+
/* @__PURE__ */ jsx83(
|
|
8420
8556
|
"path",
|
|
8421
8557
|
{
|
|
8422
8558
|
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",
|
|
@@ -8427,7 +8563,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8427
8563
|
strokeLinejoin: "round"
|
|
8428
8564
|
}
|
|
8429
8565
|
),
|
|
8430
|
-
/* @__PURE__ */
|
|
8566
|
+
/* @__PURE__ */ jsx83(
|
|
8431
8567
|
"rect",
|
|
8432
8568
|
{
|
|
8433
8569
|
x: "22.623",
|
|
@@ -8440,7 +8576,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8440
8576
|
strokeWidth: "2"
|
|
8441
8577
|
}
|
|
8442
8578
|
),
|
|
8443
|
-
/* @__PURE__ */
|
|
8579
|
+
/* @__PURE__ */ jsx83(
|
|
8444
8580
|
"rect",
|
|
8445
8581
|
{
|
|
8446
8582
|
x: "22.623",
|
|
@@ -8453,7 +8589,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8453
8589
|
strokeWidth: "2"
|
|
8454
8590
|
}
|
|
8455
8591
|
),
|
|
8456
|
-
/* @__PURE__ */
|
|
8592
|
+
/* @__PURE__ */ jsx83(
|
|
8457
8593
|
"rect",
|
|
8458
8594
|
{
|
|
8459
8595
|
x: "22.623",
|
|
@@ -8466,7 +8602,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8466
8602
|
strokeWidth: "2"
|
|
8467
8603
|
}
|
|
8468
8604
|
),
|
|
8469
|
-
/* @__PURE__ */
|
|
8605
|
+
/* @__PURE__ */ jsx83(
|
|
8470
8606
|
"path",
|
|
8471
8607
|
{
|
|
8472
8608
|
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",
|
|
@@ -8476,7 +8612,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8476
8612
|
strokeMiterlimit: "10"
|
|
8477
8613
|
}
|
|
8478
8614
|
),
|
|
8479
|
-
/* @__PURE__ */
|
|
8615
|
+
/* @__PURE__ */ jsx83(
|
|
8480
8616
|
"path",
|
|
8481
8617
|
{
|
|
8482
8618
|
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",
|
|
@@ -8486,7 +8622,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8486
8622
|
strokeMiterlimit: "10"
|
|
8487
8623
|
}
|
|
8488
8624
|
),
|
|
8489
|
-
/* @__PURE__ */
|
|
8625
|
+
/* @__PURE__ */ jsx83(
|
|
8490
8626
|
"path",
|
|
8491
8627
|
{
|
|
8492
8628
|
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",
|
|
@@ -8501,8 +8637,8 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9,
|
|
|
8501
8637
|
// src/components/icons/DiscordIcon.tsx
|
|
8502
8638
|
import { memo as memo7 } from "react";
|
|
8503
8639
|
import { SvgIcon as SvgIcon10 } from "@mui/material";
|
|
8504
|
-
import { jsx as
|
|
8505
|
-
var DiscordIcon = memo7((props) => /* @__PURE__ */
|
|
8640
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
8641
|
+
var DiscordIcon = memo7((props) => /* @__PURE__ */ jsx84(SvgIcon10, { ...props, viewBox: "0 0 15 12", children: /* @__PURE__ */ jsx84(
|
|
8506
8642
|
"path",
|
|
8507
8643
|
{
|
|
8508
8644
|
fill: "currentColor",
|
|
@@ -8513,16 +8649,16 @@ var DiscordIcon = memo7((props) => /* @__PURE__ */ jsx82(SvgIcon10, { ...props,
|
|
|
8513
8649
|
// src/components/icons/DownloadIcon.tsx
|
|
8514
8650
|
import { memo as memo8 } from "react";
|
|
8515
8651
|
import { SvgIcon as SvgIcon11 } from "@mui/material";
|
|
8516
|
-
import { jsx as
|
|
8517
|
-
var DownloadIcon = memo8((props) => /* @__PURE__ */
|
|
8518
|
-
/* @__PURE__ */
|
|
8652
|
+
import { jsx as jsx85, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
8653
|
+
var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs46(SvgIcon11, { ...props, viewBox: "0 0 17 16", fill: "none", children: [
|
|
8654
|
+
/* @__PURE__ */ jsx85(
|
|
8519
8655
|
"path",
|
|
8520
8656
|
{
|
|
8521
8657
|
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",
|
|
8522
8658
|
fill: "currentColor"
|
|
8523
8659
|
}
|
|
8524
8660
|
),
|
|
8525
|
-
/* @__PURE__ */
|
|
8661
|
+
/* @__PURE__ */ jsx85(
|
|
8526
8662
|
"path",
|
|
8527
8663
|
{
|
|
8528
8664
|
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",
|
|
@@ -8534,11 +8670,11 @@ var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs45(SvgIcon11, { ...props
|
|
|
8534
8670
|
// src/components/icons/FilledFolderIcon.tsx
|
|
8535
8671
|
import { memo as memo9 } from "react";
|
|
8536
8672
|
import { SvgIcon as SvgIcon12 } from "@mui/material";
|
|
8537
|
-
import { jsx as
|
|
8538
|
-
var FilledFolderIcon = memo9((props) => /* @__PURE__ */
|
|
8539
|
-
/* @__PURE__ */
|
|
8540
|
-
/* @__PURE__ */
|
|
8541
|
-
/* @__PURE__ */
|
|
8673
|
+
import { jsx as jsx86, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
8674
|
+
var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs47(SvgIcon12, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
8675
|
+
/* @__PURE__ */ jsx86("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#FCF8EC" }),
|
|
8676
|
+
/* @__PURE__ */ jsx86("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E1B43E" }),
|
|
8677
|
+
/* @__PURE__ */ jsx86(
|
|
8542
8678
|
"path",
|
|
8543
8679
|
{
|
|
8544
8680
|
fillRule: "evenodd",
|
|
@@ -8552,11 +8688,11 @@ var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs46(SvgIcon12, { sx:
|
|
|
8552
8688
|
// src/components/icons/FolderIcon.tsx
|
|
8553
8689
|
import { memo as memo10 } from "react";
|
|
8554
8690
|
import { SvgIcon as SvgIcon13 } from "@mui/material";
|
|
8555
|
-
import { jsx as
|
|
8556
|
-
var FolderIcon = memo10((props) => /* @__PURE__ */
|
|
8557
|
-
/* @__PURE__ */
|
|
8558
|
-
/* @__PURE__ */
|
|
8559
|
-
/* @__PURE__ */
|
|
8691
|
+
import { jsx as jsx87, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
8692
|
+
var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs48(SvgIcon13, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
8693
|
+
/* @__PURE__ */ jsx87("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#F5F7FA" }),
|
|
8694
|
+
/* @__PURE__ */ jsx87("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E6E6E6" }),
|
|
8695
|
+
/* @__PURE__ */ jsx87(
|
|
8560
8696
|
"path",
|
|
8561
8697
|
{
|
|
8562
8698
|
fillRule: "evenodd",
|
|
@@ -8572,16 +8708,16 @@ var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs47(SvgIcon13, { sx: { fil
|
|
|
8572
8708
|
// src/components/icons/GithubLogoIcon.tsx
|
|
8573
8709
|
import { memo as memo11 } from "react";
|
|
8574
8710
|
import { SvgIcon as SvgIcon14 } from "@mui/material";
|
|
8575
|
-
import { jsx as
|
|
8576
|
-
var GithubLogoIcon = memo11((props) => /* @__PURE__ */
|
|
8577
|
-
/* @__PURE__ */
|
|
8711
|
+
import { jsx as jsx88, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8712
|
+
var GithubLogoIcon = memo11((props) => /* @__PURE__ */ jsxs49(SvgIcon14, { ...props, viewBox: "0 0 17 16", sx: { fill: "none" }, children: [
|
|
8713
|
+
/* @__PURE__ */ jsx88(
|
|
8578
8714
|
"path",
|
|
8579
8715
|
{
|
|
8580
8716
|
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",
|
|
8581
8717
|
fill: "white"
|
|
8582
8718
|
}
|
|
8583
8719
|
),
|
|
8584
|
-
/* @__PURE__ */
|
|
8720
|
+
/* @__PURE__ */ jsx88(
|
|
8585
8721
|
"path",
|
|
8586
8722
|
{
|
|
8587
8723
|
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",
|
|
@@ -8593,8 +8729,8 @@ var GithubLogoIcon = memo11((props) => /* @__PURE__ */ jsxs48(SvgIcon14, { ...pr
|
|
|
8593
8729
|
// src/components/icons/ShareIcon.tsx
|
|
8594
8730
|
import { memo as memo12 } from "react";
|
|
8595
8731
|
import { SvgIcon as SvgIcon15 } from "@mui/material";
|
|
8596
|
-
import { jsx as
|
|
8597
|
-
var ShareIcon = memo12((props) => /* @__PURE__ */
|
|
8732
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
8733
|
+
var ShareIcon = memo12((props) => /* @__PURE__ */ jsx89(SvgIcon15, { ...props, viewBox: "0 0 17 16", fill: "none", children: /* @__PURE__ */ jsx89(
|
|
8598
8734
|
"path",
|
|
8599
8735
|
{
|
|
8600
8736
|
fillRule: "evenodd",
|
|
@@ -8607,9 +8743,9 @@ var ShareIcon = memo12((props) => /* @__PURE__ */ jsx87(SvgIcon15, { ...props, v
|
|
|
8607
8743
|
// src/components/icons/StorageAppIcon.tsx
|
|
8608
8744
|
import { memo as memo13 } from "react";
|
|
8609
8745
|
import { SvgIcon as SvgIcon16 } from "@mui/material";
|
|
8610
|
-
import { jsx as
|
|
8611
|
-
var StorageAppIcon = memo13((props) => /* @__PURE__ */
|
|
8612
|
-
/* @__PURE__ */
|
|
8746
|
+
import { jsx as jsx90, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8747
|
+
var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs50(SvgIcon16, { ...props, viewBox: "0 0 38 29", fill: "none", children: [
|
|
8748
|
+
/* @__PURE__ */ jsx90(
|
|
8613
8749
|
"path",
|
|
8614
8750
|
{
|
|
8615
8751
|
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",
|
|
@@ -8618,7 +8754,7 @@ var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs49(SvgIcon16, { ...pr
|
|
|
8618
8754
|
fill: "none"
|
|
8619
8755
|
}
|
|
8620
8756
|
),
|
|
8621
|
-
/* @__PURE__ */
|
|
8757
|
+
/* @__PURE__ */ jsx90(
|
|
8622
8758
|
"path",
|
|
8623
8759
|
{
|
|
8624
8760
|
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",
|
|
@@ -8632,8 +8768,8 @@ var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs49(SvgIcon16, { ...pr
|
|
|
8632
8768
|
// src/components/icons/UploadFileIcon.tsx
|
|
8633
8769
|
import { memo as memo14 } from "react";
|
|
8634
8770
|
import { SvgIcon as SvgIcon17 } from "@mui/material";
|
|
8635
|
-
import { jsx as
|
|
8636
|
-
var UploadFileIcon = memo14((props) => /* @__PURE__ */
|
|
8771
|
+
import { jsx as jsx91 } from "react/jsx-runtime";
|
|
8772
|
+
var UploadFileIcon = memo14((props) => /* @__PURE__ */ jsx91(SvgIcon17, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx91(
|
|
8637
8773
|
"path",
|
|
8638
8774
|
{
|
|
8639
8775
|
fillRule: "evenodd",
|
|
@@ -8648,8 +8784,8 @@ var UploadFileIcon = memo14((props) => /* @__PURE__ */ jsx89(SvgIcon17, { ...pro
|
|
|
8648
8784
|
// src/components/icons/UploadFolderIcon.tsx
|
|
8649
8785
|
import { memo as memo15 } from "react";
|
|
8650
8786
|
import { SvgIcon as SvgIcon18 } from "@mui/material";
|
|
8651
|
-
import { jsx as
|
|
8652
|
-
var UploadFolderIcon = memo15((props) => /* @__PURE__ */
|
|
8787
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
8788
|
+
var UploadFolderIcon = memo15((props) => /* @__PURE__ */ jsx92(SvgIcon18, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx92(
|
|
8653
8789
|
"path",
|
|
8654
8790
|
{
|
|
8655
8791
|
fillRule: "evenodd",
|
|
@@ -8662,14 +8798,14 @@ var UploadFolderIcon = memo15((props) => /* @__PURE__ */ jsx90(SvgIcon18, { ...p
|
|
|
8662
8798
|
) }));
|
|
8663
8799
|
|
|
8664
8800
|
// src/components/utilities/Markdown/Markdown.tsx
|
|
8665
|
-
import { Box as
|
|
8801
|
+
import { Box as Box34, styled as styled43 } from "@mui/material";
|
|
8666
8802
|
import "highlight.js/styles/github.css";
|
|
8667
8803
|
import "github-markdown-css/github-markdown-light.css";
|
|
8668
8804
|
import MD from "react-markdown";
|
|
8669
8805
|
import highlight from "rehype-highlight";
|
|
8670
8806
|
import rehypeRaw from "rehype-raw";
|
|
8671
|
-
import { jsx as
|
|
8672
|
-
var Content = styled43(
|
|
8807
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
8808
|
+
var Content = styled43(Box34)(({ theme: theme2 }) => ({
|
|
8673
8809
|
backgroundColor: "transparent",
|
|
8674
8810
|
...theme2.typography.body1,
|
|
8675
8811
|
color: theme2.palette.text.primary,
|
|
@@ -8686,11 +8822,11 @@ var Content = styled43(Box32)(({ theme: theme2 }) => ({
|
|
|
8686
8822
|
backgroundColor: theme2.palette.background.paper
|
|
8687
8823
|
}
|
|
8688
8824
|
}));
|
|
8689
|
-
var Markdown = ({ content, children }) => /* @__PURE__ */
|
|
8825
|
+
var Markdown = ({ content, children }) => /* @__PURE__ */ jsx93(Content, { className: "markdown-body", children: /* @__PURE__ */ jsx93(MD, { rehypePlugins: [highlight, rehypeRaw], children: content || children }) });
|
|
8690
8826
|
|
|
8691
8827
|
// src/components/utilities/OnboardingProvider/OnboardingProvider.tsx
|
|
8692
8828
|
import { createContext, useContext, useState as useState12, useCallback as useCallback5, useEffect as useEffect6 } from "react";
|
|
8693
|
-
import { jsx as
|
|
8829
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
8694
8830
|
var OnboardingContext = createContext(void 0);
|
|
8695
8831
|
var useOnboarding = () => {
|
|
8696
8832
|
const context = useContext(OnboardingContext);
|
|
@@ -8715,7 +8851,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
8715
8851
|
setIsOnboardingActive(false);
|
|
8716
8852
|
setTimeout(() => setIsOnboardingActive(true), 0);
|
|
8717
8853
|
}, []);
|
|
8718
|
-
return /* @__PURE__ */
|
|
8854
|
+
return /* @__PURE__ */ jsx94(
|
|
8719
8855
|
OnboardingContext.Provider,
|
|
8720
8856
|
{
|
|
8721
8857
|
value: {
|
|
@@ -8730,7 +8866,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
8730
8866
|
};
|
|
8731
8867
|
|
|
8732
8868
|
// src/components/utilities/Truncate/Truncate.tsx
|
|
8733
|
-
import { jsx as
|
|
8869
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
8734
8870
|
var getDefaultEndingLength = ({ text, variant, maxLength = text.length }) => {
|
|
8735
8871
|
if (variant === "hex") {
|
|
8736
8872
|
return 4;
|
|
@@ -8754,30 +8890,30 @@ var Truncate = ({
|
|
|
8754
8890
|
const truncated = text.slice(0, maxLength - endingLength);
|
|
8755
8891
|
truncatedText = [truncated, ending].filter(Boolean).join("...");
|
|
8756
8892
|
}
|
|
8757
|
-
return /* @__PURE__ */
|
|
8893
|
+
return /* @__PURE__ */ jsx95("span", { ...props, "data-full": text, children: truncatedText });
|
|
8758
8894
|
};
|
|
8759
8895
|
|
|
8760
8896
|
// src/components/utilities/BytesSize/BytesSize.tsx
|
|
8761
8897
|
import size from "byte-size";
|
|
8762
|
-
import { Fragment as Fragment14, jsx as
|
|
8898
|
+
import { Fragment as Fragment14, jsx as jsx96 } from "react/jsx-runtime";
|
|
8763
8899
|
var BytesSize = ({ bytes }) => {
|
|
8764
|
-
return /* @__PURE__ */
|
|
8900
|
+
return /* @__PURE__ */ jsx96(Fragment14, { children: size(bytes).toString() });
|
|
8765
8901
|
};
|
|
8766
8902
|
|
|
8767
8903
|
// src/components/utilities/QRCode/QRCode.tsx
|
|
8768
8904
|
import { forwardRef as forwardRef3 } from "react";
|
|
8769
8905
|
import QR from "react-qr-code";
|
|
8770
|
-
import { jsx as
|
|
8771
|
-
var QRCode = forwardRef3(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */
|
|
8906
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
8907
|
+
var QRCode = forwardRef3(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */ jsx97(QR, { ref, size: size3, ...props }));
|
|
8772
8908
|
QRCode.displayName = "QRCode";
|
|
8773
8909
|
|
|
8774
8910
|
// src/components/charts/ChartWidget/ChartWidget.tsx
|
|
8775
|
-
import { Box as
|
|
8911
|
+
import { Box as Box35, Stack as Stack5, Typography as Typography28, styled as styled44, useTheme as useTheme9 } from "@mui/material";
|
|
8776
8912
|
import { LineChart } from "@mui/x-charts";
|
|
8777
8913
|
import size2 from "byte-size";
|
|
8778
8914
|
import { format } from "date-fns";
|
|
8779
|
-
import { jsx as
|
|
8780
|
-
var Chart = styled44(
|
|
8915
|
+
import { jsx as jsx98, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8916
|
+
var Chart = styled44(Box35)(() => ({
|
|
8781
8917
|
height: 200
|
|
8782
8918
|
}));
|
|
8783
8919
|
var ChartWidget = ({
|
|
@@ -8787,10 +8923,10 @@ var ChartWidget = ({
|
|
|
8787
8923
|
formatValue = (value2) => size2(value2 || 0).toString()
|
|
8788
8924
|
}) => {
|
|
8789
8925
|
const theme2 = useTheme9();
|
|
8790
|
-
return /* @__PURE__ */
|
|
8791
|
-
/* @__PURE__ */
|
|
8792
|
-
/* @__PURE__ */
|
|
8793
|
-
/* @__PURE__ */
|
|
8926
|
+
return /* @__PURE__ */ jsxs51(Stack5, { spacing: 1, children: [
|
|
8927
|
+
/* @__PURE__ */ jsx98(Typography28, { variant: "caption", color: "text.secondary", children: title }),
|
|
8928
|
+
/* @__PURE__ */ jsx98(Typography28, { fontWeight: "bold", children: value }),
|
|
8929
|
+
/* @__PURE__ */ jsx98(Chart, { children: /* @__PURE__ */ jsx98(
|
|
8794
8930
|
LineChart,
|
|
8795
8931
|
{
|
|
8796
8932
|
dataset: history || [],
|
|
@@ -8848,11 +8984,11 @@ var ChartWidget = ({
|
|
|
8848
8984
|
import { format as format2, startOfDay, subHours, subWeeks, subMonths } from "date-fns";
|
|
8849
8985
|
import { LineChart as LineChart2 } from "@mui/x-charts";
|
|
8850
8986
|
import { useDrawingArea, useYScale } from "@mui/x-charts/hooks";
|
|
8851
|
-
import { Box as
|
|
8987
|
+
import { Box as Box36, Card as Card2, CardHeader as CardHeader2, CardMedia as CardMedia2, Divider as Divider10, Stack as Stack6, styled as styled45, Typography as Typography29, useTheme as useTheme10 } from "@mui/material";
|
|
8852
8988
|
|
|
8853
8989
|
// src/components/charts/MetricsChart/PeriodSelect.tsx
|
|
8854
8990
|
import { MenuItem as MenuItem3, TextField as TextField4 } from "@mui/material";
|
|
8855
|
-
import { jsx as
|
|
8991
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
8856
8992
|
var options = [
|
|
8857
8993
|
/**
|
|
8858
8994
|
* TODO: Enable the options below when the backend supports them
|
|
@@ -8862,7 +8998,7 @@ var options = [
|
|
|
8862
8998
|
{ value: "week", label: "1 week" },
|
|
8863
8999
|
{ value: "month", label: "1 month" }
|
|
8864
9000
|
];
|
|
8865
|
-
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */
|
|
9001
|
+
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ jsx99(
|
|
8866
9002
|
TextField4,
|
|
8867
9003
|
{
|
|
8868
9004
|
select: true,
|
|
@@ -8870,13 +9006,13 @@ var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ jsx97(
|
|
|
8870
9006
|
value,
|
|
8871
9007
|
defaultValue: options[0].value,
|
|
8872
9008
|
onChange: (e) => onChange?.(e.target.value),
|
|
8873
|
-
children: options.map(({ value: value2, label }) => /* @__PURE__ */
|
|
9009
|
+
children: options.map(({ value: value2, label }) => /* @__PURE__ */ jsx99(MenuItem3, { value: value2, children: label }, value2))
|
|
8874
9010
|
}
|
|
8875
9011
|
);
|
|
8876
9012
|
|
|
8877
9013
|
// src/components/charts/MetricsChart/MetricsChart.tsx
|
|
8878
9014
|
import { useMemo, useState as useState13 } from "react";
|
|
8879
|
-
import { jsx as
|
|
9015
|
+
import { jsx as jsx100, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8880
9016
|
var mapPeriodToFromDate = (period = "month") => {
|
|
8881
9017
|
const date = /* @__PURE__ */ new Date();
|
|
8882
9018
|
if (period === "hour") {
|
|
@@ -8936,15 +9072,15 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
8936
9072
|
const backgroundHeight = textHeight + padding.top + padding.bottom;
|
|
8937
9073
|
const rectX = left + (width - backgroundWidth) / 2;
|
|
8938
9074
|
const rectY = top + (height - backgroundHeight) / 2;
|
|
8939
|
-
return /* @__PURE__ */
|
|
8940
|
-
/* @__PURE__ */
|
|
8941
|
-
/* @__PURE__ */
|
|
9075
|
+
return /* @__PURE__ */ jsxs52("g", { children: [
|
|
9076
|
+
/* @__PURE__ */ jsx100(NoDataRect, { x: rectX, y: rectY, width: backgroundWidth, height: backgroundHeight }),
|
|
9077
|
+
/* @__PURE__ */ jsx100(LoadingText, { style: { ...theme2.typography.subtitle1 }, x: left + width / 2, y: top + height / 2, children: text })
|
|
8942
9078
|
] });
|
|
8943
9079
|
};
|
|
8944
|
-
return /* @__PURE__ */
|
|
8945
|
-
/* @__PURE__ */
|
|
8946
|
-
/* @__PURE__ */
|
|
8947
|
-
/* @__PURE__ */
|
|
9080
|
+
return /* @__PURE__ */ jsxs52(Card2, { children: [
|
|
9081
|
+
/* @__PURE__ */ jsx100(CardHeader2, { title: "GET / PUT Requests", action: /* @__PURE__ */ jsx100(PeriodSelect, { value: period, onChange: setPeriod }) }),
|
|
9082
|
+
/* @__PURE__ */ jsxs52(CardMedia2, { children: [
|
|
9083
|
+
/* @__PURE__ */ jsx100(
|
|
8948
9084
|
Chart2,
|
|
8949
9085
|
{
|
|
8950
9086
|
skipAnimation: true,
|
|
@@ -9005,35 +9141,35 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
9005
9141
|
]
|
|
9006
9142
|
}
|
|
9007
9143
|
),
|
|
9008
|
-
periodHistory.length > 0 && /* @__PURE__ */
|
|
9009
|
-
/* @__PURE__ */
|
|
9010
|
-
/* @__PURE__ */
|
|
9011
|
-
/* @__PURE__ */
|
|
9144
|
+
periodHistory.length > 0 && /* @__PURE__ */ jsxs52(Stack6, { direction: "row", spacing: 2, marginY: 3, justifyContent: "center", children: [
|
|
9145
|
+
/* @__PURE__ */ jsxs52(Stack6, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
9146
|
+
/* @__PURE__ */ jsx100(Box36, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.primary.main } }),
|
|
9147
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", children: "Get" })
|
|
9012
9148
|
] }),
|
|
9013
|
-
/* @__PURE__ */
|
|
9014
|
-
/* @__PURE__ */
|
|
9015
|
-
/* @__PURE__ */
|
|
9149
|
+
/* @__PURE__ */ jsxs52(Stack6, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
9150
|
+
/* @__PURE__ */ jsx100(Box36, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.success.main } }),
|
|
9151
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", children: "Put" })
|
|
9016
9152
|
] })
|
|
9017
9153
|
] })
|
|
9018
9154
|
] }),
|
|
9019
|
-
/* @__PURE__ */
|
|
9020
|
-
/* @__PURE__ */
|
|
9021
|
-
/* @__PURE__ */
|
|
9022
|
-
/* @__PURE__ */
|
|
9023
|
-
/* @__PURE__ */
|
|
9024
|
-
/* @__PURE__ */
|
|
9155
|
+
/* @__PURE__ */ jsxs52(CardMedia2, { children: [
|
|
9156
|
+
/* @__PURE__ */ jsx100(Divider10, { flexItem: true }),
|
|
9157
|
+
/* @__PURE__ */ jsxs52(Stack6, { direction: "row", spacing: 2, padding: 2, children: [
|
|
9158
|
+
/* @__PURE__ */ jsxs52(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9159
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "GET Requests per account" }),
|
|
9160
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: total.gets })
|
|
9025
9161
|
] }),
|
|
9026
|
-
/* @__PURE__ */
|
|
9027
|
-
/* @__PURE__ */
|
|
9028
|
-
/* @__PURE__ */
|
|
9162
|
+
/* @__PURE__ */ jsxs52(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9163
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "PUT Requests per account" }),
|
|
9164
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: total.puts })
|
|
9029
9165
|
] }),
|
|
9030
|
-
/* @__PURE__ */
|
|
9031
|
-
/* @__PURE__ */
|
|
9032
|
-
/* @__PURE__ */
|
|
9166
|
+
/* @__PURE__ */ jsxs52(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9167
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "Total Consumed per account" }),
|
|
9168
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: /* @__PURE__ */ jsx100(BytesSize, { bytes: total.transferredBytes }) })
|
|
9033
9169
|
] }),
|
|
9034
|
-
/* @__PURE__ */
|
|
9035
|
-
/* @__PURE__ */
|
|
9036
|
-
/* @__PURE__ */
|
|
9170
|
+
/* @__PURE__ */ jsxs52(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9171
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "Total Stored per account" }),
|
|
9172
|
+
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: /* @__PURE__ */ jsx100(BytesSize, { bytes: total.storedBytes }) })
|
|
9037
9173
|
] })
|
|
9038
9174
|
] })
|
|
9039
9175
|
] })
|
|
@@ -9043,14 +9179,14 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
9043
9179
|
// src/components/charts/TimeSeriesGraph/TimeSeriesGraph.tsx
|
|
9044
9180
|
import { useCallback as useCallback6, useMemo as useMemo2, useState as useState14 } from "react";
|
|
9045
9181
|
import {
|
|
9046
|
-
Box as
|
|
9182
|
+
Box as Box37,
|
|
9047
9183
|
Card as Card3,
|
|
9048
9184
|
CardHeader as CardHeader3,
|
|
9049
9185
|
CardMedia as CardMedia3,
|
|
9050
9186
|
CircularProgress as CircularProgress7,
|
|
9051
9187
|
Divider as Divider11,
|
|
9052
9188
|
Stack as Stack8,
|
|
9053
|
-
Typography as
|
|
9189
|
+
Typography as Typography31,
|
|
9054
9190
|
styled as styled46,
|
|
9055
9191
|
useTheme as useTheme11
|
|
9056
9192
|
} from "@mui/material";
|
|
@@ -9059,8 +9195,8 @@ import { format as format3 } from "date-fns";
|
|
|
9059
9195
|
|
|
9060
9196
|
// src/components/charts/TimeSeriesGraph/TimeRangeSelect.tsx
|
|
9061
9197
|
import { MenuItem as MenuItem4, TextField as TextField5 } from "@mui/material";
|
|
9062
|
-
import { jsx as
|
|
9063
|
-
var TimeRangeSelect = ({ options: options2, value, onChange }) => /* @__PURE__ */
|
|
9198
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
|
9199
|
+
var TimeRangeSelect = ({ options: options2, value, onChange }) => /* @__PURE__ */ jsx101(
|
|
9064
9200
|
TextField5,
|
|
9065
9201
|
{
|
|
9066
9202
|
select: true,
|
|
@@ -9069,13 +9205,13 @@ var TimeRangeSelect = ({ options: options2, value, onChange }) => /* @__PURE__ *
|
|
|
9069
9205
|
onChange: (e) => onChange?.(e.target.value),
|
|
9070
9206
|
"aria-label": "Time range selector",
|
|
9071
9207
|
sx: { minWidth: 120 },
|
|
9072
|
-
children: options2.map((option) => /* @__PURE__ */
|
|
9208
|
+
children: options2.map((option) => /* @__PURE__ */ jsx101(MenuItem4, { value: option.value, children: option.label }, option.value))
|
|
9073
9209
|
}
|
|
9074
9210
|
);
|
|
9075
9211
|
|
|
9076
9212
|
// src/components/charts/TimeSeriesGraph/SummaryStats.tsx
|
|
9077
|
-
import { Stack as Stack7, Typography as
|
|
9078
|
-
import { jsx as
|
|
9213
|
+
import { Stack as Stack7, Typography as Typography30 } from "@mui/material";
|
|
9214
|
+
import { jsx as jsx102, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
9079
9215
|
var formatSummaryValue = (value, unit) => {
|
|
9080
9216
|
const displayValue = typeof value === "number" ? value.toLocaleString() : value;
|
|
9081
9217
|
return unit ? `${displayValue} ${unit}` : displayValue;
|
|
@@ -9084,7 +9220,7 @@ var SummaryStats = ({ items }) => {
|
|
|
9084
9220
|
if (items.length === 0) {
|
|
9085
9221
|
return null;
|
|
9086
9222
|
}
|
|
9087
|
-
return /* @__PURE__ */
|
|
9223
|
+
return /* @__PURE__ */ jsx102(
|
|
9088
9224
|
Stack7,
|
|
9089
9225
|
{
|
|
9090
9226
|
direction: "row",
|
|
@@ -9094,7 +9230,7 @@ var SummaryStats = ({ items }) => {
|
|
|
9094
9230
|
useFlexGap: true,
|
|
9095
9231
|
role: "list",
|
|
9096
9232
|
"aria-label": "Summary statistics",
|
|
9097
|
-
children: items.map((item) => /* @__PURE__ */
|
|
9233
|
+
children: items.map((item) => /* @__PURE__ */ jsxs53(
|
|
9098
9234
|
Stack7,
|
|
9099
9235
|
{
|
|
9100
9236
|
direction: "row",
|
|
@@ -9102,8 +9238,8 @@ var SummaryStats = ({ items }) => {
|
|
|
9102
9238
|
spacing: 1,
|
|
9103
9239
|
role: "listitem",
|
|
9104
9240
|
children: [
|
|
9105
|
-
/* @__PURE__ */
|
|
9106
|
-
/* @__PURE__ */
|
|
9241
|
+
/* @__PURE__ */ jsx102(Typography30, { variant: "body2", color: "text.secondary", children: item.label }),
|
|
9242
|
+
/* @__PURE__ */ jsx102(Typography30, { variant: "h5", fontWeight: 600, children: formatSummaryValue(item.value, item.unit) })
|
|
9107
9243
|
]
|
|
9108
9244
|
},
|
|
9109
9245
|
item.label
|
|
@@ -9113,12 +9249,12 @@ var SummaryStats = ({ items }) => {
|
|
|
9113
9249
|
};
|
|
9114
9250
|
|
|
9115
9251
|
// src/components/charts/TimeSeriesGraph/TimeSeriesGraph.tsx
|
|
9116
|
-
import { Fragment as Fragment15, jsx as
|
|
9117
|
-
var ChartContainer = styled46(
|
|
9252
|
+
import { Fragment as Fragment15, jsx as jsx103, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
9253
|
+
var ChartContainer = styled46(Box37)({
|
|
9118
9254
|
position: "relative",
|
|
9119
9255
|
height: 320
|
|
9120
9256
|
});
|
|
9121
|
-
var LoadingOverlay = styled46(
|
|
9257
|
+
var LoadingOverlay = styled46(Box37)(({ theme: theme2 }) => ({
|
|
9122
9258
|
position: "absolute",
|
|
9123
9259
|
inset: 0,
|
|
9124
9260
|
display: "flex",
|
|
@@ -9128,7 +9264,7 @@ var LoadingOverlay = styled46(Box35)(({ theme: theme2 }) => ({
|
|
|
9128
9264
|
zIndex: 1,
|
|
9129
9265
|
borderRadius: theme2.shape.borderRadius
|
|
9130
9266
|
}));
|
|
9131
|
-
var LegendDot = styled46(
|
|
9267
|
+
var LegendDot = styled46(Box37, {
|
|
9132
9268
|
shouldForwardProp: (prop) => prop !== "dotColor"
|
|
9133
9269
|
})(({ dotColor }) => ({
|
|
9134
9270
|
width: 14,
|
|
@@ -9217,9 +9353,9 @@ var TimeSeriesGraph = ({
|
|
|
9217
9353
|
);
|
|
9218
9354
|
const hasData = dataset.length > 0;
|
|
9219
9355
|
const shouldShowSummary = showSummary && summaryItems && summaryItems.length > 0;
|
|
9220
|
-
const headerActionElement = /* @__PURE__ */
|
|
9356
|
+
const headerActionElement = /* @__PURE__ */ jsxs54(Stack8, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
9221
9357
|
headerAction,
|
|
9222
|
-
timeRangeOptions && timeRangeOptions.length > 0 && /* @__PURE__ */
|
|
9358
|
+
timeRangeOptions && timeRangeOptions.length > 0 && /* @__PURE__ */ jsx103(
|
|
9223
9359
|
TimeRangeSelect,
|
|
9224
9360
|
{
|
|
9225
9361
|
options: timeRangeOptions,
|
|
@@ -9229,13 +9365,13 @@ var TimeSeriesGraph = ({
|
|
|
9229
9365
|
)
|
|
9230
9366
|
] });
|
|
9231
9367
|
const showHeader = !!title || !!headerAction || timeRangeOptions && timeRangeOptions.length > 0;
|
|
9232
|
-
return /* @__PURE__ */
|
|
9368
|
+
return /* @__PURE__ */ jsxs54(
|
|
9233
9369
|
Card3,
|
|
9234
9370
|
{
|
|
9235
9371
|
"aria-label": title ? `Line chart showing ${title}` : "Line chart",
|
|
9236
9372
|
role: "figure",
|
|
9237
9373
|
children: [
|
|
9238
|
-
showHeader && /* @__PURE__ */
|
|
9374
|
+
showHeader && /* @__PURE__ */ jsx103(
|
|
9239
9375
|
CardHeader3,
|
|
9240
9376
|
{
|
|
9241
9377
|
title,
|
|
@@ -9246,10 +9382,10 @@ var TimeSeriesGraph = ({
|
|
|
9246
9382
|
action: headerActionElement
|
|
9247
9383
|
}
|
|
9248
9384
|
),
|
|
9249
|
-
/* @__PURE__ */
|
|
9250
|
-
/* @__PURE__ */
|
|
9251
|
-
loading && /* @__PURE__ */
|
|
9252
|
-
/* @__PURE__ */
|
|
9385
|
+
/* @__PURE__ */ jsxs54(CardMedia3, { children: [
|
|
9386
|
+
/* @__PURE__ */ jsxs54(ChartContainer, { children: [
|
|
9387
|
+
loading && /* @__PURE__ */ jsx103(LoadingOverlay, { role: "status", "aria-label": "Loading chart data", children: /* @__PURE__ */ jsx103(CircularProgress7, { size: 40 }) }),
|
|
9388
|
+
/* @__PURE__ */ jsx103(
|
|
9253
9389
|
LineChart3,
|
|
9254
9390
|
{
|
|
9255
9391
|
dataset,
|
|
@@ -9301,7 +9437,7 @@ var TimeSeriesGraph = ({
|
|
|
9301
9437
|
}
|
|
9302
9438
|
)
|
|
9303
9439
|
] }),
|
|
9304
|
-
series.length > 0 && /* @__PURE__ */
|
|
9440
|
+
series.length > 0 && /* @__PURE__ */ jsx103(
|
|
9305
9441
|
Stack8,
|
|
9306
9442
|
{
|
|
9307
9443
|
direction: "row",
|
|
@@ -9314,7 +9450,7 @@ var TimeSeriesGraph = ({
|
|
|
9314
9450
|
"aria-label": "Chart legend",
|
|
9315
9451
|
children: series.map((s) => {
|
|
9316
9452
|
const isHidden = hiddenSeries.has(s.name);
|
|
9317
|
-
return /* @__PURE__ */
|
|
9453
|
+
return /* @__PURE__ */ jsxs54(
|
|
9318
9454
|
Stack8,
|
|
9319
9455
|
{
|
|
9320
9456
|
direction: "row",
|
|
@@ -9331,8 +9467,8 @@ var TimeSeriesGraph = ({
|
|
|
9331
9467
|
"aria-pressed": !isHidden,
|
|
9332
9468
|
"aria-label": `Toggle ${s.name} visibility`,
|
|
9333
9469
|
children: [
|
|
9334
|
-
/* @__PURE__ */
|
|
9335
|
-
/* @__PURE__ */
|
|
9470
|
+
/* @__PURE__ */ jsx103(LegendDot, { dotColor: s.color }),
|
|
9471
|
+
/* @__PURE__ */ jsx103(Typography31, { variant: "body2", children: s.name })
|
|
9336
9472
|
]
|
|
9337
9473
|
},
|
|
9338
9474
|
s.name
|
|
@@ -9341,9 +9477,9 @@ var TimeSeriesGraph = ({
|
|
|
9341
9477
|
}
|
|
9342
9478
|
)
|
|
9343
9479
|
] }),
|
|
9344
|
-
shouldShowSummary && /* @__PURE__ */
|
|
9345
|
-
/* @__PURE__ */
|
|
9346
|
-
/* @__PURE__ */
|
|
9480
|
+
shouldShowSummary && /* @__PURE__ */ jsxs54(Fragment15, { children: [
|
|
9481
|
+
/* @__PURE__ */ jsx103(Divider11, {}),
|
|
9482
|
+
/* @__PURE__ */ jsx103(SummaryStats, { items: summaryItems })
|
|
9347
9483
|
] })
|
|
9348
9484
|
]
|
|
9349
9485
|
}
|
|
@@ -9360,10 +9496,10 @@ import ReactFlow, {
|
|
|
9360
9496
|
BackgroundVariant,
|
|
9361
9497
|
ConnectionLineType
|
|
9362
9498
|
} from "reactflow";
|
|
9363
|
-
import { Box as
|
|
9499
|
+
import { Box as Box38 } from "@mui/material";
|
|
9364
9500
|
import { useTheme as useTheme12 } from "@mui/material/styles";
|
|
9365
9501
|
import { Background as Background2, Controls as Controls2, MiniMap as MiniMap2, Panel, BackgroundVariant as BackgroundVariant2, ConnectionLineType as ConnectionLineType2 } from "reactflow";
|
|
9366
|
-
import { jsx as
|
|
9502
|
+
import { jsx as jsx104, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
9367
9503
|
var FlowEditor = ({
|
|
9368
9504
|
nodes,
|
|
9369
9505
|
edges,
|
|
@@ -9394,8 +9530,8 @@ var FlowEditor = ({
|
|
|
9394
9530
|
[onInit]
|
|
9395
9531
|
);
|
|
9396
9532
|
const { sx: containerSx, ...restContainerProps } = containerProps ?? {};
|
|
9397
|
-
return /* @__PURE__ */
|
|
9398
|
-
|
|
9533
|
+
return /* @__PURE__ */ jsx104(ReactFlowProvider, { children: /* @__PURE__ */ jsx104(
|
|
9534
|
+
Box38,
|
|
9399
9535
|
{
|
|
9400
9536
|
sx: [
|
|
9401
9537
|
{
|
|
@@ -9409,7 +9545,7 @@ var FlowEditor = ({
|
|
|
9409
9545
|
...Array.isArray(containerSx) ? containerSx : [containerSx]
|
|
9410
9546
|
],
|
|
9411
9547
|
...restContainerProps,
|
|
9412
|
-
children: /* @__PURE__ */
|
|
9548
|
+
children: /* @__PURE__ */ jsxs55(
|
|
9413
9549
|
ReactFlow,
|
|
9414
9550
|
{
|
|
9415
9551
|
nodes,
|
|
@@ -9432,7 +9568,7 @@ var FlowEditor = ({
|
|
|
9432
9568
|
},
|
|
9433
9569
|
...reactFlowProps,
|
|
9434
9570
|
children: [
|
|
9435
|
-
showBackground && /* @__PURE__ */
|
|
9571
|
+
showBackground && /* @__PURE__ */ jsx104(
|
|
9436
9572
|
Background,
|
|
9437
9573
|
{
|
|
9438
9574
|
variant: backgroundVariant,
|
|
@@ -9441,8 +9577,8 @@ var FlowEditor = ({
|
|
|
9441
9577
|
color: theme2.palette.divider
|
|
9442
9578
|
}
|
|
9443
9579
|
),
|
|
9444
|
-
showControls && /* @__PURE__ */
|
|
9445
|
-
showMinimap && /* @__PURE__ */
|
|
9580
|
+
showControls && /* @__PURE__ */ jsx104(Controls, {}),
|
|
9581
|
+
showMinimap && /* @__PURE__ */ jsx104(
|
|
9446
9582
|
MiniMap,
|
|
9447
9583
|
{
|
|
9448
9584
|
nodeColor: (node) => {
|
|
@@ -9468,13 +9604,13 @@ var FlowEditor = ({
|
|
|
9468
9604
|
// src/components/third-party/CodeEditor.tsx
|
|
9469
9605
|
import { useCallback as useCallback8, useEffect as useEffect7, useState as useState15, useRef as useRef4 } from "react";
|
|
9470
9606
|
import Editor from "@monaco-editor/react";
|
|
9471
|
-
import { Box as
|
|
9607
|
+
import { Box as Box39, IconButton as IconButton17, Tooltip as Tooltip8 } from "@mui/material";
|
|
9472
9608
|
import FullscreenIcon from "@mui/icons-material/Fullscreen";
|
|
9473
9609
|
import FullscreenExitIcon from "@mui/icons-material/FullscreenExit";
|
|
9474
9610
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
|
9475
9611
|
import ExpandMoreIcon3 from "@mui/icons-material/ExpandMore";
|
|
9476
9612
|
import ExpandLessIcon from "@mui/icons-material/ExpandLess";
|
|
9477
|
-
import { jsx as
|
|
9613
|
+
import { jsx as jsx105, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
9478
9614
|
var configureTypeScript = (monaco) => {
|
|
9479
9615
|
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
9480
9616
|
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
@@ -9692,8 +9828,8 @@ var CodeEditor = ({
|
|
|
9692
9828
|
theme: themeProp || "vs",
|
|
9693
9829
|
...options2
|
|
9694
9830
|
};
|
|
9695
|
-
return /* @__PURE__ */
|
|
9696
|
-
|
|
9831
|
+
return /* @__PURE__ */ jsx105(
|
|
9832
|
+
Box39,
|
|
9697
9833
|
{
|
|
9698
9834
|
sx: {
|
|
9699
9835
|
display: "flex",
|
|
@@ -9713,8 +9849,8 @@ var CodeEditor = ({
|
|
|
9713
9849
|
pb: isFullscreen ? 2 : 0,
|
|
9714
9850
|
overflow: isFullscreen ? "hidden" : "visible"
|
|
9715
9851
|
},
|
|
9716
|
-
children: /* @__PURE__ */
|
|
9717
|
-
|
|
9852
|
+
children: /* @__PURE__ */ jsxs56(
|
|
9853
|
+
Box39,
|
|
9718
9854
|
{
|
|
9719
9855
|
sx: {
|
|
9720
9856
|
flex: 1,
|
|
@@ -9729,7 +9865,7 @@ var CodeEditor = ({
|
|
|
9729
9865
|
},
|
|
9730
9866
|
...containerProps,
|
|
9731
9867
|
children: [
|
|
9732
|
-
/* @__PURE__ */
|
|
9868
|
+
/* @__PURE__ */ jsx105(Tooltip8, { title: isFullscreen ? "Exit Fullscreen" : "Fullscreen", children: /* @__PURE__ */ jsx105(
|
|
9733
9869
|
IconButton17,
|
|
9734
9870
|
{
|
|
9735
9871
|
onClick: toggleFullscreen,
|
|
@@ -9747,11 +9883,11 @@ var CodeEditor = ({
|
|
|
9747
9883
|
},
|
|
9748
9884
|
boxShadow: 1
|
|
9749
9885
|
},
|
|
9750
|
-
children: isFullscreen ? /* @__PURE__ */
|
|
9886
|
+
children: isFullscreen ? /* @__PURE__ */ jsx105(FullscreenExitIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx105(FullscreenIcon, { fontSize: "small" })
|
|
9751
9887
|
}
|
|
9752
9888
|
) }),
|
|
9753
|
-
/* @__PURE__ */
|
|
9754
|
-
|
|
9889
|
+
/* @__PURE__ */ jsx105(
|
|
9890
|
+
Box39,
|
|
9755
9891
|
{
|
|
9756
9892
|
sx: {
|
|
9757
9893
|
flex: 1,
|
|
@@ -9762,7 +9898,7 @@ var CodeEditor = ({
|
|
|
9762
9898
|
position: "relative",
|
|
9763
9899
|
height: isFullscreen ? "100%" : actualHeight
|
|
9764
9900
|
},
|
|
9765
|
-
children: /* @__PURE__ */
|
|
9901
|
+
children: /* @__PURE__ */ jsx105(
|
|
9766
9902
|
Editor,
|
|
9767
9903
|
{
|
|
9768
9904
|
height: "100%",
|
|
@@ -9773,7 +9909,7 @@ var CodeEditor = ({
|
|
|
9773
9909
|
onMount: handleEditorDidMount,
|
|
9774
9910
|
theme: themeProp || "vs",
|
|
9775
9911
|
options: defaultOptions,
|
|
9776
|
-
loading: /* @__PURE__ */
|
|
9912
|
+
loading: /* @__PURE__ */ jsx105(Box39, { sx: { p: 2, textAlign: "center" }, children: "Loading Monaco Editor..." }),
|
|
9777
9913
|
beforeMount: (monaco) => {
|
|
9778
9914
|
console.log("CodeEditor: beforeMount called", { monaco: !!monaco });
|
|
9779
9915
|
}
|
|
@@ -9781,8 +9917,8 @@ var CodeEditor = ({
|
|
|
9781
9917
|
)
|
|
9782
9918
|
}
|
|
9783
9919
|
),
|
|
9784
|
-
validationErrors.length > 0 && /* @__PURE__ */
|
|
9785
|
-
|
|
9920
|
+
validationErrors.length > 0 && /* @__PURE__ */ jsxs56(
|
|
9921
|
+
Box39,
|
|
9786
9922
|
{
|
|
9787
9923
|
sx: {
|
|
9788
9924
|
borderTop: 1,
|
|
@@ -9795,8 +9931,8 @@ var CodeEditor = ({
|
|
|
9795
9931
|
transition: "max-height 0.2s ease"
|
|
9796
9932
|
},
|
|
9797
9933
|
children: [
|
|
9798
|
-
/* @__PURE__ */
|
|
9799
|
-
|
|
9934
|
+
/* @__PURE__ */ jsxs56(
|
|
9935
|
+
Box39,
|
|
9800
9936
|
{
|
|
9801
9937
|
sx: {
|
|
9802
9938
|
display: "flex",
|
|
@@ -9810,15 +9946,15 @@ var CodeEditor = ({
|
|
|
9810
9946
|
color: "text.secondary"
|
|
9811
9947
|
},
|
|
9812
9948
|
children: [
|
|
9813
|
-
/* @__PURE__ */
|
|
9814
|
-
/* @__PURE__ */
|
|
9815
|
-
/* @__PURE__ */
|
|
9949
|
+
/* @__PURE__ */ jsx105(ErrorOutlineIcon, { color: "error", fontSize: "small" }),
|
|
9950
|
+
/* @__PURE__ */ jsx105(Box39, { sx: { fontWeight: 600, color: "text.primary" }, children: "Problems" }),
|
|
9951
|
+
/* @__PURE__ */ jsxs56(Box39, { sx: { ml: 1 }, children: [
|
|
9816
9952
|
validationErrors.length,
|
|
9817
9953
|
" error",
|
|
9818
9954
|
validationErrors.length > 1 ? "s" : ""
|
|
9819
9955
|
] }),
|
|
9820
|
-
/* @__PURE__ */
|
|
9821
|
-
/* @__PURE__ */
|
|
9956
|
+
/* @__PURE__ */ jsx105(Box39, { sx: { flex: 1 } }),
|
|
9957
|
+
/* @__PURE__ */ jsx105(
|
|
9822
9958
|
IconButton17,
|
|
9823
9959
|
{
|
|
9824
9960
|
size: "small",
|
|
@@ -9827,14 +9963,14 @@ var CodeEditor = ({
|
|
|
9827
9963
|
setHasUserToggledProblems(true);
|
|
9828
9964
|
setShowProblems((s) => !s);
|
|
9829
9965
|
},
|
|
9830
|
-
children: showProblems ? /* @__PURE__ */
|
|
9966
|
+
children: showProblems ? /* @__PURE__ */ jsx105(ExpandMoreIcon3, { fontSize: "small" }) : /* @__PURE__ */ jsx105(ExpandLessIcon, { fontSize: "small" })
|
|
9831
9967
|
}
|
|
9832
9968
|
)
|
|
9833
9969
|
]
|
|
9834
9970
|
}
|
|
9835
9971
|
),
|
|
9836
|
-
showProblems && /* @__PURE__ */
|
|
9837
|
-
|
|
9972
|
+
showProblems && /* @__PURE__ */ jsx105(Box39, { sx: { overflow: "auto" }, children: validationErrors.map((error, index) => /* @__PURE__ */ jsxs56(
|
|
9973
|
+
Box39,
|
|
9838
9974
|
{
|
|
9839
9975
|
onClick: () => gotoMarker(error),
|
|
9840
9976
|
sx: {
|
|
@@ -9850,12 +9986,12 @@ var CodeEditor = ({
|
|
|
9850
9986
|
fontSize: "0.85rem"
|
|
9851
9987
|
},
|
|
9852
9988
|
children: [
|
|
9853
|
-
/* @__PURE__ */
|
|
9854
|
-
/* @__PURE__ */
|
|
9989
|
+
/* @__PURE__ */ jsx105(ErrorOutlineIcon, { color: "error", sx: { fontSize: 18 } }),
|
|
9990
|
+
/* @__PURE__ */ jsxs56(Box39, { sx: { color: "text.secondary", width: 64 }, children: [
|
|
9855
9991
|
"Line ",
|
|
9856
9992
|
error.startLineNumber
|
|
9857
9993
|
] }),
|
|
9858
|
-
/* @__PURE__ */
|
|
9994
|
+
/* @__PURE__ */ jsx105(Box39, { sx: { color: "text.primary", flex: 1, minWidth: 0 }, children: error.message })
|
|
9859
9995
|
]
|
|
9860
9996
|
},
|
|
9861
9997
|
`${error.startLineNumber}-${error.startColumn}-${index}`
|
|
@@ -9876,7 +10012,7 @@ import { Panel as Panel2 } from "reactflow";
|
|
|
9876
10012
|
// src/components/third-party/WorkflowNodeHandle.tsx
|
|
9877
10013
|
import { Handle, Position } from "reactflow";
|
|
9878
10014
|
import { useTheme as useTheme13 } from "@mui/material";
|
|
9879
|
-
import { Fragment as Fragment16, jsx as
|
|
10015
|
+
import { Fragment as Fragment16, jsx as jsx106, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9880
10016
|
var WorkflowNodeHandle = ({
|
|
9881
10017
|
data,
|
|
9882
10018
|
selected
|
|
@@ -9891,9 +10027,9 @@ var WorkflowNodeHandle = ({
|
|
|
9891
10027
|
background: handleColor,
|
|
9892
10028
|
boxShadow: WORKFLOW_NODE_SHADOW
|
|
9893
10029
|
};
|
|
9894
|
-
return /* @__PURE__ */
|
|
9895
|
-
/* @__PURE__ */
|
|
9896
|
-
/* @__PURE__ */
|
|
10030
|
+
return /* @__PURE__ */ jsxs57(Fragment16, { children: [
|
|
10031
|
+
/* @__PURE__ */ jsx106(Handle, { type: "target", position: Position.Left, style: handleStyle }),
|
|
10032
|
+
/* @__PURE__ */ jsx106(
|
|
9897
10033
|
WorkflowNode,
|
|
9898
10034
|
{
|
|
9899
10035
|
nodeType: data.nodeType,
|
|
@@ -9905,7 +10041,7 @@ var WorkflowNodeHandle = ({
|
|
|
9905
10041
|
showSideDots: false
|
|
9906
10042
|
}
|
|
9907
10043
|
),
|
|
9908
|
-
/* @__PURE__ */
|
|
10044
|
+
/* @__PURE__ */ jsx106(Handle, { type: "source", position: Position.Right, style: handleStyle })
|
|
9909
10045
|
] });
|
|
9910
10046
|
};
|
|
9911
10047
|
|
|
@@ -10188,9 +10324,9 @@ function useCodeEditorWorkspace({
|
|
|
10188
10324
|
|
|
10189
10325
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorTabs.tsx
|
|
10190
10326
|
import React17 from "react";
|
|
10191
|
-
import { Box as
|
|
10327
|
+
import { Box as Box40, IconButton as IconButton18, Tooltip as Tooltip9, Typography as Typography32 } from "@mui/material";
|
|
10192
10328
|
import CloseIcon6 from "@mui/icons-material/Close";
|
|
10193
|
-
import { jsx as
|
|
10329
|
+
import { jsx as jsx107, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
10194
10330
|
var CodeEditorTabs = ({
|
|
10195
10331
|
tabs,
|
|
10196
10332
|
activeTab,
|
|
@@ -10200,8 +10336,8 @@ var CodeEditorTabs = ({
|
|
|
10200
10336
|
containerProps
|
|
10201
10337
|
}) => {
|
|
10202
10338
|
if (tabs.length === 0) return null;
|
|
10203
|
-
return /* @__PURE__ */
|
|
10204
|
-
|
|
10339
|
+
return /* @__PURE__ */ jsx107(
|
|
10340
|
+
Box40,
|
|
10205
10341
|
{
|
|
10206
10342
|
sx: {
|
|
10207
10343
|
display: "flex",
|
|
@@ -10219,15 +10355,15 @@ var CodeEditorTabs = ({
|
|
|
10219
10355
|
const isActive = tab.path === activeTab;
|
|
10220
10356
|
const label = tab.label ?? getFileName(tab.path);
|
|
10221
10357
|
if (renderTab) {
|
|
10222
|
-
return /* @__PURE__ */
|
|
10358
|
+
return /* @__PURE__ */ jsx107(React17.Fragment, { children: renderTab({
|
|
10223
10359
|
tab,
|
|
10224
10360
|
isActive,
|
|
10225
10361
|
onSelect: () => onTabSelect?.(tab.path),
|
|
10226
10362
|
onClose: () => onTabClose?.(tab.path)
|
|
10227
10363
|
}) }, tab.path);
|
|
10228
10364
|
}
|
|
10229
|
-
return /* @__PURE__ */
|
|
10230
|
-
|
|
10365
|
+
return /* @__PURE__ */ jsxs58(
|
|
10366
|
+
Box40,
|
|
10231
10367
|
{
|
|
10232
10368
|
onClick: () => onTabSelect?.(tab.path),
|
|
10233
10369
|
sx: {
|
|
@@ -10249,8 +10385,8 @@ var CodeEditorTabs = ({
|
|
|
10249
10385
|
transition: "background-color 0.15s ease"
|
|
10250
10386
|
},
|
|
10251
10387
|
children: [
|
|
10252
|
-
tab.isDirty && /* @__PURE__ */
|
|
10253
|
-
|
|
10388
|
+
tab.isDirty && /* @__PURE__ */ jsx107(
|
|
10389
|
+
Box40,
|
|
10254
10390
|
{
|
|
10255
10391
|
sx: {
|
|
10256
10392
|
width: 6,
|
|
@@ -10261,8 +10397,8 @@ var CodeEditorTabs = ({
|
|
|
10261
10397
|
}
|
|
10262
10398
|
}
|
|
10263
10399
|
),
|
|
10264
|
-
tab.syncStatus && /* @__PURE__ */
|
|
10265
|
-
|
|
10400
|
+
tab.syncStatus && /* @__PURE__ */ jsx107(
|
|
10401
|
+
Box40,
|
|
10266
10402
|
{
|
|
10267
10403
|
component: "span",
|
|
10268
10404
|
sx: {
|
|
@@ -10275,8 +10411,8 @@ var CodeEditorTabs = ({
|
|
|
10275
10411
|
children: tab.syncStatus === "new" ? "N" : "M"
|
|
10276
10412
|
}
|
|
10277
10413
|
),
|
|
10278
|
-
/* @__PURE__ */
|
|
10279
|
-
|
|
10414
|
+
/* @__PURE__ */ jsx107(Tooltip9, { title: tab.path, enterDelay: 600, children: /* @__PURE__ */ jsx107(
|
|
10415
|
+
Typography32,
|
|
10280
10416
|
{
|
|
10281
10417
|
variant: "body2",
|
|
10282
10418
|
sx: {
|
|
@@ -10288,7 +10424,7 @@ var CodeEditorTabs = ({
|
|
|
10288
10424
|
children: label
|
|
10289
10425
|
}
|
|
10290
10426
|
) }),
|
|
10291
|
-
onTabClose && /* @__PURE__ */
|
|
10427
|
+
onTabClose && /* @__PURE__ */ jsx107(
|
|
10292
10428
|
IconButton18,
|
|
10293
10429
|
{
|
|
10294
10430
|
size: "small",
|
|
@@ -10305,7 +10441,7 @@ var CodeEditorTabs = ({
|
|
|
10305
10441
|
transition: "opacity 0.15s ease"
|
|
10306
10442
|
},
|
|
10307
10443
|
"aria-label": `Close ${label}`,
|
|
10308
|
-
children: /* @__PURE__ */
|
|
10444
|
+
children: /* @__PURE__ */ jsx107(CloseIcon6, { sx: { fontSize: 14 } })
|
|
10309
10445
|
}
|
|
10310
10446
|
)
|
|
10311
10447
|
]
|
|
@@ -10319,13 +10455,13 @@ var CodeEditorTabs = ({
|
|
|
10319
10455
|
|
|
10320
10456
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorFileTree.tsx
|
|
10321
10457
|
import React18, { useCallback as useCallback10, useState as useState17 } from "react";
|
|
10322
|
-
import { Box as
|
|
10458
|
+
import { Box as Box41, Collapse as Collapse2, List as List7, ListItemButton as ListItemButton4, ListItemIcon as ListItemIcon6, ListItemText as ListItemText9 } from "@mui/material";
|
|
10323
10459
|
import FolderIcon2 from "@mui/icons-material/Folder";
|
|
10324
10460
|
import FolderOpenIcon from "@mui/icons-material/FolderOpen";
|
|
10325
10461
|
import InsertDriveFileOutlinedIcon from "@mui/icons-material/InsertDriveFileOutlined";
|
|
10326
10462
|
import ExpandMoreIcon4 from "@mui/icons-material/ExpandMore";
|
|
10327
10463
|
import ChevronRightIcon6 from "@mui/icons-material/ChevronRight";
|
|
10328
|
-
import { jsx as
|
|
10464
|
+
import { jsx as jsx108, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
10329
10465
|
var STATUS_CONFIG = {
|
|
10330
10466
|
new: { label: "N", color: "success.main" },
|
|
10331
10467
|
modified: { label: "M", color: "warning.main" },
|
|
@@ -10374,7 +10510,7 @@ var CodeEditorFileTree = ({
|
|
|
10374
10510
|
const isExpanded = expandedPaths.has(node.path);
|
|
10375
10511
|
const isSelected = node.path === selectedPath;
|
|
10376
10512
|
if (renderNode) {
|
|
10377
|
-
return /* @__PURE__ */
|
|
10513
|
+
return /* @__PURE__ */ jsxs59(React18.Fragment, { children: [
|
|
10378
10514
|
renderNode({
|
|
10379
10515
|
node,
|
|
10380
10516
|
depth,
|
|
@@ -10392,8 +10528,8 @@ var CodeEditorFileTree = ({
|
|
|
10392
10528
|
isFolder && isExpanded && node.children?.map((child) => renderTreeNode(child, depth + 1))
|
|
10393
10529
|
] }, node.path);
|
|
10394
10530
|
}
|
|
10395
|
-
return /* @__PURE__ */
|
|
10396
|
-
/* @__PURE__ */
|
|
10531
|
+
return /* @__PURE__ */ jsxs59(React18.Fragment, { children: [
|
|
10532
|
+
/* @__PURE__ */ jsxs59(
|
|
10397
10533
|
ListItemButton4,
|
|
10398
10534
|
{
|
|
10399
10535
|
selected: isSelected,
|
|
@@ -10414,9 +10550,9 @@ var CodeEditorFileTree = ({
|
|
|
10414
10550
|
}
|
|
10415
10551
|
},
|
|
10416
10552
|
children: [
|
|
10417
|
-
isFolder && /* @__PURE__ */
|
|
10418
|
-
/* @__PURE__ */
|
|
10419
|
-
/* @__PURE__ */
|
|
10553
|
+
isFolder && /* @__PURE__ */ jsx108(ListItemIcon6, { sx: { minWidth: 20 }, children: isExpanded ? /* @__PURE__ */ jsx108(ExpandMoreIcon4, { sx: { fontSize: 16 } }) : /* @__PURE__ */ jsx108(ChevronRightIcon6, { sx: { fontSize: 16 } }) }),
|
|
10554
|
+
/* @__PURE__ */ jsx108(ListItemIcon6, { sx: { minWidth: 24 }, children: node.icon ?? (isFolder ? isExpanded ? /* @__PURE__ */ jsx108(FolderOpenIcon, { sx: { fontSize: 16, color: "warning.main" } }) : /* @__PURE__ */ jsx108(FolderIcon2, { sx: { fontSize: 16, color: "warning.main" } }) : /* @__PURE__ */ jsx108(InsertDriveFileOutlinedIcon, { sx: { fontSize: 16, color: "text.secondary" } })) }),
|
|
10555
|
+
/* @__PURE__ */ jsx108(
|
|
10420
10556
|
ListItemText9,
|
|
10421
10557
|
{
|
|
10422
10558
|
primary: node.name,
|
|
@@ -10437,8 +10573,8 @@ var CodeEditorFileTree = ({
|
|
|
10437
10573
|
const effectiveStatus = isFolder ? computeFolderStatus(node) : node.status;
|
|
10438
10574
|
if (!effectiveStatus) return null;
|
|
10439
10575
|
const cfg = STATUS_CONFIG[effectiveStatus];
|
|
10440
|
-
return /* @__PURE__ */
|
|
10441
|
-
|
|
10576
|
+
return /* @__PURE__ */ jsx108(
|
|
10577
|
+
Box41,
|
|
10442
10578
|
{
|
|
10443
10579
|
component: "span",
|
|
10444
10580
|
sx: {
|
|
@@ -10457,11 +10593,11 @@ var CodeEditorFileTree = ({
|
|
|
10457
10593
|
]
|
|
10458
10594
|
}
|
|
10459
10595
|
),
|
|
10460
|
-
isFolder && /* @__PURE__ */
|
|
10596
|
+
isFolder && /* @__PURE__ */ jsx108(Collapse2, { in: isExpanded, timeout: "auto", unmountOnExit: true, children: node.children?.map((child) => renderTreeNode(child, depth + 1)) })
|
|
10461
10597
|
] }, node.path);
|
|
10462
10598
|
};
|
|
10463
|
-
return /* @__PURE__ */
|
|
10464
|
-
|
|
10599
|
+
return /* @__PURE__ */ jsx108(
|
|
10600
|
+
Box41,
|
|
10465
10601
|
{
|
|
10466
10602
|
sx: {
|
|
10467
10603
|
width: typeof width === "number" ? `${width}px` : width,
|
|
@@ -10473,14 +10609,14 @@ var CodeEditorFileTree = ({
|
|
|
10473
10609
|
bgcolor: "background.default"
|
|
10474
10610
|
},
|
|
10475
10611
|
...containerProps,
|
|
10476
|
-
children: /* @__PURE__ */
|
|
10612
|
+
children: /* @__PURE__ */ jsx108(List7, { dense: true, disablePadding: true, children: tree.map((node) => renderTreeNode(node, 0)) })
|
|
10477
10613
|
}
|
|
10478
10614
|
);
|
|
10479
10615
|
};
|
|
10480
10616
|
|
|
10481
10617
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorStatusBar.tsx
|
|
10482
|
-
import { Box as
|
|
10483
|
-
import { Fragment as Fragment17, jsx as
|
|
10618
|
+
import { Box as Box42, Tooltip as Tooltip10, Typography as Typography33 } from "@mui/material";
|
|
10619
|
+
import { Fragment as Fragment17, jsx as jsx109, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
10484
10620
|
var LANGUAGE_LABELS = {
|
|
10485
10621
|
typescript: "TypeScript",
|
|
10486
10622
|
javascript: "JavaScript",
|
|
@@ -10504,12 +10640,12 @@ var CodeEditorStatusBar = ({
|
|
|
10504
10640
|
containerProps
|
|
10505
10641
|
}) => {
|
|
10506
10642
|
if (renderStatusBar) {
|
|
10507
|
-
return /* @__PURE__ */
|
|
10643
|
+
return /* @__PURE__ */ jsx109(Fragment17, { children: renderStatusBar({ gitInfo, language, cursorPosition, items }) });
|
|
10508
10644
|
}
|
|
10509
10645
|
const leftItems = items?.filter((i) => i.align !== "right") ?? [];
|
|
10510
10646
|
const rightItems = items?.filter((i) => i.align === "right") ?? [];
|
|
10511
|
-
return /* @__PURE__ */
|
|
10512
|
-
|
|
10647
|
+
return /* @__PURE__ */ jsxs60(
|
|
10648
|
+
Box42,
|
|
10513
10649
|
{
|
|
10514
10650
|
sx: {
|
|
10515
10651
|
display: "flex",
|
|
@@ -10529,8 +10665,8 @@ var CodeEditorStatusBar = ({
|
|
|
10529
10665
|
},
|
|
10530
10666
|
...containerProps,
|
|
10531
10667
|
children: [
|
|
10532
|
-
/* @__PURE__ */
|
|
10533
|
-
gitInfo && /* @__PURE__ */
|
|
10668
|
+
/* @__PURE__ */ jsxs60(Box42, { sx: { display: "flex", alignItems: "center", gap: 1.5, overflow: "hidden" }, children: [
|
|
10669
|
+
gitInfo && /* @__PURE__ */ jsx109(
|
|
10534
10670
|
Tooltip10,
|
|
10535
10671
|
{
|
|
10536
10672
|
title: [
|
|
@@ -10540,8 +10676,8 @@ var CodeEditorStatusBar = ({
|
|
|
10540
10676
|
gitInfo.behind != null && `\u2193 ${gitInfo.behind} behind`
|
|
10541
10677
|
].filter(Boolean).join(" \xB7 ") || gitInfo.branch,
|
|
10542
10678
|
enterDelay: 400,
|
|
10543
|
-
children: /* @__PURE__ */
|
|
10544
|
-
|
|
10679
|
+
children: /* @__PURE__ */ jsxs60(
|
|
10680
|
+
Box42,
|
|
10545
10681
|
{
|
|
10546
10682
|
onClick: onBranchClick,
|
|
10547
10683
|
sx: {
|
|
@@ -10553,7 +10689,7 @@ var CodeEditorStatusBar = ({
|
|
|
10553
10689
|
"&:hover": onBranchClick ? { opacity: 0.8 } : void 0
|
|
10554
10690
|
},
|
|
10555
10691
|
children: [
|
|
10556
|
-
/* @__PURE__ */
|
|
10692
|
+
/* @__PURE__ */ jsx109(
|
|
10557
10693
|
"svg",
|
|
10558
10694
|
{
|
|
10559
10695
|
width: "14",
|
|
@@ -10561,7 +10697,7 @@ var CodeEditorStatusBar = ({
|
|
|
10561
10697
|
viewBox: "0 0 16 16",
|
|
10562
10698
|
fill: "currentColor",
|
|
10563
10699
|
style: { flexShrink: 0 },
|
|
10564
|
-
children: /* @__PURE__ */
|
|
10700
|
+
children: /* @__PURE__ */ jsx109(
|
|
10565
10701
|
"path",
|
|
10566
10702
|
{
|
|
10567
10703
|
fillRule: "evenodd",
|
|
@@ -10570,8 +10706,8 @@ var CodeEditorStatusBar = ({
|
|
|
10570
10706
|
)
|
|
10571
10707
|
}
|
|
10572
10708
|
),
|
|
10573
|
-
/* @__PURE__ */
|
|
10574
|
-
|
|
10709
|
+
/* @__PURE__ */ jsx109(
|
|
10710
|
+
Typography33,
|
|
10575
10711
|
{
|
|
10576
10712
|
variant: "caption",
|
|
10577
10713
|
sx: {
|
|
@@ -10587,8 +10723,8 @@ var CodeEditorStatusBar = ({
|
|
|
10587
10723
|
children: gitInfo.branch
|
|
10588
10724
|
}
|
|
10589
10725
|
),
|
|
10590
|
-
gitInfo.isDirty && /* @__PURE__ */
|
|
10591
|
-
|
|
10726
|
+
gitInfo.isDirty && /* @__PURE__ */ jsx109(
|
|
10727
|
+
Box42,
|
|
10592
10728
|
{
|
|
10593
10729
|
component: "span",
|
|
10594
10730
|
sx: {
|
|
@@ -10600,11 +10736,11 @@ var CodeEditorStatusBar = ({
|
|
|
10600
10736
|
}
|
|
10601
10737
|
}
|
|
10602
10738
|
),
|
|
10603
|
-
gitInfo.ahead != null && gitInfo.ahead > 0 && /* @__PURE__ */
|
|
10739
|
+
gitInfo.ahead != null && gitInfo.ahead > 0 && /* @__PURE__ */ jsxs60(Typography33, { variant: "caption", sx: { fontSize: "inherit", fontFamily: "inherit", color: "inherit", lineHeight: 1, opacity: 0.85 }, children: [
|
|
10604
10740
|
"\u2191",
|
|
10605
10741
|
gitInfo.ahead
|
|
10606
10742
|
] }),
|
|
10607
|
-
gitInfo.behind != null && gitInfo.behind > 0 && /* @__PURE__ */
|
|
10743
|
+
gitInfo.behind != null && gitInfo.behind > 0 && /* @__PURE__ */ jsxs60(Typography33, { variant: "caption", sx: { fontSize: "inherit", fontFamily: "inherit", color: "inherit", lineHeight: 1, opacity: 0.85 }, children: [
|
|
10608
10744
|
"\u2193",
|
|
10609
10745
|
gitInfo.behind
|
|
10610
10746
|
] })
|
|
@@ -10613,12 +10749,12 @@ var CodeEditorStatusBar = ({
|
|
|
10613
10749
|
)
|
|
10614
10750
|
}
|
|
10615
10751
|
),
|
|
10616
|
-
leftItems.map((item) => /* @__PURE__ */
|
|
10752
|
+
leftItems.map((item) => /* @__PURE__ */ jsx109(StatusBarItemElement, { item }, item.id))
|
|
10617
10753
|
] }),
|
|
10618
|
-
/* @__PURE__ */
|
|
10619
|
-
rightItems.map((item) => /* @__PURE__ */
|
|
10620
|
-
cursorPosition && /* @__PURE__ */
|
|
10621
|
-
|
|
10754
|
+
/* @__PURE__ */ jsxs60(Box42, { sx: { display: "flex", alignItems: "center", gap: 1.5, overflow: "hidden" }, children: [
|
|
10755
|
+
rightItems.map((item) => /* @__PURE__ */ jsx109(StatusBarItemElement, { item }, item.id)),
|
|
10756
|
+
cursorPosition && /* @__PURE__ */ jsxs60(
|
|
10757
|
+
Typography33,
|
|
10622
10758
|
{
|
|
10623
10759
|
variant: "caption",
|
|
10624
10760
|
sx: { fontSize: "inherit", fontFamily: "inherit", color: "inherit", lineHeight: 1, whiteSpace: "nowrap" },
|
|
@@ -10630,8 +10766,8 @@ var CodeEditorStatusBar = ({
|
|
|
10630
10766
|
]
|
|
10631
10767
|
}
|
|
10632
10768
|
),
|
|
10633
|
-
language && /* @__PURE__ */
|
|
10634
|
-
|
|
10769
|
+
language && /* @__PURE__ */ jsx109(
|
|
10770
|
+
Typography33,
|
|
10635
10771
|
{
|
|
10636
10772
|
variant: "caption",
|
|
10637
10773
|
sx: { fontSize: "inherit", fontFamily: "inherit", color: "inherit", lineHeight: 1, whiteSpace: "nowrap" },
|
|
@@ -10644,8 +10780,8 @@ var CodeEditorStatusBar = ({
|
|
|
10644
10780
|
);
|
|
10645
10781
|
};
|
|
10646
10782
|
var StatusBarItemElement = ({ item }) => {
|
|
10647
|
-
const inner = /* @__PURE__ */
|
|
10648
|
-
|
|
10783
|
+
const inner = /* @__PURE__ */ jsx109(
|
|
10784
|
+
Box42,
|
|
10649
10785
|
{
|
|
10650
10786
|
onClick: item.onClick,
|
|
10651
10787
|
sx: {
|
|
@@ -10656,8 +10792,8 @@ var StatusBarItemElement = ({ item }) => {
|
|
|
10656
10792
|
whiteSpace: "nowrap",
|
|
10657
10793
|
"&:hover": item.onClick ? { opacity: 0.8 } : void 0
|
|
10658
10794
|
},
|
|
10659
|
-
children: typeof item.content === "string" ? /* @__PURE__ */
|
|
10660
|
-
|
|
10795
|
+
children: typeof item.content === "string" ? /* @__PURE__ */ jsx109(
|
|
10796
|
+
Typography33,
|
|
10661
10797
|
{
|
|
10662
10798
|
variant: "caption",
|
|
10663
10799
|
sx: { fontSize: "inherit", fontFamily: "inherit", color: "inherit", lineHeight: 1 },
|
|
@@ -10667,20 +10803,20 @@ var StatusBarItemElement = ({ item }) => {
|
|
|
10667
10803
|
}
|
|
10668
10804
|
);
|
|
10669
10805
|
if (item.tooltip) {
|
|
10670
|
-
return /* @__PURE__ */
|
|
10806
|
+
return /* @__PURE__ */ jsx109(Tooltip10, { title: item.tooltip, enterDelay: 400, children: inner });
|
|
10671
10807
|
}
|
|
10672
10808
|
return inner;
|
|
10673
10809
|
};
|
|
10674
10810
|
|
|
10675
10811
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorWelcomeScreen.tsx
|
|
10676
|
-
import { Box as
|
|
10677
|
-
import { jsx as
|
|
10812
|
+
import { Box as Box43 } from "@mui/material";
|
|
10813
|
+
import { jsx as jsx110, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
10678
10814
|
var CodeEditorWelcomeScreen = ({
|
|
10679
10815
|
logo,
|
|
10680
10816
|
children,
|
|
10681
10817
|
containerProps
|
|
10682
10818
|
}) => {
|
|
10683
|
-
const defaultLogo = /* @__PURE__ */
|
|
10819
|
+
const defaultLogo = /* @__PURE__ */ jsx110(
|
|
10684
10820
|
CereIcon,
|
|
10685
10821
|
{
|
|
10686
10822
|
sx: {
|
|
@@ -10690,8 +10826,8 @@ var CodeEditorWelcomeScreen = ({
|
|
|
10690
10826
|
}
|
|
10691
10827
|
}
|
|
10692
10828
|
);
|
|
10693
|
-
return /* @__PURE__ */
|
|
10694
|
-
|
|
10829
|
+
return /* @__PURE__ */ jsxs61(
|
|
10830
|
+
Box43,
|
|
10695
10831
|
{
|
|
10696
10832
|
sx: {
|
|
10697
10833
|
flex: 1,
|
|
@@ -10706,8 +10842,8 @@ var CodeEditorWelcomeScreen = ({
|
|
|
10706
10842
|
...containerProps,
|
|
10707
10843
|
children: [
|
|
10708
10844
|
logo !== void 0 ? logo : defaultLogo,
|
|
10709
|
-
children && /* @__PURE__ */
|
|
10710
|
-
|
|
10845
|
+
children && /* @__PURE__ */ jsx110(
|
|
10846
|
+
Box43,
|
|
10711
10847
|
{
|
|
10712
10848
|
sx: {
|
|
10713
10849
|
display: "flex",
|
|
@@ -10725,8 +10861,8 @@ var CodeEditorWelcomeScreen = ({
|
|
|
10725
10861
|
|
|
10726
10862
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorWorkspace.tsx
|
|
10727
10863
|
import React19 from "react";
|
|
10728
|
-
import { Box as
|
|
10729
|
-
import { jsx as
|
|
10864
|
+
import { Box as Box44 } from "@mui/material";
|
|
10865
|
+
import { jsx as jsx111, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
10730
10866
|
var CodeEditorWorkspace = ({
|
|
10731
10867
|
files,
|
|
10732
10868
|
initialOpenPaths,
|
|
@@ -10791,7 +10927,7 @@ var CodeEditorWorkspace = ({
|
|
|
10791
10927
|
onTabSelect: workspace.setActiveFile,
|
|
10792
10928
|
onTabClose: workspace.closeFile
|
|
10793
10929
|
};
|
|
10794
|
-
const tabsElement = showTabs ? renderTabs ? renderTabs({ ...tabsProps, workspace }) : /* @__PURE__ */
|
|
10930
|
+
const tabsElement = showTabs ? renderTabs ? renderTabs({ ...tabsProps, workspace }) : /* @__PURE__ */ jsx111(CodeEditorTabs, { ...tabsProps }) : null;
|
|
10795
10931
|
const fileTreeProps = {
|
|
10796
10932
|
tree: fileTree ?? [],
|
|
10797
10933
|
selectedPath: workspace.activeFilePath,
|
|
@@ -10799,7 +10935,7 @@ var CodeEditorWorkspace = ({
|
|
|
10799
10935
|
defaultExpandedPaths,
|
|
10800
10936
|
width: fileTreeWidth
|
|
10801
10937
|
};
|
|
10802
|
-
const fileTreeElement = hasFileTree ? renderFileTree ? renderFileTree({ ...fileTreeProps, workspace }) : /* @__PURE__ */
|
|
10938
|
+
const fileTreeElement = hasFileTree ? renderFileTree ? renderFileTree({ ...fileTreeProps, workspace }) : /* @__PURE__ */ jsx111(CodeEditorFileTree, { ...fileTreeProps }) : null;
|
|
10803
10939
|
const statusBarProps = {
|
|
10804
10940
|
gitInfo,
|
|
10805
10941
|
language: workspace.activeFile?.language,
|
|
@@ -10807,9 +10943,9 @@ var CodeEditorWorkspace = ({
|
|
|
10807
10943
|
items: statusBarItems,
|
|
10808
10944
|
onBranchClick
|
|
10809
10945
|
};
|
|
10810
|
-
const statusBarElement = showStatusBar ? renderStatusBar ? renderStatusBar({ ...statusBarProps, workspace }) : /* @__PURE__ */
|
|
10811
|
-
const welcomeElement = renderWelcomeScreen ? renderWelcomeScreen(workspace) : welcomeScreen !== void 0 ? welcomeScreen : /* @__PURE__ */
|
|
10812
|
-
const editorElement = renderEditor ? renderEditor(workspace) : workspace.activeFile ? /* @__PURE__ */
|
|
10946
|
+
const statusBarElement = showStatusBar ? renderStatusBar ? renderStatusBar({ ...statusBarProps, workspace }) : /* @__PURE__ */ jsx111(CodeEditorStatusBar, { ...statusBarProps }) : null;
|
|
10947
|
+
const welcomeElement = renderWelcomeScreen ? renderWelcomeScreen(workspace) : welcomeScreen !== void 0 ? welcomeScreen : /* @__PURE__ */ jsx111(CodeEditorWelcomeScreen, { ...welcomeScreenProps });
|
|
10948
|
+
const editorElement = renderEditor ? renderEditor(workspace) : workspace.activeFile ? /* @__PURE__ */ jsx111(
|
|
10813
10949
|
CodeEditor,
|
|
10814
10950
|
{
|
|
10815
10951
|
value: workspace.activeFile.value,
|
|
@@ -10828,8 +10964,8 @@ var CodeEditorWorkspace = ({
|
|
|
10828
10964
|
...editorProps
|
|
10829
10965
|
}
|
|
10830
10966
|
) : welcomeElement;
|
|
10831
|
-
return /* @__PURE__ */
|
|
10832
|
-
|
|
10967
|
+
return /* @__PURE__ */ jsxs62(
|
|
10968
|
+
Box44,
|
|
10833
10969
|
{
|
|
10834
10970
|
sx: {
|
|
10835
10971
|
display: "flex",
|
|
@@ -10843,9 +10979,9 @@ var CodeEditorWorkspace = ({
|
|
|
10843
10979
|
...containerProps,
|
|
10844
10980
|
children: [
|
|
10845
10981
|
fileTreeElement,
|
|
10846
|
-
/* @__PURE__ */
|
|
10982
|
+
/* @__PURE__ */ jsxs62(Box44, { sx: { flex: 1, display: "flex", flexDirection: "column", minWidth: 0, overflow: "hidden" }, children: [
|
|
10847
10983
|
tabsElement,
|
|
10848
|
-
/* @__PURE__ */
|
|
10984
|
+
/* @__PURE__ */ jsx111(Box44, { sx: { flex: 1, overflow: "hidden" }, children: editorElement }),
|
|
10849
10985
|
statusBarElement
|
|
10850
10986
|
] })
|
|
10851
10987
|
]
|
|
@@ -10865,7 +11001,7 @@ export {
|
|
|
10865
11001
|
BackgroundVariant2 as BackgroundVariant,
|
|
10866
11002
|
Badge,
|
|
10867
11003
|
BarTrackingIcon,
|
|
10868
|
-
|
|
11004
|
+
Box25 as Box,
|
|
10869
11005
|
Breadcrumbs,
|
|
10870
11006
|
Button,
|
|
10871
11007
|
ButtonGroup,
|
|
@@ -10920,7 +11056,9 @@ export {
|
|
|
10920
11056
|
FormControlLabel,
|
|
10921
11057
|
FormHelperText,
|
|
10922
11058
|
FormLabel,
|
|
11059
|
+
GRADIENT_PALETTE_COUNT,
|
|
10923
11060
|
GithubLogoIcon,
|
|
11061
|
+
GradientSurface,
|
|
10924
11062
|
Grid2 as Grid,
|
|
10925
11063
|
IDBlock,
|
|
10926
11064
|
IconButton,
|
|
@@ -10959,6 +11097,7 @@ export {
|
|
|
10959
11097
|
RoleBadge,
|
|
10960
11098
|
ScrollableRow,
|
|
10961
11099
|
SearchField,
|
|
11100
|
+
SectionRow,
|
|
10962
11101
|
Selector,
|
|
10963
11102
|
ServiceSelectorButton,
|
|
10964
11103
|
ShareIcon,
|
|
@@ -10988,7 +11127,7 @@ export {
|
|
|
10988
11127
|
Toolbar,
|
|
10989
11128
|
Tooltip7 as Tooltip,
|
|
10990
11129
|
Truncate,
|
|
10991
|
-
|
|
11130
|
+
Typography21 as Typography,
|
|
10992
11131
|
UploadFileIcon,
|
|
10993
11132
|
UploadFolderIcon,
|
|
10994
11133
|
WORKFLOW_NODE_LABELS,
|