@cere/cere-design-system 0.0.42 → 0.0.43
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 +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +100 -82
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +320 -302
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -1
package/dist/index.mjs
CHANGED
|
@@ -2172,7 +2172,7 @@ function useSearchHotkeys(inputRef, options2 = {}) {
|
|
|
2172
2172
|
function onKeyDown(event) {
|
|
2173
2173
|
if (enableK && event.key.toLowerCase() === "k") {
|
|
2174
2174
|
const correctMod = mac ? event.metaKey && !event.ctrlKey : event.ctrlKey && !event.metaKey;
|
|
2175
|
-
if (correctMod) {
|
|
2175
|
+
if (correctMod && !event.shiftKey && !event.altKey) {
|
|
2176
2176
|
event.preventDefault();
|
|
2177
2177
|
inputRef.current?.focus();
|
|
2178
2178
|
return;
|
|
@@ -2193,15 +2193,16 @@ function useSearchHotkeys(inputRef, options2 = {}) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
|
|
2195
2195
|
// src/components/inputs/SearchField.tsx
|
|
2196
|
-
import { jsx as jsx8
|
|
2196
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
2197
2197
|
var ShortcutHint = () => {
|
|
2198
2198
|
const [mounted, setMounted] = useState(false);
|
|
2199
2199
|
useEffect2(() => {
|
|
2200
2200
|
setMounted(true);
|
|
2201
2201
|
}, []);
|
|
2202
2202
|
if (!mounted) return null;
|
|
2203
|
-
const
|
|
2204
|
-
|
|
2203
|
+
const isMac = isMacPlatform();
|
|
2204
|
+
const label = isMac ? "\u2318\u2009K" : "Ctrl + K";
|
|
2205
|
+
return /* @__PURE__ */ jsx8(
|
|
2205
2206
|
Box,
|
|
2206
2207
|
{
|
|
2207
2208
|
component: "span",
|
|
@@ -2218,10 +2219,7 @@ var ShortcutHint = () => {
|
|
|
2218
2219
|
color: "text.secondary",
|
|
2219
2220
|
lineHeight: 1
|
|
2220
2221
|
},
|
|
2221
|
-
children:
|
|
2222
|
-
modKey,
|
|
2223
|
-
"K"
|
|
2224
|
-
]
|
|
2222
|
+
children: label
|
|
2225
2223
|
}
|
|
2226
2224
|
);
|
|
2227
2225
|
};
|
|
@@ -2239,21 +2237,19 @@ var SearchField = ({
|
|
|
2239
2237
|
onChange?.(e);
|
|
2240
2238
|
onSearch?.(e.target.value);
|
|
2241
2239
|
};
|
|
2242
|
-
const
|
|
2243
|
-
"& .MuiOutlinedInput-root": {
|
|
2244
|
-
borderRadius: "999px",
|
|
2245
|
-
paddingRight: "6px"
|
|
2246
|
-
}
|
|
2247
|
-
} : void 0;
|
|
2240
|
+
const pillInputSx = variant === "pill" ? { borderRadius: "999px", paddingRight: "6px" } : void 0;
|
|
2248
2241
|
return /* @__PURE__ */ jsx8(
|
|
2249
2242
|
TextField,
|
|
2250
2243
|
{
|
|
2251
2244
|
placeholder,
|
|
2252
2245
|
onChange: handleChange,
|
|
2253
|
-
sx
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2246
|
+
sx,
|
|
2247
|
+
slotProps: {
|
|
2248
|
+
input: {
|
|
2249
|
+
...pillInputSx ? { sx: pillInputSx } : {},
|
|
2250
|
+
startAdornment: /* @__PURE__ */ jsx8(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx8(SearchIcon, { style: { fontSize: 18, color: theme2.palette.text.disabled } }) }),
|
|
2251
|
+
endAdornment: shortcutHint ? /* @__PURE__ */ jsx8(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx8(ShortcutHint, {}) }) : void 0
|
|
2252
|
+
}
|
|
2257
2253
|
},
|
|
2258
2254
|
...props
|
|
2259
2255
|
}
|
|
@@ -2302,7 +2298,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
2302
2298
|
// src/components/inputs/Switch.tsx
|
|
2303
2299
|
import MuiSwitch from "@mui/material/Switch";
|
|
2304
2300
|
import { styled as styled5 } from "@mui/material/styles";
|
|
2305
|
-
import { jsx as jsx10, jsxs
|
|
2301
|
+
import { jsx as jsx10, jsxs } from "react/jsx-runtime";
|
|
2306
2302
|
var StyledSwitch = styled5(MuiSwitch)(({ theme: theme2 }) => ({
|
|
2307
2303
|
width: 44,
|
|
2308
2304
|
height: 24,
|
|
@@ -2358,7 +2354,7 @@ var Switch = ({
|
|
|
2358
2354
|
if (!label) {
|
|
2359
2355
|
return switchComponent;
|
|
2360
2356
|
}
|
|
2361
|
-
return /* @__PURE__ */
|
|
2357
|
+
return /* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
|
|
2362
2358
|
labelPosition === "left" && /* @__PURE__ */ jsx10("span", { children: label }),
|
|
2363
2359
|
switchComponent,
|
|
2364
2360
|
labelPosition === "right" && /* @__PURE__ */ jsx10("span", { children: label })
|
|
@@ -2463,7 +2459,7 @@ import Typography from "@mui/material/Typography";
|
|
|
2463
2459
|
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
|
|
2464
2460
|
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
|
|
2465
2461
|
import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
2466
|
-
import { jsx as jsx13, jsxs as
|
|
2462
|
+
import { jsx as jsx13, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
2467
2463
|
var DateRangePicker = ({
|
|
2468
2464
|
startDate,
|
|
2469
2465
|
endDate,
|
|
@@ -2474,7 +2470,7 @@ var DateRangePicker = ({
|
|
|
2474
2470
|
disabled = false,
|
|
2475
2471
|
size: size3 = "small"
|
|
2476
2472
|
}) => {
|
|
2477
|
-
return /* @__PURE__ */ jsx13(LocalizationProvider, { dateAdapter: AdapterDateFns, children: /* @__PURE__ */
|
|
2473
|
+
return /* @__PURE__ */ jsx13(LocalizationProvider, { dateAdapter: AdapterDateFns, children: /* @__PURE__ */ jsxs2(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
2478
2474
|
/* @__PURE__ */ jsx13(
|
|
2479
2475
|
DatePicker,
|
|
2480
2476
|
{
|
|
@@ -2515,7 +2511,7 @@ import { useCallback, useRef } from "react";
|
|
|
2515
2511
|
import { forwardRef } from "react";
|
|
2516
2512
|
import { Stack as Stack2, styled as styled8, avatarClasses, Typography as Typography2, Button as Button2 } from "@mui/material";
|
|
2517
2513
|
import { ArrowDropUp, ArrowDropDown } from "@mui/icons-material";
|
|
2518
|
-
import { jsx as jsx14, jsxs as
|
|
2514
|
+
import { jsx as jsx14, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
2519
2515
|
var Clickable = styled8(Button2)({
|
|
2520
2516
|
padding: 0
|
|
2521
2517
|
});
|
|
@@ -2541,7 +2537,7 @@ var Center = styled8(Typography2)(({ theme: theme2 }) => ({
|
|
|
2541
2537
|
color: theme2.palette.text.primary
|
|
2542
2538
|
}));
|
|
2543
2539
|
var DropdownAnchor = forwardRef(
|
|
2544
|
-
({ open, label, leftElement, onOpen, variant, ...props }, ref) => /* @__PURE__ */ jsx14(Clickable, { ref, ...props, color: "inherit", variant: "text", onClick: onOpen, children: /* @__PURE__ */
|
|
2540
|
+
({ 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: [
|
|
2545
2541
|
/* @__PURE__ */ jsx14(Left, { children: leftElement }),
|
|
2546
2542
|
/* @__PURE__ */ jsx14(Center, { variant: "body1", children: label }),
|
|
2547
2543
|
variant !== "header" && (open ? /* @__PURE__ */ jsx14(ArrowDropUp, {}) : /* @__PURE__ */ jsx14(ArrowDropDown, {}))
|
|
@@ -2550,7 +2546,7 @@ var DropdownAnchor = forwardRef(
|
|
|
2550
2546
|
DropdownAnchor.displayName = "DropdownAnchor";
|
|
2551
2547
|
|
|
2552
2548
|
// src/components/navigation/Dropdown/Dropdown.tsx
|
|
2553
|
-
import { Fragment, jsx as jsx15, jsxs as
|
|
2549
|
+
import { Fragment, jsx as jsx15, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2554
2550
|
var Dropdown = ({
|
|
2555
2551
|
open,
|
|
2556
2552
|
label,
|
|
@@ -2568,7 +2564,7 @@ var Dropdown = ({
|
|
|
2568
2564
|
const horizontal = direction === "left" ? "right" : "left";
|
|
2569
2565
|
const onOpen = useCallback(() => onToggle?.(true), [onToggle]);
|
|
2570
2566
|
const padding = dense ? 1 : 2;
|
|
2571
|
-
return /* @__PURE__ */
|
|
2567
|
+
return /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
2572
2568
|
renderAnchor({ ref: anchorRef, onOpen, open }),
|
|
2573
2569
|
/* @__PURE__ */ jsx15(
|
|
2574
2570
|
Popover,
|
|
@@ -2619,7 +2615,7 @@ import {
|
|
|
2619
2615
|
ListItemText,
|
|
2620
2616
|
styled as styled9
|
|
2621
2617
|
} from "@mui/material";
|
|
2622
|
-
import { jsx as jsx16, jsxs as
|
|
2618
|
+
import { jsx as jsx16, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2623
2619
|
var StyledListItemButton = styled9(ListItemButton, {
|
|
2624
2620
|
shouldForwardProp: (prop) => prop !== "selected" && prop !== "size"
|
|
2625
2621
|
})(({ theme: theme2, selected, size: size3 = "medium" }) => {
|
|
@@ -2658,7 +2654,7 @@ var SidebarItem = ({
|
|
|
2658
2654
|
endIcon,
|
|
2659
2655
|
children
|
|
2660
2656
|
}) => {
|
|
2661
|
-
return /* @__PURE__ */
|
|
2657
|
+
return /* @__PURE__ */ jsxs5(StyledListItemButton, { selected, size: size3, onClick, children: [
|
|
2662
2658
|
icon && /* @__PURE__ */ jsx16(ListItemIcon, { children: icon }),
|
|
2663
2659
|
/* @__PURE__ */ jsx16(ListItemText, { primary: label }),
|
|
2664
2660
|
endIcon && /* @__PURE__ */ jsx16("div", { style: { marginLeft: "auto" }, children: endIcon }),
|
|
@@ -2728,7 +2724,7 @@ import AddIcon from "@mui/icons-material/Add";
|
|
|
2728
2724
|
import CheckIcon from "@mui/icons-material/Check";
|
|
2729
2725
|
import SettingsIcon from "@mui/icons-material/Settings";
|
|
2730
2726
|
import PersonAddAltIcon from "@mui/icons-material/PersonAddAlt";
|
|
2731
|
-
import { Fragment as Fragment2, jsx as jsx18, jsxs as
|
|
2727
|
+
import { Fragment as Fragment2, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2732
2728
|
var ServiceSelectorButton = ({
|
|
2733
2729
|
services,
|
|
2734
2730
|
selectedServiceId,
|
|
@@ -2785,7 +2781,7 @@ var ServiceSelectorButton = ({
|
|
|
2785
2781
|
return matchesSearch && matchesArchivedFilter;
|
|
2786
2782
|
});
|
|
2787
2783
|
if (compact) {
|
|
2788
|
-
return /* @__PURE__ */
|
|
2784
|
+
return /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
2789
2785
|
/* @__PURE__ */ jsx18(Box3, { sx: { position: "relative" }, children: /* @__PURE__ */ jsx18(Tooltip, { title: "Select service", placement: "right", children: /* @__PURE__ */ jsx18(
|
|
2790
2786
|
IconButton2,
|
|
2791
2787
|
{
|
|
@@ -2837,10 +2833,10 @@ var ServiceSelectorButton = ({
|
|
|
2837
2833
|
)
|
|
2838
2834
|
] });
|
|
2839
2835
|
}
|
|
2840
|
-
return /* @__PURE__ */
|
|
2841
|
-
/* @__PURE__ */
|
|
2842
|
-
selectedService ? /* @__PURE__ */
|
|
2843
|
-
isManager ? /* @__PURE__ */
|
|
2836
|
+
return /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
2837
|
+
/* @__PURE__ */ jsxs6(Box3, { sx: { display: "flex", alignItems: "center", ...sx }, children: [
|
|
2838
|
+
selectedService ? /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
2839
|
+
isManager ? /* @__PURE__ */ jsxs6(
|
|
2844
2840
|
Link,
|
|
2845
2841
|
{
|
|
2846
2842
|
underline: "hover",
|
|
@@ -2870,7 +2866,7 @@ var ServiceSelectorButton = ({
|
|
|
2870
2866
|
selectedService.name
|
|
2871
2867
|
]
|
|
2872
2868
|
}
|
|
2873
|
-
) : /* @__PURE__ */
|
|
2869
|
+
) : /* @__PURE__ */ jsxs6(
|
|
2874
2870
|
Box3,
|
|
2875
2871
|
{
|
|
2876
2872
|
sx: {
|
|
@@ -3008,7 +3004,7 @@ var ServiceSelectorPanel = ({
|
|
|
3008
3004
|
}
|
|
3009
3005
|
}
|
|
3010
3006
|
};
|
|
3011
|
-
return /* @__PURE__ */
|
|
3007
|
+
return /* @__PURE__ */ jsxs6(
|
|
3012
3008
|
Menu,
|
|
3013
3009
|
{
|
|
3014
3010
|
anchorEl,
|
|
@@ -3033,7 +3029,7 @@ var ServiceSelectorPanel = ({
|
|
|
3033
3029
|
}
|
|
3034
3030
|
},
|
|
3035
3031
|
children: [
|
|
3036
|
-
selectedService && /* @__PURE__ */
|
|
3032
|
+
selectedService && /* @__PURE__ */ jsxs6(
|
|
3037
3033
|
Box3,
|
|
3038
3034
|
{
|
|
3039
3035
|
sx: {
|
|
@@ -3045,7 +3041,7 @@ var ServiceSelectorPanel = ({
|
|
|
3045
3041
|
borderColor: "divider"
|
|
3046
3042
|
},
|
|
3047
3043
|
children: [
|
|
3048
|
-
/* @__PURE__ */
|
|
3044
|
+
/* @__PURE__ */ jsxs6(Box3, { sx: {
|
|
3049
3045
|
display: "flex",
|
|
3050
3046
|
alignItems: "center",
|
|
3051
3047
|
mb: 1.5
|
|
@@ -3063,7 +3059,7 @@ var ServiceSelectorPanel = ({
|
|
|
3063
3059
|
children: selectedService.name.charAt(0)
|
|
3064
3060
|
}
|
|
3065
3061
|
),
|
|
3066
|
-
/* @__PURE__ */ jsx18(Box3, { sx: { flex: 1 }, children: /* @__PURE__ */
|
|
3062
|
+
/* @__PURE__ */ jsx18(Box3, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxs6(Box3, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
3067
3063
|
/* @__PURE__ */ jsx18(Typography3, { variant: "subtitle1", sx: { fontWeight: 600, fontSize: "1rem" }, children: selectedService.name }),
|
|
3068
3064
|
/* @__PURE__ */ jsx18(
|
|
3069
3065
|
Box3,
|
|
@@ -3084,7 +3080,7 @@ var ServiceSelectorPanel = ({
|
|
|
3084
3080
|
)
|
|
3085
3081
|
] }) })
|
|
3086
3082
|
] }),
|
|
3087
|
-
(onOpenSettings || onOpenAddMember) && /* @__PURE__ */
|
|
3083
|
+
(onOpenSettings || onOpenAddMember) && /* @__PURE__ */ jsxs6(Box3, { sx: { display: "flex", gap: 1 }, children: [
|
|
3088
3084
|
onOpenAddMember && /* @__PURE__ */ jsx18(
|
|
3089
3085
|
Button3,
|
|
3090
3086
|
{
|
|
@@ -3155,8 +3151,8 @@ var ServiceSelectorPanel = ({
|
|
|
3155
3151
|
]
|
|
3156
3152
|
}
|
|
3157
3153
|
),
|
|
3158
|
-
/* @__PURE__ */
|
|
3159
|
-
/* @__PURE__ */
|
|
3154
|
+
/* @__PURE__ */ jsxs6(Box3, { sx: { px: 2, pt: 2, pb: 1.5 }, children: [
|
|
3155
|
+
/* @__PURE__ */ jsxs6(Box3, { sx: { display: "flex", alignItems: "center", mb: 1.5 }, children: [
|
|
3160
3156
|
/* @__PURE__ */ jsx18(
|
|
3161
3157
|
TextField2,
|
|
3162
3158
|
{
|
|
@@ -3195,8 +3191,8 @@ var ServiceSelectorPanel = ({
|
|
|
3195
3191
|
overflow: "auto",
|
|
3196
3192
|
py: 1
|
|
3197
3193
|
},
|
|
3198
|
-
children: loading ? /* @__PURE__ */ jsx18(Box3, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx18(Typography3, { variant: "body2", color: "text.secondary", children: "Loading services..." }) }) : filteredServices.length === 0 ? /* @__PURE__ */ jsx18(Box3, { 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__ */
|
|
3199
|
-
/* @__PURE__ */
|
|
3194
|
+
children: loading ? /* @__PURE__ */ jsx18(Box3, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx18(Typography3, { variant: "body2", color: "text.secondary", children: "Loading services..." }) }) : filteredServices.length === 0 ? /* @__PURE__ */ jsx18(Box3, { 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: [
|
|
3195
|
+
/* @__PURE__ */ jsxs6(
|
|
3200
3196
|
Typography3,
|
|
3201
3197
|
{
|
|
3202
3198
|
variant: "caption",
|
|
@@ -3231,7 +3227,7 @@ var ServiceSelectorPanel = ({
|
|
|
3231
3227
|
]
|
|
3232
3228
|
}
|
|
3233
3229
|
),
|
|
3234
|
-
/* @__PURE__ */ jsx18(List2, { disablePadding: true, children: filteredServices.map((service) => /* @__PURE__ */
|
|
3230
|
+
/* @__PURE__ */ jsx18(List2, { disablePadding: true, children: filteredServices.map((service) => /* @__PURE__ */ jsxs6(
|
|
3235
3231
|
ListItem,
|
|
3236
3232
|
{
|
|
3237
3233
|
sx: {
|
|
@@ -3353,7 +3349,7 @@ import KeyboardArrowDownIcon2 from "@mui/icons-material/KeyboardArrowDown";
|
|
|
3353
3349
|
import SearchIcon3 from "@mui/icons-material/Search";
|
|
3354
3350
|
import AddIcon2 from "@mui/icons-material/Add";
|
|
3355
3351
|
import CheckIcon2 from "@mui/icons-material/Check";
|
|
3356
|
-
import { Fragment as Fragment3, jsx as jsx19, jsxs as
|
|
3352
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
3357
3353
|
var WorkspaceSelectorButton = ({
|
|
3358
3354
|
workspaces,
|
|
3359
3355
|
selectedWorkspaceId,
|
|
@@ -3385,9 +3381,9 @@ var WorkspaceSelectorButton = ({
|
|
|
3385
3381
|
if (!workspaces || workspaces.length === 0) {
|
|
3386
3382
|
return null;
|
|
3387
3383
|
}
|
|
3388
|
-
return /* @__PURE__ */
|
|
3389
|
-
/* @__PURE__ */
|
|
3390
|
-
selectedWorkspace ? /* @__PURE__ */ jsx19(Fragment3, { children: /* @__PURE__ */
|
|
3384
|
+
return /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
3385
|
+
/* @__PURE__ */ jsxs7(Box4, { sx: { display: "flex", alignItems: "center", ...sx }, children: [
|
|
3386
|
+
selectedWorkspace ? /* @__PURE__ */ jsx19(Fragment3, { children: /* @__PURE__ */ jsxs7(
|
|
3391
3387
|
Link2,
|
|
3392
3388
|
{
|
|
3393
3389
|
underline: "hover",
|
|
@@ -3509,7 +3505,7 @@ var WorkspaceSelectorPanel = ({
|
|
|
3509
3505
|
borderRadius: 2
|
|
3510
3506
|
}
|
|
3511
3507
|
},
|
|
3512
|
-
children: /* @__PURE__ */
|
|
3508
|
+
children: /* @__PURE__ */ jsxs7(Box4, { children: [
|
|
3513
3509
|
/* @__PURE__ */ jsx19(Box4, { sx: { px: 2, pt: 2, pb: 1.5 }, children: /* @__PURE__ */ jsx19(
|
|
3514
3510
|
TextField3,
|
|
3515
3511
|
{
|
|
@@ -3523,7 +3519,7 @@ var WorkspaceSelectorPanel = ({
|
|
|
3523
3519
|
}
|
|
3524
3520
|
}
|
|
3525
3521
|
) }),
|
|
3526
|
-
/* @__PURE__ */ jsx19(Box4, { sx: { maxHeight: 400, overflowY: "auto" }, children: loading ? /* @__PURE__ */ jsx19(Box4, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx19(Typography4, { variant: "body2", color: "text.secondary", children: "Loading..." }) }) : filteredWorkspaces.length === 0 ? /* @__PURE__ */ jsx19(Box4, { 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__ */
|
|
3522
|
+
/* @__PURE__ */ jsx19(Box4, { sx: { maxHeight: 400, overflowY: "auto" }, children: loading ? /* @__PURE__ */ jsx19(Box4, { sx: { p: 2, textAlign: "center" }, children: /* @__PURE__ */ jsx19(Typography4, { variant: "body2", color: "text.secondary", children: "Loading..." }) }) : filteredWorkspaces.length === 0 ? /* @__PURE__ */ jsx19(Box4, { 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(
|
|
3527
3523
|
ListItem2,
|
|
3528
3524
|
{
|
|
3529
3525
|
onClick: () => handleSelect(workspace.id),
|
|
@@ -3546,7 +3542,7 @@ var WorkspaceSelectorPanel = ({
|
|
|
3546
3542
|
/* @__PURE__ */ jsx19(
|
|
3547
3543
|
ListItemText3,
|
|
3548
3544
|
{
|
|
3549
|
-
primary: /* @__PURE__ */
|
|
3545
|
+
primary: /* @__PURE__ */ jsxs7(Box4, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
3550
3546
|
/* @__PURE__ */ jsx19(Typography4, { variant: "body2", fontWeight: 500, children: workspace.name }),
|
|
3551
3547
|
workspace.id === selectedWorkspaceId && /* @__PURE__ */ jsx19(CheckIcon2, { fontSize: "small", color: "primary" })
|
|
3552
3548
|
] }),
|
|
@@ -3787,7 +3783,7 @@ import { Box as Box6, Typography as Typography5, IconButton as IconButton4, Tool
|
|
|
3787
3783
|
import { styled as styled12 } from "@mui/material/styles";
|
|
3788
3784
|
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
3789
3785
|
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
3790
|
-
import { Fragment as Fragment4, jsx as jsx22, jsxs as
|
|
3786
|
+
import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
3791
3787
|
var HeaderContainer = styled12(Box6, {
|
|
3792
3788
|
shouldForwardProp: (prop) => prop !== "isCollapsed"
|
|
3793
3789
|
})(({ theme: theme2, isCollapsed }) => ({
|
|
@@ -3828,7 +3824,7 @@ var SideNavHeader = React5.memo(({
|
|
|
3828
3824
|
collapsed = false
|
|
3829
3825
|
}) => {
|
|
3830
3826
|
const headerAriaLabel = ariaLabel || `${title} navigation header`;
|
|
3831
|
-
const brandingContent = /* @__PURE__ */
|
|
3827
|
+
const brandingContent = /* @__PURE__ */ jsxs8(Fragment4, { children: [
|
|
3832
3828
|
logo && /* @__PURE__ */ jsx22(
|
|
3833
3829
|
Box6,
|
|
3834
3830
|
{
|
|
@@ -3856,7 +3852,7 @@ var SideNavHeader = React5.memo(({
|
|
|
3856
3852
|
}
|
|
3857
3853
|
)
|
|
3858
3854
|
] });
|
|
3859
|
-
return /* @__PURE__ */
|
|
3855
|
+
return /* @__PURE__ */ jsxs8(
|
|
3860
3856
|
HeaderContainer,
|
|
3861
3857
|
{
|
|
3862
3858
|
"data-testid": "sidenav-header-content",
|
|
@@ -3930,7 +3926,7 @@ import {
|
|
|
3930
3926
|
Tooltip as Tooltip3
|
|
3931
3927
|
} from "@mui/material";
|
|
3932
3928
|
import { styled as styled13 } from "@mui/material/styles";
|
|
3933
|
-
import { jsx as jsx23, jsxs as
|
|
3929
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3934
3930
|
var StyledListItemButton2 = styled13(ListItemButton2, {
|
|
3935
3931
|
shouldForwardProp: (prop) => !["selected", "size", "iconPosition", "isCollapsed"].includes(prop)
|
|
3936
3932
|
})(({ theme: theme2, selected, size: size3, isCollapsed }) => {
|
|
@@ -4047,7 +4043,7 @@ var NavigationItem = React6.memo(({
|
|
|
4047
4043
|
}
|
|
4048
4044
|
}
|
|
4049
4045
|
);
|
|
4050
|
-
const buttonContent = /* @__PURE__ */
|
|
4046
|
+
const buttonContent = /* @__PURE__ */ jsxs9(
|
|
4051
4047
|
StyledListItemButton2,
|
|
4052
4048
|
{
|
|
4053
4049
|
selected,
|
|
@@ -4173,7 +4169,7 @@ import React8 from "react";
|
|
|
4173
4169
|
import { Box as Box8, Typography as Typography6, Tooltip as Tooltip4 } from "@mui/material";
|
|
4174
4170
|
import { styled as styled14 } from "@mui/material/styles";
|
|
4175
4171
|
import PowerIcon from "@mui/icons-material/Power";
|
|
4176
|
-
import { jsx as jsx25, jsxs as
|
|
4172
|
+
import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4177
4173
|
var StatusPill = styled14(Box8, {
|
|
4178
4174
|
shouldForwardProp: (prop) => !["variant", "interactive"].includes(prop)
|
|
4179
4175
|
})(({ theme: theme2, variant = "info", interactive }) => {
|
|
@@ -4248,7 +4244,7 @@ var ConnectionStatus = React8.memo(({
|
|
|
4248
4244
|
onClick();
|
|
4249
4245
|
}
|
|
4250
4246
|
};
|
|
4251
|
-
const statusContent = /* @__PURE__ */
|
|
4247
|
+
const statusContent = /* @__PURE__ */ jsxs10(
|
|
4252
4248
|
StatusPill,
|
|
4253
4249
|
{
|
|
4254
4250
|
role: "status",
|
|
@@ -4307,7 +4303,7 @@ import React9 from "react";
|
|
|
4307
4303
|
import { Box as Box9, Avatar as Avatar3, Typography as Typography7, Button as Button5, IconButton as IconButton5, Tooltip as Tooltip5 } from "@mui/material";
|
|
4308
4304
|
import { styled as styled15 } from "@mui/material/styles";
|
|
4309
4305
|
import LogoutIcon from "@mui/icons-material/Logout";
|
|
4310
|
-
import { jsx as jsx26, jsxs as
|
|
4306
|
+
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
4311
4307
|
var AccountContainer = styled15(Box9, {
|
|
4312
4308
|
shouldForwardProp: (prop) => !["layout", "isCompact"].includes(prop)
|
|
4313
4309
|
})(({ theme: theme2, layout = "horizontal", isCompact }) => ({
|
|
@@ -4349,7 +4345,7 @@ var AccountSection = React9.memo(({
|
|
|
4349
4345
|
const initials = user.initials || deriveInitials(user.name);
|
|
4350
4346
|
const avatarSrc = user.avatarUrl;
|
|
4351
4347
|
if (compact) {
|
|
4352
|
-
return /* @__PURE__ */
|
|
4348
|
+
return /* @__PURE__ */ jsxs11(AccountContainer, { layout, isCompact: true, "aria-label": "Account section", children: [
|
|
4353
4349
|
/* @__PURE__ */ jsx26(
|
|
4354
4350
|
Tooltip5,
|
|
4355
4351
|
{
|
|
@@ -4393,7 +4389,7 @@ var AccountSection = React9.memo(({
|
|
|
4393
4389
|
) })
|
|
4394
4390
|
] });
|
|
4395
4391
|
}
|
|
4396
|
-
return /* @__PURE__ */
|
|
4392
|
+
return /* @__PURE__ */ jsxs11(AccountContainer, { layout, isCompact: false, "aria-label": "Account section", children: [
|
|
4397
4393
|
/* @__PURE__ */ jsx26(
|
|
4398
4394
|
Avatar3,
|
|
4399
4395
|
{
|
|
@@ -4410,7 +4406,7 @@ var AccountSection = React9.memo(({
|
|
|
4410
4406
|
children: initials
|
|
4411
4407
|
}
|
|
4412
4408
|
),
|
|
4413
|
-
/* @__PURE__ */
|
|
4409
|
+
/* @__PURE__ */ jsxs11(
|
|
4414
4410
|
Box9,
|
|
4415
4411
|
{
|
|
4416
4412
|
sx: {
|
|
@@ -4554,7 +4550,7 @@ import {
|
|
|
4554
4550
|
Divider
|
|
4555
4551
|
} from "@mui/material";
|
|
4556
4552
|
import { styled as styled18 } from "@mui/material/styles";
|
|
4557
|
-
import { Fragment as Fragment5, jsx as jsx29, jsxs as
|
|
4553
|
+
import { Fragment as Fragment5, jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4558
4554
|
var StyledMenu = styled18(MuiMenu)(({ theme: theme2 }) => ({
|
|
4559
4555
|
"& .MuiPaper-root": {
|
|
4560
4556
|
borderRadius: 8,
|
|
@@ -4595,8 +4591,8 @@ var MenuItem = ({
|
|
|
4595
4591
|
disabled = false,
|
|
4596
4592
|
divider = false
|
|
4597
4593
|
}) => {
|
|
4598
|
-
return /* @__PURE__ */
|
|
4599
|
-
/* @__PURE__ */
|
|
4594
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
4595
|
+
/* @__PURE__ */ jsxs12(MuiMenuItem, { onClick, disabled, children: [
|
|
4600
4596
|
icon && /* @__PURE__ */ jsx29(ListItemIcon3, { children: icon }),
|
|
4601
4597
|
/* @__PURE__ */ jsx29(ListItemText5, { children: label })
|
|
4602
4598
|
] }),
|
|
@@ -4660,7 +4656,7 @@ var Link3 = ({ underline = "hover", ...props }) => {
|
|
|
4660
4656
|
};
|
|
4661
4657
|
|
|
4662
4658
|
// src/components/navigation/Selector.tsx
|
|
4663
|
-
import { Fragment as Fragment6, jsx as jsx32, jsxs as
|
|
4659
|
+
import { Fragment as Fragment6, jsx as jsx32, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4664
4660
|
var Selector = ({
|
|
4665
4661
|
options: options2,
|
|
4666
4662
|
selectedId,
|
|
@@ -4693,12 +4689,12 @@ var Selector = ({
|
|
|
4693
4689
|
onSelect(id);
|
|
4694
4690
|
handleClose();
|
|
4695
4691
|
};
|
|
4696
|
-
const defaultRenderSelected = (option) => /* @__PURE__ */
|
|
4692
|
+
const defaultRenderSelected = (option) => /* @__PURE__ */ jsxs13(Box10, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
4697
4693
|
option.avatar ? /* @__PURE__ */ jsx32(Avatar4, { src: option.avatar, sx: { width: 20, height: 20 } }) : option.icon ? option.icon : /* @__PURE__ */ jsx32(Avatar4, { sx: { width: 20, height: 20, bgcolor: theme2.palette.primary.main, fontSize: "0.7rem" }, children: option.name.charAt(0) }),
|
|
4698
4694
|
/* @__PURE__ */ jsx32(Typography8, { variant: "body2", children: option.name })
|
|
4699
4695
|
] });
|
|
4700
4696
|
if (compact) {
|
|
4701
|
-
return /* @__PURE__ */
|
|
4697
|
+
return /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4702
4698
|
/* @__PURE__ */ jsx32(IconButton, { onClick: handleOpen, size: "small", children: selectedOption ? selectedOption.avatar ? /* @__PURE__ */ jsx32(Avatar4, { src: selectedOption.avatar, sx: { width: 32, height: 32 } }) : /* @__PURE__ */ jsx32(Avatar4, { sx: { width: 32, height: 32, bgcolor: theme2.palette.primary.main }, children: selectedOption.name.charAt(0) }) : /* @__PURE__ */ jsx32(Avatar4, { sx: { width: 32, height: 32, bgcolor: theme2.palette.grey[400] }, children: "?" }) }),
|
|
4703
4699
|
/* @__PURE__ */ jsx32(
|
|
4704
4700
|
Menu4,
|
|
@@ -4709,7 +4705,7 @@ var Selector = ({
|
|
|
4709
4705
|
PaperProps: {
|
|
4710
4706
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4711
4707
|
},
|
|
4712
|
-
children: loading ? /* @__PURE__ */ jsx32(Box10, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx32(CircularProgress, { size: 24 }) }) : /* @__PURE__ */
|
|
4708
|
+
children: loading ? /* @__PURE__ */ jsx32(Box10, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx32(CircularProgress, { size: 24 }) }) : /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4713
4709
|
options2.length > 5 && /* @__PURE__ */ jsx32(Box10, { sx: { p: 1, borderBottom: `1px solid ${theme2.palette.grey[200]}` }, children: /* @__PURE__ */ jsx32(
|
|
4714
4710
|
TextField,
|
|
4715
4711
|
{
|
|
@@ -4723,8 +4719,8 @@ var Selector = ({
|
|
|
4723
4719
|
}
|
|
4724
4720
|
}
|
|
4725
4721
|
) }),
|
|
4726
|
-
/* @__PURE__ */
|
|
4727
|
-
filteredOptions.map((option) => /* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ jsxs13(List5, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4723
|
+
filteredOptions.map((option) => /* @__PURE__ */ jsxs13(
|
|
4728
4724
|
ListItemButton3,
|
|
4729
4725
|
{
|
|
4730
4726
|
selected: option.id === selectedId,
|
|
@@ -4756,8 +4752,8 @@ var Selector = ({
|
|
|
4756
4752
|
)
|
|
4757
4753
|
] });
|
|
4758
4754
|
}
|
|
4759
|
-
return /* @__PURE__ */
|
|
4760
|
-
/* @__PURE__ */
|
|
4755
|
+
return /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4756
|
+
/* @__PURE__ */ jsxs13(Box10, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
4761
4757
|
selectedOption ? renderSelected ? /* @__PURE__ */ jsx32(Link3, { onClick: handleOpen, underline: "hover", children: renderSelected(selectedOption) }) : /* @__PURE__ */ jsx32(Link3, { onClick: handleOpen, underline: "hover", children: defaultRenderSelected(selectedOption) }) : /* @__PURE__ */ jsx32(Typography8, { variant: "body2", color: "text.secondary", children: placeholder }),
|
|
4762
4758
|
/* @__PURE__ */ jsx32(IconButton, { onClick: handleOpen, size: "small", sx: { p: 0.2, ml: 0.5 }, children: /* @__PURE__ */ jsx32(KeyboardArrowDownIcon3, { fontSize: "small" }) })
|
|
4763
4759
|
] }),
|
|
@@ -4770,7 +4766,7 @@ var Selector = ({
|
|
|
4770
4766
|
PaperProps: {
|
|
4771
4767
|
sx: { width, maxHeight: 600, mt: 1 }
|
|
4772
4768
|
},
|
|
4773
|
-
children: loading ? /* @__PURE__ */ jsx32(Box10, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx32(CircularProgress, { size: 24 }) }) : /* @__PURE__ */
|
|
4769
|
+
children: loading ? /* @__PURE__ */ jsx32(Box10, { sx: { display: "flex", justifyContent: "center", p: 2 }, children: /* @__PURE__ */ jsx32(CircularProgress, { size: 24 }) }) : /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
4774
4770
|
options2.length > 5 && /* @__PURE__ */ jsx32(Box10, { sx: { p: 1, borderBottom: `1px solid ${theme2.palette.grey[200]}` }, children: /* @__PURE__ */ jsx32(
|
|
4775
4771
|
TextField,
|
|
4776
4772
|
{
|
|
@@ -4784,8 +4780,8 @@ var Selector = ({
|
|
|
4784
4780
|
}
|
|
4785
4781
|
}
|
|
4786
4782
|
) }),
|
|
4787
|
-
/* @__PURE__ */
|
|
4788
|
-
filteredOptions.map((option) => /* @__PURE__ */
|
|
4783
|
+
/* @__PURE__ */ jsxs13(List5, { sx: { maxHeight: 400, overflow: "auto" }, children: [
|
|
4784
|
+
filteredOptions.map((option) => /* @__PURE__ */ jsxs13(
|
|
4789
4785
|
ListItemButton3,
|
|
4790
4786
|
{
|
|
4791
4787
|
selected: option.id === selectedId,
|
|
@@ -4934,7 +4930,7 @@ import Box11 from "@mui/material/Box";
|
|
|
4934
4930
|
import Tooltip6 from "@mui/material/Tooltip";
|
|
4935
4931
|
import CheckIcon3 from "@mui/icons-material/Check";
|
|
4936
4932
|
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
|
4937
|
-
import { jsx as jsx35, jsxs as
|
|
4933
|
+
import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4938
4934
|
var COPY_FEEDBACK_MS = 1200;
|
|
4939
4935
|
var CopyChip = ({
|
|
4940
4936
|
text,
|
|
@@ -4962,7 +4958,7 @@ var CopyChip = ({
|
|
|
4962
4958
|
if (timerRef.current != null) clearTimeout(timerRef.current);
|
|
4963
4959
|
timerRef.current = setTimeout(() => setCopied(false), COPY_FEEDBACK_MS);
|
|
4964
4960
|
};
|
|
4965
|
-
return /* @__PURE__ */ jsx35(Tooltip6, { title: copied ? tooltipCopiedLabel : tooltipLabel, placement: "top", children: /* @__PURE__ */
|
|
4961
|
+
return /* @__PURE__ */ jsx35(Tooltip6, { title: copied ? tooltipCopiedLabel : tooltipLabel, placement: "top", children: /* @__PURE__ */ jsxs14(
|
|
4966
4962
|
Box11,
|
|
4967
4963
|
{
|
|
4968
4964
|
component: "button",
|
|
@@ -5056,7 +5052,7 @@ import Snackbar from "@mui/material/Snackbar";
|
|
|
5056
5052
|
import Alert from "@mui/material/Alert";
|
|
5057
5053
|
import ContentCopyIcon2 from "@mui/icons-material/ContentCopy";
|
|
5058
5054
|
import { styled as styled24 } from "@mui/material/styles";
|
|
5059
|
-
import { Fragment as Fragment7, jsx as jsx37, jsxs as
|
|
5055
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
5060
5056
|
var IDContainer = styled24(Box12)(() => ({
|
|
5061
5057
|
display: "inline-flex",
|
|
5062
5058
|
alignItems: "center",
|
|
@@ -5092,9 +5088,9 @@ var IDBlock = ({
|
|
|
5092
5088
|
const handleSnackbarClose = () => {
|
|
5093
5089
|
setSnackbar((prev) => ({ ...prev, open: false }));
|
|
5094
5090
|
};
|
|
5095
|
-
return /* @__PURE__ */
|
|
5096
|
-
/* @__PURE__ */
|
|
5097
|
-
/* @__PURE__ */
|
|
5091
|
+
return /* @__PURE__ */ jsxs15(Fragment7, { children: [
|
|
5092
|
+
/* @__PURE__ */ jsxs15(IDContainer, { children: [
|
|
5093
|
+
/* @__PURE__ */ jsxs15(
|
|
5098
5094
|
Typography9,
|
|
5099
5095
|
{
|
|
5100
5096
|
variant: "body2",
|
|
@@ -5222,7 +5218,7 @@ import MuiAlert from "@mui/material/Alert";
|
|
|
5222
5218
|
import { AlertTitle as MuiAlertTitle } from "@mui/material";
|
|
5223
5219
|
import MuiSnackbar from "@mui/material/Snackbar";
|
|
5224
5220
|
import { styled as styled27 } from "@mui/material/styles";
|
|
5225
|
-
import { jsx as jsx40, jsxs as
|
|
5221
|
+
import { jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
5226
5222
|
var StyledAlert = styled27(MuiAlert)({
|
|
5227
5223
|
borderRadius: 8,
|
|
5228
5224
|
"&.MuiAlert-filled": {
|
|
@@ -5235,7 +5231,7 @@ var Alert2 = ({
|
|
|
5235
5231
|
children,
|
|
5236
5232
|
...props
|
|
5237
5233
|
}) => {
|
|
5238
|
-
return /* @__PURE__ */
|
|
5234
|
+
return /* @__PURE__ */ jsxs16(StyledAlert, { severity, ...props, children: [
|
|
5239
5235
|
title && /* @__PURE__ */ jsx40(MuiAlertTitle, { children: title }),
|
|
5240
5236
|
children
|
|
5241
5237
|
] });
|
|
@@ -5305,14 +5301,14 @@ var Snackbar2 = ({
|
|
|
5305
5301
|
|
|
5306
5302
|
// src/components/feedback/EmptyState.tsx
|
|
5307
5303
|
import { Box as Box13, Typography as Typography10 } from "@mui/material";
|
|
5308
|
-
import { jsx as jsx41, jsxs as
|
|
5304
|
+
import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5309
5305
|
var EmptyState = ({
|
|
5310
5306
|
title = "No items found",
|
|
5311
5307
|
description,
|
|
5312
5308
|
icon,
|
|
5313
5309
|
action
|
|
5314
5310
|
}) => {
|
|
5315
|
-
return /* @__PURE__ */
|
|
5311
|
+
return /* @__PURE__ */ jsxs17(
|
|
5316
5312
|
Box13,
|
|
5317
5313
|
{
|
|
5318
5314
|
sx: {
|
|
@@ -5346,13 +5342,13 @@ var EmptyState = ({
|
|
|
5346
5342
|
|
|
5347
5343
|
// src/components/feedback/Loading.tsx
|
|
5348
5344
|
import { Box as Box14, CircularProgress as CircularProgress3, Typography as Typography11 } from "@mui/material";
|
|
5349
|
-
import { jsx as jsx42, jsxs as
|
|
5345
|
+
import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5350
5346
|
var Loading = ({
|
|
5351
5347
|
message = "Loading...",
|
|
5352
5348
|
size: size3 = 40,
|
|
5353
5349
|
fullScreen = false
|
|
5354
5350
|
}) => {
|
|
5355
|
-
const content = /* @__PURE__ */
|
|
5351
|
+
const content = /* @__PURE__ */ jsxs18(
|
|
5356
5352
|
Box14,
|
|
5357
5353
|
{
|
|
5358
5354
|
sx: {
|
|
@@ -5385,13 +5381,13 @@ var Loading = ({
|
|
|
5385
5381
|
|
|
5386
5382
|
// src/components/feedback/AppLoading.tsx
|
|
5387
5383
|
import { Box as Box15, CircularProgress as CircularProgress4, Typography as Typography12 } from "@mui/material";
|
|
5388
|
-
import { jsx as jsx43, jsxs as
|
|
5384
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5389
5385
|
var AppLoading = ({
|
|
5390
5386
|
message = "Loading...",
|
|
5391
5387
|
logo = "/icons/logo.png",
|
|
5392
5388
|
sx = {}
|
|
5393
5389
|
}) => {
|
|
5394
|
-
return /* @__PURE__ */
|
|
5390
|
+
return /* @__PURE__ */ jsxs19(
|
|
5395
5391
|
Box15,
|
|
5396
5392
|
{
|
|
5397
5393
|
sx: [
|
|
@@ -5450,8 +5446,8 @@ import { Stack as Stack3, styled as styled28, svgIconClasses } from "@mui/materi
|
|
|
5450
5446
|
// src/components/icons/CereIcon.tsx
|
|
5451
5447
|
import { memo } from "react";
|
|
5452
5448
|
import { SvgIcon } from "@mui/material";
|
|
5453
|
-
import { jsx as jsx45, jsxs as
|
|
5454
|
-
var CereIcon = memo((props) => /* @__PURE__ */
|
|
5449
|
+
import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5450
|
+
var CereIcon = memo((props) => /* @__PURE__ */ jsxs20(SvgIcon, { ...props, viewBox: "0 0 24 28", children: [
|
|
5455
5451
|
/* @__PURE__ */ jsx45("g", { clipPath: "url(#a)", children: /* @__PURE__ */ jsx45(
|
|
5456
5452
|
"path",
|
|
5457
5453
|
{
|
|
@@ -5463,7 +5459,7 @@ var CereIcon = memo((props) => /* @__PURE__ */ jsxs21(SvgIcon, { ...props, viewB
|
|
|
5463
5459
|
] }));
|
|
5464
5460
|
|
|
5465
5461
|
// src/components/layout/Logo.tsx
|
|
5466
|
-
import { jsx as jsx46, jsxs as
|
|
5462
|
+
import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5467
5463
|
var sizesMap = {
|
|
5468
5464
|
large: 38,
|
|
5469
5465
|
medium: 32,
|
|
@@ -5474,7 +5470,7 @@ var Container = styled28(Stack3)({
|
|
|
5474
5470
|
fontSize: "inherit"
|
|
5475
5471
|
}
|
|
5476
5472
|
});
|
|
5477
|
-
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */ jsx46(CereIcon, { color: "primary" }) }) => /* @__PURE__ */
|
|
5473
|
+
var Logo = ({ children, size: size3 = "medium", icon = /* @__PURE__ */ jsx46(CereIcon, { color: "primary" }) }) => /* @__PURE__ */ jsxs21(Container, { direction: "row", alignItems: "center", spacing: 2, fontSize: sizesMap[size3], children: [
|
|
5478
5474
|
icon,
|
|
5479
5475
|
children && /* @__PURE__ */ jsx46(Stack3, { children })
|
|
5480
5476
|
] });
|
|
@@ -5493,7 +5489,7 @@ import {
|
|
|
5493
5489
|
CircularProgress as CircularProgress6
|
|
5494
5490
|
} from "@mui/material";
|
|
5495
5491
|
import CloseIcon from "@mui/icons-material/Close";
|
|
5496
|
-
import { Fragment as Fragment8, jsx as jsx47, jsxs as
|
|
5492
|
+
import { Fragment as Fragment8, jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5497
5493
|
var Dialog = ({
|
|
5498
5494
|
open,
|
|
5499
5495
|
title,
|
|
@@ -5517,7 +5513,7 @@ var Dialog = ({
|
|
|
5517
5513
|
if (e) e.stopPropagation();
|
|
5518
5514
|
onClose();
|
|
5519
5515
|
};
|
|
5520
|
-
return /* @__PURE__ */
|
|
5516
|
+
return /* @__PURE__ */ jsxs22(
|
|
5521
5517
|
MuiDialog,
|
|
5522
5518
|
{
|
|
5523
5519
|
open,
|
|
@@ -5534,9 +5530,9 @@ var Dialog = ({
|
|
|
5534
5530
|
...dialogProps.PaperProps
|
|
5535
5531
|
},
|
|
5536
5532
|
children: [
|
|
5537
|
-
/* @__PURE__ */
|
|
5533
|
+
/* @__PURE__ */ jsxs22(DialogTitle, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", p: 2 }, children: [
|
|
5538
5534
|
/* @__PURE__ */ jsx47(Box16, { sx: { display: "flex", alignItems: "center" }, children: typeof title === "string" ? /* @__PURE__ */ jsx47(Typography13, { variant: "h6", children: title }) : title }),
|
|
5539
|
-
/* @__PURE__ */
|
|
5535
|
+
/* @__PURE__ */ jsxs22(Box16, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
5540
5536
|
headerAction,
|
|
5541
5537
|
/* @__PURE__ */ jsx47(
|
|
5542
5538
|
IconButton7,
|
|
@@ -5552,9 +5548,9 @@ var Dialog = ({
|
|
|
5552
5548
|
] }),
|
|
5553
5549
|
dividers && /* @__PURE__ */ jsx47(Divider2, {}),
|
|
5554
5550
|
/* @__PURE__ */ jsx47(DialogContent, { dividers, children }),
|
|
5555
|
-
(showActions || customActions) && /* @__PURE__ */
|
|
5551
|
+
(showActions || customActions) && /* @__PURE__ */ jsxs22(Fragment8, { children: [
|
|
5556
5552
|
dividers && /* @__PURE__ */ jsx47(Divider2, {}),
|
|
5557
|
-
/* @__PURE__ */ jsx47(DialogActions, { children: customActions || /* @__PURE__ */
|
|
5553
|
+
/* @__PURE__ */ jsx47(DialogActions, { children: customActions || /* @__PURE__ */ jsxs22(Fragment8, { children: [
|
|
5558
5554
|
/* @__PURE__ */ jsx47(
|
|
5559
5555
|
Button6,
|
|
5560
5556
|
{
|
|
@@ -5607,7 +5603,7 @@ function resolveDrawerWidth(width, theme2, defaultWidth) {
|
|
|
5607
5603
|
}
|
|
5608
5604
|
|
|
5609
5605
|
// src/components/layout/Drawer.tsx
|
|
5610
|
-
import { Fragment as Fragment9, jsx as jsx48, jsxs as
|
|
5606
|
+
import { Fragment as Fragment9, jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5611
5607
|
var StyledDrawer2 = styled29(MuiDrawer, {
|
|
5612
5608
|
shouldForwardProp: (prop) => prop !== "width" && prop !== "miniWidth" && prop !== "collapsed" && prop !== "topOffset"
|
|
5613
5609
|
})(({ theme: theme2, width, miniWidth = 72, collapsed, topOffset = 0 }) => {
|
|
@@ -5657,7 +5653,7 @@ var Drawer2 = ({
|
|
|
5657
5653
|
const finalWidth = width ?? defaultWidth;
|
|
5658
5654
|
const shouldShowClose = showCloseButton ?? (variant === "temporary" || variant === "persistent");
|
|
5659
5655
|
const hasHeader = title || header || shouldShowClose || tabs;
|
|
5660
|
-
return /* @__PURE__ */
|
|
5656
|
+
return /* @__PURE__ */ jsxs23(
|
|
5661
5657
|
StyledDrawer2,
|
|
5662
5658
|
{
|
|
5663
5659
|
width: finalWidth,
|
|
@@ -5682,7 +5678,7 @@ var Drawer2 = ({
|
|
|
5682
5678
|
},
|
|
5683
5679
|
...props,
|
|
5684
5680
|
children: [
|
|
5685
|
-
hasHeader && /* @__PURE__ */
|
|
5681
|
+
hasHeader && /* @__PURE__ */ jsxs23(Fragment9, { children: [
|
|
5686
5682
|
/* @__PURE__ */ jsx48(
|
|
5687
5683
|
Box17,
|
|
5688
5684
|
{
|
|
@@ -5695,7 +5691,7 @@ var Drawer2 = ({
|
|
|
5695
5691
|
borderBottom: 1,
|
|
5696
5692
|
borderColor: "divider"
|
|
5697
5693
|
},
|
|
5698
|
-
children: header || /* @__PURE__ */
|
|
5694
|
+
children: header || /* @__PURE__ */ jsxs23(Fragment9, { children: [
|
|
5699
5695
|
/* @__PURE__ */ jsx48(Box17, { sx: { flex: 1 }, children: typeof title === "string" ? /* @__PURE__ */ jsx48(Typography14, { variant: "h6", children: title }) : title }),
|
|
5700
5696
|
shouldShowClose && onClose && /* @__PURE__ */ jsx48(
|
|
5701
5697
|
IconButton8,
|
|
@@ -5745,7 +5741,7 @@ var Drawer2 = ({
|
|
|
5745
5741
|
children
|
|
5746
5742
|
}
|
|
5747
5743
|
),
|
|
5748
|
-
footer && /* @__PURE__ */
|
|
5744
|
+
footer && /* @__PURE__ */ jsxs23(Fragment9, { children: [
|
|
5749
5745
|
/* @__PURE__ */ jsx48(Divider3, {}),
|
|
5750
5746
|
/* @__PURE__ */ jsx48(
|
|
5751
5747
|
Box17,
|
|
@@ -5767,10 +5763,10 @@ var Drawer2 = ({
|
|
|
5767
5763
|
// src/components/layout/MetaField.tsx
|
|
5768
5764
|
import Box18 from "@mui/material/Box";
|
|
5769
5765
|
import Typography15 from "@mui/material/Typography";
|
|
5770
|
-
import { jsx as jsx49, jsxs as
|
|
5766
|
+
import { jsx as jsx49, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5771
5767
|
var MetaField = ({ label, value, mono = false, title }) => {
|
|
5772
5768
|
const resolvedTitle = title ?? (typeof value === "string" ? value : void 0);
|
|
5773
|
-
return /* @__PURE__ */
|
|
5769
|
+
return /* @__PURE__ */ jsxs24(Box18, { sx: { display: "flex", flexDirection: "column", gap: 0.25, minWidth: 0 }, children: [
|
|
5774
5770
|
/* @__PURE__ */ jsx49(
|
|
5775
5771
|
Typography15,
|
|
5776
5772
|
{
|
|
@@ -5809,7 +5805,7 @@ import Box19 from "@mui/material/Box";
|
|
|
5809
5805
|
import IconButton9 from "@mui/material/IconButton";
|
|
5810
5806
|
import ChevronLeftIcon2 from "@mui/icons-material/ChevronLeft";
|
|
5811
5807
|
import ChevronRightIcon2 from "@mui/icons-material/ChevronRight";
|
|
5812
|
-
import { jsx as jsx50, jsxs as
|
|
5808
|
+
import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5813
5809
|
var EDGE_TOLERANCE_PX = 4;
|
|
5814
5810
|
var ScrollableRow = ({
|
|
5815
5811
|
children,
|
|
@@ -5849,7 +5845,7 @@ var ScrollableRow = ({
|
|
|
5849
5845
|
if (!el) return;
|
|
5850
5846
|
el.scrollBy({ left: dir * Math.max(minNudge, el.clientWidth * nudgeFraction), behavior: "smooth" });
|
|
5851
5847
|
};
|
|
5852
|
-
return /* @__PURE__ */
|
|
5848
|
+
return /* @__PURE__ */ jsxs25(Box19, { sx: { position: "relative", flex: 1, minWidth: 0 }, children: [
|
|
5853
5849
|
/* @__PURE__ */ jsx50(
|
|
5854
5850
|
Box19,
|
|
5855
5851
|
{
|
|
@@ -5908,7 +5904,7 @@ var ScrollableRow = ({
|
|
|
5908
5904
|
// src/components/layout/SectionRow.tsx
|
|
5909
5905
|
import Box20 from "@mui/material/Box";
|
|
5910
5906
|
import Typography16 from "@mui/material/Typography";
|
|
5911
|
-
import { jsx as jsx51, jsxs as
|
|
5907
|
+
import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5912
5908
|
function SectionRow({
|
|
5913
5909
|
title,
|
|
5914
5910
|
subtitle,
|
|
@@ -5917,8 +5913,8 @@ function SectionRow({
|
|
|
5917
5913
|
rightLabel,
|
|
5918
5914
|
children
|
|
5919
5915
|
}) {
|
|
5920
|
-
return /* @__PURE__ */
|
|
5921
|
-
/* @__PURE__ */
|
|
5916
|
+
return /* @__PURE__ */ jsxs26(Box20, { component: "section", sx: { mb: 4 }, children: [
|
|
5917
|
+
/* @__PURE__ */ jsxs26(
|
|
5922
5918
|
Box20,
|
|
5923
5919
|
{
|
|
5924
5920
|
component: "header",
|
|
@@ -5930,7 +5926,7 @@ function SectionRow({
|
|
|
5930
5926
|
mb: 1.5
|
|
5931
5927
|
},
|
|
5932
5928
|
children: [
|
|
5933
|
-
/* @__PURE__ */
|
|
5929
|
+
/* @__PURE__ */ jsxs26(Box20, { sx: { minWidth: 0 }, children: [
|
|
5934
5930
|
/* @__PURE__ */ jsx51(Typography16, { component: "h2", variant: "h6", sx: { m: 0 }, children: title }),
|
|
5935
5931
|
subtitle && /* @__PURE__ */ jsx51(Typography16, { variant: "caption", sx: { color: "text.secondary" }, children: subtitle })
|
|
5936
5932
|
] }),
|
|
@@ -5943,14 +5939,16 @@ function SectionRow({
|
|
|
5943
5939
|
}
|
|
5944
5940
|
|
|
5945
5941
|
// src/components/layout/Carousel.tsx
|
|
5946
|
-
import { useEffect as useEffect5, useState as useState10 } from "react";
|
|
5942
|
+
import { useEffect as useEffect5, useMemo, useState as useState10 } from "react";
|
|
5947
5943
|
import Box21 from "@mui/material/Box";
|
|
5948
5944
|
import IconButton10 from "@mui/material/IconButton";
|
|
5949
5945
|
import Typography17 from "@mui/material/Typography";
|
|
5950
5946
|
import ChevronLeftIcon3 from "@mui/icons-material/ChevronLeft";
|
|
5951
5947
|
import ChevronRightIcon3 from "@mui/icons-material/ChevronRight";
|
|
5948
|
+
import { alpha } from "@mui/material/styles";
|
|
5952
5949
|
import useEmblaCarousel from "embla-carousel-react";
|
|
5953
|
-
import
|
|
5950
|
+
import Autoplay from "embla-carousel-autoplay";
|
|
5951
|
+
import { Fragment as Fragment10, jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5954
5952
|
var pad2 = (n) => String(n).padStart(2, "0");
|
|
5955
5953
|
function Carousel({
|
|
5956
5954
|
slides,
|
|
@@ -5967,33 +5965,49 @@ function Carousel({
|
|
|
5967
5965
|
onSelect,
|
|
5968
5966
|
arrowSx,
|
|
5969
5967
|
dotColor,
|
|
5970
|
-
dotActiveColor
|
|
5968
|
+
dotActiveColor,
|
|
5969
|
+
emblaOptions
|
|
5971
5970
|
}) {
|
|
5972
|
-
const
|
|
5971
|
+
const plugins = useMemo(
|
|
5972
|
+
() => autoplay ? [
|
|
5973
|
+
Autoplay({
|
|
5974
|
+
delay: autoplayDelayMs,
|
|
5975
|
+
stopOnInteraction: true,
|
|
5976
|
+
stopOnMouseEnter: pauseOnHover
|
|
5977
|
+
})
|
|
5978
|
+
] : [],
|
|
5979
|
+
[autoplay, autoplayDelayMs, pauseOnHover]
|
|
5980
|
+
);
|
|
5981
|
+
const [emblaRef, emblaApi] = useEmblaCarousel(
|
|
5982
|
+
{ loop: true, align: "start", ...emblaOptions },
|
|
5983
|
+
plugins
|
|
5984
|
+
);
|
|
5973
5985
|
const [selected, setSelected] = useState10(0);
|
|
5974
|
-
const [
|
|
5986
|
+
const [snapCount, setSnapCount] = useState10(0);
|
|
5975
5987
|
const count = slides.length;
|
|
5976
5988
|
useEffect5(() => {
|
|
5977
5989
|
if (!emblaApi) return;
|
|
5990
|
+
const refreshSnaps = () => {
|
|
5991
|
+
setSnapCount(emblaApi.scrollSnapList().length);
|
|
5992
|
+
};
|
|
5978
5993
|
const handleSelect = () => {
|
|
5979
5994
|
const next = emblaApi.selectedScrollSnap();
|
|
5980
5995
|
setSelected(next);
|
|
5981
5996
|
onSelect?.(next);
|
|
5982
5997
|
};
|
|
5983
5998
|
emblaApi.on("select", handleSelect);
|
|
5999
|
+
emblaApi.on("reInit", refreshSnaps);
|
|
6000
|
+
refreshSnaps();
|
|
5984
6001
|
handleSelect();
|
|
5985
6002
|
return () => {
|
|
5986
6003
|
emblaApi.off("select", handleSelect);
|
|
6004
|
+
emblaApi.off("reInit", refreshSnaps);
|
|
5987
6005
|
};
|
|
5988
6006
|
}, [emblaApi, onSelect]);
|
|
5989
|
-
useEffect5(() => {
|
|
5990
|
-
if (!emblaApi || !autoplay || paused || count <= 1) return;
|
|
5991
|
-
const id = window.setInterval(() => emblaApi.scrollNext(), autoplayDelayMs);
|
|
5992
|
-
return () => window.clearInterval(id);
|
|
5993
|
-
}, [emblaApi, autoplay, paused, count, autoplayDelayMs]);
|
|
5994
6007
|
if (count === 0) return null;
|
|
5995
6008
|
const showControls = count > 1;
|
|
5996
6009
|
const slideBasis = `${100 / Math.max(1, slidesPerView)}%`;
|
|
6010
|
+
const dotCount = snapCount > 0 ? snapCount : count;
|
|
5997
6011
|
const arrowBaseSx = {
|
|
5998
6012
|
position: "absolute",
|
|
5999
6013
|
top: "50%",
|
|
@@ -6002,14 +6016,12 @@ function Carousel({
|
|
|
6002
6016
|
boxShadow: 1,
|
|
6003
6017
|
"&:hover": { bgcolor: "background.paper" }
|
|
6004
6018
|
};
|
|
6005
|
-
return /* @__PURE__ */
|
|
6019
|
+
return /* @__PURE__ */ jsxs27(
|
|
6006
6020
|
Box21,
|
|
6007
6021
|
{
|
|
6008
6022
|
role: "region",
|
|
6009
6023
|
"aria-roledescription": "carousel",
|
|
6010
6024
|
"aria-label": ariaLabel,
|
|
6011
|
-
onPointerEnter: pauseOnHover ? () => setPaused(true) : void 0,
|
|
6012
|
-
onPointerLeave: pauseOnHover ? () => setPaused(false) : void 0,
|
|
6013
6025
|
sx: { position: "relative", width: "100%" },
|
|
6014
6026
|
children: [
|
|
6015
6027
|
/* @__PURE__ */ jsx52(Box21, { ref: emblaRef, sx: { overflow: "hidden" }, children: /* @__PURE__ */ jsx52(Box21, { sx: { display: "flex" }, children: slides.map((item, i) => /* @__PURE__ */ jsx52(
|
|
@@ -6023,7 +6035,7 @@ function Carousel({
|
|
|
6023
6035
|
},
|
|
6024
6036
|
getKey ? getKey(item, i) : i
|
|
6025
6037
|
)) }) }),
|
|
6026
|
-
showControls && showArrows && /* @__PURE__ */
|
|
6038
|
+
showControls && showArrows && /* @__PURE__ */ jsxs27(Fragment10, { children: [
|
|
6027
6039
|
/* @__PURE__ */ jsx52(
|
|
6028
6040
|
IconButton10,
|
|
6029
6041
|
{
|
|
@@ -6043,25 +6055,25 @@ function Carousel({
|
|
|
6043
6055
|
}
|
|
6044
6056
|
)
|
|
6045
6057
|
] }),
|
|
6046
|
-
showControls && showCounter && /* @__PURE__ */
|
|
6058
|
+
showControls && showCounter && /* @__PURE__ */ jsxs27(
|
|
6047
6059
|
Typography17,
|
|
6048
6060
|
{
|
|
6049
6061
|
variant: "caption",
|
|
6050
|
-
sx: {
|
|
6062
|
+
sx: (theme2) => ({
|
|
6051
6063
|
position: "absolute",
|
|
6052
6064
|
top: 12,
|
|
6053
6065
|
right: 16,
|
|
6054
6066
|
px: 1,
|
|
6055
6067
|
py: 0.25,
|
|
6056
6068
|
borderRadius: 1,
|
|
6057
|
-
bgcolor:
|
|
6069
|
+
bgcolor: alpha(theme2.palette.common.black, 0.5),
|
|
6058
6070
|
color: "common.white",
|
|
6059
6071
|
letterSpacing: 1
|
|
6060
|
-
},
|
|
6072
|
+
}),
|
|
6061
6073
|
children: [
|
|
6062
6074
|
pad2(selected + 1),
|
|
6063
6075
|
" / ",
|
|
6064
|
-
pad2(
|
|
6076
|
+
pad2(dotCount)
|
|
6065
6077
|
]
|
|
6066
6078
|
}
|
|
6067
6079
|
),
|
|
@@ -6079,7 +6091,7 @@ function Carousel({
|
|
|
6079
6091
|
justifyContent: "center",
|
|
6080
6092
|
gap: 1
|
|
6081
6093
|
},
|
|
6082
|
-
children:
|
|
6094
|
+
children: Array.from({ length: dotCount }).map((_, i) => /* @__PURE__ */ jsx52(
|
|
6083
6095
|
Box21,
|
|
6084
6096
|
{
|
|
6085
6097
|
component: "button",
|
|
@@ -6099,7 +6111,7 @@ function Carousel({
|
|
|
6099
6111
|
transition: "width 0.2s ease, background 0.2s ease"
|
|
6100
6112
|
})
|
|
6101
6113
|
},
|
|
6102
|
-
|
|
6114
|
+
i
|
|
6103
6115
|
))
|
|
6104
6116
|
}
|
|
6105
6117
|
)
|
|
@@ -6167,7 +6179,7 @@ function GradientSurface({ index, children, sx }) {
|
|
|
6167
6179
|
// src/components/layout/DefinitionRow.tsx
|
|
6168
6180
|
import Box23 from "@mui/material/Box";
|
|
6169
6181
|
import Typography18 from "@mui/material/Typography";
|
|
6170
|
-
import { jsx as jsx54, jsxs as
|
|
6182
|
+
import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6171
6183
|
function DefinitionRow({
|
|
6172
6184
|
icon,
|
|
6173
6185
|
label,
|
|
@@ -6177,7 +6189,7 @@ function DefinitionRow({
|
|
|
6177
6189
|
dense = false,
|
|
6178
6190
|
divider = true
|
|
6179
6191
|
}) {
|
|
6180
|
-
return /* @__PURE__ */
|
|
6192
|
+
return /* @__PURE__ */ jsxs28(
|
|
6181
6193
|
Box23,
|
|
6182
6194
|
{
|
|
6183
6195
|
"data-density": dense ? "dense" : "normal",
|
|
@@ -6189,16 +6201,16 @@ function DefinitionRow({
|
|
|
6189
6201
|
...divider && {
|
|
6190
6202
|
borderBottom: "1px solid",
|
|
6191
6203
|
borderColor: "divider",
|
|
6192
|
-
"&:last-
|
|
6204
|
+
"&:last-child": { borderBottom: "none" }
|
|
6193
6205
|
}
|
|
6194
6206
|
},
|
|
6195
6207
|
children: [
|
|
6196
6208
|
icon && /* @__PURE__ */ jsx54(Box23, { sx: { display: "flex", alignItems: "center", color: "text.secondary" }, children: icon }),
|
|
6197
|
-
/* @__PURE__ */
|
|
6209
|
+
/* @__PURE__ */ jsxs28(Box23, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
6198
6210
|
/* @__PURE__ */ jsx54(Typography18, { variant: "body2", sx: { fontWeight: 500, lineHeight: 1.2 }, children: label }),
|
|
6199
6211
|
sublabel && /* @__PURE__ */ jsx54(Typography18, { variant: "caption", sx: { color: "text.secondary" }, children: sublabel })
|
|
6200
6212
|
] }),
|
|
6201
|
-
(value || hint) && /* @__PURE__ */
|
|
6213
|
+
(value || hint) && /* @__PURE__ */ jsxs28(
|
|
6202
6214
|
Box23,
|
|
6203
6215
|
{
|
|
6204
6216
|
sx: {
|
|
@@ -6226,7 +6238,7 @@ import Box24 from "@mui/material/Box";
|
|
|
6226
6238
|
import Typography19 from "@mui/material/Typography";
|
|
6227
6239
|
import Slide from "@mui/material/Slide";
|
|
6228
6240
|
import CloseIcon3 from "@mui/icons-material/Close";
|
|
6229
|
-
import { jsx as jsx55, jsxs as
|
|
6241
|
+
import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6230
6242
|
var WIDTH_PX = {
|
|
6231
6243
|
sm: 420,
|
|
6232
6244
|
md: 640,
|
|
@@ -6264,23 +6276,29 @@ function PanelDialog({
|
|
|
6264
6276
|
const paperBaseSx = {
|
|
6265
6277
|
width: WIDTH_PX[width],
|
|
6266
6278
|
maxWidth: "100%",
|
|
6279
|
+
// Lay paper children out as a flex column so the body can `flex: 1` and
|
|
6280
|
+
// own its own scroll region.
|
|
6281
|
+
display: "flex",
|
|
6282
|
+
flexDirection: "column",
|
|
6267
6283
|
...isRight && {
|
|
6268
6284
|
position: "absolute",
|
|
6269
6285
|
right: 0,
|
|
6270
6286
|
top: 0,
|
|
6271
6287
|
bottom: 0,
|
|
6272
6288
|
margin: 0,
|
|
6273
|
-
|
|
6274
|
-
|
|
6289
|
+
// Use dynamic viewport units so mobile browsers (esp. iOS Safari) don't
|
|
6290
|
+
// pop the layout when the URL bar shows/hides.
|
|
6291
|
+
maxHeight: "100dvh",
|
|
6292
|
+
height: "100dvh",
|
|
6275
6293
|
borderRadius: 0
|
|
6276
6294
|
}
|
|
6277
6295
|
};
|
|
6278
|
-
return /* @__PURE__ */
|
|
6296
|
+
return /* @__PURE__ */ jsxs29(
|
|
6279
6297
|
MuiDialog2,
|
|
6280
6298
|
{
|
|
6281
6299
|
open,
|
|
6282
6300
|
onClose,
|
|
6283
|
-
TransitionComponent,
|
|
6301
|
+
slots: TransitionComponent ? { transition: TransitionComponent } : void 0,
|
|
6284
6302
|
slotProps: {
|
|
6285
6303
|
paper: {
|
|
6286
6304
|
"aria-label": accessibleName,
|
|
@@ -6289,7 +6307,7 @@ function PanelDialog({
|
|
|
6289
6307
|
...backdropSx ? { backdrop: { sx: backdropSx } } : {}
|
|
6290
6308
|
},
|
|
6291
6309
|
children: [
|
|
6292
|
-
!hideHeader && /* @__PURE__ */
|
|
6310
|
+
!hideHeader && /* @__PURE__ */ jsxs29(
|
|
6293
6311
|
Box24,
|
|
6294
6312
|
{
|
|
6295
6313
|
sx: {
|
|
@@ -6304,7 +6322,7 @@ function PanelDialog({
|
|
|
6304
6322
|
},
|
|
6305
6323
|
children: [
|
|
6306
6324
|
/* @__PURE__ */ jsx55(Box24, { sx: { display: "flex", alignItems: "center", minWidth: 0 }, children: typeof title === "string" ? /* @__PURE__ */ jsx55(Typography19, { variant: "h6", noWrap: true, children: title }) : title }),
|
|
6307
|
-
/* @__PURE__ */
|
|
6325
|
+
/* @__PURE__ */ jsxs29(Box24, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
6308
6326
|
headerActions,
|
|
6309
6327
|
/* @__PURE__ */ jsx55(IconButton11, { "aria-label": "Close", onClick: onClose, edge: "end", size: "small", children: /* @__PURE__ */ jsx55(CloseIcon3, { fontSize: "small" }) })
|
|
6310
6328
|
] })
|
|
@@ -6351,7 +6369,7 @@ var StyledCard = styled30(MuiCard, {
|
|
|
6351
6369
|
borderRadius: 8,
|
|
6352
6370
|
transition: "all 0.2s ease-in-out",
|
|
6353
6371
|
...dsVariant === "standard" && {
|
|
6354
|
-
boxShadow:
|
|
6372
|
+
boxShadow: theme2.shadows[1],
|
|
6355
6373
|
backgroundColor: theme2.palette.background.paper
|
|
6356
6374
|
},
|
|
6357
6375
|
...dsVariant === "tinted" && {
|
|
@@ -6369,7 +6387,7 @@ var StyledCard = styled30(MuiCard, {
|
|
|
6369
6387
|
},
|
|
6370
6388
|
...hoverable && {
|
|
6371
6389
|
"&:hover": {
|
|
6372
|
-
boxShadow:
|
|
6390
|
+
boxShadow: theme2.shadows[4],
|
|
6373
6391
|
transform: "translateY(-2px)"
|
|
6374
6392
|
}
|
|
6375
6393
|
}
|
|
@@ -6413,7 +6431,7 @@ import {
|
|
|
6413
6431
|
ListItemSecondaryAction
|
|
6414
6432
|
} from "@mui/material";
|
|
6415
6433
|
import { styled as styled31 } from "@mui/material/styles";
|
|
6416
|
-
import { jsx as jsx57, jsxs as
|
|
6434
|
+
import { jsx as jsx57, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6417
6435
|
var List6 = (props) => {
|
|
6418
6436
|
return /* @__PURE__ */ jsx57(MuiList, { ...props });
|
|
6419
6437
|
};
|
|
@@ -6438,7 +6456,7 @@ var ListItem4 = ({
|
|
|
6438
6456
|
children,
|
|
6439
6457
|
...props
|
|
6440
6458
|
}) => {
|
|
6441
|
-
return /* @__PURE__ */
|
|
6459
|
+
return /* @__PURE__ */ jsxs30(StyledListItem, { hoverable, ...props, children: [
|
|
6442
6460
|
icon && /* @__PURE__ */ jsx57(ListItemIcon4, { children: icon }),
|
|
6443
6461
|
(primary || secondary) && /* @__PURE__ */ jsx57(
|
|
6444
6462
|
ListItemText7,
|
|
@@ -6573,7 +6591,7 @@ import {
|
|
|
6573
6591
|
} from "@mui/material";
|
|
6574
6592
|
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
6575
6593
|
import { styled as styled35 } from "@mui/material/styles";
|
|
6576
|
-
import { jsx as jsx61, jsxs as
|
|
6594
|
+
import { jsx as jsx61, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6577
6595
|
var StyledAccordion = styled35(MuiAccordion)(({ theme: theme2 }) => ({
|
|
6578
6596
|
borderRadius: 8,
|
|
6579
6597
|
boxShadow: "none",
|
|
@@ -6604,7 +6622,7 @@ var Accordion = ({
|
|
|
6604
6622
|
defaultExpanded = false,
|
|
6605
6623
|
...props
|
|
6606
6624
|
}) => {
|
|
6607
|
-
return /* @__PURE__ */
|
|
6625
|
+
return /* @__PURE__ */ jsxs31(StyledAccordion, { defaultExpanded, ...props, children: [
|
|
6608
6626
|
/* @__PURE__ */ jsx61(StyledAccordionSummary, { expandIcon: /* @__PURE__ */ jsx61(ExpandMoreIcon, {}), children: title }),
|
|
6609
6627
|
/* @__PURE__ */ jsx61(StyledAccordionDetails, { children })
|
|
6610
6628
|
] });
|
|
@@ -6692,7 +6710,7 @@ import Typography22 from "@mui/material/Typography";
|
|
|
6692
6710
|
import IconButton12 from "@mui/material/IconButton";
|
|
6693
6711
|
import Divider5 from "@mui/material/Divider";
|
|
6694
6712
|
import MoreHorizIcon from "@mui/icons-material/MoreHoriz";
|
|
6695
|
-
import { jsx as jsx66, jsxs as
|
|
6713
|
+
import { jsx as jsx66, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6696
6714
|
var EntityHeader = ({
|
|
6697
6715
|
title,
|
|
6698
6716
|
subtitle,
|
|
@@ -6711,8 +6729,8 @@ var EntityHeader = ({
|
|
|
6711
6729
|
const { label, count } = primaryAction;
|
|
6712
6730
|
return count !== void 0 ? `${label} (${count})` : label;
|
|
6713
6731
|
};
|
|
6714
|
-
return /* @__PURE__ */
|
|
6715
|
-
/* @__PURE__ */
|
|
6732
|
+
return /* @__PURE__ */ jsxs32(Box26, { children: [
|
|
6733
|
+
/* @__PURE__ */ jsxs32(
|
|
6716
6734
|
Box26,
|
|
6717
6735
|
{
|
|
6718
6736
|
sx: {
|
|
@@ -6724,7 +6742,7 @@ var EntityHeader = ({
|
|
|
6724
6742
|
gap: 1
|
|
6725
6743
|
},
|
|
6726
6744
|
children: [
|
|
6727
|
-
/* @__PURE__ */
|
|
6745
|
+
/* @__PURE__ */ jsxs32(
|
|
6728
6746
|
Box26,
|
|
6729
6747
|
{
|
|
6730
6748
|
sx: {
|
|
@@ -6734,7 +6752,7 @@ var EntityHeader = ({
|
|
|
6734
6752
|
flexWrap: "wrap"
|
|
6735
6753
|
},
|
|
6736
6754
|
children: [
|
|
6737
|
-
/* @__PURE__ */
|
|
6755
|
+
/* @__PURE__ */ jsxs32(
|
|
6738
6756
|
Box26,
|
|
6739
6757
|
{
|
|
6740
6758
|
sx: {
|
|
@@ -6779,7 +6797,7 @@ var EntityHeader = ({
|
|
|
6779
6797
|
]
|
|
6780
6798
|
}
|
|
6781
6799
|
),
|
|
6782
|
-
/* @__PURE__ */
|
|
6800
|
+
/* @__PURE__ */ jsxs32(
|
|
6783
6801
|
Box26,
|
|
6784
6802
|
{
|
|
6785
6803
|
sx: {
|
|
@@ -6875,7 +6893,7 @@ function useControlledExpand(controlledExpanded, onToggle, defaultExpanded = fal
|
|
|
6875
6893
|
}
|
|
6876
6894
|
|
|
6877
6895
|
// src/components/layout/DeploymentDashboardCard/DeploymentDashboardCard.tsx
|
|
6878
|
-
import { Fragment as Fragment11, jsx as jsx67, jsxs as
|
|
6896
|
+
import { Fragment as Fragment11, jsx as jsx67, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6879
6897
|
var ENTITY_LABELS = {
|
|
6880
6898
|
workspace: "Workspace",
|
|
6881
6899
|
stream: "Stream",
|
|
@@ -6919,7 +6937,7 @@ var StatusDot2 = styled39(Box27, {
|
|
|
6919
6937
|
backgroundColor: status ? STATUS_DOT_COLORS[status] ?? "transparent" : "transparent",
|
|
6920
6938
|
flexShrink: 0
|
|
6921
6939
|
}));
|
|
6922
|
-
var EntityChip = ({ entityType, color }) => /* @__PURE__ */
|
|
6940
|
+
var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs33(
|
|
6923
6941
|
Box27,
|
|
6924
6942
|
{
|
|
6925
6943
|
sx: {
|
|
@@ -6953,10 +6971,10 @@ var EntityChip = ({ entityType, color }) => /* @__PURE__ */ jsxs34(
|
|
|
6953
6971
|
]
|
|
6954
6972
|
}
|
|
6955
6973
|
);
|
|
6956
|
-
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */
|
|
6957
|
-
/* @__PURE__ */
|
|
6974
|
+
var CapacityBar = ({ value, indented = false }) => /* @__PURE__ */ jsxs33(Box27, { sx: { pl: indented ? "40px" : 0, pr: "20px", py: 1 }, children: [
|
|
6975
|
+
/* @__PURE__ */ jsxs33(Box27, { sx: { display: "flex", justifyContent: "space-between", mb: 1 }, children: [
|
|
6958
6976
|
/* @__PURE__ */ jsx67(Typography23, { variant: "body2", sx: { color: deploymentSurfaceTokens.textPrimary }, children: "Capacity" }),
|
|
6959
|
-
/* @__PURE__ */
|
|
6977
|
+
/* @__PURE__ */ jsxs33(Typography23, { variant: "body2", sx: { color: deploymentSurfaceTokens.accentBlue }, children: [
|
|
6960
6978
|
value,
|
|
6961
6979
|
"%"
|
|
6962
6980
|
] })
|
|
@@ -7001,7 +7019,7 @@ var getActionButtonStyles = (action) => {
|
|
|
7001
7019
|
};
|
|
7002
7020
|
return { ...baseStyles, ...variantStyles };
|
|
7003
7021
|
};
|
|
7004
|
-
var CardAction = ({ action }) => /* @__PURE__ */
|
|
7022
|
+
var CardAction = ({ action }) => /* @__PURE__ */ jsxs33(
|
|
7005
7023
|
Box27,
|
|
7006
7024
|
{
|
|
7007
7025
|
component: action.onClick ? "button" : "span",
|
|
@@ -7046,7 +7064,7 @@ var DeploymentDashboardCard = ({
|
|
|
7046
7064
|
return Math.min(100, Math.max(0, capacity2));
|
|
7047
7065
|
};
|
|
7048
7066
|
const capacityClamped = getClampedCapacity(capacity);
|
|
7049
|
-
return /* @__PURE__ */
|
|
7067
|
+
return /* @__PURE__ */ jsxs33(
|
|
7050
7068
|
Paper2,
|
|
7051
7069
|
{
|
|
7052
7070
|
className,
|
|
@@ -7063,7 +7081,7 @@ var DeploymentDashboardCard = ({
|
|
|
7063
7081
|
gap: 0
|
|
7064
7082
|
},
|
|
7065
7083
|
children: [
|
|
7066
|
-
/* @__PURE__ */
|
|
7084
|
+
/* @__PURE__ */ jsxs33(
|
|
7067
7085
|
Box27,
|
|
7068
7086
|
{
|
|
7069
7087
|
sx: {
|
|
@@ -7073,8 +7091,8 @@ var DeploymentDashboardCard = ({
|
|
|
7073
7091
|
width: "100%"
|
|
7074
7092
|
},
|
|
7075
7093
|
children: [
|
|
7076
|
-
/* @__PURE__ */
|
|
7077
|
-
/* @__PURE__ */
|
|
7094
|
+
/* @__PURE__ */ jsxs33(Box27, { sx: { display: "flex", flexDirection: "column", gap: 0.5, minWidth: 0 }, children: [
|
|
7095
|
+
/* @__PURE__ */ jsxs33(Box27, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
7078
7096
|
expandable ? /* @__PURE__ */ jsx67(
|
|
7079
7097
|
IconButton13,
|
|
7080
7098
|
{
|
|
@@ -7098,7 +7116,7 @@ var DeploymentDashboardCard = ({
|
|
|
7098
7116
|
),
|
|
7099
7117
|
idDisplay != null && /* @__PURE__ */ jsx67(IDBlock, { id: idDisplay, label: "ID", entityType, onCopy: onCopyId })
|
|
7100
7118
|
] }),
|
|
7101
|
-
(createdAt != null || updatedAt != null) && /* @__PURE__ */
|
|
7119
|
+
(createdAt != null || updatedAt != null) && /* @__PURE__ */ jsxs33(
|
|
7102
7120
|
Box27,
|
|
7103
7121
|
{
|
|
7104
7122
|
sx: {
|
|
@@ -7108,11 +7126,11 @@ var DeploymentDashboardCard = ({
|
|
|
7108
7126
|
color: deploymentSurfaceTokens.textSecondary
|
|
7109
7127
|
},
|
|
7110
7128
|
children: [
|
|
7111
|
-
createdAt != null && /* @__PURE__ */
|
|
7129
|
+
createdAt != null && /* @__PURE__ */ jsxs33(Typography23, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
7112
7130
|
"Created: ",
|
|
7113
7131
|
createdAt
|
|
7114
7132
|
] }),
|
|
7115
|
-
updatedAt != null && /* @__PURE__ */
|
|
7133
|
+
updatedAt != null && /* @__PURE__ */ jsxs33(Typography23, { variant: "body2", sx: { color: "inherit", fontSize: "14px" }, children: [
|
|
7116
7134
|
"Last Updated: ",
|
|
7117
7135
|
updatedAt
|
|
7118
7136
|
] })
|
|
@@ -7121,7 +7139,7 @@ var DeploymentDashboardCard = ({
|
|
|
7121
7139
|
),
|
|
7122
7140
|
capacityClamped !== void 0 && /* @__PURE__ */ jsx67(CapacityBar, { value: capacityClamped, indented: expandable })
|
|
7123
7141
|
] }),
|
|
7124
|
-
/* @__PURE__ */
|
|
7142
|
+
/* @__PURE__ */ jsxs33(Box27, { sx: { display: "flex", gap: 1, alignItems: "center", flexShrink: 0 }, children: [
|
|
7125
7143
|
statusIndicator != null && /* @__PURE__ */ jsx67(StatusDot2, { status: statusIndicator, "aria-hidden": true }),
|
|
7126
7144
|
/* @__PURE__ */ jsx67(CardActionList, { actions })
|
|
7127
7145
|
] })
|
|
@@ -7137,7 +7155,7 @@ var DeploymentDashboardCard = ({
|
|
|
7137
7155
|
// src/components/layout/DeploymentEntityContextMenu/DeploymentEntityContextMenu.tsx
|
|
7138
7156
|
import { Menu as Menu5, MenuItem as MenuItem2, Switch as Switch2, Divider as Divider6, ListItemIcon as ListItemIcon5, ListItemText as ListItemText8 } from "@mui/material";
|
|
7139
7157
|
import { styled as styled40 } from "@mui/material/styles";
|
|
7140
|
-
import { Fragment as Fragment12, jsx as jsx68, jsxs as
|
|
7158
|
+
import { Fragment as Fragment12, jsx as jsx68, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7141
7159
|
var StyledMenu2 = styled40(Menu5)({
|
|
7142
7160
|
"& .MuiPaper-root": {
|
|
7143
7161
|
borderRadius: 4,
|
|
@@ -7235,7 +7253,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
7235
7253
|
enableChecked = false,
|
|
7236
7254
|
onEnableChange
|
|
7237
7255
|
}) => {
|
|
7238
|
-
return /* @__PURE__ */
|
|
7256
|
+
return /* @__PURE__ */ jsxs34(
|
|
7239
7257
|
StyledMenu2,
|
|
7240
7258
|
{
|
|
7241
7259
|
anchorEl,
|
|
@@ -7250,7 +7268,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
7250
7268
|
return /* @__PURE__ */ jsx68(StyledDivider2, {}, item.id);
|
|
7251
7269
|
}
|
|
7252
7270
|
if (item.type === "toggle") {
|
|
7253
|
-
return /* @__PURE__ */
|
|
7271
|
+
return /* @__PURE__ */ jsxs34(ToggleMenuItem, { disableRipple: true, children: [
|
|
7254
7272
|
onEnableChange && /* @__PURE__ */ jsx68(
|
|
7255
7273
|
EnableSwitch,
|
|
7256
7274
|
{
|
|
@@ -7264,7 +7282,7 @@ var DeploymentEntityContextMenu = ({
|
|
|
7264
7282
|
] }, item.id);
|
|
7265
7283
|
}
|
|
7266
7284
|
const Row = item.highlighted ? HighlightedMenuItem : StyledMenuItem;
|
|
7267
|
-
return /* @__PURE__ */
|
|
7285
|
+
return /* @__PURE__ */ jsxs34(
|
|
7268
7286
|
Row,
|
|
7269
7287
|
{
|
|
7270
7288
|
onClick: () => {
|
|
@@ -7279,9 +7297,9 @@ var DeploymentEntityContextMenu = ({
|
|
|
7279
7297
|
item.id
|
|
7280
7298
|
);
|
|
7281
7299
|
}),
|
|
7282
|
-
enableToggle && /* @__PURE__ */
|
|
7300
|
+
enableToggle && /* @__PURE__ */ jsxs34(Fragment12, { children: [
|
|
7283
7301
|
/* @__PURE__ */ jsx68(StyledDivider2, {}),
|
|
7284
|
-
/* @__PURE__ */
|
|
7302
|
+
/* @__PURE__ */ jsxs34(ToggleMenuItem, { disableRipple: true, children: [
|
|
7285
7303
|
onEnableChange && /* @__PURE__ */ jsx68(
|
|
7286
7304
|
EnableSwitch,
|
|
7287
7305
|
{
|
|
@@ -7381,8 +7399,8 @@ var contextMenuItems = {
|
|
|
7381
7399
|
|
|
7382
7400
|
// src/components/layout/DeploymentDashboardTree/DeploymentDashboardTree.tsx
|
|
7383
7401
|
import { Box as Box28 } from "@mui/material";
|
|
7384
|
-
import { styled as styled41, alpha } from "@mui/material/styles";
|
|
7385
|
-
import { jsx as jsx70, jsxs as
|
|
7402
|
+
import { styled as styled41, alpha as alpha2 } from "@mui/material/styles";
|
|
7403
|
+
import { jsx as jsx70, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7386
7404
|
var TREE_SP = {
|
|
7387
7405
|
/** Vertical gap between sibling rows (Figma S / sp-8) */
|
|
7388
7406
|
rowGap: 8,
|
|
@@ -7418,8 +7436,8 @@ var TreeRow = ({ node, depth, onExpandToggle, onCopyId, renderCard }) => {
|
|
|
7418
7436
|
);
|
|
7419
7437
|
const entityColor = deploymentEntityColors[node.entityType] ?? deploymentEntityColors.workspace;
|
|
7420
7438
|
const railOpacity = RAIL_OPACITY[node.entityType] ?? 0.5;
|
|
7421
|
-
const railColor =
|
|
7422
|
-
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */
|
|
7439
|
+
const railColor = alpha2(entityColor, railOpacity);
|
|
7440
|
+
const renderedChildren = hasChildren && expanded ? /* @__PURE__ */ jsxs35(Box28, { sx: { display: "flex", gap: `${TREE_SP.railGap}px` }, children: [
|
|
7423
7441
|
/* @__PURE__ */ jsx70(Rail, { railColor, "aria-hidden": true, "data-rail": true }),
|
|
7424
7442
|
/* @__PURE__ */ jsx70(
|
|
7425
7443
|
Box28,
|
|
@@ -7536,7 +7554,7 @@ import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
|
|
|
7536
7554
|
import ForkRightIcon from "@mui/icons-material/ForkRight";
|
|
7537
7555
|
import CallMergeIcon from "@mui/icons-material/CallMerge";
|
|
7538
7556
|
import { useTheme as useTheme5 } from "@mui/material";
|
|
7539
|
-
import { jsx as jsx72, jsxs as
|
|
7557
|
+
import { jsx as jsx72, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7540
7558
|
var WORKFLOW_NODE_LABELS = {
|
|
7541
7559
|
start: "Start",
|
|
7542
7560
|
input: "Input",
|
|
@@ -7601,7 +7619,7 @@ var SideConnectorDot = ({
|
|
|
7601
7619
|
})
|
|
7602
7620
|
}
|
|
7603
7621
|
);
|
|
7604
|
-
var NodeTypeBadge = ({ nodeType, badgeBackground, badgeBorder, badgeText, icon, label }) => /* @__PURE__ */
|
|
7622
|
+
var NodeTypeBadge = ({ nodeType, badgeBackground, badgeBorder, badgeText, icon, label }) => /* @__PURE__ */ jsxs36(
|
|
7605
7623
|
Box30,
|
|
7606
7624
|
{
|
|
7607
7625
|
sx: {
|
|
@@ -7651,7 +7669,7 @@ var WorkflowNode = ({
|
|
|
7651
7669
|
const nodeTokens = theme2.palette.workflow.node[nodeType];
|
|
7652
7670
|
const chrome = theme2.palette.workflow.chrome;
|
|
7653
7671
|
const accentColor = nodeTokens.accent;
|
|
7654
|
-
return /* @__PURE__ */
|
|
7672
|
+
return /* @__PURE__ */ jsxs36(
|
|
7655
7673
|
Paper3,
|
|
7656
7674
|
{
|
|
7657
7675
|
elevation: 0,
|
|
@@ -7677,7 +7695,7 @@ var WorkflowNode = ({
|
|
|
7677
7695
|
children: [
|
|
7678
7696
|
showSideDots && /* @__PURE__ */ jsx72(SideConnectorDot, { accentColor, side: "left" }),
|
|
7679
7697
|
showSideDots && /* @__PURE__ */ jsx72(SideConnectorDot, { accentColor, side: "right" }),
|
|
7680
|
-
/* @__PURE__ */
|
|
7698
|
+
/* @__PURE__ */ jsxs36(
|
|
7681
7699
|
Box30,
|
|
7682
7700
|
{
|
|
7683
7701
|
sx: {
|
|
@@ -7691,7 +7709,7 @@ var WorkflowNode = ({
|
|
|
7691
7709
|
minWidth: 0
|
|
7692
7710
|
},
|
|
7693
7711
|
children: [
|
|
7694
|
-
/* @__PURE__ */
|
|
7712
|
+
/* @__PURE__ */ jsxs36(Box30, { sx: { minWidth: 0, flex: 1 }, children: [
|
|
7695
7713
|
/* @__PURE__ */ jsx72(
|
|
7696
7714
|
Typography24,
|
|
7697
7715
|
{
|
|
@@ -7752,12 +7770,12 @@ import {
|
|
|
7752
7770
|
IconButton as IconButton14,
|
|
7753
7771
|
InputBase,
|
|
7754
7772
|
Typography as Typography25,
|
|
7755
|
-
alpha as
|
|
7773
|
+
alpha as alpha3
|
|
7756
7774
|
} from "@mui/material";
|
|
7757
7775
|
import CloseIcon4 from "@mui/icons-material/Close";
|
|
7758
7776
|
import CancelIcon from "@mui/icons-material/Cancel";
|
|
7759
7777
|
import { useTheme as useTheme6 } from "@mui/material/styles";
|
|
7760
|
-
import { jsx as jsx73, jsxs as
|
|
7778
|
+
import { jsx as jsx73, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7761
7779
|
var WorkflowTopBar = ({
|
|
7762
7780
|
title = "Agent visualization flow chart",
|
|
7763
7781
|
executionId,
|
|
@@ -7775,7 +7793,7 @@ var WorkflowTopBar = ({
|
|
|
7775
7793
|
...boxProps
|
|
7776
7794
|
}) => {
|
|
7777
7795
|
const chrome = useTheme6().palette.workflow.chrome;
|
|
7778
|
-
return /* @__PURE__ */
|
|
7796
|
+
return /* @__PURE__ */ jsxs37(
|
|
7779
7797
|
Box31,
|
|
7780
7798
|
{
|
|
7781
7799
|
sx: [
|
|
@@ -7789,7 +7807,7 @@ var WorkflowTopBar = ({
|
|
|
7789
7807
|
],
|
|
7790
7808
|
...boxProps,
|
|
7791
7809
|
children: [
|
|
7792
|
-
/* @__PURE__ */
|
|
7810
|
+
/* @__PURE__ */ jsxs37(
|
|
7793
7811
|
Box31,
|
|
7794
7812
|
{
|
|
7795
7813
|
sx: {
|
|
@@ -7814,7 +7832,7 @@ var WorkflowTopBar = ({
|
|
|
7814
7832
|
children: title
|
|
7815
7833
|
}
|
|
7816
7834
|
),
|
|
7817
|
-
/* @__PURE__ */
|
|
7835
|
+
/* @__PURE__ */ jsxs37(
|
|
7818
7836
|
Box31,
|
|
7819
7837
|
{
|
|
7820
7838
|
sx: {
|
|
@@ -7826,7 +7844,7 @@ var WorkflowTopBar = ({
|
|
|
7826
7844
|
minWidth: 0
|
|
7827
7845
|
},
|
|
7828
7846
|
children: [
|
|
7829
|
-
/* @__PURE__ */
|
|
7847
|
+
/* @__PURE__ */ jsxs37(
|
|
7830
7848
|
Box31,
|
|
7831
7849
|
{
|
|
7832
7850
|
sx: {
|
|
@@ -7842,7 +7860,7 @@ var WorkflowTopBar = ({
|
|
|
7842
7860
|
minHeight: 56
|
|
7843
7861
|
},
|
|
7844
7862
|
children: [
|
|
7845
|
-
/* @__PURE__ */
|
|
7863
|
+
/* @__PURE__ */ jsxs37(Box31, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
7846
7864
|
/* @__PURE__ */ jsx73(
|
|
7847
7865
|
Typography25,
|
|
7848
7866
|
{
|
|
@@ -7913,7 +7931,7 @@ var WorkflowTopBar = ({
|
|
|
7913
7931
|
sx: {
|
|
7914
7932
|
width: 30,
|
|
7915
7933
|
height: 30,
|
|
7916
|
-
backgroundColor:
|
|
7934
|
+
backgroundColor: alpha3(chrome.closeBtnBg, 0.28),
|
|
7917
7935
|
color: chrome.iconColor
|
|
7918
7936
|
},
|
|
7919
7937
|
children: /* @__PURE__ */ jsx73(CloseIcon4, { fontSize: "small" })
|
|
@@ -7938,14 +7956,14 @@ import {
|
|
|
7938
7956
|
IconButton as IconButton15,
|
|
7939
7957
|
Paper as Paper4,
|
|
7940
7958
|
Typography as Typography26,
|
|
7941
|
-
alpha as
|
|
7959
|
+
alpha as alpha4,
|
|
7942
7960
|
useTheme as useTheme7
|
|
7943
7961
|
} from "@mui/material";
|
|
7944
7962
|
import CloseIcon5 from "@mui/icons-material/Close";
|
|
7945
7963
|
import ContentCopyOutlinedIcon from "@mui/icons-material/ContentCopyOutlined";
|
|
7946
|
-
import { Fragment as Fragment13, jsx as jsx74, jsxs as
|
|
7964
|
+
import { Fragment as Fragment13, jsx as jsx74, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7947
7965
|
var INSPECTOR_WIDTH = 320;
|
|
7948
|
-
var InfoBlock = ({ label, value, mutedColor }) => /* @__PURE__ */
|
|
7966
|
+
var InfoBlock = ({ label, value, mutedColor }) => /* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
7949
7967
|
/* @__PURE__ */ jsx74(Typography26, { variant: "body2", sx: { color: mutedColor }, children: label }),
|
|
7950
7968
|
/* @__PURE__ */ jsx74(
|
|
7951
7969
|
Typography26,
|
|
@@ -7984,7 +8002,7 @@ var WorkflowSideInspector = ({
|
|
|
7984
8002
|
return null;
|
|
7985
8003
|
}
|
|
7986
8004
|
const accent = theme2.palette.workflow.node[nodeType].accent;
|
|
7987
|
-
return /* @__PURE__ */
|
|
8005
|
+
return /* @__PURE__ */ jsxs38(
|
|
7988
8006
|
Paper4,
|
|
7989
8007
|
{
|
|
7990
8008
|
elevation: 0,
|
|
@@ -8003,8 +8021,8 @@ var WorkflowSideInspector = ({
|
|
|
8003
8021
|
},
|
|
8004
8022
|
...paperProps,
|
|
8005
8023
|
children: [
|
|
8006
|
-
/* @__PURE__ */
|
|
8007
|
-
/* @__PURE__ */
|
|
8024
|
+
/* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1.25 }, children: [
|
|
8025
|
+
/* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
|
|
8008
8026
|
/* @__PURE__ */ jsx74(Typography26, { variant: "subtitle1", sx: { color: deploymentSurfaceTokens.textPrimary }, children: title }),
|
|
8009
8027
|
/* @__PURE__ */ jsx74(
|
|
8010
8028
|
IconButton15,
|
|
@@ -8021,8 +8039,8 @@ var WorkflowSideInspector = ({
|
|
|
8021
8039
|
] }),
|
|
8022
8040
|
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } })
|
|
8023
8041
|
] }),
|
|
8024
|
-
/* @__PURE__ */
|
|
8025
|
-
/* @__PURE__ */
|
|
8042
|
+
/* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", flexDirection: "column", gap: 3, flex: 1 }, children: [
|
|
8043
|
+
/* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
8026
8044
|
/* @__PURE__ */ jsx74(
|
|
8027
8045
|
Typography26,
|
|
8028
8046
|
{
|
|
@@ -8032,7 +8050,7 @@ var WorkflowSideInspector = ({
|
|
|
8032
8050
|
}
|
|
8033
8051
|
),
|
|
8034
8052
|
/* @__PURE__ */ jsx74(Typography26, { variant: "body2", sx: { color: chrome.mutedText }, children: nodeDescription }),
|
|
8035
|
-
/* @__PURE__ */
|
|
8053
|
+
/* @__PURE__ */ jsxs38(
|
|
8036
8054
|
Box32,
|
|
8037
8055
|
{
|
|
8038
8056
|
sx: {
|
|
@@ -8044,7 +8062,7 @@ var WorkflowSideInspector = ({
|
|
|
8044
8062
|
py: 0.5,
|
|
8045
8063
|
borderRadius: "999px",
|
|
8046
8064
|
border: `1px solid ${accent}`,
|
|
8047
|
-
backgroundColor:
|
|
8065
|
+
backgroundColor: alpha4(accent, 0.12)
|
|
8048
8066
|
},
|
|
8049
8067
|
children: [
|
|
8050
8068
|
/* @__PURE__ */ jsx74(
|
|
@@ -8064,14 +8082,14 @@ var WorkflowSideInspector = ({
|
|
|
8064
8082
|
)
|
|
8065
8083
|
] }),
|
|
8066
8084
|
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } }),
|
|
8067
|
-
(showInput || showOutput) && /* @__PURE__ */
|
|
8068
|
-
/* @__PURE__ */
|
|
8085
|
+
(showInput || showOutput) && /* @__PURE__ */ jsxs38(Fragment13, { children: [
|
|
8086
|
+
/* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
8069
8087
|
showInput && /* @__PURE__ */ jsx74(InfoBlock, { label: "Input", value: inputValue, mutedColor: chrome.mutedText }),
|
|
8070
8088
|
showOutput && /* @__PURE__ */ jsx74(InfoBlock, { label: "Output", value: outputValue, mutedColor: chrome.mutedText })
|
|
8071
8089
|
] }),
|
|
8072
8090
|
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } })
|
|
8073
8091
|
] }),
|
|
8074
|
-
/* @__PURE__ */
|
|
8092
|
+
/* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", flexDirection: "column", gap: 1 }, children: [
|
|
8075
8093
|
/* @__PURE__ */ jsx74(Typography26, { variant: "body2", sx: { color: chrome.mutedText }, children: "Cubby ID" }),
|
|
8076
8094
|
/* @__PURE__ */ jsx74(
|
|
8077
8095
|
Button,
|
|
@@ -8086,8 +8104,8 @@ var WorkflowSideInspector = ({
|
|
|
8086
8104
|
)
|
|
8087
8105
|
] }),
|
|
8088
8106
|
/* @__PURE__ */ jsx74(Divider8, { sx: { borderColor: chrome.divider } }),
|
|
8089
|
-
(showTimestamp || showDuration) && /* @__PURE__ */
|
|
8090
|
-
/* @__PURE__ */
|
|
8107
|
+
(showTimestamp || showDuration) && /* @__PURE__ */ jsxs38(Fragment13, { children: [
|
|
8108
|
+
/* @__PURE__ */ jsxs38(Box32, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
8091
8109
|
showTimestamp && /* @__PURE__ */ jsx74(InfoBlock, { label: "Timestamp", value: timestamp, mutedColor: chrome.mutedText }),
|
|
8092
8110
|
showDuration && /* @__PURE__ */ jsx74(InfoBlock, { label: "Duration", value: duration, mutedColor: chrome.mutedText })
|
|
8093
8111
|
] }),
|
|
@@ -8113,7 +8131,7 @@ import ChevronLeftIcon4 from "@mui/icons-material/ChevronLeft";
|
|
|
8113
8131
|
import ChevronRightIcon5 from "@mui/icons-material/ChevronRight";
|
|
8114
8132
|
import ReplayIcon from "@mui/icons-material/Replay";
|
|
8115
8133
|
import { useTheme as useTheme8 } from "@mui/material/styles";
|
|
8116
|
-
import { jsx as jsx75, jsxs as
|
|
8134
|
+
import { jsx as jsx75, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8117
8135
|
var SpeedButton = ({ value, selected, onClick }) => /* @__PURE__ */ jsx75(
|
|
8118
8136
|
Button,
|
|
8119
8137
|
{
|
|
@@ -8150,7 +8168,7 @@ var WorkflowTimeBar = ({
|
|
|
8150
8168
|
const boundedProgress = Math.max(0, Math.min(100, progress));
|
|
8151
8169
|
const atFirstStep = currentStep <= 1;
|
|
8152
8170
|
const atLastStep = currentStep >= totalSteps;
|
|
8153
|
-
return /* @__PURE__ */
|
|
8171
|
+
return /* @__PURE__ */ jsxs39(
|
|
8154
8172
|
Box33,
|
|
8155
8173
|
{
|
|
8156
8174
|
sx: [
|
|
@@ -8168,7 +8186,7 @@ var WorkflowTimeBar = ({
|
|
|
8168
8186
|
...boxProps,
|
|
8169
8187
|
children: [
|
|
8170
8188
|
/* @__PURE__ */ jsx75(Divider9, { sx: { borderColor: deploymentSurfaceTokens.strokeOutside } }),
|
|
8171
|
-
/* @__PURE__ */
|
|
8189
|
+
/* @__PURE__ */ jsxs39(Box33, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
|
|
8172
8190
|
/* @__PURE__ */ jsx75(
|
|
8173
8191
|
IconButton16,
|
|
8174
8192
|
{
|
|
@@ -8185,7 +8203,7 @@ var WorkflowTimeBar = ({
|
|
|
8185
8203
|
children: /* @__PURE__ */ jsx75(StopIcon, { sx: { fontSize: 16 } })
|
|
8186
8204
|
}
|
|
8187
8205
|
),
|
|
8188
|
-
/* @__PURE__ */
|
|
8206
|
+
/* @__PURE__ */ jsxs39(Box33, { sx: { flex: 1, minWidth: 220, px: 1 }, children: [
|
|
8189
8207
|
/* @__PURE__ */ jsx75(
|
|
8190
8208
|
Typography27,
|
|
8191
8209
|
{
|
|
@@ -8210,8 +8228,8 @@ var WorkflowTimeBar = ({
|
|
|
8210
8228
|
}
|
|
8211
8229
|
)
|
|
8212
8230
|
] }),
|
|
8213
|
-
/* @__PURE__ */
|
|
8214
|
-
/* @__PURE__ */
|
|
8231
|
+
/* @__PURE__ */ jsxs39(Box33, { sx: { display: "flex", alignItems: "center", gap: 3 }, children: [
|
|
8232
|
+
/* @__PURE__ */ jsxs39(Box33, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8215
8233
|
/* @__PURE__ */ jsx75(Typography27, { variant: "subtitle1", sx: { fontWeight: 500 }, children: "Steps" }),
|
|
8216
8234
|
/* @__PURE__ */ jsx75(
|
|
8217
8235
|
IconButton16,
|
|
@@ -8237,7 +8255,7 @@ var WorkflowTimeBar = ({
|
|
|
8237
8255
|
}
|
|
8238
8256
|
)
|
|
8239
8257
|
] }),
|
|
8240
|
-
/* @__PURE__ */
|
|
8258
|
+
/* @__PURE__ */ jsxs39(Box33, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8241
8259
|
/* @__PURE__ */ jsx75(Typography27, { variant: "subtitle1", sx: { fontWeight: 500 }, children: "Speed" }),
|
|
8242
8260
|
speedOptions.map((option) => /* @__PURE__ */ jsx75(
|
|
8243
8261
|
SpeedButton,
|
|
@@ -8260,8 +8278,8 @@ var WorkflowTimeBar = ({
|
|
|
8260
8278
|
// src/components/icons/ActivityAppIcon.tsx
|
|
8261
8279
|
import { memo as memo2 } from "react";
|
|
8262
8280
|
import { SvgIcon as SvgIcon2 } from "@mui/material";
|
|
8263
|
-
import { jsx as jsx76, jsxs as
|
|
8264
|
-
var ActivityAppIcon = memo2((props) => /* @__PURE__ */
|
|
8281
|
+
import { jsx as jsx76, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
8282
|
+
var ActivityAppIcon = memo2((props) => /* @__PURE__ */ jsxs40(SvgIcon2, { ...props, viewBox: "0 0 36 36", children: [
|
|
8265
8283
|
/* @__PURE__ */ jsx76("rect", { fill: "none", stroke: "currentColor", width: 34, height: 34, x: 1, y: 1, strokeWidth: 1.5, rx: 6.8 }),
|
|
8266
8284
|
/* @__PURE__ */ jsx76(
|
|
8267
8285
|
"rect",
|
|
@@ -8337,9 +8355,9 @@ var RightArrowIcon = (props) => {
|
|
|
8337
8355
|
|
|
8338
8356
|
// src/components/icons/AvatarIcon.tsx
|
|
8339
8357
|
import { SvgIcon as SvgIcon5 } from "@mui/material";
|
|
8340
|
-
import { jsx as jsx79, jsxs as
|
|
8358
|
+
import { jsx as jsx79, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
8341
8359
|
var AvatarIcon = (props) => {
|
|
8342
|
-
return /* @__PURE__ */
|
|
8360
|
+
return /* @__PURE__ */ jsxs41(SvgIcon5, { ...props, viewBox: "0 0 16 16", children: [
|
|
8343
8361
|
/* @__PURE__ */ jsx79(
|
|
8344
8362
|
"path",
|
|
8345
8363
|
{
|
|
@@ -8364,8 +8382,8 @@ var AvatarIcon = (props) => {
|
|
|
8364
8382
|
// src/components/icons/BarTrackingIcon.tsx
|
|
8365
8383
|
import { memo as memo3 } from "react";
|
|
8366
8384
|
import { SvgIcon as SvgIcon6 } from "@mui/material";
|
|
8367
|
-
import { jsx as jsx80, jsxs as
|
|
8368
|
-
var BarTrackingIcon = memo3((props) => /* @__PURE__ */
|
|
8385
|
+
import { jsx as jsx80, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
8386
|
+
var BarTrackingIcon = memo3((props) => /* @__PURE__ */ jsxs42(SvgIcon6, { ...props, viewBox: "0 0 96 97", children: [
|
|
8369
8387
|
/* @__PURE__ */ jsx80(
|
|
8370
8388
|
"rect",
|
|
8371
8389
|
{
|
|
@@ -8437,8 +8455,8 @@ var ClockIcon = memo4((props) => /* @__PURE__ */ jsx81(SvgIcon7, { ...props, vie
|
|
|
8437
8455
|
// src/components/icons/CloudFlashIcon.tsx
|
|
8438
8456
|
import { memo as memo5 } from "react";
|
|
8439
8457
|
import { SvgIcon as SvgIcon8 } from "@mui/material";
|
|
8440
|
-
import { jsx as jsx82, jsxs as
|
|
8441
|
-
var CloudFlashIcon = memo5((props) => /* @__PURE__ */
|
|
8458
|
+
import { jsx as jsx82, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
8459
|
+
var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs43(SvgIcon8, { ...props, fill: "none", viewBox: "0 0 96 97", children: [
|
|
8442
8460
|
/* @__PURE__ */ jsx82(
|
|
8443
8461
|
"path",
|
|
8444
8462
|
{
|
|
@@ -8462,8 +8480,8 @@ var CloudFlashIcon = memo5((props) => /* @__PURE__ */ jsxs44(SvgIcon8, { ...prop
|
|
|
8462
8480
|
// src/components/icons/DecentralizedServerIcon.tsx
|
|
8463
8481
|
import { memo as memo6 } from "react";
|
|
8464
8482
|
import { SvgIcon as SvgIcon9 } from "@mui/material";
|
|
8465
|
-
import { jsx as jsx83, jsxs as
|
|
8466
|
-
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */
|
|
8483
|
+
import { jsx as jsx83, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
8484
|
+
var DecentralizedServerIcon = memo6((props) => /* @__PURE__ */ jsxs44(SvgIcon9, { ...props, viewBox: "0 0 96 97", children: [
|
|
8467
8485
|
/* @__PURE__ */ jsx83(
|
|
8468
8486
|
"path",
|
|
8469
8487
|
{
|
|
@@ -8649,8 +8667,8 @@ var DiscordIcon = memo7((props) => /* @__PURE__ */ jsx84(SvgIcon10, { ...props,
|
|
|
8649
8667
|
// src/components/icons/DownloadIcon.tsx
|
|
8650
8668
|
import { memo as memo8 } from "react";
|
|
8651
8669
|
import { SvgIcon as SvgIcon11 } from "@mui/material";
|
|
8652
|
-
import { jsx as jsx85, jsxs as
|
|
8653
|
-
var DownloadIcon = memo8((props) => /* @__PURE__ */
|
|
8670
|
+
import { jsx as jsx85, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
8671
|
+
var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs45(SvgIcon11, { ...props, viewBox: "0 0 17 16", fill: "none", children: [
|
|
8654
8672
|
/* @__PURE__ */ jsx85(
|
|
8655
8673
|
"path",
|
|
8656
8674
|
{
|
|
@@ -8670,8 +8688,8 @@ var DownloadIcon = memo8((props) => /* @__PURE__ */ jsxs46(SvgIcon11, { ...props
|
|
|
8670
8688
|
// src/components/icons/FilledFolderIcon.tsx
|
|
8671
8689
|
import { memo as memo9 } from "react";
|
|
8672
8690
|
import { SvgIcon as SvgIcon12 } from "@mui/material";
|
|
8673
|
-
import { jsx as jsx86, jsxs as
|
|
8674
|
-
var FilledFolderIcon = memo9((props) => /* @__PURE__ */
|
|
8691
|
+
import { jsx as jsx86, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
8692
|
+
var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs46(SvgIcon12, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
8675
8693
|
/* @__PURE__ */ jsx86("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#FCF8EC" }),
|
|
8676
8694
|
/* @__PURE__ */ jsx86("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E1B43E" }),
|
|
8677
8695
|
/* @__PURE__ */ jsx86(
|
|
@@ -8688,8 +8706,8 @@ var FilledFolderIcon = memo9((props) => /* @__PURE__ */ jsxs47(SvgIcon12, { sx:
|
|
|
8688
8706
|
// src/components/icons/FolderIcon.tsx
|
|
8689
8707
|
import { memo as memo10 } from "react";
|
|
8690
8708
|
import { SvgIcon as SvgIcon13 } from "@mui/material";
|
|
8691
|
-
import { jsx as jsx87, jsxs as
|
|
8692
|
-
var FolderIcon = memo10((props) => /* @__PURE__ */
|
|
8709
|
+
import { jsx as jsx87, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
8710
|
+
var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs47(SvgIcon13, { sx: { fill: "none" }, ...props, fill: "none", viewBox: "0 0 22 22", children: [
|
|
8693
8711
|
/* @__PURE__ */ jsx87("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", fill: "#F5F7FA" }),
|
|
8694
8712
|
/* @__PURE__ */ jsx87("rect", { x: "0.5", y: "0.5", width: "21", height: "21", rx: "4.5", stroke: "#E6E6E6" }),
|
|
8695
8713
|
/* @__PURE__ */ jsx87(
|
|
@@ -8708,8 +8726,8 @@ var FolderIcon = memo10((props) => /* @__PURE__ */ jsxs48(SvgIcon13, { sx: { fil
|
|
|
8708
8726
|
// src/components/icons/GithubLogoIcon.tsx
|
|
8709
8727
|
import { memo as memo11 } from "react";
|
|
8710
8728
|
import { SvgIcon as SvgIcon14 } from "@mui/material";
|
|
8711
|
-
import { jsx as jsx88, jsxs as
|
|
8712
|
-
var GithubLogoIcon = memo11((props) => /* @__PURE__ */
|
|
8729
|
+
import { jsx as jsx88, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
8730
|
+
var GithubLogoIcon = memo11((props) => /* @__PURE__ */ jsxs48(SvgIcon14, { ...props, viewBox: "0 0 17 16", sx: { fill: "none" }, children: [
|
|
8713
8731
|
/* @__PURE__ */ jsx88(
|
|
8714
8732
|
"path",
|
|
8715
8733
|
{
|
|
@@ -8743,8 +8761,8 @@ var ShareIcon = memo12((props) => /* @__PURE__ */ jsx89(SvgIcon15, { ...props, v
|
|
|
8743
8761
|
// src/components/icons/StorageAppIcon.tsx
|
|
8744
8762
|
import { memo as memo13 } from "react";
|
|
8745
8763
|
import { SvgIcon as SvgIcon16 } from "@mui/material";
|
|
8746
|
-
import { jsx as jsx90, jsxs as
|
|
8747
|
-
var StorageAppIcon = memo13((props) => /* @__PURE__ */
|
|
8764
|
+
import { jsx as jsx90, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8765
|
+
var StorageAppIcon = memo13((props) => /* @__PURE__ */ jsxs49(SvgIcon16, { ...props, viewBox: "0 0 38 29", fill: "none", children: [
|
|
8748
8766
|
/* @__PURE__ */ jsx90(
|
|
8749
8767
|
"path",
|
|
8750
8768
|
{
|
|
@@ -8912,7 +8930,7 @@ import { Box as Box35, Stack as Stack5, Typography as Typography28, styled as st
|
|
|
8912
8930
|
import { LineChart } from "@mui/x-charts";
|
|
8913
8931
|
import size2 from "byte-size";
|
|
8914
8932
|
import { format } from "date-fns";
|
|
8915
|
-
import { jsx as jsx98, jsxs as
|
|
8933
|
+
import { jsx as jsx98, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8916
8934
|
var Chart = styled44(Box35)(() => ({
|
|
8917
8935
|
height: 200
|
|
8918
8936
|
}));
|
|
@@ -8923,7 +8941,7 @@ var ChartWidget = ({
|
|
|
8923
8941
|
formatValue = (value2) => size2(value2 || 0).toString()
|
|
8924
8942
|
}) => {
|
|
8925
8943
|
const theme2 = useTheme9();
|
|
8926
|
-
return /* @__PURE__ */
|
|
8944
|
+
return /* @__PURE__ */ jsxs50(Stack5, { spacing: 1, children: [
|
|
8927
8945
|
/* @__PURE__ */ jsx98(Typography28, { variant: "caption", color: "text.secondary", children: title }),
|
|
8928
8946
|
/* @__PURE__ */ jsx98(Typography28, { fontWeight: "bold", children: value }),
|
|
8929
8947
|
/* @__PURE__ */ jsx98(Chart, { children: /* @__PURE__ */ jsx98(
|
|
@@ -9011,8 +9029,8 @@ var PeriodSelect = ({ value, onChange }) => /* @__PURE__ */ jsx99(
|
|
|
9011
9029
|
);
|
|
9012
9030
|
|
|
9013
9031
|
// src/components/charts/MetricsChart/MetricsChart.tsx
|
|
9014
|
-
import { useMemo, useState as useState13 } from "react";
|
|
9015
|
-
import { jsx as jsx100, jsxs as
|
|
9032
|
+
import { useMemo as useMemo2, useState as useState13 } from "react";
|
|
9033
|
+
import { jsx as jsx100, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
9016
9034
|
var mapPeriodToFromDate = (period = "month") => {
|
|
9017
9035
|
const date = /* @__PURE__ */ new Date();
|
|
9018
9036
|
if (period === "hour") {
|
|
@@ -9043,12 +9061,12 @@ var LoadingText = styled45("text")(({ theme: theme2 }) => ({
|
|
|
9043
9061
|
var MetricsChart = ({ history = [] }) => {
|
|
9044
9062
|
const theme2 = useTheme10();
|
|
9045
9063
|
const [period, setPeriod] = useState13("week");
|
|
9046
|
-
const periodFrom =
|
|
9047
|
-
const periodHistory =
|
|
9064
|
+
const periodFrom = useMemo2(() => mapPeriodToFromDate(period), [period]);
|
|
9065
|
+
const periodHistory = useMemo2(
|
|
9048
9066
|
() => history.filter((record) => record.recordTime > periodFrom),
|
|
9049
9067
|
[history, periodFrom]
|
|
9050
9068
|
);
|
|
9051
|
-
const total =
|
|
9069
|
+
const total = useMemo2(
|
|
9052
9070
|
() => periodHistory.reduce(
|
|
9053
9071
|
(acc, record) => ({
|
|
9054
9072
|
gets: acc.gets + record.gets,
|
|
@@ -9072,14 +9090,14 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
9072
9090
|
const backgroundHeight = textHeight + padding.top + padding.bottom;
|
|
9073
9091
|
const rectX = left + (width - backgroundWidth) / 2;
|
|
9074
9092
|
const rectY = top + (height - backgroundHeight) / 2;
|
|
9075
|
-
return /* @__PURE__ */
|
|
9093
|
+
return /* @__PURE__ */ jsxs51("g", { children: [
|
|
9076
9094
|
/* @__PURE__ */ jsx100(NoDataRect, { x: rectX, y: rectY, width: backgroundWidth, height: backgroundHeight }),
|
|
9077
9095
|
/* @__PURE__ */ jsx100(LoadingText, { style: { ...theme2.typography.subtitle1 }, x: left + width / 2, y: top + height / 2, children: text })
|
|
9078
9096
|
] });
|
|
9079
9097
|
};
|
|
9080
|
-
return /* @__PURE__ */
|
|
9098
|
+
return /* @__PURE__ */ jsxs51(Card2, { children: [
|
|
9081
9099
|
/* @__PURE__ */ jsx100(CardHeader2, { title: "GET / PUT Requests", action: /* @__PURE__ */ jsx100(PeriodSelect, { value: period, onChange: setPeriod }) }),
|
|
9082
|
-
/* @__PURE__ */
|
|
9100
|
+
/* @__PURE__ */ jsxs51(CardMedia2, { children: [
|
|
9083
9101
|
/* @__PURE__ */ jsx100(
|
|
9084
9102
|
Chart2,
|
|
9085
9103
|
{
|
|
@@ -9141,33 +9159,33 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
9141
9159
|
]
|
|
9142
9160
|
}
|
|
9143
9161
|
),
|
|
9144
|
-
periodHistory.length > 0 && /* @__PURE__ */
|
|
9145
|
-
/* @__PURE__ */
|
|
9162
|
+
periodHistory.length > 0 && /* @__PURE__ */ jsxs51(Stack6, { direction: "row", spacing: 2, marginY: 3, justifyContent: "center", children: [
|
|
9163
|
+
/* @__PURE__ */ jsxs51(Stack6, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
9146
9164
|
/* @__PURE__ */ jsx100(Box36, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.primary.main } }),
|
|
9147
9165
|
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", children: "Get" })
|
|
9148
9166
|
] }),
|
|
9149
|
-
/* @__PURE__ */
|
|
9167
|
+
/* @__PURE__ */ jsxs51(Stack6, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
9150
9168
|
/* @__PURE__ */ jsx100(Box36, { sx: { width: 14, height: 14, borderRadius: "4px", backgroundColor: theme2.palette.success.main } }),
|
|
9151
9169
|
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", children: "Put" })
|
|
9152
9170
|
] })
|
|
9153
9171
|
] })
|
|
9154
9172
|
] }),
|
|
9155
|
-
/* @__PURE__ */
|
|
9173
|
+
/* @__PURE__ */ jsxs51(CardMedia2, { children: [
|
|
9156
9174
|
/* @__PURE__ */ jsx100(Divider10, { flexItem: true }),
|
|
9157
|
-
/* @__PURE__ */
|
|
9158
|
-
/* @__PURE__ */
|
|
9175
|
+
/* @__PURE__ */ jsxs51(Stack6, { direction: "row", spacing: 2, padding: 2, children: [
|
|
9176
|
+
/* @__PURE__ */ jsxs51(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9159
9177
|
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "GET Requests per account" }),
|
|
9160
9178
|
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: total.gets })
|
|
9161
9179
|
] }),
|
|
9162
|
-
/* @__PURE__ */
|
|
9180
|
+
/* @__PURE__ */ jsxs51(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9163
9181
|
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "PUT Requests per account" }),
|
|
9164
9182
|
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: total.puts })
|
|
9165
9183
|
] }),
|
|
9166
|
-
/* @__PURE__ */
|
|
9184
|
+
/* @__PURE__ */ jsxs51(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9167
9185
|
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "Total Consumed per account" }),
|
|
9168
9186
|
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: /* @__PURE__ */ jsx100(BytesSize, { bytes: total.transferredBytes }) })
|
|
9169
9187
|
] }),
|
|
9170
|
-
/* @__PURE__ */
|
|
9188
|
+
/* @__PURE__ */ jsxs51(Stack6, { direction: "row", alignItems: "center", spacing: 1, children: [
|
|
9171
9189
|
/* @__PURE__ */ jsx100(Typography29, { variant: "body2", color: "secondary", children: "Total Stored per account" }),
|
|
9172
9190
|
/* @__PURE__ */ jsx100(Typography29, { variant: "h3", children: /* @__PURE__ */ jsx100(BytesSize, { bytes: total.storedBytes }) })
|
|
9173
9191
|
] })
|
|
@@ -9177,7 +9195,7 @@ var MetricsChart = ({ history = [] }) => {
|
|
|
9177
9195
|
};
|
|
9178
9196
|
|
|
9179
9197
|
// src/components/charts/TimeSeriesGraph/TimeSeriesGraph.tsx
|
|
9180
|
-
import { useCallback as useCallback6, useMemo as
|
|
9198
|
+
import { useCallback as useCallback6, useMemo as useMemo3, useState as useState14 } from "react";
|
|
9181
9199
|
import {
|
|
9182
9200
|
Box as Box37,
|
|
9183
9201
|
Card as Card3,
|
|
@@ -9211,7 +9229,7 @@ var TimeRangeSelect = ({ options: options2, value, onChange }) => /* @__PURE__ *
|
|
|
9211
9229
|
|
|
9212
9230
|
// src/components/charts/TimeSeriesGraph/SummaryStats.tsx
|
|
9213
9231
|
import { Stack as Stack7, Typography as Typography30 } from "@mui/material";
|
|
9214
|
-
import { jsx as jsx102, jsxs as
|
|
9232
|
+
import { jsx as jsx102, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
9215
9233
|
var formatSummaryValue = (value, unit) => {
|
|
9216
9234
|
const displayValue = typeof value === "number" ? value.toLocaleString() : value;
|
|
9217
9235
|
return unit ? `${displayValue} ${unit}` : displayValue;
|
|
@@ -9230,7 +9248,7 @@ var SummaryStats = ({ items }) => {
|
|
|
9230
9248
|
useFlexGap: true,
|
|
9231
9249
|
role: "list",
|
|
9232
9250
|
"aria-label": "Summary statistics",
|
|
9233
|
-
children: items.map((item) => /* @__PURE__ */
|
|
9251
|
+
children: items.map((item) => /* @__PURE__ */ jsxs52(
|
|
9234
9252
|
Stack7,
|
|
9235
9253
|
{
|
|
9236
9254
|
direction: "row",
|
|
@@ -9249,7 +9267,7 @@ var SummaryStats = ({ items }) => {
|
|
|
9249
9267
|
};
|
|
9250
9268
|
|
|
9251
9269
|
// src/components/charts/TimeSeriesGraph/TimeSeriesGraph.tsx
|
|
9252
|
-
import { Fragment as Fragment15, jsx as jsx103, jsxs as
|
|
9270
|
+
import { Fragment as Fragment15, jsx as jsx103, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
9253
9271
|
var ChartContainer = styled46(Box37)({
|
|
9254
9272
|
position: "relative",
|
|
9255
9273
|
height: 320
|
|
@@ -9322,12 +9340,12 @@ var TimeSeriesGraph = ({
|
|
|
9322
9340
|
}) => {
|
|
9323
9341
|
const theme2 = useTheme11();
|
|
9324
9342
|
const [hiddenSeries, setHiddenSeries] = useState14(/* @__PURE__ */ new Set());
|
|
9325
|
-
const dataset =
|
|
9326
|
-
const visibleSeries =
|
|
9343
|
+
const dataset = useMemo3(() => buildDataset(series, hiddenSeries), [series, hiddenSeries]);
|
|
9344
|
+
const visibleSeries = useMemo3(
|
|
9327
9345
|
() => series.filter((s) => !hiddenSeries.has(s.name)),
|
|
9328
9346
|
[series, hiddenSeries]
|
|
9329
9347
|
);
|
|
9330
|
-
const chartColors =
|
|
9348
|
+
const chartColors = useMemo3(() => visibleSeries.map((s) => s.color), [visibleSeries]);
|
|
9331
9349
|
const handleLegendToggle = useCallback6((seriesName) => {
|
|
9332
9350
|
setHiddenSeries((prev) => {
|
|
9333
9351
|
const next = new Set(prev);
|
|
@@ -9339,7 +9357,7 @@ var TimeSeriesGraph = ({
|
|
|
9339
9357
|
return next;
|
|
9340
9358
|
});
|
|
9341
9359
|
}, []);
|
|
9342
|
-
const timeBounds =
|
|
9360
|
+
const timeBounds = useMemo3(() => {
|
|
9343
9361
|
if (dataset.length === 0) return { min: void 0, max: void 0 };
|
|
9344
9362
|
const timestamps = dataset.map((row) => row.timestamp.getTime());
|
|
9345
9363
|
return {
|
|
@@ -9347,13 +9365,13 @@ var TimeSeriesGraph = ({
|
|
|
9347
9365
|
max: new Date(Math.max(...timestamps))
|
|
9348
9366
|
};
|
|
9349
9367
|
}, [dataset]);
|
|
9350
|
-
const resolvedXAxisFormat =
|
|
9368
|
+
const resolvedXAxisFormat = useMemo3(
|
|
9351
9369
|
() => xAxisFormat ?? inferXAxisFormat(timeBounds.min, timeBounds.max),
|
|
9352
9370
|
[xAxisFormat, timeBounds.min, timeBounds.max]
|
|
9353
9371
|
);
|
|
9354
9372
|
const hasData = dataset.length > 0;
|
|
9355
9373
|
const shouldShowSummary = showSummary && summaryItems && summaryItems.length > 0;
|
|
9356
|
-
const headerActionElement = /* @__PURE__ */
|
|
9374
|
+
const headerActionElement = /* @__PURE__ */ jsxs53(Stack8, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
9357
9375
|
headerAction,
|
|
9358
9376
|
timeRangeOptions && timeRangeOptions.length > 0 && /* @__PURE__ */ jsx103(
|
|
9359
9377
|
TimeRangeSelect,
|
|
@@ -9365,7 +9383,7 @@ var TimeSeriesGraph = ({
|
|
|
9365
9383
|
)
|
|
9366
9384
|
] });
|
|
9367
9385
|
const showHeader = !!title || !!headerAction || timeRangeOptions && timeRangeOptions.length > 0;
|
|
9368
|
-
return /* @__PURE__ */
|
|
9386
|
+
return /* @__PURE__ */ jsxs53(
|
|
9369
9387
|
Card3,
|
|
9370
9388
|
{
|
|
9371
9389
|
"aria-label": title ? `Line chart showing ${title}` : "Line chart",
|
|
@@ -9382,8 +9400,8 @@ var TimeSeriesGraph = ({
|
|
|
9382
9400
|
action: headerActionElement
|
|
9383
9401
|
}
|
|
9384
9402
|
),
|
|
9385
|
-
/* @__PURE__ */
|
|
9386
|
-
/* @__PURE__ */
|
|
9403
|
+
/* @__PURE__ */ jsxs53(CardMedia3, { children: [
|
|
9404
|
+
/* @__PURE__ */ jsxs53(ChartContainer, { children: [
|
|
9387
9405
|
loading && /* @__PURE__ */ jsx103(LoadingOverlay, { role: "status", "aria-label": "Loading chart data", children: /* @__PURE__ */ jsx103(CircularProgress7, { size: 40 }) }),
|
|
9388
9406
|
/* @__PURE__ */ jsx103(
|
|
9389
9407
|
LineChart3,
|
|
@@ -9450,7 +9468,7 @@ var TimeSeriesGraph = ({
|
|
|
9450
9468
|
"aria-label": "Chart legend",
|
|
9451
9469
|
children: series.map((s) => {
|
|
9452
9470
|
const isHidden = hiddenSeries.has(s.name);
|
|
9453
|
-
return /* @__PURE__ */
|
|
9471
|
+
return /* @__PURE__ */ jsxs53(
|
|
9454
9472
|
Stack8,
|
|
9455
9473
|
{
|
|
9456
9474
|
direction: "row",
|
|
@@ -9477,7 +9495,7 @@ var TimeSeriesGraph = ({
|
|
|
9477
9495
|
}
|
|
9478
9496
|
)
|
|
9479
9497
|
] }),
|
|
9480
|
-
shouldShowSummary && /* @__PURE__ */
|
|
9498
|
+
shouldShowSummary && /* @__PURE__ */ jsxs53(Fragment15, { children: [
|
|
9481
9499
|
/* @__PURE__ */ jsx103(Divider11, {}),
|
|
9482
9500
|
/* @__PURE__ */ jsx103(SummaryStats, { items: summaryItems })
|
|
9483
9501
|
] })
|
|
@@ -9499,7 +9517,7 @@ import ReactFlow, {
|
|
|
9499
9517
|
import { Box as Box38 } from "@mui/material";
|
|
9500
9518
|
import { useTheme as useTheme12 } from "@mui/material/styles";
|
|
9501
9519
|
import { Background as Background2, Controls as Controls2, MiniMap as MiniMap2, Panel, BackgroundVariant as BackgroundVariant2, ConnectionLineType as ConnectionLineType2 } from "reactflow";
|
|
9502
|
-
import { jsx as jsx104, jsxs as
|
|
9520
|
+
import { jsx as jsx104, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
9503
9521
|
var FlowEditor = ({
|
|
9504
9522
|
nodes,
|
|
9505
9523
|
edges,
|
|
@@ -9545,7 +9563,7 @@ var FlowEditor = ({
|
|
|
9545
9563
|
...Array.isArray(containerSx) ? containerSx : [containerSx]
|
|
9546
9564
|
],
|
|
9547
9565
|
...restContainerProps,
|
|
9548
|
-
children: /* @__PURE__ */
|
|
9566
|
+
children: /* @__PURE__ */ jsxs54(
|
|
9549
9567
|
ReactFlow,
|
|
9550
9568
|
{
|
|
9551
9569
|
nodes,
|
|
@@ -9610,7 +9628,7 @@ import FullscreenExitIcon from "@mui/icons-material/FullscreenExit";
|
|
|
9610
9628
|
import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
|
|
9611
9629
|
import ExpandMoreIcon3 from "@mui/icons-material/ExpandMore";
|
|
9612
9630
|
import ExpandLessIcon from "@mui/icons-material/ExpandLess";
|
|
9613
|
-
import { jsx as jsx105, jsxs as
|
|
9631
|
+
import { jsx as jsx105, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
9614
9632
|
var configureTypeScript = (monaco) => {
|
|
9615
9633
|
monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
|
|
9616
9634
|
target: monaco.languages.typescript.ScriptTarget.ES2020,
|
|
@@ -9849,7 +9867,7 @@ var CodeEditor = ({
|
|
|
9849
9867
|
pb: isFullscreen ? 2 : 0,
|
|
9850
9868
|
overflow: isFullscreen ? "hidden" : "visible"
|
|
9851
9869
|
},
|
|
9852
|
-
children: /* @__PURE__ */
|
|
9870
|
+
children: /* @__PURE__ */ jsxs55(
|
|
9853
9871
|
Box39,
|
|
9854
9872
|
{
|
|
9855
9873
|
sx: {
|
|
@@ -9917,7 +9935,7 @@ var CodeEditor = ({
|
|
|
9917
9935
|
)
|
|
9918
9936
|
}
|
|
9919
9937
|
),
|
|
9920
|
-
validationErrors.length > 0 && /* @__PURE__ */
|
|
9938
|
+
validationErrors.length > 0 && /* @__PURE__ */ jsxs55(
|
|
9921
9939
|
Box39,
|
|
9922
9940
|
{
|
|
9923
9941
|
sx: {
|
|
@@ -9931,7 +9949,7 @@ var CodeEditor = ({
|
|
|
9931
9949
|
transition: "max-height 0.2s ease"
|
|
9932
9950
|
},
|
|
9933
9951
|
children: [
|
|
9934
|
-
/* @__PURE__ */
|
|
9952
|
+
/* @__PURE__ */ jsxs55(
|
|
9935
9953
|
Box39,
|
|
9936
9954
|
{
|
|
9937
9955
|
sx: {
|
|
@@ -9948,7 +9966,7 @@ var CodeEditor = ({
|
|
|
9948
9966
|
children: [
|
|
9949
9967
|
/* @__PURE__ */ jsx105(ErrorOutlineIcon, { color: "error", fontSize: "small" }),
|
|
9950
9968
|
/* @__PURE__ */ jsx105(Box39, { sx: { fontWeight: 600, color: "text.primary" }, children: "Problems" }),
|
|
9951
|
-
/* @__PURE__ */
|
|
9969
|
+
/* @__PURE__ */ jsxs55(Box39, { sx: { ml: 1 }, children: [
|
|
9952
9970
|
validationErrors.length,
|
|
9953
9971
|
" error",
|
|
9954
9972
|
validationErrors.length > 1 ? "s" : ""
|
|
@@ -9969,7 +9987,7 @@ var CodeEditor = ({
|
|
|
9969
9987
|
]
|
|
9970
9988
|
}
|
|
9971
9989
|
),
|
|
9972
|
-
showProblems && /* @__PURE__ */ jsx105(Box39, { sx: { overflow: "auto" }, children: validationErrors.map((error, index) => /* @__PURE__ */
|
|
9990
|
+
showProblems && /* @__PURE__ */ jsx105(Box39, { sx: { overflow: "auto" }, children: validationErrors.map((error, index) => /* @__PURE__ */ jsxs55(
|
|
9973
9991
|
Box39,
|
|
9974
9992
|
{
|
|
9975
9993
|
onClick: () => gotoMarker(error),
|
|
@@ -9987,7 +10005,7 @@ var CodeEditor = ({
|
|
|
9987
10005
|
},
|
|
9988
10006
|
children: [
|
|
9989
10007
|
/* @__PURE__ */ jsx105(ErrorOutlineIcon, { color: "error", sx: { fontSize: 18 } }),
|
|
9990
|
-
/* @__PURE__ */
|
|
10008
|
+
/* @__PURE__ */ jsxs55(Box39, { sx: { color: "text.secondary", width: 64 }, children: [
|
|
9991
10009
|
"Line ",
|
|
9992
10010
|
error.startLineNumber
|
|
9993
10011
|
] }),
|
|
@@ -10012,7 +10030,7 @@ import { Panel as Panel2 } from "reactflow";
|
|
|
10012
10030
|
// src/components/third-party/WorkflowNodeHandle.tsx
|
|
10013
10031
|
import { Handle, Position } from "reactflow";
|
|
10014
10032
|
import { useTheme as useTheme13 } from "@mui/material";
|
|
10015
|
-
import { Fragment as Fragment16, jsx as jsx106, jsxs as
|
|
10033
|
+
import { Fragment as Fragment16, jsx as jsx106, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
10016
10034
|
var WorkflowNodeHandle = ({
|
|
10017
10035
|
data,
|
|
10018
10036
|
selected
|
|
@@ -10027,7 +10045,7 @@ var WorkflowNodeHandle = ({
|
|
|
10027
10045
|
background: handleColor,
|
|
10028
10046
|
boxShadow: WORKFLOW_NODE_SHADOW
|
|
10029
10047
|
};
|
|
10030
|
-
return /* @__PURE__ */
|
|
10048
|
+
return /* @__PURE__ */ jsxs56(Fragment16, { children: [
|
|
10031
10049
|
/* @__PURE__ */ jsx106(Handle, { type: "target", position: Position.Left, style: handleStyle }),
|
|
10032
10050
|
/* @__PURE__ */ jsx106(
|
|
10033
10051
|
WorkflowNode,
|
|
@@ -10326,7 +10344,7 @@ function useCodeEditorWorkspace({
|
|
|
10326
10344
|
import React17 from "react";
|
|
10327
10345
|
import { Box as Box40, IconButton as IconButton18, Tooltip as Tooltip9, Typography as Typography32 } from "@mui/material";
|
|
10328
10346
|
import CloseIcon6 from "@mui/icons-material/Close";
|
|
10329
|
-
import { jsx as jsx107, jsxs as
|
|
10347
|
+
import { jsx as jsx107, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
10330
10348
|
var CodeEditorTabs = ({
|
|
10331
10349
|
tabs,
|
|
10332
10350
|
activeTab,
|
|
@@ -10362,7 +10380,7 @@ var CodeEditorTabs = ({
|
|
|
10362
10380
|
onClose: () => onTabClose?.(tab.path)
|
|
10363
10381
|
}) }, tab.path);
|
|
10364
10382
|
}
|
|
10365
|
-
return /* @__PURE__ */
|
|
10383
|
+
return /* @__PURE__ */ jsxs57(
|
|
10366
10384
|
Box40,
|
|
10367
10385
|
{
|
|
10368
10386
|
onClick: () => onTabSelect?.(tab.path),
|
|
@@ -10461,7 +10479,7 @@ import FolderOpenIcon from "@mui/icons-material/FolderOpen";
|
|
|
10461
10479
|
import InsertDriveFileOutlinedIcon from "@mui/icons-material/InsertDriveFileOutlined";
|
|
10462
10480
|
import ExpandMoreIcon4 from "@mui/icons-material/ExpandMore";
|
|
10463
10481
|
import ChevronRightIcon6 from "@mui/icons-material/ChevronRight";
|
|
10464
|
-
import { jsx as jsx108, jsxs as
|
|
10482
|
+
import { jsx as jsx108, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
10465
10483
|
var STATUS_CONFIG = {
|
|
10466
10484
|
new: { label: "N", color: "success.main" },
|
|
10467
10485
|
modified: { label: "M", color: "warning.main" },
|
|
@@ -10510,7 +10528,7 @@ var CodeEditorFileTree = ({
|
|
|
10510
10528
|
const isExpanded = expandedPaths.has(node.path);
|
|
10511
10529
|
const isSelected = node.path === selectedPath;
|
|
10512
10530
|
if (renderNode) {
|
|
10513
|
-
return /* @__PURE__ */
|
|
10531
|
+
return /* @__PURE__ */ jsxs58(React18.Fragment, { children: [
|
|
10514
10532
|
renderNode({
|
|
10515
10533
|
node,
|
|
10516
10534
|
depth,
|
|
@@ -10528,8 +10546,8 @@ var CodeEditorFileTree = ({
|
|
|
10528
10546
|
isFolder && isExpanded && node.children?.map((child) => renderTreeNode(child, depth + 1))
|
|
10529
10547
|
] }, node.path);
|
|
10530
10548
|
}
|
|
10531
|
-
return /* @__PURE__ */
|
|
10532
|
-
/* @__PURE__ */
|
|
10549
|
+
return /* @__PURE__ */ jsxs58(React18.Fragment, { children: [
|
|
10550
|
+
/* @__PURE__ */ jsxs58(
|
|
10533
10551
|
ListItemButton4,
|
|
10534
10552
|
{
|
|
10535
10553
|
selected: isSelected,
|
|
@@ -10616,7 +10634,7 @@ var CodeEditorFileTree = ({
|
|
|
10616
10634
|
|
|
10617
10635
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorStatusBar.tsx
|
|
10618
10636
|
import { Box as Box42, Tooltip as Tooltip10, Typography as Typography33 } from "@mui/material";
|
|
10619
|
-
import { Fragment as Fragment17, jsx as jsx109, jsxs as
|
|
10637
|
+
import { Fragment as Fragment17, jsx as jsx109, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
10620
10638
|
var LANGUAGE_LABELS = {
|
|
10621
10639
|
typescript: "TypeScript",
|
|
10622
10640
|
javascript: "JavaScript",
|
|
@@ -10644,7 +10662,7 @@ var CodeEditorStatusBar = ({
|
|
|
10644
10662
|
}
|
|
10645
10663
|
const leftItems = items?.filter((i) => i.align !== "right") ?? [];
|
|
10646
10664
|
const rightItems = items?.filter((i) => i.align === "right") ?? [];
|
|
10647
|
-
return /* @__PURE__ */
|
|
10665
|
+
return /* @__PURE__ */ jsxs59(
|
|
10648
10666
|
Box42,
|
|
10649
10667
|
{
|
|
10650
10668
|
sx: {
|
|
@@ -10665,7 +10683,7 @@ var CodeEditorStatusBar = ({
|
|
|
10665
10683
|
},
|
|
10666
10684
|
...containerProps,
|
|
10667
10685
|
children: [
|
|
10668
|
-
/* @__PURE__ */
|
|
10686
|
+
/* @__PURE__ */ jsxs59(Box42, { sx: { display: "flex", alignItems: "center", gap: 1.5, overflow: "hidden" }, children: [
|
|
10669
10687
|
gitInfo && /* @__PURE__ */ jsx109(
|
|
10670
10688
|
Tooltip10,
|
|
10671
10689
|
{
|
|
@@ -10676,7 +10694,7 @@ var CodeEditorStatusBar = ({
|
|
|
10676
10694
|
gitInfo.behind != null && `\u2193 ${gitInfo.behind} behind`
|
|
10677
10695
|
].filter(Boolean).join(" \xB7 ") || gitInfo.branch,
|
|
10678
10696
|
enterDelay: 400,
|
|
10679
|
-
children: /* @__PURE__ */
|
|
10697
|
+
children: /* @__PURE__ */ jsxs59(
|
|
10680
10698
|
Box42,
|
|
10681
10699
|
{
|
|
10682
10700
|
onClick: onBranchClick,
|
|
@@ -10736,11 +10754,11 @@ var CodeEditorStatusBar = ({
|
|
|
10736
10754
|
}
|
|
10737
10755
|
}
|
|
10738
10756
|
),
|
|
10739
|
-
gitInfo.ahead != null && gitInfo.ahead > 0 && /* @__PURE__ */
|
|
10757
|
+
gitInfo.ahead != null && gitInfo.ahead > 0 && /* @__PURE__ */ jsxs59(Typography33, { variant: "caption", sx: { fontSize: "inherit", fontFamily: "inherit", color: "inherit", lineHeight: 1, opacity: 0.85 }, children: [
|
|
10740
10758
|
"\u2191",
|
|
10741
10759
|
gitInfo.ahead
|
|
10742
10760
|
] }),
|
|
10743
|
-
gitInfo.behind != null && gitInfo.behind > 0 && /* @__PURE__ */
|
|
10761
|
+
gitInfo.behind != null && gitInfo.behind > 0 && /* @__PURE__ */ jsxs59(Typography33, { variant: "caption", sx: { fontSize: "inherit", fontFamily: "inherit", color: "inherit", lineHeight: 1, opacity: 0.85 }, children: [
|
|
10744
10762
|
"\u2193",
|
|
10745
10763
|
gitInfo.behind
|
|
10746
10764
|
] })
|
|
@@ -10751,9 +10769,9 @@ var CodeEditorStatusBar = ({
|
|
|
10751
10769
|
),
|
|
10752
10770
|
leftItems.map((item) => /* @__PURE__ */ jsx109(StatusBarItemElement, { item }, item.id))
|
|
10753
10771
|
] }),
|
|
10754
|
-
/* @__PURE__ */
|
|
10772
|
+
/* @__PURE__ */ jsxs59(Box42, { sx: { display: "flex", alignItems: "center", gap: 1.5, overflow: "hidden" }, children: [
|
|
10755
10773
|
rightItems.map((item) => /* @__PURE__ */ jsx109(StatusBarItemElement, { item }, item.id)),
|
|
10756
|
-
cursorPosition && /* @__PURE__ */
|
|
10774
|
+
cursorPosition && /* @__PURE__ */ jsxs59(
|
|
10757
10775
|
Typography33,
|
|
10758
10776
|
{
|
|
10759
10777
|
variant: "caption",
|
|
@@ -10810,7 +10828,7 @@ var StatusBarItemElement = ({ item }) => {
|
|
|
10810
10828
|
|
|
10811
10829
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorWelcomeScreen.tsx
|
|
10812
10830
|
import { Box as Box43 } from "@mui/material";
|
|
10813
|
-
import { jsx as jsx110, jsxs as
|
|
10831
|
+
import { jsx as jsx110, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
10814
10832
|
var CodeEditorWelcomeScreen = ({
|
|
10815
10833
|
logo,
|
|
10816
10834
|
children,
|
|
@@ -10826,7 +10844,7 @@ var CodeEditorWelcomeScreen = ({
|
|
|
10826
10844
|
}
|
|
10827
10845
|
}
|
|
10828
10846
|
);
|
|
10829
|
-
return /* @__PURE__ */
|
|
10847
|
+
return /* @__PURE__ */ jsxs60(
|
|
10830
10848
|
Box43,
|
|
10831
10849
|
{
|
|
10832
10850
|
sx: {
|
|
@@ -10862,7 +10880,7 @@ var CodeEditorWelcomeScreen = ({
|
|
|
10862
10880
|
// src/components/third-party/CodeEditorWorkspace/CodeEditorWorkspace.tsx
|
|
10863
10881
|
import React19 from "react";
|
|
10864
10882
|
import { Box as Box44 } from "@mui/material";
|
|
10865
|
-
import { jsx as jsx111, jsxs as
|
|
10883
|
+
import { jsx as jsx111, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
10866
10884
|
var CodeEditorWorkspace = ({
|
|
10867
10885
|
files,
|
|
10868
10886
|
initialOpenPaths,
|
|
@@ -10964,7 +10982,7 @@ var CodeEditorWorkspace = ({
|
|
|
10964
10982
|
...editorProps
|
|
10965
10983
|
}
|
|
10966
10984
|
) : welcomeElement;
|
|
10967
|
-
return /* @__PURE__ */
|
|
10985
|
+
return /* @__PURE__ */ jsxs61(
|
|
10968
10986
|
Box44,
|
|
10969
10987
|
{
|
|
10970
10988
|
sx: {
|
|
@@ -10979,7 +10997,7 @@ var CodeEditorWorkspace = ({
|
|
|
10979
10997
|
...containerProps,
|
|
10980
10998
|
children: [
|
|
10981
10999
|
fileTreeElement,
|
|
10982
|
-
/* @__PURE__ */
|
|
11000
|
+
/* @__PURE__ */ jsxs61(Box44, { sx: { flex: 1, display: "flex", flexDirection: "column", minWidth: 0, overflow: "hidden" }, children: [
|
|
10983
11001
|
tabsElement,
|
|
10984
11002
|
/* @__PURE__ */ jsx111(Box44, { sx: { flex: 1, overflow: "hidden" }, children: editorElement }),
|
|
10985
11003
|
statusBarElement
|