@cere/cere-design-system 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +222 -3
- package/dist/index.d.ts +222 -3
- package/dist/index.js +1568 -669
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1533 -624
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -76,6 +76,27 @@ var deploymentStatusColors = {
|
|
|
76
76
|
disabled: "#ffffff",
|
|
77
77
|
disabledDim: "#ded8e1"
|
|
78
78
|
};
|
|
79
|
+
var workflowNodeColors = {
|
|
80
|
+
start: "#00C950",
|
|
81
|
+
input: "#00A6F4",
|
|
82
|
+
stream: "#00B8DB",
|
|
83
|
+
rafts: "#FF6900",
|
|
84
|
+
cubbies: "#D0C900",
|
|
85
|
+
events: "#F6339A",
|
|
86
|
+
trigger: "#AD46FF",
|
|
87
|
+
action: "#2B7FFF",
|
|
88
|
+
aiModel: "#615FFF",
|
|
89
|
+
aiAgent: "#D0A2FB",
|
|
90
|
+
condition: "#FE9A00",
|
|
91
|
+
output: "#00BC7D",
|
|
92
|
+
end: "#FB2C36"
|
|
93
|
+
};
|
|
94
|
+
var workflowConnectionColors = {
|
|
95
|
+
success: "#22C55E",
|
|
96
|
+
process: "#3B82F6",
|
|
97
|
+
stream: "#06B6D4",
|
|
98
|
+
error: "#EF4444"
|
|
99
|
+
};
|
|
79
100
|
var deploymentSurfaceTokens = {
|
|
80
101
|
/** Surface/high background (Figma #fefcff) */
|
|
81
102
|
surfaceHigh: "#fefcff",
|
|
@@ -309,6 +330,10 @@ var theme = createTheme(baseTheme, {
|
|
|
309
330
|
deployment: {
|
|
310
331
|
entity: deploymentEntityColors,
|
|
311
332
|
status: deploymentStatusColors
|
|
333
|
+
},
|
|
334
|
+
workflow: {
|
|
335
|
+
node: workflowNodeColors,
|
|
336
|
+
connection: workflowConnectionColors
|
|
312
337
|
}
|
|
313
338
|
}
|
|
314
339
|
});
|
|
@@ -2220,19 +2245,69 @@ var Radio = ({
|
|
|
2220
2245
|
);
|
|
2221
2246
|
};
|
|
2222
2247
|
|
|
2248
|
+
// src/components/inputs/DateRangePicker/DateRangePicker.tsx
|
|
2249
|
+
import Stack from "@mui/material/Stack";
|
|
2250
|
+
import Typography from "@mui/material/Typography";
|
|
2251
|
+
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
|
|
2252
|
+
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
2253
|
+
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
2254
|
+
import { jsx as jsx13, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2255
|
+
var DateRangePicker = ({
|
|
2256
|
+
startDate,
|
|
2257
|
+
endDate,
|
|
2258
|
+
onStartDateChange,
|
|
2259
|
+
onEndDateChange,
|
|
2260
|
+
minDate,
|
|
2261
|
+
maxDate,
|
|
2262
|
+
disabled = false,
|
|
2263
|
+
size: size3 = "small"
|
|
2264
|
+
}) => {
|
|
2265
|
+
return /* @__PURE__ */ jsx13(LocalizationProvider, { dateAdapter: AdapterDateFns, children: /* @__PURE__ */ jsxs2(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
2266
|
+
/* @__PURE__ */ jsx13(
|
|
2267
|
+
DatePicker,
|
|
2268
|
+
{
|
|
2269
|
+
label: "Start date",
|
|
2270
|
+
value: startDate,
|
|
2271
|
+
onChange: onStartDateChange,
|
|
2272
|
+
minDate,
|
|
2273
|
+
maxDate: endDate ?? maxDate,
|
|
2274
|
+
disabled,
|
|
2275
|
+
slotProps: {
|
|
2276
|
+
textField: { size: size3 }
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
),
|
|
2280
|
+
/* @__PURE__ */ jsx13(Typography, { variant: "body2", color: "text.secondary", children: "\u2013" }),
|
|
2281
|
+
/* @__PURE__ */ jsx13(
|
|
2282
|
+
DatePicker,
|
|
2283
|
+
{
|
|
2284
|
+
label: "End date",
|
|
2285
|
+
value: endDate,
|
|
2286
|
+
onChange: onEndDateChange,
|
|
2287
|
+
minDate: startDate ?? minDate,
|
|
2288
|
+
maxDate,
|
|
2289
|
+
disabled,
|
|
2290
|
+
slotProps: {
|
|
2291
|
+
textField: { size: size3 }
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
)
|
|
2295
|
+
] }) });
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2223
2298
|
// src/components/navigation/Dropdown/Dropdown.tsx
|
|
2224
2299
|
import { Popover } from "@mui/material";
|
|
2225
2300
|
import { useCallback, useRef } from "react";
|
|
2226
2301
|
|
|
2227
2302
|
// src/components/navigation/Dropdown/DropdownAnchor.tsx
|
|
2228
2303
|
import { forwardRef } from "react";
|
|
2229
|
-
import { Stack, styled as styled8, avatarClasses, Typography, Button as Button2 } from "@mui/material";
|
|
2304
|
+
import { Stack as Stack2, styled as styled8, avatarClasses, Typography as Typography2, Button as Button2 } from "@mui/material";
|
|
2230
2305
|
import { ArrowDropUp, ArrowDropDown } from "@mui/icons-material";
|
|
2231
|
-
import { jsx as
|
|
2306
|
+
import { jsx as jsx14, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2232
2307
|
var Clickable = styled8(Button2)({
|
|
2233
2308
|
padding: 0
|
|
2234
2309
|
});
|
|
2235
|
-
var Anchor = styled8(
|
|
2310
|
+
var Anchor = styled8(Stack2)(({ theme: theme2, variant }) => ({
|
|
2236
2311
|
height: 40,
|
|
2237
2312
|
borderRadius: 25,
|
|
2238
2313
|
padding: theme2.spacing(1),
|
|
@@ -2249,21 +2324,21 @@ var Left = styled8("div")(({ theme: theme2 }) => ({
|
|
|
2249
2324
|
borderColor: theme2.palette.background.paper
|
|
2250
2325
|
}
|
|
2251
2326
|
}));
|
|
2252
|
-
var Center = styled8(
|
|
2327
|
+
var Center = styled8(Typography2)(({ theme: theme2 }) => ({
|
|
2253
2328
|
fontWeight: theme2.typography.fontWeightBold,
|
|
2254
2329
|
color: theme2.palette.text.primary
|
|
2255
2330
|
}));
|
|
2256
2331
|
var DropdownAnchor = forwardRef(
|
|
2257
|
-
({ open, label, leftElement, onOpen, variant, ...props }, ref) => /* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
2260
|
-
variant !== "header" && (open ? /* @__PURE__ */
|
|
2332
|
+
({ open, label, leftElement, onOpen, variant, ...props }, ref) => /* @__PURE__ */ jsx14(Clickable, { ref, ...props, color: "inherit", variant: "text", onClick: onOpen, children: /* @__PURE__ */ jsxs3(Anchor, { variant, spacing: 1, direction: "row", alignItems: "stretch", children: [
|
|
2333
|
+
/* @__PURE__ */ jsx14(Left, { children: leftElement }),
|
|
2334
|
+
/* @__PURE__ */ jsx14(Center, { variant: "body1", children: label }),
|
|
2335
|
+
variant !== "header" && (open ? /* @__PURE__ */ jsx14(ArrowDropUp, {}) : /* @__PURE__ */ jsx14(ArrowDropDown, {}))
|
|
2261
2336
|
] }) })
|
|
2262
2337
|
);
|
|
2263
2338
|
DropdownAnchor.displayName = "DropdownAnchor";
|
|
2264
2339
|
|
|
2265
2340
|
// src/components/navigation/Dropdown/Dropdown.tsx
|
|
2266
|
-
import { Fragment, jsx as
|
|
2341
|
+
import { Fragment, jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2267
2342
|
var Dropdown = ({
|
|
2268
2343
|
open,
|
|
2269
2344
|
label,
|
|
@@ -2275,15 +2350,15 @@ var Dropdown = ({
|
|
|
2275
2350
|
disableGutters = false,
|
|
2276
2351
|
disablePaddings = false,
|
|
2277
2352
|
variant,
|
|
2278
|
-
renderAnchor = ({ ref, open: open2, onOpen }) => /* @__PURE__ */
|
|
2353
|
+
renderAnchor = ({ ref, open: open2, onOpen }) => /* @__PURE__ */ jsx15(DropdownAnchor, { ref, open: open2, label, leftElement, onOpen, variant })
|
|
2279
2354
|
}) => {
|
|
2280
2355
|
const anchorRef = useRef(null);
|
|
2281
2356
|
const horizontal = direction === "left" ? "right" : "left";
|
|
2282
2357
|
const onOpen = useCallback(() => onToggle?.(true), [onToggle]);
|
|
2283
2358
|
const padding = dense ? 1 : 2;
|
|
2284
|
-
return /* @__PURE__ */
|
|
2359
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
2285
2360
|
renderAnchor({ ref: anchorRef, onOpen, open }),
|
|
2286
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ jsx15(
|
|
2287
2362
|
Popover,
|
|
2288
2363
|
{
|
|
2289
2364
|
"aria-label": "Overlay",
|
|
@@ -2332,7 +2407,7 @@ import {
|
|
|
2332
2407
|
ListItemText,
|
|
2333
2408
|
styled as styled9
|
|
2334
2409
|
} from "@mui/material";
|
|
2335
|
-
import { jsx as
|
|
2410
|
+
import { jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2336
2411
|
var StyledListItemButton = styled9(ListItemButton, {
|
|
2337
2412
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "size"
|
|
2338
2413
|
})(({ selected, size: size3 = "medium" }) => {
|
|
@@ -2371,16 +2446,16 @@ var SidebarItem = ({
|
|
|
2371
2446
|
endIcon,
|
|
2372
2447
|
children
|
|
2373
2448
|
}) => {
|
|
2374
|
-
return /* @__PURE__ */
|
|
2375
|
-
icon && /* @__PURE__ */
|
|
2376
|
-
/* @__PURE__ */
|
|
2377
|
-
endIcon && /* @__PURE__ */
|
|
2449
|
+
return /* @__PURE__ */ jsxs5(StyledListItemButton, { selected, size: size3, onClick, children: [
|
|
2450
|
+
icon && /* @__PURE__ */ jsx16(ListItemIcon, { children: icon }),
|
|
2451
|
+
/* @__PURE__ */ jsx16(ListItemText, { primary: label }),
|
|
2452
|
+
endIcon && /* @__PURE__ */ jsx16("div", { style: { marginLeft: "auto" }, children: endIcon }),
|
|
2378
2453
|
children
|
|
2379
2454
|
] });
|
|
2380
2455
|
};
|
|
2381
2456
|
|
|
2382
2457
|
// src/components/navigation/Sidebar.tsx
|
|
2383
|
-
import { jsx as
|
|
2458
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2384
2459
|
var StyledDrawer = styled10(Drawer)(() => ({
|
|
2385
2460
|
"& .MuiDrawer-paper": {
|
|
2386
2461
|
backgroundColor: colors.background.paper,
|
|
@@ -2395,7 +2470,7 @@ var Sidebar = ({
|
|
|
2395
2470
|
onClose,
|
|
2396
2471
|
variant = "permanent"
|
|
2397
2472
|
}) => {
|
|
2398
|
-
return /* @__PURE__ */
|
|
2473
|
+
return /* @__PURE__ */ jsx17(
|
|
2399
2474
|
StyledDrawer,
|
|
2400
2475
|
{
|
|
2401
2476
|
variant,
|
|
@@ -2409,7 +2484,7 @@ var Sidebar = ({
|
|
|
2409
2484
|
boxSizing: "border-box"
|
|
2410
2485
|
}
|
|
2411
2486
|
},
|
|
2412
|
-
children: /* @__PURE__ */
|
|
2487
|
+
children: /* @__PURE__ */ jsx17(Box, { sx: { overflow: "auto", padding: "8px 0" }, children: /* @__PURE__ */ jsx17(List, { children: items.map((item, index) => /* @__PURE__ */ jsx17(SidebarItem, { ...item }, index)) }) })
|
|
2413
2488
|
}
|
|
2414
2489
|
);
|
|
2415
2490
|
};
|
|
@@ -2418,7 +2493,7 @@ var Sidebar = ({
|
|
|
2418
2493
|
import { useState, useCallback as useCallback2 } from "react";
|
|
2419
2494
|
import {
|
|
2420
2495
|
Box as Box2,
|
|
2421
|
-
Typography as
|
|
2496
|
+
Typography as Typography3,
|
|
2422
2497
|
Avatar,
|
|
2423
2498
|
Tooltip,
|
|
2424
2499
|
IconButton as IconButton2,
|
|
@@ -2441,7 +2516,7 @@ import AddIcon from "@mui/icons-material/Add";
|
|
|
2441
2516
|
import CheckIcon from "@mui/icons-material/Check";
|
|
2442
2517
|
import SettingsIcon from "@mui/icons-material/Settings";
|
|
2443
2518
|
import PersonAddAltIcon from "@mui/icons-material/PersonAddAlt";
|
|
2444
|
-
import { Fragment as Fragment2, jsx as
|
|
2519
|
+
import { Fragment as Fragment2, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2445
2520
|
var ServiceSelectorButton = ({
|
|
2446
2521
|
services,
|
|
2447
2522
|
selectedServiceId,
|
|
@@ -2498,8 +2573,8 @@ var ServiceSelectorButton = ({
|
|
|
2498
2573
|
return matchesSearch && matchesArchivedFilter;
|
|
2499
2574
|
});
|
|
2500
2575
|
if (compact) {
|
|
2501
|
-
return /* @__PURE__ */
|
|
2502
|
-
/* @__PURE__ */
|
|
2576
|
+
return /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
2577
|
+
/* @__PURE__ */ jsx18(Box2, { sx: { position: "relative" }, children: /* @__PURE__ */ jsx18(Tooltip, { title: "Select service", placement: "right", children: /* @__PURE__ */ jsx18(
|
|
2503
2578
|
IconButton2,
|
|
2504
2579
|
{
|
|
2505
2580
|
onClick: handleOpenSelector,
|
|
@@ -2510,7 +2585,7 @@ var ServiceSelectorButton = ({
|
|
|
2510
2585
|
},
|
|
2511
2586
|
...sx
|
|
2512
2587
|
},
|
|
2513
|
-
children: /* @__PURE__ */
|
|
2588
|
+
children: /* @__PURE__ */ jsx18(
|
|
2514
2589
|
Avatar,
|
|
2515
2590
|
{
|
|
2516
2591
|
sx: {
|
|
@@ -2524,7 +2599,7 @@ var ServiceSelectorButton = ({
|
|
|
2524
2599
|
)
|
|
2525
2600
|
}
|
|
2526
2601
|
) }) }),
|
|
2527
|
-
/* @__PURE__ */
|
|
2602
|
+
/* @__PURE__ */ jsx18(
|
|
2528
2603
|
ServiceSelectorPanel,
|
|
2529
2604
|
{
|
|
2530
2605
|
open: Boolean(anchorEl),
|
|
@@ -2550,10 +2625,10 @@ var ServiceSelectorButton = ({
|
|
|
2550
2625
|
)
|
|
2551
2626
|
] });
|
|
2552
2627
|
}
|
|
2553
|
-
return /* @__PURE__ */
|
|
2554
|
-
/* @__PURE__ */
|
|
2555
|
-
selectedService ? /* @__PURE__ */
|
|
2556
|
-
isManager ? /* @__PURE__ */
|
|
2628
|
+
return /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
2629
|
+
/* @__PURE__ */ jsxs6(Box2, { sx: { display: "flex", alignItems: "center", ...sx }, children: [
|
|
2630
|
+
selectedService ? /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
2631
|
+
isManager ? /* @__PURE__ */ jsxs6(
|
|
2557
2632
|
Link,
|
|
2558
2633
|
{
|
|
2559
2634
|
underline: "hover",
|
|
@@ -2567,7 +2642,7 @@ var ServiceSelectorButton = ({
|
|
|
2567
2642
|
mr: 0.5
|
|
2568
2643
|
},
|
|
2569
2644
|
children: [
|
|
2570
|
-
/* @__PURE__ */
|
|
2645
|
+
/* @__PURE__ */ jsx18(
|
|
2571
2646
|
Avatar,
|
|
2572
2647
|
{
|
|
2573
2648
|
sx: {
|
|
@@ -2583,7 +2658,7 @@ var ServiceSelectorButton = ({
|
|
|
2583
2658
|
selectedService.name
|
|
2584
2659
|
]
|
|
2585
2660
|
}
|
|
2586
|
-
) : /* @__PURE__ */
|
|
2661
|
+
) : /* @__PURE__ */ jsxs6(
|
|
2587
2662
|
Box2,
|
|
2588
2663
|
{
|
|
2589
2664
|
sx: {
|
|
@@ -2594,7 +2669,7 @@ var ServiceSelectorButton = ({
|
|
|
2594
2669
|
color: "text.primary"
|
|
2595
2670
|
},
|
|
2596
2671
|
children: [
|
|
2597
|
-
/* @__PURE__ */
|
|
2672
|
+
/* @__PURE__ */ jsx18(
|
|
2598
2673
|
Avatar,
|
|
2599
2674
|
{
|
|
2600
2675
|
sx: {
|
|
@@ -2611,7 +2686,7 @@ var ServiceSelectorButton = ({
|
|
|
2611
2686
|
]
|
|
2612
2687
|
}
|
|
2613
2688
|
),
|
|
2614
|
-
selectedService.archived && /* @__PURE__ */
|
|
2689
|
+
selectedService.archived && /* @__PURE__ */ jsx18(
|
|
2615
2690
|
Chip,
|
|
2616
2691
|
{
|
|
2617
2692
|
size: "small",
|
|
@@ -2627,8 +2702,8 @@ var ServiceSelectorButton = ({
|
|
|
2627
2702
|
}
|
|
2628
2703
|
}
|
|
2629
2704
|
)
|
|
2630
|
-
] }) : /* @__PURE__ */
|
|
2631
|
-
|
|
2705
|
+
] }) : /* @__PURE__ */ jsx18(
|
|
2706
|
+
Typography3,
|
|
2632
2707
|
{
|
|
2633
2708
|
variant: "body2",
|
|
2634
2709
|
color: "text.secondary",
|
|
@@ -2638,7 +2713,7 @@ var ServiceSelectorButton = ({
|
|
|
2638
2713
|
children: "Select Service"
|
|
2639
2714
|
}
|
|
2640
2715
|
),
|
|
2641
|
-
/* @__PURE__ */
|
|
2716
|
+
/* @__PURE__ */ jsx18(
|
|
2642
2717
|
IconButton2,
|
|
2643
2718
|
{
|
|
2644
2719
|
onClick: handleOpenSelector,
|
|
@@ -2648,11 +2723,11 @@ var ServiceSelectorButton = ({
|
|
|
2648
2723
|
ml: 0.5,
|
|
2649
2724
|
color: "text.secondary"
|
|
2650
2725
|
},
|
|
2651
|
-
children: /* @__PURE__ */
|
|
2726
|
+
children: /* @__PURE__ */ jsx18(KeyboardArrowDownIcon, { fontSize: "small" })
|
|
2652
2727
|
}
|
|
2653
2728
|
)
|
|
2654
2729
|
] }),
|
|
2655
|
-
/* @__PURE__ */
|
|
2730
|
+
/* @__PURE__ */ jsx18(
|
|
2656
2731
|
ServiceSelectorPanel,
|
|
2657
2732
|
{
|
|
2658
2733
|
open: Boolean(anchorEl),
|
|
@@ -2721,7 +2796,7 @@ var ServiceSelectorPanel = ({
|
|
|
2721
2796
|
}
|
|
2722
2797
|
}
|
|
2723
2798
|
};
|
|
2724
|
-
return /* @__PURE__ */
|
|
2799
|
+
return /* @__PURE__ */ jsxs6(
|
|
2725
2800
|
Menu,
|
|
2726
2801
|
{
|
|
2727
2802
|
anchorEl,
|
|
@@ -2746,7 +2821,7 @@ var ServiceSelectorPanel = ({
|
|
|
2746
2821
|
}
|
|
2747
2822
|
},
|
|
2748
2823
|
children: [
|
|
2749
|
-
selectedService && /* @__PURE__ */
|
|
2824
|
+
selectedService && /* @__PURE__ */ jsxs6(
|
|
2750
2825
|
Box2,
|
|
2751
2826
|
{
|
|
2752
2827
|
sx: {
|
|
@@ -2758,12 +2833,12 @@ var ServiceSelectorPanel = ({
|
|
|
2758
2833
|
borderColor: "divider"
|
|
2759
2834
|
},
|
|
2760
2835
|
children: [
|
|
2761
|
-
/* @__PURE__ */
|
|
2836
|
+
/* @__PURE__ */ jsxs6(Box2, { sx: {
|
|
2762
2837
|
display: "flex",
|
|
2763
2838
|
alignItems: "center",
|
|
2764
2839
|
mb: 1.5
|
|
2765
2840
|
}, children: [
|
|
2766
|
-
/* @__PURE__ */
|
|
2841
|
+
/* @__PURE__ */ jsx18(
|
|
2767
2842
|
Avatar,
|
|
2768
2843
|
{
|
|
2769
2844
|
sx: {
|
|
@@ -2776,9 +2851,9 @@ var ServiceSelectorPanel = ({
|
|
|
2776
2851
|
children: selectedService.name.charAt(0)
|
|
2777
2852
|
}
|
|
2778
2853
|
),
|
|
2779
|
-
/* @__PURE__ */
|
|
2780
|
-
/* @__PURE__ */
|
|
2781
|
-
/* @__PURE__ */
|
|
2854
|
+
/* @__PURE__ */ jsx18(Box2, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxs6(Box2, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
2855
|
+
/* @__PURE__ */ jsx18(Typography3, { variant: "subtitle1", sx: { fontWeight: 600, fontSize: "1rem" }, children: selectedService.name }),
|
|
2856
|
+
/* @__PURE__ */ jsx18(
|
|
2782
2857
|
Box2,
|
|
2783
2858
|
{
|
|
2784
2859
|
sx: {
|
|
@@ -2797,11 +2872,11 @@ var ServiceSelectorPanel = ({
|
|
|
2797
2872
|
)
|
|
2798
2873
|
] }) })
|
|
2799
2874
|
] }),
|
|
2800
|
-
(onOpenSettings || onOpenAddMember) && /* @__PURE__ */
|
|
2801
|
-
onOpenAddMember && /* @__PURE__ */
|
|
2875
|
+
(onOpenSettings || onOpenAddMember) && /* @__PURE__ */ jsxs6(Box2, { sx: { display: "flex", gap: 1 }, children: [
|
|
2876
|
+
onOpenAddMember && /* @__PURE__ */ jsx18(
|
|
2802
2877
|
Button3,
|
|
2803
2878
|
{
|
|
2804
|
-
startIcon: /* @__PURE__ */
|
|
2879
|
+
startIcon: /* @__PURE__ */ jsx18(PersonAddAltIcon, {}),
|
|
2805
2880
|
variant: "outlined",
|
|
2806
2881
|
size: "small",
|
|
2807
2882
|
onClick: (e) => {
|
|
@@ -2831,10 +2906,10 @@ var ServiceSelectorPanel = ({
|
|
|
2831
2906
|
children: "Add member"
|
|
2832
2907
|
}
|
|
2833
2908
|
),
|
|
2834
|
-
onOpenSettings && /* @__PURE__ */
|
|
2909
|
+
onOpenSettings && /* @__PURE__ */ jsx18(
|
|
2835
2910
|
Button3,
|
|
2836
2911
|
{
|
|
2837
|
-
startIcon: /* @__PURE__ */
|
|
2912
|
+
startIcon: /* @__PURE__ */ jsx18(SettingsIcon, {}),
|
|
2838
2913
|
variant: "outlined",
|
|
2839
2914
|
size: "small",
|
|
2840
2915
|
onClick: (e) => {
|
|
@@ -2868,9 +2943,9 @@ var ServiceSelectorPanel = ({
|
|
|
2868
2943
|
]
|
|
2869
2944
|
}
|
|
2870
2945
|
),
|
|
2871
|
-
/* @__PURE__ */
|
|
2872
|
-
/* @__PURE__ */
|
|
2873
|
-
/* @__PURE__ */
|
|
2946
|
+
/* @__PURE__ */ jsxs6(Box2, { sx: { px: 2, pt: 2, pb: 1.5 }, children: [
|
|
2947
|
+
/* @__PURE__ */ jsxs6(Box2, { sx: { display: "flex", alignItems: "center", mb: 1.5 }, children: [
|
|
2948
|
+
/* @__PURE__ */ jsx18(
|
|
2874
2949
|
TextField2,
|
|
2875
2950
|
{
|
|
2876
2951
|
size: "small",
|
|
@@ -2879,7 +2954,7 @@ var ServiceSelectorPanel = ({
|
|
|
2879
2954
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
2880
2955
|
sx: { flex: 1 },
|
|
2881
2956
|
InputProps: {
|
|
2882
|
-
startAdornment: /* @__PURE__ */
|
|
2957
|
+
startAdornment: /* @__PURE__ */ jsx18(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx18(SearchIcon2, { fontSize: "small", color: "action" }) }),
|
|
2883
2958
|
sx: {
|
|
2884
2959
|
borderRadius: 1.5,
|
|
2885
2960
|
backgroundColor: "rgba(0, 0, 0, 0.04)",
|
|
@@ -2889,18 +2964,18 @@ var ServiceSelectorPanel = ({
|
|
|
2889
2964
|
}
|
|
2890
2965
|
}
|
|
2891
2966
|
),
|
|
2892
|
-
/* @__PURE__ */
|
|
2967
|
+
/* @__PURE__ */ jsx18(Tooltip, { title: showArchived ? "Show active" : "Show archived", children: /* @__PURE__ */ jsx18(
|
|
2893
2968
|
IconButton2,
|
|
2894
2969
|
{
|
|
2895
2970
|
size: "small",
|
|
2896
2971
|
onClick: toggleArchived,
|
|
2897
2972
|
color: showArchived ? "primary" : "default",
|
|
2898
2973
|
sx: { ml: 1 },
|
|
2899
|
-
children: showArchived ? /* @__PURE__ */
|
|
2974
|
+
children: showArchived ? /* @__PURE__ */ jsx18(UnarchiveIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx18(ArchiveIcon, { fontSize: "small" })
|
|
2900
2975
|
}
|
|
2901
2976
|
) })
|
|
2902
2977
|
] }),
|
|
2903
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ jsx18(
|
|
2904
2979
|
Box2,
|
|
2905
2980
|
{
|
|
2906
2981
|
sx: {
|
|
@@ -2908,9 +2983,9 @@ var ServiceSelectorPanel = ({
|
|
|
2908
2983
|
overflow: "auto",
|
|
2909
2984
|
py: 1
|
|
2910
2985
|
},
|
|
2911
|
-
children: loading ? /* @__PURE__ */
|
|
2912
|
-
/* @__PURE__ */
|
|
2913
|
-
|
|
2986
|
+
children: loading ? /* @__PURE__ */ jsx18(Box2, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx18(Typography3, { variant: "body2", color: "text.secondary", children: "Loading services..." }) }) : filteredServices.length === 0 ? /* @__PURE__ */ jsx18(Box2, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx18(Typography3, { variant: "body2", color: "text.secondary", children: searchTerm ? `No ${showArchived ? "archived " : ""}services matching "${searchTerm}"` : showArchived ? "No archived services found" : "No active services found" }) }) : /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
2987
|
+
/* @__PURE__ */ jsxs6(
|
|
2988
|
+
Typography3,
|
|
2914
2989
|
{
|
|
2915
2990
|
variant: "caption",
|
|
2916
2991
|
sx: {
|
|
@@ -2925,7 +3000,7 @@ var ServiceSelectorPanel = ({
|
|
|
2925
3000
|
},
|
|
2926
3001
|
children: [
|
|
2927
3002
|
"Services",
|
|
2928
|
-
showArchived && /* @__PURE__ */
|
|
3003
|
+
showArchived && /* @__PURE__ */ jsx18(
|
|
2929
3004
|
Chip,
|
|
2930
3005
|
{
|
|
2931
3006
|
size: "small",
|
|
@@ -2944,7 +3019,7 @@ var ServiceSelectorPanel = ({
|
|
|
2944
3019
|
]
|
|
2945
3020
|
}
|
|
2946
3021
|
),
|
|
2947
|
-
/* @__PURE__ */
|
|
3022
|
+
/* @__PURE__ */ jsx18(List2, { disablePadding: true, children: filteredServices.map((service) => /* @__PURE__ */ jsxs6(
|
|
2948
3023
|
ListItem,
|
|
2949
3024
|
{
|
|
2950
3025
|
sx: {
|
|
@@ -2958,7 +3033,7 @@ var ServiceSelectorPanel = ({
|
|
|
2958
3033
|
position: "relative"
|
|
2959
3034
|
},
|
|
2960
3035
|
onClick: () => onSelectService(service.id),
|
|
2961
|
-
secondaryAction: service.id === selectedServiceId ? /* @__PURE__ */
|
|
3036
|
+
secondaryAction: service.id === selectedServiceId ? /* @__PURE__ */ jsx18(
|
|
2962
3037
|
CheckIcon,
|
|
2963
3038
|
{
|
|
2964
3039
|
sx: {
|
|
@@ -2968,7 +3043,7 @@ var ServiceSelectorPanel = ({
|
|
|
2968
3043
|
}
|
|
2969
3044
|
) : null,
|
|
2970
3045
|
children: [
|
|
2971
|
-
/* @__PURE__ */
|
|
3046
|
+
/* @__PURE__ */ jsx18(ListItemAvatar, { sx: { minWidth: 40 }, children: /* @__PURE__ */ jsx18(
|
|
2972
3047
|
Avatar,
|
|
2973
3048
|
{
|
|
2974
3049
|
sx: {
|
|
@@ -2981,11 +3056,11 @@ var ServiceSelectorPanel = ({
|
|
|
2981
3056
|
children: service.name.charAt(0)
|
|
2982
3057
|
}
|
|
2983
3058
|
) }),
|
|
2984
|
-
/* @__PURE__ */
|
|
3059
|
+
/* @__PURE__ */ jsx18(
|
|
2985
3060
|
ListItemText2,
|
|
2986
3061
|
{
|
|
2987
|
-
primary: /* @__PURE__ */
|
|
2988
|
-
|
|
3062
|
+
primary: /* @__PURE__ */ jsx18(Box2, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: /* @__PURE__ */ jsx18(
|
|
3063
|
+
Typography3,
|
|
2989
3064
|
{
|
|
2990
3065
|
variant: "body2",
|
|
2991
3066
|
sx: {
|
|
@@ -3006,7 +3081,7 @@ var ServiceSelectorPanel = ({
|
|
|
3006
3081
|
] })
|
|
3007
3082
|
}
|
|
3008
3083
|
),
|
|
3009
|
-
/* @__PURE__ */
|
|
3084
|
+
/* @__PURE__ */ jsx18(
|
|
3010
3085
|
Box2,
|
|
3011
3086
|
{
|
|
3012
3087
|
sx: {
|
|
@@ -3016,12 +3091,12 @@ var ServiceSelectorPanel = ({
|
|
|
3016
3091
|
borderTop: 1,
|
|
3017
3092
|
borderColor: "divider"
|
|
3018
3093
|
},
|
|
3019
|
-
children: /* @__PURE__ */
|
|
3094
|
+
children: /* @__PURE__ */ jsx18(
|
|
3020
3095
|
Button3,
|
|
3021
3096
|
{
|
|
3022
3097
|
fullWidth: true,
|
|
3023
3098
|
variant: "text",
|
|
3024
|
-
startIcon: /* @__PURE__ */
|
|
3099
|
+
startIcon: /* @__PURE__ */ jsx18(AddIcon, {}),
|
|
3025
3100
|
onClick: handleCreateClick,
|
|
3026
3101
|
sx: {
|
|
3027
3102
|
textTransform: "none",
|
|
@@ -3049,7 +3124,7 @@ var ServiceSelectorPanel = ({
|
|
|
3049
3124
|
import React2, { useState as useState2, useCallback as useCallback3 } from "react";
|
|
3050
3125
|
import {
|
|
3051
3126
|
Box as Box3,
|
|
3052
|
-
Typography as
|
|
3127
|
+
Typography as Typography4,
|
|
3053
3128
|
Avatar as Avatar2,
|
|
3054
3129
|
IconButton as IconButton3,
|
|
3055
3130
|
Link as Link2,
|
|
@@ -3066,7 +3141,7 @@ import KeyboardArrowDownIcon2 from "@mui/icons-material/KeyboardArrowDown";
|
|
|
3066
3141
|
import SearchIcon3 from "@mui/icons-material/Search";
|
|
3067
3142
|
import AddIcon2 from "@mui/icons-material/Add";
|
|
3068
3143
|
import CheckIcon2 from "@mui/icons-material/Check";
|
|
3069
|
-
import { Fragment as Fragment3, jsx as
|
|
3144
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3070
3145
|
var WorkspaceSelectorButton = ({
|
|
3071
3146
|
workspaces,
|
|
3072
3147
|
selectedWorkspaceId,
|
|
@@ -3098,9 +3173,9 @@ var WorkspaceSelectorButton = ({
|
|
|
3098
3173
|
if (!workspaces || workspaces.length === 0) {
|
|
3099
3174
|
return null;
|
|
3100
3175
|
}
|
|
3101
|
-
return /* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3103
|
-
selectedWorkspace ? /* @__PURE__ */
|
|
3176
|
+
return /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
3177
|
+
/* @__PURE__ */ jsxs7(Box3, { sx: { display: "flex", alignItems: "center", ...sx }, children: [
|
|
3178
|
+
selectedWorkspace ? /* @__PURE__ */ jsx19(Fragment3, { children: /* @__PURE__ */ jsxs7(
|
|
3104
3179
|
Link2,
|
|
3105
3180
|
{
|
|
3106
3181
|
underline: "hover",
|
|
@@ -3119,7 +3194,7 @@ var WorkspaceSelectorButton = ({
|
|
|
3119
3194
|
mr: 0.5
|
|
3120
3195
|
},
|
|
3121
3196
|
children: [
|
|
3122
|
-
/* @__PURE__ */
|
|
3197
|
+
/* @__PURE__ */ jsx19(
|
|
3123
3198
|
Avatar2,
|
|
3124
3199
|
{
|
|
3125
3200
|
sx: {
|
|
@@ -3135,8 +3210,8 @@ var WorkspaceSelectorButton = ({
|
|
|
3135
3210
|
selectedWorkspace.name
|
|
3136
3211
|
]
|
|
3137
3212
|
}
|
|
3138
|
-
) }) : /* @__PURE__ */
|
|
3139
|
-
|
|
3213
|
+
) }) : /* @__PURE__ */ jsx19(
|
|
3214
|
+
Typography4,
|
|
3140
3215
|
{
|
|
3141
3216
|
variant: "body2",
|
|
3142
3217
|
color: "text.secondary",
|
|
@@ -3146,7 +3221,7 @@ var WorkspaceSelectorButton = ({
|
|
|
3146
3221
|
children: "Select Workspace"
|
|
3147
3222
|
}
|
|
3148
3223
|
),
|
|
3149
|
-
/* @__PURE__ */
|
|
3224
|
+
/* @__PURE__ */ jsx19(
|
|
3150
3225
|
IconButton3,
|
|
3151
3226
|
{
|
|
3152
3227
|
onClick: handleOpenSelector,
|
|
@@ -3156,11 +3231,11 @@ var WorkspaceSelectorButton = ({
|
|
|
3156
3231
|
ml: 0.5,
|
|
3157
3232
|
color: "text.secondary"
|
|
3158
3233
|
},
|
|
3159
|
-
children: /* @__PURE__ */
|
|
3234
|
+
children: /* @__PURE__ */ jsx19(KeyboardArrowDownIcon2, { fontSize: "small" })
|
|
3160
3235
|
}
|
|
3161
3236
|
)
|
|
3162
3237
|
] }),
|
|
3163
|
-
/* @__PURE__ */
|
|
3238
|
+
/* @__PURE__ */ jsx19(
|
|
3164
3239
|
WorkspaceSelectorPanel,
|
|
3165
3240
|
{
|
|
3166
3241
|
open: Boolean(anchorEl),
|
|
@@ -3206,7 +3281,7 @@ var WorkspaceSelectorPanel = ({
|
|
|
3206
3281
|
onSelectWorkspace(workspaceId);
|
|
3207
3282
|
onClose();
|
|
3208
3283
|
};
|
|
3209
|
-
return /* @__PURE__ */
|
|
3284
|
+
return /* @__PURE__ */ jsx19(
|
|
3210
3285
|
Menu2,
|
|
3211
3286
|
{
|
|
3212
3287
|
open,
|
|
@@ -3222,8 +3297,8 @@ var WorkspaceSelectorPanel = ({
|
|
|
3222
3297
|
borderRadius: 2
|
|
3223
3298
|
}
|
|
3224
3299
|
},
|
|
3225
|
-
children: /* @__PURE__ */
|
|
3226
|
-
/* @__PURE__ */
|
|
3300
|
+
children: /* @__PURE__ */ jsxs7(Box3, { children: [
|
|
3301
|
+
/* @__PURE__ */ jsx19(Box3, { sx: { px: 2, pt: 2, pb: 1.5 }, children: /* @__PURE__ */ jsx19(
|
|
3227
3302
|
TextField3,
|
|
3228
3303
|
{
|
|
3229
3304
|
fullWidth: true,
|
|
@@ -3232,11 +3307,11 @@ var WorkspaceSelectorPanel = ({
|
|
|
3232
3307
|
value: searchTerm,
|
|
3233
3308
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
3234
3309
|
InputProps: {
|
|
3235
|
-
startAdornment: /* @__PURE__ */
|
|
3310
|
+
startAdornment: /* @__PURE__ */ jsx19(InputAdornment4, { position: "start", children: /* @__PURE__ */ jsx19(SearchIcon3, { fontSize: "small" }) })
|
|
3236
3311
|
}
|
|
3237
3312
|
}
|
|
3238
3313
|
) }),
|
|
3239
|
-
/* @__PURE__ */
|
|
3314
|
+
/* @__PURE__ */ jsx19(Box3, { sx: { maxHeight: 400, overflowY: "auto" }, children: loading ? /* @__PURE__ */ jsx19(Box3, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx19(Typography4, { variant: "body2", color: "text.secondary", children: "Loading..." }) }) : filteredWorkspaces.length === 0 ? /* @__PURE__ */ jsx19(Box3, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx19(Typography4, { variant: "body2", color: "text.secondary", children: "No workspaces found" }) }) : /* @__PURE__ */ jsx19(List3, { dense: true, children: filteredWorkspaces.map((workspace) => /* @__PURE__ */ jsxs7(
|
|
3240
3315
|
ListItem2,
|
|
3241
3316
|
{
|
|
3242
3317
|
onClick: () => handleSelect(workspace.id),
|
|
@@ -3249,19 +3324,19 @@ var WorkspaceSelectorPanel = ({
|
|
|
3249
3324
|
}
|
|
3250
3325
|
},
|
|
3251
3326
|
children: [
|
|
3252
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ jsx19(ListItemAvatar2, { children: /* @__PURE__ */ jsx19(
|
|
3253
3328
|
Avatar2,
|
|
3254
3329
|
{
|
|
3255
3330
|
sx: { width: 32, height: 32, bgcolor: "secondary.main" },
|
|
3256
3331
|
children: workspace.name.charAt(0)
|
|
3257
3332
|
}
|
|
3258
3333
|
) }),
|
|
3259
|
-
/* @__PURE__ */
|
|
3334
|
+
/* @__PURE__ */ jsx19(
|
|
3260
3335
|
ListItemText3,
|
|
3261
3336
|
{
|
|
3262
|
-
primary: /* @__PURE__ */
|
|
3263
|
-
/* @__PURE__ */
|
|
3264
|
-
workspace.id === selectedWorkspaceId && /* @__PURE__ */
|
|
3337
|
+
primary: /* @__PURE__ */ jsxs7(Box3, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
3338
|
+
/* @__PURE__ */ jsx19(Typography4, { variant: "body2", fontWeight: 500, children: workspace.name }),
|
|
3339
|
+
workspace.id === selectedWorkspaceId && /* @__PURE__ */ jsx19(CheckIcon2, { fontSize: "small", color: "primary" })
|
|
3265
3340
|
] }),
|
|
3266
3341
|
secondary: workspace.description
|
|
3267
3342
|
}
|
|
@@ -3270,7 +3345,7 @@ var WorkspaceSelectorPanel = ({
|
|
|
3270
3345
|
},
|
|
3271
3346
|
workspace.id
|
|
3272
3347
|
)) }) }),
|
|
3273
|
-
/* @__PURE__ */
|
|
3348
|
+
/* @__PURE__ */ jsx19(
|
|
3274
3349
|
Box3,
|
|
3275
3350
|
{
|
|
3276
3351
|
sx: {
|
|
@@ -3280,12 +3355,12 @@ var WorkspaceSelectorPanel = ({
|
|
|
3280
3355
|
borderTop: 1,
|
|
3281
3356
|
borderColor: "divider"
|
|
3282
3357
|
},
|
|
3283
|
-
children: /* @__PURE__ */
|
|
3358
|
+
children: /* @__PURE__ */ jsx19(
|
|
3284
3359
|
Button4,
|
|
3285
3360
|
{
|
|
3286
3361
|
fullWidth: true,
|
|
3287
3362
|
variant: "text",
|
|
3288
|
-
startIcon: /* @__PURE__ */
|
|
3363
|
+
startIcon: /* @__PURE__ */ jsx19(AddIcon2, {}),
|
|
3289
3364
|
onClick: handleCreateClick,
|
|
3290
3365
|
sx: {
|
|
3291
3366
|
textTransform: "none",
|
|
@@ -3316,21 +3391,21 @@ import {
|
|
|
3316
3391
|
StepContent as MuiStepContent,
|
|
3317
3392
|
StepButton as MuiStepButton
|
|
3318
3393
|
} from "@mui/material";
|
|
3319
|
-
import { jsx as
|
|
3394
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
3320
3395
|
var Stepper = (props) => {
|
|
3321
|
-
return /* @__PURE__ */
|
|
3396
|
+
return /* @__PURE__ */ jsx20(MuiStepper, { ...props });
|
|
3322
3397
|
};
|
|
3323
3398
|
var Step = (props) => {
|
|
3324
|
-
return /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ jsx20(MuiStep, { ...props });
|
|
3325
3400
|
};
|
|
3326
3401
|
var StepLabel = (props) => {
|
|
3327
|
-
return /* @__PURE__ */
|
|
3402
|
+
return /* @__PURE__ */ jsx20(MuiStepLabel, { ...props });
|
|
3328
3403
|
};
|
|
3329
3404
|
var StepContent = (props) => {
|
|
3330
|
-
return /* @__PURE__ */
|
|
3405
|
+
return /* @__PURE__ */ jsx20(MuiStepContent, { ...props });
|
|
3331
3406
|
};
|
|
3332
3407
|
var StepButton = (props) => {
|
|
3333
|
-
return /* @__PURE__ */
|
|
3408
|
+
return /* @__PURE__ */ jsx20(MuiStepButton, { ...props });
|
|
3334
3409
|
};
|
|
3335
3410
|
|
|
3336
3411
|
// src/components/navigation/SideNav/SideNav.tsx
|
|
@@ -3356,7 +3431,7 @@ var scrollbarStyles = {
|
|
|
3356
3431
|
};
|
|
3357
3432
|
|
|
3358
3433
|
// src/components/navigation/SideNav/SideNav.tsx
|
|
3359
|
-
import { jsx as
|
|
3434
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
3360
3435
|
var SideNavContext = React3.createContext({
|
|
3361
3436
|
collapsed: false,
|
|
3362
3437
|
showTooltips: true
|
|
@@ -3406,7 +3481,7 @@ var Header = React3.memo(({ children, className }) => {
|
|
|
3406
3481
|
}
|
|
3407
3482
|
return child;
|
|
3408
3483
|
});
|
|
3409
|
-
return /* @__PURE__ */
|
|
3484
|
+
return /* @__PURE__ */ jsx21(HeaderSection, { className, "data-testid": "sidenav-header", children: enhancedChildren });
|
|
3410
3485
|
});
|
|
3411
3486
|
Header.displayName = "SideNav.Header";
|
|
3412
3487
|
var Navigation = React3.memo(({ children, className }) => {
|
|
@@ -3420,7 +3495,7 @@ var Navigation = React3.memo(({ children, className }) => {
|
|
|
3420
3495
|
}
|
|
3421
3496
|
return child;
|
|
3422
3497
|
});
|
|
3423
|
-
return /* @__PURE__ */
|
|
3498
|
+
return /* @__PURE__ */ jsx21(NavigationSection, { className, "data-testid": "sidenav-navigation", children: enhancedChildren });
|
|
3424
3499
|
});
|
|
3425
3500
|
Navigation.displayName = "SideNav.Navigation";
|
|
3426
3501
|
var Footer = React3.memo(({ children, className }) => {
|
|
@@ -3433,7 +3508,7 @@ var Footer = React3.memo(({ children, className }) => {
|
|
|
3433
3508
|
}
|
|
3434
3509
|
return child;
|
|
3435
3510
|
});
|
|
3436
|
-
return /* @__PURE__ */
|
|
3511
|
+
return /* @__PURE__ */ jsx21(FooterSection, { className, "data-testid": "sidenav-footer", children: enhancedChildren });
|
|
3437
3512
|
});
|
|
3438
3513
|
Footer.displayName = "SideNav.Footer";
|
|
3439
3514
|
var SideNav = Object.assign(
|
|
@@ -3469,7 +3544,7 @@ var SideNav = Object.assign(
|
|
|
3469
3544
|
showTooltips,
|
|
3470
3545
|
onToggleCollapse: handleToggleCollapse
|
|
3471
3546
|
};
|
|
3472
|
-
return /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ jsx21(SideNavContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx21(
|
|
3473
3548
|
SideNavContainer,
|
|
3474
3549
|
{
|
|
3475
3550
|
role: "navigation",
|
|
@@ -3496,11 +3571,11 @@ SideNav.displayName = "SideNav";
|
|
|
3496
3571
|
|
|
3497
3572
|
// src/components/navigation/SideNav/SideNavHeader.tsx
|
|
3498
3573
|
import React4 from "react";
|
|
3499
|
-
import { Box as Box5, Typography as
|
|
3574
|
+
import { Box as Box5, Typography as Typography5, IconButton as IconButton4, Tooltip as Tooltip2, ButtonBase } from "@mui/material";
|
|
3500
3575
|
import { styled as styled12 } from "@mui/material/styles";
|
|
3501
3576
|
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
3502
3577
|
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
3503
|
-
import { Fragment as Fragment4, jsx as
|
|
3578
|
+
import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3504
3579
|
var HeaderContainer = styled12(Box5, {
|
|
3505
3580
|
shouldForwardProp: (prop) => prop !== "isCollapsed"
|
|
3506
3581
|
})(({ theme: theme2, isCollapsed }) => ({
|
|
@@ -3541,8 +3616,8 @@ var SideNavHeader = React4.memo(({
|
|
|
3541
3616
|
collapsed = false
|
|
3542
3617
|
}) => {
|
|
3543
3618
|
const headerAriaLabel = ariaLabel || `${title} navigation header`;
|
|
3544
|
-
const brandingContent = /* @__PURE__ */
|
|
3545
|
-
logo && /* @__PURE__ */
|
|
3619
|
+
const brandingContent = /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
3620
|
+
logo && /* @__PURE__ */ jsx22(
|
|
3546
3621
|
Box5,
|
|
3547
3622
|
{
|
|
3548
3623
|
sx: {
|
|
@@ -3554,8 +3629,8 @@ var SideNavHeader = React4.memo(({
|
|
|
3554
3629
|
children: logo
|
|
3555
3630
|
}
|
|
3556
3631
|
),
|
|
3557
|
-
!collapsed && /* @__PURE__ */
|
|
3558
|
-
|
|
3632
|
+
!collapsed && /* @__PURE__ */ jsx22(
|
|
3633
|
+
Typography5,
|
|
3559
3634
|
{
|
|
3560
3635
|
variant: "subtitle1",
|
|
3561
3636
|
sx: {
|
|
@@ -3569,14 +3644,14 @@ var SideNavHeader = React4.memo(({
|
|
|
3569
3644
|
}
|
|
3570
3645
|
)
|
|
3571
3646
|
] });
|
|
3572
|
-
return /* @__PURE__ */
|
|
3647
|
+
return /* @__PURE__ */ jsxs8(
|
|
3573
3648
|
HeaderContainer,
|
|
3574
3649
|
{
|
|
3575
3650
|
"data-testid": "sidenav-header-content",
|
|
3576
3651
|
"aria-label": headerAriaLabel,
|
|
3577
3652
|
isCollapsed: collapsed,
|
|
3578
3653
|
children: [
|
|
3579
|
-
onLogoClick ? /* @__PURE__ */
|
|
3654
|
+
onLogoClick ? /* @__PURE__ */ jsx22(
|
|
3580
3655
|
BrandingButton,
|
|
3581
3656
|
{
|
|
3582
3657
|
onClick: onLogoClick,
|
|
@@ -3584,7 +3659,7 @@ var SideNavHeader = React4.memo(({
|
|
|
3584
3659
|
"data-testid": "sidenav-home-link",
|
|
3585
3660
|
children: brandingContent
|
|
3586
3661
|
}
|
|
3587
|
-
) : /* @__PURE__ */
|
|
3662
|
+
) : /* @__PURE__ */ jsx22(
|
|
3588
3663
|
Box5,
|
|
3589
3664
|
{
|
|
3590
3665
|
sx: {
|
|
@@ -3596,13 +3671,13 @@ var SideNavHeader = React4.memo(({
|
|
|
3596
3671
|
children: brandingContent
|
|
3597
3672
|
}
|
|
3598
3673
|
),
|
|
3599
|
-
showCollapseButton && /* @__PURE__ */
|
|
3674
|
+
showCollapseButton && /* @__PURE__ */ jsx22(
|
|
3600
3675
|
Tooltip2,
|
|
3601
3676
|
{
|
|
3602
3677
|
title: collapsed ? "Expand navigation" : "Collapse navigation",
|
|
3603
3678
|
placement: "right",
|
|
3604
3679
|
arrow: true,
|
|
3605
|
-
children: /* @__PURE__ */
|
|
3680
|
+
children: /* @__PURE__ */ jsx22(
|
|
3606
3681
|
IconButton4,
|
|
3607
3682
|
{
|
|
3608
3683
|
onClick: onCollapse,
|
|
@@ -3618,7 +3693,7 @@ var SideNavHeader = React4.memo(({
|
|
|
3618
3693
|
color: "text.primary"
|
|
3619
3694
|
}
|
|
3620
3695
|
},
|
|
3621
|
-
children: collapsed ? /* @__PURE__ */
|
|
3696
|
+
children: collapsed ? /* @__PURE__ */ jsx22(ChevronRightIcon, {}) : /* @__PURE__ */ jsx22(ChevronLeftIcon, {})
|
|
3622
3697
|
}
|
|
3623
3698
|
)
|
|
3624
3699
|
}
|
|
@@ -3643,7 +3718,7 @@ import {
|
|
|
3643
3718
|
Tooltip as Tooltip3
|
|
3644
3719
|
} from "@mui/material";
|
|
3645
3720
|
import { styled as styled13 } from "@mui/material/styles";
|
|
3646
|
-
import { jsx as
|
|
3721
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3647
3722
|
var StyledListItemButton2 = styled13(ListItemButton2, {
|
|
3648
3723
|
shouldForwardProp: (prop) => !["selected", "size", "iconPosition", "isCollapsed"].includes(prop)
|
|
3649
3724
|
})(({ theme: theme2, selected, size: size3, isCollapsed }) => {
|
|
@@ -3727,7 +3802,7 @@ var NavigationItem = React5.memo(({
|
|
|
3727
3802
|
onClick(id);
|
|
3728
3803
|
}
|
|
3729
3804
|
};
|
|
3730
|
-
const iconElement = icon && /* @__PURE__ */
|
|
3805
|
+
const iconElement = icon && /* @__PURE__ */ jsx23(
|
|
3731
3806
|
ListItemIcon2,
|
|
3732
3807
|
{
|
|
3733
3808
|
sx: {
|
|
@@ -3741,7 +3816,7 @@ var NavigationItem = React5.memo(({
|
|
|
3741
3816
|
children: icon
|
|
3742
3817
|
}
|
|
3743
3818
|
);
|
|
3744
|
-
const labelElement = /* @__PURE__ */
|
|
3819
|
+
const labelElement = /* @__PURE__ */ jsx23(
|
|
3745
3820
|
ListItemText4,
|
|
3746
3821
|
{
|
|
3747
3822
|
primary: label,
|
|
@@ -3760,7 +3835,7 @@ var NavigationItem = React5.memo(({
|
|
|
3760
3835
|
}
|
|
3761
3836
|
}
|
|
3762
3837
|
);
|
|
3763
|
-
const buttonContent = /* @__PURE__ */
|
|
3838
|
+
const buttonContent = /* @__PURE__ */ jsxs9(
|
|
3764
3839
|
StyledListItemButton2,
|
|
3765
3840
|
{
|
|
3766
3841
|
selected,
|
|
@@ -3777,7 +3852,7 @@ var NavigationItem = React5.memo(({
|
|
|
3777
3852
|
icon && iconPosition === "left" && iconElement,
|
|
3778
3853
|
labelElement,
|
|
3779
3854
|
icon && iconPosition === "right" && iconElement,
|
|
3780
|
-
endContent && !collapsed && /* @__PURE__ */
|
|
3855
|
+
endContent && !collapsed && /* @__PURE__ */ jsx23(
|
|
3781
3856
|
Box6,
|
|
3782
3857
|
{
|
|
3783
3858
|
sx: {
|
|
@@ -3792,7 +3867,7 @@ var NavigationItem = React5.memo(({
|
|
|
3792
3867
|
}
|
|
3793
3868
|
);
|
|
3794
3869
|
if (collapsed && showTooltip) {
|
|
3795
|
-
return /* @__PURE__ */
|
|
3870
|
+
return /* @__PURE__ */ jsx23(
|
|
3796
3871
|
Tooltip3,
|
|
3797
3872
|
{
|
|
3798
3873
|
title: label,
|
|
@@ -3809,7 +3884,7 @@ var NavigationItem = React5.memo(({
|
|
|
3809
3884
|
NavigationItem.displayName = "NavigationItem";
|
|
3810
3885
|
|
|
3811
3886
|
// src/components/navigation/SideNav/NavigationList.tsx
|
|
3812
|
-
import { jsx as
|
|
3887
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
3813
3888
|
var NavigationList = React6.memo(({
|
|
3814
3889
|
items,
|
|
3815
3890
|
selectedId,
|
|
@@ -3832,7 +3907,7 @@ var NavigationList = React6.memo(({
|
|
|
3832
3907
|
onSelectionChange(id);
|
|
3833
3908
|
}
|
|
3834
3909
|
};
|
|
3835
|
-
return /* @__PURE__ */
|
|
3910
|
+
return /* @__PURE__ */ jsx24(
|
|
3836
3911
|
List4,
|
|
3837
3912
|
{
|
|
3838
3913
|
role: "list",
|
|
@@ -3846,7 +3921,7 @@ var NavigationList = React6.memo(({
|
|
|
3846
3921
|
},
|
|
3847
3922
|
children: items.map((item, index) => {
|
|
3848
3923
|
const isSelected = currentSelectedId === item.id;
|
|
3849
|
-
return /* @__PURE__ */
|
|
3924
|
+
return /* @__PURE__ */ jsx24(
|
|
3850
3925
|
ListItem3,
|
|
3851
3926
|
{
|
|
3852
3927
|
role: "listitem",
|
|
@@ -3854,7 +3929,7 @@ var NavigationList = React6.memo(({
|
|
|
3854
3929
|
padding: 0,
|
|
3855
3930
|
display: "block"
|
|
3856
3931
|
},
|
|
3857
|
-
children: /* @__PURE__ */
|
|
3932
|
+
children: /* @__PURE__ */ jsx24(
|
|
3858
3933
|
NavigationItem,
|
|
3859
3934
|
{
|
|
3860
3935
|
...item,
|
|
@@ -3883,10 +3958,10 @@ NavigationList.displayName = "NavigationList";
|
|
|
3883
3958
|
|
|
3884
3959
|
// src/components/navigation/SideNav/ConnectionStatus.tsx
|
|
3885
3960
|
import React7 from "react";
|
|
3886
|
-
import { Box as Box7, Typography as
|
|
3961
|
+
import { Box as Box7, Typography as Typography6, Tooltip as Tooltip4 } from "@mui/material";
|
|
3887
3962
|
import { styled as styled14 } from "@mui/material/styles";
|
|
3888
3963
|
import PowerIcon from "@mui/icons-material/Power";
|
|
3889
|
-
import { jsx as
|
|
3964
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3890
3965
|
var StatusPill = styled14(Box7, {
|
|
3891
3966
|
shouldForwardProp: (prop) => !["variant", "interactive"].includes(prop)
|
|
3892
3967
|
})(({ theme: theme2, variant = "info", interactive }) => {
|
|
@@ -3961,7 +4036,7 @@ var ConnectionStatus = React7.memo(({
|
|
|
3961
4036
|
onClick();
|
|
3962
4037
|
}
|
|
3963
4038
|
};
|
|
3964
|
-
const statusContent = /* @__PURE__ */
|
|
4039
|
+
const statusContent = /* @__PURE__ */ jsxs10(
|
|
3965
4040
|
StatusPill,
|
|
3966
4041
|
{
|
|
3967
4042
|
role: "status",
|
|
@@ -3972,7 +4047,7 @@ var ConnectionStatus = React7.memo(({
|
|
|
3972
4047
|
interactive,
|
|
3973
4048
|
onClick: handleClick,
|
|
3974
4049
|
children: [
|
|
3975
|
-
/* @__PURE__ */
|
|
4050
|
+
/* @__PURE__ */ jsx25(
|
|
3976
4051
|
Box7,
|
|
3977
4052
|
{
|
|
3978
4053
|
sx: {
|
|
@@ -3981,15 +4056,15 @@ var ConnectionStatus = React7.memo(({
|
|
|
3981
4056
|
fontSize: 16,
|
|
3982
4057
|
color: "inherit"
|
|
3983
4058
|
},
|
|
3984
|
-
children: icon || /* @__PURE__ */
|
|
4059
|
+
children: icon || /* @__PURE__ */ jsx25(PowerIcon, { fontSize: "small" })
|
|
3985
4060
|
}
|
|
3986
4061
|
),
|
|
3987
|
-
/* @__PURE__ */
|
|
4062
|
+
/* @__PURE__ */ jsx25(Typography6, { className: "status-text", variant: "body2", children: compact ? compactText ?? status : status })
|
|
3988
4063
|
]
|
|
3989
4064
|
}
|
|
3990
4065
|
);
|
|
3991
4066
|
if (compact) {
|
|
3992
|
-
return /* @__PURE__ */
|
|
4067
|
+
return /* @__PURE__ */ jsx25(
|
|
3993
4068
|
Box7,
|
|
3994
4069
|
{
|
|
3995
4070
|
sx: {
|
|
@@ -3997,11 +4072,11 @@ var ConnectionStatus = React7.memo(({
|
|
|
3997
4072
|
justifyContent: "center",
|
|
3998
4073
|
padding: 1
|
|
3999
4074
|
},
|
|
4000
|
-
children: /* @__PURE__ */
|
|
4075
|
+
children: /* @__PURE__ */ jsx25(Tooltip4, { title: status, placement: "right", arrow: true, children: statusContent })
|
|
4001
4076
|
}
|
|
4002
4077
|
);
|
|
4003
4078
|
}
|
|
4004
|
-
return /* @__PURE__ */
|
|
4079
|
+
return /* @__PURE__ */ jsx25(
|
|
4005
4080
|
Box7,
|
|
4006
4081
|
{
|
|
4007
4082
|
sx: {
|
|
@@ -4017,10 +4092,10 @@ ConnectionStatus.displayName = "ConnectionStatus";
|
|
|
4017
4092
|
|
|
4018
4093
|
// src/components/navigation/SideNav/AccountSection.tsx
|
|
4019
4094
|
import React8 from "react";
|
|
4020
|
-
import { Box as Box8, Avatar as Avatar3, Typography as
|
|
4095
|
+
import { Box as Box8, Avatar as Avatar3, Typography as Typography7, Button as Button5, IconButton as IconButton5, Tooltip as Tooltip5 } from "@mui/material";
|
|
4021
4096
|
import { styled as styled15 } from "@mui/material/styles";
|
|
4022
4097
|
import LogoutIcon from "@mui/icons-material/Logout";
|
|
4023
|
-
import { jsx as
|
|
4098
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
4024
4099
|
var AccountContainer = styled15(Box8, {
|
|
4025
4100
|
shouldForwardProp: (prop) => !["layout", "isCompact"].includes(prop)
|
|
4026
4101
|
})(({ theme: theme2, layout = "horizontal", isCompact }) => ({
|
|
@@ -4062,14 +4137,14 @@ var AccountSection = React8.memo(({
|
|
|
4062
4137
|
const initials = user.initials || deriveInitials(user.name);
|
|
4063
4138
|
const avatarSrc = user.avatarUrl;
|
|
4064
4139
|
if (compact) {
|
|
4065
|
-
return /* @__PURE__ */
|
|
4066
|
-
/* @__PURE__ */
|
|
4140
|
+
return /* @__PURE__ */ jsxs11(AccountContainer, { layout, isCompact: true, "aria-label": "Account section", children: [
|
|
4141
|
+
/* @__PURE__ */ jsx26(
|
|
4067
4142
|
Tooltip5,
|
|
4068
4143
|
{
|
|
4069
4144
|
title: `${user.name}${user.email ? ` (${user.email})` : ""}`,
|
|
4070
4145
|
placement: "right",
|
|
4071
4146
|
arrow: true,
|
|
4072
|
-
children: /* @__PURE__ */
|
|
4147
|
+
children: /* @__PURE__ */ jsx26(
|
|
4073
4148
|
Avatar3,
|
|
4074
4149
|
{
|
|
4075
4150
|
src: avatarSrc,
|
|
@@ -4088,7 +4163,7 @@ var AccountSection = React8.memo(({
|
|
|
4088
4163
|
)
|
|
4089
4164
|
}
|
|
4090
4165
|
),
|
|
4091
|
-
/* @__PURE__ */
|
|
4166
|
+
/* @__PURE__ */ jsx26(Tooltip5, { title: "Logout", placement: "right", arrow: true, children: /* @__PURE__ */ jsx26(
|
|
4092
4167
|
IconButton5,
|
|
4093
4168
|
{
|
|
4094
4169
|
onClick: onLogout,
|
|
@@ -4101,13 +4176,13 @@ var AccountSection = React8.memo(({
|
|
|
4101
4176
|
color: "text.primary"
|
|
4102
4177
|
}
|
|
4103
4178
|
},
|
|
4104
|
-
children: /* @__PURE__ */
|
|
4179
|
+
children: /* @__PURE__ */ jsx26(LogoutIcon, { fontSize: "small" })
|
|
4105
4180
|
}
|
|
4106
4181
|
) })
|
|
4107
4182
|
] });
|
|
4108
4183
|
}
|
|
4109
|
-
return /* @__PURE__ */
|
|
4110
|
-
/* @__PURE__ */
|
|
4184
|
+
return /* @__PURE__ */ jsxs11(AccountContainer, { layout, isCompact: false, "aria-label": "Account section", children: [
|
|
4185
|
+
/* @__PURE__ */ jsx26(
|
|
4111
4186
|
Avatar3,
|
|
4112
4187
|
{
|
|
4113
4188
|
src: avatarSrc,
|
|
@@ -4123,7 +4198,7 @@ var AccountSection = React8.memo(({
|
|
|
4123
4198
|
children: initials
|
|
4124
4199
|
}
|
|
4125
4200
|
),
|
|
4126
|
-
/* @__PURE__ */
|
|
4201
|
+
/* @__PURE__ */ jsxs11(
|
|
4127
4202
|
Box8,
|
|
4128
4203
|
{
|
|
4129
4204
|
sx: {
|
|
@@ -4135,8 +4210,8 @@ var AccountSection = React8.memo(({
|
|
|
4135
4210
|
// Allow text truncation
|
|
4136
4211
|
},
|
|
4137
4212
|
children: [
|
|
4138
|
-
/* @__PURE__ */
|
|
4139
|
-
|
|
4213
|
+
/* @__PURE__ */ jsx26(
|
|
4214
|
+
Typography7,
|
|
4140
4215
|
{
|
|
4141
4216
|
variant: "body2",
|
|
4142
4217
|
sx: {
|
|
@@ -4149,8 +4224,8 @@ var AccountSection = React8.memo(({
|
|
|
4149
4224
|
children: user.name
|
|
4150
4225
|
}
|
|
4151
4226
|
),
|
|
4152
|
-
showEmail && user.email && /* @__PURE__ */
|
|
4153
|
-
|
|
4227
|
+
showEmail && user.email && /* @__PURE__ */ jsx26(
|
|
4228
|
+
Typography7,
|
|
4154
4229
|
{
|
|
4155
4230
|
variant: "caption",
|
|
4156
4231
|
sx: {
|
|
@@ -4164,12 +4239,12 @@ var AccountSection = React8.memo(({
|
|
|
4164
4239
|
children: user.email
|
|
4165
4240
|
}
|
|
4166
4241
|
),
|
|
4167
|
-
/* @__PURE__ */
|
|
4242
|
+
/* @__PURE__ */ jsx26(
|
|
4168
4243
|
Button5,
|
|
4169
4244
|
{
|
|
4170
4245
|
onClick: onLogout,
|
|
4171
4246
|
"aria-label": "Logout",
|
|
4172
|
-
startIcon: /* @__PURE__ */
|
|
4247
|
+
startIcon: /* @__PURE__ */ jsx26(LogoutIcon, { fontSize: "small" }),
|
|
4173
4248
|
sx: {
|
|
4174
4249
|
color: "text.secondary",
|
|
4175
4250
|
textTransform: "none",
|
|
@@ -4197,7 +4272,7 @@ AccountSection.displayName = "AccountSection";
|
|
|
4197
4272
|
// src/components/feedback/Badge.tsx
|
|
4198
4273
|
import MuiBadge from "@mui/material/Badge";
|
|
4199
4274
|
import { styled as styled16 } from "@mui/material/styles";
|
|
4200
|
-
import { jsx as
|
|
4275
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
4201
4276
|
var getBadgeColor = (variant) => {
|
|
4202
4277
|
switch (variant) {
|
|
4203
4278
|
case "primary":
|
|
@@ -4224,13 +4299,13 @@ var Badge = ({
|
|
|
4224
4299
|
badgeContent,
|
|
4225
4300
|
...props
|
|
4226
4301
|
}) => {
|
|
4227
|
-
return /* @__PURE__ */
|
|
4302
|
+
return /* @__PURE__ */ jsx27(StyledBadge, { badgeVariant: variant, badgeContent, ...props, children });
|
|
4228
4303
|
};
|
|
4229
4304
|
|
|
4230
4305
|
// src/components/feedback/Chip.tsx
|
|
4231
4306
|
import MuiChip from "@mui/material/Chip";
|
|
4232
4307
|
import { styled as styled17 } from "@mui/material/styles";
|
|
4233
|
-
import { jsx as
|
|
4308
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
4234
4309
|
var StyledDefaultChip = styled17(MuiChip)({
|
|
4235
4310
|
backgroundColor: colors.grey[100],
|
|
4236
4311
|
color: colors.text.primary,
|
|
@@ -4250,15 +4325,15 @@ var Chip2 = ({
|
|
|
4250
4325
|
...props
|
|
4251
4326
|
}) => {
|
|
4252
4327
|
if (variant === "active") {
|
|
4253
|
-
return /* @__PURE__ */
|
|
4328
|
+
return /* @__PURE__ */ jsx28(StyledActiveChip, { ...props });
|
|
4254
4329
|
}
|
|
4255
|
-
return /* @__PURE__ */
|
|
4330
|
+
return /* @__PURE__ */ jsx28(StyledDefaultChip, { ...props });
|
|
4256
4331
|
};
|
|
4257
4332
|
|
|
4258
4333
|
// src/components/feedback/RoleBadge.tsx
|
|
4259
4334
|
import MuiChip2 from "@mui/material/Chip";
|
|
4260
4335
|
import { styled as styled18 } from "@mui/material/styles";
|
|
4261
|
-
import { jsx as
|
|
4336
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4262
4337
|
var StyledRoleBadge = styled18(MuiChip2)(() => ({
|
|
4263
4338
|
// Pill shape - 100px border radius
|
|
4264
4339
|
borderRadius: "100px",
|
|
@@ -4284,7 +4359,7 @@ var RoleBadge = ({
|
|
|
4284
4359
|
if (!label || label.trim() === "") {
|
|
4285
4360
|
return null;
|
|
4286
4361
|
}
|
|
4287
|
-
return /* @__PURE__ */
|
|
4362
|
+
return /* @__PURE__ */ jsx29(
|
|
4288
4363
|
StyledRoleBadge,
|
|
4289
4364
|
{
|
|
4290
4365
|
label,
|
|
@@ -4299,13 +4374,13 @@ var RoleBadge = ({
|
|
|
4299
4374
|
// src/components/feedback/IDBlock.tsx
|
|
4300
4375
|
import { useState as useState5 } from "react";
|
|
4301
4376
|
import Box9 from "@mui/material/Box";
|
|
4302
|
-
import
|
|
4377
|
+
import Typography8 from "@mui/material/Typography";
|
|
4303
4378
|
import IconButton6 from "@mui/material/IconButton";
|
|
4304
4379
|
import Snackbar from "@mui/material/Snackbar";
|
|
4305
4380
|
import Alert from "@mui/material/Alert";
|
|
4306
4381
|
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
|
4307
4382
|
import { styled as styled19 } from "@mui/material/styles";
|
|
4308
|
-
import { Fragment as Fragment5, jsx as
|
|
4383
|
+
import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4309
4384
|
var IDContainer = styled19(Box9)(() => ({
|
|
4310
4385
|
display: "inline-flex",
|
|
4311
4386
|
alignItems: "center",
|
|
@@ -4341,10 +4416,10 @@ var IDBlock = ({
|
|
|
4341
4416
|
const handleSnackbarClose = () => {
|
|
4342
4417
|
setSnackbar((prev) => ({ ...prev, open: false }));
|
|
4343
4418
|
};
|
|
4344
|
-
return /* @__PURE__ */
|
|
4345
|
-
/* @__PURE__ */
|
|
4346
|
-
/* @__PURE__ */
|
|
4347
|
-
|
|
4419
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
4420
|
+
/* @__PURE__ */ jsxs12(IDContainer, { children: [
|
|
4421
|
+
/* @__PURE__ */ jsxs12(
|
|
4422
|
+
Typography8,
|
|
4348
4423
|
{
|
|
4349
4424
|
variant: "body2",
|
|
4350
4425
|
sx: {
|
|
@@ -4358,8 +4433,8 @@ var IDBlock = ({
|
|
|
4358
4433
|
]
|
|
4359
4434
|
}
|
|
4360
4435
|
),
|
|
4361
|
-
/* @__PURE__ */
|
|
4362
|
-
|
|
4436
|
+
/* @__PURE__ */ jsx30(
|
|
4437
|
+
Typography8,
|
|
4363
4438
|
{
|
|
4364
4439
|
variant: "body2",
|
|
4365
4440
|
sx: {
|
|
@@ -4371,7 +4446,7 @@ var IDBlock = ({
|
|
|
4371
4446
|
children: id
|
|
4372
4447
|
}
|
|
4373
4448
|
),
|
|
4374
|
-
/* @__PURE__ */
|
|
4449
|
+
/* @__PURE__ */ jsx30(
|
|
4375
4450
|
IconButton6,
|
|
4376
4451
|
{
|
|
4377
4452
|
onClick: handleCopy,
|
|
@@ -4383,7 +4458,7 @@ var IDBlock = ({
|
|
|
4383
4458
|
backgroundColor: deploymentSurfaceTokens.hoverOverlay
|
|
4384
4459
|
}
|
|
4385
4460
|
},
|
|
4386
|
-
children: /* @__PURE__ */
|
|
4461
|
+
children: /* @__PURE__ */ jsx30(
|
|
4387
4462
|
ContentCopyIcon,
|
|
4388
4463
|
{
|
|
4389
4464
|
sx: {
|
|
@@ -4395,14 +4470,14 @@ var IDBlock = ({
|
|
|
4395
4470
|
}
|
|
4396
4471
|
)
|
|
4397
4472
|
] }),
|
|
4398
|
-
/* @__PURE__ */
|
|
4473
|
+
/* @__PURE__ */ jsx30(
|
|
4399
4474
|
Snackbar,
|
|
4400
4475
|
{
|
|
4401
4476
|
open: snackbar.open,
|
|
4402
4477
|
autoHideDuration: 3e3,
|
|
4403
4478
|
onClose: handleSnackbarClose,
|
|
4404
4479
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
4405
|
-
children: /* @__PURE__ */
|
|
4480
|
+
children: /* @__PURE__ */ jsx30(Alert, { onClose: handleSnackbarClose, severity: snackbar.severity, children: snackbar.message })
|
|
4406
4481
|
}
|
|
4407
4482
|
)
|
|
4408
4483
|
] });
|
|
@@ -4411,7 +4486,7 @@ var IDBlock = ({
|
|
|
4411
4486
|
// src/components/feedback/Tooltip.tsx
|
|
4412
4487
|
import MuiTooltip from "@mui/material/Tooltip";
|
|
4413
4488
|
import { styled as styled20 } from "@mui/material/styles";
|
|
4414
|
-
import { jsx as
|
|
4489
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
4415
4490
|
var StyledTooltip = styled20(MuiTooltip)({
|
|
4416
4491
|
"& .MuiTooltip-tooltip": {
|
|
4417
4492
|
backgroundColor: colors.grey[800],
|
|
@@ -4425,7 +4500,7 @@ var StyledTooltip = styled20(MuiTooltip)({
|
|
|
4425
4500
|
}
|
|
4426
4501
|
});
|
|
4427
4502
|
var Tooltip6 = (props) => {
|
|
4428
|
-
return /* @__PURE__ */
|
|
4503
|
+
return /* @__PURE__ */ jsx31(StyledTooltip, { ...props });
|
|
4429
4504
|
};
|
|
4430
4505
|
|
|
4431
4506
|
// src/components/feedback/Progress.tsx
|
|
@@ -4434,7 +4509,7 @@ import {
|
|
|
4434
4509
|
CircularProgress,
|
|
4435
4510
|
styled as styled21
|
|
4436
4511
|
} from "@mui/material";
|
|
4437
|
-
import { jsx as
|
|
4512
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
4438
4513
|
var StyledLinearProgress = styled21(LinearProgress)({
|
|
4439
4514
|
height: 4,
|
|
4440
4515
|
borderRadius: 2,
|
|
@@ -4454,9 +4529,9 @@ var Progress = ({
|
|
|
4454
4529
|
thickness = 4
|
|
4455
4530
|
}) => {
|
|
4456
4531
|
if (variant === "circular") {
|
|
4457
|
-
return /* @__PURE__ */
|
|
4532
|
+
return /* @__PURE__ */ jsx32(StyledCircularProgress, { size: size3, thickness });
|
|
4458
4533
|
}
|
|
4459
|
-
return /* @__PURE__ */
|
|
4534
|
+
return /* @__PURE__ */ jsx32(
|
|
4460
4535
|
StyledLinearProgress,
|
|
4461
4536
|
{
|
|
4462
4537
|
variant: value !== void 0 ? "determinate" : "indeterminate",
|
|
@@ -4468,7 +4543,7 @@ var Progress = ({
|
|
|
4468
4543
|
// src/components/navigation/Tab.tsx
|
|
4469
4544
|
import MuiTab from "@mui/material/Tab";
|
|
4470
4545
|
import { styled as styled22 } from "@mui/material/styles";
|
|
4471
|
-
import { jsx as
|
|
4546
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
4472
4547
|
var StyledTab = styled22(MuiTab)({
|
|
4473
4548
|
textTransform: "none",
|
|
4474
4549
|
minHeight: "48px",
|
|
@@ -4490,8 +4565,8 @@ var Tab = ({
|
|
|
4490
4565
|
label,
|
|
4491
4566
|
...props
|
|
4492
4567
|
}) => {
|
|
4493
|
-
const tabLabel = badge !== void 0 ? /* @__PURE__ */
|
|
4494
|
-
return /* @__PURE__ */
|
|
4568
|
+
const tabLabel = badge !== void 0 ? /* @__PURE__ */ jsx33(Badge, { variant: badgeVariant, badgeContent: badge, children: label }) : label;
|
|
4569
|
+
return /* @__PURE__ */ jsx33(StyledTab, { label: tabLabel, ...props });
|
|
4495
4570
|
};
|
|
4496
4571
|
|
|
4497
4572
|
// src/components/navigation/Menu.tsx
|
|
@@ -4503,7 +4578,7 @@ import {
|
|
|
4503
4578
|
Divider
|
|
4504
4579
|
} from "@mui/material";
|
|
4505
4580
|
import { styled as styled23 } from "@mui/material/styles";
|
|
4506
|
-
import { Fragment as Fragment6, jsx as
|
|
4581
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4507
4582
|
var StyledMenu = styled23(MuiMenu)({
|
|
4508
4583
|
"& .MuiPaper-root": {
|
|
4509
4584
|
borderRadius: 8,
|
|
@@ -4518,7 +4593,7 @@ var StyledMenu = styled23(MuiMenu)({
|
|
|
4518
4593
|
}
|
|
4519
4594
|
});
|
|
4520
4595
|
var Menu3 = ({ anchorEl, onClose, children, ...props }) => {
|
|
4521
|
-
return /* @__PURE__ */
|
|
4596
|
+
return /* @__PURE__ */ jsx34(
|
|
4522
4597
|
StyledMenu,
|
|
4523
4598
|
{
|
|
4524
4599
|
anchorEl,
|
|
@@ -4544,19 +4619,19 @@ var MenuItem = ({
|
|
|
4544
4619
|
disabled = false,
|
|
4545
4620
|
divider = false
|
|
4546
4621
|
}) => {
|
|
4547
|
-
return /* @__PURE__ */
|
|
4548
|
-
/* @__PURE__ */
|
|
4549
|
-
icon && /* @__PURE__ */
|
|
4550
|
-
/* @__PURE__ */
|
|
4622
|
+
return /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4623
|
+
/* @__PURE__ */ jsxs13(MuiMenuItem, { onClick, disabled, children: [
|
|
4624
|
+
icon && /* @__PURE__ */ jsx34(ListItemIcon3, { children: icon }),
|
|
4625
|
+
/* @__PURE__ */ jsx34(ListItemText5, { children: label })
|
|
4551
4626
|
] }),
|
|
4552
|
-
divider && /* @__PURE__ */
|
|
4627
|
+
divider && /* @__PURE__ */ jsx34(Divider, {})
|
|
4553
4628
|
] });
|
|
4554
4629
|
};
|
|
4555
4630
|
|
|
4556
4631
|
// src/components/navigation/Pagination.tsx
|
|
4557
4632
|
import MuiPagination from "@mui/material/Pagination";
|
|
4558
4633
|
import { styled as styled24 } from "@mui/material/styles";
|
|
4559
|
-
import { jsx as
|
|
4634
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
4560
4635
|
var StyledPagination = styled24(MuiPagination)({
|
|
4561
4636
|
"& .MuiPaginationItem-root": {
|
|
4562
4637
|
"&.Mui-selected": {
|
|
@@ -4572,14 +4647,14 @@ var StyledPagination = styled24(MuiPagination)({
|
|
|
4572
4647
|
}
|
|
4573
4648
|
});
|
|
4574
4649
|
var Pagination = ({ color = "primary", ...props }) => {
|
|
4575
|
-
return /* @__PURE__ */
|
|
4650
|
+
return /* @__PURE__ */ jsx35(StyledPagination, { color, ...props });
|
|
4576
4651
|
};
|
|
4577
4652
|
|
|
4578
4653
|
// src/components/navigation/Selector.tsx
|
|
4579
4654
|
import { useState as useState6 } from "react";
|
|
4580
4655
|
import {
|
|
4581
4656
|
Box as Box10,
|
|
4582
|
-
Typography as
|
|
4657
|
+
Typography as Typography9,
|
|
4583
4658
|
Avatar as Avatar4,
|
|
4584
4659
|
Menu as Menu4,
|
|
4585
4660
|
InputAdornment as InputAdornment5,
|
|
@@ -4596,7 +4671,7 @@ import AddIcon3 from "@mui/icons-material/Add";
|
|
|
4596
4671
|
// src/components/layout/Link.tsx
|
|
4597
4672
|
import MuiLink from "@mui/material/Link";
|
|
4598
4673
|
import { styled as styled25 } from "@mui/material/styles";
|
|
4599
|
-
import { jsx as
|
|
4674
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
4600
4675
|
var StyledLink = styled25(MuiLink)({
|
|
4601
4676
|
color: colors.primary.main,
|
|
4602
4677
|
"&:hover": {
|
|
@@ -4604,11 +4679,11 @@ var StyledLink = styled25(MuiLink)({
|
|
|
4604
4679
|
}
|
|
4605
4680
|
});
|
|
4606
4681
|
var Link3 = ({ underline = "hover", ...props }) => {
|
|
4607
|
-
return /* @__PURE__ */
|
|
4682
|
+
return /* @__PURE__ */ jsx36(StyledLink, { underline, ...props });
|
|
4608
4683
|
};
|
|
4609
4684
|
|
|
4610
4685
|
// src/components/navigation/Selector.tsx
|
|
4611
|
-
import { Fragment as Fragment7, jsx as
|
|
4686
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4612
4687
|
var Selector = ({
|
|
4613
4688
|
options: options2,
|
|
4614
4689
|
selectedId,
|
|
@@ -4640,14 +4715,14 @@ var Selector = ({
|
|
|
4640
4715
|
onSelect(id);
|
|
4641
4716
|
handleClose();
|
|
4642
4717
|
};
|
|
4643
|
-
const defaultRenderSelected = (option) => /* @__PURE__ */
|
|
4644
|
-
option.avatar ? /* @__PURE__ */
|
|
4645
|
-
/* @__PURE__ */
|
|
4718
|
+
const defaultRenderSelected = (option) => /* @__PURE__ */ jsxs14(Box10, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
4719
|
+
option.avatar ? /* @__PURE__ */ jsx37(Avatar4, { src: option.avatar, sx: { width: 20, height: 20 } }) : option.icon ? option.icon : /* @__PURE__ */ jsx37(Avatar4, { sx: { width: 20, height: 20, bgcolor: colors.primary.main, fontSize: "0.7rem" }, children: option.name.charAt(0) }),
|
|
4720
|
+
/* @__PURE__ */ jsx37(Typography9, { variant: "body2", children: option.name })
|
|
4646
4721
|
] });
|
|
4647
4722
|
if (compact) {
|
|
4648
|
-
return /* @__PURE__ */
|
|
4649
|
-
/* @__PURE__ */
|
|
4650
|
-
/* @__PURE__ */
|
|
4723
|
+
return /* @__PURE__ */ jsxs14(Fragment7, { children: [
|
|
4724
|
+
/* @__PURE__ */ jsx37(IconButton, { onClick: handleOpen, size: "small", children: selectedOption ? selectedOption.avatar ? /* @__PURE__ */ jsx37(Avatar4, { src: selectedOption.avatar, sx: { width: 32, height: 32 } }) : /* @__PURE__ */ jsx37(Avatar4, { sx: { width: 32, height: 32, bgcolor: colors.primary.main }, children: selectedOption.name.charAt(0) }) : /* @__PURE__ */ jsx37(Avatar4, { sx: { width: 32, height: 32, bgcolor: colors.grey[400] }, children: "?" }) }),
|
|
4725
|
+
/* @__PURE__ */ jsx37(
|
|
4651
4726
|
Menu4,
|
|
4652
4727
|
{
|
|
4653
4728
|
anchorEl,
|
|
@@ -4656,8 +4731,8 @@ var Selector = ({
|
|
|
4656
4731
|
PaperProps: {
|
|
4657
4732
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4658
4733
|
},
|
|
4659
|
-
children: loading ? /* @__PURE__ */
|
|
4660
|
-
options2.length > 5 && /* @__PURE__ */
|
|
4734
|
+
children: loading ? /* @__PURE__ */ jsx37(Box10, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx37(CircularProgress2, { size: 24 }) }) : /* @__PURE__ */ jsxs14(Fragment7, { children: [
|
|
4735
|
+
options2.length > 5 && /* @__PURE__ */ jsx37(Box10, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ jsx37(
|
|
4661
4736
|
TextField,
|
|
4662
4737
|
{
|
|
4663
4738
|
size: "small",
|
|
@@ -4666,31 +4741,31 @@ var Selector = ({
|
|
|
4666
4741
|
value: searchTerm,
|
|
4667
4742
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
4668
4743
|
InputProps: {
|
|
4669
|
-
startAdornment: /* @__PURE__ */
|
|
4744
|
+
startAdornment: /* @__PURE__ */ jsx37(InputAdornment5, { position: "start", children: /* @__PURE__ */ jsx37(SearchIcon4, { fontSize: "small" }) })
|
|
4670
4745
|
}
|
|
4671
4746
|
}
|
|
4672
4747
|
) }),
|
|
4673
|
-
/* @__PURE__ */
|
|
4674
|
-
filteredOptions.map((option) => /* @__PURE__ */
|
|
4748
|
+
/* @__PURE__ */ jsxs14(List5, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4749
|
+
filteredOptions.map((option) => /* @__PURE__ */ jsxs14(
|
|
4675
4750
|
ListItemButton3,
|
|
4676
4751
|
{
|
|
4677
4752
|
selected: option.id === selectedId,
|
|
4678
4753
|
onClick: () => handleSelect(option.id),
|
|
4679
4754
|
disabled: option.disabled,
|
|
4680
4755
|
children: [
|
|
4681
|
-
option.avatar ? /* @__PURE__ */
|
|
4682
|
-
/* @__PURE__ */
|
|
4756
|
+
option.avatar ? /* @__PURE__ */ jsx37(ListItemAvatar3, { children: /* @__PURE__ */ jsx37(Avatar4, { src: option.avatar }) }) : option.icon ? /* @__PURE__ */ jsx37(ListItemAvatar3, { children: option.icon }) : /* @__PURE__ */ jsx37(ListItemAvatar3, { children: /* @__PURE__ */ jsx37(Avatar4, { sx: { bgcolor: colors.primary.main }, children: option.name.charAt(0) }) }),
|
|
4757
|
+
/* @__PURE__ */ jsx37(ListItemText6, { primary: option.name, secondary: option.description })
|
|
4683
4758
|
]
|
|
4684
4759
|
},
|
|
4685
4760
|
option.id
|
|
4686
4761
|
)),
|
|
4687
|
-
filteredOptions.length === 0 && /* @__PURE__ */
|
|
4762
|
+
filteredOptions.length === 0 && /* @__PURE__ */ jsx37(Box10, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx37(Typography9, { variant: "body2", color: "text.secondary", children: emptyMessage }) })
|
|
4688
4763
|
] }),
|
|
4689
|
-
onCreate && /* @__PURE__ */
|
|
4764
|
+
onCreate && /* @__PURE__ */ jsx37(Box10, { sx: { p: 1, borderTop: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ jsx37(
|
|
4690
4765
|
Button,
|
|
4691
4766
|
{
|
|
4692
4767
|
fullWidth: true,
|
|
4693
|
-
startIcon: /* @__PURE__ */
|
|
4768
|
+
startIcon: /* @__PURE__ */ jsx37(AddIcon3, {}),
|
|
4694
4769
|
onClick: () => {
|
|
4695
4770
|
onCreate();
|
|
4696
4771
|
handleClose();
|
|
@@ -4703,12 +4778,12 @@ var Selector = ({
|
|
|
4703
4778
|
)
|
|
4704
4779
|
] });
|
|
4705
4780
|
}
|
|
4706
|
-
return /* @__PURE__ */
|
|
4707
|
-
/* @__PURE__ */
|
|
4708
|
-
selectedOption ? renderSelected ? /* @__PURE__ */
|
|
4709
|
-
/* @__PURE__ */
|
|
4781
|
+
return /* @__PURE__ */ jsxs14(Fragment7, { children: [
|
|
4782
|
+
/* @__PURE__ */ jsxs14(Box10, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
4783
|
+
selectedOption ? renderSelected ? /* @__PURE__ */ jsx37(Link3, { onClick: handleOpen, underline: "hover", children: renderSelected(selectedOption) }) : /* @__PURE__ */ jsx37(Link3, { onClick: handleOpen, underline: "hover", children: defaultRenderSelected(selectedOption) }) : /* @__PURE__ */ jsx37(Typography9, { variant: "body2", color: "text.secondary", children: placeholder }),
|
|
4784
|
+
/* @__PURE__ */ jsx37(IconButton, { onClick: handleOpen, size: "small", sx: { p: 0.2, ml: 0.5 }, children: /* @__PURE__ */ jsx37(KeyboardArrowDownIcon3, { fontSize: "small" }) })
|
|
4710
4785
|
] }),
|
|
4711
|
-
/* @__PURE__ */
|
|
4786
|
+
/* @__PURE__ */ jsx37(
|
|
4712
4787
|
Menu4,
|
|
4713
4788
|
{
|
|
4714
4789
|
anchorEl,
|
|
@@ -4717,8 +4792,8 @@ var Selector = ({
|
|
|
4717
4792
|
PaperProps: {
|
|
4718
4793
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4719
4794
|
},
|
|
4720
|
-
children: loading ? /* @__PURE__ */
|
|
4721
|
-
options2.length > 5 && /* @__PURE__ */
|
|
4795
|
+
children: loading ? /* @__PURE__ */ jsx37(Box10, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx37(CircularProgress2, { size: 24 }) }) : /* @__PURE__ */ jsxs14(Fragment7, { children: [
|
|
4796
|
+
options2.length > 5 && /* @__PURE__ */ jsx37(Box10, { sx: { p: 1, borderBottom: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ jsx37(
|
|
4722
4797
|
TextField,
|
|
4723
4798
|
{
|
|
4724
4799
|
size: "small",
|
|
@@ -4727,31 +4802,31 @@ var Selector = ({
|
|
|
4727
4802
|
value: searchTerm,
|
|
4728
4803
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
4729
4804
|
InputProps: {
|
|
4730
|
-
startAdornment: /* @__PURE__ */
|
|
4805
|
+
startAdornment: /* @__PURE__ */ jsx37(InputAdornment5, { position: "start", children: /* @__PURE__ */ jsx37(SearchIcon4, { fontSize: "small" }) })
|
|
4731
4806
|
}
|
|
4732
4807
|
}
|
|
4733
4808
|
) }),
|
|
4734
|
-
/* @__PURE__ */
|
|
4735
|
-
filteredOptions.map((option) => /* @__PURE__ */
|
|
4809
|
+
/* @__PURE__ */ jsxs14(List5, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4810
|
+
filteredOptions.map((option) => /* @__PURE__ */ jsxs14(
|
|
4736
4811
|
ListItemButton3,
|
|
4737
4812
|
{
|
|
4738
4813
|
selected: option.id === selectedId,
|
|
4739
4814
|
onClick: () => handleSelect(option.id),
|
|
4740
4815
|
disabled: option.disabled,
|
|
4741
4816
|
children: [
|
|
4742
|
-
option.avatar ? /* @__PURE__ */
|
|
4743
|
-
/* @__PURE__ */
|
|
4817
|
+
option.avatar ? /* @__PURE__ */ jsx37(ListItemAvatar3, { children: /* @__PURE__ */ jsx37(Avatar4, { src: option.avatar }) }) : option.icon ? /* @__PURE__ */ jsx37(ListItemAvatar3, { children: option.icon }) : /* @__PURE__ */ jsx37(ListItemAvatar3, { children: /* @__PURE__ */ jsx37(Avatar4, { sx: { bgcolor: colors.primary.main }, children: option.name.charAt(0) }) }),
|
|
4818
|
+
/* @__PURE__ */ jsx37(ListItemText6, { primary: option.name, secondary: option.description })
|
|
4744
4819
|
]
|
|
4745
4820
|
},
|
|
4746
4821
|
option.id
|
|
4747
4822
|
)),
|
|
4748
|
-
filteredOptions.length === 0 && /* @__PURE__ */
|
|
4823
|
+
filteredOptions.length === 0 && /* @__PURE__ */ jsx37(Box10, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx37(Typography9, { variant: "body2", color: "text.secondary", children: emptyMessage }) })
|
|
4749
4824
|
] }),
|
|
4750
|
-
onCreate && /* @__PURE__ */
|
|
4825
|
+
onCreate && /* @__PURE__ */ jsx37(Box10, { sx: { p: 1, borderTop: `1px solid ${colors.grey[200]}` }, children: /* @__PURE__ */ jsx37(
|
|
4751
4826
|
Button,
|
|
4752
4827
|
{
|
|
4753
4828
|
fullWidth: true,
|
|
4754
|
-
startIcon: /* @__PURE__ */
|
|
4829
|
+
startIcon: /* @__PURE__ */ jsx37(AddIcon3, {}),
|
|
4755
4830
|
onClick: () => {
|
|
4756
4831
|
onCreate();
|
|
4757
4832
|
handleClose();
|
|
@@ -4766,47 +4841,47 @@ var Selector = ({
|
|
|
4766
4841
|
};
|
|
4767
4842
|
|
|
4768
4843
|
// src/components/layout/Logo.tsx
|
|
4769
|
-
import { Stack as
|
|
4844
|
+
import { Stack as Stack3, styled as styled26, svgIconClasses } from "@mui/material";
|
|
4770
4845
|
|
|
4771
4846
|
// src/components/icons/CereIcon.tsx
|
|
4772
4847
|
import { memo } from "react";
|
|
4773
4848
|
import { SvgIcon } from "@mui/material";
|
|
4774
|
-
import { jsx as
|
|
4775
|
-
var CereIcon = memo((props) => /* @__PURE__ */
|
|
4776
|
-
/* @__PURE__ */
|
|
4849
|
+
import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4850
|
+
var CereIcon = memo((props) => /* @__PURE__ */ jsxs15(SvgIcon, { ...props, viewBox: "0 0 24 28", children: [
|
|
4851
|
+
/* @__PURE__ */ jsx38("g", { clipPath: "url(#a)", children: /* @__PURE__ */ jsx38(
|
|
4777
4852
|
"path",
|
|
4778
4853
|
{
|
|
4779
4854
|
d: "M12.77 26.848c-5.95 0-10.572-2.88-12.063-7.515l-.334-1.037.978-.471c.103-.051 2.668-1.35 2.509-3.901-.169-2.695-2.339-3.96-2.431-4.012L.475 9.37l.412-1.025C2.838 3.601 7.28.77 12.77.77c4.314 0 8.095 1.698 10.37 4.658l.575.748-4.535 6.146-1.013-.984c-.02-.019-2.175-2.069-4.678-2.08-2.411-.012-3.362.902-3.401.941L8.3 8.473c.164-.175 1.695-1.733 5.199-1.707 2.232.01 4.161 1.084 5.3 1.896l1.778-2.41c-1.845-1.91-4.636-2.99-7.808-2.99-4.095 0-7.459 1.91-9.182 5.155 1.042.879 2.57 2.62 2.742 5.35.185 2.95-1.692 4.806-2.913 5.692 1.445 3.043 4.932 4.895 9.354 4.895 3.063 0 6.198-1.2 8.134-3.053l-2.023-2.55c-1.077.768-2.917 1.764-5.323 1.89-3.416.177-5.436-1.404-5.52-1.471l1.536-1.954c.047.035 1.42 1.065 3.855.936 2.884-.15 4.734-2.012 4.75-2.032l.98-1.002.874 1.094 4.088 5.155-.627.779c-2.3 2.856-6.508 4.702-10.726 4.702Z",
|
|
4780
4855
|
fill: "currentColor"
|
|
4781
4856
|
}
|
|
4782
4857
|
) }),
|
|
4783
|
-
/* @__PURE__ */
|
|
4858
|
+
/* @__PURE__ */ jsx38("defs", { children: /* @__PURE__ */ jsx38("clipPath", { id: "a", children: /* @__PURE__ */ jsx38("path", { fill: "currentColor", transform: "translate(.373 .77)", d: "M0 0h23.615v26.36H0z" }) }) })
|
|
4784
4859
|
] }));
|
|
4785
4860
|
|
|
4786
4861
|
// src/components/layout/Logo.tsx
|
|
4787
|
-
import { jsx as
|
|
4862
|
+
import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4788
4863
|
var sizesMap = {
|
|
4789
4864
|
large: 38,
|
|
4790
4865
|
medium: 32,
|
|
4791
4866
|
small: 24
|
|
4792
4867
|
};
|
|
4793
|
-
var Container = styled26(
|
|
4868
|
+
var Container = styled26(Stack3)({
|
|
4794
4869
|
[`& .${svgIconClasses.root}`]: {
|
|
4795
4870
|
fontSize: "inherit"
|
|
4796
4871
|
}
|
|
4797
4872
|
});
|
|
4798
|
-
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */
|
|
4873
|
+
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */ jsx39(CereIcon, { color: "primary" }) }) => /* @__PURE__ */ jsxs16(Container, { direction: "row", alignItems: "center", spacing: 2, fontSize: sizesMap[size3], children: [
|
|
4799
4874
|
icon,
|
|
4800
|
-
children && /* @__PURE__ */
|
|
4875
|
+
children && /* @__PURE__ */ jsx39(Stack3, { children })
|
|
4801
4876
|
] });
|
|
4802
4877
|
|
|
4803
4878
|
// src/components/layout/EntityHeader/EntityHeader.tsx
|
|
4804
4879
|
import Box11 from "@mui/material/Box";
|
|
4805
|
-
import
|
|
4880
|
+
import Typography10 from "@mui/material/Typography";
|
|
4806
4881
|
import IconButton7 from "@mui/material/IconButton";
|
|
4807
4882
|
import Divider2 from "@mui/material/Divider";
|
|
4808
4883
|
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
|
4809
|
-
import { jsx as
|
|
4884
|
+
import { jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4810
4885
|
var EntityHeader = ({
|
|
4811
4886
|
title,
|
|
4812
4887
|
subtitle,
|
|
@@ -4823,8 +4898,8 @@ var EntityHeader = ({
|
|
|
4823
4898
|
const { label, count } = primaryAction;
|
|
4824
4899
|
return count !== void 0 ? `${label} (${count})` : label;
|
|
4825
4900
|
};
|
|
4826
|
-
return /* @__PURE__ */
|
|
4827
|
-
/* @__PURE__ */
|
|
4901
|
+
return /* @__PURE__ */ jsxs17(Box11, { children: [
|
|
4902
|
+
/* @__PURE__ */ jsxs17(
|
|
4828
4903
|
Box11,
|
|
4829
4904
|
{
|
|
4830
4905
|
sx: {
|
|
@@ -4836,7 +4911,7 @@ var EntityHeader = ({
|
|
|
4836
4911
|
gap: 1
|
|
4837
4912
|
},
|
|
4838
4913
|
children: [
|
|
4839
|
-
/* @__PURE__ */
|
|
4914
|
+
/* @__PURE__ */ jsxs17(
|
|
4840
4915
|
Box11,
|
|
4841
4916
|
{
|
|
4842
4917
|
sx: {
|
|
@@ -4846,7 +4921,7 @@ var EntityHeader = ({
|
|
|
4846
4921
|
flexWrap: "wrap"
|
|
4847
4922
|
},
|
|
4848
4923
|
children: [
|
|
4849
|
-
/* @__PURE__ */
|
|
4924
|
+
/* @__PURE__ */ jsxs17(
|
|
4850
4925
|
Box11,
|
|
4851
4926
|
{
|
|
4852
4927
|
sx: {
|
|
@@ -4855,8 +4930,8 @@ var EntityHeader = ({
|
|
|
4855
4930
|
gap: 0.5
|
|
4856
4931
|
},
|
|
4857
4932
|
children: [
|
|
4858
|
-
/* @__PURE__ */
|
|
4859
|
-
|
|
4933
|
+
/* @__PURE__ */ jsx40(
|
|
4934
|
+
Typography10,
|
|
4860
4935
|
{
|
|
4861
4936
|
component: headingLevel,
|
|
4862
4937
|
sx: {
|
|
@@ -4869,8 +4944,8 @@ var EntityHeader = ({
|
|
|
4869
4944
|
children: title
|
|
4870
4945
|
}
|
|
4871
4946
|
),
|
|
4872
|
-
subtitle && /* @__PURE__ */
|
|
4873
|
-
|
|
4947
|
+
subtitle && /* @__PURE__ */ jsx40(
|
|
4948
|
+
Typography10,
|
|
4874
4949
|
{
|
|
4875
4950
|
variant: "body2",
|
|
4876
4951
|
sx: {
|
|
@@ -4886,12 +4961,12 @@ var EntityHeader = ({
|
|
|
4886
4961
|
]
|
|
4887
4962
|
}
|
|
4888
4963
|
),
|
|
4889
|
-
role && /* @__PURE__ */
|
|
4890
|
-
id && /* @__PURE__ */
|
|
4964
|
+
role && /* @__PURE__ */ jsx40(RoleBadge, { label: role, color: "primary", size: "small" }),
|
|
4965
|
+
id && /* @__PURE__ */ jsx40(IDBlock, { id, label: "ID", entityType: "entity", onCopy: onCopyId })
|
|
4891
4966
|
]
|
|
4892
4967
|
}
|
|
4893
4968
|
),
|
|
4894
|
-
/* @__PURE__ */
|
|
4969
|
+
/* @__PURE__ */ jsxs17(
|
|
4895
4970
|
Box11,
|
|
4896
4971
|
{
|
|
4897
4972
|
sx: {
|
|
@@ -4901,7 +4976,7 @@ var EntityHeader = ({
|
|
|
4901
4976
|
flexShrink: 0
|
|
4902
4977
|
},
|
|
4903
4978
|
children: [
|
|
4904
|
-
primaryAction && /* @__PURE__ */
|
|
4979
|
+
primaryAction && /* @__PURE__ */ jsx40(
|
|
4905
4980
|
Button,
|
|
4906
4981
|
{
|
|
4907
4982
|
variant: "primary",
|
|
@@ -4913,7 +4988,7 @@ var EntityHeader = ({
|
|
|
4913
4988
|
children: getPrimaryActionLabel()
|
|
4914
4989
|
}
|
|
4915
4990
|
),
|
|
4916
|
-
onMoreOptions && /* @__PURE__ */
|
|
4991
|
+
onMoreOptions && /* @__PURE__ */ jsx40(
|
|
4917
4992
|
IconButton7,
|
|
4918
4993
|
{
|
|
4919
4994
|
onClick: onMoreOptions,
|
|
@@ -4928,7 +5003,7 @@ var EntityHeader = ({
|
|
|
4928
5003
|
borderColor: deploymentSurfaceTokens.borderDefault
|
|
4929
5004
|
}
|
|
4930
5005
|
},
|
|
4931
|
-
children: /* @__PURE__ */
|
|
5006
|
+
children: /* @__PURE__ */ jsx40(
|
|
4932
5007
|
MoreHorizIcon,
|
|
4933
5008
|
{
|
|
4934
5009
|
sx: {
|
|
@@ -4945,7 +5020,7 @@ var EntityHeader = ({
|
|
|
4945
5020
|
]
|
|
4946
5021
|
}
|
|
4947
5022
|
),
|
|
4948
|
-
divider && /* @__PURE__ */
|
|
5023
|
+
divider && /* @__PURE__ */ jsx40(
|
|
4949
5024
|
Divider2,
|
|
4950
5025
|
{
|
|
4951
5026
|
sx: {
|
|
@@ -4965,12 +5040,12 @@ import {
|
|
|
4965
5040
|
Button as Button6,
|
|
4966
5041
|
IconButton as IconButton8,
|
|
4967
5042
|
Box as Box12,
|
|
4968
|
-
Typography as
|
|
5043
|
+
Typography as Typography11,
|
|
4969
5044
|
Divider as Divider3,
|
|
4970
5045
|
CircularProgress as CircularProgress3
|
|
4971
5046
|
} from "@mui/material";
|
|
4972
5047
|
import CloseIcon from "@mui/icons-material/Close";
|
|
4973
|
-
import { Fragment as Fragment8, jsx as
|
|
5048
|
+
import { Fragment as Fragment8, jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4974
5049
|
var Dialog = ({
|
|
4975
5050
|
open,
|
|
4976
5051
|
title,
|
|
@@ -4994,7 +5069,7 @@ var Dialog = ({
|
|
|
4994
5069
|
if (e) e.stopPropagation();
|
|
4995
5070
|
onClose();
|
|
4996
5071
|
};
|
|
4997
|
-
return /* @__PURE__ */
|
|
5072
|
+
return /* @__PURE__ */ jsxs18(
|
|
4998
5073
|
MuiDialog,
|
|
4999
5074
|
{
|
|
5000
5075
|
open,
|
|
@@ -5011,28 +5086,28 @@ var Dialog = ({
|
|
|
5011
5086
|
...dialogProps.PaperProps
|
|
5012
5087
|
},
|
|
5013
5088
|
children: [
|
|
5014
|
-
/* @__PURE__ */
|
|
5015
|
-
/* @__PURE__ */
|
|
5016
|
-
/* @__PURE__ */
|
|
5089
|
+
/* @__PURE__ */ jsxs18(DialogTitle, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", p: 2 }, children: [
|
|
5090
|
+
/* @__PURE__ */ jsx41(Box12, { sx: { display: "flex", alignItems: "center" }, children: typeof title === "string" ? /* @__PURE__ */ jsx41(Typography11, { variant: "h6", children: title }) : title }),
|
|
5091
|
+
/* @__PURE__ */ jsxs18(Box12, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
5017
5092
|
headerAction,
|
|
5018
|
-
/* @__PURE__ */
|
|
5093
|
+
/* @__PURE__ */ jsx41(
|
|
5019
5094
|
IconButton8,
|
|
5020
5095
|
{
|
|
5021
5096
|
edge: "end",
|
|
5022
5097
|
color: "inherit",
|
|
5023
5098
|
onClick: handleCloseAttempt,
|
|
5024
5099
|
"aria-label": "close",
|
|
5025
|
-
children: /* @__PURE__ */
|
|
5100
|
+
children: /* @__PURE__ */ jsx41(CloseIcon, {})
|
|
5026
5101
|
}
|
|
5027
5102
|
)
|
|
5028
5103
|
] })
|
|
5029
5104
|
] }),
|
|
5030
|
-
dividers && /* @__PURE__ */
|
|
5031
|
-
/* @__PURE__ */
|
|
5032
|
-
(showActions || customActions) && /* @__PURE__ */
|
|
5033
|
-
dividers && /* @__PURE__ */
|
|
5034
|
-
/* @__PURE__ */
|
|
5035
|
-
/* @__PURE__ */
|
|
5105
|
+
dividers && /* @__PURE__ */ jsx41(Divider3, {}),
|
|
5106
|
+
/* @__PURE__ */ jsx41(DialogContent, { dividers, children }),
|
|
5107
|
+
(showActions || customActions) && /* @__PURE__ */ jsxs18(Fragment8, { children: [
|
|
5108
|
+
dividers && /* @__PURE__ */ jsx41(Divider3, {}),
|
|
5109
|
+
/* @__PURE__ */ jsx41(DialogActions, { children: customActions || /* @__PURE__ */ jsxs18(Fragment8, { children: [
|
|
5110
|
+
/* @__PURE__ */ jsx41(
|
|
5036
5111
|
Button6,
|
|
5037
5112
|
{
|
|
5038
5113
|
onClick: handleCloseAttempt,
|
|
@@ -5040,14 +5115,14 @@ var Dialog = ({
|
|
|
5040
5115
|
children: cancelLabel
|
|
5041
5116
|
}
|
|
5042
5117
|
),
|
|
5043
|
-
onSubmit && /* @__PURE__ */
|
|
5118
|
+
onSubmit && /* @__PURE__ */ jsx41(
|
|
5044
5119
|
Button6,
|
|
5045
5120
|
{
|
|
5046
5121
|
variant: "contained",
|
|
5047
5122
|
color: "primary",
|
|
5048
5123
|
onClick: onSubmit,
|
|
5049
5124
|
disabled: disableSubmit || isLoading,
|
|
5050
|
-
startIcon: isLoading ? /* @__PURE__ */
|
|
5125
|
+
startIcon: isLoading ? /* @__PURE__ */ jsx41(CircularProgress3, { size: 20 }) : void 0,
|
|
5051
5126
|
children: submitLabel
|
|
5052
5127
|
}
|
|
5053
5128
|
)
|
|
@@ -5061,9 +5136,9 @@ var Dialog = ({
|
|
|
5061
5136
|
// src/components/layout/Drawer.tsx
|
|
5062
5137
|
import MuiDrawer from "@mui/material/Drawer";
|
|
5063
5138
|
import { styled as styled27 } from "@mui/material/styles";
|
|
5064
|
-
import { Box as Box13, IconButton as IconButton9, Typography as
|
|
5139
|
+
import { Box as Box13, IconButton as IconButton9, Typography as Typography12, Divider as Divider4, Tabs, Tab as Tab2 } from "@mui/material";
|
|
5065
5140
|
import CloseIcon2 from "@mui/icons-material/Close";
|
|
5066
|
-
import { Fragment as Fragment9, jsx as
|
|
5141
|
+
import { Fragment as Fragment9, jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5067
5142
|
var StyledDrawer2 = styled27(MuiDrawer, {
|
|
5068
5143
|
shouldForwardProp: (prop) => prop !== "width" && prop !== "miniWidth" && prop !== "collapsed" && prop !== "topOffset"
|
|
5069
5144
|
})(({ theme: theme2, width = 240, miniWidth = 72, collapsed, topOffset = 0 }) => ({
|
|
@@ -5110,7 +5185,7 @@ var Drawer2 = ({
|
|
|
5110
5185
|
const finalWidth = width ?? defaultWidth;
|
|
5111
5186
|
const shouldShowClose = showCloseButton ?? (variant === "temporary" || variant === "persistent");
|
|
5112
5187
|
const hasHeader = title || header || shouldShowClose || tabs;
|
|
5113
|
-
return /* @__PURE__ */
|
|
5188
|
+
return /* @__PURE__ */ jsxs19(
|
|
5114
5189
|
StyledDrawer2,
|
|
5115
5190
|
{
|
|
5116
5191
|
width: finalWidth,
|
|
@@ -5135,8 +5210,8 @@ var Drawer2 = ({
|
|
|
5135
5210
|
},
|
|
5136
5211
|
...props,
|
|
5137
5212
|
children: [
|
|
5138
|
-
hasHeader && /* @__PURE__ */
|
|
5139
|
-
/* @__PURE__ */
|
|
5213
|
+
hasHeader && /* @__PURE__ */ jsxs19(Fragment9, { children: [
|
|
5214
|
+
/* @__PURE__ */ jsx42(
|
|
5140
5215
|
Box13,
|
|
5141
5216
|
{
|
|
5142
5217
|
sx: {
|
|
@@ -5148,9 +5223,9 @@ var Drawer2 = ({
|
|
|
5148
5223
|
borderBottom: 1,
|
|
5149
5224
|
borderColor: "divider"
|
|
5150
5225
|
},
|
|
5151
|
-
children: header || /* @__PURE__ */
|
|
5152
|
-
/* @__PURE__ */
|
|
5153
|
-
shouldShowClose && onClose && /* @__PURE__ */
|
|
5226
|
+
children: header || /* @__PURE__ */ jsxs19(Fragment9, { children: [
|
|
5227
|
+
/* @__PURE__ */ jsx42(Box13, { sx: { flex: 1 }, children: typeof title === "string" ? /* @__PURE__ */ jsx42(Typography12, { variant: "h6", children: title }) : title }),
|
|
5228
|
+
shouldShowClose && onClose && /* @__PURE__ */ jsx42(
|
|
5154
5229
|
IconButton9,
|
|
5155
5230
|
{
|
|
5156
5231
|
onClick: (e) => {
|
|
@@ -5160,13 +5235,13 @@ var Drawer2 = ({
|
|
|
5160
5235
|
size: "small",
|
|
5161
5236
|
sx: { ml: 1 },
|
|
5162
5237
|
"aria-label": "close",
|
|
5163
|
-
children: /* @__PURE__ */
|
|
5238
|
+
children: /* @__PURE__ */ jsx42(CloseIcon2, {})
|
|
5164
5239
|
}
|
|
5165
5240
|
)
|
|
5166
5241
|
] })
|
|
5167
5242
|
}
|
|
5168
5243
|
),
|
|
5169
|
-
tabs && tabs.length > 0 && /* @__PURE__ */
|
|
5244
|
+
tabs && tabs.length > 0 && /* @__PURE__ */ jsx42(
|
|
5170
5245
|
Tabs,
|
|
5171
5246
|
{
|
|
5172
5247
|
value: activeTab,
|
|
@@ -5181,11 +5256,11 @@ var Drawer2 = ({
|
|
|
5181
5256
|
overflow: "auto"
|
|
5182
5257
|
}
|
|
5183
5258
|
},
|
|
5184
|
-
children: tabs.map((tab, index) => /* @__PURE__ */
|
|
5259
|
+
children: tabs.map((tab, index) => /* @__PURE__ */ jsx42(Tab2, { label: tab }, index))
|
|
5185
5260
|
}
|
|
5186
5261
|
)
|
|
5187
5262
|
] }),
|
|
5188
|
-
/* @__PURE__ */
|
|
5263
|
+
/* @__PURE__ */ jsx42(
|
|
5189
5264
|
Box13,
|
|
5190
5265
|
{
|
|
5191
5266
|
sx: {
|
|
@@ -5198,9 +5273,9 @@ var Drawer2 = ({
|
|
|
5198
5273
|
children
|
|
5199
5274
|
}
|
|
5200
5275
|
),
|
|
5201
|
-
footer && /* @__PURE__ */
|
|
5202
|
-
/* @__PURE__ */
|
|
5203
|
-
/* @__PURE__ */
|
|
5276
|
+
footer && /* @__PURE__ */ jsxs19(Fragment9, { children: [
|
|
5277
|
+
/* @__PURE__ */ jsx42(Divider4, {}),
|
|
5278
|
+
/* @__PURE__ */ jsx42(
|
|
5204
5279
|
Box13,
|
|
5205
5280
|
{
|
|
5206
5281
|
sx: {
|
|
@@ -5223,7 +5298,7 @@ import MuiCardContent from "@mui/material/CardContent";
|
|
|
5223
5298
|
import MuiCardHeader from "@mui/material/CardHeader";
|
|
5224
5299
|
import MuiCardActions from "@mui/material/CardActions";
|
|
5225
5300
|
import { styled as styled28 } from "@mui/material/styles";
|
|
5226
|
-
import { jsx as
|
|
5301
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
5227
5302
|
var StyledCard = styled28(MuiCard, {
|
|
5228
5303
|
shouldForwardProp: (prop) => prop !== "hoverable" && prop !== "clickable"
|
|
5229
5304
|
})(({ hoverable, clickable }) => ({
|
|
@@ -5241,16 +5316,16 @@ var StyledCard = styled28(MuiCard, {
|
|
|
5241
5316
|
}
|
|
5242
5317
|
}));
|
|
5243
5318
|
var Card = ({ hoverable = false, clickable = false, children, ...props }) => {
|
|
5244
|
-
return /* @__PURE__ */
|
|
5319
|
+
return /* @__PURE__ */ jsx43(StyledCard, { hoverable, clickable, ...props, children });
|
|
5245
5320
|
};
|
|
5246
5321
|
var CardContent = (props) => {
|
|
5247
|
-
return /* @__PURE__ */
|
|
5322
|
+
return /* @__PURE__ */ jsx43(MuiCardContent, { ...props });
|
|
5248
5323
|
};
|
|
5249
5324
|
var CardHeader = (props) => {
|
|
5250
|
-
return /* @__PURE__ */
|
|
5325
|
+
return /* @__PURE__ */ jsx43(MuiCardHeader, { ...props });
|
|
5251
5326
|
};
|
|
5252
5327
|
var CardActions = (props) => {
|
|
5253
|
-
return /* @__PURE__ */
|
|
5328
|
+
return /* @__PURE__ */ jsx43(MuiCardActions, { ...props });
|
|
5254
5329
|
};
|
|
5255
5330
|
|
|
5256
5331
|
// src/components/layout/List.tsx
|
|
@@ -5262,9 +5337,9 @@ import {
|
|
|
5262
5337
|
ListItemSecondaryAction
|
|
5263
5338
|
} from "@mui/material";
|
|
5264
5339
|
import { styled as styled29 } from "@mui/material/styles";
|
|
5265
|
-
import { jsx as
|
|
5340
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5266
5341
|
var List6 = (props) => {
|
|
5267
|
-
return /* @__PURE__ */
|
|
5342
|
+
return /* @__PURE__ */ jsx44(MuiList, { ...props });
|
|
5268
5343
|
};
|
|
5269
5344
|
var StyledListItem = styled29(MuiListItem, {
|
|
5270
5345
|
shouldForwardProp: (prop) => prop !== "hoverable"
|
|
@@ -5287,9 +5362,9 @@ var ListItem4 = ({
|
|
|
5287
5362
|
children,
|
|
5288
5363
|
...props
|
|
5289
5364
|
}) => {
|
|
5290
|
-
return /* @__PURE__ */
|
|
5291
|
-
icon && /* @__PURE__ */
|
|
5292
|
-
(primary || secondary) && /* @__PURE__ */
|
|
5365
|
+
return /* @__PURE__ */ jsxs20(StyledListItem, { hoverable, ...props, children: [
|
|
5366
|
+
icon && /* @__PURE__ */ jsx44(ListItemIcon4, { children: icon }),
|
|
5367
|
+
(primary || secondary) && /* @__PURE__ */ jsx44(
|
|
5293
5368
|
ListItemText7,
|
|
5294
5369
|
{
|
|
5295
5370
|
primary,
|
|
@@ -5305,7 +5380,7 @@ var ListItem4 = ({
|
|
|
5305
5380
|
import {
|
|
5306
5381
|
Paper,
|
|
5307
5382
|
Box as Box14,
|
|
5308
|
-
Typography as
|
|
5383
|
+
Typography as Typography13,
|
|
5309
5384
|
IconButton as IconButton10,
|
|
5310
5385
|
useTheme as useTheme2,
|
|
5311
5386
|
LinearProgress as LinearProgress2
|
|
@@ -5330,7 +5405,7 @@ function useControlledExpand(controlledExpanded, onToggle, defaultExpanded = fal
|
|
|
5330
5405
|
}
|
|
5331
5406
|
|
|
5332
5407
|
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
5333
|
-
import { Fragment as Fragment10, jsx as
|
|
5408
|
+
import { Fragment as Fragment10, jsx as jsx45, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5334
5409
|
var ENTITY_LABELS = {
|
|
5335
5410
|
workspace: "Workspace",
|
|
5336
5411
|
stream: "Stream",
|
|
@@ -5340,11 +5415,11 @@ var ENTITY_LABELS = {
|
|
|
5340
5415
|
};
|
|
5341
5416
|
var ENTITY_ICON_SIZE = 16;
|
|
5342
5417
|
var ENTITY_ICONS = {
|
|
5343
|
-
workspace: /* @__PURE__ */
|
|
5344
|
-
stream: /* @__PURE__ */
|
|
5345
|
-
deployment: /* @__PURE__ */
|
|
5346
|
-
engagement: /* @__PURE__ */
|
|
5347
|
-
agent: /* @__PURE__ */
|
|
5418
|
+
workspace: /* @__PURE__ */ jsx45(WorkOutlineIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5419
|
+
stream: /* @__PURE__ */ jsx45(WavesIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5420
|
+
deployment: /* @__PURE__ */ jsx45(RocketLaunchOutlinedIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5421
|
+
engagement: /* @__PURE__ */ jsx45(InsertLinkIcon, { sx: { fontSize: ENTITY_ICON_SIZE } }),
|
|
5422
|
+
agent: /* @__PURE__ */ jsx45(SmartToyOutlinedIcon, { sx: { fontSize: ENTITY_ICON_SIZE } })
|
|
5348
5423
|
};
|
|
5349
5424
|
var STATUS_DOT_COLORS = {
|
|
5350
5425
|
normal: deploymentStatusColors.normal,
|
|
@@ -5374,7 +5449,7 @@ var StatusDot = styled30(Box14, {
|
|
|
5374
5449
|
backgroundColor: status ? STATUS_DOT_COLORS[status] ?? "transparent" : "transparent",
|
|
5375
5450
|
flexShrink: 0
|
|
5376
5451
|
}));
|
|
5377
|
-
var EntityChip = ({ entityType, color }) => /* @__PURE__ */
|
|
5452
|
+
var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs21(
|
|
5378
5453
|
Box14,
|
|
5379
5454
|
{
|
|
5380
5455
|
sx: {
|
|
@@ -5390,9 +5465,9 @@ var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs20(
|
|
|
5390
5465
|
flexShrink: 0
|
|
5391
5466
|
},
|
|
5392
5467
|
children: [
|
|
5393
|
-
/* @__PURE__ */
|
|
5394
|
-
/* @__PURE__ */
|
|
5395
|
-
|
|
5468
|
+
/* @__PURE__ */ jsx45(Box14, { sx: { color, display: "flex", alignItems: "center" }, children: ENTITY_ICONS[entityType] }),
|
|
5469
|
+
/* @__PURE__ */ jsx45(
|
|
5470
|
+
Typography13,
|
|
5396
5471
|
{
|
|
5397
5472
|
variant: "body2",
|
|
5398
5473
|
fontWeight: ENTITY_CHIP_TYPOGRAPHY.fontWeight,
|
|
@@ -5408,15 +5483,15 @@ var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs20(
|
|
|
5408
5483
|
]
|
|
5409
5484
|
}
|
|
5410
5485
|
);
|
|
5411
|
-
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */
|
|
5412
|
-
/* @__PURE__ */
|
|
5413
|
-
/* @__PURE__ */
|
|
5414
|
-
/* @__PURE__ */
|
|
5486
|
+
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ jsxs21(Box14, { sx: { pl: indented ? "40px" : 0, pr: "20px", py: 1 }, children: [
|
|
5487
|
+
/* @__PURE__ */ jsxs21(Box14, { sx: { display: "flex", justifyContent: "space-between", mb: 1 }, children: [
|
|
5488
|
+
/* @__PURE__ */ jsx45(Typography13, { variant: "body2", sx: { color: deploymentSurfaceTokens.textPrimary }, children: "Capacity" }),
|
|
5489
|
+
/* @__PURE__ */ jsxs21(Typography13, { variant: "body2", sx: { color: deploymentSurfaceTokens.accentBlue }, children: [
|
|
5415
5490
|
value,
|
|
5416
5491
|
"%"
|
|
5417
5492
|
] })
|
|
5418
5493
|
] }),
|
|
5419
|
-
/* @__PURE__ */
|
|
5494
|
+
/* @__PURE__ */ jsx45(
|
|
5420
5495
|
LinearProgress2,
|
|
5421
5496
|
{
|
|
5422
5497
|
variant: "determinate",
|
|
@@ -5456,19 +5531,19 @@ var getActionButtonStyles = (action) => {
|
|
|
5456
5531
|
};
|
|
5457
5532
|
return { ...baseStyles, ...variantStyles };
|
|
5458
5533
|
};
|
|
5459
|
-
var CardAction = ({ action }) => /* @__PURE__ */
|
|
5534
|
+
var CardAction = ({ action }) => /* @__PURE__ */ jsxs21(
|
|
5460
5535
|
Box14,
|
|
5461
5536
|
{
|
|
5462
5537
|
component: action.onClick ? "button" : "span",
|
|
5463
5538
|
onClick: action.onClick,
|
|
5464
5539
|
sx: getActionButtonStyles(action),
|
|
5465
5540
|
children: [
|
|
5466
|
-
action.icon && /* @__PURE__ */
|
|
5467
|
-
action.label && /* @__PURE__ */
|
|
5541
|
+
action.icon && /* @__PURE__ */ jsx45(Box14, { component: "span", sx: { display: "flex", alignItems: "center" }, children: action.icon }),
|
|
5542
|
+
action.label && /* @__PURE__ */ jsx45(Typography13, { variant: "body2", fontWeight: 500, component: "span", sx: { fontSize: "14px" }, children: action.label })
|
|
5468
5543
|
]
|
|
5469
5544
|
}
|
|
5470
5545
|
);
|
|
5471
|
-
var CardActionList = ({ actions }) => /* @__PURE__ */
|
|
5546
|
+
var CardActionList = ({ actions }) => /* @__PURE__ */ jsx45(Fragment10, { children: actions.map((action) => /* @__PURE__ */ jsx45(CardAction, { action }, action.id)) });
|
|
5472
5547
|
var DeploymentDashboardCard = ({
|
|
5473
5548
|
entityType,
|
|
5474
5549
|
title,
|
|
@@ -5501,7 +5576,7 @@ var DeploymentDashboardCard = ({
|
|
|
5501
5576
|
return Math.min(100, Math.max(0, capacity2));
|
|
5502
5577
|
};
|
|
5503
5578
|
const capacityClamped = getClampedCapacity(capacity);
|
|
5504
|
-
return /* @__PURE__ */
|
|
5579
|
+
return /* @__PURE__ */ jsxs21(
|
|
5505
5580
|
Paper,
|
|
5506
5581
|
{
|
|
5507
5582
|
className,
|
|
@@ -5518,7 +5593,7 @@ var DeploymentDashboardCard = ({
|
|
|
5518
5593
|
gap: 0
|
|
5519
5594
|
},
|
|
5520
5595
|
children: [
|
|
5521
|
-
/* @__PURE__ */
|
|
5596
|
+
/* @__PURE__ */ jsxs21(
|
|
5522
5597
|
Box14,
|
|
5523
5598
|
{
|
|
5524
5599
|
sx: {
|
|
@@ -5528,21 +5603,21 @@ var DeploymentDashboardCard = ({
|
|
|
5528
5603
|
width: "100%"
|
|
5529
5604
|
},
|
|
5530
5605
|
children: [
|
|
5531
|
-
/* @__PURE__ */
|
|
5532
|
-
/* @__PURE__ */
|
|
5533
|
-
expandable ? /* @__PURE__ */
|
|
5606
|
+
/* @__PURE__ */ jsxs21(Box14, { sx: { display: "flex", flexDirection: "column", gap: 0.5, minWidth: 0 }, children: [
|
|
5607
|
+
/* @__PURE__ */ jsxs21(Box14, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
5608
|
+
expandable ? /* @__PURE__ */ jsx45(
|
|
5534
5609
|
IconButton10,
|
|
5535
5610
|
{
|
|
5536
5611
|
size: "small",
|
|
5537
5612
|
onClick: toggle,
|
|
5538
5613
|
"aria-label": expanded ? "Collapse" : "Expand",
|
|
5539
5614
|
sx: { p: "5px" },
|
|
5540
|
-
children: expanded ? /* @__PURE__ */
|
|
5615
|
+
children: expanded ? /* @__PURE__ */ jsx45(ExpandMoreIcon, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } }) : /* @__PURE__ */ jsx45(ChevronRightIcon2, { sx: { fontSize: CHEVRON_SIZE, color: deploymentSurfaceTokens.accentBlue } })
|
|
5541
5616
|
}
|
|
5542
|
-
) : /* @__PURE__ */
|
|
5543
|
-
/* @__PURE__ */
|
|
5544
|
-
/* @__PURE__ */
|
|
5545
|
-
|
|
5617
|
+
) : /* @__PURE__ */ jsx45(Box14, { sx: { width: 26, flexShrink: 0 } }),
|
|
5618
|
+
/* @__PURE__ */ jsx45(EntityChip, { entityType, color: entityColor }),
|
|
5619
|
+
/* @__PURE__ */ jsx45(
|
|
5620
|
+
Typography13,
|
|
5546
5621
|
{
|
|
5547
5622
|
variant: "subtitle1",
|
|
5548
5623
|
fontWeight: 500,
|
|
@@ -5551,9 +5626,9 @@ var DeploymentDashboardCard = ({
|
|
|
5551
5626
|
children: title
|
|
5552
5627
|
}
|
|
5553
5628
|
),
|
|
5554
|
-
idDisplay != null && /* @__PURE__ */
|
|
5629
|
+
idDisplay != null && /* @__PURE__ */ jsx45(IDBlock, { id: idDisplay, label: "ID", entityType, onCopy: onCopyId })
|
|
5555
5630
|
] }),
|
|
5556
|
-
(createdAt != null || updatedAt != null) && /* @__PURE__ */
|
|
5631
|
+
(createdAt != null || updatedAt != null) && /* @__PURE__ */ jsxs21(
|
|
5557
5632
|
Box14,
|
|
5558
5633
|
{
|
|
5559
5634
|
sx: {
|
|
@@ -5563,27 +5638,27 @@ var DeploymentDashboardCard = ({
|
|
|
5563
5638
|
color: deploymentSurfaceTokens.textSecondary
|
|
5564
5639
|
},
|
|
5565
5640
|
children: [
|
|
5566
|
-
createdAt != null && /* @__PURE__ */
|
|
5641
|
+
createdAt != null && /* @__PURE__ */ jsxs21(Typography13, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
5567
5642
|
"Created: ",
|
|
5568
5643
|
createdAt
|
|
5569
5644
|
] }),
|
|
5570
|
-
updatedAt != null && /* @__PURE__ */
|
|
5645
|
+
updatedAt != null && /* @__PURE__ */ jsxs21(Typography13, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
5571
5646
|
"Last Updated: ",
|
|
5572
5647
|
updatedAt
|
|
5573
5648
|
] })
|
|
5574
5649
|
]
|
|
5575
5650
|
}
|
|
5576
5651
|
),
|
|
5577
|
-
capacityClamped !== void 0 && /* @__PURE__ */
|
|
5652
|
+
capacityClamped !== void 0 && /* @__PURE__ */ jsx45(CapacityBar, { value: capacityClamped, indented: expandable })
|
|
5578
5653
|
] }),
|
|
5579
|
-
/* @__PURE__ */
|
|
5580
|
-
statusIndicator != null && /* @__PURE__ */
|
|
5581
|
-
/* @__PURE__ */
|
|
5654
|
+
/* @__PURE__ */ jsxs21(Box14, { sx: { display: "flex", gap: 1, alignItems: "center", flexShrink: 0 }, children: [
|
|
5655
|
+
statusIndicator != null && /* @__PURE__ */ jsx45(StatusDot, { status: statusIndicator, "aria-hidden": true }),
|
|
5656
|
+
/* @__PURE__ */ jsx45(CardActionList, { actions })
|
|
5582
5657
|
] })
|
|
5583
5658
|
]
|
|
5584
5659
|
}
|
|
5585
5660
|
),
|
|
5586
|
-
children && /* @__PURE__ */
|
|
5661
|
+
children && /* @__PURE__ */ jsx45(Box14, { sx: { mt: 1.5, display: "flex", flexDirection: "column", gap: 1 }, children })
|
|
5587
5662
|
]
|
|
5588
5663
|
}
|
|
5589
5664
|
);
|
|
@@ -5592,7 +5667,7 @@ var DeploymentDashboardCard = ({
|
|
|
5592
5667
|
// src/components/layout/DeploymentEntityContextMenu/DeploymentEntityContextMenu.tsx
|
|
5593
5668
|
import { Menu as Menu5, MenuItem as MenuItem2, Switch as Switch2, Divider as Divider5, ListItemIcon as ListItemIcon5, ListItemText as ListItemText8 } from "@mui/material";
|
|
5594
5669
|
import { styled as styled31 } from "@mui/material/styles";
|
|
5595
|
-
import { Fragment as Fragment11, jsx as
|
|
5670
|
+
import { Fragment as Fragment11, jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5596
5671
|
var StyledMenu2 = styled31(Menu5)({
|
|
5597
5672
|
"& .MuiPaper-root": {
|
|
5598
5673
|
borderRadius: 4,
|
|
@@ -5690,7 +5765,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
5690
5765
|
enableChecked = false,
|
|
5691
5766
|
onEnableChange
|
|
5692
5767
|
}) => {
|
|
5693
|
-
return /* @__PURE__ */
|
|
5768
|
+
return /* @__PURE__ */ jsxs22(
|
|
5694
5769
|
StyledMenu2,
|
|
5695
5770
|
{
|
|
5696
5771
|
anchorEl,
|
|
@@ -5702,11 +5777,11 @@ var DeploymentEntityContextMenu = ({
|
|
|
5702
5777
|
children: [
|
|
5703
5778
|
items.map((item) => {
|
|
5704
5779
|
if (item.type === "divider") {
|
|
5705
|
-
return /* @__PURE__ */
|
|
5780
|
+
return /* @__PURE__ */ jsx46(StyledDivider, {}, item.id);
|
|
5706
5781
|
}
|
|
5707
5782
|
if (item.type === "toggle") {
|
|
5708
|
-
return /* @__PURE__ */
|
|
5709
|
-
onEnableChange && /* @__PURE__ */
|
|
5783
|
+
return /* @__PURE__ */ jsxs22(ToggleMenuItem, { disableRipple: true, children: [
|
|
5784
|
+
onEnableChange && /* @__PURE__ */ jsx46(
|
|
5710
5785
|
EnableSwitch,
|
|
5711
5786
|
{
|
|
5712
5787
|
size: "small",
|
|
@@ -5715,11 +5790,11 @@ var DeploymentEntityContextMenu = ({
|
|
|
5715
5790
|
inputProps: { "aria-label": item.label }
|
|
5716
5791
|
}
|
|
5717
5792
|
),
|
|
5718
|
-
/* @__PURE__ */
|
|
5793
|
+
/* @__PURE__ */ jsx46(ListItemText8, { primary: item.label })
|
|
5719
5794
|
] }, item.id);
|
|
5720
5795
|
}
|
|
5721
5796
|
const Row = item.highlighted ? HighlightedMenuItem : StyledMenuItem;
|
|
5722
|
-
return /* @__PURE__ */
|
|
5797
|
+
return /* @__PURE__ */ jsxs22(
|
|
5723
5798
|
Row,
|
|
5724
5799
|
{
|
|
5725
5800
|
onClick: () => {
|
|
@@ -5727,17 +5802,17 @@ var DeploymentEntityContextMenu = ({
|
|
|
5727
5802
|
onClose();
|
|
5728
5803
|
},
|
|
5729
5804
|
children: [
|
|
5730
|
-
item.icon && /* @__PURE__ */
|
|
5731
|
-
/* @__PURE__ */
|
|
5805
|
+
item.icon && /* @__PURE__ */ jsx46(ListItemIcon5, { children: item.icon }),
|
|
5806
|
+
/* @__PURE__ */ jsx46(ListItemText8, { primary: item.label })
|
|
5732
5807
|
]
|
|
5733
5808
|
},
|
|
5734
5809
|
item.id
|
|
5735
5810
|
);
|
|
5736
5811
|
}),
|
|
5737
|
-
enableToggle && /* @__PURE__ */
|
|
5738
|
-
/* @__PURE__ */
|
|
5739
|
-
/* @__PURE__ */
|
|
5740
|
-
onEnableChange && /* @__PURE__ */
|
|
5812
|
+
enableToggle && /* @__PURE__ */ jsxs22(Fragment11, { children: [
|
|
5813
|
+
/* @__PURE__ */ jsx46(StyledDivider, {}),
|
|
5814
|
+
/* @__PURE__ */ jsxs22(ToggleMenuItem, { disableRipple: true, children: [
|
|
5815
|
+
onEnableChange && /* @__PURE__ */ jsx46(
|
|
5741
5816
|
EnableSwitch,
|
|
5742
5817
|
{
|
|
5743
5818
|
size: "small",
|
|
@@ -5746,7 +5821,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
5746
5821
|
inputProps: { "aria-label": "Enable" }
|
|
5747
5822
|
}
|
|
5748
5823
|
),
|
|
5749
|
-
/* @__PURE__ */
|
|
5824
|
+
/* @__PURE__ */ jsx46(ListItemText8, { primary: "Enable" })
|
|
5750
5825
|
] })
|
|
5751
5826
|
] })
|
|
5752
5827
|
]
|
|
@@ -5761,48 +5836,48 @@ import ContentCopyIcon2 from "@mui/icons-material/ContentCopy";
|
|
|
5761
5836
|
import SmartToyOutlinedIcon2 from "@mui/icons-material/SmartToyOutlined";
|
|
5762
5837
|
import DescriptionIcon from "@mui/icons-material/Description";
|
|
5763
5838
|
import SettingsIcon2 from "@mui/icons-material/Settings";
|
|
5764
|
-
import { jsx as
|
|
5839
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
5765
5840
|
var contextMenuItems = {
|
|
5766
5841
|
/** Add Engagement action (Add Circle icon) */
|
|
5767
5842
|
addEngagement: (onClick) => ({
|
|
5768
5843
|
id: "add-engagement",
|
|
5769
5844
|
label: "Add Engagement",
|
|
5770
|
-
icon: /* @__PURE__ */
|
|
5845
|
+
icon: /* @__PURE__ */ jsx47(AddCircleOutlineIcon, {}),
|
|
5771
5846
|
onClick
|
|
5772
5847
|
}),
|
|
5773
5848
|
/** Add Agent action (Add Circle icon) */
|
|
5774
5849
|
addAgent: (onClick) => ({
|
|
5775
5850
|
id: "add-agent",
|
|
5776
5851
|
label: "Add Agent",
|
|
5777
|
-
icon: /* @__PURE__ */
|
|
5852
|
+
icon: /* @__PURE__ */ jsx47(AddCircleOutlineIcon, {}),
|
|
5778
5853
|
onClick
|
|
5779
5854
|
}),
|
|
5780
5855
|
/** Add Stream action (Add Circle icon) */
|
|
5781
5856
|
addStream: (onClick) => ({
|
|
5782
5857
|
id: "add-stream",
|
|
5783
5858
|
label: "Add Stream",
|
|
5784
|
-
icon: /* @__PURE__ */
|
|
5859
|
+
icon: /* @__PURE__ */ jsx47(AddCircleOutlineIcon, {}),
|
|
5785
5860
|
onClick
|
|
5786
5861
|
}),
|
|
5787
5862
|
/** Edit action (Pen / Edit icon) */
|
|
5788
5863
|
edit: (onClick) => ({
|
|
5789
5864
|
id: "edit",
|
|
5790
5865
|
label: "Edit",
|
|
5791
|
-
icon: /* @__PURE__ */
|
|
5866
|
+
icon: /* @__PURE__ */ jsx47(EditIcon, {}),
|
|
5792
5867
|
onClick
|
|
5793
5868
|
}),
|
|
5794
5869
|
/** Copy ID action (Copy icon) */
|
|
5795
5870
|
copyId: (onClick) => ({
|
|
5796
5871
|
id: "copy-id",
|
|
5797
5872
|
label: "Copy ID",
|
|
5798
|
-
icon: /* @__PURE__ */
|
|
5873
|
+
icon: /* @__PURE__ */ jsx47(ContentCopyIcon2, {}),
|
|
5799
5874
|
onClick
|
|
5800
5875
|
}),
|
|
5801
5876
|
/** Agent Flow Visualization — highlighted action (SmartToy icon) */
|
|
5802
5877
|
agentFlowVisualization: (onClick) => ({
|
|
5803
5878
|
id: "agent-flow",
|
|
5804
5879
|
label: "Agent Flow Visualization",
|
|
5805
|
-
icon: /* @__PURE__ */
|
|
5880
|
+
icon: /* @__PURE__ */ jsx47(SmartToyOutlinedIcon2, {}),
|
|
5806
5881
|
onClick,
|
|
5807
5882
|
highlighted: true
|
|
5808
5883
|
}),
|
|
@@ -5810,7 +5885,7 @@ var contextMenuItems = {
|
|
|
5810
5885
|
viewLogs: (onClick) => ({
|
|
5811
5886
|
id: "view-logs",
|
|
5812
5887
|
label: "View Logs",
|
|
5813
|
-
icon: /* @__PURE__ */
|
|
5888
|
+
icon: /* @__PURE__ */ jsx47(DescriptionIcon, {}),
|
|
5814
5889
|
onClick
|
|
5815
5890
|
}),
|
|
5816
5891
|
/** Horizontal divider between sections */
|
|
@@ -5829,7 +5904,7 @@ var contextMenuItems = {
|
|
|
5829
5904
|
settings: (onClick) => ({
|
|
5830
5905
|
id: "settings",
|
|
5831
5906
|
label: "Settings",
|
|
5832
|
-
icon: /* @__PURE__ */
|
|
5907
|
+
icon: /* @__PURE__ */ jsx47(SettingsIcon2, {}),
|
|
5833
5908
|
onClick
|
|
5834
5909
|
})
|
|
5835
5910
|
};
|
|
@@ -5837,7 +5912,7 @@ var contextMenuItems = {
|
|
|
5837
5912
|
// src/components/layout/DeploymentDashboardTree/DeploymentDashboardTree.tsx
|
|
5838
5913
|
import { Box as Box15 } from "@mui/material";
|
|
5839
5914
|
import { styled as styled32, alpha } from "@mui/material/styles";
|
|
5840
|
-
import { jsx as
|
|
5915
|
+
import { jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5841
5916
|
var TREE_SP = {
|
|
5842
5917
|
/** Vertical gap between sibling rows (Figma S / sp-8) */
|
|
5843
5918
|
rowGap: 8,
|
|
@@ -5874,9 +5949,9 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
5874
5949
|
const entityColor = deploymentEntityColors[node.entityType] ?? deploymentEntityColors.workspace;
|
|
5875
5950
|
const railOpacity = RAIL_OPACITY[node.entityType] ?? 0.5;
|
|
5876
5951
|
const railColor = alpha(entityColor, railOpacity);
|
|
5877
|
-
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */
|
|
5878
|
-
/* @__PURE__ */
|
|
5879
|
-
/* @__PURE__ */
|
|
5952
|
+
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */ jsxs23(Box15, { sx: { display: "flex", gap: `${TREE_SP.railGap}px` }, children: [
|
|
5953
|
+
/* @__PURE__ */ jsx48(Rail, { railColor, "aria-hidden": true, "data-rail": true }),
|
|
5954
|
+
/* @__PURE__ */ jsx48(
|
|
5880
5955
|
Box15,
|
|
5881
5956
|
{
|
|
5882
5957
|
role: "group",
|
|
@@ -5887,7 +5962,7 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
5887
5962
|
flexDirection: "column",
|
|
5888
5963
|
gap: `${TREE_SP.rowGap}px`
|
|
5889
5964
|
},
|
|
5890
|
-
children: node.children.map((child) => /* @__PURE__ */
|
|
5965
|
+
children: node.children.map((child) => /* @__PURE__ */ jsx48(
|
|
5891
5966
|
TreeRow,
|
|
5892
5967
|
{
|
|
5893
5968
|
node: child,
|
|
@@ -5901,7 +5976,7 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
5901
5976
|
}
|
|
5902
5977
|
)
|
|
5903
5978
|
] }) : null;
|
|
5904
|
-
const cardContent = renderCard?.(node) ?? /* @__PURE__ */
|
|
5979
|
+
const cardContent = renderCard?.(node) ?? /* @__PURE__ */ jsx48(
|
|
5905
5980
|
DeploymentDashboardCard,
|
|
5906
5981
|
{
|
|
5907
5982
|
entityType: node.entityType,
|
|
@@ -5919,7 +5994,7 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
5919
5994
|
children: renderedChildren
|
|
5920
5995
|
}
|
|
5921
5996
|
);
|
|
5922
|
-
return /* @__PURE__ */
|
|
5997
|
+
return /* @__PURE__ */ jsx48(Box15, { role: "treeitem", children: cardContent });
|
|
5923
5998
|
};
|
|
5924
5999
|
var DeploymentDashboardTree = ({
|
|
5925
6000
|
nodes,
|
|
@@ -5927,7 +6002,7 @@ var DeploymentDashboardTree = ({
|
|
|
5927
6002
|
onCopyId,
|
|
5928
6003
|
renderCard
|
|
5929
6004
|
}) => {
|
|
5930
|
-
return /* @__PURE__ */
|
|
6005
|
+
return /* @__PURE__ */ jsx48(
|
|
5931
6006
|
Box15,
|
|
5932
6007
|
{
|
|
5933
6008
|
role: "tree",
|
|
@@ -5937,7 +6012,7 @@ var DeploymentDashboardTree = ({
|
|
|
5937
6012
|
gap: `${TREE_SP.rowGap}px`,
|
|
5938
6013
|
p: `${TREE_SP.rowGap}px`
|
|
5939
6014
|
},
|
|
5940
|
-
children: nodes.map((node) => /* @__PURE__ */
|
|
6015
|
+
children: nodes.map((node) => /* @__PURE__ */ jsx48(
|
|
5941
6016
|
TreeRow,
|
|
5942
6017
|
{
|
|
5943
6018
|
node,
|
|
@@ -5955,7 +6030,7 @@ var DeploymentDashboardTree = ({
|
|
|
5955
6030
|
// src/components/layout/DeploymentDashboardPanel/DeploymentDashboardPanel.tsx
|
|
5956
6031
|
import { Box as Box16 } from "@mui/material";
|
|
5957
6032
|
import { styled as styled33 } from "@mui/material/styles";
|
|
5958
|
-
import { jsx as
|
|
6033
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
5959
6034
|
var PANEL_RADIUS = 12;
|
|
5960
6035
|
var PANEL_SHADOW = "0px 1px 3px rgba(0, 0, 0, 0.08)";
|
|
5961
6036
|
var StyledPanel = styled33(Box16)({
|
|
@@ -5970,13 +6045,309 @@ var DeploymentDashboardPanel = ({
|
|
|
5970
6045
|
className,
|
|
5971
6046
|
padding = 2
|
|
5972
6047
|
}) => {
|
|
5973
|
-
return /* @__PURE__ */
|
|
6048
|
+
return /* @__PURE__ */ jsx49(StyledPanel, { className, sx: { p: padding }, children });
|
|
6049
|
+
};
|
|
6050
|
+
|
|
6051
|
+
// src/components/layout/WorkflowNode/WorkflowNode.tsx
|
|
6052
|
+
import { Paper as Paper2, Box as Box17, Typography as Typography14 } from "@mui/material";
|
|
6053
|
+
import PlayCircleOutlineIcon from "@mui/icons-material/PlayCircleOutline";
|
|
6054
|
+
import CloudDownloadIcon from "@mui/icons-material/CloudDownload";
|
|
6055
|
+
import WavesIcon2 from "@mui/icons-material/Waves";
|
|
6056
|
+
import LinkIcon from "@mui/icons-material/Link";
|
|
6057
|
+
import CloudIcon from "@mui/icons-material/Cloud";
|
|
6058
|
+
import BoltIcon from "@mui/icons-material/Bolt";
|
|
6059
|
+
import FlashOnIcon from "@mui/icons-material/FlashOn";
|
|
6060
|
+
import PlayArrowIcon from "@mui/icons-material/PlayArrow";
|
|
6061
|
+
import PsychologyIcon from "@mui/icons-material/Psychology";
|
|
6062
|
+
import SmartToyOutlinedIcon3 from "@mui/icons-material/SmartToyOutlined";
|
|
6063
|
+
import CallSplitIcon from "@mui/icons-material/CallSplit";
|
|
6064
|
+
import SendIcon from "@mui/icons-material/Send";
|
|
6065
|
+
import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
|
|
6066
|
+
import { jsx as jsx50, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6067
|
+
var WORKFLOW_NODE_LABELS = {
|
|
6068
|
+
start: "Start",
|
|
6069
|
+
input: "Input",
|
|
6070
|
+
stream: "Stream",
|
|
6071
|
+
rafts: "Rafts",
|
|
6072
|
+
cubbies: "Cubbies",
|
|
6073
|
+
events: "Events",
|
|
6074
|
+
trigger: "Trigger",
|
|
6075
|
+
action: "Action",
|
|
6076
|
+
aiModel: "AI Model",
|
|
6077
|
+
aiAgent: "Agent",
|
|
6078
|
+
condition: "Condition",
|
|
6079
|
+
output: "Output",
|
|
6080
|
+
end: "End"
|
|
6081
|
+
};
|
|
6082
|
+
var NODE_ICON_SIZE = 18;
|
|
6083
|
+
var WORKFLOW_NODE_SHADOW = "0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1)";
|
|
6084
|
+
var WORKFLOW_NODE_ICONS = {
|
|
6085
|
+
start: /* @__PURE__ */ jsx50(PlayCircleOutlineIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6086
|
+
input: /* @__PURE__ */ jsx50(CloudDownloadIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6087
|
+
stream: /* @__PURE__ */ jsx50(WavesIcon2, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6088
|
+
rafts: /* @__PURE__ */ jsx50(LinkIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6089
|
+
cubbies: /* @__PURE__ */ jsx50(CloudIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6090
|
+
events: /* @__PURE__ */ jsx50(BoltIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6091
|
+
trigger: /* @__PURE__ */ jsx50(FlashOnIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6092
|
+
action: /* @__PURE__ */ jsx50(PlayArrowIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6093
|
+
aiModel: /* @__PURE__ */ jsx50(PsychologyIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6094
|
+
aiAgent: /* @__PURE__ */ jsx50(SmartToyOutlinedIcon3, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6095
|
+
condition: /* @__PURE__ */ jsx50(CallSplitIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6096
|
+
output: /* @__PURE__ */ jsx50(SendIcon, { sx: { fontSize: NODE_ICON_SIZE } }),
|
|
6097
|
+
end: /* @__PURE__ */ jsx50(CheckCircleOutlineIcon, { sx: { fontSize: NODE_ICON_SIZE } })
|
|
6098
|
+
};
|
|
6099
|
+
var WORKFLOW_NODE_STYLE_TOKENS = {
|
|
6100
|
+
start: {
|
|
6101
|
+
cardBorder: "#7BF1A8",
|
|
6102
|
+
badgeBackground: "#F0FDF4",
|
|
6103
|
+
badgeBorder: "#B9F8CF",
|
|
6104
|
+
badgeText: "#008236"
|
|
6105
|
+
},
|
|
6106
|
+
input: {
|
|
6107
|
+
cardBorder: "#74D4FF",
|
|
6108
|
+
badgeBackground: "#F0F9FF",
|
|
6109
|
+
badgeBorder: "#B8E6FE",
|
|
6110
|
+
badgeText: "#0069A8"
|
|
6111
|
+
},
|
|
6112
|
+
stream: {
|
|
6113
|
+
cardBorder: "#53EAFD",
|
|
6114
|
+
badgeBackground: "#ECFEFF",
|
|
6115
|
+
badgeBorder: "#A2F4FD",
|
|
6116
|
+
badgeText: "#007595"
|
|
6117
|
+
},
|
|
6118
|
+
rafts: {
|
|
6119
|
+
cardBorder: "#FFB86A",
|
|
6120
|
+
badgeBackground: "#FFF7ED",
|
|
6121
|
+
badgeBorder: "#FFD6A8",
|
|
6122
|
+
badgeText: "#CA3500"
|
|
6123
|
+
},
|
|
6124
|
+
cubbies: {
|
|
6125
|
+
cardBorder: "#D0C900",
|
|
6126
|
+
badgeBackground: "#FCFFED",
|
|
6127
|
+
badgeBorder: "#D0C900",
|
|
6128
|
+
badgeText: "#747500"
|
|
6129
|
+
},
|
|
6130
|
+
events: {
|
|
6131
|
+
cardBorder: "#FDA5D5",
|
|
6132
|
+
badgeBackground: "#FDF2F8",
|
|
6133
|
+
badgeBorder: "#FCCEE8",
|
|
6134
|
+
badgeText: "#C6005C"
|
|
6135
|
+
},
|
|
6136
|
+
trigger: {
|
|
6137
|
+
cardBorder: "#DAB2FF",
|
|
6138
|
+
badgeBackground: "#FAF5FF",
|
|
6139
|
+
badgeBorder: "#E9D4FF",
|
|
6140
|
+
badgeText: "#8200DB"
|
|
6141
|
+
},
|
|
6142
|
+
action: {
|
|
6143
|
+
cardBorder: "#8EC5FF",
|
|
6144
|
+
badgeBackground: "#EFF6FF",
|
|
6145
|
+
badgeBorder: "#BEDBFF",
|
|
6146
|
+
badgeText: "#1447E6"
|
|
6147
|
+
},
|
|
6148
|
+
aiModel: {
|
|
6149
|
+
cardBorder: "#A3B3FF",
|
|
6150
|
+
badgeBackground: "#EEF2FF",
|
|
6151
|
+
badgeBorder: "#C6D2FF",
|
|
6152
|
+
badgeText: "#432DD7"
|
|
6153
|
+
},
|
|
6154
|
+
aiAgent: {
|
|
6155
|
+
cardBorder: "#D0A2FB",
|
|
6156
|
+
badgeBackground: "#F8EEFF",
|
|
6157
|
+
badgeBorder: "#D9BCF3",
|
|
6158
|
+
badgeText: "#9F40F8"
|
|
6159
|
+
},
|
|
6160
|
+
condition: {
|
|
6161
|
+
cardBorder: "#FFD230",
|
|
6162
|
+
badgeBackground: "#FFFBEB",
|
|
6163
|
+
badgeBorder: "#FEE685",
|
|
6164
|
+
badgeText: "#BB4D00"
|
|
6165
|
+
},
|
|
6166
|
+
output: {
|
|
6167
|
+
cardBorder: "#5EE9B5",
|
|
6168
|
+
badgeBackground: "#ECFDF5",
|
|
6169
|
+
badgeBorder: "#A4F4CF",
|
|
6170
|
+
badgeText: "#007A55"
|
|
6171
|
+
},
|
|
6172
|
+
end: {
|
|
6173
|
+
cardBorder: "#FFA2A2",
|
|
6174
|
+
badgeBackground: "#FEF2F2",
|
|
6175
|
+
badgeBorder: "#FFC9C9",
|
|
6176
|
+
badgeText: "#C10007"
|
|
6177
|
+
}
|
|
6178
|
+
};
|
|
6179
|
+
var BADGE_TYPOGRAPHY = {
|
|
6180
|
+
fontSize: "12px",
|
|
6181
|
+
fontWeight: 500,
|
|
6182
|
+
lineHeight: 1.33
|
|
6183
|
+
};
|
|
6184
|
+
var SideConnectorDot = ({
|
|
6185
|
+
accentColor,
|
|
6186
|
+
side
|
|
6187
|
+
}) => /* @__PURE__ */ jsx50(
|
|
6188
|
+
Box17,
|
|
6189
|
+
{
|
|
6190
|
+
"data-testid": `workflow-node-dot-${side}`,
|
|
6191
|
+
sx: {
|
|
6192
|
+
position: "absolute",
|
|
6193
|
+
top: "50%",
|
|
6194
|
+
[side]: "-4px",
|
|
6195
|
+
transform: "translateY(-50%)",
|
|
6196
|
+
width: "8px",
|
|
6197
|
+
height: "8px",
|
|
6198
|
+
borderRadius: "999px",
|
|
6199
|
+
border: "2px solid #fff",
|
|
6200
|
+
backgroundColor: accentColor,
|
|
6201
|
+
boxShadow: WORKFLOW_NODE_SHADOW,
|
|
6202
|
+
zIndex: 1,
|
|
6203
|
+
pointerEvents: "none"
|
|
6204
|
+
}
|
|
6205
|
+
}
|
|
6206
|
+
);
|
|
6207
|
+
var NodeTypeBadge = ({ nodeType, badgeBackground, badgeBorder, badgeText, icon, label }) => /* @__PURE__ */ jsxs24(
|
|
6208
|
+
Box17,
|
|
6209
|
+
{
|
|
6210
|
+
sx: {
|
|
6211
|
+
display: "inline-flex",
|
|
6212
|
+
alignItems: "center",
|
|
6213
|
+
justifyContent: "center",
|
|
6214
|
+
gap: 1,
|
|
6215
|
+
px: 1,
|
|
6216
|
+
py: 0.5,
|
|
6217
|
+
borderRadius: "999px",
|
|
6218
|
+
backgroundColor: badgeBackground,
|
|
6219
|
+
border: `1px solid ${badgeBorder}`,
|
|
6220
|
+
flexShrink: 0
|
|
6221
|
+
},
|
|
6222
|
+
children: [
|
|
6223
|
+
/* @__PURE__ */ jsx50(Box17, { sx: { color: badgeText, display: "flex", alignItems: "center" }, children: icon ?? WORKFLOW_NODE_ICONS[nodeType] }),
|
|
6224
|
+
/* @__PURE__ */ jsx50(
|
|
6225
|
+
Typography14,
|
|
6226
|
+
{
|
|
6227
|
+
variant: "body2",
|
|
6228
|
+
component: "span",
|
|
6229
|
+
sx: {
|
|
6230
|
+
color: badgeText,
|
|
6231
|
+
fontWeight: BADGE_TYPOGRAPHY.fontWeight,
|
|
6232
|
+
fontSize: BADGE_TYPOGRAPHY.fontSize,
|
|
6233
|
+
lineHeight: BADGE_TYPOGRAPHY.lineHeight
|
|
6234
|
+
},
|
|
6235
|
+
children: label ?? WORKFLOW_NODE_LABELS[nodeType]
|
|
6236
|
+
}
|
|
6237
|
+
)
|
|
6238
|
+
]
|
|
6239
|
+
}
|
|
6240
|
+
);
|
|
6241
|
+
var WorkflowNode = ({
|
|
6242
|
+
nodeType,
|
|
6243
|
+
title,
|
|
6244
|
+
description,
|
|
6245
|
+
icon,
|
|
6246
|
+
badgeLabel,
|
|
6247
|
+
selected = false,
|
|
6248
|
+
className,
|
|
6249
|
+
showSideDots = true,
|
|
6250
|
+
sx,
|
|
6251
|
+
...paperProps
|
|
6252
|
+
}) => {
|
|
6253
|
+
const accentColor = workflowNodeColors[nodeType];
|
|
6254
|
+
const visualTokens = WORKFLOW_NODE_STYLE_TOKENS[nodeType];
|
|
6255
|
+
return /* @__PURE__ */ jsxs24(
|
|
6256
|
+
Paper2,
|
|
6257
|
+
{
|
|
6258
|
+
elevation: 0,
|
|
6259
|
+
className,
|
|
6260
|
+
sx: {
|
|
6261
|
+
display: "flex",
|
|
6262
|
+
flexDirection: "row",
|
|
6263
|
+
position: "relative",
|
|
6264
|
+
overflow: "visible",
|
|
6265
|
+
border: `1px solid ${selected ? accentColor : visualTokens.cardBorder}`,
|
|
6266
|
+
borderRadius: "14px",
|
|
6267
|
+
minWidth: 220,
|
|
6268
|
+
maxWidth: 460,
|
|
6269
|
+
minHeight: "76px",
|
|
6270
|
+
backgroundColor: "#fff",
|
|
6271
|
+
boxShadow: WORKFLOW_NODE_SHADOW,
|
|
6272
|
+
transition: "border-color 0.15s ease",
|
|
6273
|
+
...sx
|
|
6274
|
+
},
|
|
6275
|
+
...paperProps,
|
|
6276
|
+
children: [
|
|
6277
|
+
showSideDots && /* @__PURE__ */ jsx50(SideConnectorDot, { accentColor, side: "left" }),
|
|
6278
|
+
showSideDots && /* @__PURE__ */ jsx50(SideConnectorDot, { accentColor, side: "right" }),
|
|
6279
|
+
/* @__PURE__ */ jsxs24(
|
|
6280
|
+
Box17,
|
|
6281
|
+
{
|
|
6282
|
+
sx: {
|
|
6283
|
+
flex: 1,
|
|
6284
|
+
display: "flex",
|
|
6285
|
+
justifyContent: "space-between",
|
|
6286
|
+
alignItems: "center",
|
|
6287
|
+
gap: 2,
|
|
6288
|
+
px: 2,
|
|
6289
|
+
py: 2,
|
|
6290
|
+
minWidth: 0
|
|
6291
|
+
},
|
|
6292
|
+
children: [
|
|
6293
|
+
/* @__PURE__ */ jsxs24(Box17, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
6294
|
+
/* @__PURE__ */ jsx50(
|
|
6295
|
+
Typography14,
|
|
6296
|
+
{
|
|
6297
|
+
variant: "subtitle2",
|
|
6298
|
+
noWrap: true,
|
|
6299
|
+
sx: {
|
|
6300
|
+
color: "#1E2939",
|
|
6301
|
+
fontSize: "16px",
|
|
6302
|
+
fontWeight: 500,
|
|
6303
|
+
lineHeight: "24px",
|
|
6304
|
+
letterSpacing: "-0.3125px"
|
|
6305
|
+
},
|
|
6306
|
+
children: title
|
|
6307
|
+
}
|
|
6308
|
+
),
|
|
6309
|
+
description && /* @__PURE__ */ jsx50(
|
|
6310
|
+
Typography14,
|
|
6311
|
+
{
|
|
6312
|
+
variant: "body2",
|
|
6313
|
+
sx: {
|
|
6314
|
+
color: "#6A7282",
|
|
6315
|
+
fontSize: "12px",
|
|
6316
|
+
lineHeight: "16px",
|
|
6317
|
+
mt: 0.25,
|
|
6318
|
+
overflow: "hidden",
|
|
6319
|
+
textOverflow: "ellipsis",
|
|
6320
|
+
display: "-webkit-box",
|
|
6321
|
+
WebkitLineClamp: 2,
|
|
6322
|
+
WebkitBoxOrient: "vertical"
|
|
6323
|
+
},
|
|
6324
|
+
children: description
|
|
6325
|
+
}
|
|
6326
|
+
)
|
|
6327
|
+
] }),
|
|
6328
|
+
/* @__PURE__ */ jsx50(
|
|
6329
|
+
NodeTypeBadge,
|
|
6330
|
+
{
|
|
6331
|
+
nodeType,
|
|
6332
|
+
badgeBackground: visualTokens.badgeBackground,
|
|
6333
|
+
badgeBorder: visualTokens.badgeBorder,
|
|
6334
|
+
badgeText: visualTokens.badgeText,
|
|
6335
|
+
icon,
|
|
6336
|
+
label: badgeLabel
|
|
6337
|
+
}
|
|
6338
|
+
)
|
|
6339
|
+
]
|
|
6340
|
+
}
|
|
6341
|
+
)
|
|
6342
|
+
]
|
|
6343
|
+
}
|
|
6344
|
+
);
|
|
5974
6345
|
};
|
|
5975
6346
|
|
|
5976
6347
|
// src/components/layout/Avatar.tsx
|
|
5977
6348
|
import MuiAvatar from "@mui/material/Avatar";
|
|
5978
6349
|
import { styled as styled34 } from "@mui/material/styles";
|
|
5979
|
-
import { jsx as
|
|
6350
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
5980
6351
|
var sizeMap = {
|
|
5981
6352
|
small: 32,
|
|
5982
6353
|
medium: 40,
|
|
@@ -5993,7 +6364,7 @@ var StyledAvatar = styled34(MuiAvatar, {
|
|
|
5993
6364
|
}));
|
|
5994
6365
|
var Avatar5 = ({ size: size3 = "medium", ...props }) => {
|
|
5995
6366
|
const avatarSize = typeof size3 === "number" ? size3 : sizeMap[size3];
|
|
5996
|
-
return /* @__PURE__ */
|
|
6367
|
+
return /* @__PURE__ */ jsx51(StyledAvatar, { avatarSize, ...props });
|
|
5997
6368
|
};
|
|
5998
6369
|
|
|
5999
6370
|
// src/components/layout/Table.tsx
|
|
@@ -6007,7 +6378,7 @@ import {
|
|
|
6007
6378
|
TableSortLabel
|
|
6008
6379
|
} from "@mui/material";
|
|
6009
6380
|
import { styled as styled35 } from "@mui/material/styles";
|
|
6010
|
-
import { jsx as
|
|
6381
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
6011
6382
|
var StyledTableContainer = styled35(TableContainer)({
|
|
6012
6383
|
borderRadius: 8,
|
|
6013
6384
|
border: `1px solid ${colors.grey[200]}`
|
|
@@ -6020,7 +6391,7 @@ var StyledTableHead = styled35(TableHead)({
|
|
|
6020
6391
|
}
|
|
6021
6392
|
});
|
|
6022
6393
|
var Table = ({ stickyHeader = false, children, ...props }) => {
|
|
6023
|
-
return /* @__PURE__ */
|
|
6394
|
+
return /* @__PURE__ */ jsx52(StyledTableContainer, { children: /* @__PURE__ */ jsx52(MuiTable, { stickyHeader, ...props, children }) });
|
|
6024
6395
|
};
|
|
6025
6396
|
var TableHeader = ({
|
|
6026
6397
|
columns,
|
|
@@ -6028,7 +6399,7 @@ var TableHeader = ({
|
|
|
6028
6399
|
order = "asc",
|
|
6029
6400
|
onSort
|
|
6030
6401
|
}) => {
|
|
6031
|
-
return /* @__PURE__ */
|
|
6402
|
+
return /* @__PURE__ */ jsx52(StyledTableHead, { children: /* @__PURE__ */ jsx52(TableRow, { children: columns.map((column) => /* @__PURE__ */ jsx52(TableCell, { align: column.align || "left", children: column.sortable && onSort ? /* @__PURE__ */ jsx52(
|
|
6032
6403
|
TableSortLabel,
|
|
6033
6404
|
{
|
|
6034
6405
|
active: orderBy === column.id,
|
|
@@ -6045,9 +6416,9 @@ import { Grid2 } from "@mui/material";
|
|
|
6045
6416
|
// src/components/layout/Breadcrumbs.tsx
|
|
6046
6417
|
import MuiBreadcrumbs from "@mui/material/Breadcrumbs";
|
|
6047
6418
|
import Link4 from "@mui/material/Link";
|
|
6048
|
-
import
|
|
6419
|
+
import Typography15 from "@mui/material/Typography";
|
|
6049
6420
|
import { styled as styled36 } from "@mui/material/styles";
|
|
6050
|
-
import { jsx as
|
|
6421
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
6051
6422
|
var StyledBreadcrumbs = styled36(MuiBreadcrumbs)({
|
|
6052
6423
|
"& .MuiBreadcrumbs-ol": {
|
|
6053
6424
|
flexWrap: "nowrap"
|
|
@@ -6064,12 +6435,12 @@ var StyledLink2 = styled36(Link4)({
|
|
|
6064
6435
|
}
|
|
6065
6436
|
});
|
|
6066
6437
|
var Breadcrumbs = ({ items, ...props }) => {
|
|
6067
|
-
return /* @__PURE__ */
|
|
6438
|
+
return /* @__PURE__ */ jsx53(StyledBreadcrumbs, { ...props, children: items.map((item, index) => {
|
|
6068
6439
|
const isLast = index === items.length - 1;
|
|
6069
6440
|
if (isLast || !item.href && !item.onClick) {
|
|
6070
|
-
return /* @__PURE__ */
|
|
6441
|
+
return /* @__PURE__ */ jsx53(Typography15, { color: "text.primary", children: item.label }, index);
|
|
6071
6442
|
}
|
|
6072
|
-
return /* @__PURE__ */
|
|
6443
|
+
return /* @__PURE__ */ jsx53(
|
|
6073
6444
|
StyledLink2,
|
|
6074
6445
|
{
|
|
6075
6446
|
href: item.href,
|
|
@@ -6094,7 +6465,7 @@ import {
|
|
|
6094
6465
|
} from "@mui/material";
|
|
6095
6466
|
import ExpandMoreIcon2 from "@mui/icons-material/ExpandMore";
|
|
6096
6467
|
import { styled as styled37 } from "@mui/material/styles";
|
|
6097
|
-
import { jsx as
|
|
6468
|
+
import { jsx as jsx54, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6098
6469
|
var StyledAccordion = styled37(MuiAccordion)({
|
|
6099
6470
|
borderRadius: 8,
|
|
6100
6471
|
boxShadow: "none",
|
|
@@ -6125,16 +6496,16 @@ var Accordion = ({
|
|
|
6125
6496
|
defaultExpanded = false,
|
|
6126
6497
|
...props
|
|
6127
6498
|
}) => {
|
|
6128
|
-
return /* @__PURE__ */
|
|
6129
|
-
/* @__PURE__ */
|
|
6130
|
-
/* @__PURE__ */
|
|
6499
|
+
return /* @__PURE__ */ jsxs25(StyledAccordion, { defaultExpanded, ...props, children: [
|
|
6500
|
+
/* @__PURE__ */ jsx54(StyledAccordionSummary, { expandIcon: /* @__PURE__ */ jsx54(ExpandMoreIcon2, {}), children: title }),
|
|
6501
|
+
/* @__PURE__ */ jsx54(StyledAccordionDetails, { children })
|
|
6131
6502
|
] });
|
|
6132
6503
|
};
|
|
6133
6504
|
|
|
6134
6505
|
// src/components/layout/Paper.tsx
|
|
6135
6506
|
import MuiPaper from "@mui/material/Paper";
|
|
6136
6507
|
import { styled as styled38 } from "@mui/material/styles";
|
|
6137
|
-
import { jsx as
|
|
6508
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
6138
6509
|
var StyledPaper = styled38(MuiPaper)({
|
|
6139
6510
|
borderRadius: 8,
|
|
6140
6511
|
"&.MuiPaper-elevation": {
|
|
@@ -6145,29 +6516,29 @@ var StyledPaper = styled38(MuiPaper)({
|
|
|
6145
6516
|
boxShadow: "none"
|
|
6146
6517
|
}
|
|
6147
6518
|
});
|
|
6148
|
-
var
|
|
6149
|
-
return /* @__PURE__ */
|
|
6519
|
+
var Paper3 = ({ variant = "elevation", ...props }) => {
|
|
6520
|
+
return /* @__PURE__ */ jsx55(StyledPaper, { variant, elevation: variant === "elevation" ? 1 : 0, ...props });
|
|
6150
6521
|
};
|
|
6151
6522
|
|
|
6152
6523
|
// src/components/layout/Divider.tsx
|
|
6153
6524
|
import MuiDivider from "@mui/material/Divider";
|
|
6154
6525
|
import { styled as styled39 } from "@mui/material/styles";
|
|
6155
|
-
import { jsx as
|
|
6526
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6156
6527
|
var StyledDivider2 = styled39(MuiDivider)({
|
|
6157
6528
|
borderColor: colors.grey[200]
|
|
6158
6529
|
});
|
|
6159
6530
|
var Divider6 = ({ ...props }) => {
|
|
6160
|
-
return /* @__PURE__ */
|
|
6531
|
+
return /* @__PURE__ */ jsx56(StyledDivider2, { ...props });
|
|
6161
6532
|
};
|
|
6162
6533
|
|
|
6163
6534
|
// src/components/layout/Stack.tsx
|
|
6164
|
-
import { Stack as
|
|
6535
|
+
import { Stack as Stack4 } from "@mui/material";
|
|
6165
6536
|
|
|
6166
6537
|
// src/components/layout/Box.tsx
|
|
6167
|
-
import { Box as
|
|
6538
|
+
import { Box as Box18 } from "@mui/material";
|
|
6168
6539
|
|
|
6169
6540
|
// src/components/layout/Typography.tsx
|
|
6170
|
-
import { Typography as
|
|
6541
|
+
import { Typography as Typography16 } from "@mui/material";
|
|
6171
6542
|
|
|
6172
6543
|
// src/components/layout/Container.tsx
|
|
6173
6544
|
import { Container as Container2 } from "@mui/material";
|
|
@@ -6178,7 +6549,7 @@ import {
|
|
|
6178
6549
|
Toolbar
|
|
6179
6550
|
} from "@mui/material";
|
|
6180
6551
|
import { styled as styled40 } from "@mui/material/styles";
|
|
6181
|
-
import { jsx as
|
|
6552
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
6182
6553
|
var StyledAppBar = styled40(MuiAppBar, {
|
|
6183
6554
|
shouldForwardProp: (prop) => prop !== "appBarHeight"
|
|
6184
6555
|
})(({ appBarHeight = 64 }) => ({
|
|
@@ -6195,16 +6566,510 @@ var StyledToolbar = styled40(Toolbar)(({ theme: theme2 }) => ({
|
|
|
6195
6566
|
gap: theme2.spacing(2)
|
|
6196
6567
|
}));
|
|
6197
6568
|
var AppBar = ({ height = 64, children, ...props }) => {
|
|
6198
|
-
return /* @__PURE__ */
|
|
6569
|
+
return /* @__PURE__ */ jsx57(StyledAppBar, { position: "fixed", appBarHeight: height, ...props, children: /* @__PURE__ */ jsx57(StyledToolbar, { children }) });
|
|
6570
|
+
};
|
|
6571
|
+
|
|
6572
|
+
// src/components/layout/WorkflowTopBar/WorkflowTopBar.tsx
|
|
6573
|
+
import {
|
|
6574
|
+
Box as Box19,
|
|
6575
|
+
Divider as Divider7,
|
|
6576
|
+
IconButton as IconButton11,
|
|
6577
|
+
InputBase,
|
|
6578
|
+
Typography as Typography17,
|
|
6579
|
+
alpha as alpha2
|
|
6580
|
+
} from "@mui/material";
|
|
6581
|
+
import CloseIcon3 from "@mui/icons-material/Close";
|
|
6582
|
+
import CancelIcon from "@mui/icons-material/Cancel";
|
|
6583
|
+
import { jsx as jsx58, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6584
|
+
var WorkflowTopBar = ({
|
|
6585
|
+
title = "Agent visualization flow chart",
|
|
6586
|
+
executionId,
|
|
6587
|
+
onExecutionIdChange,
|
|
6588
|
+
onClearExecutionId,
|
|
6589
|
+
submitLabel = "Submit",
|
|
6590
|
+
onSubmit,
|
|
6591
|
+
inspectorLabel = "Inspector",
|
|
6592
|
+
onInspectorToggle,
|
|
6593
|
+
onClose,
|
|
6594
|
+
showInspectorToggle = true,
|
|
6595
|
+
showCloseButton = true,
|
|
6596
|
+
sx,
|
|
6597
|
+
...boxProps
|
|
6598
|
+
}) => {
|
|
6599
|
+
return /* @__PURE__ */ jsxs26(
|
|
6600
|
+
Box19,
|
|
6601
|
+
{
|
|
6602
|
+
sx: {
|
|
6603
|
+
backgroundColor: "#fff",
|
|
6604
|
+
display: "flex",
|
|
6605
|
+
flexDirection: "column",
|
|
6606
|
+
width: "100%",
|
|
6607
|
+
...sx
|
|
6608
|
+
},
|
|
6609
|
+
...boxProps,
|
|
6610
|
+
children: [
|
|
6611
|
+
/* @__PURE__ */ jsxs26(
|
|
6612
|
+
Box19,
|
|
6613
|
+
{
|
|
6614
|
+
sx: {
|
|
6615
|
+
display: "flex",
|
|
6616
|
+
alignItems: "center",
|
|
6617
|
+
justifyContent: "space-between",
|
|
6618
|
+
gap: 2,
|
|
6619
|
+
px: 2,
|
|
6620
|
+
py: 2,
|
|
6621
|
+
minHeight: 72
|
|
6622
|
+
},
|
|
6623
|
+
children: [
|
|
6624
|
+
/* @__PURE__ */ jsx58(
|
|
6625
|
+
Typography17,
|
|
6626
|
+
{
|
|
6627
|
+
variant: "subtitle1",
|
|
6628
|
+
sx: {
|
|
6629
|
+
color: deploymentSurfaceTokens.textPrimary,
|
|
6630
|
+
fontWeight: 500,
|
|
6631
|
+
minWidth: 220
|
|
6632
|
+
},
|
|
6633
|
+
children: title
|
|
6634
|
+
}
|
|
6635
|
+
),
|
|
6636
|
+
/* @__PURE__ */ jsxs26(
|
|
6637
|
+
Box19,
|
|
6638
|
+
{
|
|
6639
|
+
sx: {
|
|
6640
|
+
display: "flex",
|
|
6641
|
+
alignItems: "center",
|
|
6642
|
+
gap: 2,
|
|
6643
|
+
justifyContent: "flex-end",
|
|
6644
|
+
flex: 1,
|
|
6645
|
+
minWidth: 0
|
|
6646
|
+
},
|
|
6647
|
+
children: [
|
|
6648
|
+
/* @__PURE__ */ jsxs26(
|
|
6649
|
+
Box19,
|
|
6650
|
+
{
|
|
6651
|
+
sx: {
|
|
6652
|
+
display: "flex",
|
|
6653
|
+
alignItems: "center",
|
|
6654
|
+
backgroundColor: "#D8D4DD",
|
|
6655
|
+
borderRadius: "4px 4px 0 0",
|
|
6656
|
+
borderBottom: "2px solid #A855F7",
|
|
6657
|
+
px: 2,
|
|
6658
|
+
minWidth: 320,
|
|
6659
|
+
maxWidth: 440,
|
|
6660
|
+
flex: "1 1 auto",
|
|
6661
|
+
minHeight: 56
|
|
6662
|
+
},
|
|
6663
|
+
children: [
|
|
6664
|
+
/* @__PURE__ */ jsxs26(Box19, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
6665
|
+
/* @__PURE__ */ jsx58(
|
|
6666
|
+
Typography17,
|
|
6667
|
+
{
|
|
6668
|
+
variant: "caption",
|
|
6669
|
+
sx: {
|
|
6670
|
+
color: "#6A7282",
|
|
6671
|
+
fontSize: 12,
|
|
6672
|
+
display: "block"
|
|
6673
|
+
},
|
|
6674
|
+
children: "Execution CID"
|
|
6675
|
+
}
|
|
6676
|
+
),
|
|
6677
|
+
/* @__PURE__ */ jsx58(
|
|
6678
|
+
InputBase,
|
|
6679
|
+
{
|
|
6680
|
+
value: executionId,
|
|
6681
|
+
onChange: (event) => onExecutionIdChange?.(event.target.value),
|
|
6682
|
+
inputProps: { "aria-label": "Execution CID value" },
|
|
6683
|
+
sx: {
|
|
6684
|
+
width: "100%",
|
|
6685
|
+
mt: 0.25,
|
|
6686
|
+
"& .MuiInputBase-input": {
|
|
6687
|
+
p: 0,
|
|
6688
|
+
color: "#1D1B20",
|
|
6689
|
+
fontSize: 16,
|
|
6690
|
+
lineHeight: 1.5
|
|
6691
|
+
}
|
|
6692
|
+
}
|
|
6693
|
+
}
|
|
6694
|
+
)
|
|
6695
|
+
] }),
|
|
6696
|
+
/* @__PURE__ */ jsx58(
|
|
6697
|
+
IconButton11,
|
|
6698
|
+
{
|
|
6699
|
+
size: "small",
|
|
6700
|
+
"aria-label": "Clear execution ID",
|
|
6701
|
+
onClick: onClearExecutionId,
|
|
6702
|
+
sx: { color: "#4A4458", ml: 1 },
|
|
6703
|
+
children: /* @__PURE__ */ jsx58(CancelIcon, { fontSize: "small" })
|
|
6704
|
+
}
|
|
6705
|
+
)
|
|
6706
|
+
]
|
|
6707
|
+
}
|
|
6708
|
+
),
|
|
6709
|
+
/* @__PURE__ */ jsx58(
|
|
6710
|
+
Button,
|
|
6711
|
+
{
|
|
6712
|
+
variant: "primary",
|
|
6713
|
+
onClick: onSubmit,
|
|
6714
|
+
sx: {
|
|
6715
|
+
backgroundColor: "#B65FF4",
|
|
6716
|
+
"&:hover": {
|
|
6717
|
+
backgroundColor: "#A855F7"
|
|
6718
|
+
},
|
|
6719
|
+
"&:active": {
|
|
6720
|
+
backgroundColor: "#9333EA"
|
|
6721
|
+
}
|
|
6722
|
+
},
|
|
6723
|
+
children: submitLabel
|
|
6724
|
+
}
|
|
6725
|
+
),
|
|
6726
|
+
showInspectorToggle && /* @__PURE__ */ jsx58(Button, { variant: "secondary", onClick: onInspectorToggle, children: inspectorLabel }),
|
|
6727
|
+
showCloseButton && /* @__PURE__ */ jsx58(
|
|
6728
|
+
IconButton11,
|
|
6729
|
+
{
|
|
6730
|
+
"aria-label": "Close workflow chrome",
|
|
6731
|
+
onClick: onClose,
|
|
6732
|
+
sx: {
|
|
6733
|
+
width: 30,
|
|
6734
|
+
height: 30,
|
|
6735
|
+
backgroundColor: alpha2("#9E9EAE", 0.28),
|
|
6736
|
+
color: "#4A4458"
|
|
6737
|
+
},
|
|
6738
|
+
children: /* @__PURE__ */ jsx58(CloseIcon3, { fontSize: "small" })
|
|
6739
|
+
}
|
|
6740
|
+
)
|
|
6741
|
+
]
|
|
6742
|
+
}
|
|
6743
|
+
)
|
|
6744
|
+
]
|
|
6745
|
+
}
|
|
6746
|
+
),
|
|
6747
|
+
/* @__PURE__ */ jsx58(Divider7, { sx: { borderColor: deploymentSurfaceTokens.strokeOutside } })
|
|
6748
|
+
]
|
|
6749
|
+
}
|
|
6750
|
+
);
|
|
6751
|
+
};
|
|
6752
|
+
|
|
6753
|
+
// src/components/layout/WorkflowSideInspector/WorkflowSideInspector.tsx
|
|
6754
|
+
import {
|
|
6755
|
+
Box as Box20,
|
|
6756
|
+
Divider as Divider8,
|
|
6757
|
+
IconButton as IconButton12,
|
|
6758
|
+
Paper as Paper4,
|
|
6759
|
+
Typography as Typography18,
|
|
6760
|
+
alpha as alpha3
|
|
6761
|
+
} from "@mui/material";
|
|
6762
|
+
import CloseIcon4 from "@mui/icons-material/Close";
|
|
6763
|
+
import ContentCopyOutlinedIcon from "@mui/icons-material/ContentCopyOutlined";
|
|
6764
|
+
import { jsx as jsx59, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6765
|
+
var INSPECTOR_WIDTH = 320;
|
|
6766
|
+
var DIVIDER_COLOR = "#D6CEDD";
|
|
6767
|
+
var MUTED_TEXT_COLOR = "#938F99";
|
|
6768
|
+
var InfoBlock = ({ label, value }) => /* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
6769
|
+
/* @__PURE__ */ jsx59(Typography18, { variant: "body2", sx: { color: MUTED_TEXT_COLOR }, children: label }),
|
|
6770
|
+
/* @__PURE__ */ jsx59(
|
|
6771
|
+
Typography18,
|
|
6772
|
+
{
|
|
6773
|
+
variant: "body2",
|
|
6774
|
+
sx: { color: deploymentSurfaceTokens.textPrimary, whiteSpace: "pre-wrap" },
|
|
6775
|
+
children: value
|
|
6776
|
+
}
|
|
6777
|
+
)
|
|
6778
|
+
] });
|
|
6779
|
+
var WorkflowSideInspector = ({
|
|
6780
|
+
open = true,
|
|
6781
|
+
title = "Inspector",
|
|
6782
|
+
nodeTitle = "Player location cubby",
|
|
6783
|
+
nodeDescription = "Retrieving everything we know about this player so far.",
|
|
6784
|
+
nodeType = "cubbies",
|
|
6785
|
+
inputValue = "Get player topic tree",
|
|
6786
|
+
outputValue = "Topic tree with emotional trends and behavior patterns",
|
|
6787
|
+
cubbyId = "ID:S8787",
|
|
6788
|
+
timestamp = "2026-02-11 14:32:10",
|
|
6789
|
+
duration = "120ms",
|
|
6790
|
+
actionLabel = "View Logs",
|
|
6791
|
+
onClose,
|
|
6792
|
+
onCopyCubbyId,
|
|
6793
|
+
onAction,
|
|
6794
|
+
sx,
|
|
6795
|
+
...paperProps
|
|
6796
|
+
}) => {
|
|
6797
|
+
if (!open) {
|
|
6798
|
+
return null;
|
|
6799
|
+
}
|
|
6800
|
+
const accent = workflowNodeColors[nodeType];
|
|
6801
|
+
return /* @__PURE__ */ jsxs27(
|
|
6802
|
+
Paper4,
|
|
6803
|
+
{
|
|
6804
|
+
elevation: 0,
|
|
6805
|
+
sx: {
|
|
6806
|
+
width: INSPECTOR_WIDTH,
|
|
6807
|
+
minWidth: INSPECTOR_WIDTH,
|
|
6808
|
+
maxWidth: INSPECTOR_WIDTH,
|
|
6809
|
+
p: 3,
|
|
6810
|
+
backgroundColor: "#fff",
|
|
6811
|
+
borderRadius: 0,
|
|
6812
|
+
boxShadow: "0px 5px 8px rgba(0, 3, 11, 0.12), 0px 0px 1px rgba(0, 3, 11, 0.24)",
|
|
6813
|
+
display: "flex",
|
|
6814
|
+
flexDirection: "column",
|
|
6815
|
+
gap: 3,
|
|
6816
|
+
...sx
|
|
6817
|
+
},
|
|
6818
|
+
...paperProps,
|
|
6819
|
+
children: [
|
|
6820
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 1.25 }, children: [
|
|
6821
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
6822
|
+
/* @__PURE__ */ jsx59(Typography18, { variant: "subtitle1", sx: { color: deploymentSurfaceTokens.textPrimary }, children: title }),
|
|
6823
|
+
/* @__PURE__ */ jsx59(
|
|
6824
|
+
IconButton12,
|
|
6825
|
+
{
|
|
6826
|
+
"aria-label": "Close inspector",
|
|
6827
|
+
onClick: onClose,
|
|
6828
|
+
sx: {
|
|
6829
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
6830
|
+
borderRadius: 2
|
|
6831
|
+
},
|
|
6832
|
+
children: /* @__PURE__ */ jsx59(CloseIcon4, { fontSize: "small" })
|
|
6833
|
+
}
|
|
6834
|
+
)
|
|
6835
|
+
] }),
|
|
6836
|
+
/* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } })
|
|
6837
|
+
] }),
|
|
6838
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 3, flex: 1 }, children: [
|
|
6839
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
6840
|
+
/* @__PURE__ */ jsx59(
|
|
6841
|
+
Typography18,
|
|
6842
|
+
{
|
|
6843
|
+
variant: "subtitle1",
|
|
6844
|
+
sx: { color: deploymentSurfaceTokens.textPrimary, fontWeight: 500 },
|
|
6845
|
+
children: nodeTitle
|
|
6846
|
+
}
|
|
6847
|
+
),
|
|
6848
|
+
/* @__PURE__ */ jsx59(Typography18, { variant: "body2", sx: { color: MUTED_TEXT_COLOR }, children: nodeDescription }),
|
|
6849
|
+
/* @__PURE__ */ jsxs27(
|
|
6850
|
+
Box20,
|
|
6851
|
+
{
|
|
6852
|
+
sx: {
|
|
6853
|
+
display: "inline-flex",
|
|
6854
|
+
alignItems: "center",
|
|
6855
|
+
alignSelf: "flex-start",
|
|
6856
|
+
gap: 1,
|
|
6857
|
+
px: 1.25,
|
|
6858
|
+
py: 0.5,
|
|
6859
|
+
borderRadius: "999px",
|
|
6860
|
+
border: `1px solid ${accent}`,
|
|
6861
|
+
backgroundColor: alpha3(accent, 0.12)
|
|
6862
|
+
},
|
|
6863
|
+
children: [
|
|
6864
|
+
/* @__PURE__ */ jsx59(
|
|
6865
|
+
Box20,
|
|
6866
|
+
{
|
|
6867
|
+
sx: {
|
|
6868
|
+
width: 10,
|
|
6869
|
+
height: 10,
|
|
6870
|
+
borderRadius: "50%",
|
|
6871
|
+
backgroundColor: accent
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
),
|
|
6875
|
+
/* @__PURE__ */ jsx59(Typography18, { variant: "caption", sx: { color: accent, fontWeight: 500 }, children: WORKFLOW_NODE_LABELS[nodeType] })
|
|
6876
|
+
]
|
|
6877
|
+
}
|
|
6878
|
+
)
|
|
6879
|
+
] }),
|
|
6880
|
+
/* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6881
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
6882
|
+
/* @__PURE__ */ jsx59(InfoBlock, { label: "Input", value: inputValue }),
|
|
6883
|
+
/* @__PURE__ */ jsx59(InfoBlock, { label: "Output", value: outputValue })
|
|
6884
|
+
] }),
|
|
6885
|
+
/* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6886
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
6887
|
+
/* @__PURE__ */ jsx59(Typography18, { variant: "body2", sx: { color: MUTED_TEXT_COLOR }, children: "Cubby ID" }),
|
|
6888
|
+
/* @__PURE__ */ jsx59(
|
|
6889
|
+
Button,
|
|
6890
|
+
{
|
|
6891
|
+
variant: "secondary",
|
|
6892
|
+
size: "small",
|
|
6893
|
+
startIcon: /* @__PURE__ */ jsx59(ContentCopyOutlinedIcon, { fontSize: "small" }),
|
|
6894
|
+
onClick: onCopyCubbyId,
|
|
6895
|
+
sx: { alignSelf: "flex-start" },
|
|
6896
|
+
children: cubbyId
|
|
6897
|
+
}
|
|
6898
|
+
)
|
|
6899
|
+
] }),
|
|
6900
|
+
/* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } }),
|
|
6901
|
+
/* @__PURE__ */ jsxs27(Box20, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
6902
|
+
/* @__PURE__ */ jsx59(InfoBlock, { label: "Timestamp", value: timestamp }),
|
|
6903
|
+
/* @__PURE__ */ jsx59(InfoBlock, { label: "Duration", value: duration })
|
|
6904
|
+
] }),
|
|
6905
|
+
/* @__PURE__ */ jsx59(Divider8, { sx: { borderColor: DIVIDER_COLOR } })
|
|
6906
|
+
] }),
|
|
6907
|
+
/* @__PURE__ */ jsx59(Button, { variant: "primary", fullWidth: true, onClick: onAction, children: actionLabel })
|
|
6908
|
+
]
|
|
6909
|
+
}
|
|
6910
|
+
);
|
|
6911
|
+
};
|
|
6912
|
+
|
|
6913
|
+
// src/components/layout/WorkflowTimeBar/WorkflowTimeBar.tsx
|
|
6914
|
+
import {
|
|
6915
|
+
Box as Box21,
|
|
6916
|
+
Divider as Divider9,
|
|
6917
|
+
IconButton as IconButton13,
|
|
6918
|
+
LinearProgress as LinearProgress3,
|
|
6919
|
+
Typography as Typography19
|
|
6920
|
+
} from "@mui/material";
|
|
6921
|
+
import StopIcon from "@mui/icons-material/Stop";
|
|
6922
|
+
import ChevronLeftIcon2 from "@mui/icons-material/ChevronLeft";
|
|
6923
|
+
import ChevronRightIcon3 from "@mui/icons-material/ChevronRight";
|
|
6924
|
+
import ReplayIcon from "@mui/icons-material/Replay";
|
|
6925
|
+
import { jsx as jsx60, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6926
|
+
var SpeedButton = ({ value, selected, onClick }) => /* @__PURE__ */ jsx60(
|
|
6927
|
+
Button,
|
|
6928
|
+
{
|
|
6929
|
+
variant: selected ? "primary" : "secondary",
|
|
6930
|
+
size: "small",
|
|
6931
|
+
onClick,
|
|
6932
|
+
sx: {
|
|
6933
|
+
minWidth: 48,
|
|
6934
|
+
px: 1.5,
|
|
6935
|
+
py: 0.25,
|
|
6936
|
+
borderRadius: 1,
|
|
6937
|
+
fontSize: 14,
|
|
6938
|
+
lineHeight: 1.4
|
|
6939
|
+
},
|
|
6940
|
+
children: `${value}x`
|
|
6941
|
+
}
|
|
6942
|
+
);
|
|
6943
|
+
var WorkflowTimeBar = ({
|
|
6944
|
+
elapsedTime = "01m : 12s",
|
|
6945
|
+
progress = 26,
|
|
6946
|
+
currentStep = 1,
|
|
6947
|
+
totalSteps = 16,
|
|
6948
|
+
speedOptions = [0.5, 1, 2, 4],
|
|
6949
|
+
selectedSpeed = 0.5,
|
|
6950
|
+
onStop,
|
|
6951
|
+
onPreviousStep,
|
|
6952
|
+
onNextStep,
|
|
6953
|
+
onSpeedChange,
|
|
6954
|
+
onReset,
|
|
6955
|
+
sx,
|
|
6956
|
+
...boxProps
|
|
6957
|
+
}) => {
|
|
6958
|
+
const boundedProgress = Math.max(0, Math.min(100, progress));
|
|
6959
|
+
const atFirstStep = currentStep <= 1;
|
|
6960
|
+
const atLastStep = currentStep >= totalSteps;
|
|
6961
|
+
return /* @__PURE__ */ jsxs28(
|
|
6962
|
+
Box21,
|
|
6963
|
+
{
|
|
6964
|
+
sx: {
|
|
6965
|
+
width: "100%",
|
|
6966
|
+
backgroundColor: "#fff",
|
|
6967
|
+
px: 2,
|
|
6968
|
+
pb: 2,
|
|
6969
|
+
display: "flex",
|
|
6970
|
+
flexDirection: "column",
|
|
6971
|
+
gap: 2,
|
|
6972
|
+
...sx
|
|
6973
|
+
},
|
|
6974
|
+
...boxProps,
|
|
6975
|
+
children: [
|
|
6976
|
+
/* @__PURE__ */ jsx60(Divider9, { sx: { borderColor: deploymentSurfaceTokens.strokeOutside } }),
|
|
6977
|
+
/* @__PURE__ */ jsxs28(Box21, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
6978
|
+
/* @__PURE__ */ jsx60(
|
|
6979
|
+
IconButton13,
|
|
6980
|
+
{
|
|
6981
|
+
onClick: onStop,
|
|
6982
|
+
"aria-label": "Stop playback",
|
|
6983
|
+
sx: {
|
|
6984
|
+
width: 40,
|
|
6985
|
+
height: 40,
|
|
6986
|
+
border: `1px solid ${deploymentSurfaceTokens.strokeOutside}`,
|
|
6987
|
+
borderRadius: 1,
|
|
6988
|
+
color: deploymentSurfaceTokens.textPrimary,
|
|
6989
|
+
backgroundColor: deploymentSurfaceTokens.surfaceHigh
|
|
6990
|
+
},
|
|
6991
|
+
children: /* @__PURE__ */ jsx60(StopIcon, { sx: { fontSize: 16 } })
|
|
6992
|
+
}
|
|
6993
|
+
),
|
|
6994
|
+
/* @__PURE__ */ jsxs28(Box21, { sx: { flex: 1, minWidth: 220, px: 1 }, children: [
|
|
6995
|
+
/* @__PURE__ */ jsx60(
|
|
6996
|
+
Typography19,
|
|
6997
|
+
{
|
|
6998
|
+
variant: "body2",
|
|
6999
|
+
sx: { color: deploymentSurfaceTokens.textPrimary, mb: 0.5 },
|
|
7000
|
+
children: elapsedTime
|
|
7001
|
+
}
|
|
7002
|
+
),
|
|
7003
|
+
/* @__PURE__ */ jsx60(
|
|
7004
|
+
LinearProgress3,
|
|
7005
|
+
{
|
|
7006
|
+
variant: "determinate",
|
|
7007
|
+
value: boundedProgress,
|
|
7008
|
+
sx: {
|
|
7009
|
+
height: 3,
|
|
7010
|
+
borderRadius: 999,
|
|
7011
|
+
backgroundColor: "#CEC6D8",
|
|
7012
|
+
"& .MuiLinearProgress-bar": {
|
|
7013
|
+
backgroundColor: "#5865F2"
|
|
7014
|
+
}
|
|
7015
|
+
}
|
|
7016
|
+
}
|
|
7017
|
+
)
|
|
7018
|
+
] }),
|
|
7019
|
+
/* @__PURE__ */ jsxs28(Box21, { sx: { display: "flex", alignItems: "center", gap: 3 }, children: [
|
|
7020
|
+
/* @__PURE__ */ jsxs28(Box21, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
7021
|
+
/* @__PURE__ */ jsx60(Typography19, { variant: "subtitle1", sx: { fontWeight: 500 }, children: "Steps" }),
|
|
7022
|
+
/* @__PURE__ */ jsx60(
|
|
7023
|
+
IconButton13,
|
|
7024
|
+
{
|
|
7025
|
+
size: "small",
|
|
7026
|
+
"aria-label": "Previous step",
|
|
7027
|
+
onClick: onPreviousStep,
|
|
7028
|
+
disabled: atFirstStep,
|
|
7029
|
+
sx: { backgroundColor: "#F5F1F7" },
|
|
7030
|
+
children: /* @__PURE__ */ jsx60(ChevronLeftIcon2, { fontSize: "small" })
|
|
7031
|
+
}
|
|
7032
|
+
),
|
|
7033
|
+
/* @__PURE__ */ jsx60(Typography19, { variant: "subtitle1", sx: { minWidth: 52, textAlign: "center" }, children: `${currentStep} / ${totalSteps}` }),
|
|
7034
|
+
/* @__PURE__ */ jsx60(
|
|
7035
|
+
IconButton13,
|
|
7036
|
+
{
|
|
7037
|
+
size: "small",
|
|
7038
|
+
"aria-label": "Next step",
|
|
7039
|
+
onClick: onNextStep,
|
|
7040
|
+
disabled: atLastStep,
|
|
7041
|
+
sx: { backgroundColor: "#E7E0EC" },
|
|
7042
|
+
children: /* @__PURE__ */ jsx60(ChevronRightIcon3, { fontSize: "small" })
|
|
7043
|
+
}
|
|
7044
|
+
)
|
|
7045
|
+
] }),
|
|
7046
|
+
/* @__PURE__ */ jsxs28(Box21, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
7047
|
+
/* @__PURE__ */ jsx60(Typography19, { variant: "subtitle1", sx: { fontWeight: 500 }, children: "Speed" }),
|
|
7048
|
+
speedOptions.map((option) => /* @__PURE__ */ jsx60(
|
|
7049
|
+
SpeedButton,
|
|
7050
|
+
{
|
|
7051
|
+
value: option,
|
|
7052
|
+
selected: option === selectedSpeed,
|
|
7053
|
+
onClick: () => onSpeedChange?.(option)
|
|
7054
|
+
},
|
|
7055
|
+
option
|
|
7056
|
+
)),
|
|
7057
|
+
/* @__PURE__ */ jsx60(IconButton13, { "aria-label": "Reset playback", onClick: onReset, size: "small", children: /* @__PURE__ */ jsx60(ReplayIcon, { fontSize: "small" }) })
|
|
7058
|
+
] })
|
|
7059
|
+
] })
|
|
7060
|
+
] })
|
|
7061
|
+
]
|
|
7062
|
+
}
|
|
7063
|
+
);
|
|
6199
7064
|
};
|
|
6200
7065
|
|
|
6201
7066
|
// src/components/layout/Collapse.tsx
|
|
6202
7067
|
import {
|
|
6203
7068
|
Collapse as MuiCollapse
|
|
6204
7069
|
} from "@mui/material";
|
|
6205
|
-
import { jsx as
|
|
7070
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
6206
7071
|
var Collapse = (props) => {
|
|
6207
|
-
return /* @__PURE__ */
|
|
7072
|
+
return /* @__PURE__ */ jsx61(MuiCollapse, { ...props });
|
|
6208
7073
|
};
|
|
6209
7074
|
|
|
6210
7075
|
// src/components/feedback/Alert.tsx
|
|
@@ -6213,7 +7078,7 @@ import MuiAlert from "@mui/material/Alert";
|
|
|
6213
7078
|
import { AlertTitle as MuiAlertTitle } from "@mui/material";
|
|
6214
7079
|
import MuiSnackbar from "@mui/material/Snackbar";
|
|
6215
7080
|
import { styled as styled41 } from "@mui/material/styles";
|
|
6216
|
-
import { jsx as
|
|
7081
|
+
import { jsx as jsx62, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6217
7082
|
var StyledAlert = styled41(MuiAlert)({
|
|
6218
7083
|
borderRadius: 8,
|
|
6219
7084
|
"&.MuiAlert-filled": {
|
|
@@ -6226,8 +7091,8 @@ var Alert2 = ({
|
|
|
6226
7091
|
children,
|
|
6227
7092
|
...props
|
|
6228
7093
|
}) => {
|
|
6229
|
-
return /* @__PURE__ */
|
|
6230
|
-
title && /* @__PURE__ */
|
|
7094
|
+
return /* @__PURE__ */ jsxs29(StyledAlert, { severity, ...props, children: [
|
|
7095
|
+
title && /* @__PURE__ */ jsx62(MuiAlertTitle, { children: title }),
|
|
6231
7096
|
children
|
|
6232
7097
|
] });
|
|
6233
7098
|
};
|
|
@@ -6249,7 +7114,7 @@ var Snackbar2 = ({
|
|
|
6249
7114
|
}
|
|
6250
7115
|
onClose?.();
|
|
6251
7116
|
};
|
|
6252
|
-
const content = children || (message ? /* @__PURE__ */
|
|
7117
|
+
const content = children || (message ? /* @__PURE__ */ jsx62(
|
|
6253
7118
|
Alert2,
|
|
6254
7119
|
{
|
|
6255
7120
|
onClose: onClose ? handleClose : void 0,
|
|
@@ -6275,7 +7140,7 @@ var Snackbar2 = ({
|
|
|
6275
7140
|
}
|
|
6276
7141
|
);
|
|
6277
7142
|
NoTransition.displayName = "NoTransition";
|
|
6278
|
-
return /* @__PURE__ */
|
|
7143
|
+
return /* @__PURE__ */ jsx62(
|
|
6279
7144
|
StyledSnackbar,
|
|
6280
7145
|
{
|
|
6281
7146
|
anchorOrigin,
|
|
@@ -6295,16 +7160,16 @@ var Snackbar2 = ({
|
|
|
6295
7160
|
};
|
|
6296
7161
|
|
|
6297
7162
|
// src/components/feedback/EmptyState.tsx
|
|
6298
|
-
import { Box as
|
|
6299
|
-
import { jsx as
|
|
7163
|
+
import { Box as Box22, Typography as Typography20 } from "@mui/material";
|
|
7164
|
+
import { jsx as jsx63, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6300
7165
|
var EmptyState = ({
|
|
6301
7166
|
title = "No items found",
|
|
6302
7167
|
description,
|
|
6303
7168
|
icon,
|
|
6304
7169
|
action
|
|
6305
7170
|
}) => {
|
|
6306
|
-
return /* @__PURE__ */
|
|
6307
|
-
|
|
7171
|
+
return /* @__PURE__ */ jsxs30(
|
|
7172
|
+
Box22,
|
|
6308
7173
|
{
|
|
6309
7174
|
sx: {
|
|
6310
7175
|
display: "flex",
|
|
@@ -6316,8 +7181,8 @@ var EmptyState = ({
|
|
|
6316
7181
|
minHeight: 200
|
|
6317
7182
|
},
|
|
6318
7183
|
children: [
|
|
6319
|
-
icon && /* @__PURE__ */
|
|
6320
|
-
|
|
7184
|
+
icon && /* @__PURE__ */ jsx63(
|
|
7185
|
+
Box22,
|
|
6321
7186
|
{
|
|
6322
7187
|
sx: {
|
|
6323
7188
|
color: colors.text.secondary,
|
|
@@ -6327,24 +7192,24 @@ var EmptyState = ({
|
|
|
6327
7192
|
children: icon
|
|
6328
7193
|
}
|
|
6329
7194
|
),
|
|
6330
|
-
/* @__PURE__ */
|
|
6331
|
-
description && /* @__PURE__ */
|
|
6332
|
-
action && /* @__PURE__ */
|
|
7195
|
+
/* @__PURE__ */ jsx63(Typography20, { variant: "h6", sx: { marginBottom: 1, color: colors.text.primary }, children: title }),
|
|
7196
|
+
description && /* @__PURE__ */ jsx63(Typography20, { variant: "body2", sx: { color: colors.text.secondary, marginBottom: 3 }, children: description }),
|
|
7197
|
+
action && /* @__PURE__ */ jsx63(Box22, { children: action })
|
|
6333
7198
|
]
|
|
6334
7199
|
}
|
|
6335
7200
|
);
|
|
6336
7201
|
};
|
|
6337
7202
|
|
|
6338
7203
|
// src/components/feedback/Loading.tsx
|
|
6339
|
-
import { Box as
|
|
6340
|
-
import { jsx as
|
|
7204
|
+
import { Box as Box23, CircularProgress as CircularProgress4, Typography as Typography21 } from "@mui/material";
|
|
7205
|
+
import { jsx as jsx64, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6341
7206
|
var Loading = ({
|
|
6342
7207
|
message = "Loading...",
|
|
6343
7208
|
size: size3 = 40,
|
|
6344
7209
|
fullScreen = false
|
|
6345
7210
|
}) => {
|
|
6346
|
-
const content = /* @__PURE__ */
|
|
6347
|
-
|
|
7211
|
+
const content = /* @__PURE__ */ jsxs31(
|
|
7212
|
+
Box23,
|
|
6348
7213
|
{
|
|
6349
7214
|
sx: {
|
|
6350
7215
|
display: "flex",
|
|
@@ -6366,8 +7231,8 @@ var Loading = ({
|
|
|
6366
7231
|
}
|
|
6367
7232
|
},
|
|
6368
7233
|
children: [
|
|
6369
|
-
/* @__PURE__ */
|
|
6370
|
-
message && /* @__PURE__ */
|
|
7234
|
+
/* @__PURE__ */ jsx64(CircularProgress4, { size: size3, thickness: 4 }),
|
|
7235
|
+
message && /* @__PURE__ */ jsx64(Typography21, { variant: "body2", color: "text.secondary", children: message })
|
|
6371
7236
|
]
|
|
6372
7237
|
}
|
|
6373
7238
|
);
|
|
@@ -6375,15 +7240,15 @@ var Loading = ({
|
|
|
6375
7240
|
};
|
|
6376
7241
|
|
|
6377
7242
|
// src/components/feedback/AppLoading.tsx
|
|
6378
|
-
import { Box as
|
|
6379
|
-
import { jsx as
|
|
7243
|
+
import { Box as Box24, CircularProgress as CircularProgress5, Typography as Typography22 } from "@mui/material";
|
|
7244
|
+
import { jsx as jsx65, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6380
7245
|
var AppLoading = ({
|
|
6381
7246
|
message = "Loading...",
|
|
6382
7247
|
logo = "/icons/logo.png",
|
|
6383
7248
|
sx = {}
|
|
6384
7249
|
}) => {
|
|
6385
|
-
return /* @__PURE__ */
|
|
6386
|
-
|
|
7250
|
+
return /* @__PURE__ */ jsxs32(
|
|
7251
|
+
Box24,
|
|
6387
7252
|
{
|
|
6388
7253
|
sx: {
|
|
6389
7254
|
display: "flex",
|
|
@@ -6401,8 +7266,8 @@ var AppLoading = ({
|
|
|
6401
7266
|
...sx
|
|
6402
7267
|
},
|
|
6403
7268
|
children: [
|
|
6404
|
-
logo && /* @__PURE__ */
|
|
6405
|
-
|
|
7269
|
+
logo && /* @__PURE__ */ jsx65(
|
|
7270
|
+
Box24,
|
|
6406
7271
|
{
|
|
6407
7272
|
component: "img",
|
|
6408
7273
|
src: logo,
|
|
@@ -6414,8 +7279,8 @@ var AppLoading = ({
|
|
|
6414
7279
|
}
|
|
6415
7280
|
}
|
|
6416
7281
|
),
|
|
6417
|
-
/* @__PURE__ */
|
|
6418
|
-
/* @__PURE__ */
|
|
7282
|
+
/* @__PURE__ */ jsx65(CircularProgress5, { size: 40, thickness: 4, sx: { mb: 2 } }),
|
|
7283
|
+
/* @__PURE__ */ jsx65(Typography22, { variant: "body1", color: "text.secondary", children: message })
|
|
6419
7284
|
]
|
|
6420
7285
|
}
|
|
6421
7286
|
);
|
|
@@ -6425,22 +7290,22 @@ var AppLoading = ({
|
|
|
6425
7290
|
import {
|
|
6426
7291
|
CircularProgress as MuiCircularProgress
|
|
6427
7292
|
} from "@mui/material";
|
|
6428
|
-
import { jsx as
|
|
7293
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
6429
7294
|
var CircularProgress6 = ({
|
|
6430
7295
|
size: size3 = 40,
|
|
6431
7296
|
thickness = 4,
|
|
6432
7297
|
...props
|
|
6433
7298
|
}) => {
|
|
6434
|
-
return /* @__PURE__ */
|
|
7299
|
+
return /* @__PURE__ */ jsx66(MuiCircularProgress, { size: size3, thickness, ...props });
|
|
6435
7300
|
};
|
|
6436
7301
|
|
|
6437
7302
|
// src/components/icons/ActivityAppIcon.tsx
|
|
6438
7303
|
import { memo as memo2 } from "react";
|
|
6439
7304
|
import { SvgIcon as SvgIcon2 } from "@mui/material";
|
|
6440
|
-
import { jsx as
|
|
6441
|
-
var ActivityAppIcon = memo2((props) => /* @__PURE__ */
|
|
6442
|
-
/* @__PURE__ */
|
|
6443
|
-
/* @__PURE__ */
|
|
7305
|
+
import { jsx as jsx67, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7306
|
+
var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs33(SvgIcon2, { ...props, viewBox: "0 0 36 36", children: [
|
|
7307
|
+
/* @__PURE__ */ jsx67("rect", { fill: "none", stroke: "currentColor", width: 34, height: 34, x: 1, y: 1, strokeWidth: 1.5, rx: 6.8 }),
|
|
7308
|
+
/* @__PURE__ */ jsx67(
|
|
6444
7309
|
"rect",
|
|
6445
7310
|
{
|
|
6446
7311
|
fill: "none",
|
|
@@ -6453,7 +7318,7 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs28(SvgIcon2, { ...pro
|
|
|
6453
7318
|
rx: 1.7
|
|
6454
7319
|
}
|
|
6455
7320
|
),
|
|
6456
|
-
/* @__PURE__ */
|
|
7321
|
+
/* @__PURE__ */ jsx67(
|
|
6457
7322
|
"rect",
|
|
6458
7323
|
{
|
|
6459
7324
|
fill: "none",
|
|
@@ -6466,7 +7331,7 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs28(SvgIcon2, { ...pro
|
|
|
6466
7331
|
rx: 1.7
|
|
6467
7332
|
}
|
|
6468
7333
|
),
|
|
6469
|
-
/* @__PURE__ */
|
|
7334
|
+
/* @__PURE__ */ jsx67(
|
|
6470
7335
|
"rect",
|
|
6471
7336
|
{
|
|
6472
7337
|
fill: "none",
|
|
@@ -6483,9 +7348,9 @@ var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs28(SvgIcon2, { ...pro
|
|
|
6483
7348
|
|
|
6484
7349
|
// src/components/icons/ArrowLeft.tsx
|
|
6485
7350
|
import { SvgIcon as SvgIcon3 } from "@mui/material";
|
|
6486
|
-
import { jsx as
|
|
7351
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
6487
7352
|
var LeftArrowIcon = (props) => {
|
|
6488
|
-
return /* @__PURE__ */
|
|
7353
|
+
return /* @__PURE__ */ jsx68(SvgIcon3, { ...props, width: "24", height: "24", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx68("g", { id: " Arrow Left", children: /* @__PURE__ */ jsx68(
|
|
6489
7354
|
"path",
|
|
6490
7355
|
{
|
|
6491
7356
|
id: "Vector (Stroke)",
|
|
@@ -6499,9 +7364,9 @@ var LeftArrowIcon = (props) => {
|
|
|
6499
7364
|
|
|
6500
7365
|
// src/components/icons/ArrowRight.tsx
|
|
6501
7366
|
import { SvgIcon as SvgIcon4 } from "@mui/material";
|
|
6502
|
-
import { jsx as
|
|
7367
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
6503
7368
|
var RightArrowIcon = (props) => {
|
|
6504
|
-
return /* @__PURE__ */
|
|
7369
|
+
return /* @__PURE__ */ jsx69(SvgIcon4, { ...props, width: "25", height: "24", viewBox: "0 0 25 24", children: /* @__PURE__ */ jsx69(
|
|
6505
7370
|
"path",
|
|
6506
7371
|
{
|
|
6507
7372
|
fillRule: "evenodd",
|
|
@@ -6514,10 +7379,10 @@ var RightArrowIcon = (props) => {
|
|
|
6514
7379
|
|
|
6515
7380
|
// src/components/icons/AvatarIcon.tsx
|
|
6516
7381
|
import { SvgIcon as SvgIcon5 } from "@mui/material";
|
|
6517
|
-
import { jsx as
|
|
7382
|
+
import { jsx as jsx70, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6518
7383
|
var AvatarIcon = (props) => {
|
|
6519
|
-
return /* @__PURE__ */
|
|
6520
|
-
/* @__PURE__ */
|
|
7384
|
+
return /* @__PURE__ */ jsxs34(SvgIcon5, { ...props, viewBox: "0 0 16 16", children: [
|
|
7385
|
+
/* @__PURE__ */ jsx70(
|
|
6521
7386
|
"path",
|
|
6522
7387
|
{
|
|
6523
7388
|
fillRule: "evenodd",
|
|
@@ -6526,7 +7391,7 @@ var AvatarIcon = (props) => {
|
|
|
6526
7391
|
fill: "#1D1B20"
|
|
6527
7392
|
}
|
|
6528
7393
|
),
|
|
6529
|
-
/* @__PURE__ */
|
|
7394
|
+
/* @__PURE__ */ jsx70(
|
|
6530
7395
|
"path",
|
|
6531
7396
|
{
|
|
6532
7397
|
fillRule: "evenodd",
|
|
@@ -6541,9 +7406,9 @@ var AvatarIcon = (props) => {
|
|
|
6541
7406
|
// src/components/icons/BarTrackingIcon.tsx
|
|
6542
7407
|
import { memo as memo3 } from "react";
|
|
6543
7408
|
import { SvgIcon as SvgIcon6 } from "@mui/material";
|
|
6544
|
-
import { jsx as
|
|
6545
|
-
var BarTrackingIcon = memo3((props) => /* @__PURE__ */
|
|
6546
|
-
/* @__PURE__ */
|
|
7409
|
+
import { jsx as jsx71, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7410
|
+
var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs35(SvgIcon6, { ...props, viewBox: "0 0 96 97", children: [
|
|
7411
|
+
/* @__PURE__ */ jsx71(
|
|
6547
7412
|
"rect",
|
|
6548
7413
|
{
|
|
6549
7414
|
x: "7.19922",
|
|
@@ -6556,7 +7421,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs30(SvgIcon6, { ...pro
|
|
|
6556
7421
|
fill: "none"
|
|
6557
7422
|
}
|
|
6558
7423
|
),
|
|
6559
|
-
/* @__PURE__ */
|
|
7424
|
+
/* @__PURE__ */ jsx71(
|
|
6560
7425
|
"rect",
|
|
6561
7426
|
{
|
|
6562
7427
|
x: "21.0371",
|
|
@@ -6569,7 +7434,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs30(SvgIcon6, { ...pro
|
|
|
6569
7434
|
strokeWidth: "2"
|
|
6570
7435
|
}
|
|
6571
7436
|
),
|
|
6572
|
-
/* @__PURE__ */
|
|
7437
|
+
/* @__PURE__ */ jsx71(
|
|
6573
7438
|
"rect",
|
|
6574
7439
|
{
|
|
6575
7440
|
x: "40.4746",
|
|
@@ -6582,7 +7447,7 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs30(SvgIcon6, { ...pro
|
|
|
6582
7447
|
strokeWidth: "2"
|
|
6583
7448
|
}
|
|
6584
7449
|
),
|
|
6585
|
-
/* @__PURE__ */
|
|
7450
|
+
/* @__PURE__ */ jsx71(
|
|
6586
7451
|
"rect",
|
|
6587
7452
|
{
|
|
6588
7453
|
x: "59.8828",
|
|
@@ -6600,8 +7465,8 @@ var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs30(SvgIcon6, { ...pro
|
|
|
6600
7465
|
// src/components/icons/ClockIcon.tsx
|
|
6601
7466
|
import { memo as memo4 } from "react";
|
|
6602
7467
|
import { SvgIcon as SvgIcon7 } from "@mui/material";
|
|
6603
|
-
import { jsx as
|
|
6604
|
-
var ClockIcon = memo4((props) => /* @__PURE__ */
|
|
7468
|
+
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
7469
|
+
var ClockIcon = memo4((props) => /* @__PURE__ */ jsx72(SvgIcon7, { ...props, viewBox: "0 0 22 22", children: /* @__PURE__ */ jsx72(
|
|
6605
7470
|
"path",
|
|
6606
7471
|
{
|
|
6607
7472
|
fill: "currentColor",
|
|
@@ -6614,9 +7479,9 @@ var ClockIcon = memo4((props) => /* @__PURE__ */ jsx67(SvgIcon7, { ...props, vie
|
|
|
6614
7479
|
// src/components/icons/CloudFlashIcon.tsx
|
|
6615
7480
|
import { memo as memo5 } from "react";
|
|
6616
7481
|
import { SvgIcon as SvgIcon8 } from "@mui/material";
|
|
6617
|
-
import { jsx as
|
|
6618
|
-
var CloudFlashIcon = memo5((props) => /* @__PURE__ */
|
|
6619
|
-
/* @__PURE__ */
|
|
7482
|
+
import { jsx as jsx73, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7483
|
+
var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs36(SvgIcon8, { ...props, fill: "none", viewBox: "0 0 96 97", children: [
|
|
7484
|
+
/* @__PURE__ */ jsx73(
|
|
6620
7485
|
"path",
|
|
6621
7486
|
{
|
|
6622
7487
|
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",
|
|
@@ -6625,7 +7490,7 @@ var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs31(SvgIcon8, { ...prop
|
|
|
6625
7490
|
strokeWidth: "2"
|
|
6626
7491
|
}
|
|
6627
7492
|
),
|
|
6628
|
-
/* @__PURE__ */
|
|
7493
|
+
/* @__PURE__ */ jsx73(
|
|
6629
7494
|
"path",
|
|
6630
7495
|
{
|
|
6631
7496
|
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",
|
|
@@ -6639,9 +7504,9 @@ var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs31(SvgIcon8, { ...prop
|
|
|
6639
7504
|
// src/components/icons/DecentralizedServerIcon.tsx
|
|
6640
7505
|
import { memo as memo6 } from "react";
|
|
6641
7506
|
import { SvgIcon as SvgIcon9 } from "@mui/material";
|
|
6642
|
-
import { jsx as
|
|
6643
|
-
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */
|
|
6644
|
-
/* @__PURE__ */
|
|
7507
|
+
import { jsx as jsx74, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7508
|
+
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs37(SvgIcon9, { ...props, viewBox: "0 0 96 97", children: [
|
|
7509
|
+
/* @__PURE__ */ jsx74(
|
|
6645
7510
|
"path",
|
|
6646
7511
|
{
|
|
6647
7512
|
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",
|
|
@@ -6652,7 +7517,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6652
7517
|
strokeLinejoin: "round"
|
|
6653
7518
|
}
|
|
6654
7519
|
),
|
|
6655
|
-
/* @__PURE__ */
|
|
7520
|
+
/* @__PURE__ */ jsx74(
|
|
6656
7521
|
"path",
|
|
6657
7522
|
{
|
|
6658
7523
|
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",
|
|
@@ -6663,7 +7528,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6663
7528
|
strokeLinejoin: "round"
|
|
6664
7529
|
}
|
|
6665
7530
|
),
|
|
6666
|
-
/* @__PURE__ */
|
|
7531
|
+
/* @__PURE__ */ jsx74(
|
|
6667
7532
|
"path",
|
|
6668
7533
|
{
|
|
6669
7534
|
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",
|
|
@@ -6674,7 +7539,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6674
7539
|
strokeLinejoin: "round"
|
|
6675
7540
|
}
|
|
6676
7541
|
),
|
|
6677
|
-
/* @__PURE__ */
|
|
7542
|
+
/* @__PURE__ */ jsx74(
|
|
6678
7543
|
"path",
|
|
6679
7544
|
{
|
|
6680
7545
|
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",
|
|
@@ -6685,7 +7550,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6685
7550
|
strokeLinejoin: "round"
|
|
6686
7551
|
}
|
|
6687
7552
|
),
|
|
6688
|
-
/* @__PURE__ */
|
|
7553
|
+
/* @__PURE__ */ jsx74(
|
|
6689
7554
|
"path",
|
|
6690
7555
|
{
|
|
6691
7556
|
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",
|
|
@@ -6696,7 +7561,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6696
7561
|
strokeLinejoin: "round"
|
|
6697
7562
|
}
|
|
6698
7563
|
),
|
|
6699
|
-
/* @__PURE__ */
|
|
7564
|
+
/* @__PURE__ */ jsx74(
|
|
6700
7565
|
"path",
|
|
6701
7566
|
{
|
|
6702
7567
|
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",
|
|
@@ -6707,7 +7572,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6707
7572
|
strokeLinejoin: "round"
|
|
6708
7573
|
}
|
|
6709
7574
|
),
|
|
6710
|
-
/* @__PURE__ */
|
|
7575
|
+
/* @__PURE__ */ jsx74(
|
|
6711
7576
|
"path",
|
|
6712
7577
|
{
|
|
6713
7578
|
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",
|
|
@@ -6718,7 +7583,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6718
7583
|
strokeLinejoin: "round"
|
|
6719
7584
|
}
|
|
6720
7585
|
),
|
|
6721
|
-
/* @__PURE__ */
|
|
7586
|
+
/* @__PURE__ */ jsx74(
|
|
6722
7587
|
"path",
|
|
6723
7588
|
{
|
|
6724
7589
|
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",
|
|
@@ -6729,7 +7594,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6729
7594
|
strokeLinejoin: "round"
|
|
6730
7595
|
}
|
|
6731
7596
|
),
|
|
6732
|
-
/* @__PURE__ */
|
|
7597
|
+
/* @__PURE__ */ jsx74(
|
|
6733
7598
|
"path",
|
|
6734
7599
|
{
|
|
6735
7600
|
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",
|
|
@@ -6740,7 +7605,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6740
7605
|
strokeLinejoin: "round"
|
|
6741
7606
|
}
|
|
6742
7607
|
),
|
|
6743
|
-
/* @__PURE__ */
|
|
7608
|
+
/* @__PURE__ */ jsx74(
|
|
6744
7609
|
"rect",
|
|
6745
7610
|
{
|
|
6746
7611
|
x: "22.623",
|
|
@@ -6753,7 +7618,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6753
7618
|
strokeWidth: "2"
|
|
6754
7619
|
}
|
|
6755
7620
|
),
|
|
6756
|
-
/* @__PURE__ */
|
|
7621
|
+
/* @__PURE__ */ jsx74(
|
|
6757
7622
|
"rect",
|
|
6758
7623
|
{
|
|
6759
7624
|
x: "22.623",
|
|
@@ -6766,7 +7631,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6766
7631
|
strokeWidth: "2"
|
|
6767
7632
|
}
|
|
6768
7633
|
),
|
|
6769
|
-
/* @__PURE__ */
|
|
7634
|
+
/* @__PURE__ */ jsx74(
|
|
6770
7635
|
"rect",
|
|
6771
7636
|
{
|
|
6772
7637
|
x: "22.623",
|
|
@@ -6779,7 +7644,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6779
7644
|
strokeWidth: "2"
|
|
6780
7645
|
}
|
|
6781
7646
|
),
|
|
6782
|
-
/* @__PURE__ */
|
|
7647
|
+
/* @__PURE__ */ jsx74(
|
|
6783
7648
|
"path",
|
|
6784
7649
|
{
|
|
6785
7650
|
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",
|
|
@@ -6789,7 +7654,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6789
7654
|
strokeMiterlimit: "10"
|
|
6790
7655
|
}
|
|
6791
7656
|
),
|
|
6792
|
-
/* @__PURE__ */
|
|
7657
|
+
/* @__PURE__ */ jsx74(
|
|
6793
7658
|
"path",
|
|
6794
7659
|
{
|
|
6795
7660
|
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",
|
|
@@ -6799,7 +7664,7 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6799
7664
|
strokeMiterlimit: "10"
|
|
6800
7665
|
}
|
|
6801
7666
|
),
|
|
6802
|
-
/* @__PURE__ */
|
|
7667
|
+
/* @__PURE__ */ jsx74(
|
|
6803
7668
|
"path",
|
|
6804
7669
|
{
|
|
6805
7670
|
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",
|
|
@@ -6814,8 +7679,8 @@ var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs32(SvgIcon9,
|
|
|
6814
7679
|
// src/components/icons/DiscordIcon.tsx
|
|
6815
7680
|
import { memo as memo7 } from "react";
|
|
6816
7681
|
import { SvgIcon as SvgIcon10 } from "@mui/material";
|
|
6817
|
-
import { jsx as
|
|
6818
|
-
var DiscordIcon = memo7((props) => /* @__PURE__ */
|
|
7682
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
7683
|
+
var DiscordIcon = memo7((props) => /* @__PURE__ */ jsx75(SvgIcon10, { ...props, viewBox: "0 0 15 12", children: /* @__PURE__ */ jsx75(
|
|
6819
7684
|
"path",
|
|
6820
7685
|
{
|
|
6821
7686
|
fill: "currentColor",
|
|
@@ -6826,16 +7691,16 @@ var DiscordIcon = memo7((props) => /* @__PURE__ */ jsx70(SvgIcon10, { ...props,
|
|
|
6826
7691
|
// src/components/icons/DownloadIcon.tsx
|
|
6827
7692
|
import { memo as memo8 } from "react";
|
|
6828
7693
|
import { SvgIcon as SvgIcon11 } from "@mui/material";
|
|
6829
|
-
import { jsx as
|
|
6830
|
-
var DownloadIcon = memo8((props) => /* @__PURE__ */
|
|
6831
|
-
/* @__PURE__ */
|
|
7694
|
+
import { jsx as jsx76, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7695
|
+
var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs38(SvgIcon11, { ...props, viewBox: "0 0 17 16", fill: "none", children: [
|
|
7696
|
+
/* @__PURE__ */ jsx76(
|
|
6832
7697
|
"path",
|
|
6833
7698
|
{
|
|
6834
7699
|
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",
|
|
6835
7700
|
fill: "currentColor"
|
|
6836
7701
|
}
|
|
6837
7702
|
),
|
|
6838
|
-
/* @__PURE__ */
|
|
7703
|
+
/* @__PURE__ */ jsx76(
|
|
6839
7704
|
"path",
|
|
6840
7705
|
{
|
|
6841
7706
|
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",
|
|
@@ -6847,11 +7712,11 @@ var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs33(SvgIcon11, { ...props
|
|
|
6847
7712
|
// src/components/icons/FilledFolderIcon.tsx
|
|
6848
7713
|
import { memo as memo9 } from "react";
|
|
6849
7714
|
import { SvgIcon as SvgIcon12 } from "@mui/material";
|
|
6850
|
-
import { jsx as
|
|
6851
|
-
var FilledFolderIcon = memo9((props) => /* @__PURE__ */
|
|
6852
|
-
/* @__PURE__ */
|
|
6853
|
-
/* @__PURE__ */
|
|
6854
|
-
/* @__PURE__ */
|
|
7715
|
+
import { jsx as jsx77, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7716
|
+
var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs39(SvgIcon12, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
7717
|
+
/* @__PURE__ */ jsx77("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#FCF8EC" }),
|
|
7718
|
+
/* @__PURE__ */ jsx77("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E1B43E" }),
|
|
7719
|
+
/* @__PURE__ */ jsx77(
|
|
6855
7720
|
"path",
|
|
6856
7721
|
{
|
|
6857
7722
|
fillRule: "evenodd",
|
|
@@ -6865,11 +7730,11 @@ var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs34(SvgIcon12, { sx:
|
|
|
6865
7730
|
// src/components/icons/FolderIcon.tsx
|
|
6866
7731
|
import { memo as memo10 } from "react";
|
|
6867
7732
|
import { SvgIcon as SvgIcon13 } from "@mui/material";
|
|
6868
|
-
import { jsx as
|
|
6869
|
-
var FolderIcon = memo10((props) => /* @__PURE__ */
|
|
6870
|
-
/* @__PURE__ */
|
|
6871
|
-
/* @__PURE__ */
|
|
6872
|
-
/* @__PURE__ */
|
|
7733
|
+
import { jsx as jsx78, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7734
|
+
var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs40(SvgIcon13, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
7735
|
+
/* @__PURE__ */ jsx78("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#F5F7FA" }),
|
|
7736
|
+
/* @__PURE__ */ jsx78("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E6E6E6" }),
|
|
7737
|
+
/* @__PURE__ */ jsx78(
|
|
6873
7738
|
"path",
|
|
6874
7739
|
{
|
|
6875
7740
|
fillRule: "evenodd",
|
|
@@ -6885,16 +7750,16 @@ var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs35(SvgIcon13, { sx: { fil
|
|
|
6885
7750
|
// src/components/icons/GithubLogoIcon.tsx
|
|
6886
7751
|
import { memo as memo11 } from "react";
|
|
6887
7752
|
import { SvgIcon as SvgIcon14 } from "@mui/material";
|
|
6888
|
-
import { jsx as
|
|
6889
|
-
var GithubLogoIcon = memo11((props) => /* @__PURE__ */
|
|
6890
|
-
/* @__PURE__ */
|
|
7753
|
+
import { jsx as jsx79, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7754
|
+
var GithubLogoIcon = memo11((props) => /* @__PURE__ */ jsxs41(SvgIcon14, { ...props, viewBox: "0 0 17 16", sx: { fill: "none" }, children: [
|
|
7755
|
+
/* @__PURE__ */ jsx79(
|
|
6891
7756
|
"path",
|
|
6892
7757
|
{
|
|
6893
7758
|
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",
|
|
6894
7759
|
fill: "white"
|
|
6895
7760
|
}
|
|
6896
7761
|
),
|
|
6897
|
-
/* @__PURE__ */
|
|
7762
|
+
/* @__PURE__ */ jsx79(
|
|
6898
7763
|
"path",
|
|
6899
7764
|
{
|
|
6900
7765
|
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",
|
|
@@ -6906,8 +7771,8 @@ var GithubLogoIcon = memo11((props) => /* @__PURE__ */ jsxs36(SvgIcon14, { ...pr
|
|
|
6906
7771
|
// src/components/icons/ShareIcon.tsx
|
|
6907
7772
|
import { memo as memo12 } from "react";
|
|
6908
7773
|
import { SvgIcon as SvgIcon15 } from "@mui/material";
|
|
6909
|
-
import { jsx as
|
|
6910
|
-
var ShareIcon = memo12((props) => /* @__PURE__ */
|
|
7774
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
7775
|
+
var ShareIcon = memo12((props) => /* @__PURE__ */ jsx80(SvgIcon15, { ...props, viewBox: "0 0 17 16", fill: "none", children: /* @__PURE__ */ jsx80(
|
|
6911
7776
|
"path",
|
|
6912
7777
|
{
|
|
6913
7778
|
fillRule: "evenodd",
|
|
@@ -6920,9 +7785,9 @@ var ShareIcon = memo12((props) => /* @__PURE__ */ jsx75(SvgIcon15, { ...props, v
|
|
|
6920
7785
|
// src/components/icons/StorageAppIcon.tsx
|
|
6921
7786
|
import { memo as memo13 } from "react";
|
|
6922
7787
|
import { SvgIcon as SvgIcon16 } from "@mui/material";
|
|
6923
|
-
import { jsx as
|
|
6924
|
-
var StorageAppIcon = memo13((props) => /* @__PURE__ */
|
|
6925
|
-
/* @__PURE__ */
|
|
7788
|
+
import { jsx as jsx81, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7789
|
+
var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs42(SvgIcon16, { ...props, viewBox: "0 0 38 29", fill: "none", children: [
|
|
7790
|
+
/* @__PURE__ */ jsx81(
|
|
6926
7791
|
"path",
|
|
6927
7792
|
{
|
|
6928
7793
|
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",
|
|
@@ -6931,7 +7796,7 @@ var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs37(SvgIcon16, { ...pr
|
|
|
6931
7796
|
fill: "none"
|
|
6932
7797
|
}
|
|
6933
7798
|
),
|
|
6934
|
-
/* @__PURE__ */
|
|
7799
|
+
/* @__PURE__ */ jsx81(
|
|
6935
7800
|
"path",
|
|
6936
7801
|
{
|
|
6937
7802
|
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",
|
|
@@ -6945,8 +7810,8 @@ var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs37(SvgIcon16, { ...pr
|
|
|
6945
7810
|
// src/components/icons/UploadFileIcon.tsx
|
|
6946
7811
|
import { memo as memo14 } from "react";
|
|
6947
7812
|
import { SvgIcon as SvgIcon17 } from "@mui/material";
|
|
6948
|
-
import { jsx as
|
|
6949
|
-
var UploadFileIcon = memo14((props) => /* @__PURE__ */
|
|
7813
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
7814
|
+
var UploadFileIcon = memo14((props) => /* @__PURE__ */ jsx82(SvgIcon17, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx82(
|
|
6950
7815
|
"path",
|
|
6951
7816
|
{
|
|
6952
7817
|
fillRule: "evenodd",
|
|
@@ -6961,8 +7826,8 @@ var UploadFileIcon = memo14((props) => /* @__PURE__ */ jsx77(SvgIcon17, { ...pro
|
|
|
6961
7826
|
// src/components/icons/UploadFolderIcon.tsx
|
|
6962
7827
|
import { memo as memo15 } from "react";
|
|
6963
7828
|
import { SvgIcon as SvgIcon18 } from "@mui/material";
|
|
6964
|
-
import { jsx as
|
|
6965
|
-
var UploadFolderIcon = memo15((props) => /* @__PURE__ */
|
|
7829
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
7830
|
+
var UploadFolderIcon = memo15((props) => /* @__PURE__ */ jsx83(SvgIcon18, { ...props, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx83(
|
|
6966
7831
|
"path",
|
|
6967
7832
|
{
|
|
6968
7833
|
fillRule: "evenodd",
|
|
@@ -6975,14 +7840,14 @@ var UploadFolderIcon = memo15((props) => /* @__PURE__ */ jsx78(SvgIcon18, { ...p
|
|
|
6975
7840
|
) }));
|
|
6976
7841
|
|
|
6977
7842
|
// src/components/utilities/Markdown/Markdown.tsx
|
|
6978
|
-
import { Box as
|
|
7843
|
+
import { Box as Box25, styled as styled42 } from "@mui/material";
|
|
6979
7844
|
import "highlight.js/styles/github.css";
|
|
6980
7845
|
import "github-markdown-css/github-markdown-light.css";
|
|
6981
7846
|
import MD from "react-markdown";
|
|
6982
7847
|
import highlight from "rehype-highlight";
|
|
6983
7848
|
import rehypeRaw from "rehype-raw";
|
|
6984
|
-
import { jsx as
|
|
6985
|
-
var Content = styled42(
|
|
7849
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
7850
|
+
var Content = styled42(Box25)(({ theme: theme2 }) => ({
|
|
6986
7851
|
backgroundColor: "transparent",
|
|
6987
7852
|
...theme2.typography.body1,
|
|
6988
7853
|
color: theme2.palette.text.primary,
|
|
@@ -6999,11 +7864,11 @@ var Content = styled42(Box21)(({ theme: theme2 }) => ({
|
|
|
6999
7864
|
backgroundColor: theme2.palette.background.paper
|
|
7000
7865
|
}
|
|
7001
7866
|
}));
|
|
7002
|
-
var Markdown = ({ content, children }) => /* @__PURE__ */
|
|
7867
|
+
var Markdown = ({ content, children }) => /* @__PURE__ */ jsx84(Content, { className: "markdown-body", children: /* @__PURE__ */ jsx84(MD, { rehypePlugins: [highlight, rehypeRaw], children: content || children }) });
|
|
7003
7868
|
|
|
7004
7869
|
// src/components/utilities/OnboardingProvider/OnboardingProvider.tsx
|
|
7005
7870
|
import { createContext, useContext, useState as useState8, useCallback as useCallback5, useEffect } from "react";
|
|
7006
|
-
import { jsx as
|
|
7871
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
|
7007
7872
|
var OnboardingContext = createContext(void 0);
|
|
7008
7873
|
var useOnboarding = () => {
|
|
7009
7874
|
const context = useContext(OnboardingContext);
|
|
@@ -7028,7 +7893,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
7028
7893
|
setIsOnboardingActive(false);
|
|
7029
7894
|
setTimeout(() => setIsOnboardingActive(true), 0);
|
|
7030
7895
|
}, []);
|
|
7031
|
-
return /* @__PURE__ */
|
|
7896
|
+
return /* @__PURE__ */ jsx85(
|
|
7032
7897
|
OnboardingContext.Provider,
|
|
7033
7898
|
{
|
|
7034
7899
|
value: {
|
|
@@ -7043,7 +7908,7 @@ var OnboardingProvider = ({ children }) => {
|
|
|
7043
7908
|
};
|
|
7044
7909
|
|
|
7045
7910
|
// src/components/utilities/Truncate/Truncate.tsx
|
|
7046
|
-
import { jsx as
|
|
7911
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
7047
7912
|
var getDefaultEndingLength = ({ text, variant, maxLength = text.length }) => {
|
|
7048
7913
|
if (variant === "hex") {
|
|
7049
7914
|
return 4;
|
|
@@ -7067,30 +7932,30 @@ var Truncate = ({
|
|
|
7067
7932
|
const truncated = text.slice(0, maxLength - endingLength);
|
|
7068
7933
|
truncatedText = [truncated, ending].filter(Boolean).join("...");
|
|
7069
7934
|
}
|
|
7070
|
-
return /* @__PURE__ */
|
|
7935
|
+
return /* @__PURE__ */ jsx86("span", { ...props, "data-full": text, children: truncatedText });
|
|
7071
7936
|
};
|
|
7072
7937
|
|
|
7073
7938
|
// src/components/utilities/BytesSize/BytesSize.tsx
|
|
7074
7939
|
import size from "byte-size";
|
|
7075
|
-
import { Fragment as Fragment12, jsx as
|
|
7940
|
+
import { Fragment as Fragment12, jsx as jsx87 } from "react/jsx-runtime";
|
|
7076
7941
|
var BytesSize = ({ bytes }) => {
|
|
7077
|
-
return /* @__PURE__ */
|
|
7942
|
+
return /* @__PURE__ */ jsx87(Fragment12, { children: size(bytes).toString() });
|
|
7078
7943
|
};
|
|
7079
7944
|
|
|
7080
7945
|
// src/components/utilities/QRCode/QRCode.tsx
|
|
7081
7946
|
import { forwardRef as forwardRef2 } from "react";
|
|
7082
7947
|
import QR from "react-qr-code";
|
|
7083
|
-
import { jsx as
|
|
7084
|
-
var QRCode = forwardRef2(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */
|
|
7948
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
7949
|
+
var QRCode = forwardRef2(({ size: size3 = 168, ...props }, ref) => /* @__PURE__ */ jsx88(QR, { ref, size: size3, ...props }));
|
|
7085
7950
|
QRCode.displayName = "QRCode";
|
|
7086
7951
|
|
|
7087
7952
|
// src/components/charts/ChartWidget/ChartWidget.tsx
|
|
7088
|
-
import { Box as
|
|
7953
|
+
import { Box as Box26, Stack as Stack5, Typography as Typography23, styled as styled43, useTheme as useTheme3 } from "@mui/material";
|
|
7089
7954
|
import { LineChart } from "@mui/x-charts";
|
|
7090
7955
|
import size2 from "byte-size";
|
|
7091
7956
|
import { format } from "date-fns";
|
|
7092
|
-
import { jsx as
|
|
7093
|
-
var Chart = styled43(
|
|
7957
|
+
import { jsx as jsx89, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7958
|
+
var Chart = styled43(Box26)(() => ({
|
|
7094
7959
|
height: 200
|
|
7095
7960
|
}));
|
|
7096
7961
|
var ChartWidget = ({
|
|
@@ -7100,10 +7965,10 @@ var ChartWidget = ({
|
|
|
7100
7965
|
formatValue = (value2) => size2(value2 || 0).toString()
|
|
7101
7966
|
}) => {
|
|
7102
7967
|
const theme2 = useTheme3();
|
|
7103
|
-
return /* @__PURE__ */
|
|
7104
|
-
/* @__PURE__ */
|
|
7105
|
-
/* @__PURE__ */
|
|
7106
|
-
/* @__PURE__ */
|
|
7968
|
+
return /* @__PURE__ */ jsxs43(Stack5, { spacing: 1, children: [
|
|
7969
|
+
/* @__PURE__ */ jsx89(Typography23, { variant: "caption", color: "text.secondary", children: title }),
|
|
7970
|
+
/* @__PURE__ */ jsx89(Typography23, { fontWeight: "bold", children: value }),
|
|
7971
|
+
/* @__PURE__ */ jsx89(Chart, { children: /* @__PURE__ */ jsx89(
|
|
7107
7972
|
LineChart,
|
|
7108
7973
|
{
|
|
7109
7974
|
dataset: history || [],
|
|
@@ -7161,11 +8026,11 @@ var ChartWidget = ({
|
|
|
7161
8026
|
import { format as format2, startOfDay, subHours, subWeeks, subMonths } from "date-fns";
|
|
7162
8027
|
import { LineChart as LineChart2 } from "@mui/x-charts";
|
|
7163
8028
|
import { useDrawingArea, useYScale } from "@mui/x-charts/hooks";
|
|
7164
|
-
import { Box as
|
|
8029
|
+
import { Box as Box27, Card as Card2, CardHeader as CardHeader2, CardMedia, Divider as Divider10, Stack as Stack6, styled as styled44, Typography as Typography24, useTheme as useTheme4 } from "@mui/material";
|
|
7165
8030
|
|
|
7166
8031
|
// src/components/charts/MetricsChart/PeriodSelect.tsx
|
|
7167
8032
|
import { MenuItem as MenuItem3, TextField as TextField4 } from "@mui/material";
|
|
7168
|
-
import { jsx as
|
|
8033
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
7169
8034
|
var options = [
|
|
7170
8035
|
/**
|
|
7171
8036
|
* TODO: Enable the options below when the backend supports them
|
|
@@ -7175,7 +8040,7 @@ var options = [
|
|
|
7175
8040
|
{ value: "week", label: "1 week" },
|
|
7176
8041
|
{ value: "month", label: "1 month" }
|
|
7177
8042
|
];
|
|
7178
|
-
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */
|
|
8043
|
+
var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ jsx90(
|
|
7179
8044
|
TextField4,
|
|
7180
8045
|
{
|
|
7181
8046
|
select: true,
|
|
@@ -7183,13 +8048,13 @@ var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ jsx85(
|
|
|
7183
8048
|
value,
|
|
7184
8049
|
defaultValue: options[0].value,
|
|
7185
8050
|
onChange: (e) => onChange?.(e.target.value),
|
|
7186
|
-
children: options.map(({ value: value2, label }) => /* @__PURE__ */
|
|
8051
|
+
children: options.map(({ value: value2, label }) => /* @__PURE__ */ jsx90(MenuItem3, { value: value2, children: label }, value2))
|
|
7187
8052
|
}
|
|
7188
8053
|
);
|
|
7189
8054
|
|
|
7190
8055
|
// src/components/charts/MetricsChart/MetricsChart.tsx
|
|
7191
8056
|
import { useMemo, useState as useState9 } from "react";
|
|
7192
|
-
import { jsx as
|
|
8057
|
+
import { jsx as jsx91, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7193
8058
|
var mapPeriodToFromDate = (period = "month") => {
|
|
7194
8059
|
const date = /* @__PURE__ */ new Date();
|
|
7195
8060
|
if (period === "hour") {
|
|
@@ -7249,15 +8114,15 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
7249
8114
|
const backgroundHeight = textHeight + padding.top + padding.bottom;
|
|
7250
8115
|
const rectX = left + (width - backgroundWidth) / 2;
|
|
7251
8116
|
const rectY = top + (height - backgroundHeight) / 2;
|
|
7252
|
-
return /* @__PURE__ */
|
|
7253
|
-
/* @__PURE__ */
|
|
7254
|
-
/* @__PURE__ */
|
|
8117
|
+
return /* @__PURE__ */ jsxs44("g", { children: [
|
|
8118
|
+
/* @__PURE__ */ jsx91(NoDataRect, { x: rectX, y: rectY, width: backgroundWidth, height: backgroundHeight }),
|
|
8119
|
+
/* @__PURE__ */ jsx91(LoadingText, { style: { ...theme2.typography.subtitle1 }, x: left + width / 2, y: top + height / 2, children: text })
|
|
7255
8120
|
] });
|
|
7256
8121
|
};
|
|
7257
|
-
return /* @__PURE__ */
|
|
7258
|
-
/* @__PURE__ */
|
|
7259
|
-
/* @__PURE__ */
|
|
7260
|
-
/* @__PURE__ */
|
|
8122
|
+
return /* @__PURE__ */ jsxs44(Card2, { children: [
|
|
8123
|
+
/* @__PURE__ */ jsx91(CardHeader2, { title: "GET / PUT Requests", action: /* @__PURE__ */ jsx91(PeriodSelect, { value: period, onChange: setPeriod }) }),
|
|
8124
|
+
/* @__PURE__ */ jsxs44(CardMedia, { children: [
|
|
8125
|
+
/* @__PURE__ */ jsx91(
|
|
7261
8126
|
Chart2,
|
|
7262
8127
|
{
|
|
7263
8128
|
skipAnimation: true,
|
|
@@ -7318,35 +8183,35 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
7318
8183
|
]
|
|
7319
8184
|
}
|
|
7320
8185
|
),
|
|
7321
|
-
periodHistory.length > 0 && /* @__PURE__ */
|
|
7322
|
-
/* @__PURE__ */
|
|
7323
|
-
/* @__PURE__ */
|
|
7324
|
-
/* @__PURE__ */
|
|
8186
|
+
periodHistory.length > 0 && /* @__PURE__ */ jsxs44(Stack6, { direction: "row", spacing: 2, marginY: 3, justifyContent: "center", children: [
|
|
8187
|
+
/* @__PURE__ */ jsxs44(Stack6, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
8188
|
+
/* @__PURE__ */ jsx91(Box27, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.primary.main } }),
|
|
8189
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "body2", children: "Get" })
|
|
7325
8190
|
] }),
|
|
7326
|
-
/* @__PURE__ */
|
|
7327
|
-
/* @__PURE__ */
|
|
7328
|
-
/* @__PURE__ */
|
|
8191
|
+
/* @__PURE__ */ jsxs44(Stack6, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
8192
|
+
/* @__PURE__ */ jsx91(Box27, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.success.main } }),
|
|
8193
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "body2", children: "Put" })
|
|
7329
8194
|
] })
|
|
7330
8195
|
] })
|
|
7331
8196
|
] }),
|
|
7332
|
-
/* @__PURE__ */
|
|
7333
|
-
/* @__PURE__ */
|
|
7334
|
-
/* @__PURE__ */
|
|
7335
|
-
/* @__PURE__ */
|
|
7336
|
-
/* @__PURE__ */
|
|
7337
|
-
/* @__PURE__ */
|
|
8197
|
+
/* @__PURE__ */ jsxs44(CardMedia, { children: [
|
|
8198
|
+
/* @__PURE__ */ jsx91(Divider10, { flexItem: true }),
|
|
8199
|
+
/* @__PURE__ */ jsxs44(Stack6, { direction: "row", spacing: 2, padding: 2, children: [
|
|
8200
|
+
/* @__PURE__ */ jsxs44(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
8201
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "body2", color: "secondary", children: "GET Requests per account" }),
|
|
8202
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "h3", children: total.gets })
|
|
7338
8203
|
] }),
|
|
7339
|
-
/* @__PURE__ */
|
|
7340
|
-
/* @__PURE__ */
|
|
7341
|
-
/* @__PURE__ */
|
|
8204
|
+
/* @__PURE__ */ jsxs44(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
8205
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "body2", color: "secondary", children: "PUT Requests per account" }),
|
|
8206
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "h3", children: total.puts })
|
|
7342
8207
|
] }),
|
|
7343
|
-
/* @__PURE__ */
|
|
7344
|
-
/* @__PURE__ */
|
|
7345
|
-
/* @__PURE__ */
|
|
8208
|
+
/* @__PURE__ */ jsxs44(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
8209
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "body2", color: "secondary", children: "Total Consumed per account" }),
|
|
8210
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "h3", children: /* @__PURE__ */ jsx91(BytesSize, { bytes: total.transferredBytes }) })
|
|
7346
8211
|
] }),
|
|
7347
|
-
/* @__PURE__ */
|
|
7348
|
-
/* @__PURE__ */
|
|
7349
|
-
/* @__PURE__ */
|
|
8212
|
+
/* @__PURE__ */ jsxs44(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
8213
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "body2", color: "secondary", children: "Total Stored per account" }),
|
|
8214
|
+
/* @__PURE__ */ jsx91(Typography24, { variant: "h3", children: /* @__PURE__ */ jsx91(BytesSize, { bytes: total.storedBytes }) })
|
|
7350
8215
|
] })
|
|
7351
8216
|
] })
|
|
7352
8217
|
] })
|
|
@@ -7356,14 +8221,14 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
7356
8221
|
// src/components/charts/TimeSeriesGraph/TimeSeriesGraph.tsx
|
|
7357
8222
|
import { useCallback as useCallback6, useMemo as useMemo2, useState as useState10 } from "react";
|
|
7358
8223
|
import {
|
|
7359
|
-
Box as
|
|
8224
|
+
Box as Box28,
|
|
7360
8225
|
Card as Card3,
|
|
7361
8226
|
CardHeader as CardHeader3,
|
|
7362
8227
|
CardMedia as CardMedia2,
|
|
7363
8228
|
CircularProgress as CircularProgress7,
|
|
7364
|
-
Divider as
|
|
7365
|
-
Stack as
|
|
7366
|
-
Typography as
|
|
8229
|
+
Divider as Divider11,
|
|
8230
|
+
Stack as Stack8,
|
|
8231
|
+
Typography as Typography26,
|
|
7367
8232
|
styled as styled45,
|
|
7368
8233
|
useTheme as useTheme5
|
|
7369
8234
|
} from "@mui/material";
|
|
@@ -7372,8 +8237,8 @@ import { format as format3 } from "date-fns";
|
|
|
7372
8237
|
|
|
7373
8238
|
// src/components/charts/TimeSeriesGraph/TimeRangeSelect.tsx
|
|
7374
8239
|
import { MenuItem as MenuItem4, TextField as TextField5 } from "@mui/material";
|
|
7375
|
-
import { jsx as
|
|
7376
|
-
var TimeRangeSelect = ({ options: options2, value, onChange }) => /* @__PURE__ */
|
|
8240
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
8241
|
+
var TimeRangeSelect = ({ options: options2, value, onChange }) => /* @__PURE__ */ jsx92(
|
|
7377
8242
|
TextField5,
|
|
7378
8243
|
{
|
|
7379
8244
|
select: true,
|
|
@@ -7382,13 +8247,13 @@ var TimeRangeSelect = ({ options: options2, value, onChange }) => /* @__PURE__ *
|
|
|
7382
8247
|
onChange: (e) => onChange?.(e.target.value),
|
|
7383
8248
|
"aria-label": "Time range selector",
|
|
7384
8249
|
sx: { minWidth: 120 },
|
|
7385
|
-
children: options2.map((option) => /* @__PURE__ */
|
|
8250
|
+
children: options2.map((option) => /* @__PURE__ */ jsx92(MenuItem4, { value: option.value, children: option.label }, option.value))
|
|
7386
8251
|
}
|
|
7387
8252
|
);
|
|
7388
8253
|
|
|
7389
8254
|
// src/components/charts/TimeSeriesGraph/SummaryStats.tsx
|
|
7390
|
-
import { Stack as
|
|
7391
|
-
import { jsx as
|
|
8255
|
+
import { Stack as Stack7, Typography as Typography25 } from "@mui/material";
|
|
8256
|
+
import { jsx as jsx93, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7392
8257
|
var formatSummaryValue = (value, unit) => {
|
|
7393
8258
|
const displayValue = typeof value === "number" ? value.toLocaleString() : value;
|
|
7394
8259
|
return unit ? `${displayValue} ${unit}` : displayValue;
|
|
@@ -7397,8 +8262,8 @@ var SummaryStats = ({ items }) => {
|
|
|
7397
8262
|
if (items.length === 0) {
|
|
7398
8263
|
return null;
|
|
7399
8264
|
}
|
|
7400
|
-
return /* @__PURE__ */
|
|
7401
|
-
|
|
8265
|
+
return /* @__PURE__ */ jsx93(
|
|
8266
|
+
Stack7,
|
|
7402
8267
|
{
|
|
7403
8268
|
direction: "row",
|
|
7404
8269
|
spacing: 3,
|
|
@@ -7407,16 +8272,16 @@ var SummaryStats = ({ items }) => {
|
|
|
7407
8272
|
useFlexGap: true,
|
|
7408
8273
|
role: "list",
|
|
7409
8274
|
"aria-label": "Summary statistics",
|
|
7410
|
-
children: items.map((item) => /* @__PURE__ */
|
|
7411
|
-
|
|
8275
|
+
children: items.map((item) => /* @__PURE__ */ jsxs45(
|
|
8276
|
+
Stack7,
|
|
7412
8277
|
{
|
|
7413
8278
|
direction: "row",
|
|
7414
8279
|
alignItems: "center",
|
|
7415
8280
|
spacing: 1,
|
|
7416
8281
|
role: "listitem",
|
|
7417
8282
|
children: [
|
|
7418
|
-
/* @__PURE__ */
|
|
7419
|
-
/* @__PURE__ */
|
|
8283
|
+
/* @__PURE__ */ jsx93(Typography25, { variant: "body2", color: "text.secondary", children: item.label }),
|
|
8284
|
+
/* @__PURE__ */ jsx93(Typography25, { variant: "h5", fontWeight: 600, children: formatSummaryValue(item.value, item.unit) })
|
|
7420
8285
|
]
|
|
7421
8286
|
},
|
|
7422
8287
|
item.label
|
|
@@ -7426,12 +8291,12 @@ var SummaryStats = ({ items }) => {
|
|
|
7426
8291
|
};
|
|
7427
8292
|
|
|
7428
8293
|
// src/components/charts/TimeSeriesGraph/TimeSeriesGraph.tsx
|
|
7429
|
-
import { Fragment as Fragment13, jsx as
|
|
7430
|
-
var ChartContainer = styled45(
|
|
8294
|
+
import { Fragment as Fragment13, jsx as jsx94, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
8295
|
+
var ChartContainer = styled45(Box28)({
|
|
7431
8296
|
position: "relative",
|
|
7432
8297
|
height: 320
|
|
7433
8298
|
});
|
|
7434
|
-
var LoadingOverlay = styled45(
|
|
8299
|
+
var LoadingOverlay = styled45(Box28)(({ theme: theme2 }) => ({
|
|
7435
8300
|
position: "absolute",
|
|
7436
8301
|
inset: 0,
|
|
7437
8302
|
display: "flex",
|
|
@@ -7441,7 +8306,7 @@ var LoadingOverlay = styled45(Box24)(({ theme: theme2 }) => ({
|
|
|
7441
8306
|
zIndex: 1,
|
|
7442
8307
|
borderRadius: theme2.shape.borderRadius
|
|
7443
8308
|
}));
|
|
7444
|
-
var LegendDot = styled45(
|
|
8309
|
+
var LegendDot = styled45(Box28, {
|
|
7445
8310
|
shouldForwardProp: (prop) => prop !== "dotColor"
|
|
7446
8311
|
})(({ dotColor }) => ({
|
|
7447
8312
|
width: 14,
|
|
@@ -7530,9 +8395,9 @@ var TimeSeriesGraph = ({
|
|
|
7530
8395
|
);
|
|
7531
8396
|
const hasData = dataset.length > 0;
|
|
7532
8397
|
const shouldShowSummary = showSummary && summaryItems && summaryItems.length > 0;
|
|
7533
|
-
const headerActionElement = /* @__PURE__ */
|
|
8398
|
+
const headerActionElement = /* @__PURE__ */ jsxs46(Stack8, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
7534
8399
|
headerAction,
|
|
7535
|
-
timeRangeOptions && timeRangeOptions.length > 0 && /* @__PURE__ */
|
|
8400
|
+
timeRangeOptions && timeRangeOptions.length > 0 && /* @__PURE__ */ jsx94(
|
|
7536
8401
|
TimeRangeSelect,
|
|
7537
8402
|
{
|
|
7538
8403
|
options: timeRangeOptions,
|
|
@@ -7542,13 +8407,13 @@ var TimeSeriesGraph = ({
|
|
|
7542
8407
|
)
|
|
7543
8408
|
] });
|
|
7544
8409
|
const showHeader = !!title || !!headerAction || timeRangeOptions && timeRangeOptions.length > 0;
|
|
7545
|
-
return /* @__PURE__ */
|
|
8410
|
+
return /* @__PURE__ */ jsxs46(
|
|
7546
8411
|
Card3,
|
|
7547
8412
|
{
|
|
7548
8413
|
"aria-label": title ? `Line chart showing ${title}` : "Line chart",
|
|
7549
8414
|
role: "figure",
|
|
7550
8415
|
children: [
|
|
7551
|
-
showHeader && /* @__PURE__ */
|
|
8416
|
+
showHeader && /* @__PURE__ */ jsx94(
|
|
7552
8417
|
CardHeader3,
|
|
7553
8418
|
{
|
|
7554
8419
|
title,
|
|
@@ -7559,10 +8424,10 @@ var TimeSeriesGraph = ({
|
|
|
7559
8424
|
action: headerActionElement
|
|
7560
8425
|
}
|
|
7561
8426
|
),
|
|
7562
|
-
/* @__PURE__ */
|
|
7563
|
-
/* @__PURE__ */
|
|
7564
|
-
loading && /* @__PURE__ */
|
|
7565
|
-
/* @__PURE__ */
|
|
8427
|
+
/* @__PURE__ */ jsxs46(CardMedia2, { children: [
|
|
8428
|
+
/* @__PURE__ */ jsxs46(ChartContainer, { children: [
|
|
8429
|
+
loading && /* @__PURE__ */ jsx94(LoadingOverlay, { role: "status", "aria-label": "Loading chart data", children: /* @__PURE__ */ jsx94(CircularProgress7, { size: 40 }) }),
|
|
8430
|
+
/* @__PURE__ */ jsx94(
|
|
7566
8431
|
LineChart3,
|
|
7567
8432
|
{
|
|
7568
8433
|
dataset,
|
|
@@ -7614,8 +8479,8 @@ var TimeSeriesGraph = ({
|
|
|
7614
8479
|
}
|
|
7615
8480
|
)
|
|
7616
8481
|
] }),
|
|
7617
|
-
series.length > 0 && /* @__PURE__ */
|
|
7618
|
-
|
|
8482
|
+
series.length > 0 && /* @__PURE__ */ jsx94(
|
|
8483
|
+
Stack8,
|
|
7619
8484
|
{
|
|
7620
8485
|
direction: "row",
|
|
7621
8486
|
spacing: 2,
|
|
@@ -7627,8 +8492,8 @@ var TimeSeriesGraph = ({
|
|
|
7627
8492
|
"aria-label": "Chart legend",
|
|
7628
8493
|
children: series.map((s) => {
|
|
7629
8494
|
const isHidden = hiddenSeries.has(s.name);
|
|
7630
|
-
return /* @__PURE__ */
|
|
7631
|
-
|
|
8495
|
+
return /* @__PURE__ */ jsxs46(
|
|
8496
|
+
Stack8,
|
|
7632
8497
|
{
|
|
7633
8498
|
direction: "row",
|
|
7634
8499
|
spacing: 1,
|
|
@@ -7644,8 +8509,8 @@ var TimeSeriesGraph = ({
|
|
|
7644
8509
|
"aria-pressed": !isHidden,
|
|
7645
8510
|
"aria-label": `Toggle ${s.name} visibility`,
|
|
7646
8511
|
children: [
|
|
7647
|
-
/* @__PURE__ */
|
|
7648
|
-
/* @__PURE__ */
|
|
8512
|
+
/* @__PURE__ */ jsx94(LegendDot, { dotColor: s.color }),
|
|
8513
|
+
/* @__PURE__ */ jsx94(Typography26, { variant: "body2", children: s.name })
|
|
7649
8514
|
]
|
|
7650
8515
|
},
|
|
7651
8516
|
s.name
|
|
@@ -7654,9 +8519,9 @@ var TimeSeriesGraph = ({
|
|
|
7654
8519
|
}
|
|
7655
8520
|
)
|
|
7656
8521
|
] }),
|
|
7657
|
-
shouldShowSummary && /* @__PURE__ */
|
|
7658
|
-
/* @__PURE__ */
|
|
7659
|
-
/* @__PURE__ */
|
|
8522
|
+
shouldShowSummary && /* @__PURE__ */ jsxs46(Fragment13, { children: [
|
|
8523
|
+
/* @__PURE__ */ jsx94(Divider11, {}),
|
|
8524
|
+
/* @__PURE__ */ jsx94(SummaryStats, { items: summaryItems })
|
|
7660
8525
|
] })
|
|
7661
8526
|
]
|
|
7662
8527
|
}
|
|
@@ -7673,10 +8538,10 @@ import ReactFlow, {
|
|
|
7673
8538
|
BackgroundVariant,
|
|
7674
8539
|
ConnectionLineType
|
|
7675
8540
|
} from "reactflow";
|
|
7676
|
-
import { Box as
|
|
8541
|
+
import { Box as Box29 } from "@mui/material";
|
|
7677
8542
|
import { useTheme as useTheme6 } from "@mui/material/styles";
|
|
7678
8543
|
import { Background as Background2, Controls as Controls2, MiniMap as MiniMap2, Panel, BackgroundVariant as BackgroundVariant2, ConnectionLineType as ConnectionLineType2 } from "reactflow";
|
|
7679
|
-
import { jsx as
|
|
8544
|
+
import { jsx as jsx95, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7680
8545
|
var FlowEditor = ({
|
|
7681
8546
|
nodes,
|
|
7682
8547
|
edges,
|
|
@@ -7702,8 +8567,8 @@ var FlowEditor = ({
|
|
|
7702
8567
|
},
|
|
7703
8568
|
[onInit]
|
|
7704
8569
|
);
|
|
7705
|
-
return /* @__PURE__ */
|
|
7706
|
-
|
|
8570
|
+
return /* @__PURE__ */ jsx95(ReactFlowProvider, { children: /* @__PURE__ */ jsx95(
|
|
8571
|
+
Box29,
|
|
7707
8572
|
{
|
|
7708
8573
|
sx: {
|
|
7709
8574
|
width: "100%",
|
|
@@ -7715,7 +8580,7 @@ var FlowEditor = ({
|
|
|
7715
8580
|
...containerProps?.sx
|
|
7716
8581
|
},
|
|
7717
8582
|
...containerProps,
|
|
7718
|
-
children: /* @__PURE__ */
|
|
8583
|
+
children: /* @__PURE__ */ jsxs47(
|
|
7719
8584
|
ReactFlow,
|
|
7720
8585
|
{
|
|
7721
8586
|
nodes,
|
|
@@ -7737,7 +8602,7 @@ var FlowEditor = ({
|
|
|
7737
8602
|
},
|
|
7738
8603
|
...reactFlowProps,
|
|
7739
8604
|
children: [
|
|
7740
|
-
showBackground && /* @__PURE__ */
|
|
8605
|
+
showBackground && /* @__PURE__ */ jsx95(
|
|
7741
8606
|
Background,
|
|
7742
8607
|
{
|
|
7743
8608
|
variant: backgroundVariant,
|
|
@@ -7746,8 +8611,8 @@ var FlowEditor = ({
|
|
|
7746
8611
|
color: theme2.palette.divider
|
|
7747
8612
|
}
|
|
7748
8613
|
),
|
|
7749
|
-
showControls && /* @__PURE__ */
|
|
7750
|
-
showMinimap && /* @__PURE__ */
|
|
8614
|
+
showControls && /* @__PURE__ */ jsx95(Controls, {}),
|
|
8615
|
+
showMinimap && /* @__PURE__ */ jsx95(
|
|
7751
8616
|
MiniMap,
|
|
7752
8617
|
{
|
|
7753
8618
|
nodeColor: (node) => {
|
|
@@ -7772,13 +8637,13 @@ var FlowEditor = ({
|
|
|
7772
8637
|
// src/components/third-party/CodeEditor.tsx
|
|
7773
8638
|
import { useCallback as useCallback8, useEffect as useEffect2, useState as useState11, useRef as useRef2 } from "react";
|
|
7774
8639
|
import Editor from "@monaco-editor/react";
|
|
7775
|
-
import { Box as
|
|
8640
|
+
import { Box as Box30, IconButton as IconButton14, Tooltip as Tooltip7 } from "@mui/material";
|
|
7776
8641
|
import FullscreenIcon from "@mui/icons-material/Fullscreen";
|
|
7777
8642
|
import FullscreenExitIcon from "@mui/icons-material/FullscreenExit";
|
|
7778
8643
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
|
7779
8644
|
import ExpandMoreIcon3 from "@mui/icons-material/ExpandMore";
|
|
7780
8645
|
import ExpandLessIcon from "@mui/icons-material/ExpandLess";
|
|
7781
|
-
import { jsx as
|
|
8646
|
+
import { jsx as jsx96, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7782
8647
|
var configureTypeScript = (monaco) => {
|
|
7783
8648
|
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
7784
8649
|
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
@@ -7990,8 +8855,8 @@ var CodeEditor = ({
|
|
|
7990
8855
|
theme: themeProp || "vs",
|
|
7991
8856
|
...options2
|
|
7992
8857
|
};
|
|
7993
|
-
return /* @__PURE__ */
|
|
7994
|
-
|
|
8858
|
+
return /* @__PURE__ */ jsx96(
|
|
8859
|
+
Box30,
|
|
7995
8860
|
{
|
|
7996
8861
|
sx: {
|
|
7997
8862
|
display: "flex",
|
|
@@ -8011,8 +8876,8 @@ var CodeEditor = ({
|
|
|
8011
8876
|
pb: isFullscreen ? 2 : 0,
|
|
8012
8877
|
overflow: isFullscreen ? "hidden" : "visible"
|
|
8013
8878
|
},
|
|
8014
|
-
children: /* @__PURE__ */
|
|
8015
|
-
|
|
8879
|
+
children: /* @__PURE__ */ jsxs48(
|
|
8880
|
+
Box30,
|
|
8016
8881
|
{
|
|
8017
8882
|
sx: {
|
|
8018
8883
|
flex: 1,
|
|
@@ -8027,8 +8892,8 @@ var CodeEditor = ({
|
|
|
8027
8892
|
},
|
|
8028
8893
|
...containerProps,
|
|
8029
8894
|
children: [
|
|
8030
|
-
/* @__PURE__ */
|
|
8031
|
-
|
|
8895
|
+
/* @__PURE__ */ jsx96(Tooltip7, { title: isFullscreen ? "Exit Fullscreen" : "Fullscreen", children: /* @__PURE__ */ jsx96(
|
|
8896
|
+
IconButton14,
|
|
8032
8897
|
{
|
|
8033
8898
|
onClick: toggleFullscreen,
|
|
8034
8899
|
size: "small",
|
|
@@ -8045,11 +8910,11 @@ var CodeEditor = ({
|
|
|
8045
8910
|
},
|
|
8046
8911
|
boxShadow: 1
|
|
8047
8912
|
},
|
|
8048
|
-
children: isFullscreen ? /* @__PURE__ */
|
|
8913
|
+
children: isFullscreen ? /* @__PURE__ */ jsx96(FullscreenExitIcon, { fontSize: "small" }) : /* @__PURE__ */ jsx96(FullscreenIcon, { fontSize: "small" })
|
|
8049
8914
|
}
|
|
8050
8915
|
) }),
|
|
8051
|
-
/* @__PURE__ */
|
|
8052
|
-
|
|
8916
|
+
/* @__PURE__ */ jsx96(
|
|
8917
|
+
Box30,
|
|
8053
8918
|
{
|
|
8054
8919
|
sx: {
|
|
8055
8920
|
flex: 1,
|
|
@@ -8060,7 +8925,7 @@ var CodeEditor = ({
|
|
|
8060
8925
|
position: "relative",
|
|
8061
8926
|
height: isFullscreen ? "100%" : actualHeight
|
|
8062
8927
|
},
|
|
8063
|
-
children: /* @__PURE__ */
|
|
8928
|
+
children: /* @__PURE__ */ jsx96(
|
|
8064
8929
|
Editor,
|
|
8065
8930
|
{
|
|
8066
8931
|
height: "100%",
|
|
@@ -8071,7 +8936,7 @@ var CodeEditor = ({
|
|
|
8071
8936
|
onMount: handleEditorDidMount,
|
|
8072
8937
|
theme: themeProp || "vs",
|
|
8073
8938
|
options: defaultOptions,
|
|
8074
|
-
loading: /* @__PURE__ */
|
|
8939
|
+
loading: /* @__PURE__ */ jsx96(Box30, { sx: { p: 2, textAlign: "center" }, children: "Loading Monaco Editor..." }),
|
|
8075
8940
|
beforeMount: (monaco) => {
|
|
8076
8941
|
console.log("CodeEditor: beforeMount called", { monaco: !!monaco });
|
|
8077
8942
|
}
|
|
@@ -8079,8 +8944,8 @@ var CodeEditor = ({
|
|
|
8079
8944
|
)
|
|
8080
8945
|
}
|
|
8081
8946
|
),
|
|
8082
|
-
validationErrors.length > 0 && /* @__PURE__ */
|
|
8083
|
-
|
|
8947
|
+
validationErrors.length > 0 && /* @__PURE__ */ jsxs48(
|
|
8948
|
+
Box30,
|
|
8084
8949
|
{
|
|
8085
8950
|
sx: {
|
|
8086
8951
|
borderTop: 1,
|
|
@@ -8093,8 +8958,8 @@ var CodeEditor = ({
|
|
|
8093
8958
|
transition: "max-height 0.2s ease"
|
|
8094
8959
|
},
|
|
8095
8960
|
children: [
|
|
8096
|
-
/* @__PURE__ */
|
|
8097
|
-
|
|
8961
|
+
/* @__PURE__ */ jsxs48(
|
|
8962
|
+
Box30,
|
|
8098
8963
|
{
|
|
8099
8964
|
sx: {
|
|
8100
8965
|
display: "flex",
|
|
@@ -8108,16 +8973,16 @@ var CodeEditor = ({
|
|
|
8108
8973
|
color: "text.secondary"
|
|
8109
8974
|
},
|
|
8110
8975
|
children: [
|
|
8111
|
-
/* @__PURE__ */
|
|
8112
|
-
/* @__PURE__ */
|
|
8113
|
-
/* @__PURE__ */
|
|
8976
|
+
/* @__PURE__ */ jsx96(ErrorOutlineIcon, { color: "error", fontSize: "small" }),
|
|
8977
|
+
/* @__PURE__ */ jsx96(Box30, { sx: { fontWeight: 600, color: "text.primary" }, children: "Problems" }),
|
|
8978
|
+
/* @__PURE__ */ jsxs48(Box30, { sx: { ml: 1 }, children: [
|
|
8114
8979
|
validationErrors.length,
|
|
8115
8980
|
" error",
|
|
8116
8981
|
validationErrors.length > 1 ? "s" : ""
|
|
8117
8982
|
] }),
|
|
8118
|
-
/* @__PURE__ */
|
|
8119
|
-
/* @__PURE__ */
|
|
8120
|
-
|
|
8983
|
+
/* @__PURE__ */ jsx96(Box30, { sx: { flex: 1 } }),
|
|
8984
|
+
/* @__PURE__ */ jsx96(
|
|
8985
|
+
IconButton14,
|
|
8121
8986
|
{
|
|
8122
8987
|
size: "small",
|
|
8123
8988
|
"aria-label": "Toggle problems panel",
|
|
@@ -8125,14 +8990,14 @@ var CodeEditor = ({
|
|
|
8125
8990
|
setHasUserToggledProblems(true);
|
|
8126
8991
|
setShowProblems((s) => !s);
|
|
8127
8992
|
},
|
|
8128
|
-
children: showProblems ? /* @__PURE__ */
|
|
8993
|
+
children: showProblems ? /* @__PURE__ */ jsx96(ExpandMoreIcon3, { fontSize: "small" }) : /* @__PURE__ */ jsx96(ExpandLessIcon, { fontSize: "small" })
|
|
8129
8994
|
}
|
|
8130
8995
|
)
|
|
8131
8996
|
]
|
|
8132
8997
|
}
|
|
8133
8998
|
),
|
|
8134
|
-
showProblems && /* @__PURE__ */
|
|
8135
|
-
|
|
8999
|
+
showProblems && /* @__PURE__ */ jsx96(Box30, { sx: { overflow: "auto" }, children: validationErrors.map((error, index) => /* @__PURE__ */ jsxs48(
|
|
9000
|
+
Box30,
|
|
8136
9001
|
{
|
|
8137
9002
|
onClick: () => gotoMarker(error),
|
|
8138
9003
|
sx: {
|
|
@@ -8148,12 +9013,12 @@ var CodeEditor = ({
|
|
|
8148
9013
|
fontSize: "0.85rem"
|
|
8149
9014
|
},
|
|
8150
9015
|
children: [
|
|
8151
|
-
/* @__PURE__ */
|
|
8152
|
-
/* @__PURE__ */
|
|
9016
|
+
/* @__PURE__ */ jsx96(ErrorOutlineIcon, { color: "error", sx: { fontSize: 18 } }),
|
|
9017
|
+
/* @__PURE__ */ jsxs48(Box30, { sx: { color: "text.secondary", width: 64 }, children: [
|
|
8153
9018
|
"Line ",
|
|
8154
9019
|
error.startLineNumber
|
|
8155
9020
|
] }),
|
|
8156
|
-
/* @__PURE__ */
|
|
9021
|
+
/* @__PURE__ */ jsx96(Box30, { sx: { color: "text.primary", flex: 1, minWidth: 0 }, children: error.message })
|
|
8157
9022
|
]
|
|
8158
9023
|
},
|
|
8159
9024
|
`${error.startLineNumber}-${error.startColumn}-${index}`
|
|
@@ -8170,6 +9035,40 @@ var CodeEditor = ({
|
|
|
8170
9035
|
|
|
8171
9036
|
// src/index.ts
|
|
8172
9037
|
import { Panel as Panel2 } from "reactflow";
|
|
9038
|
+
|
|
9039
|
+
// src/components/third-party/WorkflowNodeHandle.tsx
|
|
9040
|
+
import { Handle, Position } from "reactflow";
|
|
9041
|
+
import { Fragment as Fragment14, jsx as jsx97, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
9042
|
+
var WorkflowNodeHandle = ({
|
|
9043
|
+
data,
|
|
9044
|
+
selected
|
|
9045
|
+
}) => {
|
|
9046
|
+
const handleColor = workflowNodeColors[data.nodeType];
|
|
9047
|
+
const handleStyle = {
|
|
9048
|
+
width: 8,
|
|
9049
|
+
height: 8,
|
|
9050
|
+
borderRadius: "999px",
|
|
9051
|
+
border: "2px solid #fff",
|
|
9052
|
+
background: handleColor,
|
|
9053
|
+
boxShadow: WORKFLOW_NODE_SHADOW
|
|
9054
|
+
};
|
|
9055
|
+
return /* @__PURE__ */ jsxs49(Fragment14, { children: [
|
|
9056
|
+
/* @__PURE__ */ jsx97(Handle, { type: "target", position: Position.Left, style: handleStyle }),
|
|
9057
|
+
/* @__PURE__ */ jsx97(
|
|
9058
|
+
WorkflowNode,
|
|
9059
|
+
{
|
|
9060
|
+
nodeType: data.nodeType,
|
|
9061
|
+
title: data.title,
|
|
9062
|
+
description: data.description,
|
|
9063
|
+
icon: data.icon,
|
|
9064
|
+
badgeLabel: data.badgeLabel,
|
|
9065
|
+
selected,
|
|
9066
|
+
showSideDots: false
|
|
9067
|
+
}
|
|
9068
|
+
),
|
|
9069
|
+
/* @__PURE__ */ jsx97(Handle, { type: "source", position: Position.Right, style: handleStyle })
|
|
9070
|
+
] });
|
|
9071
|
+
};
|
|
8173
9072
|
export {
|
|
8174
9073
|
Accordion,
|
|
8175
9074
|
AccountSection,
|
|
@@ -8183,7 +9082,7 @@ export {
|
|
|
8183
9082
|
BackgroundVariant2 as BackgroundVariant,
|
|
8184
9083
|
Badge,
|
|
8185
9084
|
BarTrackingIcon,
|
|
8186
|
-
|
|
9085
|
+
Box18 as Box,
|
|
8187
9086
|
Breadcrumbs,
|
|
8188
9087
|
Button,
|
|
8189
9088
|
ButtonGroup,
|
|
@@ -8206,6 +9105,7 @@ export {
|
|
|
8206
9105
|
ConnectionStatus,
|
|
8207
9106
|
Container2 as Container,
|
|
8208
9107
|
Controls2 as Controls,
|
|
9108
|
+
DateRangePicker,
|
|
8209
9109
|
DecentralizedServerIcon,
|
|
8210
9110
|
DeploymentDashboardCard,
|
|
8211
9111
|
DeploymentDashboardPanel,
|
|
@@ -8254,7 +9154,7 @@ export {
|
|
|
8254
9154
|
OnboardingProvider,
|
|
8255
9155
|
Pagination,
|
|
8256
9156
|
Panel2 as Panel,
|
|
8257
|
-
|
|
9157
|
+
Paper3 as Paper,
|
|
8258
9158
|
PeriodSelect,
|
|
8259
9159
|
Progress,
|
|
8260
9160
|
QRCode,
|
|
@@ -8271,7 +9171,7 @@ export {
|
|
|
8271
9171
|
Sidebar,
|
|
8272
9172
|
SidebarItem,
|
|
8273
9173
|
Snackbar2 as Snackbar,
|
|
8274
|
-
|
|
9174
|
+
Stack4 as Stack,
|
|
8275
9175
|
Step,
|
|
8276
9176
|
StepButton,
|
|
8277
9177
|
StepContent,
|
|
@@ -8291,9 +9191,16 @@ export {
|
|
|
8291
9191
|
Toolbar,
|
|
8292
9192
|
Tooltip6 as Tooltip,
|
|
8293
9193
|
Truncate,
|
|
8294
|
-
|
|
9194
|
+
Typography16 as Typography,
|
|
8295
9195
|
UploadFileIcon,
|
|
8296
9196
|
UploadFolderIcon,
|
|
9197
|
+
WORKFLOW_NODE_LABELS,
|
|
9198
|
+
WORKFLOW_NODE_SHADOW,
|
|
9199
|
+
WorkflowNode,
|
|
9200
|
+
WorkflowNodeHandle,
|
|
9201
|
+
WorkflowSideInspector,
|
|
9202
|
+
WorkflowTimeBar,
|
|
9203
|
+
WorkflowTopBar,
|
|
8297
9204
|
WorkspaceSelectorButton,
|
|
8298
9205
|
colors,
|
|
8299
9206
|
contextMenuItems,
|
|
@@ -8303,6 +9210,8 @@ export {
|
|
|
8303
9210
|
useIsDesktop,
|
|
8304
9211
|
useIsMobile,
|
|
8305
9212
|
useIsTablet,
|
|
8306
|
-
useOnboarding
|
|
9213
|
+
useOnboarding,
|
|
9214
|
+
workflowConnectionColors,
|
|
9215
|
+
workflowNodeColors
|
|
8307
9216
|
};
|
|
8308
9217
|
//# sourceMappingURL=index.mjs.map
|